@sema-agent/server 1.258.0 → 1.259.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.
@@ -0,0 +1,15 @@
1
+ import type { TaskNotificationPayload, BackgroundChildEvent, RosterEntry, AskRequest } from "@sema-agent/core";
2
+ type AssertAllKeysHandled<T extends never> = T;
3
+ type NotificationProjected = "task_id" | "task_type" | "toolUseId" | "status" | "summary" | "result" | "output_file" | "usage" | "sessionId" | "seq" | "lines" | "stoppedBy" | "source" | "exitCode" | "partial" | "diagnostics" | "recentSteps" | "editedFiles" | "resumable";
4
+ type _GuardNotification = AssertAllKeysHandled<Exclude<keyof TaskNotificationPayload, NotificationProjected>>;
5
+ type BgNotifProjected = "taskId" | "sessionId" | "seq" | "status" | "summary" | "stoppedBy" | "resumable" | "recentSteps" | "editedFiles" | "usage" | "transcriptId" | "rootSessionId" | "parentTaskId";
6
+ type BgNotifExcluded = "kind" | "sessionScoped" | "owner" | "scope" | "description" | "agentType" | "name" | "currentAction" | "parentSessionId" | "startedAt" | "workflowRunId" | "progressTaskId" | "progressParentTaskId";
7
+ type _GuardBgNotif = AssertAllKeysHandled<Exclude<keyof BackgroundChildEvent, BgNotifProjected | BgNotifExcluded>>;
8
+ type RosterProjected = "name" | "agentId" | "sessionId" | "toolUseId" | "owner" | "scope" | "sessionScoped" | "rootSessionId" | "model" | "createdAt";
9
+ type _GuardRoster = AssertAllKeysHandled<Exclude<keyof RosterEntry, RosterProjected>>;
10
+ type AskProjected = "toolName" | "args" | "message" | "sourceTaskId";
11
+ type AskExcluded = "toolCallId" | "preview" | "principal";
12
+ type _GuardAsk = AssertAllKeysHandled<Exclude<keyof AskRequest, AskProjected | AskExcluded>>;
13
+ export type CoreKeysetGuards = [_GuardNotification, _GuardBgNotif, _GuardRoster, _GuardAsk];
14
+ export {};
15
+ //# sourceMappingURL=core-keyset-guard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-keyset-guard.d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AG,oBAAoB,CAAC,OAAO,CAAC,MAAM,WAAW,EAAE,eAAe,CAAC,CAAC,CAAC;AAUtF,KAAK,YAAY,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,cAAc,CAAC;AACrE,KAAK,WAAW,GAAG,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;AAC1D,KAAK,SAAS,GAAG,oBAAoB,CAAC,OAAO,CAAC,MAAM,UAAU,EAAE,YAAY,GAAG,WAAW,CAAC,CAAC,CAAC;AAG7F,MAAM,MAAM,gBAAgB,GAAG,CAAC,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=core-keyset-guard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-keyset-guard.js","sourceRoot":"","sources":["../../src/trace/core-keyset-guard.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema-agent/server",
3
- "version": "1.258.0",
3
+ "version": "1.259.0",
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",
@@ -46,7 +46,7 @@
46
46
  "build:binary:run-local:darwin-arm64": "bun build --compile --target=bun-darwin-arm64 src/run-local.ts --outfile dist/run-local-darwin-arm64"
47
47
  },
48
48
  "dependencies": {
49
- "@sema-agent/core": "^1.376.0",
49
+ "@sema-agent/core": "^1.377.0",
50
50
  "@sema-agent/registry-core": "^0.10.21",
51
51
  "e2b": "^2.28.0",
52
52
  "libsodium-wrappers": "^0.8.4",