Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,458 changes: 2,289 additions & 3,169 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@
},
"devDependencies": {
"@apollo/server": "^5.5.1",
"@graphql-tools/schema": "^10.0.33",
"@graphql-tools/schema": "^10.1.0",
"@grpc/grpc-js": "^1.14.4",
"@grpc/proto-loader": "^0.8.1",
"@playwright/test": "^1.60.0",
"@vitest/coverage-v8": "^4.1.10",
"@eslint/js": "^9.0.0",
"@playwright/test": "^1.62.1",
"@vitest/coverage-v8": "^4.1.11",
"@eslint/js": "^10.0.1",
"cors": "^2.8.6",
"eslint": "^9.0.0",
"eslint": "^10.9.1",
"express": "^5.2.1",
"graphql-ws": "^6.0.8",
"globals": "^16.0.0",
"prettier": "^3.5.0",
"tsx": "^4.22.3",
"turbo": "^2.5.0",
"typescript": "^5.8.0",
"typescript-eslint": "^8.0.0",
"graphql-ws": "^6.2.1",
"globals": "^17.11.0",
"prettier": "^3.9.6",
"tsx": "^4.23.12",
"turbo": "^2.10.12",
"typescript": "^5.9.3",
"typescript-eslint": "^8.68.0",
"vitest": "^4.1.10",
"ws": "^8.21.0"
"ws": "^8.21.3"
},
"packageManager": "npm@10.0.0",
"engines": {
Expand Down
16 changes: 8 additions & 8 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
"@cortex-docs/core": "0.1.6",
"@cortex-docs/docs-ui": "0.1.6",
"@cortex-docs/mcp-gen": "0.1.6",
"@nestjs/common": "^11.0.0",
"@nestjs/core": "^11.0.0",
"chalk": "^5.4.0",
"js-yaml": "^4.3.1",
"@nestjs/common": "^11.2.3",
"@nestjs/core": "^11.2.3",
"chalk": "^6.0.0",
"js-yaml": "^5.4.1",
"nest-commander": "^3.20.0",
"ora": "^8.2.0",
"ora": "^9.4.1",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.0"
},
Expand All @@ -65,10 +65,10 @@
"@cortex-docs/docs-ui"
],
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/node": "^22.0.0",
"@types/glob": "^9.0.0",
"@types/node": "^26.4.0",
"nest-commander-testing": "^3.5.0",
"typescript": "^5.8.0",
"typescript": "^5.9.3",
"vitest": "^4.1.10"
}
}
2 changes: 2 additions & 0 deletions packages/cli/src/commands/docs/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export function resolveDocsUiPath(): string {
`Cannot find the Cortex Docs UI runtime. Reinstall @cortex-docs/cli. ${
error instanceof Error ? error.message : String(error)
}`,
{ cause: error },
);
}
}
Expand All @@ -105,6 +106,7 @@ export function resolveNextBin(docsUiPath: string): string {
`Cannot find the Next.js runtime for Cortex Docs. Reinstall @cortex-docs/cli. ${
error instanceof Error ? error.message : String(error)
}`,
{ cause: error },
);
}
}
2 changes: 1 addition & 1 deletion packages/cli/src/commands/generate/generate.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export class GenerateCommand extends CommandRunner {
totalFiles: 0,
protocols: [],
langDir: langConfig.output_dir,
error: err.message,
error: err instanceof Error ? err.message : String(err),
}),
);
worker.on('exit', (code) => {
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/commands/publish/registry-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ async function fetchRegistry(
} catch (error) {
throw new Error(
`Registry lookup failed for ${url}: ${error instanceof Error ? error.message : String(error)}`,
{ cause: error },
);
}
if (response.status === 404) return undefined;
Expand Down
8 changes: 4 additions & 4 deletions packages/codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
},
"dependencies": {
"@cortex-docs/core": "0.1.6",
"eta": "^3.5.0",
"graphql": "^16.14.0",
"js-yaml": "^4.3.1"
"eta": "^4.6.0",
"graphql": "^17.0.2",
"js-yaml": "^5.4.1"
},
"devDependencies": {
"typescript": "^5.8.0",
"typescript": "^5.9.3",
"vitest": "^4.1.10"
}
}
10 changes: 5 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@
"clean": "rm -rf dist"
},
"dependencies": {
"@apidevtools/swagger-parser": "^10.1.1",
"graphql": "^16.14.0",
"js-yaml": "^4.3.1",
"@apidevtools/swagger-parser": "^12.1.0",
"graphql": "^17.0.2",
"js-yaml": "^5.4.1",
"openapi-types": "^12.1.3",
"zod": "^3.25.0"
"zod": "^4.4.3"
},
"devDependencies": {
"@types/js-yaml": "^4.0.9",
"typescript": "^5.8.0",
"typescript": "^5.9.3",
"vitest": "^4.1.10"
}
}
13 changes: 2 additions & 11 deletions packages/core/src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ export type SupportedLanguage =
| 'c';

export type SourceType =
| 'openapi-spec'
| 'asyncapi-spec'
| 'graphql-spec'
| 'grpc-spec'
| 'openrpc-spec';
'openapi-spec' | 'asyncapi-spec' | 'graphql-spec' | 'grpc-spec' | 'openrpc-spec';

export interface PublishGitHubConfig {
/** Set to false to disable this GitHub destination. */
Expand Down Expand Up @@ -66,12 +62,7 @@ export interface SourceLanguageConfig {
}

export type JsonValue =
| string
| number
| boolean
| null
| JsonValue[]
| { [key: string]: JsonValue };
string | number | boolean | null | JsonValue[] | { [key: string]: JsonValue };

export interface WebSocketHeartbeatFlowConfig {
/** Message sent by this side of the connection. */
Expand Down
6 changes: 2 additions & 4 deletions packages/core/src/openapi/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ export class OpenAPIParser {
if (!pathItem) continue;
for (const method of HTTP_METHODS) {
const op = (pathItem as Record<string, unknown>)[method] as
| Record<string, unknown>
| undefined;
Record<string, unknown> | undefined;
if (!op) continue;
if (!op['operationId']) {
warnings.push({
Expand Down Expand Up @@ -158,8 +157,7 @@ export class OpenAPIParser {

for (const method of HTTP_METHODS) {
const op = (pathItem as Record<string, unknown>)[method] as
| OpenAPIV3_1.OperationObject
| undefined;
OpenAPIV3_1.OperationObject | undefined;
if (!op) continue;

const opRecord = op as unknown as Record<string, unknown>;
Expand Down
8 changes: 4 additions & 4 deletions packages/demo-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"clean": "rm -rf .wrangler dist coverage wrangler.static.production.jsonc"
},
"dependencies": {
"graphql": "^16.14.0"
"graphql": "^17.0.2"
},
"devDependencies": {
"@cloudflare/workers-types": "^5.20260823.1",
"typescript": "^5.8.0",
"@cloudflare/workers-types": "^5.20260828.1",
"typescript": "^5.9.3",
"vitest": "^4.1.10",
"wrangler": "^4.86.0"
"wrangler": "^4.127.0"
}
}
3 changes: 1 addition & 2 deletions packages/docs-ui/app/api/sdk-snippets/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -800,8 +800,7 @@ export async function GET() {
}
}
const globalSecurity = (spec.raw as any).security as
| Array<Record<string, string[]>>
| undefined;
Array<Record<string, string[]>> | undefined;

// Read intro
let intro: string | undefined;
Expand Down
96 changes: 48 additions & 48 deletions packages/docs-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,84 +57,84 @@
"clean": "rm -rf .next .next-build .next-cloudflare .open-next .cortex-demo .cortex-docs-site"
},
"dependencies": {
"@base-ui/react": "^1.5.0",
"@base-ui/react": "^1.7.0",
"@cortex-docs/codegen": "0.1.6",
"@cortex-docs/core": "0.1.6",
"@cortex-docs/mcp-gen": "0.1.6",
"@radix-ui/react-accordion": "^1.2.12",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-aspect-ratio": "^1.1.8",
"@radix-ui/react-avatar": "^1.1.11",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-accordion": "^1.2.20",
"@radix-ui/react-alert-dialog": "^1.1.23",
"@radix-ui/react-aspect-ratio": "^1.1.15",
"@radix-ui/react-avatar": "^1.2.6",
"@radix-ui/react-checkbox": "^1.3.11",
"@radix-ui/react-collapsible": "^1.1.12",
"@radix-ui/react-context-menu": "^2.2.16",
"@radix-ui/react-context-menu": "^2.3.7",
"@radix-ui/react-dialog": "^1.1.0",
"@radix-ui/react-direction": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-hover-card": "^1.1.15",
"@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-menubar": "^1.1.16",
"@radix-ui/react-navigation-menu": "^1.2.14",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-progress": "^1.1.8",
"@radix-ui/react-radio-group": "^1.3.8",
"@radix-ui/react-scroll-area": "^1.2.0",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slider": "^1.3.6",
"@radix-ui/react-direction": "^1.1.4",
"@radix-ui/react-dropdown-menu": "^2.1.24",
"@radix-ui/react-hover-card": "^1.1.23",
"@radix-ui/react-label": "^2.1.15",
"@radix-ui/react-menubar": "^1.1.24",
"@radix-ui/react-navigation-menu": "^1.2.22",
"@radix-ui/react-popover": "^1.1.23",
"@radix-ui/react-progress": "^1.1.16",
"@radix-ui/react-radio-group": "^1.4.7",
"@radix-ui/react-scroll-area": "^1.2.18",
"@radix-ui/react-select": "^2.3.7",
"@radix-ui/react-separator": "^1.1.15",
"@radix-ui/react-slider": "^1.4.7",
"@radix-ui/react-slot": "^1.2.0",
"@radix-ui/react-switch": "^1.2.6",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-toggle": "^1.1.10",
"@radix-ui/react-toggle-group": "^1.1.11",
"@radix-ui/react-tooltip": "^1.1.0",
"@scalar/api-reference-react": "^0.9.61",
"@tailwindcss/postcss": "^4.1.0",
"@radix-ui/react-switch": "^1.3.7",
"@radix-ui/react-tabs": "^1.1.21",
"@radix-ui/react-toggle": "^1.1.18",
"@radix-ui/react-toggle-group": "^1.1.19",
"@radix-ui/react-tooltip": "^1.2.16",
"@scalar/api-reference-react": "^0.9.66",
"@tailwindcss/postcss": "^4.3.3",
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@types/node": "^26.4.0",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.5",
"@types/sanitize-html": "^2.16.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.0",
"cmdk": "^1.1.0",
"date-fns": "^4.3.0",
"date-fns": "^4.4.0",
"embla-carousel-autoplay": "^8.6.0",
"embla-carousel-react": "^8.6.0",
"geist": "^1.4.0",
"highlight.js": "^11.11.1",
"input-otp": "^1.4.2",
"js-yaml": "^4.3.1",
"lucide-react": "^0.500.0",
"geist": "^1.7.2",
"highlight.js": "^11.12.0",
"input-otp": "^1.5.0",
"js-yaml": "^5.4.1",
"lucide-react": "^1.35.0",
"minisearch": "^7.2.0",
"next": "^16.3.0",
"next": "^16.3.3",
"postcss": "^8.5.26",
"react": "^19.0.0",
"react": "^19.2.8",
"react-day-picker": "^10.0.1",
"react-dom": "^19.0.0",
"react-resizable-panels": "^4.11.2",
"recharts": "^3.8.1",
"react-dom": "^19.2.8",
"react-resizable-panels": "^4.12.3",
"recharts": "^3.10.1",
"rehype-highlight": "^7.0.2",
"rehype-sanitize": "^6.0.0",
"rehype-pretty-code": "^0.14.3",
"rehype-pretty-code": "^0.14.5",
"rehype-slug": "^6.0.0",
"rehype-stringify": "^10.0.1",
"remark-gfm": "^4.0.1",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.2",
"sanitize-html": "^2.17.0",
"shiki": "^4.1.0",
"sonner": "^2.0.7",
"sanitize-html": "^2.17.7",
"shiki": "^4.4.3",
"sonner": "^2.0.8",
"tailwind-merge": "^3.3.0",
"tailwindcss": "^4.1.0",
"typescript": "^5.8.0",
"typescript": "^5.9.3",
"unified": "^11.0.5",
"vaul": "^1.1.2"
},
"devDependencies": {
"@opennextjs/cloudflare": "^1.20.2",
"@opennextjs/cloudflare": "^1.20.4",
"cross-env": "^10.0.0",
"vitest": "^4.1.10",
"wrangler": "^4.86.0"
"wrangler": "^4.127.0"
}
}
2 changes: 1 addition & 1 deletion packages/docs-ui/scripts/dev.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { existsSync, mkdirSync, readFileSync, readdirSync, watch, writeFileSync
import { connect } from 'node:net';
import { resolve, join, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import yaml from 'js-yaml';
import * as yaml from 'js-yaml';

const __dirname = dirname(fileURLToPath(import.meta.url));
const DOCS_UI_DIR = resolve(__dirname, '..');
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-ui/scripts/prepare-demo.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { cpSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
import { dirname, join, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import yaml from 'js-yaml';
import * as yaml from 'js-yaml';

const scriptDir = dirname(fileURLToPath(import.meta.url));
const docsUiDir = resolve(scriptDir, '..');
Expand Down
4 changes: 2 additions & 2 deletions packages/mcp-gen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
},
"dependencies": {
"@cortex-docs/core": "0.1.6",
"eta": "^3.5.0"
"eta": "^4.6.0"
},
"devDependencies": {
"typescript": "^5.8.0",
"typescript": "^5.9.3",
"vitest": "^4.1.10"
}
}