@principles/host-runtime 3.0.0 → 3.0.1
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.
|
@@ -102,7 +102,14 @@ export async function runStage2CorrectionCycle(input) {
|
|
|
102
102
|
skipped += 1;
|
|
103
103
|
continue;
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
// AbortSignal.timeout (pi-ai-runtime-adapter startRun) rejects
|
|
106
|
+
// fractional delays with ERR_OUT_OF_RANGE, and `remaining` is a
|
|
107
|
+
// performance.now() float — under the default 60s budget it is
|
|
108
|
+
// virtually always fractional, which made every classification fail
|
|
109
|
+
// before any network I/O (PRI-1147 real-LLM BDD, ERR-PRI-1147-D1).
|
|
110
|
+
// Clamp to whole milliseconds so the remaining budget reaches the
|
|
111
|
+
// adapter request itself instead of throwing.
|
|
112
|
+
const timeoutMs = Math.max(1, Math.floor(Math.min(classificationTimeoutMs, remaining)));
|
|
106
113
|
// The remaining budget goes INTO the adapter request as well as the
|
|
107
114
|
// outer race (v0.3.1 §2.2); an outer timeout does not cancel a
|
|
108
115
|
// provider request that the adapter does not support cancelling.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/host-runtime",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Shared host-neutral orchestration for Principles Disciple MVP-Core hook paths.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"url": "git+https://github.com/csuzngjh/principles.git"
|
|
50
50
|
},
|
|
51
51
|
"license": "Apache-2.0",
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "705ceabbd4dc02c8fcb19cbca3d7a4493d760652"
|
|
53
53
|
}
|