@lmctl-ai/lmctl 0.2.27 → 0.2.29

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,4 +1,4 @@
1
- import type { CliIo } from './common.js';
1
+ import { type CliIo } from './common.js';
2
2
  /** Lazy readline setup: complete inputs never open/consume stdin. */
3
3
  export declare class IntentInput {
4
4
  private io;
@@ -5,6 +5,10 @@ export type InputShape = {
5
5
  alias?: string;
6
6
  prompt?: string;
7
7
  pendingPrompt?: string;
8
+ } | {
9
+ kind: 'script';
10
+ file: string;
11
+ rest: string[];
8
12
  } | {
9
13
  kind: 'batch';
10
14
  file: string;
@@ -14,4 +14,12 @@ export declare function completeTeamfile(file: string, input: IntentInput, io: C
14
14
  export declare function prepareTeam(file: string, input: IntentInput, io: CliIo, deps?: TeamIntentDeps, initialAlias?: string): Promise<number>;
15
15
  export declare function chooseTeamfile(input: IntentInput, cwd: string): Promise<string>;
16
16
  export declare function chooseMember(file: string, requested: string | undefined, input: IntentInput): Promise<string>;
17
- export declare function adoptSession(id: string, provider: string, model: string | null, cwd: string, input: IntentInput, io: CliIo, sessiondir?: string): Promise<void>;
17
+ /** A new model prompt needs an auditable member before it can dispatch. */
18
+ export declare function createPromptTeam(provider: string, model: string, cwd: string, input: IntentInput): Promise<{
19
+ file: string;
20
+ alias: string;
21
+ }>;
22
+ export declare function adoptSession(id: string, provider: string, model: string | null, cwd: string, input: IntentInput, io: CliIo, sessiondir?: string): Promise<{
23
+ file: string;
24
+ alias: string;
25
+ } | null>;
@@ -2,7 +2,6 @@ import type { CliIo } from './common.js';
2
2
  import { runModel } from './model.js';
3
3
  import { runChat } from './chat.js';
4
4
  import { runBatch } from './batch.js';
5
- import { runScriptEngine } from '../script/adapter.js';
6
5
  import { findSessionProviders } from '../providers/resume.js';
7
6
  import { type TeamIntentDeps } from './intent-team.js';
8
7
  import { registeredSessions, teamSessionRows, summarizeSession, replaceSession } from './intent-sessions.js';
@@ -11,7 +10,6 @@ export interface IntentDeps extends TeamIntentDeps {
11
10
  chat?: typeof runChat;
12
11
  batch?: typeof runBatch;
13
12
  model?: typeof runModel;
14
- script?: typeof runScriptEngine;
15
13
  registrations?: typeof registeredSessions;
16
14
  findProviders?: typeof findSessionProviders;
17
15
  rows?: typeof teamSessionRows;
@@ -1,4 +1,4 @@
1
- import type { CliIo } from './common.js';
1
+ import { type CliIo } from './common.js';
2
2
  import { runTerminal } from './terminal.js';
3
3
  export interface QuickrunDeps {
4
4
  fetchFn?: typeof fetch;