nx-kv 0.65.3 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/README.md +15 -37
- package/assets/nx-kv/QUICKSTART.md +110 -0
- package/assets/nx-kv/SKILL.md +7 -2
- package/assets/nx-kv/references/A02-/346/217/220/344/272/244/344/273/273/345/212/241.md +59 -4
- package/assets/nx-kv/references/A05-/344/273/273/345/212/241/351/223/276/344/270/216/345/217/215/351/246/210/346/261/207/346/200/273.md +1 -1
- package/assets/nx-kv/references/A06-/345/217/202/350/200/203/344/273/223/345/272/223/351/251/261/345/212/250/347/232/204/345/274/200/345/217/221.md +143 -0
- package/assets/nx-kv/references/A07-/344/273/273/345/212/241/351/223/276/345/233/236/351/241/276/344/270/216/346/243/200/347/264/242.md +86 -0
- package/assets/nx-kv/references/B02-CLI/351/200/237/346/237/245.md +1 -2
- package/package.json +2 -2
- package/src/core/config.ts +72 -0
- package/src/core/db/driver.ts +1 -1
- package/src/core/db/migrations/index.ts +2 -0
- package/src/core/db/migrations/v14.sql +37 -0
- package/src/core/db/version.ts +1 -1
- package/src/core/instruction-template.ts +1 -1
- package/src/core/workflow/project.ts +1 -1
- package/src/core/workflow/types.ts +2 -2
- package/src/modules/bundled/actions/_manifest.generated.ts +12 -12
- package/src/modules/bundled/actions/{bundled-get.ts → skill-get.ts} +4 -4
- package/src/modules/bundled/actions/{bundled-groups.ts → skill-groups.ts} +4 -4
- package/src/modules/bundled/actions/{bundled-install.ts → skill-install.ts} +4 -4
- package/src/modules/bundled/actions/{bundled-list.ts → skill-list.ts} +4 -4
- package/src/modules/claim/actions/_manifest.generated.ts +3 -6
- package/src/modules/claim/actions/{localtask-claim.ts → localtask-get.ts} +18 -9
- package/src/modules/claim/actions/localtask-preview.ts +2 -2
- package/src/modules/{delivery → claim}/assemble.ts +3 -3
- package/src/modules/claim/get.ts +3 -4
- package/src/modules/{delivery → claim}/groupctx.ts +4 -7
- package/src/modules/{delivery → claim}/host.ts +4 -4
- package/src/modules/claim/index.ts +2 -2
- package/src/modules/claim/panel-escort.ts +2 -2
- package/src/modules/claim/params.ts +2 -2
- package/src/modules/{delivery → claim}/preview.ts +3 -3
- package/src/modules/claim/wait.ts +19 -19
- package/src/modules/claim/waitgoal-config.ts +1 -22
- package/src/modules/docs/actions/_manifest.generated.ts +49 -37
- package/src/modules/docs/actions/{doc-attach.ts → docs-attach.ts} +4 -4
- package/src/modules/docs/actions/{doc-attachments.ts → docs-attachments.ts} +4 -4
- package/src/modules/docs/actions/{doc-detach.ts → docs-detach.ts} +4 -4
- package/src/modules/docs/actions/{doc-get.ts → docs-get.ts} +4 -4
- package/src/modules/docs/actions/{doc-link-file.ts → docs-link-file.ts} +3 -3
- package/src/modules/docs/actions/{doc-list.ts → docs-list.ts} +4 -4
- package/src/modules/docs/actions/{doc-mdfile.ts → docs-mdfile.ts} +3 -3
- package/src/modules/docs/actions/{doc-mdfiles.ts → docs-mdfiles.ts} +3 -3
- package/src/modules/docs/actions/{docs-notebind.ts → docs-note-bind.ts} +3 -3
- package/src/modules/docs/actions/{doc-ref.ts → docs-ref.ts} +4 -4
- package/src/modules/docs/actions/{doc-remove.ts → docs-remove.ts} +4 -4
- package/src/modules/docs/actions/{doc-update.ts → docs-set.ts} +4 -4
- package/src/modules/docs/actions/{doc-unbind.ts → docs-unbind.ts} +4 -4
- package/src/modules/{repos → docs}/actions/repo-doc-add.ts +3 -2
- package/src/modules/{repos → docs}/actions/repo-doc-list.ts +3 -2
- package/src/modules/{repos → docs}/actions/repo-doc-remove.ts +3 -2
- package/src/modules/{repos → docs}/actions/repo-knowledge.ts +3 -2
- package/src/modules/docs/host-scrub.ts +1 -1
- package/src/modules/docs/index.ts +1 -1
- package/src/modules/docs/knowledge.ts +8 -16
- package/src/modules/goals/actions/timegoal-check.ts +1 -1
- package/src/modules/goals/actions/timegoal-clear.ts +1 -1
- package/src/modules/goals/actions/timegoal-list.ts +1 -1
- package/src/modules/goals/actions/timegoal-log.ts +1 -1
- package/src/modules/goals/actions/timegoal-set.ts +1 -1
- package/src/modules/goals/actions/timegoal-show.ts +1 -1
- package/src/modules/goals/actions/timegoal-update.ts +1 -1
- package/src/modules/goals/plugins/timegoal-cwd-store.ts +1 -1
- package/src/modules/goals/plugins/timegoal-store.ts +3 -3
- package/src/modules/goals/plugins/timegoal-task-store.ts +2 -2
- package/src/modules/{localtask → goals}/support.ts +3 -1
- package/src/modules/localtask/actions/_manifest.generated.ts +14 -14
- package/src/modules/localtask/actions/localtask-add.ts +3 -3
- package/src/modules/localtask/actions/localtask-attach-note.ts +1 -1
- package/src/modules/localtask/actions/localtask-attach.ts +1 -1
- package/src/modules/localtask/actions/localtask-attachments.ts +2 -2
- package/src/modules/localtask/actions/{localtask-cancelMany.ts → localtask-cancel-many.ts} +3 -3
- package/src/modules/localtask/actions/localtask-cancel.ts +1 -1
- package/src/modules/localtask/actions/localtask-chain.ts +1 -1
- package/src/modules/localtask/actions/{localtask-closeMany.ts → localtask-close-many.ts} +3 -3
- package/src/modules/localtask/actions/localtask-detach.ts +2 -2
- package/src/modules/localtask/actions/localtask-done.ts +1 -1
- package/src/modules/localtask/actions/localtask-list.ts +1 -1
- package/src/modules/localtask/actions/{localtask-removeMany.ts → localtask-remove-many.ts} +3 -3
- package/src/modules/localtask/actions/localtask-reopen.ts +5 -5
- package/src/modules/localtask/actions/{localtask-get.ts → localtask-show.ts} +17 -8
- package/src/modules/localtask/actions/localtask-tasks.ts +19 -4
- package/src/modules/localtask/actions/{localtask-timegoalLog.ts → localtask-timegoal-log.ts} +3 -3
- package/src/modules/localtask/actions/{localtask-topic-removeMany.ts → localtask-topic-remove-many.ts} +4 -4
- package/src/modules/localtask/actions/localtask-update.ts +2 -2
- package/src/modules/localtask/{bus → infra/bus}/index.ts +1 -1
- package/src/modules/localtask/{engine.ts → infra/engine.ts} +1 -1
- package/src/modules/localtask/{events.ts → infra/events.ts} +3 -3
- package/src/modules/localtask/{mutator → infra/mutator}/index.ts +2 -2
- package/src/modules/localtask/{mutator → infra/mutator}/validate.ts +4 -4
- package/src/modules/localtask/{repo → infra/repo}/goals.ts +2 -2
- package/src/modules/localtask/{repo → infra/repo}/index.ts +1 -1
- package/src/modules/localtask/{repo → infra/repo}/links.ts +3 -3
- package/src/modules/localtask/{repo → infra/repo}/open.ts +4 -4
- package/src/modules/localtask/{repo → infra/repo}/presence.ts +1 -1
- package/src/modules/localtask/{repo → infra/repo}/rows.ts +1 -1
- package/src/modules/localtask/{repo → infra/repo}/settings.ts +9 -6
- package/src/modules/localtask/{repo → infra/repo}/snapshot.ts +9 -7
- package/src/modules/localtask/{repo → infra/repo}/tasks.ts +82 -4
- package/src/modules/localtask/{repo → infra/repo}/topics.ts +3 -3
- package/src/modules/localtask/{repo-ctx.ts → infra/repo-ctx.ts} +1 -1
- package/src/modules/localtask/{scheduler → infra/scheduler}/index.ts +1 -1
- package/src/modules/localtask/{scheduler → infra/scheduler}/state-drive.ts +4 -4
- package/src/modules/localtask/{store → infra/store}/file-adapter.ts +2 -2
- package/src/modules/localtask/{store → infra/store}/index.ts +4 -4
- package/src/modules/localtask/{store → infra/store}/memory-adapter.ts +2 -2
- package/src/modules/localtask/{store-io.ts → infra/store-io.ts} +1 -1
- package/src/modules/localtask/{writes.ts → infra/writes.ts} +3 -3
- package/src/modules/localtask/{add.ts → lifecycle/add.ts} +5 -5
- package/src/modules/localtask/{deletion.ts → lifecycle/deletion.ts} +4 -4
- package/src/modules/localtask/{task-lifecycle.ts → lifecycle/task-lifecycle.ts} +27 -24
- package/src/modules/localtask/{task-ops.ts → lifecycle/task-ops.ts} +19 -18
- package/src/modules/localtask/{task-remove.ts → lifecycle/task-remove.ts} +5 -5
- package/src/modules/localtask/{task-templates.ts → lifecycle/task-templates.ts} +2 -2
- package/src/modules/localtask/{task-view.ts → lifecycle/task-view.ts} +39 -13
- package/src/modules/localtask/{topics.ts → lifecycle/topics.ts} +7 -7
- package/src/modules/localtask/{update.ts → lifecycle/update.ts} +5 -5
- package/src/modules/{delivery → localtask/ops}/attach-resource.ts +4 -4
- package/src/modules/{delivery → localtask/ops}/attach-template.ts +3 -3
- package/src/modules/{delivery → localtask/ops}/attach.ts +11 -11
- package/src/modules/localtask/{board-target.ts → ops/board-target.ts} +1 -1
- package/src/modules/{delivery → localtask/ops}/doc-inline.ts +3 -3
- package/src/modules/localtask/{group-store.ts → ops/group-store.ts} +1 -1
- package/src/modules/localtask/service.ts +16 -16
- package/src/modules/localtask/{action-render.ts → ui/action-render.ts} +18 -4
- package/src/modules/localtask/{contract-views.ts → ui/contract-views.ts} +9 -4
- package/src/modules/localtask/{panel-guard.ts → ui/panel-guard.ts} +1 -1
- package/src/modules/localtask/{panel-presence.ts → ui/panel-presence.ts} +6 -6
- package/src/modules/localtask/waiters.ts +2 -2
- package/src/modules/localtask/waiting.ts +1 -1
- package/src/modules/promptplug/factory.ts +2 -2
- package/src/modules/promptplug/index.ts +5 -5
- package/src/modules/promptplug/plugins/attachment.ts +1 -1
- package/src/modules/promptplug/plugins/context.ts +9 -20
- package/src/modules/promptplug/plugins/goal-prompt.ts +1 -1
- package/src/modules/promptplug/template-store.ts +163 -58
- package/src/modules/repos/actions/_manifest.generated.ts +0 -12
- package/src/modules/repos/service/crud.ts +1 -1
- package/src/modules/setting/actions/setting-set.ts +1 -0
- package/src/modules/setting/service.ts +15 -1
- package/src/modules/templates/actions/_manifest.generated.ts +18 -18
- package/src/modules/templates/actions/{templates-add.ts → template-add.ts} +4 -4
- package/src/modules/templates/actions/{templates-default.ts → template-default.ts} +4 -4
- package/src/modules/templates/actions/{templates-list.ts → template-list.ts} +4 -4
- package/src/modules/templates/actions/{templates-remove.ts → template-remove.ts} +4 -4
- package/src/modules/templates/actions/{templates-reorder.ts → template-reorder.ts} +4 -4
- package/src/modules/templates/actions/{templates-update.ts → template-update.ts} +4 -4
- package/src/runtime/cli.ts +1 -1
- package/src/runtime/registry.ts +0 -2
- package/src/{modules/delivery → shared}/delivery-text.ts +5 -4
- package/src/shared/feedback-text.ts +80 -20
- package/src/shared/task-status.ts +42 -0
- package/src/web/frontend/App.tsx +10 -9
- package/src/web/frontend/api/cli-tree.json +307 -322
- package/src/web/frontend/api/client.generated.ts +285 -283
- package/src/web/frontend/components/doc/doc-head.tsx +1 -1
- package/src/web/frontend/components/layout/crumbs.ts +3 -9
- package/src/web/frontend/components/md/{attach-area.tsx → attachments/attach-area.tsx} +5 -5
- package/src/web/frontend/components/md/{attach-bar.tsx → attachments/attach-bar.tsx} +1 -1
- package/src/web/frontend/components/md/{attach-common.ts → attachments/attach-common.ts} +1 -1
- package/src/web/frontend/components/md/{attach-modal.tsx → attachments/attach-modal.tsx} +4 -4
- package/src/web/frontend/components/md/{attach-picker.tsx → attachments/attach-picker.tsx} +4 -4
- package/src/web/frontend/components/md/{attachments.ts → attachments/attachments.ts} +1 -1
- package/src/web/frontend/components/md/{composer-launch.ts → composer/composer-launch.ts} +3 -3
- package/src/web/frontend/components/md/{composer-panel.tsx → composer/composer-panel.tsx} +12 -12
- package/src/web/frontend/components/md/{use-live-preview.ts → hooks/use-live-preview.ts} +8 -8
- package/src/web/frontend/components/md/{use-slash-menu.ts → hooks/use-slash-menu.ts} +4 -4
- package/src/web/frontend/components/md/{use-source-editor.ts → hooks/use-source-editor.ts} +7 -7
- package/src/web/frontend/components/md/{sel-menu.tsx → menus/sel-menu.tsx} +1 -1
- package/src/web/frontend/components/md/model/autolink-angle/index.ts +20 -0
- package/src/web/frontend/components/md/model/code/index.ts +30 -0
- package/src/web/frontend/components/md/model/divider/index.ts +19 -0
- package/src/web/frontend/components/md/model/emphasis/index.ts +21 -0
- package/src/web/frontend/components/md/model/escape/index.ts +35 -0
- package/src/web/frontend/components/md/model/footnote/index.ts +77 -0
- package/src/web/frontend/components/md/model/heading/index.ts +19 -0
- package/src/web/frontend/components/md/model/highlight/index.ts +10 -0
- package/src/web/frontend/components/md/model/image/index.ts +31 -0
- package/src/web/frontend/components/md/model/inline-scan.ts +47 -0
- package/src/web/frontend/components/md/model/link-ref/index.ts +41 -0
- package/src/web/frontend/components/md/model/list-common.ts +97 -0
- package/src/web/frontend/components/md/model/math/index.ts +70 -0
- package/src/web/frontend/components/md/model/math/latex.ts +106 -0
- package/src/web/frontend/components/md/model/ordered-list/index.ts +27 -0
- package/src/web/frontend/components/md/model/paragraph/index.ts +19 -0
- package/src/web/frontend/components/md/model/quote/index.ts +63 -0
- package/src/web/frontend/components/md/model/registry.ts +74 -0
- package/src/web/frontend/components/md/model/table/index.ts +100 -0
- package/src/web/frontend/components/md/model/types.ts +92 -0
- package/src/web/frontend/components/md/model/unordered-list/index.ts +37 -0
- package/src/web/frontend/components/md/{live-block.tsx → panes/live-block.tsx} +3 -3
- package/src/web/frontend/components/md/{md-panes-helpers.ts → panes/md-panes-helpers.ts} +15 -4
- package/src/web/frontend/components/md/{md-panes-keys.ts → panes/md-panes-keys.ts} +3 -3
- package/src/web/frontend/components/md/{md-panes-root.tsx → panes/md-panes-root.tsx} +2 -2
- package/src/web/frontend/components/md/{md-panes.tsx → panes/md-panes.tsx} +12 -12
- package/src/web/frontend/components/md/{ack-rail.tsx → rails/ack-rail.tsx} +2 -2
- package/src/web/frontend/components/md/{block-rail.tsx → rails/block-rail.tsx} +2 -2
- package/src/web/frontend/components/md/{doc-outline-rail.tsx → rails/doc-outline-rail.tsx} +1 -1
- package/src/web/frontend/components/md/{shortcut-sheet.tsx → shell/shortcut-sheet.tsx} +1 -1
- package/src/web/frontend/components/md/{tool-bar.tsx → shell/tool-bar.tsx} +5 -7
- package/src/web/frontend/components/md/standalone/task-chain-graph.tsx +194 -0
- package/src/web/frontend/components/md/{task-chain.tsx → standalone/task-chain.tsx} +34 -11
- package/src/web/frontend/components/md/{template-editor.tsx → standalone/template-editor.tsx} +2 -2
- package/src/web/frontend/components/repos/get-loop-members.tsx +54 -0
- package/src/web/frontend/components/repos/get-loop-modal.tsx +6 -4
- package/src/web/frontend/components/sidebar/brand-row.tsx +30 -0
- package/src/web/frontend/components/sidebar/drag.ts +53 -1
- package/src/web/frontend/components/sidebar/index.tsx +121 -62
- package/src/web/frontend/components/sidebar/model.ts +102 -7
- package/src/web/frontend/components/sidebar/ns-add-modal.tsx +81 -0
- package/src/web/frontend/components/sidebar/ns-dialogs.tsx +67 -0
- package/src/web/frontend/components/sidebar/ns-manage-modal.tsx +56 -0
- package/src/web/frontend/components/sidebar/ns-modal.tsx +58 -0
- package/src/web/frontend/components/sidebar/ns-observe-modal.tsx +36 -0
- package/src/web/frontend/components/sidebar/ns-picker.tsx +134 -0
- package/src/web/frontend/components/sidebar/ns-row.tsx +70 -0
- package/src/web/frontend/components/sidebar/row-menu.tsx +39 -5
- package/src/web/frontend/components/sidebar/search-row.tsx +37 -0
- package/src/web/frontend/components/sidebar/use-ns.ts +178 -0
- package/src/web/frontend/components/sidebar/use-sidebar-ns.ts +64 -0
- package/src/web/frontend/components/task-panel/task-row.tsx +26 -0
- package/src/web/frontend/components/tool-acts/bar.tsx +7 -7
- package/src/web/frontend/components/tool-acts/modules.ts +7 -4
- package/src/web/frontend/components/use-rail-drag.ts +1 -1
- package/src/web/frontend/modules/board/ack-nodes.ts +11 -14
- package/src/web/frontend/modules/board/ack-rail-pos.ts +1 -1
- package/src/web/frontend/modules/board/reopen-text.ts +5 -0
- package/src/web/frontend/modules/board/task-search.ts +43 -0
- package/src/web/frontend/modules/md/attach-mention.ts +2 -2
- package/src/web/frontend/modules/md/doc-store.ts +2 -2
- package/src/web/frontend/modules/md/md-blocks.ts +18 -1
- package/src/web/frontend/modules/md/md-edit-ops.ts +18 -3
- package/src/web/frontend/modules/md/md-render.ts +108 -179
- package/src/web/frontend/modules/md/styles/docs.css +89 -0
- package/src/web/frontend/modules/md/styles/editor.css +33 -7
- package/src/web/frontend/modules/md/styles/panels.css +107 -2
- package/src/web/frontend/page/dir/landing.tsx +35 -0
- package/src/web/frontend/page/dir/task-actions.ts +2 -2
- package/src/web/frontend/page/dir/task-chain.ts +5 -2
- package/src/web/frontend/page/dir/task-dock-panel.tsx +19 -28
- package/src/web/frontend/page/dir/task-feedback.ts +4 -4
- package/src/web/frontend/page/dir/task-utils.ts +19 -3
- package/src/web/frontend/page/dir/task.tsx +16 -13
- package/src/web/frontend/page/doc/doc-dock.tsx +1 -1
- package/src/web/frontend/page/doc/index.tsx +4 -4
- package/src/web/frontend/page/group/index.tsx +47 -2
- package/src/web/frontend/page/progress/api.ts +5 -0
- package/src/web/frontend/page/progress/chain-view.tsx +108 -0
- package/src/web/frontend/page/progress/index.tsx +210 -152
- package/src/web/frontend/page/repos/index.tsx +0 -11
- package/src/web/frontend/page/repos/repo-table.tsx +1 -20
- package/src/web/frontend/page/settings/api.ts +0 -4
- package/src/web/frontend/page/settings/index.tsx +1 -12
- package/src/web/frontend/page/settings/prompt-template-editor.tsx +1 -1
- package/src/web/frontend/page/settings/prompt-templates-section.tsx +1 -1
- package/src/web/frontend/page/templates/index.tsx +3 -3
- package/src/web/frontend/page/templates/manage.tsx +1 -1
- package/src/web/frontend/panels.tsx +2 -8
- package/src/web/frontend/prefs.ts +4 -3
- package/src/web/frontend/registry.ts +0 -1
- package/src/web/frontend/routes/index.ts +1 -2
- package/src/web/frontend/routes/static.ts +0 -1
- package/src/web/frontend/styles-v2/dag.css +17 -2
- package/src/web/frontend/styles-v2/dir.css +0 -36
- package/src/web/frontend/styles-v2/sidebar.css +92 -1
- package/src/web/frontend/types.ts +22 -1
- package/src/web/frontend/use-ns-persist.ts +63 -0
- package/src/web/frontend/workspace/areas.ts +1 -3
- package/src/web/frontend/workspace/panels.ts +1 -1
- package/src/web/public/assets/bar-Dy_QDX2h.js +1 -0
- package/src/web/public/assets/board-view-Cm8189wG.js +1 -0
- package/src/web/public/assets/composer-launch-B7DH53Yf.js +1 -0
- package/src/web/public/assets/composer-panel-CWFFEe5a.js +1 -0
- package/src/web/public/assets/dag-DjtLPr3j.js +1 -0
- package/src/web/public/assets/dir-DPboO_1M.js +3 -0
- package/src/web/public/assets/doc-_iteSM2X.js +6 -0
- package/src/web/public/assets/get-loop-modal-BW2dD9kv.js +2 -0
- package/src/web/public/assets/group-UEOT29Zq.js +1 -0
- package/src/web/public/assets/index-BpNXBbNQ.css +1 -0
- package/src/web/public/assets/index-BxrcTrww.js +3 -0
- package/src/web/public/assets/md-history-Bj790fdn.js +46 -0
- package/src/web/public/assets/progress-MPse2JLQ.js +3 -0
- package/src/web/public/assets/refs-DiIPoqnJ.js +2 -0
- package/src/web/public/assets/{repo-form-modal-Dg3hJWUV.js → repo-form-modal-CNLYR12c.js} +1 -1
- package/src/web/public/assets/repos-BGx-yAXd.js +12 -0
- package/src/web/public/assets/route-crumb-DX9C4jmQ.js +1 -0
- package/src/web/public/assets/settings-buy_qJGW.js +1 -0
- package/src/web/public/assets/task-DHlwHURz.js +13 -0
- package/src/web/public/assets/task-status-Cjsm0xF7.js +7 -0
- package/src/web/public/assets/task-utils-CJfMODCP.js +13 -0
- package/src/web/public/assets/templates-DdMaVWok.js +10 -0
- package/src/web/public/assets/tool-bar-D5wLBLRl.js +28 -0
- package/src/web/public/assets/use-rail-drag-CNOHXWng.js +1 -0
- package/src/web/public/index.html +11 -13
- package/src/modules/claim/actions/localtask-wait.ts +0 -41
- package/src/modules/delivery/index.ts +0 -18
- package/src/web/frontend/modules/md/progress-chain.ts +0 -34
- package/src/web/frontend/page/overview/api.ts +0 -29
- package/src/web/frontend/page/overview/index.tsx +0 -378
- package/src/web/frontend/page/settings/sidebar-section.tsx +0 -75
- package/src/web/public/assets/bar-Dc5Tq1eE.js +0 -1
- package/src/web/public/assets/board-view-BVennxTs.js +0 -1
- package/src/web/public/assets/composer-launch-fp2IzGzQ.js +0 -1
- package/src/web/public/assets/composer-panel-Dh681iO6.js +0 -1
- package/src/web/public/assets/dag-DnaU0I_z.js +0 -1
- package/src/web/public/assets/dir-d16q1GLe.js +0 -3
- package/src/web/public/assets/doc-DRSKD0Re.js +0 -6
- package/src/web/public/assets/frontmatter-CN6IlxWU.js +0 -2
- package/src/web/public/assets/group-Dc3ZgW24.js +0 -1
- package/src/web/public/assets/index-BIVxGd6t.css +0 -1
- package/src/web/public/assets/index-Bg0m8gbJ.js +0 -2
- package/src/web/public/assets/md-history-DNtgaIdH.js +0 -39
- package/src/web/public/assets/md-parse-C9Vd6ejP.js +0 -2
- package/src/web/public/assets/model-CtG2jIDv.js +0 -2
- package/src/web/public/assets/overview-C68QpcT9.js +0 -1
- package/src/web/public/assets/progress-CEmAFxo9.js +0 -3
- package/src/web/public/assets/refs-TzxZYy7T.js +0 -2
- package/src/web/public/assets/repos-uNqSR5YB.js +0 -12
- package/src/web/public/assets/route-crumb-C4DgkJ8G.js +0 -1
- package/src/web/public/assets/settings-BzIllshQ.js +0 -1
- package/src/web/public/assets/status-tag-8cLH8hl9.js +0 -1
- package/src/web/public/assets/task-DuFOXLPC.js +0 -11
- package/src/web/public/assets/task-row-CRjuAfKW.js +0 -1
- package/src/web/public/assets/task-utils-DAPxKm4c.js +0 -12
- package/src/web/public/assets/templates-DNiGvmdq.js +0 -10
- package/src/web/public/assets/use-rail-drag-DxIYcszo.js +0 -1
- package/src/web/public/assets/workspace-DojQ3RP4.js +0 -28
- /package/src/modules/localtask/{store → infra/store}/topic-adapter.ts +0 -0
- /package/src/modules/localtask/{action-flags.ts → ui/action-flags.ts} +0 -0
- /package/src/web/frontend/components/md/{use-block-drag.ts → hooks/use-block-drag.ts} +0 -0
- /package/src/web/frontend/components/md/{slash-menu.tsx → menus/slash-menu.tsx} +0 -0
- /package/src/web/frontend/components/md/{doc-keys.ts → panes/doc-keys.ts} +0 -0
- /package/src/web/frontend/components/md/{find-bar.tsx → shell/find-bar.tsx} +0 -0
- /package/src/web/frontend/components/md/{status-bar.tsx → shell/status-bar.tsx} +0 -0
- /package/src/web/public/assets/{md-history-CLIs9Dr0.css → tool-bar-CLIs9Dr0.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// docs.ref.unbind —— 解绑一条直接 ref 的归属(不删 ref、不删正文)。
|
|
2
2
|
//
|
|
3
3
|
// 派生绑定(既有文档由 ext 推导)不在这里处理:摘除仍走宿主的文档集接口。
|
|
4
4
|
import { action } from '../../../runtime/action-decorator.js';
|
|
@@ -8,7 +8,7 @@ import { unbindRef as _unbindRef } from '../service.js';
|
|
|
8
8
|
|
|
9
9
|
const unbindRef: any = _unbindRef;
|
|
10
10
|
|
|
11
|
-
/**
|
|
11
|
+
/** docs.ref.unbind 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
12
12
|
const input = z.object({
|
|
13
13
|
ref: z.string().describe('refId(ref_…)'),
|
|
14
14
|
type: z.enum(['repo', 'group', 'group_repo']).describe('归属类型'),
|
|
@@ -16,9 +16,9 @@ const input = z.object({
|
|
|
16
16
|
group: z.string().optional().describe('组 key(type=group_repo 时必填)'),
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
export class
|
|
19
|
+
export class DocsRefUnbindAction extends ActionBase<typeof input> {
|
|
20
20
|
@action({
|
|
21
|
-
id: '
|
|
21
|
+
id: 'docs.ref.unbind',
|
|
22
22
|
cli: ['docs', 'ref', 'unbind'],
|
|
23
23
|
http: ['POST', '/api/docs/unbind'],
|
|
24
24
|
summary: '解绑直接 ref 的归属(不删文档;没有归属后回到 orphan)',
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
// repo.doc.add ——
|
|
1
|
+
// repo.doc.add —— 2026-11-19 归位到 docs 域(实现在 docs/refs.ts 与 docs/knowledge.ts,
|
|
2
|
+
// 此前声明留在 repos 造成 repos→docs 的跨域依赖)。action id / cli / http 契约不变。
|
|
2
3
|
//
|
|
3
4
|
// 契约(zod schema)就声明在本文件里——入参类型由基类泛型模板封装;本文件只做「声明 + 实现」,业务在服务层。
|
|
4
5
|
import { action } from '../../../runtime/action-decorator.js';
|
|
5
6
|
import { z } from 'zod';
|
|
6
7
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
|
-
import { addRepoDoc as _addRepoDoc } from '
|
|
8
|
+
import { addRepoDoc as _addRepoDoc } from '../refs.js';
|
|
8
9
|
const addRepoDoc: any = _addRepoDoc;
|
|
9
10
|
|
|
10
11
|
/** repo.doc.add 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
// repo.doc.list ——
|
|
1
|
+
// repo.doc.list —— 2026-11-19 归位到 docs 域(实现在 docs/refs.ts 与 docs/knowledge.ts,
|
|
2
|
+
// 此前声明留在 repos 造成 repos→docs 的跨域依赖)。action id / cli / http 契约不变。
|
|
2
3
|
//
|
|
3
4
|
// 契约(zod schema)就声明在本文件里——入参类型由基类泛型模板封装;本文件只做「声明 + 实现」,业务在服务层。
|
|
4
5
|
import { action } from '../../../runtime/action-decorator.js';
|
|
5
6
|
import { z } from 'zod';
|
|
6
7
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
|
-
import { listRepoDocs as _listRepoDocs } from '
|
|
8
|
+
import { listRepoDocs as _listRepoDocs } from '../refs.js';
|
|
8
9
|
const listRepoDocs: any = _listRepoDocs;
|
|
9
10
|
|
|
10
11
|
/** repo.doc.list 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
// repo.doc.remove ——
|
|
1
|
+
// repo.doc.remove —— 2026-11-19 归位到 docs 域(实现在 docs/refs.ts 与 docs/knowledge.ts,
|
|
2
|
+
// 此前声明留在 repos 造成 repos→docs 的跨域依赖)。action id / cli / http 契约不变。
|
|
2
3
|
//
|
|
3
4
|
// 契约(zod schema)就声明在本文件里——入参类型由基类泛型模板封装;本文件只做「声明 + 实现」,业务在服务层。
|
|
4
5
|
import { action } from '../../../runtime/action-decorator.js';
|
|
5
6
|
import { z } from 'zod';
|
|
6
7
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
|
-
import { removeRepoDoc as _removeRepoDoc } from '
|
|
8
|
+
import { removeRepoDoc as _removeRepoDoc } from '../refs.js';
|
|
8
9
|
const removeRepoDoc: any = _removeRepoDoc;
|
|
9
10
|
|
|
10
11
|
/** repo.doc.remove 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
// repo.knowledge ——
|
|
1
|
+
// repo.knowledge —— 2026-11-19 归位到 docs 域(实现在 docs/refs.ts 与 docs/knowledge.ts,
|
|
2
|
+
// 此前声明留在 repos 造成 repos→docs 的跨域依赖)。action id / cli / http 契约不变。
|
|
2
3
|
//
|
|
3
4
|
// 契约(zod schema)就声明在本文件里——入参类型由基类泛型模板封装;本文件只做「声明 + 实现」,业务在服务层。
|
|
4
5
|
import { action } from '../../../runtime/action-decorator.js';
|
|
5
6
|
import { z } from 'zod';
|
|
6
7
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
|
-
import { repoKnowledge as _repoKnowledge } from '
|
|
8
|
+
import { repoKnowledge as _repoKnowledge } from '../knowledge.js';
|
|
8
9
|
const repoKnowledge: any = _repoKnowledge;
|
|
9
10
|
|
|
10
11
|
/** repo.knowledge 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// 留着悬空 refId 会让「项目介绍」看着有、实际读不到正文,文档列表也会多出空行。
|
|
6
6
|
//
|
|
7
7
|
// 两处会留下悬空引用:
|
|
8
|
-
// · `
|
|
8
|
+
// · `docs.remove` 删文档时(#132 修的就是这条:删除后宿主 ext 仍指着已删 ref);
|
|
9
9
|
// · `docs gc` 批量清空正文时(#114 起就有清理逻辑)。
|
|
10
10
|
// 所以清理逻辑抽到这里,两边共用一份口径。
|
|
11
11
|
import { reposBridge } from './repos-bridge.js';
|
|
@@ -11,7 +11,7 @@ export class DocsModule extends ModuleBase {
|
|
|
11
11
|
override readonly id = 'docs';
|
|
12
12
|
override readonly title = "文档(自有 md 树:项目/组介绍、组内描述、双链、外部只读绑定)";
|
|
13
13
|
override readonly order = 12;
|
|
14
|
-
override readonly resource = '
|
|
14
|
+
override readonly resource = 'docs';
|
|
15
15
|
|
|
16
16
|
override readonly actions: readonly ZodBoundAction[];
|
|
17
17
|
|
|
@@ -267,8 +267,9 @@ export async function repoKnowledge(locator?: string, { md = false }: { md?: boo
|
|
|
267
267
|
/**
|
|
268
268
|
* **项目组上下文**(交付层用):某个工作目录所属仓库所在的项目组材料。
|
|
269
269
|
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
270
|
+
* 只取交付时必须带上的部分——项目介绍、组定位、组介绍、兄弟成员、
|
|
271
|
+
* 组绑定参考文件的可读路径。(组内描述 note 已随模板上下文清理移除,
|
|
272
|
+
* 不再读绑定文档。)
|
|
272
273
|
*/
|
|
273
274
|
export async function groupContextFor(cwd: unknown, { board = '' }: { board?: string } = {}): Promise<GroupContextResult | null> {
|
|
274
275
|
const { loadStore, deriveKey, boardKeyOf, boardRepoKeys, normalizePathKey } = await reposBridge();
|
|
@@ -355,20 +356,13 @@ export async function groupContextFor(cwd: unknown, { board = '' }: { board?: st
|
|
|
355
356
|
body: '',
|
|
356
357
|
};
|
|
357
358
|
});
|
|
358
|
-
//
|
|
359
|
-
const
|
|
360
|
-
const noteOwn = noteDocs[0] || null;
|
|
361
|
-
// 兄弟成员(组内各仓库的组内描述)
|
|
362
|
-
const peers: Array<{ name: string; note: string; path: string }> = [];
|
|
359
|
+
// 兄弟成员(组内各仓库;组内描述 note 已移除,不再逐成员读绑定文档)
|
|
360
|
+
const peers: Array<{ name: string; path: string }> = [];
|
|
363
361
|
for (const mkey of members) {
|
|
364
|
-
const mr = s.repos.find((x: any) => deriveKey(x) === mkey);
|
|
365
|
-
const mname = mr ? mr.name : mkey;
|
|
366
362
|
if (mkey === rk) continue;
|
|
367
|
-
const
|
|
368
|
-
const peer = peerDocs[0];
|
|
363
|
+
const mr = s.repos.find((x: any) => deriveKey(x) === mkey);
|
|
369
364
|
peers.push({
|
|
370
|
-
name:
|
|
371
|
-
note: (peer && peer.body) || '',
|
|
365
|
+
name: mr ? mr.name : mkey,
|
|
372
366
|
path: (mr && mr.path) || '',
|
|
373
367
|
});
|
|
374
368
|
}
|
|
@@ -378,7 +372,6 @@ export async function groupContextFor(cwd: unknown, { board = '' }: { board?: st
|
|
|
378
372
|
desc: b.desc || '',
|
|
379
373
|
intro,
|
|
380
374
|
introSet: { main: null, extras: [], count: 0 },
|
|
381
|
-
note: (noteOwn && noteOwn.body) || '',
|
|
382
375
|
peers,
|
|
383
376
|
docLinks,
|
|
384
377
|
refRepos: (Array.isArray(b.refs) ? b.refs : []).map((l: any) => refRepoItemOf(l.id)).filter(Boolean) as Array<{ key: string; name: string; path: string }>,
|
|
@@ -406,8 +399,7 @@ export interface GroupContextGroup {
|
|
|
406
399
|
desc: string;
|
|
407
400
|
intro: ContextIntro;
|
|
408
401
|
introSet: IntroSet;
|
|
409
|
-
|
|
410
|
-
peers: Array<{ name: string; path: string; note: string }>;
|
|
402
|
+
peers: Array<{ name: string; path: string }>;
|
|
411
403
|
docLinks: BoundDoc[];
|
|
412
404
|
refRepos: Array<{ key: string; name: string; path: string }>;
|
|
413
405
|
}
|
|
@@ -6,7 +6,7 @@ import { z } from 'zod';
|
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
7
|
import * as serviceNs from '../timegoal.js';
|
|
8
8
|
import { badInput as _badInput } from '../../../core/errors.js';
|
|
9
|
-
import { renderCheck } from '
|
|
9
|
+
import { renderCheck } from '../support.js';
|
|
10
10
|
const service: any = serviceNs;
|
|
11
11
|
const badInput: any = _badInput;
|
|
12
12
|
|
|
@@ -5,7 +5,7 @@ import { action } from '../../../runtime/action-decorator.js';
|
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
7
|
import * as serviceNs from '../timegoal.js';
|
|
8
|
-
import { renderClear } from '
|
|
8
|
+
import { renderClear } from '../support.js';
|
|
9
9
|
const service: any = serviceNs;
|
|
10
10
|
|
|
11
11
|
/** timegoal.clear 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
@@ -5,7 +5,7 @@ import { action } from '../../../runtime/action-decorator.js';
|
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
7
|
import * as serviceNs from '../timegoal.js';
|
|
8
|
-
import { renderList } from '
|
|
8
|
+
import { renderList } from '../support.js';
|
|
9
9
|
const service: any = serviceNs;
|
|
10
10
|
|
|
11
11
|
/** timegoal.list 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
@@ -5,7 +5,7 @@ import { action } from '../../../runtime/action-decorator.js';
|
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
7
|
import * as serviceNs from '../timegoal.js';
|
|
8
|
-
import { fmtDur } from '
|
|
8
|
+
import { fmtDur } from '../support.js';
|
|
9
9
|
const service: any = serviceNs;
|
|
10
10
|
|
|
11
11
|
/** timegoal.log 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
@@ -5,7 +5,7 @@ import { action } from '../../../runtime/action-decorator.js';
|
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
7
|
import * as serviceNs from '../timegoal.js';
|
|
8
|
-
import { renderSet } from '
|
|
8
|
+
import { renderSet } from '../support.js';
|
|
9
9
|
const service: any = serviceNs;
|
|
10
10
|
|
|
11
11
|
/** timegoal.set 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
@@ -6,7 +6,7 @@ import { z } from 'zod';
|
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
7
|
import * as serviceNs from '../timegoal.js';
|
|
8
8
|
import { badInput as _badInput } from '../../../core/errors.js';
|
|
9
|
-
import { renderShow } from '
|
|
9
|
+
import { renderShow } from '../support.js';
|
|
10
10
|
const service: any = serviceNs;
|
|
11
11
|
const badInput: any = _badInput;
|
|
12
12
|
|
|
@@ -5,7 +5,7 @@ import { action } from '../../../runtime/action-decorator.js';
|
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
7
|
import * as serviceNs from '../timegoal.js';
|
|
8
|
-
import { renderUpdate } from '
|
|
8
|
+
import { renderUpdate } from '../support.js';
|
|
9
9
|
const service: any = serviceNs;
|
|
10
10
|
|
|
11
11
|
/** timegoal.update 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
import { badInput } from '../../../core/errors.js';
|
|
15
15
|
import { readSettingRaw, writeSettingRaw, deleteSettingRaw, listSettingsByPrefix } from '../../../core/db/settings.js';
|
|
16
16
|
import { tx } from '../../../core/db/index.js';
|
|
17
|
-
import { db as ltDb } from '../../localtask/repo/open.js';
|
|
17
|
+
import { db as ltDb } from '../../localtask/infra/repo/open.js';
|
|
18
18
|
import { nowMs } from '../../../core/db/time.js';
|
|
19
19
|
import {
|
|
20
20
|
archiveRetentionSec,
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
// 模块边界:
|
|
26
26
|
// - 本族只 import core(db / errors / topic-key)与 localtask/repo/goals.js
|
|
27
27
|
// (叶子仓储,不构成环);localtask 反向引用本模块的出口在 taskgoal.js。
|
|
28
|
-
// -
|
|
28
|
+
// - 与领取流程互不感知:timegoal 不阻塞、不依赖面板是否存在,
|
|
29
29
|
// agent 按 `reached` 自行决定下一轮动作。
|
|
30
30
|
//
|
|
31
31
|
// 本文件是**对外入口**:实现按职责拆进同目录三个 *-store 文件,这里 re-export
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
import { tx } from '../../../core/db/index.js';
|
|
34
34
|
import { deleteSettingRaw, listSettingsByPrefix } from '../../../core/db/settings.js';
|
|
35
35
|
import { nowMs } from '../../../core/db/time.js';
|
|
36
|
-
import { db as ltDb } from '../../localtask/repo/open.js';
|
|
37
|
-
import * as goalsRepo from '../../localtask/repo/goals.js';
|
|
36
|
+
import { db as ltDb } from '../../localtask/infra/repo/open.js';
|
|
37
|
+
import * as goalsRepo from '../../localtask/infra/repo/goals.js';
|
|
38
38
|
import { evalTimegoal } from './timegoal-core-store.js';
|
|
39
39
|
import { CWD_GOAL_PREFIX, blobToGoalView } from './timegoal-cwd-store.js';
|
|
40
40
|
import { goalRowToGoal, goalRowToView } from './timegoal-task-store.js';
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
// goal_checks 行的 summary 存当轮总结(纯文本;旧库 JSON 编码在读取侧兼容,见 goals.js)。
|
|
8
8
|
import { badInput } from '../../../core/errors.js';
|
|
9
9
|
import { tx } from '../../../core/db/index.js';
|
|
10
|
-
import { db as ltDb } from '../../localtask/repo/open.js';
|
|
10
|
+
import { db as ltDb } from '../../localtask/infra/repo/open.js';
|
|
11
11
|
import { nowMs } from '../../../core/db/time.js';
|
|
12
|
-
import * as goalsRepo from '../../localtask/repo/goals.js';
|
|
12
|
+
import * as goalsRepo from '../../localtask/infra/repo/goals.js';
|
|
13
13
|
import {
|
|
14
14
|
TASK_GOAL_PROMPT_TEMPLATE,
|
|
15
15
|
customGoalPromptOf,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
//
|
|
1
|
+
// goals 模块的辅助函数/常量:timegoal 各 action 的人读渲染函数。
|
|
2
|
+
// 原在 localtask/support.ts(legacy 迁移时顺手放在那里),但 7 个导出只被 goals 用——
|
|
3
|
+
// 2026-11-19 归位到本域,消掉 goals→localtask 的 7 条静态依赖。
|
|
2
4
|
//
|
|
3
5
|
// 参数与返回值暂用宽松类型(迁移期),服务层类型化推进时逐个收紧。
|
|
4
6
|
export function renderSet(d: any) {
|
|
@@ -11,31 +11,31 @@ import { LocaltaskAttachNoteAction } from './localtask-attach-note.js';
|
|
|
11
11
|
import { LocaltaskAttachAction } from './localtask-attach.js';
|
|
12
12
|
import { LocaltaskAttachmentsAction } from './localtask-attachments.js';
|
|
13
13
|
import { LocaltaskBoardTasksAction } from './localtask-boardtasks.js';
|
|
14
|
+
import { LocaltaskCancelManyAction } from './localtask-cancel-many.js';
|
|
14
15
|
import { LocaltaskCancelAction } from './localtask-cancel.js';
|
|
15
|
-
import { LocaltaskCancelManyAction } from './localtask-cancelMany.js';
|
|
16
16
|
import { LocaltaskChainAction } from './localtask-chain.js';
|
|
17
17
|
import { LocaltaskCloneAction } from './localtask-clone.js';
|
|
18
|
-
import { LocaltaskCloseManyAction } from './localtask-
|
|
18
|
+
import { LocaltaskCloseManyAction } from './localtask-close-many.js';
|
|
19
19
|
import { LocaltaskConfigAction } from './localtask-config.js';
|
|
20
20
|
import { LocaltaskDetachAction } from './localtask-detach.js';
|
|
21
21
|
import { LocaltaskDoneAction } from './localtask-done.js';
|
|
22
22
|
import { LocaltaskEventsAction } from './localtask-events.js';
|
|
23
23
|
import { LocaltaskForkAction } from './localtask-fork.js';
|
|
24
|
-
import { LocaltaskGetAction } from './localtask-get.js';
|
|
25
24
|
import { LocaltaskListAction } from './localtask-list.js';
|
|
26
25
|
import { LocaltaskPlanAction } from './localtask-plan.js';
|
|
27
26
|
import { LocaltaskPresenceAction } from './localtask-presence.js';
|
|
28
27
|
import { LocaltaskPruneAction } from './localtask-prune.js';
|
|
28
|
+
import { LocaltaskRemoveManyAction } from './localtask-remove-many.js';
|
|
29
29
|
import { LocaltaskRemoveAction } from './localtask-remove.js';
|
|
30
|
-
import { LocaltaskRemoveManyAction } from './localtask-removeMany.js';
|
|
31
30
|
import { LocaltaskReopenAction } from './localtask-reopen.js';
|
|
32
31
|
import { LocaltaskReorderAction } from './localtask-reorder.js';
|
|
32
|
+
import { LocaltaskShowAction } from './localtask-show.js';
|
|
33
33
|
import { LocaltaskTaskRestoreAction } from './localtask-task-restore.js';
|
|
34
34
|
import { LocaltaskTasksAction } from './localtask-tasks.js';
|
|
35
|
-
import { LocaltaskTimegoalLogAction } from './localtask-
|
|
35
|
+
import { LocaltaskTimegoalLogAction } from './localtask-timegoal-log.js';
|
|
36
36
|
import { LocaltaskTopicAddAction } from './localtask-topic-add.js';
|
|
37
|
+
import { LocaltaskTopicRemoveManyAction } from './localtask-topic-remove-many.js';
|
|
37
38
|
import { LocaltaskTopicRemoveAction } from './localtask-topic-remove.js';
|
|
38
|
-
import { LocaltaskTopicRemoveManyAction } from './localtask-topic-removeMany.js';
|
|
39
39
|
import { LocaltaskUpdateAction } from './localtask-update.js';
|
|
40
40
|
|
|
41
41
|
/** 本模块的全部 action 类(容器按这个顺序建实例)。 */
|
|
@@ -45,8 +45,8 @@ export const ACTIONS: readonly (new (deps: Container) => ActionBase)[] = [
|
|
|
45
45
|
LocaltaskAttachAction,
|
|
46
46
|
LocaltaskAttachmentsAction,
|
|
47
47
|
LocaltaskBoardTasksAction,
|
|
48
|
-
LocaltaskCancelAction,
|
|
49
48
|
LocaltaskCancelManyAction,
|
|
49
|
+
LocaltaskCancelAction,
|
|
50
50
|
LocaltaskChainAction,
|
|
51
51
|
LocaltaskCloneAction,
|
|
52
52
|
LocaltaskCloseManyAction,
|
|
@@ -55,21 +55,21 @@ export const ACTIONS: readonly (new (deps: Container) => ActionBase)[] = [
|
|
|
55
55
|
LocaltaskDoneAction,
|
|
56
56
|
LocaltaskEventsAction,
|
|
57
57
|
LocaltaskForkAction,
|
|
58
|
-
LocaltaskGetAction,
|
|
59
58
|
LocaltaskListAction,
|
|
60
59
|
LocaltaskPlanAction,
|
|
61
60
|
LocaltaskPresenceAction,
|
|
62
61
|
LocaltaskPruneAction,
|
|
63
|
-
LocaltaskRemoveAction,
|
|
64
62
|
LocaltaskRemoveManyAction,
|
|
63
|
+
LocaltaskRemoveAction,
|
|
65
64
|
LocaltaskReopenAction,
|
|
66
65
|
LocaltaskReorderAction,
|
|
66
|
+
LocaltaskShowAction,
|
|
67
67
|
LocaltaskTaskRestoreAction,
|
|
68
68
|
LocaltaskTasksAction,
|
|
69
69
|
LocaltaskTimegoalLogAction,
|
|
70
70
|
LocaltaskTopicAddAction,
|
|
71
|
-
LocaltaskTopicRemoveAction,
|
|
72
71
|
LocaltaskTopicRemoveManyAction,
|
|
72
|
+
LocaltaskTopicRemoveAction,
|
|
73
73
|
LocaltaskUpdateAction,
|
|
74
74
|
];
|
|
75
75
|
|
|
@@ -79,8 +79,8 @@ export { LocaltaskAttachNoteAction };
|
|
|
79
79
|
export { LocaltaskAttachAction };
|
|
80
80
|
export { LocaltaskAttachmentsAction };
|
|
81
81
|
export { LocaltaskBoardTasksAction };
|
|
82
|
-
export { LocaltaskCancelAction };
|
|
83
82
|
export { LocaltaskCancelManyAction };
|
|
83
|
+
export { LocaltaskCancelAction };
|
|
84
84
|
export { LocaltaskChainAction };
|
|
85
85
|
export { LocaltaskCloneAction };
|
|
86
86
|
export { LocaltaskCloseManyAction };
|
|
@@ -89,19 +89,19 @@ export { LocaltaskDetachAction };
|
|
|
89
89
|
export { LocaltaskDoneAction };
|
|
90
90
|
export { LocaltaskEventsAction };
|
|
91
91
|
export { LocaltaskForkAction };
|
|
92
|
-
export { LocaltaskGetAction };
|
|
93
92
|
export { LocaltaskListAction };
|
|
94
93
|
export { LocaltaskPlanAction };
|
|
95
94
|
export { LocaltaskPresenceAction };
|
|
96
95
|
export { LocaltaskPruneAction };
|
|
97
|
-
export { LocaltaskRemoveAction };
|
|
98
96
|
export { LocaltaskRemoveManyAction };
|
|
97
|
+
export { LocaltaskRemoveAction };
|
|
99
98
|
export { LocaltaskReopenAction };
|
|
100
99
|
export { LocaltaskReorderAction };
|
|
100
|
+
export { LocaltaskShowAction };
|
|
101
101
|
export { LocaltaskTaskRestoreAction };
|
|
102
102
|
export { LocaltaskTasksAction };
|
|
103
103
|
export { LocaltaskTimegoalLogAction };
|
|
104
104
|
export { LocaltaskTopicAddAction };
|
|
105
|
-
export { LocaltaskTopicRemoveAction };
|
|
106
105
|
export { LocaltaskTopicRemoveManyAction };
|
|
106
|
+
export { LocaltaskTopicRemoveAction };
|
|
107
107
|
export { LocaltaskUpdateAction };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { action } from '../../../runtime/action-decorator.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
|
-
import { renderAdd as _renderAdd } from '../action-render.js';
|
|
7
|
+
import { renderAdd as _renderAdd } from '../ui/action-render.js';
|
|
8
8
|
import { existsSync, readFileSync } from 'node:fs';
|
|
9
9
|
import { resolve } from 'node:path';
|
|
10
10
|
import { badInput } from '../../../core/errors.js';
|
|
@@ -33,7 +33,7 @@ async function readTaskBody(
|
|
|
33
33
|
if (!existsSync(abs)) throw badInput('任务正文文件不存在: ' + abs);
|
|
34
34
|
return readFileSync(abs, 'utf8');
|
|
35
35
|
}
|
|
36
|
-
import { addView } from '../contract-views.js';
|
|
36
|
+
import { addView } from '../ui/contract-views.js';
|
|
37
37
|
const renderAdd: any = _renderAdd;
|
|
38
38
|
|
|
39
39
|
/** localtask.add 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
@@ -79,7 +79,7 @@ export class LocaltaskAddAction extends ActionBase<typeof input> {
|
|
|
79
79
|
// 派任务编排已迁 localtask/add.ts(派任务编排归 localtask 域;命令名不变)。
|
|
80
80
|
// 落点判定(--board/--project 严格口径 / 正文 frontmatter fail-open)只此一份实现,
|
|
81
81
|
// CLI、HTTP、面板提交同走这一条链路。
|
|
82
|
-
const { submitTask } = await (import('../add.js') as any);
|
|
82
|
+
const { submitTask } = await (import('../lifecycle/add.js') as any);
|
|
83
83
|
const rawBlock: any = ctx.blockBy ?? ctx['block-by'];
|
|
84
84
|
// 支持本地 id 与跨队列 "topicKey:id"(组编排边);空 → undefined
|
|
85
85
|
const { normalizeBlockBy } = await (import('../dag.js') as any);
|
|
@@ -25,7 +25,7 @@ export class LocaltaskAttachNoteAction extends ActionBase<typeof input> {
|
|
|
25
25
|
})
|
|
26
26
|
override async run(ctx: ActionInput<this['_input']>) {
|
|
27
27
|
|
|
28
|
-
const { noteTaskAttachment } = await (import('
|
|
28
|
+
const { noteTaskAttachment } = await (import('../ops/attach.js') as any);
|
|
29
29
|
return noteTaskAttachment({
|
|
30
30
|
id: ctx.id,
|
|
31
31
|
cwd: ctx.cwd,
|
|
@@ -37,7 +37,7 @@ export class LocaltaskAttachAction extends ActionBase<typeof input> {
|
|
|
37
37
|
})
|
|
38
38
|
override async run(ctx: ActionInput<this['_input']>) {
|
|
39
39
|
|
|
40
|
-
const { attachToTask } = await (import('
|
|
40
|
+
const { attachToTask } = await (import('../ops/attach.js') as any);
|
|
41
41
|
return attachToTask({
|
|
42
42
|
id: ctx.id,
|
|
43
43
|
cwd: ctx.cwd,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { action } from '../../../runtime/action-decorator.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
|
-
import { renderTaskAttachments as _renderTaskAttachments } from '../action-render.js';
|
|
7
|
+
import { renderTaskAttachments as _renderTaskAttachments } from '../ui/action-render.js';
|
|
8
8
|
const renderTaskAttachments: any = _renderTaskAttachments;
|
|
9
9
|
|
|
10
10
|
/** localtask.attachments 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
@@ -25,7 +25,7 @@ export class LocaltaskAttachmentsAction extends ActionBase<typeof input> {
|
|
|
25
25
|
})
|
|
26
26
|
override async run(ctx: ActionInput<this['_input']>) {
|
|
27
27
|
|
|
28
|
-
const { listTaskAttachments } = await (import('
|
|
28
|
+
const { listTaskAttachments } = await (import('../ops/attach.js') as any);
|
|
29
29
|
return listTaskAttachments({ id: ctx.id, cwd: ctx.cwd, key: ctx.key });
|
|
30
30
|
|
|
31
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// localtask.
|
|
1
|
+
// localtask.cancel-many —— 由 .tool/migrate-module.mjs 从 legacy 形态迁来(模板形态:一条 action 一个文件)。
|
|
2
2
|
//
|
|
3
3
|
// 契约(zod schema)就声明在本文件里——入参类型由基类泛型模板封装;本文件只做「声明 + 实现」,业务在服务层。
|
|
4
4
|
import { action } from '../../../runtime/action-decorator.js';
|
|
@@ -7,7 +7,7 @@ import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
|
7
7
|
import * as serviceNs from '../service.js';
|
|
8
8
|
const service: any = serviceNs;
|
|
9
9
|
|
|
10
|
-
/** localtask.
|
|
10
|
+
/** localtask.cancel-many 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
11
11
|
const input = z.object({
|
|
12
12
|
ids: z.array(z.string()).describe("任务编号,逗号分隔或给多次"),
|
|
13
13
|
cwd: z.string().optional(),
|
|
@@ -16,7 +16,7 @@ const input = z.object({
|
|
|
16
16
|
|
|
17
17
|
export class LocaltaskCancelManyAction extends ActionBase<typeof input> {
|
|
18
18
|
@action({
|
|
19
|
-
id: 'localtask.
|
|
19
|
+
id: 'localtask.cancel-many',
|
|
20
20
|
cli: ['localtask', 'cancel-many'],
|
|
21
21
|
http: ['POST', '/api/localtasks/items/cancel'],
|
|
22
22
|
summary: '批量取消待领取任务(按 --ids,定位到 --cwd 主题或 --key):只处理 pending,已领取/已完成/已取消跳过;取消为终态,原文留档',
|
|
@@ -5,7 +5,7 @@ import { action } from '../../../runtime/action-decorator.js';
|
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
7
|
import * as serviceNs from '../service.js';
|
|
8
|
-
import { renderCancel as _renderCancel } from '../action-render.js';
|
|
8
|
+
import { renderCancel as _renderCancel } from '../ui/action-render.js';
|
|
9
9
|
const service: any = serviceNs;
|
|
10
10
|
const renderCancel: any = _renderCancel;
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ import { action } from '../../../runtime/action-decorator.js';
|
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
7
|
import * as serviceNs from '../service.js';
|
|
8
|
-
import { renderChain as _renderChain } from '../action-render.js';
|
|
8
|
+
import { renderChain as _renderChain } from '../ui/action-render.js';
|
|
9
9
|
const service: any = serviceNs;
|
|
10
10
|
const renderChain: any = _renderChain;
|
|
11
11
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// localtask.
|
|
1
|
+
// localtask.close-many —— 由 .tool/migrate-module.mjs 从 legacy 形态迁来(模板形态:一条 action 一个文件)。
|
|
2
2
|
//
|
|
3
3
|
// 契约(zod schema)就声明在本文件里——入参类型由基类泛型模板封装;本文件只做「声明 + 实现」,业务在服务层。
|
|
4
4
|
import { action } from '../../../runtime/action-decorator.js';
|
|
@@ -7,7 +7,7 @@ import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
|
7
7
|
import * as serviceNs from '../service.js';
|
|
8
8
|
const service: any = serviceNs;
|
|
9
9
|
|
|
10
|
-
/** localtask.
|
|
10
|
+
/** localtask.close-many 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
11
11
|
const input = z.object({
|
|
12
12
|
ids: z.array(z.string()).describe("任务编号,逗号分隔或给多次"),
|
|
13
13
|
cwd: z.string().optional(),
|
|
@@ -18,7 +18,7 @@ const input = z.object({
|
|
|
18
18
|
|
|
19
19
|
export class LocaltaskCloseManyAction extends ActionBase<typeof input> {
|
|
20
20
|
@action({
|
|
21
|
-
id: 'localtask.
|
|
21
|
+
id: 'localtask.close-many',
|
|
22
22
|
cli: ['localtask', 'close-many'],
|
|
23
23
|
http: ['POST', '/api/localtasks/items/close'],
|
|
24
24
|
summary: '批量收口还没结束的任务(按 --ids,定位到 --cwd 主题或 --key):不要求先领取;--status done 写完成总结,cancelled 只改状态;待领取与已领取都能收(已领取的 agent 侧回执会被忽略),已完成/已取消跳过',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { action } from '../../../runtime/action-decorator.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
|
-
import { renderDetach as _renderDetach } from '../action-render.js';
|
|
7
|
+
import { renderDetach as _renderDetach } from '../ui/action-render.js';
|
|
8
8
|
const renderDetach: any = _renderDetach;
|
|
9
9
|
|
|
10
10
|
/** localtask.detach 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
@@ -27,7 +27,7 @@ export class LocaltaskDetachAction extends ActionBase<typeof input> {
|
|
|
27
27
|
})
|
|
28
28
|
override async run(ctx: ActionInput<this['_input']>) {
|
|
29
29
|
|
|
30
|
-
const { detachTaskAttachment } = await (import('
|
|
30
|
+
const { detachTaskAttachment } = await (import('../ops/attach.js') as any);
|
|
31
31
|
return detachTaskAttachment({
|
|
32
32
|
id: ctx.id,
|
|
33
33
|
cwd: ctx.cwd,
|
|
@@ -5,7 +5,7 @@ import { action } from '../../../runtime/action-decorator.js';
|
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
7
|
import * as serviceNs from '../service.js';
|
|
8
|
-
import { doneView } from '../contract-views.js';
|
|
8
|
+
import { doneView } from '../ui/contract-views.js';
|
|
9
9
|
const service: any = serviceNs;
|
|
10
10
|
|
|
11
11
|
/** localtask.done 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
@@ -5,7 +5,7 @@ import { action } from '../../../runtime/action-decorator.js';
|
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
7
7
|
import * as serviceNs from '../service.js';
|
|
8
|
-
import { renderOverview as _renderOverview } from '../action-render.js';
|
|
8
|
+
import { renderOverview as _renderOverview } from '../ui/action-render.js';
|
|
9
9
|
const service: any = serviceNs;
|
|
10
10
|
const renderOverview: any = _renderOverview;
|
|
11
11
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// localtask.
|
|
1
|
+
// localtask.remove-many —— 由 .tool/migrate-module.mjs 从 legacy 形态迁来(模板形态:一条 action 一个文件)。
|
|
2
2
|
//
|
|
3
3
|
// 契约(zod schema)就声明在本文件里——入参类型由基类泛型模板封装;本文件只做「声明 + 实现」,业务在服务层。
|
|
4
4
|
import { action } from '../../../runtime/action-decorator.js';
|
|
@@ -7,7 +7,7 @@ import { ActionBase, type ActionInput } from '../../../runtime/action-base.js';
|
|
|
7
7
|
import * as serviceNs from '../service.js';
|
|
8
8
|
const service: any = serviceNs;
|
|
9
9
|
|
|
10
|
-
/** localtask.
|
|
10
|
+
/** localtask.remove-many 的入参契约(CLI 与 HTTP 共用同一份)。 */
|
|
11
11
|
const input = z.object({
|
|
12
12
|
ids: z.array(z.string()).describe("任务编号,逗号分隔或给多次"),
|
|
13
13
|
cwd: z.string().optional(),
|
|
@@ -17,7 +17,7 @@ const input = z.object({
|
|
|
17
17
|
|
|
18
18
|
export class LocaltaskRemoveManyAction extends ActionBase<typeof input> {
|
|
19
19
|
@action({
|
|
20
|
-
id: 'localtask.
|
|
20
|
+
id: 'localtask.remove-many',
|
|
21
21
|
cli: ['localtask', 'remove-many'],
|
|
22
22
|
http: ['DELETE', '/api/localtasks/items'],
|
|
23
23
|
summary: '批量删除任务(按 --ids,定位到 --cwd 主题或 --key):一次落盘,逐条软删除(可 restore 恢复);缺失的编号不阻断其余删除',
|