@primitive.ai/prim 0.1.0-alpha.96 → 0.1.0-alpha.98
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 +9 -0
- package/dist/{chunk-YYE2NLWX.js → chunk-2DA2B4EC.js} +2 -2
- package/dist/{chunk-35FMRWJH.js → chunk-2DPLT2CQ.js} +1 -1
- package/dist/{chunk-XEDJ5N3M.js → chunk-3X77XQGW.js} +2 -4
- package/dist/{chunk-DWRSEC34.js → chunk-6QK75B7G.js} +392 -15
- package/dist/{chunk-Z6NPNLOT.js → chunk-7IPGD6CD.js} +1708 -1578
- package/dist/{chunk-RK4ZS3HG.js → chunk-AN6XTFIN.js} +2 -2
- package/dist/{chunk-LY6NJ7KL.js → chunk-B6EPQ4YH.js} +1 -1
- package/dist/{chunk-URLLSALP.js → chunk-BIAWZMCK.js} +2 -2
- package/dist/{chunk-QCBB5HFX.js → chunk-HUZXBJJ5.js} +1 -1
- package/dist/{chunk-ROLYLXJS.js → chunk-IL443QTF.js} +2 -2
- package/dist/{chunk-7KABYYWG.js → chunk-JOR67B5T.js} +6 -8
- package/dist/{chunk-FVDBULGZ.js → chunk-MN4X6RR6.js} +8 -10
- package/dist/{chunk-UO2U6IKF.js → chunk-NIQAVFP6.js} +1 -1
- package/dist/{chunk-CU7RW7XU.js → chunk-PPZBEOWK.js} +3 -3
- package/dist/{chunk-4GHANPWQ.js → chunk-QPMLAD2C.js} +2 -2
- package/dist/{chunk-Y5W4TZM7.js → chunk-RT7DXMTN.js} +2 -4
- package/dist/{chunk-27ADT6FQ.js → chunk-WKLYYT63.js} +44 -6
- package/dist/daemon/server.js +1704 -1572
- package/dist/hook-runtime/daemon/server.js +1704 -1572
- package/dist/hook-runtime/hooks/post-commit.js +1704 -1572
- package/dist/hook-runtime/hooks/post-rewrite.js +1704 -1572
- package/dist/hook-runtime/hooks/post-tool-use.js +1704 -1572
- package/dist/hook-runtime/hooks/pre-commit.js +208 -9
- package/dist/hook-runtime/hooks/pre-tool-use.js +1704 -1572
- package/dist/hook-runtime/hooks/prim-hook.js +1704 -1572
- package/dist/hook-runtime/hooks/session-start.js +1704 -1572
- package/dist/hook-runtime/index.js +1745 -1578
- package/dist/hooks/post-commit.js +7 -8
- package/dist/hooks/post-rewrite.js +6 -7
- package/dist/hooks/post-tool-use.js +13 -14
- package/dist/hooks/pre-commit.js +4 -4
- package/dist/hooks/pre-tool-use.js +10 -12
- package/dist/hooks/prim-hook.js +14 -15
- package/dist/hooks/session-end.js +6 -7
- package/dist/hooks/session-start.js +13 -14
- package/dist/index.js +25 -27
- package/package.json +1 -1
- package/dist/chunk-DHOQGHKQ.js +0 -379
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
recordPostCommitFired
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-3X77XQGW.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-2DA2B4EC.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-QPMLAD2C.js";
|
|
19
|
+
import "../chunk-BIAWZMCK.js";
|
|
20
20
|
import {
|
|
21
21
|
cachedCollectScopeAdmits
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-7IPGD6CD.js";
|
|
23
|
+
import "../chunk-B6EPQ4YH.js";
|
|
24
24
|
import {
|
|
25
25
|
githubRepositoryFullName,
|
|
26
26
|
isRepoActiveForCapture,
|
|
27
27
|
repoSyncId,
|
|
28
28
|
resolveRepositoryContext
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import "../chunk-DWRSEC34.js";
|
|
29
|
+
} from "../chunk-6QK75B7G.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-
|
|
8
|
+
} from "../chunk-2DA2B4EC.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-QPMLAD2C.js";
|
|
16
|
+
import "../chunk-BIAWZMCK.js";
|
|
17
17
|
import {
|
|
18
18
|
cachedCollectScopeAdmits
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-7IPGD6CD.js";
|
|
20
|
+
import "../chunk-B6EPQ4YH.js";
|
|
21
21
|
import {
|
|
22
22
|
githubRepositoryFullName,
|
|
23
23
|
isRepoActiveForCapture,
|
|
24
24
|
repoSyncId,
|
|
25
25
|
resolveRepositoryContext
|
|
26
|
-
} from "../chunk-
|
|
27
|
-
import "../chunk-DWRSEC34.js";
|
|
26
|
+
} from "../chunk-6QK75B7G.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-
|
|
4
|
+
} from "../chunk-HUZXBJJ5.js";
|
|
5
5
|
import {
|
|
6
6
|
enrichHookPayloadWithFileRefs,
|
|
7
7
|
preserveHookFileMetadata
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-PPZBEOWK.js";
|
|
9
9
|
import {
|
|
10
10
|
postToolInvocationId,
|
|
11
11
|
toMove,
|
|
12
12
|
toolOutcomeFor
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-2DA2B4EC.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-
|
|
20
|
+
} from "../chunk-QPMLAD2C.js";
|
|
21
21
|
import "../chunk-MXVCP33E.js";
|
|
22
22
|
import {
|
|
23
23
|
appendCodexContext,
|
|
24
24
|
prepareCodexContext
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-MN4X6RR6.js";
|
|
26
|
+
import "../chunk-IL443QTF.js";
|
|
27
27
|
import {
|
|
28
28
|
scrubFromCwd
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-BIAWZMCK.js";
|
|
30
30
|
import {
|
|
31
31
|
bold,
|
|
32
32
|
cachedCollectScopeAdmits,
|
|
33
33
|
color
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-7IPGD6CD.js";
|
|
35
35
|
import {
|
|
36
36
|
getClient,
|
|
37
37
|
terminalSafeLine
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-B6EPQ4YH.js";
|
|
39
39
|
import {
|
|
40
40
|
normalizeEnvelope,
|
|
41
41
|
parseAgent,
|
|
42
42
|
readHookStdin,
|
|
43
43
|
shouldSuppressImportedCursorHandler
|
|
44
|
-
} from "../chunk-
|
|
45
|
-
import "../chunk-
|
|
44
|
+
} from "../chunk-AN6XTFIN.js";
|
|
45
|
+
import "../chunk-RT7DXMTN.js";
|
|
46
|
+
import "../chunk-2DPLT2CQ.js";
|
|
46
47
|
import {
|
|
47
48
|
currentBranch,
|
|
48
49
|
isRepoActiveForCapture,
|
|
49
50
|
repoSyncId,
|
|
50
51
|
resolveRepositoryContext
|
|
51
|
-
} from "../chunk-
|
|
52
|
-
import "../chunk-35FMRWJH.js";
|
|
53
|
-
import "../chunk-DWRSEC34.js";
|
|
52
|
+
} from "../chunk-6QK75B7G.js";
|
|
54
53
|
|
|
55
54
|
// src/hooks/post-tool-use.ts
|
|
56
55
|
import { readFileSync } from "fs";
|
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-WKLYYT63.js";
|
|
6
|
+
import "../chunk-B6EPQ4YH.js";
|
|
7
|
+
import "../chunk-2DPLT2CQ.js";
|
|
8
|
+
import "../chunk-6QK75B7G.js";
|
|
9
9
|
|
|
10
10
|
// src/hooks/pre-commit.ts
|
|
11
11
|
import { execSync } from "child_process";
|
|
@@ -17,41 +17,39 @@ import {
|
|
|
17
17
|
appendCodexContext,
|
|
18
18
|
hasVisibleCodexMessage,
|
|
19
19
|
prepareCodexContext
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-MN4X6RR6.js";
|
|
21
|
+
import "../chunk-IL443QTF.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_RULES,
|
|
24
24
|
scrub
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-BIAWZMCK.js";
|
|
26
26
|
import {
|
|
27
27
|
boundedHealthError,
|
|
28
28
|
cachedCollectScopeAdmits
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-7IPGD6CD.js";
|
|
30
30
|
import {
|
|
31
31
|
HttpError,
|
|
32
32
|
getClient
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-B6EPQ4YH.js";
|
|
34
34
|
import {
|
|
35
35
|
normalizeEnvelope,
|
|
36
36
|
parseAgent,
|
|
37
37
|
readHookStdin,
|
|
38
38
|
shouldSuppressImportedCursorHandler
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-AN6XTFIN.js";
|
|
40
40
|
import {
|
|
41
41
|
packageVersion
|
|
42
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-RT7DXMTN.js";
|
|
43
|
+
import "../chunk-2DPLT2CQ.js";
|
|
43
44
|
import {
|
|
44
45
|
canonicalGitRoot,
|
|
45
46
|
canonicalRepositoryPath,
|
|
46
47
|
currentBranch,
|
|
47
48
|
githubRepositoryFullName,
|
|
48
49
|
isRepoActive,
|
|
49
|
-
repoSyncId
|
|
50
|
-
} from "../chunk-DHOQGHKQ.js";
|
|
51
|
-
import "../chunk-35FMRWJH.js";
|
|
52
|
-
import {
|
|
50
|
+
repoSyncId,
|
|
53
51
|
resolveAuthCredential
|
|
54
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-6QK75B7G.js";
|
|
55
53
|
|
|
56
54
|
// src/hooks/preflight-v3.ts
|
|
57
55
|
import { Buffer } from "buffer";
|
package/dist/hooks/prim-hook.js
CHANGED
|
@@ -8,57 +8,56 @@ import {
|
|
|
8
8
|
acknowledgeDecisionFeedback,
|
|
9
9
|
leaseDecisionFeedback,
|
|
10
10
|
renderFeedback
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-NIQAVFP6.js";
|
|
12
12
|
import {
|
|
13
13
|
recordConversationCaptured
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-3X77XQGW.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-PPZBEOWK.js";
|
|
22
22
|
import {
|
|
23
23
|
postToolInvocationId,
|
|
24
24
|
shouldFlushAfter,
|
|
25
25
|
toMove
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-2DA2B4EC.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-
|
|
33
|
+
} from "../chunk-QPMLAD2C.js";
|
|
34
34
|
import "../chunk-MXVCP33E.js";
|
|
35
35
|
import {
|
|
36
36
|
prepareCodexContext
|
|
37
|
-
} from "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
} from "../chunk-MN4X6RR6.js";
|
|
38
|
+
import "../chunk-IL443QTF.js";
|
|
39
39
|
import {
|
|
40
40
|
scrubFromCwd,
|
|
41
41
|
writeHookDebug
|
|
42
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-BIAWZMCK.js";
|
|
43
43
|
import {
|
|
44
44
|
cachedCollectScopeAdmits
|
|
45
|
-
} from "../chunk-
|
|
46
|
-
import "../chunk-
|
|
45
|
+
} from "../chunk-7IPGD6CD.js";
|
|
46
|
+
import "../chunk-B6EPQ4YH.js";
|
|
47
47
|
import {
|
|
48
48
|
normalizeEnvelope,
|
|
49
49
|
parseAgent,
|
|
50
50
|
readHookStdin,
|
|
51
51
|
shouldSuppressImportedCursorHandler
|
|
52
|
-
} from "../chunk-
|
|
53
|
-
import "../chunk-
|
|
52
|
+
} from "../chunk-AN6XTFIN.js";
|
|
53
|
+
import "../chunk-RT7DXMTN.js";
|
|
54
|
+
import "../chunk-2DPLT2CQ.js";
|
|
54
55
|
import {
|
|
55
56
|
currentBranch,
|
|
56
57
|
isRepoActiveForCapture,
|
|
57
58
|
repoSyncId,
|
|
58
59
|
resolveRepositoryContext
|
|
59
|
-
} from "../chunk-
|
|
60
|
-
import "../chunk-35FMRWJH.js";
|
|
61
|
-
import "../chunk-DWRSEC34.js";
|
|
60
|
+
} from "../chunk-6QK75B7G.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-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import {
|
|
10
|
-
isRepoActiveForCapture
|
|
11
|
-
} from "../chunk-DHOQGHKQ.js";
|
|
7
|
+
} from "../chunk-AN6XTFIN.js";
|
|
8
|
+
import "../chunk-RT7DXMTN.js";
|
|
12
9
|
import {
|
|
13
10
|
daemonRequest
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import
|
|
11
|
+
} from "../chunk-2DPLT2CQ.js";
|
|
12
|
+
import {
|
|
13
|
+
isRepoActiveForCapture
|
|
14
|
+
} from "../chunk-6QK75B7G.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-
|
|
10
|
+
} from "../chunk-JOR67B5T.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-
|
|
20
|
+
} from "../chunk-NIQAVFP6.js";
|
|
21
21
|
import {
|
|
22
22
|
clearHooksWired,
|
|
23
23
|
recordHooksWired
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-3X77XQGW.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-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
} from "../chunk-MN4X6RR6.js";
|
|
32
|
+
import "../chunk-IL443QTF.js";
|
|
33
33
|
import {
|
|
34
34
|
fetchAndCacheCollectScope
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-7IPGD6CD.js";
|
|
36
36
|
import {
|
|
37
37
|
getSiteUrl,
|
|
38
38
|
isSessionEnded
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-B6EPQ4YH.js";
|
|
40
40
|
import {
|
|
41
41
|
normalizeEnvelope,
|
|
42
42
|
parseAgent,
|
|
43
43
|
readHookStdin,
|
|
44
44
|
shouldSuppressImportedCursorHandler
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-AN6XTFIN.js";
|
|
46
46
|
import {
|
|
47
47
|
MANAGED_GIT_HOOK_NAMES
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-RT7DXMTN.js";
|
|
49
|
+
import {
|
|
50
|
+
daemonRequest
|
|
51
|
+
} from "../chunk-2DPLT2CQ.js";
|
|
49
52
|
import {
|
|
50
53
|
gitToplevel,
|
|
51
54
|
isRepoActiveForCapture,
|
|
52
55
|
repoActiveFlag,
|
|
53
56
|
setRepoActive
|
|
54
|
-
} from "../chunk-
|
|
55
|
-
import {
|
|
56
|
-
daemonRequest
|
|
57
|
-
} from "../chunk-35FMRWJH.js";
|
|
58
|
-
import "../chunk-DWRSEC34.js";
|
|
57
|
+
} from "../chunk-6QK75B7G.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";
|
package/dist/index.js
CHANGED
|
@@ -19,25 +19,25 @@ import {
|
|
|
19
19
|
resolveRepositoryBinding,
|
|
20
20
|
uninstallGitHookAtPath,
|
|
21
21
|
uninstallProjectGitHook
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JOR67B5T.js";
|
|
23
23
|
import {
|
|
24
24
|
requireDurableIngestAcknowledgement
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HUZXBJJ5.js";
|
|
26
26
|
import {
|
|
27
27
|
checkAffectedDecisions,
|
|
28
28
|
daemonOrDirectGet,
|
|
29
29
|
formatDecisionsWarning
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-WKLYYT63.js";
|
|
31
31
|
import {
|
|
32
32
|
fetchFeedbackCapability
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NIQAVFP6.js";
|
|
34
34
|
import {
|
|
35
35
|
POST_COMMIT_GRACE_MS,
|
|
36
36
|
clearHooksWired,
|
|
37
37
|
inspectPostCommitFiring,
|
|
38
38
|
lastConversationCaptured,
|
|
39
39
|
recordHooksWired
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-3X77XQGW.js";
|
|
41
41
|
import {
|
|
42
42
|
isUnattended,
|
|
43
43
|
unattendedEnv
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
rotationIdentity,
|
|
57
57
|
sweepOrphanedDrainProgress,
|
|
58
58
|
writeDrainCheckpoint
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-QPMLAD2C.js";
|
|
60
60
|
import {
|
|
61
61
|
MS_PER_SECOND,
|
|
62
62
|
deliveryBacklogState,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
formatStatusline,
|
|
66
66
|
formatTeammates,
|
|
67
67
|
repositoryBindingDiagnosticLabel
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-IL443QTF.js";
|
|
69
69
|
import {
|
|
70
70
|
bold,
|
|
71
71
|
boundedHealthError,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
isGitHubInstallIntentStatusResponse,
|
|
85
85
|
isMoveIngestRequest,
|
|
86
86
|
stripAnsi
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-7IPGD6CD.js";
|
|
88
88
|
import {
|
|
89
89
|
CliManagementResponseError,
|
|
90
90
|
HttpError,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
setStoredToken,
|
|
102
102
|
stripControlChars,
|
|
103
103
|
terminalSafeLine
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-B6EPQ4YH.js";
|
|
105
105
|
import {
|
|
106
106
|
MANAGED_GIT_HOOK_NAMES,
|
|
107
107
|
assertOwnedHookRuntime,
|
|
@@ -133,39 +133,37 @@ import {
|
|
|
133
133
|
stableNodePath,
|
|
134
134
|
stageHookRuntime,
|
|
135
135
|
stripCommand
|
|
136
|
-
} from "./chunk-
|
|
137
|
-
import {
|
|
138
|
-
canonicalGitRoot,
|
|
139
|
-
canonicalRepositoryPath,
|
|
140
|
-
decisionIngestionStatus,
|
|
141
|
-
gitToplevel,
|
|
142
|
-
isRepoActiveForCapture,
|
|
143
|
-
isValidRepoSyncId,
|
|
144
|
-
mainWorktreeRoot,
|
|
145
|
-
repoActiveFlag,
|
|
146
|
-
repoSyncId,
|
|
147
|
-
repositoryBindingState,
|
|
148
|
-
setRepoActive
|
|
149
|
-
} from "./chunk-DHOQGHKQ.js";
|
|
136
|
+
} from "./chunk-RT7DXMTN.js";
|
|
150
137
|
import {
|
|
151
138
|
daemonIsLive,
|
|
152
139
|
daemonRequest
|
|
153
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-2DPLT2CQ.js";
|
|
154
141
|
import {
|
|
155
142
|
REFRESH_TOKEN_PATH,
|
|
156
143
|
TOKEN_FILE_PATH,
|
|
157
144
|
WorkosConnectProtocolError,
|
|
158
145
|
atomicWriteFile,
|
|
146
|
+
canonicalGitRoot,
|
|
147
|
+
canonicalRepositoryPath,
|
|
148
|
+
decisionIngestionStatus,
|
|
159
149
|
discoverWorkosConnect,
|
|
150
|
+
gitToplevel,
|
|
151
|
+
isRepoActiveForCapture,
|
|
152
|
+
isValidRepoSyncId,
|
|
153
|
+
mainWorktreeRoot,
|
|
160
154
|
pollWorkosDeviceAuthorization,
|
|
161
155
|
primConfigDirectory,
|
|
162
156
|
processIsAlive,
|
|
157
|
+
repoActiveFlag,
|
|
158
|
+
repoSyncId,
|
|
159
|
+
repositoryBindingState,
|
|
163
160
|
requestWorkosDeviceAuthorization,
|
|
164
161
|
resolveAuthCredential,
|
|
162
|
+
setRepoActive,
|
|
165
163
|
syncDirectory,
|
|
166
164
|
withFileLock,
|
|
167
165
|
withFileLockSync
|
|
168
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-6QK75B7G.js";
|
|
169
167
|
|
|
170
168
|
// src/index.ts
|
|
171
169
|
import { readFileSync as readFileSync10 } from "fs";
|
|
@@ -6188,9 +6186,9 @@ function locationScopeFromOptions(options) {
|
|
|
6188
6186
|
}
|
|
6189
6187
|
function registerDecisionsCommands(program2) {
|
|
6190
6188
|
const decisions = program2.command("decisions").description("Inspect the project Decision Graph");
|
|
6191
|
-
decisions.command("check").description("Look up active decisions
|
|
6189
|
+
decisions.command("check").description("Look up active decisions scoped to file paths in the connected repository").requiredOption(
|
|
6192
6190
|
"--files <files>",
|
|
6193
|
-
"Comma-separated
|
|
6191
|
+
"Comma-separated repository-relative paths to check against the Decision Graph (repeatable)",
|
|
6194
6192
|
collectPaths
|
|
6195
6193
|
).action(async (opts) => {
|
|
6196
6194
|
const result = await checkAffectedDecisions(opts.files);
|
package/package.json
CHANGED