openmeld 0.3.235 → 0.3.237

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.
Files changed (91) hide show
  1. package/dist/{add-me-membership-BVt0EFQ2.js → add-me-membership-BEqSnfgo.js} +2 -2
  2. package/dist/{add-me-membership-BVt0EFQ2.js.map → add-me-membership-BEqSnfgo.js.map} +1 -1
  3. package/dist/{agents-Bl_W0SLT.js → agents-_Hh6L3Fi.js} +9 -9
  4. package/dist/{agents-Bl_W0SLT.js.map → agents-_Hh6L3Fi.js.map} +1 -1
  5. package/dist/{api-client-foundation-D6zHrrGV.js → api-client-foundation-CGc8AuMo.js} +3 -3
  6. package/dist/{api-client-foundation-D6zHrrGV.js.map → api-client-foundation-CGc8AuMo.js.map} +1 -1
  7. package/dist/{api-client-foundation-BHjffwwr.js → api-client-foundation-ZuYF2Uah.js} +1 -1
  8. package/dist/{auth-session-CjxqNKvh.js → auth-session-B3oyTcSI.js} +2 -2
  9. package/dist/{auth-session-CjxqNKvh.js.map → auth-session-B3oyTcSI.js.map} +1 -1
  10. package/dist/auth-session-CoFlCq7_.js +4 -0
  11. package/dist/{channel-BW2_rI6u.js → channel-BB6aEY--.js} +3 -3
  12. package/dist/{channel-BW2_rI6u.js.map → channel-BB6aEY--.js.map} +1 -1
  13. package/dist/{command-vUyYaeck.js → command-D71NHS4j.js} +19 -19
  14. package/dist/command-D71NHS4j.js.map +1 -0
  15. package/dist/{computer-connection-LX1R7jD0.js → computer-connection-DyL3C3HO.js} +2 -2
  16. package/dist/{computer-connection-LX1R7jD0.js.map → computer-connection-DyL3C3HO.js.map} +1 -1
  17. package/dist/{computer-connection-review-Bbp4nzXl.js → computer-connection-review-BXuXP6KH.js} +5 -5
  18. package/dist/{computer-connection-review-Bbp4nzXl.js.map → computer-connection-review-BXuXP6KH.js.map} +1 -1
  19. package/dist/{computer-disconnect-fbLphD7-.js → computer-disconnect-BXZKVvxj.js} +7 -7
  20. package/dist/{computer-disconnect-fbLphD7-.js.map → computer-disconnect-BXZKVvxj.js.map} +1 -1
  21. package/dist/{computer-setup-continuation-CcfcMexz.js → computer-setup-continuation-DOvxRtAh.js} +3 -3
  22. package/dist/{computer-setup-continuation-CcfcMexz.js.map → computer-setup-continuation-DOvxRtAh.js.map} +1 -1
  23. package/dist/{context-D3GnSqg8.js → context-43g3bIde.js} +3 -3
  24. package/dist/{context-D3GnSqg8.js.map → context-43g3bIde.js.map} +1 -1
  25. package/dist/{daemon-device-id-OMqh2F9_.js → daemon-device-id-Dwm7CHtX.js} +4 -4
  26. package/dist/{daemon-device-id-OMqh2F9_.js.map → daemon-device-id-Dwm7CHtX.js.map} +1 -1
  27. package/dist/{daemon-lifecycle-journal-DEQHGloF.js → daemon-lifecycle-journal-DrDyXoUO.js} +2 -2
  28. package/dist/{daemon-lifecycle-journal-DEQHGloF.js.map → daemon-lifecycle-journal-DrDyXoUO.js.map} +1 -1
  29. package/dist/{daemon-service-runtime-BDlPNE7y.js → daemon-service-runtime-D-tDDWWf.js} +2 -2
  30. package/dist/{daemon-service-runtime-BDlPNE7y.js.map → daemon-service-runtime-D-tDDWWf.js.map} +1 -1
  31. package/dist/{daemon-service-update-coordinator-D-yjJ2PV.js → daemon-service-update-coordinator-ykoOjGCd.js} +10 -10
  32. package/dist/{daemon-service-update-coordinator-D-yjJ2PV.js.map → daemon-service-update-coordinator-ykoOjGCd.js.map} +1 -1
  33. package/dist/{dispatch-owned-runtime-FNjbFwSu.js → dispatch-owned-runtime-eRa3wkl9.js} +6 -6
  34. package/dist/{dispatch-owned-runtime-FNjbFwSu.js.map → dispatch-owned-runtime-eRa3wkl9.js.map} +1 -1
  35. package/dist/{dist-Ccpvj1tf.js → dist-CaCD0K8a.js} +2 -2
  36. package/dist/{dist-Ccpvj1tf.js.map → dist-CaCD0K8a.js.map} +1 -1
  37. package/dist/{dist-CJL7LE-y.js → dist-DEjtwiDJ.js} +64 -6
  38. package/dist/dist-DEjtwiDJ.js.map +1 -0
  39. package/dist/{dist-MpN-h8da.js → dist-DGNsLSYJ.js} +1 -1
  40. package/dist/{elapsed-time-1d08oEQ3.js → elapsed-time-BnibmBPb.js} +5 -5
  41. package/dist/{elapsed-time-1d08oEQ3.js.map → elapsed-time-BnibmBPb.js.map} +1 -1
  42. package/dist/{entry-G1LraPT2.js → entry-CVxgr9uQ.js} +7 -7
  43. package/dist/{entry-G1LraPT2.js.map → entry-CVxgr9uQ.js.map} +1 -1
  44. package/dist/{installation-inventory-BsOTGp_X.js → installation-inventory-HHLOQ2g7.js} +3 -3
  45. package/dist/{installation-inventory-BsOTGp_X.js.map → installation-inventory-HHLOQ2g7.js.map} +1 -1
  46. package/dist/{installer-JpCPmqGj.js → installer-Bg4KA0DR.js} +2 -2
  47. package/dist/{installer-JpCPmqGj.js.map → installer-Bg4KA0DR.js.map} +1 -1
  48. package/dist/{meta-api-ClHCkzZB.js → meta-api-CjvtAPvQ.js} +4 -4
  49. package/dist/{meta-api-ClHCkzZB.js.map → meta-api-CjvtAPvQ.js.map} +1 -1
  50. package/dist/{openmeld-maintenance-worker-BuLMqEuI.js → openmeld-maintenance-worker-Cwv6_5UL.js} +9 -9
  51. package/dist/{openmeld-maintenance-worker-BuLMqEuI.js.map → openmeld-maintenance-worker-Cwv6_5UL.js.map} +1 -1
  52. package/dist/{openmeld-BrAKrRtb.js → openmeld-o_rTSEOO.js} +31 -31
  53. package/dist/{openmeld-BrAKrRtb.js.map → openmeld-o_rTSEOO.js.map} +1 -1
  54. package/dist/{openmeld-tools-update-join-3RJrWvrr.js → openmeld-tools-update-join-IFQf70sm.js} +4 -4
  55. package/dist/{openmeld-tools-update-join-3RJrWvrr.js.map → openmeld-tools-update-join-IFQf70sm.js.map} +1 -1
  56. package/dist/openmeld.js +4 -4
  57. package/dist/{prepare-provider-runtime-Y2WOwFlV.js → prepare-provider-runtime-B_huS5DY.js} +890 -39
  58. package/dist/prepare-provider-runtime-B_huS5DY.js.map +1 -0
  59. package/dist/{prepare-session-executor-B61bBZz0.js → prepare-session-executor-WWjgnqsh.js} +18 -18
  60. package/dist/{prepare-session-executor-B61bBZz0.js.map → prepare-session-executor-WWjgnqsh.js.map} +1 -1
  61. package/dist/{process-channel-CTPL81j6.js → process-channel-C2dB41fO.js} +2 -2
  62. package/dist/{process-channel-CTPL81j6.js.map → process-channel-C2dB41fO.js.map} +1 -1
  63. package/dist/{runtime-CW2rk7-K.js → runtime-DjEQja8c.js} +16 -16
  64. package/dist/{runtime-CW2rk7-K.js.map → runtime-DjEQja8c.js.map} +1 -1
  65. package/dist/{runtime-agent-controller-reporting-submission-DtXqZxol.js → runtime-agent-controller-reporting-submission-CRS5CwMp.js} +14 -25
  66. package/dist/runtime-agent-controller-reporting-submission-CRS5CwMp.js.map +1 -0
  67. package/dist/{runtime-transport-DyBmX7ds.js → runtime-transport-B-GZhwVt.js} +3 -1
  68. package/dist/{runtime-transport-DyBmX7ds.js.map → runtime-transport-B-GZhwVt.js.map} +1 -1
  69. package/dist/{service-BIO-ixp9.js → service-CleUczqJ.js} +18 -18
  70. package/dist/{service-BIO-ixp9.js.map → service-CleUczqJ.js.map} +1 -1
  71. package/dist/{service-account-authorization-CdyvPbvg.js → service-account-authorization-s1bXEswT.js} +2 -2
  72. package/dist/{service-account-authorization-CdyvPbvg.js.map → service-account-authorization-s1bXEswT.js.map} +1 -1
  73. package/dist/{service-account-control-Ddl1E6YF.js → service-account-control-CjZ5uqK4.js} +9 -9
  74. package/dist/{service-account-control-Ddl1E6YF.js.map → service-account-control-CjZ5uqK4.js.map} +1 -1
  75. package/dist/{service-control-capabilities-BYmPglLN.js → service-control-capabilities-Bcho1Rwq.js} +1 -1
  76. package/dist/{service-control-capabilities-CTsm5txF.js → service-control-capabilities-D5izhuhD.js} +3 -3
  77. package/dist/{service-control-capabilities-CTsm5txF.js.map → service-control-capabilities-D5izhuhD.js.map} +1 -1
  78. package/dist/{state-SRzkI4G2.js → state-CbrhgfNh.js} +2 -2
  79. package/dist/{state-SRzkI4G2.js.map → state-CbrhgfNh.js.map} +1 -1
  80. package/dist/{updates-api-B0f4KyCg.js → updates-api-B7x39-DR.js} +9 -9
  81. package/dist/{updates-api-B0f4KyCg.js.map → updates-api-B7x39-DR.js.map} +1 -1
  82. package/dist/upgrade-636PQBli.js +4 -0
  83. package/dist/{upgrade-BG_Irs5Q.js → upgrade-BQSA2LfT.js} +7 -7
  84. package/dist/{upgrade-BG_Irs5Q.js.map → upgrade-BQSA2LfT.js.map} +1 -1
  85. package/package.json +12 -12
  86. package/dist/auth-session-CCLabxRT.js +0 -4
  87. package/dist/command-vUyYaeck.js.map +0 -1
  88. package/dist/dist-CJL7LE-y.js.map +0 -1
  89. package/dist/prepare-provider-runtime-Y2WOwFlV.js.map +0 -1
  90. package/dist/runtime-agent-controller-reporting-submission-DtXqZxol.js.map +0 -1
  91. package/dist/upgrade-CLdAVKIb.js +0 -4
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { F as resolveOpenMeldRootDir, P as resolveOpenMeldEnvPreset, a as accountProfileWorkspacePath, b as normalizeOpenMeldProfileId, c as deviceOpenClawProfileBootstrapPath, h as isPublishedOpenMeldHome, l as deviceOpenClawProfileDir, n as accountProfileLocalMetaPath, u as deviceOpenClawProfileWorkspaceDir } from "./paths-De9xdA2h.js";
4
- import { $t as createLocalRuntimeExpectedRoutesApi, Rt as createAgentProfileBindingApi, t as OpenMeldApiClientHttpError, wi as modelCatalogSchema } from "./dist-CJL7LE-y.js";
5
- import { G as isOriginalErrorSafeForMessageDetails, J as openMeldDaemonProviderAccessEvidenceSchema, Nr as agentInteractionResolutionSchema, W as OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, X as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Y as openMeldDaemonTaskResultEnvelopeWriteSchema, fr as normalizeMessageEnvelope, lr as formatCanonicalMentionLiteral, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tt as aiUsageObservationSchema, zi as resolveCommandAgentWorkActivity } from "./runtime-transport-DyBmX7ds.js";
4
+ import { $t as createLocalRuntimeExpectedRoutesApi, Rt as createAgentProfileBindingApi, t as OpenMeldApiClientHttpError, wi as modelCatalogSchema } from "./dist-DEjtwiDJ.js";
5
+ import { G as isOriginalErrorSafeForMessageDetails, J as openMeldDaemonProviderAccessEvidenceSchema, Nr as agentInteractionResolutionSchema, W as OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, X as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Y as openMeldDaemonTaskResultEnvelopeWriteSchema, fr as normalizeMessageEnvelope, lr as formatCanonicalMentionLiteral, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tt as aiUsageObservationSchema, zi as resolveCommandAgentWorkActivity } from "./runtime-transport-B-GZhwVt.js";
6
6
  import { C as conversationExecutionStateSchema, D as normalizeOptionalWorkingDirectory, P as profileWorkspaceModeSchema, T as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, o as openMeldDaemonControlPlaneRequestSchema, s as openMeldDaemonControlPlaneResponseSchema, x as providerDispatchRuntimeContextSchema } from "./control-plane-QqGL-jtT.js";
7
7
  import { _ as canonicalizeAgentControllerRef, b as normalizeKnownBuiltinAgentControllerId, d as resolveBuiltinAgentControllerConversationKind, f as HOSTED_CENTER_AGENT_CONTROLLER_REF, g as buildAgentControllerRoutingKey, l as buildAgentControllerConversationRef, m as HOSTED_REMOTE_AGENT_CONTROLLER_REF, p as HOSTED_CENTER_AGENT_CONTROLLER_REF_ID, s as runtimeTransportModeSchema, v as canonicalizeBuiltinAgentControllerRef, x as parseAgentControllerRef$1 } from "./controller-contract-DAOCaefz.js";
8
- import { J as OPENCLAW_CLI_TIMEOUT_MS$1, d as getAuthSessionState } from "./auth-session-CjxqNKvh.js";
8
+ import { J as OPENCLAW_CLI_TIMEOUT_MS$1, d as getAuthSessionState } from "./auth-session-B3oyTcSI.js";
9
9
  import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
10
10
  import { n as agentControllerPermissionModeSchema, r as agentControllerCollaborationModeSchema } from "./open-code-permission-DHFJYc_o.js";
11
- import { $ as touchDaemonCatalogSyncSignal, K as listOpenMeldProfiles, _ as toErrorMessage$20, d as normalizeText$11, g as parseTransportMode$1, gt as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_NAME, h as parseStreamingMode$1, ht as resolveCurrentOpenMeldAccountContext, m as parseRuntimeTransportMode, p as parseContextIdMappingSpec, s as emitRunLine, u as normalizeOptionalText$51, vt as daemonRouteCatalogCacheSchema } from "./daemon-device-id-OMqh2F9_.js";
11
+ import { $ as touchDaemonCatalogSyncSignal, K as listOpenMeldProfiles, _ as toErrorMessage$20, d as normalizeText$11, g as parseTransportMode$1, gt as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_NAME, h as parseStreamingMode$1, ht as resolveCurrentOpenMeldAccountContext, m as parseRuntimeTransportMode, p as parseContextIdMappingSpec, s as emitRunLine, u as normalizeOptionalText$51, vt as daemonRouteCatalogCacheSchema } from "./daemon-device-id-Dwm7CHtX.js";
12
12
  import { c as readWindowsProcessStartFileTime, d as resolveWindowsNativeProcessHelper, f as windowsNativeProcessRequestSchema, l as resolveWindowsPowerShellPath, o as powerShellEncodedArguments, r as isProcessIdentityAlive, t as CURRENT_PROCESS_START_IDENTITY, u as WINDOWS_NATIVE_PROCESS_REQUEST_ENV } from "./process-identity-BRbhGGTM.js";
13
13
  import { a as isOpenMeldOrphanedLockError, d as runWithHeldLock, i as isOpenMeldLockError, t as acquireLock } from "./lock-BMI00i2F.js";
14
14
  import { C as updateConfiguredDeviceRuntimeState, T as updateConfiguredSkillsConfig, a as resolveBaseUrl, d as createDefaultRuntimeAgentControllerSettings, g as getConfiguredSkillsConfig, p as getConfiguredDeviceRuntimeState, v as getRuntimeConfigReadHealth, y as resolveRuntimeSkillsCustomTargetId } from "./base-url-0AoeTi3w.js";
@@ -16,9 +16,9 @@ import { n as normalizeCommandEnvironment } from "./process-environment-BWSFeUu6
16
16
  import { n as writeDaemonLocalStateFile, t as readDaemonLocalStateFile } from "./daemon-local-state-file-jOXuXrky.js";
17
17
  import { m as daemonRuntimeDataPath } from "./daemon-state-Dte9re5V.js";
18
18
  import { i as readDaemonServiceContract } from "./daemon-service-contract-COPKbCy_.js";
19
- import { C as requestLocalSyncRouteCatalog } from "./daemon-lifecycle-journal-DEQHGloF.js";
19
+ import { C as requestLocalSyncRouteCatalog } from "./daemon-lifecycle-journal-DrDyXoUO.js";
20
20
  import { i as resolveWindowsCommandPath, n as quoteWindowsProcessArgument, r as resolvePlatformCommand, t as execPlatformFile } from "./process-launch-B0pHlkV_.js";
21
- import { d as buildOpenMeldRequestContextFromProfile, t as createCliApiClientFoundation } from "./api-client-foundation-D6zHrrGV.js";
21
+ import { d as buildOpenMeldRequestContextFromProfile, t as createCliApiClientFoundation } from "./api-client-foundation-CGc8AuMo.js";
22
22
  import { createRequire } from "node:module";
23
23
  import { createHash, randomUUID } from "node:crypto";
24
24
  import { homedir, loadavg, tmpdir } from "node:os";
@@ -33,6 +33,29 @@ import { setTimeout as setTimeout$1 } from "node:timers/promises";
33
33
  import { connect, createServer } from "node:net";
34
34
  import { createSdkMcpServer, query, tool } from "@anthropic-ai/claude-agent-sdk";
35
35
  import { createOpencodeClient } from "@opencode-ai/sdk/v2";
36
+ //#region \0rolldown/runtime.js
37
+ var __create = Object.create;
38
+ var __defProp = Object.defineProperty;
39
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
40
+ var __getOwnPropNames = Object.getOwnPropertyNames;
41
+ var __getProtoOf = Object.getPrototypeOf;
42
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
43
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
44
+ var __copyProps = (to, from, except, desc) => {
45
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
46
+ key = keys[i];
47
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
48
+ get: ((k) => from[k]).bind(null, key),
49
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
50
+ });
51
+ }
52
+ return to;
53
+ };
54
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
55
+ value: mod,
56
+ enumerable: true
57
+ }) : target, mod));
58
+ //#endregion
36
59
  //#region ../../packages/schemas/dist/agent-controller-brand.js
37
60
  const BUILTIN_AGENT_CONTROLLER_DISPLAY_ORDER = [
38
61
  "codex",
@@ -209,7 +232,813 @@ function resolveProjectionSkipReason(input) {
209
232
  return null;
210
233
  }
211
234
  //#endregion
235
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
236
+ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
237
+ module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
238
+ }));
239
+ //#endregion
240
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
241
+ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
242
+ const SEMVER_SPEC_VERSION = "2.0.0";
243
+ const MAX_LENGTH = 256;
244
+ const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
245
+ module.exports = {
246
+ MAX_LENGTH,
247
+ MAX_SAFE_COMPONENT_LENGTH: 16,
248
+ MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
249
+ MAX_SAFE_INTEGER,
250
+ RELEASE_TYPES: [
251
+ "major",
252
+ "premajor",
253
+ "minor",
254
+ "preminor",
255
+ "patch",
256
+ "prepatch",
257
+ "prerelease"
258
+ ],
259
+ SEMVER_SPEC_VERSION,
260
+ FLAG_INCLUDE_PRERELEASE: 1,
261
+ FLAG_LOOSE: 2
262
+ };
263
+ }));
264
+ //#endregion
265
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
266
+ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
267
+ const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
268
+ const debug = require_debug();
269
+ exports = module.exports = {};
270
+ const re = exports.re = [];
271
+ const safeRe = exports.safeRe = [];
272
+ const src = exports.src = [];
273
+ const safeSrc = exports.safeSrc = [];
274
+ const t = exports.t = {};
275
+ let R = 0;
276
+ const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
277
+ const safeRegexReplacements = [
278
+ ["\\s", 1],
279
+ ["\\d", MAX_LENGTH],
280
+ [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
281
+ ];
282
+ const makeSafeRegex = (value) => {
283
+ for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
284
+ return value;
285
+ };
286
+ const createToken = (name, value, isGlobal) => {
287
+ const safe = makeSafeRegex(value);
288
+ const index = R++;
289
+ debug(name, index, value);
290
+ t[name] = index;
291
+ src[index] = value;
292
+ safeSrc[index] = safe;
293
+ re[index] = new RegExp(value, isGlobal ? "g" : void 0);
294
+ safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
295
+ };
296
+ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
297
+ createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
298
+ createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
299
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
300
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
301
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
302
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
303
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
304
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
305
+ createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
306
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
307
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
308
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
309
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
310
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
311
+ createToken("GTLT", "((?:<|>)?=?)");
312
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
313
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
314
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
315
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
316
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
317
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
318
+ createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
319
+ createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
320
+ createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
321
+ createToken("COERCERTL", src[t.COERCE], true);
322
+ createToken("COERCERTLFULL", src[t.COERCEFULL], true);
323
+ createToken("LONETILDE", "(?:~>?)");
324
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
325
+ exports.tildeTrimReplace = "$1~";
326
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
327
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
328
+ createToken("LONECARET", "(?:\\^)");
329
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
330
+ exports.caretTrimReplace = "$1^";
331
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
332
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
333
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
334
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
335
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
336
+ exports.comparatorTrimReplace = "$1$2$3";
337
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
338
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
339
+ createToken("STAR", "(<|>)?=?\\s*\\*");
340
+ createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
341
+ createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
342
+ }));
343
+ //#endregion
344
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
345
+ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
346
+ const looseOption = Object.freeze({ loose: true });
347
+ const emptyOpts = Object.freeze({});
348
+ const parseOptions = (options) => {
349
+ if (!options) return emptyOpts;
350
+ if (typeof options !== "object") return looseOption;
351
+ return options;
352
+ };
353
+ module.exports = parseOptions;
354
+ }));
355
+ //#endregion
356
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
357
+ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
358
+ const numeric = /^[0-9]+$/;
359
+ const compareIdentifiers = (a, b) => {
360
+ if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
361
+ const anum = numeric.test(a);
362
+ const bnum = numeric.test(b);
363
+ if (anum && bnum) {
364
+ a = +a;
365
+ b = +b;
366
+ }
367
+ return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
368
+ };
369
+ const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
370
+ module.exports = {
371
+ compareIdentifiers,
372
+ rcompareIdentifiers
373
+ };
374
+ }));
375
+ //#endregion
376
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
377
+ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
378
+ const debug = require_debug();
379
+ const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
380
+ const { safeRe: re, t } = require_re();
381
+ const parseOptions = require_parse_options();
382
+ const { compareIdentifiers } = require_identifiers();
383
+ module.exports = class SemVer {
384
+ constructor(version, options) {
385
+ options = parseOptions(options);
386
+ if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
387
+ else version = version.version;
388
+ else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
389
+ if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
390
+ debug("SemVer", version, options);
391
+ this.options = options;
392
+ this.loose = !!options.loose;
393
+ this.includePrerelease = !!options.includePrerelease;
394
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
395
+ if (!m) throw new TypeError(`Invalid Version: ${version}`);
396
+ this.raw = version;
397
+ this.major = +m[1];
398
+ this.minor = +m[2];
399
+ this.patch = +m[3];
400
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
401
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
402
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
403
+ if (!m[4]) this.prerelease = [];
404
+ else this.prerelease = m[4].split(".").map((id) => {
405
+ if (/^[0-9]+$/.test(id)) {
406
+ const num = +id;
407
+ if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
408
+ }
409
+ return id;
410
+ });
411
+ this.build = m[5] ? m[5].split(".") : [];
412
+ this.format();
413
+ }
414
+ format() {
415
+ this.version = `${this.major}.${this.minor}.${this.patch}`;
416
+ if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
417
+ return this.version;
418
+ }
419
+ toString() {
420
+ return this.version;
421
+ }
422
+ compare(other) {
423
+ debug("SemVer.compare", this.version, this.options, other);
424
+ if (!(other instanceof SemVer)) {
425
+ if (typeof other === "string" && other === this.version) return 0;
426
+ other = new SemVer(other, this.options);
427
+ }
428
+ if (other.version === this.version) return 0;
429
+ return this.compareMain(other) || this.comparePre(other);
430
+ }
431
+ compareMain(other) {
432
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
433
+ if (this.major < other.major) return -1;
434
+ if (this.major > other.major) return 1;
435
+ if (this.minor < other.minor) return -1;
436
+ if (this.minor > other.minor) return 1;
437
+ if (this.patch < other.patch) return -1;
438
+ if (this.patch > other.patch) return 1;
439
+ return 0;
440
+ }
441
+ comparePre(other) {
442
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
443
+ if (this.prerelease.length && !other.prerelease.length) return -1;
444
+ else if (!this.prerelease.length && other.prerelease.length) return 1;
445
+ else if (!this.prerelease.length && !other.prerelease.length) return 0;
446
+ let i = 0;
447
+ do {
448
+ const a = this.prerelease[i];
449
+ const b = other.prerelease[i];
450
+ debug("prerelease compare", i, a, b);
451
+ if (a === void 0 && b === void 0) return 0;
452
+ else if (b === void 0) return 1;
453
+ else if (a === void 0) return -1;
454
+ else if (a === b) continue;
455
+ else return compareIdentifiers(a, b);
456
+ } while (++i);
457
+ }
458
+ compareBuild(other) {
459
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
460
+ let i = 0;
461
+ do {
462
+ const a = this.build[i];
463
+ const b = other.build[i];
464
+ debug("build compare", i, a, b);
465
+ if (a === void 0 && b === void 0) return 0;
466
+ else if (b === void 0) return 1;
467
+ else if (a === void 0) return -1;
468
+ else if (a === b) continue;
469
+ else return compareIdentifiers(a, b);
470
+ } while (++i);
471
+ }
472
+ inc(release, identifier, identifierBase) {
473
+ if (release.startsWith("pre")) {
474
+ if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
475
+ if (identifier) {
476
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
477
+ if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
478
+ }
479
+ }
480
+ switch (release) {
481
+ case "premajor":
482
+ this.prerelease.length = 0;
483
+ this.patch = 0;
484
+ this.minor = 0;
485
+ this.major++;
486
+ this.inc("pre", identifier, identifierBase);
487
+ break;
488
+ case "preminor":
489
+ this.prerelease.length = 0;
490
+ this.patch = 0;
491
+ this.minor++;
492
+ this.inc("pre", identifier, identifierBase);
493
+ break;
494
+ case "prepatch":
495
+ this.prerelease.length = 0;
496
+ this.inc("patch", identifier, identifierBase);
497
+ this.inc("pre", identifier, identifierBase);
498
+ break;
499
+ case "prerelease":
500
+ if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
501
+ this.inc("pre", identifier, identifierBase);
502
+ break;
503
+ case "release":
504
+ if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
505
+ this.prerelease.length = 0;
506
+ break;
507
+ case "major":
508
+ if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
509
+ this.minor = 0;
510
+ this.patch = 0;
511
+ this.prerelease = [];
512
+ break;
513
+ case "minor":
514
+ if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
515
+ this.patch = 0;
516
+ this.prerelease = [];
517
+ break;
518
+ case "patch":
519
+ if (this.prerelease.length === 0) this.patch++;
520
+ this.prerelease = [];
521
+ break;
522
+ case "pre": {
523
+ const base = Number(identifierBase) ? 1 : 0;
524
+ if (this.prerelease.length === 0) this.prerelease = [base];
525
+ else {
526
+ let i = this.prerelease.length;
527
+ while (--i >= 0) if (typeof this.prerelease[i] === "number") {
528
+ this.prerelease[i]++;
529
+ i = -2;
530
+ }
531
+ if (i === -1) {
532
+ if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
533
+ this.prerelease.push(base);
534
+ }
535
+ }
536
+ if (identifier) {
537
+ let prerelease = [identifier, base];
538
+ if (identifierBase === false) prerelease = [identifier];
539
+ if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
540
+ if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
541
+ } else this.prerelease = prerelease;
542
+ }
543
+ break;
544
+ }
545
+ default: throw new Error(`invalid increment argument: ${release}`);
546
+ }
547
+ this.raw = this.format();
548
+ if (this.build.length) this.raw += `+${this.build.join(".")}`;
549
+ return this;
550
+ }
551
+ };
552
+ }));
553
+ //#endregion
554
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
555
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
556
+ const SemVer = require_semver();
557
+ const parse = (version, options, throwErrors = false) => {
558
+ if (version instanceof SemVer) return version;
559
+ try {
560
+ return new SemVer(version, options);
561
+ } catch (er) {
562
+ if (!throwErrors) return null;
563
+ throw er;
564
+ }
565
+ };
566
+ module.exports = parse;
567
+ }));
568
+ //#endregion
569
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js
570
+ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
571
+ var LRUCache = class {
572
+ constructor() {
573
+ this.max = 1e3;
574
+ this.map = /* @__PURE__ */ new Map();
575
+ }
576
+ get(key) {
577
+ const value = this.map.get(key);
578
+ if (value === void 0) return;
579
+ else {
580
+ this.map.delete(key);
581
+ this.map.set(key, value);
582
+ return value;
583
+ }
584
+ }
585
+ delete(key) {
586
+ return this.map.delete(key);
587
+ }
588
+ set(key, value) {
589
+ if (!this.delete(key) && value !== void 0) {
590
+ if (this.map.size >= this.max) {
591
+ const firstKey = this.map.keys().next().value;
592
+ this.delete(firstKey);
593
+ }
594
+ this.map.set(key, value);
595
+ }
596
+ return this;
597
+ }
598
+ };
599
+ module.exports = LRUCache;
600
+ }));
601
+ //#endregion
602
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js
603
+ var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
604
+ const SemVer = require_semver();
605
+ const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
606
+ module.exports = compare;
607
+ }));
608
+ //#endregion
609
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js
610
+ var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
611
+ const compare = require_compare();
612
+ const eq = (a, b, loose) => compare(a, b, loose) === 0;
613
+ module.exports = eq;
614
+ }));
615
+ //#endregion
616
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js
617
+ var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
618
+ const compare = require_compare();
619
+ const neq = (a, b, loose) => compare(a, b, loose) !== 0;
620
+ module.exports = neq;
621
+ }));
622
+ //#endregion
623
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js
624
+ var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
625
+ const compare = require_compare();
626
+ const gt = (a, b, loose) => compare(a, b, loose) > 0;
627
+ module.exports = gt;
628
+ }));
629
+ //#endregion
630
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js
631
+ var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
632
+ const compare = require_compare();
633
+ const gte = (a, b, loose) => compare(a, b, loose) >= 0;
634
+ module.exports = gte;
635
+ }));
636
+ //#endregion
637
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js
638
+ var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
639
+ const compare = require_compare();
640
+ const lt = (a, b, loose) => compare(a, b, loose) < 0;
641
+ module.exports = lt;
642
+ }));
643
+ //#endregion
644
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js
645
+ var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
646
+ const compare = require_compare();
647
+ const lte = (a, b, loose) => compare(a, b, loose) <= 0;
648
+ module.exports = lte;
649
+ }));
650
+ //#endregion
651
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js
652
+ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
653
+ const eq = require_eq();
654
+ const neq = require_neq();
655
+ const gt = require_gt();
656
+ const gte = require_gte();
657
+ const lt = require_lt();
658
+ const lte = require_lte();
659
+ const cmp = (a, op, b, loose) => {
660
+ switch (op) {
661
+ case "===":
662
+ if (typeof a === "object") a = a.version;
663
+ if (typeof b === "object") b = b.version;
664
+ return a === b;
665
+ case "!==":
666
+ if (typeof a === "object") a = a.version;
667
+ if (typeof b === "object") b = b.version;
668
+ return a !== b;
669
+ case "":
670
+ case "=":
671
+ case "==": return eq(a, b, loose);
672
+ case "!=": return neq(a, b, loose);
673
+ case ">": return gt(a, b, loose);
674
+ case ">=": return gte(a, b, loose);
675
+ case "<": return lt(a, b, loose);
676
+ case "<=": return lte(a, b, loose);
677
+ default: throw new TypeError(`Invalid operator: ${op}`);
678
+ }
679
+ };
680
+ module.exports = cmp;
681
+ }));
682
+ //#endregion
683
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js
684
+ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
685
+ const ANY = Symbol("SemVer ANY");
686
+ module.exports = class Comparator {
687
+ static get ANY() {
688
+ return ANY;
689
+ }
690
+ constructor(comp, options) {
691
+ options = parseOptions(options);
692
+ if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
693
+ else comp = comp.value;
694
+ comp = comp.trim().split(/\s+/).join(" ");
695
+ debug("comparator", comp, options);
696
+ this.options = options;
697
+ this.loose = !!options.loose;
698
+ this.parse(comp);
699
+ if (this.semver === ANY) this.value = "";
700
+ else this.value = this.operator + this.semver.version;
701
+ debug("comp", this);
702
+ }
703
+ parse(comp) {
704
+ const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
705
+ const m = comp.match(r);
706
+ if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
707
+ this.operator = m[1] !== void 0 ? m[1] : "";
708
+ if (this.operator === "=") this.operator = "";
709
+ if (!m[2]) this.semver = ANY;
710
+ else this.semver = new SemVer(m[2], this.options.loose);
711
+ }
712
+ toString() {
713
+ return this.value;
714
+ }
715
+ test(version) {
716
+ debug("Comparator.test", version, this.options.loose);
717
+ if (this.semver === ANY || version === ANY) return true;
718
+ if (typeof version === "string") try {
719
+ version = new SemVer(version, this.options);
720
+ } catch (er) {
721
+ return false;
722
+ }
723
+ return cmp(version, this.operator, this.semver, this.options);
724
+ }
725
+ intersects(comp, options) {
726
+ if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
727
+ if (this.operator === "") {
728
+ if (this.value === "") return true;
729
+ return new Range(comp.value, options).test(this.value);
730
+ } else if (comp.operator === "") {
731
+ if (comp.value === "") return true;
732
+ return new Range(this.value, options).test(comp.semver);
733
+ }
734
+ options = parseOptions(options);
735
+ if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
736
+ if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
737
+ if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
738
+ if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
739
+ if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
740
+ if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
741
+ if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
742
+ return false;
743
+ }
744
+ };
745
+ const parseOptions = require_parse_options();
746
+ const { safeRe: re, t } = require_re();
747
+ const cmp = require_cmp();
748
+ const debug = require_debug();
749
+ const SemVer = require_semver();
750
+ const Range = require_range();
751
+ }));
752
+ //#endregion
753
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js
754
+ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
755
+ const SPACE_CHARACTERS = /\s+/g;
756
+ module.exports = class Range {
757
+ constructor(range, options) {
758
+ options = parseOptions(options);
759
+ if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
760
+ else return new Range(range.raw, options);
761
+ if (range instanceof Comparator) {
762
+ this.raw = range.value;
763
+ this.set = [[range]];
764
+ this.formatted = void 0;
765
+ return this;
766
+ }
767
+ this.options = options;
768
+ this.loose = !!options.loose;
769
+ this.includePrerelease = !!options.includePrerelease;
770
+ this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
771
+ this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
772
+ if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
773
+ if (this.set.length > 1) {
774
+ const first = this.set[0];
775
+ this.set = this.set.filter((c) => !isNullSet(c[0]));
776
+ if (this.set.length === 0) this.set = [first];
777
+ else if (this.set.length > 1) {
778
+ for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
779
+ this.set = [c];
780
+ break;
781
+ }
782
+ }
783
+ }
784
+ this.formatted = void 0;
785
+ }
786
+ get range() {
787
+ if (this.formatted === void 0) {
788
+ this.formatted = "";
789
+ for (let i = 0; i < this.set.length; i++) {
790
+ if (i > 0) this.formatted += "||";
791
+ const comps = this.set[i];
792
+ for (let k = 0; k < comps.length; k++) {
793
+ if (k > 0) this.formatted += " ";
794
+ this.formatted += comps[k].toString().trim();
795
+ }
796
+ }
797
+ }
798
+ return this.formatted;
799
+ }
800
+ format() {
801
+ return this.range;
802
+ }
803
+ toString() {
804
+ return this.range;
805
+ }
806
+ parseRange(range) {
807
+ const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
808
+ const cached = cache.get(memoKey);
809
+ if (cached) return cached;
810
+ const loose = this.options.loose;
811
+ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
812
+ range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
813
+ debug("hyphen replace", range);
814
+ range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
815
+ debug("comparator trim", range);
816
+ range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
817
+ debug("tilde trim", range);
818
+ range = range.replace(re[t.CARETTRIM], caretTrimReplace);
819
+ debug("caret trim", range);
820
+ let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
821
+ if (loose) rangeList = rangeList.filter((comp) => {
822
+ debug("loose invalid filter", comp, this.options);
823
+ return !!comp.match(re[t.COMPARATORLOOSE]);
824
+ });
825
+ debug("range list", rangeList);
826
+ const rangeMap = /* @__PURE__ */ new Map();
827
+ const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
828
+ for (const comp of comparators) {
829
+ if (isNullSet(comp)) return [comp];
830
+ rangeMap.set(comp.value, comp);
831
+ }
832
+ if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
833
+ const result = [...rangeMap.values()];
834
+ cache.set(memoKey, result);
835
+ return result;
836
+ }
837
+ intersects(range, options) {
838
+ if (!(range instanceof Range)) throw new TypeError("a Range is required");
839
+ return this.set.some((thisComparators) => {
840
+ return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
841
+ return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
842
+ return rangeComparators.every((rangeComparator) => {
843
+ return thisComparator.intersects(rangeComparator, options);
844
+ });
845
+ });
846
+ });
847
+ });
848
+ }
849
+ test(version) {
850
+ if (!version) return false;
851
+ if (typeof version === "string") try {
852
+ version = new SemVer(version, this.options);
853
+ } catch (er) {
854
+ return false;
855
+ }
856
+ for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
857
+ return false;
858
+ }
859
+ };
860
+ const cache = new (require_lrucache())();
861
+ const parseOptions = require_parse_options();
862
+ const Comparator = require_comparator();
863
+ const debug = require_debug();
864
+ const SemVer = require_semver();
865
+ const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
866
+ const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
867
+ const isNullSet = (c) => c.value === "<0.0.0-0";
868
+ const isAny = (c) => c.value === "";
869
+ const isSatisfiable = (comparators, options) => {
870
+ let result = true;
871
+ const remainingComparators = comparators.slice();
872
+ let testComparator = remainingComparators.pop();
873
+ while (result && remainingComparators.length) {
874
+ result = remainingComparators.every((otherComparator) => {
875
+ return testComparator.intersects(otherComparator, options);
876
+ });
877
+ testComparator = remainingComparators.pop();
878
+ }
879
+ return result;
880
+ };
881
+ const parseComparator = (comp, options) => {
882
+ comp = comp.replace(re[t.BUILD], "");
883
+ debug("comp", comp, options);
884
+ comp = replaceCarets(comp, options);
885
+ debug("caret", comp);
886
+ comp = replaceTildes(comp, options);
887
+ debug("tildes", comp);
888
+ comp = replaceXRanges(comp, options);
889
+ debug("xrange", comp);
890
+ comp = replaceStars(comp, options);
891
+ debug("stars", comp);
892
+ return comp;
893
+ };
894
+ const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
895
+ const replaceTildes = (comp, options) => {
896
+ return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
897
+ };
898
+ const replaceTilde = (comp, options) => {
899
+ const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
900
+ return comp.replace(r, (_, M, m, p, pr) => {
901
+ debug("tilde", comp, _, M, m, p, pr);
902
+ let ret;
903
+ if (isX(M)) ret = "";
904
+ else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
905
+ else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
906
+ else if (pr) {
907
+ debug("replaceTilde pr", pr);
908
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
909
+ } else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
910
+ debug("tilde return", ret);
911
+ return ret;
912
+ });
913
+ };
914
+ const replaceCarets = (comp, options) => {
915
+ return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
916
+ };
917
+ const replaceCaret = (comp, options) => {
918
+ debug("caret", comp, options);
919
+ const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
920
+ const z = options.includePrerelease ? "-0" : "";
921
+ return comp.replace(r, (_, M, m, p, pr) => {
922
+ debug("caret", comp, _, M, m, p, pr);
923
+ let ret;
924
+ if (isX(M)) ret = "";
925
+ else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
926
+ else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
927
+ else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
928
+ else if (pr) {
929
+ debug("replaceCaret pr", pr);
930
+ if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
931
+ else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
932
+ else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
933
+ } else {
934
+ debug("no pr");
935
+ if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
936
+ else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
937
+ else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
938
+ }
939
+ debug("caret return", ret);
940
+ return ret;
941
+ });
942
+ };
943
+ const replaceXRanges = (comp, options) => {
944
+ debug("replaceXRanges", comp, options);
945
+ return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
946
+ };
947
+ const replaceXRange = (comp, options) => {
948
+ comp = comp.trim();
949
+ const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
950
+ return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
951
+ debug("xRange", comp, ret, gtlt, M, m, p, pr);
952
+ const xM = isX(M);
953
+ const xm = xM || isX(m);
954
+ const xp = xm || isX(p);
955
+ const anyX = xp;
956
+ if (gtlt === "=" && anyX) gtlt = "";
957
+ pr = options.includePrerelease ? "-0" : "";
958
+ if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
959
+ else ret = "*";
960
+ else if (gtlt && anyX) {
961
+ if (xm) m = 0;
962
+ p = 0;
963
+ if (gtlt === ">") {
964
+ gtlt = ">=";
965
+ if (xm) {
966
+ M = +M + 1;
967
+ m = 0;
968
+ p = 0;
969
+ } else {
970
+ m = +m + 1;
971
+ p = 0;
972
+ }
973
+ } else if (gtlt === "<=") {
974
+ gtlt = "<";
975
+ if (xm) M = +M + 1;
976
+ else m = +m + 1;
977
+ }
978
+ if (gtlt === "<") pr = "-0";
979
+ ret = `${gtlt + M}.${m}.${p}${pr}`;
980
+ } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
981
+ else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
982
+ debug("xRange return", ret);
983
+ return ret;
984
+ });
985
+ };
986
+ const replaceStars = (comp, options) => {
987
+ debug("replaceStars", comp, options);
988
+ return comp.trim().replace(re[t.STAR], "");
989
+ };
990
+ const replaceGTE0 = (comp, options) => {
991
+ debug("replaceGTE0", comp, options);
992
+ return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
993
+ };
994
+ const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
995
+ if (isX(fM)) from = "";
996
+ else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
997
+ else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
998
+ else if (fpr) from = `>=${from}`;
999
+ else from = `>=${from}${incPr ? "-0" : ""}`;
1000
+ if (isX(tM)) to = "";
1001
+ else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
1002
+ else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
1003
+ else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
1004
+ else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
1005
+ else to = `<=${to}`;
1006
+ return `${from} ${to}`.trim();
1007
+ };
1008
+ const testSet = (set, version, options) => {
1009
+ for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
1010
+ if (version.prerelease.length && !options.includePrerelease) {
1011
+ for (let i = 0; i < set.length; i++) {
1012
+ debug(set[i].semver);
1013
+ if (set[i].semver === Comparator.ANY) continue;
1014
+ if (set[i].semver.prerelease.length > 0) {
1015
+ const allowed = set[i].semver;
1016
+ if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
1017
+ }
1018
+ }
1019
+ return false;
1020
+ }
1021
+ return true;
1022
+ };
1023
+ }));
1024
+ //#endregion
1025
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js
1026
+ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1027
+ const Range = require_range();
1028
+ const satisfies = (version, range, options) => {
1029
+ try {
1030
+ range = new Range(range, options);
1031
+ } catch (er) {
1032
+ return false;
1033
+ }
1034
+ return range.test(version);
1035
+ };
1036
+ module.exports = satisfies;
1037
+ }));
1038
+ //#endregion
212
1039
  //#region ../../packages/agent-runtime/dist/index.js
1040
+ var import_parse = /* @__PURE__ */ __toESM(require_parse(), 1);
1041
+ var import_satisfies = /* @__PURE__ */ __toESM(require_satisfies(), 1);
213
1042
  const AGENT_CONTROLLER_REF_SEPARATOR = ":";
214
1043
  const SUPPORTED_AGENT_CONTROLLER_REF_KINDS = [
215
1044
  "builtin",
@@ -480,6 +1309,17 @@ function formatAgentControllerCheckedAt(value) {
480
1309
  timeStyle: "short"
481
1310
  }).format(timestamp);
482
1311
  }
1312
+ /** Compare controller SemVer evidence without stripping prerelease identifiers. */
1313
+ function compareAgentControllerVersions(left, right) {
1314
+ const a = (0, import_parse.default)(left.trim());
1315
+ const b = (0, import_parse.default)(right.trim());
1316
+ return a && b ? a.compare(b) : null;
1317
+ }
1318
+ /** Version admission is necessary evidence, never a replacement for native policy checks. */
1319
+ function supportsAgentControllerVersion(version, range) {
1320
+ const parsed = version === null ? null : (0, import_parse.default)(version.trim());
1321
+ return parsed !== null && (0, import_satisfies.default)(parsed, range, { includePrerelease: true });
1322
+ }
483
1323
  const DEFAULT_AGENT_CONTROLLER_PERMISSION_MODE = "claude-code:default";
484
1324
  const CLAUDE_CODE_AGENT_CONTROLLER_PERMISSION_MODE_OPTIONS = [
485
1325
  {
@@ -8531,7 +9371,6 @@ function toRecord$14(value) {
8531
9371
  }
8532
9372
  //#endregion
8533
9373
  //#region ../../runtime/adapters/antigravity/dist/transport/antigravity-delivery-only.js
8534
- const VERSION$1 = /^1\.2\.(\d+)$/u;
8535
9374
  const LINE_END = /\r?\n/u;
8536
9375
  const EXTENSION_SETTING$1 = /hook|plugin|sidecar|extension|mcp/iu;
8537
9376
  const TRANSIENT_CLI_ENTRIES = /* @__PURE__ */ new Set([
@@ -8572,8 +9411,7 @@ async function prepareAntigravityDeliveryScope(input) {
8572
9411
  launchContract: input.launchContract,
8573
9412
  args: ["--version"]
8574
9413
  });
8575
- const match = (await runNative(command.bin, command.args, env, input.workdir)).trim().match(VERSION$1);
8576
- if (!match || Number(match[1]) < 9) throw scopeError$3("This native Antigravity version has not verified restricted agent loading.");
9414
+ if (!supportsAgentControllerVersion(await runNative(command.bin, command.args, env, input.workdir), ">=1.2.9 <1.3.0-0")) throw scopeError$3("This native Antigravity version has not verified restricted agent loading.");
8577
9415
  const home = await mkdtemp(join(tmpdir(), "openmeld-antigravity-delivery-"));
8578
9416
  const agentName = `openmeld-delivery-${randomUUID()}`;
8579
9417
  try {
@@ -12528,7 +13366,6 @@ function isolationError(reason) {
12528
13366
  //#region ../../runtime/adapters/codex/dist/transport/codex-space-action-dynamic-tools.js
12529
13367
  const NATIVE_THREAD_SUFFIX = "/openmeld-space-tools-v1";
12530
13368
  const NATIVE_TOOL_PREFIX = "openmeld_space_";
12531
- const VERSION_PATTERN = /^(\d+)\.(\d+)\.(\d+)$/u;
12532
13369
  const TRANSPORT_FIELDS = /* @__PURE__ */ new Set([
12533
13370
  "command",
12534
13371
  "args",
@@ -12546,10 +13383,7 @@ const TRANSPORT_FIELDS = /* @__PURE__ */ new Set([
12546
13383
  "tool_timeout_sec"
12547
13384
  ]);
12548
13385
  function supportsCodexSpaceDynamicTools(version) {
12549
- const match = version?.match(VERSION_PATTERN);
12550
- if (!match) return false;
12551
- const [, major, minor, patch] = match;
12552
- return Number(major) > 0 || Number(minor) > 150 || Number(minor) === 150 && Number(patch) >= 1;
13386
+ return supportsAgentControllerVersion(version, ">=0.150.1");
12553
13387
  }
12554
13388
  function hasCodexSpaceDynamicTools(source) {
12555
13389
  return source?.endsWith(NATIVE_THREAD_SUFFIX) ?? false;
@@ -13722,25 +14556,23 @@ var CodexAppServerSession = class {
13722
14556
  });
13723
14557
  if (!nativeThread) return;
13724
14558
  }
13725
- let supported = supportsCodexSpaceDynamicTools(parseCodexAppServerVersion(input.initialized));
14559
+ const version = parseCodexAppServerVersion(input.initialized);
14560
+ let supported = supportsCodexSpaceDynamicTools(version);
14561
+ if (nativeThread && !supported) throw new CodexAppServerTransportError({
14562
+ code: "context.space_tool_version_unsupported",
14563
+ errorType: "config",
14564
+ message: `Codex ${version ?? "(unknown version)"} does not meet the native Space tool version requirement (0.150.1 or newer). Select a supported Codex installation and retry. No turn was started.`
14565
+ });
13726
14566
  if (supported) try {
13727
- supported = canUseCodexSpaceDynamicTools({
13728
- configuration: await this.requestControl("config/read", {
13729
- cwd: this.#codexWorkdir,
13730
- includeLayers: false
13731
- }, {
13732
- code: "runtime.control_timeout",
13733
- operation: "config/read"
13734
- }),
13735
- permissionMode: this.#permissionMode
13736
- });
13737
- if (supported) supported = toRecord$7(await this.requestControl("configRequirements/read", {}, {
13738
- code: "runtime.control_timeout",
13739
- operation: "configRequirements/read"
13740
- }))?.requirements === null;
14567
+ supported = await this.supportsSpaceToolPolicy();
13741
14568
  } catch (error) {
13742
14569
  if (!(error instanceof CodexAppServerTransportError) || error.rpcErrorCode !== -32601) throw error;
13743
14570
  supported = false;
14571
+ if (nativeThread) throw new CodexAppServerTransportError({
14572
+ code: "context.space_tool_capability_unavailable",
14573
+ errorType: "config",
14574
+ message: "Codex could not provide the policy checks required to continue this conversation. Select a supported Codex installation and retry. No turn was started."
14575
+ });
13744
14576
  }
13745
14577
  if (nativeThread && !supported) throw new CodexAppServerTransportError({
13746
14578
  code: "context.space_tool_policy_changed",
@@ -13749,6 +14581,22 @@ var CodexAppServerSession = class {
13749
14581
  });
13750
14582
  this.spaceToolInvocation.enabled = supported;
13751
14583
  }
14584
+ async supportsSpaceToolPolicy() {
14585
+ if (!canUseCodexSpaceDynamicTools({
14586
+ configuration: await this.requestControl("config/read", {
14587
+ cwd: this.#codexWorkdir,
14588
+ includeLayers: false
14589
+ }, {
14590
+ code: "runtime.control_timeout",
14591
+ operation: "config/read"
14592
+ }),
14593
+ permissionMode: this.#permissionMode
14594
+ })) return false;
14595
+ return toRecord$7(await this.requestControl("configRequirements/read", {}, {
14596
+ code: "runtime.control_timeout",
14597
+ operation: "configRequirements/read"
14598
+ }))?.requirements === null;
14599
+ }
13752
14600
  async prepareDeliveryOnlyScope(initialized) {
13753
14601
  if (!this.deliveryOnly) return;
13754
14602
  if (this.#spaceActionTools?.tools.some((tool) => ![
@@ -14860,6 +15708,13 @@ function buildServerRequestDeclineResponse(method) {
14860
15708
  function toJsonRpcTransportError$1(error) {
14861
15709
  const message = normalizeOptionalText$30(error.message) ?? "codex app-server error";
14862
15710
  const originalError = createProviderOriginalError(message) ?? void 0;
15711
+ if (error.code === -32601) return new CodexAppServerTransportError({
15712
+ code: "runtime.method_unsupported",
15713
+ errorType: "adapter",
15714
+ message,
15715
+ originalError,
15716
+ rpcErrorCode: error.code
15717
+ });
14863
15718
  const mcpInitializationFailure = classifyCodexRequiredMcpInitializationFailure({
14864
15719
  message,
14865
15720
  ...typeof error.code === "number" ? { rpcErrorCode: error.code } : {}
@@ -19213,7 +20068,6 @@ const FINAL_TOOLS = [
19213
20068
  "reply",
19214
20069
  "stay_silent"
19215
20070
  ];
19216
- const NATIVE_VERSION = /^1\.0\.(\d+)$/u;
19217
20071
  async function prepareGrokBuildDeliveryScope(input) {
19218
20072
  const capability = input.spaceActionTools;
19219
20073
  if (!(capability?.deliveryOnly && resolveDispatchSpaceActionMcpServer(input.env)) || JSON.stringify(capability.tools.map((tool) => tool.name).sort()) !== JSON.stringify(FINAL_TOOLS)) throw scopeError$2("The active Wake's delivery-only tools are required.");
@@ -19359,8 +20213,7 @@ function nativePermissionMode(value) {
19359
20213
  /** Native `grok inspect --json`, captured from Grok 1.0.40. */
19360
20214
  function assertGrokBuildDeliveryInspection(value) {
19361
20215
  const report = record$3(value);
19362
- const version = typeof report?.grokVersion === "string" ? report.grokVersion.match(NATIVE_VERSION) : null;
19363
- if (!version || Number(version[1]) < 40 || report?.projectTrusted !== true) throw scopeError$2("This Grok installation has not verified the required native scope.");
20216
+ if (!supportsAgentControllerVersion(typeof report?.grokVersion === "string" ? report.grokVersion : null, ">=1.0.40 <1.1.0-0") || report?.projectTrusted !== true) throw scopeError$2("This Grok installation has not verified the required native scope.");
19364
20217
  for (const key of [
19365
20218
  "hooks",
19366
20219
  "plugins",
@@ -22585,7 +23438,6 @@ function normalizeOptionalText$10(value) {
22585
23438
  //#endregion
22586
23439
  //#region ../../runtime/adapters/opencode/dist/transport/opencode-delivery-only.js
22587
23440
  const SAFE_TOOL_ID = /^[A-Za-z0-9_.:-]+$/u;
22588
- const VERSION = /^(\d+)\.(\d+)\.(\d+)$/u;
22589
23441
  /** Narrow only the disposable correction session; never grant a final tool. */
22590
23442
  async function prepareOpenCodeDeliveryOnlyTurn(input) {
22591
23443
  if (input.sourceSessionId === input.sessionId) throw scopeError("The correction session is not isolated from the original conversation.");
@@ -22633,8 +23485,7 @@ async function prepareOpenCodeDeliveryOnlyTurn(input) {
22633
23485
  }
22634
23486
  function requireOpenCodeDeliveryOnlyVersion(health) {
22635
23487
  const version = record$1(health)?.version;
22636
- const match = typeof version === "string" ? VERSION.exec(version) : null;
22637
- if (match && (Number(match[1]) > 1 || Number(match[1]) === 1 && (Number(match[2]) > 18 || Number(match[2]) === 18 && Number(match[3]) >= 31))) return;
23488
+ if (supportsAgentControllerVersion(typeof version === "string" ? version : null, ">=1.18.31")) return;
22638
23489
  throw scopeError("This OpenCode installation cannot verify delivery-only execution.");
22639
23490
  }
22640
23491
  function isPermissionRule(value) {
@@ -31597,9 +32448,9 @@ function createModelCatalogReadSession(input) {
31597
32448
  async function readModelCatalogOnce(baseUrl) {
31598
32449
  try {
31599
32450
  const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
31600
- import("./dist-MpN-h8da.js"),
32451
+ import("./dist-DGNsLSYJ.js"),
31601
32452
  import("./base-url-Bdjp-5vy.js"),
31602
- import("./api-client-foundation-BHjffwwr.js")
32453
+ import("./api-client-foundation-ZuYF2Uah.js")
31603
32454
  ]);
31604
32455
  if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
31605
32456
  const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
@@ -33455,6 +34306,6 @@ async function prepareProviderRuntime(input, options = {}) {
33455
34306
  return await preparer(input);
33456
34307
  }
33457
34308
  //#endregion
33458
- export { canManageRegistryAgentSkillTargets as $, resolveExecutablePathsOnPath as $n, mergeOpenClawGatewayVisibility as $t, createExpectedRoutesReadSession as A, emitReconcileCompletedEvidence as An, ADAPTIVE_HEARTBEAT_JITTER_RATIO as Ar, ensureOpenMeldManagedProfileWorkspace as At, reconcileNewRunnableBuiltinAgentsForSetup as B, resolveConversationExecutionStateByLookupKey as Bn, createMutableRouteCatalogState as Bt, createModelCatalogReadSession as C, probeCodexAppServerAccount as Cn, resolveAgentControllerPermissionModeForController as Cr, resolveLocalProjectConnectionForPath as Ct, NO_LOCAL_AGENTS_NEED_OPENMELD_SERVICE_REASON as D, probeClaudeCodeUsageLimits as Dn, resolveNativeAgentControllerPermissionModeForController as Dr, resolveRegistryOriginLaunchCommand as Dt, resolveProfileWorkspaceRuntime as E, projectCodexUsageLimits as En, resolveEvidenceSyncHealth as Er, listBuiltinAgentsRegistryEntries as Et, listAgentRegistrations as F, buildTaskResultEnvelope as Fn, pruneStaleLeases as Fr, resolveConfiguredProfileWorkspacePathForAccount as Ft, updateAgentRegistrations as G, buildAuthenticatedControlPlaneResponse as Gn, syncRuntimeEventToInflightTaskControlRegistry as Gt, resolveAgentTargetState as H, settleInflightTask as Hn, summarizeSkippedDaemonProfiles as Ht, listAgentTargetStates as I, appendLedgerHistoryEntry as In, resolveAdaptiveHeartbeatIntervalMs as Ir, setCustomProfileWorkspace as It, normalizeAgentIds as J, createUnavailableProviderUsageLimits as Jn, isDaemonReconcileInProgressError as Jt, notifyDaemonRouteCatalogChanged as K, assertLegacyAgentContextAssociation as Kn, SPACE_ACTION_CONTEXT_GUIDANCE_LINES as Kt, manageAgentRegistrationInstallation as L, commitResolvedAgentContext as Ln, resolveCatalogSyncIntervalMs as Lr, setOpenMeldManagedProfileWorkspace as Lt, addAgentCustomTarget as M, DaemonServiceRunError as Mn, MIN_HEARTBEAT_INTERVAL_MS as Mr, readProfileWorkspaceConfig as Mt, createRegistrationFromCatalogTarget as N, runRuntimeTask as Nn, applyAcceptedLeases as Nr, readProfileWorkspaceConfigForAccount as Nt, syncDeviceRuntimeStateProjection as O, resolveInstalledClaudeCodeLaunchCandidates as On, resolveSelectableCandidates as Or, resolveRegistryRuntimeAdapterCapabilitySnapshot as Ot, listAgentCustomTargets as P, buildRuntimeWorkspaceFingerprint as Pn, applyIntervalJitterMs as Pr, resolveConfiguredProfileWorkspacePath as Pt, resolveLocalRegistryAgentIdFromAgentControllerRef as Q, materializeCliLaunchCommand as Qn, createPendingAgentInteractionRegistry as Qt, readAgentRuntimeConfigHealth as R, loadLedgerState as Rn, compareAgentControllerRefsForDisplay as Rr, validateCustomProfileWorkspacePath as Rt, syncProfileWorkspaceState as S, forkCodexAppServerThread as Sn, renderWorkingLanguagePrompt as Sr, canonicalizeLocalProjectPath as St, resolveEffectiveProfileWorkingFolderRuntime as T, verifyCodexAppServerThread as Tn, resolveAgentProfileEditCapabilities as Tr, withAgentActivityLocalStateLock as Tt, setAgentRegistrationEnabled as U, upsertConversationExecutionState as Un, syncDaemonRouteCatalogState as Ut, removeAgentCustomTarget as V, seedLegacyAgentContext as Vn, createRouteCatalogFromMutableState as Vt, updateAgentCustomTarget as W, withLedgerStateTransaction as Wn, normalizeDispatchThreadAction as Wt, sortAgentRegistrations as X, resolveDispatchSpaceActionMcpServer as Xn, buildDispatchReplyContextSummary as Xt, parseAgentEnabledOption as Y, createUnsupportedProviderUsageLimits as Yn, createSerialAgentInteractionCallback as Yt, repairBuiltinControllerInstall as Z, buildCliLaunchInvocation as Zn, normalizeDispatchPostMessageAction as Zt, loadDaemonRouteCatalog as _, probeGrokBuildAcpInterface as _n, listAgentControllerPermissionModeOptions as _r, removeProjectConnection as _t, buildOpenClawSpaceSessionKey as a, resolveDispatchContinuityObservation as an, areAgentControllerInterfaceAccountsSame as ar, isHomebrewCommandPath as at, resolveLocalController as b, resolveCodexTimeoutMs as bn, projectPeopleComputersToLegacyLocalRuntimes as br, setDefaultProjectConnection as bt, findOpenClawAgentById as c, resolveLatestScopedConversationExecutionState as cn, buildWorkingLanguagePromptPlan as cr, ProjectBindingOperationError as ct, resolveOpenClawAuthStatus as d, createLocalAdapterEntries as dn, createAuthorityOpenMeldServiceRuntimeId as dr, isProjectBound as dt, createLocalTaskInterruptSender as en, listAgentControllerSupervisedProcessIds as er, detectInstalledSkillsAgents as et, resolveOpenClawProviderRuntimeWorkingDirectory as f, parseOpenRouterUsageResponse as fn, getAgentControllerPermissionModeDisplayMetadata as fr, listProjectBindings as ft, writeDaemonRouteCatalogCache as g, GrokBuildAcpTransportError as gn, isAgentExecutionReadyOrConnecting as gr, removeMissingProjectConnections as gt, readDaemonRouteCatalogCache as h, resolveInstalledOpenCodeLaunchCandidates as hn, isAgentControllerUsageRefreshUnavailable as hr, removeAgentActivityBindingsWhileDeliveryLocked as ht, listOpenClawGatewayAgents as i, resolveDispatchQueueLogMeta as in, DEFAULT_TASK_LIFECYCLE_HEARTBEAT_INTERVAL_MS as ir, isBunGlobalCommandPath as it, resolveAgentProfilePrimaryAgentControllerReport as j, emitReconcileStartedEvidence as jn, MAX_HEARTBEAT_INTERVAL_MS as jr, normalizeCustomProfileWorkspacePath as jt, createPrimaryBindingReadSession as k, emitDriftDetectedEvidence as kn, resolveRouteRegistrationReconcileDecision as kr, resolveRegistryRuntimeAdapterContractByAgentControllerRef as kt, findOpenClawAgentsByWorkspace as l, resolveCatalogSyncSkippedProfilesLogState as ln, createAgentControllerInterfaceDisplayRows as lr, ProjectBindingStoreUpdateRequiredError as lt, resolveOpenClawLocalBootstrapPaths as m, forkOpenCodeServerSession as mn, isAgentControllerUsageAccountUnavailable as mr, migrateProjectBindingStore as mt, fetchOpenClawGatewayHealth as n, createLocalExecutionSlots as nn, DISPATCH_SPACE_ACTION_DELIVERY_ONLY_ENV as nr, EMPTY_AGENT_CONTROLLER_INTERFACE_CAPABILITIES as nt, normalizeOpenClawSpaceIdPrefix as o, resolveCompatibleAgentContextMatch as on, buildAgentControllerRef as or, isNpmGlobalCommandPath as ot, readOpenClawLocalBootstrapState as p, parseOpenCodeGoUsageResponse as pn, getAgentControllerPermissionModeFieldLabel as pr, listProjectConnectionsWithStatus as pt, normalizeAgentId as q, buildAgentContextLookupKey as qn, SPACE_ACTION_TARGET_GUIDANCE_LINES as qt, listOpenClawAgents as r, createInflightTaskControlRegistry as rn, isDispatchSpaceActionDeliveryOnly as rr, resolveBuiltinAgentControllerDefinition as rt, slugifyOpenClawNamePart as s, resolveCompatibleConversationExecutionState as sn, buildInformationProtectionPromptPlan as sr, isPnpmGlobalCommandPath as st, prepareProviderRuntime as t, buildLocalServiceDiagnosticsPayload as tn, createProviderOriginalError as tr, resolveSkillsAgentRegistry as tt, matchesExpectedWorkspace as u, createLocalAdapterContainer as un, createAgentExecutionStatusDisplayRows as ur, bindProject as ut, buildRuntimeRouteTargets as v, resolveInstalledGrokBuildLaunchCandidates as vn, parseAgentControllerRef as vr, resolveProjectBindingForPath as vt, resolveCurrentEffectiveProfileWorkingFolderRuntime as w, resolveCodexAppServerCompletedTurn as wn, resolveAgentExecutionStatus as wr, withAgentActivityDeliveryLock as wt, resolveLocalRuntimeControllerSupport as x, resolveInstalledCodexLaunchCandidates as xn, renderInformationProtectionPrompt as xr, unbindProject as xt, readLocalEnabledControllers as y, projectCursorUsageLimits as yn, peopleComputerContainsDevice as yr, runIfAgentActivityBindingGenerationIsCurrent as yt, reconcileNewRunnableBuiltinAgentRegistrations as z, removeConversationExecutionState as zn, resolveBuiltinAgentControllerBrand as zr, describeProfileWorkspacePathValidationFailure as zt };
34309
+ export { canManageRegistryAgentSkillTargets as $, resolveExecutablePathsOnPath as $n, mergeOpenClawGatewayVisibility as $t, createExpectedRoutesReadSession as A, emitReconcileCompletedEvidence as An, resolveRouteRegistrationReconcileDecision as Ar, ensureOpenMeldManagedProfileWorkspace as At, reconcileNewRunnableBuiltinAgentsForSetup as B, resolveConversationExecutionStateByLookupKey as Bn, resolveBuiltinAgentControllerBrand as Br, createMutableRouteCatalogState as Bt, createModelCatalogReadSession as C, probeCodexAppServerAccount as Cn, renderWorkingLanguagePrompt as Cr, resolveLocalProjectConnectionForPath as Ct, NO_LOCAL_AGENTS_NEED_OPENMELD_SERVICE_REASON as D, probeClaudeCodeUsageLimits as Dn, resolveEvidenceSyncHealth as Dr, resolveRegistryOriginLaunchCommand as Dt, resolveProfileWorkspaceRuntime as E, projectCodexUsageLimits as En, resolveAgentProfileEditCapabilities as Er, listBuiltinAgentsRegistryEntries as Et, listAgentRegistrations as F, buildTaskResultEnvelope as Fn, applyIntervalJitterMs as Fr, resolveConfiguredProfileWorkspacePathForAccount as Ft, updateAgentRegistrations as G, buildAuthenticatedControlPlaneResponse as Gn, syncRuntimeEventToInflightTaskControlRegistry as Gt, resolveAgentTargetState as H, settleInflightTask as Hn, summarizeSkippedDaemonProfiles as Ht, listAgentTargetStates as I, appendLedgerHistoryEntry as In, pruneStaleLeases as Ir, setCustomProfileWorkspace as It, normalizeAgentIds as J, createUnavailableProviderUsageLimits as Jn, isDaemonReconcileInProgressError as Jt, notifyDaemonRouteCatalogChanged as K, assertLegacyAgentContextAssociation as Kn, SPACE_ACTION_CONTEXT_GUIDANCE_LINES as Kt, manageAgentRegistrationInstallation as L, commitResolvedAgentContext as Ln, resolveAdaptiveHeartbeatIntervalMs as Lr, setOpenMeldManagedProfileWorkspace as Lt, addAgentCustomTarget as M, DaemonServiceRunError as Mn, MAX_HEARTBEAT_INTERVAL_MS as Mr, readProfileWorkspaceConfig as Mt, createRegistrationFromCatalogTarget as N, runRuntimeTask as Nn, MIN_HEARTBEAT_INTERVAL_MS as Nr, readProfileWorkspaceConfigForAccount as Nt, syncDeviceRuntimeStateProjection as O, resolveInstalledClaudeCodeLaunchCandidates as On, resolveNativeAgentControllerPermissionModeForController as Or, resolveRegistryRuntimeAdapterCapabilitySnapshot as Ot, listAgentCustomTargets as P, buildRuntimeWorkspaceFingerprint as Pn, applyAcceptedLeases as Pr, resolveConfiguredProfileWorkspacePath as Pt, resolveLocalRegistryAgentIdFromAgentControllerRef as Q, materializeCliLaunchCommand as Qn, createPendingAgentInteractionRegistry as Qt, readAgentRuntimeConfigHealth as R, loadLedgerState as Rn, resolveCatalogSyncIntervalMs as Rr, validateCustomProfileWorkspacePath as Rt, syncProfileWorkspaceState as S, forkCodexAppServerThread as Sn, renderInformationProtectionPrompt as Sr, canonicalizeLocalProjectPath as St, resolveEffectiveProfileWorkingFolderRuntime as T, verifyCodexAppServerThread as Tn, resolveAgentExecutionStatus as Tr, withAgentActivityLocalStateLock as Tt, setAgentRegistrationEnabled as U, upsertConversationExecutionState as Un, syncDaemonRouteCatalogState as Ut, removeAgentCustomTarget as V, seedLegacyAgentContext as Vn, __toESM as Vr, createRouteCatalogFromMutableState as Vt, updateAgentCustomTarget as W, withLedgerStateTransaction as Wn, normalizeDispatchThreadAction as Wt, sortAgentRegistrations as X, resolveDispatchSpaceActionMcpServer as Xn, buildDispatchReplyContextSummary as Xt, parseAgentEnabledOption as Y, createUnsupportedProviderUsageLimits as Yn, createSerialAgentInteractionCallback as Yt, repairBuiltinControllerInstall as Z, buildCliLaunchInvocation as Zn, normalizeDispatchPostMessageAction as Zt, loadDaemonRouteCatalog as _, probeGrokBuildAcpInterface as _n, isAgentExecutionReadyOrConnecting as _r, removeProjectConnection as _t, buildOpenClawSpaceSessionKey as a, resolveDispatchContinuityObservation as an, areAgentControllerInterfaceAccountsSame as ar, isHomebrewCommandPath as at, resolveLocalController as b, resolveCodexTimeoutMs as bn, peopleComputerContainsDevice as br, setDefaultProjectConnection as bt, findOpenClawAgentById as c, resolveLatestScopedConversationExecutionState as cn, buildWorkingLanguagePromptPlan as cr, ProjectBindingOperationError as ct, resolveOpenClawAuthStatus as d, createLocalAdapterEntries as dn, createAgentExecutionStatusDisplayRows as dr, isProjectBound as dt, createLocalTaskInterruptSender as en, listAgentControllerSupervisedProcessIds as er, detectInstalledSkillsAgents as et, resolveOpenClawProviderRuntimeWorkingDirectory as f, parseOpenRouterUsageResponse as fn, createAuthorityOpenMeldServiceRuntimeId as fr, listProjectBindings as ft, writeDaemonRouteCatalogCache as g, GrokBuildAcpTransportError as gn, isAgentControllerUsageRefreshUnavailable as gr, removeMissingProjectConnections as gt, readDaemonRouteCatalogCache as h, resolveInstalledOpenCodeLaunchCandidates as hn, isAgentControllerUsageAccountUnavailable as hr, removeAgentActivityBindingsWhileDeliveryLocked as ht, listOpenClawGatewayAgents as i, resolveDispatchQueueLogMeta as in, DEFAULT_TASK_LIFECYCLE_HEARTBEAT_INTERVAL_MS as ir, isBunGlobalCommandPath as it, resolveAgentProfilePrimaryAgentControllerReport as j, emitReconcileStartedEvidence as jn, ADAPTIVE_HEARTBEAT_JITTER_RATIO as jr, normalizeCustomProfileWorkspacePath as jt, createPrimaryBindingReadSession as k, emitDriftDetectedEvidence as kn, resolveSelectableCandidates as kr, resolveRegistryRuntimeAdapterContractByAgentControllerRef as kt, findOpenClawAgentsByWorkspace as l, resolveCatalogSyncSkippedProfilesLogState as ln, compareAgentControllerVersions as lr, ProjectBindingStoreUpdateRequiredError as lt, resolveOpenClawLocalBootstrapPaths as m, forkOpenCodeServerSession as mn, getAgentControllerPermissionModeFieldLabel as mr, migrateProjectBindingStore as mt, fetchOpenClawGatewayHealth as n, createLocalExecutionSlots as nn, DISPATCH_SPACE_ACTION_DELIVERY_ONLY_ENV as nr, EMPTY_AGENT_CONTROLLER_INTERFACE_CAPABILITIES as nt, normalizeOpenClawSpaceIdPrefix as o, resolveCompatibleAgentContextMatch as on, buildAgentControllerRef as or, isNpmGlobalCommandPath as ot, readOpenClawLocalBootstrapState as p, parseOpenCodeGoUsageResponse as pn, getAgentControllerPermissionModeDisplayMetadata as pr, listProjectConnectionsWithStatus as pt, normalizeAgentId as q, buildAgentContextLookupKey as qn, SPACE_ACTION_TARGET_GUIDANCE_LINES as qt, listOpenClawAgents as r, createInflightTaskControlRegistry as rn, isDispatchSpaceActionDeliveryOnly as rr, resolveBuiltinAgentControllerDefinition as rt, slugifyOpenClawNamePart as s, resolveCompatibleConversationExecutionState as sn, buildInformationProtectionPromptPlan as sr, isPnpmGlobalCommandPath as st, prepareProviderRuntime as t, buildLocalServiceDiagnosticsPayload as tn, createProviderOriginalError as tr, resolveSkillsAgentRegistry as tt, matchesExpectedWorkspace as u, createLocalAdapterContainer as un, createAgentControllerInterfaceDisplayRows as ur, bindProject as ut, buildRuntimeRouteTargets as v, resolveInstalledGrokBuildLaunchCandidates as vn, listAgentControllerPermissionModeOptions as vr, resolveProjectBindingForPath as vt, resolveCurrentEffectiveProfileWorkingFolderRuntime as w, resolveCodexAppServerCompletedTurn as wn, resolveAgentControllerPermissionModeForController as wr, withAgentActivityDeliveryLock as wt, resolveLocalRuntimeControllerSupport as x, resolveInstalledCodexLaunchCandidates as xn, projectPeopleComputersToLegacyLocalRuntimes as xr, unbindProject as xt, readLocalEnabledControllers as y, projectCursorUsageLimits as yn, parseAgentControllerRef as yr, runIfAgentActivityBindingGenerationIsCurrent as yt, reconcileNewRunnableBuiltinAgentRegistrations as z, removeConversationExecutionState as zn, compareAgentControllerRefsForDisplay as zr, describeProfileWorkspacePathValidationFailure as zt };
33459
34310
 
33460
- //# sourceMappingURL=prepare-provider-runtime-Y2WOwFlV.js.map
34311
+ //# sourceMappingURL=prepare-provider-runtime-B_huS5DY.js.map