@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.
- package/dist/{chunk-6QAXVFRJ.js → chunk-BVGASV3B.js} +942 -123
- package/dist/{chunk-M6KIDB5R.js → chunk-DYXCJ6WZ.js} +10 -10
- package/dist/{chunk-B3ICJZXV.js → chunk-FHDTJP2C.js} +2 -2
- package/dist/{chunk-XINFTNA2.js → chunk-HDL3UXYJ.js} +5 -5
- package/dist/{chunk-C357P37M.js → chunk-IJ3W2YBM.js} +4 -4
- package/dist/{chunk-N6PZE7HX.js → chunk-IZAEAALI.js} +2 -2
- package/dist/{chunk-PTZ6BWSU.js → chunk-KZNOT2YH.js} +2 -2
- package/dist/{chunk-P4O7L7JZ.js → chunk-L7U3G4XR.js} +2 -2
- package/dist/{chunk-EQWUCFXK.js → chunk-LBZJD2I4.js} +3 -5
- package/dist/{chunk-PRJ7P6J5.js → chunk-MMMY57UA.js} +22 -837
- package/dist/{chunk-WEGZGF3K.js → chunk-NWWTFQP2.js} +1 -1
- package/dist/{chunk-NYDM4HSS.js → chunk-QSDWWEHF.js} +2 -2
- package/dist/{chunk-3KPTVK4N.js → chunk-RAEOSDQ6.js} +1 -1
- package/dist/{chunk-E57UVUJL.js → chunk-RS5ADTDF.js} +4 -4
- package/dist/{chunk-ANMNGGTN.js → chunk-RWJ7WHTJ.js} +2 -2
- package/dist/{chunk-RDT2IV2Z.js → chunk-SJE7OWVS.js} +3 -3
- package/dist/{chunk-VLT2KGPE.js → chunk-USJ4JGDC.js} +3 -3
- package/dist/{chunk-ZCT23NBS.js → chunk-YPHDV5AS.js} +2 -2
- package/dist/{chunk-QQ3G5SXX.js → chunk-YSV43WLK.js} +1 -1
- package/dist/{chunk-4DYEBYKM.js → chunk-ZKIBD5MO.js} +2 -2
- package/dist/daemon/server.js +624 -289
- package/dist/hook-runtime/daemon/server.js +624 -289
- package/dist/hook-runtime/hooks/post-commit.js +307 -186
- package/dist/hook-runtime/hooks/post-rewrite.js +302 -181
- package/dist/hook-runtime/hooks/post-tool-use.js +490 -276
- package/dist/hook-runtime/hooks/pre-commit.js +516 -181
- package/dist/hook-runtime/hooks/pre-tool-use-worker.js +221 -7
- package/dist/hook-runtime/hooks/prim-hook.js +511 -297
- package/dist/hook-runtime/hooks/session-end.js +229 -229
- package/dist/hook-runtime/hooks/session-start.js +170 -14
- package/dist/hook-runtime/index.js +1623 -1607
- package/dist/hook-runtime/statusline-main.js +245 -124
- package/dist/hooks/post-commit.js +7 -7
- package/dist/hooks/post-rewrite.js +6 -6
- package/dist/hooks/post-tool-use.js +15 -15
- 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 +12 -13
- package/dist/index.js +24 -24
- package/dist/statusline-main.js +245 -124
- package/package.json +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
recordPostCommitFired
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-YSV43WLK.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-YPHDV5AS.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-IZAEAALI.js";
|
|
19
|
+
import "../chunk-L7U3G4XR.js";
|
|
20
20
|
import {
|
|
21
21
|
cachedCollectScopeAdmits
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-QSDWWEHF.js";
|
|
23
|
+
import "../chunk-RAEOSDQ6.js";
|
|
24
24
|
import {
|
|
25
25
|
githubRepositoryFullName,
|
|
26
26
|
isRepoActiveForCapture,
|
|
27
27
|
repoSyncId,
|
|
28
28
|
resolveRepositoryContext
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-BVGASV3B.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-YPHDV5AS.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-IZAEAALI.js";
|
|
16
|
+
import "../chunk-L7U3G4XR.js";
|
|
17
17
|
import {
|
|
18
18
|
cachedCollectScopeAdmits
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-QSDWWEHF.js";
|
|
20
|
+
import "../chunk-RAEOSDQ6.js";
|
|
21
21
|
import {
|
|
22
22
|
githubRepositoryFullName,
|
|
23
23
|
isRepoActiveForCapture,
|
|
24
24
|
repoSyncId,
|
|
25
25
|
resolveRepositoryContext
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-BVGASV3B.js";
|
|
27
27
|
import "../chunk-JSBRDJBE.js";
|
|
28
28
|
|
|
29
29
|
// src/hooks/post-rewrite.ts
|
|
@@ -4,58 +4,58 @@ import {
|
|
|
4
4
|
buildOrganizationBoundMoveRequest,
|
|
5
5
|
parseOrganizationBinding,
|
|
6
6
|
requireDurableIngestAcknowledgement
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-USJ4JGDC.js";
|
|
8
8
|
import {
|
|
9
9
|
enrichHookPayloadWithFileRefs,
|
|
10
10
|
preserveHookFileMetadata
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-IJ3W2YBM.js";
|
|
12
12
|
import {
|
|
13
13
|
appendCodexContext,
|
|
14
14
|
prepareCodexContext
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-RS5ADTDF.js";
|
|
16
|
+
import "../chunk-ZKIBD5MO.js";
|
|
17
17
|
import {
|
|
18
18
|
postToolInvocationId,
|
|
19
19
|
toMove,
|
|
20
20
|
toolOutcomeFor
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-YPHDV5AS.js";
|
|
22
22
|
import {
|
|
23
23
|
getOrCreateWorkspaceId
|
|
24
24
|
} from "../chunk-EZXEWFDG.js";
|
|
25
25
|
import {
|
|
26
26
|
appendMove,
|
|
27
27
|
resolveOrg
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-IZAEAALI.js";
|
|
29
|
+
import "../chunk-NWWTFQP2.js";
|
|
30
30
|
import {
|
|
31
31
|
observeDemoInvocation
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-RWJ7WHTJ.js";
|
|
33
33
|
import {
|
|
34
34
|
normalizeEnvelope,
|
|
35
35
|
readHookStdin,
|
|
36
36
|
shouldSuppressImportedCursorHandler
|
|
37
|
-
} from "../chunk-
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
37
|
+
} from "../chunk-KZNOT2YH.js";
|
|
38
|
+
import "../chunk-LBZJD2I4.js";
|
|
39
|
+
import "../chunk-MMMY57UA.js";
|
|
40
40
|
import {
|
|
41
41
|
scrubFromCwd
|
|
42
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-L7U3G4XR.js";
|
|
43
43
|
import {
|
|
44
44
|
bold,
|
|
45
45
|
cachedCollectScopeAdmits,
|
|
46
46
|
color
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-QSDWWEHF.js";
|
|
48
48
|
import {
|
|
49
49
|
getClient,
|
|
50
50
|
getPinnedClient
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-RAEOSDQ6.js";
|
|
52
52
|
import {
|
|
53
53
|
currentBranch,
|
|
54
54
|
isRepoActiveForCapture,
|
|
55
55
|
repoSyncId,
|
|
56
56
|
resolveRepositoryContext,
|
|
57
57
|
terminalSafeLine
|
|
58
|
-
} from "../chunk-
|
|
58
|
+
} from "../chunk-BVGASV3B.js";
|
|
59
59
|
import {
|
|
60
60
|
parseAgent
|
|
61
61
|
} from "../chunk-KZB4ABIB.js";
|
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-SJE7OWVS.js";
|
|
6
|
+
import "../chunk-NWWTFQP2.js";
|
|
7
|
+
import "../chunk-RAEOSDQ6.js";
|
|
8
|
+
import "../chunk-BVGASV3B.js";
|
|
9
9
|
import "../chunk-JSBRDJBE.js";
|
|
10
10
|
|
|
11
11
|
// src/hooks/pre-commit.ts
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
toolInputDigest,
|
|
16
16
|
unverifiedResult,
|
|
17
17
|
waitForPreflight
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-HDL3UXYJ.js";
|
|
19
19
|
import {
|
|
20
20
|
observeDemoInvocation
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-RWJ7WHTJ.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeEnvelope,
|
|
24
24
|
readHookStdin,
|
|
25
25
|
shouldSuppressImportedCursorHandler
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-KZNOT2YH.js";
|
|
27
27
|
import {
|
|
28
28
|
buildCodexOutput,
|
|
29
29
|
buildCursorOutput,
|
|
@@ -35,13 +35,13 @@ import {
|
|
|
35
35
|
failOpenHermes,
|
|
36
36
|
failOpenOutput,
|
|
37
37
|
readHookMode
|
|
38
|
-
} from "../chunk-
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
38
|
+
} from "../chunk-LBZJD2I4.js";
|
|
39
|
+
import "../chunk-MMMY57UA.js";
|
|
40
|
+
import "../chunk-L7U3G4XR.js";
|
|
41
41
|
import {
|
|
42
42
|
cachedCollectScopeAdmits
|
|
43
|
-
} from "../chunk-
|
|
44
|
-
import "../chunk-
|
|
43
|
+
} from "../chunk-QSDWWEHF.js";
|
|
44
|
+
import "../chunk-RAEOSDQ6.js";
|
|
45
45
|
import {
|
|
46
46
|
canonicalGitRoot,
|
|
47
47
|
cloudSetupPointer,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
packageVersion,
|
|
51
51
|
repoActiveFlag,
|
|
52
52
|
repoSyncId
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-BVGASV3B.js";
|
|
54
54
|
import {
|
|
55
55
|
parseAgent
|
|
56
56
|
} 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-FHDTJP2C.js";
|
|
12
12
|
import {
|
|
13
13
|
recordConversationCaptured
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-YSV43WLK.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-IJ3W2YBM.js";
|
|
22
22
|
import {
|
|
23
23
|
prepareCodexContext
|
|
24
|
-
} from "../chunk-
|
|
25
|
-
import "../chunk-
|
|
24
|
+
} from "../chunk-RS5ADTDF.js";
|
|
25
|
+
import "../chunk-ZKIBD5MO.js";
|
|
26
26
|
import {
|
|
27
27
|
postToolInvocationId,
|
|
28
28
|
shouldFlushAfter,
|
|
29
29
|
toMove
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-YPHDV5AS.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-IZAEAALI.js";
|
|
38
|
+
import "../chunk-NWWTFQP2.js";
|
|
39
39
|
import {
|
|
40
40
|
observeDemoInvocation
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-RWJ7WHTJ.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-KZNOT2YH.js";
|
|
47
|
+
import "../chunk-LBZJD2I4.js";
|
|
48
|
+
import "../chunk-MMMY57UA.js";
|
|
49
49
|
import {
|
|
50
50
|
scrubFromCwd,
|
|
51
51
|
writeHookDebug
|
|
52
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-L7U3G4XR.js";
|
|
53
53
|
import {
|
|
54
54
|
cachedCollectScopeAdmits
|
|
55
|
-
} from "../chunk-
|
|
56
|
-
import "../chunk-
|
|
55
|
+
} from "../chunk-QSDWWEHF.js";
|
|
56
|
+
import "../chunk-RAEOSDQ6.js";
|
|
57
57
|
import {
|
|
58
58
|
currentBranch,
|
|
59
59
|
isRepoActiveForCapture,
|
|
60
60
|
repoSyncId,
|
|
61
61
|
resolveRepositoryContext
|
|
62
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-BVGASV3B.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-NWWTFQP2.js";
|
|
5
5
|
import {
|
|
6
6
|
normalizeEnvelope,
|
|
7
7
|
readHookStdin,
|
|
8
8
|
shouldSuppressImportedCursorHandler
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-KZNOT2YH.js";
|
|
10
|
+
import "../chunk-MMMY57UA.js";
|
|
11
11
|
import {
|
|
12
12
|
isRepoActiveForCapture
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-BVGASV3B.js";
|
|
14
14
|
import {
|
|
15
15
|
parseAgent
|
|
16
16
|
} from "../chunk-KZB4ABIB.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
kickDaemonEnsure,
|
|
9
9
|
refreshClaudePlugins,
|
|
10
10
|
warmBinCache
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-DYXCJ6WZ.js";
|
|
12
12
|
import {
|
|
13
13
|
buildHookOutput,
|
|
14
14
|
handoffHookOutput
|
|
@@ -18,41 +18,40 @@ import {
|
|
|
18
18
|
acknowledgeDecisionFeedback,
|
|
19
19
|
leaseDecisionFeedback,
|
|
20
20
|
renderFeedback
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-FHDTJP2C.js";
|
|
22
22
|
import {
|
|
23
23
|
clearHooksWired,
|
|
24
24
|
recordHooksWired
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-YSV43WLK.js";
|
|
26
26
|
import "../chunk-OYHYCK4K.js";
|
|
27
27
|
import {
|
|
28
28
|
prepareCodexContext
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import "../chunk-
|
|
29
|
+
} from "../chunk-RS5ADTDF.js";
|
|
30
|
+
import "../chunk-ZKIBD5MO.js";
|
|
31
31
|
import {
|
|
32
32
|
getOrCreateWorkspaceId
|
|
33
33
|
} from "../chunk-EZXEWFDG.js";
|
|
34
34
|
import {
|
|
35
35
|
daemonRequest
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-NWWTFQP2.js";
|
|
37
37
|
import {
|
|
38
38
|
normalizeEnvelope,
|
|
39
39
|
readHookStdin,
|
|
40
40
|
shouldSuppressImportedCursorHandler
|
|
41
|
-
} from "../chunk-
|
|
42
|
-
import
|
|
43
|
-
MANAGED_GIT_HOOK_NAMES
|
|
44
|
-
} from "../chunk-PRJ7P6J5.js";
|
|
41
|
+
} from "../chunk-KZNOT2YH.js";
|
|
42
|
+
import "../chunk-MMMY57UA.js";
|
|
45
43
|
import {
|
|
46
44
|
fetchAndCacheCollectScope
|
|
47
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-QSDWWEHF.js";
|
|
48
46
|
import {
|
|
49
47
|
getSiteUrl,
|
|
50
48
|
isSessionEnded
|
|
51
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-RAEOSDQ6.js";
|
|
52
50
|
import {
|
|
53
51
|
CLOUD_CREDENTIALS_REMEDY,
|
|
54
52
|
CLOUD_REJECTED_CREDENTIALS_NOTICE,
|
|
55
53
|
ENVIRONMENT_CREDENTIAL_REMEDY,
|
|
54
|
+
MANAGED_GIT_HOOK_NAMES,
|
|
56
55
|
ensureSessionIdentity,
|
|
57
56
|
gitToplevel,
|
|
58
57
|
hasMachineConfiguration,
|
|
@@ -64,7 +63,7 @@ import {
|
|
|
64
63
|
sessionIdentityMode,
|
|
65
64
|
setRepoActive,
|
|
66
65
|
withdrawImplicitActivation
|
|
67
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-BVGASV3B.js";
|
|
68
67
|
import {
|
|
69
68
|
parseAgent
|
|
70
69
|
} from "../chunk-KZB4ABIB.js";
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
uninstallProjectGitHook,
|
|
27
27
|
userTargetFor,
|
|
28
28
|
welcomeSkillPathFor
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DYXCJ6WZ.js";
|
|
30
30
|
import {
|
|
31
31
|
InvalidJournalEnvelopeError,
|
|
32
32
|
buildOrganizationBoundMoveRequest,
|
|
@@ -34,27 +34,27 @@ import {
|
|
|
34
34
|
inspectJournalDelivery,
|
|
35
35
|
requireDurableIngestAcknowledgement,
|
|
36
36
|
summarizeRetainedBuckets
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-USJ4JGDC.js";
|
|
38
38
|
import {
|
|
39
39
|
checkAffectedDecisions,
|
|
40
40
|
daemonOrDirectGet,
|
|
41
41
|
formatDecisionsWarning
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-SJE7OWVS.js";
|
|
43
43
|
import {
|
|
44
44
|
hasCompleteCoverage,
|
|
45
45
|
requestPreflight2 as requestPreflight,
|
|
46
46
|
waitForPreflight
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-HDL3UXYJ.js";
|
|
48
48
|
import {
|
|
49
49
|
fetchFeedbackCapability
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-FHDTJP2C.js";
|
|
51
51
|
import {
|
|
52
52
|
POST_COMMIT_GRACE_MS,
|
|
53
53
|
clearHooksWired,
|
|
54
54
|
inspectPostCommitFiring,
|
|
55
55
|
lastConversationCaptured,
|
|
56
56
|
recordHooksWired
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-YSV43WLK.js";
|
|
58
58
|
import {
|
|
59
59
|
isUnattended,
|
|
60
60
|
unattendedEnv
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
formatStatusline,
|
|
68
68
|
formatTeammates,
|
|
69
69
|
repositoryBindingDiagnosticLabel
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-ZKIBD5MO.js";
|
|
71
71
|
import {
|
|
72
72
|
JOURNAL_DIR,
|
|
73
73
|
SESSIONS_DIR,
|
|
@@ -82,11 +82,11 @@ import {
|
|
|
82
82
|
rotationIdentity,
|
|
83
83
|
sweepOrphanedDrainProgress,
|
|
84
84
|
writeDrainCheckpoint
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-IZAEAALI.js";
|
|
86
86
|
import {
|
|
87
87
|
daemonIsLive,
|
|
88
88
|
daemonRequest
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-NWWTFQP2.js";
|
|
90
90
|
import {
|
|
91
91
|
RUN_ID,
|
|
92
92
|
demoCommand,
|
|
@@ -107,23 +107,17 @@ import {
|
|
|
107
107
|
readRun,
|
|
108
108
|
runIds,
|
|
109
109
|
saveRun
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-LBZJD2I4.js";
|
|
111
111
|
import {
|
|
112
|
-
MANAGED_GIT_HOOK_NAMES,
|
|
113
|
-
assertOwnedHookRuntime,
|
|
114
112
|
atomicWrite,
|
|
115
113
|
cloudUserInstallComplete,
|
|
116
114
|
ensureRegistration,
|
|
117
115
|
entryHasCommand,
|
|
118
116
|
hasDeveloperUserInstall,
|
|
119
|
-
hookRuntimePaths,
|
|
120
117
|
inspectFailureProtection,
|
|
121
|
-
inspectGitHookEntrypoint,
|
|
122
|
-
inspectHookRuntime,
|
|
123
118
|
inspectHookRuntimeResolutions,
|
|
124
119
|
inspectHookRuntimeResolutions2,
|
|
125
120
|
makeRegistration,
|
|
126
|
-
managedHookBlock,
|
|
127
121
|
performCloudUserInstall,
|
|
128
122
|
performStatus,
|
|
129
123
|
performStatus2,
|
|
@@ -132,13 +126,10 @@ import {
|
|
|
132
126
|
readSettings,
|
|
133
127
|
registerClaudeCommands,
|
|
134
128
|
registerCursorCommands,
|
|
135
|
-
removeHookRuntime,
|
|
136
129
|
reportFailureProtection,
|
|
137
|
-
stableNodePath,
|
|
138
|
-
stageHookRuntime,
|
|
139
130
|
stripCommand
|
|
140
|
-
} from "./chunk-
|
|
141
|
-
import "./chunk-
|
|
131
|
+
} from "./chunk-MMMY57UA.js";
|
|
132
|
+
import "./chunk-L7U3G4XR.js";
|
|
142
133
|
import {
|
|
143
134
|
MAX_SCOPE_GLOB_CHARS,
|
|
144
135
|
bold,
|
|
@@ -167,7 +158,7 @@ import {
|
|
|
167
158
|
isScopeDirectoryPrefix,
|
|
168
159
|
isScopeGlobPattern,
|
|
169
160
|
stripAnsi
|
|
170
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-QSDWWEHF.js";
|
|
171
162
|
import {
|
|
172
163
|
CliManagementResponseError,
|
|
173
164
|
DEFAULT_API_URL,
|
|
@@ -185,11 +176,12 @@ import {
|
|
|
185
176
|
isSessionEnded,
|
|
186
177
|
refreshToken,
|
|
187
178
|
setStoredToken
|
|
188
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-RAEOSDQ6.js";
|
|
189
180
|
import {
|
|
190
181
|
CLOUD_CREDENTIALS_REMEDY,
|
|
191
182
|
CLOUD_GITHUB_CONNECT_REMEDY,
|
|
192
183
|
CLOUD_SETUP_POINTER,
|
|
184
|
+
MANAGED_GIT_HOOK_NAMES,
|
|
193
185
|
MachineAuthError,
|
|
194
186
|
REFRESH_TOKEN_PATH,
|
|
195
187
|
SERVER_WAIT_PREFIX,
|
|
@@ -198,6 +190,7 @@ import {
|
|
|
198
190
|
TOKEN_FILE_PATH,
|
|
199
191
|
WorkosConnectProtocolError,
|
|
200
192
|
acquireMachineCredential,
|
|
193
|
+
assertOwnedHookRuntime,
|
|
201
194
|
atomicWriteFile,
|
|
202
195
|
binFile,
|
|
203
196
|
canonicalGitRoot,
|
|
@@ -225,7 +218,10 @@ import {
|
|
|
225
218
|
hasProjectPrimInstall,
|
|
226
219
|
healDemoPause,
|
|
227
220
|
hookCommandResolutions,
|
|
221
|
+
hookRuntimePaths,
|
|
228
222
|
insideClaudeCode,
|
|
223
|
+
inspectGitHookEntrypoint,
|
|
224
|
+
inspectHookRuntime,
|
|
229
225
|
isClaudeCloudSession,
|
|
230
226
|
isGitIgnored,
|
|
231
227
|
isPreparedCloudSession,
|
|
@@ -237,6 +233,7 @@ import {
|
|
|
237
233
|
machineRecord,
|
|
238
234
|
machineString,
|
|
239
235
|
mainWorktreeRoot,
|
|
236
|
+
managedHookBlock,
|
|
240
237
|
markActivationExplicit,
|
|
241
238
|
markCloudPrepared,
|
|
242
239
|
packageRoot,
|
|
@@ -250,6 +247,7 @@ import {
|
|
|
250
247
|
processIsAlive,
|
|
251
248
|
readDemoPause,
|
|
252
249
|
readMachineProfile,
|
|
250
|
+
removeHookRuntime,
|
|
253
251
|
repoActiveFlag,
|
|
254
252
|
repoSyncId,
|
|
255
253
|
repositoryBindingState,
|
|
@@ -260,6 +258,8 @@ import {
|
|
|
260
258
|
sessionIdentityMode,
|
|
261
259
|
setRepoActive,
|
|
262
260
|
stableHookCommand,
|
|
261
|
+
stableNodePath,
|
|
262
|
+
stageHookRuntime,
|
|
263
263
|
stripControlChars,
|
|
264
264
|
syncDirectory,
|
|
265
265
|
terminalSafeLine,
|
|
@@ -268,7 +268,7 @@ import {
|
|
|
268
268
|
withFileLock,
|
|
269
269
|
withFileLockSync,
|
|
270
270
|
writeMachineMetadata
|
|
271
|
-
} from "./chunk-
|
|
271
|
+
} from "./chunk-BVGASV3B.js";
|
|
272
272
|
import "./chunk-JSBRDJBE.js";
|
|
273
273
|
|
|
274
274
|
// src/index.ts
|