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
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci --ignore-scripts
- run: npm run build
- run: npm run verify:types
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 24.18.0
cache: npm
registry-url: https://npm.pkg.github.com
- run: npm ci --ignore-scripts
- run: npm run verify:all
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/supply-chain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 24.18.0
cache: npm
- run: npm ci --ignore-scripts
- run: npm sbom --sbom-format cyclonedx > sbom.cdx.json
- run: sha256sum sbom.cdx.json > sbom.sha256
Expand Down
239 changes: 86 additions & 153 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"lint": "eslint src/",
"verify:types": "tsc --noEmit",
"verify:package": "node scripts/verify-package.mjs",
"verify:all": "npm run build && npm run verify:types && npm run lint && npm run lint:boundary && npm test && npm audit --audit-level=high --omit=dev && npm run verify:package",
"verify:all": "npm run build && npm run verify:types && npm run verify:declarations && npm run lint && npm run lint:boundary && npm test && npm audit --audit-level=high --omit=dev && npm run verify:package",
"test:inventory": "node scripts/test-inventory.mjs",
"lint:boundary": "node scripts/verify-eslint-boundary.mjs"
"lint:boundary": "node scripts/verify-eslint-boundary.mjs",
"verify:declarations": "npm run build && tsc -p scripts/fixtures/declaration-consumer/tsconfig.json"
},
"keywords": [
"llm",
Expand All @@ -40,7 +41,7 @@
"@eslint/js": "^10.0.1",
"@types/node": "^20.19.43",
"eslint": "^10.7.0",
"typescript": "^5.5.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.64.0",
"vitest": "^4.1.10"
},
Expand Down
10 changes: 10 additions & 0 deletions scripts/fixtures/declaration-consumer/consumer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { L9LLMRouter, TaskComplexity, TaskType, type TaskDescriptor } from '../../../dist/index.js';
import { OpenRouterClient } from '../../../dist/providers/openrouter.js';
import { PerplexityClient } from '../../../dist/providers/perplexity.js';
import { VIEWPORTS } from '../../../dist/vision/index.js';

const task: TaskDescriptor = { type: TaskType.CLASSIFICATION, complexity: TaskComplexity.LOW, clientId: 'fixture' };
const router: L9LLMRouter | undefined = undefined;
const openrouter: OpenRouterClient | undefined = undefined;
const perplexity: PerplexityClient | undefined = undefined;
void task; void router; void openrouter; void perplexity; void VIEWPORTS;

Check failure on line 10 in scripts/fixtures/declaration-consumer/consumer.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this use of the "void" operator.

See more on https://sonarcloud.io/project/issues?id=Quantum-L9_LLM-Router&issues=AZ-HpLxGTT3oTzaHPVFB&open=AZ-HpLxGTT3oTzaHPVFB&pullRequest=13

Check failure on line 10 in scripts/fixtures/declaration-consumer/consumer.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this use of the "void" operator.

See more on https://sonarcloud.io/project/issues?id=Quantum-L9_LLM-Router&issues=AZ-HpLxGTT3oTzaHPVFE&open=AZ-HpLxGTT3oTzaHPVFE&pullRequest=13

Check failure on line 10 in scripts/fixtures/declaration-consumer/consumer.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this use of the "void" operator.

See more on https://sonarcloud.io/project/issues?id=Quantum-L9_LLM-Router&issues=AZ-HpLxGTT3oTzaHPVFA&open=AZ-HpLxGTT3oTzaHPVFA&pullRequest=13

Check failure on line 10 in scripts/fixtures/declaration-consumer/consumer.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this use of the "void" operator.

See more on https://sonarcloud.io/project/issues?id=Quantum-L9_LLM-Router&issues=AZ-HpLxGTT3oTzaHPVFD&open=AZ-HpLxGTT3oTzaHPVFD&pullRequest=13

Check failure on line 10 in scripts/fixtures/declaration-consumer/consumer.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this use of the "void" operator.

See more on https://sonarcloud.io/project/issues?id=Quantum-L9_LLM-Router&issues=AZ-HpLxGTT3oTzaHPVFC&open=AZ-HpLxGTT3oTzaHPVFC&pullRequest=13
11 changes: 11 additions & 0 deletions scripts/fixtures/declaration-consumer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": true,
"skipLibCheck": false,
"noEmit": true
},
"include": ["consumer.ts"]
}
9 changes: 6 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"lib": ["ES2022"],
"types": ["node"],
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"verbatimModuleSyntax": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"resolveJsonModule": true
"resolveJsonModule": true,
"noImplicitOverride": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "tests"]
Expand Down
Loading