Skip to content

v1.10.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 21:00
· 30 commits to main since this release
v1.10.0
81869f5

Added

  • Sonicake Smart Box: presets as the official SonicLink .prst file, alongside the .json. The header's "Export .prst" (Smart Box only) re-reads the edit buffer and downloads it as P33-Flicker.prst; Import accepts a SonicLink .prst and loads it through the existing preset-file path (the same confirmation, diff and live-edit write as a .json), so nothing new is written to the unit. The codec is packages/core/src/smart-box-prst.ts (writeSmartBoxPrst, parseSmartBoxPrst, crc8). Layout of the 527-byte file (reverse engineered from three SonicLink exports): 0x00 "Smart Box" zero-padded to 16, 0x10 00 00 01 00, 0x14 CRC-8 (poly 0x07, init 0, no reflection, no xorout) over 0x15..end, 0x15 FF FF FF FF, 0x19 name (16 ASCII bytes, zero-padded), 0x29 the 474-byte edit-buffer body (our payload without its leading 12 41), 0x203 twelve trailing bytes (written as a constant; unconfirmed, they resemble the tail of the 0x4F response; ignored on import). Import checks the magic (a Pocket Master or Matribox file is refused as not a Smart Box .prst), the size and the CRC, each with an EN and PT message. Tests build synthetic files only. Verified offline against three real SonicLink exports: each decodes, and re-encoding reproduces the file byte for byte. Unit tests only so far; the manual hardware check (import into SonicLink / from SonicLink) is pending.
  • Sonicake Smart Box: the tone assistant (the AI tab, the desktop app's AI connection and the MCP tools). It is the Pocket Master's assistant over the Smart Box's own catalog: core's modelChoices, resolveModel, formatModels and formatModelsCompact take the pedal (the preset's pedal, the Pocket Master unless told), so the first message, list_models and a model change use only the models the Smart Box has, and a Pocket Master-only model (TWD-P 1x10, say) is refused before any frame is built; the first message names the pedal. In the web editor the AI tab is enabled on the Smart Box (it was disabled with the reason). Its edits go through the editor's one send path: every frame is checked against isSmartBoxWrite and the edit buffer is read back with the usual "did not take" banner; loads keep the Discard question and the load check, and save_preset only opens the Save dialog. The assistant has no footswitch tool, so SMART_BOX_MAX_BLOCKS_PER_FOOTSWITCH is never in play. No new frame type. MCP: new smart_box_get_preset, smart_box_list_presets, smart_box_list_models, smart_box_edit_preset (read back, an edit the unit did not take is named), smart_box_undo_edit, smart_box_select_preset, smart_box_revert_preset and smart_box_save_preset (slot label as confirm, slot backed up first), offered next to the unchanged Pocket Master tools (the 1.x contract is untouched); which_pedal names them. Tests: unit tests that a Smart Box tone only holds Smart Box models and only produces allowlisted frames (core and MCP), and an e2e on the simulated Smart Box (AI tab enabled, the applied result sends only allowed frames and reads back), all with scripted fakes and no key. docs/smart-box.md and the README line are updated.
  • Sonicake Smart Box: IR and capture slots (2.0 phase, test version; PT-BR notice "Smart Box: edições ao vivo, salvar, renomear, copiar, ordem da cadeia, volume, BPM, footswitches, ajustes, EXP/FS, afinador, Organizar, importar e carregar ou renomear slots de IR e captura liberados para teste; apagar slot, instalar do TONE3000, restaurar fábrica e o resto ainda bloqueados."). The upload path now has its own allowlist, isSmartBoxUpload (POCKET_PROFILES['smart-box'].writes.uploads), which takes only the four slot writes the Pocket Master editor already builds: user IR upload 11 21 (2122 bytes, 512 int24 samples), IR rename 11 22 (22 bytes, 1..10 characters), capture upload 11 25 (2770 bytes, a 512-tap upload .clo with a good CRC) and capture rename 11 26 (22 bytes, 1..15 characters), each in its own flash-write domain, every fixed header byte checked, slots 1..5 (bytes 0..4). PocketMasterLink.upload checks the blob before anything is queued, and the transmit path lets through only the chunk frames it built from that blob. The flow is the Pocket Master's: session 12 30, names read, chunks each acknowledged, the flash-write notice 12 1B 04/12 1B 03, names read back and the slot's new name checked. The Clones & IRs panel is enabled on the Smart Box (Load WAV, Load .nam, Rename); an occupied slot still needs the "Replace" confirmation (the unit cannot send an IR or capture back, so there is no slot backup: keep the file). Confirmed on the real Smart Box (2026-12-02, checklist I0-I9): IR upload (11 21, 112 packets, notice 12 1B 04), IR rename (11 22), capture upload (11 25, 146 packets, notice 12 1B 03) and capture rename (11 26) work, persist after a power cycle, the IR plays, and the slot name lists update (12 24 for captures). A stored capture is played only when the AMP block is in capture mode (edit-buffer on/off mask bit 9, module 9 = 0x0F00000N for capture N+1): switch it in the AMP block page on the unit; the unit sends the notice 12 49 module 9 and the editor follows it and shows the capture. The editor itself still refuses to send the capture-mode switch (11 49 module 9). The panel hints "To play a capture, switch the AMP block to capture mode on the Smart Box" (PT-BR "Para tocar uma captura, mude o bloco AMP para o modo captura na Smart Box"). The exported log held no 11 23, 11 27, 11 3F or firmware frames. Never sent and refused on both the frame and the upload paths, with negative tests: IR clear 11 23, capture clear 11 27 (Delete is disabled with the reason), factory reset 11 3F. The Pocket Master's profile and upload path are unchanged.
  • Sonicake Smart Box: TONE3000 installs. The TONE3000 panel's Install is enabled on the Smart Box and runs the Pocket Master's flow (search, pick a model, pick the slot and name, the "Replace" confirmation over an occupied slot, a capture's .nam converted in the browser). Nothing new is written: the download goes out as the same 11 21 (IR) or 11 25 (capture) upload blob through isSmartBoxUpload, with the 12 30 session and the names read back. As on the Pocket Master, nothing is selected afterwards; pick the IR on the IR block or the capture in the AMP model list. The notice now reads "...carregar ou renomear slots de IR e captura e instalar do TONE3000 liberados para teste; apagar slot, restaurar fábrica e o resto ainda bloqueados." (EN "...loading or renaming IR and capture slots and TONE3000 installs enabled for testing; deleting a slot, factory reset and the rest still blocked."). Covered by e2e on the simulated Smart Box (mocked TONE3000 API, reference signal and conversion workers): an IR into an occupied slot after the confirmation, a capture into an empty one, only chunk frames and the session sent. Confirmed on the real Smart Box (2026-12-02, checklist G1-G4): the TONE3000 install works for IR and capture slots.

Fixed

  • Sonicake Smart Box: parameters named by the assistant (edit_preset, the MCP smart_box_edit_preset/edit_preset) follow the Sync switches. Seen on the unit (2026-12-02, P32, FX2 Bias Trem with Sync on, prompt "timbre do Van Halen"): the model sent Rate 2, which core's resolveParam checked against the catalog's 0.1..10 Hz instead of the eleven tempo divisions, so it was written as division index 2 (1/4 became 1/2D) while a name like "1/2D" was refused ("Rate needs a number"). resolveParam now takes the specs from specsFor with the block's current values, as the editor's knobs (paramSpecFor) already did: a synced Rate, Time or S-Rate takes a division name or index and every other parameter (Depth, Vol, Bias, Mix, F.Back, S-Depth...) keeps its range. The batch's next call failed with No parameter "Depth". Parameters: Rate, Sync: it held a model change to Phaser (the Smart Box Phaser has only Rate and Sync) followed by Depth, checked against the Phaser; the error did not say which block and model it was checked against, so it read as Bias Trem missing Depth. It now reads FX2 Phaser has no parameter "Depth". Parameters: Rate, Sync. The Smart Box line of the assistant's first message says that with Sync on the controlled Rate or Time takes a tempo division (the names listed) and every other parameter keeps its range. A Smart Box preset read as a tone (TONE3000/convert paths) now drops a synced Rate or Time, as the Matribox adapter does, instead of reading the division index as Hz or ms. Tests: Bias Trem with Sync on (Depth, Vol, Bias by name, Rate "1/2D" = 2), Pure delay with Sync on (Mix, F.Back, Time "1/8" = 7, 500 refused), Sweep with S-Sync and D-Sync (S-Rate and Time take divisions, S-Depth and F.Back keep their ranges), the model-change error text, and the tone export.
  • Sonicake Smart Box (and Pocket Master): a read no longer overlaps the last edit's acknowledge. Seen on the unit (2026-12-02): the assistant applied a tone as a batch of writes, and the read-back 12 43 went out 1 ms after the last write (11 48 RVB Decay 30), before its acknowledge; the unit dropped that write (Decay stayed 50) and the editor reported "the unit did not take RVB Decay". Every read waited only for drained(), which resolves when the last queued edit is transmitted, not when it is acknowledged; the read-back timer runs from when the edits were queued, so it fired right as the batch ended. PocketMasterLink.request now waits, before sending, until queued edits are written and every sent edit is acknowledged (at most 300 ms for a missing acknowledge, the same wait a preset operation already used), so every caller is covered: the editor's read and Smart Box check, the globals check, the MCP tools. A request with no edit in flight still goes out at once. Matribox uses its own link and is not affected. Tests: a three-write batch then a read, the read goes out only after the last write's acknowledge; a never-acknowledged edit delays a read by at most 300 ms.
  • Tone assistant: a malformed tool call no longer ends the message. Groq answers 400 tool_use_failed ("Failed to parse tool call arguments as JSON") when gpt-oss writes a tool call as broken JSON; only the free Groq setup asked again, once, and Groq with a paid key (or any other OpenAI-style provider, e.g. OpenRouter routing to Groq) showed "Groq answered 400" right away. Every OpenAI-style provider now sends the request again, at most twice in a row, with a note telling the model its last tool call was not valid JSON. Nothing ran on the failed request, so no edit is applied twice. Tests: two failures then an answer, three failures surface the error, an edit before the failure is sent once, the paid Groq path retries.
  • Sonicake Smart Box: a write the pedal's allowlist refuses now names the change that needed it ("... Nothing was sent to the pedal. Refused: FX2 Sync.", PT "Recusado: FX2 Sync."; core refusedEdit), and the assistant's edit_preset says that when it fails none of the changes was sent and the model should drop or fix the named one and send the rest. Before, the model got only the generic refusal, sent the same list again and the message stopped with "edit_preset failed twice". Edits stay all-or-nothing per call, so the "What changed" list (a before/after of the editor's preset) only holds changes that were sent.
  • Sonicake Smart Box: block toggles made with the footswitches now reach the editor. In stomp mode the unit announces a footswitch press with 12 4E and a u32 LE block on/off mask (bit n = module n, the layout of the edit-buffer dump's 0x3001 record): on the owner's unit FS1 flipped bit 1 (FX1, BF 01 00 00 to BD 01 00 00) and FS2 flipped bits 6, 7 and 8 together (FX2, DLY, RVB, BD 01 to 7D 00). decodeNotification returned null for it, so the tiles never changed. It now schedules one edit-buffer re-read (12 41) after the usual 250 ms settle, a burst being one read, as for 12 44. The mask is not applied directly yet; the read is the source of truth. The Pocket Master was never seen sending 12 4E; the shared code path makes the read equally safe there.
  • SysEx log "Copy" button (and the problem report's and the /about page's Copy buttons) did nothing in the desktop app: Electron's permission handler granted only MIDI, so navigator.clipboard.writeText was refused (clipboard-sanitized-write) and the error only went to the console. The desktop app now grants clipboard-sanitized-write to its own app://editor page, and the three buttons share copyText (apps/web/lib/clipboard.ts), which falls back to a selected off-screen textarea and execCommand('copy') when the Clipboard API is missing (the editor opened by a LAN address, not a secure origin) or refused. "Copied" is shown only when the text was really copied.
  • Sonicake Smart Box: a delay's Time (and a modulation's Rate, Sweep's S-Rate) after its Sync switch. The unit stores Time as a tempo-division index while Sync is on (500 ms became 4.0 = 1/4 on the owner's unit) and back in ms when it is off, but the editor kept showing the old ms: the read-back after an edit was only put on screen when an edit had not taken, and Time stayed a ms knob. Now the read-back always replaces the screen, a synced Time or Rate is a list of the unit's eleven divisions (1/1, 1/2, 1/2D, 1/2T, 1/4, 1/4D, 1/4T, 1/8, 1/8D, 1/8T, 1/16, the firmware V1.0.6 table) written as its index, turning Sync on shows 1/4 at once, and a Time edit just before a Sync switch is no longer reported as not taken. Confirmed on the real Smart Box (2026-12-02, checklist F1): the note-division Time/Rate display.
  • Sonicake Smart Box: the editor follows a chain reorder made on the unit. A 12 44 notice (and 12 1B 01, or any 12 1B kind that is not the flash-write notices 02/03/04) now schedules one edit-buffer re-read (12 41) after the usual 250 ms settle, a burst being one read; 12 48/12 49 stay zero-read. The 12 44 payload is decoded as the 11 44 layout and logged to the debug console (the raw frame is already in the SysEx log); the layout is still to be confirmed on the unit. Hardware-confirmed on the Smart Box (2026-12-02, owner's checklist E1-E3). The code path is shared with the Pocket Master, where the extra re-read on these notices is equally safe (read-only 12 41, debounced).
  • Sonicake Smart Box: the AMP block in capture mode. The AMP picker showed the raw value clone:7000000 because the Smart Box listed no captures (the capture catalog code of slot 1 is 0x07000000, the unit reports 0x0F000000; the picker value matched no option) and the block header kept the normal amp icon. The picker now lists the occupied capture slots by name, shows and highlights the current one ("boogiee"), and the header draws the capture icon, as on the Pocket Master. The capture-mode switch 11 49 module 9 (0/1) and the capture model 11 47 module 9 are now on the Smart Box allowlist (owner's approval; the unit's notice 12 49 module 9 = 1 confirmed the mode is reachable): picking a capture sends the mode switch, then the capture code, with the usual read-back; picking a normal amp switches back to normal mode. The knobs of a capture (11 48 module 9, alg 0..7) are allowed too, as on the Pocket Master. Two fixes from the first test on the unit: the read-back no longer reports "the unit did not take AMP model" after picking a capture (the unit reports capture 1 as 0x0F000000, the editor sends the catalog's 0x07000000; a capture is now compared by its low 24 bits), and the AMP drawing no longer changes after the read-back (the header and the chain tile use the same drawing, picked by the capture slot instead of the raw code). The AMP in capture mode is drawn with a dedicated capture drawing on both pedals (fixed blue body, a ghost copy behind and a red record dot) so it no longer reads as a normal amp; the same drawing is used by the tile and the header. The Clones & IRs hint now says to pick the capture in the AMP model list (PT-BR "Para tocar uma captura, escolha-a na lista de modelos do bloco AMP").

Changed

  • Editor, all Sonicake pedals: a parameter shown as a drop-down menu now shows only the menu. The Smart Box and Pocket Master block editor repeated the value in a badge above it (a synced delay Time, a modulation Rate or Sweep's S-Rate read "1/4" twice); the badge is replaced by an empty row so the menu stays level with the knobs and the name stays below, as on the Matribox, which already did this. The e2e asserts a synced Time has no value label. Confirmed on the real Smart Box (2026-12-02, checklist F1).
  • Sonicake Smart Box: every Sync and Trail switch the overlay lists is now editable, enabled for testing and to be confirmed on the unit (owner's approval). Until now only the reverbs' Trail and Sweep's switches were written and the rest (modulation Sync, delay Sync/Trail, Analog included) were disabled as "unconfirmed". The switch is sent as 11 48 with the overlay's alg and read back like a knob, so one the unit does not take shows the usual "did not take" notice. isUnconfirmedParam, confirmedSwitches and the smartBox.unconfirmed message are removed. Tests: every listed switch passes the allowlist, an alg past the listed ones is refused, and the e2e toggles a delay Sync and Trail (frame and read-back) and shows the not-taken notice when the unit ignores it. Confirmed on the real Smart Box (2026-12-02, checklist F1).
  • MCP server npm package now published as sonicake-opensonicx-mcp (it serves the Pocket Master, Matribox II Pro and Smart Box); its bins are sonicake-opensonicx-mcp and the old sonicake-pocket-master-mcp. The old package name stays published as a thin compatibility package (apps/mcp-legacy, same version, exact dependency on the main package, a bin that runs the main entry) so existing configs keep working; nothing is deprecated. The release workflow checks its version and publishes the main package first, then the compat one; the pack smoke test packs both. READMEs and /about use the new name; tool names are unchanged.
  • MCP server name is now opensonicx (was pocket-master) and log lines are prefixed [opensonicx-mcp]. Clients that keyed tool names on the old name (for example mcp__pocket-master__get_preset) will see new prefixes (mcp__opensonicx__get_preset); re-add the server with claude mcp add opensonicx -- npx -y sonicake-opensonicx-mcp. The old package name sonicake-pocket-master-mcp still works.
  • Dev dependencies (Dependabot group, #317): @biomejs/biome 2.6.8 to 2.6.9, @types/node 26.6.6 to 26.6.11, electron 45.4.1 to 45.5.0, @axe-core/playwright 4.14.0 to 4.14.1 and @types/react 19.3.0 to 19.3.3.