@canonmsg/agent-sdk 13.2.1 → 13.3.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.
- package/dist/chunks/{chunk-HTLKCUQG.js → chunk-AVR7QCHK.js} +290 -58
- package/dist/chunks/{chunk-POBMFS2K.js → chunk-BQGXOAIW.js} +2 -2
- package/dist/chunks/{chunk-VIS5WXNH.js → chunk-CUPSYLBV.js} +2042 -2026
- package/dist/chunks/{chunk-BPSFHEAA.js → chunk-HFT75BNB.js} +1 -1
- package/dist/chunks/{chunk-2NVLVPSG.js → chunk-NIORQKUI.js} +1 -1
- package/dist/chunks/{chunk-TJBG6NKF.js → chunk-ZT3TJZAV.js} +400 -270
- package/dist/chunks/{mls-crypto-ZBEC26B5.js → mls-crypto-AW7TY744.js} +2 -2
- package/dist/cli.js +141 -26
- package/dist/index.js +6 -6
- package/dist/internal/agent-tools/communication-tool.d.ts +80 -0
- package/dist/internal/agent-tools/index.d.ts +1 -0
- package/dist/internal/backend-contracts/endpoint.d.ts +25 -0
- package/dist/internal/backend-contracts/mlsDevKeyPackages.d.ts +4 -0
- package/dist/internal/core/client.d.ts +0 -4
- package/dist/internal/core/endpoint-client.d.ts +8 -0
- package/dist/internal/core/index.d.ts +1 -1
- package/dist/internal/core/registration-profile.d.ts +4 -1
- package/dist/internal/core/types.d.ts +3 -1
- package/dist/internal/endpoint/engine.d.ts +32 -3
- package/dist/internal/endpoint/media.d.ts +2 -2
- package/dist/internal/endpoint/mls-dev-groups.d.ts +9 -1
- package/dist/media.js +4 -4
- package/dist/mls-wasm-host.js +3 -3
- package/dist/runner/mls.d.ts +12 -2
- package/dist/runner/runner.d.ts +5 -2
- package/package.json +1 -1
package/dist/media.js
CHANGED
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
toAnthropicImageBlock,
|
|
19
19
|
toAnthropicImageBlocksWithinBudget,
|
|
20
20
|
uploadMediaFile
|
|
21
|
-
} from "./chunks/chunk-
|
|
22
|
-
import "./chunks/chunk-
|
|
23
|
-
import "./chunks/chunk-
|
|
24
|
-
import "./chunks/chunk-
|
|
21
|
+
} from "./chunks/chunk-AVR7QCHK.js";
|
|
22
|
+
import "./chunks/chunk-HFT75BNB.js";
|
|
23
|
+
import "./chunks/chunk-NIORQKUI.js";
|
|
24
|
+
import "./chunks/chunk-CUPSYLBV.js";
|
|
25
25
|
export {
|
|
26
26
|
DEFAULT_ANTHROPIC_REQUEST_HEADROOM_BYTES,
|
|
27
27
|
DEFAULT_MEDIA_CACHE_DIR,
|
package/dist/mls-wasm-host.js
CHANGED
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
WASM_HOST_CONFIGURE,
|
|
3
3
|
WASM_HOST_PROVISION,
|
|
4
4
|
keyFile
|
|
5
|
-
} from "./chunks/chunk-
|
|
5
|
+
} from "./chunks/chunk-BQGXOAIW.js";
|
|
6
6
|
import {
|
|
7
7
|
MAX_INPUT,
|
|
8
8
|
NodeMlsDevCustodyError,
|
|
9
9
|
parseFrame,
|
|
10
10
|
rejected,
|
|
11
11
|
requireValue
|
|
12
|
-
} from "./chunks/chunk-
|
|
12
|
+
} from "./chunks/chunk-HFT75BNB.js";
|
|
13
13
|
import {
|
|
14
14
|
__name,
|
|
15
15
|
canonicalEndpointJson,
|
|
16
16
|
isMlsDevReceiptClockSkew,
|
|
17
17
|
parseMlsDevDeviceContext
|
|
18
|
-
} from "./chunks/chunk-
|
|
18
|
+
} from "./chunks/chunk-CUPSYLBV.js";
|
|
19
19
|
|
|
20
20
|
// src/mls-wasm-host.ts
|
|
21
21
|
import { createHash } from "node:crypto";
|
package/dist/runner/mls.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type CanonEndpoint, type CanonMlsDevOptions, type MlsDevCurrentAudience } from '../internal/core/index.js';
|
|
2
2
|
import { type MlsDevDeviceContext } from '../internal/backend-contracts/index.js';
|
|
3
|
+
import { type CommunicateShape } from '../internal/agent-tools/index.js';
|
|
3
4
|
import type { ToolDefinition } from './types.js';
|
|
4
5
|
/**
|
|
5
6
|
* What `createRunner({ mls })` takes: issuer pins and custody, plus the custody's own shutdown. With `provisioned`
|
|
@@ -59,8 +60,17 @@ export declare function requireMlsSupport(input: {
|
|
|
59
60
|
* digit, mark or `_` (`@Cipher A` does not mention `Cipher AB`).
|
|
60
61
|
*/
|
|
61
62
|
export declare function mentionsAgent(text: string, names: ReadonlyArray<string | undefined>): boolean;
|
|
62
|
-
/**
|
|
63
|
+
/** What an encrypted turn's `communicate` offers: listing, and text to its own room, which the runner encrypts. */
|
|
64
|
+
export declare const ENCRYPTED_COMMUNICATE_SHAPE: {
|
|
65
|
+
readonly list_conversations: readonly ["limit"];
|
|
66
|
+
readonly discover_agents: readonly ["limit"];
|
|
67
|
+
readonly message_existing: readonly ["conversationId", "text"];
|
|
68
|
+
};
|
|
69
|
+
/** An encrypted turn's `communicate`, as one flat schema (`communicateInputSchema`). */
|
|
63
70
|
export declare const ENCRYPTED_COMMUNICATE: ToolDefinition;
|
|
71
|
+
/** What an errand turn's `communicate` offers (§12.6): listing, its recipient and its origin, and for a person or agent, a new conversation. */
|
|
72
|
+
export declare const errandShape: (contact: boolean) => CommunicateShape;
|
|
73
|
+
export declare const errandCommunicate: (contact: boolean) => ToolDefinition;
|
|
64
74
|
/**
|
|
65
75
|
* The operator's MLS configuration file: public issuer pins and the custody helper's identity, never credentials or
|
|
66
76
|
* private keys. A canonical, current-user-owned regular file, not group- or other-writable, at most 64 KiB, read once.
|
|
@@ -101,7 +111,7 @@ export declare function runMlsDevSetup(endpoint: CanonEndpoint, action: MlsSetup
|
|
|
101
111
|
principalId: string;
|
|
102
112
|
installationId: string;
|
|
103
113
|
ownershipVersion: number | undefined;
|
|
104
|
-
status: "
|
|
114
|
+
status: "revoked" | "absent" | "identity_committed" | "registered" | "credential_committed";
|
|
105
115
|
deviceId: string | null;
|
|
106
116
|
credentialGeneration: number;
|
|
107
117
|
}>;
|
package/dist/runner/runner.d.ts
CHANGED
|
@@ -4,9 +4,12 @@ import { type CanonEndpoint, type CanonRuntimeDescriptor, type CommunicateInput,
|
|
|
4
4
|
import { type RunnerMlsOptions } from './mls.js';
|
|
5
5
|
import { type RuntimeDriver } from './types.js';
|
|
6
6
|
export interface RunnerOptions {
|
|
7
|
-
/** Canon refused this runner for good (its client floor, mls-cutover-operator.md §2 15b
|
|
7
|
+
/** Canon refused this runner for good (its client floor, mls-cutover-operator.md §2 15b, or the agent's home moved to
|
|
8
|
+
* another installation or Canon's relay); the CLI stops and exits. */
|
|
8
9
|
onFatal?(error: Error): void;
|
|
9
|
-
/**
|
|
10
|
+
/** Move the agent's home back to this installation after another one took it (`canon-agent run --take-over`). */
|
|
11
|
+
takeOver?: boolean;
|
|
12
|
+
/** How the runner names itself to Canon's client floor (`X-Canon-Client`); by default agent-sdk's own version (RUNNER_CLIENT). */
|
|
10
13
|
client?: {
|
|
11
14
|
kind: 'runner';
|
|
12
15
|
version: string;
|