@sema-agent/server 1.265.0 → 1.267.0
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/http/server.d.ts +3 -0
- package/dist/http/server.d.ts.map +1 -1
- package/dist/http/server.js +22 -1
- package/dist/http/server.js.map +1 -1
- package/dist/main.js +4 -0
- package/dist/main.js.map +1 -1
- package/dist/parked-decide.d.ts +40 -0
- package/dist/parked-decide.d.ts.map +1 -0
- package/dist/parked-decide.js +143 -0
- package/dist/parked-decide.js.map +1 -0
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1162,6 +1162,7 @@ async function main() {
|
|
|
1162
1162
|
...(runnerDeps.onError ? { onError: runnerDeps.onError } : {}),
|
|
1163
1163
|
toolResultStore,
|
|
1164
1164
|
...(sessionPolicyStore ? { sessionPolicyStore } : {}),
|
|
1165
|
+
...(checkpointStore ? { checkpointStore } : {}),
|
|
1165
1166
|
});
|
|
1166
1167
|
const authorize = createAuthorizer(config, sessionStore);
|
|
1167
1168
|
const runStore = backend ? backend.run() : undefined;
|
|
@@ -1277,6 +1278,7 @@ async function main() {
|
|
|
1277
1278
|
: {}),
|
|
1278
1279
|
};
|
|
1279
1280
|
const scenarios = buildScenarios(scenarioDeps);
|
|
1281
|
+
const parkedReviveTool = checkpointStore && backgroundAgentStore ? scenarios.default?.({})?.tools.find((t) => t.name === "Agent") : undefined;
|
|
1280
1282
|
const scenarioDetails = builtinScenarioDetails(scenarios, scenarioDeps);
|
|
1281
1283
|
const builtinScenarioNames = Object.keys(scenarioDetails);
|
|
1282
1284
|
if (effective?.scenarios) {
|
|
@@ -1753,6 +1755,8 @@ async function main() {
|
|
|
1753
1755
|
: {}),
|
|
1754
1756
|
approvalStore,
|
|
1755
1757
|
checkpointStore,
|
|
1758
|
+
...(backgroundAgentStore ? { backgroundAgentStore } : {}),
|
|
1759
|
+
...(parkedReviveTool ? { parkedReviveTool } : {}),
|
|
1756
1760
|
imageIndex,
|
|
1757
1761
|
imageBakes,
|
|
1758
1762
|
leaderEndpoint,
|