@popcraft/kit 0.63.3 → 0.63.4

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 (59) hide show
  1. package/dist/chunks/{agent-JG7NSI5F.js → agent-C2N3NV4Y.js} +1 -1
  2. package/dist/chunks/{builtin-FIFCVY72.js → builtin-RXJXTSQY.js} +3 -3
  3. package/dist/chunks/{buy-credits-EQ6AJIN3.js → buy-credits-CCXHKNZ5.js} +2 -2
  4. package/dist/chunks/{check-template-A2RJMYU6.js → check-template-JHR53TVQ.js} +2 -2
  5. package/dist/chunks/{chunk-KNQCCCBU.js → chunk-23DHAXV3.js} +11 -11
  6. package/dist/chunks/{chunk-ATIE7UOI.js → chunk-7AMO475U.js} +1 -1
  7. package/dist/chunks/{chunk-F52J75FK.js → chunk-AWGCGLOI.js} +9 -9
  8. package/dist/chunks/{chunk-C7JDUURH.js → chunk-B4ZUZF5G.js} +4 -4
  9. package/dist/chunks/{chunk-O362LA7T.js → chunk-DSFALQPH.js} +3 -3
  10. package/dist/chunks/{chunk-VWBJ6L7Z.js → chunk-GKNUQFCL.js} +2 -2
  11. package/dist/chunks/{chunk-DBL7B4OB.js → chunk-NZJPVJXS.js} +7 -7
  12. package/dist/chunks/{chunk-EQCYOX3Y.js → chunk-O5TUK2FU.js} +2 -2
  13. package/dist/chunks/{chunk-MTDVLJF4.js → chunk-Q7SNI3MR.js} +4 -4
  14. package/dist/chunks/{chunk-R3NC5A2S.js → chunk-QD5M7DQO.js} +5 -5
  15. package/dist/chunks/{chunk-E5HBVURV.js → chunk-QXNL5CXB.js} +1 -1
  16. package/dist/chunks/{chunk-65OAEAWE.js → chunk-RSVZLTJF.js} +3 -3
  17. package/dist/chunks/{chunk-J3GNANCZ.js → chunk-SS3J4F4P.js} +42 -42
  18. package/dist/chunks/{chunk-24KSG4GN.js → chunk-TWS37A46.js} +1 -1
  19. package/dist/chunks/{chunk-OUMQLK4A.js → chunk-U6BGUGCJ.js} +6 -6
  20. package/dist/chunks/{chunk-RTCAJDVY.js → chunk-WESZZZEP.js} +2 -2
  21. package/dist/chunks/{chunk-HA66E7QT.js → chunk-XHW5TBBB.js} +1 -1
  22. package/dist/chunks/{chunk-DJYLXECR.js → chunk-XKVEIWMH.js} +1 -1
  23. package/dist/chunks/{chunk-GUYFN7LO.js → chunk-Y47QSCFW.js} +2 -2
  24. package/dist/chunks/{client-MIRO64O2.js → client-3JQM2OIO.js} +3 -3
  25. package/dist/chunks/{client-5TMC2L4Y.js → client-3QLT6NED.js} +1 -1
  26. package/dist/chunks/{client-5QNLO3JY.js → client-A5UF3HLS.js} +2 -2
  27. package/dist/chunks/{client-actions-WWLJ7MX3.js → client-actions-Z462QF5C.js} +5 -5
  28. package/dist/chunks/{dangerous-HG5JGBNY.js → dangerous-XIRHDRTC.js} +3 -3
  29. package/dist/chunks/{delete-current-file-A7QBWXXF.js → delete-current-file-HAOLWXXO.js} +5 -5
  30. package/dist/chunks/{editor-seams-URUJLQ7N.js → editor-seams-ORIBEUWW.js} +12 -12
  31. package/dist/chunks/{editor-store-64K4BZQD.js → editor-store-2WVOBH4J.js} +1 -1
  32. package/dist/chunks/{export-watermark-MOUCFBIF.js → export-watermark-IDXJQ6JI.js} +5 -5
  33. package/dist/chunks/{eyedropper-X5XKGEJS.js → eyedropper-WKLUQFRU.js} +1 -1
  34. package/dist/chunks/{generate-media-6HQ7OOV6.js → generate-media-EWLPFCDG.js} +3 -3
  35. package/dist/chunks/{host-ZRVHL6BJ.js → host-2X4KIPPZ.js} +6 -6
  36. package/dist/chunks/{integrations-2SF3ET4I.js → integrations-5UPUSU5J.js} +1 -1
  37. package/dist/chunks/{libraries-77NYGYPJ.js → libraries-PL3B6RIH.js} +5 -5
  38. package/dist/chunks/{live-KTVFWA3T.js → live-OEYNGZGD.js} +1 -1
  39. package/dist/chunks/{media-tool-62E76O5U.js → media-tool-BRA56Z5L.js} +1 -1
  40. package/dist/chunks/{new-file-FHE6NDAP.js → new-file-I7SYDP3Y.js} +3 -3
  41. package/dist/chunks/{plugin-N54NXNEW.js → plugin-3QX3KLXW.js} +2 -2
  42. package/dist/chunks/{plugin-import-UVOZX5WB.js → plugin-import-FZZGUZY4.js} +16 -16
  43. package/dist/chunks/{presence-2WWKQ6S2.js → presence-AHPZVPHB.js} +2 -2
  44. package/dist/chunks/{project-J7JQIWYB.js → project-IPE4HU3S.js} +1 -1
  45. package/dist/chunks/{publish-site-KTFDPQ3H.js → publish-site-CXEXFYYN.js} +6 -6
  46. package/dist/chunks/{publish-store-HYYA4RXT.js → publish-store-GBCAUZLL.js} +4 -4
  47. package/dist/chunks/{raster-actions-3GDZRPGH.js → raster-actions-Z65VHMCO.js} +1 -1
  48. package/dist/chunks/{runner-F22S6D6N.js → runner-HWSH65JN.js} +18 -18
  49. package/dist/chunks/{shader-preview-SDFZKON2.js → shader-preview-ACMUNQ37.js} +3 -2
  50. package/dist/chunks/{store-62BUYI77.js → store-JX2VK7PW.js} +6 -6
  51. package/dist/chunks/{sync-NNGUR4LU.js → sync-4WGZPPYD.js} +5 -5
  52. package/dist/chunks/{tabs-BSIUM23F.js → tabs-ZANRUXTC.js} +8 -8
  53. package/dist/chunks/{team-CAOHTOO3.js → team-AGPA3Q4K.js} +1 -1
  54. package/dist/chunks/{team-client-L3YDUTBT.js → team-client-3OYUD2U4.js} +1 -1
  55. package/dist/chunks/{tools-F4ZINAJC.js → tools-74VWK66O.js} +2 -2
  56. package/dist/chunks/{ui-commands-XE2P64NB.js → ui-commands-6BOC6O2O.js} +12 -12
  57. package/dist/chunks/{versions-5A3SOLJV.js → versions-PFOT22BQ.js} +5 -5
  58. package/dist/index.js +1 -1
  59. package/package.json +1 -1
@@ -949,7 +949,7 @@ init_scene_graph();
949
949
  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.");
950
950
  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 });
951
951
  async function placeImportedPicture(ctx, imported, at2, what, extra = {}) {
952
- const client = await import("./client-5TMC2L4Y.js");
952
+ const client = await import("./client-3QLT6NED.js");
953
953
  if (at2.fillLayerId) {
954
954
  const doc2 = ctx.doc();
955
955
  const target = nodeOrThrow(doc2, at2.fillLayerId);
@@ -995,7 +995,7 @@ var photoSearch = defineCommand({
995
995
  }
996
996
  },
997
997
  run: async (args) => {
998
- const { searchStockPhotos } = await import("./client-5TMC2L4Y.js");
998
+ const { searchStockPhotos } = await import("./client-3QLT6NED.js");
999
999
  const page = await searchStockPhotos(args.query, args.page ?? 1, { licence: args.licence });
1000
1000
  return {
1001
1001
  summary: `${page.results.length} photo${page.results.length === 1 ? "" : "s"} for \u201C${page.query}\u201D (page ${page.page} of ${page.pageCount || 1})`,
@@ -1029,7 +1029,7 @@ var photoInsert = defineCommand({
1029
1029
  run: async (args, ctx) => {
1030
1030
  if (!args.id && !args.query) throw new ToolError("Pass an id from search_photos, or a query.");
1031
1031
  if (args.id && !isPhotoId(args.id)) throw new ToolError(`"${args.id}" is not a photo id from search_photos.`);
1032
- const client = await import("./client-5TMC2L4Y.js");
1032
+ const client = await import("./client-3QLT6NED.js");
1033
1033
  let photo;
1034
1034
  if (args.id) photo = await client.stockPhotoInfo(args.id);
1035
1035
  else {
@@ -1067,10 +1067,10 @@ var mediaList = defineCommand({
1067
1067
  }
1068
1068
  },
1069
1069
  run: async (args) => {
1070
- const { listLibraryMedia } = await import("./client-5QNLO3JY.js");
1070
+ const { listLibraryMedia } = await import("./client-A5UF3HLS.js");
1071
1071
  const q = { ...args };
1072
1072
  if (!q.workspace) {
1073
- const { syncStatus } = await import("./sync-NNGUR4LU.js");
1073
+ const { syncStatus } = await import("./sync-4WGZPPYD.js");
1074
1074
  const link2 = syncStatus().link;
1075
1075
  if (!link2) throw new ToolError("This document is not saved to the cloud, so it has no team media library. Pass workspace.");
1076
1076
  q.workspace = (await listLibraryMedia({ file: link2.key, limit: 1 })).workspaceId;
@@ -1105,7 +1105,7 @@ var mediaInsert = defineCommand({
1105
1105
  run: async (args, ctx) => {
1106
1106
  const contentType = args.contentType ?? "image/*";
1107
1107
  if (!contentType.startsWith("image/")) throw new ToolError("insert_media places pictures; this item is not one.");
1108
- const { importLibraryPicture } = await import("./client-5QNLO3JY.js");
1108
+ const { importLibraryPicture } = await import("./client-A5UF3HLS.js");
1109
1109
  const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "Media", contentType, size: 0, createdAt: "", fileCount: 1, source: null };
1110
1110
  const imported = await importLibraryPicture(item);
1111
1111
  return placeImportedPicture(ctx, imported, args, `\u201C${imported.name}\u201D`, { hash: imported.hash });
@@ -1126,7 +1126,7 @@ var mediaDownload = defineCommand({
1126
1126
  // The Library's right-click menu: saves the item's file to the computer.
1127
1127
  expose: { ui: { label: "Download", palette: false } },
1128
1128
  run: async (args) => {
1129
- const { libraryBlob, libraryFileName } = await import("./client-5QNLO3JY.js");
1129
+ const { libraryBlob, libraryFileName } = await import("./client-A5UF3HLS.js");
1130
1130
  const { downloadBlob } = await import("./download-G4F3QEWZ.js");
1131
1131
  const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "media", contentType: args.contentType ?? "", size: 0, createdAt: "", fileCount: 1, source: null };
1132
1132
  const blob = await libraryBlob(item);
@@ -1157,7 +1157,7 @@ var mediaDelete = defineCommand({
1157
1157
  }
1158
1158
  },
1159
1159
  run: async (args) => {
1160
- const { deleteLibraryMedia } = await import("./client-5QNLO3JY.js");
1160
+ const { deleteLibraryMedia } = await import("./client-A5UF3HLS.js");
1161
1161
  const out = await deleteLibraryMedia(args.workspace, args.hash);
1162
1162
  return { summary: `Deleted it from the library (it was in ${out.files} file${out.files === 1 ? "" : "s"})`, data: out };
1163
1163
  }
@@ -1171,13 +1171,13 @@ async function signedIn() {
1171
1171
  }
1172
1172
  async function publishedFile() {
1173
1173
  await signedIn();
1174
- const { openFileKey } = await import("./publish-site-KTFDPQ3H.js");
1174
+ const { openFileKey } = await import("./publish-site-CXEXFYYN.js");
1175
1175
  const key = openFileKey();
1176
1176
  if (!key) throw new CommandError("This file is not saved to the cloud yet, so it has no site. Publish it first.", "failed");
1177
1177
  return key;
1178
1178
  }
1179
1179
  async function formsWithoutDatabase(key) {
1180
- const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-64K4BZQD.js"), import("./backend-5OR26XPV.js"), import("./integrations-2SF3ET4I.js")]);
1180
+ const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-2WVOBH4J.js"), import("./backend-5OR26XPV.js"), import("./integrations-5UPUSU5J.js")]);
1181
1181
  const doc2 = useEditorStore.getState().document;
1182
1182
  if (!usesForms(doc2)) return false;
1183
1183
  return formsGoNowhere(doc2, await siteBackend(key).catch(() => void 0));
@@ -1213,7 +1213,7 @@ var publishSite = defineCommand({
1213
1213
  const { cleanSlug } = await import("./rules-4UDK7TMG.js");
1214
1214
  const address = p.address === void 0 ? void 0 : cleanSlug(p.address);
1215
1215
  if (address === null) throw new CommandError("That cannot be a site address: use 3 to 40 letters, digits and dashes.", "invalid_params");
1216
- const { publishOpenFile, NoScreens } = await import("./publish-site-KTFDPQ3H.js");
1216
+ const { publishOpenFile, NoScreens } = await import("./publish-site-CXEXFYYN.js");
1217
1217
  try {
1218
1218
  const done = await publishOpenFile(address);
1219
1219
  ctx.notice(`Published version ${done.version}: ${done.url}`);
@@ -1268,7 +1268,7 @@ var publishListSites = defineCommand({
1268
1268
  },
1269
1269
  run: async (p) => {
1270
1270
  await signedIn();
1271
- const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-Y2PSSVC7.js"), import("./team-CAOHTOO3.js")]);
1271
+ const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-Y2PSSVC7.js"), import("./team-AGPA3Q4K.js")]);
1272
1272
  const workspaceId = p.workspaceId ?? activeTeamWorkspaceId() ?? useHyperyTeam.getState().personalWorkspaceId;
1273
1273
  if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
1274
1274
  const out = await workspaceSites(workspaceId);
@@ -1317,12 +1317,12 @@ var publishStatus = defineCommand({
1317
1317
  },
1318
1318
  run: async () => {
1319
1319
  await signedIn();
1320
- const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-KTFDPQ3H.js"), import("./sites-Y2PSSVC7.js")]);
1320
+ const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-CXEXFYYN.js"), import("./sites-Y2PSSVC7.js")]);
1321
1321
  const key = openFileKey();
1322
1322
  const status = await siteStatus(key);
1323
1323
  const site = status.site;
1324
- const backend = key ? await (await import("./integrations-2SF3ET4I.js")).siteBackend(key).catch(() => null) : null;
1325
- const destinations = key ? await (await import("./integrations-2SF3ET4I.js")).listDestinations(key).catch(() => []) : [];
1324
+ const backend = key ? await (await import("./integrations-5UPUSU5J.js")).siteBackend(key).catch(() => null) : null;
1325
+ const destinations = key ? await (await import("./integrations-5UPUSU5J.js")).listDestinations(key).catch(() => []) : [];
1326
1326
  return {
1327
1327
  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}`,
1328
1328
  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 })) }
@@ -1353,7 +1353,7 @@ var publishStore = defineCommand({
1353
1353
  },
1354
1354
  run: async (p, ctx) => {
1355
1355
  await signedIn();
1356
- const { deployOpenStore } = await import("./publish-store-HYYA4RXT.js");
1356
+ const { deployOpenStore } = await import("./publish-store-GBCAUZLL.js");
1357
1357
  const done = await deployOpenStore(ctx.doc(), ctx.pageId(), { destinationId: p.destinationId }).catch((e) => {
1358
1358
  throw new CommandError(e instanceof Error ? e.message : String(e), "failed");
1359
1359
  });
@@ -1382,7 +1382,7 @@ var integrationList = defineCommand({
1382
1382
  }
1383
1383
  },
1384
1384
  run: async ({ capability }) => {
1385
- const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-HNH4PB2I.js"), import("./integrations-2SF3ET4I.js")]);
1385
+ const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-HNH4PB2I.js"), import("./integrations-5UPUSU5J.js")]);
1386
1386
  if (!cloudUser()) throw new CommandError("You are not signed in: integrations belong to your account's workspace.", "denied");
1387
1387
  const workspaceId = integrationsWorkspaceId();
1388
1388
  if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
@@ -1423,7 +1423,7 @@ var integrationOpen = defineCommand({
1423
1423
  }
1424
1424
  });
1425
1425
  async function openFile() {
1426
- const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-HNH4PB2I.js"), import("./publish-site-KTFDPQ3H.js")]);
1426
+ const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-HNH4PB2I.js"), import("./publish-site-CXEXFYYN.js")]);
1427
1427
  if (!cloudUser()) throw new CommandError("You are not signed in.", "denied");
1428
1428
  const key = openFileKey();
1429
1429
  if (!key) throw new CommandError("This file is not saved to the cloud yet. Publish it first (publish_site).", "failed");
@@ -1449,7 +1449,7 @@ var integrationListResources = defineCommand({
1449
1449
  }
1450
1450
  },
1451
1451
  run: async ({ connectionId, capability, path }) => {
1452
- const { listResources } = await import("./integrations-2SF3ET4I.js");
1452
+ const { listResources } = await import("./integrations-5UPUSU5J.js");
1453
1453
  const list = await listResources(connectionId, capability, asPath2(path));
1454
1454
  return {
1455
1455
  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",
@@ -1484,7 +1484,7 @@ var integrationAddDestination = defineCommand({
1484
1484
  },
1485
1485
  run: async (p, ctx) => {
1486
1486
  const key = await openFile();
1487
- const { addDestination, createDestination, createResource } = await import("./integrations-2SF3ET4I.js");
1487
+ const { addDestination, createDestination, createResource } = await import("./integrations-5UPUSU5J.js");
1488
1488
  let made;
1489
1489
  if (p.create) made = await createDestination(key, p.capability, void 0, p.connectionId);
1490
1490
  else {
@@ -1521,7 +1521,7 @@ var integrationDeploy = defineCommand({
1521
1521
  },
1522
1522
  run: async (p, ctx) => {
1523
1523
  const key = await openFile();
1524
- const { deployDestination, listDestinations } = await import("./integrations-2SF3ET4I.js");
1524
+ const { deployDestination, listDestinations } = await import("./integrations-5UPUSU5J.js");
1525
1525
  const all = await listDestinations(key);
1526
1526
  const dest = p.destinationId ? all.find((d) => d.id === p.destinationId) : all.length === 1 ? all[0] : void 0;
1527
1527
  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");
@@ -1555,7 +1555,7 @@ var integrationAttachDatabase = defineCommand({
1555
1555
  },
1556
1556
  run: async (p, ctx) => {
1557
1557
  const key = await openFile();
1558
- const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-2SF3ET4I.js");
1558
+ const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-5UPUSU5J.js");
1559
1559
  if (p.create) return attached(await createDatabase(key, void 0, p.connectionId), ctx);
1560
1560
  if (!p.connectionId || !p.target) throw new CommandError("Say connectionId and target, or create: true.", "invalid_params");
1561
1561
  let target = asPath2(p.target);
@@ -1594,7 +1594,7 @@ var integrationSubmissions = defineCommand({
1594
1594
  },
1595
1595
  run: async ({ form, limit }) => {
1596
1596
  const key = await openFile();
1597
- const { listSubmissions } = await import("./integrations-2SF3ET4I.js");
1597
+ const { listSubmissions } = await import("./integrations-5UPUSU5J.js");
1598
1598
  const rows = await listSubmissions(key, { form, limit: limit ?? 20 });
1599
1599
  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 } };
1600
1600
  }
@@ -1619,7 +1619,7 @@ var integrationSetSignIn = defineCommand({
1619
1619
  },
1620
1620
  run: async ({ on }, ctx) => {
1621
1621
  const key = await openFile();
1622
- const { setSignIn } = await import("./integrations-2SF3ET4I.js");
1622
+ const { setSignIn } = await import("./integrations-5UPUSU5J.js");
1623
1623
  const done = await setSignIn(key, on);
1624
1624
  ctx.notice(on ? "Visitors can sign in." : "Sign-in is off.");
1625
1625
  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 } };
@@ -1837,7 +1837,7 @@ var fontTeamList = defineCommand({
1837
1837
  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)." }
1838
1838
  },
1839
1839
  run: async (args) => {
1840
- const { refreshTeamFonts } = await import("./team-client-L3YDUTBT.js");
1840
+ const { refreshTeamFonts } = await import("./team-client-3OYUD2U4.js");
1841
1841
  const fonts = await refreshTeamFonts(args.workspace);
1842
1842
  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 })) } };
1843
1843
  }
@@ -1864,7 +1864,7 @@ var fontTeamAdd = defineCommand({
1864
1864
  run: async (args, ctx) => {
1865
1865
  const { bytes, fileName: fileName2 } = await fontBytes(args, ctx);
1866
1866
  const { face, family, weight, style } = await resolveFace(bytes, args);
1867
- const { uploadTeamFont } = await import("./team-client-L3YDUTBT.js");
1867
+ const { uploadTeamFont } = await import("./team-client-3OYUD2U4.js");
1868
1868
  const font = await uploadTeamFont(bytes, { family, weight, style, face: face.index, fileName: fileName2 }, args.workspace);
1869
1869
  return { summary: `Added ${family} ${weight}${style === "italic" ? " italic" : ""} to the team`, data: { font } };
1870
1870
  }
@@ -1886,7 +1886,7 @@ var fontTeamRemove = defineCommand({
1886
1886
  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." }
1887
1887
  },
1888
1888
  run: async (args) => {
1889
- const { removeTeamFont } = await import("./team-client-L3YDUTBT.js");
1889
+ const { removeTeamFont } = await import("./team-client-3OYUD2U4.js");
1890
1890
  const out = await removeTeamFont(args.id, args.workspace);
1891
1891
  return { summary: `Removed the team font${out.freed ? " and freed its storage" : ""}`, data: out };
1892
1892
  }
@@ -1897,7 +1897,7 @@ var fontTeamCommands = [fontTeamList, fontTeamAdd];
1897
1897
  init_define_POPCRAFT_COMPONENT_IDS();
1898
1898
  async function cloudFile() {
1899
1899
  const [{ syncStatus }, { cloudUser }] = await Promise.all([
1900
- import("./sync-NNGUR4LU.js"),
1900
+ import("./sync-4WGZPPYD.js"),
1901
1901
  import("./session-HNH4PB2I.js")
1902
1902
  ]);
1903
1903
  const link2 = syncStatus().link;
@@ -1959,7 +1959,7 @@ var fileTrash = defineCommand({
1959
1959
  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." }
1960
1960
  },
1961
1961
  run: async () => {
1962
- const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-A7QBWXXF.js");
1962
+ const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-HAOLWXXO.js");
1963
1963
  const { name: name2, kind } = await deleteCurrentFile();
1964
1964
  leaveDeletedFile();
1965
1965
  return { summary: kind === "cloud" ? `Moved \u201C${name2}\u201D to the Trash` : `Deleted \u201C${name2}\u201D` };
@@ -2072,11 +2072,11 @@ var fileDuplicate = defineCommand({
2072
2072
  },
2073
2073
  run: async (_p, ctx) => {
2074
2074
  const [{ syncStatus }, { cloudApi }, { isDesktopTabs }, { createFileInTab }, { openNewCloudFile }, { v4: uuid }] = await Promise.all([
2075
- import("./sync-NNGUR4LU.js"),
2075
+ import("./sync-4WGZPPYD.js"),
2076
2076
  import("./api-MJP2KJ33.js"),
2077
2077
  import("./tab-mode-TWDN4YFP.js"),
2078
- import("./tabs-BSIUM23F.js"),
2079
- import("./sync-NNGUR4LU.js"),
2078
+ import("./tabs-ZANRUXTC.js"),
2079
+ import("./sync-4WGZPPYD.js"),
2080
2080
  import("./dist-node-6HK4MDGF.js")
2081
2081
  ]);
2082
2082
  const doc2 = ctx.doc();
@@ -4953,7 +4953,7 @@ var viewCopyLink = defineCommand({
4953
4953
  },
4954
4954
  run: async (args, ctx) => {
4955
4955
  const [{ syncStatus }, { fileUrl }, { withDeepLink }] = await Promise.all([
4956
- import("./sync-NNGUR4LU.js"),
4956
+ import("./sync-4WGZPPYD.js"),
4957
4957
  import("./api-MJP2KJ33.js"),
4958
4958
  import("./deep-link-QXZ6BPDJ.js")
4959
4959
  ]);
@@ -5278,7 +5278,7 @@ var pageGo = defineCommand({
5278
5278
  ] }
5279
5279
  },
5280
5280
  run: async ({ to }) => {
5281
- const { useEditorStore } = await import("./editor-store-64K4BZQD.js");
5281
+ const { useEditorStore } = await import("./editor-store-2WVOBH4J.js");
5282
5282
  useEditorStore.getState().goToPrintPage(to);
5283
5283
  return { summary: typeof to === "number" ? `Page ${to + 1}` : `${to} page` };
5284
5284
  }
@@ -5312,7 +5312,7 @@ var pageSetup = defineCommand({
5312
5312
  }
5313
5313
  },
5314
5314
  run: async (args) => {
5315
- const { useEditorStore } = await import("./editor-store-64K4BZQD.js");
5315
+ const { useEditorStore } = await import("./editor-store-2WVOBH4J.js");
5316
5316
  useEditorStore.getState().applyPageSetup(args);
5317
5317
  return { summary: `Page setup updated${args.kind ? ` (${args.kind.toLowerCase()})` : ""}` };
5318
5318
  }
@@ -5750,7 +5750,7 @@ async function docAtTime(doc2, ids, time2) {
5750
5750
  let frameId;
5751
5751
  if (time2 === void 0) {
5752
5752
  try {
5753
- const { useEditorStore } = await import("./editor-store-64K4BZQD.js");
5753
+ const { useEditorStore } = await import("./editor-store-2WVOBH4J.js");
5754
5754
  const st = useEditorStore.getState();
5755
5755
  const target = st.transport?.target;
5756
5756
  if (st.mode !== "ANIMATE" || target?.kind !== "frame") return doc2;
@@ -6144,7 +6144,7 @@ async function runAnimationExport(format, args, ctx) {
6144
6144
  const filename = exportFileName(args.filename || targetName(doc2, target), format);
6145
6145
  const [{ exportAnimation }, { memoryDestination }] = await Promise.all([import("./video-MONR3KYO.js"), import("./destination-75O3SAQ7.js")]);
6146
6146
  if (format === "lottie" || format === "dotlottie") return runLottieExport(renderer, doc2, spec, filename, ctx, memoryDestination, args.stateMachine);
6147
- const planWatermark = format !== "png" && await (await import("./export-watermark-MOUCFBIF.js")).exportWatermark();
6147
+ const planWatermark = format !== "png" && await (await import("./export-watermark-IDXJQ6JI.js")).exportWatermark();
6148
6148
  if (format !== "png") spec = { ...spec, watermark: planWatermark || args.watermark !== false };
6149
6149
  const dest = ctx.destination ? await ctx.destination(filename, FORMAT_MIME[format]) : memoryDestination(filename, FORMAT_MIME[format]);
6150
6150
  let stats;
@@ -6230,7 +6230,7 @@ var exportLottie = animationCommand((args) => args.container === "lottie" ? "dot
6230
6230
  });
6231
6231
  async function exportSite(doc2, pageId2, packaging, styling = "css", siteUrl) {
6232
6232
  const [{ completeSite, nextFilesOf, shareImageFiles, staticFilesOf, NoSiteRuntime, bytesOf }, { fileBase }, { zipFiles }, { downloadBlob }] = await Promise.all([
6233
- import("./project-J7JQIWYB.js"),
6233
+ import("./project-IPE4HU3S.js"),
6234
6234
  import("./web-T7DCTA2I.js"),
6235
6235
  import("./zip-export-UR4GGFYY.js"),
6236
6236
  import("./download-G4F3QEWZ.js")
@@ -6324,7 +6324,7 @@ var exportStorefront = defineCommand({
6324
6324
  const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { fileBase, flatten }, { zipFiles }, { downloadBlob }] = await Promise.all([
6325
6325
  import("./storefront-prepare-DLYWE3XR.js"),
6326
6326
  import("./storefront-LXMQJCHV.js"),
6327
- import("./project-J7JQIWYB.js"),
6327
+ import("./project-IPE4HU3S.js"),
6328
6328
  import("./web-T7DCTA2I.js"),
6329
6329
  import("./zip-export-UR4GGFYY.js"),
6330
6330
  import("./download-G4F3QEWZ.js")
@@ -6719,7 +6719,7 @@ var visionRegenerateImage = defineCommand({
6719
6719
  const id = args.id ?? ctx.selection()[0];
6720
6720
  if (!id) throw new ToolError("Select a generated image to regenerate.");
6721
6721
  nodeOrThrow(ctx.doc(), id);
6722
- const { regenerateImage } = await import("./client-actions-WWLJ7MX3.js");
6722
+ const { regenerateImage } = await import("./client-actions-Z462QF5C.js");
6723
6723
  regenerateImage(id, args.count);
6724
6724
  return { summary: args.count > 1 ? `Regenerating ${args.count} variants` : "Regenerating the image", data: { id, count: args.count } };
6725
6725
  }
@@ -11937,7 +11937,7 @@ var scriptRun = defineCommand({
11937
11937
  // A script is not the turn the user is watching: confirm-tier tools are refused inside it (dispatch, `nested`).
11938
11938
  actor: { ...ctx.actor, nested: true, label: "Script" },
11939
11939
  // A look_at inside the script sees the document as the script has left it so far, not as it was before.
11940
- use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-JG7NSI5F.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
11940
+ use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-C2N3NV4Y.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
11941
11941
  };
11942
11942
  let calls = 0;
11943
11943
  const images = [];
@@ -12757,7 +12757,7 @@ var docImportFile = defineCommand({
12757
12757
  const file = new File([body], args.name);
12758
12758
  if (file.size > MAX_BYTES) throw new ToolError(`"${args.name}" is larger than ${MAX_BYTES / 1024 / 1024} MB.`);
12759
12759
  const [{ buildImportedDocument }, { mergeImportedDocument }] = await Promise.all([
12760
- import("./plugin-import-UVOZX5WB.js"),
12760
+ import("./plugin-import-FZZGUZY4.js"),
12761
12761
  import("./import-merge-772P4D44.js")
12762
12762
  ]);
12763
12763
  const built = await buildImportedDocument(file);
@@ -11,7 +11,7 @@ import {
11
11
  activeHyperyTeamId,
12
12
  activeTeamWorkspaceId,
13
13
  useHyperyTeam
14
- } from "./chunk-E5HBVURV.js";
14
+ } from "./chunk-QXNL5CXB.js";
15
15
  import {
16
16
  inAppPurchases
17
17
  } from "./chunk-DFUHSE3I.js";
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  registerAppCommands
9
- } from "./chunk-F52J75FK.js";
9
+ } from "./chunk-AWGCGLOI.js";
10
10
  import {
11
11
  storeOpsSeam
12
12
  } from "./chunk-UVWTSHLG.js";
@@ -23,17 +23,17 @@ import {
23
23
  sameResolution,
24
24
  surfaceSize,
25
25
  windowCssSize
26
- } from "./chunk-J3GNANCZ.js";
26
+ } from "./chunk-SS3J4F4P.js";
27
27
  import {
28
28
  notice
29
- } from "./chunk-RTCAJDVY.js";
29
+ } from "./chunk-WESZZZEP.js";
30
30
  import {
31
31
  agentContext
32
- } from "./chunk-65OAEAWE.js";
32
+ } from "./chunk-RSVZLTJF.js";
33
33
  import {
34
34
  collabSession,
35
35
  syncStatus
36
- } from "./chunk-MTDVLJF4.js";
36
+ } from "./chunk-Q7SNI3MR.js";
37
37
  import {
38
38
  loadEntitlements
39
39
  } from "./chunk-QDH7K5TG.js";
@@ -47,7 +47,7 @@ import {
47
47
  import {
48
48
  persist,
49
49
  useEditorStore
50
- } from "./chunk-DBL7B4OB.js";
50
+ } from "./chunk-NZJPVJXS.js";
51
51
  import {
52
52
  create
53
53
  } from "./chunk-YB2RTI5I.js";
@@ -28,10 +28,10 @@ import {
28
28
  requestImageAction,
29
29
  sizeForAspect,
30
30
  vectorSupport
31
- } from "./chunk-DJYLXECR.js";
31
+ } from "./chunk-XKVEIWMH.js";
32
32
  import {
33
33
  useEditorStore
34
- } from "./chunk-DBL7B4OB.js";
34
+ } from "./chunk-NZJPVJXS.js";
35
35
  import {
36
36
  withHistoryGroup
37
37
  } from "./chunk-XYXJGZE5.js";
@@ -13,7 +13,7 @@ import {
13
13
  agentTool,
14
14
  agentToolList,
15
15
  registerCommands
16
- } from "./chunk-65OAEAWE.js";
16
+ } from "./chunk-RSVZLTJF.js";
17
17
  import {
18
18
  dispatch
19
19
  } from "./chunk-R66LLPY5.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-24KSG4GN.js";
9
+ } from "./chunk-TWS37A46.js";
10
10
  import {
11
11
  aiAvailability,
12
12
  effectiveChatModel,
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  builtinCommands,
9
9
  registerBuiltinCommands
10
- } from "./chunk-J3GNANCZ.js";
10
+ } from "./chunk-SS3J4F4P.js";
11
11
  import {
12
12
  toolView
13
- } from "./chunk-65OAEAWE.js";
13
+ } from "./chunk-RSVZLTJF.js";
14
14
  import {
15
15
  init_define_POPCRAFT_COMPONENT_IDS
16
16
  } from "./chunk-3JQ2IBTW.js";
@@ -16,11 +16,11 @@ import {
16
16
  requestEmbeddings,
17
17
  requestImage,
18
18
  requestImageAction
19
- } from "./chunk-DJYLXECR.js";
20
- import "./chunk-24KSG4GN.js";
19
+ } from "./chunk-XKVEIWMH.js";
20
+ import "./chunk-TWS37A46.js";
21
21
  import "./chunk-U6ZHQH5G.js";
22
22
  import "./chunk-QDH7K5TG.js";
23
- import "./chunk-E5HBVURV.js";
23
+ import "./chunk-QXNL5CXB.js";
24
24
  import "./chunk-N6ZQJYXS.js";
25
25
  import "./chunk-A7DXX5A5.js";
26
26
  import "./chunk-DFUHSE3I.js";
@@ -14,7 +14,7 @@ import {
14
14
  placeStockPhoto,
15
15
  searchStockPhotos,
16
16
  stockPhotoInfo
17
- } from "./chunk-VWBJ6L7Z.js";
17
+ } from "./chunk-GKNUQFCL.js";
18
18
  import "./chunk-AJDUB6PH.js";
19
19
  import "./chunk-3JQ2IBTW.js";
20
20
  import "./chunk-LJSVREWM.js";
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  defaultMeasure,
9
9
  placePicture
10
- } from "./chunk-VWBJ6L7Z.js";
10
+ } from "./chunk-GKNUQFCL.js";
11
11
  import "./chunk-AJDUB6PH.js";
12
12
  import {
13
13
  api
@@ -122,7 +122,7 @@ async function placeLibraryItem(item, opts = {}) {
122
122
  }
123
123
  if (item.contentType.startsWith("video/")) {
124
124
  const file = await libraryFile(item, opts);
125
- const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-64K4BZQD.js"), import("./media-tool-62E76O5U.js")]);
125
+ const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-2WVOBH4J.js"), import("./media-tool-BRA56Z5L.js")]);
126
126
  const cam = useEditorStore.getState().camera;
127
127
  await placeMediaFile(file, { kind: "point", ...opts.at ?? { x: cam.x, y: cam.y } });
128
128
  return useEditorStore.getState().selection[0] ?? null;
@@ -16,7 +16,7 @@ import {
16
16
  selectedVectorTarget,
17
17
  startImageAction,
18
18
  startImageGeneration
19
- } from "./chunk-RTCAJDVY.js";
19
+ } from "./chunk-WESZZZEP.js";
20
20
  import "./chunk-XMBCZSHZ.js";
21
21
  import "./chunk-VPMMB3C2.js";
22
22
  import "./chunk-UCAF3EVO.js";
@@ -28,19 +28,19 @@ import "./chunk-45HF4N6B.js";
28
28
  import "./chunk-B7Z4YAGY.js";
29
29
  import "./chunk-L6H7PZJ5.js";
30
30
  import "./chunk-B2HNUDGB.js";
31
- import "./chunk-DJYLXECR.js";
32
- import "./chunk-24KSG4GN.js";
31
+ import "./chunk-XKVEIWMH.js";
32
+ import "./chunk-TWS37A46.js";
33
33
  import "./chunk-U6ZHQH5G.js";
34
34
  import "./chunk-QDH7K5TG.js";
35
35
  import "./chunk-Q2NQLUI6.js";
36
36
  import "./chunk-FFKB5KMS.js";
37
- import "./chunk-E5HBVURV.js";
37
+ import "./chunk-QXNL5CXB.js";
38
38
  import "./chunk-UUBN4FJV.js";
39
39
  import "./chunk-7P6M3YEF.js";
40
40
  import "./chunk-GX7QVJ2T.js";
41
41
  import "./chunk-N6ZQJYXS.js";
42
42
  import "./chunk-A7DXX5A5.js";
43
- import "./chunk-DBL7B4OB.js";
43
+ import "./chunk-NZJPVJXS.js";
44
44
  import "./chunk-IZU62IK5.js";
45
45
  import "./chunk-XYXJGZE5.js";
46
46
  import "./chunk-BVEE4DCP.js";
@@ -8,10 +8,10 @@ import {
8
8
  confirmTierCommands,
9
9
  dangerousCommands,
10
10
  registerDangerousCommands
11
- } from "./chunk-KNQCCCBU.js";
12
- import "./chunk-O362LA7T.js";
11
+ } from "./chunk-23DHAXV3.js";
12
+ import "./chunk-DSFALQPH.js";
13
13
  import "./chunk-UVWTSHLG.js";
14
- import "./chunk-J3GNANCZ.js";
14
+ import "./chunk-SS3J4F4P.js";
15
15
  import "./chunk-VWLOSP5P.js";
16
16
  import "./chunk-XZCVQPV6.js";
17
17
  import "./chunk-NHPK5RDE.js";
@@ -6,21 +6,21 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  syncStatus
9
- } from "./chunk-MTDVLJF4.js";
9
+ } from "./chunk-Q7SNI3MR.js";
10
10
  import "./chunk-M7KIUV7L.js";
11
- import "./chunk-EQCYOX3Y.js";
11
+ import "./chunk-O5TUK2FU.js";
12
12
  import "./chunk-QDH7K5TG.js";
13
13
  import "./chunk-XNUX4MRE.js";
14
- import "./chunk-E5HBVURV.js";
14
+ import "./chunk-QXNL5CXB.js";
15
15
  import "./chunk-FLF5E6T2.js";
16
16
  import {
17
17
  cloudApi
18
18
  } from "./chunk-N6ZQJYXS.js";
19
19
  import "./chunk-A7DXX5A5.js";
20
- import "./chunk-ATIE7UOI.js";
20
+ import "./chunk-7AMO475U.js";
21
21
  import {
22
22
  useEditorStore
23
- } from "./chunk-DBL7B4OB.js";
23
+ } from "./chunk-NZJPVJXS.js";
24
24
  import "./chunk-IZU62IK5.js";
25
25
  import "./chunk-XYXJGZE5.js";
26
26
  import "./chunk-BVEE4DCP.js";
@@ -7,20 +7,20 @@ const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  editBlockReason,
9
9
  editorToolContext
10
- } from "./chunk-OUMQLK4A.js";
11
- import "./chunk-F52J75FK.js";
10
+ } from "./chunk-U6BGUGCJ.js";
11
+ import "./chunk-AWGCGLOI.js";
12
12
  import "./chunk-UVWTSHLG.js";
13
- import "./chunk-J3GNANCZ.js";
13
+ import "./chunk-SS3J4F4P.js";
14
14
  import "./chunk-VWLOSP5P.js";
15
15
  import "./chunk-XZCVQPV6.js";
16
16
  import "./chunk-NHPK5RDE.js";
17
- import "./chunk-RTCAJDVY.js";
17
+ import "./chunk-WESZZZEP.js";
18
18
  import "./chunk-XMBCZSHZ.js";
19
19
  import "./chunk-7ZG55E52.js";
20
20
  import "./chunk-IBHIPO2U.js";
21
21
  import "./chunk-CO5QRETZ.js";
22
22
  import "./chunk-VPMMB3C2.js";
23
- import "./chunk-65OAEAWE.js";
23
+ import "./chunk-RSVZLTJF.js";
24
24
  import "./chunk-PJ2EDRZS.js";
25
25
  import "./chunk-UCAF3EVO.js";
26
26
  import "./chunk-UKEUJ3JW.js";
@@ -33,17 +33,17 @@ import "./chunk-B7Z4YAGY.js";
33
33
  import "./chunk-L6H7PZJ5.js";
34
34
  import "./chunk-M7IAYQSL.js";
35
35
  import "./chunk-B2HNUDGB.js";
36
- import "./chunk-DJYLXECR.js";
37
- import "./chunk-24KSG4GN.js";
36
+ import "./chunk-XKVEIWMH.js";
37
+ import "./chunk-TWS37A46.js";
38
38
  import "./chunk-U6ZHQH5G.js";
39
- import "./chunk-MTDVLJF4.js";
39
+ import "./chunk-Q7SNI3MR.js";
40
40
  import "./chunk-M7KIUV7L.js";
41
- import "./chunk-EQCYOX3Y.js";
41
+ import "./chunk-O5TUK2FU.js";
42
42
  import "./chunk-QDH7K5TG.js";
43
43
  import "./chunk-XNUX4MRE.js";
44
44
  import "./chunk-Q2NQLUI6.js";
45
45
  import "./chunk-FFKB5KMS.js";
46
- import "./chunk-E5HBVURV.js";
46
+ import "./chunk-QXNL5CXB.js";
47
47
  import "./chunk-FLF5E6T2.js";
48
48
  import "./chunk-QU7FBHQU.js";
49
49
  import "./chunk-UUBN4FJV.js";
@@ -53,8 +53,8 @@ import "./chunk-B5A62GDB.js";
53
53
  import "./chunk-MO6X2CU5.js";
54
54
  import "./chunk-N6ZQJYXS.js";
55
55
  import "./chunk-A7DXX5A5.js";
56
- import "./chunk-ATIE7UOI.js";
57
- import "./chunk-DBL7B4OB.js";
56
+ import "./chunk-7AMO475U.js";
57
+ import "./chunk-NZJPVJXS.js";
58
58
  import "./chunk-IZU62IK5.js";
59
59
  import "./chunk-XYXJGZE5.js";
60
60
  import "./chunk-BVEE4DCP.js";
@@ -19,7 +19,7 @@ import {
19
19
  useEditorStore,
20
20
  useMode,
21
21
  useSelection
22
- } from "./chunk-DBL7B4OB.js";
22
+ } from "./chunk-NZJPVJXS.js";
23
23
  import "./chunk-IZU62IK5.js";
24
24
  import "./chunk-XYXJGZE5.js";
25
25
  import "./chunk-BVEE4DCP.js";