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.
Files changed (124) hide show
  1. package/.claude/commands/ant/archaeology.md +12 -0
  2. package/.claude/commands/ant/build.md +382 -319
  3. package/.claude/commands/ant/chaos.md +23 -1
  4. package/.claude/commands/ant/colonize.md +147 -87
  5. package/.claude/commands/ant/continue.md +213 -23
  6. package/.claude/commands/ant/council.md +22 -0
  7. package/.claude/commands/ant/dream.md +18 -0
  8. package/.claude/commands/ant/entomb.md +178 -6
  9. package/.claude/commands/ant/init.md +87 -13
  10. package/.claude/commands/ant/lay-eggs.md +45 -5
  11. package/.claude/commands/ant/oracle.md +82 -9
  12. package/.claude/commands/ant/organize.md +2 -2
  13. package/.claude/commands/ant/pause-colony.md +86 -28
  14. package/.claude/commands/ant/phase.md +26 -0
  15. package/.claude/commands/ant/plan.md +204 -111
  16. package/.claude/commands/ant/resume-colony.md +23 -1
  17. package/.claude/commands/ant/resume.md +159 -0
  18. package/.claude/commands/ant/seal.md +177 -3
  19. package/.claude/commands/ant/swarm.md +78 -97
  20. package/.claude/commands/ant/verify-castes.md +7 -7
  21. package/.claude/commands/ant/watch.md +17 -0
  22. package/.opencode/agents/aether-ambassador.md +97 -0
  23. package/.opencode/agents/aether-archaeologist.md +91 -0
  24. package/.opencode/agents/aether-architect.md +66 -0
  25. package/.opencode/agents/aether-auditor.md +111 -0
  26. package/.opencode/agents/aether-builder.md +28 -10
  27. package/.opencode/agents/aether-chaos.md +98 -0
  28. package/.opencode/agents/aether-chronicler.md +80 -0
  29. package/.opencode/agents/aether-gatekeeper.md +107 -0
  30. package/.opencode/agents/aether-guardian.md +107 -0
  31. package/.opencode/agents/aether-includer.md +108 -0
  32. package/.opencode/agents/aether-keeper.md +106 -0
  33. package/.opencode/agents/aether-measurer.md +119 -0
  34. package/.opencode/agents/aether-probe.md +91 -0
  35. package/.opencode/agents/aether-queen.md +72 -19
  36. package/.opencode/agents/aether-route-setter.md +85 -0
  37. package/.opencode/agents/aether-sage.md +98 -0
  38. package/.opencode/agents/aether-scout.md +33 -15
  39. package/.opencode/agents/aether-surveyor-disciplines.md +334 -0
  40. package/.opencode/agents/aether-surveyor-nest.md +272 -0
  41. package/.opencode/agents/aether-surveyor-pathogens.md +209 -0
  42. package/.opencode/agents/aether-surveyor-provisions.md +277 -0
  43. package/.opencode/agents/aether-tracker.md +91 -0
  44. package/.opencode/agents/aether-watcher.md +30 -12
  45. package/.opencode/agents/aether-weaver.md +87 -0
  46. package/.opencode/agents/workers.md +1034 -0
  47. package/.opencode/commands/ant/archaeology.md +44 -26
  48. package/.opencode/commands/ant/build.md +327 -295
  49. package/.opencode/commands/ant/chaos.md +32 -4
  50. package/.opencode/commands/ant/colonize.md +119 -93
  51. package/.opencode/commands/ant/continue.md +98 -10
  52. package/.opencode/commands/ant/council.md +28 -0
  53. package/.opencode/commands/ant/dream.md +24 -0
  54. package/.opencode/commands/ant/entomb.md +73 -1
  55. package/.opencode/commands/ant/feedback.md +8 -2
  56. package/.opencode/commands/ant/flag.md +9 -3
  57. package/.opencode/commands/ant/flags.md +8 -2
  58. package/.opencode/commands/ant/focus.md +8 -2
  59. package/.opencode/commands/ant/help.md +12 -0
  60. package/.opencode/commands/ant/init.md +49 -4
  61. package/.opencode/commands/ant/lay-eggs.md +30 -2
  62. package/.opencode/commands/ant/oracle.md +39 -7
  63. package/.opencode/commands/ant/organize.md +9 -3
  64. package/.opencode/commands/ant/pause-colony.md +54 -1
  65. package/.opencode/commands/ant/phase.md +36 -4
  66. package/.opencode/commands/ant/plan.md +225 -117
  67. package/.opencode/commands/ant/redirect.md +8 -2
  68. package/.opencode/commands/ant/resume-colony.md +51 -26
  69. package/.opencode/commands/ant/seal.md +76 -0
  70. package/.opencode/commands/ant/status.md +50 -20
  71. package/.opencode/commands/ant/swarm.md +108 -104
  72. package/.opencode/commands/ant/tunnels.md +107 -2
  73. package/CHANGELOG.md +21 -0
  74. package/README.md +199 -86
  75. package/bin/cli.js +142 -25
  76. package/bin/generate-commands.sh +100 -16
  77. package/bin/lib/caste-colors.js +5 -5
  78. package/bin/lib/errors.js +16 -0
  79. package/bin/lib/file-lock.js +279 -44
  80. package/bin/lib/state-sync.js +206 -23
  81. package/bin/lib/update-transaction.js +206 -24
  82. package/bin/sync-to-runtime.sh +129 -0
  83. package/package.json +2 -2
  84. package/runtime/CONTEXT.md +160 -0
  85. package/runtime/aether-utils.sh +1421 -55
  86. package/runtime/docs/AETHER-2.0-IMPLEMENTATION-PLAN.md +1343 -0
  87. package/runtime/docs/AETHER-PHEROMONE-SYSTEM-MASTER-SPEC.md +2642 -0
  88. package/runtime/docs/PHEROMONE-INJECTION.md +240 -0
  89. package/runtime/docs/PHEROMONE-INTEGRATION.md +192 -0
  90. package/runtime/docs/PHEROMONE-SYSTEM-DESIGN.md +426 -0
  91. package/runtime/docs/README.md +94 -0
  92. package/runtime/docs/VISUAL-OUTPUT-SPEC.md +219 -0
  93. package/runtime/docs/biological-reference.md +272 -0
  94. package/runtime/docs/codebase-review.md +399 -0
  95. package/runtime/docs/command-sync.md +164 -0
  96. package/runtime/docs/implementation-learnings.md +89 -0
  97. package/runtime/docs/known-issues.md +217 -0
  98. package/runtime/docs/namespace.md +148 -0
  99. package/runtime/docs/planning-discipline.md +159 -0
  100. package/runtime/lib/queen-utils.sh +729 -0
  101. package/runtime/model-profiles.yaml +100 -0
  102. package/runtime/recover.sh +136 -0
  103. package/runtime/templates/QUEEN.md.template +79 -0
  104. package/runtime/utils/atomic-write.sh +5 -5
  105. package/runtime/utils/chamber-utils.sh +6 -3
  106. package/runtime/utils/error-handler.sh +200 -0
  107. package/runtime/utils/queen-to-md.xsl +395 -0
  108. package/runtime/utils/spawn-tree.sh +428 -0
  109. package/runtime/utils/spawn-with-model.sh +56 -0
  110. package/runtime/utils/state-loader.sh +215 -0
  111. package/runtime/utils/swarm-display.sh +5 -5
  112. package/runtime/utils/watch-spawn-tree.sh +90 -22
  113. package/runtime/utils/xml-compose.sh +247 -0
  114. package/runtime/utils/xml-core.sh +186 -0
  115. package/runtime/utils/xml-utils.sh +2161 -0
  116. package/runtime/verification-loop.md +1 -1
  117. package/runtime/workers-new-castes.md +516 -0
  118. package/runtime/workers.md +20 -8
  119. package/.aether/visualizations/anthill-stages/brood-stable.txt +0 -26
  120. package/.aether/visualizations/anthill-stages/crowned-anthill.txt +0 -30
  121. package/.aether/visualizations/anthill-stages/first-mound.txt +0 -18
  122. package/.aether/visualizations/anthill-stages/open-chambers.txt +0 -24
  123. package/.aether/visualizations/anthill-stages/sealed-chambers.txt +0 -28
  124. 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: `$ARGUMENTS`
44
+ The target path is: `$normalized_args`
35
45
 
36
- **If `$ARGUMENTS` is empty or not provided:**
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: $ARGUMENTS
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 `$ARGUMENTS` is a file or a directory
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: {$ARGUMENTS}
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 -- "$ARGUMENTS" | wc -l
95
- git log --format="%ai" --reverse -- "$ARGUMENTS" | head -1 # first commit
96
- git log --format="%ai" -- "$ARGUMENTS" | head -1 # last commit
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" -- "$ARGUMENTS" | sort | uniq -c | sort -rn
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" -- "$ARGUMENTS" | sort | uniq -c | sort -k2
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 -- "$ARGUMENTS" | wc -l
106
- git log --follow --diff-filter=R --summary -- "$ARGUMENTS"
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 -- "$ARGUMENTS"
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 -- "$ARGUMENTS" | wc -l
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: -- "$ARGUMENTS" | sort | uniq -c | sort -rn | head -20
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" -- "$ARGUMENTS" | sort | uniq -c | sort -rn
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" -- "$ARGUMENTS" | tail -10 # oldest additions
125
- git log --diff-filter=A --format="%ai %s" -- "$ARGUMENTS" | head -10 # newest additions
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 "$ARGUMENTS"
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 -- "$ARGUMENTS" | grep -B5 "files changed" | head -40
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 -- "$ARGUMENTS" | head -20
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 -- "$ARGUMENTS" | head -15
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 -- "$ARGUMENTS"
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" "$ARGUMENTS" 2>/dev/null || true
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:]]*\*" "$ARGUMENTS" 2>/dev/null | head -20
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" "$ARGUMENTS" 2>/dev/null || true
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
  ```