substrate-ai 0.9.0 → 0.11.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/adapter-registry-DXLMTmfD.js +0 -0
- package/dist/adapter-registry-neBZrkr3.js +4 -0
- package/dist/cli/index.js +5594 -5951
- package/dist/decisions-C0pz9Clx.js +0 -0
- package/dist/{decisions-BDLp3tJB.js → decisions-DQZW0h9X.js} +2 -1
- package/dist/dist-eNB_v7Iy.js +10205 -0
- package/dist/errors-BvyMlvCX.js +74 -0
- package/dist/experimenter-Dos3NsCg.js +3 -0
- package/dist/health-BvYILeQQ.js +6 -0
- package/dist/{health-C-VRJruD.js → health-CiDi90gC.js} +57 -1850
- package/dist/{helpers-CpMs8VZX.js → helpers-DTp3VJ2-.js} +31 -121
- package/dist/index.d.ts +709 -266
- package/dist/index.js +5 -3
- package/dist/{logger-D2fS2ccL.js → logger-KeHncl-f.js} +2 -42
- package/dist/routing-CcBOCuC9.js +0 -0
- package/dist/{routing-CD8bIci_.js → routing-HaYsjEIS.js} +2 -2
- package/dist/{run-ClxNDHbr.js → run-CAUhTR7Y.js} +594 -4249
- package/dist/run-DPZOQOvB.js +9 -0
- package/dist/{upgrade-B1S61VXJ.js → upgrade-DFGrqjGI.js} +3 -3
- package/dist/{upgrade-BK0HrKA6.js → upgrade-DYdYuuJK.js} +3 -3
- package/dist/version-manager-impl-BmOWu8ml.js +0 -0
- package/dist/version-manager-impl-CKv6I1S0.js +4 -0
- package/package.json +5 -2
- package/dist/adapter-registry-D2zdMwVu.js +0 -840
- package/dist/adapter-registry-WAyFydN5.js +0 -4
- package/dist/config-migrator-CtGelIsG.js +0 -250
- package/dist/decisions-DhAA2HG2.js +0 -397
- package/dist/experimenter-D_N_7ZF3.js +0 -503
- package/dist/git-utils-DxPx6erV.js +0 -365
- package/dist/health-DMbNP9bw.js +0 -5
- package/dist/operational-BdcdmDqS.js +0 -374
- package/dist/routing-BVrxrM6v.js +0 -832
- package/dist/run-MAQ3Wuju.js +0 -10
- package/dist/version-manager-impl-BIxOe7gZ.js +0 -372
- package/dist/version-manager-impl-RrWs-CI6.js +0 -4
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { childLogger, createLogger, logger } from "./logger-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { childLogger, createLogger, logger } from "./logger-KeHncl-f.js";
|
|
2
|
+
import { assertDefined, createEventBus, createTuiApp, deepClone, formatDuration, generateId, isPlainObject, isTuiCapable, printNonTtyWarning, sleep, withRetry } from "./helpers-DTp3VJ2-.js";
|
|
3
|
+
import { AdapterRegistry, AdtError, ClaudeCodeAdapter, CodexCLIAdapter, ConfigError, ConfigIncompatibleFormatError, GeminiCLIAdapter } from "./dist-eNB_v7Iy.js";
|
|
4
|
+
import "./adapter-registry-DXLMTmfD.js";
|
|
5
|
+
import { BudgetExceededError, GitError, RecoveryError, TaskConfigError, TaskGraphCycleError, TaskGraphError, TaskGraphIncompatibleFormatError, WorkerError, WorkerNotFoundError } from "./errors-BvyMlvCX.js";
|
|
4
6
|
|
|
5
7
|
//#region src/core/di.ts
|
|
6
8
|
/**
|
|
@@ -2,14 +2,6 @@ import pino from "pino";
|
|
|
2
2
|
|
|
3
3
|
//#region src/cli/utils/masking.ts
|
|
4
4
|
/**
|
|
5
|
-
* Credential masking utilities for CLI output and Pino logger redaction.
|
|
6
|
-
*
|
|
7
|
-
* Ensures that API keys and other secrets never appear in logs, status
|
|
8
|
-
* output, or error messages (NFR8, NFR9).
|
|
9
|
-
*/
|
|
10
|
-
/** Placeholder shown instead of a real credential */
|
|
11
|
-
const MASKED_VALUE = "***";
|
|
12
|
-
/**
|
|
13
5
|
* Known Pino redaction paths for provider API key fields.
|
|
14
6
|
* Pass this array to the `pino({ redact: ... })` option.
|
|
15
7
|
*
|
|
@@ -28,38 +20,6 @@ const PINO_REDACT_PATHS = [
|
|
|
28
20
|
"env.OPENAI_API_KEY",
|
|
29
21
|
"env.GOOGLE_API_KEY"
|
|
30
22
|
];
|
|
31
|
-
/**
|
|
32
|
-
* Credential field names that should be replaced with `***` in displayed output.
|
|
33
|
-
*/
|
|
34
|
-
const CREDENTIAL_FIELDS = new Set([
|
|
35
|
-
"api_key",
|
|
36
|
-
"apiKey",
|
|
37
|
-
"api_key_env",
|
|
38
|
-
"api_key_value",
|
|
39
|
-
"token",
|
|
40
|
-
"secret",
|
|
41
|
-
"password"
|
|
42
|
-
]);
|
|
43
|
-
/**
|
|
44
|
-
* Deep-clone a plain-object tree and replace known credential fields with `***`.
|
|
45
|
-
*
|
|
46
|
-
* Only operates on plain objects and arrays; primitives are returned as-is.
|
|
47
|
-
*
|
|
48
|
-
* @param value - Value to mask
|
|
49
|
-
* @returns Masked clone of `value`
|
|
50
|
-
*/
|
|
51
|
-
function deepMask(value) {
|
|
52
|
-
if (value === null || value === void 0) return value;
|
|
53
|
-
if (Array.isArray(value)) return value.map(deepMask);
|
|
54
|
-
if (typeof value === "object") {
|
|
55
|
-
const obj = value;
|
|
56
|
-
const masked = {};
|
|
57
|
-
for (const [k, v] of Object.entries(obj)) if (CREDENTIAL_FIELDS.has(k)) masked[k] = MASKED_VALUE;
|
|
58
|
-
else masked[k] = deepMask(v);
|
|
59
|
-
return masked;
|
|
60
|
-
}
|
|
61
|
-
return value;
|
|
62
|
-
}
|
|
63
23
|
|
|
64
24
|
//#endregion
|
|
65
25
|
//#region src/utils/logger.ts
|
|
@@ -115,5 +75,5 @@ function childLogger(parent, bindings) {
|
|
|
115
75
|
}
|
|
116
76
|
|
|
117
77
|
//#endregion
|
|
118
|
-
export { childLogger, createLogger,
|
|
119
|
-
//# sourceMappingURL=logger-
|
|
78
|
+
export { childLogger, createLogger, logger };
|
|
79
|
+
//# sourceMappingURL=logger-KeHncl-f.js.map
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
1
|
+
import { ModelRoutingConfigSchema, ProviderPolicySchema, RoutingConfigError, RoutingRecommender, RoutingResolver, RoutingTelemetry, RoutingTokenAccumulator, RoutingTuner, TASK_TYPE_PHASE_MAP, getModelTier, loadModelRoutingConfig } from "./dist-eNB_v7Iy.js";
|
|
2
|
+
import "./routing-CcBOCuC9.js";
|
|
3
3
|
|
|
4
4
|
export { loadModelRoutingConfig };
|