archondev 2.19.50 → 2.19.51

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.
@@ -7,7 +7,7 @@ import {
7
7
  UsageRecorder,
8
8
  handleInsufficientCreditsRecovery,
9
9
  loadAtom
10
- } from "./chunk-RH64CSQU.js";
10
+ } from "./chunk-UYFYB3TJ.js";
11
11
  import {
12
12
  transitionAtom
13
13
  } from "./chunk-WGLVDEZC.js";
@@ -4533,7 +4533,7 @@ var TrackedExecutorAgent = class {
4533
4533
  operation: "EXECUTION",
4534
4534
  inputTokens: result.usage.inputTokens,
4535
4535
  outputTokens: result.usage.outputTokens,
4536
- atomId: atom.id
4536
+ atomId: isUuid(atom.id) ? atom.id : void 0
4537
4537
  });
4538
4538
  totalCostCents = billingResult.costCents;
4539
4539
  remainingBalance = billingResult.remainingBalance;
@@ -4552,6 +4552,9 @@ var TrackedExecutorAgent = class {
4552
4552
  return this.billing;
4553
4553
  }
4554
4554
  };
4555
+ function isUuid(value) {
4556
+ return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(value);
4557
+ }
4555
4558
 
4556
4559
  // src/core/config/roles.ts
4557
4560
  import { existsSync as existsSync7 } from "fs";
@@ -4832,7 +4835,7 @@ async function attemptPathScopeAutoRecovery(atom, cwd, parseSchema, options) {
4832
4835
  if (allowedPaths.length === 0) {
4833
4836
  return false;
4834
4837
  }
4835
- const { listLocalAtoms, plan } = await import("./plan-I3P6U2ZM.js");
4838
+ const { listLocalAtoms, plan } = await import("./plan-QDOPOVJX.js");
4836
4839
  const before = await listLocalAtoms();
4837
4840
  const recoveryStartedAt = Date.now();
4838
4841
  const recoverySource = atom.description ?? atom.title;
@@ -4900,7 +4903,7 @@ async function execute(atomId, options) {
4900
4903
  process.exit(1);
4901
4904
  };
4902
4905
  if (options.parallel && options.parallel.length > 0) {
4903
- const { parallelExecute } = await import("./parallel-5UP6URF2.js");
4906
+ const { parallelExecute } = await import("./parallel-54OGF2X3.js");
4904
4907
  const allAtomIds = [atomId, ...options.parallel];
4905
4908
  await parallelExecute(allAtomIds, { skipGates: options.skipGates === true });
4906
4909
  return;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadAtom
3
- } from "./chunk-RH64CSQU.js";
3
+ } from "./chunk-UYFYB3TJ.js";
4
4
 
5
5
  // src/cli/show.ts
6
6
  import chalk from "chalk";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  listLocalAtoms
3
- } from "./chunk-RH64CSQU.js";
3
+ } from "./chunk-UYFYB3TJ.js";
4
4
 
5
5
  // src/cli/list.ts
6
6
  import chalk from "chalk";
@@ -750,7 +750,7 @@ var TrackedAdversarialPlanner = class {
750
750
  operation: "ADVERSARIAL_PLANNING",
751
751
  inputTokens: result.totalUsage.inputTokens,
752
752
  outputTokens: result.totalUsage.outputTokens,
753
- atomId: atom.id
753
+ atomId: isUuid(atom.id) ? atom.id : void 0
754
754
  });
755
755
  billingResults.push(billingResult);
756
756
  totalCostCents = billingResult.costCents;
@@ -770,6 +770,9 @@ var TrackedAdversarialPlanner = class {
770
770
  return this.billing;
771
771
  }
772
772
  };
773
+ function isUuid(value) {
774
+ return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(value);
775
+ }
773
776
 
774
777
  // src/cli/credits-recovery.ts
775
778
  import chalk from "chalk";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  listLocalAtoms,
8
8
  loadAtom
9
- } from "./chunk-RH64CSQU.js";
9
+ } from "./chunk-UYFYB3TJ.js";
10
10
  import {
11
11
  loadConfig
12
12
  } from "./chunk-SVU7MLG6.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  execute
3
- } from "./chunk-TXUHANIN.js";
3
+ } from "./chunk-NPFO2LYT.js";
4
4
  import "./chunk-EBHHIUCB.js";
5
- import "./chunk-RH64CSQU.js";
5
+ import "./chunk-UYFYB3TJ.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-RLENHKO4.js";
16
+ } from "./chunk-ONA4MA6M.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-JH3QUPQD.js";
53
+ } from "./chunk-XOMTEPVQ.js";
54
54
  import {
55
55
  DependencyParser,
56
56
  EnvironmentConfigLoader,
57
57
  EnvironmentValidator,
58
58
  execute
59
- } from "./chunk-TXUHANIN.js";
59
+ } from "./chunk-NPFO2LYT.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-MQKPOULB.js";
67
+ } from "./chunk-TVQA3HXM.js";
68
68
  import {
69
69
  listLocalAtoms,
70
70
  loadAtom,
71
71
  plan
72
- } from "./chunk-RH64CSQU.js";
72
+ } from "./chunk-UYFYB3TJ.js";
73
73
  import "./chunk-WGLVDEZC.js";
74
74
  import "./chunk-3MZOEZUH.js";
75
75
  import {
@@ -3395,7 +3395,7 @@ async function runExploreFlow(cwd, followUpInput, options = {}) {
3395
3395
  case "1": {
3396
3396
  const description = await promptWithCommands("Describe what you want to do", { allowMultiline: true });
3397
3397
  if (description.trim()) {
3398
- const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
3398
+ const { plan: plan2 } = await import("./plan-QDOPOVJX.js");
3399
3399
  await plan2(description, { conversational: true });
3400
3400
  }
3401
3401
  await showMainMenu();
@@ -3640,7 +3640,7 @@ ${state.forbiddenPatterns?.length ? `- **Forbidden patterns:** ${state.forbidden
3640
3640
  const hintedTask = initialTaskHint?.trim() ?? "";
3641
3641
  if (hintedTask) {
3642
3642
  console.log(chalk6.dim("Using your request above as the first task.\n"));
3643
- const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
3643
+ const { plan: plan2 } = await import("./plan-QDOPOVJX.js");
3644
3644
  await plan2(hintedTask, { conversational: true });
3645
3645
  return;
3646
3646
  }
@@ -3665,7 +3665,7 @@ ${state.forbiddenPatterns?.length ? `- **Forbidden patterns:** ${state.forbidden
3665
3665
  description = continueAnswer.trim();
3666
3666
  }
3667
3667
  if (description.trim()) {
3668
- const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
3668
+ const { plan: plan2 } = await import("./plan-QDOPOVJX.js");
3669
3669
  await plan2(description, { conversational: true });
3670
3670
  }
3671
3671
  }
@@ -3894,7 +3894,7 @@ async function handleAgentConversationInput(cwd, input) {
3894
3894
  return true;
3895
3895
  }
3896
3896
  console.log(chalk6.dim("\n> Got it! Creating a task for this...\n"));
3897
- const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
3897
+ const { plan: plan2 } = await import("./plan-QDOPOVJX.js");
3898
3898
  await plan2(await withAllowedPathScope(cwd, input), { conversational: true });
3899
3899
  if (shouldAutoExecuteAfterPlanning(input)) {
3900
3900
  await continueWithCurrentTask(cwd, { runAllReady: true });
@@ -3941,7 +3941,7 @@ async function showProposalForApproval(input) {
3941
3941
  }
3942
3942
  }
3943
3943
  async function showLatestPlannedAtom(cwd) {
3944
- const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-I3P6U2ZM.js");
3944
+ const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-QDOPOVJX.js");
3945
3945
  const atoms = await listLocalAtoms2();
3946
3946
  if (atoms.length === 0) {
3947
3947
  console.log(chalk6.yellow("No atoms found yet. Tell me what to plan."));
@@ -3959,7 +3959,7 @@ async function showLatestPlannedAtom(cwd) {
3959
3959
  console.log(chalk6.dim(`
3960
3960
  Showing latest planned atom (${latest.externalId})...
3961
3961
  `));
3962
- const { show: show2 } = await import("./show-7HL5NIA7.js");
3962
+ const { show: show2 } = await import("./show-LBFR7FL2.js");
3963
3963
  await show2(latest.externalId);
3964
3964
  }
3965
3965
  function isContinuationDirective(input) {
@@ -4092,7 +4092,7 @@ async function applyApprovedProposal(cwd) {
4092
4092
  console.log(chalk6.dim('\nReply "continue" when you want execution to start.'));
4093
4093
  }
4094
4094
  async function createTaskFromRequest(cwd, request) {
4095
- const { plan: plan2, listLocalAtoms: listLocalAtoms2 } = await import("./plan-I3P6U2ZM.js");
4095
+ const { plan: plan2, listLocalAtoms: listLocalAtoms2 } = await import("./plan-QDOPOVJX.js");
4096
4096
  const before = await listLocalAtoms2();
4097
4097
  const beforeIds = new Set(before.map((atom) => atom.externalId));
4098
4098
  await plan2(await withAllowedPathScope(cwd, request), { conversational: true });
@@ -4268,13 +4268,13 @@ function buildSampleCapsuleDraft(cwd, files, capsuleCount) {
4268
4268
  ].join("\n");
4269
4269
  }
4270
4270
  async function continueWithCurrentTask(cwd, options = {}) {
4271
- const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-I3P6U2ZM.js");
4271
+ const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-QDOPOVJX.js");
4272
4272
  const byMostRecent = (a, b) => {
4273
4273
  const aTime = new Date(String(a.updatedAt ?? a.createdAt ?? "")).getTime() || 0;
4274
4274
  const bTime = new Date(String(b.updatedAt ?? b.createdAt ?? "")).getTime() || 0;
4275
4275
  return bTime - aTime;
4276
4276
  };
4277
- const { execute: execute2 } = await import("./execute-QQ3OPP6H.js");
4277
+ const { execute: execute2 } = await import("./execute-544PE37M.js");
4278
4278
  const runAllReady = options.runAllReady === true;
4279
4279
  const scopeIds = options.onlyAtomIds ? new Set(options.onlyAtomIds) : null;
4280
4280
  const attempted = /* @__PURE__ */ new Set();
@@ -4350,7 +4350,7 @@ Continuing with ${nextAtom.externalId}...
4350
4350
  }
4351
4351
  }
4352
4352
  async function replanLatestBlockedAtom(cwd) {
4353
- const { listLocalAtoms: listLocalAtoms2, plan: plan2 } = await import("./plan-I3P6U2ZM.js");
4353
+ const { listLocalAtoms: listLocalAtoms2, plan: plan2 } = await import("./plan-QDOPOVJX.js");
4354
4354
  const atoms = await listLocalAtoms2();
4355
4355
  const blocked = atoms.filter((a) => a.status === "BLOCKED" && (a.errorMessage ?? "").toLowerCase().includes("outside the allowed paths")).sort((a, b) => {
4356
4356
  const aTime = new Date(String(a.updatedAt ?? a.createdAt ?? "")).getTime() || 0;
@@ -4464,7 +4464,7 @@ async function handleFreeformJourneyInput(cwd, input) {
4464
4464
  const state = detectProjectState(cwd);
4465
4465
  if (state.hasArchitecture) {
4466
4466
  console.log(chalk6.dim("\n> Got it! Creating a task for this...\n"));
4467
- const { plan: plan3 } = await import("./plan-I3P6U2ZM.js");
4467
+ const { plan: plan3 } = await import("./plan-QDOPOVJX.js");
4468
4468
  await plan3(await withAllowedPathScope(cwd, freeform), { conversational: true });
4469
4469
  return true;
4470
4470
  }
@@ -4473,7 +4473,7 @@ async function handleFreeformJourneyInput(cwd, input) {
4473
4473
  return true;
4474
4474
  }
4475
4475
  console.log(chalk6.dim("\n> Got it! Creating a task for this...\n"));
4476
- const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
4476
+ const { plan: plan2 } = await import("./plan-QDOPOVJX.js");
4477
4477
  await plan2(await withAllowedPathScope(cwd, freeform), { conversational: true });
4478
4478
  return true;
4479
4479
  }
@@ -4522,7 +4522,7 @@ function isFileLocationQuestion(input) {
4522
4522
  return true;
4523
4523
  }
4524
4524
  async function answerLatestOutputLocation(cwd) {
4525
- const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-I3P6U2ZM.js");
4525
+ const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-QDOPOVJX.js");
4526
4526
  const atoms = await listLocalAtoms2();
4527
4527
  const latestDone = atoms.filter((atom) => atom.status === "DONE").sort((a, b) => {
4528
4528
  const aTime = new Date(String(a.updatedAt ?? a.createdAt ?? "")).getTime() || 0;
@@ -4571,7 +4571,7 @@ async function handlePostExploreAction(cwd, request, options = {}) {
4571
4571
  } else {
4572
4572
  console.log(chalk6.dim("> Got it! Creating a task for this...\n"));
4573
4573
  }
4574
- const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
4574
+ const { plan: plan2 } = await import("./plan-QDOPOVJX.js");
4575
4575
  await plan2(await withAllowedPathScope(cwd, request), { conversational: true });
4576
4576
  if (options.agentMode) {
4577
4577
  if (shouldAutoExecuteAfterPlanning(sourceInput)) {
@@ -4595,18 +4595,18 @@ Constraints:
4595
4595
  - If required files are outside this scope, propose the minimum architecture path update first.`;
4596
4596
  }
4597
4597
  async function planTask() {
4598
- const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
4598
+ const { plan: plan2 } = await import("./plan-QDOPOVJX.js");
4599
4599
  const description = await promptWithCommands("Describe what you want to build", { allowMultiline: true });
4600
4600
  if (description.trim()) {
4601
4601
  await plan2(description, { conversational: true });
4602
4602
  }
4603
4603
  }
4604
4604
  async function listAtoms() {
4605
- const { list: list2 } = await import("./list-K5J3OCXZ.js");
4605
+ const { list: list2 } = await import("./list-ON64JA24.js");
4606
4606
  await list2({});
4607
4607
  }
4608
4608
  async function executeNext() {
4609
- const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-I3P6U2ZM.js");
4609
+ const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-QDOPOVJX.js");
4610
4610
  const { analyzeProject, getComplexityDescription, getModeDescription } = await import("./orchestration-HIF3KP25.js");
4611
4611
  const { loadExecutionPreferences } = await import("./preferences-MTGN2VZK.js");
4612
4612
  const cwd = process.cwd();
@@ -4677,11 +4677,11 @@ async function executeNext() {
4677
4677
  }
4678
4678
  }
4679
4679
  if (selectedMode === "parallel-cloud") {
4680
- const { parallelExecuteCloud: parallelExecuteCloud2 } = await import("./parallel-5UP6URF2.js");
4680
+ const { parallelExecuteCloud: parallelExecuteCloud2 } = await import("./parallel-54OGF2X3.js");
4681
4681
  await parallelExecuteCloud2(runIds);
4682
4682
  return;
4683
4683
  }
4684
- const { parallelExecute } = await import("./parallel-5UP6URF2.js");
4684
+ const { parallelExecute } = await import("./parallel-54OGF2X3.js");
4685
4685
  await parallelExecute(runIds);
4686
4686
  return;
4687
4687
  }
@@ -4689,7 +4689,7 @@ async function executeNext() {
4689
4689
  const atomId = await prompt("Enter atom ID to execute (or press Enter for first pending)");
4690
4690
  const targetId = atomId.trim() || pendingAtoms[0]?.id;
4691
4691
  if (targetId) {
4692
- const { execute: execute2 } = await import("./execute-QQ3OPP6H.js");
4692
+ const { execute: execute2 } = await import("./execute-544PE37M.js");
4693
4693
  await execute2(targetId, {});
4694
4694
  } else {
4695
4695
  console.log(chalk6.yellow("No atom to execute."));
@@ -4838,7 +4838,7 @@ async function handleSlashCommand(input) {
4838
4838
  const arg = parts.slice(1).join(" ").trim();
4839
4839
  switch (command) {
4840
4840
  case "/plan": {
4841
- const { plan: plan2 } = await import("./plan-I3P6U2ZM.js");
4841
+ const { plan: plan2 } = await import("./plan-QDOPOVJX.js");
4842
4842
  if (arg) {
4843
4843
  await plan2(arg, { conversational: true });
4844
4844
  } else {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  list
3
- } from "./chunk-MQKPOULB.js";
4
- import "./chunk-RH64CSQU.js";
3
+ } from "./chunk-TVQA3HXM.js";
4
+ import "./chunk-UYFYB3TJ.js";
5
5
  import "./chunk-WGLVDEZC.js";
6
6
  import "./chunk-3MZOEZUH.js";
7
7
  import "./chunk-F7R3QKHP.js";
@@ -6,9 +6,9 @@ import {
6
6
  parallelRunWaves,
7
7
  parallelSchedule,
8
8
  parallelStatus
9
- } from "./chunk-JH3QUPQD.js";
9
+ } from "./chunk-XOMTEPVQ.js";
10
10
  import "./chunk-EBHHIUCB.js";
11
- import "./chunk-RH64CSQU.js";
11
+ import "./chunk-UYFYB3TJ.js";
12
12
  import "./chunk-WGLVDEZC.js";
13
13
  import "./chunk-3MZOEZUH.js";
14
14
  import "./chunk-F7R3QKHP.js";
@@ -3,7 +3,7 @@ import {
3
3
  loadAtom,
4
4
  parseAtomDescription,
5
5
  plan
6
- } from "./chunk-RH64CSQU.js";
6
+ } from "./chunk-UYFYB3TJ.js";
7
7
  import "./chunk-WGLVDEZC.js";
8
8
  import "./chunk-3MZOEZUH.js";
9
9
  import "./chunk-F7R3QKHP.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  show
3
- } from "./chunk-RLENHKO4.js";
4
- import "./chunk-RH64CSQU.js";
3
+ } from "./chunk-ONA4MA6M.js";
4
+ import "./chunk-UYFYB3TJ.js";
5
5
  import "./chunk-WGLVDEZC.js";
6
6
  import "./chunk-3MZOEZUH.js";
7
7
  import "./chunk-F7R3QKHP.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archondev",
3
- "version": "2.19.50",
3
+ "version": "2.19.51",
4
4
  "description": "Local-first AI-powered development governance system",
5
5
  "main": "dist/index.js",
6
6
  "bin": {