pi-better-background-tasks 0.21.5 → 0.21.7
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/package.json +1 -1
- package/runtime-client/artifacts/darwin-arm64.gz +0 -0
- package/runtime-client/artifacts/darwin-arm64.json +1 -1
- package/runtime-client/artifacts/darwin-x64.gz +0 -0
- package/runtime-client/artifacts/darwin-x64.json +1 -1
- package/runtime-client/artifacts/linux-arm64.gz +0 -0
- package/runtime-client/artifacts/linux-arm64.json +1 -1
- package/runtime-client/artifacts/linux-x64.gz +0 -0
- package/runtime-client/artifacts/linux-x64.json +1 -1
- package/runtime-client/src/runtime/work-client.mjs +4 -2
- package/src/shared-navigator.ts +1 -1
- package/src/shared-work-client.mjs +4 -2
package/package.json
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"468622110981d6fc9f81e1d90cdd94020cf2bb9f30fe5c233e4d6e33c45f3777","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-arm64","dependencyLockDigest":"6becccc0aa89805268794027bb9d0927ceab5ca05bee26a346d0d32e568968de","protocolVersion":1,"serverVersion":"0.9.0","contentId":"6820e2d7b407f67a1486f067100f5b6b6242048ce90a8c9f60f4c31491089f1b"},"sha256":"6671dc91a7d8c7e0190483496ef7f559e87ab9bfd8718ebefd3551e912e210ed"}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"468622110981d6fc9f81e1d90cdd94020cf2bb9f30fe5c233e4d6e33c45f3777","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-x64","dependencyLockDigest":"6becccc0aa89805268794027bb9d0927ceab5ca05bee26a346d0d32e568968de","protocolVersion":1,"serverVersion":"0.9.0","contentId":"90ae2971fd5ce0a78585ec86680bfbe05a1af56b61a94a0131e08bc4c4035920"},"sha256":"5285ecf21f787e558fb6a90eebfcf89ef7e1460a87fa3b50b7f69e53a8246a75"}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"468622110981d6fc9f81e1d90cdd94020cf2bb9f30fe5c233e4d6e33c45f3777","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-arm64","dependencyLockDigest":"6becccc0aa89805268794027bb9d0927ceab5ca05bee26a346d0d32e568968de","protocolVersion":1,"serverVersion":"0.9.0","contentId":"eddb022db9b1e5fafeee6e2ad4966b2ee64a5cf78a46b687a36d2e81e689614c"},"sha256":"1361084e550334019591f4919ddfccf7ca51c6277b630de461a95af5e267f367"}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"468622110981d6fc9f81e1d90cdd94020cf2bb9f30fe5c233e4d6e33c45f3777","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-x64","dependencyLockDigest":"6becccc0aa89805268794027bb9d0927ceab5ca05bee26a346d0d32e568968de","protocolVersion":1,"serverVersion":"0.9.0","contentId":"2f9ea1309a479fd2cedb352787f532e0800d16238bb01d749340e65c8b92f366"},"sha256":"ffd2042a919971a9bb8fc670d8d282ea21ad7c18a09996da913e0420a9e0f997"}
|
|
@@ -78,12 +78,14 @@ export class WorkClient {
|
|
|
78
78
|
if (trace) this.lastSubscriptionTrace = trace;
|
|
79
79
|
const id = trace?.id ?? `work-${++this.sequence}`;
|
|
80
80
|
return new Promise((resolve, reject) => {
|
|
81
|
-
|
|
81
|
+
// The host rechecks the caller's grant between workers and replies after batch admission.
|
|
82
|
+
const launch = type === "runtime_launch_subagent";
|
|
83
|
+
const rejectPending = launch ? error => reject(unknownLaunchReceipt(error)) : reject;
|
|
82
84
|
const timer = setTimeout(() => {
|
|
83
85
|
this.pending.delete(id);
|
|
84
86
|
if (trace) trace.timedOutAt = Date.now();
|
|
85
87
|
rejectPending(new Error(`runtime-unhealthy: ${type} timed out${trace ? ` (${trace.id})` : ""}`));
|
|
86
|
-
}, 5000);
|
|
88
|
+
}, launch ? 120_000 : 5000);
|
|
87
89
|
this.pending.set(id, { resolve: value => {
|
|
88
90
|
if (trace) trace.receivedAt = Date.now();
|
|
89
91
|
// Apply subscription receipts in wire order, including events in the same socket chunk.
|
package/src/shared-navigator.ts
CHANGED
|
@@ -808,7 +808,7 @@ function statusGlyph(row: InternalRow): string {
|
|
|
808
808
|
function statusIndicator(row: InternalRow, now = Date.now()): { glyph: string; color: string } {
|
|
809
809
|
void now;
|
|
810
810
|
if (row.statusTone !== "running") return { glyph: statusGlyph(row), color: toneColor(row.statusTone, row.status) };
|
|
811
|
-
const glyph = row.treeDepth === 1 && row.providerId === "background-tasks" ? ">
|
|
811
|
+
const glyph = row.treeDepth === 1 && row.providerId === "background-tasks" ? ">" : RUNNING_DOT_GLYPH;
|
|
812
812
|
return { glyph, color: "accent" };
|
|
813
813
|
}
|
|
814
814
|
|
|
@@ -78,12 +78,14 @@ export class WorkClient {
|
|
|
78
78
|
if (trace) this.lastSubscriptionTrace = trace;
|
|
79
79
|
const id = trace?.id ?? `work-${++this.sequence}`;
|
|
80
80
|
return new Promise((resolve, reject) => {
|
|
81
|
-
|
|
81
|
+
// The host rechecks the caller's grant between workers and replies after batch admission.
|
|
82
|
+
const launch = type === "runtime_launch_subagent";
|
|
83
|
+
const rejectPending = launch ? error => reject(unknownLaunchReceipt(error)) : reject;
|
|
82
84
|
const timer = setTimeout(() => {
|
|
83
85
|
this.pending.delete(id);
|
|
84
86
|
if (trace) trace.timedOutAt = Date.now();
|
|
85
87
|
rejectPending(new Error(`runtime-unhealthy: ${type} timed out${trace ? ` (${trace.id})` : ""}`));
|
|
86
|
-
}, 5000);
|
|
88
|
+
}, launch ? 120_000 : 5000);
|
|
87
89
|
this.pending.set(id, { resolve: value => {
|
|
88
90
|
if (trace) trace.receivedAt = Date.now();
|
|
89
91
|
// Apply subscription receipts in wire order, including events in the same socket chunk.
|