lody 0.115.0 → 0.116.0
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/{access-Sut1_1-c.js → access-DIhEb_MP.js} +333 -314
- package/dist/{acp-interaction-owner-uSfNzpiU.js → acp-interaction-owner-8OMcZVET.js} +33 -33
- package/dist/{agent-execution-D1-dEIN6.js → agent-execution-ZTPT3A88.js} +13 -13
- package/dist/{analytics-events-BQIrmfJp.js → analytics-events-BNLOju7l.js} +2 -2
- package/dist/{app-J2sTmsZo.js → app-DzrwnZPK.js} +34 -34
- package/dist/{application-runtime-BPgp9fKR.js → application-runtime-4EGQJvLm.js} +2 -2
- package/dist/{auth-CTegS0TL.js → auth-CA7u_ijj.js} +8 -8
- package/dist/{automation-BL7x_nUm.js → automation-ClFKwWKg.js} +34 -34
- package/dist/baguette-worker.js +6 -6
- package/dist/chunks/{vendor-@agentclientprotocol-sdk-CpxTRW1f.js → vendor-@agentclientprotocol-sdk-54yhgJSn.js} +2 -2
- package/dist/chunks/{vendor-@anthropic-ai-claude-agent-sdk-B0HhZ112.js → vendor-@anthropic-ai-claude-agent-sdk-NAjHQcVv.js} +27 -3
- package/dist/chunks/{vendor-@better-auth-api-key-D0bKvhcn.js → vendor-@better-auth-api-key-Dy9PtbSj.js} +2 -2
- package/dist/chunks/{vendor-@better-auth-core-Dpzqxq_j.js → vendor-@better-auth-core-C7hql1k7.js} +8 -8
- package/dist/chunks/{vendor-@effect-platform-node-shared-DkrmBObz.js → vendor-@effect-platform-node-shared-DUSlMsdQ.js} +2 -2
- package/dist/chunks/{vendor-@loro-dev-streams-client-DPTfaXHE.js → vendor-@loro-dev-streams-client-DkeRiNAY.js} +1329 -88
- package/dist/chunks/{vendor-@loro-dev-streams-crdt-BOuVa3yO.js → vendor-@loro-dev-streams-crdt-CsXRvQxK.js} +861 -322
- package/dist/chunks/{vendor-@modelcontextprotocol-client-B_Q9G9Ku.js → vendor-@modelcontextprotocol-client-DuJtk4js.js} +3 -3
- package/dist/chunks/{vendor-@modelcontextprotocol-core-CW-vRGZP.js → vendor-@modelcontextprotocol-core-BkUcdvo6.js} +2 -2
- package/dist/chunks/{vendor-@modelcontextprotocol-node-CSCPUEbv.js → vendor-@modelcontextprotocol-node-D0s30TCx.js} +2 -2
- package/dist/chunks/{vendor-@modelcontextprotocol-server-BA5N3RYD.js → vendor-@modelcontextprotocol-server-C9c_OMTp.js} +3 -3
- package/dist/chunks/{vendor-@opencode-codemode-61MXX511.js → vendor-@opencode-codemode-DmkYINkB.js} +2 -2
- package/dist/chunks/{vendor-@sorbetai-artifacts-Dt9BTK8Q.js → vendor-@sorbetai-artifacts-Vz3r0uhj.js} +3 -3
- package/dist/chunks/{vendor-@sorbetai-context-COh8_Kmc.js → vendor-@sorbetai-context-BV7q3KwO.js} +2 -2
- package/dist/chunks/{vendor-@sorbetai-control-HcZa4Y-V.js → vendor-@sorbetai-control-C9pxQF9a.js} +137 -51
- package/dist/chunks/{vendor-@sorbetai-plugins-Bs93fyHc.js → vendor-@sorbetai-plugins-COkYjDxn.js} +3 -3
- package/dist/chunks/{vendor-@sorbetai-runtime-kicj4Xs_.js → vendor-@sorbetai-runtime-DKAfUiS0.js} +172 -60
- package/dist/chunks/{vendor-@sorbetai-schema-BYxzbt6U.js → vendor-@sorbetai-schema-D53JJ0HJ.js} +2 -2
- package/dist/chunks/{vendor-better-auth-PQ6PT4aF.js → vendor-better-auth-D1bP-dEy.js} +2 -2
- package/dist/chunks/{vendor-effect-CNM-5PoN.js → vendor-effect-BTVRmkqM.js} +418 -418
- package/dist/chunks/{vendor-es-toolkit-DnvFX_hl.js → vendor-es-toolkit-BDp9OdLC.js} +4 -4
- package/dist/chunks/{vendor-loro-repo-B1zdQ8Qd.js → vendor-loro-repo-DbOhEZ39.js} +2166 -93
- package/dist/chunks/{vendor-zod-DAcQjQuC.js → vendor-zod-nebGZ0VM.js} +6 -6
- package/dist/claude-acp.js +28 -7
- package/dist/{cli-platform-Cfc6A61f.js → cli-platform-qpp4fxi7.js} +6 -6
- package/dist/{cli-presence-application-D2Dn0fPM.js → cli-presence-application-Cw9rnD3u.js} +18 -18
- package/dist/{client-BsIzN-iC.js → client-09TiIsd2.js} +33 -33
- package/dist/{cloudflared-native-DmvSYnMb.js → cloudflared-native-Ber1sIlU.js} +4 -4
- package/dist/cloudflared-worker.js +7 -7
- package/dist/{code-collab-Cgso3Ix3.js → code-collab-DRoDl8u7.js} +3 -3
- package/dist/codex-acp.js +2 -1
- package/dist/{command-runtime-C7EPuHLe.js → command-runtime-CYs2KAyh.js} +774 -224
- package/dist/{const-LYLptZ7f.js → const-C9yql4zo.js} +2 -2
- package/dist/{control-CgRxpxvc.js → control-HMzEZJTm.js} +36 -36
- package/dist/{cross-workspace-D6-aE1-w.js → cross-workspace-CEB-pWmO.js} +3 -3
- package/dist/{daemon-runner-Bn8O9-a0.js → daemon-runner-BHgvKJ_l.js} +27 -27
- package/dist/{daemon-DWm2IzH9.js → daemon-s8LqFNYd.js} +30 -30
- package/dist/{daemon-session-tools-BSAgq4O1.js → daemon-session-tools-CrxHUVDk.js} +46 -46
- package/dist/{daemon-shared-NcwWGSEj.js → daemon-shared-BGfDcTED.js} +10 -10
- package/dist/{daemon-update-qOLnkZcv.js → daemon-update-BjGbzSFc.js} +2 -2
- package/dist/deepseek-acp.js +14 -2
- package/dist/{deepseek-harness-runtime-D6lV9pxi.js → deepseek-harness-runtime-CtfyKY7w.js} +8 -8
- package/dist/{deepseek-system-node-C2YpUQwp.js → deepseek-system-node-CBHH8N-Z.js} +4 -4
- package/dist/{device-preview-BjqAbZ9g.js → device-preview-WVdriBmC.js} +36 -11
- package/dist/devin-acp.js +2 -1
- package/dist/{diff-line-counts-ClicfZ_E.js → diff-line-counts-C7vhQioX.js} +2 -2
- package/dist/{diff-worker-task-BVD3EgeO.js → diff-worker-task-wwEm25bo.js} +2 -2
- package/dist/diff-worker.js +5 -5
- package/dist/{discovery-query-C_7lyBI8.js → discovery-query-6rvHO0Ax.js} +4 -4
- package/dist/{dsh-DVyIAYZ9.js → dsh-D8jYqbih.js} +9 -9
- package/dist/{dsh-plugins-Dfsqsiu7.js → dsh-plugins-BGuhIgPz.js} +15 -15
- package/dist/{e2ee-CslOKVIM.js → e2ee-BDxs5Gma.js} +3 -3
- package/dist/{e2ee-execution-intent-DYBEG410.js → e2ee-execution-intent-BTTWEaTs.js} +4 -4
- package/dist/{export-C-zeWP1i.js → export-BVe6KJcH.js} +40 -40
- package/dist/{feedback-Dde39k5W.js → feedback-8RRkLuXP.js} +34 -34
- package/dist/{feedback-jvl2Dz8w.js → feedback-Da3aBQ2E.js} +4 -4
- package/dist/{file-index-scan-core-Bta7tnbY.js → file-index-scan-core-QNHdA1nq.js} +5 -5
- package/dist/file-index-scan-worker.js +8 -8
- package/dist/{file-lock-By0YSSDw.js → file-lock-Oeerthnp.js} +9 -9
- package/dist/{github-BtMkInqL.js → github-B3lOSLjx.js} +33 -33
- package/dist/grok-acp.js +2 -1
- package/dist/{http-transport-C1f1XEnB.js → http-transport-3J_3rzKQ.js} +6 -6
- package/dist/{index-C41WZg1y.js → index-C5TYbo5p.js} +2 -2
- package/dist/{index-CitAbDql.js → index-CNsJ2gEh.js} +19 -6
- package/dist/{index-BUam8GIX.js → index-CbO2HBCx.js} +35 -35
- package/dist/{index-Ce9khNjj.js → index-CvTdgB45.js} +87 -75
- package/dist/{index-BsfKnSuo.js → index-CzJfh76P.js} +991 -964
- package/dist/index-DdJk9U2O.js +202 -0
- package/dist/{index-Dy-FYtdl.js → index-DtKSPvAx.js} +41 -41
- package/dist/{index-CZG5q6QS.js → index-PK9ed2VJ.js} +4 -4
- package/dist/{index-CwHleXV2.js → index-Z-EXLH2-.js} +2 -2
- package/dist/index.js +15 -15
- package/dist/{internal-BPOwohVc.js → internal-210PnQHj.js} +48 -48
- package/dist/{ios-simulator-BduF_qia.js → ios-simulator-B8Edygo_.js} +10 -10
- package/dist/{local-cli-host-lease-Chm4-jV0.js → local-cli-host-lease-BcOQ-7Gk.js} +3 -3
- package/dist/{local-ipc-B8vySppK.js → local-ipc-BNwkKO5i.js} +156 -103
- package/dist/{local-project-control-client-CIBpaXbo.js → local-project-control-client-BKaZlhrn.js} +5 -5
- package/dist/{lody-mcp-http-protocol-DBLKn7SZ.js → lody-mcp-http-protocol-C24PR-58.js} +46 -10
- package/dist/{lody-mcp-server-B4OeNPT4.js → lody-mcp-server-C_KUMdUq.js} +84 -39
- package/dist/{logger-C-G7jpWR.js → logger-zm-QQb1B.js} +2 -2
- package/dist/{login-Df1IkdeV.js → login-DoRU06W8.js} +18 -18
- package/dist/{login-shell-env-HKDW5zwx.js → login-shell-env-CFLesG20.js} +6 -6
- package/dist/{logout-gDuSiB0l.js → logout-4T76xG1C.js} +18 -18
- package/dist/{machine-bjdZ1hmy.js → machine-BFM6JQSw.js} +42 -42
- package/dist/{machine-identity-restore-BuoxXyiw.js → machine-identity-restore-CYjkTQcN.js} +3 -3
- package/dist/{machine-protocol-capabilities-DEhAj9SH.js → machine-protocol-capabilities-DcJpLvsC.js} +68 -47
- package/dist/{magpie-import-IrqfCF6i.js → magpie-import-CsiqaviF.js} +52 -50
- package/dist/{managed-daemon-forwarding-BpXhy_-O.js → managed-daemon-forwarding-D10w26x_.js} +9 -9
- package/dist/{managed-daemon-release-CwkvVtSj.js → managed-daemon-release-Bq0NQ5KB.js} +8 -8
- package/dist/{mcp-DTnh_PAT.js → mcp-CFSVE37k.js} +39 -39
- package/dist/{migrate-CUdZ3XBR.js → migrate-D0JGnFDi.js} +40 -38
- package/dist/{open-browser-3TOC7G1u.js → open-browser-CXJ_k8PZ.js} +3 -3
- package/dist/{operation-CzLcjV3W.js → operation-CjjYD8KR.js} +35 -35
- package/dist/{operation-store-rllAX2mr.js → operation-store-CjW-plfi.js} +6 -6
- package/dist/{presence-CZco7UQH.js → presence-DfPa6xSX.js} +95 -71
- package/dist/{presence-legacy-DIYBtj5j.js → presence-legacy-B7H0xyqf.js} +5 -5
- package/dist/{process-DrX1wZZk.js → process-BU5vWwzZ.js} +3 -3
- package/dist/{process-options-DNYWY_s6.js → process-options-CvxupoAj.js} +4 -4
- package/dist/{project-C_EZ2dLN.js → project-DbFdl-Tc.js} +41 -41
- package/dist/{project-path-CAQE9bes.js → project-path-BylnHhzQ.js} +11 -11
- package/dist/{realtime-journal-DyMe8jsR.js → realtime-journal-D5hdU6Fc.js} +2 -2
- package/dist/{register-VLBUVPh5.js → register-DzkfcD0R.js} +33 -33
- package/dist/{registry-generated-wkLapT7U.js → registry-generated-BtQFYqS0.js} +30 -30
- package/dist/{remote-pairing-D24xSpRh.js → remote-pairing-B-1pCVbn.js} +40 -40
- package/dist/{reset-identity-DVubJrt0.js → reset-identity-BKSdKzDv.js} +40 -40
- package/dist/{review-6aCgWEdv.js → review-DHDdCwwj.js} +9 -9
- package/dist/{review-viewer-CRYK94SE.js → review-viewer-DO7rhsH9.js} +3 -3
- package/dist/{rpc-secret-CPdan_XW.js → rpc-secret-Ds9rnsWf.js} +2 -2
- package/dist/{runtime-diagnostics-5l1pBD3m.js → runtime-diagnostics-BElvgU5u.js} +5 -5
- package/dist/{schedule-CGTbG70S.js → schedule-C-UJnfpM.js} +39 -39
- package/dist/{schedule-command-client-C6matZWn.js → schedule-command-client-B2k5ix1s.js} +38 -38
- package/dist/{schedule-command-service-2gToipBI.js → schedule-command-service-pFq9cQHf.js} +134 -58
- package/dist/{schedule-documents-DRc0byQm.js → schedule-documents-Di23etFx.js} +3 -3
- package/dist/{schedule-recurrence-BVxMRfp4.js → schedule-recurrence-D4r80Udd.js} +42 -14
- package/dist/{schedule-repository-dz9iwR0x.js → schedule-repository-BNUNXl15.js} +4 -4
- package/dist/{schedule-run-preparation-1oSQ5i-A.js → schedule-run-preparation-D2GjotJy.js} +5 -5
- package/dist/{schedule-types-BquxGfza.js → schedule-types-B9O0I1Ui.js} +472 -364
- package/dist/{service-D9xJKmI-.js → service-pb71b8fj.js} +5 -5
- package/dist/{session-npaRR-y3.js → session-C6dNbMjx.js} +21 -21
- package/dist/{session-file-blob-store-CBHDgf4e.js → session-file-blob-store-CdpmEU94.js} +4 -4
- package/dist/{session-image-download-DUwc2Fb4.js → session-image-download-DeZ6r1-w.js} +4 -4
- package/dist/{session-input-MeZheBJ0.js → session-input-Dz8R9xPL.js} +3 -3
- package/dist/{session-link-demCF_Y_.js → session-link-CABPzB2T.js} +51 -2
- package/dist/{session-link-export-BM1zZQRs.js → session-link-export-CabjkQNk.js} +3 -3
- package/dist/{session-operation-targets-lq3rsTnV.js → session-operation-targets-B-VimRwZ.js} +3 -3
- package/dist/{setting-Cq6nKJgF.js → setting-CKO-Tb-e.js} +116 -64
- package/dist/{start-BolVcMOA.js → start-B83c1-EW.js} +957 -297
- package/dist/streams-crdt-factory-CkuXGilB.js +17 -0
- package/dist/{subagent-emitter-DALyc5yu.js → subagent-emitter-D-zUFnS9.js} +2 -2
- package/dist/{subagent-events-CyFbbE20.js → subagent-events-D22OQNDm.js} +7 -2
- package/dist/{sync-BrDYKZ4H.js → sync-Cf_HanAI.js} +35 -35
- package/dist/{time-sync-D63wG9u-.js → time-sync-DjSg4eHx.js} +2 -2
- package/dist/{workspace-Bthb-nhu.js → workspace-BCjgp5pF.js} +36 -36
- package/dist/{workspace-legacy-jZ0D5Xl-.js → workspace-legacy-DJAko-Yj.js} +24 -24
- package/package.json +5 -5
- package/dist/index-BTgKuz44.js +0 -65
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { L as LODY_AUTH_URL } from "./const-
|
|
3
|
-
import { m as defineToolAction, n as actionToolInputSchema, r as runToolAction, e as automationReadResponseSchema, b as automationEventReadParametersSchema, a as automationEmptyReadParametersSchema, o as commandHelpReminder, L as LODY_HELP_INSTRUCTIONS, p as createToolHelpServer, t as turnNotificationAudience, q as resolveSessionMessageAuthor, s as createSessionPullRequestLinks } from "./lody-mcp-http-protocol-
|
|
4
|
-
import {
|
|
1
|
+
import { b_ as createSessionBackend, b$ as SYNC_CONFIRMATION_TIMEOUT_MS, cq as WorkspaceSyncUnavailableError, cG as decryptShareDelivery, cH as createShareDeliveryKey, cI as ShareDeliveryPublicKeySchema, cJ as WORKSPACE_SYNC_UNAVAILABLE_MESSAGE, a9 as getAuthContextOrThrow, ab as resolveWorkspaceOrThrow, ac as withWorkspaceManager, ck as syncWorkspaceMetaForRead, bW as getSessionCommandEnvironment, ae as listAliveDocMetas, af as normalizeCliValue, bX as listMergedAgentConfigs, cs as readMachineLocalProjects, ag as listWorkspaceGitHubRepositoriesForCliToken, cB as LocalDaemonAvailabilityError, cz as createCommandAttachmentTransfer, cK as getCommandSessionSharingPort, cl as listAliveSessionMetas, cL as runWithSessionHistoryRequester, co as FlockSyncUnavailableError, cy as resolveDaemonTarget, bV as getDaemonWorkspace, ct as withMachineRpcClient, bY as ensureWorkspaceMetaSynced, cM as canReadSessionForCliRequester, aj as classifyLocalDaemonIpcError } from "./command-runtime-CYs2KAyh.js";
|
|
2
|
+
import { L as LODY_AUTH_URL } from "./const-C9yql4zo.js";
|
|
3
|
+
import { m as defineToolAction, n as actionToolInputSchema, r as runToolAction, e as automationReadResponseSchema, b as automationEventReadParametersSchema, a as automationEmptyReadParametersSchema, o as commandHelpReminder, L as LODY_HELP_INSTRUCTIONS, p as createToolHelpServer, t as turnNotificationAudience, q as resolveSessionMessageAuthor, s as resolveSessionModelDisplayName, u as createSessionPullRequestLinks } from "./lody-mcp-http-protocol-C24PR-58.js";
|
|
4
|
+
import { bE as AgentRoleUpdateProposalSchema, bC as AgentRoleCreateProposalSchema, bD as AgentRoleProposalMetaSchema, eI as applyAgentRoleProposal, v as ScheduleProposalRuleSchema, aE as ScheduleProposalTargetSchema, aF as ScheduleProposalDestinationSchema, d as automationEventSchema, eR as describeChatFailure, aT as readChatFailureNotice, E as ENV_VAR_NAME_PATTERN, bY as LODY_MAX_CHAIN_DEPTH, H as SessionIdSchema, O as LodyOperationIdSchema, aJ as getAgentRoleTargets, aI as isMultiTargetAgentRole, aK as bindAgentRoleTarget, Y as readMessageAuthor, eU as enrichAgentMessageAuthorModel, c1 as LODY_OPERATION_MIN_DEADLINE_SECONDS, c0 as LODY_OPERATION_MAX_DEADLINE_SECONDS, fC as makeLodyError, aH as LocalSessionControlResponseSchema, bZ as LODY_OPERATION_DEFAULT_DEADLINE_SECONDS, q as normalizeSessionTurnInputConfig, aW as hasAgentRunConfigSelection, Z as snapshotAgentRole, gk as shouldBypassSessionQuota } from "./schedule-types-B9O0I1Ui.js";
|
|
5
5
|
import { randomUUID, createHash } from "node:crypto";
|
|
6
6
|
import { isDeepStrictEqual } from "node:util";
|
|
7
|
-
import {
|
|
8
|
-
import { g as getServerNow } from "./time-sync-
|
|
9
|
-
import { o as object, a as literal, c as string, n as number, e as array, B as json, t as toJSONSchema, r as record, k as discriminatedUnion, Z as ZodIssueCode, D as ZodError, f as _enum,
|
|
10
|
-
import { M as MachineAccessVerificationError, t as toSessionTranscriptEntry, i as isVisibleTranscriptTurn, u as upsertWorkspaceMcpCatalogEntry, l as listWorkspaceMcpCatalog, s as syncMcpCatalog, C as CatalogSyncingError, e as MACHINE_CATALOG_RETRY_GUIDANCE, f as loadWorkspaceAgentRoleCatalog, g as bindAgentRoleCreateOptions, h as createSessionResult, j as sendSessionChatResult, k as assertMachineFlockCacheSufficient, m as selectDefaultAgentConfigForCreate, n as summarizeDiscoveryAgent, o as agentConfigQuotaResetAt, c as classifyMachinePresence, v as validateSessionCreateOptions, q as MachineFlockReadUnavailableError, w as prepareSessionInputAttachments, x as readSessionMcpIdsForAuthoring, y as validateSessionChatTarget, z as MachineOfflineError, A as cancelSessionTurn, B as runSessionOperationWithSyncedMetadata, D as assertSessionManagementAccess, E as readSessionLiveStatusesMany, S as SessionManagementAccessDeniedError, F as readLocalProjectGitStateOnMachine, G as resolveTurnDispatchConfig, H as readSessionMachineAccess, I as createResourceDiscovery } from "./session-
|
|
11
|
-
import { g as getLogger } from "./logger-
|
|
12
|
-
import { r as resolveSessionLinkId } from "./session-link-
|
|
7
|
+
import { t as listWorkspaceAgentRoles, u as readWorkspaceFlockRowsFromFlock, s as getWorkspaceFlockDocId, g as getMachineFlockDocId, f as isLoroRepoDocDeleted, L as resolveProjectGitHubRepo, j as getMachineFlockAcpCapabilities, h as readMachineFlockRowsFromFlock, A as ACP_CAPABILITY_ROW_FAMILIES, k as getMachineFlockRateLimits, dY as resolveSessionPullRequests, dk as normalizeSessionPullRequestMeta, I as hasPendingUserTurnActivation, K as resolveActiveAssistantTurnId, cU as isContainedSession } from "./access-DIhEb_MP.js";
|
|
8
|
+
import { g as getServerNow } from "./time-sync-DjSg4eHx.js";
|
|
9
|
+
import { o as object, a as literal, c as string, n as number, e as array, B as json, t as toJSONSchema, r as record, k as discriminatedUnion, Z as ZodIssueCode, D as ZodError, f as _enum, I as xor, H as never, d as boolean, u as union, x as number$1 } from "./chunks/vendor-zod-nebGZ0VM.js";
|
|
10
|
+
import { M as MachineAccessVerificationError, t as toSessionTranscriptEntry, i as isVisibleTranscriptTurn, u as upsertWorkspaceMcpCatalogEntry, l as listWorkspaceMcpCatalog, s as syncMcpCatalog, C as CatalogSyncingError, e as MACHINE_CATALOG_RETRY_GUIDANCE, f as loadWorkspaceAgentRoleCatalog, g as bindAgentRoleCreateOptions, h as createSessionResult, j as sendSessionChatResult, k as assertMachineFlockCacheSufficient, m as selectDefaultAgentConfigForCreate, n as summarizeDiscoveryAgent, o as agentConfigQuotaResetAt, c as classifyMachinePresence, v as validateSessionCreateOptions, q as MachineFlockReadUnavailableError, w as prepareSessionInputAttachments, x as readSessionMcpIdsForAuthoring, y as validateSessionChatTarget, z as MachineOfflineError, A as cancelSessionTurn, B as runSessionOperationWithSyncedMetadata, D as assertSessionManagementAccess, E as readSessionLiveStatusesMany, S as SessionManagementAccessDeniedError, F as readLocalProjectGitStateOnMachine, G as resolveTurnDispatchConfig, H as readSessionMachineAccess, I as createResourceDiscovery } from "./session-C6dNbMjx.js";
|
|
11
|
+
import { g as getLogger } from "./logger-zm-QQb1B.js";
|
|
12
|
+
import { r as resolveSessionLinkId } from "./session-link-CABPzB2T.js";
|
|
13
13
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
14
14
|
import path__default from "path";
|
|
15
|
-
import { P as ProtocolError, M as McpServer } from "./chunks/vendor-@modelcontextprotocol-server-
|
|
15
|
+
import { P as ProtocolError, M as McpServer } from "./chunks/vendor-@modelcontextprotocol-server-C9c_OMTp.js";
|
|
16
16
|
import "node:process";
|
|
17
17
|
import { mkdir, readFile, writeFile, link, unlink } from "node:fs/promises";
|
|
18
18
|
import { join } from "node:path";
|
|
19
19
|
import { setTimeout } from "node:timers/promises";
|
|
20
20
|
import { g as getLodyDataDir } from "./installation-profile-BgCqPyUj.js";
|
|
21
|
-
import {
|
|
22
|
-
import { s as submitAgentFeedback, M as MAX_AGENT_FEEDBACK_LENGTH } from "./feedback-
|
|
23
|
-
import { a as LodyOperationStoreError, O as OperationListQuerySchema, r as runWithOperationStoreBusyRetry, L as LodyOperationStore, g as getLodyOperationStorePath } from "./operation-store-
|
|
21
|
+
import { c as automationCommandSchema, i as automationResultSchema, f as automationProgramContextSchema, z as AndroidAvdNameSchema, B as AndroidEmulatorCommandSchema, H as AndroidEmulatorResponseSchema, u as makeLocalControlClientAuto, a$ as SessionActiveInvocationContextResultSchema } from "./local-ipc-BNwkKO5i.js";
|
|
22
|
+
import { s as submitAgentFeedback, M as MAX_AGENT_FEEDBACK_LENGTH } from "./feedback-Da3aBQ2E.js";
|
|
23
|
+
import { a as LodyOperationStoreError, O as OperationListQuerySchema, r as runWithOperationStoreBusyRetry, L as LodyOperationStore, g as getLodyOperationStorePath } from "./operation-store-CjW-plfi.js";
|
|
24
24
|
import { d as distExports } from "./chunks/vendor-yaml-D87Y_V4L.js";
|
|
25
|
-
import { c5 as INVALID_PARAMS } from "./chunks/vendor-@modelcontextprotocol-core-
|
|
25
|
+
import { c5 as INVALID_PARAMS } from "./chunks/vendor-@modelcontextprotocol-core-BkUcdvo6.js";
|
|
26
26
|
import { p as pageVisibleTranscript } from "./visible-transcript-bxLrh3_C.js";
|
|
27
|
-
import { v as version } from "./http-transport-
|
|
28
|
-
import { d as captureSessionCommandEvent } from "./analytics-events-
|
|
29
|
-
import { i as initCliAnalytics, c as captureCli } from "./login-shell-env-
|
|
30
|
-
import { R as ResourceListSchemas, c as SessionDiscoveryFilterShape, d as discoveryCursor, e as matchesSessionDiscovery } from "./discovery-query-
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { i as isSessionCollaborationStopped } from "./session-operation-targets-
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { a as machineSupportsProtocolCapability, M as MACHINE_PROTOCOL_CAPABILITIES } from "./machine-protocol-capabilities-
|
|
37
|
-
import { cV as runPromise,
|
|
27
|
+
import { v as version } from "./http-transport-3J_3rzKQ.js";
|
|
28
|
+
import { d as captureSessionCommandEvent } from "./analytics-events-BNLOju7l.js";
|
|
29
|
+
import { i as initCliAnalytics, c as captureCli } from "./login-shell-env-CFLesG20.js";
|
|
30
|
+
import { R as ResourceListSchemas, c as SessionDiscoveryFilterShape, d as discoveryCursor, e as matchesSessionDiscovery } from "./discovery-query-6rvHO0Ax.js";
|
|
31
|
+
import { l as IosSimulatorUdidSchema, d as IosSimulatorCommandSchema, a as IosSimulatorResponseSchema } from "./ios-simulator-B8Edygo_.js";
|
|
32
|
+
import { w as SESSION_IMAGE_MAX_COUNT, S as SESSION_FILE_MAX_COUNT, a as SESSION_FILE_MAX_SIZE_BYTES, e as getAcpCapabilityCacheKey } from "./magpie-import-CsiqaviF.js";
|
|
33
|
+
import { i as isSessionCollaborationStopped } from "./session-operation-targets-B-VimRwZ.js";
|
|
34
|
+
import { n as getMachineRoomId, b as getSessionRoomId, am as collectViewedSessionIdsFromPresence, au as findFreshSessionPresenceState, i as isMachineDocRoomId } from "./presence-DfPa6xSX.js";
|
|
35
|
+
import { y as parseGitHubPullRequestUrl } from "./project-path-BylnHhzQ.js";
|
|
36
|
+
import { a as machineSupportsProtocolCapability, M as MACHINE_PROTOCOL_CAPABILITIES } from "./machine-protocol-capabilities-DcJpLvsC.js";
|
|
37
|
+
import { cV as runPromise, a$ as catchTag, R as fail, cI as result } from "./chunks/vendor-effect-BTVRmkqM.js";
|
|
38
38
|
const AGENT_ROLE_TOOL_NAME = "lody_agent_role";
|
|
39
39
|
function registerAgentRoleTools(register, execute, errorResult) {
|
|
40
40
|
const call = async (command) => {
|
|
@@ -325,6 +325,13 @@ const proposeInputSchema = object({
|
|
|
325
325
|
destination: ScheduleProposalDestinationSchema.optional(),
|
|
326
326
|
target: ScheduleProposalTargetSchema.optional()
|
|
327
327
|
}).strict();
|
|
328
|
+
const proposeEditInputSchema = object({
|
|
329
|
+
scheduleId: id,
|
|
330
|
+
requestId: id,
|
|
331
|
+
title: proposeInputSchema.shape.title.optional(),
|
|
332
|
+
prompt: proposeInputSchema.shape.prompt.optional(),
|
|
333
|
+
rule: ScheduleProposalRuleSchema.optional()
|
|
334
|
+
}).strict();
|
|
328
335
|
const scheduleCall = (deps) => async (command) => {
|
|
329
336
|
try {
|
|
330
337
|
return {
|
|
@@ -383,6 +390,20 @@ function registerScheduleTool(server, deps) {
|
|
|
383
390
|
inputSchema: proposeInputSchema,
|
|
384
391
|
run: (args) => call({ action: "propose", ...args })
|
|
385
392
|
}),
|
|
393
|
+
propose_edit: defineToolAction({
|
|
394
|
+
summary: "Propose a change to an owned Schedule for user confirmation; it changes only when the user clicks Apply.",
|
|
395
|
+
description: [
|
|
396
|
+
"Propose a change to the title, prompt or rule of an existing Schedule owned by the",
|
|
397
|
+
"authenticated user. This writes a card into the current chat that shows the change; the",
|
|
398
|
+
"Schedule changes only when the user presses Apply. Fields left out keep their value.",
|
|
399
|
+
"`prompt` replaces the whole prompt. `rule` takes the",
|
|
400
|
+
"shapes of propose. The card can no longer be applied after the Schedule is edited, and a",
|
|
401
|
+
"proposal for the edited Schedule needs a new requestId. The same requestId with the same",
|
|
402
|
+
"change returns that proposal and its outcome."
|
|
403
|
+
].join(" "),
|
|
404
|
+
inputSchema: proposeEditInputSchema,
|
|
405
|
+
run: ({ scheduleId, requestId, ...patch }) => call({ action: "propose_edit", scheduleId, requestId, patch })
|
|
406
|
+
}),
|
|
386
407
|
pause: defineToolAction({
|
|
387
408
|
summary: "Pause future runs of one owned Schedule; already accepted Sessions continue.",
|
|
388
409
|
description: "Pause a Schedule owned by the authenticated user. Already accepted Sessions continue. Reuse requestId when retrying. Resume requires a human.",
|
|
@@ -393,10 +414,10 @@ function registerScheduleTool(server, deps) {
|
|
|
393
414
|
server.registerTool(
|
|
394
415
|
SCHEDULE_TOOL_NAME,
|
|
395
416
|
{
|
|
396
|
-
summary: "Propose scheduled work for user confirmation, or pause an owned Schedule. Read Schedules with lody_catalog.",
|
|
417
|
+
summary: "Propose scheduled work or a change to an owned Schedule for user confirmation, or pause an owned Schedule. Read Schedules with lody_catalog.",
|
|
397
418
|
title: "Change Lody Schedules",
|
|
398
|
-
description: "Actions: propose (writes a confirmation card; nothing is scheduled until the user clicks Create) and pause. Read Schedules with lody_catalog action schedules.",
|
|
399
|
-
inputSchema: actionToolInputSchema(actions, "propose or pause."),
|
|
419
|
+
description: "Actions: propose (writes a confirmation card; nothing is scheduled until the user clicks Create), propose_edit (writes a card with a change to an existing Schedule; nothing changes until the user clicks Apply) and pause. Read Schedules with lody_catalog action schedules.",
|
|
420
|
+
inputSchema: actionToolInputSchema(actions, "propose, propose_edit or pause."),
|
|
400
421
|
actions
|
|
401
422
|
},
|
|
402
423
|
(input) => runToolAction(actions, input)
|
|
@@ -438,7 +459,7 @@ function registerAutomationTools(server, execute) {
|
|
|
438
459
|
}
|
|
439
460
|
);
|
|
440
461
|
}
|
|
441
|
-
const skill = '---\nname: lody-automations\ndescription: Run a command beyond the current turn and resume when it exits, register a background condition that resumes this Session when ready, inspect or cancel waits, and configure quota recovery, idle compaction, archive after merge or Auto delivery of the current pull request.\n---\n\n# Lody Automations\n\nUse `lody_automation` for commands that must continue after the current turn ends and resume the Session on exit, or for future behavior the user requested. Ordinary commands, builds and tests stay in the current turn; duration alone is not a reason to use Automation. A registration defaults to this Session. Pass `sessionId` to target another owned Session on the same machine; Lody checks the condition and queues the result in that target conversation. Registration returns immediately.\n\n## Choose the operation\n\n| Need | Read next |\n| ---------------------------------------------------------------------- | ------------------------------------------------------------------ |\n| Continue a command after this turn ends and resume on exit | The run section below |\n| Wait for data to satisfy a custom condition | [Context](references/context.md), then the relevant data reference |\n| Recover after quota limits, compact while idle, or archive after merge | [Session settings](references/settings.md); no condition JS needed |\n| Hand the current PR\'s CI fixes, conflicts or merge to Lody | [Session settings](references/settings.md), Auto delivery |\n| Inspect, cancel, or diagnose existing work | The inspection section below |\n| Exact command fields, defaults and limits | `references/commands.schema.json`, generated from the running API |\n\nLoad only the references needed for the task, relative to this skill\'s directory.\nThe skill manifest includes schema files and examples; read those resources only\nwhen their detail is needed.\n\n## Register a condition\n\nCall `lody_automation` with this argument shape:\n\n```json\n{\n "command": {\n "type": "register",\n "reason": "Wait for related work to finish",\n "program": "async ({ ctx }) => { const { value: group } = await ctx.read(\'session.group\'); if (group.value !== \'yes\') return false; return { resumeText: \'Related work is complete. Continue summarizing the results.\' }; }"\n }\n}\n```\n\nThe program is a function expression, without imports or exports. Return `false`\nto keep waiting, or `{resumeText, payload?}` to finish. `true`, an absent return,\nand empty resume text are invalid. Await every read. Each check starts with fresh\nlocal variables; do not write a polling loop or rely on a previous check\'s variables.\n\nUse the returned ID to identify this wait. Matching active registrations deduplicate;\ncheck `list` after an uncertain registration response before changing the request.\nOnce registered, finish the current turn when its other work is done. Do not poll\nthe automation from the Agent: the daemon owns subsequent checks and delivery.\n\nEach wait completes once. A condition already satisfied at registration can match\nimmediately. Register again for a later cycle only when the user\'s task requires it.\nBusy Sessions queue continuation; automation does not clear a user\'s Stop.\n\n## Run beyond the current turn\n\nUse `run` only when work must outlive the current turn and its completion needs\nto resume the Session. An idle Session may be reclaimed, which ends background\nprocesses the Agent started. Lody owns a `run` process instead: it keeps running, and its exit queues\none continuation in this Session with the exit code or signal, duration, log path\nand the last 4 KiB of output.\n\n```json\n{ "command": { "type": "run", "command": "pnpm", "args": ["test"], "reason": "Full test suite" } }\n```\n\nThe command runs without a shell in the Session workdir, or in `cwd` relative to\nit. It receives `PATH`, home and temp variables plus any `env` you pass; do not pass\nsecrets. The full output is in the returned `run.logPath` (16 MiB limit). An\nidentical unfinished run returns the existing registration. `cancel` with the\nreturned ID terminates the process. If Lody restarts first, the continuation reports\nthe run as interrupted; Lody never starts it again.\n\n## Inspect or cancel\n\nAll calls use `lody_automation({command: ...})`:\n\n| Command | Result/use |\n| ------------------------------------- | ------------------------------------------------------------------- |\n| `{ "type": "list" }` | This Session\'s condition waits and runs |\n| `{ "type": "show", "id": "WAIT_ID" }` | Check state, last error, next check and continuation |\n| `{ "type": "cancel", "id": "ID" }` | Cancel a wait or an activity, including its pending continuation |\n| `{ "type": "activities" }` | Delivery, recovery and maintenance activity, with pagination cursor |\n| `{ "type": "settings" }` | Current Session feature settings |\n\n`matched` means the condition finished, not that the Agent finished the resumed work.\nInspect `continuation.state` for delivery. `failed` after repeated check errors needs\ndiagnosis; `expired` means the wait reached its deadline. Cancellation does not undo\ncompleted work. The daemon must be running to check or deliver; persisted waits\nresume after daemon restart.\n';
|
|
462
|
+
const skill$1 = '---\nname: lody-automations\ndescription: Run a command beyond the current turn and resume when it exits, register a background condition that resumes this Session when ready, inspect or cancel waits, and configure quota recovery, idle compaction, archive after merge or Auto delivery of the current pull request.\n---\n\n# Lody Automations\n\nUse `lody_automation` for commands that must continue after the current turn ends and resume the Session on exit, or for future behavior the user requested. Ordinary commands, builds and tests stay in the current turn; duration alone is not a reason to use Automation. A registration defaults to this Session. Pass `sessionId` to target another owned Session on the same machine; Lody checks the condition and queues the result in that target conversation. Registration returns immediately.\n\n## Choose the operation\n\n| Need | Read next |\n| ---------------------------------------------------------------------- | ------------------------------------------------------------------ |\n| Continue a command after this turn ends and resume on exit | The run section below |\n| Wait for data to satisfy a custom condition | [Context](references/context.md), then the relevant data reference |\n| Recover after quota limits, compact while idle, or archive after merge | [Session settings](references/settings.md); no condition JS needed |\n| Hand the current PR\'s CI fixes, conflicts or merge to Lody | [Session settings](references/settings.md), Auto delivery |\n| Inspect, cancel, or diagnose existing work | The inspection section below |\n| Exact command fields, defaults and limits | `references/commands.schema.json`, generated from the running API |\n\nLoad only the references needed for the task, relative to this skill\'s directory.\nThe skill manifest includes schema files and examples; read those resources only\nwhen their detail is needed.\n\n## Register a condition\n\nCall `lody_automation` with this argument shape:\n\n```json\n{\n "command": {\n "type": "register",\n "reason": "Wait for related work to finish",\n "program": "async ({ ctx }) => { const { value: group } = await ctx.read(\'session.group\'); if (group.value !== \'yes\') return false; return { resumeText: \'Related work is complete. Continue summarizing the results.\' }; }"\n }\n}\n```\n\nThe program is a function expression, without imports or exports. Return `false`\nto keep waiting, or `{resumeText, payload?}` to finish. `true`, an absent return,\nand empty resume text are invalid. Await every read. Each check starts with fresh\nlocal variables; do not write a polling loop or rely on a previous check\'s variables.\n\nUse the returned ID to identify this wait. Matching active registrations deduplicate;\ncheck `list` after an uncertain registration response before changing the request.\nOnce registered, finish the current turn when its other work is done. Do not poll\nthe automation from the Agent: the daemon owns subsequent checks and delivery.\n\nEach wait completes once. A condition already satisfied at registration can match\nimmediately. Register again for a later cycle only when the user\'s task requires it.\nBusy Sessions queue continuation; automation does not clear a user\'s Stop.\n\n## Run beyond the current turn\n\nUse `run` only when work must outlive the current turn and its completion needs\nto resume the Session. An idle Session may be reclaimed, which ends background\nprocesses the Agent started. Lody owns a `run` process instead: it keeps running, and its exit queues\none continuation in this Session with the exit code or signal, duration, log path\nand the last 4 KiB of output.\n\n```json\n{ "command": { "type": "run", "command": "pnpm", "args": ["test"], "reason": "Full test suite" } }\n```\n\nThe command runs without a shell in the Session workdir, or in `cwd` relative to\nit. It receives `PATH`, home and temp variables plus any `env` you pass; do not pass\nsecrets. The full output is in the returned `run.logPath` (16 MiB limit). An\nidentical unfinished run returns the existing registration. `cancel` with the\nreturned ID terminates the process. If Lody restarts first, the continuation reports\nthe run as interrupted; Lody never starts it again.\n\n## Inspect or cancel\n\nAll calls use `lody_automation({command: ...})`:\n\n| Command | Result/use |\n| ------------------------------------- | ------------------------------------------------------------------- |\n| `{ "type": "list" }` | This Session\'s condition waits and runs |\n| `{ "type": "show", "id": "WAIT_ID" }` | Check state, last error, next check and continuation |\n| `{ "type": "cancel", "id": "ID" }` | Cancel a wait or an activity, including its pending continuation |\n| `{ "type": "activities" }` | Delivery, recovery and maintenance activity, with pagination cursor |\n| `{ "type": "settings" }` | Current Session feature settings |\n\n`matched` means the condition finished, not that the Agent finished the resumed work.\nInspect `continuation.state` for delivery. `failed` after repeated check errors needs\ndiagnosis; `expired` means the wait reached its deadline. Cancellation does not undo\ncompleted work. The daemon must be running to check or deliver; persisted waits\nresume after daemon restart.\n';
|
|
442
463
|
const context = "# Condition context\n\nThe argument is `{ctx}`, not a global object. Available members:\n\n```ts\nctx.sessionId: string\nctx.workspaceId: string\nctx.now: number // Epoch milliseconds for this check.\nctx.read(resource: string, parameters?: object): Promise<{\n value: unknown\n observedAt: number // Epoch milliseconds for the observation.\n}>\nctx.exec(options: { command: string, args?: string[], cwd?: string }): Promise<{\n exitCode: number | null, signal: string | null, stdout: string, stderr: string\n}>\nctx.fetch(url: string, options?: { method?: 'GET' | 'HEAD', headers?: Record<string, string> }): Promise<{\n ok: boolean, status: number, url: string, headers: Record<string, string>,\n text(): Promise<string>, json(): Promise<unknown>\n}>\n```\n\nWorkspace is the storage/runtime scope; Session is the fixed continuation target.\n`ctx.now` is not evidence that an external service is ready. `observedAt` is the\nobservation timestamp, not a promise of freshness for every nested field.\n\n| Resource | Parameters | Read when |\n| --------------------- | ------------------ | -------------------------------------------------------------------------------------------------- |\n| `session` | None | [Session state](skill://lody-automations/references/session.md): compare input identifiers |\n| `session.group` | None | [Session state](skill://lody-automations/references/session.md): wait for related work to settle |\n| `github.pullRequests` | None | [GitHub](skill://lody-automations/references/github.md): inspect associated PRs |\n| `github.workflowRuns` | None | [GitHub](skill://lody-automations/references/github.md): evaluate CI results for current PR HEAD |\n| `provider.capacity` | None | [Capacity](skill://lody-automations/references/capacity.md): inspect an existing quota observation |\n| `events` | `since?`, `limit?` | [Events](skill://lody-automations/references/events.md): compose predicates over persisted facts |\n\nFor resources with no parameters, omit the argument or pass `{}`. Arbitrary resource\nnames and extra parameters are rejected. For exact context, return and read parameter\nschemas, read `skill://lody-automations/references/context.schema.json`.\n\nReads return data; the condition uses CodeMode’s supported JavaScript subset. Unknown/incomplete observations\nmust not be treated as success. Payloads must be JSON; return concise results rather\nthan all observations. Each check permits up to 32 read, fetch or exec calls and each observation is\nbounded to 128 KiB; the result is bounded to 64 KiB. Five consecutive check errors\nfail the wait; a successful check resets that counter.\n\n`ctx.fetch` reads HTTP or HTTPS endpoints accessible from the Host, including local services. It rejects redirects, URL credentials and request headers other than `accept` and `accept-language`. Responses are buffered up to 64 KiB; HTTP errors return their status, while transport failures fail the check. Checks may repeat, so use observational endpoints and never embed secrets in the program. `ctx.fetch` shares the call and concurrency limits with `ctx.read`.\n\n`ctx.exec` runs an executable in the Session workdir; `cwd`, when supplied, is relative to it. Arguments are passed directly, without shell interpolation. For shell syntax, invoke a shell explicitly. Nonzero exit codes are returned as data. Commands have the local OS user's authority, receive a limited environment, and may run again after interruption or restart; use checks that are safe to repeat.\n\n```js\nasync ({ ctx }) => {\n const result = await ctx.exec({ command: 'git', args: ['status', '--short'] });\n return result.exitCode === 0 && result.stdout.trim() === ''\n ? { resumeText: 'The working tree is clean. Continue.' }\n : false;\n}\n```\n\nThe program has no direct Node, filesystem, shell, MCP tool call, import, or credential access. `ctx.exec` can run a shell and access files or the network through the invoked command. The registration tool runs outside the interpreter; its presence does not make it callable inside JS.\n";
|
|
443
464
|
const session = "# Session observations\n\n`const {value: session} = await ctx.read('session')` returns:\n\n```ts\n{\n id: string;\n latestInputId: string | null;\n lastHandledInputId: string | null;\n archived: boolean;\n stopped: boolean;\n}\n```\n\nReads require a live registration and an available, owned Session. A stopped or\narchived Session can reject the read; do not depend on polling those flags to bypass\nStop or reactivate it. Matching input identifiers alone does not establish group\nsettlement.\n\n`const {value: group} = await ctx.read('session.group')` returns:\n\n```ts\n{\n value: 'yes' | 'no' | 'unknown';\n reason: string;\n retryAt?: number;\n}\n```\n\nThe group includes related Sessions, queues, Goals, native work and other automation\nwork. This wait is excluded so it does not wait for itself. Continue only when\n`group.value === 'yes'`. The outer `value` is the observation; the inner `value`\nis the settlement verdict.\n";
|
|
444
465
|
const github = "# GitHub observations\n\nThese resources read PRs already associated with this Session. They do not accept\nan arbitrary repository or PR URL. JavaScript may filter the returned associations.\n\n`github.workflowRuns` returns one of:\n\n```ts\n{\n status: 'unknown';\n reason: string;\n}\n// or\n{\n status: 'observed';\n pullRequests: Array<{\n prUrl: string;\n headSha: string;\n runs: Array<{\n runId: number;\n attempt: number;\n workflowId: number;\n headSha: string;\n branch: string | null;\n status: string;\n conclusion: string | null;\n updatedAt: number;\n url: string;\n repository: string;\n headRepository: string | null;\n prNumbers: number[];\n }>;\n }>;\n}\n```\n\nOnly the current associated PR per repository is checked. Missing, stale, fork or\nincomplete evidence yields `unknown`; return `false` then. The poller owns GitHub\nrequests and quota limits. `intervalMs` controls JS checks, not GitHub polling rate.\nAn observation covers available workflow runs, not a guarantee that every required\ncheck has been created. Do not infer merge readiness from all returned runs passing.\n\nRead `skill://lody-automations/examples/wait-for-ci.js`, then pass its complete\nfunction source as `command.program`. It matches completed runs whose conclusion is\n`failure`. Add other conclusions only if the requested condition includes them.\nIt can match an existing failure immediately; it does not mean “only failures after\nregistration.” Lody captures HEAD/run evidence and rechecks it before delivery.\n\n`github.pullRequests` returns an array:\n\n```ts\nArray<{\n url: string;\n status: string;\n observation: Record<string, unknown> | null;\n observedAt: number | null;\n}>;\n```\n\n`status` is association metadata; the optional poll observation carries the source\nsnapshot. For automatic archive after merge, use the built-in setting described in\n[settings.md](skill://lody-automations/references/settings.md), which also waits for group settlement.\n";
|
|
@@ -453,6 +474,7 @@ const skillEntrySchema = object({
|
|
|
453
474
|
});
|
|
454
475
|
function bundleSkill(files) {
|
|
455
476
|
const entry = files["SKILL.md"];
|
|
477
|
+
if (!entry) throw new Error("Bundled skill requires SKILL.md");
|
|
456
478
|
const header = /^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/.exec(entry)?.[1];
|
|
457
479
|
if (!header) throw new Error("Bundled skill requires frontmatter");
|
|
458
480
|
const frontmatter = skillEntrySchema.shape.frontmatter.parse(distExports.parse(header));
|
|
@@ -480,7 +502,7 @@ function bundleSkill(files) {
|
|
|
480
502
|
const schemaText = (schema) => `${JSON.stringify(toJSONSchema(schema, { io: "input" }), null, 2)}
|
|
481
503
|
`;
|
|
482
504
|
const automationSkill = bundleSkill({
|
|
483
|
-
"SKILL.md": skill,
|
|
505
|
+
"SKILL.md": skill$1,
|
|
484
506
|
"references/context.md": context,
|
|
485
507
|
"references/session.md": session,
|
|
486
508
|
"references/github.md": github,
|
|
@@ -506,7 +528,19 @@ const automationSkill = bundleSkill({
|
|
|
506
528
|
),
|
|
507
529
|
"references/events.schema.json": schemaText(automationEventSchema)
|
|
508
530
|
});
|
|
509
|
-
const
|
|
531
|
+
const skill = '---\nname: genui\ndescription: Author `genui` fenced blocks — declarative, stateful, interactive UI inside chat answers — or inline catalog tags in ordinary markdown. Use when a reply benefits from controls (sliders, switches, selects, buttons) instead of static text. Read a reference file only for the component families you actually use.\n---\n\n# GenUI surface authoring\n\nUse ordinary Markdown for prose, lists, and tables. Embed a static `Icon` or\n`Badge` directly in that Markdown. Use a fenced `genui` block for cards, other\ncatalog layouts, controls, and values that depend on state. Put every control\nand display that shares state in the same fence, even across several cards.\n\nUse a `<Card>` wrapper when the request calls for a card, with its\n`<Column>` or `<Row>` inside. Preserve requested state slot names, exact\nbutton labels, and specified display text.\n\nStart the fence with the `{@state}` directives, then write JSX-like markup.\nA fence mounts while it streams. Each element appears when its open tag\ncloses, so declare state before any markup that reads it.\n\n```genui\n{@state const [tickets, setTickets] = useState(0)}\n<Card>\n <Column gap={8}>\n <Heading>Tickets</Heading>\n <Text>{tickets}</Text>\n <Badge>{`Reserved: ${tickets}`}</Badge>\n <Button onClick={() => {\n setTickets(prev => prev + 1);\n setTickets(prev => prev + 1);\n }}>Reserve two tickets</Button>\n </Column>\n</Card>\n```\n\n## Rules that are enforced, not conventions\n\n- `{@state const [x, setX] = useState(<expr>)}` is the *only* way to declare state.\n It must appear before the markup, never inside it. `x` is read in expressions;\n `setX(next)` or `setX((prev) => next)` writes it. Re-declared slots keep their\n committed value across revisions — `useState` is a *default*, not a reset.\n Each functional setter reads the latest committed value, including writes\n earlier in the same callback.\n- `{expr}` in markup is an *expression hole*: no `const`, `if`, or statements.\n Event props take JS callbacks: `onChange={(v) => setV(v)}`, `onClick={() => …}`.\n- The evaluator is confined: literals, arithmetic, ternaries, template strings,\n arrow functions, array methods (`map/filter/find/reduce/sort/…`), calls into\n state setters and `lody.*` capabilities. No `window`/`fetch`/`import`/globals.\n- Every tag must be in the catalog below — an unknown tag renders as an\n inline `<tag>` placeholder plus a diagnostic, never a crash.\n- Adjacent literal text is trimmed at expression boundaries. Put the full\n label in one template literal to preserve spaces in `Text` and `Badge`.\n For a standalone value, use just `<Text>{value}</Text>`.\n- A slider\'s `onChange` sends a number. Keep text input values and\n `onValueChange` state as strings, and convert at the point of calculation\n with `Number(value)`. Write array totals as\n `items.reduce((sum, item) => sum + item, 0)`.\n\n## Inline catalog tags (no fence)\n\nLeaf, presentational tags also work inside ordinary markdown — sentences,\ntable cells, list items — with literal props only:\n\n```markdown\n| 检查项 | #2620 |\n| --------- | -------------------------------------------- |\n| CLI tests | <Icon name="x-circle" color="danger" /> 失败 |\n\n服务在线 <Badge tone="success">running</Badge>,一个仍在启动 <Badge tone="warning">pending</Badge>。\n```\n\n- Write a self-closing `<Icon ... />` or a pair\n `<Badge tone="warning">Pending</Badge>` directly in Markdown. Backticks show\n the source as code.\n- Use quoted literal prop values and a plain-text badge label. Escape Markdown\n punctuation that should be visible, for example\n `<Badge tone="warning">\\*Pending\\*</Badge>` for the label `*Pending*`.\n Markup inside the label prevents the badge pair from rendering.\n- Inline tags have no state or callbacks. Braces in a badge label are literal\n characters. Use a fenced badge for a dynamic label or tone.\n- Inline `Icon` takes quoted `name` and optional `color`\n (danger/success/warning/accent). It renders at 14 px. Use a fenced icon with\n `size={20}` for a custom size. The legacy `inline` prop has no effect.\n\n## Catalog index\n\nProps that matter per tag; full prop tables and per-family examples live in\n`references/` — read a family file only when you use it.\n\n| Tag | Purpose | Key props |\n|---|---|---|\n| `Card` | Grouped container | — |\n| `Row` / `Column` | Flex row / column | `gap` (px) |\n| `Divider` | Horizontal rule | — |\n| `Spacer` | Pushes siblings apart | `size` |\n| `Text` | Body text | `muted` |\n| `Heading` | h1–h6 | `level` (default 3) |\n| `Badge` | Status pill | `tone`: neutral/success/warning/danger/running |\n| `Icon` | Lucide icon | `name` (kebab-case), `size` |\n| `Button` | Action | `onClick`, `variant`, `size`, `disabled` |\n| `Input` | Text field | `value`, `onValueChange(v)`, `placeholder`, `disabled` |\n| `Checkbox` / `Switch` | Boolean toggle | `checked`, `onCheckedChange(v)`, `disabled` |\n| `Select` | Dropdown | `items`, `value`, `onValueChange(v)`, `placeholder` |\n| `Slider` | Numeric range | `value`, `min`, `max`, `step`, `disabled`, `onChange(n)` |\n| `svg` family | Custom diagrams | `viewBox`; `rect` `circle` `ellipse` `line` `polyline` `polygon` `path` `g`; labels via `svg:text` |\n\n## References (read on demand)\n\n- [expressions](references/expressions.md) — confined-JS subset, state semantics, `lody.*` capabilities, error shapes.\n- [layout-text](references/layout-text.md) — Card, Row, Column, Divider, Spacer, Text, Heading, Badge, Icon: props, examples, misuse patterns.\n- [controls](references/controls.md) — Button, Input, Checkbox, Switch, Select, Slider: props, event contracts, worked examples.\n- [svg](references/svg.md) — svg, shapes, svg:text: the confined diagram subset, paint attributes, examples.\n\n## Validate before shipping\n\nA surface that fails to compile degrades to its own fenced code block in chat —\nreaders never see diagnostics, so write markup as if errors were invisible. When\nediting the runtime or catalog, the ground truth is `packages/genui` (parser +\nevaluator) and `packages/components/src/components/ai-gui/genui/` (catalog\nrenderers); run `pnpm --filter @lody/genui test` to check a surface end-to-end.\n';
|
|
532
|
+
const controls = "# Controls\n\nEvery control is host-rendered from @lody/ui primitives. Event props take JS\ncallbacks; the argument is the control's value type.\n\n## `Button`\n\n`onClick={() => …}`, `variant`: `secondary` (default) | `primary` | `ghost` |\n`destructive` | `link`; `size`: `medium` (default) | `mini` | `small` | `large`;\n`disabled`.\n\n```genui\n<Button variant=\"primary\" onClick={() => setSubmitted(true)}>Apply</Button>\n```\n\n## `Input`\n\nText field. `value` (string), `onValueChange={(v) => …}` (v: string),\n`placeholder`, `disabled`.\n\n```genui\n<Input value={name} placeholder=\"Search…\" onValueChange={(v) => setName(v)} />\n```\n\n## `Checkbox` / `Switch`\n\nBoolean toggles. `checked`, `onCheckedChange={(v) => …}` (v: boolean),\n`disabled`. Prefer `Switch` for enable/disable settings, `Checkbox` for\nselection lists.\n\n```genui\n<Switch checked={enabled} onCheckedChange={(v) => setEnabled(v)} />\n```\n\n## `Select`\n\nDropdown. `items`: array of strings or `{value, label}` objects; `value`\n(string); `onValueChange={(v) => …}` (v: string | null); `placeholder`;\n`disabled`.\n\n```genui\n<Select\n items={[{value: 'a', label: 'Option A'}, {value: 'b', label: 'Option B'}]}\n value={choice}\n placeholder=\"Pick one\"\n onValueChange={(v) => setChoice(v)}\n/>\n```\n\n## `Slider`\n\nNumeric range. `value` (number), `min` (0), `max` (100), `step` (1),\n`disabled`, `onChange={(n) => …}` (n: number). Renders the current value at\nthe trailing edge.\n\n```genui\n<Slider value={level} min={0} max={10} step={0.5} onChange={(n) => setLevel(n)} />\n```\n\n## Worked example: gated control\n\n```genui\n{@state const [value, setValue] = useState(50)}\n{@state const [locked, setLocked] = useState(false)}\n\n<Card>\n <Row>\n <Text>Level</Text>\n <Spacer />\n <Text muted>{value}</Text>\n </Row>\n <Slider value={value} disabled={locked} onChange={(n) => setValue(n)} />\n <Row>\n <Checkbox checked={locked} onCheckedChange={(v) => setLocked(v)} />\n <Text muted={!locked}>Lock</Text>\n </Row>\n</Card>\n```\n";
|
|
533
|
+
const expressions = "# Expressions, state, and capabilities\n\n## Where JS can appear\n\n- `{@state const [x, setX] = useState(<expr>)}` — state declarations, top of block only.\n- `{expr}` inside markup text — a value hole.\n- `prop={expr}` — a prop value; `prop=\"literal\"` for strings; bare `prop` means `true`.\n- `prop={(args) => expr}` — event callbacks; the arrow body may also be `{ stmt; stmt }`.\n\n## Dynamic values in a fixed view\n\nWrite tags directly in the markup. Inside `{expr}`, compute text or prop\nvalues. JSX elements and fragments inside expressions are unsupported, including\nin ternary branches and `map` callbacks.\n\n```genui\n{@state const [ready, setReady] = useState(false)}\n<Switch checked={ready} onCheckedChange={(checked) => setReady(checked)} />\n<Text muted={!ready}>{ready ? 'Ready' : 'Waiting'}</Text>\n<Text>{['alpha', 'beta', 'gamma'].filter((name) => name.includes('m')).map((name) => name.toUpperCase()).join(', ')}</Text>\n```\n\nUse a ternary for alternate text or prop values. For a variable-length list,\nmap to strings and join them inside a single `<Text>` tag.\n\n## The confined JS subset\n\nSupported: literals (numbers, strings, booleans, `null`, arrays, object literals),\narithmetic/comparison/logical operators, ternaries, template strings, arrow\nfunctions, destructuring in declarations, member access, calls, and the common\narray methods (`map`, `filter`, `forEach`, `find`, `findIndex`, `findLast`,\n`every`, `some`, `flatMap`, `sort`, `reduce`, `reduceRight`) — including with\narrow callbacks.\n\nAmbient safe values: `Math`, `JSON`, `Number`, `String`, `Boolean`, `Array`,\n`Object.keys/values/entries/assign/fromEntries`, `isNaN`, `isFinite`,\n`parseFloat`, `parseInt`, `undefined`, `NaN`, `Infinity`.\n\nNot available: `window`, `document`, `fetch`, `import`, `require`, `eval`,\n`Function`, `async`/`await`, `setTimeout`, any other global. Member reads of\n`__proto__`, `prototype`, `constructor` are denied. Statements (`const`, `let`,\nloops, `if`) work inside `{@state}` initializer positions and arrow bodies only —\nnever inside `{expr}` holes.\n\n## State semantics\n\n- `useState(init)` takes the initializer **only on first mount** of that slot.\n When the surface code changes (a new revision) but the surface key is the same,\n re-declared names keep the user's committed values — write `useState(65)` as a\n default, not a reset.\n- `setX(v)` replaces; `setX((prev) => v)` updates from the committed value.\n- All expressions re-evaluate on every state change — no dependency tracking.\n Keep derived values inline (`{enabled ? 'On' : 'Off'}`) rather than stored.\n- Events call setters directly: `onChange={(n) => setValue(n)}`. Callbacks\n capture the current scope.\n\n## Host capabilities (`lody.*`)\n\nHosts inject a `lody` object of capability functions. The manifest is fixed per\nrelease — only call members listed here; an absent function surfaces a\ndiagnostic instead of running.\n\n- `lody.sendPrompt(text)` — submits `Text` as a user message on the current\n conversation, on the ordinary send path (queues behind a busy agent like the\n composer). Use for buttons that hand the reader a ready-made next step:\n `<Button onClick={() => lody.sendPrompt('Fix the failing checks')}>Fix CI</Button>`.\n\n## Error shapes\n\n- Bad `{@state}` syntax → `state` diagnostic on the surface.\n- Bad markup/attribute → `jsx` diagnostic; the rest of the view still renders.\n- Unknown tag → renders `<tag>` inline + `catalog` diagnostic.\n- Expression that throws or hits the step budget → `eval` diagnostic.\n\nDiagnostics are model-facing, not reader-facing: in chat a surface that cannot\nmount degrades to its own fenced code block, and the truncated tail of a\nstill-streaming fence is withheld rather than shown as raw markup. Only a\ndirect `GenuiSurface` without a `fallback` shows the error view.\n";
|
|
534
|
+
const layoutText = "# Layout and text tags\n\n## `Card`\n\nGrouping container — one card per coherent unit. Don't wrap plain prose in a\ncard; use it only when content benefits from a boundary (a control group, a\nresult panel).\n\n```genui\n<Card>\n <Heading level={3}>Title</Heading>\n <Text>Body</Text>\n</Card>\n```\n\n## `Row` / `Column`\n\nFlex containers. `gap` is a number in px (default small). `Row` wraps and\ncenters items vertically. Use `<Spacer />` inside a row to push trailing items\nto the end.\n\n```genui\n<Row gap={12}>\n <Icon name=\"info\" />\n <Text>Status detail</Text>\n <Spacer />\n <Badge tone=\"success\">Done</Badge>\n</Row>\n```\n\n## `Divider`\n\nHorizontal rule between sections. Self-closing, no props.\n\n## `Spacer`\n\nExpands to fill remaining space in a `Row`/`Column`. `size` sets a minimum in px.\n\n## `Text`\n\nBody copy. `muted` dims to secondary color. Literal text chunks are trimmed\naround each `{expr}` hole. Put the whole sentence in one template literal to\npreserve spaces and punctuation around dynamic values.\n\n```genui\n<Text>{`Current value: ${value}%`}</Text>\n<Text muted>Secondary explanation</Text>\n```\n\n## `Heading`\n\n`level` (1–6, default 3, clamped). Use sparingly — one heading per card section.\n\n## `Badge`\n\nStatus pill. `tone`: `neutral` (default), `success`, `warning`, `danger`,\n`running`. Badges mark real state, not decoration — don't use as a title accent.\n\n```genui\n<Badge tone={enabled ? 'running' : 'neutral'}>{enabled ? 'Live' : 'Idle'}</Badge>\n```\n\n## `Icon`\n\nLucide icon by kebab-case `name` (`check-circle`, `x-circle`, `info`, `sun`,\n`map-pin`, …). `size` in px (default 14). Unknown names render nothing.\n";
|
|
535
|
+
const svg = '# svg diagrams\n\n`<svg>` draws custom diagrams, wireframes, and charts inline — the family keeps\nreal lowercase SVG element names, unlike the PascalCase catalog components. It\nis a confined subset: only the elements and attributes below exist, so a\nsurface can paint vector shapes but never load resources, embed HTML, or run\nhandlers. The one exception is `svg:text`, namespaced to stay distinct from\nthe prose `Text` tag.\n\n## Elements\n\n- `svg` — root. `viewBox` (e.g. `"0 0 340 220"`), `width`, `height`,\n `preserveAspectRatio`, `role`, `aria-label`.\n- `g` — group. Shares paint attributes plus `transform`.\n- `rect` — `x`, `y`, `width`, `height`, `rx`, `ry`.\n- `circle` — `cx`, `cy`, `r`. `ellipse` — `cx`, `cy`, `rx`, `ry`.\n- `line` — `x1`, `y1`, `x2`, `y2`.\n- `polyline` / `polygon` — `points` (e.g. `"0,0 10,10 20,0"`).\n- `path` — `d`.\n- `svg:text` / `svg:tspan` — labels. `x`, `y`, `dx`, `dy`, `rotate`,\n `text-anchor`, `font-size`, `font-weight`, `font-family`, `letter-spacing`.\n\n## Paint attributes\n\nAll elements accept `fill`, `stroke`, `stroke-width`, `stroke-dasharray`,\n`stroke-dashoffset`, `stroke-linecap`, `stroke-linejoin`, `fill-opacity`,\n`stroke-opacity`, `fill-rule`, `opacity`, `transform`, `color` (sets\n`currentColor`), `vector-effect`. Use `fill="none"` for outlines and\n`fill="currentColor"` to follow the theme. An attribute not in this contract\nis dropped, not rendered.\n\n```genui\n<svg viewBox="0 0 340 220">\n <rect x="3" y="3" width="334" height="214" rx="7" stroke="currentColor" fill="none" />\n <rect x="4" y="25" width="94" height="188" fill="currentColor" opacity=".05" />\n <svg:text x="13" y="43" font-size="9">Workspace</svg:text>\n</svg>\n```\n\nExpressions drive geometry, so a diagram can reflect state:\n\n```genui\n{@state const [level, setLevel] = useState(60)}\n<Column>\n <svg viewBox="0 0 200 20">\n <rect width={level * 2} height="20" rx="4" fill="currentColor" opacity=".3" />\n </svg>\n <Slider value={level} max={100} onChange={(n) => setLevel(n)} />\n</Column>\n```\n\n## Misuse patterns\n\n- `<text>` inside `<svg>` renders as a paragraph, not a label — use `svg:text`.\n- `image`, `foreignObject`, `use`, `a`, `script`, and `animate*` elements are\n not in the catalog; neither are `href`, `style`, `class`, or `on*` attributes.\n- Set geometry as attributes, not `style`: `x="10"`, never `style="left:10px"`.\n';
|
|
536
|
+
const genuiSkill = bundleSkill({
|
|
537
|
+
"SKILL.md": skill,
|
|
538
|
+
"references/controls.md": controls,
|
|
539
|
+
"references/expressions.md": expressions,
|
|
540
|
+
"references/layout-text.md": layoutText,
|
|
541
|
+
"references/svg.md": svg
|
|
542
|
+
});
|
|
543
|
+
const bundles = [automationSkill, genuiSkill];
|
|
510
544
|
const cache = { resultType: "complete", ttlMs: 3e5, cacheScope: "public" };
|
|
511
545
|
const cacheSchema = object({
|
|
512
546
|
resultType: literal("complete"),
|
|
@@ -514,7 +548,7 @@ const cacheSchema = object({
|
|
|
514
548
|
cacheScope: literal("public")
|
|
515
549
|
});
|
|
516
550
|
const metadata = record(string(), json()).optional();
|
|
517
|
-
const LODY_SKILL_INSTRUCTIONS = "
|
|
551
|
+
const LODY_SKILL_INSTRUCTIONS = "Skills are available on this MCP server: skill://lody-automations/SKILL.md for automation guidance, skill://genui/SKILL.md for authoring interactive `genui` surfaces.";
|
|
518
552
|
function registerLodySkills(server) {
|
|
519
553
|
server.server.registerCapabilities({
|
|
520
554
|
resources: {},
|
|
@@ -2671,18 +2705,29 @@ const resolveInvokingTurnSource = async () => {
|
|
|
2671
2705
|
};
|
|
2672
2706
|
};
|
|
2673
2707
|
const freezeInvokingAuthor = async (manager, session2, invoking) => {
|
|
2708
|
+
const workspaceId = getMcpWorkspaceId(getSessionContext());
|
|
2674
2709
|
const doc = await manager.getOrCreateSessionDoc(session2.id);
|
|
2675
2710
|
const backend = await createSessionBackend(doc);
|
|
2676
2711
|
const turn = await backend.history.readTurn(`assistant:${invoking.identity.sourceTurnId}`);
|
|
2677
2712
|
const storedAuthor = turn.state === "ready" ? readMessageAuthor(turn.turn.author) : void 0;
|
|
2678
|
-
const
|
|
2713
|
+
const turnModelInfo = turn.state === "ready" ? turn.turn.modelInfo : void 0;
|
|
2714
|
+
let author = storedAuthor?.kind === "agent" && storedAuthor.sessionId === session2.id && storedAuthor.turnId === invoking.identity.sourceTurnId ? enrichAgentMessageAuthorModel(storedAuthor, turnModelInfo) : await resolveSessionMessageAuthor(
|
|
2679
2715
|
manager,
|
|
2680
2716
|
session2,
|
|
2681
2717
|
invoking.identity.sourceTurnId,
|
|
2682
2718
|
invoking.frozenInputConfig,
|
|
2683
|
-
|
|
2684
|
-
|
|
2719
|
+
turnModelInfo,
|
|
2720
|
+
workspaceId
|
|
2685
2721
|
);
|
|
2722
|
+
if (author.model && (!author.model.name || author.model.name === author.model.id)) {
|
|
2723
|
+
const modelName = await resolveSessionModelDisplayName(
|
|
2724
|
+
manager,
|
|
2725
|
+
session2,
|
|
2726
|
+
author.model.id,
|
|
2727
|
+
workspaceId
|
|
2728
|
+
);
|
|
2729
|
+
author = enrichAgentMessageAuthorModel(author, void 0, modelName);
|
|
2730
|
+
}
|
|
2686
2731
|
invoking.identity.author = author;
|
|
2687
2732
|
};
|
|
2688
2733
|
const resolveInvokingTurnContext = async (session2, manager) => {
|
|
@@ -4488,7 +4533,7 @@ function buildSessionToolServer(handlers) {
|
|
|
4488
4533
|
const scheduleDeps = {
|
|
4489
4534
|
execute: async (command) => {
|
|
4490
4535
|
const ctx = getSessionContext();
|
|
4491
|
-
const { sendDaemonScheduleCommand } = await import("./schedule-command-client-
|
|
4536
|
+
const { sendDaemonScheduleCommand } = await import("./schedule-command-client-B2k5ix1s.js");
|
|
4492
4537
|
return sendDaemonScheduleCommand(command, {
|
|
4493
4538
|
machineId: ctx.machineId,
|
|
4494
4539
|
workspaceId: ctx.workspaceId,
|
|
@@ -4500,7 +4545,7 @@ function buildSessionToolServer(handlers) {
|
|
|
4500
4545
|
registerScheduleTool(toolServer, scheduleDeps);
|
|
4501
4546
|
registerAutomationTools(toolServer, async (command) => {
|
|
4502
4547
|
const ctx = getSessionContext();
|
|
4503
|
-
const { sendDaemonAutomationCommand } = await import("./client-
|
|
4548
|
+
const { sendDaemonAutomationCommand } = await import("./client-09TiIsd2.js");
|
|
4504
4549
|
return sendDaemonAutomationCommand(command, {
|
|
4505
4550
|
machineId: ctx.machineId,
|
|
4506
4551
|
workspaceId: ctx.workspaceId,
|
|
@@ -5498,4 +5543,4 @@ export {
|
|
|
5498
5543
|
buildSessionToolServer as b,
|
|
5499
5544
|
runWithMcpSessionContext as r
|
|
5500
5545
|
};
|
|
5501
|
-
//# sourceMappingURL=lody-mcp-server-
|
|
5546
|
+
//# sourceMappingURL=lody-mcp-server-C_KUMdUq.js.map
|
|
@@ -9,7 +9,7 @@ import fs__default$1 from "node:fs/promises";
|
|
|
9
9
|
import Zlib__default from "node:zlib";
|
|
10
10
|
import os__default from "node:os";
|
|
11
11
|
import { T as TransportStream } from "./chunks/vendor-winston-transport-C2Om-fvA.js";
|
|
12
|
-
import { cg as merge, dg as layer, dh as tracerLogger, di as make,
|
|
12
|
+
import { cg as merge, dg as layer, dh as tracerLogger, di as make, J as succeed, ch as MinimumLogLevel, dj as CurrentLogAnnotations } from "./chunks/vendor-effect-BTVRmkqM.js";
|
|
13
13
|
const MAX_LOG_MESSAGE_CHARS = 6e3;
|
|
14
14
|
const MAX_LOG_STRING_CHARS = 2e3;
|
|
15
15
|
const MAX_LOG_ERROR_CHARS = 4e3;
|
|
@@ -891,4 +891,4 @@ export {
|
|
|
891
891
|
rootLogger as r,
|
|
892
892
|
truncateLogText as t
|
|
893
893
|
};
|
|
894
|
-
//# sourceMappingURL=logger-
|
|
894
|
+
//# sourceMappingURL=logger-zm-QQb1B.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { C as Command } from "./chunks/vendor-commander-BkZcYyor.js";
|
|
2
2
|
import { c as chalk } from "./chunks/vendor-chalk-MVIUzg44.js";
|
|
3
|
-
import { r as rootLogger, g as getLogger } from "./logger-
|
|
3
|
+
import { r as rootLogger, g as getLogger } from "./logger-zm-QQb1B.js";
|
|
4
4
|
import { r as reportError } from "./index.js";
|
|
5
|
-
import { A as AuthClient, i as isMachinePairingCredential, p as performLoginWithAuthCredential, a as isRetryableTokenValidationFailure, b as isTokenValidationUnavailable, c as performLogin } from "./auth-
|
|
6
|
-
import { f as flushTelemetry } from "./login-shell-env-
|
|
7
|
-
import { c as captureAuthEvent } from "./analytics-events-
|
|
5
|
+
import { A as AuthClient, i as isMachinePairingCredential, p as performLoginWithAuthCredential, a as isRetryableTokenValidationFailure, b as isTokenValidationUnavailable, c as performLogin } from "./auth-CA7u_ijj.js";
|
|
6
|
+
import { f as flushTelemetry } from "./login-shell-env-CFLesG20.js";
|
|
7
|
+
import { c as captureAuthEvent } from "./analytics-events-BNLOju7l.js";
|
|
8
8
|
import "node:events";
|
|
9
9
|
import "node:child_process";
|
|
10
10
|
import "node:path";
|
|
@@ -56,9 +56,9 @@ import "node:util";
|
|
|
56
56
|
import "./installation-profile-BgCqPyUj.js";
|
|
57
57
|
import "node:fs/promises";
|
|
58
58
|
import "node:zlib";
|
|
59
|
-
import "./chunks/vendor-effect-
|
|
60
|
-
import "./process-options-
|
|
61
|
-
import "./process-
|
|
59
|
+
import "./chunks/vendor-effect-BTVRmkqM.js";
|
|
60
|
+
import "./process-options-CvxupoAj.js";
|
|
61
|
+
import "./process-BU5vWwzZ.js";
|
|
62
62
|
import "node:url";
|
|
63
63
|
import "./chunks/vendor-cross-spawn-DYIHnyej.js";
|
|
64
64
|
import "child_process";
|
|
@@ -67,7 +67,7 @@ import "./chunks/vendor-isexe-BmdU-Sy7.js";
|
|
|
67
67
|
import "./chunks/vendor-path-key-Dc8-E0k2.js";
|
|
68
68
|
import "./chunks/vendor-shebang-command-CiljJy-j.js";
|
|
69
69
|
import "./chunks/vendor-shebang-regex-CzQXTLh9.js";
|
|
70
|
-
import "./chunks/vendor-@effect-platform-node-shared-
|
|
70
|
+
import "./chunks/vendor-@effect-platform-node-shared-DUSlMsdQ.js";
|
|
71
71
|
import "node:stream";
|
|
72
72
|
import "node:buffer";
|
|
73
73
|
import "node:net";
|
|
@@ -77,8 +77,8 @@ import "tls";
|
|
|
77
77
|
import "url";
|
|
78
78
|
import "node:crypto";
|
|
79
79
|
import "node:readline";
|
|
80
|
-
import "./application-runtime-
|
|
81
|
-
import "./http-transport-
|
|
80
|
+
import "./application-runtime-4EGQJvLm.js";
|
|
81
|
+
import "./http-transport-3J_3rzKQ.js";
|
|
82
82
|
import "node:diagnostics_channel";
|
|
83
83
|
import "./chunks/vendor-undici-Cm00wA7x.js";
|
|
84
84
|
import "node:assert";
|
|
@@ -97,8 +97,8 @@ import "./chunks/vendor-debug-ywhXvw99.js";
|
|
|
97
97
|
import "./chunks/vendor-supports-color-Ddvw3sLl.js";
|
|
98
98
|
import "./chunks/vendor-agent-base-Chp0lO_8.js";
|
|
99
99
|
import "./chunks/vendor-proxy-from-env-agT35mrt.js";
|
|
100
|
-
import "./const-
|
|
101
|
-
import "./chunks/vendor-zod-
|
|
100
|
+
import "./const-C9yql4zo.js";
|
|
101
|
+
import "./chunks/vendor-zod-nebGZ0VM.js";
|
|
102
102
|
import "./chunks/vendor-ora-VZtLV0pD.js";
|
|
103
103
|
import "./chunks/vendor-cli-cursor-BxGMzrFe.js";
|
|
104
104
|
import "./chunks/vendor-restore-cursor-CwD-7Pii.js";
|
|
@@ -116,18 +116,18 @@ import "./chunks/vendor-emoji-regex-DynepNLl.js";
|
|
|
116
116
|
import "./chunks/vendor-is-fullwidth-code-point-BgRCYA7I.js";
|
|
117
117
|
import "./chunks/vendor-is-interactive-B_OFCXvN.js";
|
|
118
118
|
import "./chunks/vendor-stdin-discarder-n_NjWtpp.js";
|
|
119
|
-
import "./open-browser-
|
|
120
|
-
import "./chunks/vendor-better-auth-
|
|
121
|
-
import "./chunks/vendor-@better-auth-core-
|
|
119
|
+
import "./open-browser-CXJ_k8PZ.js";
|
|
120
|
+
import "./chunks/vendor-better-auth-D1bP-dEy.js";
|
|
121
|
+
import "./chunks/vendor-@better-auth-core-C7hql1k7.js";
|
|
122
122
|
import "./chunks/vendor-nanostores-U58ckFTK.js";
|
|
123
123
|
import "./chunks/vendor-defu-BJ13cSX9.js";
|
|
124
124
|
import "./chunks/vendor-@better-fetch-fetch-Cuh8CnyA.js";
|
|
125
|
-
import "./chunks/vendor-@better-auth-api-key-
|
|
125
|
+
import "./chunks/vendor-@better-auth-api-key-Dy9PtbSj.js";
|
|
126
126
|
import "./chunks/vendor-@convex-dev-better-auth-DvFvwHmk.js";
|
|
127
127
|
import "./convex-site-url-Ca_MfzFd.js";
|
|
128
128
|
import "./chunks/vendor-posthog-node-CwZyUQxO.js";
|
|
129
129
|
import "./chunks/vendor-@posthog-core-BB1ZGy3x.js";
|
|
130
|
-
import "./time-sync-
|
|
130
|
+
import "./time-sync-DjSg4eHx.js";
|
|
131
131
|
async function exitLogin(code) {
|
|
132
132
|
await flushTelemetry();
|
|
133
133
|
process.exit(code);
|
|
@@ -235,4 +235,4 @@ const loginCommand = new Command("login").description("Login to Lody using devic
|
|
|
235
235
|
export {
|
|
236
236
|
loginCommand
|
|
237
237
|
};
|
|
238
|
-
//# sourceMappingURL=login-
|
|
238
|
+
//# sourceMappingURL=login-DoRU06W8.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { P as PostHog } from "./chunks/vendor-posthog-node-CwZyUQxO.js";
|
|
2
2
|
import { r as resolvePlatformKind } from "./installation-profile-BgCqPyUj.js";
|
|
3
|
-
import { p as pkg, n as name, v as version$1, a as LoginShellCache, b as LoginShellCacheClosed } from "./http-transport-
|
|
4
|
-
import { c as getSystemMachineId } from "./const-
|
|
5
|
-
import { g as getServerNow } from "./time-sync-
|
|
6
|
-
import { d as squashProcessFailure } from "./process-
|
|
7
|
-
import {
|
|
3
|
+
import { p as pkg, n as name, v as version$1, a as LoginShellCache, b as LoginShellCacheClosed } from "./http-transport-3J_3rzKQ.js";
|
|
4
|
+
import { c as getSystemMachineId } from "./const-C9yql4zo.js";
|
|
5
|
+
import { g as getServerNow } from "./time-sync-DjSg4eHx.js";
|
|
6
|
+
import { d as squashProcessFailure } from "./process-BU5vWwzZ.js";
|
|
7
|
+
import { E as flatMap, i as isFailure } from "./chunks/vendor-effect-BTVRmkqM.js";
|
|
8
8
|
const TELEMETRY_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
9
9
|
"shortcut_exchange_unavailable",
|
|
10
10
|
"shortcut_exchange_rejected",
|
|
@@ -466,4 +466,4 @@ export {
|
|
|
466
466
|
pickSampleRate as p,
|
|
467
467
|
shouldSampleEvent as s
|
|
468
468
|
};
|
|
469
|
-
//# sourceMappingURL=login-shell-env-
|
|
469
|
+
//# sourceMappingURL=login-shell-env-CFLesG20.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { C as Command } from "./chunks/vendor-commander-BkZcYyor.js";
|
|
2
2
|
import { c as chalk } from "./chunks/vendor-chalk-MVIUzg44.js";
|
|
3
|
-
import { r as rootLogger, g as getLogger } from "./logger-
|
|
3
|
+
import { r as rootLogger, g as getLogger } from "./logger-zm-QQb1B.js";
|
|
4
4
|
import { r as reportError } from "./index.js";
|
|
5
|
-
import { A as AuthClient } from "./auth-
|
|
6
|
-
import { f as flushTelemetry } from "./login-shell-env-
|
|
7
|
-
import { c as captureAuthEvent } from "./analytics-events-
|
|
5
|
+
import { A as AuthClient } from "./auth-CA7u_ijj.js";
|
|
6
|
+
import { f as flushTelemetry } from "./login-shell-env-CFLesG20.js";
|
|
7
|
+
import { c as captureAuthEvent } from "./analytics-events-BNLOju7l.js";
|
|
8
8
|
import "node:events";
|
|
9
9
|
import "node:child_process";
|
|
10
10
|
import "node:path";
|
|
@@ -56,9 +56,9 @@ import "node:util";
|
|
|
56
56
|
import "./installation-profile-BgCqPyUj.js";
|
|
57
57
|
import "node:fs/promises";
|
|
58
58
|
import "node:zlib";
|
|
59
|
-
import "./chunks/vendor-effect-
|
|
60
|
-
import "./process-options-
|
|
61
|
-
import "./process-
|
|
59
|
+
import "./chunks/vendor-effect-BTVRmkqM.js";
|
|
60
|
+
import "./process-options-CvxupoAj.js";
|
|
61
|
+
import "./process-BU5vWwzZ.js";
|
|
62
62
|
import "node:url";
|
|
63
63
|
import "./chunks/vendor-cross-spawn-DYIHnyej.js";
|
|
64
64
|
import "child_process";
|
|
@@ -67,7 +67,7 @@ import "./chunks/vendor-isexe-BmdU-Sy7.js";
|
|
|
67
67
|
import "./chunks/vendor-path-key-Dc8-E0k2.js";
|
|
68
68
|
import "./chunks/vendor-shebang-command-CiljJy-j.js";
|
|
69
69
|
import "./chunks/vendor-shebang-regex-CzQXTLh9.js";
|
|
70
|
-
import "./chunks/vendor-@effect-platform-node-shared-
|
|
70
|
+
import "./chunks/vendor-@effect-platform-node-shared-DUSlMsdQ.js";
|
|
71
71
|
import "node:stream";
|
|
72
72
|
import "node:buffer";
|
|
73
73
|
import "node:net";
|
|
@@ -77,8 +77,8 @@ import "tls";
|
|
|
77
77
|
import "url";
|
|
78
78
|
import "node:crypto";
|
|
79
79
|
import "node:readline";
|
|
80
|
-
import "./application-runtime-
|
|
81
|
-
import "./http-transport-
|
|
80
|
+
import "./application-runtime-4EGQJvLm.js";
|
|
81
|
+
import "./http-transport-3J_3rzKQ.js";
|
|
82
82
|
import "node:diagnostics_channel";
|
|
83
83
|
import "./chunks/vendor-undici-Cm00wA7x.js";
|
|
84
84
|
import "node:assert";
|
|
@@ -97,8 +97,8 @@ import "./chunks/vendor-debug-ywhXvw99.js";
|
|
|
97
97
|
import "./chunks/vendor-supports-color-Ddvw3sLl.js";
|
|
98
98
|
import "./chunks/vendor-agent-base-Chp0lO_8.js";
|
|
99
99
|
import "./chunks/vendor-proxy-from-env-agT35mrt.js";
|
|
100
|
-
import "./const-
|
|
101
|
-
import "./chunks/vendor-zod-
|
|
100
|
+
import "./const-C9yql4zo.js";
|
|
101
|
+
import "./chunks/vendor-zod-nebGZ0VM.js";
|
|
102
102
|
import "./chunks/vendor-ora-VZtLV0pD.js";
|
|
103
103
|
import "./chunks/vendor-cli-cursor-BxGMzrFe.js";
|
|
104
104
|
import "./chunks/vendor-restore-cursor-CwD-7Pii.js";
|
|
@@ -116,18 +116,18 @@ import "./chunks/vendor-emoji-regex-DynepNLl.js";
|
|
|
116
116
|
import "./chunks/vendor-is-fullwidth-code-point-BgRCYA7I.js";
|
|
117
117
|
import "./chunks/vendor-is-interactive-B_OFCXvN.js";
|
|
118
118
|
import "./chunks/vendor-stdin-discarder-n_NjWtpp.js";
|
|
119
|
-
import "./open-browser-
|
|
120
|
-
import "./chunks/vendor-better-auth-
|
|
121
|
-
import "./chunks/vendor-@better-auth-core-
|
|
119
|
+
import "./open-browser-CXJ_k8PZ.js";
|
|
120
|
+
import "./chunks/vendor-better-auth-D1bP-dEy.js";
|
|
121
|
+
import "./chunks/vendor-@better-auth-core-C7hql1k7.js";
|
|
122
122
|
import "./chunks/vendor-nanostores-U58ckFTK.js";
|
|
123
123
|
import "./chunks/vendor-defu-BJ13cSX9.js";
|
|
124
124
|
import "./chunks/vendor-@better-fetch-fetch-Cuh8CnyA.js";
|
|
125
|
-
import "./chunks/vendor-@better-auth-api-key-
|
|
125
|
+
import "./chunks/vendor-@better-auth-api-key-Dy9PtbSj.js";
|
|
126
126
|
import "./chunks/vendor-@convex-dev-better-auth-DvFvwHmk.js";
|
|
127
127
|
import "./convex-site-url-Ca_MfzFd.js";
|
|
128
128
|
import "./chunks/vendor-posthog-node-CwZyUQxO.js";
|
|
129
129
|
import "./chunks/vendor-@posthog-core-BB1ZGy3x.js";
|
|
130
|
-
import "./time-sync-
|
|
130
|
+
import "./time-sync-DjSg4eHx.js";
|
|
131
131
|
const logoutCommand = new Command("logout").description("Logout from Lody and clear saved authentication").option("-d, --debug", "enable debug output").action(async (options) => {
|
|
132
132
|
if (options.debug) {
|
|
133
133
|
rootLogger.setDebug(true);
|
|
@@ -158,4 +158,4 @@ const logoutCommand = new Command("logout").description("Logout from Lody and cl
|
|
|
158
158
|
export {
|
|
159
159
|
logoutCommand
|
|
160
160
|
};
|
|
161
|
-
//# sourceMappingURL=logout-
|
|
161
|
+
//# sourceMappingURL=logout-4T76xG1C.js.map
|