Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,14 @@ repos:
files: ^nemoclaw/
priority: 20

- id: source-shape-test-budget
name: Source-shape test budget
entry: npm run source-shape:check
language: system
pass_filenames: false
files: ^(test/|scripts/find-source-shape-tests\.ts$|ci/source-shape-test-budget\.json$)
priority: 20

- id: test-skills-yaml
name: Test (skills YAML)
entry: npx vitest run test/skills-frontmatter.test.ts
Expand Down
3 changes: 3 additions & 0 deletions ci/source-shape-test-budget.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"maxSourceShapeCases": 0
}
1 change: 1 addition & 0 deletions nemoclaw/src/blueprint/runner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ describe("runner", () => {
);
if (!providerCall) throw new Error("provider create call not found");
expect(providerCall[2].env.OPENAI_API_KEY).toBe("secret-key-123");
expect(providerCall[2].env.MY_API_KEY).toBeUndefined();
// Args pass the env var NAME, not the value
expect(providerCall[1]).toContain("--credential");
expect(providerCall[1]).toContain("OPENAI_API_KEY");
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"ts-migration:bulk-fix-prs": "tsx scripts/ts-migration-bulk-fix-prs.ts",
"ts-migration:guard": "tsx scripts/check-legacy-migrated-paths.ts",
"type-safety:hotspots": "tsx scripts/type-safety-hotspots.ts",
"source-shape:scan": "tsx scripts/find-source-shape-tests.ts --metrics",
"source-shape:check": "tsx scripts/find-source-shape-tests.ts --check",
"bump:version": "tsx scripts/bump-version.ts",
"prepare": "if command -v tsc >/dev/null 2>&1 || [ -x node_modules/.bin/tsc ]; then npm run build:cli; fi && (npm install --omit=dev --ignore-scripts 2>/dev/null || true) && if [ -d .git ]; then bash scripts/npm-link-or-shim.sh; if command -v prek >/dev/null 2>&1; then prek install; else echo \"Skipping git hook setup (prek not installed)\"; fi; fi",
"prepublishOnly": "git describe --tags --match 'v*' | sed 's/^v//' > .version && test -s .version && cd nemoclaw && env -u npm_config_global -u npm_config_prefix -u npm_config_omit npm install --ignore-scripts && ./node_modules/.bin/tsc"
Expand Down
Loading
Loading