@hasna/switcher 0.2.18 → 0.2.20

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,12 +1,13 @@
1
1
  import { type ProviderInput } from "./domain";
2
2
  import type { ProviderRequestTiming } from "./provider-request";
3
- import { type EnvironmentDigestProbe, type ProcessReader } from "./process-table";
3
+ import { type ConnectionPeerLookup, type EnvironmentDigestProbe, type ProcessReader } from "./process-table";
4
4
  /** Version of the control protocol between `switcher launch` and the gateway service. */
5
5
  export declare const GATEWAY_PROTOCOL = 1;
6
6
  export type GatewayPaths = {
7
7
  root: string;
8
8
  socket: string;
9
9
  launches: string;
10
+ ended: string;
10
11
  config: string;
11
12
  log: string;
12
13
  };
@@ -43,6 +44,7 @@ export type GatewayServiceOptions = {
43
44
  supervisor?: string;
44
45
  processTable?: ProcessReader;
45
46
  environmentProbe?: EnvironmentDigestProbe;
47
+ connectionPeers?: ConnectionPeerLookup;
46
48
  now?: () => number;
47
49
  timing?: ProviderRequestTiming;
48
50
  log?: (line: string) => void;
@@ -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;