@kywk/open-slide-core 2.3.1 → 2.3.3

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 (55) hide show
  1. package/dist/{build-CZ6Qtrng.js → build-46dO14h1.js} +1 -1
  2. package/dist/cli/bin.js +4 -4
  3. package/dist/{config-CpmGqpQi.d.ts → config-DJ8ZOe7C.d.ts} +6 -2
  4. package/dist/{config-B5LArqpp.js → config-KyYvWqq-.js} +2061 -355
  5. package/dist/{dev-CCgdakbZ.js → dev-C0n-o0-c.js} +2 -2
  6. package/dist/index.d.ts +3 -3
  7. package/dist/index.js +73 -32
  8. package/dist/locale/index.d.ts +1 -1
  9. package/dist/locale/index.js +1 -1
  10. package/dist/{preview-AwAqvG17.js → preview-CDWAGSfB.js} +1 -1
  11. package/dist/{types-CvAqFqsY.d.ts → types-tdaXSyah.d.ts} +111 -0
  12. package/dist/{update-C_RlnKu4.js → update-CqZqQRQk.js} +128 -7
  13. package/dist/vite/index.d.ts +1 -1
  14. package/dist/vite/index.js +1 -1
  15. package/dist/{zh-tw-B7_Oqv2q.js → zh-tw-DXcqQTrA.js} +540 -0
  16. package/package.json +10 -3
  17. package/src/agent/prompt.ts +141 -0
  18. package/src/agent/provider.ts +123 -0
  19. package/src/agent/types.ts +151 -0
  20. package/src/app/components/agent/agent-dock.tsx +35 -0
  21. package/src/app/components/agent/agent-markdown.tsx +45 -0
  22. package/src/app/components/agent/agent-panel.tsx +692 -0
  23. package/src/app/components/agent/agent-presence.tsx +74 -0
  24. package/src/app/components/agent/composer.tsx +120 -0
  25. package/src/app/components/agent/connect-view.tsx +184 -0
  26. package/src/app/components/agent/history-view.tsx +135 -0
  27. package/src/app/components/agent/provider-logo.tsx +34 -0
  28. package/src/app/components/agent/transcript.tsx +609 -0
  29. package/src/app/components/command/slide-command-menu.tsx +10 -0
  30. package/src/app/components/inline-svg.tsx +52 -21
  31. package/src/app/components/inspector/comment-layer.tsx +20 -1
  32. package/src/app/components/inspector/image-crop-dialog.tsx +1 -5
  33. package/src/app/components/inspector/inspector-panel.tsx +1 -1
  34. package/src/app/components/mermaid.tsx +42 -11
  35. package/src/app/components/panel/editor-sidebar.tsx +85 -16
  36. package/src/app/components/panel/panel-shell.tsx +2 -2
  37. package/src/app/components/panel/resize-handle.tsx +129 -0
  38. package/src/app/components/player.tsx +105 -23
  39. package/src/app/components/present/curtain.tsx +52 -0
  40. package/src/app/components/present/last-slide-hint.tsx +36 -0
  41. package/src/app/components/slide-canvas.tsx +1 -1
  42. package/src/app/components/thumbnail-rail.tsx +1 -1
  43. package/src/app/lib/agent/use-agent.ts +543 -0
  44. package/src/app/lib/use-auto-grow.ts +15 -0
  45. package/src/app/lib/utils.ts +4 -0
  46. package/src/app/routes/home.tsx +51 -7
  47. package/src/app/routes/slide.tsx +172 -116
  48. package/src/app/styles.css +170 -0
  49. package/src/editing/placeholder-id.ts +1 -0
  50. package/src/locale/en.ts +107 -0
  51. package/src/locale/es.ts +109 -0
  52. package/src/locale/ja.ts +100 -0
  53. package/src/locale/types.ts +110 -0
  54. package/src/locale/zh-cn.ts +97 -0
  55. package/src/locale/zh-tw.ts +97 -0
@@ -1,5 +1,5 @@
1
1
  import { r as printHeader, t as createCliLogger } from "./cli/bin.js";
2
- import { t as createViteConfig } from "./config-B5LArqpp.js";
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 { A as ownPackage, j as ownPackageName, t as detectPackageManager } from "../update-C_RlnKu4.js";
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-CCgdakbZ.js");
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-CZ6Qtrng.js");
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-AwAqvG17.js");
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-CvAqFqsY.js";
1
+ import { t as Locale } from "./types-tdaXSyah.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 };