@sema-agent/settings-schema 28.0.0 → 29.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.
Files changed (173) hide show
  1. package/CHANGELOG.md +330 -0
  2. package/README.md +81 -12
  3. package/conformance/VERSION +1 -1
  4. package/conformance/cases/c01-entry-salvage-then-typo/expected.json +1 -1
  5. package/conformance/cases/c02-hosts-clamp-stacked/expected.json +1 -1
  6. package/conformance/cases/c03-literal-dotted-top-key/expected.json +1 -1
  7. package/conformance/cases/c04-all-bad-collection-not-salvaged/expected.json +1 -1
  8. package/conformance/cases/c07-hooks-is-not-a-config-domain/expected.json +1 -1
  9. package/conformance/cases/c08-limits-unknown-carried-64/expected.json +1 -1
  10. package/conformance/cases/c09-limits-unknown-carried-65/expected.json +1 -1
  11. package/conformance/cases/c10-record-key-secret-redacted-twice/expected.json +1 -1
  12. package/conformance/cases/c11-unicode-unknown-keys/expected.json +1 -1
  13. package/conformance/cases/c12-prototype-name-top-keys/expected.json +1 -1
  14. package/conformance/cases/c13-models-field-null/expected.json +1 -1
  15. package/conformance/cases/c14-models-field-empty-array/expected.json +1 -1
  16. package/conformance/cases/c15-models-field-number/expected.json +1 -1
  17. package/conformance/cases/c18-wire-envelope-not-an-object/expected.json +1 -1
  18. package/conformance/cases/c19-wire-envelope-no-version/expected.json +1 -1
  19. package/conformance/cases/c21-governance-empty-object-wins/expected.json +1 -1
  20. package/conformance/cases/c23-mixed-validity-models/expected.json +1 -1
  21. package/conformance/cases/c24-valid-entries-with-unknown-keys/expected.json +1 -1
  22. package/conformance/cases/c25-published-roundtrip-zero-warnings/expected.json +1 -1
  23. package/conformance/cases/c26-hosts-array-1024/expected.json +1 -1
  24. package/conformance/cases/c27-hosts-array-1025/expected.json +1 -1
  25. package/conformance/cases/c28-large-document-over-1mb/expected.json +1 -1
  26. package/conformance/cases/c29-salvage-then-domain-refine-fails/expected.json +1 -1
  27. package/conformance/cases/c30-version-triple-a-first/expected.json +1 -1
  28. package/conformance/cases/c31-version-triple-b-changed/expected.json +1 -1
  29. package/conformance/cases/c32-version-triple-a-restored/expected.json +1 -1
  30. package/conformance/cases/c33-limits-nested-carried-key/expected.json +1 -1
  31. package/conformance/cases/c34-skills-content-vs-manifest/expected.json +1 -1
  32. package/conformance/cases/c36-skills-entry-without-content/expected.json +1 -1
  33. package/conformance/cases/c38-remote-exec-is-a-non-domain-file/expected.json +1 -1
  34. package/conformance/cases/c39-hidden-file-in-config-d/expected.json +1 -1
  35. package/conformance/cases/c40-s712-identity-only-what-reads-out/expected.json +1 -1
  36. package/conformance/cases/c41-s792-encoded-pem-identity/expected.json +1 -1
  37. package/conformance/cases/c42-s792-unknown-key-secret-redacted/expected.json +1 -1
  38. package/conformance/cases/c43-s792-form-and-deep-encoded-pem/expected.json +1 -1
  39. package/conformance/cases/c44-s792-utf8-escape-glued-token/expected.json +1 -1
  40. package/conformance/cases/c45-s792-identity-bounds-and-decode-depth/expected.json +1 -1
  41. package/conformance/cases/c46-s811-host-name-url-userinfo-withheld/expected.json +1 -1
  42. package/conformance/cases/c47-s811-roles-key-url-userinfo-withheld/expected.json +1 -1
  43. package/conformance/cases/c48-s935-model-headers-transported/expected.json +1 -1
  44. package/conformance/cases/c49-s935-model-headers-secret-entry-dropped/expected.json +1 -1
  45. package/conformance/cases/c50-s784-lane-host-legal/expected.json +1 -1
  46. package/conformance/cases/c51-s784-lane-e2b-legal/expected.json +1 -1
  47. package/conformance/cases/c52-s784-lane-k8s-legal/expected.json +1 -1
  48. package/conformance/cases/c53-s784-lane-ssh-legal/expected.json +1 -1
  49. package/conformance/cases/c54-s784-lane-adb-legal/expected.json +1 -1
  50. package/conformance/cases/c55-s784-lane-local-docker-legal/expected.json +1 -1
  51. package/conformance/cases/c56-s784-lane-device-legal/expected.json +1 -1
  52. package/conformance/cases/c57-s784-g1-enabled-no-lane/expected.json +1 -1
  53. package/conformance/cases/c58-s784-g2-multitenant-host/expected.json +1 -1
  54. package/conformance/cases/c59-s784-g3-k8s-missing-image/expected.json +1 -1
  55. package/conformance/cases/c60-s784-g3-e2b-missing-key/expected.json +1 -1
  56. package/conformance/cases/c61-s784-g3-other-lane-key/expected.json +1 -1
  57. package/conformance/cases/c62-s784-g7a-session-tidb/expected.json +1 -1
  58. package/conformance/cases/c63-s784-host-two-replicas/expected.json +1 -1
  59. package/conformance/cases/c64-s784-multitenant-local-store/expected.json +1 -1
  60. package/conformance/cases/c65-s784-pg-without-db/expected.json +1 -1
  61. package/conformance/cases/c66-s784-memory-backend-mismatch/expected.json +1 -1
  62. package/conformance/cases/c67-s784-retired-field-loud/expected.json +1 -1
  63. package/conformance/cases/c68-s784-device-local-store/expected.json +1 -1
  64. package/conformance/cases/c69-deep-encoded-token-past-every-reading/expected.json +1 -1
  65. package/conformance/cases/c70-rewritten-token-in-front-of-encoded-pem-header/expected.json +1 -1
  66. package/conformance/cases/c71-one-scanner-write-reads-display-forms/expected.json +1 -1
  67. package/conformance/cases/c72-dangling-reference-write-seat-refuses/expected.json +1 -1
  68. package/conformance/cases/c73-projects-extended-registration-reads/expected.json +1 -1
  69. package/conformance/cases/c74-projects-over-bound-refused/expected.json +3 -72
  70. package/conformance/cases/c75-projects-patch-remote-uniqueness/expected.json +3 -72
  71. package/conformance/cases/c76-projects-entry-salvage-nested/expected.json +1 -1
  72. package/conformance/cases/c77-prompts-center-artifact-carried/expected.json +1 -1
  73. package/conformance/cases/c78-prompts-empty-bindings-refused/expected.json +1 -1
  74. package/conformance/cases/c79-prompts-bad-worker-artifact-not-salvaged/expected.json +1 -1
  75. package/conformance/cases/c80-prompts-wire-v2-verbatim/expected.json +1 -1
  76. package/conformance/cases/c81-prompts-declaration-bindings-refused/expected.json +1 -1
  77. package/conformance/cases/c82-prompts-v1-catalog-refused/expected.json +1 -1
  78. package/conformance/cases/c83-prompts-bad-overlay-not-salvaged/expected.json +1 -1
  79. package/conformance/cases/c84-sandbox-git-block-carried-verbatim/expected.json +1 -1
  80. package/conformance/cases/c85-sandbox-git-refused-block-still-carried/expected.json +1 -1
  81. package/conformance/cases/c86-a2a-peers-legal/expected.json +1 -1
  82. package/conformance/cases/c87-a2a-credential-refs-not-partially-salvaged/expected.json +1 -1
  83. package/conformance/cases/c88-projects-content-attestation-carried/expected.json +1 -1
  84. package/conformance/cases/c89-projects-content-attestation-malformed/expected.json +1 -1
  85. package/conformance/cases/c90-mcp-assertion-credential-carried/expected.json +143 -0
  86. package/conformance/cases/c90-mcp-assertion-credential-carried/input.json +30 -0
  87. package/conformance/cases/c90-mcp-assertion-credential-carried/meta.json +6 -0
  88. package/conformance/cases/c91-mcp-assertion-header-retired-entry-dropped/expected.json +105 -0
  89. package/conformance/cases/c91-mcp-assertion-header-retired-entry-dropped/input.json +27 -0
  90. package/conformance/cases/c91-mcp-assertion-header-retired-entry-dropped/meta.json +6 -0
  91. package/conformance/cases/c92-mcp-principal-header-with-assertion-dropped/expected.json +105 -0
  92. package/conformance/cases/c92-mcp-principal-header-with-assertion-dropped/input.json +31 -0
  93. package/conformance/cases/c92-mcp-principal-header-with-assertion-dropped/meta.json +6 -0
  94. package/conformance/cases/c93-mcp-header-refs-with-credentials-dropped/expected.json +105 -0
  95. package/conformance/cases/c93-mcp-header-refs-with-credentials-dropped/input.json +33 -0
  96. package/conformance/cases/c93-mcp-header-refs-with-credentials-dropped/meta.json +6 -0
  97. package/conformance/cases/c94-mcp-credentials-env-kind-dropped/expected.json +105 -0
  98. package/conformance/cases/c94-mcp-credentials-env-kind-dropped/input.json +32 -0
  99. package/conformance/cases/c94-mcp-credentials-env-kind-dropped/meta.json +6 -0
  100. package/conformance/cases/c95-mcp-credentials-audience-not-connector-id-dropped/expected.json +105 -0
  101. package/conformance/cases/c95-mcp-credentials-audience-not-connector-id-dropped/input.json +30 -0
  102. package/conformance/cases/c95-mcp-credentials-audience-not-connector-id-dropped/meta.json +6 -0
  103. package/conformance/cases/c96-mcp-credentials-extra-member-dropped/expected.json +105 -0
  104. package/conformance/cases/c96-mcp-credentials-extra-member-dropped/input.json +31 -0
  105. package/conformance/cases/c96-mcp-credentials-extra-member-dropped/meta.json +6 -0
  106. package/conformance/cases/cc01-mcp-toolfaces-non-object/expected.json +1 -1
  107. package/conformance/cases/cc02-mcp-source-key-is-transported/expected.json +1 -1
  108. package/conformance/cases/cc03-model-compat-unknown-subkey/expected.json +1 -1
  109. package/conformance/cases/cli01-model-name-nfc-vs-nfd/expected.json +1 -1
  110. package/conformance/cases/cli02-control-and-zero-width-chars/expected.json +1 -1
  111. package/conformance/cases/cli03-credential-pasted-into-unknown-key/expected.json +1 -1
  112. package/conformance/cases/cli04-env-value-with-newline/expected.json +1 -1
  113. package/conformance/cases/cli05-long-and-prefix-colliding-names/expected.json +1 -1
  114. package/conformance/cases/t01-absent-domain-key-not-null/expected.json +1 -1
  115. package/conformance/cases/t03-prototype-name-key-not-swallowed/expected.json +1 -1
  116. package/conformance/cases/t04-secret-literal-never-in-warning-value/expected.json +1 -1
  117. package/conformance/cases/z01-every-domain-empty-object/expected.json +1 -1
  118. package/conformance/cases/z02-every-domain-unknown-key/expected.json +1 -1
  119. package/dist/api/credentials.js +5 -7
  120. package/dist/api/lifecycle-events.d.ts +266 -0
  121. package/dist/api/lifecycle-events.js +169 -0
  122. package/dist/api/wire-scalars.d.ts +13 -0
  123. package/dist/api/wire-scalars.js +15 -0
  124. package/dist/atomic-write.d.ts +4 -0
  125. package/dist/atomic-write.js +26 -3
  126. package/dist/config-d-file.d.ts +1 -1
  127. package/dist/config-document-refusal.d.ts +4 -4
  128. package/dist/config-fns.d.ts +1 -1
  129. package/dist/config-root-documents.d.ts +1 -1
  130. package/dist/config-root-node.js +2 -1
  131. package/dist/conformance/corpus.d.ts +1 -1
  132. package/dist/conformance/derive.d.ts +13 -5
  133. package/dist/conformance/derive.js +36 -20
  134. package/dist/conformance/index.d.ts +1 -1
  135. package/dist/conformance/index.js +1 -1
  136. package/dist/conformance/run.js +8 -9
  137. package/dist/connector-authorize-url.d.ts +23 -0
  138. package/dist/connector-authorize-url.js +129 -0
  139. package/dist/connector-id.d.ts +23 -0
  140. package/dist/connector-id.js +27 -0
  141. package/dist/file-edit.d.ts +44 -0
  142. package/dist/file-edit.js +70 -1
  143. package/dist/file-store.d.ts +12 -7
  144. package/dist/file-store.js +70 -58
  145. package/dist/hooks.d.ts +15 -5
  146. package/dist/hooks.js +13 -3
  147. package/dist/index.d.ts +4 -0
  148. package/dist/index.js +5 -1
  149. package/dist/mcp-entry-credential.d.ts +47 -0
  150. package/dist/mcp-entry-credential.js +73 -0
  151. package/dist/mcp-request-entry.d.ts +32 -13
  152. package/dist/mcp-request-entry.js +104 -58
  153. package/dist/migration-receipt.d.ts +2 -2
  154. package/dist/migration-receipt.js +2 -2
  155. package/dist/one-time-migrations.d.ts +2 -2
  156. package/dist/one-time-migrations.js +72 -55
  157. package/dist/portable-domains.d.ts +18 -12
  158. package/dist/portable-domains.js +17 -12
  159. package/dist/retired-role-words.d.ts +1 -1
  160. package/dist/retired-role-words.js +4 -6
  161. package/dist/scheduler-store-node.d.ts +5 -2
  162. package/dist/scheduler-store-node.js +8 -5
  163. package/dist/sha256.d.ts +5 -0
  164. package/dist/sha256.js +7 -0
  165. package/dist/skills-manifest.js +2 -2
  166. package/dist/types.d.ts +80 -10
  167. package/dist/types.js +30 -39
  168. package/docs/API-SURFACE.md +47 -7
  169. package/docs/CONFORMANCE.md +6 -4
  170. package/docs/CONSUMER-INTEGRATION.md +109 -4
  171. package/llms-full.txt +44 -23
  172. package/llms.txt +26 -13
  173. package/package.json +3 -2
@@ -1,19 +1,17 @@
1
1
  /**
2
2
  * 包内私有(不进主桶、不进 exports 表):12.0.0 退役的**角色词**墓碑 —— 引擎 core 7.49.0 把 `team` / `synthesize` 从角色表里删了(对未知角色词响亮拒),
3
- * 本包的 `ModelRole` 随之收成 6 词。墓碑是**拒**,不是第二种读法:判官遇到这两个词不把它们读成任何角色,只说「这是一份没迁的旧形」以及去哪儿迁
4
- * (一次性迁移 SS-M8,`./one-time-migrations`)。一处写词、一处写句:`ModelRole` 的判句、`roles` 图的未知键判句与 SS-M8 的改写步都读这里。
5
- * 迁移族按登记表的窗整族删,墓碑留下 —— 到那时句子里的迁移指路由删码那一车去掉(登记表 SS-M8 行的 `removal`)。
3
+ * 本包的 `ModelRole` 随之收成 6 词。墓碑是**拒**,不是第二种读法:判官遇到这两个词不把它们读成任何角色,只说「这是一份旧形」、没有角色读它、出路是把那个键从存储文档里删掉。
4
+ * 一处写词、一处写句:`ModelRole` 的判句与 `roles` 图的未知键判句都读这里。12.0.0 起存量由一次性迁移 SS-M8 删这两个键;29.0.0 起那一步随窗到期删了,墓碑留下、句子里的迁移指路随之去掉。
6
5
  */
7
6
  import { retiredFormSentence } from "./retired-form.js";
8
7
  /** 退役的角色词(闭集;逐字)。 */
9
8
  export const RETIRED_ROLE_WORDS = ["team", "synthesize"];
10
9
  const ROLE_WORDS_RETIRED = {
11
10
  retiredIn: "12.0.0",
12
- now: "no role reads it (core 7.49.0 removed the role and refuses the word)",
13
- migration: "SS-M8",
11
+ now: "no role reads it (core 7.49.0 removed the role and refuses the word) — delete the key from the stored document",
14
12
  };
15
13
  const isRetiredRoleWord = (w) => RETIRED_ROLE_WORDS.some((r) => r === w);
16
- /** 一组被判官拒下的角色键 / 角色词里若有退役词 ⇒ 那一句(点名退役词与 SS-M8;同组里别的不认识的词也点名,一个不漏);没有 ⇒ `undefined`
14
+ /** 一组被判官拒下的角色键 / 角色词里若有退役词 ⇒ 那一句(点名退役词、退役的版本与出路;同组里别的不认识的词也点名,一个不漏);没有 ⇒ `undefined`
17
15
  * (交回 zod 自己的句子)。`ModelRole` 的判句(一个词)与 `roles` 图的未知键判句(一组键)都调这一只。 */
18
16
  export function retiredRoleWordsRefusal(words) {
19
17
  const retired = RETIRED_ROLE_WORDS.filter((r) => words.includes(r));
@@ -9,10 +9,13 @@ import { type SchedulerParseWarning, type SchedulerReadOptions, type SchedulerRe
9
9
  */
10
10
  export declare function loadSchedulerStore(path: string, opts: SchedulerReadOptions): SchedulerStoreRead;
11
11
  /**
12
- * Persist ATOMICALLY: `mkdir -p` the parent, then the package's one atomic writer (`./atomic-write`: a uniquely-named `.tmp`
12
+ * Persist ATOMICALLY: create the parent if it is missing, then the package's one atomic writer (`./atomic-write`: a uniquely-named `.tmp`
13
13
  * sibling, then `rename` over the target — atomic on POSIX, so a concurrent reader never sees a partial file). The file mode
14
14
  * is the `scheduler-store` class's (0o600 — owner-only, the records may carry principal/session identifiers; every save
15
- * restores it). Throws on IO failure (caller maps to a domain error).
15
+ * restores it). A missing parent is created by the package's one owner-only directory maker (`ensureOwnerOnlyDirectory`, the same
16
+ * one that creates a config root): every missing level is exactly 0o700 whatever the process umask (29.0.0; before, `mkdir -p`
17
+ * under the umask — 002 gave a group-writable directory, which a directory-trust check on the store's path refuses);
18
+ * a directory that already exists keeps its mode. Throws on IO failure (caller maps to a domain error).
16
19
  */
17
20
  export declare function saveSchedulerStore(path: string, records: SchedulerRecord[]): void;
18
21
  /** A filesystem-backed {@link SchedulerStore} bound to a path (convenience for the daemon/backend constructors).
@@ -6,9 +6,9 @@
6
6
  *
7
7
  * Store path = caller-supplied; both sides agree on `SEMA_CONFIG_DIR` → `~/.sema/scheduled_tasks.json`.
8
8
  */
9
- import { mkdirSync, readFileSync } from 'node:fs';
9
+ import { readFileSync } from 'node:fs';
10
10
  import { dirname } from 'node:path';
11
- import { writeFileAtomic } from './atomic-write.js';
11
+ import { ensureOwnerOnlyDirectory, writeFileAtomic } from './atomic-write.js';
12
12
  import { parseSchedulerStore, serializeSchedulerStore } from './scheduler-store.js';
13
13
  /**
14
14
  * Load the durable store. A MISSING file (ENOENT) ⇒ no records, no warnings (first-run/never-written case); any OTHER
@@ -31,13 +31,16 @@ export function loadSchedulerStore(path, opts) {
31
31
  return parseSchedulerStore(text, opts);
32
32
  }
33
33
  /**
34
- * Persist ATOMICALLY: `mkdir -p` the parent, then the package's one atomic writer (`./atomic-write`: a uniquely-named `.tmp`
34
+ * Persist ATOMICALLY: create the parent if it is missing, then the package's one atomic writer (`./atomic-write`: a uniquely-named `.tmp`
35
35
  * sibling, then `rename` over the target — atomic on POSIX, so a concurrent reader never sees a partial file). The file mode
36
36
  * is the `scheduler-store` class's (0o600 — owner-only, the records may carry principal/session identifiers; every save
37
- * restores it). Throws on IO failure (caller maps to a domain error).
37
+ * restores it). A missing parent is created by the package's one owner-only directory maker (`ensureOwnerOnlyDirectory`, the same
38
+ * one that creates a config root): every missing level is exactly 0o700 whatever the process umask (29.0.0; before, `mkdir -p`
39
+ * under the umask — 002 gave a group-writable directory, which a directory-trust check on the store's path refuses);
40
+ * a directory that already exists keeps its mode. Throws on IO failure (caller maps to a domain error).
38
41
  */
39
42
  export function saveSchedulerStore(path, records) {
40
- mkdirSync(dirname(path), { recursive: true });
43
+ ensureOwnerOnlyDirectory(dirname(path));
41
44
  writeFileAtomic(path, serializeSchedulerStore(records), 'scheduler-store');
42
45
  }
43
46
  /** A filesystem-backed {@link SchedulerStore} bound to a path (convenience for the daemon/backend constructors).
package/dist/sha256.d.ts CHANGED
@@ -17,5 +17,10 @@ import { z } from "zod";
17
17
  export declare function sha256Hex(input: string): string;
18
18
  /** The one spelling of a content digest on the wire: `sha256:` + 64 lowercase hex characters. */
19
19
  export declare const SHA256_DIGEST_RE: RegExp;
20
+ /** The one MINT of that spelling: `sha256:` + the SHA-256 hex of the content. A string is digested as its UTF-8 encoding (the same answer as {@link sha256Hex}); a `Uint8Array` / `Buffer` is
21
+ * digested as the bytes it holds. For a valid UTF-8 byte sequence the two are the same digest of the same octets — but a string decoded from bytes that are not valid UTF-8 has lost them
22
+ * (each bad sequence became U+FFFD), so digest the bytes when the bytes are what you read. Every digest-bearing seat — a skill body (`skillContentHash`), the bytes of a `config.d` document
23
+ * (the expected digest of `writeDomainFileIf`) — calls this, so a reader and a writer of the same content can never spell it two ways. */
24
+ export declare function contentDigest(content: string | Uint8Array): string;
20
25
  /** {@link SHA256_DIGEST_RE} as a schema —— 本包每个装 `sha256:<hex>` 摘要的座位都引它(此前五处各写一遍同一条正则)。 */
21
26
  export declare const Sha256Digest: z.ZodString;
package/dist/sha256.js CHANGED
@@ -20,5 +20,12 @@ export function sha256Hex(input) {
20
20
  }
21
21
  /** The one spelling of a content digest on the wire: `sha256:` + 64 lowercase hex characters. */
22
22
  export const SHA256_DIGEST_RE = /^sha256:[0-9a-f]{64}$/;
23
+ /** The one MINT of that spelling: `sha256:` + the SHA-256 hex of the content. A string is digested as its UTF-8 encoding (the same answer as {@link sha256Hex}); a `Uint8Array` / `Buffer` is
24
+ * digested as the bytes it holds. For a valid UTF-8 byte sequence the two are the same digest of the same octets — but a string decoded from bytes that are not valid UTF-8 has lost them
25
+ * (each bad sequence became U+FFFD), so digest the bytes when the bytes are what you read. Every digest-bearing seat — a skill body (`skillContentHash`), the bytes of a `config.d` document
26
+ * (the expected digest of `writeDomainFileIf`) — calls this, so a reader and a writer of the same content can never spell it two ways. */
27
+ export function contentDigest(content) {
28
+ return `sha256:${typeof content === "string" ? sha256Hex(content) : toHex(sha256Digest(content))}`;
29
+ }
23
30
  /** {@link SHA256_DIGEST_RE} as a schema —— 本包每个装 `sha256:<hex>` 摘要的座位都引它(此前五处各写一遍同一条正则)。 */
24
31
  export const Sha256Digest = z.string().regex(SHA256_DIGEST_RE);
@@ -13,7 +13,7 @@
13
13
  * import here would leak `node:*` into the browser bundle (the review-flagged blocker). Output is byte-identical to
14
14
  * `createHash("sha256")`, so the `sha256:<hex>` content-address the service verifies still matches.
15
15
  */
16
- import { sha256Hex } from "./sha256.js";
16
+ import { contentDigest } from "./sha256.js";
17
17
  // Memoize content→hash: the /effective poll path (toSkillsManifest) and the content-endpoint lookup
18
18
  // (findSkillContent) re-hash the same small, stable skill bodies repeatedly (× N workers × 60s). Skill
19
19
  // bodies are few + rarely change, so this stays tiny; a cap guards against unbounded growth.
@@ -25,7 +25,7 @@ export function skillContentHash(content) {
25
25
  const hit = _hashMemo.get(content);
26
26
  if (hit !== undefined)
27
27
  return hit;
28
- const h = `sha256:${sha256Hex(content)}`;
28
+ const h = contentDigest(content);
29
29
  if (_hashMemo.size >= _HASH_MEMO_CAP)
30
30
  _hashMemo.clear(); // bound — skills are few; simple evict-all is fine
31
31
  _hashMemo.set(content, h);
package/dist/types.d.ts CHANGED
@@ -1877,7 +1877,26 @@ export declare const McpTransport: z.ZodDiscriminatedUnion<[z.ZodObject<{
1877
1877
  url: z.ZodString;
1878
1878
  headerRefs: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>, unknown>>;
1879
1879
  principalHeader: z.ZodOptional<z.ZodString>;
1880
- assertionHeader: z.ZodOptional<z.ZodString>;
1880
+ credentials: z.ZodOptional<z.ZodPipe<z.ZodType<{
1881
+ readonly kind: "assertion";
1882
+ readonly audience: string;
1883
+ }, {
1884
+ readonly kind: "assertion";
1885
+ readonly audience: string;
1886
+ }, z.core.$ZodTypeInternals<{
1887
+ readonly kind: "assertion";
1888
+ readonly audience: string;
1889
+ }, {
1890
+ readonly kind: "assertion";
1891
+ readonly audience: string;
1892
+ }>>, z.ZodTransform<{
1893
+ readonly kind: "assertion";
1894
+ readonly audience: string;
1895
+ }, {
1896
+ readonly kind: "assertion";
1897
+ readonly audience: string;
1898
+ }>>>;
1899
+ assertionHeader: z.ZodOptional<z.ZodNever>;
1881
1900
  }, z.core.$strip>], "kind">;
1882
1901
  export type McpTransport = z.infer<typeof McpTransport>;
1883
1902
  /** The closed word table for {@link McpServerSpec}.contentOrigin — a MIRROR literal of the engine's
@@ -1899,7 +1918,26 @@ export declare const McpServerSpec: z.ZodObject<{
1899
1918
  url: z.ZodString;
1900
1919
  headerRefs: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>, unknown>>;
1901
1920
  principalHeader: z.ZodOptional<z.ZodString>;
1902
- assertionHeader: z.ZodOptional<z.ZodString>;
1921
+ credentials: z.ZodOptional<z.ZodPipe<z.ZodType<{
1922
+ readonly kind: "assertion";
1923
+ readonly audience: string;
1924
+ }, {
1925
+ readonly kind: "assertion";
1926
+ readonly audience: string;
1927
+ }, z.core.$ZodTypeInternals<{
1928
+ readonly kind: "assertion";
1929
+ readonly audience: string;
1930
+ }, {
1931
+ readonly kind: "assertion";
1932
+ readonly audience: string;
1933
+ }>>, z.ZodTransform<{
1934
+ readonly kind: "assertion";
1935
+ readonly audience: string;
1936
+ }, {
1937
+ readonly kind: "assertion";
1938
+ readonly audience: string;
1939
+ }>>>;
1940
+ assertionHeader: z.ZodOptional<z.ZodNever>;
1903
1941
  }, z.core.$strip>], "kind">;
1904
1942
  allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1905
1943
  scenarios: z.ZodPrefault<z.ZodArray<z.ZodString>>;
@@ -1916,8 +1954,6 @@ export declare const McpServerSpec: z.ZodObject<{
1916
1954
  source: z.ZodOptional<z.ZodUnknown>;
1917
1955
  toolFaces: z.ZodOptional<z.ZodUnknown>;
1918
1956
  toolAxes: z.ZodOptional<z.ZodUnknown>;
1919
- authForm: z.ZodOptional<z.ZodUnknown>;
1920
- entryKind: z.ZodOptional<z.ZodUnknown>;
1921
1957
  notes: z.ZodOptional<z.ZodString>;
1922
1958
  }, z.core.$strip>;
1923
1959
  export type McpServerSpec = z.infer<typeof McpServerSpec>;
@@ -1934,7 +1970,26 @@ export declare const McpConfig: z.ZodObject<{
1934
1970
  url: z.ZodString;
1935
1971
  headerRefs: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>, unknown>>;
1936
1972
  principalHeader: z.ZodOptional<z.ZodString>;
1937
- assertionHeader: z.ZodOptional<z.ZodString>;
1973
+ credentials: z.ZodOptional<z.ZodPipe<z.ZodType<{
1974
+ readonly kind: "assertion";
1975
+ readonly audience: string;
1976
+ }, {
1977
+ readonly kind: "assertion";
1978
+ readonly audience: string;
1979
+ }, z.core.$ZodTypeInternals<{
1980
+ readonly kind: "assertion";
1981
+ readonly audience: string;
1982
+ }, {
1983
+ readonly kind: "assertion";
1984
+ readonly audience: string;
1985
+ }>>, z.ZodTransform<{
1986
+ readonly kind: "assertion";
1987
+ readonly audience: string;
1988
+ }, {
1989
+ readonly kind: "assertion";
1990
+ readonly audience: string;
1991
+ }>>>;
1992
+ assertionHeader: z.ZodOptional<z.ZodNever>;
1938
1993
  }, z.core.$strip>], "kind">;
1939
1994
  allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1940
1995
  scenarios: z.ZodPrefault<z.ZodArray<z.ZodString>>;
@@ -1951,8 +2006,6 @@ export declare const McpConfig: z.ZodObject<{
1951
2006
  source: z.ZodOptional<z.ZodUnknown>;
1952
2007
  toolFaces: z.ZodOptional<z.ZodUnknown>;
1953
2008
  toolAxes: z.ZodOptional<z.ZodUnknown>;
1954
- authForm: z.ZodOptional<z.ZodUnknown>;
1955
- entryKind: z.ZodOptional<z.ZodUnknown>;
1956
2009
  notes: z.ZodOptional<z.ZodString>;
1957
2010
  }, z.core.$strip>>>;
1958
2011
  }, z.core.$strip>;
@@ -2575,7 +2628,26 @@ export declare const DOMAIN_SCHEMAS: {
2575
2628
  url: z.ZodString;
2576
2629
  headerRefs: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>, unknown>>;
2577
2630
  principalHeader: z.ZodOptional<z.ZodString>;
2578
- assertionHeader: z.ZodOptional<z.ZodString>;
2631
+ credentials: z.ZodOptional<z.ZodPipe<z.ZodType<{
2632
+ readonly kind: "assertion";
2633
+ readonly audience: string;
2634
+ }, {
2635
+ readonly kind: "assertion";
2636
+ readonly audience: string;
2637
+ }, z.core.$ZodTypeInternals<{
2638
+ readonly kind: "assertion";
2639
+ readonly audience: string;
2640
+ }, {
2641
+ readonly kind: "assertion";
2642
+ readonly audience: string;
2643
+ }>>, z.ZodTransform<{
2644
+ readonly kind: "assertion";
2645
+ readonly audience: string;
2646
+ }, {
2647
+ readonly kind: "assertion";
2648
+ readonly audience: string;
2649
+ }>>>;
2650
+ assertionHeader: z.ZodOptional<z.ZodNever>;
2579
2651
  }, z.core.$strip>], "kind">;
2580
2652
  allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
2581
2653
  scenarios: z.ZodPrefault<z.ZodArray<z.ZodString>>;
@@ -2592,8 +2664,6 @@ export declare const DOMAIN_SCHEMAS: {
2592
2664
  source: z.ZodOptional<z.ZodUnknown>;
2593
2665
  toolFaces: z.ZodOptional<z.ZodUnknown>;
2594
2666
  toolAxes: z.ZodOptional<z.ZodUnknown>;
2595
- authForm: z.ZodOptional<z.ZodUnknown>;
2596
- entryKind: z.ZodOptional<z.ZodUnknown>;
2597
2667
  notes: z.ZodOptional<z.ZodString>;
2598
2668
  }, z.core.$strip>>>;
2599
2669
  }, z.core.$strip>;
package/dist/types.js CHANGED
@@ -32,7 +32,7 @@ import { Sha256Digest } from "./sha256.js"; // the one `sha256:<hex>` digest for
32
32
  import { EXECUTION_LANES, EXECUTION_LANE_WORDS, LANE_SET_RULE, MEMORY_ENGINE_BACKENDS, SESSION_BACKENDS, STORE_BACKENDS, isBlankCoordinate, laneSetFlaws, retiredLaneWordRefusal } from "./execution-lanes.js"; // 7.0.0 M-R2: the lane / store vocabulary (one exported table)
33
33
  import { LANE_ENV_OWNER, LATE_LANE_ENV_KEYS, laneEnvSeat, laneRowOf } from "./execution-lane-index.js"; // package-private indexes derived from that table (none of them is in the barrel)
34
34
  import { migrationSignpost, retiredFormSentence, retiredKey } from "./retired-form.js"; // 11.0.0: the ONE retired-form sentence + key tombstone (package-private)
35
- import { retiredRoleWordsRefusal } from "./retired-role-words.js"; // 12.0.0: the retired role-word tombstone (package-private; SS-M8)
35
+ import { retiredRoleWordsRefusal } from "./retired-role-words.js"; // 12.0.0: the retired role-word tombstone (package-private)
36
36
  import { buildQuotedIssue, fixed } from "./quoted-issue.js"; // THE minting point of custom issues (package-private)
37
37
  import { RESERVED_MEMBER_NAMES, isReservedMemberName } from "./reserved-member-name.js"; // 18.0.0: the one reserved-member-name table (the record reader and the center-refs resolver ask the same predicate)
38
38
  import { AbsoluteHostPath } from "./host-path.js"; // the one host-path shape judge (a task's cwd and a project's folder / file entries)
@@ -40,6 +40,7 @@ import { RFC3339_DATE_TIME } from "./rfc3339.js"; // the package's one RFC 3339
40
40
  import { DEVICE_RELAY_RULE, deviceRelayFlaws } from "./device-relay.js"; // 16.0.0: the value grammar of the device lane's DEVICE_RELAY_URL (ws(s) URL or the literal none)
41
41
  import { TOOL_WIRE_NAME_MAX_CHARS, isUsableWireName } from "./wire-name.js"; // 18.0.0: the one "usable wire name" judge (the a2a peer name; the request-plane MCP / A2A readers ask the same function)
42
42
  import { deepFreeze } from "./deep-freeze.js";
43
+ import { McpEntryCredential } from "./mcp-entry-credential.js"; // 29.0.0: the http entry's credential reference (the one reading = the engine primitives' readCredentialRef)
43
44
  // COARSE, best-effort literal-secret SHAPE detector (NOT exhaustive — the real boundary is the env-NAME schema
44
45
  // on structured fields). Rejected in free-form value fields (worker `env`, model `extraBody`), URL components,
45
46
  // AND as an env-NAME value (an AWS key id is a valid env-NAME charset yet is a secret VALUE, not a NAME). Case-
@@ -425,20 +426,6 @@ export const PARSE_TRANSPARENT_KEYS = deepFreeze([
425
426
  validatedBy: "engine-ingest",
426
427
  why: "连接器条目声明的按工具轴覆盖层;轴的词表与形只有一只判官 = 引擎根导出 `readMcpToolAxes`(整声明一坏全拒、不默认),投影它的消费方(server 两腿)与写它的连接器都调它,本包只承载 —— 这里再写一份 zod 就是第二只判官,必漂。",
427
428
  },
428
- {
429
- domain: "mcp",
430
- path: "servers[].authForm",
431
- since: "12.2.0",
432
- validatedBy: "consumer",
433
- why: "连接器条目声明的认证形;词表与语义归读它的消费方(connectors 挂载读 / server 投影),本包只承载、不判语义。",
434
- },
435
- {
436
- domain: "mcp",
437
- path: "servers[].entryKind",
438
- since: "12.2.0",
439
- validatedBy: "consumer",
440
- why: "连接器条目声明的条目种类;词表与语义归读它的消费方(connectors 挂载读 / server 投影),本包只承载、不判语义。",
441
- },
442
429
  {
443
430
  domain: "entitlement",
444
431
  path: "subjects[].overrides[].value",
@@ -616,8 +603,8 @@ export const ModelEntry = z.object({
616
603
  // `consolidate` = 记忆整理(core FALLBACK consolidate→summarize)。
617
604
  // 两个词都**不进** roster 标记族(resolve-roster.ts):显式归 cheap 会让 server 把它钉死到 cheapRef,盖掉用户
618
605
  // `models.tiers.flash` 的档位与 core 兜底链 —— 新角色「不派生、走 core 兜底、只由 settings 显式钉」。
619
- // 12.0.0(硬破坏):`team` / `synthesize` 随 core 7.49.0 删掉(引擎对未知角色词响亮拒)—— 零别名、零双读;存着的这两个键由一次性迁移 SS-M8 删,
620
- // 迁移前到达判官的旧词拒句点名它(墓碑在 `./retired-role-words`)。`advisor`(teacher mode)本包从未收(没有消费方)。
606
+ // 12.0.0(硬破坏):`team` / `synthesize` 随 core 7.49.0 删掉(引擎对未知角色词响亮拒)—— 零别名、零双读;存着的这两个键到达判官时,
607
+ // 旧词拒句点名该词与出路(墓碑在 `./retired-role-words`)。`advisor`(teacher mode)本包从未收(没有消费方)。
621
608
  // 子集关系(本表 ⊆ 引擎角色表)由消费方服务端的型面对账钉住(本仓不依赖 core;dev 期的漂移门 ② 对拍 devDependency 那一版引擎)。
622
609
  export const ModelRole = z.enum(["default", "summarize", "subagent", "verifier", "classifier", "consolidate"], {
623
610
  error: (iss) => (iss.code === "invalid_value" ? retiredRoleWordsRefusal([iss.input]) : undefined),
@@ -628,7 +615,7 @@ export const RoleTarget = z.union([
628
615
  z.object({ select: z.object({ tier: ModelTier.optional(), needs: z.array(z.enum(["vision", "reasoning"])).optional(), prefer: z.enum(["cheapest", "premium"]).optional() }) }),
629
616
  ]);
630
617
  /** 角色 → 目标的图(`models.roles` 与 `rosters[].roles` 同一只)。键不认识 ⇒ zod 的「未知键」句;键里有 12.0.0 退役的角色词 ⇒ 那一句点名
631
- * 一次性迁移 SS-M8(同组别的未知键一并点名)。 */
618
+ * 该词与出路(同组别的未知键一并点名)。 */
632
619
  const RoleMap = z.partialRecord(ModelRole, RoleTarget, {
633
620
  // 枚举键的 record 在运行期以 `unrecognized_keys`(带 `keys`)报未知键,zod 的型面只列了 invalid_type / invalid_key —— 按运行期形读(钉:role-words-12.0.0)。
634
621
  error: (iss) => {
@@ -2575,13 +2562,19 @@ const McpEnvRefs = credentialRefs(z.record(ENV_NAME, ENV_NAME)); // target ENV k
2575
2562
  // SAME invariant-① gap as worker.env / model.extraBody / mcp stdio command+args (credentials belong on the
2576
2563
  // VALUE side = an env-NAME ref, never the name). The token charset includes `%`, so an encoded secret could ride
2577
2564
  // the name — containsSecretToken percent-decodes, catching it too. ONE shared schema for every header-name field
2578
- // (headerRefs keys, principalHeader, assertionHeader). R19.
2565
+ // (headerRefs keys, principalHeader). R19.
2579
2566
  const HTTP_HEADER_NAME = z
2580
2567
  .string()
2581
2568
  .regex(/^[A-Za-z0-9!#$%&'*+.^_`|~-]+$/, "must be an HTTP header NAME")
2582
2569
  .refine((s) => !containsSecretToken(s), buildQuotedIssue `HTTP header name must not contain a secret literal — credentials go in the env-NAME value, never the header name`);
2583
2570
  // Header NAME → ENV_NAME holding its value. Header names are tokens (RFC 7230) — not env-name-shaped.
2584
2571
  const McpHeaderRefs = credentialRefs(z.record(HTTP_HEADER_NAME, ENV_NAME));
2572
+ /** The retired `transport.assertionHeader` (29.0.0): one tombstone sentence for every face. */
2573
+ const MCP_ASSERTION_HEADER_RETIRED = {
2574
+ retiredIn: "29.0.0",
2575
+ migration: "SS-M13",
2576
+ now: 'transport.credentials = {"kind":"assertion","audience":"<connector id>"} (the audience is the connector id, used verbatim as the assertion\'s audience; the header is the engine\'s, no entry names it)',
2577
+ };
2585
2578
  export const McpTransport = z.discriminatedUnion("kind", [
2586
2579
  z.object({
2587
2580
  kind: z.literal("stdio"),
@@ -2613,14 +2606,15 @@ export const McpTransport = z.discriminatedUnion("kind", [
2613
2606
  * this is dynamic — the caller's principal, set per-request by the worker — so it's a header NAME, not an
2614
2607
  * env-NAME ref (no secret). Empty → the worker forwards no principal (server sees an anonymous call). */
2615
2608
  principalHeader: HTTP_HEADER_NAME.optional(),
2616
- /** 12.2.0 —— Header NAME the SERVICE fills with the CONNECTOR ASSERTION when proxying a tool call to this (hosted connector)
2617
- * server. Like `principalHeader` it is a header NAME, not an env-NAME ref (no secret), and it answers the same question
2618
- * — "which header carries the identity on this request" — with a different answer, so the two are MUTUALLY EXCLUSIVE:
2619
- * the entry-level check on {@link McpServerSpec} rejects both set. The name goes through the same judge
2620
- * ({@link HTTP_HEADER_NAME}) as `principalHeader` / `headerRefs` keys. This package judges only the SHAPE: how the assertion
2621
- * is minted and verified is the consumers' (connectors / server). Absent = no assertion header. On a stdio transport the key
2622
- * is stripped exactly as `principalHeader` is (the stdio member has no such key). */
2623
- assertionHeader: HTTP_HEADER_NAME.optional(),
2609
+ /** 29.0.0 —— the credential reference of a hosted connector entry: `{ kind: "assertion", audience: <connector id> }` ({@link McpEntryCredential}).
2610
+ * Read once by the engine primitives' `readCredentialRef` (the frozen copy it hands back is what this field holds); the admitted kinds are
2611
+ * `MCP_ENTRY_CREDENTIAL_KINDS` (only `assertion`); `audience` is the connector id, used verbatim as the assertion's audience. The header that
2612
+ * carries the assertion is the engine's (`MCP_ASSERTION_HEADER`) — no entry names it. Absent = no credential reference. Two entry-level rules on
2613
+ * {@link McpServerSpec}: not together with `principalHeader` (an assertion reference), not together with `headerRefs` (any kind: the engine
2614
+ * holds one reference per entry). */
2615
+ credentials: McpEntryCredential.optional(),
2616
+ /** Retired in 29.0.0 (it named the header for the connector assertion; the header is the engine's and the assertion is `credentials`). */
2617
+ assertionHeader: retiredKey("transport.assertionHeader", MCP_ASSERTION_HEADER_RETIRED),
2624
2618
  }),
2625
2619
  ]);
2626
2620
  /** The closed word table for {@link McpServerSpec}.contentOrigin — a MIRROR literal of the engine's
@@ -2694,20 +2688,17 @@ export const McpServerSpec = z.object({
2694
2688
  *
2695
2689
  * **解析透明** —— 形归谁校验、为什么不放这里:{@link PARSE_TRANSPARENT_KEYS}(`mcp.servers[].toolAxes`)。 */
2696
2690
  toolAxes: z.unknown().optional(),
2697
- /** 12.2.0 —— 连接器条目的认证形声明。缺席 = 不铸键;语义归消费方,本包只承载。
2698
- *
2699
- * **解析透明** —— 形归谁校验、为什么不放这里:{@link PARSE_TRANSPARENT_KEYS}(`mcp.servers[].authForm`)。 */
2700
- authForm: z.unknown().optional(),
2701
- /** 12.2.0 —— 连接器条目的种类声明。缺席 = 不铸键;语义归消费方,本包只承载。
2702
- *
2703
- * **解析透明** —— 形归谁校验、为什么不放这里:{@link PARSE_TRANSPARENT_KEYS}(`mcp.servers[].entryKind`)。 */
2704
- entryKind: z.unknown().optional(),
2705
2691
  notes: z.string().optional(),
2706
2692
  }).superRefine((s, ctx) => {
2707
- // 身份头二选一(12.2.0):`principalHeader` 与 `assertionHeader` 回答同一个问题「这台 http 服务器的请求上用哪个头送身份」—— 同设 = 两个答案。
2708
- // 互斥只在这一处判(拒句点名条目名,所以住条目层,不住传输层:传输层看不见 `name`)。
2709
- if (s.transport.kind === "http" && s.transport.principalHeader !== undefined && s.transport.assertionHeader !== undefined)
2710
- ctx.addIssue({ code: "custom", ...buildQuotedIssue `mcp server "${s.name}" sets both principalHeader and assertionHeader — an http entry names ONE header for the identity it sends: keep principalHeader (the end-user principal) or assertionHeader (the connector assertion), not both`, path: ["transport", "assertionHeader"] });
2693
+ // 29.0.0 —— two rules, one each, both in the entry layer (the sentence names the entry; the transport layer cannot see `name`):
2694
+ // · principalHeader ⊥ an assertion reference: the end-user principal header and a connector assertion answer "who is calling" twice;
2695
+ // · headerRefs ⊥ credentials (by presence, whatever the kind): the engine holds ONE credential reference per entry, and static header refs are minted into that same seat.
2696
+ if (s.transport.kind === "http" && s.transport.credentials !== undefined) {
2697
+ if (s.transport.principalHeader !== undefined && s.transport.credentials.kind === "assertion")
2698
+ ctx.addIssue({ code: "custom", ...buildQuotedIssue `mcp server "${s.name}" sets both principalHeader and an assertion reference in credentials — a hosted connector entry identifies its caller by the assertion: keep one of the two`, path: ["transport", "credentials"] });
2699
+ if (s.transport.headerRefs !== undefined)
2700
+ ctx.addIssue({ code: "custom", ...buildQuotedIssue `mcp server "${s.name}" sets both headerRefs and credentials — an entry carries one credential reference: keep one of the two`, path: ["transport", "credentials"] });
2701
+ }
2711
2702
  });
2712
2703
  export const McpConfig = z
2713
2704
  .object({ servers: z.array(McpServerSpec).prefault([]) })
@@ -4,9 +4,9 @@
4
4
  > 每次全量重算并逐名比对 —— 加 / 删 / 改形一个导出而不重生成本档 ⇒ 红。导出面的每次变动因此以本档的 diff 出现在评审里。
5
5
  > 形:`value` = 运行期拿得到的值;`type` = 只在类型层;`value+type` = 同名的值与类型(zod schema 与它推出的类型)。
6
6
 
7
- 子路径 24 条(资产出口 `./package.json` / `./fleet-paths.json` 不是模块,不列),导出名合计 1522 个(同名在多条子路径上各计一次)。
7
+ 子路径 24 条(资产出口 `./package.json` / `./fleet-paths.json` 不是模块,不列),导出名合计 1562 个(同名在多条子路径上各计一次)。
8
8
 
9
- ## `.`(798)
9
+ ## `.`(831)
10
10
 
11
11
  - `A2aConfig` — value+type
12
12
  - `A2aPeerSpec` — value+type
@@ -42,6 +42,10 @@
42
42
  - `CONFIG_CHANGE_SOURCES` — value
43
43
  - `CONFIG_DOCUMENT_REFUSAL_REASONS` — value
44
44
  - `CONFIG_ROOT_DOCUMENTS` — value
45
+ - `CONNECTOR_AUTHORIZE_QUERY` — value
46
+ - `CONNECTOR_AUTHORIZE_URL_FLAWS` — value
47
+ - `CONNECTOR_ID_MAX` — value
48
+ - `CONNECTOR_ID_RULE` — value
45
49
  - `CONTROL_AND_BIDI_CHARS` — value
46
50
  - `CREDENTIAL_PARAM_NAMES` — value
47
51
  - `CROSS_SESSION_INBOUND_UNSET` — value
@@ -73,6 +77,10 @@
73
77
  - `ConfigPath` — type
74
78
  - `ConfigReader` — type
75
79
  - `ConfigRootDocument` — type
80
+ - `ConnectorAuthorizeBinding` — type
81
+ - `ConnectorAuthorizeQueryName` — type
82
+ - `ConnectorAuthorizeUrlFlaw` — type
83
+ - `ConnectorId` — value+type
76
84
  - `CredentialHandleAnswer` — value+type
77
85
  - `CredentialParamName` — type
78
86
  - `CredentialResolveRequest` — value+type
@@ -216,6 +224,7 @@
216
224
  - `HOOK_CLOUD_WORDS` — value
217
225
  - `HOOK_ENTRY_FIELDS` — value
218
226
  - `HOOK_ENTRY_TYPES` — value
227
+ - `HOOK_ENV_BLANK_REASONS` — value
219
228
  - `HOOK_EVENTS` — value
220
229
  - `HOOK_EVENT_MATCHER_FIELD` — value
221
230
  - `HOOK_EVENT_OWNER` — value
@@ -233,6 +242,7 @@
233
242
  - `HookEntryFields` — type
234
243
  - `HookEntryType` — type
235
244
  - `HookEnvBlank` — type
245
+ - `HookEnvBlankReason` — type
236
246
  - `HookEnvInterpolation` — type
237
247
  - `HookEventName` — value+type
238
248
  - `HookInput` — value+type
@@ -277,11 +287,15 @@
277
287
  - `LAYER_ADMISSION_VERDICTS` — value
278
288
  - `LAYER_PARTS_UNREAD_CODE` — value
279
289
  - `LEASE_STATES` — value
290
+ - `LIFECYCLE_PAGE_REFUSALS` — value
291
+ - `LIFECYCLE_PAGE_REFUSAL_ERRORS` — value
280
292
  - `LaneSetFlaw` — type
281
293
  - `LaneTenancy` — type
282
294
  - `LayerAdmissionVerdict` — type
283
295
  - `LayerPartsUnreadNotice` — type
284
296
  - `LeaseState` — value+type
297
+ - `LifecyclePageRefusal` — value+type
298
+ - `LifecyclePageRefusalError` — type
285
299
  - `LimitsConfig` — value+type
286
300
  - `LogoutRequest` — value+type
287
301
  - `LogoutResponse` — value+type
@@ -289,7 +303,9 @@
289
303
  - `MAX_HASH_DEPTH` — value
290
304
  - `MAX_HASH_WRAPPER_RESERVE` — value
291
305
  - `MCP_CONTENT_ORIGINS` — value
306
+ - `MCP_ENTRY_CREDENTIAL_KINDS` — value
292
307
  - `MCP_POLICY_RULES` — value
308
+ - `MCP_REQUEST_KEY_REFUSALS` — value
293
309
  - `MCP_SERVER_LIST_KEYS` — value
294
310
  - `MEMORY_ENGINE_BACKENDS` — value
295
311
  - `MIN_TRUST_WORDS` — value
@@ -300,11 +316,14 @@
300
316
  - `MarkedMigrationId` — type
301
317
  - `McpConfig` — value+type
302
318
  - `McpContentOrigin` — type
319
+ - `McpEntryCredential` — value+type
320
+ - `McpEntryCredentialKind` — type
303
321
  - `McpEntryKeyIssue` — type
304
322
  - `McpPolicyBlock` — type
305
323
  - `McpPolicyLayer` — type
306
324
  - `McpPolicyRule` — type
307
325
  - `McpPolicyServer` — type
326
+ - `McpRequestKeyRefusal` — type
308
327
  - `McpServerListEntry` — type
309
328
  - `McpServerListKey` — type
310
329
  - `McpServerSpec` — value+type
@@ -342,7 +361,9 @@
342
361
  - `PLAIN_STRING_RECORD_FAULTS` — value
343
362
  - `PLUGIN_ORIGIN` — value
344
363
  - `PRINCIPAL_INC_CLAIM` — value
364
+ - `PRINCIPAL_LIFECYCLE_EVENT_KINDS` — value
345
365
  - `PRINCIPAL_MAX_LENGTH` — value
366
+ - `PRINCIPAL_RECONCILE_MAX_ITEMS` — value
346
367
  - `PRIVATE_KEY_PEM_HEADER` — value
347
368
  - `PROBE_CPU_CORES_MAX` — value
348
369
  - `PROBE_MEM_BYTES_MAX` — value
@@ -380,7 +401,14 @@
380
401
  - `PreToolUseHookInput` — value
381
402
  - `PrincipalCapsWire` — value+type
382
403
  - `PrincipalIncarnation` — value+type
404
+ - `PrincipalLifecycleEvent` — value+type
405
+ - `PrincipalLifecycleEventKind` — type
406
+ - `PrincipalLifecycleEventPage` — value+type
383
407
  - `PrincipalOrgMemoryWire` — value+type
408
+ - `PrincipalReconcileAnswer` — value+type
409
+ - `PrincipalReconcileItem` — value+type
410
+ - `PrincipalReconcileRequest` — value+type
411
+ - `PrincipalStanding` — value+type
384
412
  - `ProjectContextItem` — value+type
385
413
  - `ProjectContextItemKind` — type
386
414
  - `ProjectRegistration` — value+type
@@ -429,6 +457,7 @@
429
457
  - `RemoteExecSpec` — value+type
430
458
  - `RequestMcpTransport` — type
431
459
  - `RequestMcpTransportRead` — type
460
+ - `RequestStringRecordRead` — type
432
461
  - `ReservedMemberName` — type
433
462
  - `ResolvedEffective` — type
434
463
  - `ResolvedMemberAdmission` — type
@@ -640,7 +669,10 @@
640
669
  - `classifyTimeClaims` — value
641
670
  - `collectEnvRefs` — value
642
671
  - `compareGeneration` — value
672
+ - `connectorAuthorizeUrlFlaws` — value
673
+ - `connectorAuthorizeUrlOf` — value
643
674
  - `containsSecretToken` — value
675
+ - `contentDigest` — value
644
676
  - `createSiblingResolver` — value
645
677
  - `credentialParamWordOf` — value
646
678
  - `danglingRefs` — value
@@ -678,6 +710,7 @@
678
710
  - `isAtLeast` — value
679
711
  - `isBlankCoordinate` — value
680
712
  - `isCanonicalGeneration` — value
713
+ - `isConnectorId` — value
681
714
  - `isContentOriginWord` — value
682
715
  - `isCredentialParamName` — value
683
716
  - `isDisclosableIdentity` — value
@@ -744,10 +777,10 @@
744
777
  - `readEngineSignal` — value
745
778
  - `readEnvModelSlots` — value
746
779
  - `readHttpHookAllowlistLayer` — value
747
- - `readMcpIdentityHeaders` — value
748
780
  - `readModelRefusals` — value
749
781
  - `readPlainStringRecord` — value
750
782
  - `readRequestMcpTransport` — value
783
+ - `readRequestStringRecord` — value
751
784
  - `readScopedTokenBinding` — value
752
785
  - `readServingLeaseRequest` — value
753
786
  - `readServingLeaseResponse` — value
@@ -972,10 +1005,11 @@
972
1005
  - `stableHash` — value
973
1006
  - `stableStringify` — value
974
1007
 
975
- ## `./sha256`(3)
1008
+ ## `./sha256`(4)
976
1009
 
977
1010
  - `SHA256_DIGEST_RE` — value
978
1011
  - `Sha256Digest` — value
1012
+ - `contentDigest` — value
979
1013
  - `sha256Hex` — value
980
1014
 
981
1015
  ## `./skills-manifest`(4)
@@ -1125,7 +1159,7 @@
1125
1159
  - `LegName` — type
1126
1160
  - `LegOutcome` — type
1127
1161
  - `LegStance` — type
1128
- - `NON_PORTABLE_DOMAINS` — value
1162
+ - `NON_LOCAL_READ_DOMAINS` — value
1129
1163
  - `OutcomeDivergence` — type
1130
1164
  - `PACKAGE_ROOT` — value
1131
1165
  - `PathDivergence` — type
@@ -1215,8 +1249,9 @@
1215
1249
  - `tightenVerdict` — value
1216
1250
  - `trustRank` — value
1217
1251
 
1218
- ## `./node`(56)
1252
+ ## `./node`(60)
1219
1253
 
1254
+ - `ConditionalWriteResult` — type
1220
1255
  - `ConfigBundle` — type
1221
1256
  - `ConfigDDocumentName` — type
1222
1257
  - `ConfigDFileReason` — type
@@ -1234,7 +1269,9 @@
1234
1269
  - `EnvModelsMint` — type
1235
1270
  - `FileConfigRead` — type
1236
1271
  - `FileConfigStore` — value+type
1272
+ - `LOCAL_READ_DOMAINS` — value
1237
1273
  - `LocalConfig` — type
1274
+ - `LocalReadDomain` — type
1238
1275
  - `MigrateConfigDirectoryOptions` — type
1239
1276
  - `MigrateConfigDocumentsOptions` — type
1240
1277
  - `NON_DOMAIN_CONFIG_FILES` — value
@@ -1270,6 +1307,7 @@
1270
1307
  - `validateRemoteExec` — value
1271
1308
  - `writeBundle` — value
1272
1309
  - `writeDomainFile` — value
1310
+ - `writeDomainFileIf` — value
1273
1311
  - `writeEnvModelsDecision` — value
1274
1312
  - `writeEnvModelsDecisionSync` — value
1275
1313
  - `writeRemoteExec` — value
@@ -1303,7 +1341,7 @@
1303
1341
  - `parseSchedulerStore` — value
1304
1342
  - `serializeSchedulerStore` — value
1305
1343
 
1306
- ## `./hooks`(103)
1344
+ ## `./hooks`(105)
1307
1345
 
1308
1346
  - `AgentHookEntry` — value+type
1309
1347
  - `AssistantTurnError` — value+type
@@ -1330,6 +1368,7 @@
1330
1368
  - `HOOK_CLOUD_WORDS` — value
1331
1369
  - `HOOK_ENTRY_FIELDS` — value
1332
1370
  - `HOOK_ENTRY_TYPES` — value
1371
+ - `HOOK_ENV_BLANK_REASONS` — value
1333
1372
  - `HOOK_EVENTS` — value
1334
1373
  - `HOOK_EVENT_MATCHER_FIELD` — value
1335
1374
  - `HOOK_EVENT_OWNER` — value
@@ -1341,6 +1380,7 @@
1341
1380
  - `HookEntryFields` — type
1342
1381
  - `HookEntryType` — type
1343
1382
  - `HookEnvBlank` — type
1383
+ - `HookEnvBlankReason` — type
1344
1384
  - `HookEnvInterpolation` — type
1345
1385
  - `HookEventName` — value+type
1346
1386
  - `HookInput` — value+type