@agents24/node 0.5.1 → 0.5.2

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
@@ -1,6 +1,6 @@
1
1
  # `@agents24/node`
2
2
 
3
- Last Updated: 2026-08-24
3
+ Last Updated: 2026-09-01
4
4
 
5
5
  Trusted-server Agents24 SDK for organization-authenticated control-plane, server embed, authoring, artifact, client-deployment, and client-session mint operations. It supports Node 22 and 24 with ESM and CJS entrypoints.
6
6
 
@@ -63,7 +63,7 @@ This package is server-only. Never expose an organization API key to browser cod
63
63
 
64
64
  `@agents24/node/bff` exports `createAgents24BffHandler(...)`. Mount its
65
65
  returned Fetch handler at a same-origin path, provide an API-key client plus
66
- an `agents` array plus `conversationScope`, and resolve a stable customer
66
+ an `agents` array plus a stable `integrationId`, and resolve a stable customer
67
67
  `subject`. Supply an optional `issuer` only when an authenticated customer
68
68
  needs organization-wide governance. The bridge keeps the API key, configured
69
69
  Agents, and any optional exact Agent versions on the server; it does not use a
@@ -76,12 +76,10 @@ and `DELETE /threads/{threadId}` operate across the configured Agent set.
76
76
  Run-owned routes resolve the authoritative Agent from the stored run. The same
77
77
  browser client continues to use `createBffAgentClient({ basePath })`.
78
78
 
79
- Subject-only BFF principals use that stable subject directly with no identity
80
- or Resource Policy preflight. When `issuer` is present, the BFF resolves one
81
- opaque organization customer principal through
82
- `agents24.embed.resolveCustomerPrincipal({ issuer, subject })`, caches that
83
- lookup with a bounded 60-second single-flight window across conversation-scoped routes,
84
- and fetches Resource Policy only for explicit policy/bootstrap UI needs.
79
+ The BFF resolves every host principal to an opaque integration-scoped customer
80
+ principal through `agents24.embed.resolveCustomerPrincipal(...)`, caches that
81
+ lookup with a bounded 60-second single-flight window across BFF routes, and
82
+ fetches Resource Policy only for explicit policy/bootstrap UI needs.
85
83
 
86
84
  ## Customer Resource Policies
87
85
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractHash": "55fa8df5285c62edb41ce640b217eafbb17f32296ead83ae1b8d34c96d0c21f1",
2
+ "contractHash": "8746b5e49cbfa63e5dc88c2846180935ee61b89cf3a8ae540c86dc51e1eb0c11",
3
3
  "contractVersion": "0.3.0",
4
4
  "corpus": "conformance/v1/corpus.json",
5
5
  "generatedBy": "@agents24/sdk-contract",
@@ -19,7 +19,7 @@
19
19
  "runtime": "run-stream.v3"
20
20
  },
21
21
  "@agents24/node": {
22
- "contract": "55fa8df5285c62edb41ce640b217eafbb17f32296ead83ae1b8d34c96d0c21f1",
22
+ "contract": "8746b5e49cbfa63e5dc88c2846180935ee61b89cf3a8ae540c86dc51e1eb0c11",
23
23
  "node": "^22.0.0 || ^24.0.0"
24
24
  },
25
25
  "@agents24/react": {
@@ -31,7 +31,7 @@
31
31
  "protocolOwner": "@agents24/client"
32
32
  },
33
33
  "agents24": {
34
- "contract": "55fa8df5285c62edb41ce640b217eafbb17f32296ead83ae1b8d34c96d0c21f1",
34
+ "contract": "8746b5e49cbfa63e5dc88c2846180935ee61b89cf3a8ae540c86dc51e1eb0c11",
35
35
  "python": ">=3.10"
36
36
  }
37
37
  },
package/dist/bff.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Agents24 } from './client-xWr_OGEe.cjs';
1
+ import { A as Agents24 } from './client-B-fZ0Vk_.cjs';
2
2
  import '@agents24/client/protocol';
3
3
 
4
4
  interface AgentBffPrincipal {
package/dist/bff.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Agents24 } from './client-xWr_OGEe.js';
1
+ import { A as Agents24 } from './client-B-fZ0Vk_.js';
2
2
  import '@agents24/client/protocol';
3
3
 
4
4
  interface AgentBffPrincipal {
@@ -972,7 +972,6 @@ type ResourceInstallationPlan = {
972
972
  package_name: string;
973
973
  package_hash: string;
974
974
  actions: Array<Record<string, unknown>>;
975
- content: Array<Record<string, unknown>>;
976
975
  external_requirements: Array<Record<string, unknown>>;
977
976
  artifact_actions: Array<Record<string, unknown>>;
978
977
  artifact_readiness: Array<{
@@ -972,7 +972,6 @@ type ResourceInstallationPlan = {
972
972
  package_name: string;
973
973
  package_hash: string;
974
974
  actions: Array<Record<string, unknown>>;
975
- content: Array<Record<string, unknown>>;
976
975
  external_requirements: Array<Record<string, unknown>>;
977
976
  artifact_actions: Array<Record<string, unknown>>;
978
977
  artifact_readiness: Array<{