sonicake-pocket-master-mcp 0.12.3 → 0.13.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.
@@ -28,7 +28,7 @@ var GLOBAL_SETTINGS = {
28
28
  // 0..100: the unit reports 100 at full brightness (SonicMaster's dialog stops at 10).
29
29
  backlight: { address: [3, 2], min: 0, max: 100 },
30
30
  eco: { address: [4, 2], ...FLAG },
31
- powerConfirm: { address: [5, 2], ...FLAG },
31
+ bootProtection: { address: [5, 2], ...FLAG },
32
32
  battOnly: { address: [6, 2], ...FLAG }
33
33
  };
34
34
 
package/dist/server.js CHANGED
@@ -4133,7 +4133,7 @@ var GLOBAL_SETTINGS = {
4133
4133
  // 0..100: the unit reports 100 at full brightness (SonicMaster's dialog stops at 10).
4134
4134
  backlight: { address: [3, 2], min: 0, max: 100 },
4135
4135
  eco: { address: [4, 2], ...FLAG },
4136
- powerConfirm: { address: [5, 2], ...FLAG },
4136
+ bootProtection: { address: [5, 2], ...FLAG },
4137
4137
  battOnly: { address: [6, 2], ...FLAG }
4138
4138
  };
4139
4139
  var SET_GLOBAL = 17;
@@ -4186,7 +4186,7 @@ function decodeGlobals(payload) {
4186
4186
  btRecLevel: level("btRecLevel"),
4187
4187
  backlight: byte("backlight"),
4188
4188
  mode: byte("mode"),
4189
- powerConfirm: byte("powerConfirm"),
4189
+ bootProtection: byte("bootProtection"),
4190
4190
  reamp: byte("reamp"),
4191
4191
  eco: byte("eco"),
4192
4192
  expFsType: byte("expFsType")
@@ -6251,7 +6251,7 @@ async function connectPocketMaster(onLog = () => void 0) {
6251
6251
  import { constants } from "node:fs";
6252
6252
 
6253
6253
  // src/globals.ts
6254
- var EDITABLE = ["masterVolume", "inputLevel", "fxRecLevel", "monitorLevel", "btRecLevel", "backlight", "powerConfirm"];
6254
+ var EDITABLE = ["masterVolume", "inputLevel", "fxRecLevel", "monitorLevel", "btRecLevel", "backlight", "bootProtection"];
6255
6255
  var LABEL = {
6256
6256
  masterVolume: "Master volume",
6257
6257
  inputLevel: "Input level",
@@ -6259,7 +6259,7 @@ var LABEL = {
6259
6259
  monitorLevel: "Monitor level",
6260
6260
  btRecLevel: "BT rec level",
6261
6261
  backlight: "Backlight",
6262
- powerConfirm: "Power-off confirm"
6262
+ bootProtection: "Boot anti-touch protection"
6263
6263
  };
6264
6264
  var db = (v) => `${v} dB`;
6265
6265
  var onOff = (v) => v ? "on" : "off";
@@ -6270,14 +6270,14 @@ function describeGlobals(g) {
6270
6270
  `Master volume ${g.masterVolume}`,
6271
6271
  levels.length > 0 ? `Levels: ${levels.join(", ")}` : null,
6272
6272
  shown("Backlight", g.backlight, String),
6273
- shown("Power-off confirm", g.powerConfirm, onOff)
6273
+ shown("Boot anti-touch protection", g.bootProtection, onOff)
6274
6274
  ].filter((l) => l !== null).join("\n");
6275
6275
  }
6276
6276
  function globalWrites(changes) {
6277
6277
  const keys = EDITABLE.filter((k) => changes[k] !== void 0);
6278
6278
  if (keys.length === 0) throw new Error("Nothing to change: give at least one setting.");
6279
6279
  const bytes = keys.map((k) => setGlobal(k, changes[k]));
6280
- const summary = keys.map((k) => `${LABEL[k]} ${k.endsWith("Level") ? db(changes[k]) : k === "powerConfirm" ? onOff(changes[k]) : changes[k]}`);
6280
+ const summary = keys.map((k) => `${LABEL[k]} ${k.endsWith("Level") ? db(changes[k]) : k === "bootProtection" ? onOff(changes[k]) : changes[k]}`);
6281
6281
  return { bytes, summary };
6282
6282
  }
6283
6283
 
@@ -6758,7 +6758,7 @@ import { z } from "zod";
6758
6758
  // package.json
6759
6759
  var package_default = {
6760
6760
  name: "sonicake-pocket-master-mcp",
6761
- version: "0.12.3",
6761
+ version: "0.13.0",
6762
6762
  description: "Unofficial MCP server for the Sonicake Pocket Master: let an AI assistant build tones from a record, edit and save presets over USB MIDI.",
6763
6763
  keywords: [
6764
6764
  "mcp",
@@ -6954,21 +6954,21 @@ function createServer(session2, options = {}) {
6954
6954
  }, (args) => reply("rename_slot", options, () => session2.renameSlot(args)));
6955
6955
  server.registerTool("get_global_settings", {
6956
6956
  title: "Get global settings",
6957
- description: "Device-wide settings that are not part of any preset: master volume, input/FX-rec/monitor/BT-rec levels, backlight, power-off confirm.",
6957
+ description: "Device-wide settings that are not part of any preset: master volume, input/FX-rec/monitor/BT-rec levels, backlight, boot anti-touch protection.",
6958
6958
  annotations: READ
6959
6959
  }, () => reply("get_global_settings", options, () => session2.getGlobals()));
6960
6960
  const level = z.number().int().min(-20).max(20);
6961
6961
  const flag = z.number().int().min(0).max(1);
6962
6962
  server.registerTool("set_global_settings", {
6963
6963
  title: "Change global settings",
6964
- description: "Changes device-wide settings (they affect every preset and are kept by the pedal at once). Levels are dB -20..20; backlight 0..100; powerConfirm 0 off / 1 on. Ask the user before changing these. Factory reset is not available here.",
6964
+ description: "Changes device-wide settings (they affect every preset and are kept by the pedal at once). Levels are dB -20..20; backlight 0..100; bootProtection 0 off / 1 on. Ask the user before changing these. Factory reset is not available here.",
6965
6965
  inputSchema: {
6966
6966
  masterVolume: z.number().int().min(0).max(100).optional(),
6967
6967
  inputLevel: level.optional(),
6968
6968
  fxRecLevel: level.optional(),
6969
6969
  monitorLevel: level.optional(),
6970
6970
  btRecLevel: level.optional(),
6971
- powerConfirm: flag.optional(),
6971
+ bootProtection: flag.optional(),
6972
6972
  backlight: z.number().int().min(0).max(100).optional()
6973
6973
  },
6974
6974
  annotations: { readOnlyHint: false, destructiveHint: false, openWorldHint: false }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonicake-pocket-master-mcp",
3
- "version": "0.12.3",
3
+ "version": "0.13.0",
4
4
  "description": "Unofficial MCP server for the Sonicake Pocket Master: let an AI assistant build tones from a record, edit and save presets over USB MIDI.",
5
5
  "keywords": [
6
6
  "mcp",