@kywk/open-slide-core 2.3.0 → 2.3.2
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/LICENSE +21 -0
- package/dist/{build-CZ6Qtrng.js → build-46dO14h1.js} +1 -1
- package/dist/cli/bin.js +4 -4
- package/dist/{config-CpmGqpQi.d.ts → config-CDrYgaEj.d.ts} +6 -2
- package/dist/{config-B5LArqpp.js → config-KyYvWqq-.js} +2061 -355
- package/dist/{dev-CCgdakbZ.js → dev-C0n-o0-c.js} +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +73 -32
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/{preview-AwAqvG17.js → preview-CDWAGSfB.js} +1 -1
- package/dist/{types-CvAqFqsY.d.ts → types-DFK02XVv.d.ts} +110 -0
- package/dist/{update-C_RlnKu4.js → update-CqZqQRQk.js} +128 -7
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/{zh-tw-B7_Oqv2q.js → zh-tw-B1pkKQsc.js} +535 -0
- package/package.json +15 -9
- package/src/agent/prompt.ts +141 -0
- package/src/agent/provider.ts +123 -0
- package/src/agent/types.ts +151 -0
- package/src/app/components/agent/agent-dock.tsx +35 -0
- package/src/app/components/agent/agent-markdown.tsx +45 -0
- package/src/app/components/agent/agent-panel.tsx +692 -0
- package/src/app/components/agent/agent-presence.tsx +74 -0
- package/src/app/components/agent/composer.tsx +120 -0
- package/src/app/components/agent/connect-view.tsx +184 -0
- package/src/app/components/agent/history-view.tsx +135 -0
- package/src/app/components/agent/provider-logo.tsx +34 -0
- package/src/app/components/agent/transcript.tsx +609 -0
- package/src/app/components/command/slide-command-menu.tsx +10 -0
- package/src/app/components/inline-svg.tsx +52 -21
- package/src/app/components/inspector/comment-layer.tsx +20 -1
- package/src/app/components/inspector/image-crop-dialog.tsx +1 -5
- package/src/app/components/inspector/inspector-panel.tsx +1 -1
- package/src/app/components/mermaid.tsx +42 -11
- package/src/app/components/panel/editor-sidebar.tsx +85 -16
- package/src/app/components/panel/panel-shell.tsx +2 -2
- package/src/app/components/panel/resize-handle.tsx +129 -0
- package/src/app/lib/agent/use-agent.ts +543 -0
- package/src/app/lib/use-auto-grow.ts +15 -0
- package/src/app/lib/utils.ts +4 -0
- package/src/app/routes/home.tsx +43 -7
- package/src/app/routes/slide.tsx +103 -104
- package/src/app/styles.css +170 -0
- package/src/editing/placeholder-id.ts +1 -0
- package/src/locale/en.ts +106 -0
- package/src/locale/es.ts +108 -0
- package/src/locale/ja.ts +99 -0
- package/src/locale/types.ts +109 -0
- package/src/locale/zh-cn.ts +96 -0
- package/src/locale/zh-tw.ts +96 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Yiwei Ho
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as printHeader, t as createCliLogger } from "./cli/bin.js";
|
|
2
|
-
import { t as createViteConfig } from "./config-
|
|
2
|
+
import { t as createViteConfig } from "./config-KyYvWqq-.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { build as build$1, mergeConfig } from "vite";
|
|
5
5
|
//#region src/cli/build.ts
|
package/dist/cli/bin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { R as ownPackage, t as detectPackageManager, z as ownPackageName } from "../update-CqZqQRQk.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import * as readline from "node:readline/promises";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -444,17 +444,17 @@ async function run(argv) {
|
|
|
444
444
|
program.command("dev").description("Start the dev server").addOption(new Option("-p, --port <port>", "port to listen on").argParser(parsePort)).addOption(new Option("--host [host]", "expose on the network (optional host)")).option("--open", "open the browser on start").option("--no-skills-check", "skip the built-in skills drift check").action(async (flags) => {
|
|
445
445
|
if (flags.skillsCheck !== false) await runSkillsDriftCheck(resolveBuiltinSkillsDir());
|
|
446
446
|
await assertViteResolvesToCore();
|
|
447
|
-
const { dev } = await import("../dev-
|
|
447
|
+
const { dev } = await import("../dev-C0n-o0-c.js");
|
|
448
448
|
await dev(flags);
|
|
449
449
|
});
|
|
450
450
|
program.command("build").description("Build a static site").option("--out-dir <dir>", "output directory (defaults to `dist`)").action(async (flags) => {
|
|
451
451
|
await assertViteResolvesToCore();
|
|
452
|
-
const { build } = await import("../build-
|
|
452
|
+
const { build } = await import("../build-46dO14h1.js");
|
|
453
453
|
await build(flags);
|
|
454
454
|
});
|
|
455
455
|
program.command("preview").description("Preview the production build").addOption(new Option("-p, --port <port>", "port to listen on").argParser(parsePort)).addOption(new Option("--host [host]", "expose on the network (optional host)")).option("--open", "open the browser on start").action(async (flags) => {
|
|
456
456
|
await assertViteResolvesToCore();
|
|
457
|
-
const { preview } = await import("../preview-
|
|
457
|
+
const { preview } = await import("../preview-CDWAGSfB.js");
|
|
458
458
|
await preview(flags);
|
|
459
459
|
});
|
|
460
460
|
program.command("sync:skills").description(`Sync built-in skills from ${ownPackageName()} into this workspace`).option("--dry-run", "show what would change without writing").action(async (flags) => {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { t as Locale } from "./types-
|
|
1
|
+
import { t as Locale } from "./types-DFK02XVv.js";
|
|
2
2
|
//#region src/config.d.ts
|
|
3
3
|
type OpenSlideBuildConfig = {
|
|
4
4
|
showSlideBrowser?: boolean;
|
|
5
5
|
showSlideUi?: boolean;
|
|
6
6
|
allowHtmlDownload?: boolean;
|
|
7
7
|
};
|
|
8
|
+
type OpenSlideAgentConfig = {
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
};
|
|
8
11
|
type OpenSlideConfig = {
|
|
9
12
|
base?: string;
|
|
10
13
|
slidesDir?: string;
|
|
@@ -19,6 +22,7 @@ type OpenSlideConfig = {
|
|
|
19
22
|
*/
|
|
20
23
|
locale?: Locale;
|
|
21
24
|
build?: OpenSlideBuildConfig;
|
|
25
|
+
agent?: OpenSlideAgentConfig;
|
|
22
26
|
};
|
|
23
27
|
//#endregion
|
|
24
|
-
export { OpenSlideConfig as t };
|
|
28
|
+
export { OpenSlideConfig as n, OpenSlideAgentConfig as t };
|