@the-ai-company/cbio-node-runtime 1.57.0 → 1.59.1
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 +53 -30
- package/dist/clients/agent/client.d.ts +3 -1
- package/dist/clients/agent/client.js +41 -11
- package/dist/clients/agent/client.js.map +1 -1
- package/dist/clients/agent/contracts.d.ts +5 -2
- package/dist/clients/owner/client.d.ts +8 -10
- package/dist/clients/owner/client.js +45 -38
- package/dist/clients/owner/client.js.map +1 -1
- package/dist/clients/owner/contracts.d.ts +11 -25
- package/dist/clients/owner/index.d.ts +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/vault-core/contracts.d.ts +133 -46
- package/dist/vault-core/contracts.js +4 -3
- package/dist/vault-core/contracts.js.map +1 -1
- package/dist/vault-core/core.d.ts +10 -5
- package/dist/vault-core/core.js +315 -160
- package/dist/vault-core/core.js.map +1 -1
- package/dist/vault-core/defaults.d.ts +8 -4
- package/dist/vault-core/defaults.js +37 -70
- package/dist/vault-core/defaults.js.map +1 -1
- package/dist/vault-core/index.d.ts +1 -1
- package/dist/vault-core/index.js.map +1 -1
- package/dist/vault-core/persistence.d.ts +11 -2
- package/dist/vault-core/persistence.js +37 -1
- package/dist/vault-core/persistence.js.map +1 -1
- package/dist/vault-core/ports.d.ts +7 -2
- package/dist/vault-core/tool-metadata.js +25 -8
- package/dist/vault-core/tool-metadata.js.map +1 -1
- package/dist/vault-ingress/defaults.d.ts +2 -0
- package/dist/vault-ingress/defaults.js +6 -0
- package/dist/vault-ingress/defaults.js.map +1 -1
- package/dist/vault-ingress/index.d.ts +39 -10
- package/dist/vault-ingress/index.js +142 -56
- package/dist/vault-ingress/index.js.map +1 -1
- package/dist/vault-ingress/remote-transport.d.ts +2 -0
- package/dist/vault-ingress/remote-transport.js +33 -4
- package/dist/vault-ingress/remote-transport.js.map +1 -1
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/REFERENCE.md +36 -27
- package/docs/WORKS_WITH_CUSTOM_FETCH.md +2 -2
- package/docs/api/README.md +2 -4
- package/docs/api/classes/IdentityError.md +1 -1
- package/docs/api/classes/OwnerClientError.md +1 -1
- package/docs/api/classes/VaultCore.md +81 -33
- package/docs/api/classes/VaultCoreError.md +1 -1
- package/docs/api/enumerations/IdentityErrorCode.md +1 -1
- package/docs/api/enumerations/OwnerClientErrorCode.md +1 -1
- package/docs/api/functions/createAgentClient.md +1 -1
- package/docs/api/functions/createIdentity.md +1 -1
- package/docs/api/functions/createOwnerHttpFlowBoundary.md +1 -1
- package/docs/api/functions/createOwnerSession.md +1 -1
- package/docs/api/functions/createPersistentVaultCoreDependencies.md +1 -1
- package/docs/api/functions/createStandardAcquireBoundary.md +1 -1
- package/docs/api/functions/createStandardDispatchBoundary.md +1 -1
- package/docs/api/functions/createVault.md +1 -1
- package/docs/api/functions/createVaultClient.md +1 -1
- package/docs/api/functions/createVaultCore.md +1 -1
- package/docs/api/functions/createVaultCoreDependencies.md +1 -1
- package/docs/api/functions/createVaultService.md +1 -1
- package/docs/api/functions/createWorkspaceStorage.md +1 -1
- package/docs/api/functions/deriveIdentityId.md +1 -1
- package/docs/api/functions/deriveVaultWorkingKeyFromPassword.md +1 -1
- package/docs/api/functions/getDefaultWorkspaceDir.md +1 -1
- package/docs/api/functions/handleVaultAgentControlHttp.md +1 -1
- package/docs/api/functions/handleVaultHttpDispatch.md +1 -1
- package/docs/api/functions/initializeVaultCustody.md +1 -1
- package/docs/api/functions/listVaults.md +1 -1
- package/docs/api/functions/readVaultProfile.md +1 -1
- package/docs/api/functions/recoverVault.md +1 -1
- package/docs/api/functions/recoverVaultWorkingKey.md +1 -1
- package/docs/api/functions/restoreIdentity.md +1 -1
- package/docs/api/functions/updateVaultMetadata.md +1 -1
- package/docs/api/functions/wrapVaultCoreAsVaultService.md +1 -1
- package/docs/api/functions/writeVaultProfile.md +1 -1
- package/docs/api/interfaces/AgentClient.md +27 -1
- package/docs/api/interfaces/AgentDispatchIntent.md +1 -1
- package/docs/api/interfaces/AgentDispatchTransport.md +33 -1
- package/docs/api/interfaces/AgentIdentity.md +1 -1
- package/docs/api/interfaces/AgentSigner.md +1 -1
- package/docs/api/interfaces/AgentSubmitCapabilityRequestInput.md +9 -9
- package/docs/api/interfaces/CbioRuntime.md +1 -1
- package/docs/api/interfaces/CreateAgentClientOptions.md +1 -1
- package/docs/api/interfaces/CreateIdentityOptions.md +1 -1
- package/docs/api/interfaces/CreateOwnerSessionOptions.md +1 -1
- package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +1 -1
- package/docs/api/interfaces/CreateVaultClientOptions.md +1 -1
- package/docs/api/interfaces/CreateVaultOptions.md +1 -1
- package/docs/api/interfaces/CreatedVault.md +1 -1
- package/docs/api/interfaces/DefaultPolicyEngineOptions.md +1 -1
- package/docs/api/interfaces/IStorageProvider.md +1 -1
- package/docs/api/interfaces/InitializeVaultCustodyOptions.md +1 -1
- package/docs/api/interfaces/InitializedVaultCustody.md +1 -1
- package/docs/api/interfaces/OwnerAgentProvisionResult.md +1 -1
- package/docs/api/interfaces/OwnerSensitiveActionConfirmation.md +1 -1
- package/docs/api/interfaces/OwnerSensitiveActionContext.md +1 -1
- package/docs/api/interfaces/OwnerSession.md +1 -1
- package/docs/api/interfaces/OwnerStoreSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerWriteSecretInput.md +1 -7
- package/docs/api/interfaces/RecoverVaultOptions.md +1 -1
- package/docs/api/interfaces/RecoveredVault.md +1 -1
- package/docs/api/interfaces/RestoreIdentityOptions.md +1 -1
- package/docs/api/interfaces/Signer.md +1 -1
- package/docs/api/interfaces/VaultApproveCapabilityRequestInput.md +1 -1
- package/docs/api/interfaces/VaultApproveDispatchInput.md +1 -1
- package/docs/api/interfaces/VaultAuditQueryInput.md +1 -1
- package/docs/api/interfaces/VaultClient.md +58 -44
- package/docs/api/interfaces/VaultCoreDependenciesOptions.md +1 -1
- package/docs/api/interfaces/VaultCreateAgentInput.md +1 -1
- package/docs/api/interfaces/VaultDeleteSecretInput.md +1 -1
- package/docs/api/interfaces/VaultExportSecretInput.md +1 -1
- package/docs/api/interfaces/VaultGrantCapabilityInput.md +9 -21
- package/docs/api/interfaces/VaultGrantCapabilityRequest.md +1 -1
- package/docs/api/interfaces/VaultIdentity.md +1 -1
- package/docs/api/interfaces/VaultImportAgentInput.md +1 -1
- package/docs/api/interfaces/VaultIssueSessionTokenInput.md +1 -1
- package/docs/api/interfaces/VaultListAgentsInput.md +1 -1
- package/docs/api/interfaces/VaultListCapabilitiesInput.md +1 -1
- package/docs/api/interfaces/VaultListSecretsInput.md +1 -1
- package/docs/api/interfaces/VaultMetadata.md +1 -1
- package/docs/api/interfaces/VaultObject.md +1 -1
- package/docs/api/interfaces/VaultProfile.md +1 -1
- package/docs/api/interfaces/VaultReadAgentPrivateKeyInput.md +1 -1
- package/docs/api/interfaces/VaultReadSecretPlaintextInput.md +1 -1
- package/docs/api/interfaces/VaultRegisterFlowInput.md +1 -1
- package/docs/api/interfaces/VaultRevokeCapabilityInput.md +1 -1
- package/docs/api/interfaces/VaultRevokeSessionTokenInput.md +1 -1
- package/docs/api/interfaces/VaultSigner.md +1 -1
- package/docs/api/interfaces/VaultSubmitCapabilityRequestInput.md +11 -17
- package/docs/api/interfaces/VaultUpdateAgentInput.md +1 -1
- package/docs/api/type-aliases/AgentCapabilityEnvelope.md +1 -1
- package/docs/api/type-aliases/AgentVisibleSecretRecord.md +1 -1
- package/docs/api/type-aliases/CbioRuntimeModule.md +1 -1
- package/docs/api/type-aliases/OwnerGrantCapabilityInput.md +1 -1
- package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +1 -1
- package/docs/zh/README.md +26 -16
- package/examples/process-isolation.ts +7 -5
- package/package.json +1 -1
- package/docs/api/interfaces/OwnerDefineSecretTargetsInput.md +0 -23
- package/docs/api/interfaces/OwnerSecretTargetBinding.md +0 -35
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.59.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -117,6 +117,22 @@ This is the primary implementation of the Vault logic.
|
|
|
117
117
|
|
|
118
118
|
***
|
|
119
119
|
|
|
120
|
+
### agentGetRequest()
|
|
121
|
+
|
|
122
|
+
> **agentGetRequest**(`request`): `Promise`\<`AgentRequestResult`\>
|
|
123
|
+
|
|
124
|
+
#### Parameters
|
|
125
|
+
|
|
126
|
+
##### request
|
|
127
|
+
|
|
128
|
+
`AgentGetRequestRequest`
|
|
129
|
+
|
|
130
|
+
#### Returns
|
|
131
|
+
|
|
132
|
+
`Promise`\<`AgentRequestResult`\>
|
|
133
|
+
|
|
134
|
+
***
|
|
135
|
+
|
|
120
136
|
### agentGetRuntimeManifest()
|
|
121
137
|
|
|
122
138
|
> **agentGetRuntimeManifest**(`command`): `Promise`\<`AgentRuntimeManifest`\>
|
|
@@ -149,6 +165,22 @@ This is the primary implementation of the Vault logic.
|
|
|
149
165
|
|
|
150
166
|
***
|
|
151
167
|
|
|
168
|
+
### agentListRequests()
|
|
169
|
+
|
|
170
|
+
> **agentListRequests**(`request`): `Promise`\<readonly `AgentVisibleRequestRecord`[]\>
|
|
171
|
+
|
|
172
|
+
#### Parameters
|
|
173
|
+
|
|
174
|
+
##### request
|
|
175
|
+
|
|
176
|
+
`AgentListRequestsRequest`
|
|
177
|
+
|
|
178
|
+
#### Returns
|
|
179
|
+
|
|
180
|
+
`Promise`\<readonly `AgentVisibleRequestRecord`[]\>
|
|
181
|
+
|
|
182
|
+
***
|
|
183
|
+
|
|
152
184
|
### agentListSecrets()
|
|
153
185
|
|
|
154
186
|
> **agentListSecrets**(`request`): `Promise`\<readonly `AgentVisibleSecretRecord`[]\>
|
|
@@ -181,67 +213,99 @@ This is the primary implementation of the Vault logic.
|
|
|
181
213
|
|
|
182
214
|
***
|
|
183
215
|
|
|
184
|
-
###
|
|
216
|
+
### ownerAllowAlways()
|
|
185
217
|
|
|
186
|
-
> **
|
|
218
|
+
> **ownerAllowAlways**(`command`): `Promise`\<`DispatchResult`\>
|
|
187
219
|
|
|
188
220
|
#### Parameters
|
|
189
221
|
|
|
190
222
|
##### command
|
|
191
223
|
|
|
192
|
-
`
|
|
224
|
+
`OwnerAllowAlwaysCommand`
|
|
193
225
|
|
|
194
226
|
#### Returns
|
|
195
227
|
|
|
196
|
-
`Promise`\<`
|
|
228
|
+
`Promise`\<`DispatchResult`\>
|
|
197
229
|
|
|
198
230
|
***
|
|
199
231
|
|
|
200
|
-
###
|
|
232
|
+
### ownerAllowOnce()
|
|
201
233
|
|
|
202
|
-
> **
|
|
234
|
+
> **ownerAllowOnce**(`command`): `Promise`\<`DispatchResult`\>
|
|
203
235
|
|
|
204
236
|
#### Parameters
|
|
205
237
|
|
|
206
238
|
##### command
|
|
207
239
|
|
|
208
|
-
`
|
|
240
|
+
`OwnerAllowOnceCommand`
|
|
209
241
|
|
|
210
242
|
#### Returns
|
|
211
243
|
|
|
212
|
-
`Promise`\<`
|
|
244
|
+
`Promise`\<`DispatchResult`\>
|
|
213
245
|
|
|
214
246
|
***
|
|
215
247
|
|
|
216
|
-
###
|
|
248
|
+
### ownerApproveCapabilityRead()
|
|
217
249
|
|
|
218
|
-
> **
|
|
250
|
+
> **ownerApproveCapabilityRead**(`command`): `Promise`\<`CapabilityStateRecord`\>
|
|
219
251
|
|
|
220
252
|
#### Parameters
|
|
221
253
|
|
|
222
254
|
##### command
|
|
223
255
|
|
|
224
|
-
`
|
|
256
|
+
`OwnerApproveCapabilityReadCommand`
|
|
225
257
|
|
|
226
258
|
#### Returns
|
|
227
259
|
|
|
228
|
-
`Promise`\<`
|
|
260
|
+
`Promise`\<`CapabilityStateRecord`\>
|
|
229
261
|
|
|
230
262
|
***
|
|
231
263
|
|
|
232
|
-
###
|
|
264
|
+
### ownerApproveCapabilityWrite()
|
|
233
265
|
|
|
234
|
-
> **
|
|
266
|
+
> **ownerApproveCapabilityWrite**(`command`): `Promise`\<`CapabilityStateRecord`\>
|
|
235
267
|
|
|
236
268
|
#### Parameters
|
|
237
269
|
|
|
238
270
|
##### command
|
|
239
271
|
|
|
240
|
-
`
|
|
272
|
+
`OwnerApproveCapabilityWriteCommand`
|
|
241
273
|
|
|
242
274
|
#### Returns
|
|
243
275
|
|
|
244
|
-
`Promise`\<`
|
|
276
|
+
`Promise`\<`CapabilityStateRecord`\>
|
|
277
|
+
|
|
278
|
+
***
|
|
279
|
+
|
|
280
|
+
### ownerDeleteSecret()
|
|
281
|
+
|
|
282
|
+
> **ownerDeleteSecret**(`command`): `Promise`\<`void`\>
|
|
283
|
+
|
|
284
|
+
#### Parameters
|
|
285
|
+
|
|
286
|
+
##### command
|
|
287
|
+
|
|
288
|
+
`OwnerDeleteSecretCommand`
|
|
289
|
+
|
|
290
|
+
#### Returns
|
|
291
|
+
|
|
292
|
+
`Promise`\<`void`\>
|
|
293
|
+
|
|
294
|
+
***
|
|
295
|
+
|
|
296
|
+
### ownerDeny()
|
|
297
|
+
|
|
298
|
+
> **ownerDeny**(`command`): `Promise`\<`CapabilityStateRecord`\>
|
|
299
|
+
|
|
300
|
+
#### Parameters
|
|
301
|
+
|
|
302
|
+
##### command
|
|
303
|
+
|
|
304
|
+
`OwnerDenyCommand`
|
|
305
|
+
|
|
306
|
+
#### Returns
|
|
307
|
+
|
|
308
|
+
`Promise`\<`CapabilityStateRecord`\>
|
|
245
309
|
|
|
246
310
|
***
|
|
247
311
|
|
|
@@ -471,22 +535,6 @@ This is the primary implementation of the Vault logic.
|
|
|
471
535
|
|
|
472
536
|
***
|
|
473
537
|
|
|
474
|
-
### ownerRejectCapabilityState()
|
|
475
|
-
|
|
476
|
-
> **ownerRejectCapabilityState**(`command`): `Promise`\<`CapabilityStateRecord`\>
|
|
477
|
-
|
|
478
|
-
#### Parameters
|
|
479
|
-
|
|
480
|
-
##### command
|
|
481
|
-
|
|
482
|
-
`OwnerRejectCapabilityStateCommand`
|
|
483
|
-
|
|
484
|
-
#### Returns
|
|
485
|
-
|
|
486
|
-
`Promise`\<`CapabilityStateRecord`\>
|
|
487
|
-
|
|
488
|
-
***
|
|
489
|
-
|
|
490
538
|
### ownerRevokeCapability()
|
|
491
539
|
|
|
492
540
|
> **ownerRevokeCapability**(`command`): `Promise`\<`void`\>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.59.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -42,6 +42,22 @@ const result = await agent.agentDispatch({
|
|
|
42
42
|
|
|
43
43
|
***
|
|
44
44
|
|
|
45
|
+
### agentGetRequest()
|
|
46
|
+
|
|
47
|
+
> **agentGetRequest**(`requestId`): `Promise`\<`AgentRequestResult`\>
|
|
48
|
+
|
|
49
|
+
#### Parameters
|
|
50
|
+
|
|
51
|
+
##### requestId
|
|
52
|
+
|
|
53
|
+
`string`
|
|
54
|
+
|
|
55
|
+
#### Returns
|
|
56
|
+
|
|
57
|
+
`Promise`\<`AgentRequestResult`\>
|
|
58
|
+
|
|
59
|
+
***
|
|
60
|
+
|
|
45
61
|
### agentIntrospect()
|
|
46
62
|
|
|
47
63
|
> **agentIntrospect**(): `Promise`\<`AgentRuntimeManifest`\>
|
|
@@ -65,6 +81,16 @@ Equivalent to '--help' or 'llms.txt' for the agent.
|
|
|
65
81
|
|
|
66
82
|
***
|
|
67
83
|
|
|
84
|
+
### agentListRequests()
|
|
85
|
+
|
|
86
|
+
> **agentListRequests**(): `Promise`\<readonly `AgentVisibleRequestRecord`[]\>
|
|
87
|
+
|
|
88
|
+
#### Returns
|
|
89
|
+
|
|
90
|
+
`Promise`\<readonly `AgentVisibleRequestRecord`[]\>
|
|
91
|
+
|
|
92
|
+
***
|
|
93
|
+
|
|
68
94
|
### agentListSecrets()
|
|
69
95
|
|
|
70
96
|
> **agentListSecrets**(): `Promise`\<readonly `AgentVisibleSecretRecord`[]\>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.59.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -22,6 +22,22 @@
|
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
25
|
+
### agentGetRequest()
|
|
26
|
+
|
|
27
|
+
> **agentGetRequest**(`request`): `Promise`\<`AgentRequestResult`\>
|
|
28
|
+
|
|
29
|
+
#### Parameters
|
|
30
|
+
|
|
31
|
+
##### request
|
|
32
|
+
|
|
33
|
+
`AgentGetRequestRequest`
|
|
34
|
+
|
|
35
|
+
#### Returns
|
|
36
|
+
|
|
37
|
+
`Promise`\<`AgentRequestResult`\>
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
25
41
|
### agentGetRuntimeManifest()
|
|
26
42
|
|
|
27
43
|
> **agentGetRuntimeManifest**(`request`): `Promise`\<`AgentRuntimeManifest`\>
|
|
@@ -54,6 +70,22 @@
|
|
|
54
70
|
|
|
55
71
|
***
|
|
56
72
|
|
|
73
|
+
### agentListRequests()
|
|
74
|
+
|
|
75
|
+
> **agentListRequests**(`request`): `Promise`\<readonly `AgentVisibleRequestRecord`[]\>
|
|
76
|
+
|
|
77
|
+
#### Parameters
|
|
78
|
+
|
|
79
|
+
##### request
|
|
80
|
+
|
|
81
|
+
`AgentListRequestsRequest`
|
|
82
|
+
|
|
83
|
+
#### Returns
|
|
84
|
+
|
|
85
|
+
`Promise`\<readonly `AgentVisibleRequestRecord`[]\>
|
|
86
|
+
|
|
87
|
+
***
|
|
88
|
+
|
|
57
89
|
### agentListSecrets()
|
|
58
90
|
|
|
59
91
|
> **agentListSecrets**(`request`): `Promise`\<readonly `AgentVisibleSecretRecord`[]\>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.59.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### operation?
|
|
16
16
|
|
|
17
|
-
> **
|
|
17
|
+
> `optional` **operation?**: `"dispatch_http"` \| `"custom_http"`
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
###
|
|
21
|
+
### read
|
|
22
22
|
|
|
23
|
-
>
|
|
23
|
+
> **read**: `CapabilityReadPolicy`
|
|
24
24
|
|
|
25
25
|
***
|
|
26
26
|
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
###
|
|
33
|
+
### secretAliases?
|
|
34
34
|
|
|
35
|
-
> **
|
|
35
|
+
> `optional` **secretAliases?**: readonly `string`[]
|
|
36
36
|
|
|
37
37
|
***
|
|
38
38
|
|
|
39
|
-
###
|
|
39
|
+
### write
|
|
40
40
|
|
|
41
|
-
>
|
|
41
|
+
> **write**: `Omit`\<`CapabilityWritePolicy`, `"secretIds"`\>
|