dsh-taskboard 0.6.7 → 0.7.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/README.md +24 -14
- package/lib/client.js +56 -8
- package/lib/host/assets.js +139 -0
- package/lib/host/assets.js.map +1 -0
- package/lib/host/routes.js +87 -0
- package/lib/host/routes.js.map +1 -1
- package/lib/host/storage-queue.js +14 -0
- package/lib/host/storage-queue.js.map +1 -0
- package/lib/host/storage.js +249 -0
- package/lib/host/storage.js.map +1 -0
- package/lib/host/store.js +34 -7
- package/lib/host/store.js.map +1 -1
- package/lib/host/templates.js +62 -38
- package/lib/host/templates.js.map +1 -1
- package/lib/host/tools.js +6 -4
- package/lib/host/tools.js.map +1 -1
- package/lib/index.js +83 -27
- package/lib/index.js.map +1 -1
- package/lib/shared/api.js.map +1 -1
- package/package.json +12 -11
- package/src/client/api.ts +30 -0
- package/src/client/board/SettingsModal.tsx +67 -4
- package/src/client/board/SlashPromptInput.tsx +80 -1
- package/src/client/board/TaskDetail.tsx +71 -8
- package/src/client/board/TaskFormModal.tsx +8 -5
- package/src/client/controller.ts +44 -2
- package/src/client/i18n/en.ts +17 -3
- package/src/client/i18n/zh.ts +17 -3
- package/src/client/image-insert.ts +29 -0
- package/src/client/styles.ts +34 -1
- package/src/host/assets.ts +120 -0
- package/src/host/routes.ts +92 -0
- package/src/host/storage-queue.ts +10 -0
- package/src/host/storage.ts +212 -0
- package/src/host/store.ts +40 -12
- package/src/host/templates.ts +30 -7
- package/src/host/tools.ts +8 -4
- package/src/index.ts +88 -33
- package/src/shared/api.ts +26 -0
- package/src/shared/version.ts +1 -1
package/src/shared/api.ts
CHANGED
|
@@ -104,6 +104,16 @@ export type RejectTaskBody = { ifVersion: number; body?: string }
|
|
|
104
104
|
/** Comment request body. */
|
|
105
105
|
export type CommentBody = { body: string }
|
|
106
106
|
|
|
107
|
+
/** One content-addressed image uploaded outside the ledger. */
|
|
108
|
+
export type AttachmentUpload = {
|
|
109
|
+
id: string
|
|
110
|
+
name: string
|
|
111
|
+
size: number
|
|
112
|
+
url: string
|
|
113
|
+
extension: 'png' | 'jpg' | 'gif' | 'webp'
|
|
114
|
+
mime: 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp'
|
|
115
|
+
}
|
|
116
|
+
|
|
107
117
|
/** Delete request body (purge=true physically removes a trashed task). */
|
|
108
118
|
export type DeleteTaskBody = { ifVersion?: number; purge?: boolean }
|
|
109
119
|
|
|
@@ -187,6 +197,22 @@ export type TemplatesResponse = { templates: TaskTemplate[] }
|
|
|
187
197
|
/** Board-settings response (0.5.0; absent fields follow factory defaults). */
|
|
188
198
|
export type SettingsResponse = BoardSettings
|
|
189
199
|
|
|
200
|
+
/** Current host-side location of all durable taskboard data. */
|
|
201
|
+
export type StorageStatus = {
|
|
202
|
+
currentDirectory: string
|
|
203
|
+
defaultDirectory: string
|
|
204
|
+
isDefault: boolean
|
|
205
|
+
configured: boolean
|
|
206
|
+
writable: boolean
|
|
207
|
+
assetCount: number
|
|
208
|
+
assetBytes: number
|
|
209
|
+
checkedDirectory?: string
|
|
210
|
+
error?: string
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/** Completed storage relocation, including non-fatal old-file cleanup failures. */
|
|
214
|
+
export type StorageMigrationResult = StorageStatus & { migrated: boolean; warnings: string[] }
|
|
215
|
+
|
|
190
216
|
/** Update-board-settings request body (0.5.0; whole-object replace semantics). */
|
|
191
217
|
export type UpdateSettingsBody = {
|
|
192
218
|
/** Default code isolation for NEW tasks ('worktree' | 'none'). */
|
package/src/shared/version.ts
CHANGED