@tiangong-lca/cli 0.1.2 → 0.1.3
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/README.md
CHANGED
|
@@ -19,21 +19,23 @@ checkPaths:
|
|
|
19
19
|
- bin/**
|
|
20
20
|
- src/cli.ts
|
|
21
21
|
- src/main.ts
|
|
22
|
+
- src/auth-identity-receipt.ts
|
|
22
23
|
- src/batch.ts
|
|
23
24
|
- src/command-spec.ts
|
|
24
25
|
- src/lib/auth-identity-receipt.ts
|
|
25
26
|
- src/lib/lca-release.ts
|
|
26
27
|
- scripts/run-auth-identity-production-case.ts
|
|
27
28
|
- test/auth-identity*.test.ts
|
|
29
|
+
- test/public-auth-identity-receipt.test.ts
|
|
28
30
|
- test/lca-release*.test.ts
|
|
29
|
-
lastReviewedAt: 2026-08-
|
|
30
|
-
lastReviewedCommit:
|
|
31
|
-
lastReviewedNote: 'Reviewed for Issue #
|
|
31
|
+
lastReviewedAt: 2026-08-29
|
|
32
|
+
lastReviewedCommit: f460f0567faac6e89e53d259fbd29d1dfccd058d
|
|
33
|
+
lastReviewedNote: 'Reviewed for Issue #242: identifies 0.1.3 as the release-only package identity for the public auth receipt parser while runtime, exports, dependencies, and release behavior stay fixed.'
|
|
32
34
|
---
|
|
33
35
|
|
|
34
36
|
# TianGong LCA CLI
|
|
35
37
|
|
|
36
|
-
Package: `@tiangong-lca/cli` Executable: `tiangong-lca` Current package version: `0.1.
|
|
38
|
+
Package: `@tiangong-lca/cli` Executable: `tiangong-lca` Current package version: `0.1.3` Node: `24.19.0`
|
|
37
39
|
|
|
38
40
|
Repository development is single-track on pnpm `11.24.0` and TypeScript `7.0.2`. The published package remains a clean, package-manager-neutral consumer artifact: it contains runtime files only, not pnpm, TypeScript, Oxlint, tests, source-only tooling, or repository lockfiles.
|
|
39
41
|
|
|
@@ -53,6 +55,10 @@ Review note, 2026-08-26: Issue #236 changes only the repository and clean-consum
|
|
|
53
55
|
|
|
54
56
|
Review note, 2026-08-26: Issue #237 releases the already reviewed bounded CommandSpec/batch runtime and pnpm 11.24 toolchain as `@tiangong-lca/cli@0.1.2`. The release changes only package metadata and four live CLI-version fixtures; runtime files, public subpaths and object identities, dependencies, the sole lock, Node 24.19.0, TypeScript 7.0.2, package-manager-neutral consumers, and automated provenance path remain unchanged.
|
|
55
57
|
|
|
58
|
+
Review note, 2026-08-29: Issue #240 adds the typed `@tiangong-lca/cli/auth-identity-receipt` public parser entry without changing package version 0.1.2 or auth behavior. It directly re-exports the existing strict parser, schema/timeout constants, and receipt types; the remote runner and test internals stay private, and the previous `dist/src/lib/**` deep path remains blocked.
|
|
59
|
+
|
|
60
|
+
Review note, 2026-08-29: Issue #242 releases that public parser as `@tiangong-lca/cli@0.1.3`. Only package identity and four existing exact-version fixtures change; `./batch`, `./command-spec`, `./auth-identity-receipt`, the executable, dependencies, pnpm lock, Node 24.19.0 / TypeScript 7.0.2 toolchain, and package-manager-neutral consumer contract are otherwise unchanged.
|
|
61
|
+
|
|
56
62
|
Review note, 2026-07-12: `dataset maintenance plan/apply/verify` provides current-user RLS-scoped exact-row maintenance with immutable plans, explicit approval, per-action logs, platform audit correlation, and independent readback. `merge-support-aliases` now runs only in `target_mode=owner_draft`: source/target support and all changed rows stay private `state_code=0`; publication is a separate future workflow.
|
|
57
63
|
|
|
58
64
|
Review note, 2026-07-13: maintenance scans now prove exact-count pagination even when PostgREST returns fewer rows than the requested `--page-size`. An incomplete or inconsistent scan fails before artifacts, approval, or mutation; under stable filtered membership/order the proof represents a complete ordered multi-request traversal, not one transaction-level/MVCC snapshot.
|
|
@@ -108,11 +114,12 @@ node ./bin/tiangong-lca.js --help
|
|
|
108
114
|
|
|
109
115
|
The package exposes only these supported module APIs in addition to the executable launcher subpath:
|
|
110
116
|
|
|
117
|
+
- `@tiangong-lca/cli/auth-identity-receipt` parses the exact safe receipt projection offline and exports its schema, Node-safe timeout ceiling, and receipt types. It does not expose session resolution, network execution, or test internals; callers that need a fresh receipt still invoke the CLI command.
|
|
111
118
|
- `@tiangong-lca/cli/command-spec` parses, creates, artifact-binds, and executes exact `tiangong-foundry.command-spec.v1` objects. `display` is diagnostic only; executable plus argv and binding bytes/SHA-256 form the canonical authority. Sync and async execution always use `shell:false`; async callers may inject resolver, clock, sleep, spawn, timeout, and abort adapters. `timeoutMs` must fit Node's maximum timer delay.
|
|
112
119
|
- `@tiangong-lca/cli/batch` runs bounded generic work with an overall run contract and a required per-item `{ item_id, content_sha256, policy_sha256 }` contract. Every identity/content/policy/resource projection is validated before work starts and rechecked before resumed acceptance or a fresh claim. Identity changes or getter failures emit `item_identity_drift` with `BatchItemIdentityDriftError`, execute zero attempts, and do not let the batch return before other in-flight items drain. An escaping scheduler/event/stop callback records the first infrastructure error, closes further claims, awaits all worker settlements, then rejects. Input order, truthful resource-aware claim order, completion order, pause/stop behavior, awaited monotonic events, and exception isolation are explicit. Optional exclusive keys serialize only matching resources; a blocked key remains unclaimed and consumes no worker while later free keys may use the public ceiling of 64 workers. Per-resource FIFO queues expose only their head through an ordered binary min-heap, giving near `O(n log k)` ready scheduling for `k` resources.
|
|
113
120
|
- Mutation batches reject automatic retry. A consumed or ambiguous mutation can continue only through an explicitly supplied readback-recovery callback; resume requires exact run and item contracts, and each resumed or rejected result participates in stop decisions before fresh claims. Retry/backoff values must be non-negative safe integers within Node's timer limit. Exclusive keys must be runtime strings. `withBatchRunLock` gives one canonical run directory one cross-process lock domain, permits reentrancy only from a still-live scope owned by the current holder, keeps the top-level promise pending until detached nested scopes drain, rejects completed-context reentry into a later owner, preserves live or foreign-host locks, and stale-recovers only a same-host dead PID. Public lock callers cannot set PID, host, or ownership time; timeout/poll values are non-negative safe integers within Node's timer limit.
|
|
114
121
|
|
|
115
|
-
The packed ESM, CJS dynamic-import, and TypeScript consumers exercise
|
|
122
|
+
The packed ESM, CJS dynamic-import, and TypeScript consumers exercise every public subpath and generated declaration. Deep imports and `import '@tiangong-lca/cli'` remain unsupported.
|
|
116
123
|
|
|
117
124
|
## Env
|
|
118
125
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-identity-receipt.js","sourceRoot":"","sources":["../../src/auth-identity-receipt.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,gCAAgC,CAAC","sourcesContent":["export {\n AUTH_IDENTITY_MAX_TIMEOUT_MS,\n AUTH_IDENTITY_RECEIPT_SCHEMA,\n parseAuthIdentityReceipt,\n} from './lib/auth-identity-receipt.js';\nexport type { AuthIdentityReceipt, AuthIdentityReceiptScope } from './lib/auth-identity-receipt.js';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiangong-lca/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Unified TianGong LCA CLI with direct REST adapters and low-entropy command surface.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
},
|
|
17
17
|
"exports": {
|
|
18
18
|
"./bin/tiangong-lca.js": "./bin/tiangong-lca.js",
|
|
19
|
+
"./auth-identity-receipt": {
|
|
20
|
+
"types": "./dist/src/auth-identity-receipt.d.ts",
|
|
21
|
+
"import": "./dist/src/auth-identity-receipt.js"
|
|
22
|
+
},
|
|
19
23
|
"./command-spec": {
|
|
20
24
|
"types": "./dist/src/command-spec.d.ts",
|
|
21
25
|
"import": "./dist/src/command-spec.js"
|