@primitive.ai/prim 0.1.0-alpha.107 → 0.1.0-alpha.109
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 +2 -2
- package/SKILL.md +21 -16
- package/dist/{chunk-6VFUHQ4J.js → chunk-AIAYIXBJ.js} +1 -1
- package/dist/{chunk-7NNJ67YN.js → chunk-D24AUSVP.js} +1 -1
- package/dist/{chunk-4CO4A6NR.js → chunk-EQYIPUFX.js} +1 -1
- package/dist/{chunk-6L7EYXVF.js → chunk-FDXDV2AT.js} +3 -3
- package/dist/{chunk-FFYZ3XMX.js → chunk-GFJ4QIVR.js} +210 -117
- package/dist/{chunk-2EKPBZNA.js → chunk-IQZA65NV.js} +19 -24
- package/dist/{chunk-P5I4HGMW.js → chunk-LFZYNNQQ.js} +1 -1
- package/dist/{chunk-TPWJQD5E.js → chunk-QJOK2VOE.js} +1 -1
- package/dist/{chunk-72CQVK4E.js → chunk-RXD6LFA2.js} +1 -1
- package/dist/{chunk-LVRD562C.js → chunk-YQFJUBNU.js} +1 -1
- package/dist/daemon/server.js +210 -117
- package/dist/hook-runtime/daemon/server.js +210 -117
- package/dist/hook-runtime/hooks/post-commit.js +210 -117
- package/dist/hook-runtime/hooks/post-rewrite.js +210 -117
- package/dist/hook-runtime/hooks/post-tool-use.js +210 -117
- package/dist/hook-runtime/hooks/pre-tool-use.js +210 -117
- package/dist/hook-runtime/hooks/prim-hook.js +210 -117
- package/dist/hook-runtime/hooks/session-start.js +225 -137
- package/dist/hook-runtime/index.js +4297 -355
- package/dist/hooks/post-commit.js +3 -3
- package/dist/hooks/post-rewrite.js +3 -3
- package/dist/hooks/post-tool-use.js +9 -9
- package/dist/hooks/pre-tool-use.js +6 -6
- package/dist/hooks/prim-hook.js +8 -8
- package/dist/hooks/session-start.js +4 -4
- package/dist/index.js +321 -158
- package/package.json +3 -1
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
commitAttributionFromEnvironment,
|
|
10
10
|
toCommitMove
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-AIAYIXBJ.js";
|
|
12
12
|
import {
|
|
13
13
|
getOrCreateWorkspaceId
|
|
14
14
|
} from "../chunk-EZXEWFDG.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
appendMove,
|
|
17
17
|
resolveOrg
|
|
18
18
|
} from "../chunk-JJI7FU24.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-YQFJUBNU.js";
|
|
20
20
|
import {
|
|
21
21
|
cachedCollectScopeAdmits
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-GFJ4QIVR.js";
|
|
23
23
|
import "../chunk-2IRLFOEL.js";
|
|
24
24
|
import {
|
|
25
25
|
githubRepositoryFullName,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
canonicalRewritePairs,
|
|
7
7
|
toRewriteMove
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-AIAYIXBJ.js";
|
|
9
9
|
import {
|
|
10
10
|
getOrCreateWorkspaceId
|
|
11
11
|
} from "../chunk-EZXEWFDG.js";
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
appendMove,
|
|
14
14
|
resolveOrg
|
|
15
15
|
} from "../chunk-JJI7FU24.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-YQFJUBNU.js";
|
|
17
17
|
import {
|
|
18
18
|
cachedCollectScopeAdmits
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-GFJ4QIVR.js";
|
|
20
20
|
import "../chunk-2IRLFOEL.js";
|
|
21
21
|
import {
|
|
22
22
|
githubRepositoryFullName,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireDurableIngestAcknowledgement
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-EQYIPUFX.js";
|
|
5
5
|
import {
|
|
6
6
|
enrichHookPayloadWithFileRefs,
|
|
7
7
|
preserveHookFileMetadata
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-FDXDV2AT.js";
|
|
9
9
|
import {
|
|
10
10
|
postToolInvocationId,
|
|
11
11
|
toMove,
|
|
12
12
|
toolOutcomeFor
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-AIAYIXBJ.js";
|
|
14
14
|
import {
|
|
15
15
|
getOrCreateWorkspaceId
|
|
16
16
|
} from "../chunk-EZXEWFDG.js";
|
|
@@ -20,21 +20,21 @@ import {
|
|
|
20
20
|
} from "../chunk-JJI7FU24.js";
|
|
21
21
|
import {
|
|
22
22
|
observeDemoInvocation
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-D24AUSVP.js";
|
|
24
24
|
import {
|
|
25
25
|
appendCodexContext,
|
|
26
26
|
prepareCodexContext
|
|
27
|
-
} from "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
27
|
+
} from "../chunk-QJOK2VOE.js";
|
|
28
|
+
import "../chunk-LFZYNNQQ.js";
|
|
29
|
+
import "../chunk-RXD6LFA2.js";
|
|
30
30
|
import {
|
|
31
31
|
scrubFromCwd
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-YQFJUBNU.js";
|
|
33
33
|
import {
|
|
34
34
|
bold,
|
|
35
35
|
cachedCollectScopeAdmits,
|
|
36
36
|
color
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-GFJ4QIVR.js";
|
|
38
38
|
import {
|
|
39
39
|
getClient,
|
|
40
40
|
terminalSafeLine
|
|
@@ -13,22 +13,22 @@ import {
|
|
|
13
13
|
failOpenOutput,
|
|
14
14
|
observeDemoInvocation,
|
|
15
15
|
readHookMode
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-D24AUSVP.js";
|
|
17
17
|
import {
|
|
18
18
|
appendCodexContext,
|
|
19
19
|
hasVisibleCodexMessage,
|
|
20
20
|
prepareCodexContext
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-QJOK2VOE.js";
|
|
22
|
+
import "../chunk-LFZYNNQQ.js";
|
|
23
|
+
import "../chunk-RXD6LFA2.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_RULES,
|
|
26
26
|
scrub
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-YQFJUBNU.js";
|
|
28
28
|
import {
|
|
29
29
|
boundedHealthError,
|
|
30
30
|
cachedCollectScopeAdmits
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-GFJ4QIVR.js";
|
|
32
32
|
import {
|
|
33
33
|
HttpError,
|
|
34
34
|
getClient
|
package/dist/hooks/prim-hook.js
CHANGED
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
enrichHookPayloadWithFileRefs,
|
|
20
20
|
preserveHookFileMetadata
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-FDXDV2AT.js";
|
|
22
22
|
import {
|
|
23
23
|
postToolInvocationId,
|
|
24
24
|
shouldFlushAfter,
|
|
25
25
|
toMove
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-AIAYIXBJ.js";
|
|
27
27
|
import {
|
|
28
28
|
getOrCreateWorkspaceId
|
|
29
29
|
} from "../chunk-EZXEWFDG.js";
|
|
@@ -33,19 +33,19 @@ import {
|
|
|
33
33
|
} from "../chunk-JJI7FU24.js";
|
|
34
34
|
import {
|
|
35
35
|
observeDemoInvocation
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-D24AUSVP.js";
|
|
37
37
|
import {
|
|
38
38
|
prepareCodexContext
|
|
39
|
-
} from "../chunk-
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
39
|
+
} from "../chunk-QJOK2VOE.js";
|
|
40
|
+
import "../chunk-LFZYNNQQ.js";
|
|
41
|
+
import "../chunk-RXD6LFA2.js";
|
|
42
42
|
import {
|
|
43
43
|
scrubFromCwd,
|
|
44
44
|
writeHookDebug
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-YQFJUBNU.js";
|
|
46
46
|
import {
|
|
47
47
|
cachedCollectScopeAdmits
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-GFJ4QIVR.js";
|
|
49
49
|
import "../chunk-2IRLFOEL.js";
|
|
50
50
|
import {
|
|
51
51
|
normalizeEnvelope,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
kickDaemonEnsure,
|
|
8
8
|
refreshClaudePlugins,
|
|
9
9
|
warmBinCache
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-IQZA65NV.js";
|
|
11
11
|
import {
|
|
12
12
|
buildHookOutput,
|
|
13
13
|
handoffHookOutput
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
} from "../chunk-EZXEWFDG.js";
|
|
29
29
|
import {
|
|
30
30
|
prepareCodexContext
|
|
31
|
-
} from "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
} from "../chunk-QJOK2VOE.js";
|
|
32
|
+
import "../chunk-RXD6LFA2.js";
|
|
33
33
|
import {
|
|
34
34
|
fetchAndCacheCollectScope
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-GFJ4QIVR.js";
|
|
36
36
|
import {
|
|
37
37
|
getSiteUrl,
|
|
38
38
|
isSessionEnded
|