openmeld 0.3.173 → 0.3.174

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.
Files changed (49) hide show
  1. package/dist/{add-me-membership-BRo6lLxZ.js → add-me-membership-zsKO5c2i.js} +2 -2
  2. package/dist/{add-me-membership-BRo6lLxZ.js.map → add-me-membership-zsKO5c2i.js.map} +1 -1
  3. package/dist/{api-client-foundation-BvNTRYuE.js → api-client-foundation-BmL7N1rL.js} +3 -3
  4. package/dist/{api-client-foundation-BvNTRYuE.js.map → api-client-foundation-BmL7N1rL.js.map} +1 -1
  5. package/dist/{api-client-foundation-CI2yCHVJ.js → api-client-foundation-L2yqzJvx.js} +1 -1
  6. package/dist/{auth-session-BWlfQspT.js → auth-session-CACyTxMs.js} +2 -2
  7. package/dist/{auth-session-BWlfQspT.js.map → auth-session-CACyTxMs.js.map} +1 -1
  8. package/dist/auth-session-xtsMt51e.js +4 -0
  9. package/dist/{base-url-iT1pbiC4.js → base-url-8Q6W3z6w.js} +1 -1
  10. package/dist/{base-url-CgF_v0Ue.js → base-url-DvSrOI4A.js} +2 -2
  11. package/dist/{base-url-CgF_v0Ue.js.map → base-url-DvSrOI4A.js.map} +1 -1
  12. package/dist/{command-BQ-RvGrL.js → command-CdMfJRAB.js} +320 -500
  13. package/dist/command-CdMfJRAB.js.map +1 -0
  14. package/dist/{controller-contract-CvjP4mYj.js → controller-contract-pe3_Re-c.js} +8 -2
  15. package/dist/controller-contract-pe3_Re-c.js.map +1 -0
  16. package/dist/dist-CTrCRN9d.js +4 -0
  17. package/dist/{dist-CSr9OLUH.js → dist-D_08t8sR.js} +236 -728
  18. package/dist/dist-D_08t8sR.js.map +1 -0
  19. package/dist/{elapsed-time-CLDZ8oLn.js → elapsed-time-DRZZZEOZ.js} +8 -8
  20. package/dist/{elapsed-time-CLDZ8oLn.js.map → elapsed-time-DRZZZEOZ.js.map} +1 -1
  21. package/dist/{installer-BTd0tuiO.js → installer-DHZPSSGu.js} +5 -5
  22. package/dist/installer-DHZPSSGu.js.map +1 -0
  23. package/dist/{openmeld-d1wF4Gg4.js → openmeld-NJMNglsl.js} +46 -82
  24. package/dist/openmeld-NJMNglsl.js.map +1 -0
  25. package/dist/openmeld-dev.js +1 -1
  26. package/dist/{openmeld-maintenance-worker-N5czH8tj.js → openmeld-maintenance-worker-XcbZgg97.js} +4 -4
  27. package/dist/{openmeld-maintenance-worker-N5czH8tj.js.map → openmeld-maintenance-worker-XcbZgg97.js.map} +1 -1
  28. package/dist/{openmeld-tools-update-coordinator-BDN1ZYm0.js → openmeld-tools-update-coordinator-pczmEBLZ.js} +26 -16
  29. package/dist/openmeld-tools-update-coordinator-pczmEBLZ.js.map +1 -0
  30. package/dist/openmeld.js +3 -3
  31. package/dist/{runtime-transport-5G8zV7dE.js → runtime-transport-B1F7rGb0.js} +5 -8
  32. package/dist/runtime-transport-B1F7rGb0.js.map +1 -0
  33. package/dist/upgrade-DUA-5zZT.js +4 -0
  34. package/dist/{upgrade-CE9e3aQx.js → upgrade-h0cX0c-E.js} +4 -4
  35. package/dist/{upgrade-CE9e3aQx.js.map → upgrade-h0cX0c-E.js.map} +1 -1
  36. package/package.json +2 -2
  37. package/skills/openmeld-cli/SKILL.md +3 -1
  38. package/skills/openmeld-cli/playbooks/space-ops.md +17 -45
  39. package/skills/openmeld-cli/references/commands.md +6 -13
  40. package/dist/auth-session-DmnsWpk0.js +0 -4
  41. package/dist/command-BQ-RvGrL.js.map +0 -1
  42. package/dist/controller-contract-CvjP4mYj.js.map +0 -1
  43. package/dist/dist-CSr9OLUH.js.map +0 -1
  44. package/dist/dist-CkXThuuq.js +0 -4
  45. package/dist/installer-BTd0tuiO.js.map +0 -1
  46. package/dist/openmeld-d1wF4Gg4.js.map +0 -1
  47. package/dist/openmeld-tools-update-coordinator-BDN1ZYm0.js.map +0 -1
  48. package/dist/runtime-transport-5G8zV7dE.js.map +0 -1
  49. package/dist/upgrade-CaPVzLmd.js +0 -4
@@ -3,20 +3,20 @@
3
3
  import { _ as toSpaceWsUrl, a as toSpaceCreateUrl, d as toSpaceMembersUrl, f as toSpaceMetaUrl, g as toSpaceUpdatesUrl, m as toSpaceRemoveMembersUrl, o as toSpaceCursorUrl, p as toSpacePasswordUrl, s as toSpaceDeleteUrl, t as normalizeBaseUrl, u as toSpaceLeaveUrl } from "./urls-4D7CaXe3.js";
4
4
  import { t as isLoopbackHostname } from "./loopback-hostname-DHQPKq8N.js";
5
5
  import { A as formatLocalMachineIssueMessage, E as createBackgroundExecutionBlockedIssue, G as isPublishedOpenMeldHome, I as accountsDir, J as normalizeAccountKey, K as legacyAccountProfileSpacesDir, N as accountProfileSpaceCacheDir, Q as openMeldManagedBinaryPath, Y as normalizeOpenMeldProfileId, _ as resolveCliContextId, b as resolveOpenMeldLaneDescriptor, dt as resolveOpenMeldRootDir, j as OPENMELD_HOME_ENV_KEY, l as resolveOpenMeldOrphanedLockIssue, lt as resolveOpenMeldEnvPreset, r as isOpenMeldLockError, t as acquireLock, tt as openMeldRootDir, u as runWithHeldLock, ut as resolveOpenMeldPresetOwnedPathInput, w as assessLocalMachineFailure } from "./lock-VfUd0-tH.js";
6
- import { _ as canonicalizeBuiltinAgentControllerRef, b as parseAgentControllerRef, d as resolveBuiltinAgentControllerConversationKind, l as buildAgentControllerConversationRef, v as normalizeBuiltinAgentControllerId, y as normalizeKnownBuiltinAgentControllerId } from "./controller-contract-CvjP4mYj.js";
7
- import { $ as formatReplyReadinessSummary, $a as resolveAuthenticationGuidance, $i as formatDaemonLifecycleOriginSummary, $n as SPACE_ACTION_TARGET_GUIDANCE_LINES, $o as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS, $r as renderInformationProtectionPrompt, $t as setDefaultProjectConnection, A as resolveServiceReadiness, Aa as requireOpenMeldProfile, Ai as readCurrentDaemonOwnerSnapshot, An as resolveRegistryOriginLaunchCommand, Ao as asRecord, Ar as removeConversationExecutionState, At as resolveProfileWorkspaceRuntime, B as resolveDaemonServiceFreshnessWarning, Ba as assertAdditionalHumanProfileCreationEnabled, Bi as waitForDaemonSystemServiceToStop, Bn as parseAgentEnabledOption, Bo as CATALOG_SYNC_RETRY_INTERVAL_MS, Br as buildAgentControllerRef, C as ensureDaemonSystemServiceCommandFiles, Ci as createUnsupportedProviderUsageLimits, Cn as setAgentRegistrationEnabled, Co as describeServerRequiredVersionUnavailableReason, Cr as resolveLatestScopedConversationExecutionState, Ct as buildRuntimeRouteTargets, D as resolveDaemonStatusSnapshot, Di as buildDaemonOwnerSnapshotFromObservedState, Do as ensureDaemonRuntimePaths, Dr as appendLedgerHistoryEntry, Dt as syncProfileWorkspaceState, E as formatDaemonFailureContextText, Ei as inspectDaemonServiceInventory, En as canManageRegistryAgentSkillTargets, Eo as buildLedgerPaths, Er as buildTaskResultEnvelope, Et as resolveLocalRuntimeControllerSupport, F as buildDaemonServiceStatusReadOnlyDetail, Fa as getOpenMeldProfileCapabilities, Fi as getEffectiveDaemonRuntimeStatus, Fo as normalizeOptionalText$21, Fr as withLedgerStateTransaction, G as buildDaemonServiceDependencyNextStep, Gi as resolveDaemonBundleIdFromEntryPath, Gn as isBunGlobalCommandPath, Go as DAEMON_RUNTIME_CONTRACT_EPOCH, Gr as createAuthorityOpenMeldServiceRuntimeId, Gt as listProjectBindings, H as writeDaemonStartFailureState, Hi as listDaemonOwnedProcesses, Hn as repairBuiltinControllerInstall, Ho as CONTROLLED_SHUTDOWN_REQUEST_TIMEOUT_MS, Hr as buildWorkingLanguagePromptPlan, Ht as ProjectBindingStoreUpdateRequiredError, I as buildDaemonServiceUpdateRequiredNextStep, Ia as listOpenMeldProfiles, Ii as readCurrentDaemonRuntimeContext, In as requestLocalDaemonShutdown, Io as normalizeText$2, Ir as buildAuthenticatedControlPlaneResponse, It as resolveConfiguredProfileWorkspacePathForAccount, J as resolveDaemonServiceDependencyDiagnostics, Ja as buildAuthenticationStatusLabel, Ji as prepareDaemonServiceBundle, Jn as isPnpmGlobalCommandPath, Jo as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS, Jr as isAgentExecutionReadyOrConnecting, Jt as removeAgentActivityBindingsWhileDeliveryLocked, K as buildDaemonServiceDependencySummary, Ki as isOpenMeldManagedBinaryPath, Kn as isHomebrewCommandPath, Ko as DAEMON_STREAM_CONNECT_TIMEOUT_MS, Kt as listProjectConnectionsWithStatus, L as formatDaemonServiceRefreshReliabilityMessage, Li as readCurrentObservedDaemonRuntimeStatus, Ln as sendLocalDaemonControlPlaneRequest, Lo as nowIsoString, Lr as buildAgentContextLookupKey, Lt as setCustomProfileWorkspace, M as buildDaemonServiceRefreshNextStep, Ma as createOpenMeldAgentProfile, Mi as resolveStoppedContractWriteBlockedReason, Mn as resolveRegistryRuntimeAdapterContractByAgentControllerRef, Mo as emitRunLine, Mr as seedLegacyAgentContext, N as buildDaemonServiceRefreshPromptMessage, Na as createOpenMeldHumanProfile, Ni as summarizeDaemonOwnerSnapshot, No as normalizeHeartbeatIntervalMs, Nr as settleInflightTask, O as resolveDaemonStatusAttention, Oa as resolveCurrentOpenMeldAccountContext, Oi as formatDaemonOwnerSummaryLabel, On as resolveSkillsAgentRegistry, Oo as resolveDaemonDeviceId, Or as commitResolvedAgentContext, P as buildDaemonServiceRepairGuidance, Pi as clearDaemonRuntimeStateIfDefinitelyStopped, Pn as LocalDaemonControlPlaneClientError, Po as normalizeNonNegativeInteger$1, Pr as upsertConversationExecutionState, Pt as readProfileWorkspaceConfigForAccount, Qa as extractAuthenticationPromptAction, Qi as emitDaemonLifecycleEvent, Qn as SPACE_ACTION_CONTEXT_GUIDANCE_LINES, Qo as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS, R as formatDaemonServiceUpdateRequiredMessage, Ri as resolveDaemonRuntimeState, Rn as normalizeAgentId, Ro as toErrorMessage$19, Rr as DEFAULT_TASK_LIFECYCLE_HEARTBEAT_INTERVAL_MS, S as buildDaemonSystemServiceCommandSpec, Si as createUnavailableProviderUsageLimits, Sn as resolveAgentTargetState, So as assessServerRequiredVersion, Sr as resolveCompatibleConversationExecutionState, St as syncDaemonRouteCatalogState, T as captureDaemonServiceEvidenceBestEffort, Ti as materializeCliLaunchCommand, Tn as updateAgentRegistrations, Tr as buildRuntimeWorkspaceFingerprint, Tt as resolveLocalController, U as buildDaemonServiceDependencyDetails, Ua as clearAllSelectedOpenMeldProfileIds, Un as EMPTY_AGENT_CONTROLLER_INTERFACE_CAPABILITIES, Uo as CONTROLLED_SHUTDOWN_RESULT_ACK_TIMEOUT_MS, Ur as createAgentControllerInterfaceDisplayRows, Ut as bindProject, V as clearDaemonStartFailureState, Va as readDaemonCatalogSyncSignal, Vi as cleanupLegacySharedDaemonServiceState, Vn as sortAgentRegistrations, Vo as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS, Vr as buildInformationProtectionPromptPlan, Vt as ProjectBindingOperationError, W as buildDaemonServiceDependencyMeaning, Wi as extractDaemonCommandEntryPath, Wn as resolveBuiltinAgentControllerDefinition, Wo as CONTROLLED_SHUTDOWN_SOCKET_CLOSE_TIMEOUT_MS, Wt as isProjectBound, Xa as buildHumanAuthenticationCard, Xi as resolveAlignedDaemonActiveBundleEntryPath, Xn as normalizeDispatchThreadAction, Xo as HEARTBEAT_RESPONSE_TIMEOUT_MS, Xr as parseAgentControllerRef$1, Xt as removeProjectConnection, Y as resolveCurrentReplyReadinessSnapshot, Ya as buildCommandAuthenticationPromptMessage$1, Yi as readDaemonActiveBundleState, Yn as resolveLocalRegistryAgentIdFromAgentControllerRef, Yo as DEFAULT_RECONNECT_DELAY_MS, Yt as removeMissingProjectConnections, Za as createAuthenticationError, Zi as resolveDaemonBundleEntryPathFromState, Zn as syncRuntimeEventToInflightTaskControlRegistry, Zo as MAX_RECONNECT_DELAY_MS, Zt as resolveProjectBindingForPath, _ as isDaemonInventoryRunningAndStartReady$1, _a as OPENMELD_VERSION, _i as resolveCodexTimeoutMs, _n as manageAgentRegistrationInstallation, _r as resolveAdaptiveHeartbeatIntervalMs, _t as resolveLocalServiceDemand, a as resolveOpenMeldToolsMaintenanceProjection, aa as runWithDaemonLifecycleCommandJournal, ao as isVersionDowngrade, ar as createPendingAgentInteractionRegistry, as as isDaemonServiceContractIdentityReusable, at as resolveOpenClawDiagnosticsGuidance, b as waitForSystemServiceStartup$1, bi as verifyCodexAppServerThread, br as resolveDispatchContinuityObservation, bs as compareAgentControllerRefsForDisplay, bt as loadDaemonRouteCatalog, ca as readLastDaemonServiceUpdate, ci as createLocalAdapterContainer, cn as emitReconcileCompletedEvidence, co as DAEMON_SERVICE_FULL_ALIGNMENT_ANOMALIES, cr as buildLocalServiceDiagnosticsPayload, cs as resolveOpenMeldEnvironmentTarget, ct as resolveGatewayChainRepairGuidance, d as scheduleDaemonServiceUpdate, di as forkOpenCodeServerSession, dn as resolveAgentProfilePrimaryAgentControllerReport, do as classifyDaemonServiceRunStartability, dr as ADAPTIVE_HEARTBEAT_JITTER_RATIO, ds as formatOpenMeldCliCommand, dt as prepareProviderRuntime, ea as readLatestDaemonLifecycleConnectionStateEvent, ei as renderWorkingLanguagePrompt, eo as resolveAuthenticationGuidanceFromError, er as isDaemonReconcileInProgressError, es as REGISTER_RESPONSE_TIMEOUT_MS, f as DaemonServiceLifecycleDrainTimeoutError, fi as resolveInstalledOpenCodeLaunchCandidates, fn as addAgentCustomTarget, fo as classifyDaemonServiceWakeability, fr as MAX_HEARTBEAT_INTERVAL_MS, fs as formatOpenMeldCliCommands, ft as buildOpenClawSpaceSessionKey, g as uninstallDaemonServiceUpdateWorker, ga as resolveCurrentDaemonExpectedVersion, gi as projectCodexUsageLimits, gn as listAgentTargetStates, gr as pruneStaleLeases, gt as writeDaemonRouteCatalogCache, ha as DaemonServiceRunError, hi as resolveInstalledGrokBuildLaunchCandidates, hn as listAgentRegistrations, hr as applyIntervalJitterMs, hs as formatProfileAwareOpenMeldCliCommand, ht as readDaemonRouteCatalogCache, i as readOpenMeldToolsMaintenancePolicy, ia as runDaemonServiceManagerAction, in as withAgentActivityLocalStateLock, io as resolveDaemonServiceAlignmentDecision, ir as normalizeDispatchPostMessageAction, is as clearDaemonServiceContract, it as resolveReplyReadinessGuidanceSummaryCopy, ja as resolveOpenMeldProfileOrNull, ji as resolveDaemonStopStrategy, jn as resolveRegistryRuntimeAdapterCapabilitySnapshot, jo as dirnamePath, jr as resolveConversationExecutionStateByLookupKey, jt as ensureOpenMeldManagedProfileWorkspace, k as resolveDaemonStatusAuthenticationAttention, ki as hasActiveDaemonOwners, kn as listBuiltinAgentsRegistryEntries, ko as resolvePreferredDaemonDeviceId, kr as loadLedgerState, kt as resolveCurrentEffectiveProfileWorkingFolderRuntime, la as readPendingDaemonServiceUpdate, li as createLocalAdapterEntries, ln as emitReconcileStartedEvidence, lo as DAEMON_SERVICE_REPAIR_ANOMALIES, lr as createLocalExecutionSlots, ls as resolveAuthBaseUrl, lt as resolveGatewayChainRetryGuidance, m as ensureDaemonServiceMaintenanceInstalled, ma as readDaemonRuntimeContractRepairReport, mi as probeGrokBuildAcpInterface, mn as listAgentCustomTargets, mo as compareSemver, mr as applyAcceptedLeases, ms as formatOpenMeldCliTextBlock, mt as slugifyOpenClawNamePart, n as readLastOpenMeldToolsUpdateAttempt, nn as resolveLocalProjectConnectionForPath, no as resolveAuthenticationReasonFromState, nr as createSerialAgentInteractionCallback, ns as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS, nt as formatSpaceMemberCommandRecoveryCopy, o as writeOpenMeldToolsMaintenancePolicy, oi as resolveSelectableCandidates, on as syncDeviceRuntimeStateProjection, or as mergeOpenClawGatewayVisibility, os as readDaemonServiceContract, ot as classifyGatewayChainFailure, p as runDaemonServiceLifecycle, pa as ensureDaemonRuntimeContractState, pi as GrokBuildAcpTransportError, pn as createRegistrationFromCatalogTarget, pr as MIN_HEARTBEAT_INTERVAL_MS, pt as normalizeOpenClawSpaceIdPrefix, q as buildDaemonServiceDependencyTitle, qi as cleanupInactiveDaemonServiceBundles, qn as isNpmGlobalCommandPath, qo as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS, r as readPendingOpenMeldToolsUpdateAttempt, ra as resolveRecentDaemonSignalStopCause, rn as withAgentActivityDeliveryLock, ro as buildDaemonServiceTargetSpec, rr as buildDispatchReplyContextSummary, rs as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS, rt as resolveReplyReadinessAvailabilityReasonCopy, s as assessCliUpdate, si as resolveCatalogSyncSkippedProfilesLogState, sn as emitDriftDetectedEvidence, so as DAEMON_SERVICE_AUTO_HEAL_ANOMALIES, sr as createLocalTaskInterruptSender, ss as upsertDaemonServiceContract, t as createOpenMeldToolsUpdateCoordinator, ta as readLatestDaemonLifecycleOriginEvent, tr as resolveRouteRegistrationReconcileDecision, ts as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS, tt as REPLY_READINESS_COPY, ui as parseOpenCodeGoUsageResponse, uo as DAEMON_SERVICE_WAKEABILITY_ADVISORY_ANOMALIES, ur as createInflightTaskControlRegistry, us as formatInlineOpenMeldCliCommands, ut as resolveOpenClawLocalDiagnosticsValue, v as isSystemServiceStartupTimeoutError, vi as resolveInstalledCodexLaunchCandidates, vn as readAgentRuntimeConfigHealth, vr as resolveCatalogSyncIntervalMs, vs as resolveUserFacingCliEntryCommand, vt as createMutableRouteCatalogState, w as captureDaemonServiceEvidence, wa as resolveRuntimeContext, wi as buildCliLaunchInvocation, wn as updateAgentCustomTarget, wr as runRuntimeTask, wt as readLocalEnabledControllers, x as writeDaemonServiceContract, xi as resolveInstalledClaudeCodeLaunchCandidates, xn as removeAgentCustomTarget, xo as resolveServiceUpdateUrgency, xr as resolveCompatibleAgentContextMatch, xs as resolveBuiltinAgentControllerBrand, xt as summarizeSkippedDaemonProfiles, y as resolveSystemServiceStartupWaitMs, yi as forkCodexAppServerThread, yn as reconcileNewRunnableBuiltinAgentRegistrations, yr as resolveDispatchQueueLogMeta, yt as createRouteCatalogFromMutableState, z as buildDaemonServiceFreshnessPromptLines, zi as resolveDaemonServiceManagerForRuntimeState, zn as normalizeAgentIds, zo as warnDaemonEvent, zr as areAgentControllerInterfaceAccountsSame } from "./openmeld-tools-update-coordinator-BDN1ZYm0.js";
8
- import { $r as spaceMemberDirectoryEntrySchema, An as parseEnvelope$1, Ar as createCenterAgentRoutineResponseSchema, At as buildSpaceAttachmentDownloadPath, Bn as getSpaceUpdatesResponseSchema, Ci as toCompatibleSpaceAddressingRequestWireValue, Dn as DAEMON_STREAM_KEEPALIVE_PING, Dr as organizationComputersResponseSchema, Fr as resumeCenterAgentRoutineResponseSchema, Ft as createAccountSpaceIndexApi, Gr as localProjectControlDaemonFrameSchema, Hn as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, In as OPENMELD_HEADER_REQUEST_ID, Ir as updateCenterAgentRoutineResponseSchema, It as createAgentActivityApi, Jr as postSpaceMembersResponseSchema, Kr as localProjectControlDiscoverProjectsResponseSchema, Kt as createFetchTransport, Ln as OPENMELD_HEADER_SPACE_ADDRESSING_VERSION, Lt as createAgentProfileBindingApi, Mn as parseServerErrorFrame$1, Mr as listCenterAgentRoutineRunsResponseSchema, Nn as resolveCustomMentionAliasOverride, Nr as listCenterAgentRoutinesResponseSchema, Or as submitFeedbackIssueRequestSchema, Pr as pauseCenterAgentRoutineResponseSchema, Qr as spaceMemberDirectoryAllowedRelationsSchema, Qt as createOrganizationApi, Rr as AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, Ur as agentActivitySnapshotResponseSchema, Vn as spaceEntryTargetSchema, Wr as localProjectControlConnectionSchema, Yr as removeSpaceMembersResponseSchema, Zn as submitAgentControllerTaskLifecycleEventItemSchema, Zr as spaceMemberAgentWakeAvailabilitySchema, Zt as createOpenMeldApiClient, _n as resolveAccountSpaceIndexGatewayHost, _r as organizationSkillReleaseSummarySchema, ai as agentActivitySessionInventoryResponseSchema, ar as OPENMELD_RUNTIME_CAPABILITIES_HEADER, bn as toStructuredApiClientFailure, br as organizationDirectoryResponseSchema, bt as buildProfileSpaceHistoryStatusPath, ci as archiveProjectResponseSchema, cn as createSpaceApi, cr as computerFileAccessPolicySchema, di as projectSchema, dr as resolveInitialSpaceAccessMode, ei as spaceMemberDirectorySchema, fi as updateProjectResponseSchema, fr as spaceCreatorSchema, hr as listOrganizationSkillsResponseSchema, ir as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, jn as parseIncoming$1, jr as deleteCenterAgentRoutineResponseSchema, kn as MAX_TEXT_LENGTH, kr as submitFeedbackIssueResponseSchema, li as createProjectResponseSchema, mr as getOrganizationSkillResponseSchema, n as OpenMeldApiClientInvalidResponseError, or as computerFileAccessDaemonFrameSchema, pi as centerAgentToolSpeakerSchema, pr as spaceMetaSchema, qr as leaveSpaceResponseSchema, rn as createProfileSpaceHistoryApi, rr as gatewayErrorEnvelopeSchema, si as observedLocalAgentSessionSchema, sn as createRuntimeReportingApi, sr as computerFileAccessPolicyInputSchema, t as OpenMeldApiClientHttpError, ti as spaceMemberKindSchema, ui as listProjectsResponseSchema, ur as organizationSpaceDirectoryWithMemberCountsResponseSchema, vn as resolveProfileSpaceHistoryGatewayHost, vr as organizationSkillSummarySchema, xt as buildProfileSpaceHistoryUpsertPath, zr as agentActivityEventSchema } from "./dist-CSr9OLUH.js";
9
- import { A as runtimeTransportRegisterSessionRequestSchema, An as resolveMessageEnvelopeTargetField, Bn as agentInteractionRequestSchema, C as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, Cr as strictObject, Ct as sanitizeSignalTextPreview, Dn as getSpaceMessageAddressingRelationSupportForTargetKind, E as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, En as formatCanonicalMentionLiteral, F as runtimeTransportRouteCatalogChangedFramePayloadSchema, G as openMeldDaemonTaskResultPayloadSchema, Gn as formatLocalSetupActionDescription, J as LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY, Jn as localCliComponentUpdateProjectionSchema, Kn as formatLocalSetupActionLabel, L as runtimeTransportSubmitTaskResultRequestSchema, Lr as runtimeCoordinatorExecutionTokenEnvelopeSchema, N as runtimeTransportResumeControllerConversationFramePayloadSchema, Nr as parseOptionalClientMessageId, O as runtimeTransportOpenMeldToolsControlFramePayloadSchema, P as runtimeTransportResumeControllerConversationResultFramePayloadSchema, Q as localFolderPickerHelperResultSchema, Qn as localServiceComponentUpdateProjectionSchema, Rn as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, Rr as runtimeTransportDeliveryExecutionIdentitySchema, S as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, T as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, Tn as collectCanonicalMentionTextFragments, Un as formatLocalComponentsSummaryDescription, Ur as resolveSingleSpaceMentionLabels, Vr as normalizeSpacePasswordText, Wn as formatLocalComponentsSummaryLabel, Wr as resolveSpaceMentionLabels, X as localFolderPickerDaemonFrameSchema, Y as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, Z as localFolderPickerHelperProtocolResultSchema, Zt as spaceFileNameSchema, _ as runtimeTransportForkAgentSessionResultSchema, _i as resolvePublicAgentAvailabilityCopy, a as localWakeRouteWorkingFolderObservationSchema, an as openMeldDaemonControlPlaneResponseSchema, b as runtimeTransportLocalAgentControlCancelFramePayloadSchema, bt as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, c as runtimeTransportDispatchInteractionDeliveredRequestSchema, cr as boolean, d as runtimeTransportDispatchLifecycleRequestSchema, ei as openMeldRequestContextSchema, f as runtimeTransportDispatchPreviewEndRequestSchema, fr as enumFactory, gr as literal, h as runtimeTransportDispatchToolActivityRequestSchema, ht as CONVERSATION_CONTINUITY_WARNING_PURPOSE, ii as openMeldRuntimeProfileIdSchema, j as runtimeTransportRegisterSessionResponseSchema, k as runtimeTransportOpenMeldToolsControlResultFramePayloadSchema, kn as normalizeMessageEnvelope, kr as url, l as runtimeTransportDispatchInteractionRequestSchema, m as runtimeTransportDispatchRuntimeEvidenceRequestSchema, mi as MAX_TEXT_LENGTH$1, mr as iso, p as runtimeTransportDispatchPreviewRequestSchema, q as openMeldSpaceEgressActionSchema, qn as installedLocalComponentsSnapshotSchema, qt as resolveSpaceFileMimeType, r as daemonStreamFrameSchema, ri as normalizeOptionalWorkingDirectory, s as runtimeTransportDeliverDispatchRequestSchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, u as runtimeTransportDispatchInteractionResponseFramePayloadSchema, ur as discriminatedUnion, v as runtimeTransportHeartbeatRequestSchema, w as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, wn as MESSAGE_MENTION_TYPE_VALUES, wr as string, x as runtimeTransportLocalAgentControlForkSessionFramePayloadSchema, xt as SPACE_MENTION_REJECT_NOTICE_PURPOSE, y as runtimeTransportHeartbeatResponseSchema, yi as sanitizeDispatchErrorSummary, yt as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, zt as SPACE_FILE_MAX_SIZE_BYTES } from "./runtime-transport-5G8zV7dE.js";
10
- import { b as computeDirectoryContentHash, f as ensureLocalSkills, g as loadSelectedSkillAssets, r as collectSkillsReadinessSnapshot, t as installSkillsToTargets, u as resolveSkillInstallStateForTarget, v as withSkillsInstallLock, x as OFFICIAL_CLI_SKILL_URL, y as hashBundledSkillAssets } from "./installer-BTd0tuiO.js";
6
+ import { b as normalizeKnownBuiltinAgentControllerId, d as resolveBuiltinAgentControllerConversationKind, l as buildAgentControllerConversationRef, v as canonicalizeBuiltinAgentControllerRef, x as parseAgentControllerRef, y as normalizeBuiltinAgentControllerId } from "./controller-contract-pe3_Re-c.js";
7
+ import { $ as formatReplyReadinessSummary, $a as resolveAuthenticationGuidance, $i as formatDaemonLifecycleOriginSummary, $n as SPACE_ACTION_TARGET_GUIDANCE_LINES, $o as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS, $r as renderInformationProtectionPrompt, $t as setDefaultProjectConnection, A as resolveServiceReadiness, Aa as requireOpenMeldProfile, Ai as readCurrentDaemonOwnerSnapshot, An as resolveRegistryOriginLaunchCommand, Ao as asRecord, Ar as removeConversationExecutionState, At as resolveProfileWorkspaceRuntime, B as resolveDaemonServiceFreshnessWarning, Ba as assertAdditionalHumanProfileCreationEnabled, Bi as waitForDaemonSystemServiceToStop, Bn as parseAgentEnabledOption, Bo as CATALOG_SYNC_RETRY_INTERVAL_MS, Br as buildAgentControllerRef, C as ensureDaemonSystemServiceCommandFiles, Ci as createUnsupportedProviderUsageLimits, Cn as setAgentRegistrationEnabled, Co as describeServerRequiredVersionUnavailableReason, Cr as resolveLatestScopedConversationExecutionState, Ct as buildRuntimeRouteTargets, D as resolveDaemonStatusSnapshot, Di as buildDaemonOwnerSnapshotFromObservedState, Do as ensureDaemonRuntimePaths, Dr as appendLedgerHistoryEntry, Dt as syncProfileWorkspaceState, E as formatDaemonFailureContextText, Ei as inspectDaemonServiceInventory, En as canManageRegistryAgentSkillTargets, Eo as buildLedgerPaths, Er as buildTaskResultEnvelope, Et as resolveLocalRuntimeControllerSupport, F as buildDaemonServiceStatusReadOnlyDetail, Fa as getOpenMeldProfileCapabilities, Fi as getEffectiveDaemonRuntimeStatus, Fo as normalizeOptionalText$21, Fr as withLedgerStateTransaction, G as buildDaemonServiceDependencyNextStep, Gi as resolveDaemonBundleIdFromEntryPath, Gn as isBunGlobalCommandPath, Go as DAEMON_RUNTIME_CONTRACT_EPOCH, Gr as createAuthorityOpenMeldServiceRuntimeId, Gt as listProjectBindings, H as writeDaemonStartFailureState, Hi as listDaemonOwnedProcesses, Hn as repairBuiltinControllerInstall, Ho as CONTROLLED_SHUTDOWN_REQUEST_TIMEOUT_MS, Hr as buildWorkingLanguagePromptPlan, Ht as ProjectBindingStoreUpdateRequiredError, I as buildDaemonServiceUpdateRequiredNextStep, Ia as listOpenMeldProfiles, Ii as readCurrentDaemonRuntimeContext, In as requestLocalDaemonShutdown, Io as normalizeText$2, Ir as buildAuthenticatedControlPlaneResponse, It as resolveConfiguredProfileWorkspacePathForAccount, J as resolveDaemonServiceDependencyDiagnostics, Ja as buildAuthenticationStatusLabel, Ji as prepareDaemonServiceBundle, Jn as isPnpmGlobalCommandPath, Jo as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS, Jr as isAgentExecutionReadyOrConnecting, Jt as removeAgentActivityBindingsWhileDeliveryLocked, K as buildDaemonServiceDependencySummary, Ki as isOpenMeldManagedBinaryPath, Kn as isHomebrewCommandPath, Ko as DAEMON_STREAM_CONNECT_TIMEOUT_MS, Kt as listProjectConnectionsWithStatus, L as formatDaemonServiceRefreshReliabilityMessage, Li as readCurrentObservedDaemonRuntimeStatus, Ln as sendLocalDaemonControlPlaneRequest, Lo as nowIsoString, Lr as buildAgentContextLookupKey, Lt as setCustomProfileWorkspace, M as buildDaemonServiceRefreshNextStep, Ma as createOpenMeldAgentProfile, Mi as resolveStoppedContractWriteBlockedReason, Mn as resolveRegistryRuntimeAdapterContractByAgentControllerRef, Mo as emitRunLine, Mr as seedLegacyAgentContext, N as buildDaemonServiceRefreshPromptMessage, Na as createOpenMeldHumanProfile, Ni as summarizeDaemonOwnerSnapshot, No as normalizeHeartbeatIntervalMs, Nr as settleInflightTask, O as resolveDaemonStatusAttention, Oa as resolveCurrentOpenMeldAccountContext, Oi as formatDaemonOwnerSummaryLabel, On as resolveSkillsAgentRegistry, Oo as resolveDaemonDeviceId, Or as commitResolvedAgentContext, P as buildDaemonServiceRepairGuidance, Pi as clearDaemonRuntimeStateIfDefinitelyStopped, Pn as LocalDaemonControlPlaneClientError, Po as normalizeNonNegativeInteger$1, Pr as upsertConversationExecutionState, Pt as readProfileWorkspaceConfigForAccount, Qa as extractAuthenticationPromptAction, Qi as emitDaemonLifecycleEvent, Qn as SPACE_ACTION_CONTEXT_GUIDANCE_LINES, Qo as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS, R as formatDaemonServiceUpdateRequiredMessage, Ri as resolveDaemonRuntimeState, Rn as normalizeAgentId, Ro as toErrorMessage$19, Rr as DEFAULT_TASK_LIFECYCLE_HEARTBEAT_INTERVAL_MS, S as buildDaemonSystemServiceCommandSpec, Si as createUnavailableProviderUsageLimits, Sn as resolveAgentTargetState, So as assessServerRequiredVersion, Sr as resolveCompatibleConversationExecutionState, St as syncDaemonRouteCatalogState, T as captureDaemonServiceEvidenceBestEffort, Ti as materializeCliLaunchCommand, Tn as updateAgentRegistrations, Tr as buildRuntimeWorkspaceFingerprint, Tt as resolveLocalController, U as buildDaemonServiceDependencyDetails, Ua as clearAllSelectedOpenMeldProfileIds, Un as EMPTY_AGENT_CONTROLLER_INTERFACE_CAPABILITIES, Uo as CONTROLLED_SHUTDOWN_RESULT_ACK_TIMEOUT_MS, Ur as createAgentControllerInterfaceDisplayRows, Ut as bindProject, V as clearDaemonStartFailureState, Va as readDaemonCatalogSyncSignal, Vi as cleanupLegacySharedDaemonServiceState, Vn as sortAgentRegistrations, Vo as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS, Vr as buildInformationProtectionPromptPlan, Vt as ProjectBindingOperationError, W as buildDaemonServiceDependencyMeaning, Wi as extractDaemonCommandEntryPath, Wn as resolveBuiltinAgentControllerDefinition, Wo as CONTROLLED_SHUTDOWN_SOCKET_CLOSE_TIMEOUT_MS, Wt as isProjectBound, Xa as buildHumanAuthenticationCard, Xi as resolveAlignedDaemonActiveBundleEntryPath, Xn as normalizeDispatchThreadAction, Xo as HEARTBEAT_RESPONSE_TIMEOUT_MS, Xr as parseAgentControllerRef$1, Xt as removeProjectConnection, Y as resolveCurrentReplyReadinessSnapshot, Ya as buildCommandAuthenticationPromptMessage$1, Yi as readDaemonActiveBundleState, Yn as resolveLocalRegistryAgentIdFromAgentControllerRef, Yo as DEFAULT_RECONNECT_DELAY_MS, Yt as removeMissingProjectConnections, Za as createAuthenticationError, Zi as resolveDaemonBundleEntryPathFromState, Zn as syncRuntimeEventToInflightTaskControlRegistry, Zo as MAX_RECONNECT_DELAY_MS, Zt as resolveProjectBindingForPath, _ as isDaemonInventoryRunningAndStartReady$1, _a as OPENMELD_VERSION, _i as resolveCodexTimeoutMs, _n as manageAgentRegistrationInstallation, _r as resolveAdaptiveHeartbeatIntervalMs, _t as resolveLocalServiceDemand, a as resolveOpenMeldToolsMaintenanceProjection, aa as runWithDaemonLifecycleCommandJournal, ao as isVersionDowngrade, ar as createPendingAgentInteractionRegistry, as as isDaemonServiceContractIdentityReusable, at as resolveOpenClawDiagnosticsGuidance, b as waitForSystemServiceStartup$1, bi as verifyCodexAppServerThread, br as resolveDispatchContinuityObservation, bs as compareAgentControllerRefsForDisplay, bt as loadDaemonRouteCatalog, ca as readLastDaemonServiceUpdate, ci as createLocalAdapterContainer, cn as emitReconcileCompletedEvidence, co as DAEMON_SERVICE_FULL_ALIGNMENT_ANOMALIES, cr as buildLocalServiceDiagnosticsPayload, cs as resolveOpenMeldEnvironmentTarget, ct as resolveGatewayChainRepairGuidance, d as scheduleDaemonServiceUpdate, di as forkOpenCodeServerSession, dn as resolveAgentProfilePrimaryAgentControllerReport, do as classifyDaemonServiceRunStartability, dr as ADAPTIVE_HEARTBEAT_JITTER_RATIO, ds as formatOpenMeldCliCommand, dt as prepareProviderRuntime, ea as readLatestDaemonLifecycleConnectionStateEvent, ei as renderWorkingLanguagePrompt, eo as resolveAuthenticationGuidanceFromError, er as isDaemonReconcileInProgressError, es as REGISTER_RESPONSE_TIMEOUT_MS, f as DaemonServiceLifecycleDrainTimeoutError, fi as resolveInstalledOpenCodeLaunchCandidates, fn as addAgentCustomTarget, fo as classifyDaemonServiceWakeability, fr as MAX_HEARTBEAT_INTERVAL_MS, fs as formatOpenMeldCliCommands, ft as buildOpenClawSpaceSessionKey, g as uninstallDaemonServiceUpdateWorker, ga as resolveCurrentDaemonExpectedVersion, gi as projectCodexUsageLimits, gn as listAgentTargetStates, gr as pruneStaleLeases, gt as writeDaemonRouteCatalogCache, ha as DaemonServiceRunError, hi as resolveInstalledGrokBuildLaunchCandidates, hn as listAgentRegistrations, hr as applyIntervalJitterMs, hs as formatProfileAwareOpenMeldCliCommand, ht as readDaemonRouteCatalogCache, i as readOpenMeldToolsMaintenancePolicy, ia as runDaemonServiceManagerAction, in as withAgentActivityLocalStateLock, io as resolveDaemonServiceAlignmentDecision, ir as normalizeDispatchPostMessageAction, is as clearDaemonServiceContract, it as resolveReplyReadinessGuidanceSummaryCopy, ja as resolveOpenMeldProfileOrNull, ji as resolveDaemonStopStrategy, jn as resolveRegistryRuntimeAdapterCapabilitySnapshot, jo as dirnamePath, jr as resolveConversationExecutionStateByLookupKey, jt as ensureOpenMeldManagedProfileWorkspace, k as resolveDaemonStatusAuthenticationAttention, ki as hasActiveDaemonOwners, kn as listBuiltinAgentsRegistryEntries, ko as resolvePreferredDaemonDeviceId, kr as loadLedgerState, kt as resolveCurrentEffectiveProfileWorkingFolderRuntime, la as readPendingDaemonServiceUpdate, li as createLocalAdapterEntries, ln as emitReconcileStartedEvidence, lo as DAEMON_SERVICE_REPAIR_ANOMALIES, lr as createLocalExecutionSlots, ls as resolveAuthBaseUrl, lt as resolveGatewayChainRetryGuidance, m as ensureDaemonServiceMaintenanceInstalled, ma as readDaemonRuntimeContractRepairReport, mi as probeGrokBuildAcpInterface, mn as listAgentCustomTargets, mo as compareSemver, mr as applyAcceptedLeases, ms as formatOpenMeldCliTextBlock, mt as slugifyOpenClawNamePart, n as readLastOpenMeldToolsUpdateAttempt, nn as resolveLocalProjectConnectionForPath, no as resolveAuthenticationReasonFromState, nr as createSerialAgentInteractionCallback, ns as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS, nt as formatSpaceMemberCommandRecoveryCopy, o as writeOpenMeldToolsMaintenancePolicy, oi as resolveSelectableCandidates, on as syncDeviceRuntimeStateProjection, or as mergeOpenClawGatewayVisibility, os as readDaemonServiceContract, ot as classifyGatewayChainFailure, p as runDaemonServiceLifecycle, pa as ensureDaemonRuntimeContractState, pi as GrokBuildAcpTransportError, pn as createRegistrationFromCatalogTarget, pr as MIN_HEARTBEAT_INTERVAL_MS, pt as normalizeOpenClawSpaceIdPrefix, q as buildDaemonServiceDependencyTitle, qi as cleanupInactiveDaemonServiceBundles, qn as isNpmGlobalCommandPath, qo as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS, r as readPendingOpenMeldToolsUpdateAttempt, ra as resolveRecentDaemonSignalStopCause, rn as withAgentActivityDeliveryLock, ro as buildDaemonServiceTargetSpec, rr as buildDispatchReplyContextSummary, rs as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS, rt as resolveReplyReadinessAvailabilityReasonCopy, s as assessCliUpdate, si as resolveCatalogSyncSkippedProfilesLogState, sn as emitDriftDetectedEvidence, so as DAEMON_SERVICE_AUTO_HEAL_ANOMALIES, sr as createLocalTaskInterruptSender, ss as upsertDaemonServiceContract, t as createOpenMeldToolsUpdateCoordinator, ta as readLatestDaemonLifecycleOriginEvent, tr as resolveRouteRegistrationReconcileDecision, ts as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS, tt as REPLY_READINESS_COPY, ui as parseOpenCodeGoUsageResponse, uo as DAEMON_SERVICE_WAKEABILITY_ADVISORY_ANOMALIES, ur as createInflightTaskControlRegistry, us as formatInlineOpenMeldCliCommands, ut as resolveOpenClawLocalDiagnosticsValue, v as isSystemServiceStartupTimeoutError, vi as resolveInstalledCodexLaunchCandidates, vn as readAgentRuntimeConfigHealth, vr as resolveCatalogSyncIntervalMs, vs as resolveUserFacingCliEntryCommand, vt as createMutableRouteCatalogState, w as captureDaemonServiceEvidence, wa as resolveRuntimeContext, wi as buildCliLaunchInvocation, wn as updateAgentCustomTarget, wr as runRuntimeTask, wt as readLocalEnabledControllers, x as writeDaemonServiceContract, xi as resolveInstalledClaudeCodeLaunchCandidates, xn as removeAgentCustomTarget, xo as resolveServiceUpdateUrgency, xr as resolveCompatibleAgentContextMatch, xs as resolveBuiltinAgentControllerBrand, xt as summarizeSkippedDaemonProfiles, y as resolveSystemServiceStartupWaitMs, yi as forkCodexAppServerThread, yn as reconcileNewRunnableBuiltinAgentRegistrations, yr as resolveDispatchQueueLogMeta, yt as createRouteCatalogFromMutableState, z as buildDaemonServiceFreshnessPromptLines, zi as resolveDaemonServiceManagerForRuntimeState, zn as normalizeAgentIds, zo as warnDaemonEvent, zr as areAgentControllerInterfaceAccountsSame } from "./openmeld-tools-update-coordinator-pczmEBLZ.js";
8
+ import { $n as OPENMELD_RUNTIME_CAPABILITIES_HEADER, $r as agentActivitySessionInventoryResponseSchema, An as OPENMELD_HEADER_REQUEST_ID, Ar as updateCenterAgentRoutineResponseSchema, At as createAccountSpaceIndexApi, Br as localProjectControlDiscoverProjectsResponseSchema, Bt as createFetchTransport, Cn as MAX_TEXT_LENGTH, Cr as submitFeedbackIssueResponseSchema, Dn as resolveCustomMentionAliasOverride, Dr as listCenterAgentRoutinesResponseSchema, En as parseServerErrorFrame$1, Er as listCenterAgentRoutineRunsResponseSchema, Fn as spaceEntryTargetSchema, Gn as submitAgentControllerTaskLifecycleEventItemSchema, Gr as spaceMemberAgentWakeAvailabilitySchema, Gt as createOpenMeldApiClient, Hr as postSpaceMembersResponseSchema, In as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, Jr as spaceMemberDirectorySchema, Kr as spaceMemberDirectoryAllowedRelationsSchema, Kt as createOrganizationApi, Lr as agentActivitySnapshotResponseSchema, Mr as AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, Mt as createAgentProfileBindingApi, Nr as agentActivityEventSchema, Or as pauseCenterAgentRoutineResponseSchema, Pn as getSpaceUpdatesResponseSchema, Qn as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, Rr as localProjectControlConnectionSchema, Sr as submitFeedbackIssueRequestSchema, Tn as parseIncoming$1, Tr as deleteCenterAgentRoutineResponseSchema, Tt as buildSpaceAttachmentDownloadPath, Ur as removeSpaceMembersResponseSchema, Vr as leaveSpaceResponseSchema, Yr as spaceMemberKindSchema, Zn as gatewayErrorEnvelopeSchema, Zt as createProfileSpaceHistoryApi, _i as toCompatibleSpaceAddressingRequestWireValue, ai as projectSchema, ar as resolveInitialSpaceAccessMode, cr as getOrganizationSkillResponseSchema, dn as resolveAccountSpaceIndexGatewayHost, dr as organizationSkillReleaseSummarySchema, er as computerFileAccessDaemonFrameSchema, fn as resolveProfileSpaceHistoryGatewayHost, fr as organizationSkillSummarySchema, gt as buildProfileSpaceHistoryUpsertPath, ht as buildProfileSpaceHistoryStatusPath, ii as listProjectsResponseSchema, ir as organizationSpaceDirectoryWithMemberCountsResponseSchema, jn as OPENMELD_HEADER_SPACE_ADDRESSING_VERSION, jt as createAgentActivityApi, kr as resumeCenterAgentRoutineResponseSchema, lr as listOrganizationSkillsResponseSchema, mn as toStructuredApiClientFailure, mr as organizationDirectoryResponseSchema, n as OpenMeldApiClientInvalidResponseError, ni as archiveProjectResponseSchema, nn as createSpaceApi, nr as computerFileAccessPolicySchema, oi as updateProjectResponseSchema, or as spaceCreatorSchema, qr as spaceMemberDirectoryEntrySchema, ri as createProjectResponseSchema, si as centerAgentToolSpeakerSchema, sr as spaceMetaSchema, t as OpenMeldApiClientHttpError, ti as observedLocalAgentSessionSchema, tn as createRuntimeReportingApi, tr as computerFileAccessPolicyInputSchema, wn as parseEnvelope$1, wr as createCenterAgentRoutineResponseSchema, xn as DAEMON_STREAM_KEEPALIVE_PING, xr as organizationComputersResponseSchema, zr as localProjectControlDaemonFrameSchema } from "./dist-D_08t8sR.js";
9
+ import { $r as openMeldRequestContextSchema, A as runtimeTransportRegisterSessionRequestSchema, Br as normalizeSpacePasswordText, C as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, Cn as MESSAGE_MENTION_TYPE_VALUES, Cr as string, E as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, En as getSpaceMessageAddressingRelationSupportForTargetKind, F as runtimeTransportRouteCatalogChangedFramePayloadSchema, G as openMeldDaemonTaskResultPayloadSchema, Gn as formatLocalSetupActionLabel, Hn as formatLocalComponentsSummaryDescription, Hr as resolveSingleSpaceMentionLabels, Ir as runtimeCoordinatorExecutionTokenEnvelopeSchema, J as LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY, Kn as installedLocalComponentsSnapshotSchema, Kt as resolveSpaceFileMimeType, L as runtimeTransportSubmitTaskResultRequestSchema, Ln as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, Lr as runtimeTransportDeliveryExecutionIdentitySchema, Mr as parseOptionalClientMessageId, N as runtimeTransportResumeControllerConversationFramePayloadSchema, O as runtimeTransportOpenMeldToolsControlFramePayloadSchema, On as normalizeMessageEnvelope, Or as url, P as runtimeTransportResumeControllerConversationResultFramePayloadSchema, Q as localFolderPickerHelperResultSchema, Rt as SPACE_FILE_MAX_SIZE_BYTES, S as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, Sr as strictObject, St as sanitizeSignalTextPreview, T as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, Un as formatLocalComponentsSummaryLabel, Ur as resolveSpaceMentionLabels, Wn as formatLocalSetupActionDescription, X as localFolderPickerDaemonFrameSchema, Xt as spaceFileNameSchema, Y as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, Z as localFolderPickerHelperProtocolResultSchema, Zn as localServiceComponentUpdateProjectionSchema, _ as runtimeTransportForkAgentSessionResultSchema, a as localWakeRouteWorkingFolderObservationSchema, b as runtimeTransportLocalAgentControlCancelFramePayloadSchema, bt as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, c as runtimeTransportDispatchInteractionDeliveredRequestSchema, d as runtimeTransportDispatchLifecycleRequestSchema, dr as enumFactory, f as runtimeTransportDispatchPreviewEndRequestSchema, gi as resolvePublicAgentAvailabilityCopy, h as runtimeTransportDispatchToolActivityRequestSchema, hr as literal, ht as CONVERSATION_CONTINUITY_WARNING_PURPOSE, in as openMeldDaemonControlPlaneResponseSchema, j as runtimeTransportRegisterSessionResponseSchema, k as runtimeTransportOpenMeldToolsControlResultFramePayloadSchema, kn as resolveMessageEnvelopeTargetField, l as runtimeTransportDispatchInteractionRequestSchema, lr as discriminatedUnion, m as runtimeTransportDispatchRuntimeEvidenceRequestSchema, ni as normalizeOptionalWorkingDirectory, p as runtimeTransportDispatchPreviewRequestSchema, pi as MAX_TEXT_LENGTH$1, pr as iso, q as openMeldSpaceEgressActionSchema, qn as localCliComponentUpdateProjectionSchema, r as daemonStreamFrameSchema, ri as openMeldRuntimeProfileIdSchema, s as runtimeTransportDeliverDispatchRequestSchema, sr as boolean, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, u as runtimeTransportDispatchInteractionResponseFramePayloadSchema, v as runtimeTransportHeartbeatRequestSchema, vi as sanitizeDispatchErrorSummary, w as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, wn as collectCanonicalMentionTextFragments, x as runtimeTransportLocalAgentControlForkSessionFramePayloadSchema, xt as SPACE_MENTION_REJECT_NOTICE_PURPOSE, y as runtimeTransportHeartbeatResponseSchema, yt as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, zn as agentInteractionRequestSchema } from "./runtime-transport-B1F7rGb0.js";
10
+ import { b as computeDirectoryContentHash, f as ensureLocalSkills, g as loadSelectedSkillAssets, r as collectSkillsReadinessSnapshot, t as installSkillsToTargets, u as resolveSkillInstallStateForTarget, v as withSkillsInstallLock, x as OFFICIAL_CLI_SKILL_URL, y as hashBundledSkillAssets } from "./installer-DHZPSSGu.js";
11
11
  import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
12
12
  import { a as readDaemonLocalStateFile, i as writeDaemonRuntimeLease, o as writeDaemonLocalStateFile } from "./daemon-runtime-lease-D_CULMR8.js";
13
- import { a as beginAuthSessionTransition, h as setAuthSession, i as assertAuthSessionMutationAvailable, l as getAuthSessionState, o as clearAuthSession, v as isBinaryDistribution, y as resolveOpenMeldDistribution } from "./auth-session-BWlfQspT.js";
14
- import { B as createSpaceRemoveMembersCurrentProfileGuideError, Bt as deriveContinuity, F as createSpaceLeaveGuideError, Ft as buildCenterAgentRoleTemplateText, G as createSpaceSendInputFileReadFailedGuideError, H as createSpaceResultGuideError, Ht as renderSpaceEntryBrief, I as createSpaceMenuGuideError, It as buildCompactDispatchActionGuidanceLines, J as createSpaceTargetGuideError, K as createSpaceSendInputRequiredGuideError, L as createSpaceProfileRequiredGuideError, Lt as buildSpaceEntryBriefNeedMoreLine, M as createSpaceCreateGuideError, N as createSpaceDeleteHumanApprovalGuideError, Nt as buildAgentFacingMentalModelLines, O as createSpaceAddMembersCurrentProfileGuideError, P as createSpaceLeaveCreatorGuideError, R as createSpacePublicationSetGuideError, St as getBuiltinAgentSelectionRequiredArguments, Tt as buildAgentOverviewFromContract, U as createSpaceSendInputConflictGuideError, Ut as resolvePublicAgentFailureReason, V as createSpaceRemoveMembersGuideError, Vt as isSelfWakeSpaceAction, W as createSpaceSendInputEmptyGuideError, Wt as resolveSpacePublicationRequirement, X as createSpaceUpdatesGuideError, Y as createSpaceUnsupportedProfileKindGuideError, _ as errLine, _t as validateDaemonControlTargetInput, a as formatDaemonServiceDowngradeBlockedRecommendation, at as validateSpaceMemberSelectionInput, b as canUseInteractivePrompts, bt as buildBuiltinAgentSelectionExamples, ct as resolveSpaceAddMembersProgressPhase, d as formatDaemonServiceMissingStatus, et as getCommandEntryContract, f as getDaemonDowngradeBlockedTitle, g as formatMessage, h as sanitizeTerminalDisplayText, ht as getCliVersionInfo, i as formatDaemonInstallFailedMessage, j as createSpaceContractSetGuideError, k as createSpaceAddMembersGuideError, kt as formatAgentOverviewPayload, l as formatDaemonServiceMissingRunStepOne, m as createPresenter, mt as formatCliVersionSummary, n as resolveElapsedTimeMs, nt as ROOT_ENTRY_COMMANDS, o as formatDaemonServiceMissingAction, ot as SPACE_ADD_MEMBERS_AGENT_OVERVIEW_STAGES, p as runDaemonInstallDecisionPrompt, q as createSpaceSubcommandTargetGuideError, r as formatDaemonDowngradeBlockedNextStep, rt as ROOT_ENTRY_START_COMMAND, s as formatDaemonServiceMissingMeaning, st as SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS, t as formatElapsedTime, u as formatDaemonServiceMissingRunStepTwo, v as outJsonLine, w as createProfileCreateGuideError, wt as validateBuiltinAgentSelectionInput, x as createAuthLoginGuideError, xt as getBuiltinAgentSelectionOptionalArguments, y as outLine, yt as buildBuiltinAgentSelectionCommand, z as createSpaceRemoveMembersCreatorGuideError, zt as composeDispatchBrief } from "./elapsed-time-CLDZ8oLn.js";
15
- import { a as resolveBaseUrl, c as resolveExplicitGatewayUrlOrThrow, d as createDefaultRuntimeAgentControllerSettings, f as getConfiguredDaemonDispatchLimits, g as getConfiguredSkillsConfig, i as normalizeGatewayBaseUrlOrNull, l as DEFAULT_RUNTIME_AGENT_TRANSPORT_MODE, o as resolveBaseUrlOrNull, r as normalizeGatewayBaseUrl } from "./base-url-CgF_v0Ue.js";
13
+ import { a as beginAuthSessionTransition, h as setAuthSession, i as assertAuthSessionMutationAvailable, l as getAuthSessionState, o as clearAuthSession, v as isBinaryDistribution, y as resolveOpenMeldDistribution } from "./auth-session-CACyTxMs.js";
14
+ import { B as createSpaceRemoveMembersCurrentProfileGuideError, Bt as deriveContinuity, F as createSpaceLeaveGuideError, Ft as buildCenterAgentRoleTemplateText, G as createSpaceSendInputFileReadFailedGuideError, H as createSpaceResultGuideError, Ht as renderSpaceEntryBrief, I as createSpaceMenuGuideError, It as buildCompactDispatchActionGuidanceLines, J as createSpaceTargetGuideError, K as createSpaceSendInputRequiredGuideError, L as createSpaceProfileRequiredGuideError, Lt as buildSpaceEntryBriefNeedMoreLine, M as createSpaceCreateGuideError, N as createSpaceDeleteHumanApprovalGuideError, Nt as buildAgentFacingMentalModelLines, O as createSpaceAddMembersCurrentProfileGuideError, P as createSpaceLeaveCreatorGuideError, R as createSpacePublicationSetGuideError, St as getBuiltinAgentSelectionRequiredArguments, Tt as buildAgentOverviewFromContract, U as createSpaceSendInputConflictGuideError, Ut as resolvePublicAgentFailureReason, V as createSpaceRemoveMembersGuideError, Vt as isSelfWakeSpaceAction, W as createSpaceSendInputEmptyGuideError, Wt as resolveSpacePublicationRequirement, X as createSpaceUpdatesGuideError, Y as createSpaceUnsupportedProfileKindGuideError, _ as errLine, _t as validateDaemonControlTargetInput, a as formatDaemonServiceDowngradeBlockedRecommendation, at as validateSpaceMemberSelectionInput, b as canUseInteractivePrompts, bt as buildBuiltinAgentSelectionExamples, ct as resolveSpaceAddMembersProgressPhase, d as formatDaemonServiceMissingStatus, et as getCommandEntryContract, f as getDaemonDowngradeBlockedTitle, g as formatMessage, h as sanitizeTerminalDisplayText, ht as getCliVersionInfo, i as formatDaemonInstallFailedMessage, j as createSpaceContractSetGuideError, k as createSpaceAddMembersGuideError, kt as formatAgentOverviewPayload, l as formatDaemonServiceMissingRunStepOne, m as createPresenter, mt as formatCliVersionSummary, n as resolveElapsedTimeMs, nt as ROOT_ENTRY_COMMANDS, o as formatDaemonServiceMissingAction, ot as SPACE_ADD_MEMBERS_AGENT_OVERVIEW_STAGES, p as runDaemonInstallDecisionPrompt, q as createSpaceSubcommandTargetGuideError, r as formatDaemonDowngradeBlockedNextStep, rt as ROOT_ENTRY_START_COMMAND, s as formatDaemonServiceMissingMeaning, st as SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS, t as formatElapsedTime, u as formatDaemonServiceMissingRunStepTwo, v as outJsonLine, w as createProfileCreateGuideError, wt as validateBuiltinAgentSelectionInput, x as createAuthLoginGuideError, xt as getBuiltinAgentSelectionOptionalArguments, y as outLine, yt as buildBuiltinAgentSelectionCommand, z as createSpaceRemoveMembersCreatorGuideError, zt as composeDispatchBrief } from "./elapsed-time-DRZZZEOZ.js";
15
+ import { a as resolveBaseUrl, c as resolveExplicitGatewayUrlOrThrow, d as createDefaultRuntimeAgentControllerSettings, f as getConfiguredDaemonDispatchLimits, g as getConfiguredSkillsConfig, i as normalizeGatewayBaseUrlOrNull, l as DEFAULT_RUNTIME_AGENT_TRANSPORT_MODE, o as resolveBaseUrlOrNull, r as normalizeGatewayBaseUrl } from "./base-url-DvSrOI4A.js";
16
16
  import { n as toErrorMessage$20, t as sleep } from "./dist-o3UL1EGQ.js";
17
17
  import { A as installDaemon, D as ensureDaemonControlPlaneToken, F as readDaemonServiceRuntimeSnapshot, G as withDaemonServiceRunLock, H as uninstallDaemon, I as releaseDaemonServiceLifecycleLock, K as withDaemonServiceStopLock, L as resolveDaemonControlPlaneEndpoint, R as resolveDaemonServiceRuntimeMetadata, U as withDaemonServiceReconcileLock, V as setDaemonServiceRuntimeState, W as withDaemonServiceRegistrationMutationLock, a as DAEMON_SERVICE_RUNTIME_MODE_ENV, c as acquireDaemonServiceLifecycleLock, d as daemonLifecycleJournalPath, g as daemonRuntimeStateRootPath, i as DAEMON_SERVICE_RUNTIME_DETACHED_ENV, j as isDaemonServiceRuntimeHeartbeatStale, k as getDaemonStatus, l as clearDaemonServiceRuntimeState, m as daemonRuntimeRootPath, o as DAEMON_SERVICE_RUNTIME_STATE_SCHEMA, u as daemonDispatchJournalPath, x as daemonServiceRepairJournalPath } from "./daemon-state-C_KmI_0F.js";
18
18
  import { a as disableDaemonServiceAutostartIfConfigured, b as resolveDaemonServiceManager, c as getDaemonSystemServiceLogPath, d as isDaemonServiceBackgroundExecutionBlocked, g as readDaemonServiceJobCrashExitCode, o as formatDaemonServiceJobDiagnosticsEvidence, s as getDaemonServiceLaunchdLabel } from "./daemon-service-manager-DRzfyljb.js";
19
- import { a as buildOpenMeldProfileIdentityRequestHeadersWithAuth, c as buildRequestAuthHeaders, d as buildOpenMeldRequestContextFromProfileIdentity, f as deriveAuthBaseUrlFromGatewayUrl, i as AuthRequestCredentialError, l as canAttachAuthTokenToRequest, n as fetchSpaceRequestWithTimeout, o as buildOpenMeldProfileRequestHeadersWithAuth, p as resolveAuthRequestCompatibility, r as resolveSpaceRequestTimeoutMsForDiagnostics, s as buildOpenMeldRequestContextHeadersWithAuth, t as createCliApiClientFoundation, u as buildOpenMeldRequestContextFromProfile } from "./api-client-foundation-BvNTRYuE.js";
19
+ import { a as buildOpenMeldProfileIdentityRequestHeadersWithAuth, c as buildRequestAuthHeaders, d as buildOpenMeldRequestContextFromProfileIdentity, f as deriveAuthBaseUrlFromGatewayUrl, i as AuthRequestCredentialError, l as canAttachAuthTokenToRequest, n as fetchSpaceRequestWithTimeout, o as buildOpenMeldProfileRequestHeadersWithAuth, p as resolveAuthRequestCompatibility, r as resolveSpaceRequestTimeoutMsForDiagnostics, s as buildOpenMeldRequestContextHeadersWithAuth, t as createCliApiClientFoundation, u as buildOpenMeldRequestContextFromProfile } from "./api-client-foundation-BmL7N1rL.js";
20
20
  import { homedir } from "node:os";
21
21
  import { basename, delimiter, dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
22
22
  import { createHash, randomUUID } from "node:crypto";
@@ -89,7 +89,9 @@ const ORGANIZATION_JOIN_LINK_ACCEPT_RATE_LIMITED_ERROR_CODE = "organization.join
89
89
  const organizationJoinLinkTokenSchema = string().regex(/^joinlink_[0-9a-f]{64}$/);
90
90
  const organizationJoinLinkManagementQuerySchema = strictObject({
91
91
  organizationId: string().trim().min(1).max(255),
92
- spaceId: string().trim().min(1).max(255).optional()
92
+ spaceId: string().trim().min(1).max(255).optional(),
93
+ mode: enumFactory(["direct", "request"]).optional(),
94
+ responseVersion: literal("3").optional()
93
95
  });
94
96
  const organizationJoinLinkSchema = strictObject({
95
97
  id: string().min(1),
@@ -99,6 +101,8 @@ const organizationJoinLinkSchema = strictObject({
99
101
  role: literal("member"),
100
102
  createdBy: string().min(1),
101
103
  createdAt: iso.datetime(),
104
+ mode: enumFactory(["direct", "request"]).optional(),
105
+ expiresAt: iso.datetime().nullable().optional(),
102
106
  spaceId: string().min(1).nullable().optional()
103
107
  });
104
108
  const getOrganizationJoinLinkResponseSchema = strictObject({
@@ -165,13 +169,15 @@ const revokeOrganizationJoinLinkResponseSchema = strictObject({
165
169
  });
166
170
  strictObject({
167
171
  token: organizationJoinLinkTokenSchema,
168
- responseVersion: literal("2").optional()
172
+ responseVersion: enumFactory(["2", "3"]).optional()
169
173
  });
170
174
  discriminatedUnion("active", [strictObject({
171
175
  ok: literal(true),
172
176
  active: literal(true),
173
177
  organizationName: string().min(1),
174
178
  organizationSlug: string().min(1),
179
+ mode: enumFactory(["direct", "request"]).optional(),
180
+ expiresAt: iso.datetime().nullable().optional(),
175
181
  spaceId: string().min(1).nullable().optional()
176
182
  }), strictObject({
177
183
  ok: literal(true),
@@ -6886,6 +6892,28 @@ function buildPublicSpaceEntryUrl(input) {
6886
6892
  if (!input.origin) return path;
6887
6893
  return new URL(path, input.origin).toString();
6888
6894
  }
6895
+ /** Preserve selected identities across edits; typed text never creates one. */
6896
+ function updateAuthoredMentionRanges(input) {
6897
+ if (input.previousText === input.text) return [...input.mentions];
6898
+ let start = 0;
6899
+ while (start < input.previousText.length && start < input.text.length && input.previousText[start] === input.text[start]) start++;
6900
+ let oldEnd = input.previousText.length;
6901
+ let newEnd = input.text.length;
6902
+ while (oldEnd > start && newEnd > start && input.previousText[oldEnd - 1] === input.text[newEnd - 1]) {
6903
+ oldEnd--;
6904
+ newEnd--;
6905
+ }
6906
+ const delta = newEnd - oldEnd;
6907
+ return input.mentions.flatMap((mention) => {
6908
+ if (mention.start === void 0) return [];
6909
+ if (mention.start + mention.text.length <= start) return [mention];
6910
+ if (mention.start >= oldEnd) return [{
6911
+ ...mention,
6912
+ start: mention.start + delta
6913
+ }];
6914
+ return [];
6915
+ });
6916
+ }
6889
6917
  function resolveSpaceMemberAgentPublicCollaborationView(member) {
6890
6918
  return { agentWakeAvailability: member.agentWakeAvailability ?? null };
6891
6919
  }
@@ -7162,136 +7190,9 @@ function normalizeOptionalText$7$1(value) {
7162
7190
  const normalized = String(value ?? "").trim();
7163
7191
  return normalized.length > 0 ? normalized : null;
7164
7192
  }
7165
- const WORD_CHARACTER_PATTERN = /\w/u;
7166
- const BARE_MENTION_BOUNDARY_PATTERN = /[\s.,!?;:,。!?;:\]})"'`]/u;
7167
- const WHITESPACE_PATTERN = /\s+/g;
7168
- const MAX_BARE_MENTION_DIAGNOSTICS = 5;
7169
- function listSpaceBareMentionDiagnostics(input) {
7170
- if (!input.text.includes("@")) return [];
7171
- const candidates = buildBareMentionCandidates(createSpaceTargetCatalog(input.snapshot).entries);
7172
- if (candidates.length === 0) return [];
7173
- const maxResults = Math.max(1, Math.min(input.maxResults ?? MAX_BARE_MENTION_DIAGNOSTICS, 20));
7174
- const diagnostics = [];
7175
- const seenStarts = /* @__PURE__ */ new Set();
7176
- const ignoredRanges = normalizeIgnoredRanges(input.ignoredRanges ?? []);
7177
- for (let cursor = 0; cursor < input.text.length; cursor += 1) {
7178
- const atIndex = input.text.indexOf("@", cursor);
7179
- if (atIndex < 0) break;
7180
- cursor = atIndex;
7181
- const ignoredRange = findIgnoredRangeContaining(ignoredRanges, atIndex);
7182
- if (ignoredRange) {
7183
- cursor = Math.max(cursor, ignoredRange.end - 1);
7184
- continue;
7185
- }
7186
- if (!isPotentialBareMentionStart(input.text, atIndex)) continue;
7187
- const match = resolveBareMentionCandidateAt({
7188
- atIndex,
7189
- candidates,
7190
- text: input.text
7191
- });
7192
- if (!match || seenStarts.has(atIndex)) continue;
7193
- seenStarts.add(atIndex);
7194
- diagnostics.push(toBareMentionDiagnostic(match));
7195
- cursor = Math.max(cursor, match.end - 1);
7196
- if (diagnostics.length >= maxResults) break;
7197
- }
7198
- return diagnostics;
7199
- }
7200
- function normalizeIgnoredRanges(ranges) {
7201
- return ranges.filter((range) => range.start >= 0 && range.end > range.start).map((range) => ({
7202
- end: range.end,
7203
- start: range.start
7204
- })).sort((left, right) => left.start - right.start);
7205
- }
7206
- function findIgnoredRangeContaining(ranges, index) {
7207
- for (const range of ranges) {
7208
- if (index < range.start) return null;
7209
- if (index >= range.start && index < range.end) return range;
7210
- }
7211
- return null;
7212
- }
7213
- function buildBareMentionCandidates(entries) {
7214
- const candidatesByLabel = /* @__PURE__ */ new Map();
7215
- for (const entry of entries) {
7216
- const labels = /* @__PURE__ */ new Set([
7217
- entry.profileName,
7218
- entry.primaryMentionLabel,
7219
- ...entry.mentionAlias ? [entry.mentionAlias] : [],
7220
- ...entry.exactMentionLabels
7221
- ]);
7222
- for (const label of labels) {
7223
- const normalized = normalizeLabel(label);
7224
- if (!normalized) continue;
7225
- const key = normalized.toLowerCase();
7226
- const existing = candidatesByLabel.get(key);
7227
- if (existing === void 0) {
7228
- candidatesByLabel.set(key, {
7229
- entry,
7230
- label: normalized
7231
- });
7232
- continue;
7233
- }
7234
- if (existing === null || existing.entry.profileId !== entry.profileId) candidatesByLabel.set(key, null);
7235
- }
7236
- }
7237
- return [...candidatesByLabel.values()].filter((candidate) => candidate !== null).sort((left, right) => right.label.length - left.label.length);
7238
- }
7239
- function resolveBareMentionCandidateAt(input) {
7240
- const tail = input.text.slice(input.atIndex + 1);
7241
- const lowerTail = tail.toLowerCase();
7242
- for (const candidate of input.candidates) {
7243
- const lowerLabel = candidate.label.toLowerCase();
7244
- if (!lowerTail.startsWith(lowerLabel)) continue;
7245
- const afterLabel = tail.slice(candidate.label.length);
7246
- if (isCanonicalMentionRelationSuffix(afterLabel)) continue;
7247
- if (!isBareMentionBoundary(afterLabel[0] ?? "")) continue;
7248
- const end = input.atIndex + 1 + candidate.label.length;
7249
- return {
7250
- candidate,
7251
- end,
7252
- mentionText: input.text.slice(input.atIndex, end),
7253
- start: input.atIndex
7254
- };
7255
- }
7256
- return null;
7257
- }
7258
- function toBareMentionDiagnostic(input) {
7259
- const label = input.candidate.entry.primaryMentionLabel;
7260
- const suggestedWakeText = input.candidate.entry.profileKind === "agent" && input.candidate.entry.allowedRelations.wake ? `@${label}(wake)` : null;
7261
- const suggestedReferenceText = input.candidate.entry.profileKind === "agent" && input.candidate.entry.allowedRelations.reference ? `@${label}(reference)` : null;
7262
- const suggestedMentionText = input.candidate.entry.profileKind === "human" && input.candidate.entry.allowedRelations.mention ? `@${label}(mention)` : null;
7263
- return {
7264
- end: input.end,
7265
- mentionText: input.mentionText,
7266
- profileId: input.candidate.entry.profileId,
7267
- profileKind: input.candidate.entry.profileKind,
7268
- profileName: input.candidate.entry.profileName,
7269
- start: input.start,
7270
- suggestedMentionText,
7271
- suggestedReferenceText,
7272
- suggestedWakeText
7273
- };
7274
- }
7275
- function isPotentialBareMentionStart(text, atIndex) {
7276
- const previous = atIndex > 0 ? text[atIndex - 1] ?? "" : "";
7277
- return !(previous === "\\" || WORD_CHARACTER_PATTERN.test(previous));
7278
- }
7279
- function isBareMentionBoundary(value) {
7280
- if (!value) return true;
7281
- return BARE_MENTION_BOUNDARY_PATTERN.test(value);
7282
- }
7283
- function isCanonicalMentionRelationSuffix(value) {
7284
- return value.startsWith("(wake)") || value.startsWith("(reference)") || value.startsWith("(mention)") || value.startsWith("(cc)");
7285
- }
7286
- function normalizeLabel(value) {
7287
- const normalized = String(value ?? "").replaceAll(WHITESPACE_PATTERN, " ").trim();
7288
- return normalized.length > 0 ? normalized : null;
7289
- }
7290
7193
  const CANONICAL_MENTION_TYPES = new Set(MESSAGE_MENTION_TYPE_VALUES);
7291
7194
  const DUPLICATE_TARGET_ISSUE_PATTERN = /^(activationTargets|referenceTargets|mentionTargets) must not contain duplicate profileId$/u;
7292
7195
  const DISTINCT_TARGET_ISSUE_PATTERN = /^(activationTargets|referenceTargets|mentionTargets) must not reuse profileId from (activationTargets|referenceTargets|mentionTargets)$/u;
7293
- const REMOVED_CC_RELATION_SUFFIX_PATTERN = /\(cc\)$/u;
7294
- const INVALID_MENTION_GUIDANCE = "That mention is not valid. Type @ and choose a member from the list.";
7295
7196
  const MISSING_MENTION_TARGET_GUIDANCE = "That mention does not match a current member. Type @ and choose a member from the list.";
7296
7197
  const INVALID_MENTION_ACTION_GUIDANCE = "Mention action must be Wake, Reference, or Mention. Type @ and choose from the list.";
7297
7198
  function formatRemovedCcRelationMessage(replacement) {
@@ -7308,18 +7209,17 @@ var SpaceComposerSubmissionError = class extends Error {
7308
7209
  }
7309
7210
  };
7310
7211
  function prepareSpaceComposerSubmission(input) {
7311
- const canonicalFragments = collectCanonicalMentionTextFragments(input.text);
7312
7212
  const authoredMentionsInTextOrder = normalizeAuthoredMentionsInTextOrder({
7313
7213
  mentions: input.authoredMentionsInTextOrder,
7314
7214
  text: input.text
7315
7215
  });
7316
7216
  const replyToSignalId = normalizeReplyToSignalId(input.replyTo);
7317
7217
  const replyTo = replyToSignalId ? { signalId: replyToSignalId } : null;
7318
- if (hasNoAuthoredMentions(canonicalFragments, authoredMentionsInTextOrder)) {
7218
+ if (authoredMentionsInTextOrder.length === 0) {
7319
7219
  const normalizedText = normalizePlainTextOrThrow(input.text);
7320
7220
  return {
7321
7221
  authoredMentionsInTextOrder: [],
7322
- canonicalMentionsInTextOrder: [],
7222
+ mentionsInTextOrder: [],
7323
7223
  hasStructuredTargets: false,
7324
7224
  messageEnvelope: createMessageEnvelopeOrNull({
7325
7225
  activationTargets: [],
@@ -7333,43 +7233,17 @@ function prepareSpaceComposerSubmission(input) {
7333
7233
  text: normalizedText
7334
7234
  };
7335
7235
  }
7336
- validateCanonicalMentionSyntaxOrThrow(canonicalFragments);
7337
7236
  if (!input.snapshot) throw createSubmissionError("addressing.members_snapshot_missing", input.missingSnapshotMessage);
7338
7237
  validateSnapshotTargetKindsOrThrow(input.snapshot);
7339
7238
  const catalog = createSpaceTargetCatalog(input.snapshot);
7340
7239
  const envelopeInput = createEnvelopeInput(input.text, replyToSignalId);
7341
- const canonicalMentionsInTextOrder = [];
7342
7240
  const profileIdsInTextOrder = [];
7343
7241
  const structuredTargetProfileIds = /* @__PURE__ */ new Set();
7344
7242
  const structuredMentionCandidates = [];
7345
- for (const fragment of canonicalFragments) {
7346
- const parsedLiteral = fragment.parsedLiteral;
7347
- if (!parsedLiteral) throw createSubmissionError("addressing.invalid_canonical_mention_syntax", buildInvalidCanonicalMentionSyntaxMessage(fragment.text));
7348
- const target = catalog.byExactMentionLabel.get(parsedLiteral.name);
7349
- if (!target) throw createSubmissionError("addressing.target_not_in_current_space", MISSING_MENTION_TARGET_GUIDANCE);
7350
- if (!target.allowedRelations[parsedLiteral.type]) throw createSubmissionError("addressing.relation_incompatible", buildInvalidCanonicalMentionRelationMessage({
7351
- mentionText: fragment.text,
7352
- relation: parsedLiteral.type
7353
- }));
7354
- const canonicalMention = {
7355
- profileId: target.profileId,
7356
- text: fragment.text,
7357
- type: parsedLiteral.type
7358
- };
7359
- canonicalMentionsInTextOrder.push(canonicalMention);
7360
- structuredMentionCandidates.push({
7361
- canonicalMention,
7362
- profileId: target.profileId,
7363
- relation: parsedLiteral.type,
7364
- sequence: structuredMentionCandidates.length,
7365
- sourcePriority: 0,
7366
- start: fragment.start
7367
- });
7368
- }
7369
7243
  for (const authoredMention of authoredMentionsInTextOrder) {
7370
7244
  const target = catalog.byProfileId.get(authoredMention.profileId);
7371
7245
  if (!target) throw createSubmissionError("addressing.target_not_in_current_space", MISSING_MENTION_TARGET_GUIDANCE);
7372
- if (!target.allowedRelations[authoredMention.relation]) throw createSubmissionError("addressing.relation_incompatible", buildInvalidCanonicalMentionRelationMessage({
7246
+ if (!target.allowedRelations[authoredMention.relation]) throw createSubmissionError("addressing.relation_incompatible", buildInvalidMentionRelationMessage({
7373
7247
  mentionText: authoredMention.text,
7374
7248
  relation: authoredMention.relation
7375
7249
  }));
@@ -7377,11 +7251,11 @@ function prepareSpaceComposerSubmission(input) {
7377
7251
  profileId: target.profileId,
7378
7252
  relation: authoredMention.relation,
7379
7253
  sequence: structuredMentionCandidates.length,
7380
- sourcePriority: 1,
7254
+ text: authoredMention.text,
7381
7255
  start: authoredMention.start
7382
7256
  });
7383
7257
  }
7384
- const resolvedCanonicalMentionsInTextOrder = appendStructuredMentionCandidates({
7258
+ const resolvedMentionsInTextOrder = appendStructuredMentionCandidates({
7385
7259
  candidates: structuredMentionCandidates,
7386
7260
  envelopeInput,
7387
7261
  profileIdsInTextOrder,
@@ -7390,20 +7264,17 @@ function prepareSpaceComposerSubmission(input) {
7390
7264
  const messageEnvelope = createMessageEnvelopeOrNull(envelopeInput);
7391
7265
  return {
7392
7266
  authoredMentionsInTextOrder,
7393
- canonicalMentionsInTextOrder,
7267
+ mentionsInTextOrder: resolvedMentionsInTextOrder,
7394
7268
  hasStructuredTargets: profileIdsInTextOrder.length > 0,
7395
7269
  messageEnvelope,
7396
7270
  replyTo,
7397
7271
  resolvedStructuredTargets: {
7398
- canonicalMentionsInTextOrder: resolvedCanonicalMentionsInTextOrder,
7272
+ mentionsInTextOrder: resolvedMentionsInTextOrder,
7399
7273
  profileIdsInTextOrder
7400
7274
  },
7401
7275
  text: messageEnvelope?.text ?? normalizePlainTextOrThrow(input.text)
7402
7276
  };
7403
7277
  }
7404
- function hasNoAuthoredMentions(canonicalFragments, authoredMentions) {
7405
- return canonicalFragments.length === 0 && authoredMentions.length === 0;
7406
- }
7407
7278
  function appendStructuredTarget(input) {
7408
7279
  if (input.structuredTargetProfileIds.has(input.profileId)) return false;
7409
7280
  input.structuredTargetProfileIds.add(input.profileId);
@@ -7413,10 +7284,10 @@ function appendStructuredTarget(input) {
7413
7284
  return true;
7414
7285
  }
7415
7286
  function compareStructuredMentionCandidates(left, right) {
7416
- return left.start - right.start || left.sourcePriority - right.sourcePriority || left.sequence - right.sequence;
7287
+ return left.start - right.start || left.sequence - right.sequence;
7417
7288
  }
7418
7289
  function appendStructuredMentionCandidates(input) {
7419
- const resolvedCanonicalMentionsInTextOrder = [];
7290
+ const resolvedMentionsInTextOrder = [];
7420
7291
  input.candidates.sort(compareStructuredMentionCandidates);
7421
7292
  for (const candidate of input.candidates) if (appendStructuredTarget({
7422
7293
  envelopeInput: input.envelopeInput,
@@ -7424,8 +7295,24 @@ function appendStructuredMentionCandidates(input) {
7424
7295
  profileIdsInTextOrder: input.profileIdsInTextOrder,
7425
7296
  relation: candidate.relation,
7426
7297
  structuredTargetProfileIds: input.structuredTargetProfileIds
7427
- }) && candidate.canonicalMention) resolvedCanonicalMentionsInTextOrder.push(candidate.canonicalMention);
7428
- return resolvedCanonicalMentionsInTextOrder;
7298
+ })) resolvedMentionsInTextOrder.push({
7299
+ profileId: candidate.profileId,
7300
+ text: candidate.text,
7301
+ type: candidate.relation
7302
+ });
7303
+ return resolvedMentionsInTextOrder;
7304
+ }
7305
+ function prepareSpaceFileOnlySubmission(input) {
7306
+ const replyToSignalId = normalizeReplyToSignalId(input?.replyTo);
7307
+ return {
7308
+ authoredMentionsInTextOrder: [],
7309
+ mentionsInTextOrder: [],
7310
+ hasStructuredTargets: false,
7311
+ messageEnvelope: null,
7312
+ replyTo: replyToSignalId ? { signalId: replyToSignalId } : null,
7313
+ resolvedStructuredTargets: emptyResolvedStructuredTargets(),
7314
+ text: ""
7315
+ };
7429
7316
  }
7430
7317
  function normalizeAuthoredMentionsInTextOrder(input) {
7431
7318
  const normalizedMentions = [];
@@ -7436,7 +7323,9 @@ function normalizeAuthoredMentionsInTextOrder(input) {
7436
7323
  if (!(profileId && text)) throw createSubmissionError("addressing.invalid_message_envelope", "Authored mention target must include a profile and visible mention text.");
7437
7324
  if (!CANONICAL_MENTION_TYPES.has(mention.relation)) throw createSubmissionError("addressing.invalid_message_envelope", INVALID_MENTION_ACTION_GUIDANCE);
7438
7325
  const declaredStart = mention.start;
7439
- const start = Number.isInteger(declaredStart) && (declaredStart ?? -1) >= searchStart && input.text.slice(declaredStart, (declaredStart ?? 0) + text.length) === text ? declaredStart : input.text.indexOf(text, searchStart);
7326
+ const hasValidDeclaredStart = Number.isInteger(declaredStart) && (declaredStart ?? -1) >= searchStart && input.text.slice(declaredStart, (declaredStart ?? 0) + text.length) === text;
7327
+ if (declaredStart !== void 0 && !hasValidDeclaredStart) continue;
7328
+ const start = hasValidDeclaredStart ? declaredStart : input.text.indexOf(text, searchStart);
7440
7329
  if (start < 0) continue;
7441
7330
  normalizedMentions.push({
7442
7331
  profileId,
@@ -7448,24 +7337,9 @@ function normalizeAuthoredMentionsInTextOrder(input) {
7448
7337
  }
7449
7338
  return normalizedMentions;
7450
7339
  }
7451
- function assertValidSpaceCanonicalMentionSyntax$1(text) {
7452
- validateCanonicalMentionSyntaxOrThrow(collectCanonicalMentionTextFragments(text));
7453
- }
7454
- function assertNoRemovedCcSpaceAddressingSyntax(text) {
7455
- if (collectCanonicalMentionTextFragments(text).find((fragment) => REMOVED_CC_RELATION_SUFFIX_PATTERN.test(fragment.text.trim()))) throw createSubmissionError("addressing.invalid_canonical_mention_syntax", formatRemovedCcRelationMessage("Reference"));
7456
- }
7457
- function spaceTextHasCanonicalMentionAttempts$1(text) {
7458
- return collectCanonicalMentionTextFragments(text).length > 0;
7459
- }
7460
- function validateCanonicalMentionSyntaxOrThrow(canonicalFragments) {
7461
- for (const fragment of canonicalFragments) {
7462
- if (fragment.parsedLiteral) continue;
7463
- throw createSubmissionError("addressing.invalid_canonical_mention_syntax", buildInvalidCanonicalMentionSyntaxMessage(fragment.text));
7464
- }
7465
- }
7466
7340
  function emptyResolvedStructuredTargets() {
7467
7341
  return {
7468
- canonicalMentionsInTextOrder: [],
7342
+ mentionsInTextOrder: [],
7469
7343
  profileIdsInTextOrder: []
7470
7344
  };
7471
7345
  }
@@ -7536,21 +7410,8 @@ function createMessageEnvelopeOrNull(input) {
7536
7410
  if (!(input.activationTargets.length > 0 || input.referenceTargets.length > 0 || input.mentionTargets.length > 0 || input.replyToSignalId)) return null;
7537
7411
  return normalizeEnvelopeOrThrow(input);
7538
7412
  }
7539
- function buildInvalidCanonicalMentionSyntaxMessage(mentionText) {
7540
- const trimmedMentionText = mentionText.trim();
7541
- const openParenIndex = trimmedMentionText.lastIndexOf("(");
7542
- if (!trimmedMentionText.startsWith("@") || openParenIndex <= 1 || !trimmedMentionText.endsWith(")")) return INVALID_MENTION_GUIDANCE;
7543
- const rawName = trimmedMentionText.slice(1, openParenIndex);
7544
- const rawType = trimmedMentionText.slice(openParenIndex + 1, trimmedMentionText.length - 1);
7545
- if (rawName.trim() !== rawName) return INVALID_MENTION_GUIDANCE;
7546
- const normalizedName = rawName.replaceAll(/\s+/g, " ").trim();
7547
- if (normalizedName.includes("(") || normalizedName.includes(")")) return INVALID_MENTION_GUIDANCE;
7548
- if (rawType === "cc") return formatRemovedCcRelationMessage("Reference");
7549
- if (!CANONICAL_MENTION_TYPES.has(rawType)) return INVALID_MENTION_ACTION_GUIDANCE;
7550
- return INVALID_MENTION_GUIDANCE;
7551
- }
7552
- function buildInvalidCanonicalMentionRelationMessage(input) {
7553
- return `Invalid canonical mention "${input.mentionText}": ${input.relation} is only allowed for ${describeRelationSupport(input.relation)} in this space.`;
7413
+ function buildInvalidMentionRelationMessage(input) {
7414
+ return `Invalid mention "${input.mentionText}": ${input.relation} is only allowed for ${describeRelationSupport(input.relation)} in this space.`;
7554
7415
  }
7555
7416
  function describeRelationSupport(relation) {
7556
7417
  if (relation === "wake") return "agent targets";
@@ -7744,10 +7605,6 @@ function listSpaceMentionRelationChoices(input) {
7744
7605
  if (!input.allowedRelations[relation]) continue;
7745
7606
  const wakeBlocked = relation === "wake" && input.wakeAvailability.status !== "ready" && input.wakeAvailability.status !== "preparing";
7746
7607
  choices.push({
7747
- canonicalLiteral: formatCanonicalMentionLiteral({
7748
- name: input.primaryMentionLabel,
7749
- type: relation
7750
- }),
7751
7608
  description: RELATION_DESCRIPTIONS[relation],
7752
7609
  disabled: wakeBlocked,
7753
7610
  disabledReason: wakeBlocked ? input.wakeAvailability.reasonText : null,
@@ -7798,7 +7655,7 @@ function resolveNextRecentMentionProfileIdsForQueuedText(input) {
7798
7655
  maxRecentProfileIds: input.maxRecentProfileIds,
7799
7656
  allowedProfileIds: input.allowedProfileIds
7800
7657
  });
7801
- const canonicalUsedProfileIds = resolveRecentMentionProfileIdsFromCanonicalMentions(input.canonicalMentionsInTextOrder);
7658
+ const canonicalUsedProfileIds = resolveRecentMentionProfileIdsFromCanonicalMentions(input.mentionsInTextOrder);
7802
7659
  if (canonicalUsedProfileIds.length > 0) return mergeRecentMentionProfileIds({
7803
7660
  currentRecentProfileIds: input.currentRecentProfileIds,
7804
7661
  usedProfileIds: canonicalUsedProfileIds,
@@ -7875,9 +7732,9 @@ function normalizeSearchTerm(value) {
7875
7732
  function areCaseInsensitiveMatches$1(left, right) {
7876
7733
  return left.localeCompare(right, "en", { sensitivity: "accent" }) === 0;
7877
7734
  }
7878
- function resolveRecentMentionProfileIdsFromCanonicalMentions(canonicalMentionsInTextOrder) {
7879
- if (!(canonicalMentionsInTextOrder && canonicalMentionsInTextOrder.length > 0)) return [];
7880
- return canonicalMentionsInTextOrder.toReversed().map((mention) => mention.profileId);
7735
+ function resolveRecentMentionProfileIdsFromCanonicalMentions(mentionsInTextOrder) {
7736
+ if (!(mentionsInTextOrder && mentionsInTextOrder.length > 0)) return [];
7737
+ return mentionsInTextOrder.toReversed().map((mention) => mention.profileId);
7881
7738
  }
7882
7739
  function resolveMaxRecentProfileIds(value) {
7883
7740
  if (typeof value !== "number" || !Number.isInteger(value) || value <= 0) return MAX_RECENT_MENTION_PROFILE_IDS;
@@ -7896,11 +7753,6 @@ function toAllowedProfileIdSet(value) {
7896
7753
  });
7897
7754
  return new Set(normalizedProfileIds);
7898
7755
  }
7899
- const assertValidSpaceCanonicalMentionSyntax = assertValidSpaceCanonicalMentionSyntax$1;
7900
- const spaceTextHasCanonicalMentionAttempts = spaceTextHasCanonicalMentionAttempts$1;
7901
- function spaceTextHasOneShotMentionAttempts(text) {
7902
- return spaceTextHasCanonicalMentionAttempts(text);
7903
- }
7904
7756
  function buildSpaceProfileAddPlan(input) {
7905
7757
  const actingProfileId = normalizeText$1(input.actingProfileId);
7906
7758
  const currentOwnerUserId = normalizeText$1(input.currentOwnerUserId);
@@ -17931,6 +17783,7 @@ function collectErrorMessages(error) {
17931
17783
  async function syncLocalServiceRuntimeAgentControllerReports(input) {
17932
17784
  let inventory;
17933
17785
  try {
17786
+ await reconcileNewRunnableBuiltinAgentRegistrations();
17934
17787
  inventory = await collectLocalAgentControllerInventory({
17935
17788
  includeControllerInterface: true,
17936
17789
  localAdapterContainer: input.localAdapterContainer,
@@ -18804,8 +18657,8 @@ async function resolveDaemonServiceParticipationStatus(input) {
18804
18657
  }
18805
18658
  //#endregion
18806
18659
  //#region src/local-components/manifest.ts
18807
- const OPENMELD_CLI_COMMAND_CONTRACT_VERSION = "openmeld-cli-command-contract-2026-09-people-computers-v2";
18808
- const OPENMELD_SKILLS_CONTRACT_VERSION = "openmeld-skills-contract-2026-08-tool-owned-actions-v2";
18660
+ const OPENMELD_CLI_COMMAND_CONTRACT_VERSION = "openmeld-cli-command-contract-2026-09-explicit-space-recipients-v1";
18661
+ const OPENMELD_SKILLS_CONTRACT_VERSION = "openmeld-skills-contract-2026-09-explicit-space-recipients-v1";
18809
18662
  const OPENMELD_SERVICE_CONTRACT_VERSION = "openmeld-service-contract-2026-09-codex-thread-model-v1";
18810
18663
  const LOCAL_COMPONENTS_SNAPSHOT_FILE = "local-components.json";
18811
18664
  const SERVICE_COMPONENT_UPDATE_CODES = /* @__PURE__ */ new Set([
@@ -18931,7 +18784,7 @@ function resolveCliComponentStatus(input) {
18931
18784
  const requiredCommandContractVersion = normalizeOptionalString$4(input.requiredCommandContractVersion);
18932
18785
  const reasonCodes = [];
18933
18786
  let status = "ok";
18934
- if (requiredCommandContractVersion && requiredCommandContractVersion !== "openmeld-cli-command-contract-2026-09-people-computers-v2") {
18787
+ if (requiredCommandContractVersion && requiredCommandContractVersion !== "openmeld-cli-command-contract-2026-09-explicit-space-recipients-v1") {
18935
18788
  status = "update_required";
18936
18789
  reasonCodes.push("cli.command_contract_mismatch");
18937
18790
  } else if (latestPackageVersion && compareSemver(OPENMELD_VERSION, latestPackageVersion) < 0) {
@@ -28676,17 +28529,11 @@ const runDaemonServiceLoop = async (input) => {
28676
28529
  skippedProfiles: []
28677
28530
  });
28678
28531
  const routeCatalogLoader = createRouteCatalogSyncLoader({
28679
- loadFresh: async () => {
28680
- await reconcileNewRunnableBuiltinAgentRegistrations({ notifyRouteCatalogChanged: false });
28681
- return await loadDaemonRouteCatalog({
28682
- allowEmpty: true,
28683
- localAdapterContainer,
28684
- localReplyStateMode: "check",
28685
- ownerUserId,
28686
- presenter: input.presenter,
28687
- quiet: true
28688
- });
28689
- },
28532
+ loadFresh: () => loadFreshDaemonRouteCatalog({
28533
+ localAdapterContainer,
28534
+ ownerUserId,
28535
+ presenter: input.presenter
28536
+ }),
28690
28537
  loadInitial: async () => await loadInitialDaemonRouteCatalog({
28691
28538
  allowEmpty: true,
28692
28539
  lane,
@@ -29082,6 +28929,14 @@ const runDaemonServiceLoop = async (input) => {
29082
28929
  text: "local service loop stopped"
29083
28930
  });
29084
28931
  };
28932
+ async function loadFreshDaemonRouteCatalog(input) {
28933
+ return await loadDaemonRouteCatalog({
28934
+ ...input,
28935
+ allowEmpty: true,
28936
+ localReplyStateMode: "check",
28937
+ quiet: true
28938
+ });
28939
+ }
29085
28940
  function createRouteCatalogSyncLoader(deps) {
29086
28941
  let resolved = false;
29087
28942
  return {
@@ -36737,71 +36592,6 @@ function toErrorMessage$6(error) {
36737
36592
  return String(error ?? "unknown error");
36738
36593
  }
36739
36594
  //#endregion
36740
- //#region src/space/web-url.ts
36741
- function buildSpaceWebUrl(baseUrl, organizationSlug, spaceId, options) {
36742
- const url = new URL(resolveGatewayWebOrigin(baseUrl));
36743
- const orgSlug = requireOrganizationSlug(organizationSlug);
36744
- url.pathname = `/o/${encodeURIComponent(orgSlug)}/spaces/${encodeURIComponent(spaceId)}`;
36745
- url.search = "";
36746
- const profileId = normalizeOptionalText$7(options?.profileId);
36747
- if (profileId) url.searchParams.set("profileId", profileId);
36748
- url.hash = "";
36749
- return url.toString();
36750
- }
36751
- function resolveGatewayWebOrigin(baseUrl) {
36752
- const url = new URL(baseUrl);
36753
- if (isLoopbackHostname(url.hostname) && url.port === LOCAL_GATEWAY_PORT) url.port = LOCAL_WEB_PORT;
36754
- const pair = OPENMELD_ORIGIN_HOST_PAIRS.find(({ gateway }) => gateway === url.hostname);
36755
- if (pair) {
36756
- url.hostname = pair.web;
36757
- url.port = "";
36758
- url.protocol = "https:";
36759
- }
36760
- url.pathname = "";
36761
- url.search = "";
36762
- url.hash = "";
36763
- return url.origin;
36764
- }
36765
- function resolveSpaceWebGatewayOrigin(spaceUrl) {
36766
- const url = new URL(spaceUrl.toString());
36767
- const pair = OPENMELD_ORIGIN_HOST_PAIRS.find(({ web }) => web === url.hostname);
36768
- if (pair) {
36769
- if (url.protocol !== "https:" || url.port.length > 0) throw new Error(TRUSTED_SPACE_WEB_ORIGIN_ERROR);
36770
- url.hostname = pair.gateway;
36771
- } else if (isLoopbackHostname(url.hostname) && (url.protocol === "http:" || url.protocol === "https:") && url.port === LOCAL_WEB_PORT) url.port = LOCAL_GATEWAY_PORT;
36772
- else throw new Error(TRUSTED_SPACE_WEB_ORIGIN_ERROR);
36773
- url.pathname = "";
36774
- url.search = "";
36775
- url.hash = "";
36776
- return url.origin;
36777
- }
36778
- function normalizeOptionalText$7(value) {
36779
- const normalized = String(value ?? "").trim();
36780
- return normalized.length > 0 ? normalized : null;
36781
- }
36782
- function requireOrganizationSlug(value) {
36783
- const normalized = normalizeOptionalText$7(value);
36784
- if (!normalized) throw new Error("Active organization slug is required to build a Space URL.");
36785
- return normalized;
36786
- }
36787
- const OPENMELD_ORIGIN_HOST_PAIRS = [
36788
- {
36789
- gateway: "gateway.openmeld.ai",
36790
- web: "openmeld.ai"
36791
- },
36792
- {
36793
- gateway: "gateway.staging.openmeld.ai",
36794
- web: "staging.openmeld.ai"
36795
- },
36796
- {
36797
- gateway: "gateway.openmeld.invalid",
36798
- web: "openmeld.invalid"
36799
- }
36800
- ];
36801
- const LOCAL_GATEWAY_PORT = "8080";
36802
- const LOCAL_WEB_PORT = "3000";
36803
- const TRUSTED_SPACE_WEB_ORIGIN_ERROR = "Space URL must use a trusted OpenMeld Web origin. For a custom local environment, pass --gateway-url explicitly.";
36804
- //#endregion
36805
36595
  //#region src/ui/brand.ts
36806
36596
  const ANSI_RESET = "\x1B[0m";
36807
36597
  const LOGO_SCALE = 1;
@@ -40667,8 +40457,8 @@ function renderRefreshStartFailure(input) {
40667
40457
  };
40668
40458
  }
40669
40459
  async function resolveDaemonServiceAccountAlignmentIssue(input) {
40670
- const expectedProfileId = normalizeOptionalText$6(input.openMeldProfileId);
40671
- const expectedOwnerUserId = normalizeOptionalText$6(input.expectedOwnerUserId);
40460
+ const expectedProfileId = normalizeOptionalText$7(input.openMeldProfileId);
40461
+ const expectedOwnerUserId = normalizeOptionalText$7(input.expectedOwnerUserId);
40672
40462
  const expectedGatewayUrl = normalizeGatewayBaseUrlOrNull(input.gatewayUrl);
40673
40463
  if (!(expectedProfileId || expectedOwnerUserId || expectedGatewayUrl)) return null;
40674
40464
  const contract = await readDaemonServiceContract().catch(() => null);
@@ -40676,7 +40466,7 @@ async function resolveDaemonServiceAccountAlignmentIssue(input) {
40676
40466
  reasonCode: "service_contract.missing",
40677
40467
  summary: "OpenMeld Service is running, but this setup could not verify the service account contract for this computer."
40678
40468
  };
40679
- const contractOwnerUserId = normalizeOptionalText$6(contract.ownerUserId);
40469
+ const contractOwnerUserId = normalizeOptionalText$7(contract.ownerUserId);
40680
40470
  if (expectedOwnerUserId && contractOwnerUserId && contractOwnerUserId !== expectedOwnerUserId) return {
40681
40471
  reasonCode: "service_contract.owner_mismatch",
40682
40472
  summary: "OpenMeld Service is running for a different OpenMeld account. This setup will reconnect OpenMeld Service to the current Web account."
@@ -40696,7 +40486,7 @@ async function resolveDaemonServiceAccountAlignmentIssue(input) {
40696
40486
  };
40697
40487
  return null;
40698
40488
  }
40699
- function normalizeOptionalText$6(value) {
40489
+ function normalizeOptionalText$7(value) {
40700
40490
  const normalized = String(value ?? "").trim();
40701
40491
  return normalized.length > 0 ? normalized : null;
40702
40492
  }
@@ -41103,19 +40893,84 @@ function buildReplyReadinessNextSteps(input) {
41103
40893
  }
41104
40894
  }
41105
40895
  function buildLocalAgentInstallChoiceNextSteps(input) {
41106
- const agentId = normalizeOptionalText$5(input.localAgentId);
40896
+ const agentId = normalizeOptionalText$6(input.localAgentId);
41107
40897
  if (!agentId) return [formatOpenMeldCliCommand("openmeld agents enable --agent <agent-id>"), formatOpenMeldCliCommand("openmeld agents list")];
41108
40898
  return [formatOpenMeldCliCommand(`openmeld agents enable --agent ${agentId}`), formatOpenMeldCliCommand(`openmeld agents repair --agent ${agentId}`)];
41109
40899
  }
41110
40900
  function buildLocalAgentLaunchRepairNextSteps(input) {
41111
- const agentId = normalizeOptionalText$5(input.localAgentId);
40901
+ const agentId = normalizeOptionalText$6(input.localAgentId);
41112
40902
  if (!agentId) return [formatOpenMeldCliCommand("openmeld agents repair --agent <agent-id>"), formatOpenMeldCliCommand("openmeld agents list")];
41113
40903
  return [formatOpenMeldCliCommand(`openmeld agents repair --agent ${agentId}`)];
41114
40904
  }
40905
+ function normalizeOptionalText$6(value) {
40906
+ const normalized = String(value ?? "").trim();
40907
+ return normalized.length > 0 ? normalized : null;
40908
+ }
40909
+ //#endregion
40910
+ //#region src/space/web-url.ts
40911
+ function buildSpaceWebUrl(baseUrl, organizationSlug, spaceId, options) {
40912
+ const url = new URL(resolveGatewayWebOrigin(baseUrl));
40913
+ const orgSlug = requireOrganizationSlug(organizationSlug);
40914
+ url.pathname = `/o/${encodeURIComponent(orgSlug)}/spaces/${encodeURIComponent(spaceId)}`;
40915
+ url.search = "";
40916
+ const profileId = normalizeOptionalText$5(options?.profileId);
40917
+ if (profileId) url.searchParams.set("profileId", profileId);
40918
+ url.hash = "";
40919
+ return url.toString();
40920
+ }
40921
+ function resolveGatewayWebOrigin(baseUrl) {
40922
+ const url = new URL(baseUrl);
40923
+ if (isLoopbackHostname(url.hostname) && url.port === LOCAL_GATEWAY_PORT) url.port = LOCAL_WEB_PORT;
40924
+ const pair = OPENMELD_ORIGIN_HOST_PAIRS.find(({ gateway }) => gateway === url.hostname);
40925
+ if (pair) {
40926
+ url.hostname = pair.web;
40927
+ url.port = "";
40928
+ url.protocol = "https:";
40929
+ }
40930
+ url.pathname = "";
40931
+ url.search = "";
40932
+ url.hash = "";
40933
+ return url.origin;
40934
+ }
40935
+ function resolveSpaceWebGatewayOrigin(spaceUrl) {
40936
+ const url = new URL(spaceUrl.toString());
40937
+ const pair = OPENMELD_ORIGIN_HOST_PAIRS.find(({ web }) => web === url.hostname);
40938
+ if (pair) {
40939
+ if (url.protocol !== "https:" || url.port.length > 0) throw new Error(TRUSTED_SPACE_WEB_ORIGIN_ERROR);
40940
+ url.hostname = pair.gateway;
40941
+ } else if (isLoopbackHostname(url.hostname) && (url.protocol === "http:" || url.protocol === "https:") && url.port === LOCAL_WEB_PORT) url.port = LOCAL_GATEWAY_PORT;
40942
+ else throw new Error(TRUSTED_SPACE_WEB_ORIGIN_ERROR);
40943
+ url.pathname = "";
40944
+ url.search = "";
40945
+ url.hash = "";
40946
+ return url.origin;
40947
+ }
41115
40948
  function normalizeOptionalText$5(value) {
41116
40949
  const normalized = String(value ?? "").trim();
41117
40950
  return normalized.length > 0 ? normalized : null;
41118
40951
  }
40952
+ function requireOrganizationSlug(value) {
40953
+ const normalized = normalizeOptionalText$5(value);
40954
+ if (!normalized) throw new Error("Active organization slug is required to build a Space URL.");
40955
+ return normalized;
40956
+ }
40957
+ const OPENMELD_ORIGIN_HOST_PAIRS = [
40958
+ {
40959
+ gateway: "gateway.openmeld.ai",
40960
+ web: "openmeld.ai"
40961
+ },
40962
+ {
40963
+ gateway: "gateway.staging.openmeld.ai",
40964
+ web: "staging.openmeld.ai"
40965
+ },
40966
+ {
40967
+ gateway: "gateway.openmeld.invalid",
40968
+ web: "openmeld.invalid"
40969
+ }
40970
+ ];
40971
+ const LOCAL_GATEWAY_PORT = "8080";
40972
+ const LOCAL_WEB_PORT = "3000";
40973
+ const TRUSTED_SPACE_WEB_ORIGIN_ERROR = "Space URL must use a trusted OpenMeld Web origin. For a custom local environment, pass --gateway-url explicitly.";
41119
40974
  //#endregion
41120
40975
  //#region src/system/local-agent-readiness-preparation.ts
41121
40976
  async function prepareLocalAgentReadiness(input) {
@@ -45714,15 +45569,15 @@ function formatSignalTimestamp(ts) {
45714
45569
  return pc.dim(`${year}${month}${day} ${hour}:${minute}`);
45715
45570
  }
45716
45571
  //#endregion
45717
- //#region src/space/canonical-mention-preflight.ts
45718
- function rethrowCanonicalMentionSnapshotLoadFailure(error) {
45572
+ //#region src/space/addressing-preflight.ts
45573
+ function rethrowSpaceAddressingSnapshotLoadFailure(error) {
45719
45574
  const failure = toStructuredApiClientFailure(error);
45720
45575
  if (failure.code || failure.status !== null) throw error;
45721
45576
  throw new Error(buildMembersSnapshotLoadFailureMessage(error), { cause: error });
45722
45577
  }
45723
45578
  function buildMembersSnapshotLoadFailureMessage(error) {
45724
- const prefix = "OpenMeld couldn't check who your mentions refer to.";
45725
- const plainTextHint = "Use --plain if you want to send the text without mentioning anyone.";
45579
+ const prefix = "OpenMeld couldn't validate the selected recipients.";
45580
+ const plainTextHint = "Retry when Space members are available. To send without recipients, remove the recipient options.";
45726
45581
  const failure = toStructuredApiClientFailure(error);
45727
45582
  const details = [];
45728
45583
  if (failure.message.trim().length > 0) details.push(failure.message.trim());
@@ -45905,72 +45760,86 @@ function resolveLocalSlashCommandIntent(input) {
45905
45760
  //#endregion
45906
45761
  //#region src/space/composer-submission-adapter.ts
45907
45762
  async function prepareCliSpaceComposerSubmission(input) {
45908
- const hasCanonicalMentionAttempts = spaceTextHasOneShotMentionAttempts(input.text);
45909
- if (hasCanonicalMentionAttempts) assertValidSpaceCanonicalMentionSyntax(input.text);
45910
- let membersSnapshot = null;
45911
- if (hasCanonicalMentionAttempts && input.loadMembersSnapshot) try {
45912
- membersSnapshot = await input.loadMembersSnapshot();
45913
- if (membersSnapshot) input.onMembersSnapshotLoaded?.(membersSnapshot);
45914
- } catch (error) {
45915
- input.onSnapshotLoadFailure?.(error);
45916
- throw error;
45763
+ const requested = [
45764
+ ["wake", input.wakeTargets ?? []],
45765
+ ["reference", input.referenceTargets ?? []],
45766
+ ["mention", input.mentionTargets ?? []]
45767
+ ].flatMap(([relation, ids]) => ids.map((profileId) => ({
45768
+ profileId,
45769
+ relation
45770
+ })));
45771
+ let snapshot = null;
45772
+ if (requested.length > 0 || (input.authoredMentionsInTextOrder?.length ?? 0) > 0) {
45773
+ try {
45774
+ snapshot = await input.loadMembersSnapshot?.() ?? null;
45775
+ if (snapshot) input.onMembersSnapshotLoaded?.(snapshot);
45776
+ } catch (error) {
45777
+ input.onSnapshotLoadFailure?.(error);
45778
+ throw error;
45779
+ }
45780
+ if (!snapshot) throw new SpaceComposerSubmissionError({
45781
+ code: "addressing.members_snapshot_missing",
45782
+ message: input.missingSnapshotMessage
45783
+ });
45917
45784
  }
45918
- const preparedSubmission = prepareSpaceComposerSubmission({
45785
+ const { mentions, prefix, resolvedAddressingTargets } = resolveRequestedRecipients(snapshot, requested);
45786
+ const preparedSubmission = prefix.length === 0 && input.text.length === 0 ? prepareSpaceFileOnlySubmission({ replyTo: input.replyTo }) : prepareSpaceComposerSubmission({
45787
+ authoredMentionsInTextOrder: [...mentions, ...(input.authoredMentionsInTextOrder ?? []).map((mention) => ({
45788
+ ...mention,
45789
+ start: mention.start === void 0 ? void 0 : mention.start + prefix.length
45790
+ }))],
45919
45791
  missingSnapshotMessage: input.missingSnapshotMessage,
45920
45792
  replyTo: input.replyTo,
45921
- snapshot: membersSnapshot,
45922
- text: input.text
45923
- });
45924
- const publishedMessage = resolvePublishedMessage({
45925
- membersSnapshot,
45926
- preparedSubmission
45793
+ snapshot,
45794
+ text: prefix + input.text
45927
45795
  });
45928
- const outboundText = publishedMessage.text;
45929
- const outboundMessageEnvelope = preparedSubmission.messageEnvelope ? {
45930
- ...preparedSubmission.messageEnvelope,
45931
- text: outboundText
45932
- } : void 0;
45933
45796
  return {
45934
- ...outboundMessageEnvelope ? { outboundMessageEnvelope } : {},
45797
+ ...preparedSubmission.messageEnvelope ? { outboundMessageEnvelope: preparedSubmission.messageEnvelope } : {},
45935
45798
  ...preparedSubmission.replyTo ? { outboundReplyTo: preparedSubmission.replyTo } : {},
45936
- outboundText,
45799
+ outboundText: preparedSubmission.text,
45937
45800
  preparedSubmission,
45938
- resolvedAddressingTargets: publishedMessage.resolvedAddressingTargets
45939
- };
45940
- }
45941
- function resolvePublishedMessage(input) {
45942
- const text = input.preparedSubmission.text;
45943
- const canonicalMentions = collectCanonicalMentionTextFragments(text).flatMap((fragment) => fragment.parsedLiteral ? [{
45944
- ...fragment,
45945
- parsedLiteral: fragment.parsedLiteral
45946
- }] : []);
45947
- if (canonicalMentions.length === 0) return {
45948
- resolvedAddressingTargets: [],
45949
- text
45950
- };
45951
- if (!input.membersSnapshot) throw new Error("Space message addressing invariant failed: resolved mentions require the current members snapshot.");
45952
- const targetCatalog = createSpaceTargetCatalog(input.membersSnapshot);
45953
- let cursor = 0;
45954
- const parts = [];
45955
- for (const mention of canonicalMentions) {
45956
- const target = targetCatalog.byExactMentionLabel.get(mention.parsedLiteral.name);
45957
- if (!target) throw new Error(`Space message addressing invariant failed: resolved target ${mention.parsedLiteral.name} is not in the current members snapshot.`);
45958
- parts.push(text.slice(cursor, mention.start));
45959
- parts.push(`@${target.primaryMentionLabel}`);
45960
- cursor = mention.end;
45961
- }
45962
- parts.push(text.slice(cursor));
45963
- return {
45964
- resolvedAddressingTargets: input.preparedSubmission.canonicalMentionsInTextOrder.map((mention) => {
45965
- const target = targetCatalog.byProfileId.get(mention.profileId);
45966
- if (!target) throw new Error(`Space message addressing invariant failed: resolved profile ${mention.profileId} is not in the current members snapshot.`);
45967
- return {
45968
- primaryMentionLabel: target.primaryMentionLabel,
45969
- profileId: target.profileId,
45970
- relation: mention.type
45971
- };
45972
- }),
45973
- text: parts.join("")
45801
+ resolvedAddressingTargets
45802
+ };
45803
+ }
45804
+ function resolveRequestedRecipients(snapshot, requested) {
45805
+ const catalog = snapshot ? createSpaceTargetCatalog(snapshot) : null;
45806
+ const seen = /* @__PURE__ */ new Map();
45807
+ const resolvedAddressingTargets = [];
45808
+ const mentions = [];
45809
+ let prefix = "";
45810
+ for (const request of requested) {
45811
+ const profileId = request.profileId.trim();
45812
+ const target = catalog?.byProfileId.get(profileId);
45813
+ if (!target) throw new SpaceComposerSubmissionError({
45814
+ code: "addressing.target_not_in_current_space",
45815
+ message: `No current Space member has Profile ID "${profileId}". Run openmeld space members and use the full Profile ID.`
45816
+ });
45817
+ const previous = seen.get(profileId);
45818
+ if (previous && previous !== request.relation) throw new SpaceComposerSubmissionError({
45819
+ code: "addressing.target_reused_across_relations",
45820
+ message: `Choose one relation for Profile ID "${profileId}".`
45821
+ });
45822
+ if (previous) continue;
45823
+ seen.set(profileId, request.relation);
45824
+ const label = target.profileName || target.primaryMentionLabel;
45825
+ const text = `@${label}`;
45826
+ mentions.push({
45827
+ profileId,
45828
+ relation: request.relation,
45829
+ start: prefix.length,
45830
+ text
45831
+ });
45832
+ prefix += `${text} `;
45833
+ resolvedAddressingTargets.push({
45834
+ primaryMentionLabel: label,
45835
+ profileId,
45836
+ relation: request.relation
45837
+ });
45838
+ }
45839
+ return {
45840
+ mentions,
45841
+ prefix,
45842
+ resolvedAddressingTargets
45974
45843
  };
45975
45844
  }
45976
45845
  //#endregion
@@ -48214,10 +48083,7 @@ function buildMembershipTraceDetailLine(block) {
48214
48083
  return block.targets.map((target) => renderMembershipTraceTargetLabel(target, block.spaceMembersSnapshot ?? null)).filter((segment) => segment.length > 0).join(" · ");
48215
48084
  }
48216
48085
  function renderMembershipTraceTargetLabel(target, _spaceMembersSnapshot) {
48217
- if (target.kind === "agent" && target.mentionLabel) return formatCanonicalMentionLiteral({
48218
- name: target.mentionLabel,
48219
- type: "wake"
48220
- });
48086
+ if (target.kind === "agent" && target.mentionLabel) return `@${target.label}`;
48221
48087
  return target.label;
48222
48088
  }
48223
48089
  function resolvePrimaryTranscriptMentionLabel(input) {
@@ -48931,7 +48797,7 @@ async function performInteractiveTextSubmit(input) {
48931
48797
  return {
48932
48798
  status: "not_queued",
48933
48799
  text: outboundText,
48934
- canonicalMentionsInTextOrder: preparedSubmission.canonicalMentionsInTextOrder,
48800
+ mentionsInTextOrder: preparedSubmission.mentionsInTextOrder,
48935
48801
  resolvedStructuredTargets: preparedSubmission.resolvedStructuredTargets
48936
48802
  };
48937
48803
  }
@@ -48941,7 +48807,7 @@ async function performInteractiveTextSubmit(input) {
48941
48807
  status: "queued",
48942
48808
  text: outboundText,
48943
48809
  clientMessageId: sendReceipt.clientMessageId,
48944
- canonicalMentionsInTextOrder: preparedSubmission.canonicalMentionsInTextOrder,
48810
+ mentionsInTextOrder: preparedSubmission.mentionsInTextOrder,
48945
48811
  resolvedStructuredTargets: preparedSubmission.resolvedStructuredTargets
48946
48812
  };
48947
48813
  }
@@ -51732,12 +51598,14 @@ const MENTION_SPACER_ITEM_VALUE = "__mention_spacer__";
51732
51598
  const MENTION_RELATION_HEADER_ITEM_VALUE = "__mention_relation_header__";
51733
51599
  const MENTION_BACK_ITEM_VALUE = "__mention_back__";
51734
51600
  var PiTuiComposerAutocompleteProvider = class {
51601
+ #onMentionSelected;
51735
51602
  #getMembersSnapshot;
51736
51603
  #getRecentMentionProfileIds;
51737
51604
  #mentionPickerState = closeMentionPickerState();
51738
51605
  #resetRelationSelectionOnNextSync = false;
51739
51606
  constructor(input) {
51740
51607
  this.#getMembersSnapshot = input.getMembersSnapshot;
51608
+ this.#onMentionSelected = input.onMentionSelected;
51741
51609
  this.#getRecentMentionProfileIds = input.getRecentMentionProfileIds ?? (() => []);
51742
51610
  }
51743
51611
  getSuggestions(lines, cursorLine, cursorCol) {
@@ -51773,6 +51641,13 @@ var PiTuiComposerAutocompleteProvider = class {
51773
51641
  const nextLines = [...lines];
51774
51642
  this.resetMentionPicker();
51775
51643
  nextLines[cursorLine] = `${beforePrefix}${mentionItem.value} ${afterCursor}`;
51644
+ if (mentionItem.mentionProfileId && mentionItem.mentionRelation) this.#onMentionSelected?.({
51645
+ text: nextLines.join("\n"),
51646
+ start: nextLines.slice(0, cursorLine).reduce((length, line) => length + line.length + 1, 0) + beforePrefix.length,
51647
+ profileId: mentionItem.mentionProfileId,
51648
+ relation: mentionItem.mentionRelation,
51649
+ mentionText: mentionItem.value
51650
+ });
51776
51651
  return {
51777
51652
  lines: nextLines,
51778
51653
  cursorLine,
@@ -51929,7 +51804,7 @@ function buildRelationPickerItems(target) {
51929
51804
  mentionWakeAvailability: target.wakeAvailability
51930
51805
  }];
51931
51806
  for (const relationChoice of listSpaceMentionRelationChoices(target)) items.push({
51932
- value: relationChoice.canonicalLiteral,
51807
+ value: `@${target.profileName}`,
51933
51808
  label: relationChoice.label,
51934
51809
  description: relationChoice.description,
51935
51810
  mentionAllowedRelations: target.allowedRelations,
@@ -53386,6 +53261,21 @@ const OVERLAY_MODAL_MAX_HEIGHT = "70%";
53386
53261
  const CTRL_C_EXIT_CONFIRMATION_WINDOW_MS = 1500;
53387
53262
  const CTRL_C_EXIT_CONFIRMATION_TEXT = renderOpenMeldBrandAccent("Press Ctrl+C again to leave this Space.");
53388
53263
  var PiTuiInteractiveSpaceShell = class {
53264
+ #authoredText = "";
53265
+ #authoredMentions = [];
53266
+ #submittedMentions = null;
53267
+ getAuthoredMentions(text) {
53268
+ if (this.#submittedMentions?.text === text) return this.#submittedMentions.mentions;
53269
+ return this.#authoredText === text ? this.#authoredMentions : [];
53270
+ }
53271
+ #updateAuthoredText(text) {
53272
+ this.#authoredMentions = updateAuthoredMentionRanges({
53273
+ previousText: this.#authoredText,
53274
+ text,
53275
+ mentions: this.#authoredMentions
53276
+ });
53277
+ this.#authoredText = text;
53278
+ }
53389
53279
  #input;
53390
53280
  #terminal;
53391
53281
  #tui;
@@ -53411,14 +53301,29 @@ var PiTuiInteractiveSpaceShell = class {
53411
53301
  this.#composerActivityStrip = new ComposerActivityStrip(this.#tui);
53412
53302
  this.#composerPanel = new ComposerPanel(this.#tui, spacePiTuiEditorTheme);
53413
53303
  this.#composerPanel.editor.setAutocompleteProvider(new PiTuiComposerAutocompleteProvider({
53304
+ onMentionSelected: (selection) => {
53305
+ this.#updateAuthoredText(selection.text);
53306
+ this.#authoredMentions.push({
53307
+ profileId: selection.profileId,
53308
+ relation: selection.relation,
53309
+ start: selection.start,
53310
+ text: selection.mentionText
53311
+ });
53312
+ this.#authoredMentions.sort((a, b) => (a.start ?? 0) - (b.start ?? 0));
53313
+ },
53414
53314
  getMembersSnapshot: () => this.#latestViewState?.resources.membersSnapshot ?? null,
53415
53315
  getRecentMentionProfileIds: () => this.#input.getRecentMentionProfileIds?.() ?? []
53416
53316
  }));
53417
53317
  this.#composerPanel.editor.onChange = (text) => {
53318
+ this.#updateAuthoredText(text);
53418
53319
  if (this.#syncingEditorText) return;
53419
53320
  this.#input.onBufferChange(text);
53420
53321
  };
53421
53322
  this.#composerPanel.editor.onSubmit = (text) => {
53323
+ this.#submittedMentions = {
53324
+ text,
53325
+ mentions: [...this.#authoredMentions]
53326
+ };
53422
53327
  this.#input.onSubmit(text);
53423
53328
  };
53424
53329
  this.#root.addChild(this.#sessionDocumentPanel);
@@ -53457,7 +53362,9 @@ var PiTuiInteractiveSpaceShell = class {
53457
53362
  this.#syncOverlay(viewState);
53458
53363
  if (this.#composerVisible && !this.#overlayHandle) this.#tui.setFocus(this.#composerPanel.editor);
53459
53364
  }
53460
- clearSubmittedInputLine(_line) {}
53365
+ clearSubmittedInputLine(_line) {
53366
+ this.#submittedMentions = null;
53367
+ }
53461
53368
  prepareExternalWrite() {
53462
53369
  if (!this.#started) return;
53463
53370
  this.#tui.invalidate();
@@ -53567,6 +53474,10 @@ var PiTuiInteractiveSpaceShell = class {
53567
53474
  if (this.#composerPanel.editor.getText() === nextBufferText) return;
53568
53475
  this.#syncingEditorText = true;
53569
53476
  try {
53477
+ if (this.#submittedMentions?.text === nextBufferText) {
53478
+ this.#authoredText = nextBufferText;
53479
+ this.#authoredMentions = [...this.#submittedMentions.mentions];
53480
+ }
53570
53481
  this.#composerPanel.editor.setText(nextBufferText);
53571
53482
  } finally {
53572
53483
  this.#syncingEditorText = false;
@@ -54812,13 +54723,13 @@ async function runConnect(input) {
54812
54723
  }
54813
54724
  const prepareRawStdioOutboundText = async (text) => {
54814
54725
  const preparedSubmission = await prepareCliSpaceComposerSubmission({
54815
- missingSnapshotMessage: "Cannot validate mention labels right now because current space members could not be loaded.",
54726
+ missingSnapshotMessage: "Cannot validate recipients because current Space members could not be loaded.",
54816
54727
  onMembersSnapshotLoaded: (membersSnapshot) => {
54817
54728
  readModelSeed.applyMembersSnapshot(membersSnapshot);
54818
54729
  },
54819
54730
  onSnapshotLoadFailure: (error) => {
54820
54731
  presenter.event("info", "connect.warn.members_fetch_failed", { error: toErrorMessage$2(error) });
54821
- rethrowCanonicalMentionSnapshotLoadFailure(error);
54732
+ rethrowSpaceAddressingSnapshotLoadFailure(error);
54822
54733
  },
54823
54734
  loadMembersSnapshot: async () => {
54824
54735
  const currentMembersSnapshot = readModelSeed.getMembersSnapshot();
@@ -55310,13 +55221,14 @@ async function runInteractiveHumanTextSession(input) {
55310
55221
  };
55311
55222
  const prepareInteractiveOutboundText = async (text) => {
55312
55223
  const preparedSubmission = await prepareCliSpaceComposerSubmission({
55313
- missingSnapshotMessage: "Cannot validate mention labels right now because current space members could not be loaded.",
55224
+ authoredMentionsInTextOrder: shell.getAuthoredMentions?.(text) ?? [],
55225
+ missingSnapshotMessage: "Cannot validate recipients because current Space members could not be loaded.",
55314
55226
  onMembersSnapshotLoaded: (membersSnapshot) => {
55315
55227
  applyMembersSnapshot(membersSnapshot);
55316
55228
  },
55317
55229
  onSnapshotLoadFailure: (error) => {
55318
55230
  reportMembersRefreshFailure(error);
55319
- rethrowCanonicalMentionSnapshotLoadFailure(error);
55231
+ rethrowSpaceAddressingSnapshotLoadFailure(error);
55320
55232
  },
55321
55233
  loadMembersSnapshot: async () => {
55322
55234
  const currentMembersSnapshot = store.getState().members.snapshot;
@@ -55326,7 +55238,7 @@ async function runInteractiveHumanTextSession(input) {
55326
55238
  text
55327
55239
  });
55328
55240
  return {
55329
- canonicalMentionsInTextOrder: preparedSubmission.preparedSubmission.canonicalMentionsInTextOrder,
55241
+ mentionsInTextOrder: preparedSubmission.preparedSubmission.mentionsInTextOrder,
55330
55242
  messageEnvelope: preparedSubmission.outboundMessageEnvelope ?? null,
55331
55243
  resolvedStructuredTargets: preparedSubmission.preparedSubmission.resolvedStructuredTargets,
55332
55244
  text: preparedSubmission.outboundText
@@ -55597,7 +55509,7 @@ async function runInteractiveHumanTextSession(input) {
55597
55509
  currentRecentProfileIds: recentMentionProfileIds,
55598
55510
  submittedText: submitResult.text,
55599
55511
  structuredMentionProfileIdsInTextOrder: submitResult.resolvedStructuredTargets.profileIdsInTextOrder,
55600
- canonicalMentionsInTextOrder: submitResult.canonicalMentionsInTextOrder,
55512
+ mentionsInTextOrder: submitResult.mentionsInTextOrder,
55601
55513
  mentionProfileIndex: input.readModelSeed.getMentionHighlightIndex(),
55602
55514
  allowedProfileIds: membersSnapshot ? listSpaceMemberProfileIds(membersSnapshot) : null
55603
55515
  });
@@ -58586,6 +58498,12 @@ function formatFileSizeLimit() {
58586
58498
  //#region src/space/send.ts
58587
58499
  async function runSend(input) {
58588
58500
  assertDispatchOwnedRuntimePublicWriteAllowed({ commandLabel: "openmeld space send" });
58501
+ const hasRecipients = [
58502
+ input.wakeTargets,
58503
+ input.referenceTargets,
58504
+ input.mentionTargets
58505
+ ].some((targets) => Boolean(targets?.length));
58506
+ if (input.plainText && hasRecipients) throw new Error("--plain cannot be combined with --wake, --reference, or --mention.");
58589
58507
  const runtime = await resolveRuntimeContext({
58590
58508
  profile: input.profile,
58591
58509
  view: input.view
@@ -58619,19 +58537,17 @@ async function runSend(input) {
58619
58537
  value: ""
58620
58538
  } : sanitizeText(input.text);
58621
58539
  if (!text.ok) throw new Error(text.reason);
58622
- assertNoRemovedCcSpaceAddressingSyntax(text.value);
58623
58540
  emitAgentSendProgress({
58624
58541
  presenter,
58625
58542
  resolvedView: runtime.resolvedView,
58626
58543
  stage: "prepare_message",
58627
- summary: input.plainText ? "Preparing message text without Space mention parsing." : "Preparing message text and canonical Space mentions.",
58544
+ summary: "Preparing message text and explicit recipients.",
58628
58545
  spaceId: space
58629
58546
  });
58630
- const { outboundMessageEnvelope, outboundText, resolvedAddressingTargets } = text.value.length === 0 ? {
58631
- outboundMessageEnvelope: void 0,
58632
- outboundText: "",
58633
- resolvedAddressingTargets: []
58634
- } : await resolveOutboundSubmission({
58547
+ const { outboundMessageEnvelope, outboundText, resolvedAddressingTargets } = await resolveOutboundSubmission({
58548
+ wakeTargets: input.wakeTargets,
58549
+ referenceTargets: input.referenceTargets,
58550
+ mentionTargets: input.mentionTargets,
58635
58551
  openMeldProfile,
58636
58552
  password: input.password,
58637
58553
  plainText: input.plainText === true,
@@ -58739,26 +58655,20 @@ async function postReplyIntoThread(input) {
58739
58655
  })).signal;
58740
58656
  }
58741
58657
  async function resolveOutboundSubmission(input) {
58742
- if (input.plainText) return {
58743
- bareMentionDiagnostics: [],
58744
- outboundText: input.text,
58745
- resolvedAddressingTargets: []
58746
- };
58747
- let loadedMembersSnapshot = null;
58748
58658
  const preparedSubmission = await prepareCliSpaceComposerSubmission({
58749
- missingSnapshotMessage: "Cannot validate mention labels right now because current space members could not be loaded.",
58750
- onMembersSnapshotLoaded: (snapshot) => {
58751
- loadedMembersSnapshot = snapshot;
58752
- },
58659
+ wakeTargets: input.wakeTargets,
58660
+ referenceTargets: input.referenceTargets,
58661
+ mentionTargets: input.mentionTargets,
58662
+ missingSnapshotMessage: "Cannot validate recipients because current Space members could not be loaded.",
58753
58663
  onSnapshotLoadFailure: (error) => {
58754
- rethrowCanonicalMentionSnapshotLoadFailure(error);
58664
+ rethrowSpaceAddressingSnapshotLoadFailure(error);
58755
58665
  },
58756
58666
  loadMembersSnapshot: async () => {
58757
58667
  emitAgentSendProgress({
58758
58668
  presenter: input.presenter,
58759
58669
  resolvedView: input.resolvedView,
58760
58670
  stage: "load_members",
58761
- summary: "Loading current Space members to resolve canonical mentions.",
58671
+ summary: "Loading current Space members to validate recipients.",
58762
58672
  spaceId: input.space
58763
58673
  });
58764
58674
  const requestContext = buildOpenMeldRequestContextFromProfile({ openMeldProfile: input.openMeldProfile });
@@ -58770,77 +58680,12 @@ async function resolveOutboundSubmission(input) {
58770
58680
  },
58771
58681
  text: input.text
58772
58682
  });
58773
- const bareMentionDiagnostics = await resolveBareMentionDiagnostics({
58774
- openMeldProfile: input.openMeldProfile,
58775
- loadedMembersSnapshot,
58776
- password: input.password,
58777
- preparedSubmission: preparedSubmission.preparedSubmission,
58778
- presenter: input.presenter,
58779
- resolvedView: input.resolvedView,
58780
- space: input.space,
58781
- spaceApi: input.spaceApi,
58782
- text: input.text
58783
- });
58784
- emitBareMentionDiagnostics({
58785
- diagnostics: bareMentionDiagnostics,
58786
- presenter: input.presenter,
58787
- resolvedView: input.resolvedView
58788
- });
58789
58683
  return {
58790
- bareMentionDiagnostics,
58791
58684
  outboundMessageEnvelope: preparedSubmission.outboundMessageEnvelope,
58792
58685
  outboundText: preparedSubmission.outboundText,
58793
58686
  resolvedAddressingTargets: preparedSubmission.resolvedAddressingTargets
58794
58687
  };
58795
58688
  }
58796
- async function resolveBareMentionDiagnostics(input) {
58797
- if (!input.text.includes("@")) return [];
58798
- const snapshot = input.loadedMembersSnapshot ?? await loadMembersSnapshotForBareMentionDiagnostics(input);
58799
- if (!snapshot) return [];
58800
- return listSpaceBareMentionDiagnostics({
58801
- ignoredRanges: resolveCanonicalMentionDiagnosticIgnoreRanges(input.preparedSubmission),
58802
- snapshot,
58803
- text: input.preparedSubmission.text
58804
- });
58805
- }
58806
- function resolveCanonicalMentionDiagnosticIgnoreRanges(preparedSubmission) {
58807
- const ranges = [];
58808
- let cursor = 0;
58809
- for (const mention of preparedSubmission.canonicalMentionsInTextOrder) {
58810
- const start = preparedSubmission.text.indexOf(mention.text, cursor);
58811
- if (start < 0) continue;
58812
- const end = start + mention.text.length;
58813
- ranges.push({
58814
- end,
58815
- start
58816
- });
58817
- cursor = end;
58818
- }
58819
- return ranges;
58820
- }
58821
- async function loadMembersSnapshotForBareMentionDiagnostics(input) {
58822
- try {
58823
- emitAgentSendProgress({
58824
- presenter: input.presenter,
58825
- resolvedView: input.resolvedView,
58826
- stage: "load_members",
58827
- summary: "Checking whether bare @mentions match Space members.",
58828
- spaceId: input.space
58829
- });
58830
- const requestContext = buildOpenMeldRequestContextFromProfile({ openMeldProfile: input.openMeldProfile });
58831
- return await input.spaceApi.getMembersSnapshot({
58832
- requestContext,
58833
- spaceId: input.space,
58834
- ...input.password === void 0 ? {} : { spacePassword: input.password }
58835
- });
58836
- } catch (error) {
58837
- if (input.resolvedView === "agent") input.presenter.line({
58838
- code: "space.send.bare_mention_check_unavailable",
58839
- text: `bare @mention check unavailable: ${error instanceof Error ? error.message : String(error)}`
58840
- });
58841
- return null;
58842
- }
58843
- }
58844
58689
  function emitSendAddressingSummary(input) {
58845
58690
  if (input.resolvedView !== "agent") return;
58846
58691
  const envelope = input.outboundMessageEnvelope;
@@ -58858,34 +58703,6 @@ function emitSendAddressingSummary(input) {
58858
58703
  }
58859
58704
  });
58860
58705
  }
58861
- function emitBareMentionDiagnostics(input) {
58862
- if (input.diagnostics.length === 0) return;
58863
- const first = input.diagnostics[0];
58864
- if (!first) return;
58865
- const suggestion = first.suggestedWakeText ?? first.suggestedReferenceText ?? first.suggestedMentionText;
58866
- if (!suggestion) return;
58867
- const text = `Bare mention ${first.mentionText} is plain text and does not create a Wake. Use ${suggestion} when you want OpenMeld to address that profile.`;
58868
- if (input.resolvedView === "agent") {
58869
- input.presenter.line({
58870
- code: "space.send.bare_mention_warning",
58871
- text,
58872
- data: { mentions: input.diagnostics.map((diagnostic) => ({
58873
- mentionText: diagnostic.mentionText,
58874
- profileId: diagnostic.profileId,
58875
- profileKind: diagnostic.profileKind,
58876
- profileName: diagnostic.profileName,
58877
- suggestedMentionText: diagnostic.suggestedMentionText,
58878
- suggestedReferenceText: diagnostic.suggestedReferenceText,
58879
- suggestedWakeText: diagnostic.suggestedWakeText
58880
- })) }
58881
- });
58882
- return;
58883
- }
58884
- input.presenter.line({
58885
- code: "space.send.bare_mention_warning",
58886
- text
58887
- });
58888
- }
58889
58706
  function emitAgentSendProgress(input) {
58890
58707
  if (input.resolvedView !== "agent") return;
58891
58708
  input.presenter.line({
@@ -63662,6 +63479,9 @@ async function runSpaceSend(input) {
63662
63479
  }
63663
63480
  try {
63664
63481
  await runSend({
63482
+ wakeTargets: input.wakeTargets,
63483
+ referenceTargets: input.referenceTargets,
63484
+ mentionTargets: input.mentionTargets,
63665
63485
  profile: openMeldProfile.openMeldProfileId,
63666
63486
  baseUrl,
63667
63487
  space: normalizedSpace,
@@ -63838,6 +63658,6 @@ function isHumanInteractiveSpaceRuntime(runtime) {
63838
63658
  return runtime.resolvedView === "human" && canUseInteractivePrompts(runtime);
63839
63659
  }
63840
63660
  //#endregion
63841
- export { runAgentsList as $, isCurrentCommandCheckScopeActive as $n, ensureCommandAuthenticationOrCancel as $t, parseEnvelope as A, resolveLocalAgentControllerReportDecision as An, renderInfoCard as Ar, buildProfileWorkspaceRows as At, resolveHumanControllerDisplayName as B, buildUpdatesReplyWorkflowProjection as Bn, organizationJoinLinkManagementQuerySchema as Br, fetchSpaceMeta as Bt, toSpaceMetaUpsertInput as C, computeRetryDelayMs as Cn, readCodexSessionTitles as Cr, runDaemonRunAfterEntryChecks as Ct, formatHumanReadTargetList as D, collectLocalAgentControllerInventory as Dn, removeProjectOutbox as Dr, runDaemonTeardownStrict as Dt, buildHumanReplyContextSummary as E, submitRuntimeAgentControllerReports as En, readAgentActivityOutboxHealth as Er, runDaemonStop as Et, resolveOpenMeldProfileForSpaceCommand as F, buildDispatchResultReplyWorkflowProjection as Fn, cliJsonSkillsLoadEnvelopeSchema as Fr, runDaemonStartDecisionPrompt as Ft, runAgentsConfig as G, isReturnKeypress as Gn, parseJsonResponse$1 as Gt, resolveAgentProfileSetup as H, formatRemovedCcRelationMessage as Hn, readGatewayJsonResponse as Ht, emitSpaceAgentOverview as I, buildPublicSpaceEntryUrl as In, cliJsonSkillsShowEnvelopeSchema as Ir, runDaemonStartupPreflight as It, runAgentsCustomRemove as J, readDispatchOwnedRuntimeGuard as Jn, resolveDaemonServiceParticipationStatus as Jt, runAgentsCustomAdd as K, runInteractivePrompt as Kn, resolveLocalComponentsStatus as Kt, emitSpaceCliAgentOverview as L, buildSignalIndex as Ln, acceptOrganizationJoinLinkBodySchema as Lr, readDaemonStartFailureLogTailLines as Lt, assertFullSignalIdArgument as M, upsertSpaceConfig as Mn, emitCliJsonEnvelope as Mr, emitDaemonAgentOverview as Mt, assertValidSpaceIdTarget as N, assertNoRemovedCcSpaceAddressingSyntax as Nn, cliJsonOutputEnvelopeSchema as Nr, createDelayedSpinner as Nt, resolveLinkAccessLabel as O, resolveLocalAgentControllerBlockerReasonCodes as On, enqueueControllerTaskLifecycleEventWhileLocked as Or, runDaemonUninstall as Ot, prepareAuthenticatedSpaceCommandContext as P, buildDispatchResultMessageReadProjection as Pn, cliJsonSkillsListEnvelopeSchema as Pr, shouldEmitAgentOverview as Pt, runAgentsEnable as Q, getCurrentCommandCheckState as Qn, buildCommandAuthenticationPromptMessage as Qt, prepareLocalAgentReadiness as R, buildSignalMessageReadProjection as Rn, getOrganizationJoinLinkResponseSchema as Rr, fetchSpaceUpdates as Rt, loadSpaceSignalIndexOrNull as S, assessActionParticipationCandidate as Sn, normalizeSharedSessionTitle as Sr, runDaemonReinstall as St, buildFormalSignalReadPayload as T, submitRuntimeAgentControllerReport as Tn, removeProjectInbox as Tr, runDaemonStatusFlow as Tt, runDaemonServiceParticipationGate as U, promptSearchMultiselect as Un, readGatewayTextResponse as Ut, persistAgentTransportSelection as V, createSpaceMemberIdentityIndex as Vn, revokeOrganizationJoinLinkResponseSchema as Vr, updateSpaceMeta as Vt, runAgents as W, promptSearchSelect as Wn, toStructuredGatewayFailure as Wt, runAgentsDetect as X, writeDispatchSpaceActionRecord as Xn, readRecentDaemonDispatchJournalEvents as Xt, runAgentsCustomUpdate as Y, readDispatchSpaceActionContextFromEnv as Yn, readRuntimeReportingHealthState as Yt, runAgentsDisable as Z, finishCurrentCommandCheckScope as Zn, connectWebSocket as Zt, runSpaceWriteWithPasswordRetry as _, resolveCreateProfileName as _n, syncLocalAgentActivity as _r, runDaemonAutostart as _t, runSpaceDelete as a, exchangeOneTimeTokenAuthSession as an, LocalProjectConnectionError as ar, colorizeDisplayProfileLabel as at, buildIdentityOnlyMembersSnapshotForReadProjection as b, formatServiceParticipationReadinessLabel as bn, buildAgentActivityEvent as br, runDaemonInstall as bt, runSpaceLeave as c, formatActiveOrganizationLabel as cn, registerAgentActivityRoute as cr, renderOpenMeldHeader as ct, runSpaceRemoveMembers as d, requestDeviceToken as dn, AGENT_ACTIVITY_INTEGRATION_OWNER as dr, resolveGatewayWebOrigin as dt, evaluateCommandAuthentication as en, resetCurrentCommandCheckState as er, runAgentsManage as et, runSpaceSend as f, resolveDeviceAuthClientId as fn, defaultManagedIntegrationPaths as fr, resolveSpaceWebGatewayOrigin as ft, runSpaceReadWithPasswordRetry as g, resolveCreateProfileKind as gn, uninstallAgentActivityIntegrations as gr, runDaemon as gt, uploadPreparedSpaceFiles as h, createProfileByKind as hn, resolveAgentActivityDispatcherCommand as hr, isManagedSystemServiceBootstrapRun as ht, runSpaceCreate as i, runAuthStatus as in, renderHumanTextErrorCard as ir, colorizeAgentLabel as it, isSpaceCommandOutputHandledError as j, inspectSpaceCacheFile as jn, renderTextInfoCard as jr, reconcileCliVersionView as jt, resolveOrganizationVisibilityLabel as k, resolveLocalAgentControllerLaunchability as kn, readControllerTaskLifecycleOutboxHealth as kr, buildProfileWorkspacePresentation as kt, runSpaceList as l, extractAuthApiErrorMessage as ln, resolveAgentActivityRouteForPath as lr, renderOpenMeldLogo as lt, prepareRequestedSpaceSendFiles as m, revokeAuthAccessToken as mn, readAgentActivityIntegrationStatus as mr, bestEffortStopCurrentLaneDaemonService as mt, promptAndConfirmSpacePassword as n, runAuthLogout as nn, buildHumanErrorCopy as nr, runAgentsShow as nt, runSpaceHistory as o, buildAuthStatusRows as on, validateLocalProjectConnectionPath as or, printOpenMeldBanner as ot, runSpaceWatch as p, resolveDeviceTokenExpiresAt as pn, installAgentActivityIntegrations as pr, resolveSpaceSendText as pt, runAgentsCustomList as q, assertDispatchOwnedRuntimePublicWriteAllowed as qn, writeInstalledLocalComponentsSnapshot as qt, runSpaceAddMembers as r, runAuthMenu as rn, renderHumanErrorCard as rr, formatTransportModeDisplay as rt, runSpaceJoin as s, buildAuthStatusSnapshot as sn, isAgentActivityRouteRegistered as sr, renderOpenMeldBrandBlockLines as st, buildCreateSpacePasswordPromptConfig as t, runAuthLogin as tn, startCurrentCommandCheckScope as tr, runAgentsRepair as tt, runSpacePassword as u, fetchAuthUserSnapshot as un, unregisterAgentActivityRoute as ur, renderOpenMeldTagline as ut, buildHumanReadSignalsTranscriptItems as v, promptTextEntry as vn, readAgentActivityContextForPath as vr, runDaemonBackgroundStartForDecision as vt, buildFormalDispatchResultReadPayload as w, submitProfileRuntimeAgentControllerReport as wn, enqueueAgentActivityHookEvent as wr, runDaemonSnapshot as wt, loadSpaceIdentityDirectoryOrNull as x, resolveServiceParticipationReadiness as xn, resolveObservedAgentActivityBinding as xr, runDaemonInterrupt as xt, emitHumanReadSignalsTextProjection as y, ensureAgentProfileRuntimeBinding as yn, removeAgentActivityContextCache as yr, runDaemonCancel as yt, buildReplyReadinessGuidance as z, buildSpaceRoundReadProjection as zn, organizationJoinLinkErrorResponseSchema as zr, createCliSpaceApi as zt };
63661
+ export { runAgentsDisable as $, resetCurrentCommandCheckState as $n, ensureCommandAuthenticationOrCancel as $t, parseEnvelope as A, resolveLocalAgentControllerReportDecision as An, renderTextInfoCard as Ar, buildProfileWorkspaceRows as At, resolveSpaceWebGatewayOrigin as B, createSpaceMemberIdentityIndex as Bn, revokeOrganizationJoinLinkResponseSchema as Br, fetchSpaceMeta as Bt, toSpaceMetaUpsertInput as C, computeRetryDelayMs as Cn, enqueueAgentActivityHookEvent as Cr, runDaemonRunAfterEntryChecks as Ct, formatHumanReadTargetList as D, collectLocalAgentControllerInventory as Dn, enqueueControllerTaskLifecycleEventWhileLocked as Dr, runDaemonTeardownStrict as Dt, buildHumanReplyContextSummary as E, submitRuntimeAgentControllerReports as En, removeProjectOutbox as Er, runDaemonStop as Et, resolveOpenMeldProfileForSpaceCommand as F, buildPublicSpaceEntryUrl as Fn, cliJsonSkillsShowEnvelopeSchema as Fr, runDaemonStartDecisionPrompt as Ft, runDaemonServiceParticipationGate as G, runInteractivePrompt as Gn, parseJsonResponse$1 as Gt, resolveHumanControllerDisplayName as H, promptSearchMultiselect as Hn, readGatewayJsonResponse as Ht, emitSpaceAgentOverview as I, buildSignalIndex as In, acceptOrganizationJoinLinkBodySchema as Ir, runDaemonStartupPreflight as It, runAgentsCustomAdd as J, readDispatchSpaceActionContextFromEnv as Jn, resolveDaemonServiceParticipationStatus as Jt, runAgents as K, assertDispatchOwnedRuntimePublicWriteAllowed as Kn, resolveLocalComponentsStatus as Kt, emitSpaceCliAgentOverview as L, buildSignalMessageReadProjection as Ln, getOrganizationJoinLinkResponseSchema as Lr, readDaemonStartFailureLogTailLines as Lt, assertFullSignalIdArgument as M, upsertSpaceConfig as Mn, cliJsonOutputEnvelopeSchema as Mr, emitDaemonAgentOverview as Mt, assertValidSpaceIdTarget as N, buildDispatchResultMessageReadProjection as Nn, cliJsonSkillsListEnvelopeSchema as Nr, createDelayedSpinner as Nt, resolveLinkAccessLabel as O, resolveLocalAgentControllerBlockerReasonCodes as On, readControllerTaskLifecycleOutboxHealth as Or, runDaemonUninstall as Ot, prepareAuthenticatedSpaceCommandContext as P, buildDispatchResultReplyWorkflowProjection as Pn, cliJsonSkillsLoadEnvelopeSchema as Pr, shouldEmitAgentOverview as Pt, runAgentsDetect as Q, isCurrentCommandCheckScopeActive as Qn, buildCommandAuthenticationPromptMessage as Qt, prepareLocalAgentReadiness as R, buildSpaceRoundReadProjection as Rn, organizationJoinLinkErrorResponseSchema as Rr, fetchSpaceUpdates as Rt, loadSpaceSignalIndexOrNull as S, assessActionParticipationCandidate as Sn, readCodexSessionTitles as Sr, runDaemonReinstall as St, buildFormalSignalReadPayload as T, submitRuntimeAgentControllerReport as Tn, readAgentActivityOutboxHealth as Tr, runDaemonStatusFlow as Tt, persistAgentTransportSelection as U, promptSearchSelect as Un, readGatewayTextResponse as Ut, buildReplyReadinessGuidance as V, formatRemovedCcRelationMessage as Vn, updateSpaceMeta as Vt, resolveAgentProfileSetup as W, isReturnKeypress as Wn, toStructuredGatewayFailure as Wt, runAgentsCustomRemove as X, finishCurrentCommandCheckScope as Xn, readRecentDaemonDispatchJournalEvents as Xt, runAgentsCustomList as Y, writeDispatchSpaceActionRecord as Yn, readRuntimeReportingHealthState as Yt, runAgentsCustomUpdate as Z, getCurrentCommandCheckState as Zn, connectWebSocket as Zt, runSpaceWriteWithPasswordRetry as _, resolveCreateProfileName as _n, readAgentActivityContextForPath as _r, runDaemonAutostart as _t, runSpaceDelete as a, exchangeOneTimeTokenAuthSession as an, validateLocalProjectConnectionPath as ar, formatTransportModeDisplay as at, buildIdentityOnlyMembersSnapshotForReadProjection as b, formatServiceParticipationReadinessLabel as bn, resolveObservedAgentActivityBinding as br, runDaemonInstall as bt, runSpaceLeave as c, formatActiveOrganizationLabel as cn, resolveAgentActivityRouteForPath as cr, printOpenMeldBanner as ct, runSpaceRemoveMembers as d, requestDeviceToken as dn, defaultManagedIntegrationPaths as dr, renderOpenMeldLogo as dt, evaluateCommandAuthentication as en, startCurrentCommandCheckScope as er, runAgentsEnable as et, runSpaceSend as f, resolveDeviceAuthClientId as fn, installAgentActivityIntegrations as fr, renderOpenMeldTagline as ft, runSpaceReadWithPasswordRetry as g, resolveCreateProfileKind as gn, syncLocalAgentActivity as gr, runDaemon as gt, uploadPreparedSpaceFiles as h, createProfileByKind as hn, uninstallAgentActivityIntegrations as hr, isManagedSystemServiceBootstrapRun as ht, runSpaceCreate as i, runAuthStatus as in, LocalProjectConnectionError as ir, runAgentsShow as it, isSpaceCommandOutputHandledError as j, inspectSpaceCacheFile as jn, emitCliJsonEnvelope as jr, reconcileCliVersionView as jt, resolveOrganizationVisibilityLabel as k, resolveLocalAgentControllerLaunchability as kn, renderInfoCard as kr, buildProfileWorkspacePresentation as kt, runSpaceList as l, extractAuthApiErrorMessage as ln, unregisterAgentActivityRoute as lr, renderOpenMeldBrandBlockLines as lt, prepareRequestedSpaceSendFiles as m, revokeAuthAccessToken as mn, resolveAgentActivityDispatcherCommand as mr, bestEffortStopCurrentLaneDaemonService as mt, promptAndConfirmSpacePassword as n, runAuthLogout as nn, renderHumanErrorCard as nr, runAgentsManage as nt, runSpaceHistory as o, buildAuthStatusRows as on, isAgentActivityRouteRegistered as or, colorizeAgentLabel as ot, runSpaceWatch as p, resolveDeviceTokenExpiresAt as pn, readAgentActivityIntegrationStatus as pr, resolveSpaceSendText as pt, runAgentsConfig as q, readDispatchOwnedRuntimeGuard as qn, writeInstalledLocalComponentsSnapshot as qt, runSpaceAddMembers as r, runAuthMenu as rn, renderHumanTextErrorCard as rr, runAgentsRepair as rt, runSpaceJoin as s, buildAuthStatusSnapshot as sn, registerAgentActivityRoute as sr, colorizeDisplayProfileLabel as st, buildCreateSpacePasswordPromptConfig as t, runAuthLogin as tn, buildHumanErrorCopy as tr, runAgentsList as tt, runSpacePassword as u, fetchAuthUserSnapshot as un, AGENT_ACTIVITY_INTEGRATION_OWNER as ur, renderOpenMeldHeader as ut, buildHumanReadSignalsTranscriptItems as v, promptTextEntry as vn, removeAgentActivityContextCache as vr, runDaemonBackgroundStartForDecision as vt, buildFormalDispatchResultReadPayload as w, submitProfileRuntimeAgentControllerReport as wn, removeProjectInbox as wr, runDaemonSnapshot as wt, loadSpaceIdentityDirectoryOrNull as x, resolveServiceParticipationReadiness as xn, normalizeSharedSessionTitle as xr, runDaemonInterrupt as xt, emitHumanReadSignalsTextProjection as y, ensureAgentProfileRuntimeBinding as yn, buildAgentActivityEvent as yr, runDaemonCancel as yt, resolveGatewayWebOrigin as z, buildUpdatesReplyWorkflowProjection as zn, organizationJoinLinkManagementQuerySchema as zr, createCliSpaceApi as zt };
63842
63662
 
63843
- //# sourceMappingURL=command-BQ-RvGrL.js.map
63663
+ //# sourceMappingURL=command-CdMfJRAB.js.map