archondev 2.19.40 → 2.19.42
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-LZPNQBZX.js → chunk-O22UMAM5.js} +4 -4
- package/dist/{chunk-M63U52NF.js → chunk-RH64CSQU.js} +6 -3
- package/dist/{chunk-VHKKRWDF.js → chunk-RLENHKO4.js} +1 -1
- package/dist/{execute-OB4P4UYU.js → execute-AQWHZKDH.js} +2 -2
- package/dist/index.js +94 -61
- 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/{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;
|
|
@@ -5154,7 +5154,7 @@ ${conflictReport.blockerCount} blocking conflict(s) found.`));
|
|
|
5154
5154
|
});
|
|
5155
5155
|
if (isGovernanceViolation(executionResult.errorMessage)) {
|
|
5156
5156
|
const pathScopeViolation = isPathScopeGovernanceViolation(executionResult.errorMessage);
|
|
5157
|
-
if (pathScopeViolation) {
|
|
5157
|
+
if (pathScopeViolation && options.pathScopeAutoRecover !== false) {
|
|
5158
5158
|
const recovered = await attemptPathScopeAutoRecovery(
|
|
5159
5159
|
atom,
|
|
5160
5160
|
cwd,
|
|
@@ -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) {
|
|
@@ -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";
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-6URKZ7NB.js";
|
|
14
14
|
import {
|
|
15
15
|
show
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RLENHKO4.js";
|
|
17
17
|
import {
|
|
18
18
|
bugReport
|
|
19
19
|
} from "./chunk-AHK2ITJX.js";
|
|
@@ -50,13 +50,13 @@ import {
|
|
|
50
50
|
parallelRunWaves,
|
|
51
51
|
parallelSchedule,
|
|
52
52
|
parallelStatus
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-JH3QUPQD.js";
|
|
54
54
|
import {
|
|
55
55
|
DependencyParser,
|
|
56
56
|
EnvironmentConfigLoader,
|
|
57
57
|
EnvironmentValidator,
|
|
58
58
|
execute
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-O22UMAM5.js";
|
|
60
60
|
import {
|
|
61
61
|
cloudCancel,
|
|
62
62
|
cloudLogs,
|
|
@@ -64,12 +64,12 @@ import {
|
|
|
64
64
|
} from "./chunk-EBHHIUCB.js";
|
|
65
65
|
import {
|
|
66
66
|
list
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-MQKPOULB.js";
|
|
68
68
|
import {
|
|
69
69
|
listLocalAtoms,
|
|
70
70
|
loadAtom,
|
|
71
71
|
plan
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-RH64CSQU.js";
|
|
73
73
|
import "./chunk-WGLVDEZC.js";
|
|
74
74
|
import "./chunk-3MZOEZUH.js";
|
|
75
75
|
import {
|
|
@@ -3255,7 +3255,7 @@ async function runExploreFlow(cwd, followUpInput, options = {}) {
|
|
|
3255
3255
|
case "1": {
|
|
3256
3256
|
const description = await promptWithCommands("Describe what you want to do", { allowMultiline: true });
|
|
3257
3257
|
if (description.trim()) {
|
|
3258
|
-
const { plan: plan2 } = await import("./plan-
|
|
3258
|
+
const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
|
|
3259
3259
|
await plan2(description, { conversational: true });
|
|
3260
3260
|
}
|
|
3261
3261
|
await showMainMenu();
|
|
@@ -3500,7 +3500,7 @@ ${state.forbiddenPatterns?.length ? `- **Forbidden patterns:** ${state.forbidden
|
|
|
3500
3500
|
const hintedTask = initialTaskHint?.trim() ?? "";
|
|
3501
3501
|
if (hintedTask) {
|
|
3502
3502
|
console.log(chalk5.dim("Using your request above as the first task.\n"));
|
|
3503
|
-
const { plan: plan2 } = await import("./plan-
|
|
3503
|
+
const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
|
|
3504
3504
|
await plan2(hintedTask, { conversational: true });
|
|
3505
3505
|
return;
|
|
3506
3506
|
}
|
|
@@ -3525,7 +3525,7 @@ ${state.forbiddenPatterns?.length ? `- **Forbidden patterns:** ${state.forbidden
|
|
|
3525
3525
|
description = continueAnswer.trim();
|
|
3526
3526
|
}
|
|
3527
3527
|
if (description.trim()) {
|
|
3528
|
-
const { plan: plan2 } = await import("./plan-
|
|
3528
|
+
const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
|
|
3529
3529
|
await plan2(description, { conversational: true });
|
|
3530
3530
|
}
|
|
3531
3531
|
}
|
|
@@ -3689,10 +3689,10 @@ async function handleAgentConversationInput(cwd, input) {
|
|
|
3689
3689
|
pendingAnalysisCapsuleCount = null;
|
|
3690
3690
|
const enrichedRequest = enrichApprovedAnalysisRequest(request, reviewedFiles, capsuleCount);
|
|
3691
3691
|
console.log(chalk5.dim("\n> Great. Creating a governed task from the approved analysis plan.\n"));
|
|
3692
|
-
const { plan: plan3 } = await import("./plan-
|
|
3692
|
+
const { plan: plan3 } = await import("./plan-I3P6U2ZM.js");
|
|
3693
3693
|
await plan3(await withAllowedPathScope(cwd, enrichedRequest), { conversational: true });
|
|
3694
3694
|
console.log(chalk5.dim("\n> Starting implementation now...\n"));
|
|
3695
|
-
await continueWithCurrentTask(cwd);
|
|
3695
|
+
await continueWithCurrentTask(cwd, { runAllReady: true });
|
|
3696
3696
|
return true;
|
|
3697
3697
|
}
|
|
3698
3698
|
if (pendingProposalRequest && isPlanApprovalDirective(normalized)) {
|
|
@@ -3700,11 +3700,11 @@ async function handleAgentConversationInput(cwd, input) {
|
|
|
3700
3700
|
return true;
|
|
3701
3701
|
}
|
|
3702
3702
|
if (isExecutionDirective(normalized)) {
|
|
3703
|
-
await continueWithCurrentTask(cwd);
|
|
3703
|
+
await continueWithCurrentTask(cwd, { runAllReady: true });
|
|
3704
3704
|
return true;
|
|
3705
3705
|
}
|
|
3706
3706
|
if (isContinuationDirective(normalized)) {
|
|
3707
|
-
await continueWithCurrentTask(cwd);
|
|
3707
|
+
await continueWithCurrentTask(cwd, { runAllReady: true });
|
|
3708
3708
|
return true;
|
|
3709
3709
|
}
|
|
3710
3710
|
if (isRescopeBlockedDirective(normalized)) {
|
|
@@ -3730,10 +3730,10 @@ async function handleAgentConversationInput(cwd, input) {
|
|
|
3730
3730
|
return true;
|
|
3731
3731
|
}
|
|
3732
3732
|
console.log(chalk5.dim("\n> Got it! Creating a task for this...\n"));
|
|
3733
|
-
const { plan: plan2 } = await import("./plan-
|
|
3733
|
+
const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
|
|
3734
3734
|
await plan2(await withAllowedPathScope(cwd, input), { conversational: true });
|
|
3735
3735
|
if (shouldAutoExecuteAfterPlanning(input)) {
|
|
3736
|
-
await continueWithCurrentTask(cwd);
|
|
3736
|
+
await continueWithCurrentTask(cwd, { runAllReady: true });
|
|
3737
3737
|
return true;
|
|
3738
3738
|
}
|
|
3739
3739
|
await showLatestPlannedAtom(cwd);
|
|
@@ -3777,7 +3777,7 @@ async function showProposalForApproval(input) {
|
|
|
3777
3777
|
}
|
|
3778
3778
|
}
|
|
3779
3779
|
async function showLatestPlannedAtom(cwd) {
|
|
3780
|
-
const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-
|
|
3780
|
+
const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-I3P6U2ZM.js");
|
|
3781
3781
|
const atoms = await listLocalAtoms2();
|
|
3782
3782
|
if (atoms.length === 0) {
|
|
3783
3783
|
console.log(chalk5.yellow("No atoms found yet. Tell me what to plan."));
|
|
@@ -3795,7 +3795,7 @@ async function showLatestPlannedAtom(cwd) {
|
|
|
3795
3795
|
console.log(chalk5.dim(`
|
|
3796
3796
|
Showing latest planned atom (${latest.externalId})...
|
|
3797
3797
|
`));
|
|
3798
|
-
const { show: show2 } = await import("./show-
|
|
3798
|
+
const { show: show2 } = await import("./show-7HL5NIA7.js");
|
|
3799
3799
|
await show2(latest.externalId);
|
|
3800
3800
|
}
|
|
3801
3801
|
function isContinuationDirective(input) {
|
|
@@ -3892,14 +3892,10 @@ async function applyApprovedProposal(cwd) {
|
|
|
3892
3892
|
return;
|
|
3893
3893
|
}
|
|
3894
3894
|
console.log(chalk5.dim("\n> Great. I will create the task from your approved request.\n"));
|
|
3895
|
-
const { plan: plan2 } = await import("./plan-
|
|
3895
|
+
const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
|
|
3896
3896
|
await plan2(await withAllowedPathScope(cwd, approvedRequest), { conversational: true });
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
return;
|
|
3900
|
-
}
|
|
3901
|
-
await showLatestPlannedAtom(cwd);
|
|
3902
|
-
console.log(chalk5.dim('\nReply "execute atom" when you want implementation to start, or tell me what to change.'));
|
|
3897
|
+
console.log(chalk5.dim("\n> Approval received. Starting unattended execution for all READY atoms...\n"));
|
|
3898
|
+
await continueWithCurrentTask(cwd, { runAllReady: true });
|
|
3903
3899
|
}
|
|
3904
3900
|
async function provideAnalysisFirstPlan(cwd, request) {
|
|
3905
3901
|
console.log(chalk5.dim("\n> I analyzed your request and generated a recommendation + sample draft first.\n"));
|
|
@@ -3959,7 +3955,8 @@ function enrichApprovedAnalysisRequest(request, reviewedFiles, capsuleCount) {
|
|
|
3959
3955
|
Approved analysis context:
|
|
3960
3956
|
- Day-1 source files to use: ${normalizedFiles.join(", ")}
|
|
3961
3957
|
- Create a sample using ${capsuleCount} capsule${capsuleCount === 1 ? "" : "s"}.
|
|
3962
|
-
-
|
|
3958
|
+
- Treat these files as source inputs (read-only) unless the user explicitly asks to edit them.
|
|
3959
|
+
- Write capsule output to a new dedicated file within allowed architecture paths.`;
|
|
3963
3960
|
}
|
|
3964
3961
|
function collectMarkdownFiles(cwd) {
|
|
3965
3962
|
const results = [];
|
|
@@ -4048,45 +4045,81 @@ function buildSampleCapsuleDraft(cwd, files, capsuleCount) {
|
|
|
4048
4045
|
chalk5.dim(" - Reflection Prompt: What changed in your understanding after this exercise?")
|
|
4049
4046
|
].join("\n");
|
|
4050
4047
|
}
|
|
4051
|
-
async function continueWithCurrentTask(cwd) {
|
|
4052
|
-
const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-
|
|
4053
|
-
const atoms = await listLocalAtoms2();
|
|
4048
|
+
async function continueWithCurrentTask(cwd, options = {}) {
|
|
4049
|
+
const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-I3P6U2ZM.js");
|
|
4054
4050
|
const byMostRecent = (a, b) => {
|
|
4055
4051
|
const aTime = new Date(String(a.updatedAt ?? a.createdAt ?? "")).getTime() || 0;
|
|
4056
4052
|
const bTime = new Date(String(b.updatedAt ?? b.createdAt ?? "")).getTime() || 0;
|
|
4057
4053
|
return bTime - aTime;
|
|
4058
4054
|
};
|
|
4059
|
-
const
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4055
|
+
const { execute: execute2 } = await import("./execute-AQWHZKDH.js");
|
|
4056
|
+
const runAllReady = options.runAllReady === true;
|
|
4057
|
+
const attempted = /* @__PURE__ */ new Set();
|
|
4058
|
+
let queueStarted = false;
|
|
4059
|
+
while (true) {
|
|
4060
|
+
const atoms = await listLocalAtoms2();
|
|
4061
|
+
const readyAtoms = atoms.filter((a) => a.status === "READY").sort(byMostRecent);
|
|
4062
|
+
if (readyAtoms.length === 0) {
|
|
4063
|
+
const inProgressAtoms = atoms.filter((a) => a.status === "IN_PROGRESS").sort(byMostRecent);
|
|
4064
|
+
if (inProgressAtoms.length > 0) {
|
|
4065
|
+
const current = inProgressAtoms[0];
|
|
4066
|
+
console.log(chalk5.yellow(`No READY atoms found. Current in-progress atom: ${current?.externalId}.`));
|
|
4067
|
+
console.log(chalk5.dim("Use `archon show <atom-id>` to inspect status, or plan a new task."));
|
|
4068
|
+
return;
|
|
4069
|
+
}
|
|
4070
|
+
const blockedByPath = atoms.filter((a) => a.status === "BLOCKED").sort(byMostRecent).find((a) => (a.errorMessage ?? "").toLowerCase().includes("outside the allowed paths"));
|
|
4071
|
+
if (blockedByPath) {
|
|
4072
|
+
console.log(chalk5.yellow(`No READY atoms found. Latest blocked atom: ${blockedByPath.externalId}.`));
|
|
4073
|
+
console.log(chalk5.dim('This atom is blocked by governance path scope. Tell me: "adjust this atom to allowed paths".'));
|
|
4074
|
+
return;
|
|
4075
|
+
}
|
|
4076
|
+
if (queueStarted && runAllReady) {
|
|
4077
|
+
console.log(chalk5.green("\nQueue execution complete. No READY atoms remain."));
|
|
4078
|
+
} else {
|
|
4079
|
+
console.log(chalk5.yellow("No pending atoms found. Tell me what to plan next."));
|
|
4080
|
+
}
|
|
4066
4081
|
return;
|
|
4067
4082
|
}
|
|
4068
|
-
const
|
|
4069
|
-
if (
|
|
4070
|
-
console.log(chalk5.yellow(
|
|
4071
|
-
console.log(chalk5.dim('This atom is blocked by governance path scope. Tell me: "adjust this atom to allowed paths".'));
|
|
4083
|
+
const nextAtom = readyAtoms[0];
|
|
4084
|
+
if (!nextAtom) {
|
|
4085
|
+
console.log(chalk5.yellow("No pending atoms found. Tell me what to plan next."));
|
|
4072
4086
|
return;
|
|
4073
4087
|
}
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4088
|
+
if (runAllReady && attempted.has(nextAtom.externalId)) {
|
|
4089
|
+
console.log(chalk5.yellow(`Stopping queue execution: ${nextAtom.externalId} is still READY after an execution attempt.`));
|
|
4090
|
+
console.log(chalk5.dim("Inspect with `archon show <atom-id>` before continuing."));
|
|
4091
|
+
return;
|
|
4092
|
+
}
|
|
4093
|
+
attempted.add(nextAtom.externalId);
|
|
4094
|
+
queueStarted = true;
|
|
4095
|
+
if (runAllReady) {
|
|
4096
|
+
console.log(chalk5.dim(`
|
|
4097
|
+
Queue execution: running ${nextAtom.externalId}...
|
|
4098
|
+
`));
|
|
4099
|
+
} else {
|
|
4100
|
+
console.log(chalk5.dim(`
|
|
4083
4101
|
Continuing with ${nextAtom.externalId}...
|
|
4084
4102
|
`));
|
|
4085
|
-
|
|
4086
|
-
|
|
4103
|
+
}
|
|
4104
|
+
await execute2(nextAtom.externalId, {
|
|
4105
|
+
nonTerminating: true,
|
|
4106
|
+
pathScopeAutoRecover: false
|
|
4107
|
+
});
|
|
4108
|
+
if (!runAllReady) {
|
|
4109
|
+
return;
|
|
4110
|
+
}
|
|
4111
|
+
const refreshed = await listLocalAtoms2();
|
|
4112
|
+
const executedAtom = refreshed.find((a) => a.externalId === nextAtom.externalId);
|
|
4113
|
+
const status2 = executedAtom?.status ?? "UNKNOWN";
|
|
4114
|
+
if (status2 !== "DONE") {
|
|
4115
|
+
console.log(chalk5.yellow(`Queue execution paused at ${nextAtom.externalId} (status: ${status2}).`));
|
|
4116
|
+
console.log(chalk5.dim('Resolve this atom, then run "continue" to resume the queue.'));
|
|
4117
|
+
return;
|
|
4118
|
+
}
|
|
4119
|
+
}
|
|
4087
4120
|
}
|
|
4088
4121
|
async function replanLatestBlockedAtom(cwd) {
|
|
4089
|
-
const { listLocalAtoms: listLocalAtoms2, plan: plan2 } = await import("./plan-
|
|
4122
|
+
const { listLocalAtoms: listLocalAtoms2, plan: plan2 } = await import("./plan-I3P6U2ZM.js");
|
|
4090
4123
|
const atoms = await listLocalAtoms2();
|
|
4091
4124
|
const blocked = atoms.filter((a) => a.status === "BLOCKED" && (a.errorMessage ?? "").toLowerCase().includes("outside the allowed paths")).sort((a, b) => {
|
|
4092
4125
|
const aTime = new Date(String(a.updatedAt ?? a.createdAt ?? "")).getTime() || 0;
|
|
@@ -4192,7 +4225,7 @@ async function handleFreeformJourneyInput(cwd, input) {
|
|
|
4192
4225
|
const state = detectProjectState(cwd);
|
|
4193
4226
|
if (state.hasArchitecture) {
|
|
4194
4227
|
console.log(chalk5.dim("\n> Got it! Creating a task for this...\n"));
|
|
4195
|
-
const { plan: plan3 } = await import("./plan-
|
|
4228
|
+
const { plan: plan3 } = await import("./plan-I3P6U2ZM.js");
|
|
4196
4229
|
await plan3(await withAllowedPathScope(cwd, freeform), { conversational: true });
|
|
4197
4230
|
return true;
|
|
4198
4231
|
}
|
|
@@ -4201,7 +4234,7 @@ async function handleFreeformJourneyInput(cwd, input) {
|
|
|
4201
4234
|
return true;
|
|
4202
4235
|
}
|
|
4203
4236
|
console.log(chalk5.dim("\n> Got it! Creating a task for this...\n"));
|
|
4204
|
-
const { plan: plan2 } = await import("./plan-
|
|
4237
|
+
const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
|
|
4205
4238
|
await plan2(await withAllowedPathScope(cwd, freeform), { conversational: true });
|
|
4206
4239
|
return true;
|
|
4207
4240
|
}
|
|
@@ -4260,11 +4293,11 @@ async function handlePostExploreAction(cwd, request, options = {}) {
|
|
|
4260
4293
|
} else {
|
|
4261
4294
|
console.log(chalk5.dim("> Got it! Creating a task for this...\n"));
|
|
4262
4295
|
}
|
|
4263
|
-
const { plan: plan2 } = await import("./plan-
|
|
4296
|
+
const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
|
|
4264
4297
|
await plan2(await withAllowedPathScope(cwd, request), { conversational: true });
|
|
4265
4298
|
if (options.agentMode) {
|
|
4266
4299
|
if (shouldAutoExecuteAfterPlanning(sourceInput)) {
|
|
4267
|
-
await continueWithCurrentTask(cwd);
|
|
4300
|
+
await continueWithCurrentTask(cwd, { runAllReady: true });
|
|
4268
4301
|
return;
|
|
4269
4302
|
}
|
|
4270
4303
|
await showLatestPlannedAtom(cwd);
|
|
@@ -4284,18 +4317,18 @@ Constraints:
|
|
|
4284
4317
|
- If required files are outside this scope, propose the minimum architecture path update first.`;
|
|
4285
4318
|
}
|
|
4286
4319
|
async function planTask() {
|
|
4287
|
-
const { plan: plan2 } = await import("./plan-
|
|
4320
|
+
const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
|
|
4288
4321
|
const description = await promptWithCommands("Describe what you want to build", { allowMultiline: true });
|
|
4289
4322
|
if (description.trim()) {
|
|
4290
4323
|
await plan2(description, { conversational: true });
|
|
4291
4324
|
}
|
|
4292
4325
|
}
|
|
4293
4326
|
async function listAtoms() {
|
|
4294
|
-
const { list: list2 } = await import("./list-
|
|
4327
|
+
const { list: list2 } = await import("./list-K5J3OCXZ.js");
|
|
4295
4328
|
await list2({});
|
|
4296
4329
|
}
|
|
4297
4330
|
async function executeNext() {
|
|
4298
|
-
const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-
|
|
4331
|
+
const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-I3P6U2ZM.js");
|
|
4299
4332
|
const { analyzeProject, getComplexityDescription, getModeDescription } = await import("./orchestration-HIF3KP25.js");
|
|
4300
4333
|
const { loadExecutionPreferences } = await import("./preferences-AGIZD5E5.js");
|
|
4301
4334
|
const cwd = process.cwd();
|
|
@@ -4366,11 +4399,11 @@ async function executeNext() {
|
|
|
4366
4399
|
}
|
|
4367
4400
|
}
|
|
4368
4401
|
if (selectedMode === "parallel-cloud") {
|
|
4369
|
-
const { parallelExecuteCloud: parallelExecuteCloud2 } = await import("./parallel-
|
|
4402
|
+
const { parallelExecuteCloud: parallelExecuteCloud2 } = await import("./parallel-5UP6URF2.js");
|
|
4370
4403
|
await parallelExecuteCloud2(runIds);
|
|
4371
4404
|
return;
|
|
4372
4405
|
}
|
|
4373
|
-
const { parallelExecute } = await import("./parallel-
|
|
4406
|
+
const { parallelExecute } = await import("./parallel-5UP6URF2.js");
|
|
4374
4407
|
await parallelExecute(runIds);
|
|
4375
4408
|
return;
|
|
4376
4409
|
}
|
|
@@ -4378,7 +4411,7 @@ async function executeNext() {
|
|
|
4378
4411
|
const atomId = await prompt("Enter atom ID to execute (or press Enter for first pending)");
|
|
4379
4412
|
const targetId = atomId.trim() || pendingAtoms[0]?.id;
|
|
4380
4413
|
if (targetId) {
|
|
4381
|
-
const { execute: execute2 } = await import("./execute-
|
|
4414
|
+
const { execute: execute2 } = await import("./execute-AQWHZKDH.js");
|
|
4382
4415
|
await execute2(targetId, {});
|
|
4383
4416
|
} else {
|
|
4384
4417
|
console.log(chalk5.yellow("No atom to execute."));
|
|
@@ -4527,7 +4560,7 @@ async function handleSlashCommand(input) {
|
|
|
4527
4560
|
const arg = parts.slice(1).join(" ").trim();
|
|
4528
4561
|
switch (command) {
|
|
4529
4562
|
case "/plan": {
|
|
4530
|
-
const { plan: plan2 } = await import("./plan-
|
|
4563
|
+
const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
|
|
4531
4564
|
if (arg) {
|
|
4532
4565
|
await plan2(arg, { conversational: true });
|
|
4533
4566
|
} else {
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
parallelRunWaves,
|
|
7
7
|
parallelSchedule,
|
|
8
8
|
parallelStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JH3QUPQD.js";
|
|
10
10
|
import "./chunk-EBHHIUCB.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-RH64CSQU.js";
|
|
12
12
|
import "./chunk-WGLVDEZC.js";
|
|
13
13
|
import "./chunk-3MZOEZUH.js";
|
|
14
14
|
import "./chunk-F7R3QKHP.js";
|