zidane-gui 9.1.4 → 9.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/out/main/index.js +128 -88
  2. package/out/preload/index.mjs +21 -4
  3. package/out/renderer/assets/{43YPWK3Q-BLwohgFu.js → 43YPWK3Q-z5jpEo82.js} +6 -6
  4. package/out/renderer/assets/{45MVAN6X-DCPmrh2y.js → 45MVAN6X-GiMurZcH.js} +5 -5
  5. package/out/renderer/assets/{46GJKBLZ-n_NiMQEY.js → 46GJKBLZ-BK9JvL-z.js} +10 -10
  6. package/out/renderer/assets/{63WH7YNF-B0-gnOSz.js → 63WH7YNF-oZNJFk32.js} +8 -8
  7. package/out/renderer/assets/{6DDU7VKX-BKAF5gyQ.js → 6DDU7VKX-Q8ape99y.js} +6 -6
  8. package/out/renderer/assets/{CLQLV5VT-BIZsXon4.js → CLQLV5VT-1CokruIk.js} +6 -6
  9. package/out/renderer/assets/{CUSPXG5M-Donlp74Y.js → CUSPXG5M-CXI47Yx3.js} +6 -6
  10. package/out/renderer/assets/{CodeEditor-80QT2Pyq.js → CodeEditor-D8TMSvb4.js} +3 -3
  11. package/out/renderer/assets/{ComposerEditor-CXpNHoo1.js → ComposerEditor-MwH3w7kQ.js} +2 -2
  12. package/out/renderer/assets/{D3L7O4X2-BCbmkNpB.js → D3L7O4X2-CZlDY3Xj.js} +4 -4
  13. package/out/renderer/assets/{D5TW5CPZ-Bp-wetYa.js → D5TW5CPZ-C04jssFu.js} +1 -1
  14. package/out/renderer/assets/{DiffsTab-Dy8a_hwG.js → DiffsTab-CD4Z6LsX.js} +5 -5
  15. package/out/renderer/assets/{EGADTWYV-CqSrkc7g.js → EGADTWYV-C6IiGlh0.js} +5 -5
  16. package/out/renderer/assets/{EOJSJZXM-BTI84tys.js → EOJSJZXM-Bw1Qp21K.js} +8 -8
  17. package/out/renderer/assets/{EditorWorkers-Durn1REy.js → EditorWorkers-D0xeQ5Kf.js} +4 -4
  18. package/out/renderer/assets/{FilesTab-h32FFVsw.js → FilesTab-Pp8_PSfd.js} +6 -6
  19. package/out/renderer/assets/{G2OEIG6X-CS8YUqSL.js → G2OEIG6X-foim2Z_m.js} +5 -5
  20. package/out/renderer/assets/{GXJ2T77W-BHaQFzB4.js → GXJ2T77W-FIOAlHlR.js} +6 -6
  21. package/out/renderer/assets/{HX3UMAK7-DOOY2pSg.js → HX3UMAK7-COan20yP.js} +5 -5
  22. package/out/renderer/assets/{IU7WZTP6-D7pwhQLH.js → IU7WZTP6-DeXscWir.js} +1 -1
  23. package/out/renderer/assets/{J5J2NR2G-SPjkbJgo.js → J5J2NR2G-B7up1iuZ.js} +4 -4
  24. package/out/renderer/assets/{JRCWTJEL-DT7JLR7k.js → JRCWTJEL-M4z7DV1k.js} +3 -3
  25. package/out/renderer/assets/{KHUP5TOH-BX0A2YHC.js → KHUP5TOH-0CDf31VX.js} +1 -1
  26. package/out/renderer/assets/{L74FQTH5-MbDLfIZo.js → L74FQTH5-xlC3E1u8.js} +4 -4
  27. package/out/renderer/assets/{LAV4ZXOS-ClHlsIHg.js → LAV4ZXOS-CWOm214F.js} +6 -6
  28. package/out/renderer/assets/{LBIZYCRR-DmofT7Vk.js → LBIZYCRR-BRMO_zpo.js} +7 -7
  29. package/out/renderer/assets/{LFFXNLRS-yLLLefJM.js → LFFXNLRS-CQDwxn8S.js} +3 -3
  30. package/out/renderer/assets/{LLLWOAQD-DNhT1-qV.js → LLLWOAQD-NLayfyRk.js} +1 -1
  31. package/out/renderer/assets/{LTYQZ5U5-BxUtiilS.js → LTYQZ5U5-CfgFK_8S.js} +8 -8
  32. package/out/renderer/assets/{NDSCUZ25-DltJ5xGa.js → NDSCUZ25-CRhHG4rp.js} +2 -2
  33. package/out/renderer/assets/{NMN3IKWL-BXUYzi9o.js → NMN3IKWL-pNFku5nG.js} +9 -9
  34. package/out/renderer/assets/{NMUA3R2D-CAVxt8OJ.js → NMUA3R2D-D5EpYecE.js} +7 -7
  35. package/out/renderer/assets/{NY5A6PPW-B3P5KUoQ.js → NY5A6PPW-BFqrOF96.js} +3 -3
  36. package/out/renderer/assets/{OHJ2EJXK-CKyEtj37.js → OHJ2EJXK-DUXRo20H.js} +1 -1
  37. package/out/renderer/assets/{OU2GIT2H-i9HfUuBk.js → OU2GIT2H-RERREQg4.js} +4 -4
  38. package/out/renderer/assets/{PDMLSE6I-BnbSSXbG.js → PDMLSE6I-B6VLJpYF.js} +2 -2
  39. package/out/renderer/assets/{PJ7X32S5-Do_rplzd.js → PJ7X32S5-CiX4IRfi.js} +5 -5
  40. package/out/renderer/assets/{RLLQ44NJ-SEvjKAya.js → RLLQ44NJ-DI-w7C3g.js} +7 -7
  41. package/out/renderer/assets/{S6DWMCK5-CK9P5x9H.js → S6DWMCK5-BFYfpKyU.js} +8 -8
  42. package/out/renderer/assets/{STIOTUT7-KYZS5tvF.js → STIOTUT7-BsXqNDoB.js} +6 -6
  43. package/out/renderer/assets/{SXSLPWUD-ylCpsia5.js → SXSLPWUD-DsiZBZ2L.js} +2 -2
  44. package/out/renderer/assets/{TR4WJQGX-DXlqK6NQ.js → TR4WJQGX-DdGw5EgP.js} +1 -1
  45. package/out/renderer/assets/{UWRPUF3N-7_KSfEv0.js → UWRPUF3N-B9f5cVuf.js} +1 -1
  46. package/out/renderer/assets/{VSWIZJ7B-qmPn48eQ.js → VSWIZJ7B-B67GWWkR.js} +1 -1
  47. package/out/renderer/assets/{WM7NR6YK-D4oWq6L3.js → WM7NR6YK-BjDcbecJ.js} +4 -4
  48. package/out/renderer/assets/{WXKV2YEK-DsK-bqP8.js → WXKV2YEK-DkO54WUi.js} +3 -3
  49. package/out/renderer/assets/{XLHPVVFU-4_9lhZe2.js → XLHPVVFU-CgBgWtsm.js} +1 -1
  50. package/out/renderer/assets/{YNX532HU-C1DPijVc.js → YNX532HU-GZs01vUI.js} +5 -5
  51. package/out/renderer/assets/{YUPSMAUO-0pM5w-ie.js → YUPSMAUO-3HW0N7cY.js} +1 -1
  52. package/out/renderer/assets/{ZFRCZTLK-4EIJek0V.js → ZFRCZTLK-Bv3j48XJ.js} +6 -6
  53. package/out/renderer/assets/{ZZDR4CN3-B_T2R-Zh.js → ZZDR4CN3-bxop59us.js} +4 -4
  54. package/out/renderer/assets/{core-2jWUG3m-.js → core-DUTJyMGZ.js} +1967 -1624
  55. package/out/renderer/assets/{file-tabs-DwqRIh1X.js → file-tabs-CDruoNmZ.js} +5 -5
  56. package/out/renderer/assets/{ghostty-web-DnI2p8KS.js → ghostty-web-CtIJ7i7e.js} +1 -1
  57. package/out/renderer/assets/{highlights-6LT5DvBO.js → highlights-26TXpsMP.js} +2 -2
  58. package/out/renderer/assets/{highlights-DmxOEap0.js → highlights-Bmhv1Dz1.js} +3 -3
  59. package/out/renderer/assets/{index-C-Dal-Bp.css → index-B5DcyIyT.css} +41 -2
  60. package/out/renderer/assets/{index-BnnCv70H.js → index-CpGbxp8B.js} +244 -40
  61. package/out/renderer/assets/{kit-CdRTRA2T.js → kit-u_PHwNWF.js} +3531 -1044
  62. package/out/renderer/assets/{langs-D9nZatrh.js → langs-DQ-AW7Q8.js} +1 -1
  63. package/out/renderer/assets/{lazy-C1DShJVi.js → lazy-xGoFzwfG.js} +3 -3
  64. package/out/renderer/assets/{loader-BlmA-DDi.js → loader-BwgXVB75.js} +1 -1
  65. package/out/renderer/assets/{pierre-theme-DpuLJ_93.js → pierre-theme-CwuG23St.js} +7 -7
  66. package/out/renderer/assets/{shiki-RupN-xqP.js → shiki-DCldjjSl.js} +3 -3
  67. package/out/renderer/assets/{stream-tokenizer-DLDzyMrK.js → stream-tokenizer-BJjKxfTj.js} +1 -1
  68. package/out/renderer/assets/{themes-B1aebwax.js → themes-Bt8pRd53.js} +2 -2
  69. package/out/renderer/assets/{useDetachCleanup-BXvhEVk-.js → useDetachCleanup-hiha0T2M.js} +2 -2
  70. package/out/renderer/assets/{useFolderChanges-BHQktE6l.js → useFolderChanges-AOk0dbsA.js} +144 -73
  71. package/out/renderer/index.html +4 -4
  72. package/package.json +2 -2
  73. package/scripts/app-installer.mjs +1 -1
package/out/main/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync, readdirSync, rmSync, mkdtempSync, realpathSync, createReadStream } from "node:fs";
2
2
  import { resolve, join, dirname, delimiter, basename, isAbsolute, extname, relative } from "node:path";
3
- import { resolveStorageDirs, shellPath, mergePath, shellPathAsync, createWorkerRpcClient, WorkerUnavailableError, watchFileChanges, readTurnsAt, readTranscript, createMachineLinkHandlers, createMachineHandlers, IPC_BUILD_ID, IPC_PROTOCOL_VERSION, defaultSocketPath, probeSocket, ensureDaemonRunning, connectIpcClient, IpcVersionMismatchError, runWorkspaceExecStream, loadSessionDocument, IpcErrorCode, WorkerRequestError, loadEventsPage, runRemoteOAuth, extensionInstallErrorData, runBlockOnHost, createExtensionsClient, createHostImagePort, decisionsPort } from "zidane/ipc";
3
+ import { resolveStorageDirs, shellPath, mergePath, shellPathAsync, createWorkerRpcClient, WorkerUnavailableError, watchFileChanges, readTurnsAt, readTranscript, createMachineLinkHandlers, createMachineHandlers, IPC_BUILD_ID, IPC_PROTOCOL_VERSION, defaultSocketPath, probeSocket, ensureDaemonRunning, connectIpcClient, IpcVersionMismatchError, runWorkspaceExecStream, loadSessionDocument, IpcErrorCode, WorkerRequestError, loadEventsPage, runRemoteOAuth, extensionInstallErrorData, runBlockOnHost, createExtensionsClient, createHostImagePort, decisionsPort, mcpStatusOf } from "zidane/ipc";
4
4
  import { homedir, tmpdir, userInfo, hostname, availableParallelism } from "node:os";
5
5
  import { fileURLToPath, pathToFileURL } from "node:url";
6
6
  import { config } from "dotenv";
7
7
  import * as electron from "electron";
8
8
  import { shell, app, BrowserWindow, ipcMain, nativeImage, Notification, session, webContents, utilityProcess, protocol, Tray, Menu, powerMonitor, dialog, net, nativeTheme } from "electron";
9
- import { createSharedWatches, migrateSessionArtifactDirs, createRingBufferSink, fanoutSink, consoleSink, createLogger, installExtensionFromSpec, ExtensionInstallError, updateInstalledExtension, removeInstalledExtension, createExtensionHostRuntimeBridge, registerExtensionApiHostModules, inlineLoadedExtension, loadableExtensionDirs, discoverAndBuildExtensionRegistry, disposeExtensionRegistry, toWireConfigSchema, defaultExtensionScanPaths, createSqliteDriver, createSqliteWriteQueue, createSqliteSessionStore, loginMcpServer, saveMcpClientSecret, resolveInlineSuggestion, createPathAutocompleteProvider, refreshArtifact as refreshArtifact$1, BUILTIN_ARTIFACT_KINDS, renderArtifactRow, sessionsBadges, isThinkingLevel, panelHostRuntime, panelSummaries, loadExtensionPanel, runExtensionPanelAction, subscribeExtensionPanel, normalizeBadgeTarget, extensionBadgeActions, runBadgeAction, createCompletionRunner, completionProviderSummaries, listExtensionPaletteItems, runExtensionPaletteItem, subscribeExtensionPalette, createExtension, listActionSummaries, probeActionStatuses, runExtensionAction, parseGithubRefKey, githubPullUrl, pullFromMeta, githubPullConfirmedAt, isPullFresh, viewForRead, queueGithubPull, pullMeta, referenceProviderWires, createReferenceResolver, GITHUB_PULL_PROVIDER_ID, GITHUB_ISSUE_PROVIDER_ID, registerSessionProcess, loadSession, treeProcesses, createGpuReader, createOwnedProcesses, listSessionProcesses, listOwnedProcesses, ownCommands, readProcessTree, labelSessions, originTotals, createMainThreadMeter, createSampler, readOsThreads, configureGithubClient, createFileGithubStateStore } from "zidane";
9
+ import { createSharedWatches, migrateSessionArtifactDirs, createRingBufferSink, fanoutSink, consoleSink, createLogger, installExtensionFromSpec, ExtensionInstallError, updateInstalledExtension, removeInstalledExtension, createExtensionHostRuntimeBridge, registerExtensionApiHostModules, inlineLoadedExtension, loadableExtensionDirs, discoverAndBuildExtensionRegistry, disposeExtensionRegistry, toWireConfigSchema, defaultExtensionScanPaths, createSqliteDriver, createSqliteWriteQueue, createSqliteSessionStore, loginMcpServer, saveMcpClientSecret, resolveInlineSuggestion, createPathAutocompleteProvider, refreshArtifact as refreshArtifact$1, BUILTIN_ARTIFACT_KINDS, renderArtifactRow, sessionsBadges, isThinkingLevel, panelHostRuntime, panelSummaries, loadExtensionPanel, runExtensionPanelAction, subscribeExtensionPanel, normalizeBadgeTarget, extensionBadgeActions, runBadgeAction, createCompletionRunner, completionProviderSummaries, listExtensionPaletteItems, runExtensionPaletteItem, subscribeExtensionPalette, createExtension, listActionSummaries, probeActionStatuses, runExtensionAction, parseGithubRefKey, githubPullUrl, pullFromMeta, githubPullConfirmedAt, isPullFresh, viewForRead, queueGithubPull, pullMeta, referenceProviderWires, createReferenceResolver, GITHUB_PULL_PROVIDER_ID, GITHUB_ISSUE_PROVIDER_ID, registerSessionProcess, treeProcesses, createGpuReader, createOwnedProcesses, listSessionProcesses, listOwnedProcesses, ownCommands, readProcessTree, labelSessions, originTotals, createMainThreadMeter, createSampler, readOsThreads, configureGithubClient, createFileGithubStateStore } from "zidane";
10
10
  import { randomUUID, createHash, randomBytes } from "node:crypto";
11
- import { parseEditorCommand, keybindingsPath, stripJsonComments, normalizeBindingValue, ensureKeybindingsFile, credentialsPath, applyApiKeyEnv, BUILTIN_PROVIDERS, readCredentials, detectAuth, supportsOAuth, signsInWithIntegration, runIntegrationSignIn, runOAuthLogin, DEFAULT_OAUTH_ACCOUNT_LABEL, setProviderCredential, mcpsWritePath, upsertMcpServer, discoverProjectMcps, removeMcpServer, compactPath as compactPath$1, createExtensionMcpHost, createFileMcpCredentialStore, projectRootOf, runningEstimateViews, resolveConfig, scopeCwd, settingsFromStored, DEFAULT_SETTINGS, SETTINGS_DEFAULTS_VERSION_KEY, SETTINGS_DEFAULTS_VERSION, enforceSettingsInvariants, sparseSettingsUpdate, createMcpStatusTracker, describeForkFailure, DEFAULT_SPACE_ID, SPACE_METADATA_KEY, TITLE_SOURCE_KEY, toTodosSnapshot, createCapabilityProbe, createPromptSubmissions, localDayString, summarizeUsage, createChatHost, findGitRoot, fileEntriesFromPaths, WORKSPACE_MAX_ENTRIES, WORKSPACE_MAX_FILE_BYTES, gitStatusOf, assembleDiff, importEntries, hostImportItems, toolResultText, sumRunCosts, lastContextSizeFromTurns, availableAgents, liveAgentProfiles, groupArtifacts, defaultModelOf, restoreModelOptions, enabledModelOptions, modelOptionsFor, readProviderCredential, isSecretCustomField, removeProviderCredential, setPreferredCredential, removeStoredCredential, setCredentialLabel, providerFieldViews, configuredProviderFields, sessionEnvironmentSummary, sessionModelFallbacks, readSessionSpaceId, isMainSession, readSessionAccount, deriveSessionTitle, isStaleRunMarker, cachedRepoKeyOf, spaceIdForNewSession, newSessionModel, defaultSessionModel, defaultSessionKnobs, defaultSessionAgent, modelSupportsReasoning, deleteSessionData, writeSessionExport, hasClaudeCodeSetup, countClaudeSessionFiles, previewClaudeImport, importFromClaudeCode, runInProgress, runProgress, resolveSessionCwd, effectiveContextWindow, fmtTokens, getContextWindow, listProjectFiles, discoverProjectPlugins, applyEnvironmentSettingsChange, folderLocation, connectorGithubToken, listExtensionSource, hasUntimedOpenCalls, withRunningCallStarts, listSafelists, removeFromSafelist, buildModelCatalog, modelsForDescriptor, listDecisionModels, listImageModels, testDecisionModel, testModel, providerFactoryOptions, describeTitleStatus, overlayHostSettings, splitHostSettingsPatch, settingsToWire, storeHasDurability, onboardingInstallSignals, needsOnboarding, mergeOnboardingState, migratedOnboardingRecords, detectOnboardingEnvironment, onboardingProviders, BUILTIN_THEMES, toolCallPreview, readSessionEnvironment, assertEnvironmentReady, discoverProjectSkills, selectActiveTodos, setTodosForRun, sanitizeTodoItems, DEFAULT_MAX_TODO_ITEMS, fetchAllProviderUsage, fetchProviderUsage, redeemProviderReset, fetchGithubUsage, forgetGitCaches, createGitWatches, watchGitRepository, listWorkspace, resolvePaths, readWorkspaceFile, writeWorkspaceFile, invalidateDiagnostics, listDiagnosticsTools, supersededTools, runDiagnostics, gitStatus, gitDiff, gitShowHead, searchWorkspace, gitInfo, gitOriginUrl, gitPr, gitCommit, gitBranches, gitPrList, gitSwitch, gitCreateBranch, gitSync, workspaceEntryOps, changedCatalogItems, writeCredentialEntry, readCredentialEntry, createProviderBuilder, createArtifactKindsHost, createCatalogPorts, resolveSessionModel, linkCatalogs, readKeybindingsRaw, cloneRepository, fetchRepoInfo, compareSemver, checkForUpdate, watchInstalledVersion, isAutoInstallCandidate, findInstalledCompanion, followRunningUpdate, describeUpdateLockHolder, upgradeError, startUpdateWorker, autoInstallViaWorker, serveWorkspaceMedia } from "zidane/chat";
11
+ import { parseEditorCommand, keybindingsPath, stripJsonComments, normalizeBindingValue, ensureKeybindingsFile, credentialsPath, applyApiKeyEnv, BUILTIN_PROVIDERS, readCredentials, detectAuth, supportsOAuth, signsInWithIntegration, runIntegrationSignIn, runOAuthLogin, DEFAULT_OAUTH_ACCOUNT_LABEL, setProviderCredential, mcpsWritePath, upsertMcpServer, discoverProjectMcps, removeMcpServer, compactPath as compactPath$1, createExtensionMcpHost, createFileMcpCredentialStore, projectRootOf, runningEstimateViews, resolveConfig, scopeCwd, settingsFromStored, DEFAULT_SETTINGS, SETTINGS_DEFAULTS_VERSION_KEY, SETTINGS_DEFAULTS_VERSION, enforceSettingsInvariants, sparseSettingsUpdate, createMcpStatusTracker, describeForkFailure, DEFAULT_SPACE_ID, SPACE_METADATA_KEY, TITLE_SOURCE_KEY, createCapabilityProbe, createPromptSubmissions, localDayString, summarizeUsage, createChatHost, findGitRoot, fileEntriesFromPaths, WORKSPACE_MAX_ENTRIES, WORKSPACE_MAX_FILE_BYTES, gitStatusOf, assembleDiff, importEntries, hostImportItems, toolResultText, sumRunCosts, lastContextSizeFromTurns, availableAgents, liveAgentProfiles, groupArtifacts, defaultModelOf, restoreModelOptions, enabledModelOptions, modelOptionsFor, readProviderCredential, isSecretCustomField, removeProviderCredential, setPreferredCredential, removeStoredCredential, setCredentialLabel, providerFieldViews, configuredProviderFields, sessionEnvironmentSummary, sessionModelFallbacks, readSessionSpaceId, isMainSession, readSessionAccount, deriveSessionTitle, isStaleRunMarker, cachedRepoKeyOf, spaceIdForNewSession, newSessionModel, defaultSessionModel, defaultSessionKnobs, defaultSessionAgent, modelSupportsReasoning, deleteSessionData, writeSessionExport, hasClaudeCodeSetup, countClaudeSessionFiles, previewClaudeImport, importFromClaudeCode, runInProgress, runProgress, resolveSessionCwd, effectiveContextWindow, fmtTokens, getContextWindow, listProjectFiles, discoverProjectPlugins, applyEnvironmentSettingsChange, folderLocation, connectorGithubToken, listExtensionSource, hasUntimedOpenCalls, withRunningCallStarts, listSafelists, removeFromSafelist, buildModelCatalog, modelsForDescriptor, listDecisionModels, listImageModels, testDecisionModel, testModel, providerFactoryOptions, describeTitleStatus, overlayHostSettings, splitHostSettingsPatch, settingsToWire, storeHasDurability, onboardingInstallSignals, needsOnboarding, mergeOnboardingState, migratedOnboardingRecords, detectOnboardingEnvironment, onboardingProviders, BUILTIN_THEMES, toolCallPreview, readSessionEnvironment, assertEnvironmentReady, discoverProjectSkills, fetchAllProviderUsage, fetchProviderUsage, redeemProviderReset, fetchGithubUsage, forgetGitCaches, createGitWatches, watchGitRepository, listWorkspace, resolvePaths, readWorkspaceFile, writeWorkspaceFile, invalidateDiagnostics, listDiagnosticsTools, supersededTools, runDiagnostics, gitStatus, gitDiff, gitShowHead, searchWorkspace, gitInfo, gitOriginUrl, gitPr, gitCommit, gitBranches, gitPrList, gitSwitch, gitCreateBranch, gitSync, workspaceEntryOps, changedCatalogItems, writeCredentialEntry, readCredentialEntry, createProviderBuilder, createArtifactKindsHost, createCatalogPorts, resolveSessionModel, linkCatalogs, readKeybindingsRaw, cloneRepository, fetchRepoInfo, compareSemver, checkForUpdate, watchInstalledVersion, isAutoInstallCandidate, findInstalledCompanion, followRunningUpdate, describeUpdateLockHolder, upgradeError, startUpdateWorker, autoInstallViaWorker, serveWorkspaceMedia } from "zidane/chat";
12
12
  import { execFile, spawn } from "node:child_process";
13
13
  import { MEDIA_BY_EXTENSION, createPresenceMerge, createHostIndex, LOCAL_HOST_NAME, LOCAL_HOST_KEY, isMethodNotFound, HostRemovedError, sideSessionParent, orchestratedBy, BrowserOpError, normalizeBrowserUrl, isAllowedBrowserUrl, BROWSER_OUTLINE_MAX_ELEMENTS, BROWSER_TEXT_MAX_CHARS, BROWSER_EVALUATE_MAX_BYTES, BROWSER_MAX_WAIT_MS, BROWSER_ACTION_TIMEOUT_MS, BROWSER_WAIT_TIMEOUT_MS, BROWSER_OPEN_MOUNT_MS, TERMINAL_VIEW_MAX_LINES, daemonGate, remoteHostsGate, ARTIFACT_BADGES_MAX, readSessionFacets, isExtensionSpaceId, spacesEnabled, extensionSpace, usageHomeBlock, recentSessionsHomeBlock, HostRegistryError, SYNC_MODES, SYNC_CATEGORIES, isValidMachineName, toMachineName, engagedKillSwitches, isPaletteContext, BASH_CALL_ID_PREFIX, parseMachineKind, mediaTypeOfPath } from "zidane/chat/pure";
14
14
  import { createRequire } from "node:module";
@@ -1534,10 +1534,12 @@ const SIDEBAR_COUNTS_SQL = `
1534
1534
  'label', json_extract(r.data, '$.label'),
1535
1535
  'parentCallId', json_extract(r.data, '$.parentCallId'),
1536
1536
  'estimate', json(json_extract(r.data, '$.estimate')),
1537
- 'userWait', json(json_extract(r.data, '$.userWait'))))
1537
+ 'userWait', json(json_extract(r.data, '$.userWait')),
1538
+ 'estimateFailure', json(json_extract(r.data, '$.estimateFailure'))))
1538
1539
  FROM runs r WHERE r.session_id = s.id AND json_valid(r.data)
1539
1540
  AND json_extract(r.data, '$.status') = 'running'
1540
- AND json_extract(r.data, '$.estimate') IS NOT NULL)
1541
+ AND (json_extract(r.data, '$.estimate') IS NOT NULL
1542
+ OR json_extract(r.data, '$.estimateFailure') IS NOT NULL))
1541
1543
  END AS run_estimates
1542
1544
  FROM sessions s WHERE s.id IN (SELECT value FROM json_each(?))`;
1543
1545
  const sidebarCounts = /* @__PURE__ */ new Map();
@@ -2566,6 +2568,7 @@ function daemonHostClient(client2) {
2566
2568
  createSession: async (params) => (await client2.request("sessions.create", params)).id
2567
2569
  };
2568
2570
  }
2571
+ const SCHEDULE_USER = { kind: "user" };
2569
2572
  const submissions = (host2) => createPromptSubmissions(host2(), host2().transformPrompt);
2570
2573
  const EMBEDDED = {
2571
2574
  "chat.send": (host2, p) => submissions(host2).send(p),
@@ -2576,14 +2579,9 @@ const EMBEDDED = {
2576
2579
  "chat.isRunning": (host2, p) => host2().isSessionRunning(p.sessionId),
2577
2580
  "chat.listWork": (host2, p) => host2().listRunningWork(p.sessionId, p.children ? { children: true } : void 0),
2578
2581
  "chat.cancelWork": (host2, p) => host2().cancelRunningWork(p.sessionId, p.id, p.reason),
2579
- "todos.get": (host2, p) => {
2580
- const state2 = host2().getTodosSnapshot(p.sessionId);
2581
- return state2 ? toTodosSnapshot(state2) : null;
2582
- },
2583
- "todos.set": async (host2, p) => {
2584
- const state2 = await host2().setTodos(p.sessionId, p.items);
2585
- return state2 ? toTodosSnapshot(state2) : null;
2586
- },
2582
+ "plans.get": (host2, p) => host2().getPlansSnapshot(p.sessionId),
2583
+ "plans.edit": (host2, p) => host2().editPlan(p.sessionId, p.planId, p.op),
2584
+ "plans.control": (host2, p) => host2().controlPlan(p.sessionId, p.planId, p.action),
2587
2585
  // Artifacts: the in-process host has no artifact surface; the local store is the source.
2588
2586
  "sessions.artifacts": async (_host, p) => await getSessionStore().listArtifacts?.({ sessionId: p.sessionId }) ?? [],
2589
2587
  "artifacts.list": async (_host, p) => await getSessionStore().listArtifacts?.({
@@ -2680,6 +2678,18 @@ const EMBEDDED = {
2680
2678
  "queue.update": (host2, p) => host2().queueUpdate(p.sessionId, p.id, p.text, p.attachments),
2681
2679
  "queue.attachments": (host2, p) => host2().queueAttachments(p.sessionId, p.id),
2682
2680
  "queue.pushNow": (host2, p) => host2().queuePushNow(p.sessionId, p.id),
2681
+ // A session project's saved secrets: values go in, never out (names and expiry times only).
2682
+ "secrets.list": (host2, p) => host2().secrets.list(p.sessionId),
2683
+ "secrets.save": (host2, p) => host2().secrets.save(p.sessionId, { name: p.name, value: p.value, ttl: p.ttl }),
2684
+ "secrets.revoke": async (host2, p) => ({ removed: await host2().secrets.revoke(p.sessionId, p.name) }),
2685
+ // Reminders (docs/SCHEDULES.md): this window acts as the person, as a wire caller does on the daemon.
2686
+ "schedules.status": (host2) => ({ enabled: host2().schedules.enabled(), supported: host2().schedules.supported() }),
2687
+ "schedules.list": (host2, p) => host2().schedules.list(p ?? {}),
2688
+ "schedules.create": (host2, p) => host2().schedules.create(p, SCHEDULE_USER),
2689
+ "schedules.update": (host2, p) => host2().schedules.update(p.id, p.patch, SCHEDULE_USER),
2690
+ "schedules.delete": (host2, p) => host2().schedules.remove(p.id, SCHEDULE_USER),
2691
+ "schedules.runNow": (host2, p) => host2().schedules.runNow(p.id, SCHEDULE_USER),
2692
+ "schedules.fires": (host2, p) => host2().schedules.fires(p.id, p.limit),
2683
2693
  // Multi-window state exists only in the daemon; in-process these answer inert defaults.
2684
2694
  "drafts.get": () => ({ text: "" }),
2685
2695
  "presence.list": () => [],
@@ -6144,6 +6154,9 @@ function routeToRenderer(signal, raw, hostId2) {
6144
6154
  // consumes are forwarded. The protocol grows kinds faster than the GUI
6145
6155
  // adopts them; a default-forward would leak every future addition into
6146
6156
  // the renderer as an unknown payload (queue:changed already did).
6157
+ case "schedules:changed":
6158
+ if (hostId2 === LOCAL_SESSION_HOST) sendChatStream(signal);
6159
+ return;
6147
6160
  case "run:end":
6148
6161
  forgetLiveResults(signal.sessionId);
6149
6162
  sendChatStream(signal);
@@ -6155,9 +6168,11 @@ function routeToRenderer(signal, raw, hostId2) {
6155
6168
  case "compacting:end":
6156
6169
  case "model:fallback":
6157
6170
  case "work:snapshot":
6158
- case "todos:snapshot":
6171
+ case "plans:snapshot":
6159
6172
  case "artifact:recorded":
6160
6173
  case "artifact:changed":
6174
+ // A project's secret store changed: the session hosts list again (no name, no value).
6175
+ case "secrets:changed":
6161
6176
  /*
6162
6177
  * Forwarded so the renderer HAS the data. The stream reducer ignores
6163
6178
  * `cache:break` (its transcript row arrives as a persisted notice event)
@@ -6597,8 +6612,8 @@ function listRunningWork(key, options) {
6597
6612
  function cancelRunningWork(key, id, reason) {
6598
6613
  return sessionRequest("chat.cancelWork", key, { id, ...reason ? { reason } : {} });
6599
6614
  }
6600
- function getTodosSnapshot(key) {
6601
- return sessionRequest("todos.get", key, {});
6615
+ function getPlansSnapshot(key) {
6616
+ return sessionRequest("plans.get", key, {});
6602
6617
  }
6603
6618
  async function listArtifacts(query) {
6604
6619
  try {
@@ -6627,9 +6642,11 @@ async function refreshSessionArtifact(key, artifact, opts, registry) {
6627
6642
  return null;
6628
6643
  }
6629
6644
  }
6630
- function setSessionTodos(key, items) {
6631
- const persistIdle = hostFor({ key }).remote ? { persistIdle: true } : {};
6632
- return sessionRequest("todos.set", key, { items, ...persistIdle });
6645
+ function editSessionPlan(key, planId, op) {
6646
+ return sessionRequest("plans.edit", key, { planId, op });
6647
+ }
6648
+ function controlSessionPlan(key, planId, action) {
6649
+ return sessionRequest("plans.control", key, { planId, action });
6633
6650
  }
6634
6651
  function getContextBreakdown(key) {
6635
6652
  return sessionRequest("sessions.contextBreakdown", key, {});
@@ -6897,6 +6914,7 @@ function serverSessionRow(hostId2, row, meta) {
6897
6914
  ...row.modelFallbacks && row.modelFallbacks.length > 0 ? { modelFallbacks: row.modelFallbacks } : {},
6898
6915
  archived: row.archived,
6899
6916
  ...row.favorite ? { favorite: true } : {},
6917
+ ...meta?.scheduleId ?? row.scheduleId ? { scheduleId: meta?.scheduleId ?? row.scheduleId } : {},
6900
6918
  ...row.isMain ? { isMain: true } : {},
6901
6919
  ...row.spaceId ? { spaceId: row.spaceId } : {},
6902
6920
  ...row.environment ? { environment: row.environment } : {},
@@ -8075,6 +8093,8 @@ function sidebarRowFromMeta(meta, settings) {
8075
8093
  ...modelFallbacks.length > 0 ? { modelFallbacks } : {},
8076
8094
  archived: meta.metadata.archived === true,
8077
8095
  ...meta.metadata.favorite === true ? { favorite: true } : {},
8096
+ // A reminder started it (`metadata.scheduleId`): the sidebar's clock mark and Origin filter.
8097
+ ...typeof meta.metadata.scheduleId === "string" && meta.metadata.scheduleId ? { scheduleId: meta.metadata.scheduleId } : {},
8078
8098
  ...isMainSession(meta.metadata) ? { isMain: true } : {},
8079
8099
  ...readSessionSpaceId(meta.metadata) ? { spaceId: readSessionSpaceId(meta.metadata) } : {},
8080
8100
  ...environment ? { environment } : {},
@@ -9268,6 +9288,8 @@ function registerExtensionChannels({ ipc }) {
9268
9288
  });
9269
9289
  ipc.handle("extensions:remove", async (_e, cwd, dir, name) => {
9270
9290
  const message2 = removeExtension({ cwd, dir, name });
9291
+ const daemon2 = daemonReads();
9292
+ await (daemon2 ? daemon2.request("schedules.extensionRemoved", { extensionId: name }) : getChatHost().schedules.extensionRemoved(name)).catch(() => void 0);
9271
9293
  invalidateExtensionsAndNotify();
9272
9294
  invalidateConfig();
9273
9295
  await shutdownChat();
@@ -11025,6 +11047,32 @@ function registerQueueChannels({ ipc }) {
11025
11047
  (_e, sessionId, id) => sessionRequest("queue.pushNow", sessionId, { id })
11026
11048
  );
11027
11049
  }
11050
+ function registerSecretChannels({ ipc }) {
11051
+ ipc.handle("secrets:list", (_e, sessionId) => sessionRequest("secrets.list", sessionId, {}));
11052
+ ipc.handle(
11053
+ "secrets:save",
11054
+ (_e, sessionId, input) => sessionRequest("secrets.save", sessionId, { name: input.name, value: input.value, ttl: input.ttl })
11055
+ );
11056
+ ipc.handle(
11057
+ "secrets:revoke",
11058
+ (_e, sessionId, name) => sessionRequest("secrets.revoke", sessionId, { name })
11059
+ );
11060
+ }
11061
+ function registerScheduleChannels({ ipc }) {
11062
+ ipc.handle("schedules:status", () => hostRequest("schedules.status", {}));
11063
+ ipc.handle("schedules:list", () => hostRequest("schedules.list", {}));
11064
+ ipc.handle("schedules:create", (_e, input) => hostRequest("schedules.create", input));
11065
+ ipc.handle(
11066
+ "schedules:update",
11067
+ (_e, id, patch) => hostRequest("schedules.update", { id, patch })
11068
+ );
11069
+ ipc.handle("schedules:delete", (_e, id) => hostRequest("schedules.delete", { id }));
11070
+ ipc.handle("schedules:runNow", (_e, id) => hostRequest("schedules.runNow", { id }));
11071
+ ipc.handle(
11072
+ "schedules:fires",
11073
+ (_e, id, limit) => hostRequest("schedules.fires", { id, ...limit !== void 0 ? { limit } : {} })
11074
+ );
11075
+ }
11028
11076
  const REFERENCE_RESOLVE_MAX = 50;
11029
11077
  async function storedArtifacts(uri) {
11030
11078
  try {
@@ -11591,6 +11639,9 @@ function registerBlockRunChannels({ ipc }) {
11591
11639
  }
11592
11640
  const VIEW_PREFIX = "sidebar_view:";
11593
11641
  const SPACE_KEY = "sidebar_space";
11642
+ const HISTORY_KEY = "sidebar_history";
11643
+ const MAX_HISTORY_ENTRIES = 200;
11644
+ const MAX_PAGE = 512;
11594
11645
  const MAX_SPACE_ID = 200;
11595
11646
  const MAX_VIEW_JSON = 4096;
11596
11647
  function assertSpaceId(spaceId) {
@@ -11598,6 +11649,16 @@ function assertSpaceId(spaceId) {
11598
11649
  throw new Error(`Invalid space id: ${String(spaceId)}`);
11599
11650
  }
11600
11651
  }
11652
+ function assertHistory(history) {
11653
+ if (!history || typeof history !== "object" || Array.isArray(history)) throw new Error("Invalid page history");
11654
+ const { entries, index } = history;
11655
+ if (!Array.isArray(entries) || entries.length > MAX_HISTORY_ENTRIES || !entries.every((page) => page === null || typeof page === "string" && page.length > 0 && page.length <= MAX_PAGE)) {
11656
+ throw new Error("Invalid page history entries");
11657
+ }
11658
+ if (typeof index !== "number" || !Number.isInteger(index) || index < -1 || index >= entries.length) {
11659
+ throw new Error("Invalid page history cursor");
11660
+ }
11661
+ }
11601
11662
  function registerSidebarChannels({ ipc }) {
11602
11663
  ipc.handle("sidebar:getViews", () => {
11603
11664
  const views2 = {};
@@ -11617,6 +11678,19 @@ function registerSidebarChannels({ ipc }) {
11617
11678
  settingsRepo.set(VIEW_PREFIX + spaceId, json);
11618
11679
  });
11619
11680
  ipc.handle("sidebar:getSpace", () => settingsRepo.get(SPACE_KEY));
11681
+ ipc.handle("sidebar:getHistory", () => {
11682
+ const raw = settingsRepo.get(HISTORY_KEY);
11683
+ if (raw === null) return null;
11684
+ try {
11685
+ return JSON.parse(raw);
11686
+ } catch {
11687
+ return null;
11688
+ }
11689
+ });
11690
+ ipc.handle("sidebar:setHistory", (_e, history) => {
11691
+ assertHistory(history);
11692
+ settingsRepo.set(HISTORY_KEY, JSON.stringify({ entries: history.entries, index: history.index }));
11693
+ });
11620
11694
  ipc.handle("sidebar:setSpace", (_e, spaceId) => {
11621
11695
  assertSpaceId(spaceId);
11622
11696
  settingsRepo.set(SPACE_KEY, spaceId);
@@ -11756,51 +11830,16 @@ function registerSystemChannels({ ipc }) {
11756
11830
  return true;
11757
11831
  });
11758
11832
  }
11759
- function coldActiveTodos(sessionId) {
11760
- const metadata = getSessionMetadata(sessionId);
11761
- if (!metadata) {
11762
- return null;
11763
- }
11764
- const runs = loadRuns(sessionId).map(
11765
- (run) => run.status === "running" ? { ...run, status: "aborted", endedAt: run.endedAt ?? run.startedAt } : run
11833
+ function registerPlanChannels({ ipc }) {
11834
+ ipc.handle("plans:get", (_e, sessionId) => getPlansSnapshot(sessionId));
11835
+ ipc.handle(
11836
+ "plans:edit",
11837
+ (_e, sessionId, planId, op) => editSessionPlan(sessionId, planId, op)
11838
+ );
11839
+ ipc.handle(
11840
+ "plans:control",
11841
+ (_e, sessionId, planId, action) => controlSessionPlan(sessionId, planId, action)
11766
11842
  );
11767
- return selectActiveTodos({ metadata, runs });
11768
- }
11769
- function registerTodoChannels({ ipc }) {
11770
- ipc.handle("todos:get", async (_e, sessionId) => {
11771
- const live = await getTodosSnapshot(sessionId);
11772
- const cold = live || serverIdOf(sessionId) !== null ? null : coldActiveTodos(sessionIdOf(sessionId));
11773
- const state2 = live ?? (cold && (cold.runId || cold.todos.length > 0 || cold.archive.length > 0) ? cold : null);
11774
- if (!state2) {
11775
- return null;
11776
- }
11777
- return {
11778
- runId: state2.runId,
11779
- todos: [...state2.todos],
11780
- archive: [...state2.archive],
11781
- inProgress: state2.inProgress,
11782
- tally: state2.tally
11783
- };
11784
- });
11785
- ipc.handle("todos:set", async (_e, sessionId, items) => {
11786
- const applied = await setSessionTodos(sessionId, items);
11787
- if (applied) {
11788
- return applied;
11789
- }
11790
- if (serverIdOf(sessionId) !== null) {
11791
- return null;
11792
- }
11793
- const session2 = await loadSession(getSessionStore(), sessionIdOf(sessionId));
11794
- if (!session2) {
11795
- return null;
11796
- }
11797
- const runId = selectActiveTodos(session2).runId;
11798
- setTodosForRun(session2, runId, sanitizeTodoItems(items, DEFAULT_MAX_TODO_ITEMS), { clearArchive: true });
11799
- await session2.save();
11800
- const snapshot = toTodosSnapshot(selectActiveTodos(session2));
11801
- broadcastLocal({ kind: "todos:snapshot", sessionId, snapshot });
11802
- return snapshot;
11803
- });
11804
11843
  }
11805
11844
  const GITHUB_PROBE_MS = 2 * 6e4;
11806
11845
  function createGithubUsageRead(fetch = fetchGithubUsage, now = Date.now) {
@@ -13936,6 +13975,7 @@ function createDesktopExtensionsHost(options) {
13936
13975
  // Core builds these from the bridge only when a host passes no `host` port: this one does.
13937
13976
  ...bridge ? {
13938
13977
  sessions: { sessionControl: bridge.sessionControl },
13978
+ schedules: { sessionControl: bridge.sessionControl, scheduleHandlers: bridge.scheduleHandlers },
13939
13979
  workspace: { current: bridge.current },
13940
13980
  artifacts: { current: bridge.current, registerKind }
13941
13981
  } : { artifacts: { current: () => null, registerKind } },
@@ -13990,7 +14030,7 @@ function createDesktopExtensionsHost(options) {
13990
14030
  return auth?.methods.find((method) => method.active === true && method.id)?.id;
13991
14031
  },
13992
14032
  discovery: () => ({ cwd, prefix: options.prefix, home: homedir() }),
13993
- mcp: { call: mcpCall(cwd) }
14033
+ mcp: { call: mcpCall(cwd), status: () => options.mcpStatus?.(cwd, runtime) ?? [] }
13994
14034
  });
13995
14035
  const runtimeOptions = {
13996
14036
  host: "desktop",
@@ -14220,11 +14260,10 @@ function isInside(file, root) {
14220
14260
  const inside = relative(root, file);
14221
14261
  return inside !== "" && !inside.startsWith("..") && !isAbsolute(inside);
14222
14262
  }
14223
- function registerExtensionWebviewScheme() {
14224
- protocol.registerSchemesAsPrivileged([
14225
- { scheme: EXTENSION_WEBVIEW_SCHEME, privileges: { standard: true, secure: true, supportFetchAPI: true } }
14226
- ]);
14227
- }
14263
+ const EXTENSION_WEBVIEW_SCHEME_PRIVILEGES = {
14264
+ scheme: EXTENSION_WEBVIEW_SCHEME,
14265
+ privileges: { standard: true, secure: true, supportFetchAPI: true }
14266
+ };
14228
14267
  let daemonBackend;
14229
14268
  function handleExtensionWebviewProtocol() {
14230
14269
  protocol.handle(
@@ -14272,6 +14311,15 @@ function installExtensions({
14272
14311
  }),
14273
14312
  hostRuntime: extensionHostRuntime,
14274
14313
  mcp: () => extensionMcpHost,
14314
+ // `ctx.mcp.list()` by the daemon's rule: enabled servers (`idle` until a call connects them), disabled ones.
14315
+ mcpStatus: (cwd, runtime) => mcpStatusOf({
14316
+ cwd,
14317
+ runtime,
14318
+ prefix: process.env.ZIDANE_PREFIX ?? ".zidane",
14319
+ settings: readSettings(),
14320
+ dataDir: userDataDir(),
14321
+ host: void 0
14322
+ }),
14275
14323
  providers: (cwd) => cachedRuntimeConfig(cwd)?.providers ?? getResolvedConfig().providers,
14276
14324
  readSettings: () => readSettings(),
14277
14325
  applyAuthEnv,
@@ -14448,9 +14496,11 @@ function registerChatIpc() {
14448
14496
  registerArtifactChannels({ ipc });
14449
14497
  registerReferenceChannels({ ipc });
14450
14498
  registerBadgeChannels({ ipc });
14451
- registerTodoChannels({ ipc });
14499
+ registerPlanChannels({ ipc });
14452
14500
  registerDraftChannels({ ipc });
14453
14501
  registerQueueChannels({ ipc });
14502
+ registerSecretChannels({ ipc });
14503
+ registerScheduleChannels({ ipc });
14454
14504
  registerPresenceChannels({ ipc });
14455
14505
  registerSafeModeChannels({ ipc });
14456
14506
  registerDiscoveryChannels({ ipc });
@@ -15298,15 +15348,11 @@ function attachmentBlockText(block) {
15298
15348
  }
15299
15349
  return null;
15300
15350
  }
15301
- function registerMediaScheme() {
15302
- protocol.registerSchemesAsPrivileged([
15303
- {
15304
- scheme: MEDIA_SCHEME,
15305
- // `corsEnabled`: the page reads a text attachment with `fetch`, a cross-origin request.
15306
- privileges: { standard: true, secure: true, stream: true, supportFetchAPI: true, corsEnabled: true }
15307
- }
15308
- ]);
15309
- }
15351
+ const MEDIA_SCHEME_PRIVILEGES = {
15352
+ scheme: MEDIA_SCHEME,
15353
+ // `corsEnabled`: the page reads an image or a text attachment with `fetch`, a cross-origin request.
15354
+ privileges: { standard: true, secure: true, stream: true, supportFetchAPI: true, corsEnabled: true }
15355
+ };
15310
15356
  function handleMediaProtocol() {
15311
15357
  protocol.handle(MEDIA_SCHEME, (request2) => serveMedia(request2).catch(() => notFound()));
15312
15358
  app.on("will-quit", closeStoredToolResults);
@@ -15316,6 +15362,7 @@ const IMMUTABLE = "private, max-age=31536000, immutable";
15316
15362
  const NO_ACTIVE_CONTENT = "default-src 'none'; img-src 'self' data:; media-src 'self'; style-src 'unsafe-inline'; sandbox";
15317
15363
  async function serveMedia(request2) {
15318
15364
  const res = await routeMedia(request2);
15365
+ res.headers.set("access-control-allow-origin", "*");
15319
15366
  if (res.headers.get("content-type") !== "application/pdf")
15320
15367
  res.headers.set("content-security-policy", NO_ACTIVE_CONTENT);
15321
15368
  return res;
@@ -15366,13 +15413,7 @@ function promptText(url) {
15366
15413
  const block = turn?.role === "user" ? promptAttachmentBlocks(turn)[at.index] : void 0;
15367
15414
  const text2 = block ? attachmentBlockText(block) : null;
15368
15415
  if (text2 === null) return notFound();
15369
- return new Response(text2, {
15370
- headers: {
15371
- "content-type": "text/plain; charset=utf-8",
15372
- "cache-control": IMMUTABLE,
15373
- "access-control-allow-origin": "*"
15374
- }
15375
- });
15416
+ return new Response(text2, { headers: { "content-type": "text/plain; charset=utf-8", "cache-control": IMMUTABLE } });
15376
15417
  }
15377
15418
  async function toolMedia(url) {
15378
15419
  const at = storedAddress(url);
@@ -16172,8 +16213,7 @@ config({ path: join(import.meta.dirname, "../../.env"), quiet: true });
16172
16213
  setBuiltEntriesDir(import.meta.dirname);
16173
16214
  installIpcTiming(ipcMain);
16174
16215
  app.on("web-contents-created", (_event, contents) => timePushes(contents));
16175
- registerMediaScheme();
16176
- registerExtensionWebviewScheme();
16216
+ protocol.registerSchemesAsPrivileged([MEDIA_SCHEME_PRIVILEGES, EXTENSION_WEBVIEW_SCHEME_PRIVILEGES]);
16177
16217
  installProcessErrorLogging();
16178
16218
  ignoreStdioWriteErrors();
16179
16219
  const RENDERER_INDEX = join(import.meta.dirname, "../renderer/index.html");
@@ -138,7 +138,9 @@ const api = {
138
138
  getViews: () => ipcRenderer.invoke("sidebar:getViews"),
139
139
  setView: (spaceId, view) => ipcRenderer.invoke("sidebar:setView", spaceId, view),
140
140
  getSpace: () => ipcRenderer.invoke("sidebar:getSpace"),
141
- setSpace: (spaceId) => ipcRenderer.invoke("sidebar:setSpace", spaceId)
141
+ setSpace: (spaceId) => ipcRenderer.invoke("sidebar:setSpace", spaceId),
142
+ getHistory: () => ipcRenderer.invoke("sidebar:getHistory"),
143
+ setHistory: (history) => ipcRenderer.invoke("sidebar:setHistory", history)
142
144
  },
143
145
  repo: {
144
146
  defaultParent: () => ipcRenderer.invoke("repo:defaultParent"),
@@ -245,6 +247,20 @@ const api = {
245
247
  pushNow: (sessionId, id) => ipcRenderer.invoke("queue:pushNow", sessionId, id),
246
248
  onChanged: (cb) => subscribe("queue:changed", cb)
247
249
  },
250
+ secrets: {
251
+ list: (sessionId) => ipcRenderer.invoke("secrets:list", sessionId),
252
+ save: (sessionId, input) => ipcRenderer.invoke("secrets:save", sessionId, input),
253
+ revoke: (sessionId, name) => ipcRenderer.invoke("secrets:revoke", sessionId, name)
254
+ },
255
+ schedules: {
256
+ status: () => ipcRenderer.invoke("schedules:status"),
257
+ list: () => ipcRenderer.invoke("schedules:list"),
258
+ create: (input) => ipcRenderer.invoke("schedules:create", input),
259
+ update: (id, patch) => ipcRenderer.invoke("schedules:update", id, patch),
260
+ delete: (id) => ipcRenderer.invoke("schedules:delete", id),
261
+ runNow: (id) => ipcRenderer.invoke("schedules:runNow", id),
262
+ fires: (id, limit) => ipcRenderer.invoke("schedules:fires", id, limit)
263
+ },
248
264
  presence: {
249
265
  list: () => ipcRenderer.invoke("presence:list"),
250
266
  onChanged: (cb) => subscribe("presence:changed", cb)
@@ -279,9 +295,10 @@ const api = {
279
295
  remove: (sessionId, key) => ipcRenderer.invoke("blocks:remove", sessionId, key),
280
296
  onChanged: (cb) => subscribe("blocks:changed", cb)
281
297
  },
282
- todos: {
283
- get: (sessionId) => ipcRenderer.invoke("todos:get", sessionId),
284
- set: (sessionId, items) => ipcRenderer.invoke("todos:set", sessionId, items)
298
+ plans: {
299
+ get: (sessionId) => ipcRenderer.invoke("plans:get", sessionId),
300
+ edit: (sessionId, planId, op) => ipcRenderer.invoke("plans:edit", sessionId, planId, op),
301
+ control: (sessionId, planId, action) => ipcRenderer.invoke("plans:control", sessionId, planId, action)
285
302
  },
286
303
  artifacts: {
287
304
  list: (query) => ipcRenderer.invoke("artifacts:list", query),
@@ -1,10 +1,10 @@
1
- import { i } from "./D5TW5CPZ-Bp-wetYa.js";
2
- import { A, E } from "./OHJ2EJXK-CKyEtj37.js";
3
- import { q, R as R$1, g as r, d as de, e as ee$1 } from "./lazy-C1DShJVi.js";
1
+ import { i } from "./D5TW5CPZ-C04jssFu.js";
2
+ import { A, E } from "./OHJ2EJXK-DUXRo20H.js";
3
+ import { q, R as R$1, g as r, d as de, e as ee$1 } from "./lazy-xGoFzwfG.js";
4
4
  import { p, h } from "./DKTLEL5E-Dj3316cp.js";
5
- import { x, D, $, U, B, z as z$1, Y, v } from "./IU7WZTP6-D7pwhQLH.js";
6
- import { n as ne$1, x as x$1, c as jt, L, l as le, S, d as de$1, W as Wt, b as be } from "./KHUP5TOH-BX0A2YHC.js";
7
- import "./core-2jWUG3m-.js";
5
+ import { x, D, $, U, B, z as z$1, Y, v } from "./IU7WZTP6-DeXscWir.js";
6
+ import { n as ne$1, x as x$1, c as jt, L, l as le, S, d as de$1, W as Wt, b as be } from "./KHUP5TOH-0CDf31VX.js";
7
+ import "./core-DUTJyMGZ.js";
8
8
  import "./vendor-BpwX-s_O.js";
9
9
  import "./vendor-react-bPTwWURR.js";
10
10
  var J = /[─━│┃└┗├┣]/, Le = /[└┗├┣]/, Qe = /[─━]/, De = /^[\s│┃]+$/, Ze = /^[\s─━│┃└┗├┣]+$/, Je = /^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/, en = /^\s*%%/, nn = " ";
@@ -1,9 +1,9 @@
1
- import { g, d, x } from "./XLHPVVFU-4_9lhZe2.js";
2
- import { s, T } from "./TR4WJQGX-DXlqK6NQ.js";
3
- import { i, b as e, V, d as de } from "./lazy-C1DShJVi.js";
1
+ import { g, d, x } from "./XLHPVVFU-CgBgWtsm.js";
2
+ import { s, T } from "./TR4WJQGX-DdGw5EgP.js";
3
+ import { i, b as e, V, d as de } from "./lazy-xGoFzwfG.js";
4
4
  import { c } from "./DKTLEL5E-Dj3316cp.js";
5
- import { x as x$1, p as pe, L as L$1, c as jt$1, W as Wt, b as be } from "./KHUP5TOH-BX0A2YHC.js";
6
- import "./core-2jWUG3m-.js";
5
+ import { x as x$1, p as pe, L as L$1, c as jt$1, W as Wt, b as be } from "./KHUP5TOH-0CDf31VX.js";
6
+ import "./core-DUTJyMGZ.js";
7
7
  import "./vendor-BpwX-s_O.js";
8
8
  import "./vendor-react-bPTwWURR.js";
9
9
  function rt(e2) {
@@ -1,18 +1,18 @@
1
- import { e as es, K as Kt } from "./LTYQZ5U5-BxUtiilS.js";
2
- import { X as Xn, Y as Yn, I as In, k as kn } from "./UWRPUF3N-7_KSfEv0.js";
1
+ import { e as es, K as Kt } from "./LTYQZ5U5-CfgFK_8S.js";
2
+ import { X as Xn, Y as Yn, I as In, k as kn } from "./UWRPUF3N-B9f5cVuf.js";
3
3
  import { H } from "./2CHDFZHC-B7OS2WPy.js";
4
- import { W as Wt, x } from "./KHUP5TOH-BX0A2YHC.js";
4
+ import { W as Wt, x } from "./KHUP5TOH-0CDf31VX.js";
5
5
  import "./FTXIJQGB-BX14b7pN.js";
6
- import "./lazy-C1DShJVi.js";
7
- import "./core-2jWUG3m-.js";
6
+ import "./lazy-xGoFzwfG.js";
7
+ import "./core-DUTJyMGZ.js";
8
8
  import "./vendor-BpwX-s_O.js";
9
9
  import "./vendor-react-bPTwWURR.js";
10
10
  import "./7WLXJQOR-C8MM6Bra.js";
11
- import "./YUPSMAUO-0pM5w-ie.js";
12
- import "./LLLWOAQD-DNhT1-qV.js";
13
- import "./PDMLSE6I-BnbSSXbG.js";
14
- import "./NDSCUZ25-DltJ5xGa.js";
15
- import "./VSWIZJ7B-qmPn48eQ.js";
11
+ import "./YUPSMAUO-3HW0N7cY.js";
12
+ import "./LLLWOAQD-NLayfyRk.js";
13
+ import "./PDMLSE6I-B6VLJpYF.js";
14
+ import "./NDSCUZ25-CRhHG4rp.js";
15
+ import "./VSWIZJ7B-B67GWWkR.js";
16
16
  import "./DKTLEL5E-Dj3316cp.js";
17
17
  var Rn = 34, Nn = 24, Un = 8, Cn = 2e4, dn = 1e4, zt = 2e6, pn = 4, Tn = 3, yn = 8, Vt = 20, wn = 20, Mn = 14, Dn = 3;
18
18
  function xn(r, y, M, N, X = Nn) {
@@ -1,15 +1,15 @@
1
1
  import { i as i$1, a } from "./FTXIJQGB-BX14b7pN.js";
2
- import { c as q, q as q$1, R, d as de, e as ee, b as e, K, Z, V, i as i$2 } from "./lazy-C1DShJVi.js";
2
+ import { c as q, q as q$1, R, d as de, e as ee, b as e, K, Z, V, i as i$2 } from "./lazy-xGoFzwfG.js";
3
3
  import { h as h$1 } from "./7WLXJQOR-C8MM6Bra.js";
4
- import { x, h } from "./YUPSMAUO-0pM5w-ie.js";
5
- import { q as qe$1, z as ze$1, _ as _e, j as je$1, H as He$1 } from "./LLLWOAQD-DNhT1-qV.js";
6
- import { A, H as H$1, T as T$1, U } from "./NDSCUZ25-DltJ5xGa.js";
7
- import { o, i, P, F, R as R$1, B } from "./VSWIZJ7B-qmPn48eQ.js";
4
+ import { x, h } from "./YUPSMAUO-3HW0N7cY.js";
5
+ import { q as qe$1, z as ze$1, _ as _e, j as je$1, H as He$1 } from "./LLLWOAQD-NLayfyRk.js";
6
+ import { A, H as H$1, T as T$1, U } from "./NDSCUZ25-CRhHG4rp.js";
7
+ import { o, i, P, F, R as R$1, B } from "./VSWIZJ7B-B67GWWkR.js";
8
8
  import { m, c } from "./DKTLEL5E-Dj3316cp.js";
9
- import { J as Jn, K as Kn, s as se, r as re, n as ne$1, e as ee$1, b as an$1, o as oe } from "./UWRPUF3N-7_KSfEv0.js";
9
+ import { J as Jn, K as Kn, s as se, r as re, n as ne$1, e as ee$1, b as an$1, o as oe } from "./UWRPUF3N-B9f5cVuf.js";
10
10
  import { T, H } from "./2CHDFZHC-B7OS2WPy.js";
11
- import { h as he, n as ne, d as de$1, L, x as x$1, a as ae, W as Wt$1, p as pe, S, b as be$1, f as fe$1 } from "./KHUP5TOH-BX0A2YHC.js";
12
- import "./core-2jWUG3m-.js";
11
+ import { h as he, n as ne, d as de$1, L, x as x$1, a as ae, W as Wt$1, p as pe, S, b as be$1, f as fe$1 } from "./KHUP5TOH-0CDf31VX.js";
12
+ import "./core-DUTJyMGZ.js";
13
13
  import "./vendor-BpwX-s_O.js";
14
14
  import "./vendor-react-bPTwWURR.js";
15
15
  var nn = /* @__PURE__ */ new Map([["task", "roundedRect"], ["tool", "subroutine"], ["input", "lean-right"], ["decision", "diamond"], ["refdoc", "lin-doc"], ["action", "hexagon"], ["round", "rect"]]), sn = /* @__PURE__ */ new Set(["doc", "stadium", "terminal", "circle", "trapezoid", "inv_trapezoid", "inv-trapezoid", "doublecircle", "double-circle", "typeDeclaration", "procs", "lean_left", "lean-left", "in-out", "cylinder", "ellipse", "odd", "tag-rect", "tagged-rectangle", "delay", "half-rounded-rectangle", "lin-rect", "lined-rectangle", "win-pane", "window-pane", "curv-trap", "curved-trapezoid"]), rn = /* @__PURE__ */ new Set(["roundedRect", "subroutine", "subprocess", "subproc", "framed-rectangle", "lean-right", "diamond", "lin-doc", "lined-document", "hexagon", "hex", "connector", "collapsedGroup"]), Se = "roundedRect";
@@ -1,10 +1,10 @@
1
- import { W, Y, X } from "./SXSLPWUD-ylCpsia5.js";
2
- import { g } from "./PDMLSE6I-BnbSSXbG.js";
3
- import { P, I, R } from "./VSWIZJ7B-qmPn48eQ.js";
1
+ import { W, Y, X } from "./SXSLPWUD-DsiZBZ2L.js";
2
+ import { g } from "./PDMLSE6I-B6VLJpYF.js";
3
+ import { P, I, R } from "./VSWIZJ7B-B67GWWkR.js";
4
4
  import { c, h } from "./DKTLEL5E-Dj3316cp.js";
5
- import { n as ne$1, p as pe, x, d as de$1, L, W as Wt$1, b as be, s as se, o as oe$1 } from "./KHUP5TOH-BX0A2YHC.js";
6
- import { q, d as de, r as re } from "./lazy-C1DShJVi.js";
7
- import "./core-2jWUG3m-.js";
5
+ import { n as ne$1, p as pe, x, d as de$1, L, W as Wt$1, b as be, s as se, o as oe$1 } from "./KHUP5TOH-0CDf31VX.js";
6
+ import { q, d as de, r as re } from "./lazy-xGoFzwfG.js";
7
+ import "./core-DUTJyMGZ.js";
8
8
  import "./vendor-BpwX-s_O.js";
9
9
  import "./vendor-react-bPTwWURR.js";
10
10
  var Qt = 11, nt = class {
@@ -1,11 +1,11 @@
1
- import { c as q, q as q$1, V, b as e, i, t, d as de } from "./lazy-C1DShJVi.js";
2
- import { T } from "./OHJ2EJXK-CKyEtj37.js";
3
- import { g } from "./PDMLSE6I-BnbSSXbG.js";
1
+ import { c as q, q as q$1, V, b as e, i, t, d as de } from "./lazy-xGoFzwfG.js";
2
+ import { T } from "./OHJ2EJXK-DUXRo20H.js";
3
+ import { g } from "./PDMLSE6I-B6VLJpYF.js";
4
4
  import { p, h } from "./DKTLEL5E-Dj3316cp.js";
5
- import { _ as _t, b as an } from "./UWRPUF3N-7_KSfEv0.js";
5
+ import { _ as _t, b as an } from "./UWRPUF3N-B9f5cVuf.js";
6
6
  import { A } from "./2CHDFZHC-B7OS2WPy.js";
7
- import { x, h as he, a as ae$1, c as jt, L, W as Wt$1, b as be, l as le, n as ne, d as de$1, S } from "./KHUP5TOH-BX0A2YHC.js";
8
- import "./core-2jWUG3m-.js";
7
+ import { x, h as he, a as ae$1, c as jt, L, W as Wt$1, b as be, l as le, n as ne, d as de$1, S } from "./KHUP5TOH-0CDf31VX.js";
8
+ import "./core-DUTJyMGZ.js";
9
9
  import "./vendor-BpwX-s_O.js";
10
10
  import "./vendor-react-bPTwWURR.js";
11
11
  var Mn = "aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkgrey darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkslategrey darkturquoise darkviolet deeppink deepskyblue dimgray dimgrey dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray green greenyellow grey honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightgrey lightpink lightsalmon lightseagreen lightskyblue lightslategray lightslategrey lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple rebeccapurple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray slategrey snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen transparent currentcolor inherit initial unset revert accentcolor accentcolortext activetext buttonborder buttonface buttontext canvas canvastext field fieldtext graytext highlight highlighttext linktext mark marktext selecteditem selecteditemtext visitedtext activeborder activecaption appworkspace background buttonhighlight buttonshadow captiontext inactiveborder inactivecaption inactivecaptiontext infobackground infotext menu menutext scrollbar threeddarkshadow threedface threedhighlight threedlightshadow threedshadow window windowframe windowtext", dn, vn = /^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?(%|deg|grad|rad|turn)?$/i;
@@ -1,10 +1,10 @@
1
- import { g, d, h, x as x$1 } from "./XLHPVVFU-4_9lhZe2.js";
2
- import { s, T } from "./TR4WJQGX-DXlqK6NQ.js";
3
- import { q, d as de, i, b as e, V } from "./lazy-C1DShJVi.js";
1
+ import { g, d, h, x as x$1 } from "./XLHPVVFU-CgBgWtsm.js";
2
+ import { s, T } from "./TR4WJQGX-DdGw5EgP.js";
3
+ import { q, d as de, i, b as e, V } from "./lazy-xGoFzwfG.js";
4
4
  import { c } from "./DKTLEL5E-Dj3316cp.js";
5
- import { b as an, _ as _t } from "./UWRPUF3N-7_KSfEv0.js";
6
- import { x, W as Wt, b as be$1, L as L$1, p as pe, a as ae } from "./KHUP5TOH-BX0A2YHC.js";
7
- import "./core-2jWUG3m-.js";
5
+ import { b as an, _ as _t } from "./UWRPUF3N-B9f5cVuf.js";
6
+ import { x, W as Wt, b as be$1, L as L$1, p as pe, a as ae } from "./KHUP5TOH-0CDf31VX.js";
7
+ import "./core-DUTJyMGZ.js";
8
8
  import "./vendor-BpwX-s_O.js";
9
9
  import "./vendor-react-bPTwWURR.js";
10
10
  import "./2CHDFZHC-B7OS2WPy.js";