c64bridge 0.9.0 → 0.9.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.
- package/README.md +161 -135
- package/data/assembly/assembly-spec.md +1 -1
- package/data/context/bootstrap.md +3 -3
- package/data/context/fast-paths.md +3 -1
- package/data/graphics/petscii-style-guide.md +1 -1
- package/data/graphics/sprite-charset-best-practices.md +14 -13
- package/data/sound/sid-file-structure.md +5 -5
- package/data/sound/sid-programming-best-practices.md +5 -5
- package/data/vice/vice-binary-monitor-spec.md +26 -10
- package/dist/.tsbuildinfo +1 -1
- package/dist/c64Client.js +107 -8
- package/dist/device.js +43 -3
- package/dist/rag/indexer.js +18 -8
- package/dist/sidwaveCompiler.js +1 -1
- package/dist/tools/debug.js +158 -5
- package/dist/tools/input.js +336 -0
- package/dist/tools/memory.js +326 -1
- package/dist/tools/programRunners.js +45 -6
- package/dist/tools/registry/batch.js +167 -0
- package/dist/tools/registry/graphics.js +101 -1
- package/dist/tools/registry/index.js +4 -0
- package/dist/tools/registry/input.js +2 -0
- package/dist/tools/registry/memory.js +61 -1
- package/dist/tools/responses.js +14 -1
- package/dist/tools/schema.js +4 -5
- package/dist/{assemblyConverter.js → tools/translation/assembler.js} +66 -163
- package/dist/{basicConverter.js → tools/translation/basicTokenizer.js} +1 -1
- package/dist/tools/translation/disassembler.js +150 -0
- package/dist/tools/translation/opcodeInventory.js +126 -0
- package/dist/tools/translation/symbolRegistry.js +49 -0
- package/dist/tools/types.js +19 -4
- package/dist/vice/process.js +43 -2
- package/dist/vice/viceClient.js +5 -1
- package/doc/reviews/audit.md +143 -0
- package/mcp/schemas/c64_batch.schema.json +53 -0
- package/mcp/schemas/c64_config.schema.json +461 -2
- package/mcp/schemas/c64_debug.schema.json +641 -3
- package/mcp/schemas/c64_disk.schema.json +340 -2
- package/mcp/schemas/c64_drive.schema.json +157 -2
- package/mcp/schemas/c64_extract.schema.json +359 -2
- package/mcp/schemas/c64_graphics.schema.json +415 -3
- package/mcp/schemas/c64_input.schema.json +254 -0
- package/mcp/schemas/c64_memory.schema.json +562 -3
- package/mcp/schemas/c64_printer.schema.json +253 -2
- package/mcp/schemas/c64_program.schema.json +499 -2
- package/mcp/schemas/c64_rag.schema.json +82 -2
- package/mcp/schemas/c64_select_backend.schema.json +35 -2
- package/mcp/schemas/c64_sound.schema.json +793 -2
- package/mcp/schemas/c64_stream.schema.json +73 -2
- package/mcp/schemas/c64_system.schema.json +301 -2
- package/mcp/schemas/c64_vice.schema.json +71 -2
- package/mcp/server.json +1 -1
- package/mcp/tools.json +7509 -1929
- package/mcp.json +1 -1
- package/package.json +2 -2
- package/scripts/c64-cli.mjs +2 -2
- package/scripts/run-coverage.mjs +61 -3
- package/scripts/run-tests.mjs +1 -0
- package/scripts/run-tests.ts +3 -0
- package/scripts/update-readme.ts +79 -2
- package/server.json +2 -2
|
@@ -159,6 +159,257 @@
|
|
|
159
159
|
"required": [
|
|
160
160
|
"op"
|
|
161
161
|
],
|
|
162
|
-
"description": "Printer operations available via the c64_printer tool.\n\nOperations:\n- print_text: Generate BASIC that prints text to device 4.\n- print_bitmap: Print a bitmap row via Commodore (BIM) or Epson ESC/P workflows.\n- define_chars: Define custom printer characters (Commodore DLL mode).",
|
|
163
|
-
"additionalProperties": false
|
|
162
|
+
"description": "Printer operations available via the c64_printer tool.\n\nOperations:\n- print_text: Generate BASIC that prints text to device 4. Required inputs: text. Optional inputs: target, secondaryAddress, formFeed.\n- print_bitmap: Print a bitmap row via Commodore (BIM) or Epson ESC/P workflows. Required inputs: printer, columns. Optional inputs: repeats, useSubRepeat, secondaryAddress, ensureMsb, mode, density, timesPerLine.\n- define_chars: Define custom printer characters (Commodore DLL mode). Required inputs: firstChar, chars. Optional inputs: secondaryAddress.",
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"x-c64bridge-operations": [
|
|
165
|
+
{
|
|
166
|
+
"op": "print_text",
|
|
167
|
+
"description": "Generate BASIC that prints text to device 4.",
|
|
168
|
+
"required": [
|
|
169
|
+
"text"
|
|
170
|
+
],
|
|
171
|
+
"optional": [
|
|
172
|
+
"target",
|
|
173
|
+
"secondaryAddress",
|
|
174
|
+
"formFeed"
|
|
175
|
+
],
|
|
176
|
+
"inputSchema": {
|
|
177
|
+
"type": "object",
|
|
178
|
+
"description": "Generate BASIC that prints text to device 4.",
|
|
179
|
+
"properties": {
|
|
180
|
+
"text": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"description": "Text to print on the connected printer.",
|
|
183
|
+
"minLength": 1
|
|
184
|
+
},
|
|
185
|
+
"target": {
|
|
186
|
+
"description": "Printer target: Commodore MPS (PETSCII) or Epson FX (ESC/P).",
|
|
187
|
+
"type": "string",
|
|
188
|
+
"enum": [
|
|
189
|
+
"commodore",
|
|
190
|
+
"epson"
|
|
191
|
+
],
|
|
192
|
+
"default": "commodore"
|
|
193
|
+
},
|
|
194
|
+
"secondaryAddress": {
|
|
195
|
+
"description": "Secondary address for device 4 (0 = upper/graphics, 7 = lowercase).",
|
|
196
|
+
"type": [
|
|
197
|
+
"integer",
|
|
198
|
+
"null"
|
|
199
|
+
],
|
|
200
|
+
"enum": [
|
|
201
|
+
0,
|
|
202
|
+
7
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"formFeed": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"description": "Emit a form-feed (CHR$(12)) at the end of the job.",
|
|
208
|
+
"default": false
|
|
209
|
+
},
|
|
210
|
+
"op": {
|
|
211
|
+
"const": "print_text"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"required": [
|
|
215
|
+
"text",
|
|
216
|
+
"op"
|
|
217
|
+
],
|
|
218
|
+
"additionalProperties": false
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"op": "print_bitmap",
|
|
223
|
+
"description": "Print a bitmap row via Commodore (BIM) or Epson ESC/P workflows.",
|
|
224
|
+
"required": [
|
|
225
|
+
"printer",
|
|
226
|
+
"columns"
|
|
227
|
+
],
|
|
228
|
+
"optional": [
|
|
229
|
+
"repeats",
|
|
230
|
+
"useSubRepeat",
|
|
231
|
+
"secondaryAddress",
|
|
232
|
+
"ensureMsb",
|
|
233
|
+
"mode",
|
|
234
|
+
"density",
|
|
235
|
+
"timesPerLine"
|
|
236
|
+
],
|
|
237
|
+
"inputSchema": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"description": "Print a bitmap row via Commodore (BIM) or Epson ESC/P workflows.",
|
|
240
|
+
"properties": {
|
|
241
|
+
"printer": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"description": "Target printer family.",
|
|
244
|
+
"enum": [
|
|
245
|
+
"commodore",
|
|
246
|
+
"epson"
|
|
247
|
+
],
|
|
248
|
+
"default": "commodore"
|
|
249
|
+
},
|
|
250
|
+
"columns": {
|
|
251
|
+
"type": "array",
|
|
252
|
+
"description": "Sequence of bitmap columns.",
|
|
253
|
+
"items": {
|
|
254
|
+
"type": "integer",
|
|
255
|
+
"description": "Bitmap column byte (0-255).",
|
|
256
|
+
"minimum": 0,
|
|
257
|
+
"maximum": 255
|
|
258
|
+
},
|
|
259
|
+
"minItems": 1
|
|
260
|
+
},
|
|
261
|
+
"repeats": {
|
|
262
|
+
"type": [
|
|
263
|
+
"integer",
|
|
264
|
+
"null"
|
|
265
|
+
],
|
|
266
|
+
"description": "Number of times to repeat the row (1-255).",
|
|
267
|
+
"minimum": 1,
|
|
268
|
+
"maximum": 255
|
|
269
|
+
},
|
|
270
|
+
"useSubRepeat": {
|
|
271
|
+
"type": [
|
|
272
|
+
"integer",
|
|
273
|
+
"null"
|
|
274
|
+
],
|
|
275
|
+
"description": "Repeat the next byte this many times (Commodore BIM SUB).",
|
|
276
|
+
"minimum": 1,
|
|
277
|
+
"maximum": 255
|
|
278
|
+
},
|
|
279
|
+
"secondaryAddress": {
|
|
280
|
+
"type": [
|
|
281
|
+
"integer",
|
|
282
|
+
"null"
|
|
283
|
+
],
|
|
284
|
+
"description": "Secondary address for device 4 (0 or 7).",
|
|
285
|
+
"minimum": 0,
|
|
286
|
+
"maximum": 7
|
|
287
|
+
},
|
|
288
|
+
"ensureMsb": {
|
|
289
|
+
"type": "boolean",
|
|
290
|
+
"description": "Ensure MSB set for Commodore printers.",
|
|
291
|
+
"default": true
|
|
292
|
+
},
|
|
293
|
+
"mode": {
|
|
294
|
+
"type": [
|
|
295
|
+
"string",
|
|
296
|
+
"null"
|
|
297
|
+
],
|
|
298
|
+
"description": "Epson ESC/P graphics mode (K/L/Y/Z/*).",
|
|
299
|
+
"minLength": 1,
|
|
300
|
+
"maxLength": 1
|
|
301
|
+
},
|
|
302
|
+
"density": {
|
|
303
|
+
"type": [
|
|
304
|
+
"integer",
|
|
305
|
+
"null"
|
|
306
|
+
],
|
|
307
|
+
"description": "Density parameter when using Epson mode '*'.",
|
|
308
|
+
"minimum": 0,
|
|
309
|
+
"maximum": 3
|
|
310
|
+
},
|
|
311
|
+
"timesPerLine": {
|
|
312
|
+
"type": [
|
|
313
|
+
"integer",
|
|
314
|
+
"null"
|
|
315
|
+
],
|
|
316
|
+
"description": "Number of times to print the row per line (1-10).",
|
|
317
|
+
"minimum": 1,
|
|
318
|
+
"maximum": 10
|
|
319
|
+
},
|
|
320
|
+
"op": {
|
|
321
|
+
"const": "print_bitmap"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"required": [
|
|
325
|
+
"printer",
|
|
326
|
+
"columns",
|
|
327
|
+
"op"
|
|
328
|
+
],
|
|
329
|
+
"additionalProperties": false
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"op": "define_chars",
|
|
334
|
+
"description": "Define custom printer characters (Commodore DLL mode).",
|
|
335
|
+
"required": [
|
|
336
|
+
"firstChar",
|
|
337
|
+
"chars"
|
|
338
|
+
],
|
|
339
|
+
"optional": [
|
|
340
|
+
"secondaryAddress"
|
|
341
|
+
],
|
|
342
|
+
"inputSchema": {
|
|
343
|
+
"type": "object",
|
|
344
|
+
"description": "Define custom printer characters (Commodore DLL mode).",
|
|
345
|
+
"properties": {
|
|
346
|
+
"firstChar": {
|
|
347
|
+
"type": "integer",
|
|
348
|
+
"description": "PETSCII code of first character to redefine (33-126).",
|
|
349
|
+
"minimum": 33,
|
|
350
|
+
"maximum": 126
|
|
351
|
+
},
|
|
352
|
+
"chars": {
|
|
353
|
+
"type": "array",
|
|
354
|
+
"description": "Character definitions to upload (1-32).",
|
|
355
|
+
"items": {
|
|
356
|
+
"type": "object",
|
|
357
|
+
"description": "Commodore MPS DLL character definition (11 columns).",
|
|
358
|
+
"properties": {
|
|
359
|
+
"a": {
|
|
360
|
+
"description": "Attribute flag (0=normal, 1=graphics).",
|
|
361
|
+
"type": [
|
|
362
|
+
"integer",
|
|
363
|
+
"null"
|
|
364
|
+
],
|
|
365
|
+
"enum": [
|
|
366
|
+
0,
|
|
367
|
+
1
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
"columns": {
|
|
371
|
+
"type": "array",
|
|
372
|
+
"description": "11 column bytes describing the character.",
|
|
373
|
+
"items": {
|
|
374
|
+
"type": "integer",
|
|
375
|
+
"description": "Column byte (0-255).",
|
|
376
|
+
"minimum": 0,
|
|
377
|
+
"maximum": 255
|
|
378
|
+
},
|
|
379
|
+
"minItems": 11,
|
|
380
|
+
"maxItems": 11
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"required": [
|
|
384
|
+
"columns"
|
|
385
|
+
],
|
|
386
|
+
"additionalProperties": false
|
|
387
|
+
},
|
|
388
|
+
"minItems": 1,
|
|
389
|
+
"maxItems": 32
|
|
390
|
+
},
|
|
391
|
+
"secondaryAddress": {
|
|
392
|
+
"description": "Secondary address for device 4 (0 = upper/graphics, 7 = lowercase).",
|
|
393
|
+
"type": [
|
|
394
|
+
"integer",
|
|
395
|
+
"null"
|
|
396
|
+
],
|
|
397
|
+
"enum": [
|
|
398
|
+
0,
|
|
399
|
+
7
|
|
400
|
+
]
|
|
401
|
+
},
|
|
402
|
+
"op": {
|
|
403
|
+
"const": "define_chars"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"required": [
|
|
407
|
+
"firstChar",
|
|
408
|
+
"chars",
|
|
409
|
+
"op"
|
|
410
|
+
],
|
|
411
|
+
"additionalProperties": false
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
]
|
|
164
415
|
}
|