@lmctl-ai/lmctl 0.2.165 → 0.2.166
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 +22 -1
- package/README.md +9 -3
- package/build-info.json +1 -1
- package/dist/cli/index.js +446 -443
- package/dist/cli/lmscript.js +355 -342
- package/examples/git_summary.lms +5 -5
- package/package.json +1 -2
- package/modules/git.lms +0 -167
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,29 @@ All notable public-preview changes for `@lmctl-ai/lmctl` are recorded here.
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
- Fix dry preflight guard coverage after console output and lm_error; logs remain planned and recorded errors remain nonfatal. Bound implicit execution by 16,000 checkpoints and a 100 ms backstop (explicit timeout overrides these), reaching ordinary recursive guards without replaying expensive computation in full. Capped dry loops still cannot roll back effects before a later real failure.
|
|
8
|
+
|
|
9
|
+
- Fix default dry preflight regressions (026–028): loop caps make later failures untrusted; error()/lm_error() and provider-recorded errors continue rather than blocking the real run. Ordinary execution suppresses nonblocking dry findings and uses the bounded implicit preflight budget; explicit --dry-run keeps its 5000 ms default, PLAN and diagnostics. Fatal pre-taint failures and static errors still block; real-phase error and exit behavior is unchanged.
|
|
10
|
+
|
|
11
|
+
- LMScript lm_batch_open member maps with provider and sessionid now hold an
|
|
12
|
+
existing native conversation. lm_batch_turn(handle, prompt) sends dependent
|
|
13
|
+
turns without batch counts; lm_batch_close, scope unwind, script exit, and
|
|
14
|
+
signals release the resource. Supported providers reuse persistent transport;
|
|
15
|
+
others execute per turn. A unique known owner supplies its existing lease,
|
|
16
|
+
otherwise admission uses a native key; ambiguous owners are refused. Each
|
|
17
|
+
turn reuses the transcript and usage recorder. CLI admission and busy messages
|
|
18
|
+
retain their existing behavior. No schema, job, proxy, or new CLI was added.
|
|
19
|
+
|
|
20
|
+
- Native git is compiled as a private workspace and explicitly imported with native:git. Readonly queries return structured values through the shared argv layer; git.lms is removed. Check/lint/dry import are passive, real import activates once, and query failures are loud runtime errors.
|
|
21
|
+
- Child engines created by run_script now inherit the native module catalog (and host configuration such as reserved function prefixes, builtin providers, and module resolution), so child scripts importing native modules like native:git work identically to top-level scripts; --dry-run behaviour of run_script remains a dummy.
|
|
22
|
+
|
|
23
|
+
- SDK dry execution now supports lmctl file reads, safe prompt/agent/log adapters, module-scoped readonly command grants, and the which/warning core helpers. Console functions expose a reserved native dryrun slot while keeping their public signatures.
|
|
24
|
+
- Native terminal launch checks provider CLI/background-service compatibility. Codex version skew selects a verified matching daemon release when available; otherwise it keeps the PATH binary and prints an advisory update notice. Detection failures never refuse launch. Failed native Codex exits add a conditional troubleshooting hint, except user interrupts; prompt/exec paths and other providers retain their existing launch behavior.
|
|
25
|
+
|
|
7
26
|
- Resource help and executed examples now describe lexical batch ownership, id-only handles, runtime escape refusal, async acquisition and signal/lease limits. Terminal, operator-prompt and one-shot prompt ownership stays internal.
|
|
8
|
-
- LMScript SDK dry reports now bound loops and elapsed time, execute dry parallel tasks in order, freeze wall time/environment, and serialize bounded PLAN entries to text or JSON.
|
|
27
|
+
- LMScript SDK dry reports now bound loops and elapsed time, execute dry parallel tasks in order, freeze wall time/environment, and serialize bounded PLAN entries to text or JSON.
|
|
28
|
+
- `lmscript` and `lmctl script` now run a dry preflight before every real run: the dry pass runs with effects off, a trusted failure before the first simulated effect exits 2 without a real phase, and anything else proceeds to a fresh real phase. `--dry-run` stops after the dry pass and prints its PLAN (`--plan-format text|json`), `--no-preflight` skips it, and `--dry-loop-limit` / `--dryrun-timeout` bound it. `--check` and `--lint` stay static. Stdin sources, `-e` code and script arguments are forwarded unchanged; an interrupted dry pass exits 130/143 without a real effect.
|
|
29
|
+
- Dry preflight classifies a normal script exit with any code as clean completion, recording stop reason “script exit with code N” without failure or taint. --dry-run still exits 0 after PLAN; the default fresh real phase returns N. require/assert and resourceFailure-tagged LMScriptExit remain fatal failures; error/lm_error and other recorded errors continue and are reproduced in the real phase. Dry run_script calls are planned; real children preflight independently and report their code without making the parent inherit it automatically.
|
|
9
30
|
|
|
10
31
|
- GraphQL literal docs/help now describe raw executable strings, ten schema-free preflight rules, fragment-only composition and gh variables. Examples and exact rejection diagnostics run on both lmscript and lmctl script; field/argument/type/enum schema validation remains a future library hook.
|
|
11
32
|
- Admitted team seed dispatches now record private usage rows with team/alias and copied prices. Chat/history/backfill exclude these non-event rows. Pre-dispatch refusals create no row; unavailable evidence stays unknown; accounting failures never change seed results. Additive v65 preserves the reader floor and historical rows.
|
package/README.md
CHANGED
|
@@ -136,6 +136,12 @@ provider storage. Mock responses need no keys or network access.
|
|
|
136
136
|
|
|
137
137
|
`~/.lmctl/init.toml` (or `$LMCTL_HOME/init.toml`) is lmctl's properties file, not the process environment. Managed TOML keys include `Provider1.provider` and `Provider1.model1`; top-level user keys such as `Env1` are supported. Scripts use `PROPS.Provider1.Provider`, `PROPS.Provider1.Model1` or `PROPS["Provider1.Model1"]`. The source repository documents the complete property contract. The six old bare provider/model globals are removed. `--check` uses declared keys without a profile or DB; a file-backed runtime read needs a valid profile and reports its path plus `lmctl init` guidance. `Directory` and `NonInteractive` remain core invocation facts.
|
|
138
138
|
|
|
139
|
-
## Git
|
|
140
|
-
|
|
141
|
-
The package includes
|
|
139
|
+
## Compiled Git example
|
|
140
|
+
|
|
141
|
+
The package includes a small compiled native Git module. Use import "native:git"
|
|
142
|
+
to introduce its namespace, or run bin/lmscript examples/git_summary.lms /path/to/repo.
|
|
143
|
+
The five readonly queries are git.status, git.log with a limit, git.branch,
|
|
144
|
+
git.rev_parse and git.remotes. They return structured values through the shared
|
|
145
|
+
argv-only process layer. Native Git replaces the old source module; native code
|
|
146
|
+
is included at build time and activates lazily on import, with no runtime
|
|
147
|
+
package loading or registry.
|
package/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sha": "
|
|
1
|
+
{"sha": "89bcc5bd446c21d4cd68a4ff54d8388ed5214351", "dirty": false, "builtAt": "2026-10-09T13:24:59.000Z"}
|