@compose-market/sdk 0.8.9 → 0.8.11
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/CHANGELOG.md +344 -0
- package/dist/events.d.ts +6 -9
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +14 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -12
- package/dist/index.js.map +1 -1
- package/dist/resources/accounts.d.ts.map +1 -1
- package/dist/resources/accounts.js +1 -1
- package/dist/resources/accounts.js.map +1 -1
- package/dist/resources/agent.d.ts +22 -9
- package/dist/resources/agent.d.ts.map +1 -1
- package/dist/resources/agent.js +543 -234
- package/dist/resources/agent.js.map +1 -1
- package/dist/resources/channels.d.ts.map +1 -1
- package/dist/resources/channels.js +4 -22
- package/dist/resources/channels.js.map +1 -1
- package/dist/resources/directory.d.ts.map +1 -1
- package/dist/resources/directory.js.map +1 -1
- package/dist/resources/dispenser.d.ts.map +1 -1
- package/dist/resources/dispenser.js +1 -1
- package/dist/resources/dispenser.js.map +1 -1
- package/dist/resources/feedback.d.ts.map +1 -1
- package/dist/resources/feedback.js +1 -1
- package/dist/resources/feedback.js.map +1 -1
- package/dist/resources/inference.d.ts +2 -2
- package/dist/resources/inference.d.ts.map +1 -1
- package/dist/resources/inference.js +206 -171
- package/dist/resources/inference.js.map +1 -1
- package/dist/resources/keys.d.ts +5 -5
- package/dist/resources/keys.d.ts.map +1 -1
- package/dist/resources/keys.js +1 -1
- package/dist/resources/keys.js.map +1 -1
- package/dist/resources/local.d.ts +56 -0
- package/dist/resources/local.d.ts.map +1 -0
- package/dist/resources/local.js +163 -0
- package/dist/resources/local.js.map +1 -0
- package/dist/resources/memory.d.ts +3 -25
- package/dist/resources/memory.d.ts.map +1 -1
- package/dist/resources/memory.js +12 -75
- package/dist/resources/memory.js.map +1 -1
- package/dist/resources/models.d.ts.map +1 -1
- package/dist/resources/models.js.map +1 -1
- package/dist/resources/permissions.d.ts.map +1 -1
- package/dist/resources/permissions.js +1 -1
- package/dist/resources/permissions.js.map +1 -1
- package/dist/resources/receipts.d.ts +2 -3
- package/dist/resources/receipts.d.ts.map +1 -1
- package/dist/resources/receipts.js +1 -8
- package/dist/resources/receipts.js.map +1 -1
- package/dist/resources/session-events.d.ts.map +1 -1
- package/dist/resources/session-events.js +3 -3
- package/dist/resources/session-events.js.map +1 -1
- package/dist/resources/settlement.d.ts.map +1 -1
- package/dist/resources/settlement.js +1 -1
- package/dist/resources/settlement.js.map +1 -1
- package/dist/resources/system.d.ts.map +1 -1
- package/dist/resources/system.js.map +1 -1
- package/dist/resources/webhooks.d.ts.map +1 -1
- package/dist/resources/workflow.d.ts +17 -10
- package/dist/resources/workflow.d.ts.map +1 -1
- package/dist/resources/workflow.js +182 -87
- package/dist/resources/workflow.js.map +1 -1
- package/dist/resources/x402.d.ts.map +1 -1
- package/dist/resources/x402.js.map +1 -1
- package/dist/storage.d.ts +27 -0
- package/dist/storage.d.ts.map +1 -0
- package/dist/storage.js +46 -0
- package/dist/storage.js.map +1 -0
- package/dist/types/index.d.ts +257 -176
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -4
- package/dist/types/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/generated/channels/esm/lib/config.d.ts +3 -3
- package/generated/channels/esm/lib/config.js +3 -3
- package/generated/channels/esm/lib/config.js.map +1 -1
- package/generated/channels/esm/lib/encodings.d.ts +2 -2
- package/generated/channels/esm/sdk/sdk.js +1 -1
- package/generated/channels/esm/sdk/sdk.js.map +1 -1
- package/generated/channels/esm/types/async.js +1 -1
- package/generated/channels/esm/types/async.js.map +1 -1
- package/generated/channels/package.json +1 -1
- package/generated/channels/src/lib/config.ts +3 -3
- package/generated/inference/esm/lib/config.d.ts +3 -3
- package/generated/inference/esm/lib/config.js +3 -3
- package/generated/inference/esm/lib/config.js.map +1 -1
- package/generated/inference/esm/lib/encodings.d.ts +2 -2
- package/generated/inference/esm/models/receipt-body.d.ts +2 -2
- package/generated/inference/esm/models/receipt-body.d.ts.map +1 -1
- package/generated/inference/esm/models/receipt-body.js +2 -2
- package/generated/inference/esm/models/receipt-body.js.map +1 -1
- package/generated/inference/esm/models/receipt-line-item.d.ts +3 -3
- package/generated/inference/esm/models/receipt-line-item.d.ts.map +1 -1
- package/generated/inference/esm/models/receipt-line-item.js +2 -2
- package/generated/inference/esm/models/receipt-line-item.js.map +1 -1
- package/generated/inference/esm/sdk/sdk.js +4 -4
- package/generated/inference/esm/sdk/sdk.js.map +1 -1
- package/generated/inference/esm/types/async.js +1 -1
- package/generated/inference/esm/types/async.js.map +1 -1
- package/generated/inference/package.json +1 -1
- package/generated/inference/src/lib/config.ts +3 -3
- package/generated/inference/src/models/receipt-body.ts +4 -4
- package/generated/inference/src/models/receipt-line-item.ts +6 -6
- package/generated/manowar/esm/funcs/agents-responses-create.js +2 -2
- package/generated/manowar/esm/funcs/agents-responses-create.js.map +1 -1
- package/generated/manowar/esm/funcs/agents-runs-state-get.js +2 -2
- package/generated/manowar/esm/funcs/agents-runs-state-get.js.map +1 -1
- package/generated/manowar/esm/funcs/agents-stream-create.js +2 -2
- package/generated/manowar/esm/funcs/agents-stream-create.js.map +1 -1
- package/generated/manowar/esm/funcs/workflows-execute.js +2 -2
- package/generated/manowar/esm/funcs/workflows-execute.js.map +1 -1
- package/generated/manowar/esm/funcs/workflows-run-alias.js +2 -2
- package/generated/manowar/esm/funcs/workflows-run-alias.js.map +1 -1
- package/generated/manowar/esm/funcs/workflows-runs-approval-signal.js +2 -2
- package/generated/manowar/esm/funcs/workflows-runs-approval-signal.js.map +1 -1
- package/generated/manowar/esm/funcs/workflows-runs-state-get.js +2 -2
- package/generated/manowar/esm/funcs/workflows-runs-state-get.js.map +1 -1
- package/generated/manowar/esm/funcs/workflows-stop.js +2 -2
- package/generated/manowar/esm/funcs/workflows-stop.js.map +1 -1
- package/generated/manowar/esm/funcs/workflows-stream-create.js +2 -2
- package/generated/manowar/esm/funcs/workflows-stream-create.js.map +1 -1
- package/generated/manowar/esm/lib/config.d.ts +4 -4
- package/generated/manowar/esm/lib/config.d.ts.map +1 -1
- package/generated/manowar/esm/lib/config.js +6 -6
- package/generated/manowar/esm/lib/config.js.map +1 -1
- package/generated/manowar/esm/lib/encodings.d.ts +2 -2
- package/generated/manowar/esm/models/operations/execute.d.ts +1 -1
- package/generated/manowar/esm/models/operations/execute.d.ts.map +1 -1
- package/generated/manowar/esm/models/operations/execute.js +2 -2
- package/generated/manowar/esm/models/operations/execute.js.map +1 -1
- package/generated/manowar/esm/models/operations/responses-create.d.ts +1 -1
- package/generated/manowar/esm/models/operations/responses-create.d.ts.map +1 -1
- package/generated/manowar/esm/models/operations/responses-create.js +2 -2
- package/generated/manowar/esm/models/operations/responses-create.js.map +1 -1
- package/generated/manowar/esm/models/operations/run-alias.d.ts +1 -1
- package/generated/manowar/esm/models/operations/run-alias.d.ts.map +1 -1
- package/generated/manowar/esm/models/operations/run-alias.js +2 -2
- package/generated/manowar/esm/models/operations/run-alias.js.map +1 -1
- package/generated/manowar/esm/models/operations/runs-approval-signal.d.ts +1 -1
- package/generated/manowar/esm/models/operations/runs-approval-signal.d.ts.map +1 -1
- package/generated/manowar/esm/models/operations/runs-approval-signal.js +2 -2
- package/generated/manowar/esm/models/operations/runs-approval-signal.js.map +1 -1
- package/generated/manowar/esm/models/operations/runs-state-get.d.ts +1 -1
- package/generated/manowar/esm/models/operations/runs-state-get.d.ts.map +1 -1
- package/generated/manowar/esm/models/operations/runs-state-get.js +2 -2
- package/generated/manowar/esm/models/operations/runs-state-get.js.map +1 -1
- package/generated/manowar/esm/models/operations/stop.d.ts +1 -1
- package/generated/manowar/esm/models/operations/stop.d.ts.map +1 -1
- package/generated/manowar/esm/models/operations/stop.js +2 -2
- package/generated/manowar/esm/models/operations/stop.js.map +1 -1
- package/generated/manowar/esm/models/operations/stream-create.d.ts +1 -1
- package/generated/manowar/esm/models/operations/stream-create.d.ts.map +1 -1
- package/generated/manowar/esm/models/operations/stream-create.js +2 -2
- package/generated/manowar/esm/models/operations/stream-create.js.map +1 -1
- package/generated/manowar/esm/models/operations/workflow-runs-state-get.d.ts +1 -1
- package/generated/manowar/esm/models/operations/workflow-runs-state-get.d.ts.map +1 -1
- package/generated/manowar/esm/models/operations/workflow-runs-state-get.js +2 -2
- package/generated/manowar/esm/models/operations/workflow-runs-state-get.js.map +1 -1
- package/generated/manowar/esm/models/operations/workflow-stream-create.d.ts +1 -1
- package/generated/manowar/esm/models/operations/workflow-stream-create.d.ts.map +1 -1
- package/generated/manowar/esm/models/operations/workflow-stream-create.js +2 -2
- package/generated/manowar/esm/models/operations/workflow-stream-create.js.map +1 -1
- package/generated/manowar/esm/sdk/sdk.js +4 -4
- package/generated/manowar/esm/sdk/sdk.js.map +1 -1
- package/generated/manowar/esm/types/async.js +1 -1
- package/generated/manowar/esm/types/async.js.map +1 -1
- package/generated/manowar/package.json +1 -1
- package/generated/manowar/src/funcs/agents-responses-create.ts +2 -2
- package/generated/manowar/src/funcs/agents-runs-state-get.ts +2 -2
- package/generated/manowar/src/funcs/agents-stream-create.ts +2 -2
- package/generated/manowar/src/funcs/workflows-execute.ts +2 -2
- package/generated/manowar/src/funcs/workflows-run-alias.ts +2 -2
- package/generated/manowar/src/funcs/workflows-runs-approval-signal.ts +2 -2
- package/generated/manowar/src/funcs/workflows-runs-state-get.ts +2 -2
- package/generated/manowar/src/funcs/workflows-stop.ts +2 -2
- package/generated/manowar/src/funcs/workflows-stream-create.ts +2 -2
- package/generated/manowar/src/lib/config.ts +6 -6
- package/generated/manowar/src/models/operations/execute.ts +2 -2
- package/generated/manowar/src/models/operations/responses-create.ts +2 -2
- package/generated/manowar/src/models/operations/run-alias.ts +2 -2
- package/generated/manowar/src/models/operations/runs-approval-signal.ts +2 -2
- package/generated/manowar/src/models/operations/runs-state-get.ts +2 -2
- package/generated/manowar/src/models/operations/stop.ts +2 -2
- package/generated/manowar/src/models/operations/stream-create.ts +2 -2
- package/generated/manowar/src/models/operations/workflow-runs-state-get.ts +2 -2
- package/generated/manowar/src/models/operations/workflow-stream-create.ts +2 -2
- package/generated/memory/esm/lib/config.d.ts +4 -4
- package/generated/memory/esm/lib/config.d.ts.map +1 -1
- package/generated/memory/esm/lib/config.js +6 -6
- package/generated/memory/esm/lib/config.js.map +1 -1
- package/generated/memory/esm/lib/encodings.d.ts +2 -2
- package/generated/memory/esm/sdk/sdk.js +1 -1
- package/generated/memory/esm/sdk/sdk.js.map +1 -1
- package/generated/memory/esm/types/async.js +1 -1
- package/generated/memory/esm/types/async.js.map +1 -1
- package/generated/memory/package.json +1 -1
- package/generated/memory/src/lib/config.ts +6 -6
- package/generated/x402/esm/funcs/compose-keys-create.d.ts +1 -1
- package/generated/x402/esm/funcs/compose-keys-create.d.ts.map +1 -1
- package/generated/x402/esm/funcs/compose-keys-create.js +1 -1
- package/generated/x402/esm/funcs/compose-keys-create.js.map +1 -1
- package/generated/x402/esm/funcs/compose-keys-get.d.ts +1 -1
- package/generated/x402/esm/funcs/compose-keys-get.d.ts.map +1 -1
- package/generated/x402/esm/funcs/compose-keys-get.js +1 -1
- package/generated/x402/esm/funcs/compose-keys-get.js.map +1 -1
- package/generated/x402/esm/funcs/compose-keys-list.d.ts +1 -1
- package/generated/x402/esm/funcs/compose-keys-list.d.ts.map +1 -1
- package/generated/x402/esm/funcs/compose-keys-list.js +1 -1
- package/generated/x402/esm/funcs/compose-keys-list.js.map +1 -1
- package/generated/x402/esm/funcs/compose-keys-revoke.d.ts +1 -1
- package/generated/x402/esm/funcs/compose-keys-revoke.d.ts.map +1 -1
- package/generated/x402/esm/funcs/compose-keys-revoke.js +1 -1
- package/generated/x402/esm/funcs/compose-keys-revoke.js.map +1 -1
- package/generated/x402/esm/funcs/compose-keys-session-events-subscribe.d.ts +1 -1
- package/generated/x402/esm/funcs/compose-keys-session-events-subscribe.d.ts.map +1 -1
- package/generated/x402/esm/funcs/compose-keys-session-events-subscribe.js +1 -1
- package/generated/x402/esm/funcs/compose-keys-session-events-subscribe.js.map +1 -1
- package/generated/x402/esm/funcs/compose-keys-session-get-active.d.ts +1 -1
- package/generated/x402/esm/funcs/compose-keys-session-get-active.d.ts.map +1 -1
- package/generated/x402/esm/funcs/compose-keys-session-get-active.js +1 -1
- package/generated/x402/esm/funcs/compose-keys-session-get-active.js.map +1 -1
- package/generated/x402/esm/lib/config.d.ts +3 -3
- package/generated/x402/esm/lib/config.js +3 -3
- package/generated/x402/esm/lib/config.js.map +1 -1
- package/generated/x402/esm/lib/encodings.d.ts +2 -2
- package/generated/x402/esm/models/feedback-summary.d.ts +1 -1
- package/generated/x402/esm/models/feedback-summary.d.ts.map +1 -1
- package/generated/x402/esm/models/feedback-summary.js +1 -1
- package/generated/x402/esm/models/feedback-summary.js.map +1 -1
- package/generated/x402/esm/sdk/compose-keys.js +12 -12
- package/generated/x402/esm/sdk/compose-keys.js.map +1 -1
- package/generated/x402/esm/sdk/sdk.d.ts +2 -2
- package/generated/x402/esm/sdk/sdk.d.ts.map +1 -1
- package/generated/x402/esm/sdk/sdk.js +7 -7
- package/generated/x402/esm/sdk/sdk.js.map +1 -1
- package/generated/x402/esm/types/async.js +1 -1
- package/generated/x402/esm/types/async.js.map +1 -1
- package/generated/x402/package.json +1 -1
- package/generated/x402/src/funcs/compose-keys-create.ts +1 -1
- package/generated/x402/src/funcs/compose-keys-get.ts +1 -1
- package/generated/x402/src/funcs/compose-keys-list.ts +1 -1
- package/generated/x402/src/funcs/compose-keys-revoke.ts +1 -1
- package/generated/x402/src/funcs/compose-keys-session-events-subscribe.ts +1 -1
- package/generated/x402/src/funcs/compose-keys-session-get-active.ts +1 -1
- package/generated/x402/src/lib/config.ts +3 -3
- package/generated/x402/src/models/feedback-summary.ts +2 -2
- package/generated/x402/src/sdk/compose-keys.ts +12 -12
- package/generated/x402/src/sdk/sdk.ts +3 -3
- package/package.json +5 -5
- package/dist/tools/index.d.ts +0 -55
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -51
- package/dist/tools/index.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.8.0 — Package restructuring, tool events, channels OpenAPI, x402 skill
|
|
4
|
+
|
|
5
|
+
### Highlights
|
|
6
|
+
|
|
7
|
+
- Eliminated duplicated code between SDK and core: `http.ts`, `storage.ts`, `streaming/budget.ts`, `streaming/receipt.ts` are now thin re-exports from `@compose-market/core`. The SDK no longer ships its own copies of `HttpClient`, `extractSessionBudgetFromResponse`, `decodeReceiptHeader`, `extractReceiptFromResponse`, `parseReceiptEvent`, `createMemoryStorage`, `resolveStorage`, or `buildTokenStorageKey`.
|
|
8
|
+
- Consolidated base wire types: `ErrorCode`, `PaymentRequired`, `PaymentPayload`, `Receipt`, `SessionBudgetSnapshot`, `SessionEvent`, `Alert`, and all other shared types are now re-exported from `@compose-market/core` instead of re-declared in the SDK.
|
|
9
|
+
- Added `tools` module with readable, productized tool event types: `ModelToolEvent`, `ConnectorToolEvent`, `AgentToolEvent`, `SearchToolEvent`, `CatalogToolEvent`, plus `parseToolEvent()` helper for parsing `tool_start`/`tool_end` SSE events.
|
|
10
|
+
- Added `commands` types re-export from core: `Command`, `NativeAction`, `GoalState`, `PlanState`, `TaskRecord`, `ActionResult`, etc.
|
|
11
|
+
- Added `msm` types re-export from core: `Mode`, `Scope`, `Stage`, `Classification`, `Snapshot`, `Route`, `Action`, `Transition`, `Observation`, etc.
|
|
12
|
+
- Created `channels.openapi.yaml` — 5th Speakeasy source covering the channels service (WhatsApp, Telegram, Slack, Discord linking/status/disconnect).
|
|
13
|
+
- Generated `@compose-market/sdk/channels` subpath from the new OpenAPI spec.
|
|
14
|
+
- Rewrote `a2a.arazzo.yaml` with complete x402 payment documentation covering all three EVM schemes (exact, upto, batch-settlement), the `PAYMENT-SIGNATURE` header format, channel recovery requirements, and SSE stream parsing.
|
|
15
|
+
- Created `commands.arazzo.yaml` with workflows for all 8 slash commands.
|
|
16
|
+
- Backported `combineSignals` abort listener leak fix to core (now returns `{ signal, cleanup }`).
|
|
17
|
+
- Core's `streaming/` module renamed to `sse/` for clarity.
|
|
18
|
+
|
|
19
|
+
### Breaking Changes
|
|
20
|
+
|
|
21
|
+
- `@compose-market/core` dependency bumped to `^0.2.0`
|
|
22
|
+
- Core's `streaming` subpath exports renamed to `sse` (e.g., `@compose-market/core/streaming/budget` → `@compose-market/core/sse/budget`)
|
|
23
|
+
- SDK no longer ships local copies of `http.ts`, `storage.ts`, `streaming/` — all re-exported from core
|
|
24
|
+
- Base wire types in `sdk/src/types/index.ts` are now re-exported from core, not re-declared
|
|
25
|
+
|
|
26
|
+
### New Exports
|
|
27
|
+
|
|
28
|
+
- `import { tools, parseToolEvent } from "@compose-market/sdk"` — tool event types and parser
|
|
29
|
+
- `import { commands, msm } from "@compose-market/sdk"` — command and state machine types
|
|
30
|
+
- `import { Channels } from "@compose-market/sdk/channels"` — generated channels SDK
|
|
31
|
+
|
|
32
|
+
### Tests
|
|
33
|
+
|
|
34
|
+
- `npm run typecheck` — clean
|
|
35
|
+
- `npm test` — 92/92 passing
|
|
36
|
+
- `cd packages/core && npm test` — 7/7 passing
|
|
37
|
+
|
|
38
|
+
## 0.7.13 — Production channel service split
|
|
39
|
+
|
|
40
|
+
### Highlights
|
|
41
|
+
|
|
42
|
+
- Added `channelsUrl` to `ComposeSDKOptions`, defaulting to `https://services.compose.market`, so `sdk.channels` targets the public channel service while API resources continue using `baseUrl`.
|
|
43
|
+
- Kept `sdk.permissions` and `sdk.accounts` on direct API routes (`/permissions`, `/accounts`) with `agentWallet` required everywhere relevant.
|
|
44
|
+
- Hardened `sdk.channels` as a transport-control client only: helpers call `/channels/*` on the channel service and strip Compose Key, x402, session, run, and payment headers even when the SDK is configured with API auth.
|
|
45
|
+
- Replaced stale legacy documentation and contract coverage with the production public resources: `sdk.permissions`, `sdk.accounts`, and `sdk.channels`.
|
|
46
|
+
- Documented Discord `mode` / guild `privacy`, Slack DM/workspace behavior, and the global session-renewal link behavior for channel integrations.
|
|
47
|
+
- Preserved the 0.6.97 inference stance: `sdk.inference.responses.stream()` remains the universal model stream path, with no SDK-side provider routing, planner/runner layer, `/external`, metrics, avatar/banner, or runtime-native additions.
|
|
48
|
+
|
|
49
|
+
### Tests
|
|
50
|
+
|
|
51
|
+
- `npm run typecheck`
|
|
52
|
+
- `node --import tsx --test tests/sdk.contract.test.ts --test-name-pattern "permissions and accounts|channels helpers"` verifies direct API resources plus `channelsUrl` routing and channel header stripping.
|
|
53
|
+
|
|
54
|
+
## 0.6.97 — Catalog-driven universal inference stream
|
|
55
|
+
|
|
56
|
+
### Highlights
|
|
57
|
+
|
|
58
|
+
- Made `sdk.inference.responses.stream()` the primary universal integration path for native Compose inference across text, image, audio, video, and embeddings.
|
|
59
|
+
- Extended response stream typing and aggregation for `response.created`, typed output items, video status events, and final output objects.
|
|
60
|
+
- Added `inference.arazzo.yaml` to document the catalog-discovery plus universal response-stream workflow third-party integrators should follow.
|
|
61
|
+
- Updated inference OpenAPI metadata so catalog model cards expose API-owned operation capabilities directly.
|
|
62
|
+
- Kept explicit endpoint wrappers available without adding SDK-side model/provider routing, `plan/run`, metrics, `/external`, avatar/banner, or runtime/manowar-native additions.
|
|
63
|
+
|
|
64
|
+
### Tests
|
|
65
|
+
|
|
66
|
+
- `npx tsc --noEmit -p tsconfig.json --pretty false`
|
|
67
|
+
|
|
68
|
+
## 0.6.96 — Native SDK parity guards and third-party web integration cleanup
|
|
69
|
+
|
|
70
|
+
### Highlights
|
|
71
|
+
|
|
72
|
+
- Kept `sdk.inference` as explicit endpoint wrappers only: chat completions, responses, embeddings, images, audio speech/transcriptions, and videos.
|
|
73
|
+
- Added contract guards that prevent reintroducing `/external/*`, metrics, internal avatar/banner services, or fake `sdk.inference.plan/run` dispatcher methods.
|
|
74
|
+
- Preserved the existing published runtime/memory/manowar surface without expanding it in this pass.
|
|
75
|
+
- Updated first-party `web/` integration to use SDK catalog operation data and explicit SDK endpoint calls instead of the removed planner/runner path.
|
|
76
|
+
- Replaced raw permission/account/channel and workflow stop calls in `web/` with existing typed SDK resources.
|
|
77
|
+
|
|
78
|
+
### Tests
|
|
79
|
+
|
|
80
|
+
- `npx tsc --noEmit -p tsconfig.json --pretty false`
|
|
81
|
+
- `node --import tsx --test tests/sdk.unit.test.ts tests/sdk.streaming.test.ts tests/sdk.contract.test.ts tests/sdk.session-events.test.ts tests/sdk.events.test.ts tests/sdk.runtime-streams.test.ts` — 83 passing tests.
|
|
82
|
+
- Web third-party integrator checks pass after consuming the SDK from `web/`.
|
|
83
|
+
|
|
84
|
+
## 0.6.94 — Native SDK parity for x402 metering, local control, and directory APIs
|
|
85
|
+
|
|
86
|
+
### Highlights
|
|
87
|
+
|
|
88
|
+
- Added `sdk.x402.payments.prepare(...)`, `.settle(...)`, `.abort(...)`, and `.meterModel(...)` as thin typed wrappers over the API payment intent and authoritative model-metering routes.
|
|
89
|
+
- Added model-metering public types: `MeteredInput`, `MeterLineItem`, `MeteredQuote`, `ModelMeterQuote`, and payment intent request/response shapes.
|
|
90
|
+
- Added `sdk.models.pricing()` for the API pricing table used by quote previews and cost calculators.
|
|
91
|
+
- Added `sdk.directory.agents.*` and `sdk.directory.workflows.*` for public Compose agent/workflow discovery plus the Agentverse bridge.
|
|
92
|
+
- Added `sdk.system.health()` and `.frameworks()` for API health/runtime framework discovery.
|
|
93
|
+
- Added `sdk.local.*` for local-link tokens, local deployment registration, peer summaries, Synapse session-key provisioning, and Filecoin Pin storage preparation.
|
|
94
|
+
- Added direct permission, account, toolkit/action discovery, action execution, and channel binding helpers.
|
|
95
|
+
- Added `sdk.dispenser.*` and `sdk.settlement.status(...)` for stable public dispenser and wallet settlement-status routes.
|
|
96
|
+
- Fixed fragile multiline OpenAPI descriptions in the inference and x402 specs so YAML parsing and Speakeasy linting are clean.
|
|
97
|
+
|
|
98
|
+
### Tests
|
|
99
|
+
|
|
100
|
+
- Added hermetic contract coverage for x402 payment intent prepare/settle/abort, model metering, pricing, public directory routes, Agentverse query forwarding, system routes, local routes, permission/account/channel resources, dispenser, settlement status, and package exclusion guards.
|
|
101
|
+
- Verified OpenAPI specs parse locally and Speakeasy lint reports 0 errors / 0 warnings for inference, x402, memory, and manowar.
|
|
102
|
+
- `npm run typecheck`
|
|
103
|
+
- `npm test` — 82 passing tests.
|
|
104
|
+
|
|
105
|
+
## 0.6.92 — Provable mal plans + fire-and-forget Daytona Sandboxes
|
|
106
|
+
|
|
107
|
+
### Highlights
|
|
108
|
+
|
|
109
|
+
- **`MalPlan.requireProof: boolean`** — when set, the harness accumulates a typed proof bundle through plan execution (every step's input/output hashes, dedup'd inference run ids, sandbox metadata when isolation is active) and pins it to IPFS via Pinata at plan termination. The CIDv1 + gateway URL come back on `MalRunResult.proofCid` / `proofUrl` for receipt embedding. Schema: `compose.proof.v1`. Verifiers fetch the bundle from any IPFS gateway and cross-check `inferenceRunIds` against x402 receipts.
|
|
110
|
+
- **`MalPlan.requireIsolation: boolean`** — round-tripped through `parseMalPlan` and ships the field on `MalPlan`.
|
|
111
|
+
- **New SDK exports** from `@compose-market/sdk` (re-exported from `harness`):
|
|
112
|
+
- `createProofAccumulator`, `pinProofBundleToIPFS`, `signProofBundle`, `canonicalJson`, `hashValue`
|
|
113
|
+
- Types: `ProofBundle`, `ProofStepRecord`, `ProofSandboxMetadata`, `ProofAccumulator`
|
|
114
|
+
|
|
115
|
+
### Backwards compatibility
|
|
116
|
+
|
|
117
|
+
- Both new flags default to `false`;
|
|
118
|
+
- `MalRunResult.proofCid` and `MalRunResult.proofUrl` are optional; existing consumers that ignore them are unaffected.
|
|
119
|
+
|
|
120
|
+
## 0.6.91 — Agentic loop hardening
|
|
121
|
+
|
|
122
|
+
### Highlights
|
|
123
|
+
|
|
124
|
+
- **`memory_recall` tool removed.** The `memory.arazzo.yaml` contract states "ranker picks for you" — pre-injection (~900 chars / 6 items per turn) is sufficient. The tool let the model second-guess the ranker mid-turn, doubling work and contradicting the contract. `memory_remember` stays (orthogonal use case: explicit user-stated facts the auto-extractor missed).
|
|
125
|
+
- **Memory `type: "other"` removed.** The 6 typed categories (`preference / identity / context / skill / relationship / event`) cover everything stable. The SDK union type narrowed accordingly; `memory.save({ type: "context" })` is the new default for unknown types.
|
|
126
|
+
- **`stored.graph` is now always `false` on `record_turn`.** Fact extraction is fire-and-forget; facts surface in the next pre_turn recall. p50 is now <50ms (was up to 8s when Gemini extraction blocked).
|
|
127
|
+
- **Voyage `input_type` semantics honored.** Query embeddings now use `input_type: "query"`; document indexing keeps `"document"`. Real recall improvement (Voyage's asymmetric encoding).
|
|
128
|
+
- **Gemini `response_format` now plumbed end-to-end.** `{ type: "json_object" | "json_schema" }` translates to AI-SDK's `Output.json()`/`Output.object()`, which @ai-sdk/google maps to `responseMimeType` + `responseSchema`. Affects every chat-completions / responses caller.
|
|
129
|
+
- **`/api/agentverse/agents` route wired** (was advertised in startup banner but never registered).
|
|
130
|
+
- **Inner-loop budget gate replaces 6-batch hard cap.** Three axes: wall time (default 4 min), consecutive tool failures (default 4), Manus-grade safety ceiling (default 50 batches). Tunable via `COMPOSE_AGENT_MAX_WALL_MS_PER_TURN`, `COMPOSE_AGENT_MAX_TOOL_FAILURES_IN_ROW`, `COMPOSE_AGENT_MAX_TOOL_BATCHES_PER_TURN`.
|
|
131
|
+
- **Stable tool binding** (Manus / KV-cache discipline). Bound tools no longer re-scored per turn — KV cache stays warm across iterations.
|
|
132
|
+
- **Tightened discipline footer.** Six-rule directive list aware of memory/a2a/loop contracts. ~140 tokens.
|
|
133
|
+
|
|
134
|
+
### Breaking changes
|
|
135
|
+
|
|
136
|
+
- `MemoryToolType` no longer includes `"other"`. Migration: replace with `"context"`.
|
|
137
|
+
- `memory_recall` tool removed from agent tool surface. Migration: rely on the automatic ranker pre-injection (no caller change needed).
|
|
138
|
+
|
|
139
|
+
### Internal
|
|
140
|
+
|
|
141
|
+
- Tool-call extraction consolidated to a single source of truth in `runtime/src/manowar/agent/tool-calls.ts`. The 3 prior implementations (graph.ts, framework.ts, harness/engine.ts) now share `readToolMallsFromRecord` + `readToolCallChunksFromRecord`. ~150 LOC of duplicate logic eliminated.
|
|
142
|
+
- `workflow/agentic.ts` deleted (deprecated hardcoded coordinator list — `harness/coordinators.ts` is the dynamic source of truth).
|
|
143
|
+
|
|
144
|
+
## 0.6.8
|
|
145
|
+
|
|
146
|
+
### Highlights
|
|
147
|
+
|
|
148
|
+
- **First-party 6-layer memory framework.** Mem0 cloud removed entirely. Graph-layer durable facts now live in the same Mongo `memory` collection as conversational vectors (with `source: "fact"`, `metadata.layer: "graph"`), extracted by `gemini-3.1-flash-lite-preview` via our own inference gateway. Voyage `voyage-4-large` (1024-d) is the sole embedder; Cloudflare `bge-reranker-base` is the cross-encoder. Recall p50 dropped from ~905ms (mem0 round-trip) to <120ms.
|
|
149
|
+
- **Cross-thread durable recall now actually works.** The vectors layer was thread-scoped by mistake — fixed; `(agentWallet, userAddress)` is the durability boundary, threadId narrows working+scene only.
|
|
150
|
+
- **Agent memory tools simplified.** `save_memory` + `search_memory` + `search_all_memory` collapsed into `memory_recall` and `memory_remember`. The cross-layer ranker handles which layers contribute; agents do NOT pick layers.
|
|
151
|
+
- **Post-turn persistence is fire-and-forget.** Fact extraction never blocks the agent response.
|
|
152
|
+
- **SDK ergonomic shortcuts:**
|
|
153
|
+
- `sdk.memory.recall(query, { agentWallet, userAddress })` — string-first pre-turn block
|
|
154
|
+
- `sdk.memory.save(content, { agentWallet, userAddress, type? })` — string-first durable fact
|
|
155
|
+
- **`MemoryShorthandOptions`** type added for the helpers above.
|
|
156
|
+
- **`AgentMemoryRecordTurnResponse.stored`** now exposes `graph` alongside `transcript`/`working`/`vector` so callers can assert all four bookend layers landed.
|
|
157
|
+
- **Memory Arazzo workflow rewritten** as a 10/10 onboarding doc — covers the canonical `agent_turn_loop`, `maintenance_loop`, `pattern_promotion_loop`, and `eval_loop`. No mem0 references; explicit scope rules; explicit cost / latency budget; per-step descriptions explain when and why.
|
|
158
|
+
|
|
159
|
+
### Bug fixes
|
|
160
|
+
|
|
161
|
+
- The vectors layer filter no longer includes `threadId` — durable cross-thread recall now works.
|
|
162
|
+
- API gateway no longer aborts the prepared x402 payment when the SSE `[DONE]` terminator passes through `parseSseEventBlock`.
|
|
163
|
+
- `stopped` and `error` SSE events now carry usage payload so the gateway settles partial work on user-initiated abort.
|
|
164
|
+
|
|
165
|
+
## 0.6.7
|
|
166
|
+
|
|
167
|
+
### Highlights
|
|
168
|
+
|
|
169
|
+
- Agent runtime: rich streaming events. New `tool-args-delta` (per-token tool argument streaming, mirrors Codex `response.function_call_arguments.delta` / Claude Code `input_json_delta`) and `stopped` (user-initiated abort).
|
|
170
|
+
- Agent runtime: `sdk.agent.stop({ agentWallet, runId, threadId? })` aborts an in-flight stream while preserving the LangGraph checkpoint — a subsequent stream call with the same `threadId` resumes the thread's conversation, CoT, and memory.
|
|
171
|
+
- Identity binding restored. Agents always know their on-chain identity (name, description, wallet, skills) via per-turn typed `AgentIdentity` block hydrated once from Pinata IPFS — no more "I'm a helpful assistant" drift.
|
|
172
|
+
- Multi-step tool loop fixed. Removed the kill-switch that unbound tools after one successful batch; the model now decides exit by emitting no tool_calls (LangGraph Deep Agents / Manus / Codex / Claude Code SOTA pattern).
|
|
173
|
+
- Memory tools restored: `save_memory`, `search_memory`, `search_all_memory` re-bound, all routed through the unified `runAgentMemoryLoop` (six-layer memory: working / scene / graph / patterns / archives / vectors).
|
|
174
|
+
|
|
175
|
+
## Unreleased
|
|
176
|
+
|
|
177
|
+
### Highlights
|
|
178
|
+
|
|
179
|
+
- Added the root `sdk.feedback` resource for endpoint, x402, model, agent, and workflow feedback.
|
|
180
|
+
- Added `POST /v1/feedback`, `GET /v1/feedback`, and `GET /v1/feedback/summary` to the x402 OpenAPI contract.
|
|
181
|
+
- Feedback automatically carries Compose Key auth or wallet headers when available and returns verification counts separately from anonymous feedback.
|
|
182
|
+
|
|
183
|
+
### Tests
|
|
184
|
+
|
|
185
|
+
- Added SDK contract coverage for `sdk.feedback.model(...)` and `sdk.feedback.summary(...)`.
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## 0.5.0
|
|
190
|
+
|
|
191
|
+
Root-cause SDK generation, modality catalog, and local build version-sync pass.
|
|
192
|
+
|
|
193
|
+
### Highlights
|
|
194
|
+
|
|
195
|
+
- Added the generated modality surface to the inference contract and package exports:
|
|
196
|
+
- `@compose-market/sdk/inference/modality` for the generated Speakeasy resource.
|
|
197
|
+
- `sdk.models.modalities.list()`, `.get(modality)`, `.operations(modality)`, and `.models(modality, operation, filters)` on the orchestration client.
|
|
198
|
+
- Added modality-aware model selection to `sdk.models.search({ operation, ... })` and the Arazzo model discovery workflow.
|
|
199
|
+
- Kept realtime inference SSE in the OpenAPI contract while using Speakeasy envelope responses so receipt/payment/request headers remain typed.
|
|
200
|
+
- Expanded `.speakeasy/tests.arazzo.yaml` for modality discovery and realtime stream coverage, including video SSE.
|
|
201
|
+
- Fixed `scripts/sync-version.mjs` so `package.json` is the single source of truth for root lockfile, OpenAPI specs, Arazzo, Speakeasy generation config, generated package metadata, generated JSR metadata, generated Speakeasy locks, and `src/version.ts`.
|
|
202
|
+
- Added the generated `@compose-market/sdk/inference/modality` subpath export and verified the published package surface resolves from Node.
|
|
203
|
+
|
|
204
|
+
### Tests
|
|
205
|
+
|
|
206
|
+
- `npm test` - 52 passing tests.
|
|
207
|
+
- `npm run typecheck`
|
|
208
|
+
- `npm run build`
|
|
209
|
+
- `node --input-type=module -e '...'` import check for `@compose-market/sdk`, `/x402`, `/inference`, `/inference/modality`, and `/manowar`.
|
|
210
|
+
- `npm pack --dry-run --cache /tmp/compose-npm-cache`
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## 0.4.3
|
|
215
|
+
|
|
216
|
+
OpenAPI/Arazzo contract freeze plus production payment-safety pass.
|
|
217
|
+
|
|
218
|
+
### Highlights
|
|
219
|
+
|
|
220
|
+
- Added canonical Speakeasy-ready contracts:
|
|
221
|
+
- `/Users/jabyl/Downloads/compose-market/packages/sdk/specs/x402.openapi.yaml` for x402 settlement, Compose Keys, sessions, payments, and facilitator operations.
|
|
222
|
+
- `/Users/jabyl/Downloads/compose-market/packages/sdk/specs/inference.openapi.yaml` for model discovery, inference, and realtime inference streams.
|
|
223
|
+
- `/Users/jabyl/Downloads/compose-market/packages/sdk/specs/manowar.openapi.yaml` for agents, workflows, memory, workspace search, tools, MCP, and mesh execution.
|
|
224
|
+
- `/Users/jabyl/Downloads/compose-market/packages/sdk/.speakeasy/tests.arazzo.yaml` for model discovery, Compose Key session lifecycle, Compose Key inference, raw x402 challenge/retry, streaming inference frames, and runtime agent/workflow loops.
|
|
225
|
+
- Added `.speakeasy/workflow.yaml` and `.speakeasy/gen.yaml` so the SDK repo is ready for Speakeasy generation once the CLI is authenticated.
|
|
226
|
+
- Generated and exported Speakeasy TypeScript clients:
|
|
227
|
+
- `@compose-market/sdk/x402`, `/x402/keys`, `/x402/session`, and `/x402/payments` for x402 settlement, Compose Keys, session state, payments, and facilitator operations.
|
|
228
|
+
- `@compose-market/sdk/inference` for model discovery, inference, and realtime streams.
|
|
229
|
+
- `@compose-market/sdk/manowar` plus `/manowar/agent`, `/manowar/workflow`, `/manowar/memory`, and `/manowar/tools`.
|
|
230
|
+
- Generated schema and operation types under `/inference/schemas`, `/inference/operations`, `/manowar/schemas`, and `/manowar/operations`.
|
|
231
|
+
- Root `npm run build` now compiles the hand-written orchestration SDK plus both generated clients before publish.
|
|
232
|
+
- Hardened money types: Compose Key atomic amounts are strings end to end; `budgetUsd` is now an exact decimal string and `budgetWei` is a positive integer string.
|
|
233
|
+
- Added explicit inference payment modes:
|
|
234
|
+
- `auto` uses Compose Key first, then raw x402 challenge/sign/retry when a signer is available.
|
|
235
|
+
- `key` disables raw x402 fallback.
|
|
236
|
+
- `x402` suppresses Compose Key auth and uses raw x402.
|
|
237
|
+
- Added provider-agnostic `x402Signer` support on the SDK constructor and per-call options.
|
|
238
|
+
- Added x402 payment payload encoding helpers for `PAYMENT-SIGNATURE`.
|
|
239
|
+
- Fixed the lazy `APIPromise` execution path so `.withResponse()` and `await` share one HTTP request instead of risking duplicate paid calls.
|
|
240
|
+
|
|
241
|
+
### Tests
|
|
242
|
+
|
|
243
|
+
- `npm run typecheck`
|
|
244
|
+
- `npm test` — 51 passing tests, including raw x402 negotiation and payment-mode coverage.
|
|
245
|
+
- `npm run build`
|
|
246
|
+
- `speakeasy validate openapi` and `speakeasy lint openapi` pass for both OpenAPI documents.
|
|
247
|
+
- `speakeasy lint arazzo` passes for `.speakeasy/tests.arazzo.yaml`.
|
|
248
|
+
- `speakeasy run -y --skip-upload-spec --skip-testing --output console --target x402` passes and generated `generated/x402`.
|
|
249
|
+
- `speakeasy run -y --skip-upload-spec --skip-testing --output console --target inference` passes and generated `generated/inference`.
|
|
250
|
+
- `speakeasy run -y --skip-upload-spec --skip-testing --output console --target manowar` passes and generated `generated/manowar`.
|
|
251
|
+
|
|
252
|
+
### Speakeasy generation notes
|
|
253
|
+
|
|
254
|
+
- Speakeasy's automatic generated Arazzo tests are disabled because the SDK owns hand-authored multi-source Arazzo workflows.
|
|
255
|
+
- `inferSSEOverload` is disabled in Speakeasy generation because Speakeasy currently emits invalid TypeScript overloads for SSE-capable operations that also document receipt headers. The generated clients expose the canonical response union/envelope shape, while the hand-written `ComposeSDK` keeps ergonomic streaming helpers.
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## 0.4.0
|
|
260
|
+
|
|
261
|
+
Runtime streams + unified tool-call broadcasting. Enables web/ to consume agent + workflow SSE through typed resources instead of hand-rolled `parseEventStream` loops.
|
|
262
|
+
|
|
263
|
+
### Highlights
|
|
264
|
+
|
|
265
|
+
- **`sdk.agent.stream({ agentWallet, message, threadId, userAddress, ... })`** — typed iterator over the Compose agent runtime SSE vocabulary (`text-delta`, `thinking-start`, `thinking-end`, `tool-start`, `tool-end`, `error`, `done`). `final()` returns `{ text, toolCalls, requestId, receipt, budget, sessionInvalidReason }`.
|
|
266
|
+
- **`sdk.workflow.stream({ workflowWallet, message, threadId, userAddress, ... })`** and **`sdk.workflow.stop(...)`** — typed iterator over the workflow runtime vocabulary (`start`, `step`, `agent`, `progress`, `tool-start`, `tool-end`, `result`, `complete`, `error`, `done`). `final()` returns `{ text, structuredOutput, toolCalls, requestId, receipt, budget, sessionInvalidReason }`.
|
|
267
|
+
- **Unified tool-call events** — `sdk.events.on("toolCallStart", ...)` and `on("toolCallEnd", ...)` fire for chat-completions, responses, agent, and workflow streams alike. Each event carries `source: "chat" | "responses" | "agent" | "workflow"` so UI strips can react uniformly.
|
|
268
|
+
- **Responses API tool-call aggregation** — `ResponsesStreamFinalResult.toolCalls` now carries an assembled `[{ id, name, arguments }]` array reconstructed from `response.tool_call` and `response.tool_call.delta` frames.
|
|
269
|
+
- **Lifecycle events** — `sdk.events.agentStreamStart` / `agentStreamEnd` / `workflowStreamStart` / `workflowStreamEnd` fire around each runtime stream.
|
|
270
|
+
- **`baseUrl` constructor option** — defaults to `api.<host>/agent/${wallet}`; set explicitly for staging/custom runtimes.
|
|
271
|
+
|
|
272
|
+
### Breaking changes
|
|
273
|
+
|
|
274
|
+
- `ResponsesStreamFinalResult` now includes a `toolCalls` field.
|
|
275
|
+
- `EventMap` has new entries (`toolCallStart`, `toolCallEnd`, `agentStreamStart`, `agentStreamEnd`, `workflowStreamStart`, `workflowStreamEnd`). Consumers relying on the union of event names will widen automatically.
|
|
276
|
+
|
|
277
|
+
### Tests
|
|
278
|
+
|
|
279
|
+
- `tests/sdk.runtime-streams.test.ts` — 5 contract tests covering agent stream, workflow stream, agent lifecycle events, Responses tool-call aggregation, and `baseUrl` defaulting. All hermetic (in-test `node:http` servers).
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## 0.3.0
|
|
284
|
+
|
|
285
|
+
Live session state surfaces all the way to the caller. First-party parity milestone.
|
|
286
|
+
|
|
287
|
+
### Highlights
|
|
288
|
+
|
|
289
|
+
- **`sdk.events` typed event bus.** Listeners for `budget`, `sessionInvalid`, `sessionActive`, `sessionExpired`, `receipt`. Dispatched automatically on every billable response and every SSE session-event frame. Returns disposers; `.once(...)` fires exactly once.
|
|
290
|
+
- **Live session budget on every response.** `Completion<T>` grows `budget` and `sessionInvalidReason` fields sourced from the `x-session-budget-*` / `x-session-invalid` response headers. No more side-channel fetches to `/api/session` to render a session indicator.
|
|
291
|
+
- **SSE session events resource.** `sdk.session.subscribe({ signal })` streams `session-active` / `session-expired` frames from `/api/session/events`. Auto-reconnects with jittered backoff. Wallet context defaults to `sdk.wallets.current()`.
|
|
292
|
+
- **Persistent token storage.** New `storage` + `tokenScope` constructor options. Browsers auto-use `localStorage`; Node callers pass an explicit adapter. Tokens are keyed by `(address, chainId)` so multi-wallet devices never collide. A fresh `ComposeSDK` instance with the same wallet re-hydrates the token without a network call.
|
|
293
|
+
- **`keys.get` / `keys.revoke` now attach `x-session-user-address` + `x-chain-id`.** Matches the canonical header contract the rest of the SDK uses.
|
|
294
|
+
- **Single source of truth for version.** `sdk.version` reads from `package.json` via a build-time generated `src/version.ts`. No more duplicated constants anywhere.
|
|
295
|
+
- **`userAddress` is the canonical field name** across the SDK (was `walletAddress` in internal types); aligns with the header `x-session-user-address` and the Compose Market backend.
|
|
296
|
+
|
|
297
|
+
### New tests
|
|
298
|
+
|
|
299
|
+
- `sdk.events.test.ts` — budget / receipt / sessionInvalid emission, disposer, once semantics, storage persistence, version agreement.
|
|
300
|
+
- `sdk.session-events.test.ts` — SSE iterator + event-bus bridge for `session-active` / `session-expired`, wallet-context guards.
|
|
301
|
+
|
|
302
|
+
### Breaking changes from 0.2.0
|
|
303
|
+
|
|
304
|
+
- `HeaderBagInput.walletAddress` renamed to `HeaderBagInput.userAddress`.
|
|
305
|
+
- `CallOptions.walletAddress` renamed to `CallOptions.userAddress`.
|
|
306
|
+
- `Completion<T>` now includes `budget` and `sessionInvalidReason`. Existing consumers that destructured `{ data, receipt, requestId, response }` are unaffected; consumers that did `const completion: Completion<T> = ...` and then structural-assigned may need to accept the new fields.
|
|
307
|
+
- `audio.speech(...)` return type grows `budget` + `sessionInvalidReason` alongside the existing `{ response, receipt, requestId }`.
|
|
308
|
+
- Streaming final results (`ChatCompletionFinalResult`, `ResponsesStreamFinalResult`) grow `budget` + `sessionInvalidReason`.
|
|
309
|
+
- The `SDK_VERSION` constant is no longer exported at a stable location; use `sdk.version` on an instance.
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## 0.2.0
|
|
314
|
+
|
|
315
|
+
First production-shaped release. Full rewrite from the 0.1.x typed-fetch prototype.
|
|
316
|
+
|
|
317
|
+
### Highlights
|
|
318
|
+
|
|
319
|
+
- **Modular architecture** — dedicated resource classes (`KeysResource`, `ModelsResource`, `InferenceResource`, `X402Resource`, `WebhooksResource`) over a shared `HttpClient` with lazy request execution (no double-fire when a caller does both `await` and `.asResponse()`).
|
|
320
|
+
- **Streaming** — `AsyncIterable<ChatCompletionChunk>` and `AsyncIterable<ResponseStreamEvent>` with `.final()` for reassembled chat completions, tool-call deltas, and reasoning deltas.
|
|
321
|
+
- **Typed cost receipts** — every billable call returns `{ data, receipt, requestId, response }`; streams emit a terminal `event: receipt` frame; non-streaming calls carry `X-Receipt` header + `receipt` JSON field.
|
|
322
|
+
- **Canonical Compose model card** — `sdk.models.list()` returns the flat Compose-native shape `{ modelId, name, provider, type, contextWindow, pricing, ... }` exactly as served by `api.compose.market`. `sdk.models.search()` adds cursor pagination with modality/provider/price/context filters over the full ~45k catalog.
|
|
323
|
+
- **x402 v2 first-class** — facilitator `supported`/`chains`/`verify`/`settle` + typed decoders for `PAYMENT-REQUIRED`, `PAYMENT-RESPONSE`, `X-Receipt`. New `sdk.x402.facilitator.chains()` enumerates live chains + USDC contract metadata.
|
|
324
|
+
- **Typed error tree** — `Error` → `APIError` → `BadRequestError` / `AuthenticationError` / `PermissionDeniedError` / `NotFoundError` / `ConflictError` / `UnprocessableEntityError` / `RateLimitError` / `InternalServerError` / `PaymentRequiredError` / `BudgetExhaustedError`. Every error carries `code`, `status`, `details`, `requestId`, and (for 402) `paymentRequired`.
|
|
325
|
+
- **Webhook verification** — HMAC-SHA256, Stripe-style `X-Signature: t=...,v1=...` header, constant-time comparison.
|
|
326
|
+
- **Retries + timeouts + AbortSignal** — jittered exponential backoff; honors `Retry-After`; auto-generates `X-Idempotency-Key` on mutations.
|
|
327
|
+
- **Video job streaming** — `sdk.inference.videos.stream(id)` / `.waitUntilDone(id, { onStatus })` for SSE-driven polling.
|
|
328
|
+
|
|
329
|
+
### Tests
|
|
330
|
+
|
|
331
|
+
- **Hermetic.** Three suites: `sdk.unit.test.ts` (pure), `sdk.streaming.test.ts` (in-test synthetic SSE server), `sdk.contract.test.ts` (in-test mock HTTP server with canned responses mirroring `api.compose.market`).
|
|
332
|
+
- No sibling-repo imports. No Redis. No Thirdweb. No secrets. No environment variables. Runs clean from a fresh `git clone`.
|
|
333
|
+
|
|
334
|
+
### Infrastructure prerequisites
|
|
335
|
+
|
|
336
|
+
This release aligns with Compose api/ Phase 0 changes:
|
|
337
|
+
- `GET /api/session` no longer returns the Compose Key token (metadata only).
|
|
338
|
+
- `DELETE /api/keys/:keyId` requires JWT-possession auth.
|
|
339
|
+
- `GET /api/keys/:keyId` added for single-key inspection.
|
|
340
|
+
- `GET /api/x402/facilitator/chains` added for chain metadata enumeration.
|
|
341
|
+
- `X-Request-Id` is set on every response; `X-Receipt` on billable responses.
|
|
342
|
+
- SSE streams emit named `receipt`, `compose.error`, `compose.video.status` events.
|
|
343
|
+
- CORS is unified (allow-list + `Vary: Origin` + explicit `Expose-Headers`).
|
|
344
|
+
- `POST /api/payments/prepare` honors `X-Idempotency-Key` — replays return the original intent unchanged.
|
package/dist/events.d.ts
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* single-process, unordered across listeners, and never blocks the caller —
|
|
22
22
|
* listener exceptions are logged via the SDK logger and discarded.
|
|
23
23
|
*/
|
|
24
|
-
import type { AgentArtifactKind, Alert, Receipt, AgentEventDisplay,
|
|
24
|
+
import type { AgentArtifactKind, Alert, Receipt, AgentEventDisplay, AgentHarnessPlanDecision, SessionActiveEvent, SessionBudgetSnapshot, SessionExpiredEvent, SessionInvalidReason } from "./types/index.js";
|
|
25
25
|
export interface BudgetEvent {
|
|
26
26
|
userAddress: string | null;
|
|
27
27
|
chainId: number | null;
|
|
@@ -56,7 +56,7 @@ export interface ToolCallLifecycleEvent {
|
|
|
56
56
|
chainId: number | null;
|
|
57
57
|
requestId: string | null;
|
|
58
58
|
/** Source stream kind — which resource produced this tool-call event. */
|
|
59
|
-
source: "responses" | "agent" | "workflow";
|
|
59
|
+
source: "chat" | "responses" | "agent" | "workflow";
|
|
60
60
|
/** Opaque id grouping start → end. Derived from the source event if present. */
|
|
61
61
|
toolCallId: string;
|
|
62
62
|
toolName: string;
|
|
@@ -108,13 +108,12 @@ export interface ChildAgentLifecycleEvent {
|
|
|
108
108
|
display?: AgentEventDisplay;
|
|
109
109
|
ts?: number;
|
|
110
110
|
}
|
|
111
|
-
export interface
|
|
111
|
+
export interface AgentHarnessPlanEvent {
|
|
112
112
|
type: "plan.proposed" | "approval.requested" | "approval.decided" | "plan.feedback_requested";
|
|
113
113
|
proposalId: string;
|
|
114
114
|
version: number;
|
|
115
|
-
approvalId?: string;
|
|
116
115
|
state: string;
|
|
117
|
-
decision?:
|
|
116
|
+
decision?: AgentHarnessPlanDecision;
|
|
118
117
|
rootRunId?: string;
|
|
119
118
|
runId?: string;
|
|
120
119
|
requestedBy?: string;
|
|
@@ -173,10 +172,8 @@ export interface EventMap {
|
|
|
173
172
|
childAgentToolEnd: ChildAgentLifecycleEvent;
|
|
174
173
|
childAgentDone: ChildAgentLifecycleEvent;
|
|
175
174
|
childAgentError: ChildAgentLifecycleEvent;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
approvalDecided: PlanProposalEvent;
|
|
179
|
-
planFeedbackRequested: PlanProposalEvent;
|
|
175
|
+
harnessPlanProposed: AgentHarnessPlanEvent;
|
|
176
|
+
harnessPlanDecided: AgentHarnessPlanEvent;
|
|
180
177
|
agentArtifact: AgentArtifactEvent;
|
|
181
178
|
agentStreamStart: AgentStreamLifecycleEvent;
|
|
182
179
|
agentStreamEnd: AgentStreamLifecycleEvent;
|
package/dist/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EACR,iBAAiB,EACjB,KAAK,EACL,OAAO,EACP,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EACR,iBAAiB,EACjB,KAAK,EACL,OAAO,EACP,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACvB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,WAAW;IACxB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,qBAAqB,CAAC;IAChC,mEAAmE;IACnE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAChC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,oBAAoB,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IACzB,WAAW,EA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,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC;IAC1E,IAAI,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC;IAC5E,GAAG,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IACrE,IAAI,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;CACnE;AAED,UAAU,kBAAkB;IACxB,MAAM,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;QAC7D,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;KACjE,CAAC;CACL;AAED,wBAAgB,cAAc,CAAC,OAAO,GAAE,kBAAuB,GAAG,QAAQ,CA8CzE"}
|
package/dist/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AA0MH,MAAM,UAAU,cAAc,CAAC,OAAO,GAAuB,EAAE;IAC3D,MAAM,SAAS,GAAG,IAAI,GAAG,EAA4C,CAAC;IACtE,MAAM,MAAM,GAAG,O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BACpC,MAAM,EAAE,KAAK,EAAE,CAAC,+BAA+B,KAAK,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;oBAC3E,CAAC,CAAC,CAAC;gBACP,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,MAAM,EAAE,KAAK,EAAE,CAAC,yBAAyB,KAAK,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;YACrE,CAAC;QACL,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,IAAI,GAAG,CAAsB,KAAQ,EAAE,QAA0B,EAAgB,EAAE;QACrF,MAAM,OAAO,GAAqB,CAAC,OAAO,EAAE,EAAE;YAC1C,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YACpB,OAAO,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC7B,CAAC,CAAC;QACF,OAAO,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACpC,CAAC,CAAC;IAEF,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;AAC7C,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Exposes the canonical header contract (`Authorization: Bearer compose-<jwt>`,
|
|
5
5
|
* `x-session-user-address`, `x-chain-id`) that powers Compose's first-party
|
|
6
|
-
* apps and lets any third-party integrator embed:
|
|
6
|
+
* apps (web/, mesh/) and lets any third-party integrator embed:
|
|
7
7
|
*
|
|
8
8
|
* - Compose Key lifecycle (create / list / get / revoke, session metadata)
|
|
9
9
|
* - Multi-provider model catalog (list / listAll / search / get / getParams)
|
|
10
|
-
* - Responses
|
|
11
|
-
*
|
|
10
|
+
* - Native Responses API inference with SSE streaming,
|
|
11
|
+
* typed tool-call deltas and reasoning deltas, typed cost receipts, and
|
|
12
12
|
* live session-budget updates emitted on every response.
|
|
13
13
|
* - x402 facilitator access (supported / chains / verify / settle) and typed
|
|
14
14
|
* decoders for PAYMENT-REQUIRED, PAYMENT-RESPONSE, X-Receipt.
|
|
@@ -51,6 +51,7 @@ import { MemoryResource } from "./resources/memory.js";
|
|
|
51
51
|
import { FeedbackResource } from "./resources/feedback.js";
|
|
52
52
|
import { DirectoryResource } from "./resources/directory.js";
|
|
53
53
|
import { SystemResource } from "./resources/system.js";
|
|
54
|
+
import { LocalResource } from "./resources/local.js";
|
|
54
55
|
import { DispenserResource } from "./resources/dispenser.js";
|
|
55
56
|
import { SettlementResource } from "./resources/settlement.js";
|
|
56
57
|
import { PermissionsResource } from "./resources/permissions.js";
|
|
@@ -58,24 +59,24 @@ import { AccountsResource } from "./resources/accounts.js";
|
|
|
58
59
|
import { ChannelsResource } from "./resources/channels.js";
|
|
59
60
|
import { ReceiptsResource } from "./resources/receipts.js";
|
|
60
61
|
import { type EventBus, type EventListener } from "./events.js";
|
|
61
|
-
import { type Storage } from "
|
|
62
|
+
import { type Storage } from "./storage.js";
|
|
62
63
|
import type { X402PaymentSigner } from "./types/index.js";
|
|
63
64
|
import type { CallOptions } from "./resources/inference.js";
|
|
64
65
|
export * from "./types/index.js";
|
|
65
|
-
export * from "
|
|
66
|
+
export * from "@compose-market/core/errors";
|
|
66
67
|
export type { APIPromise, HeaderBagInput, HttpClientOptions, RequestOptions, RetryPolicy, } from "@compose-market/core/http";
|
|
67
68
|
export type { CallOptions, Completion, ResponsesStreamFinalResult, StreamIterator, InferenceContext, } from "./resources/inference.js";
|
|
68
69
|
export type { WebhookEvent, VerifyWebhookInput, } from "./resources/webhooks.js";
|
|
69
|
-
export type { BudgetEvent, EventBus, EventListener, EventMap, EventName, ReceiptEvent, SessionInvalidEvent, ToolCallLifecycleEvent, ChildAgentLifecycleEvent, AgentArtifactEvent,
|
|
70
|
-
export type { Storage } from "
|
|
70
|
+
export type { BudgetEvent, EventBus, EventListener, EventMap, EventName, ReceiptEvent, SessionInvalidEvent, ToolCallLifecycleEvent, ChildAgentLifecycleEvent, AgentArtifactEvent, AgentHarnessPlanEvent, AgentStreamLifecycleEvent, WorkflowStreamLifecycleEvent, } from "./events.js";
|
|
71
|
+
export type { Storage } from "./storage.js";
|
|
71
72
|
export type { SessionEventsOptions } from "./resources/session-events.js";
|
|
72
|
-
export type { AgentResource } from "./resources/agent.js";
|
|
73
|
-
export type { RunEvent } from "@compose-market/core/sse/stream";
|
|
73
|
+
export type { AgentResource, RunEvent } from "./resources/agent.js";
|
|
74
74
|
export type { WorkflowEvent, WorkflowResource } from "./resources/workflow.js";
|
|
75
75
|
export type { MemoryResource } from "./resources/memory.js";
|
|
76
76
|
export type { FeedbackResource } from "./resources/feedback.js";
|
|
77
77
|
export type { DirectoryResource } from "./resources/directory.js";
|
|
78
78
|
export type { SystemResource } from "./resources/system.js";
|
|
79
|
+
export type { LocalResource } from "./resources/local.js";
|
|
79
80
|
export type { DispenserResource } from "./resources/dispenser.js";
|
|
80
81
|
export type { SettlementResource } from "./resources/settlement.js";
|
|
81
82
|
export type { PermissionsResource } from "./resources/permissions.js";
|
|
@@ -83,22 +84,15 @@ export type { AccountsResource } from "./resources/accounts.js";
|
|
|
83
84
|
export type { ChannelsResource } from "./resources/channels.js";
|
|
84
85
|
export type { ReceiptsResource, ReceiptListOptions } from "./resources/receipts.js";
|
|
85
86
|
export { decodeReceiptHeader, extractReceiptFromResponse, parseReceiptEvent } from "@compose-market/core/sse/receipt";
|
|
86
|
-
export { extractSessionBudgetFromResponse } from "@compose-market/core/sse/budget";
|
|
87
|
-
export { streamEvents } from "@compose-market/core/sse/stream";
|
|
88
87
|
export { parseSSEStream, parse, format, named, done } from "@compose-market/core/transport";
|
|
89
88
|
export type { Frame, SSEFrame } from "@compose-market/core/transport";
|
|
90
89
|
export { create as createModelState, decode as decodeModelEvent, reduce as reduceModelState, } from "@compose-market/core/model";
|
|
91
90
|
export type { AssetKind, ModelAsset, ModelEvent, ModelState, ModelStatus, } from "@compose-market/core/model";
|
|
92
91
|
export { create as createActivityState, decode as decodeActivityEvent, reduce as reduceActivityState, } from "@compose-market/core/activity";
|
|
93
92
|
export type { ActivityEvent, ActivityKind, ActivityNode, ActivityState, ActivityStatus, ActivityTarget, } from "@compose-market/core/activity";
|
|
93
|
+
export { extractSessionBudgetFromResponse } from "@compose-market/core/sse/budget";
|
|
94
94
|
export { createPrivateKeyX402EvmSigner, createPrivateKeyX402EvmWallet, createX402EvmSigner, encodePaymentPayload, encodePaymentSignature, } from "./resources/x402.js";
|
|
95
|
-
export { createMemoryStorage } from "
|
|
96
|
-
export * as tools from "./tools/index.js";
|
|
97
|
-
export type { ToolEvent, ToolEventKind, ToolEventDisplay, ModelToolEvent, ConnectorToolEvent, AgentToolEvent, SearchToolEvent, CatalogToolEvent } from "./tools/index.js";
|
|
98
|
-
export { parseToolEvent } from "./tools/index.js";
|
|
99
|
-
export { commands, msm } from "@compose-market/core";
|
|
100
|
-
export type { Command, ActionSource, NativeAction, ActionScope, GoalState, GoalStatus, GoalRunState, PlanState, PlanStatus, TaskRecord, TaskStatus, PlanRunState, ActionEvent, TaskObservation, GoalObservation, ActionResult } from "@compose-market/core/commands";
|
|
101
|
-
export type { Mode, Scope, Stage, Source, Signal, ActionKind, ObservationStatus, ToolState, RouteState, FlagState, Route, Classification, Budget, AgentStreamControls, Action, Transition, Observation, Entry, Snapshot } from "@compose-market/core/msm";
|
|
95
|
+
export { createMemoryStorage } from "./storage.js";
|
|
102
96
|
/**
|
|
103
97
|
* Constructor options for `ComposeSDK`.
|
|
104
98
|
*/
|
|
@@ -184,6 +178,7 @@ export declare class ComposeSDK {
|
|
|
184
178
|
readonly feedback: FeedbackResource;
|
|
185
179
|
readonly directory: DirectoryResource;
|
|
186
180
|
readonly system: SystemResource;
|
|
181
|
+
readonly local: LocalResource;
|
|
187
182
|
readonly dispenser: DispenserResource;
|
|
188
183
|
readonly settlement: SettlementResource;
|
|
189
184
|
readonly permissions: PermissionsResource;
|
|
@@ -260,7 +255,7 @@ declare class SessionEventsNamespace {
|
|
|
260
255
|
* When `userAddress` / `chainId` are omitted, the SDK's currently attached
|
|
261
256
|
* wallet context is used. Abort via an `AbortController.signal`.
|
|
262
257
|
*/
|
|
263
|
-
subscribe(opts?: Partial<SessionEventsOptions>): AsyncIterable<import("
|
|
258
|
+
subscribe(opts?: Partial<SessionEventsOptions>): AsyncIterable<import("./types/index.js").SessionEvent>;
|
|
264
259
|
/**
|
|
265
260
|
* Shortcut: register a listener on the `sessionActive` + `sessionExpired`
|
|
266
261
|
* events produced by a subscription. Returns a disposer that aborts the
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EAKH,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,WAAW,EACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,KAAK,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACjG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,u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