openmeld 0.3.82 → 0.3.83
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-Chf7oIxu.js → add-me-membership-B9LeL4Ud.js} +2 -2
- package/dist/{add-me-membership-Chf7oIxu.js.map → add-me-membership-B9LeL4Ud.js.map} +1 -1
- package/dist/{api-client-foundation-CFHEblaZ.js → api-client-foundation-Chryr5BZ.js} +2 -2
- package/dist/{api-client-foundation-CFHEblaZ.js.map → api-client-foundation-Chryr5BZ.js.map} +1 -1
- package/dist/{command-BL4XDrtV.js → command-22-KBBsD.js} +207 -267
- package/dist/{command-BL4XDrtV.js.map → command-22-KBBsD.js.map} +1 -1
- package/dist/{daemon-runtime-lease-CKQef0lp.js → daemon-runtime-lease-DiRoGxhm.js} +14 -3
- package/dist/daemon-runtime-lease-DiRoGxhm.js.map +1 -0
- package/dist/{dist-D9smLL6A.js → dist-Cm4BbP8Y.js} +124 -40
- package/dist/{dist-D9smLL6A.js.map → dist-Cm4BbP8Y.js.map} +1 -1
- package/dist/openmeld.js +148 -243
- package/dist/openmeld.js.map +1 -1
- package/package.json +2 -2
- package/dist/daemon-runtime-lease-CKQef0lp.js.map +0 -1
package/dist/openmeld.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { $ as LEGACY_OPENMELD_AGENT_SESSION_ENV_KEY, At as openMeldManagedBinaryPath, Bt as resolveOpenMeldCliEntryNameFromArgv, D as toSpaceBoardUrl, Et as normalizeAccountKey, Ft as organizationSkillReleaseDir, G as isOpenMeldOrphanedLockError, H as acquireLock, It as profileDir, J as releaseLockSync, Jt as systemDir, Kt as skillsDir, Lt as profileViewPath, M as toSpaceDispatchLookupUrl, N as toSpaceDispatchTraceUrl, Nt as openMeldRootDir, O as toSpaceContractUrl, Ot as openMeldBackupsDir, S as updateConfiguredOnboardingConfig, T as normalizeBaseUrl, U as buildOpenMeldOrphanedLockAction, Ut as resolveOpenMeldRootDir, Vt as resolveOpenMeldEnvPreset, W as isOpenMeldLockError, X as resolveOpenMeldOrphanedLockIssue, Y as repairOrphanedLegacyLocks, Yt as formatLocalMachineIssueMessage, Z as runWithHeldLock, _t as accountProfileSpaceCacheDir, a as resolveBaseUrl, b as setConfiguredSkillsConfig, bt as accountsDir, c as resolveExplicitGatewayUrlOrThrow, ct as LocalMachineFailureError, et as OPENMELD_CLI_CONTEXT_ENV_KEY, ft as createOrphanedSetupConcurrencyIssue, h as getConfiguredSkillsConfig, jt as openMeldManagedVersionBinaryPath, m as getConfiguredOnboardingDisclaimerAcceptedAt, mt as toRecognizedLocalMachineFailureError, nn as agentControllerConversationRefSchema, o as resolveBaseUrlOrNull, ot as formatLaneScopeSentence, pt as isLocalMachineFailureError, qt as spacesDir, rt as resolveCliContext, st as resolveOpenMeldLaneDescriptor, u as alignRuntimeConfigStorage, ut as createActiveSetupConcurrencyIssue, vt as accountProfileViewPath, w as updateConfiguredStartV1OnboardingState, y as setConfiguredBaseUrl, z as toSpaceResultUrl } from "./base-url-Cv9x5Es9.js";
|
|
4
|
-
import { $ as formatTransportModeDisplay, $a as formatOpenMeldCliCommands, $i as compareSemver, $n as canUseInteractivePrompts, $r as normalizeCustomProfileWorkspacePath, $t as readRecentDaemonDispatchJournalEvents, A as prepareAuthenticatedSpaceCommandContext, Aa as buildHumanAuthenticationCard, Ai as listAgentControllerPermissionModeOptions, An as assertNoRemovedCcSpaceAddressingSyntax, Ao as renderTextInfoCard, Ar as formatDualViewGuideForDisplay, At as readDaemonStartFailureLogTailLines, B as runAgents, Ba as requestLocalAgentActivitySync, Bi as resetCurrentCommandCheckState, Bn as promptSearchSelect, Bo as cliJsonSkillsShowEnvelopeSchema, Br as resolveServiceReadinessFromServiceStatus, Bt as writeInstalledLocalComponentsSnapshot, C as buildFormalSignalReadPayload, Ca as resolveOpenMeldProfile, Ci as ensureDaemonRuntimePaths, Cn as submitRuntimeAgentControllerReports, Co as runIfAgentActivityBindingGenerationIsCurrent, Cr as registerSkillsTargetSelectionOptions, Ct as buildProfileWorkspacePresentation, D as isSpaceCommandOutputHandledError, Da as getSelectedOpenMeldProfileId, Di as createAgentExecutionStatusDisplayRows, Dn as resolveLocalAgentControllerReportDecision, Do as enqueueControllerTaskLifecycleEventWhileLocked, Dr as registerBuiltinAgentSelectionOptions, Dt as createDelayedSpinner, E as parseEnvelope, Ea as clearSelectedOpenMeldProfileId, Ei as buildAgentControllerRef, En as resolveLocalAgentControllerLaunchability, Eo as canonicalizeLocalProjectPath, Er as registerAuthLoginRequestOptions, Et as emitDaemonAgentOverview, F as prepareLocalAgentReadiness, Fa as getProfileDefaultView, Fi as resolveEvidenceSyncHealth, Fn as buildSpaceRoundReadProjection, Fo as outLine, Fr as areAllowedActionsEquivalent, Ft as readGatewayJsonResponse, G as runAgentsCustomUpdate, Gi as readCurrentObservedDaemonRuntimeStatus, Gn as assertDispatchOwnedRuntimePublicWriteAllowed, Go as package_default, Gr as formatHumanReplyReadinessReason$1, Gt as runSkillsCheck$1, H as runAgentsCustomAdd, Ha as registerAgentActivityRoute, Hi as inspectDaemonServiceInventory, Hn as runInteractivePrompt, Ho as organizationJoinLinkErrorResponseSchema, Hr as resolveCurrentReplyReadinessSnapshot, Ht as runDaemonServiceParticipationGate, I as buildReplyReadinessGuidance, Ia as setProfileDefaultView, Ii as resolveNativeAgentControllerPermissionModeForController, In as buildUpdatesReplyWorkflowProjection, Io as cliBinaryDeltaPatchSchema, Ir as buildAgentFacingPublicationModeGuideLines, It as readGatewayTextResponse, J as runAgentsEnable, Ja as readAgentActivityIntegrationStatus, Ji as readDaemonServiceJobCrashExitCode, Jn as writeDispatchSpaceActionRecord, Jr as resolveOpenClawLocalDiagnosticsValue, Jt as runSkillsUninstall, K as runAgentsDetect, Ka as defaultManagedIntegrationPaths, Ki as getDaemonSystemServiceLogPath, Kn as readDispatchOwnedRuntimeGuard, Kr as mapAgentReplyReadinessToLegacyAutoReply, Kt as runSkillsEnsure, L as resolveHumanControllerDisplayName, La as LocalProjectConnectionError, Li as finishCurrentCommandCheckScope, Ln as createSpaceMemberIdentityIndex, Lo as cliJsonOutputEnvelopeSchema, Lr as canonicalizeAllowedActions, Lt as toStructuredGatewayFailure, M as resolveSpaceAccessLabel, Ma as resolveAuthenticationGuidance, Mi as resolveAgentControllerPermissionModeForController, Mn as buildDispatchResultReplyWorkflowProjection, Mo as emitCliJsonEnvelope, Mr as formatAgentOverviewPayload, Mt as createCliSpaceApi, N as emitSpaceAgentOverview, Na as resolveAuthenticationGuidanceFromError, Ni as resolveAgentExecutionStatus, Nn as buildSignalIndex, No as errLine, Nr as OPENMELD_AGENT_MENTAL_MODEL_LINES, Nt as fetchSpaceMeta, O as assertFullSignalIdArgument, Oa as setSelectedOpenMeldProfileId, Oi as getAgentControllerPermissionModeDisplayMetadata, On as inspectSpaceCacheFile, Oo as readControllerTaskLifecycleOutboxHealth, Or as buildAgentOverviewFromContract, Ot as shouldEmitAgentOverview, P as emitSpaceCliAgentOverview, Pa as resolveAuthenticationGuidanceFromMessage, Pi as resolveAgentProfileEditCapabilities, Pn as buildSignalMessageReadProjection, Po as outJsonLine, Pr as SPACE_CONTRACT_ALLOWED_ACTION_ORDER, Pt as updateSpaceMeta, Q as runAgentsShow, Qa as formatOpenMeldCliCommand, Qi as buildNextVersionState, Qn as formatDaemonServiceMissingRecommendation, Qr as ensureOpenMeldManagedProfileWorkspace, Qt as readRuntimeReportingHealthState, R as persistAgentTransportSelection, Ra as validateLocalProjectConnectionPath, Ri as getCurrentCommandCheckState, Rn as formatRemovedCcRelationMessage, Ro as cliJsonSkillsListEnvelopeSchema, Rr as runDaemonServiceFullAlignment, Rt as parseJsonResponse, S as buildFormalDispatchResultReadPayload, Sa as primeOpenMeldProfilesSessionCache, Si as readRecentDaemonLifecycleEvents, Sn as submitRuntimeAgentControllerReport, So as removeProjectConnection, Sr as SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS, St as runDaemonUninstall, T as formatHumanReadTargetList, Ta as alignSelectedOpenMeldProfileStorage, Ti as resolveOpenMeldEnvironmentTarget, Tn as resolveLocalAgentControllerBlockerReasonCodes, To as unbindProject, Tr as registerDaemonControlTargetOptions, Tt as reconcileCliVersionView, U as runAgentsCustomList, Ua as resolveAgentActivityRouteForPath, Ui as resolveVersionChangeDirection, Un as assessCliUpdate, Uo as revokeOrganizationJoinLinkResponseSchema, Ur as formatAgentReplyReadinessLabel, Ut as runDaemonStartDecisionPrompt, V as runAgentsConfig, Va as isAgentActivityRouteRegistered, Vi as startCurrentCommandCheckScope, Vn as isReturnKeypress, Vo as getOrganizationJoinLinkResponseSchema, Vr as resolveDaemonServiceFreshnessWarning, Vt as resolveDaemonServiceParticipationStatus, W as runAgentsCustomRemove, Wa as unregisterAgentActivityRoute, Wi as readCurrentDaemonRuntimeContext, Wn as isCliUpdateCheckApplicable, Wo as compareAgentControllerRefsForDisplay, Wr as formatDeviceReplyReadinessLabel, Wt as collectSkillsReadinessSnapshot, X as runAgentsManage, Xa as uninstallAgentActivityIntegrations, Xi as buildInstallSelfJsonPayload, Xn as resolveElapsedTimeMs, Xr as createModelCatalogReadSession, Xt as ensureLocalSkills, Y as runAgentsList, Ya as resolveAgentActivityDispatcherCommand, Yi as resolveDaemonServiceManager, Yn as formatElapsedTime, Yr as syncProfileWorkspaceState, Yt as runSkillsUpdate, Z as runAgentsRepair, Za as formatInlineOpenMeldCliCommands, Zi as performManagedInstall, Zn as formatDaemonServiceDowngradeBlockedRecommendation, Zr as resolveProfileWorkspaceRuntime, Zt as readBundledOpenMeldCliSkillDocumentByPath, _ as emitHumanReadSignalsTextProjection, _a as resolveOpenMeldProfileOrNull, _i as getSetupFlowCopy, _n as formatServiceParticipationReadinessLabel, _o as removeProjectOutbox, _r as createStartAuthenticationGuideError, _t as runDaemonRunAfterEntryChecks, a as runSpaceDelete, aa as isBinaryDistribution, ai as describeProfileWorkspacePathValidationFailure, an as runAuthLogin, ao as syncLocalAgentActivity, ar as createSpaceAddMembersGuideError, at as renderOpenMeldHeader, b as loadSpaceSignalIndexOrNull, ba as deleteOpenMeldProfile, bi as classifyDaemonServiceRunStartability, bn as computeRetryDelayMs, bo as listProjectConnectionsWithStatus, br as getCommandHintsFromContract, bt as runDaemonStop, c as runSpaceLeave, ca as toStartBackgroundHelperExecutionCompatibility, ci as resolveAgentProfilePrimaryAgentControllerReport, cn as runAuthStatus, co as readAgentActivityContextForPath, cr as createSpaceLeaveGuideError, ct as resolveGatewayWebOrigin, d as runSpaceRemoveMembers, da as formatMessage, di as listBuiltinAgentsRegistryEntries, dn as formatActiveOrganizationLabel, do as resolveObservedAgentActivityBinding, dr as createSpaceRemoveMembersGuideError, dt as runDaemonAutostart, ea as ensureVersionStateReady, ei as readProfileWorkspaceConfig, en as connectWebSocket, eo as formatOpenMeldCliLine, er as createDoctorFailedGuideError, et as postLocalParticipationMutationReconcile, f as runSpaceSend, fa as parseCliViewMode, fi as notifyDaemonRouteCatalogChanged, fn as createProfileByKind, fo as normalizeSharedSessionTitle, fr as createSpaceResultGuideError, ft as runDaemonBackgroundStartForDecision, g as buildHumanReadSignalsTranscriptItems, ga as requireOpenMeldProfile, gi as buildOnboardingPlan, gn as ensureAgentProfileRuntimeBinding, go as readAgentActivityOutboxHealth, gr as createStartAgentIdentityGuideError, gt as runDaemonReinstall, h as runSpaceWriteWithPasswordRetry, ha as isSelectedOpenMeldProfileRequiredError, hi as buildDaemonRouteObservationPresentation$1, hn as promptTextEntry, ho as removeProjectInbox, hr as createSpaceUpdatesGuideError, ht as runDaemonInterrupt, i as runSpaceCreate, ia as writeVersionState, ii as validateCustomProfileWorkspacePath, in as evaluateCommandAuthentication, io as resolveUserFacingCliEntryCommand, ir as createResetConfirmationGuideError, it as renderOpenMeldBrandBlockLines, j as resolveOpenMeldProfileForSpaceCommand, ja as createAuthenticationError, ji as parseAgentControllerRef, jn as buildDispatchResultMessageReadProjection, jo as sanitizeTerminalDisplayText, jr as buildDualViewGuideMessage, jt as fetchSpaceUpdates, k as assertValidSpaceIdTarget, ka as buildAgentAuthenticationGuide, ki as getAgentControllerPermissionModeFieldLabel, kn as upsertSpaceConfig, ko as renderInfoCard, kr as DualViewGuideError, kt as runDaemonStartupPreflight, l as runSpaceList, la as resolveCurrentDaemonExpectedVersion, li as listAgentTargetStates, ln as buildAuthStatusRows, lo as removeAgentActivityContextCache, lr as createSpaceMenuGuideError, lt as resolveSpaceSendText, m as runSpaceReadWithPasswordRetry, ma as resolveViewProfileKey, mn as resolveCreateProfileName, mo as enqueueAgentActivityHookEvent, mr as createSpaceTargetGuideError, mt as runDaemonInstall, n as promptAndConfirmSpacePassword, na as fetchLatestPackageInfo, ni as setCustomProfileWorkspace, nn as buildCommandAuthenticationPromptMessage, no as formatProfileAwareOpenMeldCliCommands, nr as createProfileCreateGuideError, nt as colorizeDisplayProfileLabel, o as runSpaceHistory, oa as resolveOpenMeldDistribution, oi as syncDeviceRuntimeStateProjection, on as runAuthLogout, oo as readDaemonServiceContract, or as createSpaceAliasTargetGuideError, ot as renderOpenMeldLogo, p as runSpaceWatch, pa as resolveRuntimeContext, pi as resolveLocalRegistryAgentIdFromAgentControllerRef, pn as resolveCreateProfileKind, po as readCodexSessionTitles, pr as createSpaceSubcommandTargetGuideError, pt as runDaemonCancel, q as runAgentsDisable, qa as installAgentActivityIntegrations, qi as isDaemonServiceJobNeverSpawned, qn as readDispatchSpaceActionContextFromEnv, qr as resolveGatewayChainReadiness, qt as runSkillsInstall, r as runSpaceAddMembers, ra as readVersionState, ri as setOpenMeldManagedProfileWorkspace, rn as ensureCommandAuthenticationOrCancel, ro as resolveSetupFollowUpCliEntryCommand, rr as createProfileMenuGuideError, rt as printOpenMeldBanner, s as runSpaceJoin, sa as resolveDaemonRuntimeContractCompatibility, si as createPrimaryBindingReadSession, sn as runAuthMenu, so as upsertDaemonServiceContract, sr as createSpaceContractSetGuideError, st as renderOpenMeldTagline, t as buildCreateSpacePasswordPromptConfig, ta as fetchLatestCliBinaryRelease, ti as resolveConfiguredProfileWorkspacePath, tn as assessServerRequiredVersion, to as formatOpenMeldCliTextBlock, tr as createProfileActionGuideError, tt as colorizeAgentLabel, u as runSpacePassword, ua as createPresenter, ui as reconcileNewRunnableBuiltinAgentsForSetup, un as buildAuthStatusSnapshot, uo as buildAgentActivityEvent, ur as createSpacePublicationSetGuideError, ut as runDaemon, v as buildIdentityOnlyMembersSnapshotForReadProjection, va as createOpenMeldAgentProfile, vi as buildDaemonServiceTargetSpec, vn as resolveServiceParticipationReadiness, vo as bindProject, vr as createUpgradeConfirmationGuideError, vt as runDaemonSnapshot, w as buildHumanReplyContextSummary, wa as updateOpenMeldProfile, wi as resolveDaemonDeviceId, wn as collectLocalAgentControllerInventory, wo as setDefaultProjectConnection, wr as getCliVersionInfo, wt as buildProfileWorkspaceRows, x as toSpaceMetaUpsertInput, xa as listOpenMeldProfiles, xi as classifyDaemonServiceWakeability, xn as submitProfileRuntimeAgentControllerReport, xo as migrateProjectBindingStore, xr as registerSpaceMemberSelectionOptions, xt as runDaemonTeardownStrict, y as loadSpaceIdentityDirectoryOrNull, ya as createOpenMeldHumanProfile, yi as resolveDaemonServiceAlignmentDecision, yn as assessActionParticipationCandidate, yo as listProjectBindings, yr as getCommandEntryContract, yt as runDaemonStatusFlow, z as resolveAgentProfileSetup, za as LocalDaemonControlPlaneClientError, zi as isCurrentCommandCheckScopeActive, zn as promptSearchMultiselect, zo as cliJsonSkillsLoadEnvelopeSchema, zr as formatDaemonFailureContextText, zt as resolveLocalComponentsStatus } from "./command-BL4XDrtV.js";
|
|
5
|
-
import { $ as
|
|
4
|
+
import { $ as formatTransportModeDisplay, $a as uninstallAgentActivityIntegrations, $i as compareSemver, $n as canUseInteractivePrompts, $r as normalizeCustomProfileWorkspacePath, $t as readRecentDaemonDispatchJournalEvents, A as prepareAuthenticatedSpaceCommandContext, Aa as getSelectedOpenMeldProfileId, Ai as listAgentControllerPermissionModeOptions, An as assertNoRemovedCcSpaceAddressingSyntax, Ao as enqueueControllerTaskLifecycleEventWhileLocked, Ar as formatDualViewGuideForDisplay, At as readDaemonStartFailureLogTailLines, B as runAgents, Ba as LocalProjectConnectionError, Bi as resetCurrentCommandCheckState, Bn as promptSearchSelect, Bo as cliJsonOutputEnvelopeSchema, Br as resolveServiceReadinessFromServiceStatus, Bt as writeInstalledLocalComponentsSnapshot, C as buildFormalSignalReadPayload, Ca as deleteOpenMeldProfile, Ci as ensureDaemonRuntimePaths, Cn as submitRuntimeAgentControllerReports, Co as listProjectConnectionsWithStatus, Cr as registerSkillsTargetSelectionOptions, Ct as buildProfileWorkspacePresentation, D as isSpaceCommandOutputHandledError, Da as updateOpenMeldProfile, Di as createAgentExecutionStatusDisplayRows, Dn as resolveLocalAgentControllerReportDecision, Do as setDefaultProjectConnection, Dr as registerBuiltinAgentSelectionOptions, Dt as createDelayedSpinner, E as parseEnvelope, Ea as resolveOpenMeldProfile, Ei as buildAgentControllerRef, En as resolveLocalAgentControllerLaunchability, Eo as runIfAgentActivityBindingGenerationIsCurrent, Er as registerAuthLoginRequestOptions, Et as emitDaemonAgentOverview, F as prepareLocalAgentReadiness, Fa as resolveAuthenticationGuidance, Fi as resolveEvidenceSyncHealth, Fn as buildSpaceRoundReadProjection, Fo as emitCliJsonEnvelope, Fr as areAllowedActionsEquivalent, Ft as readGatewayJsonResponse, G as runAgentsCustomUpdate, Ga as registerAgentActivityRoute, Gi as readCurrentObservedDaemonRuntimeStatus, Gn as assertDispatchOwnedRuntimePublicWriteAllowed, Go as organizationJoinLinkErrorResponseSchema, Gr as formatHumanReplyReadinessReason$1, Gt as runSkillsCheck$1, H as runAgentsCustomAdd, Ha as LocalDaemonControlPlaneClientError, Hi as inspectDaemonServiceInventory, Hn as runInteractivePrompt, Ho as cliJsonSkillsLoadEnvelopeSchema, Hr as resolveCurrentReplyReadinessSnapshot, Ht as runDaemonServiceParticipationGate, I as buildReplyReadinessGuidance, Ia as resolveAuthenticationGuidanceFromError, Ii as resolveNativeAgentControllerPermissionModeForController, In as buildUpdatesReplyWorkflowProjection, Io as errLine, Ir as buildAgentFacingPublicationModeGuideLines, It as readGatewayTextResponse, J as runAgentsEnable, Ji as readDaemonServiceJobCrashExitCode, Jn as writeDispatchSpaceActionRecord, Jo as package_default, Jr as resolveOpenClawLocalDiagnosticsValue, Jt as runSkillsUninstall, K as runAgentsDetect, Ka as resolveAgentActivityRouteForPath, Ki as getDaemonSystemServiceLogPath, Kn as readDispatchOwnedRuntimeGuard, Ko as revokeOrganizationJoinLinkResponseSchema, Kr as mapAgentReplyReadinessToLegacyAutoReply, Kt as runSkillsEnsure, L as resolveHumanControllerDisplayName, La as resolveAuthenticationGuidanceFromMessage, Li as finishCurrentCommandCheckScope, Ln as createSpaceMemberIdentityIndex, Lo as outJsonLine, Lr as canonicalizeAllowedActions, Lt as toStructuredGatewayFailure, M as resolveSpaceAccessLabel, Ma as buildAgentAuthenticationGuide, Mi as resolveAgentControllerPermissionModeForController, Mn as buildDispatchResultReplyWorkflowProjection, Mo as renderInfoCard, Mr as formatAgentOverviewPayload, Mt as createCliSpaceApi, N as emitSpaceAgentOverview, Na as buildHumanAuthenticationCard, Ni as resolveAgentExecutionStatus, Nn as buildSignalIndex, No as renderTextInfoCard, Nr as OPENMELD_AGENT_MENTAL_MODEL_LINES, Nt as fetchSpaceMeta, O as assertFullSignalIdArgument, Oa as alignSelectedOpenMeldProfileStorage, Oi as getAgentControllerPermissionModeDisplayMetadata, On as inspectSpaceCacheFile, Oo as unbindProject, Or as buildAgentOverviewFromContract, Ot as shouldEmitAgentOverview, P as emitSpaceCliAgentOverview, Pa as createAuthenticationError, Pi as resolveAgentProfileEditCapabilities, Pn as buildSignalMessageReadProjection, Po as sanitizeTerminalDisplayText, Pr as SPACE_CONTRACT_ALLOWED_ACTION_ORDER, Pt as updateSpaceMeta, Q as runAgentsShow, Qa as resolveAgentActivityDispatcherCommand, Qi as buildNextVersionState, Qn as formatDaemonServiceMissingRecommendation, Qr as ensureOpenMeldManagedProfileWorkspace, Qt as readRuntimeReportingHealthState, R as persistAgentTransportSelection, Ra as getProfileDefaultView, Ri as getCurrentCommandCheckState, Rn as formatRemovedCcRelationMessage, Ro as outLine, Rr as runDaemonServiceFullAlignment, Rt as parseJsonResponse, S as buildFormalDispatchResultReadPayload, Sa as createOpenMeldHumanProfile, Si as readRecentDaemonLifecycleEvents, Sn as submitRuntimeAgentControllerReport, So as listProjectBindings, Sr as SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS, St as runDaemonUninstall, T as formatHumanReadTargetList, Ta as primeOpenMeldProfilesSessionCache, Ti as resolveOpenMeldEnvironmentTarget, Tn as resolveLocalAgentControllerBlockerReasonCodes, To as removeProjectConnection, Tr as registerDaemonControlTargetOptions, Tt as reconcileCliVersionView, U as runAgentsCustomList, Ua as requestLocalAgentActivitySync, Ui as resolveVersionChangeDirection, Un as assessCliUpdate, Uo as cliJsonSkillsShowEnvelopeSchema, Ur as formatAgentReplyReadinessLabel, Ut as runDaemonStartDecisionPrompt, V as runAgentsConfig, Va as validateLocalProjectConnectionPath, Vi as startCurrentCommandCheckScope, Vn as isReturnKeypress, Vo as cliJsonSkillsListEnvelopeSchema, Vr as resolveDaemonServiceFreshnessWarning, Vt as resolveDaemonServiceParticipationStatus, W as runAgentsCustomRemove, Wa as isAgentActivityRouteRegistered, Wi as readCurrentDaemonRuntimeContext, Wn as isCliUpdateCheckApplicable, Wo as getOrganizationJoinLinkResponseSchema, Wr as formatDeviceReplyReadinessLabel, Wt as collectSkillsReadinessSnapshot, X as runAgentsManage, Xa as installAgentActivityIntegrations, Xi as buildInstallSelfJsonPayload, Xn as resolveElapsedTimeMs, Xr as createModelCatalogReadSession, Xt as ensureLocalSkills, Y as runAgentsList, Ya as defaultManagedIntegrationPaths, Yi as resolveDaemonServiceManager, Yn as formatElapsedTime, Yr as syncProfileWorkspaceState, Yt as runSkillsUpdate, Z as runAgentsRepair, Za as readAgentActivityIntegrationStatus, Zi as performManagedInstall, Zn as formatDaemonServiceDowngradeBlockedRecommendation, Zr as resolveProfileWorkspaceRuntime, Zt as readBundledOpenMeldCliSkillDocumentByPath, _ as emitHumanReadSignalsTextProjection, _a as resolveViewProfileKey, _i as getSetupFlowCopy, _n as formatServiceParticipationReadinessLabel, _o as enqueueAgentActivityHookEvent, _r as createStartAuthenticationGuideError, _t as runDaemonRunAfterEntryChecks, a as runSpaceDelete, aa as isBinaryDistribution, ai as describeProfileWorkspacePathValidationFailure, an as runAuthLogin, ao as formatProfileAwareOpenMeldCliCommands, ar as createSpaceAddMembersGuideError, at as renderOpenMeldHeader, b as loadSpaceSignalIndexOrNull, ba as resolveOpenMeldProfileOrNull, bi as classifyDaemonServiceRunStartability, bn as computeRetryDelayMs, bo as removeProjectOutbox, br as getCommandHintsFromContract, bt as runDaemonStop, c as runSpaceLeave, ca as toStartBackgroundHelperExecutionCompatibility, ci as resolveAgentProfilePrimaryAgentControllerReport, cn as runAuthStatus, co as syncLocalAgentActivity, cr as createSpaceLeaveGuideError, ct as resolveGatewayWebOrigin, d as runSpaceRemoveMembers, da as renderHumanErrorCard, di as listBuiltinAgentsRegistryEntries, dn as formatActiveOrganizationLabel, do as readAgentActivityContextForPath, dr as createSpaceRemoveMembersGuideError, dt as runDaemonAutostart, ea as ensureVersionStateReady, ei as readProfileWorkspaceConfig, en as connectWebSocket, eo as formatInlineOpenMeldCliCommands, er as createDoctorFailedGuideError, et as postLocalParticipationMutationReconcile, f as runSpaceSend, fa as renderHumanTextErrorCard, fi as notifyDaemonRouteCatalogChanged, fn as createProfileByKind, fo as removeAgentActivityContextCache, fr as createSpaceResultGuideError, ft as runDaemonBackgroundStartForDecision, g as buildHumanReadSignalsTranscriptItems, ga as resolveRuntimeContext, gi as buildOnboardingPlan, gn as ensureAgentProfileRuntimeBinding, go as readCodexSessionTitles, gr as createStartAgentIdentityGuideError, gt as runDaemonReinstall, h as runSpaceWriteWithPasswordRetry, ha as parseCliViewMode, hi as buildDaemonRouteObservationPresentation$1, hn as promptTextEntry, ho as normalizeSharedSessionTitle, hr as createSpaceUpdatesGuideError, ht as runDaemonInterrupt, i as runSpaceCreate, ia as writeVersionState, ii as validateCustomProfileWorkspacePath, in as evaluateCommandAuthentication, io as formatOpenMeldCliTextBlock, ir as createResetConfirmationGuideError, it as renderOpenMeldBrandBlockLines, j as resolveOpenMeldProfileForSpaceCommand, ja as setSelectedOpenMeldProfileId, ji as parseAgentControllerRef, jn as buildDispatchResultMessageReadProjection, jo as readControllerTaskLifecycleOutboxHealth, jr as buildDualViewGuideMessage, jt as fetchSpaceUpdates, k as assertValidSpaceIdTarget, ka as clearSelectedOpenMeldProfileId, ki as getAgentControllerPermissionModeFieldLabel, kn as upsertSpaceConfig, ko as canonicalizeLocalProjectPath, kr as DualViewGuideError, kt as runDaemonStartupPreflight, l as runSpaceList, la as resolveCurrentDaemonExpectedVersion, li as listAgentTargetStates, ln as buildAuthStatusRows, lo as readDaemonServiceContract, lr as createSpaceMenuGuideError, lt as resolveSpaceSendText, m as runSpaceReadWithPasswordRetry, ma as formatMessage, mn as resolveCreateProfileName, mo as resolveObservedAgentActivityBinding, mr as createSpaceTargetGuideError, mt as runDaemonInstall, n as promptAndConfirmSpacePassword, na as fetchLatestPackageInfo, ni as setCustomProfileWorkspace, nn as buildCommandAuthenticationPromptMessage, no as formatOpenMeldCliCommands, nr as createProfileCreateGuideError, nt as colorizeDisplayProfileLabel, o as runSpaceHistory, oa as resolveOpenMeldDistribution, oi as syncDeviceRuntimeStateProjection, on as runAuthLogout, oo as resolveSetupFollowUpCliEntryCommand, or as createSpaceAliasTargetGuideError, ot as renderOpenMeldLogo, p as runSpaceWatch, pa as createPresenter, pi as resolveLocalRegistryAgentIdFromAgentControllerRef, pn as resolveCreateProfileKind, po as buildAgentActivityEvent, pr as createSpaceSubcommandTargetGuideError, pt as runDaemonCancel, q as runAgentsDisable, qa as unregisterAgentActivityRoute, qi as isDaemonServiceJobNeverSpawned, qn as readDispatchSpaceActionContextFromEnv, qo as compareAgentControllerRefsForDisplay, qr as resolveGatewayChainReadiness, qt as runSkillsInstall, r as runSpaceAddMembers, ra as readVersionState, ri as setOpenMeldManagedProfileWorkspace, rn as ensureCommandAuthenticationOrCancel, ro as formatOpenMeldCliLine, rr as createProfileMenuGuideError, rt as printOpenMeldBanner, s as runSpaceJoin, sa as resolveDaemonRuntimeContractCompatibility, si as createPrimaryBindingReadSession, sn as runAuthMenu, so as resolveUserFacingCliEntryCommand, sr as createSpaceContractSetGuideError, st as renderOpenMeldTagline, t as buildCreateSpacePasswordPromptConfig, ta as fetchLatestCliBinaryRelease, ti as resolveConfiguredProfileWorkspacePath, tn as assessServerRequiredVersion, to as formatOpenMeldCliCommand, tr as createProfileActionGuideError, tt as colorizeAgentLabel, u as runSpacePassword, ua as buildHumanErrorCopy, ui as reconcileNewRunnableBuiltinAgentsForSetup, un as buildAuthStatusSnapshot, uo as upsertDaemonServiceContract, ur as createSpacePublicationSetGuideError, ut as runDaemon, v as buildIdentityOnlyMembersSnapshotForReadProjection, va as isSelectedOpenMeldProfileRequiredError, vi as buildDaemonServiceTargetSpec, vn as resolveServiceParticipationReadiness, vo as removeProjectInbox, vr as createUpgradeConfirmationGuideError, vt as runDaemonSnapshot, w as buildHumanReplyContextSummary, wa as listOpenMeldProfiles, wi as resolveDaemonDeviceId, wn as collectLocalAgentControllerInventory, wo as migrateProjectBindingStore, wr as getCliVersionInfo, wt as buildProfileWorkspaceRows, x as toSpaceMetaUpsertInput, xa as createOpenMeldAgentProfile, xi as classifyDaemonServiceWakeability, xn as submitProfileRuntimeAgentControllerReport, xo as bindProject, xr as registerSpaceMemberSelectionOptions, xt as runDaemonTeardownStrict, y as loadSpaceIdentityDirectoryOrNull, ya as requireOpenMeldProfile, yi as resolveDaemonServiceAlignmentDecision, yn as assessActionParticipationCandidate, yo as readAgentActivityOutboxHealth, yr as getCommandEntryContract, yt as runDaemonStatusFlow, z as resolveAgentProfileSetup, za as setProfileDefaultView, zi as isCurrentCommandCheckScopeActive, zn as promptSearchMultiselect, zo as cliBinaryDeltaPatchSchema, zr as formatDaemonFailureContextText, zt as resolveLocalComponentsStatus } from "./command-22-KBBsD.js";
|
|
5
|
+
import { $ as ownerComputerDiagnosticsSchema, $t as agentActivityInventorySessionStatusSchema, B as sleep, Bt as agentActivityProviderSchema, Ct as authProfileKindSchema, D as toStructuredApiClientFailure, F as OPENMELD_HEADER_PROFILE_ID, G as projectSpaceDispatchTraceFinalVisibleOutcome, Ht as agentActivitySnapshotQuerySchema, J as spaceDispatchTraceDispatchStatusSchema, K as resolveSpaceDispatchTraceRootCause, Ot as submitFeedbackIssueRequestSchema, Qt as agentActivityInventorySessionOriginSchema, Vt as agentActivitySessionStatusSchema, W as SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER, X as observabilityWakeTraceSelectorSchema, Y as spaceDispatchTraceResponseSchema, Z as projectObservabilityWakeCorrelation, _ as createOrganizationSkillsApi, b as createProjectsApi, c as createAgentProfileBindingApi, d as createCurrentDeviceApi, dn as START_BOUNDED_ID_SCHEMA, en as agentActivitySessionInventoryQuerySchema, et as projectOwnerComputerLocalRuntimes, f as createFeedbackApi, fn as START_BOUNDED_VERSION_SCHEMA, g as createOrganizationApi, gn as localAgentCatalogSchema, gt as organizationSkillBundleSchema, hn as startReplyReadinessSummarySchema, l as createCenterAgentApi, mn as START_TRIMMED_NON_EMPTY_STRING_SCHEMA, nn as localAgentSessionProviderSchema, nt as DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION, pn as START_ISO_DATE_TIME_SCHEMA, q as spaceDispatchTraceAttemptStatusSchema, rt as agentProfileCreationConfigurationSchema, s as createAgentActivityApi, tt as summarizeComputerFileAccessPolicy, u as createComputerFileAccessApi, v as createPrepareReadinessApi, wt as authProfileManagedRoleSchema, x as createRoutinesApi, yt as stringifyOrganizationSkillBundleCanonicalJson } from "./dist-Cm4BbP8Y.js";
|
|
6
6
|
import { $n as openMeldProfileIdSchema, Ht as spaceThreadContextSchema, Kt as spaceContractFieldsSchema, Mn as clientMessageIdSchema, Mt as spaceStatusSchema, Nt as centerAgentInteractionSourceSchema, Vt as dispatchExecutionSchema, an as messageEnvelopeSchema, dr as nonEmptyTrimmedStringFromUnknown, ir as openMeldRuntimeProfileIdSchema, pr as trimmedStringFromUnknown, qt as spaceContractSchema } from "./runtime-transport-DI97Fndy.js";
|
|
7
7
|
import { r as daemonServiceLaneSchema } from "./service-contract-DZWQdPz5.js";
|
|
8
|
-
import { O as getDaemonStatus } from "./daemon-runtime-lease-
|
|
8
|
+
import { O as getDaemonStatus } from "./daemon-runtime-lease-DiRoGxhm.js";
|
|
9
9
|
import { a as getAuthSessionState, i as getAuthSessionMetadata, l as updateAuthSessionActiveOrganization, n as clearAuthSession, o as getCurrentAuthOwnerUserId, s as normalizeStoredActiveOrganization } from "./auth-session-BJZuJ2bM.js";
|
|
10
|
-
import { c as buildRequestAuthHeaders, d as buildOpenMeldRequestContextFromProfile, n as createCliApiClientFoundation, p as deriveAuthBaseUrlFromGatewayUrl, r as fetchSpaceRequestWithTimeout, s as buildOpenMeldRequestContextHeadersWithAuth } from "./api-client-foundation-
|
|
10
|
+
import { c as buildRequestAuthHeaders, d as buildOpenMeldRequestContextFromProfile, n as createCliApiClientFoundation, p as deriveAuthBaseUrlFromGatewayUrl, r as fetchSpaceRequestWithTimeout, s as buildOpenMeldRequestContextHeadersWithAuth } from "./api-client-foundation-Chryr5BZ.js";
|
|
11
11
|
import { Command, Option } from "commander";
|
|
12
12
|
import os, { homedir, hostname, release, tmpdir } from "node:os";
|
|
13
13
|
import { z } from "zod/v4";
|
|
@@ -1772,15 +1772,12 @@ async function runProjectsUnbind(input) {
|
|
|
1772
1772
|
});
|
|
1773
1773
|
return;
|
|
1774
1774
|
}
|
|
1775
|
-
|
|
1775
|
+
renderHumanErrorCard({
|
|
1776
1776
|
codePrefix: "projects.unbind.error",
|
|
1777
|
+
message,
|
|
1778
|
+
nextStep: "Run `openmeld projects list`, then try again.",
|
|
1777
1779
|
presenter,
|
|
1778
|
-
|
|
1779
|
-
label: "Problem",
|
|
1780
|
-
value: message
|
|
1781
|
-
}],
|
|
1782
|
-
sanitize: true,
|
|
1783
|
-
title: "Project Unbind Failed"
|
|
1780
|
+
title: "Project couldn't be disconnected"
|
|
1784
1781
|
});
|
|
1785
1782
|
}
|
|
1786
1783
|
}
|
|
@@ -1814,18 +1811,12 @@ async function runProjectCommand(input, operation, run) {
|
|
|
1814
1811
|
});
|
|
1815
1812
|
return;
|
|
1816
1813
|
}
|
|
1817
|
-
|
|
1814
|
+
renderHumanErrorCard({
|
|
1818
1815
|
codePrefix: `${code}.error`,
|
|
1816
|
+
message,
|
|
1817
|
+
nextStep: operation.startsWith("activity.") ? "Try the command again." : "Run `openmeld projects list`, then try again.",
|
|
1819
1818
|
presenter,
|
|
1820
|
-
|
|
1821
|
-
label: "Problem",
|
|
1822
|
-
value: message
|
|
1823
|
-
}, {
|
|
1824
|
-
label: "Next",
|
|
1825
|
-
value: operation.startsWith("activity.") ? "Run `openmeld activity --view agent` for explicit diagnostics." : "Run `openmeld projects list` and retry."
|
|
1826
|
-
}],
|
|
1827
|
-
sanitize: true,
|
|
1828
|
-
title: operation.startsWith("activity.") ? "Agent Activity Failed" : "Project Command Failed"
|
|
1819
|
+
title: operation.startsWith("activity.") ? "Agent Activity couldn't finish" : "Project action couldn't finish"
|
|
1829
1820
|
});
|
|
1830
1821
|
}
|
|
1831
1822
|
}
|
|
@@ -6412,7 +6403,7 @@ function emitCliError(input) {
|
|
|
6412
6403
|
const message = localMachineIssue ? formatLocalMachineIssueMessage(localMachineIssue) : input.message;
|
|
6413
6404
|
const formattedMessage = formatOpenMeldCliTextBlock(message);
|
|
6414
6405
|
const requestId = readCliErrorRequestId(input.error);
|
|
6415
|
-
const authGuidance = resolveAuthenticationGuidanceFromError(input.error) ?? resolveAuthenticationGuidanceFromMessage(input.message);
|
|
6406
|
+
const authGuidance = resolveAuthenticationGuidanceFromError(input.error) ?? (shouldResolveAuthenticationGuidanceFromMessage(input.code) ? resolveAuthenticationGuidanceFromMessage(input.message) : null);
|
|
6416
6407
|
if (input.effectiveView === "agent") {
|
|
6417
6408
|
emitAgentCliError({
|
|
6418
6409
|
code: input.code,
|
|
@@ -6435,13 +6426,17 @@ function emitCliError(input) {
|
|
|
6435
6426
|
rows: card.rows,
|
|
6436
6427
|
emitLine: outLine
|
|
6437
6428
|
});
|
|
6438
|
-
emitCliErrorRequestIdLine(requestId);
|
|
6439
6429
|
return Promise.resolve("none");
|
|
6440
6430
|
}
|
|
6441
|
-
|
|
6442
|
-
|
|
6431
|
+
renderHumanTextErrorCard({
|
|
6432
|
+
emitLine: errLine,
|
|
6433
|
+
message
|
|
6434
|
+
});
|
|
6443
6435
|
return Promise.resolve("none");
|
|
6444
6436
|
}
|
|
6437
|
+
function shouldResolveAuthenticationGuidanceFromMessage(code) {
|
|
6438
|
+
return code === "cli.error" || code.startsWith("auth.");
|
|
6439
|
+
}
|
|
6445
6440
|
function emitAgentCliError(input) {
|
|
6446
6441
|
if (input.localMachineIssue) {
|
|
6447
6442
|
const message = formatLocalMachineIssueMessage(input.localMachineIssue);
|
|
@@ -6500,10 +6495,6 @@ function emitAgentCliStructuredGuide(input) {
|
|
|
6500
6495
|
payload: buildStructuredGuidePayload(input.formattedGuide)
|
|
6501
6496
|
});
|
|
6502
6497
|
}
|
|
6503
|
-
function emitCliErrorRequestIdLine(requestId) {
|
|
6504
|
-
if (!requestId) return;
|
|
6505
|
-
errLine(`Request ID: ${requestId}`);
|
|
6506
|
-
}
|
|
6507
6498
|
function readCliErrorRequestId(error) {
|
|
6508
6499
|
if (!error || typeof error !== "object") return null;
|
|
6509
6500
|
const requestId = error.requestId;
|
|
@@ -7141,7 +7132,7 @@ function classifyBindingApiFailure(input) {
|
|
|
7141
7132
|
const operationLabel = formatBindingOperationLabel(input.operation);
|
|
7142
7133
|
return {
|
|
7143
7134
|
code: `binding.${input.operation}_failed`,
|
|
7144
|
-
title: "Binding
|
|
7135
|
+
title: "Binding couldn't be authorized",
|
|
7145
7136
|
message: `OpenMeld could not ${operationLabel}.`,
|
|
7146
7137
|
nextStep: "Retry after OpenMeld Gateway is reachable."
|
|
7147
7138
|
};
|
|
@@ -7161,26 +7152,16 @@ function emitBindingCommandError(input) {
|
|
|
7161
7152
|
message: input.message,
|
|
7162
7153
|
nextStep: input.nextStep
|
|
7163
7154
|
},
|
|
7155
|
+
...input.details ? { details: input.details } : {},
|
|
7164
7156
|
...input.payload ?? {}
|
|
7165
7157
|
};
|
|
7166
7158
|
if (input.presenter.view === "human") {
|
|
7167
|
-
|
|
7168
|
-
presenter: input.presenter,
|
|
7169
|
-
title: input.title,
|
|
7159
|
+
renderHumanErrorCard({
|
|
7170
7160
|
codePrefix: "binding.error.card",
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
},
|
|
7176
|
-
{
|
|
7177
|
-
label: "Next Step",
|
|
7178
|
-
value: input.nextStep
|
|
7179
|
-
},
|
|
7180
|
-
...input.details ?? []
|
|
7181
|
-
],
|
|
7182
|
-
sanitize: true,
|
|
7183
|
-
minContentWidth: 72
|
|
7161
|
+
message: input.message,
|
|
7162
|
+
nextStep: input.nextStep,
|
|
7163
|
+
presenter: input.presenter,
|
|
7164
|
+
title: input.title
|
|
7184
7165
|
});
|
|
7185
7166
|
return;
|
|
7186
7167
|
}
|
|
@@ -7614,7 +7595,7 @@ function emitCenterAgentApiError(input) {
|
|
|
7614
7595
|
activeOrganization: input.activeOrganization,
|
|
7615
7596
|
agentProfileId: input.agentProfileId,
|
|
7616
7597
|
code: classified.code,
|
|
7617
|
-
details: buildFailureDetails
|
|
7598
|
+
details: buildFailureDetails(failure),
|
|
7618
7599
|
message: classified.message,
|
|
7619
7600
|
nextStep: classified.nextStep,
|
|
7620
7601
|
payload: {
|
|
@@ -7745,7 +7726,7 @@ function classifyCenterAgentApiFailure(input) {
|
|
|
7745
7726
|
code: `center_agent.${input.operation}_failed`,
|
|
7746
7727
|
message: `OpenMeld could not ${operationLabel}.`,
|
|
7747
7728
|
nextStep: "Retry after OpenMeld Gateway is reachable.",
|
|
7748
|
-
title: "Center Agent
|
|
7729
|
+
title: "Center Agent action couldn't finish"
|
|
7749
7730
|
};
|
|
7750
7731
|
}
|
|
7751
7732
|
function emitCenterAgentCommandError(input) {
|
|
@@ -7759,25 +7740,15 @@ function emitCenterAgentCommandError(input) {
|
|
|
7759
7740
|
nextStep: input.nextStep
|
|
7760
7741
|
},
|
|
7761
7742
|
...input.agentProfileId ? { agentProfileId: input.agentProfileId } : {},
|
|
7743
|
+
...input.details ? { details: input.details } : {},
|
|
7762
7744
|
...input.payload ?? {}
|
|
7763
7745
|
};
|
|
7764
7746
|
if (input.presenter.view === "human") {
|
|
7765
|
-
|
|
7747
|
+
renderHumanErrorCard({
|
|
7766
7748
|
codePrefix: "center-agent.error.card",
|
|
7767
|
-
|
|
7749
|
+
message: input.message,
|
|
7750
|
+
nextStep: input.nextStep,
|
|
7768
7751
|
presenter: input.presenter,
|
|
7769
|
-
rows: [
|
|
7770
|
-
{
|
|
7771
|
-
label: "Reason",
|
|
7772
|
-
value: input.message
|
|
7773
|
-
},
|
|
7774
|
-
{
|
|
7775
|
-
label: "Next Step",
|
|
7776
|
-
value: input.nextStep
|
|
7777
|
-
},
|
|
7778
|
-
...input.details ?? []
|
|
7779
|
-
],
|
|
7780
|
-
sanitize: true,
|
|
7781
7752
|
title: input.title
|
|
7782
7753
|
});
|
|
7783
7754
|
return;
|
|
@@ -7787,7 +7758,7 @@ function emitCenterAgentCommandError(input) {
|
|
|
7787
7758
|
payload
|
|
7788
7759
|
});
|
|
7789
7760
|
}
|
|
7790
|
-
function buildFailureDetails
|
|
7761
|
+
function buildFailureDetails(failure) {
|
|
7791
7762
|
return [
|
|
7792
7763
|
...failure.status === null ? [] : [{
|
|
7793
7764
|
label: "HTTP Status",
|
|
@@ -13578,11 +13549,14 @@ async function fetchSpaceDispatchTrace(input) {
|
|
|
13578
13549
|
const response = await fetchSpaceRequestWithTimeout({
|
|
13579
13550
|
url: endpoint,
|
|
13580
13551
|
operation: "space.dispatch_trace",
|
|
13581
|
-
init: { headers:
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
|
|
13552
|
+
init: { headers: {
|
|
13553
|
+
...await buildOpenMeldRequestContextHeadersWithAuth({
|
|
13554
|
+
requestUrl: endpoint,
|
|
13555
|
+
requestContext: input.requestContext,
|
|
13556
|
+
spacePassword: input.password
|
|
13557
|
+
}),
|
|
13558
|
+
[SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER]: String(2)
|
|
13559
|
+
} }
|
|
13586
13560
|
});
|
|
13587
13561
|
const raw = await response.text();
|
|
13588
13562
|
if (!response.ok) throw new Error(`HTTP ${response.status}: ${raw}`);
|
|
@@ -15211,6 +15185,25 @@ function buildAgentTraceCompactSummary(input) {
|
|
|
15211
15185
|
reasonCode: finalVisibleOutcome.reasonCode,
|
|
15212
15186
|
visibleOutcome: finalVisibleOutcome.status
|
|
15213
15187
|
};
|
|
15188
|
+
const headLifecycle = trace.runtimeCoordinatorHeadLifecycle;
|
|
15189
|
+
if (headLifecycle?.readStatus === "found" && headLifecycle.waitingBoundary) {
|
|
15190
|
+
const waitingBoundary = headLifecycle.waitingBoundary;
|
|
15191
|
+
return {
|
|
15192
|
+
...nativeDeliveryEvidence,
|
|
15193
|
+
currentState: headLifecycle.status,
|
|
15194
|
+
delivered: false,
|
|
15195
|
+
nextAction: waitingBoundary.userRecoveryAction === "wait_for_wake_route_report" ? "wait for the Wake route report, then rerun trace with the same selector" : "start or restart OpenMeld Service, then rerun trace with the same selector",
|
|
15196
|
+
reasonCode: waitingBoundary.reasonCode,
|
|
15197
|
+
visibleOutcome: finalVisibleOutcome.status,
|
|
15198
|
+
waitingBoundary: {
|
|
15199
|
+
deadlineAt: waitingBoundary.deadlineAt,
|
|
15200
|
+
softDeadlineAt: waitingBoundary.softDeadlineAt,
|
|
15201
|
+
userRecoveryAction: waitingBoundary.userRecoveryAction,
|
|
15202
|
+
waitingFor: waitingBoundary.waitingFor,
|
|
15203
|
+
waitingSince: waitingBoundary.waitingSince
|
|
15204
|
+
}
|
|
15205
|
+
};
|
|
15206
|
+
}
|
|
15214
15207
|
if (finalVisibleOutcome.status === "publication_pending" || finalVisibleOutcome.status === "publication_retrying") return {
|
|
15215
15208
|
...nativeDeliveryEvidence,
|
|
15216
15209
|
currentState: "publishing",
|
|
@@ -15264,6 +15257,11 @@ function formatAgentTraceCompactSummary(input) {
|
|
|
15264
15257
|
`visible_outcome=${input.visibleOutcome}`,
|
|
15265
15258
|
`current_state=${input.currentState}`,
|
|
15266
15259
|
input.reasonCode ? `reason=${input.reasonCode}` : null,
|
|
15260
|
+
input.waitingBoundary ? `waiting_for=${input.waitingBoundary.waitingFor}` : null,
|
|
15261
|
+
input.waitingBoundary ? `waiting_deadline=${input.waitingBoundary.deadlineAt}` : null,
|
|
15262
|
+
input.waitingBoundary ? `recovery_action=${input.waitingBoundary.userRecoveryAction}` : null,
|
|
15263
|
+
input.waitingBoundary ? `waiting_soft_deadline=${input.waitingBoundary.softDeadlineAt}` : null,
|
|
15264
|
+
input.waitingBoundary ? `waiting_since=${input.waitingBoundary.waitingSince}` : null,
|
|
15267
15265
|
input.runtimeFamily ? `runtime_family=${input.runtimeFamily}` : null,
|
|
15268
15266
|
input.deliveryDestination ? `destination=${input.deliveryDestination}` : null,
|
|
15269
15267
|
input.controllerNormalizationStatus ? `controller_normalization=${input.controllerNormalizationStatus}` : null,
|
|
@@ -16560,6 +16558,17 @@ function shouldForceSetupServiceRefresh() {
|
|
|
16560
16558
|
return process.env.OPENMELD_SETUP_FORCE_SERVICE_REFRESH === "1";
|
|
16561
16559
|
}
|
|
16562
16560
|
//#endregion
|
|
16561
|
+
//#region src/runtime/cli-output-handled-error.ts
|
|
16562
|
+
var CliOutputHandledError = class extends Error {
|
|
16563
|
+
constructor(message) {
|
|
16564
|
+
super(message);
|
|
16565
|
+
this.name = "CliOutputHandledError";
|
|
16566
|
+
}
|
|
16567
|
+
};
|
|
16568
|
+
function isCliOutputHandledError(error) {
|
|
16569
|
+
return error instanceof CliOutputHandledError || error instanceof Error && error.name === "CliOutputHandledError";
|
|
16570
|
+
}
|
|
16571
|
+
//#endregion
|
|
16563
16572
|
//#region src/commands/prepare-step-diagnostics.ts
|
|
16564
16573
|
const PREPARE_STEP_DIAGNOSTICS_PAYLOAD_MAX_CHARS = Math.min(16e3, PREPARE_STEP_DIAGNOSTICS_MAX_CHARS);
|
|
16565
16574
|
const PREPARE_STEP_DIAGNOSTICS_BUNDLE_VERSION = 2;
|
|
@@ -17305,21 +17314,25 @@ async function handleTerminalStepFailure(input) {
|
|
|
17305
17314
|
revisionFloor: startedSnapshot.sessionRevision,
|
|
17306
17315
|
stream: input.input.stream
|
|
17307
17316
|
});
|
|
17308
|
-
input.progress.fail(
|
|
17309
|
-
const humanLines = [message];
|
|
17310
|
-
if (!localMachineIssue) humanLines.push("After fixing this step, copy a fresh setup command from OpenMeld Web and run setup again.");
|
|
17311
|
-
if (diagnostics !== null) humanLines.push(`A diagnostic summary was shared with OpenMeld to help fix this (support code: ${reasonCode}).`);
|
|
17312
|
-
emitHumanStatus(input.input.input, "Setup blocked", humanLines);
|
|
17317
|
+
input.progress.fail("Setup stopped.");
|
|
17313
17318
|
if (isLocalMachineFailureError(input.error)) throw input.error;
|
|
17314
|
-
|
|
17315
|
-
|
|
17316
|
-
|
|
17319
|
+
if (input.input.input.runtime.resolvedView === "human") {
|
|
17320
|
+
renderHumanErrorCard({
|
|
17321
|
+
codePrefix: "prepare.session.failed",
|
|
17322
|
+
message,
|
|
17323
|
+
presenter: input.input.input.presenter,
|
|
17324
|
+
title: "Setup couldn't finish"
|
|
17325
|
+
});
|
|
17326
|
+
throw new CliOutputHandledError(rawMessage);
|
|
17327
|
+
}
|
|
17328
|
+
const agentError = new Error(rawMessage, { cause: input.error });
|
|
17329
|
+
agentError.code = reasonCode;
|
|
17330
|
+
throw agentError;
|
|
17317
17331
|
}
|
|
17318
17332
|
function assertTerminalStepCompletedOrThrow(input) {
|
|
17319
17333
|
if (findStep(input.snapshot, input.stepId)?.state === "complete" && input.snapshot.phase !== "blocked") return;
|
|
17320
|
-
const
|
|
17321
|
-
|
|
17322
|
-
emitHumanStatus(input.input, "Setup blocked", [message, ...blocker?.reasonCode ? [`Support code: ${blocker.reasonCode}`] : []]);
|
|
17334
|
+
const message = (input.snapshot.blockers.find((candidate) => candidate.stepId === input.stepId) ?? input.snapshot.blockers[0] ?? null)?.message ?? "OpenMeld setup is blocked. Return to OpenMeld Web for details.";
|
|
17335
|
+
emitHumanStatus(input.input, "Setup blocked", [message]);
|
|
17323
17336
|
throw new PrepareSessionBlockedByCoreError(message);
|
|
17324
17337
|
}
|
|
17325
17338
|
function resolveNextTerminalPrepareStep(snapshot) {
|
|
@@ -17660,7 +17673,7 @@ async function enforcePrepareSessionTerminalAuth(input) {
|
|
|
17660
17673
|
const step = findStep(snapshot, "connect_terminal");
|
|
17661
17674
|
return snapshot.sessionRevision > beforeWriteRevision && step?.state === "blocked";
|
|
17662
17675
|
});
|
|
17663
|
-
emitHumanStatus(input.input, "Setup blocked", [result.message
|
|
17676
|
+
emitHumanStatus(input.input, "Setup blocked", [result.message]);
|
|
17664
17677
|
throw new Error(result.message);
|
|
17665
17678
|
}
|
|
17666
17679
|
async function connectSelectedLocalAgentsToOpenMeld(input) {
|
|
@@ -17820,7 +17833,7 @@ function buildSelectedRuntimeReadinessError(input) {
|
|
|
17820
17833
|
return /* @__PURE__ */ new Error(`OpenMeld could not verify that selected local agents were reported to OpenMeld yet. Keep OpenMeld Service running, then run \`${formatOpenMeldCliCommand("openmeld setup --view agent")}\` again. You can also run \`${formatOpenMeldCliCommand("openmeld service status --view agent")}\` to inspect the local service. Support code: ${reasonCode}.`);
|
|
17821
17834
|
}
|
|
17822
17835
|
function buildSelectedRuntimeReadinessUnreachableError(lastError) {
|
|
17823
|
-
return new Error(`OpenMeld could not
|
|
17836
|
+
return new Error(`OpenMeld could not connect to the setup service while checking your local agents. Last network error: ${toErrorMessage$2(lastError)}. Support code: ${VERIFY_SETUP_READINESS_UNREACHABLE_SUPPORT_CODE}.`, { cause: lastError });
|
|
17824
17837
|
}
|
|
17825
17838
|
function isSelectedRuntimeReadinessStillConverging(input) {
|
|
17826
17839
|
if (!input.response.agentControllerReportsRead || input.response.openMeldServiceRuntimeId === void 0) return false;
|
|
@@ -17863,18 +17876,12 @@ async function resolveRefreshServiceJobVerdict(input) {
|
|
|
17863
17876
|
function formatTerminalStepFailureMessage(input) {
|
|
17864
17877
|
if (input.rawMessage.includes("prepare session revision conflict")) return "This setup changed while Terminal was working. Copy a fresh setup command from OpenMeld Web and run setup again to continue from the latest step.";
|
|
17865
17878
|
if (input.stepId === "refresh_service") {
|
|
17866
|
-
if (input.serviceJobVerdict === "never_spawned") return
|
|
17867
|
-
if (input.serviceJobVerdict === "crashed") return `OpenMeld Service
|
|
17868
|
-
|
|
17869
|
-
return `OpenMeld Service did not report a running local connection during setup. Copy a fresh setup command from OpenMeld Web and run setup again to continue from this step. If it fails again, run \`${formatOpenMeldCliCommand("openmeld service start --mode foreground")}\` to see live startup logs, then copy a fresh setup command from OpenMeld Web and run setup again.${detail ? ` Detail: ${detail}` : ""}`;
|
|
17879
|
+
if (input.serviceJobVerdict === "never_spawned") return "macOS didn't start OpenMeld Service. Open System Settings > General > Login Items & Extensions, turn on the OpenMeld background item, then copy a new setup command from OpenMeld Web.";
|
|
17880
|
+
if (input.serviceJobVerdict === "crashed") return `OpenMeld Service keeps stopping after it starts. Run \`${formatOpenMeldCliCommand("openmeld service start --mode foreground")}\` to see the live error, then copy a new setup command from OpenMeld Web.`;
|
|
17881
|
+
return "OpenMeld couldn't update its background service. Restart your computer, then copy a new setup command from OpenMeld Web.";
|
|
17870
17882
|
}
|
|
17871
|
-
|
|
17872
|
-
|
|
17873
|
-
function formatTerminalStepFailureDetail(rawMessage) {
|
|
17874
|
-
const normalized = rawMessage.replace(/\s+/g, " ").trim();
|
|
17875
|
-
if (normalized.length === 0 || normalized === "OpenMeld Service is not connected yet.") return null;
|
|
17876
|
-
const maxLength = 220;
|
|
17877
|
-
return normalized.length > maxLength ? `${normalized.slice(0, maxLength - 3)}...` : normalized;
|
|
17883
|
+
const copy = buildHumanErrorCopy(input.rawMessage);
|
|
17884
|
+
return [copy.summary, copy.nextStep ?? "Copy a new setup command from OpenMeld Web and run it again."].join(" ");
|
|
17878
17885
|
}
|
|
17879
17886
|
function resolveTerminalStepFailureReasonCode(input) {
|
|
17880
17887
|
if (input.rawMessage.includes("runtime.registration.device_forgotten")) return "runtime.registration.device_forgotten";
|
|
@@ -18200,8 +18207,7 @@ function emitTerminalStepCompletionNotice(input, notice) {
|
|
|
18200
18207
|
emitHumanStatus(input, "Setup complete — final checks still running", [
|
|
18201
18208
|
notice.message,
|
|
18202
18209
|
"This usually completes automatically within a few minutes. You do not need to run setup again.",
|
|
18203
|
-
`Run \`${formatOpenMeldCliCommand("openmeld service status")}\` to check progress
|
|
18204
|
-
`Support code: ${notice.supportCode}`
|
|
18210
|
+
`Run \`${formatOpenMeldCliCommand("openmeld service status")}\` to check progress.`
|
|
18205
18211
|
]);
|
|
18206
18212
|
return;
|
|
18207
18213
|
}
|
|
@@ -20944,31 +20950,19 @@ function buildMissingWhoamiProfileRows(guidance) {
|
|
|
20944
20950
|
return rows;
|
|
20945
20951
|
}
|
|
20946
20952
|
function buildUnavailableWhoamiProfileRows(guidance) {
|
|
20947
|
-
const [firstStep
|
|
20953
|
+
const [firstStep] = guidance.nextSteps;
|
|
20948
20954
|
return [
|
|
20949
20955
|
{
|
|
20950
20956
|
label: "Selected Shell Profile",
|
|
20951
20957
|
value: pc.bold(pc.yellow("temporarily unavailable"))
|
|
20952
20958
|
},
|
|
20953
20959
|
{
|
|
20954
|
-
label: "
|
|
20955
|
-
value: "OpenMeld could not load the selected profile right now, so this command cannot show the active sender identity yet."
|
|
20956
|
-
},
|
|
20957
|
-
{
|
|
20958
|
-
label: "Reason",
|
|
20960
|
+
label: "What happened",
|
|
20959
20961
|
value: guidance.summary
|
|
20960
20962
|
},
|
|
20961
20963
|
{
|
|
20962
|
-
label: "
|
|
20963
|
-
value: guidance.details
|
|
20964
|
-
},
|
|
20965
|
-
{
|
|
20966
|
-
label: "Next step",
|
|
20964
|
+
label: "Next",
|
|
20967
20965
|
value: formatInlineOpenMeldCliCommands(`Run \`${firstStep}\` first.`)
|
|
20968
|
-
},
|
|
20969
|
-
{
|
|
20970
|
-
label: "Then",
|
|
20971
|
-
value: formatInlineOpenMeldCliCommands(`Run \`${retryStep}\` and retry this command.`)
|
|
20972
20966
|
}
|
|
20973
20967
|
];
|
|
20974
20968
|
}
|
|
@@ -23026,9 +23020,8 @@ function emitHelpfulHints(input) {
|
|
|
23026
23020
|
});
|
|
23027
23021
|
return;
|
|
23028
23022
|
}
|
|
23029
|
-
|
|
23030
|
-
outLine(
|
|
23031
|
-
for (const hint of hints) outLine(` - ${hint}`);
|
|
23023
|
+
if (buildHumanErrorCopy(input.message).nextStep) return;
|
|
23024
|
+
outLine(`Next: ${hints[0]}`);
|
|
23032
23025
|
}
|
|
23033
23026
|
function buildHints(argv, message, error) {
|
|
23034
23027
|
if (resolveAuthenticationGuidanceFromError(error) !== null || resolveAuthenticationGuidanceFromMessage(message) !== null) return [];
|
|
@@ -23413,7 +23406,7 @@ function emitOrganizationApiError(input) {
|
|
|
23413
23406
|
presenter: input.presenter,
|
|
23414
23407
|
cliJsonOutput: input.cliJsonOutput,
|
|
23415
23408
|
code: failure.code ?? "organization.unexpected_error",
|
|
23416
|
-
title: "Organization
|
|
23409
|
+
title: "Organization action couldn't finish",
|
|
23417
23410
|
message: failure.message,
|
|
23418
23411
|
nextStep: "Confirm the active Organization and retry after OpenMeld Gateway is reachable.",
|
|
23419
23412
|
activeOrganization: input.activeOrganization,
|
|
@@ -23456,7 +23449,7 @@ function resolveOrganizationApiErrorPresentation(code) {
|
|
|
23456
23449
|
nextStep: "Ask an Organization owner or admin to manage the invite link."
|
|
23457
23450
|
};
|
|
23458
23451
|
return {
|
|
23459
|
-
title: "Organization
|
|
23452
|
+
title: "Organization action couldn't finish",
|
|
23460
23453
|
nextStep: "Retry the command after OpenMeld auth is reachable."
|
|
23461
23454
|
};
|
|
23462
23455
|
}
|
|
@@ -23478,26 +23471,16 @@ function emitOrganizationCommandError(input) {
|
|
|
23478
23471
|
message: input.message,
|
|
23479
23472
|
nextStep: input.nextStep
|
|
23480
23473
|
},
|
|
23474
|
+
...input.details ? { details: input.details } : {},
|
|
23481
23475
|
...input.payload ?? {}
|
|
23482
23476
|
};
|
|
23483
23477
|
if (input.presenter.view === "human") {
|
|
23484
|
-
|
|
23485
|
-
presenter: input.presenter,
|
|
23486
|
-
title: input.title,
|
|
23478
|
+
renderHumanErrorCard({
|
|
23487
23479
|
codePrefix: "organization.error.card",
|
|
23488
|
-
|
|
23489
|
-
|
|
23490
|
-
|
|
23491
|
-
|
|
23492
|
-
},
|
|
23493
|
-
{
|
|
23494
|
-
label: "Next Step",
|
|
23495
|
-
value: input.nextStep
|
|
23496
|
-
},
|
|
23497
|
-
...input.details ?? []
|
|
23498
|
-
],
|
|
23499
|
-
sanitize: true,
|
|
23500
|
-
minContentWidth: 72
|
|
23480
|
+
message: input.message,
|
|
23481
|
+
nextStep: input.nextStep,
|
|
23482
|
+
presenter: input.presenter,
|
|
23483
|
+
title: input.title
|
|
23501
23484
|
});
|
|
23502
23485
|
return;
|
|
23503
23486
|
}
|
|
@@ -24344,7 +24327,7 @@ function emitCommandError(input) {
|
|
|
24344
24327
|
message: sessionUnavailable ? "OpenMeld cannot verify Resume or Fork against the selected local Session yet." : `OpenMeld could not ${input.operation} this Agent Profile request.`,
|
|
24345
24328
|
nextStep: sessionUnavailable ? "Use a new-session request for now. Resume and Fork will become available through Agent Activity session verification." : "Check the request status and Organization, then retry.",
|
|
24346
24329
|
presenter: input.context.presenter,
|
|
24347
|
-
title: sessionUnavailable ? "Resume
|
|
24330
|
+
title: sessionUnavailable ? "Resume and Fork aren't ready" : "Agent Profile request couldn't be updated"
|
|
24348
24331
|
});
|
|
24349
24332
|
}
|
|
24350
24333
|
function emitLocalError(input) {
|
|
@@ -24356,6 +24339,7 @@ function emitLocalError(input) {
|
|
|
24356
24339
|
status: "error",
|
|
24357
24340
|
error: {
|
|
24358
24341
|
code: input.code,
|
|
24342
|
+
details: input.details,
|
|
24359
24343
|
message: input.message,
|
|
24360
24344
|
nextStep: input.nextStep
|
|
24361
24345
|
}
|
|
@@ -24363,22 +24347,11 @@ function emitLocalError(input) {
|
|
|
24363
24347
|
});
|
|
24364
24348
|
return;
|
|
24365
24349
|
}
|
|
24366
|
-
|
|
24350
|
+
renderHumanErrorCard({
|
|
24367
24351
|
codePrefix: "profile.creation-request.error.card",
|
|
24368
|
-
|
|
24352
|
+
message: input.message,
|
|
24353
|
+
nextStep: input.nextStep,
|
|
24369
24354
|
presenter: input.presenter,
|
|
24370
|
-
rows: [
|
|
24371
|
-
{
|
|
24372
|
-
label: "Reason",
|
|
24373
|
-
value: input.message
|
|
24374
|
-
},
|
|
24375
|
-
{
|
|
24376
|
-
label: "Next Step",
|
|
24377
|
-
value: input.nextStep
|
|
24378
|
-
},
|
|
24379
|
-
...input.details ?? []
|
|
24380
|
-
],
|
|
24381
|
-
sanitize: true,
|
|
24382
24355
|
title: input.title
|
|
24383
24356
|
});
|
|
24384
24357
|
}
|
|
@@ -25612,22 +25585,11 @@ function emitClassifiedRoutineError(input) {
|
|
|
25612
25585
|
}, { code: input.classified.code });
|
|
25613
25586
|
return;
|
|
25614
25587
|
}
|
|
25615
|
-
|
|
25588
|
+
renderHumanErrorCard({
|
|
25616
25589
|
codePrefix: "routines.error.card",
|
|
25617
|
-
|
|
25590
|
+
message: input.classified.message,
|
|
25591
|
+
nextStep: input.classified.nextStep,
|
|
25618
25592
|
presenter: input.context.presenter,
|
|
25619
|
-
rows: [
|
|
25620
|
-
{
|
|
25621
|
-
label: "Reason",
|
|
25622
|
-
value: input.classified.message
|
|
25623
|
-
},
|
|
25624
|
-
{
|
|
25625
|
-
label: "Next Step",
|
|
25626
|
-
value: input.classified.nextStep
|
|
25627
|
-
},
|
|
25628
|
-
...buildFailureDetails(input.failure)
|
|
25629
|
-
],
|
|
25630
|
-
sanitize: true,
|
|
25631
25593
|
title: input.classified.title
|
|
25632
25594
|
});
|
|
25633
25595
|
}
|
|
@@ -25713,43 +25675,21 @@ function classifyRoutineApiFailure(failure, operation) {
|
|
|
25713
25675
|
code: failure.code,
|
|
25714
25676
|
message: formatSafeFailureMessage(failure),
|
|
25715
25677
|
nextStep: "Check OpenMeld Gateway health, then retry this command.",
|
|
25716
|
-
title: "Routine
|
|
25678
|
+
title: "Routine action couldn't finish"
|
|
25717
25679
|
};
|
|
25718
25680
|
if (failure.code) return {
|
|
25719
25681
|
code: failure.code,
|
|
25720
25682
|
message: failure.message,
|
|
25721
25683
|
nextStep: "Check the diagnostic evidence, then retry this command.",
|
|
25722
|
-
title: "Routine
|
|
25684
|
+
title: "Routine action couldn't finish"
|
|
25723
25685
|
};
|
|
25724
25686
|
return {
|
|
25725
25687
|
code: `routine.${operation}_failed`,
|
|
25726
25688
|
message: failure.message,
|
|
25727
25689
|
nextStep: "Check your connection, then retry this command.",
|
|
25728
|
-
title: "Routine
|
|
25690
|
+
title: "Routine action couldn't finish"
|
|
25729
25691
|
};
|
|
25730
25692
|
}
|
|
25731
|
-
function buildFailureDetails(failure) {
|
|
25732
|
-
if (!failure) return [];
|
|
25733
|
-
const schemaIssue = formatSchemaIssue(failure);
|
|
25734
|
-
return [
|
|
25735
|
-
...failure.status === null ? [] : [{
|
|
25736
|
-
label: "HTTP Status",
|
|
25737
|
-
value: String(failure.status)
|
|
25738
|
-
}],
|
|
25739
|
-
...failure.upstreamCode ? [{
|
|
25740
|
-
label: "Upstream Code",
|
|
25741
|
-
value: failure.upstreamCode
|
|
25742
|
-
}] : [],
|
|
25743
|
-
...schemaIssue ? [{
|
|
25744
|
-
label: "Schema Issue",
|
|
25745
|
-
value: schemaIssue
|
|
25746
|
-
}] : [],
|
|
25747
|
-
...failure.requestId ? [{
|
|
25748
|
-
label: "Request ID",
|
|
25749
|
-
value: failure.requestId
|
|
25750
|
-
}] : []
|
|
25751
|
-
];
|
|
25752
|
-
}
|
|
25753
25693
|
function buildSafeFailureEvidence(failure) {
|
|
25754
25694
|
return {
|
|
25755
25695
|
code: failure.code,
|
|
@@ -26239,8 +26179,7 @@ function formatRoutineLastRun(lastRun) {
|
|
|
26239
26179
|
}
|
|
26240
26180
|
function formatRoutineRunSummary(run) {
|
|
26241
26181
|
const parts = [formatRoutineRunStatus(run.status), `Scheduled: ${new Date(run.scheduledFor).toISOString()}`];
|
|
26242
|
-
if (run.
|
|
26243
|
-
if (run.failureDetail) parts.push(`Detail: ${run.failureDetail}`);
|
|
26182
|
+
if (run.failureDetail) parts.push(run.failureDetail);
|
|
26244
26183
|
return parts.join(" · ");
|
|
26245
26184
|
}
|
|
26246
26185
|
function formatRoutineRunStatus(status) {
|
|
@@ -27182,7 +27121,7 @@ function formatSpaceAddMeBindingReadFailure(input) {
|
|
|
27182
27121
|
if (!isAgentProfileBindingReadTimeout(error)) return error;
|
|
27183
27122
|
const statusCommand = formatOpenMeldCliCommand("openmeld service status");
|
|
27184
27123
|
const retryCommand = formatOpenMeldCliCommand(`openmeld space add-me ${quoteShellArg(input.spaceId)} --project-folder ${quoteShellArg(input.projectFolder.path)}`);
|
|
27185
|
-
return /* @__PURE__ */ new Error(`OpenMeld
|
|
27124
|
+
return /* @__PURE__ */ new Error(`OpenMeld couldn't add you because it couldn't read Agent Profile Bindings, and no Space membership was changed. Run ${statusCommand}, then retry ${retryCommand}. Details: ${error.message}`);
|
|
27186
27125
|
}
|
|
27187
27126
|
function isAgentProfileBindingReadTimeout(error) {
|
|
27188
27127
|
const code = error.code;
|
|
@@ -27306,7 +27245,7 @@ function normalizeOptionalString(value) {
|
|
|
27306
27245
|
return normalized.length > 0 ? normalized : null;
|
|
27307
27246
|
}
|
|
27308
27247
|
async function runDefaultSpaceAddMeMembership(input) {
|
|
27309
|
-
const { runSpaceAddMeMembership } = await import("./add-me-membership-
|
|
27248
|
+
const { runSpaceAddMeMembership } = await import("./add-me-membership-B9LeL4Ud.js");
|
|
27310
27249
|
return await runSpaceAddMeMembership(input);
|
|
27311
27250
|
}
|
|
27312
27251
|
//#endregion
|
|
@@ -28740,30 +28679,12 @@ function emitOrganizationSpaceError(input) {
|
|
|
28740
28679
|
});
|
|
28741
28680
|
return;
|
|
28742
28681
|
}
|
|
28743
|
-
|
|
28682
|
+
renderHumanErrorCard({
|
|
28683
|
+
message: failure.message,
|
|
28684
|
+
nextStep: "Try again in a moment.",
|
|
28744
28685
|
presenter: input.presenter,
|
|
28745
|
-
title: "Organization
|
|
28746
|
-
codePrefix: `${input.operation}.error.card
|
|
28747
|
-
rows: [
|
|
28748
|
-
{
|
|
28749
|
-
label: "Reason",
|
|
28750
|
-
value: failure.message
|
|
28751
|
-
},
|
|
28752
|
-
...failure.requestId ? [{
|
|
28753
|
-
label: "Request ID",
|
|
28754
|
-
value: failure.requestId
|
|
28755
|
-
}] : [],
|
|
28756
|
-
...failure.schemaIssuePath ? [{
|
|
28757
|
-
label: "Schema Path",
|
|
28758
|
-
value: failure.schemaIssuePath
|
|
28759
|
-
}] : [],
|
|
28760
|
-
...failure.schemaIssueMessage ? [{
|
|
28761
|
-
label: "Schema Issue",
|
|
28762
|
-
value: failure.schemaIssueMessage
|
|
28763
|
-
}] : []
|
|
28764
|
-
],
|
|
28765
|
-
sanitize: true,
|
|
28766
|
-
minContentWidth: 72
|
|
28686
|
+
title: "Organization Spaces couldn't be loaded",
|
|
28687
|
+
codePrefix: `${input.operation}.error.card`
|
|
28767
28688
|
});
|
|
28768
28689
|
}
|
|
28769
28690
|
function readLocalSpaceCommandErrorCode(error) {
|
|
@@ -30231,30 +30152,12 @@ function emitWakeControlError(input) {
|
|
|
30231
30152
|
});
|
|
30232
30153
|
return;
|
|
30233
30154
|
}
|
|
30234
|
-
|
|
30155
|
+
renderHumanErrorCard({
|
|
30156
|
+
message: failure.message,
|
|
30157
|
+
nextStep: "Try again in a moment.",
|
|
30235
30158
|
presenter: input.presenter,
|
|
30236
|
-
title: input.operation === "space.wake_stop" ? "Wake
|
|
30237
|
-
codePrefix: `${input.operation}.error.card
|
|
30238
|
-
rows: [
|
|
30239
|
-
{
|
|
30240
|
-
label: "Reason",
|
|
30241
|
-
value: failure.message
|
|
30242
|
-
},
|
|
30243
|
-
...failure.requestId ? [{
|
|
30244
|
-
label: "Request ID",
|
|
30245
|
-
value: failure.requestId
|
|
30246
|
-
}] : [],
|
|
30247
|
-
...failure.schemaIssuePath ? [{
|
|
30248
|
-
label: "Schema Path",
|
|
30249
|
-
value: failure.schemaIssuePath
|
|
30250
|
-
}] : [],
|
|
30251
|
-
...failure.schemaIssueMessage ? [{
|
|
30252
|
-
label: "Schema Issue",
|
|
30253
|
-
value: failure.schemaIssueMessage
|
|
30254
|
-
}] : []
|
|
30255
|
-
],
|
|
30256
|
-
sanitize: true,
|
|
30257
|
-
minContentWidth: 72
|
|
30159
|
+
title: input.operation === "space.wake_stop" ? "Wake couldn't be stopped" : "Wake progress couldn't be loaded",
|
|
30160
|
+
codePrefix: `${input.operation}.error.card`
|
|
30258
30161
|
});
|
|
30259
30162
|
}
|
|
30260
30163
|
function readLocalWakeControlErrorCode(error) {
|
|
@@ -33096,15 +32999,7 @@ async function runLocalCli(argv) {
|
|
|
33096
32999
|
}
|
|
33097
33000
|
await program.parseAsync(argv);
|
|
33098
33001
|
} catch (err) {
|
|
33099
|
-
if (
|
|
33100
|
-
process.exitCode = 1;
|
|
33101
|
-
return;
|
|
33102
|
-
}
|
|
33103
|
-
if (isSpaceCommandOutputHandledError(err)) {
|
|
33104
|
-
if (err.shouldPrintMessage && err.message.trim()) errLine(err.message);
|
|
33105
|
-
process.exitCode = 1;
|
|
33106
|
-
return;
|
|
33107
|
-
}
|
|
33002
|
+
if (handleKnownOutputError(err)) return;
|
|
33108
33003
|
const effectiveView = await resolveEffectiveViewForError(argv);
|
|
33109
33004
|
const message = err instanceof Error ? err.message : String(err);
|
|
33110
33005
|
const code = resolveCliErrorCode({
|
|
@@ -33138,6 +33033,16 @@ async function runLocalCli(argv) {
|
|
|
33138
33033
|
process.exitCode = 1;
|
|
33139
33034
|
}
|
|
33140
33035
|
}
|
|
33036
|
+
function handleKnownOutputError(error) {
|
|
33037
|
+
if (isCliOutputHandledError(error) || isUpgradeOutputHandledError(error)) {
|
|
33038
|
+
process.exitCode = 1;
|
|
33039
|
+
return true;
|
|
33040
|
+
}
|
|
33041
|
+
if (!isSpaceCommandOutputHandledError(error)) return false;
|
|
33042
|
+
if (error.shouldPrintMessage && error.message.trim()) errLine(error.message);
|
|
33043
|
+
process.exitCode = 1;
|
|
33044
|
+
return true;
|
|
33045
|
+
}
|
|
33141
33046
|
async function runRootCommand() {
|
|
33142
33047
|
const jsonOutput = hasJsonOutputArgv(process.argv);
|
|
33143
33048
|
const runtime = await resolveRuntimeContext();
|