archondev 2.19.8 → 2.19.9
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-X5ZZCJBQ.js → chunk-4E3LJAXF.js} +2 -2
- package/dist/{chunk-KDWIKBM2.js → chunk-FP4B73CC.js} +1 -1
- package/dist/{chunk-OTODLPY4.js → chunk-JFUG25H7.js} +36 -2
- package/dist/{chunk-W6TYXCZA.js → chunk-MBRWJ3SX.js} +1 -1
- package/dist/{execute-DBNVIJ3P.js → execute-UWJPIG6C.js} +2 -2
- package/dist/index.js +19 -19
- package/dist/{list-SKRHIZ5T.js → list-3IMEKFQZ.js} +2 -2
- package/dist/{parallel-KRBYFJ4O.js → parallel-ZBFFEUBW.js} +2 -2
- package/dist/{plan-7SCZH7EA.js → plan-AR6Y4QUD.js} +1 -1
- 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-JFUG25H7.js";
|
|
11
11
|
import {
|
|
12
12
|
transitionAtom
|
|
13
13
|
} from "./chunk-PCTP3LKJ.js";
|
|
@@ -4797,7 +4797,7 @@ function createPrompt() {
|
|
|
4797
4797
|
}
|
|
4798
4798
|
async function execute(atomId, options) {
|
|
4799
4799
|
if (options.parallel && options.parallel.length > 0) {
|
|
4800
|
-
const { parallelExecute } = await import("./parallel-
|
|
4800
|
+
const { parallelExecute } = await import("./parallel-ZBFFEUBW.js");
|
|
4801
4801
|
const allAtomIds = [atomId, ...options.parallel];
|
|
4802
4802
|
await parallelExecute(allAtomIds, { skipGates: options.skipGates === true });
|
|
4803
4803
|
return;
|
|
@@ -899,12 +899,23 @@ async function plan(description, options) {
|
|
|
899
899
|
requirements.length = 0;
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
|
-
|
|
902
|
+
let classification = classifyTaskIntent({
|
|
903
903
|
description,
|
|
904
904
|
requirements,
|
|
905
905
|
references,
|
|
906
906
|
deliverableTarget: deliverableTarget ?? void 0
|
|
907
907
|
});
|
|
908
|
+
if (classification.kind === "mixed" && classification.confidence === "low") {
|
|
909
|
+
const clarifiedKind = await promptForTaskKindClarification(prompt2, description);
|
|
910
|
+
if (clarifiedKind) {
|
|
911
|
+
classification = {
|
|
912
|
+
...classification,
|
|
913
|
+
kind: clarifiedKind,
|
|
914
|
+
confidence: "high",
|
|
915
|
+
signals: [...classification.signals, `user:${clarifiedKind}`]
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
}
|
|
908
919
|
const isContentOnlyTask = classification.kind === "content";
|
|
909
920
|
const designApproved = await promptForDesignApproval(prompt2, {
|
|
910
921
|
description,
|
|
@@ -1275,7 +1286,8 @@ ${input.requirements.join("\n")}`.toLowerCase();
|
|
|
1275
1286
|
/story|storytelling|storyboard|capsule|lesson|outline|narrative|plot|arc|character|conflict/,
|
|
1276
1287
|
/illustration|visual|image|diagram|slides?|deck/,
|
|
1277
1288
|
/write|draft|summarize|summarise|rewrite|edit|revise|polish/,
|
|
1278
|
-
/teach|teaching|curriculum|learning objectives?|lesson plan
|
|
1289
|
+
/teach|teaching|curriculum|learning objectives?|lesson plan/,
|
|
1290
|
+
/pdf|document|booklet|handout|report|formatted nicely|single file|compile .*lessons?|export/
|
|
1279
1291
|
];
|
|
1280
1292
|
const codeCues = [
|
|
1281
1293
|
/api|endpoint|server|backend|frontend|cli|database|schema|migration/,
|
|
@@ -1317,6 +1329,28 @@ ${input.requirements.join("\n")}`.toLowerCase();
|
|
|
1317
1329
|
}
|
|
1318
1330
|
return { kind, confidence, contentScore, codeScore, signals };
|
|
1319
1331
|
}
|
|
1332
|
+
async function promptForTaskKindClarification(prompt2, description) {
|
|
1333
|
+
console.log(chalk2.yellow("\nThis request can be interpreted in multiple ways."));
|
|
1334
|
+
console.log(chalk2.dim("To keep planning on track, choose the primary outcome:"));
|
|
1335
|
+
console.log(chalk2.dim(" 1) Content deliverable (PDF/docs/slides/report)"));
|
|
1336
|
+
console.log(chalk2.dim(" 2) Code implementation (features/refactors/tests)"));
|
|
1337
|
+
console.log(chalk2.dim(" Enter to auto-pick based on your wording."));
|
|
1338
|
+
const answer = (await prompt2.ask("Primary outcome (1/2): ")).trim().toLowerCase();
|
|
1339
|
+
if (answer === "1" || answer.includes("content") || answer.includes("pdf") || answer.includes("doc")) {
|
|
1340
|
+
return "content";
|
|
1341
|
+
}
|
|
1342
|
+
if (answer === "2" || answer.includes("code") || answer.includes("implement") || answer.includes("feature")) {
|
|
1343
|
+
return "code";
|
|
1344
|
+
}
|
|
1345
|
+
const normalized = description.toLowerCase();
|
|
1346
|
+
if (/(pdf|document|report|slides?|lesson|curriculum|format)/.test(normalized)) {
|
|
1347
|
+
return "content";
|
|
1348
|
+
}
|
|
1349
|
+
if (/(api|endpoint|schema|migration|typescript|javascript|python|refactor|test|lint|build)/.test(normalized)) {
|
|
1350
|
+
return "code";
|
|
1351
|
+
}
|
|
1352
|
+
return null;
|
|
1353
|
+
}
|
|
1320
1354
|
function shouldFallbackToContentPlan(input) {
|
|
1321
1355
|
if (input.classification.kind === "content") return true;
|
|
1322
1356
|
const text = input.description.toLowerCase();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
execute
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4E3LJAXF.js";
|
|
4
4
|
import "./chunk-EBHHIUCB.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-JFUG25H7.js";
|
|
6
6
|
import "./chunk-PCTP3LKJ.js";
|
|
7
7
|
import "./chunk-PJRQI5UN.js";
|
|
8
8
|
import "./chunk-EIEU3IIY.js";
|
package/dist/index.js
CHANGED
|
@@ -47,13 +47,13 @@ import {
|
|
|
47
47
|
parallelRunWaves,
|
|
48
48
|
parallelSchedule,
|
|
49
49
|
parallelStatus
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-FP4B73CC.js";
|
|
51
51
|
import {
|
|
52
52
|
DependencyParser,
|
|
53
53
|
EnvironmentConfigLoader,
|
|
54
54
|
EnvironmentValidator,
|
|
55
55
|
execute
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-4E3LJAXF.js";
|
|
57
57
|
import {
|
|
58
58
|
cloudCancel,
|
|
59
59
|
cloudLogs,
|
|
@@ -61,12 +61,12 @@ import {
|
|
|
61
61
|
} from "./chunk-EBHHIUCB.js";
|
|
62
62
|
import {
|
|
63
63
|
list
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-MBRWJ3SX.js";
|
|
65
65
|
import {
|
|
66
66
|
listLocalAtoms,
|
|
67
67
|
loadAtom,
|
|
68
68
|
plan
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-JFUG25H7.js";
|
|
70
70
|
import "./chunk-PCTP3LKJ.js";
|
|
71
71
|
import "./chunk-PJRQI5UN.js";
|
|
72
72
|
import {
|
|
@@ -3192,7 +3192,7 @@ async function handleNewProject(cwd, _state) {
|
|
|
3192
3192
|
}
|
|
3193
3193
|
if (intent.mode === "ad_hoc" && intent.confidence >= 0.7) {
|
|
3194
3194
|
console.log(chalk6.dim("\n> Got it! Creating a task for this...\n"));
|
|
3195
|
-
const { plan: plan2 } = await import("./plan-
|
|
3195
|
+
const { plan: plan2 } = await import("./plan-AR6Y4QUD.js");
|
|
3196
3196
|
await plan2(initialResponse, {});
|
|
3197
3197
|
return;
|
|
3198
3198
|
}
|
|
@@ -3217,7 +3217,7 @@ async function handleNewProject(cwd, _state) {
|
|
|
3217
3217
|
}
|
|
3218
3218
|
if (trimmed === "2") {
|
|
3219
3219
|
console.log(chalk6.dim("\n> Creating a task for this...\n"));
|
|
3220
|
-
const { plan: plan2 } = await import("./plan-
|
|
3220
|
+
const { plan: plan2 } = await import("./plan-AR6Y4QUD.js");
|
|
3221
3221
|
await plan2(initialResponse, {});
|
|
3222
3222
|
return;
|
|
3223
3223
|
}
|
|
@@ -3256,7 +3256,7 @@ async function showNewProjectMenu(cwd) {
|
|
|
3256
3256
|
case "3": {
|
|
3257
3257
|
const description = await promptWithCommands("Describe what you want to do", { allowMultiline: true });
|
|
3258
3258
|
if (description.trim()) {
|
|
3259
|
-
const { plan: plan2 } = await import("./plan-
|
|
3259
|
+
const { plan: plan2 } = await import("./plan-AR6Y4QUD.js");
|
|
3260
3260
|
await plan2(description, {});
|
|
3261
3261
|
}
|
|
3262
3262
|
break;
|
|
@@ -3338,7 +3338,7 @@ async function runExploreFlow(cwd, followUpInput) {
|
|
|
3338
3338
|
case "1": {
|
|
3339
3339
|
const description = await promptWithCommands("Describe what you want to do", { allowMultiline: true });
|
|
3340
3340
|
if (description.trim()) {
|
|
3341
|
-
const { plan: plan2 } = await import("./plan-
|
|
3341
|
+
const { plan: plan2 } = await import("./plan-AR6Y4QUD.js");
|
|
3342
3342
|
await plan2(description, {});
|
|
3343
3343
|
}
|
|
3344
3344
|
await showMainMenu();
|
|
@@ -3613,7 +3613,7 @@ ${state.forbiddenPatterns?.length ? `- **Forbidden patterns:** ${state.forbidden
|
|
|
3613
3613
|
if (continueChoice) {
|
|
3614
3614
|
const description = await promptWithCommands("Describe what you want to build first", { allowMultiline: true });
|
|
3615
3615
|
if (description.trim()) {
|
|
3616
|
-
const { plan: plan2 } = await import("./plan-
|
|
3616
|
+
const { plan: plan2 } = await import("./plan-AR6Y4QUD.js");
|
|
3617
3617
|
await plan2(description, {});
|
|
3618
3618
|
}
|
|
3619
3619
|
}
|
|
@@ -3667,7 +3667,7 @@ async function handleAdaptExisting(cwd, state) {
|
|
|
3667
3667
|
}
|
|
3668
3668
|
if (intent.mode === "ad_hoc" && intent.confidence >= 0.7) {
|
|
3669
3669
|
console.log(chalk6.dim("\n> Got it! Creating a task for this...\n"));
|
|
3670
|
-
const { plan: plan2 } = await import("./plan-
|
|
3670
|
+
const { plan: plan2 } = await import("./plan-AR6Y4QUD.js");
|
|
3671
3671
|
await plan2(response, {});
|
|
3672
3672
|
return;
|
|
3673
3673
|
}
|
|
@@ -3705,7 +3705,7 @@ async function showAdaptExistingMenu(cwd, state) {
|
|
|
3705
3705
|
case "2": {
|
|
3706
3706
|
const description = await promptWithCommands("Describe what you want to do", { allowMultiline: true });
|
|
3707
3707
|
if (description.trim()) {
|
|
3708
|
-
const { plan: plan2 } = await import("./plan-
|
|
3708
|
+
const { plan: plan2 } = await import("./plan-AR6Y4QUD.js");
|
|
3709
3709
|
await plan2(description, {});
|
|
3710
3710
|
}
|
|
3711
3711
|
break;
|
|
@@ -3896,7 +3896,7 @@ async function handleFreeformJourneyInput(cwd, input) {
|
|
|
3896
3896
|
return true;
|
|
3897
3897
|
}
|
|
3898
3898
|
console.log(chalk6.dim("\n> Got it! Creating a task for this...\n"));
|
|
3899
|
-
const { plan: plan2 } = await import("./plan-
|
|
3899
|
+
const { plan: plan2 } = await import("./plan-AR6Y4QUD.js");
|
|
3900
3900
|
await plan2(freeform, {});
|
|
3901
3901
|
return true;
|
|
3902
3902
|
}
|
|
@@ -3946,7 +3946,7 @@ async function handlePostExploreAction(cwd, request) {
|
|
|
3946
3946
|
} else {
|
|
3947
3947
|
console.log(chalk6.dim("> Got it! Creating a task for this...\n"));
|
|
3948
3948
|
}
|
|
3949
|
-
const { plan: plan2 } = await import("./plan-
|
|
3949
|
+
const { plan: plan2 } = await import("./plan-AR6Y4QUD.js");
|
|
3950
3950
|
await plan2(request, {});
|
|
3951
3951
|
}
|
|
3952
3952
|
async function showReviewProgress(cwd) {
|
|
@@ -3968,18 +3968,18 @@ async function showReviewProgress(cwd) {
|
|
|
3968
3968
|
}
|
|
3969
3969
|
}
|
|
3970
3970
|
async function planTask() {
|
|
3971
|
-
const { plan: plan2 } = await import("./plan-
|
|
3971
|
+
const { plan: plan2 } = await import("./plan-AR6Y4QUD.js");
|
|
3972
3972
|
const description = await promptWithCommands("Describe what you want to build", { allowMultiline: true });
|
|
3973
3973
|
if (description.trim()) {
|
|
3974
3974
|
await plan2(description, {});
|
|
3975
3975
|
}
|
|
3976
3976
|
}
|
|
3977
3977
|
async function listAtoms() {
|
|
3978
|
-
const { list: list2 } = await import("./list-
|
|
3978
|
+
const { list: list2 } = await import("./list-3IMEKFQZ.js");
|
|
3979
3979
|
await list2({});
|
|
3980
3980
|
}
|
|
3981
3981
|
async function executeNext() {
|
|
3982
|
-
const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-
|
|
3982
|
+
const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-AR6Y4QUD.js");
|
|
3983
3983
|
const { analyzeProject, getComplexityDescription, getModeDescription } = await import("./orchestration-HIF3KP25.js");
|
|
3984
3984
|
const { loadExecutionPreferences } = await import("./preferences-4V4C7MVD.js");
|
|
3985
3985
|
const cwd = process.cwd();
|
|
@@ -4050,11 +4050,11 @@ async function executeNext() {
|
|
|
4050
4050
|
}
|
|
4051
4051
|
}
|
|
4052
4052
|
if (selectedMode === "parallel-cloud") {
|
|
4053
|
-
const { parallelExecuteCloud: parallelExecuteCloud2 } = await import("./parallel-
|
|
4053
|
+
const { parallelExecuteCloud: parallelExecuteCloud2 } = await import("./parallel-ZBFFEUBW.js");
|
|
4054
4054
|
await parallelExecuteCloud2(runIds);
|
|
4055
4055
|
return;
|
|
4056
4056
|
}
|
|
4057
|
-
const { parallelExecute } = await import("./parallel-
|
|
4057
|
+
const { parallelExecute } = await import("./parallel-ZBFFEUBW.js");
|
|
4058
4058
|
await parallelExecute(runIds);
|
|
4059
4059
|
return;
|
|
4060
4060
|
}
|
|
@@ -4062,7 +4062,7 @@ async function executeNext() {
|
|
|
4062
4062
|
const atomId = await prompt("Enter atom ID to execute (or press Enter for first pending)");
|
|
4063
4063
|
const targetId = atomId.trim() || pendingAtoms[0]?.id;
|
|
4064
4064
|
if (targetId) {
|
|
4065
|
-
const { execute: execute2 } = await import("./execute-
|
|
4065
|
+
const { execute: execute2 } = await import("./execute-UWJPIG6C.js");
|
|
4066
4066
|
await execute2(targetId, {});
|
|
4067
4067
|
} else {
|
|
4068
4068
|
console.log(chalk6.yellow("No atom to execute."));
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
parallelRunWaves,
|
|
7
7
|
parallelSchedule,
|
|
8
8
|
parallelStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FP4B73CC.js";
|
|
10
10
|
import "./chunk-EBHHIUCB.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-JFUG25H7.js";
|
|
12
12
|
import "./chunk-PCTP3LKJ.js";
|
|
13
13
|
import "./chunk-PJRQI5UN.js";
|
|
14
14
|
import "./chunk-EIEU3IIY.js";
|