@the-ai-company/cbio-node-runtime 0.31.0 → 0.33.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.md CHANGED
@@ -25,6 +25,8 @@ Import and use `CbioIdentity`, `CbioAgent` from the main export.
25
25
 
26
26
  ## Install
27
27
 
28
+ Requires Node >= 18.
29
+
28
30
  ```bash
29
31
  npm install @the-ai-company/cbio-node-runtime
30
32
  ```
@@ -32,10 +34,11 @@ npm install @the-ai-company/cbio-node-runtime
32
34
  ## Usage
33
35
 
34
36
  ```ts
35
- import { CbioIdentity, generateIdentityKeys } from '@the-ai-company/cbio-node-runtime';
37
+ import { CbioIdentity, CbioAgent, generateIdentityKeys } from '@the-ai-company/cbio-node-runtime';
36
38
 
37
39
  const keys = generateIdentityKeys();
38
40
  const identity = await CbioIdentity.load({ privateKey: keys.privateKey });
41
+ const agent: CbioAgent = identity.getAgent(); // minimal permissions: vault:fetch, vault:list
39
42
  ```
40
43
 
41
44
  ## Build
@@ -6,7 +6,7 @@ export { CbioIdentity, CbioAgent } from "../agent/agent.js";
6
6
  export type { ActivityLogConfig, GetAgentOptions, IssuedCapabilityName, ManagedAgentHandleConfig, ManagedAgentCapabilityInfo, ManagedAgentCapabilityStatus, ManagedAgentContext, ManagedAgentIssueConfig, ManagedAgentIssueOptions, ManagedAgentLoadOptions, ManagedAgentStorageConfig, RegisterChildIdentityOptions, RegisterChildIdentityResult, IdentityLoadKeys, IdentityLoadOptions, RuntimePermissionName, RuntimePermissions, } from "../agent/agent.js";
7
7
  export type { MergeResult } from "../vault/vault.js";
8
8
  export type { FetchFailure, FetchJsonAndAddSecretOptions, FetchJsonAndUpdateSecretOptions, FetchResult, FetchSuccess, } from "../http/secretAcquisition.js";
9
- export { generateIdentityKeys } from "../protocol/crypto.js";
9
+ export { generateIdentityKeys, derivePublicKey } from "../protocol/crypto.js";
10
10
  export { IdentityError, IdentityErrorCode } from "../errors.js";
11
11
  export type { IStorageProvider } from "../storage/provider.js";
12
12
  export { FsStorageProvider } from "../storage/fs.js";
@@ -3,7 +3,7 @@
3
3
  * Owner, Agent, storage, errors. Consumer surface only.
4
4
  */
5
5
  export { CbioIdentity, CbioAgent } from "../agent/agent.js";
6
- export { generateIdentityKeys } from "../protocol/crypto.js";
6
+ export { generateIdentityKeys, derivePublicKey } from "../protocol/crypto.js";
7
7
  export { IdentityError, IdentityErrorCode } from "../errors.js";
8
8
  export { FsStorageProvider } from "../storage/fs.js";
9
9
  export { MemoryStorageProvider } from "../storage/memory.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AA4B5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EACL,mBAAmB,GAIpB,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AA4B5D,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EACL,mBAAmB,GAIpB,MAAM,2BAA2B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-ai-company/cbio-node-runtime",
3
- "version": "0.31.0",
3
+ "version": "0.33.0",
4
4
  "description": "Node.js runtime for cbio identity and credential vault. Library only, no CLI or TUI.",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime/index.js",