@agentprismform/agent-plugin 1.4.0 → 2.0.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agentprismform/agent-plugin",
3
- "version": "1.4.0",
4
- "description": "[PRIMARY ENTRY] Agent-First form closed-loop plugin (20-tool MCP Server + CLI + Skill): author, self-test, preview, auto-detect target stack & deliver to Vue 3, React 18, Miniapp, or Standalone HTML",
3
+ "version": "2.0.0",
4
+ "description": "[PRIMARY ENTRY] Agent-First form closed-loop plugin (25-tool MCP Server + CLI + Skill): author, self-test, preview, auto-deliver to Vue 3 / React 18 / Miniapp / HTML, plus real-time Agent Intake & multimodal Intent-Fill",
5
5
  "bin": {
6
6
  "agent-plugin": "bin/form-agent.cjs",
7
7
  "form-schema-agent": "bin/form-agent.cjs",
@@ -20,7 +20,9 @@
20
20
  "ai-agent",
21
21
  "skill",
22
22
  "form-builder",
23
- "form-schema"
23
+ "form-schema",
24
+ "intent-fill",
25
+ "multimodal"
24
26
  ],
25
27
  "engines": {
26
28
  "node": ">=20"
@@ -13,7 +13,7 @@ metadata:
13
13
 
14
14
  ## 本地接点
15
15
 
16
- 优先调用已接入的 MCP 工具(`form_schema_init` / `form_schema_patch` / `form_schema_selftest` / `form_scaffold_host` 等共 20 个工具),或通过当前技能目录内的 `node <技能绝对路径>/scripts/form-agent.cjs <命令>` 执行,零外部运行依赖。
16
+ 优先调用已接入的 MCP 工具(`form_schema_init` / `form_schema_patch` / `form_schema_selftest` / `form_scaffold_host` / `form_intake_start` 等共 25 个工具),或通过当前技能目录内的 `node <技能绝对路径>/scripts/form-agent.cjs <命令>` 执行,零外部运行依赖。
17
17
 
18
18
  ## V2 通用 FormSchema 直出与多端实时预览链路(推荐主路径)
19
19
 
@@ -86,6 +86,15 @@ metadata:
86
86
  - 检测到微信小程序工程 → 自动生成原生 `index.wxml/js/json` + `@agentprismform/render-miniapp` 单包接入;
87
87
  - 无前端框架仓库(运营/产品/后端/空目录)→ 自动降级为 `standalone`,直接产出零依赖可部署的 `index.html`(如用户提供了接收接口或 Webhook,传入 `submitUrl` 即可直接 POST JSON 上线收数据)。
88
88
 
89
+ ## 实时对话/多模态收数闭环(5 个 `form_intake_*` MCP 工具)
90
+
91
+ 当 Agent 需要在实时对话中替用户收齐符合 `FormSchema` 的强约束数据时,使用确定性 Intake 会话(与 C 端可视化签收卡片共享同一会话存储):
92
+ 1. `form_intake_start`:载入 `FormSchema`,返回当前可见字段切片、分岔规划与首句自然追问;
93
+ 2. `form_intake_turn`:支持三种零摩擦输入——① Agent 理解对话后直接传 `patch`/`mentions`(0ms 经 `FormCore` 校验与 BFS 联动);② 传 `text` 走 1ms 快通道或本地 SLM 抽槽;③ 传名片/截图 `imagePath`/`imageBase64` 走本地多模态视觉抽槽;自动拦截 `agreement`/`signature` 等主权红线字段;
94
+ 3. `form_intake_confirm`:经用户确认后落位高危 PII/覆写项或加载版本化字典;
95
+ 4. `form_intake_status`:只读查看脱敏汇总、剩余缺口与 `handoffRecommended`;
96
+ 5. `form_intake_finalize`:执行 `FormCore` 终局门禁校验(fail-closed),通过后封箱产出标准 `SubmissionEnvelope`。
97
+
89
98
  ## 精确 JSON 契约速查(避免首次调用踩坑)
90
99
 
91
100
  ### 1. `schema-patch` / `form_schema_patch` 的 `ops` 结构