nx-kv 0.46.0 → 0.48.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.
Files changed (1034) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +10 -4
  3. package/bin/kv.mjs +41 -0
  4. package/package.json +23 -11
  5. package/src/core/atomic-file.ts +46 -0
  6. package/src/core/attachmentdb/docs.ts +124 -0
  7. package/src/core/attachmentdb/ids.ts +112 -0
  8. package/src/core/attachmentdb/query.ts +230 -0
  9. package/src/core/attachmentdb/relations.ts +221 -0
  10. package/src/core/attachmentdb/resources.ts +260 -0
  11. package/src/core/attachstore.ts +360 -0
  12. package/src/core/command-table.ts +33 -0
  13. package/src/core/config.ts +212 -0
  14. package/src/core/db/bootstrap.ts +507 -0
  15. package/src/core/db/driver.ts +408 -0
  16. package/src/core/db/errors.ts +149 -0
  17. package/src/core/db/import-json/data.ts +193 -0
  18. package/src/core/db/import-json/extras.ts +77 -0
  19. package/src/core/db/import-json/links.ts +161 -0
  20. package/src/core/db/import-json/refs.ts +207 -0
  21. package/src/core/db/import-json/repos.ts +190 -0
  22. package/src/core/db/import-json/scan.ts +50 -0
  23. package/src/core/db/import-json/tasks.ts +366 -0
  24. package/src/core/db/import-json.ts +206 -0
  25. package/src/core/db/index.ts +147 -0
  26. package/src/core/db/migrations/index.ts +138 -0
  27. package/src/core/db/migrations/v2-data.ts +177 -0
  28. package/src/core/db/migrations/v4-data.ts +221 -0
  29. package/src/core/db/migrator.ts +233 -0
  30. package/src/core/db/quiet.ts +23 -0
  31. package/src/core/db/seed-templates.ts +266 -0
  32. package/src/core/db/settings.ts +61 -0
  33. package/src/core/db/time.ts +98 -0
  34. package/src/core/db/tx.ts +209 -0
  35. package/src/core/db/verify.ts +317 -0
  36. package/src/core/db/version.ts +72 -0
  37. package/src/core/errors.ts +105 -0
  38. package/src/core/fileapi.ts +267 -0
  39. package/src/core/frontmatter.ts +70 -0
  40. package/src/core/fstree.ts +87 -0
  41. package/src/core/instruction-template.ts +357 -0
  42. package/src/core/keys.ts +32 -0
  43. package/src/core/kvapi.ts +237 -0
  44. package/src/core/localatt.ts +179 -0
  45. package/src/core/open.ts +26 -0
  46. package/src/core/paths.ts +101 -0
  47. package/src/core/prompt.ts +60 -0
  48. package/src/core/serve-port.ts +165 -0
  49. package/src/core/topic-key.ts +43 -0
  50. package/src/core/workflow/edges.ts +28 -0
  51. package/src/core/workflow/layout.ts +118 -0
  52. package/src/core/workflow/lifecycle.ts +57 -0
  53. package/src/core/workflow/plugin-registry.ts +50 -0
  54. package/src/core/workflow/project.ts +108 -0
  55. package/src/core/workflow/readiness.ts +218 -0
  56. package/src/core/workflow/types.ts +175 -0
  57. package/src/core/zip.ts +178 -0
  58. package/src/index.js +11 -9
  59. package/src/index.ts +10 -0
  60. package/src/modules/auth/actions/_manifest.generated.ts +26 -0
  61. package/src/modules/auth/actions/auth-login.ts +24 -0
  62. package/src/modules/auth/actions/auth-logout.ts +28 -0
  63. package/src/modules/auth/actions/auth-me.ts +28 -0
  64. package/src/modules/auth/actions/auth-status.ts +36 -0
  65. package/src/modules/auth/index.ts +24 -0
  66. package/src/modules/auth/schemas.ts +27 -0
  67. package/src/modules/auth/support.ts +28 -0
  68. package/src/modules/bundled/actions/_manifest.generated.ts +26 -0
  69. package/src/modules/bundled/actions/bundled-get.ts +29 -0
  70. package/src/modules/bundled/actions/bundled-groups.ts +33 -0
  71. package/src/modules/bundled/actions/bundled-install.ts +43 -0
  72. package/src/modules/bundled/actions/bundled-list.ts +37 -0
  73. package/src/modules/bundled/index.ts +24 -0
  74. package/src/modules/bundled/schemas.ts +32 -0
  75. package/src/modules/bundled/service.ts +377 -0
  76. package/src/modules/bundled/support.ts +70 -0
  77. package/src/modules/db/actions/_manifest.generated.ts +26 -0
  78. package/src/modules/db/actions/db-backup.ts +24 -0
  79. package/src/modules/db/actions/db-migrate.ts +24 -0
  80. package/src/modules/db/actions/db-status.ts +24 -0
  81. package/src/modules/db/actions/db-verify.ts +24 -0
  82. package/src/modules/db/index.ts +24 -0
  83. package/src/modules/db/schemas.ts +27 -0
  84. package/src/modules/db/service.ts +340 -0
  85. package/src/modules/docs/actions/_manifest.generated.ts +56 -0
  86. package/src/modules/docs/actions/doc-add.ts +30 -0
  87. package/src/modules/docs/actions/doc-attach-note.ts +25 -0
  88. package/src/modules/docs/actions/doc-attach.ts +25 -0
  89. package/src/modules/docs/actions/doc-attachments.ts +27 -0
  90. package/src/modules/docs/actions/doc-detach.ts +25 -0
  91. package/src/modules/docs/actions/doc-get.ts +27 -0
  92. package/src/modules/docs/actions/doc-list.ts +26 -0
  93. package/src/modules/docs/actions/doc-remove.ts +25 -0
  94. package/src/modules/docs/actions/doc-update.ts +30 -0
  95. package/src/modules/docs/actions/docs-bind.ts +26 -0
  96. package/src/modules/docs/actions/docs-index.ts +24 -0
  97. package/src/modules/docs/actions/docs-link.ts +27 -0
  98. package/src/modules/docs/actions/docs-notebind.ts +27 -0
  99. package/src/modules/docs/actions/docs-seed.ts +26 -0
  100. package/src/modules/docs/attach.ts +299 -0
  101. package/src/modules/docs/brief.ts +142 -0
  102. package/src/modules/docs/docref.ts +109 -0
  103. package/src/modules/docs/index.ts +25 -0
  104. package/src/modules/docs/knowledge.ts +628 -0
  105. package/src/modules/docs/links.ts +45 -0
  106. package/src/modules/docs/paths.ts +104 -0
  107. package/src/modules/docs/refs.ts +275 -0
  108. package/src/modules/docs/render.ts +85 -0
  109. package/src/modules/docs/repos-bridge.ts +13 -0
  110. package/src/modules/docs/schemas.ts +107 -0
  111. package/src/modules/docs/seed.ts +160 -0
  112. package/src/modules/docs/service.ts +255 -0
  113. package/src/modules/docs/store.ts +262 -0
  114. package/src/modules/file/actions/_manifest.generated.ts +38 -0
  115. package/src/modules/file/actions/file-content.ts +28 -0
  116. package/src/modules/file/actions/file-get.ts +25 -0
  117. package/src/modules/file/actions/file-list.ts +24 -0
  118. package/src/modules/file/actions/file-orphans.ts +24 -0
  119. package/src/modules/file/actions/file-prune.ts +24 -0
  120. package/src/modules/file/actions/file-remove.ts +25 -0
  121. package/src/modules/file/actions/file-sync.ts +24 -0
  122. package/src/modules/file/actions/file-upload.ts +24 -0
  123. package/src/modules/file/index.ts +24 -0
  124. package/src/modules/file/schemas.ts +61 -0
  125. package/src/modules/file/service.ts +449 -0
  126. package/src/modules/localtask/action-render.ts +203 -0
  127. package/src/modules/localtask/actions/_manifest.generated.ts +113 -0
  128. package/src/modules/localtask/actions/localtask-add.ts +48 -0
  129. package/src/modules/localtask/actions/localtask-attach-note.ts +29 -0
  130. package/src/modules/localtask/actions/localtask-attach.ts +38 -0
  131. package/src/modules/localtask/actions/localtask-attachments.ts +25 -0
  132. package/src/modules/localtask/actions/localtask-cancel.ts +26 -0
  133. package/src/modules/localtask/actions/localtask-cancelMany.ts +34 -0
  134. package/src/modules/localtask/actions/localtask-chain.ts +26 -0
  135. package/src/modules/localtask/actions/localtask-claim.ts +34 -0
  136. package/src/modules/localtask/actions/localtask-clone.ts +25 -0
  137. package/src/modules/localtask/actions/localtask-closeMany.ts +41 -0
  138. package/src/modules/localtask/actions/localtask-config.ts +64 -0
  139. package/src/modules/localtask/actions/localtask-detach.ts +31 -0
  140. package/src/modules/localtask/actions/localtask-done.ts +36 -0
  141. package/src/modules/localtask/actions/localtask-events.ts +31 -0
  142. package/src/modules/localtask/actions/localtask-fork.ts +25 -0
  143. package/src/modules/localtask/actions/localtask-get.ts +33 -0
  144. package/src/modules/localtask/actions/localtask-importRemote.ts +40 -0
  145. package/src/modules/localtask/actions/localtask-list.ts +26 -0
  146. package/src/modules/localtask/actions/localtask-presence.ts +28 -0
  147. package/src/modules/localtask/actions/localtask-preview.ts +45 -0
  148. package/src/modules/localtask/actions/localtask-prune.ts +28 -0
  149. package/src/modules/localtask/actions/localtask-remove.ts +27 -0
  150. package/src/modules/localtask/actions/localtask-removeMany.ts +32 -0
  151. package/src/modules/localtask/actions/localtask-reopen.ts +39 -0
  152. package/src/modules/localtask/actions/localtask-reorder.ts +33 -0
  153. package/src/modules/localtask/actions/localtask-task-restore.ts +27 -0
  154. package/src/modules/localtask/actions/localtask-timegoalLog.ts +37 -0
  155. package/src/modules/localtask/actions/localtask-topic-add.ts +26 -0
  156. package/src/modules/localtask/actions/localtask-topic-remove.ts +25 -0
  157. package/src/modules/localtask/actions/localtask-topic-removeMany.ts +26 -0
  158. package/src/modules/localtask/actions/localtask-update.ts +60 -0
  159. package/src/modules/localtask/actions/localtask-wait.ts +32 -0
  160. package/src/modules/localtask/actions/task-move.ts +50 -0
  161. package/src/modules/localtask/board-target.ts +190 -0
  162. package/src/modules/localtask/bus/index.ts +44 -0
  163. package/src/modules/localtask/deletion.ts +169 -0
  164. package/src/modules/localtask/engine.ts +59 -0
  165. package/src/modules/localtask/events.ts +250 -0
  166. package/src/modules/localtask/index.ts +25 -0
  167. package/src/modules/localtask/move-prims.ts +170 -0
  168. package/src/modules/localtask/move.ts +174 -0
  169. package/src/modules/localtask/mutator/index.ts +184 -0
  170. package/src/modules/localtask/mutator/validate.ts +59 -0
  171. package/src/modules/localtask/panel-guard.ts +199 -0
  172. package/src/modules/localtask/panel-presence.ts +361 -0
  173. package/src/modules/localtask/paths.ts +101 -0
  174. package/src/modules/localtask/remote-import.ts +159 -0
  175. package/src/modules/localtask/repo/goals.ts +186 -0
  176. package/src/modules/localtask/repo/links.ts +172 -0
  177. package/src/modules/localtask/repo/open.ts +74 -0
  178. package/src/modules/localtask/repo/presence.ts +126 -0
  179. package/src/modules/localtask/repo/rows.ts +204 -0
  180. package/src/modules/localtask/repo/settings.ts +402 -0
  181. package/src/modules/localtask/repo/snapshot.ts +173 -0
  182. package/src/modules/localtask/repo/tasks.ts +394 -0
  183. package/src/modules/localtask/repo/topics.ts +336 -0
  184. package/src/modules/localtask/repo-ctx.ts +33 -0
  185. package/src/modules/localtask/scheduler/index.ts +68 -0
  186. package/src/modules/localtask/scheduler/state-drive.ts +38 -0
  187. package/src/modules/localtask/schemas.ts +310 -0
  188. package/src/modules/localtask/service.ts +62 -0
  189. package/src/modules/localtask/store/file-adapter.ts +55 -0
  190. package/src/modules/localtask/store/index.ts +111 -0
  191. package/src/modules/localtask/store/memory-adapter.ts +37 -0
  192. package/src/modules/localtask/store-io.ts +77 -0
  193. package/src/modules/localtask/task-lifecycle.ts +461 -0
  194. package/src/modules/localtask/task-ops.ts +494 -0
  195. package/src/modules/localtask/task-remove.ts +366 -0
  196. package/src/modules/localtask/task-templates.ts +84 -0
  197. package/src/modules/localtask/task-view.ts +474 -0
  198. package/src/modules/localtask/topics.ts +197 -0
  199. package/src/modules/localtask/waiters.ts +86 -0
  200. package/src/modules/localtask/waiting.ts +82 -0
  201. package/src/modules/localtask/writes.ts +153 -0
  202. package/src/modules/repos/actions/_manifest.generated.ts +146 -0
  203. package/src/modules/repos/actions/board-add.ts +25 -0
  204. package/src/modules/repos/actions/board-assign.ts +27 -0
  205. package/src/modules/repos/actions/board-export.ts +24 -0
  206. package/src/modules/repos/actions/board-get.ts +27 -0
  207. package/src/modules/repos/actions/board-import.ts +40 -0
  208. package/src/modules/repos/actions/board-list.ts +26 -0
  209. package/src/modules/repos/actions/board-note.ts +27 -0
  210. package/src/modules/repos/actions/board-prefix.ts +27 -0
  211. package/src/modules/repos/actions/board-prune.ts +29 -0
  212. package/src/modules/repos/actions/board-rekey.ts +28 -0
  213. package/src/modules/repos/actions/board-remove.ts +25 -0
  214. package/src/modules/repos/actions/board-update.ts +25 -0
  215. package/src/modules/repos/actions/repo-add.ts +29 -0
  216. package/src/modules/repos/actions/repo-bind-topics.ts +36 -0
  217. package/src/modules/repos/actions/repo-bind.ts +27 -0
  218. package/src/modules/repos/actions/repo-clone.ts +25 -0
  219. package/src/modules/repos/actions/repo-detect.ts +33 -0
  220. package/src/modules/repos/actions/repo-doc-add.ts +25 -0
  221. package/src/modules/repos/actions/repo-doc-list.ts +34 -0
  222. package/src/modules/repos/actions/repo-doc-remove.ts +25 -0
  223. package/src/modules/repos/actions/repo-export.ts +32 -0
  224. package/src/modules/repos/actions/repo-get.ts +27 -0
  225. package/src/modules/repos/actions/repo-import-diff.ts +28 -0
  226. package/src/modules/repos/actions/repo-import.ts +35 -0
  227. package/src/modules/repos/actions/repo-key-migrate.ts +24 -0
  228. package/src/modules/repos/actions/repo-key-refresh.ts +25 -0
  229. package/src/modules/repos/actions/repo-key-set.ts +33 -0
  230. package/src/modules/repos/actions/repo-knowledge.ts +43 -0
  231. package/src/modules/repos/actions/repo-list.ts +26 -0
  232. package/src/modules/repos/actions/repo-open.ts +25 -0
  233. package/src/modules/repos/actions/repo-ref-add.ts +25 -0
  234. package/src/modules/repos/actions/repo-ref-backfill.ts +27 -0
  235. package/src/modules/repos/actions/repo-ref-check.ts +26 -0
  236. package/src/modules/repos/actions/repo-ref-clone.ts +36 -0
  237. package/src/modules/repos/actions/repo-ref-note.ts +25 -0
  238. package/src/modules/repos/actions/repo-ref-of.ts +27 -0
  239. package/src/modules/repos/actions/repo-ref-sync.ts +27 -0
  240. package/src/modules/repos/actions/repo-remote-check.ts +28 -0
  241. package/src/modules/repos/actions/repo-remote-list.ts +32 -0
  242. package/src/modules/repos/actions/repo-remote-pick.ts +25 -0
  243. package/src/modules/repos/actions/repo-remote.ts +38 -0
  244. package/src/modules/repos/actions/repo-remove.ts +25 -0
  245. package/src/modules/repos/actions/repo-scan.ts +41 -0
  246. package/src/modules/repos/actions/repo-update.ts +33 -0
  247. package/src/modules/repos/boards/core.ts +366 -0
  248. package/src/modules/repos/boards/docs.ts +82 -0
  249. package/src/modules/repos/boards/members.ts +306 -0
  250. package/src/modules/repos/boards/transfer.ts +214 -0
  251. package/src/modules/repos/cli/render.ts +184 -0
  252. package/src/modules/repos/git.ts +223 -0
  253. package/src/modules/repos/index.ts +25 -0
  254. package/src/modules/repos/keys.ts +262 -0
  255. package/src/modules/repos/ref-backfill.ts +219 -0
  256. package/src/modules/repos/ref.ts +680 -0
  257. package/src/modules/repos/remote.ts +262 -0
  258. package/src/modules/repos/repo/open.ts +93 -0
  259. package/src/modules/repos/repo/refs.ts +186 -0
  260. package/src/modules/repos/repo/repos.ts +242 -0
  261. package/src/modules/repos/repo/rows.ts +260 -0
  262. package/src/modules/repos/schemas.ts +310 -0
  263. package/src/modules/repos/service/bind-topics.ts +124 -0
  264. package/src/modules/repos/service/context.ts +229 -0
  265. package/src/modules/repos/service/crud.ts +404 -0
  266. package/src/modules/repos/service/identity.ts +212 -0
  267. package/src/modules/repos/service/store.ts +278 -0
  268. package/src/modules/repos/transfer/diff.ts +208 -0
  269. package/src/modules/repos/transfer/export.ts +287 -0
  270. package/src/modules/repos/transfer/import.ts +424 -0
  271. package/src/modules/repos/transfer/layout.ts +193 -0
  272. package/src/modules/repos/transfer/render.ts +75 -0
  273. package/src/modules/setting/actions/_manifest.generated.ts +20 -0
  274. package/src/modules/setting/actions/setting-get.ts +24 -0
  275. package/src/modules/setting/actions/setting-set.ts +24 -0
  276. package/src/modules/setting/index.ts +24 -0
  277. package/src/modules/setting/schemas.ts +18 -0
  278. package/src/modules/setting/service.ts +75 -0
  279. package/src/modules/system/actions/_manifest.generated.ts +23 -0
  280. package/src/modules/system/actions/bootstrap.ts +74 -0
  281. package/src/modules/system/actions/health.ts +57 -0
  282. package/src/modules/system/actions/routes.ts +26 -0
  283. package/src/modules/system/index.ts +29 -0
  284. package/src/modules/system/routes.ts +67 -0
  285. package/src/modules/system/schemas.ts +29 -0
  286. package/src/modules/tasktool/actions/_manifest.generated.ts +38 -0
  287. package/src/modules/tasktool/actions/timegoal-check.ts +30 -0
  288. package/src/modules/tasktool/actions/timegoal-clear.ts +25 -0
  289. package/src/modules/tasktool/actions/timegoal-list.ts +25 -0
  290. package/src/modules/tasktool/actions/timegoal-log.ts +37 -0
  291. package/src/modules/tasktool/actions/timegoal-prune.ts +28 -0
  292. package/src/modules/tasktool/actions/timegoal-set.ts +25 -0
  293. package/src/modules/tasktool/actions/timegoal-show.ts +28 -0
  294. package/src/modules/tasktool/actions/timegoal-update.ts +25 -0
  295. package/src/modules/tasktool/add.ts +129 -0
  296. package/src/modules/tasktool/attach-resource.ts +312 -0
  297. package/src/modules/tasktool/attach-template.ts +266 -0
  298. package/src/modules/tasktool/attach.ts +497 -0
  299. package/src/modules/tasktool/delivery-template.ts +222 -0
  300. package/src/modules/tasktool/delivery-text.ts +36 -0
  301. package/src/modules/tasktool/doc-inline.ts +85 -0
  302. package/src/modules/tasktool/facade/get.ts +54 -0
  303. package/src/modules/tasktool/facade/submit.ts +61 -0
  304. package/src/modules/tasktool/get.ts +46 -0
  305. package/src/modules/tasktool/group-store.ts +28 -0
  306. package/src/modules/tasktool/groupctx.ts +167 -0
  307. package/src/modules/tasktool/index.ts +24 -0
  308. package/src/modules/tasktool/panel-escort.ts +134 -0
  309. package/src/modules/tasktool/params.ts +34 -0
  310. package/src/modules/tasktool/plugins/base.ts +68 -0
  311. package/src/modules/tasktool/plugins/blockgoal.ts +24 -0
  312. package/src/modules/tasktool/plugins/container.ts +42 -0
  313. package/src/modules/tasktool/plugins/discover.ts +55 -0
  314. package/src/modules/tasktool/plugins/goal-template.ts +98 -0
  315. package/src/modules/tasktool/plugins/runtime.ts +73 -0
  316. package/src/modules/tasktool/plugins/taskgoal-store.ts +183 -0
  317. package/src/modules/tasktool/plugins/taskgoal.ts +17 -0
  318. package/src/modules/tasktool/plugins/timegoal-core-store.ts +161 -0
  319. package/src/modules/tasktool/plugins/timegoal-cwd-store.ts +455 -0
  320. package/src/modules/tasktool/plugins/timegoal-store.ts +81 -0
  321. package/src/modules/tasktool/plugins/timegoal-task-store.ts +356 -0
  322. package/src/modules/tasktool/plugins/timegoal.ts +51 -0
  323. package/src/modules/tasktool/plugins/waitgoal-config.ts +118 -0
  324. package/src/modules/tasktool/plugins/waitgoal.ts +77 -0
  325. package/src/modules/tasktool/preview.ts +105 -0
  326. package/src/modules/tasktool/schemas.ts +52 -0
  327. package/src/modules/tasktool/support.ts +100 -0
  328. package/src/modules/tasktool/system-blocks.ts +112 -0
  329. package/src/modules/tasktool/update.ts +79 -0
  330. package/src/modules/tasktool/wait.ts +574 -0
  331. package/src/modules/templates/actions/_manifest.generated.ts +29 -0
  332. package/src/modules/templates/actions/templates-add.ts +39 -0
  333. package/src/modules/templates/actions/templates-default.ts +39 -0
  334. package/src/modules/templates/actions/templates-list.ts +27 -0
  335. package/src/modules/templates/actions/templates-remove.ts +26 -0
  336. package/src/modules/templates/actions/templates-update.ts +34 -0
  337. package/src/modules/templates/index.ts +24 -0
  338. package/src/modules/templates/repo/open.ts +72 -0
  339. package/src/modules/templates/repo/templates.ts +155 -0
  340. package/src/modules/templates/schemas.ts +50 -0
  341. package/src/modules/templates/scope.ts +113 -0
  342. package/src/modules/templates/service.ts +359 -0
  343. package/src/modules/templates/support.ts +47 -0
  344. package/src/modules/todo/actions/_manifest.generated.ts +89 -0
  345. package/src/modules/todo/actions/group-add.ts +28 -0
  346. package/src/modules/todo/actions/group-current.ts +31 -0
  347. package/src/modules/todo/actions/group-get.ts +38 -0
  348. package/src/modules/todo/actions/group-list.ts +36 -0
  349. package/src/modules/todo/actions/group-members.ts +36 -0
  350. package/src/modules/todo/actions/group-remove.ts +39 -0
  351. package/src/modules/todo/actions/group-update.ts +30 -0
  352. package/src/modules/todo/actions/group-use.ts +38 -0
  353. package/src/modules/todo/actions/prompt-get.ts +25 -0
  354. package/src/modules/todo/actions/prompt-remove.ts +25 -0
  355. package/src/modules/todo/actions/prompt-set.ts +25 -0
  356. package/src/modules/todo/actions/todo-add.ts +27 -0
  357. package/src/modules/todo/actions/todo-archive.ts +27 -0
  358. package/src/modules/todo/actions/todo-attach.ts +24 -0
  359. package/src/modules/todo/actions/todo-attachments.ts +25 -0
  360. package/src/modules/todo/actions/todo-done.ts +24 -0
  361. package/src/modules/todo/actions/todo-freeze.ts +24 -0
  362. package/src/modules/todo/actions/todo-get.ts +25 -0
  363. package/src/modules/todo/actions/todo-list.ts +25 -0
  364. package/src/modules/todo/actions/todo-remove.ts +24 -0
  365. package/src/modules/todo/actions/todo-unfreeze.ts +26 -0
  366. package/src/modules/todo/actions/todo-update.ts +31 -0
  367. package/src/modules/todo/actions/topic-add.ts +25 -0
  368. package/src/modules/todo/actions/topic-list.ts +30 -0
  369. package/src/modules/todo/actions/topic-remove.ts +30 -0
  370. package/src/modules/todo/attachments.ts +194 -0
  371. package/src/modules/todo/group.ts +207 -0
  372. package/src/modules/todo/index.ts +26 -0
  373. package/src/modules/todo/locate.ts +103 -0
  374. package/src/modules/todo/schemas.ts +177 -0
  375. package/src/modules/todo/service.ts +476 -0
  376. package/src/modules/todo/store.ts +176 -0
  377. package/src/modules/todo/support.ts +93 -0
  378. package/src/runtime/action-base.ts +14 -0
  379. package/src/runtime/action-decorator.ts +187 -0
  380. package/src/runtime/api.ts +146 -0
  381. package/src/runtime/cli.ts +497 -0
  382. package/src/runtime/codegen.ts +250 -0
  383. package/src/runtime/container.ts +53 -0
  384. package/src/runtime/cors.ts +132 -0
  385. package/src/runtime/help.ts +77 -0
  386. package/src/runtime/registry.ts +140 -0
  387. package/src/runtime/server.ts +144 -0
  388. package/src/runtime/spec.ts +288 -0
  389. package/src/runtime/types/module.ts +47 -0
  390. package/src/runtime/zod-bridge.ts +212 -0
  391. package/src/shared/attach.ts +105 -0
  392. package/src/shared/doc-title.ts +65 -0
  393. package/src/shared/feedback-text.ts +261 -0
  394. package/src/shared/frontmatter.ts +107 -0
  395. package/src/shared/graph.ts +36 -0
  396. package/src/shared/prompt-blocks.ts +438 -0
  397. package/src/shared/repo-key.ts +57 -0
  398. package/src/shared/task-status.ts +108 -0
  399. package/src/shared/wikilink.ts +77 -0
  400. package/src/web/frontend/App.tsx +571 -0
  401. package/src/web/frontend/api/cli-tree.json +2602 -0
  402. package/src/web/frontend/api/client.generated.ts +1734 -0
  403. package/src/web/frontend/api/client.ts +57 -0
  404. package/src/web/frontend/app-context.tsx +56 -0
  405. package/src/web/frontend/components/Introduction/docs-modal.tsx +338 -0
  406. package/src/web/frontend/components/Introduction/index.tsx +65 -0
  407. package/src/web/frontend/components/Introduction/rail.tsx +169 -0
  408. package/src/web/frontend/components/Introduction/use-intro.ts +311 -0
  409. package/src/web/frontend/components/board/member-picker.tsx +290 -0
  410. package/src/web/frontend/components/button/index.tsx +150 -0
  411. package/src/web/frontend/components/cloud/editor.tsx +254 -0
  412. package/src/web/frontend/components/cloud/group-popup.tsx +198 -0
  413. package/src/web/frontend/components/cloud/markdown.tsx +60 -0
  414. package/src/web/frontend/components/cloud/upload.ts +157 -0
  415. package/src/web/frontend/components/doc/doc-head.tsx +269 -0
  416. package/src/web/frontend/components/icons.tsx +188 -0
  417. package/src/web/frontend/components/layout/breadcrumb.tsx +58 -0
  418. package/src/web/frontend/components/layout/crumbs.ts +155 -0
  419. package/src/web/frontend/components/layout/route-crumb.tsx +33 -0
  420. package/src/web/frontend/components/layout/route-history.ts +27 -0
  421. package/src/web/frontend/components/layout/side-resizer.tsx +126 -0
  422. package/src/web/frontend/components/layout/tabs.tsx +76 -0
  423. package/src/web/frontend/components/md/ack-rail.tsx +318 -0
  424. package/src/web/frontend/components/md/attach-area.tsx +430 -0
  425. package/src/web/frontend/components/md/attach-bar.tsx +31 -0
  426. package/src/web/frontend/components/md/attach-common.ts +222 -0
  427. package/src/web/frontend/components/md/attach-modal.tsx +491 -0
  428. package/src/web/frontend/components/md/attach-picker.tsx +367 -0
  429. package/src/web/frontend/components/md/attachments.ts +122 -0
  430. package/src/web/frontend/components/md/composer-launch.ts +105 -0
  431. package/src/web/frontend/components/md/composer-panel.tsx +369 -0
  432. package/src/web/frontend/components/md/find-bar.tsx +51 -0
  433. package/src/web/frontend/components/md/live-block.tsx +153 -0
  434. package/src/web/frontend/components/md/md-panes-helpers.ts +166 -0
  435. package/src/web/frontend/components/md/md-panes-keys.ts +212 -0
  436. package/src/web/frontend/components/md/md-panes-root.tsx +198 -0
  437. package/src/web/frontend/components/md/md-panes.tsx +528 -0
  438. package/src/web/frontend/components/md/sel-menu.tsx +106 -0
  439. package/src/web/frontend/components/md/shortcut-sheet.tsx +66 -0
  440. package/src/web/frontend/components/md/slash-menu.tsx +136 -0
  441. package/src/web/frontend/components/md/status-bar.tsx +60 -0
  442. package/src/web/frontend/components/md/task-chain.tsx +98 -0
  443. package/src/web/frontend/components/md/template-editor.tsx +129 -0
  444. package/src/web/frontend/components/md/tool-bar.tsx +331 -0
  445. package/src/web/frontend/components/md/use-live-preview.ts +304 -0
  446. package/src/web/frontend/components/md/use-slash-menu.ts +89 -0
  447. package/src/web/frontend/components/md/use-source-editor.ts +342 -0
  448. package/src/web/frontend/components/migrate/dialog.tsx +120 -0
  449. package/src/web/frontend/components/migrate/undo.tsx +73 -0
  450. package/src/web/frontend/components/migrate/use-move.ts +137 -0
  451. package/src/web/frontend/components/pager.tsx +90 -0
  452. package/src/web/frontend/components/popup/dismiss.ts +41 -0
  453. package/src/web/frontend/components/popup/index.tsx +350 -0
  454. package/src/web/frontend/components/repos/desc-modal.tsx +293 -0
  455. package/src/web/frontend/components/repos/get-loop-modal.tsx +292 -0
  456. package/src/web/frontend/components/repos/transfer-panel.tsx +521 -0
  457. package/src/web/frontend/components/sidebar/drag.ts +87 -0
  458. package/src/web/frontend/components/sidebar/index.tsx +407 -0
  459. package/src/web/frontend/components/sidebar/model.ts +253 -0
  460. package/src/web/frontend/components/sidebar/panel.tsx +213 -0
  461. package/src/web/frontend/components/sidebar/queue-nav.ts +56 -0
  462. package/src/web/frontend/components/sidebar/rescue-fab.tsx +84 -0
  463. package/src/web/frontend/components/sidebar/row-menu.tsx +136 -0
  464. package/src/web/frontend/components/sidebar/side-state.ts +58 -0
  465. package/src/web/frontend/components/sidebar/task-children.tsx +103 -0
  466. package/src/web/frontend/components/status-tag/index.tsx +43 -0
  467. package/src/web/frontend/components/status-tag/model.ts +61 -0
  468. package/src/web/frontend/components/task-panel/index.tsx +48 -0
  469. package/src/web/frontend/components/task-panel/layout.tsx +82 -0
  470. package/src/web/frontend/components/task-panel/page-shell.tsx +49 -0
  471. package/src/web/frontend/components/task-panel/task-row.tsx +227 -0
  472. package/src/web/frontend/components/toast/index.tsx +59 -0
  473. package/src/web/frontend/components/tool-acts/bar.tsx +174 -0
  474. package/src/web/frontend/components/tool-acts/dnd.ts +70 -0
  475. package/src/web/frontend/components/tool-acts/layout-panel.tsx +320 -0
  476. package/src/web/frontend/components/tool-acts/modules.ts +215 -0
  477. package/src/web/frontend/components/tool-acts/use-layout.ts +37 -0
  478. package/src/web/frontend/components/ui.tsx +119 -0
  479. package/src/web/frontend/index.html +1 -1
  480. package/src/web/frontend/main.tsx +20 -0
  481. package/src/web/frontend/modules/board/ack-nodes.ts +150 -0
  482. package/src/web/frontend/modules/board/ack-rail-pos.ts +73 -0
  483. package/src/web/frontend/modules/board/board-view.ts +302 -0
  484. package/src/web/frontend/modules/board/reopen-text.ts +90 -0
  485. package/src/web/frontend/modules/md/attach-mention.ts +81 -0
  486. package/src/web/frontend/modules/md/doc-store.ts +100 -0
  487. package/src/web/frontend/modules/md/lightbox.ts +114 -0
  488. package/src/web/frontend/modules/md/md-blocks.ts +260 -0
  489. package/src/web/frontend/modules/md/md-edit-ops.ts +435 -0
  490. package/src/web/frontend/modules/md/md-history.ts +129 -0
  491. package/src/web/frontend/modules/md/md-parse.ts +133 -0
  492. package/src/web/frontend/modules/md/md-render.ts +304 -0
  493. package/src/web/frontend/modules/md/progress-chain.ts +34 -0
  494. package/src/web/frontend/modules/md/progress-search.ts +117 -0
  495. package/src/web/frontend/modules/md/use-templates.ts +175 -0
  496. package/src/web/frontend/modules/prompts/placeholders.ts +106 -0
  497. package/src/web/frontend/modules/prompts/prompt-editor.tsx +174 -0
  498. package/src/web/frontend/page/cloud/index.tsx +535 -0
  499. package/src/web/frontend/page/dag/edges.ts +79 -0
  500. package/src/web/frontend/page/dag/head-bar.tsx +78 -0
  501. package/src/web/frontend/page/dag/index.tsx +520 -0
  502. package/src/web/frontend/page/dag/layout.ts +97 -0
  503. package/src/web/frontend/page/dag/model.ts +128 -0
  504. package/src/web/frontend/page/dag/node-card.tsx +156 -0
  505. package/src/web/frontend/page/dag/use-interactions.ts +155 -0
  506. package/src/web/frontend/page/dir/dag-editor.tsx +206 -0
  507. package/src/web/frontend/page/dir/deleted-panel.tsx +77 -0
  508. package/src/web/frontend/page/dir/index.tsx +557 -0
  509. package/src/web/frontend/page/dir/landing.tsx +463 -0
  510. package/src/web/frontend/page/dir/task-ack.ts +46 -0
  511. package/src/web/frontend/page/dir/task-actions.ts +450 -0
  512. package/src/web/frontend/page/dir/task-beside-header.tsx +22 -0
  513. package/src/web/frontend/page/dir/task-board-section.tsx +49 -0
  514. package/src/web/frontend/page/dir/task-chain.ts +190 -0
  515. package/src/web/frontend/page/dir/task-derived-ctx.ts +61 -0
  516. package/src/web/frontend/page/dir/task-dock-panel.tsx +283 -0
  517. package/src/web/frontend/page/dir/task-dock.ts +97 -0
  518. package/src/web/frontend/page/dir/task-feedback.ts +247 -0
  519. package/src/web/frontend/page/dir/task-goal-section.tsx +78 -0
  520. package/src/web/frontend/page/dir/task-goal.ts +51 -0
  521. package/src/web/frontend/page/dir/task-history-view.tsx +54 -0
  522. package/src/web/frontend/page/dir/task-not-found.tsx +34 -0
  523. package/src/web/frontend/page/dir/task-preview-modal.tsx +104 -0
  524. package/src/web/frontend/page/dir/task-sel-menu.ts +59 -0
  525. package/src/web/frontend/page/dir/task-status-bar.tsx +77 -0
  526. package/src/web/frontend/page/dir/task-utils.ts +257 -0
  527. package/src/web/frontend/page/dir/task.tsx +575 -0
  528. package/src/web/frontend/page/doc/index.tsx +632 -0
  529. package/src/web/frontend/page/group/index.tsx +698 -0
  530. package/src/web/frontend/page/overview/index.tsx +326 -0
  531. package/src/web/frontend/page/progress/index.tsx +545 -0
  532. package/src/web/frontend/page/refs/index.tsx +157 -0
  533. package/src/web/frontend/page/repos/bind-modals.tsx +138 -0
  534. package/src/web/frontend/page/repos/board-admin.tsx +246 -0
  535. package/src/web/frontend/page/repos/board-refs.tsx +108 -0
  536. package/src/web/frontend/page/repos/doc-search-modal.tsx +269 -0
  537. package/src/web/frontend/page/repos/filters-bar.tsx +54 -0
  538. package/src/web/frontend/page/repos/index.tsx +615 -0
  539. package/src/web/frontend/page/repos/pending-section.tsx +169 -0
  540. package/src/web/frontend/page/repos/ref-panel.tsx +441 -0
  541. package/src/web/frontend/page/repos/remote-modal.tsx +142 -0
  542. package/src/web/frontend/page/repos/repo-form-modal.tsx +252 -0
  543. package/src/web/frontend/page/repos/repo-table.tsx +411 -0
  544. package/src/web/frontend/page/settings/index.tsx +234 -0
  545. package/src/web/frontend/page/settings/prompt-template-params.ts +296 -0
  546. package/src/web/frontend/page/settings/prompt-templates-section.tsx +473 -0
  547. package/src/web/frontend/page/settings/sidebar-section.tsx +75 -0
  548. package/src/web/frontend/page/settings/task-templates-section.tsx +124 -0
  549. package/src/web/frontend/page/templates/index.tsx +280 -0
  550. package/src/web/frontend/page/templates/scope-chips.tsx +237 -0
  551. package/src/web/frontend/panels.tsx +248 -0
  552. package/src/web/frontend/prefs.ts +77 -0
  553. package/src/web/frontend/registry.ts +36 -0
  554. package/src/web/frontend/route-map.ts +47 -0
  555. package/src/web/frontend/routes/dir.ts +54 -0
  556. package/src/web/frontend/routes/doc-ref.ts +36 -0
  557. package/src/web/frontend/routes/doc.ts +45 -0
  558. package/src/web/frontend/routes/group.ts +37 -0
  559. package/src/web/frontend/routes/index.ts +40 -0
  560. package/src/web/frontend/routes/keys.ts +3 -0
  561. package/src/web/frontend/routes/static.ts +21 -0
  562. package/src/web/frontend/routes/templates.ts +65 -0
  563. package/src/web/frontend/routes/types.ts +43 -0
  564. package/src/web/frontend/store.tsx +96 -0
  565. package/src/web/frontend/styles-v2/views.css +24 -0
  566. package/src/web/frontend/types.ts +170 -0
  567. package/src/web/frontend/workspace/areas.ts +62 -0
  568. package/src/web/frontend/workspace/layout.ts +433 -0
  569. package/src/web/frontend/workspace/open.ts +284 -0
  570. package/src/web/frontend/workspace/panels.ts +447 -0
  571. package/src/web/public/assets/Introduction-aQCeCLrV.js +6 -0
  572. package/src/web/public/assets/app-context-BASCGAA-.js +1 -0
  573. package/src/web/public/assets/bar-B9WWmCpt.js +1 -0
  574. package/src/web/public/assets/board-view-DABoVkaA.js +1 -0
  575. package/src/web/public/assets/cloud-C4b8SU7C.js +3 -0
  576. package/src/web/public/assets/composer-launch-mK9Nr6mZ.js +1 -0
  577. package/src/web/public/assets/composer-panel-ByezS8Xv.js +1 -0
  578. package/src/web/public/assets/dag-jvrjx4i7.js +1 -0
  579. package/src/web/public/assets/deleted-panel-BcbtctNF.js +1 -0
  580. package/src/web/public/assets/dir-B82XBb1J.js +5 -0
  581. package/src/web/public/assets/frontmatter-CLLxCmTv.js +2 -0
  582. package/src/web/public/assets/graph-BTEfvFz6.js +1 -0
  583. package/src/web/public/assets/group-BPUOO_QM.js +2 -0
  584. package/src/web/public/assets/index-D8MvtVAm.js +2 -0
  585. package/src/web/public/assets/index-DP3qBv1o.css +1 -0
  586. package/src/web/public/assets/md-history-BqZvzWiD.js +39 -0
  587. package/src/web/public/assets/md-parse-b6GY5eBl.js +13 -0
  588. package/src/web/public/assets/member-picker-B5I7KuOR.js +1 -0
  589. package/src/web/public/assets/model-Bn2fG6CC.js +2 -0
  590. package/src/web/public/assets/overview-DMihuyzh.js +1 -0
  591. package/src/web/public/assets/progress-D-rMgz3w.js +3 -0
  592. package/src/web/public/assets/prompt-blocks-BovFd039.js +8 -0
  593. package/src/web/public/assets/refs-D21jmrn6.js +1 -0
  594. package/src/web/public/assets/repos-B94tMDGs.js +15 -0
  595. package/src/web/public/assets/route-crumb-CWVu80du.js +1 -0
  596. package/src/web/public/assets/settings-DgTt4JG5.js +1 -0
  597. package/src/web/public/assets/status-tag-DRl9E2Os.js +1 -0
  598. package/src/web/public/assets/task-B2x5GoV3.js +11 -0
  599. package/src/web/public/assets/task-status-DSrx0i66.js +1 -0
  600. package/src/web/public/assets/task-utils-By8gLpHY.js +12 -0
  601. package/src/web/public/assets/templates-Df__0k-F.js +1 -0
  602. package/src/web/public/assets/tool-bar-Cv7f6p4v.js +1 -0
  603. package/src/web/public/assets/upload-BcMhRsMn.js +1 -0
  604. package/src/web/public/assets/workspace-4tw7trV7.js +28 -0
  605. package/src/web/public/index.html +9 -9
  606. package/bin/cli.mjs +0 -27
  607. package/src/core/atomic-file.js +0 -45
  608. package/src/core/attachmentdb/docs.js +0 -116
  609. package/src/core/attachmentdb/ids.js +0 -96
  610. package/src/core/attachmentdb/query.js +0 -189
  611. package/src/core/attachmentdb/relations.js +0 -170
  612. package/src/core/attachmentdb/resources.js +0 -225
  613. package/src/core/attachstore.js +0 -312
  614. package/src/core/command-table.js +0 -22
  615. package/src/core/config.js +0 -193
  616. package/src/core/db/bootstrap.js +0 -424
  617. package/src/core/db/driver.js +0 -359
  618. package/src/core/db/errors.js +0 -144
  619. package/src/core/db/import-json/data.js +0 -140
  620. package/src/core/db/import-json/extras.js +0 -69
  621. package/src/core/db/import-json/links.js +0 -147
  622. package/src/core/db/import-json/refs.js +0 -183
  623. package/src/core/db/import-json/repos.js +0 -180
  624. package/src/core/db/import-json/scan.js +0 -35
  625. package/src/core/db/import-json/tasks.js +0 -317
  626. package/src/core/db/import-json.js +0 -194
  627. package/src/core/db/index.js +0 -122
  628. package/src/core/db/migrations/index.js +0 -110
  629. package/src/core/db/migrations/v2-data.js +0 -149
  630. package/src/core/db/migrations/v4-data.js +0 -193
  631. package/src/core/db/migrator.js +0 -203
  632. package/src/core/db/quiet.js +0 -19
  633. package/src/core/db/seed-templates.js +0 -265
  634. package/src/core/db/settings.js +0 -54
  635. package/src/core/db/time.js +0 -96
  636. package/src/core/db/tx.js +0 -188
  637. package/src/core/db/verify.js +0 -295
  638. package/src/core/db/version.js +0 -65
  639. package/src/core/errors.js +0 -88
  640. package/src/core/fileapi.js +0 -243
  641. package/src/core/frontmatter.js +0 -65
  642. package/src/core/fstree.js +0 -74
  643. package/src/core/instruction-template.js +0 -341
  644. package/src/core/keys.js +0 -33
  645. package/src/core/kvapi.js +0 -203
  646. package/src/core/localatt.js +0 -156
  647. package/src/core/open.js +0 -26
  648. package/src/core/paths.js +0 -92
  649. package/src/core/prompt.js +0 -60
  650. package/src/core/serve-port.js +0 -139
  651. package/src/core/topic-key.js +0 -43
  652. package/src/core/workflow/edges.js +0 -31
  653. package/src/core/workflow/layout.js +0 -119
  654. package/src/core/workflow/lifecycle.js +0 -58
  655. package/src/core/workflow/plugin-registry.js +0 -47
  656. package/src/core/workflow/project.js +0 -112
  657. package/src/core/workflow/readiness.js +0 -226
  658. package/src/core/workflow/types.js +0 -190
  659. package/src/core/zip.js +0 -163
  660. package/src/modules/auth/index.js +0 -99
  661. package/src/modules/bundled/index.js +0 -187
  662. package/src/modules/bundled/service.js +0 -312
  663. package/src/modules/db/index.js +0 -54
  664. package/src/modules/db/service.js +0 -273
  665. package/src/modules/docs/attach.js +0 -226
  666. package/src/modules/docs/brief.js +0 -125
  667. package/src/modules/docs/docref.js +0 -94
  668. package/src/modules/docs/index.js +0 -228
  669. package/src/modules/docs/knowledge.js +0 -520
  670. package/src/modules/docs/links.js +0 -43
  671. package/src/modules/docs/paths.js +0 -103
  672. package/src/modules/docs/refs.js +0 -237
  673. package/src/modules/docs/render.js +0 -84
  674. package/src/modules/docs/repos-bridge.js +0 -11
  675. package/src/modules/docs/seed.js +0 -147
  676. package/src/modules/docs/service.js +0 -204
  677. package/src/modules/docs/store.js +0 -231
  678. package/src/modules/file/index.js +0 -123
  679. package/src/modules/file/service.js +0 -348
  680. package/src/modules/localtask/action-attach.js +0 -113
  681. package/src/modules/localtask/action-lifecycle.js +0 -207
  682. package/src/modules/localtask/action-maintenance.js +0 -130
  683. package/src/modules/localtask/action-move.js +0 -58
  684. package/src/modules/localtask/action-query.js +0 -46
  685. package/src/modules/localtask/action-remove.js +0 -116
  686. package/src/modules/localtask/action-render.js +0 -200
  687. package/src/modules/localtask/action-submit.js +0 -186
  688. package/src/modules/localtask/action-topics.js +0 -46
  689. package/src/modules/localtask/action-waiting.js +0 -95
  690. package/src/modules/localtask/board-target.js +0 -161
  691. package/src/modules/localtask/bus/index.js +0 -41
  692. package/src/modules/localtask/deletion.js +0 -133
  693. package/src/modules/localtask/engine.js +0 -49
  694. package/src/modules/localtask/events.js +0 -216
  695. package/src/modules/localtask/index.js +0 -60
  696. package/src/modules/localtask/move-prims.js +0 -128
  697. package/src/modules/localtask/move.js +0 -165
  698. package/src/modules/localtask/mutator/index.js +0 -153
  699. package/src/modules/localtask/mutator/validate.js +0 -53
  700. package/src/modules/localtask/panel-guard.js +0 -155
  701. package/src/modules/localtask/panel-presence.js +0 -322
  702. package/src/modules/localtask/paths.js +0 -87
  703. package/src/modules/localtask/remote-import.js +0 -137
  704. package/src/modules/localtask/repo/goals.js +0 -153
  705. package/src/modules/localtask/repo/links.js +0 -136
  706. package/src/modules/localtask/repo/open.js +0 -71
  707. package/src/modules/localtask/repo/presence.js +0 -117
  708. package/src/modules/localtask/repo/rows.js +0 -162
  709. package/src/modules/localtask/repo/settings.js +0 -384
  710. package/src/modules/localtask/repo/snapshot.js +0 -154
  711. package/src/modules/localtask/repo/tasks.js +0 -374
  712. package/src/modules/localtask/repo/topics.js +0 -293
  713. package/src/modules/localtask/repo-ctx.js +0 -23
  714. package/src/modules/localtask/scheduler/index.js +0 -55
  715. package/src/modules/localtask/scheduler/state-drive.js +0 -30
  716. package/src/modules/localtask/service.js +0 -62
  717. package/src/modules/localtask/store/file-adapter.js +0 -51
  718. package/src/modules/localtask/store/index.js +0 -99
  719. package/src/modules/localtask/store/memory-adapter.js +0 -26
  720. package/src/modules/localtask/store-io.js +0 -71
  721. package/src/modules/localtask/task-lifecycle.js +0 -448
  722. package/src/modules/localtask/task-ops.js +0 -444
  723. package/src/modules/localtask/task-remove.js +0 -313
  724. package/src/modules/localtask/task-templates.js +0 -84
  725. package/src/modules/localtask/task-view.js +0 -446
  726. package/src/modules/localtask/topics.js +0 -170
  727. package/src/modules/localtask/waiters.js +0 -63
  728. package/src/modules/localtask/waiting.js +0 -73
  729. package/src/modules/localtask/writes.js +0 -130
  730. package/src/modules/repos/boards/core.js +0 -255
  731. package/src/modules/repos/boards/docs.js +0 -53
  732. package/src/modules/repos/boards/members.js +0 -228
  733. package/src/modules/repos/boards/transfer.js +0 -159
  734. package/src/modules/repos/cli/board-actions.js +0 -177
  735. package/src/modules/repos/cli/ref-actions.js +0 -157
  736. package/src/modules/repos/cli/remote-actions.js +0 -141
  737. package/src/modules/repos/cli/render.js +0 -168
  738. package/src/modules/repos/cli/repo-actions.js +0 -199
  739. package/src/modules/repos/cli/transfer-actions.js +0 -105
  740. package/src/modules/repos/git.js +0 -0
  741. package/src/modules/repos/index.js +0 -47
  742. package/src/modules/repos/keys.js +0 -221
  743. package/src/modules/repos/ref-backfill.js +0 -172
  744. package/src/modules/repos/ref.js +0 -535
  745. package/src/modules/repos/remote.js +0 -175
  746. package/src/modules/repos/repo/open.js +0 -84
  747. package/src/modules/repos/repo/refs.js +0 -165
  748. package/src/modules/repos/repo/repos.js +0 -213
  749. package/src/modules/repos/repo/rows.js +0 -178
  750. package/src/modules/repos/service/bind-topics.js +0 -97
  751. package/src/modules/repos/service/context.js +0 -189
  752. package/src/modules/repos/service/crud.js +0 -345
  753. package/src/modules/repos/service/identity.js +0 -188
  754. package/src/modules/repos/service/store.js +0 -274
  755. package/src/modules/repos/transfer/diff.js +0 -126
  756. package/src/modules/repos/transfer/export.js +0 -223
  757. package/src/modules/repos/transfer/import.js +0 -377
  758. package/src/modules/repos/transfer/layout.js +0 -135
  759. package/src/modules/repos/transfer/render.js +0 -72
  760. package/src/modules/setting/index.js +0 -34
  761. package/src/modules/setting/service.js +0 -58
  762. package/src/modules/system/index.js +0 -96
  763. package/src/modules/system/routes.js +0 -71
  764. package/src/modules/tasktool/add.js +0 -107
  765. package/src/modules/tasktool/attach-resource.js +0 -296
  766. package/src/modules/tasktool/attach-template.js +0 -266
  767. package/src/modules/tasktool/attach.js +0 -451
  768. package/src/modules/tasktool/delivery-template.js +0 -213
  769. package/src/modules/tasktool/delivery-text.js +0 -28
  770. package/src/modules/tasktool/doc-inline.js +0 -84
  771. package/src/modules/tasktool/facade/get.js +0 -46
  772. package/src/modules/tasktool/facade/submit.js +0 -49
  773. package/src/modules/tasktool/get.js +0 -38
  774. package/src/modules/tasktool/group-store.js +0 -28
  775. package/src/modules/tasktool/groupctx.js +0 -124
  776. package/src/modules/tasktool/index.js +0 -250
  777. package/src/modules/tasktool/panel-escort.js +0 -121
  778. package/src/modules/tasktool/params.js +0 -34
  779. package/src/modules/tasktool/plugins/base.js +0 -92
  780. package/src/modules/tasktool/plugins/blockgoal.js +0 -23
  781. package/src/modules/tasktool/plugins/container.js +0 -47
  782. package/src/modules/tasktool/plugins/discover.js +0 -45
  783. package/src/modules/tasktool/plugins/goal-template.js +0 -86
  784. package/src/modules/tasktool/plugins/runtime.js +0 -69
  785. package/src/modules/tasktool/plugins/taskgoal-store.js +0 -160
  786. package/src/modules/tasktool/plugins/taskgoal.js +0 -17
  787. package/src/modules/tasktool/plugins/timegoal-core-store.js +0 -151
  788. package/src/modules/tasktool/plugins/timegoal-cwd-store.js +0 -438
  789. package/src/modules/tasktool/plugins/timegoal-store.js +0 -81
  790. package/src/modules/tasktool/plugins/timegoal-task-store.js +0 -323
  791. package/src/modules/tasktool/plugins/timegoal.js +0 -51
  792. package/src/modules/tasktool/plugins/waitgoal-config.js +0 -84
  793. package/src/modules/tasktool/plugins/waitgoal.js +0 -75
  794. package/src/modules/tasktool/preview.js +0 -91
  795. package/src/modules/tasktool/system-blocks.js +0 -78
  796. package/src/modules/tasktool/update.js +0 -70
  797. package/src/modules/tasktool/wait.js +0 -532
  798. package/src/modules/templates/index.js +0 -189
  799. package/src/modules/templates/repo/open.js +0 -65
  800. package/src/modules/templates/repo/templates.js +0 -155
  801. package/src/modules/templates/scope.js +0 -107
  802. package/src/modules/templates/service.js +0 -311
  803. package/src/modules/todo/attachments.js +0 -149
  804. package/src/modules/todo/group.js +0 -194
  805. package/src/modules/todo/index.js +0 -365
  806. package/src/modules/todo/locate.js +0 -82
  807. package/src/modules/todo/service.js +0 -381
  808. package/src/modules/todo/store.js +0 -158
  809. package/src/runtime/api.js +0 -101
  810. package/src/runtime/cli.js +0 -417
  811. package/src/runtime/cors.js +0 -125
  812. package/src/runtime/registry.js +0 -89
  813. package/src/runtime/server.js +0 -103
  814. package/src/runtime/spec.js +0 -192
  815. package/src/shared/attach.js +0 -96
  816. package/src/shared/doc-title.js +0 -71
  817. package/src/shared/feedback-text.js +0 -245
  818. package/src/shared/frontmatter.js +0 -107
  819. package/src/shared/graph.js +0 -40
  820. package/src/shared/prompt-blocks.js +0 -374
  821. package/src/shared/repo-key.js +0 -57
  822. package/src/shared/task-status.js +0 -105
  823. package/src/shared/wikilink.js +0 -64
  824. package/src/web/frontend/App.jsx +0 -530
  825. package/src/web/frontend/api/client.js +0 -39
  826. package/src/web/frontend/app-context.jsx +0 -13
  827. package/src/web/frontend/components/Introduction/docs-modal.jsx +0 -306
  828. package/src/web/frontend/components/Introduction/index.jsx +0 -62
  829. package/src/web/frontend/components/Introduction/rail.jsx +0 -141
  830. package/src/web/frontend/components/Introduction/use-intro.js +0 -225
  831. package/src/web/frontend/components/board/member-picker.jsx +0 -262
  832. package/src/web/frontend/components/button/index.jsx +0 -118
  833. package/src/web/frontend/components/cloud/editor.jsx +0 -229
  834. package/src/web/frontend/components/cloud/group-popup.jsx +0 -173
  835. package/src/web/frontend/components/cloud/markdown.jsx +0 -53
  836. package/src/web/frontend/components/cloud/upload.js +0 -108
  837. package/src/web/frontend/components/doc/doc-head.jsx +0 -226
  838. package/src/web/frontend/components/icons.jsx +0 -176
  839. package/src/web/frontend/components/layout/breadcrumb.jsx +0 -49
  840. package/src/web/frontend/components/layout/crumbs.js +0 -132
  841. package/src/web/frontend/components/layout/route-crumb.jsx +0 -33
  842. package/src/web/frontend/components/layout/route-history.js +0 -27
  843. package/src/web/frontend/components/layout/side-resizer.jsx +0 -102
  844. package/src/web/frontend/components/layout/tabs.jsx +0 -58
  845. package/src/web/frontend/components/md/ack-rail.jsx +0 -273
  846. package/src/web/frontend/components/md/attach-area.jsx +0 -366
  847. package/src/web/frontend/components/md/attach-bar.jsx +0 -25
  848. package/src/web/frontend/components/md/attach-common.js +0 -108
  849. package/src/web/frontend/components/md/attach-modal.jsx +0 -429
  850. package/src/web/frontend/components/md/attach-picker.jsx +0 -304
  851. package/src/web/frontend/components/md/attachments.js +0 -106
  852. package/src/web/frontend/components/md/composer-launch.js +0 -68
  853. package/src/web/frontend/components/md/composer-panel.jsx +0 -354
  854. package/src/web/frontend/components/md/find-bar.jsx +0 -38
  855. package/src/web/frontend/components/md/live-block.jsx +0 -129
  856. package/src/web/frontend/components/md/md-panes-helpers.js +0 -95
  857. package/src/web/frontend/components/md/md-panes-keys.js +0 -193
  858. package/src/web/frontend/components/md/md-panes-root.jsx +0 -158
  859. package/src/web/frontend/components/md/md-panes.jsx +0 -471
  860. package/src/web/frontend/components/md/sel-menu.jsx +0 -88
  861. package/src/web/frontend/components/md/shortcut-sheet.jsx +0 -60
  862. package/src/web/frontend/components/md/slash-menu.jsx +0 -83
  863. package/src/web/frontend/components/md/status-bar.jsx +0 -46
  864. package/src/web/frontend/components/md/task-chain.jsx +0 -72
  865. package/src/web/frontend/components/md/template-editor.jsx +0 -120
  866. package/src/web/frontend/components/md/tool-bar.jsx +0 -262
  867. package/src/web/frontend/components/md/use-live-preview.js +0 -279
  868. package/src/web/frontend/components/md/use-slash-menu.js +0 -80
  869. package/src/web/frontend/components/md/use-source-editor.js +0 -297
  870. package/src/web/frontend/components/migrate/dialog.jsx +0 -90
  871. package/src/web/frontend/components/migrate/undo.jsx +0 -58
  872. package/src/web/frontend/components/migrate/use-move.js +0 -86
  873. package/src/web/frontend/components/pager.jsx +0 -71
  874. package/src/web/frontend/components/popup/dismiss.js +0 -32
  875. package/src/web/frontend/components/popup/index.jsx +0 -270
  876. package/src/web/frontend/components/repos/desc-modal.jsx +0 -250
  877. package/src/web/frontend/components/repos/get-loop-modal.jsx +0 -181
  878. package/src/web/frontend/components/repos/transfer-panel.jsx +0 -450
  879. package/src/web/frontend/components/sidebar/drag.js +0 -70
  880. package/src/web/frontend/components/sidebar/index.jsx +0 -362
  881. package/src/web/frontend/components/sidebar/model.js +0 -193
  882. package/src/web/frontend/components/sidebar/panel.jsx +0 -195
  883. package/src/web/frontend/components/sidebar/queue-nav.js +0 -40
  884. package/src/web/frontend/components/sidebar/rescue-fab.jsx +0 -78
  885. package/src/web/frontend/components/sidebar/row-menu.jsx +0 -103
  886. package/src/web/frontend/components/sidebar/side-state.js +0 -49
  887. package/src/web/frontend/components/sidebar/task-children.jsx +0 -89
  888. package/src/web/frontend/components/status-tag/index.jsx +0 -30
  889. package/src/web/frontend/components/status-tag/model.js +0 -53
  890. package/src/web/frontend/components/task-panel/index.jsx +0 -36
  891. package/src/web/frontend/components/task-panel/layout.jsx +0 -64
  892. package/src/web/frontend/components/task-panel/page-shell.jsx +0 -38
  893. package/src/web/frontend/components/task-panel/task-row.jsx +0 -170
  894. package/src/web/frontend/components/toast/index.jsx +0 -40
  895. package/src/web/frontend/components/tool-acts/bar.jsx +0 -156
  896. package/src/web/frontend/components/tool-acts/dnd.js +0 -59
  897. package/src/web/frontend/components/tool-acts/layout-panel.jsx +0 -289
  898. package/src/web/frontend/components/tool-acts/modules.js +0 -188
  899. package/src/web/frontend/components/tool-acts/use-layout.js +0 -27
  900. package/src/web/frontend/components/ui.jsx +0 -95
  901. package/src/web/frontend/main.jsx +0 -19
  902. package/src/web/frontend/modules/board/ack-nodes.js +0 -137
  903. package/src/web/frontend/modules/board/ack-rail-pos.js +0 -50
  904. package/src/web/frontend/modules/board/board-view.js +0 -255
  905. package/src/web/frontend/modules/board/reopen-text.js +0 -80
  906. package/src/web/frontend/modules/md/attach-mention.js +0 -59
  907. package/src/web/frontend/modules/md/doc-store.js +0 -78
  908. package/src/web/frontend/modules/md/lightbox.js +0 -97
  909. package/src/web/frontend/modules/md/md-blocks.js +0 -248
  910. package/src/web/frontend/modules/md/md-edit-ops.js +0 -367
  911. package/src/web/frontend/modules/md/md-history.js +0 -79
  912. package/src/web/frontend/modules/md/md-parse.js +0 -122
  913. package/src/web/frontend/modules/md/md-render.js +0 -281
  914. package/src/web/frontend/modules/md/progress-chain.js +0 -29
  915. package/src/web/frontend/modules/md/progress-search.js +0 -110
  916. package/src/web/frontend/modules/md/use-templates.js +0 -143
  917. package/src/web/frontend/modules/prompts/placeholders.js +0 -85
  918. package/src/web/frontend/modules/prompts/prompt-editor.jsx +0 -154
  919. package/src/web/frontend/page/cloud/index.jsx +0 -476
  920. package/src/web/frontend/page/dag/edges.js +0 -55
  921. package/src/web/frontend/page/dag/head-bar.jsx +0 -46
  922. package/src/web/frontend/page/dag/index.jsx +0 -497
  923. package/src/web/frontend/page/dag/layout.js +0 -83
  924. package/src/web/frontend/page/dag/model.js +0 -47
  925. package/src/web/frontend/page/dag/node-card.jsx +0 -123
  926. package/src/web/frontend/page/dag/use-interactions.js +0 -135
  927. package/src/web/frontend/page/dir/dag-editor.jsx +0 -171
  928. package/src/web/frontend/page/dir/deleted-panel.jsx +0 -63
  929. package/src/web/frontend/page/dir/index.jsx +0 -540
  930. package/src/web/frontend/page/dir/landing.jsx +0 -365
  931. package/src/web/frontend/page/dir/task-ack.js +0 -38
  932. package/src/web/frontend/page/dir/task-actions.js +0 -387
  933. package/src/web/frontend/page/dir/task-beside-header.jsx +0 -18
  934. package/src/web/frontend/page/dir/task-board-section.jsx +0 -38
  935. package/src/web/frontend/page/dir/task-chain.js +0 -172
  936. package/src/web/frontend/page/dir/task-derived-ctx.js +0 -46
  937. package/src/web/frontend/page/dir/task-dock-panel.jsx +0 -227
  938. package/src/web/frontend/page/dir/task-dock.js +0 -79
  939. package/src/web/frontend/page/dir/task-feedback.js +0 -207
  940. package/src/web/frontend/page/dir/task-goal-section.jsx +0 -55
  941. package/src/web/frontend/page/dir/task-goal.js +0 -41
  942. package/src/web/frontend/page/dir/task-history-view.jsx +0 -44
  943. package/src/web/frontend/page/dir/task-not-found.jsx +0 -23
  944. package/src/web/frontend/page/dir/task-preview-modal.jsx +0 -82
  945. package/src/web/frontend/page/dir/task-sel-menu.js +0 -54
  946. package/src/web/frontend/page/dir/task-status-bar.jsx +0 -61
  947. package/src/web/frontend/page/dir/task-utils.js +0 -7
  948. package/src/web/frontend/page/dir/task.jsx +0 -540
  949. package/src/web/frontend/page/doc/index.jsx +0 -554
  950. package/src/web/frontend/page/group/index.jsx +0 -603
  951. package/src/web/frontend/page/overview/index.jsx +0 -295
  952. package/src/web/frontend/page/progress/index.jsx +0 -480
  953. package/src/web/frontend/page/refs/index.jsx +0 -122
  954. package/src/web/frontend/page/repos/bind-modals.jsx +0 -118
  955. package/src/web/frontend/page/repos/board-admin.jsx +0 -226
  956. package/src/web/frontend/page/repos/board-refs.jsx +0 -97
  957. package/src/web/frontend/page/repos/doc-search-modal.jsx +0 -241
  958. package/src/web/frontend/page/repos/filters-bar.jsx +0 -44
  959. package/src/web/frontend/page/repos/index.jsx +0 -586
  960. package/src/web/frontend/page/repos/pending-section.jsx +0 -163
  961. package/src/web/frontend/page/repos/ref-panel.jsx +0 -406
  962. package/src/web/frontend/page/repos/remote-modal.jsx +0 -112
  963. package/src/web/frontend/page/repos/repo-form-modal.jsx +0 -219
  964. package/src/web/frontend/page/repos/repo-table.jsx +0 -222
  965. package/src/web/frontend/page/settings/index.jsx +0 -224
  966. package/src/web/frontend/page/settings/prompt-template-params.js +0 -286
  967. package/src/web/frontend/page/settings/prompt-templates-section.jsx +0 -427
  968. package/src/web/frontend/page/settings/sidebar-section.jsx +0 -72
  969. package/src/web/frontend/page/settings/task-templates-section.jsx +0 -115
  970. package/src/web/frontend/page/templates/index.jsx +0 -253
  971. package/src/web/frontend/page/templates/scope-chips.jsx +0 -211
  972. package/src/web/frontend/panels.jsx +0 -230
  973. package/src/web/frontend/prefs.js +0 -73
  974. package/src/web/frontend/registry.js +0 -27
  975. package/src/web/frontend/route-map.js +0 -209
  976. package/src/web/frontend/store.jsx +0 -74
  977. package/src/web/frontend/workspace/areas.js +0 -59
  978. package/src/web/frontend/workspace/layout.js +0 -399
  979. package/src/web/frontend/workspace/open.js +0 -246
  980. package/src/web/frontend/workspace/panels.js +0 -417
  981. package/src/web/public/assets/Introduction-BI8Ohz1l.js +0 -6
  982. package/src/web/public/assets/app-context-D7HAx67n.js +0 -1
  983. package/src/web/public/assets/bar-Jfji2mz3.js +0 -1
  984. package/src/web/public/assets/board-view-CZKZsyk-.js +0 -1
  985. package/src/web/public/assets/button-Cmo-6aoW.js +0 -1
  986. package/src/web/public/assets/cloud-cFewR3CF.js +0 -3
  987. package/src/web/public/assets/composer-launch-Bf4rXhLs.js +0 -1
  988. package/src/web/public/assets/composer-panel-CcK0D4Gd.js +0 -1
  989. package/src/web/public/assets/dag-BBtSqd-X.js +0 -1
  990. package/src/web/public/assets/deleted-panel-oN8YlGvq.js +0 -1
  991. package/src/web/public/assets/dir-BuAtw08k.js +0 -5
  992. package/src/web/public/assets/frontmatter-QvrjUNzF.js +0 -2
  993. package/src/web/public/assets/graph-DM-zDRdL.js +0 -1
  994. package/src/web/public/assets/group-FRUv4mQ6.js +0 -2
  995. package/src/web/public/assets/index-CyF6nNWE.js +0 -2
  996. package/src/web/public/assets/index-DGvBoOdp.css +0 -1
  997. package/src/web/public/assets/md-history-DErcpXhC.js +0 -39
  998. package/src/web/public/assets/md-parse-awNLHAzO.js +0 -13
  999. package/src/web/public/assets/member-picker-BAgkj36N.js +0 -1
  1000. package/src/web/public/assets/model-DzdWfp14.js +0 -2
  1001. package/src/web/public/assets/overview-DZHcrz4u.js +0 -1
  1002. package/src/web/public/assets/progress-Bx0reVYl.js +0 -3
  1003. package/src/web/public/assets/refs-BXIwmL5W.js +0 -1
  1004. package/src/web/public/assets/reopen-text-BylkngqC.js +0 -12
  1005. package/src/web/public/assets/repos-DYugJZpl.js +0 -15
  1006. package/src/web/public/assets/route-crumb-C3Ce0rzR.js +0 -1
  1007. package/src/web/public/assets/settings-Bpazt87u.js +0 -8
  1008. package/src/web/public/assets/status-tag-CHCpOgMP.js +0 -1
  1009. package/src/web/public/assets/task-G58spmPC.js +0 -11
  1010. package/src/web/public/assets/task-status-BnymQMTw.js +0 -1
  1011. package/src/web/public/assets/templates-Dr0CunY8.js +0 -1
  1012. package/src/web/public/assets/tool-bar-BSIlsHln.js +0 -1
  1013. package/src/web/public/assets/upload-BIMbGcCB.js +0 -1
  1014. package/src/web/public/assets/workspace-C_5X2gIr.js +0 -28
  1015. /package/src/core/{attachmentdb.js → attachmentdb.ts} +0 -0
  1016. /package/src/core/workflow/{event-names.js → event-names.ts} +0 -0
  1017. /package/src/modules/localtask/{action-flags.js → action-flags.ts} +0 -0
  1018. /package/src/modules/localtask/{dag.js → dag.ts} +0 -0
  1019. /package/src/modules/localtask/repo/{index.js → index.ts} +0 -0
  1020. /package/src/modules/localtask/store/{topic-adapter.js → topic-adapter.ts} +0 -0
  1021. /package/src/modules/repos/{boards.js → boards.ts} +0 -0
  1022. /package/src/modules/repos/repo/{index.js → index.ts} +0 -0
  1023. /package/src/modules/repos/{service.js → service.ts} +0 -0
  1024. /package/src/modules/repos/{transfer.js → transfer.ts} +0 -0
  1025. /package/src/modules/tasktool/facade/{index.js → index.ts} +0 -0
  1026. /package/src/modules/tasktool/facade/{wait.js → wait.ts} +0 -0
  1027. /package/src/modules/tasktool/{getloop.js → getloop.ts} +0 -0
  1028. /package/src/modules/tasktool/plugins/{index.js → index.ts} +0 -0
  1029. /package/src/modules/tasktool/{taskgoal.js → taskgoal.ts} +0 -0
  1030. /package/src/modules/tasktool/{timegoal.js → timegoal.ts} +0 -0
  1031. /package/src/modules/templates/repo/{index.js → index.ts} +0 -0
  1032. /package/src/web/frontend/components/md/{doc-outline-rail.jsx → doc-outline-rail.tsx} +0 -0
  1033. /package/src/web/frontend/{workspace.js → workspace.ts} +0 -0
  1034. /package/src/web/public/assets/{button-DA4lNJeC.css → prompt-blocks-DA4lNJeC.css} +0 -0
@@ -0,0 +1,1734 @@
1
+ // AUTO-GENERATED —— 由 scripts/gen-api-client.mjs(runtime/codegen.ts)生成,勿手改。
2
+ //
3
+ // 类型来自 zod schema(import type,zod 运行时不进浏览器包);运行时校验在服务端
4
+ //(runtime/zod-bridge.ts,CLI 与 HTTP 共用同一份 schema)。传输层是手写的那一半:
5
+ // 调 createApiClient 时传入 api/client.ts 的 api() 即可。
6
+ // 重新生成:pnpm gen:api。新鲜度由 tests/unit/api-client.test.mjs 对账。
7
+
8
+ import type { z } from 'zod';
9
+ import type {
10
+ authLoginInput,
11
+ } from '../../../modules/auth/schemas.js';
12
+ import type {
13
+ bundledGetInput,
14
+ bundledInstallInput,
15
+ } from '../../../modules/bundled/schemas.js';
16
+ import type {
17
+ docAddInput,
18
+ docAttachInput,
19
+ docAttachNoteInput,
20
+ docAttachmentsInput,
21
+ docDetachInput,
22
+ docGetInput,
23
+ docListInput,
24
+ docRemoveInput,
25
+ docUpdateInput,
26
+ docsBindInput,
27
+ docsLinkInput,
28
+ docsNotebindInput,
29
+ docsSeedInput,
30
+ } from '../../../modules/docs/schemas.js';
31
+ import type {
32
+ fileContentInput,
33
+ fileGetInput,
34
+ fileListInput,
35
+ filePruneInput,
36
+ fileRemoveInput,
37
+ fileSyncInput,
38
+ fileUploadInput,
39
+ } from '../../../modules/file/schemas.js';
40
+ import type {
41
+ localtaskAddInput,
42
+ localtaskAttachInput,
43
+ localtaskAttachNoteInput,
44
+ localtaskAttachmentsInput,
45
+ localtaskCancelInput,
46
+ localtaskCancelManyInput,
47
+ localtaskChainInput,
48
+ localtaskClaimInput,
49
+ localtaskCloneInput,
50
+ localtaskCloseManyInput,
51
+ localtaskConfigInput,
52
+ localtaskDetachInput,
53
+ localtaskDoneInput,
54
+ localtaskEventsInput,
55
+ localtaskForkInput,
56
+ localtaskGetInput,
57
+ localtaskImportRemoteInput,
58
+ localtaskPreviewInput,
59
+ localtaskPruneInput,
60
+ localtaskRemoveInput,
61
+ localtaskRemoveManyInput,
62
+ localtaskReopenInput,
63
+ localtaskReorderInput,
64
+ localtaskTaskRestoreInput,
65
+ localtaskTimegoalLogInput,
66
+ localtaskTopicAddInput,
67
+ localtaskTopicRemoveInput,
68
+ localtaskTopicRemoveManyInput,
69
+ localtaskUpdateInput,
70
+ taskMoveInput,
71
+ } from '../../../modules/localtask/schemas.js';
72
+ import type {
73
+ boardAddInput,
74
+ boardAssignInput,
75
+ boardGetInput,
76
+ boardImportInput,
77
+ boardNoteInput,
78
+ boardPrefixInput,
79
+ boardPruneInput,
80
+ boardRekeyInput,
81
+ boardRemoveInput,
82
+ boardUpdateInput,
83
+ repoAddInput,
84
+ repoBindInput,
85
+ repoBindTopicsInput,
86
+ repoCloneInput,
87
+ repoDetectInput,
88
+ repoDocAddInput,
89
+ repoDocListInput,
90
+ repoDocRemoveInput,
91
+ repoExportInput,
92
+ repoGetInput,
93
+ repoImportDiffInput,
94
+ repoImportInput,
95
+ repoKeyMigrateInput,
96
+ repoKeyRefreshInput,
97
+ repoKeySetInput,
98
+ repoKnowledgeInput,
99
+ repoListInput,
100
+ repoOpenInput,
101
+ repoRefAddInput,
102
+ repoRefCloneInput,
103
+ repoRefNoteInput,
104
+ repoRefOfInput,
105
+ repoRefSyncInput,
106
+ repoRemoteCheckInput,
107
+ repoRemoteInput,
108
+ repoRemoteListInput,
109
+ repoRemotePickInput,
110
+ repoRemoveInput,
111
+ repoScanInput,
112
+ repoUpdateInput,
113
+ } from '../../../modules/repos/schemas.js';
114
+ import type {
115
+ settingSetInput,
116
+ } from '../../../modules/setting/schemas.js';
117
+ import type {
118
+ timegoalCheckInput,
119
+ timegoalClearInput,
120
+ timegoalLogInput,
121
+ timegoalSetInput,
122
+ timegoalShowInput,
123
+ timegoalUpdateInput,
124
+ } from '../../../modules/tasktool/schemas.js';
125
+ import type {
126
+ templatesAddInput,
127
+ templatesDefaultInput,
128
+ templatesListInput,
129
+ templatesRemoveInput,
130
+ templatesUpdateInput,
131
+ } from '../../../modules/templates/schemas.js';
132
+ import type {
133
+ groupAddInput,
134
+ groupGetInput,
135
+ groupMembersInput,
136
+ groupRemoveInput,
137
+ groupUpdateInput,
138
+ groupUseInput,
139
+ promptGetInput,
140
+ promptRemoveInput,
141
+ promptSetInput,
142
+ todoAddInput,
143
+ todoArchiveInput,
144
+ todoAttachInput,
145
+ todoAttachmentsInput,
146
+ todoDoneInput,
147
+ todoFreezeInput,
148
+ todoGetInput,
149
+ todoListInput,
150
+ todoRemoveInput,
151
+ todoUnfreezeInput,
152
+ todoUpdateInput,
153
+ topicAddInput,
154
+ topicListInput,
155
+ topicRemoveInput,
156
+ } from '../../../modules/todo/schemas.js';
157
+ import type {
158
+ AuthLoginAction,
159
+ AuthLogoutAction,
160
+ AuthMeAction,
161
+ AuthStatusAction,
162
+ } from '../../../modules/auth/actions/_manifest.generated.js';
163
+ import type {
164
+ BundledGetAction,
165
+ BundledGroupsAction,
166
+ BundledInstallAction,
167
+ BundledListAction,
168
+ } from '../../../modules/bundled/actions/_manifest.generated.js';
169
+ import type {
170
+ DocAddAction,
171
+ DocAttachAction,
172
+ DocAttachNoteAction,
173
+ DocAttachmentsAction,
174
+ DocDetachAction,
175
+ DocGetAction,
176
+ DocListAction,
177
+ DocRemoveAction,
178
+ DocUpdateAction,
179
+ DocsBindAction,
180
+ DocsIndexAction,
181
+ DocsLinkAction,
182
+ DocsNotebindAction,
183
+ DocsSeedAction,
184
+ } from '../../../modules/docs/actions/_manifest.generated.js';
185
+ import type {
186
+ FileContentAction,
187
+ FileGetAction,
188
+ FileListAction,
189
+ FileOrphansAction,
190
+ FilePruneAction,
191
+ FileRemoveAction,
192
+ FileSyncAction,
193
+ FileUploadAction,
194
+ } from '../../../modules/file/actions/_manifest.generated.js';
195
+ import type {
196
+ LocaltaskAddAction,
197
+ LocaltaskAttachAction,
198
+ LocaltaskAttachNoteAction,
199
+ LocaltaskAttachmentsAction,
200
+ LocaltaskCancelAction,
201
+ LocaltaskCancelManyAction,
202
+ LocaltaskChainAction,
203
+ LocaltaskClaimAction,
204
+ LocaltaskCloneAction,
205
+ LocaltaskCloseManyAction,
206
+ LocaltaskConfigAction,
207
+ LocaltaskDetachAction,
208
+ LocaltaskDoneAction,
209
+ LocaltaskEventsAction,
210
+ LocaltaskForkAction,
211
+ LocaltaskGetAction,
212
+ LocaltaskImportRemoteAction,
213
+ LocaltaskListAction,
214
+ LocaltaskPresenceAction,
215
+ LocaltaskPreviewAction,
216
+ LocaltaskPruneAction,
217
+ LocaltaskRemoveAction,
218
+ LocaltaskRemoveManyAction,
219
+ LocaltaskReopenAction,
220
+ LocaltaskReorderAction,
221
+ LocaltaskTaskRestoreAction,
222
+ LocaltaskTimegoalLogAction,
223
+ LocaltaskTopicAddAction,
224
+ LocaltaskTopicRemoveAction,
225
+ LocaltaskTopicRemoveManyAction,
226
+ LocaltaskUpdateAction,
227
+ TaskMoveAction,
228
+ } from '../../../modules/localtask/actions/_manifest.generated.js';
229
+ import type {
230
+ BoardAddAction,
231
+ BoardAssignAction,
232
+ BoardExportAction,
233
+ BoardGetAction,
234
+ BoardImportAction,
235
+ BoardListAction,
236
+ BoardNoteAction,
237
+ BoardPrefixAction,
238
+ BoardPruneAction,
239
+ BoardRekeyAction,
240
+ BoardRemoveAction,
241
+ BoardUpdateAction,
242
+ RepoAddAction,
243
+ RepoBindAction,
244
+ RepoBindTopicsAction,
245
+ RepoCloneAction,
246
+ RepoDetectAction,
247
+ RepoDocAddAction,
248
+ RepoDocListAction,
249
+ RepoDocRemoveAction,
250
+ RepoExportAction,
251
+ RepoGetAction,
252
+ RepoImportAction,
253
+ RepoImportDiffAction,
254
+ RepoKeyMigrateAction,
255
+ RepoKeyRefreshAction,
256
+ RepoKeySetAction,
257
+ RepoKnowledgeAction,
258
+ RepoListAction,
259
+ RepoOpenAction,
260
+ RepoRefAddAction,
261
+ RepoRefCheckAction,
262
+ RepoRefCloneAction,
263
+ RepoRefNoteAction,
264
+ RepoRefOfAction,
265
+ RepoRefSyncAction,
266
+ RepoRemoteAction,
267
+ RepoRemoteCheckAction,
268
+ RepoRemoteListAction,
269
+ RepoRemotePickAction,
270
+ RepoRemoveAction,
271
+ RepoScanAction,
272
+ RepoUpdateAction,
273
+ } from '../../../modules/repos/actions/_manifest.generated.js';
274
+ import type {
275
+ SettingGetAction,
276
+ SettingSetAction,
277
+ } from '../../../modules/setting/actions/_manifest.generated.js';
278
+ import type {
279
+ BootstrapAction,
280
+ HealthAction,
281
+ } from '../../../modules/system/actions/_manifest.generated.js';
282
+ import type {
283
+ TimegoalCheckAction,
284
+ TimegoalClearAction,
285
+ TimegoalListAction,
286
+ TimegoalLogAction,
287
+ TimegoalPruneAction,
288
+ TimegoalSetAction,
289
+ TimegoalShowAction,
290
+ TimegoalUpdateAction,
291
+ } from '../../../modules/tasktool/actions/_manifest.generated.js';
292
+ import type {
293
+ TemplatesAddAction,
294
+ TemplatesDefaultAction,
295
+ TemplatesListAction,
296
+ TemplatesRemoveAction,
297
+ TemplatesUpdateAction,
298
+ } from '../../../modules/templates/actions/_manifest.generated.js';
299
+ import type {
300
+ GroupAddAction,
301
+ GroupCurrentAction,
302
+ GroupGetAction,
303
+ GroupListAction,
304
+ GroupMembersAction,
305
+ GroupRemoveAction,
306
+ GroupUpdateAction,
307
+ GroupUseAction,
308
+ PromptGetAction,
309
+ PromptRemoveAction,
310
+ PromptSetAction,
311
+ TodoAddAction,
312
+ TodoArchiveAction,
313
+ TodoAttachAction,
314
+ TodoAttachmentsAction,
315
+ TodoDoneAction,
316
+ TodoFreezeAction,
317
+ TodoGetAction,
318
+ TodoListAction,
319
+ TodoRemoveAction,
320
+ TodoUnfreezeAction,
321
+ TodoUpdateAction,
322
+ TopicAddAction,
323
+ TopicListAction,
324
+ TopicRemoveAction,
325
+ } from '../../../modules/todo/actions/_manifest.generated.js';
326
+
327
+ /** 传输层契约(手写的那一半):返回 data(错误信封由 api() 拆好,失败即 throw)。 */
328
+ export interface Transport {
329
+ request(method: string, path: string, body?: unknown): Promise<unknown>;
330
+ }
331
+
332
+ export interface ApiClient {
333
+ /** 聚合上下文:版本 / 登录态 / 工作空间 / 命令表 */
334
+ bootstrap(): Promise<Awaited<ReturnType<InstanceType<typeof BootstrapAction>['bootstrap']>>>;
335
+ /** 健康检查(本机配置 + 后端可达性) */
336
+ health(): Promise<Awaited<ReturnType<InstanceType<typeof HealthAction>['health']>>>;
337
+ /** 读本机设置(附件自动下载、附件目录、参考仓库存储根) */
338
+ get(): Promise<Awaited<ReturnType<InstanceType<typeof SettingGetAction>['get']>>>;
339
+ /** 改本机设置(只改传入项) */
340
+ set(input?: z.input<typeof settingSetInput>): Promise<Awaited<ReturnType<InstanceType<typeof SettingSetAction>['set']>>>;
341
+ /** 登录并保存 token 到本机配置 */
342
+ login(input: z.input<typeof authLoginInput>): Promise<Awaited<ReturnType<InstanceType<typeof AuthLoginAction>['login']>>>;
343
+ /** 清除本机保存的 token */
344
+ logout(): Promise<Awaited<ReturnType<InstanceType<typeof AuthLogoutAction>['logout']>>>;
345
+ /** 向后端确认身份(验证 token 是否仍有效) */
346
+ me(): Promise<Awaited<ReturnType<InstanceType<typeof AuthMeAction>['me']>>>;
347
+ /** 查看本机登录态(不请求后端,离线可用) */
348
+ status(): Promise<Awaited<ReturnType<InstanceType<typeof AuthStatusAction>['status']>>>;
349
+ /** 新建看板(主题容器) */
350
+ add(input: z.input<typeof boardAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardAddAction>['add']>>>;
351
+ /** 把仓库聚合进看板(可同时在多个看板;--remove 移出;--before 插位;仓库给 id / key / 路径) */
352
+ assign(input: z.input<typeof boardAssignInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardAssignAction>['assign']>>>;
353
+ /** 导出看板 JSON(可回灌给 board import) */
354
+ export(): Promise<Awaited<ReturnType<InstanceType<typeof BoardExportAction>['export']>>>;
355
+ /** 查看单个看板(含成员仓库与描述) */
356
+ boardGet(input: z.input<typeof boardGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardGetAction>['get']>>>;
357
+ /** 导入看板 JSON(一个看板 = 一个主题;按 path/name 匹配已登记仓库) */
358
+ import(input?: z.input<typeof boardImportInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardImportAction>['import']>>>;
359
+ /** 看板清单:每个主题里有哪些仓库、各自的一句话描述 */
360
+ list(): Promise<Awaited<ReturnType<InstanceType<typeof BoardListAction>['list']>>>;
361
+ /** 写/清组内描述:仓库在看板里的角色与配合关系(--note 留空 = 清除;仓库给 id / key / 绝对路径) */
362
+ note(input: z.input<typeof boardNoteInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardNoteAction>['note']>>>;
363
+ /** 按前缀归组:把名字以 <prefix> 开头的仓库一次性挂进看板(--board 给目标看板;不给就按前缀名自动建同名看板) */
364
+ prefix(input: z.input<typeof boardPrefixInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardPrefixAction>['prefix']>>>;
365
+ /** 清理占位成员:组里引用、本机没登记且没有远程地址的仓库(默认预览,--apply 落盘;带 remote 的加 --all 才清) */
366
+ prune(input?: z.input<typeof boardPruneInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardPruneAction>['prune']>>>;
367
+ /** 把组里的占位 key 重绑到本机仓库(关系改、登记不动;组内描述与文档绑定跟着搬) */
368
+ rekey(input: z.input<typeof boardRekeyInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardRekeyAction>['rekey']>>>;
369
+ /** 删看板(里面的仓库回到未分组,登记不动) */
370
+ remove(input: z.input<typeof boardRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardRemoveAction>['remove']>>>;
371
+ /** 改看板名称 / 描述 */
372
+ update(input: z.input<typeof boardUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof BoardUpdateAction>['update']>>>;
373
+ /** 登记一个仓库 */
374
+ repoAdd(input: z.input<typeof repoAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoAddAction>['add']>>>;
375
+ /** 把「未绑定」队列按路径前缀绑到真实仓库(先建 refs 再绑;默认预览,--apply 落盘) */
376
+ bindTopics(input?: z.input<typeof repoBindTopicsInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoBindTopicsAction>['bindTopics']>>>;
377
+ /** 绑定参考仓库到组或单个开发仓库(两类并存;--board 组级、--repo 仓库级;--remove 摘除) */
378
+ bind(input: z.input<typeof repoBindInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoBindAction>['bind']>>>;
379
+ /** 按 remote 克隆并登记(--key 指定占位 key → 组里位置自动补齐) */
380
+ clone(input: z.input<typeof repoCloneInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoCloneAction>['clone']>>>;
381
+ /** 探测目录的 git remote(添加仓库前自动填充远程地址;只读) */
382
+ detect(input: z.input<typeof repoDetectInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoDetectAction>['detect']>>>;
383
+ /** 给项目加一篇介绍文档:--rel 自有树路径 / --path 外部绝对路径 / --ref <参考仓库key> --file <仓库内相对路径>(同 rel/path 重复添加 = 更新) */
384
+ docAdd(input: z.input<typeof repoDocAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoDocAddAction>['add']>>>;
385
+ /** 列出项目的介绍文档集(主篇 + 其余各篇,含来源形态:自有树 / 外部 / ref 仓库) */
386
+ docList(input: z.input<typeof repoDocListInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoDocListAction>['list']>>>;
387
+ /** 从项目的介绍文档集里摘掉一篇(--index 从 1 起,1 = 主篇) */
388
+ docRemove(input: z.input<typeof repoDocRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoDocRemoveAction>['remove']>>>;
389
+ /** 导出仓库布局 JSON(全局 key + 分组 + 参考关系;不含本地路径);--zip 打包成 zip */
390
+ repoExport(input?: z.input<typeof repoExportInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoExportAction>['export']>>>;
391
+ /** 查看单个仓库的登记信息 */
392
+ repoGet(input: z.input<typeof repoGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoGetAction>['get']>>>;
393
+ /** 导入前的差异检查:逐条给出 新增/有差异/一致/本地未拥有(零副作用) */
394
+ diff(input?: z.input<typeof repoImportDiffInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoImportDiffAction>['diff']>>>;
395
+ /** 导入仓库布局(--strategy ours|overwrite|duplicate;--select 按 key 挑;--clone 选克隆范围) */
396
+ repoImport(input?: z.input<typeof repoImportInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoImportAction>['import']>>>;
397
+ /** 把内部关系(看板成员/绑定)从随机 id 改写成 key(幂等;--apply 落盘) */
398
+ migrate(input?: z.input<typeof repoKeyMigrateInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoKeyMigrateAction>['migrate']>>>;
399
+ /** 刷新仓库 key:扫描 git remote(SSH 优先),提示可更新的 key/远程地址;--apply 落盘 */
400
+ refresh(input?: z.input<typeof repoKeyRefreshInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoKeyRefreshAction>['refresh']>>>;
401
+ /** 设置自定义 key(全局唯一,不跟随远程地址自动变);--follow 恢复为跟随 remote */
402
+ keySet(input: z.input<typeof repoKeySetInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoKeySetAction>['set']>>>;
403
+ /** 取仓库完整知识:项目介绍 + 所属组(介绍/组内描述/绑定文档)+ 参考仓库(--md 拼成单篇 markdown;缺省当前目录) */
404
+ knowledge(input?: z.input<typeof repoKnowledgeInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoKnowledgeAction>['knowledge']>>>;
405
+ /** 仓库清单(本地任务的主题会按路径匹配到这里,取它的上下文) */
406
+ repoList(input?: z.input<typeof repoListInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoListAction>['list']>>>;
407
+ /** 在系统文件管理器中打开 */
408
+ open(input: z.input<typeof repoOpenInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoOpenAction>['open']>>>;
409
+ /** 把一个已存在的 checkout 登记为参考仓库(不 clone;remote 缺省读 origin) */
410
+ refAdd(input: z.input<typeof repoRefAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefAddAction>['add']>>>;
411
+ /** 检查参考仓库完整性:目录/.git/origin 一致性 + 组级/仓库级绑定死链(零副作用) */
412
+ check(): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefCheckAction>['check']>>>;
413
+ /** 克隆远程仓库为参考仓库(落到 gitRepoRoot,登记 + 可选绑定当前目录的开发仓库) */
414
+ refClone(input: z.input<typeof repoRefCloneInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefCloneAction>['clone']>>>;
415
+ /** 写/清绑定描述:这个参考在该组/该仓库里参考什么(--note 留空 = 清除) */
416
+ refNote(input: z.input<typeof repoRefNoteInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefNoteAction>['note']>>>;
417
+ /** 查某仓库(缺省当前目录)的参考仓库:直接绑定到本仓库的 + 所属组绑定的,两类并列 */
418
+ of(input?: z.input<typeof repoRefOfInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefOfAction>['of']>>>;
419
+ /** 同步参考仓库(git pull --ff-only;--all 同步全部) */
420
+ sync(input?: z.input<typeof repoRefSyncInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRefSyncAction>['sync']>>>;
421
+ /** 检查 remote 是否存在(git ls-remote:存在 / 不存在 / 不可达,三种结论分清) */
422
+ remoteCheck(input?: z.input<typeof repoRemoteCheckInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemoteCheckAction>['check']>>>;
423
+ /** 列出仓库的全部 remote 候选(git remote -v),标出当前采纳的那条 */
424
+ remoteList(input?: z.input<typeof repoRemoteListInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemoteListAction>['list']>>>;
425
+ /** 人工指定采纳哪条 remote(key 随之重算;自定义 key 不动) */
426
+ pick(input: z.input<typeof repoRemotePickInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemotePickAction>['pick']>>>;
427
+ /** 登记/更新仓库的远程 git 地址(无 --url = 从目录 origin 读取存档并重算 key) */
428
+ remote(input: z.input<typeof repoRemoteInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemoteAction>['remote']>>>;
429
+ /** 移除登记(不动磁盘文件) */
430
+ repoRemove(input: z.input<typeof repoRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoRemoveAction>['remove']>>>;
431
+ /** 扫描目录发现 git 仓库;--dry-run 只列出(发现模式,不登记) */
432
+ scan(input?: z.input<typeof repoScanInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoScanAction>['scan']>>>;
433
+ /** 修改仓库路径 / 名称 / 备注 / 类型 / 远程地址 / key;--get-loop* 配置项目级「持续 get」(waitgoal:该项目 get 无任务时阻塞等人回填 + 交付文本带继续 get 模板)。描述已改为文档,不再经这里改 */
434
+ repoUpdate(input: z.input<typeof repoUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof RepoUpdateAction>['update']>>>;
435
+ /** 新建自有文档(--body 给 Markdown 正文;--body-file <文件> / - 读管道;已存在则报冲突) */
436
+ docAdd2(input: z.input<typeof docAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocAddAction>['add']>>>;
437
+ /** 改一条附件绑定的说明(desc):--attachment <资源 id> --note <说明>(只动说明,角色/位置不变) */
438
+ attachNote(input: z.input<typeof docAttachNoteInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocAttachNoteAction>['attachNote']>>>;
439
+ /** 给文档挂资源:--path / --fileId / --url / --task / --doc 之一;默认追加进正文,--no-embed 只挂附件区(不写正文) */
440
+ attach(input: z.input<typeof docAttachInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocAttachAction>['attach']>>>;
441
+ /** 这篇文档用了哪些资源(ref_attach:图片/文件/URL/内部 task、ref 引用) */
442
+ attachments(input: z.input<typeof docAttachmentsInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocAttachmentsAction>['attachments']>>>;
443
+ /** 解除文档与附件的关系(默认只解除关系);--purge 无人引用时连资源行与本机字节一起删 */
444
+ detach(input: z.input<typeof docDetachInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocDetachAction>['detach']>>>;
445
+ /** 读文档全文:rel:<路径>(或裸相对路径)= 自有;path:<绝对路径> = 外部(须在绑定闭包内);约定路径缺失时惰性播种 */
446
+ docGet(input: z.input<typeof docGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocGetAction>['get']>>>;
447
+ /** 文档树索引(自有 + 可选外部;零副作用,双链解析的数据源) */
448
+ docList2(input?: z.input<typeof docListInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocListAction>['list']>>>;
449
+ /** 删除自有文档(外部绑定不可删) */
450
+ docRemove2(input: z.input<typeof docRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocRemoveAction>['remove']>>>;
451
+ /** 写文档正文(面板保存走这里;自有走 own 树、外部走绑定闭包内原文件;写盘后摘要回写 desc / 组内 note) */
452
+ docUpdate(input: z.input<typeof docUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocUpdateAction>['update']>>>;
453
+ /** 绑定项目/组介绍的文档覆盖(--repo 或 --board 二选一 + --rel <自有路径> | --path <外部文件/目录>;--reset 拆回约定路径) */
454
+ docsBind(input?: z.input<typeof docsBindInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocsBindAction>['bind']>>>;
455
+ /** 双链索引(docId + 文件名;前端点击 [[..]] 前拉一次;解析规则见 core/wikilink.js) */
456
+ index(): Promise<Awaited<ReturnType<InstanceType<typeof DocsIndexAction>['index']>>>;
457
+ /** 维护组的附加文档列表(--doc <自有路径|绝对路径> + --note/--tag;--remove <序号> 移除;--before <序号> 插位;同 doc 重复添加 = 更新) */
458
+ link(input: z.input<typeof docsLinkInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocsLinkAction>['link']>>>;
459
+ /** 绑定组内仓库描述的文档覆盖(--board <看板> --repo <仓库> + --rel/--path/--reset;仓库须为该组成员) */
460
+ notebind(input: z.input<typeof docsNotebindInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocsNotebindAction>['notebind']>>>;
461
+ /** 把仓库 desc / 看板 desc / 组内 note 字符串播种成约定路径的 md(缺省预览,--apply 执行;幂等) */
462
+ seed(input?: z.input<typeof docsSeedInput>): Promise<Awaited<ReturnType<InstanceType<typeof DocsSeedAction>['seed']>>>;
463
+ /** 向某主题(工作目录)的队列回填一条任务(有 wait 在等则即时投递,否则排队);--global 推到全局共享池;--duration 给任务带时间目标(领取即计时,完成前必须 check);--board/--project 让任务带工作组语义(正文 frontmatter:board + project + 双方介绍引用),并落进该项目的队列;正文自带 frontmatter 时同样认归属——补介绍引用,落点跟到项目队列(显式给过 --cwd 时不挪窝) */
464
+ localtaskAdd(input: z.input<typeof localtaskAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskAddAction>['add']>>>;
465
+ /** 改一条附件绑定的说明(desc):--attachment <资源 id> --note <说明>(只动说明,角色/位置不变) */
466
+ localtaskAttachNote(input: z.input<typeof localtaskAttachNoteInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskAttachNoteAction>['attachNote']>>>;
467
+ /** 给任务挂附件:--path 存本机附件仓 / --fileId 引用已有附件 / --url / --task(同主题任务)/ --ref(文档);默认嵌进正文,--no-embed 只挂到附件区(不写正文),--ref 加 --inline 文档进原文(交付带全文) */
468
+ localtaskAttach(input: z.input<typeof localtaskAttachInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskAttachAction>['attach']>>>;
469
+ /** 列出某条任务引用的附件(正文里的 ![名](fileId) 嵌入),以及本地是否已有(给 agent 直接读本地文件) */
470
+ localtaskAttachments(input: z.input<typeof localtaskAttachmentsInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskAttachmentsAction>['attachments']>>>;
471
+ /** 关闭某主题的等待:阻塞中的 wait 立即收尾(与超时同一出口,带 cancelled 标记;不删主题与任务) */
472
+ cancel(input?: z.input<typeof localtaskCancelInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskCancelAction>['cancel']>>>;
473
+ /** 批量取消待领取任务(按 --ids,定位到 --cwd 主题或 --key):只处理 pending,已领取/已交付/已取消跳过;取消为终态,原文留档 */
474
+ cancelMany(input: z.input<typeof localtaskCancelManyInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskCancelManyAction>['cancelMany']>>>;
475
+ /** 查一条任务的链:history 节点(origin/reopen/comment/current)+ 旧 forkOf 祖先/子任务;面板点节点可旁路查看正文 */
476
+ chain(input: z.input<typeof localtaskChainInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskChainAction>['chain']>>>;
477
+ /** 领取任务:有任务立即领(含任务级 timegoal 的 check 指令);没任务默认立即返回 timeout,项目开启「持续 get」后自动唤起阻塞窗口等人回填 */
478
+ claim(input?: z.input<typeof localtaskClaimInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskClaimAction>['claim']>>>;
479
+ /** 克隆任务:复制正文内容为一条新任务(同主题;全局任务仍进全局池)。不带派生链、不继承时间目标与依赖——开新活用 */
480
+ localtaskClone(input: z.input<typeof localtaskCloneInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskCloneAction>['clone']>>>;
481
+ /** 批量收口待领取任务(按 --ids,定位到 --cwd 主题或 --key):不要求先领取;--status done 写完成总结,cancelled 只改状态;已领取/已交付跳过 */
482
+ closeMany(input: z.input<typeof localtaskCloseManyInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskCloseManyAction>['closeMany']>>>;
483
+ /** 配置等待超时(秒)/ ack 汇报要求(ack 区块,done 指令与收尾要求唯一出口)/ 每区块模板列表 */
484
+ config(input?: z.input<typeof localtaskConfigInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskConfigAction>['config']>>>;
485
+ /** 解除任务与附件的关系(默认只解除关系,资源进孤儿池);--purge 在无人引用时连资源行与本机字节一起删 */
486
+ localtaskDetach(input: z.input<typeof localtaskDetachInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskDetachAction>['detach']>>>;
487
+ /** 标记任务完成:--summary 完成总结必填;带时间目标的任务未到点会被拒绝(blocked),到点自动记录最终 check */
488
+ done(input: z.input<typeof localtaskDoneInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskDoneAction>['done']>>>;
489
+ /** 等待事件流:waiting 开始 / reminder 30s·10s / resolved delivered|timeout(SSE 长连接) */
490
+ events(input?: z.input<typeof localtaskEventsInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskEventsAction>['events']>>>;
491
+ /** Fork 任务:复制正文内容为新任务,并把它挂到源任务的任务链下(保留评论/反馈链);不继承时间目标与依赖 */
492
+ fork(input: z.input<typeof localtaskForkInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskForkAction>['fork']>>>;
493
+ /** 查看单条任务(按 --id,定位到 --cwd 主题或 --key);正文引用附件时带附件清单与本地路径(自动下载跟随本机设置) */
494
+ localtaskGet(input: z.input<typeof localtaskGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskGetAction>['get']>>>;
495
+ /** 从远程清单(KV 后端)导入任务到本地队列:按内容定位远程那条 → 落进本地队列 → 远程那条标记为已完成(note 写明被哪个队列领走) */
496
+ importRemote(input?: z.input<typeof localtaskImportRemoteInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskImportRemoteAction>['importRemote']>>>;
497
+ /** 总览全部主题(工作目录、现状、是否等待中、待领取数) */
498
+ localtaskList(): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskListAction>['list']>>>;
499
+ /** 探测主面板上当前打开的「实时任务」标签数(活动 SSE 连接数;用于 wait 不重复开页) */
500
+ presence(): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskPresenceAction>['presence']>>>;
501
+ /** 预览一条任务在 get/wait 时的交付提示词(只读:不领取、不写盘、不启动计时、不为附件发网);草稿用 --text 直接预览 */
502
+ preview(input?: z.input<typeof localtaskPreviewInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskPreviewAction>['preview']>>>;
503
+ /** 清理旧脏数据(旧模型无目录主题、空主题;等待中一律保留) */
504
+ localtaskPrune(input?: z.input<typeof localtaskPruneInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskPruneAction>['prune']>>>;
505
+ /** 删除一条任务(按 --id,定位到 --cwd 主题或 --key);删除是**可恢复**的(软删除),加 --purge 彻底清除 */
506
+ localtaskRemove(input: z.input<typeof localtaskRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskRemoveAction>['remove']>>>;
507
+ /** 批量删除任务(按 --ids,定位到 --cwd 主题或 --key):一次落盘,逐条软删除(可 restore 恢复);缺失的编号不阻断其余删除 */
508
+ removeMany(input: z.input<typeof localtaskRemoveManyInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskRemoveManyAction>['removeMany']>>>;
509
+ /** 重开任务(验收反馈 / 重做 / 评论):回写原任务正文,旧态压进 history;已完成则回到 pending 待再领 */
510
+ reopen(input: z.input<typeof localtaskReopenInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskReopenAction>['reopen']>>>;
511
+ /** 调整待领取任务优先级(--id <编号> 移到 --before-id <编号> 前或 --after-id <编号> 后) */
512
+ reorder(input: z.input<typeof localtaskReorderInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskReorderAction>['reorder']>>>;
513
+ /** 恢复一条被删除(软删除)的任务(撤销删除) */
514
+ restore(input: z.input<typeof localtaskTaskRestoreInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTaskRestoreAction>['restore']>>>;
515
+ /** 查看任务级时间目标的每轮 check 记录(时间、已用/剩余、是否到点、当轮总结) */
516
+ timegoalLog(input: z.input<typeof localtaskTimegoalLogInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTimegoalLogAction>['timegoalLog']>>>;
517
+ /** 登记一个工作目录:空目录也常驻(prune 不清);--summary 顺带写「现状摘要」(面板顶栏摘要的编辑入口) */
518
+ topicAdd(input: z.input<typeof localtaskTopicAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTopicAddAction>['add']>>>;
519
+ /** 删除整个主题(含全部任务;按 --cwd 或 --key,等待中需 --force) */
520
+ topicRemove(input?: z.input<typeof localtaskTopicRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTopicRemoveAction>['remove']>>>;
521
+ /** 批量删除主题(--keys/--cwds 逗号分隔,或 --all;等待中默认跳过,--force 连等待中删) */
522
+ topicRemoveMany(input?: z.input<typeof localtaskTopicRemoveManyInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskTopicRemoveManyAction>['removeMany']>>>;
523
+ /** 编辑任务内容(按 --id,定位到 --cwd 主题或 --key);可同时改时间目标声明(--duration/--goal-prompt/--clear-goal,仅未领取时可改——领取即计时,起表后声明是既成事实) */
524
+ localtaskUpdate(input: z.input<typeof localtaskUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof LocaltaskUpdateAction>['update']>>>;
525
+ /** 在本机队列与云端清单之间迁移任务(先写目标端、成功才改源端;--undo 按返回的 target-id 精确撤销) */
526
+ move(input?: z.input<typeof taskMoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof TaskMoveAction>['move']>>>;
527
+ /** 时间运算 + 原文回显 prompt + 写入一次状态日志;每次必须提供当前现状 --summary */
528
+ timegoalCheck(input: z.input<typeof timegoalCheckInput>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalCheckAction>['check']>>>;
529
+ /** 清空本目录 timegoal(无则 no_goal,不抛错) */
530
+ clear(input: z.input<typeof timegoalClearInput>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalClearAction>['clear']>>>;
531
+ /** 列出所有有 timegoal 的目录(按截止升序;已到点的单列在归档区) */
532
+ timegoalList(): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalListAction>['list']>>>;
533
+ /** 查看本目录 timegoal 的检查日志(每轮 check 的现状) */
534
+ log(input: z.input<typeof timegoalLogInput>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalLogAction>['log']>>>;
535
+ /** 彻底清除已到点 / 已归档的时间目标(到点本身已自动归档,这里是连归档区一起清) */
536
+ timegoalPrune(): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalPruneAction>['prune']>>>;
537
+ /** 为本目录设置/替换 timegoal:duration + 完整全局提示词(原文固化到 store) */
538
+ timegoalSet(input: z.input<typeof timegoalSetInput>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalSetAction>['set']>>>;
539
+ /** 查看当前 timegoal(不算时间):--cwd 目录级,--task 任务级(key 在领取交付里自带) */
540
+ show(input?: z.input<typeof timegoalShowInput>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalShowAction>['show']>>>;
541
+ /** 更新本目录 timegoal 的提示词(可选同时改时长,--duration;保留起点,不重置计时) */
542
+ timegoalUpdate(input: z.input<typeof timegoalUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof TimegoalUpdateAction>['update']>>>;
543
+ /** 新增任务模板(--body 给 Markdown 正文;多行正文用 --body-file <文件> 或 --body - 读管道;--setDefault 同时设为默认;--scope 设可见域、--topic 记创建主题并默认仅该主题可见) */
544
+ templatesAdd(input: z.input<typeof templatesAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesAddAction>['add']>>>;
545
+ /** 设置默认模板(新建页的起始正文换成它);带 --body/--name/--scope 则改默认模板本身 */
546
+ default(input: z.input<typeof templatesDefaultInput>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesDefaultAction>['default']>>>;
547
+ /** 列出任务模板(含默认模板 id;新建页的起始正文按默认模板取) */
548
+ templatesList(input?: z.input<typeof templatesListInput>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesListAction>['list']>>>;
549
+ /** 删除任务模板(内置默认模板不可删;删的是默认模板则默认回落到内置) */
550
+ templatesRemove(input: z.input<typeof templatesRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesRemoveAction>['remove']>>>;
551
+ /** 编辑任务模板(--name 改名 / --body 改正文 / --scope 改可见域,只改传入项;多行正文用 --body-file;内置模板的正文也可改) */
552
+ templatesUpdate(input: z.input<typeof templatesUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof TemplatesUpdateAction>['update']>>>;
553
+ /** 新建工作空间 */
554
+ groupAdd(input: z.input<typeof groupAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof GroupAddAction>['add']>>>;
555
+ /** 查看当前工作空间 */
556
+ current(): Promise<Awaited<ReturnType<InstanceType<typeof GroupCurrentAction>['current']>>>;
557
+ /** 查看单个工作空间 */
558
+ groupGet(input: z.input<typeof groupGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof GroupGetAction>['get']>>>;
559
+ /** 列出我的工作空间(* 为当前) */
560
+ groupList(): Promise<Awaited<ReturnType<InstanceType<typeof GroupListAction>['list']>>>;
561
+ /** 查看工作空间成员 */
562
+ members(input: z.input<typeof groupMembersInput>): Promise<Awaited<ReturnType<InstanceType<typeof GroupMembersAction>['members']>>>;
563
+ /** 解散工作空间(后端要求组内已无 KV) */
564
+ groupRemove(input: z.input<typeof groupRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof GroupRemoveAction>['remove']>>>;
565
+ /** 改名 / 改描述(只改传入的字段) */
566
+ groupUpdate(input: z.input<typeof groupUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof GroupUpdateAction>['update']>>>;
567
+ /** 切换当前工作空间(id 或名称;0 / default 回默认组) */
568
+ use(input: z.input<typeof groupUseInput>): Promise<Awaited<ReturnType<InstanceType<typeof GroupUseAction>['use']>>>;
569
+ /** 读取某主题的上下文提示词 */
570
+ promptGet(input: z.input<typeof promptGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof PromptGetAction>['get']>>>;
571
+ /** 删除某主题的提示词 */
572
+ promptRemove(input: z.input<typeof promptRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof PromptRemoveAction>['remove']>>>;
573
+ /** 写入某主题的上下文提示词(覆盖) */
574
+ promptSet(input: z.input<typeof promptSetInput>): Promise<Awaited<ReturnType<InstanceType<typeof PromptSetAction>['set']>>>;
575
+ /** 新增任务到待办(topic 不在快捷列表时自动补上) */
576
+ todoAdd(input: z.input<typeof todoAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoAddAction>['add']>>>;
577
+ /** 把已完成里较旧的条目归档到冷 key(默认 30 天前) */
578
+ archive(input?: z.input<typeof todoArchiveInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoArchiveAction>['archive']>>>;
579
+ /** 给任务追加附件:--path 上传本机文件,或 --fileId 追加已上传附件,以 markdown 嵌入正文末尾 */
580
+ todoAttach(input: z.input<typeof todoAttachInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoAttachAction>['attach']>>>;
581
+ /** 列出某条任务引用的附件,以及本地是否已有(给 agent 直接读本地文件) */
582
+ todoAttachments(input: z.input<typeof todoAttachmentsInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoAttachmentsAction>['attachments']>>>;
583
+ /** 标记完成(--ref 定位;--result 写进 note 作为完成结果) */
584
+ todoDone(input: z.input<typeof todoDoneInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoDoneAction>['done']>>>;
585
+ /** 冻结任务(按内容定位;id 保留,解冻时校验冲突) */
586
+ freeze(input: z.input<typeof todoFreezeInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoFreezeAction>['freeze']>>>;
587
+ /** 查看单个任务(按内容定位;自动在待办/已完成/冻结里找) */
588
+ todoGet(input: z.input<typeof todoGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoGetAction>['get']>>>;
589
+ /** 列出任务(--topic / --status 过滤;默认三个桶全列) */
590
+ todoList(input?: z.input<typeof todoListInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoListAction>['list']>>>;
591
+ /** 删除任务(按内容定位,只删命中的那一条) */
592
+ todoRemove(input: z.input<typeof todoRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoRemoveAction>['remove']>>>;
593
+ /** 解冻回待办(按内容定位;id 撞车时自动换新 id) */
594
+ unfreeze(input: z.input<typeof todoUnfreezeInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoUnfreezeAction>['unfreeze']>>>;
595
+ /** 编辑任务(按内容定位,只改传入的字段) */
596
+ todoUpdate(input: z.input<typeof todoUpdateInput>): Promise<Awaited<ReturnType<InstanceType<typeof TodoUpdateAction>['update']>>>;
597
+ /** 加入快捷主题 */
598
+ topicAdd2(input: z.input<typeof topicAddInput>): Promise<Awaited<ReturnType<InstanceType<typeof TopicAddAction>['add']>>>;
599
+ /** 快捷主题列表(含各状态任务数) */
600
+ topicList(input?: z.input<typeof topicListInput>): Promise<Awaited<ReturnType<InstanceType<typeof TopicListAction>['list']>>>;
601
+ /** 移出快捷主题(不动已有任务;仍被任务使用时会在结果里提示) */
602
+ topicRemove2(input: z.input<typeof topicRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof TopicRemoveAction>['remove']>>>;
603
+ /** 取附件本体:面板内联预览;CLI 打印出图地址与本地路径 */
604
+ content(input: z.input<typeof fileContentInput>): Promise<Awaited<ReturnType<InstanceType<typeof FileContentAction>['content']>>>;
605
+ /** 查单个附件的元数据与本地路径 */
606
+ fileGet(input: z.input<typeof fileGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof FileGetAction>['get']>>>;
607
+ /** 列出当前用户空间的附件(含本地已同步路径) */
608
+ fileList(input?: z.input<typeof fileListInput>): Promise<Awaited<ReturnType<InstanceType<typeof FileListAction>['list']>>>;
609
+ /** 列出无主资源(没有任何任务/文档关系边;删任务、删文档、删正文行之后用) */
610
+ orphans(): Promise<Awaited<ReturnType<InstanceType<typeof FileOrphansAction>['orphans']>>>;
611
+ /** 回收无主资源(DB 行 + 附件根目录内的本机/镜像字节;仍被引用的不删) */
612
+ filePrune(input?: z.input<typeof filePruneInput>): Promise<Awaited<ReturnType<InstanceType<typeof FilePruneAction>['prune']>>>;
613
+ /** 删除附件(后端软删;本地副本要清用 file sync --prune) */
614
+ fileRemove(input: z.input<typeof fileRemoveInput>): Promise<Awaited<ReturnType<InstanceType<typeof FileRemoveAction>['remove']>>>;
615
+ /** 把附件同步到本机(默认全部;--ids 只同步指定附件)——为了不再依赖网络读附件 */
616
+ fileSync(input?: z.input<typeof fileSyncInput>): Promise<Awaited<ReturnType<InstanceType<typeof FileSyncAction>['sync']>>>;
617
+ /** 上传附件(--local 存本机附件仓,本地任务贴图用;默认传当前用户空间的云端图床) */
618
+ upload(input?: z.input<typeof fileUploadInput>): Promise<Awaited<ReturnType<InstanceType<typeof FileUploadAction>['upload']>>>;
619
+ /** 输出内置 skill 全文(prefix + sentinel + 正文 + install 状态),并顺手装到本机 */
620
+ bundledGet(input?: z.input<typeof bundledGetInput>): Promise<Awaited<ReturnType<InstanceType<typeof BundledGetAction>['get']>>>;
621
+ /** 列出可装的 group(groups.json 的组名 → 它包含哪些 skill) */
622
+ groups(): Promise<Awaited<ReturnType<InstanceType<typeof BundledGroupsAction>['groups']>>>;
623
+ /** 安装内置 skill 到 skills 目录(默认 nx-kv → ~/.claude/skills;--group <key> 一键装一组;--all 装全部并直接覆盖) */
624
+ install(input?: z.input<typeof bundledInstallInput>): Promise<Awaited<ReturnType<InstanceType<typeof BundledInstallAction>['install']>>>;
625
+ /** 列出包内自带 skill(含文件数与描述)+ 默认装哪个 + 有哪些 group */
626
+ bundledList(): Promise<Awaited<ReturnType<InstanceType<typeof BundledListAction>['list']>>>;
627
+ }
628
+
629
+ export function createApiClient(transport: Transport): ApiClient {
630
+ return {
631
+ // action: system.bootstrap
632
+ async bootstrap() {
633
+ const path = `/api/bootstrap`;
634
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BootstrapAction>['bootstrap']>>;
635
+ },
636
+ // action: system.health
637
+ async health() {
638
+ const path = `/api/health`;
639
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof HealthAction>['health']>>;
640
+ },
641
+ // action: setting.get
642
+ async get() {
643
+ const path = `/api/setting`;
644
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof SettingGetAction>['get']>>;
645
+ },
646
+ // action: setting.set
647
+ async set(input?: z.input<typeof settingSetInput>) {
648
+ const inp = input ?? ({} as z.input<typeof settingSetInput>);
649
+ const path = `/api/setting`;
650
+ const body = { "autoSyncAttachments": inp["autoSyncAttachments"], "attachmentsDir": inp["attachmentsDir"], "gitRepoRoot": inp["gitRepoRoot"], "gitDevRoot": inp["gitDevRoot"] };
651
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof SettingSetAction>['set']>>;
652
+ },
653
+ // action: auth.login
654
+ async login(input: z.input<typeof authLoginInput>) {
655
+ const inp = input ?? ({} as z.input<typeof authLoginInput>);
656
+ const path = `/api/auth/login`;
657
+ const body = { "email": inp["email"], "password": inp["password"], "baseUrl": inp["baseUrl"] };
658
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof AuthLoginAction>['login']>>;
659
+ },
660
+ // action: auth.logout
661
+ async logout() {
662
+ const path = `/api/auth/logout`;
663
+ return (await transport.request("POST", path, undefined)) as Awaited<ReturnType<InstanceType<typeof AuthLogoutAction>['logout']>>;
664
+ },
665
+ // action: auth.me
666
+ async me() {
667
+ const path = `/api/auth/me`;
668
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof AuthMeAction>['me']>>;
669
+ },
670
+ // action: auth.status
671
+ async status() {
672
+ const path = `/api/auth`;
673
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof AuthStatusAction>['status']>>;
674
+ },
675
+ // action: board.add
676
+ async add(input: z.input<typeof boardAddInput>) {
677
+ const inp = input ?? ({} as z.input<typeof boardAddInput>);
678
+ const path = `/api/boards`;
679
+ const body = { "name": inp["name"], "desc": inp["desc"] };
680
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardAddAction>['add']>>;
681
+ },
682
+ // action: board.assign
683
+ async assign(input: z.input<typeof boardAssignInput>) {
684
+ const inp = input ?? ({} as z.input<typeof boardAssignInput>);
685
+ const path = `/api/boards/assign`;
686
+ const body = { "id": inp["id"], "board": inp["board"], "before": inp["before"], "remove": inp["remove"] };
687
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardAssignAction>['assign']>>;
688
+ },
689
+ // action: board.export
690
+ async export() {
691
+ const path = `/api/boards/export`;
692
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BoardExportAction>['export']>>;
693
+ },
694
+ // action: board.get
695
+ async boardGet(input: z.input<typeof boardGetInput>) {
696
+ const inp = input ?? ({} as z.input<typeof boardGetInput>);
697
+ const path = `/api/boards/${encodeURIComponent(String(inp["id"]))}`;
698
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BoardGetAction>['get']>>;
699
+ },
700
+ // action: board.import
701
+ async import(input?: z.input<typeof boardImportInput>) {
702
+ const inp = input ?? ({} as z.input<typeof boardImportInput>);
703
+ const path = `/api/boards/import`;
704
+ const body = { "file": inp["file"] };
705
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardImportAction>['import']>>;
706
+ },
707
+ // action: board.list
708
+ async list() {
709
+ const path = `/api/boards`;
710
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BoardListAction>['list']>>;
711
+ },
712
+ // action: board.note
713
+ async note(input: z.input<typeof boardNoteInput>) {
714
+ const inp = input ?? ({} as z.input<typeof boardNoteInput>);
715
+ const path = `/api/boards/note`;
716
+ const body = { "id": inp["id"], "board": inp["board"], "note": inp["note"] };
717
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardNoteAction>['note']>>;
718
+ },
719
+ // action: board.prefix
720
+ async prefix(input: z.input<typeof boardPrefixInput>) {
721
+ const inp = input ?? ({} as z.input<typeof boardPrefixInput>);
722
+ const path = `/api/boards/prefix`;
723
+ const body = { "prefix": inp["prefix"], "board": inp["board"] };
724
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardPrefixAction>['prefix']>>;
725
+ },
726
+ // action: board.prune
727
+ async prune(input?: z.input<typeof boardPruneInput>) {
728
+ const inp = input ?? ({} as z.input<typeof boardPruneInput>);
729
+ const path = `/api/boards/prune`;
730
+ const body = { "board": inp["board"], "all": inp["all"], "apply": inp["apply"] };
731
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardPruneAction>['prune']>>;
732
+ },
733
+ // action: board.rekey
734
+ async rekey(input: z.input<typeof boardRekeyInput>) {
735
+ const inp = input ?? ({} as z.input<typeof boardRekeyInput>);
736
+ const path = `/api/boards/rekey`;
737
+ const body = { "from": inp["from"], "to": inp["to"], "board": inp["board"] };
738
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardRekeyAction>['rekey']>>;
739
+ },
740
+ // action: board.remove
741
+ async remove(input: z.input<typeof boardRemoveInput>) {
742
+ const inp = input ?? ({} as z.input<typeof boardRemoveInput>);
743
+ const path = `/api/boards/${encodeURIComponent(String(inp["id"]))}`;
744
+ return (await transport.request("DELETE", path, undefined)) as Awaited<ReturnType<InstanceType<typeof BoardRemoveAction>['remove']>>;
745
+ },
746
+ // action: board.update
747
+ async update(input: z.input<typeof boardUpdateInput>) {
748
+ const inp = input ?? ({} as z.input<typeof boardUpdateInput>);
749
+ const path = `/api/boards/${encodeURIComponent(String(inp["id"]))}`;
750
+ const body = { "name": inp["name"], "desc": inp["desc"] };
751
+ return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof BoardUpdateAction>['update']>>;
752
+ },
753
+ // action: repo.add
754
+ async repoAdd(input: z.input<typeof repoAddInput>) {
755
+ const inp = input ?? ({} as z.input<typeof repoAddInput>);
756
+ const path = `/api/repos`;
757
+ const body = { "path": inp["path"], "name": inp["name"], "icon": inp["icon"], "desc": inp["desc"], "notes": inp["notes"], "type": inp["type"], "remote": inp["remote"], "key": inp["key"], "key-custom": inp["key-custom"] };
758
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoAddAction>['add']>>;
759
+ },
760
+ // action: repo.bind-topics
761
+ async bindTopics(input?: z.input<typeof repoBindTopicsInput>) {
762
+ const inp = input ?? ({} as z.input<typeof repoBindTopicsInput>);
763
+ const path = `/api/repos/bind-topics`;
764
+ const body = { "repo": inp["repo"], "apply": inp["apply"] };
765
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoBindTopicsAction>['bindTopics']>>;
766
+ },
767
+ // action: repo.bind
768
+ async bind(input: z.input<typeof repoBindInput>) {
769
+ const inp = input ?? ({} as z.input<typeof repoBindInput>);
770
+ const path = `/api/repos/bind`;
771
+ const body = { "id": inp["id"], "repo": inp["repo"], "board": inp["board"], "remove": inp["remove"] };
772
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoBindAction>['bind']>>;
773
+ },
774
+ // action: repo.clone
775
+ async clone(input: z.input<typeof repoCloneInput>) {
776
+ const inp = input ?? ({} as z.input<typeof repoCloneInput>);
777
+ const path = `/api/repos/clone`;
778
+ const body = { "remote": inp["remote"], "key": inp["key"], "name": inp["name"], "desc": inp["desc"], "type": inp["type"], "depth": inp["depth"] };
779
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoCloneAction>['clone']>>;
780
+ },
781
+ // action: repo.detect
782
+ async detect(input: z.input<typeof repoDetectInput>) {
783
+ const inp = input ?? ({} as z.input<typeof repoDetectInput>);
784
+ const path = `/api/repos/detect`;
785
+ const body = { "path": inp["path"] };
786
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoDetectAction>['detect']>>;
787
+ },
788
+ // action: repo.doc.add
789
+ async docAdd(input: z.input<typeof repoDocAddInput>) {
790
+ const inp = input ?? ({} as z.input<typeof repoDocAddInput>);
791
+ const path = `/api/repos/docs`;
792
+ const body = { "id": inp["id"], "rel": inp["rel"], "path": inp["path"], "ref": inp["ref"], "file": inp["file"], "note": inp["note"], "tag": inp["tag"] };
793
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoDocAddAction>['add']>>;
794
+ },
795
+ // action: repo.doc.list
796
+ async docList(input: z.input<typeof repoDocListInput>) {
797
+ const inp = input ?? ({} as z.input<typeof repoDocListInput>);
798
+ let path = `/api/repos/docs`;
799
+ const q = new URLSearchParams();
800
+ if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
801
+ const query = q.toString();
802
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
803
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoDocListAction>['list']>>;
804
+ },
805
+ // action: repo.doc.remove
806
+ async docRemove(input: z.input<typeof repoDocRemoveInput>) {
807
+ const inp = input ?? ({} as z.input<typeof repoDocRemoveInput>);
808
+ const path = `/api/repos/docs`;
809
+ const body = { "id": inp["id"], "index": inp["index"] };
810
+ return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoDocRemoveAction>['remove']>>;
811
+ },
812
+ // action: repo.export
813
+ async repoExport(input?: z.input<typeof repoExportInput>) {
814
+ const inp = input ?? ({} as z.input<typeof repoExportInput>);
815
+ let path = `/api/repos/export`;
816
+ const q = new URLSearchParams();
817
+ if (inp["zip"] !== undefined) q.set("zip", String(inp["zip"]));
818
+ if (inp["repos"] !== undefined) q.set("repos", String(inp["repos"]));
819
+ if (inp["boards"] !== undefined) q.set("boards", String(inp["boards"]));
820
+ if (inp["no-unassigned"] !== undefined) q.set("no-unassigned", String(inp["no-unassigned"]));
821
+ const query = q.toString();
822
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
823
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoExportAction>['export']>>;
824
+ },
825
+ // action: repo.get
826
+ async repoGet(input: z.input<typeof repoGetInput>) {
827
+ const inp = input ?? ({} as z.input<typeof repoGetInput>);
828
+ const path = `/api/repos/${encodeURIComponent(String(inp["id"]))}`;
829
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoGetAction>['get']>>;
830
+ },
831
+ // action: repo.import.diff
832
+ async diff(input?: z.input<typeof repoImportDiffInput>) {
833
+ const inp = input ?? ({} as z.input<typeof repoImportDiffInput>);
834
+ const path = `/api/repos/import/diff`;
835
+ const body = { "file": inp["file"], "json": inp["json"] };
836
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoImportDiffAction>['diff']>>;
837
+ },
838
+ // action: repo.import
839
+ async repoImport(input?: z.input<typeof repoImportInput>) {
840
+ const inp = input ?? ({} as z.input<typeof repoImportInput>);
841
+ const path = `/api/repos/import`;
842
+ const body = { "file": inp["file"], "json": inp["json"], "strategy": inp["strategy"], "select": inp["select"], "boards": inp["boards"], "clone": inp["clone"] };
843
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoImportAction>['import']>>;
844
+ },
845
+ // action: repo.key.migrate
846
+ async migrate(input?: z.input<typeof repoKeyMigrateInput>) {
847
+ const inp = input ?? ({} as z.input<typeof repoKeyMigrateInput>);
848
+ const path = `/api/repos/key/migrate`;
849
+ const body = { "apply": inp["apply"] };
850
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoKeyMigrateAction>['migrate']>>;
851
+ },
852
+ // action: repo.key.refresh
853
+ async refresh(input?: z.input<typeof repoKeyRefreshInput>) {
854
+ const inp = input ?? ({} as z.input<typeof repoKeyRefreshInput>);
855
+ const path = `/api/repos/key/refresh`;
856
+ const body = { "id": inp["id"], "all": inp["all"], "apply": inp["apply"] };
857
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoKeyRefreshAction>['refresh']>>;
858
+ },
859
+ // action: repo.key.set
860
+ async keySet(input: z.input<typeof repoKeySetInput>) {
861
+ const inp = input ?? ({} as z.input<typeof repoKeySetInput>);
862
+ const path = `/api/repos/key`;
863
+ const body = { "id": inp["id"], "key": inp["key"], "follow": inp["follow"] };
864
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoKeySetAction>['set']>>;
865
+ },
866
+ // action: repo.knowledge
867
+ async knowledge(input?: z.input<typeof repoKnowledgeInput>) {
868
+ const inp = input ?? ({} as z.input<typeof repoKnowledgeInput>);
869
+ let path = `/api/repos/knowledge`;
870
+ const q = new URLSearchParams();
871
+ if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
872
+ if (inp["md"] !== undefined) q.set("md", String(inp["md"]));
873
+ const query = q.toString();
874
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
875
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoKnowledgeAction>['knowledge']>>;
876
+ },
877
+ // action: repo.list
878
+ async repoList(input?: z.input<typeof repoListInput>) {
879
+ const inp = input ?? ({} as z.input<typeof repoListInput>);
880
+ let path = `/api/repos`;
881
+ const q = new URLSearchParams();
882
+ if (inp["type"] !== undefined) q.set("type", String(inp["type"]));
883
+ const query = q.toString();
884
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
885
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoListAction>['list']>>;
886
+ },
887
+ // action: repo.open
888
+ async open(input: z.input<typeof repoOpenInput>) {
889
+ const inp = input ?? ({} as z.input<typeof repoOpenInput>);
890
+ const path = `/api/repos/open`;
891
+ const body = { "id": inp["id"] };
892
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoOpenAction>['open']>>;
893
+ },
894
+ // action: repo.ref.add
895
+ async refAdd(input: z.input<typeof repoRefAddInput>) {
896
+ const inp = input ?? ({} as z.input<typeof repoRefAddInput>);
897
+ const path = `/api/repos/ref/add`;
898
+ const body = { "path": inp["path"], "remote": inp["remote"], "name": inp["name"], "desc": inp["desc"], "notes": inp["notes"] };
899
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRefAddAction>['add']>>;
900
+ },
901
+ // action: repo.ref.check
902
+ async check() {
903
+ const path = `/api/repos/ref/check`;
904
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoRefCheckAction>['check']>>;
905
+ },
906
+ // action: repo.ref.clone
907
+ async refClone(input: z.input<typeof repoRefCloneInput>) {
908
+ const inp = input ?? ({} as z.input<typeof repoRefCloneInput>);
909
+ const path = `/api/repos/ref/clone`;
910
+ const body = { "url": inp["url"], "name": inp["name"], "desc": inp["desc"], "notes": inp["notes"], "board": inp["board"], "bind": inp["bind"], "depth": inp["depth"], "no-bind": inp["no-bind"] };
911
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRefCloneAction>['clone']>>;
912
+ },
913
+ // action: repo.ref.note
914
+ async refNote(input: z.input<typeof repoRefNoteInput>) {
915
+ const inp = input ?? ({} as z.input<typeof repoRefNoteInput>);
916
+ const path = `/api/repos/ref/note`;
917
+ const body = { "id": inp["id"], "repo": inp["repo"], "board": inp["board"], "note": inp["note"] };
918
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRefNoteAction>['note']>>;
919
+ },
920
+ // action: repo.ref.of
921
+ async of(input?: z.input<typeof repoRefOfInput>) {
922
+ const inp = input ?? ({} as z.input<typeof repoRefOfInput>);
923
+ let path = `/api/repos/ref/of`;
924
+ const q = new URLSearchParams();
925
+ if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
926
+ const query = q.toString();
927
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
928
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoRefOfAction>['of']>>;
929
+ },
930
+ // action: repo.ref.sync
931
+ async sync(input?: z.input<typeof repoRefSyncInput>) {
932
+ const inp = input ?? ({} as z.input<typeof repoRefSyncInput>);
933
+ const path = `/api/repos/ref/sync`;
934
+ const body = { "id": inp["id"], "all": inp["all"] };
935
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRefSyncAction>['sync']>>;
936
+ },
937
+ // action: repo.remote.check
938
+ async remoteCheck(input?: z.input<typeof repoRemoteCheckInput>) {
939
+ const inp = input ?? ({} as z.input<typeof repoRemoteCheckInput>);
940
+ let path = `/api/repos/remote/check`;
941
+ const q = new URLSearchParams();
942
+ if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
943
+ if (inp["url"] !== undefined) q.set("url", String(inp["url"]));
944
+ const query = q.toString();
945
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
946
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoRemoteCheckAction>['check']>>;
947
+ },
948
+ // action: repo.remote.list
949
+ async remoteList(input?: z.input<typeof repoRemoteListInput>) {
950
+ const inp = input ?? ({} as z.input<typeof repoRemoteListInput>);
951
+ let path = `/api/repos/remote/list`;
952
+ const q = new URLSearchParams();
953
+ if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
954
+ const query = q.toString();
955
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
956
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof RepoRemoteListAction>['list']>>;
957
+ },
958
+ // action: repo.remote.pick
959
+ async pick(input: z.input<typeof repoRemotePickInput>) {
960
+ const inp = input ?? ({} as z.input<typeof repoRemotePickInput>);
961
+ const path = `/api/repos/remote/pick`;
962
+ const body = { "id": inp["id"], "url": inp["url"] };
963
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRemotePickAction>['pick']>>;
964
+ },
965
+ // action: repo.remote
966
+ async remote(input: z.input<typeof repoRemoteInput>) {
967
+ const inp = input ?? ({} as z.input<typeof repoRemoteInput>);
968
+ const path = `/api/repos/remote`;
969
+ const body = { "id": inp["id"], "url": inp["url"], "refresh": inp["refresh"] };
970
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoRemoteAction>['remote']>>;
971
+ },
972
+ // action: repo.remove
973
+ async repoRemove(input: z.input<typeof repoRemoveInput>) {
974
+ const inp = input ?? ({} as z.input<typeof repoRemoveInput>);
975
+ const path = `/api/repos/${encodeURIComponent(String(inp["id"]))}`;
976
+ return (await transport.request("DELETE", path, undefined)) as Awaited<ReturnType<InstanceType<typeof RepoRemoveAction>['remove']>>;
977
+ },
978
+ // action: repo.scan
979
+ async scan(input?: z.input<typeof repoScanInput>) {
980
+ const inp = input ?? ({} as z.input<typeof repoScanInput>);
981
+ const path = `/api/repos/scan`;
982
+ const body = { "root": inp["root"], "depth": inp["depth"], "dry-run": inp["dry-run"] };
983
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoScanAction>['scan']>>;
984
+ },
985
+ // action: repo.update
986
+ async repoUpdate(input: z.input<typeof repoUpdateInput>) {
987
+ const inp = input ?? ({} as z.input<typeof repoUpdateInput>);
988
+ const path = `/api/repos/${encodeURIComponent(String(inp["id"]))}`;
989
+ const body = { "path": inp["path"], "name": inp["name"], "icon": inp["icon"], "desc": inp["desc"], "notes": inp["notes"], "type": inp["type"], "remote": inp["remote"], "key": inp["key"], "key-custom": inp["key-custom"], "get-loop": inp["get-loop"], "get-loop-minutes": inp["get-loop-minutes"], "get-loop-template": inp["get-loop-template"] };
990
+ return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof RepoUpdateAction>['update']>>;
991
+ },
992
+ // action: doc.add
993
+ async docAdd2(input: z.input<typeof docAddInput>) {
994
+ const inp = input ?? ({} as z.input<typeof docAddInput>);
995
+ const path = `/api/docs/item`;
996
+ const body = { "rel": inp["rel"], "body": inp["body"], "bodyFile": inp["bodyFile"], "body-file": inp["body-file"] };
997
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocAddAction>['add']>>;
998
+ },
999
+ // action: doc.attach-note
1000
+ async attachNote(input: z.input<typeof docAttachNoteInput>) {
1001
+ const inp = input ?? ({} as z.input<typeof docAttachNoteInput>);
1002
+ const path = `/api/docs/attach-note`;
1003
+ const body = { "ref": inp["ref"], "attachment": inp["attachment"], "note": inp["note"] };
1004
+ return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof DocAttachNoteAction>['attachNote']>>;
1005
+ },
1006
+ // action: doc.attach
1007
+ async attach(input: z.input<typeof docAttachInput>) {
1008
+ const inp = input ?? ({} as z.input<typeof docAttachInput>);
1009
+ const path = `/api/docs/attach`;
1010
+ const body = { "ref": inp["ref"], "path": inp["path"], "fileId": inp["fileId"], "url": inp["url"], "task": inp["task"], "doc": inp["doc"], "name": inp["name"], "note": inp["note"], "noEmbed": inp["noEmbed"], "no-embed": inp["no-embed"] };
1011
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocAttachAction>['attach']>>;
1012
+ },
1013
+ // action: doc.attachments
1014
+ async attachments(input: z.input<typeof docAttachmentsInput>) {
1015
+ const inp = input ?? ({} as z.input<typeof docAttachmentsInput>);
1016
+ let path = `/api/docs/attachments`;
1017
+ const q = new URLSearchParams();
1018
+ if (inp["ref"] !== undefined) q.set("ref", String(inp["ref"]));
1019
+ const query = q.toString();
1020
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1021
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof DocAttachmentsAction>['attachments']>>;
1022
+ },
1023
+ // action: doc.detach
1024
+ async detach(input: z.input<typeof docDetachInput>) {
1025
+ const inp = input ?? ({} as z.input<typeof docDetachInput>);
1026
+ const path = `/api/docs/attach`;
1027
+ const body = { "ref": inp["ref"], "attachment": inp["attachment"], "purge": inp["purge"] };
1028
+ return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof DocDetachAction>['detach']>>;
1029
+ },
1030
+ // action: doc.get
1031
+ async docGet(input: z.input<typeof docGetInput>) {
1032
+ const inp = input ?? ({} as z.input<typeof docGetInput>);
1033
+ let path = `/api/docs/item`;
1034
+ const q = new URLSearchParams();
1035
+ if (inp["ref"] !== undefined) q.set("ref", String(inp["ref"]));
1036
+ const query = q.toString();
1037
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1038
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof DocGetAction>['get']>>;
1039
+ },
1040
+ // action: doc.list
1041
+ async docList2(input?: z.input<typeof docListInput>) {
1042
+ const inp = input ?? ({} as z.input<typeof docListInput>);
1043
+ let path = `/api/docs`;
1044
+ const q = new URLSearchParams();
1045
+ if (inp["external"] !== undefined) q.set("external", String(inp["external"]));
1046
+ const query = q.toString();
1047
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1048
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof DocListAction>['list']>>;
1049
+ },
1050
+ // action: doc.remove
1051
+ async docRemove2(input: z.input<typeof docRemoveInput>) {
1052
+ const inp = input ?? ({} as z.input<typeof docRemoveInput>);
1053
+ const path = `/api/docs/item`;
1054
+ const body = { "ref": inp["ref"] };
1055
+ return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof DocRemoveAction>['remove']>>;
1056
+ },
1057
+ // action: doc.update
1058
+ async docUpdate(input: z.input<typeof docUpdateInput>) {
1059
+ const inp = input ?? ({} as z.input<typeof docUpdateInput>);
1060
+ const path = `/api/docs/item`;
1061
+ const body = { "ref": inp["ref"], "body": inp["body"], "bodyFile": inp["bodyFile"], "body-file": inp["body-file"] };
1062
+ return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof DocUpdateAction>['update']>>;
1063
+ },
1064
+ // action: docs.bind
1065
+ async docsBind(input?: z.input<typeof docsBindInput>) {
1066
+ const inp = input ?? ({} as z.input<typeof docsBindInput>);
1067
+ const path = `/api/docs/bind`;
1068
+ const body = { "repo": inp["repo"], "board": inp["board"], "rel": inp["rel"], "path": inp["path"], "reset": inp["reset"] };
1069
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocsBindAction>['bind']>>;
1070
+ },
1071
+ // action: docs.index
1072
+ async index() {
1073
+ const path = `/api/docs/index`;
1074
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof DocsIndexAction>['index']>>;
1075
+ },
1076
+ // action: docs.link
1077
+ async link(input: z.input<typeof docsLinkInput>) {
1078
+ const inp = input ?? ({} as z.input<typeof docsLinkInput>);
1079
+ const path = `/api/docs/link`;
1080
+ const body = { "board": inp["board"], "doc": inp["doc"], "note": inp["note"], "tag": inp["tag"], "remove": inp["remove"], "before": inp["before"] };
1081
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocsLinkAction>['link']>>;
1082
+ },
1083
+ // action: docs.notebind
1084
+ async notebind(input: z.input<typeof docsNotebindInput>) {
1085
+ const inp = input ?? ({} as z.input<typeof docsNotebindInput>);
1086
+ const path = `/api/docs/note-bind`;
1087
+ const body = { "board": inp["board"], "repo": inp["repo"], "rel": inp["rel"], "path": inp["path"], "reset": inp["reset"] };
1088
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocsNotebindAction>['notebind']>>;
1089
+ },
1090
+ // action: docs.seed
1091
+ async seed(input?: z.input<typeof docsSeedInput>) {
1092
+ const inp = input ?? ({} as z.input<typeof docsSeedInput>);
1093
+ const path = `/api/docs/seed`;
1094
+ const body = { "apply": inp["apply"] };
1095
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof DocsSeedAction>['seed']>>;
1096
+ },
1097
+ // action: localtask.add
1098
+ async localtaskAdd(input: z.input<typeof localtaskAddInput>) {
1099
+ const inp = input ?? ({} as z.input<typeof localtaskAddInput>);
1100
+ const path = `/api/localtasks`;
1101
+ const body = { "text": inp["text"], "cwd": inp["cwd"], "summary": inp["summary"], "global": inp["global"], "board": inp["board"], "project": inp["project"], "duration": inp["duration"], "goal-prompt": inp["goal-prompt"], "goalPrompt": inp["goalPrompt"], "block-by": inp["block-by"], "blockBy": inp["blockBy"], "gate": inp["gate"], "fork-of": inp["fork-of"], "forkOf": inp["forkOf"], "fork-kind": inp["fork-kind"], "forkKind": inp["forkKind"] };
1102
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskAddAction>['add']>>;
1103
+ },
1104
+ // action: localtask.attach-note
1105
+ async localtaskAttachNote(input: z.input<typeof localtaskAttachNoteInput>) {
1106
+ const inp = input ?? ({} as z.input<typeof localtaskAttachNoteInput>);
1107
+ const path = `/api/localtasks/attach-note`;
1108
+ const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "attachment": inp["attachment"], "note": inp["note"] };
1109
+ return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskAttachNoteAction>['attachNote']>>;
1110
+ },
1111
+ // action: localtask.attach
1112
+ async localtaskAttach(input: z.input<typeof localtaskAttachInput>) {
1113
+ const inp = input ?? ({} as z.input<typeof localtaskAttachInput>);
1114
+ const path = `/api/localtasks/attach`;
1115
+ const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "path": inp["path"], "fileId": inp["fileId"], "url": inp["url"], "task": inp["task"], "ref": inp["ref"], "inline": inp["inline"], "name": inp["name"], "kind": inp["kind"], "note": inp["note"], "noEmbed": inp["noEmbed"], "no-embed": inp["no-embed"] };
1116
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskAttachAction>['attach']>>;
1117
+ },
1118
+ // action: localtask.attachments
1119
+ async localtaskAttachments(input: z.input<typeof localtaskAttachmentsInput>) {
1120
+ const inp = input ?? ({} as z.input<typeof localtaskAttachmentsInput>);
1121
+ let path = `/api/localtasks/attachments`;
1122
+ const q = new URLSearchParams();
1123
+ if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
1124
+ if (inp["cwd"] !== undefined) q.set("cwd", String(inp["cwd"]));
1125
+ if (inp["key"] !== undefined) q.set("key", String(inp["key"]));
1126
+ const query = q.toString();
1127
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1128
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskAttachmentsAction>['attachments']>>;
1129
+ },
1130
+ // action: localtask.cancel
1131
+ async cancel(input?: z.input<typeof localtaskCancelInput>) {
1132
+ const inp = input ?? ({} as z.input<typeof localtaskCancelInput>);
1133
+ const path = `/api/localtasks/cancel`;
1134
+ const body = { "cwd": inp["cwd"], "key": inp["key"] };
1135
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskCancelAction>['cancel']>>;
1136
+ },
1137
+ // action: localtask.cancelMany
1138
+ async cancelMany(input: z.input<typeof localtaskCancelManyInput>) {
1139
+ const inp = input ?? ({} as z.input<typeof localtaskCancelManyInput>);
1140
+ const path = `/api/localtasks/items/cancel`;
1141
+ const body = { "ids": inp["ids"], "cwd": inp["cwd"], "key": inp["key"] };
1142
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskCancelManyAction>['cancelMany']>>;
1143
+ },
1144
+ // action: localtask.chain
1145
+ async chain(input: z.input<typeof localtaskChainInput>) {
1146
+ const inp = input ?? ({} as z.input<typeof localtaskChainInput>);
1147
+ let path = `/api/localtasks/chain`;
1148
+ const q = new URLSearchParams();
1149
+ if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
1150
+ if (inp["cwd"] !== undefined) q.set("cwd", String(inp["cwd"]));
1151
+ if (inp["key"] !== undefined) q.set("key", String(inp["key"]));
1152
+ const query = q.toString();
1153
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1154
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskChainAction>['chain']>>;
1155
+ },
1156
+ // action: localtask.claim
1157
+ async claim(input?: z.input<typeof localtaskClaimInput>) {
1158
+ const inp = input ?? ({} as z.input<typeof localtaskClaimInput>);
1159
+ const path = `/api/localtasks/claim`;
1160
+ const body = { "cwd": inp["cwd"], "timeout": inp["timeout"], "no-open": inp["no-open"], "param": inp["param"] };
1161
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskClaimAction>['claim']>>;
1162
+ },
1163
+ // action: localtask.clone
1164
+ async localtaskClone(input: z.input<typeof localtaskCloneInput>) {
1165
+ const inp = input ?? ({} as z.input<typeof localtaskCloneInput>);
1166
+ const path = `/api/localtasks/clone`;
1167
+ const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"] };
1168
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskCloneAction>['clone']>>;
1169
+ },
1170
+ // action: localtask.closeMany
1171
+ async closeMany(input: z.input<typeof localtaskCloseManyInput>) {
1172
+ const inp = input ?? ({} as z.input<typeof localtaskCloseManyInput>);
1173
+ const path = `/api/localtasks/items/close`;
1174
+ const body = { "ids": inp["ids"], "cwd": inp["cwd"], "key": inp["key"], "status": inp["status"], "summary": inp["summary"] };
1175
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskCloseManyAction>['closeMany']>>;
1176
+ },
1177
+ // action: localtask.config
1178
+ async config(input?: z.input<typeof localtaskConfigInput>) {
1179
+ const inp = input ?? ({} as z.input<typeof localtaskConfigInput>);
1180
+ const path = `/api/localtasks/setting`;
1181
+ const body = { "timeout": inp["timeout"], "ack": inp["ack"], "ack-list": inp["ack-list"], "ackList": inp["ackList"], "delivery-template": inp["delivery-template"], "reset-delivery-template": inp["reset-delivery-template"], "attach-template": inp["attach-template"], "attachTemplate": inp["attachTemplate"], "reset-attach-template": inp["reset-attach-template"], "append-mode": inp["append-mode"], "block-templates": inp["block-templates"] };
1182
+ return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskConfigAction>['config']>>;
1183
+ },
1184
+ // action: localtask.detach
1185
+ async localtaskDetach(input: z.input<typeof localtaskDetachInput>) {
1186
+ const inp = input ?? ({} as z.input<typeof localtaskDetachInput>);
1187
+ const path = `/api/localtasks/attach`;
1188
+ const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "attachment": inp["attachment"], "purge": inp["purge"] };
1189
+ return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskDetachAction>['detach']>>;
1190
+ },
1191
+ // action: localtask.done
1192
+ async done(input: z.input<typeof localtaskDoneInput>) {
1193
+ const inp = input ?? ({} as z.input<typeof localtaskDoneInput>);
1194
+ const path = `/api/localtasks/done`;
1195
+ const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "summary": inp["summary"] };
1196
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskDoneAction>['done']>>;
1197
+ },
1198
+ // action: localtask.events
1199
+ async events(input?: z.input<typeof localtaskEventsInput>) {
1200
+ const inp = input ?? ({} as z.input<typeof localtaskEventsInput>);
1201
+ let path = `/api/localtasks/events`;
1202
+ const q = new URLSearchParams();
1203
+ if (inp["cwd"] !== undefined) q.set("cwd", String(inp["cwd"]));
1204
+ if (inp["key"] !== undefined) q.set("key", String(inp["key"]));
1205
+ if (inp["timeout"] !== undefined) q.set("timeout", String(inp["timeout"]));
1206
+ if (inp["limit"] !== undefined) q.set("limit", String(inp["limit"]));
1207
+ const query = q.toString();
1208
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1209
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskEventsAction>['events']>>;
1210
+ },
1211
+ // action: localtask.fork
1212
+ async fork(input: z.input<typeof localtaskForkInput>) {
1213
+ const inp = input ?? ({} as z.input<typeof localtaskForkInput>);
1214
+ const path = `/api/localtasks/fork`;
1215
+ const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"] };
1216
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskForkAction>['fork']>>;
1217
+ },
1218
+ // action: localtask.get
1219
+ async localtaskGet(input: z.input<typeof localtaskGetInput>) {
1220
+ const inp = input ?? ({} as z.input<typeof localtaskGetInput>);
1221
+ let path = `/api/localtasks/item`;
1222
+ const q = new URLSearchParams();
1223
+ if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
1224
+ if (inp["cwd"] !== undefined) q.set("cwd", String(inp["cwd"]));
1225
+ if (inp["key"] !== undefined) q.set("key", String(inp["key"]));
1226
+ const query = q.toString();
1227
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1228
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskGetAction>['get']>>;
1229
+ },
1230
+ // action: localtask.importRemote
1231
+ async importRemote(input?: z.input<typeof localtaskImportRemoteInput>) {
1232
+ const inp = input ?? ({} as z.input<typeof localtaskImportRemoteInput>);
1233
+ const path = `/api/localtasks/import-remote`;
1234
+ const body = { "ref": inp["ref"], "cwd": inp["cwd"], "global": inp["global"], "topic": inp["topic"], "pick": inp["pick"] };
1235
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskImportRemoteAction>['importRemote']>>;
1236
+ },
1237
+ // action: localtask.list
1238
+ async localtaskList() {
1239
+ const path = `/api/localtasks`;
1240
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskListAction>['list']>>;
1241
+ },
1242
+ // action: localtask.presence
1243
+ async presence() {
1244
+ const path = `/api/localtasks/presence`;
1245
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskPresenceAction>['presence']>>;
1246
+ },
1247
+ // action: localtask.preview
1248
+ async preview(input?: z.input<typeof localtaskPreviewInput>) {
1249
+ const inp = input ?? ({} as z.input<typeof localtaskPreviewInput>);
1250
+ const path = `/api/localtasks/preview`;
1251
+ const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "text": inp["text"], "param": inp["param"] };
1252
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskPreviewAction>['preview']>>;
1253
+ },
1254
+ // action: localtask.prune
1255
+ async localtaskPrune(input?: z.input<typeof localtaskPruneInput>) {
1256
+ const inp = input ?? ({} as z.input<typeof localtaskPruneInput>);
1257
+ const path = `/api/localtasks/prune`;
1258
+ const body = { "all-finished": inp["all-finished"], "dry-run": inp["dry-run"] };
1259
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskPruneAction>['prune']>>;
1260
+ },
1261
+ // action: localtask.remove
1262
+ async localtaskRemove(input: z.input<typeof localtaskRemoveInput>) {
1263
+ const inp = input ?? ({} as z.input<typeof localtaskRemoveInput>);
1264
+ const path = `/api/localtasks/item`;
1265
+ const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "purge": inp["purge"] };
1266
+ return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskRemoveAction>['remove']>>;
1267
+ },
1268
+ // action: localtask.removeMany
1269
+ async removeMany(input: z.input<typeof localtaskRemoveManyInput>) {
1270
+ const inp = input ?? ({} as z.input<typeof localtaskRemoveManyInput>);
1271
+ const path = `/api/localtasks/items`;
1272
+ const body = { "ids": inp["ids"], "cwd": inp["cwd"], "key": inp["key"], "purge": inp["purge"] };
1273
+ return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskRemoveManyAction>['removeMany']>>;
1274
+ },
1275
+ // action: localtask.reopen
1276
+ async reopen(input: z.input<typeof localtaskReopenInput>) {
1277
+ const inp = input ?? ({} as z.input<typeof localtaskReopenInput>);
1278
+ const path = `/api/localtasks/reopen`;
1279
+ const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "text": inp["text"], "kind": inp["kind"], "quote": inp["quote"], "feedback": inp["feedback"], "feedbackHeading": inp["feedbackHeading"], "feedbackBold": inp["feedbackBold"] };
1280
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskReopenAction>['reopen']>>;
1281
+ },
1282
+ // action: localtask.reorder
1283
+ async reorder(input: z.input<typeof localtaskReorderInput>) {
1284
+ const inp = input ?? ({} as z.input<typeof localtaskReorderInput>);
1285
+ const path = `/api/localtasks/reorder`;
1286
+ const body = { "id": inp["id"], "beforeId": inp["beforeId"], "afterId": inp["afterId"], "before-id": inp["before-id"], "after-id": inp["after-id"], "cwd": inp["cwd"], "key": inp["key"] };
1287
+ return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskReorderAction>['reorder']>>;
1288
+ },
1289
+ // action: localtask.task.restore
1290
+ async restore(input: z.input<typeof localtaskTaskRestoreInput>) {
1291
+ const inp = input ?? ({} as z.input<typeof localtaskTaskRestoreInput>);
1292
+ const path = `/api/localtasks/tasks/restore`;
1293
+ const body = { "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"] };
1294
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTaskRestoreAction>['restore']>>;
1295
+ },
1296
+ // action: localtask.timegoalLog
1297
+ async timegoalLog(input: z.input<typeof localtaskTimegoalLogInput>) {
1298
+ const inp = input ?? ({} as z.input<typeof localtaskTimegoalLogInput>);
1299
+ let path = `/api/localtasks/timegoal-log`;
1300
+ const q = new URLSearchParams();
1301
+ if (inp["id"] !== undefined) q.set("id", String(inp["id"]));
1302
+ if (inp["cwd"] !== undefined) q.set("cwd", String(inp["cwd"]));
1303
+ if (inp["key"] !== undefined) q.set("key", String(inp["key"]));
1304
+ const query = q.toString();
1305
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1306
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTimegoalLogAction>['timegoalLog']>>;
1307
+ },
1308
+ // action: localtask.topic.add
1309
+ async topicAdd(input: z.input<typeof localtaskTopicAddInput>) {
1310
+ const inp = input ?? ({} as z.input<typeof localtaskTopicAddInput>);
1311
+ const path = `/api/localtasks/topic`;
1312
+ const body = { "cwd": inp["cwd"], "summary": inp["summary"] };
1313
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTopicAddAction>['add']>>;
1314
+ },
1315
+ // action: localtask.topic.remove
1316
+ async topicRemove(input?: z.input<typeof localtaskTopicRemoveInput>) {
1317
+ const inp = input ?? ({} as z.input<typeof localtaskTopicRemoveInput>);
1318
+ const path = `/api/localtasks/topic`;
1319
+ const body = { "cwd": inp["cwd"], "key": inp["key"], "force": inp["force"] };
1320
+ return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTopicRemoveAction>['remove']>>;
1321
+ },
1322
+ // action: localtask.topic.removeMany
1323
+ async topicRemoveMany(input?: z.input<typeof localtaskTopicRemoveManyInput>) {
1324
+ const inp = input ?? ({} as z.input<typeof localtaskTopicRemoveManyInput>);
1325
+ const path = `/api/localtasks/topics/remove`;
1326
+ const body = { "keys": inp["keys"], "cwds": inp["cwds"], "all": inp["all"], "force": inp["force"] };
1327
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskTopicRemoveManyAction>['removeMany']>>;
1328
+ },
1329
+ // action: localtask.update
1330
+ async localtaskUpdate(input: z.input<typeof localtaskUpdateInput>) {
1331
+ const inp = input ?? ({} as z.input<typeof localtaskUpdateInput>);
1332
+ const path = `/api/localtasks/item`;
1333
+ const body = { "id": inp["id"], "text": inp["text"], "cwd": inp["cwd"], "key": inp["key"], "duration": inp["duration"], "goal-prompt": inp["goal-prompt"], "goalPrompt": inp["goalPrompt"], "clear-goal": inp["clear-goal"], "clearGoal": inp["clearGoal"], "block-by": inp["block-by"], "blockBy": inp["blockBy"], "clear-block-by": inp["clear-block-by"], "clearBlockBy": inp["clearBlockBy"], "gate": inp["gate"] };
1334
+ return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof LocaltaskUpdateAction>['update']>>;
1335
+ },
1336
+ // action: task.move
1337
+ async move(input?: z.input<typeof taskMoveInput>) {
1338
+ const inp = input ?? ({} as z.input<typeof taskMoveInput>);
1339
+ const path = `/api/task/move`;
1340
+ const body = { "from": inp["from"], "to": inp["to"], "id": inp["id"], "cwd": inp["cwd"], "key": inp["key"], "topic": inp["topic"], "text": inp["text"], "pick": inp["pick"], "merge": inp["merge"], "group": inp["group"], "undo": inp["undo"], "target-id": inp["target-id"], "tombstone-id": inp["tombstone-id"] };
1341
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TaskMoveAction>['move']>>;
1342
+ },
1343
+ // action: timegoal.check
1344
+ async timegoalCheck(input: z.input<typeof timegoalCheckInput>) {
1345
+ const inp = input ?? ({} as z.input<typeof timegoalCheckInput>);
1346
+ let path = `/api/timegoals/check`;
1347
+ const q = new URLSearchParams();
1348
+ if (inp["cwd"] !== undefined) q.set("cwd", String(inp["cwd"]));
1349
+ if (inp["task"] !== undefined) q.set("task", String(inp["task"]));
1350
+ if (inp["summary"] !== undefined) q.set("summary", String(inp["summary"]));
1351
+ const query = q.toString();
1352
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1353
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TimegoalCheckAction>['check']>>;
1354
+ },
1355
+ // action: timegoal.clear
1356
+ async clear(input: z.input<typeof timegoalClearInput>) {
1357
+ const inp = input ?? ({} as z.input<typeof timegoalClearInput>);
1358
+ const path = `/api/timegoals`;
1359
+ const body = { "cwd": inp["cwd"] };
1360
+ return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof TimegoalClearAction>['clear']>>;
1361
+ },
1362
+ // action: timegoal.list
1363
+ async timegoalList() {
1364
+ const path = `/api/timegoals/all`;
1365
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TimegoalListAction>['list']>>;
1366
+ },
1367
+ // action: timegoal.log
1368
+ async log(input: z.input<typeof timegoalLogInput>) {
1369
+ const inp = input ?? ({} as z.input<typeof timegoalLogInput>);
1370
+ let path = `/api/timegoals/log`;
1371
+ const q = new URLSearchParams();
1372
+ if (inp["cwd"] !== undefined) q.set("cwd", String(inp["cwd"]));
1373
+ const query = q.toString();
1374
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1375
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TimegoalLogAction>['log']>>;
1376
+ },
1377
+ // action: timegoal.prune
1378
+ async timegoalPrune() {
1379
+ const path = `/api/timegoals/prune`;
1380
+ return (await transport.request("POST", path, undefined)) as Awaited<ReturnType<InstanceType<typeof TimegoalPruneAction>['prune']>>;
1381
+ },
1382
+ // action: timegoal.set
1383
+ async timegoalSet(input: z.input<typeof timegoalSetInput>) {
1384
+ const inp = input ?? ({} as z.input<typeof timegoalSetInput>);
1385
+ const path = `/api/timegoals`;
1386
+ const body = { "cwd": inp["cwd"], "duration": inp["duration"], "prompt": inp["prompt"] };
1387
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TimegoalSetAction>['set']>>;
1388
+ },
1389
+ // action: timegoal.show
1390
+ async show(input?: z.input<typeof timegoalShowInput>) {
1391
+ const inp = input ?? ({} as z.input<typeof timegoalShowInput>);
1392
+ let path = `/api/timegoals`;
1393
+ const q = new URLSearchParams();
1394
+ if (inp["cwd"] !== undefined) q.set("cwd", String(inp["cwd"]));
1395
+ if (inp["task"] !== undefined) q.set("task", String(inp["task"]));
1396
+ const query = q.toString();
1397
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1398
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TimegoalShowAction>['show']>>;
1399
+ },
1400
+ // action: timegoal.update
1401
+ async timegoalUpdate(input: z.input<typeof timegoalUpdateInput>) {
1402
+ const inp = input ?? ({} as z.input<typeof timegoalUpdateInput>);
1403
+ const path = `/api/timegoals`;
1404
+ const body = { "cwd": inp["cwd"], "prompt": inp["prompt"], "duration": inp["duration"] };
1405
+ return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof TimegoalUpdateAction>['update']>>;
1406
+ },
1407
+ // action: templates.add
1408
+ async templatesAdd(input: z.input<typeof templatesAddInput>) {
1409
+ const inp = input ?? ({} as z.input<typeof templatesAddInput>);
1410
+ const path = `/api/templates`;
1411
+ const body = { "name": inp["name"], "body": inp["body"], "bodyFile": inp["bodyFile"], "body-file": inp["body-file"], "setDefault": inp["setDefault"], "set-default": inp["set-default"], "scope": inp["scope"], "topic": inp["topic"], "cwd": inp["cwd"] };
1412
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TemplatesAddAction>['add']>>;
1413
+ },
1414
+ // action: templates.default
1415
+ async default(input: z.input<typeof templatesDefaultInput>) {
1416
+ const inp = input ?? ({} as z.input<typeof templatesDefaultInput>);
1417
+ const path = `/api/templates/default`;
1418
+ const body = { "id": inp["id"], "name": inp["name"], "body": inp["body"], "values": inp["values"], "scope": inp["scope"] };
1419
+ return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof TemplatesDefaultAction>['default']>>;
1420
+ },
1421
+ // action: templates.list
1422
+ async templatesList(input?: z.input<typeof templatesListInput>) {
1423
+ const inp = input ?? ({} as z.input<typeof templatesListInput>);
1424
+ let path = `/api/templates`;
1425
+ const q = new URLSearchParams();
1426
+ if (inp["topic"] !== undefined) q.set("topic", String(inp["topic"]));
1427
+ if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1428
+ if (inp["repo"] !== undefined) q.set("repo", String(inp["repo"]));
1429
+ const query = q.toString();
1430
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1431
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TemplatesListAction>['list']>>;
1432
+ },
1433
+ // action: templates.remove
1434
+ async templatesRemove(input: z.input<typeof templatesRemoveInput>) {
1435
+ const inp = input ?? ({} as z.input<typeof templatesRemoveInput>);
1436
+ const path = `/api/templates/${encodeURIComponent(String(inp["id"]))}`;
1437
+ return (await transport.request("DELETE", path, undefined)) as Awaited<ReturnType<InstanceType<typeof TemplatesRemoveAction>['remove']>>;
1438
+ },
1439
+ // action: templates.update
1440
+ async templatesUpdate(input: z.input<typeof templatesUpdateInput>) {
1441
+ const inp = input ?? ({} as z.input<typeof templatesUpdateInput>);
1442
+ const path = `/api/templates/${encodeURIComponent(String(inp["id"]))}`;
1443
+ const body = { "name": inp["name"], "body": inp["body"], "bodyFile": inp["bodyFile"], "body-file": inp["body-file"], "scope": inp["scope"], "values": inp["values"] };
1444
+ return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof TemplatesUpdateAction>['update']>>;
1445
+ },
1446
+ // action: group.add
1447
+ async groupAdd(input: z.input<typeof groupAddInput>) {
1448
+ const inp = input ?? ({} as z.input<typeof groupAddInput>);
1449
+ const path = `/api/groups`;
1450
+ const body = { "name": inp["name"], "description": inp["description"] };
1451
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof GroupAddAction>['add']>>;
1452
+ },
1453
+ // action: group.current
1454
+ async current() {
1455
+ const path = `/api/group`;
1456
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof GroupCurrentAction>['current']>>;
1457
+ },
1458
+ // action: group.get
1459
+ async groupGet(input: z.input<typeof groupGetInput>) {
1460
+ const inp = input ?? ({} as z.input<typeof groupGetInput>);
1461
+ const path = `/api/groups/${encodeURIComponent(String(inp["id"]))}`;
1462
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof GroupGetAction>['get']>>;
1463
+ },
1464
+ // action: group.list
1465
+ async groupList() {
1466
+ const path = `/api/groups`;
1467
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof GroupListAction>['list']>>;
1468
+ },
1469
+ // action: group.members
1470
+ async members(input: z.input<typeof groupMembersInput>) {
1471
+ const inp = input ?? ({} as z.input<typeof groupMembersInput>);
1472
+ const path = `/api/groups/${encodeURIComponent(String(inp["id"]))}/members`;
1473
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof GroupMembersAction>['members']>>;
1474
+ },
1475
+ // action: group.remove
1476
+ async groupRemove(input: z.input<typeof groupRemoveInput>) {
1477
+ const inp = input ?? ({} as z.input<typeof groupRemoveInput>);
1478
+ const path = `/api/groups/${encodeURIComponent(String(inp["id"]))}`;
1479
+ return (await transport.request("DELETE", path, undefined)) as Awaited<ReturnType<InstanceType<typeof GroupRemoveAction>['remove']>>;
1480
+ },
1481
+ // action: group.update
1482
+ async groupUpdate(input: z.input<typeof groupUpdateInput>) {
1483
+ const inp = input ?? ({} as z.input<typeof groupUpdateInput>);
1484
+ const path = `/api/groups/${encodeURIComponent(String(inp["id"]))}`;
1485
+ const body = { "name": inp["name"], "description": inp["description"] };
1486
+ return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof GroupUpdateAction>['update']>>;
1487
+ },
1488
+ // action: group.use
1489
+ async use(input: z.input<typeof groupUseInput>) {
1490
+ const inp = input ?? ({} as z.input<typeof groupUseInput>);
1491
+ const path = `/api/group`;
1492
+ const body = { "locator": inp["locator"] };
1493
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof GroupUseAction>['use']>>;
1494
+ },
1495
+ // action: prompt.get
1496
+ async promptGet(input: z.input<typeof promptGetInput>) {
1497
+ const inp = input ?? ({} as z.input<typeof promptGetInput>);
1498
+ let path = `/api/prompts/${encodeURIComponent(String(inp["topic"]))}`;
1499
+ const q = new URLSearchParams();
1500
+ if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1501
+ const query = q.toString();
1502
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1503
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof PromptGetAction>['get']>>;
1504
+ },
1505
+ // action: prompt.remove
1506
+ async promptRemove(input: z.input<typeof promptRemoveInput>) {
1507
+ const inp = input ?? ({} as z.input<typeof promptRemoveInput>);
1508
+ const path = `/api/prompts/${encodeURIComponent(String(inp["topic"]))}`;
1509
+ const body = { "group": inp["group"] };
1510
+ return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof PromptRemoveAction>['remove']>>;
1511
+ },
1512
+ // action: prompt.set
1513
+ async promptSet(input: z.input<typeof promptSetInput>) {
1514
+ const inp = input ?? ({} as z.input<typeof promptSetInput>);
1515
+ const path = `/api/prompts/${encodeURIComponent(String(inp["topic"]))}`;
1516
+ const body = { "text": inp["text"], "group": inp["group"] };
1517
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof PromptSetAction>['set']>>;
1518
+ },
1519
+ // action: todo.add
1520
+ async todoAdd(input: z.input<typeof todoAddInput>) {
1521
+ const inp = input ?? ({} as z.input<typeof todoAddInput>);
1522
+ const path = `/api/todo`;
1523
+ const body = { "text": inp["text"], "topic": inp["topic"], "group": inp["group"] };
1524
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoAddAction>['add']>>;
1525
+ },
1526
+ // action: todo.archive
1527
+ async archive(input?: z.input<typeof todoArchiveInput>) {
1528
+ const inp = input ?? ({} as z.input<typeof todoArchiveInput>);
1529
+ const path = `/api/todo/archive`;
1530
+ const body = { "before": inp["before"], "group": inp["group"] };
1531
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoArchiveAction>['archive']>>;
1532
+ },
1533
+ // action: todo.attach
1534
+ async todoAttach(input: z.input<typeof todoAttachInput>) {
1535
+ const inp = input ?? ({} as z.input<typeof todoAttachInput>);
1536
+ const path = `/api/todo/attach`;
1537
+ const body = { "ref": inp["ref"], "path": inp["path"], "fileId": inp["fileId"], "name": inp["name"], "kind": inp["kind"], "accessLevel": inp["accessLevel"], "topic": inp["topic"], "pick": inp["pick"], "group": inp["group"] };
1538
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoAttachAction>['attach']>>;
1539
+ },
1540
+ // action: todo.attachments
1541
+ async todoAttachments(input: z.input<typeof todoAttachmentsInput>) {
1542
+ const inp = input ?? ({} as z.input<typeof todoAttachmentsInput>);
1543
+ let path = `/api/todo/attachments`;
1544
+ const q = new URLSearchParams();
1545
+ if (inp["ref"] !== undefined) q.set("ref", String(inp["ref"]));
1546
+ if (inp["topic"] !== undefined) q.set("topic", String(inp["topic"]));
1547
+ if (inp["pick"] !== undefined) q.set("pick", String(inp["pick"]));
1548
+ if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1549
+ const query = q.toString();
1550
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1551
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TodoAttachmentsAction>['attachments']>>;
1552
+ },
1553
+ // action: todo.done
1554
+ async todoDone(input: z.input<typeof todoDoneInput>) {
1555
+ const inp = input ?? ({} as z.input<typeof todoDoneInput>);
1556
+ const path = `/api/todo/done`;
1557
+ const body = { "ref": inp["ref"], "result": inp["result"], "topic": inp["topic"], "pick": inp["pick"], "group": inp["group"] };
1558
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoDoneAction>['done']>>;
1559
+ },
1560
+ // action: todo.freeze
1561
+ async freeze(input: z.input<typeof todoFreezeInput>) {
1562
+ const inp = input ?? ({} as z.input<typeof todoFreezeInput>);
1563
+ const path = `/api/todo/freeze`;
1564
+ const body = { "ref": inp["ref"], "topic": inp["topic"], "pick": inp["pick"], "group": inp["group"] };
1565
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoFreezeAction>['freeze']>>;
1566
+ },
1567
+ // action: todo.get
1568
+ async todoGet(input: z.input<typeof todoGetInput>) {
1569
+ const inp = input ?? ({} as z.input<typeof todoGetInput>);
1570
+ let path = `/api/todo/item`;
1571
+ const q = new URLSearchParams();
1572
+ if (inp["ref"] !== undefined) q.set("ref", String(inp["ref"]));
1573
+ if (inp["topic"] !== undefined) q.set("topic", String(inp["topic"]));
1574
+ if (inp["pick"] !== undefined) q.set("pick", String(inp["pick"]));
1575
+ if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1576
+ const query = q.toString();
1577
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1578
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TodoGetAction>['get']>>;
1579
+ },
1580
+ // action: todo.list
1581
+ async todoList(input?: z.input<typeof todoListInput>) {
1582
+ const inp = input ?? ({} as z.input<typeof todoListInput>);
1583
+ let path = `/api/todo`;
1584
+ const q = new URLSearchParams();
1585
+ if (inp["topic"] !== undefined) q.set("topic", String(inp["topic"]));
1586
+ if (inp["status"] !== undefined) q.set("status", String(inp["status"]));
1587
+ if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1588
+ const query = q.toString();
1589
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1590
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TodoListAction>['list']>>;
1591
+ },
1592
+ // action: todo.remove
1593
+ async todoRemove(input: z.input<typeof todoRemoveInput>) {
1594
+ const inp = input ?? ({} as z.input<typeof todoRemoveInput>);
1595
+ const path = `/api/todo/item`;
1596
+ const body = { "ref": inp["ref"], "topic": inp["topic"], "pick": inp["pick"], "group": inp["group"] };
1597
+ return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoRemoveAction>['remove']>>;
1598
+ },
1599
+ // action: todo.unfreeze
1600
+ async unfreeze(input: z.input<typeof todoUnfreezeInput>) {
1601
+ const inp = input ?? ({} as z.input<typeof todoUnfreezeInput>);
1602
+ const path = `/api/todo/unfreeze`;
1603
+ const body = { "ref": inp["ref"], "topic": inp["topic"], "pick": inp["pick"], "group": inp["group"] };
1604
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoUnfreezeAction>['unfreeze']>>;
1605
+ },
1606
+ // action: todo.update
1607
+ async todoUpdate(input: z.input<typeof todoUpdateInput>) {
1608
+ const inp = input ?? ({} as z.input<typeof todoUpdateInput>);
1609
+ const path = `/api/todo/item`;
1610
+ const body = { "ref": inp["ref"], "topic": inp["topic"], "text": inp["text"], "note": inp["note"], "matchTopic": inp["matchTopic"], "pick": inp["pick"], "group": inp["group"] };
1611
+ return (await transport.request("PATCH", path, body)) as Awaited<ReturnType<InstanceType<typeof TodoUpdateAction>['update']>>;
1612
+ },
1613
+ // action: topic.add
1614
+ async topicAdd2(input: z.input<typeof topicAddInput>) {
1615
+ const inp = input ?? ({} as z.input<typeof topicAddInput>);
1616
+ const path = `/api/topics`;
1617
+ const body = { "name": inp["name"], "group": inp["group"] };
1618
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof TopicAddAction>['add']>>;
1619
+ },
1620
+ // action: topic.list
1621
+ async topicList(input?: z.input<typeof topicListInput>) {
1622
+ const inp = input ?? ({} as z.input<typeof topicListInput>);
1623
+ let path = `/api/topics`;
1624
+ const q = new URLSearchParams();
1625
+ if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1626
+ const query = q.toString();
1627
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1628
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof TopicListAction>['list']>>;
1629
+ },
1630
+ // action: topic.remove
1631
+ async topicRemove2(input: z.input<typeof topicRemoveInput>) {
1632
+ const inp = input ?? ({} as z.input<typeof topicRemoveInput>);
1633
+ const path = `/api/topics`;
1634
+ const body = { "name": inp["name"], "group": inp["group"] };
1635
+ return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof TopicRemoveAction>['remove']>>;
1636
+ },
1637
+ // action: file.content
1638
+ async content(input: z.input<typeof fileContentInput>) {
1639
+ const inp = input ?? ({} as z.input<typeof fileContentInput>);
1640
+ let path = `/api/file/content/${encodeURIComponent(String(inp["fileId"]))}`;
1641
+ const q = new URLSearchParams();
1642
+ if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1643
+ const query = q.toString();
1644
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1645
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof FileContentAction>['content']>>;
1646
+ },
1647
+ // action: file.get
1648
+ async fileGet(input: z.input<typeof fileGetInput>) {
1649
+ const inp = input ?? ({} as z.input<typeof fileGetInput>);
1650
+ let path = `/api/file/item`;
1651
+ const q = new URLSearchParams();
1652
+ if (inp["fileId"] !== undefined) q.set("fileId", String(inp["fileId"]));
1653
+ if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1654
+ const query = q.toString();
1655
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1656
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof FileGetAction>['get']>>;
1657
+ },
1658
+ // action: file.list
1659
+ async fileList(input?: z.input<typeof fileListInput>) {
1660
+ const inp = input ?? ({} as z.input<typeof fileListInput>);
1661
+ let path = `/api/file`;
1662
+ const q = new URLSearchParams();
1663
+ if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1664
+ if (inp["limit"] !== undefined) q.set("limit", String(inp["limit"]));
1665
+ if (inp["offset"] !== undefined) q.set("offset", String(inp["offset"]));
1666
+ const query = q.toString();
1667
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1668
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof FileListAction>['list']>>;
1669
+ },
1670
+ // action: file.orphans
1671
+ async orphans() {
1672
+ const path = `/api/file/orphans`;
1673
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof FileOrphansAction>['orphans']>>;
1674
+ },
1675
+ // action: file.prune
1676
+ async filePrune(input?: z.input<typeof filePruneInput>) {
1677
+ const inp = input ?? ({} as z.input<typeof filePruneInput>);
1678
+ const path = `/api/file/prune`;
1679
+ const body = { "dry-run": inp["dry-run"], "dryRun": inp["dryRun"] };
1680
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof FilePruneAction>['prune']>>;
1681
+ },
1682
+ // action: file.remove
1683
+ async fileRemove(input: z.input<typeof fileRemoveInput>) {
1684
+ const inp = input ?? ({} as z.input<typeof fileRemoveInput>);
1685
+ const path = `/api/file/item`;
1686
+ const body = { "fileId": inp["fileId"], "group": inp["group"] };
1687
+ return (await transport.request("DELETE", path, body)) as Awaited<ReturnType<InstanceType<typeof FileRemoveAction>['remove']>>;
1688
+ },
1689
+ // action: file.sync
1690
+ async fileSync(input?: z.input<typeof fileSyncInput>) {
1691
+ const inp = input ?? ({} as z.input<typeof fileSyncInput>);
1692
+ const path = `/api/file/sync`;
1693
+ const body = { "ids": inp["ids"], "dir": inp["dir"], "prune": inp["prune"], "dryRun": inp["dryRun"], "group": inp["group"] };
1694
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof FileSyncAction>['sync']>>;
1695
+ },
1696
+ // action: file.upload
1697
+ async upload(input?: z.input<typeof fileUploadInput>) {
1698
+ const inp = input ?? ({} as z.input<typeof fileUploadInput>);
1699
+ const path = `/api/file`;
1700
+ const body = { "path": inp["path"], "content": inp["content"], "name": inp["name"], "contentType": inp["contentType"], "local": inp["local"], "accessLevel": inp["accessLevel"], "group": inp["group"] };
1701
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof FileUploadAction>['upload']>>;
1702
+ },
1703
+ // action: bundled.get
1704
+ async bundledGet(input?: z.input<typeof bundledGetInput>) {
1705
+ const inp = input ?? ({} as z.input<typeof bundledGetInput>);
1706
+ let path = `/api/bundled/content`;
1707
+ const q = new URLSearchParams();
1708
+ if (inp["name"] !== undefined) q.set("name", String(inp["name"]));
1709
+ if (inp["ref"] !== undefined) q.set("ref", String(inp["ref"]));
1710
+ if (inp["group"] !== undefined) q.set("group", String(inp["group"]));
1711
+ if (inp["to"] !== undefined) q.set("to", String(inp["to"]));
1712
+ const query = q.toString();
1713
+ if (query) path += path.includes('?') ? '&' + query : '?' + query;
1714
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BundledGetAction>['get']>>;
1715
+ },
1716
+ // action: bundled.groups
1717
+ async groups() {
1718
+ const path = `/api/bundled/groups`;
1719
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BundledGroupsAction>['groups']>>;
1720
+ },
1721
+ // action: bundled.install
1722
+ async install(input?: z.input<typeof bundledInstallInput>) {
1723
+ const inp = input ?? ({} as z.input<typeof bundledInstallInput>);
1724
+ const path = `/api/bundled/install`;
1725
+ const body = { "name": inp["name"], "group": inp["group"], "to": inp["to"], "force": inp["force"], "all": inp["all"] };
1726
+ return (await transport.request("POST", path, body)) as Awaited<ReturnType<InstanceType<typeof BundledInstallAction>['install']>>;
1727
+ },
1728
+ // action: bundled.list
1729
+ async bundledList() {
1730
+ const path = `/api/bundled`;
1731
+ return (await transport.request("GET", path)) as Awaited<ReturnType<InstanceType<typeof BundledListAction>['list']>>;
1732
+ },
1733
+ };
1734
+ }