@tormentalabs/claude-code-wire-compat 0.7.0 → 0.8.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 (97) hide show
  1. package/CHANGELOG.md +110 -0
  2. package/README.md +31 -4
  3. package/dist/account-features.d.ts +11 -0
  4. package/dist/account-features.d.ts.map +1 -0
  5. package/dist/account-features.js +98 -0
  6. package/dist/account-features.js.map +1 -0
  7. package/dist/anti-verbosity.d.ts.map +1 -1
  8. package/dist/anti-verbosity.js +3 -3
  9. package/dist/anti-verbosity.js.map +1 -1
  10. package/dist/betas.d.ts +74 -2
  11. package/dist/betas.d.ts.map +1 -1
  12. package/dist/betas.js +158 -18
  13. package/dist/betas.js.map +1 -1
  14. package/dist/build-request.d.ts.map +1 -1
  15. package/dist/build-request.js +208 -24
  16. package/dist/build-request.js.map +1 -1
  17. package/dist/contracts.d.ts +181 -2
  18. package/dist/contracts.d.ts.map +1 -1
  19. package/dist/contracts.js.map +1 -1
  20. package/dist/fingerprint.d.ts +28 -5
  21. package/dist/fingerprint.d.ts.map +1 -1
  22. package/dist/fingerprint.js +63 -5
  23. package/dist/fingerprint.js.map +1 -1
  24. package/dist/headers.d.ts +60 -1
  25. package/dist/headers.d.ts.map +1 -1
  26. package/dist/headers.js +176 -23
  27. package/dist/headers.js.map +1 -1
  28. package/dist/index.d.ts +4 -2
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +3 -1
  31. package/dist/index.js.map +1 -1
  32. package/dist/limits.d.ts +29 -2
  33. package/dist/limits.d.ts.map +1 -1
  34. package/dist/limits.js +29 -2
  35. package/dist/limits.js.map +1 -1
  36. package/dist/model-capabilities.d.ts +8 -4
  37. package/dist/model-capabilities.d.ts.map +1 -1
  38. package/dist/model-capabilities.js +14 -7
  39. package/dist/model-capabilities.js.map +1 -1
  40. package/dist/model-identity.d.ts +15 -2
  41. package/dist/model-identity.d.ts.map +1 -1
  42. package/dist/model-identity.js +44 -1
  43. package/dist/model-identity.js.map +1 -1
  44. package/dist/model-queries.d.ts +11 -1
  45. package/dist/model-queries.d.ts.map +1 -1
  46. package/dist/model-queries.js +51 -7
  47. package/dist/model-queries.js.map +1 -1
  48. package/dist/models.d.ts.map +1 -1
  49. package/dist/models.js +2 -2
  50. package/dist/models.js.map +1 -1
  51. package/dist/profile-behaviors.d.ts +72 -0
  52. package/dist/profile-behaviors.d.ts.map +1 -1
  53. package/dist/profile-behaviors.js +66 -15
  54. package/dist/profile-behaviors.js.map +1 -1
  55. package/dist/profiles/beta-registry-2.1.329.d.ts +229 -0
  56. package/dist/profiles/beta-registry-2.1.329.d.ts.map +1 -0
  57. package/dist/profiles/beta-registry-2.1.329.js +281 -0
  58. package/dist/profiles/beta-registry-2.1.329.js.map +1 -0
  59. package/dist/profiles/claude-code-2.1.329.d.ts +3 -0
  60. package/dist/profiles/claude-code-2.1.329.d.ts.map +1 -0
  61. package/dist/profiles/claude-code-2.1.329.js +466 -0
  62. package/dist/profiles/claude-code-2.1.329.js.map +1 -0
  63. package/dist/redaction.d.ts.map +1 -1
  64. package/dist/redaction.js +7 -3
  65. package/dist/redaction.js.map +1 -1
  66. package/dist/request-body.d.ts +27 -1
  67. package/dist/request-body.d.ts.map +1 -1
  68. package/dist/request-body.js +192 -23
  69. package/dist/request-body.js.map +1 -1
  70. package/dist/system-prompt.d.ts.map +1 -1
  71. package/dist/system-prompt.js +6 -4
  72. package/dist/system-prompt.js.map +1 -1
  73. package/dist/tools-used.d.ts +52 -0
  74. package/dist/tools-used.d.ts.map +1 -0
  75. package/dist/tools-used.js +116 -0
  76. package/dist/tools-used.js.map +1 -0
  77. package/package.json +5 -1
  78. package/src/account-features.ts +114 -0
  79. package/src/anti-verbosity.ts +8 -3
  80. package/src/betas.ts +252 -22
  81. package/src/build-request.ts +251 -26
  82. package/src/contracts.ts +185 -3
  83. package/src/fingerprint.ts +84 -7
  84. package/src/headers.ts +221 -21
  85. package/src/index.ts +10 -0
  86. package/src/limits.ts +31 -2
  87. package/src/model-capabilities.ts +16 -7
  88. package/src/model-identity.ts +62 -2
  89. package/src/model-queries.ts +71 -8
  90. package/src/models.ts +2 -1
  91. package/src/profile-behaviors.ts +150 -16
  92. package/src/profiles/beta-registry-2.1.329.ts +298 -0
  93. package/src/profiles/claude-code-2.1.329.ts +471 -0
  94. package/src/redaction.ts +7 -3
  95. package/src/request-body.ts +253 -22
  96. package/src/system-prompt.ts +6 -2
  97. package/src/tools-used.ts +134 -0
@@ -0,0 +1,229 @@
1
+ /**
2
+ * Genuine-client beta registry as of 2.1.329, upstream factory chain at byte
3
+ * offset 7881648 (view line 109432) and ordered array `a1i` immediately after
4
+ * it.
5
+ *
6
+ * KEY ORDER IS LOAD-BEARING. The array is the raw slot order and is NOT
7
+ * append-only: six entries are new since 2.1.280 and none of them sits at the
8
+ * end. See `docs/protocol/versions/claude-code-2.1.329-analysis.md` section 5.1.
9
+ *
10
+ * The upstream array carries 48 slots. Two are explicit `null` (indices 39 and
11
+ * 43, `yBn` and `ml`) and one is a header-less member (index 30, `fS`, declared
12
+ * as `pl("mid_conversation_system")`), leaving the forty-five entries below.
13
+ * Both nulls are null IN THIS BUILD, which is all the bytes establish; neither
14
+ * is transcribed, because a null is not an entry.
15
+ *
16
+ * `mid_conversation_system` is deliberately ABSENT. The 2.1.280 registry
17
+ * carried it with the header `mid-conversation-system-2026-04-07`. In 2.1.329
18
+ * the slot is declared as `pl("mid_conversation_system")`, a call that passes a
19
+ * name and no header, and the old identifier survives only as a bare string
20
+ * constant (`Zkt`) that no registry member points at. The beta therefore graduated: the client no longer
21
+ * advertises it, while the behaviour it gated stays on. That is why
22
+ * `ComposableBetaRegistry.MID_CONVERSATION_SYSTEM` is optional. The slot sits
23
+ * between `TOOL_PROVENANCE` and `PER_MESSAGE_EFFORT` and is recorded here
24
+ * rather than silently closed up, because a later build may give it a header.
25
+ *
26
+ * `NARRATION_SUMMARIES` stays absent exactly as in the two previous registries.
27
+ *
28
+ * Further registry members are deliberately absent:
29
+ * `tool_provenance_server_url_latch` (new at 2.1.329),
30
+ * `mid_conv_cache_promotion_latch` and `mid_conv_cache_promotion_ok_latch`.
31
+ * Upstream declares them through the same factory but excludes them from the
32
+ * ordered array, and their "header" values are internal `x-cc-*` names, not
33
+ * beta identifiers. Transcribing them would corrupt the registry. Likewise
34
+ * `thinking_display` (`i1i`, declared through `pl()`) is outside the array.
35
+ *
36
+ * `oauth_auth` is the one entry whose header is NOT a string literal upstream:
37
+ * the declaration reads `hWe=k("oauth_auth",Yu)`, and `Yu` resolves to
38
+ * `"oauth-2025-04-20"`.
39
+ *
40
+ * `tool_search` is reused by two entries (`ADVANCED_TOOL_USE` and
41
+ * `TOOL_SEARCH`) as in 2.1.280; the two headers differ and only the second is
42
+ * a member of the third-party set.
43
+ */
44
+ export declare const BETA_REGISTRY_2_1_329: {
45
+ CLAUDE_CODE: {
46
+ featureKey: string;
47
+ header: string;
48
+ };
49
+ OAUTH_AUTH: {
50
+ featureKey: string;
51
+ header: string;
52
+ };
53
+ INTERLEAVED_THINKING: {
54
+ featureKey: string;
55
+ header: string;
56
+ };
57
+ LONG_CONTEXT: {
58
+ featureKey: string;
59
+ header: string;
60
+ };
61
+ CONTEXT_MANAGEMENT: {
62
+ featureKey: string;
63
+ header: string;
64
+ };
65
+ STRUCTURED_OUTPUTS: {
66
+ featureKey: string;
67
+ header: string;
68
+ };
69
+ WEB_SEARCH: {
70
+ featureKey: string;
71
+ header: string;
72
+ };
73
+ WEB_SEARCH_RESULTS_ONLY: {
74
+ featureKey: string;
75
+ header: string;
76
+ };
77
+ ADVANCED_TOOL_USE: {
78
+ featureKey: string;
79
+ header: string;
80
+ };
81
+ TOOL_SEARCH: {
82
+ featureKey: string;
83
+ header: string;
84
+ };
85
+ EFFORT: {
86
+ featureKey: string;
87
+ header: string;
88
+ };
89
+ TASK_BUDGETS: {
90
+ featureKey: string;
91
+ header: string;
92
+ };
93
+ PROMPT_CACHING_SCOPE: {
94
+ featureKey: string;
95
+ header: string;
96
+ };
97
+ PROMPT_CACHING_EVICT: {
98
+ featureKey: string;
99
+ header: string;
100
+ };
101
+ CACHE_KEEPALIVE: {
102
+ featureKey: string;
103
+ header: string;
104
+ };
105
+ EXTENDED_CACHE_TTL: {
106
+ featureKey: string;
107
+ header: string;
108
+ };
109
+ SPEED: {
110
+ featureKey: string;
111
+ header: string;
112
+ };
113
+ REDACT_THINKING: {
114
+ featureKey: string;
115
+ header: string;
116
+ };
117
+ THINKING_RESUMPTION: {
118
+ featureKey: string;
119
+ header: string;
120
+ };
121
+ RESUMPTION: {
122
+ featureKey: string;
123
+ header: string;
124
+ };
125
+ THINKING_TOKEN_COUNT: {
126
+ featureKey: string;
127
+ header: string;
128
+ };
129
+ AFK_MODE: {
130
+ featureKey: string;
131
+ header: string;
132
+ };
133
+ ADVISOR_TOOL: {
134
+ featureKey: string;
135
+ header: string;
136
+ };
137
+ CACHE_DIAGNOSIS: {
138
+ featureKey: string;
139
+ header: string;
140
+ };
141
+ CONTEXT_HINT: {
142
+ featureKey: string;
143
+ header: string;
144
+ };
145
+ MCP_SERVERS: {
146
+ featureKey: string;
147
+ header: string;
148
+ };
149
+ FILES_API: {
150
+ featureKey: string;
151
+ header: string;
152
+ };
153
+ ENVIRONMENTS: {
154
+ featureKey: string;
155
+ header: string;
156
+ };
157
+ CCR_BYOC: {
158
+ featureKey: string;
159
+ header: string;
160
+ };
161
+ TOOL_PROVENANCE: {
162
+ featureKey: string;
163
+ header: string;
164
+ };
165
+ PER_MESSAGE_EFFORT: {
166
+ featureKey: string;
167
+ header: string;
168
+ };
169
+ PER_TURN_TIMING: {
170
+ featureKey: string;
171
+ header: string;
172
+ };
173
+ MID_CONV_TOOL_CHANGE: {
174
+ featureKey: string;
175
+ header: string;
176
+ };
177
+ INLINE_TOOLS: {
178
+ featureKey: string;
179
+ header: string;
180
+ };
181
+ SERVER_SIDE_FALLBACK: {
182
+ featureKey: string;
183
+ header: string;
184
+ };
185
+ PROGRAM_USE_CASE_IDS: {
186
+ featureKey: string;
187
+ header: string;
188
+ };
189
+ SERVER_SIDE_FALLBACK_CATEGORY: {
190
+ featureKey: string;
191
+ header: string;
192
+ };
193
+ FALLBACK_CREDIT: {
194
+ featureKey: string;
195
+ header: string;
196
+ };
197
+ AUTO_MODE_CLASSIFIER: {
198
+ featureKey: string;
199
+ header: string;
200
+ };
201
+ CLAUDE_CODE_SIDE_QUERY: {
202
+ featureKey: string;
203
+ header: string;
204
+ };
205
+ DANGEROUS_TOOL_USE: {
206
+ featureKey: string;
207
+ header: string;
208
+ };
209
+ THINKING_DISPLAY_UPDATES: {
210
+ featureKey: string;
211
+ header: string;
212
+ };
213
+ MESSAGE_THREADS: {
214
+ featureKey: string;
215
+ header: string;
216
+ };
217
+ MID_CONVERSATION_SYSTEM_CLEAR_AT: {
218
+ featureKey: string;
219
+ header: string;
220
+ };
221
+ THINKING_BINDING_CONTROLS: {
222
+ featureKey: string;
223
+ header: string;
224
+ };
225
+ };
226
+ export declare const THIRD_PARTY_ALLOWED_BETAS_2_1_329: ReadonlySet<string>;
227
+ export declare const BEDROCK_UNSUPPORTED_BETAS_2_1_329: ReadonlySet<string>;
228
+ export declare const COUNT_TOKENS_BETAS_2_1_329: ReadonlySet<string>;
229
+ //# sourceMappingURL=beta-registry-2.1.329.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beta-registry-2.1.329.d.ts","sourceRoot":"","sources":["../../src/profiles/beta-registry-2.1.329.ts"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyKY,CAAC;AAa/C,eAAO,MAAM,iCAAiC,EAAE,WAAW,CAAC,MAAM,CAkB/D,CAAC;AAUJ,eAAO,MAAM,iCAAiC,EAAE,WAAW,CAAC,MAAM,CAO/D,CAAC;AAOJ,eAAO,MAAM,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAO1D,CAAC"}
@@ -0,0 +1,281 @@
1
+ // SPDX-License-Identifier: GPL-3.0-or-later
2
+ /*
3
+ * `deepFreeze` is duplicated from `src/beta-registry.ts` rather than imported,
4
+ * for the same reason the 2.1.233 and 2.1.280 registries duplicate it: a shared
5
+ * helper module would make every registry import-coupled for four lines of
6
+ * code, and keeping each registry a leaf keeps a version bump from rippling.
7
+ */
8
+ function deepFreeze(value) {
9
+ if (value !== null && typeof value === "object") {
10
+ for (const key of Reflect.ownKeys(value)) {
11
+ deepFreeze(Reflect.get(value, key));
12
+ }
13
+ Object.freeze(value);
14
+ }
15
+ return value;
16
+ }
17
+ /**
18
+ * Genuine-client beta registry as of 2.1.329, upstream factory chain at byte
19
+ * offset 7881648 (view line 109432) and ordered array `a1i` immediately after
20
+ * it.
21
+ *
22
+ * KEY ORDER IS LOAD-BEARING. The array is the raw slot order and is NOT
23
+ * append-only: six entries are new since 2.1.280 and none of them sits at the
24
+ * end. See `docs/protocol/versions/claude-code-2.1.329-analysis.md` section 5.1.
25
+ *
26
+ * The upstream array carries 48 slots. Two are explicit `null` (indices 39 and
27
+ * 43, `yBn` and `ml`) and one is a header-less member (index 30, `fS`, declared
28
+ * as `pl("mid_conversation_system")`), leaving the forty-five entries below.
29
+ * Both nulls are null IN THIS BUILD, which is all the bytes establish; neither
30
+ * is transcribed, because a null is not an entry.
31
+ *
32
+ * `mid_conversation_system` is deliberately ABSENT. The 2.1.280 registry
33
+ * carried it with the header `mid-conversation-system-2026-04-07`. In 2.1.329
34
+ * the slot is declared as `pl("mid_conversation_system")`, a call that passes a
35
+ * name and no header, and the old identifier survives only as a bare string
36
+ * constant (`Zkt`) that no registry member points at. The beta therefore graduated: the client no longer
37
+ * advertises it, while the behaviour it gated stays on. That is why
38
+ * `ComposableBetaRegistry.MID_CONVERSATION_SYSTEM` is optional. The slot sits
39
+ * between `TOOL_PROVENANCE` and `PER_MESSAGE_EFFORT` and is recorded here
40
+ * rather than silently closed up, because a later build may give it a header.
41
+ *
42
+ * `NARRATION_SUMMARIES` stays absent exactly as in the two previous registries.
43
+ *
44
+ * Further registry members are deliberately absent:
45
+ * `tool_provenance_server_url_latch` (new at 2.1.329),
46
+ * `mid_conv_cache_promotion_latch` and `mid_conv_cache_promotion_ok_latch`.
47
+ * Upstream declares them through the same factory but excludes them from the
48
+ * ordered array, and their "header" values are internal `x-cc-*` names, not
49
+ * beta identifiers. Transcribing them would corrupt the registry. Likewise
50
+ * `thinking_display` (`i1i`, declared through `pl()`) is outside the array.
51
+ *
52
+ * `oauth_auth` is the one entry whose header is NOT a string literal upstream:
53
+ * the declaration reads `hWe=k("oauth_auth",Yu)`, and `Yu` resolves to
54
+ * `"oauth-2025-04-20"`.
55
+ *
56
+ * `tool_search` is reused by two entries (`ADVANCED_TOOL_USE` and
57
+ * `TOOL_SEARCH`) as in 2.1.280; the two headers differ and only the second is
58
+ * a member of the third-party set.
59
+ */
60
+ export const BETA_REGISTRY_2_1_329 = deepFreeze({
61
+ CLAUDE_CODE: { featureKey: "claude_code", header: "claude-code-20250219" },
62
+ OAUTH_AUTH: { featureKey: "oauth_auth", header: "oauth-2025-04-20" },
63
+ INTERLEAVED_THINKING: {
64
+ featureKey: "interleaved_thinking",
65
+ header: "interleaved-thinking-2025-05-14",
66
+ },
67
+ LONG_CONTEXT: { featureKey: "long_context", header: "context-1m-2025-08-07" },
68
+ CONTEXT_MANAGEMENT: {
69
+ featureKey: "context_management",
70
+ header: "context-management-2025-06-27",
71
+ },
72
+ STRUCTURED_OUTPUTS: {
73
+ featureKey: "structured_outputs",
74
+ header: "structured-outputs-2025-12-15",
75
+ },
76
+ WEB_SEARCH: { featureKey: "web_search", header: "web-search-2025-03-05" },
77
+ // New at 2.1.329.
78
+ WEB_SEARCH_RESULTS_ONLY: {
79
+ featureKey: "web_search_results_only",
80
+ header: "web-search-results-only-2026-11-15",
81
+ },
82
+ ADVANCED_TOOL_USE: {
83
+ featureKey: "tool_search",
84
+ header: "advanced-tool-use-2025-11-20",
85
+ },
86
+ TOOL_SEARCH: {
87
+ featureKey: "tool_search",
88
+ header: "tool-search-tool-2025-10-19",
89
+ },
90
+ EFFORT: { featureKey: "effort", header: "effort-2025-11-24" },
91
+ TASK_BUDGETS: {
92
+ featureKey: "task_budgets",
93
+ header: "task-budgets-2026-03-13",
94
+ },
95
+ PROMPT_CACHING_SCOPE: {
96
+ featureKey: "prompt_caching_scope",
97
+ header: "prompt-caching-scope-2026-01-05",
98
+ },
99
+ PROMPT_CACHING_EVICT: {
100
+ featureKey: "prompt_caching_evict",
101
+ header: "prompt-caching-evict-2026-05-12",
102
+ },
103
+ // New at 2.1.329.
104
+ CACHE_KEEPALIVE: {
105
+ featureKey: "cache_keepalive",
106
+ header: "cache-keepalive-2026-09-03",
107
+ },
108
+ EXTENDED_CACHE_TTL: {
109
+ featureKey: "extended_cache_ttl",
110
+ header: "extended-cache-ttl-2025-04-11",
111
+ },
112
+ SPEED: { featureKey: "speed", header: "fast-mode-2026-02-01" },
113
+ REDACT_THINKING: {
114
+ featureKey: "redact_thinking",
115
+ header: "redact-thinking-2026-02-12",
116
+ },
117
+ THINKING_RESUMPTION: {
118
+ featureKey: "thinking_resumption",
119
+ header: "thinking-resumption-2026-07-17",
120
+ },
121
+ // New at 2.1.329, and inserted rather than appended: it sits directly after
122
+ // `THINKING_RESUMPTION`, ahead of entries that already existed.
123
+ RESUMPTION: {
124
+ featureKey: "resumption",
125
+ header: "resumption-2026-10-08",
126
+ },
127
+ THINKING_TOKEN_COUNT: {
128
+ featureKey: "thinking_token_count",
129
+ header: "thinking-token-count-2026-05-13",
130
+ },
131
+ AFK_MODE: { featureKey: "afk_mode", header: "afk-mode-2026-01-31" },
132
+ ADVISOR_TOOL: {
133
+ featureKey: "advisor_tool",
134
+ header: "advisor-tool-2026-03-01",
135
+ },
136
+ CACHE_DIAGNOSIS: {
137
+ featureKey: "cache_diagnosis",
138
+ header: "cache-diagnosis-2026-04-07",
139
+ },
140
+ CONTEXT_HINT: {
141
+ featureKey: "context_hint",
142
+ header: "context-hint-2026-04-09",
143
+ },
144
+ MCP_SERVERS: { featureKey: "mcp_servers", header: "mcp-servers-2025-12-04" },
145
+ FILES_API: { featureKey: "files_api", header: "files-api-2025-04-14" },
146
+ ENVIRONMENTS: {
147
+ featureKey: "environments",
148
+ header: "environments-2025-11-01",
149
+ },
150
+ CCR_BYOC: { featureKey: "ccr_byoc", header: "ccr-byoc-2025-07-29" },
151
+ // New at 2.1.329. The feature key is `ccr_tool_provenance`.
152
+ TOOL_PROVENANCE: {
153
+ featureKey: "ccr_tool_provenance",
154
+ header: "tool-provenance-2026-10-26",
155
+ },
156
+ // Slot 30 (`mid_conversation_system`, header-less) belongs here and is not
157
+ // transcribed; see the header comment above.
158
+ PER_MESSAGE_EFFORT: {
159
+ featureKey: "per_message_effort",
160
+ header: "per-turn-control-2026-07-01",
161
+ },
162
+ PER_TURN_TIMING: {
163
+ featureKey: "per_turn_timing",
164
+ header: "timing-2026-09-09",
165
+ },
166
+ MID_CONV_TOOL_CHANGE: {
167
+ featureKey: "mid_conv_tool_change",
168
+ header: "mid-conversation-tool-changes-2026-07-01",
169
+ },
170
+ INLINE_TOOLS: {
171
+ featureKey: "inline_tools",
172
+ header: "inline-tools-2026-09-15",
173
+ },
174
+ SERVER_SIDE_FALLBACK: {
175
+ featureKey: "server_side_fallback",
176
+ header: "server-side-fallback-2026-06-01",
177
+ },
178
+ // New at 2.1.329.
179
+ PROGRAM_USE_CASE_IDS: {
180
+ featureKey: "program_use_case_ids",
181
+ header: "program-use-case-ids-2026-09-17",
182
+ },
183
+ SERVER_SIDE_FALLBACK_CATEGORY: {
184
+ featureKey: "server_side_fallback_category",
185
+ header: "server-side-fallback-2026-07-01",
186
+ },
187
+ FALLBACK_CREDIT: {
188
+ featureKey: "fallback_credit",
189
+ header: "fallback-credit-2026-06-01",
190
+ },
191
+ // The first null slot (`yBn`, upstream index 39) belongs here. As at 2.1.280,
192
+ // nothing ties it to a header string by evidence.
193
+ AUTO_MODE_CLASSIFIER: {
194
+ featureKey: "auto_mode_classifier",
195
+ header: "auto-mode-classifier-2026-07-16",
196
+ },
197
+ // New at 2.1.329. Pushed by upstream before the effort beta on the
198
+ // per-attempt path (analysis document section 5.4).
199
+ CLAUDE_CODE_SIDE_QUERY: {
200
+ featureKey: "claude_code_side_query",
201
+ header: "claude-code-side-query-2026-09-29",
202
+ },
203
+ DANGEROUS_TOOL_USE: {
204
+ featureKey: "dangerous_tool_use",
205
+ header: "dangerous-tool-use-2026-09-03",
206
+ },
207
+ // The second null slot (`ml`, upstream index 43) belongs here.
208
+ THINKING_DISPLAY_UPDATES: {
209
+ featureKey: "thinking_display_updates",
210
+ header: "thinking-display-updates-2026-08-18",
211
+ },
212
+ MESSAGE_THREADS: {
213
+ featureKey: "message_threads",
214
+ header: "message-threads-2026-08-12",
215
+ },
216
+ MID_CONVERSATION_SYSTEM_CLEAR_AT: {
217
+ featureKey: "mid_conversation_system_clear_at",
218
+ header: "mid-conversation-system-clear-at-2026-08-21",
219
+ },
220
+ /*
221
+ * LAST in the array, though upstream DECLARES it before `message_threads`
222
+ * and `mid_conversation_system_clear_at`. Declaration order and array order
223
+ * differ here and the array is what this transcription follows.
224
+ */
225
+ THINKING_BINDING_CONTROLS: {
226
+ featureKey: "thinking_binding_controls",
227
+ header: "thinking-binding-controls-2026-08-01",
228
+ },
229
+ });
230
+ /*
231
+ * Third-party filtering as of 2.1.329, upstream `cw` at byte 9419770 (view line
232
+ * 113823), consumed by `Pyo(e) { if (tAe()) return e; return e.filter(r =>
233
+ * cw.has(r)) }` in the same run.
234
+ *
235
+ * Upstream's literal lists fifteen members. One of them, `fS`, is the
236
+ * header-less `mid_conversation_system` slot and contributes no identifier, so
237
+ * the set has fourteen. Delta against the 2.1.280 set: `mid-conversation-system`
238
+ * left (it has no header any more) and `thinking_display_updates` was ADDED.
239
+ * Order below follows upstream's literal.
240
+ */
241
+ export const THIRD_PARTY_ALLOWED_BETAS_2_1_329 = Object.freeze(new Set([
242
+ BETA_REGISTRY_2_1_329.CLAUDE_CODE.header,
243
+ BETA_REGISTRY_2_1_329.INTERLEAVED_THINKING.header,
244
+ BETA_REGISTRY_2_1_329.LONG_CONTEXT.header,
245
+ BETA_REGISTRY_2_1_329.CONTEXT_MANAGEMENT.header,
246
+ BETA_REGISTRY_2_1_329.STRUCTURED_OUTPUTS.header,
247
+ BETA_REGISTRY_2_1_329.WEB_SEARCH.header,
248
+ BETA_REGISTRY_2_1_329.EFFORT.header,
249
+ BETA_REGISTRY_2_1_329.TOOL_SEARCH.header,
250
+ BETA_REGISTRY_2_1_329.AFK_MODE.header,
251
+ BETA_REGISTRY_2_1_329.DANGEROUS_TOOL_USE.header,
252
+ BETA_REGISTRY_2_1_329.FALLBACK_CREDIT.header,
253
+ BETA_REGISTRY_2_1_329.THINKING_TOKEN_COUNT.header,
254
+ BETA_REGISTRY_2_1_329.THINKING_BINDING_CONTROLS.header,
255
+ BETA_REGISTRY_2_1_329.THINKING_DISPLAY_UPDATES.header,
256
+ ]));
257
+ /*
258
+ * Provider filtering as of 2.1.329 (`Bkr` in the analysis document): the
259
+ * interleaved-thinking, 1M-context and tool-search-tool betas. Unchanged from
260
+ * 2.1.280.
261
+ *
262
+ * Static reference data with no call site in `src/`, exactly like its
263
+ * predecessors. See `test/governance/provider-scope.test.ts`.
264
+ */
265
+ export const BEDROCK_UNSUPPORTED_BETAS_2_1_329 = Object.freeze(new Set([
266
+ BETA_REGISTRY_2_1_329.INTERLEAVED_THINKING.header,
267
+ BETA_REGISTRY_2_1_329.LONG_CONTEXT.header,
268
+ BETA_REGISTRY_2_1_329.TOOL_SEARCH.header,
269
+ ]));
270
+ /*
271
+ * Count-tokens selection as of 2.1.329 (`bBn` in the analysis document):
272
+ * claude-code, interleaved-thinking, context-management and oauth. Unchanged
273
+ * from 2.1.280.
274
+ */
275
+ export const COUNT_TOKENS_BETAS_2_1_329 = Object.freeze(new Set([
276
+ BETA_REGISTRY_2_1_329.CLAUDE_CODE.header,
277
+ BETA_REGISTRY_2_1_329.INTERLEAVED_THINKING.header,
278
+ BETA_REGISTRY_2_1_329.CONTEXT_MANAGEMENT.header,
279
+ BETA_REGISTRY_2_1_329.OAUTH_AUTH.header,
280
+ ]));
281
+ //# sourceMappingURL=beta-registry-2.1.329.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beta-registry-2.1.329.js","sourceRoot":"","sources":["../../src/profiles/beta-registry-2.1.329.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAO5C;;;;;GAKG;AACH,SAAS,UAAU,CAAI,KAAQ;IAC7B,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAChD,KAAK,MAAM,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAC;IAC9C,WAAW,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,sBAAsB,EAAE;IAC1E,UAAU,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE;IACpE,oBAAoB,EAAE;QACpB,UAAU,EAAE,sBAAsB;QAClC,MAAM,EAAE,iCAAiC;KAC1C;IACD,YAAY,E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,CAAC,MAAM;IAC/C,qBAAqB,CAAC,kBAAkB,CAAC,MAAM;IAC/C,qBAAqB,CAAC,UAAU,CAAC,MAAM;IACvC,qBAAqB,CAAC,MAAM,CAAC,MAAM;IACnC,qBAAqB,CAAC,WAAW,CAAC,MAAM;IACxC,qBAAqB,CAAC,QAAQ,CAAC,MAAM;IACrC,qBAAqB,CAAC,kBAAkB,CAAC,MAAM;IAC/C,qBAAqB,CAAC,eAAe,CAAC,MAAM;IAC5C,qBAAqB,CAAC,oBAAoB,CAAC,MAAM;IACjD,qBAAqB,CAAC,yBAAyB,CAAC,MAAM;IACtD,qBAAqB,CAAC,wBAAwB,CAAC,MAAM;CACtD,CAAC,CACH,CAAC;AAEJ;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAC5C,MAAM,CAAC,MAAM,CACX,IAAI,GAAG,CAAC;IACN,qBAAqB,CAAC,oBAAoB,CAAC,MAAM;IACjD,qBAAqB,CAAC,YAAY,CAAC,MAAM;IACzC,qBAAqB,CAAC,WAAW,CAAC,MAAM;CACzC,CAAC,CACH,CAAC;AAEJ;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAwB,MAAM,CAAC,MAAM,CAC1E,IAAI,GAAG,CAAC;IACN,qBAAqB,CAAC,WAAW,CAAC,MAAM;IACxC,qBAAqB,CAAC,oBAAoB,CAAC,MAAM;IACjD,qBAAqB,CAAC,kBAAkB,CAAC,MAAM;IAC/C,qBAAqB,CAAC,UAAU,CAAC,MAAM;CACxC,CAAC,CACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ClaudeCodeProtocolProfile } from "../contracts.js";
2
+ export declare const CLAUDE_CODE_2_1_329_PROFILE: ClaudeCodeProtocolProfile;
3
+ //# sourceMappingURL=claude-code-2.1.329.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude-code-2.1.329.d.ts","sourceRoot":"","sources":["../../src/profiles/claude-code-2.1.329.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAkDjE,eAAO,MAAM,2BAA2B,EAAE,yBAkatC,CAAC"}