@lemonriver/core 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{build-CSkdswfd.js → build-Cv0nNc4G.js} +1 -1
- package/dist/cli/bin.js +5 -5
- package/dist/{config-C5-myPY6.js → config-Di9kipre.js} +2773 -714
- package/dist/{config-CYNOR93W.d.ts → config-f1SqAhtR.d.ts} +1 -1
- package/dist/{dev-DHtYH8sw.js → dev-Az1UzCQp.js} +11 -11
- package/dist/index.d.ts +2 -2
- package/dist/index.js +21 -2
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/{mcp-B2UeO1un.js → mcp-CW7H6oUg.js} +1 -1
- package/dist/{preview-C1B6-umF.js → preview-DtSq5uN1.js} +1 -1
- package/dist/{types-tdaXSyah.d.ts → types-C4VfD89E.d.ts} +12 -0
- package/dist/{update-DzL8fpcI.js → update-DVe2kQA7.js} +86 -13
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/{zh-tw-BhYyMx0-.js → zh-tw-BX3oQAc2.js} +110 -0
- package/package.json +5 -6
- package/release-notes.json +20 -0
- package/src/agent/types.ts +9 -2
- package/src/app/app.tsx +2 -0
- package/src/app/components/agent/agent-panel.tsx +12 -3
- package/src/app/components/agent/agent-presence.tsx +1 -1
- package/src/app/components/command/home-command-menu.tsx +4 -1
- package/src/app/components/command/slide-command-menu.tsx +4 -1
- package/src/app/components/export-progress-toast.tsx +3 -1
- package/src/app/components/inspector/asset-picker-dialog.tsx +1 -1
- package/src/app/components/inspector/comment-layer.tsx +3 -3
- package/src/app/components/inspector/inline-text-editor.tsx +1 -12
- package/src/app/components/inspector/inspect-overlay.tsx +9 -1
- package/src/app/components/inspector/inspector-panel.tsx +7 -23
- package/src/app/components/inspector/inspector-provider.tsx +177 -36
- package/src/app/components/inspector/page-panel.tsx +270 -0
- package/src/app/components/language-toggle.tsx +13 -11
- package/src/app/components/overview-grid.tsx +3 -3
- package/src/app/components/panel/editor-sidebar.tsx +43 -8
- package/src/app/components/panel/panel-shell.tsx +9 -5
- package/src/app/components/panel/save-card.tsx +1 -1
- package/src/app/components/sidebar/folder-item.tsx +4 -1
- package/src/app/components/sidebar/sidebar.tsx +11 -8
- package/src/app/components/slide-canvas.tsx +1 -1
- package/src/app/components/style-panel/design-provider.tsx +48 -11
- package/src/app/components/style-panel/use-design.ts +6 -1
- package/src/app/components/theme-toggle.tsx +16 -22
- package/src/app/components/thumbnail-rail.tsx +69 -50
- package/src/app/components/ui/context-menu.tsx +9 -10
- package/src/app/components/ui/dialog.tsx +2 -4
- package/src/app/components/ui/dropdown-menu.tsx +9 -10
- package/src/app/components/ui/popover.tsx +1 -1
- package/src/app/components/ui/select.tsx +2 -2
- package/src/app/components/ui/sonner.tsx +2 -2
- package/src/app/index.html +7 -0
- package/src/app/lemonriver/agent-cli/model.ts +22 -0
- package/src/app/lemonriver/agent-install/model.ts +46 -0
- package/src/app/lemonriver/agent-install/section.tsx +178 -0
- package/src/app/lemonriver/agent-install/use-install.ts +51 -0
- package/src/app/lemonriver/agent-providers/section.tsx +385 -44
- package/src/app/lemonriver/agent-providers/use-providers.ts +50 -3
- package/src/app/lemonriver/backup/places.ts +22 -12
- package/src/app/lemonriver/chrome/sidebar-extras.tsx +1 -1
- package/src/app/lemonriver/feedback/dialog.tsx +1 -2
- package/src/app/lemonriver/feedback/model.ts +0 -5
- package/src/app/lemonriver/guide/clipboard.ts +19 -0
- package/src/app/lemonriver/guide/create-board.tsx +150 -0
- package/src/app/lemonriver/guide/install-board.tsx +208 -0
- package/src/app/lemonriver/guide/more-agents-page.tsx +89 -0
- package/src/app/lemonriver/guide/more-agents.ts +137 -0
- package/src/app/lemonriver/guide/quick-board.tsx +57 -0
- package/src/app/lemonriver/guide/start-board.tsx +38 -0
- package/src/app/lemonriver/guide/start-card.tsx +105 -0
- package/src/app/lemonriver/guide/start.ts +174 -0
- package/src/app/lemonriver/guide/state.ts +5 -21
- package/src/app/lemonriver/help/help-page.tsx +24 -6
- package/src/app/lemonriver/help/model.ts +1 -0
- package/src/app/lemonriver/home/home-page.tsx +12 -6
- package/src/app/lemonriver/home/sorting.ts +45 -0
- package/src/app/lemonriver/home/use-deck-times.ts +1 -2
- package/src/app/lemonriver/i18n/system-locale.ts +39 -0
- package/src/app/lemonriver/routes.tsx +2 -0
- package/src/app/lemonriver/settings/backup-section.tsx +3 -2
- package/src/app/lemonriver/settings/settings-page.tsx +5 -6
- package/src/app/lemonriver/settings/workspace-card.tsx +2 -1
- package/src/app/lemonriver/share/share-dialog.tsx +2 -1
- package/src/app/lemonriver/text/en.ts +592 -453
- package/src/app/lemonriver/text/es.ts +402 -271
- package/src/app/lemonriver/text/ja.ts +403 -274
- package/src/app/lemonriver/text/platform.ts +7 -0
- package/src/app/lemonriver/text/types.ts +118 -1
- package/src/app/lemonriver/text/zh-cn.ts +643 -508
- package/src/app/lemonriver/text/zh-tw.ts +679 -545
- package/src/app/lemonriver/theme/app.css +9 -0
- package/src/app/lemonriver/theme/controls.css +5 -2
- package/src/app/lemonriver/theme/index.css +9 -0
- package/src/app/lemonriver/theme/pages.ts +2 -0
- package/src/app/lemonriver/theme/theme-menu.tsx +10 -11
- package/src/app/lemonriver/update/restart-wait.ts +45 -0
- package/src/app/lemonriver/update/update-prompt.tsx +9 -0
- package/src/app/lib/agent/use-agent.ts +117 -30
- package/src/app/lib/desktop-host.ts +31 -0
- package/src/app/lib/desktop-routes.ts +22 -0
- package/src/app/lib/desktop.ts +106 -0
- package/src/app/lib/export-pdf.ts +15 -7
- package/src/app/lib/inspector/color.ts +51 -0
- package/src/app/lib/inspector/fiber.ts +6 -0
- package/src/app/lib/inspector/use-editor.ts +2 -1
- package/src/app/lib/inspector/use-notes.ts +331 -57
- package/src/app/lib/inspector/use-visual-editor.ts +9 -1
- package/src/app/lib/locale-store.ts +6 -1
- package/src/app/lib/transition.ts +43 -0
- package/src/app/lib/unsaved.ts +155 -0
- package/src/app/routes/home.tsx +1 -1
- package/src/app/routes/slide.tsx +116 -73
- package/src/app/styles.css +39 -1
- package/src/locale/en.ts +19 -0
- package/src/locale/es.ts +19 -0
- package/src/locale/ja.ts +19 -0
- package/src/locale/types.ts +12 -0
- package/src/locale/zh-cn.ts +19 -0
- package/src/locale/zh-tw.ts +19 -0
- package/src/app/lemonriver/guide/guide-prompt.tsx +0 -89
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as listeningMessage, K as listeningPort, Q as PKG_NAMES, V as DEV_SUPERVISED_ENV, W as isSupervised } from "./update-DVe2kQA7.js";
|
|
2
2
|
import { a as printUrls, c as startupDuration, i as printShortcutsHint, n as formatError, r as printHeader, s as shortcutsEnabled, t as createCliLogger } from "./cli/bin.js";
|
|
3
|
-
import {
|
|
3
|
+
import { t as createViteConfig } from "./config-Di9kipre.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
6
6
|
import { fork } from "node:child_process";
|
|
7
7
|
import { createServer, mergeConfig } from "vite";
|
|
8
8
|
//#region src/cli/dev.ts
|
|
9
9
|
async function dev(opts = {}) {
|
|
10
|
-
if (
|
|
10
|
+
if (isSupervised()) {
|
|
11
11
|
await startServer(opts);
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
14
|
supervise(opts);
|
|
15
15
|
}
|
|
16
16
|
async function startServer(opts) {
|
|
17
|
+
let server;
|
|
18
|
+
process.once("disconnect", () => {
|
|
19
|
+
Promise.resolve(server?.close()).finally(() => process.exit(0));
|
|
20
|
+
});
|
|
17
21
|
const base = await createViteConfig({ userCwd: process.cwd() });
|
|
18
22
|
const config = mergeConfig(base, {
|
|
19
23
|
customLogger: createCliLogger(),
|
|
@@ -23,7 +27,7 @@ async function startServer(opts) {
|
|
|
23
27
|
...opts.open !== void 0 ? { open: opts.open } : {}
|
|
24
28
|
}
|
|
25
29
|
});
|
|
26
|
-
|
|
30
|
+
server = await createServer(config);
|
|
27
31
|
await server.listen();
|
|
28
32
|
printHeader(startupDuration());
|
|
29
33
|
printUrls(server.resolvedUrls, opts.host);
|
|
@@ -32,10 +36,7 @@ async function startServer(opts) {
|
|
|
32
36
|
server.bindCLIShortcuts({ customShortcuts: devShortcuts(opts) });
|
|
33
37
|
}
|
|
34
38
|
const address = server.httpServer?.address();
|
|
35
|
-
if (process.send && address && typeof address === "object") process.send(
|
|
36
|
-
type: "open-slide:listening",
|
|
37
|
-
port: address.port
|
|
38
|
-
});
|
|
39
|
+
if (process.send && address && typeof address === "object") process.send(listeningMessage(address.port));
|
|
39
40
|
}
|
|
40
41
|
function devShortcuts(opts) {
|
|
41
42
|
const showUrls = (server) => {
|
|
@@ -70,6 +71,7 @@ function supervise(opts) {
|
|
|
70
71
|
}), {
|
|
71
72
|
cwd: userCwd,
|
|
72
73
|
stdio: "inherit",
|
|
74
|
+
windowsHide: true,
|
|
73
75
|
env: {
|
|
74
76
|
...process.env,
|
|
75
77
|
[DEV_SUPERVISED_ENV]: "1"
|
|
@@ -80,9 +82,7 @@ function supervise(opts) {
|
|
|
80
82
|
process.exit(1);
|
|
81
83
|
});
|
|
82
84
|
child.on("message", (message) => {
|
|
83
|
-
|
|
84
|
-
const { type, port: reportedPort } = message;
|
|
85
|
-
if (type === "open-slide:listening" && typeof reportedPort === "number") port = reportedPort;
|
|
85
|
+
port = listeningPort(message) ?? port;
|
|
86
86
|
});
|
|
87
87
|
child.on("exit", (code, signal) => {
|
|
88
88
|
if (shuttingDown) process.exit(0);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as Plural, t as Locale } from "./types-
|
|
2
|
-
import { i as OpenSlideConfig, n as LemonRiverBuildConfig, r as LemonRiverConfig, t as LemonRiverAgentConfig } from "./config-
|
|
1
|
+
import { n as Plural, t as Locale } from "./types-C4VfD89E.js";
|
|
2
|
+
import { i as OpenSlideConfig, n as LemonRiverBuildConfig, r as LemonRiverConfig, t as LemonRiverAgentConfig } from "./config-f1SqAhtR.js";
|
|
3
3
|
import { CSSProperties, ComponentType, HTMLAttributes, PropsWithChildren, ReactNode } from "react";
|
|
4
4
|
//#region src/app/components/image-placeholder.d.ts
|
|
5
5
|
type ImagePlaceholderProps = {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as en, i as es, n as zhCN, r as ja, t as zhTW } from "./zh-tw-
|
|
1
|
+
import { a as en, i as es, n as zhCN, r as ja, t as zhTW } from "./zh-tw-BX3oQAc2.js";
|
|
2
2
|
import { n as defaultDesign, r as designToCssVars, t as cssVarsToString } from "./design-Cpqx7SJs.js";
|
|
3
3
|
import { Children, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
4
4
|
import { toast } from "sonner";
|
|
@@ -80,6 +80,25 @@ function renamedCopy(file, taken) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
|
+
//#region src/app/lemonriver/i18n/system-locale.ts
|
|
84
|
+
function matchTag(tag) {
|
|
85
|
+
const t = tag.trim().toLowerCase().replace(/_/g, "-");
|
|
86
|
+
if (t === "zh" || t.startsWith("zh-hans") || t === "zh-cn" || t.startsWith("zh-cn-") || t === "zh-sg" || t.startsWith("zh-sg-")) return "zh-CN";
|
|
87
|
+
if (t.startsWith("zh-hant") || t === "zh-tw" || t.startsWith("zh-tw-") || t === "zh-hk" || t.startsWith("zh-hk-") || t === "zh-mo" || t.startsWith("zh-mo-")) return "zh-TW";
|
|
88
|
+
const base = t.split("-")[0];
|
|
89
|
+
if (base === "ja") return "ja";
|
|
90
|
+
if (base === "es") return "es";
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
/** The UI language for a browser language list, English when none matches. */
|
|
94
|
+
function systemLocaleId(languages) {
|
|
95
|
+
for (const tag of languages ?? []) {
|
|
96
|
+
const id = matchTag(tag);
|
|
97
|
+
if (id) return id;
|
|
98
|
+
}
|
|
99
|
+
return "en";
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
83
102
|
//#region src/app/lib/locale-store.ts
|
|
84
103
|
const LOCALES = {
|
|
85
104
|
en,
|
|
@@ -98,7 +117,7 @@ function readStored() {
|
|
|
98
117
|
const stored = localStorage.getItem(STORAGE_KEY);
|
|
99
118
|
if (isLocaleId(stored)) return LOCALES[stored];
|
|
100
119
|
} catch {}
|
|
101
|
-
return configLocale ??
|
|
120
|
+
return configLocale ?? LOCALES[systemLocaleId(globalThis.navigator?.languages)];
|
|
102
121
|
}
|
|
103
122
|
let current = readStored();
|
|
104
123
|
const listeners = /* @__PURE__ */ new Set();
|
package/dist/locale/index.d.ts
CHANGED
package/dist/locale/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as en, i as es, n as zhCN, r as ja, t as zhTW } from "../zh-tw-
|
|
1
|
+
import { a as en, i as es, n as zhCN, r as ja, t as zhTW } from "../zh-tw-BX3oQAc2.js";
|
|
2
2
|
//#region src/locale/format.ts
|
|
3
3
|
function format(template, vars) {
|
|
4
4
|
return template.replace(/\{(\w+)\}/g, (m, key) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as SLIDE_ID_RE } from "./update-
|
|
1
|
+
import { b as SLIDE_ID_RE } from "./update-DVe2kQA7.js";
|
|
2
2
|
import { o as readVersion } from "./cli/bin.js";
|
|
3
3
|
import { t as callDevServer } from "./client-DpO_eR9X.js";
|
|
4
4
|
import { createInterface } from "node:readline";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as printUrls, c as startupDuration, i as printShortcutsHint, r as printHeader, s as shortcutsEnabled, t as createCliLogger } from "./cli/bin.js";
|
|
2
|
-
import { t as createViteConfig } from "./config-
|
|
2
|
+
import { t as createViteConfig } from "./config-Di9kipre.js";
|
|
3
3
|
import { mergeConfig, preview as preview$1 } from "vite";
|
|
4
4
|
//#region src/cli/preview.ts
|
|
5
5
|
async function preview(opts = {}) {
|
|
@@ -217,6 +217,17 @@ type Locale = {
|
|
|
217
217
|
rotateHandle: string;
|
|
218
218
|
resizeHandle: string;
|
|
219
219
|
arrangeSection: string;
|
|
220
|
+
pageLabel: string;
|
|
221
|
+
pageBackground: string;
|
|
222
|
+
pageBackgroundTheme: string;
|
|
223
|
+
pageBackgroundShared: string;
|
|
224
|
+
pageBackgroundComplex: string;
|
|
225
|
+
pageTransition: string;
|
|
226
|
+
pageTransitionInherited: string;
|
|
227
|
+
pageSteps: string;
|
|
228
|
+
pageStepsCount: Plural;
|
|
229
|
+
pageNone: string;
|
|
230
|
+
transitionKinds: Record<'fade' | 'slide' | 'zoom' | 'wipe' | 'morph' | 'custom', string>;
|
|
220
231
|
selectionCount: string;
|
|
221
232
|
positionLabel: string;
|
|
222
233
|
positionX: string;
|
|
@@ -482,6 +493,7 @@ type Locale = {
|
|
|
482
493
|
/** template: "Processing page {current} of {total}" */
|
|
483
494
|
processing: string;
|
|
484
495
|
printing: string;
|
|
496
|
+
saving: string;
|
|
485
497
|
done: string;
|
|
486
498
|
};
|
|
487
499
|
pptxToast: {
|
|
@@ -2,14 +2,13 @@ import path from "node:path";
|
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
import fs$1 from "node:fs/promises";
|
|
5
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
5
6
|
import { parse } from "@babel/parser";
|
|
6
|
-
import { randomUUID } from "node:crypto";
|
|
7
7
|
//#region src/branding.ts
|
|
8
8
|
const PKG_NAME = "@lemonriver/core";
|
|
9
9
|
const PKG_NAMES = [PKG_NAME, "@open-slide/core"];
|
|
10
10
|
const CONFIG_FILES = ["lemonriver.config.ts", "open-slide.config.ts"];
|
|
11
11
|
const BIN_NAME = "lemonriver";
|
|
12
|
-
const LEGACY_BIN_NAME = "open-slide";
|
|
13
12
|
function isFrameworkSpecifier(source) {
|
|
14
13
|
return PKG_NAMES.includes(source);
|
|
15
14
|
}
|
|
@@ -81,6 +80,55 @@ function isLoopbackRequest(req) {
|
|
|
81
80
|
return address === "::1" || address.startsWith("127.") || address.startsWith("::ffff:127.");
|
|
82
81
|
}
|
|
83
82
|
//#endregion
|
|
83
|
+
//#region src/lemonriver/windows-update.ts
|
|
84
|
+
const WIN_LAUNCHER_ENV = "LEMONRIVER_WIN_LAUNCHER";
|
|
85
|
+
function launcherUpdateSpec(env = process.env, platform = process.platform) {
|
|
86
|
+
if (platform !== "win32") return null;
|
|
87
|
+
const launcher = env[WIN_LAUNCHER_ENV];
|
|
88
|
+
if (typeof launcher !== "string" || launcher.length === 0) return null;
|
|
89
|
+
return {
|
|
90
|
+
cmd: process.execPath,
|
|
91
|
+
args: [launcher, "update"]
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function startLauncherUpdate({ env = process.env, platform = process.platform, spawnImpl = spawn } = {}) {
|
|
95
|
+
const spec = launcherUpdateSpec(env, platform);
|
|
96
|
+
if (!spec) return null;
|
|
97
|
+
spawnImpl(spec.cmd, spec.args, {
|
|
98
|
+
detached: true,
|
|
99
|
+
stdio: "ignore",
|
|
100
|
+
windowsHide: true
|
|
101
|
+
}).unref();
|
|
102
|
+
return {
|
|
103
|
+
packageManager: "npm",
|
|
104
|
+
command: "launcher update",
|
|
105
|
+
latest: null,
|
|
106
|
+
message: "LemonRiver stops, updates and starts again.",
|
|
107
|
+
restarting: true
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/supervision.ts
|
|
112
|
+
const DEV_SUPERVISED_ENV = "OPEN_SLIDE_DEV_SUPERVISED";
|
|
113
|
+
const MANAGED_CORE_ENV = "OPEN_SLIDE_MANAGED_CORE";
|
|
114
|
+
const CACHE_DIR_ENV = "OPEN_SLIDE_CACHE_DIR";
|
|
115
|
+
const AGENT_MODULES_ENV = "OPEN_SLIDE_AGENT_MODULES";
|
|
116
|
+
const SHUTDOWN_GRACE_MS = 3e3;
|
|
117
|
+
const isSupervised = () => process.env[DEV_SUPERVISED_ENV] === "1";
|
|
118
|
+
const isManagedCore = () => process.env[MANAGED_CORE_ENV] === "1";
|
|
119
|
+
const LISTENING_TYPE = "open-slide:listening";
|
|
120
|
+
function listeningMessage(port) {
|
|
121
|
+
return {
|
|
122
|
+
type: LISTENING_TYPE,
|
|
123
|
+
port
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
function listeningPort(message) {
|
|
127
|
+
if (typeof message !== "object" || message === null) return null;
|
|
128
|
+
const { type, port } = message;
|
|
129
|
+
return type === LISTENING_TYPE && typeof port === "number" ? port : null;
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
84
132
|
//#region src/workspace-specifier.ts
|
|
85
133
|
function readDeps(userCwd) {
|
|
86
134
|
try {
|
|
@@ -527,6 +575,11 @@ function findDefaultExportArray(source) {
|
|
|
527
575
|
}
|
|
528
576
|
return null;
|
|
529
577
|
}
|
|
578
|
+
function pageLayoutOfSource(source) {
|
|
579
|
+
const found = findDefaultExportArray(source);
|
|
580
|
+
const pages = found ? found.elements.map((el) => source.slice(el.start, el.end)) : null;
|
|
581
|
+
return createHash("sha1").update(JSON.stringify(pages)).digest("hex").slice(0, 16);
|
|
582
|
+
}
|
|
530
583
|
/**
|
|
531
584
|
* Rewrite `export default [...]` so its elements appear in the requested order.
|
|
532
585
|
*
|
|
@@ -1000,19 +1053,31 @@ function updateCommandFor(packageManager, addTarget) {
|
|
|
1000
1053
|
}
|
|
1001
1054
|
}
|
|
1002
1055
|
async function localSyncCommand(cwd) {
|
|
1003
|
-
const
|
|
1004
|
-
|
|
1005
|
-
const bin = path.join(cwd, "node_modules", ".bin", `${name}${ext}`);
|
|
1056
|
+
for (const pkg of PKG_NAMES) {
|
|
1057
|
+
const bin = path.join(cwd, "node_modules", ...pkg.split("/"), "bin.js");
|
|
1006
1058
|
if (await fileExists(bin)) return {
|
|
1007
|
-
cmd:
|
|
1008
|
-
args: ["sync:skills"]
|
|
1059
|
+
cmd: process.execPath,
|
|
1060
|
+
args: [bin, "sync:skills"]
|
|
1009
1061
|
};
|
|
1010
1062
|
}
|
|
1063
|
+
const bin = path.join(cwd, "node_modules", ...(PKG_NAMES[0] ?? "").split("/"), "bin.js");
|
|
1011
1064
|
return {
|
|
1012
|
-
cmd:
|
|
1013
|
-
args: ["sync:skills"]
|
|
1065
|
+
cmd: process.execPath,
|
|
1066
|
+
args: [bin, "sync:skills"]
|
|
1014
1067
|
};
|
|
1015
1068
|
}
|
|
1069
|
+
function killCommandFor(platform, pid) {
|
|
1070
|
+
if (platform === "win32" && pid !== void 0) return {
|
|
1071
|
+
cmd: "taskkill",
|
|
1072
|
+
args: [
|
|
1073
|
+
"/pid",
|
|
1074
|
+
String(pid),
|
|
1075
|
+
"/T",
|
|
1076
|
+
"/F"
|
|
1077
|
+
]
|
|
1078
|
+
};
|
|
1079
|
+
return null;
|
|
1080
|
+
}
|
|
1016
1081
|
function formatCommand(spec) {
|
|
1017
1082
|
return [spec.cmd, ...spec.args].join(" ");
|
|
1018
1083
|
}
|
|
@@ -1021,7 +1086,7 @@ async function runCommand(spec, cwd, timeoutMs = COMMAND_TIMEOUT_MS) {
|
|
|
1021
1086
|
const child = spawn(spec.cmd, spec.args, {
|
|
1022
1087
|
cwd,
|
|
1023
1088
|
env: process.env,
|
|
1024
|
-
shell: process.platform === "win32",
|
|
1089
|
+
shell: process.platform === "win32" && spec.cmd !== process.execPath,
|
|
1025
1090
|
stdio: [
|
|
1026
1091
|
"ignore",
|
|
1027
1092
|
"ignore",
|
|
@@ -1031,7 +1096,12 @@ async function runCommand(spec, cwd, timeoutMs = COMMAND_TIMEOUT_MS) {
|
|
|
1031
1096
|
});
|
|
1032
1097
|
let stderr = "";
|
|
1033
1098
|
const timer = setTimeout(() => {
|
|
1034
|
-
child.
|
|
1099
|
+
const kill = killCommandFor(process.platform, child.pid);
|
|
1100
|
+
if (kill) spawn(kill.cmd, kill.args, {
|
|
1101
|
+
stdio: "ignore",
|
|
1102
|
+
windowsHide: true
|
|
1103
|
+
});
|
|
1104
|
+
else child.kill();
|
|
1035
1105
|
reject(/* @__PURE__ */ new Error(`${formatCommand(spec)} timed out`));
|
|
1036
1106
|
}, timeoutMs);
|
|
1037
1107
|
child.stderr.on("data", (chunk) => {
|
|
@@ -1054,6 +1124,8 @@ async function runCommand(spec, cwd, timeoutMs = COMMAND_TIMEOUT_MS) {
|
|
|
1054
1124
|
});
|
|
1055
1125
|
}
|
|
1056
1126
|
async function updatePackage(ctx) {
|
|
1127
|
+
const launcherUpdate = startLauncherUpdate();
|
|
1128
|
+
if (launcherUpdate) return launcherUpdate;
|
|
1057
1129
|
const packageManager = await detectPackageManager(ctx.userCwd);
|
|
1058
1130
|
const dependency = readFrameworkDependency(ctx.userCwd);
|
|
1059
1131
|
const updateCommand = updateCommandFor(packageManager, dependency.addTarget);
|
|
@@ -1073,7 +1145,7 @@ function registerUpdateRoutes(server, ctx) {
|
|
|
1073
1145
|
server.middlewares.use("/__update-check", async (req, res, next) => {
|
|
1074
1146
|
if ((req.method ?? "GET") !== "GET") return next();
|
|
1075
1147
|
const dependency = readFrameworkDependency(ctx.userCwd);
|
|
1076
|
-
const latest = dependency.workspace ? null : await fetchLatest(dependency.pkg, Date.now());
|
|
1148
|
+
const latest = dependency.workspace || isManagedCore() ? null : await fetchLatest(dependency.pkg, Date.now());
|
|
1077
1149
|
const result = {
|
|
1078
1150
|
current: ctx.coreVersion,
|
|
1079
1151
|
latest,
|
|
@@ -1086,6 +1158,7 @@ function registerUpdateRoutes(server, ctx) {
|
|
|
1086
1158
|
if ((req.method ?? "GET") !== "POST") return next();
|
|
1087
1159
|
const guard = validateMutationRequest(req);
|
|
1088
1160
|
if (!guard.ok) return json(res, guard.status, { error: guard.error });
|
|
1161
|
+
if (isManagedCore()) return json(res, 409, { error: "LemonRiver is updated by the app that runs it." });
|
|
1089
1162
|
try {
|
|
1090
1163
|
updateInFlight ??= updatePackage(ctx).finally(() => {
|
|
1091
1164
|
updateInFlight = null;
|
|
@@ -1097,4 +1170,4 @@ function registerUpdateRoutes(server, ctx) {
|
|
|
1097
1170
|
});
|
|
1098
1171
|
}
|
|
1099
1172
|
//#endregion
|
|
1100
|
-
export {
|
|
1173
|
+
export { isFrameworkSpecifier as $, reorderDefaultExportPagesInSource as A, CACHE_DIR_ENV as B, duplicatePageInDefaultExportInSource as C, removeNotesElementInSource as D, readMetaTitleInSource as E, updateMetaTitleInSource as F, listeningMessage as G, SHUTDOWN_GRACE_MS as H, validateSlideName as I, isLoopbackRequest as J, listeningPort as K, declaredFrameworkSpecifier as L, resolveSlideEntry as M, rmSlideDir as N, removePageFromDefaultExportInSource as O, slugifyTitle as P, PKG_NAMES as Q, readFrameworkDependency as R, duplicateNotesElementInSource as S, pageLayoutOfSource as T, isManagedCore as U, DEV_SUPERVISED_ENV as V, isSupervised as W, BIN_NAME as X, validateMutationRequest as Y, CONFIG_FILES as Z, writeManifest as _, json as a, SLIDE_ID_RE as b, readSlideSource as c, foldersManifestPath as d, newFolderId as f, validateReorder as g, validateName as h, BodyTooLargeError as i, reorderNotesArrayInSource as j, renameSlideDir as k, resolveSlideEntryPath as l, validateIcon as m, killCommandFor as n, makeContext as o, readManifest as p, WIN_LAUNCHER_ENV as q, registerUpdateRoutes as r, readBody as s, detectPackageManager as t, FOLDER_ID_RE as u, shortId as v, duplicateSlideDir as w, createBlankSlideDir as x, BLANK_SLIDE_TITLE as y, AGENT_MODULES_ENV as z };
|
package/dist/vite/index.d.ts
CHANGED
package/dist/vite/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createViteConfig } from "../config-
|
|
1
|
+
import { t as createViteConfig } from "../config-Di9kipre.js";
|
|
2
2
|
export { createViteConfig };
|
|
@@ -203,6 +203,27 @@ const en = {
|
|
|
203
203
|
rotateHandle: "Rotate element",
|
|
204
204
|
resizeHandle: "Resize {handle}",
|
|
205
205
|
arrangeSection: "Arrange",
|
|
206
|
+
pageLabel: "Page {page} of {total}",
|
|
207
|
+
pageBackground: "Background",
|
|
208
|
+
pageBackgroundTheme: "From theme",
|
|
209
|
+
pageBackgroundShared: "Shared across pages",
|
|
210
|
+
pageBackgroundComplex: "Gradient or image",
|
|
211
|
+
pageTransition: "Transition",
|
|
212
|
+
pageTransitionInherited: "Deck default",
|
|
213
|
+
pageSteps: "Steps",
|
|
214
|
+
pageStepsCount: {
|
|
215
|
+
one: "1 step",
|
|
216
|
+
other: "{count} steps"
|
|
217
|
+
},
|
|
218
|
+
pageNone: "None",
|
|
219
|
+
transitionKinds: {
|
|
220
|
+
fade: "Fade",
|
|
221
|
+
slide: "Slide",
|
|
222
|
+
zoom: "Zoom",
|
|
223
|
+
wipe: "Wipe",
|
|
224
|
+
morph: "Morph",
|
|
225
|
+
custom: "Custom"
|
|
226
|
+
},
|
|
206
227
|
selectionCount: "{count} elements selected",
|
|
207
228
|
positionLabel: "Position",
|
|
208
229
|
positionX: "Horizontal position",
|
|
@@ -443,6 +464,7 @@ const en = {
|
|
|
443
464
|
title: "Exporting PDF",
|
|
444
465
|
processing: "Processing page {current} of {total}",
|
|
445
466
|
printing: "Opening print dialog…",
|
|
467
|
+
saving: "Saving PDF…",
|
|
446
468
|
done: "Done"
|
|
447
469
|
},
|
|
448
470
|
pptxToast: {
|
|
@@ -832,6 +854,27 @@ const es = {
|
|
|
832
854
|
rotateHandle: "Rotar elemento",
|
|
833
855
|
resizeHandle: "Redimensionar {handle}",
|
|
834
856
|
arrangeSection: "Organizar",
|
|
857
|
+
pageLabel: "Página {page} de {total}",
|
|
858
|
+
pageBackground: "Fondo",
|
|
859
|
+
pageBackgroundTheme: "Del tema",
|
|
860
|
+
pageBackgroundShared: "Compartido entre páginas",
|
|
861
|
+
pageBackgroundComplex: "Degradado o imagen",
|
|
862
|
+
pageTransition: "Transición",
|
|
863
|
+
pageTransitionInherited: "Predeterminada de la presentación",
|
|
864
|
+
pageSteps: "Pasos",
|
|
865
|
+
pageStepsCount: {
|
|
866
|
+
one: "1 paso",
|
|
867
|
+
other: "{count} pasos"
|
|
868
|
+
},
|
|
869
|
+
pageNone: "Ninguna",
|
|
870
|
+
transitionKinds: {
|
|
871
|
+
fade: "Fundido",
|
|
872
|
+
slide: "Desplazar",
|
|
873
|
+
zoom: "Zoom",
|
|
874
|
+
wipe: "Barrido",
|
|
875
|
+
morph: "Morph",
|
|
876
|
+
custom: "Personalizada"
|
|
877
|
+
},
|
|
835
878
|
selectionCount: "{count} elementos seleccionados",
|
|
836
879
|
positionLabel: "Posición",
|
|
837
880
|
positionX: "Posición horizontal",
|
|
@@ -1072,6 +1115,7 @@ const es = {
|
|
|
1072
1115
|
title: "Exportando PDF",
|
|
1073
1116
|
processing: "Procesando página {current} de {total}",
|
|
1074
1117
|
printing: "Abriendo diálogo de impresión…",
|
|
1118
|
+
saving: "Guardando PDF…",
|
|
1075
1119
|
done: "Hecho"
|
|
1076
1120
|
},
|
|
1077
1121
|
pptxToast: {
|
|
@@ -1461,6 +1505,27 @@ const ja = {
|
|
|
1461
1505
|
rotateHandle: "要素を回転",
|
|
1462
1506
|
resizeHandle: "サイズ変更({handle})",
|
|
1463
1507
|
arrangeSection: "配置",
|
|
1508
|
+
pageLabel: "{page} / {total} ページ",
|
|
1509
|
+
pageBackground: "背景",
|
|
1510
|
+
pageBackgroundTheme: "テーマに従う",
|
|
1511
|
+
pageBackgroundShared: "複数ページで共有",
|
|
1512
|
+
pageBackgroundComplex: "グラデーションまたは画像",
|
|
1513
|
+
pageTransition: "トランジション",
|
|
1514
|
+
pageTransitionInherited: "デッキの既定",
|
|
1515
|
+
pageSteps: "ステップ",
|
|
1516
|
+
pageStepsCount: {
|
|
1517
|
+
one: "1 ステップ",
|
|
1518
|
+
other: "{count} ステップ"
|
|
1519
|
+
},
|
|
1520
|
+
pageNone: "なし",
|
|
1521
|
+
transitionKinds: {
|
|
1522
|
+
fade: "フェード",
|
|
1523
|
+
slide: "スライド",
|
|
1524
|
+
zoom: "ズーム",
|
|
1525
|
+
wipe: "ワイプ",
|
|
1526
|
+
morph: "モーフ",
|
|
1527
|
+
custom: "カスタム"
|
|
1528
|
+
},
|
|
1464
1529
|
selectionCount: "{count} 個の要素を選択中",
|
|
1465
1530
|
positionLabel: "位置",
|
|
1466
1531
|
positionX: "水平位置",
|
|
@@ -1701,6 +1766,7 @@ const ja = {
|
|
|
1701
1766
|
title: "PDF を書き出し中",
|
|
1702
1767
|
processing: "ページ {current} / {total} を処理中",
|
|
1703
1768
|
printing: "印刷ダイアログを開いています…",
|
|
1769
|
+
saving: "PDF を保存しています…",
|
|
1704
1770
|
done: "完了"
|
|
1705
1771
|
},
|
|
1706
1772
|
pptxToast: {
|
|
@@ -2090,6 +2156,27 @@ const zhCN = {
|
|
|
2090
2156
|
rotateHandle: "旋转元素",
|
|
2091
2157
|
resizeHandle: "调整尺寸({handle})",
|
|
2092
2158
|
arrangeSection: "排列",
|
|
2159
|
+
pageLabel: "第 {page} 页,共 {total} 页",
|
|
2160
|
+
pageBackground: "背景",
|
|
2161
|
+
pageBackgroundTheme: "跟随主题",
|
|
2162
|
+
pageBackgroundShared: "多页共用",
|
|
2163
|
+
pageBackgroundComplex: "渐变或图片",
|
|
2164
|
+
pageTransition: "转场",
|
|
2165
|
+
pageTransitionInherited: "沿用演示默认",
|
|
2166
|
+
pageSteps: "逐步动画",
|
|
2167
|
+
pageStepsCount: {
|
|
2168
|
+
one: "1 步",
|
|
2169
|
+
other: "{count} 步"
|
|
2170
|
+
},
|
|
2171
|
+
pageNone: "无",
|
|
2172
|
+
transitionKinds: {
|
|
2173
|
+
fade: "淡入淡出",
|
|
2174
|
+
slide: "推移",
|
|
2175
|
+
zoom: "缩放",
|
|
2176
|
+
wipe: "擦除",
|
|
2177
|
+
morph: "Morph",
|
|
2178
|
+
custom: "自定义"
|
|
2179
|
+
},
|
|
2093
2180
|
selectionCount: "已选择 {count} 个元素",
|
|
2094
2181
|
positionLabel: "位置",
|
|
2095
2182
|
positionX: "水平位置",
|
|
@@ -2330,6 +2417,7 @@ const zhCN = {
|
|
|
2330
2417
|
title: "导出 PDF",
|
|
2331
2418
|
processing: "正在处理第 {current} / {total} 页",
|
|
2332
2419
|
printing: "正在打开打印对话框…",
|
|
2420
|
+
saving: "正在保存 PDF…",
|
|
2333
2421
|
done: "完成"
|
|
2334
2422
|
},
|
|
2335
2423
|
pptxToast: {
|
|
@@ -2719,6 +2807,27 @@ const zhTW = {
|
|
|
2719
2807
|
rotateHandle: "旋轉元素",
|
|
2720
2808
|
resizeHandle: "調整尺寸({handle})",
|
|
2721
2809
|
arrangeSection: "排列",
|
|
2810
|
+
pageLabel: "第 {page} 頁,共 {total} 頁",
|
|
2811
|
+
pageBackground: "背景",
|
|
2812
|
+
pageBackgroundTheme: "跟隨主題",
|
|
2813
|
+
pageBackgroundShared: "多頁共用",
|
|
2814
|
+
pageBackgroundComplex: "漸層或圖片",
|
|
2815
|
+
pageTransition: "轉場",
|
|
2816
|
+
pageTransitionInherited: "沿用簡報預設",
|
|
2817
|
+
pageSteps: "逐步動畫",
|
|
2818
|
+
pageStepsCount: {
|
|
2819
|
+
one: "1 步",
|
|
2820
|
+
other: "{count} 步"
|
|
2821
|
+
},
|
|
2822
|
+
pageNone: "無",
|
|
2823
|
+
transitionKinds: {
|
|
2824
|
+
fade: "淡入淡出",
|
|
2825
|
+
slide: "推移",
|
|
2826
|
+
zoom: "縮放",
|
|
2827
|
+
wipe: "擦除",
|
|
2828
|
+
morph: "Morph",
|
|
2829
|
+
custom: "自訂"
|
|
2830
|
+
},
|
|
2722
2831
|
selectionCount: "已選取 {count} 個元素",
|
|
2723
2832
|
positionLabel: "位置",
|
|
2724
2833
|
positionX: "水平位置",
|
|
@@ -2959,6 +3068,7 @@ const zhTW = {
|
|
|
2959
3068
|
title: "匯出 PDF",
|
|
2960
3069
|
processing: "處理第 {current} / {total} 頁",
|
|
2961
3070
|
printing: "正在開啟列印對話框…",
|
|
3071
|
+
saving: "正在儲存 PDF…",
|
|
2962
3072
|
done: "完成"
|
|
2963
3073
|
},
|
|
2964
3074
|
pptxToast: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemonriver/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "The LemonRiver runtime: deck viewer, story board, present mode, agent panel and export.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@babel/parser": "^7.29.2",
|
|
74
74
|
"@babel/types": "^7.29.0",
|
|
75
|
-
"@base-ui/react": "1.
|
|
75
|
+
"@base-ui/react": "1.9.0",
|
|
76
76
|
"@dnd-kit/core": "^6.3.1",
|
|
77
77
|
"@dnd-kit/sortable": "^10.0.0",
|
|
78
78
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"clsx": "^2.1.1",
|
|
86
86
|
"cmdk": "^1.1.1",
|
|
87
87
|
"commander": "^15.0.0",
|
|
88
|
-
"emoji-picker-react": "^
|
|
88
|
+
"emoji-picker-react": "^5.1.4",
|
|
89
89
|
"fast-glob": "^3.3.2",
|
|
90
90
|
"fflate": "^0.8.3",
|
|
91
91
|
"html-to-image": "^1.11.13",
|
|
@@ -95,17 +95,16 @@
|
|
|
95
95
|
"react-dom": "^19.2.8",
|
|
96
96
|
"react-image-crop": "^11.0.10",
|
|
97
97
|
"react-router-dom": "^7.18.4",
|
|
98
|
-
"shadcn": "^4.21.4",
|
|
99
98
|
"sonner": "^2.0.7",
|
|
100
99
|
"tailwind-merge": "^3.5.0",
|
|
101
100
|
"tailwindcss": "^4.3.3",
|
|
102
101
|
"tw-animate-css": "^1.4.0",
|
|
103
102
|
"use-sync-external-store": "^1.7.0",
|
|
104
|
-
"vite": "^8.3.
|
|
103
|
+
"vite": "^8.3.7"
|
|
105
104
|
},
|
|
106
105
|
"devDependencies": {
|
|
107
106
|
"@playwright/test": "~1.63.0",
|
|
108
|
-
"@types/node": "^26.6.
|
|
107
|
+
"@types/node": "^26.6.6",
|
|
109
108
|
"@types/react": "^19.2.18",
|
|
110
109
|
"@types/react-dom": "^19.2.5",
|
|
111
110
|
"tsdown": "^0.22.14",
|
package/release-notes.json
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
+
"1.4.0": {
|
|
3
|
+
"zh-CN": [
|
|
4
|
+
"新工作区打开后有三块「快速开始」看板:复制提示词给任意 Agent、一键把 LemonRiver 装进你的 Agent App,或者直接在 LemonRiver 里新建。",
|
|
5
|
+
"能找到装在各处的 Claude Code 和 Codex,连接只要几秒;另外还能识别 Gemini CLI、Qwen Code、Kimi CLI、OpenCode、Cursor Agent CLI 五个命令行 Agent。",
|
|
6
|
+
"选中元素后按 Delete 即可删除;没选中时,「格式」面板会显示当前页的背景、切页效果和分步数。",
|
|
7
|
+
"整个界面和帮助页的文字重新写过;首页最前面是介绍稿、入门指南和练习稿。"
|
|
8
|
+
],
|
|
9
|
+
"zh-TW": [
|
|
10
|
+
"新工作區開啟後有三塊「快速開始」看板:複製提示詞給任意 Agent、一鍵把 LemonRiver 裝進你的 Agent App,或者直接在 LemonRiver 裡新增。",
|
|
11
|
+
"能找到裝在各處的 Claude Code 和 Codex,連接只要幾秒;另外還能辨識 Gemini CLI、Qwen Code、Kimi CLI、OpenCode、Cursor Agent CLI 五個命令列 Agent。",
|
|
12
|
+
"選取元素後按 Delete 即可刪除;沒有選取時,「格式」面板會顯示目前頁的背景、切頁效果和分步數。",
|
|
13
|
+
"整個介面和說明頁的文字重新寫過;首頁最前面是介紹稿、入門指南和練習稿。"
|
|
14
|
+
],
|
|
15
|
+
"en": [
|
|
16
|
+
"New workspaces open on three Get started boards: copy a prompt for any agent, install LemonRiver into your agent app in one click, or create right inside LemonRiver.",
|
|
17
|
+
"Claude Code and Codex are found wherever they're installed and connect in seconds, and five more command-line agents are recognized: Gemini CLI, Qwen Code, Kimi CLI, OpenCode and Cursor Agent CLI.",
|
|
18
|
+
"Press Delete to remove selected elements. With nothing selected, the Format panel shows the page's background, transition and step count.",
|
|
19
|
+
"Clearer wording throughout the app and help page, with the intro, getting-started and practice decks first on the home page."
|
|
20
|
+
]
|
|
21
|
+
},
|
|
2
22
|
"1.3.0": {
|
|
3
23
|
"zh-CN": [
|
|
4
24
|
"放映时屏幕不会再自动熄灭,打开演讲者视图时也一样。",
|
package/src/agent/types.ts
CHANGED
|
@@ -143,13 +143,20 @@ export type RespondPayload =
|
|
|
143
143
|
| { allow: boolean }
|
|
144
144
|
| { cancel: true };
|
|
145
145
|
|
|
146
|
-
export
|
|
146
|
+
export const AGENT_EVENT = 'open-slide:agent';
|
|
147
|
+
|
|
148
|
+
// `rev` numbers store events; a snapshot carries the rev it was taken at, so a
|
|
149
|
+
// client can tell which events it already includes.
|
|
150
|
+
export type AgentStreamEvent = (
|
|
147
151
|
| { type: 'session'; session: AgentSessionSummary }
|
|
148
152
|
| { type: 'session-removed'; sessionId: string }
|
|
149
153
|
| { type: 'item'; sessionId: string; item: AgentItem }
|
|
150
154
|
| { type: 'delta'; sessionId: string; itemId: string; text: string }
|
|
151
155
|
| { type: 'truncate'; sessionId: string; itemId: string }
|
|
152
|
-
| { type: 'slide-renamed'; from: string; to: string }
|
|
156
|
+
| { type: 'slide-renamed'; from: string; to: string }
|
|
157
|
+
) & { rev?: number };
|
|
158
|
+
|
|
159
|
+
export type AgentSnapshot<T> = T & { rev: number };
|
|
153
160
|
|
|
154
161
|
export function sessionSummary(session: AgentSession): AgentSessionSummary {
|
|
155
162
|
const {
|
package/src/app/app.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import { BrowserRouter, Route, Routes } from 'react-router-dom';
|
|
|
3
3
|
import { TooltipProvider } from './components/ui/tooltip';
|
|
4
4
|
import { AppChrome } from './lemonriver/chrome/app-chrome';
|
|
5
5
|
import { lemonRiverRoutes, lemonRiverShellRoutes } from './lemonriver/routes';
|
|
6
|
+
import { DesktopBridge } from './lib/desktop';
|
|
6
7
|
import { useLocale } from './lib/use-locale';
|
|
7
8
|
import { AssetsPage } from './routes/assets';
|
|
8
9
|
import { Home } from './routes/home';
|
|
@@ -36,6 +37,7 @@ export function App() {
|
|
|
36
37
|
</Routes>
|
|
37
38
|
</TooltipProvider>
|
|
38
39
|
<AppChrome />
|
|
40
|
+
<DesktopBridge />
|
|
39
41
|
</BrowserRouter>
|
|
40
42
|
);
|
|
41
43
|
}
|