@sema-agent/server 7.94.0 → 7.95.1
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/USAGE.md +52 -0
- package/dist/boot/resolve-spec.js +14 -1
- package/dist/boot/stage-09-leader.js +1 -1
- package/dist/config-catalog.js +5 -3
- package/dist/config-center/types.d.ts +1 -1
- package/dist/config-invariants.d.ts +2 -2
- package/dist/config-invariants.js +17 -0
- package/dist/config-types.d.ts +44 -3
- package/dist/config-types.js +1 -0
- package/dist/config.js +24 -4
- package/dist/hosted-posture.d.ts +176 -0
- package/dist/hosted-posture.js +76 -0
- package/dist/http/resume-ctx-read.d.ts +7 -1
- package/dist/http/resume-ctx-read.js +3 -3
- package/dist/http/resume-legs.js +38 -28
- package/dist/http/routes/capabilities.js +3 -0
- package/dist/http/wire-types.d.ts +13 -4
- package/dist/plugins/approval-ask-store-sql.js +1 -1
- package/dist/plugins/background-agent-store-sql.js +2 -2
- package/dist/plugins/checkpoint-store-sql.js +1 -1
- package/dist/plugins/device-store-sql.js +1 -1
- package/dist/plugins/image-bake-store-sql.js +1 -1
- package/dist/plugins/image-index-sql.js +1 -1
- package/dist/plugins/leader-run-store-sql.js +1 -1
- package/dist/plugins/local-checkpoint-store.js +10 -2
- package/dist/plugins/mailbox-store-sql.js +5 -3
- package/dist/plugins/memory-engine-pg.js +1 -1
- package/dist/plugins/memory-engine-tidb.js +1 -1
- package/dist/plugins/memory-sync-store-pg.js +1 -1
- package/dist/plugins/permission-rule-store-sql.js +2 -2
- package/dist/plugins/run-store-sql.js +1 -1
- package/dist/plugins/session-event-payload.js +1 -1
- package/dist/plugins/session-policy-store-sql.js +4 -2
- package/dist/plugins/sql-json-column.d.ts +52 -7
- package/dist/plugins/sql-json-column.js +14 -3
- package/dist/plugins/task-list-store-sql.js +1 -1
- package/dist/plugins/usage-window-store-sql.js +1 -1
- package/dist/plugins/workflow-journal-store-sql.js +1 -1
- package/dist/plugins/workflow-run-store-sql.js +1 -1
- package/dist/run-local.js +2 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ function decodeJournalResult(cell, where) {
|
|
|
9
9
|
return decodeJsonColumn(cell, readJournalRowBody, where);
|
|
10
10
|
}
|
|
11
11
|
catch (e) {
|
|
12
|
-
throw foldJsonColumn(e, (m) =>
|
|
12
|
+
throw foldJsonColumn(e, (m) => `workflow journal: ${m} — refusing rather than replay a journal entry nobody can read`);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
export class SqlWorkflowJournalStore {
|
|
@@ -46,7 +46,7 @@ function readRunColumn(v, id) {
|
|
|
46
46
|
return decodeJsonColumn(v, readWorkflowRunBody, `workflow_run.run for run ${id}`);
|
|
47
47
|
}
|
|
48
48
|
catch (e) {
|
|
49
|
-
throw foldJsonColumn(e, (m) =>
|
|
49
|
+
throw foldJsonColumn(e, (m) => `SqlWorkflowRunStore: ${m} — refusing rather than resume a hollow run`);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
export class SqlWorkflowRunStore {
|
package/dist/run-local.js
CHANGED
|
@@ -18,6 +18,7 @@ import { taskWallClockSec } from "./task-workflow.js";
|
|
|
18
18
|
import { applyCatalogToSource } from "./capabilities/center-prompts.js";
|
|
19
19
|
import { validatePromptsDomain, CORE_ENGINE_VERSION } from "./prompts-domain-validate.js";
|
|
20
20
|
import { buildUnpricedCeilingNotice, loadConfig, logConfigDiagnostics, parseNumOrFailNonNegative } from "./config.js";
|
|
21
|
+
import { clearHostedEvidenceEnv } from "./hosted-posture.js";
|
|
21
22
|
import { buildStoreOpenRefusalTail } from "./plugins/store-open-refusal.js";
|
|
22
23
|
import { acquireLocalBackendWithWait } from "./plugins/store-lock-wait.js";
|
|
23
24
|
import { createConfigProvider } from "./config-provider.js";
|
|
@@ -176,6 +177,7 @@ export async function runLocal(argv, deps = {}) {
|
|
|
176
177
|
process.env.CONFIG_PROVIDER = "local";
|
|
177
178
|
process.env.SESSION_BACKEND = "memory";
|
|
178
179
|
process.env.REQUIRE_PRINCIPAL = "false";
|
|
180
|
+
clearHostedEvidenceEnv();
|
|
179
181
|
const root = args.root ?? process.env.CONFIG_LOCAL_DIR ?? process.env.AGENT_DATA_DIR ?? join(homedir(), ".ai-agent");
|
|
180
182
|
if (args.root)
|
|
181
183
|
process.env.CONFIG_LOCAL_DIR = args.root;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sema-agent/server",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.95.1",
|
|
4
4
|
"description": "Sema Server — the server/API implementation layer for Sema, wiring core, registry, model providers, and cloud agent execution. Built on @sema-agent/core.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "BUSL-1.1",
|