@zerowall/dsh-claude-coderun 0.0.0-stage → 0.1.0-preview.2

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 (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.i18n.yaml +16 -0
  3. package/README.md +23 -2
  4. package/README.zh.md +24 -0
  5. package/dsh.bundle.patch.yml +23 -0
  6. package/lib/client.js +17823 -0
  7. package/lib/index.js +3754 -0
  8. package/lib/typert.host.d.ts +3 -0
  9. package/lib/typert.host.js +1938 -0
  10. package/lib/typert.remote-client.d.ts +101 -0
  11. package/lib/typert.remote-client.d.ts.map +1 -0
  12. package/lib/typert.remote-client.js +1327 -0
  13. package/lib/types/client/ClaudeCodeAction.d.ts +13 -0
  14. package/lib/types/client/ClaudeCodeSettingsSection.d.ts +7 -0
  15. package/lib/types/client/ClaudePermissionSelect.d.ts +11 -0
  16. package/lib/types/client/ClaudeStats.d.ts +17 -0
  17. package/lib/types/client/ClaudeTranscript.d.ts +22 -0
  18. package/lib/types/client/index.d.ts +1 -0
  19. package/lib/types/client/locales.d.ts +243 -0
  20. package/lib/types/client/upstream/GlobalSettingControls.d.ts +39 -0
  21. package/lib/types/client/upstream/markdown-theme.d.ts +42 -0
  22. package/lib/types/client/upstream/settings-styles.d.ts +42 -0
  23. package/lib/types/client/view.d.ts +9 -0
  24. package/lib/types/host/claude-commands.d.ts +19 -0
  25. package/lib/types/host/claude-settings.d.ts +19 -0
  26. package/lib/types/host/cli.d.ts +24 -0
  27. package/lib/types/host/diagnostic.d.ts +2 -0
  28. package/lib/types/host/environment.d.ts +2 -0
  29. package/lib/types/host/index.d.ts +78 -0
  30. package/lib/types/host/mcp-launcher.d.ts +16 -0
  31. package/lib/types/host/metrics-projection.d.ts +250 -0
  32. package/lib/types/host/metrics.d.ts +16 -0
  33. package/lib/types/host/permission-mode.d.ts +62 -0
  34. package/lib/types/host/projection.d.ts +124 -0
  35. package/lib/types/host/resource-status.d.ts +8 -0
  36. package/lib/types/host/route.d.ts +52 -0
  37. package/lib/types/host/runtime.d.ts +80 -0
  38. package/lib/types/host/sdk-driver.d.ts +29 -0
  39. package/lib/types/host/session-binding.d.ts +25 -0
  40. package/lib/types/host/subagent-tool.d.ts +6 -0
  41. package/lib/types/host/tool-journal.d.ts +13 -0
  42. package/lib/types/shared/metrics.d.ts +57 -0
  43. package/lib/types/shared/records.d.ts +33 -0
  44. package/lib/types/shared/types.d.ts +262 -0
  45. package/lib/types.js +18 -0
  46. package/locale/en.json +7 -0
  47. package/locale/zh.json +7 -0
  48. package/migration-reference.md +67 -0
  49. package/package.json +252 -3
  50. package/plugin-detail.md +11 -0
  51. package/plugin-detail.zh.md +11 -0
  52. package/zerowall.plugin.json +65 -0
@@ -0,0 +1,1938 @@
1
+ /* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
2
+ import { z } from 'zod'
3
+
4
+ import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
5
+
6
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_clear_parameter_0$schema$value
7
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_clear_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_clear_parameter_0$schema$value ??= z.string())
8
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_clear_result$schema$value
9
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_clear_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_clear_result$schema$value ??= z.void())
10
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_0$schema$value
11
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_0$schema$value ??= z.string())
12
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_1$schema$value
13
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_1$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_1$schema$value ??= z.string())
14
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_result$schema$value
15
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_result$schema$value ??= z.object({
16
+ 'active': z.boolean(),
17
+ 'queued': z.boolean(),
18
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
19
+ 'model': z.union([z.undefined(), z.string()]).optional(),
20
+ 'commands': z.array(z.object({
21
+ 'name': z.string(),
22
+ 'description': z.union([z.undefined(), z.string()]).optional(),
23
+ 'argumentHint': z.union([z.undefined(), z.string()]).optional(),
24
+ })),
25
+ 'output': z.string(),
26
+ 'contextUsage': z.union([z.undefined(), z.object({
27
+ 'totalTokens': z.number(),
28
+ 'maxTokens': z.number(),
29
+ 'rawMaxTokens': z.union([z.undefined(), z.number()]).optional(),
30
+ 'percentage': z.number(),
31
+ 'autoCompactThreshold': z.union([z.undefined(), z.number()]).optional(),
32
+ 'isAutoCompactEnabled': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional().describe('Present only when the managed Claude runtime reports its real state.'),
33
+ 'detail': z.union([z.literal("summary"), z.literal("full")]),
34
+ 'apiUsage': z.union([z.undefined(), z.object({
35
+ 'input_tokens': z.union([z.undefined(), z.number()]).optional(),
36
+ 'output_tokens': z.union([z.undefined(), z.number()]).optional(),
37
+ 'cache_creation_input_tokens': z.union([z.undefined(), z.number()]).optional(),
38
+ 'cache_read_input_tokens': z.union([z.undefined(), z.number()]).optional(),
39
+ })]).optional(),
40
+ })]).optional(),
41
+ 'lastCompact': z.union([z.undefined(), z.object({
42
+ 'trigger': z.union([z.literal("auto"), z.literal("manual")]),
43
+ 'preTokens': z.number(),
44
+ 'postTokens': z.union([z.undefined(), z.number()]).optional(),
45
+ 'durationMs': z.union([z.undefined(), z.number()]).optional(),
46
+ })]).optional(),
47
+ 'error': z.union([z.undefined(), z.string()]).optional(),
48
+ 'diagnostics': z.union([z.undefined(), z.object({
49
+ 'model': z.union([z.undefined(), z.string()]).optional(),
50
+ 'routeCredential': z.union([z.literal("injected"), z.literal("missing")]),
51
+ 'routeBaseUrl': z.union([z.literal("injected"), z.literal("missing")]),
52
+ 'claudeOAuth': z.union([z.literal("not-used"), z.literal("required")]),
53
+ 'skills': z.object({
54
+ 'synced': z.number(),
55
+ 'skipped': z.number(),
56
+ }),
57
+ 'mcp': z.object({
58
+ 'synced': z.number(),
59
+ 'skipped': z.number(),
60
+ }),
61
+ 'environmentNames': z.array(z.string()),
62
+ 'skipped': z.array(z.string()),
63
+ })]).optional(),
64
+ }))
65
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_0$schema$value
66
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_0$schema$value ??= z.string())
67
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_1$schema$value
68
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_1$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_1$schema$value ??= z.union([z.literal("default"), z.literal("dontAsk"), z.literal("acceptEdits"), z.literal("auto"), z.literal("plan"), z.literal("bypassPermissions")]))
69
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_result$schema$value
70
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_result$schema$value ??= z.object({
71
+ 'active': z.boolean(),
72
+ 'queued': z.boolean(),
73
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
74
+ 'model': z.union([z.undefined(), z.string()]).optional(),
75
+ 'commands': z.array(z.object({
76
+ 'name': z.string(),
77
+ 'description': z.union([z.undefined(), z.string()]).optional(),
78
+ 'argumentHint': z.union([z.undefined(), z.string()]).optional(),
79
+ })),
80
+ 'output': z.string(),
81
+ 'contextUsage': z.union([z.undefined(), z.object({
82
+ 'totalTokens': z.number(),
83
+ 'maxTokens': z.number(),
84
+ 'rawMaxTokens': z.union([z.undefined(), z.number()]).optional(),
85
+ 'percentage': z.number(),
86
+ 'autoCompactThreshold': z.union([z.undefined(), z.number()]).optional(),
87
+ 'isAutoCompactEnabled': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional().describe('Present only when the managed Claude runtime reports its real state.'),
88
+ 'detail': z.union([z.literal("summary"), z.literal("full")]),
89
+ 'apiUsage': z.union([z.undefined(), z.object({
90
+ 'input_tokens': z.union([z.undefined(), z.number()]).optional(),
91
+ 'output_tokens': z.union([z.undefined(), z.number()]).optional(),
92
+ 'cache_creation_input_tokens': z.union([z.undefined(), z.number()]).optional(),
93
+ 'cache_read_input_tokens': z.union([z.undefined(), z.number()]).optional(),
94
+ })]).optional(),
95
+ })]).optional(),
96
+ 'lastCompact': z.union([z.undefined(), z.object({
97
+ 'trigger': z.union([z.literal("auto"), z.literal("manual")]),
98
+ 'preTokens': z.number(),
99
+ 'postTokens': z.union([z.undefined(), z.number()]).optional(),
100
+ 'durationMs': z.union([z.undefined(), z.number()]).optional(),
101
+ })]).optional(),
102
+ 'error': z.union([z.undefined(), z.string()]).optional(),
103
+ 'diagnostics': z.union([z.undefined(), z.object({
104
+ 'model': z.union([z.undefined(), z.string()]).optional(),
105
+ 'routeCredential': z.union([z.literal("injected"), z.literal("missing")]),
106
+ 'routeBaseUrl': z.union([z.literal("injected"), z.literal("missing")]),
107
+ 'claudeOAuth': z.union([z.literal("not-used"), z.literal("required")]),
108
+ 'skills': z.object({
109
+ 'synced': z.number(),
110
+ 'skipped': z.number(),
111
+ }),
112
+ 'mcp': z.object({
113
+ 'synced': z.number(),
114
+ 'skipped': z.number(),
115
+ }),
116
+ 'environmentNames': z.array(z.string()),
117
+ 'skipped': z.array(z.string()),
118
+ })]).optional(),
119
+ }))
120
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_0$schema$value
121
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_0$schema$value ??= z.string())
122
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_1$schema$value
123
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_1$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_1$schema$value ??= z.union([z.undefined(), z.literal("summary"), z.literal("full")]))
124
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_result$schema$value
125
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_result$schema$value ??= z.object({
126
+ 'active': z.boolean(),
127
+ 'queued': z.boolean(),
128
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
129
+ 'model': z.union([z.undefined(), z.string()]).optional(),
130
+ 'commands': z.array(z.object({
131
+ 'name': z.string(),
132
+ 'description': z.union([z.undefined(), z.string()]).optional(),
133
+ 'argumentHint': z.union([z.undefined(), z.string()]).optional(),
134
+ })),
135
+ 'output': z.string(),
136
+ 'contextUsage': z.union([z.undefined(), z.object({
137
+ 'totalTokens': z.number(),
138
+ 'maxTokens': z.number(),
139
+ 'rawMaxTokens': z.union([z.undefined(), z.number()]).optional(),
140
+ 'percentage': z.number(),
141
+ 'autoCompactThreshold': z.union([z.undefined(), z.number()]).optional(),
142
+ 'isAutoCompactEnabled': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional().describe('Present only when the managed Claude runtime reports its real state.'),
143
+ 'detail': z.union([z.literal("summary"), z.literal("full")]),
144
+ 'apiUsage': z.union([z.undefined(), z.object({
145
+ 'input_tokens': z.union([z.undefined(), z.number()]).optional(),
146
+ 'output_tokens': z.union([z.undefined(), z.number()]).optional(),
147
+ 'cache_creation_input_tokens': z.union([z.undefined(), z.number()]).optional(),
148
+ 'cache_read_input_tokens': z.union([z.undefined(), z.number()]).optional(),
149
+ })]).optional(),
150
+ })]).optional(),
151
+ 'lastCompact': z.union([z.undefined(), z.object({
152
+ 'trigger': z.union([z.literal("auto"), z.literal("manual")]),
153
+ 'preTokens': z.number(),
154
+ 'postTokens': z.union([z.undefined(), z.number()]).optional(),
155
+ 'durationMs': z.union([z.undefined(), z.number()]).optional(),
156
+ })]).optional(),
157
+ 'error': z.union([z.undefined(), z.string()]).optional(),
158
+ 'diagnostics': z.union([z.undefined(), z.object({
159
+ 'model': z.union([z.undefined(), z.string()]).optional(),
160
+ 'routeCredential': z.union([z.literal("injected"), z.literal("missing")]),
161
+ 'routeBaseUrl': z.union([z.literal("injected"), z.literal("missing")]),
162
+ 'claudeOAuth': z.union([z.literal("not-used"), z.literal("required")]),
163
+ 'skills': z.object({
164
+ 'synced': z.number(),
165
+ 'skipped': z.number(),
166
+ }),
167
+ 'mcp': z.object({
168
+ 'synced': z.number(),
169
+ 'skipped': z.number(),
170
+ }),
171
+ 'environmentNames': z.array(z.string()),
172
+ 'skipped': z.array(z.string()),
173
+ })]).optional(),
174
+ }))
175
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_installCli_parameter_0$schema$value
176
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_installCli_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_installCli_parameter_0$schema$value ??= z.string())
177
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_installCli_result$schema$value
178
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_installCli_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_installCli_result$schema$value ??= z.object({
179
+ 'desktop': z.boolean(),
180
+ 'installed': z.boolean(),
181
+ 'version': z.union([z.undefined(), z.string()]).optional(),
182
+ 'executablePath': z.union([z.undefined(), z.string()]).optional().describe('Application-managed CLI; never a PATH lookup or the user\'s Claude install.'),
183
+ 'rollbackAvailable': z.boolean(),
184
+ 'running': z.boolean(),
185
+ 'readiness': z.union([z.undefined(), z.literal("installed"), z.literal("unavailable")]).optional(),
186
+ 'diagnostic': z.union([z.undefined(), z.string()]).optional(),
187
+ }))
188
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_0$schema$value
189
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_0$schema$value ??= z.string())
190
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_1$schema$value
191
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_1$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_1$schema$value ??= z.string())
192
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_result$schema$value
193
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_result$schema$value ??= z.object({
194
+ 'active': z.boolean(),
195
+ 'source': z.union([z.literal("plugin"), z.literal("native")]),
196
+ 'mode': z.union([z.literal("default"), z.literal("dontAsk"), z.literal("acceptEdits"), z.literal("auto"), z.literal("plan"), z.literal("bypassPermissions")]),
197
+ 'hostPreset': z.string(),
198
+ 'hostSandbox': z.string(),
199
+ 'hostApproval': z.string(),
200
+ 'runningMode': z.union([z.undefined(), z.literal("default"), z.literal("dontAsk"), z.literal("acceptEdits"), z.literal("auto"), z.literal("plan"), z.literal("bypassPermissions")]).optional(),
201
+ 'nativeOptions': z.array(z.object({
202
+ 'value': z.string(),
203
+ 'name': z.string(),
204
+ 'description': z.union([z.undefined(), z.string()]).optional(),
205
+ })),
206
+ }))
207
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionView_parameter_0$schema$value
208
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionView_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionView_parameter_0$schema$value ??= z.string())
209
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionView_result$schema$value
210
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionView_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionView_result$schema$value ??= z.object({
211
+ 'active': z.boolean(),
212
+ 'source': z.union([z.literal("plugin"), z.literal("native")]),
213
+ 'mode': z.union([z.literal("default"), z.literal("dontAsk"), z.literal("acceptEdits"), z.literal("auto"), z.literal("plan"), z.literal("bypassPermissions")]),
214
+ 'hostPreset': z.string(),
215
+ 'hostSandbox': z.string(),
216
+ 'hostApproval': z.string(),
217
+ 'runningMode': z.union([z.undefined(), z.literal("default"), z.literal("dontAsk"), z.literal("acceptEdits"), z.literal("auto"), z.literal("plan"), z.literal("bypassPermissions")]).optional(),
218
+ 'nativeOptions': z.array(z.object({
219
+ 'value': z.string(),
220
+ 'name': z.string(),
221
+ 'description': z.union([z.undefined(), z.string()]).optional(),
222
+ })),
223
+ }))
224
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_read_parameter_0$schema$value
225
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_read_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_read_parameter_0$schema$value ??= z.string())
226
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_read_result$schema$value
227
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_read_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_read_result$schema$value ??= z.union([z.literal(null), z.object({
228
+ 'id': z.string(),
229
+ 'provider': z.string(),
230
+ 'model': z.string(),
231
+ 'executablePath': z.union([z.undefined(), z.string()]).optional().describe('Absolute CLI entrypoint captured for this turn, before spawning it.'),
232
+ 'running': z.boolean(),
233
+ 'output': z.string(),
234
+ 'exitCode': z.union([z.undefined(), z.literal(null), z.number()]).optional(),
235
+ 'message': z.union([z.undefined(), z.string()]).optional(),
236
+ 'skills': z.number(),
237
+ 'mcp': z.number(),
238
+ 'skipped': z.array(z.string()),
239
+ 'renderer': z.union([z.undefined(), z.literal("plugin"), z.literal("native")]).optional(),
240
+ 'turn': z.union([z.undefined(), z.number()]).optional(),
241
+ 'step': z.union([z.undefined(), z.number()]).optional(),
242
+ 'activity': z.union([z.undefined(), z.array(z.object({
243
+ 'index': z.number(),
244
+ 'kind': z.union([z.literal("text"), z.literal("reasoning"), z.literal("tool-call")]),
245
+ 'text': z.string(),
246
+ 'ended': z.boolean(),
247
+ 'id': z.union([z.undefined(), z.string()]).optional(),
248
+ 'name': z.union([z.undefined(), z.string()]).optional(),
249
+ 'result': z.union([z.undefined(), z.string()]).optional(),
250
+ 'failed': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
251
+ 'answer': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
252
+ }))]).optional(),
253
+ 'nativeSessionId': z.union([z.undefined(), z.string()]).optional(),
254
+ 'resumed': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
255
+ 'permission': z.union([z.undefined(), z.object({
256
+ 'active': z.boolean(),
257
+ 'source': z.union([z.literal("plugin"), z.literal("native")]),
258
+ 'mode': z.union([z.literal("default"), z.literal("dontAsk"), z.literal("acceptEdits"), z.literal("auto"), z.literal("plan"), z.literal("bypassPermissions")]),
259
+ 'hostPreset': z.string(),
260
+ 'hostSandbox': z.string(),
261
+ 'hostApproval': z.string(),
262
+ 'runningMode': z.union([z.undefined(), z.literal("default"), z.literal("dontAsk"), z.literal("acceptEdits"), z.literal("auto"), z.literal("plan"), z.literal("bypassPermissions")]).optional(),
263
+ 'nativeOptions': z.array(z.object({
264
+ 'value': z.string(),
265
+ 'name': z.string(),
266
+ 'description': z.union([z.undefined(), z.string()]).optional(),
267
+ })),
268
+ })]).optional(),
269
+ 'resources': z.union([z.undefined(), z.array(z.object({
270
+ 'kind': z.union([z.literal("skill"), z.literal("mcp")]),
271
+ 'name': z.string(),
272
+ 'state': z.union([z.literal("unavailable"), z.literal("manual"), z.literal("synced"), z.literal("disabled"), z.literal("failed")]),
273
+ 'detail': z.union([z.undefined(), z.string()]).optional(),
274
+ }))]).optional(),
275
+ 'diagnostic': z.union([z.undefined(), z.object({
276
+ 'id': z.string(),
277
+ 'category': z.string(),
278
+ })]).optional(),
279
+ 'contextUsage': z.union([z.undefined(), z.object({
280
+ 'totalTokens': z.number(),
281
+ 'maxTokens': z.number(),
282
+ 'rawMaxTokens': z.union([z.undefined(), z.number()]).optional(),
283
+ 'percentage': z.number(),
284
+ 'autoCompactThreshold': z.union([z.undefined(), z.number()]).optional(),
285
+ 'isAutoCompactEnabled': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional().describe('Present only when the managed Claude runtime reports its real state.'),
286
+ 'detail': z.union([z.literal("summary"), z.literal("full")]),
287
+ 'apiUsage': z.union([z.undefined(), z.object({
288
+ 'input_tokens': z.union([z.undefined(), z.number()]).optional(),
289
+ 'output_tokens': z.union([z.undefined(), z.number()]).optional(),
290
+ 'cache_creation_input_tokens': z.union([z.undefined(), z.number()]).optional(),
291
+ 'cache_read_input_tokens': z.union([z.undefined(), z.number()]).optional(),
292
+ })]).optional(),
293
+ })]).optional(),
294
+ 'lastCompact': z.union([z.undefined(), z.object({
295
+ 'trigger': z.union([z.literal("auto"), z.literal("manual")]),
296
+ 'preTokens': z.number(),
297
+ 'postTokens': z.union([z.undefined(), z.number()]).optional(),
298
+ 'durationMs': z.union([z.undefined(), z.number()]).optional(),
299
+ })]).optional(),
300
+ })]))
301
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_0$schema$value
302
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_0$schema$value ??= z.string())
303
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_1$schema$value
304
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_1$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_1$schema$value ??= z.number())
305
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_2$schema$value
306
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_2$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_2$schema$value ??= z.number())
307
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_result$schema$value
308
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_result$schema$value ??= z.union([z.literal(null), z.object({
309
+ 'turn': z.number(),
310
+ 'step': z.number(),
311
+ 'renderer': z.union([z.literal("plugin"), z.literal("native")]),
312
+ 'running': z.boolean(),
313
+ 'activity': z.array(z.object({
314
+ 'index': z.number(),
315
+ 'kind': z.union([z.literal("text"), z.literal("reasoning"), z.literal("tool-call")]),
316
+ 'text': z.string(),
317
+ 'ended': z.boolean(),
318
+ 'id': z.union([z.undefined(), z.string()]).optional(),
319
+ 'name': z.union([z.undefined(), z.string()]).optional(),
320
+ 'result': z.union([z.undefined(), z.string()]).optional(),
321
+ 'failed': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
322
+ 'answer': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
323
+ })),
324
+ })]))
325
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_rollback_parameter_0$schema$value
326
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_rollback_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_rollback_parameter_0$schema$value ??= z.string())
327
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_rollback_result$schema$value
328
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_rollback_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_rollback_result$schema$value ??= z.object({
329
+ 'desktop': z.boolean(),
330
+ 'installed': z.boolean(),
331
+ 'version': z.union([z.undefined(), z.string()]).optional(),
332
+ 'executablePath': z.union([z.undefined(), z.string()]).optional().describe('Application-managed CLI; never a PATH lookup or the user\'s Claude install.'),
333
+ 'rollbackAvailable': z.boolean(),
334
+ 'running': z.boolean(),
335
+ 'readiness': z.union([z.undefined(), z.literal("installed"), z.literal("unavailable")]).optional(),
336
+ 'diagnostic': z.union([z.undefined(), z.string()]).optional(),
337
+ }))
338
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGet_result$schema$value
339
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGet_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGet_result$schema$value ??= z.object({
340
+ 'outputStyle': z.union([z.undefined(), z.string()]).optional(),
341
+ 'permissionSelector': z.union([z.undefined(), z.literal("plugin"), z.literal("native")]).optional(),
342
+ 'permissionMode': z.union([z.undefined(), z.literal("default"), z.literal("dontAsk"), z.literal("acceptEdits"), z.literal("auto"), z.literal("plan"), z.literal("bypassPermissions")]).optional(),
343
+ 'renderer': z.union([z.undefined(), z.literal("plugin"), z.literal("native")]).optional(),
344
+ 'prose': z.union([z.undefined(), z.literal("plain"), z.literal("enhanced")]).optional(),
345
+ 'maxProcesses': z.union([z.undefined(), z.number()]).optional(),
346
+ 'contextWindow': z.union([z.undefined(), z.number(), z.literal("auto"), z.literal("200k"), z.literal("1m")]).optional(),
347
+ 'autoCompactWindow': z.union([z.undefined(), z.number(), z.literal("auto")]).optional(),
348
+ 'promptCacheTtl': z.union([z.undefined(), z.literal("auto"), z.literal("5m"), z.literal("1h")]).optional(),
349
+ 'subagentPromptCacheTtl': z.union([z.undefined(), z.literal("auto"), z.literal("5m"), z.literal("1h")]).optional(),
350
+ }))
351
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalGet_result$schema$value
352
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalGet_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalGet_result$schema$value ??= z.object({
353
+ 'settings': z.array(z.union([z.object({
354
+ 'key': z.string(),
355
+ 'kind': z.literal("select"),
356
+ 'value': z.string(),
357
+ 'options': z.array(z.object({
358
+ 'value': z.string(),
359
+ 'label': z.string(),
360
+ 'source': z.union([z.literal("built-in"), z.literal("user"), z.literal("configured")]),
361
+ })),
362
+ 'effect': z.union([z.literal("immediate"), z.literal("new-session"), z.literal("next-turn"), z.literal("next-worktree"), z.literal("restart")]),
363
+ 'available': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
364
+ 'unavailableReason': z.union([z.undefined(), z.string()]).optional(),
365
+ 'effective': z.union([z.undefined(), z.object({
366
+ 'requested': z.string(),
367
+ 'effective': z.string(),
368
+ 'source': z.union([z.literal("auto"), z.literal("explicit"), z.literal("external"), z.literal("clamped"), z.literal("unsupported")]),
369
+ 'available': z.boolean(),
370
+ 'reason': z.union([z.undefined(), z.string()]).optional(),
371
+ 'effect': z.union([z.literal("immediate"), z.literal("new-session"), z.literal("next-turn"), z.literal("next-worktree"), z.literal("restart")]),
372
+ })]).optional(),
373
+ }), z.object({
374
+ 'key': z.string(),
375
+ 'kind': z.literal("text"),
376
+ 'value': z.string(),
377
+ 'maxLength': z.number(),
378
+ 'effect': z.union([z.literal("immediate"), z.literal("new-session"), z.literal("next-turn"), z.literal("next-worktree"), z.literal("restart")]),
379
+ 'available': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
380
+ 'unavailableReason': z.union([z.undefined(), z.string()]).optional(),
381
+ 'effective': z.union([z.undefined(), z.object({
382
+ 'requested': z.string(),
383
+ 'effective': z.string(),
384
+ 'source': z.union([z.literal("auto"), z.literal("explicit"), z.literal("external"), z.literal("clamped"), z.literal("unsupported")]),
385
+ 'available': z.boolean(),
386
+ 'reason': z.union([z.undefined(), z.string()]).optional(),
387
+ 'effect': z.union([z.literal("immediate"), z.literal("new-session"), z.literal("next-turn"), z.literal("next-worktree"), z.literal("restart")]),
388
+ })]).optional(),
389
+ }), z.object({
390
+ 'key': z.string(),
391
+ 'kind': z.literal("number"),
392
+ 'value': z.string(),
393
+ 'min': z.number(),
394
+ 'max': z.number(),
395
+ 'step': z.number(),
396
+ 'presets': z.union([z.undefined(), z.array(z.object({
397
+ 'value': z.string(),
398
+ 'label': z.string(),
399
+ }))]).optional(),
400
+ 'effect': z.union([z.literal("immediate"), z.literal("new-session"), z.literal("next-turn"), z.literal("next-worktree"), z.literal("restart")]),
401
+ 'available': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
402
+ 'unavailableReason': z.union([z.undefined(), z.string()]).optional(),
403
+ 'effective': z.union([z.undefined(), z.object({
404
+ 'requested': z.string(),
405
+ 'effective': z.string(),
406
+ 'source': z.union([z.literal("auto"), z.literal("explicit"), z.literal("external"), z.literal("clamped"), z.literal("unsupported")]),
407
+ 'available': z.boolean(),
408
+ 'reason': z.union([z.undefined(), z.string()]).optional(),
409
+ 'effect': z.union([z.literal("immediate"), z.literal("new-session"), z.literal("next-turn"), z.literal("next-worktree"), z.literal("restart")]),
410
+ })]).optional(),
411
+ })])),
412
+ }))
413
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalUpdate_parameter_0$schema$value
414
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalUpdate_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalUpdate_parameter_0$schema$value ??= z.record(z.string(), z.string()))
415
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalUpdate_result$schema$value
416
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalUpdate_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalUpdate_result$schema$value ??= z.object({
417
+ 'settings': z.array(z.union([z.object({
418
+ 'key': z.string(),
419
+ 'kind': z.literal("select"),
420
+ 'value': z.string(),
421
+ 'options': z.array(z.object({
422
+ 'value': z.string(),
423
+ 'label': z.string(),
424
+ 'source': z.union([z.literal("built-in"), z.literal("user"), z.literal("configured")]),
425
+ })),
426
+ 'effect': z.union([z.literal("immediate"), z.literal("new-session"), z.literal("next-turn"), z.literal("next-worktree"), z.literal("restart")]),
427
+ 'available': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
428
+ 'unavailableReason': z.union([z.undefined(), z.string()]).optional(),
429
+ 'effective': z.union([z.undefined(), z.object({
430
+ 'requested': z.string(),
431
+ 'effective': z.string(),
432
+ 'source': z.union([z.literal("auto"), z.literal("explicit"), z.literal("external"), z.literal("clamped"), z.literal("unsupported")]),
433
+ 'available': z.boolean(),
434
+ 'reason': z.union([z.undefined(), z.string()]).optional(),
435
+ 'effect': z.union([z.literal("immediate"), z.literal("new-session"), z.literal("next-turn"), z.literal("next-worktree"), z.literal("restart")]),
436
+ })]).optional(),
437
+ }), z.object({
438
+ 'key': z.string(),
439
+ 'kind': z.literal("text"),
440
+ 'value': z.string(),
441
+ 'maxLength': z.number(),
442
+ 'effect': z.union([z.literal("immediate"), z.literal("new-session"), z.literal("next-turn"), z.literal("next-worktree"), z.literal("restart")]),
443
+ 'available': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
444
+ 'unavailableReason': z.union([z.undefined(), z.string()]).optional(),
445
+ 'effective': z.union([z.undefined(), z.object({
446
+ 'requested': z.string(),
447
+ 'effective': z.string(),
448
+ 'source': z.union([z.literal("auto"), z.literal("explicit"), z.literal("external"), z.literal("clamped"), z.literal("unsupported")]),
449
+ 'available': z.boolean(),
450
+ 'reason': z.union([z.undefined(), z.string()]).optional(),
451
+ 'effect': z.union([z.literal("immediate"), z.literal("new-session"), z.literal("next-turn"), z.literal("next-worktree"), z.literal("restart")]),
452
+ })]).optional(),
453
+ }), z.object({
454
+ 'key': z.string(),
455
+ 'kind': z.literal("number"),
456
+ 'value': z.string(),
457
+ 'min': z.number(),
458
+ 'max': z.number(),
459
+ 'step': z.number(),
460
+ 'presets': z.union([z.undefined(), z.array(z.object({
461
+ 'value': z.string(),
462
+ 'label': z.string(),
463
+ }))]).optional(),
464
+ 'effect': z.union([z.literal("immediate"), z.literal("new-session"), z.literal("next-turn"), z.literal("next-worktree"), z.literal("restart")]),
465
+ 'available': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
466
+ 'unavailableReason': z.union([z.undefined(), z.string()]).optional(),
467
+ 'effective': z.union([z.undefined(), z.object({
468
+ 'requested': z.string(),
469
+ 'effective': z.string(),
470
+ 'source': z.union([z.literal("auto"), z.literal("explicit"), z.literal("external"), z.literal("clamped"), z.literal("unsupported")]),
471
+ 'available': z.boolean(),
472
+ 'reason': z.union([z.undefined(), z.string()]).optional(),
473
+ 'effect': z.union([z.literal("immediate"), z.literal("new-session"), z.literal("next-turn"), z.literal("next-worktree"), z.literal("restart")]),
474
+ })]).optional(),
475
+ })])),
476
+ }))
477
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsInstall_result$schema$value
478
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsInstall_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsInstall_result$schema$value ??= z.object({
479
+ 'desktop': z.boolean(),
480
+ 'installed': z.boolean(),
481
+ 'version': z.union([z.undefined(), z.string()]).optional(),
482
+ 'executablePath': z.union([z.undefined(), z.string()]).optional().describe('Application-managed CLI; never a PATH lookup or the user\'s Claude install.'),
483
+ 'rollbackAvailable': z.boolean(),
484
+ 'running': z.boolean(),
485
+ 'readiness': z.union([z.undefined(), z.literal("installed"), z.literal("unavailable")]).optional(),
486
+ 'diagnostic': z.union([z.undefined(), z.string()]).optional(),
487
+ }))
488
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsRollback_result$schema$value
489
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsRollback_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsRollback_result$schema$value ??= z.object({
490
+ 'desktop': z.boolean(),
491
+ 'installed': z.boolean(),
492
+ 'version': z.union([z.undefined(), z.string()]).optional(),
493
+ 'executablePath': z.union([z.undefined(), z.string()]).optional().describe('Application-managed CLI; never a PATH lookup or the user\'s Claude install.'),
494
+ 'rollbackAvailable': z.boolean(),
495
+ 'running': z.boolean(),
496
+ 'readiness': z.union([z.undefined(), z.literal("installed"), z.literal("unavailable")]).optional(),
497
+ 'diagnostic': z.union([z.undefined(), z.string()]).optional(),
498
+ }))
499
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsStatus_result$schema$value
500
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsStatus_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsStatus_result$schema$value ??= z.object({
501
+ 'desktop': z.boolean(),
502
+ 'installed': z.boolean(),
503
+ 'version': z.union([z.undefined(), z.string()]).optional(),
504
+ 'executablePath': z.union([z.undefined(), z.string()]).optional().describe('Application-managed CLI; never a PATH lookup or the user\'s Claude install.'),
505
+ 'rollbackAvailable': z.boolean(),
506
+ 'running': z.boolean(),
507
+ 'readiness': z.union([z.undefined(), z.literal("installed"), z.literal("unavailable")]).optional(),
508
+ 'diagnostic': z.union([z.undefined(), z.string()]).optional(),
509
+ }))
510
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUninstall_result$schema$value
511
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUninstall_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUninstall_result$schema$value ??= z.object({
512
+ 'desktop': z.boolean(),
513
+ 'installed': z.boolean(),
514
+ 'version': z.union([z.undefined(), z.string()]).optional(),
515
+ 'executablePath': z.union([z.undefined(), z.string()]).optional().describe('Application-managed CLI; never a PATH lookup or the user\'s Claude install.'),
516
+ 'rollbackAvailable': z.boolean(),
517
+ 'running': z.boolean(),
518
+ 'readiness': z.union([z.undefined(), z.literal("installed"), z.literal("unavailable")]).optional(),
519
+ 'diagnostic': z.union([z.undefined(), z.string()]).optional(),
520
+ }))
521
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUpdate_parameter_0$schema$value
522
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUpdate_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUpdate_parameter_0$schema$value ??= z.object({
523
+ 'outputStyle': z.union([z.undefined(), z.string()]).optional(),
524
+ 'permissionSelector': z.union([z.undefined(), z.literal("plugin"), z.literal("native")]).optional(),
525
+ 'permissionMode': z.union([z.undefined(), z.literal("default"), z.literal("dontAsk"), z.literal("acceptEdits"), z.literal("auto"), z.literal("plan"), z.literal("bypassPermissions")]).optional(),
526
+ 'renderer': z.union([z.undefined(), z.literal("plugin"), z.literal("native")]).optional(),
527
+ 'prose': z.union([z.undefined(), z.literal("plain"), z.literal("enhanced")]).optional(),
528
+ 'maxProcesses': z.union([z.undefined(), z.number()]).optional(),
529
+ 'contextWindow': z.union([z.undefined(), z.number(), z.literal("auto"), z.literal("200k"), z.literal("1m")]).optional(),
530
+ 'autoCompactWindow': z.union([z.undefined(), z.number(), z.literal("auto")]).optional(),
531
+ 'promptCacheTtl': z.union([z.undefined(), z.literal("auto"), z.literal("5m"), z.literal("1h")]).optional(),
532
+ 'subagentPromptCacheTtl': z.union([z.undefined(), z.literal("auto"), z.literal("5m"), z.literal("1h")]).optional(),
533
+ }))
534
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUpdate_result$schema$value
535
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUpdate_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUpdate_result$schema$value ??= z.object({
536
+ 'outputStyle': z.union([z.undefined(), z.string()]).optional(),
537
+ 'permissionSelector': z.union([z.undefined(), z.literal("plugin"), z.literal("native")]).optional(),
538
+ 'permissionMode': z.union([z.undefined(), z.literal("default"), z.literal("dontAsk"), z.literal("acceptEdits"), z.literal("auto"), z.literal("plan"), z.literal("bypassPermissions")]).optional(),
539
+ 'renderer': z.union([z.undefined(), z.literal("plugin"), z.literal("native")]).optional(),
540
+ 'prose': z.union([z.undefined(), z.literal("plain"), z.literal("enhanced")]).optional(),
541
+ 'maxProcesses': z.union([z.undefined(), z.number()]).optional(),
542
+ 'contextWindow': z.union([z.undefined(), z.number(), z.literal("auto"), z.literal("200k"), z.literal("1m")]).optional(),
543
+ 'autoCompactWindow': z.union([z.undefined(), z.number(), z.literal("auto")]).optional(),
544
+ 'promptCacheTtl': z.union([z.undefined(), z.literal("auto"), z.literal("5m"), z.literal("1h")]).optional(),
545
+ 'subagentPromptCacheTtl': z.union([z.undefined(), z.literal("auto"), z.literal("5m"), z.literal("1h")]).optional(),
546
+ }))
547
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_status_parameter_0$schema$value
548
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_status_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_status_parameter_0$schema$value ??= z.string())
549
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_status_result$schema$value
550
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_status_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_status_result$schema$value ??= z.object({
551
+ 'desktop': z.boolean(),
552
+ 'installed': z.boolean(),
553
+ 'version': z.union([z.undefined(), z.string()]).optional(),
554
+ 'executablePath': z.union([z.undefined(), z.string()]).optional().describe('Application-managed CLI; never a PATH lookup or the user\'s Claude install.'),
555
+ 'rollbackAvailable': z.boolean(),
556
+ 'running': z.boolean(),
557
+ 'readiness': z.union([z.undefined(), z.literal("installed"), z.literal("unavailable")]).optional(),
558
+ 'diagnostic': z.union([z.undefined(), z.string()]).optional(),
559
+ }))
560
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_stop_parameter_0$schema$value
561
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_stop_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_stop_parameter_0$schema$value ??= z.string())
562
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_stop_result$schema$value
563
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_stop_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_stop_result$schema$value ??= z.void())
564
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_uninstall_parameter_0$schema$value
565
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_uninstall_parameter_0$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_uninstall_parameter_0$schema$value ??= z.string())
566
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_uninstall_result$schema$value
567
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_uninstall_result$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_uninstall_result$schema$value ??= z.object({
568
+ 'desktop': z.boolean(),
569
+ 'installed': z.boolean(),
570
+ 'version': z.union([z.undefined(), z.string()]).optional(),
571
+ 'executablePath': z.union([z.undefined(), z.string()]).optional().describe('Application-managed CLI; never a PATH lookup or the user\'s Claude install.'),
572
+ 'rollbackAvailable': z.boolean(),
573
+ 'running': z.boolean(),
574
+ 'readiness': z.union([z.undefined(), z.literal("installed"), z.literal("unavailable")]).optional(),
575
+ 'diagnostic': z.union([z.undefined(), z.string()]).optional(),
576
+ }))
577
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_clear_parameter_0_strict$schema$value
578
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_clear_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_clear_parameter_0_strict$schema$value ??= z.string())
579
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_0_strict$schema$value
580
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_0_strict$schema$value ??= z.string())
581
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_1_strict$schema$value
582
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_1_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_1_strict$schema$value ??= z.string())
583
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_0_strict$schema$value
584
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_0_strict$schema$value ??= z.string())
585
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_1_strict$schema$value
586
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_1_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_1_strict$schema$value ??= z.union([z.literal("default"), z.literal("dontAsk"), z.literal("acceptEdits"), z.literal("auto"), z.literal("plan"), z.literal("bypassPermissions")]))
587
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_0_strict$schema$value
588
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_0_strict$schema$value ??= z.string())
589
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_1_strict$schema$value
590
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_1_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_1_strict$schema$value ??= z.union([z.undefined(), z.literal("summary"), z.literal("full")]))
591
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_installCli_parameter_0_strict$schema$value
592
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_installCli_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_installCli_parameter_0_strict$schema$value ??= z.string())
593
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_0_strict$schema$value
594
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_0_strict$schema$value ??= z.string())
595
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_1_strict$schema$value
596
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_1_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_1_strict$schema$value ??= z.string())
597
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionView_parameter_0_strict$schema$value
598
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionView_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionView_parameter_0_strict$schema$value ??= z.string())
599
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_read_parameter_0_strict$schema$value
600
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_read_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_read_parameter_0_strict$schema$value ??= z.string())
601
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_0_strict$schema$value
602
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_0_strict$schema$value ??= z.string())
603
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_1_strict$schema$value
604
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_1_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_1_strict$schema$value ??= z.number())
605
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_2_strict$schema$value
606
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_2_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_2_strict$schema$value ??= z.number())
607
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_rollback_parameter_0_strict$schema$value
608
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_rollback_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_rollback_parameter_0_strict$schema$value ??= z.string())
609
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalUpdate_parameter_0_strict$schema$value
610
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalUpdate_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalUpdate_parameter_0_strict$schema$value ??= z.record(z.string(), z.string()))
611
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUpdate_parameter_0_strict$schema$value
612
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUpdate_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUpdate_parameter_0_strict$schema$value ??= z.strictObject({
613
+ 'outputStyle': z.union([z.undefined(), z.string()]).optional(),
614
+ 'permissionSelector': z.union([z.undefined(), z.literal("plugin"), z.literal("native")]).optional(),
615
+ 'permissionMode': z.union([z.undefined(), z.literal("default"), z.literal("dontAsk"), z.literal("acceptEdits"), z.literal("auto"), z.literal("plan"), z.literal("bypassPermissions")]).optional(),
616
+ 'renderer': z.union([z.undefined(), z.literal("plugin"), z.literal("native")]).optional(),
617
+ 'prose': z.union([z.undefined(), z.literal("plain"), z.literal("enhanced")]).optional(),
618
+ 'maxProcesses': z.union([z.undefined(), z.number()]).optional(),
619
+ 'contextWindow': z.union([z.undefined(), z.number(), z.literal("auto"), z.literal("200k"), z.literal("1m")]).optional(),
620
+ 'autoCompactWindow': z.union([z.undefined(), z.number(), z.literal("auto")]).optional(),
621
+ 'promptCacheTtl': z.union([z.undefined(), z.literal("auto"), z.literal("5m"), z.literal("1h")]).optional(),
622
+ 'subagentPromptCacheTtl': z.union([z.undefined(), z.literal("auto"), z.literal("5m"), z.literal("1h")]).optional(),
623
+ }))
624
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_status_parameter_0_strict$schema$value
625
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_status_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_status_parameter_0_strict$schema$value ??= z.string())
626
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_stop_parameter_0_strict$schema$value
627
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_stop_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_stop_parameter_0_strict$schema$value ??= z.string())
628
+ let _zerowall_dsh_claude_coderun_zerowallClaudeCode_uninstall_parameter_0_strict$schema$value
629
+ const _zerowall_dsh_claude_coderun_zerowallClaudeCode_uninstall_parameter_0_strict$schema = () => (_zerowall_dsh_claude_coderun_zerowallClaudeCode_uninstall_parameter_0_strict$schema$value ??= z.string())
630
+
631
+ const $remote = createTypertRemoteInfo({
632
+ package: '@zerowall/dsh-claude-coderun',
633
+ methods: {
634
+ 'zerowallClaudeCode/clear': {
635
+ service: 'zerowallClaudeCode',
636
+ invocation: { kind: 'direct' },
637
+ scope: {
638
+ context: 'agent',
639
+ wire: 'agentId',
640
+ },
641
+ parameters: [
642
+ {
643
+ name: 'agent',
644
+ wire: 'agentId',
645
+ source: 'lookup',
646
+ lookup: 'agent',
647
+ codec: {
648
+ mode: 'strict',
649
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
650
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_clear_parameter_0$schema,
651
+ jsonSchema: {"type":"string"},
652
+ },
653
+ strictCodec: {
654
+ mode: 'strict',
655
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
656
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_clear_parameter_0_strict$schema,
657
+ jsonSchema: {"type":"string"},
658
+ },
659
+ },
660
+ ],
661
+ result: {
662
+ mode: 'strict',
663
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/clear:result',
664
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_clear_result$schema,
665
+ jsonSchemaError: 'typert tool schema: unsupported void value',
666
+ },
667
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":1423,"column":3},
668
+ },
669
+ 'zerowallClaudeCode/cliSetModel': {
670
+ service: 'zerowallClaudeCode',
671
+ invocation: { kind: 'direct' },
672
+ scope: {
673
+ context: 'agent',
674
+ wire: 'agentId',
675
+ },
676
+ parameters: [
677
+ {
678
+ name: 'agent',
679
+ wire: 'agentId',
680
+ source: 'lookup',
681
+ lookup: 'agent',
682
+ codec: {
683
+ mode: 'strict',
684
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
685
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_0$schema,
686
+ jsonSchema: {"type":"string"},
687
+ },
688
+ strictCodec: {
689
+ mode: 'strict',
690
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
691
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_0_strict$schema,
692
+ jsonSchema: {"type":"string"},
693
+ },
694
+ },
695
+ {
696
+ name: 'model',
697
+ source: 'json',
698
+ codec: {
699
+ mode: 'strict',
700
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/cliSetModel:model',
701
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_1$schema,
702
+ jsonSchema: {"type":"string"},
703
+ },
704
+ strictCodec: {
705
+ mode: 'strict',
706
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/cliSetModel:model',
707
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_parameter_1_strict$schema,
708
+ jsonSchema: {"type":"string"},
709
+ },
710
+ },
711
+ ],
712
+ result: {
713
+ mode: 'strict',
714
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeCliState',
715
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetModel_result$schema,
716
+ jsonSchema: {"type":"object","properties":{"active":{"type":"boolean"},"queued":{"type":"boolean"},"sessionId":{"type":"string"},"model":{"type":"string"},"commands":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"argumentHint":{"type":"string"}},"required":["name"],"additionalProperties":true}},"output":{"type":"string"},"contextUsage":{"type":"object","properties":{"totalTokens":{"type":"number"},"maxTokens":{"type":"number"},"rawMaxTokens":{"type":"number"},"percentage":{"type":"number"},"autoCompactThreshold":{"type":"number"},"isAutoCompactEnabled":{"type":"boolean","enum":[false,true],"description":"Present only when the managed Claude runtime reports its real state."},"detail":{"type":"string","enum":["summary","full"]},"apiUsage":{"type":"object","properties":{"input_tokens":{"type":"number"},"output_tokens":{"type":"number"},"cache_creation_input_tokens":{"type":"number"},"cache_read_input_tokens":{"type":"number"}},"required":[],"additionalProperties":true}},"required":["totalTokens","maxTokens","percentage","detail"],"additionalProperties":true},"lastCompact":{"type":"object","properties":{"trigger":{"type":"string","enum":["auto","manual"]},"preTokens":{"type":"number"},"postTokens":{"type":"number"},"durationMs":{"type":"number"}},"required":["trigger","preTokens"],"additionalProperties":true},"error":{"type":"string"},"diagnostics":{"type":"object","properties":{"model":{"type":"string"},"routeCredential":{"type":"string","enum":["injected","missing"]},"routeBaseUrl":{"type":"string","enum":["injected","missing"]},"claudeOAuth":{"type":"string","enum":["not-used","required"]},"skills":{"type":"object","properties":{"synced":{"type":"number"},"skipped":{"type":"number"}},"required":["synced","skipped"],"additionalProperties":true},"mcp":{"type":"object","properties":{"synced":{"type":"number"},"skipped":{"type":"number"}},"required":["synced","skipped"],"additionalProperties":true},"environmentNames":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"type":"string"}}},"required":["routeCredential","routeBaseUrl","claudeOAuth","skills","mcp","environmentNames","skipped"],"additionalProperties":true}},"required":["active","queued","commands","output"],"additionalProperties":true},
717
+ },
718
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":1379,"column":9},
719
+ },
720
+ 'zerowallClaudeCode/cliSetPermissionMode': {
721
+ service: 'zerowallClaudeCode',
722
+ invocation: { kind: 'direct' },
723
+ scope: {
724
+ context: 'agent',
725
+ wire: 'agentId',
726
+ },
727
+ parameters: [
728
+ {
729
+ name: 'agent',
730
+ wire: 'agentId',
731
+ source: 'lookup',
732
+ lookup: 'agent',
733
+ codec: {
734
+ mode: 'strict',
735
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
736
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_0$schema,
737
+ jsonSchema: {"type":"string"},
738
+ },
739
+ strictCodec: {
740
+ mode: 'strict',
741
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
742
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_0_strict$schema,
743
+ jsonSchema: {"type":"string"},
744
+ },
745
+ },
746
+ {
747
+ name: 'mode',
748
+ source: 'json',
749
+ codec: {
750
+ mode: 'strict',
751
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudePermissionMode',
752
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_1$schema,
753
+ jsonSchema: {"type":"string","enum":["default","dontAsk","acceptEdits","auto","plan","bypassPermissions"]},
754
+ },
755
+ strictCodec: {
756
+ mode: 'strict',
757
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudePermissionMode',
758
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_parameter_1_strict$schema,
759
+ jsonSchema: {"type":"string","enum":["default","dontAsk","acceptEdits","auto","plan","bypassPermissions"]},
760
+ },
761
+ },
762
+ ],
763
+ result: {
764
+ mode: 'strict',
765
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeCliState',
766
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_cliSetPermissionMode_result$schema,
767
+ jsonSchema: {"type":"object","properties":{"active":{"type":"boolean"},"queued":{"type":"boolean"},"sessionId":{"type":"string"},"model":{"type":"string"},"commands":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"argumentHint":{"type":"string"}},"required":["name"],"additionalProperties":true}},"output":{"type":"string"},"contextUsage":{"type":"object","properties":{"totalTokens":{"type":"number"},"maxTokens":{"type":"number"},"rawMaxTokens":{"type":"number"},"percentage":{"type":"number"},"autoCompactThreshold":{"type":"number"},"isAutoCompactEnabled":{"type":"boolean","enum":[false,true],"description":"Present only when the managed Claude runtime reports its real state."},"detail":{"type":"string","enum":["summary","full"]},"apiUsage":{"type":"object","properties":{"input_tokens":{"type":"number"},"output_tokens":{"type":"number"},"cache_creation_input_tokens":{"type":"number"},"cache_read_input_tokens":{"type":"number"}},"required":[],"additionalProperties":true}},"required":["totalTokens","maxTokens","percentage","detail"],"additionalProperties":true},"lastCompact":{"type":"object","properties":{"trigger":{"type":"string","enum":["auto","manual"]},"preTokens":{"type":"number"},"postTokens":{"type":"number"},"durationMs":{"type":"number"}},"required":["trigger","preTokens"],"additionalProperties":true},"error":{"type":"string"},"diagnostics":{"type":"object","properties":{"model":{"type":"string"},"routeCredential":{"type":"string","enum":["injected","missing"]},"routeBaseUrl":{"type":"string","enum":["injected","missing"]},"claudeOAuth":{"type":"string","enum":["not-used","required"]},"skills":{"type":"object","properties":{"synced":{"type":"number"},"skipped":{"type":"number"}},"required":["synced","skipped"],"additionalProperties":true},"mcp":{"type":"object","properties":{"synced":{"type":"number"},"skipped":{"type":"number"}},"required":["synced","skipped"],"additionalProperties":true},"environmentNames":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"type":"string"}}},"required":["routeCredential","routeBaseUrl","claudeOAuth","skills","mcp","environmentNames","skipped"],"additionalProperties":true}},"required":["active","queued","commands","output"],"additionalProperties":true},
768
+ },
769
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":1388,"column":9},
770
+ },
771
+ 'zerowallClaudeCode/contextUsage': {
772
+ service: 'zerowallClaudeCode',
773
+ invocation: { kind: 'direct' },
774
+ scope: {
775
+ context: 'agent',
776
+ wire: 'agentId',
777
+ },
778
+ parameters: [
779
+ {
780
+ name: 'agent',
781
+ wire: 'agentId',
782
+ source: 'lookup',
783
+ lookup: 'agent',
784
+ codec: {
785
+ mode: 'strict',
786
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
787
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_0$schema,
788
+ jsonSchema: {"type":"string"},
789
+ },
790
+ strictCodec: {
791
+ mode: 'strict',
792
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
793
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_0_strict$schema,
794
+ jsonSchema: {"type":"string"},
795
+ },
796
+ },
797
+ {
798
+ name: 'detail',
799
+ source: 'json',
800
+ acceptsUndefined: true,
801
+ codec: {
802
+ mode: 'strict',
803
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/contextUsage:detail',
804
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_1$schema,
805
+ jsonSchema: {"type":"string","enum":["summary","full"]},
806
+ },
807
+ strictCodec: {
808
+ mode: 'strict',
809
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/contextUsage:detail',
810
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_parameter_1_strict$schema,
811
+ jsonSchema: {"type":"string","enum":["summary","full"]},
812
+ },
813
+ },
814
+ ],
815
+ result: {
816
+ mode: 'strict',
817
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeCliState',
818
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_contextUsage_result$schema,
819
+ jsonSchema: {"type":"object","properties":{"active":{"type":"boolean"},"queued":{"type":"boolean"},"sessionId":{"type":"string"},"model":{"type":"string"},"commands":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"argumentHint":{"type":"string"}},"required":["name"],"additionalProperties":true}},"output":{"type":"string"},"contextUsage":{"type":"object","properties":{"totalTokens":{"type":"number"},"maxTokens":{"type":"number"},"rawMaxTokens":{"type":"number"},"percentage":{"type":"number"},"autoCompactThreshold":{"type":"number"},"isAutoCompactEnabled":{"type":"boolean","enum":[false,true],"description":"Present only when the managed Claude runtime reports its real state."},"detail":{"type":"string","enum":["summary","full"]},"apiUsage":{"type":"object","properties":{"input_tokens":{"type":"number"},"output_tokens":{"type":"number"},"cache_creation_input_tokens":{"type":"number"},"cache_read_input_tokens":{"type":"number"}},"required":[],"additionalProperties":true}},"required":["totalTokens","maxTokens","percentage","detail"],"additionalProperties":true},"lastCompact":{"type":"object","properties":{"trigger":{"type":"string","enum":["auto","manual"]},"preTokens":{"type":"number"},"postTokens":{"type":"number"},"durationMs":{"type":"number"}},"required":["trigger","preTokens"],"additionalProperties":true},"error":{"type":"string"},"diagnostics":{"type":"object","properties":{"model":{"type":"string"},"routeCredential":{"type":"string","enum":["injected","missing"]},"routeBaseUrl":{"type":"string","enum":["injected","missing"]},"claudeOAuth":{"type":"string","enum":["not-used","required"]},"skills":{"type":"object","properties":{"synced":{"type":"number"},"skipped":{"type":"number"}},"required":["synced","skipped"],"additionalProperties":true},"mcp":{"type":"object","properties":{"synced":{"type":"number"},"skipped":{"type":"number"}},"required":["synced","skipped"],"additionalProperties":true},"environmentNames":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"type":"string"}}},"required":["routeCredential","routeBaseUrl","claudeOAuth","skills","mcp","environmentNames","skipped"],"additionalProperties":true}},"required":["active","queued","commands","output"],"additionalProperties":true},
820
+ },
821
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":1362,"column":9},
822
+ },
823
+ 'zerowallClaudeCode/installCli': {
824
+ service: 'zerowallClaudeCode',
825
+ implementation: 'install',
826
+ invocation: { kind: 'direct' },
827
+ scope: {
828
+ context: 'agent',
829
+ wire: 'agentId',
830
+ },
831
+ parameters: [
832
+ {
833
+ name: 'agent',
834
+ wire: 'agentId',
835
+ source: 'lookup',
836
+ lookup: 'agent',
837
+ codec: {
838
+ mode: 'strict',
839
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
840
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_installCli_parameter_0$schema,
841
+ jsonSchema: {"type":"string"},
842
+ },
843
+ strictCodec: {
844
+ mode: 'strict',
845
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
846
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_installCli_parameter_0_strict$schema,
847
+ jsonSchema: {"type":"string"},
848
+ },
849
+ },
850
+ ],
851
+ result: {
852
+ mode: 'strict',
853
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeCodeStatus',
854
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_installCli_result$schema,
855
+ jsonSchema: {"type":"object","properties":{"desktop":{"type":"boolean"},"installed":{"type":"boolean"},"version":{"type":"string"},"executablePath":{"type":"string","description":"Application-managed CLI; never a PATH lookup or the user's Claude install."},"rollbackAvailable":{"type":"boolean"},"running":{"type":"boolean"},"readiness":{"type":"string","enum":["installed","unavailable"]},"diagnostic":{"type":"string"}},"required":["desktop","installed","rollbackAvailable","running"],"additionalProperties":true},
856
+ },
857
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":573,"column":9},
858
+ },
859
+ 'zerowallClaudeCode/permissionSet': {
860
+ service: 'zerowallClaudeCode',
861
+ invocation: { kind: 'direct' },
862
+ scope: {
863
+ context: 'agent',
864
+ wire: 'agentId',
865
+ },
866
+ parameters: [
867
+ {
868
+ name: 'agent',
869
+ wire: 'agentId',
870
+ source: 'lookup',
871
+ lookup: 'agent',
872
+ codec: {
873
+ mode: 'strict',
874
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
875
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_0$schema,
876
+ jsonSchema: {"type":"string"},
877
+ },
878
+ strictCodec: {
879
+ mode: 'strict',
880
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
881
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_0_strict$schema,
882
+ jsonSchema: {"type":"string"},
883
+ },
884
+ },
885
+ {
886
+ name: 'value',
887
+ source: 'json',
888
+ codec: {
889
+ mode: 'strict',
890
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/permissionSet:value',
891
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_1$schema,
892
+ jsonSchema: {"type":"string"},
893
+ },
894
+ strictCodec: {
895
+ mode: 'strict',
896
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/permissionSet:value',
897
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_parameter_1_strict$schema,
898
+ jsonSchema: {"type":"string"},
899
+ },
900
+ },
901
+ ],
902
+ result: {
903
+ mode: 'strict',
904
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudePermissionView',
905
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionSet_result$schema,
906
+ jsonSchema: {"type":"object","properties":{"active":{"type":"boolean"},"source":{"type":"string","enum":["plugin","native"]},"mode":{"type":"string","enum":["default","dontAsk","acceptEdits","auto","plan","bypassPermissions"]},"hostPreset":{"type":"string"},"hostSandbox":{"type":"string"},"hostApproval":{"type":"string"},"runningMode":{"type":"string","enum":["default","dontAsk","acceptEdits","auto","plan","bypassPermissions"]},"nativeOptions":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["value","name"],"additionalProperties":true}}},"required":["active","source","mode","hostPreset","hostSandbox","hostApproval","nativeOptions"],"additionalProperties":true},
907
+ },
908
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":637,"column":9},
909
+ },
910
+ 'zerowallClaudeCode/permissionView': {
911
+ service: 'zerowallClaudeCode',
912
+ invocation: { kind: 'direct' },
913
+ scope: {
914
+ context: 'agent',
915
+ wire: 'agentId',
916
+ },
917
+ parameters: [
918
+ {
919
+ name: 'agent',
920
+ wire: 'agentId',
921
+ source: 'lookup',
922
+ lookup: 'agent',
923
+ codec: {
924
+ mode: 'strict',
925
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
926
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionView_parameter_0$schema,
927
+ jsonSchema: {"type":"string"},
928
+ },
929
+ strictCodec: {
930
+ mode: 'strict',
931
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
932
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionView_parameter_0_strict$schema,
933
+ jsonSchema: {"type":"string"},
934
+ },
935
+ },
936
+ ],
937
+ result: {
938
+ mode: 'strict',
939
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudePermissionView',
940
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_permissionView_result$schema,
941
+ jsonSchema: {"type":"object","properties":{"active":{"type":"boolean"},"source":{"type":"string","enum":["plugin","native"]},"mode":{"type":"string","enum":["default","dontAsk","acceptEdits","auto","plan","bypassPermissions"]},"hostPreset":{"type":"string"},"hostSandbox":{"type":"string"},"hostApproval":{"type":"string"},"runningMode":{"type":"string","enum":["default","dontAsk","acceptEdits","auto","plan","bypassPermissions"]},"nativeOptions":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["value","name"],"additionalProperties":true}}},"required":["active","source","mode","hostPreset","hostSandbox","hostApproval","nativeOptions"],"additionalProperties":true},
942
+ },
943
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":615,"column":9},
944
+ },
945
+ 'zerowallClaudeCode/read': {
946
+ service: 'zerowallClaudeCode',
947
+ invocation: { kind: 'direct' },
948
+ scope: {
949
+ context: 'agent',
950
+ wire: 'agentId',
951
+ },
952
+ parameters: [
953
+ {
954
+ name: 'agent',
955
+ wire: 'agentId',
956
+ source: 'lookup',
957
+ lookup: 'agent',
958
+ codec: {
959
+ mode: 'strict',
960
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
961
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_read_parameter_0$schema,
962
+ jsonSchema: {"type":"string"},
963
+ },
964
+ strictCodec: {
965
+ mode: 'strict',
966
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
967
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_read_parameter_0_strict$schema,
968
+ jsonSchema: {"type":"string"},
969
+ },
970
+ },
971
+ ],
972
+ result: {
973
+ mode: 'strict',
974
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/read:result',
975
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_read_result$schema,
976
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string"},"model":{"type":"string"},"executablePath":{"type":"string","description":"Absolute CLI entrypoint captured for this turn, before spawning it."},"running":{"type":"boolean"},"output":{"type":"string"},"exitCode":{"oneOf":[{"type":"null","const":null},{"type":"number"}]},"message":{"type":"string"},"skills":{"type":"number"},"mcp":{"type":"number"},"skipped":{"type":"array","items":{"type":"string"}},"renderer":{"type":"string","enum":["plugin","native"]},"turn":{"type":"number"},"step":{"type":"number"},"activity":{"type":"array","items":{"type":"object","properties":{"index":{"type":"number"},"kind":{"type":"string","enum":["text","reasoning","tool-call"]},"text":{"type":"string"},"ended":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"result":{"type":"string"},"failed":{"type":"boolean","enum":[false,true]},"answer":{"type":"boolean","enum":[false,true]}},"required":["index","kind","text","ended"],"additionalProperties":true}},"nativeSessionId":{"type":"string"},"resumed":{"type":"boolean","enum":[false,true]},"permission":{"type":"object","properties":{"active":{"type":"boolean"},"source":{"type":"string","enum":["plugin","native"]},"mode":{"type":"string","enum":["default","dontAsk","acceptEdits","auto","plan","bypassPermissions"]},"hostPreset":{"type":"string"},"hostSandbox":{"type":"string"},"hostApproval":{"type":"string"},"runningMode":{"type":"string","enum":["default","dontAsk","acceptEdits","auto","plan","bypassPermissions"]},"nativeOptions":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["value","name"],"additionalProperties":true}}},"required":["active","source","mode","hostPreset","hostSandbox","hostApproval","nativeOptions"],"additionalProperties":true},"resources":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["skill","mcp"]},"name":{"type":"string"},"state":{"type":"string","enum":["unavailable","manual","synced","disabled","failed"]},"detail":{"type":"string"}},"required":["kind","name","state"],"additionalProperties":true}},"diagnostic":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"string"}},"required":["id","category"],"additionalProperties":true},"contextUsage":{"type":"object","properties":{"totalTokens":{"type":"number"},"maxTokens":{"type":"number"},"rawMaxTokens":{"type":"number"},"percentage":{"type":"number"},"autoCompactThreshold":{"type":"number"},"isAutoCompactEnabled":{"type":"boolean","enum":[false,true],"description":"Present only when the managed Claude runtime reports its real state."},"detail":{"type":"string","enum":["summary","full"]},"apiUsage":{"type":"object","properties":{"input_tokens":{"type":"number"},"output_tokens":{"type":"number"},"cache_creation_input_tokens":{"type":"number"},"cache_read_input_tokens":{"type":"number"}},"required":[],"additionalProperties":true}},"required":["totalTokens","maxTokens","percentage","detail"],"additionalProperties":true},"lastCompact":{"type":"object","properties":{"trigger":{"type":"string","enum":["auto","manual"]},"preTokens":{"type":"number"},"postTokens":{"type":"number"},"durationMs":{"type":"number"}},"required":["trigger","preTokens"],"additionalProperties":true}},"required":["id","provider","model","running","output","skills","mcp","skipped"],"additionalProperties":true}]},
977
+ },
978
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":1396,"column":3},
979
+ },
980
+ 'zerowallClaudeCode/readTranscript': {
981
+ service: 'zerowallClaudeCode',
982
+ invocation: { kind: 'direct' },
983
+ scope: {
984
+ context: 'agent',
985
+ wire: 'agentId',
986
+ },
987
+ parameters: [
988
+ {
989
+ name: 'agent',
990
+ wire: 'agentId',
991
+ source: 'lookup',
992
+ lookup: 'agent',
993
+ codec: {
994
+ mode: 'strict',
995
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
996
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_0$schema,
997
+ jsonSchema: {"type":"string"},
998
+ },
999
+ strictCodec: {
1000
+ mode: 'strict',
1001
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1002
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_0_strict$schema,
1003
+ jsonSchema: {"type":"string"},
1004
+ },
1005
+ },
1006
+ {
1007
+ name: 'turn',
1008
+ source: 'json',
1009
+ codec: {
1010
+ mode: 'strict',
1011
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/readTranscript:turn',
1012
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_1$schema,
1013
+ jsonSchema: {"type":"number"},
1014
+ },
1015
+ strictCodec: {
1016
+ mode: 'strict',
1017
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/readTranscript:turn',
1018
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_1_strict$schema,
1019
+ jsonSchema: {"type":"number"},
1020
+ },
1021
+ },
1022
+ {
1023
+ name: 'step',
1024
+ source: 'json',
1025
+ codec: {
1026
+ mode: 'strict',
1027
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/readTranscript:step',
1028
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_2$schema,
1029
+ jsonSchema: {"type":"number"},
1030
+ },
1031
+ strictCodec: {
1032
+ mode: 'strict',
1033
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/readTranscript:step',
1034
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_parameter_2_strict$schema,
1035
+ jsonSchema: {"type":"number"},
1036
+ },
1037
+ },
1038
+ ],
1039
+ result: {
1040
+ mode: 'strict',
1041
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/readTranscript:result',
1042
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_readTranscript_result$schema,
1043
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"turn":{"type":"number"},"step":{"type":"number"},"renderer":{"type":"string","enum":["plugin","native"]},"running":{"type":"boolean"},"activity":{"type":"array","items":{"type":"object","properties":{"index":{"type":"number"},"kind":{"type":"string","enum":["text","reasoning","tool-call"]},"text":{"type":"string"},"ended":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"result":{"type":"string"},"failed":{"type":"boolean","enum":[false,true]},"answer":{"type":"boolean","enum":[false,true]}},"required":["index","kind","text","ended"],"additionalProperties":true}}},"required":["turn","step","renderer","running","activity"],"additionalProperties":true}]},
1044
+ },
1045
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":1401,"column":3},
1046
+ },
1047
+ 'zerowallClaudeCode/rollback': {
1048
+ service: 'zerowallClaudeCode',
1049
+ invocation: { kind: 'direct' },
1050
+ scope: {
1051
+ context: 'agent',
1052
+ wire: 'agentId',
1053
+ },
1054
+ parameters: [
1055
+ {
1056
+ name: 'agent',
1057
+ wire: 'agentId',
1058
+ source: 'lookup',
1059
+ lookup: 'agent',
1060
+ codec: {
1061
+ mode: 'strict',
1062
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1063
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_rollback_parameter_0$schema,
1064
+ jsonSchema: {"type":"string"},
1065
+ },
1066
+ strictCodec: {
1067
+ mode: 'strict',
1068
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1069
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_rollback_parameter_0_strict$schema,
1070
+ jsonSchema: {"type":"string"},
1071
+ },
1072
+ },
1073
+ ],
1074
+ result: {
1075
+ mode: 'strict',
1076
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeCodeStatus',
1077
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_rollback_result$schema,
1078
+ jsonSchema: {"type":"object","properties":{"desktop":{"type":"boolean"},"installed":{"type":"boolean"},"version":{"type":"string"},"executablePath":{"type":"string","description":"Application-managed CLI; never a PATH lookup or the user's Claude install."},"rollbackAvailable":{"type":"boolean"},"running":{"type":"boolean"},"readiness":{"type":"string","enum":["installed","unavailable"]},"diagnostic":{"type":"string"}},"required":["desktop","installed","rollbackAvailable","running"],"additionalProperties":true},
1079
+ },
1080
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":575,"column":9},
1081
+ },
1082
+ 'zerowallClaudeCode/settingsGet': {
1083
+ service: 'zerowallClaudeCode',
1084
+ invocation: { kind: 'direct' },
1085
+ parameters: [
1086
+ ],
1087
+ result: {
1088
+ mode: 'strict',
1089
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeNativeSettings',
1090
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGet_result$schema,
1091
+ jsonSchema: {"type":"object","properties":{"outputStyle":{"type":"string"},"permissionSelector":{"type":"string","enum":["plugin","native"]},"permissionMode":{"type":"string","enum":["default","dontAsk","acceptEdits","auto","plan","bypassPermissions"]},"renderer":{"type":"string","enum":["plugin","native"]},"prose":{"type":"string","enum":["plain","enhanced"]},"maxProcesses":{"type":"number"},"contextWindow":{"oneOf":[{"type":"number"},{"type":"string","enum":["auto","200k","1m"]}]},"autoCompactWindow":{"oneOf":[{"type":"number"},{"type":"string","const":"auto"}]},"promptCacheTtl":{"type":"string","enum":["auto","5m","1h"]},"subagentPromptCacheTtl":{"type":"string","enum":["auto","5m","1h"]}},"required":[],"additionalProperties":true},
1092
+ },
1093
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":304,"column":9},
1094
+ },
1095
+ 'zerowallClaudeCode/settingsGlobalGet': {
1096
+ service: 'zerowallClaudeCode',
1097
+ description: 'Dynamic descriptor view matching Claude Code\'s native Settings surface.',
1098
+ invocation: { kind: 'direct' },
1099
+ parameters: [
1100
+ ],
1101
+ result: {
1102
+ mode: 'strict',
1103
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeGlobalSettingsView',
1104
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalGet_result$schema,
1105
+ jsonSchema: {"type":"object","properties":{"settings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","const":"select"},"value":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"source":{"type":"string","enum":["built-in","user","configured"]}},"required":["value","label","source"],"additionalProperties":true}},"effect":{"type":"string","enum":["immediate","new-session","next-turn","next-worktree","restart"]},"available":{"type":"boolean","enum":[false,true]},"unavailableReason":{"type":"string"},"effective":{"type":"object","properties":{"requested":{"type":"string"},"effective":{"type":"string"},"source":{"type":"string","enum":["auto","explicit","external","clamped","unsupported"]},"available":{"type":"boolean"},"reason":{"type":"string"},"effect":{"type":"string","enum":["immediate","new-session","next-turn","next-worktree","restart"]}},"required":["requested","effective","source","available","effect"],"additionalProperties":true}},"required":["key","kind","value","options","effect"],"additionalProperties":true},{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","const":"text"},"value":{"type":"string"},"maxLength":{"type":"number"},"effect":{"type":"string","enum":["immediate","new-session","next-turn","next-worktree","restart"]},"available":{"type":"boolean","enum":[false,true]},"unavailableReason":{"type":"string"},"effective":{"type":"object","properties":{"requested":{"type":"string"},"effective":{"type":"string"},"source":{"type":"string","enum":["auto","explicit","external","clamped","unsupported"]},"available":{"type":"boolean"},"reason":{"type":"string"},"effect":{"type":"string","enum":["immediate","new-session","next-turn","next-worktree","restart"]}},"required":["requested","effective","source","available","effect"],"additionalProperties":true}},"required":["key","kind","value","maxLength","effect"],"additionalProperties":true},{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","const":"number"},"value":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number"},"presets":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":true}},"effect":{"type":"string","enum":["immediate","new-session","next-turn","next-worktree","restart"]},"available":{"type":"boolean","enum":[false,true]},"unavailableReason":{"type":"string"},"effective":{"type":"object","properties":{"requested":{"type":"string"},"effective":{"type":"string"},"source":{"type":"string","enum":["auto","explicit","external","clamped","unsupported"]},"available":{"type":"boolean"},"reason":{"type":"string"},"effect":{"type":"string","enum":["immediate","new-session","next-turn","next-worktree","restart"]}},"required":["requested","effective","source","available","effect"],"additionalProperties":true}},"required":["key","kind","value","min","max","step","effect"],"additionalProperties":true}]}}},"required":["settings"],"additionalProperties":true},
1106
+ },
1107
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":362,"column":9},
1108
+ },
1109
+ 'zerowallClaudeCode/settingsGlobalUpdate': {
1110
+ service: 'zerowallClaudeCode',
1111
+ invocation: { kind: 'direct' },
1112
+ parameters: [
1113
+ {
1114
+ name: 'changes',
1115
+ source: 'json',
1116
+ codec: {
1117
+ mode: 'strict',
1118
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/settingsGlobalUpdate:changes',
1119
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalUpdate_parameter_0$schema,
1120
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
1121
+ },
1122
+ strictCodec: {
1123
+ mode: 'strict',
1124
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/settingsGlobalUpdate:changes',
1125
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalUpdate_parameter_0_strict$schema,
1126
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
1127
+ },
1128
+ },
1129
+ ],
1130
+ result: {
1131
+ mode: 'strict',
1132
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeGlobalSettingsView',
1133
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsGlobalUpdate_result$schema,
1134
+ jsonSchema: {"type":"object","properties":{"settings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","const":"select"},"value":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"source":{"type":"string","enum":["built-in","user","configured"]}},"required":["value","label","source"],"additionalProperties":true}},"effect":{"type":"string","enum":["immediate","new-session","next-turn","next-worktree","restart"]},"available":{"type":"boolean","enum":[false,true]},"unavailableReason":{"type":"string"},"effective":{"type":"object","properties":{"requested":{"type":"string"},"effective":{"type":"string"},"source":{"type":"string","enum":["auto","explicit","external","clamped","unsupported"]},"available":{"type":"boolean"},"reason":{"type":"string"},"effect":{"type":"string","enum":["immediate","new-session","next-turn","next-worktree","restart"]}},"required":["requested","effective","source","available","effect"],"additionalProperties":true}},"required":["key","kind","value","options","effect"],"additionalProperties":true},{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","const":"text"},"value":{"type":"string"},"maxLength":{"type":"number"},"effect":{"type":"string","enum":["immediate","new-session","next-turn","next-worktree","restart"]},"available":{"type":"boolean","enum":[false,true]},"unavailableReason":{"type":"string"},"effective":{"type":"object","properties":{"requested":{"type":"string"},"effective":{"type":"string"},"source":{"type":"string","enum":["auto","explicit","external","clamped","unsupported"]},"available":{"type":"boolean"},"reason":{"type":"string"},"effect":{"type":"string","enum":["immediate","new-session","next-turn","next-worktree","restart"]}},"required":["requested","effective","source","available","effect"],"additionalProperties":true}},"required":["key","kind","value","maxLength","effect"],"additionalProperties":true},{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","const":"number"},"value":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number"},"presets":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":true}},"effect":{"type":"string","enum":["immediate","new-session","next-turn","next-worktree","restart"]},"available":{"type":"boolean","enum":[false,true]},"unavailableReason":{"type":"string"},"effective":{"type":"object","properties":{"requested":{"type":"string"},"effective":{"type":"string"},"source":{"type":"string","enum":["auto","explicit","external","clamped","unsupported"]},"available":{"type":"boolean"},"reason":{"type":"string"},"effect":{"type":"string","enum":["immediate","new-session","next-turn","next-worktree","restart"]}},"required":["requested","effective","source","available","effect"],"additionalProperties":true}},"required":["key","kind","value","min","max","step","effect"],"additionalProperties":true}]}}},"required":["settings"],"additionalProperties":true},
1135
+ },
1136
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":393,"column":9},
1137
+ },
1138
+ 'zerowallClaudeCode/settingsInstall': {
1139
+ service: 'zerowallClaudeCode',
1140
+ invocation: { kind: 'direct' },
1141
+ parameters: [
1142
+ ],
1143
+ result: {
1144
+ mode: 'strict',
1145
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeCodeStatus',
1146
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsInstall_result$schema,
1147
+ jsonSchema: {"type":"object","properties":{"desktop":{"type":"boolean"},"installed":{"type":"boolean"},"version":{"type":"string"},"executablePath":{"type":"string","description":"Application-managed CLI; never a PATH lookup or the user's Claude install."},"rollbackAvailable":{"type":"boolean"},"running":{"type":"boolean"},"readiness":{"type":"string","enum":["installed","unavailable"]},"diagnostic":{"type":"string"}},"required":["desktop","installed","rollbackAvailable","running"],"additionalProperties":true},
1148
+ },
1149
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":580,"column":9},
1150
+ },
1151
+ 'zerowallClaudeCode/settingsRollback': {
1152
+ service: 'zerowallClaudeCode',
1153
+ invocation: { kind: 'direct' },
1154
+ parameters: [
1155
+ ],
1156
+ result: {
1157
+ mode: 'strict',
1158
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeCodeStatus',
1159
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsRollback_result$schema,
1160
+ jsonSchema: {"type":"object","properties":{"desktop":{"type":"boolean"},"installed":{"type":"boolean"},"version":{"type":"string"},"executablePath":{"type":"string","description":"Application-managed CLI; never a PATH lookup or the user's Claude install."},"rollbackAvailable":{"type":"boolean"},"running":{"type":"boolean"},"readiness":{"type":"string","enum":["installed","unavailable"]},"diagnostic":{"type":"string"}},"required":["desktop","installed","rollbackAvailable","running"],"additionalProperties":true},
1161
+ },
1162
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":582,"column":9},
1163
+ },
1164
+ 'zerowallClaudeCode/settingsStatus': {
1165
+ service: 'zerowallClaudeCode',
1166
+ invocation: { kind: 'direct' },
1167
+ parameters: [
1168
+ ],
1169
+ result: {
1170
+ mode: 'strict',
1171
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeCodeStatus',
1172
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsStatus_result$schema,
1173
+ jsonSchema: {"type":"object","properties":{"desktop":{"type":"boolean"},"installed":{"type":"boolean"},"version":{"type":"string"},"executablePath":{"type":"string","description":"Application-managed CLI; never a PATH lookup or the user's Claude install."},"rollbackAvailable":{"type":"boolean"},"running":{"type":"boolean"},"readiness":{"type":"string","enum":["installed","unavailable"]},"diagnostic":{"type":"string"}},"required":["desktop","installed","rollbackAvailable","running"],"additionalProperties":true},
1174
+ },
1175
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":301,"column":9},
1176
+ },
1177
+ 'zerowallClaudeCode/settingsUninstall': {
1178
+ service: 'zerowallClaudeCode',
1179
+ invocation: { kind: 'direct' },
1180
+ parameters: [
1181
+ ],
1182
+ result: {
1183
+ mode: 'strict',
1184
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeCodeStatus',
1185
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUninstall_result$schema,
1186
+ jsonSchema: {"type":"object","properties":{"desktop":{"type":"boolean"},"installed":{"type":"boolean"},"version":{"type":"string"},"executablePath":{"type":"string","description":"Application-managed CLI; never a PATH lookup or the user's Claude install."},"rollbackAvailable":{"type":"boolean"},"running":{"type":"boolean"},"readiness":{"type":"string","enum":["installed","unavailable"]},"diagnostic":{"type":"string"}},"required":["desktop","installed","rollbackAvailable","running"],"additionalProperties":true},
1187
+ },
1188
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":584,"column":9},
1189
+ },
1190
+ 'zerowallClaudeCode/settingsUpdate': {
1191
+ service: 'zerowallClaudeCode',
1192
+ invocation: { kind: 'direct' },
1193
+ parameters: [
1194
+ {
1195
+ name: 'input',
1196
+ source: 'json',
1197
+ codec: {
1198
+ mode: 'strict',
1199
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/settingsUpdate:input',
1200
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUpdate_parameter_0$schema,
1201
+ jsonSchema: {"type":"object","properties":{"outputStyle":{"type":"string"},"permissionSelector":{"type":"string","enum":["plugin","native"]},"permissionMode":{"type":"string","enum":["default","dontAsk","acceptEdits","auto","plan","bypassPermissions"]},"renderer":{"type":"string","enum":["plugin","native"]},"prose":{"type":"string","enum":["plain","enhanced"]},"maxProcesses":{"type":"number"},"contextWindow":{"oneOf":[{"type":"number"},{"type":"string","enum":["auto","200k","1m"]}]},"autoCompactWindow":{"oneOf":[{"type":"number"},{"type":"string","const":"auto"}]},"promptCacheTtl":{"type":"string","enum":["auto","5m","1h"]},"subagentPromptCacheTtl":{"type":"string","enum":["auto","5m","1h"]}},"required":[],"additionalProperties":true},
1202
+ },
1203
+ strictCodec: {
1204
+ mode: 'strict',
1205
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/settingsUpdate:input',
1206
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUpdate_parameter_0_strict$schema,
1207
+ jsonSchema: {"type":"object","properties":{"outputStyle":{"type":"string"},"permissionSelector":{"type":"string","enum":["plugin","native"]},"permissionMode":{"type":"string","enum":["default","dontAsk","acceptEdits","auto","plan","bypassPermissions"]},"renderer":{"type":"string","enum":["plugin","native"]},"prose":{"type":"string","enum":["plain","enhanced"]},"maxProcesses":{"type":"number"},"contextWindow":{"oneOf":[{"type":"number"},{"type":"string","enum":["auto","200k","1m"]}]},"autoCompactWindow":{"oneOf":[{"type":"number"},{"type":"string","const":"auto"}]},"promptCacheTtl":{"type":"string","enum":["auto","5m","1h"]},"subagentPromptCacheTtl":{"type":"string","enum":["auto","5m","1h"]}},"required":[],"additionalProperties":false},
1208
+ },
1209
+ },
1210
+ ],
1211
+ result: {
1212
+ mode: 'strict',
1213
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeNativeSettings',
1214
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_settingsUpdate_result$schema,
1215
+ jsonSchema: {"type":"object","properties":{"outputStyle":{"type":"string"},"permissionSelector":{"type":"string","enum":["plugin","native"]},"permissionMode":{"type":"string","enum":["default","dontAsk","acceptEdits","auto","plan","bypassPermissions"]},"renderer":{"type":"string","enum":["plugin","native"]},"prose":{"type":"string","enum":["plain","enhanced"]},"maxProcesses":{"type":"number"},"contextWindow":{"oneOf":[{"type":"number"},{"type":"string","enum":["auto","200k","1m"]}]},"autoCompactWindow":{"oneOf":[{"type":"number"},{"type":"string","const":"auto"}]},"promptCacheTtl":{"type":"string","enum":["auto","5m","1h"]},"subagentPromptCacheTtl":{"type":"string","enum":["auto","5m","1h"]}},"required":[],"additionalProperties":true},
1216
+ },
1217
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":317,"column":9},
1218
+ },
1219
+ 'zerowallClaudeCode/status': {
1220
+ service: 'zerowallClaudeCode',
1221
+ invocation: { kind: 'direct' },
1222
+ scope: {
1223
+ context: 'agent',
1224
+ wire: 'agentId',
1225
+ },
1226
+ parameters: [
1227
+ {
1228
+ name: 'agent',
1229
+ wire: 'agentId',
1230
+ source: 'lookup',
1231
+ lookup: 'agent',
1232
+ codec: {
1233
+ mode: 'strict',
1234
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1235
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_status_parameter_0$schema,
1236
+ jsonSchema: {"type":"string"},
1237
+ },
1238
+ strictCodec: {
1239
+ mode: 'strict',
1240
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1241
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_status_parameter_0_strict$schema,
1242
+ jsonSchema: {"type":"string"},
1243
+ },
1244
+ },
1245
+ ],
1246
+ result: {
1247
+ mode: 'strict',
1248
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeCodeStatus',
1249
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_status_result$schema,
1250
+ jsonSchema: {"type":"object","properties":{"desktop":{"type":"boolean"},"installed":{"type":"boolean"},"version":{"type":"string"},"executablePath":{"type":"string","description":"Application-managed CLI; never a PATH lookup or the user's Claude install."},"rollbackAvailable":{"type":"boolean"},"running":{"type":"boolean"},"readiness":{"type":"string","enum":["installed","unavailable"]},"diagnostic":{"type":"string"}},"required":["desktop","installed","rollbackAvailable","running"],"additionalProperties":true},
1251
+ },
1252
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":295,"column":9},
1253
+ },
1254
+ 'zerowallClaudeCode/stop': {
1255
+ service: 'zerowallClaudeCode',
1256
+ invocation: { kind: 'direct' },
1257
+ scope: {
1258
+ context: 'agent',
1259
+ wire: 'agentId',
1260
+ },
1261
+ parameters: [
1262
+ {
1263
+ name: 'agent',
1264
+ wire: 'agentId',
1265
+ source: 'lookup',
1266
+ lookup: 'agent',
1267
+ codec: {
1268
+ mode: 'strict',
1269
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1270
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_stop_parameter_0$schema,
1271
+ jsonSchema: {"type":"string"},
1272
+ },
1273
+ strictCodec: {
1274
+ mode: 'strict',
1275
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1276
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_stop_parameter_0_strict$schema,
1277
+ jsonSchema: {"type":"string"},
1278
+ },
1279
+ },
1280
+ ],
1281
+ result: {
1282
+ mode: 'strict',
1283
+ typeSymbol: '@zerowall/dsh-claude-coderun#zerowallClaudeCode/stop:result',
1284
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_stop_result$schema,
1285
+ jsonSchemaError: 'typert tool schema: unsupported void value',
1286
+ },
1287
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":1415,"column":9},
1288
+ },
1289
+ 'zerowallClaudeCode/uninstall': {
1290
+ service: 'zerowallClaudeCode',
1291
+ invocation: { kind: 'direct' },
1292
+ scope: {
1293
+ context: 'agent',
1294
+ wire: 'agentId',
1295
+ },
1296
+ parameters: [
1297
+ {
1298
+ name: 'agent',
1299
+ wire: 'agentId',
1300
+ source: 'lookup',
1301
+ lookup: 'agent',
1302
+ codec: {
1303
+ mode: 'strict',
1304
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1305
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_uninstall_parameter_0$schema,
1306
+ jsonSchema: {"type":"string"},
1307
+ },
1308
+ strictCodec: {
1309
+ mode: 'strict',
1310
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1311
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_uninstall_parameter_0_strict$schema,
1312
+ jsonSchema: {"type":"string"},
1313
+ },
1314
+ },
1315
+ ],
1316
+ result: {
1317
+ mode: 'strict',
1318
+ typeSymbol: '@zerowall/dsh-claude-coderun/types#ClaudeCodeStatus',
1319
+ create: _zerowall_dsh_claude_coderun_zerowallClaudeCode_uninstall_result$schema,
1320
+ jsonSchema: {"type":"object","properties":{"desktop":{"type":"boolean"},"installed":{"type":"boolean"},"version":{"type":"string"},"executablePath":{"type":"string","description":"Application-managed CLI; never a PATH lookup or the user's Claude install."},"rollbackAvailable":{"type":"boolean"},"running":{"type":"boolean"},"readiness":{"type":"string","enum":["installed","unavailable"]},"diagnostic":{"type":"string"}},"required":["desktop","installed","rollbackAvailable","running"],"additionalProperties":true},
1321
+ },
1322
+ sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":577,"column":9},
1323
+ },
1324
+ },
1325
+ }, z)
1326
+
1327
+ export const TYPERT = {
1328
+ package: '@zerowall/dsh-claude-coderun',
1329
+ face: 'host',
1330
+ schemas: [
1331
+ ],
1332
+ get invocations() { return $remote.descriptors },
1333
+ model: {
1334
+ "services": [
1335
+ {
1336
+ "description": "One installed runtime, with credentials resolved afresh for every prompt.",
1337
+ "summary": "One installed runtime, with credentials resolved afresh for every prompt.",
1338
+ "tags": [],
1339
+ "jsDoc": "/** One installed runtime, with credentials resolved afresh for every prompt. */",
1340
+ "key": "zerowallClaudeCode",
1341
+ "exportName": "ClaudeCodeService",
1342
+ "members": [
1343
+ {
1344
+ "kind": "method",
1345
+ "name": "status",
1346
+ "signature": "@Remote async status(agent: Agent): Promise<ClaudeCodeStatus>"
1347
+ },
1348
+ {
1349
+ "kind": "method",
1350
+ "name": "settingsStatus",
1351
+ "signature": "@Remote('settingsStatus') async settingsStatus(): Promise<ClaudeCodeStatus>"
1352
+ },
1353
+ {
1354
+ "kind": "method",
1355
+ "name": "settingsGet",
1356
+ "signature": "@Remote('settingsGet') async settingsGet(): Promise<ClaudeNativeSettings>"
1357
+ },
1358
+ {
1359
+ "kind": "method",
1360
+ "name": "settingsUpdate",
1361
+ "signature": "@Remote('settingsUpdate') async settingsUpdate(input: Partial<ClaudeNativeSettings>): Promise<ClaudeNativeSettings>"
1362
+ },
1363
+ {
1364
+ "kind": "method",
1365
+ "name": "settingsGlobalGet",
1366
+ "signature": "@Remote('settingsGlobalGet') async settingsGlobalGet(): Promise<ClaudeGlobalSettingsView>",
1367
+ "summary": "Dynamic descriptor view matching Claude Code's native Settings surface.",
1368
+ "jsDoc": "/** Dynamic descriptor view matching Claude Code's native Settings surface. */"
1369
+ },
1370
+ {
1371
+ "kind": "method",
1372
+ "name": "settingsGlobalUpdate",
1373
+ "signature": "@Remote('settingsGlobalUpdate') async settingsGlobalUpdate(changes: Record<string, string>): Promise<ClaudeGlobalSettingsView>"
1374
+ },
1375
+ {
1376
+ "kind": "method",
1377
+ "name": "install",
1378
+ "signature": "@Remote('installCli') async install(agent: Agent): Promise<ClaudeCodeStatus>"
1379
+ },
1380
+ {
1381
+ "kind": "method",
1382
+ "name": "rollback",
1383
+ "signature": "@Remote async rollback(agent: Agent): Promise<ClaudeCodeStatus>"
1384
+ },
1385
+ {
1386
+ "kind": "method",
1387
+ "name": "uninstall",
1388
+ "signature": "@Remote async uninstall(agent: Agent): Promise<ClaudeCodeStatus>"
1389
+ },
1390
+ {
1391
+ "kind": "method",
1392
+ "name": "settingsInstall",
1393
+ "signature": "@Remote('settingsInstall') async settingsInstall(): Promise<ClaudeCodeStatus>"
1394
+ },
1395
+ {
1396
+ "kind": "method",
1397
+ "name": "settingsRollback",
1398
+ "signature": "@Remote('settingsRollback') async settingsRollback(): Promise<ClaudeCodeStatus>"
1399
+ },
1400
+ {
1401
+ "kind": "method",
1402
+ "name": "settingsUninstall",
1403
+ "signature": "@Remote('settingsUninstall') async settingsUninstall(): Promise<ClaudeCodeStatus>"
1404
+ },
1405
+ {
1406
+ "kind": "method",
1407
+ "name": "permissionView",
1408
+ "signature": "@Remote async permissionView(agent: Agent): Promise<ClaudePermissionView>"
1409
+ },
1410
+ {
1411
+ "kind": "method",
1412
+ "name": "permissionSet",
1413
+ "signature": "@Remote async permissionSet(agent: Agent, value: string): Promise<ClaudePermissionView>"
1414
+ },
1415
+ {
1416
+ "kind": "method",
1417
+ "name": "contextUsage",
1418
+ "signature": "@Remote('contextUsage') async contextUsage(agent: Agent, detail?: 'summary' | 'full'): Promise<ClaudeCliState>"
1419
+ },
1420
+ {
1421
+ "kind": "method",
1422
+ "name": "cliSetModel",
1423
+ "signature": "@Remote('cliSetModel') async cliSetModel(agent: Agent, model: string): Promise<ClaudeCliState>"
1424
+ },
1425
+ {
1426
+ "kind": "method",
1427
+ "name": "cliSetPermissionMode",
1428
+ "signature": "@Remote('cliSetPermissionMode') async cliSetPermissionMode(agent: Agent, mode: ClaudePermissionMode): Promise<ClaudeCliState>"
1429
+ },
1430
+ {
1431
+ "kind": "method",
1432
+ "name": "read",
1433
+ "signature": "@Remote read(agent: Agent): ClaudeCodeTurn | null"
1434
+ },
1435
+ {
1436
+ "kind": "method",
1437
+ "name": "readTranscript",
1438
+ "signature": "@Remote readTranscript(agent: Agent, turn: number, step: number): ClaudeTranscript | null"
1439
+ },
1440
+ {
1441
+ "kind": "method",
1442
+ "name": "stop",
1443
+ "signature": "@Remote async stop(agent: Agent): Promise<void>"
1444
+ },
1445
+ {
1446
+ "kind": "method",
1447
+ "name": "clear",
1448
+ "signature": "@Remote clear(agent: Agent): void"
1449
+ }
1450
+ ],
1451
+ "types": [
1452
+ {
1453
+ "name": "Agent",
1454
+ "declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly model: Model;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
1455
+ },
1456
+ {
1457
+ "name": "AgentCancelCause",
1458
+ "declaration": "export type AgentCancelCause = { readonly kind: 'user'; } | { readonly kind: 'parent'; } | { readonly kind: 'hook'; readonly reason: string; } | { readonly kind: 'disposed'; };"
1459
+ },
1460
+ {
1461
+ "name": "AgentMessageSource",
1462
+ "declaration": "export interface AgentMessageSource {\n readonly kind: 'agent-message';\n readonly form: 'relay';\n readonly senderSessionId: SessionId;\n}"
1463
+ },
1464
+ {
1465
+ "name": "AgentOptions",
1466
+ "declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n reasoningEffort?: ReasoningEffortId | undefined;\n maxTokens?: number;\n subagentDepth?: number;\n}"
1467
+ },
1468
+ {
1469
+ "name": "AgentStatus",
1470
+ "declaration": "export type AgentStatus = 'idle' | 'running';"
1471
+ },
1472
+ {
1473
+ "name": "ApprovalOutcome",
1474
+ "declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
1475
+ },
1476
+ {
1477
+ "name": "ApprovalPolicy",
1478
+ "declaration": "export type ApprovalPolicy = 'ask' | 'never';"
1479
+ },
1480
+ {
1481
+ "name": "ApprovalRequestId",
1482
+ "declaration": "export type ApprovalRequestId = Branded<'ApprovalRequestId'>;"
1483
+ },
1484
+ {
1485
+ "name": "AssistantMessage",
1486
+ "declaration": "export interface AssistantMessage extends MessageBase {\n readonly role: 'assistant';\n readonly source: ModelMessageSource;\n}"
1487
+ },
1488
+ {
1489
+ "name": "AssistantProviderMetadata",
1490
+ "declaration": "export interface AssistantProviderMetadata {\n provider: string;\n model: string;\n replayState?: unknown;\n}"
1491
+ },
1492
+ {
1493
+ "name": "AssistantStreamRecord",
1494
+ "declaration": "export type AssistantStreamRecord = { readonly type: 'text-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'reasoning-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'tool-call-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly id: ToolCallId; readonly name?: string; readonly args: readonly string[]; } | { readonly type: 'chunk'; readonly time: number; readonly chunk: StreamChunk; };"
1495
+ },
1496
+ {
1497
+ "name": "AttachmentId",
1498
+ "declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
1499
+ },
1500
+ {
1501
+ "name": "Branded",
1502
+ "declaration": "export type Branded<B extends string> = string & { readonly [BRAND]: B; };"
1503
+ },
1504
+ {
1505
+ "name": "BrandedNumber",
1506
+ "declaration": "export type BrandedNumber<B extends string> = number & { readonly [BRAND]: B; };"
1507
+ },
1508
+ {
1509
+ "name": "CancelOptions",
1510
+ "declaration": "export interface CancelOptions {\n keepInbox?: boolean | undefined;\n}"
1511
+ },
1512
+ {
1513
+ "name": "ClaudeActivityBlock",
1514
+ "declaration": "export interface ClaudeActivityBlock {\n index: number;\n kind: 'text' | 'reasoning' | 'tool-call';\n text: string;\n ended: boolean;\n id?: string;\n name?: string;\n result?: string;\n failed?: boolean;\n answer?: boolean;\n}"
1515
+ },
1516
+ {
1517
+ "name": "ClaudeApiUsage",
1518
+ "declaration": "export interface ClaudeApiUsage {\n input_tokens?: number;\n output_tokens?: number;\n cache_creation_input_tokens?: number;\n cache_read_input_tokens?: number;\n}"
1519
+ },
1520
+ {
1521
+ "name": "ClaudeAutoCompactWindow",
1522
+ "declaration": "export type ClaudeAutoCompactWindow = 'auto' | number;"
1523
+ },
1524
+ {
1525
+ "name": "ClaudeCliState",
1526
+ "declaration": "export interface ClaudeCliState {\n active: boolean;\n queued: boolean;\n sessionId?: string;\n model?: string;\n commands: ClaudeCommandDescriptor[];\n output: string;\n contextUsage?: ClaudeContextUsage;\n lastCompact?: { trigger: 'manual' | 'auto'; preTokens: number; postTokens?: number; durationMs?: number; };\n error?: string;\n diagnostics?: { model?: string; routeCredential: 'injected' | 'missing'; routeBaseUrl: 'injected' | 'missing'; claudeOAuth: 'not-used' | 'required'; skills: { synced: number; skipped: number; }; mcp: { synced: number; skipped: number; }; environmentNames: string[]; skipped: string[]; };\n}"
1527
+ },
1528
+ {
1529
+ "name": "ClaudeCodeStatus",
1530
+ "declaration": "export interface ClaudeCodeStatus {\n desktop: boolean;\n installed: boolean;\n version?: string;\n executablePath?: string;\n rollbackAvailable: boolean;\n running: boolean;\n readiness?: 'installed' | 'unavailable';\n diagnostic?: string;\n}"
1531
+ },
1532
+ {
1533
+ "name": "ClaudeCodeTurn",
1534
+ "declaration": "export interface ClaudeCodeTurn {\n id: string;\n provider: string;\n model: string;\n executablePath?: string;\n running: boolean;\n output: string;\n exitCode?: number | null;\n message?: string;\n skills: number;\n mcp: number;\n skipped: string[];\n renderer?: ClaudeRenderer;\n turn?: number;\n step?: number;\n activity?: ClaudeActivityBlock[];\n nativeSessionId?: string;\n resumed?: boolean;\n permission?: ClaudePermissionView;\n resources?: ClaudeResourceStatus[];\n diagnostic?: { id: string; category: string; };\n contextUsage?: ClaudeContextUsage;\n lastCompact?: ClaudeCliState['lastCompact'];\n}"
1535
+ },
1536
+ {
1537
+ "name": "ClaudeCommandDescriptor",
1538
+ "declaration": "export interface ClaudeCommandDescriptor {\n name: string;\n description?: string;\n argumentHint?: string;\n}"
1539
+ },
1540
+ {
1541
+ "name": "ClaudeContextUsage",
1542
+ "declaration": "export interface ClaudeContextUsage {\n totalTokens: number;\n maxTokens: number;\n rawMaxTokens?: number;\n percentage: number;\n autoCompactThreshold?: number;\n isAutoCompactEnabled?: boolean;\n detail: 'summary' | 'full';\n apiUsage?: ClaudeApiUsage;\n}"
1543
+ },
1544
+ {
1545
+ "name": "ClaudeContextWindow",
1546
+ "declaration": "export type ClaudeContextWindow = 'auto' | '200k' | '1m' | number;"
1547
+ },
1548
+ {
1549
+ "name": "ClaudeEffectiveSetting",
1550
+ "declaration": "export interface ClaudeEffectiveSetting {\n requested: string;\n effective: string;\n source: 'auto' | 'explicit' | 'external' | 'clamped' | 'unsupported';\n available: boolean;\n reason?: string;\n effect: ClaudeGlobalSettingEffect;\n}"
1551
+ },
1552
+ {
1553
+ "name": "ClaudeGlobalSetting",
1554
+ "declaration": "export type ClaudeGlobalSetting = { key: string; kind: 'select'; value: string; options: readonly ClaudeGlobalSettingOption[]; effect: ClaudeGlobalSettingEffect; available?: boolean; unavailableReason?: string; effective?: ClaudeEffectiveSetting; } | { key: string; kind: 'text'; value: string; maxLength: number; effect: ClaudeGlobalSettingEffect; available?: boolean; unavailableReason?: string; effective?: ClaudeEffectiveSetting; } | { key: string; kind: 'number'; value: string; min: number; max: number; step: number; presets?: readonly { value: string; label: string; }[]; effect: ClaudeGlobalSettingEffect; available?: boolean; unavailableReason?: string; effective?: ClaudeEffectiveSetting; };"
1555
+ },
1556
+ {
1557
+ "name": "ClaudeGlobalSettingEffect",
1558
+ "declaration": "export type ClaudeGlobalSettingEffect = 'immediate' | 'new-session' | 'next-turn' | 'next-worktree' | 'restart';"
1559
+ },
1560
+ {
1561
+ "name": "ClaudeGlobalSettingOption",
1562
+ "declaration": "export interface ClaudeGlobalSettingOption {\n value: string;\n label: string;\n source: 'built-in' | 'user' | 'configured';\n}"
1563
+ },
1564
+ {
1565
+ "name": "ClaudeGlobalSettingsView",
1566
+ "declaration": "export interface ClaudeGlobalSettingsView {\n settings: readonly ClaudeGlobalSetting[];\n}"
1567
+ },
1568
+ {
1569
+ "name": "ClaudeNativeSettings",
1570
+ "declaration": "export interface ClaudeNativeSettings {\n outputStyle?: string;\n permissionSelector?: ClaudePermissionSelector;\n permissionMode?: ClaudePermissionMode;\n renderer?: ClaudeRenderer;\n prose?: ClaudeProse;\n maxProcesses?: number;\n contextWindow?: ClaudeContextWindow;\n autoCompactWindow?: ClaudeAutoCompactWindow;\n promptCacheTtl?: ClaudePromptCacheTtl;\n subagentPromptCacheTtl?: ClaudePromptCacheTtl;\n}"
1571
+ },
1572
+ {
1573
+ "name": "ClaudePermissionMode",
1574
+ "declaration": "export type ClaudePermissionMode = 'default' | 'dontAsk' | 'acceptEdits' | 'auto' | 'plan' | 'bypassPermissions';"
1575
+ },
1576
+ {
1577
+ "name": "ClaudePermissionSelector",
1578
+ "declaration": "export type ClaudePermissionSelector = 'plugin' | 'native';"
1579
+ },
1580
+ {
1581
+ "name": "ClaudePermissionView",
1582
+ "declaration": "export interface ClaudePermissionView {\n active: boolean;\n source: ClaudePermissionSelector;\n mode: ClaudePermissionMode;\n hostPreset: string;\n hostSandbox: string;\n hostApproval: string;\n runningMode?: ClaudePermissionMode;\n nativeOptions: Array<{ value: string; name: string; description?: string; }>;\n}"
1583
+ },
1584
+ {
1585
+ "name": "ClaudePromptCacheTtl",
1586
+ "declaration": "export type ClaudePromptCacheTtl = 'auto' | '5m' | '1h';"
1587
+ },
1588
+ {
1589
+ "name": "ClaudeProse",
1590
+ "declaration": "export type ClaudeProse = 'plain' | 'enhanced';"
1591
+ },
1592
+ {
1593
+ "name": "ClaudeRenderer",
1594
+ "declaration": "export type ClaudeRenderer = 'plugin' | 'native';"
1595
+ },
1596
+ {
1597
+ "name": "ClaudeResourceStatus",
1598
+ "declaration": "export interface ClaudeResourceStatus {\n kind: 'skill' | 'mcp';\n name: string;\n state: 'synced' | 'manual' | 'disabled' | 'unavailable' | 'failed';\n detail?: string;\n}"
1599
+ },
1600
+ {
1601
+ "name": "ClaudeTranscript",
1602
+ "declaration": "export interface ClaudeTranscript {\n turn: number;\n step: number;\n renderer: ClaudeRenderer;\n running: boolean;\n activity: ClaudeActivityBlock[];\n}"
1603
+ },
1604
+ {
1605
+ "name": "ContentBlock",
1606
+ "declaration": "export type ContentBlock = ContentBlockMap[ContentBlockType];"
1607
+ },
1608
+ {
1609
+ "name": "ContentBlockMap",
1610
+ "declaration": "export interface ContentBlockMap {\n text: TextBlock;\n reasoning: ReasoningBlock;\n image: ImageBlock;\n file: FileBlock;\n 'tool-call': ToolCallBlock;\n 'tool-addition': ToolAdditionBlock;\n 'tool-removal': ToolRemovalBlock;\n}"
1611
+ },
1612
+ {
1613
+ "name": "ContentBlockType",
1614
+ "declaration": "export type ContentBlockType = keyof ContentBlockMap;"
1615
+ },
1616
+ {
1617
+ "name": "ContextFormed",
1618
+ "declaration": "export type ContextFormed = { readonly form?: never; } | { readonly form: 'instructions'; } | { readonly form: 'catalog'; } | { readonly form: 'snapshot'; readonly sections: readonly ContextSnapshotSection[]; } | { readonly form: 'notice'; readonly summary: string; } | { readonly form: 'relay'; } | { readonly form: 'recall'; };"
1619
+ },
1620
+ {
1621
+ "name": "ContextSnapshotSection",
1622
+ "declaration": "export interface ContextSnapshotSection {\n readonly name: string;\n readonly text: string;\n}"
1623
+ },
1624
+ {
1625
+ "name": "ContinuableSubagentDescriptorData",
1626
+ "declaration": "export interface ContinuableSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'continuable';\n readonly label: string;\n readonly agentProvider?: string;\n readonly agentModel?: string;\n readonly agentReasoningEffort?: ReasoningEffortId;\n readonly persona?: string;\n readonly toolFilter?: ToolRestriction;\n}"
1627
+ },
1628
+ {
1629
+ "name": "DeveloperMessage",
1630
+ "declaration": "export interface DeveloperMessage extends MessageBase {\n readonly role: 'developer';\n}"
1631
+ },
1632
+ {
1633
+ "name": "EpochHeader",
1634
+ "declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
1635
+ },
1636
+ {
1637
+ "name": "FileAttachmentRef",
1638
+ "declaration": "export interface FileAttachmentRef {\n attachmentId: AttachmentId;\n name: string;\n bytes: number;\n}"
1639
+ },
1640
+ {
1641
+ "name": "FileBlock",
1642
+ "declaration": "export interface FileBlock {\n type: 'file';\n attachment: FileAttachmentRef;\n}"
1643
+ },
1644
+ {
1645
+ "name": "FinishReason",
1646
+ "declaration": "export type FinishReason = FinishReasonMap[keyof FinishReasonMap];"
1647
+ },
1648
+ {
1649
+ "name": "FinishReasonMap",
1650
+ "declaration": "export interface FinishReasonMap {\n stop: { kind: 'stop'; };\n 'tool-calls': { kind: 'tool-calls'; };\n 'max-tokens': { kind: 'max-tokens'; };\n aborted: { kind: 'aborted'; failure: LlmFailure; };\n error: { kind: 'error'; failure: LlmFailure; };\n}"
1651
+ },
1652
+ {
1653
+ "name": "ImageAttachmentRef",
1654
+ "declaration": "export interface ImageAttachmentRef {\n attachmentId: AttachmentId;\n mediaType: ImageMediaType;\n bytes: number;\n width: number;\n height: number;\n name?: string;\n originalDimensions?: { width: number; height: number; };\n}"
1655
+ },
1656
+ {
1657
+ "name": "ImageBlock",
1658
+ "declaration": "export interface ImageBlock {\n type: 'image';\n attachment: ImageAttachmentRef;\n offloaded?: true;\n}"
1659
+ },
1660
+ {
1661
+ "name": "ImageMediaType",
1662
+ "declaration": "export type ImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';"
1663
+ },
1664
+ {
1665
+ "name": "Inbox",
1666
+ "declaration": "export interface Inbox {\n readonly nextTurn: readonly UserMessage[];\n readonly nextStep: readonly UserMessage[];\n clear(): void;\n append(target: InboxTarget, message: UserMessage): void;\n prepend(target: InboxTarget, message: UserMessage): void;\n replace(messageId: MessageId, newMessage: UserMessage): boolean;\n remove(messageId: MessageId): boolean;\n splice(target: InboxTarget, start: number, deleteCount: number, inserted: UserMessage[]): UserMessage[];\n}"
1667
+ },
1668
+ {
1669
+ "name": "InboxTarget",
1670
+ "declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
1671
+ },
1672
+ {
1673
+ "name": "JsonValue",
1674
+ "declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
1675
+ },
1676
+ {
1677
+ "name": "KnownCatalogMode",
1678
+ "declaration": "export type KnownCatalogMode = { readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; };"
1679
+ },
1680
+ {
1681
+ "name": "LlmCallConfig",
1682
+ "declaration": "export interface LlmCallConfig extends LlmCallControls {\n provider: string;\n model: string;\n}"
1683
+ },
1684
+ {
1685
+ "name": "LlmCallConfigAdapterDefaults",
1686
+ "declaration": "export interface LlmCallConfigAdapterDefaults {\n reasoningEffort?: true;\n maxTokens?: true;\n}"
1687
+ },
1688
+ {
1689
+ "name": "LlmCallControls",
1690
+ "declaration": "export interface LlmCallControls {\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
1691
+ },
1692
+ {
1693
+ "name": "LlmFailure",
1694
+ "declaration": "export interface LlmFailure {\n readonly message: string;\n readonly code: string;\n readonly status?: number;\n readonly providerRetryAfterMs?: number;\n readonly requestId?: ProviderRequestId;\n readonly offloadImages?: number;\n}"
1695
+ },
1696
+ {
1697
+ "name": "Message",
1698
+ "declaration": "export type Message = MessageRoleMap[keyof MessageRoleMap];"
1699
+ },
1700
+ {
1701
+ "name": "MessageBase",
1702
+ "declaration": "export interface MessageBase {\n readonly id: MessageId;\n readonly content: readonly ContentBlock[];\n readonly source: MessageSource;\n}"
1703
+ },
1704
+ {
1705
+ "name": "MessageId",
1706
+ "declaration": "export type MessageId = Branded<'MessageId'>;"
1707
+ },
1708
+ {
1709
+ "name": "MessageRoleMap",
1710
+ "declaration": "export interface MessageRoleMap {\n system: SystemMessage;\n developer: DeveloperMessage;\n user: UserMessage;\n assistant: AssistantMessage;\n tool: ToolResultMessage;\n}"
1711
+ },
1712
+ {
1713
+ "name": "MessageSource",
1714
+ "declaration": "export type MessageSource = MessageSourceMap[keyof MessageSourceMap];"
1715
+ },
1716
+ {
1717
+ "name": "MessageSourceMap",
1718
+ "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'tool-registry': { kind: 'tool-registry'; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n}"
1719
+ },
1720
+ {
1721
+ "name": "Model",
1722
+ "declaration": "export interface Model {\n current(): Readonly<ModelSelection> | undefined;\n select(selection: Readonly<ModelSelection>): void;\n}"
1723
+ },
1724
+ {
1725
+ "name": "ModelMessageSource",
1726
+ "declaration": "export interface ModelMessageSource extends AssistantProviderMetadata {\n kind: 'model';\n}"
1727
+ },
1728
+ {
1729
+ "name": "ModelSelection",
1730
+ "declaration": "export interface ModelSelection {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n}"
1731
+ },
1732
+ {
1733
+ "name": "OneShotSubagentDescriptorData",
1734
+ "declaration": "export interface OneShotSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'one-shot';\n readonly label?: string;\n}"
1735
+ },
1736
+ {
1737
+ "name": "Principal",
1738
+ "declaration": "export type Principal = PrincipalMap[keyof PrincipalMap];"
1739
+ },
1740
+ {
1741
+ "name": "PrincipalMap",
1742
+ "declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n}"
1743
+ },
1744
+ {
1745
+ "name": "ProviderRequestId",
1746
+ "declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
1747
+ },
1748
+ {
1749
+ "name": "ReasoningBlock",
1750
+ "declaration": "export interface ReasoningBlock {\n type: 'reasoning';\n text: string;\n}"
1751
+ },
1752
+ {
1753
+ "name": "ReasoningEffortId",
1754
+ "declaration": "export type ReasoningEffortId = Branded<'ReasoningEffortId'>;"
1755
+ },
1756
+ {
1757
+ "name": "ReplayEnvelope",
1758
+ "declaration": "export interface ReplayEnvelope {\n response: unknown;\n blocks?: readonly unknown[];\n}"
1759
+ },
1760
+ {
1761
+ "name": "RequestContext",
1762
+ "declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n systemPromptUpdate?: SystemPromptUpdate;\n}"
1763
+ },
1764
+ {
1765
+ "name": "RequestHeaderReason",
1766
+ "declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change' | 'series';"
1767
+ },
1768
+ {
1769
+ "name": "SandboxMode",
1770
+ "declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
1771
+ },
1772
+ {
1773
+ "name": "Session",
1774
+ "declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq?: SessionLogOffset, toSeqExclusive?: SessionLogOffset): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n toolHistory(): ToolHistory;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
1775
+ },
1776
+ {
1777
+ "name": "SessionEvent",
1778
+ "declaration": "export type SessionEvent<T extends SessionEventType = SessionEventType> = { [K in SessionEventType]: { type: K; seq: SessionSeq; time: number; data: SessionEventMap[K]; ignorable?: true; } & (K extends SurfaceEventType ? SurfaceIntent<K> : { surfaceOp?: never; sourceEventSeqs?: never; }) }[T];"
1779
+ },
1780
+ {
1781
+ "name": "SessionEventMap",
1782
+ "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'model/selection': ModelSelection;\n 'subagent/catalog': SubagentCatalogEvent;\n 'subagent/descriptor': SubagentDescriptorData;\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'permission/preset': { preset: string; };\n 'session/title': SessionTitleEventData;\n}"
1783
+ },
1784
+ {
1785
+ "name": "SessionEventType",
1786
+ "declaration": "export type SessionEventType = keyof SessionEventMap;"
1787
+ },
1788
+ {
1789
+ "name": "SessionHeader",
1790
+ "declaration": "export interface SessionHeader {\n readonly version: typeof SESSION_FORMAT_VERSION;\n readonly id: SessionId;\n readonly createdAt: number;\n readonly cwd?: string;\n readonly parentSession?: SessionId;\n readonly isSeeded: boolean;\n readonly origin?: 'subagent';\n readonly delegationDepth?: number;\n readonly agentPreset?: string;\n}"
1791
+ },
1792
+ {
1793
+ "name": "SessionId",
1794
+ "declaration": "export type SessionId = Branded<'SessionId'>;"
1795
+ },
1796
+ {
1797
+ "name": "SessionLogOffset",
1798
+ "declaration": "export type SessionLogOffset = BrandedNumber<'SessionLogOffset'>;"
1799
+ },
1800
+ {
1801
+ "name": "SessionRequestId",
1802
+ "declaration": "export type SessionRequestId = Branded<'session-request-id'>;"
1803
+ },
1804
+ {
1805
+ "name": "SessionSeq",
1806
+ "declaration": "export type SessionSeq = BrandedNumber<'SessionSeq'>;"
1807
+ },
1808
+ {
1809
+ "name": "SessionSurface",
1810
+ "declaration": "export interface SessionSurface {\n readonly nodes: readonly SessionSeq[];\n readonly replaceGeneration: number;\n readonly contentGeneration: number;\n}"
1811
+ },
1812
+ {
1813
+ "name": "SessionTitleEventData",
1814
+ "declaration": "export interface SessionTitleEventData {\n readonly title: string;\n readonly messageSeqs: SessionSeq[];\n readonly source: SessionTitleSource;\n}"
1815
+ },
1816
+ {
1817
+ "name": "SessionTitleModelIdentity",
1818
+ "declaration": "export interface SessionTitleModelIdentity {\n readonly provider: string;\n readonly model: string;\n}"
1819
+ },
1820
+ {
1821
+ "name": "SessionTitleProviderId",
1822
+ "declaration": "export type SessionTitleProviderId = Branded<'SessionTitleProviderId'>;"
1823
+ },
1824
+ {
1825
+ "name": "SessionTitleSource",
1826
+ "declaration": "export type SessionTitleSource = { readonly kind: 'fallback'; } | { readonly kind: 'provider'; readonly provider: SessionTitleProviderId; readonly model?: SessionTitleModelIdentity; } | { readonly kind: 'user'; };"
1827
+ },
1828
+ {
1829
+ "name": "StreamChunk",
1830
+ "declaration": "export type StreamChunk = { type: 'block-start'; index: number; blockType: ContentBlockType; } | { type: 'text-delta'; index: number; text: string; } | { type: 'reasoning-delta'; index: number; text: string; } | { type: 'tool-call-delta'; index: number; id: ToolCallId; name?: string; argumentsDelta: string; } | { type: 'block-end'; index: number; block: ContentBlock; } | { type: 'usage'; usage: TokenUsage; } | { type: 'finish'; reason: FinishReason; replayState?: ReplayEnvelope; };"
1831
+ },
1832
+ {
1833
+ "name": "SubagentCatalogEvent",
1834
+ "declaration": "export type SubagentCatalogEvent = { readonly childId: SessionId; readonly childCreatedAt: number; } & (({ readonly version: 0; } & KnownCatalogMode) | ({ readonly version: 1; } & (KnownCatalogMode | { readonly mode: 'unknown'; readonly label?: string; })) | { readonly version: 2; readonly mode: 'external'; readonly label?: string; });"
1835
+ },
1836
+ {
1837
+ "name": "SubagentDescriptorBase",
1838
+ "declaration": "export interface SubagentDescriptorBase {\n readonly version: number;\n readonly mode: 'one-shot' | 'continuable';\n readonly provider: string;\n}"
1839
+ },
1840
+ {
1841
+ "name": "SubagentDescriptorData",
1842
+ "declaration": "export type SubagentDescriptorData = OneShotSubagentDescriptorData | ContinuableSubagentDescriptorData;"
1843
+ },
1844
+ {
1845
+ "name": "SubagentSettledMessageSource",
1846
+ "declaration": "export interface SubagentSettledMessageSource {\n readonly kind: 'subagent-settled';\n readonly form: 'notice';\n readonly summary: string;\n readonly senderSessionId: SessionId;\n}"
1847
+ },
1848
+ {
1849
+ "name": "SurfaceEventType",
1850
+ "declaration": "export type SurfaceEventType = 'system/message' | 'developer/message' | 'user/message' | 'assistant/message' | 'tool/result';"
1851
+ },
1852
+ {
1853
+ "name": "SurfaceIntent",
1854
+ "declaration": "export type SurfaceIntent<T extends SurfaceEventType = SurfaceEventType> = { surfaceOp: SurfaceOp; } & (T extends 'assistant/message' ? { sourceEventSeqs?: never; } : { sourceEventSeqs?: SessionSeq[]; });"
1855
+ },
1856
+ {
1857
+ "name": "SurfaceOp",
1858
+ "declaration": "export type SurfaceOp = 'append' | { op: 'replace'; startSeq: SessionSeq; endSeq: SessionSeq; };"
1859
+ },
1860
+ {
1861
+ "name": "SystemMessage",
1862
+ "declaration": "export interface SystemMessage extends MessageBase {\n readonly role: 'system';\n readonly source: MessageSourceMap['system-prompt'];\n}"
1863
+ },
1864
+ {
1865
+ "name": "SystemPromptMessageSource",
1866
+ "declaration": "export interface SystemPromptMessageSource {\n kind: 'system-prompt';\n}"
1867
+ },
1868
+ {
1869
+ "name": "SystemPromptUpdate",
1870
+ "declaration": "export type SystemPromptUpdate = 'in-history';"
1871
+ },
1872
+ {
1873
+ "name": "TextBlock",
1874
+ "declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
1875
+ },
1876
+ {
1877
+ "name": "TokenUsage",
1878
+ "declaration": "export interface TokenUsage {\n inputTokens: number;\n outputTokens: number;\n totalTokens?: number;\n cacheReadTokens?: number;\n cacheWriteTokens?: number;\n reasoningTokens?: number;\n}"
1879
+ },
1880
+ {
1881
+ "name": "ToolAdditionBlock",
1882
+ "declaration": "export interface ToolAdditionBlock {\n type: 'tool-addition';\n toolName: string;\n tool?: never;\n}"
1883
+ },
1884
+ {
1885
+ "name": "ToolCallBlock",
1886
+ "declaration": "export interface ToolCallBlock {\n type: 'tool-call';\n id: ToolCallId;\n name: string;\n arguments: string;\n}"
1887
+ },
1888
+ {
1889
+ "name": "ToolCallId",
1890
+ "declaration": "export type ToolCallId = Branded<'ToolCallId'>;"
1891
+ },
1892
+ {
1893
+ "name": "ToolHistory",
1894
+ "declaration": "export interface ToolHistory {\n readonly tools: readonly ToolSchema[];\n readonly updates: readonly { readonly messageId: MessageId; readonly additions: readonly ToolSchema[]; }[];\n}"
1895
+ },
1896
+ {
1897
+ "name": "ToolMessageSource",
1898
+ "declaration": "export interface ToolMessageSource {\n kind: 'tool';\n callId: ToolCallId;\n}"
1899
+ },
1900
+ {
1901
+ "name": "ToolRemovalBlock",
1902
+ "declaration": "export interface ToolRemovalBlock {\n type: 'tool-removal';\n toolName: string;\n}"
1903
+ },
1904
+ {
1905
+ "name": "ToolRestriction",
1906
+ "declaration": "export interface ToolRestriction {\n readonly allow?: readonly string[];\n readonly deny?: readonly string[];\n}"
1907
+ },
1908
+ {
1909
+ "name": "ToolResultMessage",
1910
+ "declaration": "export interface ToolResultMessage extends MessageBase {\n readonly role: 'tool';\n readonly source: ToolMessageSource;\n readonly toolCallId: ToolCallId;\n readonly isError?: boolean;\n}"
1911
+ },
1912
+ {
1913
+ "name": "ToolSchema",
1914
+ "declaration": "export interface ToolSchema {\n deferLoading?: true;\n name: string;\n description: string;\n parameters: Record<string, unknown>;\n}"
1915
+ },
1916
+ {
1917
+ "name": "TurnEndCancelCause",
1918
+ "declaration": "export type TurnEndCancelCause = AgentCancelCause | { readonly kind: 'legacy'; };"
1919
+ },
1920
+ {
1921
+ "name": "TurnEndReason",
1922
+ "declaration": "export type TurnEndReason = TurnEndReasonMap[keyof TurnEndReasonMap];"
1923
+ },
1924
+ {
1925
+ "name": "TurnEndReasonMap",
1926
+ "declaration": "export interface TurnEndReasonMap {\n completed: { kind: 'completed'; };\n aborted: { kind: 'aborted'; reason: TurnEndCancelCause; };\n blocked: { kind: 'blocked'; };\n error: { kind: 'error'; error: LlmFailure; };\n 'max-tokens': { kind: 'max-tokens'; };\n interrupted: { kind: 'interrupted'; };\n forked: { kind: 'forked'; };\n}"
1927
+ },
1928
+ {
1929
+ "name": "UserMessage",
1930
+ "declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
1931
+ }
1932
+ ]
1933
+ }
1934
+ ],
1935
+ "events": [],
1936
+ "objects": []
1937
+ },
1938
+ }