@popcraft/kit 0.63.4 → 0.63.5
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.
- package/dist/chunks/{agent-C2N3NV4Y.js → agent-SN6JLCZR.js} +1 -1
- package/dist/chunks/{builtin-RXJXTSQY.js → builtin-22J36YRW.js} +3 -3
- package/dist/chunks/{buy-credits-CCXHKNZ5.js → buy-credits-5YABF4X3.js} +2 -2
- package/dist/chunks/{check-template-JHR53TVQ.js → check-template-PWZ5GOFF.js} +2 -2
- package/dist/chunks/{chunk-O5TUK2FU.js → chunk-4F62PZMF.js} +2 -2
- package/dist/chunks/{chunk-XHW5TBBB.js → chunk-5RZFX5HB.js} +1 -1
- package/dist/chunks/{chunk-RSVZLTJF.js → chunk-A6PFFOSI.js} +3 -3
- package/dist/chunks/{chunk-XKVEIWMH.js → chunk-AIRNIQB6.js} +1 -1
- package/dist/chunks/{chunk-AWGCGLOI.js → chunk-ANXRYNAK.js} +9 -9
- package/dist/chunks/{chunk-DSFALQPH.js → chunk-CEJFPWFK.js} +3 -3
- package/dist/chunks/{chunk-GKNUQFCL.js → chunk-DA72ZP4M.js} +2 -2
- package/dist/chunks/{chunk-7AMO475U.js → chunk-DAGN4EE3.js} +1 -1
- package/dist/chunks/{chunk-Q7SNI3MR.js → chunk-E5RGUWCC.js} +4 -4
- package/dist/chunks/{chunk-QXNL5CXB.js → chunk-FZH4EQ5F.js} +1 -1
- package/dist/chunks/{chunk-Y47QSCFW.js → chunk-JT5PZTTL.js} +2 -2
- package/dist/chunks/{chunk-U6BGUGCJ.js → chunk-K7XXX2QK.js} +6 -6
- package/dist/chunks/{chunk-SS3J4F4P.js → chunk-KBP75KL6.js} +42 -42
- package/dist/chunks/{chunk-QD5M7DQO.js → chunk-PSE4IQFJ.js} +5 -5
- package/dist/chunks/{chunk-TWS37A46.js → chunk-S2H2DLDA.js} +1 -1
- package/dist/chunks/{chunk-23DHAXV3.js → chunk-SXRQZ62D.js} +11 -11
- package/dist/chunks/{chunk-NZJPVJXS.js → chunk-UQVIUPLO.js} +5 -5
- package/dist/chunks/{chunk-B4ZUZF5G.js → chunk-WOUZE2IL.js} +4 -4
- package/dist/chunks/{chunk-WESZZZEP.js → chunk-ZGKZRT5E.js} +2 -2
- package/dist/chunks/{client-3QLT6NED.js → client-NWZKZSCZ.js} +1 -1
- package/dist/chunks/{client-A5UF3HLS.js → client-O6EPGQH7.js} +2 -2
- package/dist/chunks/{client-3JQM2OIO.js → client-PLIXYI2C.js} +3 -3
- package/dist/chunks/{client-actions-Z462QF5C.js → client-actions-WDXO6WVK.js} +5 -5
- package/dist/chunks/{dangerous-XIRHDRTC.js → dangerous-AKSB3G3X.js} +3 -3
- package/dist/chunks/{delete-current-file-HAOLWXXO.js → delete-current-file-4ZH5Y6GU.js} +5 -5
- package/dist/chunks/{editor-seams-ORIBEUWW.js → editor-seams-LVFSI3PN.js} +12 -12
- package/dist/chunks/{editor-store-2WVOBH4J.js → editor-store-QMMWBNZY.js} +1 -1
- package/dist/chunks/{export-watermark-IDXJQ6JI.js → export-watermark-KIVAPYV5.js} +5 -5
- package/dist/chunks/{eyedropper-WKLUQFRU.js → eyedropper-HV54VQ4K.js} +1 -1
- package/dist/chunks/{generate-media-EWLPFCDG.js → generate-media-LVMYLGIY.js} +3 -3
- package/dist/chunks/{host-2X4KIPPZ.js → host-FIC67WX5.js} +6 -6
- package/dist/chunks/{integrations-5UPUSU5J.js → integrations-HIAJ7WJX.js} +1 -1
- package/dist/chunks/{libraries-PL3B6RIH.js → libraries-ICVUM4YU.js} +5 -5
- package/dist/chunks/{live-OEYNGZGD.js → live-HHQXI6HV.js} +1 -1
- package/dist/chunks/{media-tool-BRA56Z5L.js → media-tool-ZRGZQRZS.js} +1 -1
- package/dist/chunks/{new-file-I7SYDP3Y.js → new-file-4YCUK3VO.js} +3 -3
- package/dist/chunks/{plugin-3QX3KLXW.js → plugin-AYYWXETJ.js} +2 -2
- package/dist/chunks/{plugin-import-FZZGUZY4.js → plugin-import-FMOPPPTJ.js} +16 -16
- package/dist/chunks/{presence-AHPZVPHB.js → presence-KEBTDQXT.js} +2 -2
- package/dist/chunks/{project-IPE4HU3S.js → project-JYXWKPPC.js} +1 -1
- package/dist/chunks/{publish-site-CXEXFYYN.js → publish-site-22AO6WB2.js} +6 -6
- package/dist/chunks/{publish-store-GBCAUZLL.js → publish-store-T4PZHAZ4.js} +4 -4
- package/dist/chunks/{raster-actions-Z65VHMCO.js → raster-actions-HU5XMOMY.js} +1 -1
- package/dist/chunks/{runner-HWSH65JN.js → runner-I77KVE7R.js} +18 -18
- package/dist/chunks/{store-JX2VK7PW.js → store-VHBJ2RVM.js} +6 -6
- package/dist/chunks/{sync-4WGZPPYD.js → sync-WIYCNBBQ.js} +5 -5
- package/dist/chunks/{tabs-ZANRUXTC.js → tabs-TJNDOWL6.js} +8 -8
- package/dist/chunks/{team-AGPA3Q4K.js → team-L5GB72R7.js} +1 -1
- package/dist/chunks/{team-client-3OYUD2U4.js → team-client-NQFLELMK.js} +1 -1
- package/dist/chunks/{tools-74VWK66O.js → tools-CCDSZ2EP.js} +2 -2
- package/dist/chunks/{ui-commands-6BOC6O2O.js → ui-commands-GSHYDI5Z.js} +12 -12
- package/dist/chunks/{versions-PFOT22BQ.js → versions-4TMQ3JO7.js} +5 -5
- package/dist/index.js +1 -1
- 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-
|
|
952
|
+
const client = await import("./client-NWZKZSCZ.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-
|
|
998
|
+
const { searchStockPhotos } = await import("./client-NWZKZSCZ.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-
|
|
1032
|
+
const client = await import("./client-NWZKZSCZ.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-
|
|
1070
|
+
const { listLibraryMedia } = await import("./client-O6EPGQH7.js");
|
|
1071
1071
|
const q = { ...args };
|
|
1072
1072
|
if (!q.workspace) {
|
|
1073
|
-
const { syncStatus } = await import("./sync-
|
|
1073
|
+
const { syncStatus } = await import("./sync-WIYCNBBQ.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-
|
|
1108
|
+
const { importLibraryPicture } = await import("./client-O6EPGQH7.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-
|
|
1129
|
+
const { libraryBlob, libraryFileName } = await import("./client-O6EPGQH7.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-
|
|
1160
|
+
const { deleteLibraryMedia } = await import("./client-O6EPGQH7.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-
|
|
1174
|
+
const { openFileKey } = await import("./publish-site-22AO6WB2.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-
|
|
1180
|
+
const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-QMMWBNZY.js"), import("./backend-5OR26XPV.js"), import("./integrations-HIAJ7WJX.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-
|
|
1216
|
+
const { publishOpenFile, NoScreens } = await import("./publish-site-22AO6WB2.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-
|
|
1271
|
+
const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-Y2PSSVC7.js"), import("./team-L5GB72R7.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-
|
|
1320
|
+
const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-22AO6WB2.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-
|
|
1325
|
-
const destinations = key ? await (await import("./integrations-
|
|
1324
|
+
const backend = key ? await (await import("./integrations-HIAJ7WJX.js")).siteBackend(key).catch(() => null) : null;
|
|
1325
|
+
const destinations = key ? await (await import("./integrations-HIAJ7WJX.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-
|
|
1356
|
+
const { deployOpenStore } = await import("./publish-store-T4PZHAZ4.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-
|
|
1385
|
+
const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-HNH4PB2I.js"), import("./integrations-HIAJ7WJX.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-
|
|
1426
|
+
const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-HNH4PB2I.js"), import("./publish-site-22AO6WB2.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-
|
|
1452
|
+
const { listResources } = await import("./integrations-HIAJ7WJX.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-
|
|
1487
|
+
const { addDestination, createDestination, createResource } = await import("./integrations-HIAJ7WJX.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-
|
|
1524
|
+
const { deployDestination, listDestinations } = await import("./integrations-HIAJ7WJX.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-
|
|
1558
|
+
const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-HIAJ7WJX.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-
|
|
1597
|
+
const { listSubmissions } = await import("./integrations-HIAJ7WJX.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-
|
|
1622
|
+
const { setSignIn } = await import("./integrations-HIAJ7WJX.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-
|
|
1840
|
+
const { refreshTeamFonts } = await import("./team-client-NQFLELMK.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-
|
|
1867
|
+
const { uploadTeamFont } = await import("./team-client-NQFLELMK.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-
|
|
1889
|
+
const { removeTeamFont } = await import("./team-client-NQFLELMK.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-
|
|
1900
|
+
import("./sync-WIYCNBBQ.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-
|
|
1962
|
+
const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-4ZH5Y6GU.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-
|
|
2075
|
+
import("./sync-WIYCNBBQ.js"),
|
|
2076
2076
|
import("./api-MJP2KJ33.js"),
|
|
2077
2077
|
import("./tab-mode-TWDN4YFP.js"),
|
|
2078
|
-
import("./tabs-
|
|
2079
|
-
import("./sync-
|
|
2078
|
+
import("./tabs-TJNDOWL6.js"),
|
|
2079
|
+
import("./sync-WIYCNBBQ.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-
|
|
4956
|
+
import("./sync-WIYCNBBQ.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-
|
|
5281
|
+
const { useEditorStore } = await import("./editor-store-QMMWBNZY.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-
|
|
5315
|
+
const { useEditorStore } = await import("./editor-store-QMMWBNZY.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-
|
|
5753
|
+
const { useEditorStore } = await import("./editor-store-QMMWBNZY.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-
|
|
6147
|
+
const planWatermark = format !== "png" && await (await import("./export-watermark-KIVAPYV5.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-
|
|
6233
|
+
import("./project-JYXWKPPC.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-
|
|
6327
|
+
import("./project-JYXWKPPC.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-
|
|
6722
|
+
const { regenerateImage } = await import("./client-actions-WDXO6WVK.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-
|
|
11940
|
+
use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-SN6JLCZR.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-
|
|
12760
|
+
import("./plugin-import-FMOPPPTJ.js"),
|
|
12761
12761
|
import("./import-merge-772P4D44.js")
|
|
12762
12762
|
]);
|
|
12763
12763
|
const built = await buildImportedDocument(file);
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
} from "./chunk-B2HNUDGB.js";
|
|
22
22
|
import {
|
|
23
23
|
syncStatus
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-E5RGUWCC.js";
|
|
25
25
|
import {
|
|
26
26
|
usePluginStore
|
|
27
27
|
} from "./chunk-ZJNIMDB7.js";
|
|
28
28
|
import {
|
|
29
29
|
setPluginTabs,
|
|
30
30
|
useEditorStore
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-UQVIUPLO.js";
|
|
32
32
|
import {
|
|
33
33
|
openBeside
|
|
34
34
|
} from "./chunk-IZU62IK5.js";
|
|
@@ -69,7 +69,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
|
|
|
69
69
|
// lib/plugins/api.ts
|
|
70
70
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
71
71
|
async function handlePluginCall(env, method, params = {}) {
|
|
72
|
-
const { dispatchPluginCall } = await import("./plugin-
|
|
72
|
+
const { dispatchPluginCall } = await import("./plugin-AYYWXETJ.js");
|
|
73
73
|
return dispatchPluginCall(env, method, params);
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -586,7 +586,7 @@ async function runPlugin(pluginId, commandId, opts = {}) {
|
|
|
586
586
|
if (!openBeside(url)) throw new Error("The browser blocked the new tab");
|
|
587
587
|
},
|
|
588
588
|
createDocument: async (opts2) => {
|
|
589
|
-
const { createFreshFileOrExplain } = await import("./new-file-
|
|
589
|
+
const { createFreshFileOrExplain } = await import("./new-file-4YCUK3VO.js");
|
|
590
590
|
const created = await createFreshFileOrExplain({}, { name: opts2?.name });
|
|
591
591
|
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})`);
|
|
592
592
|
await useEditorStore.getState().openDocument(created.docId);
|
|
@@ -795,7 +795,7 @@ if (typeof window !== "undefined") {
|
|
|
795
795
|
const name = d.name || "Imported";
|
|
796
796
|
void (async () => {
|
|
797
797
|
try {
|
|
798
|
-
const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-
|
|
798
|
+
const { importViaPlugin, applyPluginLayoutIr } = await import("./plugin-import-FMOPPPTJ.js");
|
|
799
799
|
if (d.ir && typeof d.ir === "object") {
|
|
800
800
|
await applyPluginLayoutIr(d.ir, { mode, name });
|
|
801
801
|
return;
|
|
@@ -6,14 +6,14 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
pluginRun
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CEJFPWFK.js";
|
|
10
10
|
import {
|
|
11
11
|
fileCommands,
|
|
12
12
|
fontTeamRemove,
|
|
13
13
|
integrationConfirmCommands,
|
|
14
14
|
mediaDelete,
|
|
15
15
|
publishCommands
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KBP75KL6.js";
|
|
17
17
|
import {
|
|
18
18
|
external_exports
|
|
19
19
|
} from "./chunk-VPMMB3C2.js";
|
|
@@ -53,7 +53,7 @@ var collabSetSpotlight = defineCommand({
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
run: async ({ on }, ctx) => {
|
|
56
|
-
const { setSpotlight } = await import("./presence-
|
|
56
|
+
const { setSpotlight } = await import("./presence-KEBTDQXT.js");
|
|
57
57
|
setSpotlight(on);
|
|
58
58
|
ctx.notice(on ? "Spotlight on \u2014 everyone is following this view." : "Spotlight off.");
|
|
59
59
|
return { summary: on ? "Spotlight on" : "Spotlight off", data: { spotlight: on } };
|
|
@@ -80,7 +80,7 @@ var collabRevealPrivate = defineCommand({
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
run: async (_p, ctx) => {
|
|
83
|
-
const { useEditorStore } = await import("./editor-store-
|
|
83
|
+
const { useEditorStore } = await import("./editor-store-QMMWBNZY.js");
|
|
84
84
|
const before = Object.values(useEditorStore.getState().document.nodes).filter((n) => n.privateTo).length;
|
|
85
85
|
useEditorStore.getState().revealPrivate();
|
|
86
86
|
ctx.notice(before ? `Revealed ${before} private item${before === 1 ? "" : "s"}.` : "Nothing was private.");
|
|
@@ -144,7 +144,7 @@ var documentDelete = defineCommand({
|
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
run: async ({ id }, ctx) => {
|
|
147
|
-
const { useEditorStore } = await import("./editor-store-
|
|
147
|
+
const { useEditorStore } = await import("./editor-store-QMMWBNZY.js");
|
|
148
148
|
const wasOpen = useEditorStore.getState().document.id === id;
|
|
149
149
|
await useEditorStore.getState().deleteDocument(id);
|
|
150
150
|
ctx.notice("Deleted the document.");
|
|
@@ -188,7 +188,7 @@ var libraryPublish = defineCommand({
|
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
190
|
run: async (p, ctx) => {
|
|
191
|
-
const { publishLibrary } = await import("./libraries-
|
|
191
|
+
const { publishLibrary } = await import("./libraries-ICVUM4YU.js");
|
|
192
192
|
const doc = ctx.doc();
|
|
193
193
|
const pick = {
|
|
194
194
|
componentIds: p.componentIds ?? Object.keys(doc.components ?? {}),
|
|
@@ -220,7 +220,7 @@ var libraryUnpublish = defineCommand({
|
|
|
220
220
|
},
|
|
221
221
|
run: async ({ libraryId }, ctx) => {
|
|
222
222
|
if (!libraryId.trim()) throw new CommandError("Which library? Pass its `libraryId`.", "invalid_params");
|
|
223
|
-
const { unpublishLibrary } = await import("./libraries-
|
|
223
|
+
const { unpublishLibrary } = await import("./libraries-ICVUM4YU.js");
|
|
224
224
|
await unpublishLibrary(libraryId);
|
|
225
225
|
ctx.notice(`Unpublished library ${libraryId}.`);
|
|
226
226
|
return { summary: `Unpublished library ${libraryId}`, data: { libraryId, unpublished: true } };
|
|
@@ -232,8 +232,8 @@ var libraryCommands = [libraryPublish, libraryUnpublish];
|
|
|
232
232
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
233
233
|
async function findVersion(id) {
|
|
234
234
|
const [{ useEditorStore }, { versionLabel }] = await Promise.all([
|
|
235
|
-
import("./editor-store-
|
|
236
|
-
import("./versions-
|
|
235
|
+
import("./editor-store-QMMWBNZY.js"),
|
|
236
|
+
import("./versions-4TMQ3JO7.js")
|
|
237
237
|
]);
|
|
238
238
|
const meta = useEditorStore.getState().versions.find((v) => v.id === id);
|
|
239
239
|
if (!meta) {
|
|
@@ -266,7 +266,7 @@ var versionRestore = defineCommand({
|
|
|
266
266
|
},
|
|
267
267
|
run: async ({ id }) => {
|
|
268
268
|
const found = await findVersion(id);
|
|
269
|
-
const { restoreVersion } = await import("./versions-
|
|
269
|
+
const { restoreVersion } = await import("./versions-4TMQ3JO7.js");
|
|
270
270
|
await restoreVersion(found.meta);
|
|
271
271
|
return { summary: `Restored \u201C${found.label}\u201D`, data: { id, label: found.label, restored: true } };
|
|
272
272
|
}
|
|
@@ -291,7 +291,7 @@ var versionDelete = defineCommand({
|
|
|
291
291
|
},
|
|
292
292
|
run: async ({ id }, ctx) => {
|
|
293
293
|
const found = await findVersion(id);
|
|
294
|
-
const { deleteVersion } = await import("./versions-
|
|
294
|
+
const { deleteVersion } = await import("./versions-4TMQ3JO7.js");
|
|
295
295
|
await deleteVersion(found.meta);
|
|
296
296
|
ctx.notice(`Deleted the version \u201C${found.label}\u201D.`);
|
|
297
297
|
return { summary: `Deleted the version \u201C${found.label}\u201D`, data: { id, label: found.label, deleted: true } };
|
|
@@ -4862,7 +4862,7 @@ function createPopcornSlice(set2, get2) {
|
|
|
4862
4862
|
privateMode: false,
|
|
4863
4863
|
setPrivateMode: (on) => {
|
|
4864
4864
|
set2({ privateMode: on });
|
|
4865
|
-
void import("./presence-
|
|
4865
|
+
void import("./presence-KEBTDQXT.js").then((m) => m.setPresencePrivate(on)).catch(() => {
|
|
4866
4866
|
});
|
|
4867
4867
|
},
|
|
4868
4868
|
/** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
|
|
@@ -6933,7 +6933,7 @@ var useEditorStore = create()(
|
|
|
6933
6933
|
// A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
|
|
6934
6934
|
// Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
|
|
6935
6935
|
duplicateDocument: async (id) => {
|
|
6936
|
-
const { duplicateDocumentToCloud } = await import("./sync-
|
|
6936
|
+
const { duplicateDocumentToCloud } = await import("./sync-WIYCNBBQ.js");
|
|
6937
6937
|
return duplicateDocumentToCloud(id);
|
|
6938
6938
|
},
|
|
6939
6939
|
deleteDocument: async (id) => {
|
|
@@ -10443,9 +10443,9 @@ if (typeof window !== "undefined") {
|
|
|
10443
10443
|
if (typeof window !== "undefined" && navigator.webdriver) {
|
|
10444
10444
|
window.__vpDesign = async (script, o = {}) => {
|
|
10445
10445
|
const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
|
|
10446
|
-
import("./tools-
|
|
10447
|
-
import("./editor-seams-
|
|
10448
|
-
import("./live-
|
|
10446
|
+
import("./tools-CCDSZ2EP.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-22J36YRW.js")).registerBuiltinTools })),
|
|
10447
|
+
import("./editor-seams-LVFSI3PN.js"),
|
|
10448
|
+
import("./live-HHQXI6HV.js")
|
|
10449
10449
|
]);
|
|
10450
10450
|
registerBuiltinTools();
|
|
10451
10451
|
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
|
} from "./chunk-4RRGRQBL.js";
|
|
10
10
|
import {
|
|
11
11
|
notice
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZGKZRT5E.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveChatModel,
|
|
15
15
|
setModelPref,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-U6ZHQH5G.js";
|
|
18
18
|
import {
|
|
19
19
|
useEditorStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UQVIUPLO.js";
|
|
21
21
|
import {
|
|
22
22
|
create
|
|
23
23
|
} from "./chunk-YB2RTI5I.js";
|
|
@@ -1903,7 +1903,7 @@ async function sendMessage(text) {
|
|
|
1903
1903
|
if (!useAgentStore.getState().activeThreadId) newThread();
|
|
1904
1904
|
const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
|
|
1905
1905
|
useAgentStore.setState({ draft: "", draftMentions: [], error: null });
|
|
1906
|
-
const { runTurn } = await import("./runner-
|
|
1906
|
+
const { runTurn } = await import("./runner-I77KVE7R.js");
|
|
1907
1907
|
await runTurn(body, mentions);
|
|
1908
1908
|
}
|
|
1909
1909
|
function stop() {
|
|
@@ -2006,7 +2006,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
|
|
|
2006
2006
|
function subscribeChildTools() {
|
|
2007
2007
|
let dispose;
|
|
2008
2008
|
let cancelled = false;
|
|
2009
|
-
void import("./runner-
|
|
2009
|
+
void import("./runner-I77KVE7R.js").then(({ onChildTool }) => {
|
|
2010
2010
|
const off = onChildTool((report) => {
|
|
2011
2011
|
if (report?.status !== "running" || report.jobId) return;
|
|
2012
2012
|
recordChildTool(report.toolCallId ?? "", report.name);
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
requestImageAction,
|
|
29
29
|
sizeForAspect,
|
|
30
30
|
vectorSupport
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AIRNIQB6.js";
|
|
32
32
|
import {
|
|
33
33
|
useEditorStore
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UQVIUPLO.js";
|
|
35
35
|
import {
|
|
36
36
|
withHistoryGroup
|
|
37
37
|
} from "./chunk-XYXJGZE5.js";
|
|
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
defaultMeasure,
|
|
9
9
|
placePicture
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DA72ZP4M.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-
|
|
125
|
+
const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-QMMWBNZY.js"), import("./media-tool-ZRGZQRZS.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,11 +16,11 @@ import {
|
|
|
16
16
|
requestEmbeddings,
|
|
17
17
|
requestImage,
|
|
18
18
|
requestImageAction
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-AIRNIQB6.js";
|
|
20
|
+
import "./chunk-S2H2DLDA.js";
|
|
21
21
|
import "./chunk-U6ZHQH5G.js";
|
|
22
22
|
import "./chunk-QDH7K5TG.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-FZH4EQ5F.js";
|
|
24
24
|
import "./chunk-N6ZQJYXS.js";
|
|
25
25
|
import "./chunk-A7DXX5A5.js";
|
|
26
26
|
import "./chunk-DFUHSE3I.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
selectedVectorTarget,
|
|
17
17
|
startImageAction,
|
|
18
18
|
startImageGeneration
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZGKZRT5E.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-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-AIRNIQB6.js";
|
|
32
|
+
import "./chunk-S2H2DLDA.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-
|
|
37
|
+
import "./chunk-FZH4EQ5F.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-
|
|
43
|
+
import "./chunk-UQVIUPLO.js";
|
|
44
44
|
import "./chunk-IZU62IK5.js";
|
|
45
45
|
import "./chunk-XYXJGZE5.js";
|
|
46
46
|
import "./chunk-BVEE4DCP.js";
|