@theia/ai-copilot 1.72.0-next.30 → 1.72.0-next.36

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":"copilot-auth-dialog-messages.d.ts","sourceRoot":"","sources":["../../src/browser/copilot-auth-dialog-messages.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,yBAAyB,eAAsC,CAAC;AAE7E;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC,oBAAoB;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,iFAAiF;IACjF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,yDAAyD;IACzD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAClC;AAED;;GAEG;AACH,eAAO,MAAM,oCAAoC,EAAE,yBAiBlD,CAAC"}
1
+ {"version":3,"file":"copilot-auth-dialog-messages.d.ts","sourceRoot":"","sources":["../../src/browser/copilot-auth-dialog-messages.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,yBAAyB,eAAsC,CAAC;AAE7E;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC,oBAAoB;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,iFAAiF;IACjF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,yDAAyD;IACzD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAClC;AAED;;GAEG;AACH,eAAO,MAAM,oCAAoC,EAAE,yBAkBlD,CAAC"}
@@ -17,6 +17,7 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.DEFAULT_COPILOT_AUTH_DIALOG_MESSAGES = exports.CopilotAuthDialogMessages = void 0;
19
19
  const core_1 = require("@theia/core");
20
+ const frontend_application_config_provider_1 = require("@theia/core/lib/browser/frontend-application-config-provider");
20
21
  exports.CopilotAuthDialogMessages = Symbol('CopilotAuthDialogMessages');
21
22
  /**
22
23
  * Default messages for the built-in Theia Copilot integration.
@@ -26,7 +27,7 @@ exports.DEFAULT_COPILOT_AUTH_DIALOG_MESSAGES = {
26
27
  return core_1.nls.localize('theia/ai/copilot/commands/signIn', 'Sign in to GitHub Copilot');
27
28
  },
28
29
  get instructions() {
29
- return core_1.nls.localize('theia/ai/copilot/auth/instructions', 'To authorize Theia to use GitHub Copilot, visit the URL below and enter the code:');
30
+ return core_1.nls.localize('theia/ai/copilot/auth/instructions', 'To authorize {0} to use GitHub Copilot, visit the URL below and enter the code:', frontend_application_config_provider_1.FrontendApplicationConfigProvider.get().applicationName);
30
31
  },
31
32
  get privacyNotice() {
32
33
  return core_1.nls.localize('theia/ai/copilot/auth/privacy', 'Theia is an open-source project. We only request access to your GitHub username ' +
@@ -1 +1 @@
1
- {"version":3,"file":"copilot-auth-dialog-messages.js","sourceRoot":"","sources":["../../src/browser/copilot-auth-dialog-messages.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,sCAAkC;AAErB,QAAA,yBAAyB,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAC;AAgB7E;;GAEG;AACU,QAAA,oCAAoC,GAA8B;IAC3E,IAAI,KAAK;QACL,OAAO,UAAG,CAAC,QAAQ,CAAC,kCAAkC,EAAE,2BAA2B,CAAC,CAAC;IACzF,CAAC;IACD,IAAI,YAAY;QACZ,OAAO,UAAG,CAAC,QAAQ,CACf,oCAAoC,EACpC,mFAAmF,CACtF,CAAC;IACN,CAAC;IACD,IAAI,aAAa;QACb,OAAO,UAAG,CAAC,QAAQ,CACf,+BAA+B,EAC/B,kFAAkF;YAClF,8EAA8E,CACjF,CAAC;IACN,CAAC;CACJ,CAAC"}
1
+ {"version":3,"file":"copilot-auth-dialog-messages.js","sourceRoot":"","sources":["../../src/browser/copilot-auth-dialog-messages.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,sCAAkC;AAClC,uHAAiH;AAEpG,QAAA,yBAAyB,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAC;AAgB7E;;GAEG;AACU,QAAA,oCAAoC,GAA8B;IAC3E,IAAI,KAAK;QACL,OAAO,UAAG,CAAC,QAAQ,CAAC,kCAAkC,EAAE,2BAA2B,CAAC,CAAC;IACzF,CAAC;IACD,IAAI,YAAY;QACZ,OAAO,UAAG,CAAC,QAAQ,CACf,oCAAoC,EACpC,iFAAiF,EACjF,wEAAiC,CAAC,GAAG,EAAE,CAAC,eAAe,CAC1D,CAAC;IACN,CAAC;IACD,IAAI,aAAa;QACb,OAAO,UAAG,CAAC,QAAQ,CACf,+BAA+B,EAC/B,kFAAkF;YAClF,8EAA8E,CACjF,CAAC;IACN,CAAC;CACJ,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@theia/ai-copilot",
3
- "version": "1.72.0-next.30+a67ba2fe7",
3
+ "version": "1.72.0-next.36+ab6645bb0",
4
4
  "description": "Theia - GitHub Copilot Integration",
5
5
  "dependencies": {
6
- "@theia/ai-core": "1.72.0-next.30+a67ba2fe7",
7
- "@theia/ai-openai": "1.72.0-next.30+a67ba2fe7",
8
- "@theia/core": "1.72.0-next.30+a67ba2fe7",
6
+ "@theia/ai-core": "1.72.0-next.36+ab6645bb0",
7
+ "@theia/ai-openai": "1.72.0-next.36+ab6645bb0",
8
+ "@theia/core": "1.72.0-next.36+ab6645bb0",
9
9
  "openai": "^6.35.0",
10
10
  "tslib": "^2.8.1"
11
11
  },
@@ -48,5 +48,5 @@
48
48
  "nyc": {
49
49
  "extends": "../../configs/nyc.json"
50
50
  },
51
- "gitHead": "a67ba2fe771f798785a36f009e32d39f134e3bed"
51
+ "gitHead": "ab6645bb0758bd1f8a83c3a2321d2bde6e9da370"
52
52
  }
@@ -15,6 +15,7 @@
15
15
  // *****************************************************************************
16
16
 
17
17
  import { nls } from '@theia/core';
18
+ import { FrontendApplicationConfigProvider } from '@theia/core/lib/browser/frontend-application-config-provider';
18
19
 
19
20
  export const CopilotAuthDialogMessages = Symbol('CopilotAuthDialogMessages');
20
21
 
@@ -42,7 +43,8 @@ export const DEFAULT_COPILOT_AUTH_DIALOG_MESSAGES: CopilotAuthDialogMessages = {
42
43
  get instructions(): string {
43
44
  return nls.localize(
44
45
  'theia/ai/copilot/auth/instructions',
45
- 'To authorize Theia to use GitHub Copilot, visit the URL below and enter the code:'
46
+ 'To authorize {0} to use GitHub Copilot, visit the URL below and enter the code:',
47
+ FrontendApplicationConfigProvider.get().applicationName
46
48
  );
47
49
  },
48
50
  get privacyNotice(): string {