@primitive.ai/prim 0.1.0-alpha.89 → 0.1.0-alpha.90
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-MDDHTIXL.js → chunk-2JRX7ZR4.js} +1 -1
- package/dist/{chunk-KL322THW.js → chunk-6IWNH776.js} +1 -1
- package/dist/{chunk-WPD4QRNJ.js → chunk-C7T7B45R.js} +1 -1
- package/dist/{chunk-BOW3Y3KS.js → chunk-MAZWKJGL.js} +421 -404
- package/dist/{chunk-EWM3RYCA.js → chunk-R26A7TWY.js} +1 -1
- package/dist/{chunk-GBEPUEPZ.js → chunk-UZPBB7V4.js} +1 -1
- package/dist/daemon/server.js +421 -404
- package/dist/hook-runtime/daemon/server.js +421 -404
- package/dist/hook-runtime/hooks/post-commit.js +421 -404
- package/dist/hook-runtime/hooks/post-rewrite.js +421 -404
- package/dist/hook-runtime/hooks/post-tool-use.js +421 -404
- package/dist/hook-runtime/hooks/pre-tool-use.js +421 -404
- package/dist/hook-runtime/hooks/prim-hook.js +421 -404
- package/dist/hook-runtime/hooks/session-start.js +421 -404
- package/dist/hook-runtime/index.js +425 -407
- package/dist/hooks/post-commit.js +2 -2
- package/dist/hooks/post-rewrite.js +2 -2
- package/dist/hooks/post-tool-use.js +5 -5
- package/dist/hooks/pre-tool-use.js +2 -2
- package/dist/hooks/prim-hook.js +4 -4
- package/dist/hooks/session-start.js +3 -3
- package/dist/index.js +7 -6
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
commitAttributionFromEnvironment,
|
|
4
4
|
toCommitMove
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-2JRX7ZR4.js";
|
|
6
6
|
import {
|
|
7
7
|
getOrCreateWorkspaceId
|
|
8
8
|
} from "../chunk-EZXEWFDG.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isRepoActiveForCapture,
|
|
19
19
|
repoSyncId,
|
|
20
20
|
resolveRepositoryContext
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-MAZWKJGL.js";
|
|
22
22
|
import "../chunk-Z7YPFWAZ.js";
|
|
23
23
|
import "../chunk-3EEFL6NJ.js";
|
|
24
24
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
canonicalRewritePairs,
|
|
4
4
|
toRewriteMove
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-2JRX7ZR4.js";
|
|
6
6
|
import {
|
|
7
7
|
getOrCreateWorkspaceId
|
|
8
8
|
} from "../chunk-EZXEWFDG.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isRepoActiveForCapture,
|
|
19
19
|
repoSyncId,
|
|
20
20
|
resolveRepositoryContext
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-MAZWKJGL.js";
|
|
22
22
|
import "../chunk-Z7YPFWAZ.js";
|
|
23
23
|
import "../chunk-3EEFL6NJ.js";
|
|
24
24
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireDurableIngestAcknowledgement
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-R26A7TWY.js";
|
|
5
5
|
import {
|
|
6
6
|
enrichHookPayloadWithFileRefs,
|
|
7
7
|
preserveHookFileMetadata
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-6IWNH776.js";
|
|
9
9
|
import {
|
|
10
10
|
postToolInvocationId,
|
|
11
11
|
toMove,
|
|
12
12
|
toolOutcomeFor
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-2JRX7ZR4.js";
|
|
14
14
|
import {
|
|
15
15
|
getOrCreateWorkspaceId
|
|
16
16
|
} from "../chunk-EZXEWFDG.js";
|
|
@@ -22,7 +22,7 @@ import "../chunk-PPQYQEIR.js";
|
|
|
22
22
|
import {
|
|
23
23
|
appendCodexContext,
|
|
24
24
|
prepareCodexContext
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-UZPBB7V4.js";
|
|
26
26
|
import "../chunk-PMRDE2DA.js";
|
|
27
27
|
import {
|
|
28
28
|
scrubFromCwd
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
isRepoActiveForCapture,
|
|
38
38
|
repoSyncId,
|
|
39
39
|
resolveRepositoryContext
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-MAZWKJGL.js";
|
|
41
41
|
import {
|
|
42
42
|
getClient,
|
|
43
43
|
terminalSafeLine
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
appendCodexContext,
|
|
16
16
|
hasVisibleCodexMessage,
|
|
17
17
|
prepareCodexContext
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-UZPBB7V4.js";
|
|
19
19
|
import {
|
|
20
20
|
packageVersion
|
|
21
21
|
} from "../chunk-PMRDE2DA.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
githubRepositoryFullName,
|
|
35
35
|
isRepoActive,
|
|
36
36
|
repoSyncId
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-MAZWKJGL.js";
|
|
38
38
|
import {
|
|
39
39
|
getClient
|
|
40
40
|
} from "../chunk-Z7YPFWAZ.js";
|
package/dist/hooks/prim-hook.js
CHANGED
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
enrichHookPayloadWithFileRefs,
|
|
14
14
|
preserveHookFileMetadata
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-6IWNH776.js";
|
|
16
16
|
import {
|
|
17
17
|
postToolInvocationId,
|
|
18
18
|
shouldFlushAfter,
|
|
19
19
|
toMove
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-2JRX7ZR4.js";
|
|
21
21
|
import {
|
|
22
22
|
getOrCreateWorkspaceId
|
|
23
23
|
} from "../chunk-EZXEWFDG.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import "../chunk-PPQYQEIR.js";
|
|
29
29
|
import {
|
|
30
30
|
prepareCodexContext
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-UZPBB7V4.js";
|
|
32
32
|
import "../chunk-PMRDE2DA.js";
|
|
33
33
|
import {
|
|
34
34
|
scrubFromCwd,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
isRepoActiveForCapture,
|
|
42
42
|
repoSyncId,
|
|
43
43
|
resolveRepositoryContext
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-MAZWKJGL.js";
|
|
45
45
|
import "../chunk-Z7YPFWAZ.js";
|
|
46
46
|
import {
|
|
47
47
|
normalizeEnvelope,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
hasUsableCodexGuidance,
|
|
7
7
|
refreshClaudePlugins,
|
|
8
8
|
warmBinCache
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-C7T7B45R.js";
|
|
10
10
|
import {
|
|
11
11
|
buildHookOutput,
|
|
12
12
|
handoffHookOutput
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "../chunk-EZXEWFDG.js";
|
|
23
23
|
import {
|
|
24
24
|
prepareCodexContext
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-UZPBB7V4.js";
|
|
26
26
|
import {
|
|
27
27
|
binFile
|
|
28
28
|
} from "../chunk-PMRDE2DA.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
isRepoActiveForCapture,
|
|
33
33
|
repoActiveFlag,
|
|
34
34
|
setRepoActive
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-MAZWKJGL.js";
|
|
36
36
|
import {
|
|
37
37
|
getSiteUrl,
|
|
38
38
|
isSessionEnded
|
package/dist/index.js
CHANGED
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
uninstallPostRewriteHookAtPath,
|
|
18
18
|
uninstallProjectPostCommitHook,
|
|
19
19
|
uninstallProjectPostRewriteHook
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-C7T7B45R.js";
|
|
21
21
|
import {
|
|
22
22
|
requireDurableIngestAcknowledgement
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-R26A7TWY.js";
|
|
24
24
|
import {
|
|
25
25
|
checkAffectedDecisions,
|
|
26
26
|
daemonOrDirectGet,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
repoSyncId,
|
|
85
85
|
repositoryBindingState,
|
|
86
86
|
setRepoActive
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-MAZWKJGL.js";
|
|
88
88
|
import {
|
|
89
89
|
CliManagementResponseError,
|
|
90
90
|
HttpError,
|
|
@@ -6532,10 +6532,10 @@ async function rescopeDecision(request, dependencies = defaultDependencies4) {
|
|
|
6532
6532
|
var NOT_FOUND_RE4 = /not found/i;
|
|
6533
6533
|
function colorStatus(status) {
|
|
6534
6534
|
const safeStatus = terminalSafeLine(status);
|
|
6535
|
-
if (status === "under_review") {
|
|
6535
|
+
if (status === "under_review" || status === "provisional") {
|
|
6536
6536
|
return color(safeStatus, "orange");
|
|
6537
6537
|
}
|
|
6538
|
-
if (status === "active") {
|
|
6538
|
+
if (status === "active" || status === "adopted") {
|
|
6539
6539
|
return color(safeStatus, "green");
|
|
6540
6540
|
}
|
|
6541
6541
|
return color(safeStatus, "gray");
|
|
@@ -6661,9 +6661,10 @@ function formatShowHuman(result) {
|
|
|
6661
6661
|
const d = result.decision;
|
|
6662
6662
|
const id = color(renderIdentifier({ shortId: d.shortId, id: d.id }), "orange");
|
|
6663
6663
|
const confidence = d.confidence ?? "(unset)";
|
|
6664
|
+
const displayedStatus = d.stage ?? d.status;
|
|
6664
6665
|
const lines = [
|
|
6665
6666
|
`[prim] ${id} \u2014 ${terminalSafeLine(d.intent)}`,
|
|
6666
|
-
` status: ${colorStatus(
|
|
6667
|
+
` status: ${colorStatus(displayedStatus)}${d.confirmed ? " (confirmed)" : ""} \xB7 confidence: ${terminalSafeLine(confidence)} \xB7 reversibility: ${terminalSafeLine(d.reversibility ?? "(unset)")}`
|
|
6667
6668
|
];
|
|
6668
6669
|
if (d.supersededBy) {
|
|
6669
6670
|
lines.push(` superseded by: ${terminalSafeLine(d.supersededBy)}`);
|
package/package.json
CHANGED