@primitive.ai/prim 0.1.0-alpha.128 → 0.1.0-alpha.129

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 (43) hide show
  1. package/dist/{chunk-6QAXVFRJ.js → chunk-BVGASV3B.js} +942 -123
  2. package/dist/{chunk-M6KIDB5R.js → chunk-DYXCJ6WZ.js} +10 -10
  3. package/dist/{chunk-B3ICJZXV.js → chunk-FHDTJP2C.js} +2 -2
  4. package/dist/{chunk-XINFTNA2.js → chunk-HDL3UXYJ.js} +5 -5
  5. package/dist/{chunk-C357P37M.js → chunk-IJ3W2YBM.js} +4 -4
  6. package/dist/{chunk-N6PZE7HX.js → chunk-IZAEAALI.js} +2 -2
  7. package/dist/{chunk-PTZ6BWSU.js → chunk-KZNOT2YH.js} +2 -2
  8. package/dist/{chunk-P4O7L7JZ.js → chunk-L7U3G4XR.js} +2 -2
  9. package/dist/{chunk-EQWUCFXK.js → chunk-LBZJD2I4.js} +3 -5
  10. package/dist/{chunk-PRJ7P6J5.js → chunk-MMMY57UA.js} +22 -837
  11. package/dist/{chunk-WEGZGF3K.js → chunk-NWWTFQP2.js} +1 -1
  12. package/dist/{chunk-NYDM4HSS.js → chunk-QSDWWEHF.js} +2 -2
  13. package/dist/{chunk-3KPTVK4N.js → chunk-RAEOSDQ6.js} +1 -1
  14. package/dist/{chunk-E57UVUJL.js → chunk-RS5ADTDF.js} +4 -4
  15. package/dist/{chunk-ANMNGGTN.js → chunk-RWJ7WHTJ.js} +2 -2
  16. package/dist/{chunk-RDT2IV2Z.js → chunk-SJE7OWVS.js} +3 -3
  17. package/dist/{chunk-VLT2KGPE.js → chunk-USJ4JGDC.js} +3 -3
  18. package/dist/{chunk-ZCT23NBS.js → chunk-YPHDV5AS.js} +2 -2
  19. package/dist/{chunk-QQ3G5SXX.js → chunk-YSV43WLK.js} +1 -1
  20. package/dist/{chunk-4DYEBYKM.js → chunk-ZKIBD5MO.js} +2 -2
  21. package/dist/daemon/server.js +624 -289
  22. package/dist/hook-runtime/daemon/server.js +624 -289
  23. package/dist/hook-runtime/hooks/post-commit.js +307 -186
  24. package/dist/hook-runtime/hooks/post-rewrite.js +302 -181
  25. package/dist/hook-runtime/hooks/post-tool-use.js +490 -276
  26. package/dist/hook-runtime/hooks/pre-commit.js +516 -181
  27. package/dist/hook-runtime/hooks/pre-tool-use-worker.js +221 -7
  28. package/dist/hook-runtime/hooks/prim-hook.js +511 -297
  29. package/dist/hook-runtime/hooks/session-end.js +229 -229
  30. package/dist/hook-runtime/hooks/session-start.js +170 -14
  31. package/dist/hook-runtime/index.js +1623 -1607
  32. package/dist/hook-runtime/statusline-main.js +245 -124
  33. package/dist/hooks/post-commit.js +7 -7
  34. package/dist/hooks/post-rewrite.js +6 -6
  35. package/dist/hooks/post-tool-use.js +15 -15
  36. package/dist/hooks/pre-commit.js +4 -4
  37. package/dist/hooks/pre-tool-use-worker.js +9 -9
  38. package/dist/hooks/prim-hook.js +16 -16
  39. package/dist/hooks/session-end.js +4 -4
  40. package/dist/hooks/session-start.js +12 -13
  41. package/dist/index.js +24 -24
  42. package/dist/statusline-main.js +245 -124
  43. package/package.json +1 -1
@@ -4,7 +4,7 @@ import {
4
4
  machineContext,
5
5
  primConfigDirectory,
6
6
  resolveAuthCredential
7
- } from "./chunk-6QAXVFRJ.js";
7
+ } from "./chunk-BVGASV3B.js";
8
8
 
9
9
  // src/daemon/principal.ts
10
10
  import { createHash } from "crypto";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getClient
3
- } from "./chunk-3KPTVK4N.js";
3
+ } from "./chunk-RAEOSDQ6.js";
4
4
  import {
5
5
  localGitConfigValue,
6
6
  setLocalGitConfigValue,
7
7
  terminalSafeLine
8
- } from "./chunk-6QAXVFRJ.js";
8
+ } from "./chunk-BVGASV3B.js";
9
9
  import {
10
10
  __commonJS,
11
11
  __toESM
@@ -34,7 +34,7 @@ import {
34
34
  terminalSafeLine,
35
35
  withFileLock,
36
36
  workosConnectTokenEndpoint
37
- } from "./chunk-6QAXVFRJ.js";
37
+ } from "./chunk-BVGASV3B.js";
38
38
 
39
39
  // src/decisions/identity.ts
40
40
  var PUBLIC_ID = /^dec_[0-9a-f]{8}$/u;
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  formatStatusline
3
- } from "./chunk-4DYEBYKM.js";
3
+ } from "./chunk-ZKIBD5MO.js";
4
4
  import {
5
5
  daemonPrincipalsMatch,
6
6
  daemonRequest,
7
7
  resolveDaemonPrincipal
8
- } from "./chunk-WEGZGF3K.js";
8
+ } from "./chunk-NWWTFQP2.js";
9
9
  import {
10
10
  getSiteUrl,
11
11
  isSessionEnded
12
- } from "./chunk-3KPTVK4N.js";
12
+ } from "./chunk-RAEOSDQ6.js";
13
13
  import {
14
14
  decisionIngestionStatus,
15
15
  gitToplevel,
@@ -18,7 +18,7 @@ import {
18
18
  repositoryBindingState,
19
19
  terminalSafeText,
20
20
  withFileLock
21
- } from "./chunk-6QAXVFRJ.js";
21
+ } from "./chunk-BVGASV3B.js";
22
22
 
23
23
  // src/hooks/codex-context.ts
24
24
  import { createHash, randomBytes as randomBytes2 } from "crypto";
@@ -11,10 +11,10 @@ import {
11
11
  saveRun,
12
12
  sessionExcluded,
13
13
  sessionKey
14
- } from "./chunk-EQWUCFXK.js";
14
+ } from "./chunk-LBZJD2I4.js";
15
15
  import {
16
16
  packageVersion
17
- } from "./chunk-6QAXVFRJ.js";
17
+ } from "./chunk-BVGASV3B.js";
18
18
 
19
19
  // src/demo/isolation.ts
20
20
  import { existsSync } from "fs";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  daemonRequest
3
- } from "./chunk-WEGZGF3K.js";
3
+ } from "./chunk-NWWTFQP2.js";
4
4
  import {
5
5
  getClient,
6
6
  getSiteUrl
7
- } from "./chunk-3KPTVK4N.js";
7
+ } from "./chunk-RAEOSDQ6.js";
8
8
  import {
9
9
  canonicalGitRoot,
10
10
  canonicalRepositoryPath,
@@ -13,7 +13,7 @@ import {
13
13
  isClaudeCloudSession,
14
14
  repoSyncId,
15
15
  terminalSafeLine
16
- } from "./chunk-6QAXVFRJ.js";
16
+ } from "./chunk-BVGASV3B.js";
17
17
 
18
18
  // src/daemon/proxy.ts
19
19
  var DAEMON_HTTP_TIMEOUT_MS = 1e4;
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  isMoveIngestRequest,
3
3
  scheduleCollectScopeRefresh
4
- } from "./chunk-NYDM4HSS.js";
4
+ } from "./chunk-QSDWWEHF.js";
5
5
  import {
6
6
  getPinnedClient,
7
7
  getSiteUrl
8
- } from "./chunk-3KPTVK4N.js";
8
+ } from "./chunk-RAEOSDQ6.js";
9
9
  import {
10
10
  identityPending,
11
11
  machineApiUrl,
12
12
  machineJournalBucket,
13
13
  machinePendingBucket,
14
14
  parseMachineIdentity
15
- } from "./chunk-6QAXVFRJ.js";
15
+ } from "./chunk-BVGASV3B.js";
16
16
 
17
17
  // src/ingest-response.ts
18
18
  var IngestAcknowledgementError = class extends Error {
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-EZXEWFDG.js";
4
4
  import {
5
5
  scrubEnvironmentPaths
6
- } from "./chunk-P4O7L7JZ.js";
6
+ } from "./chunk-L7U3G4XR.js";
7
7
  import {
8
8
  isValidRepoSyncId
9
- } from "./chunk-6QAXVFRJ.js";
9
+ } from "./chunk-BVGASV3B.js";
10
10
 
11
11
  // src/hooks/prim-hook-core.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  atomicWriteFile,
3
3
  repoActiveFlag
4
- } from "./chunk-6QAXVFRJ.js";
4
+ } from "./chunk-BVGASV3B.js";
5
5
 
6
6
  // src/lib/commit-heartbeat.ts
7
7
  import { execFileSync } from "child_process";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  boundedHealthError
3
- } from "./chunk-NYDM4HSS.js";
3
+ } from "./chunk-QSDWWEHF.js";
4
4
  import {
5
5
  hasMachineConfiguration,
6
6
  stripControlChars
7
- } from "./chunk-6QAXVFRJ.js";
7
+ } from "./chunk-BVGASV3B.js";
8
8
 
9
9
  // src/lib/delivery-backlog.ts
10
10
  var MS_PER_SECOND = 1e3;