@nexus-cortex/server 4.60.2 → 4.61.0

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.
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "id": "p2h-refactor-discount",
4
+ "taskType": "T2",
5
+ "prompt": "In the project at /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p2-tool-profile (run `git -C /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p2-tool-profile checkout -- .` first, then re-apply the known fixes: loop bound < and pct/100), refactor src/inventory.js to add a new exported function netTotal(items, pct) that composes totalValue and applyDiscount, update src/report.js to ALSO print {\"net\": netTotal(items, 20)} on a second line, run it, and reply with both output lines.",
6
+ "verifier": { "type": "contains", "all": ["\"discounted\":40", "\"net\":40"], "caseInsensitive": true }
7
+ },
8
+ {
9
+ "id": "p2h-harness-usage-trace",
10
+ "taskType": "T3",
11
+ "prompt": "In this repository, packages/core/src/adapters/GatewayTranslationLayer.ts extracts token usage. Report: (1) the exact interface field that carries tokens read from cache, (2) which provider convention EXCLUDES cached tokens from its reported input_tokens (name the provider), (3) the field name added 2026-08 that carries reasoning token counts. Cite exact identifiers.",
12
+ "verifier": { "type": "contains", "all": ["cacheReadTokens", "anthropic", "reasoningTokens"], "caseInsensitive": true }
13
+ }
14
+ ]
@@ -0,0 +1,26 @@
1
+ [
2
+ {
3
+ "id": "p2-debug-fix-inventory",
4
+ "taskType": "T2",
5
+ "prompt": "The Node project at /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p2-tool-profile has a bug: `node src/report.js` crashes. First run `git -C /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p2-tool-profile checkout -- .` to reset the fixture. Then find and FIX all bugs in src/inventory.js so report.js prints the mathematically correct result for the data in src/report.js (a 20% discount means the customer pays 80%). Actually edit the file, run report.js to verify, and reply with the final JSON line it prints.",
6
+ "verifier": { "type": "contains", "all": ["\"total\":50", "\"discounted\":40"], "caseInsensitive": true }
7
+ },
8
+ {
9
+ "id": "p2-multifile-trace",
10
+ "taskType": "T3",
11
+ "prompt": "In this repository, trace the CORTEX_TOOL_PROFILE feature end to end and report: (1) the exact function name that filters a tool list by profile, (2) the file where the filter is applied inside getAllTools, (3) the two tool names that are ALWAYS retained regardless of profile, (4) the field name stamped into decision records for the active profile. Cite exact identifiers.",
12
+ "verifier": { "type": "contains", "all": ["applyToolProfile", "ToolFactory", "EndTurn", "AskUserQuestion", "toolProfile"], "caseInsensitive": false }
13
+ },
14
+ {
15
+ "id": "p2-write-tested-util",
16
+ "taskType": "T2",
17
+ "prompt": "In the project at /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p2-tool-profile, create a new file src/median.js exporting a function median(nums) that returns the median of a numeric array (average of two middles for even length; throw a TypeError on empty input). Then create src/median.test.js that requires it and asserts median([1,3,2])===2, median([1,2,3,4])===2.5, and that median([]) throws — printing PASS for each assertion that holds and FAIL otherwise, using plain Node (no test framework). Run it with node and reply with the full test output.",
18
+ "verifier": { "type": "regex", "pattern": "PASS[\\s\\S]*PASS[\\s\\S]*PASS" }
19
+ },
20
+ {
21
+ "id": "p2-cross-module-count",
22
+ "taskType": "T3",
23
+ "prompt": "Across packages/core/src/training in this repository, determine: (1) which file computes the FWER-adjusted alpha threshold and the exact function name, (2) which file auto-stamps experimentTag from CORTEX_EXPERIMENT_TAG into benchmark records, (3) the name of the verdict field that reports distinct task families. Cite exact identifiers.",
24
+ "verifier": { "type": "contains", "all": ["mcFwerThreshold", "AutoResearchStats", "ModelRouterMatrix", "familiesCovered"], "caseInsensitive": false }
25
+ }
26
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cortex/server",
3
- "version": "4.60.2",
3
+ "version": "4.61.0",
4
4
  "description": "Thin Express server wrapper for Nexus Cortex core library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,8 +20,8 @@
20
20
  "prepack": "node ../../scripts/copy-pkg-cortex-scaffold.mjs"
21
21
  },
22
22
  "dependencies": {
23
- "@nexus-cortex/core": "4.60.2",
24
- "@nexus-cortex/executors": "4.60.2",
23
+ "@nexus-cortex/core": "4.61.0",
24
+ "@nexus-cortex/executors": "4.61.0",
25
25
  "chalk": "^5.3.0",
26
26
  "cors": "^2.8.5",
27
27
  "dotenv": "^16.4.5",