@sema-agent/settings-schema 12.2.0 → 12.2.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/CHANGELOG.md +5 -0
- package/conformance/VERSION +1 -1
- package/dist/host-path.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
> `@sema-agent/registry-core`(更早还曾是 `@sema-ai/registry-core`)。本档 `0.19.0` 以下各节里的
|
|
7
7
|
> 包名是**历史记录**,如实保留不追改。
|
|
8
8
|
|
|
9
|
+
## 12.2.1 — 2026-10-12 — patch:`isAbsoluteHostPath` 的 UNC 首段按主机名形判(字母数字起头),Windows 设备命名空间前缀 `\\.\` 与长路径前缀 `\\?\` 一律拒(11.3.1 / 12.1.1 只排除 `?` / `*`,`\\.\C:\…` 曾被当 UNC 受理)
|
|
10
|
+
|
|
11
|
+
- **行为修复(宿主路径形判,UNC 臂)**。三族律不变;UNC 首段 = 主机名形(`[A-Za-z0-9][A-Za-z0-9._-]*`),所以 `\\.\C:\x`、`\\.\pipe\x`、`\\?\C:\x`、`\\*\share`、`\\-srv\share` 都不绝对;`\\srv\share\…` / `\\10.0.0.5\share` 照旧真。posix / 盘符两族逐字不变。
|
|
12
|
+
三问 —— **谁需要**:两种设备前缀同一判法(此前一受理一拒,读者无法解释);**谁受伤**:无(设备命名空间路径不是任务 `cwd` / 项目登记的形);**补偿**:无。钉:`test/host-path-11.3.1.test.ts` 不绝对形加两形。
|
|
13
|
+
|
|
9
14
|
## 12.2.0 — 2026-10-12 — minor:`mcp.servers[]` 条目三只解析透明可选键 `toolAxes` / `authForm` / `entryKind` · http 传输可选 `assertionHeader`(与 `principalHeader` 互斥)
|
|
10
15
|
|
|
11
16
|
> minor:`mcp.servers[]` 条目上多三只**解析透明**的可选键 `toolAxes` / `authForm` / `entryKind`;http 形传输上多一只可选键 `assertionHeader`(HTTP 头名),与 `principalHeader` 互斥。
|
package/conformance/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
12.2.
|
|
1
|
+
12.2.1
|
package/dist/host-path.js
CHANGED
|
@@ -15,7 +15,8 @@ export const ABSOLUTE_HOST_PATH_MAX = 4096;
|
|
|
15
15
|
* 读方只拿「形合法」这一个事实,怎么解析归宿主那一族 —— 这里不碰文件系统、不做族内归一。
|
|
16
16
|
*/
|
|
17
17
|
const WIN_DRIVE_ABSOLUTE = /^[A-Za-z]:[\\/]/;
|
|
18
|
-
|
|
18
|
+
// UNC 首段是主机名(字母数字起头,其后字母数字 . _ -):Windows 设备命名空间前缀 `\\.\` 与长路径前缀 `\\?\` 都不是主机路径,一律拒。
|
|
19
|
+
const WIN_UNC_ABSOLUTE = /^\\\\[A-Za-z0-9][A-Za-z0-9._-]*[\\/][^\\/]+/;
|
|
19
20
|
export function isAbsoluteHostPath(p) {
|
|
20
21
|
return (typeof p === "string" && p.length > 0 && p.length <= ABSOLUTE_HOST_PATH_MAX && !p.includes("\0") &&
|
|
21
22
|
(p.startsWith("/") || WIN_DRIVE_ABSOLUTE.test(p) || WIN_UNC_ABSOLUTE.test(p)) &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sema-agent/settings-schema",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.1",
|
|
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",
|