@a-t-h-i/bot-lobby 0.6.61 → 0.6.62

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 (100) hide show
  1. package/README.md +3 -7
  2. package/package.json +2 -1
  3. package/prompts/designer.md +25 -15
  4. package/prompts/master.md +284 -491
  5. package/prompts/panel.md +7 -0
  6. package/prompts/planner.md +15 -4
  7. package/prompts/qa.md +5 -1
  8. package/prompts/worker.md +0 -7
  9. package/scripts/builtin/affected_packages.mjs +106 -0
  10. package/scripts/builtin/check_changed.mjs +51 -0
  11. package/scripts/builtin/check_contract_breakage.mjs +118 -0
  12. package/scripts/builtin/circular_dependency_check.mjs +79 -0
  13. package/scripts/builtin/code_duplication_check.mjs +86 -0
  14. package/scripts/builtin/diff_summary.mjs +62 -0
  15. package/scripts/builtin/failure_digest.mjs +107 -0
  16. package/scripts/builtin/find_generated_files.mjs +79 -0
  17. package/scripts/builtin/find_symbol.mjs +81 -0
  18. package/scripts/builtin/find_test_fixtures.mjs +73 -0
  19. package/scripts/builtin/find_tests_for.mjs +12 -0
  20. package/scripts/builtin/lib/common.mjs +267 -0
  21. package/scripts/builtin/outline_file.mjs +77 -0
  22. package/scripts/builtin/project_commands.mjs +49 -0
  23. package/scripts/builtin/recent_changes.mjs +14 -0
  24. package/scripts/builtin/repo_map.mjs +65 -0
  25. package/scripts/builtin/run_changed_tests.mjs +48 -0
  26. package/src/delivery/transport.ts +1 -1
  27. package/src/desk/client-extension.ts +1 -31
  28. package/src/desk/ipc.ts +1 -11
  29. package/src/desk/session.ts +4 -101
  30. package/src/execution/agent-runner.ts +50 -8
  31. package/src/execution/assigned-session.ts +263 -0
  32. package/src/execution/assignment-discovery.ts +128 -0
  33. package/src/execution/assignment-policy.ts +46 -0
  34. package/src/execution/assignment.ts +175 -0
  35. package/src/execution/delegation.ts +9 -94
  36. package/src/execution/pi-runner.ts +99 -9
  37. package/src/harness/instructions.ts +1 -1
  38. package/src/index.ts +3 -0
  39. package/src/knowledge/design-record.ts +394 -0
  40. package/src/knowledge/file-notes.ts +36 -8
  41. package/src/lobby/ask.ts +6 -0
  42. package/src/lobby/exec.ts +28 -0
  43. package/src/lobby/host.ts +1 -11
  44. package/src/lobby/planner.ts +50 -124
  45. package/src/lobby/prompts.ts +1 -7
  46. package/src/lobby/runtime.ts +2 -26
  47. package/src/lobby/service.ts +25 -23
  48. package/src/lobby/topics.ts +0 -2
  49. package/src/master/evidence-freshness.ts +96 -0
  50. package/src/master/master.ts +248 -74
  51. package/src/master/scout-cache.ts +1 -1
  52. package/src/master/scout-lock.ts +44 -0
  53. package/src/master/scout-prefetch.ts +78 -0
  54. package/src/pi/activity.ts +2 -0
  55. package/src/pi/assignment-guard.ts +157 -0
  56. package/src/pi/delegation.ts +2 -21
  57. package/src/pi/model-support.ts +0 -6
  58. package/src/pi/start-task.ts +18 -7
  59. package/src/pi/tools.ts +41 -8
  60. package/src/roles/scout.ts +3 -1
  61. package/src/roles/worker.ts +107 -5
  62. package/src/schemas/configuration.ts +11 -45
  63. package/src/schemas/findings.ts +3 -0
  64. package/src/schemas/task.ts +30 -12
  65. package/src/scripts/library.ts +31 -1
  66. package/src/scripts/pick.ts +31 -15
  67. package/src/state/archive.ts +10 -0
  68. package/src/state/checkpoint.ts +0 -1
  69. package/src/state/gitignore.ts +39 -0
  70. package/src/state/persistence.ts +56 -0
  71. package/src/state/recovery.ts +33 -1
  72. package/src/webui/api/index.ts +6 -35
  73. package/src/webui/api/retention.ts +44 -0
  74. package/src/webui/api/status.ts +4 -6
  75. package/src/webui/dev/fake-service.ts +0 -117
  76. package/src/webui/dev/fixtures.ts +2 -16
  77. package/src/webui/protocol.ts +2 -142
  78. package/src/workflow/draft-assignments.ts +118 -0
  79. package/src/workflow/workflow.ts +271 -214
  80. package/webui/dist/assets/{CodeSurface-BtzJOVyH.js → CodeSurface-D3c12DBE.js} +1 -1
  81. package/webui/dist/assets/{TerminalView-Cz-KNWsq.js → TerminalView-DG4X3Yyr.js} +1 -1
  82. package/webui/dist/assets/index-BDmgr1OS.js +112 -0
  83. package/webui/dist/assets/index-BTyu99rI.css +2 -0
  84. package/webui/dist/build.json +29 -65
  85. package/webui/dist/index.html +2 -2
  86. package/prompts/expert.md +0 -17
  87. package/prompts/goal-check.md +0 -44
  88. package/prompts/pr-review.md +0 -62
  89. package/prompts/splitter.md +0 -58
  90. package/src/execution/worker-trees.ts +0 -396
  91. package/src/lobby/issues.ts +0 -219
  92. package/src/lobby/pr-review.ts +0 -366
  93. package/src/lobby/pulls.ts +0 -250
  94. package/src/lobby/split.ts +0 -262
  95. package/src/master/goal-check.ts +0 -115
  96. package/src/webui/api/gh-error.ts +0 -17
  97. package/src/webui/api/git.ts +0 -98
  98. package/src/webui/api/issues.ts +0 -50
  99. package/webui/dist/assets/index-D5fvY8f8.js +0 -112
  100. package/webui/dist/assets/index-DFvk8ADr.css +0 -2
package/README.md CHANGED
@@ -39,9 +39,6 @@ files the task changed, after the project's linter and a QA pass sized to the ch
39
39
  - **Plan**: plan with a panel of agents. **View plan** (`V`) opens the draft in a slide-out, where
40
40
  any line takes a comment.
41
41
  - **Tasks**: every task across sessions as a list or a board, with its steps, timings and **Resume**.
42
- - **Git**: use the **Pull requests / Issues** switch to review pull requests or browse open issues
43
- through `gh`. Issues retain descriptions, existing comments, **File issue** and **Plan it**;
44
- pull-request reviews remain read-only and post nothing.
45
42
  - **Knowledge**: what each agent has learned about the project, which you can edit, annotate or ask
46
43
  about.
47
44
 
@@ -49,13 +46,12 @@ The rail on the left holds settings, the key list, the theme and sounds. The pro
49
46
  (`P`) opens any folder on the machine running bot-lobby. Background sessions still run tasks;
50
47
  follow their progress and use **Resume** in **Tasks**, without a separate Sessions conversation page.
51
48
 
52
- Git opens pull requests at `#/git` and `#/git/<number>`, and issues at `#/git/issues` and
53
- `#/git/issues/<number>`. Old `#/issues` bookmarks redirect to Git. Former Sessions and Excalidraw
54
- addresses fall back to Lobby; Excalidraw integration is removed without deleting saved room links
49
+ Old `#/git` and `#/issues` bookmarks, and former Sessions and Excalidraw
50
+ addresses, fall back to Lobby; Excalidraw integration is removed without deleting saved room links
55
51
  or external boards.
56
52
 
57
53
  The composer appears only on **Lobby**, **Tasks**, **Plan** and **Knowledge**, including
58
- supported detail routes and Knowledge's Docs/Chat views. On Git, Metrics and Settings it stays mounted
54
+ supported detail routes and Knowledge's Docs/Chat views. On Metrics and Settings it stays mounted
59
55
  but hidden and inert, preserving drafts and attachments (including uploads that finish while hidden)
60
56
  without taking space.
61
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a-t-h-i/bot-lobby",
3
- "version": "0.6.61",
3
+ "version": "0.6.62",
4
4
  "description": "Structured multi-agent software engineering orchestrator for Pi",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -26,6 +26,7 @@
26
26
  "files": [
27
27
  "src",
28
28
  "prompts",
29
+ "scripts/builtin",
29
30
  "webui/dist",
30
31
  "THIRD_PARTY_NOTICES.md"
31
32
  ],
@@ -25,25 +25,35 @@ values.
25
25
 
26
26
  ## Ask, don't assume
27
27
 
28
- The user makes the design decisions; you make them concrete. Before you build
29
- anything visual that the existing UI does not already settle, ask the user
30
- with `ask_user_question` about every choice that is theirs to make, for
31
- example:
28
+ The user makes the design decisions; you make them concrete.
29
+
30
+ **Visual style** (spacing and padding, corner radius, borders, shadows, hover
31
+ and press effects, motion) comes from the **Design record** in your context:
32
+ the user's recorded choices first, then what the project's global styles and
33
+ most-used classes already do. Follow it exactly and never ask about a field
34
+ it settles. Fields it leaves open are asked once, while planning, with fixed
35
+ options; you request them on the planning panel by listing their keys under
36
+ `## Style`, never as your own questions.
37
+
38
+ **During a task you never ask about visual style.** For a field the record
39
+ leaves open, follow the closest pattern already in the code (or, in a project
40
+ with no UI yet, a quiet, conventional default), and list each value you chose
41
+ under **Design choices** in your report as `- <field>: <value>`, so it is
42
+ recorded for the user to overrule.
43
+
44
+ Other choices that are the user's to make and that the existing UI does not
45
+ settle may still be asked while planning, grouped into one questionnaire with
46
+ a mockup per option:
32
47
 
33
- - the visual style or direction (when there is no existing one to follow);
34
- - sizes: buttons and controls, spacing density, type scale;
35
48
  - element types: a modal or a pop-over, a drawer or a page, rich text or a
36
49
  plain text field, a tooltip or inline help, tabs or a segmented switch,
37
50
  a toast or an inline message;
38
- - motion: whether something animates, how, and how fast;
39
- - colours, radii, icons and empty, loading and error states where they are
40
- new.
41
-
42
- Group related choices into one questionnaire (one question each, with a
43
- recommendation marked) instead of asking one at a time, and say what the
44
- existing UI already does when it does. Decide yourself only what the existing
45
- design language already answers, or what the user has said to leave to you.
46
- When you report, list each design decision and who made it.
51
+ - the visual direction itself, when the project has none yet;
52
+ - colours, icons and empty, loading and error states where they are new.
53
+
54
+ Decide yourself only what the record and the existing design language already
55
+ answer, or what the user has said to leave to you. When you report, list each
56
+ design decision and who made it.
47
57
 
48
58
  ## Styling craft
49
59