@agenticprimitives/home

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

Portable Agentic Trust Home contracts (spec 310): signed Home manifests, surface descriptors, inbox bindings, action cards, managed-agent/connected-app projections, control-plane events. Schema + validation + deterministic projection only — no routes, UI,

原始使用文档
文档目录3 节
  1. Surface
  2. Usage
  3. Boundary

@agenticprimitives/home

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

Portable Agentic Trust Home contracts (spec 310): the schemas, fail-closed validators, and deterministic projections behind a personal/org trust control plane — the place an agent's owner reviews everything acting in their name.

A Home serves five surfaces: identity entry, connected apps, managed agents, authority review, and the agentic inbox. This package defines what a Home publishes and renders; it contains no routes, UI, branding, or deployment specifics (ADR-0021). The reference Home app is demo-sso-next (spec 234).

Two doctrine points shape everything here:

  • A Home is a facet, not the identity (ADR-0010/0011). The Smart Agent address never changes when a Home is added, rotated, or deprecated.
  • A Home renders authority, never mints it. Approve/deny/issue/revoke route through delegation/entitlements/custody packages; this package only carries AuthorityRef pointers at their artifacts.

Surface

ExportWhat it is
HomeManifestV1Signed, portable discovery document: endpoints, surfaces, capabilities, inbox binding, validity window
validateHomeManifest / isManifestCurrentFail-closed structural + currency gates; unsigned/expired/suspended ⇒ not trusted
ManifestVerificationPortPort for cryptographic proof verification (SA / operator-under-delegation) — wired by the consumer
HomeInboxBindingV1ActivityPub-shaped inbox/outbox declaration: supported message/interaction kinds, crypto + delivery profiles
HomeActionCardV1 + validateHomeActionCard / resolveCardActionDeclarative approval card (render half); only declared allowedActions resolve — unknown action ⇒ null ⇒ reject
ManagedAgentEntryV1"Agents you manage" console row: type, relationship, control grade, status, actions
ConnectedAppGrantV1Connected relying app row; grantRef REFERENCES a delegation token
HomeControlEventV1Durable-audit-backed control-plane timeline row
projectHomeInboxSummaryPure deterministic dashboard counts over messaging + interactions projections

Usage

import {
  isManifestCurrent,
  resolveCardAction,
  projectHomeInboxSummary,
} from '@agenticprimitives/home';

// Trust gate before using any Home endpoint (reachable ≠ trusted):
if (!isManifestCurrent(manifest, new Date().toISOString())) throw new Error('untrusted home');
const ok = await verificationPort.verifyManifestProof(manifest); // consumer-wired crypto

// Card response handling — unknown actions are rejections, never defaults:
const action = resolveCardAction(card, submittedActionId);
if (!action) return reject('action_not_allowed');
// action.transition feeds the interactions state machine; it grants nothing.

// Dashboard badge:
const summary = projectHomeInboxSummary({ items, cases, runs });
// summary.attentionCount = pending approvals + paused runs

Boundary

Imports types, vault, messaging, interactions (types/refs only). Must not import a2a, mcp-runtime, agent-account, Next.js, React, or anything host-specific. Status: w1-contracts — manifest publication and the inbox/console pages land in the reference app (spec 310 W2–W5).

版本与发布记录

@agenticprimitives/home 共发布 36 个版本,首次发布于 2026/07/14;过去 12 个月发布了 36 个版本。

版本发布日期距今
0.0.0-alpha.39latest2026/10/2611 天前
0.0.0-alpha.382026/10/2611 天前
0.0.0-alpha.372026/10/1720 天前
0.0.0-alpha.362026/10/1720 天前
0.0.0-alpha.352026/10/1620 天前
0.0.0-alpha.342026/10/1621 天前

关于 @agenticprimitives/home 的常见问题

@agenticprimitives/home 是什么?

Portable Agentic Trust Home contracts (spec 310): signed Home manifests, surface descriptors, inbox bindings, action cards, managed-agent/connected-app projections, control-plane events. Schema + validation + deterministic projection only — no routes, UI,

如何安装 @agenticprimitives/home?

在项目目录运行 npm install @agenticprimitives/home,或使用 pnpm add / yarn add / bun add。

@agenticprimitives/home 支持 TypeScript 吗?

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

@agenticprimitives/home 支持 ESM 还是 CommonJS?

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

@agenticprimitives/home 可以商用吗?

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

@agenticprimitives/home 的下载量有多少?

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

@agenticprimitives/home 还在维护吗?

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