@sema-agent/server 7.53.0 → 7.54.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/USAGE.md +5 -0
- package/dist/boot/config-center.js +2 -2
- package/dist/boot/leader.js +2 -0
- package/dist/boot/resolve-spec.js +1 -3
- package/dist/boot/runner-deps.d.ts +20 -0
- package/dist/boot/runner-deps.js +14 -8
- package/dist/boot/shutdown.js +1 -1
- package/dist/capabilities/team.d.ts +10 -9
- package/dist/config-center/apply-effective.d.ts +25 -26
- package/dist/config-center/apply-effective.js +28 -66
- package/dist/config-center/effective-keys.d.ts +30 -0
- package/dist/config-center/effective-keys.js +49 -0
- package/dist/config-center/facade.d.ts +3 -3
- package/dist/config-center/facade.js +1 -1
- package/dist/config-center/restart-signal.js +3 -9
- package/dist/config-center/types.d.ts +19 -40
- package/dist/config-lkg.js +7 -1
- package/dist/config-provider.js +1 -1
- package/dist/device-enrollment.d.ts +5 -3
- package/dist/device-store.d.ts +15 -1
- package/dist/device-store.js +2 -0
- package/dist/device-ws-hub.d.ts +7 -2
- package/dist/device-ws-hub.js +25 -5
- package/dist/http/server.js +19 -0
- package/dist/http/wire-types.d.ts +19 -0
- package/dist/leader/wire.d.ts +12 -0
- package/dist/leader/wire.js +6 -5
- package/dist/observability/fail-open.d.ts +16 -0
- package/dist/observability/fail-open.js +16 -0
- package/dist/plugins/pg-pool.d.ts +29 -2
- package/dist/plugins/pg-pool.js +45 -2
- package/dist/plugins/remote-env-device.d.ts +4 -2
- package/dist/plugins/remote-env-device.js +4 -1
- package/dist/plugins/roster-store-sql.d.ts +1 -3
- package/dist/plugins/store-backend.js +1 -1
- package/dist/plugins/tidb-pool.d.ts +13 -0
- package/dist/runtime-governance.d.ts +4 -0
- package/dist/runtime-governance.js +23 -1
- package/dist/tool-approval.d.ts +21 -28
- package/dist/tool-approval.js +220 -98
- package/dist/trace/engine-notice-wire.d.ts +1 -1
- package/dist/trace/engine-notice-wire.js +2 -0
- package/dist/trace/injection-tier.d.ts +11 -21
- package/dist/trace/injection-tier.js +3 -4
- package/dist/trace/project.d.ts +1 -0
- package/dist/trace/project.js +1 -0
- package/package.json +3 -3
|
@@ -13,6 +13,8 @@ export const ENGINE_NOTICE_WIRE_CODES = [
|
|
|
13
13
|
"task.user_followup_undrained",
|
|
14
14
|
"memory.capture_opted_out",
|
|
15
15
|
"memory.capture_optout_unpersisted",
|
|
16
|
+
"task.halt_unconsumed",
|
|
17
|
+
"task.late_approval",
|
|
16
18
|
];
|
|
17
19
|
const WIRE_CODES = new Set(ENGINE_NOTICE_WIRE_CODES);
|
|
18
20
|
export function isEngineNoticeWireCode(code) {
|
|
@@ -1,27 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [ref] 注入档位(core 5.61.0)的**闭集单点**([ref])
|
|
2
|
+
* [ref] 注入档位(core 5.61.0)的**闭集单点**([ref])——2026-08-31 起改为 **core 根导出直调**。
|
|
3
3
|
*
|
|
4
|
-
* ##
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* · `satisfies` 管「表内不许有词表外的词」—— core 删/改档位 ⇒ 编译红;
|
|
12
|
-
* · 穷举断言管「词表不许有表外的词」—— core 加档位 ⇒ 编译红。
|
|
13
|
-
* 两条合起来 = 上游任何一侧的增删都在编译期被逼着处置,而不是运行时静默漂。
|
|
14
|
-
*
|
|
15
|
-
* ## 为什么单独一个叶子模块
|
|
16
|
-
* 消费点有两个且分属两条依赖链:`trace/project.ts`(wire 投影)与
|
|
17
|
-
* `orchestration/workflow-completion-inbox.ts`(durable park 载荷)。手抄两份就是值拷贝漂移源
|
|
18
|
-
* (本仓 [ref] 起的老病族);把它挂在任一方又会在两条链之间拉一条没必要的边。零依赖叶子最干净。
|
|
19
|
-
*
|
|
20
|
-
* 🔴 上游哪天补了根导出:删掉本文件,两处改成一行谓词调用。
|
|
4
|
+
* ## 收口条款兑现([ref] PM 审计④「core 前提句过期族」)
|
|
5
|
+
* 本文件 5.61 时代的顶注写着「core 没有把 `SYSTEM_INJECTION_PRIORITIES` / `isSystemInjectionPriority`
|
|
6
|
+
* 放进根 barrel ⇒ 本仓自留双向锚词表;上游哪天补了根导出:删掉本文件,两处改成一行谓词调用」。
|
|
7
|
+
* core 7.0.2 已把**表和谓词都放进根导出**(运行期亲证:`SYSTEM_INJECTION_PRIORITIES` 数组 +
|
|
8
|
+
* `isSystemInjectionPriority` 函数均可 require 到)——按条款执行:自留词表退役,改直调;本文件保留为
|
|
9
|
+
* 两个消费点(`trace/project.ts` / `orchestration/workflow-completion-inbox.ts`)的公共缝(语义注 +
|
|
10
|
+
* `injectionTierOrAbsent` 的丢键方向条款仍是本仓资产,不随词表走)。
|
|
21
11
|
*/
|
|
22
|
-
import type
|
|
23
|
-
/**
|
|
24
|
-
export declare const INJECTION_TIERS: readonly [
|
|
12
|
+
import { type SystemInjectionPriority } from "@sema-agent/core";
|
|
13
|
+
/** 三档闭集 —— 现在就是 core 的那份表(单源;保留导出名,两个消费点与既有测试不动)。 */
|
|
14
|
+
export declare const INJECTION_TIERS: readonly SystemInjectionPriority[];
|
|
25
15
|
/**
|
|
26
16
|
* 边界守卫 —— 闭集内的值原样返回,**其余一律 `undefined`**(= 缺席)。
|
|
27
17
|
*
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
void _injectionTierExhaustive;
|
|
1
|
+
import { isSystemInjectionPriority, SYSTEM_INJECTION_PRIORITIES } from "@sema-agent/core";
|
|
2
|
+
export const INJECTION_TIERS = SYSTEM_INJECTION_PRIORITIES;
|
|
4
3
|
export function injectionTierOrAbsent(value) {
|
|
5
|
-
return
|
|
4
|
+
return isSystemInjectionPriority(value) ? value : undefined;
|
|
6
5
|
}
|
|
7
6
|
//# sourceMappingURL=injection-tier.js.map
|
package/dist/trace/project.d.ts
CHANGED
package/dist/trace/project.js
CHANGED
|
@@ -305,6 +305,7 @@ export function brainStatusEventData(ev) {
|
|
|
305
305
|
...(num(ev.maxRetries) ? { maxRetries: ev.maxRetries } : {}),
|
|
306
306
|
...(num(ev.retryInMs) ? { retryInMs: ev.retryInMs } : {}),
|
|
307
307
|
...(num(ev.retryAtMs) ? { retryAtMs: ev.retryAtMs } : {}),
|
|
308
|
+
...(num(ev.errorStatus) ? { errorStatus: ev.errorStatus } : {}),
|
|
308
309
|
...(typeof ev.errClass === "string" && ev.errClass.length > 0 ? { errClass: ev.errClass } : {}),
|
|
309
310
|
...identityFields(ev),
|
|
310
311
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sema-agent/server",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.54.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",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"build:binary:run-local:darwin-arm64": "bun build --compile --target=bun-darwin-arm64 src/run-local.ts --outfile dist/run-local-darwin-arm64"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@sema-agent/core": "7.0
|
|
57
|
+
"@sema-agent/core": "7.1.0",
|
|
58
58
|
"@sema-agent/settings-schema": "1.3.0",
|
|
59
59
|
"e2b": "^2.28.0",
|
|
60
60
|
"libsodium-wrappers": "^0.8.4",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"sharp": "^0.35.3"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@sema-agent/sdk": "7.
|
|
72
|
+
"@sema-agent/sdk": "7.4.0",
|
|
73
73
|
"@types/libsodium-wrappers": "^0.7.14",
|
|
74
74
|
"@types/node": "22.10.2",
|
|
75
75
|
"@types/pg": "^8.20.0",
|