@lmctl-ai/lmctl 0.2.6 → 0.2.8
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/cli/hello.d.ts +9 -0
- package/dist/cli/index.js +455 -365
- package/dist/cli/init.d.ts +21 -0
- package/dist/cli/plan.d.ts +9 -0
- package/dist/cli/quickrun.d.ts +11 -0
- package/dist/cli/script.js +149 -148
- package/dist/cli/teamfile-template.d.ts +12 -5
- package/dist/providers/config/init-config.d.ts +43 -0
- package/dist/providers/seed-instruction.d.ts +1 -1
- package/dist/script/lmscript.d.ts +14 -0
- package/examples/book-team.lmctl +1 -1
- package/examples/research-team.lmctl +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `lmctl init` — the first command in the onboarding sequence (operator,
|
|
3
|
+
* 2026-09-29): writes ~/.lmctl/init.toml, a starting-point config of three
|
|
4
|
+
* provider SLOTS (Provider1/2/3), each with three model tiers, used by
|
|
5
|
+
* `lmctl plan` and `lmctl quickrun` to fill ${ProviderN}/${ModelN}
|
|
6
|
+
* placeholders without asking the user provider/model questions directly.
|
|
7
|
+
*
|
|
8
|
+
* Presence detection only -- never a usage ranking (see init-config.ts's
|
|
9
|
+
* own header comment for why session-count ranking was confirmed wrong on
|
|
10
|
+
* a real machine, not just assumed). The bar for the generated file is
|
|
11
|
+
* "useful starting point", not "correct": it is shown to the user and
|
|
12
|
+
* clearly marked as theirs to edit.
|
|
13
|
+
*/
|
|
14
|
+
import type { CliIo } from './common.js';
|
|
15
|
+
export interface InitDeps {
|
|
16
|
+
/** Test seam: defaults to ~/.lmctl/init.toml (getDefaultInitConfigPath()). */
|
|
17
|
+
configPath?: string;
|
|
18
|
+
/** Test seam: defaults to real filesystem presence detection. */
|
|
19
|
+
detectProviders?: () => string[];
|
|
20
|
+
}
|
|
21
|
+
export declare function runInit(args: string[], io?: CliIo, deps?: InitDeps): Promise<number>;
|
package/dist/cli/plan.d.ts
CHANGED
|
@@ -16,5 +16,14 @@ export interface PlanDeps {
|
|
|
16
16
|
editFile?: (path: string) => void;
|
|
17
17
|
/** Overrides stdin TTY detection (wizard auto-trigger). */
|
|
18
18
|
stdinIsTTY?: boolean;
|
|
19
|
+
/** Test seam: defaults to ~/.lmctl/init.toml (getDefaultInitConfigPath()). */
|
|
20
|
+
initConfigPath?: string;
|
|
19
21
|
}
|
|
20
22
|
export declare function runPlan(args: string[], io?: CliIo, deps?: PlanDeps): Promise<number>;
|
|
23
|
+
/** Reads a `--from`-style source: a local file, a directory holding exactly
|
|
24
|
+
* one .lmctl file, or an https:// URL (https-only, redirect-pinned).
|
|
25
|
+
* Exported for reuse by quickrun/hello, which fetch the same kinds of
|
|
26
|
+
* sources (a teamfile template, or a per-provider example) via the same
|
|
27
|
+
* rules -- no local http://, https-only redirects, one candidate file per
|
|
28
|
+
* directory. */
|
|
29
|
+
export declare function readPlanSource(source: string, fetchFn: typeof fetch, cwd: string): Promise<string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CliIo } from './common.js';
|
|
2
|
+
import { runTerminal } from './terminal.js';
|
|
3
|
+
export interface QuickrunDeps {
|
|
4
|
+
fetchFn?: typeof fetch;
|
|
5
|
+
cwd?: string;
|
|
6
|
+
/** Test seam: defaults to ~/.lmctl/init.toml (getDefaultInitConfigPath()). */
|
|
7
|
+
initConfigPath?: string;
|
|
8
|
+
/** Test seam: defaults to the real runTerminal (a live provider TUI). */
|
|
9
|
+
openTerminal?: typeof runTerminal;
|
|
10
|
+
}
|
|
11
|
+
export declare function runQuickrun(args: string[], io?: CliIo, deps?: QuickrunDeps): Promise<number>;
|