@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
|
@@ -2,33 +2,33 @@ import {
|
|
|
2
2
|
unattendedEnv
|
|
3
3
|
} from "./chunk-OYHYCK4K.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
canonicalHookBlock,
|
|
8
|
-
cursorConfigDirectory,
|
|
9
|
-
hookBlockContractVersion,
|
|
10
|
-
inspectGitHookEntrypoint,
|
|
11
|
-
managedHookBlock
|
|
12
|
-
} from "./chunk-PRJ7P6J5.js";
|
|
5
|
+
cursorConfigDirectory
|
|
6
|
+
} from "./chunk-MMMY57UA.js";
|
|
13
7
|
import {
|
|
14
8
|
HttpError,
|
|
15
9
|
getClient,
|
|
16
10
|
getSiteUrl
|
|
17
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RAEOSDQ6.js";
|
|
18
12
|
import {
|
|
19
13
|
CLOUD_CREDENTIALS_REMEDY,
|
|
20
14
|
CLOUD_REJECTED_CREDENTIALS_NOTICE,
|
|
15
|
+
GIT_HOOK_CONTRACT_VERSION,
|
|
21
16
|
MachineAuthError,
|
|
22
17
|
NETWORK_TOKEN_AUTH,
|
|
23
18
|
atomicWriteFile,
|
|
24
19
|
binFile,
|
|
20
|
+
blockMarkers,
|
|
21
|
+
canonicalHookBlock,
|
|
25
22
|
compareSemver,
|
|
26
23
|
gitToplevel,
|
|
27
24
|
githubRepositoryFullName,
|
|
28
25
|
hasMachineConfiguration,
|
|
26
|
+
hookBlockContractVersion,
|
|
27
|
+
inspectGitHookEntrypoint,
|
|
29
28
|
isClaudeCloudSession,
|
|
30
29
|
isValidRepoSyncId,
|
|
31
30
|
machineApiUrl,
|
|
31
|
+
managedHookBlock,
|
|
32
32
|
originIdentifiesRepository,
|
|
33
33
|
pinnedHookCommand,
|
|
34
34
|
pinnedNpxCommand,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
setRepoSyncId,
|
|
38
38
|
setRepositoryBindingState,
|
|
39
39
|
withFileLock
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BVGASV3B.js";
|
|
41
41
|
|
|
42
42
|
// src/commands/skill.ts
|
|
43
43
|
import { createHash as createHash3 } from "crypto";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RAEOSDQ6.js";
|
|
4
4
|
import {
|
|
5
5
|
isTerminalSafeText,
|
|
6
6
|
terminalSafeLine,
|
|
7
7
|
terminalSafeText
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BVGASV3B.js";
|
|
9
9
|
|
|
10
10
|
// src/decisions/feedback.ts
|
|
11
11
|
var FEEDBACK_PROTOCOL_VERSION = 2;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
analyzeShellTargets,
|
|
3
3
|
extractFileTargets
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LBZJD2I4.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_RULES,
|
|
7
7
|
scrub
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-L7U3G4XR.js";
|
|
9
9
|
import {
|
|
10
10
|
boundedHealthError,
|
|
11
11
|
isPreflightResponseV4
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QSDWWEHF.js";
|
|
13
13
|
import {
|
|
14
14
|
getClient
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RAEOSDQ6.js";
|
|
16
16
|
import {
|
|
17
17
|
canonicalGitRoot,
|
|
18
18
|
canonicalRepositoryPath,
|
|
19
19
|
terminalSafeLine
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BVGASV3B.js";
|
|
21
21
|
|
|
22
22
|
// src/hooks/approval-copy.ts
|
|
23
23
|
var MAX_EXCERPT_CHARS = 80;
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
analyzeShellTargets,
|
|
6
6
|
extractFileTargets
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LBZJD2I4.js";
|
|
8
8
|
import {
|
|
9
9
|
scrubEnvironmentPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L7U3G4XR.js";
|
|
11
11
|
import {
|
|
12
12
|
cachedCollectScopeAdmits
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QSDWWEHF.js";
|
|
14
14
|
import {
|
|
15
15
|
canonicalRepositoryPath,
|
|
16
16
|
currentBranch,
|
|
17
17
|
isRepoActiveForCapture,
|
|
18
18
|
relatedWorktreeTarget,
|
|
19
19
|
repoSyncId
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BVGASV3B.js";
|
|
21
21
|
|
|
22
22
|
// src/hooks/file-refs.ts
|
|
23
23
|
var MAX_PREFLIGHT_FILE_TARGETS = 25;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSiteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RAEOSDQ6.js";
|
|
4
4
|
import {
|
|
5
5
|
atomicWriteFile,
|
|
6
6
|
ensureDurableDirectory,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
machinePendingBucket,
|
|
14
14
|
primConfigDirectory,
|
|
15
15
|
resolveAuthCredential
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BVGASV3B.js";
|
|
17
17
|
|
|
18
18
|
// src/journal.ts
|
|
19
19
|
import {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
cursorHooksPath,
|
|
3
3
|
hasExactCursorHandler,
|
|
4
4
|
readCursorHooks
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MMMY57UA.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveRepositoryContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BVGASV3B.js";
|
|
9
9
|
|
|
10
10
|
// src/hooks/cursor-coexistence.ts
|
|
11
11
|
var CURSOR_EVENTS = /* @__PURE__ */ new Set([
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
boundedHealthError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QSDWWEHF.js";
|
|
4
4
|
import {
|
|
5
5
|
terminalSafeLine
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BVGASV3B.js";
|
|
7
7
|
|
|
8
8
|
// src/hooks/redact.ts
|
|
9
9
|
import { existsSync, readFileSync, statSync } from "fs";
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
inspectHookRuntime
|
|
3
|
-
} from "./chunk-PRJ7P6J5.js";
|
|
4
1
|
import {
|
|
5
2
|
isDemoStatusResponse
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QSDWWEHF.js";
|
|
7
4
|
import {
|
|
8
5
|
atomicWriteFile,
|
|
6
|
+
inspectHookRuntime,
|
|
9
7
|
primConfigDirectory,
|
|
10
8
|
withFileLock,
|
|
11
9
|
withFileLockSync
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BVGASV3B.js";
|
|
13
11
|
|
|
14
12
|
// src/hooks/pre-tool-use-scoring.ts
|
|
15
13
|
import { isAbsolute, relative, sep } from "path";
|