aether-colony 5.1.0 → 5.3.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.
Files changed (185) hide show
  1. package/.aether/aether-utils.sh +157 -42
  2. package/.aether/agents/aether-ambassador.md +140 -0
  3. package/.aether/agents/aether-archaeologist.md +108 -0
  4. package/.aether/agents/aether-architect.md +133 -0
  5. package/.aether/agents/aether-auditor.md +144 -0
  6. package/.aether/agents/aether-builder.md +184 -0
  7. package/.aether/agents/aether-chaos.md +115 -0
  8. package/.aether/agents/aether-chronicler.md +122 -0
  9. package/.aether/agents/aether-gatekeeper.md +116 -0
  10. package/.aether/agents/aether-includer.md +117 -0
  11. package/.aether/agents/aether-keeper.md +177 -0
  12. package/.aether/agents/aether-measurer.md +128 -0
  13. package/.aether/agents/aether-oracle.md +137 -0
  14. package/.aether/agents/aether-probe.md +133 -0
  15. package/.aether/agents/aether-queen.md +286 -0
  16. package/.aether/agents/aether-route-setter.md +130 -0
  17. package/.aether/agents/aether-sage.md +106 -0
  18. package/.aether/agents/aether-scout.md +101 -0
  19. package/.aether/agents/aether-surveyor-disciplines.md +391 -0
  20. package/.aether/agents/aether-surveyor-nest.md +329 -0
  21. package/.aether/agents/aether-surveyor-pathogens.md +264 -0
  22. package/.aether/agents/aether-surveyor-provisions.md +334 -0
  23. package/.aether/agents/aether-tracker.md +137 -0
  24. package/.aether/agents/aether-watcher.md +174 -0
  25. package/.aether/agents/aether-weaver.md +130 -0
  26. package/.aether/commands/claude/archaeology.md +334 -0
  27. package/.aether/commands/claude/build.md +65 -0
  28. package/.aether/commands/claude/chaos.md +336 -0
  29. package/.aether/commands/claude/colonize.md +259 -0
  30. package/.aether/commands/claude/continue.md +60 -0
  31. package/.aether/commands/claude/council.md +507 -0
  32. package/.aether/commands/claude/data-clean.md +81 -0
  33. package/.aether/commands/claude/dream.md +268 -0
  34. package/.aether/commands/claude/entomb.md +498 -0
  35. package/.aether/commands/claude/export-signals.md +57 -0
  36. package/.aether/commands/claude/feedback.md +96 -0
  37. package/.aether/commands/claude/flag.md +151 -0
  38. package/.aether/commands/claude/flags.md +169 -0
  39. package/.aether/commands/claude/focus.md +76 -0
  40. package/.aether/commands/claude/help.md +154 -0
  41. package/.aether/commands/claude/history.md +140 -0
  42. package/.aether/commands/claude/import-signals.md +71 -0
  43. package/.aether/commands/claude/init.md +505 -0
  44. package/.aether/commands/claude/insert-phase.md +105 -0
  45. package/.aether/commands/claude/interpret.md +278 -0
  46. package/.aether/commands/claude/lay-eggs.md +210 -0
  47. package/.aether/commands/claude/maturity.md +113 -0
  48. package/.aether/commands/claude/memory-details.md +77 -0
  49. package/.aether/commands/claude/migrate-state.md +171 -0
  50. package/.aether/commands/claude/oracle.md +642 -0
  51. package/.aether/commands/claude/organize.md +232 -0
  52. package/.aether/commands/claude/patrol.md +620 -0
  53. package/.aether/commands/claude/pause-colony.md +233 -0
  54. package/.aether/commands/claude/phase.md +115 -0
  55. package/.aether/commands/claude/pheromones.md +156 -0
  56. package/.aether/commands/claude/plan.md +693 -0
  57. package/.aether/commands/claude/preferences.md +65 -0
  58. package/.aether/commands/claude/quick.md +100 -0
  59. package/.aether/commands/claude/redirect.md +76 -0
  60. package/.aether/commands/claude/resume-colony.md +197 -0
  61. package/.aether/commands/claude/resume.md +388 -0
  62. package/.aether/commands/claude/run.md +231 -0
  63. package/.aether/commands/claude/seal.md +774 -0
  64. package/.aether/commands/claude/skill-create.md +286 -0
  65. package/.aether/commands/claude/status.md +410 -0
  66. package/.aether/commands/claude/swarm.md +349 -0
  67. package/.aether/commands/claude/tunnels.md +426 -0
  68. package/.aether/commands/claude/update.md +132 -0
  69. package/.aether/commands/claude/verify-castes.md +143 -0
  70. package/.aether/commands/claude/watch.md +239 -0
  71. package/.aether/commands/colonize.yaml +4 -0
  72. package/.aether/commands/council.yaml +205 -0
  73. package/.aether/commands/init.yaml +46 -13
  74. package/.aether/commands/insert-phase.yaml +4 -0
  75. package/.aether/commands/opencode/archaeology.md +331 -0
  76. package/.aether/commands/opencode/build.md +1168 -0
  77. package/.aether/commands/opencode/chaos.md +329 -0
  78. package/.aether/commands/opencode/colonize.md +195 -0
  79. package/.aether/commands/opencode/continue.md +1436 -0
  80. package/.aether/commands/opencode/council.md +437 -0
  81. package/.aether/commands/opencode/data-clean.md +77 -0
  82. package/.aether/commands/opencode/dream.md +260 -0
  83. package/.aether/commands/opencode/entomb.md +377 -0
  84. package/.aether/commands/opencode/export-signals.md +54 -0
  85. package/.aether/commands/opencode/feedback.md +99 -0
  86. package/.aether/commands/opencode/flag.md +149 -0
  87. package/.aether/commands/opencode/flags.md +167 -0
  88. package/.aether/commands/opencode/focus.md +73 -0
  89. package/.aether/commands/opencode/help.md +157 -0
  90. package/.aether/commands/opencode/history.md +136 -0
  91. package/.aether/commands/opencode/import-signals.md +68 -0
  92. package/.aether/commands/opencode/init.md +518 -0
  93. package/.aether/commands/opencode/insert-phase.md +111 -0
  94. package/.aether/commands/opencode/interpret.md +272 -0
  95. package/.aether/commands/opencode/lay-eggs.md +213 -0
  96. package/.aether/commands/opencode/maturity.md +108 -0
  97. package/.aether/commands/opencode/memory-details.md +83 -0
  98. package/.aether/commands/opencode/migrate-state.md +165 -0
  99. package/.aether/commands/opencode/oracle.md +593 -0
  100. package/.aether/commands/opencode/organize.md +226 -0
  101. package/.aether/commands/opencode/patrol.md +626 -0
  102. package/.aether/commands/opencode/pause-colony.md +203 -0
  103. package/.aether/commands/opencode/phase.md +113 -0
  104. package/.aether/commands/opencode/pheromones.md +162 -0
  105. package/.aether/commands/opencode/plan.md +684 -0
  106. package/.aether/commands/opencode/preferences.md +71 -0
  107. package/.aether/commands/opencode/quick.md +91 -0
  108. package/.aether/commands/opencode/redirect.md +84 -0
  109. package/.aether/commands/opencode/resume-colony.md +190 -0
  110. package/.aether/commands/opencode/resume.md +394 -0
  111. package/.aether/commands/opencode/run.md +237 -0
  112. package/.aether/commands/opencode/seal.md +452 -0
  113. package/.aether/commands/opencode/skill-create.md +63 -0
  114. package/.aether/commands/opencode/status.md +307 -0
  115. package/.aether/commands/opencode/swarm.md +15 -0
  116. package/.aether/commands/opencode/tunnels.md +400 -0
  117. package/.aether/commands/opencode/update.md +127 -0
  118. package/.aether/commands/opencode/verify-castes.md +139 -0
  119. package/.aether/commands/opencode/watch.md +227 -0
  120. package/.aether/commands/plan.yaml +53 -2
  121. package/.aether/commands/quick.yaml +104 -0
  122. package/.aether/commands/resume-colony.yaml +6 -4
  123. package/.aether/commands/resume.yaml +9 -0
  124. package/.aether/commands/run.yaml +37 -1
  125. package/.aether/commands/seal.yaml +9 -0
  126. package/.aether/commands/status.yaml +45 -1
  127. package/.aether/docs/command-playbooks/build-full.md +3 -2
  128. package/.aether/docs/command-playbooks/build-prep.md +12 -4
  129. package/.aether/docs/command-playbooks/build-verify.md +51 -0
  130. package/.aether/docs/command-playbooks/continue-advance.md +115 -6
  131. package/.aether/docs/command-playbooks/continue-full.md +1 -0
  132. package/.aether/docs/command-playbooks/continue-verify.md +33 -0
  133. package/.aether/utils/clash-detect.sh +239 -0
  134. package/.aether/utils/council.sh +425 -0
  135. package/.aether/utils/error-handler.sh +3 -3
  136. package/.aether/utils/flag.sh +23 -12
  137. package/.aether/utils/hive.sh +2 -2
  138. package/.aether/utils/hooks/clash-pre-tool-use.js +99 -0
  139. package/.aether/utils/immune.sh +508 -0
  140. package/.aether/utils/learning.sh +2 -2
  141. package/.aether/utils/merge-driver-lockfile.sh +35 -0
  142. package/.aether/utils/midden.sh +712 -0
  143. package/.aether/utils/pheromone.sh +1376 -108
  144. package/.aether/utils/queen.sh +31 -21
  145. package/.aether/utils/session.sh +264 -0
  146. package/.aether/utils/spawn-tree.sh +7 -7
  147. package/.aether/utils/spawn.sh +2 -2
  148. package/.aether/utils/state-api.sh +216 -5
  149. package/.aether/utils/swarm.sh +1 -1
  150. package/.aether/utils/worktree.sh +189 -0
  151. package/.claude/commands/ant/colonize.md +2 -0
  152. package/.claude/commands/ant/council.md +205 -0
  153. package/.claude/commands/ant/init.md +53 -14
  154. package/.claude/commands/ant/insert-phase.md +4 -0
  155. package/.claude/commands/ant/plan.md +27 -1
  156. package/.claude/commands/ant/quick.md +100 -0
  157. package/.claude/commands/ant/resume-colony.md +3 -2
  158. package/.claude/commands/ant/resume.md +9 -0
  159. package/.claude/commands/ant/run.md +37 -1
  160. package/.claude/commands/ant/seal.md +9 -0
  161. package/.claude/commands/ant/status.md +45 -1
  162. package/.opencode/commands/ant/colonize.md +2 -0
  163. package/.opencode/commands/ant/council.md +143 -0
  164. package/.opencode/commands/ant/init.md +53 -13
  165. package/.opencode/commands/ant/insert-phase.md +4 -0
  166. package/.opencode/commands/ant/plan.md +26 -1
  167. package/.opencode/commands/ant/quick.md +91 -0
  168. package/.opencode/commands/ant/resume-colony.md +3 -2
  169. package/.opencode/commands/ant/resume.md +9 -0
  170. package/.opencode/commands/ant/run.md +37 -1
  171. package/.opencode/commands/ant/status.md +2 -0
  172. package/CHANGELOG.md +116 -0
  173. package/README.md +34 -8
  174. package/bin/cli.js +103 -61
  175. package/bin/lib/banner.js +14 -0
  176. package/bin/lib/init.js +8 -7
  177. package/bin/lib/interactive-setup.js +251 -0
  178. package/bin/npx-entry.js +21 -0
  179. package/bin/npx-install.js +9 -167
  180. package/bin/validate-package.sh +23 -0
  181. package/package.json +11 -3
  182. package/.aether/docs/plans/pheromone-display-plan.md +0 -257
  183. package/.aether/schemas/example-prompt-builder.xml +0 -234
  184. package/.aether/scripts/incident-test-add.sh +0 -47
  185. package/.aether/scripts/weekly-audit.sh +0 -79
@@ -0,0 +1,171 @@
1
+ <!-- Generated from .aether/commands/migrate-state.yaml - DO NOT EDIT DIRECTLY -->
2
+ ---
3
+ name: ant:migrate-state
4
+ description: "🚚🐜📦🐜🚚 One-time state migration from v1 to v2.0 format"
5
+ ---
6
+
7
+ # 🚚🐜📦🐜🚚 /ant:migrate-state - One-Time State Migration
8
+
9
+ Migrate colony state from v1 (6-file) format to v2.0 (consolidated single-file) format.
10
+
11
+ **Usage:** Run once to migrate existing state. Safe to run multiple times - skips if already migrated.
12
+
13
+ ---
14
+
15
+ ## Step 1: Check Migration Status
16
+
17
+ Read `.aether/data/COLONY_STATE.json` to check if already migrated.
18
+
19
+ **If file contains `"version": "2.0"`:**
20
+ - Output: "State already migrated to v2.0. No action needed."
21
+ - Stop execution.
22
+
23
+ **If no version field or version < 2.0:**
24
+ - Continue to Step 2.
25
+
26
+ ---
27
+
28
+ ## Step 2: Read All State Files
29
+
30
+ Use the Read tool to read all 6 state files from `.aether/data/`:
31
+
32
+ 1. `COLONY_STATE.json` - Colony goal, state machine, workers, spawn outcomes
33
+ 2. `PROJECT_PLAN.json` - Phases, tasks, success criteria
34
+ 3. `pheromones.json` - Active signals
35
+ 4. `memory.json` - Phase learnings, decisions, patterns
36
+ 5. `errors.json` - Error records, flagged patterns
37
+ 6. `events.json` - Event log
38
+
39
+ Handle missing files gracefully (use empty defaults).
40
+
41
+ ---
42
+
43
+ ## Step 3: Construct Consolidated State
44
+
45
+ Build the v2.0 consolidated structure:
46
+
47
+ ```json
48
+ {
49
+ "version": "2.0",
50
+ "goal": "<from COLONY_STATE.goal or null>",
51
+ "state": "<from COLONY_STATE.state or 'IDLE'>",
52
+ "current_phase": "<from COLONY_STATE.current_phase or 0>",
53
+ "session_id": "<from COLONY_STATE.session_id or null>",
54
+ "initialized_at": "<from COLONY_STATE.initialized_at or null>",
55
+ "mode": "<from COLONY_STATE.mode or null>",
56
+ "mode_set_at": "<from COLONY_STATE.mode_set_at or null>",
57
+ "mode_indicators": "<from COLONY_STATE.mode_indicators or null>",
58
+ "workers": "<from COLONY_STATE.workers or default idle workers>",
59
+ "spawn_outcomes": "<from COLONY_STATE.spawn_outcomes or default outcomes>",
60
+ "plan": {
61
+ "generated_at": "<from PROJECT_PLAN.generated_at or null>",
62
+ "phases": "<from PROJECT_PLAN.phases or []>"
63
+ },
64
+ "signals": "<from pheromones.signals or []>",
65
+ "memory": {
66
+ "phase_learnings": "<from memory.phase_learnings or []>",
67
+ "decisions": "<from memory.decisions or []>",
68
+ "patterns": "<from memory.patterns or []>"
69
+ },
70
+ "errors": {
71
+ "records": "<from errors.errors or []>",
72
+ "flagged_patterns": "<from errors.flagged_patterns or []>"
73
+ },
74
+ "events": "<converted event strings or []>"
75
+ }
76
+ ```
77
+
78
+ **Event Conversion:**
79
+ Convert each event object to a pipe-delimited string:
80
+ - Old format: `{"id":"evt_123","type":"colony_initialized","source":"init","content":"msg","timestamp":"2026-..."}`
81
+ - New format: `"2026-... | colony_initialized | init | msg"`
82
+
83
+ If events array is already strings (or empty), keep as-is.
84
+
85
+ ---
86
+
87
+ ## Step 4: Create Backup
88
+
89
+ Create backup directory and move old files:
90
+
91
+ ```bash
92
+ mkdir -p .aether/data/backup-v1
93
+ ```
94
+
95
+ Move these files to backup (if they exist):
96
+ - `.aether/data/PROJECT_PLAN.json` -> `.aether/data/backup-v1/PROJECT_PLAN.json`
97
+ - `.aether/data/pheromones.json` -> `.aether/data/backup-v1/pheromones.json`
98
+ - `.aether/data/memory.json` -> `.aether/data/backup-v1/memory.json`
99
+ - `.aether/data/errors.json` -> `.aether/data/backup-v1/errors.json`
100
+ - `.aether/data/events.json` -> `.aether/data/backup-v1/events.json`
101
+ - `.aether/data/COLONY_STATE.json` -> `.aether/data/backup-v1/COLONY_STATE.json`
102
+
103
+ ---
104
+
105
+ ## Step 5: Write Consolidated State
106
+
107
+ Write the new consolidated COLONY_STATE.json with the v2.0 structure from Step 3.
108
+
109
+ Format the JSON with 2-space indentation for readability.
110
+
111
+ ---
112
+
113
+ ## Step 6: Display Summary
114
+
115
+ Output header:
116
+
117
+
118
+ ```
119
+ 🚚🐜📦🐜🚚 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
120
+ S T A T E M I G R A T I O N C O M P L E T E
121
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🚚🐜📦🐜🚚
122
+ ```
123
+
124
+
125
+
126
+ Then output a migration summary:
127
+
128
+ ```
129
+ State Migration Complete (v1 -> v2.0)
130
+ ======================================
131
+
132
+ Migrated data:
133
+ - Goal: <goal or "(not set)">
134
+ - State: <state>
135
+ - Current phase: <phase>
136
+ - Workers: <count of non-idle workers>
137
+ - Plan phases: <count>
138
+ - Active signals: <count>
139
+ - Phase learnings: <count>
140
+ - Decisions: <count>
141
+ - Error records: <count>
142
+ - Events: <count>
143
+
144
+ Files backed up to: .aether/data/backup-v1/
145
+ New state file: .aether/data/COLONY_STATE.json (v2.0)
146
+
147
+ All commands now use consolidated state format.
148
+ ```
149
+
150
+ ---
151
+
152
+ ## Notes
153
+
154
+ - This is a one-time migration command
155
+ - After v5.1 ships, this command can be removed
156
+ - All 12+ ant commands will be updated to use the new single-file format
157
+ - The backup directory preserves original files for rollback if needed
158
+
159
+
160
+ ---
161
+
162
+ ## Step 7: Next Up
163
+
164
+ Generate the state-based Next Up block by running using the Bash tool with description "Generating Next Up suggestions...":
165
+ ```bash
166
+ state=$(jq -r '.state // "IDLE"' .aether/data/COLONY_STATE.json)
167
+ current_phase=$(jq -r '.current_phase // 0' .aether/data/COLONY_STATE.json)
168
+ total_phases=$(jq -r '.plan.phases | length' .aether/data/COLONY_STATE.json)
169
+ bash .aether/aether-utils.sh print-next-up "$state" "$current_phase" "$total_phases"
170
+ ```
171
+