openmeld 0.3.155 → 0.3.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-me-membership-X4ybgoL6.js → add-me-membership-TdfL6bv0.js} +2 -2
- package/dist/{add-me-membership-X4ybgoL6.js.map → add-me-membership-TdfL6bv0.js.map} +1 -1
- package/dist/{api-client-foundation-BoHvMp-l.js → api-client-foundation-CW0S-K-m.js} +2 -2
- package/dist/{api-client-foundation-BoHvMp-l.js.map → api-client-foundation-CW0S-K-m.js.map} +1 -1
- package/dist/{command-DXNpV3oZ.js → command-DOkt_9l0.js} +198 -161
- package/dist/{command-DXNpV3oZ.js.map → command-DOkt_9l0.js.map} +1 -1
- package/dist/{dist-CUeqTNJi.js → dist-D9pWrVPX.js} +93 -7
- package/dist/dist-D9pWrVPX.js.map +1 -0
- package/dist/openmeld.js +342 -41
- package/dist/openmeld.js.map +1 -1
- package/package.json +2 -2
- package/skills/openmeld-cli/SKILL.md +7 -2
- package/skills/openmeld-cli/playbooks/space-reads.md +30 -6
- package/skills/openmeld-cli/references/commands.md +28 -0
- package/dist/dist-CUeqTNJi.js.map +0 -1
package/dist/openmeld.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { $ as 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-DXNpV3oZ.js";
|
|
5
|
-
import {
|
|
4
|
+
import { $ as runAgentsManage, $a as createAuthenticationError, $i as resolveAuthBaseUrl, $n as isReturnKeypress, $o as sanitizeTerminalDisplayText, $r as scheduleDaemonServiceUpdate, $t as runSkillsUninstall, A as parseEnvelope, Aa as renderHumanErrorCard, Ai as resolveLocalRegistryAgentIdFromAgentControllerRef, An as assessActionParticipationCandidate, Ao as readAgentActivityContextForPath, Ar as createUpgradeConfirmationGuideError, At as reconcileCliVersionView, B as resolveHumanControllerDisplayName, Ba as createOpenMeldAgentProfile, Bi as resolveEvidenceSyncHealth, Bn as upsertSpaceConfig, Bo as bindProject, Br as buildAgentOverviewFromContract, Bt as readGatewayJsonResponse, C as toSpaceMetaUpsertInput, Ca as readVersionState, Ci as syncDeviceRuntimeStateProjection, Cn as createProfileByKind, Co as formatOpenMeldCliTextBlock, Cr as createSpaceRemoveMembersGuideError, Ct as runDaemonSnapshot, D as formatHumanReadTargetList, Da as resolveCurrentDaemonExpectedVersion, Di as reconcileNewRunnableBuiltinAgentsForSetup, Dn as ensureAgentProfileRuntimeBinding, Do as syncLocalAgentActivity, Dr as createSpaceUpdatesGuideError, Dt as runDaemonUninstall, E as buildHumanReplyContextSummary, Ea as toStartBackgroundHelperExecutionCompatibility, Ei as listAgentTargetStates, En as promptTextEntry, Eo as resolveUserFacingCliEntryCommand, Er as createSpaceTargetGuideError, Et as runDaemonTeardownStrict, F as resolveOpenMeldProfileForSpaceCommand, Fa as resolveRuntimeContext, Fi as listAgentControllerPermissionModeOptions, Fn as collectLocalAgentControllerInventory, Fo as readCodexSessionTitles, Fr as registerSkillsTargetSelectionOptions, Ft as readDaemonStartFailureLogTailLines, G as runAgentsCustomAdd, Ga as resolveOpenMeldProfile, Gi as getSetupFlowCopy, Gn as buildSignalIndex, Go as runIfAgentActivityBindingGenerationIsCurrent, Gr as OPENMELD_AGENT_MENTAL_MODEL_LINES, Gt as writeInstalledLocalComponentsSnapshot, H as resolveAgentProfileSetup, Ha as deleteOpenMeldProfile, Hn as buildDispatchResultMessageReadProjection, Ho as listProjectConnectionsWithStatus, Hr as formatDualViewGuideForDisplay, Ht as toStructuredGatewayFailure, I as emitSpaceAgentOverview, Ia as resolveViewProfileKey, Ii as parseAgentControllerRef, In as resolveLocalAgentControllerBlockerReasonCodes, Io as enqueueAgentActivityHookEvent, Ir as getCliVersionInfo, It as fetchSpaceUpdates, J as runAgentsCustomUpdate, Ja as clearSelectedOpenMeldProfileId, Ji as classifyDaemonServiceRunStartability, Jn as buildUpdatesReplyWorkflowProjection, Jo as canonicalizeLocalProjectPath, Jr as buildAgentFacingPublicationModeGuideLines, Jt as runDaemonStartDecisionPrompt, K as runAgentsCustomList, Ka as updateOpenMeldProfile, Ki as buildDaemonServiceTargetSpec, Kn as buildSignalMessageReadProjection, Ko as setDefaultProjectConnection, Kr as SPACE_CONTRACT_ALLOWED_ACTION_ORDER, Kt as resolveDaemonServiceParticipationStatus, L as emitSpaceCliAgentOverview, La as isSelectedOpenMeldProfileRequiredError, Li as resolveAgentControllerPermissionModeForController, Ln as resolveLocalAgentControllerLaunchability, Lo as removeProjectInbox, Lr as registerDaemonControlTargetOptions, Lt as createCliSpaceApi, M as assertFullSignalIdArgument, Ma as createPresenter, Mi as createAgentExecutionStatusDisplayRows, Mn as submitProfileRuntimeAgentControllerReport, Mo as buildAgentActivityEvent, Mr as getCommandHintsFromContract, Mt as createDelayedSpinner, N as assertValidSpaceIdTarget, Na as formatMessage, Ni as getAgentControllerPermissionModeDisplayMetadata, Nn as submitRuntimeAgentControllerReport, No as resolveObservedAgentActivityBinding, Nr as registerSpaceMemberSelectionOptions, Nt as shouldEmitAgentOverview, O as resolveLinkAccessLabel, Oa as OPENMELD_VERSION, Oi as listBuiltinAgentsRegistryEntries, On as formatServiceParticipationReadinessLabel, Oo as readDaemonServiceContract, Or as createStartAgentIdentityGuideError, Ot as buildProfileWorkspacePresentation, P as prepareAuthenticatedSpaceCommandContext, Pa as parseCliViewMode, Pi as getAgentControllerPermissionModeFieldLabel, Pn as submitRuntimeAgentControllerReports, Po as normalizeSharedSessionTitle, Pr as SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS, Pt as runDaemonStartupPreflight, Q as runAgentsList, Qa as buildHumanAuthenticationCard, Qi as resolveOpenMeldEnvironmentTarget, Qn as promptSearchSelect, Qo as renderTextInfoCard, Qr as runPendingDaemonServiceUpdate, Qt as runSkillsInstall, R as prepareLocalAgentReadiness, Ra as requireOpenMeldProfile, Ri as resolveAgentExecutionStatus, Rn as resolveLocalAgentControllerReportDecision, Ro as readAgentActivityOutboxHealth, Rr as registerAuthLoginRequestOptions, Rt as fetchSpaceMeta, S as loadSpaceSignalIndexOrNull, Sa as fetchLatestPackageInfo, Si as describeProfileWorkspacePathValidationFailure, Sn as revokeAuthAccessToken, So as formatOpenMeldCliLine, Sr as createSpacePublicationSetGuideError, St as runDaemonRunAfterEntryChecks, T as buildFormalSignalReadPayload, Ta as resolveDaemonRuntimeContractCompatibility, Ti as resolveAgentProfilePrimaryAgentControllerReport, Tn as resolveCreateProfileName, To as resolveSetupFollowUpCliEntryCommand, Tr as createSpaceSubcommandTargetGuideError, Tt as runDaemonStop, U as runAgents, Ua as listOpenMeldProfiles, Ui as buildDaemonRouteObservationPresentation$1, Un as buildDispatchResultReplyWorkflowProjection, Uo as migrateProjectBindingStore, Ur as buildDualViewGuideMessage, Ut as parseJsonResponse, V as persistAgentTransportSelection, Va as createOpenMeldHumanProfile, Vi as resolveNativeAgentControllerPermissionModeForController, Vn as assertNoRemovedCcSpaceAddressingSyntax, Vo as listProjectBindings, Vr as DualViewGuideError, Vt as readGatewayTextResponse, W as runAgentsConfig, Wa as primeOpenMeldProfilesSessionCache, Wi as buildOnboardingPlan, Wn as buildPublicSpaceEntryUrl, Wo as removeProjectConnection, Wr as formatAgentOverviewPayload, Wt as resolveLocalComponentsStatus, X as runAgentsDisable, Xa as setSelectedOpenMeldProfileId, Xi as resolveServiceUpdateUrgency, Xn as formatRemovedCcRelationMessage, Xo as readControllerTaskLifecycleOutboxHealth, Xr as readPendingOpenMeldToolsUpdateAttempt, Xt as runSkillsCheck$1, Y as runAgentsDetect, Ya as getSelectedOpenMeldProfileId, Yi as classifyDaemonServiceWakeability, Yn as createSpaceMemberIdentityIndex, Yo as enqueueControllerTaskLifecycleEventWhileLocked, Yr as canonicalizeAllowedActions, Yt as collectSkillsReadinessSnapshot, Z as runAgentsEnable, Za as buildAgentAuthenticationGuide, Zi as assessServerRequiredVersion, Zn as promptSearchMultiselect, Zo as renderInfoCard, Zr as readOpenMeldToolsUpdateContextFromEnv, Zt as runSkillsEnsure, _ as runSpaceWriteWithPasswordRetry, _a as resolveDaemonServiceUpdateOperation, _i as readProfileWorkspaceConfig, _n as extractAuthApiErrorMessage, _o as resolveAgentActivityDispatcherCommand, _r as createSpaceAddMembersGuideError, _t as runDaemonBackgroundStartForDecision, a as runSpaceDelete, aa as inspectDaemonServiceInventory, ai as resolveCurrentReplyReadinessSnapshot, an as connectWebSocket, ao as LocalProjectConnectionError, ar as readDispatchSpaceActionContextFromEnv, as as cliJsonOutputEnvelopeSchema, at as printOpenMeldBanner, b as buildIdentityOnlyMembersSnapshotForReadProjection, ba as ensureVersionStateReady, bi as setOpenMeldManagedProfileWorkspace, bn as resolveDeviceAuthClientId, bo as formatOpenMeldCliCommand, br as createSpaceLeaveGuideError, bt as runDaemonInterrupt, c as runSpaceLeave, ca as readCurrentObservedDaemonRuntimeStatus, ci as formatHumanReplyReadinessReason$1, cn as evaluateCommandAuthentication, co as requestLocalAgentActivitySync, cr as resolveElapsedTimeMs, cs as cliJsonSkillsShowEnvelopeSchema, ct as renderOpenMeldLogo, d as runSpaceRemoveMembers, da as readDaemonServiceJobCrashExitCode, di as resolveOpenClawLocalDiagnosticsValue, dn as runAuthMenu, do as resolveAgentActivityRouteForPath, dr as canUseInteractivePrompts, ds as revokeOrganizationJoinLinkResponseSchema, dt as resolveSpaceWebGatewayOrigin, ea as finishCurrentCommandCheckScope, ei as ensureDaemonRuntimePaths, en as runSkillsUpdate, eo as resolveAuthenticationGuidance, er as runInteractivePrompt, es as emitCliJsonEnvelope, et as runAgentsRepair, f as runSpaceSend, fa as resolveDaemonServiceManager, fi as syncProfileWorkspaceState, fn as runAuthStatus, fo as unregisterAgentActivityRoute, fr as createDoctorFailedGuideError, fs as compareAgentControllerRefsForDisplay, ft as resolveSpaceSendText, g as runSpaceReadWithPasswordRetry, ga as readPendingDaemonServiceUpdate, gi as normalizeCustomProfileWorkspacePath, gn as formatActiveOrganizationLabel, go as readAgentActivityIntegrationStatus, gr as createResetConfirmationGuideError, gt as runDaemonAutostart, h as uploadPreparedSpaceFiles, ha as performManagedInstall, hi as ensureOpenMeldManagedProfileWorkspace, hn as buildAuthStatusSnapshot, ho as installAgentActivityIntegrations, hr as createProfileMenuGuideError, ht as runDaemon, i as runSpaceCreate, ia as startCurrentCommandCheckScope, ii as resolveDaemonServiceFreshnessWarning, in as readRecentDaemonDispatchJournalEvents, io as setProfileDefaultView, ir as readDispatchOwnedRuntimeGuard, is as cliBinaryDeltaPatchSchema, it as colorizeDisplayProfileLabel, j as isSpaceCommandOutputHandledError, ja as renderHumanTextErrorCard, ji as buildAgentControllerRef, jn as computeRetryDelayMs, jo as removeAgentActivityContextCache, jr as getCommandEntryContract, jt as emitDaemonAgentOverview, k as resolveOrganizationVisibilityLabel, ka as buildHumanErrorCopy, ki as notifyDaemonRouteCatalogChanged, kn as resolveServiceParticipationReadiness, ko as upsertDaemonServiceContract, kr as createStartAuthenticationGuideError, kt as buildProfileWorkspaceRows, l as runSpaceList, la as getDaemonSystemServiceLogPath, li as mapAgentReplyReadinessToLegacyAutoReply, ln as runAuthLogin, lo as isAgentActivityRouteRegistered, lr as formatDaemonServiceDowngradeBlockedRecommendation, ls as getOrganizationJoinLinkResponseSchema, lt as renderOpenMeldTagline, m as prepareRequestedSpaceSendFiles, ma as buildInstallSelfJsonPayload, mi as resolveProfileWorkspaceRuntime, mn as buildAuthStatusRows, mo as defaultManagedIntegrationPaths, mr as createProfileCreateGuideError, mt as isManagedSystemServiceBootstrapRun, n as promptAndConfirmSpacePassword, na as isCurrentCommandCheckScopeActive, ni as formatDaemonFailureContextText, nn as readBundledOpenMeldCliSkillDocumentByPath, no as resolveAuthenticationGuidanceFromMessage, nr as isCliUpdateCheckApplicable, ns as outJsonLine, nt as formatTransportModeDisplay, o as runSpaceHistory, oa as resolveVersionChangeDirection, oi as formatAgentReplyReadinessLabel, on as buildCommandAuthenticationPromptMessage, oo as validateLocalProjectConnectionPath, or as writeDispatchSpaceActionRecord, os as cliJsonSkillsListEnvelopeSchema, ot as renderOpenMeldBrandBlockLines, p as runSpaceWatch, pa as readRecentDaemonLifecycleEvents, pi as createModelCatalogReadSession, pn as exchangeOneTimeTokenAuthSession, pr as createProfileActionGuideError, pt as bestEffortStopCurrentLaneDaemonService, q as runAgentsCustomRemove, qa as alignSelectedOpenMeldProfileStorage, qi as resolveDaemonServiceAlignmentDecision, qn as buildSpaceRoundReadProjection, qo as unbindProject, qr as areAllowedActionsEquivalent, qt as runDaemonServiceParticipationGate, r as runSpaceAddMembers, ra as resetCurrentCommandCheckState, ri as resolveServiceReadinessFromServiceStatus, rn as readRuntimeReportingHealthState, ro as getProfileDefaultView, rr as assertDispatchOwnedRuntimePublicWriteAllowed, rs as outLine, rt as colorizeAgentLabel, s as runSpaceJoin, sa as readCurrentDaemonRuntimeContext, si as formatDeviceReplyReadinessLabel, sn as ensureCommandAuthenticationOrCancel, so as LocalDaemonControlPlaneClientError, sr as formatElapsedTime, ss as cliJsonSkillsLoadEnvelopeSchema, st as renderOpenMeldHeader, t as buildCreateSpacePasswordPromptConfig, ta as getCurrentCommandCheckState, ti as resolveDaemonDeviceId, tn as ensureLocalSkills, to as resolveAuthenticationGuidanceFromError, tr as assessCliUpdate, ts as errLine, tt as runAgentsShow, u as runSpacePassword, ua as isDaemonServiceJobNeverSpawned, ui as resolveGatewayChainReadiness, un as runAuthLogout, uo as registerAgentActivityRoute, ur as formatDaemonServiceMissingRecommendation, us as organizationJoinLinkErrorResponseSchema, ut as resolveGatewayWebOrigin, v as buildHumanReadSignalsTranscriptItems, va as buildNextVersionState, vi as resolveConfiguredProfileWorkspacePath, vn as fetchAuthUserSnapshot, vo as uninstallAgentActivityIntegrations, vr as createSpaceAliasTargetGuideError, vt as runDaemonCancel, w as buildFormalDispatchResultReadPayload, wa as writeVersionState, wi as createPrimaryBindingReadSession, wn as resolveCreateProfileKind, wo as formatProfileAwareOpenMeldCliCommands, wr as createSpaceResultGuideError, wt as runDaemonStatusFlow, x as loadSpaceIdentityDirectoryOrNull, xa as fetchLatestCliBinaryRelease, xi as validateCustomProfileWorkspacePath, xn as resolveDeviceTokenExpiresAt, xo as formatOpenMeldCliCommands, xr as createSpaceMenuGuideError, xt as runDaemonReinstall, y as emitHumanReadSignalsTextProjection, ya as compareSemver, yi as setCustomProfileWorkspace, yn as requestDeviceToken, yo as formatInlineOpenMeldCliCommands, yr as createSpaceContractSetGuideError, yt as runDaemonInstall, z as buildReplyReadinessGuidance, za as resolveOpenMeldProfileOrNull, zi as resolveAgentProfileEditCapabilities, zn as inspectSpaceCacheFile, zo as removeProjectOutbox, zr as registerBuiltinAgentSelectionOptions, zt as updateSpaceMeta } from "./command-DOkt_9l0.js";
|
|
5
|
+
import { $ as projectObservabilityWakeCorrelation, D as toStructuredApiClientFailure, Dt as authProfileManagedRoleSchema, Et as authProfileKindSchema, F as OPENMELD_HEADER_PROFILE_ID, Gt as agentActivitySnapshotQuerySchema, J as resolveSpaceDispatchTraceRootCause, K as SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER, Q as observabilityWakeTraceSelectorSchema, R as OPENMELD_HEADER_SPACE_ADDRESSING_VERSION, Sn as localAgentCatalogSchema, St as stringifyOrganizationSkillBundleCanonicalJson, Ut as agentActivityProviderSchema, V as sleep, W as spaceEntryTargetSchema, Wt as agentActivitySessionStatusSchema, X as spaceDispatchTraceDispatchStatusSchema, Y as spaceDispatchTraceAttemptStatusSchema, Z as spaceDispatchTraceResponseSchema, _ as createOrganizationSkillsApi, _n as START_BOUNDED_ID_SCHEMA, an as agentActivityInventorySessionStatusSchema, at as agentProfileCreationConfigurationSchema, b as createProjectsApi, bn as START_TRIMMED_NON_EMPTY_STRING_SCHEMA, c as createAgentProfileBindingApi, cn as localAgentSessionProviderSchema, d as createCurrentDeviceApi, f as createFeedbackApi, g as createOrganizationApi, in as agentActivityInventorySessionOriginSchema, it as DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION, jt as submitFeedbackIssueRequestSchema, l as createCenterAgentApi, nt as projectOwnerComputerLocalRuntimes, on as agentActivitySessionInventoryQuerySchema, q as projectSpaceDispatchTraceFinalVisibleOutcome, rt as summarizeComputerFileAccessPolicy, s as createAgentActivityApi, tt as ownerComputerDiagnosticsSchema, u as createComputerFileAccessApi, v as createPrepareReadinessApi, vn as START_BOUNDED_VERSION_SCHEMA, x as createRoutinesApi, xn as startReplyReadinessSummarySchema, yn as START_ISO_DATE_TIME_SCHEMA, yt as organizationSkillBundleSchema } from "./dist-D9pWrVPX.js";
|
|
6
6
|
import { Cr as string, Dr as unknown, Er as union, It as spaceStatusSchema, Lt as centerAgentInteractionSourceSchema, On as messageEnvelopeSchema, Qr as openMeldProfileIdSchema, Sr as strictObject, Ut as isSpaceFileTextEditable, _r as nullFactory, cr as boolean, dn as spaceThreadContextSchema, fi as trimmedStringFromUnknown, fr as enumFactory, gn as spaceContractSchema, hn as spaceContractFieldsSchema, hr as literal, jr as clientMessageIdSchema, mr as iso, pr as int, qt as resolveSpaceFileMimeType, ri as openMeldRuntimeProfileIdSchema, sr as array, ui as nonEmptyTrimmedStringFromUnknown, un as dispatchExecutionSchema, ur as discriminatedUnion, xr as record, yr as object } from "./runtime-transport-21JL5nu5.js";
|
|
7
7
|
import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
|
|
8
8
|
import { N as getDaemonStatus } from "./daemon-runtime-lease-Dqmxqrzi.js";
|
|
9
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-Bg4ATgGF.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-
|
|
10
|
+
import { c as buildOpenMeldRequestContextHeadersWithAuth, d as buildOpenMeldRequestContextFromProfile, l as buildRequestAuthHeaders, n as createCliApiClientFoundation, p as deriveAuthBaseUrlFromGatewayUrl, r as fetchSpaceRequestWithTimeout } from "./api-client-foundation-CW0S-K-m.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";
|
|
@@ -2301,6 +2301,7 @@ const COMMAND_CHECK_REQUIREMENTS = Object.freeze({
|
|
|
2301
2301
|
"space.contract": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, AUTO_FIX_LOCAL_RUNTIME, REQUIRED_SIGN_IN, CONFIRM_SELECTED_PROFILE),
|
|
2302
2302
|
"space.contract.set": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, AUTO_FIX_LOCAL_RUNTIME, REQUIRED_SIGN_IN, CONFIRM_SELECTED_PROFILE),
|
|
2303
2303
|
"space.publication.set": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, AUTO_FIX_LOCAL_RUNTIME, REQUIRED_SIGN_IN, CONFIRM_SELECTED_PROFILE),
|
|
2304
|
+
"space.access": buildCommandChecks(OPTIONAL_CLI_UPDATE),
|
|
2304
2305
|
"space.status": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, AUTO_FIX_LOCAL_RUNTIME, REQUIRED_SIGN_IN, CONFIRM_SELECTED_PROFILE),
|
|
2305
2306
|
"space.updates": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, AUTO_FIX_LOCAL_RUNTIME, REQUIRED_SIGN_IN, CONFIRM_SELECTED_PROFILE),
|
|
2306
2307
|
"space.result": buildCommandChecks(REQUIRED_DISCLAIMER, OPTIONAL_CLI_UPDATE, AUTO_FIX_LOCAL_RUNTIME, REQUIRED_SIGN_IN, CONFIRM_SELECTED_PROFILE),
|
|
@@ -2516,6 +2517,8 @@ const COMMAND_ENTRY_NAME_BY_ROUTE = {
|
|
|
2516
2517
|
"spaces contract set": "space.contract.set",
|
|
2517
2518
|
"space publication set": "space.publication.set",
|
|
2518
2519
|
"spaces publication set": "space.publication.set",
|
|
2520
|
+
"space access": "space.access",
|
|
2521
|
+
"spaces access": "space.access",
|
|
2519
2522
|
"space status": "space.status",
|
|
2520
2523
|
"spaces status": "space.status",
|
|
2521
2524
|
"space updates": "space.updates",
|
|
@@ -4566,6 +4569,12 @@ const COMMAND_ENTRY_COPY_BY_NAME = Object.freeze({
|
|
|
4566
4569
|
cliUpdateAction: "updating Space publication mode",
|
|
4567
4570
|
serviceAction: null
|
|
4568
4571
|
},
|
|
4572
|
+
"space.access": {
|
|
4573
|
+
...DEFAULT_COPY,
|
|
4574
|
+
signInAction: null,
|
|
4575
|
+
profileAction: null,
|
|
4576
|
+
cliUpdateAction: "checking Space access"
|
|
4577
|
+
},
|
|
4569
4578
|
"space.status": {
|
|
4570
4579
|
signInAction: "reading space status",
|
|
4571
4580
|
profileAction: "reading space status",
|
|
@@ -6321,6 +6330,8 @@ const PASSIVE_CLI_QUERY_COMMANDS = /* @__PURE__ */ new Set([
|
|
|
6321
6330
|
"service snapshot",
|
|
6322
6331
|
"service status",
|
|
6323
6332
|
"service trace",
|
|
6333
|
+
"space link",
|
|
6334
|
+
"spaces link",
|
|
6324
6335
|
"whoami"
|
|
6325
6336
|
]);
|
|
6326
6337
|
const COMMAND_ROUTE_OPTIONS_WITH_VALUES = /* @__PURE__ */ new Set([
|
|
@@ -16242,10 +16253,6 @@ async function runSetupFirstBootstrapOrThrow(input) {
|
|
|
16242
16253
|
text: "Preparing your OpenMeld profile..."
|
|
16243
16254
|
});
|
|
16244
16255
|
const humanProfile = await runBootstrapStep("human_profile", input.progress, "Checking your OpenMeld profile", async () => await resolveOpenMeldProfile({ profileKind: "human" }));
|
|
16245
|
-
emitSetupBootstrapLine(input.line, {
|
|
16246
|
-
code: "setup.bootstrap.stage.center_agent",
|
|
16247
|
-
text: "Center Agent will guide your next setup steps from OpenMeld Home."
|
|
16248
|
-
});
|
|
16249
16256
|
return {
|
|
16250
16257
|
status: "completed",
|
|
16251
16258
|
assistantProfile: null,
|
|
@@ -16936,6 +16943,39 @@ function finalizePrepareStepDiagnosticsSerialization(bundle) {
|
|
|
16936
16943
|
return JSON.stringify(parsed.data);
|
|
16937
16944
|
}
|
|
16938
16945
|
//#endregion
|
|
16946
|
+
//#region src/commands/setup-service-update-truth.ts
|
|
16947
|
+
function resolveSetupServiceUpdateTruth(input) {
|
|
16948
|
+
const operation = input.operation;
|
|
16949
|
+
if (!operation) return { status: "ready" };
|
|
16950
|
+
if (compareSemver(input.currentCliVersion, operation.targetVersion) > 0) return { status: "ready" };
|
|
16951
|
+
if (operation.phase === "restored" || operation.phase === "needs_help") return {
|
|
16952
|
+
message: "OpenMeld Service update failed. Run `openmeld service update`.",
|
|
16953
|
+
status: "failed"
|
|
16954
|
+
};
|
|
16955
|
+
if (operation.phase === "waiting_for_work" || operation.phase === "updating") return {
|
|
16956
|
+
message: "OpenMeld Service update started in the background. Run `openmeld setup` again after it finishes.",
|
|
16957
|
+
status: "updating"
|
|
16958
|
+
};
|
|
16959
|
+
if (input.currentCliVersion === operation.targetVersion && input.installedServiceVersion === operation.targetVersion) return { status: "ready" };
|
|
16960
|
+
return {
|
|
16961
|
+
message: "OpenMeld Service update could not be verified. Run `openmeld service update`.",
|
|
16962
|
+
status: "verifying"
|
|
16963
|
+
};
|
|
16964
|
+
}
|
|
16965
|
+
async function assertSetupServiceUpdateComplete() {
|
|
16966
|
+
const operation = await resolveDaemonServiceUpdateOperation();
|
|
16967
|
+
if (!operation) return;
|
|
16968
|
+
const truth = resolveSetupServiceUpdateTruth({
|
|
16969
|
+
currentCliVersion: OPENMELD_VERSION,
|
|
16970
|
+
installedServiceVersion: (await inspectDaemonServiceInventory({
|
|
16971
|
+
expectedVersion: OPENMELD_VERSION,
|
|
16972
|
+
intent: "status_cleanup"
|
|
16973
|
+
})).installStatus.state?.daemonVersion ?? null,
|
|
16974
|
+
operation
|
|
16975
|
+
});
|
|
16976
|
+
if (truth.status !== "ready") throw new Error(truth.message);
|
|
16977
|
+
}
|
|
16978
|
+
//#endregion
|
|
16939
16979
|
//#region src/commands/prepare-session-executor.ts
|
|
16940
16980
|
const PREPARE_TOKEN_HEADER = "x-openmeld-prepare-token";
|
|
16941
16981
|
const REPORT_RUNTIME_CONNECTION_MAX_ATTEMPTS = 9;
|
|
@@ -17554,6 +17594,7 @@ async function runRefreshServiceTerminalStep(input, progress) {
|
|
|
17554
17594
|
if (gate.localMachineIssue) throw new LocalMachineFailureError({ issue: gate.localMachineIssue });
|
|
17555
17595
|
throw new Error(gate.errorMessage ?? "OpenMeld Service is not connected yet.");
|
|
17556
17596
|
}
|
|
17597
|
+
await assertSetupServiceUpdateComplete();
|
|
17557
17598
|
progress?.detail({
|
|
17558
17599
|
code: "prepare.session.progress.refresh_service.identity",
|
|
17559
17600
|
text: "Saving this computer's OpenMeld Service identity..."
|
|
@@ -18753,7 +18794,10 @@ async function runSetupLocalAgentConnectionServiceGate(input) {
|
|
|
18753
18794
|
...expectedOwnerUserId ? { expectedOwnerUserId } : {},
|
|
18754
18795
|
view: input.view
|
|
18755
18796
|
});
|
|
18756
|
-
if (gateResult.status === "aligned")
|
|
18797
|
+
if (gateResult.status === "aligned") {
|
|
18798
|
+
await assertSetupServiceUpdateComplete();
|
|
18799
|
+
return "continue";
|
|
18800
|
+
}
|
|
18757
18801
|
if (gateResult.status === "cancelled") return "cancelled";
|
|
18758
18802
|
if (gateResult.errorMessage) throw new Error(gateResult.errorMessage);
|
|
18759
18803
|
throw new Error("OpenMeld Service is still reconnecting. Run `openmeld setup` again after OpenMeld Service finishes refreshing.");
|
|
@@ -18795,7 +18839,10 @@ async function maybeCompleteServiceReadinessAfterPreparation(input) {
|
|
|
18795
18839
|
ownerUserId: input.profile.ownerUserId,
|
|
18796
18840
|
profile: input.profile
|
|
18797
18841
|
}));
|
|
18798
|
-
if (reasonCodes.length === 0)
|
|
18842
|
+
if (reasonCodes.length === 0) {
|
|
18843
|
+
await assertSetupServiceUpdateComplete();
|
|
18844
|
+
return "completed";
|
|
18845
|
+
}
|
|
18799
18846
|
const inventory = await inspectDaemonServiceInventory({
|
|
18800
18847
|
expectedVersion: resolveCurrentDaemonExpectedVersion(),
|
|
18801
18848
|
intent: "status_cleanup"
|
|
@@ -18823,6 +18870,8 @@ async function maybeCompleteServiceReadinessAfterPreparation(input) {
|
|
|
18823
18870
|
});
|
|
18824
18871
|
if (!refreshOutcome.ok && refreshOutcome.result === "cancelled") return "cancelled";
|
|
18825
18872
|
if (!refreshOutcome.ok) throw new Error(`OpenMeld Service refresh did not complete: ${refreshOutcome.result}`);
|
|
18873
|
+
if (refreshOutcome.result === "scheduled") throw new Error("OpenMeld Service update started in the background. Run `openmeld setup` again after it finishes.");
|
|
18874
|
+
await assertSetupServiceUpdateComplete();
|
|
18826
18875
|
return "completed";
|
|
18827
18876
|
}
|
|
18828
18877
|
if (reasonCodes.includes("service.not_installed")) {
|
|
@@ -19768,21 +19817,19 @@ function emitSetupComplete(input) {
|
|
|
19768
19817
|
});
|
|
19769
19818
|
}
|
|
19770
19819
|
function emitSetupHumanCompletion(input) {
|
|
19771
|
-
const
|
|
19772
|
-
|
|
19773
|
-
|
|
19774
|
-
|
|
19775
|
-
})}`;
|
|
19820
|
+
const returnLine = `Open OpenMeld Web: ${formatTerminalHyperlink({
|
|
19821
|
+
label: "OpenMeld Web",
|
|
19822
|
+
url: new URL(resolveGatewayWebOrigin(input.gatewayUrl)).toString()
|
|
19823
|
+
})}.`;
|
|
19776
19824
|
const sections = input.bootstrap.status === "completed" ? [
|
|
19777
|
-
"🎉
|
|
19778
|
-
"Your computer is connected.",
|
|
19825
|
+
"🎉 Your computer is connected.",
|
|
19779
19826
|
...buildSetupHumanLocalAgentSections(input),
|
|
19780
19827
|
returnLine
|
|
19781
19828
|
] : [
|
|
19782
|
-
"OpenMeld needs one more step",
|
|
19829
|
+
"⚠️ OpenMeld needs one more step.",
|
|
19783
19830
|
"Your computer is connected, but OpenMeld could not finish preparing it.",
|
|
19784
|
-
`Reason: ${formatSetupHumanLine(input.bootstrap.message)}
|
|
19785
|
-
`Next: Run ${formatOpenMeldCliCommand(input.bootstrap.retryCommand)}
|
|
19831
|
+
`Reason: ${formatSetupHumanLine(input.bootstrap.message)}.`,
|
|
19832
|
+
`Next: Run ${formatOpenMeldCliCommand(input.bootstrap.retryCommand)}.`,
|
|
19786
19833
|
returnLine
|
|
19787
19834
|
];
|
|
19788
19835
|
for (const [index, text] of joinSetupHumanCompletionSections(sections).entries()) input.presenter.line({
|
|
@@ -19806,7 +19853,7 @@ function buildSetupHumanLocalAgentSections(input) {
|
|
|
19806
19853
|
return [...readyNames.length > 0 ? [`Local agents connected: ${readyNames.join(", ")}.`] : [], ...attentionNames.length > 0 ? [`Local agents need attention: ${attentionNames.join(", ")}.`] : []];
|
|
19807
19854
|
}
|
|
19808
19855
|
function joinSetupHumanCompletionSections(sections) {
|
|
19809
|
-
return sections.flatMap((section
|
|
19856
|
+
return sections.flatMap((section) => ["", section]);
|
|
19810
19857
|
}
|
|
19811
19858
|
function formatSetupHumanLine(value) {
|
|
19812
19859
|
return sanitizeTerminalDisplayText(value, "single-line").replaceAll(/\s+/g, " ").trim();
|
|
@@ -26969,6 +27016,138 @@ function resolveRetiredCliCommandMessage(argv) {
|
|
|
26969
27016
|
return RETIRED_CLI_COMMANDS.find((command) => command.tokens.every((token, index) => leadingTokens[index] === token))?.message ?? null;
|
|
26970
27017
|
}
|
|
26971
27018
|
//#endregion
|
|
27019
|
+
//#region src/space/access-output.ts
|
|
27020
|
+
function emitSpaceAccessAgentOutput(input) {
|
|
27021
|
+
input.presenter.data({
|
|
27022
|
+
code: "space.access.resolved",
|
|
27023
|
+
payload: {
|
|
27024
|
+
resolution: input.resolution,
|
|
27025
|
+
viewAction: resolveAgentViewAction(input.resolution)
|
|
27026
|
+
}
|
|
27027
|
+
});
|
|
27028
|
+
}
|
|
27029
|
+
function emitSpaceAccessHumanOutput(input) {
|
|
27030
|
+
const { resolution } = input;
|
|
27031
|
+
const spaceLabel = resolution.safeContext.spaceName ?? "this Space";
|
|
27032
|
+
if (resolution.view.state === "allowed") {
|
|
27033
|
+
input.presenter.line({
|
|
27034
|
+
code: "space.access.allowed",
|
|
27035
|
+
text: resolution.view.experience === "public" ? `${spaceLabel} is available to read publicly.` : `You can open ${spaceLabel}.`
|
|
27036
|
+
});
|
|
27037
|
+
if (resolution.participation.state === "self_join_available") input.presenter.line({
|
|
27038
|
+
code: "space.access.join_available",
|
|
27039
|
+
text: "You can read it now and join when you want to participate."
|
|
27040
|
+
});
|
|
27041
|
+
return;
|
|
27042
|
+
}
|
|
27043
|
+
if (resolution.view.state === "sign_in_required") {
|
|
27044
|
+
input.presenter.line({
|
|
27045
|
+
code: "space.access.sign_in_required",
|
|
27046
|
+
text: "Sign in to check access to this Space."
|
|
27047
|
+
});
|
|
27048
|
+
input.presenter.line({
|
|
27049
|
+
code: "space.access.next",
|
|
27050
|
+
text: "Next: openmeld auth login"
|
|
27051
|
+
});
|
|
27052
|
+
return;
|
|
27053
|
+
}
|
|
27054
|
+
if (resolution.view.state === "password_required") {
|
|
27055
|
+
input.presenter.line({
|
|
27056
|
+
code: "space.access.password_required",
|
|
27057
|
+
text: "This Space requires a password."
|
|
27058
|
+
});
|
|
27059
|
+
input.presenter.line({
|
|
27060
|
+
code: "space.access.next",
|
|
27061
|
+
text: "Rerun this command with --password <space-password>."
|
|
27062
|
+
});
|
|
27063
|
+
return;
|
|
27064
|
+
}
|
|
27065
|
+
if (resolution.view.state === "membership_required") {
|
|
27066
|
+
input.presenter.line({
|
|
27067
|
+
code: "space.access.membership_required",
|
|
27068
|
+
text: `You don't have access to ${spaceLabel}.`
|
|
27069
|
+
});
|
|
27070
|
+
const ownerName = resolution.safeContext.owner?.displayName;
|
|
27071
|
+
input.presenter.line({
|
|
27072
|
+
code: "space.access.next",
|
|
27073
|
+
text: ownerName ? `Ask ${ownerName} to add you to this Space.` : "Ask a Space owner to add you."
|
|
27074
|
+
});
|
|
27075
|
+
return;
|
|
27076
|
+
}
|
|
27077
|
+
input.presenter.line({
|
|
27078
|
+
code: "space.access.unavailable",
|
|
27079
|
+
text: "This Space isn't available to this account."
|
|
27080
|
+
});
|
|
27081
|
+
}
|
|
27082
|
+
function resolveAgentViewAction(resolution) {
|
|
27083
|
+
switch (resolution.view.state) {
|
|
27084
|
+
case "allowed": return {
|
|
27085
|
+
kind: "continue_to_target",
|
|
27086
|
+
target: resolution.target
|
|
27087
|
+
};
|
|
27088
|
+
case "sign_in_required": return {
|
|
27089
|
+
kind: "sign_in",
|
|
27090
|
+
command: "openmeld auth login --view agent"
|
|
27091
|
+
};
|
|
27092
|
+
case "password_required": return {
|
|
27093
|
+
kind: "provide_password",
|
|
27094
|
+
command: "openmeld space access <space-url-or-id> --password <space-password> --view agent"
|
|
27095
|
+
};
|
|
27096
|
+
case "membership_required": return {
|
|
27097
|
+
kind: "contact_space_owner",
|
|
27098
|
+
...resolution.safeContext.owner ? { owner: resolution.safeContext.owner } : {}
|
|
27099
|
+
};
|
|
27100
|
+
case "unavailable": return { kind: "unavailable" };
|
|
27101
|
+
default: return assertUnreachable(resolution.view);
|
|
27102
|
+
}
|
|
27103
|
+
}
|
|
27104
|
+
function assertUnreachable(value) {
|
|
27105
|
+
throw new Error(`unsupported Space entry view: ${JSON.stringify(value)}`);
|
|
27106
|
+
}
|
|
27107
|
+
//#endregion
|
|
27108
|
+
//#region src/space/access-command.ts
|
|
27109
|
+
async function runSpaceAccess(input) {
|
|
27110
|
+
const runtime = await resolveRuntimeContext({
|
|
27111
|
+
profile: input.profile,
|
|
27112
|
+
view: input.view
|
|
27113
|
+
});
|
|
27114
|
+
const presenter = createPresenter(runtime);
|
|
27115
|
+
assertValidSpaceIdTarget({
|
|
27116
|
+
space: input.space,
|
|
27117
|
+
resolvedView: runtime.resolvedView
|
|
27118
|
+
});
|
|
27119
|
+
const baseUrl = await resolveBaseUrl(input.baseUrl);
|
|
27120
|
+
const openMeldProfile = await resolveOpenMeldProfileOrNull({
|
|
27121
|
+
openMeldProfileId: input.profile,
|
|
27122
|
+
allowUnauthenticated: true,
|
|
27123
|
+
persistSelection: false,
|
|
27124
|
+
allowDefaultFallback: false
|
|
27125
|
+
});
|
|
27126
|
+
const requestContext = openMeldProfile ? buildOpenMeldRequestContextFromProfile({ openMeldProfile }) : void 0;
|
|
27127
|
+
const resolution = await createCliSpaceApi(baseUrl).resolveEntry({
|
|
27128
|
+
spaceId: input.space,
|
|
27129
|
+
...input.signalId ? { signalId: input.signalId } : {},
|
|
27130
|
+
...input.threadRootSignalId ? { threadRootSignalId: input.threadRootSignalId } : {},
|
|
27131
|
+
...requestContext ? { requestContext } : {},
|
|
27132
|
+
...input.password ? { spacePassword: input.password } : {}
|
|
27133
|
+
});
|
|
27134
|
+
if (input.json) {
|
|
27135
|
+
outJsonLine(resolution);
|
|
27136
|
+
return;
|
|
27137
|
+
}
|
|
27138
|
+
if (runtime.resolvedView === "agent") {
|
|
27139
|
+
emitSpaceAccessAgentOutput({
|
|
27140
|
+
presenter,
|
|
27141
|
+
resolution
|
|
27142
|
+
});
|
|
27143
|
+
return;
|
|
27144
|
+
}
|
|
27145
|
+
emitSpaceAccessHumanOutput({
|
|
27146
|
+
presenter,
|
|
27147
|
+
resolution
|
|
27148
|
+
});
|
|
27149
|
+
}
|
|
27150
|
+
//#endregion
|
|
26972
27151
|
//#region src/space/action-command.ts
|
|
26973
27152
|
const FINAL_SAFE_STATUSES = /* @__PURE__ */ new Set([
|
|
26974
27153
|
"blocked",
|
|
@@ -27443,14 +27622,32 @@ function parseSpaceTargetValue(value, deriveBaseUrl) {
|
|
|
27443
27622
|
}
|
|
27444
27623
|
const spacesIndex = segments.indexOf("spaces");
|
|
27445
27624
|
const spaceId = spacesIndex >= 0 ? segments[spacesIndex + 1] : void 0;
|
|
27446
|
-
if (!(spaceId && SPACE_ID_HEX_REGEX.test(spaceId))) throw new Error("Space URL must include /
|
|
27625
|
+
if (!(spaceId && SPACE_ID_HEX_REGEX.test(spaceId))) throw new Error("Space URL must include /spaces/<space-id> with a full 64-character Space ID. Organization-scoped /o/<org-slug>/spaces/<space-id> and legacy /app/spaces/<space-id> inputs are also accepted.");
|
|
27447
27626
|
const profileId = normalizeOptionalString$1(url.searchParams.get("profileId"));
|
|
27627
|
+
const focusInteractionId = normalizeOptionalString$1(url.searchParams.get("focusInteractionId"));
|
|
27628
|
+
const focusSignalId = normalizeOptionalString$1(url.searchParams.get("focusSignalId")) ?? normalizeOptionalString$1(url.searchParams.get("signalId"));
|
|
27629
|
+
const focusThreadRootSignalId = normalizeOptionalString$1(url.searchParams.get("focusThreadRootSignalId")) ?? normalizeOptionalString$1(url.searchParams.get("threadRootSignalId"));
|
|
27448
27630
|
return {
|
|
27449
27631
|
spaceId,
|
|
27450
27632
|
...profileId ? { profileId } : {},
|
|
27633
|
+
...focusInteractionId ? { focusInteractionId } : {},
|
|
27634
|
+
...focusSignalId ? { focusSignalId } : {},
|
|
27635
|
+
...focusThreadRootSignalId ? { focusThreadRootSignalId } : {},
|
|
27451
27636
|
...isPathOnly || !deriveBaseUrl ? {} : { baseUrl: resolveSpaceWebGatewayOrigin(url) }
|
|
27452
27637
|
};
|
|
27453
27638
|
}
|
|
27639
|
+
function resolveSpaceEntryCommandTarget(input) {
|
|
27640
|
+
const target = parseSpaceTarget(input.space, { baseUrl: input.baseUrl });
|
|
27641
|
+
const profile = normalizeOptionalString$1(input.profile) ?? target.profileId;
|
|
27642
|
+
return {
|
|
27643
|
+
space: target.spaceId,
|
|
27644
|
+
...target.baseUrl ? { baseUrl: target.baseUrl } : {},
|
|
27645
|
+
...target.focusInteractionId ? { focusInteractionId: target.focusInteractionId } : {},
|
|
27646
|
+
...target.focusSignalId ? { signalId: target.focusSignalId } : {},
|
|
27647
|
+
...target.focusThreadRootSignalId ? { threadRootSignalId: target.focusThreadRootSignalId } : {},
|
|
27648
|
+
...profile ? { profile } : {}
|
|
27649
|
+
};
|
|
27650
|
+
}
|
|
27454
27651
|
function resolveSpaceReadCommandTarget(input) {
|
|
27455
27652
|
const target = parseSpaceTarget(input.space, { baseUrl: input.baseUrl });
|
|
27456
27653
|
const profile = normalizeOptionalString$1(input.profile) ?? target.profileId;
|
|
@@ -28021,7 +28218,7 @@ function normalizeOptionalString(value) {
|
|
|
28021
28218
|
return normalized.length > 0 ? normalized : null;
|
|
28022
28219
|
}
|
|
28023
28220
|
async function runDefaultSpaceAddMeMembership(input) {
|
|
28024
|
-
const { runSpaceAddMeMembership } = await import("./add-me-membership-
|
|
28221
|
+
const { runSpaceAddMeMembership } = await import("./add-me-membership-TdfL6bv0.js");
|
|
28025
28222
|
return await runSpaceAddMeMembership(input);
|
|
28026
28223
|
}
|
|
28027
28224
|
//#endregion
|
|
@@ -29420,6 +29617,61 @@ async function syncSpaceGuideCache(input) {
|
|
|
29420
29617
|
});
|
|
29421
29618
|
}
|
|
29422
29619
|
//#endregion
|
|
29620
|
+
//#region src/space/link-command.ts
|
|
29621
|
+
async function runSpaceLink(input) {
|
|
29622
|
+
const runtime = await resolveRuntimeContext({ view: input.view });
|
|
29623
|
+
const presenter = createPresenter(runtime);
|
|
29624
|
+
assertValidSpaceIdTarget({
|
|
29625
|
+
space: input.space,
|
|
29626
|
+
resolvedView: runtime.resolvedView
|
|
29627
|
+
});
|
|
29628
|
+
assertFullSignalIdArgument({
|
|
29629
|
+
value: input.signalId,
|
|
29630
|
+
flag: "--signal",
|
|
29631
|
+
resolvedView: runtime.resolvedView
|
|
29632
|
+
});
|
|
29633
|
+
assertFullSignalIdArgument({
|
|
29634
|
+
value: input.threadRootSignalId,
|
|
29635
|
+
flag: "--thread-root-signal",
|
|
29636
|
+
resolvedView: runtime.resolvedView
|
|
29637
|
+
});
|
|
29638
|
+
const target = spaceEntryTargetSchema.parse({
|
|
29639
|
+
spaceId: input.space,
|
|
29640
|
+
signalId: input.signalId,
|
|
29641
|
+
threadRootSignalId: input.threadRootSignalId
|
|
29642
|
+
});
|
|
29643
|
+
emitSpaceLinkOutput({
|
|
29644
|
+
presenter,
|
|
29645
|
+
target,
|
|
29646
|
+
url: buildPublicSpaceEntryUrl({
|
|
29647
|
+
origin: resolveGatewayWebOrigin(await resolveBaseUrl(input.baseUrl)),
|
|
29648
|
+
target
|
|
29649
|
+
})
|
|
29650
|
+
});
|
|
29651
|
+
}
|
|
29652
|
+
function emitSpaceLinkOutput(input) {
|
|
29653
|
+
if (input.presenter.view === "agent") {
|
|
29654
|
+
input.presenter.data({
|
|
29655
|
+
code: "space.link",
|
|
29656
|
+
payload: {
|
|
29657
|
+
accessCommand: formatOpenMeldCliCommand(`openmeld space access ${JSON.stringify(input.url)} --view agent`),
|
|
29658
|
+
grantsAccess: false,
|
|
29659
|
+
target: input.target,
|
|
29660
|
+
url: input.url
|
|
29661
|
+
}
|
|
29662
|
+
});
|
|
29663
|
+
return;
|
|
29664
|
+
}
|
|
29665
|
+
input.presenter.line({
|
|
29666
|
+
code: "space.link",
|
|
29667
|
+
text: `Space link: ${input.url}`
|
|
29668
|
+
});
|
|
29669
|
+
input.presenter.line({
|
|
29670
|
+
code: "space.link.access_note",
|
|
29671
|
+
text: "Access is still checked when someone opens it."
|
|
29672
|
+
});
|
|
29673
|
+
}
|
|
29674
|
+
//#endregion
|
|
29423
29675
|
//#region src/space/members-output.ts
|
|
29424
29676
|
function emitSpaceMembersHumanOutput(input) {
|
|
29425
29677
|
input.presenter.line({
|
|
@@ -33085,30 +33337,35 @@ async function runServiceStartCliAction(opts) {
|
|
|
33085
33337
|
presenter: createPresenter(await resolveRuntimeContext({ view })),
|
|
33086
33338
|
command: "run"
|
|
33087
33339
|
});
|
|
33340
|
+
const run = async () => {
|
|
33341
|
+
const result = await runDaemonRunAfterEntryChecks({
|
|
33342
|
+
deviceId: opts.deviceId,
|
|
33343
|
+
gatewayUrl: opts.gatewayUrl,
|
|
33344
|
+
heartbeatMs: parseNonNegativeIntegerOption(opts.heartbeatMs, "--heartbeat-ms"),
|
|
33345
|
+
profile: opts.profile,
|
|
33346
|
+
mode: opts.mode,
|
|
33347
|
+
view,
|
|
33348
|
+
agentOverviewHandled: view === "agent",
|
|
33349
|
+
outputMode: json ? "silent" : "normal"
|
|
33350
|
+
});
|
|
33351
|
+
if (json) emitCliJsonEnvelope({
|
|
33352
|
+
schemaVersion: 1,
|
|
33353
|
+
type: "daemon.run",
|
|
33354
|
+
ok: result.ok,
|
|
33355
|
+
reason: result.reason
|
|
33356
|
+
});
|
|
33357
|
+
else await maybeRunAgentViewRecoveryAfterSuccess({ view });
|
|
33358
|
+
};
|
|
33359
|
+
if (isManagedSystemServiceBootstrapRun()) {
|
|
33360
|
+
await run();
|
|
33361
|
+
return;
|
|
33362
|
+
}
|
|
33088
33363
|
await runCommandWithEntryChecks({
|
|
33089
33364
|
routeTokens: ["service", "run"],
|
|
33090
33365
|
view,
|
|
33091
33366
|
profile: opts.profile,
|
|
33092
33367
|
gatewayUrl: opts.gatewayUrl,
|
|
33093
|
-
run
|
|
33094
|
-
const result = await runDaemonRunAfterEntryChecks({
|
|
33095
|
-
deviceId: opts.deviceId,
|
|
33096
|
-
gatewayUrl: opts.gatewayUrl,
|
|
33097
|
-
heartbeatMs: parseNonNegativeIntegerOption(opts.heartbeatMs, "--heartbeat-ms"),
|
|
33098
|
-
profile: opts.profile,
|
|
33099
|
-
mode: opts.mode,
|
|
33100
|
-
view,
|
|
33101
|
-
agentOverviewHandled: view === "agent",
|
|
33102
|
-
outputMode: json ? "silent" : "normal"
|
|
33103
|
-
});
|
|
33104
|
-
if (json) emitCliJsonEnvelope({
|
|
33105
|
-
schemaVersion: 1,
|
|
33106
|
-
type: "daemon.run",
|
|
33107
|
-
ok: result.ok,
|
|
33108
|
-
reason: result.reason
|
|
33109
|
-
});
|
|
33110
|
-
else await maybeRunAgentViewRecoveryAfterSuccess({ view });
|
|
33111
|
-
}
|
|
33368
|
+
run
|
|
33112
33369
|
});
|
|
33113
33370
|
}
|
|
33114
33371
|
async function runServiceMaintenanceCliAction(opts, displayAction) {
|
|
@@ -33155,6 +33412,18 @@ spaceCmd.option("--gateway-url <url>", "OpenMeld gateway URL (command line, OPEN
|
|
|
33155
33412
|
});
|
|
33156
33413
|
});
|
|
33157
33414
|
registerSpaceFilesCommands(spaceCmd);
|
|
33415
|
+
spaceCmd.command("link").description("Create a Web link to a Space, message, or thread message.").argument("[space]", "Space ID (64-character hex)").option("--signal <id>", "Message signal ID").option("--thread-root-signal <id>", "Thread root signal ID").action(async (space, opts, command) => {
|
|
33416
|
+
const cliOptions = resolveSpaceCommandCliOptions(command, opts);
|
|
33417
|
+
const spaceValue = String(space ?? "").trim();
|
|
33418
|
+
if (!spaceValue) throw new Error("missing required argument for openmeld space link: <space-id>");
|
|
33419
|
+
await runSpaceLink({
|
|
33420
|
+
baseUrl: cliOptions.gatewayUrl,
|
|
33421
|
+
signalId: typeof opts.signal === "string" ? opts.signal.trim() : void 0,
|
|
33422
|
+
space: spaceValue,
|
|
33423
|
+
threadRootSignalId: typeof opts.threadRootSignal === "string" ? opts.threadRootSignal.trim() : void 0,
|
|
33424
|
+
view: getGlobalViewOption()
|
|
33425
|
+
});
|
|
33426
|
+
});
|
|
33158
33427
|
const spaceActionCmd = spaceCmd.command("action").description("Record a dispatch-scoped OpenMeld Space Action.").action(async () => {
|
|
33159
33428
|
await runSpaceActionHelp();
|
|
33160
33429
|
});
|
|
@@ -33826,6 +34095,38 @@ withSpaceProfileOption(spaceCmd.command("publication").description("Manage how a
|
|
|
33826
34095
|
}
|
|
33827
34096
|
});
|
|
33828
34097
|
});
|
|
34098
|
+
withSpaceProfileOption(spaceCmd.command("access").description("Resolve whether this profile can view and participate in a Space.").argument("[space]", "Space URL or 64-character Space ID").option("--json", "Print canonical JSON", false).option("--password <value>", "Space password for protected access")).action(async (space, opts, command) => {
|
|
34099
|
+
const cliOptions = resolveSpaceCommandCliOptions(command, opts);
|
|
34100
|
+
const spaceValue = String(space ?? "").trim();
|
|
34101
|
+
const outputView = await resolveEffectiveViewForOutput();
|
|
34102
|
+
if (!spaceValue && outputView === "agent") throw createSpaceTargetGuideError("access");
|
|
34103
|
+
if (!spaceValue) throw new Error("missing required argument for openmeld space access: <space-url-or-id>");
|
|
34104
|
+
const target = resolveSpaceEntryCommandTarget({
|
|
34105
|
+
baseUrl: cliOptions.gatewayUrl,
|
|
34106
|
+
profile: cliOptions.profile,
|
|
34107
|
+
space: spaceValue
|
|
34108
|
+
});
|
|
34109
|
+
const view = getGlobalViewOption();
|
|
34110
|
+
await runCommandWithEntryChecks({
|
|
34111
|
+
routeTokens: ["space", "access"],
|
|
34112
|
+
view,
|
|
34113
|
+
profile: target.profile,
|
|
34114
|
+
gatewayUrl: target.baseUrl,
|
|
34115
|
+
jsonOutput: cliOptions.json === true,
|
|
34116
|
+
run: async () => {
|
|
34117
|
+
await runSpaceAccess({
|
|
34118
|
+
profile: target.profile,
|
|
34119
|
+
baseUrl: target.baseUrl,
|
|
34120
|
+
space: target.space,
|
|
34121
|
+
signalId: target.signalId,
|
|
34122
|
+
threadRootSignalId: target.threadRootSignalId,
|
|
34123
|
+
password: cliOptions.password,
|
|
34124
|
+
json: cliOptions.json === true,
|
|
34125
|
+
view
|
|
34126
|
+
});
|
|
34127
|
+
}
|
|
34128
|
+
});
|
|
34129
|
+
});
|
|
33829
34130
|
withSpaceProfileOption(spaceCmd.command("status").description("Read Organization visibility, link access, and current Space status.").argument("[space]", "Space URL or 64-character Space ID").option("--json", "Print canonical JSON", false).option("--password <value>", "Space password for protected access")).action(async (space, opts, command) => {
|
|
33830
34131
|
const cliOptions = resolveSpaceCommandCliOptions(command, opts);
|
|
33831
34132
|
const spaceValue = String(space ?? "").trim();
|