@frockbot/kernel-agent-loop 0.3.20 → 0.3.22
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 +5 -5
- package/src/index.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frockbot/kernel-agent-loop",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.22",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@frockbot/kernel-contracts": "0.3.
|
|
15
|
+
"@frockbot/kernel-contracts": "0.3.22",
|
|
16
16
|
"cordis": "4.0.0-rc.8"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@frockbot/plugin-models": "0.3.
|
|
20
|
-
"@frockbot/plugin-prompt": "0.3.
|
|
21
|
-
"@frockbot/plugin-tools": "0.3.
|
|
19
|
+
"@frockbot/plugin-models": "0.3.22",
|
|
20
|
+
"@frockbot/plugin-prompt": "0.3.22",
|
|
21
|
+
"@frockbot/plugin-tools": "0.3.22",
|
|
22
22
|
"@types/bun": "1.4.0",
|
|
23
23
|
"@types/node": "26.2.0",
|
|
24
24
|
"typescript": "^7.0.2"
|
package/src/index.ts
CHANGED
|
@@ -1046,6 +1046,9 @@ class LoopAgent implements Agent {
|
|
|
1046
1046
|
// Where the Turn is in its budget, so a section can warn the model
|
|
1047
1047
|
// before the loop stops it.
|
|
1048
1048
|
step: { current: step, max: this.#maxSteps },
|
|
1049
|
+
// The same loop clock that armed the deadline. Prompt policy receives
|
|
1050
|
+
// the deadline as data; the kernel retains ownership of the timer.
|
|
1051
|
+
deadline: { at: this.#turnDeadlineAt, now: this.#retry.now() },
|
|
1049
1052
|
});
|
|
1050
1053
|
|
|
1051
1054
|
// One automatic retry, and only for a failure the provider itself
|