@hasna/switcher 0.2.11 → 0.2.12
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/dist/claude-desktop-gateway.d.ts +30 -0
- package/dist/claude-desktop-launch.d.ts +2 -3
- package/dist/claude-desktop-models.d.ts +2 -0
- package/dist/claude-desktop.d.ts +6 -0
- package/dist/claude-desktop.js +5007 -0
- package/dist/cli/index.js +367 -155
- package/dist/desktop-apps.d.ts +3 -0
- package/dist/desktop-selection.d.ts +20 -0
- package/dist/desktop-state.d.ts +11 -1
- package/dist/index.js +5362 -86
- package/dist/mcp/index.js +6315 -368
- package/dist/native-state.d.ts +2 -0
- package/dist/private-directory.d.ts +2 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/sdk.js +5362 -86
- package/dist/serve/index.js +2 -2
- package/docs/CLAUDE-DESKTOP-GATEWAY.md +69 -0
- package/hasna.contract.json +1 -1
- package/openapi.json +1 -1
- package/package.json +8 -3
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ClaudeDesktopInstallation } from "./desktop-apps";
|
|
2
|
+
export type ClaudeDesktopGatewayInput = {
|
|
3
|
+
gateway: {
|
|
4
|
+
url: string;
|
|
5
|
+
token: string;
|
|
6
|
+
};
|
|
7
|
+
codeConfigDir: string;
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
export type ClaudeDesktopGatewayLaunch = {
|
|
11
|
+
executable: string;
|
|
12
|
+
args: readonly string[];
|
|
13
|
+
env: Record<string, string>;
|
|
14
|
+
beforeLaunch(): Promise<void>;
|
|
15
|
+
cleanup(): Promise<void>;
|
|
16
|
+
};
|
|
17
|
+
type System = {
|
|
18
|
+
userData: string;
|
|
19
|
+
detect(): Promise<ClaudeDesktopInstallation>;
|
|
20
|
+
available(): Promise<void>;
|
|
21
|
+
fetch: typeof fetch;
|
|
22
|
+
};
|
|
23
|
+
/** Internal fixture seam. The public subpath exposes only the default methods. */
|
|
24
|
+
export declare function createClaudeDesktopGatewayApi(system?: System): {
|
|
25
|
+
preflightClaudeDesktopGateway(input: {
|
|
26
|
+
codeConfigDir: string;
|
|
27
|
+
}): Promise<void>;
|
|
28
|
+
prepareClaudeDesktopGatewayLaunch(input: ClaudeDesktopGatewayInput): Promise<ClaudeDesktopGatewayLaunch>;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ClaudeDesktopInstallation } from "./desktop-apps";
|
|
2
|
+
export { claudeDesktopDataDirectory } from "./desktop-apps";
|
|
2
3
|
import type { HarnessLaunchInput, PreparedLaunch } from "./harness-types";
|
|
3
|
-
export declare const claudeDesktopDataDirectory: () => string;
|
|
4
4
|
type DesktopSystem = {
|
|
5
5
|
userData: string;
|
|
6
6
|
assertAvailable: () => Promise<void>;
|
|
@@ -8,4 +8,3 @@ type DesktopSystem = {
|
|
|
8
8
|
/** Use the vendor-supported local configuration library, preserving the prior
|
|
9
9
|
* selection. The signed app rejects custom userData development overrides. */
|
|
10
10
|
export declare function prepareClaudeDesktopLaunch(input: HarnessLaunchInput, app: ClaudeDesktopInstallation, sessionDir: string, system?: DesktopSystem): Promise<PreparedLaunch>;
|
|
11
|
-
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ClaudeDesktopGatewayInput, type ClaudeDesktopGatewayLaunch } from "./claude-desktop-gateway";
|
|
2
|
+
export type { ClaudeDesktopGatewayInput, ClaudeDesktopGatewayLaunch } from "./claude-desktop-gateway";
|
|
3
|
+
export declare function preflightClaudeDesktopGateway(input: {
|
|
4
|
+
codeConfigDir: string;
|
|
5
|
+
}): Promise<void>;
|
|
6
|
+
export declare function prepareClaudeDesktopGatewayLaunch(input: ClaudeDesktopGatewayInput): Promise<ClaudeDesktopGatewayLaunch>;
|