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.
- package/CHANGELOG.md +166 -0
- package/harness/auto-resume-marker.ts +177 -0
- package/harness/provider-quota-reset.ts +53 -19
- package/harness/provider-recovery-runtime.ts +20 -0
- package/harness/quota-capture.ts +150 -0
- package/harness/quota-low-remaining.ts +75 -0
- package/harness/quota-reset-duration.ts +87 -0
- package/harness/quota-threshold.ts +117 -0
- package/harness/resume-scope.ts +85 -0
- package/harness/scope-expansion-runtime.ts +337 -0
- package/harness/scope-expansion.ts +512 -0
- package/index.ts +608 -14
- package/mirror.ts +4 -0
- package/package.json +1 -1
- package/packages/agent-policy/package.json +1 -1
- package/packages/auth/package.json +1 -1
- package/packages/autonomous-runtime/package.json +1 -1
- package/packages/checkpoint/package.json +1 -1
- package/packages/clipboard/package.json +1 -1
- package/packages/codex-watcher/package.json +1 -1
- package/packages/config-capture/package.json +1 -1
- package/packages/contracts/package.json +1 -1
- package/packages/cookie-sanitizer/package.json +1 -1
- package/packages/evaluation-engine/package.json +1 -1
- package/packages/event-bus/package.json +1 -1
- package/packages/event-store/package.json +1 -1
- package/packages/experience-replay/package.json +1 -1
- package/packages/file-copy-helper/package.json +1 -1
- package/packages/intent-analyzer/package.json +1 -1
- package/packages/jev-judge/package.json +1 -1
- package/packages/knowledge-retrieval/package.json +1 -1
- package/packages/learning-engine/package.json +1 -1
- package/packages/logging/package.json +1 -1
- package/packages/memory-engine/package.json +1 -1
- package/packages/notification/dist/adapters/detail-format.d.ts +5 -2
- package/packages/notification/dist/adapters/detail-format.d.ts.map +1 -1
- package/packages/notification/dist/adapters/detail-format.js +29 -0
- package/packages/notification/dist/adapters/detail-format.js.map +1 -1
- package/packages/notification/dist/adapters/email-adapter.d.ts.map +1 -1
- package/packages/notification/dist/adapters/email-adapter.js +3 -0
- package/packages/notification/dist/adapters/email-adapter.js.map +1 -1
- package/packages/notification/dist/adapters/line-adapter.d.ts.map +1 -1
- package/packages/notification/dist/adapters/line-adapter.js +3 -0
- package/packages/notification/dist/adapters/line-adapter.js.map +1 -1
- package/packages/notification/dist/adapters/ntfy-adapter.d.ts.map +1 -1
- package/packages/notification/dist/adapters/ntfy-adapter.js +3 -0
- package/packages/notification/dist/adapters/ntfy-adapter.js.map +1 -1
- package/packages/notification/dist/adapters/telegram-adapter.d.ts +0 -1
- package/packages/notification/dist/adapters/telegram-adapter.d.ts.map +1 -1
- package/packages/notification/dist/adapters/telegram-adapter.js +3 -3
- package/packages/notification/dist/adapters/telegram-adapter.js.map +1 -1
- package/packages/notification/dist/notification-center.d.ts.map +1 -1
- package/packages/notification/dist/notification-center.js +24 -0
- package/packages/notification/dist/notification-center.js.map +1 -1
- package/packages/notification/dist/notification-policy.d.ts.map +1 -1
- package/packages/notification/dist/notification-policy.js +3 -0
- package/packages/notification/dist/notification-policy.js.map +1 -1
- package/packages/notification/dist/types.d.ts +23 -1
- package/packages/notification/dist/types.d.ts.map +1 -1
- package/packages/notification/package.json +1 -1
- package/packages/notification/src/adapters/detail-format.ts +45 -2
- package/packages/notification/src/adapters/email-adapter.ts +3 -0
- package/packages/notification/src/adapters/line-adapter.ts +3 -0
- package/packages/notification/src/adapters/ntfy-adapter.ts +3 -0
- package/packages/notification/src/adapters/telegram-adapter.ts +3 -4
- package/packages/notification/src/notification-center.ts +28 -0
- package/packages/notification/src/notification-policy.ts +3 -0
- package/packages/notification/src/types.ts +25 -0
- package/packages/paperclip-integration/package.json +1 -1
- package/packages/performance-optimizer/package.json +1 -1
- package/packages/privilege-broker/package.json +1 -1
- package/packages/prompt-compiler/package.json +1 -1
- package/packages/providers/package.json +1 -1
- package/packages/qdrant-skills/package.json +1 -1
- package/packages/quota-manager/package.json +1 -1
- package/packages/relay/package.json +1 -1
- package/packages/skill-mcp-client/package.json +1 -1
- package/packages/skills/package.json +1 -1
- package/packages/todo-bd-sync/package.json +1 -1
- package/packages/token-estimation/package.json +1 -1
- package/packages/tooling-preference/package.json +1 -1
- package/packages/trajectory/package.json +1 -1
- package/packages/tui/package.json +1 -1
- package/packages/two-phase-review/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/webmcp-tester/package.json +1 -1
- package/packages/wiki/package.json +1 -1
- 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/two-phase-review",
|
|
3
|
-
"version": "1.1.
|
|
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",
|