@popcraft/kit 0.19.0 → 0.20.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 (54) hide show
  1. package/dist/chunks/{agent-UMXGPUVG.js → agent-HGHODF4A.js} +1 -1
  2. package/dist/chunks/{builtin-TRMVHCKZ.js → builtin-V63ECHYC.js} +3 -3
  3. package/dist/chunks/{check-template-MMKEAH2I.js → check-template-7PBP52TO.js} +2 -2
  4. package/dist/chunks/{chunk-WMI4LAMI.js → chunk-2UGTD7BZ.js} +1 -1
  5. package/dist/chunks/{chunk-5K325M7N.js → chunk-5BVLZJV4.js} +5 -5
  6. package/dist/chunks/{chunk-DQYGIQKZ.js → chunk-6SYGOJQP.js} +3 -3
  7. package/dist/chunks/{chunk-O3ERF3ZP.js → chunk-AKIME3BK.js} +4 -4
  8. package/dist/chunks/{chunk-T6SX5F5A.js → chunk-BX2ZTDYP.js} +2 -2
  9. package/dist/chunks/{chunk-ZYUJR5LK.js → chunk-DZFKIDIQ.js} +4 -4
  10. package/dist/chunks/{chunk-QD5G7OEY.js → chunk-ETNAH7HP.js} +2 -2
  11. package/dist/chunks/{chunk-ESI2IZAX.js → chunk-H23SUZWS.js} +5 -5
  12. package/dist/chunks/{chunk-3LW7CIIJ.js → chunk-HYBVRIEE.js} +3 -3
  13. package/dist/chunks/{chunk-VXZT6V7T.js → chunk-IHH6HLU6.js} +1 -1
  14. package/dist/chunks/{chunk-KS2QWISP.js → chunk-IJCQSGCK.js} +1 -1
  15. package/dist/chunks/{chunk-ZPVC3ERO.js → chunk-NYAGHDO2.js} +5 -5
  16. package/dist/chunks/{chunk-F4364277.js → chunk-P3ERUV6B.js} +7 -7
  17. package/dist/chunks/{chunk-HYFEXQY7.js → chunk-RNR5O4CN.js} +2 -2
  18. package/dist/chunks/{chunk-5WX3CYRC.js → chunk-RQDDPOUN.js} +1 -3
  19. package/dist/chunks/{chunk-2YQDOXXX.js → chunk-VYJLVR5L.js} +35 -35
  20. package/dist/chunks/{chunk-OBW62YBM.js → chunk-WEK7G6VP.js} +2 -2
  21. package/dist/chunks/{chunk-DX5L5HGJ.js → chunk-YHKFPNT7.js} +11 -11
  22. package/dist/chunks/{client-L6TBUZIF.js → client-AZMJ6BJC.js} +1 -1
  23. package/dist/chunks/{client-JGKLMIDB.js → client-NDS3LDJL.js} +2 -2
  24. package/dist/chunks/{client-34HWVDXF.js → client-V6KVRYDT.js} +2 -2
  25. package/dist/chunks/{client-actions-FTAN3NCZ.js → client-actions-M6MOJKHI.js} +4 -4
  26. package/dist/chunks/{dangerous-YAER4TSL.js → dangerous-US3JKJAC.js} +3 -3
  27. package/dist/chunks/{editor-seams-PYZZZ75J.js → editor-seams-F2ZRTMV4.js} +9 -9
  28. package/dist/chunks/{editor-store-VG2QVDWY.js → editor-store-K7CBULWS.js} +1 -1
  29. package/dist/chunks/{export-watermark-NZCMS3GV.js → export-watermark-FUDEDIER.js} +5 -5
  30. package/dist/chunks/{eyedropper-7E5XLUEJ.js → eyedropper-DATTBVVO.js} +1 -1
  31. package/dist/chunks/{generate-media-ISKBID4M.js → generate-media-NJ5PWGD6.js} +2 -2
  32. package/dist/chunks/{host-D6MBNSVS.js → host-SXS3LTRM.js} +6 -6
  33. package/dist/chunks/{integrations-2BMHHVHJ.js → integrations-FW6V7GJN.js} +1 -1
  34. package/dist/chunks/{libraries-CCOGEBHK.js → libraries-YOTVAT2B.js} +5 -5
  35. package/dist/chunks/{live-CVGKLQ7T.js → live-QJV7RJTL.js} +1 -1
  36. package/dist/chunks/{media-tool-JJFAHRI4.js → media-tool-4Y74ZULN.js} +1 -1
  37. package/dist/chunks/{new-file-5CVQ43YM.js → new-file-FZJ6L5LK.js} +3 -3
  38. package/dist/chunks/{plugin-7O3QOHMG.js → plugin-IUYUXXD2.js} +2 -2
  39. package/dist/chunks/{plugin-import-6P5YZO44.js → plugin-import-GHPGB2DA.js} +13 -13
  40. package/dist/chunks/{presence-PS72KF7J.js → presence-3GO5NPGY.js} +2 -2
  41. package/dist/chunks/{project-24YVESU6.js → project-6HV6U22B.js} +1 -1
  42. package/dist/chunks/{publish-site-CM3WR45N.js → publish-site-ZLPZPZM4.js} +6 -6
  43. package/dist/chunks/{publish-store-LROYASYY.js → publish-store-SRHEA7SD.js} +4 -4
  44. package/dist/chunks/{raster-actions-QBLODJIJ.js → raster-actions-HUUDAAIV.js} +1 -1
  45. package/dist/chunks/{runner-OVF73PTV.js → runner-J2JMMQOS.js} +16 -16
  46. package/dist/chunks/{store-ZPKIGVAI.js → store-7ORWNQ2X.js} +5 -5
  47. package/dist/chunks/{sync-SBIHLSHL.js → sync-FNS5DMJ6.js} +5 -5
  48. package/dist/chunks/{tabs-C2G7WOBA.js → tabs-EUQBSR5Z.js} +8 -8
  49. package/dist/chunks/{team-T66RG2UG.js → team-CL5BFOQW.js} +1 -1
  50. package/dist/chunks/{tools-4LCIHI5Z.js → tools-GEGAGIDZ.js} +2 -2
  51. package/dist/chunks/{ui-commands-N6V4STLP.js → ui-commands-H4BBQE26.js} +11 -11
  52. package/dist/chunks/{versions-VKRWFX6D.js → versions-OMCKW4MM.js} +5 -5
  53. package/dist/index.js +1 -1
  54. package/package.json +1 -1
@@ -18,7 +18,7 @@ import {
18
18
  renderDocument,
19
19
  toolView,
20
20
  underReviewKit
21
- } from "./chunk-3LW7CIIJ.js";
21
+ } from "./chunk-HYBVRIEE.js";
22
22
  import "./chunk-WFRIBLTZ.js";
23
23
  import "./chunk-QN6INN46.js";
24
24
  import "./chunk-KSB6AZUU.js";
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinTools,
9
9
  registerBuiltinTools
10
- } from "./chunk-OBW62YBM.js";
11
- import "./chunk-2YQDOXXX.js";
10
+ } from "./chunk-WEK7G6VP.js";
11
+ import "./chunk-VYJLVR5L.js";
12
12
  import "./chunk-VUWA5GMN.js";
13
13
  import "./chunk-2FCR77LN.js";
14
14
  import "./chunk-ADVXTK4T.js";
@@ -22,7 +22,7 @@ import "./chunk-E6ZD2AKB.js";
22
22
  import "./chunk-NUFCAILQ.js";
23
23
  import "./chunk-XFOXUWML.js";
24
24
  import "./chunk-N5EGWQD7.js";
25
- import "./chunk-3LW7CIIJ.js";
25
+ import "./chunk-HYBVRIEE.js";
26
26
  import "./chunk-WFRIBLTZ.js";
27
27
  import "./chunk-YHYVRJ7J.js";
28
28
  import "./chunk-UHQBRZSR.js";
@@ -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-F4364277.js";
9
+ } from "./chunk-P3ERUV6B.js";
10
10
  import {
11
11
  builtinCommands
12
- } from "./chunk-2YQDOXXX.js";
12
+ } from "./chunk-VYJLVR5L.js";
13
13
  import "./chunk-VUWA5GMN.js";
14
14
  import "./chunk-2FCR77LN.js";
15
15
  import "./chunk-ADVXTK4T.js";
@@ -140,7 +140,7 @@ function startHyperyTeams() {
140
140
  maybePromptForTeam();
141
141
  void followFileTeam(linkedKey);
142
142
  });
143
- void import("./sync-SBIHLSHL.js").then(({ onSyncStatus, syncStatus }) => {
143
+ void import("./sync-FNS5DMJ6.js").then(({ onSyncStatus, syncStatus }) => {
144
144
  linkedKey = syncStatus().link?.key ?? null;
145
145
  void followFileTeam(linkedKey);
146
146
  onSyncStatus((_s, link) => {
@@ -4572,7 +4572,7 @@ function createPopcornSlice(set2, get2) {
4572
4572
  privateMode: false,
4573
4573
  setPrivateMode: (on) => {
4574
4574
  set2({ privateMode: on });
4575
- void import("./presence-PS72KF7J.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4575
+ void import("./presence-3GO5NPGY.js").then((m) => m.setPresencePrivate(on)).catch(() => {
4576
4576
  });
4577
4577
  },
4578
4578
  /** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
@@ -6621,7 +6621,7 @@ var useEditorStore = create()(
6621
6621
  // A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
6622
6622
  // Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
6623
6623
  duplicateDocument: async (id) => {
6624
- const { duplicateDocumentToCloud } = await import("./sync-SBIHLSHL.js");
6624
+ const { duplicateDocumentToCloud } = await import("./sync-FNS5DMJ6.js");
6625
6625
  return duplicateDocumentToCloud(id);
6626
6626
  },
6627
6627
  deleteDocument: async (id) => {
@@ -10073,9 +10073,9 @@ if (typeof window !== "undefined") {
10073
10073
  if (typeof window !== "undefined" && navigator.webdriver) {
10074
10074
  window.__vpDesign = async (script, o = {}) => {
10075
10075
  const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
10076
- import("./tools-4LCIHI5Z.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-TRMVHCKZ.js")).registerBuiltinTools })),
10077
- import("./editor-seams-PYZZZ75J.js"),
10078
- import("./live-CVGKLQ7T.js")
10076
+ import("./tools-GEGAGIDZ.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-V63ECHYC.js")).registerBuiltinTools })),
10077
+ import("./editor-seams-F2ZRTMV4.js"),
10078
+ import("./live-QJV7RJTL.js")
10079
10079
  ]);
10080
10080
  registerBuiltinTools();
10081
10081
  const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
@@ -9,7 +9,7 @@ import {
9
9
  hostEnv,
10
10
  plain,
11
11
  registerBuiltinCommands
12
- } from "./chunk-2YQDOXXX.js";
12
+ } from "./chunk-VYJLVR5L.js";
13
13
  import {
14
14
  storeOpsSeam
15
15
  } from "./chunk-3P4FXMLO.js";
@@ -572,7 +572,7 @@ var commands = [
572
572
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
573
573
  import("./storefront-prepare-RPEV4E6D.js"),
574
574
  import("./storefront-5YZRQYCN.js"),
575
- import("./project-24YVESU6.js"),
575
+ import("./project-6HV6U22B.js"),
576
576
  import("./zip-export-MWYURHIM.js"),
577
577
  import("./tree-7RMUR4Y2.js")
578
578
  ]);
@@ -769,7 +769,7 @@ var pluginRun = defineCommand({
769
769
  }
770
770
  },
771
771
  run: async (p, ctx) => {
772
- const { runPlugin } = await import("./host-D6MBNSVS.js");
772
+ const { runPlugin } = await import("./host-SXS3LTRM.js");
773
773
  await runPlugin(p.pluginId, p.commandId);
774
774
  ctx.notice(`Started ${p.pluginId}.`);
775
775
  return {
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-HYPLKRLY.js";
14
14
  import {
15
15
  notice
16
- } from "./chunk-QD5G7OEY.js";
16
+ } from "./chunk-ETNAH7HP.js";
17
17
  import {
18
18
  effectiveChatModel,
19
19
  setModelPref,
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-ZLSMU7F7.js";
22
22
  import {
23
23
  useEditorStore
24
- } from "./chunk-5K325M7N.js";
24
+ } from "./chunk-5BVLZJV4.js";
25
25
  import {
26
26
  create
27
27
  } from "./chunk-CRJCDXK6.js";
@@ -1475,7 +1475,7 @@ async function sendMessage(text) {
1475
1475
  if (!useAgentStore.getState().activeThreadId) newThread();
1476
1476
  const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
1477
1477
  useAgentStore.setState({ draft: "", draftMentions: [], error: null });
1478
- const { runTurn } = await import("./runner-OVF73PTV.js");
1478
+ const { runTurn } = await import("./runner-J2JMMQOS.js");
1479
1479
  await runTurn(body, mentions);
1480
1480
  }
1481
1481
  function stop() {
@@ -1578,7 +1578,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
1578
1578
  function subscribeChildTools() {
1579
1579
  let dispose;
1580
1580
  let cancelled = false;
1581
- void import("./runner-OVF73PTV.js").then(({ onChildTool }) => {
1581
+ void import("./runner-J2JMMQOS.js").then(({ onChildTool }) => {
1582
1582
  const off = onChildTool((report) => {
1583
1583
  if (report?.status !== "running" || report.jobId) return;
1584
1584
  recordChildTool(report.toolCallId ?? "", report.name);
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-4Y4SNSAQ.js";
10
10
  import {
11
11
  markLibraryDocument
12
- } from "./chunk-5K325M7N.js";
12
+ } from "./chunk-5BVLZJV4.js";
13
13
  import {
14
14
  listDocMetas,
15
15
  saveDocSnapshot
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-YGOP74RG.js";
21
21
  import {
22
22
  activeTeamWorkspaceId
23
- } from "./chunk-WMI4LAMI.js";
23
+ } from "./chunk-2UGTD7BZ.js";
24
24
  import {
25
25
  ApiError,
26
26
  GUEST_FILE_LIMIT,
@@ -14,14 +14,14 @@ import {
14
14
  newFileRefusal,
15
15
  reportNewFileBlocked,
16
16
  setCloudLink
17
- } from "./chunk-T6SX5F5A.js";
17
+ } from "./chunk-BX2ZTDYP.js";
18
18
  import {
19
19
  parseDeepLink,
20
20
  withDeepLink
21
21
  } from "./chunk-NR5UMNNJ.js";
22
22
  import {
23
23
  attachPresence
24
- } from "./chunk-VXZT6V7T.js";
24
+ } from "./chunk-IHH6HLU6.js";
25
25
  import {
26
26
  isPersistableDocument,
27
27
  isUnsavedPlaceholder,
@@ -32,7 +32,7 @@ import {
32
32
  setCollabHistory,
33
33
  storedDocument,
34
34
  useEditorStore
35
- } from "./chunk-5K325M7N.js";
35
+ } from "./chunk-5BVLZJV4.js";
36
36
  import {
37
37
  deleteDocFromLibrary,
38
38
  docExists,
@@ -48,7 +48,7 @@ import {
48
48
  } from "./chunk-YGOP74RG.js";
49
49
  import {
50
50
  activeTeamWorkspaceId
51
- } from "./chunk-WMI4LAMI.js";
51
+ } from "./chunk-2UGTD7BZ.js";
52
52
  import {
53
53
  ApiError,
54
54
  api,
@@ -25,10 +25,10 @@ import {
25
25
  requestImageAction,
26
26
  sizeForAspect,
27
27
  vectorSupport
28
- } from "./chunk-5WX3CYRC.js";
28
+ } from "./chunk-RQDDPOUN.js";
29
29
  import {
30
30
  useEditorStore
31
- } from "./chunk-5K325M7N.js";
31
+ } from "./chunk-5BVLZJV4.js";
32
32
  import {
33
33
  getActiveRenderer
34
34
  } from "./chunk-M7ZO6JZO.js";
@@ -20,20 +20,20 @@ import {
20
20
  } from "./chunk-3CIAMZQU.js";
21
21
  import {
22
22
  notice
23
- } from "./chunk-QD5G7OEY.js";
23
+ } from "./chunk-ETNAH7HP.js";
24
24
  import {
25
25
  agentContext
26
- } from "./chunk-3LW7CIIJ.js";
26
+ } from "./chunk-HYBVRIEE.js";
27
27
  import {
28
28
  collabSession,
29
29
  syncStatus
30
- } from "./chunk-ZYUJR5LK.js";
30
+ } from "./chunk-DZFKIDIQ.js";
31
31
  import {
32
32
  loadEntitlements
33
- } from "./chunk-T6SX5F5A.js";
33
+ } from "./chunk-BX2ZTDYP.js";
34
34
  import {
35
35
  useEditorStore
36
- } from "./chunk-5K325M7N.js";
36
+ } from "./chunk-5BVLZJV4.js";
37
37
  import {
38
38
  cloudApi
39
39
  } from "./chunk-CWMKY6WL.js";
@@ -59,19 +59,19 @@ async function renderDocument(doc, nodeIds, options) {
59
59
  function generateCapability(ctx) {
60
60
  return async (prompt, options = {}) => {
61
61
  if (options.format === "audio") {
62
- const { requestAudio } = await import("./client-JGKLMIDB.js");
62
+ const { requestAudio } = await import("./client-NDS3LDJL.js");
63
63
  const { signal: signal2, format: _f, ...rest2 } = options;
64
64
  void _f;
65
65
  return requestAudio({ prompt, ...rest2 }, signal2 ?? ctx.signal);
66
66
  }
67
67
  if (options.format === "video") {
68
- const { generateVideoFile } = await import("./generate-media-ISKBID4M.js");
68
+ const { generateVideoFile } = await import("./generate-media-NJ5PWGD6.js");
69
69
  const { format: _f, signal: signal2, ...rest2 } = options;
70
70
  void _f;
71
71
  return generateVideoFile({ ...rest2, prompt, doc: ctx.doc() }, { signal: signal2 ?? ctx.signal });
72
72
  }
73
73
  const [{ requestImage }, { effectiveImageModel, useAiStore }] = await Promise.all([
74
- import("./client-JGKLMIDB.js"),
74
+ import("./client-NDS3LDJL.js"),
75
75
  import("./client-store-G7WV5E5U.js")
76
76
  ]);
77
77
  const modelId = effectiveImageModel(useAiStore.getState());
@@ -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-5K325M7N.js";
9
+ } from "./chunk-5BVLZJV4.js";
10
10
  import {
11
11
  announce
12
12
  } from "./chunk-HGPB4FMY.js";
@@ -13,7 +13,7 @@ import {
13
13
  agentTool,
14
14
  agentToolList,
15
15
  registerCommands
16
- } from "./chunk-3LW7CIIJ.js";
16
+ } from "./chunk-HYBVRIEE.js";
17
17
  import {
18
18
  dispatch
19
19
  } from "./chunk-QN6INN46.js";
@@ -15,14 +15,14 @@ import {
15
15
  } from "./chunk-KCYC45N7.js";
16
16
  import {
17
17
  syncStatus
18
- } from "./chunk-ZYUJR5LK.js";
18
+ } from "./chunk-DZFKIDIQ.js";
19
19
  import {
20
20
  downloadBlob
21
21
  } from "./chunk-UDMI64MD.js";
22
22
  import {
23
23
  setPluginTabs,
24
24
  useEditorStore
25
- } from "./chunk-5K325M7N.js";
25
+ } from "./chunk-5BVLZJV4.js";
26
26
  import {
27
27
  TOKEN_IDS,
28
28
  tokenVar
@@ -54,7 +54,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
54
54
  // lib/plugins/api.ts
55
55
  init_define_POPCRAFT_COMPONENT_IDS();
56
56
  async function handlePluginCall(env, method, params = {}) {
57
- const { dispatchPluginCall } = await import("./plugin-7O3QOHMG.js");
57
+ const { dispatchPluginCall } = await import("./plugin-IUYUXXD2.js");
58
58
  return dispatchPluginCall(env, method, params);
59
59
  }
60
60
 
@@ -378,7 +378,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
378
378
  if (!opened) throw new Error("The browser blocked the new tab");
379
379
  },
380
380
  createDocument: async (opts2) => {
381
- const { createFreshFileOrExplain } = await import("./new-file-5CVQ43YM.js");
381
+ const { createFreshFileOrExplain } = await import("./new-file-FZJ6L5LK.js");
382
382
  const created = await createFreshFileOrExplain({}, { name: opts2?.name });
383
383
  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})`);
384
384
  await useEditorStore.getState().openDocument(created.docId);
@@ -538,7 +538,7 @@ if (typeof window !== "undefined") {
538
538
  const name = d.name || "Imported";
539
539
  void (async () => {
540
540
  try {
541
- const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-6P5YZO44.js");
541
+ const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-GHPGB2DA.js");
542
542
  if (d.ir && typeof d.ir === "object") {
543
543
  await applyPluginLayoutIr(d.ir, { mode, name });
544
544
  return;
@@ -8,7 +8,7 @@ import {
8
8
  needsSelection,
9
9
  pageGo,
10
10
  selectionIsPicture
11
- } from "./chunk-2YQDOXXX.js";
11
+ } from "./chunk-VYJLVR5L.js";
12
12
  import {
13
13
  external_exports
14
14
  } from "./chunk-ELRZOZAX.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-VG2QVDWY.js").then((m) => m.useEditorStore.getState());
34
+ var store = () => import("./editor-store-K7CBULWS.js").then((m) => m.useEditorStore.getState());
35
35
  var MODE_IDS = MODE_LIST.map((m) => m.id);
36
36
  var MODE_ALIASES = { JAM: "POPCORN" };
37
37
  var modeSet = defineCommand({
@@ -209,7 +209,7 @@ var aiOpen = defineCommand({
209
209
  ] } },
210
210
  run: async ({ dialog, skillId }) => {
211
211
  if (dialog) (await import("./client-store-G7WV5E5U.js")).openAiDialog(dialog);
212
- else (await import("./store-ZPKIGVAI.js")).openAgentPanel({ skillId: skillId ?? null });
212
+ else (await import("./store-7ORWNQ2X.js")).openAgentPanel({ skillId: skillId ?? null });
213
213
  return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
214
214
  }
215
215
  });
@@ -288,11 +288,11 @@ var toolPlace = defineCommand({
288
288
  run: async ({ what }) => {
289
289
  if (what === "media") {
290
290
  const s = await store();
291
- const { placeMediaFromPicker } = await import("./media-tool-JJFAHRI4.js");
291
+ const { placeMediaFromPicker } = await import("./media-tool-4Y74ZULN.js");
292
292
  await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
293
293
  return { summary: "Placing media" };
294
294
  }
295
- const { beginEyedrop } = await import("./eyedropper-7E5XLUEJ.js");
295
+ const { beginEyedrop } = await import("./eyedropper-DATTBVVO.js");
296
296
  void beginEyedrop();
297
297
  return { summary: "Pick a color" };
298
298
  }
@@ -310,7 +310,7 @@ var nodeRasterize = defineCommand({
310
310
  keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
311
311
  } },
312
312
  run: async () => {
313
- const { flattenSelectionToPaintLayer } = await import("./raster-actions-QBLODJIJ.js");
313
+ const { flattenSelectionToPaintLayer } = await import("./raster-actions-HUUDAAIV.js");
314
314
  await flattenSelectionToPaintLayer();
315
315
  return { summary: "Rasterized" };
316
316
  }
@@ -421,7 +421,7 @@ function pluginCommand(plugins) {
421
421
  params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
422
422
  expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
423
423
  run: async ({ pluginId, commandId }) => {
424
- await (await import("./host-D6MBNSVS.js")).runPlugin(pluginId, commandId);
424
+ await (await import("./host-SXS3LTRM.js")).runPlugin(pluginId, commandId);
425
425
  return { summary: "Plugin started" };
426
426
  }
427
427
  });
@@ -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-VG2QVDWY.js"),
94
+ import("./editor-store-K7CBULWS.js"),
95
95
  import("../lib/document/photo-frames.js"),
96
- import("./media-tool-JJFAHRI4.js")
96
+ import("./media-tool-4Y74ZULN.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);
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-ZLSMU7F7.js";
14
14
  import {
15
15
  activeHyperyTeamId
16
- } from "./chunk-WMI4LAMI.js";
16
+ } from "./chunk-2UGTD7BZ.js";
17
17
  import {
18
18
  accessToken
19
19
  } from "./chunk-MESSA3ID.js";
@@ -95,8 +95,6 @@ var AiClientError = class extends Error {
95
95
  this.code = code;
96
96
  this.status = status;
97
97
  }
98
- code;
99
- status;
100
98
  };
101
99
  var needsReauth = (e) => e instanceof AiClientError && (e.code === "ai_reauth" || e.code === "ai_scope" || e.code === "unauthenticated");
102
100
  function ensureAvailable() {