@popcraft/kit 1.2.1 → 1.2.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.
Files changed (72) hide show
  1. package/dist/chunks/{agent-5ZVVUKVL.js → agent-A7BOM22T.js} +1 -1
  2. package/dist/chunks/{builtin-ZWF5I77H.js → builtin-AOXFUXCD.js} +4 -4
  3. package/dist/chunks/{buy-credits-T7C577LV.js → buy-credits-EJCPC5V7.js} +2 -2
  4. package/dist/chunks/{check-template-MWOIYAGA.js → check-template-V5U2PC6J.js} +6 -6
  5. package/dist/chunks/{chunk-7PINHPNT.js → chunk-24ZYL3SN.js} +1 -1
  6. package/dist/chunks/{chunk-HOWSSUN7.js → chunk-33CFABZ2.js} +49 -49
  7. package/dist/chunks/{chunk-AMCNGXZF.js → chunk-3UBIOYSA.js} +9 -9
  8. package/dist/chunks/{chunk-FW3EG2VB.js → chunk-6S57YBJX.js} +1 -3
  9. package/dist/chunks/{chunk-4CGNSTLN.js → chunk-BOIBQ7MZ.js} +2 -2
  10. package/dist/chunks/{chunk-GZJHMFPW.js → chunk-C22ZRLC7.js} +7 -7
  11. package/dist/chunks/{chunk-BBBKLNSW.js → chunk-DWEPCHQV.js} +11 -11
  12. package/dist/chunks/{chunk-Z53B7NL7.js → chunk-F7TJGTY6.js} +2 -2
  13. package/dist/chunks/{chunk-WP272KYV.js → chunk-FIJDYPTN.js} +1 -1
  14. package/dist/chunks/{chunk-SGBWEISH.js → chunk-HDSIM2CO.js} +2 -2
  15. package/dist/chunks/{chunk-TXEKFUEK.js → chunk-KA2MGAQJ.js} +4 -4
  16. package/dist/chunks/{chunk-FRDEKTX2.js → chunk-KSNXRXZE.js} +1 -1
  17. package/dist/chunks/{chunk-DVJ3JIXV.js → chunk-KVPGK3AI.js} +1 -1
  18. package/dist/chunks/{chunk-NAZQXDXX.js → chunk-M5ETLHVZ.js} +2 -2
  19. package/dist/chunks/{chunk-TEDUOEHA.js → chunk-NPUNFQF3.js} +6 -6
  20. package/dist/chunks/{chunk-MEHR2GJ4.js → chunk-OACNFDDE.js} +5 -0
  21. package/dist/chunks/{chunk-HW6KW3X3.js → chunk-OV2W3YJU.js} +5 -5
  22. package/dist/chunks/{chunk-NLXZIY6X.js → chunk-RUTPUYED.js} +7 -5
  23. package/dist/chunks/{chunk-D266WUDD.js → chunk-S3LCCBYA.js} +5 -5
  24. package/dist/chunks/{chunk-6LCVEEGJ.js → chunk-SRY4ZWCH.js} +3 -3
  25. package/dist/chunks/{chunk-NRPLKJWD.js → chunk-TJGTNEYL.js} +2 -2
  26. package/dist/chunks/{chunk-47BCHVLO.js → chunk-TPLD3ZO5.js} +1 -1
  27. package/dist/chunks/{chunk-RPKBOARY.js → chunk-VUNR4TA5.js} +2 -2
  28. package/dist/chunks/{chunk-IKGV64X7.js → chunk-VV7HKDNH.js} +4 -4
  29. package/dist/chunks/{chunk-LZJRXAUA.js → chunk-WIQJ4QRA.js} +2 -2
  30. package/dist/chunks/{chunk-URH563AK.js → chunk-X4B7SE3J.js} +1 -1
  31. package/dist/chunks/{client-N5HTFSII.js → client-ATCRQ4Z2.js} +2 -2
  32. package/dist/chunks/{client-72ZFWAFV.js → client-FKUY77S6.js} +1 -1
  33. package/dist/chunks/{client-QV5XYYCT.js → client-LD6UEIKF.js} +3 -3
  34. package/dist/chunks/{client-actions-3X7PCEC6.js → client-actions-5ZFSAP4E.js} +5 -5
  35. package/dist/chunks/{components-XPBO2ZM5.js → components-JJJ6NOV7.js} +3 -3
  36. package/dist/chunks/{dangerous-LD5YGW2I.js → dangerous-C7S2EUYQ.js} +4 -4
  37. package/dist/chunks/{delete-current-file-DBXJ3X5W.js → delete-current-file-BV4SUOBR.js} +5 -5
  38. package/dist/chunks/{editor-seams-TOAYXI2M.js → editor-seams-Y5E3HJSY.js} +13 -13
  39. package/dist/chunks/{editor-store-LZFNEHYB.js → editor-store-JQA3IFQ4.js} +1 -1
  40. package/dist/chunks/{export-watermark-M3URLKD7.js → export-watermark-YUXHSEHB.js} +5 -5
  41. package/dist/chunks/{eyedropper-4DFRX5AG.js → eyedropper-OTQO5UFY.js} +1 -1
  42. package/dist/chunks/{generate-media-APYNWFHP.js → generate-media-4YZWLMG5.js} +3 -3
  43. package/dist/chunks/{host-HE3UQKE3.js → host-JSYAWYNV.js} +4 -4
  44. package/dist/chunks/{host-KJT6LWVX.js → host-SV2ZGKB3.js} +6 -6
  45. package/dist/chunks/{integrations-SGZBIQUU.js → integrations-2J5ACHB3.js} +1 -1
  46. package/dist/chunks/{libraries-7AF3R3GJ.js → libraries-5WFWU4EA.js} +5 -5
  47. package/dist/chunks/{live-K2YZRNKK.js → live-7CTGJ4VD.js} +1 -1
  48. package/dist/chunks/{media-tool-VBUUZZIH.js → media-tool-IHV3MK22.js} +1 -1
  49. package/dist/chunks/{new-file-QSMLBVRU.js → new-file-Z5VURBEJ.js} +3 -3
  50. package/dist/chunks/{next-commerce-V2QELI45.js → next-commerce-BAVLRG73.js} +5 -5
  51. package/dist/chunks/{plugin-WKKOD3IW.js → plugin-MTBJ57I6.js} +3 -3
  52. package/dist/chunks/{plugin-import-GALNL6SB.js → plugin-import-OW37E42K.js} +17 -17
  53. package/dist/chunks/{presence-MSRD4SIK.js → presence-AGLEN24G.js} +2 -2
  54. package/dist/chunks/{project-JTHWH3VF.js → project-D3353YKF.js} +5 -5
  55. package/dist/chunks/{publish-site-25MGB4QH.js → publish-site-ATYXDIV6.js} +6 -6
  56. package/dist/chunks/{publish-store-2JZEJLSB.js → publish-store-3LC6WJ4I.js} +7 -7
  57. package/dist/chunks/{raster-actions-2LTYHHOZ.js → raster-actions-IKOFMSP3.js} +1 -1
  58. package/dist/chunks/{runner-6GHGTHVR.js → runner-66VO3EOK.js} +19 -19
  59. package/dist/chunks/{store-BEDJRBIQ.js → store-VLXBAKCI.js} +6 -6
  60. package/dist/chunks/{storefront-QQTNLF3Q.js → storefront-6LO77DYV.js} +6 -6
  61. package/dist/chunks/{storefront-prepare-QARBKWYY.js → storefront-prepare-DN64DLCR.js} +2 -2
  62. package/dist/chunks/{sync-A2YT72KR.js → sync-E2ZSQO7W.js} +5 -5
  63. package/dist/chunks/{tabs-JICBGZ27.js → tabs-UF4G2SFX.js} +8 -8
  64. package/dist/chunks/{team-6ZMFTJZK.js → team-ZEB7U5XZ.js} +1 -1
  65. package/dist/chunks/{team-client-TFMDDV25.js → team-client-GFSAI3BD.js} +1 -1
  66. package/dist/chunks/{tools-5AQKFJ2D.js → tools-AJX5HK2L.js} +2 -2
  67. package/dist/chunks/{tree-5DKDQLDR.js → tree-3MXMJZ2P.js} +1 -1
  68. package/dist/chunks/{ui-commands-YL4Q5VWA.js → ui-commands-IO47EC2X.js} +13 -13
  69. package/dist/chunks/{versions-WFHFBJP2.js → versions-QBEREZYR.js} +5 -5
  70. package/dist/chunks/{web-BQWY6BIF.js → web-22TCUPNQ.js} +4 -4
  71. package/dist/index.js +1 -1
  72. package/package.json +1 -1
@@ -18,7 +18,7 @@ import {
18
18
  renderDocument,
19
19
  toolView,
20
20
  underReviewKit
21
- } from "./chunk-6LCVEEGJ.js";
21
+ } from "./chunk-SRY4ZWCH.js";
22
22
  import "./chunk-CYD3CB7J.js";
23
23
  import "./chunk-NFKRHEFS.js";
24
24
  import "./chunk-QQQD6VX7.js";
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinTools,
9
9
  registerBuiltinTools
10
- } from "./chunk-SGBWEISH.js";
11
- import "./chunk-HOWSSUN7.js";
10
+ } from "./chunk-HDSIM2CO.js";
11
+ import "./chunk-33CFABZ2.js";
12
12
  import "./chunk-YQA5IWOG.js";
13
13
  import "./chunk-VT2A3WIM.js";
14
14
  import "./chunk-L6RMNPUS.js";
@@ -18,9 +18,9 @@ import "./chunk-3FUAWRIT.js";
18
18
  import "./chunk-JEIJJB4H.js";
19
19
  import "./chunk-ZEJGI7M6.js";
20
20
  import "./chunk-R5K2B3R3.js";
21
- import "./chunk-6LCVEEGJ.js";
21
+ import "./chunk-SRY4ZWCH.js";
22
22
  import "./chunk-CYD3CB7J.js";
23
- import "./chunk-MEHR2GJ4.js";
23
+ import "./chunk-OACNFDDE.js";
24
24
  import "./chunk-OZFBHGKA.js";
25
25
  import "./chunk-V66O2FNK.js";
26
26
  import "./chunk-V7VBVZKR.js";
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  HYPERY_TEAM_HEADER,
9
9
  hyperyRequestHeaders
10
- } from "./chunk-7PINHPNT.js";
10
+ } from "./chunk-24ZYL3SN.js";
11
11
  import "./chunk-QH6PUSXO.js";
12
12
  import {
13
13
  useHyperyTeam
14
- } from "./chunk-FRDEKTX2.js";
14
+ } from "./chunk-KSNXRXZE.js";
15
15
  import {
16
16
  ApiError
17
17
  } from "./chunk-CMPXWCFB.js";
@@ -6,27 +6,27 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  appCommands
9
- } from "./chunk-AMCNGXZF.js";
9
+ } from "./chunk-3UBIOYSA.js";
10
10
  import {
11
11
  builtinCommands
12
- } from "./chunk-HOWSSUN7.js";
12
+ } from "./chunk-33CFABZ2.js";
13
13
  import "./chunk-YQA5IWOG.js";
14
14
  import "./chunk-VT2A3WIM.js";
15
15
  import "./chunk-L6RMNPUS.js";
16
16
  import "./chunk-NNXEZKK3.js";
17
17
  import "./chunk-4IUHCC33.js";
18
- import "./chunk-NLXZIY6X.js";
18
+ import "./chunk-RUTPUYED.js";
19
19
  import "./chunk-3FUAWRIT.js";
20
- import "./chunk-NRPLKJWD.js";
20
+ import "./chunk-TJGTNEYL.js";
21
21
  import {
22
22
  buildWebSite
23
- } from "./chunk-DVJ3JIXV.js";
23
+ } from "./chunk-KVPGK3AI.js";
24
24
  import "./chunk-JEIJJB4H.js";
25
25
  import "./chunk-77HTR7QU.js";
26
26
  import "./chunk-ZEJGI7M6.js";
27
27
  import "./chunk-R5K2B3R3.js";
28
28
  import "./chunk-CYD3CB7J.js";
29
- import "./chunk-MEHR2GJ4.js";
29
+ import "./chunk-OACNFDDE.js";
30
30
  import "./chunk-OZFBHGKA.js";
31
31
  import "./chunk-V66O2FNK.js";
32
32
  import "./chunk-V7VBVZKR.js";
@@ -11,7 +11,7 @@ import {
11
11
  activeHyperyTeamId,
12
12
  activeTeamWorkspaceId,
13
13
  useHyperyTeam
14
- } from "./chunk-FRDEKTX2.js";
14
+ } from "./chunk-KSNXRXZE.js";
15
15
  import {
16
16
  inAppPurchases
17
17
  } from "./chunk-H3B6PDES.js";
@@ -47,7 +47,7 @@ import {
47
47
  import {
48
48
  EXPORT_NODE_CAP,
49
49
  cleanName
50
- } from "./chunk-MEHR2GJ4.js";
50
+ } from "./chunk-OACNFDDE.js";
51
51
  import {
52
52
  MAX_PHOTO_PAGE,
53
53
  MAX_PHOTO_QUERY,
@@ -951,7 +951,7 @@ init_scene_graph();
951
951
  var licence = external_exports.enum(["commercial", "any"]).optional().describe("commercial (default): only licences that allow commercial use and edits (CC0, public domain, CC BY, CC BY-SA). any: every Creative Commons licence, including NC and ND.");
952
952
  var brief2 = (p) => ({ id: p.id, title: p.title, creator: p.credit.creator, licence: licenceLabel(p.credit), width: p.width, height: p.height, source: p.credit.sourceUrl });
953
953
  async function placeImportedPicture(ctx, imported, at2, what, extra = {}) {
954
- const client = await import("./client-72ZFWAFV.js");
954
+ const client = await import("./client-FKUY77S6.js");
955
955
  if (at2.fillLayerId) {
956
956
  const doc2 = ctx.doc();
957
957
  const target = nodeOrThrow(doc2, at2.fillLayerId);
@@ -997,7 +997,7 @@ var photoSearch = defineCommand({
997
997
  }
998
998
  },
999
999
  run: async (args) => {
1000
- const { searchStockPhotos } = await import("./client-72ZFWAFV.js");
1000
+ const { searchStockPhotos } = await import("./client-FKUY77S6.js");
1001
1001
  const page = await searchStockPhotos(args.query, args.page ?? 1, { licence: args.licence });
1002
1002
  return {
1003
1003
  summary: `${page.results.length} photo${page.results.length === 1 ? "" : "s"} for \u201C${page.query}\u201D (page ${page.page} of ${page.pageCount || 1})`,
@@ -1031,7 +1031,7 @@ var photoInsert = defineCommand({
1031
1031
  run: async (args, ctx) => {
1032
1032
  if (!args.id && !args.query) throw new ToolError("Pass an id from search_photos, or a query.");
1033
1033
  if (args.id && !isPhotoId(args.id)) throw new ToolError(`"${args.id}" is not a photo id from search_photos.`);
1034
- const client = await import("./client-72ZFWAFV.js");
1034
+ const client = await import("./client-FKUY77S6.js");
1035
1035
  let photo;
1036
1036
  if (args.id) photo = await client.stockPhotoInfo(args.id);
1037
1037
  else {
@@ -1069,10 +1069,10 @@ var mediaList = defineCommand({
1069
1069
  }
1070
1070
  },
1071
1071
  run: async (args) => {
1072
- const { listLibraryMedia } = await import("./client-N5HTFSII.js");
1072
+ const { listLibraryMedia } = await import("./client-ATCRQ4Z2.js");
1073
1073
  const q = { ...args };
1074
1074
  if (!q.workspace) {
1075
- const { syncStatus } = await import("./sync-A2YT72KR.js");
1075
+ const { syncStatus } = await import("./sync-E2ZSQO7W.js");
1076
1076
  const link2 = syncStatus().link;
1077
1077
  if (!link2) throw new ToolError("This document is not saved to the cloud, so it has no team media library. Pass workspace.");
1078
1078
  q.workspace = (await listLibraryMedia({ file: link2.key, limit: 1 })).workspaceId;
@@ -1107,7 +1107,7 @@ var mediaInsert = defineCommand({
1107
1107
  run: async (args, ctx) => {
1108
1108
  const contentType = args.contentType ?? "image/*";
1109
1109
  if (!contentType.startsWith("image/")) throw new ToolError("insert_media places pictures; this item is not one.");
1110
- const { importLibraryPicture } = await import("./client-N5HTFSII.js");
1110
+ const { importLibraryPicture } = await import("./client-ATCRQ4Z2.js");
1111
1111
  const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "Media", contentType, size: 0, createdAt: "", fileCount: 1, source: null };
1112
1112
  const imported = await importLibraryPicture(item);
1113
1113
  return placeImportedPicture(ctx, imported, args, `\u201C${imported.name}\u201D`, { hash: imported.hash });
@@ -1128,7 +1128,7 @@ var mediaDownload = defineCommand({
1128
1128
  // The Library's right-click menu: saves the item's file to the computer.
1129
1129
  expose: { ui: { label: "Download", palette: false } },
1130
1130
  run: async (args) => {
1131
- const { libraryBlob, libraryFileName } = await import("./client-N5HTFSII.js");
1131
+ const { libraryBlob, libraryFileName } = await import("./client-ATCRQ4Z2.js");
1132
1132
  const { downloadBlob } = await import("./download-CT4TQCRP.js");
1133
1133
  const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "media", contentType: args.contentType ?? "", size: 0, createdAt: "", fileCount: 1, source: null };
1134
1134
  const blob = await libraryBlob(item);
@@ -1159,7 +1159,7 @@ var mediaDelete = defineCommand({
1159
1159
  }
1160
1160
  },
1161
1161
  run: async (args) => {
1162
- const { deleteLibraryMedia } = await import("./client-N5HTFSII.js");
1162
+ const { deleteLibraryMedia } = await import("./client-ATCRQ4Z2.js");
1163
1163
  const out = await deleteLibraryMedia(args.workspace, args.hash);
1164
1164
  return { summary: `Deleted it from the library (it was in ${out.files} file${out.files === 1 ? "" : "s"})`, data: out };
1165
1165
  }
@@ -1173,13 +1173,13 @@ async function signedIn() {
1173
1173
  }
1174
1174
  async function publishedFile() {
1175
1175
  await signedIn();
1176
- const { openFileKey } = await import("./publish-site-25MGB4QH.js");
1176
+ const { openFileKey } = await import("./publish-site-ATYXDIV6.js");
1177
1177
  const key = openFileKey();
1178
1178
  if (!key) throw new CommandError("This file is not saved to the cloud yet, so it has no site. Publish it first.", "failed");
1179
1179
  return key;
1180
1180
  }
1181
1181
  async function formsWithoutDatabase(key) {
1182
- const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-LZFNEHYB.js"), import("./backend-FK5YT66V.js"), import("./integrations-SGZBIQUU.js")]);
1182
+ const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-JQA3IFQ4.js"), import("./backend-FK5YT66V.js"), import("./integrations-2J5ACHB3.js")]);
1183
1183
  const doc2 = useEditorStore.getState().document;
1184
1184
  if (!usesForms(doc2)) return false;
1185
1185
  return formsGoNowhere(doc2, await siteBackend(key).catch(() => void 0));
@@ -1215,7 +1215,7 @@ var publishSite = defineCommand({
1215
1215
  const { cleanSlug } = await import("./rules-YA6ENCS7.js");
1216
1216
  const address = p.address === void 0 ? void 0 : cleanSlug(p.address);
1217
1217
  if (address === null) throw new CommandError("That cannot be a site address: use 3 to 40 letters, digits and dashes.", "invalid_params");
1218
- const { publishOpenFile, NoScreens } = await import("./publish-site-25MGB4QH.js");
1218
+ const { publishOpenFile, NoScreens } = await import("./publish-site-ATYXDIV6.js");
1219
1219
  try {
1220
1220
  const done = await publishOpenFile(address);
1221
1221
  ctx.notice(`Published version ${done.version}: ${done.url}`);
@@ -1270,7 +1270,7 @@ var publishListSites = defineCommand({
1270
1270
  },
1271
1271
  run: async (p) => {
1272
1272
  await signedIn();
1273
- const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-GKYHBZ5E.js"), import("./team-6ZMFTJZK.js")]);
1273
+ const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-GKYHBZ5E.js"), import("./team-ZEB7U5XZ.js")]);
1274
1274
  const workspaceId = p.workspaceId ?? activeTeamWorkspaceId() ?? useHyperyTeam.getState().personalWorkspaceId;
1275
1275
  if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
1276
1276
  const out = await workspaceSites(workspaceId);
@@ -1319,12 +1319,12 @@ var publishStatus = defineCommand({
1319
1319
  },
1320
1320
  run: async () => {
1321
1321
  await signedIn();
1322
- const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-25MGB4QH.js"), import("./sites-GKYHBZ5E.js")]);
1322
+ const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-ATYXDIV6.js"), import("./sites-GKYHBZ5E.js")]);
1323
1323
  const key = openFileKey();
1324
1324
  const status = await siteStatus(key);
1325
1325
  const site = status.site;
1326
- const backend = key ? await (await import("./integrations-SGZBIQUU.js")).siteBackend(key).catch(() => null) : null;
1327
- const destinations = key ? await (await import("./integrations-SGZBIQUU.js")).listDestinations(key).catch(() => []) : [];
1326
+ const backend = key ? await (await import("./integrations-2J5ACHB3.js")).siteBackend(key).catch(() => null) : null;
1327
+ const destinations = key ? await (await import("./integrations-2J5ACHB3.js")).listDestinations(key).catch(() => []) : [];
1328
1328
  return {
1329
1329
  summary: !status.configured ? "This server does not publish websites" : !site ? "Not published yet" : site.currentVersion === null ? `Offline (${site.versions.length} versions kept) \u2014 ${site.url}` : `Version ${site.currentVersion} is online at ${site.url}`,
1330
1330
  data: { ...statusData(status), database: backend?.database ? { provider: backend.database.connection.provider, account: backend.database.connection.account, target: backend.database.target.map((t) => t.name), visitorsCanSignIn: backend.database.signIn } : null, destinations: destinations.map((d) => ({ destinationId: d.id, provider: d.connection.provider, account: d.connection.account, kind: d.capability, target: d.target.map((t) => t.name), lastSent: d.lastDeploy })) }
@@ -1355,7 +1355,7 @@ var publishStore = defineCommand({
1355
1355
  },
1356
1356
  run: async (p, ctx) => {
1357
1357
  await signedIn();
1358
- const { deployOpenStore } = await import("./publish-store-2JZEJLSB.js");
1358
+ const { deployOpenStore } = await import("./publish-store-3LC6WJ4I.js");
1359
1359
  const done = await deployOpenStore(ctx.doc(), ctx.pageId(), { destinationId: p.destinationId }).catch((e) => {
1360
1360
  throw new CommandError(e instanceof Error ? e.message : String(e), "failed");
1361
1361
  });
@@ -1384,7 +1384,7 @@ var integrationList = defineCommand({
1384
1384
  }
1385
1385
  },
1386
1386
  run: async ({ capability }) => {
1387
- const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-L4GMC36Z.js"), import("./integrations-SGZBIQUU.js")]);
1387
+ const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-L4GMC36Z.js"), import("./integrations-2J5ACHB3.js")]);
1388
1388
  if (!cloudUser()) throw new CommandError("You are not signed in: integrations belong to your account's workspace.", "denied");
1389
1389
  const workspaceId = integrationsWorkspaceId();
1390
1390
  if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
@@ -1425,7 +1425,7 @@ var integrationOpen = defineCommand({
1425
1425
  }
1426
1426
  });
1427
1427
  async function openFile() {
1428
- const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-L4GMC36Z.js"), import("./publish-site-25MGB4QH.js")]);
1428
+ const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-L4GMC36Z.js"), import("./publish-site-ATYXDIV6.js")]);
1429
1429
  if (!cloudUser()) throw new CommandError("You are not signed in.", "denied");
1430
1430
  const key = openFileKey();
1431
1431
  if (!key) throw new CommandError("This file is not saved to the cloud yet. Publish it first (publish_site).", "failed");
@@ -1451,7 +1451,7 @@ var integrationListResources = defineCommand({
1451
1451
  }
1452
1452
  },
1453
1453
  run: async ({ connectionId, capability, path }) => {
1454
- const { listResources } = await import("./integrations-SGZBIQUU.js");
1454
+ const { listResources } = await import("./integrations-2J5ACHB3.js");
1455
1455
  const list = await listResources(connectionId, capability, asPath2(path));
1456
1456
  return {
1457
1457
  summary: list.level ? `${list.resources.length} at the ${list.level.label.toLowerCase()} level${list.canCreate ? " (a new one can be made)" : ""}` : "Nothing further to pick: the path is complete",
@@ -1486,7 +1486,7 @@ var integrationAddDestination = defineCommand({
1486
1486
  },
1487
1487
  run: async (p, ctx) => {
1488
1488
  const key = await openFile();
1489
- const { addDestination, createDestination, createResource } = await import("./integrations-SGZBIQUU.js");
1489
+ const { addDestination, createDestination, createResource } = await import("./integrations-2J5ACHB3.js");
1490
1490
  let made;
1491
1491
  if (p.create) made = await createDestination(key, p.capability, void 0, p.connectionId);
1492
1492
  else {
@@ -1523,7 +1523,7 @@ var integrationDeploy = defineCommand({
1523
1523
  },
1524
1524
  run: async (p, ctx) => {
1525
1525
  const key = await openFile();
1526
- const { deployDestination, listDestinations } = await import("./integrations-SGZBIQUU.js");
1526
+ const { deployDestination, listDestinations } = await import("./integrations-2J5ACHB3.js");
1527
1527
  const all = await listDestinations(key);
1528
1528
  const dest = p.destinationId ? all.find((d) => d.id === p.destinationId) : all.length === 1 ? all[0] : void 0;
1529
1529
  if (!dest) throw new CommandError(all.length ? `Say which destination: ${all.map((d) => `${d.id} (${d.target.map((t) => t.name).join(" / ")})`).join(", ")}.` : "This file has no destination yet. Add one first (add_site_destination).", "invalid_params");
@@ -1557,7 +1557,7 @@ var integrationAttachDatabase = defineCommand({
1557
1557
  },
1558
1558
  run: async (p, ctx) => {
1559
1559
  const key = await openFile();
1560
- const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-SGZBIQUU.js");
1560
+ const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-2J5ACHB3.js");
1561
1561
  if (p.create) return attached(await createDatabase(key, void 0, p.connectionId), ctx);
1562
1562
  if (!p.connectionId || !p.target) throw new CommandError("Say connectionId and target, or create: true.", "invalid_params");
1563
1563
  let target = asPath2(p.target);
@@ -1596,7 +1596,7 @@ var integrationSubmissions = defineCommand({
1596
1596
  },
1597
1597
  run: async ({ form, limit }) => {
1598
1598
  const key = await openFile();
1599
- const { listSubmissions } = await import("./integrations-SGZBIQUU.js");
1599
+ const { listSubmissions } = await import("./integrations-2J5ACHB3.js");
1600
1600
  const rows = await listSubmissions(key, { form, limit: limit ?? 20 });
1601
1601
  return { summary: rows.length ? `${rows.length} ${rows.length === 1 ? "submission" : "submissions"}, the newest ${new Date(rows[0].createdAt).toISOString()}` : "Nothing has been sent yet", data: { submissions: rows } };
1602
1602
  }
@@ -1621,7 +1621,7 @@ var integrationSetSignIn = defineCommand({
1621
1621
  },
1622
1622
  run: async ({ on }, ctx) => {
1623
1623
  const key = await openFile();
1624
- const { setSignIn } = await import("./integrations-SGZBIQUU.js");
1624
+ const { setSignIn } = await import("./integrations-2J5ACHB3.js");
1625
1625
  const done = await setSignIn(key, on);
1626
1626
  ctx.notice(on ? "Visitors can sign in." : "Sign-in is off.");
1627
1627
  return { summary: on ? "Visitors can now create accounts and sign in on the published site" : "Sign-in is off for the published site", data: { signIn: !!done.database?.signIn } };
@@ -1839,7 +1839,7 @@ var fontTeamList = defineCommand({
1839
1839
  agent: { name: "list_team_fonts", readOnly: true, description: "The team's fonts: faces uploaded once that every file of the team can use (family, weight, style)." }
1840
1840
  },
1841
1841
  run: async (args) => {
1842
- const { refreshTeamFonts } = await import("./team-client-TFMDDV25.js");
1842
+ const { refreshTeamFonts } = await import("./team-client-GFSAI3BD.js");
1843
1843
  const fonts = await refreshTeamFonts(args.workspace);
1844
1844
  return { summary: plural(fonts.length, "team font"), data: { fonts: fonts.map((f) => ({ id: f.id, family: f.family, weight: f.weight, style: f.style, face: f.face, fileName: f.fileName })) } };
1845
1845
  }
@@ -1866,7 +1866,7 @@ var fontTeamAdd = defineCommand({
1866
1866
  run: async (args, ctx) => {
1867
1867
  const { bytes, fileName: fileName2 } = await fontBytes(args, ctx);
1868
1868
  const { face, family, weight, style } = await resolveFace(bytes, args);
1869
- const { uploadTeamFont } = await import("./team-client-TFMDDV25.js");
1869
+ const { uploadTeamFont } = await import("./team-client-GFSAI3BD.js");
1870
1870
  const font = await uploadTeamFont(bytes, { family, weight, style, face: face.index, fileName: fileName2 }, args.workspace);
1871
1871
  return { summary: `Added ${family} ${weight}${style === "italic" ? " italic" : ""} to the team`, data: { font } };
1872
1872
  }
@@ -1888,7 +1888,7 @@ var fontTeamRemove = defineCommand({
1888
1888
  agent: { name: "remove_team_font", description: "Remove a font from the team (list_team_fonts). Files that use it fall back to another font unless they carry it themselves. The user approves every call." }
1889
1889
  },
1890
1890
  run: async (args) => {
1891
- const { removeTeamFont } = await import("./team-client-TFMDDV25.js");
1891
+ const { removeTeamFont } = await import("./team-client-GFSAI3BD.js");
1892
1892
  const out = await removeTeamFont(args.id, args.workspace);
1893
1893
  return { summary: `Removed the team font${out.freed ? " and freed its storage" : ""}`, data: out };
1894
1894
  }
@@ -1899,7 +1899,7 @@ var fontTeamCommands = [fontTeamList, fontTeamAdd];
1899
1899
  init_define_POPCRAFT_COMPONENT_IDS();
1900
1900
  async function cloudFile() {
1901
1901
  const [{ syncStatus }, { cloudUser }] = await Promise.all([
1902
- import("./sync-A2YT72KR.js"),
1902
+ import("./sync-E2ZSQO7W.js"),
1903
1903
  import("./session-L4GMC36Z.js")
1904
1904
  ]);
1905
1905
  const link2 = syncStatus().link;
@@ -1961,7 +1961,7 @@ var fileTrash = defineCommand({
1961
1961
  agent: { name: "trash_file", description: "Delete the open file: a cloud file goes to the Trash (restorable), a signed-out local file is deleted for good. Then the editor goes back to Home. The user approves every call." }
1962
1962
  },
1963
1963
  run: async () => {
1964
- const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-DBXJ3X5W.js");
1964
+ const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-BV4SUOBR.js");
1965
1965
  const { name: name2, kind } = await deleteCurrentFile();
1966
1966
  leaveDeletedFile();
1967
1967
  return { summary: kind === "cloud" ? `Moved \u201C${name2}\u201D to the Trash` : `Deleted \u201C${name2}\u201D` };
@@ -2074,11 +2074,11 @@ var fileDuplicate = defineCommand({
2074
2074
  },
2075
2075
  run: async (_p, ctx) => {
2076
2076
  const [{ syncStatus }, { cloudApi }, { isDesktopTabs }, { createFileInTab }, { openNewCloudFile }, { v4: uuid }] = await Promise.all([
2077
- import("./sync-A2YT72KR.js"),
2077
+ import("./sync-E2ZSQO7W.js"),
2078
2078
  import("./api-O4V5ICO5.js"),
2079
2079
  import("./tab-mode-ELW74CVC.js"),
2080
- import("./tabs-JICBGZ27.js"),
2081
- import("./sync-A2YT72KR.js"),
2080
+ import("./tabs-UF4G2SFX.js"),
2081
+ import("./sync-E2ZSQO7W.js"),
2082
2082
  import("./dist-node-EF3J2YOD.js")
2083
2083
  ]);
2084
2084
  const doc2 = ctx.doc();
@@ -4955,7 +4955,7 @@ var viewCopyLink = defineCommand({
4955
4955
  },
4956
4956
  run: async (args, ctx) => {
4957
4957
  const [{ syncStatus }, { fileUrl }, { withDeepLink }] = await Promise.all([
4958
- import("./sync-A2YT72KR.js"),
4958
+ import("./sync-E2ZSQO7W.js"),
4959
4959
  import("./api-O4V5ICO5.js"),
4960
4960
  import("./deep-link-U333HG7D.js")
4961
4961
  ]);
@@ -5280,7 +5280,7 @@ var pageGo = defineCommand({
5280
5280
  ] }
5281
5281
  },
5282
5282
  run: async ({ to }) => {
5283
- const { useEditorStore } = await import("./editor-store-LZFNEHYB.js");
5283
+ const { useEditorStore } = await import("./editor-store-JQA3IFQ4.js");
5284
5284
  useEditorStore.getState().goToPrintPage(to);
5285
5285
  return { summary: typeof to === "number" ? `Page ${to + 1}` : `${to} page` };
5286
5286
  }
@@ -5314,7 +5314,7 @@ var pageSetup = defineCommand({
5314
5314
  }
5315
5315
  },
5316
5316
  run: async (args) => {
5317
- const { useEditorStore } = await import("./editor-store-LZFNEHYB.js");
5317
+ const { useEditorStore } = await import("./editor-store-JQA3IFQ4.js");
5318
5318
  useEditorStore.getState().applyPageSetup(args);
5319
5319
  return { summary: `Page setup updated${args.kind ? ` (${args.kind.toLowerCase()})` : ""}` };
5320
5320
  }
@@ -5752,7 +5752,7 @@ async function docAtTime(doc2, ids, time2) {
5752
5752
  let frameId;
5753
5753
  if (time2 === void 0) {
5754
5754
  try {
5755
- const { useEditorStore } = await import("./editor-store-LZFNEHYB.js");
5755
+ const { useEditorStore } = await import("./editor-store-JQA3IFQ4.js");
5756
5756
  const st = useEditorStore.getState();
5757
5757
  const target = st.transport?.target;
5758
5758
  if (st.mode !== "ANIMATE" || target?.kind !== "frame") return doc2;
@@ -6146,7 +6146,7 @@ async function runAnimationExport(format, args, ctx) {
6146
6146
  const filename = exportFileName(args.filename || targetName(doc2, target), format);
6147
6147
  const [{ exportAnimation }, { memoryDestination }] = await Promise.all([import("./video-DJRU4XPS.js"), import("./destination-NMHWTSBJ.js")]);
6148
6148
  if (format === "lottie" || format === "dotlottie") return runLottieExport(renderer, doc2, spec, filename, ctx, memoryDestination, args.stateMachine);
6149
- const planWatermark = format !== "png" && await (await import("./export-watermark-M3URLKD7.js")).exportWatermark();
6149
+ const planWatermark = format !== "png" && await (await import("./export-watermark-YUXHSEHB.js")).exportWatermark();
6150
6150
  if (format !== "png") spec = { ...spec, watermark: planWatermark || args.watermark !== false };
6151
6151
  const dest = ctx.destination ? await ctx.destination(filename, FORMAT_MIME[format]) : memoryDestination(filename, FORMAT_MIME[format]);
6152
6152
  let stats;
@@ -6232,8 +6232,8 @@ var exportLottie = animationCommand((args) => args.container === "lottie" ? "dot
6232
6232
  });
6233
6233
  async function exportSite(doc2, pageId2, packaging, styling = "css", siteUrl) {
6234
6234
  const [{ completeSite, nextFilesOf, nextProjectDropped, shareImageFiles, staticFilesOf, NoSiteRuntime, bytesOf }, { fileBase }, { zipFiles }, { downloadBlob }] = await Promise.all([
6235
- import("./project-JTHWH3VF.js"),
6236
- import("./web-BQWY6BIF.js"),
6235
+ import("./project-D3353YKF.js"),
6236
+ import("./web-22TCUPNQ.js"),
6237
6237
  import("./zip-export-TZA7FPVI.js"),
6238
6238
  import("./download-CT4TQCRP.js")
6239
6239
  ]);
@@ -6276,7 +6276,7 @@ var exportWeb = reportsMissingFonts(defineCommand({
6276
6276
  const id = args.id ?? ctx.selection()[0] ?? doc2.nodes[ctx.pageId()]?.childIds?.[0];
6277
6277
  const node = id ? doc2.nodes[id] : void 0;
6278
6278
  if (!node) throw new ToolError("Select a frame or layer to export.");
6279
- const { webTreeFor, extensionFor, externalAssets, fileBase, resolveWebAssets, serializeWithReport, flatten } = await import("./web-BQWY6BIF.js");
6279
+ const { webTreeFor, extensionFor, externalAssets, fileBase, resolveWebAssets, serializeWithReport, flatten } = await import("./web-22TCUPNQ.js");
6280
6280
  const { rendererAssetResolvers } = await import("./resolvers-YI7NB6LM.js");
6281
6281
  const { downloadBlob } = await import("./download-CT4TQCRP.js");
6282
6282
  const tree = webTreeFor(doc2, node.id, lang, { nodeCap: EXPORT_NODE_CAP, fullImageUrls: true });
@@ -6326,17 +6326,17 @@ var exportStorefront = defineCommand({
6326
6326
  run: async (args, ctx) => {
6327
6327
  const doc2 = ctx.doc();
6328
6328
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { fileBase, flatten }, { zipFiles }, { downloadBlob }] = await Promise.all([
6329
- import("./storefront-prepare-QARBKWYY.js"),
6330
- import("./storefront-QQTNLF3Q.js"),
6331
- import("./project-JTHWH3VF.js"),
6332
- import("./web-BQWY6BIF.js"),
6329
+ import("./storefront-prepare-DN64DLCR.js"),
6330
+ import("./storefront-6LO77DYV.js"),
6331
+ import("./project-D3353YKF.js"),
6332
+ import("./web-22TCUPNQ.js"),
6333
6333
  import("./zip-export-TZA7FPVI.js"),
6334
6334
  import("./download-CT4TQCRP.js")
6335
6335
  ]);
6336
6336
  const target = STOREFRONT_TARGETS[args.target];
6337
6337
  const { screens, media } = await storefrontInputs(doc2, ctx.pageId(), EXPORT_NODE_CAP);
6338
6338
  if (!screens.length) throw new ToolError("This page has no screens: a top-level frame is a page of the store.");
6339
- const files = args.target === "next-commerce" && args.dir ? (await import("./components-XPBO2ZM5.js")).componentFiles(doc2, screens, { styling: args.styling, dir: args.dir, media }) : target.files(doc2, screens, { media, styling: args.styling });
6339
+ const files = args.target === "next-commerce" && args.dir ? (await import("./components-JJJ6NOV7.js")).componentFiles(doc2, screens, { styling: args.styling, dir: args.dir, media }) : target.files(doc2, screens, { media, styling: args.styling });
6340
6340
  const base = `${fileBase(doc2.name)}-${args.target}`;
6341
6341
  downloadBlob(zipFiles(files.map((f) => ({ name: f.path, bytes: bytesOf(f) }))), `${base}.zip`);
6342
6342
  const bound = screens.filter((s) => s.about || flatten(s.tree.root).some((n) => n.repeat && doc2.collections?.[n.repeat.collectionId]?.schema)).length;
@@ -6723,7 +6723,7 @@ var visionRegenerateImage = defineCommand({
6723
6723
  const id = args.id ?? ctx.selection()[0];
6724
6724
  if (!id) throw new ToolError("Select a generated image to regenerate.");
6725
6725
  nodeOrThrow(ctx.doc(), id);
6726
- const { regenerateImage } = await import("./client-actions-3X7PCEC6.js");
6726
+ const { regenerateImage } = await import("./client-actions-5ZFSAP4E.js");
6727
6727
  regenerateImage(id, args.count);
6728
6728
  return { summary: args.count > 1 ? `Regenerating ${args.count} variants` : "Regenerating the image", data: { id, count: args.count } };
6729
6729
  }
@@ -12118,7 +12118,7 @@ var scriptRun = defineCommand({
12118
12118
  // A script is not the turn the user is watching: confirm-tier tools are refused inside it (dispatch, `nested`).
12119
12119
  actor: { ...ctx.actor, nested: true, label: "Script" },
12120
12120
  // A look_at inside the script sees the document as the script has left it so far, not as it was before.
12121
- use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-5ZVVUKVL.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
12121
+ use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-A7BOM22T.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
12122
12122
  };
12123
12123
  let calls = 0;
12124
12124
  const images = [];
@@ -12971,7 +12971,7 @@ var docImportFile = defineCommand({
12971
12971
  const file = new File([body], args.name);
12972
12972
  if (file.size > MAX_BYTES) throw new ToolError(`"${args.name}" is larger than ${MAX_BYTES / 1024 / 1024} MB.`);
12973
12973
  const [{ buildImportedDocument }, { mergeImportedDocument }] = await Promise.all([
12974
- import("./plugin-import-GALNL6SB.js"),
12974
+ import("./plugin-import-OW37E42K.js"),
12975
12975
  import("./import-merge-J7A3AYOA.js")
12976
12976
  ]);
12977
12977
  const built = await buildImportedDocument(file);
@@ -8,7 +8,7 @@ import {
8
8
  needsSelection,
9
9
  pageGo,
10
10
  selectionIsPicture
11
- } from "./chunk-HOWSSUN7.js";
11
+ } from "./chunk-33CFABZ2.js";
12
12
  import {
13
13
  external_exports
14
14
  } from "./chunk-R5K2B3R3.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-LZFNEHYB.js").then((m) => m.useEditorStore.getState());
34
+ var store = () => import("./editor-store-JQA3IFQ4.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({
@@ -191,7 +191,7 @@ var dialogOpen = defineCommand({
191
191
  (await import("./plan-limit-VGQF2DZX.js")).openPlanDialog();
192
192
  break;
193
193
  case "credits":
194
- await (await import("./buy-credits-T7C577LV.js")).buyAiCredits();
194
+ await (await import("./buy-credits-EJCPC5V7.js")).buyAiCredits();
195
195
  break;
196
196
  case "tokens":
197
197
  emit("popcraft-open-tokens");
@@ -237,7 +237,7 @@ var aiOpen = defineCommand({
237
237
  ] } },
238
238
  run: async ({ dialog, skillId }) => {
239
239
  if (dialog) (await import("./client-store-URE3KRXT.js")).openAiDialog(dialog);
240
- else (await import("./store-BEDJRBIQ.js")).openAgentPanel({ skillId: skillId ?? null });
240
+ else (await import("./store-VLXBAKCI.js")).openAgentPanel({ skillId: skillId ?? null });
241
241
  return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
242
242
  }
243
243
  });
@@ -250,7 +250,7 @@ var agentContinue = defineCommand({
250
250
  params: external_exports.object({}),
251
251
  expose: { ui: { label: "AI: Continue the agent\u2019s last turn", keywords: ["ai", "agent", "continue", "resume", "retry", "keep going"] } },
252
252
  run: async () => {
253
- const resumed = await (await import("./runner-6GHGTHVR.js")).continueTurn();
253
+ const resumed = await (await import("./runner-66VO3EOK.js")).continueTurn();
254
254
  return { summary: resumed ? "Continued the agent" : "Nothing to continue" };
255
255
  }
256
256
  });
@@ -329,11 +329,11 @@ var toolPlace = defineCommand({
329
329
  run: async ({ what }) => {
330
330
  if (what === "media") {
331
331
  const s = await store();
332
- const { placeMediaFromPicker } = await import("./media-tool-VBUUZZIH.js");
332
+ const { placeMediaFromPicker } = await import("./media-tool-IHV3MK22.js");
333
333
  await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
334
334
  return { summary: "Placing media" };
335
335
  }
336
- const { beginEyedrop } = await import("./eyedropper-4DFRX5AG.js");
336
+ const { beginEyedrop } = await import("./eyedropper-OTQO5UFY.js");
337
337
  void beginEyedrop();
338
338
  return { summary: "Pick a color" };
339
339
  }
@@ -351,7 +351,7 @@ var nodeRasterize = defineCommand({
351
351
  keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
352
352
  } },
353
353
  run: async () => {
354
- const { flattenSelectionToPaintLayer } = await import("./raster-actions-2LTYHHOZ.js");
354
+ const { flattenSelectionToPaintLayer } = await import("./raster-actions-IKOFMSP3.js");
355
355
  await flattenSelectionToPaintLayer();
356
356
  return { summary: "Rasterized" };
357
357
  }
@@ -462,7 +462,7 @@ function pluginCommand(plugins) {
462
462
  params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
463
463
  expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
464
464
  run: async ({ pluginId, commandId }) => {
465
- await (await import("./host-KJT6LWVX.js")).runPlugin(pluginId, commandId);
465
+ await (await import("./host-SV2ZGKB3.js")).runPlugin(pluginId, commandId);
466
466
  return { summary: "Plugin started" };
467
467
  }
468
468
  });
@@ -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-7PINHPNT.js";
9
+ } from "./chunk-24ZYL3SN.js";
10
10
  import {
11
11
  aiAvailability,
12
12
  effectiveChatModel,
@@ -75,8 +75,6 @@ var AiClientError = class extends Error {
75
75
  this.code = code;
76
76
  this.status = status;
77
77
  }
78
- code;
79
- status;
80
78
  };
81
79
  var needsReauth = (e) => e instanceof AiClientError && (e.code === "ai_reauth" || e.code === "ai_scope" || e.code === "unauthenticated");
82
80
  function ensureAvailable() {
@@ -28,10 +28,10 @@ import {
28
28
  requestImageAction,
29
29
  sizeForAspect,
30
30
  vectorSupport
31
- } from "./chunk-FW3EG2VB.js";
31
+ } from "./chunk-6S57YBJX.js";
32
32
  import {
33
33
  useEditorStore
34
- } from "./chunk-D266WUDD.js";
34
+ } from "./chunk-S3LCCBYA.js";
35
35
  import {
36
36
  withHistoryGroup
37
37
  } from "./chunk-F36HILOC.js";
@@ -12,7 +12,7 @@ import {
12
12
  hostEnv,
13
13
  plain,
14
14
  registerBuiltinCommands
15
- } from "./chunk-HOWSSUN7.js";
15
+ } from "./chunk-33CFABZ2.js";
16
16
  import {
17
17
  external_exports
18
18
  } from "./chunk-R5K2B3R3.js";
@@ -626,7 +626,7 @@ var commands = [
626
626
  // A storefront design in a neutral form (lib/io/web/project/storefront.ts `storefrontDesign`): what an exporter
627
627
  // plugin turns into its own store's templates, as PopCraft turns it into a Next.js Commerce store (the Ecommerce plugin makes a Shopify theme of it).
628
628
  run: async (_p, ctx) => {
629
- const [{ componentScreens }, { storefrontDesign }] = await Promise.all([import("./components-XPBO2ZM5.js"), import("./storefront-QQTNLF3Q.js")]);
629
+ const [{ componentScreens }, { storefrontDesign }] = await Promise.all([import("./components-JJJ6NOV7.js"), import("./storefront-6LO77DYV.js")]);
630
630
  const doc = ctx.doc();
631
631
  const design = storefrontDesign(doc, componentScreens(doc, ctx.pageId()));
632
632
  return { summary: `Storefront: ${design.pages.length} pages`, data: design };
@@ -644,11 +644,11 @@ var commands = [
644
644
  // saves (the Ecommerce plugin's Shopify theme), so a target is written once, here, and never again in a plugin.
645
645
  run: async (p, ctx) => {
646
646
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
647
- import("./storefront-prepare-QARBKWYY.js"),
648
- import("./storefront-QQTNLF3Q.js"),
649
- import("./project-JTHWH3VF.js"),
647
+ import("./storefront-prepare-DN64DLCR.js"),
648
+ import("./storefront-6LO77DYV.js"),
649
+ import("./project-D3353YKF.js"),
650
650
  import("./zip-export-TZA7FPVI.js"),
651
- import("./tree-5DKDQLDR.js")
651
+ import("./tree-3MXMJZ2P.js")
652
652
  ]);
653
653
  const doc = ctx.doc();
654
654
  const { screens, media } = await storefrontInputs(doc, ctx.pageId(), EXPORT_NODE_CAP);
@@ -843,7 +843,7 @@ var pluginRun = defineCommand({
843
843
  }
844
844
  },
845
845
  run: async (p, ctx) => {
846
- const { runPlugin } = await import("./host-KJT6LWVX.js");
846
+ const { runPlugin } = await import("./host-SV2ZGKB3.js");
847
847
  await runPlugin(p.pluginId, p.commandId);
848
848
  ctx.notice(`Started ${p.pluginId}.`);
849
849
  return {