@lmctl-ai/lmctl 0.2.107 → 0.2.108
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 -2
- package/build-info.json +1 -1
- package/dist/cli/index.js +405 -405
- package/dist/cli/lmscript.js +248 -248
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,7 @@ All notable public-preview changes for `@lmctl-ai/lmctl` are recorded here.
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
- **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 get separate unknown-usage attempts; teamfile seeds remain deferred. Optional accounting never recovers/replaces an unusable DB, and write failures leave provider results unchanged. No new migration or backfill.
|
|
7
8
|
- **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.
|
|
8
9
|
|
|
9
10
|
- **is_empty now tests literal emptiness.** Whitespace-only strings return false; use is_blank for whitespace checks. Empty strings, null, empty arrays and empty maps still return true.
|
|
@@ -14,11 +15,11 @@ All notable public-preview changes for `@lmctl-ai/lmctl` are recorded here.
|
|
|
14
15
|
|
|
15
16
|
- **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.
|
|
16
17
|
|
|
17
|
-
- **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/
|
|
18
|
+
- **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/teamfile-seed recording remains deferred. Claude wire split certification reuses the native omitted-zero policy; an omitted total still requires both halves.
|
|
18
19
|
|
|
19
20
|
- **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.
|
|
20
21
|
|
|
21
|
-
- **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.
|
|
22
|
+
- **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. Teamfile seeds, native extraction and price tables remain planned; historical/older-writer rows are not backfilled. Accounting failure never changes the turn result.
|
|
22
23
|
|
|
23
24
|
- **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.
|
|
24
25
|
- **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": "03dfd5c30910ebe50b85f99b2f8e23970c6a0e2e", "dirty": false, "builtAt": "2026-10-06T09:57:41.000Z"}
|