@primitive.ai/prim 0.1.0-alpha.123 → 0.1.0-alpha.125

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.
Files changed (45) hide show
  1. package/README.md +90 -0
  2. package/dist/{chunk-RUEIVZ6T.js → chunk-2BEUR3DU.js} +2 -2
  3. package/dist/{chunk-5ME3WD3P.js → chunk-6KXQQ7CQ.js} +6 -3
  4. package/dist/{chunk-CWV5ZQR6.js → chunk-6OPSSJHO.js} +5 -5
  5. package/dist/{chunk-4NUGCUQC.js → chunk-74DQDWLW.js} +2 -2
  6. package/dist/{chunk-WN7OURQ3.js → chunk-BFYJLI7V.js} +1 -1
  7. package/dist/{chunk-T2T45KF6.js → chunk-DT7E3SD5.js} +4 -4
  8. package/dist/{chunk-DQ4I3FLF.js → chunk-EZXIKEMA.js} +3 -3
  9. package/dist/{chunk-4M23K2KZ.js → chunk-FYYHBOOM.js} +2 -2
  10. package/dist/{chunk-3WQ7SBOZ.js → chunk-HPA7RGSZ.js} +3 -3
  11. package/dist/{chunk-NL5VU7EU.js → chunk-JFWJN2ME.js} +3 -3
  12. package/dist/{chunk-GOMEWFMG.js → chunk-L32WYFJT.js} +143 -61
  13. package/dist/{chunk-OXW6PSPT.js → chunk-NBNQI3YJ.js} +15 -3
  14. package/dist/{chunk-LOFMI3D4.js → chunk-ND6TYHNI.js} +2 -2
  15. package/dist/{chunk-4GYJHN26.js → chunk-NJBN3WXF.js} +1607 -549
  16. package/dist/{chunk-HLMC7VS4.js → chunk-O73J3KQQ.js} +5702 -2860
  17. package/dist/{chunk-JZC2LHS6.js → chunk-PPZ56EVJ.js} +1 -1
  18. package/dist/{chunk-FXXMDO7D.js → chunk-R35M4RCY.js} +4 -4
  19. package/dist/chunk-TI37ME2D.js +210 -0
  20. package/dist/{chunk-NMZSCSMY.js → chunk-YP4OXKNX.js} +13 -1
  21. package/dist/{chunk-S3ZIMGXV.js → chunk-ZKXNJB6U.js} +76 -2
  22. package/dist/daemon/server.js +12321 -8354
  23. package/dist/hook-runtime/daemon/server.js +12321 -8354
  24. package/dist/hook-runtime/hooks/post-commit.js +6743 -3634
  25. package/dist/hook-runtime/hooks/post-rewrite.js +6776 -3668
  26. package/dist/hook-runtime/hooks/post-tool-use.js +7108 -3140
  27. package/dist/hook-runtime/hooks/pre-commit.js +1263 -280
  28. package/dist/hook-runtime/hooks/pre-tool-use-worker.js +15115 -11297
  29. package/dist/hook-runtime/hooks/prim-hook.js +10879 -7024
  30. package/dist/hook-runtime/hooks/session-end.js +399 -139
  31. package/dist/hook-runtime/hooks/session-start.js +13277 -9454
  32. package/dist/hook-runtime/index.js +17575 -13050
  33. package/dist/hook-runtime/statusline-main.js +375 -122
  34. package/dist/hooks/post-commit.js +7 -7
  35. package/dist/hooks/post-rewrite.js +6 -6
  36. package/dist/hooks/post-tool-use.js +31 -21
  37. package/dist/hooks/pre-commit.js +4 -4
  38. package/dist/hooks/pre-tool-use-worker.js +9 -9
  39. package/dist/hooks/prim-hook.js +16 -16
  40. package/dist/hooks/session-end.js +4 -4
  41. package/dist/hooks/session-start.js +16 -12
  42. package/dist/index.js +9124 -8763
  43. package/dist/statusline-main.js +375 -122
  44. package/package.json +3 -1
  45. package/dist/chunk-RRAC76LJ.js +0 -36
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primitive.ai/prim",
3
- "version": "0.1.0-alpha.123",
3
+ "version": "0.1.0-alpha.125",
4
4
  "description": "CLI for Primitive's decision graph — passive decision capture, conflict gate, and team presence",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -70,6 +70,7 @@
70
70
  "typecheck": "tsc --noEmit",
71
71
  "check:reconcile-golden": "node scripts/check-reconcile-golden.mjs",
72
72
  "test": "vitest run",
73
+ "test:machine-runtime": "node scripts/check-machine-runtime.mjs",
73
74
  "test:preflight-host": "node scripts/check-codex-preflight-host.mjs",
74
75
  "test:preflight-host:claude": "node scripts/check-claude-preflight-host.mjs",
75
76
  "test:preflight-v4": "node scripts/check-preflight-v4-e2e.mjs",
@@ -82,6 +83,7 @@
82
83
  "@lezer/common": "^1.5.4",
83
84
  "@lezer/javascript": "^1.5.6",
84
85
  "@lezer/python": "^1.1.19",
86
+ "@napi-rs/keyring": "2.1.2",
85
87
  "commander": "^12.1.0",
86
88
  "diff": "^5.2.0",
87
89
  "unbash": "4.0.3",
@@ -1,36 +0,0 @@
1
- import {
2
- scheduleCollectScopeRefresh
3
- } from "./chunk-HLMC7VS4.js";
4
-
5
- // src/ingest-response.ts
6
- var IngestAcknowledgementError = class extends Error {
7
- constructor(message) {
8
- super(message);
9
- this.name = "IngestAcknowledgementError";
10
- }
11
- };
12
- function requireDurableIngestAcknowledgement(value, expected, cwd = process.cwd()) {
13
- if (typeof value !== "object" || value === null) {
14
- throw new IngestAcknowledgementError("ingest response was not an object");
15
- }
16
- const response = value;
17
- if (response.disposition !== "persisted") {
18
- throw new IngestAcknowledgementError("ingest response did not confirm persistence");
19
- }
20
- if (response.acknowledged !== expected) {
21
- throw new IngestAcknowledgementError(
22
- `ingest acknowledged ${String(response.acknowledged)} of ${String(expected)} moves`
23
- );
24
- }
25
- if (typeof response.collectScopeVersion === "number" && Number.isSafeInteger(response.collectScopeVersion) && response.collectScopeVersion >= 0) {
26
- const roots = typeof cwd === "string" ? [cwd] : cwd;
27
- for (const root of new Set(roots)) {
28
- scheduleCollectScopeRefresh(root, response.collectScopeVersion);
29
- }
30
- }
31
- return value;
32
- }
33
-
34
- export {
35
- requireDurableIngestAcknowledgement
36
- };