@popcraft/kit 1.8.0 → 1.8.1
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-3VMEBCB4.js → agent-ODO74SIV.js} +1 -1
- package/dist/chunks/{builtin-VFXWVSBY.js → builtin-EII5VCM3.js} +5 -5
- package/dist/chunks/{buy-credits-7NG7NUTF.js → buy-credits-65JK3LLZ.js} +2 -2
- package/dist/chunks/{check-template-5X4TXV2I.js → check-template-7YXRYNNX.js} +7 -7
- package/dist/chunks/{chunk-S2KHVXP2.js → chunk-2FWXMRVF.js} +2 -2
- package/dist/chunks/{chunk-FH65BZ6F.js → chunk-3TKQ66IS.js} +11 -11
- package/dist/chunks/{chunk-SVX3BJJ5.js → chunk-6RPZOVA4.js} +1 -1
- package/dist/chunks/{chunk-Z2SAV6RK.js → chunk-6YAILHPA.js} +2 -2
- package/dist/chunks/{chunk-4VW6TW52.js → chunk-ADLP6AWG.js} +9 -9
- package/dist/chunks/{chunk-35H4YW5F.js → chunk-BKZYRRAQ.js} +6 -6
- package/dist/chunks/{chunk-KOX6DC7O.js → chunk-BW4D7VH5.js} +4 -4
- package/dist/chunks/{chunk-KKWKWUNN.js → chunk-CEHD6QNX.js} +3 -3
- package/dist/chunks/{chunk-X56SU5PL.js → chunk-CKX33B5C.js} +2 -2
- package/dist/chunks/{chunk-L6A4A4DT.js → chunk-FBL4ASBX.js} +2 -2
- package/dist/chunks/{chunk-P36U2QHT.js → chunk-HAG56W4M.js} +5 -5
- package/dist/chunks/{chunk-SUK4OYMS.js → chunk-HHLH2UZT.js} +1 -1
- package/dist/chunks/{chunk-4EQHP25T.js → chunk-ICON5HSN.js} +2 -2
- package/dist/chunks/{chunk-D3EQULKF.js → chunk-J26TD72C.js} +1 -1
- package/dist/chunks/{chunk-3RXYVVPS.js → chunk-M6SDH5WZ.js} +2 -2
- package/dist/chunks/{chunk-K3WWCTDF.js → chunk-NBNQGYDL.js} +19 -10
- package/dist/chunks/{chunk-23WKZQQP.js → chunk-NTLOVRAT.js} +3 -3
- package/dist/chunks/{chunk-UY4AQKUC.js → chunk-PB6EJ3VE.js} +1 -1
- package/dist/chunks/{chunk-RTL5OPT4.js → chunk-Q7XPI4LU.js} +1 -1
- package/dist/chunks/{chunk-RUMXL7TT.js → chunk-QL54YHU7.js} +1 -1
- package/dist/chunks/{chunk-L52UVZ4H.js → chunk-QOQL5TG3.js} +1 -1
- package/dist/chunks/{chunk-H3QJ4FGV.js → chunk-SMTX3YP4.js} +49 -49
- package/dist/chunks/{chunk-VDPCKGMN.js → chunk-TRRACONE.js} +7 -7
- package/dist/chunks/{chunk-4FHDWGCD.js → chunk-U2ZK3HJ2.js} +6 -6
- package/dist/chunks/{chunk-4ASS3JJJ.js → chunk-WIPRGU5D.js} +1 -1
- package/dist/chunks/{chunk-NKFAJTBR.js → chunk-Y26IR3XY.js} +2 -2
- package/dist/chunks/{chunk-LGCGRZNK.js → chunk-YA2PYFVZ.js} +1 -1
- package/dist/chunks/{client-3AR5LMWO.js → client-FQ7LIPAK.js} +3 -3
- package/dist/chunks/{client-4DPA75PJ.js → client-QXWIFTBL.js} +2 -2
- package/dist/chunks/{client-NFKHKPDL.js → client-T4NMSPEC.js} +1 -1
- package/dist/chunks/{client-actions-6YTCHAFN.js → client-actions-L6FP6DP5.js} +5 -5
- package/dist/chunks/{components-GIX6DGC5.js → components-G3KKHF4W.js} +4 -4
- package/dist/chunks/{dangerous-C5OJSIA4.js → dangerous-CN4FK4K2.js} +5 -5
- package/dist/chunks/{delete-current-file-CGB4JSWH.js → delete-current-file-BXUU3YDL.js} +5 -5
- package/dist/chunks/{editor-seams-CPQXKVQD.js → editor-seams-VR5WEMKQ.js} +14 -14
- package/dist/chunks/{editor-store-LZMCUPSM.js → editor-store-CLHG4QMC.js} +1 -1
- package/dist/chunks/{export-watermark-4FVFQ7EQ.js → export-watermark-MK5GQIVR.js} +5 -5
- package/dist/chunks/{eyedropper-NEB7U3XN.js → eyedropper-BJMWVXAO.js} +1 -1
- package/dist/chunks/{generate-media-JNSFV7X2.js → generate-media-GDI4AMLM.js} +3 -3
- package/dist/chunks/{host-PLP67PLR.js → host-34EZWHDU.js} +5 -5
- package/dist/chunks/{host-Q2B5JDF6.js → host-QJI5VIFQ.js} +6 -6
- package/dist/chunks/{integrations-Q5LMI7GJ.js → integrations-3KJWPEGA.js} +1 -1
- package/dist/chunks/{libraries-RN3FPNA4.js → libraries-6BOXZTPS.js} +5 -5
- package/dist/chunks/{live-U6T4WDTA.js → live-LIQ32RHJ.js} +1 -1
- package/dist/chunks/{media-tool-KCK4GFQY.js → media-tool-H3CNAVPZ.js} +1 -1
- package/dist/chunks/{new-file-EEIKLZKU.js → new-file-OPZ4HWAL.js} +3 -3
- package/dist/chunks/{next-commerce-76YNE7N4.js → next-commerce-Z4QO52KL.js} +6 -6
- package/dist/chunks/{plugin-5B2JXIAG.js → plugin-UCUUITRZ.js} +4 -4
- package/dist/chunks/{plugin-import-SSUSTL7V.js → plugin-import-VJDKNFPE.js} +18 -18
- package/dist/chunks/{presence-4OSUD5JN.js → presence-K46Y5AGD.js} +2 -2
- package/dist/chunks/{present-physics-KYZBNAVG.js → present-physics-FHMMPOFT.js} +2 -2
- package/dist/chunks/{project-TLJXPUXS.js → project-FRB4R73B.js} +6 -6
- package/dist/chunks/{publish-site-ZM2RYCGU.js → publish-site-GLNTAKHT.js} +6 -6
- package/dist/chunks/{publish-store-AHEXCLYK.js → publish-store-UWPAZ7VT.js} +8 -8
- package/dist/chunks/{raster-actions-U7F5FZJS.js → raster-actions-64TJYFEP.js} +1 -1
- package/dist/chunks/{runner-3X5C2MOH.js → runner-ZIHFK45A.js} +20 -20
- package/dist/chunks/{store-EQALPZRM.js → store-3C2KQNYF.js} +6 -6
- package/dist/chunks/{storefront-DASOKGXT.js → storefront-D6BBFNOK.js} +7 -7
- package/dist/chunks/{storefront-prepare-543VBJ2B.js → storefront-prepare-RSUGQZN4.js} +2 -2
- package/dist/chunks/{sync-6A34IQQE.js → sync-JWGSNCXM.js} +5 -5
- package/dist/chunks/{tabs-SV6BGUSZ.js → tabs-B72KGPKW.js} +8 -8
- package/dist/chunks/{team-KNYMXICM.js → team-HJMNNMGO.js} +1 -1
- package/dist/chunks/{team-client-6E6HCYGW.js → team-client-EJV4YFOX.js} +1 -1
- package/dist/chunks/{tools-KGOJSW5W.js → tools-KKFGAXNC.js} +2 -2
- package/dist/chunks/{tree-BMHSJ6SG.js → tree-PZTCVNQQ.js} +2 -2
- package/dist/chunks/{ui-commands-XMJPZ5J2.js → ui-commands-4UEB5UD4.js} +14 -14
- package/dist/chunks/{versions-OREWXTWL.js → versions-DIYWCIEN.js} +5 -5
- package/dist/chunks/{web-TJD6HFKE.js → web-AQK5INI5.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-CKX33B5C.js";
|
|
11
|
+
import "./chunk-SMTX3YP4.js";
|
|
12
12
|
import "./chunk-UNUBURPP.js";
|
|
13
13
|
import "./chunk-DLHAEBZO.js";
|
|
14
14
|
import "./chunk-WVMDE7ZL.js";
|
|
@@ -18,14 +18,14 @@ import "./chunk-373KFOVN.js";
|
|
|
18
18
|
import "./chunk-7ARQWSPP.js";
|
|
19
19
|
import "./chunk-LUHOGFBV.js";
|
|
20
20
|
import "./chunk-GHPSGTWV.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-CEHD6QNX.js";
|
|
22
22
|
import "./chunk-GXRT7BWK.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-QOQL5TG3.js";
|
|
24
24
|
import "./chunk-UVZJVPE7.js";
|
|
25
25
|
import "./chunk-A5WDYCFE.js";
|
|
26
26
|
import "./chunk-LLPQWJGF.js";
|
|
27
27
|
import "./chunk-KWLEMS7F.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-6RPZOVA4.js";
|
|
29
29
|
import "./chunk-XKESSOTS.js";
|
|
30
30
|
import "./chunk-ZE6AQPY2.js";
|
|
31
31
|
import "./chunk-CZUZCIQB.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-WIPRGU5D.js";
|
|
11
11
|
import "./chunk-IZXKUQCO.js";
|
|
12
12
|
import {
|
|
13
13
|
useHyperyTeam
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YA2PYFVZ.js";
|
|
15
15
|
import {
|
|
16
16
|
ApiError
|
|
17
17
|
} from "./chunk-34CAPALE.js";
|
|
@@ -6,32 +6,32 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
appCommands
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ADLP6AWG.js";
|
|
10
10
|
import {
|
|
11
11
|
builtinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SMTX3YP4.js";
|
|
13
13
|
import "./chunk-UNUBURPP.js";
|
|
14
14
|
import "./chunk-DLHAEBZO.js";
|
|
15
15
|
import "./chunk-WVMDE7ZL.js";
|
|
16
16
|
import "./chunk-CHQHRZER.js";
|
|
17
17
|
import "./chunk-KWLRDWMR.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-NTLOVRAT.js";
|
|
19
19
|
import "./chunk-373KFOVN.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-ICON5HSN.js";
|
|
21
21
|
import {
|
|
22
22
|
buildWebSite
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QL54YHU7.js";
|
|
24
24
|
import "./chunk-7ARQWSPP.js";
|
|
25
25
|
import "./chunk-DLXMRD2P.js";
|
|
26
26
|
import "./chunk-LUHOGFBV.js";
|
|
27
27
|
import "./chunk-GHPSGTWV.js";
|
|
28
28
|
import "./chunk-GXRT7BWK.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-QOQL5TG3.js";
|
|
30
30
|
import "./chunk-UVZJVPE7.js";
|
|
31
31
|
import "./chunk-A5WDYCFE.js";
|
|
32
32
|
import "./chunk-LLPQWJGF.js";
|
|
33
33
|
import "./chunk-KWLEMS7F.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-6RPZOVA4.js";
|
|
35
35
|
import "./chunk-XKESSOTS.js";
|
|
36
36
|
import "./chunk-ZE6AQPY2.js";
|
|
37
37
|
import "./chunk-CZUZCIQB.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-IZXKUQCO.js";
|
|
10
10
|
import {
|
|
11
11
|
activeTeamWorkspaceId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YA2PYFVZ.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiError,
|
|
15
15
|
cloudApi
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-OZGQG6LY.js";
|
|
23
23
|
import {
|
|
24
24
|
markLibraryDocument
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-U2ZK3HJ2.js";
|
|
26
26
|
import {
|
|
27
27
|
GUEST_FILE_LIMIT
|
|
28
28
|
} from "./chunk-JP2Y6BP5.js";
|
|
@@ -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-TRRACONE.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-SMTX3YP4.js";
|
|
17
17
|
import {
|
|
18
18
|
external_exports
|
|
19
19
|
} from "./chunk-GHPSGTWV.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-K46Y5AGD.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-CLHG4QMC.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-CLHG4QMC.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-6BOXZTPS.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-6BOXZTPS.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-CLHG4QMC.js"),
|
|
236
|
+
import("./versions-DIYWCIEN.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-DIYWCIEN.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-DIYWCIEN.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 } };
|
|
@@ -35,7 +35,7 @@ var ROLE_PRESETS = {
|
|
|
35
35
|
body: { body: "static", collider: "solid", effects: [] }
|
|
36
36
|
};
|
|
37
37
|
function behaviorOf(l) {
|
|
38
|
-
const preset = ROLE_PRESETS[l.role] ??
|
|
38
|
+
const preset = ROLE_PRESETS[l.role] ?? { body: "static", collider: "none", effects: [] };
|
|
39
39
|
return { body: l.body ?? preset.body, collider: l.collider ?? preset.collider, effects: l.effects ?? preset.effects };
|
|
40
40
|
}
|
|
41
41
|
var PLATFORMER_KEYS = {
|
|
@@ -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-CLHG4QMC.js"),
|
|
95
95
|
import("../lib/document/photo-frames.js"),
|
|
96
|
-
import("./media-tool-
|
|
96
|
+
import("./media-tool-H3CNAVPZ.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);
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
needsSelection,
|
|
9
9
|
pageGo,
|
|
10
10
|
selectionIsPicture
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SMTX3YP4.js";
|
|
12
12
|
import {
|
|
13
13
|
external_exports
|
|
14
14
|
} from "./chunk-GHPSGTWV.js";
|
|
@@ -31,7 +31,7 @@ var none = external_exports.object({});
|
|
|
31
31
|
var emit = (name, detail) => {
|
|
32
32
|
if (typeof window !== "undefined") window.dispatchEvent(new CustomEvent(name, { detail }));
|
|
33
33
|
};
|
|
34
|
-
var store = () => import("./editor-store-
|
|
34
|
+
var store = () => import("./editor-store-CLHG4QMC.js").then((m) => m.useEditorStore.getState());
|
|
35
35
|
var MODE_IDS = MODE_LIST.map((m) => m.id);
|
|
36
36
|
var MODE_ALIASES = { JAM: "POPCORN", DEV: "VIEW" };
|
|
37
37
|
var modeSet = defineCommand({
|
|
@@ -191,7 +191,7 @@ var dialogOpen = defineCommand({
|
|
|
191
191
|
(await import("./plan-limit-HXZOWG7J.js")).openPlanDialog();
|
|
192
192
|
break;
|
|
193
193
|
case "credits":
|
|
194
|
-
await (await import("./buy-credits-
|
|
194
|
+
await (await import("./buy-credits-65JK3LLZ.js")).buyAiCredits();
|
|
195
195
|
break;
|
|
196
196
|
case "tokens":
|
|
197
197
|
emit("popcraft-open-tokens");
|
|
@@ -237,7 +237,7 @@ var aiOpen = defineCommand({
|
|
|
237
237
|
] } },
|
|
238
238
|
run: async ({ dialog, skillId }) => {
|
|
239
239
|
if (dialog) (await import("./client-store-KJYMVKAM.js")).openAiDialog(dialog);
|
|
240
|
-
else (await import("./store-
|
|
240
|
+
else (await import("./store-3C2KQNYF.js")).openAgentPanel({ skillId: skillId ?? null });
|
|
241
241
|
return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
|
|
242
242
|
}
|
|
243
243
|
});
|
|
@@ -250,7 +250,7 @@ var agentContinue = defineCommand({
|
|
|
250
250
|
params: external_exports.object({}),
|
|
251
251
|
expose: { ui: { label: "AI: Continue the agent\u2019s last turn", keywords: ["ai", "agent", "continue", "resume", "retry", "keep going"] } },
|
|
252
252
|
run: async () => {
|
|
253
|
-
const resumed = await (await import("./runner-
|
|
253
|
+
const resumed = await (await import("./runner-ZIHFK45A.js")).continueTurn();
|
|
254
254
|
return { summary: resumed ? "Continued the agent" : "Nothing to continue" };
|
|
255
255
|
}
|
|
256
256
|
});
|
|
@@ -329,11 +329,11 @@ var toolPlace = defineCommand({
|
|
|
329
329
|
run: async ({ what }) => {
|
|
330
330
|
if (what === "media") {
|
|
331
331
|
const s = await store();
|
|
332
|
-
const { placeMediaFromPicker } = await import("./media-tool-
|
|
332
|
+
const { placeMediaFromPicker } = await import("./media-tool-H3CNAVPZ.js");
|
|
333
333
|
await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
|
|
334
334
|
return { summary: "Placing media" };
|
|
335
335
|
}
|
|
336
|
-
const { beginEyedrop } = await import("./eyedropper-
|
|
336
|
+
const { beginEyedrop } = await import("./eyedropper-BJMWVXAO.js");
|
|
337
337
|
void beginEyedrop();
|
|
338
338
|
return { summary: "Pick a color" };
|
|
339
339
|
}
|
|
@@ -351,7 +351,7 @@ var nodeRasterize = defineCommand({
|
|
|
351
351
|
keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
|
|
352
352
|
} },
|
|
353
353
|
run: async () => {
|
|
354
|
-
const { flattenSelectionToPaintLayer } = await import("./raster-actions-
|
|
354
|
+
const { flattenSelectionToPaintLayer } = await import("./raster-actions-64TJYFEP.js");
|
|
355
355
|
await flattenSelectionToPaintLayer();
|
|
356
356
|
return { summary: "Rasterized" };
|
|
357
357
|
}
|
|
@@ -462,7 +462,7 @@ function pluginCommand(plugins) {
|
|
|
462
462
|
params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
|
|
463
463
|
expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
|
|
464
464
|
run: async ({ pluginId, commandId }) => {
|
|
465
|
-
await (await import("./host-
|
|
465
|
+
await (await import("./host-QJI5VIFQ.js")).runPlugin(pluginId, commandId);
|
|
466
466
|
return { summary: "Plugin started" };
|
|
467
467
|
}
|
|
468
468
|
});
|
|
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
registerAppCommands
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ADLP6AWG.js";
|
|
10
10
|
import {
|
|
11
11
|
storeOpsSeam
|
|
12
12
|
} from "./chunk-RHAVZ2ND.js";
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
sameResolution,
|
|
24
24
|
surfaceSize,
|
|
25
25
|
windowCssSize
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SMTX3YP4.js";
|
|
27
27
|
import {
|
|
28
28
|
notice
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-Y26IR3XY.js";
|
|
30
30
|
import {
|
|
31
31
|
agentContext
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CEHD6QNX.js";
|
|
33
33
|
import {
|
|
34
34
|
setAudioOutputDocument,
|
|
35
35
|
setMediaDocument
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
collabSession,
|
|
39
39
|
syncStatus
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BW4D7VH5.js";
|
|
41
41
|
import {
|
|
42
42
|
loadEntitlements
|
|
43
43
|
} from "./chunk-IZXKUQCO.js";
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
import {
|
|
51
51
|
persist,
|
|
52
52
|
useEditorStore
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-U2ZK3HJ2.js";
|
|
54
54
|
import {
|
|
55
55
|
create
|
|
56
56
|
} from "./chunk-UZB4UQX3.js";
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
reportOpenStage,
|
|
18
18
|
setCloudLink,
|
|
19
19
|
trackOpen
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2FWXMRVF.js";
|
|
21
21
|
import {
|
|
22
22
|
parseDeepLink,
|
|
23
23
|
withDeepLink
|
|
24
24
|
} from "./chunk-VN32C2RG.js";
|
|
25
25
|
import {
|
|
26
26
|
activeTeamWorkspaceId
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YA2PYFVZ.js";
|
|
28
28
|
import {
|
|
29
29
|
ApiError,
|
|
30
30
|
api,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-34CAPALE.js";
|
|
33
33
|
import {
|
|
34
34
|
attachPresence
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-J26TD72C.js";
|
|
36
36
|
import {
|
|
37
37
|
fileOpeningMode,
|
|
38
38
|
isAppleMobile,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
setCollabHistory,
|
|
46
46
|
storedDocument,
|
|
47
47
|
useEditorStore
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-U2ZK3HJ2.js";
|
|
49
49
|
import {
|
|
50
50
|
currentHistoryGroup
|
|
51
51
|
} from "./chunk-PPJ2NEBU.js";
|
|
@@ -57,19 +57,19 @@ async function renderDocument(doc, nodeIds, options) {
|
|
|
57
57
|
function generateCapability(ctx) {
|
|
58
58
|
return async (prompt, options = {}) => {
|
|
59
59
|
if (options.format === "audio") {
|
|
60
|
-
const { requestAudio } = await import("./client-
|
|
60
|
+
const { requestAudio } = await import("./client-FQ7LIPAK.js");
|
|
61
61
|
const { signal: signal2, format: _f, ...rest2 } = options;
|
|
62
62
|
void _f;
|
|
63
63
|
return requestAudio({ prompt, ...rest2 }, signal2 ?? ctx.signal);
|
|
64
64
|
}
|
|
65
65
|
if (options.format === "video") {
|
|
66
|
-
const { generateVideoFile } = await import("./generate-media-
|
|
66
|
+
const { generateVideoFile } = await import("./generate-media-GDI4AMLM.js");
|
|
67
67
|
const { format: _f, signal: signal2, ...rest2 } = options;
|
|
68
68
|
void _f;
|
|
69
69
|
return generateVideoFile({ ...rest2, prompt, doc: ctx.doc() }, { signal: signal2 ?? ctx.signal });
|
|
70
70
|
}
|
|
71
71
|
const [{ requestImage }, { effectiveImageModel, useAiStore }] = await Promise.all([
|
|
72
|
-
import("./client-
|
|
72
|
+
import("./client-FQ7LIPAK.js"),
|
|
73
73
|
import("./client-store-KJYMVKAM.js")
|
|
74
74
|
]);
|
|
75
75
|
const modelId = effectiveImageModel(useAiStore.getState());
|
|
@@ -7,10 +7,10 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
builtinCommands,
|
|
9
9
|
registerBuiltinCommands
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SMTX3YP4.js";
|
|
11
11
|
import {
|
|
12
12
|
toolView
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CEHD6QNX.js";
|
|
14
14
|
import {
|
|
15
15
|
init_define_POPCRAFT_COMPONENT_IDS
|
|
16
16
|
} from "./chunk-2ZVN63DR.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
componentName,
|
|
13
13
|
mediaRules,
|
|
14
14
|
serializeReact
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QL54YHU7.js";
|
|
16
16
|
import {
|
|
17
17
|
routesOf,
|
|
18
18
|
screensOf
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
buildPlainTree,
|
|
22
22
|
tokensCSS
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QOQL5TG3.js";
|
|
24
24
|
import {
|
|
25
25
|
COMMERCE_ACTION_PROP,
|
|
26
26
|
COMMERCE_PROP
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
} from "./chunk-73OORXZY.js";
|
|
22
22
|
import {
|
|
23
23
|
syncStatus
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BW4D7VH5.js";
|
|
25
25
|
import {
|
|
26
26
|
usePluginStore
|
|
27
27
|
} from "./chunk-VESTYXOJ.js";
|
|
28
28
|
import {
|
|
29
29
|
setPluginTabs,
|
|
30
30
|
useEditorStore
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-U2ZK3HJ2.js";
|
|
32
32
|
import {
|
|
33
33
|
openBeside
|
|
34
34
|
} from "./chunk-IHAM22V3.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-UCUUITRZ.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-OPZ4HWAL.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-VJDKNFPE.js");
|
|
799
799
|
if (d.ir && typeof d.ir === "object") {
|
|
800
800
|
await applyPluginLayoutIr(d.ir, { mode, name });
|
|
801
801
|
return;
|
|
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
classNameFor,
|
|
9
9
|
interactiveSpec
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QL54YHU7.js";
|
|
11
11
|
import {
|
|
12
12
|
fontFaceRules,
|
|
13
13
|
fontsHref
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
styleMapToCSSText,
|
|
29
29
|
styleMapToInline,
|
|
30
30
|
tokensCSS
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QOQL5TG3.js";
|
|
32
32
|
import {
|
|
33
33
|
init_define_POPCRAFT_COMPONENT_IDS
|
|
34
34
|
} from "./chunk-2ZVN63DR.js";
|
|
@@ -7,11 +7,11 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
componentFiles,
|
|
9
9
|
componentPlan
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FBL4ASBX.js";
|
|
11
11
|
import {
|
|
12
12
|
RUNTIME_PACKAGE,
|
|
13
13
|
runtimeRange
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Q7XPI4LU.js";
|
|
15
15
|
import {
|
|
16
16
|
routesOf,
|
|
17
17
|
screensOf
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-IT5QDCSB.js";
|
|
10
10
|
import {
|
|
11
11
|
notice
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Y26IR3XY.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveChatModel,
|
|
15
15
|
setModelPref,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-XLE5SPZO.js";
|
|
18
18
|
import {
|
|
19
19
|
useEditorStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-U2ZK3HJ2.js";
|
|
21
21
|
import {
|
|
22
22
|
create
|
|
23
23
|
} from "./chunk-UZB4UQX3.js";
|
|
@@ -1247,8 +1247,10 @@ anything they already answered.
|
|
|
1247
1247
|
|
|
1248
1248
|
## 2. Build
|
|
1249
1249
|
- One Pixel canvas per sprite: \`k.pixels(sheet, frames, key, { cell, ms, name, absolute: { x, y } })\`.
|
|
1250
|
-
- Size it to the request (32\xD732 rows of 32 characters). \`cell\` scales it for viewing
|
|
1251
|
-
|
|
1250
|
+
- Size it to the request (32\xD732 rows of 32 characters). \`cell\` scales it for viewing, and is ONE value for the
|
|
1251
|
+
whole set and anything it will sit with (a game's sprites, tiles, enemies and map all share it), so every art pixel
|
|
1252
|
+
is the same size on screen: never pick a cell per sprite to make it look bigger. When the file already has pixel
|
|
1253
|
+
art, use its cell (width / pixelWidth). With no other art yet: cell 4. Never stretch it with width/height.
|
|
1252
1254
|
- One shared \`key\` (palette) across the set, 6\u201316 colours: a dark outline, a highlight and a shadow per material.
|
|
1253
1255
|
- Animated: every frame the same size, \`ms\` 80\u2013150 (walk) or 200\u2013400 (idle). Change only what moves between frames.
|
|
1254
1256
|
- Lay the set out on one frame named after it ("Platformer sprites"), a sprite per slot in a row, evenly spaced
|
|
@@ -1398,8 +1400,10 @@ With \`ai\` a spawned copy walks (a mushroom-style item: \`{ role: 'collectible'
|
|
|
1398
1400
|
without, it flies as \`shot: { gravity, bounce, life }\` says. A fireball: \`{ role: 'body', collider: 'sensor', effects: ['damage'], template: true, shot: { gravity: true, bounce: 520, life: 2 } }\`.
|
|
1399
1401
|
|
|
1400
1402
|
## Triggers and events (\`edit_prototype\`)
|
|
1401
|
-
-
|
|
1402
|
-
|
|
1403
|
+
- Physics triggers fire when the player meets a layer: \`ON_OVERLAP\` for a sensor (goal, door, coin, a map's level
|
|
1404
|
+
dot, a checkpoint), \`ON_COLLIDE\` for a solid or one-way body it bumps into, \`ON_LAND\` for one it lands on. A
|
|
1405
|
+
wrong pairing never fires. \`physicsWith\` narrows it to the other layer's id or tag; tag layers with
|
|
1406
|
+
\`physics.tags\` (\`['enemy']\`, \`['pipe']\`).
|
|
1403
1407
|
- A \`GAME\` action changes the running game: \`{ navigationType: 'GAME', game: { op: 'spawn', template, at?, vx?, vy? } }\`,
|
|
1404
1408
|
\`{ op: 'remove', target }\`, \`{ op: 'impulse'|'velocity', x, y }\` (a spring), \`{ op: 'teleport', to }\` (a pipe), \`{ op: 'form', form }\`.
|
|
1405
1409
|
- \`KEY_DOWN\` / \`KEY_UP\` with \`triggerKey\`, and \`EVERY\` (\`triggerDelay\` ms, repeating) for timers and spawners.
|
|
@@ -1424,8 +1428,13 @@ on the goal) and sets a persisted \`cleared\` variable; lock a dot with \`liveVa
|
|
|
1424
1428
|
|
|
1425
1429
|
## Rules
|
|
1426
1430
|
- Game logic goes in roles and triggers, never keyframes: a game is played, not watched.
|
|
1427
|
-
-
|
|
1428
|
-
-
|
|
1431
|
+
- Only the roles above exist. A layer that plays no part (decor, a lit-up variant) has no \`physics\` at all.
|
|
1432
|
+
- ONE pixel scale for the whole game. Every Pixel canvas in it (heroes, tiles, items, enemies, scenery, the map, its
|
|
1433
|
+
islands and markers) uses the same \`cell\` (4 by default), so an art pixel is the same size on screen everywhere.
|
|
1434
|
+
Size a thing in art pixels, never by scaling it: a 16\xD716 tile and a 16\xD716 hero are both 64 px at cell 4, a big hero
|
|
1435
|
+
16\xD728 is 112 px, an island 48\xD740 is 192\xD7160 px. Sprites made earlier at another cell are redrawn at the game's cell
|
|
1436
|
+
(more or fewer art pixels), not resized. Before finishing, check width / pixelWidth is the same on every canvas.
|
|
1437
|
+
- Never stretch a Pixel canvas with width/height.
|
|
1429
1438
|
- Make it original: invent the hero, the enemies and the items; never copy a commercial game's characters or levels.`
|
|
1430
1439
|
};
|
|
1431
1440
|
|
|
@@ -2077,7 +2086,7 @@ async function sendMessage(text) {
|
|
|
2077
2086
|
if (!useAgentStore.getState().activeThreadId) newThread();
|
|
2078
2087
|
const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
|
|
2079
2088
|
useAgentStore.setState({ draft: "", draftMentions: [], error: null });
|
|
2080
|
-
const { runTurn } = await import("./runner-
|
|
2089
|
+
const { runTurn } = await import("./runner-ZIHFK45A.js");
|
|
2081
2090
|
await runTurn(body, mentions);
|
|
2082
2091
|
}
|
|
2083
2092
|
function stop() {
|
|
@@ -2180,7 +2189,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
|
|
|
2180
2189
|
function subscribeChildTools() {
|
|
2181
2190
|
let dispose;
|
|
2182
2191
|
let cancelled = false;
|
|
2183
|
-
void import("./runner-
|
|
2192
|
+
void import("./runner-ZIHFK45A.js").then(({ onChildTool }) => {
|
|
2184
2193
|
const off = onChildTool((report) => {
|
|
2185
2194
|
if (report?.status !== "running" || report.jobId) return;
|
|
2186
2195
|
recordChildTool(report.toolCallId ?? "", report.name);
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
serializeCSS,
|
|
13
13
|
serializeHTML
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ICON5HSN.js";
|
|
15
15
|
import {
|
|
16
16
|
serializeReact,
|
|
17
17
|
serializeTailwind
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QL54YHU7.js";
|
|
19
19
|
import {
|
|
20
20
|
altFor,
|
|
21
21
|
behaviorsDropped,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
pictureOf,
|
|
29
29
|
styleMapToInline,
|
|
30
30
|
swiftColor
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QOQL5TG3.js";
|
|
32
32
|
import {
|
|
33
33
|
init_define_POPCRAFT_COMPONENT_IDS
|
|
34
34
|
} from "./chunk-2ZVN63DR.js";
|