nexus-agents 2.83.1 → 2.84.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/dist/{child-mcp-config-3ZW2UPKZ.js → child-mcp-config-VSGPMVLL.js} +3 -3
- package/dist/{chunk-LM2S2QWO.js → chunk-2PKAWFEU.js} +3 -2
- package/dist/{chunk-LM2S2QWO.js.map → chunk-2PKAWFEU.js.map} +1 -1
- package/dist/{chunk-I2HMWH4R.js → chunk-2WCYG75B.js} +13 -2
- package/dist/chunk-2WCYG75B.js.map +1 -0
- package/dist/{chunk-J4ZBKE4B.js → chunk-3PFESR6I.js} +1844 -1552
- package/dist/chunk-3PFESR6I.js.map +1 -0
- package/dist/{chunk-JA6ON2RP.js → chunk-4IXQ6IXI.js} +2 -2
- package/dist/{chunk-O3XJLOEX.js → chunk-5LFUZ5IC.js} +2 -2
- package/dist/{chunk-DWOSFYI2.js → chunk-BX3MUA26.js} +2 -2
- package/dist/{chunk-MATFDJRW.js → chunk-CJHIKBWI.js} +4 -4
- package/dist/{chunk-XODXYOFN.js → chunk-D5BKSM6H.js} +2 -2
- package/dist/{chunk-W6MLS2UL.js → chunk-GBGMTN7O.js} +2 -2
- package/dist/{chunk-6UI4NKT4.js → chunk-HLNMWGW3.js} +27 -4
- package/dist/chunk-HLNMWGW3.js.map +1 -0
- package/dist/{chunk-HGPIHDC4.js → chunk-I3O5WOGW.js} +4 -4
- package/dist/{chunk-FHY7I736.js → chunk-KK2RZVPU.js} +2 -2
- package/dist/{chunk-ZA6AZ7LK.js → chunk-KRRBRT7B.js} +6 -6
- package/dist/{chunk-7V367KT4.js → chunk-KVYQOOML.js} +7 -23
- package/dist/chunk-KVYQOOML.js.map +1 -0
- package/dist/{chunk-5QJPM5CB.js → chunk-MBD5EJBO.js} +3 -3
- package/dist/{chunk-ELRNVADA.js → chunk-OE7OL2BE.js} +155 -47
- package/dist/chunk-OE7OL2BE.js.map +1 -0
- package/dist/{chunk-BUXXAN6V.js → chunk-OROUYVUX.js} +2 -2
- package/dist/{chunk-TKGVRHEI.js → chunk-QIRZSDJK.js} +2 -2
- package/dist/{chunk-ZLGU7T6J.js → chunk-REH5BB67.js} +78 -63
- package/dist/chunk-REH5BB67.js.map +1 -0
- package/dist/{chunk-SZZS57X7.js → chunk-RZVEVT3M.js} +7 -7
- package/dist/{chunk-IM2B3FK2.js → chunk-T6B6CKU6.js} +4 -4
- package/dist/chunk-T6B6CKU6.js.map +1 -0
- package/dist/{chunk-VXIHHHLQ.js → chunk-UJMIGLZI.js} +2 -2
- package/dist/{chunk-6XRNFLPI.js → chunk-V35FWPHD.js} +2 -2
- package/dist/{chunk-ODKIRXN7.js → chunk-V7RC2PIY.js} +20 -11
- package/dist/chunk-V7RC2PIY.js.map +1 -0
- package/dist/{chunk-4XSCU4B3.js → chunk-VQIWH6X4.js} +8 -8
- package/dist/{chunk-BICIQYET.js → chunk-VXHDZULO.js} +3 -3
- package/dist/{chunk-UFUR6RBP.js → chunk-XK523BNC.js} +2 -2
- package/dist/chunk-YVG32OQF.js +27 -0
- package/dist/chunk-YVG32OQF.js.map +1 -0
- package/dist/{chunk-A6WC5I7V.js → chunk-ZJGCOJC6.js} +4 -4
- package/dist/{cli-circuit-breaker-LC4NZUGD.js → cli-circuit-breaker-6EQKYNAA.js} +5 -5
- package/dist/cli.js +36 -33
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-GXQ25DO4.js → composite-router-SA4XHXA3.js} +3 -3
- package/dist/{consensus-vote-MTLP6E72.js → consensus-vote-QKUHNHS4.js} +13 -12
- package/dist/{context-retriever-GQRC2MVM.js → context-retriever-XX4TQBIB.js} +7 -6
- package/dist/{doctor-deep-T3UUJX2E.js → doctor-deep-NB7IDWJE.js} +4 -4
- package/dist/expert-bridge-4MHM77VW.js +13 -0
- package/dist/{factory-OKNCTJO6.js → factory-FKOPQXRS.js} +6 -5
- package/dist/factory-UHH4ZZ64.js +14 -0
- package/dist/index.d.ts +111 -6
- package/dist/index.js +59 -26
- package/dist/index.js.map +1 -1
- package/dist/{init-opencode-KDTBKLXS.js → init-opencode-AVYAC33Q.js} +6 -6
- package/dist/issue-triage-7PYND7PY.js +15 -0
- package/dist/{learning-persistence-NX2KHL5T.js → learning-persistence-5ALG6XRC.js} +2 -2
- package/dist/{registry-command-D56ROMFJ.js → registry-command-7SFNZRG5.js} +3 -3
- package/dist/{repo-security-plan-N3CDMW6L.js → repo-security-plan-MTVL5B73.js} +4 -4
- package/dist/{research-helpers-synthesize-36QBOKII.js → research-helpers-synthesize-6CJ5P4WL.js} +4 -4
- package/dist/{routing-memory-6IEPJ3EP.js → routing-memory-Y577PXFP.js} +3 -3
- package/dist/{session-memory-X6SCDFER.js → session-memory-6YFGMEMP.js} +4 -4
- package/dist/{setup-command-5AEO5A4Z.js → setup-command-YBTD6D53.js} +12 -11
- package/dist/setup-config-BQYLUJHY.js +10 -0
- package/dist/{setup-custom-api-RBOJT3SS.js → setup-custom-api-ZB7LOQC5.js} +5 -5
- package/dist/{tool-memory-EEHITQRJ.js → tool-memory-GFYQFRQI.js} +6 -5
- package/dist/{weather-report-6BC3JK5H.js → weather-report-CN6WPJI4.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-6UI4NKT4.js.map +0 -1
- package/dist/chunk-7V367KT4.js.map +0 -1
- package/dist/chunk-ELRNVADA.js.map +0 -1
- package/dist/chunk-I2HMWH4R.js.map +0 -1
- package/dist/chunk-IM2B3FK2.js.map +0 -1
- package/dist/chunk-J4ZBKE4B.js.map +0 -1
- package/dist/chunk-ODKIRXN7.js.map +0 -1
- package/dist/chunk-ZLGU7T6J.js.map +0 -1
- package/dist/expert-bridge-7LPGCPPR.js +0 -13
- package/dist/factory-3XB5CAAA.js +0 -14
- package/dist/issue-triage-MURMDN2G.js +0 -15
- package/dist/setup-config-RPSVIQJO.js +0 -10
- /package/dist/{child-mcp-config-3ZW2UPKZ.js.map → child-mcp-config-VSGPMVLL.js.map} +0 -0
- /package/dist/{chunk-JA6ON2RP.js.map → chunk-4IXQ6IXI.js.map} +0 -0
- /package/dist/{chunk-O3XJLOEX.js.map → chunk-5LFUZ5IC.js.map} +0 -0
- /package/dist/{chunk-DWOSFYI2.js.map → chunk-BX3MUA26.js.map} +0 -0
- /package/dist/{chunk-MATFDJRW.js.map → chunk-CJHIKBWI.js.map} +0 -0
- /package/dist/{chunk-XODXYOFN.js.map → chunk-D5BKSM6H.js.map} +0 -0
- /package/dist/{chunk-W6MLS2UL.js.map → chunk-GBGMTN7O.js.map} +0 -0
- /package/dist/{chunk-HGPIHDC4.js.map → chunk-I3O5WOGW.js.map} +0 -0
- /package/dist/{chunk-FHY7I736.js.map → chunk-KK2RZVPU.js.map} +0 -0
- /package/dist/{chunk-ZA6AZ7LK.js.map → chunk-KRRBRT7B.js.map} +0 -0
- /package/dist/{chunk-5QJPM5CB.js.map → chunk-MBD5EJBO.js.map} +0 -0
- /package/dist/{chunk-BUXXAN6V.js.map → chunk-OROUYVUX.js.map} +0 -0
- /package/dist/{chunk-TKGVRHEI.js.map → chunk-QIRZSDJK.js.map} +0 -0
- /package/dist/{chunk-SZZS57X7.js.map → chunk-RZVEVT3M.js.map} +0 -0
- /package/dist/{chunk-VXIHHHLQ.js.map → chunk-UJMIGLZI.js.map} +0 -0
- /package/dist/{chunk-6XRNFLPI.js.map → chunk-V35FWPHD.js.map} +0 -0
- /package/dist/{chunk-4XSCU4B3.js.map → chunk-VQIWH6X4.js.map} +0 -0
- /package/dist/{chunk-BICIQYET.js.map → chunk-VXHDZULO.js.map} +0 -0
- /package/dist/{chunk-UFUR6RBP.js.map → chunk-XK523BNC.js.map} +0 -0
- /package/dist/{chunk-A6WC5I7V.js.map → chunk-ZJGCOJC6.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-LC4NZUGD.js.map → cli-circuit-breaker-6EQKYNAA.js.map} +0 -0
- /package/dist/{composite-router-GXQ25DO4.js.map → composite-router-SA4XHXA3.js.map} +0 -0
- /package/dist/{consensus-vote-MTLP6E72.js.map → consensus-vote-QKUHNHS4.js.map} +0 -0
- /package/dist/{context-retriever-GQRC2MVM.js.map → context-retriever-XX4TQBIB.js.map} +0 -0
- /package/dist/{doctor-deep-T3UUJX2E.js.map → doctor-deep-NB7IDWJE.js.map} +0 -0
- /package/dist/{expert-bridge-7LPGCPPR.js.map → expert-bridge-4MHM77VW.js.map} +0 -0
- /package/dist/{factory-3XB5CAAA.js.map → factory-FKOPQXRS.js.map} +0 -0
- /package/dist/{factory-OKNCTJO6.js.map → factory-UHH4ZZ64.js.map} +0 -0
- /package/dist/{init-opencode-KDTBKLXS.js.map → init-opencode-AVYAC33Q.js.map} +0 -0
- /package/dist/{issue-triage-MURMDN2G.js.map → issue-triage-7PYND7PY.js.map} +0 -0
- /package/dist/{learning-persistence-NX2KHL5T.js.map → learning-persistence-5ALG6XRC.js.map} +0 -0
- /package/dist/{registry-command-D56ROMFJ.js.map → registry-command-7SFNZRG5.js.map} +0 -0
- /package/dist/{repo-security-plan-N3CDMW6L.js.map → repo-security-plan-MTVL5B73.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-36QBOKII.js.map → research-helpers-synthesize-6CJ5P4WL.js.map} +0 -0
- /package/dist/{routing-memory-6IEPJ3EP.js.map → routing-memory-Y577PXFP.js.map} +0 -0
- /package/dist/{session-memory-X6SCDFER.js.map → session-memory-6YFGMEMP.js.map} +0 -0
- /package/dist/{setup-command-5AEO5A4Z.js.map → setup-command-YBTD6D53.js.map} +0 -0
- /package/dist/{setup-config-RPSVIQJO.js.map → setup-config-BQYLUJHY.js.map} +0 -0
- /package/dist/{setup-custom-api-RBOJT3SS.js.map → setup-custom-api-ZB7LOQC5.js.map} +0 -0
- /package/dist/{tool-memory-EEHITQRJ.js.map → tool-memory-GFYQFRQI.js.map} +0 -0
- /package/dist/{weather-report-6BC3JK5H.js.map → weather-report-CN6WPJI4.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULTS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BX3MUA26.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveInsideRoot
|
|
6
6
|
} from "./chunk-NUBSJGQZ.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
createAllAdapters,
|
|
12
12
|
probeCli
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OE7OL2BE.js";
|
|
14
14
|
import {
|
|
15
15
|
CliNameSchema,
|
|
16
16
|
DEFAULT_CAPABILITIES,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
ok,
|
|
27
27
|
symbols,
|
|
28
28
|
writeLine
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HLNMWGW3.js";
|
|
30
30
|
import {
|
|
31
31
|
detectSandbox,
|
|
32
32
|
getLearningDir,
|
|
@@ -37,10 +37,10 @@ import {
|
|
|
37
37
|
getRulesFile,
|
|
38
38
|
isPersistenceEnabled,
|
|
39
39
|
nexusDataPath
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-2WCYG75B.js";
|
|
41
41
|
|
|
42
42
|
// src/version.ts
|
|
43
|
-
var VERSION = true ? "2.
|
|
43
|
+
var VERSION = true ? "2.84.0" : "dev";
|
|
44
44
|
|
|
45
45
|
// src/config/schemas-core.ts
|
|
46
46
|
import { z } from "zod";
|
|
@@ -2096,7 +2096,7 @@ async function runDoctorFix(result) {
|
|
|
2096
2096
|
writeLine2("\u2500".repeat(40));
|
|
2097
2097
|
let fixCount = 0;
|
|
2098
2098
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
2099
|
-
const { runSetup } = await import("./setup-command-
|
|
2099
|
+
const { runSetup } = await import("./setup-command-YBTD6D53.js");
|
|
2100
2100
|
const setupResult = runSetup({
|
|
2101
2101
|
skipMcp: true,
|
|
2102
2102
|
skipRules: true,
|
|
@@ -2110,7 +2110,7 @@ async function runDoctorFix(result) {
|
|
|
2110
2110
|
}
|
|
2111
2111
|
}
|
|
2112
2112
|
if (!result.configFile.found) {
|
|
2113
|
-
const { runConfigInitSync } = await import("./setup-config-
|
|
2113
|
+
const { runConfigInitSync } = await import("./setup-config-BQYLUJHY.js");
|
|
2114
2114
|
const configResult = runConfigInitSync(process.cwd(), false, false);
|
|
2115
2115
|
if (configResult.success && configResult.created) {
|
|
2116
2116
|
writeLine2(`\u2713 Generated config: ${configResult.path}`);
|
|
@@ -2208,4 +2208,4 @@ export {
|
|
|
2208
2208
|
startStdioServer,
|
|
2209
2209
|
closeServer
|
|
2210
2210
|
};
|
|
2211
|
-
//# sourceMappingURL=chunk-
|
|
2211
|
+
//# sourceMappingURL=chunk-VQIWH6X4.js.map
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
CircuitBreakerRegistry,
|
|
3
3
|
CircuitError,
|
|
4
4
|
mapCliErrorToCategory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2PKAWFEU.js";
|
|
6
6
|
import {
|
|
7
7
|
createLogger,
|
|
8
8
|
err,
|
|
9
9
|
getFallbackChainForCategory,
|
|
10
10
|
getTimeProvider,
|
|
11
11
|
ok
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HLNMWGW3.js";
|
|
13
13
|
|
|
14
14
|
// src/cli-adapters/cli-circuit-breaker.ts
|
|
15
15
|
var CATEGORY_TO_FALLBACK = {
|
|
@@ -152,4 +152,4 @@ export {
|
|
|
152
152
|
CliCircuitBreakerIntegration,
|
|
153
153
|
createCliCircuitBreakerIntegration
|
|
154
154
|
};
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
155
|
+
//# sourceMappingURL=chunk-VXHDZULO.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getErrorMessage,
|
|
5
5
|
getTimeProvider,
|
|
6
6
|
ok
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HLNMWGW3.js";
|
|
8
8
|
|
|
9
9
|
// src/context/session-memory.ts
|
|
10
10
|
import * as fs from "fs";
|
|
@@ -351,4 +351,4 @@ export {
|
|
|
351
351
|
SessionMemory,
|
|
352
352
|
createSessionMemory
|
|
353
353
|
};
|
|
354
|
-
//# sourceMappingURL=chunk-
|
|
354
|
+
//# sourceMappingURL=chunk-XK523BNC.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getRandomProvider,
|
|
3
|
+
getTimeProvider
|
|
4
|
+
} from "./chunk-HLNMWGW3.js";
|
|
5
|
+
|
|
6
|
+
// src/utils/id-utils.ts
|
|
7
|
+
import { randomUUID } from "crypto";
|
|
8
|
+
function generateId(prefix, randomLength = 8) {
|
|
9
|
+
const timestamp = getTimeProvider().now().toString(36);
|
|
10
|
+
const random = getRandomProvider().random().toString(36).substring(2, 2 + randomLength);
|
|
11
|
+
return `${prefix}_${timestamp}_${random}`;
|
|
12
|
+
}
|
|
13
|
+
function generateHyphenId(prefix, randomLength = 6) {
|
|
14
|
+
const timestamp = String(getTimeProvider().now());
|
|
15
|
+
const random = getRandomProvider().random().toString(36).slice(2, 2 + randomLength);
|
|
16
|
+
return `${prefix}-${timestamp}-${random}`;
|
|
17
|
+
}
|
|
18
|
+
function generateUUID() {
|
|
19
|
+
return randomUUID();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
generateId,
|
|
24
|
+
generateHyphenId,
|
|
25
|
+
generateUUID
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=chunk-YVG32OQF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/id-utils.ts"],"sourcesContent":["/**\n * nexus-agents/utils - ID Generation Utilities\n *\n * Shared utility functions for generating unique identifiers.\n * Consolidates duplicate generateId implementations per ADR-0013.\n *\n * Uses getTimeProvider and getRandomProvider for deterministic testing.\n *\n * @module utils/id-utils\n * @see docs/adr/0013-memory-helpers-consolidation.md\n */\n\nimport { randomUUID } from 'node:crypto';\nimport { getTimeProvider, getRandomProvider } from '../core/index.js';\n\n/**\n * Generate a unique ID with prefix using timestamp and random suffix.\n *\n * Format: `${prefix}_${timestamp}_${random}` (underscore-separated)\n *\n * Uses getTimeProvider() and getRandomProvider() for deterministic testing.\n *\n * @param prefix - ID prefix (e.g., 'belief', 'update', 'exec')\n * @param randomLength - Length of random suffix (default: 8)\n * @returns Unique ID string\n *\n * @example\n * ```typescript\n * const beliefId = generateId('belief'); // 'belief_1p5k3x2_a1b2c3d4'\n * const execId = generateId('exec', 6); // 'exec_1p5k3x2_a1b2c3'\n * ```\n */\nexport function generateId(prefix: string, randomLength = 8): string {\n const timestamp = getTimeProvider().now().toString(36);\n const random = getRandomProvider()\n .random()\n .toString(36)\n .substring(2, 2 + randomLength);\n return `${prefix}_${timestamp}_${random}`;\n}\n\n/**\n * Generate a unique ID with hyphen separators.\n *\n * Format: `${prefix}-${timestamp}-${random}` (hyphen-separated)\n *\n * @param prefix - ID prefix\n * @param randomLength - Length of random suffix (default: 6)\n * @returns Unique ID string\n *\n * @example\n * ```typescript\n * const id = generateHyphenId('workflow'); // 'workflow-1769876392192-a1b2c3'\n * ```\n */\nexport function generateHyphenId(prefix: string, randomLength = 6): string {\n const timestamp = String(getTimeProvider().now());\n const random = getRandomProvider()\n .random()\n .toString(36)\n .slice(2, 2 + randomLength);\n return `${prefix}-${timestamp}-${random}`;\n}\n\n/**\n * Generate a short unique ID using randomUUID.\n *\n * Format: `${prefix}-${shortUuid}` where shortUuid is first 8 chars of UUID.\n *\n * @param prefix - ID prefix\n * @returns Short unique ID string\n *\n * @example\n * ```typescript\n * const id = generateShortUuid('workflow'); // 'workflow-a1b2c3d4'\n * ```\n */\nexport function generateShortUuid(prefix: string): string {\n // Use random provider for determinism, generate UUID-like pattern\n const rand1 = getRandomProvider().random().toString(16).substring(2, 6);\n const rand2 = getRandomProvider().random().toString(16).substring(2, 6);\n return `${prefix}-${rand1}${rand2}`;\n}\n\n// ============================================================================\n// UUID Generation (node:crypto)\n// ============================================================================\n\n/**\n * Generates a UUID v4 using node:crypto.randomUUID().\n * This is the canonical UUID generator - use instead of `uuid` package.\n *\n * Note: This uses node:crypto directly for performance. For deterministic\n * testing scenarios, use generateId() or generateShortUuid() instead.\n *\n * @returns A UUID v4 string\n *\n * @example\n * ```typescript\n * const id = generateUUID(); // 'f47ac10b-58cc-4372-a567-0e02b2c3d479'\n * ```\n */\nexport function generateUUID(): string {\n return randomUUID();\n}\n\n/**\n * Generates a short UUID (first 8 characters).\n * Useful for display purposes or step IDs.\n *\n * @param prefix - Optional prefix for the ID\n * @returns A short UUID string, optionally prefixed\n *\n * @example\n * ```typescript\n * const id = generateShortUUIDv4(); // 'f47ac10b'\n * const stepId = generateShortUUIDv4('step'); // 'step-f47ac10b'\n * ```\n */\nexport function generateShortUUIDv4(prefix?: string): string {\n const shortId = randomUUID().slice(0, 8);\n return prefix !== undefined ? `${prefix}-${shortId}` : shortId;\n}\n\n/**\n * Generates a step ID using UUID.\n * Replacement for `step-${uuidv4().slice(0, 8)}` pattern.\n *\n * @param prefix - Prefix for the step ID (default: 'step')\n * @returns A prefixed short UUID\n */\nexport function generateStepId(prefix = 'step'): string {\n return generateShortUUIDv4(prefix);\n}\n"],"mappings":";;;;;;AAYA,SAAS,kBAAkB;AAoBpB,SAAS,WAAW,QAAgB,eAAe,GAAW;AACnE,QAAM,YAAY,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE;AACrD,QAAM,SAAS,kBAAkB,EAC9B,OAAO,EACP,SAAS,EAAE,EACX,UAAU,GAAG,IAAI,YAAY;AAChC,SAAO,GAAG,MAAM,IAAI,SAAS,IAAI,MAAM;AACzC;AAgBO,SAAS,iBAAiB,QAAgB,eAAe,GAAW;AACzE,QAAM,YAAY,OAAO,gBAAgB,EAAE,IAAI,CAAC;AAChD,QAAM,SAAS,kBAAkB,EAC9B,OAAO,EACP,SAAS,EAAE,EACX,MAAM,GAAG,IAAI,YAAY;AAC5B,SAAO,GAAG,MAAM,IAAI,SAAS,IAAI,MAAM;AACzC;AAwCO,SAAS,eAAuB;AACrC,SAAO,WAAW;AACpB;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenAIAdapter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T6B6CKU6.js";
|
|
4
4
|
import {
|
|
5
5
|
ConfigError,
|
|
6
6
|
createLogger,
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
getTimeProvider,
|
|
10
10
|
lookupInTreeCapability,
|
|
11
11
|
ok
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HLNMWGW3.js";
|
|
13
13
|
import {
|
|
14
14
|
getNexusDataDir
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2WCYG75B.js";
|
|
16
16
|
|
|
17
17
|
// src/config/opencode-bridge.ts
|
|
18
18
|
import { readFileSync } from "fs";
|
|
@@ -307,4 +307,4 @@ export {
|
|
|
307
307
|
discoverModels,
|
|
308
308
|
buildOpenAICompatAdapters
|
|
309
309
|
};
|
|
310
|
-
//# sourceMappingURL=chunk-
|
|
310
|
+
//# sourceMappingURL=chunk-ZJGCOJC6.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CliCircuitBreakerIntegration,
|
|
3
3
|
createCliCircuitBreakerIntegration
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-VXHDZULO.js";
|
|
5
|
+
import "./chunk-2PKAWFEU.js";
|
|
6
|
+
import "./chunk-HLNMWGW3.js";
|
|
7
|
+
import "./chunk-2WCYG75B.js";
|
|
8
8
|
import "./chunk-PR4QN5HX.js";
|
|
9
9
|
export {
|
|
10
10
|
CliCircuitBreakerIntegration,
|
|
11
11
|
createCliCircuitBreakerIntegration
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=cli-circuit-breaker-
|
|
13
|
+
//# sourceMappingURL=cli-circuit-breaker-6EQKYNAA.js.map
|
package/dist/cli.js
CHANGED
|
@@ -12,18 +12,18 @@ import {
|
|
|
12
12
|
parseFindings,
|
|
13
13
|
sumFindings
|
|
14
14
|
} from "./chunk-3RZWLQSC.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-5LFUZ5IC.js";
|
|
16
16
|
import {
|
|
17
17
|
buildOpenAICompatAdapters,
|
|
18
18
|
loadUsageEvents,
|
|
19
19
|
readOpenAICompatEnv,
|
|
20
20
|
rollupByModel
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZJGCOJC6.js";
|
|
22
22
|
import {
|
|
23
23
|
setupCommandAsync,
|
|
24
24
|
verifyCommand
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-KRRBRT7B.js";
|
|
26
|
+
import "./chunk-OROUYVUX.js";
|
|
27
27
|
import {
|
|
28
28
|
AuthHandler,
|
|
29
29
|
DEFAULT_EXPERTS,
|
|
@@ -114,6 +114,7 @@ import {
|
|
|
114
114
|
registerExecuteExpertTool,
|
|
115
115
|
registerExecuteSpecTool,
|
|
116
116
|
registerExtractSymbolsTool,
|
|
117
|
+
registerGetJobResultTool,
|
|
117
118
|
registerImprovementReviewTool,
|
|
118
119
|
registerIssueTriageTool,
|
|
119
120
|
registerListExpertsTool,
|
|
@@ -158,19 +159,19 @@ import {
|
|
|
158
159
|
validateCommand,
|
|
159
160
|
validateWorkflow,
|
|
160
161
|
wrapInMarkdownFence
|
|
161
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-3PFESR6I.js";
|
|
162
163
|
import {
|
|
163
164
|
resolveToken
|
|
164
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-D5BKSM6H.js";
|
|
165
166
|
import {
|
|
166
167
|
CATEGORY_DISPLAY_NAMES,
|
|
167
168
|
DEFAULT_PR_REVIEW_CONFIG
|
|
168
169
|
} from "./chunk-X2M7OF27.js";
|
|
169
|
-
import "./chunk-
|
|
170
|
-
import "./chunk-
|
|
170
|
+
import "./chunk-T6B6CKU6.js";
|
|
171
|
+
import "./chunk-VXHDZULO.js";
|
|
171
172
|
import {
|
|
172
173
|
shutdownExpertBridge
|
|
173
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-RZVEVT3M.js";
|
|
174
175
|
import {
|
|
175
176
|
DEFAULT_VOTE_TIMEOUT_MS,
|
|
176
177
|
ErrorPolicySchema,
|
|
@@ -188,31 +189,31 @@ import {
|
|
|
188
189
|
toolSuccessStructured,
|
|
189
190
|
warnIfSimulatedOutsideTests,
|
|
190
191
|
wrapToolWithTimeout
|
|
191
|
-
} from "./chunk-
|
|
192
|
-
import "./chunk-
|
|
193
|
-
import "./chunk-
|
|
192
|
+
} from "./chunk-V7RC2PIY.js";
|
|
193
|
+
import "./chunk-4IXQ6IXI.js";
|
|
194
|
+
import "./chunk-V35FWPHD.js";
|
|
194
195
|
import {
|
|
195
196
|
loadPapersRegistry,
|
|
196
197
|
loadTechniquesRegistry,
|
|
197
198
|
savePapersRegistry,
|
|
198
199
|
synthesizeResearch
|
|
199
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-KK2RZVPU.js";
|
|
200
201
|
import {
|
|
201
202
|
classifyTrust,
|
|
202
203
|
createFullGitHubProvider,
|
|
203
204
|
evaluatePolicy,
|
|
204
205
|
parsePRUrl,
|
|
205
206
|
sanitizeInput
|
|
206
|
-
} from "./chunk-
|
|
207
|
-
import "./chunk-
|
|
208
|
-
import "./chunk-
|
|
207
|
+
} from "./chunk-MBD5EJBO.js";
|
|
208
|
+
import "./chunk-REH5BB67.js";
|
|
209
|
+
import "./chunk-QIRZSDJK.js";
|
|
209
210
|
import "./chunk-HFOQKCD2.js";
|
|
210
211
|
import "./chunk-3ACDP4E6.js";
|
|
211
|
-
import "./chunk-
|
|
212
|
+
import "./chunk-I3O5WOGW.js";
|
|
212
213
|
import {
|
|
213
214
|
MemoryError,
|
|
214
215
|
shutdownToolMemory
|
|
215
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-KVYQOOML.js";
|
|
216
217
|
import {
|
|
217
218
|
CustomExpertDefinitionSchema,
|
|
218
219
|
DATA_SUBDIRECTORIES,
|
|
@@ -231,12 +232,12 @@ import {
|
|
|
231
232
|
loadConfig,
|
|
232
233
|
runDoctor,
|
|
233
234
|
validateNexusEnv
|
|
234
|
-
} from "./chunk-
|
|
235
|
-
import "./chunk-
|
|
236
|
-
import "./chunk-
|
|
235
|
+
} from "./chunk-VQIWH6X4.js";
|
|
236
|
+
import "./chunk-GBGMTN7O.js";
|
|
237
|
+
import "./chunk-UJMIGLZI.js";
|
|
237
238
|
import {
|
|
238
239
|
DEFAULTS
|
|
239
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-BX3MUA26.js";
|
|
240
241
|
import "./chunk-NUBSJGQZ.js";
|
|
241
242
|
import {
|
|
242
243
|
capitalize,
|
|
@@ -248,11 +249,12 @@ import {
|
|
|
248
249
|
getAvailableClis,
|
|
249
250
|
isRecord,
|
|
250
251
|
probeAllClis
|
|
251
|
-
} from "./chunk-
|
|
252
|
-
import "./chunk-
|
|
252
|
+
} from "./chunk-OE7OL2BE.js";
|
|
253
|
+
import "./chunk-2PKAWFEU.js";
|
|
254
|
+
import "./chunk-YVG32OQF.js";
|
|
253
255
|
import "./chunk-ZM4O442V.js";
|
|
254
256
|
import "./chunk-PQHVC4BD.js";
|
|
255
|
-
import "./chunk-
|
|
257
|
+
import "./chunk-XK523BNC.js";
|
|
256
258
|
import {
|
|
257
259
|
API_TIMEOUTS,
|
|
258
260
|
AgentCapability,
|
|
@@ -320,7 +322,7 @@ import {
|
|
|
320
322
|
validateTimeout,
|
|
321
323
|
writeEmptyLine,
|
|
322
324
|
writeLine
|
|
323
|
-
} from "./chunk-
|
|
325
|
+
} from "./chunk-HLNMWGW3.js";
|
|
324
326
|
import {
|
|
325
327
|
applyPortableMode,
|
|
326
328
|
detectSandbox,
|
|
@@ -329,7 +331,7 @@ import {
|
|
|
329
331
|
getPerRepoSubdirs,
|
|
330
332
|
nexusDataPath,
|
|
331
333
|
sessionsDbPath
|
|
332
|
-
} from "./chunk-
|
|
334
|
+
} from "./chunk-2WCYG75B.js";
|
|
333
335
|
import "./chunk-PR4QN5HX.js";
|
|
334
336
|
|
|
335
337
|
// src/cli/cli-log-bootstrap.ts
|
|
@@ -17894,6 +17896,7 @@ var STANDALONE_TOOLS = [
|
|
|
17894
17896
|
{ name: "list_experts", register: registerListExpertsTool },
|
|
17895
17897
|
{ name: "query_trace", register: registerQueryTraceTool },
|
|
17896
17898
|
{ name: "query_task_state", register: registerQueryTaskStateTool },
|
|
17899
|
+
{ name: "get_job_result", register: registerGetJobResultTool },
|
|
17897
17900
|
{ name: "verify_audit_chain", register: registerVerifyAuditChainTool },
|
|
17898
17901
|
{ name: "extract_symbols", register: registerExtractSymbolsTool },
|
|
17899
17902
|
{ name: "search_codebase", register: registerSearchCodebaseTool },
|
|
@@ -19244,7 +19247,7 @@ function adaptConfigToLibrary(config) {
|
|
|
19244
19247
|
}
|
|
19245
19248
|
function createBeliefPromoter() {
|
|
19246
19249
|
return async (event) => {
|
|
19247
|
-
const { getToolMemory } = await import("./tool-memory-
|
|
19250
|
+
const { getToolMemory } = await import("./tool-memory-GFYQFRQI.js");
|
|
19248
19251
|
const tm = getToolMemory();
|
|
19249
19252
|
await tm.recordBelief(
|
|
19250
19253
|
`skill:${event.name}`,
|
|
@@ -20107,7 +20110,7 @@ async function handleResearchCommand(args) {
|
|
|
20107
20110
|
}
|
|
20108
20111
|
}
|
|
20109
20112
|
async function handleRegistryCommand(args) {
|
|
20110
|
-
const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-
|
|
20113
|
+
const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-7SFNZRG5.js");
|
|
20111
20114
|
const subcommand = args.subcommand;
|
|
20112
20115
|
if (!isValidRegistrySubcommand(subcommand)) {
|
|
20113
20116
|
process.stdout.write(`${formatRegistryUsage()}
|
|
@@ -20155,7 +20158,7 @@ async function handleVerifyCommand(args) {
|
|
|
20155
20158
|
async function handleDoctorCommand(args) {
|
|
20156
20159
|
const exitCode = await doctorCommand({ fix: args.options.fix });
|
|
20157
20160
|
if (args.options.deep) {
|
|
20158
|
-
const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-
|
|
20161
|
+
const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-NB7IDWJE.js");
|
|
20159
20162
|
const diag = runDeepDiagnostics2();
|
|
20160
20163
|
process.stdout.write(formatDeepDiagnostics2(diag) + "\n");
|
|
20161
20164
|
}
|
|
@@ -20199,7 +20202,7 @@ async function handleInitCommand(args) {
|
|
|
20199
20202
|
process.exit(result.success ? EXIT_CODES.SUCCESS : EXIT_CODES.SERVER_START_FAILED);
|
|
20200
20203
|
}
|
|
20201
20204
|
async function runInitOpencodeFlow(args) {
|
|
20202
|
-
const { runInitOpencode } = await import("./init-opencode-
|
|
20205
|
+
const { runInitOpencode } = await import("./init-opencode-AVYAC33Q.js");
|
|
20203
20206
|
const opencodePath = args.options.opencode;
|
|
20204
20207
|
if (opencodePath === void 0 || opencodePath === "") {
|
|
20205
20208
|
process.stderr.write("Error: --opencode requires a path argument.\n");
|
|
@@ -20226,7 +20229,7 @@ async function runInitOpencodeFlow(args) {
|
|
|
20226
20229
|
process.exit(EXIT_CODES.SUCCESS);
|
|
20227
20230
|
}
|
|
20228
20231
|
async function renderOpencodeValidate(opencodePath) {
|
|
20229
|
-
const { runOpencodeValidate } = await import("./init-opencode-
|
|
20232
|
+
const { runOpencodeValidate } = await import("./init-opencode-AVYAC33Q.js");
|
|
20230
20233
|
const result = await runOpencodeValidate(opencodePath);
|
|
20231
20234
|
if (!result.ok) {
|
|
20232
20235
|
process.stderr.write(`init --opencode --validate: ${result.reason ?? "failed"}
|
|
@@ -20266,7 +20269,7 @@ async function handleSetupCommandAsync(args) {
|
|
|
20266
20269
|
process.exit(exitCode === 0 ? EXIT_CODES.SUCCESS : EXIT_CODES.SERVER_START_FAILED);
|
|
20267
20270
|
}
|
|
20268
20271
|
async function runCustomApiSetup(args) {
|
|
20269
|
-
const { configureCustomApi } = await import("./setup-custom-api-
|
|
20272
|
+
const { configureCustomApi } = await import("./setup-custom-api-ZB7LOQC5.js");
|
|
20270
20273
|
const baseUrl = args.options.customApi;
|
|
20271
20274
|
if (baseUrl === void 0) return EXIT_CODES.SERVER_START_FAILED;
|
|
20272
20275
|
const input = {
|