@nexus-cortex/core 4.63.10 → 4.66.1
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/dist/config/RuntimeConfigRegistry.d.ts.map +1 -1
- package/dist/config/RuntimeConfigRegistry.js +1 -0
- package/dist/config/RuntimeConfigRegistry.js.map +1 -1
- package/dist/config/SettingsSchema.js +6 -6
- package/dist/config/SettingsSchema.js.map +1 -1
- package/dist/middleware/SystemMessageMiddleware.d.ts +10 -0
- package/dist/middleware/SystemMessageMiddleware.d.ts.map +1 -1
- package/dist/middleware/SystemMessageMiddleware.js +58 -2
- package/dist/middleware/SystemMessageMiddleware.js.map +1 -1
- package/dist/models/cards/deepseek/deepseek-v4-flash.d.ts.map +1 -1
- package/dist/models/cards/deepseek/deepseek-v4-flash.js +4 -0
- package/dist/models/cards/deepseek/deepseek-v4-flash.js.map +1 -1
- package/dist/models/cards/deepseek/deepseek-v4-pro.d.ts.map +1 -1
- package/dist/models/cards/deepseek/deepseek-v4-pro.js +4 -0
- package/dist/models/cards/deepseek/deepseek-v4-pro.js.map +1 -1
- package/dist/models/configurators/DeepSeekConfigurator.d.ts +2 -0
- package/dist/models/configurators/DeepSeekConfigurator.d.ts.map +1 -1
- package/dist/models/configurators/DeepSeekConfigurator.js +1 -0
- package/dist/models/configurators/DeepSeekConfigurator.js.map +1 -1
- package/dist/orchestrator/APIClient.d.ts +0 -5
- package/dist/orchestrator/APIClient.d.ts.map +1 -1
- package/dist/orchestrator/APIClient.js +74 -9
- package/dist/orchestrator/APIClient.js.map +1 -1
- package/dist/orchestrator/CortexOrchestrator.d.ts +14 -0
- package/dist/orchestrator/CortexOrchestrator.d.ts.map +1 -1
- package/dist/orchestrator/CortexOrchestrator.js +67 -4
- package/dist/orchestrator/CortexOrchestrator.js.map +1 -1
- package/dist/system-messages/promptPresets.d.ts +27 -0
- package/dist/system-messages/promptPresets.d.ts.map +1 -0
- package/dist/system-messages/promptPresets.js +36 -0
- package/dist/system-messages/promptPresets.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Named prompt presets (P6c/P6e/P6f program, 2026-08-18).
|
|
3
|
+
*
|
|
4
|
+
* 'boot-minimal' is the measured winner of the prompt-composition sweeps on
|
|
5
|
+
* BOTH DeepSeek family members (P6c flash 56/56, P6e pro 42/42: −68% input,
|
|
6
|
+
* −37..85% output, equal accuracy vs the full corpus): a ~400-byte system
|
|
7
|
+
* prompt whose one orientation pointer nudges the model to PULL workspace
|
|
8
|
+
* context via its own first tool call (boot-observation — context arrives as
|
|
9
|
+
* observation-mass, not instruction-mass).
|
|
10
|
+
*
|
|
11
|
+
* PORTABILITY NOTE: the benched artifact pointed at a repo-specific orient
|
|
12
|
+
* script. This packaged text is the portable variant: it prefers a
|
|
13
|
+
* project-provided `.cortex/orient` script and falls back to generic
|
|
14
|
+
* orientation. Projects wanting the full measured effect ship their own
|
|
15
|
+
* `.cortex/orient` (see docs/prompts/orient.sh for the reference shape).
|
|
16
|
+
*
|
|
17
|
+
* Resolution order (SystemMessageMiddleware): env CORTEX_PROMPT_MASS /
|
|
18
|
+
* CORTEX_SYSTEM_PROMPT_FILE always win (experiment levers); otherwise a model
|
|
19
|
+
* card's `promptPreset` applies; otherwise full corpus (default unchanged).
|
|
20
|
+
*/
|
|
21
|
+
export type PromptPreset = 'boot-minimal';
|
|
22
|
+
export declare const BOOT_MINIMAL_PROMPT: string;
|
|
23
|
+
/** The static-corpus filter mode a preset implies for the mass partition. */
|
|
24
|
+
export declare function presetMassMode(preset: PromptPreset | undefined): 'minimal' | 'full';
|
|
25
|
+
/** The replacement core system prompt a preset implies (undefined = keep). */
|
|
26
|
+
export declare function presetSystemPrompt(preset: PromptPreset | undefined): string | undefined;
|
|
27
|
+
//# sourceMappingURL=promptPresets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptPresets.d.ts","sourceRoot":"","sources":["../../src/system-messages/promptPresets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC;AAE1C,eAAO,MAAM,mBAAmB,QAOsC,CAAC;AAEvE,6EAA6E;AAC7E,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAEnF;AAED,8EAA8E;AAC9E,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAEvF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Named prompt presets (P6c/P6e/P6f program, 2026-08-18).
|
|
3
|
+
*
|
|
4
|
+
* 'boot-minimal' is the measured winner of the prompt-composition sweeps on
|
|
5
|
+
* BOTH DeepSeek family members (P6c flash 56/56, P6e pro 42/42: −68% input,
|
|
6
|
+
* −37..85% output, equal accuracy vs the full corpus): a ~400-byte system
|
|
7
|
+
* prompt whose one orientation pointer nudges the model to PULL workspace
|
|
8
|
+
* context via its own first tool call (boot-observation — context arrives as
|
|
9
|
+
* observation-mass, not instruction-mass).
|
|
10
|
+
*
|
|
11
|
+
* PORTABILITY NOTE: the benched artifact pointed at a repo-specific orient
|
|
12
|
+
* script. This packaged text is the portable variant: it prefers a
|
|
13
|
+
* project-provided `.cortex/orient` script and falls back to generic
|
|
14
|
+
* orientation. Projects wanting the full measured effect ship their own
|
|
15
|
+
* `.cortex/orient` (see docs/prompts/orient.sh for the reference shape).
|
|
16
|
+
*
|
|
17
|
+
* Resolution order (SystemMessageMiddleware): env CORTEX_PROMPT_MASS /
|
|
18
|
+
* CORTEX_SYSTEM_PROMPT_FILE always win (experiment levers); otherwise a model
|
|
19
|
+
* card's `promptPreset` applies; otherwise full corpus (default unchanged).
|
|
20
|
+
*/
|
|
21
|
+
export const BOOT_MINIMAL_PROMPT = 'You are Cortex, a coding agent working in this workspace through the provided tools. ' +
|
|
22
|
+
'Complete the user\'s task by reading and running real code — never answer from memory ' +
|
|
23
|
+
'when a command can verify. Prefer acting over deliberating. For workspace tasks, orient ' +
|
|
24
|
+
'first: if a `.cortex/orient` script exists, run it via Bash (`sh .cortex/orient`) — its ' +
|
|
25
|
+
'output maps the workspace; otherwise orient with `ls` and the project README as the task ' +
|
|
26
|
+
'warrants. If you did not finish the task, say so plainly — never claim work you have not ' +
|
|
27
|
+
'done. When the task is complete, reply with the final answer only.';
|
|
28
|
+
/** The static-corpus filter mode a preset implies for the mass partition. */
|
|
29
|
+
export function presetMassMode(preset) {
|
|
30
|
+
return preset === 'boot-minimal' ? 'minimal' : 'full';
|
|
31
|
+
}
|
|
32
|
+
/** The replacement core system prompt a preset implies (undefined = keep). */
|
|
33
|
+
export function presetSystemPrompt(preset) {
|
|
34
|
+
return preset === 'boot-minimal' ? BOOT_MINIMAL_PROMPT : undefined;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=promptPresets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptPresets.js","sourceRoot":"","sources":["../../src/system-messages/promptPresets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAC9B,uFAAuF;IACvF,wFAAwF;IACxF,0FAA0F;IAC1F,0FAA0F;IAC1F,2FAA2F;IAC3F,2FAA2F;IAC3F,oEAAoE,CAAC;AAEvE,6EAA6E;AAC7E,MAAM,UAAU,cAAc,CAAC,MAAgC;IAC7D,OAAO,MAAM,KAAK,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;AACxD,CAAC;AAED,8EAA8E;AAC9E,MAAM,UAAU,kBAAkB,CAAC,MAAgC;IACjE,OAAO,MAAM,KAAK,cAAc,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;AACrE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-cortex/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.66.1",
|
|
4
4
|
"description": "Core orchestration library implementing Claude CLI architecture patterns",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@google/generative-ai": "^0.2.1",
|
|
48
48
|
"@gradio/client": "^2.3.1",
|
|
49
49
|
"@modelcontextprotocol/sdk": "^1.20.2",
|
|
50
|
-
"@nexus-cortex/executors": "4.
|
|
51
|
-
"@nexus-cortex/types": "4.
|
|
50
|
+
"@nexus-cortex/executors": "4.66.1",
|
|
51
|
+
"@nexus-cortex/types": "4.66.1",
|
|
52
52
|
"@types/uuid": "^10.0.0",
|
|
53
53
|
"ajv": "^8.12.0",
|
|
54
54
|
"chokidar": "^3.6.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"tiktoken": "^1.0.22",
|
|
57
57
|
"undici": "^5.28.4",
|
|
58
58
|
"uuid": "^13.0.0",
|
|
59
|
-
"nexus-canon": "1.9.
|
|
59
|
+
"nexus-canon": "1.9.3"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/node": "^20.0.0",
|