@productbrain/cli 0.1.0-beta.12026 → 0.1.0-beta.12029

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
  /**
2
- * Labels for API keys from `pb connect` — keep in sync with convex/lib/connectRedeemDisplayName.ts.
3
- * (Monorepo boundary: Convex cannot import from packages/cli and vice versa.)
2
+ * Hand-kept, source convex/lib/connectRedeemDisplayName.ts: labels for API keys from `pb connect` (part of that file, so no
3
+ * generated copy; nothing checks it, TASK-1158). (Monorepo boundary: Convex cannot import from packages/cli and vice versa.)
4
4
  */
5
5
  export declare const CONNECT_REDEEM_DEFAULT_API_KEY_NAME = "Product Brain CLI";
6
6
  export declare const CONNECT_REDEEM_NAME_MAX_LENGTH = 200;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Labels for API keys from `pb connect` — keep in sync with convex/lib/connectRedeemDisplayName.ts.
3
- * (Monorepo boundary: Convex cannot import from packages/cli and vice versa.)
2
+ * Hand-kept, source convex/lib/connectRedeemDisplayName.ts: labels for API keys from `pb connect` (part of that file, so no
3
+ * generated copy; nothing checks it, TASK-1158). (Monorepo boundary: Convex cannot import from packages/cli and vice versa.)
4
4
  */
5
5
  export const CONNECT_REDEEM_DEFAULT_API_KEY_NAME = 'Product Brain CLI';
6
6
  export const CONNECT_REDEEM_NAME_MAX_LENGTH = 200;
@@ -1 +1 @@
1
- {"version":3,"file":"readinessNotices.d.ts","sourceRoot":"","sources":["../../src/lib/readinessNotices.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,0BAA0B,QACuH,CAAC"}
1
+ {"version":3,"file":"readinessNotices.d.ts","sourceRoot":"","sources":["../../src/lib/readinessNotices.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,0BAA0B,QACsH,CAAC"}
@@ -1,16 +1,12 @@
1
+ // GENERATED by scripts/generate-mcp-embedded-copies.mjs from kernel/entries/readinessNotices.ts.
2
+ // DO NOT EDIT. Run `npm run mcp:embedded-copies` to regenerate.
3
+ // Local runtime copy for the isolated connector build.
1
4
  /**
2
5
  * The ONE served wording for a capped readiness scan — `chain.workspaceReadiness`'s
3
6
  * accepted-entry sample hit its cap, so entry counts are floors and an apparent gap may already
4
- * be covered. One declaration per package, imported by every surface that discloses it.
5
- *
6
- * Byte-identical to the MCP twin (packages/mcp-server/src/lib/readinessNotices.ts) but
7
- * deliberately a separate constant: mcp-server's isolated Docker build resolves no private
8
- * workspace package at runtime, the same constraint that keeps FEEDBACK_SUBMIT_HINT duplicated
9
- * across the two packages (see scripts/check-notice-hint-drift.mjs for that pair's guard).
7
+ * be covered. Both connectors print it from a generated copy (scripts/generate-mcp-embedded-copies.mjs,
8
+ * TASK-1158), so the CLI and MCP words cannot drift.
10
9
  */
11
10
  import { TRUST_STATUS_LABELS } from './statusCategories.js'; // the kernel's state word
12
11
  export const READINESS_PROVISIONAL_LINE = `The sample is incomplete: it left out ${TRUST_STATUS_LABELS.current.toLowerCase()} entries. Counts are lower bounds, apparent gaps may already be covered.`;
13
- // TASK-435 (C4c): READINESS_PROVISIONAL_STAGE_SUFFIX deleted — it existed only to append onto
14
- // the deleted "Stage: X" line in formatters/orient.ts; that line is gone and this had no other
15
- // consumer (repo-wide grep, zero importers).
16
12
  //# sourceMappingURL=readinessNotices.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"readinessNotices.js","sourceRoot":"","sources":["../../src/lib/readinessNotices.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC,CAAC,0BAA0B;AAEvF,MAAM,CAAC,MAAM,0BAA0B,GACrC,yCAAyC,mBAAmB,CAAC,OAAO,CAAC,WAAW,EAAE,0EAA0E,CAAC;AAE/J,8FAA8F;AAC9F,+FAA+F;AAC/F,6CAA6C"}
1
+ {"version":3,"file":"readinessNotices.js","sourceRoot":"","sources":["../../src/lib/readinessNotices.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,gEAAgE;AAChE,uDAAuD;AAEvD;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC,CAAC,0BAA0B;AAEvF,MAAM,CAAC,MAAM,0BAA0B,GACtC,yCAAyC,mBAAmB,CAAC,OAAO,CAAC,WAAW,EAAE,0EAA0E,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Token prefix constants — single source of truth for token format strings.
3
- * keep in sync with convex/lib/tokenConstants.ts
3
+ * packages/cli/src/lib/tokenConstants.ts is generated from this file (scripts/generate-mcp-embedded-copies.mjs, TASK-1158).
4
4
  * (Monorepo boundary: Convex cannot import from packages/cli and vice versa.)
5
5
  *
6
6
  * DEC-549
@@ -14,6 +14,7 @@ export declare const PREVIEW_ADMIN_TOKEN_PREFIX = "pb_pat_";
14
14
  /**
15
15
  * Length of the random hex component in generated API keys.
16
16
  * 32 hex chars = 128-bit entropy.
17
+ * Standardized from mixed 24/32 — new keys use 32, existing keys remain valid.
17
18
  */
18
19
  export declare const API_KEY_HEX_LENGTH = 32;
19
20
  //# sourceMappingURL=tokenConstants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokenConstants.d.ts","sourceRoot":"","sources":["../../src/lib/tokenConstants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,qDAAqD;AACrD,eAAO,MAAM,cAAc,WAAW,CAAC;AAEvC,kEAAkE;AAClE,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAE7C,0FAA0F;AAC1F,eAAO,MAAM,0BAA0B,YAAY,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,KAAK,CAAC"}
1
+ {"version":3,"file":"tokenConstants.d.ts","sourceRoot":"","sources":["../../src/lib/tokenConstants.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AAEH,qDAAqD;AACrD,eAAO,MAAM,cAAc,WAAW,CAAC;AAEvC,kEAAkE;AAClE,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAE7C,0FAA0F;AAC1F,eAAO,MAAM,0BAA0B,YAAY,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,KAAK,CAAC"}
@@ -1,6 +1,9 @@
1
+ // GENERATED by scripts/generate-mcp-embedded-copies.mjs from convex/lib/tokenConstants.ts.
2
+ // DO NOT EDIT. Run `npm run mcp:embedded-copies` to regenerate.
3
+ // Local runtime copy for the isolated connector build.
1
4
  /**
2
5
  * Token prefix constants — single source of truth for token format strings.
3
- * keep in sync with convex/lib/tokenConstants.ts
6
+ * packages/cli/src/lib/tokenConstants.ts is generated from this file (scripts/generate-mcp-embedded-copies.mjs, TASK-1158).
4
7
  * (Monorepo boundary: Convex cannot import from packages/cli and vice versa.)
5
8
  *
6
9
  * DEC-549
@@ -14,6 +17,7 @@ export const PREVIEW_ADMIN_TOKEN_PREFIX = 'pb_pat_';
14
17
  /**
15
18
  * Length of the random hex component in generated API keys.
16
19
  * 32 hex chars = 128-bit entropy.
20
+ * Standardized from mixed 24/32 — new keys use 32, existing keys remain valid.
17
21
  */
18
22
  export const API_KEY_HEX_LENGTH = 32;
19
23
  //# sourceMappingURL=tokenConstants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokenConstants.js","sourceRoot":"","sources":["../../src/lib/tokenConstants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,qDAAqD;AACrD,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC;AAEvC,kEAAkE;AAClE,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AAE7C,0FAA0F;AAC1F,MAAM,CAAC,MAAM,0BAA0B,GAAG,SAAS,CAAC;AAEpD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"tokenConstants.js","sourceRoot":"","sources":["../../src/lib/tokenConstants.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,gEAAgE;AAChE,uDAAuD;AAEvD;;;;;;GAMG;AAEH,qDAAqD;AACrD,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC;AAEvC,kEAAkE;AAClE,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AAE7C,0FAA0F;AAC1F,MAAM,CAAC,MAAM,0BAA0B,GAAG,SAAS,CAAC;AAEpD;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@productbrain/cli",
3
- "version": "0.1.0-beta.12026",
3
+ "version": "0.1.0-beta.12029",
4
4
  "description": "Product Brain — Chain knowledge and write-back CLI",
5
5
  "type": "module",
6
6
  "bin": {