@clarify-labs/cli 0.10.1 → 0.10.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/output/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_engine = require("./engine-5bdNX2Oo.cjs");
2
+ const require_engine = require("./engine-qafLfnXQ.cjs");
3
3
  exports.ClarifyEngine = require_engine.ClarifyEngine;
4
4
  exports.createClarifyEngine = require_engine.createClarifyEngine;
5
5
  exports.createViteAdapter = require_engine.createViteAdapter;
package/output/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { c as defineConfig, n as createClarifyEngine, s as createViteAdapter, t as ClarifyEngine } from "./engine-Ca_2MCj9.js";
1
+ import { c as defineConfig, n as createClarifyEngine, s as createViteAdapter, t as ClarifyEngine } from "./engine-CSSL_gGd.js";
2
2
  export { ClarifyEngine, createClarifyEngine, createViteAdapter, defineConfig };
@@ -1,3 +1,4 @@
1
+ import { CompileOptions } from '@mdx-js/mdx';
1
2
  import { ContentDiagnostic } from '../../types.js';
2
3
  type HastNode = {
3
4
  type: string;
@@ -7,17 +8,16 @@ type HastNode = {
7
8
  children?: HastNode[];
8
9
  };
9
10
  export declare function rehypeParseCodeBlocks(): (tree: HastNode) => void;
10
- export declare function rehypeShiki(): (tree: HastNode) => Promise<void>;
11
- export declare function rehypeSlugSections(): (tree: HastNode) => void;
12
11
  export declare const remarkPlugins: unknown[];
13
- export declare const rehypePlugins: (typeof rehypeSlugSections)[];
12
+ export declare const rehypePlugins: NonNullable<CompileOptions['rehypePlugins']>;
14
13
  /**
15
14
  * Validate MDX content for diagnostics WITHOUT running the build-time rehype
16
15
  * pipeline (Shiki highlighting, slug injection, code-block parsing).
17
16
  *
18
17
  * `rehypePlugins` includes `rehypeShiki`, which loads grammar/WASM assets and
19
18
  * is expensive. The real highlighting happens at Vite build time via the
20
- * `@mdx-js/rollup` plugin (see `createMdxPlugin` in `core/adapters.ts`), which
19
+ * `@mdx-js/rollup` plugins (see `createMarkdownPlugin` and `createMdxPlugin`
20
+ * in `core/adapters.ts`), which
21
21
  * runs the full remark + rehype pipeline. Re-running it here, during route
22
22
  * discovery (Phase 3), would compile every `.mdx` file twice and invoke Shiki
23
23
  * once per file per `engine.refresh()` — see ARCHITECTURE.md §2.2 which states
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clarify-labs/cli",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "repository": {
@@ -39,10 +39,11 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@apidevtools/swagger-parser": "^12.1.0",
42
- "@clarify-labs/renderer": "0.10.1",
43
- "@clarify-labs/templates": "0.10.1",
42
+ "@clarify-labs/renderer": "0.10.2",
43
+ "@clarify-labs/templates": "0.10.2",
44
44
  "@mdx-js/mdx": "^3.1.1",
45
45
  "@mdx-js/rollup": "^3.1.1",
46
+ "@shikijs/rehype": "^4.3.0",
46
47
  "@tailwindcss/vite": "^4.3.2",
47
48
  "@vitejs/plugin-react": "^6.0.3",
48
49
  "cac": "^7.0.0",
@@ -57,6 +58,8 @@
57
58
  "react-router": "^7.0.0",
58
59
  "react-router-dom": "^7.0.0",
59
60
  "react-zoom-pan-pinch": "^4.0.3",
61
+ "rehype-raw": "^7.0.0",
62
+ "rehype-slug": "^6.0.0",
60
63
  "remark": "^15.0.1",
61
64
  "remark-gfm": "^4.0.1",
62
65
  "shiki": "4.3.0",