@brokkai/brokk-town 0.6.3 → 0.6.5

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 (2) hide show
  1. package/README.md +22 -21
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -27,16 +27,17 @@ SIGHUP stops Town, its bots and their agent processes. Closing the browser does
27
27
  not stop the service. Demo mode is isolated and never invokes bots, agents or GitHub.
28
28
 
29
29
  ```sh
30
- bt -d # explicitly start in the background
31
- bt service status
30
+ bt -d # start in the background instead
31
+ bt status # running or stopped, and which towns it serves
32
32
  bt web # print the running service's browser URL
33
- bt service stop # stop Town and its bots
33
+ bt shutdown # stop Town and its bots
34
34
  ```
35
35
 
36
- Client commands require a running service. There is no login registration,
36
+ Client commands require a running Town and never start one; `bt status` and
37
+ `bt harnesses` also work while it is stopped. There is no login registration,
37
38
  automatic service replacement, terminal UI, version polling or in-app installer.
38
- `bt serve` is an explicit alias for foreground operation. Use `--state-dir` for
39
- an independent installation and `--listen` for a loopback address.
39
+ Use `--state-dir` for an independent installation and `--listen` for a loopback
40
+ address. Each command accepts only its own flags: `bt COMMAND --help` lists them.
40
41
 
41
42
  ## Independent bot projects
42
43
 
@@ -90,7 +91,7 @@ bt
90
91
  # In another terminal:
91
92
  bt add --repo OWNER/REPO
92
93
  bt start --repo OWNER/REPO --role issue
93
- bt capacity --max-workers 4
94
+ bt settings --max-workers 4
94
95
  ```
95
96
 
96
97
  Each configured town starts all eight bot processes immediately, including paused
@@ -224,7 +225,7 @@ reconciled. Town leaves closing declined issues and retired pull requests and
224
225
  filing review follow-ups for the first inventory after the window. Issues you
225
226
  submit yourself are still posted. Houses stay awake: the browser shows them as
226
227
  *quiet* rather than paused, the town header reads "Quiet hours · until …",
227
- Town Hall explains the hold, and `bt status` carries the same `quiet_hours`
228
+ Town Hall explains the hold, and `bt status --json` carries the same `quiet_hours`
228
229
  state for each town. When the window ends, scheduling resumes on its own with
229
230
  each house's usual cadence; nothing missed is replayed. Pause and quiet hours
230
231
  are independent and both survive a restart: a paused house stays paused after
@@ -308,7 +309,7 @@ the confirmation status and a link to the issue. Demo submissions stay local.
308
309
  ```sh
309
310
  ./bin/bt request --repo BrokkAi/my-project --kind feature --title 'Add keyboard navigation' --body-file request.md
310
311
  # Use --kind bug for a bug report; --body-file - reads stdin.
311
- ./bin/bt check-request --repo BrokkAi/my-project --request-id SAVED_ID
312
+ ./bin/bt request --repo BrokkAi/my-project --check --request-id SAVED_ID
312
313
  ```
313
314
 
314
315
  Requests have durable IDs, and the CLI prints the ID before sending. If the
@@ -331,8 +332,7 @@ Adding the same repository again restores that history and its previous
331
332
  settings, with automation paused and the reporter enabled. A merge policy or
332
333
  harness/agent choice given with the add replaces the previous one; budgets, work
333
334
  policies, bot profiles, funnels and the branch are kept. A deleted town listed in
334
- `bt serve --config` is restored with the file's settings, and one named by
335
- `bt serve --repo` with its previous settings; `bt serve` prints a notice. A town
335
+ `bt --config` is restored with the file's settings, and Town prints a notice. A town
336
336
  that already worked on one branch cannot be restored onto another. Deleting a
337
337
  town that is already deleted reports `unknown town`. Wait for stopping workers to
338
338
  finish before restoring a town.
@@ -363,7 +363,9 @@ default **suggest** mode, its bounded assessment is attached to the resulting
363
363
  durable Mayoral decision: **Admit** sends the work to Issue Bot or Review Bot;
364
364
  **Decline** keeps Town from acting on it. In **auto** mode, Simplifier Bot can
365
365
  admit routine work and decline low-value complex work itself; a declined issue is
366
- closed through Repo-bot, while a declined PR is ignored rather than closed.
366
+ closed through Repo-bot, while a contributor's declined PR is ignored rather than
367
+ closed. Town's own declined implementation PR, by either the Mayor or Simplifier
368
+ Bot, is closed like one that failed its second review, and its issue starts over.
367
369
  Simplifier Bot's own marked proposals do not recursively pass through intake.
368
370
 
369
371
  **Mayor Bot** lives in Town Hall. Start it like any other house and it judges
@@ -414,10 +416,11 @@ Copy [docs/config.example.json](docs/config.example.json), edit the repository,
414
416
  bot profiles, verification command, and policy, then run:
415
417
 
416
418
  ```sh
417
- ./bin/bt serve --config /path/to/towns.json
419
+ ./bin/bt --config /path/to/towns.json
418
420
  ```
419
421
 
420
- Configuration is a JSON array for town-only files. Each entry supplies `repo`, optional `branch` and
422
+ Configuration is one JSON object: optional `max_workers` and `quiet_hours` for
423
+ the whole service, and a `towns` array. Each town supplies `repo`, optional `branch` and
421
424
  `harness`, `agent`, optional `bot_agents`, optional `verify` argument vector,
422
425
  `merge_policy`, `simplifier_mode`, optional `review_close_severity` (`P1`, `P2`
423
426
  or `P3`, default `P2`), optional `budget`, optional `bot_policies`,
@@ -425,11 +428,9 @@ or `P3`, default `P2`), optional `budget`, optional `bot_policies`,
425
428
  lists all required values. A config-file entry gets no defaults for
426
429
  `merge_policy`, `poll_seconds`, `report_seconds`, or `max_cycles`: omitting any
427
430
  of them rejects the file. The defaults quoted below apply to towns added with
428
- `bt add` or the browser. To persist global capacity alongside the town list,
429
- use the object form `{"max_workers": 2, "towns": [...]}`; the legacy array form
430
- remains accepted. When `serve --config` includes `max_workers`, that value
431
- overrides the persisted service setting in the same atomic state update; an
432
- array config without it preserves the saved limit. Town
431
+ `bt add` or the browser. When `--config` includes `max_workers`, that value
432
+ overrides the persisted service setting in the same atomic state update; a
433
+ config without it preserves the saved limit. Town
433
434
  uses the repository's default branch when omitted, and keeps following it: the
434
435
  observed default is recorded as repository state, so renaming it moves the town
435
436
  with it and never overwrites a branch you chose. An initialized town's branch
@@ -569,7 +570,7 @@ resets the pending release's attempt budget in its own workspace, then resumes
569
570
  the same release. Unlike a task retry, a release retry also starts the release
570
571
  house if it was paused. Town never edits the bot's private state. The pinned Release
571
572
  Bot must advertise the `retry` capability; older pins report that plainly.
572
- Use `bt status` to inspect saved details and GitHub to resolve conflicts.
573
+ Use `bt status --json` to inspect saved details and GitHub to resolve conflicts.
573
574
 
574
575
  ### Snoozing one task
575
576
 
@@ -591,7 +592,7 @@ it. A run already under way when you snooze finishes. The Mayor can still decide
591
592
  a snoozed arrival by hand.
592
593
 
593
594
  The task shows as **Snoozed** with its reason and resume time in the browser
594
- and in `bt status` (`deferred_until`, `defer_reason`). Snoozed is distinct from
595
+ and in `bt status --json` (`deferred_until`, `defer_reason`). Snoozed is distinct from
595
596
  blocked and failed, so a snoozed task does not appear in the inbox. At the
596
597
  resume time Town clears the snooze, wakes the house and records the event; the
597
598
  snooze is saved state, so it survives a restart and repository reconciliation.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.6.3",
2
+ "version": "0.6.5",
3
3
  "license": "Apache-2.0",
4
4
  "repository": {
5
5
  "type": "git",
@@ -25,9 +25,9 @@
25
25
  "arm64"
26
26
  ],
27
27
  "optionalDependencies": {
28
- "@brokkai/brokk-town-linux-x64": "0.6.3",
29
- "@brokkai/brokk-town-linux-arm64": "0.6.3",
30
- "@brokkai/brokk-town-darwin-x64": "0.6.3",
31
- "@brokkai/brokk-town-darwin-arm64": "0.6.3"
28
+ "@brokkai/brokk-town-linux-x64": "0.6.5",
29
+ "@brokkai/brokk-town-linux-arm64": "0.6.5",
30
+ "@brokkai/brokk-town-darwin-x64": "0.6.5",
31
+ "@brokkai/brokk-town-darwin-arm64": "0.6.5"
32
32
  }
33
33
  }