archondev 2.19.47 → 2.19.49
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/index.js +35 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3774,6 +3774,10 @@ async function handleAgentConversationInput(cwd, input) {
|
|
|
3774
3774
|
await answerLatestOutputLocation(cwd);
|
|
3775
3775
|
return true;
|
|
3776
3776
|
}
|
|
3777
|
+
if (isRunBacklogDirective(normalized)) {
|
|
3778
|
+
await continueWithCurrentTask(cwd, { runAllReady: true });
|
|
3779
|
+
return true;
|
|
3780
|
+
}
|
|
3777
3781
|
if (pendingAnalysisToAtomRequest && isCreateAtomDirective(normalized)) {
|
|
3778
3782
|
const request = pendingAnalysisToAtomRequest;
|
|
3779
3783
|
pendingAnalysisToAtomRequest = null;
|
|
@@ -3961,6 +3965,20 @@ function isExecutionDirective(input) {
|
|
|
3961
3965
|
}
|
|
3962
3966
|
return /\b(start execution|implement now)\b/.test(normalized);
|
|
3963
3967
|
}
|
|
3968
|
+
function isRunBacklogDirective(input) {
|
|
3969
|
+
const normalized = normalizeDirectiveInput(input);
|
|
3970
|
+
if (!normalized) return false;
|
|
3971
|
+
const direct = /* @__PURE__ */ new Set([
|
|
3972
|
+
"run backlog",
|
|
3973
|
+
"execute backlog",
|
|
3974
|
+
"resume backlog",
|
|
3975
|
+
"run queue",
|
|
3976
|
+
"run pending atoms",
|
|
3977
|
+
"execute pending atoms"
|
|
3978
|
+
]);
|
|
3979
|
+
if (direct.has(normalized)) return true;
|
|
3980
|
+
return /\b(run|execute|resume)\b/.test(normalized) && /\b(backlog|queue|pending atoms)\b/.test(normalized);
|
|
3981
|
+
}
|
|
3964
3982
|
function isCreateAtomDirective(input) {
|
|
3965
3983
|
const normalized = normalizeDirectiveInput(input);
|
|
3966
3984
|
if (!normalized) return false;
|
|
@@ -4374,6 +4392,10 @@ async function handleFreeformJourneyInput(cwd, input) {
|
|
|
4374
4392
|
await answerLatestOutputLocation(cwd);
|
|
4375
4393
|
return true;
|
|
4376
4394
|
}
|
|
4395
|
+
if (isRunBacklogDirective(freeform)) {
|
|
4396
|
+
await continueWithCurrentTask(cwd, { runAllReady: true });
|
|
4397
|
+
return true;
|
|
4398
|
+
}
|
|
4377
4399
|
if (isExecutionDirective(freeform) || isContinuationDirective(freeform)) {
|
|
4378
4400
|
await continueWithCurrentTask(cwd);
|
|
4379
4401
|
return true;
|
|
@@ -4437,7 +4459,17 @@ function extractActionableFollowUpFromExplore(input) {
|
|
|
4437
4459
|
function isFileLocationQuestion(input) {
|
|
4438
4460
|
const normalized = normalizeDirectiveInput(input);
|
|
4439
4461
|
if (!normalized) return false;
|
|
4440
|
-
|
|
4462
|
+
const hasLocationPhrase = /\b(where is|where are|path|file path|location|locate|find)\b/.test(normalized);
|
|
4463
|
+
const hasFileObject = /\b(file|files|output|outputs|modified|changed|written|saved)\b/.test(normalized);
|
|
4464
|
+
const directWhatFiles = /\bwhat files were (modified|changed|written|saved)\b/.test(normalized);
|
|
4465
|
+
const showFiles = /\bshow( me)?( the)? (file|files|output|outputs|changes?)\b/.test(normalized);
|
|
4466
|
+
if (!(directWhatFiles || showFiles || hasLocationPhrase && hasFileObject)) {
|
|
4467
|
+
return false;
|
|
4468
|
+
}
|
|
4469
|
+
if (/\b(plan|implement|create|build|review|analy[sz]e|capsule|lesson)\b/.test(normalized) && !hasLocationPhrase) {
|
|
4470
|
+
return false;
|
|
4471
|
+
}
|
|
4472
|
+
return true;
|
|
4441
4473
|
}
|
|
4442
4474
|
async function answerLatestOutputLocation(cwd) {
|
|
4443
4475
|
const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-I3P6U2ZM.js");
|
|
@@ -4454,15 +4486,13 @@ async function answerLatestOutputLocation(cwd) {
|
|
|
4454
4486
|
const files = latestDone.plan?.files_to_modify ?? [];
|
|
4455
4487
|
if (files.length === 0) {
|
|
4456
4488
|
console.log(chalk6.yellow(`Latest completed atom is ${latestDone.externalId}, but it has no recorded output paths.`));
|
|
4489
|
+
console.log(chalk6.dim(`Inspect details with: archon show ${latestDone.externalId}`));
|
|
4457
4490
|
return;
|
|
4458
4491
|
}
|
|
4459
4492
|
console.log(chalk6.green(`Latest output file(s) from ${latestDone.externalId}:`));
|
|
4460
4493
|
for (const file of files) {
|
|
4461
4494
|
console.log(chalk6.dim(` - ${file}`));
|
|
4462
|
-
|
|
4463
|
-
const firstPath = files[0];
|
|
4464
|
-
if (firstPath) {
|
|
4465
|
-
console.log(chalk6.dim(`Absolute path: ${join6(cwd, firstPath)}`));
|
|
4495
|
+
console.log(chalk6.dim(` ${join6(cwd, file)}`));
|
|
4466
4496
|
}
|
|
4467
4497
|
}
|
|
4468
4498
|
function containsActionIntent(input) {
|