supracortex 0.2.0 → 0.2.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/api.js +1 -1
- package/dist/cli.js +21 -30
- package/dist/mcp.js +1 -1
- package/dist/opencode-v2.js +1 -1
- package/dist/opencode.js +1 -1
- package/dist/types/packages/opencode/src/plugin.d.ts +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -1462,7 +1462,7 @@ function emptyJevMetrics() {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
|
|
1464
1464
|
// src/version.ts
|
|
1465
|
-
var PACKAGE_VERSION = "0.2.
|
|
1465
|
+
var PACKAGE_VERSION = "0.2.1";
|
|
1466
1466
|
var TOOLSET_API_VERSION = "2.0.0";
|
|
1467
1467
|
var CONFIG_SCHEMA_VERSION = 2;
|
|
1468
1468
|
var STORAGE_SCHEMA_VERSION = 5;
|
package/dist/cli.js
CHANGED
|
@@ -19,7 +19,7 @@ var PACKAGE_VERSION, TOOLSET_API_VERSION, CONFIG_SCHEMA_VERSION, STORAGE_SCHEMA_
|
|
|
19
19
|
var init_version = __esm({
|
|
20
20
|
"src/version.ts"() {
|
|
21
21
|
"use strict";
|
|
22
|
-
PACKAGE_VERSION = "0.2.
|
|
22
|
+
PACKAGE_VERSION = "0.2.1";
|
|
23
23
|
TOOLSET_API_VERSION = "2.0.0";
|
|
24
24
|
CONFIG_SCHEMA_VERSION = 2;
|
|
25
25
|
STORAGE_SCHEMA_VERSION = 5;
|
|
@@ -17607,7 +17607,6 @@ async function main() {
|
|
|
17607
17607
|
}
|
|
17608
17608
|
}
|
|
17609
17609
|
if (cmd === void 0) {
|
|
17610
|
-
if (process.stdin.isTTY) return runOpenCodeMain([]);
|
|
17611
17610
|
log(await usage());
|
|
17612
17611
|
return 0;
|
|
17613
17612
|
}
|
|
@@ -17701,7 +17700,7 @@ async function main() {
|
|
|
17701
17700
|
const target = process.argv[3] ?? "";
|
|
17702
17701
|
const hosts = target === "all" ? ["codex", "claude"] : CONNECT_HOSTS2.includes(target) ? [target] : [];
|
|
17703
17702
|
if (!hosts.length) {
|
|
17704
|
-
log(`Usage:
|
|
17703
|
+
log(`Usage: supracortex ${cmd} <codex|claude|generic|all>`);
|
|
17705
17704
|
return 2;
|
|
17706
17705
|
}
|
|
17707
17706
|
let failed = false;
|
|
@@ -17835,7 +17834,7 @@ async function main() {
|
|
|
17835
17834
|
const src = !cred ? "none" : cred.source === "env" ? `environment (${name})` : cred.source;
|
|
17836
17835
|
log(`provider ${p.id} ${p.model}`);
|
|
17837
17836
|
log(`key ${cred ? `set \u2014 from ${src}` : `not set -> deterministic context`}`);
|
|
17838
|
-
log(`lookup 1) ${name} env 2) ${core.USER_CREDENTIALS_DIR}/*.env 3) OpenCode/
|
|
17837
|
+
log(`lookup 1) ${name} env 2) ${core.USER_CREDENTIALS_DIR}/*.env 3) OpenCode/OpenCode OpenRouter login 4) system files`);
|
|
17839
17838
|
};
|
|
17840
17839
|
if (sub === "status") {
|
|
17841
17840
|
describe();
|
|
@@ -17847,7 +17846,7 @@ async function main() {
|
|
|
17847
17846
|
let value = process.argv[4];
|
|
17848
17847
|
if (!value || value === "-") {
|
|
17849
17848
|
if (process.stdin.isTTY && !value) {
|
|
17850
|
-
log("usage:
|
|
17849
|
+
log("usage: supracortex jev key <OPENROUTER_KEY> (or: echo $KEY | supracortex jev key -)");
|
|
17851
17850
|
return 2;
|
|
17852
17851
|
}
|
|
17853
17852
|
value = (await new Promise((res) => {
|
|
@@ -17894,7 +17893,7 @@ async function main() {
|
|
|
17894
17893
|
log(c.ok ? `ACTIVE (${c.latencyMs}ms, model ${c.echoedModel ?? p.model})` : `not active: ${c.reason}`);
|
|
17895
17894
|
return c.ok ? 0 : 1;
|
|
17896
17895
|
}
|
|
17897
|
-
log("usage:
|
|
17896
|
+
log("usage: supracortex jev [status|key <KEY>|key -|forget|login|test]");
|
|
17898
17897
|
return 2;
|
|
17899
17898
|
}
|
|
17900
17899
|
case "provider": {
|
|
@@ -17919,13 +17918,13 @@ ${"".padEnd(12)} ${r.model} @ ${r.endpoint} (key: ${r.apiKeyEnv || "none"})`);
|
|
|
17919
17918
|
log(`credential ${s.credential}${s.apiKeyEnv ? ` (${s.apiKeyEnv}${s.credentialSource ? ` from ${s.credentialSource === "env" ? "environment" : s.credentialSource}` : ""})` : ""}`);
|
|
17920
17919
|
log(`budget deadline ${s.deadlineMs}ms, per-request ${s.enrichmentBudgetMs}ms`);
|
|
17921
17920
|
log(`config central ${s.configSource.global}${s.configSource.ignoredProjectKeys.length ? `
|
|
17922
|
-
ignored stale project keys: ${s.configSource.ignoredProjectKeys.join(", ")} (run '
|
|
17921
|
+
ignored stale project keys: ${s.configSource.ignoredProjectKeys.join(", ")} (run 'supracortex config migrate --yes')` : ""}`);
|
|
17923
17922
|
return 0;
|
|
17924
17923
|
}
|
|
17925
17924
|
if (sub === "use") {
|
|
17926
17925
|
const id = process.argv[4];
|
|
17927
17926
|
if (!id || id.startsWith("--")) {
|
|
17928
|
-
log("usage:
|
|
17927
|
+
log("usage: supracortex provider use <jev|laya-local|laya-hosted|custom> [--endpoint URL] [--model ID]");
|
|
17929
17928
|
return 2;
|
|
17930
17929
|
}
|
|
17931
17930
|
try {
|
|
@@ -18420,7 +18419,7 @@ async function runOpenCodeMain(raw) {
|
|
|
18420
18419
|
}
|
|
18421
18420
|
refreshConfigFarm(paths);
|
|
18422
18421
|
} catch (err) {
|
|
18423
|
-
log(`
|
|
18422
|
+
log(`supracortex: cannot prepare the isolated profile (${err.message}).`);
|
|
18424
18423
|
return 1;
|
|
18425
18424
|
}
|
|
18426
18425
|
const shared = buildSharedLayer(paths);
|
|
@@ -18440,7 +18439,7 @@ async function runOpenCodeMain(raw) {
|
|
|
18440
18439
|
return new Promise((settle) => {
|
|
18441
18440
|
child.on("error", (err) => {
|
|
18442
18441
|
log(
|
|
18443
|
-
`
|
|
18442
|
+
`supracortex run: cannot launch "${bin}" (${err instanceof Error ? err.message : "spawn failed"}). Install OpenCode 1.x (https://opencode.ai) or set OPENCODE_BIN.`
|
|
18444
18443
|
);
|
|
18445
18444
|
settle(1);
|
|
18446
18445
|
});
|
|
@@ -18587,34 +18586,26 @@ function formatBytes(n) {
|
|
|
18587
18586
|
}
|
|
18588
18587
|
async function usage() {
|
|
18589
18588
|
return [
|
|
18590
|
-
"
|
|
18591
|
-
"supracode run [--no-cortex] [-- <opencode args...>] Launch SupraCode on OpenCode (bare `supracode` on a TTY does the same; --pi selects the parked Pi host)",
|
|
18589
|
+
"supracortex <command>",
|
|
18592
18590
|
"",
|
|
18593
18591
|
"Commands:",
|
|
18594
|
-
"
|
|
18595
|
-
" v2 [--no-cortex] [-- <v2 args>] Launch SupraCode on the pinned OpenCode V2 host (aka supracode2)",
|
|
18596
|
-
" pi [--no-cortex] [-- <pi args>] Launch SupraCode Pi (the Pi-based host; also the supracode-pi command)",
|
|
18597
|
-
" install [--global] [--force] Install plugin into the current project",
|
|
18592
|
+
" install [--global] [--force] Install the plugin into the current project",
|
|
18598
18593
|
" uninstall [--keep-data|--remove-data] [--global]",
|
|
18599
|
-
"
|
|
18600
|
-
"
|
|
18601
|
-
" connect <codex|claude|generic|all> Register SupraCortex as a global MCP server in Codex / Claude Code, or print a JSON snippet for any MCP host",
|
|
18594
|
+
" init [--yes] [--agent <name>] Wire project MCP config and guidance",
|
|
18595
|
+
" connect <codex|claude|generic|all> Register SupraCortex as an MCP server",
|
|
18602
18596
|
" disconnect <codex|claude|all> Remove that registration",
|
|
18603
|
-
" config [path|show|migrate [--yes]] Central config: show effective settings; strip stale per-project files",
|
|
18604
|
-
" profile [path|init|verify] SupraCode's isolated OpenCode profile (verify = prove stock is untouched)",
|
|
18605
|
-
" migrate [--yes] Remove SupraCortex artifacts from stock ~/.config/opencode (dry run without --yes)",
|
|
18606
18597
|
" enable Persist enabled=true",
|
|
18607
18598
|
" disable Persist enabled=false",
|
|
18608
|
-
" status [--json] [--check-handshake] Show status
|
|
18609
|
-
" doctor [--fix] [--global] Run health checks
|
|
18599
|
+
" status [--json] [--check-handshake] Show effective status",
|
|
18600
|
+
" doctor [--fix] [--global] Run health checks",
|
|
18610
18601
|
" compact Compact memory",
|
|
18611
18602
|
' inspect "<query>" Explain what context would be prepared',
|
|
18612
|
-
" reset <target> --yes Reset generated data (
|
|
18613
|
-
"
|
|
18614
|
-
"
|
|
18615
|
-
"
|
|
18616
|
-
|
|
18617
|
-
|
|
18603
|
+
" reset <target> --yes Reset generated data (cache|index|sessions|metrics|all-generated|all)",
|
|
18604
|
+
" provider [list|show|use <id>|check] Decision provider configuration",
|
|
18605
|
+
" jev [status|key <KEY>|forget|login|test] Jev decision model",
|
|
18606
|
+
" graph [--pretty] Export intelligence as a nodes/edges graph JSON",
|
|
18607
|
+
" code-graph status|enable|disable|rebuild|query|path|explain|impact Local file/symbol graph",
|
|
18608
|
+
' context "<query>" [--agent <role>] Emit a prompt-injection context block for any CLI',
|
|
18618
18609
|
" version Print version"
|
|
18619
18610
|
].join("\n");
|
|
18620
18611
|
}
|
package/dist/mcp.js
CHANGED
|
@@ -1400,7 +1400,7 @@ import { readFile as readFile8, stat as stat5 } from "node:fs/promises";
|
|
|
1400
1400
|
import { join as join12 } from "node:path";
|
|
1401
1401
|
|
|
1402
1402
|
// src/version.ts
|
|
1403
|
-
var PACKAGE_VERSION = "0.2.
|
|
1403
|
+
var PACKAGE_VERSION = "0.2.1";
|
|
1404
1404
|
var TOOLSET_API_VERSION = "2.0.0";
|
|
1405
1405
|
var STORAGE_SCHEMA_VERSION = 5;
|
|
1406
1406
|
var CODE_GRAPH_SCHEMA_VERSION = 1;
|
package/dist/opencode-v2.js
CHANGED
|
@@ -1391,7 +1391,7 @@ var init_importers = __esm({
|
|
|
1391
1391
|
});
|
|
1392
1392
|
|
|
1393
1393
|
// src/version.ts
|
|
1394
|
-
var PACKAGE_VERSION = "0.2.
|
|
1394
|
+
var PACKAGE_VERSION = "0.2.1";
|
|
1395
1395
|
var STORAGE_SCHEMA_VERSION = 5;
|
|
1396
1396
|
var CODE_GRAPH_SCHEMA_VERSION = 1;
|
|
1397
1397
|
var CODE_GRAPH_EXTRACTOR_VERSION = 1;
|
package/dist/opencode.js
CHANGED
|
@@ -37,7 +37,7 @@ var PACKAGE_VERSION, TOOLSET_API_VERSION, CONFIG_SCHEMA_VERSION, STORAGE_SCHEMA_
|
|
|
37
37
|
var init_version = __esm({
|
|
38
38
|
"src/version.ts"() {
|
|
39
39
|
"use strict";
|
|
40
|
-
PACKAGE_VERSION = "0.2.
|
|
40
|
+
PACKAGE_VERSION = "0.2.1";
|
|
41
41
|
TOOLSET_API_VERSION = "2.0.0";
|
|
42
42
|
CONFIG_SCHEMA_VERSION = 2;
|
|
43
43
|
STORAGE_SCHEMA_VERSION = 5;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import type { Plugin } from "@opencode-ai/plugin";
|
|
18
18
|
import type { HostUsageObservation } from "@local/supracortex-core";
|
|
19
19
|
/** @deprecated Use PACKAGE_VERSION. Kept as an adapter compatibility export. */
|
|
20
|
-
export declare const PLUGIN_VERSION = "0.2.
|
|
20
|
+
export declare const PLUGIN_VERSION = "0.2.1";
|
|
21
21
|
/** Closed set of skip reasons. Unknown reasons are forbidden. */
|
|
22
22
|
export type InjectionSkipReason = "no-query" | "empty-packet" | "dedup" | "disabled" | "gate-below-threshold";
|
|
23
23
|
/** Full reason set: skips plus the successful-injection marker. */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* the root package manifest. Keeping the runtime import here avoids each host
|
|
6
6
|
* adapter carrying an independently maintained version string.
|
|
7
7
|
*/
|
|
8
|
-
export declare const PACKAGE_VERSION = "0.2.
|
|
8
|
+
export declare const PACKAGE_VERSION = "0.2.1";
|
|
9
9
|
/** SupraCortex operation contract, distinct from the MCP protocol date. */
|
|
10
10
|
export declare const TOOLSET_API_VERSION = "2.0.0";
|
|
11
11
|
/** Persisted/configuration namespaces intentionally evolve independently.
|
package/package.json
CHANGED