@popcraft/kit 0.43.1 → 0.43.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.
- package/dist/chunks/{agent-C2VSTR5O.js → agent-DWD3MUVI.js} +1 -1
- package/dist/chunks/{builtin-TJXXHK52.js → builtin-JNHTYJB5.js} +3 -3
- package/dist/chunks/{buy-credits-R6OKQRV7.js → buy-credits-4RYRQW33.js} +2 -2
- package/dist/chunks/{check-template-YU5WSAI7.js → check-template-TLTNJ5SE.js} +2 -2
- package/dist/chunks/{chunk-WG4RKX6B.js → chunk-AQM5G4SZ.js} +3 -3
- package/dist/chunks/{chunk-B6V7A5RJ.js → chunk-CPSIT7WS.js} +5 -5
- package/dist/chunks/{chunk-KS5JOFAZ.js → chunk-DGBDMVPX.js} +4 -4
- package/dist/chunks/{chunk-IAGYTFXR.js → chunk-EHDBPMCF.js} +2 -2
- package/dist/chunks/{chunk-IMDKO63P.js → chunk-EU23PPJA.js} +2 -2
- package/dist/chunks/{chunk-7DDQUWTV.js → chunk-HN4O6YKJ.js} +4 -4
- package/dist/chunks/{chunk-3R7UXPLU.js → chunk-I3UNEKXB.js} +4 -4
- package/dist/chunks/{chunk-LWO5LQVB.js → chunk-IB4FORRR.js} +41 -41
- package/dist/chunks/{chunk-KFBEUEXO.js → chunk-IYL6P3LU.js} +9 -9
- package/dist/chunks/{chunk-XWWZQWLJ.js → chunk-JBOWSTXI.js} +11 -11
- package/dist/chunks/{chunk-MVKKIXPI.js → chunk-JMT2PHKZ.js} +1 -3
- package/dist/chunks/{chunk-OL7EZZA5.js → chunk-KQMBV6ET.js} +1 -1
- package/dist/chunks/{chunk-7PMMHDSA.js → chunk-MEFIKIIQ.js} +2 -2
- package/dist/chunks/{chunk-CMZ5T7PG.js → chunk-PD4SHPOP.js} +2 -2
- package/dist/chunks/{chunk-L4SGSZZY.js → chunk-RFDC2BRT.js} +1 -1
- package/dist/chunks/{chunk-4KAE6LEY.js → chunk-T5MNIZJM.js} +5 -5
- package/dist/chunks/{chunk-XTXZYBKV.js → chunk-UVP6NOL5.js} +1 -1
- package/dist/chunks/{chunk-QLICXXNA.js → chunk-WZBOY3E6.js} +1 -1
- package/dist/chunks/{chunk-JG2RVAD4.js → chunk-XQUBOSAQ.js} +3 -3
- package/dist/chunks/{client-HJSWUHO3.js → client-6BZVKB3K.js} +1 -1
- package/dist/chunks/{client-C7BOARPK.js → client-AVZYLJ77.js} +2 -2
- package/dist/chunks/{client-VNUMMNOU.js → client-OA26FYFH.js} +3 -3
- package/dist/chunks/{client-actions-SCBHZTEW.js → client-actions-4CCU2QHF.js} +5 -5
- package/dist/chunks/{dangerous-2FCRKKGU.js → dangerous-VW2KHOTS.js} +3 -3
- package/dist/chunks/{delete-current-file-EHOVBESQ.js → delete-current-file-U3XB74RZ.js} +5 -5
- package/dist/chunks/{editor-seams-5MFJYN2R.js → editor-seams-7YQ2KSMI.js} +10 -10
- package/dist/chunks/{editor-store-EXQ4NUHP.js → editor-store-6ZW2Q6Z2.js} +1 -1
- package/dist/chunks/{export-watermark-YO5YR7RY.js → export-watermark-NJ7JYYQA.js} +5 -5
- package/dist/chunks/{eyedropper-UVA7KFPT.js → eyedropper-J7QGKJHJ.js} +1 -1
- package/dist/chunks/{generate-media-EOVEWKZD.js → generate-media-KAUOJZB3.js} +3 -3
- package/dist/chunks/{host-FQVWI4PB.js → host-M2V6EC3F.js} +6 -6
- package/dist/chunks/{integrations-SJRBAKI7.js → integrations-XSVGAZZL.js} +1 -1
- package/dist/chunks/{libraries-VYO4MY7S.js → libraries-RZPDPTB5.js} +5 -5
- package/dist/chunks/{live-SYRHTTHJ.js → live-4ZATZLE5.js} +1 -1
- package/dist/chunks/{media-tool-FI43CHAB.js → media-tool-LIO676E7.js} +1 -1
- package/dist/chunks/{new-file-LQYNFGDE.js → new-file-BEKWC2ID.js} +3 -3
- package/dist/chunks/{plugin-DCUQJPJX.js → plugin-6GQZTTYN.js} +2 -2
- package/dist/chunks/{plugin-import-OG4KSWJX.js → plugin-import-LELFGWL2.js} +14 -14
- package/dist/chunks/{presence-POQZNXHP.js → presence-AQVGUVL5.js} +2 -2
- package/dist/chunks/{project-4JBUGGVO.js → project-WKIITAGS.js} +1 -1
- package/dist/chunks/{publish-site-7DRTOD6G.js → publish-site-AIJ4B33Q.js} +6 -6
- package/dist/chunks/{publish-store-FQZLLXHF.js → publish-store-DE7EU4E4.js} +4 -4
- package/dist/chunks/{raster-actions-3UWZYZL5.js → raster-actions-5VVU55YK.js} +1 -1
- package/dist/chunks/{runner-3RTUVN4I.js → runner-MB6UHFCH.js} +17 -17
- package/dist/chunks/{store-ZAE4ZFBR.js → store-GTLY7MBW.js} +6 -6
- package/dist/chunks/{sync-M3VDSVDV.js → sync-J73EI6LQ.js} +5 -5
- package/dist/chunks/{tabs-ODUUIHY7.js → tabs-RIY4C3EN.js} +8 -8
- package/dist/chunks/{team-CHANDPAZ.js → team-ZK25AB45.js} +1 -1
- package/dist/chunks/{team-client-PFD5CTM5.js → team-client-YX4KB7G4.js} +1 -1
- package/dist/chunks/{tools-KWKL74XR.js → tools-QUK6DSNE.js} +2 -2
- package/dist/chunks/{ui-commands-LYBJTU6K.js → ui-commands-PXIOF5AM.js} +12 -12
- package/dist/chunks/{versions-Q7IZIP74.js → versions-FEPMAB5R.js} +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -7,8 +7,8 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
builtinTools,
|
|
9
9
|
registerBuiltinTools
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-MEFIKIIQ.js";
|
|
11
|
+
import "./chunk-IB4FORRR.js";
|
|
12
12
|
import "./chunk-FP4SRYEY.js";
|
|
13
13
|
import "./chunk-KNZC67UG.js";
|
|
14
14
|
import "./chunk-BYQRWB45.js";
|
|
@@ -19,7 +19,7 @@ import "./chunk-HXLERMCQ.js";
|
|
|
19
19
|
import "./chunk-6RKVV3NE.js";
|
|
20
20
|
import "./chunk-2ISDJ45D.js";
|
|
21
21
|
import "./chunk-LG7DRCNH.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-XQUBOSAQ.js";
|
|
23
23
|
import "./chunk-CJAUQQRO.js";
|
|
24
24
|
import "./chunk-HP7P4BWV.js";
|
|
25
25
|
import "./chunk-IKLFVV7P.js";
|
|
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
HYPERY_TEAM_HEADER,
|
|
9
9
|
hyperyRequestHeaders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RFDC2BRT.js";
|
|
11
11
|
import "./chunk-2NGVUEN2.js";
|
|
12
12
|
import {
|
|
13
13
|
useHyperyTeam
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UVP6NOL5.js";
|
|
15
15
|
import {
|
|
16
16
|
ApiError,
|
|
17
17
|
inAppPurchases,
|
|
@@ -6,10 +6,10 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
appCommands
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IYL6P3LU.js";
|
|
10
10
|
import {
|
|
11
11
|
builtinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IB4FORRR.js";
|
|
13
13
|
import "./chunk-FP4SRYEY.js";
|
|
14
14
|
import "./chunk-KNZC67UG.js";
|
|
15
15
|
import "./chunk-BYQRWB45.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
hostEnv,
|
|
10
10
|
plain,
|
|
11
11
|
registerBuiltinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IB4FORRR.js";
|
|
13
13
|
import {
|
|
14
14
|
storeOpsSeam
|
|
15
15
|
} from "./chunk-GVWPXTIW.js";
|
|
@@ -573,7 +573,7 @@ var commands = [
|
|
|
573
573
|
const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { zipFiles }, { EXPORT_NODE_CAP }] = await Promise.all([
|
|
574
574
|
import("./storefront-prepare-E3AJSP4V.js"),
|
|
575
575
|
import("./storefront-OZITTKUL.js"),
|
|
576
|
-
import("./project-
|
|
576
|
+
import("./project-WKIITAGS.js"),
|
|
577
577
|
import("./zip-export-G3YESV6Z.js"),
|
|
578
578
|
import("./tree-ZGCJTEFA.js")
|
|
579
579
|
]);
|
|
@@ -770,7 +770,7 @@ var pluginRun = defineCommand({
|
|
|
770
770
|
}
|
|
771
771
|
},
|
|
772
772
|
run: async (p, ctx) => {
|
|
773
|
-
const { runPlugin } = await import("./host-
|
|
773
|
+
const { runPlugin } = await import("./host-M2V6EC3F.js");
|
|
774
774
|
await runPlugin(p.pluginId, p.commandId);
|
|
775
775
|
ctx.notice(`Started ${p.pluginId}.`);
|
|
776
776
|
return {
|
|
@@ -4582,7 +4582,7 @@ function createPopcornSlice(set2, get2) {
|
|
|
4582
4582
|
privateMode: false,
|
|
4583
4583
|
setPrivateMode: (on) => {
|
|
4584
4584
|
set2({ privateMode: on });
|
|
4585
|
-
void import("./presence-
|
|
4585
|
+
void import("./presence-AQVGUVL5.js").then((m) => m.setPresencePrivate(on)).catch(() => {
|
|
4586
4586
|
});
|
|
4587
4587
|
},
|
|
4588
4588
|
/** Reveal every private item THIS user created (they sync to collaborators). Others' stay theirs. */
|
|
@@ -6638,7 +6638,7 @@ var useEditorStore = create()(
|
|
|
6638
6638
|
// A copy is a new file, so it is cloud-backed like any other (see lib/client/cloud/new-file.ts).
|
|
6639
6639
|
// Returns '' when it was refused (offline, signed out, plan full) or failed; nothing is left behind.
|
|
6640
6640
|
duplicateDocument: async (id) => {
|
|
6641
|
-
const { duplicateDocumentToCloud } = await import("./sync-
|
|
6641
|
+
const { duplicateDocumentToCloud } = await import("./sync-J73EI6LQ.js");
|
|
6642
6642
|
return duplicateDocumentToCloud(id);
|
|
6643
6643
|
},
|
|
6644
6644
|
deleteDocument: async (id) => {
|
|
@@ -10100,9 +10100,9 @@ if (typeof window !== "undefined") {
|
|
|
10100
10100
|
if (typeof window !== "undefined" && navigator.webdriver) {
|
|
10101
10101
|
window.__vpDesign = async (script, o = {}) => {
|
|
10102
10102
|
const [{ registerBuiltinTools, runTool }, { editorToolContext }, { createDesignPreview }] = await Promise.all([
|
|
10103
|
-
import("./tools-
|
|
10104
|
-
import("./editor-seams-
|
|
10105
|
-
import("./live-
|
|
10103
|
+
import("./tools-QUK6DSNE.js").then(async (m) => ({ ...m, registerBuiltinTools: (await import("./builtin-JNHTYJB5.js")).registerBuiltinTools })),
|
|
10104
|
+
import("./editor-seams-7YQ2KSMI.js"),
|
|
10105
|
+
import("./live-4ZATZLE5.js")
|
|
10106
10106
|
]);
|
|
10107
10107
|
registerBuiltinTools();
|
|
10108
10108
|
const args = JSON.stringify({ ...o.name ? { name: o.name } : {}, ...o.size ? { size: o.size } : {}, ...o.frame ? { frame: o.frame } : {}, script });
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
} from "./chunk-L34RO4NA.js";
|
|
21
21
|
import {
|
|
22
22
|
notice
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EHDBPMCF.js";
|
|
24
24
|
import {
|
|
25
25
|
agentContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XQUBOSAQ.js";
|
|
27
27
|
import {
|
|
28
28
|
collabSession,
|
|
29
29
|
syncStatus
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HN4O6YKJ.js";
|
|
31
31
|
import {
|
|
32
32
|
loadEntitlements
|
|
33
33
|
} from "./chunk-2NGVUEN2.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-2CEEDVFE.js";
|
|
37
37
|
import {
|
|
38
38
|
useEditorStore
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-CPSIT7WS.js";
|
|
40
40
|
import {
|
|
41
41
|
getActiveRenderer
|
|
42
42
|
} from "./chunk-IVNQG76O.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
requestImageAction,
|
|
17
17
|
sizeForAspect,
|
|
18
18
|
vectorSupport
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JMT2PHKZ.js";
|
|
20
20
|
import {
|
|
21
21
|
external_exports
|
|
22
22
|
} from "./chunk-LG7DRCNH.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-4E365KXP.js";
|
|
32
32
|
import {
|
|
33
33
|
useEditorStore
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-CPSIT7WS.js";
|
|
35
35
|
import {
|
|
36
36
|
withHistoryGroup
|
|
37
37
|
} from "./chunk-WLHDRYWM.js";
|
|
@@ -91,9 +91,9 @@ async function placeStockPhoto(photo, opts = {}) {
|
|
|
91
91
|
}
|
|
92
92
|
async function placePicture(imported, opts = {}) {
|
|
93
93
|
const [{ useEditorStore }, { photoFrameOf }, { placeImage }] = await Promise.all([
|
|
94
|
-
import("./editor-store-
|
|
94
|
+
import("./editor-store-6ZW2Q6Z2.js"),
|
|
95
95
|
import("../lib/document/photo-frames.js"),
|
|
96
|
-
import("./media-tool-
|
|
96
|
+
import("./media-tool-LIO676E7.js")
|
|
97
97
|
]);
|
|
98
98
|
const st = useEditorStore.getState();
|
|
99
99
|
const frame = photoFrameOf(st.document.nodes, opts.targetId !== void 0 ? opts.targetId : st.selection[0] ?? null);
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
newFileRefusal,
|
|
15
15
|
reportNewFileBlocked,
|
|
16
16
|
setCloudLink
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PD4SHPOP.js";
|
|
18
18
|
import {
|
|
19
19
|
parseDeepLink,
|
|
20
20
|
withDeepLink
|
|
21
21
|
} from "./chunk-Z56Z7JCB.js";
|
|
22
22
|
import {
|
|
23
23
|
activeTeamWorkspaceId
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UVP6NOL5.js";
|
|
25
25
|
import {
|
|
26
26
|
ApiError,
|
|
27
27
|
api,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-2CEEDVFE.js";
|
|
30
30
|
import {
|
|
31
31
|
attachPresence
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-KQMBV6ET.js";
|
|
33
33
|
import {
|
|
34
34
|
isPersistableDocument,
|
|
35
35
|
isUnsavedPlaceholder,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
setCollabHistory,
|
|
41
41
|
storedDocument,
|
|
42
42
|
useEditorStore
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-CPSIT7WS.js";
|
|
44
44
|
import {
|
|
45
45
|
currentHistoryGroup
|
|
46
46
|
} from "./chunk-WLHDRYWM.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-5TJENPVP.js";
|
|
10
10
|
import {
|
|
11
11
|
notice
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EHDBPMCF.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveChatModel,
|
|
15
15
|
setModelPref,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-7ZG6LPNA.js";
|
|
18
18
|
import {
|
|
19
19
|
useEditorStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CPSIT7WS.js";
|
|
21
21
|
import {
|
|
22
22
|
create
|
|
23
23
|
} from "./chunk-GGHJRQSQ.js";
|
|
@@ -1797,7 +1797,7 @@ async function sendMessage(text) {
|
|
|
1797
1797
|
if (!useAgentStore.getState().activeThreadId) newThread();
|
|
1798
1798
|
const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
|
|
1799
1799
|
useAgentStore.setState({ draft: "", draftMentions: [], error: null });
|
|
1800
|
-
const { runTurn } = await import("./runner-
|
|
1800
|
+
const { runTurn } = await import("./runner-MB6UHFCH.js");
|
|
1801
1801
|
await runTurn(body, mentions);
|
|
1802
1802
|
}
|
|
1803
1803
|
function stop() {
|
|
@@ -1900,7 +1900,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
|
|
|
1900
1900
|
function subscribeChildTools() {
|
|
1901
1901
|
let dispose;
|
|
1902
1902
|
let cancelled = false;
|
|
1903
|
-
void import("./runner-
|
|
1903
|
+
void import("./runner-MB6UHFCH.js").then(({ onChildTool }) => {
|
|
1904
1904
|
const off = onChildTool((report) => {
|
|
1905
1905
|
if (report?.status !== "running" || report.jobId) return;
|
|
1906
1906
|
recordChildTool(report.toolCallId ?? "", report.name);
|
|
@@ -862,7 +862,7 @@ init_scene_graph();
|
|
|
862
862
|
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.");
|
|
863
863
|
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 });
|
|
864
864
|
async function placeImportedPicture(ctx, imported, at, what, extra = {}) {
|
|
865
|
-
const client = await import("./client-
|
|
865
|
+
const client = await import("./client-6BZVKB3K.js");
|
|
866
866
|
if (at.fillLayerId) {
|
|
867
867
|
const doc2 = ctx.doc();
|
|
868
868
|
const target = nodeOrThrow(doc2, at.fillLayerId);
|
|
@@ -908,7 +908,7 @@ var photoSearch = defineCommand({
|
|
|
908
908
|
}
|
|
909
909
|
},
|
|
910
910
|
run: async (args) => {
|
|
911
|
-
const { searchStockPhotos } = await import("./client-
|
|
911
|
+
const { searchStockPhotos } = await import("./client-6BZVKB3K.js");
|
|
912
912
|
const page = await searchStockPhotos(args.query, args.page ?? 1, { licence: args.licence });
|
|
913
913
|
return {
|
|
914
914
|
summary: `${page.results.length} photo${page.results.length === 1 ? "" : "s"} for \u201C${page.query}\u201D (page ${page.page} of ${page.pageCount || 1})`,
|
|
@@ -942,7 +942,7 @@ var photoInsert = defineCommand({
|
|
|
942
942
|
run: async (args, ctx) => {
|
|
943
943
|
if (!args.id && !args.query) throw new ToolError("Pass an id from search_photos, or a query.");
|
|
944
944
|
if (args.id && !isPhotoId(args.id)) throw new ToolError(`"${args.id}" is not a photo id from search_photos.`);
|
|
945
|
-
const client = await import("./client-
|
|
945
|
+
const client = await import("./client-6BZVKB3K.js");
|
|
946
946
|
let photo;
|
|
947
947
|
if (args.id) photo = await client.stockPhotoInfo(args.id);
|
|
948
948
|
else {
|
|
@@ -980,7 +980,7 @@ var mediaList = defineCommand({
|
|
|
980
980
|
}
|
|
981
981
|
},
|
|
982
982
|
run: async (args) => {
|
|
983
|
-
const { listLibraryMedia } = await import("./client-
|
|
983
|
+
const { listLibraryMedia } = await import("./client-AVZYLJ77.js");
|
|
984
984
|
const page = await listLibraryMedia(args);
|
|
985
985
|
return { summary: `${page.items.length} media item${page.items.length === 1 ? "" : "s"}${page.nextCursor ? " (more)" : ""}`, data: { workspaceId: page.workspaceId, items: page.items.map(brief3), nextCursor: page.nextCursor } };
|
|
986
986
|
}
|
|
@@ -1011,7 +1011,7 @@ var mediaInsert = defineCommand({
|
|
|
1011
1011
|
run: async (args, ctx) => {
|
|
1012
1012
|
const contentType = args.contentType ?? "image/*";
|
|
1013
1013
|
if (!contentType.startsWith("image/")) throw new ToolError("insert_media places pictures; this item is not one.");
|
|
1014
|
-
const { importLibraryPicture } = await import("./client-
|
|
1014
|
+
const { importLibraryPicture } = await import("./client-AVZYLJ77.js");
|
|
1015
1015
|
const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "Media", contentType, size: 0, createdAt: "", fileCount: 1, source: null };
|
|
1016
1016
|
const imported = await importLibraryPicture(item);
|
|
1017
1017
|
return placeImportedPicture(ctx, imported, args, `\u201C${imported.name}\u201D`, { hash: imported.hash });
|
|
@@ -1032,7 +1032,7 @@ var mediaDownload = defineCommand({
|
|
|
1032
1032
|
// The Library's right-click menu: saves the item's file to the computer.
|
|
1033
1033
|
expose: { ui: { label: "Download", palette: false } },
|
|
1034
1034
|
run: async (args) => {
|
|
1035
|
-
const { libraryBlob, libraryFileName } = await import("./client-
|
|
1035
|
+
const { libraryBlob, libraryFileName } = await import("./client-AVZYLJ77.js");
|
|
1036
1036
|
const { downloadBlob } = await import("./download-SDJKF5TV.js");
|
|
1037
1037
|
const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "media", contentType: args.contentType ?? "", size: 0, createdAt: "", fileCount: 1, source: null };
|
|
1038
1038
|
const blob = await libraryBlob(item);
|
|
@@ -1063,7 +1063,7 @@ var mediaDelete = defineCommand({
|
|
|
1063
1063
|
}
|
|
1064
1064
|
},
|
|
1065
1065
|
run: async (args) => {
|
|
1066
|
-
const { deleteLibraryMedia } = await import("./client-
|
|
1066
|
+
const { deleteLibraryMedia } = await import("./client-AVZYLJ77.js");
|
|
1067
1067
|
const out = await deleteLibraryMedia(args.workspace, args.hash);
|
|
1068
1068
|
return { summary: `Deleted it from the library (it was in ${out.files} file${out.files === 1 ? "" : "s"})`, data: out };
|
|
1069
1069
|
}
|
|
@@ -1077,13 +1077,13 @@ async function signedIn() {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
async function publishedFile() {
|
|
1079
1079
|
await signedIn();
|
|
1080
|
-
const { openFileKey } = await import("./publish-site-
|
|
1080
|
+
const { openFileKey } = await import("./publish-site-AIJ4B33Q.js");
|
|
1081
1081
|
const key = openFileKey();
|
|
1082
1082
|
if (!key) throw new CommandError("This file is not saved to the cloud yet, so it has no site. Publish it first.", "failed");
|
|
1083
1083
|
return key;
|
|
1084
1084
|
}
|
|
1085
1085
|
async function formsWithoutDatabase(key) {
|
|
1086
|
-
const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-
|
|
1086
|
+
const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-6ZW2Q6Z2.js"), import("./backend-TS2J7UOS.js"), import("./integrations-XSVGAZZL.js")]);
|
|
1087
1087
|
const doc2 = useEditorStore.getState().document;
|
|
1088
1088
|
if (!usesForms(doc2)) return false;
|
|
1089
1089
|
return formsGoNowhere(doc2, await siteBackend(key).catch(() => void 0));
|
|
@@ -1119,7 +1119,7 @@ var publishSite = defineCommand({
|
|
|
1119
1119
|
const { cleanSlug } = await import("./rules-BWDYLPDO.js");
|
|
1120
1120
|
const address = p.address === void 0 ? void 0 : cleanSlug(p.address);
|
|
1121
1121
|
if (address === null) throw new CommandError("That cannot be a site address: use 3 to 40 letters, digits and dashes.", "invalid_params");
|
|
1122
|
-
const { publishOpenFile, NoScreens } = await import("./publish-site-
|
|
1122
|
+
const { publishOpenFile, NoScreens } = await import("./publish-site-AIJ4B33Q.js");
|
|
1123
1123
|
try {
|
|
1124
1124
|
const done = await publishOpenFile(address);
|
|
1125
1125
|
ctx.notice(`Published version ${done.version}: ${done.url}`);
|
|
@@ -1174,7 +1174,7 @@ var publishListSites = defineCommand({
|
|
|
1174
1174
|
},
|
|
1175
1175
|
run: async (p) => {
|
|
1176
1176
|
await signedIn();
|
|
1177
|
-
const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-I6KIEVJF.js"), import("./team-
|
|
1177
|
+
const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-I6KIEVJF.js"), import("./team-ZK25AB45.js")]);
|
|
1178
1178
|
const workspaceId = p.workspaceId ?? activeTeamWorkspaceId() ?? useHyperyTeam.getState().personalWorkspaceId;
|
|
1179
1179
|
if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
|
|
1180
1180
|
const out = await workspaceSites(workspaceId);
|
|
@@ -1223,12 +1223,12 @@ var publishStatus = defineCommand({
|
|
|
1223
1223
|
},
|
|
1224
1224
|
run: async () => {
|
|
1225
1225
|
await signedIn();
|
|
1226
|
-
const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-
|
|
1226
|
+
const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-AIJ4B33Q.js"), import("./sites-I6KIEVJF.js")]);
|
|
1227
1227
|
const key = openFileKey();
|
|
1228
1228
|
const status = await siteStatus(key);
|
|
1229
1229
|
const site = status.site;
|
|
1230
|
-
const backend = key ? await (await import("./integrations-
|
|
1231
|
-
const destinations = key ? await (await import("./integrations-
|
|
1230
|
+
const backend = key ? await (await import("./integrations-XSVGAZZL.js")).siteBackend(key).catch(() => null) : null;
|
|
1231
|
+
const destinations = key ? await (await import("./integrations-XSVGAZZL.js")).listDestinations(key).catch(() => []) : [];
|
|
1232
1232
|
return {
|
|
1233
1233
|
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}`,
|
|
1234
1234
|
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 })) }
|
|
@@ -1259,7 +1259,7 @@ var publishStore = defineCommand({
|
|
|
1259
1259
|
},
|
|
1260
1260
|
run: async (p, ctx) => {
|
|
1261
1261
|
await signedIn();
|
|
1262
|
-
const { deployOpenStore } = await import("./publish-store-
|
|
1262
|
+
const { deployOpenStore } = await import("./publish-store-DE7EU4E4.js");
|
|
1263
1263
|
const done = await deployOpenStore(ctx.doc(), ctx.pageId(), { destinationId: p.destinationId }).catch((e) => {
|
|
1264
1264
|
throw new CommandError(e instanceof Error ? e.message : String(e), "failed");
|
|
1265
1265
|
});
|
|
@@ -1288,7 +1288,7 @@ var integrationList = defineCommand({
|
|
|
1288
1288
|
}
|
|
1289
1289
|
},
|
|
1290
1290
|
run: async ({ capability }) => {
|
|
1291
|
-
const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-4YYGYPFS.js"), import("./integrations-
|
|
1291
|
+
const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-4YYGYPFS.js"), import("./integrations-XSVGAZZL.js")]);
|
|
1292
1292
|
if (!cloudUser()) throw new CommandError("You are not signed in: integrations belong to your account's workspace.", "denied");
|
|
1293
1293
|
const workspaceId = integrationsWorkspaceId();
|
|
1294
1294
|
if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
|
|
@@ -1329,7 +1329,7 @@ var integrationOpen = defineCommand({
|
|
|
1329
1329
|
}
|
|
1330
1330
|
});
|
|
1331
1331
|
async function openFile() {
|
|
1332
|
-
const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-4YYGYPFS.js"), import("./publish-site-
|
|
1332
|
+
const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-4YYGYPFS.js"), import("./publish-site-AIJ4B33Q.js")]);
|
|
1333
1333
|
if (!cloudUser()) throw new CommandError("You are not signed in.", "denied");
|
|
1334
1334
|
const key = openFileKey();
|
|
1335
1335
|
if (!key) throw new CommandError("This file is not saved to the cloud yet. Publish it first (publish_site).", "failed");
|
|
@@ -1355,7 +1355,7 @@ var integrationListResources = defineCommand({
|
|
|
1355
1355
|
}
|
|
1356
1356
|
},
|
|
1357
1357
|
run: async ({ connectionId, capability, path }) => {
|
|
1358
|
-
const { listResources } = await import("./integrations-
|
|
1358
|
+
const { listResources } = await import("./integrations-XSVGAZZL.js");
|
|
1359
1359
|
const list = await listResources(connectionId, capability, asPath2(path));
|
|
1360
1360
|
return {
|
|
1361
1361
|
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",
|
|
@@ -1390,7 +1390,7 @@ var integrationAddDestination = defineCommand({
|
|
|
1390
1390
|
},
|
|
1391
1391
|
run: async (p, ctx) => {
|
|
1392
1392
|
const key = await openFile();
|
|
1393
|
-
const { addDestination, createDestination, createResource } = await import("./integrations-
|
|
1393
|
+
const { addDestination, createDestination, createResource } = await import("./integrations-XSVGAZZL.js");
|
|
1394
1394
|
let made;
|
|
1395
1395
|
if (p.create) made = await createDestination(key, p.capability, void 0, p.connectionId);
|
|
1396
1396
|
else {
|
|
@@ -1427,7 +1427,7 @@ var integrationDeploy = defineCommand({
|
|
|
1427
1427
|
},
|
|
1428
1428
|
run: async (p, ctx) => {
|
|
1429
1429
|
const key = await openFile();
|
|
1430
|
-
const { deployDestination, listDestinations } = await import("./integrations-
|
|
1430
|
+
const { deployDestination, listDestinations } = await import("./integrations-XSVGAZZL.js");
|
|
1431
1431
|
const all = await listDestinations(key);
|
|
1432
1432
|
const dest = p.destinationId ? all.find((d) => d.id === p.destinationId) : all.length === 1 ? all[0] : void 0;
|
|
1433
1433
|
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");
|
|
@@ -1461,7 +1461,7 @@ var integrationAttachDatabase = defineCommand({
|
|
|
1461
1461
|
},
|
|
1462
1462
|
run: async (p, ctx) => {
|
|
1463
1463
|
const key = await openFile();
|
|
1464
|
-
const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-
|
|
1464
|
+
const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-XSVGAZZL.js");
|
|
1465
1465
|
if (p.create) return attached(await createDatabase(key, void 0, p.connectionId), ctx);
|
|
1466
1466
|
if (!p.connectionId || !p.target) throw new CommandError("Say connectionId and target, or create: true.", "invalid_params");
|
|
1467
1467
|
let target = asPath2(p.target);
|
|
@@ -1500,7 +1500,7 @@ var integrationSubmissions = defineCommand({
|
|
|
1500
1500
|
},
|
|
1501
1501
|
run: async ({ form, limit }) => {
|
|
1502
1502
|
const key = await openFile();
|
|
1503
|
-
const { listSubmissions } = await import("./integrations-
|
|
1503
|
+
const { listSubmissions } = await import("./integrations-XSVGAZZL.js");
|
|
1504
1504
|
const rows = await listSubmissions(key, { form, limit: limit ?? 20 });
|
|
1505
1505
|
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 } };
|
|
1506
1506
|
}
|
|
@@ -1525,7 +1525,7 @@ var integrationSetSignIn = defineCommand({
|
|
|
1525
1525
|
},
|
|
1526
1526
|
run: async ({ on }, ctx) => {
|
|
1527
1527
|
const key = await openFile();
|
|
1528
|
-
const { setSignIn } = await import("./integrations-
|
|
1528
|
+
const { setSignIn } = await import("./integrations-XSVGAZZL.js");
|
|
1529
1529
|
const done = await setSignIn(key, on);
|
|
1530
1530
|
ctx.notice(on ? "Visitors can sign in." : "Sign-in is off.");
|
|
1531
1531
|
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 } };
|
|
@@ -1743,7 +1743,7 @@ var fontTeamList = defineCommand({
|
|
|
1743
1743
|
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)." }
|
|
1744
1744
|
},
|
|
1745
1745
|
run: async (args) => {
|
|
1746
|
-
const { refreshTeamFonts } = await import("./team-client-
|
|
1746
|
+
const { refreshTeamFonts } = await import("./team-client-YX4KB7G4.js");
|
|
1747
1747
|
const fonts = await refreshTeamFonts(args.workspace);
|
|
1748
1748
|
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 })) } };
|
|
1749
1749
|
}
|
|
@@ -1770,7 +1770,7 @@ var fontTeamAdd = defineCommand({
|
|
|
1770
1770
|
run: async (args, ctx) => {
|
|
1771
1771
|
const { bytes, fileName: fileName2 } = await fontBytes(args, ctx);
|
|
1772
1772
|
const { face, family, weight, style } = await resolveFace(bytes, args);
|
|
1773
|
-
const { uploadTeamFont } = await import("./team-client-
|
|
1773
|
+
const { uploadTeamFont } = await import("./team-client-YX4KB7G4.js");
|
|
1774
1774
|
const font = await uploadTeamFont(bytes, { family, weight, style, face: face.index, fileName: fileName2 }, args.workspace);
|
|
1775
1775
|
return { summary: `Added ${family} ${weight}${style === "italic" ? " italic" : ""} to the team`, data: { font } };
|
|
1776
1776
|
}
|
|
@@ -1792,7 +1792,7 @@ var fontTeamRemove = defineCommand({
|
|
|
1792
1792
|
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." }
|
|
1793
1793
|
},
|
|
1794
1794
|
run: async (args) => {
|
|
1795
|
-
const { removeTeamFont } = await import("./team-client-
|
|
1795
|
+
const { removeTeamFont } = await import("./team-client-YX4KB7G4.js");
|
|
1796
1796
|
const out = await removeTeamFont(args.id, args.workspace);
|
|
1797
1797
|
return { summary: `Removed the team font${out.freed ? " and freed its storage" : ""}`, data: out };
|
|
1798
1798
|
}
|
|
@@ -1803,7 +1803,7 @@ var fontTeamCommands = [fontTeamList, fontTeamAdd];
|
|
|
1803
1803
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1804
1804
|
async function cloudFile() {
|
|
1805
1805
|
const [{ syncStatus }, { cloudUser }] = await Promise.all([
|
|
1806
|
-
import("./sync-
|
|
1806
|
+
import("./sync-J73EI6LQ.js"),
|
|
1807
1807
|
import("./session-4YYGYPFS.js")
|
|
1808
1808
|
]);
|
|
1809
1809
|
const link2 = syncStatus().link;
|
|
@@ -1865,7 +1865,7 @@ var fileTrash = defineCommand({
|
|
|
1865
1865
|
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." }
|
|
1866
1866
|
},
|
|
1867
1867
|
run: async () => {
|
|
1868
|
-
const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-
|
|
1868
|
+
const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-U3XB74RZ.js");
|
|
1869
1869
|
const { name: name2, kind } = await deleteCurrentFile();
|
|
1870
1870
|
leaveDeletedFile();
|
|
1871
1871
|
return { summary: kind === "cloud" ? `Moved \u201C${name2}\u201D to the Trash` : `Deleted \u201C${name2}\u201D` };
|
|
@@ -1978,11 +1978,11 @@ var fileDuplicate = defineCommand({
|
|
|
1978
1978
|
},
|
|
1979
1979
|
run: async (_p, ctx) => {
|
|
1980
1980
|
const [{ syncStatus }, { cloudApi }, { isDesktopTabs }, { createFileInTab }, { openNewCloudFile }, { v4: uuid }] = await Promise.all([
|
|
1981
|
-
import("./sync-
|
|
1981
|
+
import("./sync-J73EI6LQ.js"),
|
|
1982
1982
|
import("./api-NZJNP2BM.js"),
|
|
1983
1983
|
import("./tab-mode-R66TREOJ.js"),
|
|
1984
|
-
import("./tabs-
|
|
1985
|
-
import("./sync-
|
|
1984
|
+
import("./tabs-RIY4C3EN.js"),
|
|
1985
|
+
import("./sync-J73EI6LQ.js"),
|
|
1986
1986
|
import("./dist-node-OU7DMMAN.js")
|
|
1987
1987
|
]);
|
|
1988
1988
|
const doc2 = ctx.doc();
|
|
@@ -4598,7 +4598,7 @@ var viewCopyLink = defineCommand({
|
|
|
4598
4598
|
},
|
|
4599
4599
|
run: async (args, ctx) => {
|
|
4600
4600
|
const [{ syncStatus }, { fileUrl }, { withDeepLink }] = await Promise.all([
|
|
4601
|
-
import("./sync-
|
|
4601
|
+
import("./sync-J73EI6LQ.js"),
|
|
4602
4602
|
import("./api-NZJNP2BM.js"),
|
|
4603
4603
|
import("./deep-link-2FWUSFVO.js")
|
|
4604
4604
|
]);
|
|
@@ -4923,7 +4923,7 @@ var pageGo = defineCommand({
|
|
|
4923
4923
|
] }
|
|
4924
4924
|
},
|
|
4925
4925
|
run: async ({ to }) => {
|
|
4926
|
-
const { useEditorStore } = await import("./editor-store-
|
|
4926
|
+
const { useEditorStore } = await import("./editor-store-6ZW2Q6Z2.js");
|
|
4927
4927
|
useEditorStore.getState().goToPrintPage(to);
|
|
4928
4928
|
return { summary: typeof to === "number" ? `Page ${to + 1}` : `${to} page` };
|
|
4929
4929
|
}
|
|
@@ -4957,7 +4957,7 @@ var pageSetup = defineCommand({
|
|
|
4957
4957
|
}
|
|
4958
4958
|
},
|
|
4959
4959
|
run: async (args) => {
|
|
4960
|
-
const { useEditorStore } = await import("./editor-store-
|
|
4960
|
+
const { useEditorStore } = await import("./editor-store-6ZW2Q6Z2.js");
|
|
4961
4961
|
useEditorStore.getState().applyPageSetup(args);
|
|
4962
4962
|
return { summary: `Page setup updated${args.kind ? ` (${args.kind.toLowerCase()})` : ""}` };
|
|
4963
4963
|
}
|
|
@@ -5716,7 +5716,7 @@ async function docAtTime(doc2, ids, time2) {
|
|
|
5716
5716
|
let frameId;
|
|
5717
5717
|
if (time2 === void 0) {
|
|
5718
5718
|
try {
|
|
5719
|
-
const { useEditorStore } = await import("./editor-store-
|
|
5719
|
+
const { useEditorStore } = await import("./editor-store-6ZW2Q6Z2.js");
|
|
5720
5720
|
const st = useEditorStore.getState();
|
|
5721
5721
|
const target = st.transport?.target;
|
|
5722
5722
|
if (st.mode !== "ANIMATE" || target?.kind !== "frame") return doc2;
|
|
@@ -6110,7 +6110,7 @@ async function runAnimationExport(format, args, ctx) {
|
|
|
6110
6110
|
const filename = exportFileName(args.filename || targetName(doc2, target), format);
|
|
6111
6111
|
const [{ exportAnimation }, { memoryDestination }] = await Promise.all([import("./video-U5GFHOIK.js"), import("./destination-TD7DVQV4.js")]);
|
|
6112
6112
|
if (format === "lottie" || format === "dotlottie") return runLottieExport(renderer, doc2, spec, filename, ctx, memoryDestination, args.stateMachine);
|
|
6113
|
-
const planWatermark = format !== "png" && await (await import("./export-watermark-
|
|
6113
|
+
const planWatermark = format !== "png" && await (await import("./export-watermark-NJ7JYYQA.js")).exportWatermark();
|
|
6114
6114
|
if (format !== "png") spec = { ...spec, watermark: planWatermark || args.watermark !== false };
|
|
6115
6115
|
const dest = ctx.destination ? await ctx.destination(filename, FORMAT_MIME[format]) : memoryDestination(filename, FORMAT_MIME[format]);
|
|
6116
6116
|
let stats;
|
|
@@ -6196,7 +6196,7 @@ var exportLottie = animationCommand((args) => args.container === "lottie" ? "dot
|
|
|
6196
6196
|
});
|
|
6197
6197
|
async function exportSite(doc2, pageId2, packaging, styling = "css", siteUrl) {
|
|
6198
6198
|
const [{ completeSite, nextFilesOf, shareImageFiles, staticFilesOf, NoSiteRuntime, bytesOf }, { fileBase }, { zipFiles }, { downloadBlob }] = await Promise.all([
|
|
6199
|
-
import("./project-
|
|
6199
|
+
import("./project-WKIITAGS.js"),
|
|
6200
6200
|
import("./web-PM3ACYWH.js"),
|
|
6201
6201
|
import("./zip-export-G3YESV6Z.js"),
|
|
6202
6202
|
import("./download-SDJKF5TV.js")
|
|
@@ -6290,7 +6290,7 @@ var exportStorefront = defineCommand({
|
|
|
6290
6290
|
const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { fileBase, flatten }, { zipFiles }, { downloadBlob }] = await Promise.all([
|
|
6291
6291
|
import("./storefront-prepare-E3AJSP4V.js"),
|
|
6292
6292
|
import("./storefront-OZITTKUL.js"),
|
|
6293
|
-
import("./project-
|
|
6293
|
+
import("./project-WKIITAGS.js"),
|
|
6294
6294
|
import("./web-PM3ACYWH.js"),
|
|
6295
6295
|
import("./zip-export-G3YESV6Z.js"),
|
|
6296
6296
|
import("./download-SDJKF5TV.js")
|
|
@@ -6685,7 +6685,7 @@ var visionRegenerateImage = defineCommand({
|
|
|
6685
6685
|
const id = args.id ?? ctx.selection()[0];
|
|
6686
6686
|
if (!id) throw new ToolError("Select a generated image to regenerate.");
|
|
6687
6687
|
nodeOrThrow(ctx.doc(), id);
|
|
6688
|
-
const { regenerateImage } = await import("./client-actions-
|
|
6688
|
+
const { regenerateImage } = await import("./client-actions-4CCU2QHF.js");
|
|
6689
6689
|
regenerateImage(id, args.count);
|
|
6690
6690
|
return { summary: args.count > 1 ? `Regenerating ${args.count} variants` : "Regenerating the image", data: { id, count: args.count } };
|
|
6691
6691
|
}
|
|
@@ -9844,7 +9844,7 @@ var scriptRun = defineCommand({
|
|
|
9844
9844
|
// A script is not the turn the user is watching: confirm-tier tools are refused inside it (dispatch, `nested`).
|
|
9845
9845
|
actor: { ...ctx.actor, nested: true, label: "Script" },
|
|
9846
9846
|
// A look_at inside the script sees the document as the script has left it so far, not as it was before.
|
|
9847
|
-
use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-
|
|
9847
|
+
use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-DWD3MUVI.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
|
|
9848
9848
|
};
|
|
9849
9849
|
let calls = 0;
|
|
9850
9850
|
const images = [];
|
|
@@ -10664,7 +10664,7 @@ var docImportFile = defineCommand({
|
|
|
10664
10664
|
const file = new File([body], args.name);
|
|
10665
10665
|
if (file.size > MAX_BYTES) throw new ToolError(`"${args.name}" is larger than ${MAX_BYTES / 1024 / 1024} MB.`);
|
|
10666
10666
|
const [{ buildImportedDocument }, { mergeImportedDocument }] = await Promise.all([
|
|
10667
|
-
import("./plugin-import-
|
|
10667
|
+
import("./plugin-import-LELFGWL2.js"),
|
|
10668
10668
|
import("./import-merge-O5CFKWL4.js")
|
|
10669
10669
|
]);
|
|
10670
10670
|
const built = await buildImportedDocument(file);
|