@beehexa/hexasync-template-model 2610.4.7 → 2610.12.2
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/connectorSupport.d.ts +22 -2
- package/dist/connectorSupport.d.ts.map +1 -1
- package/dist/connectorSupport.js +140 -0
- package/dist/connectorSupport.js.map +1 -1
- package/dist/flowRender.d.ts +138 -342
- package/dist/flowRender.d.ts.map +1 -1
- package/dist/flowRender.js +412 -1024
- package/dist/flowRender.js.map +1 -1
- package/dist/flowStyles.d.ts +3 -0
- package/dist/flowStyles.d.ts.map +1 -0
- package/dist/flowStyles.js +103 -0
- package/dist/flowStyles.js.map +1 -0
- package/dist/index.d.ts +15 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -4
- package/dist/index.js.map +1 -1
- package/dist/stepGlyph.d.ts +5 -124
- package/dist/stepGlyph.d.ts.map +1 -1
- package/dist/stepGlyph.js +8 -180
- package/dist/stepGlyph.js.map +1 -1
- package/dist/workspaceConnectorCatalog.d.ts +131 -0
- package/dist/workspaceConnectorCatalog.d.ts.map +1 -0
- package/dist/workspaceConnectorCatalog.js +251 -0
- package/dist/workspaceConnectorCatalog.js.map +1 -0
- package/package.json +3 -3
package/dist/stepGlyph.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Step-type vocabulary for flow drawings: families, glyphs, and the icon assets a host stylesheet paints.
|
|
3
|
+
*
|
|
4
|
+
* A flow node carries its icon as a CLASS (`ic-<family>`); the drawings are single-colour SVG path fragments exposed
|
|
5
|
+
* as mask images, so a host stylesheet (`flowStyles.ts`) paints them in the node's accent colour. No SVG enters a
|
|
6
|
+
* Mermaid label: Mermaid 12 at `securityLevel: 'strict'` sanitises label HTML and an inline `<svg>` does not survive
|
|
7
|
+
* it. The Unicode glyphs remain for plain-text surfaces.
|
|
8
|
+
*/
|
|
1
9
|
/**
|
|
2
10
|
* Every glyph must come from Arrows (U+2190–U+21FF), Geometric Shapes (U+25A0–U+25FF), or Mathematical
|
|
3
11
|
* Operators (U+2200–U+22FF). Those blocks have reliable coverage in the fonts a webview receives.
|
|
@@ -14,28 +22,6 @@ const PARENT_GLYPHS = {
|
|
|
14
22
|
wait: '◔',
|
|
15
23
|
write: '⇩',
|
|
16
24
|
};
|
|
17
|
-
/**
|
|
18
|
-
* Keep authored punctuation literal inside Mermaid 12 Markdown labels.
|
|
19
|
-
*
|
|
20
|
-
* Mermaid's SVG-label path drops Markdown `escape` tokens and does not decode numeric entities. U+FEFF is zero-width
|
|
21
|
-
* whitespace: bracketing authored Markdown punctuation with it makes the lexer keep the punctuation in ordinary text
|
|
22
|
-
* tokens while leaving the visible text unchanged. The renderer-owned bold delimiters are added afterwards.
|
|
23
|
-
*
|
|
24
|
-
* It lives HERE, beside the composer, rather than in `flowRender.ts` where it started: the composer and the renderer
|
|
25
|
-
* must escape one heading identically or the same node gets two different labels depending on which surface built it,
|
|
26
|
-
* and the only way to guarantee that is one function. `flowRender.ts` imports it — never the other way round, because
|
|
27
|
-
* that is the dependency direction this package already has.
|
|
28
|
-
*/
|
|
29
|
-
export function escapeMarkdownText(value) {
|
|
30
|
-
const htmlSafe = value
|
|
31
|
-
.replace(/[\r\n]+/g, ' ')
|
|
32
|
-
.replace(/&/g, '&')
|
|
33
|
-
.replace(/"/g, '"')
|
|
34
|
-
.replace(/</g, '<')
|
|
35
|
-
.replace(/>/g, '>')
|
|
36
|
-
.replace(/`/g, '&#96;');
|
|
37
|
-
return htmlSafe.replace(/[\\*_[\]{}()#+\-.!|~]/g, (character) => `\uFEFF${character}\uFEFF`);
|
|
38
|
-
}
|
|
39
25
|
/** The sole result for absent or unknown worker vocabulary. */
|
|
40
26
|
export const UNMAPPED_STEP_ICON = {
|
|
41
27
|
family: 'unmapped',
|
|
@@ -271,31 +257,6 @@ defineLazyAsset(UNMAPPED_STEP_ICON.family, UNMAPPED_STEP_ICON.family, UNMAPPED_S
|
|
|
271
257
|
* pays only for class and glyph lookup.
|
|
272
258
|
*/
|
|
273
259
|
export const STEP_ICON_ASSETS = iconAssets;
|
|
274
|
-
/**
|
|
275
|
-
* The in-node error marker: one glyph for a strict host, the approved drawing for a loose one.
|
|
276
|
-
*
|
|
277
|
-
* **Why `⚠` (U+26A0, Miscellaneous Symbols) and not a glyph from the three approved blocks.** `PARENT_GLYPHS`'
|
|
278
|
-
* Arrows / Geometric Shapes / Mathematical Operators rule exists so 32 FAMILY glyphs render in the fonts a webview
|
|
279
|
-
* receives; it does not cover a marker, and none of the three blocks contains an exclamation-in-triangle — the shape
|
|
280
|
-
* DESIGN.md names. U+26A0 was MEASURED surviving a Mermaid 12.0.0 strict-mode render inside a backtick-quoted
|
|
281
|
-
* markdown label on 2026-09-28, alongside `×` and `◆`, and it is the one glyph in the canvas's whole vocabulary whose
|
|
282
|
-
* absence would be obvious rather than silent (a failed node also carries `emphasis` width, a red stroke and a tinted
|
|
283
|
-
* fill, so the marker is never the only signal — `node-failed`'s three channels are independent by design).
|
|
284
|
-
*
|
|
285
|
-
* **The same glyph is used at BOTH fidelities.** Story 8.3 could split strict glyph from loose mask because the mask
|
|
286
|
-
* arrives through a class the host's own stylesheet paints; a run-state mark cannot, because AD-23 forbids any host
|
|
287
|
-
* CSS rule that carries run state onto a node. `looseMaskImage` is therefore exported for a loose host's LEGEND or
|
|
288
|
-
* inspector chrome — not for the node — and it reuses `terminal.error`'s approved path fragment rather than authoring
|
|
289
|
-
* a second exclamation-in-triangle.
|
|
290
|
-
*/
|
|
291
|
-
export const RUN_STATE_ERROR_MARKER = {
|
|
292
|
-
glyph: '\u26a0',
|
|
293
|
-
className: stepIconClassName('terminal.error'),
|
|
294
|
-
get looseMaskImage() {
|
|
295
|
-
return STEP_ICON_ASSETS['terminal.error'].looseMaskImage;
|
|
296
|
-
},
|
|
297
|
-
tint: 'currentColor',
|
|
298
|
-
};
|
|
299
260
|
/** The multiplication sign the count badge reads with (`×997`). MEASURED surviving a strict-mode render. */
|
|
300
261
|
export const REPEAT_BADGE_GLYPH = '\u00d7';
|
|
301
262
|
/**
|
|
@@ -318,137 +279,4 @@ export function isCountableRepeat(repeat) {
|
|
|
318
279
|
export function repeatBadgeText(repeat) {
|
|
319
280
|
return isCountableRepeat(repeat) ? `${REPEAT_BADGE_GLYPH}${repeat}` : undefined;
|
|
320
281
|
}
|
|
321
|
-
/**
|
|
322
|
-
* What a screen reader is told about the run, in words.
|
|
323
|
-
*
|
|
324
|
-
* NFR13 forbids carrying state in colour alone, and a screen-reader user is the one reader who sees no line-work at
|
|
325
|
-
* all: no stroke, no dash, no opacity, no marker. So the state and the repeat count have to reach `accDescr` as text
|
|
326
|
-
* or they do not reach that reader at all.
|
|
327
|
-
*
|
|
328
|
-
* **`indeterminate` IS stated**, in words, even though it is the plainest thing on the canvas. The drawing gives every
|
|
329
|
-
* node a reading the moment a typed overlay is in use, precisely so a reader cannot confuse "the run never reached
|
|
330
|
-
* this" with "nobody told us about this"; a text channel that stayed silent for the indeterminate ones would hand a
|
|
331
|
-
* screen-reader user back exactly the ambiguity the visual rule removes. The two channels agree or one of them lies.
|
|
332
|
-
*/
|
|
333
|
-
const RUN_STATE_TEXT = {
|
|
334
|
-
ranOk: 'ran OK',
|
|
335
|
-
ranFailed: 'failed',
|
|
336
|
-
neverReached: 'never ran',
|
|
337
|
-
branchNotTaken: 'branch not taken',
|
|
338
|
-
indeterminate: 'run state unknown',
|
|
339
|
-
};
|
|
340
|
-
export function runStateAlternativeText(runState) {
|
|
341
|
-
if (runState === undefined)
|
|
342
|
-
return '';
|
|
343
|
-
/**
|
|
344
|
-
* The lookup is GUARDED, not indexed.
|
|
345
|
-
*
|
|
346
|
-
* An overlay can arrive as parsed JSON or a `postMessage` payload, where `state: 'running'` is one keystroke away
|
|
347
|
-
* and types prove nothing. Indexed blind it would put the literal word `undefined` into `accDescr` — a sentence
|
|
348
|
-
* read aloud to the one reader who has no other channel.
|
|
349
|
-
*/
|
|
350
|
-
const state = runState.state !== undefined && Object.hasOwn(RUN_STATE_TEXT, runState.state)
|
|
351
|
-
? RUN_STATE_TEXT[runState.state]
|
|
352
|
-
: '';
|
|
353
|
-
const ran = isCountableRepeat(runState.repeat) ? `ran ${runState.repeat} times` : '';
|
|
354
|
-
return [state, ran].filter((part) => part !== '').join(', ');
|
|
355
|
-
}
|
|
356
|
-
const visibleText = (value) => {
|
|
357
|
-
const normalized = value?.trim();
|
|
358
|
-
return normalized ? normalized : undefined;
|
|
359
|
-
};
|
|
360
|
-
/**
|
|
361
|
-
* Compose the shared node-card anatomy and its structural renderer provenance.
|
|
362
|
-
*
|
|
363
|
-
* The label has two semantic text roles rather than a two-physical-line limit: the bold heading may wrap, and the
|
|
364
|
-
* upright key/type description follows it. Strict hosts keep a Unicode glyph and explicit type text; loose hosts
|
|
365
|
-
* reserve the icon through the node's family class and keep the key as their description.
|
|
366
|
-
*
|
|
367
|
-
* Boundary whitespace is not visible content. Normalizing it here keeps a blank explicit label from defeating the
|
|
368
|
-
* name/key/address fallback or moving Mermaid's bold delimiters away from the heading.
|
|
369
|
-
*/
|
|
370
|
-
export function composeNodeLabelModel(node, fidelity, domain, iconFamily, runState) {
|
|
371
|
-
const stepKey = visibleText(node.stepKey);
|
|
372
|
-
const type = visibleText(node.type) ?? visibleText(node.displayType);
|
|
373
|
-
const heading = visibleText(node.label) ??
|
|
374
|
-
visibleText(node.name) ??
|
|
375
|
-
stepKey ??
|
|
376
|
-
visibleText(node.address) ??
|
|
377
|
-
'?';
|
|
378
|
-
const marker = runState?.marker === true ? RUN_STATE_ERROR_MARKER.glyph : undefined;
|
|
379
|
-
const badge = repeatBadgeText(runState?.repeat);
|
|
380
|
-
/**
|
|
381
|
-
* The no-anatomy early return, and why run-state content overrides it.
|
|
382
|
-
*
|
|
383
|
-
* A node with neither `stepKey` nor `type` has no card to lay out, so it returns a bare string and the renderer
|
|
384
|
-
* emits a plain quoted label. But a marker or a badge is a fact about the RUN, not about the card: dropping it
|
|
385
|
-
* here would make a failed node with no key silently indistinguishable from a healthy one. So the moment either is
|
|
386
|
-
* present, anatomy is composed anyway — with the heading as its only text role.
|
|
387
|
-
*/
|
|
388
|
-
if (!stepKey && !type) {
|
|
389
|
-
if (marker === undefined && badge === undefined)
|
|
390
|
-
return { text: heading };
|
|
391
|
-
const bare = {
|
|
392
|
-
...(marker ? { marker } : {}),
|
|
393
|
-
heading,
|
|
394
|
-
...(badge ? { badge } : {}),
|
|
395
|
-
};
|
|
396
|
-
// Escaped here exactly as `renderLabelAnatomy` escapes it, through the same function: two spellings of one
|
|
397
|
-
// heading is two different labels for one node depending on which surface composed it.
|
|
398
|
-
return {
|
|
399
|
-
text: `\`${marker ? `${marker} ` : ''}**${escapeMarkdownText(heading)}**${badge ? ` ${badge}` : ''}\``,
|
|
400
|
-
anatomy: bare,
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
const glyph = iconFamily !== undefined
|
|
404
|
-
? glyphOfStepFamily(iconFamily)
|
|
405
|
-
: domain === 'worker'
|
|
406
|
-
? glyphOfStepType(type)
|
|
407
|
-
: type
|
|
408
|
-
? glyphOfFrontendStepType(type)
|
|
409
|
-
: '';
|
|
410
|
-
const description = fidelity === 'loose'
|
|
411
|
-
? stepKey
|
|
412
|
-
: [stepKey, type].filter(Boolean).join(' · ') || undefined;
|
|
413
|
-
const anatomy = {
|
|
414
|
-
...(fidelity === 'strict' && glyph ? { icon: glyph } : {}),
|
|
415
|
-
// Right of the icon tile, per DESIGN.md's card order: icon tile, marker, heading, description, badge.
|
|
416
|
-
...(marker ? { marker } : {}),
|
|
417
|
-
heading,
|
|
418
|
-
...(description ? { description } : {}),
|
|
419
|
-
...(badge ? { badge } : {}),
|
|
420
|
-
};
|
|
421
|
-
const composedHeading = `${anatomy.icon ? `${anatomy.icon} ` : ''}${anatomy.marker ? `${anatomy.marker} ` : ''}**${anatomy.heading}**`;
|
|
422
|
-
const tail = anatomy.badge ? ` ${anatomy.badge}` : '';
|
|
423
|
-
return {
|
|
424
|
-
text: anatomy.description
|
|
425
|
-
? `\`${composedHeading}\n${anatomy.description}${tail}\``
|
|
426
|
-
: `\`${composedHeading}${tail}\``,
|
|
427
|
-
anatomy,
|
|
428
|
-
};
|
|
429
|
-
}
|
|
430
|
-
/** String-only compatibility surface; renderers use `composeNodeLabelModel` so provenance stays structural. */
|
|
431
|
-
export function composeNodeLabel(node, fidelity, domain, iconFamily) {
|
|
432
|
-
return composeNodeLabelModel(node, fidelity, domain, iconFamily).text;
|
|
433
|
-
}
|
|
434
|
-
/**
|
|
435
|
-
* Screen-reader text for a node. The icon is deliberately absent: strict Unicode names are noisy, while loose masks
|
|
436
|
-
* are decorative. Fidelity and domain stay in the signature so callers can compose visual and accessible labels from
|
|
437
|
-
* the same inputs without branching.
|
|
438
|
-
*/
|
|
439
|
-
export function composeAccessibleNodeLabel(node, _fidelity, _domain, runState) {
|
|
440
|
-
const type = node.type?.trim() || node.displayType?.trim() || undefined;
|
|
441
|
-
const stepKey = node.stepKey?.trim() || undefined;
|
|
442
|
-
const heading = [
|
|
443
|
-
node.name?.trim(),
|
|
444
|
-
node.label?.trim(),
|
|
445
|
-
stepKey,
|
|
446
|
-
node.address.trim() || '?',
|
|
447
|
-
].find((value) => Boolean(value));
|
|
448
|
-
const detail = [stepKey, type].filter(Boolean).join(' · ');
|
|
449
|
-
const named = detail ? `${heading} · ${detail}` : heading;
|
|
450
|
-
// Run state is appended, never substituted: the reader still needs to know WHICH step failed.
|
|
451
|
-
const run = runStateAlternativeText(runState);
|
|
452
|
-
return run === '' ? named : `${named} · ${run}`;
|
|
453
|
-
}
|
|
454
282
|
//# sourceMappingURL=stepGlyph.js.map
|
package/dist/stepGlyph.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepGlyph.js","sourceRoot":"","sources":["../src/stepGlyph.ts"],"names":[],"mappings":"AAwCA;;;GAGG;AACH,MAAM,aAAa,GAA+C;IAChE,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,GAAG;IAC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AAC,CAAC,CAAC,CAAC,GAAG,kBAAkB,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAClF,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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alogOf` 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"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,uBAAuB,EAAyB,MAAM,uBAAuB,CAAC;AAEvF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,0BAA0B,CAAC;AA4DjE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAsB;IACjD,sBAAsB;IACtB,OAAO;IACP,OAAO;IACP,MAAM;IACN,IAAI;IACJ,OAAO;IACP,WAAW;IACX,SAAS;IACT,YAAY;IACZ,UAAU;IACV,MAAM;IACN,MAAM;CACP,CAAC;AAEF,8GAA8G;AAC9G,SAAS,WAAW,CAAC,KAAc,EAAE,IAAY;IAC/C,IAAI,IAAI,KAAK,OAAO;QAAE,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,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