c64bridge 0.7.4 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/prompts/README.md +14 -4
- package/.github/prompts/assembly-routine-session.prompt.md +9 -9
- package/.github/prompts/basic-program-session.prompt.md +11 -9
- package/.github/prompts/drive-management-session.prompt.md +9 -9
- package/.github/prompts/hello-world-session.prompt.md +17 -0
- package/.github/prompts/petscii-art-session.prompt.md +9 -9
- package/.github/prompts/play-classic-game.prompt.md +9 -9
- package/.github/prompts/pr-converge.prompt.md +13 -0
- package/.github/prompts/sid-music-session.prompt.md +9 -9
- package/AGENTS.md +59 -60
- package/README.md +550 -191
- package/data/assembly/assembly-spec.md +290 -1
- package/data/context/bootstrap.md +26 -2
- package/data/context/fast-paths.md +44 -0
- package/data/graphics/petscii-style-guide.md +6 -2
- package/data/graphics/sprite-charset-best-practices.md +5 -5
- package/dist/.tsbuildinfo +1 -1
- package/dist/c64Client.js +990 -26
- package/dist/config.js +5 -1
- package/dist/device.js +680 -57
- package/dist/diagnostics.js +371 -0
- package/dist/mcp/metadata.js +39 -0
- package/dist/mcp-server.js +170 -20
- package/dist/platform.js +10 -2
- package/dist/prompts/registry.js +166 -309
- package/dist/rag/init.js +37 -1
- package/dist/rag/knowledgeIndex.js +18 -6
- package/dist/rag/rateLimiter.js +2 -2
- package/dist/streamCapture.js +135 -0
- package/dist/tools/audio.js +3 -1
- package/dist/tools/debug.js +470 -0
- package/dist/tools/developer.js +10 -4
- package/dist/tools/graphics.js +183 -17
- package/dist/tools/machineControl.js +11 -5
- package/dist/tools/memory.js +19 -10
- package/dist/tools/meta/audio.js +240 -1
- package/dist/tools/meta/config.js +20 -28
- package/dist/tools/meta/configInventory.js +104 -0
- package/dist/tools/meta/diagnostics.js +45 -2
- package/dist/tools/meta/graphics.js +14 -6
- package/dist/tools/meta/index.js +1 -0
- package/dist/tools/meta/memory.js +20 -6
- package/dist/tools/meta/program.js +473 -0
- package/dist/tools/pollValidator.js +4 -2
- package/dist/tools/programRunners.js +8 -4
- package/dist/tools/registry/config.js +17 -0
- package/dist/tools/registry/disk.js +7 -0
- package/dist/tools/registry/drive.js +3 -0
- package/dist/tools/registry/graphics.js +111 -27
- package/dist/tools/registry/index.js +6 -0
- package/dist/tools/registry/memory.js +1 -0
- package/dist/tools/registry/platform.js +121 -0
- package/dist/tools/registry/program.js +26 -8
- package/dist/tools/registry/sound.js +96 -0
- package/dist/tools/registry/system.js +15 -2
- package/dist/tools/storage.js +1 -0
- package/dist/tools/streaming.js +1 -0
- package/dist/tools/types.js +38 -4
- package/dist/tools/vice.js +160 -0
- package/dist/vicBitmap.js +317 -0
- package/dist/vice/mockServer.js +439 -0
- package/dist/vice/process.js +310 -0
- package/dist/vice/readiness.js +18 -2
- package/dist/vice/viceClient.js +382 -22
- package/doc/developer.md +62 -24
- package/doc/img/backend-switch/hello-c64u.png +0 -0
- package/doc/img/backend-switch/hello-vice-and-c64u.png +0 -0
- package/doc/img/backend-switch/hello-vice.png +0 -0
- package/doc/img/backend-switch/metadata.json +50 -0
- package/doc/plans/vice-backend-switch/plan.md +486 -0
- package/doc/plans/vice-backend-switch-2/plan.md +48 -0
- package/doc/plans/vice-support/notes.md +1 -0
- package/doc/plans/vice-support/plan.md +5 -0
- package/doc/plans/vice-support/rollout.md +23 -17
- package/doc/reviews/vice-support-review.md +185 -0
- package/doc/troubleshooting-mcp.md +35 -6
- package/doc/vice/support-matrix.md +54 -0
- package/mcp/prompts.json +292 -0
- package/mcp/protocol-examples.json +46 -0
- package/mcp/resources.json +940 -0
- package/mcp/schemas/c64_config.schema.json +350 -0
- package/mcp/schemas/c64_debug.schema.json +380 -0
- package/mcp/schemas/c64_disk.schema.json +278 -0
- package/mcp/schemas/c64_drive.schema.json +120 -0
- package/mcp/schemas/c64_extract.schema.json +302 -0
- package/mcp/schemas/c64_graphics.schema.json +333 -0
- package/mcp/schemas/c64_memory.schema.json +155 -0
- package/mcp/schemas/c64_printer.schema.json +218 -0
- package/mcp/schemas/c64_program.schema.json +391 -0
- package/mcp/schemas/c64_rag.schema.json +67 -0
- package/mcp/schemas/c64_select_backend.schema.json +32 -0
- package/mcp/schemas/c64_sound.schema.json +644 -0
- package/mcp/schemas/c64_stream.schema.json +61 -0
- package/mcp/schemas/c64_system.schema.json +227 -0
- package/mcp/schemas/c64_vice.schema.json +63 -0
- package/mcp/server.json +15 -0
- package/mcp/tools.json +4517 -0
- package/mcp.json +83 -9
- package/package.json +8 -3
- package/scripts/capture-backend-switch-screenshots.mjs +276 -0
- package/scripts/generate-mcp-interface.ts +289 -0
- package/scripts/invoke-bun.mjs +67 -21
- package/scripts/mockC64Server.mjs +162 -6
- package/scripts/run-coverage.mjs +284 -0
- package/scripts/run-tests.mjs +95 -39
- package/scripts/run-tests.ts +378 -73
- package/scripts/update-readme.ts +147 -13
|
@@ -0,0 +1,644 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"description": "Sound operations available via the c64_sound tool.",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Capture raw stereo PCM samples from the C64 Ultimate audio UDP stream.",
|
|
8
|
+
"properties": {
|
|
9
|
+
"op": {
|
|
10
|
+
"const": "capture_samples"
|
|
11
|
+
},
|
|
12
|
+
"count": {
|
|
13
|
+
"type": [
|
|
14
|
+
"integer",
|
|
15
|
+
"null"
|
|
16
|
+
],
|
|
17
|
+
"description": "Number of stereo sample pairs to capture.",
|
|
18
|
+
"minimum": 1,
|
|
19
|
+
"maximum": 65536,
|
|
20
|
+
"default": 256
|
|
21
|
+
},
|
|
22
|
+
"encoding": {
|
|
23
|
+
"type": [
|
|
24
|
+
"string",
|
|
25
|
+
"null"
|
|
26
|
+
],
|
|
27
|
+
"description": "Encoding used for the PCM sample payload.",
|
|
28
|
+
"enum": [
|
|
29
|
+
"base64",
|
|
30
|
+
"hex"
|
|
31
|
+
],
|
|
32
|
+
"default": "base64"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"op"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "object",
|
|
42
|
+
"description": "Set the SID master volume register at $D418 (0-15).",
|
|
43
|
+
"properties": {
|
|
44
|
+
"volume": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"description": "Desired SID master volume. Values outside 0-15 are clamped.",
|
|
47
|
+
"minimum": 0,
|
|
48
|
+
"maximum": 15
|
|
49
|
+
},
|
|
50
|
+
"op": {
|
|
51
|
+
"const": "set_volume"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"volume",
|
|
56
|
+
"op"
|
|
57
|
+
],
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "object",
|
|
62
|
+
"description": "Soft or hard reset of SID registers to clear glitches.",
|
|
63
|
+
"properties": {
|
|
64
|
+
"hard": {
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"description": "If true, perform a hard register scrub; otherwise silence voices softly.",
|
|
67
|
+
"default": false
|
|
68
|
+
},
|
|
69
|
+
"op": {
|
|
70
|
+
"const": "reset"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"additionalProperties": false,
|
|
74
|
+
"required": [
|
|
75
|
+
"op"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "object",
|
|
80
|
+
"description": "Trigger a SID voice with configurable waveform, ADSR, and pitch.",
|
|
81
|
+
"properties": {
|
|
82
|
+
"voice": {
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"description": "SID voice to trigger (1-3).",
|
|
85
|
+
"minimum": 1,
|
|
86
|
+
"maximum": 3,
|
|
87
|
+
"default": 1
|
|
88
|
+
},
|
|
89
|
+
"note": {
|
|
90
|
+
"type": [
|
|
91
|
+
"string",
|
|
92
|
+
"null"
|
|
93
|
+
],
|
|
94
|
+
"description": "Musical note like A4, C#5, or Bb3. Overrides frequencyHz if provided.",
|
|
95
|
+
"pattern": "^([A-Ga-g])([#b]?)(-?\\d+)$"
|
|
96
|
+
},
|
|
97
|
+
"frequencyHz": {
|
|
98
|
+
"type": [
|
|
99
|
+
"number",
|
|
100
|
+
"null"
|
|
101
|
+
],
|
|
102
|
+
"description": "Explicit frequency in Hz. Used when note is omitted.",
|
|
103
|
+
"minimum": 1
|
|
104
|
+
},
|
|
105
|
+
"system": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Video system for frequency calculation.",
|
|
108
|
+
"enum": [
|
|
109
|
+
"PAL",
|
|
110
|
+
"NTSC"
|
|
111
|
+
],
|
|
112
|
+
"default": "PAL"
|
|
113
|
+
},
|
|
114
|
+
"waveform": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"description": "SID waveform to enable.",
|
|
117
|
+
"enum": [
|
|
118
|
+
"pulse",
|
|
119
|
+
"saw",
|
|
120
|
+
"tri",
|
|
121
|
+
"noise"
|
|
122
|
+
],
|
|
123
|
+
"default": "pulse"
|
|
124
|
+
},
|
|
125
|
+
"pulseWidth": {
|
|
126
|
+
"type": "integer",
|
|
127
|
+
"description": "Pulse width (0-4095). Used for pulse waveform.",
|
|
128
|
+
"minimum": 0,
|
|
129
|
+
"maximum": 4095,
|
|
130
|
+
"default": 2048
|
|
131
|
+
},
|
|
132
|
+
"attack": {
|
|
133
|
+
"type": "integer",
|
|
134
|
+
"description": "Attack rate nibble (0-15).",
|
|
135
|
+
"minimum": 0,
|
|
136
|
+
"maximum": 15,
|
|
137
|
+
"default": 1
|
|
138
|
+
},
|
|
139
|
+
"decay": {
|
|
140
|
+
"type": "integer",
|
|
141
|
+
"description": "Decay rate nibble (0-15).",
|
|
142
|
+
"minimum": 0,
|
|
143
|
+
"maximum": 15,
|
|
144
|
+
"default": 1
|
|
145
|
+
},
|
|
146
|
+
"sustain": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"description": "Sustain level nibble (0-15).",
|
|
149
|
+
"minimum": 0,
|
|
150
|
+
"maximum": 15,
|
|
151
|
+
"default": 15
|
|
152
|
+
},
|
|
153
|
+
"release": {
|
|
154
|
+
"type": "integer",
|
|
155
|
+
"description": "Release rate nibble (0-15).",
|
|
156
|
+
"minimum": 0,
|
|
157
|
+
"maximum": 15,
|
|
158
|
+
"default": 3
|
|
159
|
+
},
|
|
160
|
+
"op": {
|
|
161
|
+
"const": "note_on"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"additionalProperties": false,
|
|
165
|
+
"required": [
|
|
166
|
+
"op"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "object",
|
|
171
|
+
"description": "Release a SID voice by clearing its gate bit.",
|
|
172
|
+
"properties": {
|
|
173
|
+
"voice": {
|
|
174
|
+
"type": "integer",
|
|
175
|
+
"description": "SID voice to release (1-3).",
|
|
176
|
+
"minimum": 1,
|
|
177
|
+
"maximum": 3
|
|
178
|
+
},
|
|
179
|
+
"op": {
|
|
180
|
+
"const": "note_off"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"required": [
|
|
184
|
+
"voice",
|
|
185
|
+
"op"
|
|
186
|
+
],
|
|
187
|
+
"additionalProperties": false
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"type": "object",
|
|
191
|
+
"description": "Silence all SID voices with optional audio verification.",
|
|
192
|
+
"properties": {
|
|
193
|
+
"verify": {
|
|
194
|
+
"type": [
|
|
195
|
+
"boolean",
|
|
196
|
+
"null"
|
|
197
|
+
],
|
|
198
|
+
"description": "When true, record audio after silencing to confirm the SID output is quiet.",
|
|
199
|
+
"default": false
|
|
200
|
+
},
|
|
201
|
+
"op": {
|
|
202
|
+
"const": "silence_all"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"additionalProperties": false,
|
|
206
|
+
"required": [
|
|
207
|
+
"op"
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"type": "object",
|
|
212
|
+
"description": "Play a SID file stored on the Ultimate filesystem.",
|
|
213
|
+
"properties": {
|
|
214
|
+
"path": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"description": "Absolute or Ultimate filesystem path to the SID, PRG, or audio file.",
|
|
217
|
+
"minLength": 1
|
|
218
|
+
},
|
|
219
|
+
"songnr": {
|
|
220
|
+
"type": [
|
|
221
|
+
"integer",
|
|
222
|
+
"null"
|
|
223
|
+
],
|
|
224
|
+
"description": "Song number within the SID file (0-based index).",
|
|
225
|
+
"minimum": 0
|
|
226
|
+
},
|
|
227
|
+
"op": {
|
|
228
|
+
"const": "play_sid_file"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"required": [
|
|
232
|
+
"path",
|
|
233
|
+
"op"
|
|
234
|
+
],
|
|
235
|
+
"additionalProperties": false
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"type": "object",
|
|
239
|
+
"description": "Play a MOD tracker module via the Ultimate SID player.",
|
|
240
|
+
"properties": {
|
|
241
|
+
"path": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"description": "Absolute or Ultimate filesystem path to the SID, PRG, or audio file.",
|
|
244
|
+
"minLength": 1
|
|
245
|
+
},
|
|
246
|
+
"op": {
|
|
247
|
+
"const": "play_mod_file"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"required": [
|
|
251
|
+
"path",
|
|
252
|
+
"op"
|
|
253
|
+
],
|
|
254
|
+
"additionalProperties": false
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"type": "object",
|
|
258
|
+
"description": "Generate a lightweight SID arpeggio playback sequence.",
|
|
259
|
+
"properties": {
|
|
260
|
+
"root": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"description": "Root note for the arpeggio such as C4 or A#3.",
|
|
263
|
+
"pattern": "^([A-Ga-g])([#b]?)(-?\\d+)$",
|
|
264
|
+
"default": "C4"
|
|
265
|
+
},
|
|
266
|
+
"pattern": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"description": "Comma-separated semitone offsets (e.g. '0,4,7').",
|
|
269
|
+
"minLength": 1,
|
|
270
|
+
"default": "0,4,7"
|
|
271
|
+
},
|
|
272
|
+
"steps": {
|
|
273
|
+
"type": "integer",
|
|
274
|
+
"description": "Number of notes to schedule.",
|
|
275
|
+
"minimum": 1,
|
|
276
|
+
"maximum": 128,
|
|
277
|
+
"default": 16
|
|
278
|
+
},
|
|
279
|
+
"tempoMs": {
|
|
280
|
+
"type": "integer",
|
|
281
|
+
"description": "Delay in milliseconds between notes.",
|
|
282
|
+
"minimum": 20,
|
|
283
|
+
"maximum": 2000,
|
|
284
|
+
"default": 120
|
|
285
|
+
},
|
|
286
|
+
"waveform": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"description": "Waveform for playback.",
|
|
289
|
+
"enum": [
|
|
290
|
+
"pulse",
|
|
291
|
+
"saw",
|
|
292
|
+
"tri",
|
|
293
|
+
"noise"
|
|
294
|
+
],
|
|
295
|
+
"default": "tri"
|
|
296
|
+
},
|
|
297
|
+
"preset": {
|
|
298
|
+
"type": [
|
|
299
|
+
"string",
|
|
300
|
+
"null"
|
|
301
|
+
],
|
|
302
|
+
"description": "Optional musical preset to influence timing/expression.",
|
|
303
|
+
"enum": [
|
|
304
|
+
"classic",
|
|
305
|
+
"expression"
|
|
306
|
+
],
|
|
307
|
+
"default": "classic"
|
|
308
|
+
},
|
|
309
|
+
"op": {
|
|
310
|
+
"const": "generate"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"additionalProperties": false,
|
|
314
|
+
"required": [
|
|
315
|
+
"op"
|
|
316
|
+
]
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"type": "object",
|
|
320
|
+
"description": "Compile SIDWAVE or CPG source and optionally play it immediately.",
|
|
321
|
+
"properties": {
|
|
322
|
+
"sidwave": {
|
|
323
|
+
"description": "SIDWAVE composition represented as YAML/JSON text or an already parsed object.",
|
|
324
|
+
"type": [
|
|
325
|
+
"string",
|
|
326
|
+
"object",
|
|
327
|
+
"null"
|
|
328
|
+
]
|
|
329
|
+
},
|
|
330
|
+
"cpg": {
|
|
331
|
+
"description": "SIDWAVE composition represented as YAML/JSON text or an already parsed object.",
|
|
332
|
+
"type": [
|
|
333
|
+
"string",
|
|
334
|
+
"object",
|
|
335
|
+
"null"
|
|
336
|
+
]
|
|
337
|
+
},
|
|
338
|
+
"format": {
|
|
339
|
+
"type": [
|
|
340
|
+
"string",
|
|
341
|
+
"null"
|
|
342
|
+
],
|
|
343
|
+
"description": "Source format hint when providing raw text.",
|
|
344
|
+
"enum": [
|
|
345
|
+
"yaml",
|
|
346
|
+
"json"
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
"output": {
|
|
350
|
+
"type": [
|
|
351
|
+
"string",
|
|
352
|
+
"null"
|
|
353
|
+
],
|
|
354
|
+
"description": "Playback target format.",
|
|
355
|
+
"enum": [
|
|
356
|
+
"prg",
|
|
357
|
+
"sid"
|
|
358
|
+
],
|
|
359
|
+
"default": "prg"
|
|
360
|
+
},
|
|
361
|
+
"dryRun": {
|
|
362
|
+
"type": [
|
|
363
|
+
"boolean",
|
|
364
|
+
"null"
|
|
365
|
+
],
|
|
366
|
+
"description": "When true, skip playback and only return compilation metadata.",
|
|
367
|
+
"default": false
|
|
368
|
+
},
|
|
369
|
+
"op": {
|
|
370
|
+
"const": "compile_play"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"additionalProperties": false,
|
|
374
|
+
"required": [
|
|
375
|
+
"op"
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"type": "object",
|
|
380
|
+
"description": "Compile and play a built-in SID preset such as Für Elise by Beethoven.",
|
|
381
|
+
"properties": {
|
|
382
|
+
"preset": {
|
|
383
|
+
"type": [
|
|
384
|
+
"string",
|
|
385
|
+
"null"
|
|
386
|
+
],
|
|
387
|
+
"description": "Named SID preset to compile and play. Canonical public preset: fuer_elise.",
|
|
388
|
+
"minLength": 1,
|
|
389
|
+
"default": "fuer_elise"
|
|
390
|
+
},
|
|
391
|
+
"platforms": {
|
|
392
|
+
"type": [
|
|
393
|
+
"array",
|
|
394
|
+
"null"
|
|
395
|
+
],
|
|
396
|
+
"items": {
|
|
397
|
+
"type": "string",
|
|
398
|
+
"description": "Backends to target in sequence.",
|
|
399
|
+
"minLength": 1,
|
|
400
|
+
"enum": [
|
|
401
|
+
"vice",
|
|
402
|
+
"c64u"
|
|
403
|
+
]
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"verify": {
|
|
407
|
+
"type": [
|
|
408
|
+
"boolean",
|
|
409
|
+
"null"
|
|
410
|
+
],
|
|
411
|
+
"description": "Capture and analyze audio on supported backends after playback starts.",
|
|
412
|
+
"default": true
|
|
413
|
+
},
|
|
414
|
+
"analysisDurationSeconds": {
|
|
415
|
+
"type": [
|
|
416
|
+
"number",
|
|
417
|
+
"null"
|
|
418
|
+
],
|
|
419
|
+
"description": "Length of the verification recording on analyzable backends.",
|
|
420
|
+
"minimum": 0.5,
|
|
421
|
+
"maximum": 20,
|
|
422
|
+
"default": 4
|
|
423
|
+
},
|
|
424
|
+
"waitBeforeCaptureMs": {
|
|
425
|
+
"type": [
|
|
426
|
+
"number",
|
|
427
|
+
"null"
|
|
428
|
+
],
|
|
429
|
+
"description": "Delay between starting playback and beginning verification capture.",
|
|
430
|
+
"minimum": 0,
|
|
431
|
+
"maximum": 5000,
|
|
432
|
+
"default": 400
|
|
433
|
+
},
|
|
434
|
+
"restoreActiveBackend": {
|
|
435
|
+
"type": [
|
|
436
|
+
"boolean",
|
|
437
|
+
"null"
|
|
438
|
+
],
|
|
439
|
+
"description": "Restore the backend that was active before the workflow started.",
|
|
440
|
+
"default": true
|
|
441
|
+
},
|
|
442
|
+
"op": {
|
|
443
|
+
"const": "play_preset"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"additionalProperties": false,
|
|
447
|
+
"required": [
|
|
448
|
+
"op"
|
|
449
|
+
]
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"type": "object",
|
|
453
|
+
"description": "Compile a SIDWAVE score, play it, and analyze the recording.",
|
|
454
|
+
"properties": {
|
|
455
|
+
"sidwave": {
|
|
456
|
+
"type": [
|
|
457
|
+
"string",
|
|
458
|
+
"null"
|
|
459
|
+
],
|
|
460
|
+
"description": "SIDWAVE source in YAML or JSON format.",
|
|
461
|
+
"minLength": 1
|
|
462
|
+
},
|
|
463
|
+
"cpg": {
|
|
464
|
+
"type": [
|
|
465
|
+
"string",
|
|
466
|
+
"null"
|
|
467
|
+
],
|
|
468
|
+
"description": "Legacy CPG input format.",
|
|
469
|
+
"minLength": 1
|
|
470
|
+
},
|
|
471
|
+
"output": {
|
|
472
|
+
"type": [
|
|
473
|
+
"string",
|
|
474
|
+
"null"
|
|
475
|
+
],
|
|
476
|
+
"description": "Playback artifact format.",
|
|
477
|
+
"enum": [
|
|
478
|
+
"prg",
|
|
479
|
+
"sid"
|
|
480
|
+
],
|
|
481
|
+
"default": "prg"
|
|
482
|
+
},
|
|
483
|
+
"waitBeforeCaptureMs": {
|
|
484
|
+
"type": [
|
|
485
|
+
"number",
|
|
486
|
+
"null"
|
|
487
|
+
],
|
|
488
|
+
"description": "Delay between starting playback and beginning analysis capture (milliseconds).",
|
|
489
|
+
"minimum": 0,
|
|
490
|
+
"maximum": 5000,
|
|
491
|
+
"default": 500
|
|
492
|
+
},
|
|
493
|
+
"analysisDurationSeconds": {
|
|
494
|
+
"type": [
|
|
495
|
+
"number",
|
|
496
|
+
"null"
|
|
497
|
+
],
|
|
498
|
+
"description": "Audio capture length in seconds.",
|
|
499
|
+
"minimum": 0.5,
|
|
500
|
+
"maximum": 20,
|
|
501
|
+
"default": 3
|
|
502
|
+
},
|
|
503
|
+
"expectedSidwave": {
|
|
504
|
+
"type": [
|
|
505
|
+
"string",
|
|
506
|
+
"null"
|
|
507
|
+
],
|
|
508
|
+
"description": "Optional expected SIDWAVE used to refine analysis comparisons.",
|
|
509
|
+
"minLength": 1
|
|
510
|
+
},
|
|
511
|
+
"verifySilenceBefore": {
|
|
512
|
+
"type": [
|
|
513
|
+
"boolean",
|
|
514
|
+
"null"
|
|
515
|
+
],
|
|
516
|
+
"description": "Run silence verification before playback to ensure a quiet baseline.",
|
|
517
|
+
"default": true
|
|
518
|
+
},
|
|
519
|
+
"verifySilenceAfter": {
|
|
520
|
+
"type": [
|
|
521
|
+
"boolean",
|
|
522
|
+
"null"
|
|
523
|
+
],
|
|
524
|
+
"description": "Run silence verification after playback to ensure voices are released.",
|
|
525
|
+
"default": true
|
|
526
|
+
},
|
|
527
|
+
"silenceDurationSeconds": {
|
|
528
|
+
"type": [
|
|
529
|
+
"number",
|
|
530
|
+
"null"
|
|
531
|
+
],
|
|
532
|
+
"description": "Audio capture length used for silence verification.",
|
|
533
|
+
"minimum": 0.5,
|
|
534
|
+
"maximum": 10,
|
|
535
|
+
"default": 1.5
|
|
536
|
+
},
|
|
537
|
+
"silenceRmsThreshold": {
|
|
538
|
+
"type": [
|
|
539
|
+
"number",
|
|
540
|
+
"null"
|
|
541
|
+
],
|
|
542
|
+
"description": "RMS threshold applied to silence verification captures.",
|
|
543
|
+
"minimum": 0,
|
|
544
|
+
"maximum": 1,
|
|
545
|
+
"default": 0.02
|
|
546
|
+
},
|
|
547
|
+
"postSilenceWaitMs": {
|
|
548
|
+
"type": [
|
|
549
|
+
"number",
|
|
550
|
+
"null"
|
|
551
|
+
],
|
|
552
|
+
"description": "Delay between main analysis capture and the post-playback silence check (milliseconds).",
|
|
553
|
+
"minimum": 0,
|
|
554
|
+
"maximum": 5000,
|
|
555
|
+
"default": 200
|
|
556
|
+
},
|
|
557
|
+
"silenceWaitMs": {
|
|
558
|
+
"type": [
|
|
559
|
+
"number",
|
|
560
|
+
"null"
|
|
561
|
+
],
|
|
562
|
+
"description": "Delay between silencing the SID and recording during pre/post checks (milliseconds).",
|
|
563
|
+
"minimum": 0,
|
|
564
|
+
"maximum": 5000,
|
|
565
|
+
"default": 150
|
|
566
|
+
},
|
|
567
|
+
"op": {
|
|
568
|
+
"const": "pipeline"
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
"additionalProperties": false,
|
|
572
|
+
"required": [
|
|
573
|
+
"op"
|
|
574
|
+
]
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"type": "object",
|
|
578
|
+
"description": "Automatically analyze SID playback when verification is requested.",
|
|
579
|
+
"properties": {
|
|
580
|
+
"request": {
|
|
581
|
+
"type": "string",
|
|
582
|
+
"description": "Natural language user request describing the verification goal.",
|
|
583
|
+
"minLength": 1
|
|
584
|
+
},
|
|
585
|
+
"durationSeconds": {
|
|
586
|
+
"type": [
|
|
587
|
+
"number",
|
|
588
|
+
"null"
|
|
589
|
+
],
|
|
590
|
+
"description": "Override capture duration in seconds.",
|
|
591
|
+
"minimum": 0.5,
|
|
592
|
+
"maximum": 30
|
|
593
|
+
},
|
|
594
|
+
"expectedSidwave": {
|
|
595
|
+
"description": "SIDWAVE composition represented as YAML/JSON text or an already parsed object.",
|
|
596
|
+
"type": [
|
|
597
|
+
"string",
|
|
598
|
+
"object",
|
|
599
|
+
"null"
|
|
600
|
+
]
|
|
601
|
+
},
|
|
602
|
+
"op": {
|
|
603
|
+
"const": "analyze"
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
"required": [
|
|
607
|
+
"request",
|
|
608
|
+
"op"
|
|
609
|
+
],
|
|
610
|
+
"additionalProperties": false
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"type": "object",
|
|
614
|
+
"description": "Record audio for a fixed duration and return SID analysis metrics.",
|
|
615
|
+
"properties": {
|
|
616
|
+
"durationSeconds": {
|
|
617
|
+
"type": "number",
|
|
618
|
+
"description": "Capture duration in seconds (0.5 - 30).",
|
|
619
|
+
"minimum": 0.5,
|
|
620
|
+
"maximum": 30
|
|
621
|
+
},
|
|
622
|
+
"expectedSidwave": {
|
|
623
|
+
"description": "SIDWAVE composition represented as YAML/JSON text or an already parsed object.",
|
|
624
|
+
"type": [
|
|
625
|
+
"string",
|
|
626
|
+
"object",
|
|
627
|
+
"null"
|
|
628
|
+
]
|
|
629
|
+
},
|
|
630
|
+
"op": {
|
|
631
|
+
"const": "record_analyze"
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"required": [
|
|
635
|
+
"durationSeconds",
|
|
636
|
+
"op"
|
|
637
|
+
],
|
|
638
|
+
"additionalProperties": false
|
|
639
|
+
}
|
|
640
|
+
],
|
|
641
|
+
"discriminator": {
|
|
642
|
+
"propertyName": "op"
|
|
643
|
+
}
|
|
644
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"description": "Streaming operations available via the c64_stream tool.",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Start an Ultimate streaming session toward a host:port target.",
|
|
8
|
+
"properties": {
|
|
9
|
+
"stream": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Stream type to control (video/audio/debug).",
|
|
12
|
+
"enum": [
|
|
13
|
+
"video",
|
|
14
|
+
"audio",
|
|
15
|
+
"debug"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"target": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Destination host:port or UDP target understood by the firmware.",
|
|
21
|
+
"minLength": 3
|
|
22
|
+
},
|
|
23
|
+
"op": {
|
|
24
|
+
"const": "start"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"stream",
|
|
29
|
+
"target",
|
|
30
|
+
"op"
|
|
31
|
+
],
|
|
32
|
+
"additionalProperties": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "object",
|
|
36
|
+
"description": "Stop an active Ultimate streaming session.",
|
|
37
|
+
"properties": {
|
|
38
|
+
"stream": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Stream type to control (video/audio/debug).",
|
|
41
|
+
"enum": [
|
|
42
|
+
"video",
|
|
43
|
+
"audio",
|
|
44
|
+
"debug"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"op": {
|
|
48
|
+
"const": "stop"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"stream",
|
|
53
|
+
"op"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"discriminator": {
|
|
59
|
+
"propertyName": "op"
|
|
60
|
+
}
|
|
61
|
+
}
|