archondev 2.18.8 → 2.19.1

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
@@ -32,7 +32,7 @@ Copy governance files into any project. Works with your existing AI tools: **Cur
32
32
  [Download Lite Packages →](https://archondev.io/download)
33
33
 
34
34
  **What you get:**
35
- - ARCHITECTURE.md template with best practices
35
+ - .archon/active/architecture.md template with best practices
36
36
  - **Quality Level / Posture** — Tell AI if it's prototype, production, or enterprise-grade
37
37
  - IDE-specific rule files (.cursorrules, CLAUDE.md, GEMINI.md, etc.)
38
38
  - Progress tracking templates
@@ -45,6 +45,15 @@ Copy governance files into any project. Works with your existing AI tools: **Cur
45
45
  - **Pre-Deploy Accessibility** — WCAG 2.2 AA check before going live, legal liability warnings
46
46
  - Works with any AI coding assistant
47
47
 
48
+ ### Local Governance SQLite (Dev Only)
49
+
50
+ Governance data for this repo lives in `.archon/governance.db` and is local-only. It is never synced to Supabase.
51
+ To initialize or refresh it:
52
+
53
+ ```bash
54
+ pnpm exec tsx scripts/init-governance-db.ts
55
+ ```
56
+
48
57
  ---
49
58
 
50
59
  ## Commands
@@ -84,6 +93,12 @@ Copy governance files into any project. Works with your existing AI tools: **Cur
84
93
  | `archon seo fix` | Apply recommended SEO fixes |
85
94
  | `archon geo identity` | Generate brand identity phrases for AI citation |
86
95
  | `archon geo schema` | Generate JSON-LD schemas |
96
+ | `archon governance status` | Show governance status (AGD) |
97
+ | `archon governance architecture update` | Update architecture with change reason |
98
+ | `archon governance task update` | Update governance tasks |
99
+ | `archon governance handoff` | Log handoff + current context |
100
+ | `archon governance migrate` | Migrate legacy governance files |
101
+ | `archon governance sqlite-init` | Initialize or refresh local governance SQLite DB |
87
102
  | `archon github connect` | Link GitHub account for cloud execution |
88
103
  | `archon github status` | Check GitHub connection status |
89
104
  | `archon session save [name]` | Save current session to cloud |
@@ -100,6 +115,10 @@ Copy governance files into any project. Works with your existing AI tools: **Cur
100
115
  | `archon cleanup run` | Execute cleanup tasks |
101
116
  | `archon cleanup auto [enable\|disable]` | Enable/disable auto cleanup on start |
102
117
 
118
+ **Notes:**
119
+ - Credits tier shows your balance and per‑model usage on startup; use `archon credits` for full details and history.
120
+ - You can paste multi‑line requests into interactive prompts; Archon captures them as a single response.
121
+
103
122
  **Tip:** Use `archon plan --edit` to adjust title and acceptance criteria before planning.
104
123
  **Web Checks:** If Archon detects a web project, it prompts to run A11y/SEO/GEO checks and stores your preference in `.archon/config.yaml`.
105
124
 
@@ -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";
@@ -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-AFC2XMZS.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-NXSICGS5.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-AFC2XMZS.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-AFC2XMZS.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-SLUOXPMX.js";
3
+ } from "./chunk-OREGEFTF.js";
4
4
  import "./chunk-EBHHIUCB.js";
5
- import "./chunk-AFC2XMZS.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";