sealbridge 0.2.1 → 0.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/README.ja.md +499 -31
- package/README.md +529 -110
- package/dist/cli/dist/accept.d.ts +13 -0
- package/dist/cli/dist/accept.js +115 -0
- package/dist/cli/dist/accept.js.map +1 -0
- package/dist/cli/dist/approval-summary.d.ts +1 -1
- package/dist/cli/dist/board.d.ts +10 -9
- package/dist/cli/dist/board.js +62 -31
- package/dist/cli/dist/board.js.map +1 -1
- package/dist/cli/dist/command-identity.d.ts +6 -0
- package/dist/cli/dist/command-identity.js +13 -0
- package/dist/cli/dist/command-identity.js.map +1 -0
- package/dist/cli/dist/config.d.ts +3 -0
- package/dist/cli/dist/config.js +29 -0
- package/dist/cli/dist/config.js.map +1 -0
- package/dist/cli/dist/connections.d.ts +15 -0
- package/dist/cli/dist/connections.js +191 -0
- package/dist/cli/dist/connections.js.map +1 -0
- package/dist/cli/dist/contacts.d.ts +4 -3
- package/dist/cli/dist/contacts.js +39 -28
- package/dist/cli/dist/contacts.js.map +1 -1
- package/dist/cli/dist/doctor.d.ts +9 -0
- package/dist/cli/dist/doctor.js +46 -5
- package/dist/cli/dist/doctor.js.map +1 -1
- package/dist/cli/dist/error-messages.js +24 -0
- package/dist/cli/dist/error-messages.js.map +1 -1
- package/dist/cli/dist/index.js +54 -6
- package/dist/cli/dist/index.js.map +1 -1
- package/dist/cli/dist/invite-output.d.ts +14 -0
- package/dist/cli/dist/invite-output.js +66 -0
- package/dist/cli/dist/invite-output.js.map +1 -0
- package/dist/cli/dist/invite-share.d.ts +6 -3
- package/dist/cli/dist/invite-share.js +40 -15
- package/dist/cli/dist/invite-share.js.map +1 -1
- package/dist/cli/dist/invites-migrate.d.ts +3 -0
- package/dist/cli/dist/invites-migrate.js +33 -0
- package/dist/cli/dist/invites-migrate.js.map +1 -0
- package/dist/cli/dist/mcp.d.ts +7 -5
- package/dist/cli/dist/mcp.js +23 -18
- package/dist/cli/dist/mcp.js.map +1 -1
- package/dist/cli/dist/network.d.ts +11 -1
- package/dist/cli/dist/network.js +150 -87
- package/dist/cli/dist/network.js.map +1 -1
- package/dist/cli/dist/pending.d.ts +8 -0
- package/dist/cli/dist/pending.js +50 -0
- package/dist/cli/dist/pending.js.map +1 -0
- package/dist/cli/dist/public-settings.d.ts +5 -4
- package/dist/cli/dist/public-settings.js +13 -15
- package/dist/cli/dist/public-settings.js.map +1 -1
- package/dist/cli/dist/receipt.d.ts +1 -1
- package/dist/cli/dist/relay-auth.d.ts +3 -0
- package/dist/cli/dist/relay-auth.js +23 -0
- package/dist/cli/dist/relay-auth.js.map +1 -0
- package/dist/cli/dist/requests.d.ts +10 -0
- package/dist/cli/dist/requests.js +91 -0
- package/dist/cli/dist/requests.js.map +1 -0
- package/dist/cli/dist/sdk.d.ts +10 -0
- package/dist/cli/dist/sdk.js +7 -0
- package/dist/cli/dist/sdk.js.map +1 -0
- package/dist/cli/dist/setup-files.d.ts +24 -0
- package/dist/cli/dist/setup-files.js +190 -0
- package/dist/cli/dist/setup-files.js.map +1 -0
- package/dist/cli/dist/setup-hosts.d.ts +29 -0
- package/dist/cli/dist/setup-hosts.js +75 -0
- package/dist/cli/dist/setup-hosts.js.map +1 -0
- package/dist/cli/dist/setup.d.ts +61 -0
- package/dist/cli/dist/setup.js +243 -0
- package/dist/cli/dist/setup.js.map +1 -0
- package/dist/cli/dist/task-input.d.ts +1 -1
- package/dist/cli/dist/wake-hook.d.ts +1 -1
- package/dist/cli/dist/worker-json.d.ts +4 -0
- package/dist/cli/dist/worker-json.js +87 -0
- package/dist/cli/dist/worker-json.js.map +1 -0
- package/dist/examples/two-owner-demo/dist/run-demo.d.ts +13 -13
- package/dist/package.json +1 -1
- package/dist/packages/adapters/dist/codex-config.d.ts +15 -0
- package/dist/packages/adapters/dist/codex-config.js +171 -0
- package/dist/packages/adapters/dist/codex-config.js.map +1 -0
- package/dist/packages/adapters/dist/command.d.ts +7 -3
- package/dist/packages/adapters/dist/command.js +74 -24
- package/dist/packages/adapters/dist/command.js.map +1 -1
- package/dist/packages/adapters/dist/credential-proxy.d.ts +4 -2
- package/dist/packages/adapters/dist/credential-proxy.js +5 -0
- package/dist/packages/adapters/dist/credential-proxy.js.map +1 -1
- package/dist/packages/adapters/dist/index.d.ts +1 -1
- package/dist/packages/adapters/dist/mcp.d.ts +2 -2
- package/dist/packages/adapters/dist/openai.d.ts +2 -2
- package/dist/packages/adapters/dist/sandbox.d.ts +2 -2
- package/dist/packages/adapters/dist/windows-command.d.ts +6 -0
- package/dist/packages/adapters/dist/windows-command.js +37 -0
- package/dist/packages/adapters/dist/windows-command.js.map +1 -0
- package/dist/packages/core/dist/connection.d.ts +58 -0
- package/dist/packages/core/dist/connection.js +132 -0
- package/dist/packages/core/dist/connection.js.map +1 -0
- package/dist/packages/core/dist/delivery-status.d.ts +22 -0
- package/dist/packages/core/dist/delivery-status.js +53 -0
- package/dist/packages/core/dist/delivery-status.js.map +1 -0
- package/dist/packages/core/dist/discovery.d.ts +7 -6
- package/dist/packages/core/dist/discovery.js +19 -20
- package/dist/packages/core/dist/discovery.js.map +1 -1
- package/dist/packages/core/dist/edge.d.ts +1 -0
- package/dist/packages/core/dist/edge.js +1 -0
- package/dist/packages/core/dist/edge.js.map +1 -1
- package/dist/packages/core/dist/index.d.ts +3 -0
- package/dist/packages/core/dist/index.js +3 -0
- package/dist/packages/core/dist/index.js.map +1 -1
- package/dist/packages/core/dist/protocol.d.ts +24 -0
- package/dist/packages/core/dist/protocol.js +54 -0
- package/dist/packages/core/dist/protocol.js.map +1 -0
- package/dist/packages/core/dist/receipts.d.ts +1 -0
- package/dist/packages/core/dist/receipts.js +1 -1
- package/dist/packages/core/dist/receipts.js.map +1 -1
- package/dist/packages/core/dist/schema.d.ts +1 -0
- package/dist/packages/core/dist/schema.js +13 -2
- package/dist/packages/core/dist/schema.js.map +1 -1
- package/dist/packages/ledger/dist/index.d.ts +1 -1
- package/dist/packages/relay/dist/admission.d.ts +14 -0
- package/dist/packages/relay/dist/admission.js +70 -0
- package/dist/packages/relay/dist/admission.js.map +1 -0
- package/dist/packages/relay/dist/fetch.d.ts +8 -2
- package/dist/packages/relay/dist/fetch.js +41 -12
- package/dist/packages/relay/dist/fetch.js.map +1 -1
- package/dist/packages/relay/dist/index.d.ts +23 -12
- package/dist/packages/relay/dist/index.js +130 -78
- package/dist/packages/relay/dist/index.js.map +1 -1
- package/dist/packages/relay/dist/journal.d.ts +1 -1
- package/dist/packages/relay/dist/notifications.d.ts +1 -1
- package/dist/packages/relay/dist/retry.d.ts +23 -0
- package/dist/packages/relay/dist/retry.js +43 -1
- package/dist/packages/relay/dist/retry.js.map +1 -1
- package/dist/packages/relay/dist/ssrf.d.ts +3 -2
- package/dist/packages/relay/dist/ssrf.js.map +1 -1
- package/dist/packages/relay/dist/worker.js +1 -1
- package/dist/packages/relay/dist/worker.js.map +1 -1
- package/dist/packages/runtime/dist/a2a.d.ts +1 -1
- package/dist/packages/runtime/dist/a2a.js +1 -1
- package/dist/packages/runtime/dist/adapter.d.ts +2 -2
- package/dist/packages/runtime/dist/application-config.d.ts +20 -0
- package/dist/packages/runtime/dist/application-config.js +222 -0
- package/dist/packages/runtime/dist/application-config.js.map +1 -0
- package/dist/packages/runtime/dist/approval-providers.d.ts +24 -3
- package/dist/packages/runtime/dist/approval-providers.js +79 -3
- package/dist/packages/runtime/dist/approval-providers.js.map +1 -1
- package/dist/packages/runtime/dist/connection-admission-review.d.ts +39 -0
- package/dist/packages/runtime/dist/connection-admission-review.js +86 -0
- package/dist/packages/runtime/dist/connection-admission-review.js.map +1 -0
- package/dist/packages/runtime/dist/connection-persistence.d.ts +35 -0
- package/dist/packages/runtime/dist/connection-persistence.js +181 -0
- package/dist/packages/runtime/dist/connection-persistence.js.map +1 -0
- package/dist/packages/runtime/dist/connection-records.d.ts +167 -0
- package/dist/packages/runtime/dist/connection-records.js +132 -0
- package/dist/packages/runtime/dist/connection-records.js.map +1 -0
- package/dist/packages/runtime/dist/connection-router.d.ts +45 -0
- package/dist/packages/runtime/dist/connection-router.js +130 -0
- package/dist/packages/runtime/dist/connection-router.js.map +1 -0
- package/dist/packages/runtime/dist/connection-service.d.ts +159 -0
- package/dist/packages/runtime/dist/connection-service.js +239 -0
- package/dist/packages/runtime/dist/connection-service.js.map +1 -0
- package/dist/packages/runtime/dist/connection-transport.d.ts +14 -0
- package/dist/packages/runtime/dist/connection-transport.js +89 -0
- package/dist/packages/runtime/dist/connection-transport.js.map +1 -0
- package/dist/packages/runtime/dist/delivery-records.d.ts +180 -0
- package/dist/packages/runtime/dist/delivery-records.js +205 -0
- package/dist/packages/runtime/dist/delivery-records.js.map +1 -0
- package/dist/packages/runtime/dist/delivery-status-router.d.ts +27 -0
- package/dist/packages/runtime/dist/delivery-status-router.js +150 -0
- package/dist/packages/runtime/dist/delivery-status-router.js.map +1 -0
- package/dist/packages/runtime/dist/delivery-status.d.ts +43 -0
- package/dist/packages/runtime/dist/delivery-status.js +193 -0
- package/dist/packages/runtime/dist/delivery-status.js.map +1 -0
- package/dist/packages/runtime/dist/delivery-store.d.ts +125 -0
- package/dist/packages/runtime/dist/delivery-store.js +1047 -0
- package/dist/packages/runtime/dist/delivery-store.js.map +1 -0
- package/dist/packages/runtime/dist/gateway.d.ts +4 -3
- package/dist/packages/runtime/dist/gateway.js.map +1 -1
- package/dist/packages/runtime/dist/held-request-review.d.ts +49 -0
- package/dist/packages/runtime/dist/held-request-review.js +122 -0
- package/dist/packages/runtime/dist/held-request-review.js.map +1 -0
- package/dist/packages/runtime/dist/held-request-store.d.ts +112 -0
- package/dist/packages/runtime/dist/held-request-store.js +290 -0
- package/dist/packages/runtime/dist/held-request-store.js.map +1 -0
- package/dist/packages/runtime/dist/idempotency-store.d.ts +53 -0
- package/dist/packages/runtime/dist/idempotency-store.js +331 -0
- package/dist/packages/runtime/dist/idempotency-store.js.map +1 -0
- package/dist/packages/runtime/dist/inbox.d.ts +1 -1
- package/dist/packages/runtime/dist/index.d.ts +27 -1
- package/dist/packages/runtime/dist/index.js +26 -0
- package/dist/packages/runtime/dist/index.js.map +1 -1
- package/dist/packages/runtime/dist/invite-store.d.ts +76 -0
- package/dist/packages/runtime/dist/invite-store.js +337 -0
- package/dist/packages/runtime/dist/invite-store.js.map +1 -0
- package/dist/packages/runtime/dist/key-store.d.ts +77 -0
- package/dist/packages/runtime/dist/key-store.js +226 -0
- package/dist/packages/runtime/dist/key-store.js.map +1 -0
- package/dist/packages/runtime/dist/local-identity.d.ts +33 -0
- package/dist/packages/runtime/dist/local-identity.js +278 -0
- package/dist/packages/runtime/dist/local-identity.js.map +1 -0
- package/dist/packages/runtime/dist/mcp-rpc.d.ts +19 -0
- package/dist/packages/runtime/dist/mcp-rpc.js +175 -0
- package/dist/packages/runtime/dist/mcp-rpc.js.map +1 -0
- package/dist/packages/runtime/dist/mcp-server.d.ts +46 -19
- package/dist/packages/runtime/dist/mcp-server.js +427 -184
- package/dist/packages/runtime/dist/mcp-server.js.map +1 -1
- package/dist/packages/runtime/dist/mcp-tool-catalog.d.ts +1 -1
- package/dist/packages/runtime/dist/mcp-tool-catalog.js +172 -13
- package/dist/packages/runtime/dist/mcp-tool-catalog.js.map +1 -1
- package/dist/packages/runtime/dist/mcp.d.ts +2 -2
- package/dist/packages/runtime/dist/message-status.d.ts +32 -0
- package/dist/packages/runtime/dist/message-status.js +29 -0
- package/dist/packages/runtime/dist/message-status.js.map +1 -0
- package/dist/packages/runtime/dist/outbox.d.ts +91 -0
- package/dist/packages/runtime/dist/outbox.js +462 -0
- package/dist/packages/runtime/dist/outbox.js.map +1 -0
- package/dist/packages/runtime/dist/policy.d.ts +1 -1
- package/dist/packages/runtime/dist/protocol-peer-store.d.ts +40 -0
- package/dist/packages/runtime/dist/protocol-peer-store.js +176 -0
- package/dist/packages/runtime/dist/protocol-peer-store.js.map +1 -0
- package/dist/packages/runtime/dist/protocol-release.d.ts +26 -0
- package/dist/packages/runtime/dist/protocol-release.js +76 -0
- package/dist/packages/runtime/dist/protocol-release.js.map +1 -0
- package/dist/packages/runtime/dist/quota.d.ts +1 -1
- package/dist/packages/runtime/dist/relay-selection.d.ts +20 -0
- package/dist/packages/runtime/dist/relay-selection.js +34 -0
- package/dist/packages/runtime/dist/relay-selection.js.map +1 -0
- package/dist/packages/runtime/dist/requester-pending-store.d.ts +59 -0
- package/dist/packages/runtime/dist/requester-pending-store.js +266 -0
- package/dist/packages/runtime/dist/requester-pending-store.js.map +1 -0
- package/dist/packages/runtime/dist/secret-store.d.ts +19 -0
- package/dist/packages/runtime/dist/secret-store.js +51 -0
- package/dist/packages/runtime/dist/secret-store.js.map +1 -0
- package/dist/packages/runtime/dist/session-audit.d.ts +29 -7
- package/dist/packages/runtime/dist/session-audit.js +149 -29
- package/dist/packages/runtime/dist/session-audit.js.map +1 -1
- package/dist/packages/runtime/dist/session.d.ts +101 -9
- package/dist/packages/runtime/dist/session.js +696 -96
- package/dist/packages/runtime/dist/session.js.map +1 -1
- package/dist/packages/runtime/dist/task-journal.d.ts +18 -3
- package/dist/packages/runtime/dist/task-journal.js +271 -18
- package/dist/packages/runtime/dist/task-journal.js.map +1 -1
- package/dist/packages/runtime/dist/verifier.d.ts +3 -2
- package/dist/packages/runtime/dist/verifier.js +1 -0
- package/dist/packages/runtime/dist/verifier.js.map +1 -1
- package/dist/packages/runtime/dist/worker-trust-store.d.ts +111 -0
- package/dist/packages/runtime/dist/worker-trust-store.js +592 -0
- package/dist/packages/runtime/dist/worker-trust-store.js.map +1 -0
- package/dist/packages/sandbox/dist/command-environment.d.ts +2 -0
- package/dist/packages/sandbox/dist/command-environment.js +29 -0
- package/dist/packages/sandbox/dist/command-environment.js.map +1 -0
- package/dist/packages/sandbox/dist/container.d.ts +1 -1
- package/dist/packages/sandbox/dist/index.d.ts +2 -1
- package/dist/packages/sandbox/dist/index.js +1 -0
- package/dist/packages/sandbox/dist/index.js.map +1 -1
- package/dist/spec/README.ja.md +21 -1
- package/dist/spec/README.md +20 -1
- package/dist/spec/agent-card.schema.json +11 -1
- package/dist/spec/delivery-status.schema.json +106 -0
- package/dist/spec/examples/protocol-versions/sample-agent-card.json +35 -0
- package/dist/spec/examples/sample-delivery-status.json +21 -0
- package/dist/spec/examples/sample-task-manifest.0.1.0.json +173 -0
- package/dist/spec/examples/sample-task-manifest.0.2.0.json +173 -0
- package/dist/spec/task-manifest.0.1.0.schema.json +422 -0
- package/dist/spec/task-manifest.0.2.0.schema.json +422 -0
- package/dist/spec/task-manifest.schema.json +9 -418
- package/docs/sdk.ja.md +133 -0
- package/docs/sdk.md +138 -0
- package/package.json +15 -3
|
@@ -1,422 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://acp-spec.local/schemas/
|
|
4
|
-
"title": "TaskManifest",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"createdAt",
|
|
12
|
-
"deadline",
|
|
13
|
-
"requester",
|
|
14
|
-
"task",
|
|
15
|
-
"io",
|
|
16
|
-
"verification",
|
|
17
|
-
"budget",
|
|
18
|
-
"permissions",
|
|
19
|
-
"sandboxPolicy",
|
|
20
|
-
"hitlPolicy"
|
|
21
|
-
],
|
|
22
|
-
"properties": {
|
|
23
|
-
"protocolVersion": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"const": "0.1.0",
|
|
26
|
-
"description": "Protocol specification version."
|
|
27
|
-
},
|
|
28
|
-
"taskId": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"pattern": "^task_[a-zA-Z0-9_-]{8,64}$",
|
|
31
|
-
"description": "Globally unique task identifier."
|
|
32
|
-
},
|
|
33
|
-
"parentTaskId": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"pattern": "^task_[a-zA-Z0-9_-]{8,64}$",
|
|
36
|
-
"description": "Optional parent task identifier when sub-delegating."
|
|
37
|
-
},
|
|
38
|
-
"createdAt": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"format": "date-time"
|
|
41
|
-
},
|
|
42
|
-
"deadline": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"format": "date-time",
|
|
45
|
-
"description": "Hard UTC timestamp deadline after which the task transitions to TIMED_OUT."
|
|
46
|
-
},
|
|
47
|
-
"requester": {
|
|
48
|
-
"$ref": "#/$defs/partyDescriptor"
|
|
49
|
-
},
|
|
50
|
-
"worker": {
|
|
51
|
-
"$ref": "#/$defs/partyDescriptor",
|
|
52
|
-
"description": "Target worker party if directed; omitted in open proposals before ACCEPT."
|
|
53
|
-
},
|
|
54
|
-
"task": {
|
|
55
|
-
"type": "object",
|
|
56
|
-
"additionalProperties": false,
|
|
57
|
-
"required": ["title", "description", "acceptanceCriteria"],
|
|
58
|
-
"properties": {
|
|
59
|
-
"skillId": { "type": "string", "minLength": 1 },
|
|
60
|
-
"taskType": { "type": "string", "minLength": 1 },
|
|
61
|
-
"title": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"minLength": 1,
|
|
64
|
-
"maxLength": 200
|
|
65
|
-
},
|
|
66
|
-
"description": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"minLength": 1,
|
|
69
|
-
"maxLength": 32768,
|
|
70
|
-
"description": "Task instructions. Must be treated as untrusted data by the worker runtime."
|
|
71
|
-
},
|
|
72
|
-
"acceptanceCriteria": {
|
|
73
|
-
"type": "array",
|
|
74
|
-
"minItems": 1,
|
|
75
|
-
"maxItems": 50,
|
|
76
|
-
"items": {
|
|
77
|
-
"type": "object",
|
|
78
|
-
"additionalProperties": false,
|
|
79
|
-
"required": ["id", "description", "required"],
|
|
80
|
-
"properties": {
|
|
81
|
-
"id": {
|
|
82
|
-
"type": "string",
|
|
83
|
-
"pattern": "^ac_[a-zA-Z0-9_-]{1,32}$"
|
|
84
|
-
},
|
|
85
|
-
"description": {
|
|
86
|
-
"type": "string",
|
|
87
|
-
"minLength": 1,
|
|
88
|
-
"maxLength": 1000
|
|
89
|
-
},
|
|
90
|
-
"required": {
|
|
91
|
-
"type": "boolean"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"io": {
|
|
99
|
-
"type": "object",
|
|
100
|
-
"additionalProperties": false,
|
|
101
|
-
"required": ["inputSchema", "outputSchema"],
|
|
102
|
-
"properties": {
|
|
103
|
-
"inputSchema": {
|
|
104
|
-
"type": "object",
|
|
105
|
-
"description": "JSON Schema describing the structured task input payload."
|
|
106
|
-
},
|
|
107
|
-
"outputSchema": {
|
|
108
|
-
"type": "object",
|
|
109
|
-
"description": "JSON Schema describing the required structured output artifact."
|
|
110
|
-
},
|
|
111
|
-
"inputArtifacts": {
|
|
112
|
-
"type": "array",
|
|
113
|
-
"maxItems": 100,
|
|
114
|
-
"items": {
|
|
115
|
-
"$ref": "#/$defs/artifactRef"
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
"verification": {
|
|
121
|
-
"type": "object",
|
|
122
|
-
"additionalProperties": false,
|
|
123
|
-
"required": ["mode", "requireUsageReceipt", "requireExecutionAttestation", "maxRetries"],
|
|
124
|
-
"properties": {
|
|
125
|
-
"mode": {
|
|
126
|
-
"type": "string",
|
|
127
|
-
"enum": ["schema_only", "automated_checks", "human_in_the_loop", "hybrid"],
|
|
128
|
-
"description": "How the requester gateway verifies delivered artifacts."
|
|
129
|
-
},
|
|
130
|
-
"requireUsageReceipt": {
|
|
131
|
-
"type": "boolean"
|
|
132
|
-
},
|
|
133
|
-
"requireExecutionAttestation": {
|
|
134
|
-
"type": "boolean"
|
|
135
|
-
},
|
|
136
|
-
"maxRetries": {
|
|
137
|
-
"type": "integer",
|
|
138
|
-
"minimum": 0,
|
|
139
|
-
"maximum": 10
|
|
140
|
-
},
|
|
141
|
-
"checks": {
|
|
142
|
-
"type": "array",
|
|
143
|
-
"maxItems": 20,
|
|
144
|
-
"items": {
|
|
145
|
-
"type": "object",
|
|
146
|
-
"additionalProperties": false,
|
|
147
|
-
"required": ["checkId", "kind", "target"],
|
|
148
|
-
"properties": {
|
|
149
|
-
"checkId": {
|
|
150
|
-
"type": "string",
|
|
151
|
-
"pattern": "^chk_[a-zA-Z0-9_-]{1,32}$"
|
|
152
|
-
},
|
|
153
|
-
"kind": {
|
|
154
|
-
"type": "string",
|
|
155
|
-
"enum": ["json_schema", "sha256_match", "deterministic_command", "human_review"]
|
|
156
|
-
},
|
|
157
|
-
"target": {
|
|
158
|
-
"type": "string",
|
|
159
|
-
"minLength": 1,
|
|
160
|
-
"maxLength": 512
|
|
161
|
-
},
|
|
162
|
-
"expectedExitCode": {
|
|
163
|
-
"type": "integer",
|
|
164
|
-
"default": 0
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
"budget": {
|
|
172
|
-
"type": "object",
|
|
173
|
-
"additionalProperties": false,
|
|
174
|
-
"required": [
|
|
175
|
-
"costBearer",
|
|
176
|
-
"maxInputTokens",
|
|
177
|
-
"maxOutputTokens",
|
|
178
|
-
"maxToolInvocations",
|
|
179
|
-
"maxWallClockSeconds",
|
|
180
|
-
"onOverrun"
|
|
181
|
-
],
|
|
182
|
-
"properties": {
|
|
183
|
-
"costBearer": {
|
|
184
|
-
"type": "string",
|
|
185
|
-
"enum": ["worker_byok", "bilateral_quota", "external_settlement_plugin"],
|
|
186
|
-
"description": "Who bears the LLM/API inference cost. Never shares raw API keys across owners."
|
|
187
|
-
},
|
|
188
|
-
"maxInputTokens": {
|
|
189
|
-
"type": "integer",
|
|
190
|
-
"minimum": 0,
|
|
191
|
-
"maximum": 100000000
|
|
192
|
-
},
|
|
193
|
-
"maxOutputTokens": {
|
|
194
|
-
"type": "integer",
|
|
195
|
-
"minimum": 0,
|
|
196
|
-
"maximum": 100000000
|
|
197
|
-
},
|
|
198
|
-
"maxToolInvocations": {
|
|
199
|
-
"type": "integer",
|
|
200
|
-
"minimum": 0,
|
|
201
|
-
"maximum": 100000
|
|
202
|
-
},
|
|
203
|
-
"maxWallClockSeconds": {
|
|
204
|
-
"type": "integer",
|
|
205
|
-
"minimum": 1,
|
|
206
|
-
"maximum": 604800
|
|
207
|
-
},
|
|
208
|
-
"onOverrun": {
|
|
209
|
-
"type": "string",
|
|
210
|
-
"enum": ["hard_stop", "request_hitl_amendment"]
|
|
211
|
-
},
|
|
212
|
-
"settlementExtension": {
|
|
213
|
-
"type": "object",
|
|
214
|
-
"description": "Optional plugin metadata for off-protocol settlement or bilateral ledger accounting."
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
"permissions": {
|
|
219
|
-
"type": "object",
|
|
220
|
-
"additionalProperties": false,
|
|
221
|
-
"required": ["maxDelegationDepth", "grantedCapabilities"],
|
|
222
|
-
"properties": {
|
|
223
|
-
"maxDelegationDepth": {
|
|
224
|
-
"type": "integer",
|
|
225
|
-
"minimum": 0,
|
|
226
|
-
"maximum": 5,
|
|
227
|
-
"description": "0 forbids sub-delegation to any third-party agent."
|
|
228
|
-
},
|
|
229
|
-
"grantedCapabilities": {
|
|
230
|
-
"type": "array",
|
|
231
|
-
"maxItems": 50,
|
|
232
|
-
"items": {
|
|
233
|
-
"$ref": "#/$defs/capabilityGrantSpec"
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
"sandboxPolicy": {
|
|
239
|
-
"type": "object",
|
|
240
|
-
"additionalProperties": false,
|
|
241
|
-
"required": ["isolationLevel", "networkAccess", "filesystemScope"],
|
|
242
|
-
"properties": {
|
|
243
|
-
"allowSubprocessFallback": {
|
|
244
|
-
"type": "boolean",
|
|
245
|
-
"description": "Explicitly permit a restricted subprocess when OCI isolation is requested."
|
|
246
|
-
},
|
|
247
|
-
"isolationLevel": {
|
|
248
|
-
"type": "string",
|
|
249
|
-
"enum": ["subprocess_restricted", "oci_container", "wasm", "microvm"]
|
|
250
|
-
},
|
|
251
|
-
"networkAccess": {
|
|
252
|
-
"type": "string",
|
|
253
|
-
"enum": ["none", "allowlist_only"]
|
|
254
|
-
},
|
|
255
|
-
"allowedHosts": {
|
|
256
|
-
"type": "array",
|
|
257
|
-
"items": {
|
|
258
|
-
"type": "string",
|
|
259
|
-
"minLength": 1,
|
|
260
|
-
"maxLength": 253
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
"filesystemScope": {
|
|
264
|
-
"type": "string",
|
|
265
|
-
"enum": ["ephemeral_workspace_only", "read_only_inputs"]
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
"hitlPolicy": {
|
|
270
|
-
"type": "object",
|
|
271
|
-
"additionalProperties": false,
|
|
272
|
-
"required": ["requiredGates"],
|
|
273
|
-
"properties": {
|
|
274
|
-
"requiredGates": {
|
|
275
|
-
"type": "array",
|
|
276
|
-
"uniqueItems": true,
|
|
277
|
-
"items": {
|
|
278
|
-
"type": "string",
|
|
279
|
-
"enum": [
|
|
280
|
-
"GATE_CONTRACT_ACCEPT",
|
|
281
|
-
"GATE_EXTERNAL_SIDE_EFFECT",
|
|
282
|
-
"GATE_BUDGET_OVERRUN",
|
|
283
|
-
"GATE_SUB_DELEGATION",
|
|
284
|
-
"GATE_DELIVERY_ACCEPT"
|
|
285
|
-
]
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
"signatures": {
|
|
291
|
-
"type": "object",
|
|
292
|
-
"additionalProperties": false,
|
|
293
|
-
"properties": {
|
|
294
|
-
"requesterSignature": {
|
|
295
|
-
"$ref": "#/$defs/signatureBlock"
|
|
296
|
-
},
|
|
297
|
-
"workerSignature": {
|
|
298
|
-
"$ref": "#/$defs/signatureBlock"
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
"$defs": {
|
|
304
|
-
"didKey": {
|
|
305
|
-
"type": "string",
|
|
306
|
-
"pattern": "^did:key:z[1-9A-HJ-NP-Za-km-z]{32,128}$"
|
|
307
|
-
},
|
|
308
|
-
"sha256Digest": {
|
|
309
|
-
"type": "string",
|
|
310
|
-
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
311
|
-
},
|
|
312
|
-
"partyDescriptor": {
|
|
313
|
-
"type": "object",
|
|
314
|
-
"additionalProperties": false,
|
|
315
|
-
"required": ["ownerDid", "agentDid"],
|
|
316
|
-
"properties": {
|
|
317
|
-
"ownerDid": {
|
|
318
|
-
"$ref": "#/$defs/didKey"
|
|
319
|
-
},
|
|
320
|
-
"agentDid": {
|
|
321
|
-
"$ref": "#/$defs/didKey"
|
|
322
|
-
},
|
|
323
|
-
"displayName": {
|
|
324
|
-
"type": "string",
|
|
325
|
-
"maxLength": 100
|
|
326
|
-
},
|
|
327
|
-
"relayEndpoint": {
|
|
328
|
-
"type": "string",
|
|
329
|
-
"format": "uri"
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
"artifactRef": {
|
|
334
|
-
"type": "object",
|
|
335
|
-
"additionalProperties": false,
|
|
336
|
-
"required": ["name", "digest", "mediaType", "sizeBytes"],
|
|
337
|
-
"properties": {
|
|
338
|
-
"name": {
|
|
339
|
-
"type": "string",
|
|
340
|
-
"pattern": "^[a-zA-Z0-9._/-]{1,255}$"
|
|
341
|
-
},
|
|
342
|
-
"digest": {
|
|
343
|
-
"$ref": "#/$defs/sha256Digest"
|
|
344
|
-
},
|
|
345
|
-
"mediaType": {
|
|
346
|
-
"type": "string",
|
|
347
|
-
"maxLength": 128
|
|
348
|
-
},
|
|
349
|
-
"sizeBytes": {
|
|
350
|
-
"type": "integer",
|
|
351
|
-
"minimum": 0,
|
|
352
|
-
"maximum": 1073741824
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
},
|
|
356
|
-
"capabilityGrantSpec": {
|
|
357
|
-
"type": "object",
|
|
358
|
-
"additionalProperties": false,
|
|
359
|
-
"required": ["capabilityId", "resource", "allowedTools", "maxInvocations", "expiresAt"],
|
|
360
|
-
"properties": {
|
|
361
|
-
"capabilityId": {
|
|
362
|
-
"type": "string",
|
|
363
|
-
"pattern": "^cap_[a-zA-Z0-9_-]{4,64}$"
|
|
364
|
-
},
|
|
365
|
-
"resource": {
|
|
366
|
-
"type": "string",
|
|
367
|
-
"minLength": 1,
|
|
368
|
-
"maxLength": 512,
|
|
369
|
-
"description": "Scoped URI or MCP resource prefix (e.g. mcp://owner-a/docs/public/*)."
|
|
370
|
-
},
|
|
371
|
-
"allowedTools": {
|
|
372
|
-
"type": "array",
|
|
373
|
-
"minItems": 1,
|
|
374
|
-
"maxItems": 50,
|
|
375
|
-
"items": {
|
|
376
|
-
"type": "string",
|
|
377
|
-
"minLength": 1,
|
|
378
|
-
"maxLength": 128
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
|
-
"argConstraints": {
|
|
382
|
-
"type": "object",
|
|
383
|
-
"description": "Optional JSON Schema constraining tool arguments."
|
|
384
|
-
},
|
|
385
|
-
"maxInvocations": {
|
|
386
|
-
"type": "integer",
|
|
387
|
-
"minimum": 1,
|
|
388
|
-
"maximum": 10000
|
|
389
|
-
},
|
|
390
|
-
"expiresAt": {
|
|
391
|
-
"type": "string",
|
|
392
|
-
"format": "date-time"
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
},
|
|
396
|
-
"signatureBlock": {
|
|
397
|
-
"type": "object",
|
|
398
|
-
"additionalProperties": false,
|
|
399
|
-
"required": ["signerDid", "canonicalization", "payloadDigest", "signedAt", "signature"],
|
|
400
|
-
"properties": {
|
|
401
|
-
"signerDid": {
|
|
402
|
-
"$ref": "#/$defs/didKey"
|
|
403
|
-
},
|
|
404
|
-
"canonicalization": {
|
|
405
|
-
"type": "string",
|
|
406
|
-
"const": "RFC8785-JCS"
|
|
407
|
-
},
|
|
408
|
-
"payloadDigest": {
|
|
409
|
-
"$ref": "#/$defs/sha256Digest"
|
|
410
|
-
},
|
|
411
|
-
"signedAt": {
|
|
412
|
-
"type": "string",
|
|
413
|
-
"format": "date-time"
|
|
414
|
-
},
|
|
415
|
-
"signature": {
|
|
416
|
-
"type": "string",
|
|
417
|
-
"pattern": "^ed25519:[a-zA-Z0-9+/=_-]{64,180}$"
|
|
418
|
-
}
|
|
419
|
-
}
|
|
3
|
+
"$id": "https://acp-spec.local/schemas/task-manifest.schema.json",
|
|
4
|
+
"title": "TaskManifest compatibility dispatcher",
|
|
5
|
+
"oneOf": [
|
|
6
|
+
{
|
|
7
|
+
"$ref": "https://acp-spec.local/schemas/v0.1/task-manifest.schema.json"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"$ref": "https://acp-spec.local/schemas/v0.2/task-manifest.schema.json"
|
|
420
11
|
}
|
|
421
|
-
|
|
12
|
+
]
|
|
422
13
|
}
|
package/docs/sdk.ja.md
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# 組み込み SDK
|
|
2
|
+
|
|
3
|
+
[English](sdk.md)
|
|
4
|
+
|
|
5
|
+
`sealbridge/sdk` は既存の Sealbridge API を組み込むための公開 ESM 入口です。
|
|
6
|
+
パッケージ 0.2.2 の次のリリースから利用できます。Node.js 22 以降と、TypeScript の
|
|
7
|
+
`NodeNext` など package exports に対応した解決方式を使います。JavaScript と型宣言を
|
|
8
|
+
同梱し、利用側にワークスペースパッケージを要求しません。
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
import { InviteStore, resolveStoredIdentity } from 'sealbridge/sdk';
|
|
12
|
+
import type { InviteStoreOptions, SavedInvite } from 'sealbridge/sdk';
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## 契約と互換性
|
|
16
|
+
|
|
17
|
+
以下の明示的な exports と型宣言の公開シグネチャが SDK の契約です。互換リリースで
|
|
18
|
+
項目を追加できます。0.x の破壊的変更は minor リリースとリリースノートを必要とし、
|
|
19
|
+
patch リリースでは互換性を維持します。既存の `sealbridge/dist/...` は引き続き解決
|
|
20
|
+
できますが、内部配置はこの契約の対象外です。組み込み側は `sealbridge/sdk` に移行
|
|
21
|
+
してください。CommonJS の入口はありません。
|
|
22
|
+
|
|
23
|
+
import だけでは、鍵の作成・招待の読み取り・待受開始・relay への通信を行いません。
|
|
24
|
+
各操作の動作・保存形式・承認要件・既定値は従来どおりです。relay の配備は不要です。
|
|
25
|
+
|
|
26
|
+
## 公開する値と型
|
|
27
|
+
|
|
28
|
+
すべて既存実装の直接の再 export で、ラッパーはありません。
|
|
29
|
+
|
|
30
|
+
| 分野 | 値 |
|
|
31
|
+
| --- | --- |
|
|
32
|
+
| 保存済み招待 | `InviteStore` |
|
|
33
|
+
| 招待文字列 | `KeychainSecretStore`, `openKeychainSecretStore` |
|
|
34
|
+
| 鍵の選択 | `FileKeyStore`, `KeychainKeyStore`, `inspectStoredIdentity`, `resolveStoredIdentity`, `selectKeyStore`, `keyStoreSelection`, `keychainService`, `resolveDataRoot` |
|
|
35
|
+
| 設定 | `readApplicationConfig`, `setApplicationKeyStore` |
|
|
36
|
+
| 接続の metadata | `WorkerTrustStore`(`listConnections` を含む), `workerIntakePath` |
|
|
37
|
+
| 接続交換 | `ConnectionService`, `ConnectionRouter`, `StoredConnectionExchange`, `syncConnections` |
|
|
38
|
+
| 所有者の確認コマンド | `connectionsCommand`, `connectionHumanReview` |
|
|
39
|
+
| 保留の審査 | `ConnectionAdmissionReview`, `HeldRequestReview`, `unavailableHeldContentReviewProvider` |
|
|
40
|
+
| 検索・招待 | `createSignedAgentCard`, `verifySignedAgentCard`, `createInviteToken`, `inviteTokenFromUri`, `isInviteTarget`, `parseAndVerifyInviteToken`, `discoverAgentCards`, `findDiscoveredAgentCard` |
|
|
41
|
+
| 鍵の生成 | `generateKeyPair` |
|
|
42
|
+
| MCP のホスト | `AcpMcpServer`, `mcpServerCommand`, `parseMcpServerArgs`, `mcpServerOptionsFromArgs` |
|
|
43
|
+
|
|
44
|
+
名前付きの型 exports:
|
|
45
|
+
|
|
46
|
+
- 招待: `SavedInvite`, `InviteStoreOptions`, `SecretStore`。
|
|
47
|
+
- 鍵・設定: `DataRootOptions`, `LocalIdentityOptions`, `IdentityRole`,
|
|
48
|
+
`IdentityStoreOptions`, `StoredIdentity`, `KeyStore`, `KeyStoreDescription`,
|
|
49
|
+
`KeyStoreSelection`, `KeyringEntry`, `KeyringModule`, `ApplicationConfig`,
|
|
50
|
+
`ApplicationConfigOptions`, `RelaySelectionOptions`。
|
|
51
|
+
- 接続: `ConnectionState`, `ConnectionTrust`, `ConnectionRecord`,
|
|
52
|
+
`ConnectionSummary`, `PriorApprovedPeer`, `ConnectionServiceOptions`,
|
|
53
|
+
`ConnectionServiceResult`, `ConnectionHumanReviewProvider`,
|
|
54
|
+
`ConnectionInspectionPort`, `ConnectionPersistencePort`, `ConnectionOffer`,
|
|
55
|
+
`ConnectionConsent`, `ConnectionOutboxEntry`, `ConnectionAcceptanceCommit`,
|
|
56
|
+
`ConnectionRedemptionCommit`, `ConnectionTransport`, `ConnectionFrame`,
|
|
57
|
+
`ConnectionRouterOptions`, `ConnectedEvent`, `ConnectionsCommandOptions`。
|
|
58
|
+
- 審査: `HeldRequestReviewOptions`, `HeldContentReviewProvider`,
|
|
59
|
+
`HeldInspectionContext`, `InspectionCompletion`, `ConnectionAdmissionReviewOptions`,
|
|
60
|
+
`InboundConnectionSummary`。
|
|
61
|
+
- MCP: `AcpMcpServerOptions`, `ApprovalProvider`, `ParsedMcpServerArgs`。
|
|
62
|
+
- core・転送: `KeyPair`, `Json`, `Signed`, `SignedEnvelope`, `Invite`,
|
|
63
|
+
`AgentSkill`, `DiscoveryAgentCard`, `CreateAgentCardOptions`, `SignedAgentCard`,
|
|
64
|
+
`RelayEndpointPolicy`, `ConnectionRequest`, `ConnectionAccepted`, `ConnectionAck`,
|
|
65
|
+
`ConnectionControl`, `RelayTransport`。
|
|
66
|
+
|
|
67
|
+
## 鍵と招待の保存
|
|
68
|
+
|
|
69
|
+
同じ所有者の操作には同じ鍵・データルートの options を渡します。requester と worker
|
|
70
|
+
の鍵は別です。`resolveDataRoot` はパスの解決だけを行い、`inspectStoredIdentity` は
|
|
71
|
+
鍵を作らず検査し、`resolveStoredIdentity` は必要なら作成します。`WorkerTrustStore`
|
|
72
|
+
は鍵の options ではなく `path` を受け取るため、
|
|
73
|
+
`workerIntakePath(owner.did, identityOptions)` を使います。
|
|
74
|
+
|
|
75
|
+
OS 保管庫を使う場合は `keyStore: 'keychain'` を明示し、`InviteStore.open` を使います。
|
|
76
|
+
任意のネイティブ backend を runtime から利用できるようにしてください。
|
|
77
|
+
[鍵の保存](../README.ja.md)も参照してください。ホストは公開 options 型の
|
|
78
|
+
`keyStore`・`keyringLoader`・`secretStore` を注入できます。既定は file で、既存の
|
|
79
|
+
inline 招待は自動移行しません。`SavedInvite` は metadata のみです。`resolve` が返す
|
|
80
|
+
招待文字列はローカルで扱い、ログや MCP 引数へ渡さず、MCP の委任には `workerRef`
|
|
81
|
+
または正確な alias を使います。
|
|
82
|
+
|
|
83
|
+
以下はホストの招待入力処理内で動かす関数です。データルートはホストが管理する
|
|
84
|
+
絶対パスとし、入力文字列はメモリ内で扱います。
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
import { InviteStore, resolveStoredIdentity } from 'sealbridge/sdk';
|
|
88
|
+
|
|
89
|
+
async function saveInvitation(link: string, dataRoot: string) {
|
|
90
|
+
const identityOptions = {
|
|
91
|
+
env: { ...process.env, SEALBRIDGE_DATA_DIR: dataRoot },
|
|
92
|
+
keyStore: 'keychain' as const,
|
|
93
|
+
};
|
|
94
|
+
const owner = await resolveStoredIdentity('requester', identityOptions);
|
|
95
|
+
const invites = await InviteStore.open(owner, identityOptions);
|
|
96
|
+
return invites.import(link); // SavedInvite: UI には metadata だけを返します。
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## 所有者の確認と接続
|
|
101
|
+
|
|
102
|
+
`connectionsCommand(['confirm-invite', workerRef], options)` は既存のコマンド処理です。
|
|
103
|
+
`ConnectionsCommandOptions.identityOptions` でローカルの鍵を選び、`review(summary)`
|
|
104
|
+
で正確な判断内容を所有者本人へ示し、その操作に対する返答を返します。`output` は
|
|
105
|
+
JSON の metadata・イベントを受け取ります。`now`・`transportFactory`・
|
|
106
|
+
`inspectionProvider` を注入できます。review の省略時は既存の TTY 規則を使い、
|
|
107
|
+
同意したとは扱いません。
|
|
108
|
+
|
|
109
|
+
独自のホスト処理では `ConnectionService` に永続化・転送・検査・
|
|
110
|
+
`ConnectionHumanReviewProvider` の各 port を渡せます。`ConnectionRouter` と
|
|
111
|
+
`StoredConnectionExchange` は既存ストアと保留の審査を service へ接続します。
|
|
112
|
+
取込・プレビューは同意ではありません。招待の確認はローカルの同意と要求の送信であり、
|
|
113
|
+
相手側の完了を示しません。署名付き交換を受信した後に
|
|
114
|
+
`WorkerTrustStore.listConnections()` を読み取るか、明示的に `syncConnections` を
|
|
115
|
+
使います。接続後も limited で、各タスクは検査と所有者が開く操作を必要とします。
|
|
116
|
+
既定の検査 provider は利用不可です。[接続交換](connections/connection-exchange.ja.md)と
|
|
117
|
+
[保留内容の審査](connections/held-content.ja.md)を参照してください。
|
|
118
|
+
|
|
119
|
+
`ConnectionAdmissionReview` は保留中の受信接続に `list()`・`approve(id)`・`reject(id)` を
|
|
120
|
+
提供します。判断は所有者の明示操作に結び付けます。`InboundConnectionSummary` は既知のとき
|
|
121
|
+
任意の `peerDisplayName` を含み、表示名は情報として扱います。組み込み検査の対象は接続情報だけです。
|
|
122
|
+
[受信接続の審査](connections/admission.ja.md#受信接続の審査)を参照してください。
|
|
123
|
+
|
|
124
|
+
## MCP のライフサイクル
|
|
125
|
+
|
|
126
|
+
専用の stdio MCP プロセスでは `mcpServerCommand(args, identityOptions)` が既存 CLI
|
|
127
|
+
のライフサイクルを実行します。ホストがストリームを管理する場合は `AcpMcpServer`
|
|
128
|
+
を作成し、`startDelivery()`、`serve(readable, writable)` の順に待ち、`finally` で
|
|
129
|
+
`stopDelivery()` を呼びます。ホストのフォーム承認には
|
|
130
|
+
`requireInteractiveApproval: true` を指定するか、`approvalProvider` を注入します。
|
|
131
|
+
無指定時の policy-auto の既定値は変わりません。送信前の承認と最終検収は別です。
|
|
132
|
+
接続の審査には別の `connectionReview` を使います。[MCP の説明](../README.ja.md)も
|
|
133
|
+
参照してください。
|