@the-ai-company/cbio-node-runtime 1.60.0 → 1.62.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.
Files changed (117) hide show
  1. package/README.md +6 -3
  2. package/dist/clients/agent/client.js +11 -2
  3. package/dist/clients/agent/client.js.map +1 -1
  4. package/dist/clients/agent/contracts.d.ts +2 -1
  5. package/dist/clients/owner/client.js +7 -1
  6. package/dist/clients/owner/client.js.map +1 -1
  7. package/dist/clients/owner/contracts.d.ts +2 -1
  8. package/dist/vault-core/contracts.d.ts +10 -3
  9. package/dist/vault-core/contracts.js.map +1 -1
  10. package/dist/vault-core/core.js +90 -6
  11. package/dist/vault-core/core.js.map +1 -1
  12. package/dist/vault-core/tool-metadata.js +6 -5
  13. package/dist/vault-core/tool-metadata.js.map +1 -1
  14. package/dist/vault-ingress/defaults.js +1 -0
  15. package/dist/vault-ingress/defaults.js.map +1 -1
  16. package/dist/vault-ingress/index.d.ts +3 -1
  17. package/dist/vault-ingress/index.js +17 -2
  18. package/dist/vault-ingress/index.js.map +1 -1
  19. package/dist/vault-ingress/remote-transport.js +2 -1
  20. package/dist/vault-ingress/remote-transport.js.map +1 -1
  21. package/docs/REFERENCE.md +3 -2
  22. package/docs/api/README.md +2 -2
  23. package/docs/api/classes/IdentityError.md +1 -1
  24. package/docs/api/classes/OwnerClientError.md +1 -1
  25. package/docs/api/classes/VaultCore.md +1 -1
  26. package/docs/api/classes/VaultCoreError.md +1 -1
  27. package/docs/api/enumerations/IdentityErrorCode.md +1 -1
  28. package/docs/api/enumerations/OwnerClientErrorCode.md +1 -1
  29. package/docs/api/functions/createAgentClient.md +1 -1
  30. package/docs/api/functions/createIdentity.md +1 -1
  31. package/docs/api/functions/createOwnerHttpFlowBoundary.md +1 -1
  32. package/docs/api/functions/createOwnerSession.md +1 -1
  33. package/docs/api/functions/createPersistentVaultCoreDependencies.md +1 -1
  34. package/docs/api/functions/createStandardAcquireBoundary.md +1 -1
  35. package/docs/api/functions/createStandardDispatchBoundary.md +1 -1
  36. package/docs/api/functions/createVault.md +1 -1
  37. package/docs/api/functions/createVaultClient.md +1 -1
  38. package/docs/api/functions/createVaultCore.md +1 -1
  39. package/docs/api/functions/createVaultCoreDependencies.md +1 -1
  40. package/docs/api/functions/createVaultService.md +1 -1
  41. package/docs/api/functions/createWorkspaceStorage.md +1 -1
  42. package/docs/api/functions/deriveIdentityId.md +1 -1
  43. package/docs/api/functions/deriveVaultWorkingKeyFromPassword.md +1 -1
  44. package/docs/api/functions/getDefaultWorkspaceDir.md +1 -1
  45. package/docs/api/functions/handleVaultAgentControlHttp.md +1 -1
  46. package/docs/api/functions/handleVaultHttpDispatch.md +1 -1
  47. package/docs/api/functions/initializeVaultCustody.md +1 -1
  48. package/docs/api/functions/listVaults.md +1 -1
  49. package/docs/api/functions/readVaultProfile.md +1 -1
  50. package/docs/api/functions/recoverVault.md +1 -1
  51. package/docs/api/functions/recoverVaultWorkingKey.md +1 -1
  52. package/docs/api/functions/restoreIdentity.md +1 -1
  53. package/docs/api/functions/updateVaultMetadata.md +1 -1
  54. package/docs/api/functions/wrapVaultCoreAsVaultService.md +1 -1
  55. package/docs/api/functions/writeVaultProfile.md +1 -1
  56. package/docs/api/interfaces/AgentClient.md +1 -1
  57. package/docs/api/interfaces/AgentDispatchIntent.md +7 -1
  58. package/docs/api/interfaces/AgentDispatchTransport.md +1 -1
  59. package/docs/api/interfaces/AgentIdentity.md +1 -1
  60. package/docs/api/interfaces/AgentSigner.md +1 -1
  61. package/docs/api/interfaces/AgentSubmitCapabilityRequestInput.md +7 -7
  62. package/docs/api/interfaces/CbioRuntime.md +1 -1
  63. package/docs/api/interfaces/CreateAgentClientOptions.md +1 -1
  64. package/docs/api/interfaces/CreateIdentityOptions.md +1 -1
  65. package/docs/api/interfaces/CreateOwnerSessionOptions.md +1 -1
  66. package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +1 -1
  67. package/docs/api/interfaces/CreateVaultClientOptions.md +1 -1
  68. package/docs/api/interfaces/CreateVaultOptions.md +1 -1
  69. package/docs/api/interfaces/CreatedVault.md +1 -1
  70. package/docs/api/interfaces/DefaultPolicyEngineOptions.md +1 -1
  71. package/docs/api/interfaces/IStorageProvider.md +1 -1
  72. package/docs/api/interfaces/InitializeVaultCustodyOptions.md +1 -1
  73. package/docs/api/interfaces/InitializedVaultCustody.md +1 -1
  74. package/docs/api/interfaces/OwnerAgentProvisionResult.md +1 -1
  75. package/docs/api/interfaces/OwnerCreateSecretInput.md +1 -1
  76. package/docs/api/interfaces/OwnerRemoveSecretInput.md +1 -1
  77. package/docs/api/interfaces/OwnerSensitiveActionConfirmation.md +1 -1
  78. package/docs/api/interfaces/OwnerSensitiveActionContext.md +1 -1
  79. package/docs/api/interfaces/OwnerSession.md +1 -1
  80. package/docs/api/interfaces/OwnerUpdateSecretInput.md +1 -1
  81. package/docs/api/interfaces/RecoverVaultOptions.md +1 -1
  82. package/docs/api/interfaces/RecoveredVault.md +1 -1
  83. package/docs/api/interfaces/RestoreIdentityOptions.md +1 -1
  84. package/docs/api/interfaces/Signer.md +1 -1
  85. package/docs/api/interfaces/VaultApproveCapabilityRequestInput.md +7 -1
  86. package/docs/api/interfaces/VaultApproveDispatchInput.md +1 -1
  87. package/docs/api/interfaces/VaultAuditQueryInput.md +1 -1
  88. package/docs/api/interfaces/VaultClient.md +1 -1
  89. package/docs/api/interfaces/VaultCoreDependenciesOptions.md +1 -1
  90. package/docs/api/interfaces/VaultCreateAgentInput.md +1 -1
  91. package/docs/api/interfaces/VaultExportSecretInput.md +1 -1
  92. package/docs/api/interfaces/VaultGrantCapabilityInput.md +1 -1
  93. package/docs/api/interfaces/VaultGrantCapabilityRequest.md +1 -1
  94. package/docs/api/interfaces/VaultIdentity.md +1 -1
  95. package/docs/api/interfaces/VaultImportAgentInput.md +1 -1
  96. package/docs/api/interfaces/VaultIssueSessionTokenInput.md +1 -1
  97. package/docs/api/interfaces/VaultListAgentsInput.md +1 -1
  98. package/docs/api/interfaces/VaultListCapabilitiesInput.md +1 -1
  99. package/docs/api/interfaces/VaultListSecretsInput.md +1 -1
  100. package/docs/api/interfaces/VaultMetadata.md +1 -1
  101. package/docs/api/interfaces/VaultObject.md +1 -1
  102. package/docs/api/interfaces/VaultProfile.md +1 -1
  103. package/docs/api/interfaces/VaultReadAgentPrivateKeyInput.md +1 -1
  104. package/docs/api/interfaces/VaultReadSecretPlaintextInput.md +1 -1
  105. package/docs/api/interfaces/VaultRegisterFlowInput.md +1 -1
  106. package/docs/api/interfaces/VaultRevokeCapabilityInput.md +1 -1
  107. package/docs/api/interfaces/VaultRevokeSessionTokenInput.md +1 -1
  108. package/docs/api/interfaces/VaultSigner.md +1 -1
  109. package/docs/api/interfaces/VaultSubmitCapabilityRequestInput.md +7 -7
  110. package/docs/api/interfaces/VaultUpdateAgentInput.md +1 -1
  111. package/docs/api/type-aliases/AgentCapabilityEnvelope.md +1 -1
  112. package/docs/api/type-aliases/AgentVisibleSecretRecord.md +1 -1
  113. package/docs/api/type-aliases/CbioRuntimeModule.md +1 -1
  114. package/docs/api/type-aliases/OwnerGrantCapabilityInput.md +1 -1
  115. package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +1 -1
  116. package/docs/zh/README.md +4 -1
  117. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -18,12 +18,6 @@
18
18
 
19
19
  ***
20
20
 
21
- ### justification?
22
-
23
- > `optional` **justification?**: `string`
24
-
25
- ***
26
-
27
21
  ### operation?
28
22
 
29
23
  > `optional` **operation?**: `string`
@@ -50,6 +44,12 @@
50
44
 
51
45
  ***
52
46
 
47
+ ### reason?
48
+
49
+ > `optional` **reason?**: `string`
50
+
51
+ ***
52
+
53
53
  ### requestedAt?
54
54
 
55
55
  > `optional` **requestedAt?**: `string`
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.60.0**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.62.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
package/docs/zh/README.md CHANGED
@@ -132,7 +132,9 @@ Agent 进程不会直接使用原始私钥执行请求。即使 Agent 拥有身
132
132
 
133
133
  给 LLM 的直白规则:
134
134
  - `agentDispatch(...)` = 立刻尝试执行真实任务
135
+ - `agentDispatch(...)` 必须带一条给 owner 看的 `reason`,说明为什么要发这个请求
135
136
  - `agentSubmitCapabilityRequest(...)` = 只申请权限,不会执行任务
137
+ - `agentSubmitCapabilityRequest(...)` 也必须带 `reason`,说明为什么需要这项权限
136
138
  - `agentListRequests()` / `agentGetRequest(...)` = 在请求执行后查看异步结果
137
139
  - `ownerListRequests()` / `ownerGetRequest(...)` = owner 查看完整请求记录,用于决定是否放行 read
138
140
 
@@ -172,7 +174,8 @@ if (pending.length > 0) {
172
174
  requestId: pending[0].requestId
173
175
  });
174
176
  await client.ownerApproveCapabilityRead({
175
- requestId: pending[0].requestId
177
+ requestId: pending[0].requestId,
178
+ read: { mode: 'custom', paths: ['data.id', 'data.status'] }
176
179
  });
177
180
  }
178
181
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-ai-company/cbio-node-runtime",
3
- "version": "1.60.0",
3
+ "version": "1.62.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },