@bud.sh/app 0.4.0 → 0.5.0
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/client/assets/bud/design.js +1 -1
- package/dist/client/assets/{canvas-C8hyPWoT.js → canvas-Cu6R6xxT.js} +1 -1
- package/dist/client/assets/difference-worker-jfTSn-Tw.js +8 -0
- package/dist/client/assets/{edit-B050x0rV.js → edit-DUotSxjS.js} +12 -12
- package/dist/client/assets/files-js6ElfkU.js +1 -0
- package/dist/client/assets/i18n-DxqFr2mi.js +1 -0
- package/dist/client/assets/index-CFFxP0gS.css +2 -0
- package/dist/client/assets/{index-Dpxjiok1.js → index-ChANGtl-.js} +2 -2
- package/dist/client/assets/lru-DzKYIXMA.js +1 -0
- package/dist/client/assets/pages-6_lhiQmz.js +1 -0
- package/dist/client/assets/{project-branches-DzXdaT9L.js → project-branches-DO897zM6.js} +1 -1
- package/dist/client/assets/project-comments-DFFKVpia.js +1 -0
- package/dist/client/assets/project-thread-links-NLFWQRD2.js +1 -0
- package/dist/client/assets/{project-threads-CHGG-6fo.js → project-threads-Lay351p4.js} +105 -105
- package/dist/client/assets/{project-work-L5fYMSOu.js → project-work-du0Y-L5Y.js} +1 -1
- package/dist/client/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/client/assets/task-design-Avb2RO4w.js +23 -0
- package/dist/client/assets/tasks-CA-E8bbK.js +1 -0
- package/dist/client/assets/{tasks-request-DGigNdyK.js → tasks-request-C55IeuiP.js} +1 -1
- package/dist/client/assets/workspace-Cw5HvX5d.js +2 -0
- package/dist/client/index.html +3 -3
- package/dist/hosted/assets/{canvas-MWtOwaWm.js → canvas-V36732ER.js} +6 -4
- package/dist/hosted/assets/{comment-data-DsgJWq4n.js → comment-data-CF2ZV_3k.js} +4162 -3659
- package/dist/hosted/assets/{files-Wvo11G2A.js → files-DjSCjfU7.js} +5 -3
- package/dist/hosted/assets/{pages-BAmRFVtU.js → pages-BzjzeuPu.js} +3 -3
- package/dist/hosted/assets/{project-branches-BNloVosX.js → project-branches-BT97J9i7.js} +1 -1
- package/dist/hosted/assets/{project-thread-links-BmY8HQXt.js → project-thread-links-BRLgByEe.js} +2 -2
- package/dist/hosted/assets/{screen-QmqmI2Aq.js → screen-CKp2C7kx.js} +68 -137
- package/dist/hosted/assets/{tasks-C8iWPrWg.js → tasks-Dj7AyBJB.js} +12 -5
- package/dist/hosted/assets/{tasks-request-C89fN1dK.js → tasks-request-DZob623r.js} +1 -1
- package/dist/hosted/hosted.js +174 -18
- package/dist/node/assets/{src-BdvZ2mYc.js → src-CerrKjID.js} +57 -1
- package/dist/node/design.js +969 -809
- package/dist/node/server.js +25 -3
- package/dist/node-host/assets/{canvas-D_F8SIlm.js → canvas-TRUfxfL5.js} +6 -4
- package/dist/node-host/assets/{comment-data-q_8INiZz.js → comment-data-DyIZNpfG.js} +4143 -3640
- package/dist/node-host/assets/{files-xazOrNCX.js → files-Dh2TiQZq.js} +5 -3
- package/dist/node-host/assets/{pages-D6VkmdfQ.js → pages-BxpjbYhs.js} +3 -3
- package/dist/node-host/assets/{project-branches-C26hwmo3.js → project-branches-B7HUGiVK.js} +1 -1
- package/dist/node-host/assets/{project-thread-links-BOzjws5W.js → project-thread-links-CauJF0Cz.js} +2 -2
- package/dist/node-host/assets/{screen-Dog-YByu.js → screen-CZXWJEds.js} +68 -137
- package/dist/node-host/assets/{tasks-A1_bpb3_.js → tasks-Bs1IOpeU.js} +12 -5
- package/dist/node-host/assets/{tasks-request-Bie1PpQP.js → tasks-request-ZWmbc8fE.js} +1 -1
- package/dist/node-host/node-host.js +174 -18
- package/dist/server/assets/{canvas-Dn4RYoU2.js → canvas-Dc1mYCwQ.js} +7 -5
- package/dist/server/assets/{comment-data-B0OLHBGp.js → comment-data-CsjukwAW.js} +3911 -3619
- package/dist/server/assets/{events-6z5v7Uca.js → events-iHpLGr3k.js} +213 -2
- package/dist/server/assets/{files-C5Vilfe4.js → files-E9mSFeoc.js} +6 -4
- package/dist/server/assets/{listener-o1STuLju.js → listener-DN5TyOjJ.js} +45 -11
- package/dist/server/assets/{pages-BNa0MHEc.js → pages-BBBXyJWV.js} +4 -4
- package/dist/server/assets/{project-branches-GtQYyOH5.js → project-branches-B0YIK6Ur.js} +2 -2
- package/dist/server/assets/{project-thread-links-Nfz9NIny.js → project-thread-links-CBOpf6zk.js} +3 -3
- package/dist/server/assets/{project-work-Cy_BpHwR.js → project-work-qSKFO5yj.js} +3 -3
- package/dist/server/assets/{screen-BtcJmZwj.js → screen-BIQA2mr4.js} +69 -138
- package/dist/server/assets/{server-CYvuOSBA.js → server-DxK-UB_Z.js} +30 -4
- package/dist/server/assets/{services-DK4fqrlF.js → services-BRrgXYlT.js} +105 -9
- package/dist/server/assets/{tasks-B82tHwyQ.js → tasks-CiXodsLN.js} +14 -7
- package/dist/server/assets/{tasks-request-BtJBlkxV.js → tasks-request-DhwCzpRi.js} +2 -2
- package/dist/server/migration.js +3 -3
- package/dist/server/runtime.js +3 -3
- package/dist/server/server.js +2 -2
- package/dist/types/server.d.ts +11 -1
- package/package.json +1 -1
- package/dist/client/assets/difference-worker-BfF4_N3e.js +0 -8
- package/dist/client/assets/files-D_Tm7gCK.js +0 -1
- package/dist/client/assets/i18n-BtfXum8P.js +0 -1
- package/dist/client/assets/index-CjhJtepP.css +0 -2
- package/dist/client/assets/lru-BkhKJhvt.js +0 -1
- package/dist/client/assets/pages-B-_CKvDS.js +0 -1
- package/dist/client/assets/project-comments-CQkB2jbE.js +0 -1
- package/dist/client/assets/project-thread-links-BN7zL0AX.js +0 -1
- package/dist/client/assets/task-design-DYqcqq1b.js +0 -23
- package/dist/client/assets/tasks-A2FKo3_h.js +0 -1
- package/dist/client/assets/workspace-CvWmU2RK.js +0 -2
package/dist/node/server.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as parseWorkSchema, C as valueByRole, D as parseMessageAuthor, E as parseMessage, F as parseWork, I as record$1, L as strict, M as WorkValidationError, N as identifier$1, O as withoutMessages, P as nonempty, S as parseWorkValue, T as messageDeletionRefusals, _ as parseWorkMutationResult, a as parseThreadFilter, b as parseWorkSnapshot, c as parseThreadReplyInput, d as parseSectionData, f as parseWorkActionInput, g as parseWorkItemRef, h as parseWorkItem, i as parseThreadDeleteInput, j as statusCategory, k as fieldByRole, l as parseThreadSnapshot, m as parseWorkDetail, n as parseThread, o as parseThreadInput, p as parseWorkCreate, r as parseThreadCapabilities, s as parseThreadLinkInput, t as MAX_THREADS, u as parseThreadStatusInput, w as messageDeletionRefusal, x as parseWorkUpdate, y as parseWorkQuery } from "./assets/src-CerrKjID.js";
|
|
2
2
|
import { any } from "remix/data-schema";
|
|
3
3
|
import { isAbsolute, resolve } from "node:path";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -6112,10 +6112,10 @@ var MemoryStore = class {
|
|
|
6112
6112
|
reply: this.schema.capabilities.threads,
|
|
6113
6113
|
status: this.schema.capabilities.threads,
|
|
6114
6114
|
link: this.schema.capabilities.threads,
|
|
6115
|
+
delete: this.schema.capabilities.threads,
|
|
6115
6116
|
...options.threadCapabilities,
|
|
6116
6117
|
sync: false,
|
|
6117
|
-
edit: false
|
|
6118
|
-
delete: false
|
|
6118
|
+
edit: false
|
|
6119
6119
|
});
|
|
6120
6120
|
if (this.schema.capabilities.sync) refused("Memory storage has no remote synchronization.");
|
|
6121
6121
|
for (let action of this.schema.actions) if (action.kind === "custom" && !this.options.actions?.[action.id]) refused("Declare an implementation for each custom memory action.");
|
|
@@ -6428,6 +6428,28 @@ function memoryThreads(store) {
|
|
|
6428
6428
|
status: request.status
|
|
6429
6429
|
}, at);
|
|
6430
6430
|
}),
|
|
6431
|
+
deleteMessage: (root, id, value, author) => store.run(root, true, (data, at) => {
|
|
6432
|
+
if (!store.capabilities.delete) refused("This adapter does not allow deleting messages.");
|
|
6433
|
+
let request = input(() => parseThreadDeleteInput(value));
|
|
6434
|
+
let trusted = input(() => parseMessageAuthor(author));
|
|
6435
|
+
let thread = store.thread(data, id);
|
|
6436
|
+
expected(thread, request.expectedRevision);
|
|
6437
|
+
let refusal = messageDeletionRefusal(thread.messages, request.messageId, trusted.id);
|
|
6438
|
+
if (refusal === "missing") throw new WorkError({
|
|
6439
|
+
reason: "not-found",
|
|
6440
|
+
message: messageDeletionRefusals.missing
|
|
6441
|
+
});
|
|
6442
|
+
if (refusal) refused(messageDeletionRefusals[refusal]);
|
|
6443
|
+
if (thread.messages[0].id === request.messageId) {
|
|
6444
|
+
data.threads.delete(id);
|
|
6445
|
+
store.touchThreads(data, thread.itemIds, at);
|
|
6446
|
+
return null;
|
|
6447
|
+
}
|
|
6448
|
+
return save(data, {
|
|
6449
|
+
...thread,
|
|
6450
|
+
messages: withoutMessages(thread.messages, [request.messageId])
|
|
6451
|
+
}, at);
|
|
6452
|
+
}),
|
|
6431
6453
|
link: (root, id, ids, revision) => link(root, id, ids, revision, false),
|
|
6432
6454
|
unlink: (root, id, ids, revision) => link(root, id, ids, revision, true)
|
|
6433
6455
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $t as Button, H as CanvasWorkspace, U as captureCanvasPoint, Zt as Loader, bt as conversationHref, en as ToolbarSeparator, et as BranchSidebar, gn as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as ProjectThreadLinks } from "./project-thread-links-
|
|
1
|
+
import { $t as Button, H as CanvasWorkspace, U as captureCanvasPoint, Zt as Loader, _n as Icon, bt as conversationHref, en as ToolbarSeparator, et as BranchSidebar, gn as Text, in as IconButton, l as projectStore, ln as readPreference, mn as t, on as Tooltip, rn as Select, t as commentsUnavailable, tn as WorkspaceLayout, un as writePreference } from "./comment-data-DyIZNpfG.js";
|
|
2
|
+
import { i as pictureKey, n as createProjectPreviews, t as createProjectBranches } from "./project-branches-B7HUGiVK.js";
|
|
3
|
+
import { n as createProjectComments, r as loadComments, t as defineScreen } from "./screen-CZXWJEds.js";
|
|
4
|
+
import { t as ProjectThreadLinks } from "./project-thread-links-CauJF0Cz.js";
|
|
5
5
|
import { on, ref } from "remix/component";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "remix/component/jsx-runtime";
|
|
7
7
|
//#region app/client/preview-image.tsx
|
|
@@ -1033,6 +1033,8 @@ function ProjectCanvas(handle) {
|
|
|
1033
1033
|
},
|
|
1034
1034
|
onSync: () => comments.sync().catch(() => {}),
|
|
1035
1035
|
onReload: comments.load,
|
|
1036
|
+
viewerId: comments.viewer?.id,
|
|
1037
|
+
onDeleteComment: (threadId, messageId) => comments.remove(threadId, messageId),
|
|
1036
1038
|
onCopyThreadLink: (thread) => navigator.clipboard.writeText(new URL(conversationHref(thread.id), window.location.origin).href),
|
|
1037
1039
|
interactive: false,
|
|
1038
1040
|
branch: selected,
|