pi-harness-runtime 1.1.506 → 1.1.508

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 (88) hide show
  1. package/CHANGELOG.md +166 -0
  2. package/harness/auto-resume-marker.ts +177 -0
  3. package/harness/provider-quota-reset.ts +53 -19
  4. package/harness/provider-recovery-runtime.ts +20 -0
  5. package/harness/quota-capture.ts +150 -0
  6. package/harness/quota-low-remaining.ts +75 -0
  7. package/harness/quota-reset-duration.ts +87 -0
  8. package/harness/quota-threshold.ts +117 -0
  9. package/harness/resume-scope.ts +85 -0
  10. package/harness/scope-expansion-runtime.ts +337 -0
  11. package/harness/scope-expansion.ts +512 -0
  12. package/index.ts +608 -14
  13. package/mirror.ts +4 -0
  14. package/package.json +1 -1
  15. package/packages/agent-policy/package.json +1 -1
  16. package/packages/auth/package.json +1 -1
  17. package/packages/autonomous-runtime/package.json +1 -1
  18. package/packages/checkpoint/package.json +1 -1
  19. package/packages/clipboard/package.json +1 -1
  20. package/packages/codex-watcher/package.json +1 -1
  21. package/packages/config-capture/package.json +1 -1
  22. package/packages/contracts/package.json +1 -1
  23. package/packages/cookie-sanitizer/package.json +1 -1
  24. package/packages/evaluation-engine/package.json +1 -1
  25. package/packages/event-bus/package.json +1 -1
  26. package/packages/event-store/package.json +1 -1
  27. package/packages/experience-replay/package.json +1 -1
  28. package/packages/file-copy-helper/package.json +1 -1
  29. package/packages/intent-analyzer/package.json +1 -1
  30. package/packages/jev-judge/package.json +1 -1
  31. package/packages/knowledge-retrieval/package.json +1 -1
  32. package/packages/learning-engine/package.json +1 -1
  33. package/packages/logging/package.json +1 -1
  34. package/packages/memory-engine/package.json +1 -1
  35. package/packages/notification/dist/adapters/detail-format.d.ts +5 -2
  36. package/packages/notification/dist/adapters/detail-format.d.ts.map +1 -1
  37. package/packages/notification/dist/adapters/detail-format.js +29 -0
  38. package/packages/notification/dist/adapters/detail-format.js.map +1 -1
  39. package/packages/notification/dist/adapters/email-adapter.d.ts.map +1 -1
  40. package/packages/notification/dist/adapters/email-adapter.js +3 -0
  41. package/packages/notification/dist/adapters/email-adapter.js.map +1 -1
  42. package/packages/notification/dist/adapters/line-adapter.d.ts.map +1 -1
  43. package/packages/notification/dist/adapters/line-adapter.js +3 -0
  44. package/packages/notification/dist/adapters/line-adapter.js.map +1 -1
  45. package/packages/notification/dist/adapters/ntfy-adapter.d.ts.map +1 -1
  46. package/packages/notification/dist/adapters/ntfy-adapter.js +3 -0
  47. package/packages/notification/dist/adapters/ntfy-adapter.js.map +1 -1
  48. package/packages/notification/dist/adapters/telegram-adapter.d.ts +0 -1
  49. package/packages/notification/dist/adapters/telegram-adapter.d.ts.map +1 -1
  50. package/packages/notification/dist/adapters/telegram-adapter.js +3 -3
  51. package/packages/notification/dist/adapters/telegram-adapter.js.map +1 -1
  52. package/packages/notification/dist/notification-center.d.ts.map +1 -1
  53. package/packages/notification/dist/notification-center.js +24 -0
  54. package/packages/notification/dist/notification-center.js.map +1 -1
  55. package/packages/notification/dist/notification-policy.d.ts.map +1 -1
  56. package/packages/notification/dist/notification-policy.js +3 -0
  57. package/packages/notification/dist/notification-policy.js.map +1 -1
  58. package/packages/notification/dist/types.d.ts +23 -1
  59. package/packages/notification/dist/types.d.ts.map +1 -1
  60. package/packages/notification/package.json +1 -1
  61. package/packages/notification/src/adapters/detail-format.ts +45 -2
  62. package/packages/notification/src/adapters/email-adapter.ts +3 -0
  63. package/packages/notification/src/adapters/line-adapter.ts +3 -0
  64. package/packages/notification/src/adapters/ntfy-adapter.ts +3 -0
  65. package/packages/notification/src/adapters/telegram-adapter.ts +3 -4
  66. package/packages/notification/src/notification-center.ts +28 -0
  67. package/packages/notification/src/notification-policy.ts +3 -0
  68. package/packages/notification/src/types.ts +25 -0
  69. package/packages/paperclip-integration/package.json +1 -1
  70. package/packages/performance-optimizer/package.json +1 -1
  71. package/packages/privilege-broker/package.json +1 -1
  72. package/packages/prompt-compiler/package.json +1 -1
  73. package/packages/providers/package.json +1 -1
  74. package/packages/qdrant-skills/package.json +1 -1
  75. package/packages/quota-manager/package.json +1 -1
  76. package/packages/relay/package.json +1 -1
  77. package/packages/skill-mcp-client/package.json +1 -1
  78. package/packages/skills/package.json +1 -1
  79. package/packages/todo-bd-sync/package.json +1 -1
  80. package/packages/token-estimation/package.json +1 -1
  81. package/packages/tooling-preference/package.json +1 -1
  82. package/packages/trajectory/package.json +1 -1
  83. package/packages/tui/package.json +1 -1
  84. package/packages/two-phase-review/package.json +1 -1
  85. package/packages/types/package.json +1 -1
  86. package/packages/webmcp-tester/package.json +1 -1
  87. package/packages/wiki/package.json +1 -1
  88. 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"
@@ -21,6 +22,8 @@ export type NotificationEvent =
21
22
  | "CodexPlanDetected"
22
23
  | "CodexReviewDetected"
23
24
  | "ToolingPreferenceProposal"
25
+ | "ScopeProposal"
26
+ | "ScopeDecision"
24
27
  | "AssistantResponse"
25
28
  | "ToolSummary"
26
29
  | "Error"
@@ -171,4 +174,26 @@ export interface NotificationContext {
171
174
  questionId?: string;
172
175
  /** The kind of the pending question (approval, clarification, ...). */
173
176
  questionKind?: string;
177
+ /**
178
+ * The provider of a quota event.
179
+ *
180
+ * The canonical label of the provider ("MiniMax"), not the id of the
181
+ * mirror ("minimax"): the label is what the human reads.
182
+ */
183
+ provider?: string;
184
+ /** The remaining percentage of the quota window. */
185
+ remainingPct?: number;
186
+ /** The absolute moment the quota window resets. */
187
+ resetAt?: string;
188
+ /** The quota window the event is about ("5h", "weekly"). */
189
+ quotaWindow?: string;
190
+ /**
191
+ * The exact ids of the issues that a scope proposal names.
192
+ *
193
+ * A proposal names ids, not titles: the ids are what the decision
194
+ * authorizes.
195
+ */
196
+ scopeIds?: string[];
197
+ /** The absolute moment the decision of a scope proposal has to be made. */
198
+ scopeDeadline?: string;
174
199
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/paperclip-integration",
3
- "version": "1.1.506",
3
+ "version": "1.1.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
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.508",
4
4
  "description": "Two-agent write-review loop with blackboard coordination",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",