llm-cli-gateway 2.4.0 → 2.5.0

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/index.d.ts CHANGED
@@ -14,6 +14,7 @@ import { ClaudeMcpConfigResult, ClaudeMcpServerName } from "./claude-mcp-config.
14
14
  import { type MistralAgentMode, type ClaudePermissionMode, type CodexSandboxMode, type CodexAskForApproval, type ClaudeEffortLevel } from "./request-helpers.js";
15
15
  import { FlightRecorderLike } from "./flight-recorder.js";
16
16
  import { type PromptParts } from "./prompt-parts.js";
17
+ import { type WorkspaceRegistry } from "./workspace-registry.js";
17
18
  export interface WarningEntry {
18
19
  code: string;
19
20
  message?: string;
@@ -59,6 +60,7 @@ export declare const WORKTREE_SCHEMA: z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
59
60
  name?: string | undefined;
60
61
  ref?: string | undefined;
61
62
  }>]>;
63
+ export declare const WORKSPACE_ALIAS_SCHEMA: z.ZodString;
62
64
  export declare const SESSION_PROVIDER_VALUES: readonly ["claude", "codex", "gemini", "grok", "mistral", "grok-api"];
63
65
  export declare const SESSION_PROVIDER_ENUM: z.ZodEnum<["claude", "codex", "gemini", "grok", "mistral", "grok-api"]>;
64
66
  export type SessionProvider = ProviderType;
@@ -74,6 +76,7 @@ export interface GatewayServerDeps {
74
76
  persistence?: PersistenceConfig;
75
77
  cacheAwareness?: CacheAwarenessConfig;
76
78
  providers?: ProvidersConfig;
79
+ workspaces?: WorkspaceRegistry;
77
80
  }
78
81
  export interface GatewayServerRuntime {
79
82
  sessionManager: ISessionManager;
@@ -87,6 +90,7 @@ export interface GatewayServerRuntime {
87
90
  persistence: PersistenceConfig;
88
91
  cacheAwareness: CacheAwarenessConfig;
89
92
  providers: ProvidersConfig;
93
+ workspaces: WorkspaceRegistry;
90
94
  }
91
95
  export declare function resolveGatewayServerRuntime(deps?: GatewayServerDeps, options?: {
92
96
  isolateState?: boolean;
@@ -95,11 +99,17 @@ export declare function shouldRegisterGrokApiTools(providers: ProvidersConfig):
95
99
  export interface ResolvedWorktree {
96
100
  cwd?: string;
97
101
  worktreePath?: string;
102
+ workspaceAlias?: string;
103
+ workspaceRoot?: string;
98
104
  }
99
105
  export declare function resolveWorktreeForRequest(worktreeOpt: boolean | {
100
106
  name?: string;
101
107
  ref?: string;
102
- } | undefined, sessionId: string | undefined, runtime: GatewayServerRuntime): Promise<ResolvedWorktree>;
108
+ } | undefined, sessionId: string | undefined, runtime: GatewayServerRuntime, options?: {
109
+ repoRoot?: string;
110
+ workspaceAlias?: string;
111
+ workspaceRoot?: string;
112
+ }): Promise<ResolvedWorktree>;
103
113
  export declare function formatWorktreePrefix(worktreePath?: string): string;
104
114
  export declare function extractUsageAndCost(cli: "claude" | "codex" | "gemini" | "grok" | "mistral", output: string, outputFormat?: string, ctx?: {
105
115
  sessionId?: string;
@@ -330,6 +340,7 @@ export interface GeminiRequestParams {
330
340
  attachments?: string[];
331
341
  skipTrust?: boolean;
332
342
  yolo?: boolean;
343
+ workspace?: string;
333
344
  worktree?: boolean | {
334
345
  name?: string;
335
346
  ref?: string;
@@ -343,6 +354,7 @@ export interface HandlerDeps {
343
354
  error: (...args: any[]) => void;
344
355
  debug: (...args: any[]) => void;
345
356
  };
357
+ workspaces?: WorkspaceRegistry;
346
358
  runtime?: GatewayServerRuntime;
347
359
  }
348
360
  export interface AsyncHandlerDeps extends HandlerDeps {
@@ -400,6 +412,7 @@ export interface GrokRequestParams {
400
412
  restoreCode?: boolean;
401
413
  leaderSocket?: string;
402
414
  nativeWorktree?: boolean | string;
415
+ workspace?: string;
403
416
  worktree?: boolean | {
404
417
  name?: string;
405
418
  ref?: string;
@@ -432,6 +445,7 @@ export interface MistralRequestParams {
432
445
  maxTokens?: number;
433
446
  workingDir?: string;
434
447
  addDir?: string[];
448
+ workspace?: string;
435
449
  worktree?: boolean | {
436
450
  name?: string;
437
451
  ref?: string;
@@ -469,6 +483,7 @@ export declare function handleCodexRequestAsync(deps: AsyncHandlerDeps, params:
469
483
  ignoreRules?: boolean;
470
484
  workingDir?: string;
471
485
  addDir?: string[];
486
+ workspace?: string;
472
487
  worktree?: boolean | {
473
488
  name?: string;
474
489
  ref?: string;