@equinor/fusion-framework-cli 13.0.0-cli-search-index.4 → 13.0.0-cli-search-index.5

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.
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '13.0.0-cli-search-index.4';
2
+ export const version = '13.0.0-cli-search-index.5';
3
3
  //# sourceMappingURL=version.js.map
@@ -1,20 +1,20 @@
1
1
  import type { SourceFile } from '../types.js';
2
2
  import type { MarkdownDocument } from './types.js';
3
3
  /**
4
- * Check if a file is a markdown file
4
+ * Check if a file is a markdown or MDX file
5
5
  * @param filePath - File path to check
6
- * @returns True if file has .md extension
6
+ * @returns True if file has .md or .mdx extension
7
7
  */
8
8
  export declare const isMarkdownFile: (filePath: string) => boolean;
9
9
  /**
10
- * Parse markdown content into document chunks
11
- * @param content - Markdown content string
10
+ * Parse markdown or MDX content into document chunks
11
+ * @param content - Markdown or MDX content string
12
12
  * @param source - Source file path
13
13
  * @returns Array of markdown documents
14
14
  */
15
15
  export declare const parseMarkdown: <T extends Record<string, unknown> = Record<string, unknown>>(content: string, source: string) => Promise<MarkdownDocument<T>[]>;
16
16
  /**
17
- * Parse a markdown file into document chunks
17
+ * Parse a markdown or MDX file into document chunks
18
18
  * @param file - Source file object
19
19
  * @returns Array of markdown documents with root path metadata
20
20
  */
@@ -1 +1 @@
1
- export declare const version = "13.0.0-cli-search-index.4";
1
+ export declare const version = "13.0.0-cli-search-index.5";
@@ -228,7 +228,7 @@ ffc ai embeddings --diff --base-ref origin/main ./src
228
228
  ffc ai embeddings --clean ./src
229
229
 
230
230
  # Process specific file patterns
231
- ffc ai embeddings "packages/**/*.ts" "docs/**/*.md"
231
+ ffc ai embeddings "packages/**/*.ts" "docs/**/*.md" "docs/**/*.mdx"
232
232
 
233
233
  # Use custom config file
234
234
  ffc ai embeddings --config ./custom-ai.config.ts ./src
@@ -242,7 +242,7 @@ The `--diff` flag is particularly useful for CI/CD pipelines. See the [CI/CD Int
242
242
 
243
243
  The command processes two types of files:
244
244
 
245
- 1. **Markdown Files** (`.md`):
245
+ 1. **Markdown/MDX Files** (`.md`, `.mdx`):
246
246
  - Extracts frontmatter metadata
247
247
  - Chunks content based on headers and structure
248
248
  - Preserves document hierarchy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-cli",
3
- "version": "13.0.0-cli-search-index.4",
3
+ "version": "13.0.0-cli-search-index.5",
4
4
  "keywords": [
5
5
  "Fusion",
6
6
  "Fusion Framework",
@@ -157,8 +157,8 @@
157
157
  "@equinor/fusion-framework-module": "5.0.6-cli-search-index.0",
158
158
  "@equinor/fusion-framework-module-ai": "1.1.0-cli-search-index.0",
159
159
  "@equinor/fusion-framework-module-app": "7.1.1-cli-search-index.0",
160
- "@equinor/fusion-framework-module-service-discovery": "9.0.5-cli-search-index.0",
161
- "@equinor/fusion-framework-module-http": "7.0.6-cli-search-index.0"
160
+ "@equinor/fusion-framework-module-http": "7.0.6-cli-search-index.0",
161
+ "@equinor/fusion-framework-module-service-discovery": "9.0.5-cli-search-index.0"
162
162
  },
163
163
  "peerDependenciesMeta": {
164
164
  "typescript": {