@lmctl-ai/lmctl 0.2.117 → 0.2.119
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/CHANGELOG.md +3 -0
- package/build-info.json +1 -1
- package/dist/cli/lmscript.js +15 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,9 @@ All notable public-preview changes for `@lmctl-ai/lmctl` are recorded here.
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
- LMScript recover blocks provide named resume points. lmscript and lmctl script accept --resumepoint PATH before the source; nonzero runs report a rerun hint only when the first failure occurs in a point. Selection skips earlier points without restoring state, catching failures or retrying automatically.
|
|
8
|
+
- Command help now includes the cmd topic, complete shell-free grammar, runnable argv/GraphQL examples and renderer/platform limits.
|
|
9
|
+
|
|
7
10
|
- Cancelled plain operator prompts close without waiting for EOF; terminal cancellation during setup preserves SIGINT and exit 130. Standalone script prompts release their per-turn lease during critical signal cleanup.
|
|
8
11
|
- Muse MSP and Dsh dispatches now store per-turn wire counters and immutable copied prices for team/direct usage. Muse retains counted-once prompt totals with explicit cache splits; ambiguous input and uncertified positive cache splits remain unpriced. Missing required buckets and observable Dsh ownership overlap remain unpriced. Dsh native cost includes failed-step usage chunks without double-counting their final messages. Accounting failure does not change the provider result. Native-source recording and team seeds remain deferred.
|
|
9
12
|
|
package/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sha": "
|
|
1
|
+
{"sha": "88a05de64a6b501327ae14af8fef02aba4b67647", "dirty": false, "builtAt": "2026-10-06T22:22:47.000Z"}
|
package/dist/cli/lmscript.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
var Gb=Object.create;var Za=Object.defineProperty;var Jb=Object.getOwnPropertyDescriptor;var Kb=Object.getOwnPropertyNames;var Vb=Object.getPrototypeOf,zb=Object.prototype.hasOwnProperty;var O=(t,e)=>()=>(t&&(e=t(t=0)),e);var Yb=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ai=(t,e)=>{for(var n in e)Za(t,n,{get:e[n],enumerable:!0})},Qb=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Kb(e))!zb.call(t,s)&&s!==n&&Za(t,s,{get:()=>e[s],enumerable:!(r=Jb(e,s))||r.enumerable});return t};var Gm=(t,e,n)=>(n=t!=null?Gb(Vb(t)):{},Qb(e||!t||!t.__esModule?Za(n,"default",{value:t,enumerable:!0}):n,t));function Jm(t,e,n){let r=new Set(["core",...t.getBuiltinProviders().map(l=>l.name)]),s=l=>(r.has(l)?"Built-in: ":"Module: ")+l,i=new Map;for(let l of t.getFunctionDocs())(l.category==="Language Constructs"||!t.scanAndCheck(l.name+";").diagnostics.some(c=>c.severity==="error"))&&i.set(l.name,l);for(let l of t.getRegisteredFunctions()){let c=t.getFunctionMetadata(l),d=typeof c.arity=="number"?{min:c.arity,max:c.arity}:c.arity;i.set(l,t.getFunctionDoc(l)??{name:l,module:"core",category:"Core Functions",description:c.description??"Core function",signature:l+"("+Array.from({length:d?.min??0},(u,m)=>"arg"+(m+1)).join(", ")+(d?.max===void 0?", ...":"")+")"})}for(let l of e)for(let c of l.declarations.functions)i.set(c.name,c.doc??{name:c.name,module:l.name,category:"Host Functions",description:"Declared by "+l.name,signature:c.name+"("+(c.params?.map(d=>d.name).join(", ")??"...")+")"});if(n==="
|
|
1
|
+
var Gb=Object.create;var Za=Object.defineProperty;var Jb=Object.getOwnPropertyDescriptor;var Kb=Object.getOwnPropertyNames;var Vb=Object.getPrototypeOf,zb=Object.prototype.hasOwnProperty;var O=(t,e)=>()=>(t&&(e=t(t=0)),e);var Yb=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ai=(t,e)=>{for(var n in e)Za(t,n,{get:e[n],enumerable:!0})},Qb=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Kb(e))!zb.call(t,s)&&s!==n&&Za(t,s,{get:()=>e[s],enumerable:!(r=Jb(e,s))||r.enumerable});return t};var Gm=(t,e,n)=>(n=t!=null?Gb(Vb(t)):{},Qb(e||!t||!t.__esModule?Za(n,"default",{value:t,enumerable:!0}):n,t));function Jm(t,e,n){let r=new Set(["core",...t.getBuiltinProviders().map(l=>l.name)]),s=l=>(r.has(l)?"Built-in: ":"Module: ")+l,i=new Map;for(let l of t.getFunctionDocs())(l.category==="Language Constructs"||!t.scanAndCheck(l.name+";").diagnostics.some(c=>c.severity==="error"))&&i.set(l.name,l);for(let l of t.getRegisteredFunctions()){let c=t.getFunctionMetadata(l),d=typeof c.arity=="number"?{min:c.arity,max:c.arity}:c.arity;i.set(l,t.getFunctionDoc(l)??{name:l,module:"core",category:"Core Functions",description:c.description??"Core function",signature:l+"("+Array.from({length:d?.min??0},(u,m)=>"arg"+(m+1)).join(", ")+(d?.max===void 0?", ...":"")+")"})}for(let l of e)for(let c of l.declarations.functions)i.set(c.name,c.doc??{name:c.name,module:l.name,category:"Host Functions",description:"Declared by "+l.name,signature:c.name+"("+(c.params?.map(d=>d.name).join(", ")??"...")+")"});if(n==="cmd")return`system COMMAND executes argv; cmd COMMAND returns argv. One command per source line; put closing braces on the next line.
|
|
2
|
+
Example (run each statement on its own line):
|
|
3
|
+
args = cmd program a=" " b="adsfa"
|
|
4
|
+
assert(json_stringify(args) == '["program","a= ","b=adsfa"]');
|
|
5
|
+
Fields \${value} insert opaque strings/numbers; a whole-word list field splices arguments. Quotes/escapes protect literal punctuation. Word-start # comments and backslash-newline continuation are supported; // is text.
|
|
6
|
+
No shell pipes, redirects, globbing, bare dollar variables or substitutions. Use system(argv, timeoutMs) for options; system(string) is refused. Default timeout 60000 ms, 0 disables it; nonzero process exits are data.
|
|
7
|
+
cmd_render(argv, dialect) outputs posix/windows/powershell text; never pass rendered text to system. Default windows on win32, otherwise posix. Windows encoding is CRT argument-tail syntax, not cmd.exe; on win32, .cmd/.bat shims are refused. PowerShell output needs & and 7.3+ native argument mode when executed.
|
|
8
|
+
`;if(n==="conditional")return`condition ? trueExpr : falseExpr
|
|
2
9
|
Precedence below || and above assignment; only the selected arm is evaluated.
|
|
3
10
|
`;if(n==="graphql")return"GraphQL literals: graphql"+'"'.repeat(3)+"..."+'"'.repeat(3)+" or graphql"+"'".repeat(3)+"..."+"'".repeat(3)+`
|
|
4
|
-
Executable GraphQL syntax is checked before effects; the value is an ordinary string. No interpolation, schema lookup or execution. Use GraphQL variables for dynamic input. Schema-free
|
|
5
|
-
`;if(n==="
|
|
11
|
+
Executable GraphQL syntax is checked before effects; the value is an ordinary string. No interpolation, schema lookup or execution. Use GraphQL variables for dynamic input. Schema-free checks reject undefined/unused fragments and variables, fragment cycles, duplicate names and arguments, and non-lone anonymous operations. Fragment-only documents may be composed; domain names are not validated.
|
|
12
|
+
`;if(n==="recover")return["Topic: Recover blocks and resume points","recover { resumepoint NAME: statements ... }","--resumepoint NAME(.NAME)* goes before FILE, -, or -e CODE.","The first entered recover consumes a segment; earlier points are skipped and later points fall through. Prelude code still runs.","One block scope; nested paths are dotted. RESUMEPOINT is read-only, null outside points; helpers inherit the active path.","No saved state, catching or automatic retry. Reload needed state; recover cannot enter in a parallel task or reenter in one run.","A nonzero run reports its first failure point after diagnostics. An earlier failure outside points suppresses the hint; final exit 0 and check errors have no hint.","Example: lmscript --resumepoint b -e 'recover { resumepoint a: println(RESUMEPOINT); resumepoint b: println(RESUMEPOINT); }'"].join(`
|
|
13
|
+
`)+`
|
|
14
|
+
`;if(n==="topics")return`Topics: conditional, regex, graphql, cmd, recover
|
|
6
15
|
`;if(n==="regex")return`Topic: Regular expressions
|
|
7
16
|
JavaScript RegExp patterns; use regex_test, regex_match, regex_find_all, regex_replace and split_regex.
|
|
8
17
|
Use raw strings for backslashes; g means global matching; y is rejected by matching helpers.
|
|
@@ -21,12 +30,12 @@ ${l.parameters?.length?`Parameters:
|
|
|
21
30
|
`;let c=o.filter(d=>(d.module??"core")===l);for(let d of[...new Set(c.map(u=>u.category))].sort()){a+=" "+d+`:
|
|
22
31
|
`;for(let u of c.filter(m=>m.category===d).sort((m,p)=>m.name.localeCompare(p.name)))a+=" "+(u.signature??u.name)+`
|
|
23
32
|
`}}return a+`
|
|
24
|
-
Topics: conditional, regex, graphql
|
|
33
|
+
Topics: conditional, regex, graphql, cmd, recover
|
|
25
34
|
Use help <function|built-in|topic> for details.
|
|
26
|
-
`}var Km=O(()=>{"use strict"});function Zb(t){let e=new
|
|
35
|
+
`}var Km=O(()=>{"use strict"});function Zb(t){let e=[],n=(d,u)=>e.push({offset:d.offset,message:u}),r=(d,u)=>{let m=new Set;for(let p of d)m.has(p.value)&&n(p,"Duplicate "+u+" "+p.value),m.add(p.value)},s=t.filter(d=>d.kind==="operation"),i=t.filter(d=>d.kind==="fragment");r(s.flatMap(d=>d.name?[d.name]:[]),"operation"),r(i.map(d=>d.name),"fragment");for(let d of t){r(d.variables,"variable");for(let u of d.arguments)r(u,"argument")}if(s.length>1)for(let d of s)d.name||n(d.opener,"Anonymous operation must be the only operation");let o=new Map;for(let d of i)o.has(d.name.value)||o.set(d.name.value,d);for(let d of t)for(let u of d.spreads)o.has(u.value)||n(u,"Undefined fragment "+u.value);let a=new Map,l=new Map;for(let d of o.values()){if(a.has(d.name.value))continue;let u=[d],m=[{node:d,index:0}];for(a.set(d.name.value,1),l.set(d.name.value,0);m.length;){let p=m.at(-1);if(p.index===p.node.spreads.length){a.set(p.node.name.value,2),l.delete(p.node.name.value),m.pop(),u.pop();continue}let h=p.node.spreads[p.index++],_=o.get(h.value);if(_)if(a.get(h.value)===1){let g=l.get(h.value);n(h,"Fragment cycle: "+[...u.slice(g).map(f=>f.name.value),h.value].join(" -> "))}else a.has(h.value)||(a.set(h.value,1),l.set(h.value,u.length),u.push(_),m.push({node:_,index:0}))}}let c=new Set;for(let d of s){let u=new Set,m=new Set,p=new Set(d.variables.map(_=>_.value)),h=[d];for(;h.length;){let _=h.pop();for(let g of _.usages)m.add(g.value),p.has(g.value)||n(g,"Undefined variable $"+g.value+" in "+(d.name?"operation "+d.name.value:"anonymous operation"));for(let g of _.spreads){if(u.has(g.value))continue;u.add(g.value);let f=o.get(g.value);f&&(c.add(g.value),h.push(f))}}for(let _ of d.variables)m.has(_.value)||n(_,"Unused variable $"+_.value+" in "+(d.name?"operation "+d.name.value:"anonymous operation"))}if(s.length)for(let d of i)c.has(d.name.value)||n(d.name,"Unused fragment "+d.name.value);return e.sort((d,u)=>d.offset-u.offset)}function Vm(t){let e=new tl(t),n=new nl(e);try{return n.parse(),Zb(n.definitions)}catch(r){return[{offset:r instanceof Br?r.offset:e.pos,message:r instanceof Error?r.message:String(r)}]}}var Br,el,Ft,tl,nl,zm=O(()=>{"use strict";Br=class extends Error{offset;constructor(e,n){super(n),this.offset=e}},el=t=>t!==""&&/[_A-Za-z]/.test(t),Ft=t=>t!==""&&/[0-9]/.test(t),tl=class{pos=0;text;constructor(e){this.text=e}fail(e,n=this.pos){throw new Br(n,e)}char(){return this.text[this.pos]??""}sourceCharacter(){let e=this.text.charCodeAt(this.pos);e<32&&![9,10,13].includes(e)&&this.fail("Invalid source character")}next(){for(;this.pos<this.text.length;){this.sourceCharacter();let s=this.char();if(` \r
|
|
27
36
|
,\uFEFF`.includes(s)){this.pos++;continue}if(s==="#"){for(;this.pos<this.text.length&&!`\r
|
|
28
37
|
`.includes(this.char());)this.sourceCharacter(),this.pos++;continue}break}let e=this.pos,n=this.char(),r=s=>({kind:s,offset:e,value:this.text.slice(e,this.pos)});if(!n)return r("EOF");if(el(n)){do this.pos++;while(el(this.char())||Ft(this.char()));return r("Name")}if(n==="-"||Ft(n)){if(n==="-"&&this.pos++,Ft(this.char())||this.fail("Expected digit in number"),this.char()==="0")this.pos++;else for(;Ft(this.char());)this.pos++;if(this.char()===".")for(this.pos++,Ft(this.char())||this.fail("Expected digit after decimal point");Ft(this.char());)this.pos++;if(this.char()==="e"||this.char()==="E")for(this.pos++,(this.char()==="+"||this.char()==="-")&&this.pos++,Ft(this.char())||this.fail("Expected exponent digit");Ft(this.char());)this.pos++;return(Ft(this.char())||el(this.char())||this.char()===".")&&this.fail("Expected delimiter after number"),r("Number")}if(n==='"'){let s=this.text.startsWith('"""',this.pos);for(this.pos+=s?3:1;this.pos<this.text.length;){if(this.sourceCharacter(),s){if(this.text.startsWith('\\"""',this.pos)){this.pos+=4;continue}if(this.text.startsWith('"""',this.pos))return this.pos+=3,r("String");this.pos++;continue}let i=this.char();if(i==='"')return this.pos++,r("String");if((i===`
|
|
29
|
-
`||i==="\r")&&this.fail("Unterminated string",e),i!=="\\"){this.pos++;continue}this.pos++;let o=this.char();if(o&&'"\\/bfnrt'.includes(o)){this.pos++;continue}if(o==="u"){this.pos++;for(let a=0;a<4;a++)(!/[0-9a-fA-F]/.test(this.char())||!this.char())&&this.fail("Expected four hexadecimal digits after Unicode escape"),this.pos++;continue}this.fail("Invalid string escape")}this.fail(s?"Unterminated block string":"Unterminated string",e)}if(this.text.startsWith("...",this.pos))return this.pos+=3,r("...");if("!$&():=@[]{|}".includes(n))return this.pos++,r(n);this.fail("Unexpected character "+JSON.stringify(n))}},nl=class{lookahead;jobs=[];scanner;constructor(e){this.scanner=e}peek(){return this.lookahead??=this.scanner.next()}take(){let e=this.peek();return this.lookahead=void 0,e}eat(e){return this.peek().kind!==e?!1:(this.take(),!0)}expect(e){return this.peek().kind!==e&&this.expected(e),this.take()}expected(e){let n=this.peek();throw new Br(n.offset,"Expected "+e+", found "+(n.kind==="EOF"?"EOF":JSON.stringify(n.value)))}word(e){(this.peek().kind!=="Name"||this.peek().value!==e)&&this.expected(e),this.take()}queue(...e){for(let n=e.length-1;n>=0;n--)this.jobs.push(e[n])}parse(){for(this.peek().kind==="EOF"&&this.expected("executable definition"),this.queue(()=>this.document());this.jobs.length;)this.jobs.pop()()}document(){this.peek().kind!=="EOF"&&this.queue(()=>this.definition(),()=>this.document())}definition(){if(this.peek().kind==="{"){this.queue(()=>this.selectionSet());return}let e=this.peek();if(e.kind==="Name"&&["query","mutation","subscription"].includes(e.value)){this.take()
|
|
38
|
+
`||i==="\r")&&this.fail("Unterminated string",e),i!=="\\"){this.pos++;continue}this.pos++;let o=this.char();if(o&&'"\\/bfnrt'.includes(o)){this.pos++;continue}if(o==="u"){this.pos++;for(let a=0;a<4;a++)(!/[0-9a-fA-F]/.test(this.char())||!this.char())&&this.fail("Expected four hexadecimal digits after Unicode escape"),this.pos++;continue}this.fail("Invalid string escape")}this.fail(s?"Unterminated block string":"Unterminated string",e)}if(this.text.startsWith("...",this.pos))return this.pos+=3,r("...");if("!$&():=@[]{|}".includes(n))return this.pos++,r(n);this.fail("Unexpected character "+JSON.stringify(n))}},nl=class{definitions=[];current;lookahead;jobs=[];scanner;constructor(e){this.scanner=e}peek(){return this.lookahead??=this.scanner.next()}take(){let e=this.peek();return this.lookahead=void 0,e}eat(e){return this.peek().kind!==e?!1:(this.take(),!0)}expect(e){return this.peek().kind!==e&&this.expected(e),this.take()}expected(e){let n=this.peek();throw new Br(n.offset,"Expected "+e+", found "+(n.kind==="EOF"?"EOF":JSON.stringify(n.value)))}word(e){(this.peek().kind!=="Name"||this.peek().value!==e)&&this.expected(e),this.take()}queue(...e){for(let n=e.length-1;n>=0;n--)this.jobs.push(e[n])}parse(){for(this.peek().kind==="EOF"&&this.expected("executable definition"),this.queue(()=>this.document());this.jobs.length;)this.jobs.pop()()}document(){this.peek().kind!=="EOF"&&this.queue(()=>this.definition(),()=>this.document())}begin(e,n,r){this.current={kind:e,name:r,opener:n,variables:[],usages:[],spreads:[],arguments:[]},this.definitions.push(this.current)}definition(){if(this.peek().kind==="{"){this.begin("operation",this.peek()),this.queue(()=>this.selectionSet());return}let e=this.peek();if(e.kind==="Name"&&["query","mutation","subscription"].includes(e.value)){this.take();let n=this.peek().kind==="Name"?this.take():void 0;this.begin("operation",e,n),this.queue(()=>this.variables(),()=>this.directives(!1),()=>this.selectionSet());return}if(e.kind==="Name"&&e.value==="fragment"){this.take(),this.peek().value==="on"&&this.expected("fragment name other than on");let n=this.expect("Name");this.begin("fragment",e,n),this.word("on"),this.expect("Name"),this.queue(()=>this.directives(!1),()=>this.selectionSet());return}this.expected("executable operation or fragment (schema definitions are not executable)")}selectionSet(){this.expect("{"),this.peek().kind==="}"&&this.expected("selection"),this.queue(()=>this.selection(),()=>this.selectionsTail())}selectionsTail(){this.eat("}")||(this.peek().kind==="EOF"&&this.expected("}"),this.queue(()=>this.selection(),()=>this.selectionsTail()))}selection(){if(this.eat("...")){if(this.peek().kind==="Name"&&this.peek().value!=="on"){this.current.spreads.push(this.take()),this.queue(()=>this.directives(!1));return}this.peek().value==="on"&&(this.take(),this.expect("Name")),this.queue(()=>this.directives(!1),()=>this.selectionSet());return}this.expect("Name"),this.eat(":")&&this.expect("Name"),this.queue(()=>this.arguments(!1),()=>this.directives(!1),()=>{this.peek().kind==="{"&&this.queue(()=>this.selectionSet())})}arguments(e){if(!this.eat("("))return;this.peek().kind===")"&&this.expected("argument");let n=[];this.current.arguments.push(n),this.queue(()=>this.argument(e,n),()=>this.argumentsTail(e,n))}argument(e,n){n.push(this.expect("Name")),this.expect(":"),this.queue(()=>this.value(e))}argumentsTail(e,n){this.eat(")")||this.queue(()=>this.argument(e,n),()=>this.argumentsTail(e,n))}directives(e){this.eat("@")&&(this.expect("Name"),this.queue(()=>this.arguments(e),()=>this.directives(e)))}variables(){this.eat("(")&&(this.peek().kind===")"&&this.expected("variable definition"),this.queue(()=>this.variableDefinition(),()=>this.variablesTail()))}variablesTail(){this.eat(")")||this.queue(()=>this.variableDefinition(),()=>this.variablesTail())}variableDefinition(){let e=this.expect("$"),n=this.expect("Name");this.current.variables.push({...n,offset:e.offset}),this.expect(":"),this.queue(()=>this.type(),()=>{this.eat("=")?this.queue(()=>this.value(!0),()=>this.directives(!0)):this.queue(()=>this.directives(!0))})}type(){if(this.eat("[")){this.queue(()=>this.type(),()=>{this.expect("]"),this.eat("!")});return}this.expect("Name"),this.eat("!")}value(e){let n=this.peek();if(n.kind==="$"){e&&this.expected("constant value (variables are not allowed here)");let r=this.take(),s=this.expect("Name");this.current.usages.push({...s,offset:r.offset});return}if(["Name","Number","String"].includes(n.kind)){this.take();return}if(this.eat("[")){this.queue(()=>this.listTail(e));return}if(this.eat("{")){this.queue(()=>this.objectTail(e));return}this.expected("value")}listTail(e){this.eat("]")||this.queue(()=>this.value(e),()=>this.listTail(e))}objectTail(e){this.eat("}")||(this.expect("Name"),this.expect(":"),this.queue(()=>this.value(e),()=>this.objectTail(e)))}}});function Ym(t,e){return new Error("Invalid template reference "+JSON.stringify(t)+" at offset "+e+"; use a simple name, PROPS.path or ARGV[n]. Assign a temporary variable first and pass it in vars.")}function sl(t){if(typeof t!="string")throw new Error("expand: text must be a string");let e=[],n=0;for(;n<t.length;){let r=t.indexOf("${",n);if(r<0){e.push(t.slice(n));break}if(r>n&&t[r-1]==="$"){e.push(t.slice(n,r-1),"${"),n=r+2;continue}e.push(t.slice(n,r));let s=t.indexOf("}",r+2);if(s<0)throw Ym(t.slice(r+2),r);let i=t.slice(r+2,s),o=tT.exec(i),a=nT.exec(i);if(o)e.push({kind:"property",name:i,key:o[1],offset:r});else if(a&&Number.isSafeInteger(Number(a[1])))e.push({kind:"argument",name:i,index:Number(a[1]),offset:r});else if(eT.test(i)&&i!=="PROPS"&&i!=="ARGV")e.push({kind:"variable",name:i,offset:r});else throw Ym(i,r);n=s+1}return e}function li(t,e,n=r=>r!==null&&typeof r=="object"?JSON.stringify(r):String(r)){let r=[],s=new Map;for(let i of sl(t)){if(typeof i=="string"){r.push(i);continue}let o;try{o=e(i)}catch(a){s.set(i.name,a instanceof Error?a.message:String(a));continue}if(o===void 0){s.set(i.name,"not defined");continue}r.push(n(o))}if(s.size)throw new Error("expand: missing references: "+[...s].map(([i,o])=>i+" ("+o+")").join("; "));return r.join("")}var rl,eT,tT,nT,il=O(()=>{rl="[_a-zA-Z][_a-zA-Z0-9]*",eT=new RegExp("^"+rl+"$"),tT=new RegExp("^PROPS\\.("+rl+"(?:\\."+rl+")*)$"),nT=/^ARGV\[(0|[1-9][0-9]*)\]$/});import{AsyncLocalStorage as rT}from"node:async_hooks";import{spawn as sT,spawnSync as dp}from"node:child_process";import{randomUUID as iT,createHash as oT}from"node:crypto";import{tmpdir as aT}from"node:os";import*as U from"node:fs";import*as ue from"node:path";import*as mp from"node:readline";import{fileURLToPath as Il}from"node:url";import{types as xe}from"node:util";function lT(t,e){let n=t.file&&t.file!=="<main>"?`${t.file}:${t.line}:${t.column}`:`${t.line}:${t.column}`,r=e;if(t.file&&(!r||r&&t.file!=="<main>"&&t.file!=="<std>"))try{U.existsSync(t.file)&&U.statSync(t.file).isFile()&&(r=U.readFileSync(t.file,"utf-8"))}catch{}if(!r)return`[${t.severity.toUpperCase()} at ${n}] ${t.message}`;let s=r.split(`
|
|
30
39
|
`),i=String(t.line),o=t.line-1,a=s[o]??"",l=" | ",c=` ${i.padStart(4," ")} | `,d=" ".repeat(Math.max(0,t.column-1));return`[${t.severity.toUpperCase()} at ${n}] ${t.message}
|
|
31
40
|
`+l+`
|
|
32
41
|
${c}${a}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmctl-ai/lmctl",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.119",
|
|
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",
|