pi-harness-runtime 1.1.506 → 1.1.507

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 (81) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/harness/provider-quota-reset.ts +53 -19
  3. package/harness/provider-recovery-runtime.ts +20 -0
  4. package/harness/quota-capture.ts +150 -0
  5. package/harness/quota-low-remaining.ts +75 -0
  6. package/harness/quota-reset-duration.ts +87 -0
  7. package/harness/quota-threshold.ts +117 -0
  8. package/harness/resume-scope.ts +85 -0
  9. package/harness/scope-expansion.ts +438 -0
  10. package/index.ts +212 -7
  11. package/mirror.ts +4 -0
  12. package/package.json +1 -1
  13. package/packages/agent-policy/package.json +1 -1
  14. package/packages/auth/package.json +1 -1
  15. package/packages/autonomous-runtime/package.json +1 -1
  16. package/packages/checkpoint/package.json +1 -1
  17. package/packages/clipboard/package.json +1 -1
  18. package/packages/codex-watcher/package.json +1 -1
  19. package/packages/config-capture/package.json +1 -1
  20. package/packages/contracts/package.json +1 -1
  21. package/packages/cookie-sanitizer/package.json +1 -1
  22. package/packages/evaluation-engine/package.json +1 -1
  23. package/packages/event-bus/package.json +1 -1
  24. package/packages/event-store/package.json +1 -1
  25. package/packages/experience-replay/package.json +1 -1
  26. package/packages/file-copy-helper/package.json +1 -1
  27. package/packages/intent-analyzer/package.json +1 -1
  28. package/packages/jev-judge/package.json +1 -1
  29. package/packages/knowledge-retrieval/package.json +1 -1
  30. package/packages/learning-engine/package.json +1 -1
  31. package/packages/logging/package.json +1 -1
  32. package/packages/memory-engine/package.json +1 -1
  33. package/packages/notification/dist/adapters/detail-format.d.ts +5 -2
  34. package/packages/notification/dist/adapters/detail-format.d.ts.map +1 -1
  35. package/packages/notification/dist/adapters/detail-format.js +17 -0
  36. package/packages/notification/dist/adapters/detail-format.js.map +1 -1
  37. package/packages/notification/dist/adapters/email-adapter.d.ts.map +1 -1
  38. package/packages/notification/dist/adapters/email-adapter.js +1 -0
  39. package/packages/notification/dist/adapters/email-adapter.js.map +1 -1
  40. package/packages/notification/dist/adapters/line-adapter.d.ts.map +1 -1
  41. package/packages/notification/dist/adapters/line-adapter.js +1 -0
  42. package/packages/notification/dist/adapters/line-adapter.js.map +1 -1
  43. package/packages/notification/dist/adapters/ntfy-adapter.d.ts.map +1 -1
  44. package/packages/notification/dist/adapters/ntfy-adapter.js +1 -0
  45. package/packages/notification/dist/adapters/ntfy-adapter.js.map +1 -1
  46. package/packages/notification/dist/adapters/telegram-adapter.d.ts.map +1 -1
  47. package/packages/notification/dist/adapters/telegram-adapter.js +1 -0
  48. package/packages/notification/dist/adapters/telegram-adapter.js.map +1 -1
  49. package/packages/notification/dist/notification-center.d.ts.map +1 -1
  50. package/packages/notification/dist/notification-center.js +10 -0
  51. package/packages/notification/dist/notification-center.js.map +1 -1
  52. package/packages/notification/dist/types.d.ts +14 -1
  53. package/packages/notification/dist/types.d.ts.map +1 -1
  54. package/packages/notification/package.json +1 -1
  55. package/packages/notification/src/adapters/detail-format.ts +29 -2
  56. package/packages/notification/src/adapters/email-adapter.ts +1 -0
  57. package/packages/notification/src/adapters/line-adapter.ts +1 -0
  58. package/packages/notification/src/adapters/ntfy-adapter.ts +1 -0
  59. package/packages/notification/src/adapters/telegram-adapter.ts +1 -0
  60. package/packages/notification/src/notification-center.ts +14 -0
  61. package/packages/notification/src/types.ts +14 -0
  62. package/packages/paperclip-integration/package.json +1 -1
  63. package/packages/performance-optimizer/package.json +1 -1
  64. package/packages/privilege-broker/package.json +1 -1
  65. package/packages/prompt-compiler/package.json +1 -1
  66. package/packages/providers/package.json +1 -1
  67. package/packages/qdrant-skills/package.json +1 -1
  68. package/packages/quota-manager/package.json +1 -1
  69. package/packages/relay/package.json +1 -1
  70. package/packages/skill-mcp-client/package.json +1 -1
  71. package/packages/skills/package.json +1 -1
  72. package/packages/todo-bd-sync/package.json +1 -1
  73. package/packages/token-estimation/package.json +1 -1
  74. package/packages/tooling-preference/package.json +1 -1
  75. package/packages/trajectory/package.json +1 -1
  76. package/packages/tui/package.json +1 -1
  77. package/packages/two-phase-review/package.json +1 -1
  78. package/packages/types/package.json +1 -1
  79. package/packages/webmcp-tester/package.json +1 -1
  80. package/packages/wiki/package.json +1 -1
  81. package/packages/write-review/package.json +1 -1
@@ -9,6 +9,7 @@ export type NotificationEvent =
9
9
  | "TaskCompleted"
10
10
  | "TaskFailed"
11
11
  | "QuotaPaused"
12
+ | "QuotaLowRemaining"
12
13
  | "ResumeScheduled"
13
14
  | "ContextCompacted"
14
15
  | "OutputLimitContinued"
@@ -171,4 +172,17 @@ export interface NotificationContext {
171
172
  questionId?: string;
172
173
  /** The kind of the pending question (approval, clarification, ...). */
173
174
  questionKind?: string;
175
+ /**
176
+ * The provider of a quota event.
177
+ *
178
+ * The canonical label of the provider ("MiniMax"), not the id of the
179
+ * mirror ("minimax"): the label is what the human reads.
180
+ */
181
+ provider?: string;
182
+ /** The remaining percentage of the quota window. */
183
+ remainingPct?: number;
184
+ /** The absolute moment the quota window resets. */
185
+ resetAt?: string;
186
+ /** The quota window the event is about ("5h", "weekly"). */
187
+ quotaWindow?: string;
174
188
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/paperclip-integration",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "Paperclip API integration: poll agent inbox, route tasks to pi.dev, Telegram alerts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/performance-optimizer",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "Performance optimization analyzer for pi-harness runtime (RFC-0056)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi/privilege-broker",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "Privilege Broker — capability registry and command executor for autonomous runtime (RFC-0101 §7)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi/prompt-compiler",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "Deterministic prompt compiler for pi-harness-runtime",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/providers",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "pi-harness-runtime — providers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/qdrant-skills",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "Qdrant vector search integration for Hermes-style skill system",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/quota-manager",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "pi-harness-runtime — quota-manager",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/relay",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "type": "module",
5
5
  "description": "Cloud relay for remote access - T3 Connect style for pi-harness",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi/skill-mcp-client",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "MCP client for Skills SaaS backend",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/skills",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "File-based skill system with pi.dev compatibility and Hermes self-improvement",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moocoding/todo-bd-sync",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "Two-way sync between rpiv-todo overlay and bd issue tracker",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/token-estimation",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "pi-harness-runtime — token-estimation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/tooling-preference",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "pi-harness-runtime — JS/TS tooling preference (Biome vs ESLint/Prettier) proposal",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/trajectory",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "Trajectory capture for the write-review loop — persists cycle records for learning",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/tui",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "pi-harness-runtime — tui",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/two-phase-review",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "pi-harness-runtime — two-phase implementation and review workflow (queue review signals, gate the phase, scope the diff)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/types",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "Shared TypeScript types for pi-harness-runtime packages",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/webmcp-tester",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "WebMCP-powered E2E testing for pi-harness - natural language test scenarios",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/wiki",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "LLM Wiki integration for pi-harness-runtime",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moocoding/write-review",
3
- "version": "1.1.506",
3
+ "version": "1.1.507",
4
4
  "description": "Two-agent write-review loop with blackboard coordination",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",