@popcraft/kit 1.6.0 → 1.6.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-AFXVE4TB.js → agent-OE6KSDX3.js} +1 -1
- package/dist/chunks/{builtin-YV5ZOHLZ.js → builtin-N7D66RH5.js} +3 -3
- package/dist/chunks/{buy-credits-KMWEOFGJ.js → buy-credits-S6MZEFBU.js} +2 -2
- package/dist/chunks/{check-template-3YZD5ZNI.js → check-template-7OLJXPEY.js} +2 -2
- package/dist/chunks/{chunk-IYF3RAPB.js → chunk-4JGDU2LS.js} +43 -43
- package/dist/chunks/{chunk-GZBIH2XJ.js → chunk-65ICR62T.js} +1 -1
- package/dist/chunks/{chunk-BJWOEPRV.js → chunk-7WDSWN42.js} +6 -6
- package/dist/chunks/{chunk-4CNUZ5HD.js → chunk-AJQGNODT.js} +2 -2
- package/dist/chunks/{chunk-TJ2FR2UT.js → chunk-CPCTSQ54.js} +9 -9
- package/dist/chunks/{chunk-IV2FJFIM.js → chunk-D3UCFXP5.js} +4 -4
- package/dist/chunks/{chunk-YEX5SJ45.js → chunk-ESI5ZRM7.js} +4 -4
- package/dist/chunks/{chunk-R4F7GN3C.js → chunk-HNZXUHIC.js} +2 -2
- package/dist/chunks/{chunk-ZVM5KYLX.js → chunk-JYH2TY4E.js} +5 -5
- package/dist/chunks/{chunk-HEHOAJ6Y.js → chunk-JZLQJ7EY.js} +1 -1
- package/dist/chunks/{chunk-QW3CNJG2.js → chunk-KURMOEAD.js} +1 -1
- package/dist/chunks/{chunk-G65N6Z34.js → chunk-LKBJSK2C.js} +1 -1
- package/dist/chunks/{chunk-OIKQZUIZ.js → chunk-MVREQFZT.js} +2 -2
- package/dist/chunks/{chunk-6AXY7EAS.js → chunk-ND2HH4UM.js} +2 -2
- package/dist/chunks/{chunk-CQFOW6N5.js → chunk-OEYPIHRP.js} +5 -5
- package/dist/chunks/{chunk-4CIZKVAQ.js → chunk-QEOEHNTC.js} +1 -1
- package/dist/chunks/{chunk-TGT46XPQ.js → chunk-QRJDTIGI.js} +11 -11
- package/dist/chunks/{chunk-RDWZRO5J.js → chunk-SEOGNWSQ.js} +1 -1
- package/dist/chunks/{chunk-NT3BLV67.js → chunk-WHVP4PYO.js} +5 -5
- package/dist/chunks/{chunk-LUBVPMJ2.js → chunk-XWBVCMDN.js} +1 -1
- package/dist/chunks/{chunk-UX3KNRUI.js → chunk-ZV3S523N.js} +3 -3
- package/dist/chunks/{client-ZI6VCIWH.js → client-2BFEBXIM.js} +3 -3
- package/dist/chunks/{client-4KHVSJ5O.js → client-GXVSY6WW.js} +2 -2
- package/dist/chunks/{client-CWGXL4X4.js → client-HE7UBY4L.js} +1 -1
- package/dist/chunks/{client-actions-EGZZQMZK.js → client-actions-UMXJFVVG.js} +5 -5
- package/dist/chunks/{dangerous-LCZZIH23.js → dangerous-NZLQSKNC.js} +3 -3
- package/dist/chunks/{delete-current-file-Z62UVIVM.js → delete-current-file-AZX2MBLL.js} +5 -5
- package/dist/chunks/{editor-seams-TADECU7N.js → editor-seams-PB5FDYPL.js} +12 -12
- package/dist/chunks/{editor-store-FHINTE2K.js → editor-store-3UUO3W2D.js} +1 -1
- package/dist/chunks/{export-watermark-43TTHNVK.js → export-watermark-HCVSFKFE.js} +5 -5
- package/dist/chunks/{eyedropper-EQYRS3RH.js → eyedropper-3AO2FYBG.js} +1 -1
- package/dist/chunks/{generate-media-WFQMH3O2.js → generate-media-5HKRD5NA.js} +3 -3
- package/dist/chunks/{host-NDXV7EJB.js → host-PLOL2V4Z.js} +6 -6
- package/dist/chunks/{integrations-XP2QXE5D.js → integrations-AU2FD534.js} +1 -1
- package/dist/chunks/{libraries-T2IXBVSR.js → libraries-KKZYTYKD.js} +5 -5
- package/dist/chunks/{live-22WE7WRC.js → live-6ECTHSLB.js} +1 -1
- package/dist/chunks/{media-tool-34H6RLBV.js → media-tool-5NMY3HNT.js} +1 -1
- package/dist/chunks/{new-file-LEAIPEYC.js → new-file-MF5BTZEL.js} +3 -3
- package/dist/chunks/{next-commerce-B5J45KA4.js → next-commerce-G2YETQA7.js} +2 -2
- package/dist/chunks/{plugin-SBHQJ634.js → plugin-QPT53NNI.js} +2 -2
- package/dist/chunks/{plugin-import-NALQGSJD.js → plugin-import-6GEEEWIB.js} +16 -16
- package/dist/chunks/{presence-ALTQEYFE.js → presence-NPELRZIZ.js} +2 -2
- package/dist/chunks/{project-DRY4UMRI.js → project-WU2UQZE3.js} +1 -1
- package/dist/chunks/{publish-site-NYXOLCK3.js → publish-site-PDSR5M3T.js} +6 -6
- package/dist/chunks/{publish-store-G56VGGGK.js → publish-store-NAPZBL2M.js} +5 -5
- package/dist/chunks/{raster-actions-Y2W5RYE3.js → raster-actions-UGXW5H4I.js} +1 -1
- package/dist/chunks/{runner-JTGVAO35.js → runner-3LTKN2ZV.js} +18 -18
- package/dist/chunks/{store-FBYFTERX.js → store-BXUFD27P.js} +6 -6
- package/dist/chunks/{storefront-2JBT3AXM.js → storefront-A5S7V7AE.js} +2 -2
- package/dist/chunks/{sync-CCQEJJXS.js → sync-AVT7VZNN.js} +5 -5
- package/dist/chunks/{tabs-2G7SLYA4.js → tabs-TDBF6SSS.js} +8 -8
- package/dist/chunks/{team-LNSCS65P.js → team-GTULZILG.js} +1 -1
- package/dist/chunks/{team-client-LS7VL3JP.js → team-client-5YIEKK2Y.js} +1 -1
- package/dist/chunks/{tools-OKQGWON5.js → tools-K63FQJPN.js} +2 -2
- package/dist/chunks/{ui-commands-P4KLVZKF.js → ui-commands-VE2VHLRI.js} +12 -12
- package/dist/chunks/{versions-NW2T5R4T.js → versions-IN4L46KN.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-MVREQFZT.js";
|
|
11
|
+
import "./chunk-4JGDU2LS.js";
|
|
12
12
|
import "./chunk-6PXIUEMR.js";
|
|
13
13
|
import "./chunk-NEKEZ7CQ.js";
|
|
14
14
|
import "./chunk-QVNNTSVJ.js";
|
|
@@ -18,7 +18,7 @@ import "./chunk-YHR4ZLN4.js";
|
|
|
18
18
|
import "./chunk-ZCKKN7DQ.js";
|
|
19
19
|
import "./chunk-QLDI22ZY.js";
|
|
20
20
|
import "./chunk-BTBNRHSK.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-ZV3S523N.js";
|
|
22
22
|
import "./chunk-QPMR3J3G.js";
|
|
23
23
|
import "./chunk-IFP7BSQO.js";
|
|
24
24
|
import "./chunk-VT3FUTXA.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-XWBVCMDN.js";
|
|
11
11
|
import "./chunk-SIAQNWXY.js";
|
|
12
12
|
import {
|
|
13
13
|
useHyperyTeam
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LKBJSK2C.js";
|
|
15
15
|
import {
|
|
16
16
|
ApiError
|
|
17
17
|
} from "./chunk-MSF5FVCK.js";
|
|
@@ -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-CPCTSQ54.js";
|
|
10
10
|
import {
|
|
11
11
|
builtinCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4JGDU2LS.js";
|
|
13
13
|
import "./chunk-6PXIUEMR.js";
|
|
14
14
|
import "./chunk-NEKEZ7CQ.js";
|
|
15
15
|
import "./chunk-QVNNTSVJ.js";
|
|
@@ -952,7 +952,7 @@ init_scene_graph();
|
|
|
952
952
|
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.");
|
|
953
953
|
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 });
|
|
954
954
|
async function placeImportedPicture(ctx, imported, at2, what, extra = {}) {
|
|
955
|
-
const client = await import("./client-
|
|
955
|
+
const client = await import("./client-HE7UBY4L.js");
|
|
956
956
|
if (at2.fillLayerId) {
|
|
957
957
|
const doc2 = ctx.doc();
|
|
958
958
|
const target = nodeOrThrow(doc2, at2.fillLayerId);
|
|
@@ -998,7 +998,7 @@ var photoSearch = defineCommand({
|
|
|
998
998
|
}
|
|
999
999
|
},
|
|
1000
1000
|
run: async (args) => {
|
|
1001
|
-
const { searchStockPhotos } = await import("./client-
|
|
1001
|
+
const { searchStockPhotos } = await import("./client-HE7UBY4L.js");
|
|
1002
1002
|
const page = await searchStockPhotos(args.query, args.page ?? 1, { licence: args.licence });
|
|
1003
1003
|
return {
|
|
1004
1004
|
summary: `${page.results.length} photo${page.results.length === 1 ? "" : "s"} for \u201C${page.query}\u201D (page ${page.page} of ${page.pageCount || 1})`,
|
|
@@ -1032,7 +1032,7 @@ var photoInsert = defineCommand({
|
|
|
1032
1032
|
run: async (args, ctx) => {
|
|
1033
1033
|
if (!args.id && !args.query) throw new ToolError("Pass an id from search_photos, or a query.");
|
|
1034
1034
|
if (args.id && !isPhotoId(args.id)) throw new ToolError(`"${args.id}" is not a photo id from search_photos.`);
|
|
1035
|
-
const client = await import("./client-
|
|
1035
|
+
const client = await import("./client-HE7UBY4L.js");
|
|
1036
1036
|
let photo;
|
|
1037
1037
|
if (args.id) photo = await client.stockPhotoInfo(args.id);
|
|
1038
1038
|
else {
|
|
@@ -1070,10 +1070,10 @@ var mediaList = defineCommand({
|
|
|
1070
1070
|
}
|
|
1071
1071
|
},
|
|
1072
1072
|
run: async (args) => {
|
|
1073
|
-
const { listLibraryMedia } = await import("./client-
|
|
1073
|
+
const { listLibraryMedia } = await import("./client-GXVSY6WW.js");
|
|
1074
1074
|
const q = { ...args };
|
|
1075
1075
|
if (!q.workspace) {
|
|
1076
|
-
const { syncStatus } = await import("./sync-
|
|
1076
|
+
const { syncStatus } = await import("./sync-AVT7VZNN.js");
|
|
1077
1077
|
const link2 = syncStatus().link;
|
|
1078
1078
|
if (!link2) throw new ToolError("This document is not saved to the cloud, so it has no team media library. Pass workspace.");
|
|
1079
1079
|
q.workspace = (await listLibraryMedia({ file: link2.key, limit: 1 })).workspaceId;
|
|
@@ -1108,7 +1108,7 @@ var mediaInsert = defineCommand({
|
|
|
1108
1108
|
run: async (args, ctx) => {
|
|
1109
1109
|
const contentType = args.contentType ?? "image/*";
|
|
1110
1110
|
if (!contentType.startsWith("image/")) throw new ToolError("insert_media places pictures; this item is not one.");
|
|
1111
|
-
const { importLibraryPicture } = await import("./client-
|
|
1111
|
+
const { importLibraryPicture } = await import("./client-GXVSY6WW.js");
|
|
1112
1112
|
const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "Media", contentType, size: 0, createdAt: "", fileCount: 1, source: null };
|
|
1113
1113
|
const imported = await importLibraryPicture(item);
|
|
1114
1114
|
return placeImportedPicture(ctx, imported, args, `\u201C${imported.name}\u201D`, { hash: imported.hash });
|
|
@@ -1129,7 +1129,7 @@ var mediaDownload = defineCommand({
|
|
|
1129
1129
|
// The Library's right-click menu: saves the item's file to the computer.
|
|
1130
1130
|
expose: { ui: { label: "Download", palette: false } },
|
|
1131
1131
|
run: async (args) => {
|
|
1132
|
-
const { libraryBlob, libraryFileName } = await import("./client-
|
|
1132
|
+
const { libraryBlob, libraryFileName } = await import("./client-GXVSY6WW.js");
|
|
1133
1133
|
const { downloadBlob } = await import("./download-ORY67AIK.js");
|
|
1134
1134
|
const item = { hash: args.hash, fileKey: args.fileKey, fileName: args.name ?? "media", contentType: args.contentType ?? "", size: 0, createdAt: "", fileCount: 1, source: null };
|
|
1135
1135
|
const blob = await libraryBlob(item);
|
|
@@ -1160,7 +1160,7 @@ var mediaDelete = defineCommand({
|
|
|
1160
1160
|
}
|
|
1161
1161
|
},
|
|
1162
1162
|
run: async (args) => {
|
|
1163
|
-
const { deleteLibraryMedia } = await import("./client-
|
|
1163
|
+
const { deleteLibraryMedia } = await import("./client-GXVSY6WW.js");
|
|
1164
1164
|
const out = await deleteLibraryMedia(args.workspace, args.hash);
|
|
1165
1165
|
return { summary: `Deleted it from the library (it was in ${out.files} file${out.files === 1 ? "" : "s"})`, data: out };
|
|
1166
1166
|
}
|
|
@@ -1174,13 +1174,13 @@ async function signedIn() {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
async function publishedFile() {
|
|
1176
1176
|
await signedIn();
|
|
1177
|
-
const { openFileKey } = await import("./publish-site-
|
|
1177
|
+
const { openFileKey } = await import("./publish-site-PDSR5M3T.js");
|
|
1178
1178
|
const key = openFileKey();
|
|
1179
1179
|
if (!key) throw new CommandError("This file is not saved to the cloud yet, so it has no site. Publish it first.", "failed");
|
|
1180
1180
|
return key;
|
|
1181
1181
|
}
|
|
1182
1182
|
async function formsWithoutDatabase(key) {
|
|
1183
|
-
const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-
|
|
1183
|
+
const [{ useEditorStore }, { usesForms, formsGoNowhere }, { siteBackend }] = await Promise.all([import("./editor-store-3UUO3W2D.js"), import("./backend-UBTXGYTH.js"), import("./integrations-AU2FD534.js")]);
|
|
1184
1184
|
const doc2 = useEditorStore.getState().document;
|
|
1185
1185
|
if (!usesForms(doc2)) return false;
|
|
1186
1186
|
return formsGoNowhere(doc2, await siteBackend(key).catch(() => void 0));
|
|
@@ -1216,7 +1216,7 @@ var publishSite = defineCommand({
|
|
|
1216
1216
|
const { cleanSlug } = await import("./rules-3VKTMVMG.js");
|
|
1217
1217
|
const address = p.address === void 0 ? void 0 : cleanSlug(p.address);
|
|
1218
1218
|
if (address === null) throw new CommandError("That cannot be a site address: use 3 to 40 letters, digits and dashes.", "invalid_params");
|
|
1219
|
-
const { publishOpenFile, NoScreens } = await import("./publish-site-
|
|
1219
|
+
const { publishOpenFile, NoScreens } = await import("./publish-site-PDSR5M3T.js");
|
|
1220
1220
|
try {
|
|
1221
1221
|
const done = await publishOpenFile(address);
|
|
1222
1222
|
ctx.notice(`Published version ${done.version}: ${done.url}`);
|
|
@@ -1271,7 +1271,7 @@ var publishListSites = defineCommand({
|
|
|
1271
1271
|
},
|
|
1272
1272
|
run: async (p) => {
|
|
1273
1273
|
await signedIn();
|
|
1274
|
-
const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-JCEIRAQ6.js"), import("./team-
|
|
1274
|
+
const [{ workspaceSites }, { activeTeamWorkspaceId, useHyperyTeam }] = await Promise.all([import("./sites-JCEIRAQ6.js"), import("./team-GTULZILG.js")]);
|
|
1275
1275
|
const workspaceId = p.workspaceId ?? activeTeamWorkspaceId() ?? useHyperyTeam.getState().personalWorkspaceId;
|
|
1276
1276
|
if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
|
|
1277
1277
|
const out = await workspaceSites(workspaceId);
|
|
@@ -1320,12 +1320,12 @@ var publishStatus = defineCommand({
|
|
|
1320
1320
|
},
|
|
1321
1321
|
run: async () => {
|
|
1322
1322
|
await signedIn();
|
|
1323
|
-
const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-
|
|
1323
|
+
const [{ openFileKey }, { siteStatus }] = await Promise.all([import("./publish-site-PDSR5M3T.js"), import("./sites-JCEIRAQ6.js")]);
|
|
1324
1324
|
const key = openFileKey();
|
|
1325
1325
|
const status = await siteStatus(key);
|
|
1326
1326
|
const site = status.site;
|
|
1327
|
-
const backend = key ? await (await import("./integrations-
|
|
1328
|
-
const destinations = key ? await (await import("./integrations-
|
|
1327
|
+
const backend = key ? await (await import("./integrations-AU2FD534.js")).siteBackend(key).catch(() => null) : null;
|
|
1328
|
+
const destinations = key ? await (await import("./integrations-AU2FD534.js")).listDestinations(key).catch(() => []) : [];
|
|
1329
1329
|
return {
|
|
1330
1330
|
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}`,
|
|
1331
1331
|
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 })) }
|
|
@@ -1356,7 +1356,7 @@ var publishStore = defineCommand({
|
|
|
1356
1356
|
},
|
|
1357
1357
|
run: async (p, ctx) => {
|
|
1358
1358
|
await signedIn();
|
|
1359
|
-
const { deployOpenStore } = await import("./publish-store-
|
|
1359
|
+
const { deployOpenStore } = await import("./publish-store-NAPZBL2M.js");
|
|
1360
1360
|
const done = await deployOpenStore(ctx.doc(), ctx.pageId(), { destinationId: p.destinationId }).catch((e) => {
|
|
1361
1361
|
throw new CommandError(e instanceof Error ? e.message : String(e), "failed");
|
|
1362
1362
|
});
|
|
@@ -1385,7 +1385,7 @@ var integrationList = defineCommand({
|
|
|
1385
1385
|
}
|
|
1386
1386
|
},
|
|
1387
1387
|
run: async ({ capability }) => {
|
|
1388
|
-
const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-IBPSKFLE.js"), import("./integrations-
|
|
1388
|
+
const [{ cloudUser }, { integrationsWorkspaceId, listWorkspaceIntegrations }] = await Promise.all([import("./session-IBPSKFLE.js"), import("./integrations-AU2FD534.js")]);
|
|
1389
1389
|
if (!cloudUser()) throw new CommandError("You are not signed in: integrations belong to your account's workspace.", "denied");
|
|
1390
1390
|
const workspaceId = integrationsWorkspaceId();
|
|
1391
1391
|
if (!workspaceId) throw new CommandError("Your workspaces have not loaded yet. Try again in a moment.", "failed");
|
|
@@ -1426,7 +1426,7 @@ var integrationOpen = defineCommand({
|
|
|
1426
1426
|
}
|
|
1427
1427
|
});
|
|
1428
1428
|
async function openFile() {
|
|
1429
|
-
const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-IBPSKFLE.js"), import("./publish-site-
|
|
1429
|
+
const [{ cloudUser }, { openFileKey }] = await Promise.all([import("./session-IBPSKFLE.js"), import("./publish-site-PDSR5M3T.js")]);
|
|
1430
1430
|
if (!cloudUser()) throw new CommandError("You are not signed in.", "denied");
|
|
1431
1431
|
const key = openFileKey();
|
|
1432
1432
|
if (!key) throw new CommandError("This file is not saved to the cloud yet. Publish it first (publish_site).", "failed");
|
|
@@ -1452,7 +1452,7 @@ var integrationListResources = defineCommand({
|
|
|
1452
1452
|
}
|
|
1453
1453
|
},
|
|
1454
1454
|
run: async ({ connectionId, capability, path }) => {
|
|
1455
|
-
const { listResources } = await import("./integrations-
|
|
1455
|
+
const { listResources } = await import("./integrations-AU2FD534.js");
|
|
1456
1456
|
const list = await listResources(connectionId, capability, asPath2(path));
|
|
1457
1457
|
return {
|
|
1458
1458
|
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",
|
|
@@ -1487,7 +1487,7 @@ var integrationAddDestination = defineCommand({
|
|
|
1487
1487
|
},
|
|
1488
1488
|
run: async (p, ctx) => {
|
|
1489
1489
|
const key = await openFile();
|
|
1490
|
-
const { addDestination, createDestination, createResource } = await import("./integrations-
|
|
1490
|
+
const { addDestination, createDestination, createResource } = await import("./integrations-AU2FD534.js");
|
|
1491
1491
|
let made;
|
|
1492
1492
|
if (p.create) made = await createDestination(key, p.capability, void 0, p.connectionId);
|
|
1493
1493
|
else {
|
|
@@ -1524,7 +1524,7 @@ var integrationDeploy = defineCommand({
|
|
|
1524
1524
|
},
|
|
1525
1525
|
run: async (p, ctx) => {
|
|
1526
1526
|
const key = await openFile();
|
|
1527
|
-
const { deployDestination, listDestinations } = await import("./integrations-
|
|
1527
|
+
const { deployDestination, listDestinations } = await import("./integrations-AU2FD534.js");
|
|
1528
1528
|
const all = await listDestinations(key);
|
|
1529
1529
|
const dest = p.destinationId ? all.find((d) => d.id === p.destinationId) : all.length === 1 ? all[0] : void 0;
|
|
1530
1530
|
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");
|
|
@@ -1558,7 +1558,7 @@ var integrationAttachDatabase = defineCommand({
|
|
|
1558
1558
|
},
|
|
1559
1559
|
run: async (p, ctx) => {
|
|
1560
1560
|
const key = await openFile();
|
|
1561
|
-
const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-
|
|
1561
|
+
const { attachDatabase, createDatabase, createResource, listResources } = await import("./integrations-AU2FD534.js");
|
|
1562
1562
|
if (p.create) return attached(await createDatabase(key, void 0, p.connectionId), ctx);
|
|
1563
1563
|
if (!p.connectionId || !p.target) throw new CommandError("Say connectionId and target, or create: true.", "invalid_params");
|
|
1564
1564
|
let target = asPath2(p.target);
|
|
@@ -1597,7 +1597,7 @@ var integrationSubmissions = defineCommand({
|
|
|
1597
1597
|
},
|
|
1598
1598
|
run: async ({ form, limit }) => {
|
|
1599
1599
|
const key = await openFile();
|
|
1600
|
-
const { listSubmissions } = await import("./integrations-
|
|
1600
|
+
const { listSubmissions } = await import("./integrations-AU2FD534.js");
|
|
1601
1601
|
const rows = await listSubmissions(key, { form, limit: limit ?? 20 });
|
|
1602
1602
|
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 } };
|
|
1603
1603
|
}
|
|
@@ -1622,7 +1622,7 @@ var integrationSetSignIn = defineCommand({
|
|
|
1622
1622
|
},
|
|
1623
1623
|
run: async ({ on }, ctx) => {
|
|
1624
1624
|
const key = await openFile();
|
|
1625
|
-
const { setSignIn } = await import("./integrations-
|
|
1625
|
+
const { setSignIn } = await import("./integrations-AU2FD534.js");
|
|
1626
1626
|
const done = await setSignIn(key, on);
|
|
1627
1627
|
ctx.notice(on ? "Visitors can sign in." : "Sign-in is off.");
|
|
1628
1628
|
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 } };
|
|
@@ -1840,7 +1840,7 @@ var fontTeamList = defineCommand({
|
|
|
1840
1840
|
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)." }
|
|
1841
1841
|
},
|
|
1842
1842
|
run: async (args) => {
|
|
1843
|
-
const { refreshTeamFonts } = await import("./team-client-
|
|
1843
|
+
const { refreshTeamFonts } = await import("./team-client-5YIEKK2Y.js");
|
|
1844
1844
|
const fonts = await refreshTeamFonts(args.workspace);
|
|
1845
1845
|
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 })) } };
|
|
1846
1846
|
}
|
|
@@ -1867,7 +1867,7 @@ var fontTeamAdd = defineCommand({
|
|
|
1867
1867
|
run: async (args, ctx) => {
|
|
1868
1868
|
const { bytes, fileName: fileName2 } = await fontBytes(args, ctx);
|
|
1869
1869
|
const { face, family, weight, style } = await resolveFace(bytes, args);
|
|
1870
|
-
const { uploadTeamFont } = await import("./team-client-
|
|
1870
|
+
const { uploadTeamFont } = await import("./team-client-5YIEKK2Y.js");
|
|
1871
1871
|
const font = await uploadTeamFont(bytes, { family, weight, style, face: face.index, fileName: fileName2 }, args.workspace);
|
|
1872
1872
|
return { summary: `Added ${family} ${weight}${style === "italic" ? " italic" : ""} to the team`, data: { font } };
|
|
1873
1873
|
}
|
|
@@ -1889,7 +1889,7 @@ var fontTeamRemove = defineCommand({
|
|
|
1889
1889
|
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." }
|
|
1890
1890
|
},
|
|
1891
1891
|
run: async (args) => {
|
|
1892
|
-
const { removeTeamFont } = await import("./team-client-
|
|
1892
|
+
const { removeTeamFont } = await import("./team-client-5YIEKK2Y.js");
|
|
1893
1893
|
const out = await removeTeamFont(args.id, args.workspace);
|
|
1894
1894
|
return { summary: `Removed the team font${out.freed ? " and freed its storage" : ""}`, data: out };
|
|
1895
1895
|
}
|
|
@@ -1900,7 +1900,7 @@ var fontTeamCommands = [fontTeamList, fontTeamAdd];
|
|
|
1900
1900
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1901
1901
|
async function cloudFile() {
|
|
1902
1902
|
const [{ syncStatus }, { cloudUser }] = await Promise.all([
|
|
1903
|
-
import("./sync-
|
|
1903
|
+
import("./sync-AVT7VZNN.js"),
|
|
1904
1904
|
import("./session-IBPSKFLE.js")
|
|
1905
1905
|
]);
|
|
1906
1906
|
const link2 = syncStatus().link;
|
|
@@ -1962,7 +1962,7 @@ var fileTrash = defineCommand({
|
|
|
1962
1962
|
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." }
|
|
1963
1963
|
},
|
|
1964
1964
|
run: async () => {
|
|
1965
|
-
const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-
|
|
1965
|
+
const { deleteCurrentFile, leaveDeletedFile } = await import("./delete-current-file-AZX2MBLL.js");
|
|
1966
1966
|
const { name: name2, kind } = await deleteCurrentFile();
|
|
1967
1967
|
leaveDeletedFile();
|
|
1968
1968
|
return { summary: kind === "cloud" ? `Moved \u201C${name2}\u201D to the Trash` : `Deleted \u201C${name2}\u201D` };
|
|
@@ -2079,11 +2079,11 @@ var fileDuplicate = defineCommand({
|
|
|
2079
2079
|
},
|
|
2080
2080
|
run: async (p, ctx) => {
|
|
2081
2081
|
const [{ syncStatus }, { cloudApi }, { isDesktopTabs }, { createFileInTab }, { openNewCloudFile }, { v4: uuid }] = await Promise.all([
|
|
2082
|
-
import("./sync-
|
|
2082
|
+
import("./sync-AVT7VZNN.js"),
|
|
2083
2083
|
import("./api-5BAAJ77N.js"),
|
|
2084
2084
|
import("./tab-mode-N3SG3WBS.js"),
|
|
2085
|
-
import("./tabs-
|
|
2086
|
-
import("./sync-
|
|
2085
|
+
import("./tabs-TDBF6SSS.js"),
|
|
2086
|
+
import("./sync-AVT7VZNN.js"),
|
|
2087
2087
|
import("./dist-node-HLV6N2OW.js")
|
|
2088
2088
|
]);
|
|
2089
2089
|
const doc2 = ctx.doc();
|
|
@@ -4961,7 +4961,7 @@ var viewCopyLink = defineCommand({
|
|
|
4961
4961
|
},
|
|
4962
4962
|
run: async (args, ctx) => {
|
|
4963
4963
|
const [{ syncStatus }, { fileUrl }, { withDeepLink }] = await Promise.all([
|
|
4964
|
-
import("./sync-
|
|
4964
|
+
import("./sync-AVT7VZNN.js"),
|
|
4965
4965
|
import("./api-5BAAJ77N.js"),
|
|
4966
4966
|
import("./deep-link-UEITYDEM.js")
|
|
4967
4967
|
]);
|
|
@@ -5286,7 +5286,7 @@ var pageGo = defineCommand({
|
|
|
5286
5286
|
] }
|
|
5287
5287
|
},
|
|
5288
5288
|
run: async ({ to }) => {
|
|
5289
|
-
const { useEditorStore } = await import("./editor-store-
|
|
5289
|
+
const { useEditorStore } = await import("./editor-store-3UUO3W2D.js");
|
|
5290
5290
|
useEditorStore.getState().goToPrintPage(to);
|
|
5291
5291
|
return { summary: typeof to === "number" ? `Page ${to + 1}` : `${to} page` };
|
|
5292
5292
|
}
|
|
@@ -5320,7 +5320,7 @@ var pageSetup = defineCommand({
|
|
|
5320
5320
|
}
|
|
5321
5321
|
},
|
|
5322
5322
|
run: async (args) => {
|
|
5323
|
-
const { useEditorStore } = await import("./editor-store-
|
|
5323
|
+
const { useEditorStore } = await import("./editor-store-3UUO3W2D.js");
|
|
5324
5324
|
useEditorStore.getState().applyPageSetup(args);
|
|
5325
5325
|
return { summary: `Page setup updated${args.kind ? ` (${args.kind.toLowerCase()})` : ""}` };
|
|
5326
5326
|
}
|
|
@@ -5758,7 +5758,7 @@ async function docAtTime(doc2, ids, time2) {
|
|
|
5758
5758
|
let frameId;
|
|
5759
5759
|
if (time2 === void 0) {
|
|
5760
5760
|
try {
|
|
5761
|
-
const { useEditorStore } = await import("./editor-store-
|
|
5761
|
+
const { useEditorStore } = await import("./editor-store-3UUO3W2D.js");
|
|
5762
5762
|
const st = useEditorStore.getState();
|
|
5763
5763
|
const target = st.transport?.target;
|
|
5764
5764
|
if (st.mode !== "ANIMATE" || target?.kind !== "frame") return doc2;
|
|
@@ -6152,7 +6152,7 @@ async function runAnimationExport(format, args, ctx) {
|
|
|
6152
6152
|
const filename = exportFileName(args.filename || targetName(doc2, target), format);
|
|
6153
6153
|
const [{ exportAnimation }, { memoryDestination }] = await Promise.all([import("./video-O3IITEMM.js"), import("./destination-VSAJFD7Z.js")]);
|
|
6154
6154
|
if (format === "lottie" || format === "dotlottie") return runLottieExport(renderer, doc2, spec, filename, ctx, memoryDestination, args.stateMachine);
|
|
6155
|
-
const planWatermark = format !== "png" && await (await import("./export-watermark-
|
|
6155
|
+
const planWatermark = format !== "png" && await (await import("./export-watermark-HCVSFKFE.js")).exportWatermark();
|
|
6156
6156
|
if (format !== "png") spec = { ...spec, watermark: planWatermark || args.watermark !== false };
|
|
6157
6157
|
const dest = ctx.destination ? await ctx.destination(filename, FORMAT_MIME[format]) : memoryDestination(filename, FORMAT_MIME[format]);
|
|
6158
6158
|
let stats;
|
|
@@ -6238,7 +6238,7 @@ var exportLottie = animationCommand((args) => args.container === "lottie" ? "dot
|
|
|
6238
6238
|
});
|
|
6239
6239
|
async function exportSite(doc2, pageId2, packaging, styling = "css", siteUrl) {
|
|
6240
6240
|
const [{ completeSite, nextFilesOf, nextProjectDropped, shareImageFiles, staticFilesOf, NoSiteRuntime, bytesOf }, { fileBase }, { zipFiles }, { downloadBlob }] = await Promise.all([
|
|
6241
|
-
import("./project-
|
|
6241
|
+
import("./project-WU2UQZE3.js"),
|
|
6242
6242
|
import("./web-Y5FRNXT3.js"),
|
|
6243
6243
|
import("./zip-export-CZ33UN52.js"),
|
|
6244
6244
|
import("./download-ORY67AIK.js")
|
|
@@ -6333,8 +6333,8 @@ var exportStorefront = defineCommand({
|
|
|
6333
6333
|
const doc2 = ctx.doc();
|
|
6334
6334
|
const [{ storefrontInputs }, { STOREFRONT_TARGETS }, { bytesOf }, { fileBase, flatten }, { zipFiles }, { downloadBlob }] = await Promise.all([
|
|
6335
6335
|
import("./storefront-prepare-JJ2GHGNO.js"),
|
|
6336
|
-
import("./storefront-
|
|
6337
|
-
import("./project-
|
|
6336
|
+
import("./storefront-A5S7V7AE.js"),
|
|
6337
|
+
import("./project-WU2UQZE3.js"),
|
|
6338
6338
|
import("./web-Y5FRNXT3.js"),
|
|
6339
6339
|
import("./zip-export-CZ33UN52.js"),
|
|
6340
6340
|
import("./download-ORY67AIK.js")
|
|
@@ -6729,7 +6729,7 @@ var visionRegenerateImage = defineCommand({
|
|
|
6729
6729
|
const id = args.id ?? ctx.selection()[0];
|
|
6730
6730
|
if (!id) throw new ToolError("Select a generated image to regenerate.");
|
|
6731
6731
|
nodeOrThrow(ctx.doc(), id);
|
|
6732
|
-
const { regenerateImage } = await import("./client-actions-
|
|
6732
|
+
const { regenerateImage } = await import("./client-actions-UMXJFVVG.js");
|
|
6733
6733
|
regenerateImage(id, args.count);
|
|
6734
6734
|
return { summary: args.count > 1 ? `Regenerating ${args.count} variants` : "Regenerating the image", data: { id, count: args.count } };
|
|
6735
6735
|
}
|
|
@@ -12135,7 +12135,7 @@ var scriptRun = defineCommand({
|
|
|
12135
12135
|
// A script is not the turn the user is watching: confirm-tier tools are refused inside it (dispatch, `nested`).
|
|
12136
12136
|
actor: { ...ctx.actor, nested: true, label: "Script" },
|
|
12137
12137
|
// A look_at inside the script sees the document as the script has left it so far, not as it was before.
|
|
12138
|
-
use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-
|
|
12138
|
+
use: ((name2) => name2 === "render" && ctx.can("render") ? (async (ids, options) => (await import("./agent-OE6KSDX3.js")).renderDocument(staged, ids, options)) : ctx.use(name2))
|
|
12139
12139
|
};
|
|
12140
12140
|
let calls = 0;
|
|
12141
12141
|
const images = [];
|
|
@@ -12988,7 +12988,7 @@ var docImportFile = defineCommand({
|
|
|
12988
12988
|
const file = new File([body], args.name);
|
|
12989
12989
|
if (file.size > MAX_BYTES) throw new ToolError(`"${args.name}" is larger than ${MAX_BYTES / 1024 / 1024} MB.`);
|
|
12990
12990
|
const [{ buildImportedDocument }, { mergeImportedDocument }] = await Promise.all([
|
|
12991
|
-
import("./plugin-import-
|
|
12991
|
+
import("./plugin-import-6GEEEWIB.js"),
|
|
12992
12992
|
import("./import-merge-ZWBYLFNQ.js")
|
|
12993
12993
|
]);
|
|
12994
12994
|
const built = await buildImportedDocument(file);
|
|
@@ -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-CPCTSQ54.js";
|
|
10
10
|
import {
|
|
11
11
|
storeOpsSeam
|
|
12
12
|
} from "./chunk-Q4JZ2MCT.js";
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
sameResolution,
|
|
24
24
|
surfaceSize,
|
|
25
25
|
windowCssSize
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4JGDU2LS.js";
|
|
27
27
|
import {
|
|
28
28
|
notice
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HNZXUHIC.js";
|
|
30
30
|
import {
|
|
31
31
|
agentContext
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-ZV3S523N.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-ESI5ZRM7.js";
|
|
41
41
|
import {
|
|
42
42
|
loadEntitlements
|
|
43
43
|
} from "./chunk-SIAQNWXY.js";
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
import {
|
|
51
51
|
persist,
|
|
52
52
|
useEditorStore
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-OEYPIHRP.js";
|
|
54
54
|
import {
|
|
55
55
|
create
|
|
56
56
|
} from "./chunk-KSO2FQAX.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-SIAQNWXY.js";
|
|
10
10
|
import {
|
|
11
11
|
activeTeamWorkspaceId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LKBJSK2C.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiError,
|
|
15
15
|
cloudApi
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-7FHOYYRP.js";
|
|
23
23
|
import {
|
|
24
24
|
markLibraryDocument
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OEYPIHRP.js";
|
|
26
26
|
import {
|
|
27
27
|
GUEST_FILE_LIMIT
|
|
28
28
|
} from "./chunk-ISRYFYVE.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
needsSelection,
|
|
9
9
|
pageGo,
|
|
10
10
|
selectionIsPicture
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4JGDU2LS.js";
|
|
12
12
|
import {
|
|
13
13
|
external_exports
|
|
14
14
|
} from "./chunk-BTBNRHSK.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-3UUO3W2D.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-7D4XWE2S.js")).openPlanDialog();
|
|
192
192
|
break;
|
|
193
193
|
case "credits":
|
|
194
|
-
await (await import("./buy-credits-
|
|
194
|
+
await (await import("./buy-credits-S6MZEFBU.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-XT3TFIYX.js")).openAiDialog(dialog);
|
|
240
|
-
else (await import("./store-
|
|
240
|
+
else (await import("./store-BXUFD27P.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-3LTKN2ZV.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-5NMY3HNT.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-3AO2FYBG.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-UGXW5H4I.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-PLOL2V4Z.js")).runPlugin(pluginId, commandId);
|
|
466
466
|
return { summary: "Plugin started" };
|
|
467
467
|
}
|
|
468
468
|
});
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-C2ZTVRKG.js";
|
|
10
10
|
import {
|
|
11
11
|
notice
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HNZXUHIC.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveChatModel,
|
|
15
15
|
setModelPref,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-5RQ6N2MU.js";
|
|
18
18
|
import {
|
|
19
19
|
useEditorStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OEYPIHRP.js";
|
|
21
21
|
import {
|
|
22
22
|
create
|
|
23
23
|
} from "./chunk-KSO2FQAX.js";
|
|
@@ -1979,7 +1979,7 @@ async function sendMessage(text) {
|
|
|
1979
1979
|
if (!useAgentStore.getState().activeThreadId) newThread();
|
|
1980
1980
|
const mentions = pruneMentions(body, useAgentStore.getState().draftMentions);
|
|
1981
1981
|
useAgentStore.setState({ draft: "", draftMentions: [], error: null });
|
|
1982
|
-
const { runTurn } = await import("./runner-
|
|
1982
|
+
const { runTurn } = await import("./runner-3LTKN2ZV.js");
|
|
1983
1983
|
await runTurn(body, mentions);
|
|
1984
1984
|
}
|
|
1985
1985
|
function stop() {
|
|
@@ -2082,7 +2082,7 @@ var clearTaskChildren = () => useAgentStore.setState({ taskChildren: {} });
|
|
|
2082
2082
|
function subscribeChildTools() {
|
|
2083
2083
|
let dispose;
|
|
2084
2084
|
let cancelled = false;
|
|
2085
|
-
void import("./runner-
|
|
2085
|
+
void import("./runner-3LTKN2ZV.js").then(({ onChildTool }) => {
|
|
2086
2086
|
const off = onChildTool((report) => {
|
|
2087
2087
|
if (report?.status !== "running" || report.jobId) return;
|
|
2088
2088
|
recordChildTool(report.toolCallId ?? "", report.name);
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
reportOpenStage,
|
|
18
18
|
setCloudLink,
|
|
19
19
|
trackOpen
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AJQGNODT.js";
|
|
21
21
|
import {
|
|
22
22
|
parseDeepLink,
|
|
23
23
|
withDeepLink
|
|
24
24
|
} from "./chunk-45QYYCSX.js";
|
|
25
25
|
import {
|
|
26
26
|
activeTeamWorkspaceId
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-LKBJSK2C.js";
|
|
28
28
|
import {
|
|
29
29
|
ApiError,
|
|
30
30
|
api,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-MSF5FVCK.js";
|
|
33
33
|
import {
|
|
34
34
|
attachPresence
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-65ICR62T.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-OEYPIHRP.js";
|
|
49
49
|
import {
|
|
50
50
|
currentHistoryGroup
|
|
51
51
|
} from "./chunk-BJRVE5Z3.js";
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
requestImageAction,
|
|
29
29
|
sizeForAspect,
|
|
30
30
|
vectorSupport
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JZLQJ7EY.js";
|
|
32
32
|
import {
|
|
33
33
|
useEditorStore
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OEYPIHRP.js";
|
|
35
35
|
import {
|
|
36
36
|
withHistoryGroup
|
|
37
37
|
} from "./chunk-BJRVE5Z3.js";
|