@primitive.ai/prim 0.1.0-alpha.46 → 0.1.0-alpha.47
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-ESLX7ISX.js → chunk-5K725K35.js} +1 -1
- package/dist/{chunk-JT4Q333I.js → chunk-CK75QBCB.js} +1 -1
- package/dist/{chunk-VQ2ZV2D5.js → chunk-TPROV45L.js} +1 -1
- package/dist/{chunk-Z4VI6TNX.js → chunk-WRPKAPVE.js} +1 -1
- package/dist/daemon/server.js +1 -1
- package/dist/hooks/post-commit.js +2 -2
- package/dist/hooks/post-tool-use.js +2 -2
- package/dist/hooks/pre-commit.js +2 -2
- package/dist/hooks/pre-tool-use.js +1 -1
- package/dist/hooks/prim-hook.js +3 -3
- package/dist/hooks/session-start.js +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -386,7 +386,7 @@ async function performTokenRefresh(options = {}) {
|
|
|
386
386
|
const record = typeof data === "object" && data !== null && !Array.isArray(data) ? data : void 0;
|
|
387
387
|
const accessToken = typeof record?.access_token === "string" ? record.access_token.trim() : "";
|
|
388
388
|
const replacementRefreshToken = typeof record?.refresh_token === "string" ? record.refresh_token.trim() : "";
|
|
389
|
-
if (!(accessToken && replacementRefreshToken)
|
|
389
|
+
if (!(accessToken && replacementRefreshToken)) {
|
|
390
390
|
if (readTrimmed(REFRESH_TOKEN_PATH) === currentGeneration) {
|
|
391
391
|
writeTerminalFingerprint(currentGeneration);
|
|
392
392
|
}
|
package/dist/daemon/server.js
CHANGED
|
@@ -356,7 +356,7 @@ async function performTokenRefresh(options = {}) {
|
|
|
356
356
|
const record = typeof data === "object" && data !== null && !Array.isArray(data) ? data : void 0;
|
|
357
357
|
const accessToken = typeof record?.access_token === "string" ? record.access_token.trim() : "";
|
|
358
358
|
const replacementRefreshToken = typeof record?.refresh_token === "string" ? record.refresh_token.trim() : "";
|
|
359
|
-
if (!(accessToken && replacementRefreshToken)
|
|
359
|
+
if (!(accessToken && replacementRefreshToken)) {
|
|
360
360
|
if (readTrimmed(REFRESH_TOKEN_PATH) === currentGeneration) {
|
|
361
361
|
writeTerminalFingerprint(currentGeneration);
|
|
362
362
|
}
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
appendMove,
|
|
7
7
|
resolveOrg
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-5K725K35.js";
|
|
9
|
+
import "../chunk-TPROV45L.js";
|
|
10
10
|
|
|
11
11
|
// src/hooks/post-commit.ts
|
|
12
12
|
import { execSync, spawn } from "child_process";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
appendMove,
|
|
15
15
|
resolveOrg
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-5K725K35.js";
|
|
17
17
|
import {
|
|
18
18
|
getOrCreateWorkspaceId
|
|
19
19
|
} from "../chunk-IMAIBPUC.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "../chunk-F7O7V6ZM.js";
|
|
24
24
|
import {
|
|
25
25
|
getClient
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-TPROV45L.js";
|
|
27
27
|
import {
|
|
28
28
|
normalizeEnvelope,
|
|
29
29
|
parseAgent
|
package/dist/hooks/pre-commit.js
CHANGED
package/dist/hooks/prim-hook.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
appendMove,
|
|
11
11
|
resolveOrg
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-5K725K35.js";
|
|
13
13
|
import {
|
|
14
14
|
buildHookOutput,
|
|
15
15
|
handoffHookOutput
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
acknowledgeDecisionFeedback,
|
|
20
20
|
leaseDecisionFeedback,
|
|
21
21
|
renderFeedback
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-CK75QBCB.js";
|
|
23
23
|
import {
|
|
24
24
|
getOrCreateWorkspaceId
|
|
25
25
|
} from "../chunk-IMAIBPUC.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
isRepoActiveForCapture,
|
|
28
28
|
warmBinCache
|
|
29
29
|
} from "../chunk-F7O7V6ZM.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-TPROV45L.js";
|
|
31
31
|
import {
|
|
32
32
|
normalizeEnvelope,
|
|
33
33
|
parseAgent
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
acknowledgeDecisionFeedback,
|
|
9
9
|
leaseDecisionFeedback,
|
|
10
10
|
renderFeedback
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-CK75QBCB.js";
|
|
12
12
|
import {
|
|
13
13
|
getOrCreateWorkspaceId
|
|
14
14
|
} from "../chunk-IMAIBPUC.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "../chunk-F7O7V6ZM.js";
|
|
20
20
|
import {
|
|
21
21
|
getSiteUrl
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-TPROV45L.js";
|
|
23
23
|
import {
|
|
24
24
|
daemonRequest
|
|
25
25
|
} from "../chunk-UTKQTZHL.js";
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
checkAffectedDecisions,
|
|
13
13
|
daemonOrDirectGet,
|
|
14
14
|
formatDecisionsWarning
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WRPKAPVE.js";
|
|
16
16
|
import {
|
|
17
17
|
JOURNAL_DIR,
|
|
18
18
|
SESSIONS_DIR,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
listFlushing,
|
|
22
22
|
pendingJournalStats,
|
|
23
23
|
readMovesFromPath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5K725K35.js";
|
|
25
25
|
import {
|
|
26
26
|
fetchFeedbackCapability
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CK75QBCB.js";
|
|
28
28
|
import {
|
|
29
29
|
inspectWorkspaceId
|
|
30
30
|
} from "./chunk-IMAIBPUC.js";
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
resolveAuthCredential,
|
|
53
53
|
setStoredToken,
|
|
54
54
|
withFileLock
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-TPROV45L.js";
|
|
56
56
|
import {
|
|
57
57
|
daemonIsLive,
|
|
58
58
|
daemonRequest
|
package/package.json
CHANGED