thoth-agents 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/README.md +16 -5
  2. package/dist/agents/agent-config.d.ts +13 -0
  3. package/dist/agents/index.d.ts +1 -1
  4. package/dist/agents/orchestrator.d.ts +1 -1
  5. package/dist/{chunk-I5TXGNSG.js → chunk-5MYXVRZZ.js} +634 -366
  6. package/dist/chunk-6O4GKDS7.js +207 -0
  7. package/dist/{chunk-RWQPMWEM.js → chunk-JLU3FSBT.js} +17 -2
  8. package/dist/chunk-MIDGZE34.js +107 -0
  9. package/dist/{chunk-HACUJFKI.js → chunk-NOLDFT7O.js} +4 -230
  10. package/dist/{chunk-5WPP6IY7.js → chunk-VVYAQTYE.js} +2 -2
  11. package/dist/{chunk-DNPKVFOB.js → chunk-YCWGTDFE.js} +604 -315
  12. package/dist/cli/config-io.d.ts +2 -2
  13. package/dist/cli/index.js +94 -41
  14. package/dist/cli/install.d.ts +1 -0
  15. package/dist/cli/opencode-profiles.d.ts +10 -0
  16. package/dist/cli/opencode-skill-consent.d.ts +5 -0
  17. package/dist/cli/operations/opencode.d.ts +2 -1
  18. package/dist/cli/operations/types.d.ts +1 -0
  19. package/dist/cli/owned-skills.d.ts +16 -0
  20. package/dist/cli/paths.d.ts +1 -1
  21. package/dist/cli/providers.d.ts +1 -1
  22. package/dist/cli/system.d.ts +3 -1
  23. package/dist/cli/thoth-mem-install.d.ts +10 -10
  24. package/dist/cli/tui/index.js +53 -5
  25. package/dist/cli/tui/operations.d.ts +2 -0
  26. package/dist/cli/types.d.ts +2 -4
  27. package/dist/config/loader.d.ts +2 -5
  28. package/dist/config/schema.d.ts +0 -53
  29. package/dist/harness/adapters/opencode.d.ts +1 -1
  30. package/dist/hooks/delegate-task-retry/hook.d.ts +8 -8
  31. package/dist/hooks/foreground-fallback/index.d.ts +14 -69
  32. package/dist/hooks/index.d.ts +0 -2
  33. package/dist/hooks/json-error-recovery/hook.d.ts +2 -15
  34. package/dist/hooks/oracle-gate-verdict/hook.d.ts +4 -11
  35. package/dist/index.d.ts +7 -4
  36. package/dist/index.js +1603 -1408
  37. package/dist/opencode/agents.d.ts +3 -0
  38. package/dist/opencode/command.d.ts +3 -0
  39. package/dist/opencode/context.d.ts +36 -0
  40. package/dist/opencode/delegation-hooks.d.ts +3 -0
  41. package/dist/opencode/mcp.d.ts +3 -0
  42. package/dist/opencode/permission-rules.d.ts +9 -0
  43. package/dist/opencode/permissions.d.ts +3 -0
  44. package/dist/opencode/profile-rpc-handlers.d.ts +3 -0
  45. package/dist/opencode/profile-rpc.d.ts +688 -0
  46. package/dist/opencode/profile-runtime.d.ts +3 -0
  47. package/dist/opencode/profile-sessions.d.ts +18 -0
  48. package/dist/opencode/profiles/editor.d.ts +44 -0
  49. package/dist/opencode/profiles/index.d.ts +18 -0
  50. package/dist/opencode/profiles/resolver.d.ts +12 -0
  51. package/dist/opencode/profiles/store.d.ts +63 -0
  52. package/dist/opencode/profiles/types.d.ts +26 -0
  53. package/dist/opencode/session-hooks.d.ts +3 -0
  54. package/dist/opencode/session-state.d.ts +39 -0
  55. package/dist/opencode/skills.d.ts +3 -0
  56. package/dist/opencode/tool-overrides/evaluator.d.ts +13 -0
  57. package/dist/opencode/tool-overrides/index.d.ts +5 -0
  58. package/dist/opencode/tool-overrides/store.d.ts +38 -0
  59. package/dist/opencode/tool-overrides/types.d.ts +32 -0
  60. package/dist/opencode/tool-overrides/validation.d.ts +5 -0
  61. package/dist/opencode/tool-overrides/wildcard.d.ts +3 -0
  62. package/dist/opencode/tool-rpc-handlers.d.ts +3 -0
  63. package/dist/opencode/tool-rpc.d.ts +428 -0
  64. package/dist/opencode/tools.d.ts +3 -0
  65. package/dist/pi.js +3 -3
  66. package/dist/tools/ast-grep/cli.d.ts +1 -0
  67. package/dist/tools/ast-grep/index.d.ts +108 -2
  68. package/dist/tools/ast-grep/tools.d.ts +107 -3
  69. package/dist/tools/define-tool.d.ts +23 -0
  70. package/dist/tools/lsp/tools.d.ts +97 -5
  71. package/dist/tui/fixtures.d.ts +2 -0
  72. package/dist/tui/flow.d.ts +16 -0
  73. package/dist/tui/index.d.ts +7 -0
  74. package/dist/tui/index.js +1384 -0
  75. package/dist/tui/model.d.ts +84 -0
  76. package/dist/tui/tools/fixtures.d.ts +3 -0
  77. package/dist/tui/tools/flow.d.ts +11 -0
  78. package/dist/tui/tools/model.d.ts +97 -0
  79. package/dist/utils/index.d.ts +0 -1
  80. package/package.json +18 -3
  81. package/plugin/.claude-plugin/plugin.json +1 -1
  82. package/plugin/.codex-plugin/plugin.json +1 -1
  83. package/plugin/skills/thoth-sdd/SKILL.md +8 -2
  84. package/plugin/skills/thoth-sdd/scripts/validate-result.mjs +28 -2
  85. package/skills/thoth-sdd/SKILL.md +8 -2
  86. package/skills/thoth-sdd/scripts/validate-result.mjs +28 -2
  87. package/thoth-agents.schema.json +0 -96
  88. package/dist/chunk-62L3ORXN.js +0 -30
  89. package/dist/delegation/project-id.d.ts +0 -10
  90. package/dist/hooks/auto-update-checker/checker.d.ts +0 -23
  91. package/dist/hooks/auto-update-checker/constants.d.ts +0 -11
  92. package/dist/hooks/auto-update-checker/index.d.ts +0 -17
  93. package/dist/hooks/auto-update-checker/types.d.ts +0 -22
  94. package/dist/utils/tmux-session-manager.d.ts +0 -63
  95. package/dist/utils/tmux.d.ts +0 -32
@@ -0,0 +1,688 @@
1
+ /** Portable server/TUI contract. No server, filesystem or profile-core runtime imports. */
2
+ import { z } from 'zod';
3
+ export declare const ProfileRoleSchema: z.ZodEnum<{
4
+ orchestrator: "orchestrator";
5
+ explorer: "explorer";
6
+ librarian: "librarian";
7
+ oracle: "oracle";
8
+ designer: "designer";
9
+ worker: "worker";
10
+ }>;
11
+ export declare const ProfileScopeSchema: z.ZodEnum<{
12
+ global: "global";
13
+ project: "project";
14
+ }>;
15
+ export declare const SelectionScopeSchema: z.ZodEnum<{
16
+ default: "default";
17
+ global: "global";
18
+ project: "project";
19
+ session: "session";
20
+ }>;
21
+ export declare const RoleModelSchema: z.ZodObject<{
22
+ model: z.ZodOptional<z.ZodString>;
23
+ variant: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$strip>;
25
+ export declare const ProfileSchema: z.ZodObject<{
26
+ agents: z.ZodRecord<z.ZodEnum<{
27
+ orchestrator: "orchestrator";
28
+ explorer: "explorer";
29
+ librarian: "librarian";
30
+ oracle: "oracle";
31
+ designer: "designer";
32
+ worker: "worker";
33
+ }> & z.core.$partial, z.ZodObject<{
34
+ model: z.ZodOptional<z.ZodString>;
35
+ variant: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>>;
37
+ }, z.core.$strip>;
38
+ export declare const ProfileEntrySchema: z.ZodObject<{
39
+ scope: z.ZodEnum<{
40
+ global: "global";
41
+ project: "project";
42
+ }>;
43
+ name: z.ZodString;
44
+ source: z.ZodEnum<{
45
+ global: "global";
46
+ project: "project";
47
+ }>;
48
+ shadowed: z.ZodBoolean;
49
+ profile: z.ZodObject<{
50
+ agents: z.ZodRecord<z.ZodEnum<{
51
+ orchestrator: "orchestrator";
52
+ explorer: "explorer";
53
+ librarian: "librarian";
54
+ oracle: "oracle";
55
+ designer: "designer";
56
+ worker: "worker";
57
+ }> & z.core.$partial, z.ZodObject<{
58
+ model: z.ZodOptional<z.ZodString>;
59
+ variant: z.ZodOptional<z.ZodString>;
60
+ }, z.core.$strip>>;
61
+ }, z.core.$strip>;
62
+ revision: z.ZodString;
63
+ }, z.core.$strip>;
64
+ export declare const ProfileStateSchema: z.ZodObject<{
65
+ profiles: z.ZodArray<z.ZodObject<{
66
+ scope: z.ZodEnum<{
67
+ global: "global";
68
+ project: "project";
69
+ }>;
70
+ name: z.ZodString;
71
+ source: z.ZodEnum<{
72
+ global: "global";
73
+ project: "project";
74
+ }>;
75
+ shadowed: z.ZodBoolean;
76
+ profile: z.ZodObject<{
77
+ agents: z.ZodRecord<z.ZodEnum<{
78
+ orchestrator: "orchestrator";
79
+ explorer: "explorer";
80
+ librarian: "librarian";
81
+ oracle: "oracle";
82
+ designer: "designer";
83
+ worker: "worker";
84
+ }> & z.core.$partial, z.ZodObject<{
85
+ model: z.ZodOptional<z.ZodString>;
86
+ variant: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strip>>;
88
+ }, z.core.$strip>;
89
+ revision: z.ZodString;
90
+ }, z.core.$strip>>;
91
+ defaultProfile: z.ZodObject<{
92
+ agents: z.ZodRecord<z.ZodEnum<{
93
+ orchestrator: "orchestrator";
94
+ explorer: "explorer";
95
+ librarian: "librarian";
96
+ oracle: "oracle";
97
+ designer: "designer";
98
+ worker: "worker";
99
+ }> & z.core.$partial, z.ZodObject<{
100
+ model: z.ZodOptional<z.ZodString>;
101
+ variant: z.ZodOptional<z.ZodString>;
102
+ }, z.core.$strip>>;
103
+ }, z.core.$strip>;
104
+ roles: z.ZodArray<z.ZodEnum<{
105
+ orchestrator: "orchestrator";
106
+ explorer: "explorer";
107
+ librarian: "librarian";
108
+ oracle: "oracle";
109
+ designer: "designer";
110
+ worker: "worker";
111
+ }>>;
112
+ selections: z.ZodObject<{
113
+ session: z.ZodOptional<z.ZodString>;
114
+ project: z.ZodOptional<z.ZodString>;
115
+ global: z.ZodOptional<z.ZodString>;
116
+ }, z.core.$strip>;
117
+ effective: z.ZodObject<{
118
+ name: z.ZodString;
119
+ source: z.ZodOptional<z.ZodEnum<{
120
+ global: "global";
121
+ project: "project";
122
+ }>>;
123
+ selectedBy: z.ZodEnum<{
124
+ default: "default";
125
+ global: "global";
126
+ project: "project";
127
+ session: "session";
128
+ }>;
129
+ profile: z.ZodObject<{
130
+ agents: z.ZodRecord<z.ZodEnum<{
131
+ orchestrator: "orchestrator";
132
+ explorer: "explorer";
133
+ librarian: "librarian";
134
+ oracle: "oracle";
135
+ designer: "designer";
136
+ worker: "worker";
137
+ }> & z.core.$partial, z.ZodObject<{
138
+ model: z.ZodOptional<z.ZodString>;
139
+ variant: z.ZodOptional<z.ZodString>;
140
+ }, z.core.$strip>>;
141
+ }, z.core.$strip>;
142
+ }, z.core.$strip>;
143
+ orchestrator: z.ZodOptional<z.ZodObject<{
144
+ model: z.ZodOptional<z.ZodString>;
145
+ variant: z.ZodOptional<z.ZodString>;
146
+ }, z.core.$strip>>;
147
+ providers: z.ZodArray<z.ZodObject<{
148
+ id: z.ZodString;
149
+ name: z.ZodString;
150
+ models: z.ZodArray<z.ZodObject<{
151
+ id: z.ZodString;
152
+ name: z.ZodString;
153
+ variants: z.ZodArray<z.ZodString>;
154
+ }, z.core.$strip>>;
155
+ }, z.core.$strip>>;
156
+ warnings: z.ZodArray<z.ZodString>;
157
+ }, z.core.$strip>;
158
+ export declare const ProfileErrorSchema: z.ZodObject<{
159
+ code: z.ZodEnum<{
160
+ PROFILE_CONFLICT: "PROFILE_CONFLICT";
161
+ PROFILE_SHADOWED: "PROFILE_SHADOWED";
162
+ INVALID_REQUEST: "INVALID_REQUEST";
163
+ MODEL_UNAVAILABLE: "MODEL_UNAVAILABLE";
164
+ OPERATION_FAILED: "OPERATION_FAILED";
165
+ }>;
166
+ message: z.ZodString;
167
+ }, z.core.$strip>;
168
+ /** RPC failures are returned values, not thrown application errors. events is required by OpenCode. */
169
+ export declare const profileRpc: {
170
+ readonly id: "thoth-model-profiles";
171
+ readonly methods: {
172
+ readonly state: {
173
+ readonly input: z.ZodObject<{
174
+ sessionID: z.ZodOptional<z.ZodString>;
175
+ }, z.core.$strip>;
176
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
177
+ ok: z.ZodLiteral<true>;
178
+ value: z.ZodObject<{
179
+ profiles: z.ZodArray<z.ZodObject<{
180
+ scope: z.ZodEnum<{
181
+ global: "global";
182
+ project: "project";
183
+ }>;
184
+ name: z.ZodString;
185
+ source: z.ZodEnum<{
186
+ global: "global";
187
+ project: "project";
188
+ }>;
189
+ shadowed: z.ZodBoolean;
190
+ profile: z.ZodObject<{
191
+ agents: z.ZodRecord<z.ZodEnum<{
192
+ orchestrator: "orchestrator";
193
+ explorer: "explorer";
194
+ librarian: "librarian";
195
+ oracle: "oracle";
196
+ designer: "designer";
197
+ worker: "worker";
198
+ }> & z.core.$partial, z.ZodObject<{
199
+ model: z.ZodOptional<z.ZodString>;
200
+ variant: z.ZodOptional<z.ZodString>;
201
+ }, z.core.$strip>>;
202
+ }, z.core.$strip>;
203
+ revision: z.ZodString;
204
+ }, z.core.$strip>>;
205
+ defaultProfile: z.ZodObject<{
206
+ agents: z.ZodRecord<z.ZodEnum<{
207
+ orchestrator: "orchestrator";
208
+ explorer: "explorer";
209
+ librarian: "librarian";
210
+ oracle: "oracle";
211
+ designer: "designer";
212
+ worker: "worker";
213
+ }> & z.core.$partial, z.ZodObject<{
214
+ model: z.ZodOptional<z.ZodString>;
215
+ variant: z.ZodOptional<z.ZodString>;
216
+ }, z.core.$strip>>;
217
+ }, z.core.$strip>;
218
+ roles: z.ZodArray<z.ZodEnum<{
219
+ orchestrator: "orchestrator";
220
+ explorer: "explorer";
221
+ librarian: "librarian";
222
+ oracle: "oracle";
223
+ designer: "designer";
224
+ worker: "worker";
225
+ }>>;
226
+ selections: z.ZodObject<{
227
+ session: z.ZodOptional<z.ZodString>;
228
+ project: z.ZodOptional<z.ZodString>;
229
+ global: z.ZodOptional<z.ZodString>;
230
+ }, z.core.$strip>;
231
+ effective: z.ZodObject<{
232
+ name: z.ZodString;
233
+ source: z.ZodOptional<z.ZodEnum<{
234
+ global: "global";
235
+ project: "project";
236
+ }>>;
237
+ selectedBy: z.ZodEnum<{
238
+ default: "default";
239
+ global: "global";
240
+ project: "project";
241
+ session: "session";
242
+ }>;
243
+ profile: z.ZodObject<{
244
+ agents: z.ZodRecord<z.ZodEnum<{
245
+ orchestrator: "orchestrator";
246
+ explorer: "explorer";
247
+ librarian: "librarian";
248
+ oracle: "oracle";
249
+ designer: "designer";
250
+ worker: "worker";
251
+ }> & z.core.$partial, z.ZodObject<{
252
+ model: z.ZodOptional<z.ZodString>;
253
+ variant: z.ZodOptional<z.ZodString>;
254
+ }, z.core.$strip>>;
255
+ }, z.core.$strip>;
256
+ }, z.core.$strip>;
257
+ orchestrator: z.ZodOptional<z.ZodObject<{
258
+ model: z.ZodOptional<z.ZodString>;
259
+ variant: z.ZodOptional<z.ZodString>;
260
+ }, z.core.$strip>>;
261
+ providers: z.ZodArray<z.ZodObject<{
262
+ id: z.ZodString;
263
+ name: z.ZodString;
264
+ models: z.ZodArray<z.ZodObject<{
265
+ id: z.ZodString;
266
+ name: z.ZodString;
267
+ variants: z.ZodArray<z.ZodString>;
268
+ }, z.core.$strip>>;
269
+ }, z.core.$strip>>;
270
+ warnings: z.ZodArray<z.ZodString>;
271
+ }, z.core.$strip>;
272
+ }, z.core.$strip>, z.ZodObject<{
273
+ ok: z.ZodLiteral<false>;
274
+ error: z.ZodObject<{
275
+ code: z.ZodEnum<{
276
+ PROFILE_CONFLICT: "PROFILE_CONFLICT";
277
+ PROFILE_SHADOWED: "PROFILE_SHADOWED";
278
+ INVALID_REQUEST: "INVALID_REQUEST";
279
+ MODEL_UNAVAILABLE: "MODEL_UNAVAILABLE";
280
+ OPERATION_FAILED: "OPERATION_FAILED";
281
+ }>;
282
+ message: z.ZodString;
283
+ }, z.core.$strip>;
284
+ }, z.core.$strip>], "ok">;
285
+ };
286
+ readonly create: {
287
+ readonly input: z.ZodObject<{
288
+ scope: z.ZodEnum<{
289
+ global: "global";
290
+ project: "project";
291
+ }>;
292
+ name: z.ZodString;
293
+ profile: z.ZodObject<{
294
+ agents: z.ZodRecord<z.ZodEnum<{
295
+ orchestrator: "orchestrator";
296
+ explorer: "explorer";
297
+ librarian: "librarian";
298
+ oracle: "oracle";
299
+ designer: "designer";
300
+ worker: "worker";
301
+ }> & z.core.$partial, z.ZodObject<{
302
+ model: z.ZodOptional<z.ZodString>;
303
+ variant: z.ZodOptional<z.ZodString>;
304
+ }, z.core.$strip>>;
305
+ }, z.core.$strip>;
306
+ }, z.core.$strip>;
307
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
308
+ ok: z.ZodLiteral<true>;
309
+ value: z.ZodObject<{
310
+ revision: z.ZodString;
311
+ }, z.core.$strip>;
312
+ }, z.core.$strip>, z.ZodObject<{
313
+ ok: z.ZodLiteral<false>;
314
+ error: z.ZodObject<{
315
+ code: z.ZodEnum<{
316
+ PROFILE_CONFLICT: "PROFILE_CONFLICT";
317
+ PROFILE_SHADOWED: "PROFILE_SHADOWED";
318
+ INVALID_REQUEST: "INVALID_REQUEST";
319
+ MODEL_UNAVAILABLE: "MODEL_UNAVAILABLE";
320
+ OPERATION_FAILED: "OPERATION_FAILED";
321
+ }>;
322
+ message: z.ZodString;
323
+ }, z.core.$strip>;
324
+ }, z.core.$strip>], "ok">;
325
+ };
326
+ readonly save: {
327
+ readonly input: z.ZodObject<{
328
+ scope: z.ZodEnum<{
329
+ global: "global";
330
+ project: "project";
331
+ }>;
332
+ name: z.ZodString;
333
+ profile: z.ZodObject<{
334
+ agents: z.ZodRecord<z.ZodEnum<{
335
+ orchestrator: "orchestrator";
336
+ explorer: "explorer";
337
+ librarian: "librarian";
338
+ oracle: "oracle";
339
+ designer: "designer";
340
+ worker: "worker";
341
+ }> & z.core.$partial, z.ZodObject<{
342
+ model: z.ZodOptional<z.ZodString>;
343
+ variant: z.ZodOptional<z.ZodString>;
344
+ }, z.core.$strip>>;
345
+ }, z.core.$strip>;
346
+ baseRevision: z.ZodString;
347
+ }, z.core.$strip>;
348
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
349
+ ok: z.ZodLiteral<true>;
350
+ value: z.ZodObject<{
351
+ revision: z.ZodString;
352
+ }, z.core.$strip>;
353
+ }, z.core.$strip>, z.ZodObject<{
354
+ ok: z.ZodLiteral<false>;
355
+ error: z.ZodObject<{
356
+ code: z.ZodEnum<{
357
+ PROFILE_CONFLICT: "PROFILE_CONFLICT";
358
+ PROFILE_SHADOWED: "PROFILE_SHADOWED";
359
+ INVALID_REQUEST: "INVALID_REQUEST";
360
+ MODEL_UNAVAILABLE: "MODEL_UNAVAILABLE";
361
+ OPERATION_FAILED: "OPERATION_FAILED";
362
+ }>;
363
+ message: z.ZodString;
364
+ }, z.core.$strip>;
365
+ }, z.core.$strip>], "ok">;
366
+ };
367
+ readonly rename: {
368
+ readonly input: z.ZodObject<{
369
+ scope: z.ZodEnum<{
370
+ global: "global";
371
+ project: "project";
372
+ }>;
373
+ name: z.ZodString;
374
+ newName: z.ZodString;
375
+ }, z.core.$strip>;
376
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
377
+ ok: z.ZodLiteral<true>;
378
+ value: z.ZodObject<{}, z.core.$strip>;
379
+ }, z.core.$strip>, z.ZodObject<{
380
+ ok: z.ZodLiteral<false>;
381
+ error: z.ZodObject<{
382
+ code: z.ZodEnum<{
383
+ PROFILE_CONFLICT: "PROFILE_CONFLICT";
384
+ PROFILE_SHADOWED: "PROFILE_SHADOWED";
385
+ INVALID_REQUEST: "INVALID_REQUEST";
386
+ MODEL_UNAVAILABLE: "MODEL_UNAVAILABLE";
387
+ OPERATION_FAILED: "OPERATION_FAILED";
388
+ }>;
389
+ message: z.ZodString;
390
+ }, z.core.$strip>;
391
+ }, z.core.$strip>], "ok">;
392
+ };
393
+ readonly delete: {
394
+ readonly input: z.ZodObject<{
395
+ scope: z.ZodEnum<{
396
+ global: "global";
397
+ project: "project";
398
+ }>;
399
+ name: z.ZodString;
400
+ }, z.core.$strip>;
401
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
402
+ ok: z.ZodLiteral<true>;
403
+ value: z.ZodObject<{}, z.core.$strip>;
404
+ }, z.core.$strip>, z.ZodObject<{
405
+ ok: z.ZodLiteral<false>;
406
+ error: z.ZodObject<{
407
+ code: z.ZodEnum<{
408
+ PROFILE_CONFLICT: "PROFILE_CONFLICT";
409
+ PROFILE_SHADOWED: "PROFILE_SHADOWED";
410
+ INVALID_REQUEST: "INVALID_REQUEST";
411
+ MODEL_UNAVAILABLE: "MODEL_UNAVAILABLE";
412
+ OPERATION_FAILED: "OPERATION_FAILED";
413
+ }>;
414
+ message: z.ZodString;
415
+ }, z.core.$strip>;
416
+ }, z.core.$strip>], "ok">;
417
+ };
418
+ readonly activate: {
419
+ readonly input: z.ZodObject<{
420
+ sessionID: z.ZodOptional<z.ZodString>;
421
+ scope: z.ZodEnum<{
422
+ global: "global";
423
+ project: "project";
424
+ session: "session";
425
+ }>;
426
+ name: z.ZodString;
427
+ }, z.core.$strip>;
428
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
429
+ ok: z.ZodLiteral<true>;
430
+ value: z.ZodObject<{
431
+ profiles: z.ZodArray<z.ZodObject<{
432
+ scope: z.ZodEnum<{
433
+ global: "global";
434
+ project: "project";
435
+ }>;
436
+ name: z.ZodString;
437
+ source: z.ZodEnum<{
438
+ global: "global";
439
+ project: "project";
440
+ }>;
441
+ shadowed: z.ZodBoolean;
442
+ profile: z.ZodObject<{
443
+ agents: z.ZodRecord<z.ZodEnum<{
444
+ orchestrator: "orchestrator";
445
+ explorer: "explorer";
446
+ librarian: "librarian";
447
+ oracle: "oracle";
448
+ designer: "designer";
449
+ worker: "worker";
450
+ }> & z.core.$partial, z.ZodObject<{
451
+ model: z.ZodOptional<z.ZodString>;
452
+ variant: z.ZodOptional<z.ZodString>;
453
+ }, z.core.$strip>>;
454
+ }, z.core.$strip>;
455
+ revision: z.ZodString;
456
+ }, z.core.$strip>>;
457
+ defaultProfile: z.ZodObject<{
458
+ agents: z.ZodRecord<z.ZodEnum<{
459
+ orchestrator: "orchestrator";
460
+ explorer: "explorer";
461
+ librarian: "librarian";
462
+ oracle: "oracle";
463
+ designer: "designer";
464
+ worker: "worker";
465
+ }> & z.core.$partial, z.ZodObject<{
466
+ model: z.ZodOptional<z.ZodString>;
467
+ variant: z.ZodOptional<z.ZodString>;
468
+ }, z.core.$strip>>;
469
+ }, z.core.$strip>;
470
+ roles: z.ZodArray<z.ZodEnum<{
471
+ orchestrator: "orchestrator";
472
+ explorer: "explorer";
473
+ librarian: "librarian";
474
+ oracle: "oracle";
475
+ designer: "designer";
476
+ worker: "worker";
477
+ }>>;
478
+ selections: z.ZodObject<{
479
+ session: z.ZodOptional<z.ZodString>;
480
+ project: z.ZodOptional<z.ZodString>;
481
+ global: z.ZodOptional<z.ZodString>;
482
+ }, z.core.$strip>;
483
+ effective: z.ZodObject<{
484
+ name: z.ZodString;
485
+ source: z.ZodOptional<z.ZodEnum<{
486
+ global: "global";
487
+ project: "project";
488
+ }>>;
489
+ selectedBy: z.ZodEnum<{
490
+ default: "default";
491
+ global: "global";
492
+ project: "project";
493
+ session: "session";
494
+ }>;
495
+ profile: z.ZodObject<{
496
+ agents: z.ZodRecord<z.ZodEnum<{
497
+ orchestrator: "orchestrator";
498
+ explorer: "explorer";
499
+ librarian: "librarian";
500
+ oracle: "oracle";
501
+ designer: "designer";
502
+ worker: "worker";
503
+ }> & z.core.$partial, z.ZodObject<{
504
+ model: z.ZodOptional<z.ZodString>;
505
+ variant: z.ZodOptional<z.ZodString>;
506
+ }, z.core.$strip>>;
507
+ }, z.core.$strip>;
508
+ }, z.core.$strip>;
509
+ orchestrator: z.ZodOptional<z.ZodObject<{
510
+ model: z.ZodOptional<z.ZodString>;
511
+ variant: z.ZodOptional<z.ZodString>;
512
+ }, z.core.$strip>>;
513
+ providers: z.ZodArray<z.ZodObject<{
514
+ id: z.ZodString;
515
+ name: z.ZodString;
516
+ models: z.ZodArray<z.ZodObject<{
517
+ id: z.ZodString;
518
+ name: z.ZodString;
519
+ variants: z.ZodArray<z.ZodString>;
520
+ }, z.core.$strip>>;
521
+ }, z.core.$strip>>;
522
+ warnings: z.ZodArray<z.ZodString>;
523
+ }, z.core.$strip>;
524
+ }, z.core.$strip>, z.ZodObject<{
525
+ ok: z.ZodLiteral<false>;
526
+ error: z.ZodObject<{
527
+ code: z.ZodEnum<{
528
+ PROFILE_CONFLICT: "PROFILE_CONFLICT";
529
+ PROFILE_SHADOWED: "PROFILE_SHADOWED";
530
+ INVALID_REQUEST: "INVALID_REQUEST";
531
+ MODEL_UNAVAILABLE: "MODEL_UNAVAILABLE";
532
+ OPERATION_FAILED: "OPERATION_FAILED";
533
+ }>;
534
+ message: z.ZodString;
535
+ }, z.core.$strip>;
536
+ }, z.core.$strip>], "ok">;
537
+ };
538
+ readonly clear: {
539
+ readonly input: z.ZodObject<{
540
+ sessionID: z.ZodOptional<z.ZodString>;
541
+ scope: z.ZodEnum<{
542
+ global: "global";
543
+ project: "project";
544
+ session: "session";
545
+ }>;
546
+ }, z.core.$strip>;
547
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
548
+ ok: z.ZodLiteral<true>;
549
+ value: z.ZodObject<{
550
+ profiles: z.ZodArray<z.ZodObject<{
551
+ scope: z.ZodEnum<{
552
+ global: "global";
553
+ project: "project";
554
+ }>;
555
+ name: z.ZodString;
556
+ source: z.ZodEnum<{
557
+ global: "global";
558
+ project: "project";
559
+ }>;
560
+ shadowed: z.ZodBoolean;
561
+ profile: z.ZodObject<{
562
+ agents: z.ZodRecord<z.ZodEnum<{
563
+ orchestrator: "orchestrator";
564
+ explorer: "explorer";
565
+ librarian: "librarian";
566
+ oracle: "oracle";
567
+ designer: "designer";
568
+ worker: "worker";
569
+ }> & z.core.$partial, z.ZodObject<{
570
+ model: z.ZodOptional<z.ZodString>;
571
+ variant: z.ZodOptional<z.ZodString>;
572
+ }, z.core.$strip>>;
573
+ }, z.core.$strip>;
574
+ revision: z.ZodString;
575
+ }, z.core.$strip>>;
576
+ defaultProfile: z.ZodObject<{
577
+ agents: z.ZodRecord<z.ZodEnum<{
578
+ orchestrator: "orchestrator";
579
+ explorer: "explorer";
580
+ librarian: "librarian";
581
+ oracle: "oracle";
582
+ designer: "designer";
583
+ worker: "worker";
584
+ }> & z.core.$partial, z.ZodObject<{
585
+ model: z.ZodOptional<z.ZodString>;
586
+ variant: z.ZodOptional<z.ZodString>;
587
+ }, z.core.$strip>>;
588
+ }, z.core.$strip>;
589
+ roles: z.ZodArray<z.ZodEnum<{
590
+ orchestrator: "orchestrator";
591
+ explorer: "explorer";
592
+ librarian: "librarian";
593
+ oracle: "oracle";
594
+ designer: "designer";
595
+ worker: "worker";
596
+ }>>;
597
+ selections: z.ZodObject<{
598
+ session: z.ZodOptional<z.ZodString>;
599
+ project: z.ZodOptional<z.ZodString>;
600
+ global: z.ZodOptional<z.ZodString>;
601
+ }, z.core.$strip>;
602
+ effective: z.ZodObject<{
603
+ name: z.ZodString;
604
+ source: z.ZodOptional<z.ZodEnum<{
605
+ global: "global";
606
+ project: "project";
607
+ }>>;
608
+ selectedBy: z.ZodEnum<{
609
+ default: "default";
610
+ global: "global";
611
+ project: "project";
612
+ session: "session";
613
+ }>;
614
+ profile: z.ZodObject<{
615
+ agents: z.ZodRecord<z.ZodEnum<{
616
+ orchestrator: "orchestrator";
617
+ explorer: "explorer";
618
+ librarian: "librarian";
619
+ oracle: "oracle";
620
+ designer: "designer";
621
+ worker: "worker";
622
+ }> & z.core.$partial, z.ZodObject<{
623
+ model: z.ZodOptional<z.ZodString>;
624
+ variant: z.ZodOptional<z.ZodString>;
625
+ }, z.core.$strip>>;
626
+ }, z.core.$strip>;
627
+ }, z.core.$strip>;
628
+ orchestrator: z.ZodOptional<z.ZodObject<{
629
+ model: z.ZodOptional<z.ZodString>;
630
+ variant: z.ZodOptional<z.ZodString>;
631
+ }, z.core.$strip>>;
632
+ providers: z.ZodArray<z.ZodObject<{
633
+ id: z.ZodString;
634
+ name: z.ZodString;
635
+ models: z.ZodArray<z.ZodObject<{
636
+ id: z.ZodString;
637
+ name: z.ZodString;
638
+ variants: z.ZodArray<z.ZodString>;
639
+ }, z.core.$strip>>;
640
+ }, z.core.$strip>>;
641
+ warnings: z.ZodArray<z.ZodString>;
642
+ }, z.core.$strip>;
643
+ }, z.core.$strip>, z.ZodObject<{
644
+ ok: z.ZodLiteral<false>;
645
+ error: z.ZodObject<{
646
+ code: z.ZodEnum<{
647
+ PROFILE_CONFLICT: "PROFILE_CONFLICT";
648
+ PROFILE_SHADOWED: "PROFILE_SHADOWED";
649
+ INVALID_REQUEST: "INVALID_REQUEST";
650
+ MODEL_UNAVAILABLE: "MODEL_UNAVAILABLE";
651
+ OPERATION_FAILED: "OPERATION_FAILED";
652
+ }>;
653
+ message: z.ZodString;
654
+ }, z.core.$strip>;
655
+ }, z.core.$strip>], "ok">;
656
+ };
657
+ readonly capture: {
658
+ readonly input: z.ZodObject<{
659
+ sessionID: z.ZodString;
660
+ }, z.core.$strip>;
661
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
662
+ ok: z.ZodLiteral<true>;
663
+ value: z.ZodObject<{
664
+ model: z.ZodOptional<z.ZodString>;
665
+ variant: z.ZodOptional<z.ZodString>;
666
+ }, z.core.$strip>;
667
+ }, z.core.$strip>, z.ZodObject<{
668
+ ok: z.ZodLiteral<false>;
669
+ error: z.ZodObject<{
670
+ code: z.ZodEnum<{
671
+ PROFILE_CONFLICT: "PROFILE_CONFLICT";
672
+ PROFILE_SHADOWED: "PROFILE_SHADOWED";
673
+ INVALID_REQUEST: "INVALID_REQUEST";
674
+ MODEL_UNAVAILABLE: "MODEL_UNAVAILABLE";
675
+ OPERATION_FAILED: "OPERATION_FAILED";
676
+ }>;
677
+ message: z.ZodString;
678
+ }, z.core.$strip>;
679
+ }, z.core.$strip>], "ok">;
680
+ };
681
+ };
682
+ readonly events: {};
683
+ };
684
+ export type ProfileState = z.infer<typeof ProfileStateSchema>;
685
+ export type ProfileError = z.infer<typeof ProfileErrorSchema>;
686
+ export type ProfileRpcMethod = keyof typeof profileRpc.methods;
687
+ export type ProfileRpcInput<M extends ProfileRpcMethod> = z.infer<(typeof profileRpc.methods)[M]['input']>;
688
+ export type ProfileRpcOutput<M extends ProfileRpcMethod> = z.infer<(typeof profileRpc.methods)[M]['output']>;