@beehexa/hexasync-template-model 2610.4.7 → 2610.12.1

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.
@@ -65,8 +65,8 @@ export declare function unsupportedConnectorRequestEmail(input: {
65
65
  * exists today (Epic 2 review: three comments asserted that surface as present);
66
66
  * only the data is supplied.
67
67
  *
68
- * The consequence is real and must never be silent: a bare `hexasync compose` has no catalog, so the
69
- * catalog-dependent checks cannot run. `catalogChecksSkipped` is how a run says so out loud.
68
+ * The consequence is real and must never be silent: a run without an injected catalog cannot perform
69
+ * catalog-dependent checks. `catalogChecksSkipped` is how a run says so out loud.
70
70
  */
71
71
  export interface CatalogEntry {
72
72
  readonly key: string;
@@ -120,4 +120,24 @@ export declare function entryForPair(catalog: ConnectorCatalog, connectorId: str
120
120
  export declare function entriesForSystemCode(catalog: ConnectorCatalog, systemCode: string): readonly CatalogEntry[];
121
121
  /** Any entry claiming this system id. The other half of the pair a copy-paste breaks. */
122
122
  export declare function entriesForSystemId(catalog: ConnectorCatalog, systemId: string): readonly CatalogEntry[];
123
+ /**
124
+ * One row, admitted only if it carries the three fields every consumer indexes on.
125
+ *
126
+ * `systemId`, `systemCode` and `status` are deliberately NOT required: `catalog.json` records blanks in
127
+ * `missing` and the catalog's own note is explicit that *"`status: incomplete` is a property of the row, never
128
+ * a reason to refuse it"*. Dropping an incomplete row here would make `CONN-1` report a connector the catalog
129
+ * does list — the exact failure `connectorCatalogOf` declines whole files in order to avoid.
130
+ *
131
+ * Lives beside the shape rather than in one Host, so the editor and the MCP server load the shipped catalog
132
+ * through ONE projection: a second parser is a second place for a field to go missing.
133
+ */
134
+ export declare function connectorCatalogEntryOf(value: unknown): CatalogEntry | undefined;
135
+ /**
136
+ * The parsed `connectors/catalog.json` document as a catalog, or nothing.
137
+ *
138
+ * A single unreadable row is enough to decline the whole file: a catalog with one connector missing is a
139
+ * catalog that accuses that connector's author (`CONN-1` "not in the catalog"), while no catalog at all makes
140
+ * `CONN-0` say out loud that catalog checks were skipped. Declining is loud; a half-truth is not.
141
+ */
142
+ export declare function connectorCatalogOf(document: unknown): ConnectorCatalog | undefined;
123
143
  //# sourceMappingURL=connectorSupport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connectorSupport.d.ts","sourceRoot":"","sources":["../src/connectorSupport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,oGAAoG;AACpG,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAKjD,CAAC;AAEF,eAAO,MAAM,aAAa,wBAAwB,CAAC;AAEnD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IACzC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAexE;AAED;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,QAEW,CAAC;AAEpD;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE;IACtD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;CAC9B,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAwB3E;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,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ACzB,WAAW,EAAE,MAAM,GAClB,OAAO,CAET;AAED,mGAAmG;AACnG,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,gBAAgB,EACzB,WAAW,EAAE,MAAM,GAClB,SAAS,YAAY,EAAE,CAIzB;AAED,gGAAgG;AAChG,wBAAgB,YAAY,CAC1B,OAAO,EAAE,gBAAgB,EACzB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GAAG,SAAS,GAC7B,YAAY,GAAG,SAAS,CAI1B;AAED,gGAAgG;AAChG,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,gBAAgB,EACzB,UAAU,EAAE,MAAM,GACjB,SAAS,YAAY,EAAE,CAIzB;AAED,yFAAyF;AACzF,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,MAAM,GACf,SAAS,YAAY,EAAE,CAIzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CA0GhF;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,OAAO,GAAG,gBAAgB,GAAG,SAAS,CA6BlF"}
@@ -113,4 +113,144 @@ export function entriesForSystemCode(catalog, systemCode) {
113
113
  export function entriesForSystemId(catalog, systemId) {
114
114
  return catalog.connectors.filter((entry) => fold(entry.systemId) === fold(systemId));
115
115
  }
116
+ /**
117
+ * One row, admitted only if it carries the three fields every consumer indexes on.
118
+ *
119
+ * `systemId`, `systemCode` and `status` are deliberately NOT required: `catalog.json` records blanks in
120
+ * `missing` and the catalog's own note is explicit that *"`status: incomplete` is a property of the row, never
121
+ * a reason to refuse it"*. Dropping an incomplete row here would make `CONN-1` report a connector the catalog
122
+ * does list — the exact failure `connectorCatalogOf` declines whole files in order to avoid.
123
+ *
124
+ * Lives beside the shape rather than in one Host, so the editor and the MCP server load the shipped catalog
125
+ * through ONE projection: a second parser is a second place for a field to go missing.
126
+ */
127
+ export function connectorCatalogEntryOf(value) {
128
+ if (typeof value !== 'object' || value === null || Array.isArray(value))
129
+ return undefined;
130
+ const { key, name, generation, connectorId, systemId, systemCode, status, icon, description, supersededBy, supersedes, connectable, internal,
131
+ /**
132
+ * ⛔ ADDED in the Story 5.5 review, because it could never reach a consumer.
133
+ *
134
+ * The card was built to show `authKind` and a test claimed it would "the day a row declares one" — but this
135
+ * projection did not carry the field, so the answer was `undefined` no matter what any row or overlay said.
136
+ * The test hand-built its entry and so could not see it.
137
+ *
138
+ * That is the **fourth** field this allowlist has silently dropped: `icon` (Story 3.1), `description`
139
+ * (3.4), `supersededBy` (3.9), now this. The pattern is the allowlist itself — a projection that must be
140
+ * edited for every new field will be forgotten for every new field.
141
+ */
142
+ authKind, } = value;
143
+ /**
144
+ * BLANK is not present (Epic 2 review).
145
+ *
146
+ * `typeof '' === 'string'` passed, so a row with `connectorId: ""` was admitted into the catalog — and then
147
+ * `fold('')` matched no real identity, so `CONN-1` reported that very connector as *"not in the shipped
148
+ * catalog"*. The catalog listed it and the rule denied it, which is exactly the accusation this module
149
+ * declines whole files to avoid. The shipped data uses `""` rather than absence for its incomplete rows, so
150
+ * this is the file's own idiom rather than a hypothetical.
151
+ *
152
+ * `systemId`/`systemCode`/`status` stay optional and may be blank: the catalog's note is explicit that an
153
+ * incomplete row is still a row. Only the three fields every consumer INDEXES on must be real.
154
+ */
155
+ const declared = (field) => typeof field === 'string' && field.trim() !== '';
156
+ if (!declared(key) ||
157
+ !declared(name) ||
158
+ !declared(generation) ||
159
+ !declared(connectorId)) {
160
+ return undefined;
161
+ }
162
+ return {
163
+ key,
164
+ name,
165
+ generation,
166
+ connectorId,
167
+ ...(typeof systemId === 'string' ? { systemId } : {}),
168
+ ...(typeof systemCode === 'string' ? { systemCode } : {}),
169
+ ...(typeof status === 'string' ? { status } : {}),
170
+ /**
171
+ * `icon` is CARRIED, as of Story 3.1 (FR-11).
172
+ *
173
+ * It was dropped here — every one of the 22 rows ships an `icon` and the projection silently omitted it, so
174
+ * the chain's third link could never fire through a loaded catalog. `iconChain.spec.ts` did not catch it
175
+ * because it read `catalog.json` directly rather than through this loader: a test that bypasses the code it
176
+ * is about proves only that the DATA is fine. Found by survey before shipping.
177
+ */
178
+ ...(typeof icon === 'string' ? { icon } : {}),
179
+ /**
180
+ * `authKind` — the FOURTH field this projection had lost (Story 5.5 review).
181
+ *
182
+ * Carried so the connection card can state how a system authenticates, which the PRD calls *"the fact a
183
+ * developer can currently only get by reading gateway source"*. No shipped row declares one today, so this
184
+ * changes nothing visible — and that is exactly why it went unnoticed: the card's own test hand-built its
185
+ * entry and never came through here.
186
+ */
187
+ ...(typeof authKind === 'string' ? { authKind } : {}),
188
+ /**
189
+ * `description` is carried too — and this projection has now dropped a needed field TWICE.
190
+ *
191
+ * `icon` went missing until Story 3.1 asked for it; `description` until Story 3.4 tried to default a
192
+ * generated connection's description from it. The pattern is the projection being an allowlist while the
193
+ * catalog schema is `additionalProperties: false`: every new consumer discovers a field that was there all
194
+ * along and unreachable. Recorded as **Story D.12** — carry the declared shape rather than an allowlist.
195
+ */
196
+ ...(typeof description === 'string' ? { description } : {}),
197
+ /**
198
+ * The generation lineage — `supersededBy` is Story 3.9's AC-5 (offer the migration by name).
199
+ *
200
+ * THIRD field this projection has silently dropped, after `icon` and `description`. Three occurrences settle
201
+ * what D.12 argued from two: an allowlist against an `additionalProperties: false` schema fails closed and
202
+ * silently, and the failure looks like missing data rather than a dropped field. Every one of these was
203
+ * present in the shipped rows the entire time.
204
+ */
205
+ ...(typeof supersededBy === 'string' ? { supersededBy } : {}),
206
+ ...(typeof supersedes === 'string' ? { supersedes } : {}),
207
+ /**
208
+ * Whether the picker may offer this row (Epic 3 review, finding 4).
209
+ *
210
+ * `internal` marks the ids that are real but are never *"a system to connect to"* — the self connector,
211
+ * PostgreSQL, Basic Authentication. Both are absent on every shipped row and both default permissive at the
212
+ * call site, so today nothing is hidden; the FILTER is what was missing from AC-3, not the data.
213
+ */
214
+ ...(typeof connectable === 'boolean' ? { connectable } : {}),
215
+ ...(typeof internal === 'boolean' ? { internal } : {}),
216
+ };
217
+ }
218
+ /**
219
+ * The parsed `connectors/catalog.json` document as a catalog, or nothing.
220
+ *
221
+ * A single unreadable row is enough to decline the whole file: a catalog with one connector missing is a
222
+ * catalog that accuses that connector's author (`CONN-1` "not in the catalog"), while no catalog at all makes
223
+ * `CONN-0` say out loud that catalog checks were skipped. Declining is loud; a half-truth is not.
224
+ */
225
+ export function connectorCatalogOf(document) {
226
+ if (typeof document !== 'object' || document === null || Array.isArray(document))
227
+ return undefined;
228
+ const { catalogVersion, universalConnectorId, connectors } = document;
229
+ if (typeof catalogVersion !== 'string' && typeof catalogVersion !== 'number')
230
+ return undefined;
231
+ if (typeof universalConnectorId !== 'string' || universalConnectorId.trim() === '')
232
+ return undefined;
233
+ if (!Array.isArray(connectors) || connectors.length === 0)
234
+ return undefined;
235
+ const rows = [];
236
+ for (const row of connectors) {
237
+ const entry = connectorCatalogEntryOf(row);
238
+ if (!entry)
239
+ return undefined;
240
+ rows.push(entry);
241
+ }
242
+ /**
243
+ * The universal connector id must NAME A ROW (Epic 2 review).
244
+ *
245
+ * Checked only for being a non-blank string, so a catalog whose `universalConnectorId` matched nothing still
246
+ * loaded — and then every V3 connection entered the rule's universal branch with an empty entry list, where a
247
+ * known-good V2 system code produced `critical` with its "valid codes here include" clause silently omitted,
248
+ * and the connector id itself was never reported. The rule's two branches disagreed about the same
249
+ * catalog-integrity question; this answers it once, at the door, where a bad catalog is the tool's problem.
250
+ */
251
+ if (!rows.some((row) => fold(row.connectorId) === fold(universalConnectorId))) {
252
+ return undefined;
253
+ }
254
+ return { catalogVersion, universalConnectorId, connectors: rows };
255
+ }
116
256
  //# sourceMappingURL=connectorSupport.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"connectorSupport.js","sourceRoot":"","sources":["../src/connectorSupport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,oGAAoG;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M,IAAI,GAAmB,EAAE,CAAC;IAChC,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAC7B,MAAM,KAAK,GAAG,uBAAuB,CAAC,GAAG,CAAC,CAAC;QAC3C,IAAI,CAAC,KAAK;YAAE,OAAO,SAAS,CAAC;QAC7B,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC;QAC9E,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;AACpE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,14 @@
1
+ /** Immutable identity shared by product, documentation, and registration surfaces. */
2
+ export interface DocumentationProductIdentity {
3
+ readonly productName: 'HexaSync Template IDE';
4
+ readonly serverName: 'HexaSync Template IDE MCP Server';
5
+ readonly shortLabel: 'Template IDE MCP';
6
+ readonly productId: 'hexasync-template-ide';
7
+ readonly vscodeProviderId: 'hexasync.templateIdeMcp';
8
+ readonly serverPackageName: '@beehexa/hexasync-template-ide-mcp';
9
+ readonly commandPrefix: 'HexaSync IDE:';
10
+ }
11
+ export declare const DOCUMENTATION_PRODUCT_IDENTITY: DocumentationProductIdentity;
1
12
  export { normalizeUri, joinUri, dirnameUri, basenameUri, resolveUri, relativeUri, isAbsoluteUri, isInsideUri, } from './uriPath.js';
2
13
  export { normalizeComponentKey } from './componentKey.js';
3
14
  export { ADDRESS_SEPARATOR, RENDERED_SEPARATOR, keySegment, identitySegment, entrySegment, nodeAddress, renderedNodeId, addressSegments, addressMatches, addressForRenderedId, occurrenceSegment, occurrenceOfAddress, occurrenceSegmentText, rangeSegmentText, OCCURRENCE_SEGMENT_PATTERN, type AddressSegment, } from './nodeAddress.js';
@@ -27,6 +38,7 @@ export { classifyTemplating, hasComposeTimeTemplating, hasRuntimeTemplating, com
27
38
  */
28
39
  export * from './references.js';
29
40
  export * from './connectorSupport.js';
41
+ export * from './workspaceConnectorCatalog.js';
30
42
  export { renderMermaid as renderFlowMermaid, renderMermaidWithOccurrences as renderFlowMermaidWithOccurrences, renderMarkdown as renderFlowMarkdown, escapeLabel, APPROVED_NODE_TREATMENTS, UNIMPLEMENTED_WORKER_STEP_TYPES, classifyNodeTreatment, APPROVED_NODE_COLORS, STROKE_ROLES, STATE_ROLES, REPEAT_BADGE_ROLES, RUN_STATES, INDETERMINATE_RUN_STATE, FLOW_RENDER_STAGE_OWNERSHIP, MERMAID_DEFAULT_MAX_TEXT_SIZE, measureDefinitionBudget, DefinitionOverBudgetError, type DefinitionBudget, type RenderedFlow, type RenderNode, type RenderEdge, type RenderGroup, type RenderOptions, type RenderOverlay, type RenderNodeOverlay, type RenderNodeOverlayRoles, type RunState, type RenderNodeColors, type StrokeRole, type NodeTreatment, type FlowDirection, type RenderFidelity, } from './flowRender.js';
31
43
  export { WORKER_STEP_FAMILIES, STEP_FAMILY_PARENTS, STEP_ICON_ASSETS, STEP_ICON_TILE, UNMAPPED_STEP_ICON, composeAccessibleNodeLabel, composeNodeLabel, composeNodeLabelModel, glyphOfStepType, glyphOfFrontendStepType, glyphOfStepFamily, familyOfStepType, familyOfFrontendStepType, stepIconClassName, RUN_STATE_ERROR_MARKER, REPEAT_BADGE_GLYPH, repeatBadgeText, runStateAlternativeText, type NodeRunStateContent, type ParentStepFamily, type WorkerStepFamily, type WorkerStepType, type StepTypeDomain, type StepIconAsset, type NodeLabelInput, type NodeLabelAnatomy, type NodeLabelComposition, } from './stepGlyph.js';
32
44
  export { auditWorkerRosterManifest, WORKER_ROSTER_MAX_AGE_MS, type WorkerRosterAudit, type WorkerRosterAuditOptions, } from './workerStepVocabularyAudit.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EACZ,OAAO,EACP,UAAU,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,aAAa,EACb,WAAW,GACZ,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAI1D,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,eAAe,EACf,YAAY,EACZ,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,EAC1B,KAAK,cAAc,GACpB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,mCAAmC,EACnC,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,+BAA+B,EAC/B,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,mBAAmB,GACzB,MAAM,0BAA0B,CAAC;AAElC;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,KAAK,kBAAkB,GACxB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,KAAK,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AK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,GAC9B,MAAM,gCAAgC,CAAC;AAExC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,12 @@
1
+ export const DOCUMENTATION_PRODUCT_IDENTITY = Object.freeze({
2
+ productName: 'HexaSync Template IDE',
3
+ serverName: 'HexaSync Template IDE MCP Server',
4
+ shortLabel: 'Template IDE MCP',
5
+ productId: 'hexasync-template-ide',
6
+ vscodeProviderId: 'hexasync.templateIdeMcp',
7
+ serverPackageName: '@beehexa/hexasync-template-ide-mcp',
8
+ commandPrefix: 'HexaSync IDE:',
9
+ });
1
10
  // Domain types for HexaSync templates, and the URI path algebra the whole system shares.
2
11
  //
3
12
  // The algebra lives in core because AD-18 requires ONE canonical identity: if each adapter
@@ -25,6 +34,7 @@ export { classifyTemplating, hasComposeTimeTemplating, hasRuntimeTemplating, com
25
34
  */
26
35
  export * from './references.js';
27
36
  export * from './connectorSupport.js';
37
+ export * from './workspaceConnectorCatalog.js';
28
38
  // Story 4.3 — the emission algebra, beside the address algebra it shares a subject with. Both flow packages render
29
39
  // through these, which is how "one renderer set" holds without them importing each other (AD-21).
30
40
  export { renderMermaid as renderFlowMermaid, renderMermaidWithOccurrences as renderFlowMermaidWithOccurrences, renderMarkdown as renderFlowMarkdown, escapeLabel, APPROVED_NODE_TREATMENTS, UNIMPLEMENTED_WORKER_STEP_TYPES, classifyNodeTreatment, APPROVED_NODE_COLORS, STROKE_ROLES, STATE_ROLES, REPEAT_BADGE_ROLES, RUN_STATES, INDETERMINATE_RUN_STATE, FLOW_RENDER_STAGE_OWNERSHIP, MERMAID_DEFAULT_MAX_TEXT_SIZE, measureDefinitionBudget, DefinitionOverBudgetError, } from './flowRender.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,EAAE;AACF,2FAA2F;AAC3F,+FAA+F;AAC/F,+FAA+F;AAC/F,uBAAuB;AACvB,OAAO,EACL,YAAY,EACZ,OAAO,EACP,UAAU,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,aAAa,EACb,WAAW,GACZ,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,iHAAiH;AACjH,mEAAmE;AACnE,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,eAAe,EACf,YAAY,EACZ,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,GAE3B,MAAM,kBAAkB,CAAC;AAE1B,oHAAoH;AACpH,mFAAmF;AACnF,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,mCAAmC,EACnC,4BAA4B,EAC5B,w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ACL,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,GAIhB,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;GAOG;AACH,cAAc,iBAAiB,CAAC;AAEhC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAE/C,mHAAmH;AACnH,kGAAkG;AAClG,OAAO,EACL,aAAa,IAAI,iBAAiB,EAClC,4BAA4B,IAAI,gCAAgC,EAChE,cAAc,IAAI,kBAAkB,EACpC,WAAW,EACX,wBAAwB,EACxB,+BAA+B,EAC/B,qBAAqB,EACrB,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,6BAA6B,EAC7B,uBAAuB,EACvB,yBAAyB,GAgB1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,GAUxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GAGzB,MAAM,gCAAgC,CAAC;AAExC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,131 @@
1
+ /**
2
+ * A workspace's own connector rows merged over the shipped catalog (Story 3.8, FR-6a).
3
+ *
4
+ * Lives beside `connectorCatalogOf` rather than in one Host for the reason that function does: the editor and the
5
+ * MCP server must extend the catalog through ONE merge. A Host that loaded the shipped catalog without the overlay
6
+ * validated a workspace's own connector as *"not in the catalog"* while the editor, reading the same repository,
7
+ * catalogued it — two verdicts on one connection.
8
+ */
9
+ import { type ConnectorCatalog } from './connectorSupport.js';
10
+ /**
11
+ * The workspace's own connector list (Story 3.8, FR-6a).
12
+ *
13
+ * A fixed filename at the workspace root, not a setting: a setting lives in a user's machine and this is a fact
14
+ * about the REPOSITORY — a customer-specific connector every author on that repository needs. It is also why the
15
+ * file is committed rather than gitignored, unlike `hx-templates.json`, which is per-developer setup.
16
+ */
17
+ export declare const WORKSPACE_CATALOG_FILE = "hexasync-connectors.json";
18
+ /**
19
+ * A row checked against the SHIPPED schema, not just against four non-blank strings (Jazz 2026-08-10, option A).
20
+ *
21
+ * `catalog.schema.json` constrains a row properly: 5 required fields including `status`, `additionalProperties:
22
+ * false`, patterns on `key` and `connectorId`, and enums on `generation`, `authKind`, `status` and
23
+ * `descriptionSource`. The SHIPPED catalog is held to all of it. A hand-written overlay was held to none — so
24
+ * `generation: "banana"` reached the picker as *"Gateway BANANA"*, a non-GUID `connectorId` became a row that can
25
+ * never match a real connection, and a missing `status` meant the picker could not mark it incomplete. That is
26
+ * Story 3.8's AC-2 (*"validated exactly as a shipped entry is"*) reversed.
27
+ *
28
+ * ### The rule is NOT the one that applies to templates
29
+ *
30
+ * Jazz's wider rule — an id property validates if it is a GUID **or** a variable key whose value is a GUID — governs
31
+ * authored TEMPLATES, where variables exist and `connection.json`'s pattern already reads `GUID | **Token**`. A
32
+ * catalog is DATA this extension reads; it has no variable pool to resolve against, so here a GUID means a GUID.
33
+ *
34
+ * ### Casing: the SCHEMA was widened, rather than the checker folding it
35
+ *
36
+ * ⚠️ CORRECTED by the Epic 3 cross-surface review. This used to lowercase every patterned value before matching,
37
+ * so an uppercase GUID passed the schema's then-lowercase-only pattern. Two things were wrong with that:
38
+ *
39
+ * 1. **The same file got opposite verdicts.** `contributes.jsonValidation` points `hexasync-connectors.json` at the
40
+ * catalog schema, and the editor's JSON validator does no folding — so one value was accepted here and squiggled
41
+ * there, from one schema, in the commit that added both.
42
+ * 2. **It was applied to `key` as well as to GUIDs**, whose pattern is `^[a-z0-9]+(-[a-z0-9]+)*$`. So
43
+ * `key: "LIGHTSPEED-X-SERIES"` passed, and then failed to REPLACE the shipped `lightspeed-x-series` — the merge
44
+ * matches keys case-sensitively — appending a 23rd row instead. Two rows then shared one `connectorId`, and
45
+ * `catalogEntryFor` declines an ambiguous id, so identity resolution, the icon chain and the duplicate guard all
46
+ * went dead for that connector. No test covered it.
47
+ *
48
+ * `catalog.schema.json`'s GUID patterns now read `[0-9a-fA-F]`, matching `connection.json` and the runtime's own
49
+ * case-folding lookups. The shipped catalog is entirely lowercase, so nothing about it changes; the checker applies
50
+ * every pattern verbatim, and both surfaces agree.
51
+ *
52
+ * ### The rule is NOT the one that applies to templates
53
+ *
54
+ * Jazz's wider rule — an id property validates if it is a GUID **or** a variable key whose value is a GUID — governs
55
+ * authored TEMPLATES, where variables exist and `connection.json`'s pattern already reads `GUID | **Token**`. A
56
+ * catalog is DATA this extension reads; it has no variable pool to resolve against, so here a GUID means a GUID.
57
+ */
58
+ export interface OverlayConstraint {
59
+ readonly type?: string | readonly string[];
60
+ readonly enum?: readonly unknown[];
61
+ readonly const?: unknown;
62
+ readonly pattern?: string;
63
+ readonly minLength?: number;
64
+ readonly items?: OverlayConstraint;
65
+ }
66
+ export interface OverlaySchema {
67
+ readonly type?: string | readonly string[];
68
+ readonly required?: readonly string[];
69
+ readonly properties?: Record<string, OverlayConstraint>;
70
+ readonly additionalProperties?: boolean;
71
+ /** `if`/`then` pairs — how the schema says "a `verified` row must carry systemId, systemCode and icon". */
72
+ readonly allOf?: readonly {
73
+ readonly if?: OverlaySchema;
74
+ readonly then?: OverlaySchema;
75
+ }[];
76
+ }
77
+ /**
78
+ * Every keyword this checker evaluates. **The tripwire in `workspaceCatalog.spec.ts` walks
79
+ * `catalog.schema.json`'s `$defs.Entry` and fails if it uses one that is not in here.**
80
+ *
81
+ * That tripwire is the whole reason this is a named constant. The review found this function implementing four
82
+ * keyword families out of six: `type`, `minLength`, `items` and the two `allOf`/`if`/`then` conditionals were
83
+ * silently skipped, so a `verified` row with no `systemId`, a `v3` row with no `systemCode`, `internal: "yes"`,
84
+ * `optionKeys: "LIMIT"` and `missing: ["bogus"]` were all **accepted here and refused by the real schema** — with
85
+ * this module's own docblock claiming the two agreed. A hand-rolled subset of JSON Schema is only honest if
86
+ * something fails when the schema outgrows it.
87
+ */
88
+ export declare const OVERLAY_KEYWORDS: readonly string[];
89
+ /** Why a row was refused, in the author's terms. Empty means it passed. */
90
+ export declare function overlayRowProblems(row: Record<string, unknown>, schema: OverlaySchema | undefined): readonly string[];
91
+ /** What went wrong with a workspace overlay, for reporting against the file that caused it (AC-4). */
92
+ export interface OverlayProblem {
93
+ readonly message: string;
94
+ }
95
+ /**
96
+ * The shipped catalog with a workspace overlay merged over it (Story 3.8, FR-6a).
97
+ *
98
+ * ### Merged by ENTRY KEY, and the workspace wins
99
+ *
100
+ * A workspace row with the same `key` REPLACES the shipped one; a new key is appended. That is AC-1, and it is the
101
+ * only merge rule that lets an author both add a customer-specific connector and correct a shipped row that is
102
+ * wrong for their deployment — without either being able to corrupt the other.
103
+ *
104
+ * ### A malformed overlay never damages the shipped catalog (AC-4)
105
+ *
106
+ * `connectorCatalogFromAssets` declines a whole file for one bad row, which is right for the SHIPPED catalog: it is
107
+ * generated, and a bad row there means the build is broken. It is the wrong contract for a **hand-written** file,
108
+ * because the cost lands on the wrong person — one typo in a workspace overlay would silently disable connector
109
+ * checks for everyone on that repository.
110
+ *
111
+ * So a bad overlay row is **reported and skipped**, and the shipped catalog keeps working. Reported, not swallowed:
112
+ * `problems` is returned so the caller can put it on the workspace file, and AD-9 forbids the alternative.
113
+ *
114
+ * ### Removing the file restores the shipped list EXACTLY (AC-3)
115
+ *
116
+ * Guaranteed structurally rather than by resetting: with no overlay this returns the shipped catalog object
117
+ * unchanged, so there is no copy to get wrong.
118
+ */
119
+ export declare function mergeWorkspaceCatalog(shipped: ConnectorCatalog | undefined, overlay: unknown,
120
+ /** `catalog.schema.json`'s `$defs.Entry`, so an overlay row is held to the same rules a shipped row is. */
121
+ entrySchema?: OverlaySchema): {
122
+ readonly catalog: ConnectorCatalog | undefined;
123
+ readonly problems: readonly OverlayProblem[];
124
+ };
125
+ /**
126
+ * `catalog.schema.json`'s `$defs.Entry` — the rules an overlay row is held to — from the parsed schema document.
127
+ *
128
+ * One reader, so the editor and the MCP server hold a workspace row to the same definition the shipped rows meet.
129
+ */
130
+ export declare function catalogEntrySchemaOf(schemaDocument: unknown): OverlaySchema | undefined;
131
+ //# sourceMappingURL=workspaceConnectorCatalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceConnectorCatalog.d.ts","sourceRoot":"","sources":["../src/workspaceConnectorCatalog.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAA2B,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEvF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;IAC3C,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC;CACpC;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;IAC3C,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACxD,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IACxC,2GAA2G;IAC3G,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS;QAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,aAAa,CAAC;QAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAA;KAAE,EAAE,CAAC;CAC5F;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,MAAM,EAa7C,CAAC;AAoGF,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,MAAM,EAAE,aAAa,GAAG,SAAS,GAChC,SAAS,MAAM,EAAE,CAKnB;AAED,sGAAsG;AACtG,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,gBAAgB,GAAG,SAAS,EACrC,OAAO,EAAE,OAAO;AAChB,2GAA2G;AAC3G,WAAW,CAAC,EAAE,aAAa,GAC1B;IAAE,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAA;CAAE,CA4ElG;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,CASvF"}
@@ -0,0 +1,251 @@
1
+ /**
2
+ * A workspace's own connector rows merged over the shipped catalog (Story 3.8, FR-6a).
3
+ *
4
+ * Lives beside `connectorCatalogOf` rather than in one Host for the reason that function does: the editor and the
5
+ * MCP server must extend the catalog through ONE merge. A Host that loaded the shipped catalog without the overlay
6
+ * validated a workspace's own connector as *"not in the catalog"* while the editor, reading the same repository,
7
+ * catalogued it — two verdicts on one connection.
8
+ */
9
+ import { connectorCatalogEntryOf } from './connectorSupport.js';
10
+ /**
11
+ * The workspace's own connector list (Story 3.8, FR-6a).
12
+ *
13
+ * A fixed filename at the workspace root, not a setting: a setting lives in a user's machine and this is a fact
14
+ * about the REPOSITORY — a customer-specific connector every author on that repository needs. It is also why the
15
+ * file is committed rather than gitignored, unlike `hx-templates.json`, which is per-developer setup.
16
+ */
17
+ export const WORKSPACE_CATALOG_FILE = 'hexasync-connectors.json';
18
+ /**
19
+ * Every keyword this checker evaluates. **The tripwire in `workspaceCatalog.spec.ts` walks
20
+ * `catalog.schema.json`'s `$defs.Entry` and fails if it uses one that is not in here.**
21
+ *
22
+ * That tripwire is the whole reason this is a named constant. The review found this function implementing four
23
+ * keyword families out of six: `type`, `minLength`, `items` and the two `allOf`/`if`/`then` conditionals were
24
+ * silently skipped, so a `verified` row with no `systemId`, a `v3` row with no `systemCode`, `internal: "yes"`,
25
+ * `optionKeys: "LIMIT"` and `missing: ["bogus"]` were all **accepted here and refused by the real schema** — with
26
+ * this module's own docblock claiming the two agreed. A hand-rolled subset of JSON Schema is only honest if
27
+ * something fails when the schema outgrows it.
28
+ */
29
+ export const OVERLAY_KEYWORDS = [
30
+ 'additionalProperties',
31
+ 'allOf',
32
+ 'const',
33
+ 'enum',
34
+ 'if',
35
+ 'items',
36
+ 'minLength',
37
+ 'pattern',
38
+ 'properties',
39
+ 'required',
40
+ 'then',
41
+ 'type',
42
+ ];
43
+ /** Does `value` satisfy JSON Schema's `type`? `integer` is not used by this schema and is not implemented. */
44
+ function typeMatches(value, type) {
45
+ if (type === 'array')
46
+ return Array.isArray(value);
47
+ if (type === 'object')
48
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
49
+ if (type === 'null')
50
+ return value === null;
51
+ return typeof value === type;
52
+ }
53
+ /** One property's constraints. Returns prose fragments, each completing "…`name` …". */
54
+ function constraintProblems(name, value, constraint) {
55
+ const problems = [];
56
+ const shown = typeof value === 'string' ? value : JSON.stringify(value);
57
+ const types = constraint.type === undefined
58
+ ? undefined
59
+ : Array.isArray(constraint.type)
60
+ ? constraint.type
61
+ : [constraint.type];
62
+ if (types && !types.some((t) => typeMatches(value, t))) {
63
+ problems.push(`has \`${name}: ${shown}\`, which is not ${types.join(' or ')}`);
64
+ // Every keyword below assumes the declared type, so stop here rather than pile on derived complaints.
65
+ return problems;
66
+ }
67
+ if (constraint.enum && !constraint.enum.includes(value)) {
68
+ problems.push(`has \`${name}: ${shown}\`, which is not one of ${constraint.enum.map((v) => `\`${String(v)}\``).join(', ')}`);
69
+ }
70
+ if (constraint.const !== undefined && value !== constraint.const) {
71
+ problems.push(`has \`${name}: ${shown}\`, which must be \`${String(constraint.const)}\``);
72
+ }
73
+ if (typeof value === 'string') {
74
+ if (constraint.minLength !== undefined && value.length < constraint.minLength) {
75
+ problems.push(`has \`${name}\` of ${value.length} character(s), where the catalog schema requires at least ${constraint.minLength}`);
76
+ }
77
+ if (constraint.pattern && !new RegExp(constraint.pattern).test(value)) {
78
+ problems.push(`has \`${name}: ${value}\`, which is not the shape the catalog schema requires`);
79
+ }
80
+ }
81
+ if (constraint.items && Array.isArray(value)) {
82
+ for (const element of value) {
83
+ problems.push(...constraintProblems(`${name}[]`, element, constraint.items));
84
+ }
85
+ }
86
+ return problems;
87
+ }
88
+ /** Does a row satisfy a subschema outright? Used for an `if`, where a failure is not a problem but a branch. */
89
+ function satisfies(row, schema) {
90
+ return rowProblems(row, schema).length === 0;
91
+ }
92
+ function rowProblems(row, schema) {
93
+ const problems = [];
94
+ const properties = schema.properties ?? {};
95
+ /**
96
+ * `required` is PRESENCE, exactly as JSON Schema defines it — a blank string is present. Emptiness is the
97
+ * schema's job to reject where it cares, via `minLength`, and it does: `name` declares `minLength: 1`, and both
98
+ * `if`/`then` branches declare it on the fields they demand. Treating `''` as missing here was a third verdict on
99
+ * `status: ""` that neither the schema nor the editor's validator shares.
100
+ */
101
+ for (const name of schema.required ?? []) {
102
+ if (!Object.hasOwn(row, name) || row[name] === undefined) {
103
+ problems.push(`is missing \`${name}\``);
104
+ }
105
+ }
106
+ if (schema.additionalProperties === false) {
107
+ for (const name of Object.keys(row)) {
108
+ // `hasOwn`, not `in` (Epic 3 review, finding 7): `in` walks the prototype, so `toString`, `constructor` and
109
+ // `hasOwnProperty` were all accepted as declared fields while `banana` was correctly refused.
110
+ if (!Object.hasOwn(properties, name))
111
+ problems.push(`declares unknown field \`${name}\``);
112
+ }
113
+ }
114
+ for (const [name, constraint] of Object.entries(properties)) {
115
+ if (!Object.hasOwn(row, name) || row[name] === undefined)
116
+ continue;
117
+ problems.push(...constraintProblems(name, row[name], constraint));
118
+ }
119
+ for (const branch of schema.allOf ?? []) {
120
+ // No `if` means `then` applies unconditionally, which is what JSON Schema says.
121
+ if (branch.if && !satisfies(row, branch.if))
122
+ continue;
123
+ if (branch.then)
124
+ problems.push(...rowProblems(row, branch.then));
125
+ }
126
+ return problems;
127
+ }
128
+ /** Why a row was refused, in the author's terms. Empty means it passed. */
129
+ export function overlayRowProblems(row, schema) {
130
+ if (!schema)
131
+ return [];
132
+ // De-duplicated: an `if`/`then` branch can restate a `minLength` the base schema already declares, and the
133
+ // author does not need to read the same sentence twice.
134
+ return [...new Set(rowProblems(row, schema))];
135
+ }
136
+ /**
137
+ * The shipped catalog with a workspace overlay merged over it (Story 3.8, FR-6a).
138
+ *
139
+ * ### Merged by ENTRY KEY, and the workspace wins
140
+ *
141
+ * A workspace row with the same `key` REPLACES the shipped one; a new key is appended. That is AC-1, and it is the
142
+ * only merge rule that lets an author both add a customer-specific connector and correct a shipped row that is
143
+ * wrong for their deployment — without either being able to corrupt the other.
144
+ *
145
+ * ### A malformed overlay never damages the shipped catalog (AC-4)
146
+ *
147
+ * `connectorCatalogFromAssets` declines a whole file for one bad row, which is right for the SHIPPED catalog: it is
148
+ * generated, and a bad row there means the build is broken. It is the wrong contract for a **hand-written** file,
149
+ * because the cost lands on the wrong person — one typo in a workspace overlay would silently disable connector
150
+ * checks for everyone on that repository.
151
+ *
152
+ * So a bad overlay row is **reported and skipped**, and the shipped catalog keeps working. Reported, not swallowed:
153
+ * `problems` is returned so the caller can put it on the workspace file, and AD-9 forbids the alternative.
154
+ *
155
+ * ### Removing the file restores the shipped list EXACTLY (AC-3)
156
+ *
157
+ * Guaranteed structurally rather than by resetting: with no overlay this returns the shipped catalog object
158
+ * unchanged, so there is no copy to get wrong.
159
+ */
160
+ export function mergeWorkspaceCatalog(shipped, overlay,
161
+ /** `catalog.schema.json`'s `$defs.Entry`, so an overlay row is held to the same rules a shipped row is. */
162
+ entrySchema) {
163
+ if (!shipped)
164
+ return { catalog: undefined, problems: [] };
165
+ if (overlay === undefined || overlay === null) {
166
+ return { catalog: shipped, problems: [] };
167
+ }
168
+ if (typeof overlay !== 'object' || Array.isArray(overlay)) {
169
+ return {
170
+ catalog: shipped,
171
+ problems: [
172
+ {
173
+ message: `${WORKSPACE_CATALOG_FILE} must be a JSON object with a \`connectors\` array. The shipped catalog is being used unchanged.`,
174
+ },
175
+ ],
176
+ };
177
+ }
178
+ const declared = 'connectors' in overlay ? overlay.connectors : undefined;
179
+ if (!Array.isArray(declared)) {
180
+ return {
181
+ catalog: shipped,
182
+ problems: [
183
+ {
184
+ message: `${WORKSPACE_CATALOG_FILE} declares no \`connectors\` array, so nothing was added. The shipped catalog is being used unchanged.`,
185
+ },
186
+ ],
187
+ };
188
+ }
189
+ const problems = [];
190
+ const byKey = new Map(shipped.connectors.map((row) => [row.key, row]));
191
+ const order = shipped.connectors.map((row) => row.key);
192
+ declared.forEach((row, at) => {
193
+ const fields = typeof row === 'object' && row !== null && !Array.isArray(row)
194
+ ? row
195
+ : undefined;
196
+ const named = typeof fields?.key === 'string' && fields.key !== '' ? `\`${fields.key}\`` : `entry ${at + 1}`;
197
+ // Held to the SHIPPED schema (Jazz option A). Skipped, not fatal: one typo in a hand-written file must not
198
+ // disable connector checks for everyone on the repository.
199
+ const violations = fields ? overlayRowProblems(fields, entrySchema) : [];
200
+ if (violations.length > 0) {
201
+ problems.push({
202
+ message: `${named} in ${WORKSPACE_CATALOG_FILE} ${violations.join('; ')}, so it was skipped. Every other entry still loaded.`,
203
+ });
204
+ return;
205
+ }
206
+ const entry = connectorCatalogEntryOf(row);
207
+ if (!entry) {
208
+ problems.push({
209
+ message: `${named} in ${WORKSPACE_CATALOG_FILE} is missing \`key\`, \`name\`, \`generation\` or \`connectorId\`, so it was skipped. Every other entry still loaded.`,
210
+ });
211
+ return;
212
+ }
213
+ if (!byKey.has(entry.key))
214
+ order.push(entry.key);
215
+ byKey.set(entry.key, entry);
216
+ });
217
+ /**
218
+ * The universal connector id stays the SHIPPED one.
219
+ *
220
+ * A workspace cannot redefine what Gateway V3 is — that is a platform fact, and letting a local file move it
221
+ * would make every V3 connection in the repository resolve differently for one developer. An overlay adds
222
+ * connectors; it does not redefine the gateway.
223
+ */
224
+ return {
225
+ catalog: {
226
+ catalogVersion: `${shipped.catalogVersion}+workspace`,
227
+ universalConnectorId: shipped.universalConnectorId,
228
+ connectors: order.map((key) => byKey.get(key)),
229
+ },
230
+ problems,
231
+ };
232
+ }
233
+ /**
234
+ * `catalog.schema.json`'s `$defs.Entry` — the rules an overlay row is held to — from the parsed schema document.
235
+ *
236
+ * One reader, so the editor and the MCP server hold a workspace row to the same definition the shipped rows meet.
237
+ */
238
+ export function catalogEntrySchemaOf(schemaDocument) {
239
+ if (typeof schemaDocument !== 'object' || schemaDocument === null || !('$defs' in schemaDocument))
240
+ return undefined;
241
+ const defs = schemaDocument.$defs;
242
+ if (typeof defs !== 'object' || defs === null || !('Entry' in defs))
243
+ return undefined;
244
+ const entry = defs.Entry;
245
+ if (typeof entry !== 'object' || entry === null)
246
+ return undefined;
247
+ // The bundled schema document is product data generated with the shipped catalog; its Entry IS this shape.
248
+ const schema = entry;
249
+ return schema;
250
+ }
251
+ //# sourceMappingURL=workspaceConnectorCatalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceConnectorCatalog.js","sourceRoot":"","sources":["../src/workspaceConnectorCatalog.ts"],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,OAAO,CAAC,cAAc,YAAY;YACrD,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;YAClD,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAE,CAAC;SAChD;QACD,QAAQ;KACT,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,cAAuB;IAC1D,IAAI,OAAO,cAAc,KAAK,QAAQ,IAAI,cAAc,KAAK,IAAI,IAAI,CAAC,CAAC,OAAO,IAAI,cAAc,CAAC;QAAE,OAAO,SAAS,CAAC;IACpH,MAAM,IAAI,GAAG,cAAc,CAAC,KAAK,CAAC;IAClC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC;QAAE,OAAO,SAAS,CAAC;IACtF,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IACzB,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAClE,2GAA2G;IAC3G,MAAM,MAAM,GAAkB,KAAK,CAAC;IACpC,OAAO,MAAM,CAAC;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beehexa/hexasync-template-model",
3
- "version": "2610.4.7",
3
+ "version": "2610.12.1",
4
4
  "description": "Domain types for HexaSync templates. No behaviour.",
5
5
  "license": "SEE LICENSE IN ../../LICENSE",
6
6
  "type": "module",