openmeld 0.3.132 → 0.3.134

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.
Binary file
package/dist/openmeld.js CHANGED
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { $ as runWithHeldLock, $t as formatLocalMachineIssueMessage, A as toSpaceContractUrl, At as normalizeAccountKey, Bt as profileDir, D as normalizeBaseUrl, E as updateConfiguredStartV1OnboardingState, F as toSpaceDispatchTraceUrl, Ft as openMeldManagedVersionBinaryPath, G as buildOpenMeldOrphanedLockAction, Gt as resolveOpenMeldEnvPreset, K as isOpenMeldLockError, Lt as openMeldRootDir, Mt as openMeldBackupsDir, P as toSpaceDispatchLookupUrl, Pt as openMeldManagedBinaryPath, Q as resolveOpenMeldOrphanedLockIssue, Qt as systemDir, S as setConfiguredSkillsConfig, St as accountProfileViewPath, V as toSpaceResultUrl, Vt as profileViewPath, W as acquireLock, Wt as resolveOpenMeldCliEntryNameFromArgv, X as releaseLockSync, Xt as skillsDir, Z as repairOrphanedLegacyLocks, Zt as spacesDir, a as resolveBaseUrl, at as resolveCliContext, b as setConfiguredBaseUrl, c as resolveExplicitGatewayUrlOrThrow, ct as formatLaneScopeSentence, ft as createActiveSetupConcurrencyIssue, g as getConfiguredSkillsConfig, gt as toRecognizedLocalMachineFailureError, ht as isLocalMachineFailureError, k as toSpaceBoardUrl, lt as resolveOpenMeldLaneDescriptor, m as getConfiguredOnboardingDisclaimerAcceptedAt, mt as createOrphanedSetupConcurrencyIssue, nt as OPENMELD_CLI_CONTEXT_ENV_KEY, o as resolveBaseUrlOrNull, on as agentControllerConversationRefSchema, q as isOpenMeldOrphanedLockError, qt as resolveOpenMeldRootDir, tt as LEGACY_OPENMELD_AGENT_SESSION_ENV_KEY, u as alignRuntimeConfigStorage, ut as LocalMachineFailureError, w as updateConfiguredOnboardingConfig, wt as accountsDir, xt as accountProfileSpaceCacheDir, zt as organizationSkillReleaseDir } from "./base-url-BtqW4aLS.js";
4
- import { $ as runAgentsManage, $a as LocalProjectConnectionError, $i as resetCurrentCommandCheckState, $n as isCliUpdateCheckApplicable, $o as cliJsonOutputEnvelopeSchema, $r as resolveServiceReadinessFromServiceStatus, $t as ensureLocalSkills, A as parseEnvelope, Aa as resolveViewProfileKey, Ai as getAgentControllerPermissionModeFieldLabel, An as submitProfileRuntimeAgentControllerReport, Ao as enqueueAgentActivityHookEvent, Ar as registerSpaceMemberSelectionOptions, At as createDelayedSpinner, B as resolveHumanControllerDisplayName, Ba as updateOpenMeldProfile, Bi as buildOnboardingPlan, Bn as buildDispatchResultMessageReadProjection, Bo as setDefaultProjectConnection, Br as buildDualViewGuideMessage, Bt as toStructuredGatewayFailure, C as toSpaceMetaUpsertInput, Ca as buildHumanErrorCopy, Ci as reconcileNewRunnableBuiltinAgentsForSetup, Cn as resolveCreateProfileName, Co as upsertDaemonServiceContract, Cr as createSpaceTargetGuideError, Ct as runDaemonStop, D as formatHumanReadTargetList, Da as formatMessage, Di as buildAgentControllerRef, Dn as resolveServiceParticipationReadiness, Do as resolveObservedAgentActivityBinding, Dr as createUpgradeConfirmationGuideError, Dt as buildProfileWorkspaceRows, E as buildHumanReplyContextSummary, Ea as createPresenter, Ei as resolveLocalRegistryAgentIdFromAgentControllerRef, En as formatServiceParticipationReadinessLabel, Eo as buildAgentActivityEvent, Er as createStartAuthenticationGuideError, Et as buildProfileWorkspacePresentation, F as resolveOpenMeldProfileForSpaceCommand, Fa as createOpenMeldHumanProfile, Fi as resolveAgentProfileEditCapabilities, Fn as resolveLocalAgentControllerLaunchability, Fo as listProjectBindings, Fr as registerAuthLoginRequestOptions, Ft as createCliSpaceApi, G as runAgentsCustomAdd, Ga as buildAgentAuthenticationGuide, Gi as classifyDaemonServiceWakeability, Gn as buildUpdatesReplyWorkflowProjection, Go as renderInfoCard, Gr as buildAgentFacingPublicationModeGuideLines, Gt as runDaemonServiceParticipationGate, H as resolveAgentProfileSetup, Ha as clearSelectedOpenMeldProfileId, Hi as buildDaemonServiceTargetSpec, Hn as buildSignalIndex, Ho as canonicalizeLocalProjectPath, Hr as OPENMELD_AGENT_MENTAL_MODEL_LINES, Ht as resolveLocalComponentsStatus, I as emitSpaceAgentOverview, Ia as deleteOpenMeldProfile, Ii as resolveEvidenceSyncHealth, In as resolveLocalAgentControllerReportDecision, Io as listProjectConnectionsWithStatus, Ir as registerBuiltinAgentSelectionOptions, It as fetchSpaceMeta, J as runAgentsCustomUpdate, Ja as resolveAuthenticationGuidance, Ji as resolveOpenMeldEnvironmentTarget, Jn as promptSearchMultiselect, Jo as emitCliJsonEnvelope, Jr as runPendingDaemonServiceUpdate, Jt as runSkillsCheck$1, K as runAgentsCustomList, Ka as buildHumanAuthenticationCard, Ki as resolveServiceUpdateUrgency, Kn as createSpaceMemberIdentityIndex, Ko as renderTextInfoCard, Kr as canonicalizeAllowedActions, Kt as runDaemonStartDecisionPrompt, L as emitSpaceCliAgentOverview, La as listOpenMeldProfiles, Li as resolveNativeAgentControllerPermissionModeForController, Ln as inspectSpaceCacheFile, Lo as migrateProjectBindingStore, Lr as buildAgentOverviewFromContract, Lt as updateSpaceMeta, M as assertFullSignalIdArgument, Ma as requireOpenMeldProfile, Mi as parseAgentControllerRef, Mn as submitRuntimeAgentControllerReports, Mo as readAgentActivityOutboxHealth, Mr as registerSkillsTargetSelectionOptions, Mt as runDaemonStartupPreflight, N as assertValidSpaceIdTarget, Na as resolveOpenMeldProfileOrNull, Ni as resolveAgentControllerPermissionModeForController, Nn as collectLocalAgentControllerInventory, No as removeProjectOutbox, Nr as getCliVersionInfo, Nt as readDaemonStartFailureLogTailLines, O as resolveLinkAccessLabel, Oa as parseCliViewMode, Oi as createAgentExecutionStatusDisplayRows, On as assessActionParticipationCandidate, Oo as normalizeSharedSessionTitle, Or as getCommandEntryContract, Ot as reconcileCliVersionView, P as prepareAuthenticatedSpaceCommandContext, Pa as createOpenMeldAgentProfile, Pi as resolveAgentExecutionStatus, Pn as resolveLocalAgentControllerBlockerReasonCodes, Po as bindProject, Pr as registerDaemonControlTargetOptions, Pt as fetchSpaceUpdates, Q as runAgentsList, Qa as setProfileDefaultView, Qi as isCurrentCommandCheckScopeActive, Qn as assessCliUpdate, Qo as cliBinaryDeltaPatchSchema, Qr as formatDaemonFailureContextText, Qt as runSkillsUpdate, R as prepareLocalAgentReadiness, Ra as primeOpenMeldProfilesSessionCache, Rn as upsertSpaceConfig, Ro as removeProjectConnection, Rr as DualViewGuideError, Rt as readGatewayJsonResponse, S as loadSpaceSignalIndexOrNull, Sa as OPENMELD_VERSION, Si as listAgentTargetStates, Sn as resolveCreateProfileKind, So as readDaemonServiceContract, Sr as createSpaceSubcommandTargetGuideError, St as runDaemonStatusFlow, T as buildFormalSignalReadPayload, Ta as renderHumanTextErrorCard, Ti as notifyDaemonRouteCatalogChanged, Tn as ensureAgentProfileRuntimeBinding, To as removeAgentActivityContextCache, Tr as createStartAgentIdentityGuideError, Tt as runDaemonUninstall, U as runAgents, Ua as getSelectedOpenMeldProfileId, Ui as resolveDaemonServiceAlignmentDecision, Un as buildSignalMessageReadProjection, Uo as enqueueControllerTaskLifecycleEventWhileLocked, Ur as SPACE_CONTRACT_ALLOWED_ACTION_ORDER, Ut as writeInstalledLocalComponentsSnapshot, V as persistAgentTransportSelection, Va as alignSelectedOpenMeldProfileStorage, Vi as getSetupFlowCopy, Vn as buildDispatchResultReplyWorkflowProjection, Vo as unbindProject, Vr as formatAgentOverviewPayload, Vt as parseJsonResponse, W as runAgentsConfig, Wa as setSelectedOpenMeldProfileId, Wi as classifyDaemonServiceRunStartability, Wn as buildSpaceRoundReadProjection, Wo as readControllerTaskLifecycleOutboxHealth, Wr as areAllowedActionsEquivalent, Wt as resolveDaemonServiceParticipationStatus, X as runAgentsDisable, Xa as resolveAuthenticationGuidanceFromMessage, Xi as finishCurrentCommandCheckScope, Xn as isReturnKeypress, Xo as outJsonLine, Xr as ensureDaemonRuntimePaths, Xt as runSkillsInstall, Y as runAgentsDetect, Ya as resolveAuthenticationGuidanceFromError, Yi as resolveAuthBaseUrl, Yn as promptSearchSelect, Yo as errLine, Yr as scheduleDaemonServiceUpdate, Yt as runSkillsEnsure, Z as runAgentsEnable, Za as getProfileDefaultView, Zi as getCurrentCommandCheckState, Zn as runInteractivePrompt, Zo as outLine, Zr as resolveDaemonDeviceId, Zt as runSkillsUninstall, _ as runSpaceWriteWithPasswordRetry, _a as readVersionState, _i as validateCustomProfileWorkspacePath, _n as requestDeviceToken, _o as formatOpenMeldCliTextBlock, _r as createSpaceLeaveGuideError, _t as runDaemonInstall, a as runSpaceDelete, aa as getDaemonSystemServiceLogPath, ai as mapAgentReplyReadinessToLegacyAutoReply, an as ensureCommandAuthenticationOrCancel, ao as resolveAgentActivityRouteForPath, ar as resolveElapsedTimeMs, as as revokeOrganizationJoinLinkResponseSchema, at as printOpenMeldBanner, b as buildIdentityOnlyMembersSnapshotForReadProjection, ba as toStartBackgroundHelperExecutionCompatibility, bi as createPrimaryBindingReadSession, bn as revokeAuthAccessToken, bo as resolveUserFacingCliEntryCommand, br as createSpaceRemoveMembersGuideError, bt as runDaemonRunAfterEntryChecks, c as runSpaceLeave, ca as resolveDaemonServiceManager, ci as syncProfileWorkspaceState, cn as runAuthLogout, co as defaultManagedIntegrationPaths, cr as canUseInteractivePrompts, ct as renderOpenMeldLogo, d as runSpaceRemoveMembers, da as performManagedInstall, di as ensureOpenMeldManagedProfileWorkspace, dn as exchangeOneTimeTokenAuthSession, do as resolveAgentActivityDispatcherCommand, dr as createProfileCreateGuideError, dt as resolveSpaceSendText, ea as startCurrentCommandCheckScope, ei as resolveDaemonServiceFreshnessWarning, en as readBundledOpenMeldCliSkillDocumentByPath, eo as validateLocalProjectConnectionPath, er as assertDispatchOwnedRuntimePublicWriteAllowed, es as cliJsonSkillsListEnvelopeSchema, et as runAgentsRepair, f as runSpaceSend, fa as buildNextVersionState, fi as normalizeCustomProfileWorkspacePath, fn as buildAuthStatusRows, fo as uninstallAgentActivityIntegrations, fr as createProfileMenuGuideError, ft as bestEffortStopCurrentLaneDaemonService, g as runSpaceReadWithPasswordRetry, ga as fetchLatestPackageInfo, gi as setOpenMeldManagedProfileWorkspace, gn as fetchAuthUserSnapshot, go as formatOpenMeldCliLine, gr as createSpaceContractSetGuideError, gt as runDaemonCancel, h as uploadPreparedSpaceFiles, ha as fetchLatestCliBinaryRelease, hi as setCustomProfileWorkspace, hn as extractAuthApiErrorMessage, ho as formatOpenMeldCliCommands, hr as createSpaceAliasTargetGuideError, ht as runDaemonBackgroundStartForDecision, i as runSpaceCreate, ia as readCurrentObservedDaemonRuntimeStatus, ii as formatHumanReplyReadinessReason$1, in as buildCommandAuthenticationPromptMessage, io as registerAgentActivityRoute, ir as formatElapsedTime, is as organizationJoinLinkErrorResponseSchema, it as colorizeDisplayProfileLabel, j as isSpaceCommandOutputHandledError, ja as isSelectedOpenMeldProfileRequiredError, ji as listAgentControllerPermissionModeOptions, jn as submitRuntimeAgentControllerReport, jo as removeProjectInbox, jr as SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS, jt as shouldEmitAgentOverview, k as resolveOrganizationVisibilityLabel, ka as resolveRuntimeContext, ki as getAgentControllerPermissionModeDisplayMetadata, kn as computeRetryDelayMs, ko as readCodexSessionTitles, kr as getCommandHintsFromContract, kt as emitDaemonAgentOverview, l as runSpaceList, la as readRecentDaemonLifecycleEvents, li as createModelCatalogReadSession, ln as runAuthMenu, lo as installAgentActivityIntegrations, lr as createDoctorFailedGuideError, lt as renderOpenMeldTagline, m as prepareRequestedSpaceSendFiles, ma as ensureVersionStateReady, mi as resolveConfiguredProfileWorkspacePath, mn as formatActiveOrganizationLabel, mo as formatOpenMeldCliCommand, mr as createSpaceAddMembersGuideError, mt as runDaemonAutostart, n as promptAndConfirmSpacePassword, na as resolveVersionChangeDirection, ni as formatAgentReplyReadinessLabel, nn as readRecentDaemonDispatchJournalEvents, no as requestLocalAgentActivitySync, nr as readDispatchSpaceActionContextFromEnv, ns as cliJsonSkillsShowEnvelopeSchema, nt as formatTransportModeDisplay, o as runSpaceHistory, oa as isDaemonServiceJobNeverSpawned, oi as resolveGatewayChainReadiness, on as evaluateCommandAuthentication, oo as unregisterAgentActivityRoute, or as formatDaemonServiceDowngradeBlockedRecommendation, os as compareAgentControllerRefsForDisplay, ot as renderOpenMeldBrandBlockLines, p as runSpaceWatch, pa as compareSemver, pi as readProfileWorkspaceConfig, pn as buildAuthStatusSnapshot, po as formatInlineOpenMeldCliCommands, pr as createResetConfirmationGuideError, pt as runDaemon, q as runAgentsCustomRemove, qa as createAuthenticationError, qi as assessServerRequiredVersion, qn as formatRemovedCcRelationMessage, qo as sanitizeTerminalDisplayText, qr as readOpenMeldToolsUpdateContextFromEnv, qt as collectSkillsReadinessSnapshot, r as runSpaceAddMembers, ra as readCurrentDaemonRuntimeContext, ri as formatDeviceReplyReadinessLabel, rn as connectWebSocket, ro as isAgentActivityRouteRegistered, rr as writeDispatchSpaceActionRecord, rs as getOrganizationJoinLinkResponseSchema, rt as colorizeAgentLabel, s as runSpaceJoin, sa as readDaemonServiceJobCrashExitCode, si as resolveOpenClawLocalDiagnosticsValue, sn as runAuthLogin, sr as formatDaemonServiceMissingRecommendation, st as renderOpenMeldHeader, t as buildCreateSpacePasswordPromptConfig, ta as inspectDaemonServiceInventory, ti as resolveCurrentReplyReadinessSnapshot, tn as readRuntimeReportingHealthState, to as LocalDaemonControlPlaneClientError, tr as readDispatchOwnedRuntimeGuard, ts as cliJsonSkillsLoadEnvelopeSchema, tt as runAgentsShow, u as runSpacePassword, ua as buildInstallSelfJsonPayload, ui as resolveProfileWorkspaceRuntime, un as runAuthStatus, uo as readAgentActivityIntegrationStatus, ur as createProfileActionGuideError, ut as resolveGatewayWebOrigin, v as buildHumanReadSignalsTranscriptItems, va as writeVersionState, vi as describeProfileWorkspacePathValidationFailure, vn as resolveDeviceAuthClientId, vo as formatProfileAwareOpenMeldCliCommands, vr as createSpaceMenuGuideError, vt as runDaemonInterrupt, w as buildFormalDispatchResultReadPayload, wa as renderHumanErrorCard, wi as listBuiltinAgentsRegistryEntries, wn as promptTextEntry, wo as readAgentActivityContextForPath, wr as createSpaceUpdatesGuideError, wt as runDaemonTeardownStrict, x as loadSpaceIdentityDirectoryOrNull, xa as resolveCurrentDaemonExpectedVersion, xi as resolveAgentProfilePrimaryAgentControllerReport, xn as createProfileByKind, xo as syncLocalAgentActivity, xr as createSpaceResultGuideError, xt as runDaemonSnapshot, y as emitHumanReadSignalsTextProjection, ya as resolveDaemonRuntimeContractCompatibility, yi as syncDeviceRuntimeStateProjection, yn as resolveDeviceTokenExpiresAt, yo as resolveSetupFollowUpCliEntryCommand, yr as createSpacePublicationSetGuideError, yt as runDaemonReinstall, z as buildReplyReadinessGuidance, za as resolveOpenMeldProfile, zi as buildDaemonRouteObservationPresentation$1, zn as assertNoRemovedCcSpaceAddressingSyntax, zo as runIfAgentActivityBindingGenerationIsCurrent, zr as formatDualViewGuideForDisplay, zt as readGatewayTextResponse } from "./command-D59PJgmN.js";
5
- import { $ as ownerComputerDiagnosticsSchema, $t as agentActivityInventorySessionStatusSchema, B as sleep, Bt as agentActivityProviderSchema, Ct as authProfileKindSchema, D as toStructuredApiClientFailure, F as OPENMELD_HEADER_PROFILE_ID, G as projectSpaceDispatchTraceFinalVisibleOutcome, Ht as agentActivitySnapshotQuerySchema, J as spaceDispatchTraceDispatchStatusSchema, K as resolveSpaceDispatchTraceRootCause, Ot as submitFeedbackIssueRequestSchema, Qt as agentActivityInventorySessionOriginSchema, Vt as agentActivitySessionStatusSchema, W as SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER, X as observabilityWakeTraceSelectorSchema, Y as spaceDispatchTraceResponseSchema, Z as projectObservabilityWakeCorrelation, _ as createOrganizationSkillsApi, b as createProjectsApi, c as createAgentProfileBindingApi, d as createCurrentDeviceApi, dn as START_BOUNDED_ID_SCHEMA, en as agentActivitySessionInventoryQuerySchema, et as projectOwnerComputerLocalRuntimes, f as createFeedbackApi, fn as START_BOUNDED_VERSION_SCHEMA, g as createOrganizationApi, gn as localAgentCatalogSchema, gt as organizationSkillBundleSchema, hn as startReplyReadinessSummarySchema, l as createCenterAgentApi, mn as START_TRIMMED_NON_EMPTY_STRING_SCHEMA, nn as localAgentSessionProviderSchema, nt as DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION, pn as START_ISO_DATE_TIME_SCHEMA, q as spaceDispatchTraceAttemptStatusSchema, rt as agentProfileCreationConfigurationSchema, s as createAgentActivityApi, tt as summarizeComputerFileAccessPolicy, u as createComputerFileAccessApi, v as createPrepareReadinessApi, wt as authProfileManagedRoleSchema, x as createRoutinesApi, yt as stringifyOrganizationSkillBundleCanonicalJson } from "./dist-CVMhZExu.js";
6
- import { Gr as openMeldProfileIdSchema, Mt as spaceStatusSchema, Nt as centerAgentInteractionSourceSchema, Rt as isSpaceFileTextEditable, Vt as resolveSpaceFileMimeType, Xr as openMeldRuntimeProfileIdSchema, ai as trimmedStringFromUnknown, ar as enumFactory, br as unknown, cn as spaceContractFieldsSchema, cr as literal, er as array, fr as object, gr as string, hr as strictObject, in as spaceThreadContextSchema, ln as spaceContractSchema, mr as record, or as int, ri as nonEmptyTrimmedStringFromUnknown, rn as dispatchExecutionSchema, rr as discriminatedUnion, sr as iso, tr as boolean, ur as nullFactory, wr as clientMessageIdSchema, xn as messageEnvelopeSchema, yr as union } from "./runtime-transport-BDoAgIGZ.js";
4
+ import { $ as runAgentsManage, $a as LocalProjectConnectionError, $i as resetCurrentCommandCheckState, $n as isCliUpdateCheckApplicable, $o as cliJsonOutputEnvelopeSchema, $r as resolveServiceReadinessFromServiceStatus, $t as ensureLocalSkills, A as parseEnvelope, Aa as resolveViewProfileKey, Ai as getAgentControllerPermissionModeFieldLabel, An as submitProfileRuntimeAgentControllerReport, Ao as enqueueAgentActivityHookEvent, Ar as registerSpaceMemberSelectionOptions, At as createDelayedSpinner, B as resolveHumanControllerDisplayName, Ba as updateOpenMeldProfile, Bi as buildOnboardingPlan, Bn as buildDispatchResultMessageReadProjection, Bo as setDefaultProjectConnection, Br as buildDualViewGuideMessage, Bt as toStructuredGatewayFailure, C as toSpaceMetaUpsertInput, Ca as buildHumanErrorCopy, Ci as reconcileNewRunnableBuiltinAgentsForSetup, Cn as resolveCreateProfileName, Co as upsertDaemonServiceContract, Cr as createSpaceTargetGuideError, Ct as runDaemonStop, D as formatHumanReadTargetList, Da as formatMessage, Di as buildAgentControllerRef, Dn as resolveServiceParticipationReadiness, Do as resolveObservedAgentActivityBinding, Dr as createUpgradeConfirmationGuideError, Dt as buildProfileWorkspaceRows, E as buildHumanReplyContextSummary, Ea as createPresenter, Ei as resolveLocalRegistryAgentIdFromAgentControllerRef, En as formatServiceParticipationReadinessLabel, Eo as buildAgentActivityEvent, Er as createStartAuthenticationGuideError, Et as buildProfileWorkspacePresentation, F as resolveOpenMeldProfileForSpaceCommand, Fa as createOpenMeldHumanProfile, Fi as resolveAgentProfileEditCapabilities, Fn as resolveLocalAgentControllerLaunchability, Fo as listProjectBindings, Fr as registerAuthLoginRequestOptions, Ft as createCliSpaceApi, G as runAgentsCustomAdd, Ga as buildAgentAuthenticationGuide, Gi as classifyDaemonServiceWakeability, Gn as buildUpdatesReplyWorkflowProjection, Go as renderInfoCard, Gr as buildAgentFacingPublicationModeGuideLines, Gt as runDaemonServiceParticipationGate, H as resolveAgentProfileSetup, Ha as clearSelectedOpenMeldProfileId, Hi as buildDaemonServiceTargetSpec, Hn as buildSignalIndex, Ho as canonicalizeLocalProjectPath, Hr as OPENMELD_AGENT_MENTAL_MODEL_LINES, Ht as resolveLocalComponentsStatus, I as emitSpaceAgentOverview, Ia as deleteOpenMeldProfile, Ii as resolveEvidenceSyncHealth, In as resolveLocalAgentControllerReportDecision, Io as listProjectConnectionsWithStatus, Ir as registerBuiltinAgentSelectionOptions, It as fetchSpaceMeta, J as runAgentsCustomUpdate, Ja as resolveAuthenticationGuidance, Ji as resolveOpenMeldEnvironmentTarget, Jn as promptSearchMultiselect, Jo as emitCliJsonEnvelope, Jr as runPendingDaemonServiceUpdate, Jt as runSkillsCheck$1, K as runAgentsCustomList, Ka as buildHumanAuthenticationCard, Ki as resolveServiceUpdateUrgency, Kn as createSpaceMemberIdentityIndex, Ko as renderTextInfoCard, Kr as canonicalizeAllowedActions, Kt as runDaemonStartDecisionPrompt, L as emitSpaceCliAgentOverview, La as listOpenMeldProfiles, Li as resolveNativeAgentControllerPermissionModeForController, Ln as inspectSpaceCacheFile, Lo as migrateProjectBindingStore, Lr as buildAgentOverviewFromContract, Lt as updateSpaceMeta, M as assertFullSignalIdArgument, Ma as requireOpenMeldProfile, Mi as parseAgentControllerRef, Mn as submitRuntimeAgentControllerReports, Mo as readAgentActivityOutboxHealth, Mr as registerSkillsTargetSelectionOptions, Mt as runDaemonStartupPreflight, N as assertValidSpaceIdTarget, Na as resolveOpenMeldProfileOrNull, Ni as resolveAgentControllerPermissionModeForController, Nn as collectLocalAgentControllerInventory, No as removeProjectOutbox, Nr as getCliVersionInfo, Nt as readDaemonStartFailureLogTailLines, O as resolveLinkAccessLabel, Oa as parseCliViewMode, Oi as createAgentExecutionStatusDisplayRows, On as assessActionParticipationCandidate, Oo as normalizeSharedSessionTitle, Or as getCommandEntryContract, Ot as reconcileCliVersionView, P as prepareAuthenticatedSpaceCommandContext, Pa as createOpenMeldAgentProfile, Pi as resolveAgentExecutionStatus, Pn as resolveLocalAgentControllerBlockerReasonCodes, Po as bindProject, Pr as registerDaemonControlTargetOptions, Pt as fetchSpaceUpdates, Q as runAgentsList, Qa as setProfileDefaultView, Qi as isCurrentCommandCheckScopeActive, Qn as assessCliUpdate, Qo as cliBinaryDeltaPatchSchema, Qr as formatDaemonFailureContextText, Qt as runSkillsUpdate, R as prepareLocalAgentReadiness, Ra as primeOpenMeldProfilesSessionCache, Rn as upsertSpaceConfig, Ro as removeProjectConnection, Rr as DualViewGuideError, Rt as readGatewayJsonResponse, S as loadSpaceSignalIndexOrNull, Sa as OPENMELD_VERSION, Si as listAgentTargetStates, Sn as resolveCreateProfileKind, So as readDaemonServiceContract, Sr as createSpaceSubcommandTargetGuideError, St as runDaemonStatusFlow, T as buildFormalSignalReadPayload, Ta as renderHumanTextErrorCard, Ti as notifyDaemonRouteCatalogChanged, Tn as ensureAgentProfileRuntimeBinding, To as removeAgentActivityContextCache, Tr as createStartAgentIdentityGuideError, Tt as runDaemonUninstall, U as runAgents, Ua as getSelectedOpenMeldProfileId, Ui as resolveDaemonServiceAlignmentDecision, Un as buildSignalMessageReadProjection, Uo as enqueueControllerTaskLifecycleEventWhileLocked, Ur as SPACE_CONTRACT_ALLOWED_ACTION_ORDER, Ut as writeInstalledLocalComponentsSnapshot, V as persistAgentTransportSelection, Va as alignSelectedOpenMeldProfileStorage, Vi as getSetupFlowCopy, Vn as buildDispatchResultReplyWorkflowProjection, Vo as unbindProject, Vr as formatAgentOverviewPayload, Vt as parseJsonResponse, W as runAgentsConfig, Wa as setSelectedOpenMeldProfileId, Wi as classifyDaemonServiceRunStartability, Wn as buildSpaceRoundReadProjection, Wo as readControllerTaskLifecycleOutboxHealth, Wr as areAllowedActionsEquivalent, Wt as resolveDaemonServiceParticipationStatus, X as runAgentsDisable, Xa as resolveAuthenticationGuidanceFromMessage, Xi as finishCurrentCommandCheckScope, Xn as isReturnKeypress, Xo as outJsonLine, Xr as ensureDaemonRuntimePaths, Xt as runSkillsInstall, Y as runAgentsDetect, Ya as resolveAuthenticationGuidanceFromError, Yi as resolveAuthBaseUrl, Yn as promptSearchSelect, Yo as errLine, Yr as scheduleDaemonServiceUpdate, Yt as runSkillsEnsure, Z as runAgentsEnable, Za as getProfileDefaultView, Zi as getCurrentCommandCheckState, Zn as runInteractivePrompt, Zo as outLine, Zr as resolveDaemonDeviceId, Zt as runSkillsUninstall, _ as runSpaceWriteWithPasswordRetry, _a as readVersionState, _i as validateCustomProfileWorkspacePath, _n as requestDeviceToken, _o as formatOpenMeldCliTextBlock, _r as createSpaceLeaveGuideError, _t as runDaemonInstall, a as runSpaceDelete, aa as getDaemonSystemServiceLogPath, ai as mapAgentReplyReadinessToLegacyAutoReply, an as ensureCommandAuthenticationOrCancel, ao as resolveAgentActivityRouteForPath, ar as resolveElapsedTimeMs, as as revokeOrganizationJoinLinkResponseSchema, at as printOpenMeldBanner, b as buildIdentityOnlyMembersSnapshotForReadProjection, ba as toStartBackgroundHelperExecutionCompatibility, bi as createPrimaryBindingReadSession, bn as revokeAuthAccessToken, bo as resolveUserFacingCliEntryCommand, br as createSpaceRemoveMembersGuideError, bt as runDaemonRunAfterEntryChecks, c as runSpaceLeave, ca as resolveDaemonServiceManager, ci as syncProfileWorkspaceState, cn as runAuthLogout, co as defaultManagedIntegrationPaths, cr as canUseInteractivePrompts, ct as renderOpenMeldLogo, d as runSpaceRemoveMembers, da as performManagedInstall, di as ensureOpenMeldManagedProfileWorkspace, dn as exchangeOneTimeTokenAuthSession, do as resolveAgentActivityDispatcherCommand, dr as createProfileCreateGuideError, dt as resolveSpaceSendText, ea as startCurrentCommandCheckScope, ei as resolveDaemonServiceFreshnessWarning, en as readBundledOpenMeldCliSkillDocumentByPath, eo as validateLocalProjectConnectionPath, er as assertDispatchOwnedRuntimePublicWriteAllowed, es as cliJsonSkillsListEnvelopeSchema, et as runAgentsRepair, f as runSpaceSend, fa as buildNextVersionState, fi as normalizeCustomProfileWorkspacePath, fn as buildAuthStatusRows, fo as uninstallAgentActivityIntegrations, fr as createProfileMenuGuideError, ft as bestEffortStopCurrentLaneDaemonService, g as runSpaceReadWithPasswordRetry, ga as fetchLatestPackageInfo, gi as setOpenMeldManagedProfileWorkspace, gn as fetchAuthUserSnapshot, go as formatOpenMeldCliLine, gr as createSpaceContractSetGuideError, gt as runDaemonCancel, h as uploadPreparedSpaceFiles, ha as fetchLatestCliBinaryRelease, hi as setCustomProfileWorkspace, hn as extractAuthApiErrorMessage, ho as formatOpenMeldCliCommands, hr as createSpaceAliasTargetGuideError, ht as runDaemonBackgroundStartForDecision, i as runSpaceCreate, ia as readCurrentObservedDaemonRuntimeStatus, ii as formatHumanReplyReadinessReason$1, in as buildCommandAuthenticationPromptMessage, io as registerAgentActivityRoute, ir as formatElapsedTime, is as organizationJoinLinkErrorResponseSchema, it as colorizeDisplayProfileLabel, j as isSpaceCommandOutputHandledError, ja as isSelectedOpenMeldProfileRequiredError, ji as listAgentControllerPermissionModeOptions, jn as submitRuntimeAgentControllerReport, jo as removeProjectInbox, jr as SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS, jt as shouldEmitAgentOverview, k as resolveOrganizationVisibilityLabel, ka as resolveRuntimeContext, ki as getAgentControllerPermissionModeDisplayMetadata, kn as computeRetryDelayMs, ko as readCodexSessionTitles, kr as getCommandHintsFromContract, kt as emitDaemonAgentOverview, l as runSpaceList, la as readRecentDaemonLifecycleEvents, li as createModelCatalogReadSession, ln as runAuthMenu, lo as installAgentActivityIntegrations, lr as createDoctorFailedGuideError, lt as renderOpenMeldTagline, m as prepareRequestedSpaceSendFiles, ma as ensureVersionStateReady, mi as resolveConfiguredProfileWorkspacePath, mn as formatActiveOrganizationLabel, mo as formatOpenMeldCliCommand, mr as createSpaceAddMembersGuideError, mt as runDaemonAutostart, n as promptAndConfirmSpacePassword, na as resolveVersionChangeDirection, ni as formatAgentReplyReadinessLabel, nn as readRecentDaemonDispatchJournalEvents, no as requestLocalAgentActivitySync, nr as readDispatchSpaceActionContextFromEnv, ns as cliJsonSkillsShowEnvelopeSchema, nt as formatTransportModeDisplay, o as runSpaceHistory, oa as isDaemonServiceJobNeverSpawned, oi as resolveGatewayChainReadiness, on as evaluateCommandAuthentication, oo as unregisterAgentActivityRoute, or as formatDaemonServiceDowngradeBlockedRecommendation, os as compareAgentControllerRefsForDisplay, ot as renderOpenMeldBrandBlockLines, p as runSpaceWatch, pa as compareSemver, pi as readProfileWorkspaceConfig, pn as buildAuthStatusSnapshot, po as formatInlineOpenMeldCliCommands, pr as createResetConfirmationGuideError, pt as runDaemon, q as runAgentsCustomRemove, qa as createAuthenticationError, qi as assessServerRequiredVersion, qn as formatRemovedCcRelationMessage, qo as sanitizeTerminalDisplayText, qr as readOpenMeldToolsUpdateContextFromEnv, qt as collectSkillsReadinessSnapshot, r as runSpaceAddMembers, ra as readCurrentDaemonRuntimeContext, ri as formatDeviceReplyReadinessLabel, rn as connectWebSocket, ro as isAgentActivityRouteRegistered, rr as writeDispatchSpaceActionRecord, rs as getOrganizationJoinLinkResponseSchema, rt as colorizeAgentLabel, s as runSpaceJoin, sa as readDaemonServiceJobCrashExitCode, si as resolveOpenClawLocalDiagnosticsValue, sn as runAuthLogin, sr as formatDaemonServiceMissingRecommendation, st as renderOpenMeldHeader, t as buildCreateSpacePasswordPromptConfig, ta as inspectDaemonServiceInventory, ti as resolveCurrentReplyReadinessSnapshot, tn as readRuntimeReportingHealthState, to as LocalDaemonControlPlaneClientError, tr as readDispatchOwnedRuntimeGuard, ts as cliJsonSkillsLoadEnvelopeSchema, tt as runAgentsShow, u as runSpacePassword, ua as buildInstallSelfJsonPayload, ui as resolveProfileWorkspaceRuntime, un as runAuthStatus, uo as readAgentActivityIntegrationStatus, ur as createProfileActionGuideError, ut as resolveGatewayWebOrigin, v as buildHumanReadSignalsTranscriptItems, va as writeVersionState, vi as describeProfileWorkspacePathValidationFailure, vn as resolveDeviceAuthClientId, vo as formatProfileAwareOpenMeldCliCommands, vr as createSpaceMenuGuideError, vt as runDaemonInterrupt, w as buildFormalDispatchResultReadPayload, wa as renderHumanErrorCard, wi as listBuiltinAgentsRegistryEntries, wn as promptTextEntry, wo as readAgentActivityContextForPath, wr as createSpaceUpdatesGuideError, wt as runDaemonTeardownStrict, x as loadSpaceIdentityDirectoryOrNull, xa as resolveCurrentDaemonExpectedVersion, xi as resolveAgentProfilePrimaryAgentControllerReport, xn as createProfileByKind, xo as syncLocalAgentActivity, xr as createSpaceResultGuideError, xt as runDaemonSnapshot, y as emitHumanReadSignalsTextProjection, ya as resolveDaemonRuntimeContractCompatibility, yi as syncDeviceRuntimeStateProjection, yn as resolveDeviceTokenExpiresAt, yo as resolveSetupFollowUpCliEntryCommand, yr as createSpacePublicationSetGuideError, yt as runDaemonReinstall, z as buildReplyReadinessGuidance, za as resolveOpenMeldProfile, zi as buildDaemonRouteObservationPresentation$1, zn as assertNoRemovedCcSpaceAddressingSyntax, zo as runIfAgentActivityBindingGenerationIsCurrent, zr as formatDualViewGuideForDisplay, zt as readGatewayTextResponse } from "./command-CTQlQSYV.js";
5
+ import { $ as ownerComputerDiagnosticsSchema, $t as agentActivityInventorySessionStatusSchema, B as sleep, Bt as agentActivityProviderSchema, Ct as authProfileKindSchema, D as toStructuredApiClientFailure, F as OPENMELD_HEADER_PROFILE_ID, G as projectSpaceDispatchTraceFinalVisibleOutcome, Ht as agentActivitySnapshotQuerySchema, J as spaceDispatchTraceDispatchStatusSchema, K as resolveSpaceDispatchTraceRootCause, Ot as submitFeedbackIssueRequestSchema, Qt as agentActivityInventorySessionOriginSchema, Vt as agentActivitySessionStatusSchema, W as SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER, X as observabilityWakeTraceSelectorSchema, Y as spaceDispatchTraceResponseSchema, Z as projectObservabilityWakeCorrelation, _ as createOrganizationSkillsApi, b as createProjectsApi, c as createAgentProfileBindingApi, d as createCurrentDeviceApi, dn as START_BOUNDED_ID_SCHEMA, en as agentActivitySessionInventoryQuerySchema, et as projectOwnerComputerLocalRuntimes, f as createFeedbackApi, fn as START_BOUNDED_VERSION_SCHEMA, g as createOrganizationApi, gn as localAgentCatalogSchema, gt as organizationSkillBundleSchema, hn as startReplyReadinessSummarySchema, l as createCenterAgentApi, mn as START_TRIMMED_NON_EMPTY_STRING_SCHEMA, nn as localAgentSessionProviderSchema, nt as DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION, pn as START_ISO_DATE_TIME_SCHEMA, q as spaceDispatchTraceAttemptStatusSchema, rt as agentProfileCreationConfigurationSchema, s as createAgentActivityApi, tt as summarizeComputerFileAccessPolicy, u as createComputerFileAccessApi, v as createPrepareReadinessApi, wt as authProfileManagedRoleSchema, x as createRoutinesApi, yt as stringifyOrganizationSkillBundleCanonicalJson } from "./dist-Fj_YSHkO.js";
6
+ import { $r as openMeldRuntimeProfileIdSchema, Cr as unknown, Dr as clientMessageIdSchema, Jr as openMeldProfileIdSchema, Mt as spaceStatusSchema, Nt as centerAgentInteractionSourceSchema, Sr as union, Ut as resolveSpaceFileMimeType, _r as record, ci as trimmedStringFromUnknown, cr as enumFactory, dn as spaceContractFieldsSchema, dr as literal, fn as spaceContractSchema, hr as object, ir as boolean, lr as int, oi as nonEmptyTrimmedStringFromUnknown, on as dispatchExecutionSchema, or as discriminatedUnion, pr as nullFactory, rr as array, sn as spaceThreadContextSchema, ur as iso, vr as strictObject, wn as messageEnvelopeSchema, yr as string, zt as isSpaceFileTextEditable } from "./runtime-transport-D4_-d5Yb.js";
7
7
  import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
8
8
  import { j as getDaemonStatus } from "./daemon-runtime-lease-D82uDZ5s.js";
9
- import { _ as runMacOsNativeKeychainHelperIfRequested, a as beginAuthSessionTransition, c as getAuthSessionMetadata, d as getInterruptedComputerAuthSessionRecovery, f as markInterruptedComputerAuthSessionRecovery, g as updateAuthSessionActiveOrganization, l as getAuthSessionState, m as recordInterruptedComputerAuthSessionRecoveryFailure, n as AuthSessionRecoveryInProgressError, o as clearAuthSession, p as normalizeStoredActiveOrganization, s as completeInterruptedComputerAuthSessionRecovery, t as AuthSessionChangedBeforeTransitionError, u as getCurrentAuthOwnerUserId, v as isBinaryDistribution, y as resolveOpenMeldDistribution } from "./auth-session-B5q1RVQS.js";
10
- import { c as buildOpenMeldRequestContextHeadersWithAuth, d as buildOpenMeldRequestContextFromProfile, l as buildRequestAuthHeaders, n as createCliApiClientFoundation, p as deriveAuthBaseUrlFromGatewayUrl, r as fetchSpaceRequestWithTimeout } from "./api-client-foundation-BgaIDXC5.js";
9
+ import { _ as runMacOsNativeKeychainHelperIfRequested, a as beginAuthSessionTransition, c as getAuthSessionMetadata, d as getInterruptedComputerAuthSessionRecovery, f as markInterruptedComputerAuthSessionRecovery, g as updateAuthSessionActiveOrganization, l as getAuthSessionState, m as recordInterruptedComputerAuthSessionRecoveryFailure, n as AuthSessionRecoveryInProgressError, o as clearAuthSession, p as normalizeStoredActiveOrganization, s as completeInterruptedComputerAuthSessionRecovery, t as AuthSessionChangedBeforeTransitionError, u as getCurrentAuthOwnerUserId, v as isBinaryDistribution, y as resolveOpenMeldDistribution } from "./auth-session-BbrUVaZd.js";
10
+ import { c as buildOpenMeldRequestContextHeadersWithAuth, d as buildOpenMeldRequestContextFromProfile, l as buildRequestAuthHeaders, n as createCliApiClientFoundation, p as deriveAuthBaseUrlFromGatewayUrl, r as fetchSpaceRequestWithTimeout } from "./api-client-foundation-DNnxEYcg.js";
11
11
  import { Command, Option } from "commander";
12
12
  import os, { homedir, hostname, release, tmpdir } from "node:os";
13
13
  import * as z$1 from "zod/v4";
@@ -2205,10 +2205,6 @@ const COMMAND_CHECK_REQUIREMENTS = Object.freeze({
2205
2205
  "organization.invite_link.get": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
2206
2206
  "organization.invite_link.create": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
2207
2207
  "organization.invite_link.revoke": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
2208
- "binding.menu": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
2209
- "binding.authorize": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
2210
- "binding.revoke": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
2211
- "binding.list": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
2212
2208
  "center_agent.menu": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
2213
2209
  "center_agent.ask": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
2214
2210
  "center_agent.context": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
@@ -2363,14 +2359,6 @@ const COMMAND_ENTRY_NAME_BY_ROUTE = {
2363
2359
  "org invite-link get": "organization.invite_link.get",
2364
2360
  "org invite-link create": "organization.invite_link.create",
2365
2361
  "org invite-link revoke": "organization.invite_link.revoke",
2366
- binding: "binding.menu",
2367
- bindings: "binding.menu",
2368
- "binding authorize": "binding.authorize",
2369
- "bindings authorize": "binding.authorize",
2370
- "binding revoke": "binding.revoke",
2371
- "bindings revoke": "binding.revoke",
2372
- "binding list": "binding.list",
2373
- "bindings list": "binding.list",
2374
2362
  "center-agent": "center_agent.menu",
2375
2363
  "center-agent ask": "center_agent.ask",
2376
2364
  "center-agent context": "center_agent.context",
@@ -3967,30 +3955,6 @@ const COMMAND_ENTRY_COPY_BY_NAME = Object.freeze({
3967
3955
  cliUpdateAction: "revoking the Organization invite link",
3968
3956
  serviceAction: null
3969
3957
  },
3970
- "binding.menu": {
3971
- signInAction: "managing Binding authorizations",
3972
- profileAction: null,
3973
- cliUpdateAction: "managing Binding authorizations",
3974
- serviceAction: null
3975
- },
3976
- "binding.authorize": {
3977
- signInAction: "authorizing this Binding",
3978
- profileAction: null,
3979
- cliUpdateAction: "authorizing this Binding",
3980
- serviceAction: null
3981
- },
3982
- "binding.revoke": {
3983
- signInAction: "revoking this Binding authorization",
3984
- profileAction: null,
3985
- cliUpdateAction: "revoking this Binding authorization",
3986
- serviceAction: null
3987
- },
3988
- "binding.list": {
3989
- signInAction: "listing Binding authorizations",
3990
- profileAction: null,
3991
- cliUpdateAction: "listing Binding authorizations",
3992
- serviceAction: null
3993
- },
3994
3958
  "center_agent.menu": {
3995
3959
  signInAction: "managing the Center Agent",
3996
3960
  profileAction: null,
@@ -6948,410 +6912,6 @@ function registerProjectCommands(program, handlers) {
6948
6912
  projects.command("unbind").description("Stop collecting new activity for one local Project.").argument("<project-slug>", "Project slug").option("--organization <organization-id>", "Organization id when the same slug has multiple local bindings").option("--project-id <project-id>", "Project id when a reused slug matches multiple local Projects").option("--json", "Print one machine-readable JSON envelope.", false).action(handlers.unbind);
6949
6913
  return projects;
6950
6914
  }
6951
- //#endregion
6952
- //#region src/binding/command.ts
6953
- async function runBindingAuthorize(input) {
6954
- const context = await resolveBindingCommandContext(input);
6955
- if (!context) return;
6956
- const agentProfileId = normalizeAgentProfileId$1(input.agentProfileId);
6957
- if (!agentProfileId) {
6958
- emitBindingCommandError({
6959
- presenter: context.presenter,
6960
- code: "binding.agent_profile_required",
6961
- title: "Agent Profile Required",
6962
- message: "Choose the Agent Profile whose primary Binding to authorize.",
6963
- nextStep: "Run `openmeld binding authorize <agent-profile-id>`.",
6964
- activeOrganization: context.activeOrganization
6965
- });
6966
- return;
6967
- }
6968
- try {
6969
- const response = await (await createBindingApi()).authorizePrimaryBindingForOrganization({ agentProfileId });
6970
- emitBindingAuthorizeSuccess({
6971
- activeOrganization: context.activeOrganization,
6972
- presenter: context.presenter,
6973
- response,
6974
- runtime: context.runtime
6975
- });
6976
- } catch (error) {
6977
- emitBindingApiError({
6978
- activeOrganization: context.activeOrganization,
6979
- agentProfileId,
6980
- error,
6981
- operation: "authorize",
6982
- presenter: context.presenter
6983
- });
6984
- }
6985
- }
6986
- async function runBindingList(input) {
6987
- const context = await resolveBindingCommandContext(input);
6988
- if (!context) return;
6989
- try {
6990
- const response = await (await createBindingApi()).listOrganizationAuthorizations();
6991
- emitBindingListSuccess({
6992
- activeOrganization: context.activeOrganization,
6993
- presenter: context.presenter,
6994
- response,
6995
- runtime: context.runtime
6996
- });
6997
- } catch (error) {
6998
- emitBindingApiError({
6999
- activeOrganization: context.activeOrganization,
7000
- error,
7001
- operation: "list",
7002
- presenter: context.presenter
7003
- });
7004
- }
7005
- }
7006
- async function runBindingRevoke(input) {
7007
- const context = await resolveBindingCommandContext(input);
7008
- if (!context) return;
7009
- const agentProfileId = normalizeAgentProfileId$1(input.agentProfileId);
7010
- if (!agentProfileId) {
7011
- emitBindingCommandError({
7012
- presenter: context.presenter,
7013
- code: "binding.agent_profile_required",
7014
- title: "Agent Profile Required",
7015
- message: "Choose the Agent Profile whose organization authorization to revoke.",
7016
- nextStep: "Run `openmeld binding revoke <agent-profile-id>`.",
7017
- activeOrganization: context.activeOrganization
7018
- });
7019
- return;
7020
- }
7021
- try {
7022
- const response = await (await createBindingApi()).revokePrimaryBindingForOrganization({ agentProfileId });
7023
- emitBindingRevokeSuccess({
7024
- activeOrganization: context.activeOrganization,
7025
- presenter: context.presenter,
7026
- response,
7027
- runtime: context.runtime
7028
- });
7029
- } catch (error) {
7030
- emitBindingApiError({
7031
- activeOrganization: context.activeOrganization,
7032
- agentProfileId,
7033
- error,
7034
- operation: "revoke",
7035
- presenter: context.presenter
7036
- });
7037
- }
7038
- }
7039
- async function resolveBindingCommandContext(input) {
7040
- const runtime = await resolveRuntimeContext({ view: input?.view });
7041
- const presenter = createPresenter(runtime);
7042
- const authState = await getAuthSessionState({ validateRemote: true });
7043
- if (authState.state !== "valid" || !authState.session) {
7044
- emitBindingCommandError({
7045
- presenter,
7046
- code: "binding.auth_required",
7047
- title: "Sign In Needed",
7048
- message: "Sign in to OpenMeld before managing Binding authorizations.",
7049
- nextStep: "Run `openmeld login`, then retry this command.",
7050
- activeOrganization: null,
7051
- payload: {
7052
- authState: authState.state,
7053
- reasonCode: authState.reasonCode ?? null
7054
- }
7055
- });
7056
- return null;
7057
- }
7058
- const activeOrganization = authState.session.activeOrganization ?? null;
7059
- if (!activeOrganization) {
7060
- emitBindingCommandError({
7061
- presenter,
7062
- code: "binding.organization_required",
7063
- title: "No Active Organization",
7064
- message: "Choose an active OpenMeld organization before managing Binding authorizations.",
7065
- nextStep: "Run `openmeld org list`, then `openmeld org switch <slug>`.",
7066
- activeOrganization: null
7067
- });
7068
- return null;
7069
- }
7070
- return {
7071
- activeOrganization,
7072
- presenter,
7073
- runtime
7074
- };
7075
- }
7076
- async function createBindingApi() {
7077
- return createAgentProfileBindingApi(createCliApiClientFoundation(await resolveBaseUrl()));
7078
- }
7079
- function emitBindingAuthorizeSuccess(input) {
7080
- const payload = buildBindingAuthorizationPayload({
7081
- activeOrganization: input.activeOrganization,
7082
- authorization: input.response
7083
- });
7084
- if (input.runtime.resolvedView === "human") {
7085
- renderBindingAuthorizationCard({
7086
- activeOrganization: input.activeOrganization,
7087
- presenter: input.presenter,
7088
- response: input.response,
7089
- title: input.response.status === "already_authorized" ? "Binding Already Authorized" : "Binding Authorized"
7090
- });
7091
- return;
7092
- }
7093
- input.presenter.data({
7094
- code: "binding.authorize",
7095
- payload
7096
- });
7097
- }
7098
- function emitBindingListSuccess(input) {
7099
- const payload = {
7100
- status: "ok",
7101
- organization: { active: input.activeOrganization },
7102
- organizationId: input.response.organizationId,
7103
- authorizations: input.response.authorizations
7104
- };
7105
- if (input.runtime.resolvedView === "human") {
7106
- renderBindingAuthorizationListCard({
7107
- activeOrganization: input.activeOrganization,
7108
- authorizations: input.response.authorizations,
7109
- organizationId: input.response.organizationId,
7110
- presenter: input.presenter
7111
- });
7112
- return;
7113
- }
7114
- input.presenter.data({
7115
- code: "binding.list",
7116
- payload
7117
- });
7118
- }
7119
- function emitBindingRevokeSuccess(input) {
7120
- const payload = {
7121
- status: "ok",
7122
- organization: { active: input.activeOrganization },
7123
- revocation: input.response
7124
- };
7125
- if (input.runtime.resolvedView === "human") {
7126
- renderBindingRevocationCard({
7127
- activeOrganization: input.activeOrganization,
7128
- presenter: input.presenter,
7129
- response: input.response
7130
- });
7131
- return;
7132
- }
7133
- input.presenter.data({
7134
- code: "binding.revoke",
7135
- payload
7136
- });
7137
- }
7138
- function emitBindingApiError(input) {
7139
- const failure = toStructuredApiClientFailure(input.error);
7140
- const classified = classifyBindingApiFailure({
7141
- agentProfileId: input.agentProfileId,
7142
- failure,
7143
- operation: input.operation
7144
- });
7145
- emitBindingCommandError({
7146
- presenter: input.presenter,
7147
- code: classified.code,
7148
- title: classified.title,
7149
- message: classified.message,
7150
- nextStep: classified.nextStep,
7151
- activeOrganization: input.activeOrganization,
7152
- details: [
7153
- ...failure.status === null ? [] : [{
7154
- label: "HTTP Status",
7155
- value: String(failure.status)
7156
- }],
7157
- ...failure.requestId ? [{
7158
- label: "Request ID",
7159
- value: failure.requestId
7160
- }] : [],
7161
- ...failure.upstreamCode ? [{
7162
- label: "Upstream Code",
7163
- value: failure.upstreamCode
7164
- }] : [],
7165
- ...failure.schemaIssueMessage ? [{
7166
- label: "Schema Issue",
7167
- value: failure.schemaIssueMessage
7168
- }] : []
7169
- ],
7170
- payload: {
7171
- ...input.agentProfileId ? { agentProfileId: input.agentProfileId } : {},
7172
- failure: {
7173
- code: failure.code,
7174
- requestId: failure.requestId,
7175
- status: failure.status,
7176
- upstreamCode: failure.upstreamCode
7177
- }
7178
- }
7179
- });
7180
- }
7181
- function classifyBindingApiFailure(input) {
7182
- if (input.failure.status === 401) return {
7183
- code: "binding.auth_required",
7184
- title: "Sign In Needed",
7185
- message: "OpenMeld could not verify your sign-in for this Binding command.",
7186
- nextStep: "Run `openmeld login`, then retry this command."
7187
- };
7188
- if (input.failure.status === 403) return {
7189
- code: "binding.organization_access_denied",
7190
- title: "Organization Access Needed",
7191
- message: "The active organization does not allow this Binding authorization command.",
7192
- nextStep: "Run `openmeld org current` to confirm the active organization, then ask an organization admin for access."
7193
- };
7194
- if (input.failure.status === 404 && input.operation !== "list") return {
7195
- code: "binding.agent_profile_not_found",
7196
- title: "Agent Profile Not Found",
7197
- message: `OpenMeld could not find Agent Profile ${input.agentProfileId ?? ""}.`.trim(),
7198
- nextStep: "Check the Agent Profile ID, then retry this command."
7199
- };
7200
- if (input.failure.code === "gateway.invalid_response") return {
7201
- code: "binding.response_invalid",
7202
- title: "Binding Response Invalid",
7203
- message: "OpenMeld returned an invalid Binding authorization response.",
7204
- nextStep: "Retry after OpenMeld Gateway is updated and healthy."
7205
- };
7206
- const operationLabel = formatBindingOperationLabel(input.operation);
7207
- return {
7208
- code: `binding.${input.operation}_failed`,
7209
- title: "Binding couldn't be authorized",
7210
- message: `OpenMeld could not ${operationLabel}.`,
7211
- nextStep: "Retry after OpenMeld Gateway is reachable."
7212
- };
7213
- }
7214
- function formatBindingOperationLabel(operation) {
7215
- if (operation === "authorize") return "authorize this Binding";
7216
- if (operation === "revoke") return "revoke this Binding authorization";
7217
- return "list Binding authorizations";
7218
- }
7219
- function emitBindingCommandError(input) {
7220
- process.exitCode = 1;
7221
- const payload = {
7222
- status: "error",
7223
- organization: { active: input.activeOrganization ?? null },
7224
- error: {
7225
- code: input.code,
7226
- message: input.message,
7227
- nextStep: input.nextStep
7228
- },
7229
- ...input.details ? { details: input.details } : {},
7230
- ...input.payload ?? {}
7231
- };
7232
- if (input.presenter.view === "human") {
7233
- renderHumanErrorCard({
7234
- codePrefix: "binding.error.card",
7235
- message: input.message,
7236
- nextStep: input.nextStep,
7237
- presenter: input.presenter,
7238
- title: input.title
7239
- });
7240
- return;
7241
- }
7242
- input.presenter.data({
7243
- code: input.code,
7244
- payload
7245
- });
7246
- }
7247
- function renderBindingAuthorizationCard(input) {
7248
- renderInfoCard({
7249
- presenter: input.presenter,
7250
- title: input.title,
7251
- codePrefix: "binding.authorize.card",
7252
- rows: [
7253
- {
7254
- label: "Organization",
7255
- value: formatOrganizationLabel$2(input.activeOrganization)
7256
- },
7257
- {
7258
- label: "Agent Profile ID",
7259
- value: input.response.agentProfileId
7260
- },
7261
- {
7262
- label: "Binding ID",
7263
- value: input.response.bindingId
7264
- },
7265
- {
7266
- label: "Status",
7267
- value: input.response.status
7268
- },
7269
- {
7270
- label: "Authorized By",
7271
- value: input.response.authorizedBy
7272
- },
7273
- {
7274
- label: "Created At",
7275
- value: input.response.createdAt
7276
- }
7277
- ],
7278
- sanitize: true,
7279
- minContentWidth: 72
7280
- });
7281
- }
7282
- function renderBindingAuthorizationListCard(input) {
7283
- renderInfoCard({
7284
- presenter: input.presenter,
7285
- title: "Binding Authorizations",
7286
- codePrefix: "binding.list.card",
7287
- rows: [
7288
- {
7289
- label: "Organization",
7290
- value: formatOrganizationLabel$2(input.activeOrganization)
7291
- },
7292
- {
7293
- label: "Organization ID",
7294
- value: input.organizationId
7295
- },
7296
- {
7297
- label: "Authorization Count",
7298
- value: String(input.authorizations.length)
7299
- },
7300
- ...input.authorizations.map((authorization) => ({
7301
- label: "Agent Profile",
7302
- value: `${authorization.agentProfileId} -> ${authorization.bindingId}`
7303
- }))
7304
- ],
7305
- sanitize: true,
7306
- minContentWidth: 72
7307
- });
7308
- }
7309
- function renderBindingRevocationCard(input) {
7310
- renderInfoCard({
7311
- presenter: input.presenter,
7312
- title: input.response.status === "missing" ? "Binding Authorization Missing" : "Binding Authorization Revoked",
7313
- codePrefix: "binding.revoke.card",
7314
- rows: [
7315
- {
7316
- label: "Organization",
7317
- value: formatOrganizationLabel$2(input.activeOrganization)
7318
- },
7319
- {
7320
- label: "Agent Profile ID",
7321
- value: input.response.agentProfileId
7322
- },
7323
- {
7324
- label: "Status",
7325
- value: input.response.status
7326
- },
7327
- {
7328
- label: "Revoked",
7329
- value: input.response.revoked ? "yes" : "no"
7330
- },
7331
- ...input.response.bindingId ? [{
7332
- label: "Binding ID",
7333
- value: input.response.bindingId
7334
- }] : []
7335
- ],
7336
- sanitize: true,
7337
- minContentWidth: 72
7338
- });
7339
- }
7340
- function buildBindingAuthorizationPayload(input) {
7341
- return {
7342
- status: "ok",
7343
- organization: { active: input.activeOrganization },
7344
- authorization: input.authorization
7345
- };
7346
- }
7347
- function formatOrganizationLabel$2(organization) {
7348
- const role = organization.role ? `, ${organization.role}` : "";
7349
- return `${organization.name} (${organization.slug})${role}`;
7350
- }
7351
- function normalizeAgentProfileId$1(value) {
7352
- const normalized = String(value ?? "").trim();
7353
- return normalized.length > 0 ? normalized : null;
7354
- }
7355
6915
  async function waitForCenterAgentAsk(input) {
7356
6916
  let lastProgress = null;
7357
6917
  while (true) {
@@ -24919,7 +24479,6 @@ async function resolveRequestConfiguration(options) {
24919
24479
  agentControllerCollaborationMode: normalizeOptionalText$1(input.agentControllerCollaborationMode) ?? null,
24920
24480
  agentControllerPermissionMode: permissionMode.agentControllerPermissionMode ?? null,
24921
24481
  agentControllerRef: agentControllerRef ?? null,
24922
- authorizeForOrganization: input.authorizeForOrganization !== false,
24923
24482
  defaultProjectId: await resolveRequestDefaultProjectId({
24924
24483
  agentControllerRef,
24925
24484
  context,
@@ -27855,7 +27414,7 @@ function normalizeOptionalString(value) {
27855
27414
  return normalized.length > 0 ? normalized : null;
27856
27415
  }
27857
27416
  async function runDefaultSpaceAddMeMembership(input) {
27858
- const { runSpaceAddMeMembership } = await import("./add-me-membership-D8pNrXh1.js");
27417
+ const { runSpaceAddMeMembership } = await import("./add-me-membership-BMp3t67Y.js");
27859
27418
  return await runSpaceAddMeMembership(input);
27860
27419
  }
27861
27420
  //#endregion
@@ -31797,46 +31356,6 @@ function resolveOrganizationInviteLinkDescription(action) {
31797
31356
  if (action === "create") return "Create or reset the Organization invite link.";
31798
31357
  return "Revoke the active Organization invite link.";
31799
31358
  }
31800
- const bindingCmd = program.command("binding").alias("bindings").description("Manage organization authorizations for Agent Profile Bindings.");
31801
- bindingCmd.command("authorize").description("Authorize an Agent Profile primary Binding for the active organization.").argument("<agent-profile-id>", "OpenMeld Agent Profile ID").action(async (agentProfileId) => {
31802
- const view = getGlobalViewOption();
31803
- await runCommandWithEntryChecks({
31804
- routeTokens: ["binding", "authorize"],
31805
- view,
31806
- run: async () => {
31807
- await runBindingAuthorize({
31808
- agentProfileId,
31809
- view
31810
- });
31811
- await maybeRunAgentViewRecoveryAfterSuccess({ view });
31812
- }
31813
- });
31814
- });
31815
- bindingCmd.command("revoke").description("Revoke an Agent Profile primary Binding authorization from the active organization.").argument("<agent-profile-id>", "OpenMeld Agent Profile ID").action(async (agentProfileId) => {
31816
- const view = getGlobalViewOption();
31817
- await runCommandWithEntryChecks({
31818
- routeTokens: ["binding", "revoke"],
31819
- view,
31820
- run: async () => {
31821
- await runBindingRevoke({
31822
- agentProfileId,
31823
- view
31824
- });
31825
- await maybeRunAgentViewRecoveryAfterSuccess({ view });
31826
- }
31827
- });
31828
- });
31829
- bindingCmd.command("list").description("List Agent Profile Binding authorizations for the active organization.").action(async () => {
31830
- const view = getGlobalViewOption();
31831
- await runCommandWithEntryChecks({
31832
- routeTokens: ["binding", "list"],
31833
- view,
31834
- run: async () => {
31835
- await runBindingList({ view });
31836
- await maybeRunAgentViewRecoveryAfterSuccess({ view });
31837
- }
31838
- });
31839
- });
31840
31359
  const centerAgentCmd = program.command("center-agent").description("Use and manage an Organization Center Agent.");
31841
31360
  centerAgentCmd.command("ask").description("Ask the Center Agent from a Local Agent through your existing Center Agent Chat.").argument("[text...]", "Request for the Center Agent").option("--stdin", "Read request text from stdin (EOF to finish)", false).option("--file <path>", "Read request text from a UTF-8 file").option("--organization <slug-or-id>", "Use this Organization instead of the active Organization").option("--via <client>", "Override the automatically detected Local Agent client shown in OpenMeld").option("--session <id>", "Override the automatically detected Local Agent session locator").option("--timeout <seconds>", "Maximum time to wait for a reply (default: 600; max: 3600)").option("--no-wait", "Submit to Center Agent Chat and return without waiting for a reply").option("--json", "Print machine-readable JSON.", false).action(async (textParts, opts) => {
31842
31361
  const view = opts.json === true ? "agent" : getGlobalViewOption();
@@ -33905,7 +33424,7 @@ profileCmd.action(async () => {
33905
33424
  }
33906
33425
  });
33907
33426
  });
33908
- 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) => {
33427
+ 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) => {
33909
33428
  const outputView = await resolveEffectiveViewForOutput();
33910
33429
  const targetName = (typeof profileName === "string" ? profileName : void 0) ?? opts.name;
33911
33430
  if (outputView === "agent") {
@@ -33917,13 +33436,12 @@ profileCmd.command("create").description("Create an Agent Profile, or an additio
33917
33436
  routeTokens: ["profile", "create"],
33918
33437
  view,
33919
33438
  run: async () => {
33920
- 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) {
33439
+ 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") {
33921
33440
  if (typeof opts.kind === "string" && opts.kind.trim().toLowerCase() !== "agent") throw createProfileCreateGuideError("--owner can only create an Agent Profile; pass --kind agent.");
33922
33441
  await runProfileCreationRequestCreate({
33923
33442
  agentController: opts.agentController,
33924
33443
  agentControllerCollaborationMode: opts.agentControllerCollaborationMode,
33925
33444
  agentControllerPermissionModeInput: opts.agentControllerPermissionMode,
33926
- authorizeForOrganization: opts.organizationWakeAccess,
33927
33445
  confirmDangerousAgentControllerPermissionMode: Boolean(opts.confirmDangerousAgentControllerPermissionMode),
33928
33446
  defaultProjectId: opts.project,
33929
33447
  idempotencyKey: opts.requestKey,