@dexto/tui 1.10.0 → 1.10.1
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.
|
@@ -49,14 +49,8 @@ const ApprovalPrompt = (0, import_react.forwardRef)(
|
|
|
49
49
|
const isPlanReview = toolName === "plan_review";
|
|
50
50
|
const isEditOrWriteTool = (0, import_toolUtils.isEditWriteTool)(toolName);
|
|
51
51
|
const presentationSnapshot = (0, import_react.useMemo)(() => {
|
|
52
|
-
const raw = approval.metadata
|
|
53
|
-
|
|
54
|
-
return void 0;
|
|
55
|
-
}
|
|
56
|
-
if (raw.version !== 1) {
|
|
57
|
-
return void 0;
|
|
58
|
-
}
|
|
59
|
-
return raw;
|
|
52
|
+
const raw = approval.metadata["presentationSnapshot"];
|
|
53
|
+
return (0, import_core.isToolPresentationSnapshotV1)(raw) ? raw : void 0;
|
|
60
54
|
}, [approval.metadata]);
|
|
61
55
|
const formattedTool = (0, import_react.useMemo)(() => {
|
|
62
56
|
if (!toolName) return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApprovalPrompt.d.ts","sourceRoot":"","sources":["../../src/components/ApprovalPrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ApprovalPrompt.d.ts","sourceRoot":"","sources":["../../src/components/ApprovalPrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,kBAAkB,EAAwC,MAAM,aAAa,CAAC;AAE5F,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kCAAkC,CAAC;AAM5D,MAAM,WAAW,eAAe;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,oBAAoB;IACjC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,mDAAmD;IACnD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,gFAAgF;IAChF,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,UAAU,mBAAmB;IACzB,QAAQ,EAAE,eAAe,CAAC;IAC1B,SAAS,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAC;IAC9C,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB;AAYD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,kGAmY1B,CAAC"}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
useMemo
|
|
9
9
|
} from "react";
|
|
10
10
|
import { Box, Text } from "ink";
|
|
11
|
-
import { ApprovalType } from "@dexto/core";
|
|
11
|
+
import { ApprovalType, isToolPresentationSnapshotV1 } from "@dexto/core";
|
|
12
12
|
import { ElicitationForm } from "./ElicitationForm.js";
|
|
13
13
|
import { DiffPreview, CreateFilePreview } from "./renderers/index.js";
|
|
14
14
|
import { isEditWriteTool } from "../utils/toolUtils.js";
|
|
@@ -33,14 +33,8 @@ const ApprovalPrompt = forwardRef(
|
|
|
33
33
|
const isPlanReview = toolName === "plan_review";
|
|
34
34
|
const isEditOrWriteTool = isEditWriteTool(toolName);
|
|
35
35
|
const presentationSnapshot = useMemo(() => {
|
|
36
|
-
const raw = approval.metadata
|
|
37
|
-
|
|
38
|
-
return void 0;
|
|
39
|
-
}
|
|
40
|
-
if (raw.version !== 1) {
|
|
41
|
-
return void 0;
|
|
42
|
-
}
|
|
43
|
-
return raw;
|
|
36
|
+
const raw = approval.metadata["presentationSnapshot"];
|
|
37
|
+
return isToolPresentationSnapshotV1(raw) ? raw : void 0;
|
|
44
38
|
}, [approval.metadata]);
|
|
45
39
|
const formattedTool = useMemo(() => {
|
|
46
40
|
if (!toolName) return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/tui",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "Interactive terminal UI for Dexto CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"string-width": "^8.1.0",
|
|
29
29
|
"strip-ansi": "^7.1.2",
|
|
30
30
|
"wrap-ansi": "^9.0.2",
|
|
31
|
-
"@dexto/agent-management": "1.10.
|
|
32
|
-
"@dexto/core": "1.10.
|
|
33
|
-
"@dexto/
|
|
34
|
-
"@dexto/
|
|
31
|
+
"@dexto/agent-management": "1.10.1",
|
|
32
|
+
"@dexto/core": "1.10.1",
|
|
33
|
+
"@dexto/registry": "1.10.1",
|
|
34
|
+
"@dexto/llm": "1.10.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/react": "^19.0.0",
|