archondev 2.19.41 → 2.19.44
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/{chunk-ZA43HOLZ.js → chunk-JH3QUPQD.js} +1 -1
- package/dist/{chunk-Q2PJ7JSI.js → chunk-MQKPOULB.js} +1 -1
- package/dist/{chunk-AZ6Q26DN.js → chunk-O22UMAM5.js} +3 -3
- package/dist/{chunk-M63U52NF.js → chunk-RH64CSQU.js} +6 -3
- package/dist/{chunk-VHKKRWDF.js → chunk-RLENHKO4.js} +1 -1
- package/dist/{chunk-KOD52FHX.js → chunk-SAM5CXO4.js} +42 -2
- package/dist/{execute-ELKKB64F.js → execute-AQWHZKDH.js} +2 -2
- package/dist/index.js +871 -717
- package/dist/{list-D2TUCX2L.js → list-K5J3OCXZ.js} +2 -2
- package/dist/{parallel-V2OGLOQH.js → parallel-5UP6URF2.js} +2 -2
- package/dist/{plan-6FM5N36D.js → plan-I3P6U2ZM.js} +1 -1
- package/dist/{preferences-AGIZD5E5.js → preferences-MTGN2VZK.js} +1 -1
- package/dist/{show-VCXYN4P6.js → show-7HL5NIA7.js} +2 -2
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
UsageRecorder,
|
|
8
8
|
handleInsufficientCreditsRecovery,
|
|
9
9
|
loadAtom
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RH64CSQU.js";
|
|
11
11
|
import {
|
|
12
12
|
transitionAtom
|
|
13
13
|
} from "./chunk-WGLVDEZC.js";
|
|
@@ -4832,7 +4832,7 @@ async function attemptPathScopeAutoRecovery(atom, cwd, parseSchema, options) {
|
|
|
4832
4832
|
if (allowedPaths.length === 0) {
|
|
4833
4833
|
return false;
|
|
4834
4834
|
}
|
|
4835
|
-
const { listLocalAtoms, plan } = await import("./plan-
|
|
4835
|
+
const { listLocalAtoms, plan } = await import("./plan-I3P6U2ZM.js");
|
|
4836
4836
|
const before = await listLocalAtoms();
|
|
4837
4837
|
const recoveryStartedAt = Date.now();
|
|
4838
4838
|
const recoverySource = atom.description ?? atom.title;
|
|
@@ -4900,7 +4900,7 @@ async function execute(atomId, options) {
|
|
|
4900
4900
|
process.exit(1);
|
|
4901
4901
|
};
|
|
4902
4902
|
if (options.parallel && options.parallel.length > 0) {
|
|
4903
|
-
const { parallelExecute } = await import("./parallel-
|
|
4903
|
+
const { parallelExecute } = await import("./parallel-5UP6URF2.js");
|
|
4904
4904
|
const allAtomIds = [atomId, ...options.parallel];
|
|
4905
4905
|
await parallelExecute(allAtomIds, { skipGates: options.skipGates === true });
|
|
4906
4906
|
return;
|
|
@@ -1519,14 +1519,17 @@ function resolveContentOutputTargets(description, referencedFiles, deliverableTa
|
|
|
1519
1519
|
}
|
|
1520
1520
|
function deriveDefaultContentOutputPath(description, referencedFiles) {
|
|
1521
1521
|
const sampleSuffix = /\b(sample|first lesson)\b/i.test(description) ? ".sample-capsule" : ".capsule";
|
|
1522
|
-
const
|
|
1522
|
+
const preferredRef = referencedFiles.find(
|
|
1523
|
+
(ref) => /^(daily-exercises|curriculum|research)\//i.test(ref) && /\.(md|txt|markdown)$/i.test(ref)
|
|
1524
|
+
);
|
|
1525
|
+
const primaryRef = preferredRef ?? referencedFiles.find((ref) => /\.(md|txt|markdown)$/i.test(ref));
|
|
1523
1526
|
if (!primaryRef) {
|
|
1524
|
-
return `capsule-output${sampleSuffix}.md`;
|
|
1527
|
+
return `daily-exercises/capsule-output${sampleSuffix}.md`;
|
|
1525
1528
|
}
|
|
1526
1529
|
const baseDir = dirname(primaryRef);
|
|
1527
1530
|
const fileBase = basename(primaryRef, extname(primaryRef));
|
|
1528
1531
|
const outName = `${fileBase}${sampleSuffix}.md`;
|
|
1529
|
-
const output = baseDir === "." ? outName : join(baseDir, outName);
|
|
1532
|
+
const output = baseDir === "." ? `daily-exercises/${outName}` : join(baseDir, outName);
|
|
1530
1533
|
return output.replace(/\\/g, "/");
|
|
1531
1534
|
}
|
|
1532
1535
|
function extractReferencedFiles(description) {
|
|
@@ -79,6 +79,40 @@ var DEFAULT_TIER_CONFIG = {
|
|
|
79
79
|
google: "gemini-3-flash-preview"
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
+
var CHEAP_TIER_CONFIG = {
|
|
83
|
+
PLANNING: {
|
|
84
|
+
anthropic: "claude-haiku-4-5",
|
|
85
|
+
openai: "gpt-4o-mini",
|
|
86
|
+
google: "gemini-3-flash-preview"
|
|
87
|
+
},
|
|
88
|
+
REASONING: {
|
|
89
|
+
anthropic: "claude-haiku-4-5",
|
|
90
|
+
openai: "gpt-4o-mini",
|
|
91
|
+
google: "gemini-3-flash-preview"
|
|
92
|
+
},
|
|
93
|
+
EXECUTION: {
|
|
94
|
+
anthropic: "claude-haiku-4-5",
|
|
95
|
+
openai: "gpt-4o-mini",
|
|
96
|
+
google: "gemini-3-flash-preview"
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
var MAX_QUALITY_TIER_CONFIG = {
|
|
100
|
+
PLANNING: {
|
|
101
|
+
anthropic: "claude-opus-4-6",
|
|
102
|
+
openai: "gpt-5.3-codex",
|
|
103
|
+
google: "gemini-3.1-pro-preview"
|
|
104
|
+
},
|
|
105
|
+
REASONING: {
|
|
106
|
+
anthropic: "claude-opus-4-6",
|
|
107
|
+
openai: "gpt-5.3-codex",
|
|
108
|
+
google: "gemini-3.1-pro-preview"
|
|
109
|
+
},
|
|
110
|
+
EXECUTION: {
|
|
111
|
+
anthropic: "claude-sonnet-4-6",
|
|
112
|
+
openai: "gpt-5.3-codex",
|
|
113
|
+
google: "gemini-3.1-pro-preview"
|
|
114
|
+
}
|
|
115
|
+
};
|
|
82
116
|
var FREE_TIER_MODELS = {
|
|
83
117
|
anthropic: "gpt-5-nano",
|
|
84
118
|
// No free Anthropic, fall back to OpenAI
|
|
@@ -144,7 +178,7 @@ var SmartModelRouter = class {
|
|
|
144
178
|
};
|
|
145
179
|
}
|
|
146
180
|
}
|
|
147
|
-
const tierConfig = await this.getTierConfiguration();
|
|
181
|
+
const tierConfig = await this.getTierConfiguration(preferences?.routingProfile);
|
|
148
182
|
return this.selectFromTierConfig(tier, tierConfig, availableProviders, preferences);
|
|
149
183
|
}
|
|
150
184
|
/**
|
|
@@ -270,7 +304,13 @@ var SmartModelRouter = class {
|
|
|
270
304
|
/**
|
|
271
305
|
* Get tier configuration (from database or fallback)
|
|
272
306
|
*/
|
|
273
|
-
static async getTierConfiguration() {
|
|
307
|
+
static async getTierConfiguration(routingProfile = "balanced") {
|
|
308
|
+
if (routingProfile === "cheap") {
|
|
309
|
+
return CHEAP_TIER_CONFIG;
|
|
310
|
+
}
|
|
311
|
+
if (routingProfile === "max_quality") {
|
|
312
|
+
return MAX_QUALITY_TIER_CONFIG;
|
|
313
|
+
}
|
|
274
314
|
const now = Date.now();
|
|
275
315
|
if (cachedTierConfig && now - cacheTimestamp < CACHE_TTL_MS) {
|
|
276
316
|
return cachedTierConfig;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
execute
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O22UMAM5.js";
|
|
4
4
|
import "./chunk-EBHHIUCB.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-RH64CSQU.js";
|
|
6
6
|
import "./chunk-WGLVDEZC.js";
|
|
7
7
|
import "./chunk-3MZOEZUH.js";
|
|
8
8
|
import "./chunk-F7R3QKHP.js";
|