@codingame/monaco-vscode-chat-service-override 37.3.2 → 37.3.3
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 +4 -4
- package/session.js +4 -1
- package/vscode/src/vs/platform/agentHost/browser/nullWslRemoteAgentHostService.d.ts +20 -0
- package/vscode/src/vs/platform/agentHost/browser/nullWslRemoteAgentHostService.js +33 -0
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostActions.js +1 -1
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/wslAgentHost.contribution.d.ts +1 -1
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/wslAgentHost.contribution.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/wslRemoteAgentHost.service.d.ts +0 -51
- package/vscode/src/vs/platform/agentHost/common/wslRemoteAgentHost.service.js +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-chat-service-override",
|
|
3
|
-
"version": "37.3.
|
|
3
|
+
"version": "37.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - chat service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "37.3.
|
|
19
|
-
"@codingame/monaco-vscode-katex-common": "37.3.
|
|
20
|
-
"@codingame/monaco-vscode-xterm-common": "37.3.
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.3.3",
|
|
19
|
+
"@codingame/monaco-vscode-katex-common": "37.3.3",
|
|
20
|
+
"@codingame/monaco-vscode-xterm-common": "37.3.3"
|
|
21
21
|
},
|
|
22
22
|
"main": "index.js",
|
|
23
23
|
"module": "index.js",
|
package/session.js
CHANGED
|
@@ -19,6 +19,8 @@ import { IChatResponseFileChangesService } from '@codingame/monaco-vscode-api/vs
|
|
|
19
19
|
import { SessionsChatResponseFileChangesService } from './vscode/src/vs/sessions/contrib/chat/browser/sessionTurnChanges.js';
|
|
20
20
|
import { IChangesViewService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/changes/common/changesViewService.service';
|
|
21
21
|
import { ChangesViewService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/changes/browser/changesViewService';
|
|
22
|
+
import { NullWSLRemoteAgentHostService } from './vscode/src/vs/platform/agentHost/browser/nullWslRemoteAgentHostService.js';
|
|
23
|
+
import { IWSLRemoteAgentHostService } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/wslRemoteAgentHost.service';
|
|
22
24
|
import './vscode/src/vs/sessions/contrib/chat/browser/btwSlashCommand.contribution.js';
|
|
23
25
|
import './vscode/src/vs/sessions/contrib/chat/browser/chat.contribution.js';
|
|
24
26
|
import './vscode/src/vs/sessions/contrib/chat/browser/customizationsDebugLog.contribution.js';
|
|
@@ -49,7 +51,8 @@ function getServiceOverride({ defaultAccount } = {}) {
|
|
|
49
51
|
[IRemoteAgentHostService.toString()]: new SyncDescriptor(AgentsWindowRemoteAgentHostService, [], true),
|
|
50
52
|
[IAgentHostCustomizationService.toString()]: new SyncDescriptor(AgentHostCustomizationService, [], true),
|
|
51
53
|
[IChatResponseFileChangesService.toString()]: new SyncDescriptor(SessionsChatResponseFileChangesService, [], true),
|
|
52
|
-
[IChangesViewService.toString()]: new SyncDescriptor(ChangesViewService, [], true)
|
|
54
|
+
[IChangesViewService.toString()]: new SyncDescriptor(ChangesViewService, [], true),
|
|
55
|
+
[IWSLRemoteAgentHostService.toString()]: new SyncDescriptor(NullWSLRemoteAgentHostService, [], true)
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
58
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
+
import type { IWSLAgentHostConfig, IWSLAgentHostConnection, IWSLCachedDistro, IWSLConnectProgress, IWSLDistro } from "../common/wslRemoteAgentHost.js";
|
|
3
|
+
import { IWSLRemoteAgentHostService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/wslRemoteAgentHost.service";
|
|
4
|
+
/**
|
|
5
|
+
* Null implementation of {@link IWSLRemoteAgentHostService} for browser
|
|
6
|
+
* contexts where WSL is not available.
|
|
7
|
+
*/
|
|
8
|
+
export declare class NullWSLRemoteAgentHostService implements IWSLRemoteAgentHostService {
|
|
9
|
+
readonly _serviceBrand: undefined;
|
|
10
|
+
readonly onDidChangeConnections: Event<any>;
|
|
11
|
+
readonly onDidReportConnectProgress: Event<IWSLConnectProgress>;
|
|
12
|
+
readonly connections: readonly IWSLAgentHostConnection[];
|
|
13
|
+
isWSLAvailable(): Promise<boolean>;
|
|
14
|
+
listDistros(): Promise<IWSLDistro[]>;
|
|
15
|
+
listRunningDistros(): Promise<string[]>;
|
|
16
|
+
connect(_config: IWSLAgentHostConfig): Promise<IWSLAgentHostConnection>;
|
|
17
|
+
disconnect(_distro: string): Promise<void>;
|
|
18
|
+
reconnect(_distro: string, _name: string): Promise<IWSLAgentHostConnection>;
|
|
19
|
+
getCachedDistros(): readonly IWSLCachedDistro[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
3
|
+
|
|
4
|
+
class NullWSLRemoteAgentHostService {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.onDidChangeConnections = Event.None;
|
|
7
|
+
this.onDidReportConnectProgress = Event.None;
|
|
8
|
+
this.connections = [];
|
|
9
|
+
}
|
|
10
|
+
async isWSLAvailable() {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
async listDistros() {
|
|
14
|
+
return [];
|
|
15
|
+
}
|
|
16
|
+
async listRunningDistros() {
|
|
17
|
+
return [];
|
|
18
|
+
}
|
|
19
|
+
async connect(_config) {
|
|
20
|
+
throw ( new Error("WSL is not available on this platform."));
|
|
21
|
+
}
|
|
22
|
+
async disconnect(_distro) {
|
|
23
|
+
throw ( new Error("WSL is not available on this platform."));
|
|
24
|
+
}
|
|
25
|
+
async reconnect(_distro, _name) {
|
|
26
|
+
throw ( new Error("WSL is not available on this platform."));
|
|
27
|
+
}
|
|
28
|
+
getCachedDistros() {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { NullWSLRemoteAgentHostService };
|
package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostActions.js
CHANGED
|
@@ -27,7 +27,7 @@ import { ISSHRemoteAgentHostService } from '@codingame/monaco-vscode-api/vscode/
|
|
|
27
27
|
import { isTunnelHosted, TUNNEL_ADDRESS_PREFIX } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/tunnelAgentHost';
|
|
28
28
|
import { ITunnelAgentHostService } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/tunnelAgentHost.service';
|
|
29
29
|
import { WSL_INSTALL_DOCS_URL } from '../../../../../platform/agentHost/common/wslRemoteAgentHost.js';
|
|
30
|
-
import { IWSLRemoteAgentHostService } from '
|
|
30
|
+
import { IWSLRemoteAgentHostService } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/wslRemoteAgentHost.service';
|
|
31
31
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
32
32
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
33
33
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type IRemoteAgentHostEntry, RemoteAgentHostEntryType } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/remoteAgentHostService";
|
|
2
2
|
import { IRemoteAgentHostService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/remoteAgentHostService.service";
|
|
3
|
-
import { IWSLRemoteAgentHostService } from "
|
|
3
|
+
import { IWSLRemoteAgentHostService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/wslRemoteAgentHost.service";
|
|
4
4
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
5
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
6
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
@@ -6,7 +6,7 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
|
6
6
|
import { RemoteAgentHostEntryType, RemoteAgentHostsEnabledSettingId, getEntryAddress, RemoteAgentHostConnectionStatus, getEntryTypeConfig } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/remoteAgentHostService';
|
|
7
7
|
import { IRemoteAgentHostService } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/remoteAgentHostService.service';
|
|
8
8
|
import { WslAutoStartSettingId, WSL_ADDRESS_PREFIX } from '../../../../../platform/agentHost/common/wslRemoteAgentHost.js';
|
|
9
|
-
import { IWSLRemoteAgentHostService } from '
|
|
9
|
+
import { IWSLRemoteAgentHostService } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/wslRemoteAgentHost.service';
|
|
10
10
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
11
11
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
12
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/sessions/sessions.web.main.internal";
|
|
2
|
-
import { IRelayMessage } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/relayTransport";
|
|
3
|
-
import { IWSLConnectProgress, IWSLAgentHostConnection, IWSLDistro, IWSLAgentHostConfig, IWSLCachedDistro, type IWSLConnectResult } from "./wslRemoteAgentHost.js";
|
|
4
|
-
export declare const IWSLRemoteAgentHostService: import("@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation").ServiceIdentifier<IWSLRemoteAgentHostService>;
|
|
5
|
-
/**
|
|
6
|
-
* Manages WSL-bootstrapped connections to remote agent host processes.
|
|
7
|
-
*
|
|
8
|
-
* Each connection enters a WSL 2 distro, ensures the VS Code CLI is
|
|
9
|
-
* available inside the distro, starts `code agent-host`, and creates a
|
|
10
|
-
* stdio relay through the shared process.
|
|
11
|
-
*/
|
|
12
|
-
export interface IWSLRemoteAgentHostService {
|
|
13
|
-
readonly _serviceBrand: undefined;
|
|
14
|
-
readonly onDidChangeConnections: Event<void>;
|
|
15
|
-
readonly onDidReportConnectProgress: Event<IWSLConnectProgress>;
|
|
16
|
-
readonly connections: readonly IWSLAgentHostConnection[];
|
|
17
|
-
isWSLAvailable(): Promise<boolean>;
|
|
18
|
-
listDistros(): Promise<IWSLDistro[]>;
|
|
19
|
-
listRunningDistros(): Promise<string[]>;
|
|
20
|
-
connect(config: IWSLAgentHostConfig): Promise<IWSLAgentHostConnection>;
|
|
21
|
-
disconnect(distro: string): Promise<void>;
|
|
22
|
-
/** Reconnect a cached distro, optionally as an automatic recovery attempt. */
|
|
23
|
-
reconnect(distro: string, name: string, userInitiated?: boolean): Promise<IWSLAgentHostConnection>;
|
|
24
|
-
/**
|
|
25
|
-
* Distros the user has connected to, persisted across windows. Drives the
|
|
26
|
-
* remote agent host service's startup auto-connect. WSL connections
|
|
27
|
-
* themselves live in-memory, mirroring how tunnels are handled.
|
|
28
|
-
*/
|
|
29
|
-
getCachedDistros(): readonly IWSLCachedDistro[];
|
|
30
|
-
}
|
|
31
|
-
export declare const IWSLRemoteAgentHostMainService: import("@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation").ServiceIdentifier<IWSLRemoteAgentHostMainService>;
|
|
32
|
-
/**
|
|
33
|
-
* Main-process service that performs the actual WSL work. The renderer
|
|
34
|
-
* calls this over IPC; the renderer-side WSL connection factory owns protocol
|
|
35
|
-
* client creation and registration with {@link IRemoteAgentHostService}.
|
|
36
|
-
*/
|
|
37
|
-
export interface IWSLRemoteAgentHostMainService {
|
|
38
|
-
readonly _serviceBrand: undefined;
|
|
39
|
-
readonly onDidChangeConnections: Event<void>;
|
|
40
|
-
readonly onDidCloseConnection: Event<string>;
|
|
41
|
-
readonly onDidReportConnectProgress: Event<IWSLConnectProgress>;
|
|
42
|
-
readonly onDidRelayMessage: Event<IRelayMessage>;
|
|
43
|
-
readonly onDidRelayClose: Event<string>;
|
|
44
|
-
relaySend(connectionId: string, message: string): Promise<void>;
|
|
45
|
-
isWSLAvailable(): Promise<boolean>;
|
|
46
|
-
listDistros(): Promise<IWSLDistro[]>;
|
|
47
|
-
listRunningDistros(): Promise<string[]>;
|
|
48
|
-
connect(config: IWSLAgentHostConfig): Promise<IWSLConnectResult>;
|
|
49
|
-
disconnect(distro: string): Promise<void>;
|
|
50
|
-
reconnect(distro: string, name: string, remoteAgentHostCommand?: string, userInitiated?: boolean): Promise<IWSLConnectResult>;
|
|
51
|
-
}
|