@lmctl-ai/lmctl 0.2.125 → 0.2.126
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 +6 -5
- package/build-info.json +1 -1
- package/dist/cli/index.js +443 -443
- package/dist/cli/lmscript.js +265 -265
- package/dist/cli/schema.sql +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,22 +5,23 @@ All notable public-preview changes for `@lmctl-ai/lmctl` are recorded here.
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
7
|
- 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.
|
|
8
|
+
- 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.
|
|
8
9
|
|
|
9
10
|
- 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.
|
|
10
11
|
- Command help now includes the cmd topic, complete shell-free grammar, runnable argv/GraphQL examples and renderer/platform limits.
|
|
11
|
-
- **Native per-turn usage.** Team/direct attempts can record certified kimi/OpenCode/Gemini/miniplayer/Pi/AGY/lmplayer receipts with copied prices through the single recorder. Session/time/revision or overlap uncertainty stays unknown; accounting failures leave replies intact. Pi provider bills stay separate, Gemini thinking tokens count once, and uncertified AGY cache writes remain unpriced.
|
|
12
|
+
- **Native per-turn usage.** Team/direct attempts can record certified kimi/OpenCode/Gemini/miniplayer/Pi/AGY/lmplayer receipts with copied prices through the single recorder. Session/time/revision or overlap uncertainty stays unknown; accounting failures leave replies intact. Pi provider bills stay separate, Gemini thinking tokens count once, and uncertified AGY cache writes remain unpriced.
|
|
12
13
|
|
|
13
14
|
- 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.
|
|
14
15
|
- LMScript host declarations now expose immutable public/native signatures and declared result types. An optional boolean dryrun parameter is reserved for language injection; ordinary calls supply its default or false. This is metadata and shared-call groundwork only: dry execution, PLAN output and default preflight are not enabled yet.
|
|
15
16
|
|
|
16
|
-
- 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.
|
|
17
|
+
- 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.
|
|
17
18
|
|
|
18
19
|
- **Commands execute argv only.** system string calls are refused; use the command form or a structured argv list, and invoke a shell explicitly when required. cmd_render replaces shell_quote with posix/windows/powershell output dialects. win32 .cmd/.bat shims are refused without an automatic shell fallback; native EINVAL includes underlying-executable advice.
|
|
19
20
|
- Alias price pins select the exact case-sensitive record, and ambiguous folded pins remain unpriced. Malformed UTF-8 imports are refused. Price refreshes keep failed or interrupted cache pairs from becoming certified snapshots. Price imports reject invalid blend rates and corrupt stored units, bound file and identity sizes, accept UTF-8 BOM/CRLF, and refresh after clock rollback. Model lookup failures return a nonzero status with a JSON resolution. Stored turn rates remain unchanged.
|
|
20
21
|
|
|
21
22
|
- **Stored price catalog and prices command.** Additive schema v64 stores one validated price snapshot, records and aliases while keeping older readers compatible. lmctl prices update imports or refreshes atomically; prices show reports DB prices, alias resolution, source and age in text/JSON. The recorder uses stored prices and preserves each turn’s copied rates/hash. Failed refreshes retain the previous snapshot; an absent snapshot gives unknown cost. No historical row migration or backfill.
|
|
22
23
|
|
|
23
|
-
- **Direct turn usage.** `lm_agent`, reserved handoffs, fanout/member batches and `lmctl prompt --provider` now use the same recorder as team turns. Usage groups label them `(direct)`; rows keep copied rates/hash and outcomes without prompt/reply text, chat events or invocation links. Implicit agy/pi/dsh API seeds
|
|
24
|
+
- **Direct turn usage.** `lm_agent`, reserved handoffs, fanout/member batches and `lmctl prompt --provider` now use the same recorder as team turns. Usage groups label them `(direct)`; rows keep copied rates/hash and outcomes without prompt/reply text, chat events or invocation links. Implicit agy/pi/dsh API seeds keep their own attempts. Optional accounting never recovers/replaces an unusable DB, and write failures leave provider results unchanged. No new migration or backfill.
|
|
24
25
|
- **Automatic batch resource closing.** Script batch handles expose only a read-only id. Lexical ownership closes locks before caller work; child scripts own their acquisitions, and cross-run/expired ids cannot use or close a batch. Explicit close stays idempotent. Observed turn counts/status are stored; successful explicit exit preserves done. Critical release precedes signal exits 130/143. One 5 s close budget spans native close/drain; failed releases remain unresolved. Core child result maps use documented plain fields, without the legacy native toString callback.
|
|
25
26
|
- **Terminal and session handoff cleanup.** `lm_terminal` and `prompt_human` keep ownership inside the host and return ordinary result maps. Terminal locks and tracked invocations release with checked, nonblocking cleanup; handoff reservations pin their target and release once on EOF, provider failure, cancellation, context finalization or signal. Pending handoff input is interrupted when its context ends, and failed cleanup remains reported as unresolved state.
|
|
26
27
|
|
|
@@ -32,11 +33,11 @@ All notable public-preview changes for `@lmctl-ai/lmctl` are recorded here.
|
|
|
32
33
|
|
|
33
34
|
- **Codex cost review fixes.** Custom-agent output drains until 100 ms idle, with a started protocol awaiting its terminal or incomplete JSON allowed to finish within a five-second post-exit cap. A partial final JSON line never certifies usage. Invalid counters produce unknown cost; unstamped requests count separately even with totals. Replay identity requires timestamp/id/ordinal and includes cumulative and request values; malformed totals cannot supply identity. Native Codex cost includes ordinals and does not recount old mirrors after resets; exact native identities without a distinguishing ordinal remain an ambiguous collision limit.
|
|
34
35
|
|
|
35
|
-
- **Codex stored turn usage.** App-server request counters are summed for the owned thread/turn, with inclusive cached input removed and reasoning counted inside output. Session-scoped replay guards, copied price rates/hash and partial failure evidence use the existing recorder. Recognized exec JSON custom-agent completions carry usage without changing their stdout. Usage reports now show known Codex groups; native
|
|
36
|
+
- **Codex stored turn usage.** App-server request counters are summed for the owned thread/turn, with inclusive cached input removed and reasoning counted inside output. Session-scoped replay guards, copied price rates/hash and partial failure evidence use the existing recorder. Recognized exec JSON custom-agent completions carry usage without changing their stdout. Usage reports now show known Codex groups; native and seed recording use the shared recorder. Claude wire split certification reuses the native omitted-zero policy; an omitted total still requires both halves.
|
|
36
37
|
|
|
37
38
|
- **Cost estimates require a cache-read rate.** A session with positive cached reads and no catalog read rate now reports unknown cost and names the missing rate; only cache writes may fall back to the input rate. Estimates use base-tier list prices and exclude long-context surcharges. Claude all-1-hour cache-write sessions retain their 1-hour rate when the native reader omits the zero 5-minute counter. Usage reason summaries exclude known rows, and same-named teams are displayed with distinct path suffixes.
|
|
38
39
|
|
|
39
|
-
- **Stored team-turn usage.** Claude stream-json counters and immutable per-turn rates (including blended 1-hour cache writes) are recorded in additive schema v63 with reader floor 60. lmctl usage groups stored usage/cost by UTC day, provider, model, team, alias, session or directory; --json includes unknown counts. Other providers show unknown usage with reason codes.
|
|
40
|
+
- **Stored team-turn usage.** Claude stream-json counters and immutable per-turn rates (including blended 1-hour cache writes) are recorded in additive schema v63 with reader floor 60. lmctl usage groups stored usage/cost by UTC day, provider, model, team, alias, session or directory; --json includes unknown counts. Other providers show unknown usage with reason codes. Historical/older-writer rows are not backfilled. Accounting failure never changes the turn result.
|
|
40
41
|
|
|
41
42
|
- **LMScript suggests the regex split function's canonical name.** Calls and references written as `regex_split`, `regexSplit`, or `splitRegex` now suggest `split_regex` in check diagnostics.
|
|
42
43
|
- **LMScript catches unresolvable literal expand references during checking.** A literal template with no vars map or a literal map missing a referenced name now reports the missing name and advises passing a temporary variable in vars. Dynamic templates/maps keep runtime validation.
|
package/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sha": "
|
|
1
|
+
{"sha": "f876cca7d21b07d122140f8c920a17dbc1bea0b4", "dirty": false, "builtAt": "2026-10-07T07:13:13.000Z"}
|