openmeld 0.3.143 → 0.3.145

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 resolveOpenMeldOrphanedLockIssue, $t as systemDir, A as toSpaceContractUrl, Bt as organizationSkillReleaseDir, Ct as accountProfileViewPath, D as normalizeBaseUrl, E as updateConfiguredStartV1OnboardingState, F as toSpaceDispatchTraceUrl, Ft as openMeldManagedBinaryPath, G as acquireLock, Gt as resolveOpenMeldCliEntryNameFromArgv, Ht as profileViewPath, It as openMeldManagedVersionBinaryPath, J as isOpenMeldOrphanedLockError, Jt as resolveOpenMeldRootDir, K as buildOpenMeldOrphanedLockAction, Kt as resolveOpenMeldEnvPreset, Nt as openMeldBackupsDir, P as toSpaceDispatchLookupUrl, Q as repairOrphanedLegacyLocks, Qt as spacesDir, Rt as openMeldRootDir, S as setConfiguredSkillsConfig, St as accountProfileSpaceCacheDir, Tt as accountsDir, V as toSpaceResultUrl, Vt as profileDir, Z as releaseLockSync, Zt as skillsDir, _t as toRecognizedLocalMachineFailureError, a as resolveBaseUrl, b as setConfiguredBaseUrl, c as resolveExplicitGatewayUrlOrThrow, dt as LocalMachineFailureError, en as formatLocalMachineIssueMessage, et as runWithHeldLock, g as getConfiguredSkillsConfig, gt as isLocalMachineFailureError, ht as createOrphanedSetupConcurrencyIssue, jt as normalizeAccountKey, k as toSpaceBoardUrl, lt as formatLaneScopeSentence, m as getConfiguredOnboardingDisclaimerAcceptedAt, nt as LEGACY_OPENMELD_AGENT_SESSION_ENV_KEY, o as resolveBaseUrlOrNull, ot as resolveCliContext, pt as createActiveSetupConcurrencyIssue, q as isOpenMeldLockError, rt as OPENMELD_CLI_CONTEXT_ENV_KEY, sn as agentControllerConversationRefSchema, u as alignRuntimeConfigStorage, ut as resolveOpenMeldLaneDescriptor, w as updateConfiguredOnboardingConfig } from "./base-url-CY_j4bLH.js";
4
- import { $ as runAgentsManage, $a as resolveAuthenticationGuidanceFromMessage, $i as getCurrentCommandCheckState, $n as assessCliUpdate, $o as outJsonLine, $r as resolveDaemonDeviceId, $t as runSkillsUpdate, A as parseEnvelope, Aa as formatMessage, Ai as createAgentExecutionStatusDisplayRows, An as computeRetryDelayMs, Ao as resolveObservedAgentActivityBinding, Ar as getCommandHintsFromContract, At as emitDaemonAgentOverview, B as resolveHumanControllerDisplayName, Ba as listOpenMeldProfiles, Bn as assertNoRemovedCcSpaceAddressingSyntax, Bo as migrateProjectBindingStore, Br as formatDualViewGuideForDisplay, Bt as readGatewayTextResponse, C as toSpaceMetaUpsertInput, Ca as toStartBackgroundHelperExecutionCompatibility, Ci as resolveAgentProfilePrimaryAgentControllerReport, Cn as resolveCreateProfileKind, Co as resolveUserFacingCliEntryCommand, Cr as createSpaceSubcommandTargetGuideError, Ct as runDaemonStatusFlow, D as formatHumanReadTargetList, Da as renderHumanErrorCard, Di as notifyDaemonRouteCatalogChanged, Dn as formatServiceParticipationReadinessLabel, Do as readAgentActivityContextForPath, Dr as createStartAuthenticationGuideError, Dt as buildProfileWorkspacePresentation, E as buildHumanReplyContextSummary, Ea as buildHumanErrorCopy, Ei as listBuiltinAgentsRegistryEntries, En as ensureAgentProfileRuntimeBinding, Eo as upsertDaemonServiceContract, Er as createStartAgentIdentityGuideError, Et as runDaemonUninstall, F as resolveOpenMeldProfileForSpaceCommand, Fa as requireOpenMeldProfile, Fi as resolveAgentControllerPermissionModeForController, Fn as resolveLocalAgentControllerBlockerReasonCodes, Fo as readAgentActivityOutboxHealth, Fr as registerDaemonControlTargetOptions, Ft as fetchSpaceUpdates, G as runAgentsCustomAdd, Ga as clearSelectedOpenMeldProfileId, Gi as resolveDaemonServiceAlignmentDecision, Gn as buildSpaceRoundReadProjection, Go as canonicalizeLocalProjectPath, Gr as areAllowedActionsEquivalent, Gt as resolveDaemonServiceParticipationStatus, H as resolveAgentProfileSetup, Ha as resolveOpenMeldProfile, Hi as buildOnboardingPlan, Hn as buildDispatchResultReplyWorkflowProjection, Ho as runIfAgentActivityBindingGenerationIsCurrent, Hr as formatAgentOverviewPayload, Ht as parseJsonResponse, I as emitSpaceAgentOverview, Ia as resolveOpenMeldProfileOrNull, Ii as resolveAgentExecutionStatus, In as resolveLocalAgentControllerLaunchability, Io as removeProjectOutbox, Ir as registerAuthLoginRequestOptions, It as createCliSpaceApi, J as runAgentsCustomUpdate, Ja as buildAgentAuthenticationGuide, Ji as resolveServiceUpdateUrgency, Jn as formatRemovedCcRelationMessage, Jo as renderInfoCard, Jr as readPendingOpenMeldToolsUpdateAttempt, Jt as collectSkillsReadinessSnapshot, K as runAgentsCustomList, Ka as getSelectedOpenMeldProfileId, Ki as classifyDaemonServiceRunStartability, Kn as buildUpdatesReplyWorkflowProjection, Ko as enqueueControllerTaskLifecycleEventWhileLocked, Kr as buildAgentFacingPublicationModeGuideLines, Kt as runDaemonServiceParticipationGate, L as emitSpaceCliAgentOverview, La as createOpenMeldAgentProfile, Li as resolveAgentProfileEditCapabilities, Ln as resolveLocalAgentControllerReportDecision, Lo as bindProject, Lr as registerBuiltinAgentSelectionOptions, Lt as fetchSpaceMeta, M as assertFullSignalIdArgument, Ma as resolveRuntimeContext, Mi as getAgentControllerPermissionModeFieldLabel, Mn as submitRuntimeAgentControllerReport, Mo as readCodexSessionTitles, Mr as SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS, Mt as shouldEmitAgentOverview, N as assertValidSpaceIdTarget, Na as resolveViewProfileKey, Ni as listAgentControllerPermissionModeOptions, Nn as submitRuntimeAgentControllerReports, No as enqueueAgentActivityHookEvent, Nr as registerSkillsTargetSelectionOptions, Nt as runDaemonStartupPreflight, O as resolveLinkAccessLabel, Oa as renderHumanTextErrorCard, Oi as resolveLocalRegistryAgentIdFromAgentControllerRef, On as resolveServiceParticipationReadiness, Oo as removeAgentActivityContextCache, Or as createUpgradeConfirmationGuideError, Ot as buildProfileWorkspaceRows, P as prepareAuthenticatedSpaceCommandContext, Pa as isSelectedOpenMeldProfileRequiredError, Pi as parseAgentControllerRef, Pn as collectLocalAgentControllerInventory, Po as removeProjectInbox, Pr as getCliVersionInfo, Pt as readDaemonStartFailureLogTailLines, Q as runAgentsList, Qa as resolveAuthenticationGuidanceFromError, Qi as finishCurrentCommandCheckScope, Qn as runInteractivePrompt, Qo as errLine, Qr as ensureDaemonRuntimePaths, Qt as runSkillsUninstall, R as prepareLocalAgentReadiness, Ra as createOpenMeldHumanProfile, Ri as resolveEvidenceSyncHealth, Rn as inspectSpaceCacheFile, Ro as listProjectBindings, Rr as buildAgentOverviewFromContract, Rt as updateSpaceMeta, S as loadSpaceSignalIndexOrNull, Sa as resolveDaemonRuntimeContractCompatibility, Si as createPrimaryBindingReadSession, Sn as createProfileByKind, So as resolveSetupFollowUpCliEntryCommand, Sr as createSpaceResultGuideError, St as runDaemonSnapshot, T as buildFormalSignalReadPayload, Ta as OPENMELD_VERSION, Ti as reconcileNewRunnableBuiltinAgentsForSetup, Tn as promptTextEntry, To as readDaemonServiceContract, Tr as createSpaceUpdatesGuideError, Tt as runDaemonTeardownStrict, U as runAgents, Ua as updateOpenMeldProfile, Ui as getSetupFlowCopy, Un as buildSignalIndex, Uo as setDefaultProjectConnection, Ur as OPENMELD_AGENT_MENTAL_MODEL_LINES, Ut as resolveLocalComponentsStatus, V as persistAgentTransportSelection, Va as primeOpenMeldProfilesSessionCache, Vi as buildDaemonRouteObservationPresentation$1, Vn as buildDispatchResultMessageReadProjection, Vo as removeProjectConnection, Vr as buildDualViewGuideMessage, Vt as toStructuredGatewayFailure, W as runAgentsConfig, Wa as alignSelectedOpenMeldProfileStorage, Wi as buildDaemonServiceTargetSpec, Wn as buildSignalMessageReadProjection, Wo as unbindProject, Wr as SPACE_CONTRACT_ALLOWED_ACTION_ORDER, Wt as writeInstalledLocalComponentsSnapshot, X as runAgentsDisable, Xa as createAuthenticationError, Xi as resolveOpenMeldEnvironmentTarget, Xn as promptSearchSelect, Xo as sanitizeTerminalDisplayText, Xr as runPendingDaemonServiceUpdate, Xt as runSkillsEnsure, Y as runAgentsDetect, Ya as buildHumanAuthenticationCard, Yi as assessServerRequiredVersion, Yn as promptSearchMultiselect, Yo as renderTextInfoCard, Yr as readOpenMeldToolsUpdateContextFromEnv, Yt as runSkillsCheck$1, Z as runAgentsEnable, Za as resolveAuthenticationGuidance, Zi as resolveAuthBaseUrl, Zn as isReturnKeypress, Zo as emitCliJsonEnvelope, Zr as scheduleDaemonServiceUpdate, Zt as runSkillsInstall, _ as runSpaceWriteWithPasswordRetry, _a as ensureVersionStateReady, _i as setCustomProfileWorkspace, _n as fetchAuthUserSnapshot, _o as formatOpenMeldCliCommand, _r as createSpaceContractSetGuideError, _t as runDaemonCancel, a as runSpaceDelete, aa as readCurrentDaemonRuntimeContext, ai as formatDeviceReplyReadinessLabel, an as buildCommandAuthenticationPromptMessage, ao as requestLocalAgentActivitySync, ar as formatElapsedTime, as as cliJsonSkillsShowEnvelopeSchema, at as printOpenMeldBanner, b as buildIdentityOnlyMembersSnapshotForReadProjection, ba as readVersionState, bi as describeProfileWorkspacePathValidationFailure, bn as resolveDeviceTokenExpiresAt, bo as formatOpenMeldCliTextBlock, br as createSpacePublicationSetGuideError, bt as runDaemonReinstall, c as runSpaceLeave, ca as isDaemonServiceJobNeverSpawned, ci as resolveGatewayChainReadiness, cn as runAuthLogin, co as resolveAgentActivityRouteForPath, cr as formatDaemonServiceMissingRecommendation, cs as revokeOrganizationJoinLinkResponseSchema, ct as renderOpenMeldLogo, d as runSpaceRemoveMembers, da as readRecentDaemonLifecycleEvents, di as createModelCatalogReadSession, dn as runAuthStatus, do as defaultManagedIntegrationPaths, dr as createProfileActionGuideError, dt as resolveSpaceWebGatewayOrigin, ea as isCurrentCommandCheckScopeActive, ei as formatDaemonFailureContextText, en as ensureLocalSkills, eo as getProfileDefaultView, er as isCliUpdateCheckApplicable, es as outLine, et as runAgentsRepair, f as runSpaceSend, fa as buildInstallSelfJsonPayload, fi as resolveProfileWorkspaceRuntime, fn as exchangeOneTimeTokenAuthSession, fo as installAgentActivityIntegrations, fr as createProfileCreateGuideError, ft as resolveSpaceSendText, g as runSpaceReadWithPasswordRetry, ga as compareSemver, gi as resolveConfiguredProfileWorkspacePath, gn as extractAuthApiErrorMessage, go as formatInlineOpenMeldCliCommands, gr as createSpaceAliasTargetGuideError, gt as runDaemonBackgroundStartForDecision, h as uploadPreparedSpaceFiles, ha as buildNextVersionState, hi as readProfileWorkspaceConfig, hn as formatActiveOrganizationLabel, ho as uninstallAgentActivityIntegrations, hr as createSpaceAddMembersGuideError, ht as runDaemonAutostart, i as runSpaceCreate, ia as resolveVersionChangeDirection, ii as formatAgentReplyReadinessLabel, in as connectWebSocket, io as LocalDaemonControlPlaneClientError, ir as writeDispatchSpaceActionRecord, is as cliJsonSkillsLoadEnvelopeSchema, it as colorizeDisplayProfileLabel, j as isSpaceCommandOutputHandledError, ja as parseCliViewMode, ji as getAgentControllerPermissionModeDisplayMetadata, jn as submitProfileRuntimeAgentControllerReport, jo as normalizeSharedSessionTitle, jr as registerSpaceMemberSelectionOptions, jt as createDelayedSpinner, k as resolveOrganizationVisibilityLabel, ka as createPresenter, ki as buildAgentControllerRef, kn as assessActionParticipationCandidate, ko as buildAgentActivityEvent, kr as getCommandEntryContract, kt as reconcileCliVersionView, l as runSpaceList, la as readDaemonServiceJobCrashExitCode, li as resolveOpenClawLocalDiagnosticsValue, ln as runAuthLogout, lo as unregisterAgentActivityRoute, lr as canUseInteractivePrompts, ls as compareAgentControllerRefsForDisplay, lt as renderOpenMeldTagline, m as prepareRequestedSpaceSendFiles, ma as readPendingDaemonServiceUpdate, mi as normalizeCustomProfileWorkspacePath, mn as buildAuthStatusSnapshot, mo as resolveAgentActivityDispatcherCommand, mr as createResetConfirmationGuideError, mt as runDaemon, n as promptAndConfirmSpacePassword, na as startCurrentCommandCheckScope, ni as resolveDaemonServiceFreshnessWarning, nn as readRuntimeReportingHealthState, no as LocalProjectConnectionError, nr as readDispatchOwnedRuntimeGuard, ns as cliJsonOutputEnvelopeSchema, nt as formatTransportModeDisplay, o as runSpaceHistory, oa as readCurrentObservedDaemonRuntimeStatus, oi as formatHumanReplyReadinessReason$1, on as ensureCommandAuthenticationOrCancel, oo as isAgentActivityRouteRegistered, or as resolveElapsedTimeMs, os as getOrganizationJoinLinkResponseSchema, ot as renderOpenMeldBrandBlockLines, p as runSpaceWatch, pa as performManagedInstall, pi as ensureOpenMeldManagedProfileWorkspace, pn as buildAuthStatusRows, po as readAgentActivityIntegrationStatus, pr as createProfileMenuGuideError, pt as bestEffortStopCurrentLaneDaemonService, q as runAgentsCustomRemove, qa as setSelectedOpenMeldProfileId, qi as classifyDaemonServiceWakeability, qn as createSpaceMemberIdentityIndex, qo as readControllerTaskLifecycleOutboxHealth, qr as canonicalizeAllowedActions, qt as runDaemonStartDecisionPrompt, r as runSpaceAddMembers, ra as inspectDaemonServiceInventory, ri as resolveCurrentReplyReadinessSnapshot, rn as readRecentDaemonDispatchJournalEvents, ro as validateLocalProjectConnectionPath, rr as readDispatchSpaceActionContextFromEnv, rs as cliJsonSkillsListEnvelopeSchema, rt as colorizeAgentLabel, s as runSpaceJoin, sa as getDaemonSystemServiceLogPath, si as mapAgentReplyReadinessToLegacyAutoReply, sn as evaluateCommandAuthentication, so as registerAgentActivityRoute, sr as formatDaemonServiceDowngradeBlockedRecommendation, ss as organizationJoinLinkErrorResponseSchema, st as renderOpenMeldHeader, t as buildCreateSpacePasswordPromptConfig, ta as resetCurrentCommandCheckState, ti as resolveServiceReadinessFromServiceStatus, tn as readBundledOpenMeldCliSkillDocumentByPath, to as setProfileDefaultView, tr as assertDispatchOwnedRuntimePublicWriteAllowed, ts as cliBinaryDeltaPatchSchema, tt as runAgentsShow, u as runSpacePassword, ua as resolveDaemonServiceManager, ui as syncProfileWorkspaceState, un as runAuthMenu, ur as createDoctorFailedGuideError, ut as resolveGatewayWebOrigin, v as buildHumanReadSignalsTranscriptItems, va as fetchLatestCliBinaryRelease, vi as setOpenMeldManagedProfileWorkspace, vn as requestDeviceToken, vo as formatOpenMeldCliCommands, vr as createSpaceLeaveGuideError, vt as runDaemonInstall, w as buildFormalDispatchResultReadPayload, wa as resolveCurrentDaemonExpectedVersion, wi as listAgentTargetStates, wn as resolveCreateProfileName, wo as syncLocalAgentActivity, wr as createSpaceTargetGuideError, wt as runDaemonStop, x as loadSpaceIdentityDirectoryOrNull, xa as writeVersionState, xi as syncDeviceRuntimeStateProjection, xn as revokeAuthAccessToken, xo as formatProfileAwareOpenMeldCliCommands, xr as createSpaceRemoveMembersGuideError, xt as runDaemonRunAfterEntryChecks, y as emitHumanReadSignalsTextProjection, ya as fetchLatestPackageInfo, yi as validateCustomProfileWorkspacePath, yn as resolveDeviceAuthClientId, yo as formatOpenMeldCliLine, yr as createSpaceMenuGuideError, yt as runDaemonInterrupt, z as buildReplyReadinessGuidance, za as deleteOpenMeldProfile, zi as resolveNativeAgentControllerPermissionModeForController, zn as upsertSpaceConfig, zo as listProjectConnectionsWithStatus, zr as DualViewGuideError, zt as readGatewayJsonResponse } from "./command-BEEdETJ8.js";
4
+ import { $ as runAgentsManage, $a as resolveAuthenticationGuidanceFromMessage, $i as getCurrentCommandCheckState, $n as assessCliUpdate, $o as outJsonLine, $r as resolveDaemonDeviceId, $t as runSkillsUpdate, A as parseEnvelope, Aa as formatMessage, Ai as createAgentExecutionStatusDisplayRows, An as computeRetryDelayMs, Ao as resolveObservedAgentActivityBinding, Ar as getCommandHintsFromContract, At as emitDaemonAgentOverview, B as resolveHumanControllerDisplayName, Ba as listOpenMeldProfiles, Bn as assertNoRemovedCcSpaceAddressingSyntax, Bo as migrateProjectBindingStore, Br as formatDualViewGuideForDisplay, Bt as readGatewayTextResponse, C as toSpaceMetaUpsertInput, Ca as toStartBackgroundHelperExecutionCompatibility, Ci as resolveAgentProfilePrimaryAgentControllerReport, Cn as resolveCreateProfileKind, Co as resolveUserFacingCliEntryCommand, Cr as createSpaceSubcommandTargetGuideError, Ct as runDaemonStatusFlow, D as formatHumanReadTargetList, Da as renderHumanErrorCard, Di as notifyDaemonRouteCatalogChanged, Dn as formatServiceParticipationReadinessLabel, Do as readAgentActivityContextForPath, Dr as createStartAuthenticationGuideError, Dt as buildProfileWorkspacePresentation, E as buildHumanReplyContextSummary, Ea as buildHumanErrorCopy, Ei as listBuiltinAgentsRegistryEntries, En as ensureAgentProfileRuntimeBinding, Eo as upsertDaemonServiceContract, Er as createStartAgentIdentityGuideError, Et as runDaemonUninstall, F as resolveOpenMeldProfileForSpaceCommand, Fa as requireOpenMeldProfile, Fi as resolveAgentControllerPermissionModeForController, Fn as resolveLocalAgentControllerBlockerReasonCodes, Fo as readAgentActivityOutboxHealth, Fr as registerDaemonControlTargetOptions, Ft as fetchSpaceUpdates, G as runAgentsCustomAdd, Ga as clearSelectedOpenMeldProfileId, Gi as resolveDaemonServiceAlignmentDecision, Gn as buildSpaceRoundReadProjection, Go as canonicalizeLocalProjectPath, Gr as areAllowedActionsEquivalent, Gt as resolveDaemonServiceParticipationStatus, H as resolveAgentProfileSetup, Ha as resolveOpenMeldProfile, Hi as buildOnboardingPlan, Hn as buildDispatchResultReplyWorkflowProjection, Ho as runIfAgentActivityBindingGenerationIsCurrent, Hr as formatAgentOverviewPayload, Ht as parseJsonResponse, I as emitSpaceAgentOverview, Ia as resolveOpenMeldProfileOrNull, Ii as resolveAgentExecutionStatus, In as resolveLocalAgentControllerLaunchability, Io as removeProjectOutbox, Ir as registerAuthLoginRequestOptions, It as createCliSpaceApi, J as runAgentsCustomUpdate, Ja as buildAgentAuthenticationGuide, Ji as resolveServiceUpdateUrgency, Jn as formatRemovedCcRelationMessage, Jo as renderInfoCard, Jr as readPendingOpenMeldToolsUpdateAttempt, Jt as collectSkillsReadinessSnapshot, K as runAgentsCustomList, Ka as getSelectedOpenMeldProfileId, Ki as classifyDaemonServiceRunStartability, Kn as buildUpdatesReplyWorkflowProjection, Ko as enqueueControllerTaskLifecycleEventWhileLocked, Kr as buildAgentFacingPublicationModeGuideLines, Kt as runDaemonServiceParticipationGate, L as emitSpaceCliAgentOverview, La as createOpenMeldAgentProfile, Li as resolveAgentProfileEditCapabilities, Ln as resolveLocalAgentControllerReportDecision, Lo as bindProject, Lr as registerBuiltinAgentSelectionOptions, Lt as fetchSpaceMeta, M as assertFullSignalIdArgument, Ma as resolveRuntimeContext, Mi as getAgentControllerPermissionModeFieldLabel, Mn as submitRuntimeAgentControllerReport, Mo as readCodexSessionTitles, Mr as SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS, Mt as shouldEmitAgentOverview, N as assertValidSpaceIdTarget, Na as resolveViewProfileKey, Ni as listAgentControllerPermissionModeOptions, Nn as submitRuntimeAgentControllerReports, No as enqueueAgentActivityHookEvent, Nr as registerSkillsTargetSelectionOptions, Nt as runDaemonStartupPreflight, O as resolveLinkAccessLabel, Oa as renderHumanTextErrorCard, Oi as resolveLocalRegistryAgentIdFromAgentControllerRef, On as resolveServiceParticipationReadiness, Oo as removeAgentActivityContextCache, Or as createUpgradeConfirmationGuideError, Ot as buildProfileWorkspaceRows, P as prepareAuthenticatedSpaceCommandContext, Pa as isSelectedOpenMeldProfileRequiredError, Pi as parseAgentControllerRef, Pn as collectLocalAgentControllerInventory, Po as removeProjectInbox, Pr as getCliVersionInfo, Pt as readDaemonStartFailureLogTailLines, Q as runAgentsList, Qa as resolveAuthenticationGuidanceFromError, Qi as finishCurrentCommandCheckScope, Qn as runInteractivePrompt, Qo as errLine, Qr as ensureDaemonRuntimePaths, Qt as runSkillsUninstall, R as prepareLocalAgentReadiness, Ra as createOpenMeldHumanProfile, Ri as resolveEvidenceSyncHealth, Rn as inspectSpaceCacheFile, Ro as listProjectBindings, Rr as buildAgentOverviewFromContract, Rt as updateSpaceMeta, S as loadSpaceSignalIndexOrNull, Sa as resolveDaemonRuntimeContractCompatibility, Si as createPrimaryBindingReadSession, Sn as createProfileByKind, So as resolveSetupFollowUpCliEntryCommand, Sr as createSpaceResultGuideError, St as runDaemonSnapshot, T as buildFormalSignalReadPayload, Ta as OPENMELD_VERSION, Ti as reconcileNewRunnableBuiltinAgentsForSetup, Tn as promptTextEntry, To as readDaemonServiceContract, Tr as createSpaceUpdatesGuideError, Tt as runDaemonTeardownStrict, U as runAgents, Ua as updateOpenMeldProfile, Ui as getSetupFlowCopy, Un as buildSignalIndex, Uo as setDefaultProjectConnection, Ur as OPENMELD_AGENT_MENTAL_MODEL_LINES, Ut as resolveLocalComponentsStatus, V as persistAgentTransportSelection, Va as primeOpenMeldProfilesSessionCache, Vi as buildDaemonRouteObservationPresentation$1, Vn as buildDispatchResultMessageReadProjection, Vo as removeProjectConnection, Vr as buildDualViewGuideMessage, Vt as toStructuredGatewayFailure, W as runAgentsConfig, Wa as alignSelectedOpenMeldProfileStorage, Wi as buildDaemonServiceTargetSpec, Wn as buildSignalMessageReadProjection, Wo as unbindProject, Wr as SPACE_CONTRACT_ALLOWED_ACTION_ORDER, Wt as writeInstalledLocalComponentsSnapshot, X as runAgentsDisable, Xa as createAuthenticationError, Xi as resolveOpenMeldEnvironmentTarget, Xn as promptSearchSelect, Xo as sanitizeTerminalDisplayText, Xr as runPendingDaemonServiceUpdate, Xt as runSkillsEnsure, Y as runAgentsDetect, Ya as buildHumanAuthenticationCard, Yi as assessServerRequiredVersion, Yn as promptSearchMultiselect, Yo as renderTextInfoCard, Yr as readOpenMeldToolsUpdateContextFromEnv, Yt as runSkillsCheck$1, Z as runAgentsEnable, Za as resolveAuthenticationGuidance, Zi as resolveAuthBaseUrl, Zn as isReturnKeypress, Zo as emitCliJsonEnvelope, Zr as scheduleDaemonServiceUpdate, Zt as runSkillsInstall, _ as runSpaceWriteWithPasswordRetry, _a as ensureVersionStateReady, _i as setCustomProfileWorkspace, _n as fetchAuthUserSnapshot, _o as formatOpenMeldCliCommand, _r as createSpaceContractSetGuideError, _t as runDaemonCancel, a as runSpaceDelete, aa as readCurrentDaemonRuntimeContext, ai as formatDeviceReplyReadinessLabel, an as buildCommandAuthenticationPromptMessage, ao as requestLocalAgentActivitySync, ar as formatElapsedTime, as as cliJsonSkillsShowEnvelopeSchema, at as printOpenMeldBanner, b as buildIdentityOnlyMembersSnapshotForReadProjection, ba as readVersionState, bi as describeProfileWorkspacePathValidationFailure, bn as resolveDeviceTokenExpiresAt, bo as formatOpenMeldCliTextBlock, br as createSpacePublicationSetGuideError, bt as runDaemonReinstall, c as runSpaceLeave, ca as isDaemonServiceJobNeverSpawned, ci as resolveGatewayChainReadiness, cn as runAuthLogin, co as resolveAgentActivityRouteForPath, cr as formatDaemonServiceMissingRecommendation, cs as revokeOrganizationJoinLinkResponseSchema, ct as renderOpenMeldLogo, d as runSpaceRemoveMembers, da as readRecentDaemonLifecycleEvents, di as createModelCatalogReadSession, dn as runAuthStatus, do as defaultManagedIntegrationPaths, dr as createProfileActionGuideError, dt as resolveSpaceWebGatewayOrigin, ea as isCurrentCommandCheckScopeActive, ei as formatDaemonFailureContextText, en as ensureLocalSkills, eo as getProfileDefaultView, er as isCliUpdateCheckApplicable, es as outLine, et as runAgentsRepair, f as runSpaceSend, fa as buildInstallSelfJsonPayload, fi as resolveProfileWorkspaceRuntime, fn as exchangeOneTimeTokenAuthSession, fo as installAgentActivityIntegrations, fr as createProfileCreateGuideError, ft as resolveSpaceSendText, g as runSpaceReadWithPasswordRetry, ga as compareSemver, gi as resolveConfiguredProfileWorkspacePath, gn as extractAuthApiErrorMessage, go as formatInlineOpenMeldCliCommands, gr as createSpaceAliasTargetGuideError, gt as runDaemonBackgroundStartForDecision, h as uploadPreparedSpaceFiles, ha as buildNextVersionState, hi as readProfileWorkspaceConfig, hn as formatActiveOrganizationLabel, ho as uninstallAgentActivityIntegrations, hr as createSpaceAddMembersGuideError, ht as runDaemonAutostart, i as runSpaceCreate, ia as resolveVersionChangeDirection, ii as formatAgentReplyReadinessLabel, in as connectWebSocket, io as LocalDaemonControlPlaneClientError, ir as writeDispatchSpaceActionRecord, is as cliJsonSkillsLoadEnvelopeSchema, it as colorizeDisplayProfileLabel, j as isSpaceCommandOutputHandledError, ja as parseCliViewMode, ji as getAgentControllerPermissionModeDisplayMetadata, jn as submitProfileRuntimeAgentControllerReport, jo as normalizeSharedSessionTitle, jr as registerSpaceMemberSelectionOptions, jt as createDelayedSpinner, k as resolveOrganizationVisibilityLabel, ka as createPresenter, ki as buildAgentControllerRef, kn as assessActionParticipationCandidate, ko as buildAgentActivityEvent, kr as getCommandEntryContract, kt as reconcileCliVersionView, l as runSpaceList, la as readDaemonServiceJobCrashExitCode, li as resolveOpenClawLocalDiagnosticsValue, ln as runAuthLogout, lo as unregisterAgentActivityRoute, lr as canUseInteractivePrompts, ls as compareAgentControllerRefsForDisplay, lt as renderOpenMeldTagline, m as prepareRequestedSpaceSendFiles, ma as readPendingDaemonServiceUpdate, mi as normalizeCustomProfileWorkspacePath, mn as buildAuthStatusSnapshot, mo as resolveAgentActivityDispatcherCommand, mr as createResetConfirmationGuideError, mt as runDaemon, n as promptAndConfirmSpacePassword, na as startCurrentCommandCheckScope, ni as resolveDaemonServiceFreshnessWarning, nn as readRuntimeReportingHealthState, no as LocalProjectConnectionError, nr as readDispatchOwnedRuntimeGuard, ns as cliJsonOutputEnvelopeSchema, nt as formatTransportModeDisplay, o as runSpaceHistory, oa as readCurrentObservedDaemonRuntimeStatus, oi as formatHumanReplyReadinessReason$1, on as ensureCommandAuthenticationOrCancel, oo as isAgentActivityRouteRegistered, or as resolveElapsedTimeMs, os as getOrganizationJoinLinkResponseSchema, ot as renderOpenMeldBrandBlockLines, p as runSpaceWatch, pa as performManagedInstall, pi as ensureOpenMeldManagedProfileWorkspace, pn as buildAuthStatusRows, po as readAgentActivityIntegrationStatus, pr as createProfileMenuGuideError, pt as bestEffortStopCurrentLaneDaemonService, q as runAgentsCustomRemove, qa as setSelectedOpenMeldProfileId, qi as classifyDaemonServiceWakeability, qn as createSpaceMemberIdentityIndex, qo as readControllerTaskLifecycleOutboxHealth, qr as canonicalizeAllowedActions, qt as runDaemonStartDecisionPrompt, r as runSpaceAddMembers, ra as inspectDaemonServiceInventory, ri as resolveCurrentReplyReadinessSnapshot, rn as readRecentDaemonDispatchJournalEvents, ro as validateLocalProjectConnectionPath, rr as readDispatchSpaceActionContextFromEnv, rs as cliJsonSkillsListEnvelopeSchema, rt as colorizeAgentLabel, s as runSpaceJoin, sa as getDaemonSystemServiceLogPath, si as mapAgentReplyReadinessToLegacyAutoReply, sn as evaluateCommandAuthentication, so as registerAgentActivityRoute, sr as formatDaemonServiceDowngradeBlockedRecommendation, ss as organizationJoinLinkErrorResponseSchema, st as renderOpenMeldHeader, t as buildCreateSpacePasswordPromptConfig, ta as resetCurrentCommandCheckState, ti as resolveServiceReadinessFromServiceStatus, tn as readBundledOpenMeldCliSkillDocumentByPath, to as setProfileDefaultView, tr as assertDispatchOwnedRuntimePublicWriteAllowed, ts as cliBinaryDeltaPatchSchema, tt as runAgentsShow, u as runSpacePassword, ua as resolveDaemonServiceManager, ui as syncProfileWorkspaceState, un as runAuthMenu, ur as createDoctorFailedGuideError, ut as resolveGatewayWebOrigin, v as buildHumanReadSignalsTranscriptItems, va as fetchLatestCliBinaryRelease, vi as setOpenMeldManagedProfileWorkspace, vn as requestDeviceToken, vo as formatOpenMeldCliCommands, vr as createSpaceLeaveGuideError, vt as runDaemonInstall, w as buildFormalDispatchResultReadPayload, wa as resolveCurrentDaemonExpectedVersion, wi as listAgentTargetStates, wn as resolveCreateProfileName, wo as syncLocalAgentActivity, wr as createSpaceTargetGuideError, wt as runDaemonStop, x as loadSpaceIdentityDirectoryOrNull, xa as writeVersionState, xi as syncDeviceRuntimeStateProjection, xn as revokeAuthAccessToken, xo as formatProfileAwareOpenMeldCliCommands, xr as createSpaceRemoveMembersGuideError, xt as runDaemonRunAfterEntryChecks, y as emitHumanReadSignalsTextProjection, ya as fetchLatestPackageInfo, yi as validateCustomProfileWorkspacePath, yn as resolveDeviceAuthClientId, yo as formatOpenMeldCliLine, yr as createSpaceMenuGuideError, yt as runDaemonInterrupt, z as buildReplyReadinessGuidance, za as deleteOpenMeldProfile, zi as resolveNativeAgentControllerPermissionModeForController, zn as upsertSpaceConfig, zo as listProjectConnectionsWithStatus, zr as DualViewGuideError, zt as readGatewayJsonResponse } from "./command-C93tfru0.js";
5
5
  import { At as submitFeedbackIssueRequestSchema, D as toStructuredApiClientFailure, Et as authProfileManagedRoleSchema, F as OPENMELD_HEADER_PROFILE_ID, G as SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER, Ht as agentActivityProviderSchema, J as spaceDispatchTraceAttemptStatusSchema, K as projectSpaceDispatchTraceFinalVisibleOutcome, Q as projectObservabilityWakeCorrelation, R as OPENMELD_HEADER_SPACE_ADDRESSING_VERSION, Tt as authProfileKindSchema, Ut as agentActivitySessionStatusSchema, V as sleep, Wt as agentActivitySnapshotQuerySchema, X as spaceDispatchTraceResponseSchema, Y as spaceDispatchTraceDispatchStatusSchema, Z as observabilityWakeTraceSelectorSchema, _ as createOrganizationSkillsApi, _n as startReplyReadinessSummarySchema, b as createProjectsApi, c as createAgentProfileBindingApi, d as createCurrentDeviceApi, en as agentActivityInventorySessionOriginSchema, et as ownerComputerDiagnosticsSchema, f as createFeedbackApi, g as createOrganizationApi, gn as START_TRIMMED_NON_EMPTY_STRING_SCHEMA, hn as START_ISO_DATE_TIME_SCHEMA, in as localAgentSessionProviderSchema, it as agentProfileCreationConfigurationSchema, l as createCenterAgentApi, mn as START_BOUNDED_VERSION_SCHEMA, nn as agentActivitySessionInventoryQuerySchema, nt as summarizeComputerFileAccessPolicy, pn as START_BOUNDED_ID_SCHEMA, q as resolveSpaceDispatchTraceRootCause, rt as DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION, s as createAgentActivityApi, tn as agentActivityInventorySessionStatusSchema, tt as projectOwnerComputerLocalRuntimes, u as createComputerFileAccessApi, v as createPrepareReadinessApi, vn as localAgentCatalogSchema, vt as organizationSkillBundleSchema, x as createRoutinesApi, xt as stringifyOrganizationSkillBundleCanonicalJson } from "./dist-QiJwpnJk.js";
6
6
  import { Ar as clientMessageIdSchema, Dn as messageEnvelopeSchema, Er as unknown, Ft as spaceStatusSchema, Ht as isSpaceFileTextEditable, It as centerAgentInteractionSourceSchema, Kt as resolveSpaceFileMimeType, Sr as string, Tr as union, Zr as openMeldProfileIdSchema, br as record, di as trimmedStringFromUnknown, dr as enumFactory, fr as int, gr as nullFactory, hn as spaceContractSchema, li as nonEmptyTrimmedStringFromUnknown, ln as dispatchExecutionSchema, lr as discriminatedUnion, mn as spaceContractFieldsSchema, mr as literal, ni as openMeldRuntimeProfileIdSchema, or as array, pr as iso, sr as boolean, un as spaceThreadContextSchema, vr as object, xr as strictObject } from "./runtime-transport-QslOj6uZ.js";
7
7
  import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
@@ -11361,6 +11361,18 @@ async function runProfileShow(input) {
11361
11361
  return;
11362
11362
  }
11363
11363
  const primaryBinding = await resolveProfileShowPrimaryBinding(profile);
11364
+ if (input.details !== true) {
11365
+ presenter.line({
11366
+ code: "profile.show",
11367
+ text: `profile: ${profile.openMeldProfileId}`,
11368
+ data: buildCompactAgentProfileData({
11369
+ agentRuntimeState,
11370
+ primaryBinding,
11371
+ profile
11372
+ })
11373
+ });
11374
+ return;
11375
+ }
11364
11376
  presenter.line({
11365
11377
  code: "profile.show",
11366
11378
  text: `profile: ${profile.openMeldProfileId}`,
@@ -11844,6 +11856,22 @@ async function runProfileUpdate(input) {
11844
11856
  });
11845
11857
  return;
11846
11858
  }
11859
+ const primaryBinding = await resolveProfileShowPrimaryBinding(updated);
11860
+ if (input.details !== true) {
11861
+ presenter.line({
11862
+ code: "profile.updated",
11863
+ text: `updated profile: ${updated.openMeldProfileId}`,
11864
+ data: {
11865
+ ...buildCompactAgentProfileData({
11866
+ agentRuntimeState,
11867
+ primaryBinding,
11868
+ profile: updated
11869
+ }),
11870
+ updatedFields: payload.updatedFields
11871
+ }
11872
+ });
11873
+ return;
11874
+ }
11847
11875
  presenter.line({
11848
11876
  code: "profile.updated",
11849
11877
  text: `updated profile: ${updated.openMeldProfileId}`,
@@ -11855,13 +11883,39 @@ async function runProfileUpdate(input) {
11855
11883
  profileKind: updated.profileKind,
11856
11884
  ownerUserId: updated.ownerUserId,
11857
11885
  updatedFields: payload.updatedFields,
11858
- binding: buildAgentProfileBindingData(await resolveProfileShowPrimaryBinding(updated)),
11886
+ binding: buildAgentProfileBindingData(primaryBinding),
11859
11887
  ...buildAgentProfileStateData(updated),
11860
11888
  ...buildAgentProfileRuntimeData(agentRuntimeState),
11861
11889
  nextSteps: buildAgentUpdateNextSteps(updated)
11862
11890
  }
11863
11891
  });
11864
11892
  }
11893
+ function buildCompactAgentProfileData(input) {
11894
+ const binding = buildAgentProfileBindingData(input.primaryBinding);
11895
+ const runtime = buildAgentProfileRuntimeData(input.agentRuntimeState);
11896
+ return {
11897
+ profile: input.profile.openMeldProfileId,
11898
+ openMeldProfileId: input.profile.openMeldProfileId,
11899
+ profileName: input.profile.profileName,
11900
+ profileKind: input.profile.profileKind,
11901
+ status: input.profile.status,
11902
+ binding: binding ? {
11903
+ agentControllerRef: binding.agentControllerRef,
11904
+ agentControllerConversationId: binding.agentControllerConversationId,
11905
+ agentControllerPermissionMode: binding.agentControllerPermissionMode,
11906
+ bindingState: binding.bindingState,
11907
+ routable: binding.routable,
11908
+ modelSelection: binding.modelSelection
11909
+ } : null,
11910
+ replyReadiness: runtime.replyReadiness ?? null,
11911
+ workspace: runtime.workspace ? {
11912
+ status: runtime.workspace.status,
11913
+ configuredWorkspace: runtime.workspace.configuredWorkspace,
11914
+ effectiveRuntimeWorkingDirectory: runtime.workspace.effectiveRuntimeWorkingDirectory
11915
+ } : null,
11916
+ nextAction: formatOpenMeldCliCommand(`openmeld profiles show ${input.profile.openMeldProfileId} --details --view agent`)
11917
+ };
11918
+ }
11865
11919
  async function resolveProfileUpdateSelection(input) {
11866
11920
  while (true) {
11867
11921
  const profileId = await resolveProfileIdForUpdate({
@@ -27311,6 +27365,7 @@ async function runSpaceAddMe(input) {
27311
27365
  if (detectedSubject.kind === "codex_missing_thread") throw new Error("This looks like Codex, but OpenMeld cannot find CODEX_THREAD_ID. `openmeld space add-me` will not pretend to bind an unknown Codex thread. Open this task in a Codex Desktop session that exposes CODEX_THREAD_ID, or run the command from a non-Codex shell to use the Human Profile path.");
27312
27366
  const addMembers = input.addMembers ?? runDefaultSpaceAddMeMembership;
27313
27367
  if (detectedSubject.kind === "human") {
27368
+ if (normalizeOptionalString(input.agentProfile)) throw new Error("--agent-profile can only be used when OpenMeld detects a supported local agent controller.");
27314
27369
  if (modelSelection.hasAnyModelSelectionInput) throw new Error("--model is only used when OpenMeld detects a local agent controller. Human Profile membership does not use a model selection.");
27315
27370
  if (collectProjectFolderCandidates(input.projectFolders).length > 0) throw new Error("--project-folder is only used when OpenMeld detects a local agent controller. Human Profile membership does not use a Project folder.");
27316
27371
  if (actorProfile.profileKind !== "human") throw new Error(`No current local agent controller was detected, so add-me is using the Human Profile path. Profile ${actorProfile.openMeldProfileId} is an Agent Profile; pass a Human Profile with --profile or run from a supported agent controller.`);
@@ -27365,13 +27420,29 @@ async function runSpaceAddMe(input) {
27365
27420
  spaceId: target.spaceId,
27366
27421
  text: `Preparing ${detectedSubject.label} Agent Profile before the Space membership write...`,
27367
27422
  operation: async () => await ensureCurrentAgentProfile({
27423
+ agentProfileId: input.agentProfile,
27368
27424
  actorProfile,
27369
27425
  baseUrl: resolvedBaseUrl,
27370
27426
  controllerPermissionMode: controllerPermissionMode.agentControllerPermissionMode ?? null,
27371
27427
  detectedSubject,
27372
27428
  modelSelection,
27373
27429
  projectFolder,
27374
- spaceId: target.spaceId
27430
+ spaceId: target.spaceId,
27431
+ onAgentProfileCreated: (profile) => {
27432
+ emitSpaceAddMeProfileCreated({
27433
+ actorProfileId: actorProfile.openMeldProfileId,
27434
+ agentControllerPermissionMode: controllerPermissionMode.agentControllerPermissionMode ?? null,
27435
+ confirmDangerousAgentControllerPermissionMode: input.confirmDangerousAgentControllerPermissionMode === true,
27436
+ details: input.details === true,
27437
+ json: input.json === true,
27438
+ modelSelection,
27439
+ passwordRequiredOnRetry: Boolean(input.password),
27440
+ presenter,
27441
+ profile,
27442
+ projectFolder: projectFolder.path,
27443
+ space: target.spaceId
27444
+ });
27445
+ }
27375
27446
  })
27376
27447
  });
27377
27448
  const status = await addMembers({
@@ -27447,19 +27518,14 @@ function normalizeSpaceAddMeProjectFolderInput(input, cwd) {
27447
27518
  };
27448
27519
  }
27449
27520
  async function ensureCurrentAgentProfile(input) {
27450
- const existing = await findAgentProfileByControllerConversation({
27521
+ const match = await resolveRequestedAgentProfile({
27522
+ agentProfileId: input.agentProfileId,
27451
27523
  baseUrl: input.baseUrl,
27452
- detectedSubject: input.detectedSubject
27453
- }).catch((error) => {
27454
- throw formatSpaceAddMeBindingReadFailure({
27455
- error,
27456
- projectFolder: input.projectFolder,
27457
- spaceId: input.spaceId
27458
- });
27524
+ detectedSubject: input.detectedSubject,
27525
+ projectFolder: input.projectFolder,
27526
+ spaceId: input.spaceId
27459
27527
  });
27460
- if (existing.length > 1) throw new Error(`Multiple Agent Profiles are already bound to ${input.detectedSubject.agentControllerRef} conversation ${input.detectedSubject.agentControllerConversationId}. OpenMeld will not choose one automatically.`);
27461
- const [match] = existing;
27462
- if (match) {
27528
+ if (match?.kind === "bound_to_current_session") {
27463
27529
  const projectFolderAction = await ensureAgentProfileProjectFolder({
27464
27530
  profile: match.profile,
27465
27531
  projectFolder: input.projectFolder.path
@@ -27477,6 +27543,27 @@ async function ensureCurrentAgentProfile(input) {
27477
27543
  projectFolderAction
27478
27544
  };
27479
27545
  }
27546
+ if (match?.kind === "unbound") try {
27547
+ const projectFolderAction = await ensureAgentProfileProjectFolder({
27548
+ profile: match.profile,
27549
+ projectFolder: input.projectFolder.path
27550
+ });
27551
+ const binding = await bindAgentProfileToCurrentSession({
27552
+ controllerPermissionMode: input.controllerPermissionMode,
27553
+ detectedSubject: input.detectedSubject,
27554
+ modelSelection: input.modelSelection,
27555
+ profile: match.profile
27556
+ });
27557
+ return {
27558
+ bindingOutcome: binding.outcome ?? "reconnected",
27559
+ bindingStatus: binding.status,
27560
+ profile: match.profile,
27561
+ profileAction: "reused",
27562
+ projectFolderAction
27563
+ };
27564
+ } catch (error) {
27565
+ if (!(error instanceof AgentProfileProjectFolderMismatchError)) throw error;
27566
+ }
27480
27567
  const profile = await createOpenMeldAgentProfile({
27481
27568
  profileName: buildAgentProfileName({
27482
27569
  detectedSubject: input.detectedSubject,
@@ -27484,13 +27571,29 @@ async function ensureCurrentAgentProfile(input) {
27484
27571
  }),
27485
27572
  creatorProfileId: input.actorProfile.openMeldProfileId
27486
27573
  });
27574
+ input.onAgentProfileCreated(profile);
27487
27575
  await setCustomProfileWorkspace({
27488
27576
  openMeldProfileId: profile.openMeldProfileId,
27489
27577
  customWorkspacePath: input.projectFolder.path
27490
27578
  });
27579
+ const binding = await bindAgentProfileToCurrentSession({
27580
+ controllerPermissionMode: input.controllerPermissionMode,
27581
+ detectedSubject: input.detectedSubject,
27582
+ modelSelection: input.modelSelection,
27583
+ profile
27584
+ });
27585
+ return {
27586
+ bindingOutcome: binding.outcome ?? "created",
27587
+ bindingStatus: binding.status,
27588
+ profile,
27589
+ profileAction: "created",
27590
+ projectFolderAction: "created"
27591
+ };
27592
+ }
27593
+ async function bindAgentProfileToCurrentSession(input) {
27491
27594
  const runtimeReportSubmission = await submitRuntimeAgentControllerReport({
27492
27595
  agentControllerRef: input.detectedSubject.agentControllerRef,
27493
- diagnosticProfileId: profile.openMeldProfileId,
27596
+ diagnosticProfileId: input.profile.openMeldProfileId,
27494
27597
  localParticipationState: "ready",
27495
27598
  reasonCodes: ["space.add_me.current_agent"]
27496
27599
  });
@@ -27502,17 +27605,15 @@ async function ensureCurrentAgentProfile(input) {
27502
27605
  ...input.modelSelection.reasoningLevel ? { reasoningLevel: input.modelSelection.reasoningLevel } : {}
27503
27606
  } : {},
27504
27607
  confirmLocalExecutionEvidence: false,
27505
- profile,
27608
+ profile: input.profile,
27506
27609
  runtimeReportSubmission
27507
27610
  });
27508
- if (binding.status !== "accepted") throw new Error(`Agent Profile Binding was not accepted for ${profile.openMeldProfileId}: ${binding.status}${binding.reason ? ` (${binding.reason})` : ""}.`);
27509
- return {
27510
- bindingOutcome: binding.outcome ?? "created",
27511
- bindingStatus: binding.status,
27512
- profile,
27513
- profileAction: "created",
27514
- projectFolderAction: "created"
27515
- };
27611
+ if (binding.status !== "accepted") {
27612
+ const existingProfileId = normalizeOptionalString(binding.existingBinding?.agentProfileId);
27613
+ const reuseGuidance = existingProfileId ? ` This conversation is already bound to ${existingProfileId}. If that is the exact Agent Profile you created for this conversation, retry with --agent-profile ${existingProfileId}.` : "";
27614
+ throw new Error(`Agent Profile Binding was not accepted for ${input.profile.openMeldProfileId}: ${binding.status}${binding.reason ? ` (${binding.reason})` : ""}.${reuseGuidance}`);
27615
+ }
27616
+ return binding;
27516
27617
  }
27517
27618
  async function updateExistingAgentProfileBinding(input) {
27518
27619
  if (input.controllerPermissionMode) await updateAgentProfilePrimaryBindingAgentControllerPermissionMode({
@@ -27534,33 +27635,65 @@ async function updateExistingAgentProfileBinding(input) {
27534
27635
  updated: true
27535
27636
  };
27536
27637
  }
27537
- async function findAgentProfileByControllerConversation(input) {
27538
- const profiles = (await listOpenMeldProfiles()).filter((profile) => profile.profileKind === "agent" && profile.status === "active");
27638
+ async function resolveRequestedAgentProfile(input) {
27639
+ const agentProfileId = normalizeOptionalString(input.agentProfileId);
27640
+ if (!agentProfileId) return null;
27641
+ const profile = await resolveOpenMeldProfile({ openMeldProfileId: agentProfileId }).catch((error) => {
27642
+ throw formatRequestedAgentProfileReadFailure({
27643
+ agentProfileId,
27644
+ error
27645
+ });
27646
+ });
27647
+ if (profile.profileKind !== "agent" || profile.status !== "active") throw new Error(`--agent-profile ${agentProfileId} must identify an active Agent Profile.`);
27539
27648
  const bindingReads = createPrimaryBindingReadSession({ baseUrl: input.baseUrl });
27540
- const reports = await Promise.all(profiles.map(async (profile) => {
27541
- const report = await resolveAgentProfilePrimaryAgentControllerReport({
27542
- baseUrl: input.baseUrl,
27543
- bindingReads,
27544
- profile
27649
+ const bindingRead = await bindingReads.readPrimaryBinding(profile).catch((error) => {
27650
+ throw formatSpaceAddMeBindingReadFailure({
27651
+ agentProfileId,
27652
+ error,
27653
+ projectFolder: input.projectFolder,
27654
+ spaceId: input.spaceId
27545
27655
  });
27546
- if (!report) return null;
27547
- return {
27548
- profile,
27549
- report
27550
- };
27551
- }));
27552
- const matches = [];
27553
- for (const candidate of reports) {
27554
- if (!candidate) continue;
27555
- const { profile, report } = candidate;
27556
- if ((report?.primaryBinding.executionTarget)?.agentControllerConversationId !== input.detectedSubject.agentControllerConversationId) continue;
27557
- if (report.agentControllerRef !== input.detectedSubject.agentControllerRef) throw new Error(`Agent Controller conversation ${input.detectedSubject.agentControllerConversationId} is already bound to ${profile.openMeldProfileId} through ${report.agentControllerRef}. OpenMeld will not reuse that conversation for ${input.detectedSubject.agentControllerRef}.`);
27558
- matches.push({
27559
- profile,
27560
- report
27656
+ });
27657
+ if (bindingRead.status === "missing" && bindingRead.binding.bindingState === "missing") return {
27658
+ kind: "unbound",
27659
+ profile
27660
+ };
27661
+ if (resolveRequestedAgentProfileBindingReadAction({
27662
+ agentProfileId,
27663
+ bindingRead
27664
+ }) === "create_new") return null;
27665
+ const report = await resolveAgentProfilePrimaryAgentControllerReport({
27666
+ baseUrl: input.baseUrl,
27667
+ bindingReads,
27668
+ profile
27669
+ }).catch((error) => {
27670
+ throw formatSpaceAddMeBindingReadFailure({
27671
+ agentProfileId,
27672
+ error,
27673
+ projectFolder: input.projectFolder,
27674
+ spaceId: input.spaceId
27561
27675
  });
27562
- }
27563
- return matches;
27676
+ });
27677
+ if (!report) throw new Error(`OpenMeld found Binding data for Agent Profile ${agentProfileId}, but it could not identify one current Agent Controller. No new Agent Profile or Space membership was created.`);
27678
+ const executionTarget = report.primaryBinding.executionTarget;
27679
+ if (executionTarget?.agentControllerConversationId === input.detectedSubject.agentControllerConversationId && report.agentControllerRef !== input.detectedSubject.agentControllerRef) throw new Error(`Agent Controller conversation ${input.detectedSubject.agentControllerConversationId} is bound to ${agentProfileId} through ${report.agentControllerRef}. OpenMeld will not reuse it for ${input.detectedSubject.agentControllerRef}.`);
27680
+ if (executionTarget?.agentControllerConversationId !== input.detectedSubject.agentControllerConversationId || report.agentControllerRef !== input.detectedSubject.agentControllerRef) return null;
27681
+ return {
27682
+ kind: "bound_to_current_session",
27683
+ profile,
27684
+ report
27685
+ };
27686
+ }
27687
+ function resolveRequestedAgentProfileBindingReadAction(input) {
27688
+ if (input.bindingRead.status === "found" && input.bindingRead.binding.bindingState === "enabled_primary") return "inspect_active";
27689
+ if (input.bindingRead.status === "found" && input.bindingRead.binding.bindingState === "disabled_historical") return "create_new";
27690
+ const reasonCodes = input.bindingRead.binding.reasonCodes.join(", ");
27691
+ throw new Error(`OpenMeld could not confirm whether Agent Profile ${input.agentProfileId} already has a Binding${reasonCodes ? ` (${reasonCodes})` : ""}. No new Agent Profile or Space membership was created.`);
27692
+ }
27693
+ function formatRequestedAgentProfileReadFailure(input) {
27694
+ const error = normalizeError(input.error);
27695
+ if (error.message.includes("Agent Profile can only be managed in the workspace where it was created.")) return /* @__PURE__ */ new Error(`Agent Profile ${input.agentProfileId} belongs to a different OpenMeld Organization. Organization is the account boundary here, not the local Project folder. Omit --agent-profile to create a new profile in the current Organization, or switch Organizations before retrying.`);
27696
+ return error;
27564
27697
  }
27565
27698
  function shouldEmitSpaceAddMeProgress(input) {
27566
27699
  return !input.json && (input.details || input.presenter.view === "agent");
@@ -27588,7 +27721,7 @@ function formatSpaceAddMeBindingReadFailure(input) {
27588
27721
  const error = normalizeError(input.error);
27589
27722
  if (!isAgentProfileBindingReadTimeout(error)) return error;
27590
27723
  const statusCommand = formatOpenMeldCliCommand("openmeld service status");
27591
- const retryCommand = formatOpenMeldCliCommand(`openmeld space add-me ${quoteShellArg(input.spaceId)} --project-folder ${quoteShellArg(input.projectFolder.path)}`);
27724
+ const retryCommand = formatOpenMeldCliCommand(`openmeld space add-me ${quoteShellArg(input.spaceId)} --project-folder ${quoteShellArg(input.projectFolder.path)}${input.agentProfileId ? ` --agent-profile ${quoteShellArg(input.agentProfileId)}` : ""}`);
27592
27725
  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}`);
27593
27726
  }
27594
27727
  function isAgentProfileBindingReadTimeout(error) {
@@ -27616,9 +27749,60 @@ async function ensureAgentProfileProjectFolder(input) {
27616
27749
  openMeldProfileId: input.profile.openMeldProfileId,
27617
27750
  value: config.value
27618
27751
  }));
27619
- if (existingPath !== input.projectFolder) throw new Error(`Agent Profile ${input.profile.openMeldProfileId} is already bound to Project folder ${existingPath} for this controller conversation. Refusing to reuse it for ${input.projectFolder}.`);
27752
+ if (existingPath !== input.projectFolder) throw new AgentProfileProjectFolderMismatchError(`Agent Profile ${input.profile.openMeldProfileId} is already bound to Project folder ${existingPath} for this controller conversation. Refusing to reuse it for ${input.projectFolder}.`);
27620
27753
  return "reused";
27621
27754
  }
27755
+ var AgentProfileProjectFolderMismatchError = class extends Error {};
27756
+ function emitSpaceAddMeProfileCreated(input) {
27757
+ const resumeCommand = buildSpaceAddMeResumeCommand({
27758
+ actorProfileId: input.actorProfileId,
27759
+ agentControllerPermissionMode: input.agentControllerPermissionMode,
27760
+ agentProfileId: input.profile.openMeldProfileId,
27761
+ confirmDangerousAgentControllerPermissionMode: input.confirmDangerousAgentControllerPermissionMode,
27762
+ modelSelection: input.modelSelection,
27763
+ projectFolder: input.projectFolder,
27764
+ space: input.space
27765
+ });
27766
+ const payload = {
27767
+ agentProfileId: input.profile.openMeldProfileId,
27768
+ passwordRequiredOnRetry: input.passwordRequiredOnRetry,
27769
+ profileCreation: "completed",
27770
+ profileSetup: "in_progress",
27771
+ resumeCommand,
27772
+ spaceMembership: "not_confirmed",
27773
+ wakeReadiness: "not_checked"
27774
+ };
27775
+ if (input.json || input.details) {
27776
+ input.presenter.data({
27777
+ code: "space.add_me.profile_created",
27778
+ payload
27779
+ });
27780
+ return;
27781
+ }
27782
+ const passwordNote = input.passwordRequiredOnRetry ? " Add --password again if the Space still requires it; OpenMeld does not print password values." : "";
27783
+ input.presenter.line({
27784
+ code: "space.add_me.profile_created",
27785
+ text: input.presenter.view === "agent" ? `Agent Profile ${input.profile.openMeldProfileId} was created; setup is still in progress. Space membership and Wake readiness are not confirmed.` : `Agent Profile ${input.profile.openMeldProfileId} was created; setup is still in progress. Space membership and Wake readiness are not confirmed. If this command stops, resume with: ${resumeCommand}.${passwordNote}`,
27786
+ data: payload
27787
+ });
27788
+ }
27789
+ function buildSpaceAddMeResumeCommand(input) {
27790
+ const parts = [
27791
+ "openmeld space add-me",
27792
+ quoteShellArg(input.space),
27793
+ "--profile",
27794
+ quoteShellArg(input.actorProfileId),
27795
+ "--project-folder",
27796
+ quoteShellArg(input.projectFolder),
27797
+ "--agent-profile",
27798
+ quoteShellArg(input.agentProfileId)
27799
+ ];
27800
+ if (input.agentControllerPermissionMode) parts.push("--agent-controller-permission-mode", quoteShellArg(input.agentControllerPermissionMode));
27801
+ if (input.confirmDangerousAgentControllerPermissionMode) parts.push("--confirm-dangerous-agent-controller-permission-mode");
27802
+ if (input.modelSelection.modelId) parts.push("--model", quoteShellArg(input.modelSelection.modelId));
27803
+ if (input.modelSelection.reasoningLevel) parts.push("--reasoning-effort", quoteShellArg(input.modelSelection.reasoningLevel));
27804
+ return formatOpenMeldCliCommand(parts.join(" "));
27805
+ }
27622
27806
  async function validateProjectFolder(projectFolder) {
27623
27807
  const validation = await validateCustomProfileWorkspacePath(projectFolder);
27624
27808
  if (validation.status === "invalid") throw new Error(`Project folder is invalid: ${describeProfileWorkspacePathValidationFailure({
@@ -27698,7 +27882,7 @@ function normalizeOptionalString(value) {
27698
27882
  return normalized.length > 0 ? normalized : null;
27699
27883
  }
27700
27884
  async function runDefaultSpaceAddMeMembership(input) {
27701
- const { runSpaceAddMeMembership } = await import("./add-me-membership-C1Hh2bHA.js");
27885
+ const { runSpaceAddMeMembership } = await import("./add-me-membership-2D5BlWyL.js");
27702
27886
  return await runSpaceAddMeMembership(input);
27703
27887
  }
27704
27888
  //#endregion
@@ -32929,7 +33113,7 @@ withSpaceProfileOption(spaceCmd.command("wake-stop").description("Request Stop f
32929
33113
  }
32930
33114
  });
32931
33115
  });
32932
- withSpaceProfileOption(spaceCmd.command("add-me").description("Add me to this Space.").argument("<space>", "Space URL or Space ID").option("--password <value>", "Space password for protected access").option("--project-folder <path>", "Project folder for this agent profile", collectRepeatedOptionValue).option("--workspace-path <path>", "Alias for --project-folder", collectRepeatedOptionValue).option("--working-directory <path>", "Alias for --project-folder", collectRepeatedOptionValue).option("--cwd <path>", "Alias for --project-folder", collectRepeatedOptionValue).option("--agent-controller-permission-mode <policy>", formatAgentControllerPermissionModeHelp()).option("--model <model>", "Model for this Agent Profile Binding").option("--reasoning-effort <level>", "Reasoning effort for the selected model").option("--confirm-dangerous-agent-controller-permission-mode", "Confirm a dangerous Agent Controller Permission Mode without prompting", false).option("--details", "Print detailed add-me diagnostics").option("--json", "Print machine-readable add-me diagnostics", false)).action(async (space, opts, command) => {
33116
+ withSpaceProfileOption(spaceCmd.command("add-me").description("Add me to this Space.").argument("<space>", "Space URL or Space ID").option("--password <value>", "Space password for protected access").option("--agent-profile <id>", "Reuse this exact Agent Profile; omitted means create a new one").option("--project-folder <path>", "Project folder for this agent profile", collectRepeatedOptionValue).option("--workspace-path <path>", "Alias for --project-folder", collectRepeatedOptionValue).option("--working-directory <path>", "Alias for --project-folder", collectRepeatedOptionValue).option("--cwd <path>", "Alias for --project-folder", collectRepeatedOptionValue).option("--agent-controller-permission-mode <policy>", formatAgentControllerPermissionModeHelp()).option("--model <model>", "Model for this Agent Profile Binding").option("--reasoning-effort <level>", "Reasoning effort for the selected model").option("--confirm-dangerous-agent-controller-permission-mode", "Confirm a dangerous Agent Controller Permission Mode without prompting", false).option("--details", "Print detailed add-me diagnostics").option("--json", "Print machine-readable add-me diagnostics", false)).action(async (space, opts, command) => {
32933
33117
  const cliOptions = resolveSpaceCommandCliOptions(command, opts);
32934
33118
  const view = getGlobalViewOption();
32935
33119
  await runCommandWithEntryChecks({
@@ -32939,6 +33123,7 @@ withSpaceProfileOption(spaceCmd.command("add-me").description("Add me to this Sp
32939
33123
  gatewayUrl: cliOptions.gatewayUrl,
32940
33124
  run: async () => {
32941
33125
  await runSpaceAddMe({
33126
+ agentProfile: opts.agentProfile,
32942
33127
  profile: cliOptions.profile,
32943
33128
  baseUrl: cliOptions.gatewayUrl,
32944
33129
  space,
@@ -33744,7 +33929,7 @@ profileCmd.action(async () => {
33744
33929
  }
33745
33930
  });
33746
33931
  });
33747
- 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").action(async (profileName, opts) => {
33932
+ 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>", "Legacy direct-create conversation ID; for requests use --session resume --native-session").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").action(async (profileName, opts) => {
33748
33933
  const outputView = await resolveEffectiveViewForOutput();
33749
33934
  const targetName = (typeof profileName === "string" ? profileName : void 0) ?? opts.name;
33750
33935
  if (outputView === "agent") {
@@ -33756,7 +33941,12 @@ profileCmd.command("create").description("Create an Agent Profile, or an additio
33756
33941
  routeTokens: ["profile", "create"],
33757
33942
  view,
33758
33943
  run: async () => {
33759
- 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") {
33944
+ const usesCreationRequest = shouldUseProfileCreationRequest(opts);
33945
+ assertSupportedProfileCreationRequestSessionInput({
33946
+ agentControllerConversationId: opts.agentControllerConversationId,
33947
+ usesCreationRequest
33948
+ });
33949
+ if (usesCreationRequest) {
33760
33950
  if (typeof opts.kind === "string" && opts.kind.trim().toLowerCase() !== "agent") throw createProfileCreateGuideError("--owner can only create an Agent Profile; pass --kind agent.");
33761
33951
  await runProfileCreationRequestCreate({
33762
33952
  agentController: opts.agentController,
@@ -33797,6 +33987,12 @@ profileCmd.command("create").description("Create an Agent Profile, or an additio
33797
33987
  }
33798
33988
  });
33799
33989
  });
33990
+ function shouldUseProfileCreationRequest(input) {
33991
+ return typeof input.owner === "string" || typeof input.computer === "string" || typeof input.project === "string" || input.defaultProject === false || typeof input.space === "string" || typeof input.organization === "string" || typeof input.agentControllerCollaborationMode === "string" || typeof input.openCodePermission === "string" || typeof input.nativeSession === "string" || input.session !== "new";
33992
+ }
33993
+ function assertSupportedProfileCreationRequestSessionInput(input) {
33994
+ if (input.usesCreationRequest && typeof input.agentControllerConversationId === "string") throw createProfileCreateGuideError("--agent-controller-conversation-id cannot be combined with owner-request options because that legacy flag would lose the requested session. Use --session resume --native-session <id> instead.");
33995
+ }
33800
33996
  profileCmd.command("list").alias("ls").description("List OpenMeld profiles.").action(async () => {
33801
33997
  const view = getGlobalViewOption();
33802
33998
  await runCommandWithEntryChecks({
@@ -33953,7 +34149,7 @@ profileCmd.command("set").description("Switch to a different OpenMeld profile.")
33953
34149
  }
33954
34150
  });
33955
34151
  });
33956
- profileCmd.command("show").description("Show one OpenMeld profile.").argument("[profile]", "OpenMeld profile ID").option("--profile <id>", "OpenMeld profile ID").option("--json", "Print machine-readable JSON", false).action(async (profile, opts) => {
34152
+ profileCmd.command("show").description("Show one OpenMeld profile.").argument("[profile]", "OpenMeld profile ID").option("--profile <id>", "OpenMeld profile ID").option("--details", "Print detailed Agent Profile diagnostics").option("--json", "Print machine-readable JSON", false).action(async (profile, opts) => {
33957
34153
  const view = getGlobalViewOption();
33958
34154
  const targetProfile = (typeof profile === "string" ? profile : void 0) ?? opts.profile;
33959
34155
  await runCommandWithEntryChecks({
@@ -33963,6 +34159,7 @@ profileCmd.command("show").description("Show one OpenMeld profile.").argument("[
33963
34159
  run: async () => {
33964
34160
  await runProfileShow({
33965
34161
  profile: targetProfile,
34162
+ details: Boolean(opts.details),
33966
34163
  json: Boolean(opts.json),
33967
34164
  view,
33968
34165
  entryChecksHandled: true
@@ -33974,7 +34171,7 @@ profileCmd.command("show").description("Show one OpenMeld profile.").argument("[
33974
34171
  }
33975
34172
  });
33976
34173
  });
33977
- profileCmd.command("update").description("Update an OpenMeld profile.").argument("[profile]", "OpenMeld profile ID").option("--profile <id>", "OpenMeld profile ID").option("--name <profileName>", "OpenMeld profile name").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("--confirm-dangerous-agent-controller-permission-mode", "Confirm a dangerous Agent Controller Permission Mode without prompting", false).option("--workspace-mode <mode>", "Workspace mode for this agent profile: openmeld-managed or custom").option("--workspace-path <path>", "Custom workspace folder for this agent profile").action(async (profile, opts) => {
34174
+ profileCmd.command("update").description("Update an OpenMeld profile.").argument("[profile]", "OpenMeld profile ID").option("--profile <id>", "OpenMeld profile ID").option("--name <profileName>", "OpenMeld profile name").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("--confirm-dangerous-agent-controller-permission-mode", "Confirm a dangerous Agent Controller Permission Mode without prompting", false).option("--workspace-mode <mode>", "Workspace mode for this agent profile: openmeld-managed or custom").option("--workspace-path <path>", "Custom workspace folder for this agent profile").option("--details", "Print detailed Agent Profile diagnostics").action(async (profile, opts) => {
33978
34175
  const outputView = await resolveEffectiveViewForOutput();
33979
34176
  const view = getGlobalViewOption();
33980
34177
  const targetProfile = (typeof profile === "string" ? profile : void 0) ?? opts.profile;
@@ -33998,6 +34195,7 @@ profileCmd.command("update").description("Update an OpenMeld profile.").argument
33998
34195
  reasoningEffort: typeof opts.reasoningEffort === "string" ? opts.reasoningEffort : void 0,
33999
34196
  workspaceMode: typeof opts.workspaceMode === "string" ? opts.workspaceMode : void 0,
34000
34197
  workspacePath: typeof opts.workspacePath === "string" ? opts.workspacePath : void 0,
34198
+ details: Boolean(opts.details),
34001
34199
  view,
34002
34200
  entryChecksHandled: true
34003
34201
  });