@ornexus/neocortex 4.60.72 → 4.60.73
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/release-source.json +1 -1
- package/dist/sbom.cdx.json +24 -24
- package/install.ps1 +1 -1
- package/install.sh +1 -1
- package/package.json +2 -2
- package/packages/client/dist/adapters/adapter-registry.js +108 -1
- package/packages/client/dist/adapters/antigravity-adapter.js +77 -2
- package/packages/client/dist/adapters/claude-code-adapter.js +79 -3
- package/packages/client/dist/adapters/codex-adapter.js +80 -2
- package/packages/client/dist/adapters/cursor-adapter.js +115 -4
- package/packages/client/dist/adapters/gemini-adapter.js +71 -2
- package/packages/client/dist/adapters/grok-adapter.js +42 -2
- package/packages/client/dist/adapters/index.js +22 -1
- package/packages/client/dist/adapters/platform-detector.js +212 -1
- package/packages/client/dist/adapters/target-adapter.js +12 -0
- package/packages/client/dist/adapters/vscode-adapter.js +72 -2
- package/packages/client/dist/agent/refresh-stubs.js +417 -2
- package/packages/client/dist/agent/update-agent-yaml.js +102 -1
- package/packages/client/dist/agent/update-description.js +251 -1
- package/packages/client/dist/cache/crypto-utils.js +78 -1
- package/packages/client/dist/cache/encrypted-cache.js +108 -1
- package/packages/client/dist/cache/in-memory-asset-cache.js +73 -1
- package/packages/client/dist/cache/index.js +13 -1
- package/packages/client/dist/cache/protected-pi-boundary.js +44 -1
- package/packages/client/dist/checkpoint/checkpoint-client-reader.js +127 -2
- package/packages/client/dist/checkpoint/index.js +11 -1
- package/packages/client/dist/checkpoint/shared-checkpoint-types.js +32 -1
- package/packages/client/dist/cli.js +358 -5
- package/packages/client/dist/commands/activate.js +394 -8
- package/packages/client/dist/commands/architecture-answers.js +274 -7
- package/packages/client/dist/commands/architecture-memory-terminal.js +253 -4
- package/packages/client/dist/commands/architecture-non-ui-continuation.js +100 -1
- package/packages/client/dist/commands/architecture-root-binding.js +51 -1
- package/packages/client/dist/commands/cache-status.js +112 -2
- package/packages/client/dist/commands/config.js +88 -1
- package/packages/client/dist/commands/doctor.js +635 -2
- package/packages/client/dist/commands/invoke.js +7200 -143
- package/packages/client/dist/commands/legacy-epic-terminal.js +71 -1
- package/packages/client/dist/commands/legacy-story-branch.js +96 -1
- package/packages/client/dist/commands/legacy-story-pr.js +276 -1
- package/packages/client/dist/commands/mutation-qa-checkpoint.js +285 -5
- package/packages/client/dist/commands/mutation-qa-gate.js +54 -1
- package/packages/client/dist/commands/mutation-qa-git.js +41 -1
- package/packages/client/dist/commands/mutation-qa-policy.js +102 -1
- package/packages/client/dist/commands/mutation-qa-run.js +219 -3
- package/packages/client/dist/commands/mutation-qa-verdict.js +149 -1
- package/packages/client/dist/commands/mutation-qa.js +220 -1
- package/packages/client/dist/commands/native-agent.js +136 -2
- package/packages/client/dist/commands/planning-diagnosis.js +43 -1
- package/packages/client/dist/commands/planning-generation.js +53 -1
- package/packages/client/dist/commands/planning-memory.js +40 -1
- package/packages/client/dist/commands/planning-research.js +42 -1
- package/packages/client/dist/commands/private-session.js +75 -1
- package/packages/client/dist/commands/property-qa.js +139 -1
- package/packages/client/dist/commands/qa-control.js +16 -1
- package/packages/client/dist/commands/qa-scan-browser-launch.js +55 -1
- package/packages/client/dist/commands/qa-scan-browser-route.js +28 -1
- package/packages/client/dist/commands/qa-scan-capture.js +663 -5
- package/packages/client/dist/commands/qa-scan-discovery.js +376 -3
- package/packages/client/dist/commands/qa-scan-review.js +826 -5
- package/packages/client/dist/commands/qa-synthetic-backend-capture.js +266 -1
- package/packages/client/dist/commands/qa-synthetic-backend-review.js +297 -1
- package/packages/client/dist/commands/qa-synthetic-backend.js +340 -2
- package/packages/client/dist/commands/qa-synthetic-broker-port.js +85 -1
- package/packages/client/dist/commands/qa-synthetic-browser.js +39 -1
- package/packages/client/dist/commands/refactor-characterization.js +671 -21
- package/packages/client/dist/commands/refactor-commit.js +399 -13
- package/packages/client/dist/commands/refactor-control.js +142 -3
- package/packages/client/dist/commands/refactor-cpp-assertions.js +93 -3
- package/packages/client/dist/commands/refactor-review.js +283 -5
- package/packages/client/dist/commands/refactor-root.js +588 -7
- package/packages/client/dist/commands/refresh-memory.js +156 -3
- package/packages/client/dist/commands/shared-architecture-non-ui.js +24 -1
- package/packages/client/dist/commands/story-checkpoint.js +171 -1
- package/packages/client/dist/config/profile-directory.js +13 -1
- package/packages/client/dist/config/resolver-selection.js +278 -1
- package/packages/client/dist/config/secure-config.js +281 -12
- package/packages/client/dist/config.js +223 -2
- package/packages/client/dist/constants.js +25 -1
- package/packages/client/dist/context/context-collector.js +222 -2
- package/packages/client/dist/context/context-sanitizer.js +145 -1
- package/packages/client/dist/continuity/autonomous-governance.js +285 -1
- package/packages/client/dist/continuity/continuity-client-state-store.js +1587 -1
- package/packages/client/dist/continuity/invoke-hooks.js +129 -1
- package/packages/client/dist/continuity/migrations/001-initial-schema.js +12 -2
- package/packages/client/dist/continuity/migrations/002-processing-output-summary-indexes.js +12 -2
- package/packages/client/dist/continuity/migrations/003-headless-execution-attempts.js +12 -2
- package/packages/client/dist/continuity/migrations/004-outbox-delivery-state.js +12 -2
- package/packages/client/dist/continuity/migrations/005-bounded-headless-queue.js +12 -2
- package/packages/client/dist/continuity/migrations/006-native-agent-dispatches.js +10 -2
- package/packages/client/dist/continuity/native-agent-store.js +69 -1
- package/packages/client/dist/continuity/native-agent-types.js +90 -1
- package/packages/client/dist/continuity/outbox.js +117 -1
- package/packages/client/dist/continuity/runner-bootstrap-policy.js +172 -1
- package/packages/client/dist/continuity/sqlite-store.d.ts +22 -1
- package/packages/client/dist/continuity/sqlite-store.js +2612 -81
- package/packages/client/dist/effects/invoke-effect-gateways.js +62 -1
- package/packages/client/dist/errors/error-messages.js +228 -2
- package/packages/client/dist/errors/frontmatter-diagnostics.js +125 -1
- package/packages/client/dist/evidence/collector.js +347 -1
- package/packages/client/dist/evidence/index.js +1 -1
- package/packages/client/dist/evidence/types.js +2 -0
- package/packages/client/dist/fs/atomic-state-replace.js +152 -1
- package/packages/client/dist/generated/command-registry.generated.js +4076 -1
- package/packages/client/dist/generated/public-projections.generated.js +149 -1
- package/packages/client/dist/git/direct-yolo-c01-retry.js +138 -4
- package/packages/client/dist/git/direct-yolo-checkpoint.js +1234 -4
- package/packages/client/dist/git/epic-operational-state.d.ts +198 -0
- package/packages/client/dist/git/epic-operational-state.js +672 -0
- package/packages/client/dist/git/git-lifecycle-step-ids.js +14 -1
- package/packages/client/dist/git/git-lifecycle-store.d.ts +9 -1
- package/packages/client/dist/git/git-lifecycle-store.js +1981 -9
- package/packages/client/dist/git/legacy-story-branch-checkpoint.js +259 -9
- package/packages/client/dist/git/legacy-story-branch-setup.js +348 -4
- package/packages/client/dist/git/legacy-story-pr.js +3538 -70
- package/packages/client/dist/git/secure-filesystem-boundary.js +182 -5
- package/packages/client/dist/graph-retrieval/pre-command-hook.js +284 -1
- package/packages/client/dist/graph-retrieval/shared-graph-retrieval-contract.js +237 -1
- package/packages/client/dist/i18n/first-run.js +60 -2
- package/packages/client/dist/index.js +47 -1
- package/packages/client/dist/invocation/invoke-input.js +24 -1
- package/packages/client/dist/license/index.js +5 -1
- package/packages/client/dist/license/license-client.js +304 -1
- package/packages/client/dist/machine/fingerprint.js +163 -2
- package/packages/client/dist/machine/index.js +5 -1
- package/packages/client/dist/memory/project-memory-path-scope.js +62 -1
- package/packages/client/dist/memory/project-memory-writer.js +1007 -40
- package/packages/client/dist/memory/shared-project-memory-types.js +253 -2
- package/packages/client/dist/migrations/epic-lifecycle-backfill.d.ts +97 -0
- package/packages/client/dist/migrations/epic-lifecycle-backfill.js +1060 -0
- package/packages/client/dist/migrations/project-identity-capability.js +50 -1
- package/packages/client/dist/migrations/project-identity.js +493 -7
- package/packages/client/dist/migrations/state-json.d.ts +22 -0
- package/packages/client/dist/migrations/state-json.js +393 -4
- package/packages/client/dist/policy/architecture-policy.js +184 -2
- package/packages/client/dist/policy/index.js +7 -1
- package/packages/client/dist/policy/shared-policy-types.js +38 -0
- package/packages/client/dist/policy/subagent-approval-policy.js +55 -1
- package/packages/client/dist/private-execution/clean-baseline.js +279 -2
- package/packages/client/dist/private-execution/codex-executor.js +574 -4
- package/packages/client/dist/private-execution/codex-host-runtime.js +137 -1
- package/packages/client/dist/private-execution/codex-lifecycle-guard.js +97 -1
- package/packages/client/dist/private-execution/codex-scoped-permissions.js +128 -1
- package/packages/client/dist/private-execution/delivery.js +410 -13
- package/packages/client/dist/private-execution/diagnosis-root-review.js +294 -2
- package/packages/client/dist/private-execution/frozen-handoff.js +19 -6
- package/packages/client/dist/private-execution/implementation-validation.js +106 -2
- package/packages/client/dist/private-execution/isolated-admission.js +1432 -23
- package/packages/client/dist/private-execution/isolated-session.js +725 -5
- package/packages/client/dist/private-execution/isolated-workspace.js +122 -1
- package/packages/client/dist/private-execution/pact-consumer-runtime.js +409 -3
- package/packages/client/dist/private-execution/pact-test-source.js +258 -1
- package/packages/client/dist/private-execution/pact-toolchain.js +290 -3
- package/packages/client/dist/private-execution/pact-write-set.js +172 -1
- package/packages/client/dist/private-execution/planning-diagnosis-checkpoint.js +406 -5
- package/packages/client/dist/private-execution/planning-generation-checkpoint.js +462 -5
- package/packages/client/dist/private-execution/planning-memory-checkpoint.js +139 -3
- package/packages/client/dist/private-execution/planning-research-checkpoint.js +325 -4
- package/packages/client/dist/private-execution/private-report-store.js +42 -1
- package/packages/client/dist/private-execution/property-test-candidate.js +103 -1
- package/packages/client/dist/private-execution/property-test-choices.js +147 -3
- package/packages/client/dist/private-execution/property-test-plan.js +271 -7
- package/packages/client/dist/private-execution/property-test-review.js +258 -4
- package/packages/client/dist/private-execution/property-test-runtime.js +372 -9
- package/packages/client/dist/private-execution/property-test-source.js +139 -1
- package/packages/client/dist/private-execution/root-checkpoint.js +80 -1
- package/packages/client/dist/private-execution/root-memory-git-evidence.js +135 -3
- package/packages/client/dist/private-execution/root-memory-recovery.js +93 -1
- package/packages/client/dist/private-execution/root-memory-request.js +29 -1
- package/packages/client/dist/private-execution/root-memory-scope.js +178 -1
- package/packages/client/dist/private-execution/root-memory-writer.js +102 -1
- package/packages/client/dist/private-execution/session-lease.js +63 -1
- package/packages/client/dist/private-execution/shared-private-admission-types.js +50 -1
- package/packages/client/dist/private-execution/shared-project-validation.js +66 -1
- package/packages/client/dist/private-execution/shared-root-memory-types.js +61 -1
- package/packages/client/dist/private-execution/ux-source-validation.js +372 -1
- package/packages/client/dist/private-execution/ux-write-set.js +191 -2
- package/packages/client/dist/registry/registry-reconciliation.js +234 -1
- package/packages/client/dist/resilience/circuit-breaker.js +170 -1
- package/packages/client/dist/resilience/degradation-manager.js +164 -1
- package/packages/client/dist/resilience/freshness-indicator.js +100 -1
- package/packages/client/dist/resilience/index.js +8 -1
- package/packages/client/dist/resilience/recovery-detector.js +74 -1
- package/packages/client/dist/resolvers/asset-resolver.js +13 -0
- package/packages/client/dist/resolvers/local-resolver.js +255 -8
- package/packages/client/dist/resolvers/remote-resolver.js +233 -1
- package/packages/client/dist/runner/binary.js +404 -1
- package/packages/client/dist/runner/cli.js +1571 -17
- package/packages/client/dist/runner/headless/adapters.js +49 -1
- package/packages/client/dist/runner/headless/claude-code-adapter.js +79 -1
- package/packages/client/dist/runner/headless/continuous-story-workspace.js +1628 -11
- package/packages/client/dist/runner/headless/epic-git-reconciliation-inventory.js +69 -1
- package/packages/client/dist/runner/headless/epic-merge-candidate-qa.js +110 -2
- package/packages/client/dist/runner/headless/epic-terminal-git-cli-adapter.js +1236 -8
- package/packages/client/dist/runner/headless/epic-terminal-git-runner.js +318 -2
- package/packages/client/dist/runner/headless/fake-adapter.js +62 -1
- package/packages/client/dist/runner/headless/managed-profile.js +132 -1
- package/packages/client/dist/runner/headless/opencode-adapter.js +145 -2
- package/packages/client/dist/runner/headless/prepared-story-bundle.js +43 -1
- package/packages/client/dist/runner/headless/resolver.js +231 -1
- package/packages/client/dist/runner/headless/run-yolo.js +885 -1
- package/packages/client/dist/runner/headless/run-yoloop.js +2574 -2
- package/packages/client/dist/runner/headless/types.js +574 -2
- package/packages/client/dist/runner/local-console.js +396 -13
- package/packages/client/dist/runner/portal-sync-worker.js +1487 -1
- package/packages/client/dist/runner/project-identity.js +106 -1
- package/packages/client/dist/runner/scheduler.js +995 -7
- package/packages/client/dist/runner-cli.js +18 -2
- package/packages/client/dist/state/invocation-shape.js +13 -1
- package/packages/client/dist/state/project-state-snapshot.d.ts +8 -0
- package/packages/client/dist/state/project-state-snapshot.js +1731 -1
- package/packages/client/dist/state/state-json-repair.js +785 -3
- package/packages/client/dist/state/structural-dag-projection.js +118 -1
- package/packages/client/dist/telemetry/index.js +5 -1
- package/packages/client/dist/telemetry/offline-queue.js +131 -1
- package/packages/client/dist/tier/index.js +5 -1
- package/packages/client/dist/tier/tier-aware-client.js +405 -1
- package/packages/client/dist/types/index.js +38 -1
- package/packages/client/dist/version.js +27 -1
- package/packages/client/dist/yolo/change-evidence-collector.js +126 -1
- package/packages/client/dist/yolo/invoke-envelope-capability.js +62 -1
- package/packages/client/dist/yolo/spec-envelope-collector.js +184 -5
- package/packages/client/dist/yoloop/discovery-hook.js +300 -2
- package/packages/client/dist/yoloop/index.js +8 -1
- package/packages/client/dist/yoloop/invoke-hooks.js +669 -12
- package/packages/client/dist/yoloop/shared-discover-epics.js +1007 -1
- package/packages/client/dist/yoloop/shared-yoloop-types.d.ts +65 -1
- package/packages/client/dist/yoloop/shared-yoloop-types.js +33 -1
- package/packages/client/dist/yoloop/target-normalization.js +180 -1
- package/packages/client/dist/yoloop/yoloop-client-state-store.d.ts +8 -0
- package/packages/client/dist/yoloop/yoloop-client-state-store.js +1920 -1
- package/packages/shared/dist/yolo/spec-envelope.js +3 -6
- package/targets-stubs/antigravity/gemini.md +1 -1
- package/targets-stubs/antigravity/skill/SKILL.md +1 -1
- package/targets-stubs/claude-code/neocortex-root.agent.yaml +1 -1
- package/targets-stubs/claude-code/neocortex-root.md +2 -2
- package/targets-stubs/claude-code/neocortex.agent.yaml +1 -1
- package/targets-stubs/claude-code/neocortex.md +2 -2
- package/targets-stubs/codex/AGENTS.md +1 -1
- package/targets-stubs/cursor/agent.md +2 -2
- package/targets-stubs/gemini-cli/agent.md +2 -2
- package/targets-stubs/opencode/neocortex-root.md +1 -1
- package/targets-stubs/vscode/neocortex.agent.md +2 -2
package/dist/release-source.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"sourceRevision":"
|
|
1
|
+
{"schemaVersion":1,"sourceRevision":"5cbf890b81f5db0e5463dbbbc11c50eaec75c1df","version":"4.60.73"}
|
package/dist/sbom.cdx.json
CHANGED
|
@@ -915,7 +915,7 @@
|
|
|
915
915
|
"version": "1.32.2"
|
|
916
916
|
},
|
|
917
917
|
{
|
|
918
|
-
"bom-ref": "@neocortex/client@4.60.
|
|
918
|
+
"bom-ref": "@neocortex/client@4.60.73",
|
|
919
919
|
"group": "@neocortex",
|
|
920
920
|
"name": "client",
|
|
921
921
|
"properties": [
|
|
@@ -924,9 +924,9 @@
|
|
|
924
924
|
"value": "node_modules/@neocortex/client"
|
|
925
925
|
}
|
|
926
926
|
],
|
|
927
|
-
"purl": "pkg:npm/%40neocortex/client@4.60.
|
|
927
|
+
"purl": "pkg:npm/%40neocortex/client@4.60.73",
|
|
928
928
|
"type": "library",
|
|
929
|
-
"version": "4.60.
|
|
929
|
+
"version": "4.60.73"
|
|
930
930
|
},
|
|
931
931
|
{
|
|
932
932
|
"bom-ref": "@neocortex/core@0.1.0",
|
|
@@ -943,7 +943,7 @@
|
|
|
943
943
|
"version": "0.1.0"
|
|
944
944
|
},
|
|
945
945
|
{
|
|
946
|
-
"bom-ref": "@neocortex/server@4.60.
|
|
946
|
+
"bom-ref": "@neocortex/server@4.60.73",
|
|
947
947
|
"group": "@neocortex",
|
|
948
948
|
"name": "server",
|
|
949
949
|
"properties": [
|
|
@@ -952,12 +952,12 @@
|
|
|
952
952
|
"value": "node_modules/@neocortex/server"
|
|
953
953
|
}
|
|
954
954
|
],
|
|
955
|
-
"purl": "pkg:npm/%40neocortex/server@4.60.
|
|
955
|
+
"purl": "pkg:npm/%40neocortex/server@4.60.73",
|
|
956
956
|
"type": "library",
|
|
957
|
-
"version": "4.60.
|
|
957
|
+
"version": "4.60.73"
|
|
958
958
|
},
|
|
959
959
|
{
|
|
960
|
-
"bom-ref": "@neocortex/shared@4.60.
|
|
960
|
+
"bom-ref": "@neocortex/shared@4.60.73",
|
|
961
961
|
"group": "@neocortex",
|
|
962
962
|
"name": "shared",
|
|
963
963
|
"properties": [
|
|
@@ -966,9 +966,9 @@
|
|
|
966
966
|
"value": "node_modules/@neocortex/shared"
|
|
967
967
|
}
|
|
968
968
|
],
|
|
969
|
-
"purl": "pkg:npm/%40neocortex/shared@4.60.
|
|
969
|
+
"purl": "pkg:npm/%40neocortex/shared@4.60.73",
|
|
970
970
|
"type": "library",
|
|
971
|
-
"version": "4.60.
|
|
971
|
+
"version": "4.60.73"
|
|
972
972
|
},
|
|
973
973
|
{
|
|
974
974
|
"bom-ref": "@opentelemetry/api-logs@0.214.0",
|
|
@@ -9585,10 +9585,10 @@
|
|
|
9585
9585
|
"@clack/prompts@1.8.1",
|
|
9586
9586
|
"@hono/node-server@1.19.17",
|
|
9587
9587
|
"@modelcontextprotocol/sdk@1.32.2",
|
|
9588
|
-
"@neocortex/client@4.60.
|
|
9588
|
+
"@neocortex/client@4.60.73",
|
|
9589
9589
|
"@neocortex/core@0.1.0",
|
|
9590
|
-
"@neocortex/server@4.60.
|
|
9591
|
-
"@neocortex/shared@4.60.
|
|
9590
|
+
"@neocortex/server@4.60.73",
|
|
9591
|
+
"@neocortex/shared@4.60.73",
|
|
9592
9592
|
"axe-core@4.14.0",
|
|
9593
9593
|
"better-sqlite3@12.11.1",
|
|
9594
9594
|
"execa@9.6.1",
|
|
@@ -9599,12 +9599,12 @@
|
|
|
9599
9599
|
"yaml@2.9.0",
|
|
9600
9600
|
"zod@4.6.7"
|
|
9601
9601
|
],
|
|
9602
|
-
"ref": "@ornexus/neocortex@4.60.
|
|
9602
|
+
"ref": "@ornexus/neocortex@4.60.73"
|
|
9603
9603
|
},
|
|
9604
9604
|
{
|
|
9605
9605
|
"dependsOn": [
|
|
9606
9606
|
"@babel/parser@7.29.7",
|
|
9607
|
-
"@neocortex/shared@4.60.
|
|
9607
|
+
"@neocortex/shared@4.60.73",
|
|
9608
9608
|
"axe-core@4.14.0",
|
|
9609
9609
|
"better-sqlite3@11.10.0",
|
|
9610
9610
|
"jose@6.2.2",
|
|
@@ -9612,7 +9612,7 @@
|
|
|
9612
9612
|
"playwright-core@1.55.0",
|
|
9613
9613
|
"yaml@2.9.0"
|
|
9614
9614
|
],
|
|
9615
|
-
"ref": "@neocortex/client@4.60.
|
|
9615
|
+
"ref": "@neocortex/client@4.60.73"
|
|
9616
9616
|
},
|
|
9617
9617
|
{
|
|
9618
9618
|
"dependsOn": [
|
|
@@ -9668,7 +9668,7 @@
|
|
|
9668
9668
|
"@fastify/jwt@10.2.5",
|
|
9669
9669
|
"@fastify/rate-limit@10.3.0",
|
|
9670
9670
|
"@fastify/static@10.1.7",
|
|
9671
|
-
"@neocortex/shared@4.60.
|
|
9671
|
+
"@neocortex/shared@4.60.73",
|
|
9672
9672
|
"@sentry/node@10.62.0",
|
|
9673
9673
|
"bcryptjs@3.0.3",
|
|
9674
9674
|
"drizzle-orm@0.45.2",
|
|
@@ -9681,7 +9681,7 @@
|
|
|
9681
9681
|
"stripe@20.4.1",
|
|
9682
9682
|
"yaml@2.9.0"
|
|
9683
9683
|
],
|
|
9684
|
-
"ref": "@neocortex/server@4.60.
|
|
9684
|
+
"ref": "@neocortex/server@4.60.73"
|
|
9685
9685
|
},
|
|
9686
9686
|
{
|
|
9687
9687
|
"dependsOn": [
|
|
@@ -9787,7 +9787,7 @@
|
|
|
9787
9787
|
},
|
|
9788
9788
|
{
|
|
9789
9789
|
"dependsOn": [
|
|
9790
|
-
"@neocortex/shared@4.60.
|
|
9790
|
+
"@neocortex/shared@4.60.73"
|
|
9791
9791
|
],
|
|
9792
9792
|
"ref": "@neocortex/core@0.1.0"
|
|
9793
9793
|
},
|
|
@@ -10869,7 +10869,7 @@
|
|
|
10869
10869
|
"ref": "@lukeed/ms@2.0.2"
|
|
10870
10870
|
},
|
|
10871
10871
|
{
|
|
10872
|
-
"ref": "@neocortex/shared@4.60.
|
|
10872
|
+
"ref": "@neocortex/shared@4.60.73"
|
|
10873
10873
|
},
|
|
10874
10874
|
{
|
|
10875
10875
|
"ref": "@opentelemetry/api@1.9.1"
|
|
@@ -11370,8 +11370,8 @@
|
|
|
11370
11370
|
"metadata": {
|
|
11371
11371
|
"component": {
|
|
11372
11372
|
"author": "OrNexus Team",
|
|
11373
|
-
"bom-ref": "@ornexus/neocortex@4.60.
|
|
11374
|
-
"description": "Neocortex v4.60.
|
|
11373
|
+
"bom-ref": "@ornexus/neocortex@4.60.73",
|
|
11374
|
+
"description": "Neocortex v4.60.73",
|
|
11375
11375
|
"externalReferences": [
|
|
11376
11376
|
{
|
|
11377
11377
|
"comment": "as detected from PackageJson property \"bugs.url\"",
|
|
@@ -11404,9 +11404,9 @@
|
|
|
11404
11404
|
"value": ""
|
|
11405
11405
|
}
|
|
11406
11406
|
],
|
|
11407
|
-
"purl": "pkg:npm/%40ornexus/neocortex@4.60.
|
|
11407
|
+
"purl": "pkg:npm/%40ornexus/neocortex@4.60.73?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FOrNexus-AI%2Fneocortex.git",
|
|
11408
11408
|
"type": "application",
|
|
11409
|
-
"version": "4.60.
|
|
11409
|
+
"version": "4.60.73"
|
|
11410
11410
|
},
|
|
11411
11411
|
"tools": {
|
|
11412
11412
|
"components": [
|
|
@@ -11477,7 +11477,7 @@
|
|
|
11477
11477
|
{
|
|
11478
11478
|
"name": "npm",
|
|
11479
11479
|
"type": "application",
|
|
11480
|
-
"version": "
|
|
11480
|
+
"version": "11.10.1"
|
|
11481
11481
|
}
|
|
11482
11482
|
]
|
|
11483
11483
|
}
|
package/install.ps1
CHANGED
package/install.sh
CHANGED
package/package.json
CHANGED
|
@@ -1 +1,108 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license FSL-1.1
|
|
3
|
+
* Copyright (c) 2026 OrNexus AI
|
|
4
|
+
*
|
|
5
|
+
* Adapter Registry - Plugin-style registry for target adapters.
|
|
6
|
+
*
|
|
7
|
+
* Manages registration and lookup of TargetAdapter instances.
|
|
8
|
+
* Supports dynamic registration for extensibility and provides
|
|
9
|
+
* a factory function for the default set of 6 adapters.
|
|
10
|
+
*
|
|
11
|
+
* Story 42.8
|
|
12
|
+
*/
|
|
13
|
+
import { ClaudeCodeAdapter } from './claude-code-adapter.js';
|
|
14
|
+
import { CursorAdapter } from './cursor-adapter.js';
|
|
15
|
+
import { VSCodeAdapter } from './vscode-adapter.js';
|
|
16
|
+
import { GeminiAdapter } from './gemini-adapter.js';
|
|
17
|
+
import { CodexAdapter } from './codex-adapter.js';
|
|
18
|
+
import { AntigravityAdapter } from './antigravity-adapter.js';
|
|
19
|
+
import { GrokAdapter } from './grok-adapter.js';
|
|
20
|
+
// ── Error Types ─────────────────────────────────────────────────────────────
|
|
21
|
+
export class UnknownTargetError extends Error {
|
|
22
|
+
targetId;
|
|
23
|
+
constructor(targetId) {
|
|
24
|
+
super(`Unknown target: "${targetId}". Available targets: ${[...DEFAULT_ADAPTERS.keys()].join(', ')}`);
|
|
25
|
+
this.targetId = targetId;
|
|
26
|
+
this.name = 'UnknownTargetError';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
// ── Default Adapters Map ────────────────────────────────────────────────────
|
|
30
|
+
const DEFAULT_ADAPTERS = new Map([
|
|
31
|
+
['claude-code', () => new ClaudeCodeAdapter()],
|
|
32
|
+
['cursor', () => new CursorAdapter()],
|
|
33
|
+
['vscode', () => new VSCodeAdapter()],
|
|
34
|
+
['gemini-cli', () => new GeminiAdapter()],
|
|
35
|
+
['codex', () => new CodexAdapter()],
|
|
36
|
+
['antigravity', () => new AntigravityAdapter()],
|
|
37
|
+
['grok', () => new GrokAdapter()],
|
|
38
|
+
]);
|
|
39
|
+
// ── Registry Implementation ─────────────────────────────────────────────────
|
|
40
|
+
export class AdapterRegistry {
|
|
41
|
+
adapters = new Map();
|
|
42
|
+
/**
|
|
43
|
+
* Register a target adapter.
|
|
44
|
+
*
|
|
45
|
+
* @param adapter - The adapter instance to register
|
|
46
|
+
* @throws Error if an adapter with the same target ID is already registered
|
|
47
|
+
*/
|
|
48
|
+
register(adapter) {
|
|
49
|
+
const id = adapter.getTargetId();
|
|
50
|
+
if (this.adapters.has(id)) {
|
|
51
|
+
throw new Error(`Adapter already registered for target: "${id}"`);
|
|
52
|
+
}
|
|
53
|
+
this.adapters.set(id, adapter);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get an adapter by target ID.
|
|
57
|
+
*
|
|
58
|
+
* @param targetId - The target platform identifier
|
|
59
|
+
* @returns The adapter instance, or undefined if not found
|
|
60
|
+
*/
|
|
61
|
+
get(targetId) {
|
|
62
|
+
return this.adapters.get(targetId);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get an adapter by target ID, throwing if not found.
|
|
66
|
+
*
|
|
67
|
+
* @param targetId - The target platform identifier
|
|
68
|
+
* @returns The adapter instance
|
|
69
|
+
* @throws UnknownTargetError if no adapter is registered for the target
|
|
70
|
+
*/
|
|
71
|
+
getOrThrow(targetId) {
|
|
72
|
+
const adapter = this.adapters.get(targetId);
|
|
73
|
+
if (!adapter) {
|
|
74
|
+
throw new UnknownTargetError(targetId);
|
|
75
|
+
}
|
|
76
|
+
return adapter;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Check if an adapter is registered for a target.
|
|
80
|
+
*
|
|
81
|
+
* @param targetId - The target platform identifier
|
|
82
|
+
* @returns true if an adapter is registered
|
|
83
|
+
*/
|
|
84
|
+
has(targetId) {
|
|
85
|
+
return this.adapters.has(targetId);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* List all registered target IDs.
|
|
89
|
+
*
|
|
90
|
+
* @returns Array of registered target identifiers
|
|
91
|
+
*/
|
|
92
|
+
listTargets() {
|
|
93
|
+
return [...this.adapters.keys()];
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
// ── Factory Function ────────────────────────────────────────────────────────
|
|
97
|
+
/**
|
|
98
|
+
* Create a registry pre-populated with all default platform adapters.
|
|
99
|
+
*
|
|
100
|
+
* @returns AdapterRegistry with all supported prompt adapters
|
|
101
|
+
*/
|
|
102
|
+
export function createDefaultRegistry() {
|
|
103
|
+
const registry = new AdapterRegistry();
|
|
104
|
+
for (const [, factory] of DEFAULT_ADAPTERS) {
|
|
105
|
+
registry.register(factory());
|
|
106
|
+
}
|
|
107
|
+
return registry;
|
|
108
|
+
}
|
|
@@ -1,2 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license FSL-1.1
|
|
3
|
+
* Copyright (c) 2026 OrNexus AI
|
|
4
|
+
*
|
|
5
|
+
* Antigravity Adapter - Formats prompts for the Antigravity platform.
|
|
6
|
+
*
|
|
7
|
+
* Antigravity shares the GEMINI.md format with Gemini CLI but adds
|
|
8
|
+
* platform-specific sections for workflows and rules.
|
|
9
|
+
*
|
|
10
|
+
* Story 42.8
|
|
11
|
+
*/
|
|
12
|
+
// ── Constants ───────────────────────────────────────────────────────────────
|
|
13
|
+
const TARGET_ID = 'antigravity';
|
|
14
|
+
const MAX_CONTEXT_LENGTH = 1_000_000;
|
|
15
|
+
const CAPABILITIES = {
|
|
16
|
+
supportsMarkdown: true,
|
|
17
|
+
supportsMultiFile: true,
|
|
18
|
+
supportsMultiTurn: true,
|
|
19
|
+
supportsTools: true,
|
|
20
|
+
maxContextLength: MAX_CONTEXT_LENGTH,
|
|
21
|
+
};
|
|
22
|
+
// ── Implementation ──────────────────────────────────────────────────────────
|
|
23
|
+
export class AntigravityAdapter {
|
|
24
|
+
formatPrompt(assembledPrompt, platformInstructions, config) {
|
|
25
|
+
const sections = [];
|
|
26
|
+
// Main prompt content (shared Gemini format)
|
|
27
|
+
sections.push(assembledPrompt);
|
|
28
|
+
// @import directives for standards (shared with Gemini)
|
|
29
|
+
if (platformInstructions.contextFiles && platformInstructions.contextFiles.length > 0) {
|
|
30
|
+
sections.push('');
|
|
31
|
+
sections.push('## Standards');
|
|
32
|
+
sections.push('');
|
|
33
|
+
for (const file of platformInstructions.contextFiles) {
|
|
34
|
+
sections.push(`@import ${file}`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
// Antigravity-specific: workflow support
|
|
38
|
+
sections.push('');
|
|
39
|
+
sections.push('## Antigravity-Specific');
|
|
40
|
+
sections.push('');
|
|
41
|
+
sections.push('This GEMINI.md is shared between Gemini CLI and Antigravity targets.');
|
|
42
|
+
sections.push('For Antigravity-specific features:');
|
|
43
|
+
// Tool definitions
|
|
44
|
+
if (platformInstructions.tools && platformInstructions.tools.length > 0) {
|
|
45
|
+
sections.push('');
|
|
46
|
+
sections.push('### Tools');
|
|
47
|
+
sections.push('');
|
|
48
|
+
for (const tool of platformInstructions.tools) {
|
|
49
|
+
sections.push(`- ${tool}`);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
// MCP configuration
|
|
53
|
+
if (platformInstructions.mcpConfig && Object.keys(platformInstructions.mcpConfig).length > 0) {
|
|
54
|
+
sections.push('');
|
|
55
|
+
sections.push('### MCP Servers');
|
|
56
|
+
sections.push('');
|
|
57
|
+
sections.push('```json');
|
|
58
|
+
sections.push(JSON.stringify(platformInstructions.mcpConfig, null, 2));
|
|
59
|
+
sections.push('```');
|
|
60
|
+
}
|
|
61
|
+
let result = sections.join('\n');
|
|
62
|
+
const maxLength = config.maxPromptLength ?? MAX_CONTEXT_LENGTH;
|
|
63
|
+
if (result.length > maxLength) {
|
|
64
|
+
result = result.slice(0, maxLength);
|
|
65
|
+
}
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
68
|
+
getTargetId() {
|
|
69
|
+
return TARGET_ID;
|
|
70
|
+
}
|
|
71
|
+
getCapabilities() {
|
|
72
|
+
return CAPABILITIES;
|
|
73
|
+
}
|
|
74
|
+
getInjectionMethod() {
|
|
75
|
+
return 'file';
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -1,3 +1,79 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license FSL-1.1
|
|
3
|
+
* Copyright (c) 2026 OrNexus AI
|
|
4
|
+
*
|
|
5
|
+
* Claude Code Adapter - Formats prompts as CLAUDE.md content.
|
|
6
|
+
*
|
|
7
|
+
* Claude Code reads system prompts from CLAUDE.md and referenced .md files.
|
|
8
|
+
* This adapter preserves full Markdown formatting, headers, sections,
|
|
9
|
+
* code blocks, and injects platform-specific instructions.
|
|
10
|
+
*
|
|
11
|
+
* Story 42.8
|
|
12
|
+
*/
|
|
13
|
+
// ── Constants ───────────────────────────────────────────────────────────────
|
|
14
|
+
const TARGET_ID = 'claude-code';
|
|
15
|
+
const MAX_CONTEXT_LENGTH = 200_000;
|
|
16
|
+
const CAPABILITIES = {
|
|
17
|
+
supportsMarkdown: true,
|
|
18
|
+
supportsMultiFile: true,
|
|
19
|
+
supportsMultiTurn: true,
|
|
20
|
+
supportsTools: true,
|
|
21
|
+
maxContextLength: MAX_CONTEXT_LENGTH,
|
|
22
|
+
};
|
|
23
|
+
// ── Implementation ──────────────────────────────────────────────────────────
|
|
24
|
+
export class ClaudeCodeAdapter {
|
|
25
|
+
formatPrompt(assembledPrompt, platformInstructions, config) {
|
|
26
|
+
const sections = [];
|
|
27
|
+
// Main prompt content (preserved as-is for Claude Code)
|
|
28
|
+
sections.push(assembledPrompt);
|
|
29
|
+
// Inject platform-specific instructions
|
|
30
|
+
if (platformInstructions.tools && platformInstructions.tools.length > 0) {
|
|
31
|
+
sections.push('');
|
|
32
|
+
sections.push('## Available Tools');
|
|
33
|
+
sections.push('');
|
|
34
|
+
for (const tool of platformInstructions.tools) {
|
|
35
|
+
sections.push(`- ${tool}`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (platformInstructions.mcpConfig && Object.keys(platformInstructions.mcpConfig).length > 0) {
|
|
39
|
+
sections.push('');
|
|
40
|
+
sections.push('## MCP Configuration');
|
|
41
|
+
sections.push('');
|
|
42
|
+
sections.push('```json');
|
|
43
|
+
sections.push(JSON.stringify(platformInstructions.mcpConfig, null, 2));
|
|
44
|
+
sections.push('```');
|
|
45
|
+
}
|
|
46
|
+
if (platformInstructions.contextFiles && platformInstructions.contextFiles.length > 0) {
|
|
47
|
+
sections.push('');
|
|
48
|
+
sections.push('## Context Files');
|
|
49
|
+
sections.push('');
|
|
50
|
+
for (const file of platformInstructions.contextFiles) {
|
|
51
|
+
sections.push(`@${file}`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
// Apply custom headers
|
|
55
|
+
if (config.customHeaders && Object.keys(config.customHeaders).length > 0) {
|
|
56
|
+
const headerLines = [];
|
|
57
|
+
for (const [key, value] of Object.entries(config.customHeaders)) {
|
|
58
|
+
headerLines.push(`${key}: ${value}`);
|
|
59
|
+
}
|
|
60
|
+
sections.unshift(headerLines.join('\n'), '');
|
|
61
|
+
}
|
|
62
|
+
let result = sections.join('\n');
|
|
63
|
+
// Enforce max length if configured
|
|
64
|
+
const maxLength = config.maxPromptLength ?? MAX_CONTEXT_LENGTH;
|
|
65
|
+
if (result.length > maxLength) {
|
|
66
|
+
result = result.slice(0, maxLength);
|
|
67
|
+
}
|
|
68
|
+
return result;
|
|
69
|
+
}
|
|
70
|
+
getTargetId() {
|
|
71
|
+
return TARGET_ID;
|
|
72
|
+
}
|
|
73
|
+
getCapabilities() {
|
|
74
|
+
return CAPABILITIES;
|
|
75
|
+
}
|
|
76
|
+
getInjectionMethod() {
|
|
77
|
+
return 'file';
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -1,2 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license FSL-1.1
|
|
3
|
+
* Copyright (c) 2026 OrNexus AI
|
|
4
|
+
*
|
|
5
|
+
* Codex Adapter - Formats prompts as AGENTS.md content.
|
|
6
|
+
*
|
|
7
|
+
* Codex reads agent instructions from AGENTS.md files.
|
|
8
|
+
* This adapter produces concise, agent-instruction style content
|
|
9
|
+
* optimized for Codex's instruction format.
|
|
10
|
+
*
|
|
11
|
+
* Story 42.8
|
|
12
|
+
*/
|
|
13
|
+
// ── Constants ───────────────────────────────────────────────────────────────
|
|
14
|
+
const TARGET_ID = 'codex';
|
|
15
|
+
const MAX_CONTEXT_LENGTH = 200_000;
|
|
16
|
+
const CAPABILITIES = {
|
|
17
|
+
supportsMarkdown: true,
|
|
18
|
+
supportsMultiFile: false,
|
|
19
|
+
supportsMultiTurn: true,
|
|
20
|
+
supportsTools: true,
|
|
21
|
+
maxContextLength: MAX_CONTEXT_LENGTH,
|
|
22
|
+
};
|
|
23
|
+
// ── Implementation ──────────────────────────────────────────────────────────
|
|
24
|
+
export class CodexAdapter {
|
|
25
|
+
formatPrompt(assembledPrompt, platformInstructions, config) {
|
|
26
|
+
const sections = [];
|
|
27
|
+
// Agent-style header
|
|
28
|
+
sections.push(assembledPrompt);
|
|
29
|
+
// Architecture section (concise)
|
|
30
|
+
if (platformInstructions.tools && platformInstructions.tools.length > 0) {
|
|
31
|
+
sections.push('');
|
|
32
|
+
sections.push('## Tools');
|
|
33
|
+
sections.push('');
|
|
34
|
+
for (const tool of platformInstructions.tools) {
|
|
35
|
+
sections.push(`- ${tool}`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
// Context references
|
|
39
|
+
if (platformInstructions.contextFiles && platformInstructions.contextFiles.length > 0) {
|
|
40
|
+
sections.push('');
|
|
41
|
+
sections.push('## Context Files');
|
|
42
|
+
sections.push('');
|
|
43
|
+
for (const file of platformInstructions.contextFiles) {
|
|
44
|
+
sections.push(`- ${file}`);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// MCP config (Codex supports MCP via config-mcp.toml)
|
|
48
|
+
if (platformInstructions.mcpConfig && Object.keys(platformInstructions.mcpConfig).length > 0) {
|
|
49
|
+
sections.push('');
|
|
50
|
+
sections.push('## MCP Configuration');
|
|
51
|
+
sections.push('');
|
|
52
|
+
sections.push('```toml');
|
|
53
|
+
// Convert to TOML-style representation
|
|
54
|
+
for (const [key, value] of Object.entries(platformInstructions.mcpConfig)) {
|
|
55
|
+
sections.push(`[${key}]`);
|
|
56
|
+
if (typeof value === 'object' && value !== null) {
|
|
57
|
+
for (const [subKey, subValue] of Object.entries(value)) {
|
|
58
|
+
sections.push(`${subKey} = ${JSON.stringify(subValue)}`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
sections.push('```');
|
|
63
|
+
}
|
|
64
|
+
let result = sections.join('\n');
|
|
65
|
+
const maxLength = config.maxPromptLength ?? MAX_CONTEXT_LENGTH;
|
|
66
|
+
if (result.length > maxLength) {
|
|
67
|
+
result = result.slice(0, maxLength);
|
|
68
|
+
}
|
|
69
|
+
return result;
|
|
70
|
+
}
|
|
71
|
+
getTargetId() {
|
|
72
|
+
return TARGET_ID;
|
|
73
|
+
}
|
|
74
|
+
getCapabilities() {
|
|
75
|
+
return CAPABILITIES;
|
|
76
|
+
}
|
|
77
|
+
getInjectionMethod() {
|
|
78
|
+
return 'file';
|
|
79
|
+
}
|
|
80
|
+
}
|