@lmctl-ai/lmctl 0.2.108 → 0.2.110

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 CHANGED
@@ -4,6 +4,10 @@ All notable public-preview changes for `@lmctl-ai/lmctl` are recorded here.
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ - 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.
8
+
9
+ - **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.
10
+
7
11
  - **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.
8
12
  - **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.
9
13
 
@@ -19,7 +23,7 @@ All notable public-preview changes for `@lmctl-ai/lmctl` are recorded here.
19
23
 
20
24
  - **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.
21
25
 
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.
26
+ - **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 and native extraction remain planned; historical/older-writer rows are not backfilled. Accounting failure never changes the turn result.
23
27
 
24
28
  - **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.
25
29
  - **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": "03dfd5c30910ebe50b85f99b2f8e23970c6a0e2e", "dirty": false, "builtAt": "2026-10-06T09:57:41.000Z"}
1
+ {"sha": "ce4729d7a4c0b2b1406124722ffd1d87bf1a58bc", "dirty": false, "builtAt": "2026-10-06T12:17:02.000Z"}