jonah-fleet 1.8.0 → 1.9.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 (43) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +3 -3
  3. package/dist/commands/labels.d.ts +1 -1
  4. package/dist/commands/labels.d.ts.map +1 -1
  5. package/dist/commands/status.d.ts.map +1 -1
  6. package/dist/commands/sync.d.ts.map +1 -1
  7. package/dist/commands/telemetry.d.ts.map +1 -1
  8. package/dist/index.js +666 -151
  9. package/dist/lib/daemon-keys.d.ts.map +1 -1
  10. package/dist/lib/daemon.d.ts.map +1 -1
  11. package/dist/lib/fleet-query.d.ts.map +1 -1
  12. package/dist/lib/labels.d.ts +20 -0
  13. package/dist/lib/labels.d.ts.map +1 -1
  14. package/dist/lib/manifest.d.ts.map +1 -1
  15. package/dist/lib/presets.d.ts +6 -1
  16. package/dist/lib/presets.d.ts.map +1 -1
  17. package/dist/lib/runner.d.ts +48 -0
  18. package/dist/lib/runner.d.ts.map +1 -1
  19. package/dist/lib/telemetry.d.ts.map +1 -1
  20. package/dist/lib/terminal-card.d.ts +15 -1
  21. package/dist/lib/terminal-card.d.ts.map +1 -1
  22. package/package.json +1 -1
  23. package/schema.json +10 -5
  24. package/templates/prompts/ORCHESTRATION.md +49 -11
  25. package/templates/prompts/_prompt-template.md +10 -13
  26. package/templates/prompts/analytics-review.md +4 -2
  27. package/templates/prompts/autowork.md +43 -12
  28. package/templates/prompts/dependency-update-security-check.md +4 -2
  29. package/templates/prompts/design-review.md +125 -0
  30. package/templates/prompts/issues-housekeeping.md +9 -7
  31. package/templates/prompts/optimizer.md +31 -12
  32. package/templates/prompts/peer-review.md +29 -4
  33. package/templates/prompts/product-planning.md +14 -10
  34. package/templates/workflows/autowork-cron.yml +99 -39
  35. package/templates/workflows/dependency-check-cron.yml +89 -3
  36. package/templates/workflows/design-review-cron.yml +221 -0
  37. package/templates/workflows/issues-housekeeping-cron.yml +89 -3
  38. package/templates/workflows/prompt-optimizer-cron.yml +96 -10
  39. package/templates/workflows/sync-fleet.yml +4 -0
  40. package/templates/workflows/trigger-autowork-manual.yml +116 -12
  41. package/templates/workflows/trigger-autowork-on-bug.yml +135 -5
  42. package/templates/workflows/trigger-autowork-on-merge.yml +135 -5
  43. package/templates/workflows/trigger-review-routine.yml +119 -18
package/CHANGELOG.md CHANGED
@@ -5,6 +5,51 @@ All notable changes to `jonah-fleet` will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.9.0](https://github.com/juliendurandeu/jonah-fleet/compare/v1.8.0...v1.9.0) (2026-09-16)
9
+
10
+
11
+ ### Features
12
+
13
+ * **ci:** automate release pipeline with auto-merge and tag alignment ([#105](https://github.com/juliendurandeu/jonah-fleet/issues/105)) ([2e4d34b](https://github.com/juliendurandeu/jonah-fleet/commit/2e4d34bb35a4768372232112c455bb5df6849119))
14
+ * **labels:** support auto-provisioning of fleet labels via CLI and sync ([1729473](https://github.com/juliendurandeu/jonah-fleet/commit/1729473ed9964740e4cba591cd773224c36be298))
15
+ * **logging:** migrate routine run logs to GitHub Issues ([#137](https://github.com/juliendurandeu/jonah-fleet/issues/137)) ([13bff52](https://github.com/juliendurandeu/jonah-fleet/commit/13bff5251da1cbaefc57b942d894413abed6a1a1))
16
+ * **models:** upgrade default LLM models to Gemini 3.8 Flash ([ef436fc](https://github.com/juliendurandeu/jonah-fleet/commit/ef436fc6d893cff487d9a5ae1017cb5081f3bafb))
17
+ * **peer-review:** link routine run log issue from starting review markers and PR comments ([9bac85a](https://github.com/juliendurandeu/jonah-fleet/commit/9bac85afcf9c23ea5aa46eaf9a0c4de2a37eaf20))
18
+ * **routines:** introduce autonomous Design Review routine ([#110](https://github.com/juliendurandeu/jonah-fleet/issues/110)) ([1e4f05b](https://github.com/juliendurandeu/jonah-fleet/commit/1e4f05ba55bdedadebcce8639102257930ebaf83))
19
+ * **runner:** display truncated PR and issue titles in daemon spinner ([#107](https://github.com/juliendurandeu/jonah-fleet/issues/107)) ([9b2ca79](https://github.com/juliendurandeu/jonah-fleet/commit/9b2ca796ab37872ff056dad486c9faea80d6c1a0))
20
+ * **telemetry:** live progress reporting and compact milestone cards in routine run issues ([#168](https://github.com/juliendurandeu/jonah-fleet/issues/168)) ([0899cdc](https://github.com/juliendurandeu/jonah-fleet/commit/0899cdcbdce7b7411bd85beedd1ffe8b05465cb5))
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * **daemon:** scope routine prompts strictly to target repository working directory ([62affb8](https://github.com/juliendurandeu/jonah-fleet/commit/62affb8b6dade15f7296e09d28a52359d1d05bb1))
26
+ * **prompts:** enforce active origin sync in autowork and conflict resolution in peer-review ([2bb1832](https://github.com/juliendurandeu/jonah-fleet/commit/2bb1832154312f78503da1e7035dc91e4247c9a8))
27
+ * **runner,daemon:** prevent stale report ghosting and fix keyboard lockup in targeted prompts ([#166](https://github.com/juliendurandeu/jonah-fleet/issues/166)) ([0de89e2](https://github.com/juliendurandeu/jonah-fleet/commit/0de89e24427f9e575f08cd721434ab5156fdcb94))
28
+ * **workflows:** harden workflow templates against shell injection, credential persistence, and timeouts ([04a0dd3](https://github.com/juliendurandeu/jonah-fleet/commit/04a0dd3a0457fd4d6db74fcd4709fcef0d28d84e))
29
+
30
+ ## [Unreleased] - 2026-09-16
31
+
32
+ ### Features
33
+
34
+ * **telemetry:** introduce live progress reporting in routine run tracking issues (`routine-log`) using bounded Compact Milestone Cards (3–5 bullet points for Intake & Strategy, Verification & Tests, Autonomous Handoff, and Run Completed) across `autowork`, `peer-review`, `optimizer`, and `ORCHESTRATION.md`.
35
+ * **workflows:** automatically post Interruption Cards to routine run issue comment streams upon failure, timeout, or cancellation, linking directly to the Actions run logs before applying `status:failure,needs-attention`.
36
+ * **runner:** add `formatMilestoneCard`, `formatInterruptionCard`, and `tryPostLocalRunMilestone` helpers to local runner `runner.ts` to post interruption cards on non-zero exit codes with offline fallback.
37
+ * **logging:** migrate routine run telemetry and execution logs from git repository files (`.github/prompts/logs/**`) to GitHub Issues with two-phase lifecycle (`routine-log`, `status:running` -> `status:success` closed / `status:failure,needs-attention` open).
38
+ * **runner:** support local runner and daemon issue lifecycle with `runner:local` and offline fallback to `.jonah-fleet/runs/*.md`.
39
+ * **telemetry:** update fleet telemetry hub, status command, and optimizer routine to query routine run issues via `gh issue list --label routine-log` and local `.jonah-fleet/runs/`.
40
+ * **housekeeping:** replace log-only PR sweep with stalled routine run issue audit (`status:running` > 6 hours).
41
+ * **routines:** introduce autonomous Design Review routine for design system purity, UI clutter audit, and feature pruning.
42
+ * **runner:** display clean, truncated PR and Issue titles in foreground daemon spinner alongside target numbers.
43
+ * **peer-review:** link routine tracking log issue directly from "Starting review (round N)" PR comments and review summaries.
44
+ * **models:** upgrade default LLM models to Gemini 3.8 Flash (`gemini-3.8-flash-high` for core reasoning routines, `gemini-3.8-flash-medium` for housekeeping, dependency check, and analytics) to ensure CLI compatibility and access to the latest model capabilities.
45
+
46
+ ### Bug Fixes
47
+
48
+ * **daemon:** prevent keyboard lockup and prompt corruption during targeted input by resuming stdin stream, restoring raw mode, and suppressing status ticker during prompt interactions.
49
+ * **runner:** prevent stale report ghosting on routine failure or timeout by cleaning up preexisting run reports before execution, validating report modification timestamps against run start, and appending trailing error output to fallback failure summaries.
50
+ * **daemon:** prevent keyboard lockup by explicitly resuming `stdin` after targeted interactive prompts (`R` and `A`) and ensure `KeyboardController.resume()` unpauses the underlying stream.
51
+ * **daemon:** suppress status-line ticker updates and interval check dispatches while waiting for targeted user input to avoid prompt visual corruption and background task collisions.
52
+
8
53
  ## [1.8.0](https://github.com/juliendurandeu/jonah-fleet/compare/jonah-fleet-v1.7.0...jonah-fleet-v1.8.0) (2026-09-09)
9
54
 
10
55
 
package/README.md CHANGED
@@ -158,9 +158,9 @@ Each target project contains an `agents-manifest.json` at its root:
158
158
  "analytics-review": false
159
159
  },
160
160
  "models": {
161
- "default": "gemini-3.7-flash-high",
162
- "issues-housekeeping": "gemini-3.7-flash",
163
- "dependency-update-security-check": "gemini-3.7-flash"
161
+ "default": "gemini-3.8-flash-high",
162
+ "issues-housekeeping": "gemini-3.8-flash-medium",
163
+ "dependency-update-security-check": "gemini-3.8-flash-medium"
164
164
  },
165
165
  "budgets": {
166
166
  "weeklyTokens": 8750000,
@@ -7,5 +7,5 @@ export interface LabelsCommandOptions {
7
7
  cwd?: string;
8
8
  executor?: GhExecutor;
9
9
  }
10
- export declare function runLabels(action?: 'audit' | 'list' | 'prune', options?: LabelsCommandOptions): Promise<void>;
10
+ export declare function runLabels(action?: 'audit' | 'list' | 'prune' | 'provision', options?: LabelsCommandOptions): Promise<void>;
11
11
  //# sourceMappingURL=labels.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/commands/labels.ts"],"names":[],"mappings":"AASA,OAAO,EAAqB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEtE,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,wBAAsB,SAAS,CAC7B,MAAM,GAAE,OAAO,GAAG,MAAM,GAAG,OAAiB,EAC5C,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,IAAI,CAAC,CA2Gf"}
1
+ {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/commands/labels.ts"],"names":[],"mappings":"AAUA,OAAO,EAAqB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEtE,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,wBAAsB,SAAS,CAC7B,MAAM,GAAE,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,WAAqB,EAC1D,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,IAAI,CAAC,CAqIf"}
@@ -1 +1 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/commands/status.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAsB,SAAS,CAAC,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6K1E"}
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/commands/status.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAsB,SAAS,CAAC,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4K1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/commands/sync.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,OAAO,CAAC,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0CtE"}
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/commands/sync.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,OAAO,CAAC,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmDtE"}
@@ -1 +1 @@
1
- {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/commands/telemetry.ts"],"names":[],"mappings":"AAeA,OAAO,EAAqB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEtE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,wBAAsB,YAAY,CAAC,OAAO,GAAE,gBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAuHhF"}
1
+ {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/commands/telemetry.ts"],"names":[],"mappings":"AAeA,OAAO,EAAqB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEtE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,wBAAsB,YAAY,CAAC,OAAO,GAAE,gBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6HhF"}