@taptap/maker 0.0.29-beta.1 → 0.0.29

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 CHANGED
@@ -32,4 +32,4 @@ or OpenClaw plugin package contents.
32
32
 
33
33
  Full connection and tool-call troubleshooting guide: `docs/MAKER_MCP_CONNECTION_TROUBLESHOOTING.md`.
34
34
 
35
- Version: 0.0.29-beta.1
35
+ Version: 0.0.29
package/dist/maker.js CHANGED
@@ -29365,7 +29365,8 @@ function createMakerAgentsPolicyBody() {
29365
29365
  "- `text_to_sound_effect` for one sound effect.",
29366
29366
  "- `batch_sound_effects` for multiple sound effects.",
29367
29367
  "- `text_to_dialogue` for final character dialogue.",
29368
- "- `text_to_dialogue` automatically converts local project audio to data URLs and reuses confirmed local voice mappings.",
29368
+ "- `text_to_dialogue` reuses confirmed local ElevenLabs voice mappings. After confirmation, pass only `character_name` and `text`.",
29369
+ "- For ElevenLabs auditions, pass a detailed `character_description` and an `audition_line` of at least 100 characters. `candidate_count` is optional and accepts 1 to 3.",
29369
29370
  "- After `audition_voices_for_character` returns previews, show them to the user and wait",
29370
29371
  " for the user to choose. Do not select or confirm a voice automatically.",
29371
29372
  "- Call `confirm_character_voice` only after the user explicitly chooses one preview.",
@@ -32371,7 +32372,8 @@ function formatMakerSkillStatus(_options = {}) {
32371
32372
  "- Use text_to_sound_effect for one sound effect.",
32372
32373
  "- Use batch_sound_effects for multiple sound effects.",
32373
32374
  "- Use text_to_dialogue for final character dialogue.",
32374
- "- text_to_dialogue automatically converts local project audio to data URLs and reuses confirmed local voice mappings.",
32375
+ "- text_to_dialogue reuses confirmed local ElevenLabs voice mappings; after confirmation pass only character_name and text.",
32376
+ "- For ElevenLabs auditions, pass character_description and an audition_line of at least 100 characters; candidate_count is optional (1-3).",
32375
32377
  "- After audition_voices_for_character returns previews, wait for the user to choose.",
32376
32378
  "- Call confirm_character_voice only after the user explicitly chooses a preview.",
32377
32379
  "- Generated sound effects and dialogue are saved in the project.",
@@ -34062,7 +34064,7 @@ var AUDIO_REFERENCE_MAX_BYTES = 15 * 1024 * 1024;
34062
34064
  var AUDIO_DIALOGUE_REFERENCE_MAX_BYTES = 20 * 1024 * 1024;
34063
34065
  var AUDIO_DIALOGUE_INPUT_TOTAL_MAX_BYTES = 28 * 1024 * 1024;
34064
34066
  var AUDIO_CONFIRM_MAX_BYTES = 1 * 1024 * 1024;
34065
- var VOICE_CONFIRMATION_NEXT_STEP_HINT = "Call text_to_dialogue with character_name and text. The confirmed voice mapping is reused automatically; omit reference_audio unless the user requests a one-time override.";
34067
+ var VOICE_CONFIRMATION_NEXT_STEP_HINT = "Call text_to_dialogue with character_name and text. The confirmed voice mapping is reused automatically.";
34066
34068
  var DEBUG_FEEDBACK_PATH_HINT = "Use local_dir/local_log_paths/local_screenshot_paths when they are returned. If only local_candidate_* is present, it is a possible project-relative location and must not be treated as a downloaded local file.";
34067
34069
  var CREATE_3D_ASSET_PROXY_TOOL_NAME = "create_3d_asset";
34068
34070
  var DATA_URL_MIME_BY_EXTENSION = {
@@ -34132,6 +34134,7 @@ function prepareRemoteProxyToolArgs(options) {
34132
34134
  }
34133
34135
  function validateVoiceAuditionArgs(args) {
34134
34136
  const voiceProfile = args.voice_profile;
34137
+ if (voiceProfile === void 0) return args;
34135
34138
  const gender = isRecord2(voiceProfile) ? voiceProfile.gender : void 0;
34136
34139
  if (gender !== "male" && gender !== "female") {
34137
34140
  throw new Error(
@@ -35504,9 +35507,6 @@ function rewriteTextToDialogueArgs(targetDir, args) {
35504
35507
  }
35505
35508
  const registry2 = readGeneratedAssetRegistry(targetDir);
35506
35509
  const localElevenLabsMapping = readLocalElevenLabsVoiceMapping(targetDir);
35507
- const localDoubaoMapping = args.inputs.some(
35508
- (value) => isRecord2(value) && normalizeOptionalDialogueReference(value.reference_audio) === void 0 && normalizeOptionalDialogueReference(value.reference_audio_path) === void 0
35509
- ) ? readLocalDoubaoVoiceMapping(targetDir) : void 0;
35510
35510
  let referenceAudioInputBytes = 0;
35511
35511
  return {
35512
35512
  ...args,
@@ -35532,15 +35532,6 @@ function rewriteTextToDialogueArgs(targetDir, args) {
35532
35532
  if (localVoiceId) {
35533
35533
  normalizedValue._local_voice_id = localVoiceId;
35534
35534
  }
35535
- if (canonicalReference === void 0 && legacyReference === void 0) {
35536
- canonicalReference = resolveLocalDoubaoMappingReference({
35537
- targetDir,
35538
- characterName: value.character_name,
35539
- mapping: localDoubaoMapping,
35540
- registry: registry2,
35541
- index
35542
- });
35543
- }
35544
35535
  if (canonicalReference === void 0) canonicalReference = legacyReference;
35545
35536
  if (canonicalReference === void 0) return normalizedValue;
35546
35537
  const referenceAudio = normalizeDialogueReference(
@@ -35565,13 +35556,6 @@ function rewriteTextToDialogueArgs(targetDir, args) {
35565
35556
  async function prepareRemoteProxyToolArgsAsync(options) {
35566
35557
  return prepareRemoteProxyToolArgs(options);
35567
35558
  }
35568
- function readLocalDoubaoVoiceMapping(targetDir) {
35569
- const mappingPath = path17.join(targetDir, ".project", "audio-voice-mapping.json");
35570
- if (!fs16.existsSync(mappingPath)) return void 0;
35571
- assertProjectDirectory(targetDir, path17.dirname(mappingPath));
35572
- const mapping = readJsonFile2(mappingPath);
35573
- return (mapping == null ? void 0 : mapping.provider) === "doubao" ? mapping : void 0;
35574
- }
35575
35559
  function readLocalElevenLabsVoiceMapping(targetDir) {
35576
35560
  const mappingPath = path17.join(targetDir, ".project", "elevenlabs-voice-mapping.json");
35577
35561
  if (!fs16.existsSync(mappingPath)) return void 0;
@@ -35587,29 +35571,6 @@ function resolveLocalElevenLabsVoiceId(characterName, mapping) {
35587
35571
  if (!isRecord2(character) || character.provider !== "elevenlabs") return void 0;
35588
35572
  return stringField2(character.voice_id);
35589
35573
  }
35590
- function resolveLocalDoubaoMappingReference(options) {
35591
- if (typeof options.characterName !== "string" || !options.mapping) return void 0;
35592
- const characters = options.mapping.characters;
35593
- if (!isRecord2(characters)) return void 0;
35594
- const character = characters[options.characterName];
35595
- if (!isRecord2(character) || character.provider !== "doubao") return void 0;
35596
- const referencePath = stringField2(character.reference_audio_path);
35597
- if (!referencePath) return void 0;
35598
- try {
35599
- const reference = normalizeDialogueReference(
35600
- options.targetDir,
35601
- referencePath,
35602
- options.registry,
35603
- options.index
35604
- );
35605
- return reference.toLowerCase().startsWith("data:") ? reference : void 0;
35606
- } catch (error2) {
35607
- const reason = error2 instanceof Error ? error2.message : String(error2);
35608
- throw new Error(
35609
- `Local Doubao voice mapping for character "${options.characterName}" references unavailable audio "${referencePath}". Re-run confirm_character_voice to restore it. ${reason}`
35610
- );
35611
- }
35612
- }
35613
35574
  function normalizeOptionalDialogueReference(value) {
35614
35575
  if (value === void 0 || value === null) return void 0;
35615
35576
  if (typeof value === "string") {
@@ -36028,35 +35989,35 @@ var MAKER_REMOTE_PROXY_PUBLIC_DESCRIPTIONS = {
36028
35989
  "The local proxy attempts to materialize successful audio and metadata into the Maker project and record them for later Maker references; use returned local paths when present."
36029
35990
  ].join(" "),
36030
35991
  text_to_sound_effect: [
36031
- "Generate one game sound effect from a Chinese or English description.",
36032
- "For the current Seed Audio provider, each call produces one output of at most 120 seconds. Split longer audio across multiple generations because this tool does not stitch outputs.",
35992
+ "Generate one game sound effect from a Chinese or English description with Doubao Seed Audio.",
35993
+ "Each call produces one output of at most 120 seconds. Split longer audio across multiple generations because this tool does not stitch outputs.",
36033
35994
  "duration_seconds is an approximate target and the actual duration may differ.",
36034
35995
  "The local proxy attempts to materialize successful audio in the provider original format under assets/audio/sfx and record it for later Maker references; use returned local paths when present."
36035
35996
  ].join(" "),
36036
35997
  batch_sound_effects: [
36037
- "Generate multiple game sound effects in one batch.",
36038
- "For the current Seed Audio provider, each item is an independent output of at most 120 seconds. Split longer audio across items or calls because this tool does not stitch outputs.",
35998
+ "Generate multiple game sound effects with Doubao Seed Audio in one batch.",
35999
+ "Each item is an independent output of at most 120 seconds. Split longer audio across items or calls because this tool does not stitch outputs.",
36039
36000
  "The result preserves per-item failures while the local proxy attempts to materialize successful audio in the provider original format under assets/audio/sfx and record it for later Maker references; use returned local paths when present."
36040
36001
  ].join(" "),
36041
36002
  text_to_dialogue: [
36042
- "Generate final character dialogue audio for a Maker game.",
36043
- "Each input needs a confirmed voice mapping or a reference_audio override. When neither is available, call audition_voices_for_character and then confirm_character_voice before retrying.",
36044
- "When reference_audio is omitted, the local proxy automatically reuses a confirmed local Doubao reference; the legacy provider still requires its confirmed voice mapping. Supported reference inputs and line-specific delivery controls are defined by the input schema.",
36045
- "For Doubao, each input produces at most 120 seconds of audio. Split longer dialogue across inputs or calls because this tool does not stitch outputs.",
36003
+ "Generate final character dialogue audio with ElevenLabs Eleven v3.",
36004
+ "Each character needs a confirmed ElevenLabs voice mapping in .project/elevenlabs-voice-mapping.json; when one is missing, call audition_voices_for_character and then confirm_character_voice before retrying.",
36005
+ "Use stability from 0 to 1 (default 0.5) to tune variation. Eleven v3 supports audio tags such as [sad] and [laughing] plus punctuation-based pacing.",
36046
36006
  "The local proxy attempts to materialize successful dialogue under assets/audio/voice; use returned local paths when present."
36047
36007
  ].join(" "),
36048
36008
  audition_voices_for_character: [
36049
- "Create temporary voice previews for one game character.",
36050
- "Before calling, inspect the available character definition and relevant project context, then prepare a representative audition line that matches the character personality and speaking style.",
36051
- "voice_profile.gender is required and must be passed explicitly as male or female.",
36052
- "Doubao returns exactly three previews; the legacy provider follows candidate_count. Show every returned preview to the user and wait for an explicit choice before calling confirm_character_voice.",
36009
+ "Create 1 to 3 temporary ElevenLabs Voice Design previews for one game character.",
36010
+ "Prepare a detailed character description and an audition line of at least 100 characters that matches the character personality and speaking style.",
36011
+ "candidate_count accepts 1 to 3 and defaults to 3.",
36012
+ "Show every returned preview to the user and wait for an explicit choice before calling confirm_character_voice.",
36053
36013
  "Complete audition and confirmation for one character before starting another in the same project; do not run them in parallel.",
36054
36014
  "Preview files are temporary and are not saved as final game assets."
36055
36015
  ].join(" "),
36056
36016
  confirm_character_voice: [
36057
- "Confirm a voice selection and persist the character voice mapping for later text_to_dialogue calls.",
36017
+ "Confirm an ElevenLabs Voice Design selection, create the permanent voice, and persist the character voice mapping for later text_to_dialogue calls.",
36058
36018
  "Call this tool only after audition_voices_for_character and only after the user explicitly selects a candidate or explicitly accepts the recommended candidate.",
36059
36019
  "Omit selected_index only after the user explicitly accepts the recommendation; absence of a user choice is not acceptance.",
36020
+ "Confirmation consumes one ElevenLabs Voice Slot.",
36060
36021
  "Process one character at a time and do not call this tool in parallel for the same project."
36061
36022
  ].join(" "),
36062
36023
  create_3d_asset: [
@@ -36243,7 +36204,7 @@ function applyDefaults(config2) {
36243
36204
  var MAKER_MCP_TRACKING_ACTION = "tapmaker_mcp_call";
36244
36205
  var MAKER_MCP_TRACKING_SOURCE = "local_mcp";
36245
36206
  var MAKER_MCP_TRACKING_TIMEOUT_MS = 1500;
36246
- var MAKER_MCP_VERSION = "0.0.29-beta.1".trim() ? "0.0.29-beta.1".trim() : "dev";
36207
+ var MAKER_MCP_VERSION = "0.0.29".trim() ? "0.0.29".trim() : "dev";
36247
36208
  var TRACKING_ERROR_MAX_LENGTH = 500;
36248
36209
  function buildMakerMcpTrackingPayload(event) {
36249
36210
  var _a3, _b, _c;
@@ -36556,7 +36517,7 @@ function createMakerRemoteProxyManager(options = {}) {
36556
36517
  }
36557
36518
 
36558
36519
  // src/maker/server/mcp.ts
36559
- var VERSION = true ? "0.0.29-beta.1" : "dev";
36520
+ var VERSION = true ? "0.0.29" : "dev";
36560
36521
  var DEFAULT_BUILD_TIMEOUT_MS = 10 * 60 * 1e3;
36561
36522
  var DEFAULT_PROXY_RETRY_ATTEMPTS = 5;
36562
36523
  var DEFAULT_PROXY_RETRY_DELAY_MS = 30 * 1e3;
@@ -36747,17 +36708,15 @@ async function listMakerTools(options) {
36747
36708
  env: options.env
36748
36709
  }));
36749
36710
  try {
36750
- remoteTools = filterExposedRemoteProxyTools(await listedRemoteTools()).map(
36751
- decorateRemoteProxyToolDefinition
36752
- );
36711
+ const exposedTools = filterExposedRemoteProxyTools(await listedRemoteTools());
36712
+ remoteTools = exposedTools.map(decorateRemoteProxyToolDefinition);
36753
36713
  } catch (error2) {
36754
36714
  const cachedTools = (_a3 = options.getCachedRemoteTools) == null ? void 0 : _a3.call(options);
36755
36715
  if (!cachedTools) {
36756
36716
  throw error2;
36757
36717
  }
36758
- remoteTools = filterExposedRemoteProxyTools(cachedTools).map(
36759
- decorateRemoteProxyToolDefinition
36760
- );
36718
+ const exposedTools = filterExposedRemoteProxyTools(cachedTools);
36719
+ remoteTools = exposedTools.map(decorateRemoteProxyToolDefinition);
36761
36720
  }
36762
36721
  } catch (error2) {
36763
36722
  if (isMakerProjectContextAmbiguousError(error2)) {
@@ -36787,7 +36746,7 @@ function decorateRemoteProxyToolInputSchema(inputSchema, toolName) {
36787
36746
  const properties = isPlainRecord(schema.properties) ? schema.properties : {};
36788
36747
  const decoratedProperties = toolName === "text_to_dialogue" ? decorateTextToDialogueInputProperties(properties) : toolName === "audition_voices_for_character" ? decorateVoiceAuditionInputProperties(properties) : properties;
36789
36748
  const required2 = Array.isArray(schema.required) ? schema.required : [];
36790
- const decoratedRequired = toolName === "audition_voices_for_character" ? [.../* @__PURE__ */ new Set([...required2, "voice_profile"])] : required2;
36749
+ const decoratedRequired = toolName === "audition_voices_for_character" && Object.prototype.hasOwnProperty.call(properties, "voice_profile") ? [.../* @__PURE__ */ new Set([...required2, "voice_profile"])] : required2;
36791
36750
  return {
36792
36751
  ...schema,
36793
36752
  type: schema.type || "object",
@@ -36810,6 +36769,7 @@ function decorateRemoteProxyToolInputSchema(inputSchema, toolName) {
36810
36769
  }
36811
36770
  function decorateVoiceAuditionInputProperties(properties) {
36812
36771
  const remoteVoiceProfile = properties.voice_profile;
36772
+ if (!isPlainRecord(remoteVoiceProfile)) return properties;
36813
36773
  const voiceProfile = isPlainRecord(remoteVoiceProfile) ? remoteVoiceProfile : {};
36814
36774
  const profileProperties = isPlainRecord(voiceProfile.properties) ? voiceProfile.properties : {};
36815
36775
  const profileRequired = Array.isArray(voiceProfile.required) ? voiceProfile.required : [];
@@ -36919,17 +36879,17 @@ function remoteProxyToolGuidance(toolName) {
36919
36879
  ].join(" ");
36920
36880
  case "text_to_dialogue":
36921
36881
  return [
36922
- "**Maker voice workflow hint:** For normal dialogue, pass only character_name and text after voice confirmation; the local proxy automatically reuses a confirmed local Doubao reference. reference_audio is an optional per-call override and accepts a local project audio path under assets/audio/, an HTTP(S) URL, or an audio data URL. Project audio must exist locally and is converted to a data URL automatically. reference_audio and reference_audio_path are mutually exclusive; reference_audio is canonical and reference_audio_path is the legacy local-path field. Successful dialogue audio is materialized under assets/audio/voice.",
36882
+ "**Maker voice workflow hint:** Pass character_name and text after ElevenLabs voice confirmation; the local proxy reuses the confirmed local voice_id mapping and materializes successful dialogue under assets/audio/voice.",
36923
36883
  failurePolicy
36924
36884
  ].join(" ");
36925
36885
  case "audition_voices_for_character":
36926
36886
  return [
36927
- "**Maker voice workflow hint:** Use this Maker MCP proxy tool to create temporary preview voices for one character. voice_profile.gender is required: extract male or female from character_description or the character settings and pass it explicitly. Show every returned preview URL to the user and wait for their choice before calling confirm_character_voice. Preview candidates are not saved as game assets.",
36887
+ "**Maker voice workflow hint:** Use this Maker MCP proxy tool to create temporary ElevenLabs Voice Design previews. Prepare a representative line of at least 100 characters, show every returned preview, and wait for the user choice before calling confirm_character_voice. Preview candidates are not saved as game assets.",
36928
36888
  failurePolicy
36929
36889
  ].join(" ");
36930
36890
  case "confirm_character_voice":
36931
36891
  return [
36932
- "**Maker voice workflow hint:** Call this Maker MCP proxy tool only after audition_voices_for_character and after the user selects a candidate or accepts the recommendation. Confirmation persists the provider-specific voice mapping for later text_to_dialogue calls.",
36892
+ "**Maker voice workflow hint:** Call this Maker MCP proxy tool only after audition_voices_for_character and after the user selects a candidate or accepts the recommendation. Confirmation persists the ElevenLabs voice mapping for later text_to_dialogue calls.",
36933
36893
  failurePolicy
36934
36894
  ].join(" ");
36935
36895
  case CREATE_3D_ASSET_PROXY_TOOL_NAME:
@@ -39900,7 +39860,7 @@ function uniqueStrings(values) {
39900
39860
  }
39901
39861
 
39902
39862
  // src/maker/cli/commands.ts
39903
- var VERSION2 = true ? "0.0.29-beta.1" : "dev";
39863
+ var VERSION2 = true ? "0.0.29" : "dev";
39904
39864
  var DEFAULT_MCP_NAME = "taptap-maker";
39905
39865
  var MAKER_NPM_PACKAGE = "@taptap/maker";
39906
39866
  var TWO_PART_COMMANDS = /* @__PURE__ */ new Set(["pat", "mcp", "dev-kit", "logs", "python", "lua-lsp", "agents"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taptap/maker",
3
- "version": "0.0.29-beta.1",
3
+ "version": "0.0.29",
4
4
  "type": "module",
5
5
  "description": "TapTap Maker local development CLI and MCP server",
6
6
  "main": "dist/maker.js",
@@ -156,19 +156,17 @@ supports it. Follow the selected tool schema when one of these tools is used.
156
156
  - Use `edit_image` for modifying project images.
157
157
  - Use `create_video_task` for game videos and image/video referenced generation.
158
158
  - Use `query_video_task` to refresh video task status, release completed task quota, and fetch final videos.
159
- - Use `text_to_music` for game music.
160
- - Use `text_to_sound_effect` for one sound effect.
161
- - Use `batch_sound_effects` for multiple sound effects.
162
- - Use `text_to_dialogue` for final character dialogue.
163
- - `text_to_dialogue` automatically converts local project audio to data URLs and reuses confirmed local voice mappings.
159
+ - Use `text_to_music` for game music with Suno.
160
+ - Use `text_to_sound_effect` for one sound effect with Doubao Seed Audio.
161
+ - Use `batch_sound_effects` for multiple sound effects with Doubao Seed Audio.
162
+ - Use `text_to_dialogue` for final character dialogue with ElevenLabs Eleven v3.
163
+ - `text_to_dialogue` reuses confirmed local ElevenLabs voice mappings. After confirmation, pass only `character_name` and `text`.
164
+ - For ElevenLabs auditions, pass a detailed `character_description` and an `audition_line` of at least 100 characters. `candidate_count` is optional and accepts 1 to 3.
164
165
  - After `audition_voices_for_character` returns previews, show them to the user and wait
165
166
  for the user to choose. Do not select or confirm a voice automatically.
166
- - Before a Doubao audition, extract the character gender from the character settings or
167
- `character_description` and pass `voice_profile.gender` as `male` or `female`; never rely on a
168
- default gender.
169
167
  - Call `confirm_character_voice` only after the user explicitly chooses one preview.
170
168
  - After confirmation, follow `next_step_hint`: call `text_to_dialogue` with the character name and
171
- text, and omit `reference_audio` unless the user requests a one-time override.
169
+ text only.
172
170
  - Generated sound effects and dialogue are saved in the project.
173
171
  - Voice audition previews are not saved to the project.
174
172
  - Local MCP does not transcode generated audio to OGG.