@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/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.listReapScopes?.() ?? Promise.resolve(["default"]));
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,