@harrylabsj/kiwi 0.6.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/LICENSE +201 -0
- package/README.md +150 -0
- package/contracts/candidate-agent-dto-1.0.README.md +39 -0
- package/contracts/candidate-agent-dto-1.0.schema.json +172 -0
- package/contracts/interop/kiwi-buyer-message-send.json +43 -0
- package/contracts/interop/knp-data-part-examples.json +243 -0
- package/contracts/kiwi-catalog/1.0/agent-record.schema.json +78 -0
- package/contracts/kiwi-catalog/1.0/listing-record.schema.json +88 -0
- package/contracts/kiwi-catalog/1.0/listing-search-result.schema.json +60 -0
- package/contracts/negotiation/1.0/schema.json +501 -0
- package/contracts/shopping.negotiation/0.1/capabilities.schema.json +47 -0
- package/contracts/shopping.negotiation/0.1/decision.schema.json +120 -0
- package/contracts/shopping.negotiation/0.1/policy-result.schema.json +52 -0
- package/contracts/shopping.negotiation/0.1/snapshot.schema.json +172 -0
- package/dist/a2a/client/client.d.ts +33 -0
- package/dist/a2a/client/client.js +161 -0
- package/dist/a2a/client/client.js.map +1 -0
- package/dist/a2a/client/error.d.ts +35 -0
- package/dist/a2a/client/error.js +34 -0
- package/dist/a2a/client/error.js.map +1 -0
- package/dist/a2a/client/index.d.ts +29 -0
- package/dist/a2a/client/index.js +26 -0
- package/dist/a2a/client/index.js.map +1 -0
- package/dist/a2a/client/jsonrpc.d.ts +49 -0
- package/dist/a2a/client/jsonrpc.js +85 -0
- package/dist/a2a/client/jsonrpc.js.map +1 -0
- package/dist/a2a/client/parse.d.ts +18 -0
- package/dist/a2a/client/parse.js +134 -0
- package/dist/a2a/client/parse.js.map +1 -0
- package/dist/a2a/client/types.d.ts +102 -0
- package/dist/a2a/client/types.js +26 -0
- package/dist/a2a/client/types.js.map +1 -0
- package/dist/a2a/client/url-policy.d.ts +44 -0
- package/dist/a2a/client/url-policy.js +242 -0
- package/dist/a2a/client/url-policy.js.map +1 -0
- package/dist/a2a/negotiate.d.ts +68 -0
- package/dist/a2a/negotiate.js +288 -0
- package/dist/a2a/negotiate.js.map +1 -0
- package/dist/a2a/node.d.ts +37 -0
- package/dist/a2a/node.js +155 -0
- package/dist/a2a/node.js.map +1 -0
- package/dist/a2a/server/auth.d.ts +38 -0
- package/dist/a2a/server/auth.js +112 -0
- package/dist/a2a/server/auth.js.map +1 -0
- package/dist/a2a/server/card.d.ts +19 -0
- package/dist/a2a/server/card.js +81 -0
- package/dist/a2a/server/card.js.map +1 -0
- package/dist/a2a/server/errors.d.ts +109 -0
- package/dist/a2a/server/errors.js +178 -0
- package/dist/a2a/server/errors.js.map +1 -0
- package/dist/a2a/server/handler.d.ts +22 -0
- package/dist/a2a/server/handler.js +57 -0
- package/dist/a2a/server/handler.js.map +1 -0
- package/dist/a2a/server/inbound-message.d.ts +37 -0
- package/dist/a2a/server/inbound-message.js +104 -0
- package/dist/a2a/server/inbound-message.js.map +1 -0
- package/dist/a2a/server/index.d.ts +43 -0
- package/dist/a2a/server/index.js +42 -0
- package/dist/a2a/server/index.js.map +1 -0
- package/dist/a2a/server/merchant-handler.d.ts +69 -0
- package/dist/a2a/server/merchant-handler.js +316 -0
- package/dist/a2a/server/merchant-handler.js.map +1 -0
- package/dist/a2a/server/pipeline.d.ts +69 -0
- package/dist/a2a/server/pipeline.js +329 -0
- package/dist/a2a/server/pipeline.js.map +1 -0
- package/dist/a2a/server/server.d.ts +64 -0
- package/dist/a2a/server/server.js +420 -0
- package/dist/a2a/server/server.js.map +1 -0
- package/dist/a2a/server/task-registry.d.ts +31 -0
- package/dist/a2a/server/task-registry.js +67 -0
- package/dist/a2a/server/task-registry.js.map +1 -0
- package/dist/a2a/server/throttle.d.ts +154 -0
- package/dist/a2a/server/throttle.js +289 -0
- package/dist/a2a/server/throttle.js.map +1 -0
- package/dist/a2a/server/types.d.ts +191 -0
- package/dist/a2a/server/types.js +17 -0
- package/dist/a2a/server/types.js.map +1 -0
- package/dist/a2a/server/ucp.d.ts +49 -0
- package/dist/a2a/server/ucp.js +85 -0
- package/dist/a2a/server/ucp.js.map +1 -0
- package/dist/a2a/task/index.d.ts +24 -0
- package/dist/a2a/task/index.js +22 -0
- package/dist/a2a/task/index.js.map +1 -0
- package/dist/a2a/task/ledger.d.ts +48 -0
- package/dist/a2a/task/ledger.js +65 -0
- package/dist/a2a/task/ledger.js.map +1 -0
- package/dist/a2a/task/poller.d.ts +93 -0
- package/dist/a2a/task/poller.js +184 -0
- package/dist/a2a/task/poller.js.map +1 -0
- package/dist/a2a/task/state.d.ts +72 -0
- package/dist/a2a/task/state.js +119 -0
- package/dist/a2a/task/state.js.map +1 -0
- package/dist/a2a/ucp-agent.d.ts +49 -0
- package/dist/a2a/ucp-agent.js +78 -0
- package/dist/a2a/ucp-agent.js.map +1 -0
- package/dist/agent/agent-db.d.ts +31 -0
- package/dist/agent/agent-db.js +91 -0
- package/dist/agent/agent-db.js.map +1 -0
- package/dist/agent/buyer/buyer-tools.d.ts +70 -0
- package/dist/agent/buyer/buyer-tools.js +1353 -0
- package/dist/agent/buyer/buyer-tools.js.map +1 -0
- package/dist/agent/buyer/ranker.d.ts +53 -0
- package/dist/agent/buyer/ranker.js +153 -0
- package/dist/agent/buyer/ranker.js.map +1 -0
- package/dist/agent/buyer/scheduler.d.ts +58 -0
- package/dist/agent/buyer/scheduler.js +317 -0
- package/dist/agent/buyer/scheduler.js.map +1 -0
- package/dist/agent/buyer/search-loop.d.ts +42 -0
- package/dist/agent/buyer/search-loop.js +280 -0
- package/dist/agent/buyer/search-loop.js.map +1 -0
- package/dist/agent/buyer/task-store.d.ts +178 -0
- package/dist/agent/buyer/task-store.js +637 -0
- package/dist/agent/buyer/task-store.js.map +1 -0
- package/dist/agent/buyer/types.d.ts +222 -0
- package/dist/agent/buyer/types.js +124 -0
- package/dist/agent/buyer/types.js.map +1 -0
- package/dist/agent/chat-tools.d.ts +41 -0
- package/dist/agent/chat-tools.js +193 -0
- package/dist/agent/chat-tools.js.map +1 -0
- package/dist/agent/chat-tui.d.ts +49 -0
- package/dist/agent/chat-tui.js +314 -0
- package/dist/agent/chat-tui.js.map +1 -0
- package/dist/agent/connector/fake-connector.d.ts +50 -0
- package/dist/agent/connector/fake-connector.js +138 -0
- package/dist/agent/connector/fake-connector.js.map +1 -0
- package/dist/agent/connector/http-connector.d.ts +49 -0
- package/dist/agent/connector/http-connector.js +208 -0
- package/dist/agent/connector/http-connector.js.map +1 -0
- package/dist/agent/connector/types.d.ts +103 -0
- package/dist/agent/connector/types.js +97 -0
- package/dist/agent/connector/types.js.map +1 -0
- package/dist/agent/fake-chat-model.d.ts +22 -0
- package/dist/agent/fake-chat-model.js +134 -0
- package/dist/agent/fake-chat-model.js.map +1 -0
- package/dist/agent/kernel.d.ts +258 -0
- package/dist/agent/kernel.js +1099 -0
- package/dist/agent/kernel.js.map +1 -0
- package/dist/agent/memory/schema.d.ts +32 -0
- package/dist/agent/memory/schema.js +291 -0
- package/dist/agent/memory/schema.js.map +1 -0
- package/dist/agent/memory/store.d.ts +193 -0
- package/dist/agent/memory/store.js +881 -0
- package/dist/agent/memory/store.js.map +1 -0
- package/dist/agent/memory/types.d.ts +139 -0
- package/dist/agent/memory/types.js +119 -0
- package/dist/agent/memory/types.js.map +1 -0
- package/dist/agent/memory/vault.d.ts +49 -0
- package/dist/agent/memory/vault.js +125 -0
- package/dist/agent/memory/vault.js.map +1 -0
- package/dist/agent/merchant/action-candidate.d.ts +106 -0
- package/dist/agent/merchant/action-candidate.js +241 -0
- package/dist/agent/merchant/action-candidate.js.map +1 -0
- package/dist/agent/merchant/credential-broker.d.ts +67 -0
- package/dist/agent/merchant/credential-broker.js +76 -0
- package/dist/agent/merchant/credential-broker.js.map +1 -0
- package/dist/agent/merchant/fake-merchant-client.d.ts +47 -0
- package/dist/agent/merchant/fake-merchant-client.js +143 -0
- package/dist/agent/merchant/fake-merchant-client.js.map +1 -0
- package/dist/agent/merchant/merchant-client.d.ts +49 -0
- package/dist/agent/merchant/merchant-client.js +186 -0
- package/dist/agent/merchant/merchant-client.js.map +1 -0
- package/dist/agent/merchant/merchant-tools.d.ts +74 -0
- package/dist/agent/merchant/merchant-tools.js +582 -0
- package/dist/agent/merchant/merchant-tools.js.map +1 -0
- package/dist/agent/merchant/types.d.ts +119 -0
- package/dist/agent/merchant/types.js +133 -0
- package/dist/agent/merchant/types.js.map +1 -0
- package/dist/agent/mode.d.ts +32 -0
- package/dist/agent/mode.js +34 -0
- package/dist/agent/mode.js.map +1 -0
- package/dist/agent/negotiation-chat.d.ts +81 -0
- package/dist/agent/negotiation-chat.js +330 -0
- package/dist/agent/negotiation-chat.js.map +1 -0
- package/dist/agent/session.d.ts +22 -0
- package/dist/agent/session.js +164 -0
- package/dist/agent/session.js.map +1 -0
- package/dist/agent/system-prompt.d.ts +26 -0
- package/dist/agent/system-prompt.js +77 -0
- package/dist/agent/system-prompt.js.map +1 -0
- package/dist/agent/write-gate.d.ts +98 -0
- package/dist/agent/write-gate.js +76 -0
- package/dist/agent/write-gate.js.map +1 -0
- package/dist/cli.d.ts +18 -0
- package/dist/cli.js +1139 -0
- package/dist/cli.js.map +1 -0
- package/dist/commerce/data-source.d.ts +88 -0
- package/dist/commerce/data-source.js +25 -0
- package/dist/commerce/data-source.js.map +1 -0
- package/dist/commerce/erp-source.d.ts +51 -0
- package/dist/commerce/erp-source.js +184 -0
- package/dist/commerce/erp-source.js.map +1 -0
- package/dist/commerce/fake-client.d.ts +167 -0
- package/dist/commerce/fake-client.js +549 -0
- package/dist/commerce/fake-client.js.map +1 -0
- package/dist/commerce/http-client.d.ts +73 -0
- package/dist/commerce/http-client.js +284 -0
- package/dist/commerce/http-client.js.map +1 -0
- package/dist/commerce/local-db-source.d.ts +50 -0
- package/dist/commerce/local-db-source.js +162 -0
- package/dist/commerce/local-db-source.js.map +1 -0
- package/dist/commerce/shopping-cli-source.d.ts +57 -0
- package/dist/commerce/shopping-cli-source.js +206 -0
- package/dist/commerce/shopping-cli-source.js.map +1 -0
- package/dist/commerce/types.d.ts +146 -0
- package/dist/commerce/types.js +31 -0
- package/dist/commerce/types.js.map +1 -0
- package/dist/config/profile.d.ts +122 -0
- package/dist/config/profile.js +386 -0
- package/dist/config/profile.js.map +1 -0
- package/dist/contracts/negotiation-schema.d.ts +28 -0
- package/dist/contracts/negotiation-schema.js +101 -0
- package/dist/contracts/negotiation-schema.js.map +1 -0
- package/dist/contracts/schemas.d.ts +31 -0
- package/dist/contracts/schemas.js +122 -0
- package/dist/contracts/schemas.js.map +1 -0
- package/dist/counterparty/a2a-direct/index.d.ts +41 -0
- package/dist/counterparty/a2a-direct/index.js +330 -0
- package/dist/counterparty/a2a-direct/index.js.map +1 -0
- package/dist/counterparty/channel.d.ts +200 -0
- package/dist/counterparty/channel.js +61 -0
- package/dist/counterparty/channel.js.map +1 -0
- package/dist/counterparty/index.d.ts +28 -0
- package/dist/counterparty/index.js +24 -0
- package/dist/counterparty/index.js.map +1 -0
- package/dist/counterparty/platform-api/index.d.ts +41 -0
- package/dist/counterparty/platform-api/index.js +65 -0
- package/dist/counterparty/platform-api/index.js.map +1 -0
- package/dist/counterparty/registry.d.ts +51 -0
- package/dist/counterparty/registry.js +71 -0
- package/dist/counterparty/registry.js.map +1 -0
- package/dist/counterparty/shopping-cli-hosted/index.d.ts +36 -0
- package/dist/counterparty/shopping-cli-hosted/index.js +337 -0
- package/dist/counterparty/shopping-cli-hosted/index.js.map +1 -0
- package/dist/discovery/agent-card/error.d.ts +28 -0
- package/dist/discovery/agent-card/error.js +31 -0
- package/dist/discovery/agent-card/error.js.map +1 -0
- package/dist/discovery/agent-card/extensions.d.ts +20 -0
- package/dist/discovery/agent-card/extensions.js +59 -0
- package/dist/discovery/agent-card/extensions.js.map +1 -0
- package/dist/discovery/agent-card/index.d.ts +29 -0
- package/dist/discovery/agent-card/index.js +38 -0
- package/dist/discovery/agent-card/index.js.map +1 -0
- package/dist/discovery/agent-card/secrets.d.ts +30 -0
- package/dist/discovery/agent-card/secrets.js +240 -0
- package/dist/discovery/agent-card/secrets.js.map +1 -0
- package/dist/discovery/agent-card/types.d.ts +110 -0
- package/dist/discovery/agent-card/types.js +37 -0
- package/dist/discovery/agent-card/types.js.map +1 -0
- package/dist/discovery/agent-card/validate.d.ts +31 -0
- package/dist/discovery/agent-card/validate.js +210 -0
- package/dist/discovery/agent-card/validate.js.map +1 -0
- package/dist/discovery/capability/error.d.ts +23 -0
- package/dist/discovery/capability/error.js +28 -0
- package/dist/discovery/capability/error.js.map +1 -0
- package/dist/discovery/capability/index.d.ts +21 -0
- package/dist/discovery/capability/index.js +21 -0
- package/dist/discovery/capability/index.js.map +1 -0
- package/dist/discovery/capability/intersect.d.ts +56 -0
- package/dist/discovery/capability/intersect.js +137 -0
- package/dist/discovery/capability/intersect.js.map +1 -0
- package/dist/discovery/catalog-source/errors.d.ts +32 -0
- package/dist/discovery/catalog-source/errors.js +41 -0
- package/dist/discovery/catalog-source/errors.js.map +1 -0
- package/dist/discovery/catalog-source/index.d.ts +30 -0
- package/dist/discovery/catalog-source/index.js +29 -0
- package/dist/discovery/catalog-source/index.js.map +1 -0
- package/dist/discovery/catalog-source/kiwi-record.d.ts +183 -0
- package/dist/discovery/catalog-source/kiwi-record.js +72 -0
- package/dist/discovery/catalog-source/kiwi-record.js.map +1 -0
- package/dist/discovery/catalog-source/kiwi-schema.d.ts +33 -0
- package/dist/discovery/catalog-source/kiwi-schema.js +106 -0
- package/dist/discovery/catalog-source/kiwi-schema.js.map +1 -0
- package/dist/discovery/catalog-source/kiwi-source.d.ts +38 -0
- package/dist/discovery/catalog-source/kiwi-source.js +318 -0
- package/dist/discovery/catalog-source/kiwi-source.js.map +1 -0
- package/dist/discovery/catalog-source/register.d.ts +48 -0
- package/dist/discovery/catalog-source/register.js +83 -0
- package/dist/discovery/catalog-source/register.js.map +1 -0
- package/dist/discovery/catalog-source/schema.d.ts +21 -0
- package/dist/discovery/catalog-source/schema.js +63 -0
- package/dist/discovery/catalog-source/schema.js.map +1 -0
- package/dist/discovery/catalog-source/source.d.ts +45 -0
- package/dist/discovery/catalog-source/source.js +197 -0
- package/dist/discovery/catalog-source/source.js.map +1 -0
- package/dist/discovery/catalog-source/types.d.ts +122 -0
- package/dist/discovery/catalog-source/types.js +30 -0
- package/dist/discovery/catalog-source/types.js.map +1 -0
- package/dist/discovery/index.d.ts +25 -0
- package/dist/discovery/index.js +25 -0
- package/dist/discovery/index.js.map +1 -0
- package/dist/discovery/resolve.d.ts +175 -0
- package/dist/discovery/resolve.js +367 -0
- package/dist/discovery/resolve.js.map +1 -0
- package/dist/discovery/ucp/error.d.ts +25 -0
- package/dist/discovery/ucp/error.js +27 -0
- package/dist/discovery/ucp/error.js.map +1 -0
- package/dist/discovery/ucp/index.d.ts +33 -0
- package/dist/discovery/ucp/index.js +28 -0
- package/dist/discovery/ucp/index.js.map +1 -0
- package/dist/discovery/ucp/intersect.d.ts +148 -0
- package/dist/discovery/ucp/intersect.js +312 -0
- package/dist/discovery/ucp/intersect.js.map +1 -0
- package/dist/discovery/ucp/resolver.d.ts +62 -0
- package/dist/discovery/ucp/resolver.js +214 -0
- package/dist/discovery/ucp/resolver.js.map +1 -0
- package/dist/discovery/ucp/types.d.ts +97 -0
- package/dist/discovery/ucp/types.js +103 -0
- package/dist/discovery/ucp/types.js.map +1 -0
- package/dist/discovery/ucp/validate.d.ts +38 -0
- package/dist/discovery/ucp/validate.js +232 -0
- package/dist/discovery/ucp/validate.js.map +1 -0
- package/dist/discovery/ucp/vendor.d.ts +60 -0
- package/dist/discovery/ucp/vendor.js +61 -0
- package/dist/discovery/ucp/vendor.js.map +1 -0
- package/dist/doctor.d.ts +26 -0
- package/dist/doctor.js +113 -0
- package/dist/doctor.js.map +1 -0
- package/dist/exit-codes.d.ts +26 -0
- package/dist/exit-codes.js +27 -0
- package/dist/exit-codes.js.map +1 -0
- package/dist/fanout/disclosure.d.ts +138 -0
- package/dist/fanout/disclosure.js +188 -0
- package/dist/fanout/disclosure.js.map +1 -0
- package/dist/fanout/index.d.ts +32 -0
- package/dist/fanout/index.js +30 -0
- package/dist/fanout/index.js.map +1 -0
- package/dist/fanout/orchestrator.d.ts +153 -0
- package/dist/fanout/orchestrator.js +439 -0
- package/dist/fanout/orchestrator.js.map +1 -0
- package/dist/fanout/policy.d.ts +128 -0
- package/dist/fanout/policy.js +130 -0
- package/dist/fanout/policy.js.map +1 -0
- package/dist/handoff/acp-commerce.d.ts +58 -0
- package/dist/handoff/acp-commerce.js +69 -0
- package/dist/handoff/acp-commerce.js.map +1 -0
- package/dist/handoff/authorization.d.ts +127 -0
- package/dist/handoff/authorization.js +107 -0
- package/dist/handoff/authorization.js.map +1 -0
- package/dist/handoff/candidate.d.ts +94 -0
- package/dist/handoff/candidate.js +172 -0
- package/dist/handoff/candidate.js.map +1 -0
- package/dist/handoff/channel.d.ts +88 -0
- package/dist/handoff/channel.js +189 -0
- package/dist/handoff/channel.js.map +1 -0
- package/dist/handoff/completion.d.ts +44 -0
- package/dist/handoff/completion.js +136 -0
- package/dist/handoff/completion.js.map +1 -0
- package/dist/handoff/delivery.d.ts +59 -0
- package/dist/handoff/delivery.js +185 -0
- package/dist/handoff/delivery.js.map +1 -0
- package/dist/handoff/destination.d.ts +39 -0
- package/dist/handoff/destination.js +99 -0
- package/dist/handoff/destination.js.map +1 -0
- package/dist/handoff/errors.d.ts +34 -0
- package/dist/handoff/errors.js +47 -0
- package/dist/handoff/errors.js.map +1 -0
- package/dist/handoff/idempotency.d.ts +51 -0
- package/dist/handoff/idempotency.js +168 -0
- package/dist/handoff/idempotency.js.map +1 -0
- package/dist/handoff/index.d.ts +46 -0
- package/dist/handoff/index.js +48 -0
- package/dist/handoff/index.js.map +1 -0
- package/dist/handoff/ledger.d.ts +94 -0
- package/dist/handoff/ledger.js +195 -0
- package/dist/handoff/ledger.js.map +1 -0
- package/dist/handoff/lifecycle.d.ts +29 -0
- package/dist/handoff/lifecycle.js +102 -0
- package/dist/handoff/lifecycle.js.map +1 -0
- package/dist/handoff/metrics.d.ts +56 -0
- package/dist/handoff/metrics.js +78 -0
- package/dist/handoff/metrics.js.map +1 -0
- package/dist/handoff/operator-approval.d.ts +143 -0
- package/dist/handoff/operator-approval.js +287 -0
- package/dist/handoff/operator-approval.js.map +1 -0
- package/dist/handoff/order-record.d.ts +104 -0
- package/dist/handoff/order-record.js +235 -0
- package/dist/handoff/order-record.js.map +1 -0
- package/dist/handoff/package.d.ts +102 -0
- package/dist/handoff/package.js +132 -0
- package/dist/handoff/package.js.map +1 -0
- package/dist/handoff/transaction.d.ts +96 -0
- package/dist/handoff/transaction.js +263 -0
- package/dist/handoff/transaction.js.map +1 -0
- package/dist/handoff/ucp-checkout/cart-channel.d.ts +111 -0
- package/dist/handoff/ucp-checkout/cart-channel.js +370 -0
- package/dist/handoff/ucp-checkout/cart-channel.js.map +1 -0
- package/dist/handoff/ucp-checkout/cart-parse.d.ts +22 -0
- package/dist/handoff/ucp-checkout/cart-parse.js +102 -0
- package/dist/handoff/ucp-checkout/cart-parse.js.map +1 -0
- package/dist/handoff/ucp-checkout/cart-types.d.ts +93 -0
- package/dist/handoff/ucp-checkout/cart-types.js +38 -0
- package/dist/handoff/ucp-checkout/cart-types.js.map +1 -0
- package/dist/handoff/ucp-checkout/channel.d.ts +159 -0
- package/dist/handoff/ucp-checkout/channel.js +636 -0
- package/dist/handoff/ucp-checkout/channel.js.map +1 -0
- package/dist/handoff/ucp-checkout/client.d.ts +88 -0
- package/dist/handoff/ucp-checkout/client.js +228 -0
- package/dist/handoff/ucp-checkout/client.js.map +1 -0
- package/dist/handoff/ucp-checkout/endpoint.d.ts +36 -0
- package/dist/handoff/ucp-checkout/endpoint.js +145 -0
- package/dist/handoff/ucp-checkout/endpoint.js.map +1 -0
- package/dist/handoff/ucp-checkout/index.d.ts +35 -0
- package/dist/handoff/ucp-checkout/index.js +36 -0
- package/dist/handoff/ucp-checkout/index.js.map +1 -0
- package/dist/handoff/ucp-checkout/parse.d.ts +71 -0
- package/dist/handoff/ucp-checkout/parse.js +349 -0
- package/dist/handoff/ucp-checkout/parse.js.map +1 -0
- package/dist/handoff/ucp-checkout/totals.d.ts +41 -0
- package/dist/handoff/ucp-checkout/totals.js +36 -0
- package/dist/handoff/ucp-checkout/totals.js.map +1 -0
- package/dist/handoff/ucp-checkout/types.d.ts +149 -0
- package/dist/handoff/ucp-checkout/types.js +58 -0
- package/dist/handoff/ucp-checkout/types.js.map +1 -0
- package/dist/handoff/url-safety.d.ts +44 -0
- package/dist/handoff/url-safety.js +121 -0
- package/dist/handoff/url-safety.js.map +1 -0
- package/dist/i18n.d.ts +24 -0
- package/dist/i18n.js +27 -0
- package/dist/i18n.js.map +1 -0
- package/dist/negotiation/action-candidate.d.ts +97 -0
- package/dist/negotiation/action-candidate.js +160 -0
- package/dist/negotiation/action-candidate.js.map +1 -0
- package/dist/negotiation/condition/evaluator.d.ts +36 -0
- package/dist/negotiation/condition/evaluator.js +123 -0
- package/dist/negotiation/condition/evaluator.js.map +1 -0
- package/dist/negotiation/context-map/index.d.ts +23 -0
- package/dist/negotiation/context-map/index.js +22 -0
- package/dist/negotiation/context-map/index.js.map +1 -0
- package/dist/negotiation/context-map/store.d.ts +51 -0
- package/dist/negotiation/context-map/store.js +186 -0
- package/dist/negotiation/context-map/store.js.map +1 -0
- package/dist/negotiation/context-map/types.d.ts +29 -0
- package/dist/negotiation/context-map/types.js +57 -0
- package/dist/negotiation/context-map/types.js.map +1 -0
- package/dist/negotiation/domain/common.d.ts +95 -0
- package/dist/negotiation/domain/common.js +216 -0
- package/dist/negotiation/domain/common.js.map +1 -0
- package/dist/negotiation/domain/envelope.d.ts +55 -0
- package/dist/negotiation/domain/envelope.js +110 -0
- package/dist/negotiation/domain/envelope.js.map +1 -0
- package/dist/negotiation/domain/identifiers.d.ts +65 -0
- package/dist/negotiation/domain/identifiers.js +130 -0
- package/dist/negotiation/domain/identifiers.js.map +1 -0
- package/dist/negotiation/domain/objects.d.ts +149 -0
- package/dist/negotiation/domain/objects.js +335 -0
- package/dist/negotiation/domain/objects.js.map +1 -0
- package/dist/negotiation/idempotency/index.d.ts +26 -0
- package/dist/negotiation/idempotency/index.js +25 -0
- package/dist/negotiation/idempotency/index.js.map +1 -0
- package/dist/negotiation/idempotency/store.d.ts +52 -0
- package/dist/negotiation/idempotency/store.js +189 -0
- package/dist/negotiation/idempotency/store.js.map +1 -0
- package/dist/negotiation/idempotency/types.d.ts +102 -0
- package/dist/negotiation/idempotency/types.js +47 -0
- package/dist/negotiation/idempotency/types.js.map +1 -0
- package/dist/negotiation/jcs.d.ts +21 -0
- package/dist/negotiation/jcs.js +114 -0
- package/dist/negotiation/jcs.js.map +1 -0
- package/dist/negotiation/ledger/event.d.ts +142 -0
- package/dist/negotiation/ledger/event.js +206 -0
- package/dist/negotiation/ledger/event.js.map +1 -0
- package/dist/negotiation/ledger/index.d.ts +26 -0
- package/dist/negotiation/ledger/index.js +25 -0
- package/dist/negotiation/ledger/index.js.map +1 -0
- package/dist/negotiation/ledger/store.d.ts +97 -0
- package/dist/negotiation/ledger/store.js +338 -0
- package/dist/negotiation/ledger/store.js.map +1 -0
- package/dist/negotiation/prompt.d.ts +34 -0
- package/dist/negotiation/prompt.js +113 -0
- package/dist/negotiation/prompt.js.map +1 -0
- package/dist/negotiation/recovery/index.d.ts +26 -0
- package/dist/negotiation/recovery/index.js +24 -0
- package/dist/negotiation/recovery/index.js.map +1 -0
- package/dist/negotiation/recovery/outbound.d.ts +49 -0
- package/dist/negotiation/recovery/outbound.js +34 -0
- package/dist/negotiation/recovery/outbound.js.map +1 -0
- package/dist/negotiation/recovery/recover.d.ts +59 -0
- package/dist/negotiation/recovery/recover.js +486 -0
- package/dist/negotiation/recovery/recover.js.map +1 -0
- package/dist/negotiation/recovery/types.d.ts +85 -0
- package/dist/negotiation/recovery/types.js +17 -0
- package/dist/negotiation/recovery/types.js.map +1 -0
- package/dist/negotiation/state/phase.d.ts +70 -0
- package/dist/negotiation/state/phase.js +200 -0
- package/dist/negotiation/state/phase.js.map +1 -0
- package/dist/negotiation/types.d.ts +139 -0
- package/dist/negotiation/types.js +24 -0
- package/dist/negotiation/types.js.map +1 -0
- package/dist/net/safe-http.d.ts +54 -0
- package/dist/net/safe-http.js +116 -0
- package/dist/net/safe-http.js.map +1 -0
- package/dist/operator/controller.d.ts +181 -0
- package/dist/operator/controller.js +784 -0
- package/dist/operator/controller.js.map +1 -0
- package/dist/operator/runner.d.ts +128 -0
- package/dist/operator/runner.js +248 -0
- package/dist/operator/runner.js.map +1 -0
- package/dist/operator/store.d.ts +39 -0
- package/dist/operator/store.js +169 -0
- package/dist/operator/store.js.map +1 -0
- package/dist/operator/strategy.d.ts +54 -0
- package/dist/operator/strategy.js +249 -0
- package/dist/operator/strategy.js.map +1 -0
- package/dist/operator/tui.d.ts +27 -0
- package/dist/operator/tui.js +395 -0
- package/dist/operator/tui.js.map +1 -0
- package/dist/operator/types.d.ts +224 -0
- package/dist/operator/types.js +17 -0
- package/dist/operator/types.js.map +1 -0
- package/dist/product-buyer.d.ts +74 -0
- package/dist/product-buyer.js +161 -0
- package/dist/product-buyer.js.map +1 -0
- package/dist/product-cli.d.ts +56 -0
- package/dist/product-cli.js +175 -0
- package/dist/product-cli.js.map +1 -0
- package/dist/product-compat.d.ts +50 -0
- package/dist/product-compat.js +63 -0
- package/dist/product-compat.js.map +1 -0
- package/dist/product-init.d.ts +73 -0
- package/dist/product-init.js +203 -0
- package/dist/product-init.js.map +1 -0
- package/dist/product-publish.d.ts +85 -0
- package/dist/product-publish.js +216 -0
- package/dist/product-publish.js.map +1 -0
- package/dist/protocol/legacy-shopping-negotiation/adapter.d.ts +42 -0
- package/dist/protocol/legacy-shopping-negotiation/adapter.js +561 -0
- package/dist/protocol/legacy-shopping-negotiation/adapter.js.map +1 -0
- package/dist/protocol/legacy-shopping-negotiation/mapping.d.ts +78 -0
- package/dist/protocol/legacy-shopping-negotiation/mapping.js +321 -0
- package/dist/protocol/legacy-shopping-negotiation/mapping.js.map +1 -0
- package/dist/protocol/legacy-shopping-negotiation/money.d.ts +49 -0
- package/dist/protocol/legacy-shopping-negotiation/money.js +70 -0
- package/dist/protocol/legacy-shopping-negotiation/money.js.map +1 -0
- package/dist/protocol/legacy-shopping-negotiation/types.d.ts +107 -0
- package/dist/protocol/legacy-shopping-negotiation/types.js +34 -0
- package/dist/protocol/legacy-shopping-negotiation/types.js.map +1 -0
- package/dist/runtime/buyer-policy.d.ts +58 -0
- package/dist/runtime/buyer-policy.js +89 -0
- package/dist/runtime/buyer-policy.js.map +1 -0
- package/dist/runtime/fake-model.d.ts +77 -0
- package/dist/runtime/fake-model.js +307 -0
- package/dist/runtime/fake-model.js.map +1 -0
- package/dist/runtime/foreground.d.ts +56 -0
- package/dist/runtime/foreground.js +97 -0
- package/dist/runtime/foreground.js.map +1 -0
- package/dist/runtime/heartbeat.d.ts +36 -0
- package/dist/runtime/heartbeat.js +49 -0
- package/dist/runtime/heartbeat.js.map +1 -0
- package/dist/runtime/merchant-turn.d.ts +35 -0
- package/dist/runtime/merchant-turn.js +20 -0
- package/dist/runtime/merchant-turn.js.map +1 -0
- package/dist/runtime/model.d.ts +40 -0
- package/dist/runtime/model.js +86 -0
- package/dist/runtime/model.js.map +1 -0
- package/dist/runtime/negotiation-turn.d.ts +101 -0
- package/dist/runtime/negotiation-turn.js +317 -0
- package/dist/runtime/negotiation-turn.js.map +1 -0
- package/dist/runtime/tools.d.ts +64 -0
- package/dist/runtime/tools.js +236 -0
- package/dist/runtime/tools.js.map +1 -0
- package/dist/supervisor/init.d.ts +31 -0
- package/dist/supervisor/init.js +222 -0
- package/dist/supervisor/init.js.map +1 -0
- package/dist/supervisor/logs.d.ts +28 -0
- package/dist/supervisor/logs.js +101 -0
- package/dist/supervisor/logs.js.map +1 -0
- package/dist/supervisor/manage.d.ts +72 -0
- package/dist/supervisor/manage.js +419 -0
- package/dist/supervisor/manage.js.map +1 -0
- package/dist/supervisor/manifest.d.ts +69 -0
- package/dist/supervisor/manifest.js +209 -0
- package/dist/supervisor/manifest.js.map +1 -0
- package/dist/supervisor/stack-config.d.ts +79 -0
- package/dist/supervisor/stack-config.js +262 -0
- package/dist/supervisor/stack-config.js.map +1 -0
- package/dist/supervisor/wrapper.d.ts +17 -0
- package/dist/supervisor/wrapper.js +138 -0
- package/dist/supervisor/wrapper.js.map +1 -0
- package/dist/trust/identity/auth-verifier.d.ts +96 -0
- package/dist/trust/identity/auth-verifier.js +166 -0
- package/dist/trust/identity/auth-verifier.js.map +1 -0
- package/dist/trust/identity/identity-binding.d.ts +63 -0
- package/dist/trust/identity/identity-binding.js +59 -0
- package/dist/trust/identity/identity-binding.js.map +1 -0
- package/dist/trust/identity/index.d.ts +38 -0
- package/dist/trust/identity/index.js +31 -0
- package/dist/trust/identity/index.js.map +1 -0
- package/dist/trust/identity/jws.d.ts +64 -0
- package/dist/trust/identity/jws.js +178 -0
- package/dist/trust/identity/jws.js.map +1 -0
- package/dist/trust/identity/keys.d.ts +71 -0
- package/dist/trust/identity/keys.js +118 -0
- package/dist/trust/identity/keys.js.map +1 -0
- package/dist/trust/identity/message-signature.d.ts +105 -0
- package/dist/trust/identity/message-signature.js +297 -0
- package/dist/trust/identity/message-signature.js.map +1 -0
- package/dist/trust/identity/nonce.d.ts +45 -0
- package/dist/trust/identity/nonce.js +50 -0
- package/dist/trust/identity/nonce.js.map +1 -0
- package/dist/trust/identity/signature-base.d.ts +84 -0
- package/dist/trust/identity/signature-base.js +261 -0
- package/dist/trust/identity/signature-base.js.map +1 -0
- package/dist/trust/identity/trust-policy.d.ts +92 -0
- package/dist/trust/identity/trust-policy.js +95 -0
- package/dist/trust/identity/trust-policy.js.map +1 -0
- package/dist/trust/index.d.ts +21 -0
- package/dist/trust/index.js +22 -0
- package/dist/trust/index.js.map +1 -0
- package/dist/trust/records/evaluator.d.ts +76 -0
- package/dist/trust/records/evaluator.js +122 -0
- package/dist/trust/records/evaluator.js.map +1 -0
- package/dist/trust/records/index.d.ts +28 -0
- package/dist/trust/records/index.js +26 -0
- package/dist/trust/records/index.js.map +1 -0
- package/dist/trust/records/store.d.ts +75 -0
- package/dist/trust/records/store.js +339 -0
- package/dist/trust/records/store.js.map +1 -0
- package/dist/trust/records/types.d.ts +159 -0
- package/dist/trust/records/types.js +40 -0
- package/dist/trust/records/types.js.map +1 -0
- package/dist/tui/banner.d.ts +46 -0
- package/dist/tui/banner.js +99 -0
- package/dist/tui/banner.js.map +1 -0
- package/dist/tui/styles.d.ts +70 -0
- package/dist/tui/styles.js +197 -0
- package/dist/tui/styles.js.map +1 -0
- package/dist/tui/theme.d.ts +63 -0
- package/dist/tui/theme.js +136 -0
- package/dist/tui/theme.js.map +1 -0
- package/examples/profiles/buyer.deepseek.yaml +34 -0
- package/examples/profiles/buyer.fake.yaml +36 -0
- package/examples/profiles/buyer.local.yaml +40 -0
- package/examples/profiles/merchant.deepseek.yaml +32 -0
- package/examples/profiles/merchant.fake.yaml +31 -0
- package/examples/profiles/merchant.local.yaml +34 -0
- package/package.json +55 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "binding-rc1/data-part-examples/v1",
|
|
3
|
+
"generated_by": "kiwi dist",
|
|
4
|
+
"examples": [
|
|
5
|
+
{
|
|
6
|
+
"label": "counter_offer",
|
|
7
|
+
"kind": "message",
|
|
8
|
+
"message": {
|
|
9
|
+
"role": "agent",
|
|
10
|
+
"messageId": "msg_01H5V8KXZqJ7Qp3mN2B6A",
|
|
11
|
+
"parts": [
|
|
12
|
+
{
|
|
13
|
+
"kind": "text",
|
|
14
|
+
"text": "If we order 200 units, we propose CNY 835.00 per unit."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"kind": "data",
|
|
18
|
+
"data": {
|
|
19
|
+
"knp_envelope": {
|
|
20
|
+
"capability": "com.harrylabsj.kiwi.shopping.negotiation",
|
|
21
|
+
"protocol_version": "1.0",
|
|
22
|
+
"negotiation_id": "neg_01H5V8KXZqJ7Qp3mN2B6A",
|
|
23
|
+
"exchange_id": "ex_01H5V8KXZqJ7Qp3mN2B6A",
|
|
24
|
+
"created_at": "2026-08-05T12:00:00Z",
|
|
25
|
+
"message_id": "msg_01H5V8KXZqJ7Qp3mN2B6A",
|
|
26
|
+
"in_reply_to": "msg_00H5V8KXZqJ7Qp3mN2B6A",
|
|
27
|
+
"actor": "buyer",
|
|
28
|
+
"action": "counter_offer",
|
|
29
|
+
"payload": {
|
|
30
|
+
"type": "counter_offer",
|
|
31
|
+
"offer_id": "off_02H5V8KXZqJ7Qp3mN2B6A",
|
|
32
|
+
"responding_to_offer_id": "off_01H5V8KXZqJ7Qp3mN2B6A",
|
|
33
|
+
"proposed_terms": {
|
|
34
|
+
"items": [
|
|
35
|
+
{
|
|
36
|
+
"sku": "SKU-001",
|
|
37
|
+
"quantity": {
|
|
38
|
+
"value": 200,
|
|
39
|
+
"unit": "piece"
|
|
40
|
+
},
|
|
41
|
+
"unit_price": {
|
|
42
|
+
"currency": "CNY",
|
|
43
|
+
"amount_minor": 83500
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"public_message": "If we order 200 units, we propose CNY 835.00 per unit.",
|
|
50
|
+
"digest": "sha256:87517fc5c7d13be7abba1e02349632e891aa1062da9339e90dd6249c0e985295"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"label": "offer",
|
|
59
|
+
"kind": "message",
|
|
60
|
+
"message": {
|
|
61
|
+
"role": "agent",
|
|
62
|
+
"messageId": "msg_02H5V8KXZqJ7Qp3mN2B6A",
|
|
63
|
+
"parts": [
|
|
64
|
+
{
|
|
65
|
+
"kind": "text",
|
|
66
|
+
"text": "We offer CNY 850.00 per unit, delivery before 2026-08-20."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"kind": "data",
|
|
70
|
+
"data": {
|
|
71
|
+
"knp_envelope": {
|
|
72
|
+
"capability": "com.harrylabsj.kiwi.shopping.negotiation",
|
|
73
|
+
"protocol_version": "1.0",
|
|
74
|
+
"negotiation_id": "neg_01H5V8KXZqJ7Qp3mN2B6A",
|
|
75
|
+
"exchange_id": "ex_01H5V8KXZqJ7Qp3mN2B6A",
|
|
76
|
+
"created_at": "2026-08-05T12:00:00Z",
|
|
77
|
+
"message_id": "msg_02H5V8KXZqJ7Qp3mN2B6A",
|
|
78
|
+
"in_reply_to": "msg_00H5V8KXZqJ7Qp3mN2B6A",
|
|
79
|
+
"actor": "merchant",
|
|
80
|
+
"action": "offer",
|
|
81
|
+
"payload": {
|
|
82
|
+
"type": "offer",
|
|
83
|
+
"offer_id": "off_01H5V8KXZqJ7Qp3mN2B6A",
|
|
84
|
+
"terms": {
|
|
85
|
+
"items": [
|
|
86
|
+
{
|
|
87
|
+
"sku": "SKU-001",
|
|
88
|
+
"quantity": {
|
|
89
|
+
"value": 200,
|
|
90
|
+
"unit": "piece"
|
|
91
|
+
},
|
|
92
|
+
"unit_price": {
|
|
93
|
+
"currency": "CNY",
|
|
94
|
+
"amount_minor": 85000
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"fulfillment_terms": {
|
|
99
|
+
"delivery_before": "2026-08-20T18:00:00Z"
|
|
100
|
+
},
|
|
101
|
+
"valid_until": "2026-08-06T12:00:00Z"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"public_message": "We offer CNY 850.00 per unit, delivery before 2026-08-20.",
|
|
105
|
+
"digest": "sha256:99dfb819f5668835005582cfb1db4992d5bd13fa9059e4b2298dda1c466b5742"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"label": "inquiry",
|
|
114
|
+
"kind": "message",
|
|
115
|
+
"message": {
|
|
116
|
+
"role": "agent",
|
|
117
|
+
"messageId": "msg_03H5V8KXZqJ7Qp3mN2B6A",
|
|
118
|
+
"parts": [
|
|
119
|
+
{
|
|
120
|
+
"kind": "text",
|
|
121
|
+
"text": "请问这款商品的预计交付时间?"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"kind": "data",
|
|
125
|
+
"data": {
|
|
126
|
+
"knp_envelope": {
|
|
127
|
+
"capability": "com.harrylabsj.kiwi.shopping.negotiation",
|
|
128
|
+
"protocol_version": "1.0",
|
|
129
|
+
"negotiation_id": "neg_01H5V8KXZqJ7Qp3mN2B6A",
|
|
130
|
+
"exchange_id": "ex_01H5V8KXZqJ7Qp3mN2B6A",
|
|
131
|
+
"created_at": "2026-08-05T12:00:00Z",
|
|
132
|
+
"message_id": "msg_03H5V8KXZqJ7Qp3mN2B6A",
|
|
133
|
+
"actor": "buyer",
|
|
134
|
+
"action": "inquiry",
|
|
135
|
+
"payload": {
|
|
136
|
+
"type": "inquiry",
|
|
137
|
+
"subject": {
|
|
138
|
+
"sku": "SKU-001"
|
|
139
|
+
},
|
|
140
|
+
"questions": [
|
|
141
|
+
{
|
|
142
|
+
"code": "delivery.estimated_date"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"digest": "sha256:a08539767c6fc46ddc8111fd0b1f320e85978dd164c4ed7bf592646305e91736"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"label": "accept_nonbinding",
|
|
155
|
+
"kind": "message",
|
|
156
|
+
"message": {
|
|
157
|
+
"role": "agent",
|
|
158
|
+
"messageId": "msg_04H5V8KXZqJ7Qp3mN2B6A",
|
|
159
|
+
"parts": [
|
|
160
|
+
{
|
|
161
|
+
"kind": "data",
|
|
162
|
+
"data": {
|
|
163
|
+
"knp_envelope": {
|
|
164
|
+
"capability": "com.harrylabsj.kiwi.shopping.negotiation",
|
|
165
|
+
"protocol_version": "1.0",
|
|
166
|
+
"negotiation_id": "neg_01H5V8KXZqJ7Qp3mN2B6A",
|
|
167
|
+
"exchange_id": "ex_01H5V8KXZqJ7Qp3mN2B6A",
|
|
168
|
+
"created_at": "2026-08-05T12:00:00Z",
|
|
169
|
+
"message_id": "msg_04H5V8KXZqJ7Qp3mN2B6A",
|
|
170
|
+
"in_reply_to": "msg_01H5V8KXZqJ7Qp3mN2B6A",
|
|
171
|
+
"actor": "buyer",
|
|
172
|
+
"action": "accept_nonbinding",
|
|
173
|
+
"payload": {
|
|
174
|
+
"type": "accept_nonbinding",
|
|
175
|
+
"offer_id": "off_01H5V8KXZqJ7Qp3mN2B6A",
|
|
176
|
+
"terms_digest": "sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a"
|
|
177
|
+
},
|
|
178
|
+
"digest": "sha256:0231490ea2ff95b8d9a230f2dfb8901ade73f56f0e1f71921bed4157b89c69da"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"label": "task_result",
|
|
187
|
+
"kind": "task",
|
|
188
|
+
"task": {
|
|
189
|
+
"taskId": "task_01H5V8KXZqJ7Qp3mN2B6A",
|
|
190
|
+
"status": {
|
|
191
|
+
"state": "completed",
|
|
192
|
+
"message": {
|
|
193
|
+
"role": "agent",
|
|
194
|
+
"messageId": "msg_05H5V8KXZqJ7Qp3mN2B6A",
|
|
195
|
+
"parts": [
|
|
196
|
+
{
|
|
197
|
+
"kind": "data",
|
|
198
|
+
"data": {
|
|
199
|
+
"knp_envelope": {
|
|
200
|
+
"capability": "com.harrylabsj.kiwi.shopping.negotiation",
|
|
201
|
+
"protocol_version": "1.0",
|
|
202
|
+
"negotiation_id": "neg_01H5V8KXZqJ7Qp3mN2B6A",
|
|
203
|
+
"exchange_id": "ex_01H5V8KXZqJ7Qp3mN2B6A",
|
|
204
|
+
"created_at": "2026-08-05T12:00:00Z",
|
|
205
|
+
"message_id": "msg_05H5V8KXZqJ7Qp3mN2B6A",
|
|
206
|
+
"in_reply_to": "msg_01H5V8KXZqJ7Qp3mN2B6A",
|
|
207
|
+
"actor": "merchant",
|
|
208
|
+
"action": "offer",
|
|
209
|
+
"payload": {
|
|
210
|
+
"type": "offer",
|
|
211
|
+
"offer_id": "off_01H5V8KXZqJ7Qp3mN2B6A",
|
|
212
|
+
"terms": {
|
|
213
|
+
"items": [
|
|
214
|
+
{
|
|
215
|
+
"sku": "SKU-001",
|
|
216
|
+
"quantity": {
|
|
217
|
+
"value": 200,
|
|
218
|
+
"unit": "piece"
|
|
219
|
+
},
|
|
220
|
+
"unit_price": {
|
|
221
|
+
"currency": "CNY",
|
|
222
|
+
"amount_minor": 85000
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"fulfillment_terms": {
|
|
227
|
+
"delivery_before": "2026-08-20T18:00:00Z"
|
|
228
|
+
},
|
|
229
|
+
"valid_until": "2026-08-06T12:00:00Z"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"public_message": "异步任务的 offer 结果。",
|
|
233
|
+
"digest": "sha256:faf538b5cd7eff5e2e9eae85774d9f0ab98fe317dff7a52a5fb57a5d3d94be82"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "kiwi-catalog agent record",
|
|
4
|
+
"description": "kiwi-catalog /v1/agents 的 CatalogAgentRecord wire 形状(产品文档 v0.3 §6/§7)。public-only:register 与响应均不得携带私有经营数据(完成定义 #8)。三正交状态域(VerificationLevel / FreshnessState / AdministrativeState)各自独立,不得坍缩为单一状态机。",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"catalog_agent_id",
|
|
9
|
+
"principal_type",
|
|
10
|
+
"display_name",
|
|
11
|
+
"canonical_domain",
|
|
12
|
+
"hosting_mode",
|
|
13
|
+
"verification_level",
|
|
14
|
+
"freshness_state",
|
|
15
|
+
"administrative_state",
|
|
16
|
+
"created_at",
|
|
17
|
+
"updated_at"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"catalog_agent_id": { "type": "string", "minLength": 1 },
|
|
21
|
+
"principal_type": { "enum": ["buyer", "merchant"] },
|
|
22
|
+
"merchant_id": { "type": "string", "minLength": 1 },
|
|
23
|
+
"display_name": { "type": "string", "minLength": 1 },
|
|
24
|
+
"canonical_domain": { "type": "string", "minLength": 1 },
|
|
25
|
+
"agent_card_url": { "type": "string", "pattern": "^https?://\\S+$" },
|
|
26
|
+
"ucp_profile_url": { "type": "string", "pattern": "^https?://\\S+$" },
|
|
27
|
+
"protocols": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": { "type": "array", "items": { "type": "string" } }
|
|
30
|
+
},
|
|
31
|
+
"capabilities": { "type": "array", "items": { "type": "string" } },
|
|
32
|
+
"skills": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["skill_id", "name"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"skill_id": { "type": "string", "minLength": 1 },
|
|
40
|
+
"name": { "type": "string", "minLength": 1 },
|
|
41
|
+
"description": { "type": "string" },
|
|
42
|
+
"tags": { "type": "array", "items": { "type": "string" } }
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"hosting_mode": {
|
|
47
|
+
"enum": ["direct", "hosted", "hybrid", "unknown", "direct_only", "hosted_only"]
|
|
48
|
+
},
|
|
49
|
+
"handoff_destination_types": {
|
|
50
|
+
"description": "KTH destination_type 精确词表(单一来源,禁止 supports_* 平行词表)",
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {
|
|
53
|
+
"enum": [
|
|
54
|
+
"ucp_checkout",
|
|
55
|
+
"ucp_order",
|
|
56
|
+
"external_checkout_url",
|
|
57
|
+
"merchant_checkout_session",
|
|
58
|
+
"platform_deep_link",
|
|
59
|
+
"buyer_erp_request",
|
|
60
|
+
"procurement_request",
|
|
61
|
+
"purchase_order_draft",
|
|
62
|
+
"quote_document",
|
|
63
|
+
"merchant_contact",
|
|
64
|
+
"sales_handoff"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"verification_level": {
|
|
69
|
+
"enum": ["discovered", "profile_valid", "domain_verified", "agent_verified", "commerce_verified"]
|
|
70
|
+
},
|
|
71
|
+
"freshness_state": { "enum": ["fresh", "stale", "unreachable"] },
|
|
72
|
+
"administrative_state": { "enum": ["active", "suspended", "rejected"] },
|
|
73
|
+
"last_verified_at": { "type": "string", "minLength": 1 },
|
|
74
|
+
"fresh_until": { "type": "string", "minLength": 1 },
|
|
75
|
+
"created_at": { "type": "string", "minLength": 1 },
|
|
76
|
+
"updated_at": { "type": "string", "minLength": 1 }
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "listing-record.schema.json",
|
|
4
|
+
"title": "kiwi-catalog listing record",
|
|
5
|
+
"description": "kiwi-catalog /v1/listings 的 ListingRecord wire 形状(产品文档 kiwi-catalog v0.4 §4/§5/§9)。public-only discovery projection:不得携带 merchant cost / floor price / 私有库存 / 凭据 / 客户数据(v0.4 §4.2 Forbidden Fields)。listing freshness 与 Agent freshness 分离:本 schema 用大写 listing_freshness_state(FRESH/STALE),与 agent-record 的小写 freshness_state(fresh/stale/unreachable)拼写区分,禁止混用。CapabilityListing 不得虚构 SKU,也不携带 handoff_destination_types。",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"listing_id",
|
|
10
|
+
"listing_type",
|
|
11
|
+
"owner_agent_id",
|
|
12
|
+
"merchant_id",
|
|
13
|
+
"title",
|
|
14
|
+
"category",
|
|
15
|
+
"listing_digest",
|
|
16
|
+
"publication_state",
|
|
17
|
+
"listing_freshness_state",
|
|
18
|
+
"published_at",
|
|
19
|
+
"updated_at",
|
|
20
|
+
"fresh_until"
|
|
21
|
+
],
|
|
22
|
+
"if": {
|
|
23
|
+
"properties": { "listing_type": { "const": "product" } },
|
|
24
|
+
"required": ["listing_type"]
|
|
25
|
+
},
|
|
26
|
+
"then": { "required": ["source_product_ref"] },
|
|
27
|
+
"else": {
|
|
28
|
+
"not": { "required": ["handoff_destination_types"] }
|
|
29
|
+
},
|
|
30
|
+
"properties": {
|
|
31
|
+
"listing_id": { "type": "string", "pattern": "^lst_" },
|
|
32
|
+
"listing_type": { "enum": ["product", "capability"] },
|
|
33
|
+
"owner_agent_id": { "type": "string", "minLength": 1 },
|
|
34
|
+
"merchant_id": { "type": "string", "minLength": 1 },
|
|
35
|
+
"source_product_ref": { "type": "string", "minLength": 1 },
|
|
36
|
+
"source_revision": { "type": "string", "minLength": 1 },
|
|
37
|
+
"title": { "type": "string", "minLength": 1 },
|
|
38
|
+
"summary": { "type": "string" },
|
|
39
|
+
"category": { "type": "string", "minLength": 1 },
|
|
40
|
+
"brand": { "type": "string", "minLength": 1 },
|
|
41
|
+
"attributes": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"additionalProperties": { "type": ["string", "number", "boolean"] },
|
|
44
|
+
"maxProperties": 64
|
|
45
|
+
},
|
|
46
|
+
"regions": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
47
|
+
"tags": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
48
|
+
"commercial_hints": {
|
|
49
|
+
"description": "discovery hints,不是 KNP Offer(v0.4 §4.1);authority 仍在 Direct A2A 阶段确认",
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"properties": {
|
|
53
|
+
"moq": { "type": "integer", "minimum": 1 },
|
|
54
|
+
"price_range_hint": { "type": "string", "minLength": 1 },
|
|
55
|
+
"availability_hint": { "type": "string", "minLength": 1 },
|
|
56
|
+
"lead_time_hint": { "type": "string", "minLength": 1 },
|
|
57
|
+
"supports_bulk_quote": { "type": "boolean" },
|
|
58
|
+
"supports_customization": { "type": "boolean" },
|
|
59
|
+
"fulfillment_regions": { "type": "array", "items": { "type": "string", "minLength": 1 } }
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"handoff_destination_types": {
|
|
63
|
+
"description": "仅 ProductListing 允许;精确 KTH destination_type 词表(单一来源,禁止 supports_* 平行词表)",
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": {
|
|
66
|
+
"enum": [
|
|
67
|
+
"ucp_checkout",
|
|
68
|
+
"ucp_order",
|
|
69
|
+
"external_checkout_url",
|
|
70
|
+
"merchant_checkout_session",
|
|
71
|
+
"platform_deep_link",
|
|
72
|
+
"buyer_erp_request",
|
|
73
|
+
"procurement_request",
|
|
74
|
+
"purchase_order_draft",
|
|
75
|
+
"quote_document",
|
|
76
|
+
"merchant_contact",
|
|
77
|
+
"sales_handoff"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"listing_digest": { "type": "string", "minLength": 1 },
|
|
82
|
+
"publication_state": { "enum": ["ACTIVE", "WITHDRAWN", "SUSPENDED"] },
|
|
83
|
+
"listing_freshness_state": { "enum": ["FRESH", "STALE"] },
|
|
84
|
+
"published_at": { "type": "string", "minLength": 1 },
|
|
85
|
+
"updated_at": { "type": "string", "minLength": 1 },
|
|
86
|
+
"fresh_until": { "type": "string", "minLength": 1 }
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "listing-search-result.schema.json",
|
|
4
|
+
"title": "kiwi-catalog listing search result",
|
|
5
|
+
"description": "kiwi-catalog /v1/listings/search 的单个结果形状(产品文档 kiwi-catalog v0.4 §9)。同时返回“商品/能力”与“谁可以被联系”:listing($ref listing-record)+ merchant/agent 投影。authority 恒为 discovery_projection、requires_direct_confirmation 恒为 true(v0.4 CD #24):Catalog 只负责召回,Merchant Agent 负责确认;hint 永不视为 Offer/库存预留(v0.4 §3 Source of Truth Boundary)。",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"listing",
|
|
10
|
+
"merchant",
|
|
11
|
+
"agent",
|
|
12
|
+
"listing_freshness_state",
|
|
13
|
+
"authority",
|
|
14
|
+
"requires_direct_confirmation"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"listing": { "$ref": "listing-record.schema.json" },
|
|
18
|
+
"merchant": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"required": ["merchant_id", "display_name"],
|
|
22
|
+
"properties": {
|
|
23
|
+
"merchant_id": { "type": "string", "minLength": 1 },
|
|
24
|
+
"display_name": { "type": "string", "minLength": 1 }
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"agent": {
|
|
28
|
+
"description": "owner Agent 当前投影(join 自 catalog_agents);Buyer 后续按 owner_agent_id → getRecord → fresh verify,本投影不复制 A2A endpoint(v0.4 §11)",
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": [
|
|
32
|
+
"catalog_agent_id",
|
|
33
|
+
"verification_level",
|
|
34
|
+
"freshness_state",
|
|
35
|
+
"administrative_state"
|
|
36
|
+
],
|
|
37
|
+
"properties": {
|
|
38
|
+
"catalog_agent_id": { "type": "string", "minLength": 1 },
|
|
39
|
+
"verification_level": {
|
|
40
|
+
"enum": ["discovered", "profile_valid", "domain_verified", "agent_verified", "commerce_verified"]
|
|
41
|
+
},
|
|
42
|
+
"freshness_state": { "enum": ["fresh", "stale", "unreachable"] },
|
|
43
|
+
"administrative_state": { "enum": ["active", "suspended", "rejected"] }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"listing_freshness_state": { "enum": ["FRESH", "STALE"] },
|
|
47
|
+
"authority": { "enum": ["discovery_projection"] },
|
|
48
|
+
"requires_direct_confirmation": { "const": true },
|
|
49
|
+
"match": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"properties": {
|
|
53
|
+
"matched_category": { "type": "boolean" },
|
|
54
|
+
"matched_region": { "type": "boolean" },
|
|
55
|
+
"matched_brand": { "type": "boolean" },
|
|
56
|
+
"score": { "type": "number" }
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|