@primitive.ai/prim 0.1.0-alpha.121 → 0.1.0-alpha.122
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 +26 -0
- package/dist/{chunk-DVHD6LBQ.js → chunk-4M23K2KZ.js} +1 -1
- package/dist/{chunk-2PFJJO2M.js → chunk-4NUGCUQC.js} +1 -1
- package/dist/{chunk-JXRJLHE4.js → chunk-5ME3WD3P.js} +1 -1
- package/dist/{chunk-MRDY7VQP.js → chunk-FT673ALA.js} +1 -1
- package/dist/{chunk-6DEROXLM.js → chunk-HLMC7VS4.js} +2613 -939
- package/dist/{chunk-BHT6X3T5.js → chunk-JYPVPYW3.js} +1 -1
- package/dist/{chunk-M4NZJCPQ.js → chunk-QG3GASJO.js} +3 -3
- package/dist/{chunk-NQZLXYTW.js → chunk-RRAC76LJ.js} +1 -1
- package/dist/{chunk-2DNC2MUN.js → chunk-T2T45KF6.js} +1 -1
- package/dist/{chunk-LQLP26RL.js → chunk-ZQ7UK5US.js} +3 -3
- package/dist/daemon/server.js +2613 -939
- package/dist/hook-runtime/daemon/server.js +2613 -939
- package/dist/hook-runtime/hooks/post-commit.js +2613 -939
- package/dist/hook-runtime/hooks/post-rewrite.js +2613 -939
- package/dist/hook-runtime/hooks/post-tool-use.js +2613 -939
- package/dist/hook-runtime/hooks/pre-tool-use-worker.js +2613 -939
- package/dist/hook-runtime/hooks/prim-hook.js +2613 -939
- package/dist/hook-runtime/hooks/session-start.js +2613 -939
- package/dist/hook-runtime/index.js +2683 -953
- package/dist/hooks/post-commit.js +3 -3
- package/dist/hooks/post-rewrite.js +3 -3
- package/dist/hooks/post-tool-use.js +9 -9
- package/dist/hooks/pre-tool-use-worker.js +5 -5
- package/dist/hooks/prim-hook.js +8 -8
- package/dist/hooks/session-start.js +3 -3
- package/dist/index.js +76 -20
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -383,6 +383,14 @@ prim decisions unlink <child> --on <parent> # Remove that dependency
|
|
|
383
383
|
`<id>` uses the canonical `dec_<8 hex>` Decision ID; bare short IDs and legacy full IDs remain accepted as inputs. STDOUT is machine-readable
|
|
384
384
|
JSON; human-readable status goes to STDERR.
|
|
385
385
|
|
|
386
|
+
`decisions show` prints the maker and decided date. Imported seeds retain the
|
|
387
|
+
historical date's qualification (`on or about` or `no later than`) and precision;
|
|
388
|
+
day-only evidence stays on its original calendar day in every timezone. Missing
|
|
389
|
+
metadata, including seeds from older servers, reads `Decision maker unknown` or
|
|
390
|
+
`date unknown`. When available, the import timestamp and operational importer
|
|
391
|
+
appear separately. `decisions recent` uses calendar dates for older rows and
|
|
392
|
+
keeps the server's existing ordering and recency-window behavior.
|
|
393
|
+
|
|
386
394
|
`decisions check` uses the checkout's current Primitive repository binding and
|
|
387
395
|
Git branch. Paths are relative to the repository root, including from a
|
|
388
396
|
subdirectory; paths for files that do not exist yet are supported. Discovery
|
|
@@ -586,6 +594,24 @@ pnpm typecheck # Type-check
|
|
|
586
594
|
pnpm lint # Lint
|
|
587
595
|
```
|
|
588
596
|
|
|
597
|
+
Validate seed metadata presentation and real CLI output against a local fixture
|
|
598
|
+
server after building:
|
|
599
|
+
|
|
600
|
+
```bash
|
|
601
|
+
pnpm check:seed-metadata-golden --cli dist/index.js
|
|
602
|
+
pnpm check:seed-metadata-golden --cli dist/index.js --server-dir /path/to/client
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
The second form also checks the candidate server's response fixtures against
|
|
606
|
+
the currently locked CLI validators, and old response fixtures against the
|
|
607
|
+
candidate server schema. It does not change contract provenance. The lock pins
|
|
608
|
+
the published backend commit containing the additive seed metadata contract.
|
|
609
|
+
For future contract changes, refresh the locked artifacts with
|
|
610
|
+
`pnpm contracts:update --revision <full-client-commit>`, then run
|
|
611
|
+
`pnpm contracts:generate`, `pnpm contracts:check`, and
|
|
612
|
+
`pnpm contracts:provenance`. Do not point the lock at a revision that lacks the
|
|
613
|
+
vendored bytes.
|
|
614
|
+
|
|
589
615
|
### Actual host validation
|
|
590
616
|
|
|
591
617
|
After `pnpm build`, optional E2E checks drive a real host's tool loop against a
|