@deep-eye/core 1.2.36 → 1.2.38
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/CHANGELOG.md +16 -0
- package/dist/components/chat/components/ChatReasoning.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ToolCallPart.vue.d.ts.map +1 -1
- package/dist/components/chat/formatToolArguments.d.ts +10 -0
- package/dist/components/chat/formatToolArguments.d.ts.map +1 -1
- package/dist/components/chat/mdoc/AskUserForm.vue.d.ts.map +1 -1
- package/dist/components/chat/mdoc/extractAskForms.d.ts +2 -0
- package/dist/components/chat/mdoc/extractAskForms.d.ts.map +1 -1
- package/dist/components/chat/toolStatus.d.ts +4 -0
- package/dist/components/chat/toolStatus.d.ts.map +1 -1
- package/dist/index.cjs +98 -98
- package/dist/index.js +11087 -11024
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
`@deep-eye/core` 的用户可见变更(语义化版本)。
|
|
4
4
|
|
|
5
|
+
## [1.2.38] - 2026-08-07
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- `ask_form` / `ask_user`:兼容 **二次 JSON 编码** 的 `function.arguments`(网关把已 stringify 的参数再包一层字符串)。此前会在工具链同时露出 `desc`+`mdoc`,且无法从 `mdoc` dock 表单。
|
|
10
|
+
- 工具链:ask-form 类调用不再把 tool result 里的 `mdoc` 回显到展开区。
|
|
11
|
+
- 工具链:执行完成后自动折叠——`pending` 不再保持展开;落地的 `role: tool` 结果优先于宿主未翻盘的 `running`/`pending` toolState。
|
|
12
|
+
- 工具链 / 思维链:内容未超出折叠高度时不再套底部渐隐遮罩,避免误导「下面还有内容」。
|
|
13
|
+
|
|
14
|
+
## [1.2.37] - 2026-08-06
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- 工具链:只要 arguments 形如 `{ desc, mdoc }`(含 ask-form 标签),一律只展示 `desc`,展开区也不再渲染 `mdoc`。
|
|
19
|
+
- `ask_form` / `ask_user`:默认折叠,标题旁直接显示 `desc`。
|
|
20
|
+
|
|
5
21
|
## [1.2.36] - 2026-08-06
|
|
6
22
|
|
|
7
23
|
### Changed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatReasoning.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatReasoning.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatReasoning.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatReasoning.vue"],"names":[],"mappings":"AAgYA,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAgR5D,QAAA,IAAI,QAAQ;;;CAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAQhD,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolCallPart.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ToolCallPart.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToolCallPart.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ToolCallPart.vue"],"names":[],"mappings":"AAo3BA,OAAO,EAAyC,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAC3E,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,oBAAoB,EAEpB,WAAW,EACZ,MAAM,UAAU,CAAA;AACjB,OAAO,yBAAyB,CAAA;AAiBhC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AA8pBF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -2,8 +2,18 @@
|
|
|
2
2
|
* Formats tool-call `function.arguments` for display so streaming and completed
|
|
3
3
|
* states share one layout: a single monospace block that already shows real
|
|
4
4
|
* newlines instead of jumping from `\n` escapes to pretty JSON.
|
|
5
|
+
*
|
|
6
|
+
* Payloads shaped like ask_form (`mdoc` + optional `desc`) never dump `mdoc`.
|
|
5
7
|
*/
|
|
6
8
|
export declare function formatToolArgumentsDisplay(raw: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Parse tool `function.arguments` into an object.
|
|
11
|
+
* Unwraps one level of double-encoded JSON string (common when gateways
|
|
12
|
+
* stringify an already-stringified arguments payload).
|
|
13
|
+
*/
|
|
14
|
+
export declare function parseToolCallArgumentsObject(raw: string): Record<string, unknown> | null;
|
|
15
|
+
/** True when arguments look like ask_form / ask_user payload (`mdoc` holds ask-form tags). */
|
|
16
|
+
export declare function isAskFormShapedArguments(raw: string): boolean;
|
|
7
17
|
/**
|
|
8
18
|
* ask_form tool args are `{ desc, mdoc }`. Tool-chain UI shows only `desc`
|
|
9
19
|
* (human label); never dump the mdoc payload.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatToolArguments.d.ts","sourceRoot":"","sources":["../../../src/components/chat/formatToolArguments.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"formatToolArguments.d.ts","sourceRoot":"","sources":["../../../src/components/chat/formatToolArguments.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAgB9D;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAkBxF;AAED,8FAA8F;AAC9F,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAW7D;AAED;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQrE;AAED,6EAA6E;AAC7E,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CASvF;AA4CD;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAoDlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AskUserForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/AskUserForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AskUserForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/AskUserForm.vue"],"names":[],"mappings":"AA+rBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEjD,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAID,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,iBAAiB,CAAA;IACvB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AA6hBJ,QAAA,MAAM,YAAY;;;;;;;;;;;;;mBAhiBE,MAAM;mBACN,MAAM;oBACL,OAAO;6EAkiB1B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -7,6 +7,8 @@ export declare function extractAskFormNodes(content: string | undefined, options
|
|
|
7
7
|
export declare function isAskFormToolName(name: string): boolean;
|
|
8
8
|
/**
|
|
9
9
|
* Pull mdoc string from a tool call (`arguments.mdoc`).
|
|
10
|
+
* Accepts known ask_* tool names, or any tool whose mdoc contains ask-form tags.
|
|
11
|
+
* Unwraps double-encoded JSON arguments (stringified twice).
|
|
10
12
|
* Returns null while arguments are incomplete / unparsable JSON.
|
|
11
13
|
*/
|
|
12
14
|
export declare function extractAskFormMdocFromToolCall(call: ConversationToolCall): string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractAskForms.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/extractAskForms.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"extractAskForms.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/extractAskForms.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAElE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,kFAAkF;AAClF,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,GAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,GACtC,iBAAiB,EAAE,CAWrB;AAKD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGvD;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,GAAG,IAAI,CASxF;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,iFAAiF;AACjF,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,SAAS,oBAAoB,EAAE,GAAG,SAAS,GACjD,eAAe,GAAG,IAAI,CAQxB;AAED,yGAAyG;AACzG,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,SAAS,oBAAoB,EAAE,GAAG,SAAS,GACjD,oBAAoB,EAAE,CAGxB"}
|
|
@@ -11,6 +11,10 @@ export interface ResolveToolCallStatusInput {
|
|
|
11
11
|
* still streaming) into the small `ToolCallStatus` vocabulary the UI renders against.
|
|
12
12
|
* Shared by `ToolCallPart` (per-call display) and `ChatToolGroup` (group-level summary)
|
|
13
13
|
* so the two never drift out of sync.
|
|
14
|
+
*
|
|
15
|
+
* A landed `role: tool` message wins over stale in-flight `toolState` (`running` /
|
|
16
|
+
* `pending`) — hosts often forget to flip toolStates when the result arrives, which
|
|
17
|
+
* previously left the disclosure permanently expanded.
|
|
14
18
|
*/
|
|
15
19
|
export declare function resolveToolCallStatus({ toolState, toolMessage, streaming, }: ResolveToolCallStatusInput): ToolCallStatus;
|
|
16
20
|
//# sourceMappingURL=toolStatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolStatus.d.ts","sourceRoot":"","sources":["../../../src/components/chat/toolStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAMzE,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAOzE;AAED,MAAM,WAAW,0BAA0B;IACzC,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;
|
|
1
|
+
{"version":3,"file":"toolStatus.d.ts","sourceRoot":"","sources":["../../../src/components/chat/toolStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAMzE,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAOzE;AAED,MAAM,WAAW,0BAA0B;IACzC,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AASD;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,WAAW,EACX,SAAS,GACV,EAAE,0BAA0B,GAAG,cAAc,CAa7C"}
|