@sema-agent/server 1.249.0 → 1.250.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/fleet/fleet-bus.d.ts +2 -0
- package/dist/fleet/fleet-bus.d.ts.map +1 -1
- package/dist/fleet/fleet-bus.js +9 -3
- package/dist/fleet/fleet-bus.js.map +1 -1
- package/dist/http/server.d.ts.map +1 -1
- package/dist/http/server.js +14 -4
- package/dist/http/server.js.map +1 -1
- package/dist/main.js +4 -7
- package/dist/main.js.map +1 -1
- package/dist/plugins/background-agent-store-sql.d.ts +2 -2
- package/dist/plugins/background-agent-store-sql.d.ts.map +1 -1
- package/dist/plugins/background-agent-store-sql.js +21 -12
- package/dist/plugins/background-agent-store-sql.js.map +1 -1
- package/dist/plugins/pg-workflow-run-store.d.ts +1 -0
- package/dist/plugins/pg-workflow-run-store.d.ts.map +1 -1
- package/dist/plugins/pg-workflow-run-store.js +4 -0
- package/dist/plugins/pg-workflow-run-store.js.map +1 -1
- package/dist/plugins/roster-store-sql.d.ts.map +1 -1
- package/dist/plugins/roster-store-sql.js +14 -5
- package/dist/plugins/roster-store-sql.js.map +1 -1
- package/dist/plugins/tidb-workflow-run-store.d.ts +1 -0
- package/dist/plugins/tidb-workflow-run-store.d.ts.map +1 -1
- package/dist/plugins/tidb-workflow-run-store.js +4 -0
- package/dist/plugins/tidb-workflow-run-store.js.map +1 -1
- package/dist/runs.d.ts +3 -3
- package/dist/runs.d.ts.map +1 -1
- package/dist/runs.js +10 -3
- package/dist/runs.js.map +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -530,9 +530,6 @@ async function main() {
|
|
|
530
530
|
}
|
|
531
531
|
else if (backend?.kind === "local") {
|
|
532
532
|
backgroundAgentStore = new FileBackgroundAgentStore(config.localDataRoot ?? localRoot);
|
|
533
|
-
if (config.requirePrincipal === true) {
|
|
534
|
-
logger.warn("background_agent_store_local_multitenant", { note: "file-store reap only sweeps scope 'default'; principal-scoped durable rows are never reaped on the local backend (scope enumeration = core ask)" });
|
|
535
|
-
}
|
|
536
533
|
}
|
|
537
534
|
if (backgroundAgentStore)
|
|
538
535
|
logger.info("background_agent_store_enabled", { backend: pgPool ? "pg" : mysqlPool ? "tidb" : "file" });
|
|
@@ -1258,7 +1255,7 @@ async function main() {
|
|
|
1258
1255
|
const reapBgAgents = backgroundAgentStore
|
|
1259
1256
|
? async () => {
|
|
1260
1257
|
const store = backgroundAgentStore;
|
|
1261
|
-
const scopes = await (store.
|
|
1258
|
+
const scopes = await (store.listScopes?.() ?? Promise.resolve(["default"]));
|
|
1262
1259
|
let rows = 0, sessions = 0, skipped = 0;
|
|
1263
1260
|
for (const scope of scopes) {
|
|
1264
1261
|
const r = await defaultTaskRegistry.reapDurableAgents(scope, { store, sessions: subRunner.sessions }, {
|
|
@@ -1699,9 +1696,9 @@ async function main() {
|
|
|
1699
1696
|
...(workflowJournalStore ? { workflowJournalStore } : {}),
|
|
1700
1697
|
...(workflowAgentRegistry ? { workflowAgentRegistry } : {}),
|
|
1701
1698
|
subagentSteerRegistry,
|
|
1702
|
-
subagentTaskOutput: (handle, access) => backgroundAgentOutput(defaultTaskRegistry, handle, access),
|
|
1703
|
-
taskHandleOutput: (handle, access) => taskHandleOutput(defaultTaskRegistry, handle, access),
|
|
1704
|
-
taskHandleStop: (handle, access) => taskHandleStop(defaultTaskRegistry, handle, access),
|
|
1699
|
+
subagentTaskOutput: (handle, access) => backgroundAgentOutput(defaultTaskRegistry, handle, access, backgroundAgentStore),
|
|
1700
|
+
taskHandleOutput: (handle, access) => taskHandleOutput(defaultTaskRegistry, handle, access, backgroundAgentStore),
|
|
1701
|
+
taskHandleStop: (handle, access) => taskHandleStop(defaultTaskRegistry, handle, access, backgroundAgentStore),
|
|
1705
1702
|
...(workflowCompletionInbox ? { workflowCompletionInbox } : {}),
|
|
1706
1703
|
sessionAudit,
|
|
1707
1704
|
sessionStorage: ownerAware,
|