@sema-agent/settings-schema 20.0.0 → 21.0.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/CHANGELOG.md +65 -0
- package/conformance/VERSION +1 -1
- package/dist/retired-envs.js +2 -0
- package/llms-full.txt +1 -1
- package/llms.txt +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,71 @@
|
|
|
8
8
|
|
|
9
9
|
## Unreleased
|
|
10
10
|
|
|
11
|
+
## 21.0.0 — 2026-11-06 — major:墓碑表 `RETIRED_ENVS` 加 `LSP_ENABLED`(`removed` 族;设了即拒,写闸收紧;出路 = 撤掉它,host 车道的开关是 `LSP_HOST_ENABLED`)
|
|
12
|
+
|
|
13
|
+
### `LSP_ENABLED` 进墓碑表(`removed` 族)
|
|
14
|
+
|
|
15
|
+
- **`RETIRED_ENVS` 加一行**:`["LSP_ENABLED", "the sandbox-lane LSP bridge was removed (e2b / k8s lanes mount no LSP); unset it — the host lane's switch is LSP_HOST_ENABLED", "removed"]`。
|
|
16
|
+
`removed` 族 = 能力本身没了、没有可 rename 的目标:沙箱车道(e2b / k8s)的 LSP 桥整只删除,这两条车道不挂 LSP,`LSP_ENABLED` 这个旋钮随之没有替代名。
|
|
17
|
+
旧名在场即拒,真 / 假两个值一样(`LSP_ENABLED=false` 同拒,不再被任何车道当作关法);空串 = 未设,不拒。
|
|
18
|
+
- **三处读者随表走,零代码改动**:拒启句唯一铸点 `retiredEnvRefusal`(整句带码 `config.env_key_retired`,点名键、不回显值);目录 wire 的 `retired[]` 由 `buildRetiredEnvWire()` 同表派生多一行 `{ name: "LSP_ENABLED", kind: "removed", reason }`
|
|
19
|
+
(只带 `reason`,没有 `replacement`);worker 规格 `env` / `secretEnv` 的写闸同拒,拒句就是墓碑句本身。`LSP_ENABLED` 不是保留名:两张表各答各的问题,这个名只在墓碑表里。
|
|
20
|
+
- **不在表里的**:host 车道的开关 `LSP_HOST_ENABLED` 是活旋钮,不登记;`LSP_ENV_ALLOW` 同样不动。`LSP_HOST_ENABLED` 不是 `LSP_ENABLED` 的新名 —— 墓碑表头注定「唯一的删除条件是名字要被赋予新含义」,
|
|
21
|
+
两个键各是各的,所以拒句只点名它作出路,不叫运维「照新名改写」。
|
|
22
|
+
- **读侧同代要求**(进表判据:没有带着本表的引擎还读这个名):读这张表的引擎要先删掉自己对 `LSP_ENABLED` 的读,再提货含这一行的本包,二者同一提交 —— 引擎还把它当活旋钮读的时候进表,拒掉的就是一个在生效的开关。
|
|
23
|
+
- **谁受影响**:部署里仍设着 `LSP_ENABLED`(任一非空值)的运维 —— 提货了含这一行的引擎起服即拒;在 worker 规格的 `env` / `secretEnv` 里自写它的(写闸拒);其余部署零变化。
|
|
24
|
+
**怎么改**:撤掉这个键。e2b / k8s 车道上本来就没有 LSP,行为零变化;host 车道想关本机语言服务器,用 `LSP_HOST_ENABLED`(另一个键,缺省开)。**不改会怎样**:引擎起服拒,拒句点名旧名与出路。
|
|
25
|
+
- **耐久数据面:无**。`LSP_ENABLED` 只存在于 env 层:设置域表与 `config.d` 文档里没有这个键,不配一次性迁移,存量文档零改写。
|
|
26
|
+
- **导出面零变化**:不加导出、不改型(`RetiredEnv` 的三元形原样);读这张表的消费方提货即得这一行 —— 引擎起服、壳起本机引擎之前、渲染 worker env 之前、目录 `retired[]` 的读者各取同一张表;不读墓碑表的消费方不受影响。
|
|
27
|
+
- **钉**:`test/retired-env-lsp-enabled.test.ts`(行逐字 · 族与理由句〔点名 `LSP_HOST_ENABLED`、不带点分版本号〕· 真 / 假 / 任意值整句逐字、空串与缺席不拒、不回显值 · 与别的 `removed` 名同句并列 · 目录投影只带 `reason` · 写闸同拒且不是保留名 · 负控:`LSP_HOST_ENABLED` / `LSP_ENV_ALLOW` 不进表、写闸照收 `LSP_HOST_ENABLED`)·
|
|
28
|
+
`test/retired-envs-11.0.0.test.ts`(行集与族逐行,`REMOVED` 加这一名)· `test/retired-envs-previous-generation-11.2.0.test.ts`(表长 37)。
|
|
29
|
+
|
|
30
|
+
**自 v20.0.0 起运行期代码有改动的公开导出(机器重算;上界 —— 可达 ≠ 一定变,不可达 ⇒ 一定不变;本版新增的导出不入表)**
|
|
31
|
+
|
|
32
|
+
```text
|
|
33
|
+
ATOMIC_SALVAGE [., ./types]
|
|
34
|
+
DOMAINS [., ./types]
|
|
35
|
+
DOMAIN_SCHEMAS [., ./types]
|
|
36
|
+
FileConfigStore [./node]
|
|
37
|
+
NON_PORTABLE_DOMAINS [./conformance]
|
|
38
|
+
RETIRED_ENVS [.]
|
|
39
|
+
WorkerSpec [., ./types]
|
|
40
|
+
WorkersConfig [., ./types]
|
|
41
|
+
buildEffective [., ./config-fns]
|
|
42
|
+
buildRetiredEnvWire [.]
|
|
43
|
+
deriveLocalExpectation [./conformance]
|
|
44
|
+
deriveWireExpectation [./conformance]
|
|
45
|
+
domainFilePath [./node]
|
|
46
|
+
emptyEffective [., ./config-fns]
|
|
47
|
+
foreignKeysOf [./conformance]
|
|
48
|
+
isDomainName [., ./types]
|
|
49
|
+
loadLocalConfig [./node]
|
|
50
|
+
loadRemoteExec [./node]
|
|
51
|
+
migrateConfigDirectory [./node]
|
|
52
|
+
migrateConfigDocuments [./node]
|
|
53
|
+
migrateEffectiveSnapshot [./one-time-migrations]
|
|
54
|
+
migrateEnvModelsDecision [./node]
|
|
55
|
+
migrateStoredDocuments [./one-time-migrations]
|
|
56
|
+
parseDomain [., ./config-fns]
|
|
57
|
+
parseDomainLoud [., ./config-fns]
|
|
58
|
+
parseDomainSalvaged [., ./config-fns]
|
|
59
|
+
planEnvModelTableWrite [.]
|
|
60
|
+
readBundle [./node]
|
|
61
|
+
readConfigDFileReadingSync [./node]
|
|
62
|
+
readEffectiveWire [., ./config-fns]
|
|
63
|
+
readWorkersRows [.]
|
|
64
|
+
remoteExecPath [./node]
|
|
65
|
+
resolveLegExpectation [./conformance]
|
|
66
|
+
retiredEnvRefusal [.]
|
|
67
|
+
runConformance [./conformance]
|
|
68
|
+
salvageEntries [., ./config-fns]
|
|
69
|
+
urlSeatPatterns [./one-time-migrations]
|
|
70
|
+
validateDomain [./node]
|
|
71
|
+
writeBundle [./node]
|
|
72
|
+
writeDomainFile [./node]
|
|
73
|
+
writeRemoteExec [./node]
|
|
74
|
+
```
|
|
75
|
+
|
|
11
76
|
## 20.0.0 — 2026-11-03 — major:目录条目 `ModelEntry.thinkingLevelMap`(引擎 `Model.thinkingLevelMap` 的声明位)· 词闭集 `MODEL_THINKING_LEVEL_WORDS` / 型 `ModelThinkingLevel` / 席位 schema `ModelThinkingLevelMap` · 运行期导出 `HOOK_ENTRY_FIELDS` / 型 `HookEntryFields` · hook 条目承运余下四个 CC 键 `rewakeMessage` / `rewakeSummary`(command)· `cloud`(command / http)· `continueOnBlock`(prompt),按 CC 的值形判 · 词闭集 `HOOK_CLOUD_WORDS` / 型 `HookCloud`(读者折 `cloud` 的参考)· `rewakeMessage` / `rewakeSummary` / `continueOnBlock` 的坏值自此是坏块(校验收紧) · 线上读口不编造生产方没发的域 —— `readEffectiveWire` 对载荷上缺席的 `a2a` 不再补 `{ peers: [] }`(`EffectiveWire.a2a` 改可选)· 承运表 `WIRE_CARRIED_DOMAINS`(`prompts` / `a2a`)/ 型 `WireCarriedDomain`
|
|
12
77
|
|
|
13
78
|
> 档位(按发版纪律):**major** —— 校验收紧、类型面不加性、同一份配置 / 载荷解析出不同结果(发版纪律「破坏性变更必 bump major」点名的几类)。本版三件各有「同一输入解析结果会变」的读数,下面逐条列全(件序:目录条目 `thinkingLevelMap` · hook 条目余下四个 CC 键 · 线上读口):
|
package/conformance/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
21.0.0
|
package/dist/retired-envs.js
CHANGED
|
@@ -77,6 +77,8 @@ export const RETIRED_ENVS = [
|
|
|
77
77
|
["UNATTENDED_PERMISSION_MODE", "since server 7.109.0 the unattended legs (leader workers and their repair legs, run-local, and their durable resumes) always run permissionMode \"default\" with an approver that answers by ask class: a machine answers only \"ordinary\" asks, and every other class goes to the leg's approver seat (run-local's terminal prompt) or parks / is refused — there is no mode to choose", "removed"],
|
|
78
78
|
// 执行车道总开关:每个部署都点名自己的车道之后它恒真(「点名了没有」只剩一个答者 REMOTE_EXEC),留着 = 两个键答一个问题;「没有执行环境」也是一个声明(REMOTE_EXEC=none)。
|
|
79
79
|
["REQUIRE_EXECUTION_LANE", "REMOTE_EXEC", "replaced", "every deployment names its execution lane; REMOTE_EXEC=none declares one with no execution environment"],
|
|
80
|
+
// 沙箱车道的 LSP 桥整只删除:e2b / k8s 车道本来就不挂 LSP,这个旋钮没有可 rename 的目标。host 车道的开关是另一个键 LSP_HOST_ENABLED(缺省开,活旋钮,不在本表)。
|
|
81
|
+
["LSP_ENABLED", "the sandbox-lane LSP bridge was removed (e2b / k8s lanes mount no LSP); unset it — the host lane's switch is LSP_HOST_ENABLED", "removed"],
|
|
80
82
|
];
|
|
81
83
|
// 冻结:拿到导出的人改不了拒启判据(读拒句的与投影 wire 的是同一个数组对象)。
|
|
82
84
|
for (const row of RETIRED_ENVS)
|
package/llms-full.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
llms-full.txt — 自包含全文 · 消费方(使用者)视角 · @sema-agent/settings-schema
|
|
3
|
-
重写日期: 2026-11-
|
|
3
|
+
重写日期: 2026-11-06 | 包版本: 21.0.0
|
|
4
4
|
生成方式: 无生成脚本——按当前树 src/*.ts 导出面 + package.json + README/CHANGELOG 手写事实版。
|
|
5
5
|
证据约定: 每条"它怎么工作"的断言附 (文件: 符号) 坐标,刻意不用行号(行号逐版腐烂;符号名由
|
|
6
6
|
typecheck 与 test/package-surface.test.ts、test/docs-hygiene.test.ts 等常驻门钉住)。无证据推断显式标【推断】。
|
package/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
llms.txt — 消费方(使用者)视角索引 · @sema-agent/settings-schema
|
|
3
|
-
重写日期: 2026-11-
|
|
3
|
+
重写日期: 2026-11-06 | 包版本: 21.0.0
|
|
4
4
|
生成方式: 无生成脚本——按当前树的 src/*.ts 导出面 + package.json + README/CHANGELOG 手写事实版;
|
|
5
5
|
每条断言附证据坐标(文件:符号),刻意不用行号(行号随每版腐烂,符号名由 typecheck/test 钉住)。
|
|
6
6
|
刷新触发: package.json 版号变更(test/docs-hygiene.test.ts D 组钉「包版本:」与 package.json 相等、
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sema-agent/settings-schema",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0",
|
|
4
4
|
"description": "Sema settings schema — pure config contract (zod domains + effective-config + roster resolution + ref-integrity + remoteExec) shared by sema-web-admin, sema-server, and the TOC desktop/CLI. One source of truth. (Renamed at 1.0.0 from @sema-agent/registry-core — name and docs only, no behavior change; note the range moves 0.19.0 -> 1.0.0, so a dependency must become ^1.0.0. The old names @sema-agent/registry-core <=0.19.0 and @sema-ai/registry-core remain published, frozen, for migration.)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "BUSL-1.1",
|