dawmcp 0.0.1 → 0.0.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 (47) hide show
  1. package/README.md +46 -91
  2. package/THIRD-PARTY-NOTICES.md +997 -2
  3. package/bridge/index.mjs +62 -0
  4. package/bridge/types/browser-bridge-client.d.ts +134 -0
  5. package/bridge/types/browser-bridge-protocol.d.ts +150 -0
  6. package/bridge/types/catalog.d.ts +106 -0
  7. package/bridge/types/contracts.d.ts +3330 -0
  8. package/bridge/types/cubase-contracts.d.ts +87 -0
  9. package/bridge/types/fl-contracts.d.ts +297 -0
  10. package/bridge/types/http-daw-contracts.d.ts +141 -0
  11. package/bridge/types/logic-contracts.d.ts +527 -0
  12. package/bridge/types/plugin-contracts.d.ts +581 -0
  13. package/bridge/types/pro-tools-contracts.d.ts +103 -0
  14. package/bridge/types/provider-declaration.d.ts +122 -0
  15. package/bridge/types/provider-manifest.d.ts +463 -0
  16. package/bridge/types/provider-operations.d.ts +597 -0
  17. package/bridge/types/reaper-contracts.d.ts +217 -0
  18. package/bridge/types/studio-one-contracts.d.ts +125 -0
  19. package/bridge/types/waveform-contracts.d.ts +131 -0
  20. package/cli.mjs +253 -148
  21. package/logic/LogicProMCP +2 -2
  22. package/logic/runtime.json +2 -2
  23. package/package.json +18 -2
  24. package/plugin/.claude-plugin/marketplace.json +1 -0
  25. package/plugin/.claude-plugin/plugin.json +3 -2
  26. package/plugin/.mcp.json +1 -1
  27. package/plugin/README.md +46 -91
  28. package/plugin/THIRD-PARTY-NOTICES.md +997 -2
  29. package/plugin/plugin.json +1 -1
  30. package/plugin/skills/daw/SKILL.md +8 -2
  31. package/plugin/skills/daw/references/ardour.md +7 -2
  32. package/plugin/skills/daw/references/arrangement.md +17 -0
  33. package/plugin/skills/daw/references/connection.md +21 -0
  34. package/plugin/skills/daw/references/drums.md +23 -0
  35. package/plugin/skills/daw/references/editing.md +9 -0
  36. package/plugin/skills/daw/references/mix-check.md +17 -0
  37. package/plugin/skills/daw/references/session-hygiene.md +15 -0
  38. package/plugin/skills/daw/references/theory.md +26 -0
  39. package/skill/SKILL.md +8 -2
  40. package/skill/references/ardour.md +7 -2
  41. package/skill/references/arrangement.md +17 -0
  42. package/skill/references/connection.md +21 -0
  43. package/skill/references/drums.md +23 -0
  44. package/skill/references/editing.md +9 -0
  45. package/skill/references/mix-check.md +17 -0
  46. package/skill/references/session-hygiene.md +15 -0
  47. package/skill/references/theory.md +26 -0
@@ -0,0 +1,581 @@
1
+ import { z } from "zod";
2
+ import { type DawId } from "./contracts.js";
3
+ import { type DawPluginOperation } from "./catalog.js";
4
+ /**
5
+ * Portable operations on plug-ins hosted by the DAW itself: its installed
6
+ * catalog, one track's chain, insertion on an explicit track, and parameter
7
+ * reads and writes with read-back. Plug-ins hosted by Maru's own bridge are a
8
+ * different owner (BRIDGE-017/018).
9
+ */
10
+ /**
11
+ * Native identity vocabulary from `packages/plugin-shell-kit`
12
+ * (`native-identity.ts` NATIVE_PLUGIN_ID_PREFIX and the development profile's
13
+ * `dev` qualifier; `release/host-plugin-identities.ts` HOST_PLUGIN_PRODUCTS).
14
+ * agent-tools' DAW tests check these values against that owner.
15
+ */
16
+ export declare const MARU_NATIVE_PLUGIN_ID_PREFIX = "app.maru";
17
+ export declare const MARU_DEVELOPMENT_ID_QUALIFIER = "dev";
18
+ export declare const MARU_NATIVE_VENDORS: readonly ["Maru", "_maru"];
19
+ export declare const MARU_HOST_PLUGINS: {
20
+ readonly "app.maru.universal-instrument": {
21
+ readonly host: "instrument";
22
+ };
23
+ readonly "app.maru.universal-fx": {
24
+ readonly host: "effect";
25
+ };
26
+ readonly "app.maru.sampler": {
27
+ readonly host: "sampler";
28
+ readonly moduleId: "com.maruaudio.sampler";
29
+ };
30
+ readonly "app.maru.samples": {
31
+ readonly host: "samples";
32
+ readonly moduleId: "com.maruaudio.samples";
33
+ };
34
+ };
35
+ export declare const MaruPluginIdentitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
36
+ match: z.ZodLiteral<"plugin-id">;
37
+ nativePluginId: z.ZodString;
38
+ profile: z.ZodEnum<{
39
+ release: "release";
40
+ development: "development";
41
+ }>;
42
+ slug: z.ZodString;
43
+ host: z.ZodOptional<z.ZodEnum<{
44
+ instrument: "instrument";
45
+ effect: "effect";
46
+ sampler: "sampler";
47
+ samples: "samples";
48
+ }>>;
49
+ moduleId: z.ZodOptional<z.ZodString>;
50
+ }, z.core.$strict>, z.ZodObject<{
51
+ match: z.ZodLiteral<"vendor">;
52
+ vendor: z.ZodString;
53
+ }, z.core.$strict>], "match">;
54
+ export type MaruPluginIdentity = z.infer<typeof MaruPluginIdentitySchema>;
55
+ export declare const DawPluginIdentitySchema: z.ZodObject<{
56
+ pluginId: z.ZodString;
57
+ name: z.ZodString;
58
+ format: z.ZodOptional<z.ZodString>;
59
+ vendor: z.ZodOptional<z.ZodString>;
60
+ instrument: z.ZodOptional<z.ZodBoolean>;
61
+ maru: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
62
+ match: z.ZodLiteral<"plugin-id">;
63
+ nativePluginId: z.ZodString;
64
+ profile: z.ZodEnum<{
65
+ release: "release";
66
+ development: "development";
67
+ }>;
68
+ slug: z.ZodString;
69
+ host: z.ZodOptional<z.ZodEnum<{
70
+ instrument: "instrument";
71
+ effect: "effect";
72
+ sampler: "sampler";
73
+ samples: "samples";
74
+ }>>;
75
+ moduleId: z.ZodOptional<z.ZodString>;
76
+ }, z.core.$strict>, z.ZodObject<{
77
+ match: z.ZodLiteral<"vendor">;
78
+ vendor: z.ZodString;
79
+ }, z.core.$strict>], "match">>;
80
+ }, z.core.$strict>;
81
+ export type DawPluginIdentity = z.infer<typeof DawPluginIdentitySchema>;
82
+ /** Maru identity from any native strings a DAW reports for one plug-in. */
83
+ export declare function maruPluginIdentity(values: readonly string[], vendor?: string): MaruPluginIdentity | undefined;
84
+ /**
85
+ * Identity from a REAPER catalog name (`VST3i: Brisa (Maru)`) and its opaque
86
+ * ident. CLAP idents carry the reverse-DNS plug-in ID; VST3 and AU idents do
87
+ * not, so those resolve to a vendor match at most.
88
+ */
89
+ export declare function reaperPluginIdentity(pluginId: string, name: string): DawPluginIdentity;
90
+ export declare const DawPluginListSchema: z.ZodObject<{
91
+ daw: z.ZodUnion<readonly [z.ZodEnum<{
92
+ waveform: "waveform";
93
+ "pro-tools": "pro-tools";
94
+ cubase: "cubase";
95
+ "studio-one": "studio-one";
96
+ logic: "logic";
97
+ bitwig: "bitwig";
98
+ ardour: "ardour";
99
+ reaper: "reaper";
100
+ ableton: "ableton";
101
+ "fl-studio": "fl-studio";
102
+ }>, z.ZodTemplateLiteral<`provider:${string}`>]>;
103
+ sessionId: z.ZodString;
104
+ offset: z.ZodDefault<z.ZodNumber>;
105
+ limit: z.ZodDefault<z.ZodNumber>;
106
+ query: z.ZodOptional<z.ZodString>;
107
+ }, z.core.$strict>;
108
+ export declare const DawTrackPluginsSchema: z.ZodObject<{
109
+ daw: z.ZodUnion<readonly [z.ZodEnum<{
110
+ waveform: "waveform";
111
+ "pro-tools": "pro-tools";
112
+ cubase: "cubase";
113
+ "studio-one": "studio-one";
114
+ logic: "logic";
115
+ bitwig: "bitwig";
116
+ ardour: "ardour";
117
+ reaper: "reaper";
118
+ ableton: "ableton";
119
+ "fl-studio": "fl-studio";
120
+ }>, z.ZodTemplateLiteral<`provider:${string}`>]>;
121
+ sessionId: z.ZodString;
122
+ offset: z.ZodDefault<z.ZodNumber>;
123
+ limit: z.ZodDefault<z.ZodNumber>;
124
+ trackId: z.ZodString;
125
+ }, z.core.$strict>;
126
+ export declare const DawPluginInsertSchema: z.ZodObject<{
127
+ daw: z.ZodUnion<readonly [z.ZodEnum<{
128
+ waveform: "waveform";
129
+ "pro-tools": "pro-tools";
130
+ cubase: "cubase";
131
+ "studio-one": "studio-one";
132
+ logic: "logic";
133
+ bitwig: "bitwig";
134
+ ardour: "ardour";
135
+ reaper: "reaper";
136
+ ableton: "ableton";
137
+ "fl-studio": "fl-studio";
138
+ }>, z.ZodTemplateLiteral<`provider:${string}`>]>;
139
+ sessionId: z.ZodString;
140
+ pluginId: z.ZodString;
141
+ trackId: z.ZodString;
142
+ }, z.core.$strict>;
143
+ export declare const DawPluginParametersSchema: z.ZodObject<{
144
+ daw: z.ZodUnion<readonly [z.ZodEnum<{
145
+ waveform: "waveform";
146
+ "pro-tools": "pro-tools";
147
+ cubase: "cubase";
148
+ "studio-one": "studio-one";
149
+ logic: "logic";
150
+ bitwig: "bitwig";
151
+ ardour: "ardour";
152
+ reaper: "reaper";
153
+ ableton: "ableton";
154
+ "fl-studio": "fl-studio";
155
+ }>, z.ZodTemplateLiteral<`provider:${string}`>]>;
156
+ sessionId: z.ZodString;
157
+ offset: z.ZodDefault<z.ZodNumber>;
158
+ limit: z.ZodDefault<z.ZodNumber>;
159
+ instanceId: z.ZodString;
160
+ slot: z.ZodNumber;
161
+ trackId: z.ZodString;
162
+ }, z.core.$strict>;
163
+ export declare const DawPluginSetParameterSchema: z.ZodObject<{
164
+ daw: z.ZodUnion<readonly [z.ZodEnum<{
165
+ waveform: "waveform";
166
+ "pro-tools": "pro-tools";
167
+ cubase: "cubase";
168
+ "studio-one": "studio-one";
169
+ logic: "logic";
170
+ bitwig: "bitwig";
171
+ ardour: "ardour";
172
+ reaper: "reaper";
173
+ ableton: "ableton";
174
+ "fl-studio": "fl-studio";
175
+ }>, z.ZodTemplateLiteral<`provider:${string}`>]>;
176
+ sessionId: z.ZodString;
177
+ parameterIndex: z.ZodNumber;
178
+ normalized: z.ZodNumber;
179
+ instanceId: z.ZodString;
180
+ slot: z.ZodNumber;
181
+ trackId: z.ZodString;
182
+ }, z.core.$strict>;
183
+ export declare const DawPluginParameterSchema: z.ZodObject<{
184
+ index: z.ZodNumber;
185
+ name: z.ZodString;
186
+ normalized: z.ZodNumber;
187
+ value: z.ZodNumber;
188
+ minimum: z.ZodNumber;
189
+ maximum: z.ZodNumber;
190
+ text: z.ZodString;
191
+ }, z.core.$strict>;
192
+ export declare const DawChainPluginSchema: z.ZodObject<{
193
+ instanceId: z.ZodString;
194
+ slot: z.ZodNumber;
195
+ name: z.ZodString;
196
+ enabled: z.ZodBoolean;
197
+ offline: z.ZodOptional<z.ZodBoolean>;
198
+ parameterCount: z.ZodNumber;
199
+ identity: z.ZodOptional<z.ZodObject<{
200
+ pluginId: z.ZodString;
201
+ name: z.ZodString;
202
+ format: z.ZodOptional<z.ZodString>;
203
+ vendor: z.ZodOptional<z.ZodString>;
204
+ instrument: z.ZodOptional<z.ZodBoolean>;
205
+ maru: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
206
+ match: z.ZodLiteral<"plugin-id">;
207
+ nativePluginId: z.ZodString;
208
+ profile: z.ZodEnum<{
209
+ release: "release";
210
+ development: "development";
211
+ }>;
212
+ slug: z.ZodString;
213
+ host: z.ZodOptional<z.ZodEnum<{
214
+ instrument: "instrument";
215
+ effect: "effect";
216
+ sampler: "sampler";
217
+ samples: "samples";
218
+ }>>;
219
+ moduleId: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strict>, z.ZodObject<{
221
+ match: z.ZodLiteral<"vendor">;
222
+ vendor: z.ZodString;
223
+ }, z.core.$strict>], "match">>;
224
+ }, z.core.$strict>>;
225
+ }, z.core.$strict>;
226
+ export declare const DawPluginUnsupportedSchema: z.ZodObject<{
227
+ status: z.ZodLiteral<"unsupported">;
228
+ daw: z.ZodEnum<{
229
+ waveform: "waveform";
230
+ "pro-tools": "pro-tools";
231
+ cubase: "cubase";
232
+ "studio-one": "studio-one";
233
+ logic: "logic";
234
+ bitwig: "bitwig";
235
+ ardour: "ardour";
236
+ reaper: "reaper";
237
+ ableton: "ableton";
238
+ "fl-studio": "fl-studio";
239
+ }>;
240
+ operation: z.ZodEnum<{
241
+ set: "set";
242
+ chain: "chain";
243
+ insert: "insert";
244
+ read: "read";
245
+ list: "list";
246
+ }>;
247
+ reason: z.ZodString;
248
+ nativeCommands: z.ZodArray<z.ZodString>;
249
+ }, z.core.$strict>;
250
+ export declare const DawPluginCatalogResultSchema: z.ZodUnion<readonly [z.ZodObject<{
251
+ total: z.ZodNumber;
252
+ offset: z.ZodNumber;
253
+ truncated: z.ZodBoolean;
254
+ plugins: z.ZodArray<z.ZodObject<{
255
+ pluginId: z.ZodString;
256
+ name: z.ZodString;
257
+ format: z.ZodOptional<z.ZodString>;
258
+ vendor: z.ZodOptional<z.ZodString>;
259
+ instrument: z.ZodOptional<z.ZodBoolean>;
260
+ maru: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
261
+ match: z.ZodLiteral<"plugin-id">;
262
+ nativePluginId: z.ZodString;
263
+ profile: z.ZodEnum<{
264
+ release: "release";
265
+ development: "development";
266
+ }>;
267
+ slug: z.ZodString;
268
+ host: z.ZodOptional<z.ZodEnum<{
269
+ instrument: "instrument";
270
+ effect: "effect";
271
+ sampler: "sampler";
272
+ samples: "samples";
273
+ }>>;
274
+ moduleId: z.ZodOptional<z.ZodString>;
275
+ }, z.core.$strict>, z.ZodObject<{
276
+ match: z.ZodLiteral<"vendor">;
277
+ vendor: z.ZodString;
278
+ }, z.core.$strict>], "match">>;
279
+ }, z.core.$strict>>;
280
+ status: z.ZodLiteral<"confirmed">;
281
+ daw: z.ZodUnion<readonly [z.ZodEnum<{
282
+ waveform: "waveform";
283
+ "pro-tools": "pro-tools";
284
+ cubase: "cubase";
285
+ "studio-one": "studio-one";
286
+ logic: "logic";
287
+ bitwig: "bitwig";
288
+ ardour: "ardour";
289
+ reaper: "reaper";
290
+ ableton: "ableton";
291
+ "fl-studio": "fl-studio";
292
+ }>, z.ZodTemplateLiteral<`provider:${string}`>]>;
293
+ }, z.core.$strict>, z.ZodObject<{
294
+ status: z.ZodLiteral<"unsupported">;
295
+ daw: z.ZodEnum<{
296
+ waveform: "waveform";
297
+ "pro-tools": "pro-tools";
298
+ cubase: "cubase";
299
+ "studio-one": "studio-one";
300
+ logic: "logic";
301
+ bitwig: "bitwig";
302
+ ardour: "ardour";
303
+ reaper: "reaper";
304
+ ableton: "ableton";
305
+ "fl-studio": "fl-studio";
306
+ }>;
307
+ operation: z.ZodEnum<{
308
+ set: "set";
309
+ chain: "chain";
310
+ insert: "insert";
311
+ read: "read";
312
+ list: "list";
313
+ }>;
314
+ reason: z.ZodString;
315
+ nativeCommands: z.ZodArray<z.ZodString>;
316
+ }, z.core.$strict>]>;
317
+ export declare const DawTrackPluginsResultSchema: z.ZodUnion<readonly [z.ZodObject<{
318
+ total: z.ZodNumber;
319
+ offset: z.ZodNumber;
320
+ truncated: z.ZodBoolean;
321
+ trackId: z.ZodString;
322
+ plugins: z.ZodArray<z.ZodObject<{
323
+ instanceId: z.ZodString;
324
+ slot: z.ZodNumber;
325
+ name: z.ZodString;
326
+ enabled: z.ZodBoolean;
327
+ offline: z.ZodOptional<z.ZodBoolean>;
328
+ parameterCount: z.ZodNumber;
329
+ identity: z.ZodOptional<z.ZodObject<{
330
+ pluginId: z.ZodString;
331
+ name: z.ZodString;
332
+ format: z.ZodOptional<z.ZodString>;
333
+ vendor: z.ZodOptional<z.ZodString>;
334
+ instrument: z.ZodOptional<z.ZodBoolean>;
335
+ maru: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
336
+ match: z.ZodLiteral<"plugin-id">;
337
+ nativePluginId: z.ZodString;
338
+ profile: z.ZodEnum<{
339
+ release: "release";
340
+ development: "development";
341
+ }>;
342
+ slug: z.ZodString;
343
+ host: z.ZodOptional<z.ZodEnum<{
344
+ instrument: "instrument";
345
+ effect: "effect";
346
+ sampler: "sampler";
347
+ samples: "samples";
348
+ }>>;
349
+ moduleId: z.ZodOptional<z.ZodString>;
350
+ }, z.core.$strict>, z.ZodObject<{
351
+ match: z.ZodLiteral<"vendor">;
352
+ vendor: z.ZodString;
353
+ }, z.core.$strict>], "match">>;
354
+ }, z.core.$strict>>;
355
+ }, z.core.$strict>>;
356
+ status: z.ZodLiteral<"confirmed">;
357
+ daw: z.ZodUnion<readonly [z.ZodEnum<{
358
+ waveform: "waveform";
359
+ "pro-tools": "pro-tools";
360
+ cubase: "cubase";
361
+ "studio-one": "studio-one";
362
+ logic: "logic";
363
+ bitwig: "bitwig";
364
+ ardour: "ardour";
365
+ reaper: "reaper";
366
+ ableton: "ableton";
367
+ "fl-studio": "fl-studio";
368
+ }>, z.ZodTemplateLiteral<`provider:${string}`>]>;
369
+ }, z.core.$strict>, z.ZodObject<{
370
+ status: z.ZodLiteral<"unsupported">;
371
+ daw: z.ZodEnum<{
372
+ waveform: "waveform";
373
+ "pro-tools": "pro-tools";
374
+ cubase: "cubase";
375
+ "studio-one": "studio-one";
376
+ logic: "logic";
377
+ bitwig: "bitwig";
378
+ ardour: "ardour";
379
+ reaper: "reaper";
380
+ ableton: "ableton";
381
+ "fl-studio": "fl-studio";
382
+ }>;
383
+ operation: z.ZodEnum<{
384
+ set: "set";
385
+ chain: "chain";
386
+ insert: "insert";
387
+ read: "read";
388
+ list: "list";
389
+ }>;
390
+ reason: z.ZodString;
391
+ nativeCommands: z.ZodArray<z.ZodString>;
392
+ }, z.core.$strict>]>;
393
+ export declare const DawPluginInsertResultSchema: z.ZodUnion<readonly [z.ZodObject<{
394
+ trackId: z.ZodString;
395
+ instanceId: z.ZodString;
396
+ slot: z.ZodNumber;
397
+ identity: z.ZodObject<{
398
+ pluginId: z.ZodString;
399
+ name: z.ZodString;
400
+ format: z.ZodOptional<z.ZodString>;
401
+ vendor: z.ZodOptional<z.ZodString>;
402
+ instrument: z.ZodOptional<z.ZodBoolean>;
403
+ maru: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
404
+ match: z.ZodLiteral<"plugin-id">;
405
+ nativePluginId: z.ZodString;
406
+ profile: z.ZodEnum<{
407
+ release: "release";
408
+ development: "development";
409
+ }>;
410
+ slug: z.ZodString;
411
+ host: z.ZodOptional<z.ZodEnum<{
412
+ instrument: "instrument";
413
+ effect: "effect";
414
+ sampler: "sampler";
415
+ samples: "samples";
416
+ }>>;
417
+ moduleId: z.ZodOptional<z.ZodString>;
418
+ }, z.core.$strict>, z.ZodObject<{
419
+ match: z.ZodLiteral<"vendor">;
420
+ vendor: z.ZodString;
421
+ }, z.core.$strict>], "match">>;
422
+ }, z.core.$strict>;
423
+ status: z.ZodLiteral<"confirmed">;
424
+ daw: z.ZodUnion<readonly [z.ZodEnum<{
425
+ waveform: "waveform";
426
+ "pro-tools": "pro-tools";
427
+ cubase: "cubase";
428
+ "studio-one": "studio-one";
429
+ logic: "logic";
430
+ bitwig: "bitwig";
431
+ ardour: "ardour";
432
+ reaper: "reaper";
433
+ ableton: "ableton";
434
+ "fl-studio": "fl-studio";
435
+ }>, z.ZodTemplateLiteral<`provider:${string}`>]>;
436
+ }, z.core.$strict>, z.ZodObject<{
437
+ status: z.ZodLiteral<"unsupported">;
438
+ daw: z.ZodEnum<{
439
+ waveform: "waveform";
440
+ "pro-tools": "pro-tools";
441
+ cubase: "cubase";
442
+ "studio-one": "studio-one";
443
+ logic: "logic";
444
+ bitwig: "bitwig";
445
+ ardour: "ardour";
446
+ reaper: "reaper";
447
+ ableton: "ableton";
448
+ "fl-studio": "fl-studio";
449
+ }>;
450
+ operation: z.ZodEnum<{
451
+ set: "set";
452
+ chain: "chain";
453
+ insert: "insert";
454
+ read: "read";
455
+ list: "list";
456
+ }>;
457
+ reason: z.ZodString;
458
+ nativeCommands: z.ZodArray<z.ZodString>;
459
+ }, z.core.$strict>]>;
460
+ export declare const DawPluginParametersResultSchema: z.ZodUnion<readonly [z.ZodObject<{
461
+ total: z.ZodNumber;
462
+ offset: z.ZodNumber;
463
+ truncated: z.ZodBoolean;
464
+ trackId: z.ZodString;
465
+ instanceId: z.ZodString;
466
+ slot: z.ZodNumber;
467
+ parameters: z.ZodArray<z.ZodObject<{
468
+ index: z.ZodNumber;
469
+ name: z.ZodString;
470
+ normalized: z.ZodNumber;
471
+ value: z.ZodNumber;
472
+ minimum: z.ZodNumber;
473
+ maximum: z.ZodNumber;
474
+ text: z.ZodString;
475
+ }, z.core.$strict>>;
476
+ status: z.ZodLiteral<"confirmed">;
477
+ daw: z.ZodUnion<readonly [z.ZodEnum<{
478
+ waveform: "waveform";
479
+ "pro-tools": "pro-tools";
480
+ cubase: "cubase";
481
+ "studio-one": "studio-one";
482
+ logic: "logic";
483
+ bitwig: "bitwig";
484
+ ardour: "ardour";
485
+ reaper: "reaper";
486
+ ableton: "ableton";
487
+ "fl-studio": "fl-studio";
488
+ }>, z.ZodTemplateLiteral<`provider:${string}`>]>;
489
+ }, z.core.$strict>, z.ZodObject<{
490
+ status: z.ZodLiteral<"unsupported">;
491
+ daw: z.ZodEnum<{
492
+ waveform: "waveform";
493
+ "pro-tools": "pro-tools";
494
+ cubase: "cubase";
495
+ "studio-one": "studio-one";
496
+ logic: "logic";
497
+ bitwig: "bitwig";
498
+ ardour: "ardour";
499
+ reaper: "reaper";
500
+ ableton: "ableton";
501
+ "fl-studio": "fl-studio";
502
+ }>;
503
+ operation: z.ZodEnum<{
504
+ set: "set";
505
+ chain: "chain";
506
+ insert: "insert";
507
+ read: "read";
508
+ list: "list";
509
+ }>;
510
+ reason: z.ZodString;
511
+ nativeCommands: z.ZodArray<z.ZodString>;
512
+ }, z.core.$strict>]>;
513
+ export declare const DawPluginSetResultSchema: z.ZodUnion<readonly [z.ZodObject<{
514
+ trackId: z.ZodString;
515
+ instanceId: z.ZodString;
516
+ slot: z.ZodNumber;
517
+ requestedNormalized: z.ZodNumber;
518
+ parameter: z.ZodObject<{
519
+ index: z.ZodNumber;
520
+ name: z.ZodString;
521
+ normalized: z.ZodNumber;
522
+ value: z.ZodNumber;
523
+ minimum: z.ZodNumber;
524
+ maximum: z.ZodNumber;
525
+ text: z.ZodString;
526
+ }, z.core.$strict>;
527
+ status: z.ZodLiteral<"confirmed">;
528
+ daw: z.ZodUnion<readonly [z.ZodEnum<{
529
+ waveform: "waveform";
530
+ "pro-tools": "pro-tools";
531
+ cubase: "cubase";
532
+ "studio-one": "studio-one";
533
+ logic: "logic";
534
+ bitwig: "bitwig";
535
+ ardour: "ardour";
536
+ reaper: "reaper";
537
+ ableton: "ableton";
538
+ "fl-studio": "fl-studio";
539
+ }>, z.ZodTemplateLiteral<`provider:${string}`>]>;
540
+ }, z.core.$strict>, z.ZodObject<{
541
+ status: z.ZodLiteral<"unsupported">;
542
+ daw: z.ZodEnum<{
543
+ waveform: "waveform";
544
+ "pro-tools": "pro-tools";
545
+ cubase: "cubase";
546
+ "studio-one": "studio-one";
547
+ logic: "logic";
548
+ bitwig: "bitwig";
549
+ ardour: "ardour";
550
+ reaper: "reaper";
551
+ ableton: "ableton";
552
+ "fl-studio": "fl-studio";
553
+ }>;
554
+ operation: z.ZodEnum<{
555
+ set: "set";
556
+ chain: "chain";
557
+ insert: "insert";
558
+ read: "read";
559
+ list: "list";
560
+ }>;
561
+ reason: z.ZodString;
562
+ nativeCommands: z.ZodArray<z.ZodString>;
563
+ }, z.core.$strict>]>;
564
+ export type DawPluginUnsupported = z.infer<typeof DawPluginUnsupportedSchema>;
565
+ export interface DawPluginIO {
566
+ listPlugins(input: z.input<typeof DawPluginListSchema>, signal?: AbortSignal): Promise<z.infer<typeof DawPluginCatalogResultSchema>>;
567
+ listTrackPlugins(input: z.input<typeof DawTrackPluginsSchema>, signal?: AbortSignal): Promise<z.infer<typeof DawTrackPluginsResultSchema>>;
568
+ insertPlugin(input: z.input<typeof DawPluginInsertSchema>, signal?: AbortSignal): Promise<z.infer<typeof DawPluginInsertResultSchema>>;
569
+ readPluginParameters(input: z.input<typeof DawPluginParametersSchema>, signal?: AbortSignal): Promise<z.infer<typeof DawPluginParametersResultSchema>>;
570
+ setPluginParameter(input: z.input<typeof DawPluginSetParameterSchema>, signal?: AbortSignal): Promise<z.infer<typeof DawPluginSetResultSchema>>;
571
+ }
572
+ /** Reads use the context grant; insertion and parameter writes use mixing. */
573
+ export declare const DAW_PLUGIN_CATEGORIES: {
574
+ readonly list: "context";
575
+ readonly chain: "context";
576
+ readonly read: "context";
577
+ readonly insert: "mixing";
578
+ readonly set: "mixing";
579
+ };
580
+ /** The adapter has no portable path; name the native commands that cover part of it. */
581
+ export declare function dawPluginUnsupported(daw: DawId, operation: DawPluginOperation): DawPluginUnsupported;
@@ -0,0 +1,103 @@
1
+ import { z } from "zod";
2
+ export declare const ProToolsNativeCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
+ action: z.ZodLiteral<"session.read">;
4
+ params: z.ZodObject<{}, z.core.$strict>;
5
+ }, z.core.$strict>, z.ZodObject<{
6
+ action: z.ZodLiteral<"tracks.read">;
7
+ params: z.ZodObject<{}, z.core.$strict>;
8
+ }, z.core.$strict>, z.ZodObject<{
9
+ action: z.ZodLiteral<"transport.read">;
10
+ params: z.ZodObject<{}, z.core.$strict>;
11
+ }, z.core.$strict>, z.ZodObject<{
12
+ action: z.ZodLiteral<"tracks.setMute">;
13
+ params: z.ZodObject<{
14
+ targetRef: z.ZodString;
15
+ trackIds: z.ZodArray<z.ZodString>;
16
+ enabled: z.ZodBoolean;
17
+ }, z.core.$strict>;
18
+ }, z.core.$strict>, z.ZodObject<{
19
+ action: z.ZodLiteral<"tracks.setSolo">;
20
+ params: z.ZodObject<{
21
+ targetRef: z.ZodString;
22
+ trackIds: z.ZodArray<z.ZodString>;
23
+ enabled: z.ZodBoolean;
24
+ }, z.core.$strict>;
25
+ }, z.core.$strict>], "action">;
26
+ export type ProToolsNativeCommand = z.infer<typeof ProToolsNativeCommandSchema>;
27
+ export declare const PRO_TOOLS_NATIVE_COMMANDS: readonly [{
28
+ readonly name: "session.read";
29
+ readonly category: "context";
30
+ readonly readOnly: true;
31
+ }, {
32
+ readonly name: "tracks.read";
33
+ readonly category: "context";
34
+ readonly readOnly: true;
35
+ }, {
36
+ readonly name: "transport.read";
37
+ readonly category: "context";
38
+ readonly readOnly: true;
39
+ }, {
40
+ readonly name: "tracks.setMute";
41
+ readonly category: "mixing";
42
+ readonly readOnly: false;
43
+ }, {
44
+ readonly name: "tracks.setSolo";
45
+ readonly category: "mixing";
46
+ readonly readOnly: false;
47
+ }];
48
+ export declare const ProToolsReadReportSchema: z.ZodObject<{
49
+ coverage: z.ZodLiteral<"ptsl-session-read">;
50
+ sessionRef: z.ZodString;
51
+ sessionName: z.ZodNullable<z.ZodString>;
52
+ sessionPath: z.ZodNullable<z.ZodString>;
53
+ sampleRate: z.ZodNullable<z.ZodString>;
54
+ transportState: z.ZodNullable<z.ZodString>;
55
+ playing: z.ZodNullable<z.ZodBoolean>;
56
+ tracks: z.ZodArray<z.ZodObject<{
57
+ id: z.ZodNullable<z.ZodString>;
58
+ name: z.ZodString;
59
+ type: z.ZodNullable<z.ZodString>;
60
+ muted: z.ZodNullable<z.ZodBoolean>;
61
+ solo: z.ZodNullable<z.ZodBoolean>;
62
+ }, z.core.$strict>>;
63
+ capture: z.ZodObject<{
64
+ startedAt: z.ZodString;
65
+ completedAt: z.ZodString;
66
+ }, z.core.$strict>;
67
+ identity: z.ZodLiteral<"experimental-context-fingerprint">;
68
+ singleWriterRequired: z.ZodLiteral<true>;
69
+ unknown: z.ZodArray<z.ZodString>;
70
+ }, z.core.$strict>;
71
+ export type ProToolsReadReport = z.infer<typeof ProToolsReadReportSchema>;
72
+ export declare const ProToolsNativeReceiptSchema: z.ZodObject<{
73
+ daw: z.ZodLiteral<"pro-tools">;
74
+ status: z.ZodLiteral<"native">;
75
+ requestId: z.ZodString;
76
+ result: z.ZodObject<{
77
+ report: z.ZodObject<{
78
+ coverage: z.ZodLiteral<"ptsl-session-read">;
79
+ sessionRef: z.ZodString;
80
+ sessionName: z.ZodNullable<z.ZodString>;
81
+ sessionPath: z.ZodNullable<z.ZodString>;
82
+ sampleRate: z.ZodNullable<z.ZodString>;
83
+ transportState: z.ZodNullable<z.ZodString>;
84
+ playing: z.ZodNullable<z.ZodBoolean>;
85
+ tracks: z.ZodArray<z.ZodObject<{
86
+ id: z.ZodNullable<z.ZodString>;
87
+ name: z.ZodString;
88
+ type: z.ZodNullable<z.ZodString>;
89
+ muted: z.ZodNullable<z.ZodBoolean>;
90
+ solo: z.ZodNullable<z.ZodBoolean>;
91
+ }, z.core.$strict>>;
92
+ capture: z.ZodObject<{
93
+ startedAt: z.ZodString;
94
+ completedAt: z.ZodString;
95
+ }, z.core.$strict>;
96
+ identity: z.ZodLiteral<"experimental-context-fingerprint">;
97
+ singleWriterRequired: z.ZodLiteral<true>;
98
+ unknown: z.ZodArray<z.ZodString>;
99
+ }, z.core.$strict>;
100
+ verified: z.ZodLiteral<true>;
101
+ liveValidated: z.ZodLiteral<false>;
102
+ }, z.core.$strict>;
103
+ }, z.core.$strict>;