@popcraft/kit 0.53.8 → 0.53.9

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 (58) hide show
  1. package/dist/chunks/{agent-IALNPVCW.js → agent-5WCC44KK.js} +1 -1
  2. package/dist/chunks/{builtin-M3WYBV6I.js → builtin-TCXFQTQV.js} +3 -3
  3. package/dist/chunks/{buy-credits-FOUIH5JI.js → buy-credits-7J4YCSGQ.js} +2 -2
  4. package/dist/chunks/{check-template-I4DMCUBG.js → check-template-DYRM75MJ.js} +2 -2
  5. package/dist/chunks/{chunk-UZQ5AQS4.js → chunk-2CH7NXOI.js} +5 -5
  6. package/dist/chunks/{chunk-YOKUDKR6.js → chunk-75WZIWMY.js} +4 -4
  7. package/dist/chunks/{chunk-3W6JUVUM.js → chunk-7UGG4VF4.js} +1 -1
  8. package/dist/chunks/{chunk-W6M4662L.js → chunk-7XOOW36S.js} +1 -1
  9. package/dist/chunks/{chunk-CYLENOL5.js → chunk-BIFSXGYP.js} +3 -3
  10. package/dist/chunks/{chunk-TVGW4HA4.js → chunk-BIY4VZE5.js} +1 -1
  11. package/dist/chunks/{chunk-6NCX7TAP.js → chunk-CP7FLWDW.js} +2 -2
  12. package/dist/chunks/{chunk-6R6JELK4.js → chunk-HJLSOKIK.js} +4 -4
  13. package/dist/chunks/{chunk-MURDNXQS.js → chunk-K6X6PP5P.js} +2 -2
  14. package/dist/chunks/{chunk-KYBLWAUP.js → chunk-KNFJEAL2.js} +2 -2
  15. package/dist/chunks/{chunk-D55ZNUAN.js → chunk-M6TZSB7W.js} +3 -3
  16. package/dist/chunks/{chunk-UMVYYGOC.js → chunk-OPKFRFBI.js} +5 -5
  17. package/dist/chunks/{chunk-6GW4PYTQ.js → chunk-OSDOI2WG.js} +1 -1
  18. package/dist/chunks/{chunk-UGTXKWKA.js → chunk-QGBJHU6Y.js} +1 -1
  19. package/dist/chunks/{chunk-I7XJ2R7X.js → chunk-TAM4GKQE.js} +9 -9
  20. package/dist/chunks/{chunk-TVDS4I34.js → chunk-TTJV3HCJ.js} +2 -2
  21. package/dist/chunks/{chunk-VIPAEDFB.js → chunk-UICE755R.js} +42 -42
  22. package/dist/chunks/{chunk-LQUVM6RR.js → chunk-UOSPHCDE.js} +11 -11
  23. package/dist/chunks/{chunk-YTP523BV.js → chunk-WO7CFPI4.js} +4 -4
  24. package/dist/chunks/{client-VV5NFWY4.js → client-GDVB2CWG.js} +1 -1
  25. package/dist/chunks/{client-JMEF223Z.js → client-TYPCHZLJ.js} +3 -3
  26. package/dist/chunks/{client-YQNMKBP4.js → client-UQSRIPXP.js} +2 -2
  27. package/dist/chunks/{client-actions-O7GJTHMM.js → client-actions-OW4L2IEC.js} +5 -5
  28. package/dist/chunks/{dangerous-74SLHIKU.js → dangerous-XJYITSBM.js} +3 -3
  29. package/dist/chunks/{delete-current-file-YNQ7LBVW.js → delete-current-file-ILQIUSBX.js} +5 -5
  30. package/dist/chunks/{editor-seams-6O2XCNRU.js → editor-seams-I75XPVP5.js} +10 -10
  31. package/dist/chunks/{editor-store-IQX5RHLP.js → editor-store-QGHVAOMH.js} +1 -1
  32. package/dist/chunks/{export-watermark-BHKJLB6W.js → export-watermark-TACX4E4Q.js} +5 -5
  33. package/dist/chunks/{eyedropper-FWOMXZWN.js → eyedropper-LLTUUW2F.js} +1 -1
  34. package/dist/chunks/{generate-media-SIG2LN3D.js → generate-media-WN7YOTQK.js} +3 -3
  35. package/dist/chunks/{host-QCGURXCY.js → host-MH7WSBXM.js} +6 -6
  36. package/dist/chunks/{integrations-ZR6BRATM.js → integrations-YWYHFQGM.js} +1 -1
  37. package/dist/chunks/{libraries-X6MI6LT7.js → libraries-D72EFS7I.js} +5 -5
  38. package/dist/chunks/{live-QY3CIQBV.js → live-GWAMBGH4.js} +1 -1
  39. package/dist/chunks/{media-tool-4QMDLK63.js → media-tool-ZGCOIDW3.js} +1 -1
  40. package/dist/chunks/{new-file-DTV7LE7J.js → new-file-2CLJC2VF.js} +3 -3
  41. package/dist/chunks/{plugin-C32V7NP6.js → plugin-IBUSVN6F.js} +2 -2
  42. package/dist/chunks/{plugin-import-PDVGPZA7.js → plugin-import-7KD2XZOP.js} +14 -14
  43. package/dist/chunks/{presence-MAPUIS37.js → presence-RKSMI5JP.js} +2 -2
  44. package/dist/chunks/{project-5EMX7FJP.js → project-OXHBFPV6.js} +1 -1
  45. package/dist/chunks/{publish-site-GPBX5KJI.js → publish-site-3U4ZHONB.js} +6 -6
  46. package/dist/chunks/{publish-store-TM6MHUAH.js → publish-store-WHDLSJEX.js} +4 -4
  47. package/dist/chunks/{raster-actions-KVK6W5OI.js → raster-actions-X4M3II7U.js} +1 -1
  48. package/dist/chunks/{runner-IBMTNOEG.js → runner-DCH3SMPI.js} +17 -17
  49. package/dist/chunks/{store-7565KG5Y.js → store-DJK27FEL.js} +6 -6
  50. package/dist/chunks/{sync-NE5CURLC.js → sync-IAVYJXEV.js} +5 -5
  51. package/dist/chunks/{tabs-OT5ZBUNR.js → tabs-5UUU2PPB.js} +8 -8
  52. package/dist/chunks/{team-S24H52DO.js → team-LMOAQSED.js} +1 -1
  53. package/dist/chunks/{team-client-4LFESJ3N.js → team-client-CNOLO5M2.js} +1 -1
  54. package/dist/chunks/{tools-NBP7CS55.js → tools-V7ZBNNZR.js} +2 -2
  55. package/dist/chunks/{ui-commands-GAADAZNE.js → ui-commands-MSPKWSLQ.js} +12 -12
  56. package/dist/chunks/{versions-ANHGIKCI.js → versions-PEX4AW74.js} +5 -5
  57. package/dist/index.js +1 -1
  58. package/package.json +1 -1
@@ -18,7 +18,7 @@ import {
18
18
  renderDocument,
19
19
  toolView,
20
20
  underReviewKit
21
- } from "./chunk-D55ZNUAN.js";
21
+ } from "./chunk-M6TZSB7W.js";
22
22
  import "./chunk-ZYK65XJJ.js";
23
23
  import "./chunk-CEVTHE4E.js";
24
24
  import "./chunk-OQZFD4BD.js";
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinTools,
9
9
  registerBuiltinTools
10
- } from "./chunk-MURDNXQS.js";
11
- import "./chunk-VIPAEDFB.js";
10
+ } from "./chunk-K6X6PP5P.js";
11
+ import "./chunk-UICE755R.js";
12
12
  import "./chunk-ZLWN6LBH.js";
13
13
  import "./chunk-Q7EITIAT.js";
14
14
  import "./chunk-X36CCQ76.js";
@@ -19,7 +19,7 @@ import "./chunk-A6XXXQQO.js";
19
19
  import "./chunk-ATSLWELA.js";
20
20
  import "./chunk-6B6ULEDJ.js";
21
21
  import "./chunk-VOOUF5TT.js";
22
- import "./chunk-D55ZNUAN.js";
22
+ import "./chunk-M6TZSB7W.js";
23
23
  import "./chunk-ZYK65XJJ.js";
24
24
  import "./chunk-3TESSHBV.js";
25
25
  import "./chunk-UCNBKWJQ.js";
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  HYPERY_TEAM_HEADER,
9
9
  hyperyRequestHeaders
10
- } from "./chunk-3W6JUVUM.js";
10
+ } from "./chunk-7UGG4VF4.js";
11
11
  import "./chunk-PTWMYRV4.js";
12
12
  import {
13
13
  useHyperyTeam
14
- } from "./chunk-TVGW4HA4.js";
14
+ } from "./chunk-BIY4VZE5.js";
15
15
  import {
16
16
  ApiError,
17
17
  inAppPurchases,
@@ -6,10 +6,10 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  appCommands
9
- } from "./chunk-I7XJ2R7X.js";
9
+ } from "./chunk-TAM4GKQE.js";
10
10
  import {
11
11
  builtinCommands
12
- } from "./chunk-VIPAEDFB.js";
12
+ } from "./chunk-UICE755R.js";
13
13
  import "./chunk-ZLWN6LBH.js";
14
14
  import "./chunk-Q7EITIAT.js";
15
15
  import "./chunk-X36CCQ76.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-ZYK65XJJ.js";
16
16
  import {
17
17
  syncStatus
18
- } from "./chunk-YOKUDKR6.js";
18
+ } from "./chunk-75WZIWMY.js";
19
19
  import {
20
20
  exportNodeToSVG
21
21
  } from "./chunk-7BQRRGVZ.js";
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  setPluginTabs,
30
30
  useEditorStore
31
- } from "./chunk-UMVYYGOC.js";
31
+ } from "./chunk-OPKFRFBI.js";
32
32
  import {
33
33
  openBeside
34
34
  } from "./chunk-PMLSPVLR.js";
@@ -69,7 +69,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
69
69
  // lib/plugins/api.ts
70
70
  init_define_POPCRAFT_COMPONENT_IDS();
71
71
  async function handlePluginCall(env, method, params = {}) {
72
- const { dispatchPluginCall } = await import("./plugin-C32V7NP6.js");
72
+ const { dispatchPluginCall } = await import("./plugin-IBUSVN6F.js");
73
73
  return dispatchPluginCall(env, method, params);
74
74
  }
75
75
 
@@ -579,7 +579,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
579
579
  if (!openBeside(url)) throw new Error("The browser blocked the new tab");
580
580
  },
581
581
  createDocument: async (opts2) => {
582
- const { createFreshFileOrExplain } = await import("./new-file-DTV7LE7J.js");
582
+ const { createFreshFileOrExplain } = await import("./new-file-2CLJC2VF.js");
583
583
  const created = await createFreshFileOrExplain({}, { name: opts2?.name });
584
584
  if (!created.ok) throw new Error(created.reason === "plan" ? "Plan limit reached" : created.reason === "guest-limit" ? "Sign in to create another file" : `Could not create file (${created.reason})`);
585
585
  await useEditorStore.getState().openDocument(created.docId);
@@ -769,7 +769,7 @@ if (typeof window !== "undefined") {
769
769
  const name = d.name || "Imported";
770
770
  void (async () => {
771
771
  try {
772
- const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-PDVGPZA7.js");
772
+ const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-7KD2XZOP.js");
773
773
  if (d.ir && typeof d.ir === "object") {
774
774
  await applyPluginLayoutIr(d.ir, { mode, name });
775
775
  return;
@@ -16,14 +16,14 @@ import {
16
16
  reportOpenStage,
17
17
  setCloudLink,
18
18
  trackOpen
19
- } from "./chunk-6NCX7TAP.js";
19
+ } from "./chunk-CP7FLWDW.js";
20
20
  import {
21
21
  parseDeepLink,
22
22
  withDeepLink
23
23
  } from "./chunk-EUF3VFBW.js";
24
24
  import {
25
25
  activeTeamWorkspaceId
26
- } from "./chunk-TVGW4HA4.js";
26
+ } from "./chunk-BIY4VZE5.js";
27
27
  import {
28
28
  ApiError,
29
29
  api,
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk-SY3KZGGN.js";
32
32
  import {
33
33
  attachPresence
34
- } from "./chunk-6GW4PYTQ.js";
34
+ } from "./chunk-OSDOI2WG.js";
35
35
  import {
36
36
  isPersistableDocument,
37
37
  isUnsavedPlaceholder,
@@ -42,7 +42,7 @@ import {
42
42
  setCollabHistory,
43
43
  storedDocument,
44
44
  useEditorStore
45
- } from "./chunk-UMVYYGOC.js";
45
+ } from "./chunk-OPKFRFBI.js";
46
46
  import {
47
47
  currentHistoryGroup
48
48
  } from "./chunk-76I6DIEM.js";
@@ -11,7 +11,7 @@ import {
11
11
  activeHyperyTeamId,
12
12
  activeTeamWorkspaceId,
13
13
  useHyperyTeam
14
- } from "./chunk-TVGW4HA4.js";
14
+ } from "./chunk-BIY4VZE5.js";
15
15
  import {
16
16
  inAppPurchases
17
17
  } from "./chunk-SY3KZGGN.js";
@@ -13,7 +13,7 @@ import {
13
13
  agentTool,
14
14
  agentToolList,
15
15
  registerCommands
16
- } from "./chunk-D55ZNUAN.js";
16
+ } from "./chunk-M6TZSB7W.js";
17
17
  import {
18
18
  dispatch
19
19
  } from "./chunk-OQZFD4BD.js";
@@ -9,7 +9,7 @@ import {
9
9
  hostEnv,
10
10
  plain,
11
11
  registerBuiltinCommands
12
- } from "./chunk-VIPAEDFB.js";
12
+ } from "./chunk-UICE755R.js";
13
13
  import {
14
14
  storeOpsSeam
15
15
  } from "./chunk-KOAEKWIA.js";
@@ -618,7 +618,7 @@ var commands = [
618
618
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
619
619
  import("./storefront-prepare-2YNJH24S.js"),
620
620
  import("./storefront-L643GHPK.js"),
621
- import("./project-5EMX7FJP.js"),
621
+ import("./project-OXHBFPV6.js"),
622
622
  import("./zip-export-ZYXDK4SM.js"),
623
623
  import("./tree-TOC2Z2KY.js")
624
624
  ]);
@@ -815,7 +815,7 @@ var pluginRun = defineCommand({
815
815
  }
816
816
  },
817
817
  run: async (p, ctx) => {
818
- const { runPlugin } = await import("./host-QCGURXCY.js");
818
+ const { runPlugin } = await import("./host-MH7WSBXM.js");
819
819
  await runPlugin(p.pluginId, p.commandId);
820
820
  ctx.notice(`Started ${p.pluginId}.`);
821
821
  return {
@@ -150,7 +150,7 @@ function startHyperyTeams() {
150
150
  maybePromptForTeam();
151
151
  void followFileTeam(linkedKey);
152
152
  });
153
- void import("./sync-NE5CURLC.js").then(({ onSyncStatus, syncStatus }) => {
153
+ void import("./sync-IAVYJXEV.js").then(({ onSyncStatus, syncStatus }) => {
154
154
  linkedKey = syncStatus().link?.key ?? null;
155
155
  void followFileTeam(linkedKey);
156
156
  onSyncStatus((_s, link) => {
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-PTWMYRV4.js";
10
10
  import {
11
11
  activeTeamWorkspaceId
12
- } from "./chunk-TVGW4HA4.js";
12
+ } from "./chunk-BIY4VZE5.js";
13
13
  import {
14
14
  ApiError,
15
15
  GUEST_FILE_LIMIT,
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-MTCK2APT.js";
24
24
  import {
25
25
  markLibraryDocument
26
- } from "./chunk-UMVYYGOC.js";
26
+ } from "./chunk-OPKFRFBI.js";
27
27
  import {
28
28
  create
29
29
  } from "./chunk-QLJLPV5R.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-LRF3JAZW.js";
10
10
  import {
11
11
  notice
12
- } from "./chunk-KYBLWAUP.js";
12
+ } from "./chunk-KNFJEAL2.js";
13
13
  import {
14
14
  effectiveChatModel,
15
15
  setModelPref,
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-A4CGHVJP.js";
18
18
  import {
19
19
  useEditorStore
20
- } from "./chunk-UMVYYGOC.js";
20
+ } from "./chunk-OPKFRFBI.js";
21
21
  import {
22
22
  create
23
23
  } from "./chunk-QLJLPV5R.js";
@@ -1797,7 +1797,7 @@ async function sendMessage(text) {
1797
1797
  if (!useAgentStore.getState().activeThreadId) newThread();
1798
1798
  const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
1799
1799
  useAgentStore.setState({ draft: "", draftMentions: [], error: null });
1800
- const { runTurn } = await import("./runner-IBMTNOEG.js");
1800
+ const { runTurn } = await import("./runner-DCH3SMPI.js");
1801
1801
  await runTurn(body, mentions);
1802
1802
  }
1803
1803
  function stop() {
@@ -1900,7 +1900,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
1900
1900
  function subscribeChildTools() {
1901
1901
  let dispose;
1902
1902
  let cancelled = false;
1903
- void import("./runner-IBMTNOEG.js").then(({ onChildTool }) => {
1903
+ void import("./runner-DCH3SMPI.js").then(({ onChildTool }) => {
1904
1904
  const off = onChildTool((report) => {
1905
1905
  if (report?.status !== "running" || report.jobId) return;
1906
1906
  recordChildTool(report.toolCallId ?? "", report.name);
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinCommands,
9
9
  registerBuiltinCommands
10
- } from "./chunk-VIPAEDFB.js";
10
+ } from "./chunk-UICE755R.js";
11
11
  import {
12
12
  toolView
13
- } from "./chunk-D55ZNUAN.js";
13
+ } from "./chunk-M6TZSB7W.js";
14
14
  import {
15
15
  init_define_POPCRAFT_COMPONENT_IDS
16
16
  } from "./chunk-WKDVCZ45.js";
@@ -16,7 +16,7 @@ import {
16
16
  requestImageAction,
17
17
  sizeForAspect,
18
18
  vectorSupport
19
- } from "./chunk-UGTXKWKA.js";
19
+ } from "./chunk-QGBJHU6Y.js";
20
20
  import {
21
21
  external_exports
22
22
  } from "./chunk-VOOUF5TT.js";
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk-OA2WRKB2.js";
32
32
  import {
33
33
  useEditorStore
34
- } from "./chunk-UMVYYGOC.js";
34
+ } from "./chunk-OPKFRFBI.js";
35
35
  import {
36
36
  withHistoryGroup
37
37
  } from "./chunk-76I6DIEM.js";
@@ -57,19 +57,19 @@ async function renderDocument(doc, nodeIds, options) {
57
57
  function generateCapability(ctx) {
58
58
  return async (prompt, options = {}) => {
59
59
  if (options.format === "audio") {
60
- const { requestAudio } = await import("./client-JMEF223Z.js");
60
+ const { requestAudio } = await import("./client-TYPCHZLJ.js");
61
61
  const { signal: signal2, format: _f, ...rest2 } = options;
62
62
  void _f;
63
63
  return requestAudio({ prompt, ...rest2 }, signal2 ?? ctx.signal);
64
64
  }
65
65
  if (options.format === "video") {
66
- const { generateVideoFile } = await import("./generate-media-SIG2LN3D.js");
66
+ const { generateVideoFile } = await import("./generate-media-WN7YOTQK.js");
67
67
  const { format: _f, signal: signal2, ...rest2 } = options;
68
68
  void _f;
69
69
  return generateVideoFile({ ...rest2, prompt, doc: ctx.doc() }, { signal: signal2 ?? ctx.signal });
70
70
  }
71
71
  const [{ requestImage }, { effectiveImageModel, useAiStore }] = await Promise.all([
72
- import("./client-JMEF223Z.js"),
72
+ import("./client-TYPCHZLJ.js"),
73
73
  import("./client-store-3YCO6KV5.js")
74
74
  ]);
75
75
  const modelId = effectiveImageModel(useAiStore.getState());
@@ -4611,7 +4611,7 @@ function createPopcornSlice(set2, get2) {
4611
4611
  privateMode: false,
4612
4612
  setPrivateMode: (on) => {
4613
4613
  set2({ privateMode: on });
4614
- void import("./presence-MAPUIS37.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4614
+ void import("./presence-RKSMI5JP.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4615
4615
  });
4616
4616
  },
4617
4617
  /** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
@@ -6656,7 +6656,7 @@ var useEditorStore = create()(
6656
6656
  // A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
6657
6657
  // Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
6658
6658
  duplicateDocument: async (id) => {
6659
- const { duplicateDocumentToCloud } = await import("./sync-NE5CURLC.js");
6659
+ const { duplicateDocumentToCloud } = await import("./sync-IAVYJXEV.js");
6660
6660
  return duplicateDocumentToCloud(id);
6661
6661
  },
6662
6662
  deleteDocument: async (id) => {
@@ -10131,9 +10131,9 @@ if (typeof window !== "undefined") {
10131
10131
  if (typeof window !== "undefined" && navigator.webdriver) {
10132
10132
  window.__vpDesign = async (script, o = {}) => {
10133
10133
  const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
10134
- import("./tools-NBP7CS55.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-M3WYBV6I.js")).registerBuiltinTools })),
10135
- import("./editor-seams-6O2XCNRU.js"),
10136
- import("./live-QY3CIQBV.js")
10134
+ import("./tools-V7ZBNNZR.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-TCXFQTQV.js")).registerBuiltinTools })),
10135
+ import("./editor-seams-I75XPVP5.js"),
10136
+ import("./live-GWAMBGH4.js")
10137
10137
  ]);
10138
10138
  registerBuiltinTools();
10139
10139
  const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  useEditorStore
9
- } from "./chunk-UMVYYGOC.js";
9
+ } from "./chunk-OPKFRFBI.js";
10
10
  import {
11
11
  announce
12
12
  } from "./chunk-DV7XWPVL.js";
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  hyperyRequestHeaders
9
- } from "./chunk-3W6JUVUM.js";
9
+ } from "./chunk-7UGG4VF4.js";
10
10
  import {
11
11
  aiAvailability,
12
12
  effectiveChatModel,
@@ -8,7 +8,7 @@ import {
8
8
  needsSelection,
9
9
  pageGo,
10
10
  selectionIsPicture
11
- } from "./chunk-VIPAEDFB.js";
11
+ } from "./chunk-UICE755R.js";
12
12
  import {
13
13
  external_exports
14
14
  } from "./chunk-VOOUF5TT.js";
@@ -31,7 +31,7 @@ var none = external_exports.object({});
31
31
  var emit = (name, detail) => {
32
32
  if (typeof window !== "undefined") window.dispatchEvent(new CustomEvent(name, { detail }));
33
33
  };
34
- var store = () => import("./editor-store-IQX5RHLP.js").then((m) => m.useEditorStore.getState());
34
+ var store = () => import("./editor-store-QGHVAOMH.js").then((m) => m.useEditorStore.getState());
35
35
  var MODE_IDS = MODE_LIST.map((m) => m.id);
36
36
  var MODE_ALIASES = { JAM: "POPCORN", DEV: "VIEW" };
37
37
  var modeSet = defineCommand({
@@ -167,7 +167,7 @@ var dialogOpen = defineCommand({
167
167
  (await import("./plan-limit-YTIOM3WO.js")).openPlanDialog();
168
168
  break;
169
169
  case "credits":
170
- await (await import("./buy-credits-FOUIH5JI.js")).buyAiCredits();
170
+ await (await import("./buy-credits-7J4YCSGQ.js")).buyAiCredits();
171
171
  break;
172
172
  case "tokens":
173
173
  emit("popcraft-open-tokens");
@@ -213,7 +213,7 @@ var aiOpen = defineCommand({
213
213
  ] } },
214
214
  run: async ({ dialog, skillId }) => {
215
215
  if (dialog) (await import("./client-store-3YCO6KV5.js")).openAiDialog(dialog);
216
- else (await import("./store-7565KG5Y.js")).openAgentPanel({ skillId: skillId ?? null });
216
+ else (await import("./store-DJK27FEL.js")).openAgentPanel({ skillId: skillId ?? null });
217
217
  return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
218
218
  }
219
219
  });
@@ -226,7 +226,7 @@ var agentContinue = defineCommand({
226
226
  params: external_exports.object({}),
227
227
  expose: { ui: { label: "AI: Continue the agent\u2019s last turn", keywords: ["ai", "agent", "continue", "resume", "retry", "keep going"] } },
228
228
  run: async () => {
229
- const resumed = await (await import("./runner-IBMTNOEG.js")).continueTurn();
229
+ const resumed = await (await import("./runner-DCH3SMPI.js")).continueTurn();
230
230
  return { summary: resumed ? "Continued the agent" : "Nothing to continue" };
231
231
  }
232
232
  });
@@ -305,11 +305,11 @@ var toolPlace = defineCommand({
305
305
  run: async ({ what }) => {
306
306
  if (what === "media") {
307
307
  const s = await store();
308
- const { placeMediaFromPicker } = await import("./media-tool-4QMDLK63.js");
308
+ const { placeMediaFromPicker } = await import("./media-tool-ZGCOIDW3.js");
309
309
  await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
310
310
  return { summary: "Placing media" };
311
311
  }
312
- const { beginEyedrop } = await import("./eyedropper-FWOMXZWN.js");
312
+ const { beginEyedrop } = await import("./eyedropper-LLTUUW2F.js");
313
313
  void beginEyedrop();
314
314
  return { summary: "Pick a color" };
315
315
  }
@@ -327,7 +327,7 @@ var nodeRasterize = defineCommand({
327
327
  keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
328
328
  } },
329
329
  run: async () => {
330
- const { flattenSelectionToPaintLayer } = await import("./raster-actions-KVK6W5OI.js");
330
+ const { flattenSelectionToPaintLayer } = await import("./raster-actions-X4M3II7U.js");
331
331
  await flattenSelectionToPaintLayer();
332
332
  return { summary: "Rasterized" };
333
333
  }
@@ -438,7 +438,7 @@ function pluginCommand(plugins) {
438
438
  params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
439
439
  expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
440
440
  run: async ({ pluginId, commandId }) => {
441
- await (await import("./host-QCGURXCY.js")).runPlugin(pluginId, commandId);
441
+ await (await import("./host-MH7WSBXM.js")).runPlugin(pluginId, commandId);
442
442
  return { summary: "Plugin started" };
443
443
  }
444
444
  });
@@ -91,9 +91,9 @@ async function placeStockPhoto(photo, opts = {}) {
91
91
  }
92
92
  async function placePicture(imported, opts = {}) {
93
93
  const [{ useEditorStore }, { photoFrameOf }, { placeImage }] = await Promise.all([
94
- import("./editor-store-IQX5RHLP.js"),
94
+ import("./editor-store-QGHVAOMH.js"),
95
95
  import("../lib/document/photo-frames.js"),
96
- import("./media-tool-4QMDLK63.js")
96
+ import("./media-tool-ZGCOIDW3.js")
97
97
  ]);
98
98
  const st = useEditorStore.getState();
99
99
  const frame = photoFrameOf(st.document.nodes, opts.targetId !== void 0 ? opts.targetId : st.selection[0] ?? null);