c64bridge 0.9.0 → 0.9.1

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 (49) hide show
  1. package/README.md +158 -164
  2. package/data/vice/vice-binary-monitor-spec.md +21 -4
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/c64Client.js +76 -2
  5. package/dist/device.js +43 -3
  6. package/dist/rag/indexer.js +18 -8
  7. package/dist/sidwaveCompiler.js +1 -1
  8. package/dist/{assemblyConverter.js → tools/assember.js} +10 -1
  9. package/dist/{basicConverter.js → tools/basicTokenizer.js} +1 -1
  10. package/dist/tools/debug.js +158 -5
  11. package/dist/tools/disassembler.js +478 -0
  12. package/dist/tools/input.js +338 -0
  13. package/dist/tools/memory.js +317 -1
  14. package/dist/tools/programRunners.js +45 -6
  15. package/dist/tools/registry/batch.js +167 -0
  16. package/dist/tools/registry/graphics.js +101 -1
  17. package/dist/tools/registry/index.js +4 -0
  18. package/dist/tools/registry/input.js +2 -0
  19. package/dist/tools/registry/memory.js +61 -1
  20. package/dist/tools/schema.js +4 -5
  21. package/dist/tools/symbolRegistry.js +49 -0
  22. package/dist/tools/types.js +19 -4
  23. package/dist/vice/process.js +43 -2
  24. package/dist/vice/viceClient.js +5 -1
  25. package/mcp/schemas/c64_batch.schema.json +53 -0
  26. package/mcp/schemas/c64_config.schema.json +461 -2
  27. package/mcp/schemas/c64_debug.schema.json +641 -3
  28. package/mcp/schemas/c64_disk.schema.json +340 -2
  29. package/mcp/schemas/c64_drive.schema.json +157 -2
  30. package/mcp/schemas/c64_extract.schema.json +359 -2
  31. package/mcp/schemas/c64_graphics.schema.json +415 -3
  32. package/mcp/schemas/c64_input.schema.json +136 -0
  33. package/mcp/schemas/c64_memory.schema.json +562 -3
  34. package/mcp/schemas/c64_printer.schema.json +253 -2
  35. package/mcp/schemas/c64_program.schema.json +499 -2
  36. package/mcp/schemas/c64_rag.schema.json +82 -2
  37. package/mcp/schemas/c64_select_backend.schema.json +35 -2
  38. package/mcp/schemas/c64_sound.schema.json +793 -2
  39. package/mcp/schemas/c64_stream.schema.json +73 -2
  40. package/mcp/schemas/c64_system.schema.json +301 -2
  41. package/mcp/schemas/c64_vice.schema.json +71 -2
  42. package/mcp/server.json +1 -1
  43. package/mcp/tools.json +6718 -1257
  44. package/mcp.json +1 -1
  45. package/package.json +1 -1
  46. package/scripts/run-coverage.mjs +7 -0
  47. package/scripts/run-tests.ts +2 -0
  48. package/scripts/update-readme.ts +79 -2
  49. package/server.json +2 -2
@@ -199,6 +199,363 @@
199
199
  "required": [
200
200
  "op"
201
201
  ],
202
- "description": "Extraction operations available via the c64_extract tool.\n\nOperations:\n- sprites: Scan RAM for sprites and optionally export .spr files.\n- charset: Locate and extract 2KB character sets from RAM.\n- memory_dump: Dump a RAM range to hex or binary files with manifest metadata.\n- fs_stats: Walk the filesystem and aggregate counts/bytes by extension.\n- firmware_health: Run firmware readiness checks and report status metrics.",
203
- "additionalProperties": false
202
+ "description": "Extraction operations available via the c64_extract tool.\n\nOperations:\n- sprites: Scan RAM for sprites and optionally export .spr files. Required inputs: address, length. Optional inputs: stride, maxSprites, minNonZeroRows, minSetBits, includeBase64, outputDir, pauseDuringRead.\n- charset: Locate and extract 2KB character sets from RAM. Required inputs: none. Optional inputs: address, scanRange, outputPath, pauseDuringRead, minNonEmptyChars, minEntropy.\n- memory_dump: Dump a RAM range to hex or binary files with manifest metadata. Required inputs: address, length, outputPath. Optional inputs: format, chunkSize, pauseDuringRead, retries.\n- fs_stats: Walk the filesystem and aggregate counts/bytes by extension. Required inputs: none. Optional inputs: root, extensions, includeContainers, maxSamplesPerExtension.\n- firmware_health: Run firmware readiness checks and report status metrics. Required inputs: none.",
203
+ "additionalProperties": false,
204
+ "x-c64bridge-operations": [
205
+ {
206
+ "op": "sprites",
207
+ "description": "Scan RAM for sprites and optionally export .spr files.",
208
+ "required": [
209
+ "address",
210
+ "length"
211
+ ],
212
+ "optional": [
213
+ "stride",
214
+ "maxSprites",
215
+ "minNonZeroRows",
216
+ "minSetBits",
217
+ "includeBase64",
218
+ "outputDir",
219
+ "pauseDuringRead"
220
+ ],
221
+ "inputSchema": {
222
+ "type": "object",
223
+ "description": "Scan RAM for sprites and optionally export .spr files.",
224
+ "properties": {
225
+ "address": {
226
+ "type": "string",
227
+ "description": "Start address ($HHHH or decimal)",
228
+ "minLength": 1
229
+ },
230
+ "length": {
231
+ "type": "integer",
232
+ "description": "Number of bytes to scan",
233
+ "minimum": 63,
234
+ "maximum": 65536
235
+ },
236
+ "stride": {
237
+ "type": [
238
+ "integer",
239
+ "null"
240
+ ],
241
+ "description": "Stride between sprite candidates in bytes",
242
+ "minimum": 1,
243
+ "default": 64
244
+ },
245
+ "maxSprites": {
246
+ "type": [
247
+ "integer",
248
+ "null"
249
+ ],
250
+ "description": "Maximum sprites to return",
251
+ "minimum": 1,
252
+ "maximum": 256,
253
+ "default": 16
254
+ },
255
+ "minNonZeroRows": {
256
+ "type": [
257
+ "integer",
258
+ "null"
259
+ ],
260
+ "description": "Minimum non-empty rows required",
261
+ "minimum": 1,
262
+ "maximum": 21,
263
+ "default": 4
264
+ },
265
+ "minSetBits": {
266
+ "type": [
267
+ "integer",
268
+ "null"
269
+ ],
270
+ "description": "Minimum number of set bits required",
271
+ "minimum": 1,
272
+ "maximum": 504,
273
+ "default": 12
274
+ },
275
+ "includeBase64": {
276
+ "type": [
277
+ "boolean",
278
+ "null"
279
+ ],
280
+ "description": "Include base64 data in response",
281
+ "default": true
282
+ },
283
+ "outputDir": {
284
+ "type": [
285
+ "string",
286
+ "null"
287
+ ],
288
+ "description": "Directory to write .spr files",
289
+ "minLength": 1
290
+ },
291
+ "pauseDuringRead": {
292
+ "type": [
293
+ "boolean",
294
+ "null"
295
+ ],
296
+ "description": "Pause the machine during memory read",
297
+ "default": true
298
+ },
299
+ "op": {
300
+ "const": "sprites"
301
+ }
302
+ },
303
+ "required": [
304
+ "address",
305
+ "length",
306
+ "op"
307
+ ],
308
+ "additionalProperties": false
309
+ }
310
+ },
311
+ {
312
+ "op": "charset",
313
+ "description": "Locate and extract 2KB character sets from RAM.",
314
+ "required": [],
315
+ "optional": [
316
+ "address",
317
+ "scanRange",
318
+ "outputPath",
319
+ "pauseDuringRead",
320
+ "minNonEmptyChars",
321
+ "minEntropy"
322
+ ],
323
+ "inputSchema": {
324
+ "type": "object",
325
+ "description": "Locate and extract 2KB character sets from RAM.",
326
+ "properties": {
327
+ "address": {
328
+ "type": [
329
+ "string",
330
+ "null"
331
+ ],
332
+ "description": "Start address to scan ($HHHH or decimal). If not provided, scans common locations.",
333
+ "minLength": 1
334
+ },
335
+ "scanRange": {
336
+ "type": [
337
+ "string",
338
+ "null"
339
+ ],
340
+ "description": "Range to scan if address not provided: 'common' or 'full'",
341
+ "enum": [
342
+ "common",
343
+ "full"
344
+ ],
345
+ "default": "common"
346
+ },
347
+ "outputPath": {
348
+ "type": [
349
+ "string",
350
+ "null"
351
+ ],
352
+ "description": "File path to write charset binary",
353
+ "minLength": 1
354
+ },
355
+ "pauseDuringRead": {
356
+ "type": [
357
+ "boolean",
358
+ "null"
359
+ ],
360
+ "description": "Pause the machine during memory read",
361
+ "default": true
362
+ },
363
+ "minNonEmptyChars": {
364
+ "type": [
365
+ "integer",
366
+ "null"
367
+ ],
368
+ "description": "Minimum non-empty characters required",
369
+ "minimum": 1,
370
+ "maximum": 256,
371
+ "default": 32
372
+ },
373
+ "minEntropy": {
374
+ "type": [
375
+ "number",
376
+ "null"
377
+ ],
378
+ "description": "Minimum average entropy threshold",
379
+ "minimum": 0,
380
+ "maximum": 1,
381
+ "default": 0.3
382
+ },
383
+ "op": {
384
+ "const": "charset"
385
+ }
386
+ },
387
+ "additionalProperties": false,
388
+ "required": [
389
+ "op"
390
+ ]
391
+ }
392
+ },
393
+ {
394
+ "op": "memory_dump",
395
+ "description": "Dump a RAM range to hex or binary files with manifest metadata.",
396
+ "required": [
397
+ "address",
398
+ "length",
399
+ "outputPath"
400
+ ],
401
+ "optional": [
402
+ "format",
403
+ "chunkSize",
404
+ "pauseDuringRead",
405
+ "retries"
406
+ ],
407
+ "inputSchema": {
408
+ "type": "object",
409
+ "description": "Dump a RAM range to hex or binary files with manifest metadata.",
410
+ "properties": {
411
+ "address": {
412
+ "type": "string",
413
+ "description": "Start address ($HHHH or decimal)",
414
+ "minLength": 1
415
+ },
416
+ "length": {
417
+ "type": "integer",
418
+ "description": "Number of bytes to dump",
419
+ "minimum": 1,
420
+ "maximum": 65536
421
+ },
422
+ "outputPath": {
423
+ "type": "string",
424
+ "description": "Destination file path",
425
+ "minLength": 1
426
+ },
427
+ "format": {
428
+ "type": [
429
+ "string",
430
+ "null"
431
+ ],
432
+ "description": "Output format: hex|binary",
433
+ "enum": [
434
+ "hex",
435
+ "binary"
436
+ ],
437
+ "default": "hex"
438
+ },
439
+ "chunkSize": {
440
+ "type": [
441
+ "integer",
442
+ "null"
443
+ ],
444
+ "description": "Chunk size for reads",
445
+ "minimum": 1,
446
+ "maximum": 4096,
447
+ "default": 512
448
+ },
449
+ "pauseDuringRead": {
450
+ "type": [
451
+ "boolean",
452
+ "null"
453
+ ],
454
+ "description": "Pause/resume around dump",
455
+ "default": true
456
+ },
457
+ "retries": {
458
+ "type": [
459
+ "integer",
460
+ "null"
461
+ ],
462
+ "description": "Retries per chunk on failure",
463
+ "minimum": 0,
464
+ "default": 1
465
+ },
466
+ "op": {
467
+ "const": "memory_dump"
468
+ }
469
+ },
470
+ "required": [
471
+ "address",
472
+ "length",
473
+ "outputPath",
474
+ "op"
475
+ ],
476
+ "additionalProperties": false
477
+ }
478
+ },
479
+ {
480
+ "op": "fs_stats",
481
+ "description": "Walk the filesystem and aggregate counts/bytes by extension.",
482
+ "required": [],
483
+ "optional": [
484
+ "root",
485
+ "extensions",
486
+ "includeContainers",
487
+ "maxSamplesPerExtension"
488
+ ],
489
+ "inputSchema": {
490
+ "type": "object",
491
+ "description": "Walk the filesystem and aggregate counts/bytes by extension.",
492
+ "properties": {
493
+ "root": {
494
+ "type": [
495
+ "string",
496
+ "null"
497
+ ],
498
+ "description": "Root path to scan",
499
+ "minLength": 1,
500
+ "default": "/"
501
+ },
502
+ "extensions": {
503
+ "type": [
504
+ "array",
505
+ "null"
506
+ ],
507
+ "items": {
508
+ "type": "string",
509
+ "description": "Limit to these extensions (without dot)",
510
+ "minLength": 1
511
+ }
512
+ },
513
+ "includeContainers": {
514
+ "type": [
515
+ "boolean",
516
+ "null"
517
+ ],
518
+ "description": "Include container images (d64/d81/etc.) in extension stats",
519
+ "default": true
520
+ },
521
+ "maxSamplesPerExtension": {
522
+ "type": [
523
+ "integer",
524
+ "null"
525
+ ],
526
+ "description": "Number of sample paths to keep per extension",
527
+ "minimum": 1,
528
+ "maximum": 10,
529
+ "default": 3
530
+ },
531
+ "op": {
532
+ "const": "fs_stats"
533
+ }
534
+ },
535
+ "additionalProperties": false,
536
+ "required": [
537
+ "op"
538
+ ]
539
+ }
540
+ },
541
+ {
542
+ "op": "firmware_health",
543
+ "description": "Run firmware readiness checks and report status metrics.",
544
+ "required": [],
545
+ "optional": [],
546
+ "inputSchema": {
547
+ "type": "object",
548
+ "description": "Run firmware readiness checks and report status metrics.",
549
+ "properties": {
550
+ "op": {
551
+ "const": "firmware_health"
552
+ }
553
+ },
554
+ "additionalProperties": false,
555
+ "required": [
556
+ "op"
557
+ ]
558
+ }
559
+ }
560
+ ]
204
561
  }