@theia/ai-claude-code 1.75.0-next.42 → 1.75.0-next.46
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/lib/browser/renderers/bash-tool-renderer.js +6 -35
- package/lib/browser/renderers/bash-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/collapsible-tool-renderer.js +7 -10
- package/lib/browser/renderers/collapsible-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/edit-tool-renderer.js +10 -49
- package/lib/browser/renderers/edit-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/glob-tool-renderer.js +8 -39
- package/lib/browser/renderers/glob-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/grep-tool-renderer.js +8 -55
- package/lib/browser/renderers/grep-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/ls-tool-renderer.js +10 -43
- package/lib/browser/renderers/ls-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/multiedit-tool-renderer.js +12 -56
- package/lib/browser/renderers/multiedit-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/read-tool-renderer.js +8 -42
- package/lib/browser/renderers/read-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/todo-write-renderer.js +13 -43
- package/lib/browser/renderers/todo-write-renderer.js.map +1 -1
- package/lib/browser/renderers/web-fetch-tool-renderer.js +6 -37
- package/lib/browser/renderers/web-fetch-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/write-tool-renderer.js +8 -38
- package/lib/browser/renderers/write-tool-renderer.js.map +1 -1
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/ls-tool-renderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ls-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/ls-tool-renderer.tsx"],"names":[],"mappings":";;;;;AAmBA,qDAAiE;AACjE,oDAAiD;AACjD,4D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,UAAG,CAAC,QAAQ,CAAC,sCAAsC,EAAE,kBAAkB,CAAC,GAAQ,EACjI,gCAAK,SAAS,EAAC,+BAA+B,YACzC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAClC,kCAAkB,SAAS,EAAC,iCAAiC,aACxD,OAAO,EAAE,KAAK,GAAG,KAAK,CAAC,MAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAD/C,KAAK,CAET,CACV,CAAC,GACA,IACJ,CACT,EACD,iCAAK,SAAS,EAAC,6BAA6B,aACxC,iCAAM,SAAS,EAAC,+BAA+B,YAAE,UAAG,CAAC,iBAAiB,CAAC,aAAa,CAAC,GAAQ,EAC7F,kCAAM,SAAS,EAAC,+BAA+B,aAC1C,UAAG,CAAC,QAAQ,CAAC,4CAA4C,EAAE,yBAAyB,CAAC,EAAE,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;gCAC3H,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;oCACtB,CAAC,CAAC,UAAG,CAAC,QAAQ,CAAC,wCAAwC,EAAE,2BAA2B,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;oCAC1G,CAAC,CAAC,UAAG,CAAC,QAAQ,CAAC,0CAA0C,EAAE,uBAAuB,CAAC,CAAC;gCACxF,CAAC,CAAC,EAAE,IACL,IACL,IACJ,CACT,CAAC;IAEF,OAAO,CACH,uBAAC,mDAAuB,IACpB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2025 EclipseSource GmbH.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.MultiEditToolRenderer = void 0;
|
|
19
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
20
6
|
const browser_1 = require("@theia/core/lib/browser");
|
|
21
7
|
const uri_1 = require("@theia/core/lib/common/uri");
|
|
22
8
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
@@ -36,11 +22,11 @@ let MultiEditToolRenderer = class MultiEditToolRenderer {
|
|
|
36
22
|
render(response, parentNode) {
|
|
37
23
|
try {
|
|
38
24
|
const input = JSON.parse(response.arguments || '{}');
|
|
39
|
-
return
|
|
25
|
+
return (0, jsx_runtime_1.jsx)(MultiEditToolComponent, { input: input, workspaceService: this.workspaceService, labelProvider: this.labelProvider, editorManager: this.editorManager, logger: this.logger });
|
|
40
26
|
}
|
|
41
27
|
catch (error) {
|
|
42
28
|
this.logger.warn('Failed to parse MultiEdit tool input:', error);
|
|
43
|
-
return
|
|
29
|
+
return (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool error", children: core_1.nls.localize('theia/ai/claude-code/failedToParseMultiEditToolData', 'Failed to parse MultiEdit tool data') });
|
|
44
30
|
}
|
|
45
31
|
}
|
|
46
32
|
};
|
|
@@ -110,44 +96,14 @@ const MultiEditToolComponent = ({ input, workspaceService, labelProvider, editor
|
|
|
110
96
|
};
|
|
111
97
|
const replaceAllCount = input.edits.filter(edit => edit.replace_all).length;
|
|
112
98
|
const totalEdits = input.edits.length;
|
|
113
|
-
const compactHeader = (
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
getChangeInfo().totalOldLines),
|
|
123
|
-
React.createElement("span", { className: "claude-code-tool badge added" },
|
|
124
|
-
"+",
|
|
125
|
-
getChangeInfo().totalNewLines),
|
|
126
|
-
React.createElement("span", { className: "claude-code-tool badge" }, totalEdits === 1
|
|
127
|
-
? core_1.nls.localize('theia/ai/claude-code/oneEdit', '1 edit')
|
|
128
|
-
: core_1.nls.localize('theia/ai/claude-code/editsCount', '{0} edits', totalEdits)),
|
|
129
|
-
replaceAllCount > 0 && (React.createElement("span", { className: "claude-code-tool badge" }, core_1.nls.localize('theia/ai/claude-code/replaceAllCount', '{0} replace-all', replaceAllCount))))));
|
|
130
|
-
const expandedContent = (React.createElement("div", { className: "claude-code-tool details" },
|
|
131
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
132
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/filePath', 'File Path')),
|
|
133
|
-
React.createElement("code", { className: "claude-code-tool detail-value" }, input.file_path)),
|
|
134
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
135
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/totalEdits', 'Total Edits')),
|
|
136
|
-
React.createElement("span", { className: "claude-code-tool detail-value" }, totalEdits)),
|
|
137
|
-
input.edits.map((edit, index) => (React.createElement("div", { key: index, className: "claude-code-tool edit-preview" },
|
|
138
|
-
React.createElement("div", { className: "claude-code-tool edit-preview-header" },
|
|
139
|
-
React.createElement("span", { className: "claude-code-tool edit-preview-title" }, core_1.nls.localizeByDefault('Edit {0}', index + 1)),
|
|
140
|
-
edit.replace_all && (React.createElement("span", { className: "claude-code-tool edit-preview-badge" }, core_1.nls.localizeByDefault('Replace All')))),
|
|
141
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
142
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/from', 'From')),
|
|
143
|
-
React.createElement("pre", { className: "claude-code-tool detail-value code-preview" }, edit.old_string.length > 100
|
|
144
|
-
? edit.old_string.substring(0, 100) + '...'
|
|
145
|
-
: edit.old_string)),
|
|
146
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
147
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/to', 'To')),
|
|
148
|
-
React.createElement("pre", { className: "claude-code-tool detail-value code-preview" }, edit.new_string.length > 100
|
|
149
|
-
? edit.new_string.substring(0, 100) + '...'
|
|
150
|
-
: edit.new_string)))))));
|
|
151
|
-
return (React.createElement(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
99
|
+
const compactHeader = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool header-left", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool title", children: core_1.nls.localize('theia/ai/claude-code/multiEditing', 'Multi-editing') }), (0, jsx_runtime_1.jsx)("span", { className: `${getIcon(input.file_path)} claude-code-tool icon` }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool file-name clickable-element", onClick: handleOpenFile, title: core_1.nls.localize('theia/ai/claude-code/openFileTooltip', 'Click to open file in editor'), children: getFileName(input.file_path) }), relativePath && (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool relative-path", title: relativePath, children: relativePath })] }), (0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool header-right", children: [(0, jsx_runtime_1.jsxs)("span", { className: "claude-code-tool badge deleted", children: ["-", getChangeInfo().totalOldLines] }), (0, jsx_runtime_1.jsxs)("span", { className: "claude-code-tool badge added", children: ["+", getChangeInfo().totalNewLines] }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool badge", children: totalEdits === 1
|
|
100
|
+
? core_1.nls.localize('theia/ai/claude-code/oneEdit', '1 edit')
|
|
101
|
+
: core_1.nls.localize('theia/ai/claude-code/editsCount', '{0} edits', totalEdits) }), replaceAllCount > 0 && ((0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool badge", children: core_1.nls.localize('theia/ai/claude-code/replaceAllCount', '{0} replace-all', replaceAllCount) }))] })] }));
|
|
102
|
+
const expandedContent = ((0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool details", children: [(0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localize('theia/ai/claude-code/filePath', 'File Path') }), (0, jsx_runtime_1.jsx)("code", { className: "claude-code-tool detail-value", children: input.file_path })] }), (0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localize('theia/ai/claude-code/totalEdits', 'Total Edits') }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-value", children: totalEdits })] }), input.edits.map((edit, index) => ((0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool edit-preview", children: [(0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool edit-preview-header", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool edit-preview-title", children: core_1.nls.localizeByDefault('Edit {0}', index + 1) }), edit.replace_all && ((0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool edit-preview-badge", children: core_1.nls.localizeByDefault('Replace All') }))] }), (0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localize('theia/ai/claude-code/from', 'From') }), (0, jsx_runtime_1.jsx)("pre", { className: "claude-code-tool detail-value code-preview", children: edit.old_string.length > 100
|
|
103
|
+
? edit.old_string.substring(0, 100) + '...'
|
|
104
|
+
: edit.old_string })] }), (0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localize('theia/ai/claude-code/to', 'To') }), (0, jsx_runtime_1.jsx)("pre", { className: "claude-code-tool detail-value code-preview", children: edit.new_string.length > 100
|
|
105
|
+
? edit.new_string.substring(0, 100) + '...'
|
|
106
|
+
: edit.new_string })] })] }, index)))] }));
|
|
107
|
+
return ((0, jsx_runtime_1.jsx)(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
152
108
|
};
|
|
153
109
|
//# sourceMappingURL=multiedit-tool-renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiedit-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/multiedit-tool-renderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"multiedit-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/multiedit-tool-renderer.tsx"],"names":[],"mappings":";;;;;AAmBA,qDAAwD;AACxD,oDAAiD;AACjD,4DAAyE;AACzE,kDAAkD;AAElD,uDAA0D;AAC1D,0DAAgE;AAChE,oFAAyF;AACzF,2EAAsE;AACtE,sCAA2C;AAcpC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAc9B,SAAS,CAAC,QAA6B;QACnC,IAAI,qEAAqC,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;YACtF,OAAO,EAAE,CAAC,CAAC,gDAAgD;QAC/D,CAAC;QACD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AI,CAAC,WAAW,IAAI,CACjB,iCAAM,SAAS,EAAC,qCAAqC,YAChD,UAAG,CAAC,iBAAiB,CAAC,aAAa,CAAC,GAClC,CACV,IACC,EACN,iCAAK,SAAS,EAAC,6BAA6B,aACxC,iCAAM,SAAS,EAAC,+BAA+B,YAAE,UAAG,CAAC,QAAQ,CAAC,2BAA2B,EAAE,MAAM,CAAC,GAAQ,EAC1G,gCAAK,SAAS,EAAC,4CAA4C,YACtD,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,GAAG;oCACzB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK;oCAC3C,CAAC,CAAC,IAAI,CAAC,UAAU,GACnB,IACJ,EACN,iCAAK,SAAS,EAAC,6BAA6B,aACxC,iCAAM,SAAS,EAAC,+BAA+B,YAAE,UAAG,CAAC,QAAQ,CAAC,yBAAyB,EAAE,IAAI,CAAC,GAAQ,EACtG,gCAAK,SAAS,EAAC,4CAA4C,YACtD,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,GAAG;oCACzB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK;oCAC3C,CAAC,CAAC,IAAI,CAAC,UAAU,GACnB,IACJ,KAxBA,KAAK,CAyBT,CACT,CAAC,IACA,CACT,CAAC;IAEF,OAAO,CACH,uBAAC,mDAAuB,IACpB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2025 EclipseSource GmbH.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.ReadToolRenderer = void 0;
|
|
19
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
20
6
|
const browser_1 = require("@theia/core/lib/browser");
|
|
21
7
|
const uri_1 = require("@theia/core/lib/common/uri");
|
|
22
8
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
@@ -36,11 +22,11 @@ let ReadToolRenderer = class ReadToolRenderer {
|
|
|
36
22
|
render(response, parentNode) {
|
|
37
23
|
try {
|
|
38
24
|
const input = JSON.parse(response.arguments || '{}');
|
|
39
|
-
return
|
|
25
|
+
return (0, jsx_runtime_1.jsx)(ReadToolComponent, { input: input, workspaceService: this.workspaceService, labelProvider: this.labelProvider, editorManager: this.editorManager, logger: this.logger });
|
|
40
26
|
}
|
|
41
27
|
catch (error) {
|
|
42
28
|
this.logger.warn('Failed to parse Read tool input:', error);
|
|
43
|
-
return
|
|
29
|
+
return (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool error", children: core_1.nls.localize('theia/ai/claude-code/failedToParseReadToolData', 'Failed to parse Read tool data') });
|
|
44
30
|
}
|
|
45
31
|
}
|
|
46
32
|
};
|
|
@@ -100,30 +86,10 @@ const ReadToolComponent = ({ input, workspaceService, labelProvider, editorManag
|
|
|
100
86
|
getWorkspaceRelativePath(input.file_path).then(setRelativePath);
|
|
101
87
|
}, [input.file_path]);
|
|
102
88
|
const isEntireFile = !input.limit && !input.offset;
|
|
103
|
-
const compactHeader = (
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
relativePath && React.createElement("span", { className: "claude-code-tool relative-path" }, relativePath)),
|
|
109
|
-
React.createElement("div", { className: "claude-code-tool header-right" },
|
|
110
|
-
isEntireFile && (React.createElement("span", { className: "claude-code-tool badge" }, core_1.nls.localize('theia/ai/claude-code/entireFile', 'Entire File'))),
|
|
111
|
-
!isEntireFile && (React.createElement("span", { className: "claude-code-tool badge" }, core_1.nls.localize('theia/ai/claude-code/partial', 'Partial'))))));
|
|
112
|
-
const expandedContent = (React.createElement("div", { className: "claude-code-tool details" },
|
|
113
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
114
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/filePath', 'File Path')),
|
|
115
|
-
React.createElement("code", { className: "claude-code-tool detail-value" }, input.file_path)),
|
|
116
|
-
input.offset && (React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
117
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/startingLine', 'Starting Line')),
|
|
118
|
-
React.createElement("span", { className: "claude-code-tool detail-value" }, input.offset))),
|
|
119
|
-
input.limit && (React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
120
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/lineLimit', 'Line Limit')),
|
|
121
|
-
React.createElement("span", { className: "claude-code-tool detail-value" }, input.limit))),
|
|
122
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
123
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/readMode', 'Read Mode')),
|
|
124
|
-
React.createElement("span", { className: "claude-code-tool detail-value" }, isEntireFile
|
|
125
|
-
? core_1.nls.localize('theia/ai/claude-code/entireFile', 'Entire File')
|
|
126
|
-
: core_1.nls.localize('theia/ai/claude-code/partial', 'Partial')))));
|
|
127
|
-
return (React.createElement(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
89
|
+
const compactHeader = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool header-left", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool title", children: core_1.nls.localize('theia/ai/claude-code/reading', 'Reading') }), (0, jsx_runtime_1.jsx)("span", { className: `${getIcon(input.file_path)} claude-code-tool icon` }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool file-name clickable-element", onClick: handleOpenFile, title: core_1.nls.localize('theia/ai/claude-code/openFileTooltip', 'Click to open file in editor'), children: getFileName(input.file_path) }), relativePath && (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool relative-path", children: relativePath })] }), (0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool header-right", children: [isEntireFile && ((0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool badge", children: core_1.nls.localize('theia/ai/claude-code/entireFile', 'Entire File') })), !isEntireFile && ((0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool badge", children: core_1.nls.localize('theia/ai/claude-code/partial', 'Partial') }))] })] }));
|
|
90
|
+
const expandedContent = ((0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool details", children: [(0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localize('theia/ai/claude-code/filePath', 'File Path') }), (0, jsx_runtime_1.jsx)("code", { className: "claude-code-tool detail-value", children: input.file_path })] }), input.offset && ((0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localize('theia/ai/claude-code/startingLine', 'Starting Line') }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-value", children: input.offset })] })), input.limit && ((0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localize('theia/ai/claude-code/lineLimit', 'Line Limit') }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-value", children: input.limit })] })), (0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localize('theia/ai/claude-code/readMode', 'Read Mode') }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-value", children: isEntireFile
|
|
91
|
+
? core_1.nls.localize('theia/ai/claude-code/entireFile', 'Entire File')
|
|
92
|
+
: core_1.nls.localize('theia/ai/claude-code/partial', 'Partial') })] })] }));
|
|
93
|
+
return ((0, jsx_runtime_1.jsx)(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
128
94
|
};
|
|
129
95
|
//# sourceMappingURL=read-tool-renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/read-tool-renderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"read-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/read-tool-renderer.tsx"],"names":[],"mappings":";;;;;AAmBA,qDAAwD;AACxD,oDAAiD;AACjD,4DAAyE;AACzE,kDAAkD;AAElD,uDAA0D;AAC1D,0DAAgE;AAChE,oFAAyF;AACzF,2EAAsE;AACtE,sCAA2C;AASpC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAczB,SAAS,CAAC,QAA6B;QACnC,IAAI,qEAAqC,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,MAAM,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AAQ,IACtE,EACL,KAAK,CAAC,MAAM,IAAI,CACb,iCAAK,SAAS,EAAC,6BAA6B,aACxC,iCAAM,SAAS,EAAC,+BAA+B,YAAE,UAAG,CAAC,QAAQ,CAAC,mCAAmC,EAAE,eAAe,CAAC,GAAQ,EAC3H,iCAAM,SAAS,EAAC,+BAA+B,YAAE,KAAK,CAAC,MAAM,GAAQ,IACnE,CACT,EACA,KAAK,CAAC,KAAK,IAAI,CACZ,iCAAK,SAAS,EAAC,6BAA6B,aACxC,iCAAM,SAAS,EAAC,+BAA+B,YAAE,UAAG,CAAC,QAAQ,CAAC,gCAAgC,EAAE,YAAY,CAAC,GAAQ,EACrH,iCAAM,SAAS,EAAC,+BAA+B,YAAE,KAAK,CAAC,KAAK,GAAQ,IAClE,CACT,EACD,iCAAK,SAAS,EAAC,6BAA6B,aACxC,iCAAM,SAAS,EAAC,+BAA+B,YAAE,UAAG,CAAC,QAAQ,CAAC,+BAA+B,EAAE,WAAW,CAAC,GAAQ,EACnH,iCAAM,SAAS,EAAC,+BAA+B,YAAE,YAAY;4BACzD,CAAC,CAAC,UAAG,CAAC,QAAQ,CAAC,iCAAiC,EAAE,aAAa,CAAC;4BAChE,CAAC,CAAC,UAAG,CAAC,QAAQ,CAAC,8BAA8B,EAAE,SAAS,CAAC,GAAQ,IACnE,IACJ,CACT,CAAC;IAEF,OAAO,CACH,uBAAC,mDAAuB,IACpB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2025 EclipseSource GmbH.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.TodoWriteRenderer = void 0;
|
|
19
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
20
6
|
const browser_1 = require("@theia/core/lib/browser");
|
|
21
7
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
8
|
const React = require("@theia/core/shared/react");
|
|
@@ -66,11 +52,11 @@ let TodoWriteRenderer = class TodoWriteRenderer {
|
|
|
66
52
|
render(response, parentNode) {
|
|
67
53
|
try {
|
|
68
54
|
const input = JSON.parse(response.arguments || '{}');
|
|
69
|
-
return
|
|
55
|
+
return (0, jsx_runtime_1.jsx)(TodoListComponent, { todos: input.todos || [], sessionId: parentNode.sessionId });
|
|
70
56
|
}
|
|
71
57
|
catch (error) {
|
|
72
58
|
this.logger.warn('Failed to parse TodoWrite input:', error);
|
|
73
|
-
return
|
|
59
|
+
return (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool todo-list-error", children: core_1.nls.localize('theia/ai/claude-code/failedToParseTodoListData', 'Failed to parse todo list data') });
|
|
74
60
|
}
|
|
75
61
|
}
|
|
76
62
|
};
|
|
@@ -99,40 +85,24 @@ const TodoListComponent = ({ todos, sessionId }) => {
|
|
|
99
85
|
const getStatusIcon = (status) => {
|
|
100
86
|
switch (status) {
|
|
101
87
|
case 'completed':
|
|
102
|
-
return
|
|
88
|
+
return (0, jsx_runtime_1.jsx)("span", { className: `${(0, browser_1.codicon)('check')} claude-code-tool todo-status-icon completed` });
|
|
103
89
|
case 'in_progress':
|
|
104
|
-
return
|
|
90
|
+
return (0, jsx_runtime_1.jsx)("span", { className: `${(0, browser_1.codicon)('loading')} claude-code-tool todo-status-icon in-progress theia-animation-spin` });
|
|
105
91
|
case 'pending':
|
|
106
92
|
default:
|
|
107
|
-
return
|
|
93
|
+
return (0, jsx_runtime_1.jsx)("span", { className: `${(0, browser_1.codicon)('circle-outline')} claude-code-tool todo-status-icon pending` });
|
|
108
94
|
}
|
|
109
95
|
};
|
|
110
|
-
const getPriorityBadge = (priority) => (
|
|
96
|
+
const getPriorityBadge = (priority) => ((0, jsx_runtime_1.jsx)("span", { className: `claude-code-tool todo-priority priority-${priority}`, children: TODO_PRIORITIES[priority] }));
|
|
111
97
|
if (!todos || todos.length === 0) {
|
|
112
|
-
return (
|
|
113
|
-
React.createElement("div", { className: "claude-code-tool todo-list-header" },
|
|
114
|
-
React.createElement("span", { className: `${(0, browser_1.codicon)('checklist')} claude-code-tool todo-list-icon` }),
|
|
115
|
-
React.createElement("span", { className: "claude-code-tool todo-list-title" }, core_1.nls.localize('theia/ai/claude-code/todoList', 'Todo List'))),
|
|
116
|
-
React.createElement("div", { className: "claude-code-tool todo-list-empty" }, core_1.nls.localize('theia/ai/claude-code/emptyTodoList', 'No todos available'))));
|
|
98
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool todo-list-container", children: [(0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool todo-list-header", children: [(0, jsx_runtime_1.jsx)("span", { className: `${(0, browser_1.codicon)('checklist')} claude-code-tool todo-list-icon` }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool todo-list-title", children: core_1.nls.localize('theia/ai/claude-code/todoList', 'Todo List') })] }), (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool todo-list-empty", children: core_1.nls.localize('theia/ai/claude-code/emptyTodoList', 'No todos available') })] }));
|
|
117
99
|
}
|
|
118
100
|
const completedCount = todos.filter(todo => todo.status === 'completed').length;
|
|
119
101
|
const totalCount = todos.length;
|
|
120
|
-
const compactHeader = (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
React.createElement("div", { className: "claude-code-tool header-right" },
|
|
126
|
-
React.createElement("span", { className: "claude-code-tool badge" }, totalCount === 1
|
|
127
|
-
? core_1.nls.localize('theia/ai/claude-code/oneItem', '1 item')
|
|
128
|
-
: core_1.nls.localize('theia/ai/claude-code/itemCount', '{0} items', totalCount)))));
|
|
129
|
-
const expandedContent = (React.createElement("div", { className: "claude-code-tool details" },
|
|
130
|
-
React.createElement("div", { className: "claude-code-tool todo-list-items" }, todos.map(todo => (React.createElement("div", { key: todo.id || todo.content, className: `claude-code-tool todo-item status-${todo.status}` },
|
|
131
|
-
React.createElement("div", { className: "claude-code-tool todo-item-main" },
|
|
132
|
-
React.createElement("div", { className: "claude-code-tool todo-item-status" }, getStatusIcon(todo.status)),
|
|
133
|
-
React.createElement("div", { className: "claude-code-tool todo-item-content" },
|
|
134
|
-
React.createElement("span", { className: "claude-code-tool todo-item-text" }, todo.content),
|
|
135
|
-
getPriorityBadge(todo.priority)))))))));
|
|
136
|
-
return (React.createElement(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent, defaultExpanded: true }));
|
|
102
|
+
const compactHeader = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool header-left", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool title", children: core_1.nls.localize('theia/ai/claude-code/todoList', 'Todo List') }), (0, jsx_runtime_1.jsx)("span", { className: `${(0, browser_1.codicon)('checklist')} claude-code-tool icon` }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool progress-text", children: core_1.nls.localize('theia/ai/claude-code/completedCount', '{0}/{1} completed', completedCount, totalCount) })] }), (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool header-right", children: (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool badge", children: totalCount === 1
|
|
103
|
+
? core_1.nls.localize('theia/ai/claude-code/oneItem', '1 item')
|
|
104
|
+
: core_1.nls.localize('theia/ai/claude-code/itemCount', '{0} items', totalCount) }) })] }));
|
|
105
|
+
const expandedContent = ((0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool details", children: (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool todo-list-items", children: todos.map(todo => ((0, jsx_runtime_1.jsx)("div", { className: `claude-code-tool todo-item status-${todo.status}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool todo-item-main", children: [(0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool todo-item-status", children: getStatusIcon(todo.status) }), (0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool todo-item-content", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool todo-item-text", children: todo.content }), getPriorityBadge(todo.priority)] })] }) }, todo.id || todo.content))) }) }));
|
|
106
|
+
return ((0, jsx_runtime_1.jsx)(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent, defaultExpanded: true }));
|
|
137
107
|
};
|
|
138
108
|
//# sourceMappingURL=todo-write-renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"todo-write-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/todo-write-renderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"todo-write-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/todo-write-renderer.tsx"],"names":[],"mappings":";;;;;AAmBA,qDAAkD;AAClD,4DAAyE;AACzE,kDAAkD;AAElD,oFAAyF;AACzF,2EAAsE;AACtE,sCAA2C;AAS3C,MAAM,eAAe,GAAG;IACpB,MAAM,EAAE,UAAG,CAAC,QAAQ,CAAC,wCAAwC,EAAE,MAAM,CAAC;IACtE,QAAQ,EAAE,UAAG,CA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AS,EAAC,iCAAiC,YAAE,IAAI,CAAC,OAAO,GAAQ,EACtE,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,IAC9B,IACJ,IATA,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,OAAO,CAU3B,CACT,CAAC,GACA,GACJ,CACT,CAAC;IAEF,OAAO,CACH,uBAAC,mDAAuB,IACpB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,eAAe,EAAE,IAAI,GACvB,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2025 EclipseSource GmbH.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.WebFetchToolRenderer = void 0;
|
|
19
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
20
6
|
const browser_1 = require("@theia/core/lib/browser");
|
|
21
7
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
-
const React = require("@theia/core/shared/react");
|
|
23
8
|
const claude_code_tool_call_content_1 = require("../claude-code-tool-call-content");
|
|
24
9
|
const collapsible_tool_renderer_1 = require("./collapsible-tool-renderer");
|
|
25
10
|
const core_1 = require("@theia/core");
|
|
@@ -33,11 +18,11 @@ let WebFetchToolRenderer = class WebFetchToolRenderer {
|
|
|
33
18
|
render(response, parentNode) {
|
|
34
19
|
try {
|
|
35
20
|
const input = JSON.parse(response.arguments || '{}');
|
|
36
|
-
return
|
|
21
|
+
return (0, jsx_runtime_1.jsx)(WebFetchToolComponent, { input: input });
|
|
37
22
|
}
|
|
38
23
|
catch (error) {
|
|
39
24
|
this.logger.warn('Failed to parse WebFetch tool input:', error);
|
|
40
|
-
return
|
|
25
|
+
return (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool error", children: core_1.nls.localize('theia/ai/claude-code/failedToParseWebFetchToolData', 'Failed to parse WebFetch tool data') });
|
|
41
26
|
}
|
|
42
27
|
}
|
|
43
28
|
};
|
|
@@ -65,24 +50,8 @@ const WebFetchToolComponent = ({ input }) => {
|
|
|
65
50
|
}
|
|
66
51
|
return prompt.substring(0, maxLength) + '...';
|
|
67
52
|
};
|
|
68
|
-
const compactHeader = (
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
React.createElement("span", { className: `${(0, browser_1.codicon)('globe')} claude-code-tool icon` }),
|
|
72
|
-
React.createElement("span", { className: "claude-code-tool command" }, getDomain(input.url)),
|
|
73
|
-
React.createElement("span", { className: "claude-code-tool description", title: input.prompt }, truncatePrompt(input.prompt))),
|
|
74
|
-
React.createElement("div", { className: "claude-code-tool header-right" },
|
|
75
|
-
React.createElement("span", { className: "claude-code-tool badge" }, core_1.nls.localize('theia/ai/claude-code/webFetch', 'Web Fetch')))));
|
|
76
|
-
const expandedContent = (React.createElement("div", { className: "claude-code-tool details" },
|
|
77
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
78
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localizeByDefault('URL')),
|
|
79
|
-
React.createElement("code", { className: "claude-code-tool detail-value" }, input.url)),
|
|
80
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
81
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localizeByDefault('Domain')),
|
|
82
|
-
React.createElement("span", { className: "claude-code-tool detail-value" }, getDomain(input.url))),
|
|
83
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
84
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localizeByDefault('Prompt')),
|
|
85
|
-
React.createElement("span", { className: "claude-code-tool detail-value" }, input.prompt))));
|
|
86
|
-
return (React.createElement(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
53
|
+
const compactHeader = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool header-left", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool title", children: core_1.nls.localize('theia/ai/claude-code/fetching', 'Fetching') }), (0, jsx_runtime_1.jsx)("span", { className: `${(0, browser_1.codicon)('globe')} claude-code-tool icon` }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool command", children: getDomain(input.url) }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool description", title: input.prompt, children: truncatePrompt(input.prompt) })] }), (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool header-right", children: (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool badge", children: core_1.nls.localize('theia/ai/claude-code/webFetch', 'Web Fetch') }) })] }));
|
|
54
|
+
const expandedContent = ((0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool details", children: [(0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localizeByDefault('URL') }), (0, jsx_runtime_1.jsx)("code", { className: "claude-code-tool detail-value", children: input.url })] }), (0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localizeByDefault('Domain') }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-value", children: getDomain(input.url) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localizeByDefault('Prompt') }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-value", children: input.prompt })] })] }));
|
|
55
|
+
return ((0, jsx_runtime_1.jsx)(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
87
56
|
};
|
|
88
57
|
//# sourceMappingURL=web-fetch-tool-renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-fetch-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/web-fetch-tool-renderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"web-fetch-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/web-fetch-tool-renderer.tsx"],"names":[],"mappings":";;;;;AAmBA,qDAAkD;AAClD,4DAAyE;AAGzE,oFAAyF;AACzF,2EAAsE;AACtE,sCAA2C;AAQpC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAK7B,SAAS,CAAC,QAA6B;QACnC,IAAI,qEAAqC,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YACrF,OAAO,EAAE,CAAC,CAAC,gDAAgD;QAC/D,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;IACd,CAAC;IAED,MAAM,CAAC,QAAqC,EAAE,UAAwB;QAClE,IAAI,CAAC;YACD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,IAAI,IAAI,CAAsB,CAAC;YAC1E,OAAO,uBAAC,qBAAqB,IAAC,KAAK,EA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AAS,EAAC,0BAA0B,YAAE,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,GAAQ,EACxE,iCAAM,SAAS,EAAC,8BAA8B,EAAC,KAAK,EAAE,KAAK,CAAC,MAAM,YAC7D,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,GAC1B,IACL,EACN,gCAAK,SAAS,EAAC,+BAA+B,YAC1C,iCAAM,SAAS,EAAC,wBAAwB,YAAE,UAAG,CAAC,QAAQ,CAAC,+BAA+B,EAAE,WAAW,CAAC,GAAQ,GAC1G,IACP,CACN,CAAC;IAEF,MAAM,eAAe,GAAG,CACpB,iCAAK,SAAS,EAAC,0BAA0B,aACrC,iCAAK,SAAS,EAAC,6BAA6B,aACxC,iCAAM,SAAS,EAAC,+BAA+B,YAAE,UAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAQ,EACrF,iCAAM,SAAS,EAAC,+BAA+B,YAAE,KAAK,CAAC,GAAG,GAAQ,IAChE,EACN,iCAAK,SAAS,EAAC,6BAA6B,aACxC,iCAAM,SAAS,EAAC,+BAA+B,YAAE,UAAG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,GAAQ,EACxF,iCAAM,SAAS,EAAC,+BAA+B,YAAE,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,GAAQ,IAC3E,EACN,iCAAK,SAAS,EAAC,6BAA6B,aACxC,iCAAM,SAAS,EAAC,+BAA+B,YAAE,UAAG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,GAAQ,EACxF,iCAAM,SAAS,EAAC,+BAA+B,YAAE,KAAK,CAAC,MAAM,GAAQ,IACnE,IACJ,CACT,CAAC;IAEF,OAAO,CACH,uBAAC,mDAAuB,IACpB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2025 EclipseSource GmbH.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.WriteToolRenderer = void 0;
|
|
19
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
20
6
|
const browser_1 = require("@theia/core/lib/browser");
|
|
21
7
|
const uri_1 = require("@theia/core/lib/common/uri");
|
|
22
8
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
@@ -36,11 +22,11 @@ let WriteToolRenderer = class WriteToolRenderer {
|
|
|
36
22
|
render(response, parentNode) {
|
|
37
23
|
try {
|
|
38
24
|
const input = JSON.parse(response.arguments || '{}');
|
|
39
|
-
return
|
|
25
|
+
return (0, jsx_runtime_1.jsx)(WriteToolComponent, { input: input, workspaceService: this.workspaceService, labelProvider: this.labelProvider, editorManager: this.editorManager, logger: this.logger });
|
|
40
26
|
}
|
|
41
27
|
catch (error) {
|
|
42
28
|
this.logger.warn('Failed to parse Write tool input:', error);
|
|
43
|
-
return
|
|
29
|
+
return (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool error", children: core_1.nls.localize('theia/ai/claude-code/failedToParseWriteToolData', 'Failed to parse Write tool data') });
|
|
44
30
|
}
|
|
45
31
|
}
|
|
46
32
|
};
|
|
@@ -94,26 +80,10 @@ const WriteToolComponent = ({ input, workspaceService, labelProvider, editorMana
|
|
|
94
80
|
const lines = input.content.split('\n').length;
|
|
95
81
|
return `+${lines}`;
|
|
96
82
|
};
|
|
97
|
-
const compactHeader = (
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
relativePath && React.createElement("span", { className: "claude-code-tool relative-path" }, relativePath)),
|
|
103
|
-
React.createElement("div", { className: "claude-code-tool header-right" },
|
|
104
|
-
React.createElement("span", { className: "claude-code-tool badge added" }, getContentSizeInfo()))));
|
|
105
|
-
const expandedContent = (React.createElement("div", { className: "claude-code-tool details" },
|
|
106
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
107
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/filePath', 'File Path')),
|
|
108
|
-
React.createElement("code", { className: "claude-code-tool detail-value" }, input.file_path)),
|
|
109
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
110
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localizeByDefault('Preview')),
|
|
111
|
-
React.createElement("pre", { className: "claude-code-tool detail-value code-preview" }, input.content.length > 500
|
|
112
|
-
? input.content.substring(0, 500) + '...'
|
|
113
|
-
: input.content)),
|
|
114
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
115
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/lines', 'Lines')),
|
|
116
|
-
React.createElement("span", { className: "claude-code-tool detail-value" }, input.content.split('\n').length))));
|
|
117
|
-
return (React.createElement(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
83
|
+
const compactHeader = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool header-left", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool title", children: core_1.nls.localize('theia/ai/claude-code/writing', 'Writing') }), (0, jsx_runtime_1.jsx)("span", { className: `${(0, browser_1.codicon)('edit')} claude-code-tool icon` }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool file-name clickable-element", onClick: handleOpenFile, title: core_1.nls.localize('theia/ai/claude-code/openFileTooltip', 'Click to open file in editor'), children: getFileName(input.file_path) }), relativePath && (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool relative-path", children: relativePath })] }), (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool header-right", children: (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool badge added", children: getContentSizeInfo() }) })] }));
|
|
84
|
+
const expandedContent = ((0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool details", children: [(0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localize('theia/ai/claude-code/filePath', 'File Path') }), (0, jsx_runtime_1.jsx)("code", { className: "claude-code-tool detail-value", children: input.file_path })] }), (0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localizeByDefault('Preview') }), (0, jsx_runtime_1.jsx)("pre", { className: "claude-code-tool detail-value code-preview", children: input.content.length > 500
|
|
85
|
+
? input.content.substring(0, 500) + '...'
|
|
86
|
+
: input.content })] }), (0, jsx_runtime_1.jsxs)("div", { className: "claude-code-tool detail-row", children: [(0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-label", children: core_1.nls.localize('theia/ai/claude-code/lines', 'Lines') }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-value", children: input.content.split('\n').length })] })] }));
|
|
87
|
+
return ((0, jsx_runtime_1.jsx)(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
118
88
|
};
|
|
119
89
|
//# sourceMappingURL=write-tool-renderer.js.map
|