@frockbot/kernel-agent-loop 0.3.11 → 0.3.12

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 (2) hide show
  1. package/package.json +5 -5
  2. package/src/index.ts +6 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frockbot/kernel-agent-loop",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
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.11",
15
+ "@frockbot/kernel-contracts": "0.3.12",
16
16
  "cordis": "4.0.0-rc.8"
17
17
  },
18
18
  "devDependencies": {
19
- "@frockbot/plugin-models": "0.3.11",
20
- "@frockbot/plugin-prompt": "0.3.11",
21
- "@frockbot/plugin-tools": "0.3.11",
19
+ "@frockbot/plugin-models": "0.3.12",
20
+ "@frockbot/plugin-prompt": "0.3.12",
21
+ "@frockbot/plugin-tools": "0.3.12",
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
@@ -22,6 +22,7 @@ import {
22
22
  type ToolCallOccurrence,
23
23
  type ToolExecutionResult,
24
24
  type TurnTypeV1,
25
+ TURN_DEADLINE_MS_V1,
25
26
  toolCallOccurrences,
26
27
  turnEndReason,
27
28
  validateSettledToolOccurrenceJournal,
@@ -112,12 +113,12 @@ class StepLimitReachedError extends Error {
112
113
  /**
113
114
  * The longest a single Turn may run before the loop stops waiting for it.
114
115
  *
115
- * Nothing bounded a Turn's wall clock before this: one hung for seventeen
116
- * minutes with an animated avatar and nothing else, and would have hung until
117
- * the isolate died. Fifteen minutes is well past any Turn a person is watching
118
- * and well inside the point at which they have concluded the product is broken.
116
+ * Defined in the contracts, because the loop is not its only reader: anything
117
+ * deciding whether a run still marked `running` can still be running needs the
118
+ * same number. Re-exported here because this is where every caller looks for
119
+ * it.
119
120
  */
120
- export const TURN_DEADLINE_MS_V1 = 15 * 60 * 1000;
121
+ export { TURN_DEADLINE_MS_V1 };
121
122
 
122
123
  /**
123
124
  * How many times one step will send its model request.