botmux 2.71.4 → 2.71.5

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/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAo2IA;;;;;;;;;;;GAWG;AACH,wBAAsB,OAAO,CAC3B,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EACvC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,qBAAqB,EAAE,SAAS,CAAC,EAC9F,KAAK,EAAE,MAAM,EACb,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,2BAA2B,EAAE,UAAU,GAAG,IAAI,CAAC,GACzF,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CA+F7B"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AA01IA;;;;;;;;;;;GAWG;AACH,wBAAsB,OAAO,CAC3B,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EACvC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,qBAAqB,EAAE,SAAS,CAAC,EAC9F,KAAK,EAAE,MAAM,EACb,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,2BAA2B,EAAE,UAAU,GAAG,IAAI,CAAC,GACzF,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CA8F7B"}
package/dist/cli.js CHANGED
@@ -4188,8 +4188,7 @@ botmux create-group — 用一组机器人新建飞书群
4188
4188
  /**
4189
4189
  * postAsk: 找到 daemon → POST /api/asks → 返回 AskResult。
4190
4190
  * 连接失败 / HTTP 错误时抛出带 exitCode 属性的 Error:
4191
- * - exitCode=3:daemon 不可达或 HTTP 非 400
4192
- * - exitCode=2:400 + no_approvers
4191
+ * - exitCode=3:daemon 不可达或 HTTP 错误
4193
4192
  */
4194
4193
  async function postAsk(body) {
4195
4194
  const larkAppId = body.larkAppId;
@@ -4221,11 +4220,6 @@ async function postAsk(body) {
4221
4220
  errBody = (await res.text()).slice(0, 200);
4222
4221
  }
4223
4222
  catch { /* */ }
4224
- if (res.status === 400 && /no_approvers/.test(errBody)) {
4225
- const err = new Error('botmux ask: 当前会话没有可批准者(session.owner 不在 bot.allowedUsers 里,且 --approver 未指定)');
4226
- err.exitCode = 2;
4227
- throw err;
4228
- }
4229
4223
  const err = new Error(`botmux ask: daemon HTTP ${res.status}: ${errBody}`);
4230
4224
  err.exitCode = 3;
4231
4225
  throw err;
@@ -4271,7 +4265,6 @@ async function cmdAsk(sub, rest) {
4271
4265
  const optionsRaw = argValue(rest, '--options');
4272
4266
  const timeoutRaw = argValue(rest, '--timeout');
4273
4267
  const useJson = rest.includes('--json');
4274
- const approverArgs = argValues(rest, '--approver');
4275
4268
  const positionalArgs = positionals(rest, ['--json']);
4276
4269
  let options;
4277
4270
  let timeoutMs;
@@ -4300,7 +4293,6 @@ async function cmdAsk(sub, rest) {
4300
4293
  options,
4301
4294
  prompt,
4302
4295
  timeoutMs,
4303
- approvers: approverArgs,
4304
4296
  };
4305
4297
  let result;
4306
4298
  try {
@@ -4425,7 +4417,6 @@ export async function runHook(payload, env, postAskFn, cliId, resolveAdoptRouteF
4425
4417
  rootMessageId: routeRoot,
4426
4418
  questions: parsed.questions,
4427
4419
  timeoutMs,
4428
- approvers: [],
4429
4420
  };
4430
4421
  let result;
4431
4422
  try {