@theia/ai-scanoss 1.77.0-next.99 → 1.78.0-next.0
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/ai-scanoss-code-scan-action.js +34 -40
- package/lib/browser/ai-scanoss-code-scan-action.js.map +1 -1
- package/lib/browser/ai-scanoss-frontend-module.js +18 -20
- package/lib/browser/ai-scanoss-frontend-module.js.map +1 -1
- package/lib/browser/change-set-scan-action/change-set-scan-action.d.ts +2 -2
- package/lib/browser/change-set-scan-action/change-set-scan-action.d.ts.map +1 -1
- package/lib/browser/change-set-scan-action/change-set-scan-action.js +53 -65
- package/lib/browser/change-set-scan-action/change-set-scan-action.js.map +1 -1
- package/lib/browser/change-set-scan-action/change-set-scan-decorator.js +7 -10
- package/lib/browser/change-set-scan-action/change-set-scan-decorator.js.map +1 -1
- package/lib/common/ai-scanoss-preferences.js +10 -13
- package/lib/common/ai-scanoss-preferences.js.map +1 -1
- package/lib/node/ai-scanoss-backend-module.js +5 -7
- package/lib/node/ai-scanoss-backend-module.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +1 -1
- package/lib/package.spec.js.map +1 -1
- package/package.json +17 -9
- package/src/browser/ai-scanoss-code-scan-action.tsx +1 -1
- package/src/browser/ai-scanoss-frontend-module.ts +4 -4
- package/src/browser/change-set-scan-action/change-set-scan-action.tsx +7 -7
- package/src/node/ai-scanoss-backend-module.ts +1 -1
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ScanOSSDialog = exports.ScanOSSScanButtonAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@theia/core/shared/react/jsx-runtime";
|
|
6
3
|
// *****************************************************************************
|
|
7
4
|
// Copyright (C) 2024 EclipseSource GmbH.
|
|
8
5
|
//
|
|
@@ -18,14 +15,14 @@ const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
|
18
15
|
//
|
|
19
16
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
20
17
|
// ***
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
19
|
+
import { ScanOSSService, } from '@theia/scanoss';
|
|
20
|
+
import { Dialog } from '@theia/core/lib/browser';
|
|
21
|
+
import * as React from '@theia/core/shared/react';
|
|
22
|
+
import { ReactDialog } from '@theia/core/lib/browser/dialogs/react-dialog';
|
|
23
|
+
import { SCAN_OSS_API_KEY_PREF } from '@theia/scanoss/lib/common/scanoss-preferences';
|
|
24
|
+
import { SCANOSS_MODE_PREF } from '../common/ai-scanoss-preferences.js';
|
|
25
|
+
import { nls, PreferenceService } from '@theia/core';
|
|
29
26
|
function hasScanOSSResults(data) {
|
|
30
27
|
return 'scanOSSResults' in data && data.scanOSSResults instanceof Map;
|
|
31
28
|
}
|
|
@@ -39,7 +36,7 @@ let ScanOSSScanButtonAction = class ScanOSSScanButtonAction {
|
|
|
39
36
|
}
|
|
40
37
|
const results = parentNode.response.data
|
|
41
38
|
.scanOSSResults;
|
|
42
|
-
const scanOSSMode = this.preferenceService.get(
|
|
39
|
+
const scanOSSMode = this.preferenceService.get(SCANOSS_MODE_PREF, 'off');
|
|
43
40
|
// we mark the code for manual scanning in case it was not handled yet and the mode is manual or off.
|
|
44
41
|
// this prevents a possibly unexpected automatic scan of "old" snippets if automatic scan is later turned on.
|
|
45
42
|
if (results.get(response.code) === undefined && (scanOSSMode === 'off' || scanOSSMode === 'manual')) {
|
|
@@ -50,27 +47,25 @@ let ScanOSSScanButtonAction = class ScanOSSScanButtonAction {
|
|
|
50
47
|
render(response, parentNode) {
|
|
51
48
|
const scanOSSResults = parentNode.response.data
|
|
52
49
|
.scanOSSResults;
|
|
53
|
-
return ((
|
|
50
|
+
return (_jsx(ScanOSSIntegration, { code: response.code, scanService: this.scanService, scanOSSResults: scanOSSResults, preferenceService: this.preferenceService }, 'scanoss'));
|
|
54
51
|
}
|
|
55
52
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
(0, inversify_1.inject)(scanoss_1.ScanOSSService),
|
|
59
|
-
tslib_1.__metadata("design:type", Object)
|
|
53
|
+
__decorate([
|
|
54
|
+
inject(ScanOSSService)
|
|
60
55
|
], ScanOSSScanButtonAction.prototype, "scanService", void 0);
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
tslib_1.__metadata("design:type", Object)
|
|
56
|
+
__decorate([
|
|
57
|
+
inject(PreferenceService)
|
|
64
58
|
], ScanOSSScanButtonAction.prototype, "preferenceService", void 0);
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
ScanOSSScanButtonAction = __decorate([
|
|
60
|
+
injectable()
|
|
67
61
|
], ScanOSSScanButtonAction);
|
|
62
|
+
export { ScanOSSScanButtonAction };
|
|
68
63
|
const ScanOSSIntegration = React.memo((props) => {
|
|
69
|
-
const [automaticCheck] = React.useState(() => props.preferenceService.get(
|
|
64
|
+
const [automaticCheck] = React.useState(() => props.preferenceService.get(SCANOSS_MODE_PREF, 'off') === 'automatic');
|
|
70
65
|
const [scanOSSResult, setScanOSSResult] = React.useState(props.scanOSSResults.get(props.code));
|
|
71
66
|
const scanCode = React.useCallback(async () => {
|
|
72
67
|
setScanOSSResult('pending');
|
|
73
|
-
const result = await props.scanService.scanContent(props.code, props.preferenceService.get(
|
|
68
|
+
const result = await props.scanService.scanContent(props.code, props.preferenceService.get(SCAN_OSS_API_KEY_PREF, undefined));
|
|
74
69
|
setScanOSSResult(result);
|
|
75
70
|
props.scanOSSResults.set(props.code, result);
|
|
76
71
|
return result;
|
|
@@ -102,48 +97,47 @@ const ScanOSSIntegration = React.memo((props) => {
|
|
|
102
97
|
let title = 'SCANOSS - Perform scan';
|
|
103
98
|
if (scanOSSResult) {
|
|
104
99
|
if (scanOSSResult === 'pending') {
|
|
105
|
-
title =
|
|
100
|
+
title = nls.localize('theia/ai/scanoss/snippet/in-progress', 'SCANOSS - Performing scan...');
|
|
106
101
|
}
|
|
107
102
|
else if (scanOSSResult.type === 'error') {
|
|
108
|
-
title =
|
|
103
|
+
title = nls.localize('theia/ai/scanoss/snippet/errored', 'SCANOSS - Error - {0}', scanOSSResult.message);
|
|
109
104
|
}
|
|
110
105
|
else if (scanOSSResult.type === 'match') {
|
|
111
|
-
title =
|
|
106
|
+
title = nls.localize('theia/ai/scanoss/snippet/matched', 'SCANOSS - Found {0} match', scanOSSResult.matched);
|
|
112
107
|
}
|
|
113
108
|
else if (scanOSSResult.type === 'clean') {
|
|
114
|
-
title =
|
|
109
|
+
title = nls.localize('theia/ai/scanoss/snippet/no-match', 'SCANOSS - No match');
|
|
115
110
|
}
|
|
116
111
|
}
|
|
117
|
-
return ((
|
|
112
|
+
return (_jsx("div", { className: `button scanoss-icon icon-container ${scanOSSResult === 'pending'
|
|
118
113
|
? 'pending'
|
|
119
114
|
: scanOSSResult
|
|
120
115
|
? scanOSSResult.type
|
|
121
|
-
: ''}`, title: title, role: "button", onClick: scanOSSClicked, children: scanOSSResult && scanOSSResult !== 'pending' && ((
|
|
116
|
+
: ''}`, title: title, role: "button", onClick: scanOSSClicked, children: scanOSSResult && scanOSSResult !== 'pending' && (_jsxs("span", { className: "status-icon", children: [scanOSSResult.type === 'clean' && _jsx("span", { className: "codicon codicon-pass-filled" }), scanOSSResult.type === 'match' && _jsx("span", { className: "codicon codicon-warning" }), scanOSSResult.type === 'error' && _jsx("span", { className: "codicon codicon-error" })] })) }));
|
|
122
117
|
});
|
|
123
|
-
class ScanOSSDialog extends
|
|
118
|
+
export class ScanOSSDialog extends ReactDialog {
|
|
124
119
|
constructor(results) {
|
|
125
120
|
super({
|
|
126
|
-
title:
|
|
121
|
+
title: nls.localize('theia/ai/scanoss/snippet/dialog-header', 'ScanOSS Results'),
|
|
127
122
|
});
|
|
128
123
|
this.results = results;
|
|
129
|
-
this.appendAcceptButton(
|
|
124
|
+
this.appendAcceptButton(Dialog.OK);
|
|
130
125
|
this.update();
|
|
131
126
|
}
|
|
132
127
|
render() {
|
|
133
|
-
return ((
|
|
128
|
+
return (_jsxs("div", { className: "scanoss-dialog-container", children: [this.renderHeader(), this.renderSummary(), this.renderContent()] }));
|
|
134
129
|
}
|
|
135
130
|
renderHeader() {
|
|
136
|
-
return ((
|
|
131
|
+
return (_jsx("div", { className: "scanoss-header", children: _jsxs("div", { className: "scanoss-icon-container", children: [_jsx("div", { className: "scanoss-icon" }), _jsx("h2", { children: "SCANOSS" })] }) }));
|
|
137
132
|
}
|
|
138
133
|
renderSummary() {
|
|
139
|
-
return ((
|
|
134
|
+
return (_jsxs("div", { className: "scanoss-summary", children: [_jsx("h3", { children: nls.localizeByDefault('Summary') }), _jsx("div", { children: nls.localize('theia/ai/scanoss/snippet/match-count', 'Found {0} match(es)', this.results.length) })] }));
|
|
140
135
|
}
|
|
141
136
|
renderContent() {
|
|
142
|
-
return ((
|
|
137
|
+
return (_jsxs("div", { className: "scanoss-details", children: [_jsx("h4", { children: nls.localizeByDefault('Details') }), this.results.map(result => _jsxs("div", { children: [result.file && _jsx("h4", { children: nls.localize('theia/ai/scanoss/snippet/file-name-heading', 'Match found in {0}', result.file) }), _jsx("a", { href: result.url, target: "_blank", rel: "noopener noreferrer", children: result.url }), _jsx("pre", { children: JSON.stringify(result.raw, undefined, 2) })] }, result.matched))] }));
|
|
143
138
|
}
|
|
144
139
|
get value() {
|
|
145
140
|
return undefined;
|
|
146
141
|
}
|
|
147
142
|
}
|
|
148
|
-
exports.ScanOSSDialog = ScanOSSDialog;
|
|
149
143
|
//# sourceMappingURL=ai-scanoss-code-scan-action.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-scanoss-code-scan-action.js","sourceRoot":"","sources":["../../src/browser/ai-scanoss-code-scan-action.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai-scanoss-code-scan-action.js","sourceRoot":"","sources":["../../src/browser/ai-scanoss-code-scan-action.tsx"],"names":[],"mappings":";;AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,MAAM;AACN,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGlE,OAAO,EAGH,cAAc,GACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGjD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASrD,SAAS,iBAAiB,CAAC,IAE1B;IACG,OAAO,gBAAgB,IAAI,IAAI,IAAI,IAAI,CAAC,cAAc,YAAY,GAAG,CAAC;AAC1E,CAAC;AAGM,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAA7B;QAMH,aAAQ,GAAG,CAAC,CAAC;IAqCjB,CAAC;IAnCG,SAAS,CAAC,QAAiC,EAAE,UAAwB;QACjE,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/C,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,GAAG,IAA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,CACT,CAAC;IACN,CAAC;IAES,aAAa;QACnB,OAAO,CACH,eAAK,SAAS,EAAC,iBAAiB,aAC5B,uBAAK,GAAG,CAAC,iBAAiB,CAAC,SAAS,CAAC,GAAM,EAC1C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CACvB,0BACK,MAAM,CAAC,IAAI,IAAI,uBAAK,GAAG,CAAC,QAAQ,CAAC,4CAA4C,EAAE,oBAAoB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAM,EACxH,YAAG,IAAI,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,YACzD,MAAM,CAAC,GAAG,GACX,EACJ,wBACK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,GACvC,KAPA,MAAM,CAAC,OAAO,CAQlB,CAAC,IACT,CACT,CAAC;IACN,CAAC;IAED,IAAI,KAAK;QACL,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2024 EclipseSource GmbH.
|
|
4
3
|
//
|
|
@@ -14,24 +13,23 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
bind(
|
|
30
|
-
bind(
|
|
31
|
-
bind(
|
|
32
|
-
bind(
|
|
33
|
-
bind(
|
|
34
|
-
bind(
|
|
35
|
-
bind(change_set_decorator_service_1.ChangeSetDecorator).toService(change_set_scan_decorator_1.ChangeSetScanDecorator);
|
|
16
|
+
import '../../src/browser/style/index.css';
|
|
17
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
+
import { AIScanOSSPreferencesSchema } from '../common/ai-scanoss-preferences.js';
|
|
19
|
+
import { ScanOSSScanButtonAction } from './ai-scanoss-code-scan-action.js';
|
|
20
|
+
import { CodePartRendererAction } from '@theia/ai-chat-ui/lib/browser/chat-response-renderer';
|
|
21
|
+
import { ChangeSetActionRenderer } from '@theia/ai-chat-ui/lib/browser/change-set-actions/change-set-action-service';
|
|
22
|
+
import { ChangeSetScanActionRenderer } from './change-set-scan-action/change-set-scan-action.js';
|
|
23
|
+
import { ChangeSetDecorator } from '@theia/ai-chat/lib/browser/change-set-decorator-service';
|
|
24
|
+
import { ChangeSetScanDecorator } from './change-set-scan-action/change-set-scan-decorator.js';
|
|
25
|
+
import { PreferenceContribution } from '@theia/core';
|
|
26
|
+
export default new ContainerModule(bind => {
|
|
27
|
+
bind(PreferenceContribution).toConstantValue({ schema: AIScanOSSPreferencesSchema });
|
|
28
|
+
bind(ScanOSSScanButtonAction).toSelf().inSingletonScope();
|
|
29
|
+
bind(CodePartRendererAction).toService(ScanOSSScanButtonAction);
|
|
30
|
+
bind(ChangeSetScanActionRenderer).toSelf();
|
|
31
|
+
bind(ChangeSetActionRenderer).toService(ChangeSetScanActionRenderer);
|
|
32
|
+
bind(ChangeSetScanDecorator).toSelf().inSingletonScope();
|
|
33
|
+
bind(ChangeSetDecorator).toService(ChangeSetScanDecorator);
|
|
36
34
|
});
|
|
37
35
|
//# sourceMappingURL=ai-scanoss-frontend-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-scanoss-frontend-module.js","sourceRoot":"","sources":["../../src/browser/ai-scanoss-frontend-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai-scanoss-frontend-module.js","sourceRoot":"","sources":["../../src/browser/ai-scanoss-frontend-module.ts"],"names":[],"mappings":"AAA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AAkB,CAAC,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;AAC/D,CAAC,CAAC,CAAC"}
|
|
@@ -4,10 +4,10 @@ import { ChangeSetActionRenderer } from '@theia/ai-chat-ui/lib/browser/change-se
|
|
|
4
4
|
import { PreferenceService } from '@theia/core/lib/common/preferences';
|
|
5
5
|
import { ScanOSSService, ScanOSSResult } from '@theia/scanoss';
|
|
6
6
|
import { ChangeSetFileElement } from '@theia/ai-chat/lib/browser/change-set-file-element';
|
|
7
|
-
import { IDocumentDiffProvider } from '@theia/monaco-editor-core/esm/vs/editor/common/diff/documentDiffProvider';
|
|
7
|
+
import { IDocumentDiffProvider } from '@theia/monaco-editor-core/esm/vs/editor/common/diff/documentDiffProvider.js';
|
|
8
8
|
import { MonacoTextModelService } from '@theia/monaco/lib/browser/monaco-text-model-service';
|
|
9
9
|
import { Emitter, MessageService } from '@theia/core';
|
|
10
|
-
import { ChangeSetScanDecorator } from './change-set-scan-decorator';
|
|
10
|
+
import { ChangeSetScanDecorator } from './change-set-scan-decorator.js';
|
|
11
11
|
import { AIActivationService } from '@theia/ai-core/lib/browser';
|
|
12
12
|
export declare class ChangeSetScanActionRenderer implements ChangeSetActionRenderer {
|
|
13
13
|
readonly id = "change-set-scanoss";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-set-scan-action.d.ts","sourceRoot":"","sources":["../../../src/browser/change-set-scan-action/change-set-scan-action.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4EAA4E,CAAC;AACrH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAsB,MAAM,gBAAgB,CAAC;AAGnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,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AsB,EAAE,sBAAsB,CAAC;IAGlE,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,mBAAmB,CAAC;IAE1D,SAAS,CAAC,MAAM,EAAE,qBAAqB,CAAC;IAGxC,IAAI,IAAI,IAAI;IAMZ,SAAS,IAAI,OAAO;IAIpB,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,KAAK,CAAC,SAAS;IAW7C,SAAS,CAAC,mBAAmB,IAAI,MAAM;IAIvC,SAAS,CAAC,KAAK,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,KAAK,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;cAErE,OAAO,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,aAAa,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;cA2BvI,cAAc,CAAC,UAAU,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;CA+BpF"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ChangeSetScanActionRenderer = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@theia/core/shared/react/jsx-runtime";
|
|
6
3
|
// *****************************************************************************
|
|
7
4
|
// Copyright (C) 2025 EclipseSource GmbH and others.
|
|
8
5
|
//
|
|
@@ -18,43 +15,43 @@ const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
|
18
15
|
//
|
|
19
16
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
20
17
|
// *****************************************************************************
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
import * as React from '@theia/core/shared/react';
|
|
19
|
+
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
20
|
+
import { PreferenceService } from '@theia/core/lib/common/preferences';
|
|
21
|
+
import { ScanOSSService } from '@theia/scanoss';
|
|
22
|
+
import { SCANOSS_MODE_PREF } from '../../common/ai-scanoss-preferences.js';
|
|
23
|
+
import { SCAN_OSS_API_KEY_PREF } from '@theia/scanoss/lib/common/scanoss-preferences';
|
|
24
|
+
import { ChangeSetFileElement } from '@theia/ai-chat/lib/browser/change-set-file-element';
|
|
25
|
+
import { ScanOSSDialog } from '../ai-scanoss-code-scan-action.js';
|
|
26
|
+
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
27
|
+
import { IDiffProviderFactoryService } from '@theia/monaco-editor-core/esm/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js';
|
|
28
|
+
import { MonacoTextModelService } from '@theia/monaco/lib/browser/monaco-text-model-service';
|
|
29
|
+
import { CancellationToken, Emitter, MessageService, nls } from '@theia/core';
|
|
30
|
+
import { ChangeSetScanDecorator } from './change-set-scan-decorator.js';
|
|
31
|
+
import { AIActivationService } from '@theia/ai-core/lib/browser';
|
|
35
32
|
let ChangeSetScanActionRenderer = class ChangeSetScanActionRenderer {
|
|
36
33
|
constructor() {
|
|
37
34
|
this.id = 'change-set-scanoss';
|
|
38
35
|
this.priority = 10;
|
|
39
|
-
this.onDidChangeEmitter = new
|
|
36
|
+
this.onDidChangeEmitter = new Emitter();
|
|
40
37
|
this.onDidChange = this.onDidChangeEmitter.event;
|
|
41
38
|
}
|
|
42
39
|
init() {
|
|
43
|
-
this.differ =
|
|
40
|
+
this.differ = StandaloneServices.get(IDiffProviderFactoryService).createDiffProvider({ diffAlgorithm: 'advanced' });
|
|
44
41
|
this._scan = this.runScan.bind(this);
|
|
45
|
-
this.preferenceService.onPreferenceChanged(e => e.affects(
|
|
42
|
+
this.preferenceService.onPreferenceChanged(e => e.affects(SCANOSS_MODE_PREF) && this.onDidChangeEmitter.fire());
|
|
46
43
|
}
|
|
47
44
|
canRender() {
|
|
48
45
|
return this.activationService.isActive;
|
|
49
46
|
}
|
|
50
47
|
render(changeSet) {
|
|
51
|
-
return ((
|
|
48
|
+
return (_jsx(ChangeSetScanOSSIntegration, { changeSet: changeSet, decorator: this.scanChangeSetDecorator, scanOssMode: this.getPreferenceValues(), scanChangeSet: this._scan }));
|
|
52
49
|
}
|
|
53
50
|
getPreferenceValues() {
|
|
54
|
-
return this.preferenceService.get(
|
|
51
|
+
return this.preferenceService.get(SCANOSS_MODE_PREF, 'off');
|
|
55
52
|
}
|
|
56
53
|
async runScan(changeSetElements, cache, userTriggered) {
|
|
57
|
-
const apiKey = this.preferenceService.get(
|
|
54
|
+
const apiKey = this.preferenceService.get(SCAN_OSS_API_KEY_PREF);
|
|
58
55
|
let notifiedError = false;
|
|
59
56
|
const fileResults = await Promise.all(changeSetElements.map(async (fileChange) => {
|
|
60
57
|
if (fileChange.targetState.trim().length === 0) {
|
|
@@ -74,7 +71,7 @@ let ChangeSetScanActionRenderer = class ChangeSetScanActionRenderer {
|
|
|
74
71
|
}
|
|
75
72
|
else if (!notifiedError && userTriggered) {
|
|
76
73
|
notifiedError = true;
|
|
77
|
-
this.messageService.warn(
|
|
74
|
+
this.messageService.warn(nls.localize('theia/ai/scanoss/changeSet/error-notification', 'ScanOSS error encountered: {0}.', result.message));
|
|
78
75
|
}
|
|
79
76
|
return result;
|
|
80
77
|
}));
|
|
@@ -89,7 +86,7 @@ let ChangeSetScanActionRenderer = class ChangeSetScanActionRenderer {
|
|
|
89
86
|
this.textModelService.createModelReference(fileChange.changedUri)
|
|
90
87
|
]);
|
|
91
88
|
const [original, changed] = textModels;
|
|
92
|
-
const diff = await this.differ.computeDiff(original.object.textEditorModel, changed.object.textEditorModel, { maxComputationTimeMs: 5000, computeMoves: false, ignoreTrimWhitespace: true },
|
|
89
|
+
const diff = await this.differ.computeDiff(original.object.textEditorModel, changed.object.textEditorModel, { maxComputationTimeMs: 5000, computeMoves: false, ignoreTrimWhitespace: true }, CancellationToken.None);
|
|
93
90
|
if (diff.identical) {
|
|
94
91
|
return '';
|
|
95
92
|
}
|
|
@@ -105,44 +102,35 @@ let ChangeSetScanActionRenderer = class ChangeSetScanActionRenderer {
|
|
|
105
102
|
return changedLinesInSuggestion.trim();
|
|
106
103
|
}
|
|
107
104
|
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
(0, inversify_1.inject)(scanoss_1.ScanOSSService),
|
|
111
|
-
tslib_1.__metadata("design:type", Object)
|
|
105
|
+
__decorate([
|
|
106
|
+
inject(ScanOSSService)
|
|
112
107
|
], ChangeSetScanActionRenderer.prototype, "scanService", void 0);
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
tslib_1.__metadata("design:type", Object)
|
|
108
|
+
__decorate([
|
|
109
|
+
inject(PreferenceService)
|
|
116
110
|
], ChangeSetScanActionRenderer.prototype, "preferenceService", void 0);
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
tslib_1.__metadata("design:type", monaco_text_model_service_1.MonacoTextModelService)
|
|
111
|
+
__decorate([
|
|
112
|
+
inject(MonacoTextModelService)
|
|
120
113
|
], ChangeSetScanActionRenderer.prototype, "textModelService", void 0);
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
tslib_1.__metadata("design:type", core_1.MessageService)
|
|
114
|
+
__decorate([
|
|
115
|
+
inject(MessageService)
|
|
124
116
|
], ChangeSetScanActionRenderer.prototype, "messageService", void 0);
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
tslib_1.__metadata("design:type", change_set_scan_decorator_1.ChangeSetScanDecorator)
|
|
117
|
+
__decorate([
|
|
118
|
+
inject(ChangeSetScanDecorator)
|
|
128
119
|
], ChangeSetScanActionRenderer.prototype, "scanChangeSetDecorator", void 0);
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
tslib_1.__metadata("design:type", Object)
|
|
120
|
+
__decorate([
|
|
121
|
+
inject(AIActivationService)
|
|
132
122
|
], ChangeSetScanActionRenderer.prototype, "activationService", void 0);
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
tslib_1.__metadata("design:type", Function),
|
|
136
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
137
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
123
|
+
__decorate([
|
|
124
|
+
postConstruct()
|
|
138
125
|
], ChangeSetScanActionRenderer.prototype, "init", null);
|
|
139
|
-
|
|
140
|
-
|
|
126
|
+
ChangeSetScanActionRenderer = __decorate([
|
|
127
|
+
injectable()
|
|
141
128
|
], ChangeSetScanActionRenderer);
|
|
129
|
+
export { ChangeSetScanActionRenderer };
|
|
142
130
|
const ChangeSetScanOSSIntegration = React.memo(({ changeSet, decorator, scanOssMode, scanChangeSet }) => {
|
|
143
131
|
const [scanOSSResult, setScanOSSResult] = React.useState(undefined);
|
|
144
132
|
const cache = React.useRef(new Map());
|
|
145
|
-
const [changeSetElements, setChangeSetElements] = React.useState(() => changeSet.getElements().filter(candidate => candidate instanceof
|
|
133
|
+
const [changeSetElements, setChangeSetElements] = React.useState(() => changeSet.getElements().filter(candidate => candidate instanceof ChangeSetFileElement));
|
|
146
134
|
React.useEffect(() => {
|
|
147
135
|
if (scanOSSResult === undefined) {
|
|
148
136
|
if (scanOssMode === 'automatic' && scanOSSResult === undefined) {
|
|
@@ -160,7 +148,7 @@ const ChangeSetScanOSSIntegration = React.memo(({ changeSet, decorator, scanOssM
|
|
|
160
148
|
}, [decorator, scanOSSResult]);
|
|
161
149
|
React.useEffect(() => {
|
|
162
150
|
const disposable = changeSet.onDidChange(() => {
|
|
163
|
-
setChangeSetElements(changeSet.getElements().filter(candidate => candidate instanceof
|
|
151
|
+
setChangeSetElements(changeSet.getElements().filter(candidate => candidate instanceof ChangeSetFileElement));
|
|
164
152
|
setScanOSSResult(undefined);
|
|
165
153
|
});
|
|
166
154
|
return () => disposable.dispose();
|
|
@@ -178,7 +166,7 @@ const ChangeSetScanOSSIntegration = React.memo(({ changeSet, decorator, scanOssM
|
|
|
178
166
|
if (matches.length === 0) {
|
|
179
167
|
return;
|
|
180
168
|
}
|
|
181
|
-
const dialog = new
|
|
169
|
+
const dialog = new ScanOSSDialog(matches);
|
|
182
170
|
dialog.open();
|
|
183
171
|
}
|
|
184
172
|
}, [scanOSSResult, changeSetElements]);
|
|
@@ -190,14 +178,14 @@ const ChangeSetScanOSSIntegration = React.memo(({ changeSet, decorator, scanOssM
|
|
|
190
178
|
return undefined;
|
|
191
179
|
}
|
|
192
180
|
else if (state === 'clean' || state === 'pending') {
|
|
193
|
-
return (
|
|
181
|
+
return _jsx("div", { className: 'theia-changeSet-scanOss readonly', children: _jsx("div", { className: `scanoss-icon icon-container ${state === 'pending'
|
|
194
182
|
? 'pending'
|
|
195
183
|
: state
|
|
196
184
|
? state
|
|
197
185
|
: ''}`, title: title, children: icon }) });
|
|
198
186
|
}
|
|
199
187
|
else {
|
|
200
|
-
return (
|
|
188
|
+
return _jsxs("button", { className: `theia-button secondary theia-changeSet-scanOss ${state}`, title: title, onClick: scanOSSClicked, children: [_jsx("div", { className: `scanoss-icon icon-container ${state}`, title: title, children: icon }), content] });
|
|
201
189
|
}
|
|
202
190
|
});
|
|
203
191
|
function getResult(scanOSSResult) {
|
|
@@ -211,11 +199,11 @@ function getResult(scanOSSResult) {
|
|
|
211
199
|
}
|
|
212
200
|
function getTitle(result) {
|
|
213
201
|
switch (result) {
|
|
214
|
-
case 'none': return
|
|
215
|
-
case 'pending': return
|
|
216
|
-
case 'error': return
|
|
217
|
-
case 'match': return
|
|
218
|
-
case 'clean': return
|
|
202
|
+
case 'none': return nls.localize('theia/ai/scanoss/changeSet/scan', 'Scan');
|
|
203
|
+
case 'pending': return nls.localize('theia/ai/scanoss/changeSet/scanning', 'Scanning...');
|
|
204
|
+
case 'error': return nls.localize('theia/ai/scanoss/changeSet/error', 'Error: Rerun');
|
|
205
|
+
case 'match': return nls.localize('theia/ai/scanoss/changeSet/match', 'View Matches');
|
|
206
|
+
case 'clean': return nls.localize('theia/ai/scanoss/changeSet/clean', 'No Matches');
|
|
219
207
|
default: return '';
|
|
220
208
|
}
|
|
221
209
|
}
|
|
@@ -228,8 +216,8 @@ function getContent(result) {
|
|
|
228
216
|
}
|
|
229
217
|
function getIcon(result) {
|
|
230
218
|
switch (result) {
|
|
231
|
-
case 'clean': return ((
|
|
232
|
-
case 'match': return ((
|
|
219
|
+
case 'clean': return (_jsx("span", { className: "status-icon", children: _jsx("span", { className: "codicon codicon-pass-filled" }) }));
|
|
220
|
+
case 'match': return (_jsx("span", { className: "status-icon", children: _jsx("span", { className: "codicon codicon-warning" }) }));
|
|
233
221
|
default: return undefined;
|
|
234
222
|
}
|
|
235
223
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-set-scan-action.js","sourceRoot":"","sources":["../../../src/browser/change-set-scan-action/change-set-scan-action.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"change-set-scan-action.js","sourceRoot":"","sources":["../../../src/browser/change-set-scan-action/change-set-scan-action.tsx"],"names":[],"mappings":";;AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAEjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAqC,MAAM,gBAAgB,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6BAA6B,GAAG,GAC7C,CAAC,CAAC;QACT,KAAK,OAAO,CAAC,CAAC,OAAO,CAAC,eAAM,SAAS,EAAC,aAAa,YAC/C,eAAM,SAAS,EAAC,yBAAyB,GAAG,GACzC,CAAC,CAAC;QACT,OAAO,CAAC,CAAC,OAAO,SAAS,CAAC;IAC9B,CAAC;AACL,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2025 EclipseSource GmbH and others.
|
|
4
3
|
//
|
|
@@ -14,15 +13,13 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const core_1 = require("@theia/core");
|
|
21
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { Emitter } from '@theia/core';
|
|
18
|
+
import { injectable } from '@theia/core/shared/inversify';
|
|
22
19
|
let ChangeSetScanDecorator = class ChangeSetScanDecorator {
|
|
23
20
|
constructor() {
|
|
24
21
|
this.id = 'thei-change-set-scanoss-decorator';
|
|
25
|
-
this.emitter = new
|
|
22
|
+
this.emitter = new Emitter();
|
|
26
23
|
this.onDidChangeDecorations = this.emitter.event;
|
|
27
24
|
this.scanResult = [];
|
|
28
25
|
}
|
|
@@ -45,8 +42,8 @@ let ChangeSetScanDecorator = class ChangeSetScanDecorator {
|
|
|
45
42
|
return undefined;
|
|
46
43
|
}
|
|
47
44
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
(0, inversify_1.injectable)()
|
|
45
|
+
ChangeSetScanDecorator = __decorate([
|
|
46
|
+
injectable()
|
|
51
47
|
], ChangeSetScanDecorator);
|
|
48
|
+
export { ChangeSetScanDecorator };
|
|
52
49
|
//# sourceMappingURL=change-set-scan-decorator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-set-scan-decorator.js","sourceRoot":"","sources":["../../../src/browser/change-set-scan-action/change-set-scan-decorator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"change-set-scan-decorator.js","sourceRoot":"","sources":["../../../src/browser/change-set-scan-action/change-set-scan-decorator.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAIhF,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAInD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAA5B;QACM,OAAE,GAAG,mCAAmC,CAAC;QAE/B,YAAO,GAAG,IAAI,OAAO,EAAQ,CAAC;QACxC,2BAAsB,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;QAE3C,eAAU,GAAoB,EAAE,CAAC;IAwB/C,CAAC;IAtBG,aAAa,CAAC,OAAwB;QAClC,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC;QAC1B,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC;IAED,QAAQ,CAAC,OAAyB;QAC9B,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACxC,IAAI,MAAM,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;gBAC1B,OAAO,MAAM,CAAC,IAAI,KAAK,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACvD,CAAC;YACD,OAAO,KAAK,CAAC;QACjB,CAAC,CAAC,CAAC;QAEH,IAAI,KAAK,EAAE,CAAC;YACR,OAAO;gBACH,wBAAwB,EAAE,CAAC,8BAA8B,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,CAAC;aACpG,CAAC;QACN,CAAC;QAED,OAAO,SAAS,CAAC;IACrB,CAAC;CAEJ,CAAA;AA9BY,sBAAsB;IADlC,UAAU,EAAE;GACA,sBAAsB,CA8BlC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2024 EclipseSource GmbH.
|
|
4
3
|
//
|
|
@@ -14,25 +13,23 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
exports.SCANOSS_MODE_PREF = 'ai-features.SCANOSS.mode';
|
|
22
|
-
exports.AIScanOSSPreferencesSchema = {
|
|
16
|
+
import { AI_CORE_PREFERENCES_TITLE } from '@theia/ai-core/lib/common/ai-core-preferences';
|
|
17
|
+
import { nls } from '@theia/core';
|
|
18
|
+
export const SCANOSS_MODE_PREF = 'ai-features.SCANOSS.mode';
|
|
19
|
+
export const AIScanOSSPreferencesSchema = {
|
|
23
20
|
properties: {
|
|
24
|
-
[
|
|
21
|
+
[SCANOSS_MODE_PREF]: {
|
|
25
22
|
type: 'string',
|
|
26
23
|
enum: ['off', 'manual', 'automatic'],
|
|
27
24
|
markdownEnumDescriptions: [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
nls.localize('theia/ai/scanoss/mode/off/description', 'Feature is turned off completely.'),
|
|
26
|
+
nls.localize('theia/ai/scanoss/mode/manual/description', 'User can manually trigger the scan by clicking the SCANOSS item in the chat view.'),
|
|
27
|
+
nls.localize('theia/ai/scanoss/mode/automatic/description', 'Enable automatic scan of code snippets in chat views.')
|
|
31
28
|
],
|
|
32
|
-
markdownDescription:
|
|
29
|
+
markdownDescription: nls.localize('theia/ai/scanoss/mode/description', 'Configure the SCANOSS feature for analyzing code snippets in chat views. This will send a hash of suggested code snippets to the SCANOSS\n\
|
|
33
30
|
service hosted by the [Software Transparency foundation](https://www.softwaretransparency.org/osskb) for analysis.'),
|
|
34
31
|
default: 'off',
|
|
35
|
-
title:
|
|
32
|
+
title: AI_CORE_PREFERENCES_TITLE
|
|
36
33
|
}
|
|
37
34
|
}
|
|
38
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-scanoss-preferences.js","sourceRoot":"","sources":["../../src/common/ai-scanoss-preferences.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai-scanoss-preferences.js","sourceRoot":"","sources":["../../src/common/ai-scanoss-preferences.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,EAAE,GAAG,EAAoB,MAAM,aAAa,CAAC;AAEpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,0BAA0B,CAAC;AAE5D,MAAM,CAAC,MAAM,0BAA0B,GAAqB;IACxD,UAAU,EAAE;QACR,CAAC,iBAAiB,CAAC,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,WAAW,CAAC;YACpC,wBAAwB,EAAE;gBACtB,GAAG,CAAC,QAAQ,CAAC,uCAAuC,EAAE,mCAAmC,CAAC;gBAC1F,GAAG,CAAC,QAAQ,CAAC,0CAA0C,EAAE,mFAAmF,CAAC;gBAC7I,GAAG,CAAC,QAAQ,CAAC,6CAA6C,EAAE,uDAAuD,CAAC;aACvH;YACD,mBAAmB,EAAE,GAAG,CAAC,QAAQ,CAAC,mCAAmC,EACjE;mHACmG,CAAC;YACxG,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,yBAAyB;SACnC;KACJ;CACJ,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2025 STMicroelectronics and others.
|
|
4
3
|
//
|
|
@@ -14,11 +13,10 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
bind(core_1.PreferenceContribution).toConstantValue({ schema: ai_scanoss_preferences_1.AIScanOSSPreferencesSchema });
|
|
16
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
17
|
+
import { AIScanOSSPreferencesSchema } from '../common/ai-scanoss-preferences.js';
|
|
18
|
+
import { PreferenceContribution } from '@theia/core';
|
|
19
|
+
export default new ContainerModule(bind => {
|
|
20
|
+
bind(PreferenceContribution).toConstantValue({ schema: AIScanOSSPreferencesSchema });
|
|
23
21
|
});
|
|
24
22
|
//# sourceMappingURL=ai-scanoss-backend-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-scanoss-backend-module.js","sourceRoot":"","sources":["../../src/node/ai-scanoss-backend-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai-scanoss-backend-module.js","sourceRoot":"","sources":["../../src/node/ai-scanoss-backend-module.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,sBAAsB,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,CAAC,CAAC;AACzF,CAAC,CAAC,CAAC"}
|
package/lib/package.spec.d.ts
CHANGED
package/lib/package.spec.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2024 EclipseSource GmbH and others.
|
|
4
3
|
//
|
|
@@ -24,4 +23,5 @@
|
|
|
24
23
|
describe('ai-scanoss package', () => {
|
|
25
24
|
it('support code coverage statistics', () => true);
|
|
26
25
|
});
|
|
26
|
+
export {};
|
|
27
27
|
//# sourceMappingURL=package.spec.js.map
|
package/lib/package.spec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF;;;;;;qBAMqB;AAErB,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAEhC,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/ai-scanoss",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.78.0-next.0+b0e3080cb",
|
|
4
4
|
"description": "Theia - SCANOSS AI Integration",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"dependencies": {
|
|
6
|
-
"@theia/ai-chat": "1.
|
|
7
|
-
"@theia/ai-chat-ui": "1.
|
|
8
|
-
"@theia/ai-core": "1.
|
|
9
|
-
"@theia/core": "1.
|
|
10
|
-
"@theia/monaco": "1.
|
|
7
|
+
"@theia/ai-chat": "1.78.0-next.0+b0e3080cb",
|
|
8
|
+
"@theia/ai-chat-ui": "1.78.0-next.0+b0e3080cb",
|
|
9
|
+
"@theia/ai-core": "1.78.0-next.0+b0e3080cb",
|
|
10
|
+
"@theia/core": "1.78.0-next.0+b0e3080cb",
|
|
11
|
+
"@theia/monaco": "1.78.0-next.0+b0e3080cb",
|
|
11
12
|
"@theia/monaco-editor-core": "1.108.201",
|
|
12
|
-
"@theia/scanoss": "1.
|
|
13
|
+
"@theia/scanoss": "1.78.0-next.0+b0e3080cb",
|
|
13
14
|
"tslib": "^2.8.1"
|
|
14
15
|
},
|
|
15
16
|
"publishConfig": {
|
|
@@ -38,6 +39,13 @@
|
|
|
38
39
|
"src"
|
|
39
40
|
],
|
|
40
41
|
"main": "lib/common",
|
|
42
|
+
"exports": {
|
|
43
|
+
"./package.json": "./package.json",
|
|
44
|
+
"./lib/*.json": "./lib/*.json",
|
|
45
|
+
"./lib/*.js": "./lib/*.js",
|
|
46
|
+
"./lib/*": "./lib/*.js",
|
|
47
|
+
"./*": "./*"
|
|
48
|
+
},
|
|
41
49
|
"scripts": {
|
|
42
50
|
"build": "theiaext build",
|
|
43
51
|
"clean": "theiaext clean",
|
|
@@ -47,10 +55,10 @@
|
|
|
47
55
|
"watch": "theiaext watch"
|
|
48
56
|
},
|
|
49
57
|
"devDependencies": {
|
|
50
|
-
"@theia/ext-scripts": "1.
|
|
58
|
+
"@theia/ext-scripts": "1.77.0"
|
|
51
59
|
},
|
|
52
60
|
"nyc": {
|
|
53
61
|
"extends": "../../configs/nyc.json"
|
|
54
62
|
},
|
|
55
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "b0e3080cb1b1fff5616555f1bf679834129da171"
|
|
56
64
|
}
|
|
@@ -27,7 +27,7 @@ import { ResponseNode } from '@theia/ai-chat-ui/lib/browser/chat-tree-view';
|
|
|
27
27
|
import * as React from '@theia/core/shared/react';
|
|
28
28
|
import { ReactDialog } from '@theia/core/lib/browser/dialogs/react-dialog';
|
|
29
29
|
import { SCAN_OSS_API_KEY_PREF } from '@theia/scanoss/lib/common/scanoss-preferences';
|
|
30
|
-
import { SCANOSS_MODE_PREF } from '../common/ai-scanoss-preferences';
|
|
30
|
+
import { SCANOSS_MODE_PREF } from '../common/ai-scanoss-preferences.js';
|
|
31
31
|
import { nls, PreferenceService } from '@theia/core';
|
|
32
32
|
|
|
33
33
|
// cached map of scanOSS results.
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
|
|
17
17
|
import '../../src/browser/style/index.css';
|
|
18
18
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
19
|
-
import { AIScanOSSPreferencesSchema } from '../common/ai-scanoss-preferences';
|
|
20
|
-
import { ScanOSSScanButtonAction } from './ai-scanoss-code-scan-action';
|
|
19
|
+
import { AIScanOSSPreferencesSchema } from '../common/ai-scanoss-preferences.js';
|
|
20
|
+
import { ScanOSSScanButtonAction } from './ai-scanoss-code-scan-action.js';
|
|
21
21
|
import { CodePartRendererAction } from '@theia/ai-chat-ui/lib/browser/chat-response-renderer';
|
|
22
22
|
import { ChangeSetActionRenderer } from '@theia/ai-chat-ui/lib/browser/change-set-actions/change-set-action-service';
|
|
23
|
-
import { ChangeSetScanActionRenderer } from './change-set-scan-action/change-set-scan-action';
|
|
23
|
+
import { ChangeSetScanActionRenderer } from './change-set-scan-action/change-set-scan-action.js';
|
|
24
24
|
import { ChangeSetDecorator } from '@theia/ai-chat/lib/browser/change-set-decorator-service';
|
|
25
|
-
import { ChangeSetScanDecorator } from './change-set-scan-action/change-set-scan-decorator';
|
|
25
|
+
import { ChangeSetScanDecorator } from './change-set-scan-action/change-set-scan-decorator.js';
|
|
26
26
|
import { PreferenceContribution } from '@theia/core';
|
|
27
27
|
|
|
28
28
|
export default new ContainerModule(bind => {
|
|
@@ -20,16 +20,16 @@ import { inject, injectable, postConstruct } from '@theia/core/shared/inversify'
|
|
|
20
20
|
import { ChangeSetActionRenderer } from '@theia/ai-chat-ui/lib/browser/change-set-actions/change-set-action-service';
|
|
21
21
|
import { PreferenceService } from '@theia/core/lib/common/preferences';
|
|
22
22
|
import { ScanOSSService, ScanOSSResult, ScanOSSResultMatch } from '@theia/scanoss';
|
|
23
|
-
import { SCANOSS_MODE_PREF } from '../../common/ai-scanoss-preferences';
|
|
23
|
+
import { SCANOSS_MODE_PREF } from '../../common/ai-scanoss-preferences.js';
|
|
24
24
|
import { SCAN_OSS_API_KEY_PREF } from '@theia/scanoss/lib/common/scanoss-preferences';
|
|
25
25
|
import { ChangeSetFileElement } from '@theia/ai-chat/lib/browser/change-set-file-element';
|
|
26
|
-
import { ScanOSSDialog } from '../ai-scanoss-code-scan-action';
|
|
27
|
-
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
|
28
|
-
import { IDiffProviderFactoryService } from '@theia/monaco-editor-core/esm/vs/editor/browser/widget/diffEditor/diffProviderFactoryService';
|
|
29
|
-
import { IDocumentDiffProvider } from '@theia/monaco-editor-core/esm/vs/editor/common/diff/documentDiffProvider';
|
|
26
|
+
import { ScanOSSDialog } from '../ai-scanoss-code-scan-action.js';
|
|
27
|
+
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
28
|
+
import { IDiffProviderFactoryService } from '@theia/monaco-editor-core/esm/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js';
|
|
29
|
+
import { IDocumentDiffProvider } from '@theia/monaco-editor-core/esm/vs/editor/common/diff/documentDiffProvider.js';
|
|
30
30
|
import { MonacoTextModelService } from '@theia/monaco/lib/browser/monaco-text-model-service';
|
|
31
31
|
import { CancellationToken, Emitter, MessageService, nls } from '@theia/core';
|
|
32
|
-
import { ChangeSetScanDecorator } from './change-set-scan-decorator';
|
|
32
|
+
import { ChangeSetScanDecorator } from './change-set-scan-decorator.js';
|
|
33
33
|
import { AIActivationService } from '@theia/ai-core/lib/browser';
|
|
34
34
|
|
|
35
35
|
type ScanOSSState = 'pending' | 'clean' | 'match' | 'error' | 'none';
|
|
@@ -91,7 +91,7 @@ export class ChangeSetScanActionRenderer implements ChangeSetActionRenderer {
|
|
|
91
91
|
protected _scan: (changeSetElements: ChangeSetElement[]) => Promise<ScanOSSResult[]>;
|
|
92
92
|
|
|
93
93
|
protected async runScan(changeSetElements: ChangeSetFileElement[], cache: Map<string, ScanOSSResult>, userTriggered: boolean): Promise<ScanOSSResult[]> {
|
|
94
|
-
const apiKey = this.preferenceService.get(SCAN_OSS_API_KEY_PREF
|
|
94
|
+
const apiKey = this.preferenceService.get<string>(SCAN_OSS_API_KEY_PREF);
|
|
95
95
|
let notifiedError = false;
|
|
96
96
|
const fileResults = await Promise.all(changeSetElements.map(async fileChange => {
|
|
97
97
|
if (fileChange.targetState.trim().length === 0) {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
-
import { AIScanOSSPreferencesSchema } from '../common/ai-scanoss-preferences';
|
|
18
|
+
import { AIScanOSSPreferencesSchema } from '../common/ai-scanoss-preferences.js';
|
|
19
19
|
import { PreferenceContribution } from '@theia/core';
|
|
20
20
|
|
|
21
21
|
export default new ContainerModule(bind => {
|