@hasna/switcher 0.2.19 → 0.2.21
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/README.md +1 -1
- package/dist/claude-desktop.js +98 -96
- package/dist/claude-user-settings.d.ts +7 -2
- package/dist/cli/index.js +284 -95
- package/dist/harness-types.d.ts +6 -0
- package/dist/harnesses.d.ts +8 -0
- package/dist/index.js +159 -106
- package/dist/inference-gateway.d.ts +6 -0
- package/dist/launcher.d.ts +34 -0
- package/dist/mcp/index.js +166 -111
- package/dist/native-state.d.ts +11 -1
- package/dist/private-directory.d.ts +3 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/sdk.js +159 -106
- package/dist/serve/index.js +2 -2
- package/docs/GATEWAY-SERVICE.md +59 -10
- package/hasna.contract.json +1 -1
- package/openapi.json +1 -1
- package/package.json +2 -2
package/dist/harness-types.d.ts
CHANGED
|
@@ -30,6 +30,12 @@ export type HarnessLaunchInput = {
|
|
|
30
30
|
sharedState?: NativeState;
|
|
31
31
|
/** Hosts the launch's inference gateway; a per-launch listener when absent. */
|
|
32
32
|
gatewayHost?: GatewayHost;
|
|
33
|
+
/**
|
|
34
|
+
* Claude only: where to write the session's --settings file when its gateway token
|
|
35
|
+
* outlives the launch (see GatewayLease.routeSettingsFile). The file then carries the
|
|
36
|
+
* route in its env block, so a session the background host restarts keeps it.
|
|
37
|
+
*/
|
|
38
|
+
routeSettingsFile?: string;
|
|
33
39
|
};
|
|
34
40
|
export type PreparedLaunch = {
|
|
35
41
|
executable: string;
|
package/dist/harnesses.d.ts
CHANGED
|
@@ -16,6 +16,14 @@ export declare function detectHarness(harness: HarnessId, override?: string): Pr
|
|
|
16
16
|
}>;
|
|
17
17
|
export declare function validateHarnessConfiguration(harness: HarnessId, cwd: string, args?: readonly string[]): Promise<void>;
|
|
18
18
|
export declare function validateHarnessVersion(harness: HarnessId, version: string | undefined): void;
|
|
19
|
+
/**
|
|
20
|
+
* A JSON file named by its content and kept outside the launch's state directory. Claude
|
|
21
|
+
* Code's background host replays a session's launch flags when it restarts the session,
|
|
22
|
+
* possibly long after the launch ended, so a file named in those flags must outlive it.
|
|
23
|
+
* An existing file is reused only when it is this user's private regular file with exactly this content.
|
|
24
|
+
*/
|
|
25
|
+
/** The folder a Claude launch keeps its --settings file in, inside its session folder. */
|
|
26
|
+
export declare function claudeSettingsDirectory(sessionDir: string): string;
|
|
19
27
|
export declare function codexModel(model: HarnessLaunchInput["models"][number], priority: number, baseUrl?: string, selectedReasoning?: ReasoningEffort): {
|
|
20
28
|
slug: string;
|
|
21
29
|
display_name: string;
|