@canonmsg/agent-sdk 8.7.0 → 8.8.0

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.
@@ -1761,7 +1761,7 @@ export class CanonAgent {
1761
1761
  ...(responseUserId ? { responseUserId } : {}),
1762
1762
  ignoreSessionRules: mustIsolateSessionRules ? true : request.ignoreSessionRules,
1763
1763
  allowSessionRule: mustIsolateSessionRules ? false : request.allowSessionRule,
1764
- });
1764
+ }, request.signal ? { signal: request.signal } : undefined);
1765
1765
  throwIfAborted();
1766
1766
  shouldPersistTurnState = false;
1767
1767
  try {
package/dist/types.d.ts CHANGED
@@ -96,6 +96,8 @@ export interface RuntimeApprovalRequest {
96
96
  details?: ApprovalRequestDetail[];
97
97
  /** Human conversation member who should answer. Defaults to the triggering human. */
98
98
  responseUserId?: string;
99
+ /** Aborts the Canon approval request and withdraws its pending card. */
100
+ signal?: AbortSignal;
99
101
  /**
100
102
  * Ignore in-memory session rules for this approval request. Useful when the
101
103
  * action was triggered by someone other than the agent owner.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonmsg/agent-sdk",
3
- "version": "8.7.0",
3
+ "version": "8.8.0",
4
4
  "description": "Canon Agent SDK — build AI agents that participate in Canon conversations",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "node": ">=18.0.0"
29
29
  },
30
30
  "dependencies": {
31
- "@canonmsg/core": "^10.5.0"
31
+ "@canonmsg/core": "^10.6.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"