@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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getSiteUrl
3
- } from "./chunk-VQ2ZV2D5.js";
3
+ } from "./chunk-TPROV45L.js";
4
4
 
5
5
  // src/journal.ts
6
6
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getClient
3
- } from "./chunk-VQ2ZV2D5.js";
3
+ } from "./chunk-TPROV45L.js";
4
4
 
5
5
  // src/decisions/feedback.ts
6
6
  var FEEDBACK_PROTOCOL_VERSION = 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) || replacementRefreshToken === currentGeneration) {
389
+ if (!(accessToken && replacementRefreshToken)) {
390
390
  if (readTrimmed(REFRESH_TOKEN_PATH) === currentGeneration) {
391
391
  writeTerminalFingerprint(currentGeneration);
392
392
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getClient,
3
3
  getSiteUrl
4
- } from "./chunk-VQ2ZV2D5.js";
4
+ } from "./chunk-TPROV45L.js";
5
5
  import {
6
6
  daemonRequest
7
7
  } from "./chunk-UTKQTZHL.js";
@@ -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) || replacementRefreshToken === currentGeneration) {
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-ESLX7ISX.js";
9
- import "../chunk-VQ2ZV2D5.js";
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-ESLX7ISX.js";
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-VQ2ZV2D5.js";
26
+ } from "../chunk-TPROV45L.js";
27
27
  import {
28
28
  normalizeEnvelope,
29
29
  parseAgent
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  checkAffectedDecisions,
4
4
  formatDecisionsWarning
5
- } from "../chunk-Z4VI6TNX.js";
6
- import "../chunk-VQ2ZV2D5.js";
5
+ } from "../chunk-WRPKAPVE.js";
6
+ import "../chunk-TPROV45L.js";
7
7
  import "../chunk-UTKQTZHL.js";
8
8
 
9
9
  // src/hooks/pre-commit.ts
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  getClient,
8
8
  getSiteUrl
9
- } from "../chunk-VQ2ZV2D5.js";
9
+ } from "../chunk-TPROV45L.js";
10
10
  import {
11
11
  daemonRequest
12
12
  } from "../chunk-UTKQTZHL.js";
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  appendMove,
11
11
  resolveOrg
12
- } from "../chunk-ESLX7ISX.js";
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-JT4Q333I.js";
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-VQ2ZV2D5.js";
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-JT4Q333I.js";
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-VQ2ZV2D5.js";
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-Z4VI6TNX.js";
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-ESLX7ISX.js";
24
+ } from "./chunk-5K725K35.js";
25
25
  import {
26
26
  fetchFeedbackCapability
27
- } from "./chunk-JT4Q333I.js";
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-VQ2ZV2D5.js";
55
+ } from "./chunk-TPROV45L.js";
56
56
  import {
57
57
  daemonIsLive,
58
58
  daemonRequest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primitive.ai/prim",
3
- "version": "0.1.0-alpha.46",
3
+ "version": "0.1.0-alpha.47",
4
4
  "description": "CLI for Primitive's decision graph — passive decision capture, conflict gate, and team presence",
5
5
  "type": "module",
6
6
  "license": "MIT",