@ornexus/neocortex 4.60.64 → 4.60.66

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.
Files changed (87) hide show
  1. package/dist/release-source.json +1 -1
  2. package/dist/sbom.cdx.json +31 -38
  3. package/install.js +1 -0
  4. package/install.ps1 +34 -3
  5. package/install.sh +35 -3
  6. package/package.json +9 -5
  7. package/packages/client/dist/cli.js +1 -1
  8. package/packages/client/dist/commands/architecture-non-ui-continuation.js +1 -1
  9. package/packages/client/dist/commands/architecture-root-binding.js +1 -1
  10. package/packages/client/dist/commands/invoke.d.ts +1 -1
  11. package/packages/client/dist/commands/invoke.js +79 -78
  12. package/packages/client/dist/commands/mutation-qa-run.js +2 -2
  13. package/packages/client/dist/commands/qa-synthetic-backend-capture.js +1 -1
  14. package/packages/client/dist/commands/refactor-characterization.d.ts +3 -10
  15. package/packages/client/dist/commands/refactor-characterization.js +16 -16
  16. package/packages/client/dist/commands/refactor-control.d.ts +3 -11
  17. package/packages/client/dist/commands/refactor-control.js +3 -3
  18. package/packages/client/dist/commands/refactor-review.d.ts +0 -13
  19. package/packages/client/dist/commands/refactor-review.js +5 -6
  20. package/packages/client/dist/commands/refactor-root.d.ts +0 -157
  21. package/packages/client/dist/commands/refactor-root.js +7 -12
  22. package/packages/client/dist/commands/shared-architecture-non-ui.d.ts +18 -0
  23. package/packages/client/dist/commands/shared-architecture-non-ui.js +1 -0
  24. package/packages/client/dist/commands/story-checkpoint.d.ts +3 -1
  25. package/packages/client/dist/commands/story-checkpoint.js +1 -1
  26. package/packages/client/dist/git/direct-yolo-c01-retry.d.ts +21 -0
  27. package/packages/client/dist/git/direct-yolo-c01-retry.js +4 -0
  28. package/packages/client/dist/git/git-lifecycle-store.js +1 -1
  29. package/packages/client/dist/private-execution/clean-baseline.d.ts +2 -9
  30. package/packages/client/dist/private-execution/clean-baseline.js +2 -2
  31. package/packages/client/dist/private-execution/codex-executor.d.ts +1 -25
  32. package/packages/client/dist/private-execution/codex-executor.js +4 -9
  33. package/packages/client/dist/private-execution/delivery.d.ts +1 -2
  34. package/packages/client/dist/private-execution/delivery.js +3 -3
  35. package/packages/client/dist/private-execution/diagnosis-root-review.js +2 -2
  36. package/packages/client/dist/private-execution/frozen-handoff.js +4 -5
  37. package/packages/client/dist/private-execution/implementation-validation.d.ts +1 -10
  38. package/packages/client/dist/private-execution/implementation-validation.js +2 -2
  39. package/packages/client/dist/private-execution/isolated-admission.d.ts +2 -0
  40. package/packages/client/dist/private-execution/isolated-admission.js +16 -11
  41. package/packages/client/dist/private-execution/isolated-session.d.ts +1 -1
  42. package/packages/client/dist/private-execution/isolated-session.js +5 -5
  43. package/packages/client/dist/private-execution/root-memory-git-evidence.d.ts +1 -1
  44. package/packages/client/dist/private-execution/root-memory-git-evidence.js +3 -3
  45. package/packages/client/dist/private-execution/root-memory-recovery.d.ts +1 -1
  46. package/packages/client/dist/private-execution/root-memory-recovery.js +1 -1
  47. package/packages/client/dist/private-execution/root-memory-scope.d.ts +1 -1
  48. package/packages/client/dist/private-execution/root-memory-scope.js +1 -1
  49. package/packages/client/dist/private-execution/root-memory-writer.d.ts +1 -1
  50. package/packages/client/dist/private-execution/root-memory-writer.js +1 -1
  51. package/packages/client/dist/private-execution/shared-private-admission-types.d.ts +34 -0
  52. package/packages/client/dist/private-execution/shared-private-admission-types.js +1 -0
  53. package/packages/client/dist/private-execution/shared-project-validation.d.ts +17 -0
  54. package/packages/client/dist/private-execution/shared-project-validation.js +1 -0
  55. package/packages/client/dist/private-execution/shared-root-memory-types.d.ts +37 -0
  56. package/packages/client/dist/private-execution/shared-root-memory-types.js +1 -0
  57. package/packages/client/dist/private-execution/ux-source-validation.js +1 -1
  58. package/packages/client/dist/runner/binary.d.ts +1 -1
  59. package/packages/client/dist/runner/binary.js +1 -1
  60. package/packages/client/dist/runner/headless/opencode-adapter.js +2 -2
  61. package/packages/client/dist/runner-cli.js +0 -0
  62. package/packages/client/dist/yolo/invoke-envelope-capability.d.ts +16 -0
  63. package/packages/client/dist/yolo/invoke-envelope-capability.js +1 -0
  64. package/packages/client/dist/yolo/spec-envelope-collector.d.ts +7 -0
  65. package/packages/client/dist/yolo/spec-envelope-collector.js +3 -3
  66. package/packages/shared/dist/architecture-non-ui-scope.js +22 -0
  67. package/packages/shared/dist/architecture-public-topology.js +11 -0
  68. package/packages/shared/dist/project-validation-commands.js +10 -32
  69. package/packages/shared/dist/yolo/spec-envelope.js +2 -0
  70. package/targets-stubs/antigravity/gemini.md +1 -1
  71. package/targets-stubs/antigravity/skill/SKILL.md +1 -1
  72. package/targets-stubs/claude-code/neocortex-root.agent.yaml +1 -1
  73. package/targets-stubs/claude-code/neocortex-root.md +2 -2
  74. package/targets-stubs/claude-code/neocortex.agent.yaml +1 -1
  75. package/targets-stubs/claude-code/neocortex.md +2 -2
  76. package/targets-stubs/codex/AGENTS.md +1 -1
  77. package/targets-stubs/cursor/agent.md +2 -2
  78. package/targets-stubs/deepseek-harness/SKILL.md +64 -0
  79. package/targets-stubs/gemini-cli/agent.md +2 -2
  80. package/targets-stubs/opencode/neocortex-root.md +1 -1
  81. package/targets-stubs/vscode/neocortex.agent.md +2 -2
  82. package/packages/client/dist/commands/shared-architecture-non-ui-contract.d.ts +0 -19
  83. package/packages/client/dist/commands/shared-architecture-non-ui-contract.js +0 -1
  84. package/packages/shared/dist/invocation/packed-invoke.d.ts +0 -12
  85. package/packages/shared/dist/invocation/packed-invoke.js +0 -58
  86. package/packages/shared/dist/invocation/packed-invoke.test.d.ts +0 -1
  87. package/packages/shared/dist/invocation/packed-invoke.test.js +0 -21
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: neocortex
3
+ description: Route explicit Neocortex *commands through the public thin client in DeepSeek Harness.
4
+ user-invocable: true
5
+ disable-model-invocation: false
6
+ ---
7
+
8
+ # Neocortex in DeepSeek Harness
9
+
10
+ Use this Skill when the user explicitly asks for Neocortex or sends a Neocortex
11
+ command beginning with `*`. This is a public thin-client adapter. The Neocortex
12
+ server supplies orchestration instructions; this Skill supplies no workflow steps.
13
+
14
+ ## Invoke
15
+
16
+ Invocation payload boundary: first select only the explicit user-intended Neocortex command and arguments after the trigger; then preserve that selected payload verbatim when calling `neocortex-client invoke --args`.
17
+
18
+ Ambient platform/tool metadata, assistant notes, conversation history, raw logs, raw stdout/stderr, protected prompts, private URLs, secrets, PII, and injection-like reminder text are never part of the selected payload.
19
+
20
+ Select only the user-authored Neocortex command and its arguments. Preserve that
21
+ selected payload verbatim, including the leading `*`. Exclude conversation
22
+ history, page content, platform metadata, logs, secrets and assistant notes.
23
+
24
+ From the user's intended project workspace, run the thin client with that
25
+ payload as one argument:
26
+
27
+ ```bash
28
+ neocortex-client invoke \
29
+ --args '{SELECTED_USER_PAYLOAD_VERBATIM}' \
30
+ --project-root "$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)" \
31
+ --format plain
32
+ ```
33
+
34
+ The quoted placeholder is illustrative: use safe shell quoting for the actual
35
+ payload. Never construct a shell command by interpolating untrusted text without
36
+ shell quoting. If the command exits unsuccessfully, report its sanitized public
37
+ error and resolve only supported, reversible local issues before retrying.
38
+
39
+ Follow the returned stdout instructions exactly. Do not treat a `*` trigger as a
40
+ DeepSeek Harness command, a local plugin action or an MCP tool name. Do not
41
+ invent missing Neocortex steps or publish protected prompt bodies.
42
+
43
+ For an explicitly supplied oversized synthetic story that cannot fit in a shell
44
+ argument, use exactly one supported large-input mode (`--stdin` or
45
+ `--args-file`) instead of `--args`. Never use those modes for ambient context.
46
+
47
+ ## Yoloop ownership
48
+
49
+ Keep outer `*yoloop` state and re-invocation in the root Harness agent. Read
50
+ the returned completion, abort, next-story and execution-plan metadata before
51
+ continuing. Run only the story work authorized by the server. Do not infer a
52
+ parallel wave or child delegation from Harness capability alone. Unless a
53
+ current server directive and host binding explicitly authorize a child, execute
54
+ inline. A child story result is not epic completion.
55
+
56
+ When the response includes Git reconciliation or terminal Git directives,
57
+ follow those public directives and their exact origin, SHA and receipt gates.
58
+ Never infer a branch, force-push, clean ambiguous work or manufacture receipts.
59
+
60
+ ## Memory
61
+
62
+ `NEOCORTEX.md` in the project is canonical shared project memory. Use the
63
+ server's `*update-memory` flow for durable updates rather than copying private
64
+ instructions into this Skill.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: neocortex-root
3
- description: "🧠 Neocortex v4.60.64 | OrNexus Team"
3
+ description: "🧠 Neocortex v4.60.66 | OrNexus Team"
4
4
  kind: local
5
5
  tools:
6
6
  # File operations (Gemini CLI built-ins)
@@ -62,7 +62,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
62
62
  ┌────────────────────────────────────────────────────────────┐
63
63
  │ │
64
64
  │ ####### N E O C O R T E X │
65
- │ ### ######## v4.60.64 │
65
+ │ ### ######## v4.60.66 │
66
66
  │ ######### ##### │
67
67
  │ ## ############## Development Orchestrator │
68
68
  │ ## ### ###### ## OrNexus Team │
@@ -58,7 +58,7 @@ explicit server opt-in rather than a local assumption.
58
58
  ┌────────────────────────────────────────────────────────────┐
59
59
  │ │
60
60
  │ ####### N E O C O R T E X │
61
- │ ### ######## v4.60.64 │
61
+ │ ### ######## v4.60.66 │
62
62
  │ ######### ##### │
63
63
  │ ## ############## Development Orchestrator │
64
64
  │ ## ### ###### ## OrNexus Team │
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: "neocortex"
3
- description: "Neocortex v4.60.64 | OrNexus Team"
3
+ description: "Neocortex v4.60.66 | OrNexus Team"
4
4
  tools:
5
5
  # Read / Edit (built-in tool sets)
6
6
  - read
@@ -68,7 +68,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
68
68
  ┌────────────────────────────────────────────────────────────┐
69
69
  │ │
70
70
  │ ####### N E O C O R T E X │
71
- │ ### ######## v4.60.64 │
71
+ │ ### ######## v4.60.66 │
72
72
  │ ######### ##### │
73
73
  │ ## ############## Development Orchestrator │
74
74
  │ ## ### ###### ## OrNexus Team │
@@ -1,19 +0,0 @@
1
- /** Public architecture stage projection required by the standalone client. */
2
- export declare const ARCHITECTURE_PUBLIC_STAGE_COMMANDS: readonly ["arch-prd", "arch-architecture", "arch-fitness-functions", "arch-api-contracts", "generate-pacts", "arch-api-integrations", "arch-database", "arch-security", "arch-design-system", "arch-ux-design", "arch-performance", "arch-testing", "arch-infrastructure", "arch-review", "update-memory"];
3
- export declare const NON_UI_ARCHITECTURE_STAGE_COMMANDS: readonly ["arch-prd", "arch-architecture", "arch-fitness-functions", "arch-api-contracts", "generate-pacts", "arch-api-integrations", "arch-database", "arch-security", "arch-performance", "arch-testing", "arch-infrastructure", "arch-review", "update-memory"];
4
- export interface ArchitectureNonUiScopeReceipt {
5
- readonly schemaVersion: 1;
6
- readonly kind: 'ArchitectureNonUiScope/1';
7
- readonly licenseHash: string;
8
- readonly projectHash: string;
9
- readonly targetEpicId: string;
10
- readonly graphRevision: string;
11
- readonly rootInputSha256: string;
12
- readonly accountingId: string;
13
- readonly applicability: 'non-ui';
14
- readonly excludedStageCommands: readonly string[];
15
- readonly macSha256: string;
16
- readonly publicSafe: true;
17
- }
18
- /** Public syntax only. Authenticity is checked by the server. */
19
- export declare function parseArchitectureNonUiScopeReceipt(value: unknown): ArchitectureNonUiScopeReceipt | undefined;
@@ -1 +0,0 @@
1
- const i=Object.freeze(["arch-prd","arch-architecture","arch-fitness-functions","arch-api-contracts","generate-pacts","arch-api-integrations","arch-database","arch-security","arch-design-system","arch-ux-design","arch-performance","arch-testing","arch-infrastructure","arch-review","update-memory"]),s=Object.freeze(["arch-prd","arch-architecture","arch-fitness-functions","arch-api-contracts","generate-pacts","arch-api-integrations","arch-database","arch-security","arch-performance","arch-testing","arch-infrastructure","arch-review","update-memory"]),a=Object.freeze(["arch-design-system","arch-ux-design"]);function o(r){if(!r||typeof r!="object"||Array.isArray(r))return;const e=r,c=["schemaVersion","kind","licenseHash","projectHash","targetEpicId","graphRevision","rootInputSha256","accountingId","applicability","excludedStageCommands","macSha256","publicSafe"];if(!(Object.keys(e).sort().join(",")!==c.sort().join(",")||e.schemaVersion!==1||e.kind!=="ArchitectureNonUiScope/1"||e.publicSafe!==!0||e.applicability!=="non-ui"||typeof e.targetEpicId!="string"||!/^P[1-9][0-9]{0,11}$/.test(e.targetEpicId)||typeof e.accountingId!="string"||!/^arch-accounting-[a-f0-9]{32}$/.test(e.accountingId)||!["licenseHash","projectHash","graphRevision","rootInputSha256","macSha256"].every(t=>typeof e[t]=="string"&&/^[a-f0-9]{64}$/.test(e[t])))&&!(!Array.isArray(e.excludedStageCommands)||e.excludedStageCommands.length!==a.length||!e.excludedStageCommands.every((t,n)=>t===a[n])))return Object.freeze({...e,excludedStageCommands:Object.freeze([...a])})}export{i as ARCHITECTURE_PUBLIC_STAGE_COMMANDS,s as NON_UI_ARCHITECTURE_STAGE_COMMANDS,o as parseArchitectureNonUiScopeReceipt};
@@ -1,12 +0,0 @@
1
- export declare const PACKED_INVOKE_MAX_UNCOMPRESSED_BYTES: number;
2
- interface PackedInvokeEnvelope {
3
- readonly schemaVersion: 'PackedInvokeEnvelope/1';
4
- readonly compression: 'gzip';
5
- readonly uncompressedBytes: number;
6
- readonly sha256: string;
7
- readonly payload: string;
8
- }
9
- /** Keep the signed HTTP body below 256 KiB without changing the invoke JSON. */
10
- export declare function packInvokeEnvelope(body: Record<string, unknown>): PackedInvokeEnvelope;
11
- export declare function unpackInvokeEnvelope(value: unknown): Record<string, unknown>;
12
- export {};
@@ -1,58 +0,0 @@
1
- import { createHash } from 'node:crypto';
2
- import { gzipSync, gunzipSync } from 'node:zlib';
3
- export const PACKED_INVOKE_MAX_UNCOMPRESSED_BYTES = 512 * 1024;
4
- const PACKED_INVOKE_MAX_COMPRESSED_BYTES = 192 * 1024;
5
- function isRecord(value) {
6
- return value !== null && typeof value === 'object' && !Array.isArray(value);
7
- }
8
- /** Keep the signed HTTP body below 256 KiB without changing the invoke JSON. */
9
- export function packInvokeEnvelope(body) {
10
- const raw = Buffer.from(JSON.stringify(body), 'utf8');
11
- if (raw.length > PACKED_INVOKE_MAX_UNCOMPRESSED_BYTES)
12
- throw new Error('packed-invoke-too-large');
13
- const compressed = gzipSync(raw, { level: 6 });
14
- if (compressed.length > PACKED_INVOKE_MAX_COMPRESSED_BYTES)
15
- throw new Error('packed-invoke-too-large');
16
- return {
17
- schemaVersion: 'PackedInvokeEnvelope/1',
18
- compression: 'gzip',
19
- uncompressedBytes: raw.length,
20
- sha256: createHash('sha256').update(raw).digest('hex'),
21
- payload: compressed.toString('base64'),
22
- };
23
- }
24
- export function unpackInvokeEnvelope(value) {
25
- if (!isRecord(value) || Object.keys(value).sort().join(',') !==
26
- 'compression,payload,schemaVersion,sha256,uncompressedBytes'
27
- || value.schemaVersion !== 'PackedInvokeEnvelope/1' || value.compression !== 'gzip'
28
- || !Number.isSafeInteger(value.uncompressedBytes) || value.uncompressedBytes < 1
29
- || value.uncompressedBytes > PACKED_INVOKE_MAX_UNCOMPRESSED_BYTES
30
- || typeof value.sha256 !== 'string' || !/^[a-f0-9]{64}$/.test(value.sha256)
31
- || typeof value.payload !== 'string' || value.payload.length > Math.ceil(PACKED_INVOKE_MAX_COMPRESSED_BYTES * 4 / 3) + 4
32
- || !/^[A-Za-z0-9+/]+={0,2}$/.test(value.payload))
33
- throw new Error('packed-invoke-invalid');
34
- const compressed = Buffer.from(value.payload, 'base64');
35
- if (compressed.length > PACKED_INVOKE_MAX_COMPRESSED_BYTES
36
- || compressed.toString('base64') !== value.payload)
37
- throw new Error('packed-invoke-invalid');
38
- let raw;
39
- try {
40
- raw = gunzipSync(compressed, { maxOutputLength: PACKED_INVOKE_MAX_UNCOMPRESSED_BYTES });
41
- }
42
- catch {
43
- throw new Error('packed-invoke-invalid');
44
- }
45
- if (raw.length !== value.uncompressedBytes
46
- || createHash('sha256').update(raw).digest('hex') !== value.sha256)
47
- throw new Error('packed-invoke-invalid');
48
- let parsed;
49
- try {
50
- parsed = JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(raw));
51
- }
52
- catch {
53
- throw new Error('packed-invoke-invalid');
54
- }
55
- if (!isRecord(parsed) || parsed.schemaVersion === 'PackedInvokeEnvelope/1')
56
- throw new Error('packed-invoke-invalid');
57
- return parsed;
58
- }
@@ -1,21 +0,0 @@
1
- import { describe, expect, it } from 'vitest';
2
- import { packInvokeEnvelope, unpackInvokeEnvelope } from './packed-invoke.js';
3
- describe('signed invoke transport packing', () => {
4
- it('round trips a large structural request within the HTTP body limit', () => {
5
- const original = { args: '*yolo @docs/stories/P222.26.story.md', stateSnapshot: {
6
- stories: Object.fromEntries(Array.from({ length: 27 }, (_, index) => [
7
- `P222.${index + 1}`, { checkpoint: { qaReceipt: 'verified'.repeat(1300), headSha: String(index) } },
8
- ])),
9
- } };
10
- expect(Buffer.byteLength(JSON.stringify(original))).toBeGreaterThan(262_144);
11
- const packed = packInvokeEnvelope(original);
12
- expect(Buffer.byteLength(JSON.stringify(packed))).toBeLessThan(262_144);
13
- expect(unpackInvokeEnvelope(packed)).toEqual(original);
14
- });
15
- it('rejects modified bytes, extra fields, and excess expansion', () => {
16
- const packed = packInvokeEnvelope({ args: '*status' });
17
- expect(() => unpackInvokeEnvelope({ ...packed, sha256: '0'.repeat(64) })).toThrow('packed-invoke-invalid');
18
- expect(() => unpackInvokeEnvelope({ ...packed, injected: true })).toThrow('packed-invoke-invalid');
19
- expect(() => packInvokeEnvelope({ data: 'x'.repeat(512 * 1024) })).toThrow('packed-invoke-too-large');
20
- });
21
- });