@theia/ai-claude-code 1.75.0-next.4 → 1.75.0-next.43
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/claude-code-chat-agent.js +1 -1
- package/lib/browser/claude-code-chat-agent.js.map +1 -1
- package/lib/browser/claude-code-edit-tool-service.js +1 -1
- package/lib/browser/claude-code-edit-tool-service.js.map +1 -1
- package/lib/browser/claude-code-file-edit-backup-service.js +1 -1
- package/lib/browser/claude-code-file-edit-backup-service.js.map +1 -1
- package/lib/browser/claude-code-frontend-service.d.ts +1 -1
- package/lib/browser/claude-code-frontend-service.d.ts.map +1 -1
- package/lib/browser/claude-code-frontend-service.js +1 -0
- package/lib/browser/claude-code-frontend-service.js.map +1 -1
- package/lib/browser/claude-code-slash-commands-contribution.js +1 -1
- package/lib/browser/claude-code-slash-commands-contribution.js.map +1 -1
- package/lib/browser/renderers/bash-tool-renderer.d.ts +2 -0
- package/lib/browser/renderers/bash-tool-renderer.d.ts.map +1 -1
- package/lib/browser/renderers/bash-tool-renderer.js +12 -36
- 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.d.ts +2 -0
- package/lib/browser/renderers/edit-tool-renderer.d.ts.map +1 -1
- package/lib/browser/renderers/edit-tool-renderer.js +18 -52
- package/lib/browser/renderers/edit-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/glob-tool-renderer.d.ts +2 -0
- package/lib/browser/renderers/glob-tool-renderer.d.ts.map +1 -1
- package/lib/browser/renderers/glob-tool-renderer.js +14 -40
- package/lib/browser/renderers/glob-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/grep-tool-renderer.d.ts +2 -0
- package/lib/browser/renderers/grep-tool-renderer.d.ts.map +1 -1
- package/lib/browser/renderers/grep-tool-renderer.js +14 -56
- package/lib/browser/renderers/grep-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/ls-tool-renderer.d.ts.map +1 -1
- package/lib/browser/renderers/ls-tool-renderer.js +12 -45
- package/lib/browser/renderers/ls-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/multiedit-tool-renderer.d.ts.map +1 -1
- package/lib/browser/renderers/multiedit-tool-renderer.js +14 -58
- package/lib/browser/renderers/multiedit-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/read-tool-renderer.d.ts +2 -0
- package/lib/browser/renderers/read-tool-renderer.d.ts.map +1 -1
- package/lib/browser/renderers/read-tool-renderer.js +16 -45
- package/lib/browser/renderers/read-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/todo-write-renderer.d.ts +2 -0
- package/lib/browser/renderers/todo-write-renderer.d.ts.map +1 -1
- package/lib/browser/renderers/todo-write-renderer.js +19 -44
- package/lib/browser/renderers/todo-write-renderer.js.map +1 -1
- package/lib/browser/renderers/web-fetch-tool-renderer.d.ts +2 -0
- package/lib/browser/renderers/web-fetch-tool-renderer.d.ts.map +1 -1
- package/lib/browser/renderers/web-fetch-tool-renderer.js +12 -38
- package/lib/browser/renderers/web-fetch-tool-renderer.js.map +1 -1
- package/lib/browser/renderers/write-tool-renderer.d.ts.map +1 -1
- package/lib/browser/renderers/write-tool-renderer.js +10 -40
- package/lib/browser/renderers/write-tool-renderer.js.map +1 -1
- package/lib/common/claude-code-preferences.d.ts.map +1 -1
- package/lib/common/claude-code-preferences.js +1 -0
- package/lib/common/claude-code-preferences.js.map +1 -1
- package/lib/node/claude-code-service-impl.d.ts +2 -1
- package/lib/node/claude-code-service-impl.d.ts.map +1 -1
- package/lib/node/claude-code-service-impl.js +1 -1
- package/lib/node/claude-code-service-impl.js.map +1 -1
- package/package.json +10 -10
- package/src/browser/claude-code-chat-agent.ts +1 -1
- package/src/browser/claude-code-edit-tool-service.ts +1 -1
- package/src/browser/claude-code-file-edit-backup-service.ts +1 -1
- package/src/browser/claude-code-frontend-service.ts +3 -3
- package/src/browser/claude-code-slash-commands-contribution.ts +1 -1
- package/src/browser/renderers/bash-tool-renderer.tsx +6 -3
- package/src/browser/renderers/edit-tool-renderer.tsx +10 -5
- package/src/browser/renderers/glob-tool-renderer.tsx +6 -3
- package/src/browser/renderers/grep-tool-renderer.tsx +6 -3
- package/src/browser/renderers/ls-tool-renderer.tsx +4 -2
- package/src/browser/renderers/multiedit-tool-renderer.tsx +5 -3
- package/src/browser/renderers/read-tool-renderer.tsx +10 -5
- package/src/browser/renderers/todo-write-renderer.tsx +6 -3
- package/src/browser/renderers/web-fetch-tool-renderer.tsx +6 -3
- package/src/browser/renderers/write-tool-renderer.tsx +4 -2
- package/src/common/claude-code-preferences.ts +2 -1
- package/src/node/claude-code-service-impl.ts +2 -2
|
@@ -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.EditToolRenderer = 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 EditToolRenderer = class EditToolRenderer {
|
|
|
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)(EditToolComponent, { input: input, workspaceService: this.workspaceService, labelProvider: this.labelProvider, editorManager: this.editorManager, logger: this.logger });
|
|
40
26
|
}
|
|
41
27
|
catch (error) {
|
|
42
|
-
|
|
43
|
-
return
|
|
28
|
+
this.logger.warn('Failed to parse Edit tool input:', error);
|
|
29
|
+
return (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool error", children: core_1.nls.localize('theia/ai/claude-code/failedToParseEditToolData', 'Failed to parse Edit tool data') });
|
|
44
30
|
}
|
|
45
31
|
}
|
|
46
32
|
};
|
|
@@ -57,10 +43,15 @@ tslib_1.__decorate([
|
|
|
57
43
|
(0, inversify_1.inject)(browser_2.EditorManager),
|
|
58
44
|
tslib_1.__metadata("design:type", browser_2.EditorManager)
|
|
59
45
|
], EditToolRenderer.prototype, "editorManager", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
(0, inversify_1.inject)(core_1.ILogger),
|
|
48
|
+
(0, inversify_1.named)('ai-claude-code:EditToolRenderer'),
|
|
49
|
+
tslib_1.__metadata("design:type", Object)
|
|
50
|
+
], EditToolRenderer.prototype, "logger", void 0);
|
|
60
51
|
exports.EditToolRenderer = EditToolRenderer = tslib_1.__decorate([
|
|
61
52
|
(0, inversify_1.injectable)()
|
|
62
53
|
], EditToolRenderer);
|
|
63
|
-
const EditToolComponent = ({ input, workspaceService, labelProvider, editorManager }) => {
|
|
54
|
+
const EditToolComponent = ({ input, workspaceService, labelProvider, editorManager, logger }) => {
|
|
64
55
|
const getFileName = (filePath) => filePath.split('/').pop() || filePath;
|
|
65
56
|
const getWorkspaceRelativePath = async (filePath) => {
|
|
66
57
|
try {
|
|
@@ -87,7 +78,7 @@ const EditToolComponent = ({ input, workspaceService, labelProvider, editorManag
|
|
|
87
78
|
await editorManager.open(uri);
|
|
88
79
|
}
|
|
89
80
|
catch (error) {
|
|
90
|
-
|
|
81
|
+
logger.error('Failed to open file:', error);
|
|
91
82
|
}
|
|
92
83
|
};
|
|
93
84
|
const [relativePath, setRelativePath] = React.useState('');
|
|
@@ -99,37 +90,12 @@ const EditToolComponent = ({ input, workspaceService, labelProvider, editorManag
|
|
|
99
90
|
const newLines = input.new_string.split('\n').length;
|
|
100
91
|
return { oldLines, newLines };
|
|
101
92
|
};
|
|
102
|
-
const compactHeader = (
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
React.createElement("span", { className: "claude-code-tool badge deleted" },
|
|
110
|
-
"-",
|
|
111
|
-
getChangeInfo().oldLines),
|
|
112
|
-
React.createElement("span", { className: "claude-code-tool badge added" },
|
|
113
|
-
"+",
|
|
114
|
-
getChangeInfo().newLines),
|
|
115
|
-
input.replace_all && (React.createElement("span", { className: "claude-code-tool badge" }, core_1.nls.localizeByDefault('Replace All'))))));
|
|
116
|
-
const expandedContent = (React.createElement("div", { className: "claude-code-tool details" },
|
|
117
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
118
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/filePath', 'File Path')),
|
|
119
|
-
React.createElement("code", { className: "claude-code-tool detail-value" }, input.file_path)),
|
|
120
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
121
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/from', 'From')),
|
|
122
|
-
React.createElement("pre", { className: "claude-code-tool detail-value code-preview" }, input.old_string.length > 200
|
|
123
|
-
? input.old_string.substring(0, 200) + '...'
|
|
124
|
-
: input.old_string)),
|
|
125
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
126
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/to', 'To')),
|
|
127
|
-
React.createElement("pre", { className: "claude-code-tool detail-value code-preview" }, input.new_string.length > 200
|
|
128
|
-
? input.new_string.substring(0, 200) + '...'
|
|
129
|
-
: input.new_string)),
|
|
130
|
-
input.replace_all && (React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
131
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localizeByDefault('Mode')),
|
|
132
|
-
React.createElement("span", { className: "claude-code-tool detail-value" }, core_1.nls.localize('theia/ai/claude-code/replaceAllOccurrences', 'Replace all occurrences'))))));
|
|
133
|
-
return (React.createElement(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
93
|
+
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/editing', '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().oldLines] }), (0, jsx_runtime_1.jsxs)("span", { className: "claude-code-tool badge added", children: ["+", getChangeInfo().newLines] }), input.replace_all && ((0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool badge", children: core_1.nls.localizeByDefault('Replace All') }))] })] }));
|
|
94
|
+
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/from', 'From') }), (0, jsx_runtime_1.jsx)("pre", { className: "claude-code-tool detail-value code-preview", children: input.old_string.length > 200
|
|
95
|
+
? input.old_string.substring(0, 200) + '...'
|
|
96
|
+
: input.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: input.new_string.length > 200
|
|
97
|
+
? input.new_string.substring(0, 200) + '...'
|
|
98
|
+
: input.new_string })] }), input.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.localizeByDefault('Mode') }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-value", children: core_1.nls.localize('theia/ai/claude-code/replaceAllOccurrences', 'Replace all occurrences') })] }))] }));
|
|
99
|
+
return ((0, jsx_runtime_1.jsx)(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
134
100
|
};
|
|
135
101
|
//# sourceMappingURL=edit-tool-renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/edit-tool-renderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"edit-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/edit-tool-renderer.tsx"],"names":[],"mappings":";;;;;AAmBA,qDAAwD;AACxD,oDAAiD;AACjD,4DAAyE;AACzE,kDAAkD;AAElD,uDAA0D;AAC1D,0DAAgE;AAChE,oFAAyF;AACzF,2EAAsE;AACtE,sCAA2C;AAUpC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAczB,SAAS,CAAC,QAA6B;QACnC,IAAI,qEAAqC,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACjF,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,CAAkB,CAAC;YACtE,OAAO,uBAAC,iBAAiB,IACrB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,MAAM,EAAE,IAAI,CAAC,MAAM,GACrB,CAAC;QACP,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAC;YAC5D,OAAO,gCAAK,SAAS,EAAC,wBAAwB,YAAE,UAAG,CAAC,QAAQ,CAAC,gDAAgD,EAAE,gCAAgC,CAAC,GAAO,CAAC;QAC5J,CAAC;IACL,CAAC;CACJ,CAAA;AApCY,4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,CAAC,GAAQ,EACtG,gCAAK,SAAS,EAAC,4CAA4C,YACtD,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,GAAG;4BAC1B,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK;4BAC5C,CAAC,CAAC,KAAK,CAAC,UAAU,GACpB,IACJ,EACL,KAAK,CAAC,WAAW,IAAI,CAClB,iCAAK,SAAS,EAAC,6BAA6B,aACxC,iCAAM,SAAS,EAAC,+BAA+B,YAAE,UAAG,CAAC,iBAAiB,CAAC,MAAM,CAAC,GAAQ,EACtF,iCAAM,SAAS,EAAC,+BAA+B,YAAE,UAAG,CAAC,QAAQ,CAAC,4CAA4C,EAAE,yBAAyB,CAAC,GAAQ,IAC5I,CACT,IACC,CACT,CAAC;IAEF,OAAO,CACH,uBAAC,mDAAuB,IACpB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -4,9 +4,11 @@ import { ChatResponseContent, ToolCallChatResponseContent } from '@theia/ai-chat
|
|
|
4
4
|
import { LabelProvider } from '@theia/core/lib/browser';
|
|
5
5
|
import { ReactNode } from '@theia/core/shared/react';
|
|
6
6
|
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
7
|
+
import { ILogger } from '@theia/core';
|
|
7
8
|
export declare class GlobToolRenderer implements ChatResponsePartRenderer<ToolCallChatResponseContent> {
|
|
8
9
|
protected readonly workspaceService: WorkspaceService;
|
|
9
10
|
protected readonly labelProvider: LabelProvider;
|
|
11
|
+
protected readonly logger: ILogger;
|
|
10
12
|
canHandle(response: ChatResponseContent): number;
|
|
11
13
|
render(response: ToolCallChatResponseContent, parentNode: ResponseNode): ReactNode;
|
|
12
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glob-tool-renderer.d.ts","sourceRoot":"","sources":["../../../src/browser/renderers/glob-tool-renderer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|
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.GlobToolRenderer = 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");
|
|
@@ -35,11 +21,11 @@ let GlobToolRenderer = class GlobToolRenderer {
|
|
|
35
21
|
render(response, parentNode) {
|
|
36
22
|
try {
|
|
37
23
|
const input = JSON.parse(response.arguments || '{}');
|
|
38
|
-
return
|
|
24
|
+
return (0, jsx_runtime_1.jsx)(GlobToolComponent, { input: input, workspaceService: this.workspaceService, labelProvider: this.labelProvider });
|
|
39
25
|
}
|
|
40
26
|
catch (error) {
|
|
41
|
-
|
|
42
|
-
return
|
|
27
|
+
this.logger.warn('Failed to parse Glob tool input:', error);
|
|
28
|
+
return (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool error", children: core_1.nls.localize('theia/ai/claude-code/failedToParseGlobToolData', 'Failed to parse Glob tool data') });
|
|
43
29
|
}
|
|
44
30
|
}
|
|
45
31
|
};
|
|
@@ -52,6 +38,11 @@ tslib_1.__decorate([
|
|
|
52
38
|
(0, inversify_1.inject)(browser_1.LabelProvider),
|
|
53
39
|
tslib_1.__metadata("design:type", browser_1.LabelProvider)
|
|
54
40
|
], GlobToolRenderer.prototype, "labelProvider", void 0);
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
(0, inversify_1.inject)(core_1.ILogger),
|
|
43
|
+
(0, inversify_1.named)('ai-claude-code:GlobToolRenderer'),
|
|
44
|
+
tslib_1.__metadata("design:type", Object)
|
|
45
|
+
], GlobToolRenderer.prototype, "logger", void 0);
|
|
55
46
|
exports.GlobToolRenderer = GlobToolRenderer = tslib_1.__decorate([
|
|
56
47
|
(0, inversify_1.injectable)()
|
|
57
48
|
], GlobToolRenderer);
|
|
@@ -78,27 +69,10 @@ const GlobToolComponent = ({ input, workspaceService, labelProvider }) => {
|
|
|
78
69
|
getWorkspaceRelativePath(input.path).then(setRelativePath);
|
|
79
70
|
}
|
|
80
71
|
}, [input.path]);
|
|
81
|
-
const compactHeader = (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
React.createElement("span", { className: "claude-code-tool scope" }, core_1.nls.localizeByDefault('in {0}', getSearchScope())),
|
|
87
|
-
relativePath && React.createElement("span", { className: "claude-code-tool relative-path" }, relativePath)),
|
|
88
|
-
React.createElement("div", { className: "claude-code-tool header-right" },
|
|
89
|
-
React.createElement("span", { className: "claude-code-tool badge" }, core_1.nls.localize('theia/ai/claude-code/globPattern', 'glob pattern')))));
|
|
90
|
-
const expandedContent = (React.createElement("div", { className: "claude-code-tool details" },
|
|
91
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
92
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localizeByDefault('Pattern')),
|
|
93
|
-
React.createElement("code", { className: "claude-code-tool detail-value" }, input.pattern)),
|
|
94
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
95
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/searchPath', 'Search Path')),
|
|
96
|
-
React.createElement("code", { className: "claude-code-tool detail-value" }, input.path || core_1.nls.localize('theia/ai/claude-code/currentDirectory', 'current directory'))),
|
|
97
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
98
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localizeByDefault('Description')),
|
|
99
|
-
React.createElement("span", { className: "claude-code-tool detail-value" }, input.path
|
|
100
|
-
? core_1.nls.localize('theia/ai/claude-code/findMatchingFilesWithPath', 'Find files matching the glob pattern "{0}" within {1}', input.pattern, input.path)
|
|
101
|
-
: core_1.nls.localize('theia/ai/claude-code/findMatchingFiles', 'Find files matching the glob pattern "{0}" in the current directory', input.pattern)))));
|
|
102
|
-
return (React.createElement(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
72
|
+
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/finding', 'Finding') }), (0, jsx_runtime_1.jsx)("span", { className: `${(0, browser_1.codicon)('files')} claude-code-tool icon` }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool glob-pattern", children: input.pattern }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool scope", children: core_1.nls.localizeByDefault('in {0}', getSearchScope()) }), 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", children: core_1.nls.localize('theia/ai/claude-code/globPattern', 'glob pattern') }) })] }));
|
|
73
|
+
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('Pattern') }), (0, jsx_runtime_1.jsx)("code", { className: "claude-code-tool detail-value", children: input.pattern })] }), (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/searchPath', 'Search Path') }), (0, jsx_runtime_1.jsx)("code", { className: "claude-code-tool detail-value", children: input.path || core_1.nls.localize('theia/ai/claude-code/currentDirectory', 'current directory') })] }), (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('Description') }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-value", children: input.path
|
|
74
|
+
? core_1.nls.localize('theia/ai/claude-code/findMatchingFilesWithPath', 'Find files matching the glob pattern "{0}" within {1}', input.pattern, input.path)
|
|
75
|
+
: core_1.nls.localize('theia/ai/claude-code/findMatchingFiles', 'Find files matching the glob pattern "{0}" in the current directory', input.pattern) })] })] }));
|
|
76
|
+
return ((0, jsx_runtime_1.jsx)(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
103
77
|
};
|
|
104
78
|
//# sourceMappingURL=glob-tool-renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glob-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/glob-tool-renderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"glob-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/glob-tool-renderer.tsx"],"names":[],"mappings":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EAAE,KAAK,CAAC,IAAI,CAAC;4BACpJ,CAAC,CAAC,UAAG,CAAC,QAAQ,CAAC,wCAAwC,EAAE,qEAAqE,EAAE,KAAK,CAAC,OAAO,CAAC,GAC/I,IACL,IACJ,CACT,CAAC;IAEF,OAAO,CACH,uBAAC,mDAAuB,IACpB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -4,9 +4,11 @@ import { ChatResponseContent, ToolCallChatResponseContent } from '@theia/ai-chat
|
|
|
4
4
|
import { LabelProvider } from '@theia/core/lib/browser';
|
|
5
5
|
import { ReactNode } from '@theia/core/shared/react';
|
|
6
6
|
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
7
|
+
import { ILogger } from '@theia/core';
|
|
7
8
|
export declare class GrepToolRenderer implements ChatResponsePartRenderer<ToolCallChatResponseContent> {
|
|
8
9
|
protected readonly workspaceService: WorkspaceService;
|
|
9
10
|
protected readonly labelProvider: LabelProvider;
|
|
11
|
+
protected readonly logger: ILogger;
|
|
10
12
|
canHandle(response: ChatResponseContent): number;
|
|
11
13
|
render(response: ToolCallChatResponseContent, parentNode: ResponseNode): ReactNode;
|
|
12
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grep-tool-renderer.d.ts","sourceRoot":"","sources":["../../../src/browser/renderers/grep-tool-renderer.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2DAA2D,CAAC;AACrG,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAC7F,OAAO,EAAW,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAIjE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"grep-tool-renderer.d.ts","sourceRoot":"","sources":["../../../src/browser/renderers/grep-tool-renderer.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2DAA2D,CAAC;AACrG,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAC7F,OAAO,EAAW,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAIjE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,OAAO,EAAO,OAAO,EAAE,MAAM,aAAa,CAAC;AAuB3C,qBACa,gBAAiB,YAAW,wBAAwB,CAAC,2BAA2B,CAAC;IAG1F,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAGtD,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAGhD,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAEnC,SAAS,CAAC,QAAQ,EAAE,mBAAmB,GAAG,MAAM;IAOhD,MAAM,CAAC,QAAQ,EAAE,2BAA2B,EAAE,UAAU,EAAE,YAAY,GAAG,SAAS;CAarF"}
|
|
@@ -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.GrepToolRenderer = 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");
|
|
@@ -40,11 +26,11 @@ let GrepToolRenderer = class GrepToolRenderer {
|
|
|
40
26
|
render(response, parentNode) {
|
|
41
27
|
try {
|
|
42
28
|
const input = JSON.parse(response.arguments || '{}');
|
|
43
|
-
return
|
|
29
|
+
return (0, jsx_runtime_1.jsx)(GrepToolComponent, { input: input, workspaceService: this.workspaceService, labelProvider: this.labelProvider });
|
|
44
30
|
}
|
|
45
31
|
catch (error) {
|
|
46
|
-
|
|
47
|
-
return
|
|
32
|
+
this.logger.warn('Failed to parse Grep tool input:', error);
|
|
33
|
+
return (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool error", children: core_1.nls.localize('theia/ai/claude-code/failedToParseGrepToolData', 'Failed to parse Grep tool data') });
|
|
48
34
|
}
|
|
49
35
|
}
|
|
50
36
|
};
|
|
@@ -57,6 +43,11 @@ tslib_1.__decorate([
|
|
|
57
43
|
(0, inversify_1.inject)(browser_1.LabelProvider),
|
|
58
44
|
tslib_1.__metadata("design:type", browser_1.LabelProvider)
|
|
59
45
|
], GrepToolRenderer.prototype, "labelProvider", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
(0, inversify_1.inject)(core_1.ILogger),
|
|
48
|
+
(0, inversify_1.named)('ai-claude-code:GrepToolRenderer'),
|
|
49
|
+
tslib_1.__metadata("design:type", Object)
|
|
50
|
+
], GrepToolRenderer.prototype, "logger", void 0);
|
|
60
51
|
exports.GrepToolRenderer = GrepToolRenderer = tslib_1.__decorate([
|
|
61
52
|
(0, inversify_1.injectable)()
|
|
62
53
|
], GrepToolRenderer);
|
|
@@ -118,43 +109,10 @@ const GrepToolComponent = ({ input, workspaceService, labelProvider }) => {
|
|
|
118
109
|
};
|
|
119
110
|
};
|
|
120
111
|
const optionsInfo = getOptionsInfo();
|
|
121
|
-
const compactHeader = (
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"\"",
|
|
127
|
-
input.pattern,
|
|
128
|
-
"\""),
|
|
129
|
-
React.createElement("span", { className: "claude-code-tool scope" }, core_1.nls.localizeByDefault('in {0}', getSearchScope())),
|
|
130
|
-
relativePath && React.createElement("span", { className: "claude-code-tool relative-path" }, relativePath)),
|
|
131
|
-
React.createElement("div", { className: "claude-code-tool header-right" },
|
|
132
|
-
input.output_mode && input.output_mode !== 'files_with_matches' && (React.createElement("span", { className: "claude-code-tool badge" }, GREP_OUTPUT_MODES[input.output_mode])),
|
|
133
|
-
optionsInfo.count > 0 && (React.createElement("span", { className: "claude-code-tool badge", title: optionsInfo.label }, optionsInfo.count > 1
|
|
134
|
-
? core_1.nls.localize('theia/ai/claude-code/optionsCount', '{0} options', optionsInfo.count)
|
|
135
|
-
: core_1.nls.localize('theia/ai/claude-code/oneOption', '1 option'))))));
|
|
136
|
-
const expandedContent = (React.createElement("div", { className: "claude-code-tool details" },
|
|
137
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
138
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localizeByDefault('Pattern')),
|
|
139
|
-
React.createElement("code", { className: "claude-code-tool detail-value" },
|
|
140
|
-
"\"",
|
|
141
|
-
input.pattern,
|
|
142
|
-
"\"")),
|
|
143
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
144
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/searchPath', 'Search Path')),
|
|
145
|
-
React.createElement("code", { className: "claude-code-tool detail-value" }, input.path || core_1.nls.localize('theia/ai/claude-code/projectRoot', 'project root'))),
|
|
146
|
-
input.output_mode && (React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
147
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localizeByDefault('Mode')),
|
|
148
|
-
React.createElement("span", { className: "claude-code-tool detail-value" }, GREP_OUTPUT_MODES[input.output_mode]))),
|
|
149
|
-
input.glob && (React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
150
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/fileFilter', 'File Filter')),
|
|
151
|
-
React.createElement("code", { className: "claude-code-tool detail-value" }, input.glob))),
|
|
152
|
-
input.type && (React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
153
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/fileType', 'File Type')),
|
|
154
|
-
React.createElement("span", { className: "claude-code-tool detail-value" }, input.type))),
|
|
155
|
-
optionsInfo.label && (React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
156
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localizeByDefault('Options')),
|
|
157
|
-
React.createElement("span", { className: "claude-code-tool detail-value" }, optionsInfo.label)))));
|
|
158
|
-
return (React.createElement(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
112
|
+
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/searching', 'Searching') }), (0, jsx_runtime_1.jsx)("span", { className: `${(0, browser_1.codicon)('search')} claude-code-tool icon` }), (0, jsx_runtime_1.jsxs)("span", { className: "claude-code-tool pattern", children: ["\"", input.pattern, "\""] }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool scope", children: core_1.nls.localizeByDefault('in {0}', getSearchScope()) }), 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: [input.output_mode && input.output_mode !== 'files_with_matches' && ((0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool badge", children: GREP_OUTPUT_MODES[input.output_mode] })), optionsInfo.count > 0 && ((0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool badge", title: optionsInfo.label, children: optionsInfo.count > 1
|
|
113
|
+
? core_1.nls.localize('theia/ai/claude-code/optionsCount', '{0} options', optionsInfo.count)
|
|
114
|
+
: core_1.nls.localize('theia/ai/claude-code/oneOption', '1 option') }))] })] }));
|
|
115
|
+
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('Pattern') }), (0, jsx_runtime_1.jsxs)("code", { className: "claude-code-tool detail-value", children: ["\"", input.pattern, "\""] })] }), (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/searchPath', 'Search Path') }), (0, jsx_runtime_1.jsx)("code", { className: "claude-code-tool detail-value", children: input.path || core_1.nls.localize('theia/ai/claude-code/projectRoot', 'project root') })] }), input.output_mode && ((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('Mode') }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-value", children: GREP_OUTPUT_MODES[input.output_mode] })] })), input.glob && ((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/fileFilter', 'File Filter') }), (0, jsx_runtime_1.jsx)("code", { className: "claude-code-tool detail-value", children: input.glob })] })), input.type && ((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/fileType', 'File Type') }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-value", children: input.type })] })), optionsInfo.label && ((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('Options') }), (0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool detail-value", children: optionsInfo.label })] }))] }));
|
|
116
|
+
return ((0, jsx_runtime_1.jsx)(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
159
117
|
};
|
|
160
118
|
//# sourceMappingURL=grep-tool-renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grep-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/grep-tool-renderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"grep-tool-renderer.js","sourceRoot":"","sources":["../../../src/browser/renderers/grep-tool-renderer.tsx"],"names":[],"mappings":";;;;;AAmBA,qDAAiE;AACjE,oDAAiD;AACjD,4DAAyE;AACzE,kDAAkD;AAElD,0DAAgE;AAChE,oFAAyF;AACzF,2EAAsE;AACtE,sCAA2C;AAiB3C,MAAM,iBAAiB,GAAG;IACtB,SAAS,EAAE,UAAG,CAAC,QAAQ,CAAC,8CA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B,GAAG,MAAM;IAOhD,MAAM,CAAC,QAAQ,EAAE,2BAA2B,EAAE,UAAU,EAAE,YAAY,GAAG,SAAS;CAerF"}
|
|
@@ -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.LSToolRenderer = 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 LSToolRenderer = class LSToolRenderer {
|
|
|
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)(LSToolComponent, { 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 LS 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/failedToParseLSToolData', 'Failed to parse LS tool data') });
|
|
44
30
|
}
|
|
45
31
|
}
|
|
46
32
|
};
|
|
@@ -65,7 +51,7 @@ tslib_1.__decorate([
|
|
|
65
51
|
exports.LSToolRenderer = LSToolRenderer = tslib_1.__decorate([
|
|
66
52
|
(0, inversify_1.injectable)()
|
|
67
53
|
], LSToolRenderer);
|
|
68
|
-
const LSToolComponent = ({ input, workspaceService, labelProvider, editorManager }) => {
|
|
54
|
+
const LSToolComponent = ({ input, workspaceService, labelProvider, editorManager, logger }) => {
|
|
69
55
|
const getDirectoryName = (dirPath) => dirPath.split('/').pop() || dirPath;
|
|
70
56
|
const getWorkspaceRelativePath = async (dirPath) => {
|
|
71
57
|
try {
|
|
@@ -84,38 +70,19 @@ const LSToolComponent = ({ input, workspaceService, labelProvider, editorManager
|
|
|
84
70
|
await editorManager.open(uri);
|
|
85
71
|
}
|
|
86
72
|
catch (error) {
|
|
87
|
-
|
|
73
|
+
logger.error('Failed to open directory:', error);
|
|
88
74
|
}
|
|
89
75
|
};
|
|
90
76
|
const [relativePath, setRelativePath] = React.useState('');
|
|
91
77
|
React.useEffect(() => {
|
|
92
78
|
getWorkspaceRelativePath(input.path).then(setRelativePath);
|
|
93
79
|
}, [input.path]);
|
|
94
|
-
const compactHeader = (
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
const expandedContent = (React.createElement("div", { className: "claude-code-tool details" },
|
|
102
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
103
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localizeByDefault('Directory')),
|
|
104
|
-
React.createElement("code", { className: "claude-code-tool detail-value" }, input.path)),
|
|
105
|
-
input.ignore && input.ignore.length > 0 && (React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
106
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localize('theia/ai/claude-code/ignoredPatterns', 'Ignored Patterns')),
|
|
107
|
-
React.createElement("div", { className: "claude-code-tool detail-value" }, input.ignore.map((pattern, index) => (React.createElement("code", { key: index, className: "claude-code-tool ignore-pattern" },
|
|
108
|
-
pattern,
|
|
109
|
-
index < input.ignore.length - 1 ? ', ' : '')))))),
|
|
110
|
-
React.createElement("div", { className: "claude-code-tool detail-row" },
|
|
111
|
-
React.createElement("span", { className: "claude-code-tool detail-label" }, core_1.nls.localizeByDefault('Description')),
|
|
112
|
-
React.createElement("span", { className: "claude-code-tool detail-value" },
|
|
113
|
-
core_1.nls.localize('theia/ai/claude-code/listDirectoryContents', 'List directory contents'),
|
|
114
|
-
input.ignore && input.ignore.length > 0
|
|
115
|
-
? (input.ignore.length > 1
|
|
116
|
-
? core_1.nls.localize('theia/ai/claude-code/excludingPatterns', ' (excluding {0} patterns)', input.ignore.length)
|
|
117
|
-
: core_1.nls.localize('theia/ai/claude-code/excludingOnePattern', ' (exluding 1 pattern)'))
|
|
118
|
-
: ''))));
|
|
119
|
-
return (React.createElement(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
80
|
+
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/listing', 'Listing') }), (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 file-name clickable-element", onClick: handleOpenDirectory, title: core_1.nls.localize('theia/ai/claude-code/openDirectoryTooltip', 'Click to open directory'), children: getDirectoryName(input.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: input.ignore && input.ignore.length > 0 && ((0, jsx_runtime_1.jsx)("span", { className: "claude-code-tool badge", children: core_1.nls.localize('theia/ai/claude-code/ignoringPatterns', 'Ignoring {0} patterns', input.ignore.length) })) })] }));
|
|
81
|
+
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('Directory') }), (0, jsx_runtime_1.jsx)("code", { className: "claude-code-tool detail-value", children: input.path })] }), input.ignore && input.ignore.length > 0 && ((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/ignoredPatterns', 'Ignored Patterns') }), (0, jsx_runtime_1.jsx)("div", { className: "claude-code-tool detail-value", children: input.ignore.map((pattern, index) => ((0, jsx_runtime_1.jsxs)("code", { className: "claude-code-tool ignore-pattern", children: [pattern, index < input.ignore.length - 1 ? ', ' : ''] }, index))) })] })), (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('Description') }), (0, jsx_runtime_1.jsxs)("span", { className: "claude-code-tool detail-value", children: [core_1.nls.localize('theia/ai/claude-code/listDirectoryContents', 'List directory contents'), input.ignore && input.ignore.length > 0
|
|
82
|
+
? (input.ignore.length > 1
|
|
83
|
+
? core_1.nls.localize('theia/ai/claude-code/excludingPatterns', ' (excluding {0} patterns)', input.ignore.length)
|
|
84
|
+
: core_1.nls.localize('theia/ai/claude-code/excludingOnePattern', ' (exluding 1 pattern)'))
|
|
85
|
+
: ''] })] })] }));
|
|
86
|
+
return ((0, jsx_runtime_1.jsx)(collapsible_tool_renderer_1.CollapsibleToolRenderer, { compactHeader: compactHeader, expandedContent: expandedContent }));
|
|
120
87
|
};
|
|
121
88
|
//# sourceMappingURL=ls-tool-renderer.js.map
|
|
@@ -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,4DAAyE;AACzE,kDAAkD;AAElD,uDAA0D;AAC1D,0DAAgE;AAChE,oFAAyF;AACzF,2EAAsE;AACtE,sCAA2C;AAQpC,IAAM,cAAc,GAApB,MAAM,cAAc;IAcvB,SAAS,CAAC,QAA6B;QACnC,IAAI,qEAAqC,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;YAC/E,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,CAAgB,CAAC;YACpE,OAAO,uBAAC,eAAe,IACnB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,MAAM,EAAE,IAAI,CAAC,MAAM,GACrB,CAAC;QACP,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gCAAgC,EAAE,K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