aether-colony 3.1.4 β 3.1.15
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/.claude/commands/ant/archaeology.md +12 -0
- package/.claude/commands/ant/build.md +382 -319
- package/.claude/commands/ant/chaos.md +23 -1
- package/.claude/commands/ant/colonize.md +147 -87
- package/.claude/commands/ant/continue.md +213 -23
- package/.claude/commands/ant/council.md +22 -0
- package/.claude/commands/ant/dream.md +18 -0
- package/.claude/commands/ant/entomb.md +178 -6
- package/.claude/commands/ant/init.md +87 -13
- package/.claude/commands/ant/lay-eggs.md +45 -5
- package/.claude/commands/ant/oracle.md +82 -9
- package/.claude/commands/ant/organize.md +2 -2
- package/.claude/commands/ant/pause-colony.md +86 -28
- package/.claude/commands/ant/phase.md +26 -0
- package/.claude/commands/ant/plan.md +204 -111
- package/.claude/commands/ant/resume-colony.md +23 -1
- package/.claude/commands/ant/resume.md +159 -0
- package/.claude/commands/ant/seal.md +177 -3
- package/.claude/commands/ant/swarm.md +78 -97
- package/.claude/commands/ant/verify-castes.md +7 -7
- package/.claude/commands/ant/watch.md +17 -0
- package/.opencode/agents/aether-ambassador.md +97 -0
- package/.opencode/agents/aether-archaeologist.md +91 -0
- package/.opencode/agents/aether-architect.md +66 -0
- package/.opencode/agents/aether-auditor.md +111 -0
- package/.opencode/agents/aether-builder.md +28 -10
- package/.opencode/agents/aether-chaos.md +98 -0
- package/.opencode/agents/aether-chronicler.md +80 -0
- package/.opencode/agents/aether-gatekeeper.md +107 -0
- package/.opencode/agents/aether-guardian.md +107 -0
- package/.opencode/agents/aether-includer.md +108 -0
- package/.opencode/agents/aether-keeper.md +106 -0
- package/.opencode/agents/aether-measurer.md +119 -0
- package/.opencode/agents/aether-probe.md +91 -0
- package/.opencode/agents/aether-queen.md +72 -19
- package/.opencode/agents/aether-route-setter.md +85 -0
- package/.opencode/agents/aether-sage.md +98 -0
- package/.opencode/agents/aether-scout.md +33 -15
- package/.opencode/agents/aether-surveyor-disciplines.md +334 -0
- package/.opencode/agents/aether-surveyor-nest.md +272 -0
- package/.opencode/agents/aether-surveyor-pathogens.md +209 -0
- package/.opencode/agents/aether-surveyor-provisions.md +277 -0
- package/.opencode/agents/aether-tracker.md +91 -0
- package/.opencode/agents/aether-watcher.md +30 -12
- package/.opencode/agents/aether-weaver.md +87 -0
- package/.opencode/agents/workers.md +1034 -0
- package/.opencode/commands/ant/archaeology.md +44 -26
- package/.opencode/commands/ant/build.md +327 -295
- package/.opencode/commands/ant/chaos.md +32 -4
- package/.opencode/commands/ant/colonize.md +119 -93
- package/.opencode/commands/ant/continue.md +98 -10
- package/.opencode/commands/ant/council.md +28 -0
- package/.opencode/commands/ant/dream.md +24 -0
- package/.opencode/commands/ant/entomb.md +73 -1
- package/.opencode/commands/ant/feedback.md +8 -2
- package/.opencode/commands/ant/flag.md +9 -3
- package/.opencode/commands/ant/flags.md +8 -2
- package/.opencode/commands/ant/focus.md +8 -2
- package/.opencode/commands/ant/help.md +12 -0
- package/.opencode/commands/ant/init.md +49 -4
- package/.opencode/commands/ant/lay-eggs.md +30 -2
- package/.opencode/commands/ant/oracle.md +39 -7
- package/.opencode/commands/ant/organize.md +9 -3
- package/.opencode/commands/ant/pause-colony.md +54 -1
- package/.opencode/commands/ant/phase.md +36 -4
- package/.opencode/commands/ant/plan.md +225 -117
- package/.opencode/commands/ant/redirect.md +8 -2
- package/.opencode/commands/ant/resume-colony.md +51 -26
- package/.opencode/commands/ant/seal.md +76 -0
- package/.opencode/commands/ant/status.md +50 -20
- package/.opencode/commands/ant/swarm.md +108 -104
- package/.opencode/commands/ant/tunnels.md +107 -2
- package/CHANGELOG.md +21 -0
- package/README.md +199 -86
- package/bin/cli.js +142 -25
- package/bin/generate-commands.sh +100 -16
- package/bin/lib/caste-colors.js +5 -5
- package/bin/lib/errors.js +16 -0
- package/bin/lib/file-lock.js +279 -44
- package/bin/lib/state-sync.js +206 -23
- package/bin/lib/update-transaction.js +206 -24
- package/bin/sync-to-runtime.sh +129 -0
- package/package.json +2 -2
- package/runtime/CONTEXT.md +160 -0
- package/runtime/aether-utils.sh +1421 -55
- package/runtime/docs/AETHER-2.0-IMPLEMENTATION-PLAN.md +1343 -0
- package/runtime/docs/AETHER-PHEROMONE-SYSTEM-MASTER-SPEC.md +2642 -0
- package/runtime/docs/PHEROMONE-INJECTION.md +240 -0
- package/runtime/docs/PHEROMONE-INTEGRATION.md +192 -0
- package/runtime/docs/PHEROMONE-SYSTEM-DESIGN.md +426 -0
- package/runtime/docs/README.md +94 -0
- package/runtime/docs/VISUAL-OUTPUT-SPEC.md +219 -0
- package/runtime/docs/biological-reference.md +272 -0
- package/runtime/docs/codebase-review.md +399 -0
- package/runtime/docs/command-sync.md +164 -0
- package/runtime/docs/implementation-learnings.md +89 -0
- package/runtime/docs/known-issues.md +217 -0
- package/runtime/docs/namespace.md +148 -0
- package/runtime/docs/planning-discipline.md +159 -0
- package/runtime/lib/queen-utils.sh +729 -0
- package/runtime/model-profiles.yaml +100 -0
- package/runtime/recover.sh +136 -0
- package/runtime/templates/QUEEN.md.template +79 -0
- package/runtime/utils/atomic-write.sh +5 -5
- package/runtime/utils/chamber-utils.sh +6 -3
- package/runtime/utils/error-handler.sh +200 -0
- package/runtime/utils/queen-to-md.xsl +395 -0
- package/runtime/utils/spawn-tree.sh +428 -0
- package/runtime/utils/spawn-with-model.sh +56 -0
- package/runtime/utils/state-loader.sh +215 -0
- package/runtime/utils/swarm-display.sh +5 -5
- package/runtime/utils/watch-spawn-tree.sh +90 -22
- package/runtime/utils/xml-compose.sh +247 -0
- package/runtime/utils/xml-core.sh +186 -0
- package/runtime/utils/xml-utils.sh +2161 -0
- package/runtime/verification-loop.md +1 -1
- package/runtime/workers-new-castes.md +516 -0
- package/runtime/workers.md +20 -8
- package/.aether/visualizations/anthill-stages/brood-stable.txt +0 -26
- package/.aether/visualizations/anthill-stages/crowned-anthill.txt +0 -30
- package/.aether/visualizations/anthill-stages/first-mound.txt +0 -18
- package/.aether/visualizations/anthill-stages/open-chambers.txt +0 -24
- package/.aether/visualizations/anthill-stages/sealed-chambers.txt +0 -28
- package/.aether/visualizations/anthill-stages/ventilated-nest.txt +0 -27
|
@@ -29,11 +29,21 @@ You sift through git history like an archaeologist brushes dirt from ancient pot
|
|
|
29
29
|
|
|
30
30
|
## Instructions
|
|
31
31
|
|
|
32
|
+
### Step -1: Normalize Arguments
|
|
33
|
+
|
|
34
|
+
Run: `normalized_args=$(bash .aether/aether-utils.sh normalize-args "$@")`
|
|
35
|
+
|
|
36
|
+
This ensures arguments work correctly in both Claude Code and OpenCode. Use `$normalized_args` throughout this command.
|
|
37
|
+
|
|
38
|
+
Parse `$normalized_args`:
|
|
39
|
+
- If contains `--no-visual`: set `visual_mode = false` (visual is ON by default)
|
|
40
|
+
- Otherwise: set `visual_mode = true`
|
|
41
|
+
|
|
32
42
|
### Step 0: Validate Target
|
|
33
43
|
|
|
34
|
-
The target path is: `$
|
|
44
|
+
The target path is: `$normalized_args`
|
|
35
45
|
|
|
36
|
-
**If `$
|
|
46
|
+
**If `$normalized_args` is empty or not provided:**
|
|
37
47
|
```
|
|
38
48
|
πΊππππΊ ARCHAEOLOGIST
|
|
39
49
|
|
|
@@ -54,7 +64,7 @@ Stop here.
|
|
|
54
64
|
|
|
55
65
|
**If the target path does not exist:**
|
|
56
66
|
```
|
|
57
|
-
πΊ Target not found: $
|
|
67
|
+
πΊ Target not found: $normalized_args
|
|
58
68
|
Verify the path exists and try again.
|
|
59
69
|
```
|
|
60
70
|
Stop here.
|
|
@@ -68,7 +78,7 @@ Read in parallel to understand the archaeological site:
|
|
|
68
78
|
- `.aether/data/constraints.json` β current focus and constraints
|
|
69
79
|
|
|
70
80
|
**Target awareness:**
|
|
71
|
-
- Determine if `$
|
|
81
|
+
- Determine if `$normalized_args` is a file or a directory
|
|
72
82
|
- If a directory, list its contents to understand scope
|
|
73
83
|
|
|
74
84
|
Display awakening:
|
|
@@ -77,7 +87,7 @@ Display awakening:
|
|
|
77
87
|
T H E A R C H A E O L O G I S T A W A K E N S
|
|
78
88
|
βββββββββββββββββββββββββββββββββββββββββββββββ πΊππππΊ
|
|
79
89
|
|
|
80
|
-
Target: {$
|
|
90
|
+
Target: {$normalized_args}
|
|
81
91
|
Type: {file | directory}
|
|
82
92
|
Colony: {goal or "standalone excavation"}
|
|
83
93
|
|
|
@@ -91,38 +101,38 @@ Run the following git commands to establish the broad strokes of history:
|
|
|
91
101
|
**For a file:**
|
|
92
102
|
```bash
|
|
93
103
|
# Total commit count and date range
|
|
94
|
-
git log --oneline -- "$
|
|
95
|
-
git log --format="%ai" --reverse -- "$
|
|
96
|
-
git log --format="%ai" -- "$
|
|
104
|
+
git log --oneline -- "$normalized_args" | wc -l
|
|
105
|
+
git log --format="%ai" --reverse -- "$normalized_args" | head -1 # first commit
|
|
106
|
+
git log --format="%ai" -- "$normalized_args" | head -1 # last commit
|
|
97
107
|
|
|
98
108
|
# Author analysis
|
|
99
|
-
git log --format="%aN" -- "$
|
|
109
|
+
git log --format="%aN" -- "$normalized_args" | sort | uniq -c | sort -rn
|
|
100
110
|
|
|
101
111
|
# Commit frequency over time (churn analysis)
|
|
102
|
-
git log --format="%ad" --date=format:"%Y-%m" -- "$
|
|
112
|
+
git log --format="%ad" --date=format:"%Y-%m" -- "$normalized_args" | sort | uniq -c | sort -k2
|
|
103
113
|
|
|
104
114
|
# Follow renames to get full history
|
|
105
|
-
git log --follow --oneline -- "$
|
|
106
|
-
git log --follow --diff-filter=R --summary -- "$
|
|
115
|
+
git log --follow --oneline -- "$normalized_args" | wc -l
|
|
116
|
+
git log --follow --diff-filter=R --summary -- "$normalized_args"
|
|
107
117
|
|
|
108
118
|
# Recent activity (last 20 commits)
|
|
109
|
-
git log --oneline -20 -- "$
|
|
119
|
+
git log --oneline -20 -- "$normalized_args"
|
|
110
120
|
```
|
|
111
121
|
|
|
112
122
|
**For a directory:**
|
|
113
123
|
```bash
|
|
114
124
|
# Total commit count touching this directory
|
|
115
|
-
git log --oneline -- "$
|
|
125
|
+
git log --oneline -- "$normalized_args" | wc -l
|
|
116
126
|
|
|
117
127
|
# Files sorted by number of commits (churn ranking)
|
|
118
|
-
git log --name-only --pretty=format: -- "$
|
|
128
|
+
git log --name-only --pretty=format: -- "$normalized_args" | sort | uniq -c | sort -rn | head -20
|
|
119
129
|
|
|
120
130
|
# Author analysis for the directory
|
|
121
|
-
git log --format="%aN" -- "$
|
|
131
|
+
git log --format="%aN" -- "$normalized_args" | sort | uniq -c | sort -rn
|
|
122
132
|
|
|
123
133
|
# Age analysis: oldest and newest files
|
|
124
|
-
git log --diff-filter=A --format="%ai %s" -- "$
|
|
125
|
-
git log --diff-filter=A --format="%ai %s" -- "$
|
|
134
|
+
git log --diff-filter=A --format="%ai %s" -- "$normalized_args" | tail -10 # oldest additions
|
|
135
|
+
git log --diff-filter=A --format="%ai %s" -- "$normalized_args" | head -10 # newest additions
|
|
126
136
|
```
|
|
127
137
|
|
|
128
138
|
Record all findings for the report.
|
|
@@ -132,7 +142,7 @@ Record all findings for the report.
|
|
|
132
142
|
**For a file (primary analysis):**
|
|
133
143
|
```bash
|
|
134
144
|
# Line-level authorship and age
|
|
135
|
-
git blame --line-porcelain "$
|
|
145
|
+
git blame --line-porcelain "$normalized_args"
|
|
136
146
|
```
|
|
137
147
|
|
|
138
148
|
From the blame output, identify:
|
|
@@ -151,16 +161,16 @@ Identify the most significant commits by looking for:
|
|
|
151
161
|
|
|
152
162
|
```bash
|
|
153
163
|
# Large changes (potential refactors or rewrites)
|
|
154
|
-
git log --stat -- "$
|
|
164
|
+
git log --stat -- "$normalized_args" | grep -B5 "files changed" | head -40
|
|
155
165
|
|
|
156
166
|
# Commits mentioning bugs, fixes, workarounds, incidents
|
|
157
|
-
git log --all --grep="fix" --grep="bug" --grep="workaround" --grep="hack" --grep="incident" --grep="hotfix" --grep="revert" --oneline -- "$
|
|
167
|
+
git log --all --grep="fix" --grep="bug" --grep="workaround" --grep="hack" --grep="incident" --grep="hotfix" --grep="revert" --oneline -- "$normalized_args" | head -20
|
|
158
168
|
|
|
159
169
|
# Commits mentioning TODO, FIXME, temporary
|
|
160
|
-
git log --all --grep="TODO" --grep="FIXME" --grep="temporary" --grep="temp fix" --oneline -- "$
|
|
170
|
+
git log --all --grep="TODO" --grep="FIXME" --grep="temporary" --grep="temp fix" --oneline -- "$normalized_args" | head -15
|
|
161
171
|
|
|
162
172
|
# Reverts (something went wrong)
|
|
163
|
-
git log --all --grep="revert" --oneline -- "$
|
|
173
|
+
git log --all --grep="revert" --oneline -- "$normalized_args"
|
|
164
174
|
```
|
|
165
175
|
|
|
166
176
|
For the most significant commits (up to 5), run `git show <hash>` to read the full commit message and diff. Look for:
|
|
@@ -175,13 +185,13 @@ Search the current code for archaeological markers:
|
|
|
175
185
|
|
|
176
186
|
```bash
|
|
177
187
|
# Search for tech debt markers in current file(s)
|
|
178
|
-
grep -n "TODO\|FIXME\|XXX\|HACK\|WORKAROUND\|TEMPORARY\|temp fix\|technical debt" "$
|
|
188
|
+
grep -n "TODO\|FIXME\|XXX\|HACK\|WORKAROUND\|TEMPORARY\|temp fix\|technical debt" "$normalized_args" 2>/dev/null || true
|
|
179
189
|
|
|
180
190
|
# Search for commented-out code (dead code candidates)
|
|
181
|
-
grep -n "^[[:space:]]*//\|^[[:space:]]*#\|^[[:space:]]*\*" "$
|
|
191
|
+
grep -n "^[[:space:]]*//\|^[[:space:]]*#\|^[[:space:]]*\*" "$normalized_args" 2>/dev/null | head -20
|
|
182
192
|
|
|
183
193
|
# Search for version-specific workarounds
|
|
184
|
-
grep -n "version\|compat\|legacy\|deprecated\|polyfill\|shim\|fallback" "$
|
|
194
|
+
grep -n "version\|compat\|legacy\|deprecated\|polyfill\|shim\|fallback" "$normalized_args" 2>/dev/null || true
|
|
185
195
|
```
|
|
186
196
|
|
|
187
197
|
For each TODO/FIXME found, use `git blame` on that specific line to determine:
|
|
@@ -202,6 +212,14 @@ Synthesize findings into patterns:
|
|
|
202
212
|
|
|
203
213
|
### Step 7: Generate Archaeology Report
|
|
204
214
|
|
|
215
|
+
**If visual_mode is true, render final swarm display:**
|
|
216
|
+
```bash
|
|
217
|
+
arch_id="archaeology-$(date +%s)"
|
|
218
|
+
bash .aether/aether-utils.sh swarm-display-init "$arch_id"
|
|
219
|
+
bash .aether/aether-utils.sh swarm-display-update "Archaeologist" "archaeologist" "completed" "Excavation complete" "Colony" '{"read":10,"grep":3,"edit":0,"bash":5}' 100 "fungus_garden" 100
|
|
220
|
+
bash .aether/aether-utils.sh swarm-display-render "$arch_id"
|
|
221
|
+
```
|
|
222
|
+
|
|
205
223
|
Display the full report:
|
|
206
224
|
|
|
207
225
|
```
|