@productbrain/cli 0.1.0-beta.6920 → 0.1.0-beta.6927

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.
@@ -15,11 +15,12 @@ type TypeRow = {
15
15
  /** Resolves the declared `valid_relation_types` for `canonicalKey` out of a semantic-types
16
16
  * listEntries result the SAME way loadTypeMap does (convex/chain/semanticTypes.ts:81-99):
17
17
  * trust-accepted AND parsable rows only, and when duplicate canonical_key rows exist (a
18
- * supported state — backfillTypeRegistryReconcile.test.ts:175-199 exercises an active
19
- * duplicate) the LAST such match in listEntries' query order wins, mirroring loadTypeMap's
20
- * Map.set()-overwrite-per-match loop over the same by_collection-indexed query — a malformed
21
- * duplicate is skipped entirely rather than overwriting an earlier valid row (bcRICo). Then
22
- * filters to what `pb relate` can create. */
18
+ * supported state — `canonical_key` is NOT DB-unique across rows, per semanticTypes.ts's own
19
+ * loadTypeProvenance doc comment; semanticTypes.test.ts's `AND-reduces to false...` cases seed
20
+ * exactly this active-duplicate shape) the LAST such match in listEntries' query order wins,
21
+ * mirroring loadTypeMap's Map.set()-overwrite-per-match loop over the same by_collection-indexed
22
+ * query — a malformed duplicate is skipped entirely rather than overwriting an earlier valid row
23
+ * (bcRICo). Then filters to what `pb relate` can create. */
23
24
  export declare function resolveCreatableRelationTypes(typeRows: readonly TypeRow[] | null | undefined, canonicalKey: string, targetIsDomain: boolean): string[];
24
25
  export {};
25
26
  //# sourceMappingURL=legalRelationTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"legalRelationTypes.d.ts","sourceRoot":"","sources":["../../src/lib/legalRelationTypes.ts"],"names":[],"mappings":"AAgDA;;;wEAGwE;AACxE,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,gBAAgB,EAAE,OAAO,GAAG,MAAM,EAAE,CAS5H;AAQD,KAAK,OAAO,GAAG;IACb,IAAI,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,OAAO,CAAC;QAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAC7H,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAcF;;;;;;;8CAO8C;AAC9C,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,EAC/C,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,OAAO,GACtB,MAAM,EAAE,CASV"}
1
+ {"version":3,"file":"legalRelationTypes.d.ts","sourceRoot":"","sources":["../../src/lib/legalRelationTypes.ts"],"names":[],"mappings":"AAgDA;;;wEAGwE;AACxE,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,gBAAgB,EAAE,OAAO,GAAG,MAAM,EAAE,CAS5H;AAQD,KAAK,OAAO,GAAG;IACb,IAAI,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,OAAO,CAAC;QAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAC7H,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAcF;;;;;;;;6DAQ6D;AAC7D,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,EAC/C,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,OAAO,GACtB,MAAM,EAAE,CASV"}
@@ -73,11 +73,12 @@ function isParsableSemanticTypeRow(data) {
73
73
  /** Resolves the declared `valid_relation_types` for `canonicalKey` out of a semantic-types
74
74
  * listEntries result the SAME way loadTypeMap does (convex/chain/semanticTypes.ts:81-99):
75
75
  * trust-accepted AND parsable rows only, and when duplicate canonical_key rows exist (a
76
- * supported state — backfillTypeRegistryReconcile.test.ts:175-199 exercises an active
77
- * duplicate) the LAST such match in listEntries' query order wins, mirroring loadTypeMap's
78
- * Map.set()-overwrite-per-match loop over the same by_collection-indexed query — a malformed
79
- * duplicate is skipped entirely rather than overwriting an earlier valid row (bcRICo). Then
80
- * filters to what `pb relate` can create. */
76
+ * supported state — `canonical_key` is NOT DB-unique across rows, per semanticTypes.ts's own
77
+ * loadTypeProvenance doc comment; semanticTypes.test.ts's `AND-reduces to false...` cases seed
78
+ * exactly this active-duplicate shape) the LAST such match in listEntries' query order wins,
79
+ * mirroring loadTypeMap's Map.set()-overwrite-per-match loop over the same by_collection-indexed
80
+ * query — a malformed duplicate is skipped entirely rather than overwriting an earlier valid row
81
+ * (bcRICo). Then filters to what `pb relate` can create. */
81
82
  export function resolveCreatableRelationTypes(typeRows, canonicalKey, targetIsDomain) {
82
83
  let declared;
83
84
  for (const row of typeRows ?? []) {
@@ -1 +1 @@
1
- {"version":3,"file":"legalRelationTypes.js","sourceRoot":"","sources":["../../src/lib/legalRelationTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAAE,sBAAsB,IAAI,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AAEhH,MAAM,sBAAsB,GAAwB,IAAI,GAAG,CAAC,2BAA2B,CAAC,CAAC;AAEzF;uFACuF;AACvF,MAAM,mBAAmB,GAAwB,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,qBAAqB,CAAC,CAAC,CAAC;AAE9F;4FAC4F;AAC5F,MAAM,gBAAgB,GAAwB,IAAI,GAAG,CAAC,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAE1F;0DAC0D;AAC1D,MAAM,mBAAmB,GAAwB,IAAI,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;AAE1E;;;wEAGwE;AACxE,MAA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,IAAI,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CACtD,CAAC;AACJ,CAAC;AAED;mGACmG;AACnG,SAAS,qBAAqB,CAAC,MAA0B;IACvD,OAAO,MAAM,KAAK,UAAU,IAAI,MAAM,KAAK,QAAQ,CAAC;AACtD,CAAC;AAOD;;;;qEAIqE;AACrE,SAAS,yBAAyB,CAAC,IAAqB;IACtD,OAAO,OAAO,IAAI,EAAE,WAAW,KAAK,QAAQ;WACvC,CAAC,IAAI,CAAC,gBAAgB,KAAK,yBAAyB;eAClD,IAAI,CAAC,gBAAgB,KAAK,qBAAqB;eAC/C,IAAI,CAAC,gBAAgB,KAAK,UAAU,CAAC,CAAC;AAC/C,CAAC;AAED;;;;;;;;6DAQ6D;AAC7D,MAAM,UAAU,6BAA6B,CAC3C,QAA+C,EAC/C,YAAoB,EACpB,cAAuB;IAEvB,IAAI,QAAiB,CAAC;IACtB,KAAK,MAAM,GAAG,IAAI,QAAQ,IAAI,EAAE,EAAE,CAAC;QACjC,IAAI,GAAG,CAAC,IAAI,EAAE,aAAa,KAAK,YAAY;YAAE,SAAS;QACvD,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,MAAM,CAAC;YAAE,SAAS;QACjD,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,SAAS;QACnD,QAAQ,GAAG,GAAG,CAAC,IAAI,EAAE,oBAAoB,CAAC;IAC5C,CAAC;IACD,OAAO,4BAA4B,CAAC,QAAQ,EAAE,cAAc,EAAE,YAAY,KAAK,UAAU,CAAC,CAAC;AAC7F,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@productbrain/cli",
3
- "version": "0.1.0-beta.6920",
3
+ "version": "0.1.0-beta.6927",
4
4
  "description": "Product Brain — Chain knowledge and write-back CLI",
5
5
  "type": "module",
6
6
  "bin": {