Skip to content

Commit cea4330

Browse files
dkalinovInfraCopilotCopilot
authored
fix(docs): update mcp db with full set of documents (#1767)
* fix(docs): update mcp db with full set of documents * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * docs(mcp): correct default compress model Co-authored-by: dkalinovInfra <130121354+dkalinovInfra@users.noreply.github.com> * docs(mcp): align react compress example model Co-authored-by: dkalinovInfra <130121354+dkalinovInfra@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent dc6e1fe commit cea4330

11 files changed

Lines changed: 23 additions & 16 deletions

File tree

-8.52 MB
Binary file not shown.

packages/igniteui-mcp/igniteui-doc-mcp/DEVELOPMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ npm run compress:blazor
290290

291291
| Parameter | Description | Default |
292292
|-----------|-------------|---------|
293-
| `--model <name>` | OpenAI model to use | `gpt-5.4-mini` |
293+
| `--model <name>` | OpenAI model to use | `gpt-5.6-luna` |
294294
| `--api-base <url>` | Custom OpenAI API base URL | OpenAI default |
295295
| `--min-size <kb>` | Skip files smaller than this (KB) | `0` |
296296
| `--delay <seconds>` | Delay between API calls | `0.5` |
@@ -328,7 +328,7 @@ npm run compress:react -- --batch poll # Step 2: poll, download & va
328328
npm run compress:react -- --batch retry # Step 3: retry failed/invalid files (optional)
329329

330330
# Batch with filters
331-
npm run compress:react -- --batch submit --only grid.md --model gpt-5.4-mini
331+
npm run compress:react -- --batch submit --only grid.md --model gpt-5.6-luna
332332

333333
# Incremental mode (only compress changed files from diff manifest)
334334
npm run compress:angular -- --manifest dist/diff-manifest.json
-8.52 MB
Binary file not shown.

packages/igniteui-mcp/igniteui-doc-mcp/docs_baseline/angular/excel-library-using-cells.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { IgxExcelModule } from "igniteui-angular-excel";
4242
export class AppModule {}
4343
```
4444
```typescript
45-
import { Component, ComponentFactoryResolver, Injector, OnInit, ViewChild, ViewContainerRef } from "@angular/core";
45+
import { Component, OnInit, ViewChild, ViewContainerRef } from "@angular/core";
4646
import { CellReferenceMode } from "igniteui-angular-excel";
4747
import { WorksheetMergedCellsRegion } from "igniteui-angular-excel";
4848
import { FormattedString } from "igniteui-angular-excel";
@@ -70,7 +70,7 @@ export class AppComponent implements OnInit {
7070
public selectedRegion: string;
7171
public cellFeatures: string[];
7272

73-
constructor(private resolver: ComponentFactoryResolver, private injector: Injector) {
73+
constructor() {
7474
}
7575

7676
public ngOnInit() {

packages/igniteui-mcp/igniteui-doc-mcp/docs_baseline/angular/excel-library-using-workbooks.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import { IgxExcelModule } from "igniteui-angular-excel";
4545
export class AppModule {}
4646
```
4747
```typescript
48-
import { Component, ComponentFactoryResolver, Injector, OnInit, ViewChild, ViewContainerRef } from "@angular/core";
48+
import { Component, OnInit, ViewChild, ViewContainerRef } from "@angular/core";
4949
import { IgxGridComponent } from "igniteui-angular";
5050
import { TextFormatMode } from "igniteui-angular-excel";
5151
import { Workbook } from "igniteui-angular-excel";
@@ -68,7 +68,7 @@ export class AppComponent implements OnInit {
6868
public worksheetTables: string[];
6969
public selectedTable: string;
7070

71-
constructor(private resolver: ComponentFactoryResolver, private injector: Injector) {
71+
constructor() {
7272
}
7373

7474
public ngOnInit() {
@@ -260,8 +260,7 @@ export class AppComponent implements OnInit {
260260
data.push(row);
261261
}
262262

263-
const gridFactory = this.resolver.resolveComponentFactory(IgxGridComponent);
264-
const gridRef = this.gridContainerRef.createComponent(gridFactory);
263+
const gridRef = this.gridContainerRef.createComponent(IgxGridComponent);
265264
gridRef.instance.autoGenerate = true;
266265
gridRef.instance.data = data;
267266
}

packages/igniteui-mcp/igniteui-doc-mcp/docs_baseline/angular/excel-library.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import { IgxExcelModule } from "igniteui-angular-excel";
3737
export class AppModule {}
3838
```
3939
```typescript
40-
import { Component, ComponentFactoryResolver, Injector, OnInit } from "@angular/core";
40+
import { Component, OnInit } from "@angular/core";
4141
import { Workbook } from "igniteui-angular-excel";
4242
import { WorkbookFormat } from "igniteui-angular-excel";
4343
import { ExcelUtility } from "./ExcelUtility";
@@ -55,7 +55,7 @@ export class AppComponent implements OnInit {
5555
public worksheetTables: string[];
5656
public selectedTable: string;
5757

58-
constructor(private resolver: ComponentFactoryResolver, private injector: Injector) {
58+
constructor() {
5959
}
6060

6161
public ngOnInit() {

packages/igniteui-mcp/igniteui-doc-mcp/scripts/build-db.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,16 @@ function main() {
195195
const backendDbPath = path.resolve("../docs-backend/docs-backend/igniteui-docs.db");
196196
const backendDir = path.dirname(backendDbPath);
197197
if (fs.existsSync(backendDir)) {
198-
fs.copyFileSync(DB_PATH, backendDbPath);
199-
console.log(`Copied DB to ${backendDbPath}`);
198+
try {
199+
fs.copyFileSync(DB_PATH, backendDbPath);
200+
console.log(`Copied DB to ${backendDbPath}`);
201+
} catch (err) {
202+
const message = err instanceof Error ? err.message : String(err);
203+
console.warn(
204+
`Could not copy DB to ${backendDbPath}: ${message}\n` +
205+
`The DB was built and saved successfully — this copy is optional.`
206+
);
207+
}
200208
} else {
201209
console.warn(`Backend dir not found (${backendDir}), skipping copy.`);
202210
}

packages/igniteui-mcp/igniteui-doc-mcp/scripts/compress-angular-docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ interface BatchState {
5656
function parseArgs(): CliArgs {
5757
const args = process.argv.slice(2);
5858
const opts: CliArgs = {
59-
model: "gpt-5.4-mini",
59+
model: "gpt-5.6-luna",
6060
minSize: 0,
6161
dryRun: false,
6262
delay: 0.5,

packages/igniteui-mcp/igniteui-doc-mcp/scripts/compress-blazor-docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ interface BatchState {
5656
function parseArgs(): CliArgs {
5757
const args = process.argv.slice(2);
5858
const opts: CliArgs = {
59-
model: "gpt-5.4-mini",
59+
model: "gpt-5.6-luna",
6060
minSize: 0,
6161
dryRun: false,
6262
delay: 0.5,

packages/igniteui-mcp/igniteui-doc-mcp/scripts/compress-react-docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ interface BatchState {
5656
function parseArgs(): CliArgs {
5757
const args = process.argv.slice(2);
5858
const opts: CliArgs = {
59-
model: "gpt-5.4-mini",
59+
model: "gpt-5.6-luna",
6060
minSize: 0,
6161
dryRun: false,
6262
delay: 0.5,

0 commit comments

Comments
 (0)