@nemphi/sdk 0.8.5550 → 0.8.5558

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -541,6 +541,12 @@ export interface ApprovalDecision {
541
541
  decision: "approved" | "denied";
542
542
  tool?: string;
543
543
  tool_error?: string;
544
+ /**
545
+ * The approval also allowed the tool from now on (`approveRun` with
546
+ * `always`): an `allow` policy for it was written, and the workspace no
547
+ * longer asks before an agent runs it.
548
+ */
549
+ always?: boolean;
544
550
  /**
545
551
  * The decision is recorded, but carrying it out did not finish inside
546
552
  * this request — a queued job owns it now and will complete it. The
@@ -8388,9 +8394,16 @@ export interface NemphiClient {
8388
8394
  * Approve the run's pending approval. `input.arguments` replaces the
8389
8395
  * parked call's arguments with the reviewer's edit, validated against
8390
8396
  * the tool's schema; omitted, the call runs exactly as parked.
8397
+ * `input.always` also allows the tool from now on: it writes an `allow`
8398
+ * policy for the tool (as `policies.set` would), so the workspace stops
8399
+ * asking before an agent runs it. Only an owner or admin may ask for it
8400
+ * (403 otherwise), and never for a tool whose `autonomy` is set (422):
8401
+ * nothing is decided when it is refused. The rule covers the tool, not
8402
+ * this call's arguments; `policies.delete` takes it back.
8391
8403
  */
8392
8404
  approveRun(id: string, input?: {
8393
8405
  arguments?: JsonObject;
8406
+ always?: boolean;
8394
8407
  }): Promise<ApprovalDecision>;
8395
8408
  denyRun(id: string): Promise<ApprovalDecision>;
8396
8409
  /** Answer a run parked on `user.ask` (status `awaiting_input`) and resume it. */