@lmctl-ai/lmctl 0.2.27 → 0.2.28

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.
@@ -12,12 +12,3 @@ export declare function runChat(args: string[], io?: CliIo): Promise<number>;
12
12
  export declare function resolvePromptInput(promptFile: string, io: CliIo, stdin?: NodeJS.ReadableStream): Promise<string | {
13
13
  error: string;
14
14
  }>;
15
- /**
16
- * Parse `--idle-timeout <duration>` per lmctl0 grammar: `<n>(s|m|h|d)`,
17
- * a bare integer >= 1000 (raw milliseconds), or `0` (disables the timer —
18
- * libraryChat semantics). A bare integer under 1000 is refused (see inline
19
- * comment) rather than silently treated as milliseconds — always give an
20
- * explicit unit for anything meant as seconds. Returns ms (number), or an
21
- * error string the caller surfaces verbatim. Pure.
22
- */
23
- export declare function parseIdleTimeoutMs(value: string): number | string;
@@ -17,6 +17,9 @@ export interface CliIo {
17
17
  cwd?: string;
18
18
  env?: NodeJS.ProcessEnv;
19
19
  }
20
+ /** Scoped to this invocation and inherited by child lmctl calls. */
21
+ export declare function isNonInteractive(io: CliIo): boolean;
22
+ export declare function nonInteractiveIo(io: CliIo): CliIo;
20
23
  export interface ParsedFlags {
21
24
  positionals: string[];
22
25
  flags: Record<string, string | boolean>;
@@ -2,6 +2,7 @@ import type { CliIo } from './common.js';
2
2
  import { runChat } from './chat.js';
3
3
  export interface HelloDeps {
4
4
  fetchFn?: typeof fetch;
5
+ ask?: (question: string) => Promise<string | null>;
5
6
  cwd?: string;
6
7
  /** Test seam: defaults to the real runChat (a live provider dispatch). */
7
8
  sendPrompt?: typeof runChat;
@@ -1,3 +1,3 @@
1
- import type { CliIo } from './common.js';
1
+ import { type CliIo } from './common.js';
2
2
  export declare const COMMANDS: Set<string>;
3
3
  export declare function runCli(args: string[], io?: CliIo): Promise<number>;