@theia/ai-copilot 1.75.0-next.21 → 1.75.0-next.28

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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@theia/ai-copilot",
3
- "version": "1.75.0-next.21+fa058c354",
3
+ "version": "1.75.0-next.28+ba1005c0bf8",
4
4
  "description": "Theia - GitHub Copilot Integration",
5
5
  "dependencies": {
6
- "@theia/ai-core": "1.75.0-next.21+fa058c354",
7
- "@theia/ai-openai": "1.75.0-next.21+fa058c354",
8
- "@theia/core": "1.75.0-next.21+fa058c354",
6
+ "@theia/ai-core": "1.75.0-next.28+ba1005c0bf8",
7
+ "@theia/ai-openai": "1.75.0-next.28+ba1005c0bf8",
8
+ "@theia/core": "1.75.0-next.28+ba1005c0bf8",
9
9
  "openai": "^6.49.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": "fa058c354e5bfa630cb6766d042131cc8de8a7ff"
51
+ "gitHead": "ba1005c0bf87bd848c6ec51ce1b4e6bb06748e3c"
52
52
  }
@@ -1,19 +0,0 @@
1
- export declare const CopilotAuthDialogMessages: unique symbol;
2
- /**
3
- * Localizable messages displayed in the {@link CopilotAuthDialog}.
4
- * Bind this symbol to a custom value in your frontend container module to replace
5
- * any message that references "Theia" with your own application name.
6
- */
7
- export interface CopilotAuthDialogMessages {
8
- /** Dialog title. */
9
- readonly title: string;
10
- /** Instructions shown while waiting for the user to enter the code on GitHub. */
11
- readonly instructions: string;
12
- /** Privacy notice shown below the authorization code. */
13
- readonly privacyNotice: string;
14
- }
15
- /**
16
- * Default messages for the built-in Theia Copilot integration.
17
- */
18
- export declare const DEFAULT_COPILOT_AUTH_DIALOG_MESSAGES: CopilotAuthDialogMessages;
19
- //# sourceMappingURL=copilot-auth-dialog-messages.d.ts.map
@@ -1,48 +0,0 @@
1
- import * as React from '@theia/core/shared/react';
2
- import { DialogProps, DialogError } from '@theia/core/lib/browser/dialogs';
3
- import { ReactDialog } from '@theia/core/lib/browser/dialogs/react-dialog';
4
- import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
5
- import { WindowService } from '@theia/core/lib/browser/window/window-service';
6
- import { CommandService } from '@theia/core';
7
- import { CopilotAuthService, DeviceCodeResponse } from '../common/copilot-auth-service';
8
- import { CopilotAuthDialogMessages } from './copilot-auth-dialog-messages';
9
- type AuthDialogState = 'loading' | 'waiting' | 'polling' | 'success' | 'error';
10
- export declare class CopilotAuthDialogProps extends DialogProps {
11
- enterpriseUrl?: string;
12
- }
13
- export declare class CopilotAuthDialog extends ReactDialog<boolean> {
14
- protected readonly props: CopilotAuthDialogProps;
15
- protected readonly authService: CopilotAuthService;
16
- protected readonly clipboardService: ClipboardService;
17
- protected readonly windowService: WindowService;
18
- protected readonly commandService: CommandService;
19
- protected readonly messages: CopilotAuthDialogMessages;
20
- protected state: AuthDialogState;
21
- protected deviceCodeResponse?: DeviceCodeResponse;
22
- protected errorMessage?: string;
23
- protected copied: boolean;
24
- static readonly ID = "copilot-auth-dialog";
25
- constructor(props: CopilotAuthDialogProps);
26
- protected init(): void;
27
- protected updateButtonStates(): void;
28
- open(): Promise<boolean | undefined>;
29
- update(): void;
30
- protected initiateFlow(): Promise<void>;
31
- protected accept(): Promise<void>;
32
- get value(): boolean;
33
- protected isValid(_value: boolean, _mode: DialogError): DialogError;
34
- protected handleCopyCode: () => Promise<void>;
35
- protected handleOpenUrl: () => void;
36
- protected render(): React.ReactNode;
37
- protected renderContent(): React.ReactNode;
38
- protected renderLoading(): React.ReactNode;
39
- protected renderWaiting(): React.ReactNode;
40
- protected handleOpenTos: (e: React.MouseEvent) => void;
41
- protected renderPolling(): React.ReactNode;
42
- protected renderSuccess(): React.ReactNode;
43
- protected handleOpenAIConfig: (e: React.MouseEvent) => void;
44
- protected handleRetry: () => void;
45
- protected renderError(): React.ReactNode;
46
- }
47
- export {};
48
- //# sourceMappingURL=copilot-auth-dialog.d.ts.map
@@ -1,25 +0,0 @@
1
- import { Command, CommandContribution, CommandRegistry, Disposable, DisposableCollection, PreferenceService } from '@theia/core';
2
- import { AIActivationService } from '@theia/ai-core/lib/browser';
3
- import { CopilotAuthService, CopilotAuthState } from '../common/copilot-auth-service';
4
- import { CopilotAuthDialog, CopilotAuthDialogProps } from './copilot-auth-dialog';
5
- export declare namespace CopilotCommands {
6
- const SIGN_IN: Command;
7
- const SIGN_OUT: Command;
8
- }
9
- /**
10
- * Command contribution for GitHub Copilot authentication commands.
11
- */
12
- export declare class CopilotCommandContribution implements CommandContribution, Disposable {
13
- protected readonly authService: CopilotAuthService;
14
- protected readonly preferenceService: PreferenceService;
15
- protected readonly activationService: AIActivationService;
16
- protected readonly dialogProps: CopilotAuthDialogProps;
17
- protected readonly authDialog: CopilotAuthDialog;
18
- protected authState: CopilotAuthState;
19
- protected readonly toDispose: DisposableCollection;
20
- protected init(): void;
21
- dispose(): void;
22
- registerCommands(registry: CommandRegistry): void;
23
- protected isCopilotEnabled(): boolean;
24
- }
25
- //# sourceMappingURL=copilot-command-contribution.d.ts.map
@@ -1,5 +0,0 @@
1
- import '../../src/browser/style/index.css';
2
- import { ContainerModule } from '@theia/core/shared/inversify';
3
- declare const _default: ContainerModule;
4
- export default _default;
5
- //# sourceMappingURL=copilot-frontend-module.d.ts.map
@@ -1,21 +0,0 @@
1
- import { FrontendApplicationContribution } from '@theia/core/lib/browser';
2
- import { StatusBar } from '@theia/core/lib/browser/status-bar/status-bar-types';
3
- import { Disposable, DisposableCollection, PreferenceService } from '@theia/core';
4
- import { AIActivationService } from '@theia/ai-core/lib/browser';
5
- import { CopilotAuthService, CopilotAuthState } from '../common/copilot-auth-service';
6
- /**
7
- * Frontend contribution that displays GitHub Copilot authentication status in the status bar.
8
- */
9
- export declare class CopilotStatusBarContribution implements FrontendApplicationContribution, Disposable {
10
- protected readonly statusBar: StatusBar;
11
- protected readonly authService: CopilotAuthService;
12
- protected readonly activationService: AIActivationService;
13
- protected readonly preferenceService: PreferenceService;
14
- protected authState: CopilotAuthState;
15
- protected readonly toDispose: DisposableCollection;
16
- protected init(): void;
17
- dispose(): void;
18
- onStart(): void;
19
- protected updateStatusBar(): void;
20
- }
21
- //# sourceMappingURL=copilot-status-bar-contribution.d.ts.map
@@ -1,6 +0,0 @@
1
- export * from './copilot-auth-dialog';
2
- export * from './copilot-auth-dialog-messages';
3
- export * from './copilot-command-contribution';
4
- export * from './copilot-status-bar-contribution';
5
- export * from './copilot-frontend-application-contribution';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +0,0 @@
1
- import { ContainerModule } from '@theia/core/shared/inversify';
2
- declare const _default: ContainerModule;
3
- export default _default;
4
- //# sourceMappingURL=copilot-backend-module.d.ts.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=package.spec.d.ts.map