@puddle-code/cli 0.4.17 → 0.5.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/CHANGELOG.md +39 -30
- package/dist/host-control.mjs +419 -3
- package/dist/index.js +441 -6
- package/dist/public/assets/App-ESs-lBsA.js +49 -0
- package/dist/public/assets/CompilationCommandForm-D7uBn2um.js +1 -0
- package/dist/public/assets/Dashboard-DWwOy6bQ.js +1 -0
- package/dist/public/assets/DraftRecovery-DO-ymSIW.js +1 -0
- package/dist/public/assets/EditorTabClose-DEizui0i.js +1 -0
- package/dist/public/assets/FileCloseScope-DKbSgHF2.js +1 -0
- package/dist/public/assets/{FileEditorSettingsMenu-JUB6GRyp.js → FileEditorSettingsMenu-DnMJu5pC.js} +1 -1
- package/dist/public/assets/LazyTerminal-B0GmOiTE.js +2 -0
- package/dist/public/assets/{ModelRefcount-Bbr8zY_6.js → ModelRefcount-DBzR9UEq.js} +1 -1
- package/dist/public/assets/NotebookWidget-DlpLANDa.js +7 -0
- package/dist/public/assets/{PaneEditorBody-nc1Z681y.js → PaneEditorBody-DRZ6NrJ1.js} +19 -19
- package/dist/public/assets/PdfViewer-B3z9sh0x.js +2 -0
- package/dist/public/assets/{Ripple-DYosRAZ1.css → Ripple-C8HPFMGB.css} +1 -1
- package/dist/public/assets/Ripple-CLkhZZWa.js +11 -0
- package/dist/public/assets/SettingsDialog-DBUHpb9S.js +8 -0
- package/dist/public/assets/Terminal-C3TQK74f.js +65 -0
- package/dist/public/assets/Workspace-D_NxUGYW.js +20 -0
- package/dist/public/assets/api--n1Ha6tG.js +1 -0
- package/dist/public/assets/auth-eu0vmKkB.js +1 -0
- package/dist/public/assets/{buffer-store-fV6iYuCU.js → buffer-store-CBhXNRZm.js} +1 -1
- package/dist/public/assets/content-state-BDt3NnGs.js +1 -0
- package/dist/public/assets/context-BRrQlmgI.js +1 -0
- package/dist/public/assets/{cssMode-C63oO3vc.js → cssMode-BSxvHUeX.js} +1 -1
- package/dist/public/assets/{drafts-B_tChlzR.js → drafts-CCenbr5J.js} +1 -1
- package/dist/public/assets/editor-links-qwyINDCv.js +1 -0
- package/dist/public/assets/editor-sync-C5CgYn_q.js +1 -0
- package/dist/public/assets/{editor.api2-DTL_SiN1.js → editor.api2-Cyagyq8b.js} +1 -1
- package/dist/public/assets/{errors-CD96hLph.js → errors-DWF9D4n6.js} +1 -1
- package/dist/public/assets/expanding-content-BUkS1Qk4.js +1 -0
- package/dist/public/assets/{file-editor-settings-CzybzK8S.js → file-editor-settings-1cj6VRxs.js} +1 -1
- package/dist/public/assets/{file-links-BWU9Vnfc.js → file-links-BEPA2kg5.js} +1 -1
- package/dist/public/assets/forward-link-CcmVXHkx.js +1 -0
- package/dist/public/assets/{freemarker2-DKWtaCtp.js → freemarker2-RlVF_xG6.js} +1 -1
- package/dist/public/assets/{handlebars-uU1ujPOt.js → handlebars-2p1QNu5W.js} +1 -1
- package/dist/public/assets/{html-CrP_wDJ5.js → html-BOC2G_CE.js} +1 -1
- package/dist/public/assets/{htmlMode-lNJ18wA0.js → htmlMode-933MVCdH.js} +1 -1
- package/dist/public/assets/index-Botodnry.js +10 -0
- package/dist/public/assets/index-rjm6DMrz.css +2 -0
- package/dist/public/assets/{javascript-WHxEzdgn.js → javascript-C77bzTLL.js} +1 -1
- package/dist/public/assets/{jsonMode-xHnT5kRj.js → jsonMode-Cvtq6-nG.js} +1 -1
- package/dist/public/assets/{languages-MEV5hj_8.js → languages-O6mK4sJI.js} +3 -3
- package/dist/public/assets/{liquid-B1ddyofJ.js → liquid-CTjKJxys.js} +1 -1
- package/dist/public/assets/local-store-8IcyY3pd.js +64 -0
- package/dist/public/assets/{lspLanguageFeatures-CCO_e4_t.js → lspLanguageFeatures-DJLTbYTu.js} +1 -1
- package/dist/public/assets/{mdx-m1X3FtyX.js → mdx-CCh44hnn.js} +1 -1
- package/dist/public/assets/{monaco.contribution-BXkMDWX9.js → monaco.contribution-DOhsxmke.js} +2 -2
- package/dist/public/assets/notification-delivery-CWj1p0u-.js +1 -0
- package/dist/public/assets/{preferences-BX4iJsv8.js → preferences-Dy_61zsm.js} +1 -1
- package/dist/public/assets/profile-store-CarO9MCP.js +2 -0
- package/dist/public/assets/project-actions-Zt9oqLe5.js +1 -0
- package/dist/public/assets/project-drag-Bqy-V-45.js +1 -0
- package/dist/public/assets/protocol-support-BUdL5Q-x.js +1 -0
- package/dist/public/assets/{python-CRTN4ovU.js → python-mu5lS7bI.js} +1 -1
- package/dist/public/assets/queries-DnuokC1N.js +1 -0
- package/dist/public/assets/{razor-Cj7Cr6Fr.js → razor-ChcAhcMd.js} +1 -1
- package/dist/public/assets/{render-rich-content-cSjuhT75.js → render-rich-content-BULX1bwr.js} +1 -1
- package/dist/public/assets/scroll-restoration-Bl3jxJsC.js +1 -0
- package/dist/public/assets/select-DzQdQNsv.js +1 -0
- package/dist/public/assets/selection-actions-BSqrsD_7.js +1 -0
- package/dist/public/assets/session-order-CCDTBSiH.js +1 -0
- package/dist/public/assets/switch-BsUkvj8j.js +1 -0
- package/dist/public/assets/{tsMode-D0nEO9DL.js → tsMode-B7nLznL7.js} +1 -1
- package/dist/public/assets/{typescript-CQjjq4UE.js → typescript-DmvD4smm.js} +1 -1
- package/dist/public/assets/use-arrangement-ready-D18CpR8E.js +1 -0
- package/dist/public/assets/use-desktop-state-Dw9EfOjg.js +2 -0
- package/dist/public/assets/view-state-store-CY9DI6-i.js +1 -0
- package/dist/public/assets/{workers-m2qsiPbB.js → workers-CqunsJhE.js} +1 -1
- package/dist/public/assets/ws-DH0dKRnO.js +1 -0
- package/dist/public/assets/{xml-Ci2P6_gm.js → xml-CX8dI9sv.js} +1 -1
- package/dist/public/assets/{yaml-76T3bIWj.js → yaml-DbxzTbJh.js} +1 -1
- package/dist/public/index.html +5 -4
- package/dist/public/puddle-app.png +0 -0
- package/dist/public/puddle.svg +6 -5
- package/dist/pudl.js +419 -3
- package/package.json +1 -1
- package/dist/public/assets/App-ZtJSRE8n.js +0 -40
- package/dist/public/assets/CompilationCommandForm-BGIgFAkM.js +0 -1
- package/dist/public/assets/Dashboard-B_m3VKHu.js +0 -1
- package/dist/public/assets/EditorTabClose-CNB0NsZQ.js +0 -1
- package/dist/public/assets/LazyTerminal-SbouF2Y_.js +0 -2
- package/dist/public/assets/NotebookWidget-9z2Xca7D.js +0 -7
- package/dist/public/assets/PdfViewer-FWSPsqTc.js +0 -2
- package/dist/public/assets/Ripple-B2KIWnc_.js +0 -11
- package/dist/public/assets/SettingsDialog-DKnJSEij.js +0 -8
- package/dist/public/assets/Terminal-B2FWGxlE.js +0 -65
- package/dist/public/assets/Workspace-DUBYqpNS.js +0 -20
- package/dist/public/assets/api-BwP0jv_V.js +0 -1
- package/dist/public/assets/archive-BYp06n6i.js +0 -1
- package/dist/public/assets/auth-DYEjEl0U.js +0 -64
- package/dist/public/assets/context-B6lkZJoM.js +0 -1
- package/dist/public/assets/dist-cvE69gWt.js +0 -1
- package/dist/public/assets/editor-sync-W1bamxAP.js +0 -1
- package/dist/public/assets/expanding-content-UT_6Fp5v.js +0 -1
- package/dist/public/assets/forward-link-CkdngF7C.js +0 -1
- package/dist/public/assets/index-DtbUW4I4.css +0 -2
- package/dist/public/assets/index-ncmnNFLA.js +0 -10
- package/dist/public/assets/local-store-yUq3FKdV.js +0 -1
- package/dist/public/assets/media-refresh-store-Dxq65ATq.js +0 -1
- package/dist/public/assets/notification-delivery-NbIhmidu.js +0 -1
- package/dist/public/assets/profile-store-B54YLXa8.js +0 -1
- package/dist/public/assets/protocol-support-sBpa8MZK.js +0 -1
- package/dist/public/assets/scroll-restoration-D-jpZqdR.js +0 -1
- package/dist/public/assets/select-CCBPniW9.js +0 -1
- package/dist/public/assets/selection-actions-C33evFaY.js +0 -1
- package/dist/public/assets/session-order-DilOGTOO.js +0 -1
- package/dist/public/assets/switch-B3zcD6GH.js +0 -1
- package/dist/public/assets/use-ui-state-BLOunpIh.js +0 -1
- package/dist/public/assets/view-state-store-BLCtem0t.js +0 -1
- package/dist/public/assets/ws-DkbvXbTZ.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,41 +4,50 @@ Archived release changelog. Governance lives in CLAUDE.md §"Changelog disciplin
|
|
|
4
4
|
|
|
5
5
|
# Changelog
|
|
6
6
|
|
|
7
|
-
## [0.
|
|
7
|
+
## [0.5.0] — 2026-11-08
|
|
8
8
|
|
|
9
9
|
### Cockpit
|
|
10
10
|
|
|
11
11
|
#### Added
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
-
|
|
13
|
+
- Open projects in dedicated native windows, focus them through shared project navigation, and return their latest workspace after closing them even when no host window is open (application protocol 26.15; native OS acceptance remains in progress).
|
|
14
|
+
- Drag a dedicated project's sidebar label back to its host, or use its return menu, preserving drafts and closing project ownership atomically (application protocol 26.16).
|
|
15
|
+
- Open individual files and sessions in native pane windows from their existing context menus, and focus an existing detached view when reopening it (application protocol 26.9).
|
|
16
|
+
- Open an entire pane in its own native window from its tab-strip context menu, preserving dirty text through an acknowledged handoff (application protocol 26.8).
|
|
17
|
+
- Return detached panes to existing host/project windows through their context menu, preserving dirty text and view positions and retaining the source when late drafts remain (application protocol 26.11).
|
|
18
|
+
- Connect detached pane dragging to the acknowledged return handoff, validate host/profile identity and place the pane in the destination's visible project (application protocol 26.12; native OS acceptance remains in progress).
|
|
19
|
+
- Drag files, sessions and native tabs into existing pane windows through the same draft-preserving handoff, and keep filesystem/archive drag actions local to their source window (application protocol 26.13).
|
|
20
|
+
- Highlight TeX and LaTeX commands, comments, environments, mathematics and verbatim text, with automatic file detection and a per-file language choice.
|
|
21
|
+
|
|
22
|
+
#### Changed
|
|
23
|
+
|
|
24
|
+
- Review dirty files and untitled drafts when closing a native pane window, preserving cancellation and app-quit recovery and checking retained drafts again before closure (application protocol 26.22).
|
|
25
|
+
- Show only the project name in workspace window titles and the active file or session name in detached pane titles.
|
|
26
|
+
- Coordinate native notification sounds/delivery and update offers across windows, retain notifications when their original window closes, and route clicks to the correct profile or detached session (application protocol 26.21).
|
|
27
|
+
- Save, duplicate and load native window arrangements through the host Layouts popover, including project saves from the dashboard; preserve mounted editors when saving and observe uncertain loads without redispatch.
|
|
28
|
+
- Coordinate native arrangement application with scoped window matching, draft-preserving plans, atomic ownership and cancellation recovery; retain each restored window's layout mode without changing client preferences (application protocol 26.20; native OS acceptance remains in progress).
|
|
29
|
+
- Stage native layout participants through the reused workspace/dashboard, verify mounted revisions and preserve drafts on cancellation (application protocol 26.19).
|
|
30
|
+
- Coordinate native layout capture across window checkpoints and prepare atomic multi-window recovery transactions with draft retention (application protocol 26.18).
|
|
31
|
+
- Prepare named native window layouts with portable arrangement storage, scoped capture projections and a single-tree browser fallback (application protocol 26.17).
|
|
32
|
+
- Support typing through Ripple when its divider covers the live input, reusing native keyboard, paste and IME handling with anchored cells and a visible caret. Preserve the default display-only split and native composer.
|
|
33
|
+
|
|
34
|
+
- Prepare project-window handoffs with durable return records and shared destination planning; subsequent controls use the same ownership flow (application protocol 26.14).
|
|
35
|
+
- Refresh the Puddle logo across the favicon, in-app branding, web app and notification icons, and macOS/Linux desktop icons.
|
|
36
|
+
- Separate native window lifetime from host connections and retain revisioned desktop working sets and acknowledged transfer records (application protocol 26.7).
|
|
37
|
+
- Flush desktop working sets and dirty drafts before native close or Command-Q, and cancel closure when a renderer cannot confirm its checkpoint.
|
|
38
|
+
- Preserve editor selections when detaching from project-based layouts by translating their saved view-state scope.
|
|
39
|
+
- Save native window drafts before reload or host refresh, serialise navigation per host, and let Command-Q wait for pending navigation (application protocol 26.10).
|
|
16
40
|
|
|
17
41
|
#### Fixed
|
|
18
42
|
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
- Keep single-tab action trays above file details and reachable from the top-right corner, including narrow LaTeX panes.
|
|
31
|
-
|
|
32
|
-
- Keep the newest covered Ripple output visible at a high boundary by omitting older complete blocks first, preserving pinned prompts, fixed typography and original terminal click anchors. Restore omitted content when the reading area expands.
|
|
33
|
-
- Remove the Ripple divider line and place a vertical handle at the far-right edge, retaining the larger mobile touch target.
|
|
34
|
-
|
|
35
|
-
- Keep Ripple scrolling in the underlying CLI, reserve two terminal rows for breathing room and keep its reading view top-aligned with fixed typography. Restore the full grid for CLI-only viewing; preserve anchored clicks and normal scrollback, and clip excess output without a second vertical scroller or changing styles.
|
|
36
|
-
- Use primary text for non-ignored explorer names, including dotfiles, while retaining muted ignored files and Git status colours.
|
|
37
|
-
|
|
38
|
-
### Daemon
|
|
39
|
-
|
|
40
|
-
#### Fixed
|
|
41
|
-
|
|
42
|
-
- Preserve file timestamps and skip eager rebuilds for unchanged saves; hold queued builds after stale saves until their input conflicts resolve.
|
|
43
|
-
|
|
44
|
-
- Trigger eager compilation directly after successful saves, retain source watches across incomplete dependency reports, verify missed external source changes each second, and preserve LaTeX dependencies through symlinked roots.
|
|
43
|
+
- Recover a native destination's lost acceptance reply by observing the committed transfer, keeping returned projects editable after their source window closes.
|
|
44
|
+
- Allow docking again after a destination renderer crashes and reloads, clearing its stale restoration flag while preserving draft rollback.
|
|
45
|
+
- Keep Monaco hover services alive when source/preview panes detach or dock, preventing disposed diff-editor services from crashing sibling editors.
|
|
46
|
+
- Preserve shared dirty text and draft persistence when closing a duplicate file view; ask to discard only when its last view closes.
|
|
47
|
+
- Reuse draft review when closing native panes with missing projects or profiles, expose orphaned drafts without remounting editors, and preserve independent cached edits when discarding recovery copies.
|
|
48
|
+
- Wait for pending untitled-draft saves before approved deletion, prevent discard dialogues from reactivating closed tabs, and keep the last explicitly closed native window out of restart recovery.
|
|
49
|
+
- Use the file tab's discard dialogue for keyboard closure too, retaining unsaved text on cancellation and preventing closure before the lazy dirty-file check loads.
|
|
50
|
+
- Cancel pending local draft writes after an approved discard so closing the editor cannot restore the discarded text on reopen.
|
|
51
|
+
- Keep unavailable native tabs and expose retained draft text for copying or downloading when a file, session or project disappears; preserve discard confirmation and restore editing after retry.
|
|
52
|
+
- Keep project and pane window titles identifiable when unrelated host sessions change status, and restore the current host title on leaving the workspace.
|
|
53
|
+
- Preserve the active editor on native window reload when the URL retains a previous session binding.
|
package/dist/host-control.mjs
CHANGED
|
@@ -8,7 +8,7 @@ var __export = (target2, all) => {
|
|
|
8
8
|
import { connect as connect2 } from "node:net";
|
|
9
9
|
|
|
10
10
|
// ../shared/src/protocol.ts
|
|
11
|
-
var PROTOCOL_VERSION = { major: 26, minor:
|
|
11
|
+
var PROTOCOL_VERSION = { major: 26, minor: 22 };
|
|
12
12
|
function supportsApplicationFeature(peer, introduced, client = PROTOCOL_VERSION) {
|
|
13
13
|
return peer?.major === client.major && (peer.major > introduced.major || peer.major === introduced.major && peer.minor >= introduced.minor);
|
|
14
14
|
}
|
|
@@ -15765,6 +15765,58 @@ var uiStateResponseSchema = external_exports.object({
|
|
|
15765
15765
|
updated_at: isoTimestamp
|
|
15766
15766
|
});
|
|
15767
15767
|
|
|
15768
|
+
// ../shared/src/api/workspace/window-arrangement.ts
|
|
15769
|
+
var windowLayoutSliceSchema = external_exports.strictObject({
|
|
15770
|
+
layout_tree: layoutNodeSchema.nullable(),
|
|
15771
|
+
active_session: sessionId.nullable()
|
|
15772
|
+
});
|
|
15773
|
+
var savedWindowLayoutSchema = external_exports.strictObject({
|
|
15774
|
+
/** A logical slot for repeated loads, never an authorised native window id. */
|
|
15775
|
+
key: external_exports.string().min(1).max(96).regex(/^[a-z0-9][a-z0-9_-]*$/),
|
|
15776
|
+
kind: external_exports.enum(["host", "project", "pane"]),
|
|
15777
|
+
/** Detached anchor, or the host's visible project; null for a host dashboard. */
|
|
15778
|
+
project_id: projectId.nullable(),
|
|
15779
|
+
layout_mode: external_exports.enum(["profile", "project"]),
|
|
15780
|
+
layout_tree: layoutNodeSchema.nullable(),
|
|
15781
|
+
active_session: sessionId.nullable(),
|
|
15782
|
+
project_layouts: external_exports.record(projectId, windowLayoutSliceSchema)
|
|
15783
|
+
}).superRefine((window, ctx) => {
|
|
15784
|
+
if (window.kind !== "host" && (window.project_id === null || window.layout_mode !== "profile" || Object.keys(window.project_layouts).length !== 0))
|
|
15785
|
+
ctx.addIssue({ code: "custom", message: "Detached windows require one anchored workspace" });
|
|
15786
|
+
if (Object.keys(window.project_layouts).length > 512)
|
|
15787
|
+
ctx.addIssue({ code: "custom", message: "Too many project layouts" });
|
|
15788
|
+
});
|
|
15789
|
+
var windowArrangementSchema = external_exports.strictObject({
|
|
15790
|
+
version: external_exports.literal(1),
|
|
15791
|
+
windows: external_exports.array(savedWindowLayoutSchema).min(1).max(64)
|
|
15792
|
+
}).superRefine((arrangement, ctx) => {
|
|
15793
|
+
const keys = /* @__PURE__ */ new Set();
|
|
15794
|
+
const projects = /* @__PURE__ */ new Set();
|
|
15795
|
+
let hosts = 0;
|
|
15796
|
+
for (const window of arrangement.windows) {
|
|
15797
|
+
if (keys.has(window.key)) ctx.addIssue({ code: "custom", message: "Duplicate window slot" });
|
|
15798
|
+
keys.add(window.key);
|
|
15799
|
+
if (window.kind === "host") hosts++;
|
|
15800
|
+
if (window.kind === "project") {
|
|
15801
|
+
if (projects.has(window.project_id))
|
|
15802
|
+
ctx.addIssue({ code: "custom", message: "Duplicate project window" });
|
|
15803
|
+
projects.add(window.project_id);
|
|
15804
|
+
}
|
|
15805
|
+
}
|
|
15806
|
+
if (hosts > 1)
|
|
15807
|
+
ctx.addIssue({ code: "custom", message: "An arrangement has at most one host window" });
|
|
15808
|
+
});
|
|
15809
|
+
function windowArrangementScopeError(arrangement, scope, project) {
|
|
15810
|
+
if (scope === "profile") return null;
|
|
15811
|
+
if (!project) return "A project arrangement needs a project";
|
|
15812
|
+
for (const window of arrangement.windows) {
|
|
15813
|
+
if (window.project_id !== project) return "Window belongs to another project";
|
|
15814
|
+
if (window.kind === "host" && (window.layout_mode !== "project" || window.layout_tree !== null || window.active_session !== null || Object.keys(window.project_layouts).some((id3) => id3 !== project)))
|
|
15815
|
+
return "A project arrangement can only replace its own host slice";
|
|
15816
|
+
}
|
|
15817
|
+
return null;
|
|
15818
|
+
}
|
|
15819
|
+
|
|
15768
15820
|
// ../shared/src/api/workspace/layouts.ts
|
|
15769
15821
|
var layoutScopeSchema = external_exports.enum(["project", "profile"]);
|
|
15770
15822
|
var savedLayoutSchema = external_exports.object({
|
|
@@ -15776,6 +15828,8 @@ var savedLayoutSchema = external_exports.object({
|
|
|
15776
15828
|
name: external_exports.string(),
|
|
15777
15829
|
layout_tree: layoutNodeSchema.nullable(),
|
|
15778
15830
|
active_session: sessionId.nullable(),
|
|
15831
|
+
/** Optional native arrangement; the ordinary tree remains a portable browser fallback. */
|
|
15832
|
+
window_arrangement: windowArrangementSchema.optional(),
|
|
15779
15833
|
created_at: isoTimestamp,
|
|
15780
15834
|
updated_at: isoTimestamp
|
|
15781
15835
|
});
|
|
@@ -15785,12 +15839,17 @@ var createLayoutRequestSchema = external_exports.object({
|
|
|
15785
15839
|
project_id: projectId.optional(),
|
|
15786
15840
|
name: external_exports.string().min(1).max(200),
|
|
15787
15841
|
layout_tree: layoutNodeSchema.nullable(),
|
|
15788
|
-
active_session: sessionId.nullable().optional()
|
|
15842
|
+
active_session: sessionId.nullable().optional(),
|
|
15843
|
+
window_arrangement: windowArrangementSchema.optional()
|
|
15789
15844
|
});
|
|
15790
15845
|
var patchLayoutRequestSchema = external_exports.object({
|
|
15791
15846
|
name: external_exports.string().min(1).max(200).optional(),
|
|
15792
15847
|
layout_tree: layoutNodeSchema.nullable().optional(),
|
|
15793
|
-
active_session: sessionId.nullable().optional()
|
|
15848
|
+
active_session: sessionId.nullable().optional(),
|
|
15849
|
+
/** Null explicitly replaces a native arrangement with a single-tree layout. */
|
|
15850
|
+
window_arrangement: windowArrangementSchema.nullable().optional()
|
|
15851
|
+
}).refine((patch) => !patch.window_arrangement || patch.layout_tree !== void 0, {
|
|
15852
|
+
message: "Saving a window arrangement also requires its single-tree fallback"
|
|
15794
15853
|
});
|
|
15795
15854
|
|
|
15796
15855
|
// ../shared/src/api/notebooks/notebooks.ts
|
|
@@ -17743,6 +17802,363 @@ var hostUpdateActionsSchema = external_exports.object({
|
|
|
17743
17802
|
}
|
|
17744
17803
|
});
|
|
17745
17804
|
|
|
17805
|
+
// ../shared/src/desktop/windows/identity.ts
|
|
17806
|
+
var desktopWindowIdSchema = external_exports.string().min(1).max(96).regex(/^[a-z0-9][a-z0-9_-]*$/).refine((id3) => id3 !== "constructor" && id3 !== "prototype", "Invalid window identity");
|
|
17807
|
+
var desktopWindowIdentitySchema = external_exports.discriminatedUnion("kind", [
|
|
17808
|
+
external_exports.object({ id: desktopWindowIdSchema, kind: external_exports.literal("host") }),
|
|
17809
|
+
external_exports.object({
|
|
17810
|
+
id: desktopWindowIdSchema,
|
|
17811
|
+
kind: external_exports.literal("project"),
|
|
17812
|
+
profileId,
|
|
17813
|
+
projectId
|
|
17814
|
+
}),
|
|
17815
|
+
external_exports.object({
|
|
17816
|
+
id: desktopWindowIdSchema,
|
|
17817
|
+
kind: external_exports.literal("pane"),
|
|
17818
|
+
profileId,
|
|
17819
|
+
projectId
|
|
17820
|
+
})
|
|
17821
|
+
]);
|
|
17822
|
+
var desktopWindowRouteSchema = external_exports.string().max(256).regex(/^\/(?:project\/[0-9a-f]{10}(?:\/session\/[0-9a-f-]{36})?|settings(?:\/[a-z-]+)?)?$/);
|
|
17823
|
+
|
|
17824
|
+
// ../shared/src/desktop/windows/content.ts
|
|
17825
|
+
var desktopBufferSnapshotSchema = external_exports.object({
|
|
17826
|
+
session: external_exports.string().max(128),
|
|
17827
|
+
path: external_exports.string().max(32768),
|
|
17828
|
+
root: external_exports.string().max(32768).optional(),
|
|
17829
|
+
content: external_exports.string().max(8 * 1024 * 1024),
|
|
17830
|
+
baseMtimeMs: external_exports.number().finite()
|
|
17831
|
+
});
|
|
17832
|
+
var desktopWorkspaceContentSchema = external_exports.object({
|
|
17833
|
+
snapshot: uiStateSnapshotSchema,
|
|
17834
|
+
buffers: external_exports.array(desktopBufferSnapshotSchema).max(512).default([]),
|
|
17835
|
+
/** Opaque renderer view state, bounded with the complete IPC/persistence envelope. */
|
|
17836
|
+
views: external_exports.record(external_exports.string().max(1024), external_exports.unknown()).default({})
|
|
17837
|
+
});
|
|
17838
|
+
var desktopWorkspaceVersionSchema = external_exports.object({
|
|
17839
|
+
revision: external_exports.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER - 1),
|
|
17840
|
+
content: desktopWorkspaceContentSchema
|
|
17841
|
+
});
|
|
17842
|
+
var desktopWindowReadSchema = external_exports.object({ profileId });
|
|
17843
|
+
var desktopWindowWriteSchema = external_exports.object({
|
|
17844
|
+
profileId,
|
|
17845
|
+
revision: external_exports.number().int().nonnegative(),
|
|
17846
|
+
content: desktopWorkspaceContentSchema
|
|
17847
|
+
});
|
|
17848
|
+
|
|
17849
|
+
// ../shared/src/desktop/windows/transfers.ts
|
|
17850
|
+
var desktopWindowTransferSchema = external_exports.object({
|
|
17851
|
+
id: desktopWindowIdSchema,
|
|
17852
|
+
sourceId: desktopWindowIdSchema,
|
|
17853
|
+
destinationId: desktopWindowIdSchema,
|
|
17854
|
+
profileId,
|
|
17855
|
+
sourceRevision: external_exports.number().int().nonnegative(),
|
|
17856
|
+
destinationRevision: external_exports.number().int().nonnegative(),
|
|
17857
|
+
sourceContent: desktopWorkspaceContentSchema,
|
|
17858
|
+
destinationContent: desktopWorkspaceContentSchema,
|
|
17859
|
+
closeSource: external_exports.boolean(),
|
|
17860
|
+
sourceRoute: desktopWindowRouteSchema.optional(),
|
|
17861
|
+
destinationRoute: desktopWindowRouteSchema.optional()
|
|
17862
|
+
});
|
|
17863
|
+
var desktopPaneDetachSchema = external_exports.object({
|
|
17864
|
+
id: desktopWindowIdSchema,
|
|
17865
|
+
profileId,
|
|
17866
|
+
projectId,
|
|
17867
|
+
revision: external_exports.number().int().nonnegative(),
|
|
17868
|
+
source: desktopWorkspaceContentSchema,
|
|
17869
|
+
destination: desktopWorkspaceContentSchema,
|
|
17870
|
+
sourceRoute: desktopWindowRouteSchema.optional()
|
|
17871
|
+
});
|
|
17872
|
+
var desktopPanePlacementSchema = external_exports.object({
|
|
17873
|
+
paneId: external_exports.string().min(1).max(512),
|
|
17874
|
+
edge: external_exports.enum(["left", "right", "top", "bottom"])
|
|
17875
|
+
});
|
|
17876
|
+
var desktopPaneDockSchema = desktopPaneDetachSchema.extend({
|
|
17877
|
+
destinationId: desktopWindowIdSchema,
|
|
17878
|
+
destinationProjectId: projectId.optional(),
|
|
17879
|
+
placement: desktopPanePlacementSchema.optional()
|
|
17880
|
+
});
|
|
17881
|
+
var desktopTabPlacementSchema = external_exports.object({
|
|
17882
|
+
paneId: external_exports.string().min(1).max(512),
|
|
17883
|
+
edge: external_exports.enum(["center", "left", "right", "top", "bottom"]),
|
|
17884
|
+
index: external_exports.number().int().nonnegative().max(4096).optional()
|
|
17885
|
+
});
|
|
17886
|
+
var desktopTabDockSchema = desktopPaneDockSchema.extend({
|
|
17887
|
+
placement: desktopTabPlacementSchema
|
|
17888
|
+
});
|
|
17889
|
+
var desktopProjectDockSchema = desktopPaneDetachSchema.extend({
|
|
17890
|
+
destinationId: desktopWindowIdSchema
|
|
17891
|
+
});
|
|
17892
|
+
var desktopTransferReferenceSchema = external_exports.object({ id: desktopWindowIdSchema, profileId });
|
|
17893
|
+
var desktopTransferRetireSchema = desktopTransferReferenceSchema.extend({
|
|
17894
|
+
revision: external_exports.number().int().nonnegative()
|
|
17895
|
+
});
|
|
17896
|
+
var desktopPaneFocusSchema = external_exports.object({ profileId, ref: tabRefSchema });
|
|
17897
|
+
|
|
17898
|
+
// ../shared/src/desktop/windows/arrangements.ts
|
|
17899
|
+
var desktopArrangementCaptureRequestSchema = external_exports.object({
|
|
17900
|
+
profileId,
|
|
17901
|
+
scope: external_exports.enum(["profile", "project"]),
|
|
17902
|
+
projectId: projectId.optional()
|
|
17903
|
+
}).refine(
|
|
17904
|
+
(request) => request.scope === "project" ? !!request.projectId : request.projectId === void 0,
|
|
17905
|
+
{ message: "Invalid arrangement scope" }
|
|
17906
|
+
);
|
|
17907
|
+
var desktopArrangementCaptureSchema = external_exports.object({
|
|
17908
|
+
entries: external_exports.array(
|
|
17909
|
+
external_exports.object({
|
|
17910
|
+
identity: desktopWindowIdentitySchema,
|
|
17911
|
+
route: desktopWindowRouteSchema.optional(),
|
|
17912
|
+
open: external_exports.boolean(),
|
|
17913
|
+
returnedProject: external_exports.boolean(),
|
|
17914
|
+
/** Observation at capture time; applying a layout requires a new revisioned plan. */
|
|
17915
|
+
revision: external_exports.number().int().nonnegative(),
|
|
17916
|
+
snapshot: uiStateSnapshotSchema
|
|
17917
|
+
})
|
|
17918
|
+
).max(128)
|
|
17919
|
+
});
|
|
17920
|
+
var desktopArrangementApplyRequestSchema = desktopArrangementCaptureRequestSchema.safeExtend({
|
|
17921
|
+
id: desktopWindowIdSchema,
|
|
17922
|
+
arrangement: windowArrangementSchema,
|
|
17923
|
+
layoutRef: rowId.optional()
|
|
17924
|
+
}).superRefine((request, ctx) => {
|
|
17925
|
+
const error51 = windowArrangementScopeError(
|
|
17926
|
+
request.arrangement,
|
|
17927
|
+
request.scope,
|
|
17928
|
+
request.projectId ?? null
|
|
17929
|
+
);
|
|
17930
|
+
if (error51) ctx.addIssue({ code: "custom", message: error51 });
|
|
17931
|
+
});
|
|
17932
|
+
var desktopArrangementObservationSchema = external_exports.object({
|
|
17933
|
+
status: external_exports.enum(["unknown", "prepared", "committed", "cancelled"]),
|
|
17934
|
+
error: external_exports.string().max(2048).optional()
|
|
17935
|
+
});
|
|
17936
|
+
var desktopArrangementPlanCommandSchema = external_exports.object({
|
|
17937
|
+
kind: external_exports.literal("plan-layout"),
|
|
17938
|
+
ownerId: desktopWindowIdSchema,
|
|
17939
|
+
request: desktopArrangementApplyRequestSchema,
|
|
17940
|
+
entries: external_exports.array(
|
|
17941
|
+
external_exports.object({
|
|
17942
|
+
identity: desktopWindowIdentitySchema,
|
|
17943
|
+
route: desktopWindowRouteSchema.optional(),
|
|
17944
|
+
open: external_exports.boolean(),
|
|
17945
|
+
returnedProject: external_exports.boolean(),
|
|
17946
|
+
version: desktopWorkspaceVersionSchema.nullable()
|
|
17947
|
+
})
|
|
17948
|
+
).max(128),
|
|
17949
|
+
slots: external_exports.array(
|
|
17950
|
+
external_exports.object({ key: savedWindowLayoutSchema.shape.key, identity: desktopWindowIdentitySchema })
|
|
17951
|
+
).max(64)
|
|
17952
|
+
});
|
|
17953
|
+
var desktopArrangementPlanSchema = external_exports.object({
|
|
17954
|
+
changes: external_exports.array(
|
|
17955
|
+
external_exports.object({
|
|
17956
|
+
id: desktopWindowIdSchema,
|
|
17957
|
+
content: desktopWorkspaceContentSchema,
|
|
17958
|
+
route: desktopWindowRouteSchema
|
|
17959
|
+
})
|
|
17960
|
+
).min(1).max(128)
|
|
17961
|
+
});
|
|
17962
|
+
var desktopArrangementCommandSchema = external_exports.discriminatedUnion("kind", [
|
|
17963
|
+
external_exports.object({ kind: external_exports.literal("seal-layout"), arrangementId: desktopWindowIdSchema, profileId }),
|
|
17964
|
+
external_exports.object({
|
|
17965
|
+
kind: external_exports.literal("stage-layout"),
|
|
17966
|
+
arrangementId: desktopWindowIdSchema,
|
|
17967
|
+
profileId,
|
|
17968
|
+
version: desktopWorkspaceVersionSchema,
|
|
17969
|
+
route: desktopWindowRouteSchema
|
|
17970
|
+
}),
|
|
17971
|
+
external_exports.object({ kind: external_exports.literal("verify-layout"), arrangementId: desktopWindowIdSchema, profileId }),
|
|
17972
|
+
external_exports.object({
|
|
17973
|
+
kind: external_exports.literal("finish-layout"),
|
|
17974
|
+
arrangementId: desktopWindowIdSchema,
|
|
17975
|
+
profileId,
|
|
17976
|
+
outcome: external_exports.enum(["committed", "cancelled"])
|
|
17977
|
+
})
|
|
17978
|
+
]);
|
|
17979
|
+
var desktopArrangementChangeSchema = external_exports.object({
|
|
17980
|
+
record: external_exports.unknown(),
|
|
17981
|
+
revision: external_exports.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER - 2),
|
|
17982
|
+
content: desktopWorkspaceContentSchema,
|
|
17983
|
+
open: external_exports.boolean()
|
|
17984
|
+
});
|
|
17985
|
+
var desktopArrangementTransactionSchema = external_exports.object({
|
|
17986
|
+
id: desktopWindowIdSchema,
|
|
17987
|
+
ownerId: desktopWindowIdSchema,
|
|
17988
|
+
profileId,
|
|
17989
|
+
scope: external_exports.enum(["profile", "project"]),
|
|
17990
|
+
projectId: projectId.optional(),
|
|
17991
|
+
/** Exact active/returned ownership set before staging any new native windows. */
|
|
17992
|
+
activeIds: external_exports.array(desktopWindowIdSchema).max(128),
|
|
17993
|
+
changes: external_exports.array(desktopArrangementChangeSchema).min(1).max(128)
|
|
17994
|
+
});
|
|
17995
|
+
var desktopArrangementOutcomeSchema = external_exports.object({
|
|
17996
|
+
status: external_exports.enum(["committed", "cancelled"]),
|
|
17997
|
+
ownerId: desktopWindowIdSchema,
|
|
17998
|
+
profileId
|
|
17999
|
+
});
|
|
18000
|
+
|
|
18001
|
+
// ../shared/src/desktop/windows/persistence.ts
|
|
18002
|
+
var desktopWindowStateSchema = external_exports.object({
|
|
18003
|
+
version: external_exports.literal(3),
|
|
18004
|
+
entries: external_exports.record(
|
|
18005
|
+
desktopWindowIdSchema,
|
|
18006
|
+
external_exports.object({
|
|
18007
|
+
record: external_exports.unknown(),
|
|
18008
|
+
open: external_exports.boolean(),
|
|
18009
|
+
/** Explicit project closure retains its workspace for the next host visit. */
|
|
18010
|
+
returnedProject: external_exports.boolean().optional(),
|
|
18011
|
+
workspaces: external_exports.record(profileId, desktopWorkspaceVersionSchema)
|
|
18012
|
+
})
|
|
18013
|
+
),
|
|
18014
|
+
pending: external_exports.record(desktopWindowIdSchema, desktopWindowTransferSchema),
|
|
18015
|
+
arrangements: external_exports.record(desktopWindowIdSchema, desktopArrangementTransactionSchema),
|
|
18016
|
+
arrangementOutcomes: external_exports.record(desktopWindowIdSchema, desktopArrangementOutcomeSchema),
|
|
18017
|
+
outcomes: external_exports.record(
|
|
18018
|
+
desktopWindowIdSchema,
|
|
18019
|
+
external_exports.object({
|
|
18020
|
+
status: external_exports.enum(["committed", "cancelled"]),
|
|
18021
|
+
sourceId: desktopWindowIdSchema,
|
|
18022
|
+
destinationId: desktopWindowIdSchema,
|
|
18023
|
+
profileId: profileId.optional()
|
|
18024
|
+
})
|
|
18025
|
+
)
|
|
18026
|
+
});
|
|
18027
|
+
|
|
18028
|
+
// ../shared/src/desktop/windows/drag.ts
|
|
18029
|
+
var desktopPaneDragSchema = external_exports.object({
|
|
18030
|
+
token: desktopWindowIdSchema,
|
|
18031
|
+
profileId,
|
|
18032
|
+
projectId,
|
|
18033
|
+
paneId: external_exports.string().min(1).max(512)
|
|
18034
|
+
});
|
|
18035
|
+
var desktopProjectDragSchema = desktopPaneDragSchema.omit({ paneId: true });
|
|
18036
|
+
var desktopTabDragSchema = desktopPaneDragSchema.omit({ paneId: true }).extend({
|
|
18037
|
+
ref: tabRefSchema,
|
|
18038
|
+
paneId: external_exports.string().min(1).max(512).optional()
|
|
18039
|
+
});
|
|
18040
|
+
var desktopPaneDragPayloadSchema = external_exports.object({
|
|
18041
|
+
token: desktopWindowIdSchema,
|
|
18042
|
+
sourceId: desktopWindowIdSchema,
|
|
18043
|
+
hostId: desktopWindowIdSchema,
|
|
18044
|
+
profileId
|
|
18045
|
+
});
|
|
18046
|
+
var desktopTabDragPayloadSchema = desktopPaneDragPayloadSchema.extend({
|
|
18047
|
+
ref: tabRefSchema,
|
|
18048
|
+
paneId: external_exports.string().min(1).max(512).optional()
|
|
18049
|
+
});
|
|
18050
|
+
var desktopDragScopeSchema = desktopPaneDragPayloadSchema.omit({ token: true });
|
|
18051
|
+
var desktopPaneDropSchema = external_exports.object({
|
|
18052
|
+
token: desktopWindowIdSchema,
|
|
18053
|
+
sourceId: desktopWindowIdSchema,
|
|
18054
|
+
profileId,
|
|
18055
|
+
projectId,
|
|
18056
|
+
placement: desktopPanePlacementSchema
|
|
18057
|
+
});
|
|
18058
|
+
var desktopProjectDropSchema = desktopPaneDropSchema.omit({
|
|
18059
|
+
placement: true,
|
|
18060
|
+
projectId: true
|
|
18061
|
+
});
|
|
18062
|
+
var desktopTabDropSchema = desktopPaneDropSchema.extend({
|
|
18063
|
+
placement: desktopTabPlacementSchema
|
|
18064
|
+
});
|
|
18065
|
+
var desktopPaneMoveCommandSchema = external_exports.object({
|
|
18066
|
+
kind: external_exports.literal("move-pane"),
|
|
18067
|
+
profileId,
|
|
18068
|
+
projectId,
|
|
18069
|
+
paneId: external_exports.string().min(1).max(512),
|
|
18070
|
+
destinationId: desktopWindowIdSchema,
|
|
18071
|
+
destinationProjectId: projectId,
|
|
18072
|
+
placement: desktopPanePlacementSchema
|
|
18073
|
+
});
|
|
18074
|
+
var desktopTabMoveCommandSchema = desktopPaneMoveCommandSchema.extend({
|
|
18075
|
+
kind: external_exports.literal("move-tab"),
|
|
18076
|
+
ref: tabRefSchema,
|
|
18077
|
+
paneId: external_exports.string().min(1).max(512).optional(),
|
|
18078
|
+
placement: desktopTabPlacementSchema
|
|
18079
|
+
});
|
|
18080
|
+
var desktopProjectMoveCommandSchema = external_exports.object({
|
|
18081
|
+
kind: external_exports.literal("move-project"),
|
|
18082
|
+
profileId,
|
|
18083
|
+
projectId,
|
|
18084
|
+
destinationId: desktopWindowIdSchema
|
|
18085
|
+
});
|
|
18086
|
+
|
|
18087
|
+
// ../shared/src/desktop/windows/projects.ts
|
|
18088
|
+
var desktopProjectFocusSchema = external_exports.object({ profileId, projectId });
|
|
18089
|
+
var desktopProjectRouteSchema = external_exports.object({ profileId, route: desktopWindowRouteSchema });
|
|
18090
|
+
var desktopProjectCommandSchema = external_exports.discriminatedUnion("kind", [
|
|
18091
|
+
desktopProjectFocusSchema.extend({ kind: external_exports.literal("open-project") }),
|
|
18092
|
+
desktopProjectRouteSchema.extend({ kind: external_exports.literal("navigate-project") })
|
|
18093
|
+
]);
|
|
18094
|
+
|
|
18095
|
+
// ../shared/src/desktop/windows/commands.ts
|
|
18096
|
+
var desktopWindowTransferCommandSchema = external_exports.discriminatedUnion("kind", [
|
|
18097
|
+
external_exports.object({
|
|
18098
|
+
kind: external_exports.literal("plan-project"),
|
|
18099
|
+
transferId: desktopWindowIdSchema,
|
|
18100
|
+
profileId,
|
|
18101
|
+
projectId,
|
|
18102
|
+
content: desktopWorkspaceContentSchema,
|
|
18103
|
+
route: desktopWindowRouteSchema.optional()
|
|
18104
|
+
}),
|
|
18105
|
+
external_exports.object({
|
|
18106
|
+
kind: external_exports.literal("plan-tab"),
|
|
18107
|
+
transferId: desktopWindowIdSchema,
|
|
18108
|
+
profileId,
|
|
18109
|
+
projectId,
|
|
18110
|
+
content: desktopWorkspaceContentSchema,
|
|
18111
|
+
placement: desktopTabPlacementSchema
|
|
18112
|
+
}),
|
|
18113
|
+
external_exports.object({
|
|
18114
|
+
kind: external_exports.literal("plan-pane"),
|
|
18115
|
+
transferId: desktopWindowIdSchema,
|
|
18116
|
+
profileId,
|
|
18117
|
+
projectId,
|
|
18118
|
+
content: desktopWorkspaceContentSchema,
|
|
18119
|
+
placement: desktopPanePlacementSchema.optional()
|
|
18120
|
+
}),
|
|
18121
|
+
external_exports.object({ kind: external_exports.literal("stage-window"), transferId: desktopWindowIdSchema, profileId }),
|
|
18122
|
+
external_exports.object({ kind: external_exports.literal("cancel-window"), transferId: desktopWindowIdSchema, profileId })
|
|
18123
|
+
]);
|
|
18124
|
+
var desktopWindowCommandSchema = external_exports.union([
|
|
18125
|
+
desktopArrangementPlanCommandSchema.and(external_exports.object({ id: desktopWindowIdSchema })),
|
|
18126
|
+
desktopArrangementCommandSchema.and(external_exports.object({ id: desktopWindowIdSchema })),
|
|
18127
|
+
desktopProjectCommandSchema.and(external_exports.object({ id: desktopWindowIdSchema })),
|
|
18128
|
+
desktopWindowTransferCommandSchema.and(external_exports.object({ id: desktopWindowIdSchema })),
|
|
18129
|
+
desktopPaneMoveCommandSchema.and(external_exports.object({ id: desktopWindowIdSchema })),
|
|
18130
|
+
desktopTabMoveCommandSchema.and(external_exports.object({ id: desktopWindowIdSchema })),
|
|
18131
|
+
desktopProjectMoveCommandSchema.and(external_exports.object({ id: desktopWindowIdSchema })),
|
|
18132
|
+
external_exports.discriminatedUnion("kind", [
|
|
18133
|
+
external_exports.object({ id: desktopWindowIdSchema, kind: external_exports.literal("checkpoint") }),
|
|
18134
|
+
external_exports.object({ id: desktopWindowIdSchema, kind: external_exports.literal("resume") }),
|
|
18135
|
+
external_exports.object({ id: desktopWindowIdSchema, kind: external_exports.literal("review-close") }),
|
|
18136
|
+
external_exports.object({
|
|
18137
|
+
id: desktopWindowIdSchema,
|
|
18138
|
+
kind: external_exports.literal("activate-tab"),
|
|
18139
|
+
profileId,
|
|
18140
|
+
ref: tabRefSchema
|
|
18141
|
+
})
|
|
18142
|
+
])
|
|
18143
|
+
]);
|
|
18144
|
+
var desktopWindowCommandReplySchema = external_exports.object({
|
|
18145
|
+
id: desktopWindowIdSchema,
|
|
18146
|
+
error: external_exports.string().max(2048).optional(),
|
|
18147
|
+
version: desktopWorkspaceVersionSchema.optional(),
|
|
18148
|
+
arrangement: desktopArrangementPlanSchema.optional()
|
|
18149
|
+
});
|
|
18150
|
+
|
|
18151
|
+
// ../shared/src/desktop/windows/effects.ts
|
|
18152
|
+
var desktopWindowEffectsStatusSchema = external_exports.object({
|
|
18153
|
+
hostOffers: external_exports.boolean(),
|
|
18154
|
+
desktopOffers: external_exports.boolean()
|
|
18155
|
+
});
|
|
18156
|
+
var desktopNotificationClaimSchema = external_exports.object({
|
|
18157
|
+
id: external_exports.string().min(1).max(256),
|
|
18158
|
+
/** Old status-only hosts lack unique event ids; their duplicate window deliveries expire. */
|
|
18159
|
+
legacy: external_exports.boolean().optional()
|
|
18160
|
+
}).strict();
|
|
18161
|
+
|
|
17746
18162
|
// ../shared/src/installation/checkpoint.ts
|
|
17747
18163
|
var HOST_UPDATE_CHECKPOINT_OWNERS = 4096;
|
|
17748
18164
|
var HOST_UPDATE_CHECKPOINT_BYTES = 8 * 1024 * 1024;
|