@lobehub/cli 0.0.172 → 0.0.174

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/index.js CHANGED
@@ -413,7 +413,7 @@ var init_heteroCliArgs = __esmMin((() => {
413
413
  }));
414
414
 
415
415
  //#endregion
416
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/util.js
416
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
417
417
  function getEnumValues(entries) {
418
418
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
419
419
  return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -693,17 +693,6 @@ function prefixIssues(path, issues) {
693
693
  function unwrapMessage(message) {
694
694
  return typeof message === "string" ? message : message?.message;
695
695
  }
696
- /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
697
- function sizeCaps(defChecks) {
698
- const caps = [];
699
- for (const ch of defChecks ?? []) {
700
- const d = ch._zod.def;
701
- if (!/_(length|size)$|_equals$/.test(d.check)) break;
702
- const max = d.maximum ?? d.length ?? d.size;
703
- if (max >= 0) caps.push([max, ch]);
704
- }
705
- return caps;
706
- }
707
696
  function attachSchema(issues, start, inst) {
708
697
  var _a;
709
698
  for (let i = start; i < issues.length; i++) (_a = issues[i]).schema ?? (_a.schema = inst);
@@ -964,7 +953,7 @@ var init_util$3 = __esmMin((() => {
964
953
  }));
965
954
 
966
955
  //#endregion
967
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/core.js
956
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
968
957
  function newError(Definition) {
969
958
  const E = _E;
970
959
  if (E) {
@@ -1076,7 +1065,7 @@ var init_core$3 = __esmMin((() => {
1076
1065
  }));
1077
1066
 
1078
1067
  //#endregion
1079
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/errors.js
1068
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.js
1080
1069
  function _getMessage() {
1081
1070
  const internals = this._zod;
1082
1071
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -1196,7 +1185,7 @@ var init_errors$3 = __esmMin((() => {
1196
1185
  }));
1197
1186
 
1198
1187
  //#endregion
1199
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/parse.js
1188
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.js
1200
1189
  function finalizeParams(callee, params) {
1201
1190
  return {
1202
1191
  callee: params?.callee ?? callee,
@@ -1403,7 +1392,7 @@ var init_parse$1 = __esmMin((() => {
1403
1392
  }));
1404
1393
 
1405
1394
  //#endregion
1406
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/regexes.js
1395
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/regexes.js
1407
1396
  function nanoidOfLength(length) {
1408
1397
  return new RegExp(`^[a-zA-Z0-9_-]{${length}}$`);
1409
1398
  }
@@ -1470,7 +1459,7 @@ var init_regexes = __esmMin((() => {
1470
1459
  }));
1471
1460
 
1472
1461
  //#endregion
1473
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/checks.js
1462
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.js
1474
1463
  var $ZodCheck, _whenHasLength, numericOriginMap, $ZodCheckLessThan, $ZodCheckGreaterThan, $ZodCheckMultipleOf, $ZodCheckNumberFormat, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckLengthEquals, $ZodCheckStringFormat, $ZodCheckRegex, $ZodCheckLowerCase, $ZodCheckUpperCase, $ZodCheckIncludes, $ZodCheckStartsWith, $ZodCheckEndsWith, $ZodCheckOverwrite;
1475
1464
  var init_checks$1 = __esmMin((() => {
1476
1465
  init_core$3();
@@ -1772,7 +1761,7 @@ var init_checks$1 = __esmMin((() => {
1772
1761
  }));
1773
1762
 
1774
1763
  //#endregion
1775
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/doc.js
1764
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/doc.js
1776
1765
  var Doc;
1777
1766
  var init_doc$1 = __esmMin((() => {
1778
1767
  Doc = class {
@@ -1810,18 +1799,18 @@ var init_doc$1 = __esmMin((() => {
1810
1799
  }));
1811
1800
 
1812
1801
  //#endregion
1813
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/versions.js
1802
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.js
1814
1803
  var version$3;
1815
1804
  var init_versions = __esmMin((() => {
1816
1805
  version$3 = {
1817
1806
  major: 4,
1818
1807
  minor: 6,
1819
- patch: 7
1808
+ patch: 5
1820
1809
  };
1821
1810
  }));
1822
1811
 
1823
1812
  //#endregion
1824
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/schemas.js
1813
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.js
1825
1814
  async function validateAsync(inst, value) {
1826
1815
  const ctx = { async: true };
1827
1816
  return toStandardResult(await inst._zod.run({
@@ -1929,25 +1918,6 @@ function isValidJWT$1(token, algorithm = null) {
1929
1918
  return false;
1930
1919
  }
1931
1920
  }
1932
- function capSize(inst, size) {
1933
- const caps = sizeCaps(inst._zod.def.checks);
1934
- if (!caps.length) return;
1935
- const cap = Math.min(...caps.map((c) => c[0]));
1936
- const parse = inst._zod.parse;
1937
- inst._zod.parse = (payload, ctx) => {
1938
- const n = size(payload.value);
1939
- if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
1940
- for (const [max, ch] of sizeCaps(inst._zod.def.checks)) if (n > max && ch._zod.def.when(payload)) {
1941
- const start = payload.issues.length;
1942
- ch._zod.check(payload);
1943
- payload.issues[start].continue = false;
1944
- attachSchema(payload.issues, start, inst);
1945
- return payload;
1946
- }
1947
- }
1948
- return parse(payload, ctx);
1949
- };
1950
- }
1951
1921
  function handleArrayResult(result, final, index) {
1952
1922
  if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
1953
1923
  final.value[index] = result.value;
@@ -2214,7 +2184,7 @@ function handleRefineResult(result, payload, input, inst) {
2214
2184
  payload.issues.push(issue(_iss));
2215
2185
  }
2216
2186
  }
2217
- var $ZodType, toStandardResult, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, URL_BAD_FORMAT, URL_UNPARSEABLE, asciiTabOrNewline, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, ipv6Alphabet, $ZodIPv6, $ZodCIDRv4, $ZodCIDRv6, base64Charset, $ZodBase64, base64urlCharset, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodUndefined, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodDate, arraySize, $ZodArray, NO_SYMBOL_KEYS, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodDiscriminatedUnion, $ZodIntersection, $ZodRecord, $ZodEnum, $ZodLiteral, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodCatch, $ZodPipe, $ZodPreprocess, $ZodReadonly, $ZodLazy, $ZodCustom;
2187
+ var $ZodType, toStandardResult, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, URL_BAD_FORMAT, URL_UNPARSEABLE, asciiTabOrNewline, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, ipv6Alphabet, $ZodIPv6, $ZodCIDRv4, $ZodCIDRv6, base64Charset, $ZodBase64, base64urlCharset, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodUndefined, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodDate, $ZodArray, NO_SYMBOL_KEYS, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodDiscriminatedUnion, $ZodIntersection, $ZodRecord, $ZodEnum, $ZodLiteral, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodCatch, $ZodPipe, $ZodPreprocess, $ZodReadonly, $ZodLazy, $ZodCustom;
2218
2188
  var init_schemas$1 = __esmMin((() => {
2219
2189
  init_checks$1();
2220
2190
  init_core$3();
@@ -2661,7 +2631,6 @@ var init_schemas$1 = __esmMin((() => {
2661
2631
  return payload;
2662
2632
  };
2663
2633
  });
2664
- arraySize = (input) => Array.isArray(input) ? input.length : -1;
2665
2634
  $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
2666
2635
  $ZodType.init(inst, def);
2667
2636
  const memo = globalConfig.memoizer;
@@ -2695,7 +2664,6 @@ var init_schemas$1 = __esmMin((() => {
2695
2664
  if (proms.length) return Promise.all(proms).then(() => payload);
2696
2665
  return payload;
2697
2666
  };
2698
- capSize(inst, arraySize);
2699
2667
  });
2700
2668
  NO_SYMBOL_KEYS = [];
2701
2669
  $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
@@ -3353,7 +3321,7 @@ var init_schemas$1 = __esmMin((() => {
3353
3321
  }));
3354
3322
 
3355
3323
  //#endregion
3356
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/memoizer.js
3324
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
3357
3325
  function isRef$1(value) {
3358
3326
  return value !== null && typeof value === "object";
3359
3327
  }
@@ -3609,7 +3577,7 @@ var init_memoizer = __esmMin((() => {
3609
3577
  }));
3610
3578
 
3611
3579
  //#endregion
3612
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/en.js
3580
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.js
3613
3581
  function en_default() {
3614
3582
  return { localeError: error() };
3615
3583
  }
@@ -3722,7 +3690,7 @@ var init_en$1 = __esmMin((() => {
3722
3690
  }));
3723
3691
 
3724
3692
  //#endregion
3725
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/registries.js
3693
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.js
3726
3694
  function registry$1() {
3727
3695
  return new $ZodRegistry();
3728
3696
  }
@@ -3773,11 +3741,11 @@ var init_registries = __esmMin((() => {
3773
3741
  }));
3774
3742
 
3775
3743
  //#endregion
3776
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/compile.js
3744
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/compile.js
3777
3745
  var init_compile = __esmMin((() => {}));
3778
3746
 
3779
3747
  //#endregion
3780
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/api.js
3748
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.js
3781
3749
  function snapshotChecks(def) {
3782
3750
  if (def.checks) def.checks = [...def.checks];
3783
3751
  return def;
@@ -4337,7 +4305,7 @@ var init_api = __esmMin((() => {
4337
4305
  }));
4338
4306
 
4339
4307
  //#endregion
4340
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js
4308
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
4341
4309
  function assignProps(target, ...sources) {
4342
4310
  for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp$1(target, key, source[key]);
4343
4311
  return target;
@@ -4778,7 +4746,7 @@ var init_to_json_schema = __esmMin((() => {
4778
4746
  }));
4779
4747
 
4780
4748
  //#endregion
4781
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/json-schema-processors.js
4749
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
4782
4750
  function aggregateChecks(schema) {
4783
4751
  const agg = {};
4784
4752
  const def = schema._zod.def;
@@ -5426,7 +5394,7 @@ var init_json_schema_processors = __esmMin((() => {
5426
5394
  }));
5427
5395
 
5428
5396
  //#endregion
5429
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/index.js
5397
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/index.js
5430
5398
  var init_core$2 = __esmMin((() => {
5431
5399
  init_core$3();
5432
5400
  init_parse$1();
@@ -5448,13 +5416,13 @@ var init_core$2 = __esmMin((() => {
5448
5416
  }));
5449
5417
 
5450
5418
  //#endregion
5451
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/checks.js
5419
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/checks.js
5452
5420
  var init_checks = __esmMin((() => {
5453
5421
  init_core$2();
5454
5422
  }));
5455
5423
 
5456
5424
  //#endregion
5457
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/errors.js
5425
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.js
5458
5426
  function _lazyMethod(proto, key, make) {
5459
5427
  Object.defineProperty(proto, key, {
5460
5428
  configurable: true,
@@ -5510,7 +5478,7 @@ var init_errors$2 = __esmMin((() => {
5510
5478
  }));
5511
5479
 
5512
5480
  //#endregion
5513
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/parse.js
5481
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.js
5514
5482
  var parse$3, parseAsync, safeParse, safeParseAsync, encode$3, decode$2, encodeAsync, decodeAsync, safeEncode, safeDecode, safeEncodeAsync, safeDecodeAsync;
5515
5483
  var init_parse = __esmMin((() => {
5516
5484
  init_core$2();
@@ -5530,7 +5498,7 @@ var init_parse = __esmMin((() => {
5530
5498
  }));
5531
5499
 
5532
5500
  //#endregion
5533
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
5501
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
5534
5502
  function _ensureDefaultLocale() {
5535
5503
  if (!globalConfig.localeError) config$1(en_default());
5536
5504
  }
@@ -6519,7 +6487,7 @@ var init_schemas = __esmMin((() => {
6519
6487
  }));
6520
6488
 
6521
6489
  //#endregion
6522
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/compat.js
6490
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/compat.js
6523
6491
  var ZodIssueCode$1, ZodFirstPartyTypeKind$1;
6524
6492
  var init_compat = __esmMin((() => {
6525
6493
  init_core$2();
@@ -6541,7 +6509,7 @@ var init_compat = __esmMin((() => {
6541
6509
  }));
6542
6510
 
6543
6511
  //#endregion
6544
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/iso.js
6512
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/iso.js
6545
6513
  function datetime(params) {
6546
6514
  return _isoDateTime(ZodISODateTime, params);
6547
6515
  }
@@ -6554,7 +6522,7 @@ var init_iso = __esmMin((() => {
6554
6522
  }));
6555
6523
 
6556
6524
  //#endregion
6557
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/coerce.js
6525
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/coerce.js
6558
6526
  function number(params) {
6559
6527
  return _coercedNumber(ZodNumber$1, params);
6560
6528
  }
@@ -6567,7 +6535,7 @@ var init_coerce = __esmMin((() => {
6567
6535
  }));
6568
6536
 
6569
6537
  //#endregion
6570
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/external.js
6538
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/external.js
6571
6539
  var init_external$1 = __esmMin((() => {
6572
6540
  init_core$2();
6573
6541
  init_schemas();
@@ -6587,7 +6555,7 @@ var init_external$1 = __esmMin((() => {
6587
6555
  }));
6588
6556
 
6589
6557
  //#endregion
6590
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/index.js
6558
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/index.js
6591
6559
  var init_zod$1 = __esmMin((() => {
6592
6560
  init_external$1();
6593
6561
  init_external$1();
@@ -60205,6 +60173,60 @@ var init_config = __esmMin((() => {
60205
60173
  QODER_CLI_INSTALL_DOCS_URL = qoderDescriptor.install.docsUrl;
60206
60174
  }));
60207
60175
 
60176
+ //#endregion
60177
+ //#region ../../packages/heterogeneous-agents/src/spawn/antigravity.ts
60178
+ /** agy reads a single JSONL user message, then finishes the turn when stdin closes. */
60179
+ const ANTIGRAVITY_BASE_ARGS = [
60180
+ "--input-format",
60181
+ "stream-json",
60182
+ "--output-format",
60183
+ "stream-json",
60184
+ "--dangerously-skip-permissions"
60185
+ ];
60186
+ /** A Connect service can inherit an old SSH session that makes agy skip the desktop keyring. */
60187
+ const getAntigravitySpawnEnv = (env) => {
60188
+ if (env.LOBEHUB_CONNECT_SERVICE !== "1") return env;
60189
+ const childEnv = { ...env };
60190
+ delete childEnv.SSH_CLIENT;
60191
+ delete childEnv.SSH_CONNECTION;
60192
+ delete childEnv.SSH_TTY;
60193
+ return childEnv;
60194
+ };
60195
+ const FULL_ACCESS_SETTINGS = JSON.stringify({
60196
+ agentMode: "",
60197
+ allowNonWorkspaceAccess: true,
60198
+ enableTerminalSandbox: false
60199
+ });
60200
+ const MANAGED_FLAGS = new Set([
60201
+ "--",
60202
+ "--input-format",
60203
+ "--output-format",
60204
+ "--print",
60205
+ "--prompt",
60206
+ "--prompt-interactive",
60207
+ "--remote-control",
60208
+ "-i",
60209
+ "-p",
60210
+ "--continue",
60211
+ "-c",
60212
+ "--conversation"
60213
+ ]);
60214
+ const buildAntigravityArgs = ({ extraArgs = [], resumeSessionId }) => {
60215
+ const conflicting = extraArgs.find((arg) => MANAGED_FLAGS.has(arg.split("=")[0]));
60216
+ if (conflicting) throw new Error(`LobeHub manages Antigravity's prompt, output and session flags: ${conflicting}`);
60217
+ const hasCustomPermissionSettings = extraArgs.some((arg) => [
60218
+ "--mode",
60219
+ "--sandbox",
60220
+ "--settings"
60221
+ ].includes(arg.split("=")[0]));
60222
+ return [
60223
+ ...ANTIGRAVITY_BASE_ARGS,
60224
+ ...hasCustomPermissionSettings ? [] : ["--settings", FULL_ACCESS_SETTINGS],
60225
+ ...resumeSessionId ? ["--conversation", resumeSessionId] : [],
60226
+ ...extraArgs
60227
+ ];
60228
+ };
60229
+
60208
60230
  //#endregion
60209
60231
  //#region ../../packages/heterogeneous-agents/src/spawn/cliSpawn.ts
60210
60232
  var WINDOWS_EXE_EXT_PATTERN, WINDOWS_MAX_COMMAND_LINE_LENGTH, WINDOWS_NODE_EXE_PATTERN, isWindows$1, quoteWindowsCommandLineArgument, assertWindowsCommandLineFits, isPathLikeCommand$1, fileExists$1, execFileString, pickWindowsNodeExecutable, joinShimRelativePath, resolveShimPathToken, getExistingShimPathToken, resolveWindowsNodeCommand, getNodeCommand, getNodeScriptTarget, inferWindowsNodeScriptFromShim, inferWindowsExecutableFromShim, inferWindowsNpmShimTarget, resolveWindowsBareCommand, resolveCliSpawnPlan;
@@ -60938,11 +60960,11 @@ const fetchAntigravityQuota = async (params = {}) => {
60938
60960
  });
60939
60961
  try {
60940
60962
  const resolved = await resolveHeteroSpawnCommand("antigravity", params.command);
60941
- const env = {
60963
+ const env = getAntigravitySpawnEnv({
60942
60964
  ...process.env,
60943
60965
  ...resolved.pathEnv ? { PATH: resolved.pathEnv } : {},
60944
60966
  ...params.env
60945
- };
60967
+ });
60946
60968
  const plan = await resolveCliSpawnPlan(resolved.command, [
60947
60969
  "-p",
60948
60970
  "/usage",
@@ -71686,51 +71708,6 @@ var AcpAgentSession = class {
71686
71708
  }
71687
71709
  };
71688
71710
 
71689
- //#endregion
71690
- //#region ../../packages/heterogeneous-agents/src/spawn/antigravity.ts
71691
- /** agy reads a single JSONL user message, then finishes the turn when stdin closes. */
71692
- const ANTIGRAVITY_BASE_ARGS = [
71693
- "--input-format",
71694
- "stream-json",
71695
- "--output-format",
71696
- "stream-json",
71697
- "--dangerously-skip-permissions"
71698
- ];
71699
- const FULL_ACCESS_SETTINGS = JSON.stringify({
71700
- agentMode: "",
71701
- allowNonWorkspaceAccess: true,
71702
- enableTerminalSandbox: false
71703
- });
71704
- const MANAGED_FLAGS = new Set([
71705
- "--",
71706
- "--input-format",
71707
- "--output-format",
71708
- "--print",
71709
- "--prompt",
71710
- "--prompt-interactive",
71711
- "--remote-control",
71712
- "-i",
71713
- "-p",
71714
- "--continue",
71715
- "-c",
71716
- "--conversation"
71717
- ]);
71718
- const buildAntigravityArgs = ({ extraArgs = [], resumeSessionId }) => {
71719
- const conflicting = extraArgs.find((arg) => MANAGED_FLAGS.has(arg.split("=")[0]));
71720
- if (conflicting) throw new Error(`LobeHub manages Antigravity's prompt, output and session flags: ${conflicting}`);
71721
- const hasCustomPermissionSettings = extraArgs.some((arg) => [
71722
- "--mode",
71723
- "--sandbox",
71724
- "--settings"
71725
- ].includes(arg.split("=")[0]));
71726
- return [
71727
- ...ANTIGRAVITY_BASE_ARGS,
71728
- ...hasCustomPermissionSettings ? [] : ["--settings", FULL_ACCESS_SETTINGS],
71729
- ...resumeSessionId ? ["--conversation", resumeSessionId] : [],
71730
- ...extraArgs
71731
- ];
71732
- };
71733
-
71734
71711
  //#endregion
71735
71712
  //#region ../../packages/heterogeneous-agents/src/spawn/antigravityLiveInput.ts
71736
71713
  /**
@@ -75530,11 +75507,14 @@ const getHeterogeneousAgentPresetEnv = (agentType, agentEnv) => {
75530
75507
  * presets, then the agent's own `env` on top. An entrypoint the agent cleared
75531
75508
  * is removed from the result, so an inherited one does not stand in for it.
75532
75509
  */
75533
- const getHeterogeneousAgentSpawnEnv = (agentType, agentEnv, inheritedEnv) => dropClearedClaudeCodeEntrypoint({
75534
- ...inheritedEnv,
75535
- ...getHeterogeneousAgentPresetEnv(agentType, agentEnv),
75536
- ...agentEnv
75537
- });
75510
+ const getHeterogeneousAgentSpawnEnv = (agentType, agentEnv, inheritedEnv) => {
75511
+ const env = dropClearedClaudeCodeEntrypoint({
75512
+ ...inheritedEnv,
75513
+ ...getHeterogeneousAgentPresetEnv(agentType, agentEnv),
75514
+ ...agentEnv
75515
+ });
75516
+ return agentType === "antigravity" ? getAntigravitySpawnEnv(env) : env;
75517
+ };
75538
75518
 
75539
75519
  //#endregion
75540
75520
  //#region ../../packages/heterogeneous-agents/src/spawn/workingDirectory.ts
@@ -306243,10 +306223,11 @@ const listHeterogeneousAgentModels = async (params) => {
306243
306223
  const callerEnv = params.env ?? process.env;
306244
306224
  const resolved = await resolveCatalogCommand(params, callerEnv);
306245
306225
  const mergedPath = [...new Set([callerEnv.PATH, resolved.pathEnv].filter(Boolean).join(path.delimiter).split(path.delimiter))].filter(Boolean).join(path.delimiter);
306246
- const env = {
306226
+ const mergedEnv = {
306247
306227
  ...callerEnv,
306248
306228
  ...mergedPath ? { PATH: mergedPath } : {}
306249
306229
  };
306230
+ const env = params.type === "antigravity" ? getAntigravitySpawnEnv(mergedEnv) : mergedEnv;
306250
306231
  try {
306251
306232
  if (params.type === "codex") return {
306252
306233
  models: await listCodexModels({
@@ -310114,13 +310095,13 @@ var init_dialects_BAIiebX0 = __esmMin((() => {
310114
310095
  }));
310115
310096
 
310116
310097
  //#endregion
310117
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/index.js
310098
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/index.js
310118
310099
  var init_classic = __esmMin((() => {
310119
310100
  init_external$1();
310120
310101
  }));
310121
310102
 
310122
310103
  //#endregion
310123
- //#region node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/index.js
310104
+ //#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/index.js
310124
310105
  var init_v4 = __esmMin((() => {
310125
310106
  init_classic();
310126
310107
  }));
@@ -557892,6 +557873,7 @@ function registerConnectCommand(program) {
557892
557873
  }
557893
557874
  if (options.daemon) return handleDaemonStart(options);
557894
557875
  const isServiceChild = options.serviceChild || process.env.LOBEHUB_CONNECT_SERVICE === "1";
557876
+ if (isServiceChild) process.env.LOBEHUB_CONNECT_SERVICE = "1";
557895
557877
  await runConnect(options, options.daemonChild || isServiceChild || process.env.LOBEHUB_DAEMON === "1");
557896
557878
  });
557897
557879
  connectCmd.command("capabilities").description("Report native agent runtimes supported by this CLI and installed binaries").action(async () => {
package/man/man1/lh.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .\" Code generated by `npm run man:generate`; DO NOT EDIT.
2
2
  .\" Manual command details come from the Commander command tree.
3
- .TH LH 1 "" "@lobehub/cli 0.0.172" "User Commands"
3
+ .TH LH 1 "" "@lobehub/cli 0.0.174" "User Commands"
4
4
  .SH NAME
5
5
  lh \- LobeHub CLI \- manage and connect to LobeHub services
6
6
  .SH SYNOPSIS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/cli",
3
- "version": "0.0.172",
3
+ "version": "0.0.174",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/lobehub/lobehub",
@@ -83,5 +83,5 @@
83
83
  "access": "public",
84
84
  "registry": "https://registry.npmjs.org"
85
85
  },
86
- "gitHead": "09a8dea486a1360e04fac1859e6f7d54bdd6a31e"
86
+ "gitHead": "a01f830cd7322fd5ffcf431eccd14dde0f8e9c81"
87
87
  }