@open-slide/core 2.1.0 → 2.3.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.
Files changed (53) hide show
  1. package/dist/{build-COxfoC_P.js → build-8lRsgsO4.js} +1 -1
  2. package/dist/cli/bin.js +4 -4
  3. package/dist/{config-DHPbCCnt.d.ts → config-CDrYgaEj.d.ts} +6 -2
  4. package/dist/{config-CNhYSo4C.js → config-D2Mq1vSW.js} +2162 -368
  5. package/dist/{dev-CujpTS3T.js → dev-BvefEp1Q.js} +1 -1
  6. package/dist/index.d.ts +3 -3
  7. package/dist/index.js +1 -1
  8. package/dist/locale/index.d.ts +1 -1
  9. package/dist/locale/index.js +1 -1
  10. package/dist/{preview-kU5R6QXJ.js → preview-D8ognobz.js} +1 -1
  11. package/dist/{types-BGUi9COY.d.ts → types-DFK02XVv.d.ts} +119 -4
  12. package/dist/{update-CPBitJQq.js → update-BivdNgL3.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-BbFb4PZW.js → zh-tw-B1pkKQsc.js} +570 -20
  16. package/package.json +5 -5
  17. package/skills/apply-comments/SKILL.md +9 -6
  18. package/src/app/components/agent/agent-dock.tsx +35 -0
  19. package/src/app/components/agent/agent-markdown.tsx +45 -0
  20. package/src/app/components/agent/agent-panel.tsx +692 -0
  21. package/src/app/components/agent/agent-presence.tsx +74 -0
  22. package/src/app/components/agent/composer.tsx +120 -0
  23. package/src/app/components/agent/connect-view.tsx +184 -0
  24. package/src/app/components/agent/history-view.tsx +135 -0
  25. package/src/app/components/agent/provider-logo.tsx +34 -0
  26. package/src/app/components/agent/transcript.tsx +609 -0
  27. package/src/app/components/command/slide-command-menu.tsx +10 -0
  28. package/src/app/components/icon-switcher-indicator.tsx +1 -1
  29. package/src/app/components/inspector/comment-layer.tsx +1011 -0
  30. package/src/app/components/inspector/image-crop-dialog.tsx +1 -5
  31. package/src/app/components/inspector/inspect-overlay.tsx +2 -39
  32. package/src/app/components/inspector/inspector-panel.tsx +10 -93
  33. package/src/app/components/inspector/inspector-provider.tsx +120 -46
  34. package/src/app/components/panel/editor-sidebar.tsx +85 -16
  35. package/src/app/components/panel/panel-shell.tsx +2 -2
  36. package/src/app/components/panel/resize-handle.tsx +129 -0
  37. package/src/app/components/player.tsx +0 -1
  38. package/src/app/components/thumbnail-rail.tsx +39 -1
  39. package/src/app/lib/agent/use-agent.ts +543 -0
  40. package/src/app/lib/inspector/freeze-motion.ts +61 -0
  41. package/src/app/lib/inspector/use-comments.ts +32 -3
  42. package/src/app/lib/use-auto-grow.ts +15 -0
  43. package/src/app/lib/utils.ts +4 -0
  44. package/src/app/routes/home.tsx +43 -7
  45. package/src/app/routes/slide.tsx +109 -109
  46. package/src/app/styles.css +234 -80
  47. package/src/locale/en.ts +113 -4
  48. package/src/locale/es.ts +115 -5
  49. package/src/locale/ja.ts +106 -5
  50. package/src/locale/types.ts +118 -4
  51. package/src/locale/zh-cn.ts +103 -4
  52. package/src/locale/zh-tw.ts +103 -4
  53. package/src/app/components/inspector/comment-widget.tsx +0 -119
@@ -1,5 +1,5 @@
1
1
  import { r as printHeader, t as createCliLogger } from "./cli/bin.js";
2
- import { t as createViteConfig } from "./config-CNhYSo4C.js";
2
+ import { t as createViteConfig } from "./config-D2Mq1vSW.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 { t as detectPackageManager } from "../update-CPBitJQq.js";
2
+ import { t as detectPackageManager } from "../update-BivdNgL3.js";
3
3
  import path from "node:path";
4
4
  import * as readline from "node:readline/promises";
5
5
  import { fileURLToPath } from "node:url";
@@ -453,17 +453,17 @@ async function run(argv) {
453
453
  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) => {
454
454
  if (flags.skillsCheck !== false) await runSkillsDriftCheck(resolveBuiltinSkillsDir());
455
455
  await assertViteResolvesToCore();
456
- const { dev } = await import("../dev-CujpTS3T.js");
456
+ const { dev } = await import("../dev-BvefEp1Q.js");
457
457
  await dev(flags);
458
458
  });
459
459
  program.command("build").description("Build a static site").option("--out-dir <dir>", "output directory (defaults to `dist`)").action(async (flags) => {
460
460
  await assertViteResolvesToCore();
461
- const { build } = await import("../build-COxfoC_P.js");
461
+ const { build } = await import("../build-8lRsgsO4.js");
462
462
  await build(flags);
463
463
  });
464
464
  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) => {
465
465
  await assertViteResolvesToCore();
466
- const { preview } = await import("../preview-kU5R6QXJ.js");
466
+ const { preview } = await import("../preview-D8ognobz.js");
467
467
  await preview(flags);
468
468
  });
469
469
  program.command("sync:skills").description("Sync built-in skills from @open-slide/core 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-BGUi9COY.js";
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 };