openmeld 0.3.116 → 0.3.118
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/{add-me-membership-B-aPNnlB.js → add-me-membership-D3yOYT-f.js} +2 -2
- package/dist/{add-me-membership-B-aPNnlB.js.map → add-me-membership-D3yOYT-f.js.map} +1 -1
- package/dist/{command-CiC783jn.js → command-Df2GDfIS.js} +434 -161
- package/dist/{command-CiC783jn.js.map → command-Df2GDfIS.js.map} +1 -1
- package/dist/openmeld.js +2 -2
- package/package.json +2 -2
|
@@ -35,7 +35,7 @@ import { Box, Container, Editor, Key, ProcessTerminal, TUI, Text, getEditorKeybi
|
|
|
35
35
|
var package_default = {
|
|
36
36
|
$schema: "https://www.schemastore.org/package.json",
|
|
37
37
|
name: "openmeld",
|
|
38
|
-
version: "0.3.
|
|
38
|
+
version: "0.3.118",
|
|
39
39
|
openMeldReleaseDate: "2026-08-26",
|
|
40
40
|
description: "OpenMeld CLI - https://openmeld.ai",
|
|
41
41
|
license: "MIT",
|
|
@@ -113,7 +113,7 @@ var package_default = {
|
|
|
113
113
|
},
|
|
114
114
|
openmeld: {
|
|
115
115
|
"releaseLine": "openmeld-greenfield-2026-07",
|
|
116
|
-
"minRequiredCliVersion": "0.3.
|
|
116
|
+
"minRequiredCliVersion": "0.3.117"
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
119
|
//#endregion
|
|
@@ -6757,6 +6757,7 @@ const resolveControlReasonDetail = (error, reasonCode) => reasonCode === "adapte
|
|
|
6757
6757
|
const DEFAULT_CLAUDE_CODE_COMMAND = "claude";
|
|
6758
6758
|
async function resolveInstalledClaudeCodeLaunchCandidates(input) {
|
|
6759
6759
|
const installedCandidates = await resolveInstalledNodeScriptLaunchCandidates({
|
|
6760
|
+
additionalCommandDirectories: resolveClaudeCodeCommandDirectories(),
|
|
6760
6761
|
commandName: DEFAULT_CLAUDE_CODE_COMMAND,
|
|
6761
6762
|
configuredCommand: normalizeOptionalText$67(process.env.OPENMELD_DAEMON_RUNTIME_CLAUDE_CODE_BIN),
|
|
6762
6763
|
displayName: "Claude Code",
|
|
@@ -6796,6 +6797,9 @@ function resolveClaudeCodeTimeoutMs() {
|
|
|
6796
6797
|
if (!Number.isFinite(parsed) || parsed <= 0) return null;
|
|
6797
6798
|
return parsed;
|
|
6798
6799
|
}
|
|
6800
|
+
function resolveClaudeCodeCommandDirectories() {
|
|
6801
|
+
return [join(normalizeOptionalText$67(process.env.HOME) ?? homedir(), ".local", "bin")];
|
|
6802
|
+
}
|
|
6799
6803
|
function normalizeOptionalText$67(value) {
|
|
6800
6804
|
const normalized = String(value ?? "").trim();
|
|
6801
6805
|
return normalized.length > 0 ? normalized : null;
|
|
@@ -13048,6 +13052,7 @@ function toErrorMessage$33(error) {
|
|
|
13048
13052
|
const DEFAULT_OPENCODE_COMMAND = "opencode";
|
|
13049
13053
|
async function resolveInstalledOpenCodeLaunchCandidates(input) {
|
|
13050
13054
|
const installedCandidates = await resolveInstalledNodeScriptLaunchCandidates({
|
|
13055
|
+
additionalCommandDirectories: resolveOpenCodeCommandDirectories(),
|
|
13051
13056
|
commandName: DEFAULT_OPENCODE_COMMAND,
|
|
13052
13057
|
configuredCommand: normalizeOptionalText$49(process.env.OPENMELD_DAEMON_RUNTIME_OPENCODE_BIN),
|
|
13053
13058
|
displayName: "OpenCode",
|
|
@@ -13087,6 +13092,9 @@ function resolveOpenCodeTimeoutMs() {
|
|
|
13087
13092
|
if (!Number.isFinite(parsed) || parsed <= 0) return null;
|
|
13088
13093
|
return parsed;
|
|
13089
13094
|
}
|
|
13095
|
+
function resolveOpenCodeCommandDirectories() {
|
|
13096
|
+
return [join(normalizeOptionalText$49(process.env.HOME) ?? homedir(), ".opencode", "bin")];
|
|
13097
|
+
}
|
|
13090
13098
|
function normalizeOptionalText$49(value) {
|
|
13091
13099
|
const normalized = String(value ?? "").trim();
|
|
13092
13100
|
return normalized.length > 0 ? normalized : null;
|
|
@@ -32811,9 +32819,6 @@ function resolveLocalRegistryAgentIdFromAgentControllerRef(input) {
|
|
|
32811
32819
|
}
|
|
32812
32820
|
//#endregion
|
|
32813
32821
|
//#region src/agents/controller-command-paths.ts
|
|
32814
|
-
function hasPathSeparator(value) {
|
|
32815
|
-
return value.includes("/") || value.includes("\\");
|
|
32816
|
-
}
|
|
32817
32822
|
function normalizeControllerCommandPath(commandPath) {
|
|
32818
32823
|
return commandPath.replaceAll("\\", "/").toLowerCase();
|
|
32819
32824
|
}
|
|
@@ -32842,7 +32847,11 @@ function isCursorNativeCommandPath(commandPath) {
|
|
|
32842
32847
|
}
|
|
32843
32848
|
function isGrokBuildNativeCommandPath(commandPath) {
|
|
32844
32849
|
const normalized = normalizeControllerCommandPath(commandPath);
|
|
32845
|
-
return normalized.endsWith("/.grok/bin/grok") || normalized.endsWith("/.grok/bin/grok.exe");
|
|
32850
|
+
return normalized.endsWith("/.grok/bin/grok") || normalized.endsWith("/.grok/bin/grok.exe") || normalized.endsWith("/.local/bin/grok") || normalized.endsWith("/.local/bin/grok.exe") || normalized.includes("/.grok/downloads/");
|
|
32851
|
+
}
|
|
32852
|
+
function isOpenCodeNativeCommandPath(commandPath) {
|
|
32853
|
+
const normalized = normalizeControllerCommandPath(commandPath);
|
|
32854
|
+
return normalized.includes("/.opencode/bin/") && (normalized.endsWith("/opencode") || normalized.endsWith("/opencode.exe"));
|
|
32846
32855
|
}
|
|
32847
32856
|
//#endregion
|
|
32848
32857
|
//#region src/agents/builtin-agent-controller-definitions.ts
|
|
@@ -32880,8 +32889,11 @@ const BUILTIN_AGENT_CONTROLLER_DEFINITIONS = [
|
|
|
32880
32889
|
name: "claude-code"
|
|
32881
32890
|
},
|
|
32882
32891
|
npmPackageName: "@anthropic-ai/claude-code",
|
|
32883
|
-
|
|
32884
|
-
|
|
32892
|
+
officialChannels: [{
|
|
32893
|
+
latest: { kind: "npm" },
|
|
32894
|
+
matchesPath: isClaudeNativeCommandPath,
|
|
32895
|
+
updateCommand: "claude update"
|
|
32896
|
+
}]
|
|
32885
32897
|
}
|
|
32886
32898
|
},
|
|
32887
32899
|
{
|
|
@@ -32908,8 +32920,7 @@ const BUILTIN_AGENT_CONTROLLER_DEFINITIONS = [
|
|
|
32908
32920
|
name: "codex"
|
|
32909
32921
|
},
|
|
32910
32922
|
hostApplicationPath: isCodexHostApplicationCommandPath,
|
|
32911
|
-
npmPackageName: "@openai/codex"
|
|
32912
|
-
officialUpdatePath: () => false
|
|
32923
|
+
npmPackageName: "@openai/codex"
|
|
32913
32924
|
}
|
|
32914
32925
|
},
|
|
32915
32926
|
{
|
|
@@ -32947,8 +32958,11 @@ const BUILTIN_AGENT_CONTROLLER_DEFINITIONS = [
|
|
|
32947
32958
|
kind: "cask",
|
|
32948
32959
|
name: "cursor-cli"
|
|
32949
32960
|
},
|
|
32950
|
-
|
|
32951
|
-
|
|
32961
|
+
officialChannels: [{
|
|
32962
|
+
latest: { kind: "homebrew" },
|
|
32963
|
+
matchesPath: isCursorNativeCommandPath,
|
|
32964
|
+
updateCommand: "cursor-agent update"
|
|
32965
|
+
}]
|
|
32952
32966
|
}
|
|
32953
32967
|
},
|
|
32954
32968
|
{
|
|
@@ -32969,10 +32983,14 @@ const BUILTIN_AGENT_CONTROLLER_DEFINITIONS = [
|
|
|
32969
32983
|
},
|
|
32970
32984
|
nativeInterface: "acp",
|
|
32971
32985
|
usageLimitSupport: "native",
|
|
32972
|
-
versionMaintenance: {
|
|
32973
|
-
|
|
32974
|
-
|
|
32975
|
-
|
|
32986
|
+
versionMaintenance: { officialChannels: [{
|
|
32987
|
+
latest: {
|
|
32988
|
+
kind: "http-text",
|
|
32989
|
+
url: "https://x.ai/cli/stable"
|
|
32990
|
+
},
|
|
32991
|
+
matchesPath: isGrokBuildNativeCommandPath,
|
|
32992
|
+
updateCommand: "grok update"
|
|
32993
|
+
}] }
|
|
32976
32994
|
},
|
|
32977
32995
|
{
|
|
32978
32996
|
adapterId: "opencode",
|
|
@@ -32998,8 +33016,14 @@ const BUILTIN_AGENT_CONTROLLER_DEFINITIONS = [
|
|
|
32998
33016
|
name: "opencode"
|
|
32999
33017
|
},
|
|
33000
33018
|
npmPackageName: "opencode-ai",
|
|
33001
|
-
|
|
33002
|
-
|
|
33019
|
+
officialChannels: [{
|
|
33020
|
+
latest: {
|
|
33021
|
+
kind: "github-release",
|
|
33022
|
+
repository: "anomalyco/opencode"
|
|
33023
|
+
},
|
|
33024
|
+
matchesPath: isOpenCodeNativeCommandPath,
|
|
33025
|
+
updateCommand: "opencode upgrade"
|
|
33026
|
+
}]
|
|
33003
33027
|
}
|
|
33004
33028
|
}
|
|
33005
33029
|
];
|
|
@@ -51907,6 +51931,384 @@ function pruneSpaceCacheDeletionNoticeState(state, nowTs) {
|
|
|
51907
51931
|
};
|
|
51908
51932
|
}
|
|
51909
51933
|
//#endregion
|
|
51934
|
+
//#region src/agents/controller-version-channel.ts
|
|
51935
|
+
const LATEST_VERSION_TIMEOUT_MS = 4e3;
|
|
51936
|
+
const LATEST_VERSION_CACHE_TTL_MS = 3600 * 1e3;
|
|
51937
|
+
const FAILED_LATEST_VERSION_CACHE_TTL_MS = 300 * 1e3;
|
|
51938
|
+
const HOMEBREW_CELLAR_RE = /^(.*)\/[Cc]ellar\/([^/]+)\/([^/]+)\//u;
|
|
51939
|
+
const HOMEBREW_CASKROOM_RE = /^(.*)\/[Cc]askroom\/([^/]+)\/([^/]+)\//u;
|
|
51940
|
+
const HOMEBREW_FORMULA_VERSION_RE = /^\s*version\s+"([^"]+)"/mu;
|
|
51941
|
+
const HOMEBREW_RELEASE_URL_VERSION_RE = /releases\/download\/v?([^/]+)(?:\/|$)/u;
|
|
51942
|
+
const GITHUB_TAG_PREFIX_RE = /^v/u;
|
|
51943
|
+
const PLAIN_VERSION_LINE_RE = /\r?\n/u;
|
|
51944
|
+
const OFFICIAL_HOMEBREW_TAPS = /* @__PURE__ */ new Set([
|
|
51945
|
+
"homebrew/core",
|
|
51946
|
+
"homebrew/cask",
|
|
51947
|
+
"homebrew/homebrew-core",
|
|
51948
|
+
"homebrew/homebrew-cask"
|
|
51949
|
+
]);
|
|
51950
|
+
const OPENMELD_VERSION_LOOKUP_USER_AGENT = "OpenMeld";
|
|
51951
|
+
const latestControllerVersionCache = /* @__PURE__ */ new Map();
|
|
51952
|
+
async function resolveControllerVersionChannel(input) {
|
|
51953
|
+
const officialChannel = findOfficialChannel(input.commandPath, input.commandPaths, input.definition.officialChannels);
|
|
51954
|
+
if (officialChannel) {
|
|
51955
|
+
const latest = resolveDeclaredLatestLookup(officialChannel.latest, input.definition);
|
|
51956
|
+
if (!latest) return null;
|
|
51957
|
+
return {
|
|
51958
|
+
cacheKey: buildLatestCacheKey(latest),
|
|
51959
|
+
latest,
|
|
51960
|
+
updateCommand: officialChannel.updateCommand
|
|
51961
|
+
};
|
|
51962
|
+
}
|
|
51963
|
+
if (isPackageManagerCommandPath(input.commandPaths)) {
|
|
51964
|
+
if (input.definition.npmPackageName) return {
|
|
51965
|
+
cacheKey: `npm:${input.definition.npmPackageName}`,
|
|
51966
|
+
latest: {
|
|
51967
|
+
kind: "npm",
|
|
51968
|
+
packageName: input.definition.npmPackageName
|
|
51969
|
+
},
|
|
51970
|
+
updateCommand: resolvePackageManagerUpdateCommand({
|
|
51971
|
+
commandPaths: input.commandPaths,
|
|
51972
|
+
packageName: input.definition.npmPackageName
|
|
51973
|
+
})
|
|
51974
|
+
};
|
|
51975
|
+
return null;
|
|
51976
|
+
}
|
|
51977
|
+
if (input.definition.homebrewPackage && input.commandPaths.some(isHomebrewCommandPath)) {
|
|
51978
|
+
const homebrewInstall = await resolveHomebrewInstallIdentity({
|
|
51979
|
+
commandPaths: input.commandPaths,
|
|
51980
|
+
declaredPackage: input.definition.homebrewPackage
|
|
51981
|
+
});
|
|
51982
|
+
if (!homebrewInstall) return null;
|
|
51983
|
+
const latest = resolveHomebrewLatestLookup(homebrewInstall);
|
|
51984
|
+
return {
|
|
51985
|
+
cacheKey: buildLatestCacheKey(latest),
|
|
51986
|
+
latest,
|
|
51987
|
+
updateCommand: resolveHomebrewUpdateCommand(homebrewInstall)
|
|
51988
|
+
};
|
|
51989
|
+
}
|
|
51990
|
+
if (input.definition.npmPackageName) return {
|
|
51991
|
+
cacheKey: `npm:${input.definition.npmPackageName}`,
|
|
51992
|
+
latest: {
|
|
51993
|
+
kind: "npm",
|
|
51994
|
+
packageName: input.definition.npmPackageName
|
|
51995
|
+
},
|
|
51996
|
+
updateCommand: `npm install -g ${input.definition.npmPackageName}@latest`
|
|
51997
|
+
};
|
|
51998
|
+
return null;
|
|
51999
|
+
}
|
|
52000
|
+
async function fetchLatestControllerVersion(channel) {
|
|
52001
|
+
const nowMs = Date.now();
|
|
52002
|
+
const cached = latestControllerVersionCache.get(channel.cacheKey);
|
|
52003
|
+
if (cached && cached.expiresAtMs > nowMs) return {
|
|
52004
|
+
failureDiagnostics: [],
|
|
52005
|
+
version: cached.version
|
|
52006
|
+
};
|
|
52007
|
+
const lookupResult = await fetchLatestForLookup(channel.latest);
|
|
52008
|
+
latestControllerVersionCache.set(channel.cacheKey, {
|
|
52009
|
+
expiresAtMs: nowMs + (lookupResult.version ? LATEST_VERSION_CACHE_TTL_MS : FAILED_LATEST_VERSION_CACHE_TTL_MS),
|
|
52010
|
+
version: lookupResult.version
|
|
52011
|
+
});
|
|
52012
|
+
return lookupResult;
|
|
52013
|
+
}
|
|
52014
|
+
function buildHomebrewFormulaeApiUrl(input) {
|
|
52015
|
+
return `https://formulae.brew.sh/api/${input.kind}/${encodeURIComponent(input.name)}.json`;
|
|
52016
|
+
}
|
|
52017
|
+
function buildHomebrewTapFormulaUrls(input) {
|
|
52018
|
+
const repository = resolveHomebrewTapGitHubRepository(input.tap);
|
|
52019
|
+
if (!repository) return [];
|
|
52020
|
+
const base = `https://raw.githubusercontent.com/${repository.owner}/${repository.repo}/HEAD`;
|
|
52021
|
+
return [`${base}/${input.name}.rb`, `${base}/Formula/${input.name}.rb`];
|
|
52022
|
+
}
|
|
52023
|
+
function parseHomebrewFormulaVersion(source) {
|
|
52024
|
+
const declaredVersion = source.match(HOMEBREW_FORMULA_VERSION_RE)?.[1];
|
|
52025
|
+
if (declaredVersion) return declaredVersion.trim();
|
|
52026
|
+
const releaseVersion = source.match(HOMEBREW_RELEASE_URL_VERSION_RE)?.[1];
|
|
52027
|
+
return releaseVersion ? releaseVersion.trim() : null;
|
|
52028
|
+
}
|
|
52029
|
+
function findOfficialChannel(commandPath, commandPaths, channels) {
|
|
52030
|
+
if (!channels) return null;
|
|
52031
|
+
for (const channel of channels) if (channel.matchesPath(commandPath)) return channel;
|
|
52032
|
+
for (const path of commandPaths) {
|
|
52033
|
+
if (path === commandPath) continue;
|
|
52034
|
+
for (const channel of channels) if (channel.matchesPath(path)) return channel;
|
|
52035
|
+
}
|
|
52036
|
+
return null;
|
|
52037
|
+
}
|
|
52038
|
+
function resolveDeclaredLatestLookup(latest, definition) {
|
|
52039
|
+
if (latest.kind === "npm") return definition.npmPackageName ? {
|
|
52040
|
+
kind: "npm",
|
|
52041
|
+
packageName: definition.npmPackageName
|
|
52042
|
+
} : null;
|
|
52043
|
+
if (latest.kind === "homebrew") return definition.homebrewPackage ? {
|
|
52044
|
+
kind: "homebrew-api",
|
|
52045
|
+
package: definition.homebrewPackage
|
|
52046
|
+
} : null;
|
|
52047
|
+
return latest;
|
|
52048
|
+
}
|
|
52049
|
+
function isPackageManagerCommandPath(commandPaths) {
|
|
52050
|
+
return commandPaths.some(isBunGlobalCommandPath) || commandPaths.some(isPnpmGlobalCommandPath) || commandPaths.some(isNpmGlobalCommandPath);
|
|
52051
|
+
}
|
|
52052
|
+
function resolvePackageManagerUpdateCommand(input) {
|
|
52053
|
+
if (input.commandPaths.some(isBunGlobalCommandPath)) return `bun i -g ${input.packageName}@latest`;
|
|
52054
|
+
if (input.commandPaths.some(isPnpmGlobalCommandPath)) return `pnpm add -g ${input.packageName}@latest`;
|
|
52055
|
+
return `npm install -g ${input.packageName}@latest`;
|
|
52056
|
+
}
|
|
52057
|
+
async function resolveHomebrewInstallIdentity(input) {
|
|
52058
|
+
for (const commandPath of input.commandPaths) {
|
|
52059
|
+
const cellarInstall = parseHomebrewPrefixInstall(commandPath, "formula");
|
|
52060
|
+
if (cellarInstall) {
|
|
52061
|
+
const tap = await readHomebrewReceiptTap(cellarInstall.installDir);
|
|
52062
|
+
return {
|
|
52063
|
+
kind: "formula",
|
|
52064
|
+
name: cellarInstall.name,
|
|
52065
|
+
tap
|
|
52066
|
+
};
|
|
52067
|
+
}
|
|
52068
|
+
const caskInstall = parseHomebrewPrefixInstall(commandPath, "cask");
|
|
52069
|
+
if (caskInstall) {
|
|
52070
|
+
const tap = await readHomebrewReceiptTap(caskInstall.installDir);
|
|
52071
|
+
return {
|
|
52072
|
+
kind: "cask",
|
|
52073
|
+
name: caskInstall.name,
|
|
52074
|
+
tap: tap ?? "homebrew/cask"
|
|
52075
|
+
};
|
|
52076
|
+
}
|
|
52077
|
+
}
|
|
52078
|
+
if (!input.commandPaths.some(isHomebrewCommandPath)) return null;
|
|
52079
|
+
return {
|
|
52080
|
+
kind: input.declaredPackage.kind,
|
|
52081
|
+
name: input.declaredPackage.name,
|
|
52082
|
+
tap: input.declaredPackage.kind === "cask" ? "homebrew/cask" : "homebrew/core"
|
|
52083
|
+
};
|
|
52084
|
+
}
|
|
52085
|
+
function parseHomebrewPrefixInstall(commandPath, kind) {
|
|
52086
|
+
const normalized = commandPath.replaceAll("\\", "/");
|
|
52087
|
+
const match = kind === "formula" ? HOMEBREW_CELLAR_RE.exec(normalized) : HOMEBREW_CASKROOM_RE.exec(normalized);
|
|
52088
|
+
const name = match?.[2];
|
|
52089
|
+
const matchedPrefix = match?.[0];
|
|
52090
|
+
if (!(name && matchedPrefix)) return null;
|
|
52091
|
+
return {
|
|
52092
|
+
installDir: normalized.slice(0, matchedPrefix.length - 1),
|
|
52093
|
+
name
|
|
52094
|
+
};
|
|
52095
|
+
}
|
|
52096
|
+
async function readHomebrewReceiptTap(installDir) {
|
|
52097
|
+
try {
|
|
52098
|
+
const receipt = JSON.parse(await readFile(`${installDir}/INSTALL_RECEIPT.json`, "utf8"));
|
|
52099
|
+
if (!receipt || typeof receipt !== "object") return null;
|
|
52100
|
+
const tap = receipt.source?.tap;
|
|
52101
|
+
return typeof tap === "string" && tap.trim().length > 0 ? tap.trim() : null;
|
|
52102
|
+
} catch {
|
|
52103
|
+
return null;
|
|
52104
|
+
}
|
|
52105
|
+
}
|
|
52106
|
+
function resolveHomebrewLatestLookup(install) {
|
|
52107
|
+
if (install.tap && isThirdPartyHomebrewTap(install.tap)) return {
|
|
52108
|
+
kind: "homebrew-tap-formula",
|
|
52109
|
+
name: install.name,
|
|
52110
|
+
tap: install.tap
|
|
52111
|
+
};
|
|
52112
|
+
return {
|
|
52113
|
+
kind: "homebrew-api",
|
|
52114
|
+
package: {
|
|
52115
|
+
kind: install.kind,
|
|
52116
|
+
name: install.name
|
|
52117
|
+
}
|
|
52118
|
+
};
|
|
52119
|
+
}
|
|
52120
|
+
function resolveHomebrewUpdateCommand(install) {
|
|
52121
|
+
const packageSpec = install.tap && isThirdPartyHomebrewTap(install.tap) ? `${install.tap}/${install.name}` : install.name;
|
|
52122
|
+
return install.kind === "cask" ? `brew upgrade --cask ${packageSpec}` : `brew upgrade ${packageSpec}`;
|
|
52123
|
+
}
|
|
52124
|
+
function isThirdPartyHomebrewTap(tap) {
|
|
52125
|
+
return !OFFICIAL_HOMEBREW_TAPS.has(tap);
|
|
52126
|
+
}
|
|
52127
|
+
function resolveHomebrewTapGitHubRepository(tap) {
|
|
52128
|
+
const [owner, name] = tap.split("/");
|
|
52129
|
+
if (!(owner && name)) return null;
|
|
52130
|
+
return {
|
|
52131
|
+
owner,
|
|
52132
|
+
repo: name.startsWith("homebrew-") ? name : `homebrew-${name}`
|
|
52133
|
+
};
|
|
52134
|
+
}
|
|
52135
|
+
function buildLatestCacheKey(latest) {
|
|
52136
|
+
switch (latest.kind) {
|
|
52137
|
+
case "github-release": return `github-release:${latest.repository}`;
|
|
52138
|
+
case "homebrew-api": return `brew-api:${latest.package.kind}:${latest.package.name}`;
|
|
52139
|
+
case "homebrew-tap-formula": return `brew-tap:${latest.tap}:${latest.name}`;
|
|
52140
|
+
case "http-json":
|
|
52141
|
+
case "http-text": return `${latest.kind}:${latest.url}`;
|
|
52142
|
+
case "npm": return `npm:${latest.packageName}`;
|
|
52143
|
+
default: throw new Error(`Unsupported latest lookup: ${JSON.stringify(latest)}`);
|
|
52144
|
+
}
|
|
52145
|
+
}
|
|
52146
|
+
function fetchLatestForLookup(latest) {
|
|
52147
|
+
switch (latest.kind) {
|
|
52148
|
+
case "github-release": return fetchLatestVersion({
|
|
52149
|
+
accept: "application/vnd.github+json",
|
|
52150
|
+
parse: parseGitHubReleaseTag,
|
|
52151
|
+
url: `https://api.github.com/repos/${latest.repository}/releases/latest`,
|
|
52152
|
+
userAgent: OPENMELD_VERSION_LOOKUP_USER_AGENT
|
|
52153
|
+
});
|
|
52154
|
+
case "homebrew-api": return fetchLatestVersion({
|
|
52155
|
+
accept: "application/json",
|
|
52156
|
+
parse: (body) => parseHomebrewApiVersion(body, latest.package.kind),
|
|
52157
|
+
url: buildHomebrewFormulaeApiUrl(latest.package)
|
|
52158
|
+
});
|
|
52159
|
+
case "homebrew-tap-formula": return fetchFirstSuccessfulLatestVersion(buildHomebrewTapFormulaUrls(latest).map((url) => ({
|
|
52160
|
+
accept: "text/plain",
|
|
52161
|
+
parse: parseHomebrewFormulaVersion,
|
|
52162
|
+
url
|
|
52163
|
+
})));
|
|
52164
|
+
case "http-json": return fetchLatestVersion({
|
|
52165
|
+
accept: "application/json",
|
|
52166
|
+
parse: parseJsonVersionField,
|
|
52167
|
+
url: latest.url
|
|
52168
|
+
});
|
|
52169
|
+
case "http-text": return fetchLatestVersion({
|
|
52170
|
+
accept: "text/plain",
|
|
52171
|
+
parse: parsePlainVersion,
|
|
52172
|
+
url: latest.url
|
|
52173
|
+
});
|
|
52174
|
+
case "npm": return fetchLatestVersion({
|
|
52175
|
+
accept: "application/json",
|
|
52176
|
+
parse: parseJsonVersionField,
|
|
52177
|
+
url: `https://registry.npmjs.org/${encodeURIComponent(latest.packageName)}/latest`
|
|
52178
|
+
});
|
|
52179
|
+
default: throw new Error(`Unsupported latest lookup: ${JSON.stringify(latest)}`);
|
|
52180
|
+
}
|
|
52181
|
+
}
|
|
52182
|
+
async function fetchFirstSuccessfulLatestVersion(lookups) {
|
|
52183
|
+
const failureDiagnostics = [];
|
|
52184
|
+
for (const lookup of lookups) {
|
|
52185
|
+
const lookupResult = await fetchLatestVersion(lookup);
|
|
52186
|
+
if (lookupResult.version) return {
|
|
52187
|
+
failureDiagnostics: [...failureDiagnostics, ...lookupResult.failureDiagnostics],
|
|
52188
|
+
version: lookupResult.version
|
|
52189
|
+
};
|
|
52190
|
+
failureDiagnostics.push(...lookupResult.failureDiagnostics);
|
|
52191
|
+
}
|
|
52192
|
+
return {
|
|
52193
|
+
failureDiagnostics,
|
|
52194
|
+
version: null
|
|
52195
|
+
};
|
|
52196
|
+
}
|
|
52197
|
+
async function fetchLatestVersion(input) {
|
|
52198
|
+
const failureDiagnostics = [];
|
|
52199
|
+
for (const attempt of [1, 2]) {
|
|
52200
|
+
const attemptResult = await fetchLatestVersionAttempt({
|
|
52201
|
+
...input,
|
|
52202
|
+
attempt
|
|
52203
|
+
});
|
|
52204
|
+
if (attemptResult.ok) return {
|
|
52205
|
+
failureDiagnostics,
|
|
52206
|
+
version: attemptResult.version
|
|
52207
|
+
};
|
|
52208
|
+
failureDiagnostics.push(attemptResult.failureDiagnostic);
|
|
52209
|
+
}
|
|
52210
|
+
return {
|
|
52211
|
+
failureDiagnostics,
|
|
52212
|
+
version: null
|
|
52213
|
+
};
|
|
52214
|
+
}
|
|
52215
|
+
async function fetchLatestVersionAttempt(input) {
|
|
52216
|
+
const abortController = new AbortController();
|
|
52217
|
+
const timeout = setTimeout(() => {
|
|
52218
|
+
abortController.abort();
|
|
52219
|
+
}, LATEST_VERSION_TIMEOUT_MS);
|
|
52220
|
+
try {
|
|
52221
|
+
const response = await fetch(input.url, {
|
|
52222
|
+
headers: {
|
|
52223
|
+
accept: input.accept,
|
|
52224
|
+
...input.userAgent ? { "user-agent": input.userAgent } : {}
|
|
52225
|
+
},
|
|
52226
|
+
signal: abortController.signal
|
|
52227
|
+
});
|
|
52228
|
+
if (!response.ok) return {
|
|
52229
|
+
failureDiagnostic: {
|
|
52230
|
+
attempt: input.attempt,
|
|
52231
|
+
errorMessage: null,
|
|
52232
|
+
errorName: null,
|
|
52233
|
+
reason: "http_error",
|
|
52234
|
+
statusCode: response.status,
|
|
52235
|
+
url: input.url
|
|
52236
|
+
},
|
|
52237
|
+
ok: false
|
|
52238
|
+
};
|
|
52239
|
+
const version = input.parse(await response.text());
|
|
52240
|
+
if (!version) return {
|
|
52241
|
+
failureDiagnostic: {
|
|
52242
|
+
attempt: input.attempt,
|
|
52243
|
+
errorMessage: null,
|
|
52244
|
+
errorName: null,
|
|
52245
|
+
reason: "invalid_response",
|
|
52246
|
+
statusCode: response.status,
|
|
52247
|
+
url: input.url
|
|
52248
|
+
},
|
|
52249
|
+
ok: false
|
|
52250
|
+
};
|
|
52251
|
+
return {
|
|
52252
|
+
ok: true,
|
|
52253
|
+
version
|
|
52254
|
+
};
|
|
52255
|
+
} catch (error) {
|
|
52256
|
+
const errorName = error instanceof Error ? error.name : null;
|
|
52257
|
+
return {
|
|
52258
|
+
failureDiagnostic: {
|
|
52259
|
+
attempt: input.attempt,
|
|
52260
|
+
errorMessage: error instanceof Error ? error.message : String(error),
|
|
52261
|
+
errorName,
|
|
52262
|
+
reason: errorName === "AbortError" ? "timeout" : "request_error",
|
|
52263
|
+
statusCode: null,
|
|
52264
|
+
url: input.url
|
|
52265
|
+
},
|
|
52266
|
+
ok: false
|
|
52267
|
+
};
|
|
52268
|
+
} finally {
|
|
52269
|
+
clearTimeout(timeout);
|
|
52270
|
+
}
|
|
52271
|
+
}
|
|
52272
|
+
function parseJsonVersionField(body) {
|
|
52273
|
+
try {
|
|
52274
|
+
const payload = JSON.parse(body);
|
|
52275
|
+
if (!payload || typeof payload !== "object") return null;
|
|
52276
|
+
const version = payload.version;
|
|
52277
|
+
return typeof version === "string" && version.trim().length > 0 ? version.trim() : null;
|
|
52278
|
+
} catch {
|
|
52279
|
+
return null;
|
|
52280
|
+
}
|
|
52281
|
+
}
|
|
52282
|
+
function parseGitHubReleaseTag(body) {
|
|
52283
|
+
try {
|
|
52284
|
+
const payload = JSON.parse(body);
|
|
52285
|
+
if (!payload || typeof payload !== "object") return null;
|
|
52286
|
+
const tagName = payload.tag_name;
|
|
52287
|
+
if (typeof tagName !== "string" || tagName.trim().length === 0) return null;
|
|
52288
|
+
return tagName.trim().replace(GITHUB_TAG_PREFIX_RE, "");
|
|
52289
|
+
} catch {
|
|
52290
|
+
return null;
|
|
52291
|
+
}
|
|
52292
|
+
}
|
|
52293
|
+
function parseHomebrewApiVersion(body, kind) {
|
|
52294
|
+
try {
|
|
52295
|
+
const payload = JSON.parse(body);
|
|
52296
|
+
if (!payload || typeof payload !== "object") return null;
|
|
52297
|
+
if (kind === "cask") {
|
|
52298
|
+
const version = payload.version;
|
|
52299
|
+
return typeof version === "string" && version.trim().length > 0 ? version.trim() : null;
|
|
52300
|
+
}
|
|
52301
|
+
const stable = payload.versions?.stable;
|
|
52302
|
+
return typeof stable === "string" && stable.trim().length > 0 ? stable.trim() : null;
|
|
52303
|
+
} catch {
|
|
52304
|
+
return null;
|
|
52305
|
+
}
|
|
52306
|
+
}
|
|
52307
|
+
function parsePlainVersion(body) {
|
|
52308
|
+
const version = body.split(PLAIN_VERSION_LINE_RE, 1)[0]?.trim() ?? "";
|
|
52309
|
+
return version.length > 0 ? version : null;
|
|
52310
|
+
}
|
|
52311
|
+
//#endregion
|
|
51910
52312
|
//#region src/local-service/inventory/agent-controller-interface-keeper.ts
|
|
51911
52313
|
const LAST_GOOD_REUSE_TTL_MS = 15 * 6e4;
|
|
51912
52314
|
const AGENT_CONTROLLER_INTERFACE_REPROBE_DELAY_MS = 45e3;
|
|
@@ -52397,15 +52799,11 @@ function resolveLaunchContractCommandPath(launchContract) {
|
|
|
52397
52799
|
//#region src/local-service/inventory/agent-controller-interface.ts
|
|
52398
52800
|
const PROBE_TIMEOUT_MS = 8e3;
|
|
52399
52801
|
const CODEX_AUX_INVENTORY_GRACE_MS = 2500;
|
|
52400
|
-
const LATEST_VERSION_TIMEOUT_MS = 4e3;
|
|
52401
|
-
const LATEST_VERSION_CACHE_TTL_MS = 3600 * 1e3;
|
|
52402
|
-
const FAILED_LATEST_VERSION_CACHE_TTL_MS = 300 * 1e3;
|
|
52403
52802
|
const PROBE_OUTPUT_LIMIT = 32e3;
|
|
52404
52803
|
const CODEX_USER_AGENT_VERSION_RE = /\/([^\s]+)/u;
|
|
52405
52804
|
const CLI_SEMVER_RE = /\b(\d+\.\d+\.\d+(?:[-+][^\s]+)?)\b/u;
|
|
52406
52805
|
const SEMVER_CORE_RE = /^v?(\d+)\.(\d+)\.(\d+)/u;
|
|
52407
52806
|
const WHITESPACE_RE = /\s+/u;
|
|
52408
|
-
const latestControllerVersionCache = /* @__PURE__ */ new Map();
|
|
52409
52807
|
const CONTROLLER_INTERFACE_SNAPSHOT_RESOLVERS = {
|
|
52410
52808
|
"claude-code": resolveClaudeCodeInterfaceSnapshot,
|
|
52411
52809
|
codex: resolveCodexInterfaceSnapshot,
|
|
@@ -52597,11 +52995,12 @@ async function resolveControllerVersionAdvisory(input) {
|
|
|
52597
52995
|
const commandPath = resolveLaunchContractCommandPath(input.launchContract);
|
|
52598
52996
|
const commandPaths = [commandPath, await realpath(commandPath).catch(() => null)].filter((value) => Boolean(value));
|
|
52599
52997
|
if (definition.hostApplicationPath && commandPaths.some(definition.hostApplicationPath)) return;
|
|
52600
|
-
const
|
|
52998
|
+
const channel = await resolveControllerVersionChannel({
|
|
52601
52999
|
commandPath,
|
|
52602
53000
|
commandPaths,
|
|
52603
53001
|
definition
|
|
52604
53002
|
});
|
|
53003
|
+
const updateCommand = channel?.updateCommand ?? null;
|
|
52605
53004
|
if (!input.currentVersion) return {
|
|
52606
53005
|
checkedAt: input.checkedAt,
|
|
52607
53006
|
currentVersion: null,
|
|
@@ -52610,10 +53009,17 @@ async function resolveControllerVersionAdvisory(input) {
|
|
|
52610
53009
|
status: "unknown",
|
|
52611
53010
|
updateCommand
|
|
52612
53011
|
};
|
|
52613
|
-
|
|
52614
|
-
|
|
52615
|
-
|
|
52616
|
-
|
|
53012
|
+
if (!channel) return {
|
|
53013
|
+
checkedAt: input.checkedAt,
|
|
53014
|
+
currentVersion: input.currentVersion,
|
|
53015
|
+
latestVersion: null,
|
|
53016
|
+
message: "OpenMeld could not check the latest controller version.",
|
|
53017
|
+
status: "unknown",
|
|
53018
|
+
updateCommand
|
|
53019
|
+
};
|
|
53020
|
+
const lookupResult = await fetchLatestControllerVersion(channel);
|
|
53021
|
+
recordLatestVersionFailureDiagnostics(lookupResult);
|
|
53022
|
+
const latestVersion = lookupResult.version;
|
|
52617
53023
|
if (!latestVersion) return {
|
|
52618
53024
|
checkedAt: input.checkedAt,
|
|
52619
53025
|
currentVersion: input.currentVersion,
|
|
@@ -52648,54 +53054,6 @@ async function resolveControllerVersionAdvisory(input) {
|
|
|
52648
53054
|
updateCommand
|
|
52649
53055
|
};
|
|
52650
53056
|
}
|
|
52651
|
-
function resolveControllerUpdateCommand(input) {
|
|
52652
|
-
if (input.definition.officialUpdateCommand && input.commandPaths.some(input.definition.officialUpdatePath)) return input.definition.officialUpdateCommand;
|
|
52653
|
-
if (input.commandPaths.some(isBunGlobalCommandPath)) return input.definition.npmPackageName ? `bun i -g ${input.definition.npmPackageName}@latest` : null;
|
|
52654
|
-
if (input.commandPaths.some(isPnpmGlobalCommandPath)) return input.definition.npmPackageName ? `pnpm add -g ${input.definition.npmPackageName}@latest` : null;
|
|
52655
|
-
if (input.commandPaths.some(isNpmGlobalCommandPath)) return input.definition.npmPackageName ? `npm install -g ${input.definition.npmPackageName}@latest` : null;
|
|
52656
|
-
if (input.definition.homebrewPackage && input.commandPaths.some(isHomebrewCommandPath)) return `brew upgrade${input.definition.homebrewPackage.kind === "cask" ? " --cask" : ""} ${input.definition.homebrewPackage.name}`;
|
|
52657
|
-
if (!hasPathSeparator(input.commandPath)) return input.definition.npmPackageName ? `npm install -g ${input.definition.npmPackageName}@latest` : null;
|
|
52658
|
-
return null;
|
|
52659
|
-
}
|
|
52660
|
-
function resolveControllerVersionBaseline(input) {
|
|
52661
|
-
if (input.commandPaths.some(isBunGlobalCommandPath) || input.commandPaths.some(isPnpmGlobalCommandPath) || input.commandPaths.some(isNpmGlobalCommandPath)) {
|
|
52662
|
-
if (input.definition.npmPackageName) return {
|
|
52663
|
-
kind: "npm",
|
|
52664
|
-
packageName: input.definition.npmPackageName
|
|
52665
|
-
};
|
|
52666
|
-
if (input.definition.homebrewPackage) return {
|
|
52667
|
-
kind: "homebrew",
|
|
52668
|
-
package: input.definition.homebrewPackage
|
|
52669
|
-
};
|
|
52670
|
-
return null;
|
|
52671
|
-
}
|
|
52672
|
-
if (input.commandPaths.some(isHomebrewCommandPath)) return input.definition.homebrewPackage ? {
|
|
52673
|
-
kind: "homebrew",
|
|
52674
|
-
package: input.definition.homebrewPackage
|
|
52675
|
-
} : null;
|
|
52676
|
-
if (input.definition.npmPackageName) return {
|
|
52677
|
-
kind: "npm",
|
|
52678
|
-
packageName: input.definition.npmPackageName
|
|
52679
|
-
};
|
|
52680
|
-
return input.definition.homebrewPackage ? {
|
|
52681
|
-
kind: "homebrew",
|
|
52682
|
-
package: input.definition.homebrewPackage
|
|
52683
|
-
} : null;
|
|
52684
|
-
}
|
|
52685
|
-
async function resolveLatestControllerVersion(baseline) {
|
|
52686
|
-
if (!baseline) return null;
|
|
52687
|
-
const cacheKey = baseline.kind === "npm" ? `npm:${baseline.packageName}` : `brew-${baseline.package.kind}:${baseline.package.name}`;
|
|
52688
|
-
const nowMs = Date.now();
|
|
52689
|
-
const cached = latestControllerVersionCache.get(cacheKey);
|
|
52690
|
-
if (cached && cached.expiresAtMs > nowMs) return cached.version;
|
|
52691
|
-
const lookupResult = baseline.kind === "npm" ? await fetchLatestNpmVersion(baseline.packageName) : await fetchLatestHomebrewVersion(baseline.package);
|
|
52692
|
-
recordLatestVersionFailureDiagnostics(lookupResult);
|
|
52693
|
-
latestControllerVersionCache.set(cacheKey, {
|
|
52694
|
-
expiresAtMs: nowMs + (lookupResult.version ? LATEST_VERSION_CACHE_TTL_MS : FAILED_LATEST_VERSION_CACHE_TTL_MS),
|
|
52695
|
-
version: lookupResult.version
|
|
52696
|
-
});
|
|
52697
|
-
return lookupResult.version;
|
|
52698
|
-
}
|
|
52699
53057
|
function recordLatestVersionFailureDiagnostics(lookupResult) {
|
|
52700
53058
|
for (const diagnostic of lookupResult.failureDiagnostics) warnDaemonEvent("[openmeld.agent_controller.latest_version_lookup_attempt_failed]", {
|
|
52701
53059
|
attempt: diagnostic.attempt,
|
|
@@ -52707,91 +53065,6 @@ function recordLatestVersionFailureDiagnostics(lookupResult) {
|
|
|
52707
53065
|
url: diagnostic.url
|
|
52708
53066
|
});
|
|
52709
53067
|
}
|
|
52710
|
-
function fetchLatestHomebrewVersion(homebrewPackage) {
|
|
52711
|
-
return fetchLatestVersion({
|
|
52712
|
-
resolveVersion: (payload) => homebrewPackage.kind === "cask" ? normalizeOptionalText$15(payload?.version) : normalizeOptionalText$15(toRecord$1(payload?.versions)?.stable),
|
|
52713
|
-
url: `https://formulae.brew.sh/api/${homebrewPackage.kind}/${encodeURIComponent(homebrewPackage.name)}.json`
|
|
52714
|
-
});
|
|
52715
|
-
}
|
|
52716
|
-
function fetchLatestNpmVersion(npmPackageName) {
|
|
52717
|
-
return fetchLatestVersion({
|
|
52718
|
-
resolveVersion: (payload) => normalizeOptionalText$15(payload?.version),
|
|
52719
|
-
url: `https://registry.npmjs.org/${encodeURIComponent(npmPackageName)}/latest`
|
|
52720
|
-
});
|
|
52721
|
-
}
|
|
52722
|
-
async function fetchLatestVersion(input) {
|
|
52723
|
-
const failureDiagnostics = [];
|
|
52724
|
-
for (const attempt of [1, 2]) {
|
|
52725
|
-
const attemptResult = await fetchLatestVersionAttempt({
|
|
52726
|
-
...input,
|
|
52727
|
-
attempt
|
|
52728
|
-
});
|
|
52729
|
-
if (attemptResult.ok) return {
|
|
52730
|
-
failureDiagnostics,
|
|
52731
|
-
version: attemptResult.version
|
|
52732
|
-
};
|
|
52733
|
-
failureDiagnostics.push(attemptResult.failureDiagnostic);
|
|
52734
|
-
}
|
|
52735
|
-
return {
|
|
52736
|
-
failureDiagnostics,
|
|
52737
|
-
version: null
|
|
52738
|
-
};
|
|
52739
|
-
}
|
|
52740
|
-
async function fetchLatestVersionAttempt(input) {
|
|
52741
|
-
const abortController = new AbortController();
|
|
52742
|
-
const timeout = setTimeout(() => {
|
|
52743
|
-
abortController.abort();
|
|
52744
|
-
}, LATEST_VERSION_TIMEOUT_MS);
|
|
52745
|
-
try {
|
|
52746
|
-
const response = await fetch(input.url, {
|
|
52747
|
-
headers: { accept: "application/json" },
|
|
52748
|
-
signal: abortController.signal
|
|
52749
|
-
});
|
|
52750
|
-
if (!response.ok) return {
|
|
52751
|
-
failureDiagnostic: {
|
|
52752
|
-
attempt: input.attempt,
|
|
52753
|
-
errorMessage: null,
|
|
52754
|
-
errorName: null,
|
|
52755
|
-
reason: "http_error",
|
|
52756
|
-
statusCode: response.status,
|
|
52757
|
-
url: input.url
|
|
52758
|
-
},
|
|
52759
|
-
ok: false
|
|
52760
|
-
};
|
|
52761
|
-
const payload = toRecord$1(await response.json());
|
|
52762
|
-
const version = input.resolveVersion(payload);
|
|
52763
|
-
if (!version) return {
|
|
52764
|
-
failureDiagnostic: {
|
|
52765
|
-
attempt: input.attempt,
|
|
52766
|
-
errorMessage: null,
|
|
52767
|
-
errorName: null,
|
|
52768
|
-
reason: "invalid_response",
|
|
52769
|
-
statusCode: response.status,
|
|
52770
|
-
url: input.url
|
|
52771
|
-
},
|
|
52772
|
-
ok: false
|
|
52773
|
-
};
|
|
52774
|
-
return {
|
|
52775
|
-
ok: true,
|
|
52776
|
-
version
|
|
52777
|
-
};
|
|
52778
|
-
} catch (error) {
|
|
52779
|
-
const errorName = error instanceof Error ? error.name : null;
|
|
52780
|
-
return {
|
|
52781
|
-
failureDiagnostic: {
|
|
52782
|
-
attempt: input.attempt,
|
|
52783
|
-
errorMessage: error instanceof Error ? error.message : String(error),
|
|
52784
|
-
errorName,
|
|
52785
|
-
reason: errorName === "AbortError" ? "timeout" : "request_error",
|
|
52786
|
-
statusCode: null,
|
|
52787
|
-
url: input.url
|
|
52788
|
-
},
|
|
52789
|
-
ok: false
|
|
52790
|
-
};
|
|
52791
|
-
} finally {
|
|
52792
|
-
clearTimeout(timeout);
|
|
52793
|
-
}
|
|
52794
|
-
}
|
|
52795
53068
|
function compareSemverCore(left, right) {
|
|
52796
53069
|
const leftParts = parseSemverCore(left);
|
|
52797
53070
|
const rightParts = parseSemverCore(right);
|
|
@@ -108369,4 +108642,4 @@ function isHumanInteractiveSpaceRuntime(runtime) {
|
|
|
108369
108642
|
//#endregion
|
|
108370
108643
|
export { runAgentsRepair as $, installAgentActivityIntegrations as $a, readDaemonServiceJobCrashExitCode as $i, formatDaemonServiceMissingRecommendation as $n, resolveOpenClawLocalDiagnosticsValue as $r, readBundledOpenMeldCliSkillDocumentByPath as $t, assertFullSignalIdArgument as A, updateOpenMeldProfile as Aa, resolveNativeAgentControllerPermissionModeForController as Ai, upsertSpaceConfig as An, setDefaultProjectConnection as Ao, DualViewGuideError as Ar, shouldEmitAgentOverview as At, persistAgentTransportSelection as B, resolveAuthenticationGuidanceFromMessage as Ba, assessServerRequiredVersion as Bi, promptSearchMultiselect as Bn, outJsonLine as Bo, runPendingDaemonServiceUpdate as Br, parseJsonResponse$1 as Bt, toSpaceMetaUpsertInput as C, resolveOpenMeldProfileOrNull as Ca, getAgentControllerPermissionModeFieldLabel as Ci, submitRuntimeAgentControllerReport as Cn, removeProjectOutbox as Co, SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS as Cr, runDaemonTeardownStrict as Ct, formatHumanReadTargetList as D, listOpenMeldProfiles as Da, resolveAgentExecutionStatus as Di, resolveLocalAgentControllerLaunchability as Dn, migrateProjectBindingStore as Do, registerAuthLoginRequestOptions as Dr, reconcileCliVersionView as Dt, buildHumanReplyContextSummary as E, deleteOpenMeldProfile as Ea, resolveAgentControllerPermissionModeForController as Ei, resolveLocalAgentControllerBlockerReasonCodes as En, listProjectConnectionsWithStatus as Eo, registerDaemonControlTargetOptions as Er, buildProfileWorkspaceRows as Et, emitSpaceAgentOverview as F, buildAgentAuthenticationGuide as Fa, buildDaemonServiceTargetSpec as Fi, buildSignalMessageReadProjection as Fn, renderInfoCard as Fo, SPACE_CONTRACT_ALLOWED_ACTION_ORDER as Fr, fetchSpaceMeta as Ft, runAgentsCustomList as G, LocalDaemonControlPlaneClientError as Ga, resetCurrentCommandCheckState as Gi, isCliUpdateCheckApplicable as Gn, cliJsonSkillsLoadEnvelopeSchema as Go, resolveServiceReadinessFromServiceStatus as Gr, runDaemonStartDecisionPrompt as Gt, runAgents as H, setProfileDefaultView as Ha, finishCurrentCommandCheckScope as Hi, isReturnKeypress as Hn, cliBinaryDeltaPatchSchema as Ho, ensureDaemonRuntimePaths as Hr, writeInstalledLocalComponentsSnapshot as Ht, emitSpaceCliAgentOverview as I, buildHumanAuthenticationCard as Ia, resolveDaemonServiceAlignmentDecision as Ii, buildSpaceRoundReadProjection as In, renderTextInfoCard as Io, areAllowedActionsEquivalent as Ir, updateSpaceMeta as It, runAgentsDetect as J, registerAgentActivityRoute as Ja, resolveVersionChangeDirection as Ji, readDispatchSpaceActionContextFromEnv as Jn, organizationJoinLinkErrorResponseSchema as Jo, formatAgentReplyReadinessLabel as Jr, runSkillsEnsure as Jt, runAgentsCustomRemove as K, requestLocalAgentActivitySync as Ka, startCurrentCommandCheckScope as Ki, assertDispatchOwnedRuntimePublicWriteAllowed as Kn, cliJsonSkillsShowEnvelopeSchema as Ko, resolveDaemonServiceFreshnessWarning as Kr, collectSkillsReadinessSnapshot as Kt, prepareLocalAgentReadiness as L, createAuthenticationError as La, classifyDaemonServiceRunStartability as Li, buildUpdatesReplyWorkflowProjection as Ln, sanitizeTerminalDisplayText as Lo, buildAgentFacingPublicationModeGuideLines as Lr, readGatewayJsonResponse as Lt, prepareAuthenticatedSpaceCommandContext as M, clearSelectedOpenMeldProfileId as Ma, buildDaemonRouteObservationPresentation as Mi, buildDispatchResultMessageReadProjection as Mn, canonicalizeLocalProjectPath as Mo, buildDualViewGuideMessage as Mr, readDaemonStartFailureLogTailLines as Mt, resolveOpenMeldProfileForSpaceCommand as N, getSelectedOpenMeldProfileId as Na, buildOnboardingPlan as Ni, buildDispatchResultReplyWorkflowProjection as Nn, enqueueControllerTaskLifecycleEventWhileLocked as No, formatAgentOverviewPayload as Nr, fetchSpaceUpdates as Nt, parseEnvelope as O, primeOpenMeldProfilesSessionCache as Oa, resolveAgentProfileEditCapabilities as Oi, resolveLocalAgentControllerReportDecision as On, removeProjectConnection as Oo, registerBuiltinAgentSelectionOptions as Or, emitDaemonAgentOverview as Ot, resolveSpaceAccessLabel as P, setSelectedOpenMeldProfileId as Pa, getSetupFlowCopy as Pi, buildSignalIndex as Pn, readControllerTaskLifecycleOutboxHealth as Po, OPENMELD_AGENT_MENTAL_MODEL_LINES as Pr, createCliSpaceApi as Pt, runAgentsManage as Q, defaultManagedIntegrationPaths as Qa, isDaemonServiceJobNeverSpawned as Qi, formatDaemonServiceDowngradeBlockedRecommendation as Qn, resolveGatewayChainReadiness as Qr, ensureLocalSkills as Qt, buildReplyReadinessGuidance as R, resolveAuthenticationGuidance as Ra, classifyDaemonServiceWakeability as Ri, createSpaceMemberIdentityIndex as Rn, emitCliJsonEnvelope as Ro, canonicalizeAllowedActions as Rr, readGatewayTextResponse as Rt, loadSpaceSignalIndexOrNull as S, requireOpenMeldProfile as Sa, getAgentControllerPermissionModeDisplayMetadata as Si, submitProfileRuntimeAgentControllerReport as Sn, readAgentActivityOutboxHealth as So, registerSpaceMemberSelectionOptions as Sr, runDaemonStop as St, buildFormalSignalReadPayload as T, createOpenMeldHumanProfile as Ta, parseAgentControllerRef as Ti, collectLocalAgentControllerInventory as Tn, listProjectBindings as To, getCliVersionInfo as Tr, buildProfileWorkspacePresentation as Tt, runAgentsConfig as U, LocalProjectConnectionError as Ua, getCurrentCommandCheckState as Ui, runInteractivePrompt as Un, cliJsonOutputEnvelopeSchema as Uo, resolveDaemonDeviceId as Ur, resolveDaemonServiceParticipationStatus as Ut, resolveAgentProfileSetup as V, getProfileDefaultView as Va, resolveOpenMeldEnvironmentTarget as Vi, promptSearchSelect as Vn, outLine as Vo, scheduleDaemonServiceUpdate as Vr, resolveLocalComponentsStatus as Vt, runAgentsCustomAdd as W, validateLocalProjectConnectionPath as Wa, isCurrentCommandCheckScopeActive as Wi, assessCliUpdate as Wn, cliJsonSkillsListEnvelopeSchema as Wo, formatDaemonFailureContextText as Wr, runDaemonServiceParticipationGate as Wt, runAgentsEnable as X, unregisterAgentActivityRoute as Xa, readCurrentObservedDaemonRuntimeStatus as Xi, formatElapsedTime as Xn, compareAgentControllerRefsForDisplay as Xo, formatHumanReplyReadinessReason as Xr, runSkillsUninstall as Xt, runAgentsDisable as Y, resolveAgentActivityRouteForPath as Ya, readCurrentDaemonRuntimeContext as Yi, writeDispatchSpaceActionRecord as Yn, revokeOrganizationJoinLinkResponseSchema as Yo, formatDeviceReplyReadinessLabel as Yr, runSkillsInstall as Yt, runAgentsList as Z, AGENT_ACTIVITY_INTEGRATION_OWNER as Za, getDaemonSystemServiceLogPath as Zi, resolveElapsedTimeMs as Zn, package_default as Zo, mapAgentReplyReadinessToLegacyAutoReply as Zr, runSkillsUpdate as Zt, runSpaceWriteWithPasswordRetry as _, formatMessage as _a, listBuiltinAgentsRegistryEntries as _i, ensureAgentProfileRuntimeBinding as _n, resolveObservedAgentActivityBinding as _o, createStartAgentIdentityGuideError as _r, runDaemonInterrupt as _t, runSpaceDelete as a, ensureVersionStateReady as aa, normalizeCustomProfileWorkspacePath as ai, evaluateCommandAuthentication as an, formatOpenMeldCliCommands as ao, createResetConfirmationGuideError as ar, printOpenMeldBanner as at, buildIdentityOnlyMembersSnapshotForReadProjection as b, resolveViewProfileKey as ba, buildAgentControllerRef as bi, assessActionParticipationCandidate as bn, enqueueAgentActivityHookEvent as bo, getCommandEntryContract as br, runDaemonSnapshot as bt, runSpaceLeave as c, readVersionState as ca, setCustomProfileWorkspace as ci, runAuthMenu as cn, formatProfileAwareOpenMeldCliCommands as co, createSpaceContractSetGuideError as cr, renderOpenMeldLogo as ct, runSpaceRemoveMembers as d, toStartBackgroundHelperExecutionCompatibility as da, describeProfileWorkspacePathValidationFailure as di, buildAuthStatusSnapshot as dn, syncLocalAgentActivity as do, createSpacePublicationSetGuideError as dr, resolveSpaceSendText as dt, resolveDaemonServiceManager as ea, readRecentDaemonLifecycleEvents as ei, readRuntimeReportingHealthState as en, readAgentActivityIntegrationStatus as eo, canUseInteractivePrompts as er, runAgentsShow as et, runSpaceSend as f, resolveCurrentDaemonExpectedVersion as fa, syncDeviceRuntimeStateProjection as fi, formatActiveOrganizationLabel as fn, readDaemonServiceContract as fo, createSpaceRemoveMembersGuideError as fr, runDaemon as ft, runSpaceReadWithPasswordRetry as g, createPresenter as ga, reconcileNewRunnableBuiltinAgentsForSetup as gi, promptTextEntry as gn, buildAgentActivityEvent as go, createSpaceUpdatesGuideError as gr, runDaemonInstall as gt, uploadPreparedSpaceFiles as h, renderHumanTextErrorCard as ha, listAgentTargetStates as hi, resolveCreateProfileName as hn, removeAgentActivityContextCache as ho, createSpaceTargetGuideError as hr, runDaemonCancel as ht, runSpaceCreate as i, compareSemver as ia, ensureOpenMeldManagedProfileWorkspace as ii, ensureCommandAuthenticationOrCancel as in, formatOpenMeldCliCommand as io, createProfileMenuGuideError as ir, colorizeDisplayProfileLabel as it, assertValidSpaceIdTarget as j, alignSelectedOpenMeldProfileStorage as ja, PREPARE_SESSION_RECONNECT_GRACE_MS as ji, assertNoRemovedCcSpaceAddressingSyntax as jn, unbindProject as jo, formatDualViewGuideForDisplay as jr, runDaemonStartupPreflight as jt, isSpaceCommandOutputHandledError as k, resolveOpenMeldProfile as ka, resolveEvidenceSyncHealth as ki, inspectSpaceCacheFile as kn, runIfAgentActivityBindingGenerationIsCurrent as ko, buildAgentOverviewFromContract as kr, createDelayedSpinner as kt, runSpaceList as l, writeVersionState as la, setOpenMeldManagedProfileWorkspace as li, runAuthStatus as ln, resolveSetupFollowUpCliEntryCommand as lo, createSpaceLeaveGuideError as lr, renderOpenMeldTagline as lt, prepareRequestedSpaceSendFiles as m, renderHumanErrorCard as ma, resolveAgentProfilePrimaryAgentControllerReport as mi, resolveCreateProfileKind as mn, readAgentActivityContextForPath as mo, createSpaceSubcommandTargetGuideError as mr, runDaemonBackgroundStartForDecision as mt, promptAndConfirmSpacePassword as n, performManagedInstall as na, createModelCatalogReadSession as ni, connectWebSocket as nn, uninstallAgentActivityIntegrations as no, createProfileActionGuideError as nr, postLocalParticipationMutationReconcile as nt, runSpaceHistory as o, fetchLatestCliBinaryRelease as oa, readProfileWorkspaceConfig as oi, runAuthLogin as on, formatOpenMeldCliLine as oo, createSpaceAddMembersGuideError as or, renderOpenMeldBrandBlockLines as ot, runSpaceWatch as p, buildHumanErrorCopy as pa, createPrimaryBindingReadSession as pi, createProfileByKind as pn, upsertDaemonServiceContract as po, createSpaceResultGuideError as pr, runDaemonAutostart as pt, runAgentsCustomUpdate as q, isAgentActivityRouteRegistered as qa, inspectDaemonServiceInventory as qi, readDispatchOwnedRuntimeGuard as qn, getOrganizationJoinLinkResponseSchema as qo, resolveCurrentReplyReadinessSnapshot as qr, runSkillsCheck as qt, runSpaceAddMembers as r, buildNextVersionState as ra, resolveProfileWorkspaceRuntime as ri, buildCommandAuthenticationPromptMessage as rn, formatInlineOpenMeldCliCommands as ro, createProfileCreateGuideError as rr, colorizeAgentLabel as rt, runSpaceJoin as s, fetchLatestPackageInfo as sa, resolveConfiguredProfileWorkspacePath as si, runAuthLogout as sn, formatOpenMeldCliTextBlock as so, createSpaceAliasTargetGuideError as sr, renderOpenMeldHeader as st, buildCreateSpacePasswordPromptConfig as t, buildInstallSelfJsonPayload as ta, syncProfileWorkspaceState as ti, readRecentDaemonDispatchJournalEvents as tn, resolveAgentActivityDispatcherCommand as to, createDoctorFailedGuideError as tr, formatTransportModeDisplay as tt, runSpacePassword as u, resolveDaemonRuntimeContractCompatibility as ua, validateCustomProfileWorkspacePath as ui, buildAuthStatusRows as un, resolveUserFacingCliEntryCommand as uo, createSpaceMenuGuideError as ur, resolveGatewayWebOrigin as ut, buildHumanReadSignalsTranscriptItems as v, parseCliViewMode as va, notifyDaemonRouteCatalogChanged as vi, formatServiceParticipationReadinessLabel as vn, normalizeSharedSessionTitle as vo, createStartAuthenticationGuideError as vr, runDaemonReinstall as vt, buildFormalDispatchResultReadPayload as w, createOpenMeldAgentProfile as wa, listAgentControllerPermissionModeOptions as wi, submitRuntimeAgentControllerReports as wn, bindProject as wo, registerSkillsTargetSelectionOptions as wr, runDaemonUninstall as wt, loadSpaceIdentityDirectoryOrNull as x, isSelectedOpenMeldProfileRequiredError as xa, createAgentExecutionStatusDisplayRows as xi, computeRetryDelayMs as xn, removeProjectInbox as xo, getCommandHintsFromContract as xr, runDaemonStatusFlow as xt, emitHumanReadSignalsTextProjection as y, resolveRuntimeContext as ya, resolveLocalRegistryAgentIdFromAgentControllerRef as yi, resolveServiceParticipationReadiness as yn, readCodexSessionTitles as yo, createUpgradeConfirmationGuideError as yr, runDaemonRunAfterEntryChecks as yt, resolveHumanControllerDisplayName as z, resolveAuthenticationGuidanceFromError as za, resolveServiceUpdateUrgency as zi, formatRemovedCcRelationMessage as zn, errLine as zo, readOpenMeldToolsUpdateContextFromEnv as zr, toStructuredGatewayFailure as zt };
|
|
108371
108644
|
|
|
108372
|
-
//# sourceMappingURL=command-
|
|
108645
|
+
//# sourceMappingURL=command-Df2GDfIS.js.map
|