archondev 2.18.7 → 2.19.0

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/README.md CHANGED
@@ -88,6 +88,10 @@ Copy governance files into any project. Works with your existing AI tools: **Cur
88
88
  | `archon github status` | Check GitHub connection status |
89
89
  | `archon session save [name]` | Save current session to cloud |
90
90
  | `archon session resume [id]` | Resume session on another device |
91
+
92
+ **Notes:**
93
+ - Credits tier shows your balance and per‑model usage on startup; use `archon credits` for full details and history.
94
+ - You can paste multi‑line requests into interactive prompts; Archon captures them as a single response.
91
95
  | `archon execute ATOM --cloud` | Execute in cloud (creates PR when done) |
92
96
  | `archon cloud status` | List cloud executions |
93
97
  | `archon parallel cloud ATOM-001 ATOM-002` | Queue multiple atoms for cloud execution (Credits tier) |
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  bugReport
3
- } from "./chunk-2BCITFWP.js";
4
- import "./chunk-5CFGPXQ3.js";
5
- import "./chunk-5BYCJAFM.js";
6
- import "./chunk-HJARQDQR.js";
3
+ } from "./chunk-DCIIYVJW.js";
4
+ import "./chunk-PCTP3LKJ.js";
5
+ import "./chunk-PJRQI5UN.js";
6
+ import "./chunk-EIEU3IIY.js";
7
7
  import "./chunk-UFR2LX6G.js";
8
8
  import "./chunk-SVU7MLG6.js";
9
9
  import "./chunk-4VNS5WPM.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createAtom,
3
3
  validateAtom
4
- } from "./chunk-5CFGPXQ3.js";
4
+ } from "./chunk-PCTP3LKJ.js";
5
5
  import {
6
6
  ArchitectAgent
7
- } from "./chunk-5BYCJAFM.js";
7
+ } from "./chunk-PJRQI5UN.js";
8
8
  import {
9
9
  AnthropicClient,
10
10
  getDefaultModel
11
- } from "./chunk-HJARQDQR.js";
11
+ } from "./chunk-EIEU3IIY.js";
12
12
  import {
13
13
  createAuthedSupabaseClient
14
14
  } from "./chunk-Q3GIFHIQ.js";
@@ -1110,7 +1110,8 @@ async function promptForDeliverableTarget(prompt, requirements, references) {
1110
1110
  async function resolveProfileId(authId, accessToken) {
1111
1111
  try {
1112
1112
  const supabase = createAuthedSupabaseClient(SUPABASE_URL, SUPABASE_ANON_KEY, accessToken);
1113
- const { data, error } = await supabase.from("user_profiles").select("id").eq("auth_id", authId).single();
1113
+ const { data: rawData, error } = await supabase.from("user_profiles").select("id").eq("auth_id", authId).single();
1114
+ const data = rawData;
1114
1115
  if (error || !data?.id) return null;
1115
1116
  return data.id;
1116
1117
  } catch {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createAtom
3
- } from "./chunk-5CFGPXQ3.js";
3
+ } from "./chunk-PCTP3LKJ.js";
4
4
  import {
5
5
  ArchitectAgent
6
- } from "./chunk-5BYCJAFM.js";
6
+ } from "./chunk-PJRQI5UN.js";
7
7
  import {
8
8
  loadConfig
9
9
  } from "./chunk-SVU7MLG6.js";
@@ -6,6 +6,12 @@ import {
6
6
  import Anthropic from "@anthropic-ai/sdk";
7
7
 
8
8
  // src/utils/index.ts
9
+ function ok(value) {
10
+ return { ok: true, value };
11
+ }
12
+ function err(error) {
13
+ return { ok: false, error };
14
+ }
9
15
  function sleep(ms) {
10
16
  return new Promise((resolve) => setTimeout(resolve, ms));
11
17
  }
@@ -108,6 +114,9 @@ import OpenAI from "openai";
108
114
  import { GoogleGenerativeAI } from "@google/generative-ai";
109
115
 
110
116
  export {
117
+ ok,
118
+ err,
119
+ sleep,
111
120
  generateId,
112
121
  AnthropicClient,
113
122
  getDefaultModel
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AnthropicClient,
3
3
  getDefaultModel
4
- } from "./chunk-HJARQDQR.js";
4
+ } from "./chunk-EIEU3IIY.js";
5
5
 
6
6
  // src/core/code-review/database.ts
7
7
  import Database from "better-sqlite3";
@@ -4,7 +4,7 @@ import {
4
4
  analyzeProject,
5
5
  featuresToTasks,
6
6
  readArchitectureContext
7
- } from "./chunk-HGLPIM7J.js";
7
+ } from "./chunk-KG35EHZY.js";
8
8
 
9
9
  // src/cli/review.ts
10
10
  import chalk from "chalk";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-3ASILTFB.js";
4
4
  import {
5
5
  ArchitectAgent
6
- } from "./chunk-5BYCJAFM.js";
6
+ } from "./chunk-PJRQI5UN.js";
7
7
  import {
8
8
  loadConfig
9
9
  } from "./chunk-SVU7MLG6.js";
@@ -6,14 +6,14 @@ import {
6
6
  import {
7
7
  UsageRecorder,
8
8
  loadAtom
9
- } from "./chunk-ESSNYHC7.js";
9
+ } from "./chunk-ACFMKTDL.js";
10
10
  import {
11
11
  transitionAtom
12
- } from "./chunk-5CFGPXQ3.js";
12
+ } from "./chunk-PCTP3LKJ.js";
13
13
  import {
14
14
  AnthropicClient,
15
15
  getDefaultModel
16
- } from "./chunk-HJARQDQR.js";
16
+ } from "./chunk-EIEU3IIY.js";
17
17
  import {
18
18
  createAuthedSupabaseClient
19
19
  } from "./chunk-Q3GIFHIQ.js";
@@ -4793,7 +4793,7 @@ function createPrompt() {
4793
4793
  }
4794
4794
  async function execute(atomId, options) {
4795
4795
  if (options.parallel && options.parallel.length > 0) {
4796
- const { parallelExecute } = await import("./parallel-U3COBCHB.js");
4796
+ const { parallelExecute } = await import("./parallel-23VQYK7H.js");
4797
4797
  const allAtomIds = [atomId, ...options.parallel];
4798
4798
  await parallelExecute(allAtomIds, { skipGates: options.skipGates === true });
4799
4799
  return;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateId
3
- } from "./chunk-HJARQDQR.js";
3
+ } from "./chunk-EIEU3IIY.js";
4
4
 
5
5
  // src/core/atoms/types.ts
6
6
  var ATOM_TRANSITIONS = {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AnthropicClient,
3
3
  getDefaultModel
4
- } from "./chunk-HJARQDQR.js";
4
+ } from "./chunk-EIEU3IIY.js";
5
5
 
6
6
  // src/agents/architect.ts
7
7
  import { readFile } from "fs/promises";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  listLocalAtoms,
8
8
  loadAtom
9
- } from "./chunk-ESSNYHC7.js";
9
+ } from "./chunk-ACFMKTDL.js";
10
10
  import {
11
11
  loadConfig
12
12
  } from "./chunk-SVU7MLG6.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  listLocalAtoms
3
- } from "./chunk-ESSNYHC7.js";
3
+ } from "./chunk-ACFMKTDL.js";
4
4
 
5
5
  // src/cli/list.ts
6
6
  import chalk from "chalk";
@@ -4,8 +4,8 @@ import {
4
4
  analyzeProject,
5
5
  featuresToTasks,
6
6
  readArchitectureContext
7
- } from "./chunk-HGLPIM7J.js";
8
- import "./chunk-HJARQDQR.js";
7
+ } from "./chunk-KG35EHZY.js";
8
+ import "./chunk-EIEU3IIY.js";
9
9
  import "./chunk-UFR2LX6G.js";
10
10
  import "./chunk-4VNS5WPM.js";
11
11
  export {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  execute
3
- } from "./chunk-MRRA3QDP.js";
3
+ } from "./chunk-OREGEFTF.js";
4
4
  import "./chunk-EBHHIUCB.js";
5
- import "./chunk-ESSNYHC7.js";
6
- import "./chunk-5CFGPXQ3.js";
7
- import "./chunk-5BYCJAFM.js";
8
- import "./chunk-HJARQDQR.js";
5
+ import "./chunk-ACFMKTDL.js";
6
+ import "./chunk-PCTP3LKJ.js";
7
+ import "./chunk-PJRQI5UN.js";
8
+ import "./chunk-EIEU3IIY.js";
9
9
  import "./chunk-Q3GIFHIQ.js";
10
10
  import "./chunk-5EVHUDQX.js";
11
11
  import "./chunk-UFR2LX6G.js";
@@ -4,10 +4,10 @@ import {
4
4
  geoFaq,
5
5
  geoIdentity,
6
6
  geoSchema
7
- } from "./chunk-OAHFRSDS.js";
7
+ } from "./chunk-O3B6BE5D.js";
8
8
  import "./chunk-3ASILTFB.js";
9
- import "./chunk-5BYCJAFM.js";
10
- import "./chunk-HJARQDQR.js";
9
+ import "./chunk-PJRQI5UN.js";
10
+ import "./chunk-EIEU3IIY.js";
11
11
  import "./chunk-UFR2LX6G.js";
12
12
  import "./chunk-SVU7MLG6.js";
13
13
  import "./chunk-4VNS5WPM.js";