@theia/ai-scanoss 1.58.3 → 1.59.0-next.62

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ai-scanoss-preferences.d.ts","sourceRoot":"","sources":["../../src/browser/ai-scanoss-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAGvE,eAAO,MAAM,iBAAiB,6BAA6B,CAAC;AAE5D,eAAO,MAAM,0BAA0B,EAAE,gBAiBxC,CAAC"}
1
+ {"version":3,"file":"ai-scanoss-preferences.d.ts","sourceRoot":"","sources":["../../src/browser/ai-scanoss-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAIvE,eAAO,MAAM,iBAAiB,6BAA6B,CAAC;AAE5D,eAAO,MAAM,0BAA0B,EAAE,gBAkBxC,CAAC"}
@@ -17,6 +17,7 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.AIScanOSSPreferencesSchema = exports.SCANOSS_MODE_PREF = void 0;
19
19
  const ai_core_preferences_1 = require("@theia/ai-core/lib/browser/ai-core-preferences");
20
+ const core_1 = require("@theia/core");
20
21
  exports.SCANOSS_MODE_PREF = 'ai-features.SCANOSS.mode';
21
22
  exports.AIScanOSSPreferencesSchema = {
22
23
  type: 'object',
@@ -25,12 +26,12 @@ exports.AIScanOSSPreferencesSchema = {
25
26
  type: 'string',
26
27
  enum: ['off', 'manual', 'automatic'],
27
28
  markdownEnumDescriptions: [
28
- 'Feature is turned off completely.',
29
- 'User can manually trigger the scan by clicking the SCANOSS item in the chat view.',
30
- 'Enable automatic scan of code snippets in chat views.'
29
+ core_1.nls.localize('theia/ai/scanoss/mode/off/description', 'Feature is turned off completely.'),
30
+ core_1.nls.localize('theia/ai/scanoss/mode/manual/description', 'User can manually trigger the scan by clicking the SCANOSS item in the chat view.'),
31
+ core_1.nls.localize('theia/ai/scanoss/mode/automatic/description', 'Enable automatic scan of code snippets in chat views.')
31
32
  ],
32
- markdownDescription: '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
- service hosted by the [Software Transparency foundation](https://www.softwaretransparency.org/osskb) for analysis.',
33
+ markdownDescription: core_1.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\
34
+ service hosted by the [Software Transparency foundation](https://www.softwaretransparency.org/osskb) for analysis.'),
34
35
  default: 'off',
35
36
  title: ai_core_preferences_1.AI_CORE_PREFERENCES_TITLE
36
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ai-scanoss-preferences.js","sourceRoot":"","sources":["../../src/browser/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;;;AAGhF,wFAA2F;AAE9E,QAAA,iBAAiB,GAAG,0BAA0B,CAAC;AAE/C,QAAA,0BAA0B,GAAqB;IACxD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,CAAC,yBAAiB,CAAC,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,WAAW,CAAC;YACpC,wBAAwB,EAAE;gBACtB,mCAAmC;gBACnC,mFAAmF;gBACnF,uDAAuD;aAC1D;YACD,mBAAmB,EAAE;+HAC8F;YACnH,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,+CAAyB;SACnC;KACJ;CACJ,CAAC"}
1
+ {"version":3,"file":"ai-scanoss-preferences.js","sourceRoot":"","sources":["../../src/browser/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;;;AAGhF,wFAA2F;AAC3F,sCAAkC;AAErB,QAAA,iBAAiB,GAAG,0BAA0B,CAAC;AAE/C,QAAA,0BAA0B,GAAqB;IACxD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,CAAC,yBAAiB,CAAC,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,WAAW,CAAC;YACpC,wBAAwB,EAAE;gBACtB,UAAG,CAAC,QAAQ,CAAC,uCAAuC,EAAE,mCAAmC,CAAC;gBAC1F,UAAG,CAAC,QAAQ,CAAC,0CAA0C,EAAE,mFAAmF,CAAC;gBAC7I,UAAG,CAAC,QAAQ,CAAC,6CAA6C,EAAE,uDAAuD,CAAC;aACvH;YACD,mBAAmB,EAAE,UAAG,CAAC,QAAQ,CAAC,mCAAmC,EACjE;mHACmG,CAAC;YACxG,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,+CAAyB;SACnC;KACJ;CACJ,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@theia/ai-scanoss",
3
- "version": "1.58.3",
3
+ "version": "1.59.0-next.62+9e43c93ad",
4
4
  "description": "Theia - SCANOSS AI Integration",
5
5
  "dependencies": {
6
- "@theia/ai-chat": "1.58.3",
7
- "@theia/ai-chat-ui": "1.58.3",
8
- "@theia/ai-core": "1.58.3",
9
- "@theia/core": "1.58.3",
10
- "@theia/scanoss": "1.58.3"
6
+ "@theia/ai-chat": "1.59.0-next.62+9e43c93ad",
7
+ "@theia/ai-chat-ui": "1.59.0-next.62+9e43c93ad",
8
+ "@theia/ai-core": "1.59.0-next.62+9e43c93ad",
9
+ "@theia/core": "1.59.0-next.62+9e43c93ad",
10
+ "@theia/scanoss": "1.59.0-next.62+9e43c93ad"
11
11
  },
12
12
  "publishConfig": {
13
13
  "access": "public"
@@ -43,10 +43,10 @@
43
43
  "watch": "theiaext watch"
44
44
  },
45
45
  "devDependencies": {
46
- "@theia/ext-scripts": "1.58.3"
46
+ "@theia/ext-scripts": "1.58.0"
47
47
  },
48
48
  "nyc": {
49
49
  "extends": "../../configs/nyc.json"
50
50
  },
51
- "gitHead": "ca70c15332f91e0f61b12cd147b5ff8326e2e6d2"
51
+ "gitHead": "9e43c93ad61ea977db3974207bac5d7c1fd3ccd6"
52
52
  }
@@ -16,6 +16,7 @@
16
16
 
17
17
  import { PreferenceSchema } from '@theia/core/lib/browser/preferences';
18
18
  import { AI_CORE_PREFERENCES_TITLE } from '@theia/ai-core/lib/browser/ai-core-preferences';
19
+ import { nls } from '@theia/core';
19
20
 
20
21
  export const SCANOSS_MODE_PREF = 'ai-features.SCANOSS.mode';
21
22
 
@@ -26,12 +27,13 @@ export const AIScanOSSPreferencesSchema: PreferenceSchema = {
26
27
  type: 'string',
27
28
  enum: ['off', 'manual', 'automatic'],
28
29
  markdownEnumDescriptions: [
29
- 'Feature is turned off completely.',
30
- 'User can manually trigger the scan by clicking the SCANOSS item in the chat view.',
31
- 'Enable automatic scan of code snippets in chat views.'
30
+ nls.localize('theia/ai/scanoss/mode/off/description', 'Feature is turned off completely.'),
31
+ nls.localize('theia/ai/scanoss/mode/manual/description', 'User can manually trigger the scan by clicking the SCANOSS item in the chat view.'),
32
+ nls.localize('theia/ai/scanoss/mode/automatic/description', 'Enable automatic scan of code snippets in chat views.')
32
33
  ],
33
- markdownDescription: 'Configure the SCANOSS feature for analyzing code snippets in chat views. This will send a hash of suggested code snippets to the SCANOSS\n\
34
- service hosted by the [Software Transparency foundation](https://www.softwaretransparency.org/osskb) for analysis.',
34
+ markdownDescription: nls.localize('theia/ai/scanoss/mode/description',
35
+ 'Configure the SCANOSS feature for analyzing code snippets in chat views. This will send a hash of suggested code snippets to the SCANOSS\n\
36
+ service hosted by the [Software Transparency foundation](https://www.softwaretransparency.org/osskb) for analysis.'),
35
37
  default: 'off',
36
38
  title: AI_CORE_PREFERENCES_TITLE
37
39
  }