@aws/nx-plugin 0.106.0 → 0.108.0

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.
Files changed (54) hide show
  1. package/LICENSE-THIRD-PARTY +2401 -175
  2. package/package.json +19 -8
  3. package/src/connection/serve-local.js +4 -4
  4. package/src/connection/serve-local.js.map +1 -1
  5. package/src/infra/app/__snapshots__/generator.spec.ts.snap +13 -13
  6. package/src/mcp-server/generator-info.d.ts +95 -13
  7. package/src/mcp-server/generator-info.js +319 -164
  8. package/src/mcp-server/generator-info.js.map +1 -1
  9. package/src/mcp-server/guide-pipeline.d.ts +28 -0
  10. package/src/mcp-server/guide-pipeline.js +393 -0
  11. package/src/mcp-server/guide-pipeline.js.map +1 -0
  12. package/src/mcp-server/guide-render.d.ts +25 -0
  13. package/src/mcp-server/guide-render.js +50 -0
  14. package/src/mcp-server/guide-render.js.map +1 -0
  15. package/src/mcp-server/mdx-ast.d.ts +30 -0
  16. package/src/mcp-server/mdx-ast.js +96 -0
  17. package/src/mcp-server/mdx-ast.js.map +1 -0
  18. package/src/mcp-server/option-filter.d.ts +33 -0
  19. package/src/mcp-server/option-filter.js +119 -0
  20. package/src/mcp-server/option-filter.js.map +1 -0
  21. package/src/mcp-server/schema-registry.d.ts +36 -0
  22. package/src/mcp-server/schema-registry.js +79 -0
  23. package/src/mcp-server/schema-registry.js.map +1 -0
  24. package/src/mcp-server/tools/generator-guide.d.ts +7 -1
  25. package/src/mcp-server/tools/generator-guide.js +32 -4
  26. package/src/mcp-server/tools/generator-guide.js.map +1 -1
  27. package/src/mcp-server/tools/list-generators.d.ts +10 -1
  28. package/src/mcp-server/tools/list-generators.js +34 -13
  29. package/src/mcp-server/tools/list-generators.js.map +1 -1
  30. package/src/preset/__snapshots__/generator.spec.ts.snap +3 -3
  31. package/src/preset/schema.json +2 -2
  32. package/src/py/fast-api/generator.js +9 -0
  33. package/src/py/fast-api/generator.js.map +1 -1
  34. package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +1 -1
  35. package/src/py/strands-agent/__snapshots__/generator.spec.ts.snap +4 -4
  36. package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +12 -0
  37. package/src/smithy/ts/api/generator.js +9 -0
  38. package/src/smithy/ts/api/generator.js.map +1 -1
  39. package/src/trpc/backend/generator.js +9 -0
  40. package/src/trpc/backend/generator.js.map +1 -1
  41. package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +2 -2
  42. package/src/ts/mcp-server/generator.js +15 -0
  43. package/src/ts/mcp-server/generator.js.map +1 -1
  44. package/src/ts/nx-generator/__snapshots__/generator.spec.ts.snap +2 -0
  45. package/src/ts/nx-generator/files/nx-plugin-for-aws/docs/__nameKebabCase__.mdx.template +2 -0
  46. package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +27 -27
  47. package/src/ts/react-website/cognito-auth/__snapshots__/generator.spec.ts.snap +12 -3
  48. package/src/utils/files/common/shadcn/src/components/ui/avatar.tsx.template +60 -4
  49. package/src/utils/files/common/shadcn/src/components/ui/textarea.tsx.template +1 -1
  50. package/src/utils/generators.d.ts +1 -1
  51. package/src/utils/identity-constructs/files/cdk/core/user-identity.ts.template +13 -3
  52. package/src/utils/versions.d.ts +37 -37
  53. package/src/utils/versions.js +36 -36
  54. package/src/utils/versions.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/nx-plugin",
3
- "version": "0.106.0",
3
+ "version": "0.108.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/awslabs/nx-plugin-for-aws.git",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "generators": "./generators.json",
21
21
  "peerDependencies": {
22
- "nx": "22.7.0",
22
+ "nx": "22.7.1",
23
23
  "prettier": "3.8.3"
24
24
  },
25
25
  "dependencies": {
@@ -28,28 +28,39 @@
28
28
  "@hey-api/openapi-ts": "0.64.13",
29
29
  "@iarna/toml": "2.2.5",
30
30
  "@modelcontextprotocol/sdk": "1.29.0",
31
- "@nx/devkit": "22.7.0",
32
- "@nx/eslint": "22.7.0",
33
- "@nx/js": "22.7.0",
34
- "@nx/react": "22.7.0",
35
- "@nx/vite": "22.7.0",
31
+ "@nx/devkit": "22.7.1",
32
+ "@nx/eslint": "22.7.1",
33
+ "@nx/js": "22.7.1",
34
+ "@nx/react": "22.7.1",
35
+ "@nx/vite": "22.7.1",
36
+ "@types/estree": "1.0.8",
37
+ "@types/js-yaml": "4.0.9",
38
+ "@types/mdast": "4.0.4",
36
39
  "@nxlv/python": "22.1.3",
37
40
  "@phenomnomnominal/tsquery": "6.2.0",
38
41
  "enquirer": "2.4.1",
39
42
  "fast-glob": "3.3.3",
43
+ "js-yaml": "4.1.0",
40
44
  "lodash.camelcase": "4.3.0",
41
45
  "lodash.clonedeepwith": "4.5.0",
42
46
  "lodash.deburr": "4.1.0",
43
47
  "lodash.orderby": "4.18.0",
44
48
  "lodash.trim": "4.18.0",
45
49
  "lodash.uniqby": "4.7.0",
50
+ "mdast-util-mdx-jsx": "3.2.0",
46
51
  "minimatch": "10.2.5",
47
52
  "openapi-types": "12.1.3",
48
53
  "pip-requirements-js": "1.0.3",
54
+ "remark-frontmatter": "5.0.0",
55
+ "remark-mdx": "3.1.1",
56
+ "remark-parse": "11.0.0",
57
+ "remark-stringify": "11.0.0",
49
58
  "typescript": "6.0.3",
59
+ "unified": "11.0.5",
60
+ "unist-util-visit": "5.1.0",
50
61
  "vite": "8.0.10",
51
62
  "vitest": "4.1.5",
52
- "zod": "4.3.6"
63
+ "zod": "4.4.1"
53
64
  },
54
65
  "types": "./src/index.d.ts"
55
66
  }
@@ -16,17 +16,17 @@ const names_1 = require("../utils/names");
16
16
  const addTargetToServeLocal = async (tree, sourceProjectName, targetProjectName, options) => {
17
17
  const sourceProject = (0, nx_1.readProjectConfigurationUnqualified)(tree, sourceProjectName);
18
18
  const targetProject = (0, nx_1.readProjectConfigurationUnqualified)(tree, targetProjectName);
19
- // Target project must have a serve target which is continuous
20
- if (!(targetProject.targets?.serve?.continuous &&
19
+ // Target project must have a serve-local target which is continuous
20
+ if (!(targetProject.targets?.['serve-local']?.continuous &&
21
21
  sourceProject.targets?.['serve-local'])) {
22
22
  return;
23
23
  }
24
- // Add a dependency on the serve target
24
+ // Add a dependency on the serve-local target
25
25
  sourceProject.targets['serve-local'].dependsOn = [
26
26
  ...(sourceProject.targets['serve-local'].dependsOn ?? []),
27
27
  {
28
28
  projects: [targetProject.name],
29
- target: 'serve',
29
+ target: 'serve-local',
30
30
  },
31
31
  ...(options.additionalDependencyTargets ?? []),
32
32
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"serve-local.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src/connection/serve-local.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAIoB;AACpB,sCAA2C;AAC3C,oCAAkE;AAClE,0CAA6C;AAQ7C;;;GAGG;AACI,MAAM,qBAAqB,GAAG,KAAK,EACxC,IAAU,EACV,iBAAyB,EACzB,iBAAyB,EACzB,OAA0B,EAC1B,EAAE;IACF,MAAM,aAAa,GAAG,IAAA,wCAAmC,EACvD,IAAI,EACJ,iBAAiB,CAClB,CAAC;IACF,MAAM,aAAa,GAAG,IAAA,wCAAmC,EACvD,IAAI,EACJ,iBAAiB,CAClB,CAAC;IAEF,8DAA8D;IAC9D,IACE,CAAC,CACC,aAAa,CAAC,OAAO,EAAE,KAAK,EAAE,UAAU;QACxC,aAAa,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,CACvC,EACD,CAAC;QACD,OAAO;IACT,CAAC;IAED,uCAAuC;IACvC,aAAa,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,SAAS,GAAG;QAC/C,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC;QACzD;YACE,QAAQ,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;YAC9B,MAAM,EAAE,OAAO;SAChB;QACD,GAAG,CAAC,OAAO,CAAC,2BAA2B,IAAI,EAAE,CAAC;KAC/C,CAAC;IACF,IAAA,mCAA0B,EAAC,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAEpE,yFAAyF;IACzF,MAAM,qBAAqB,GAAG,IAAA,0BAAiB,EAC7C,aAAa,CAAC,IAAI,EAClB,KAAK,EACL,YAAY,EACZ,eAAe,EACf,WAAW,CACZ,CAAC;IACF,IAAI,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,CAAC;QACvC,MAAM,SAAS,GAAG,IAAA,mBAAW,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC/C,MAAM,IAAA,iBAAW,EACf,IAAI,EACJ,qBAAqB,EACrB,sFAAsF,SAAS,OAAO,OAAO,CAAC,GAAG,sJAAsJ,SAAS,MAAM,CACvR,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AApDW,QAAA,qBAAqB,yBAoDhC"}
1
+ {"version":3,"file":"serve-local.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src/connection/serve-local.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAIoB;AACpB,sCAA2C;AAC3C,oCAAkE;AAClE,0CAA6C;AAQ7C;;;GAGG;AACI,MAAM,qBAAqB,GAAG,KAAK,EACxC,IAAU,EACV,iBAAyB,EACzB,iBAAyB,EACzB,OAA0B,EAC1B,EAAE;IACF,MAAM,aAAa,GAAG,IAAA,wCAAmC,EACvD,IAAI,EACJ,iBAAiB,CAClB,CAAC;IACF,MAAM,aAAa,GAAG,IAAA,wCAAmC,EACvD,IAAI,EACJ,iBAAiB,CAClB,CAAC;IAEF,oEAAoE;IACpE,IACE,CAAC,CACC,aAAa,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,UAAU;QAClD,aAAa,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,CACvC,EACD,CAAC;QACD,OAAO;IACT,CAAC;IAED,6CAA6C;IAC7C,aAAa,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,SAAS,GAAG;QAC/C,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC;QACzD;YACE,QAAQ,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;YAC9B,MAAM,EAAE,aAAa;SACtB;QACD,GAAG,CAAC,OAAO,CAAC,2BAA2B,IAAI,EAAE,CAAC;KAC/C,CAAC;IACF,IAAA,mCAA0B,EAAC,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAEpE,yFAAyF;IACzF,MAAM,qBAAqB,GAAG,IAAA,0BAAiB,EAC7C,aAAa,CAAC,IAAI,EAClB,KAAK,EACL,YAAY,EACZ,eAAe,EACf,WAAW,CACZ,CAAC;IACF,IAAI,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,CAAC;QACvC,MAAM,SAAS,GAAG,IAAA,mBAAW,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC/C,MAAM,IAAA,iBAAW,EACf,IAAI,EACJ,qBAAqB,EACrB,sFAAsF,SAAS,OAAO,OAAO,CAAC,GAAG,sJAAsJ,SAAS,MAAM,CACvR,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AApDW,QAAA,qBAAqB,yBAoDhC"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports[`infra generator > should add required dependencies to package.json > dependencies 1`] = `
4
4
  {
5
- "aws-cdk": "2.1119.0",
5
+ "aws-cdk": "2.1120.0",
6
6
  "aws-cdk-lib": "2.251.0",
7
7
  "constructs": "10.6.0",
8
8
  "esbuild": "0.28.0",
@@ -13,10 +13,10 @@ exports[`infra generator > should add required dependencies to package.json > de
13
13
  exports[`infra generator > should add required dependencies to package.json > dev-dependencies 1`] = `
14
14
  {
15
15
  "@eslint/js": "^9.8.0",
16
- "@nx/eslint": "22.7.0",
17
- "@nx/eslint-plugin": "22.7.0",
18
- "@nx/js": "22.7.0",
19
- "@nx/vitest": "22.7.0",
16
+ "@nx/eslint": "22.7.1",
17
+ "@nx/eslint-plugin": "22.7.1",
18
+ "@nx/js": "22.7.1",
19
+ "@nx/vitest": "22.7.1",
20
20
  "@swc-node/register": "~1.11.1",
21
21
  "@swc/core": "~1.15.5",
22
22
  "@swc/helpers": "~0.5.18",
@@ -39,7 +39,7 @@ exports[`infra generator > should add required dependencies to package.json > de
39
39
  exports[`infra generator > should add required dependencies to package.json > package-json 1`] = `
40
40
  {
41
41
  "dependencies": {
42
- "aws-cdk": "2.1119.0",
42
+ "aws-cdk": "2.1120.0",
43
43
  "aws-cdk-lib": "2.251.0",
44
44
  "constructs": "10.6.0",
45
45
  "esbuild": "0.28.0",
@@ -47,10 +47,10 @@ exports[`infra generator > should add required dependencies to package.json > pa
47
47
  },
48
48
  "devDependencies": {
49
49
  "@eslint/js": "^9.8.0",
50
- "@nx/eslint": "22.7.0",
51
- "@nx/eslint-plugin": "22.7.0",
52
- "@nx/js": "22.7.0",
53
- "@nx/vitest": "22.7.0",
50
+ "@nx/eslint": "22.7.1",
51
+ "@nx/eslint-plugin": "22.7.1",
52
+ "@nx/js": "22.7.1",
53
+ "@nx/vitest": "22.7.1",
54
54
  "@swc-node/register": "~1.11.1",
55
55
  "@swc/core": "~1.15.5",
56
56
  "@swc/helpers": "~0.5.18",
@@ -84,7 +84,7 @@ exports[`infra generator > should configure Checkov target correctly > checkov-t
84
84
  "{workspaceRoot}/dist/{projectRoot}/cdk.out",
85
85
  ],
86
86
  "options": {
87
- "command": "uvx --from checkov==3.2.525 checkov --config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation",
87
+ "command": "uvx --from checkov==3.2.526 checkov --config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation",
88
88
  },
89
89
  "outputs": [
90
90
  "{workspaceRoot}/dist/{projectRoot}/checkov",
@@ -177,7 +177,7 @@ exports[`infra generator > should configure project.json with correct targets >
177
177
  "{workspaceRoot}/dist/{projectRoot}/cdk.out",
178
178
  ],
179
179
  "options": {
180
- "command": "uvx --from checkov==3.2.525 checkov --config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation",
180
+ "command": "uvx --from checkov==3.2.526 checkov --config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation",
181
181
  },
182
182
  "outputs": [
183
183
  "{workspaceRoot}/dist/{projectRoot}/checkov",
@@ -739,7 +739,7 @@ exports[`infra generator > should handle custom project names correctly > custom
739
739
  "{workspaceRoot}/dist/{projectRoot}/cdk.out",
740
740
  ],
741
741
  "options": {
742
- "command": "uvx --from checkov==3.2.525 checkov --config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation",
742
+ "command": "uvx --from checkov==3.2.526 checkov --config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation",
743
743
  },
744
744
  "outputs": [
745
745
  "{workspaceRoot}/dist/{projectRoot}/checkov",
@@ -1,31 +1,113 @@
1
1
  import { NxGeneratorInfo } from '../utils/generators';
2
- /**
3
- * Build a command to run nx
4
- */
5
- export declare const buildNxCommand: (command: string, pm?: string) => string;
2
+ export { buildNxCommand } from './guide-render';
6
3
  /**
7
4
  * Render summary information about a generator
8
5
  */
9
6
  export declare const renderGeneratorInfo: (packageManager: string, info: NxGeneratorInfo) => string;
7
+ export type FilterableOption = import('./schema-registry').FilterableOption;
8
+ /**
9
+ * Enum properties from the generator's JSON schema — the options a user
10
+ * could pass on the CLI. Agents use this list to pick `options` values
11
+ * when calling `generator-guide`.
12
+ *
13
+ * Multi-variant generators (e.g. `connection`) layer additional keys on
14
+ * top via each guide page's `when:` frontmatter — merged in by
15
+ * `collectFrontmatterFilterableOptions` / `renderFilterableOptionsAsync`.
16
+ */
17
+ export declare const loadFilterableOptionsFromSchema: (info: NxGeneratorInfo) => FilterableOption[];
18
+ /**
19
+ * Render the "Filterable options" block that list-generators emits for each
20
+ * generator. Only keys the guide pages actually branch on are included —
21
+ * enum properties the schema exposes but no guide filters on are omitted
22
+ * so agents don't waste tokens setting options that won't affect the
23
+ * returned content.
24
+ *
25
+ * Keys come from two sources:
26
+ * - Schema enums, intersected with keys referenced by
27
+ * `<OptionFilter when>` / `<TabItem _filter>` across the generator's
28
+ * guide pages.
29
+ * - Per-page `when:` frontmatter blocks (multi-variant generators like
30
+ * `connection`).
31
+ */
32
+ export declare const renderFilterableOptionsAsync: (info: NxGeneratorInfo) => Promise<string>;
33
+ /**
34
+ * A guide page after its raw MDX has been fetched and the YAML frontmatter
35
+ * parsed. The body excludes the frontmatter delimiter; the parsed
36
+ * `frontmatter.when` predicate drives guide-level filtering.
37
+ */
38
+ interface FetchedGuide {
39
+ page: string;
40
+ raw: string;
41
+ body: string;
42
+ frontmatter: {
43
+ when?: Record<string, string[]>;
44
+ title?: string;
45
+ };
46
+ /** Option keys referenced by `<OptionFilter when>` / `<TabItem _filter>` in the body. */
47
+ referencedKeys: Set<string>;
48
+ }
49
+ /**
50
+ * Result of `fetchGuidePagesForGenerator`. When the agent's options pick
51
+ * a combination no variant page matches, `kind` is `'unsupported'` and
52
+ * `content` holds an explanatory warning the tool should surface on its
53
+ * own (without wrapping it in the usual `## <id>` summary). Otherwise
54
+ * `content` is the rendered guide text.
55
+ */
56
+ export type GuideFetchResult = {
57
+ kind: 'ok';
58
+ content: string;
59
+ } | {
60
+ kind: 'unsupported';
61
+ content: string;
62
+ };
63
+ /**
64
+ * Retrieve the markdown guide pages for a generator.
65
+ *
66
+ * Every page listed in `guidePages` (or the kebab-cased generator id when
67
+ * that field is absent) is fetched in parallel — local files first, GitHub
68
+ * fallback — and its YAML frontmatter is parsed to pick up any `when:`
69
+ * predicate. Pages without a `when:` are always included; pages with a
70
+ * `when:` are included when either:
71
+ * - `options` is absent (agent hasn't narrowed yet — keep every variant),
72
+ * or
73
+ * - the predicate matches `options` using the same semantics as
74
+ * `<OptionFilter when={{…}}>` (AND across keys, OR within a key).
75
+ *
76
+ * If the agent has supplied enough options to identify a combination and
77
+ * no variant page matches, the result is `{ kind: 'unsupported' }` and the
78
+ * caller surfaces the warning directly.
79
+ */
80
+ export declare const fetchGuidePagesForGenerator: (info: NxGeneratorInfo, generators: NxGeneratorInfo[], packageManager?: string, snippetContentProvider?: SnippetContentProvider, options?: Record<string, string>) => Promise<GuideFetchResult>;
10
81
  /**
11
- * Retrieve the markdown guide pages for a generator from github.
12
- * If the generator has guidePages in generators.json we fetch all of those, otherwise we
13
- * try to fetch a guide with the generator name kebab-cased.
82
+ * Fetch every guide page referenced by a generator, in parallel, and
83
+ * return { page, raw, body, frontmatter } for each one. Used by both
84
+ * `fetchGuidePagesForGenerator` (to filter + render) and
85
+ * `renderFilterableOptionsAsync` (to build the filterable-options list
86
+ * from the union of frontmatter `when:` keys).
14
87
  */
15
- export declare const fetchGuidePagesForGenerator: (info: NxGeneratorInfo, generators: NxGeneratorInfo[], packageManager?: string, snippetContentProvider?: SnippetContentProvider) => Promise<string>;
88
+ export declare const fetchGuideFrontmatters: (info: NxGeneratorInfo) => Promise<FetchedGuide[]>;
16
89
  /**
17
- * Fetch markdown guide pages from github
90
+ * Fetch markdown guide pages. Prefers local files (see `fetchLocalGuide`)
91
+ * and falls back to fetching from the repo on `main` when no local copy
92
+ * is available.
18
93
  */
19
- export declare const fetchGuidePages: (guidePages: string[], generators: NxGeneratorInfo[], packageManager?: string, snippetContentProvider?: SnippetContentProvider) => Promise<string>;
94
+ export declare const fetchGuidePages: (guidePages: string[], generators: NxGeneratorInfo[], packageManager?: string, snippetContentProvider?: SnippetContentProvider, options?: Record<string, string>) => Promise<string>;
20
95
  /**
21
96
  * A function which retrieves snippet content given a snippet name.
22
97
  */
23
98
  export type SnippetContentProvider = (snippetName: string) => Promise<string> | string;
24
99
  /**
25
- * Fetch a snippet's content from github
100
+ * Fetch a snippet's content. Tries the local repo checkout first (when
101
+ * running under `mcp-inspect` or a linked test workspace) before falling
102
+ * back to the copy on `main`.
26
103
  */
27
104
  export declare const fetchSnippet: SnippetContentProvider;
28
105
  /**
29
- * Post-process a guide page to "inline" relevant components
106
+ * Post-process a guide page. Thin wrapper around the unified/remark-mdx
107
+ * pipeline in `guide-pipeline.ts` — the real work (snippet inlining,
108
+ * OptionFilter/Infrastructure/TabItem filtering, command/schema rendering)
109
+ * happens there. Kept under the same name so other packages
110
+ * (e.g. the docs site's `markdown-content.astro`) can continue importing
111
+ * `postProcessGuide` with the same signature.
30
112
  */
31
- export declare const postProcessGuide: (guide: string, generators: NxGeneratorInfo[], packageManager?: string, snippetContentProvider?: SnippetContentProvider) => Promise<string>;
113
+ export declare const postProcessGuide: (guide: string, generators: NxGeneratorInfo[], packageManager?: string, snippetContentProvider?: SnippetContentProvider, options?: Record<string, string>) => Promise<string>;