openmeld 0.3.114 → 0.3.116

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/openmeld.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { $ as runWithHeldLock, A as toSpaceContractUrl, At as openMeldBackupsDir, D as normalizeBaseUrl, E as updateConfiguredStartV1OnboardingState, F as toSpaceDispatchTraceUrl, Ft as openMeldRootDir, G as buildOpenMeldOrphanedLockAction, Gt as resolveOpenMeldRootDir, Ht as resolveOpenMeldCliEntryNameFromArgv, Jt as skillsDir, K as isOpenMeldLockError, Lt as organizationSkillReleaseDir, Mt as openMeldManagedBinaryPath, Nt as openMeldManagedVersionBinaryPath, Ot as normalizeAccountKey, P as toSpaceDispatchLookupUrl, Q as resolveOpenMeldOrphanedLockIssue, Rt as profileDir, S as setConfiguredSkillsConfig, St as accountsDir, Ut as resolveOpenMeldEnvPreset, V as toSpaceResultUrl, W as acquireLock, X as releaseLockSync, Xt as systemDir, Yt as spacesDir, Z as repairOrphanedLegacyLocks, Zt as formatLocalMachineIssueMessage, a as resolveBaseUrl, at as resolveCliContext, b as setConfiguredBaseUrl, bt as accountProfileViewPath, c as resolveExplicitGatewayUrlOrThrow, ct as formatLaneScopeSentence, ft as createActiveSetupConcurrencyIssue, g as getConfiguredSkillsConfig, gt as toRecognizedLocalMachineFailureError, ht as isLocalMachineFailureError, in as agentControllerConversationRefSchema, k as toSpaceBoardUrl, lt as resolveOpenMeldLaneDescriptor, m as getConfiguredOnboardingDisclaimerAcceptedAt, mt as createOrphanedSetupConcurrencyIssue, nt as OPENMELD_CLI_CONTEXT_ENV_KEY, o as resolveBaseUrlOrNull, q as isOpenMeldOrphanedLockError, tt as LEGACY_OPENMELD_AGENT_SESSION_ENV_KEY, u as alignRuntimeConfigStorage, ut as LocalMachineFailureError, w as updateConfiguredOnboardingConfig, yt as accountProfileSpaceCacheDir, zt as profileViewPath } from "./base-url-PkgATS5u.js";
4
- import { $ as runAgentsRepair, $a as installAgentActivityIntegrations, $i as readDaemonServiceJobCrashExitCode, $n as formatDaemonServiceMissingRecommendation, $r as resolveOpenClawLocalDiagnosticsValue, $t as readBundledOpenMeldCliSkillDocumentByPath, A as assertFullSignalIdArgument, Aa as updateOpenMeldProfile, Ai as resolveNativeAgentControllerPermissionModeForController, An as upsertSpaceConfig, Ao as setDefaultProjectConnection, Ar as DualViewGuideError, At as shouldEmitAgentOverview, B as persistAgentTransportSelection, Ba as resolveAuthenticationGuidanceFromMessage, Bi as assessServerRequiredVersion, Bn as promptSearchMultiselect, Bo as outJsonLine, Br as runPendingDaemonServiceUpdate, Bt as parseJsonResponse, C as toSpaceMetaUpsertInput, Ca as resolveOpenMeldProfileOrNull, Ci as getAgentControllerPermissionModeFieldLabel, Cn as submitRuntimeAgentControllerReport, Co as removeProjectOutbox, Cr as SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS, Ct as runDaemonTeardownStrict, D as formatHumanReadTargetList, Da as listOpenMeldProfiles, Di as resolveAgentExecutionStatus, Dn as resolveLocalAgentControllerLaunchability, Do as migrateProjectBindingStore, Dr as registerAuthLoginRequestOptions, Dt as reconcileCliVersionView, E as buildHumanReplyContextSummary, Ea as deleteOpenMeldProfile, Ei as resolveAgentControllerPermissionModeForController, En as resolveLocalAgentControllerBlockerReasonCodes, Eo as listProjectConnectionsWithStatus, Er as registerDaemonControlTargetOptions, Et as buildProfileWorkspaceRows, F as emitSpaceAgentOverview, Fa as buildAgentAuthenticationGuide, Fi as buildDaemonServiceTargetSpec, Fn as buildSignalMessageReadProjection, Fo as renderInfoCard, Fr as SPACE_CONTRACT_ALLOWED_ACTION_ORDER, Ft as fetchSpaceMeta, G as runAgentsCustomList, Ga as LocalDaemonControlPlaneClientError, Gi as resetCurrentCommandCheckState, Gn as isCliUpdateCheckApplicable, Go as cliJsonSkillsLoadEnvelopeSchema, Gr as resolveServiceReadinessFromServiceStatus, Gt as runDaemonStartDecisionPrompt, H as runAgents, Ha as setProfileDefaultView, Hi as finishCurrentCommandCheckScope, Hn as isReturnKeypress, Ho as cliBinaryDeltaPatchSchema, Hr as ensureDaemonRuntimePaths, Ht as writeInstalledLocalComponentsSnapshot, I as emitSpaceCliAgentOverview, Ia as buildHumanAuthenticationCard, Ii as resolveDaemonServiceAlignmentDecision, In as buildSpaceRoundReadProjection, Io as renderTextInfoCard, Ir as areAllowedActionsEquivalent, It as updateSpaceMeta, J as runAgentsDetect, Ja as registerAgentActivityRoute, Ji as resolveVersionChangeDirection, Jn as readDispatchSpaceActionContextFromEnv, Jo as organizationJoinLinkErrorResponseSchema, Jr as formatAgentReplyReadinessLabel, Jt as runSkillsEnsure, K as runAgentsCustomRemove, Ka as requestLocalAgentActivitySync, Ki as startCurrentCommandCheckScope, Kn as assertDispatchOwnedRuntimePublicWriteAllowed, Ko as cliJsonSkillsShowEnvelopeSchema, Kr as resolveDaemonServiceFreshnessWarning, Kt as collectSkillsReadinessSnapshot, L as prepareLocalAgentReadiness, La as createAuthenticationError, Li as classifyDaemonServiceRunStartability, Ln as buildUpdatesReplyWorkflowProjection, Lo as sanitizeTerminalDisplayText, Lr as buildAgentFacingPublicationModeGuideLines, Lt as readGatewayJsonResponse, M as prepareAuthenticatedSpaceCommandContext, Ma as clearSelectedOpenMeldProfileId, Mi as buildDaemonRouteObservationPresentation$1, Mn as buildDispatchResultMessageReadProjection, Mo as canonicalizeLocalProjectPath, Mr as buildDualViewGuideMessage, Mt as readDaemonStartFailureLogTailLines, N as resolveOpenMeldProfileForSpaceCommand, Na as getSelectedOpenMeldProfileId, Ni as buildOnboardingPlan, Nn as buildDispatchResultReplyWorkflowProjection, No as enqueueControllerTaskLifecycleEventWhileLocked, Nr as formatAgentOverviewPayload, Nt as fetchSpaceUpdates, O as parseEnvelope, Oa as primeOpenMeldProfilesSessionCache, Oi as resolveAgentProfileEditCapabilities, On as resolveLocalAgentControllerReportDecision, Oo as removeProjectConnection, Or as registerBuiltinAgentSelectionOptions, Ot as emitDaemonAgentOverview, P as resolveSpaceAccessLabel, Pa as setSelectedOpenMeldProfileId, Pi as getSetupFlowCopy, Pn as buildSignalIndex, Po as readControllerTaskLifecycleOutboxHealth, Pr as OPENMELD_AGENT_MENTAL_MODEL_LINES, Pt as createCliSpaceApi, Q as runAgentsManage, Qa as defaultManagedIntegrationPaths, Qi as isDaemonServiceJobNeverSpawned, Qn as formatDaemonServiceDowngradeBlockedRecommendation, Qr as resolveGatewayChainReadiness, Qt as ensureLocalSkills, R as buildReplyReadinessGuidance, Ra as resolveAuthenticationGuidance, Ri as classifyDaemonServiceWakeability, Rn as createSpaceMemberIdentityIndex, Ro as emitCliJsonEnvelope, Rr as canonicalizeAllowedActions, Rt as readGatewayTextResponse, S as loadSpaceSignalIndexOrNull, Sa as requireOpenMeldProfile, Si as getAgentControllerPermissionModeDisplayMetadata, Sn as submitProfileRuntimeAgentControllerReport, So as readAgentActivityOutboxHealth, Sr as registerSpaceMemberSelectionOptions, St as runDaemonStop, T as buildFormalSignalReadPayload, Ta as createOpenMeldHumanProfile, Ti as parseAgentControllerRef, Tn as collectLocalAgentControllerInventory, To as listProjectBindings, Tr as getCliVersionInfo, Tt as buildProfileWorkspacePresentation, U as runAgentsConfig, Ua as LocalProjectConnectionError, Ui as getCurrentCommandCheckState, Un as runInteractivePrompt, Uo as cliJsonOutputEnvelopeSchema, Ur as resolveDaemonDeviceId, Ut as resolveDaemonServiceParticipationStatus, V as resolveAgentProfileSetup, Va as getProfileDefaultView, Vi as resolveOpenMeldEnvironmentTarget, Vn as promptSearchSelect, Vo as outLine, Vr as scheduleDaemonServiceUpdate, Vt as resolveLocalComponentsStatus, W as runAgentsCustomAdd, Wa as validateLocalProjectConnectionPath, Wi as isCurrentCommandCheckScopeActive, Wn as assessCliUpdate, Wo as cliJsonSkillsListEnvelopeSchema, Wr as formatDaemonFailureContextText, Wt as runDaemonServiceParticipationGate, X as runAgentsEnable, Xa as unregisterAgentActivityRoute, Xi as readCurrentObservedDaemonRuntimeStatus, Xn as formatElapsedTime, Xo as compareAgentControllerRefsForDisplay, Xr as formatHumanReplyReadinessReason$1, Xt as runSkillsUninstall, Y as runAgentsDisable, Ya as resolveAgentActivityRouteForPath, Yi as readCurrentDaemonRuntimeContext, Yn as writeDispatchSpaceActionRecord, Yo as revokeOrganizationJoinLinkResponseSchema, Yr as formatDeviceReplyReadinessLabel, Yt as runSkillsInstall, Z as runAgentsList, Zi as getDaemonSystemServiceLogPath, Zn as resolveElapsedTimeMs, Zo as package_default, Zr as mapAgentReplyReadinessToLegacyAutoReply, Zt as runSkillsUpdate, _ as runSpaceWriteWithPasswordRetry, _a as formatMessage, _i as listBuiltinAgentsRegistryEntries, _n as ensureAgentProfileRuntimeBinding, _o as resolveObservedAgentActivityBinding, _r as createStartAgentIdentityGuideError, _t as runDaemonInterrupt, a as runSpaceDelete, aa as ensureVersionStateReady, ai as normalizeCustomProfileWorkspacePath, an as evaluateCommandAuthentication, ao as formatOpenMeldCliCommands, ar as createResetConfirmationGuideError, at as printOpenMeldBanner, b as buildIdentityOnlyMembersSnapshotForReadProjection, ba as resolveViewProfileKey, bi as buildAgentControllerRef, bn as assessActionParticipationCandidate, bo as enqueueAgentActivityHookEvent, br as getCommandEntryContract, bt as runDaemonSnapshot, c as runSpaceLeave, ca as readVersionState, ci as setCustomProfileWorkspace, cn as runAuthMenu, co as formatProfileAwareOpenMeldCliCommands, cr as createSpaceContractSetGuideError, ct as renderOpenMeldLogo, d as runSpaceRemoveMembers, da as toStartBackgroundHelperExecutionCompatibility, di as describeProfileWorkspacePathValidationFailure, dn as buildAuthStatusSnapshot, do as syncLocalAgentActivity, dr as createSpacePublicationSetGuideError, dt as resolveSpaceSendText, ea as resolveDaemonServiceManager, ei as readRecentDaemonLifecycleEvents, en as readRuntimeReportingHealthState, eo as readAgentActivityIntegrationStatus, er as canUseInteractivePrompts, et as runAgentsShow, f as runSpaceSend, fa as resolveCurrentDaemonExpectedVersion, fi as syncDeviceRuntimeStateProjection, fn as formatActiveOrganizationLabel, fo as readDaemonServiceContract, fr as createSpaceRemoveMembersGuideError, ft as runDaemon, g as runSpaceReadWithPasswordRetry, ga as createPresenter, gi as reconcileNewRunnableBuiltinAgentsForSetup, gn as promptTextEntry, go as buildAgentActivityEvent, gr as createSpaceUpdatesGuideError, gt as runDaemonInstall, h as uploadPreparedSpaceFiles, ha as renderHumanTextErrorCard, hi as listAgentTargetStates, hn as resolveCreateProfileName, ho as removeAgentActivityContextCache, hr as createSpaceTargetGuideError, ht as runDaemonCancel, i as runSpaceCreate, ia as compareSemver, ii as ensureOpenMeldManagedProfileWorkspace, in as ensureCommandAuthenticationOrCancel, io as formatOpenMeldCliCommand, ir as createProfileMenuGuideError, it as colorizeDisplayProfileLabel, j as assertValidSpaceIdTarget, ja as alignSelectedOpenMeldProfileStorage, jn as assertNoRemovedCcSpaceAddressingSyntax, jo as unbindProject, jr as formatDualViewGuideForDisplay, jt as runDaemonStartupPreflight, k as isSpaceCommandOutputHandledError, ka as resolveOpenMeldProfile, ki as resolveEvidenceSyncHealth, kn as inspectSpaceCacheFile, ko as runIfAgentActivityBindingGenerationIsCurrent, kr as buildAgentOverviewFromContract, kt as createDelayedSpinner, l as runSpaceList, la as writeVersionState, li as setOpenMeldManagedProfileWorkspace, ln as runAuthStatus, lo as resolveSetupFollowUpCliEntryCommand, lr as createSpaceLeaveGuideError, lt as renderOpenMeldTagline, m as prepareRequestedSpaceSendFiles, ma as renderHumanErrorCard, mi as resolveAgentProfilePrimaryAgentControllerReport, mn as resolveCreateProfileKind, mo as readAgentActivityContextForPath, mr as createSpaceSubcommandTargetGuideError, mt as runDaemonBackgroundStartForDecision, n as promptAndConfirmSpacePassword, na as performManagedInstall, ni as createModelCatalogReadSession, nn as connectWebSocket, no as uninstallAgentActivityIntegrations, nr as createProfileActionGuideError, nt as postLocalParticipationMutationReconcile, o as runSpaceHistory, oa as fetchLatestCliBinaryRelease, oi as readProfileWorkspaceConfig, on as runAuthLogin, oo as formatOpenMeldCliLine, or as createSpaceAddMembersGuideError, ot as renderOpenMeldBrandBlockLines, p as runSpaceWatch, pa as buildHumanErrorCopy, pi as createPrimaryBindingReadSession, pn as createProfileByKind, po as upsertDaemonServiceContract, pr as createSpaceResultGuideError, pt as runDaemonAutostart, q as runAgentsCustomUpdate, qa as isAgentActivityRouteRegistered, qi as inspectDaemonServiceInventory, qn as readDispatchOwnedRuntimeGuard, qo as getOrganizationJoinLinkResponseSchema, qr as resolveCurrentReplyReadinessSnapshot, qt as runSkillsCheck$1, r as runSpaceAddMembers, ra as buildNextVersionState, ri as resolveProfileWorkspaceRuntime, rn as buildCommandAuthenticationPromptMessage, ro as formatInlineOpenMeldCliCommands, rr as createProfileCreateGuideError, rt as colorizeAgentLabel, s as runSpaceJoin, sa as fetchLatestPackageInfo, si as resolveConfiguredProfileWorkspacePath, sn as runAuthLogout, so as formatOpenMeldCliTextBlock, sr as createSpaceAliasTargetGuideError, st as renderOpenMeldHeader, t as buildCreateSpacePasswordPromptConfig, ta as buildInstallSelfJsonPayload, ti as syncProfileWorkspaceState, tn as readRecentDaemonDispatchJournalEvents, to as resolveAgentActivityDispatcherCommand, tr as createDoctorFailedGuideError, tt as formatTransportModeDisplay, u as runSpacePassword, ua as resolveDaemonRuntimeContractCompatibility, ui as validateCustomProfileWorkspacePath, un as buildAuthStatusRows, uo as resolveUserFacingCliEntryCommand, ur as createSpaceMenuGuideError, ut as resolveGatewayWebOrigin, v as buildHumanReadSignalsTranscriptItems, va as parseCliViewMode, vi as notifyDaemonRouteCatalogChanged, vn as formatServiceParticipationReadinessLabel, vo as normalizeSharedSessionTitle, vr as createStartAuthenticationGuideError, vt as runDaemonReinstall, w as buildFormalDispatchResultReadPayload, wa as createOpenMeldAgentProfile, wi as listAgentControllerPermissionModeOptions, wn as submitRuntimeAgentControllerReports, wo as bindProject, wr as registerSkillsTargetSelectionOptions, wt as runDaemonUninstall, x as loadSpaceIdentityDirectoryOrNull, xa as isSelectedOpenMeldProfileRequiredError, xi as createAgentExecutionStatusDisplayRows, xn as computeRetryDelayMs, xo as removeProjectInbox, xr as getCommandHintsFromContract, xt as runDaemonStatusFlow, y as emitHumanReadSignalsTextProjection, ya as resolveRuntimeContext, yi as resolveLocalRegistryAgentIdFromAgentControllerRef, yn as resolveServiceParticipationReadiness, yo as readCodexSessionTitles, yr as createUpgradeConfirmationGuideError, yt as runDaemonRunAfterEntryChecks, z as resolveHumanControllerDisplayName, za as resolveAuthenticationGuidanceFromError, zi as resolveServiceUpdateUrgency, zn as formatRemovedCcRelationMessage, zo as errLine, zr as readOpenMeldToolsUpdateContextFromEnv, zt as toStructuredGatewayFailure } from "./command-DRNfpPjR.js";
4
+ import { $ as runAgentsRepair, $a as installAgentActivityIntegrations, $i as readDaemonServiceJobCrashExitCode, $n as formatDaemonServiceMissingRecommendation, $r as resolveOpenClawLocalDiagnosticsValue, $t as readBundledOpenMeldCliSkillDocumentByPath, A as assertFullSignalIdArgument, Aa as updateOpenMeldProfile, Ai as resolveNativeAgentControllerPermissionModeForController, An as upsertSpaceConfig, Ao as setDefaultProjectConnection, Ar as DualViewGuideError, At as shouldEmitAgentOverview, B as persistAgentTransportSelection, Ba as resolveAuthenticationGuidanceFromMessage, Bi as assessServerRequiredVersion, Bn as promptSearchMultiselect, Bo as outJsonLine, Br as runPendingDaemonServiceUpdate, Bt as parseJsonResponse, C as toSpaceMetaUpsertInput, Ca as resolveOpenMeldProfileOrNull, Ci as getAgentControllerPermissionModeFieldLabel, Cn as submitRuntimeAgentControllerReport, Co as removeProjectOutbox, Cr as SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS, Ct as runDaemonTeardownStrict, D as formatHumanReadTargetList, Da as listOpenMeldProfiles, Di as resolveAgentExecutionStatus, Dn as resolveLocalAgentControllerLaunchability, Do as migrateProjectBindingStore, Dr as registerAuthLoginRequestOptions, Dt as reconcileCliVersionView, E as buildHumanReplyContextSummary, Ea as deleteOpenMeldProfile, Ei as resolveAgentControllerPermissionModeForController, En as resolveLocalAgentControllerBlockerReasonCodes, Eo as listProjectConnectionsWithStatus, Er as registerDaemonControlTargetOptions, Et as buildProfileWorkspaceRows, F as emitSpaceAgentOverview, Fa as buildAgentAuthenticationGuide, Fi as buildDaemonServiceTargetSpec, Fn as buildSignalMessageReadProjection, Fo as renderInfoCard, Fr as SPACE_CONTRACT_ALLOWED_ACTION_ORDER, Ft as fetchSpaceMeta, G as runAgentsCustomList, Ga as LocalDaemonControlPlaneClientError, Gi as resetCurrentCommandCheckState, Gn as isCliUpdateCheckApplicable, Go as cliJsonSkillsLoadEnvelopeSchema, Gr as resolveServiceReadinessFromServiceStatus, Gt as runDaemonStartDecisionPrompt, H as runAgents, Ha as setProfileDefaultView, Hi as finishCurrentCommandCheckScope, Hn as isReturnKeypress, Ho as cliBinaryDeltaPatchSchema, Hr as ensureDaemonRuntimePaths, Ht as writeInstalledLocalComponentsSnapshot, I as emitSpaceCliAgentOverview, Ia as buildHumanAuthenticationCard, Ii as resolveDaemonServiceAlignmentDecision, In as buildSpaceRoundReadProjection, Io as renderTextInfoCard, Ir as areAllowedActionsEquivalent, It as updateSpaceMeta, J as runAgentsDetect, Ja as registerAgentActivityRoute, Ji as resolveVersionChangeDirection, Jn as readDispatchSpaceActionContextFromEnv, Jo as organizationJoinLinkErrorResponseSchema, Jr as formatAgentReplyReadinessLabel, Jt as runSkillsEnsure, K as runAgentsCustomRemove, Ka as requestLocalAgentActivitySync, Ki as startCurrentCommandCheckScope, Kn as assertDispatchOwnedRuntimePublicWriteAllowed, Ko as cliJsonSkillsShowEnvelopeSchema, Kr as resolveDaemonServiceFreshnessWarning, Kt as collectSkillsReadinessSnapshot, L as prepareLocalAgentReadiness, La as createAuthenticationError, Li as classifyDaemonServiceRunStartability, Ln as buildUpdatesReplyWorkflowProjection, Lo as sanitizeTerminalDisplayText, Lr as buildAgentFacingPublicationModeGuideLines, Lt as readGatewayJsonResponse, M as prepareAuthenticatedSpaceCommandContext, Ma as clearSelectedOpenMeldProfileId, Mi as buildDaemonRouteObservationPresentation$1, Mn as buildDispatchResultMessageReadProjection, Mo as canonicalizeLocalProjectPath, Mr as buildDualViewGuideMessage, Mt as readDaemonStartFailureLogTailLines, N as resolveOpenMeldProfileForSpaceCommand, Na as getSelectedOpenMeldProfileId, Ni as buildOnboardingPlan, Nn as buildDispatchResultReplyWorkflowProjection, No as enqueueControllerTaskLifecycleEventWhileLocked, Nr as formatAgentOverviewPayload, Nt as fetchSpaceUpdates, O as parseEnvelope, Oa as primeOpenMeldProfilesSessionCache, Oi as resolveAgentProfileEditCapabilities, On as resolveLocalAgentControllerReportDecision, Oo as removeProjectConnection, Or as registerBuiltinAgentSelectionOptions, Ot as emitDaemonAgentOverview, P as resolveSpaceAccessLabel, Pa as setSelectedOpenMeldProfileId, Pi as getSetupFlowCopy, Pn as buildSignalIndex, Po as readControllerTaskLifecycleOutboxHealth, Pr as OPENMELD_AGENT_MENTAL_MODEL_LINES, Pt as createCliSpaceApi, Q as runAgentsManage, Qa as defaultManagedIntegrationPaths, Qi as isDaemonServiceJobNeverSpawned, Qn as formatDaemonServiceDowngradeBlockedRecommendation, Qr as resolveGatewayChainReadiness, Qt as ensureLocalSkills, R as buildReplyReadinessGuidance, Ra as resolveAuthenticationGuidance, Ri as classifyDaemonServiceWakeability, Rn as createSpaceMemberIdentityIndex, Ro as emitCliJsonEnvelope, Rr as canonicalizeAllowedActions, Rt as readGatewayTextResponse, S as loadSpaceSignalIndexOrNull, Sa as requireOpenMeldProfile, Si as getAgentControllerPermissionModeDisplayMetadata, Sn as submitProfileRuntimeAgentControllerReport, So as readAgentActivityOutboxHealth, Sr as registerSpaceMemberSelectionOptions, St as runDaemonStop, T as buildFormalSignalReadPayload, Ta as createOpenMeldHumanProfile, Ti as parseAgentControllerRef, Tn as collectLocalAgentControllerInventory, To as listProjectBindings, Tr as getCliVersionInfo, Tt as buildProfileWorkspacePresentation, U as runAgentsConfig, Ua as LocalProjectConnectionError, Ui as getCurrentCommandCheckState, Un as runInteractivePrompt, Uo as cliJsonOutputEnvelopeSchema, Ur as resolveDaemonDeviceId, Ut as resolveDaemonServiceParticipationStatus, V as resolveAgentProfileSetup, Va as getProfileDefaultView, Vi as resolveOpenMeldEnvironmentTarget, Vn as promptSearchSelect, Vo as outLine, Vr as scheduleDaemonServiceUpdate, Vt as resolveLocalComponentsStatus, W as runAgentsCustomAdd, Wa as validateLocalProjectConnectionPath, Wi as isCurrentCommandCheckScopeActive, Wn as assessCliUpdate, Wo as cliJsonSkillsListEnvelopeSchema, Wr as formatDaemonFailureContextText, Wt as runDaemonServiceParticipationGate, X as runAgentsEnable, Xa as unregisterAgentActivityRoute, Xi as readCurrentObservedDaemonRuntimeStatus, Xn as formatElapsedTime, Xo as compareAgentControllerRefsForDisplay, Xr as formatHumanReplyReadinessReason$1, Xt as runSkillsUninstall, Y as runAgentsDisable, Ya as resolveAgentActivityRouteForPath, Yi as readCurrentDaemonRuntimeContext, Yn as writeDispatchSpaceActionRecord, Yo as revokeOrganizationJoinLinkResponseSchema, Yr as formatDeviceReplyReadinessLabel, Yt as runSkillsInstall, Z as runAgentsList, Zi as getDaemonSystemServiceLogPath, Zn as resolveElapsedTimeMs, Zo as package_default, Zr as mapAgentReplyReadinessToLegacyAutoReply, Zt as runSkillsUpdate, _ as runSpaceWriteWithPasswordRetry, _a as formatMessage, _i as listBuiltinAgentsRegistryEntries, _n as ensureAgentProfileRuntimeBinding, _o as resolveObservedAgentActivityBinding, _r as createStartAgentIdentityGuideError, _t as runDaemonInterrupt, a as runSpaceDelete, aa as ensureVersionStateReady, ai as normalizeCustomProfileWorkspacePath, an as evaluateCommandAuthentication, ao as formatOpenMeldCliCommands, ar as createResetConfirmationGuideError, at as printOpenMeldBanner, b as buildIdentityOnlyMembersSnapshotForReadProjection, ba as resolveViewProfileKey, bi as buildAgentControllerRef, bn as assessActionParticipationCandidate, bo as enqueueAgentActivityHookEvent, br as getCommandEntryContract, bt as runDaemonSnapshot, c as runSpaceLeave, ca as readVersionState, ci as setCustomProfileWorkspace, cn as runAuthMenu, co as formatProfileAwareOpenMeldCliCommands, cr as createSpaceContractSetGuideError, ct as renderOpenMeldLogo, d as runSpaceRemoveMembers, da as toStartBackgroundHelperExecutionCompatibility, di as describeProfileWorkspacePathValidationFailure, dn as buildAuthStatusSnapshot, do as syncLocalAgentActivity, dr as createSpacePublicationSetGuideError, dt as resolveSpaceSendText, ea as resolveDaemonServiceManager, ei as readRecentDaemonLifecycleEvents, en as readRuntimeReportingHealthState, eo as readAgentActivityIntegrationStatus, er as canUseInteractivePrompts, et as runAgentsShow, f as runSpaceSend, fa as resolveCurrentDaemonExpectedVersion, fi as syncDeviceRuntimeStateProjection, fn as formatActiveOrganizationLabel, fo as readDaemonServiceContract, fr as createSpaceRemoveMembersGuideError, ft as runDaemon, g as runSpaceReadWithPasswordRetry, ga as createPresenter, gi as reconcileNewRunnableBuiltinAgentsForSetup, gn as promptTextEntry, go as buildAgentActivityEvent, gr as createSpaceUpdatesGuideError, gt as runDaemonInstall, h as uploadPreparedSpaceFiles, ha as renderHumanTextErrorCard, hi as listAgentTargetStates, hn as resolveCreateProfileName, ho as removeAgentActivityContextCache, hr as createSpaceTargetGuideError, ht as runDaemonCancel, i as runSpaceCreate, ia as compareSemver, ii as ensureOpenMeldManagedProfileWorkspace, in as ensureCommandAuthenticationOrCancel, io as formatOpenMeldCliCommand, ir as createProfileMenuGuideError, it as colorizeDisplayProfileLabel, j as assertValidSpaceIdTarget, ja as alignSelectedOpenMeldProfileStorage, jn as assertNoRemovedCcSpaceAddressingSyntax, jo as unbindProject, jr as formatDualViewGuideForDisplay, jt as runDaemonStartupPreflight, k as isSpaceCommandOutputHandledError, ka as resolveOpenMeldProfile, ki as resolveEvidenceSyncHealth, kn as inspectSpaceCacheFile, ko as runIfAgentActivityBindingGenerationIsCurrent, kr as buildAgentOverviewFromContract, kt as createDelayedSpinner, l as runSpaceList, la as writeVersionState, li as setOpenMeldManagedProfileWorkspace, ln as runAuthStatus, lo as resolveSetupFollowUpCliEntryCommand, lr as createSpaceLeaveGuideError, lt as renderOpenMeldTagline, m as prepareRequestedSpaceSendFiles, ma as renderHumanErrorCard, mi as resolveAgentProfilePrimaryAgentControllerReport, mn as resolveCreateProfileKind, mo as readAgentActivityContextForPath, mr as createSpaceSubcommandTargetGuideError, mt as runDaemonBackgroundStartForDecision, n as promptAndConfirmSpacePassword, na as performManagedInstall, ni as createModelCatalogReadSession, nn as connectWebSocket, no as uninstallAgentActivityIntegrations, nr as createProfileActionGuideError, nt as postLocalParticipationMutationReconcile, o as runSpaceHistory, oa as fetchLatestCliBinaryRelease, oi as readProfileWorkspaceConfig, on as runAuthLogin, oo as formatOpenMeldCliLine, or as createSpaceAddMembersGuideError, ot as renderOpenMeldBrandBlockLines, p as runSpaceWatch, pa as buildHumanErrorCopy, pi as createPrimaryBindingReadSession, pn as createProfileByKind, po as upsertDaemonServiceContract, pr as createSpaceResultGuideError, pt as runDaemonAutostart, q as runAgentsCustomUpdate, qa as isAgentActivityRouteRegistered, qi as inspectDaemonServiceInventory, qn as readDispatchOwnedRuntimeGuard, qo as getOrganizationJoinLinkResponseSchema, qr as resolveCurrentReplyReadinessSnapshot, qt as runSkillsCheck$1, r as runSpaceAddMembers, ra as buildNextVersionState, ri as resolveProfileWorkspaceRuntime, rn as buildCommandAuthenticationPromptMessage, ro as formatInlineOpenMeldCliCommands, rr as createProfileCreateGuideError, rt as colorizeAgentLabel, s as runSpaceJoin, sa as fetchLatestPackageInfo, si as resolveConfiguredProfileWorkspacePath, sn as runAuthLogout, so as formatOpenMeldCliTextBlock, sr as createSpaceAliasTargetGuideError, st as renderOpenMeldHeader, t as buildCreateSpacePasswordPromptConfig, ta as buildInstallSelfJsonPayload, ti as syncProfileWorkspaceState, tn as readRecentDaemonDispatchJournalEvents, to as resolveAgentActivityDispatcherCommand, tr as createDoctorFailedGuideError, tt as formatTransportModeDisplay, u as runSpacePassword, ua as resolveDaemonRuntimeContractCompatibility, ui as validateCustomProfileWorkspacePath, un as buildAuthStatusRows, uo as resolveUserFacingCliEntryCommand, ur as createSpaceMenuGuideError, ut as resolveGatewayWebOrigin, v as buildHumanReadSignalsTranscriptItems, va as parseCliViewMode, vi as notifyDaemonRouteCatalogChanged, vn as formatServiceParticipationReadinessLabel, vo as normalizeSharedSessionTitle, vr as createStartAuthenticationGuideError, vt as runDaemonReinstall, w as buildFormalDispatchResultReadPayload, wa as createOpenMeldAgentProfile, wi as listAgentControllerPermissionModeOptions, wn as submitRuntimeAgentControllerReports, wo as bindProject, wr as registerSkillsTargetSelectionOptions, wt as runDaemonUninstall, x as loadSpaceIdentityDirectoryOrNull, xa as isSelectedOpenMeldProfileRequiredError, xi as createAgentExecutionStatusDisplayRows, xn as computeRetryDelayMs, xo as removeProjectInbox, xr as getCommandHintsFromContract, xt as runDaemonStatusFlow, y as emitHumanReadSignalsTextProjection, ya as resolveRuntimeContext, yi as resolveLocalRegistryAgentIdFromAgentControllerRef, yn as resolveServiceParticipationReadiness, yo as readCodexSessionTitles, yr as createUpgradeConfirmationGuideError, yt as runDaemonRunAfterEntryChecks, z as resolveHumanControllerDisplayName, za as resolveAuthenticationGuidanceFromError, zi as resolveServiceUpdateUrgency, zn as formatRemovedCcRelationMessage, zo as errLine, zr as readOpenMeldToolsUpdateContextFromEnv, zt as toStructuredGatewayFailure } from "./command-CiC783jn.js";
5
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-BAzyHNIX.js";
6
6
  import { Bt as resolveSpaceFileMimeType, Er as openMeldRuntimeProfileIdSchema, Fr as trimmedStringFromUnknown, Lt as isSpaceFileTextEditable, Mt as centerAgentInteractionSourceSchema, Nr as nonEmptyTrimmedStringFromUnknown, bn as messageEnvelopeSchema, cn as spaceContractSchema, er as clientMessageIdSchema, jt as spaceStatusSchema, nn as dispatchExecutionSchema, rn as spaceThreadContextSchema, sn as spaceContractFieldsSchema, xr as openMeldProfileIdSchema } from "./runtime-transport-BVqEGkly.js";
7
7
  import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
@@ -15658,12 +15658,6 @@ async function submitSelectedAgentControllerReports(input) {
15658
15658
  };
15659
15659
  });
15660
15660
  }
15661
- function assertSelectedAgentControllerReportsAccepted(results) {
15662
- const failed = results.find((result) => result.localParticipationState !== "ready" || !isSelectedAgentControllerReportSubmissionAccepted(result));
15663
- if (!failed) return;
15664
- const reasonCode = failed.reasonCodes[0] ?? failed.runtimeReportSubmission.reasonCodes[0] ?? failed.runtimeReportSubmission.reason ?? "runtime.reporting.unavailable";
15665
- throw new Error(formatSelectedAgentControllerReportFailure(failed.agentId, reasonCode));
15666
- }
15667
15661
  function assertSelectedAgentControllerReportSubmissionsAccepted(results) {
15668
15662
  const failedSubmission = results.find((result) => !isSelectedAgentControllerReportSubmissionAccepted(result));
15669
15663
  if (failedSubmission) {
@@ -15678,11 +15672,6 @@ function assertSelectedAgentControllerReportSubmissionsAccepted(results) {
15678
15672
  function isSelectedAgentControllerReportSubmissionAccepted(result) {
15679
15673
  return result.runtimeReportSubmission.status === "submitted" && result.runtimeReportSubmission.agentControllerReportStatus === "accepted" && Boolean(result.runtimeReportSubmission.openMeldServiceRuntimeId);
15680
15674
  }
15681
- function assertSelectedAgentControllerReadinessReady(decisions) {
15682
- const failed = decisions.find((decision) => decision.localParticipationState !== "ready");
15683
- if (!failed) return;
15684
- throw new Error(formatSelectedAgentControllerReportFailure(failed.agentId, failed.reasonCodes[0] ?? "runtime.reporting.unavailable"));
15685
- }
15686
15675
  function formatSelectedAgentControllerReportFailure(agentId, reasonCode) {
15687
15676
  if (reasonCode === "service.not_running") return `OpenMeld could not connect selected agents to OpenMeld for ${agentId} because OpenMeld Service is not running. Run \`${formatOpenMeldCliCommand("openmeld service status")}\` to inspect it, then \`${formatOpenMeldCliCommand("openmeld service start")}\` to start it and retry this Web setup command.`;
15688
15677
  if (reasonCode === "service.not_installed") return `OpenMeld could not connect selected agents to OpenMeld for ${agentId} because OpenMeld Service is not installed. Run \`${formatOpenMeldCliCommand("openmeld service install")}\`, then \`${formatOpenMeldCliCommand("openmeld service start")}\`, and retry this Web setup command.`;
@@ -16858,12 +16847,6 @@ function finalizePrepareStepDiagnosticsSerialization(bundle) {
16858
16847
  //#region src/commands/prepare-session-executor.ts
16859
16848
  const PREPARE_TOKEN_HEADER = "x-openmeld-prepare-token";
16860
16849
  const REPORT_RUNTIME_CONNECTION_MAX_ATTEMPTS = 9;
16861
- const VERIFY_SETUP_POLL_TIMEOUT_MS = 12e4;
16862
- const VERIFY_SETUP_RETRY_INITIAL_DELAY_MS = 2e3;
16863
- const VERIFY_SETUP_RETRY_MAX_DELAY_MS = 5e3;
16864
- const VERIFY_SETUP_CONVERGING_TIMEOUT_SUPPORT_CODE = "verify_setup.converging_timeout";
16865
- const VERIFY_SETUP_CONVERGING_TIMEOUT_MESSAGE = "OpenMeld Service is still finishing its final checks in the background.";
16866
- const VERIFY_SETUP_READINESS_UNREACHABLE_SUPPORT_CODE = "verify_setup.readiness_unreachable";
16867
16850
  const WAITING_PROGRESS_DELAY_MS = 500;
16868
16851
  const TERMINAL_PREPARE_STEP_ORDER = [
16869
16852
  "prepare_selected_agents",
@@ -17310,15 +17293,13 @@ async function runTerminalStep(input) {
17310
17293
  });
17311
17294
  const openMeldServiceRuntimeIdentity = await input.run(progress);
17312
17295
  input.onRunResult?.(openMeldServiceRuntimeIdentity);
17313
- const completionNotice = openMeldServiceRuntimeIdentity?.completionNotice;
17314
17296
  const stepCompleteRevision = startedSnapshot.sessionRevision;
17315
17297
  input.stream.writeTerminalStep({
17316
17298
  connectionEpoch: input.connectionEpoch,
17317
17299
  expectedRevision: stepCompleteRevision,
17318
17300
  ...openMeldServiceRuntimeIdentity ?? {},
17319
17301
  stepId: input.stepId,
17320
- status: "completed",
17321
- ...buildTerminalStepCompletionNoticeWrite(completionNotice)
17302
+ status: "completed"
17322
17303
  });
17323
17304
  const resolvedSnapshot = await input.stream.waitForSnapshot((snapshot) => {
17324
17305
  const step = findStep(snapshot, input.stepId);
@@ -17330,7 +17311,6 @@ async function runTerminalStep(input) {
17330
17311
  stepId: input.stepId
17331
17312
  });
17332
17313
  progress.complete(formatTerminalStepCompleteMessage(input.stepId));
17333
- emitTerminalStepCompletionNotice(input.input, completionNotice);
17334
17314
  return resolvedSnapshot;
17335
17315
  } catch (error) {
17336
17316
  return await handleTerminalStepFailure({
@@ -17500,12 +17480,9 @@ function buildTerminalStep(input) {
17500
17480
  }
17501
17481
  };
17502
17482
  case "verify_setup": return {
17503
- message: "Checking that selected local agents are connected...",
17483
+ message: getSetupFlowCopy("setup").cliProgressFinishingSetup,
17504
17484
  run: async () => {
17505
- return await verifySelectedLocalAgentsConnectedToOpenMeld({
17506
- gatewayUrl: input.input.gatewayUrl,
17507
- localAgentIds: input.localAgentIds
17508
- });
17485
+ return await finishPrepareSetup({ gatewayUrl: input.input.gatewayUrl });
17509
17486
  }
17510
17487
  };
17511
17488
  default: throw new Error(`Terminal cannot run prepare step: ${input.stepId}`);
@@ -17516,7 +17493,7 @@ function formatTerminalStepCompleteMessage(stepId) {
17516
17493
  case "prepare_selected_agents": return "Connected selected local agents.";
17517
17494
  case "refresh_service": return "OpenMeld Service is running.";
17518
17495
  case "report_runtime": return "Reported selected local agents to OpenMeld.";
17519
- case "verify_setup": return "Verified selected local agents.";
17496
+ case "verify_setup": return "Setup ready.";
17520
17497
  default: return "Step complete.";
17521
17498
  }
17522
17499
  }
@@ -17810,7 +17787,7 @@ function emitSelectedLocalAgentAttention(progress, runtimeReports) {
17810
17787
  const needsSignIn = report.reasonCodes.some((reasonCode) => reasonCode === "provider_account.access_required" || reasonCode === "controller.auth.unauthenticated");
17811
17788
  progress?.detail({
17812
17789
  code: "prepare.session.progress.report_runtime.agent_attention",
17813
- text: needsSignIn ? `${displayName} is enabled, but its local account is not signed in. Sign in before using it.` : `${displayName} is enabled, but it is not ready yet. Review it later in this computer's settings.`
17790
+ text: needsSignIn ? `${displayName} needs sign-in before you can use it. You can do this later.` : `${displayName} is enabled, but it is not ready yet. Review it later in this computer's settings.`
17814
17791
  });
17815
17792
  }
17816
17793
  }
@@ -17828,7 +17805,7 @@ function isTransientSelectedAgentConnectionError(error) {
17828
17805
  const rawMessage = toErrorMessage$2(error).toLowerCase();
17829
17806
  return rawMessage.includes("service has not finished starting") || rawMessage.includes("openmeld service is not running") || rawMessage.includes("service.not_running") || rawMessage.includes("service_contract_unavailable") || rawMessage.includes("runtime.reporting.write_failed");
17830
17807
  }
17831
- async function verifySelectedLocalAgentsConnectedToOpenMeld(input) {
17808
+ async function finishPrepareSetup(input) {
17832
17809
  const openMeldServiceRuntimeIdentity = await readTerminalRuntimeIdentityFromServiceContract();
17833
17810
  const readiness = await collectStartLocalReadiness({ auth: {
17834
17811
  status: "valid",
@@ -17836,29 +17813,16 @@ async function verifySelectedLocalAgentsConnectedToOpenMeld(input) {
17836
17813
  authBaseUrl: null,
17837
17814
  gatewayUrl: input.gatewayUrl
17838
17815
  } });
17839
- const readySelectedAgents = resolveSelectedAgentControllerReadiness({
17840
- readiness,
17841
- localAgentIds: input.localAgentIds
17842
- }).filter((decision) => decision.localParticipationState === "ready");
17843
- const verification = await waitForSelectedRuntimeReadiness({
17844
- gatewayUrl: input.gatewayUrl,
17845
- openMeldServiceRuntimeIdentity,
17846
- selectedReadiness: readySelectedAgents
17847
- });
17848
17816
  return {
17849
17817
  ...openMeldServiceRuntimeIdentity,
17850
- localReadinessSnapshot: buildPrepareLocalReadinessSnapshot(readiness),
17851
- ...verification === "converging_timeout" ? { completionNotice: {
17852
- message: VERIFY_SETUP_CONVERGING_TIMEOUT_MESSAGE,
17853
- supportCode: VERIFY_SETUP_CONVERGING_TIMEOUT_SUPPORT_CODE
17854
- } } : {}
17818
+ localReadinessSnapshot: buildPrepareLocalReadinessSnapshot(readiness)
17855
17819
  };
17856
17820
  }
17857
17821
  async function readTerminalRuntimeIdentityFromServiceContract() {
17858
17822
  const serviceContract = await readDaemonServiceContract();
17859
17823
  const deviceId = serviceContract?.deviceId;
17860
17824
  const runtimeLane = serviceContract?.lane;
17861
- if (!(deviceId && runtimeLane)) throw new Error(`OpenMeld could not verify selected agents because OpenMeld Service did not provide this computer's device identity 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.`);
17825
+ if (!(deviceId && runtimeLane)) throw new Error(`OpenMeld could not finish setup because OpenMeld Service did not provide this computer's device identity 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.`);
17862
17826
  return {
17863
17827
  deviceId,
17864
17828
  runtimeLane
@@ -17867,75 +17831,6 @@ async function readTerminalRuntimeIdentityFromServiceContract() {
17867
17831
  async function notifyRouteCatalogAfterPrepare(input) {
17868
17832
  await notifyDaemonRouteCatalogChanged({ reason: input.reason });
17869
17833
  }
17870
- async function waitForSelectedRuntimeReadiness(input) {
17871
- const agentControllerRefs = input.selectedReadiness.map((decision) => decision.agentControllerRef);
17872
- if (agentControllerRefs.length === 0) return "ready";
17873
- const getReadiness = createPrepareReadinessApi(createCliApiClientFoundation(input.gatewayUrl)).getReadiness;
17874
- const deadlineMs = Date.now() + VERIFY_SETUP_POLL_TIMEOUT_MS;
17875
- let attempt = 0;
17876
- let lastError;
17877
- let lastResponse;
17878
- while (true) {
17879
- try {
17880
- lastResponse = await getReadiness({
17881
- agentControllerRefs,
17882
- deviceId: input.openMeldServiceRuntimeIdentity.deviceId,
17883
- lane: input.openMeldServiceRuntimeIdentity.runtimeLane
17884
- });
17885
- if (isSelectedRuntimeReadinessReady({
17886
- agentControllerRefs,
17887
- response: lastResponse
17888
- })) return "ready";
17889
- } catch (error) {
17890
- lastError = error;
17891
- }
17892
- const remainingMs = deadlineMs - Date.now();
17893
- if (remainingMs <= 0) break;
17894
- attempt += 1;
17895
- await sleep(Math.min(computeVerifySetupRetryDelayMs(attempt), remainingMs));
17896
- }
17897
- if (!lastResponse) throw buildSelectedRuntimeReadinessUnreachableError(lastError);
17898
- if (isSelectedRuntimeReadinessStillConverging({
17899
- agentControllerRefs,
17900
- nowMs: Date.now(),
17901
- response: lastResponse
17902
- })) return "converging_timeout";
17903
- throw buildSelectedRuntimeReadinessError({
17904
- agentControllerRefs,
17905
- response: lastResponse
17906
- });
17907
- }
17908
- function isSelectedRuntimeReadinessReady(input) {
17909
- const runnableAgentControllerRefs = new Set(input.response.runnableCapabilities.map((capability) => capability.agentControllerRef));
17910
- const missingAgentControllerRef = input.agentControllerRefs.find((agentControllerRef) => !runnableAgentControllerRefs.has(agentControllerRef));
17911
- return input.response.status === "ready" && input.response.openMeldServiceRuntimeId !== void 0 && missingAgentControllerRef === void 0;
17912
- }
17913
- function buildSelectedRuntimeReadinessError(input) {
17914
- const runnableAgentControllerRefs = new Set(input.response.runnableCapabilities.map((capability) => capability.agentControllerRef));
17915
- const missingAgentControllerRef = input.agentControllerRefs.find((agentControllerRef) => !runnableAgentControllerRefs.has(agentControllerRef));
17916
- const reasonCode = input.response.summary.reasonCodes[0] ?? input.response.reason ?? (missingAgentControllerRef ? "prepare_readiness.capability_not_ready" : "prepare_readiness.not_ready");
17917
- 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}.`);
17918
- }
17919
- function buildSelectedRuntimeReadinessUnreachableError(lastError) {
17920
- 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 });
17921
- }
17922
- function isSelectedRuntimeReadinessStillConverging(input) {
17923
- if (!input.response.agentControllerReportsRead || input.response.openMeldServiceRuntimeId === void 0) return false;
17924
- const runnableAgentControllerRefs = new Set(input.response.runnableCapabilities.map((capability) => capability.agentControllerRef));
17925
- const nonRunnableCapabilitiesByRef = new Map(input.response.nonRunnableCapabilities.map((capability) => [capability.agentControllerRef, capability]));
17926
- let unavailableReportCount = 0;
17927
- for (const agentControllerRef of input.agentControllerRefs) {
17928
- if (runnableAgentControllerRefs.has(agentControllerRef)) continue;
17929
- const capability = nonRunnableCapabilitiesByRef.get(agentControllerRef);
17930
- if (capability?.status !== "unavailable" || capability.observedAtMs === void 0 || capability.expiresAtMs === void 0 || capability.observedAtMs > input.nowMs || capability.expiresAtMs <= input.nowMs) return false;
17931
- unavailableReportCount += 1;
17932
- }
17933
- return unavailableReportCount > 0;
17934
- }
17935
- function computeVerifySetupRetryDelayMs(attempt) {
17936
- const exponentialDelayMs = VERIFY_SETUP_RETRY_INITIAL_DELAY_MS * 2 ** Math.max(0, attempt - 1);
17937
- return Math.min(exponentialDelayMs, VERIFY_SETUP_RETRY_MAX_DELAY_MS);
17938
- }
17939
17834
  function buildPrepareLocalReadinessSnapshot(readiness) {
17940
17835
  return {
17941
17836
  observedAt: (/* @__PURE__ */ new Date()).toISOString(),
@@ -17969,7 +17864,6 @@ function formatTerminalStepFailureMessage(input) {
17969
17864
  }
17970
17865
  function resolveTerminalStepFailureReasonCode(input) {
17971
17866
  if (input.rawMessage.includes("runtime.registration.device_forgotten")) return "runtime.registration.device_forgotten";
17972
- if (input.rawMessage.includes(VERIFY_SETUP_READINESS_UNREACHABLE_SUPPORT_CODE)) return VERIFY_SETUP_READINESS_UNREACHABLE_SUPPORT_CODE;
17973
17867
  if (input.stepId === "refresh_service") {
17974
17868
  if (input.serviceJobVerdict === "never_spawned") return "prepare.refresh_service.service_never_spawned";
17975
17869
  if (input.serviceJobVerdict === "crashed") return "prepare.refresh_service.service_crash_loop";
@@ -17979,13 +17873,6 @@ function resolveTerminalStepFailureReasonCode(input) {
17979
17873
  function findStep(snapshot, stepId) {
17980
17874
  return snapshot.steps.find((step) => step.id === stepId) ?? null;
17981
17875
  }
17982
- function buildTerminalStepCompletionNoticeWrite(notice) {
17983
- if (!notice) return {};
17984
- return {
17985
- message: notice.message,
17986
- reasonCode: notice.supportCode
17987
- };
17988
- }
17989
17876
  function resolveRuntimeIdentityFromPrepareSessionSnapshot(snapshot) {
17990
17877
  if (!(snapshot.deviceId && snapshot.runtimeLane)) return null;
17991
17878
  return {
@@ -18285,23 +18172,6 @@ function emitHumanStatus(input, title, lines) {
18285
18172
  minContentWidth: 56
18286
18173
  });
18287
18174
  }
18288
- function emitTerminalStepCompletionNotice(input, notice) {
18289
- if (!notice) return;
18290
- if (input.runtime.resolvedView === "human") {
18291
- emitHumanStatus(input, "Setup complete — final checks still running", [
18292
- notice.message,
18293
- "This usually completes automatically within a few minutes. You do not need to run setup again.",
18294
- `Run \`${formatOpenMeldCliCommand("openmeld service status")}\` to check progress.`
18295
- ]);
18296
- return;
18297
- }
18298
- createPrepareProgressReporter(input).line({
18299
- code: notice.supportCode,
18300
- data: { supportCode: notice.supportCode },
18301
- state: "success",
18302
- text: notice.message
18303
- });
18304
- }
18305
18175
  function formatSelectedLocalAgentNames(input) {
18306
18176
  const entriesById = new Map((input.snapshot.localAgentCatalog?.entries ?? []).map((entry) => [entry.agentId, entry]));
18307
18177
  return input.localAgentIds.map((agentId) => entriesById.get(agentId)?.displayName ?? agentId).join(", ");
@@ -19190,21 +19060,16 @@ async function runSetupUnlocked(input) {
19190
19060
  throw new Error(serviceGate.errorMessage ?? "OpenMeld Service could not be started for setup on this computer.");
19191
19061
  }
19192
19062
  const openMeldServiceRuntimeIdentity = await syncLocalSetupCurrentDeviceTargetFromServiceContract({ gatewayUrl });
19193
- const finalReadiness = await collectStartLocalReadiness({ auth: {
19194
- status: "valid",
19195
- email: null,
19196
- authBaseUrl: null,
19197
- gatewayUrl
19198
- } });
19199
- assertSelectedAgentControllerReadinessReady(resolveSelectedAgentControllerReadiness({
19200
- readiness: finalReadiness,
19201
- localAgentIds: selectedLocalAgentIds
19202
- }));
19203
19063
  const runtimeReports = await submitSelectedAgentControllerReports({
19204
- readiness: finalReadiness,
19064
+ readiness: await collectStartLocalReadiness({ auth: {
19065
+ status: "valid",
19066
+ email: null,
19067
+ authBaseUrl: null,
19068
+ gatewayUrl
19069
+ } }),
19205
19070
  localAgentIds: selectedLocalAgentIds
19206
19071
  });
19207
- assertSelectedAgentControllerReportsAccepted(runtimeReports);
19072
+ assertSelectedAgentControllerReportSubmissionsAccepted(runtimeReports);
19208
19073
  const routeCatalogSync = selectedLocalAgentIds.length > 0 ? await notifyRouteCatalogAfterSetup({ reason: "setup_local_capabilities_reported" }) : null;
19209
19074
  await runWithSetupProgress({
19210
19075
  code: "setup.progress.skills.updating",
@@ -19457,21 +19322,16 @@ async function resolveDelegatedSetupCompletionFacts(input) {
19457
19322
  selectedLocalAgentIds
19458
19323
  };
19459
19324
  const openMeldServiceRuntimeIdentity = resolveRuntimeIdentityFromSetupSession(input.setupResult.setupSessionSnapshot) ?? await syncLocalSetupCurrentDeviceTargetFromServiceContract({ gatewayUrl: input.gatewayUrl });
19460
- const finalReadiness = await collectStartLocalReadiness({ auth: {
19461
- status: "valid",
19462
- email: null,
19463
- authBaseUrl: null,
19464
- gatewayUrl: input.gatewayUrl
19465
- } });
19466
- assertSelectedAgentControllerReadinessReady(resolveSelectedAgentControllerReadiness({
19467
- readiness: finalReadiness,
19468
- localAgentIds: selectedLocalAgentIds
19469
- }));
19470
19325
  const runtimeReports = await submitSelectedAgentControllerReports({
19471
- readiness: finalReadiness,
19326
+ readiness: await collectStartLocalReadiness({ auth: {
19327
+ status: "valid",
19328
+ email: null,
19329
+ authBaseUrl: null,
19330
+ gatewayUrl: input.gatewayUrl
19331
+ } }),
19472
19332
  localAgentIds: selectedLocalAgentIds
19473
19333
  });
19474
- assertSelectedAgentControllerReportsAccepted(runtimeReports);
19334
+ assertSelectedAgentControllerReportSubmissionsAccepted(runtimeReports);
19475
19335
  return {
19476
19336
  routeCatalogSync: await notifyRouteCatalogAfterSetup({ reason: "setup_session_capabilities_reported" }),
19477
19337
  openMeldServiceRuntimeIdentity,
@@ -24577,7 +24437,11 @@ async function runProfileCreationRequestCreate(input) {
24577
24437
  callerUserId: context.callerUserId,
24578
24438
  value: input.targetOwner
24579
24439
  });
24580
- const configuration = await resolveRequestConfiguration(input);
24440
+ const configuration = await resolveRequestConfiguration({
24441
+ context,
24442
+ input,
24443
+ targetOwnerUserId
24444
+ });
24581
24445
  const response = await context.api.createAgentProfileCreationRequest({
24582
24446
  configuration,
24583
24447
  idempotencyKey: normalizeOptionalText$1(input.idempotencyKey) ?? randomUUID(),
@@ -24604,7 +24468,8 @@ async function runProfileCreationRequestCreate(input) {
24604
24468
  });
24605
24469
  }
24606
24470
  }
24607
- async function resolveRequestConfiguration(input) {
24471
+ async function resolveRequestConfiguration(options) {
24472
+ const { context, input, targetOwnerUserId } = options;
24608
24473
  const agentControllerRef = normalizeOptionalText$1(input.agentController);
24609
24474
  const targetComputerId = normalizeOptionalText$1(input.targetComputerId);
24610
24475
  if (Boolean(agentControllerRef) !== Boolean(targetComputerId)) throw new Error("--agent-controller and --computer must be provided together for a creation request.");
@@ -24621,13 +24486,28 @@ async function resolveRequestConfiguration(input) {
24621
24486
  agentControllerPermissionMode: permissionMode.agentControllerPermissionMode ?? null,
24622
24487
  agentControllerRef: agentControllerRef ?? null,
24623
24488
  authorizeForOrganization: input.authorizeForOrganization !== false,
24624
- defaultProjectId: normalizeOptionalText$1(input.defaultProjectId) ?? null,
24489
+ defaultProjectId: await resolveRequestDefaultProjectId({
24490
+ agentControllerRef,
24491
+ context,
24492
+ input,
24493
+ targetOwnerUserId
24494
+ }),
24625
24495
  modelId: normalizeOptionalText$1(input.modelId) ?? null,
24626
24496
  openCodePermission: parseOpenCodePermissionInput(input.openCodePermissionInput),
24627
24497
  reasoningLevel: normalizeOptionalText$1(input.reasoningLevel) ?? null,
24628
24498
  targetComputerId: targetComputerId ?? null
24629
24499
  });
24630
24500
  }
24501
+ async function resolveRequestDefaultProjectId(options) {
24502
+ const { agentControllerRef, context, input, targetOwnerUserId } = options;
24503
+ const explicitProjectId = normalizeOptionalText$1(input.defaultProjectId);
24504
+ if (explicitProjectId) return explicitProjectId;
24505
+ if (input.reuseSavedDefaultProject === false || !agentControllerRef || targetOwnerUserId !== context.callerUserId) return null;
24506
+ return (await context.api.getAgentProfileCreationDefaults({
24507
+ agentControllerRef,
24508
+ organizationId: context.organization.id
24509
+ })).defaultProjectId;
24510
+ }
24631
24511
  function parseOpenCodePermissionInput(value) {
24632
24512
  const normalized = normalizeOptionalText$1(value);
24633
24513
  if (!normalized) return null;
@@ -27508,7 +27388,7 @@ function normalizeOptionalString(value) {
27508
27388
  return normalized.length > 0 ? normalized : null;
27509
27389
  }
27510
27390
  async function runDefaultSpaceAddMeMembership(input) {
27511
- const { runSpaceAddMeMembership } = await import("./add-me-membership-BB-W7iLp.js");
27391
+ const { runSpaceAddMeMembership } = await import("./add-me-membership-B-aPNnlB.js");
27512
27392
  return await runSpaceAddMeMembership(input);
27513
27393
  }
27514
27394
  //#endregion
@@ -33543,7 +33423,7 @@ profileCmd.action(async () => {
33543
33423
  }
33544
33424
  });
33545
33425
  });
33546
- profileCmd.command("create").description("Create an Agent Profile, or an additional Human Profile when enabled.").argument("[profileName]", "OpenMeld profile name").option("--name <profileName>", "OpenMeld profile name").option("--kind <kind>", "Profile kind (agent; human when additional Human Profile creation is enabled)").option("--agent-controller <ref>", "Agent controller for this profile, such as builtin:codex or custom:reviewer").option("--agent-controller-conversation-id <id>", "Private Agent Controller conversation ID for this Agent Profile").option("--model <modelId>", "Model intent for this Agent Profile Binding").option("--reasoning-effort <level>", "Reasoning effort intent for the selected model").option("--agent-controller-permission-mode <policy>", formatAgentControllerPermissionModeHelp()).option("--agent-controller-collaboration-mode <mode>", "Collaboration mode for this Agent Controller, such as codex:default or codex:plan").option("--open-code-permission <json>", "OpenCode permission configuration as a JSON object").option("--confirm-dangerous-agent-controller-permission-mode", "Confirm a dangerous Agent Controller Permission Mode without prompting", false).option("--owner <userId>", "Create for a member from `openmeld org directory --view agent`, or self").option("--computer <computerId>", "Exact Organization-visible Computer for a teammate-owned Agent").option("--project <projectId>", "Default Project for the new Agent").option("--session <strategy>", "Session strategy for an owner request: new, resume, or fork", "new").option("--native-session <id>", "Native provider Session ID required for resume or fork").option("--space <spaceId>", "Add the created Agent to this Space").option("--source <source>", "Request source: cli or local-agent", "cli").option("--request-key <key>", "Stable idempotency key for safely retrying an owner request").option("--organization <slugOrId>", "Organization slug or ID; defaults to the current Organization").option("--no-organization-wake-access", "Do not request Organization Wake access for the selected Binding").action(async (profileName, opts) => {
33426
+ profileCmd.command("create").description("Create an Agent Profile, or an additional Human Profile when enabled.").argument("[profileName]", "OpenMeld profile name").option("--name <profileName>", "OpenMeld profile name").option("--kind <kind>", "Profile kind (agent; human when additional Human Profile creation is enabled)").option("--agent-controller <ref>", "Agent controller for this profile, such as builtin:codex or custom:reviewer").option("--agent-controller-conversation-id <id>", "Private Agent Controller conversation ID for this Agent Profile").option("--model <modelId>", "Model intent for this Agent Profile Binding").option("--reasoning-effort <level>", "Reasoning effort intent for the selected model").option("--agent-controller-permission-mode <policy>", formatAgentControllerPermissionModeHelp()).option("--agent-controller-collaboration-mode <mode>", "Collaboration mode for this Agent Controller, such as codex:default or codex:plan").option("--open-code-permission <json>", "OpenCode permission configuration as a JSON object").option("--confirm-dangerous-agent-controller-permission-mode", "Confirm a dangerous Agent Controller Permission Mode without prompting", false).option("--owner <userId>", "Create for a member from `openmeld org directory --view agent`, or self").option("--computer <computerId>", "Exact Organization-visible Computer for a teammate-owned Agent").option("--project <projectId>", "Default Project for the new Agent").option("--no-default-project", "Let OpenMeld choose the working folder instead of reusing your saved Default Project").option("--session <strategy>", "Session strategy for an owner request: new, resume, or fork", "new").option("--native-session <id>", "Native provider Session ID required for resume or fork").option("--space <spaceId>", "Add the created Agent to this Space").option("--source <source>", "Request source: cli or local-agent", "cli").option("--request-key <key>", "Stable idempotency key for safely retrying an owner request").option("--organization <slugOrId>", "Organization slug or ID; defaults to the current Organization").option("--no-organization-wake-access", "Do not request Organization Wake access for the selected Binding").action(async (profileName, opts) => {
33547
33427
  const outputView = await resolveEffectiveViewForOutput();
33548
33428
  const targetName = (typeof profileName === "string" ? profileName : void 0) ?? opts.name;
33549
33429
  if (outputView === "agent") {
@@ -33555,7 +33435,7 @@ profileCmd.command("create").description("Create an Agent Profile, or an additio
33555
33435
  routeTokens: ["profile", "create"],
33556
33436
  view,
33557
33437
  run: async () => {
33558
- if (typeof opts.owner === "string" || typeof opts.computer === "string" || typeof opts.project === "string" || typeof opts.space === "string" || typeof opts.organization === "string" || typeof opts.agentControllerCollaborationMode === "string" || typeof opts.openCodePermission === "string" || opts.organizationWakeAccess === false) {
33438
+ if (typeof opts.owner === "string" || typeof opts.computer === "string" || typeof opts.project === "string" || opts.defaultProject === false || typeof opts.space === "string" || typeof opts.organization === "string" || typeof opts.agentControllerCollaborationMode === "string" || typeof opts.openCodePermission === "string" || opts.organizationWakeAccess === false) {
33559
33439
  if (typeof opts.kind === "string" && opts.kind.trim().toLowerCase() !== "agent") throw createProfileCreateGuideError("--owner can only create an Agent Profile; pass --kind agent.");
33560
33440
  await runProfileCreationRequestCreate({
33561
33441
  agentController: opts.agentController,
@@ -33571,6 +33451,7 @@ profileCmd.command("create").description("Create an Agent Profile, or an additio
33571
33451
  organization: opts.organization,
33572
33452
  profileName: targetName,
33573
33453
  reasoningLevel: opts.reasoningEffort,
33454
+ ...opts.defaultProject === false ? { reuseSavedDefaultProject: false } : {},
33574
33455
  requestedSpaceId: opts.space,
33575
33456
  sessionStrategy: opts.session,
33576
33457
  source: opts.source,