@nexus-cortex/server 4.127.0 → 4.128.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.
- package/.cortex/orient +5 -3
- package/package.json +3 -3
package/.cortex/orient
CHANGED
|
@@ -76,9 +76,11 @@ echo "-- tooling:${TI:- (no python/node on PATH)} | have:${HAVE:- none} | missin
|
|
|
76
76
|
# installed; sgrep (semantic + lexical hybrid over code passages) when the harness bin dir or the box cache put it on PATH. One line, only
|
|
77
77
|
# when something is there — absent = no output (byte-identical).
|
|
78
78
|
SRCH=""
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
# 2026-10-18 (sgrep-vs-ripgrep evaluation, research/sgrep-bench): terse identifier-like queries out-rank prose; -n costs nothing (embedding
|
|
80
|
+
# dominates) so -n 5 is the floor; rank 1 is right ~40% / top-5 ~80%, and the --explain fused-score GAP says which case you are in.
|
|
81
|
+
command -v rg >/dev/null 2>&1 && SRCH="$SRCH rg for an exact token: a name, a string literal or a regex you already have (rg -n PATTERN DIR; rg -l; rg --type py)"
|
|
82
|
+
command -v sgrep >/dev/null 2>&1 && SRCH="$SRCH${SRCH:+;} sgrep is SEMANTIC search: use it whenever your query is a meaning - what the code does, a behavior, an intent, a question in plain words - rather than an exact token; write 2-5 identifier-like terms for that meaning: sgrep -n 5 --json --explain \"terms\" DIR (one directory per call; several roots: rg --json PATTERN ROOTS | sgrep --stdin \"terms\" PARENT, where PARENT contains every root), then rg the symbols from its top hits; a large fused-score gap means trust rank 1, a flat spread means read ranks 2-5"
|
|
83
|
+
[ -n "$SRCH" ] && echo "-- search:${SRCH}; prefer these over find|grep chains; read the hit before asserting."
|
|
82
84
|
# orient v2: the baseline the judge's workspace delta is computed against — know it before editing.
|
|
83
85
|
if [ "$V2" != "1" ]; then :
|
|
84
86
|
elif command -v git >/dev/null 2>&1 && git -C "$W" rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-cortex/server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.128.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.
|
|
24
|
-
"@nexus-cortex/executors": "4.
|
|
23
|
+
"@nexus-cortex/core": "4.128.0",
|
|
24
|
+
"@nexus-cortex/executors": "4.128.0",
|
|
25
25
|
"chalk": "^5.3.0",
|
|
26
26
|
"cors": "^2.8.5",
|
|
27
27
|
"dotenv": "^16.4.5",
|