New:Socket for Asana Is Now Available.Learn more
Get Started

@trigguard/execution-sdk

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trigguard/execution-sdk

Execution gateway client: POST /execute, local receipt verification via /.well-known/trigguard/keys.json

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
169
838.89%
Maintainers
1
Weekly downloads
 
Created
Source

@trigguard/execution-sdk

Node.js client for the execution gateway (POST /execute, GET /.well-known/trigguard/keys.json) with local Ed25519 receipt verification.

API

Authorize (decide) only:

import { authorize, verifyReceiptOffline, createExecutionClient } from "@trigguard/execution-sdk";

await authorize({
  gatewayUrl: process.env.TRIGGUARD_GATEWAY_URL!,
  surface: "deploy.release",
  actorId: "my-agent",
  getBearerToken: async () => process.env.TRIGGUARD_BEARER,
});

Gate a side effectwithExecute calls /execute and runs your function only on PERMIT:

import { withExecute } from "@trigguard/execution-sdk";

await withExecute(
  "deploy.release",
  async () => {
    await doDeploy();
  },
  {
    gatewayUrl: process.env.TRIGGUARD_GATEWAY_URL!,
    apiKey: process.env.TRIGGUARD_API_KEY, // optional tg_live_…
    actorId: "ci",
    context: { repository: "org/repo" },
  }
);

On DENY / SILENCE, it throws ExecutionNotPermittedError (see error.trigguardResult). Also re-exported from @trigguard/runtime.

Build & test

npm ci && npm run build
npm test

Relationship to other packages

  • trigguard (sdk/trigguard-js) — hosted site verification API (/protocol/verify-receipt, etc.).
  • @trigguard/execution-sdkCloud Run execution gateway (authorize → receipt).

Protocol semantics remain in trigguard-protocol; this package is a thin HTTP + crypto wrapper.

Keywords

trigguard

FAQs

Package last updated on 22 Apr 2026

Related posts