openmeld 0.3.244 → 0.3.247
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-me-membership-CWS97GK8.js → add-me-membership-DUeJA9q4.js} +2 -2
- package/dist/{add-me-membership-CWS97GK8.js.map → add-me-membership-DUeJA9q4.js.map} +1 -1
- package/dist/{agents-BoapsuRq.js → agents-woAcH0O6.js} +10 -10
- package/dist/{agents-BoapsuRq.js.map → agents-woAcH0O6.js.map} +1 -1
- package/dist/{api-client-foundation-BYTxVhem.js → api-client-foundation-DMEfIARh.js} +3 -3
- package/dist/{api-client-foundation-BYTxVhem.js.map → api-client-foundation-DMEfIARh.js.map} +1 -1
- package/dist/{api-client-foundation-DDdQCc2T.js → api-client-foundation-mqLjUunz.js} +1 -1
- package/dist/{auth-session-CpKxiYC2.js → auth-session-D7hlE-47.js} +3 -3
- package/dist/{auth-session-CpKxiYC2.js.map → auth-session-D7hlE-47.js.map} +1 -1
- package/dist/auth-session-DXxmGll1.js +4 -0
- package/dist/{channel-BXovlRXN.js → channel-BeUv2bLR.js} +4 -4
- package/dist/{channel-BXovlRXN.js.map → channel-BeUv2bLR.js.map} +1 -1
- package/dist/{cli-binary-manifest-ETxqCzfS.js → cli-binary-manifest-ChuzORh3.js} +2 -2
- package/dist/{cli-binary-manifest-ETxqCzfS.js.map → cli-binary-manifest-ChuzORh3.js.map} +1 -1
- package/dist/{cloud-computer-D2VuZov1.js → cloud-computer-C81_vVOV.js} +4 -4
- package/dist/{cloud-computer-D2VuZov1.js.map → cloud-computer-C81_vVOV.js.map} +1 -1
- package/dist/{command-BZvpjGWe.js → command-qNknO9gl.js} +16 -16
- package/dist/{command-BZvpjGWe.js.map → command-qNknO9gl.js.map} +1 -1
- package/dist/{computer-connection-Cd5R-jnA.js → computer-connection-WpsIQfkh.js} +2 -2
- package/dist/{computer-connection-Cd5R-jnA.js.map → computer-connection-WpsIQfkh.js.map} +1 -1
- package/dist/{computer-connection-review-lBDHLC0c.js → computer-connection-review-Df2G8VWY.js} +5 -5
- package/dist/{computer-connection-review-lBDHLC0c.js.map → computer-connection-review-Df2G8VWY.js.map} +1 -1
- package/dist/{computer-disconnect-C6OH3940.js → computer-disconnect-ttAH9WgN.js} +7 -7
- package/dist/{computer-disconnect-C6OH3940.js.map → computer-disconnect-ttAH9WgN.js.map} +1 -1
- package/dist/{computer-setup-continuation-BsSM1pzW.js → computer-setup-continuation-tbuUZSe5.js} +3 -3
- package/dist/{computer-setup-continuation-BsSM1pzW.js.map → computer-setup-continuation-tbuUZSe5.js.map} +1 -1
- package/dist/{context-BbodhIFX.js → context-x0T_qTHp.js} +4 -4
- package/dist/{context-BbodhIFX.js.map → context-x0T_qTHp.js.map} +1 -1
- package/dist/{control-plane-TOfZ-veG.js → control-plane-B93wmVS6.js} +2 -2
- package/dist/{control-plane-TOfZ-veG.js.map → control-plane-B93wmVS6.js.map} +1 -1
- package/dist/{daemon-device-id-DwMFWGI5.js → daemon-device-id-DgwvQllt.js} +5 -5
- package/dist/{daemon-device-id-DwMFWGI5.js.map → daemon-device-id-DgwvQllt.js.map} +1 -1
- package/dist/{daemon-lifecycle-journal-NJaimyPD.js → daemon-lifecycle-journal-C32I8p4n.js} +7 -6
- package/dist/{daemon-lifecycle-journal-NJaimyPD.js.map → daemon-lifecycle-journal-C32I8p4n.js.map} +1 -1
- package/dist/{daemon-service-runtime-COC1JtWX.js → daemon-service-runtime-DVqzJKke.js} +4 -4
- package/dist/{daemon-service-runtime-COC1JtWX.js.map → daemon-service-runtime-DVqzJKke.js.map} +1 -1
- package/dist/{daemon-service-update-coordinator-BmZHGGiO.js → daemon-service-update-coordinator-BTlVzU-7.js} +17 -17
- package/dist/daemon-service-update-coordinator-BTlVzU-7.js.map +1 -0
- package/dist/{dispatch-owned-runtime-dLHDTL7f.js → dispatch-owned-runtime-g2lLeYtx.js} +211 -65
- package/dist/dispatch-owned-runtime-g2lLeYtx.js.map +1 -0
- package/dist/dist-CXB_bdSS.js +4 -0
- package/dist/{dist-Cu_yzOuS.js → dist-DGeoVaIx.js} +521 -288
- package/dist/dist-DGeoVaIx.js.map +1 -0
- package/dist/{dual-view-guide-catalog-8Pr5QO_z.js → dual-view-guide-catalog-CkcY09Kh.js} +4 -4
- package/dist/{dual-view-guide-catalog-8Pr5QO_z.js.map → dual-view-guide-catalog-CkcY09Kh.js.map} +1 -1
- package/dist/{elapsed-time-DCufUrLA.js → elapsed-time-BMG1CU23.js} +4 -4
- package/dist/{elapsed-time-DCufUrLA.js.map → elapsed-time-BMG1CU23.js.map} +1 -1
- package/dist/{entry-CJ289WR7.js → entry-CP7_Vgs4.js} +7 -7
- package/dist/{entry-CJ289WR7.js.map → entry-CP7_Vgs4.js.map} +1 -1
- package/dist/{installation-inventory-dvcGmUBg.js → installation-inventory-7JOtUjyG.js} +3 -3
- package/dist/{installation-inventory-dvcGmUBg.js.map → installation-inventory-7JOtUjyG.js.map} +1 -1
- package/dist/{installer-D0fh4fzg.js → installer-BRpAz1X_.js} +2 -2
- package/dist/{installer-D0fh4fzg.js.map → installer-BRpAz1X_.js.map} +1 -1
- package/dist/{local-components-DJiMS67S.js → local-components-jXECvlEY.js} +3 -2
- package/dist/local-components-jXECvlEY.js.map +1 -0
- package/dist/{meta-api-BdH7IJMv.js → meta-api-QskBmfuf.js} +5 -5
- package/dist/{meta-api-BdH7IJMv.js.map → meta-api-QskBmfuf.js.map} +1 -1
- package/dist/{open-code-permission-DHFJYc_o.js → open-code-permission-B5f1e5an.js} +2 -31
- package/dist/open-code-permission-B5f1e5an.js.map +1 -0
- package/dist/{openmeld-DQPDws0E.js → openmeld-BxTCCHMn.js} +224 -69
- package/dist/openmeld-BxTCCHMn.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-ALfbSMyQ.js → openmeld-maintenance-worker-BQ2YbwA9.js} +9 -9
- package/dist/{openmeld-maintenance-worker-ALfbSMyQ.js.map → openmeld-maintenance-worker-BQ2YbwA9.js.map} +1 -1
- package/dist/{openmeld-tools-update-join-Cezc7ARc.js → openmeld-tools-update-join-Dj-MEQW_.js} +4 -4
- package/dist/{openmeld-tools-update-join-Cezc7ARc.js.map → openmeld-tools-update-join-Dj-MEQW_.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-YLOS82E3.js → openmeld-tools-update-process-frame-BtYOlJXu.js} +2 -2
- package/dist/{openmeld-tools-update-process-frame-YLOS82E3.js.map → openmeld-tools-update-process-frame-BtYOlJXu.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-Csy2XKUf.js → openmeld-tools-update-process-frame-CINV6Qt3.js} +1 -1
- package/dist/openmeld.js +5 -5
- package/dist/{prepare-provider-runtime-Cko0dLXN.js → prepare-provider-runtime-B6_dfpiZ.js} +1679 -1018
- package/dist/prepare-provider-runtime-B6_dfpiZ.js.map +1 -0
- package/dist/{prepare-session-executor-B-TWlSSd.js → prepare-session-executor-DA9saGAk.js} +19 -19
- package/dist/{prepare-session-executor-B-TWlSSd.js.map → prepare-session-executor-DA9saGAk.js.map} +1 -1
- package/dist/{process-channel-z_4u04-k.js → process-channel-HthE5ehS.js} +2 -2
- package/dist/{process-channel-z_4u04-k.js.map → process-channel-HthE5ehS.js.map} +1 -1
- package/dist/{runtime-C6SS6jm6.js → runtime-C7lY_Z2r.js} +104 -21
- package/dist/{runtime-C6SS6jm6.js.map → runtime-C7lY_Z2r.js.map} +1 -1
- package/dist/{runtime-agent-controller-reporting-submission-Cyb5OuVp.js → runtime-agent-controller-reporting-submission-IhxMO4UA.js} +80 -19
- package/dist/runtime-agent-controller-reporting-submission-IhxMO4UA.js.map +1 -0
- package/dist/{runtime-transport-DYbpUYBL.js → runtime-transport-DRb5__yP.js} +214 -37
- package/dist/runtime-transport-DRb5__yP.js.map +1 -0
- package/dist/{service-DjqXdt6p.js → service-DveGEdh3.js} +315 -24
- package/dist/service-DveGEdh3.js.map +1 -0
- package/dist/{service-account-authorization-BZFLy1E7.js → service-account-authorization-CAVkiKSF.js} +2 -2
- package/dist/{service-account-authorization-BZFLy1E7.js.map → service-account-authorization-CAVkiKSF.js.map} +1 -1
- package/dist/{service-account-control-CsXtCjRi.js → service-account-control-BtE73wcO.js} +9 -9
- package/dist/{service-account-control-CsXtCjRi.js.map → service-account-control-BtE73wcO.js.map} +1 -1
- package/dist/{service-control-capabilities-Ck-KcBXg.js → service-control-capabilities-BQrqIGBP.js} +3 -3
- package/dist/{service-control-capabilities-Ck-KcBXg.js.map → service-control-capabilities-BQrqIGBP.js.map} +1 -1
- package/dist/{service-control-capabilities-C4SOrFHN.js → service-control-capabilities-adDptMIH.js} +1 -1
- package/dist/{state-BmiyrHe4.js → state-DWwNdCy5.js} +2 -2
- package/dist/{state-BmiyrHe4.js.map → state-DWwNdCy5.js.map} +1 -1
- package/dist/{updates-api-DD3p5dx5.js → updates-api-9midbUU1.js} +71 -167
- package/dist/updates-api-9midbUU1.js.map +1 -0
- package/dist/upgrade-BvpBhL0U.js +4 -0
- package/dist/{upgrade-DIt6nkyo.js → upgrade-H-_QW75e.js} +9 -9
- package/dist/{upgrade-DIt6nkyo.js.map → upgrade-H-_QW75e.js.map} +1 -1
- package/package.json +13 -12
- package/skills/openmeld-cli/SKILL.md +5 -2
- package/skills/openmeld-cli/playbooks/computer.md +55 -0
- package/skills/openmeld-cli/playbooks/plugins.md +37 -0
- package/skills/openmeld-cli/references/commands.md +20 -0
- package/dist/auth-session-EhHX7q2K.js +0 -4
- package/dist/daemon-service-update-coordinator-BmZHGGiO.js.map +0 -1
- package/dist/dispatch-owned-runtime-dLHDTL7f.js.map +0 -1
- package/dist/dist-BDix0nxy.js +0 -4
- package/dist/dist-Cu_yzOuS.js.map +0 -1
- package/dist/local-components-DJiMS67S.js.map +0 -1
- package/dist/open-code-permission-DHFJYc_o.js.map +0 -1
- package/dist/openmeld-DQPDws0E.js.map +0 -1
- package/dist/prepare-provider-runtime-Cko0dLXN.js.map +0 -1
- package/dist/runtime-agent-controller-reporting-submission-Cyb5OuVp.js.map +0 -1
- package/dist/runtime-transport-DYbpUYBL.js.map +0 -1
- package/dist/service-DjqXdt6p.js.map +0 -1
- package/dist/updates-api-DD3p5dx5.js.map +0 -1
- package/dist/upgrade-3z755G8g.js +0 -4
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { Ar as
|
|
3
|
+
import { Ar as resolveAgentExecutionStatus, At as ensureOpenMeldManagedProfileWorkspace, C as createModelCatalogReadSession, Cr as parseAgentControllerRef, E as resolveProfileWorkspaceRuntime, Et as listBuiltinAgentsRegistryEntries, I as listAgentTargetStates, It as setCustomProfileWorkspace, K as notifyDaemonRouteCatalogChanged, Lt as setOpenMeldManagedProfileWorkspace, Mr as resolveEvidenceSyncHealth, Mt as readProfileWorkspaceConfig, Nr as resolveNativeAgentControllerPermissionModeForController, O as syncDeviceRuntimeStateProjection, Pt as resolveConfiguredProfileWorkspacePath, Q as resolveLocalRegistryAgentIdFromAgentControllerRef, Rt as validateCustomProfileWorkspacePath, S as syncProfileWorkspaceState, Sr as listAgentControllerPermissionModeOptions, St as canonicalizeLocalProjectPath, Tr as projectPeopleComputersToLegacyLocalRuntimes, Wr as compareAgentControllerRefsForDisplay, _r as getAgentControllerPermissionModeDisplayMetadata, _t as removeProjectConnection, bt as setDefaultProjectConnection, ft as listProjectBindings, hr as createAgentExecutionStatusDisplayRows, j as resolveAgentProfilePrimaryAgentControllerReport, jr as resolveAgentProfileEditCapabilities, jt as normalizeCustomProfileWorkspacePath, k as createPrimaryBindingReadSession, kr as resolveAgentControllerPermissionModeForController, mt as migrateProjectBindingStore, pt as listProjectConnectionsWithStatus, ut as bindProject, vr as getAgentControllerPermissionModeFieldLabel, wr as peopleComputerContainsDevice, xt as unbindProject, yt as runIfAgentActivityBindingGenerationIsCurrent, zt as describeProfileWorkspacePathValidationFailure } from "./prepare-provider-runtime-B6_dfpiZ.js";
|
|
4
4
|
import { c as toSpaceDispatchLookupUrl, h as toSpaceResultUrl, i as toSpaceContractUrl, l as toSpaceDispatchTraceUrl, r as toSpaceBoardUrl, t as normalizeBaseUrl } from "./urls-CY2uzH2-.js";
|
|
5
5
|
import { A as profileDir, D as openMeldRootDir, F as resolveOpenMeldRootDir, H as spacesDir, N as resolveOpenMeldCliEntryNameFromArgv, P as resolveOpenMeldEnvPreset, S as openMeldBinDir, U as systemDir, V as skillsDir, i as accountProfileViewPath, j as profileViewPath, o as accountsDir, r as accountProfileSpaceCacheDir, x as openMeldBackupsDir, y as normalizeAccountKey } from "./paths-De9xdA2h.js";
|
|
6
6
|
import { r as resolveAuthBaseUrl } from "./auth-url-6Bb6YdNm.js";
|
|
7
|
-
import { $n as
|
|
8
|
-
import { L as nonEmptyTrimmedStringFromUnknown, O as openMeldRuntimeProfileIdSchema, w as dispatchExecutionSchema, z as trimmedStringFromUnknown } from "./control-plane-
|
|
9
|
-
import {
|
|
7
|
+
import { $n as clientMessageIdSchema, Cn as messageEnvelopeSchema, Gt as spaceStatusSchema, Ji as openMeldProfileIdSchema, Kt as centerAgentInteractionSourceSchema, Lr as START_TRIMMED_NON_EMPTY_STRING_SCHEMA, Pr as START_BOUNDED_ID_SCHEMA, Qt as spaceWorkingCopyResultSchema, Yi as openMeldRequestContextSchema, Yn as agentInteractionResponseSchema, Yt as spaceWorkHandoffSchema, Zt as spaceWorkSelectionSchema, an as spaceThreadContextSchema, fi as resolveSpaceFileMimeType, ir as runtimeTransportAdmissionEvidenceSchema, ln as spaceContractFieldsSchema, ni as SPACE_FILE_MAX_SIZE_BYTES, ri as SPACE_FILE_RAW_UPLOAD_MAX_BYTES, si as isSpaceFileTextEditable, un as spaceContractSchema } from "./runtime-transport-DRb5__yP.js";
|
|
8
|
+
import { L as nonEmptyTrimmedStringFromUnknown, O as openMeldRuntimeProfileIdSchema, w as dispatchExecutionSchema, z as trimmedStringFromUnknown } from "./control-plane-B93wmVS6.js";
|
|
9
|
+
import { $r as observabilityWakeTraceSelectorSchema, Ai as localAgentSessionProviderSchema, Br as sessionHistoryReadSchema, Ci as projectOwnerComputerLocalRuntimes, Cr as DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION, Di as agentActivityInventorySessionStatusSchema, Ei as agentActivityInventorySessionOriginSchema, Jr as resolveRuntimeCoordinatorHeadStatusRootCause, Jt as createFeedbackApi, Kr as SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER, Kt as createCurrentDeviceApi, Lt as createAgentActivityApi, Mn as postSpaceWorkHandoff, Nr as submitFeedbackIssueRequestSchema, Oi as agentActivitySessionInventoryQuerySchema, Qi as agentActivitySnapshotQuerySchema, Qr as spaceDispatchTraceResponseSchema, Rt as createAgentProfileBindingApi, Si as ownerComputerDiagnosticsSchema, Tr as createAgentProfileCreationRequestBodySchema, Un as toStructuredApiClientFailure, Ur as sessionHistoryResultSchema, Vt as createCenterAgentApi, Wi as routineScopeSchema, Wt as createComputerFileAccessApi, Xi as agentActivityProviderSchema, Xr as spaceDispatchTraceAttemptStatusSchema, Xt as createFileRootApi, Yr as resolveSpaceDispatchTraceRootCause, Zi as agentActivitySessionStatusSchema, Zr as spaceDispatchTraceDispatchStatusSchema, ar as OPENMELD_HEADER_PROFILE_ID, cr as OPENMELD_HEADER_SPACE_ADDRESSING_VERSION, ei as projectObservabilityWakeCorrelation, fn as createRoutinesApi, hi as resolvedSpaceMemberProfileSchema, hn as createSessionHistoryApi, hr as pluginActionRequestSchema, in as createOrganizationSkillsApi, ni as ORGANIZATION_SKILL_FILE_MAX_BYTES, nn as createOrganizationApi, oi as organizationSkillFileSchema, on as createPluginsApi, pr as spaceEntryTargetSchema, qr as projectSpaceDispatchTraceFinalVisibleOutcome, sn as createPrepareReadinessApi, ti as ORGANIZATION_SKILL_BUNDLE_MAX_BYTES, un as createProjectsApi, wi as summarizeComputerFileAccessPolicy, wr as agentProfileCreationConfigurationSchema, zt as createAgentProfileExecutionModeApi } from "./dist-DGeoVaIx.js";
|
|
10
10
|
import { c as agentControllerConversationRefSchema } from "./controller-contract-DAOCaefz.js";
|
|
11
|
-
import { C as updateAuthSessionActiveOrganization, E as runMacOsNativeKeychainHelperIfRequested, a as beginAuthSessionTransition, d as getAuthSessionState, f as getCurrentAuthOwnerUserId, g as normalizeStoredActiveOrganization, n as AuthSessionRecoveryInProgressError, o as buildStoredAuthSessionIdentity, s as clearAuthSession, t as AuthSessionChangedBeforeTransitionError, u as getAuthSessionMetadata } from "./auth-session-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
11
|
+
import { C as updateAuthSessionActiveOrganization, E as runMacOsNativeKeychainHelperIfRequested, a as beginAuthSessionTransition, d as getAuthSessionState, f as getCurrentAuthOwnerUserId, g as normalizeStoredActiveOrganization, n as AuthSessionRecoveryInProgressError, o as buildStoredAuthSessionIdentity, s as clearAuthSession, t as AuthSessionChangedBeforeTransitionError, u as getAuthSessionMetadata } from "./auth-session-D7hlE-47.js";
|
|
12
|
+
import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
|
|
13
|
+
import { t as computerConnectionIntentSchema } from "./computer-connection-WpsIQfkh.js";
|
|
14
|
+
import { d as readSelectedSkillDocument, r as ensureLocalSkills } from "./state-DWwNdCy5.js";
|
|
15
|
+
import { $ as buildAuthStatusSnapshot, B as resolveDaemonServiceParticipationStatus, C as buildProfileWorkspaceRows, E as emitDaemonAgentOverview, F as emitCliJsonEnvelope, G as ensureCommandAuthenticationOrCancel, H as validateLocalProjectConnectionPath, I as runDaemonStartupPreflight, J as runAuthLogout, K as evaluateCommandAuthentication, M as buildHumanErrorCopy, N as renderHumanErrorCard, O as shouldEmitAgentOverview, P as renderHumanTextErrorCard, Q as buildAuthStatusRows, R as resolveLocalComponentsStatus, S as buildProfileWorkspacePresentation, V as LocalProjectConnectionError, W as buildCommandAuthenticationPromptMessage, X as runAuthStatus, Y as runAuthMenu, Z as exchangeOneTimeTokenAuthSession, a as runDaemonBackgroundStartForDecision, at as promptTextEntry, c as runDaemonInterrupt, ct as finishCurrentCommandCheckScope, dt as resetCurrentCommandCheckState, et as formatActiveOrganizationLabel, f as runDaemonSnapshot, ft as startCurrentCommandCheckScope, g as runDaemonUninstall, h as runDaemonTeardownStrict, i as runDaemonAutostart, j as runDaemonStartDecisionPrompt, l as runDaemonReinstall, lt as getCurrentCommandCheckState, m as runDaemonStop, n as isManagedSystemServiceBootstrapRun, nt as renderInfoCard, o as runDaemonCancel, ot as isReturnKeypress, p as runDaemonStatusFlow, q as runAuthLogin, r as runDaemon, rt as renderTextInfoCard, s as runDaemonInstall, st as runInteractivePrompt, t as bestEffortStopCurrentLaneDaemonService, u as runDaemonRunAfterEntryChecks, ut as isCurrentCommandCheckScopeActive, w as reconcileCliVersionView, x as resolveServiceParticipationReadiness, y as formatServiceParticipationReadinessLabel, z as writeInstalledLocalComponentsSnapshot } from "./service-DveGEdh3.js";
|
|
16
|
+
import { A as removeProjectInbox, At as buildDispatchResultReplyWorkflowProjection, Bt as buildSpaceRoundReadProjection, Cn as cliJsonSkillsShowEnvelopeSchema, D as readCodexSessionTitles, Dn as organizationJoinLinkManagementQuerySchema, E as normalizeSharedSessionTitle, En as organizationJoinLinkErrorResponseSchema, Ht as buildUpdatesReplyWorkflowProjection, I as removeProjectOutbox, Kt as createSpaceMemberIdentityIndex, Mt as buildPublicSpaceEntryUrl, Nt as buildSignalIndex, On as revokeOrganizationJoinLinkResponseSchema, P as readAgentActivityOutboxHealth, Pt as buildSignalMessageReadProjection, Q as readRecentDaemonDispatchJournalEvents, Sn as cliJsonSkillsScanEnvelopeSchema, T as resolveObservedAgentActivityBinding, Tn as getOrganizationJoinLinkResponseSchema, Tt as upsertSpaceConfig, Xt as formatRemovedCcRelationMessage, _n as cliJsonSkillsAddAllEnvelopeSchema, bn as cliJsonSkillsListEnvelopeSchema, gn as cliJsonOutputEnvelopeSchema, i as readDispatchOwnedRuntimeGuard, k as enqueueAgentActivityHookEvent, kt as buildDispatchResultMessageReadProjection, mt as inspectSpaceCacheFile, t as assertDispatchOwnedRuntimePublicWriteAllowed, u as readDispatchSpaceActionContextFromEnv, vn as cliJsonSkillsAddEnvelopeSchema, w as buildAgentActivityEvent, wn as acceptOrganizationJoinLinkBodySchema, xn as cliJsonSkillsLoadEnvelopeSchema, yn as cliJsonSkillsAddPreviewEnvelopeSchema } from "./dispatch-owned-runtime-g2lLeYtx.js";
|
|
17
|
+
import { c as toStructuredGatewayFailure, d as resolveSpaceTaskSelection, l as parseJsonResponse, m as createCliSpaceApi, n as updateSpaceMeta, o as readGatewayJsonResponse, s as readGatewayTextResponse, t as fetchSpaceMeta, u as resolveSpaceSendText } from "./meta-api-QskBmfuf.js";
|
|
18
|
+
import { A as readAgentActivityContextForPath, B as installAgentActivityIntegrations, D as syncLocalAgentActivity, F as registerAgentActivityRoute, H as resolveAgentActivityDispatcherCommand, I as resolveAgentActivityRouteForPath, L as unregisterAgentActivityRoute, M as enqueueControllerTaskLifecycleEventWhileLocked, N as readControllerTaskLifecycleOutboxHealth, P as isAgentActivityRouteRegistered, U as uninstallAgentActivityIntegrations, V as readAgentActivityIntegrationStatus, c as runDirectMessage, d as runSpaceActionSilent, f as runSpaceActionStatus, i as materializeOrganizationSkillRelease, j as removeAgentActivityContextCache, l as runSpaceActionHelp, m as runSpaceActionWake, n as createSpaceWorkingCopies, o as runSpaceActionMcpServer, p as runSpaceActionTargets, r as downloadWorkingCopyFile, t as fetchSpaceUpdates, u as runSpaceActionReply, x as readRuntimeReportingHealthState, z as defaultManagedIntegrationPaths } from "./updates-api-9midbUU1.js";
|
|
19
|
+
import { G as readManagedCliInstallation, H as buildInstallSelfJsonPayload, U as performManagedInstall, r as readCurrentDaemonRuntimeContext } from "./daemon-service-runtime-DVqzJKke.js";
|
|
19
20
|
import { a as activateWindowsManagedCommand } from "./process-identity-BRbhGGTM.js";
|
|
20
|
-
import { A as formatDeviceReplyReadinessLabel, B as resolveGatewayChainReadiness, Bt as readCurrentLocalDeviceId, Ft as resolveCurrentDaemonExpectedVersion, Ht as isCliUpdateCheckApplicable, J as getSetupFlowCopy, K as buildDaemonRouteObservationPresentation$1, Lt as assessServerRequiredVersion, N as mapAgentReplyReadinessToLegacyAutoReply, Nt as classifyDaemonServiceRunStartability, O as resolveCurrentReplyReadinessSnapshot, Pt as classifyDaemonServiceWakeability, T as resolveDaemonServiceFreshnessWarning, U as resolveOpenClawLocalDiagnosticsValue, Vt as assessCliUpdate, _ as resolveServiceReadinessFromServiceStatus, j as formatHumanReplyReadinessReason$1, k as formatAgentReplyReadinessLabel, pt as inspectDaemonServiceInventory, q as buildOnboardingPlan, t as runPendingDaemonServiceUpdate } from "./daemon-service-update-coordinator-
|
|
21
|
-
import { A as assertFullSignalIdArgument, B as resolveAgentProfileSetup, C as buildFormalSignalReadPayload, D as resolveOrganizationVisibilityLabel, E as resolveLinkAccessLabel, F as emitSpaceCliAgentOverview, G as renderOpenMeldHeader, H as colorizeDisplayProfileLabel, I as prepareLocalAgentReadiness, J as createProfileByKind, K as renderOpenMeldLogo, L as buildReplyReadinessGuidance, M as prepareAuthenticatedSpaceCommandContext, N as resolveOpenMeldProfileForSpaceCommand, O as parseEnvelope, P as emitSpaceAgentOverview, Q as assessActionParticipationCandidate, R as resolveHumanControllerDisplayName, S as buildFormalDispatchResultReadPayload, T as formatHumanReadTargetList, U as printOpenMeldBanner, V as colorizeAgentLabel, W as renderOpenMeldBrandBlockLines, X as resolveCreateProfileName, Y as resolveCreateProfileKind, Z as ensureAgentProfileRuntimeBinding, _ as emitHumanReadSignalsTextProjection, a as runSpaceDelete, b as loadSpaceSignalIndexOrNull, c as runSpaceLeave, d as runSpaceRemoveMembers, f as runSpaceSend, g as buildHumanReadSignalsTranscriptItems, h as runSpaceWriteWithPasswordRetry, i as runSpaceCreate, j as assertValidSpaceIdTarget, k as isSpaceCommandOutputHandledError, l as runSpaceList, m as runSpaceReadWithPasswordRetry, n as promptAndConfirmSpacePassword, o as runSpaceHistory, p as runSpaceWatch, q as renderOpenMeldTagline, r as runSpaceAddMembers, s as runSpaceJoin, t as buildCreateSpacePasswordPromptConfig, u as runSpacePassword, v as buildIdentityOnlyMembersSnapshotForReadProjection, w as buildHumanReplyContextSummary, x as toSpaceMetaUpsertInput, y as loadSpaceIdentityDirectoryOrNull, z as persistAgentTransportSelection } from "./command-
|
|
21
|
+
import { A as formatDeviceReplyReadinessLabel, B as resolveGatewayChainReadiness, Bt as readCurrentLocalDeviceId, Ft as resolveCurrentDaemonExpectedVersion, Ht as isCliUpdateCheckApplicable, J as getSetupFlowCopy, K as buildDaemonRouteObservationPresentation$1, Lt as assessServerRequiredVersion, N as mapAgentReplyReadinessToLegacyAutoReply, Nt as classifyDaemonServiceRunStartability, O as resolveCurrentReplyReadinessSnapshot, Pt as classifyDaemonServiceWakeability, T as resolveDaemonServiceFreshnessWarning, U as resolveOpenClawLocalDiagnosticsValue, Vt as assessCliUpdate, _ as resolveServiceReadinessFromServiceStatus, j as formatHumanReplyReadinessReason$1, k as formatAgentReplyReadinessLabel, pt as inspectDaemonServiceInventory, q as buildOnboardingPlan, t as runPendingDaemonServiceUpdate } from "./daemon-service-update-coordinator-BTlVzU-7.js";
|
|
22
|
+
import { A as assertFullSignalIdArgument, B as resolveAgentProfileSetup, C as buildFormalSignalReadPayload, D as resolveOrganizationVisibilityLabel, E as resolveLinkAccessLabel, F as emitSpaceCliAgentOverview, G as renderOpenMeldHeader, H as colorizeDisplayProfileLabel, I as prepareLocalAgentReadiness, J as createProfileByKind, K as renderOpenMeldLogo, L as buildReplyReadinessGuidance, M as prepareAuthenticatedSpaceCommandContext, N as resolveOpenMeldProfileForSpaceCommand, O as parseEnvelope, P as emitSpaceAgentOverview, Q as assessActionParticipationCandidate, R as resolveHumanControllerDisplayName, S as buildFormalDispatchResultReadPayload, T as formatHumanReadTargetList, U as printOpenMeldBanner, V as colorizeAgentLabel, W as renderOpenMeldBrandBlockLines, X as resolveCreateProfileName, Y as resolveCreateProfileKind, Z as ensureAgentProfileRuntimeBinding, _ as emitHumanReadSignalsTextProjection, a as runSpaceDelete, b as loadSpaceSignalIndexOrNull, c as runSpaceLeave, d as runSpaceRemoveMembers, f as runSpaceSend, g as buildHumanReadSignalsTranscriptItems, h as runSpaceWriteWithPasswordRetry, i as runSpaceCreate, j as assertValidSpaceIdTarget, k as isSpaceCommandOutputHandledError, l as runSpaceList, m as runSpaceReadWithPasswordRetry, n as promptAndConfirmSpacePassword, o as runSpaceHistory, p as runSpaceWatch, q as renderOpenMeldTagline, r as runSpaceAddMembers, s as runSpaceJoin, t as buildCreateSpacePasswordPromptConfig, u as runSpacePassword, v as buildIdentityOnlyMembersSnapshotForReadProjection, w as buildHumanReplyContextSummary, x as toSpaceMetaUpsertInput, y as loadSpaceIdentityDirectoryOrNull, z as persistAgentTransportSelection } from "./command-qNknO9gl.js";
|
|
22
23
|
import { D as isLocalMachineFailureError, O as toRecognizedLocalMachineFailureError, S as LocalMachineFailureError, T as createOrphanedSetupConcurrencyIssue, _ as resolveCliContext, a as isOpenMeldOrphanedLockError, b as formatLaneScopeSentence, c as releaseLockSync, d as runWithHeldLock, i as isOpenMeldLockError, k as formatLocalMachineIssueMessage, l as repairOrphanedLegacyLocks, m as OPENMELD_CLI_CONTEXT_ENV_KEY, p as LEGACY_OPENMELD_AGENT_SESSION_ENV_KEY, r as buildOpenMeldOrphanedLockAction, t as acquireLock, u as resolveOpenMeldOrphanedLockIssue, w as createActiveSetupConcurrencyIssue, x as resolveOpenMeldLaneDescriptor } from "./lock-BMI00i2F.js";
|
|
23
|
-
import { $ as getCommandHintsFromContract, A as createSpaceUpdatesGuideError, D as createSpaceSubcommandTargetGuideError, Dt as formatAgentOverviewPayload, Et as buildDualViewGuideMessage, G as canonicalizeAllowedActions, L as areAllowedActionsEquivalent, M as createStartAuthenticationGuideError, O as createSpaceTargetGuideError, P as OPENMELD_AGENT_MENTAL_MODEL_LINES, S as createSpaceResultGuideError, Tt as formatDualViewGuideForDisplay, a as createProfileMenuGuideError, at as SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS, d as createSpaceContractSetGuideError, g as createSpaceMenuGuideError, gt as registerAuthLoginRequestOptions, h as createSpaceLeaveGuideError, i as createProfileCreateGuideError, j as createStartAgentIdentityGuideError, l as createSpaceAddMembersGuideError, mt as registerDaemonControlTargetOptions, n as createDoctorFailedGuideError, nt as registerSpaceMemberSelectionOptions, o as createResetConfirmationGuideError, pt as getCliVersionInfo, r as createProfileActionGuideError, u as createSpaceAliasTargetGuideError, ut as registerSkillsTargetSelectionOptions, v as createSpacePublicationSetGuideError, wt as DualViewGuideError, x as createSpaceRemoveMembersGuideError, xt as registerBuiltinAgentSelectionOptions, z as buildAgentFacingPublicationModeGuideLines } from "./dual-view-guide-catalog-
|
|
24
|
+
import { $ as getCommandHintsFromContract, A as createSpaceUpdatesGuideError, D as createSpaceSubcommandTargetGuideError, Dt as formatAgentOverviewPayload, Et as buildDualViewGuideMessage, G as canonicalizeAllowedActions, L as areAllowedActionsEquivalent, M as createStartAuthenticationGuideError, O as createSpaceTargetGuideError, P as OPENMELD_AGENT_MENTAL_MODEL_LINES, S as createSpaceResultGuideError, Tt as formatDualViewGuideForDisplay, a as createProfileMenuGuideError, at as SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS, d as createSpaceContractSetGuideError, g as createSpaceMenuGuideError, gt as registerAuthLoginRequestOptions, h as createSpaceLeaveGuideError, i as createProfileCreateGuideError, j as createStartAgentIdentityGuideError, l as createSpaceAddMembersGuideError, mt as registerDaemonControlTargetOptions, n as createDoctorFailedGuideError, nt as registerSpaceMemberSelectionOptions, o as createResetConfirmationGuideError, pt as getCliVersionInfo, r as createProfileActionGuideError, u as createSpaceAliasTargetGuideError, ut as registerSkillsTargetSelectionOptions, v as createSpacePublicationSetGuideError, wt as DualViewGuideError, x as createSpaceRemoveMembersGuideError, xt as registerBuiltinAgentSelectionOptions, z as buildAgentFacingPublicationModeGuideLines } from "./dual-view-guide-catalog-CkcY09Kh.js";
|
|
24
25
|
import { E as updateConfiguredStartV1OnboardingState, S as setConfiguredSkillsConfig, a as resolveBaseUrl, b as setConfiguredBaseUrl, c as resolveExplicitGatewayUrlOrThrow, g as getConfiguredSkillsConfig, m as getConfiguredOnboardingDisclaimerAcceptedAt, o as resolveBaseUrlOrNull, u as alignRuntimeConfigStorage, w as updateConfiguredOnboardingConfig } from "./base-url-0AoeTi3w.js";
|
|
25
|
-
import { A as resolveAuthenticationGuidanceFromError, C as buildAgentAuthenticationGuide, D as createAuthenticationError, E as buildHumanAuthenticationCard, N as getProfileDefaultView, P as setProfileDefaultView, S as setSelectedOpenMeldProfileId, a as requireOpenMeldProfile, b as clearSelectedOpenMeldProfileId, c as createOpenMeldHumanProfile, d as listOpenMeldProfiles, f as primeOpenMeldProfilesSessionCache, i as isSelectedOpenMeldProfileRequiredError, j as resolveAuthenticationGuidanceFromMessage, k as resolveAuthenticationGuidance, l as deleteOpenMeldProfile, m as updateOpenMeldProfile, n as resolveRuntimeContext, o as resolveOpenMeldProfileOrNull, p as resolveOpenMeldProfile, r as resolveViewProfileKey, s as createOpenMeldAgentProfile, t as parseCliViewMode, v as alignSelectedOpenMeldProfileStorage, x as getSelectedOpenMeldProfileId } from "./context-
|
|
26
|
+
import { A as resolveAuthenticationGuidanceFromError, C as buildAgentAuthenticationGuide, D as createAuthenticationError, E as buildHumanAuthenticationCard, N as getProfileDefaultView, P as setProfileDefaultView, S as setSelectedOpenMeldProfileId, a as requireOpenMeldProfile, b as clearSelectedOpenMeldProfileId, c as createOpenMeldHumanProfile, d as listOpenMeldProfiles, f as primeOpenMeldProfilesSessionCache, i as isSelectedOpenMeldProfileRequiredError, j as resolveAuthenticationGuidanceFromMessage, k as resolveAuthenticationGuidance, l as deleteOpenMeldProfile, m as updateOpenMeldProfile, n as resolveRuntimeContext, o as resolveOpenMeldProfileOrNull, p as resolveOpenMeldProfile, r as resolveViewProfileKey, s as createOpenMeldAgentProfile, t as parseCliViewMode, v as alignSelectedOpenMeldProfileStorage, x as getSelectedOpenMeldProfileId } from "./context-x0T_qTHp.js";
|
|
26
27
|
import { a as formatOpenMeldCliTextBlock, c as resolveSetupFollowUpCliEntryCommand, i as formatOpenMeldCliLine, l as resolveUserFacingCliEntryCommand, n as formatOpenMeldCliCommand, r as formatOpenMeldCliCommands, s as formatProfileAwareOpenMeldCliCommands, t as formatInlineOpenMeldCliCommands } from "./cli-entry-command-CR_9QU1i.js";
|
|
27
28
|
import { n as resolveOpenMeldDistribution, t as isBinaryDistribution } from "./distribution-BDQT2ilb.js";
|
|
28
29
|
import { A as getDaemonStatus } from "./daemon-state-Dte9re5V.js";
|
|
29
30
|
import { a as outJsonLine, i as errLine, n as sanitizeTerminalDisplayText, o as outLine, r as formatMessage, t as createPresenter } from "./presenter-BcxiQyJg.js";
|
|
30
|
-
import { c as buildRequestAuthHeaders, d as buildOpenMeldRequestContextFromProfile, n as fetchSpaceRequestWithTimeout, p as deriveAuthBaseUrlFromGatewayUrl, s as buildOpenMeldRequestContextHeadersWithAuth, t as createCliApiClientFoundation } from "./api-client-foundation-
|
|
31
|
+
import { c as buildRequestAuthHeaders, d as buildOpenMeldRequestContextFromProfile, n as fetchSpaceRequestWithTimeout, p as deriveAuthBaseUrlFromGatewayUrl, s as buildOpenMeldRequestContextHeadersWithAuth, t as createCliApiClientFoundation } from "./api-client-foundation-DMEfIARh.js";
|
|
31
32
|
import { i as readDaemonServiceContract } from "./daemon-service-contract-COPKbCy_.js";
|
|
32
33
|
import { t as resolveOpenMeldEnvironmentTarget } from "./openmeld-environment-target-BgYR6ozy.js";
|
|
33
|
-
import { r as runServiceAccountCarrier } from "./service-account-authorization-
|
|
34
|
-
import { b as requestLocalAgentActivitySync, d as compareSemver, f as ensureVersionStateReady, l as OPENMELD_VERSION, y as LocalDaemonControlPlaneClientError } from "./daemon-lifecycle-journal-
|
|
35
|
-
import { g as canUseInteractivePrompts } from "./elapsed-time-
|
|
36
|
-
import { n as collectSkillsReadinessSnapshot } from "./installation-inventory-
|
|
37
|
-
import { t as runServiceAccountControl } from "./service-account-control-
|
|
38
|
-
import { C as buildNoLocalAgentsNoticeLines, D as recoverInterruptedComputerAuthHandoff, E as formatComputerAuthCleanupFailureSuffix, O as exchangeComputerAuthorizationGrant, S as buildLocalAgentsGuideUrl, T as emitUnusedSetupSessionCleanupWarning, _ as runStartLocalAgentsEnable, a as assertSetupServiceUpdateComplete, b as submitSelectedAgentControllerReports, c as collectObservedDeviceMetadata, d as collectStartLocalReadiness, f as runSkillsCheck$1, g as runSkillsUpdate, h as runSkillsUninstall, i as runPrepareSessionExecutor, j as writePrepareSessionSetupBootstrapResult, k as revokePreparedAuthSession, l as createSetupProgressReporter, m as runSkillsInstall, n as reportPrepareHandoffStopped, o as shouldForceSetupServiceRefresh, p as runSkillsEnsure, r as resolvePrepareSessionForHandoff, s as syncLocalSetupCurrentDeviceTargetFromServiceContract, t as connectPrepareSessionStream, u as resolveControllingTerminalSession, v as isCliOutputHandledError, w as confirmContinueWithoutLocalAgents, x as appendLocalAgentsGuideUrl, y as assertSelectedAgentControllerReportSubmissionsAccepted } from "./prepare-session-executor-
|
|
39
|
-
import { C as resolveGatewayWebOrigin, T as runDaemonServiceParticipationGate, _ as promptSearchSelect, a as runAgentsCustomRemove, c as runAgentsDisable, d as runAgentsManage, f as runAgentsRepair, h as promptSearchMultiselect, i as runAgentsCustomList, l as runAgentsEnable, m as formatTransportModeDisplay, n as runAgentsConfig, o as runAgentsCustomUpdate, p as runAgentsShow, r as runAgentsCustomAdd, s as runAgentsDetect, t as runAgents, u as runAgentsList, w as resolveSpaceWebGatewayOrigin } from "./agents-
|
|
40
|
-
import { n as submitProfileRuntimeAgentControllerReport, r as submitRuntimeAgentControllerReport } from "./runtime-agent-controller-reporting-submission-
|
|
41
|
-
import { a as runUpgrade, c as OPENMELD_UPGRADE_FAILURE_HINTS, l as OPENMELD_UPGRADE_METADATA_RECOVERY_HINTS, n as isUpgradeOutputHandledError, o as emitTopLevelAgentOverview, s as emitTopLevelCliAgentOverview, t as UPGRADE_INTERNAL_ALIGN_SERVICE_FLAG$1 } from "./upgrade-
|
|
34
|
+
import { r as runServiceAccountCarrier } from "./service-account-authorization-CAVkiKSF.js";
|
|
35
|
+
import { b as requestLocalAgentActivitySync, d as compareSemver, f as ensureVersionStateReady, l as OPENMELD_VERSION, y as LocalDaemonControlPlaneClientError } from "./daemon-lifecycle-journal-C32I8p4n.js";
|
|
36
|
+
import { g as canUseInteractivePrompts } from "./elapsed-time-BMG1CU23.js";
|
|
37
|
+
import { n as collectSkillsReadinessSnapshot } from "./installation-inventory-7JOtUjyG.js";
|
|
38
|
+
import { t as runServiceAccountControl } from "./service-account-control-BtE73wcO.js";
|
|
39
|
+
import { C as buildNoLocalAgentsNoticeLines, D as recoverInterruptedComputerAuthHandoff, E as formatComputerAuthCleanupFailureSuffix, O as exchangeComputerAuthorizationGrant, S as buildLocalAgentsGuideUrl, T as emitUnusedSetupSessionCleanupWarning, _ as runStartLocalAgentsEnable, a as assertSetupServiceUpdateComplete, b as submitSelectedAgentControllerReports, c as collectObservedDeviceMetadata, d as collectStartLocalReadiness, f as runSkillsCheck$1, g as runSkillsUpdate, h as runSkillsUninstall, i as runPrepareSessionExecutor, j as writePrepareSessionSetupBootstrapResult, k as revokePreparedAuthSession, l as createSetupProgressReporter, m as runSkillsInstall, n as reportPrepareHandoffStopped, o as shouldForceSetupServiceRefresh, p as runSkillsEnsure, r as resolvePrepareSessionForHandoff, s as syncLocalSetupCurrentDeviceTargetFromServiceContract, t as connectPrepareSessionStream, u as resolveControllingTerminalSession, v as isCliOutputHandledError, w as confirmContinueWithoutLocalAgents, x as appendLocalAgentsGuideUrl, y as assertSelectedAgentControllerReportSubmissionsAccepted } from "./prepare-session-executor-DA9saGAk.js";
|
|
40
|
+
import { C as resolveGatewayWebOrigin, T as runDaemonServiceParticipationGate, _ as promptSearchSelect, a as runAgentsCustomRemove, c as runAgentsDisable, d as runAgentsManage, f as runAgentsRepair, h as promptSearchMultiselect, i as runAgentsCustomList, l as runAgentsEnable, m as formatTransportModeDisplay, n as runAgentsConfig, o as runAgentsCustomUpdate, p as runAgentsShow, r as runAgentsCustomAdd, s as runAgentsDetect, t as runAgents, u as runAgentsList, w as resolveSpaceWebGatewayOrigin } from "./agents-woAcH0O6.js";
|
|
41
|
+
import { n as submitProfileRuntimeAgentControllerReport, r as submitRuntimeAgentControllerReport } from "./runtime-agent-controller-reporting-submission-IhxMO4UA.js";
|
|
42
|
+
import { a as runUpgrade, c as OPENMELD_UPGRADE_FAILURE_HINTS, l as OPENMELD_UPGRADE_METADATA_RECOVERY_HINTS, n as isUpgradeOutputHandledError, o as emitTopLevelAgentOverview, s as emitTopLevelCliAgentOverview, t as UPGRADE_INTERNAL_ALIGN_SERVICE_FLAG$1 } from "./upgrade-H-_QW75e.js";
|
|
42
43
|
import { createHash, randomUUID } from "node:crypto";
|
|
43
44
|
import { homedir, tmpdir } from "node:os";
|
|
44
45
|
import { basename, dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
@@ -1165,6 +1166,38 @@ async function readServiceCompatibility() {
|
|
|
1165
1166
|
}
|
|
1166
1167
|
//#endregion
|
|
1167
1168
|
//#region src/agent-activity/command.ts
|
|
1169
|
+
async function runAgentActivityHistory(input) {
|
|
1170
|
+
await runProjectCommand(input, "activity.history", async (context) => {
|
|
1171
|
+
const request = sessionHistoryReadSchema.parse({
|
|
1172
|
+
operation: "read_session",
|
|
1173
|
+
projectId: input.projectId,
|
|
1174
|
+
sessionId: input.session,
|
|
1175
|
+
offset: Number(input.offset ?? 0),
|
|
1176
|
+
limit: Number(input.limit ?? 20)
|
|
1177
|
+
});
|
|
1178
|
+
const dispatch = process.env["OPENMELD_DISPATCH_RUNTIME_MODE"] || process.env["OPENMELD_SPACE_ACTION_CONTEXT_PATH"] ? readDispatchSpaceActionContextFromEnv() : null;
|
|
1179
|
+
const agent = dispatch ? await resolveOpenMeldProfile({
|
|
1180
|
+
openMeldProfileId: dispatch.targetProfileId,
|
|
1181
|
+
profileKind: "agent"
|
|
1182
|
+
}) : null;
|
|
1183
|
+
if (dispatch && !dispatch.executionTokenEcho) throw new Error("This Wake has no current execution proof for session history.");
|
|
1184
|
+
const response = await context.historyApi.request({
|
|
1185
|
+
organizationId: context.organizationId,
|
|
1186
|
+
deviceId: input.device,
|
|
1187
|
+
runtimeLane: daemonServiceLaneSchema.parse(input.lane),
|
|
1188
|
+
request,
|
|
1189
|
+
...dispatch && agent && dispatch.executionTokenEcho ? {
|
|
1190
|
+
execution: {
|
|
1191
|
+
dispatchId: dispatch.dispatchId,
|
|
1192
|
+
executionTokenEcho: dispatch.executionTokenEcho
|
|
1193
|
+
},
|
|
1194
|
+
requestContext: buildOpenMeldRequestContextFromProfile({ openMeldProfile: agent })
|
|
1195
|
+
} : {}
|
|
1196
|
+
});
|
|
1197
|
+
if (response.kind === "error") throw new Error(response.message);
|
|
1198
|
+
emitSuccess(context, "activity.history", response);
|
|
1199
|
+
});
|
|
1200
|
+
}
|
|
1168
1201
|
async function runProjectsList(input = {}) {
|
|
1169
1202
|
await runProjectCommand(input, "list", async (context) => {
|
|
1170
1203
|
const [response, connections] = await Promise.all([context.projectsApi.list(), listProjectConnectionsWithStatus({ organizationId: context.organizationId })]);
|
|
@@ -1426,6 +1459,7 @@ async function runProjectCommand(input, operation, run) {
|
|
|
1426
1459
|
organizationSlug = organization.slug;
|
|
1427
1460
|
const apiClient = createCliApiClientFoundation(await resolveBaseUrl());
|
|
1428
1461
|
await run({
|
|
1462
|
+
historyApi: createSessionHistoryApi(apiClient),
|
|
1429
1463
|
activityApi: createAgentActivityApi(apiClient),
|
|
1430
1464
|
json,
|
|
1431
1465
|
organizationId: organization.id,
|
|
@@ -1517,6 +1551,43 @@ function emitSuccess(context, code, payload) {
|
|
|
1517
1551
|
});
|
|
1518
1552
|
}
|
|
1519
1553
|
function emitActivitySuccess(context, code, payload) {
|
|
1554
|
+
if (code === "activity.history") {
|
|
1555
|
+
const history = sessionHistoryResultSchema.parse(payload);
|
|
1556
|
+
if (history.kind !== "session") return false;
|
|
1557
|
+
renderInfoCard({
|
|
1558
|
+
presenter: context.presenter,
|
|
1559
|
+
codePrefix: code,
|
|
1560
|
+
title: "Session history",
|
|
1561
|
+
sanitize: true,
|
|
1562
|
+
rows: [
|
|
1563
|
+
{
|
|
1564
|
+
label: "Session",
|
|
1565
|
+
value: history.sessionId
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
label: "Requester",
|
|
1569
|
+
value: history.requester.requesterUserId
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
label: "Audience",
|
|
1573
|
+
value: history.requester.audience
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
label: "Request source",
|
|
1577
|
+
value: history.requester.requestRootId
|
|
1578
|
+
},
|
|
1579
|
+
...history.messages.map((message) => ({
|
|
1580
|
+
label: `${message.role}${message.truncated ? " (shortened)" : ""}`,
|
|
1581
|
+
value: message.text
|
|
1582
|
+
})),
|
|
1583
|
+
{
|
|
1584
|
+
label: "Next offset",
|
|
1585
|
+
value: history.nextOffset === null ? "End of history" : String(history.nextOffset)
|
|
1586
|
+
}
|
|
1587
|
+
]
|
|
1588
|
+
});
|
|
1589
|
+
return true;
|
|
1590
|
+
}
|
|
1520
1591
|
if (code === "activity.read" && context.presenter.view === "agent") {
|
|
1521
1592
|
emitAgentActivitySnapshot(context.presenter, payload);
|
|
1522
1593
|
return true;
|
|
@@ -1822,6 +1893,7 @@ const COMMAND_CHECK_REQUIREMENTS = Object.freeze({
|
|
|
1822
1893
|
root: buildCommandChecks(OPTIONAL_CLI_UPDATE),
|
|
1823
1894
|
"plugins.list": buildCommandChecks(OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
|
|
1824
1895
|
"plugins.connect": buildCommandChecks(OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
|
|
1896
|
+
"plugins.connection": buildCommandChecks(OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
|
|
1825
1897
|
"plugins.actions": buildCommandChecks(OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
|
|
1826
1898
|
"plugins.call": buildCommandChecks(OPTIONAL_CLI_UPDATE, REQUIRED_SIGN_IN),
|
|
1827
1899
|
view: buildCommandChecks(OPTIONAL_CLI_UPDATE),
|
|
@@ -2057,6 +2129,7 @@ const COMMAND_ENTRY_NAME_BY_ROUTE = {
|
|
|
2057
2129
|
"files download": "files.download",
|
|
2058
2130
|
"plugins list": "plugins.list",
|
|
2059
2131
|
"plugins connect": "plugins.connect",
|
|
2132
|
+
"plugins connection": "plugins.connection",
|
|
2060
2133
|
"plugins actions": "plugins.actions",
|
|
2061
2134
|
"plugins call": "plugins.call",
|
|
2062
2135
|
"skills ensure": "skills.ensure",
|
|
@@ -2705,6 +2778,11 @@ const COMMAND_ENTRY_COPY_BY_NAME = Object.freeze({
|
|
|
2705
2778
|
signInAction: "discovering plugin actions",
|
|
2706
2779
|
profileAction: null
|
|
2707
2780
|
},
|
|
2781
|
+
"plugins.connection": {
|
|
2782
|
+
...DEFAULT_COPY,
|
|
2783
|
+
signInAction: "using a plugin account on your cloud Computer",
|
|
2784
|
+
profileAction: null
|
|
2785
|
+
},
|
|
2708
2786
|
"plugins.call": {
|
|
2709
2787
|
...DEFAULT_COPY,
|
|
2710
2788
|
signInAction: "running a plugin action",
|
|
@@ -5518,6 +5596,7 @@ function registerAgentActivityCommands(program, handlers) {
|
|
|
5518
5596
|
});
|
|
5519
5597
|
};
|
|
5520
5598
|
addActivityReadOptions(activity).action(runRead);
|
|
5599
|
+
activity.command("history").description("Read an authorized page of Codex messages from a connected Computer.").requiredOption("--device <id>", "Source Computer device ID").requiredOption("--lane <lane>", "Source Computer environment").requiredOption("--project-id <id>", "Authorized Project ID").requiredOption("--session <id>", "Codex native session ID").option("--offset <number>", "Message offset", "0").option("--limit <number>", "Maximum messages (1–50)", "20").option("--json", "Print one machine-readable JSON envelope.", false).action(async (_options, command) => handlers.history(command.optsWithGlobals()));
|
|
5521
5600
|
activity.command("context").description("Read fresh cached Organization activity context for agent startup.").option("--path <path>", "Resolve context for this bound repository path").option("--json", "Print one machine-readable JSON envelope.", false).action(runWithActivityJson(handlers.context));
|
|
5522
5601
|
addActivityReadOptions(activity.command("read").description("Read the current Organization's safe Agent Activity snapshot.")).action(runRead);
|
|
5523
5602
|
addActivitySessionsOptions(activity.command("sessions").description("List the Organization's authorized Local Agent Session Inventory.")).action(async (_options, command) => {
|
|
@@ -9360,7 +9439,7 @@ function buildAgentProfileRuntimeRows(runtimeState) {
|
|
|
9360
9439
|
value: formatTransportModeDisplay(runtimeState.transportMode)
|
|
9361
9440
|
},
|
|
9362
9441
|
{
|
|
9363
|
-
label: "
|
|
9442
|
+
label: "Local Reply Setup",
|
|
9364
9443
|
value: formatHumanReplyReadinessLabel(runtimeState.replyReadinessLabel)
|
|
9365
9444
|
},
|
|
9366
9445
|
...runtimeState.wakeRouteEvidence ? [{
|
|
@@ -9455,7 +9534,7 @@ function formatHumanReplyReadinessReason(reason) {
|
|
|
9455
9534
|
}
|
|
9456
9535
|
function formatHumanReplyReadinessLabel(label) {
|
|
9457
9536
|
const normalized = label.trim();
|
|
9458
|
-
if (normalized === "ready") return "
|
|
9537
|
+
if (normalized === "ready") return "Local setup ready";
|
|
9459
9538
|
if (normalized === "blocked") return "Blocked";
|
|
9460
9539
|
if (normalized === "degraded") return "Limited";
|
|
9461
9540
|
if (normalized === "unknown") return "Unknown";
|
|
@@ -12159,6 +12238,7 @@ async function runServiceTrace(input, deps = {}) {
|
|
|
12159
12238
|
});
|
|
12160
12239
|
const admissionRejections = resolveAdmissionRejections(traceResponse.trace);
|
|
12161
12240
|
const traceReadinessGuidance = shouldExposeCurrentReadinessGuidance(traceResponse.trace) ? targetContext.guidance : null;
|
|
12241
|
+
emitRuntimeCounterGuide(input.details, traceResponse, presenter);
|
|
12162
12242
|
const payload = {
|
|
12163
12243
|
...traceResponse.nativeDeliveryTrace ? { nativeDeliveryTrace: traceResponse.nativeDeliveryTrace } : {},
|
|
12164
12244
|
...traceResponse.serviceConnectionDiagnostics ? { serviceConnectionDiagnostics: traceResponse.serviceConnectionDiagnostics } : {},
|
|
@@ -12888,14 +12968,21 @@ function buildHumanTraceRows(input) {
|
|
|
12888
12968
|
});
|
|
12889
12969
|
return rows;
|
|
12890
12970
|
}
|
|
12971
|
+
function emitRuntimeCounterGuide(details, response, presenter) {
|
|
12972
|
+
if (!(details && response.remoteAgentRuntimeDiagnostics)) return;
|
|
12973
|
+
presenter.line({
|
|
12974
|
+
code: "service.trace.runtime_counter_guide",
|
|
12975
|
+
text: "Runtime counters: modelCallCount counts completed agent prompt operations, including their tool loops. providerRequestCount counts individual model-provider requests. conversationCompaction counts retained-history compactions. These counters do not prove delivery."
|
|
12976
|
+
});
|
|
12977
|
+
}
|
|
12891
12978
|
function formatLocalReplyEvidenceLabel(value) {
|
|
12892
|
-
if (value === "Ready" || value === "Available for Wake" || value === "Can reply") return "Local evidence:
|
|
12979
|
+
if (value === "Local setup ready" || value === "Ready" || value === "Available for Wake" || value === "Can reply") return "Local evidence: setup ready";
|
|
12893
12980
|
const replyCapableDetail = firstPrefixedDetail(value, [
|
|
12894
12981
|
"Ready · ",
|
|
12895
12982
|
"Available for Wake · ",
|
|
12896
12983
|
"Can reply · "
|
|
12897
12984
|
]);
|
|
12898
|
-
if (replyCapableDetail !== null) return `Local evidence:
|
|
12985
|
+
if (replyCapableDetail !== null) return `Local evidence: setup ready · ${replyCapableDetail}`;
|
|
12899
12986
|
if (value === "Not ready" || value === "Unavailable" || value === "Blocked") return "Local evidence: not reply-capable";
|
|
12900
12987
|
const notReplyCapableDetail = firstPrefixedDetail(value, [
|
|
12901
12988
|
"Not ready · ",
|
|
@@ -13648,7 +13735,7 @@ function buildAgentTraceCompactSummary(input) {
|
|
|
13648
13735
|
...nativeDeliveryEvidence,
|
|
13649
13736
|
currentState: "final_projection_pending",
|
|
13650
13737
|
delivered: false,
|
|
13651
|
-
nextAction: "wait
|
|
13738
|
+
nextAction: "wait, then rerun trace with the same selector; use --details to inspect execution evidence",
|
|
13652
13739
|
reasonCode: trace.finalVisibleMessageLinkage.reasonCode,
|
|
13653
13740
|
visibleOutcome: finalVisibleOutcome.status
|
|
13654
13741
|
};
|
|
@@ -19807,6 +19894,8 @@ function resolveSpaceReadFailureHints(entryName) {
|
|
|
19807
19894
|
case "history": return ["openmeld space history <space-id-or-url> --kind text --brief --limit 20"];
|
|
19808
19895
|
case "members": return ["openmeld space members <space-id-or-url>"];
|
|
19809
19896
|
case "status": return ["openmeld space status <space-id-or-url>"];
|
|
19897
|
+
case "wake-progress": return ["openmeld space wake-progress <space-id-or-url>"];
|
|
19898
|
+
case "result": return ["openmeld service trace --space <space-id> --dispatch <dispatch-id> --view agent"];
|
|
19810
19899
|
default: return null;
|
|
19811
19900
|
}
|
|
19812
19901
|
}
|
|
@@ -19821,6 +19910,8 @@ function resolveSpaceReadCommandName(entryName) {
|
|
|
19821
19910
|
case "space.history": return "history";
|
|
19822
19911
|
case "space.members": return "members";
|
|
19823
19912
|
case "space.status": return "status";
|
|
19913
|
+
case "space.wake_progress": return "wake-progress";
|
|
19914
|
+
case "space.result": return "result";
|
|
19824
19915
|
default: return null;
|
|
19825
19916
|
}
|
|
19826
19917
|
}
|
|
@@ -22728,7 +22819,7 @@ function validateRoutineSchedule(input) {
|
|
|
22728
22819
|
timezone: storedSchedule.timezone
|
|
22729
22820
|
};
|
|
22730
22821
|
}
|
|
22731
|
-
function formatStoredRoutineSchedule(input) {
|
|
22822
|
+
function formatStoredRoutineSchedule(input, options) {
|
|
22732
22823
|
const { cronExpression, timezone } = parseStoredRoutineSchedule(input);
|
|
22733
22824
|
const [minute, hour, dayOfMonth, month, dayOfWeek] = cronExpression.split(" ");
|
|
22734
22825
|
const timezoneSuffix = ` (${timezone})`;
|
|
@@ -22737,7 +22828,7 @@ function formatStoredRoutineSchedule(input) {
|
|
|
22737
22828
|
const minuteValue = parseSingleInteger(minute, 0, 59);
|
|
22738
22829
|
const hourValue = parseSingleInteger(hour, 0, 23);
|
|
22739
22830
|
if (minuteValue !== null && hourValue !== null && month === "*") {
|
|
22740
|
-
const time = formatTime(hourValue, minuteValue);
|
|
22831
|
+
const time = formatTime(hourValue, minuteValue, options?.hour12);
|
|
22741
22832
|
if (dayOfMonth === "*" && dayOfWeek === "*") return `Every day at ${time}${timezoneSuffix}`;
|
|
22742
22833
|
if (dayOfMonth === "*") {
|
|
22743
22834
|
const weekday = formatSingleWeekday(dayOfWeek);
|
|
@@ -22809,7 +22900,8 @@ function parseSingleInteger(value, minimum, maximum) {
|
|
|
22809
22900
|
const parsed = Number(value);
|
|
22810
22901
|
return parsed >= minimum && parsed <= maximum ? parsed : null;
|
|
22811
22902
|
}
|
|
22812
|
-
function formatTime(hour, minute) {
|
|
22903
|
+
function formatTime(hour, minute, hour12 = true) {
|
|
22904
|
+
if (!hour12) return `${String(hour).padStart(2, "0")}:${String(minute).padStart(2, "0")}`;
|
|
22813
22905
|
const period = hour >= 12 ? "PM" : "AM";
|
|
22814
22906
|
return `${hour % 12 || 12}:${String(minute).padStart(2, "0")} ${period}`;
|
|
22815
22907
|
}
|
|
@@ -23052,8 +23144,18 @@ function buildCreateRoutineBody(input) {
|
|
|
23052
23144
|
label: "Target Space",
|
|
23053
23145
|
nextStep: "Pass `--target-space <space-id>`."
|
|
23054
23146
|
});
|
|
23147
|
+
const schedule = buildRequiredRoutineSchedule(input);
|
|
23148
|
+
const scope = routineScopeSchema.safeParse(input.scope ?? "personal");
|
|
23149
|
+
if (!scope.success) throw new RoutineCommandError({
|
|
23150
|
+
code: "routine.scope_invalid",
|
|
23151
|
+
message: "Routine visibility must be personal or team.",
|
|
23152
|
+
nextStep: "Pass `--scope personal` or `--scope team`.",
|
|
23153
|
+
title: "Invalid Routine Visibility"
|
|
23154
|
+
});
|
|
23055
23155
|
return {
|
|
23056
|
-
...
|
|
23156
|
+
...schedule,
|
|
23157
|
+
agentProfileId: input.agentProfileId === "center" ? null : input.agentProfileId,
|
|
23158
|
+
scope: scope.data,
|
|
23057
23159
|
destinationKind: "space",
|
|
23058
23160
|
instructions,
|
|
23059
23161
|
name,
|
|
@@ -23349,6 +23451,13 @@ function renderRoutineConfiguration(input) {
|
|
|
23349
23451
|
label: "Routine ID",
|
|
23350
23452
|
value: routine.id
|
|
23351
23453
|
},
|
|
23454
|
+
..."scope" in routine ? [{
|
|
23455
|
+
label: "Visible to",
|
|
23456
|
+
value: routine.scope === "personal" ? "Only me" : "Team"
|
|
23457
|
+
}, {
|
|
23458
|
+
label: "Agent",
|
|
23459
|
+
value: routine.executorName
|
|
23460
|
+
}] : [],
|
|
23352
23461
|
{
|
|
23353
23462
|
label: "Instructions",
|
|
23354
23463
|
value: routine.instructions
|
|
@@ -23455,6 +23564,7 @@ function formatRoutineListSummary(routine) {
|
|
|
23455
23564
|
const status = formatRoutineStatus(routine.status);
|
|
23456
23565
|
const nextRun = routine.nextDueAt ? formatRoutineTimestamp(routine.nextDueAt, routine.timezone ?? "UTC") : "Not scheduled";
|
|
23457
23566
|
return [
|
|
23567
|
+
..."scope" in routine ? [routine.scope === "personal" ? "Personal" : "Team", routine.executorName] : [],
|
|
23458
23568
|
schedule,
|
|
23459
23569
|
status,
|
|
23460
23570
|
formatRoutineDestination(routine),
|
|
@@ -23514,7 +23624,7 @@ async function runRoutinesList(input = {}) {
|
|
|
23514
23624
|
const context = await resolveRoutinesCommandContext(input);
|
|
23515
23625
|
if (!context) return;
|
|
23516
23626
|
try {
|
|
23517
|
-
const response = await (await createRoutinesApiClient()).
|
|
23627
|
+
const response = await (await createRoutinesApiClient()).listAllRoutines();
|
|
23518
23628
|
if (context.cliJsonOutput) {
|
|
23519
23629
|
emitCliJsonEnvelope({
|
|
23520
23630
|
schemaVersion: 1,
|
|
@@ -23567,7 +23677,7 @@ async function runRoutinesShow(input) {
|
|
|
23567
23677
|
if (!context) return;
|
|
23568
23678
|
try {
|
|
23569
23679
|
const routineId = requireRoutineId(input.routineId);
|
|
23570
|
-
const routine = (await (await createRoutinesApiClient()).
|
|
23680
|
+
const routine = (await (await createRoutinesApiClient()).listAllRoutines()).routines.find((item) => item.id === routineId);
|
|
23571
23681
|
if (!routine) throw routineNotFoundError(routineId);
|
|
23572
23682
|
if (context.cliJsonOutput) {
|
|
23573
23683
|
emitCliJsonEnvelope({
|
|
@@ -23768,11 +23878,11 @@ function resolveRoutinesCliOutputMode(input) {
|
|
|
23768
23878
|
};
|
|
23769
23879
|
}
|
|
23770
23880
|
function registerRoutinesCommands(program, handlers) {
|
|
23771
|
-
const routines = program.command("routines").description("Manage
|
|
23881
|
+
const routines = program.command("routines").description("Manage personal and team Routines for any Agent.");
|
|
23772
23882
|
routines.command("list").description("List Routines in the active organization.").option("--json", "Print one machine-readable JSON envelope.", false).action(async (options) => {
|
|
23773
23883
|
await handlers.list(options);
|
|
23774
23884
|
});
|
|
23775
|
-
routines.command("create").description("Create a scheduled Center Agent
|
|
23885
|
+
routines.command("create").description("Create a scheduled Routine.").option("--agent <profile-id>", "Agent Profile ID, or center for the Center Agent").option("--scope <scope>", "Visibility: personal or team", "personal").option("--name <name>", "Human-readable Routine name").option("--instructions <text>", "Instructions for the Agent").option("--cron <expression>", "Raw five-field cron expression").option("--daily <HH:MM>", "Daily time in strict 24-hour HH:MM format").option("--run-at <ISO-8601>", "Run once at an ISO-8601 timestamp with a timezone").option("--timezone <timezone>", "Required explicit IANA timezone").option("--target-space <space-id>", "Required target Space for published results").option("--json", "Print one machine-readable JSON envelope.", false).action(async (options) => {
|
|
23776
23886
|
await handlers.create(options);
|
|
23777
23887
|
});
|
|
23778
23888
|
routines.command("show").description("Show one Routine configuration.").argument("<routine-id>", "Routine ID").option("--json", "Print one machine-readable JSON envelope.", false).action(async (routineId, options) => {
|
|
@@ -24601,7 +24711,7 @@ function normalizeOptionalString(value) {
|
|
|
24601
24711
|
return normalized.length > 0 ? normalized : null;
|
|
24602
24712
|
}
|
|
24603
24713
|
async function runDefaultSpaceAddMeMembership(input) {
|
|
24604
|
-
const { runSpaceAddMeMembership } = await import("./add-me-membership-
|
|
24714
|
+
const { runSpaceAddMeMembership } = await import("./add-me-membership-DUeJA9q4.js");
|
|
24605
24715
|
return await runSpaceAddMeMembership(input);
|
|
24606
24716
|
}
|
|
24607
24717
|
//#endregion
|
|
@@ -27585,11 +27695,12 @@ async function runSpaceResult(input) {
|
|
|
27585
27695
|
space: input.space,
|
|
27586
27696
|
resolvedView: runtime.resolvedView
|
|
27587
27697
|
});
|
|
27588
|
-
const
|
|
27698
|
+
const openMeldProfile = await resolveOpenMeldProfileForSpaceCommand({
|
|
27589
27699
|
openMeldProfileId: input.profile,
|
|
27590
27700
|
resolvedView: runtime.resolvedView,
|
|
27591
27701
|
interactive
|
|
27592
|
-
})
|
|
27702
|
+
});
|
|
27703
|
+
const requestContext = buildOpenMeldRequestContextFromProfile({ openMeldProfile });
|
|
27593
27704
|
const spaceApi = createCliSpaceApi(baseUrl);
|
|
27594
27705
|
let resultRead;
|
|
27595
27706
|
try {
|
|
@@ -27609,7 +27720,10 @@ async function runSpaceResult(input) {
|
|
|
27609
27720
|
} catch (error) {
|
|
27610
27721
|
throw decorateSpaceResultReadError({
|
|
27611
27722
|
error,
|
|
27612
|
-
|
|
27723
|
+
space: input.space,
|
|
27724
|
+
dispatchId,
|
|
27725
|
+
profile: openMeldProfile.openMeldProfileId,
|
|
27726
|
+
baseUrl
|
|
27613
27727
|
});
|
|
27614
27728
|
}
|
|
27615
27729
|
if (resultRead.status === "cancelled") return;
|
|
@@ -27640,11 +27754,13 @@ async function runSpaceResult(input) {
|
|
|
27640
27754
|
}
|
|
27641
27755
|
function decorateSpaceResultReadError(input) {
|
|
27642
27756
|
const failure = toStructuredGatewayFailure(input.error);
|
|
27643
|
-
if (!
|
|
27757
|
+
if (!isMissingDispatchResultFailure({
|
|
27644
27758
|
code: failure.code,
|
|
27645
27759
|
message: failure.message
|
|
27646
|
-
}))
|
|
27647
|
-
const
|
|
27760
|
+
})) return input.error;
|
|
27761
|
+
const selector = input.dispatchId ? ` --dispatch ${quoteCommandArgument(input.dispatchId)}` : " --dispatch <dispatch-id>";
|
|
27762
|
+
const command = `${resolveUserFacingCliEntryCommand()} service trace --space ${quoteCommandArgument(input.space)}${selector} --profile ${quoteCommandArgument(input.profile)} --gateway-url ${quoteCommandArgument(input.baseUrl)} --view agent`;
|
|
27763
|
+
const error = /* @__PURE__ */ new Error(`No archived dispatch result was found. This does not mean the Wake failed. Hosted replies can exist without a workstation result archive. Run ${command} to read the execution and visible reply evidence. Use the returned Signal ID with space history --around-signal to read the reply.`);
|
|
27648
27764
|
error.code = failure.code ?? void 0;
|
|
27649
27765
|
error.requestId = failure.requestId;
|
|
27650
27766
|
error.status = failure.status;
|
|
@@ -27654,6 +27770,9 @@ function isMissingDispatchResultFailure(input) {
|
|
|
27654
27770
|
if (input.code === "space.dispatch_result.not_found") return true;
|
|
27655
27771
|
return input.code === "upstream_error" && input.message.trim().toLowerCase() === "dispatch result not found";
|
|
27656
27772
|
}
|
|
27773
|
+
function quoteCommandArgument(value) {
|
|
27774
|
+
return `'${value.replaceAll("'", "'\\''")}'`;
|
|
27775
|
+
}
|
|
27657
27776
|
//#endregion
|
|
27658
27777
|
//#region src/space/status-output.ts
|
|
27659
27778
|
function emitSpaceStatusHumanOutput(input) {
|
|
@@ -28763,6 +28882,10 @@ function renderRequestAuthorization(response) {
|
|
|
28763
28882
|
else outLine("This request cannot authorize an operation. Open your Inbox to see its status. Only start a new request if the owner asks you to proceed.");
|
|
28764
28883
|
}
|
|
28765
28884
|
function renderPluginResponse(response) {
|
|
28885
|
+
if (response.kind === "native_connection") {
|
|
28886
|
+
outLine(JSON.stringify(response, null, 2));
|
|
28887
|
+
return;
|
|
28888
|
+
}
|
|
28766
28889
|
if (response.kind === "authorization_required") {
|
|
28767
28890
|
renderRequestAuthorization(response);
|
|
28768
28891
|
return;
|
|
@@ -28837,6 +28960,20 @@ function registerPluginCommands(program, options) {
|
|
|
28837
28960
|
view: options.view()
|
|
28838
28961
|
}));
|
|
28839
28962
|
});
|
|
28963
|
+
common(plugins.command("connection <service>").description("Inspect a Plugin account or reuse it on your cloud Computer.")).addOption(new Option("--account <scope>", "Account identity to use.").choices(["personal", "shared"]).makeOptionMandatory()).requiredOption("--key <key>", "Stable key for this connection use.").option("--computer", "Create a temporary native HTTP connection on your cloud Computer.").action(async (service, flags) => {
|
|
28964
|
+
const request = pluginActionRequestSchema.parse({ action: {
|
|
28965
|
+
operation: "connection",
|
|
28966
|
+
service,
|
|
28967
|
+
account: flags.account,
|
|
28968
|
+
key: flags.key,
|
|
28969
|
+
computer: flags.computer
|
|
28970
|
+
} });
|
|
28971
|
+
await options.run(["plugins", "connection"], () => runPluginCommand({
|
|
28972
|
+
action: request.action,
|
|
28973
|
+
profile: flags.profile,
|
|
28974
|
+
view: options.view()
|
|
28975
|
+
}));
|
|
28976
|
+
});
|
|
28840
28977
|
common(plugins.command("call <service> <action-id>").description("Run an action; reuse the operation ID only for the exact same request.")).addOption(new Option("--account <scope>", "Account identity to use.").choices(["personal", "shared"]).makeOptionMandatory()).requiredOption("--operation <id>", "Unique operation ID for this exact action.").option("--input <json>", "Action input as a JSON object.", "{}").option("--confirm <token>", "Confirmation returned for this exact action.").option("--verify-operation <id>", "Link this read to an original operation without changing its outcome.").option("--verify-action <id>", "Original action ID for --verify-operation.").option("--replay", "Use the original operation's explicitly permitted, single replay.").action(async (service, actionId, flags) => {
|
|
28841
28978
|
const request = pluginActionRequestSchema.parse({ action: {
|
|
28842
28979
|
operation: "execute",
|
|
@@ -29353,6 +29490,8 @@ registerRoutinesCommands(program, {
|
|
|
29353
29490
|
run: async (output) => {
|
|
29354
29491
|
await runRoutinesCreate({
|
|
29355
29492
|
...output,
|
|
29493
|
+
agentProfileId: opts.agent,
|
|
29494
|
+
scope: opts.scope,
|
|
29356
29495
|
cronExpression: opts.cron,
|
|
29357
29496
|
dailyTime: opts.daily,
|
|
29358
29497
|
instructions: opts.instructions,
|
|
@@ -29565,6 +29704,7 @@ registerProjectCommands(program, {
|
|
|
29565
29704
|
}
|
|
29566
29705
|
});
|
|
29567
29706
|
registerAgentActivityCommands(program, {
|
|
29707
|
+
history: runAgentActivityHistory,
|
|
29568
29708
|
context: runActivityContext,
|
|
29569
29709
|
health: runActivityHealth,
|
|
29570
29710
|
hook: runActivityHook,
|
|
@@ -29609,7 +29749,7 @@ computerCmd.command("cloud").description("Read your personal cloud Computer or r
|
|
|
29609
29749
|
routeTokens: ["computer", "cloud"],
|
|
29610
29750
|
view,
|
|
29611
29751
|
run: async () => {
|
|
29612
|
-
const { runCloudComputer } = await import("./cloud-computer-
|
|
29752
|
+
const { runCloudComputer } = await import("./cloud-computer-C81_vVOV.js");
|
|
29613
29753
|
await runCloudComputer({
|
|
29614
29754
|
operation: opts.operation,
|
|
29615
29755
|
view
|
|
@@ -29623,7 +29763,7 @@ computerCmd.command("disconnect").description("Disconnect this computer from its
|
|
|
29623
29763
|
routeTokens: ["computer", "disconnect"],
|
|
29624
29764
|
view,
|
|
29625
29765
|
run: async () => {
|
|
29626
|
-
const { runComputerDisconnect } = await import("./computer-disconnect-
|
|
29766
|
+
const { runComputerDisconnect } = await import("./computer-disconnect-ttAH9WgN.js");
|
|
29627
29767
|
await runComputerDisconnect(computerConnectionIntentSchema.parse(JSON.parse(opts.connectionIntent)), view);
|
|
29628
29768
|
}
|
|
29629
29769
|
});
|
|
@@ -30602,19 +30742,24 @@ withSpaceProfileOption(spaceCmd.command("respond").description("Review and answe
|
|
|
30602
30742
|
})
|
|
30603
30743
|
});
|
|
30604
30744
|
});
|
|
30605
|
-
withSpaceProfileOption(spaceCmd.command("wake-progress").description("Read live Wake progress for this Space; use result or service trace after execution.").argument("<space>", "Space
|
|
30745
|
+
withSpaceProfileOption(spaceCmd.command("wake-progress").description("Read live Wake progress for this Space; use result or service trace after execution.").argument("<space>", "Space URL or 64-character Space ID").option("--client-message <client-message-id>", "Read progress for one client message instead of the active Space summary").option("--target-profile <profile-id>", "Narrow progress to one target Agent Profile").option("--source-profile <profile-id>", "Narrow the active summary to work requested by one profile").option("--password <value>", "Space password for protected access")).action(async (space, opts, command) => {
|
|
30606
30746
|
const cliOptions = resolveSpaceCommandCliOptions(command, opts);
|
|
30747
|
+
const target = resolveSpaceReadCommandTarget({
|
|
30748
|
+
baseUrl: cliOptions.gatewayUrl,
|
|
30749
|
+
profile: cliOptions.profile,
|
|
30750
|
+
space: String(space ?? "").trim()
|
|
30751
|
+
});
|
|
30607
30752
|
const view = getGlobalViewOption();
|
|
30608
30753
|
await runCommandWithEntryChecks({
|
|
30609
30754
|
routeTokens: ["space", "wake-progress"],
|
|
30610
30755
|
view,
|
|
30611
|
-
profile:
|
|
30612
|
-
gatewayUrl:
|
|
30756
|
+
profile: target.profile,
|
|
30757
|
+
gatewayUrl: target.baseUrl,
|
|
30613
30758
|
run: async () => {
|
|
30614
30759
|
await runSpaceWakeProgress({
|
|
30615
|
-
profile:
|
|
30616
|
-
baseUrl:
|
|
30617
|
-
space:
|
|
30760
|
+
profile: target.profile,
|
|
30761
|
+
baseUrl: target.baseUrl,
|
|
30762
|
+
space: target.space,
|
|
30618
30763
|
clientMessageId: normalizeOptionalString$16(opts.clientMessage) ?? void 0,
|
|
30619
30764
|
sourceProfileId: normalizeOptionalString$16(opts.sourceProfile) ?? void 0,
|
|
30620
30765
|
targetProfileId: normalizeOptionalString$16(opts.targetProfile) ?? void 0,
|
|
@@ -30625,19 +30770,24 @@ withSpaceProfileOption(spaceCmd.command("wake-progress").description("Read live
|
|
|
30625
30770
|
}
|
|
30626
30771
|
});
|
|
30627
30772
|
});
|
|
30628
|
-
withSpaceProfileOption(spaceCmd.command("wake-stop").description("Request Stop for one live Wake and report only the server-confirmed state.").argument("<space>", "Space
|
|
30773
|
+
withSpaceProfileOption(spaceCmd.command("wake-stop").description("Request Stop for one live Wake and report only the server-confirmed state.").argument("<space>", "Space URL or 64-character Space ID").option("--client-message <client-message-id>", "Select the Wake by client message ID").option("--source-signal <signal-id>", "Select the Wake by source Space signal ID").requiredOption("--target-profile <profile-id>", "Target Agent Profile ID for the selected Wake").option("--reason <text>", "Reason recorded with the Stop request").option("--password <value>", "Space password for protected access")).action(async (space, opts, command) => {
|
|
30629
30774
|
const cliOptions = resolveSpaceCommandCliOptions(command, opts);
|
|
30775
|
+
const target = resolveSpaceReadCommandTarget({
|
|
30776
|
+
baseUrl: cliOptions.gatewayUrl,
|
|
30777
|
+
profile: cliOptions.profile,
|
|
30778
|
+
space: String(space ?? "").trim()
|
|
30779
|
+
});
|
|
30630
30780
|
const view = getGlobalViewOption();
|
|
30631
30781
|
await runCommandWithEntryChecks({
|
|
30632
30782
|
routeTokens: ["space", "wake-stop"],
|
|
30633
30783
|
view,
|
|
30634
|
-
profile:
|
|
30635
|
-
gatewayUrl:
|
|
30784
|
+
profile: target.profile,
|
|
30785
|
+
gatewayUrl: target.baseUrl,
|
|
30636
30786
|
run: async () => {
|
|
30637
30787
|
await runSpaceWakeStop({
|
|
30638
|
-
profile:
|
|
30639
|
-
baseUrl:
|
|
30640
|
-
space:
|
|
30788
|
+
profile: target.profile,
|
|
30789
|
+
baseUrl: target.baseUrl,
|
|
30790
|
+
space: target.space,
|
|
30641
30791
|
clientMessageId: normalizeOptionalString$16(opts.clientMessage) ?? void 0,
|
|
30642
30792
|
sourceSignalId: normalizeOptionalString$16(opts.sourceSignal) ?? void 0,
|
|
30643
30793
|
targetProfileId: String(opts.targetProfile),
|
|
@@ -31231,7 +31381,7 @@ withSpaceProfileOption(spaceCmd.command("updates").description("Read formal upda
|
|
|
31231
31381
|
}
|
|
31232
31382
|
});
|
|
31233
31383
|
});
|
|
31234
|
-
withSpaceProfileOption(spaceCmd.command("result").description("Read one formal dispatch result scoped to this space.").argument("[space]", "Space
|
|
31384
|
+
withSpaceProfileOption(spaceCmd.command("result").description("Read one formal dispatch result scoped to this space.").argument("[space]", "Space URL or 64-character Space ID").option("--dispatch <dispatch-id>", "Lookup by dispatch ID").option("--result-ref <result-ref>", "Lookup by dispatch result ref").option("--json", "Print canonical JSON", false).option("--password <value>", "Space password for protected access")).action(async (space, opts, command) => {
|
|
31235
31385
|
const cliOptions = resolveSpaceCommandCliOptions(command, opts);
|
|
31236
31386
|
const spaceValue = String(space ?? "").trim();
|
|
31237
31387
|
const dispatchId = normalizeOptionalString$16(opts.dispatch);
|
|
@@ -31239,17 +31389,22 @@ withSpaceProfileOption(spaceCmd.command("result").description("Read one formal d
|
|
|
31239
31389
|
const selectorCount = Number(dispatchId !== null) + Number(resultRef !== null);
|
|
31240
31390
|
const outputView = await resolveEffectiveViewForOutput();
|
|
31241
31391
|
if ((spaceValue.length === 0 || selectorCount !== 1) && outputView === "agent") throw createSpaceResultGuideError();
|
|
31392
|
+
const target = resolveSpaceReadCommandTarget({
|
|
31393
|
+
baseUrl: cliOptions.gatewayUrl,
|
|
31394
|
+
profile: cliOptions.profile,
|
|
31395
|
+
space: String(space ?? "").trim()
|
|
31396
|
+
});
|
|
31242
31397
|
const view = getGlobalViewOption();
|
|
31243
31398
|
await runCommandWithEntryChecks({
|
|
31244
31399
|
routeTokens: ["space", "result"],
|
|
31245
31400
|
view,
|
|
31246
|
-
profile:
|
|
31247
|
-
gatewayUrl:
|
|
31401
|
+
profile: target.profile,
|
|
31402
|
+
gatewayUrl: target.baseUrl,
|
|
31248
31403
|
run: async () => {
|
|
31249
31404
|
await runSpaceResult({
|
|
31250
|
-
profile:
|
|
31251
|
-
baseUrl:
|
|
31252
|
-
space:
|
|
31405
|
+
profile: target.profile,
|
|
31406
|
+
baseUrl: target.baseUrl,
|
|
31407
|
+
space: target.space,
|
|
31253
31408
|
...dispatchId ? { dispatchId } : {},
|
|
31254
31409
|
...resultRef ? { resultRef } : {},
|
|
31255
31410
|
password: cliOptions.password,
|
|
@@ -31901,7 +32056,7 @@ async function main() {
|
|
|
31901
32056
|
if (await runMacOsNativeKeychainHelperIfRequested()) return;
|
|
31902
32057
|
const argv = process.argv.map((arg) => arg === "--h" ? "--help" : arg);
|
|
31903
32058
|
if (argv.length === 5 && argv[2] === "computer" && argv[3] === "connection-review" && argv[4] === "--json") {
|
|
31904
|
-
const { readComputerConnectionReview } = await import("./computer-connection-review-
|
|
32059
|
+
const { readComputerConnectionReview } = await import("./computer-connection-review-Df2G8VWY.js");
|
|
31905
32060
|
outLine(JSON.stringify(await readComputerConnectionReview()));
|
|
31906
32061
|
return;
|
|
31907
32062
|
}
|
|
@@ -31912,7 +32067,7 @@ async function main() {
|
|
|
31912
32067
|
return;
|
|
31913
32068
|
}
|
|
31914
32069
|
if (argv[3] === "control-capabilities") {
|
|
31915
|
-
const { readServiceControlCapabilities } = await import("./service-control-capabilities-
|
|
32070
|
+
const { readServiceControlCapabilities } = await import("./service-control-capabilities-adDptMIH.js");
|
|
31916
32071
|
emitCliJsonEnvelope({
|
|
31917
32072
|
schemaVersion: 1,
|
|
31918
32073
|
type: "service.control_capabilities",
|
|
@@ -32095,4 +32250,4 @@ main().catch((error) => {
|
|
|
32095
32250
|
//#endregion
|
|
32096
32251
|
export {};
|
|
32097
32252
|
|
|
32098
|
-
//# sourceMappingURL=openmeld-
|
|
32253
|
+
//# sourceMappingURL=openmeld-BxTCCHMn.js.map
|