page-agent-sdk 4.8.0 → 4.8.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "page-agent-sdk",
3
- "version": "4.8.0",
3
+ "version": "4.8.2",
4
4
  "type": "module",
5
5
  "description": "AI agent SDK for web pages — embed a chat assistant that edits page data via schema-validated tools. A lighter, framework-agnostic alternative to CopilotKit/LangChain for in-page JSON-editing agents. Vue-bundled; works with DeepSeek, OpenAI, MCP.",
6
6
  "main": "./dist/page-agent-sdk.umd.cjs",
@@ -1632,6 +1632,8 @@ export interface HtmlFormatCheckOptions {
1632
1632
  }
1633
1633
  /** HTML 格式 verify check(beforeReturn 门禁):扫 state.files 代码文件,不通过回灌 feedback 自纠 */
1634
1634
  export declare function createHtmlFormatCheck(opts?: HtmlFormatCheckOptions): VerifyCheck;
1635
+ /** 工匠笔记末行守卫(note-gate):craftNotes 开启时子 agent 收口回复无 [note] 行 → beforeReturn 回灌补写一次 */
1636
+ export declare function createCraftNoteCheck(): VerifyCheck;
1635
1637
  /** 沙箱采集到的原始渲染信号(console.error / js-error / unhandledrejection / 资源失败 / CSP 违规 / console.warn) */
1636
1638
  export interface RenderSignal {
1637
1639
  type: 'console-error' | 'console-warn' | 'js-error' | 'unhandledrejection' | 'resource-error' | 'csp-violation';
package/types/index.d.ts CHANGED
@@ -2053,6 +2053,8 @@ export interface HtmlFormatCheckOptions {
2053
2053
  }
2054
2054
  /** HTML 格式 verify check(beforeReturn 门禁):扫 state.files 代码文件,不通过回灌 feedback 自纠 */
2055
2055
  export declare function createHtmlFormatCheck(opts?: HtmlFormatCheckOptions): VerifyCheck;
2056
+ /** 工匠笔记末行守卫(note-gate):craftNotes 开启时子 agent 收口回复无 [note] 行 → beforeReturn 回灌补写一次(2026-08-28 真 LLM 复验驱动;createHtmlSubagent 默认挂进 verify 链尾,独立导出供自定义校验链复用) */
2057
+ export declare function createCraftNoteCheck(): VerifyCheck;
2056
2058
  /** 沙箱采集到的原始渲染信号(console.error / js-error / unhandledrejection / 资源失败 / CSP 违规 / console.warn) */
2057
2059
  export interface RenderSignal {
2058
2060
  type: 'console-error' | 'console-warn' | 'js-error' | 'unhandledrejection' | 'resource-error' | 'csp-violation';