@primitive.ai/prim 0.1.0-alpha.97 → 0.1.0-alpha.99

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 (41) hide show
  1. package/README.md +20 -0
  2. package/dist/{chunk-ZYK3TBEW.js → chunk-25DDRMWS.js} +4 -6
  3. package/dist/{chunk-LY6NJ7KL.js → chunk-2IRLFOEL.js} +123 -19
  4. package/dist/{chunk-27ADT6FQ.js → chunk-2Q3OGSTV.js} +44 -6
  5. package/dist/{chunk-35FMRWJH.js → chunk-5LRKJTLA.js} +1 -1
  6. package/dist/{chunk-RK4ZS3HG.js → chunk-6C3CCVDI.js} +2 -2
  7. package/dist/{chunk-UO2U6IKF.js → chunk-7VIMU2HR.js} +1 -1
  8. package/dist/{chunk-OW4GJBLW.js → chunk-EJPKZT5M.js} +2 -2
  9. package/dist/{chunk-2MBV7ZMV.js → chunk-FK7FJPWS.js} +1 -1
  10. package/dist/{chunk-4GHANPWQ.js → chunk-JJI7FU24.js} +2 -2
  11. package/dist/{chunk-AJYZB5PF.js → chunk-JJYS7IPD.js} +3 -3
  12. package/dist/{chunk-Y5W4TZM7.js → chunk-K4JWJ6OM.js} +80 -269
  13. package/dist/{chunk-XEDJ5N3M.js → chunk-KGBMU76T.js} +2 -4
  14. package/dist/{chunk-7KABYYWG.js → chunk-O2WV5SQZ.js} +11 -13
  15. package/dist/{chunk-FBPZ4YUD.js → chunk-X5BN67D2.js} +2 -2
  16. package/dist/{chunk-DWRSEC34.js → chunk-XG7S3LIL.js} +596 -16
  17. package/dist/{chunk-3I4GEWXQ.js → chunk-XPS6LG6I.js} +8 -12
  18. package/dist/{chunk-QNPTWTBG.js → chunk-ZNLIGT3J.js} +2 -2
  19. package/dist/daemon/server.js +247 -180
  20. package/dist/hook-runtime/daemon/server.js +247 -180
  21. package/dist/hook-runtime/hooks/post-commit.js +114 -59
  22. package/dist/hook-runtime/hooks/post-rewrite.js +109 -54
  23. package/dist/hook-runtime/hooks/post-tool-use.js +256 -156
  24. package/dist/hook-runtime/hooks/pre-commit.js +374 -31
  25. package/dist/hook-runtime/hooks/pre-tool-use.js +237 -137
  26. package/dist/hook-runtime/hooks/prim-hook.js +281 -181
  27. package/dist/hook-runtime/hooks/session-start.js +209 -109
  28. package/dist/hook-runtime/index.js +656 -521
  29. package/dist/hook-runtime/statusline-main.js +71 -16
  30. package/dist/hooks/post-commit.js +7 -8
  31. package/dist/hooks/post-rewrite.js +6 -7
  32. package/dist/hooks/post-tool-use.js +13 -14
  33. package/dist/hooks/pre-commit.js +4 -4
  34. package/dist/hooks/pre-tool-use.js +11 -14
  35. package/dist/hooks/prim-hook.js +14 -15
  36. package/dist/hooks/session-end.js +6 -7
  37. package/dist/hooks/session-start.js +13 -14
  38. package/dist/index.js +33 -35
  39. package/dist/statusline-main.js +71 -16
  40. package/package.json +1 -1
  41. package/dist/chunk-DHOQGHKQ.js +0 -379
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/commands/statusline.ts
4
- import { readFileSync as readFileSync5 } from "fs";
5
- import { dirname as dirname5, resolve as resolve3 } from "path";
6
- import { fileURLToPath } from "url";
4
+ import { readFileSync as readFileSync7 } from "fs";
5
+ import { dirname as dirname6, resolve as resolve3 } from "path";
6
+ import { fileURLToPath as fileURLToPath2 } from "url";
7
7
 
8
8
  // src/client.ts
9
9
  import { createHash as createHash2 } from "crypto";
10
- import { chmodSync, existsSync as existsSync2, mkdirSync as mkdirSync3, readFileSync as readFileSync3, rmSync as rmSync3 } from "fs";
11
- import { dirname as dirname3 } from "path";
10
+ import { chmodSync as chmodSync2, existsSync as existsSync3, mkdirSync as mkdirSync3, readFileSync as readFileSync5, rmSync as rmSync3 } from "fs";
11
+ import { dirname as dirname4 } from "path";
12
12
 
13
13
  // src/lib/atomic-file.ts
14
14
  import { randomUUID } from "crypto";
@@ -278,6 +278,61 @@ import { existsSync, mkdirSync as mkdirSync2, readFileSync as readFileSync2, rmS
278
278
  import { dirname as dirname2, join as join3 } from "path";
279
279
  var syncSleeper = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT));
280
280
 
281
+ // src/daemon/client-instance-id.ts
282
+ import { randomBytes as randomBytes2 } from "crypto";
283
+ import { chmodSync, lstatSync, readFileSync as readFileSync3 } from "fs";
284
+ import { join as join4 } from "path";
285
+ var INSTANCE_BODY_CHARS = 43;
286
+ var INSTANCE_PREFIX = "pci_";
287
+ var MAX_STORED_BYTES = INSTANCE_PREFIX.length + INSTANCE_BODY_CHARS + 1;
288
+
289
+ // src/lib/bin-path.ts
290
+ import { existsSync as existsSync2, readFileSync as readFileSync4 } from "fs";
291
+ import { dirname as dirname3, isAbsolute as isAbsolute2, join as join5 } from "path";
292
+ import { fileURLToPath } from "url";
293
+ var PKG_NAME = "@primitive.ai/prim";
294
+ var ROOT_WALK_LIMIT = 6;
295
+ var resolvedRoot;
296
+ function locateRoot() {
297
+ if (resolvedRoot !== void 0) {
298
+ return resolvedRoot;
299
+ }
300
+ let dir = dirname3(fileURLToPath(import.meta.url));
301
+ for (let depth = 0; depth < ROOT_WALK_LIMIT; depth++) {
302
+ const manifestPath = join5(dir, "package.json");
303
+ if (existsSync2(manifestPath)) {
304
+ try {
305
+ const manifest = JSON.parse(readFileSync4(manifestPath, "utf-8"));
306
+ if (manifest.name === PKG_NAME && manifest.bin) {
307
+ resolvedRoot = { dir, version: manifest.version, bin: manifest.bin };
308
+ return resolvedRoot;
309
+ }
310
+ } catch {
311
+ }
312
+ }
313
+ const parent = dirname3(dir);
314
+ if (parent === dir) {
315
+ break;
316
+ }
317
+ dir = parent;
318
+ }
319
+ resolvedRoot = null;
320
+ return resolvedRoot;
321
+ }
322
+ function packageVersion() {
323
+ return locateRoot()?.version ?? null;
324
+ }
325
+ var PRIM_CONFIG_SHELL_RESOLVER = [
326
+ 'prim_absolute() { case "$1" in [/]* ) ;; *) return 1 ;; esac; case "$1" in [[:space:]]*|*[[:space:]]|*[/][/]*|*[/].[/]*|*[/]..[/]*|*[/].|*[/]..|?*[/]) return 1 ;; esac; }; ',
327
+ 'prim_config=${PRIM_CONFIG_DIR:-}; if ! prim_absolute "$prim_config"; then prim_config=${XDG_CONFIG_HOME:-}; if prim_absolute "$prim_config"; then ',
328
+ 'case "$prim_config" in /) prim_config=/prim ;; *) prim_config="$prim_config/prim" ;; esac; ',
329
+ 'else prim_home=${HOME:-}; prim_absolute "$prim_home" || exit 78; case "$prim_home" in /) prim_config=/.config/prim ;; *) prim_config="$prim_home/.config/prim" ;; esac; ',
330
+ "fi; fi; "
331
+ ].join("");
332
+
333
+ // src/lib/ingest-uploader.ts
334
+ var runtimeVersion = process.env.PRIM_RUNTIME_VERSION ?? packageVersion();
335
+
281
336
  // src/lib/terminal-safe.ts
282
337
  function replaceIsolatedSurrogates(value) {
283
338
  let out = "";
@@ -329,7 +384,7 @@ var CLI_MANAGEMENT_RESPONSE_MAX_BYTES = 2 * 1024 * 1024;
329
384
 
330
385
  // src/daemon/client.ts
331
386
  import { createConnection } from "net";
332
- import { join as join5 } from "path";
387
+ import { join as join7 } from "path";
333
388
 
334
389
  // src/daemon/principal.ts
335
390
  import { createHash as createHash3 } from "crypto";
@@ -376,7 +431,7 @@ function parseDaemonResponseEnvelope(value) {
376
431
  }
377
432
 
378
433
  // src/daemon/client.ts
379
- var SOCK_PATH = join5(primConfigDirectory(), "sock");
434
+ var SOCK_PATH = join7(primConfigDirectory(), "sock");
380
435
  var DEFAULT_TIMEOUT_MS = 250;
381
436
  var nextRequestId = 1;
382
437
  function daemonRequest(method, params = {}, opts = {}) {
@@ -465,15 +520,15 @@ function daemonRequest(method, params = {}, opts = {}) {
465
520
 
466
521
  // src/lib/activation.ts
467
522
  import { execFileSync as execFileSync2 } from "child_process";
468
- import { existsSync as existsSync3, readFileSync as readFileSync4 } from "fs";
523
+ import { existsSync as existsSync4, readFileSync as readFileSync6 } from "fs";
469
524
  import { homedir as homedir2 } from "os";
470
- import { join as join6 } from "path";
525
+ import { join as join8 } from "path";
471
526
 
472
527
  // src/lib/git.ts
473
528
  import { execFileSync } from "child_process";
474
529
  import { createHash as createHash4 } from "crypto";
475
- import { lstatSync, realpathSync } from "fs";
476
- import { basename, dirname as dirname4, isAbsolute as isAbsolute2, relative, resolve as resolve2, sep } from "path";
530
+ import { lstatSync as lstatSync2, realpathSync } from "fs";
531
+ import { basename, dirname as dirname5, isAbsolute as isAbsolute3, relative, resolve as resolve2, sep } from "path";
477
532
  var GIT_TIMEOUT_MS = 1e3;
478
533
  var GITHUB_OWNER_PATTERN = /^(?![A-Za-z0-9-]*--)[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?$/u;
479
534
  var GITHUB_REPOSITORY_PATTERN = /^[A-Za-z0-9._-]{1,100}$/u;
@@ -576,10 +631,10 @@ function hasProjectPrimInstall(cwd) {
576
631
  const root = gitToplevel(cwd);
577
632
  if (root === null || root === homedir2()) return false;
578
633
  for (const rel of PROJECT_INSTALL_FILES) {
579
- const path = join6(root, rel);
580
- if (existsSync3(path)) {
634
+ const path = join8(root, rel);
635
+ if (existsSync4(path)) {
581
636
  try {
582
- const content = readFileSync4(path, "utf-8");
637
+ const content = readFileSync6(path, "utf-8");
583
638
  if (PRIM_HOOK_BINS.some((bin) => content.includes(bin))) return true;
584
639
  } catch {
585
640
  }
@@ -726,7 +781,7 @@ function formatStatusline(version, snapshot, resolveIngestionStatus, options = {
726
781
  var STATUSLINE_TIMEOUT_MS = 200;
727
782
  function readPackageVersion() {
728
783
  try {
729
- const here = dirname5(fileURLToPath(import.meta.url));
784
+ const here = dirname6(fileURLToPath2(import.meta.url));
730
785
  const candidates = [
731
786
  // Schema-v2 runtimes staged a manifest beside this standalone bundle.
732
787
  // Keep resolving it while those legacy launchers transition to schema v3.
@@ -736,7 +791,7 @@ function readPackageVersion() {
736
791
  ];
737
792
  for (const path of candidates) {
738
793
  try {
739
- const pkg = JSON.parse(readFileSync5(path, "utf-8"));
794
+ const pkg = JSON.parse(readFileSync7(path, "utf-8"));
740
795
  if (pkg.version) {
741
796
  return pkg.version;
742
797
  }
@@ -1,33 +1,32 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  recordPostCommitFired
4
- } from "../chunk-XEDJ5N3M.js";
4
+ } from "../chunk-KGBMU76T.js";
5
5
  import {
6
6
  unattendedEnv
7
7
  } from "../chunk-OYHYCK4K.js";
8
8
  import {
9
9
  commitAttributionFromEnvironment,
10
10
  toCommitMove
11
- } from "../chunk-OW4GJBLW.js";
11
+ } from "../chunk-EJPKZT5M.js";
12
12
  import {
13
13
  getOrCreateWorkspaceId
14
14
  } from "../chunk-EZXEWFDG.js";
15
15
  import {
16
16
  appendMove,
17
17
  resolveOrg
18
- } from "../chunk-4GHANPWQ.js";
19
- import "../chunk-QNPTWTBG.js";
18
+ } from "../chunk-JJI7FU24.js";
19
+ import "../chunk-ZNLIGT3J.js";
20
20
  import {
21
21
  cachedCollectScopeAdmits
22
- } from "../chunk-ZYK3TBEW.js";
23
- import "../chunk-LY6NJ7KL.js";
22
+ } from "../chunk-25DDRMWS.js";
23
+ import "../chunk-2IRLFOEL.js";
24
24
  import {
25
25
  githubRepositoryFullName,
26
26
  isRepoActiveForCapture,
27
27
  repoSyncId,
28
28
  resolveRepositoryContext
29
- } from "../chunk-DHOQGHKQ.js";
30
- import "../chunk-DWRSEC34.js";
29
+ } from "../chunk-XG7S3LIL.js";
31
30
 
32
31
  // src/hooks/post-commit.ts
33
32
  import { execFileSync, spawn } from "child_process";
@@ -5,26 +5,25 @@ import {
5
5
  import {
6
6
  canonicalRewritePairs,
7
7
  toRewriteMove
8
- } from "../chunk-OW4GJBLW.js";
8
+ } from "../chunk-EJPKZT5M.js";
9
9
  import {
10
10
  getOrCreateWorkspaceId
11
11
  } from "../chunk-EZXEWFDG.js";
12
12
  import {
13
13
  appendMove,
14
14
  resolveOrg
15
- } from "../chunk-4GHANPWQ.js";
16
- import "../chunk-QNPTWTBG.js";
15
+ } from "../chunk-JJI7FU24.js";
16
+ import "../chunk-ZNLIGT3J.js";
17
17
  import {
18
18
  cachedCollectScopeAdmits
19
- } from "../chunk-ZYK3TBEW.js";
20
- import "../chunk-LY6NJ7KL.js";
19
+ } from "../chunk-25DDRMWS.js";
20
+ import "../chunk-2IRLFOEL.js";
21
21
  import {
22
22
  githubRepositoryFullName,
23
23
  isRepoActiveForCapture,
24
24
  repoSyncId,
25
25
  resolveRepositoryContext
26
- } from "../chunk-DHOQGHKQ.js";
27
- import "../chunk-DWRSEC34.js";
26
+ } from "../chunk-XG7S3LIL.js";
28
27
 
29
28
  // src/hooks/post-rewrite.ts
30
29
  import { execFileSync, spawn } from "child_process";
@@ -1,56 +1,55 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireDurableIngestAcknowledgement
4
- } from "../chunk-2MBV7ZMV.js";
4
+ } from "../chunk-FK7FJPWS.js";
5
5
  import {
6
6
  enrichHookPayloadWithFileRefs,
7
7
  preserveHookFileMetadata
8
- } from "../chunk-AJYZB5PF.js";
8
+ } from "../chunk-JJYS7IPD.js";
9
9
  import {
10
10
  postToolInvocationId,
11
11
  toMove,
12
12
  toolOutcomeFor
13
- } from "../chunk-OW4GJBLW.js";
13
+ } from "../chunk-EJPKZT5M.js";
14
14
  import {
15
15
  getOrCreateWorkspaceId
16
16
  } from "../chunk-EZXEWFDG.js";
17
17
  import {
18
18
  appendMove,
19
19
  resolveOrg
20
- } from "../chunk-4GHANPWQ.js";
20
+ } from "../chunk-JJI7FU24.js";
21
21
  import "../chunk-MXVCP33E.js";
22
22
  import {
23
23
  appendCodexContext,
24
24
  prepareCodexContext
25
- } from "../chunk-3I4GEWXQ.js";
26
- import "../chunk-FBPZ4YUD.js";
25
+ } from "../chunk-XPS6LG6I.js";
26
+ import "../chunk-X5BN67D2.js";
27
27
  import {
28
28
  scrubFromCwd
29
- } from "../chunk-QNPTWTBG.js";
29
+ } from "../chunk-ZNLIGT3J.js";
30
30
  import {
31
31
  bold,
32
32
  cachedCollectScopeAdmits,
33
33
  color
34
- } from "../chunk-ZYK3TBEW.js";
34
+ } from "../chunk-25DDRMWS.js";
35
35
  import {
36
36
  getClient,
37
37
  terminalSafeLine
38
- } from "../chunk-LY6NJ7KL.js";
38
+ } from "../chunk-2IRLFOEL.js";
39
39
  import {
40
40
  normalizeEnvelope,
41
41
  parseAgent,
42
42
  readHookStdin,
43
43
  shouldSuppressImportedCursorHandler
44
- } from "../chunk-RK4ZS3HG.js";
45
- import "../chunk-Y5W4TZM7.js";
44
+ } from "../chunk-6C3CCVDI.js";
45
+ import "../chunk-K4JWJ6OM.js";
46
+ import "../chunk-5LRKJTLA.js";
46
47
  import {
47
48
  currentBranch,
48
49
  isRepoActiveForCapture,
49
50
  repoSyncId,
50
51
  resolveRepositoryContext
51
- } from "../chunk-DHOQGHKQ.js";
52
- import "../chunk-35FMRWJH.js";
53
- import "../chunk-DWRSEC34.js";
52
+ } from "../chunk-XG7S3LIL.js";
54
53
 
55
54
  // src/hooks/post-tool-use.ts
56
55
  import { readFileSync } from "fs";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  checkAffectedDecisions,
4
4
  formatDecisionsWarning
5
- } from "../chunk-27ADT6FQ.js";
6
- import "../chunk-LY6NJ7KL.js";
7
- import "../chunk-35FMRWJH.js";
8
- import "../chunk-DWRSEC34.js";
5
+ } from "../chunk-2Q3OGSTV.js";
6
+ import "../chunk-2IRLFOEL.js";
7
+ import "../chunk-5LRKJTLA.js";
8
+ import "../chunk-XG7S3LIL.js";
9
9
 
10
10
  // src/hooks/pre-commit.ts
11
11
  import { execSync } from "child_process";
@@ -17,41 +17,38 @@ import {
17
17
  appendCodexContext,
18
18
  hasVisibleCodexMessage,
19
19
  prepareCodexContext
20
- } from "../chunk-3I4GEWXQ.js";
21
- import "../chunk-FBPZ4YUD.js";
20
+ } from "../chunk-XPS6LG6I.js";
21
+ import "../chunk-X5BN67D2.js";
22
22
  import {
23
23
  DEFAULT_RULES,
24
24
  scrub
25
- } from "../chunk-QNPTWTBG.js";
25
+ } from "../chunk-ZNLIGT3J.js";
26
26
  import {
27
27
  boundedHealthError,
28
28
  cachedCollectScopeAdmits
29
- } from "../chunk-ZYK3TBEW.js";
29
+ } from "../chunk-25DDRMWS.js";
30
30
  import {
31
31
  HttpError,
32
32
  getClient
33
- } from "../chunk-LY6NJ7KL.js";
33
+ } from "../chunk-2IRLFOEL.js";
34
34
  import {
35
35
  normalizeEnvelope,
36
36
  parseAgent,
37
37
  readHookStdin,
38
38
  shouldSuppressImportedCursorHandler
39
- } from "../chunk-RK4ZS3HG.js";
40
- import {
41
- packageVersion
42
- } from "../chunk-Y5W4TZM7.js";
39
+ } from "../chunk-6C3CCVDI.js";
40
+ import "../chunk-K4JWJ6OM.js";
41
+ import "../chunk-5LRKJTLA.js";
43
42
  import {
44
43
  canonicalGitRoot,
45
44
  canonicalRepositoryPath,
46
45
  currentBranch,
47
46
  githubRepositoryFullName,
48
47
  isRepoActive,
49
- repoSyncId
50
- } from "../chunk-DHOQGHKQ.js";
51
- import "../chunk-35FMRWJH.js";
52
- import {
48
+ packageVersion,
49
+ repoSyncId,
53
50
  resolveAuthCredential
54
- } from "../chunk-DWRSEC34.js";
51
+ } from "../chunk-XG7S3LIL.js";
55
52
 
56
53
  // src/hooks/preflight-v3.ts
57
54
  import { Buffer } from "buffer";
@@ -8,57 +8,56 @@ import {
8
8
  acknowledgeDecisionFeedback,
9
9
  leaseDecisionFeedback,
10
10
  renderFeedback
11
- } from "../chunk-UO2U6IKF.js";
11
+ } from "../chunk-7VIMU2HR.js";
12
12
  import {
13
13
  recordConversationCaptured
14
- } from "../chunk-XEDJ5N3M.js";
14
+ } from "../chunk-KGBMU76T.js";
15
15
  import {
16
16
  unattendedEnv
17
17
  } from "../chunk-OYHYCK4K.js";
18
18
  import {
19
19
  enrichHookPayloadWithFileRefs,
20
20
  preserveHookFileMetadata
21
- } from "../chunk-AJYZB5PF.js";
21
+ } from "../chunk-JJYS7IPD.js";
22
22
  import {
23
23
  postToolInvocationId,
24
24
  shouldFlushAfter,
25
25
  toMove
26
- } from "../chunk-OW4GJBLW.js";
26
+ } from "../chunk-EJPKZT5M.js";
27
27
  import {
28
28
  getOrCreateWorkspaceId
29
29
  } from "../chunk-EZXEWFDG.js";
30
30
  import {
31
31
  appendMove,
32
32
  resolveOrg
33
- } from "../chunk-4GHANPWQ.js";
33
+ } from "../chunk-JJI7FU24.js";
34
34
  import "../chunk-MXVCP33E.js";
35
35
  import {
36
36
  prepareCodexContext
37
- } from "../chunk-3I4GEWXQ.js";
38
- import "../chunk-FBPZ4YUD.js";
37
+ } from "../chunk-XPS6LG6I.js";
38
+ import "../chunk-X5BN67D2.js";
39
39
  import {
40
40
  scrubFromCwd,
41
41
  writeHookDebug
42
- } from "../chunk-QNPTWTBG.js";
42
+ } from "../chunk-ZNLIGT3J.js";
43
43
  import {
44
44
  cachedCollectScopeAdmits
45
- } from "../chunk-ZYK3TBEW.js";
46
- import "../chunk-LY6NJ7KL.js";
45
+ } from "../chunk-25DDRMWS.js";
46
+ import "../chunk-2IRLFOEL.js";
47
47
  import {
48
48
  normalizeEnvelope,
49
49
  parseAgent,
50
50
  readHookStdin,
51
51
  shouldSuppressImportedCursorHandler
52
- } from "../chunk-RK4ZS3HG.js";
53
- import "../chunk-Y5W4TZM7.js";
52
+ } from "../chunk-6C3CCVDI.js";
53
+ import "../chunk-K4JWJ6OM.js";
54
+ import "../chunk-5LRKJTLA.js";
54
55
  import {
55
56
  currentBranch,
56
57
  isRepoActiveForCapture,
57
58
  repoSyncId,
58
59
  resolveRepositoryContext
59
- } from "../chunk-DHOQGHKQ.js";
60
- import "../chunk-35FMRWJH.js";
61
- import "../chunk-DWRSEC34.js";
60
+ } from "../chunk-XG7S3LIL.js";
62
61
 
63
62
  // src/hooks/prim-hook.ts
64
63
  import { spawn } from "child_process";
@@ -4,15 +4,14 @@ import {
4
4
  parseAgent,
5
5
  readHookStdin,
6
6
  shouldSuppressImportedCursorHandler
7
- } from "../chunk-RK4ZS3HG.js";
8
- import "../chunk-Y5W4TZM7.js";
9
- import {
10
- isRepoActiveForCapture
11
- } from "../chunk-DHOQGHKQ.js";
7
+ } from "../chunk-6C3CCVDI.js";
8
+ import "../chunk-K4JWJ6OM.js";
12
9
  import {
13
10
  daemonRequest
14
- } from "../chunk-35FMRWJH.js";
15
- import "../chunk-DWRSEC34.js";
11
+ } from "../chunk-5LRKJTLA.js";
12
+ import {
13
+ isRepoActiveForCapture
14
+ } from "../chunk-XG7S3LIL.js";
16
15
 
17
16
  // src/hooks/session-end.ts
18
17
  var STDIN_TIMEOUT_MS = 1e3;
@@ -7,7 +7,7 @@ import {
7
7
  kickDaemonEnsure,
8
8
  refreshClaudePlugins,
9
9
  warmBinCache
10
- } from "../chunk-7KABYYWG.js";
10
+ } from "../chunk-O2WV5SQZ.js";
11
11
  import {
12
12
  buildHookOutput,
13
13
  handoffHookOutput
@@ -17,45 +17,44 @@ import {
17
17
  acknowledgeDecisionFeedback,
18
18
  leaseDecisionFeedback,
19
19
  renderFeedback
20
- } from "../chunk-UO2U6IKF.js";
20
+ } from "../chunk-7VIMU2HR.js";
21
21
  import {
22
22
  clearHooksWired,
23
23
  recordHooksWired
24
- } from "../chunk-XEDJ5N3M.js";
24
+ } from "../chunk-KGBMU76T.js";
25
25
  import "../chunk-OYHYCK4K.js";
26
26
  import {
27
27
  getOrCreateWorkspaceId
28
28
  } from "../chunk-EZXEWFDG.js";
29
29
  import {
30
30
  prepareCodexContext
31
- } from "../chunk-3I4GEWXQ.js";
32
- import "../chunk-FBPZ4YUD.js";
31
+ } from "../chunk-XPS6LG6I.js";
32
+ import "../chunk-X5BN67D2.js";
33
33
  import {
34
34
  fetchAndCacheCollectScope
35
- } from "../chunk-ZYK3TBEW.js";
35
+ } from "../chunk-25DDRMWS.js";
36
36
  import {
37
37
  getSiteUrl,
38
38
  isSessionEnded
39
- } from "../chunk-LY6NJ7KL.js";
39
+ } from "../chunk-2IRLFOEL.js";
40
40
  import {
41
41
  normalizeEnvelope,
42
42
  parseAgent,
43
43
  readHookStdin,
44
44
  shouldSuppressImportedCursorHandler
45
- } from "../chunk-RK4ZS3HG.js";
45
+ } from "../chunk-6C3CCVDI.js";
46
46
  import {
47
47
  MANAGED_GIT_HOOK_NAMES
48
- } from "../chunk-Y5W4TZM7.js";
48
+ } from "../chunk-K4JWJ6OM.js";
49
+ import {
50
+ daemonRequest
51
+ } from "../chunk-5LRKJTLA.js";
49
52
  import {
50
53
  gitToplevel,
51
54
  isRepoActiveForCapture,
52
55
  repoActiveFlag,
53
56
  setRepoActive
54
- } from "../chunk-DHOQGHKQ.js";
55
- import {
56
- daemonRequest
57
- } from "../chunk-35FMRWJH.js";
58
- import "../chunk-DWRSEC34.js";
57
+ } from "../chunk-XG7S3LIL.js";
59
58
 
60
59
  // src/hooks/reauth-notice.ts
61
60
  var REAUTH_NOTICE = "[prim] authentication ended \u2014 run `prim auth login` to resume decision capture";