@geml/geml 1.7.8 → 1.8.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/LICENSE +21 -21
- package/README.md +288 -285
- package/codemap/adapters/crg.mjs +120 -120
- package/codemap/adapters/joern.mjs +131 -131
- package/codemap/adapters/scip.mjs +658 -658
- package/codemap/browser-stub.mjs +34 -34
- package/codemap/build.mjs +629 -629
- package/codemap/cross-stack.mjs +303 -303
- package/codemap/detect.mjs +399 -399
- package/codemap/emit.mjs +510 -510
- package/codemap/entries.mjs +129 -129
- package/codemap/exclude.mjs +56 -56
- package/codemap/find.mjs +49 -49
- package/codemap/foldings.mjs +110 -110
- package/codemap/joern-export.sc +83 -83
- package/codemap/mcp-server.mjs +434 -431
- package/codemap/normalize.mjs +275 -275
- package/codemap/recipe-trust.mjs +103 -103
- package/codemap/refresh.mjs +313 -313
- package/codemap/render-all.mjs +90 -90
- package/codemap/serve.mjs +585 -585
- package/codemap/sfc-virtualize.mjs +367 -367
- package/codemap/verify.mjs +158 -158
- package/dist/attrs.d.ts +8 -0
- package/dist/attrs.js +24 -0
- package/dist/cli.js +190 -139
- package/dist/diagnostics.d.ts +1 -1
- package/dist/diagnostics.js +5 -1
- package/dist/geml.js +63 -25
- package/dist/inline.d.ts +7 -1
- package/dist/inline.js +203 -137
- package/dist/mcp.js +68 -26
- package/dist/render-html.js +35 -35
- package/dist/render.js +157 -157
- package/package.json +1 -1
- package/skill/SKILL.md +167 -167
- package/skill/references/authoring.geml +369 -365
package/codemap/browser-stub.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
// Stubs for the Node built-ins that geml-parser imports for its CLI/history
|
|
2
|
-
// code paths. Those paths never run in the browser (the CLI block is gated by
|
|
3
|
-
// `process.argv` — an empty shim there — and history functions are never
|
|
4
|
-
// called from parse()). These exist only so the static `import`s resolve when
|
|
5
|
-
// the modules load in a browser:
|
|
6
|
-
// - `geml codemap serve` maps node:* here via an import map (/_dist/_node-stub.js)
|
|
7
|
-
// - the viewer/playground esbuild bundles alias node:* to this same file
|
|
8
|
-
// Calling any of these would be a bug, so they no-op harmlessly.
|
|
9
|
-
|
|
10
|
-
export const readFileSync = () => "";
|
|
11
|
-
export const writeFileSync = () => {};
|
|
12
|
-
export const existsSync = () => false;
|
|
13
|
-
export const realpathSync = (p) => p;
|
|
14
|
-
export const statSync = () => ({ isDirectory: () => false });
|
|
15
|
-
export const mkdirSync = () => {};
|
|
16
|
-
export const readdirSync = () => [];
|
|
17
|
-
export const copyFileSync = () => {};
|
|
18
|
-
export const basename = (p) => p;
|
|
19
|
-
export const dirname = (p) => p;
|
|
20
|
-
export const resolve = (...p) => p.join("/");
|
|
21
|
-
export const join = (...p) => p.join("/");
|
|
22
|
-
export const isAbsolute = () => false;
|
|
23
|
-
export const relative = (_from, to) => to;
|
|
24
|
-
export const sep = "/";
|
|
25
|
-
export const fileURLToPath = (u) => String(u);
|
|
26
|
-
export const spawnSync = () => ({ status: 1 });
|
|
27
|
-
// node:os — `geml skill install` resolves the home directory; CLI-only.
|
|
28
|
-
export const homedir = () => "/";
|
|
29
|
-
export const createHash = () => ({
|
|
30
|
-
update() { return this; },
|
|
31
|
-
digest() { return ""; },
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export default {};
|
|
1
|
+
// Stubs for the Node built-ins that geml-parser imports for its CLI/history
|
|
2
|
+
// code paths. Those paths never run in the browser (the CLI block is gated by
|
|
3
|
+
// `process.argv` — an empty shim there — and history functions are never
|
|
4
|
+
// called from parse()). These exist only so the static `import`s resolve when
|
|
5
|
+
// the modules load in a browser:
|
|
6
|
+
// - `geml codemap serve` maps node:* here via an import map (/_dist/_node-stub.js)
|
|
7
|
+
// - the viewer/playground esbuild bundles alias node:* to this same file
|
|
8
|
+
// Calling any of these would be a bug, so they no-op harmlessly.
|
|
9
|
+
|
|
10
|
+
export const readFileSync = () => "";
|
|
11
|
+
export const writeFileSync = () => {};
|
|
12
|
+
export const existsSync = () => false;
|
|
13
|
+
export const realpathSync = (p) => p;
|
|
14
|
+
export const statSync = () => ({ isDirectory: () => false });
|
|
15
|
+
export const mkdirSync = () => {};
|
|
16
|
+
export const readdirSync = () => [];
|
|
17
|
+
export const copyFileSync = () => {};
|
|
18
|
+
export const basename = (p) => p;
|
|
19
|
+
export const dirname = (p) => p;
|
|
20
|
+
export const resolve = (...p) => p.join("/");
|
|
21
|
+
export const join = (...p) => p.join("/");
|
|
22
|
+
export const isAbsolute = () => false;
|
|
23
|
+
export const relative = (_from, to) => to;
|
|
24
|
+
export const sep = "/";
|
|
25
|
+
export const fileURLToPath = (u) => String(u);
|
|
26
|
+
export const spawnSync = () => ({ status: 1 });
|
|
27
|
+
// node:os — `geml skill install` resolves the home directory; CLI-only.
|
|
28
|
+
export const homedir = () => "/";
|
|
29
|
+
export const createHash = () => ({
|
|
30
|
+
update() { return this; },
|
|
31
|
+
digest() { return ""; },
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export default {};
|