@canonmsg/agent-sdk 5.1.1 → 5.1.3
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/README.md +1 -1
- package/dist/types.d.ts +9 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ No additional dependencies required — the SDK uses native `fetch` and `Readabl
|
|
|
47
47
|
| `runtimeControls` | `RuntimeControlHandlers` | `undefined` | Optional interrupt / stop-clear handlers for Canon working-state controls |
|
|
48
48
|
| `runtimeControlSurface` | `'agent' \| 'host'` | `'agent'` | Runtime publishing surface. Use `host` when this SDK agent owns live runtime controls. |
|
|
49
49
|
| `runtimePrimitives` | `RuntimePrimitiveHandlers` | `undefined` | Optional typed primitive command handlers for descriptor-backed runtime commands |
|
|
50
|
-
| `sessionState` | `boolean` | `false` | Publish
|
|
50
|
+
| `sessionState` | `boolean` | `false` | Publish runtime-applied state to the canonical agent-session snapshot |
|
|
51
51
|
|
|
52
52
|
### Optional runtime controls
|
|
53
53
|
|
package/dist/types.d.ts
CHANGED
|
@@ -107,6 +107,8 @@ export interface RuntimeCardResult {
|
|
|
107
107
|
cardId: string;
|
|
108
108
|
actionId?: string;
|
|
109
109
|
values?: Record<string, unknown>;
|
|
110
|
+
/** Canon-authenticated human who submitted this card response. */
|
|
111
|
+
respondedBy?: string;
|
|
110
112
|
}
|
|
111
113
|
export interface MessageHandlerContext {
|
|
112
114
|
messages: CanonMessage[];
|
|
@@ -268,7 +270,7 @@ export interface CanonAgentOptions {
|
|
|
268
270
|
/** Optional typed runtime primitive handlers. Enables descriptor-backed command controls when provided. */
|
|
269
271
|
runtimePrimitives?: RuntimePrimitiveHandlers;
|
|
270
272
|
/**
|
|
271
|
-
* Enable
|
|
273
|
+
* Enable canonical agent-session state reporting. Off by default.
|
|
272
274
|
* Turn-state reporting is automatic while handlers run.
|
|
273
275
|
*/
|
|
274
276
|
sessionState?: boolean;
|
|
@@ -311,7 +313,12 @@ export type ReachOutResult = {
|
|
|
311
313
|
reason: string;
|
|
312
314
|
};
|
|
313
315
|
export interface ReachOutOptions {
|
|
314
|
-
/**
|
|
316
|
+
/**
|
|
317
|
+
* Optional first message; sent now when allowed or parked for exact delivery
|
|
318
|
+
* after approval when it is visible text <= 4 KiB. Attachments and hidden
|
|
319
|
+
* session setup cannot be parked; a setup-requiring coding target returns
|
|
320
|
+
* `setup_required` before a contact request is created.
|
|
321
|
+
*/
|
|
315
322
|
text?: string;
|
|
316
323
|
/** Optional contact-request note. Defaults to `text` when admission is `request-required`. */
|
|
317
324
|
requestMessage?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonmsg/agent-sdk",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
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": "^
|
|
31
|
+
"@canonmsg/core": "^5.0.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|