structured-context-map-views 0.6.0 → 0.6.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.
- package/dist/artifact.html +29 -29
- package/dist/artifact.js +114 -94
- package/dist/artifact.js.map +1 -1
- package/dist/cli.js +15 -9
- package/dist/cli.js.map +1 -1
- package/dist/{node-Co_JiEZV.js → node-aizYAYlq.js} +38 -14
- package/dist/node-aizYAYlq.js.map +1 -0
- package/dist/node.js +2 -2
- package/dist/page.html +640 -0
- package/dist/page.html.d.ts +2 -0
- package/dist/types/artifact/load.d.ts +6 -13
- package/dist/types/core/snapshot.d.ts +15 -0
- package/dist/types/node/index.d.ts +19 -2
- package/dist/types/node/page.d.ts +7 -0
- package/dist/types/node/snapshot.d.ts +2 -15
- package/dist/types/page/main.d.ts +1 -0
- package/dist/types/viewer/Viewer.d.ts +14 -0
- package/package.json +11 -6
- package/dist/node-Co_JiEZV.js.map +0 -1
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import { r as parseMapViewDefinition } from "./definition-Cp1CCigh.js";
|
|
2
2
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
3
|
-
import {
|
|
4
|
-
import { PLUGIN_PREFIX, resolveConfigPath, resolvePluginDir } from "structured-context/api";
|
|
3
|
+
import { join, resolve } from "node:path";
|
|
4
|
+
import { PLUGIN_PREFIX, resolveConfigPath, resolvePluginDir, resourceDir } from "structured-context/api";
|
|
5
5
|
//#region src/node/bundled-definitions.ts
|
|
6
6
|
var BUNDLED_DEFINITIONS = { "strategy-tree.json5": "// Strategy stack as a tree: vision → mission → goals → opportunities → solutions → experiments.\n{\n $schema: 'https://raw.githubusercontent.com/mindsocket/structured-context-map-views/main/schemas/generated/latest/definition.json',\n $id: 'sctx-map-view://core/strategy-tree',\n title: 'Strategy tree',\n schema: 'sctx://core/strategy_general',\n parameters: {\n orientation: { $ref: 'settings.json#/$defs/orientation', default: 'vertical' },\n nodeStyle: { $ref: 'settings.json#/$defs/nodeStyle', default: 'card' },\n validation: { $ref: 'settings.json#/$defs/validationLevel', default: 'off' },\n cardFields: {\n title: 'Card fields',\n type: 'array',\n items: { enum: ['status', 'priority', 'summary'] },\n default: ['status'],\n },\n },\n regions: [\n {\n id: 'main',\n layout: { type: 'tree', orientation: { $param: 'orientation' } },\n nodes: { style: { $param: 'nodeStyle' }, fields: { $param: 'cardFields' }, validation: { $param: 'validation' } },\n edges: { show: true },\n },\n ],\n}\n" };
|
|
7
7
|
//#endregion
|
|
8
|
+
//#region src/node/page.ts
|
|
9
|
+
var PAGE_SLOTS = {
|
|
10
|
+
title: "<!--sctx-title-->",
|
|
11
|
+
snapshots: "<!--sctx-snapshots-->"
|
|
12
|
+
};
|
|
13
|
+
/** `template` (`dist/page.html`) with the title and snapshots written in. */
|
|
14
|
+
function fillPage(template, snapshots, title) {
|
|
15
|
+
for (const slot of Object.values(PAGE_SLOTS)) if (template.split(slot).length !== 2) throw new Error(`The page template must hold ${slot} exactly once.`);
|
|
16
|
+
const json = JSON.stringify(snapshots).replaceAll("<", "\\u003c");
|
|
17
|
+
return template.replace(PAGE_SLOTS.title, () => escapeHtml(title)).replace(PAGE_SLOTS.snapshots, () => json);
|
|
18
|
+
}
|
|
19
|
+
function escapeHtml(text) {
|
|
20
|
+
return text.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
8
23
|
//#region src/node/index.ts
|
|
9
24
|
/**
|
|
10
25
|
* Node-only: finds map view definitions the way structured-context finds plugin schemas.
|
|
@@ -19,15 +34,15 @@ var PACKAGE_NAME = "structured-context-map-views";
|
|
|
19
34
|
* - this package's embedded definitions (`sctx-map-view://core/<name>`), for structured-context's bundled schemas;
|
|
20
35
|
* - each plugin found from a config folder or named by a space (`sctx-map-view://<plugin>/<name>`): the
|
|
21
36
|
* folder named by `"sctx": { "mapViews": "…" }` in its package.json, else its `map-views/` folder;
|
|
22
|
-
* -
|
|
37
|
+
* - the `map-views` resources folder of each config root (`sctx-map-view://<name>`).
|
|
23
38
|
*
|
|
24
39
|
* Each definition's `$id` must be in the namespace of where it was found, and ids must be unique.
|
|
25
40
|
* Throws on the first invalid definition.
|
|
26
41
|
*/
|
|
27
42
|
function loadMapViewDefinitions(config, options = {}) {
|
|
28
|
-
const configDir = options.configDir ??
|
|
43
|
+
const configDir = options.configDir ?? resolveConfigPath().root;
|
|
29
44
|
const configDirs = [.../* @__PURE__ */ new Set([configDir, ...config.spaces.flatMap((s) => s.sourceDir ? [s.sourceDir] : [])])];
|
|
30
|
-
|
|
45
|
+
return readDefinitionFolders([...pluginDirs(config, configDir, configDirs).flatMap(([plugin, dir]) => {
|
|
31
46
|
const definitions = pluginDefinitionsDir(dir);
|
|
32
47
|
return definitions ? [{
|
|
33
48
|
dir: definitions,
|
|
@@ -36,10 +51,19 @@ function loadMapViewDefinitions(config, options = {}) {
|
|
|
36
51
|
plugin
|
|
37
52
|
}
|
|
38
53
|
}] : [];
|
|
39
|
-
}), ...configDirs.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
54
|
+
}), ...configDirs.flatMap((dir) => {
|
|
55
|
+
const definitions = resourceDir(dir, DEFINITIONS_DIR);
|
|
56
|
+
return definitions ? [{
|
|
57
|
+
dir: definitions,
|
|
58
|
+
source: { kind: "config" }
|
|
59
|
+
}] : [];
|
|
60
|
+
})]);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Definitions in `folders` and this package's embedded ones, each checked against the namespace of its source.
|
|
64
|
+
* Throws on the first invalid definition or a repeated id.
|
|
65
|
+
*/
|
|
66
|
+
function readDefinitionFolders(folders) {
|
|
43
67
|
const foundAt = /* @__PURE__ */ new Map();
|
|
44
68
|
const definitions = [];
|
|
45
69
|
const add = (label, text, source) => {
|
|
@@ -60,7 +84,7 @@ function loadMapViewDefinitions(config, options = {}) {
|
|
|
60
84
|
}
|
|
61
85
|
return definitions;
|
|
62
86
|
}
|
|
63
|
-
/** Plugin short name → root directory, for plugins in a config
|
|
87
|
+
/** Plugin short name → root directory, for plugins in a config root's plugins folder or named by the config. */
|
|
64
88
|
function pluginDirs(config, configDir, configDirs) {
|
|
65
89
|
const found = /* @__PURE__ */ new Map();
|
|
66
90
|
const add = (name, fromDir) => {
|
|
@@ -70,8 +94,8 @@ function pluginDirs(config, configDir, configDirs) {
|
|
|
70
94
|
if (dir) found.set(short, dir);
|
|
71
95
|
};
|
|
72
96
|
for (const dir of configDirs) {
|
|
73
|
-
const plugins =
|
|
74
|
-
if (!
|
|
97
|
+
const plugins = resourceDir(dir, CONFIG_PLUGINS_DIR);
|
|
98
|
+
if (!plugins) continue;
|
|
75
99
|
for (const entry of readdirSync(plugins).filter((e) => e.startsWith(PLUGIN_PREFIX)).sort()) add(entry, dir);
|
|
76
100
|
}
|
|
77
101
|
const topLevel = config.plugins ?? {};
|
|
@@ -101,6 +125,6 @@ function isDirectory(path) {
|
|
|
101
125
|
return existsSync(path) && statSync(path).isDirectory();
|
|
102
126
|
}
|
|
103
127
|
//#endregion
|
|
104
|
-
export { loadMapViewDefinitions as t };
|
|
128
|
+
export { readDefinitionFolders as n, fillPage as r, loadMapViewDefinitions as t };
|
|
105
129
|
|
|
106
|
-
//# sourceMappingURL=node-
|
|
130
|
+
//# sourceMappingURL=node-aizYAYlq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-aizYAYlq.js","names":[],"sources":["../src/node/bundled-definitions.ts","../src/node/page.ts","../src/node/index.ts"],"sourcesContent":["// Generated by scripts/generate-definitions.ts from map-views/*.json5. Do not edit.\nexport const BUNDLED_DEFINITIONS: Record<string, string> = {\n \"strategy-tree.json5\": \"// Strategy stack as a tree: vision → mission → goals → opportunities → solutions → experiments.\\n{\\n $schema: 'https://raw.githubusercontent.com/mindsocket/structured-context-map-views/main/schemas/generated/latest/definition.json',\\n $id: 'sctx-map-view://core/strategy-tree',\\n title: 'Strategy tree',\\n schema: 'sctx://core/strategy_general',\\n parameters: {\\n orientation: { $ref: 'settings.json#/$defs/orientation', default: 'vertical' },\\n nodeStyle: { $ref: 'settings.json#/$defs/nodeStyle', default: 'card' },\\n validation: { $ref: 'settings.json#/$defs/validationLevel', default: 'off' },\\n cardFields: {\\n title: 'Card fields',\\n type: 'array',\\n items: { enum: ['status', 'priority', 'summary'] },\\n default: ['status'],\\n },\\n },\\n regions: [\\n {\\n id: 'main',\\n layout: { type: 'tree', orientation: { $param: 'orientation' } },\\n nodes: { style: { $param: 'nodeStyle' }, fields: { $param: 'cardFields' }, validation: { $param: 'validation' } },\\n edges: { show: true },\\n },\\n ],\\n}\\n\",\n};\n","import type { SpaceSnapshot } from '../core/snapshot';\n\nexport const PAGE_SLOTS = { title: '<!--sctx-title-->', snapshots: '<!--sctx-snapshots-->' } as const;\n\n/** `template` (`dist/page.html`) with the title and snapshots written in. */\nexport function fillPage(template: string, snapshots: SpaceSnapshot[], title: string): string {\n for (const slot of Object.values(PAGE_SLOTS)) {\n if (template.split(slot).length !== 2) throw new Error(`The page template must hold ${slot} exactly once.`);\n }\n // Escaping `<` stops a string in the data ending the script element\n const json = JSON.stringify(snapshots).replaceAll('<', '\\\\u003c');\n return template.replace(PAGE_SLOTS.title, () => escapeHtml(title)).replace(PAGE_SLOTS.snapshots, () => json);\n}\n\nfunction escapeHtml(text: string): string {\n return text.replaceAll('&', '&').replaceAll('<', '<').replaceAll('>', '>');\n}\n","/// <reference types=\"node\" />\nimport { existsSync, readdirSync, readFileSync, statSync } from 'node:fs';\nimport { join, resolve } from 'node:path';\nimport { type Config, PLUGIN_PREFIX, resolveConfigPath, resolvePluginDir, resourceDir } from 'structured-context/api';\nimport { type MapViewDefinition, parseMapViewDefinition } from '../core/definition';\nimport { BUNDLED_DEFINITIONS } from './bundled-definitions';\n\n/**\n * Node-only: finds map view definitions the way structured-context finds plugin schemas.\n * Browser-only hosts receive the result from a server, like graph data.\n */\n\nconst SCHEME = 'sctx-map-view://';\nconst DEFINITIONS_DIR = 'map-views';\nconst CONFIG_PLUGINS_DIR = 'plugins';\nconst PACKAGE_NAME = 'structured-context-map-views';\n\nexport type DefinitionSource = { kind: 'core' } | { kind: 'plugin'; plugin: string } | { kind: 'config' };\n\nexport type LoadMapViewDefinitionsOptions = {\n /** Root of the main config file (`resolveConfigPath().root`). Defaults to where structured-context finds it. */\n configDir?: string;\n};\n\n/**\n * Every map view definition available with `config`, from:\n * - this package's embedded definitions (`sctx-map-view://core/<name>`), for structured-context's bundled schemas;\n * - each plugin found from a config folder or named by a space (`sctx-map-view://<plugin>/<name>`): the\n * folder named by `\"sctx\": { \"mapViews\": \"…\" }` in its package.json, else its `map-views/` folder;\n * - the `map-views` resources folder of each config root (`sctx-map-view://<name>`).\n *\n * Each definition's `$id` must be in the namespace of where it was found, and ids must be unique.\n * Throws on the first invalid definition.\n */\nexport function loadMapViewDefinitions(\n config: Config,\n options: LoadMapViewDefinitionsOptions = {},\n): MapViewDefinition[] {\n const configDir = options.configDir ?? resolveConfigPath().root;\n const configDirs = [...new Set([configDir, ...config.spaces.flatMap((s) => (s.sourceDir ? [s.sourceDir] : []))])];\n\n const folders: { dir: string; source: DefinitionSource }[] = [\n ...pluginDirs(config, configDir, configDirs).flatMap(([plugin, dir]) => {\n const definitions = pluginDefinitionsDir(dir);\n return definitions ? [{ dir: definitions, source: { kind: 'plugin', plugin } as const }] : [];\n }),\n ...configDirs.flatMap((dir) => {\n const definitions = resourceDir(dir, DEFINITIONS_DIR);\n return definitions ? [{ dir: definitions, source: { kind: 'config' } as const }] : [];\n }),\n ];\n\n return readDefinitionFolders(folders);\n}\n\n/**\n * Definitions in `folders` and this package's embedded ones, each checked against the namespace of its source.\n * Throws on the first invalid definition or a repeated id.\n */\nexport function readDefinitionFolders(folders: { dir: string; source: DefinitionSource }[]): MapViewDefinition[] {\n const foundAt = new Map<string, string>();\n const definitions: MapViewDefinition[] = [];\n const add = (label: string, text: string, source: DefinitionSource) => {\n const definition = parseMapViewDefinition(label, text);\n assertIdNamespace(definition.id, source, label);\n const existing = foundAt.get(definition.id);\n if (existing) throw new Error(`Map view id \"${definition.id}\" is defined by both ${existing} and ${label}.`);\n foundAt.set(definition.id, label);\n definitions.push(definition);\n };\n\n for (const [file, text] of Object.entries(BUNDLED_DEFINITIONS))\n add(`${PACKAGE_NAME}/${file}`, text, { kind: 'core' });\n for (const { dir, source } of folders) {\n if (!isDirectory(dir)) continue;\n for (const file of readdirSync(dir)\n .filter((f) => f.endsWith('.json5'))\n .sort()) {\n const path = join(dir, file);\n add(path, readFileSync(path, 'utf8'), source);\n }\n }\n return definitions;\n}\n\n/** Plugin short name → root directory, for plugins in a config root's plugins folder or named by the config. */\nfunction pluginDirs(config: Config, configDir: string, configDirs: string[]): [string, string][] {\n const found = new Map<string, string>();\n const add = (name: string, fromDir: string) => {\n const short = name.startsWith(PLUGIN_PREFIX) ? name.slice(PLUGIN_PREFIX.length) : name;\n if (found.has(short)) return;\n const dir = resolvePluginDir(name, fromDir);\n if (dir) found.set(short, dir);\n };\n\n for (const dir of configDirs) {\n const plugins = resourceDir(dir, CONFIG_PLUGINS_DIR);\n if (!plugins) continue;\n for (const entry of readdirSync(plugins)\n .filter((e) => e.startsWith(PLUGIN_PREFIX))\n .sort())\n add(entry, dir);\n }\n const topLevel = (config as { plugins?: Record<string, unknown> }).plugins ?? {};\n for (const name of Object.keys(topLevel)) add(name, configDir);\n for (const space of config.spaces) {\n const fromDir = space.sourceDir ?? configDir;\n // A schema named through a plugin, e.g. \"sctx-wardley-mapping/wardley_map.json\".\n const schemaPlugin = /^([^./][^/]*)\\/./.exec(space.schema ?? '')?.[1];\n if (schemaPlugin) add(schemaPlugin, fromDir);\n for (const name of Object.keys(space.plugins ?? {})) add(name, fromDir);\n }\n return [...found];\n}\n\nfunction pluginDefinitionsDir(pluginDir: string): string | undefined {\n const pkgPath = join(pluginDir, 'package.json');\n if (existsSync(pkgPath)) {\n const declared = JSON.parse(readFileSync(pkgPath, 'utf8')).sctx?.mapViews;\n if (typeof declared === 'string') return resolve(pluginDir, declared);\n }\n return join(pluginDir, DEFINITIONS_DIR);\n}\n\nfunction assertIdNamespace(id: string, source: DefinitionSource, path: string): void {\n const segments = id.slice(SCHEME.length).split('/');\n const expected =\n source.kind === 'core'\n ? `${SCHEME}core/<name>`\n : source.kind === 'plugin'\n ? `${SCHEME}${source.plugin}/<name>`\n : `${SCHEME}<name>`;\n const ok =\n source.kind === 'config'\n ? segments.length === 1\n : segments.length === 2 && segments[0] === (source.kind === 'core' ? 'core' : source.plugin);\n if (!ok || (source.kind === 'plugin' && source.plugin === 'core')) {\n throw new Error(`Map view namespace violation: ${path} has $id \"${id}\". Use the form \"${expected}\".`);\n }\n}\n\nfunction isDirectory(path: string): boolean {\n return existsSync(path) && statSync(path).isDirectory();\n}\n\nexport { fillPage } from './page';\n"],"mappings":";;;;;AACA,IAAa,sBAA8C,EACzD,uBAAuB,8iCACzB;;;ACDA,IAAa,aAAa;CAAE,OAAO;CAAqB,WAAW;AAAwB;;AAG3F,SAAgB,SAAS,UAAkB,WAA4B,OAAuB;CAC5F,KAAK,MAAM,QAAQ,OAAO,OAAO,UAAU,GACzC,IAAI,SAAS,MAAM,IAAI,CAAC,CAAC,WAAW,GAAG,MAAM,IAAI,MAAM,+BAA+B,KAAK,eAAe;CAG5G,MAAM,OAAO,KAAK,UAAU,SAAS,CAAC,CAAC,WAAW,KAAK,SAAS;CAChE,OAAO,SAAS,QAAQ,WAAW,aAAa,WAAW,KAAK,CAAC,CAAC,CAAC,QAAQ,WAAW,iBAAiB,IAAI;AAC7G;AAEA,SAAS,WAAW,MAAsB;CACxC,OAAO,KAAK,WAAW,KAAK,OAAO,CAAC,CAAC,WAAW,KAAK,MAAM,CAAC,CAAC,WAAW,KAAK,MAAM;AACrF;;;;;;;ACJA,IAAM,SAAS;AACf,IAAM,kBAAkB;AACxB,IAAM,qBAAqB;AAC3B,IAAM,eAAe;;;;;;;;;;;AAmBrB,SAAgB,uBACd,QACA,UAAyC,CAAC,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KAAK,WAAW,cAAc;CAC9C,IAAI,WAAW,OAAO,GAAG;EACvB,MAAM,WAAW,KAAK,MAAM,aAAa,SAAS,MAAM,CAAC,CAAC,CAAC,MAAM;EACjE,IAAI,OAAO,aAAa,UAAU,OAAO,QAAQ,WAAW,QAAQ;CACtE;CACA,OAAO,KAAK,WAAW,eAAe;AACxC;AAEA,SAAS,kBAAkB,IAAY,QAA0B,MAAoB;CACnF,MAAM,WAAW,GAAG,MAAM,EAAa,CAAC,CAAC,MAAM,GAAG;CAClD,MAAM,WACJ,OAAO,SAAS,SACZ,GAAG,OAAO,eACV,OAAO,SAAS,WACd,GAAG,SAAS,OAAO,OAAO,WAC1B,GAAG,OAAO;CAKlB,IAAI,EAHF,OAAO,SAAS,WACZ,SAAS,WAAW,IACpB,SAAS,WAAW,KAAK,SAAS,QAAQ,OAAO,SAAS,SAAS,SAAS,OAAO,YAC7E,OAAO,SAAS,YAAY,OAAO,WAAW,QACxD,MAAM,IAAI,MAAM,iCAAiC,KAAK,YAAY,GAAG,mBAAmB,SAAS,GAAG;AAExG;AAEA,SAAS,YAAY,MAAuB;CAC1C,OAAO,WAAW,IAAI,KAAK,SAAS,IAAI,CAAC,CAAC,YAAY;AACxD"}
|
package/dist/node.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as loadMapViewDefinitions } from "./node-
|
|
2
|
-
export { loadMapViewDefinitions };
|
|
1
|
+
import { n as readDefinitionFolders, r as fillPage, t as loadMapViewDefinitions } from "./node-aizYAYlq.js";
|
|
2
|
+
export { fillPage, loadMapViewDefinitions, readDefinitionFolders };
|