@sema-agent/server 1.269.0 → 1.271.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 +1 -0
- package/dist/http/server.d.ts.map +1 -1
- package/dist/http/server.js +19 -7
- package/dist/http/server.js.map +1 -1
- package/dist/main.js +16 -0
- package/dist/main.js.map +1 -1
- package/dist/parked-decide.d.ts +1 -0
- package/dist/parked-decide.d.ts.map +1 -1
- package/dist/parked-decide.js +5 -1
- package/dist/parked-decide.js.map +1 -1
- package/dist/plugins/fork-routing-session-store.d.ts +1 -0
- package/dist/plugins/fork-routing-session-store.d.ts.map +1 -1
- package/dist/plugins/fork-routing-session-store.js +19 -6
- package/dist/plugins/fork-routing-session-store.js.map +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1280,6 +1280,22 @@ async function main() {
|
|
|
1280
1280
|
};
|
|
1281
1281
|
const scenarios = buildScenarios(scenarioDeps);
|
|
1282
1282
|
const parkedReviveTool = checkpointStore && backgroundAgentStore ? scenarios.default?.({})?.tools.find((t) => t.name === "Agent") : undefined;
|
|
1283
|
+
const parkedReviveInheritedGate = parkedReviveTool && config.durableApproval
|
|
1284
|
+
? (row) => ({
|
|
1285
|
+
parentConstraints: [{
|
|
1286
|
+
policy: combinePolicies(createDurableQuestionPolicy(), createDurableAskPolicy({
|
|
1287
|
+
requireApproval: config.approvalRequire, deny: config.approvalDeny, autoBudget: config.approvalAutoBudget, neverAuto: config.approvalNeverAuto,
|
|
1288
|
+
...(approvalExemptionStore && row.rootSessionId
|
|
1289
|
+
? {
|
|
1290
|
+
exempt: (toolName) => approvalExemptionStore.has(row.rootSessionId, toolName),
|
|
1291
|
+
onExempted: (toolName, rawToolName) => logger.info("approval_exempted", { sessionId: row.rootSessionId, toolName, rawToolName, leg: "parked_revive" }),
|
|
1292
|
+
}
|
|
1293
|
+
: {}),
|
|
1294
|
+
})),
|
|
1295
|
+
durableMandate: true,
|
|
1296
|
+
}],
|
|
1297
|
+
})
|
|
1298
|
+
: undefined;
|
|
1283
1299
|
const scenarioDetails = builtinScenarioDetails(scenarios, scenarioDeps);
|
|
1284
1300
|
const builtinScenarioNames = Object.keys(scenarioDetails);
|
|
1285
1301
|
if (effective?.scenarios) {
|