@shanesaravia/hive 0.2.0 → 0.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 (35) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +16 -0
  3. package/node_modules/@hive/shared/dist/directStudio.d.ts +6 -0
  4. package/node_modules/@hive/shared/dist/directStudio.js +12 -0
  5. package/node_modules/@hive/shared/dist/index.d.ts +2 -0
  6. package/node_modules/@hive/shared/dist/index.js +2 -0
  7. package/node_modules/@hive/shared/dist/reviewHall.d.ts +15 -0
  8. package/node_modules/@hive/shared/dist/reviewHall.js +49 -0
  9. package/node_modules/@hive/shared/dist/types.d.ts +29 -0
  10. package/node_modules/@hive/shared/dist/workers.d.ts +14 -0
  11. package/node_modules/@hive/shared/dist/workers.js +22 -0
  12. package/package.json +1 -1
  13. package/packages/server/dist/api/rest.js +130 -11
  14. package/packages/server/dist/api/ws.js +25 -8
  15. package/packages/server/dist/control/launcher.js +50 -11
  16. package/packages/server/dist/control/messaging.js +3 -2
  17. package/packages/server/dist/health/deriveAlerts.js +1 -2
  18. package/packages/server/dist/hooks/hookIngest.js +69 -10
  19. package/packages/server/dist/index.js +20 -4
  20. package/packages/server/dist/messages/messagesStore.js +25 -12
  21. package/packages/server/dist/missions/missionsStore.js +19 -0
  22. package/packages/server/dist/missions/reopenOnWork.js +20 -0
  23. package/packages/server/dist/plans/planReconcile.js +114 -0
  24. package/packages/server/dist/plans/plansStore.js +46 -3
  25. package/packages/server/dist/roster/missionReplay.js +82 -0
  26. package/packages/server/dist/roster/rosterBuilder.js +93 -189
  27. package/packages/server/dist/roster/workerIdentity.js +886 -0
  28. package/packages/server/dist/watch/jobsWatcher.js +55 -24
  29. package/packages/server/dist/worktrees/worktreeReclaim.js +156 -0
  30. package/packages/web/dist/assets/index-BpEYVjCF.css +2 -0
  31. package/packages/web/dist/assets/index-rIAIJyuF.js +12 -0
  32. package/packages/web/dist/index.html +2 -2
  33. package/templates/agents/hive-orchestrator.md +1 -0
  34. package/packages/web/dist/assets/index-BrkIk6ny.js +0 -11
  35. package/packages/web/dist/assets/index-DJFn_ZsI.css +0 -2
@@ -5,8 +5,8 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
7
7
  <title>Hive</title>
8
- <script type="module" crossorigin src="/assets/index-BrkIk6ny.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-DJFn_ZsI.css">
8
+ <script type="module" crossorigin src="/assets/index-rIAIJyuF.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-BpEYVjCF.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
@@ -17,6 +17,7 @@ You are the Hive orchestrator for this initiative. The user talks only to you
17
17
  4. **Relay context, don't relay noise.** When a worker reports back, summarize the outcome for the user rather than pasting the worker's raw output.
18
18
  5. **Report status continuously.** At each of these transitions, shell out to `{{HIVE_EMIT_CMD}}` (fails silently if the Hive dashboard isn't running, so it never blocks your turn):
19
19
  - Starting to delegate a task: `{{HIVE_EMIT_CMD}} --phase delegating --detail "<what and to whom>" --target <worker-id-or-label> --task <stable-task-id>`
20
+ - `--target` names **one** worker. When you spawn several workers at once, emit `delegating` once per worker (and `worker_reported` once per worker as each returns) — Hive draws one person per emit.
20
21
  - A worker reports back: `{{HIVE_EMIT_CMD}} --phase worker_reported --detail "<summary>" --target <worker-id-or-label> --task <stable-task-id>`
21
22
  - `--task` MUST be a task `id` from your latest published plan — Hive uses it to move that task's status on the board (delegating → in progress, worker_reported → complete). A made-up or umbrella id breaks the linkage and the plan appears frozen. When one worker covers several plan tasks, emit one event per task id.
22
23
  - You're blocked and need the user's input: `{{HIVE_EMIT_CMD}} --phase blocked_on_user --detail '<compact JSON>'`. Use `{ "kind": "product|permission|destructive|merge|scope|question", "question": "...", "context": "...", "choices": ["..."], "recommendation": "...", "impact": "what stalls while waiting" }`. Ask one concrete decision per event.