@saturn-universe/runtime 0.1.2-dev.8 → 0.1.2-dev.9
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/dist/agent-loop.js +1 -1
- package/dist/compaction.d.ts +2 -13
- package/dist/compaction.js +1 -0
- package/package.json +2 -2
package/dist/agent-loop.js
CHANGED
|
@@ -324,7 +324,7 @@ export function createAgentLoop(d) {
|
|
|
324
324
|
}
|
|
325
325
|
async function planRequest(input, signal, route, config, attempts, deadlineAt, limitWallTimeMs, reservedTokens, hooks, previousWireRequest) {
|
|
326
326
|
const last = attempts.at(-1);
|
|
327
|
-
const autoCompactOpts = resolveAutoCompactionOptions(d.autoCompaction);
|
|
327
|
+
const autoCompactOpts = resolveAutoCompactionOptions(config.compaction ?? d.autoCompaction);
|
|
328
328
|
const maxOverflowCompactionRecoveries = 2;
|
|
329
329
|
let request;
|
|
330
330
|
try {
|
package/dist/compaction.d.ts
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import type { AgentExecutionScope, CommandId, ExecutionEnvironmentReader, Hash, HostCommand, LoggerPort, ModelGateway, RunConfig, RuntimeJournal, RuntimeStateReader, SurfaceCompactionReceipt, SurfaceItem, SurfaceReader, SurfaceUnit, TurnId } from '@saturn-universe/core';
|
|
1
|
+
import type { AgentExecutionScope, AutoCompactionOptions, CommandId, ExecutionEnvironmentReader, Hash, HostCommand, LoggerPort, ModelGateway, RunConfig, RuntimeJournal, RuntimeStateReader, SurfaceCompactionReceipt, SurfaceItem, SurfaceReader, SurfaceUnit, TurnId } from '@saturn-universe/core';
|
|
2
2
|
import type { CommandDependencies } from './command-dependencies.js';
|
|
3
|
-
export
|
|
4
|
-
readonly enabled?: boolean;
|
|
5
|
-
readonly thresholdRatio?: number;
|
|
6
|
-
readonly maxHeadroomTokens?: number;
|
|
7
|
-
readonly headroomRatio?: number;
|
|
8
|
-
readonly minRecentSteps?: number;
|
|
9
|
-
readonly tailWindowRatio?: number;
|
|
10
|
-
readonly preflightWindowRatio?: number;
|
|
11
|
-
readonly maxHalvings?: number;
|
|
12
|
-
readonly minPrefixChars?: number;
|
|
13
|
-
readonly summaryTimeoutMs?: number;
|
|
14
|
-
}
|
|
3
|
+
export type { AutoCompactionOptions } from '@saturn-universe/core';
|
|
15
4
|
export interface PreflightSummaryPlan {
|
|
16
5
|
readonly units: readonly SurfaceUnit[];
|
|
17
6
|
readonly items: readonly SurfaceItem[];
|
package/dist/compaction.js
CHANGED
|
@@ -392,6 +392,7 @@ export async function compactSurface(d, commandId, command) {
|
|
|
392
392
|
config,
|
|
393
393
|
units: targetUnits,
|
|
394
394
|
signal: controller.signal,
|
|
395
|
+
...(config.compaction ? { options: config.compaction } : {}),
|
|
395
396
|
});
|
|
396
397
|
if (!generated.ok) {
|
|
397
398
|
throw new RuntimeError('COMPACTION_FAILED', `Automatic compaction skipped: ${generated.reason}`);
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saturn-universe/runtime",
|
|
3
|
-
"version": "0.1.2-dev.
|
|
3
|
+
"version": "0.1.2-dev.9",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@saturn-universe/core": "0.1.2-dev.
|
|
10
|
+
"@saturn-universe/core": "0.1.2-dev.9"
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|