@primitive.ai/prim 0.1.0-alpha.123 → 0.1.0-alpha.124
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 +63 -0
- package/dist/{chunk-5ME3WD3P.js → chunk-3OKVMKK2.js} +6 -3
- package/dist/chunk-5BZWFN62.js +206 -0
- package/dist/{chunk-FXXMDO7D.js → chunk-5KPDY5GF.js} +4 -4
- package/dist/{chunk-HLMC7VS4.js → chunk-5MH2C5QG.js} +3878 -2644
- package/dist/{chunk-NMZSCSMY.js → chunk-6PSCGY2A.js} +11 -1
- package/dist/{chunk-OXW6PSPT.js → chunk-6VJ7C2B5.js} +15 -3
- package/dist/{chunk-DQ4I3FLF.js → chunk-6W72SEXC.js} +3 -3
- package/dist/{chunk-4M23K2KZ.js → chunk-6WKJWW6D.js} +2 -2
- package/dist/{chunk-3WQ7SBOZ.js → chunk-A6YTFBQ4.js} +3 -3
- package/dist/{chunk-NL5VU7EU.js → chunk-DGZX3MID.js} +3 -3
- package/dist/{chunk-4NUGCUQC.js → chunk-EER7VG3P.js} +2 -2
- package/dist/{chunk-JZC2LHS6.js → chunk-EWV7VIZ3.js} +1 -1
- package/dist/{chunk-WN7OURQ3.js → chunk-KMWXI7KO.js} +1 -1
- package/dist/{chunk-LOFMI3D4.js → chunk-KTXJJE5K.js} +2 -2
- package/dist/{chunk-4GYJHN26.js → chunk-Q2PVD5W2.js} +1575 -549
- package/dist/{chunk-S3ZIMGXV.js → chunk-QZWLZH6D.js} +76 -2
- package/dist/{chunk-CWV5ZQR6.js → chunk-TS2NX6YT.js} +5 -5
- package/dist/{chunk-GOMEWFMG.js → chunk-WLVEXOHC.js} +143 -61
- package/dist/{chunk-RUEIVZ6T.js → chunk-WQFJ5TEG.js} +2 -2
- package/dist/{chunk-T2T45KF6.js → chunk-ZMH6GJUG.js} +4 -4
- package/dist/daemon/server.js +7795 -5449
- package/dist/hook-runtime/daemon/server.js +7795 -5449
- package/dist/hook-runtime/hooks/post-commit.js +5828 -4329
- package/dist/hook-runtime/hooks/post-rewrite.js +4331 -2833
- package/dist/hook-runtime/hooks/post-tool-use.js +5241 -2891
- package/dist/hook-runtime/hooks/pre-commit.js +1253 -280
- package/dist/hook-runtime/hooks/pre-tool-use-worker.js +4177 -1971
- package/dist/hook-runtime/hooks/prim-hook.js +4718 -2478
- package/dist/hook-runtime/hooks/session-end.js +392 -139
- package/dist/hook-runtime/hooks/session-start.js +4206 -1997
- package/dist/hook-runtime/index.js +6155 -3542
- package/dist/hook-runtime/statusline-main.js +368 -122
- package/dist/hooks/post-commit.js +7 -7
- package/dist/hooks/post-rewrite.js +6 -6
- package/dist/hooks/post-tool-use.js +31 -21
- package/dist/hooks/pre-commit.js +4 -4
- package/dist/hooks/pre-tool-use-worker.js +9 -9
- package/dist/hooks/prim-hook.js +16 -16
- package/dist/hooks/session-end.js +4 -4
- package/dist/hooks/session-start.js +16 -12
- package/dist/index.js +229 -149
- package/dist/statusline-main.js +368 -122
- package/package.json +3 -1
- package/dist/chunk-RRAC76LJ.js +0 -36
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
recordPostCommitFired
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KMWXI7KO.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-
|
|
11
|
+
} from "../chunk-6WKJWW6D.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-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-6VJ7C2B5.js";
|
|
19
|
+
import "../chunk-EER7VG3P.js";
|
|
20
20
|
import {
|
|
21
21
|
cachedCollectScopeAdmits
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-5MH2C5QG.js";
|
|
23
|
+
import "../chunk-QZWLZH6D.js";
|
|
24
24
|
import {
|
|
25
25
|
githubRepositoryFullName,
|
|
26
26
|
isRepoActiveForCapture,
|
|
27
27
|
repoSyncId,
|
|
28
28
|
resolveRepositoryContext
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-Q2PVD5W2.js";
|
|
30
30
|
import "../chunk-JSBRDJBE.js";
|
|
31
31
|
|
|
32
32
|
// src/hooks/post-commit.ts
|
|
@@ -5,25 +5,25 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
canonicalRewritePairs,
|
|
7
7
|
toRewriteMove
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-6WKJWW6D.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-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-6VJ7C2B5.js";
|
|
16
|
+
import "../chunk-EER7VG3P.js";
|
|
17
17
|
import {
|
|
18
18
|
cachedCollectScopeAdmits
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-5MH2C5QG.js";
|
|
20
|
+
import "../chunk-QZWLZH6D.js";
|
|
21
21
|
import {
|
|
22
22
|
githubRepositoryFullName,
|
|
23
23
|
isRepoActiveForCapture,
|
|
24
24
|
repoSyncId,
|
|
25
25
|
resolveRepositoryContext
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-Q2PVD5W2.js";
|
|
27
27
|
import "../chunk-JSBRDJBE.js";
|
|
28
28
|
|
|
29
29
|
// src/hooks/post-rewrite.ts
|
|
@@ -1,57 +1,61 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
+
InvalidJournalEnvelopeError,
|
|
4
|
+
buildOrganizationBoundMoveRequest,
|
|
5
|
+
parseOrganizationBinding,
|
|
3
6
|
requireDurableIngestAcknowledgement
|
|
4
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-5BZWFN62.js";
|
|
5
8
|
import {
|
|
6
9
|
enrichHookPayloadWithFileRefs,
|
|
7
10
|
preserveHookFileMetadata
|
|
8
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-5KPDY5GF.js";
|
|
9
12
|
import {
|
|
10
13
|
appendCodexContext,
|
|
11
14
|
prepareCodexContext
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-ZMH6GJUG.js";
|
|
16
|
+
import "../chunk-3OKVMKK2.js";
|
|
14
17
|
import {
|
|
15
18
|
postToolInvocationId,
|
|
16
19
|
toMove,
|
|
17
20
|
toolOutcomeFor
|
|
18
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-6WKJWW6D.js";
|
|
19
22
|
import {
|
|
20
23
|
getOrCreateWorkspaceId
|
|
21
24
|
} from "../chunk-EZXEWFDG.js";
|
|
22
25
|
import {
|
|
23
26
|
appendMove,
|
|
24
27
|
resolveOrg
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-6VJ7C2B5.js";
|
|
29
|
+
import "../chunk-6PSCGY2A.js";
|
|
27
30
|
import {
|
|
28
31
|
observeDemoInvocation
|
|
29
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-WQFJ5TEG.js";
|
|
30
33
|
import {
|
|
31
34
|
normalizeEnvelope,
|
|
32
35
|
readHookStdin,
|
|
33
36
|
shouldSuppressImportedCursorHandler
|
|
34
|
-
} from "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
+
} from "../chunk-KTXJJE5K.js";
|
|
38
|
+
import "../chunk-A6YTFBQ4.js";
|
|
39
|
+
import "../chunk-WLVEXOHC.js";
|
|
37
40
|
import {
|
|
38
41
|
scrubFromCwd
|
|
39
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-EER7VG3P.js";
|
|
40
43
|
import {
|
|
41
44
|
bold,
|
|
42
45
|
cachedCollectScopeAdmits,
|
|
43
46
|
color
|
|
44
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-5MH2C5QG.js";
|
|
45
48
|
import {
|
|
46
49
|
getClient,
|
|
50
|
+
getPinnedClient,
|
|
47
51
|
terminalSafeLine
|
|
48
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-QZWLZH6D.js";
|
|
49
53
|
import {
|
|
50
54
|
currentBranch,
|
|
51
55
|
isRepoActiveForCapture,
|
|
52
56
|
repoSyncId,
|
|
53
57
|
resolveRepositoryContext
|
|
54
|
-
} from "../chunk-
|
|
58
|
+
} from "../chunk-Q2PVD5W2.js";
|
|
55
59
|
import {
|
|
56
60
|
parseAgent
|
|
57
61
|
} from "../chunk-KZB4ABIB.js";
|
|
@@ -65,12 +69,18 @@ import { fileURLToPath } from "url";
|
|
|
65
69
|
// src/hooks/post-tool-delivery.ts
|
|
66
70
|
var INGEST_TIMEOUT_MS = 4e3;
|
|
67
71
|
async function deliverPostToolMove(move, orgId) {
|
|
68
|
-
appendMove(move, orgId);
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
const captured = appendMove(move, orgId);
|
|
73
|
+
const signal = AbortSignal.timeout(INGEST_TIMEOUT_MS);
|
|
74
|
+
const client = captured.captureActor ? await getPinnedClient({ signal }) : getClient();
|
|
75
|
+
let request = { batch: [captured] };
|
|
76
|
+
if (captured.captureActor) {
|
|
77
|
+
const binding = parseOrganizationBinding(
|
|
78
|
+
await client.get("/api/cli/auth/status", { signal, quietRefresh: true })
|
|
79
|
+
);
|
|
80
|
+
if (binding.state !== "current") throw new InvalidJournalEnvelopeError();
|
|
81
|
+
request = buildOrganizationBoundMoveRequest([captured], binding.binding);
|
|
82
|
+
}
|
|
83
|
+
const response = await client.post("/api/cli/moves/ingest", request, { signal });
|
|
74
84
|
return requireDurableIngestAcknowledgement(response, 1, move.env.gitRoot ?? move.env.cwd);
|
|
75
85
|
}
|
|
76
86
|
|
package/dist/hooks/pre-commit.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
checkAffectedDecisions,
|
|
4
4
|
formatDecisionsWarning
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-6W72SEXC.js";
|
|
6
|
+
import "../chunk-6PSCGY2A.js";
|
|
7
|
+
import "../chunk-QZWLZH6D.js";
|
|
8
|
+
import "../chunk-Q2PVD5W2.js";
|
|
9
9
|
import "../chunk-JSBRDJBE.js";
|
|
10
10
|
|
|
11
11
|
// src/hooks/pre-commit.ts
|
|
@@ -14,15 +14,15 @@ import {
|
|
|
14
14
|
toolInputDigest,
|
|
15
15
|
unverifiedResult,
|
|
16
16
|
waitForPreflight
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-TS2NX6YT.js";
|
|
18
18
|
import {
|
|
19
19
|
observeDemoInvocation
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-WQFJ5TEG.js";
|
|
21
21
|
import {
|
|
22
22
|
normalizeEnvelope,
|
|
23
23
|
readHookStdin,
|
|
24
24
|
shouldSuppressImportedCursorHandler
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-KTXJJE5K.js";
|
|
26
26
|
import {
|
|
27
27
|
buildCodexOutput,
|
|
28
28
|
buildCursorOutput,
|
|
@@ -34,13 +34,13 @@ import {
|
|
|
34
34
|
failOpenHermes,
|
|
35
35
|
failOpenOutput,
|
|
36
36
|
readHookMode
|
|
37
|
-
} from "../chunk-
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
37
|
+
} from "../chunk-A6YTFBQ4.js";
|
|
38
|
+
import "../chunk-WLVEXOHC.js";
|
|
39
|
+
import "../chunk-EER7VG3P.js";
|
|
40
40
|
import {
|
|
41
41
|
cachedCollectScopeAdmits
|
|
42
|
-
} from "../chunk-
|
|
43
|
-
import "../chunk-
|
|
42
|
+
} from "../chunk-5MH2C5QG.js";
|
|
43
|
+
import "../chunk-QZWLZH6D.js";
|
|
44
44
|
import {
|
|
45
45
|
canonicalGitRoot,
|
|
46
46
|
currentBranch,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
packageVersion,
|
|
49
49
|
repoActiveFlag,
|
|
50
50
|
repoSyncId
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-Q2PVD5W2.js";
|
|
52
52
|
import {
|
|
53
53
|
parseAgent
|
|
54
54
|
} from "../chunk-KZB4ABIB.js";
|
package/dist/hooks/prim-hook.js
CHANGED
|
@@ -8,58 +8,58 @@ import {
|
|
|
8
8
|
acknowledgeDecisionFeedback,
|
|
9
9
|
leaseDecisionFeedback,
|
|
10
10
|
renderFeedback
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-EWV7VIZ3.js";
|
|
12
12
|
import {
|
|
13
13
|
recordConversationCaptured
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-KMWXI7KO.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-
|
|
21
|
+
} from "../chunk-5KPDY5GF.js";
|
|
22
22
|
import {
|
|
23
23
|
prepareCodexContext
|
|
24
|
-
} from "../chunk-
|
|
25
|
-
import "../chunk-
|
|
24
|
+
} from "../chunk-ZMH6GJUG.js";
|
|
25
|
+
import "../chunk-3OKVMKK2.js";
|
|
26
26
|
import {
|
|
27
27
|
postToolInvocationId,
|
|
28
28
|
shouldFlushAfter,
|
|
29
29
|
toMove
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-6WKJWW6D.js";
|
|
31
31
|
import {
|
|
32
32
|
getOrCreateWorkspaceId
|
|
33
33
|
} from "../chunk-EZXEWFDG.js";
|
|
34
34
|
import {
|
|
35
35
|
appendMove,
|
|
36
36
|
resolveOrg
|
|
37
|
-
} from "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
} from "../chunk-6VJ7C2B5.js";
|
|
38
|
+
import "../chunk-6PSCGY2A.js";
|
|
39
39
|
import {
|
|
40
40
|
observeDemoInvocation
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-WQFJ5TEG.js";
|
|
42
42
|
import {
|
|
43
43
|
normalizeEnvelope,
|
|
44
44
|
readHookStdin,
|
|
45
45
|
shouldSuppressImportedCursorHandler
|
|
46
|
-
} from "../chunk-
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
46
|
+
} from "../chunk-KTXJJE5K.js";
|
|
47
|
+
import "../chunk-A6YTFBQ4.js";
|
|
48
|
+
import "../chunk-WLVEXOHC.js";
|
|
49
49
|
import {
|
|
50
50
|
scrubFromCwd,
|
|
51
51
|
writeHookDebug
|
|
52
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-EER7VG3P.js";
|
|
53
53
|
import {
|
|
54
54
|
cachedCollectScopeAdmits
|
|
55
|
-
} from "../chunk-
|
|
56
|
-
import "../chunk-
|
|
55
|
+
} from "../chunk-5MH2C5QG.js";
|
|
56
|
+
import "../chunk-QZWLZH6D.js";
|
|
57
57
|
import {
|
|
58
58
|
currentBranch,
|
|
59
59
|
isRepoActiveForCapture,
|
|
60
60
|
repoSyncId,
|
|
61
61
|
resolveRepositoryContext
|
|
62
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-Q2PVD5W2.js";
|
|
63
63
|
import {
|
|
64
64
|
parseAgent
|
|
65
65
|
} from "../chunk-KZB4ABIB.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
daemonRequest
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-6PSCGY2A.js";
|
|
5
5
|
import {
|
|
6
6
|
normalizeEnvelope,
|
|
7
7
|
readHookStdin,
|
|
8
8
|
shouldSuppressImportedCursorHandler
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-KTXJJE5K.js";
|
|
10
|
+
import "../chunk-WLVEXOHC.js";
|
|
11
11
|
import {
|
|
12
12
|
isRepoActiveForCapture
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-Q2PVD5W2.js";
|
|
14
14
|
import {
|
|
15
15
|
parseAgent
|
|
16
16
|
} from "../chunk-KZB4ABIB.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
kickDaemonEnsure,
|
|
8
8
|
refreshClaudePlugins,
|
|
9
9
|
warmBinCache
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-DGZX3MID.js";
|
|
11
11
|
import {
|
|
12
12
|
buildHookOutput,
|
|
13
13
|
handoffHookOutput
|
|
@@ -17,43 +17,44 @@ import {
|
|
|
17
17
|
acknowledgeDecisionFeedback,
|
|
18
18
|
leaseDecisionFeedback,
|
|
19
19
|
renderFeedback
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-EWV7VIZ3.js";
|
|
21
21
|
import {
|
|
22
22
|
clearHooksWired,
|
|
23
23
|
recordHooksWired
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-KMWXI7KO.js";
|
|
25
25
|
import "../chunk-OYHYCK4K.js";
|
|
26
26
|
import {
|
|
27
27
|
prepareCodexContext
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-ZMH6GJUG.js";
|
|
29
|
+
import "../chunk-3OKVMKK2.js";
|
|
30
30
|
import {
|
|
31
31
|
getOrCreateWorkspaceId
|
|
32
32
|
} from "../chunk-EZXEWFDG.js";
|
|
33
33
|
import {
|
|
34
34
|
daemonRequest
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-6PSCGY2A.js";
|
|
36
36
|
import {
|
|
37
37
|
normalizeEnvelope,
|
|
38
38
|
readHookStdin,
|
|
39
39
|
shouldSuppressImportedCursorHandler
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-KTXJJE5K.js";
|
|
41
41
|
import {
|
|
42
42
|
MANAGED_GIT_HOOK_NAMES
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-WLVEXOHC.js";
|
|
44
44
|
import {
|
|
45
45
|
fetchAndCacheCollectScope
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-5MH2C5QG.js";
|
|
47
47
|
import {
|
|
48
48
|
getSiteUrl,
|
|
49
49
|
isSessionEnded
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-QZWLZH6D.js";
|
|
51
51
|
import {
|
|
52
52
|
gitToplevel,
|
|
53
|
+
hasMachineConfiguration,
|
|
53
54
|
isRepoActiveForCapture,
|
|
54
55
|
repoActiveFlag,
|
|
55
56
|
setRepoActive
|
|
56
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-Q2PVD5W2.js";
|
|
57
58
|
import {
|
|
58
59
|
parseAgent
|
|
59
60
|
} from "../chunk-KZB4ABIB.js";
|
|
@@ -62,7 +63,10 @@ import "../chunk-JSBRDJBE.js";
|
|
|
62
63
|
// src/hooks/reauth-notice.ts
|
|
63
64
|
var REAUTH_NOTICE = "[prim] authentication ended \u2014 run `prim auth login` to resume decision capture";
|
|
64
65
|
function reauthNoticeFields(agent) {
|
|
65
|
-
if (agent === "claude_code")
|
|
66
|
+
if (agent === "claude_code")
|
|
67
|
+
return {
|
|
68
|
+
systemMessage: hasMachineConfiguration() ? "[prim] machine delivery paused; local capture remains saved. Run `prim auth status` and ask your administrator to enable or rotate machine credentials." : REAUTH_NOTICE
|
|
69
|
+
};
|
|
66
70
|
return;
|
|
67
71
|
}
|
|
68
72
|
|