@agenticprimitives/intent-marketplace

中文文档
0.0.0-alpha.42发布于 2026/10/26MITTypeScriptES Module近 30 天下载 4113

Direct Lane intent matchmaking. Intent + ConstraintSet + AssumptionSet + ResolutionReceipt + IntentMatch + composite-score ranking. Resolver layer 4 folded into PassThrough stub in W1.

原始使用文档
文档目录5 节
  1. What ships today
  2. What lands in the waves (designed, not shipped)
  3. Where this is heading / market context
  4. Build
  5. Status — honest version

@agenticprimitives/intent-marketplace

Part of Agentic Primitives — the open-source trust substrate for agentic applications: identity that can sign, authority checked at act time, evidence the owner carries. Developer kit · All packages

Status: STUB (Wave 0.5 of the W1 implementation wave). Typed primitives and matcher math ship today; the full Direct Lane marketplace lands in Wave 5 per the w1 implementation wave plan.

Agents are about to negotiate with each other at scale, and the intent layer is where that negotiation starts: "I want X, under these constraints — find me a counterparty." ERC-7683 and Anoma proved the pattern for cross-chain settlement; what no one ships is intents that live under the same delegation, custody, and audit substrate as the identity expressing them. An intent here is expressed by a canonical Smart Agent address, brokered under a scoped delegation, and resolved with a signed, AI-auditable receipt — not a freeform message in a vendor silo.

This package is the designed coordination slice of that substrate: spine Layers 2, 3, 5, 6, and 7 — intent expression through dual-signed commitment — spec'd in full, scaffolded now, landing in the implementation waves.

Part of agenticprimitives — the trust substrate for the agent economy: one canonical Smart Agent identity with custody, delegation, naming, credentials, and audit evidence designed as one system.

What ships today

The W1 foundational surface — types and pure functions, no marketplace runtime:

  • Intent typed envelope — direction (receive | give) + SKOS object IRI + topic + payload + expected outcome + 5-tier visibility + status state machine.
  • ConstraintSet + AssumptionSet — first-class typed structures (Anoma CSP-shaped), never freeform payload. Every constraint carries its source (user-asserted | llm-inferred | policy-imposed), strength, and enforcement point.
  • ResolutionReceipt type — the AI-auditability surface: model + version + prompt hash + tool-call hashes + confidence + a requiresUserConfirmation gate, so an LLM-inferred constraint can never silently bind a user.
  • IntentMatch + Commitment types — the match record and the dual-signed envelope handed off (as bytes) to agreements.
  • Matcher math — isCompatible (opposite direction + same object + topic similarity) and the composite score (0.6 × proximity + 0.4 × outcome, Laplace-smoothed) with toMatchScore.

What lands in the waves (designed, not shipped)

buildIntent / signIntent, the runMatcher / rankCandidates pipeline, visibility projections (projectFor with per-field DisclosurePolicy), the three-tier delegation model (T1 session / T2 system / T3 cross), and the scope catalog + cross-delegation builders. Pool Lane (1-to-N) and Proposal Lane (RFP) are deliberately deferred beyond W1. The resolver engine is a separate package — intent-resolver.

The engagement layer (spec 336) is deliberately NOT this package. The pre-task provider-qualification chain — audience-bound IntentProjections, EngagementProbe + the six-kind response taxonomy, provider-signed FulfillmentOffers, RAR-shaped MandateRequirements, the deterministic engagement reducer — is the dedicated intent-engagement package (spec 336 §8; wave E1). It sits above this one and imports our intent types type-only; this package matches counter-intents within one trust context, engagement qualifies external cross-org providers. See spec 336 + the standards crosswalk.

Where this is heading / market context

  • ERC-7683 standardized cross-chain intent orders and the resolver role; we adopt its resolver/matchmaker separation and reserve an erc7683Order slot for interop.
  • Anoma shaped intents as constraint-satisfaction problems; our ConstraintSet follows that shape as a first-class type.
  • x402 and Google AP2 are making machine payments and agent mandates real — which is exactly why the intent that triggers a payment must share a trust chain with the mandate that authorizes it. Here, the intent, the delegation that brokered it, the payment mandate it binds to (payments), and the audit event it emits all reference one canonical address.

That combination — intents under the same delegation + custody + audit substrate — is the gap this package exists to fill.

Authoritative spec: spec 239 — intent spine (see spec.md). Owns spine layers 2-3-5-6-7; bounded surface in CLAUDE.md and capability.manifest.json.

Build

pnpm --filter @agenticprimitives/intent-marketplace typecheck
pnpm --filter @agenticprimitives/intent-marketplace test
pnpm --filter @agenticprimitives/intent-marketplace build

Status — honest version

STUB. Treat every API outside "What ships today" as a design commitment, not a capability. Wave sequencing: w1-implementation-wave-plan.md. Security findings for the whole repo are tracked live in docs/audits/findings.yaml.

版本与发布记录

@agenticprimitives/intent-marketplace 共发布 34 个版本,首次发布于 2026/06/11;过去 12 个月发布了 34 个版本。

版本发布日期距今
0.0.0-alpha.42latest2026/10/2612 天前
0.0.0-alpha.412026/10/2612 天前
0.0.0-alpha.402026/10/1721 天前
0.0.0-alpha.392026/10/1722 天前
0.0.0-alpha.382026/10/1622 天前
0.0.0-alpha.372026/10/1622 天前

其他发布通道:alpha → 0.0.0-alpha.3。

关于 @agenticprimitives/intent-marketplace 的常见问题

@agenticprimitives/intent-marketplace 是什么?

Direct Lane intent matchmaking. Intent + ConstraintSet + AssumptionSet + ResolutionReceipt + IntentMatch + composite-score ranking. Resolver layer 4 folded into PassThrough stub in W1.

如何安装 @agenticprimitives/intent-marketplace?

在项目目录运行 npm install @agenticprimitives/intent-marketplace,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:viem(^2.52.2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@agenticprimitives/intent-marketplace 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@agenticprimitives/intent-marketplace 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@agenticprimitives/intent-marketplace 可以商用吗?

@agenticprimitives/intent-marketplace 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@agenticprimitives/intent-marketplace 的下载量有多少?

根据 npm 官方下载统计,@agenticprimitives/intent-marketplace 在 2026/10/05 – 2026/11/03 这 30 天内被下载 4,113 次,日均约 137 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@agenticprimitives/intent-marketplace 还在维护吗?

最新版本 0.0.0-alpha.42 发布于 2026/10/26(12 天前);至今共发布 34 个版本,其中过去 12 个月发布了 34 个;首次发布于 2026/06/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。