@taptap/maker 0.0.28 → 0.0.29-beta.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 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.28
35
+ Version: 0.0.29-beta.2
package/dist/maker.js CHANGED
@@ -29158,20 +29158,30 @@ import fs5 from "node:fs";
29158
29158
  import path6 from "node:path";
29159
29159
 
29160
29160
  // src/maker/capabilityRouting.ts
29161
- var MAKER_CAPABILITY_ROUTING_INDEX = `TapTap Maker routing index:
29162
- - Start or resume Maker work, or diagnose project/MCP readiness: read
29163
- maker://status; use maker_status_lite when resources are unavailable.
29164
- - Build, preview, run, submit, or push: after checking project status, use
29165
- maker_build_current_directory.
29166
- - Ads: read maker://ads-integration-guide before any ad-related work.
29167
- - Tap flows: test QR -> generate_test_qrcode; current Maker game's online player feedback
29168
- (including player-submitted game bug reports, real-device game logs, or screenshots), or
29169
- server/Lua logs for a specified game session -> call get_debug_feedbacks only when it is
29170
- exposed by the current Maker tool list.
29171
- - Game assets: Maker MCP also provides image, video, music, sound-effect,
29172
- dialogue/voice, and 3D generation tools when exposed.
29173
-
29174
- Follow the selected tool schema and returned next_action.`;
29161
+ function formatMakerCapabilityRoutingIndex(options) {
29162
+ return [
29163
+ "TapTap Maker routing index:",
29164
+ "- Start or resume Maker work, or diagnose project/MCP readiness: read",
29165
+ " maker://status; use maker_status_lite when resources are unavailable.",
29166
+ "- Build, preview, run, submit, or push: after checking project status, use",
29167
+ " maker_build_current_directory.",
29168
+ "- Ads: read maker://ads-integration-guide before any ad-related work.",
29169
+ options.includeFeedback ? "- Tap flows: test QR -> generate_test_qrcode; current Maker game's online player feedback" : "",
29170
+ options.includeFeedback ? " (including player-submitted game bug reports, real-device game logs, or screenshots), or" : "- Tap flows: test QR -> generate_test_qrcode.",
29171
+ options.includeFeedback ? " server/Lua logs for a specified game session -> call get_debug_feedbacks only when it is" : "",
29172
+ options.includeFeedback ? " exposed by the current Maker tool list." : "",
29173
+ "- Game assets: Maker MCP also provides image, video, music, sound-effect,",
29174
+ " dialogue/voice, and 3D generation tools when exposed.",
29175
+ "",
29176
+ "Follow the selected tool schema and returned next_action."
29177
+ ].filter(Boolean).join("\n");
29178
+ }
29179
+ var MAKER_CAPABILITY_ROUTING_INDEX = formatMakerCapabilityRoutingIndex({
29180
+ includeFeedback: true
29181
+ });
29182
+ var MAKER_PROJECT_POLICY_ROUTING_INDEX = formatMakerCapabilityRoutingIndex({
29183
+ includeFeedback: false
29184
+ });
29175
29185
 
29176
29186
  // src/maker/cli/agentsPolicy.ts
29177
29187
  var MAKER_AGENTS_FILE = "AGENTS.md";
@@ -29261,7 +29271,7 @@ function createMakerAgentsPolicyBody() {
29261
29271
  "",
29262
29272
  "This is a bound TapTap Maker project.",
29263
29273
  "",
29264
- MAKER_CAPABILITY_ROUTING_INDEX,
29274
+ MAKER_PROJECT_POLICY_ROUTING_INDEX,
29265
29275
  "",
29266
29276
  "Maker build workflow:",
29267
29277
  "",
@@ -29343,20 +29353,6 @@ function createMakerAgentsPolicyBody() {
29343
29353
  " `generate_test_qrcode` once to generate test QR code metadata, then call `get_ad_config`",
29344
29354
  " again. Do not use publish-only tools for this recovery path.",
29345
29355
  "",
29346
- "Maker feedback workflow:",
29347
- "",
29348
- "- For user requests about the current Maker game's online player feedback, including",
29349
- " player-submitted game bug reports, real-device game logs, or screenshots, or server/Lua",
29350
- " logs for a specified game session, call the Maker proxy `get_debug_feedbacks` tool only",
29351
- " when it is exposed by the current Maker tool list.",
29352
- "- This includes 当前 Maker 游戏的玩家反馈、玩家提交的游戏故障、真机游戏日志或截图、",
29353
- " 指定游戏会话的服务端/Lua 日志. It does not include AI client, plugin, or other product",
29354
- " feedback.",
29355
- "- Use local runtime log files only for the current local build/runtime session. Do not use",
29356
- " local logs as a substitute for remote player-submitted feedback.",
29357
- "- Follow the remote tool schema and return the feedback records, logs, screenshots, and",
29358
- " full error payloads as provided by the remote Maker MCP server.",
29359
- "",
29360
29356
  "Maker MCP provides the following game asset generation and editing tools when they are",
29361
29357
  "exposed in the current session:",
29362
29358
  "",
@@ -29369,7 +29365,8 @@ function createMakerAgentsPolicyBody() {
29369
29365
  "- `text_to_sound_effect` for one sound effect.",
29370
29366
  "- `batch_sound_effects` for multiple sound effects.",
29371
29367
  "- `text_to_dialogue` for final character dialogue.",
29372
- "- `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.",
29373
29370
  "- After `audition_voices_for_character` returns previews, show them to the user and wait",
29374
29371
  " for the user to choose. Do not select or confirm a voice automatically.",
29375
29372
  "- Call `confirm_character_voice` only after the user explicitly chooses one preview.",
@@ -31585,65 +31582,6 @@ function parseGitProgressLine(line) {
31585
31582
  return void 0;
31586
31583
  }
31587
31584
 
31588
- // src/maker/auth/patTap.ts
31589
- function getObjectValue(data, key) {
31590
- if (!data || typeof data !== "object") {
31591
- return void 0;
31592
- }
31593
- return data[key];
31594
- }
31595
- function normalizeTapAuthResponse(data) {
31596
- const body = data;
31597
- const nested = getObjectValue(body, "data");
31598
- const source = nested && typeof nested === "object" ? nested : body;
31599
- const kid = source.kid;
31600
- const macKey = source.mac_key;
31601
- if (typeof kid !== "string" || kid.length === 0 || typeof macKey !== "string" || macKey.length === 0) {
31602
- throw new Error("TapTap token response does not contain kid/mac_key");
31603
- }
31604
- return {
31605
- kid,
31606
- mac_key: macKey,
31607
- token_type: typeof source.token_type === "string" ? source.token_type : "mac",
31608
- mac_algorithm: typeof source.mac_algorithm === "string" ? source.mac_algorithm : "hmac-sha-1",
31609
- raw: data
31610
- };
31611
- }
31612
- function getMakerTapTokenUrl(environment) {
31613
- const tapTokenUrl = getMakerEndpoints(environment).tapTokenUrl;
31614
- return requireMakerEndpoint("tapTokenUrl", tapTokenUrl, environment);
31615
- }
31616
- async function requestTapAuthWithPat(manualPat, environment, options = {}) {
31617
- const pat = requireMakerPat(manualPat);
31618
- const response = await fetchWithTimeout(
31619
- options.fetchImpl || fetch,
31620
- getMakerTapTokenUrl(environment),
31621
- {
31622
- headers: {
31623
- Authorization: `Bearer ${pat.token}`,
31624
- Accept: "application/json"
31625
- }
31626
- },
31627
- options.timeoutMs ?? DEFAULT_SHORT_FETCH_TIMEOUT_MS,
31628
- "TapTap token request"
31629
- );
31630
- const text = await response.text();
31631
- let json2 = {};
31632
- if (text) {
31633
- try {
31634
- json2 = JSON.parse(text);
31635
- } catch {
31636
- json2 = { error: text };
31637
- }
31638
- }
31639
- if (!response.ok) {
31640
- throw new Error(`TapTap token request failed: HTTP ${response.status} ${JSON.stringify(json2)}`);
31641
- }
31642
- const auth2 = normalizeTapAuthResponse(json2);
31643
- saveTapAuth(auth2);
31644
- return auth2;
31645
- }
31646
-
31647
31585
  // src/maker/system/python.ts
31648
31586
  import { spawnSync as spawnSync4 } from "node:child_process";
31649
31587
  import fs8 from "node:fs";
@@ -32434,7 +32372,8 @@ function formatMakerSkillStatus(_options = {}) {
32434
32372
  "- Use text_to_sound_effect for one sound effect.",
32435
32373
  "- Use batch_sound_effects for multiple sound effects.",
32436
32374
  "- Use text_to_dialogue for final character dialogue.",
32437
- "- 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).",
32438
32377
  "- After audition_voices_for_character returns previews, wait for the user to choose.",
32439
32378
  "- Call confirm_character_voice only after the user explicitly chooses a preview.",
32440
32379
  "- Generated sound effects and dialogue are saved in the project.",
@@ -34125,7 +34064,7 @@ var AUDIO_REFERENCE_MAX_BYTES = 15 * 1024 * 1024;
34125
34064
  var AUDIO_DIALOGUE_REFERENCE_MAX_BYTES = 20 * 1024 * 1024;
34126
34065
  var AUDIO_DIALOGUE_INPUT_TOTAL_MAX_BYTES = 28 * 1024 * 1024;
34127
34066
  var AUDIO_CONFIRM_MAX_BYTES = 1 * 1024 * 1024;
34128
- 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.";
34129
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.";
34130
34069
  var CREATE_3D_ASSET_PROXY_TOOL_NAME = "create_3d_asset";
34131
34070
  var DATA_URL_MIME_BY_EXTENSION = {
@@ -34195,6 +34134,7 @@ function prepareRemoteProxyToolArgs(options) {
34195
34134
  }
34196
34135
  function validateVoiceAuditionArgs(args) {
34197
34136
  const voiceProfile = args.voice_profile;
34137
+ if (voiceProfile === void 0) return args;
34198
34138
  const gender = isRecord2(voiceProfile) ? voiceProfile.gender : void 0;
34199
34139
  if (gender !== "male" && gender !== "female") {
34200
34140
  throw new Error(
@@ -35567,9 +35507,6 @@ function rewriteTextToDialogueArgs(targetDir, args) {
35567
35507
  }
35568
35508
  const registry2 = readGeneratedAssetRegistry(targetDir);
35569
35509
  const localElevenLabsMapping = readLocalElevenLabsVoiceMapping(targetDir);
35570
- const localDoubaoMapping = args.inputs.some(
35571
- (value) => isRecord2(value) && normalizeOptionalDialogueReference(value.reference_audio) === void 0 && normalizeOptionalDialogueReference(value.reference_audio_path) === void 0
35572
- ) ? readLocalDoubaoVoiceMapping(targetDir) : void 0;
35573
35510
  let referenceAudioInputBytes = 0;
35574
35511
  return {
35575
35512
  ...args,
@@ -35595,15 +35532,6 @@ function rewriteTextToDialogueArgs(targetDir, args) {
35595
35532
  if (localVoiceId) {
35596
35533
  normalizedValue._local_voice_id = localVoiceId;
35597
35534
  }
35598
- if (canonicalReference === void 0 && legacyReference === void 0) {
35599
- canonicalReference = resolveLocalDoubaoMappingReference({
35600
- targetDir,
35601
- characterName: value.character_name,
35602
- mapping: localDoubaoMapping,
35603
- registry: registry2,
35604
- index
35605
- });
35606
- }
35607
35535
  if (canonicalReference === void 0) canonicalReference = legacyReference;
35608
35536
  if (canonicalReference === void 0) return normalizedValue;
35609
35537
  const referenceAudio = normalizeDialogueReference(
@@ -35628,13 +35556,6 @@ function rewriteTextToDialogueArgs(targetDir, args) {
35628
35556
  async function prepareRemoteProxyToolArgsAsync(options) {
35629
35557
  return prepareRemoteProxyToolArgs(options);
35630
35558
  }
35631
- function readLocalDoubaoVoiceMapping(targetDir) {
35632
- const mappingPath = path17.join(targetDir, ".project", "audio-voice-mapping.json");
35633
- if (!fs16.existsSync(mappingPath)) return void 0;
35634
- assertProjectDirectory(targetDir, path17.dirname(mappingPath));
35635
- const mapping = readJsonFile2(mappingPath);
35636
- return (mapping == null ? void 0 : mapping.provider) === "doubao" ? mapping : void 0;
35637
- }
35638
35559
  function readLocalElevenLabsVoiceMapping(targetDir) {
35639
35560
  const mappingPath = path17.join(targetDir, ".project", "elevenlabs-voice-mapping.json");
35640
35561
  if (!fs16.existsSync(mappingPath)) return void 0;
@@ -35650,29 +35571,6 @@ function resolveLocalElevenLabsVoiceId(characterName, mapping) {
35650
35571
  if (!isRecord2(character) || character.provider !== "elevenlabs") return void 0;
35651
35572
  return stringField2(character.voice_id);
35652
35573
  }
35653
- function resolveLocalDoubaoMappingReference(options) {
35654
- if (typeof options.characterName !== "string" || !options.mapping) return void 0;
35655
- const characters = options.mapping.characters;
35656
- if (!isRecord2(characters)) return void 0;
35657
- const character = characters[options.characterName];
35658
- if (!isRecord2(character) || character.provider !== "doubao") return void 0;
35659
- const referencePath = stringField2(character.reference_audio_path);
35660
- if (!referencePath) return void 0;
35661
- try {
35662
- const reference = normalizeDialogueReference(
35663
- options.targetDir,
35664
- referencePath,
35665
- options.registry,
35666
- options.index
35667
- );
35668
- return reference.toLowerCase().startsWith("data:") ? reference : void 0;
35669
- } catch (error2) {
35670
- const reason = error2 instanceof Error ? error2.message : String(error2);
35671
- throw new Error(
35672
- `Local Doubao voice mapping for character "${options.characterName}" references unavailable audio "${referencePath}". Re-run confirm_character_voice to restore it. ${reason}`
35673
- );
35674
- }
35675
- }
35676
35574
  function normalizeOptionalDialogueReference(value) {
35677
35575
  if (value === void 0 || value === null) return void 0;
35678
35576
  if (typeof value === "string") {
@@ -36040,7 +35938,7 @@ var MAKER_STATUS_LITE_PUBLIC_DESCRIPTION = [
36040
35938
  "Compatibility tool for clients that cannot read the maker://status resource; prefer the resource when it is available.",
36041
35939
  "Use it when starting or resuming Maker work, or when the current project context and readiness are uncertain.",
36042
35940
  "Pass target_dir when the project cannot be resolved from MCP Roots or the server working directory; if multiple Maker projects remain ambiguous, ask the user instead of guessing.",
36043
- "By default the check may perform remote Git, package, dev-kit, proxy, and authentication probes. skip_remote_sync skips only remote Git and dev-kit freshness checks; it is not an offline or read-only mode.",
35941
+ "By default this is a fast local, read-only summary. Set detail=true only for explicit diagnostics; it enables remote Git, dev-kit, proxy, and maintenance checks. skip_remote_sync skips remote Git and dev-kit freshness checks in detail mode.",
36044
35942
  "Follow the returned next_action and next_step."
36045
35943
  ].join(" ");
36046
35944
  var MAKER_BUILD_CURRENT_DIRECTORY_PUBLIC_DESCRIPTION = [
@@ -36091,35 +35989,35 @@ var MAKER_REMOTE_PROXY_PUBLIC_DESCRIPTIONS = {
36091
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."
36092
35990
  ].join(" "),
36093
35991
  text_to_sound_effect: [
36094
- "Generate one game sound effect from a Chinese or English description.",
36095
- "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.",
36096
35994
  "duration_seconds is an approximate target and the actual duration may differ.",
36097
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."
36098
35996
  ].join(" "),
36099
35997
  batch_sound_effects: [
36100
- "Generate multiple game sound effects in one batch.",
36101
- "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.",
36102
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."
36103
36001
  ].join(" "),
36104
36002
  text_to_dialogue: [
36105
- "Generate final character dialogue audio for a Maker game.",
36106
- "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.",
36107
- "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.",
36108
- "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.",
36109
36006
  "The local proxy attempts to materialize successful dialogue under assets/audio/voice; use returned local paths when present."
36110
36007
  ].join(" "),
36111
36008
  audition_voices_for_character: [
36112
- "Create temporary voice previews for one game character.",
36113
- "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.",
36114
- "voice_profile.gender is required and must be passed explicitly as male or female.",
36115
- "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.",
36116
36013
  "Complete audition and confirmation for one character before starting another in the same project; do not run them in parallel.",
36117
36014
  "Preview files are temporary and are not saved as final game assets."
36118
36015
  ].join(" "),
36119
36016
  confirm_character_voice: [
36120
- "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.",
36121
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.",
36122
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.",
36123
36021
  "Process one character at a time and do not call this tool in parallel for the same project."
36124
36022
  ].join(" "),
36125
36023
  create_3d_asset: [
@@ -36306,7 +36204,7 @@ function applyDefaults(config2) {
36306
36204
  var MAKER_MCP_TRACKING_ACTION = "tapmaker_mcp_call";
36307
36205
  var MAKER_MCP_TRACKING_SOURCE = "local_mcp";
36308
36206
  var MAKER_MCP_TRACKING_TIMEOUT_MS = 1500;
36309
- var MAKER_MCP_VERSION = "0.0.28".trim() ? "0.0.28".trim() : "dev";
36207
+ var MAKER_MCP_VERSION = "0.0.29-beta.2".trim() ? "0.0.29-beta.2".trim() : "dev";
36310
36208
  var TRACKING_ERROR_MAX_LENGTH = 500;
36311
36209
  function buildMakerMcpTrackingPayload(event) {
36312
36210
  var _a3, _b, _c;
@@ -36619,7 +36517,7 @@ function createMakerRemoteProxyManager(options = {}) {
36619
36517
  }
36620
36518
 
36621
36519
  // src/maker/server/mcp.ts
36622
- var VERSION = true ? "0.0.28" : "dev";
36520
+ var VERSION = true ? "0.0.29-beta.2" : "dev";
36623
36521
  var DEFAULT_BUILD_TIMEOUT_MS = 10 * 60 * 1e3;
36624
36522
  var DEFAULT_PROXY_RETRY_ATTEMPTS = 5;
36625
36523
  var DEFAULT_PROXY_RETRY_DELAY_MS = 30 * 1e3;
@@ -36723,7 +36621,11 @@ var tools = [
36723
36621
  },
36724
36622
  skip_remote_sync: {
36725
36623
  type: "boolean",
36726
- description: "If true, skip git fetch/ahead-behind remote sync checks. Use this for frequent polling or quick local status checks."
36624
+ description: "In detail mode, skip git fetch/ahead-behind remote sync and dev-kit freshness checks. Summary mode is already local-only; use this for frequent polling."
36625
+ },
36626
+ detail: {
36627
+ type: "boolean",
36628
+ description: "Set true only for explicit diagnostics. The default is a fast local summary without remote checks."
36727
36629
  }
36728
36630
  }
36729
36631
  }
@@ -36806,17 +36708,15 @@ async function listMakerTools(options) {
36806
36708
  env: options.env
36807
36709
  }));
36808
36710
  try {
36809
- remoteTools = filterExposedRemoteProxyTools(await listedRemoteTools()).map(
36810
- decorateRemoteProxyToolDefinition
36811
- );
36711
+ const exposedTools = filterExposedRemoteProxyTools(await listedRemoteTools());
36712
+ remoteTools = exposedTools.map(decorateRemoteProxyToolDefinition);
36812
36713
  } catch (error2) {
36813
36714
  const cachedTools = (_a3 = options.getCachedRemoteTools) == null ? void 0 : _a3.call(options);
36814
36715
  if (!cachedTools) {
36815
36716
  throw error2;
36816
36717
  }
36817
- remoteTools = filterExposedRemoteProxyTools(cachedTools).map(
36818
- decorateRemoteProxyToolDefinition
36819
- );
36718
+ const exposedTools = filterExposedRemoteProxyTools(cachedTools);
36719
+ remoteTools = exposedTools.map(decorateRemoteProxyToolDefinition);
36820
36720
  }
36821
36721
  } catch (error2) {
36822
36722
  if (isMakerProjectContextAmbiguousError(error2)) {
@@ -36846,7 +36746,7 @@ function decorateRemoteProxyToolInputSchema(inputSchema, toolName) {
36846
36746
  const properties = isPlainRecord(schema.properties) ? schema.properties : {};
36847
36747
  const decoratedProperties = toolName === "text_to_dialogue" ? decorateTextToDialogueInputProperties(properties) : toolName === "audition_voices_for_character" ? decorateVoiceAuditionInputProperties(properties) : properties;
36848
36748
  const required2 = Array.isArray(schema.required) ? schema.required : [];
36849
- 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;
36850
36750
  return {
36851
36751
  ...schema,
36852
36752
  type: schema.type || "object",
@@ -36869,6 +36769,7 @@ function decorateRemoteProxyToolInputSchema(inputSchema, toolName) {
36869
36769
  }
36870
36770
  function decorateVoiceAuditionInputProperties(properties) {
36871
36771
  const remoteVoiceProfile = properties.voice_profile;
36772
+ if (!isPlainRecord(remoteVoiceProfile)) return properties;
36872
36773
  const voiceProfile = isPlainRecord(remoteVoiceProfile) ? remoteVoiceProfile : {};
36873
36774
  const profileProperties = isPlainRecord(voiceProfile.properties) ? voiceProfile.properties : {};
36874
36775
  const profileRequired = Array.isArray(voiceProfile.required) ? voiceProfile.required : [];
@@ -36978,17 +36879,17 @@ function remoteProxyToolGuidance(toolName) {
36978
36879
  ].join(" ");
36979
36880
  case "text_to_dialogue":
36980
36881
  return [
36981
- "**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.",
36982
36883
  failurePolicy
36983
36884
  ].join(" ");
36984
36885
  case "audition_voices_for_character":
36985
36886
  return [
36986
- "**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.",
36987
36888
  failurePolicy
36988
36889
  ].join(" ");
36989
36890
  case "confirm_character_voice":
36990
36891
  return [
36991
- "**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.",
36992
36893
  failurePolicy
36993
36894
  ].join(" ");
36994
36895
  case CREATE_3D_ASSET_PROXY_TOOL_NAME:
@@ -37282,6 +37183,7 @@ async function startMakerMcpServer() {
37282
37183
  text: await formatStatus({
37283
37184
  targetDir: args.target_dir,
37284
37185
  skipRemoteSync: args.skip_remote_sync,
37186
+ detail: args.detail,
37285
37187
  listClientRoots,
37286
37188
  remoteProxyManager
37287
37189
  })
@@ -37331,6 +37233,7 @@ async function startMakerMcpServer() {
37331
37233
  throw error2;
37332
37234
  }
37333
37235
  const toolResult = {
37236
+ isError: !isMakerBuildActivitySuccessful(result.mode),
37334
37237
  content: [
37335
37238
  {
37336
37239
  type: "text",
@@ -37521,6 +37424,7 @@ function installMakerServerExitHandlers(remoteProxyManager) {
37521
37424
  }
37522
37425
  async function formatStatus(options = {}) {
37523
37426
  var _a3;
37427
+ const detail = options.detail === true;
37524
37428
  const projectContext = await resolveMakerProjectContext({
37525
37429
  targetDir: options.targetDir,
37526
37430
  listClientRoots: options.listClientRoots,
@@ -37532,45 +37436,85 @@ async function formatStatus(options = {}) {
37532
37436
  const mcpCwd = process.cwd();
37533
37437
  const mcpCwdIdentify = path18.resolve(mcpCwd) === path18.resolve(targetDir) ? identify : identifyMakerProject({ cwd: mcpCwd });
37534
37438
  const gitDirectoryStatus = inspectMakerDirectoryGitStatus(targetDir);
37535
- const remoteSyncText = identify.projectRoot && gitDirectoryStatus.isUsableMakerGitRepo && !options.skipRemoteSync ? await formatMakerRemoteSyncStatusSafely(identify.projectRoot) : identify.projectRoot && gitDirectoryStatus.isUsableMakerGitRepo ? formatMakerRemoteSyncSkipped() : "";
37439
+ const remoteSyncText = detail && identify.projectRoot && gitDirectoryStatus.isUsableMakerGitRepo && !options.skipRemoteSync ? await formatMakerRemoteSyncStatusSafely(identify.projectRoot) : detail && identify.projectRoot && gitDirectoryStatus.isUsableMakerGitRepo ? formatMakerRemoteSyncSkipped() : "";
37536
37440
  const pat = loadPat();
37537
- let tapAuth = loadTapAuth();
37538
- let tapAuthRefreshText = "";
37539
- if (pat && !tapAuth) {
37540
- try {
37541
- tapAuth = await requestTapAuthWithPat(pat.token, env);
37542
- tapAuthRefreshText = [
37543
- "TapTap token",
37544
- "",
37545
- `本地已有 Maker PAT,已自动获取并保存 TapTap token: ${getTapAuthPath()}`
37546
- ].join("\n");
37547
- } catch (error2) {
37548
- tapAuthRefreshText = [
37549
- "TapTap token",
37550
- "",
37551
- "本地已有 Maker PAT,但自动获取 TapTap token 失败。",
37552
- `原因:${error2 instanceof Error ? error2.message : String(error2)}`
37553
- ].join("\n");
37554
- }
37555
- }
37441
+ const tapAuth = loadTapAuth();
37556
37442
  const git = checkGitEnvironment();
37557
37443
  const python = checkMakerPythonEnvironment();
37558
37444
  const luaLsp = checkMakerLuaLspEnvironment({ pythonEnvironment: python });
37559
- const packageUpdateText = formatMakerPackageUpdateStatus(
37560
- await getMakerPackageUpdateStatus({
37561
- currentVersion: VERSION,
37562
- allowRemoteFetch: false
37563
- })
37564
- );
37565
- const projectInitializationText = identify.projectRoot ? formatMakerProjectInitializationStatus(
37566
- inspectMakerProjectInitialization(identify.projectRoot)
37567
- ) : "";
37568
- const projectHealthText = identify.projectRoot ? formatMakerProjectHealthStatus(inspectMakerProjectHealth(identify.projectRoot, "status")) : "";
37569
- const projectSection = identify.projectId ? [
37570
- "目标目录已绑定 Maker 项目。",
37571
- "请继续在当前绑定项目上执行状态、提交、构建等操作;用户明确要求切换或重新拉取项目时,再进入项目选择流程。",
37572
- "本地 Maker 工作流请参考 taptap-maker-local workflow guide document;CLI 负责初始化/PAT/app/clone,MCP 只保留状态和同步构建。"
37573
- ].join("\n") : isLikelyAiDialogueDirectory(targetDir) ? formatAiDialogueDirectoryHint(targetDir) : pat ? await formatAutoProjectListFromPat() : formatIdentifyHint();
37445
+ const packageUpdateStatus = await getMakerPackageUpdateStatus({
37446
+ currentVersion: VERSION,
37447
+ allowRemoteFetch: false,
37448
+ ...detail ? {} : { backgroundRefresh: false }
37449
+ });
37450
+ const packageUpdateText = detail ? formatMakerPackageUpdateStatus(packageUpdateStatus) : "";
37451
+ const projectInitialization = identify.projectRoot ? inspectMakerProjectInitialization(identify.projectRoot) : void 0;
37452
+ const projectHealth = identify.projectRoot ? inspectMakerProjectHealth(identify.projectRoot, "status") : void 0;
37453
+ const projectInitializationText = projectInitialization ? formatMakerProjectInitializationStatus(projectInitialization) : "";
37454
+ const projectHealthText = projectHealth ? formatMakerProjectHealthStatus(projectHealth) : "";
37455
+ let projectSection;
37456
+ if (projectContext.roots.status === "ambiguous") {
37457
+ projectSection = [
37458
+ "MCP client roots are ambiguous; do not continue Maker operations from the cwd fallback.",
37459
+ "Open a single Maker workspace or pass target_dir explicitly before status-dependent actions."
37460
+ ].join("\n");
37461
+ } else if (identify.projectId) {
37462
+ projectSection = [
37463
+ "目标目录已绑定 Maker 项目。",
37464
+ "请继续在当前绑定项目上执行状态、提交、构建等操作;用户明确要求切换或重新拉取项目时,再进入项目选择流程。",
37465
+ "本地 Maker 工作流请参考 taptap-maker-local workflow guide document;CLI 负责初始化/PAT/app/clone,MCP 只保留状态和同步构建。"
37466
+ ].join("\n");
37467
+ } else if (isLikelyAiDialogueDirectory(targetDir)) {
37468
+ projectSection = formatAiDialogueDirectoryHint(targetDir);
37469
+ } else if (detail && pat) {
37470
+ projectSection = await formatAutoProjectListFromPat();
37471
+ } else {
37472
+ projectSection = formatIdentifyHint();
37473
+ }
37474
+ const summaryText = [
37475
+ "Status summary",
37476
+ "",
37477
+ `- project: ${identify.projectId ? "bound" : "unbound"}`,
37478
+ `- target_dir: ${targetDir}`,
37479
+ `- tap_auth: ${tapAuth ? "found" : "missing"}`,
37480
+ `- pat: ${pat ? "found" : "missing"}`,
37481
+ `- git: ${gitDirectoryStatus.isUsableMakerGitRepo ? "ready" : gitDirectoryStatus.issue || "unavailable"}`,
37482
+ `- python: ${python.status}`,
37483
+ `- lua_lsp: ${luaLsp.status}`,
37484
+ "Maker MCP package update",
37485
+ `- status: ${packageUpdateStatus.status}`,
37486
+ packageUpdateStatus.target_version ? `- target_version: ${packageUpdateStatus.target_version}` : "",
37487
+ packageUpdateStatus.next_action ? `- next_action: ${packageUpdateStatus.next_action}` : "",
37488
+ projectInitialization ? `- project_initialization: ${projectInitialization.status}` : "",
37489
+ projectHealth ? `- project_health: ${projectHealth.status}` : "",
37490
+ formatMakerClientRootsSummary(projectContext.roots),
37491
+ "",
37492
+ formatAuthNextStep({
37493
+ hasPat: Boolean(pat),
37494
+ hasTapAuth: Boolean(tapAuth),
37495
+ isProjectBound: Boolean(identify.projectRoot),
37496
+ rootsAmbiguous: projectContext.roots.status === "ambiguous"
37497
+ }),
37498
+ formatMakerSummaryNextAction({
37499
+ git,
37500
+ gitDirectoryStatus,
37501
+ projectInitialization,
37502
+ projectHealth,
37503
+ rootsAmbiguous: projectContext.roots.status === "ambiguous"
37504
+ }),
37505
+ "",
37506
+ projectSection
37507
+ ].filter(Boolean).join("\n");
37508
+ if (!detail) {
37509
+ return [
37510
+ "TapTap Maker MCP status",
37511
+ "",
37512
+ `- version: ${VERSION}`,
37513
+ `- env: ${env}`,
37514
+ `- project_context_source: ${projectContext.source}`,
37515
+ summaryText
37516
+ ].join("\n");
37517
+ }
37574
37518
  return [
37575
37519
  "TapTap Maker MCP status",
37576
37520
  "",
@@ -37614,9 +37558,14 @@ async function formatStatus(options = {}) {
37614
37558
  remoteProxyManager: options.remoteProxyManager
37615
37559
  }) : "",
37616
37560
  "",
37617
- formatAuthNextStep({ hasPat: Boolean(pat), isProjectBound: Boolean(identify.projectRoot) }),
37561
+ formatAuthNextStep({
37562
+ hasPat: Boolean(pat),
37563
+ hasTapAuth: Boolean(tapAuth),
37564
+ isProjectBound: Boolean(identify.projectRoot),
37565
+ rootsAmbiguous: projectContext.roots.status === "ambiguous"
37566
+ }),
37567
+ "",
37618
37568
  "",
37619
- tapAuthRefreshText,
37620
37569
  "",
37621
37570
  identify.projectRoot ? formatMakerAgentsPolicyStatus(identify.projectRoot) : "",
37622
37571
  "",
@@ -37631,6 +37580,22 @@ async function formatStatus(options = {}) {
37631
37580
  ].filter(Boolean).join("\n");
37632
37581
  }
37633
37582
  function formatAuthNextStep(options) {
37583
+ if (!options.hasTapAuth) {
37584
+ if (options.hasPat) {
37585
+ return [
37586
+ "Auth next step",
37587
+ "",
37588
+ "TapTap auth 缺失。请运行 `taptap-maker login` 刷新登录授权。"
37589
+ ].join("\n");
37590
+ }
37591
+ if (options.isProjectBound) {
37592
+ return [
37593
+ "Auth next step",
37594
+ "",
37595
+ "Maker PAT 和 TapTap auth 缺失。请运行 `taptap-maker login` 刷新登录授权。"
37596
+ ].join("\n");
37597
+ }
37598
+ }
37634
37599
  if (options.hasPat) {
37635
37600
  return "";
37636
37601
  }
@@ -37641,6 +37606,9 @@ function formatAuthNextStep(options) {
37641
37606
  "Maker PAT 缺失。请运行 `taptap-maker login` 刷新登录授权。"
37642
37607
  ].join("\n");
37643
37608
  }
37609
+ if (options.rootsAmbiguous) {
37610
+ return "";
37611
+ }
37644
37612
  return [
37645
37613
  "Initialization next step",
37646
37614
  "",
@@ -37648,6 +37616,87 @@ function formatAuthNextStep(options) {
37648
37616
  "如果缺少 Maker PAT,CLI 会在 init 流程内自动打开登录授权页面并完成本地保存。"
37649
37617
  ].join("\n");
37650
37618
  }
37619
+ function formatMakerClientRootsSummary(roots) {
37620
+ if (roots.status === "not_requested") {
37621
+ return "";
37622
+ }
37623
+ const lines = ["MCP client roots", "", `- status: ${roots.status}`];
37624
+ if (roots.status === "selected") {
37625
+ lines.push(
37626
+ `- selected_project_root: ${roots.selectedProjectRoot || roots.selectedRoot}`,
37627
+ `- reason: ${roots.reason}`
37628
+ );
37629
+ } else if (roots.status === "ambiguous") {
37630
+ lines.push(
37631
+ `- roots: ${roots.roots.join(", ") || "(none)"}`,
37632
+ `- maker_project_roots: ${roots.makerProjectRoots.join(", ") || "(none)"}`,
37633
+ "- next_action: Open a single Maker workspace, or pass target_dir explicitly for this call."
37634
+ );
37635
+ } else if (roots.status === "unsupported") {
37636
+ lines.push("- next_action: This client did not advertise MCP roots; falling back to MCP cwd.");
37637
+ } else if (roots.status === "unavailable") {
37638
+ lines.push(
37639
+ `- failure_message: ${roots.message || "(unknown)"}`,
37640
+ "- next_action: Could not read MCP roots; falling back to MCP cwd."
37641
+ );
37642
+ } else {
37643
+ lines.push("- next_action: No MCP roots are attached; using MCP cwd.");
37644
+ }
37645
+ return lines.join("\n");
37646
+ }
37647
+ function formatMakerSummaryNextAction(options) {
37648
+ var _a3, _b, _c, _d, _e;
37649
+ if (options.rootsAmbiguous) {
37650
+ return "";
37651
+ }
37652
+ if (!options.git.installed) {
37653
+ return "- next_action: Git 未安装。请先安装 Git,并执行 `git --version` 验证。";
37654
+ }
37655
+ if (!options.gitDirectoryStatus.isUsableMakerGitRepo) {
37656
+ const nextAction = options.gitDirectoryStatus.issue === "inside_parent_git_repo" ? "当前目录位于外层 Git 仓库中;请使用独立 Maker 项目目录重新 clone。" : "当前目录没有可用的独立 Maker Git 仓库;请运行 `taptap-maker init` 重新初始化。";
37657
+ return `- next_action: ${nextAction}`;
37658
+ }
37659
+ if (((_a3 = options.projectHealth) == null ? void 0 : _a3.status) === "misplaced_config") {
37660
+ return "- next_action: 修复 Maker 项目结构或配置问题后再构建;检查器不会自动移动或覆盖文件。";
37661
+ }
37662
+ if (((_b = options.projectHealth) == null ? void 0 : _b.status) === "error" && !options.projectHealth.issues.some((issue3) => issue3.code === "invalid_project_json")) {
37663
+ const settingsIssue = options.projectHealth.issues.find(
37664
+ (issue3) => issue3.code === "invalid_settings_json" || issue3.code === "invalid_project_settings"
37665
+ );
37666
+ if (settingsIssue) {
37667
+ return "- next_action: 恢复 .project/settings.json 的构建关键字段后再构建;保留合法的 @runtime 配置。";
37668
+ }
37669
+ return "- next_action: 修复 Maker 项目结构或配置问题后再构建;检查器不会自动移动或覆盖文件。";
37670
+ }
37671
+ if (options.projectInitialization) {
37672
+ switch (options.projectInitialization.status) {
37673
+ case "missing_taptap_identity":
37674
+ return "- next_action: 先调用 `generate_test_qrcode` 一次生成测试二维码元数据,再重试 `get_ad_config`。";
37675
+ case "invalid_project_json":
37676
+ return "- next_action: 从 Git 或完整副本恢复合法的 `.project/project.json`,不要依赖构建覆盖已有坏文件。";
37677
+ case "missing_project_json":
37678
+ return "- next_action: 仅当用户明确要求构建、提交或预览时调用 `maker_build_current_directory`。";
37679
+ default:
37680
+ break;
37681
+ }
37682
+ }
37683
+ if (((_c = options.projectHealth) == null ? void 0 : _c.status) === "error") {
37684
+ const settingsIssue = options.projectHealth.issues.find(
37685
+ (issue3) => issue3.code === "invalid_settings_json" || issue3.code === "invalid_project_settings"
37686
+ );
37687
+ if (settingsIssue) {
37688
+ return "- next_action: 恢复 .project/settings.json 的构建关键字段后再构建;保留合法的 @runtime 配置。";
37689
+ }
37690
+ return "- next_action: 修复 Maker 项目结构或配置问题后再构建;检查器不会自动移动或覆盖文件。";
37691
+ }
37692
+ if (((_d = options.projectHealth) == null ? void 0 : _d.status) === "warning") {
37693
+ return "- next_action: 调用 `maker_status_lite` 并设置 `detail=true` 查看项目结构告警后再继续。";
37694
+ }
37695
+ if (((_e = options.projectHealth) == null ? void 0 : _e.status) === "not_initialized") {
37696
+ return "- next_action: 仅当用户明确要求构建、提交或预览时调用 `maker_build_current_directory`。";
37697
+ }
37698
+ return "";
37699
+ }
37651
37700
  function formatMakerRemoteSyncSkipped() {
37652
37701
  return [
37653
37702
  "Maker remote sync",
@@ -39599,6 +39648,65 @@ function formatError2(error2) {
39599
39648
  return error2 instanceof Error ? error2.message : String(error2);
39600
39649
  }
39601
39650
 
39651
+ // src/maker/auth/patTap.ts
39652
+ function getObjectValue(data, key) {
39653
+ if (!data || typeof data !== "object") {
39654
+ return void 0;
39655
+ }
39656
+ return data[key];
39657
+ }
39658
+ function normalizeTapAuthResponse(data) {
39659
+ const body = data;
39660
+ const nested = getObjectValue(body, "data");
39661
+ const source = nested && typeof nested === "object" ? nested : body;
39662
+ const kid = source.kid;
39663
+ const macKey = source.mac_key;
39664
+ if (typeof kid !== "string" || kid.length === 0 || typeof macKey !== "string" || macKey.length === 0) {
39665
+ throw new Error("TapTap token response does not contain kid/mac_key");
39666
+ }
39667
+ return {
39668
+ kid,
39669
+ mac_key: macKey,
39670
+ token_type: typeof source.token_type === "string" ? source.token_type : "mac",
39671
+ mac_algorithm: typeof source.mac_algorithm === "string" ? source.mac_algorithm : "hmac-sha-1",
39672
+ raw: data
39673
+ };
39674
+ }
39675
+ function getMakerTapTokenUrl(environment) {
39676
+ const tapTokenUrl = getMakerEndpoints(environment).tapTokenUrl;
39677
+ return requireMakerEndpoint("tapTokenUrl", tapTokenUrl, environment);
39678
+ }
39679
+ async function requestTapAuthWithPat(manualPat, environment, options = {}) {
39680
+ const pat = requireMakerPat(manualPat);
39681
+ const response = await fetchWithTimeout(
39682
+ options.fetchImpl || fetch,
39683
+ getMakerTapTokenUrl(environment),
39684
+ {
39685
+ headers: {
39686
+ Authorization: `Bearer ${pat.token}`,
39687
+ Accept: "application/json"
39688
+ }
39689
+ },
39690
+ options.timeoutMs ?? DEFAULT_SHORT_FETCH_TIMEOUT_MS,
39691
+ "TapTap token request"
39692
+ );
39693
+ const text = await response.text();
39694
+ let json2 = {};
39695
+ if (text) {
39696
+ try {
39697
+ json2 = JSON.parse(text);
39698
+ } catch {
39699
+ json2 = { error: text };
39700
+ }
39701
+ }
39702
+ if (!response.ok) {
39703
+ throw new Error(`TapTap token request failed: HTTP ${response.status} ${JSON.stringify(json2)}`);
39704
+ }
39705
+ const auth2 = normalizeTapAuthResponse(json2);
39706
+ saveTapAuth(auth2);
39707
+ return auth2;
39708
+ }
39709
+
39602
39710
  // src/maker/cli/mcpLauncher.ts
39603
39711
  import fs18 from "node:fs";
39604
39712
  import path19 from "node:path";
@@ -39752,7 +39860,7 @@ function uniqueStrings(values) {
39752
39860
  }
39753
39861
 
39754
39862
  // src/maker/cli/commands.ts
39755
- var VERSION2 = true ? "0.0.28" : "dev";
39863
+ var VERSION2 = true ? "0.0.29-beta.2" : "dev";
39756
39864
  var DEFAULT_MCP_NAME = "taptap-maker";
39757
39865
  var MAKER_NPM_PACKAGE = "@taptap/maker";
39758
39866
  var TWO_PART_COMMANDS = /* @__PURE__ */ new Set(["pat", "mcp", "dev-kit", "logs", "python", "lua-lsp", "agents"]);
@@ -40651,7 +40759,9 @@ async function runUpgrade(parsed, ctx) {
40651
40759
  env,
40652
40760
  mcp_install: installResults,
40653
40761
  agents_policy: agentsResult,
40654
- restart_required: true
40762
+ restart_required: false,
40763
+ apply_mode: "next_mcp_start",
40764
+ current_session: "preserved"
40655
40765
  };
40656
40766
  if (!payload.ok) {
40657
40767
  process.exitCode = 1;
@@ -40672,7 +40782,8 @@ async function runUpgrade(parsed, ctx) {
40672
40782
  `- previous_status: ${agentsResult.previousStatus}`
40673
40783
  ].join("\n") : "AGENTS.md managed policy skipped: current directory is not bound to a Maker project.",
40674
40784
  "",
40675
- "Restart or reconnect the AI client MCP session so the updated server and AGENTS.md are loaded.",
40785
+ "Current MCP session remains unchanged and continues using the existing version.",
40786
+ "The updated package and AGENTS.md will take effect on the next MCP start or user-requested reconnect.",
40676
40787
  ""
40677
40788
  ].join("\n")
40678
40789
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taptap/maker",
3
- "version": "0.0.28",
3
+ "version": "0.0.29-beta.2",
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.
@@ -230,8 +228,9 @@ For a bound project, always inspect `maker://status` or `maker_status_lite` befo
230
228
  development after an MCP/package upgrade. If the status includes an `AGENTS.md` section with
231
229
  `status: missing_file`, `missing_block`, or `outdated`, run
232
230
  `taptap-maker agents update --target-dir <project dir>` or `taptap-maker upgrade --target-dir
233
- <project dir>` before making gameplay/code changes. After updating `AGENTS.md`, tell the user to
234
- restart/reconnect the AI client or open a new conversation so the updated instructions are loaded.
231
+ <project dir>` before making gameplay/code changes. After updating `AGENTS.md`, tell the user the
232
+ current session remains usable; updated instructions load on the next MCP start or user-requested
233
+ reconnect. Do not require a new conversation.
235
234
 
236
235
  When this file is missing and the user asks to clone, initialize, or continue Maker local
237
236
  development, do not ask the user for an app_id directly. Follow the initialization workflow.
@@ -603,12 +602,12 @@ being tied to a specific project folder.
603
602
 
604
603
  ## Remote Sync Status
605
604
 
606
- For a bound Maker project, `maker://status` and `maker_status_lite` include `Maker remote sync`.
607
- Read this section before the user starts editing in a fresh conversation:
605
+ For a bound Maker project, detailed status includes `Maker remote sync`. Read the default local summary
606
+ before routine work; use `maker_status_lite` with `detail: true` before explicit sync diagnostics:
608
607
 
609
- - For frequent polling or quick local-only status checks, call `maker_status_lite` with
610
- `skip_remote_sync: true` to avoid `git fetch origin` and AI dev kit latest-version network round
611
- trips on every status read.
608
+ - For frequent polling or quick local-only status checks, call the default `maker_status_lite`; it is
609
+ already local-only. In detail mode, pass `skip_remote_sync: true` to avoid `git fetch origin` and
610
+ AI dev kit latest-version network round trips.
612
611
  - `up_to_date`: continue development.
613
612
  - `needs_pull` with `local_changes: no`: tell the user the workspace is clean and the local AI can
614
613
  run `git pull --ff-only origin main` before editing.
@@ -24,6 +24,7 @@ This workflow upgrades only the current machine and the current Maker project di
24
24
  ## Required Steps
25
25
 
26
26
  1. Read `maker://status`; if resources are unavailable, fall back to `maker_status_lite`.
27
+ Use `maker_status_lite({ detail: true })` only when package or connection diagnostics are explicitly needed.
27
28
  If the `Maker MCP package update` section reports `required_upgrade`, explain the version reason
28
29
  to the user first.
29
30
  Do not run any upgrade command before that explanation and approval step.
@@ -47,10 +48,11 @@ If the user only wants to refresh the machine-level MCP command and no Maker pro
47
48
  confirmed, explain that this refresh will not update project `AGENTS.md`, then run
48
49
  `npx -y -p @taptap/maker taptap-maker upgrade` without `--target-dir` only after the user agrees.
49
50
 
50
- 5. Ask the user to restart/reconnect the AI client MCP session, or open a new AI conversation.
51
- Current conversations usually do not hot-load a new MCP process or re-read `AGENTS.md`.
52
- 6. After restart/reconnect, verify by reading `maker://status`; if resources are unavailable, call
53
- `maker_status_lite`.
51
+ 5. Tell the user that the current MCP session remains available and continues using the existing
52
+ version and proxy tools. The updated package and `AGENTS.md` take effect on the next MCP start or
53
+ user-requested reconnect; do not require a new conversation.
54
+ 6. After the next restart/reconnect, verify by reading `maker://status`; if resources are unavailable,
55
+ call `maker_status_lite`.
54
56
 
55
57
  ## Status-Driven Upgrade Notes
56
58
 
@@ -61,8 +63,8 @@ confirmed, explain that this refresh will not update project `AGENTS.md`, then r
61
63
  `minimum_supported`, `blacklist`, and `message`.
62
64
  - `required_upgrade` means the local AI must explain the reason, ask the user for approval, and only
63
65
  then run the appropriate upgrade command.
64
- - After any upgrade, restart or reconnect the MCP session before trusting the new status, then
65
- verify with `maker://status` or `maker_status_lite`.
66
+ - After any upgrade, the current session remains usable. Restart or reconnect only when the user wants
67
+ the new package loaded, then verify with `maker://status` or `maker_status_lite`.
66
68
 
67
69
  ## Expected Effects
68
70
 
@@ -103,8 +105,8 @@ When a user upgrades MCP and later opens an old Maker project:
103
105
  npx -y -p @taptap/maker taptap-maker agents update --target-dir <PROJECT_DIR>
104
106
  ```
105
107
 
106
- 3. Tell the user to restart/reconnect the AI client or open a new conversation so the updated
107
- `AGENTS.md` instructions are loaded.
108
+ 3. Tell the user the current session remains usable. The updated `AGENTS.md` instructions load on the
109
+ next MCP start or user-requested reconnect; do not require a new conversation.
108
110
 
109
111
  Status reads are intentionally read-only. Do not modify `AGENTS.md` from `maker://status` or
110
112
  `maker_status_lite`; use the CLI update command.