pi-crew 0.9.27 → 0.9.29

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 +15 -0
  2. package/dist/build-meta.json +164 -115
  3. package/dist/index.mjs +986 -555
  4. package/dist/index.mjs.map +4 -4
  5. package/docs/REVIEW-FINDINGS-2026-07-CORE.md +139 -0
  6. package/docs/REVIEW-FINDINGS-2026-07.md +125 -0
  7. package/docs/bugs/bug-quota-display-truncation.md +223 -0
  8. package/docs/stories/README.md +3 -1
  9. package/docs/stories/US-DEPS-major-upgrade.md +62 -0
  10. package/package.json +4 -4
  11. package/src/agents/agent-config.ts +2 -0
  12. package/src/agents/discover-agents.ts +4 -0
  13. package/src/config/config.ts +4 -0
  14. package/src/extension/crew-vibes/config.ts +1 -1
  15. package/src/extension/crew-vibes/figures.ts +1 -1
  16. package/src/extension/crew-vibes/footer.ts +292 -0
  17. package/src/extension/crew-vibes/index.ts +74 -70
  18. package/src/extension/crew-vibes/provider-usage.ts +119 -53
  19. package/src/extension/team-tool.ts +11 -0
  20. package/src/prompt/prompt-runtime.ts +65 -0
  21. package/src/runtime/child-pi.ts +58 -43
  22. package/src/runtime/cross-extension-rpc.ts +1 -1
  23. package/src/runtime/pi-args.ts +2 -0
  24. package/src/runtime/post-exit-stdio-guard.ts +22 -4
  25. package/src/runtime/stale-reconciler.ts +9 -4
  26. package/src/runtime/task-runner.ts +1 -0
  27. package/src/runtime/team-runner.ts +11 -16
  28. package/src/state/atomic-write.ts +46 -19
  29. package/src/state/event-log.ts +77 -24
  30. package/src/state/mailbox.ts +6 -3
  31. package/src/ui/pi-ui-compat.ts +11 -0
  32. package/src/utils/conflict-detect.ts +9 -3
  33. package/src/utils/paths.ts +7 -1
  34. package/src/worktree/cleanup.ts +19 -0
  35. package/src/worktree/worktree-manager.ts +145 -34
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.28] — maxTokens cap + real-time steering + provider-per-model (2026-07-09)
4
+
5
+ ### Features
6
+ - **maxTokens cap for background workers**: agent config `maxTokens: N` sets `PI_CREW_MAX_OUTPUT` env var; prompt-runtime hooks `before_provider_request` to cap `payload.max_tokens`
7
+ - **Real-time child steering**: team tool writes steers to JSONL file in real-time; child's prompt-runtime polls file every 500ms and injects via `pi.sendMessage({deliverAs:"steer"})`
8
+ - **Provider quota follows selected model**: `fetchProviderUsage()` now takes a provider parameter; quota section shows data for the current model's provider only, hides for unsupported providers
9
+ - **Minimax provider quota**: fetches from `https://www.minimax.io/v1/token_plan/remains` (interval + weekly usage with reset timers)
10
+
11
+ ### Fixes
12
+ - **currentProvider not initialized**: quota bar was always hidden because `model_select` only fires on manual switch; now reads `ctx.model.provider` at `session_start`
13
+ - **Animation stability**: PUA cat frames for native terminals, braille fallback for web terminals (gotty/wetty). Removed unstable cat widget and isWebTerminal detection for default behavior
14
+ - **PI_CREW_MAX_OUTPUT_TOKENS → PI_CREW_MAX_OUTPUT**: renamed to avoid `isSecretKey` detection ("TOKEN" pattern)
15
+ - **BASE_ALLOWLIST**: added `PI_CREW_MAX_OUTPUT` and `PI_CREW_STEERING_FILE` so `sanitizeEnvSecrets` passes them through
16
+ - **parseAgentFile**: now parses `maxTokens` from agent definition frontmatter
17
+
3
18
  ## [0.9.27] — crew-vibes provider usage + animation fixes (2026-07-08)
4
19
 
5
20
  ### Features