archondev 2.18.2 → 2.18.3

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.
@@ -3,7 +3,7 @@ import {
3
3
  getGitBranch,
4
4
  getGitRemoteUrl,
5
5
  queueCloudExecution
6
- } from "./chunk-4YEJ26F7.js";
6
+ } from "./chunk-Z65525NP.js";
7
7
  import {
8
8
  UsageRecorder,
9
9
  loadAtom
@@ -4791,7 +4791,7 @@ function createPrompt() {
4791
4791
  }
4792
4792
  async function execute(atomId, options) {
4793
4793
  if (options.parallel && options.parallel.length > 0) {
4794
- const { parallelExecute } = await import("./parallel-W2ETYYAL.js");
4794
+ const { parallelExecute } = await import("./parallel-27ZWSW6B.js");
4795
4795
  const allAtomIds = [atomId, ...options.parallel];
4796
4796
  await parallelExecute(allAtomIds, { skipGates: options.skipGates === true });
4797
4797
  return;
@@ -2,7 +2,7 @@ import {
2
2
  getGitBranch,
3
3
  getGitRemoteUrl,
4
4
  queueCloudExecution
5
- } from "./chunk-4YEJ26F7.js";
5
+ } from "./chunk-Z65525NP.js";
6
6
  import {
7
7
  listLocalAtoms,
8
8
  loadAtom
@@ -117,6 +117,15 @@ async function queueCloudExecution(atomId, projectName, options) {
117
117
  throw new Error('Not authenticated. Run "archon login" first.');
118
118
  }
119
119
  const client = getClient(authToken);
120
+ if (config.userId) {
121
+ const { data: profile, error: profileError } = await client.from("user_profiles").select("tier").eq("auth_id", config.userId).single();
122
+ if (profileError || !profile) {
123
+ throw new Error("Unable to verify billing tier. Try again or re-login.");
124
+ }
125
+ if (profile.tier !== "CREDITS") {
126
+ throw new Error("Cloud execution requires Credits tier. BYOK and Free run locally.");
127
+ }
128
+ }
120
129
  const insertData = {
121
130
  atom_id: atomId,
122
131
  project_name: projectName,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  execute
3
- } from "./chunk-EKU62MGC.js";
4
- import "./chunk-4YEJ26F7.js";
3
+ } from "./chunk-3WJIZGHN.js";
4
+ import "./chunk-Z65525NP.js";
5
5
  import "./chunk-3PZ7WU5I.js";
6
6
  import "./chunk-5EVHUDQX.js";
7
7
  import "./chunk-5CFGPXQ3.js";
package/dist/index.js CHANGED
@@ -44,19 +44,19 @@ import {
44
44
  parallelRunWaves,
45
45
  parallelSchedule,
46
46
  parallelStatus
47
- } from "./chunk-NCPHO54C.js";
47
+ } from "./chunk-DYYWJ5MO.js";
48
48
  import {
49
49
  DependencyParser,
50
50
  EnvironmentConfigLoader,
51
51
  EnvironmentValidator,
52
52
  execute
53
- } from "./chunk-EKU62MGC.js";
53
+ } from "./chunk-3WJIZGHN.js";
54
54
  import {
55
55
  cloudCancel,
56
56
  cloudLogs,
57
57
  cloudStatus,
58
58
  createAuthedSupabaseClient
59
- } from "./chunk-4YEJ26F7.js";
59
+ } from "./chunk-Z65525NP.js";
60
60
  import {
61
61
  list
62
62
  } from "./chunk-NJF6MRTR.js";
@@ -3767,7 +3767,7 @@ async function executeNext() {
3767
3767
  if (canUseCloud) {
3768
3768
  options.push({ key: "3", label: "Parallel (cloud)" });
3769
3769
  }
3770
- const choice = await promptChoice("Select execution mode", options);
3770
+ const choice = await promptChoice("Select execution mode", options, "1");
3771
3771
  if (choice === "2") selectedMode = "parallel-local";
3772
3772
  if (choice === "3" && canUseCloud) selectedMode = "parallel-cloud";
3773
3773
  }
@@ -3799,11 +3799,11 @@ async function executeNext() {
3799
3799
  }
3800
3800
  }
3801
3801
  if (selectedMode === "parallel-cloud") {
3802
- const { parallelExecuteCloud: parallelExecuteCloud2 } = await import("./parallel-W2ETYYAL.js");
3802
+ const { parallelExecuteCloud: parallelExecuteCloud2 } = await import("./parallel-27ZWSW6B.js");
3803
3803
  await parallelExecuteCloud2(runIds);
3804
3804
  return;
3805
3805
  }
3806
- const { parallelExecute } = await import("./parallel-W2ETYYAL.js");
3806
+ const { parallelExecute } = await import("./parallel-27ZWSW6B.js");
3807
3807
  await parallelExecute(runIds);
3808
3808
  return;
3809
3809
  }
@@ -3811,7 +3811,7 @@ async function executeNext() {
3811
3811
  const atomId = await prompt("Enter atom ID to execute (or press Enter for first pending)");
3812
3812
  const targetId = atomId.trim() || pendingAtoms[0]?.id;
3813
3813
  if (targetId) {
3814
- const { execute: execute2 } = await import("./execute-MB4ZF3HQ.js");
3814
+ const { execute: execute2 } = await import("./execute-2RL7NTHZ.js");
3815
3815
  await execute2(targetId, {});
3816
3816
  } else {
3817
3817
  console.log(chalk6.yellow("No atom to execute."));
@@ -4037,7 +4037,7 @@ async function maybePromptWebChecks(cwd, projectState) {
4037
4037
  { key: "2", label: "Choose checks" },
4038
4038
  { key: "3", label: "Not now" },
4039
4039
  { key: "4", label: "Never ask again" }
4040
- ]);
4040
+ ], "3");
4041
4041
  if (choice === "1") {
4042
4042
  await runWebChecksSuite();
4043
4043
  } else if (choice === "2") {
@@ -4063,7 +4063,7 @@ function promptYesNo(question, defaultValue) {
4063
4063
  });
4064
4064
  });
4065
4065
  }
4066
- function promptChoice(question, options) {
4066
+ function promptChoice(question, options, defaultKey) {
4067
4067
  return new Promise((resolve) => {
4068
4068
  console.log(`${chalk6.cyan("?")} ${question}`);
4069
4069
  for (const opt of options) {
@@ -4075,7 +4075,16 @@ function promptChoice(question, options) {
4075
4075
  });
4076
4076
  rl.question(` ${chalk6.dim("Enter choice")}: `, (answer) => {
4077
4077
  rl.close();
4078
- resolve(answer.trim() || "1");
4078
+ const trimmed = answer.trim();
4079
+ if (trimmed) {
4080
+ resolve(trimmed);
4081
+ return;
4082
+ }
4083
+ if (defaultKey) {
4084
+ resolve(defaultKey);
4085
+ return;
4086
+ }
4087
+ resolve("");
4079
4088
  });
4080
4089
  });
4081
4090
  }
@@ -6,8 +6,8 @@ import {
6
6
  parallelRunWaves,
7
7
  parallelSchedule,
8
8
  parallelStatus
9
- } from "./chunk-NCPHO54C.js";
10
- import "./chunk-4YEJ26F7.js";
9
+ } from "./chunk-DYYWJ5MO.js";
10
+ import "./chunk-Z65525NP.js";
11
11
  import "./chunk-3PZ7WU5I.js";
12
12
  import "./chunk-5EVHUDQX.js";
13
13
  import "./chunk-5CFGPXQ3.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archondev",
3
- "version": "2.18.2",
3
+ "version": "2.18.3",
4
4
  "description": "Local-first AI-powered development governance system",
5
5
  "main": "dist/index.js",
6
6
  "bin": {