@lmctl-ai/lmctl 0.2.17 → 0.2.19
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/cli/index.js +178 -181
- package/dist/cli/save-script.d.ts +9 -4
- package/package.json +1 -1
|
@@ -3,6 +3,8 @@ export interface SaveScriptRequest {
|
|
|
3
3
|
destPath: string;
|
|
4
4
|
/** Resolved script name, e.g. "plan" (default) or "plan-minimal" (--script). */
|
|
5
5
|
slug: string;
|
|
6
|
+
/** File extension lmctl.com serves for this command's family, e.g. ".lms" or ".txt". */
|
|
7
|
+
extension: string;
|
|
6
8
|
force: boolean;
|
|
7
9
|
}
|
|
8
10
|
export interface ExtractSaveScriptResult {
|
|
@@ -17,12 +19,14 @@ export interface ExtractSaveScriptResult {
|
|
|
17
19
|
*/
|
|
18
20
|
export declare function extractSaveScriptFlags(args: string[], command: string, opts?: {
|
|
19
21
|
ownsForce?: boolean;
|
|
22
|
+
extension?: string;
|
|
20
23
|
}): ExtractSaveScriptResult;
|
|
21
24
|
/**
|
|
22
|
-
* Fetches https://lmctl.com/lmscript/commands/<slug
|
|
23
|
-
* request.destPath. Verifies the full response BEFORE writing
|
|
24
|
-
* a failed fetch, a 404, or an HTML page (offline/misconfigured
|
|
25
|
-
* fallback) never reaches the destination file, half-written or
|
|
25
|
+
* Fetches https://lmctl.com/lmscript/commands/<slug><extension> and writes
|
|
26
|
+
* it to request.destPath. Verifies the full response BEFORE writing
|
|
27
|
+
* anything -- a failed fetch, a 404, or an HTML page (offline/misconfigured
|
|
28
|
+
* host fallback) never reaches the destination file, half-written or
|
|
29
|
+
* otherwise.
|
|
26
30
|
*/
|
|
27
31
|
export declare function performSaveScript(io: CliIo, request: SaveScriptRequest, fetchFn?: typeof fetch): Promise<number>;
|
|
28
32
|
/**
|
|
@@ -33,4 +37,5 @@ export declare function performSaveScript(io: CliIo, request: SaveScriptRequest,
|
|
|
33
37
|
*/
|
|
34
38
|
export declare function runWithSaveScript(io: CliIo, command: string, args: string[], runCommand: (rest: string[]) => Promise<number>, opts?: {
|
|
35
39
|
ownsForce?: boolean;
|
|
40
|
+
extension?: string;
|
|
36
41
|
}): Promise<number>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmctl-ai/lmctl",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"description": "A provider-agnostic control plane for teams of AI coding agents — across providers, with independent review and durable memory.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://lmctl.com",
|