@bud.sh/app 0.4.1 → 0.5.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/client/assets/bud/design.js +1 -1
- package/dist/client/assets/{canvas-DIKX_HCJ.js → canvas-8GXJIuDK.js} +1 -1
- package/dist/client/assets/difference-worker-C99ychYw.js +8 -0
- package/dist/client/assets/{edit-B050x0rV.js → edit-DUotSxjS.js} +12 -12
- package/dist/client/assets/files-DkWt1l9H.js +1 -0
- package/dist/client/assets/i18n-hH_Ba5QO.js +1 -0
- package/dist/client/assets/{index-COvyj5zV.js → index-Dn2pfmXf.js} +2 -2
- package/dist/client/assets/index-tpHYVXma.css +2 -0
- package/dist/client/assets/lru-DzKYIXMA.js +1 -0
- package/dist/client/assets/pages-BVd6MQmu.js +1 -0
- package/dist/client/assets/{project-branches-DwKjCwZv.js → project-branches-CMGRmrqr.js} +1 -1
- package/dist/client/assets/project-comments-D1IIQwsW.js +1 -0
- package/dist/client/assets/project-thread-links-DKwe_SYb.js +1 -0
- package/dist/client/assets/{project-threads-DeKXNqeP.js → project-threads-ZbKDh78d.js} +105 -105
- package/dist/client/assets/{project-work-B7PGQtV9.js → project-work-D4DZqBCZ.js} +1 -1
- package/dist/client/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/client/assets/task-design-BPpc4Gd7.js +23 -0
- package/dist/client/assets/tasks-Cn0VOZ9Z.js +1 -0
- package/dist/client/assets/{tasks-request-CsUB5__X.js → tasks-request-BLyOzokZ.js} +1 -1
- package/dist/client/assets/workspace-DGErsSg6.js +2 -0
- package/dist/client/index.html +3 -3
- package/dist/hosted/assets/{canvas-gWj_ocKK.js → canvas-BYTOp1p7.js} +6 -4
- package/dist/hosted/assets/{comment-data-C-rNCB1n.js → comment-data-Cn5y2VxV.js} +4026 -3665
- package/dist/hosted/assets/{files-CAPvbavY.js → files-B1P2_24q.js} +5 -3
- package/dist/hosted/assets/{pages-DJiOvT-l.js → pages-B0ZlVdci.js} +3 -3
- package/dist/hosted/assets/{project-branches-BgrfdvtL.js → project-branches-DlCWmfRo.js} +1 -1
- package/dist/hosted/assets/{project-thread-links-B7uzThL9.js → project-thread-links-BZXQ200n.js} +2 -2
- package/dist/hosted/assets/{screen-D4D9nh4V.js → screen-CfdC3NbR.js} +72 -137
- package/dist/hosted/assets/{tasks-C7aGLzBw.js → tasks-_yKh2Z6q.js} +12 -5
- package/dist/hosted/assets/{tasks-request-CikFdCgP.js → tasks-request-CFPLvLc7.js} +1 -1
- package/dist/hosted/hosted.js +164 -16
- package/dist/node/assets/{src-BdvZ2mYc.js → src-CerrKjID.js} +57 -1
- package/dist/node/design.js +826 -791
- package/dist/node/server.js +25 -3
- package/dist/node-host/assets/{canvas-kXzp80a5.js → canvas-DxmcFZCh.js} +6 -4
- package/dist/node-host/assets/{comment-data-CeuJbJKJ.js → comment-data-yfWEdDQL.js} +4004 -3643
- package/dist/node-host/assets/{files-0YIuvKzb.js → files-anHi-apm.js} +5 -3
- package/dist/node-host/assets/{pages-DOF22SyG.js → pages-CW4aF6dK.js} +3 -3
- package/dist/node-host/assets/{project-branches-BeEwMBIw.js → project-branches-D7rVCxQX.js} +1 -1
- package/dist/node-host/assets/{project-thread-links-Bs_MtfBC.js → project-thread-links-m-OLpsD9.js} +2 -2
- package/dist/node-host/assets/{screen-DRTAKkn3.js → screen-DapOVrga.js} +72 -137
- package/dist/node-host/assets/{tasks-BA_hcbj5.js → tasks-BBK_CybR.js} +12 -5
- package/dist/node-host/assets/{tasks-request-Doc9y_20.js → tasks-request-B0aeNocI.js} +1 -1
- package/dist/node-host/node-host.js +164 -16
- package/dist/server/assets/{canvas-CiN6jNIZ.js → canvas-CkMK4hoN.js} +7 -5
- package/dist/server/assets/{comment-data-9SqALQjT.js → comment-data-NLeHG89b.js} +3781 -3631
- package/dist/server/assets/{events-6z5v7Uca.js → events-iHpLGr3k.js} +213 -2
- package/dist/server/assets/{files-DBVqeLdL.js → files-CRdl489E.js} +6 -4
- package/dist/server/assets/{listener-DGWKUc2o.js → listener-BAYn9Q-u.js} +35 -9
- package/dist/server/assets/{pages-DJMLr6j9.js → pages-DXVlJlBC.js} +4 -4
- package/dist/server/assets/{project-branches-DbKEmiQT.js → project-branches-CwTsf6WQ.js} +2 -2
- package/dist/server/assets/{project-thread-links-C0kV_Pcl.js → project-thread-links-lLS_rq7c.js} +3 -3
- package/dist/server/assets/{project-work-C0FN3w5Y.js → project-work-CSZlCwH-.js} +3 -3
- package/dist/server/assets/{screen-BtvzEiIa.js → screen-B1zH_1O3.js} +73 -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-DX71x8f9.js → tasks-CGdz-uox.js} +14 -7
- package/dist/server/assets/{tasks-request-C3jk9Jyu.js → tasks-request-D2NBjCTl.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-CwQNxTJL.js +0 -8
- package/dist/client/assets/files-BQ9O3Z8-.js +0 -1
- package/dist/client/assets/i18n-CL0jBP7Y.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-BGl2Yuza.js +0 -1
- package/dist/client/assets/project-comments-Cdip2Y10.js +0 -1
- package/dist/client/assets/project-thread-links-BGIkGQeU.js +0 -1
- package/dist/client/assets/task-design-DJp5yho1.js +0 -23
- package/dist/client/assets/tasks-BHXj727C.js +0 -1
- package/dist/client/assets/workspace-CbO7RsI2.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, _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-
|
|
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-yfWEdDQL.js";
|
|
2
|
+
import { i as pictureKey, n as createProjectPreviews, t as createProjectBranches } from "./project-branches-D7rVCxQX.js";
|
|
3
|
+
import { n as createProjectComments, r as loadComments, t as defineScreen } from "./screen-DapOVrga.js";
|
|
4
|
+
import { t as ProjectThreadLinks } from "./project-thread-links-m-OLpsD9.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,
|