@agent-spaces/server 0.3.62 → 0.3.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/agent-runtime-types.js +12 -0
- package/dist/adapters/claude-code-runtime/index.js +3 -0
- package/dist/adapters/claude-code-runtime/message-format.js +1 -1
- package/dist/adapters/codex-runtime.js +2 -2
- package/dist/adapters/git.js +161 -57
- package/dist/adapters/langchain-runtime.js +2 -2
- package/dist/adapters/open-agent-sdk-runtime.js +2 -2
- package/dist/agents/agent-designer.js +66 -12
- package/dist/agents/commit-agent.js +1 -0
- package/dist/agents/issue-agent-progress.js +4 -2
- package/dist/agents/issue-agent-runner.js +5 -5
- package/dist/agents/issue-task-controller.js +96 -15
- package/dist/app.js +123 -5
- package/dist/package.json +1 -1
- package/dist/routes/agent-commands.js +72 -0
- package/dist/routes/agent-sse.js +10 -2
- package/dist/routes/agent.js +15 -1
- package/dist/routes/database.js +345 -0
- package/dist/routes/git.js +52 -1
- package/dist/routes/hooks.js +88 -0
- package/dist/routes/issue.js +59 -1
- package/dist/routes/kanban.js +39 -0
- package/dist/routes/output-style.js +48 -0
- package/dist/routes/prompt-template.js +2 -2
- package/dist/routes/skill.js +86 -15
- package/dist/routes/task.js +13 -1
- package/dist/services/agent-commands.js +168 -0
- package/dist/services/builtin-tools/command-tools.js +117 -0
- package/dist/services/builtin-tools/database-tools.js +578 -0
- package/dist/services/builtin-tools/index.js +5 -0
- package/dist/services/builtin-tools/input-helpers.js +26 -0
- package/dist/services/builtin-tools/issue-tools.js +209 -0
- package/dist/services/builtin-tools/kanban-tools.js +277 -0
- package/dist/services/database-vector.js +244 -0
- package/dist/services/hook-engine.js +118 -0
- package/dist/services/issue.js +6 -0
- package/dist/services/kanban.js +50 -0
- package/dist/services/notification-hub/bot-agent.js +1 -0
- package/dist/services/output-style.js +134 -0
- package/dist/services/prompt-template.js +2 -2
- package/dist/services/skill.js +148 -35
- package/dist/storage/database-store.js +365 -0
- package/dist/storage/hook-store.js +55 -0
- package/dist/storage/kanban-store.js +142 -0
- package/dist/web/404.html +1 -1
- package/dist/web/__next.__PAGE__.txt +4 -4
- package/dist/web/__next._full.txt +26 -30
- package/dist/web/__next._head.txt +4 -4
- package/dist/web/__next._index.txt +14 -14
- package/dist/web/__next._tree.txt +3 -8
- package/dist/web/_next/static/chunks/0-9194nbxy_6d.js +1 -0
- package/dist/web/_next/static/chunks/0-f~0xmwl__u5.js +1 -0
- package/dist/web/_next/static/chunks/0.n~yfwf4~6w-.js +1 -0
- package/dist/web/_next/static/chunks/002_j970b9gdx.js +1 -0
- package/dist/web/_next/static/chunks/01iqv28_snwus.js +1 -0
- package/dist/web/_next/static/chunks/01~quun6sefgl.js +1 -0
- package/dist/web/_next/static/chunks/02mf61htij8g0.js +31 -0
- package/dist/web/_next/static/chunks/03scq1-0ykve3.js +1 -0
- package/dist/web/_next/static/chunks/04a4vsq2wknm4.js +1 -0
- package/dist/web/_next/static/chunks/04dg4l4hv11q2.js +3 -0
- package/dist/web/_next/static/chunks/04fxddw-y20~-.js +7 -0
- package/dist/web/_next/static/chunks/04w7~5ooz_pwm.js +1 -0
- package/dist/web/_next/static/chunks/05oc21sj24wtq.js +1 -0
- package/dist/web/_next/static/chunks/{0zd1o3u04~qvo.js → 05psi2gtx~bev.js} +7 -7
- package/dist/web/_next/static/chunks/{0-oog4zg4_m~m.css → 062f9zqctzg.b.css} +0 -3
- package/dist/web/_next/static/chunks/{12odetnu-lyrr.js → 06whz1~s_7pva.js} +12 -12
- package/dist/web/_next/static/chunks/08ckpwmmwlors.js +3 -0
- package/dist/web/_next/static/chunks/08k~meqbd8d6v.js +1 -0
- package/dist/web/_next/static/chunks/099h96wjsdb25.js +2 -0
- package/dist/web/_next/static/chunks/09h23logvq65m.js +1 -0
- package/dist/web/_next/static/chunks/{0njy89g5coeyi.js → 0_8dm7bxp18xo.js} +6 -6
- package/dist/web/_next/static/chunks/0_mvduwjsm35w.js +1 -0
- package/dist/web/_next/static/chunks/0_vi1a~g4wx46.js +3 -0
- package/dist/web/_next/static/chunks/0a5y-vhf4i5id.js +3 -0
- package/dist/web/_next/static/chunks/0ake2f3x2uan4.js +24 -0
- package/dist/web/_next/static/chunks/{0tvd~rxgf0oh_.js → 0bbmx45w_h5np.js} +1 -1
- package/dist/web/_next/static/chunks/0ck8dw_9-1cdx.js +1 -0
- package/dist/web/_next/static/chunks/{07a0rktf_nr5h.js → 0ctg5qmw7uu.1.js} +2 -2
- package/dist/web/_next/static/chunks/0ewceguykiut5.js +1 -0
- package/dist/web/_next/static/chunks/0f7cb9li~3jra.js +67 -0
- package/dist/web/_next/static/chunks/0fttswpzu69qx.js +1 -0
- package/dist/web/_next/static/chunks/0ghs9on7wodrm.js +1 -0
- package/dist/web/_next/static/chunks/0ghx3j_.-gdyd.js +1 -0
- package/dist/web/_next/static/chunks/{0202ia13sijwb.js → 0h18ej5yf974e.js} +1 -1
- package/dist/web/_next/static/chunks/0h9cu-k6z5o08.js +1 -0
- package/dist/web/_next/static/chunks/0i39jifmxla7q.js +1 -0
- package/dist/web/_next/static/chunks/0iuf30t0rjsjv.js +19 -0
- package/dist/web/_next/static/chunks/0jb4~3qqkw2ps.js +1 -0
- package/dist/web/_next/static/chunks/0k4zdm72k_bfy.js +1 -0
- package/dist/web/_next/static/chunks/{08o-zmr-40r5g.js → 0m11vvph7q94-.js} +1 -1
- package/dist/web/_next/static/chunks/0n6_4so_afuwk.js +71 -0
- package/dist/web/_next/static/chunks/0nb8.iteznuvx.js +1 -0
- package/dist/web/_next/static/chunks/0np.d~hc1-pmh.js +4 -0
- package/dist/web/_next/static/chunks/{0qpq0~_58fe9a.js → 0oaq67r7ix.vg.js} +1 -1
- package/dist/web/_next/static/chunks/{0d_dp_4ofz0l3.css → 0ojcao3hdm36s.css} +0 -1
- package/dist/web/_next/static/chunks/0os58q93stt7j.js +3 -0
- package/dist/web/_next/static/chunks/{0gig.k.rq8d0x.js → 0ppr271hz0xoq.js} +1 -1
- package/dist/web/_next/static/chunks/0s9lmk8iauou3.js +1 -0
- package/dist/web/_next/static/chunks/0sp_zbx~w0am7.js +1 -0
- package/dist/web/_next/static/chunks/0tel~zsv4z8l_.js +1 -0
- package/dist/web/_next/static/chunks/0twamv4wr_dbv.js +1 -0
- package/dist/web/_next/static/chunks/0uhol5wafdbl~.js +1 -0
- package/dist/web/_next/static/chunks/0v3a_x4vt42kx.js +5 -0
- package/dist/web/_next/static/chunks/{002-dxhags4dj.js → 0v6hte2z-32ca.js} +2 -2
- package/dist/web/_next/static/chunks/0v7q4mys.mnm..css +1 -0
- package/dist/web/_next/static/chunks/0vbqaynjq8ga..js +3 -0
- package/dist/web/_next/static/chunks/0xbaakj0dfc0..js +1 -0
- package/dist/web/_next/static/chunks/{0..g0jl-8qup7.js → 0xoo17yef_b8g.js} +1 -1
- package/dist/web/_next/static/chunks/0xt-8wk21gs7g.js +1 -0
- package/dist/web/_next/static/chunks/0za1r07-6az6w.js +1 -0
- package/dist/web/_next/static/chunks/0z~vqzbm_q371.js +1 -0
- package/dist/web/_next/static/chunks/0~3xm80~j9ddg.js +1 -0
- package/dist/web/_next/static/chunks/0~u.5r3-t7179.js +1 -0
- package/dist/web/_next/static/chunks/10l-9myrdo3x9.js +1 -0
- package/dist/web/_next/static/chunks/11-czmcci_55y.js +1 -0
- package/dist/web/_next/static/chunks/11k-.49r~1mfm.js +1 -0
- package/dist/web/_next/static/chunks/{0k.8qdk7oi_os.js → 128ugqd34tr_-.js} +1 -1
- package/dist/web/_next/static/chunks/12jm4gwmvq-0q.js +90 -0
- package/dist/web/_next/static/chunks/{0rke_patcovgr.js → 1442stwa0gbxe.js} +1 -1
- package/dist/web/_next/static/chunks/{0jokpgh485~28.js → 14hqmid8q4apf.js} +11 -11
- package/dist/web/_next/static/chunks/14s37n6h0_q3x.js +16 -0
- package/dist/web/_next/static/chunks/161ik5kfyuwtd.js +1 -0
- package/dist/web/_next/static/chunks/16sg-lflc8csx.js +1 -0
- package/dist/web/_next/static/chunks/17k~zbv0_4rep.js +1 -0
- package/dist/web/_next/static/chunks/17oc2l.ekcs8b.css +1 -0
- package/dist/web/_next/static/chunks/{turbopack-0lrdxynxb9-1t.js → turbopack-0ndm2zc_pdptk.js} +1 -1
- package/dist/web/_not-found/__next._full.txt +30 -31
- package/dist/web/_not-found/__next._head.txt +4 -4
- package/dist/web/_not-found/__next._index.txt +14 -14
- package/dist/web/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/dist/web/_not-found/__next._not-found.txt +3 -3
- package/dist/web/_not-found/__next._tree.txt +3 -3
- package/dist/web/_not-found.html +1 -1
- package/dist/web/_not-found.txt +30 -31
- package/dist/web/index.html +1 -1
- package/dist/web/index.txt +26 -30
- package/dist/web/login/__next._full.txt +32 -36
- package/dist/web/login/__next._head.txt +4 -4
- package/dist/web/login/__next._index.txt +14 -14
- package/dist/web/login/__next._tree.txt +3 -8
- package/dist/web/login/__next.login.__PAGE__.txt +4 -4
- package/dist/web/login/__next.login.txt +3 -3
- package/dist/web/login.html +1 -1
- package/dist/web/login.txt +32 -36
- package/dist/web/settings/__next._full.txt +29 -34
- package/dist/web/settings/__next._head.txt +4 -4
- package/dist/web/settings/__next._index.txt +14 -14
- package/dist/web/settings/__next._tree.txt +3 -8
- package/dist/web/settings/__next.settings.__PAGE__.txt +4 -4
- package/dist/web/settings/__next.settings.txt +5 -5
- package/dist/web/settings/agents/__next._full.txt +27 -32
- package/dist/web/settings/agents/__next._head.txt +4 -4
- package/dist/web/settings/agents/__next._index.txt +14 -14
- package/dist/web/settings/agents/__next._tree.txt +3 -8
- package/dist/web/settings/agents/__next.settings.agents.__PAGE__.txt +4 -4
- package/dist/web/settings/agents/__next.settings.agents.txt +3 -3
- package/dist/web/settings/agents/__next.settings.txt +5 -5
- package/dist/web/settings/agents.html +1 -1
- package/dist/web/settings/agents.txt +27 -32
- package/dist/web/settings/mcps/__next._full.txt +27 -32
- package/dist/web/settings/mcps/__next._head.txt +4 -4
- package/dist/web/settings/mcps/__next._index.txt +14 -14
- package/dist/web/settings/mcps/__next._tree.txt +3 -8
- package/dist/web/settings/mcps/__next.settings.mcps.__PAGE__.txt +4 -4
- package/dist/web/settings/mcps/__next.settings.mcps.txt +3 -3
- package/dist/web/settings/mcps/__next.settings.txt +5 -5
- package/dist/web/settings/mcps.html +1 -1
- package/dist/web/settings/mcps.txt +27 -32
- package/dist/web/settings/models/__next._full.txt +27 -32
- package/dist/web/settings/models/__next._head.txt +4 -4
- package/dist/web/settings/models/__next._index.txt +14 -14
- package/dist/web/settings/models/__next._tree.txt +3 -8
- package/dist/web/settings/models/__next.settings.models.__PAGE__.txt +4 -4
- package/dist/web/settings/models/__next.settings.models.txt +3 -3
- package/dist/web/settings/models/__next.settings.txt +5 -5
- package/dist/web/settings/models.html +1 -1
- package/dist/web/settings/models.txt +27 -32
- package/dist/web/settings/output-styles/__next._full.txt +38 -0
- package/dist/web/settings/output-styles/__next._head.txt +6 -0
- package/dist/web/settings/output-styles/__next._index.txt +15 -0
- package/dist/web/settings/output-styles/__next._tree.txt +3 -0
- package/dist/web/settings/output-styles/__next.settings.output-styles.__PAGE__.txt +9 -0
- package/dist/web/settings/output-styles/__next.settings.output-styles.txt +5 -0
- package/dist/web/settings/output-styles/__next.settings.txt +7 -0
- package/dist/web/settings/output-styles.html +1 -0
- package/dist/web/settings/output-styles.txt +38 -0
- package/dist/web/settings/prompts/__next._full.txt +27 -32
- package/dist/web/settings/prompts/__next._head.txt +4 -4
- package/dist/web/settings/prompts/__next._index.txt +14 -14
- package/dist/web/settings/prompts/__next._tree.txt +3 -8
- package/dist/web/settings/prompts/__next.settings.prompts.__PAGE__.txt +4 -4
- package/dist/web/settings/prompts/__next.settings.prompts.txt +3 -3
- package/dist/web/settings/prompts/__next.settings.txt +5 -5
- package/dist/web/settings/prompts.html +1 -1
- package/dist/web/settings/prompts.txt +27 -32
- package/dist/web/settings/providers/__next._full.txt +27 -32
- package/dist/web/settings/providers/__next._head.txt +4 -4
- package/dist/web/settings/providers/__next._index.txt +14 -14
- package/dist/web/settings/providers/__next._tree.txt +3 -8
- package/dist/web/settings/providers/__next.settings.providers.__PAGE__.txt +4 -4
- package/dist/web/settings/providers/__next.settings.providers.txt +3 -3
- package/dist/web/settings/providers/__next.settings.txt +5 -5
- package/dist/web/settings/providers.html +1 -1
- package/dist/web/settings/providers.txt +27 -32
- package/dist/web/settings/skills/__next._full.txt +27 -32
- package/dist/web/settings/skills/__next._head.txt +4 -4
- package/dist/web/settings/skills/__next._index.txt +14 -14
- package/dist/web/settings/skills/__next._tree.txt +3 -8
- package/dist/web/settings/skills/__next.settings.skills.__PAGE__.txt +4 -4
- package/dist/web/settings/skills/__next.settings.skills.txt +3 -3
- package/dist/web/settings/skills/__next.settings.txt +5 -5
- package/dist/web/settings/skills.html +1 -1
- package/dist/web/settings/skills.txt +27 -32
- package/dist/web/settings/tools/__next._full.txt +38 -0
- package/dist/web/settings/tools/__next._head.txt +6 -0
- package/dist/web/settings/tools/__next._index.txt +15 -0
- package/dist/web/settings/tools/__next._tree.txt +3 -0
- package/dist/web/settings/tools/__next.settings.tools.__PAGE__.txt +9 -0
- package/dist/web/settings/tools/__next.settings.tools.txt +5 -0
- package/dist/web/settings/tools/__next.settings.txt +7 -0
- package/dist/web/settings/tools.html +1 -0
- package/dist/web/settings/tools.txt +38 -0
- package/dist/web/settings.html +1 -1
- package/dist/web/settings.txt +29 -34
- package/dist/web/workflows/__next._full.txt +34 -37
- package/dist/web/workflows/__next._head.txt +4 -4
- package/dist/web/workflows/__next._index.txt +14 -14
- package/dist/web/workflows/__next._tree.txt +3 -8
- package/dist/web/workflows/__next.workflows.__PAGE__.txt +4 -4
- package/dist/web/workflows/__next.workflows.txt +3 -3
- package/dist/web/workflows.html +1 -1
- package/dist/web/workflows.txt +34 -37
- package/dist/web/workspace/_/__next._full.txt +32 -77
- package/dist/web/workspace/_/__next._head.txt +4 -4
- package/dist/web/workspace/_/__next._index.txt +14 -14
- package/dist/web/workspace/_/__next._tree.txt +4 -23
- package/dist/web/workspace/_/__next.workspace.$d$id.__PAGE__.txt +3 -18
- package/dist/web/workspace/_/__next.workspace.$d$id.txt +3 -3
- package/dist/web/workspace/_/__next.workspace.txt +3 -3
- package/dist/web/workspace/_.html +1 -1
- package/dist/web/workspace/_.txt +32 -77
- package/dist/web/workspaces/__next._full.txt +32 -38
- package/dist/web/workspaces/__next._head.txt +4 -4
- package/dist/web/workspaces/__next._index.txt +14 -14
- package/dist/web/workspaces/__next._tree.txt +3 -8
- package/dist/web/workspaces/__next.workspaces.__PAGE__.txt +4 -4
- package/dist/web/workspaces/__next.workspaces.txt +3 -3
- package/dist/web/workspaces.html +1 -1
- package/dist/web/workspaces.txt +32 -38
- package/dist/ws/agent-prompt.js +45 -8
- package/dist/ws/agent-runner.js +10 -6
- package/package.json +11 -10
- package/public/output-styles/carmack-mode.md +381 -0
- package/public/output-styles/codex-rigor-mode.md +114 -0
- package/public/output-styles/dhh-mode.md +265 -0
- package/public/output-styles/evan-you-mode.md +539 -0
- package/public/output-styles/index.json +37 -0
- package/public/output-styles/jobs-mode.md +369 -0
- package/public/output-styles/linus-mode.md +135 -0
- package/public/output-styles/uncle-bob-mode.md +221 -0
- package/public/prompt/andrej-karpathy-skills.md +65 -0
- package/public/prompt/claude-token-efficient-coding.md +35 -0
- package/public/prompt/index.json +12 -0
- package/public/skills/index.json +92 -0
- package/public/skills/planning-with-files/planning-with-files-zh/SKILL.md +243 -0
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/check-complete.ps1 +44 -0
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/check-complete.sh +46 -0
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/init-session.ps1 +124 -0
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/init-session.sh +124 -0
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/session-catchup.py +438 -0
- package/public/skills/planning-with-files/planning-with-files-zh/templates/findings.md +29 -0
- package/public/skills/planning-with-files/planning-with-files-zh/templates/progress.md +40 -0
- package/public/skills/planning-with-files/planning-with-files-zh/templates/task_plan.md +58 -0
- package/public/skills/superpowers/brainstorming/SKILL.md +164 -0
- package/public/skills/superpowers/brainstorming/scripts/frame-template.html +214 -0
- package/public/skills/superpowers/brainstorming/scripts/helper.js +88 -0
- package/public/skills/superpowers/brainstorming/scripts/server.cjs +354 -0
- package/public/skills/superpowers/brainstorming/scripts/start-server.sh +148 -0
- package/public/skills/superpowers/brainstorming/scripts/stop-server.sh +56 -0
- package/public/skills/superpowers/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/public/skills/superpowers/brainstorming/visual-companion.md +287 -0
- package/public/skills/superpowers/dispatching-parallel-agents/SKILL.md +182 -0
- package/public/skills/superpowers/executing-plans/SKILL.md +70 -0
- package/public/skills/superpowers/finishing-a-development-branch/SKILL.md +251 -0
- package/public/skills/superpowers/receiving-code-review/SKILL.md +213 -0
- package/public/skills/superpowers/requesting-code-review/SKILL.md +103 -0
- package/public/skills/superpowers/requesting-code-review/code-reviewer.md +168 -0
- package/public/skills/superpowers/subagent-driven-development/SKILL.md +279 -0
- package/public/skills/superpowers/subagent-driven-development/code-quality-reviewer-prompt.md +25 -0
- package/public/skills/superpowers/subagent-driven-development/implementer-prompt.md +113 -0
- package/public/skills/superpowers/subagent-driven-development/spec-reviewer-prompt.md +61 -0
- package/public/skills/superpowers/systematic-debugging/CREATION-LOG.md +119 -0
- package/public/skills/superpowers/systematic-debugging/SKILL.md +296 -0
- package/public/skills/superpowers/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/public/skills/superpowers/systematic-debugging/condition-based-waiting.md +115 -0
- package/public/skills/superpowers/systematic-debugging/defense-in-depth.md +122 -0
- package/public/skills/superpowers/systematic-debugging/find-polluter.sh +63 -0
- package/public/skills/superpowers/systematic-debugging/root-cause-tracing.md +169 -0
- package/public/skills/superpowers/systematic-debugging/test-academic.md +14 -0
- package/public/skills/superpowers/systematic-debugging/test-pressure-1.md +58 -0
- package/public/skills/superpowers/systematic-debugging/test-pressure-2.md +68 -0
- package/public/skills/superpowers/systematic-debugging/test-pressure-3.md +69 -0
- package/public/skills/superpowers/test-driven-development/SKILL.md +371 -0
- package/public/skills/superpowers/test-driven-development/testing-anti-patterns.md +299 -0
- package/public/skills/superpowers/using-git-worktrees/SKILL.md +215 -0
- package/public/skills/superpowers/using-superpowers/SKILL.md +117 -0
- package/public/skills/superpowers/using-superpowers/references/codex-tools.md +59 -0
- package/public/skills/superpowers/using-superpowers/references/copilot-tools.md +42 -0
- package/public/skills/superpowers/using-superpowers/references/gemini-tools.md +51 -0
- package/public/skills/superpowers/verification-before-completion/SKILL.md +139 -0
- package/public/skills/superpowers/writing-plans/SKILL.md +152 -0
- package/public/skills/superpowers/writing-plans/plan-document-reviewer-prompt.md +49 -0
- package/public/skills/superpowers/writing-skills/SKILL.md +655 -0
- package/public/skills/superpowers/writing-skills/anthropic-best-practices.md +1150 -0
- package/public/skills/superpowers/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/public/skills/superpowers/writing-skills/graphviz-conventions.dot +172 -0
- package/public/skills/superpowers/writing-skills/persuasion-principles.md +187 -0
- package/public/skills/superpowers/writing-skills/render-graphs.js +168 -0
- package/public/skills/superpowers/writing-skills/testing-skills-with-subagents.md +384 -0
- package/dist/web/_next/static/chunks/0-81wi7xr2nd-.js +0 -270
- package/dist/web/_next/static/chunks/00lca9lsasdm7.js +0 -1
- package/dist/web/_next/static/chunks/01gi~q0c6ez6..js +0 -1
- package/dist/web/_next/static/chunks/02shswpmybici.js +0 -1
- package/dist/web/_next/static/chunks/05tx6hzdtkgi9.js +0 -2
- package/dist/web/_next/static/chunks/07nbyndvzftr1.js +0 -3
- package/dist/web/_next/static/chunks/0bn~onkv~9xza.js +0 -1
- package/dist/web/_next/static/chunks/0g-0n6glz_z6w.js +0 -1
- package/dist/web/_next/static/chunks/0gyede80jpy3n.js +0 -4
- package/dist/web/_next/static/chunks/0hrbuvzuxrjfl.js +0 -1
- package/dist/web/_next/static/chunks/0i51q.5s_-.vh.css +0 -1
- package/dist/web/_next/static/chunks/0qf163pbrwy4z.js +0 -1
- package/dist/web/_next/static/chunks/0rnt-f3pjxb-d.js +0 -5
- package/dist/web/_next/static/chunks/0tgbcgsca9mrg.js +0 -1
- package/dist/web/_next/static/chunks/0tyhv6.y7~yxd.js +0 -1
- package/dist/web/_next/static/chunks/0u7_qd9hzqwac.js +0 -1
- package/dist/web/_next/static/chunks/0vuvql8rloda5.js +0 -1
- package/dist/web/_next/static/chunks/0wv0h27jafag4.js +0 -1
- package/dist/web/_next/static/chunks/0wwvc4zc2q6bn.js +0 -1
- package/dist/web/_next/static/chunks/0xmmk3vebw8xs.js +0 -1
- package/dist/web/_next/static/chunks/0xwqf.llmm_u2.js +0 -31
- package/dist/web/_next/static/chunks/0yo22_w53mo~5.js +0 -1
- package/dist/web/_next/static/chunks/12c0jp0qvlr1t.js +0 -1
- package/dist/web/_next/static/chunks/12pg1nn3v~~5k.js +0 -1
- package/dist/web/_next/static/chunks/16cyr8ilpx1nn.js +0 -1
- package/dist/web/_next/static/media/0a7740363b4d4863-s.1110aazvokzp..woff2 +0 -0
- package/dist/web/_next/static/media/0da9c7f357bd9d4d-s.0ek5sshv8wk3m.woff2 +0 -0
- package/dist/web/_next/static/media/1b99372b3eaef0c8-s.p.0gx2haw2tmll8.woff2 +0 -0
- package/dist/web/_next/static/media/41e95f694c5c4549-s.0r1jrq7neqdsq.woff2 +0 -0
- package/dist/web/_next/static/media/5c285b27cdda1fe8-s.p.0yo6-5yoeeudq.woff2 +0 -0
- package/dist/web/_next/static/media/5f9d24ebef5d5292-s.0esuu2f5si~v8.woff2 +0 -0
- package/dist/web/_next/static/media/6c55a692938ebbbc-s.0g6rbszwfgn9y.woff2 +0 -0
- package/dist/web/_next/static/media/8e6fa89aa22d24ec-s.p.0uvzar8hswo3p.woff2 +0 -0
- package/dist/web/_next/static/media/a218039a3287bcfd-s.p.17-1enzs_j91b.woff2 +0 -0
- package/dist/web/_next/static/media/b2ea385cb5ae8625-s.0kjod.kaq1k69.woff2 +0 -0
- package/dist/web/_next/static/media/bdc7e24a509eb931-s.0apt5mko2.qn3.woff2 +0 -0
- package/dist/web/_next/static/media/c3cb240f9c892514-s.163v2i5cux7-c.woff2 +0 -0
- package/dist/web/_next/static/media/e2334d715941921e-s.p.12skym0rqknxy.woff2 +0 -0
- package/public/avatars/1777813826407-bea0ja-minimax.svg +0 -1
- package/public/avatars/1777813967088-3xlvd0-minimax.svg +0 -1
- package/public/avatars/1777814041714-yp0qeq-minimax.svg +0 -1
- package/public/avatars/1777904986095-rg26je-icon.png +0 -0
- package/public/avatars/1778953228323-5je54x-user.jpg +0 -0
- package/public/avatars/1778954057880-g01q6y-user.jpg +0 -0
- /package/dist/web/_next/static/{GS3b40oeaeLxm7i9-ibaj → e8w3vd9Eov_LDYWj_0zsE}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{GS3b40oeaeLxm7i9-ibaj → e8w3vd9Eov_LDYWj_0zsE}/_clientMiddlewareManifest.js +0 -0
- /package/dist/web/_next/static/{GS3b40oeaeLxm7i9-ibaj → e8w3vd9Eov_LDYWj_0zsE}/_ssgManifest.js +0 -0
- /package/public/avatars/{1777815865622-08wp9m-user.jpg → user.jpg} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,444204,e=>{"use strict";let t=(0,e.i(433721).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,t],444204)},244996,444741,e=>{"use strict";let t=(0,e.i(433721).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,t],444741),e.s(["CheckCircle2",0,t],244996)},579820,e=>{"use strict";let t=(0,e.i(433721).default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);e.s(["Layers",0,t],579820)},810051,e=>{"use strict";let t=(0,e.i(433721).default)("pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);e.s(["Edit2",0,t],810051)},770138,e=>{"use strict";var t,r=e.i(344180),a=e.i(764556),s=e.i(720247),l=e.i(775712),o=e.i(953700),n=e.i(267624),i=e.i(433721);let d=(0,i.default)("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);var c=e.i(887354),u=e.i(579820),m=e.i(244073),x=e.i(816709),p=e.i(437122);let g=(0,x.create)((e,t)=>({board:null,loading:!1,load:async t=>{e({loading:!0});try{let r=await (0,p.fetchWithAuth)(`/api/workspaces/${t}/kanban`);if(r.ok){let t=await r.json();e({board:t,loading:!1})}}catch{}e({loading:!1})},save:async e=>{let{board:r}=t();if(r)try{await (0,p.fetchWithAuth)(`/api/workspaces/${e}/kanban`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({columns:r.columns,tasks:r.tasks,layoutMode:r.layoutMode,title:r.title})})}catch{}},setBoard:t=>e({board:t}),updateLayoutMode:(r,a)=>{let{board:s}=t();s&&(e({board:{...s,layoutMode:a}}),t().save(r))},updateColumns:(r,a)=>{let{board:s}=t();s&&(e({board:{...s,columns:a}}),t().save(r))},updateTasks:(r,a)=>{let{board:s}=t();s&&(e({board:{...s,tasks:a}}),t().save(r))}}));var h=e.i(67013),b=e.i(137340),f=e.i(810051),v=e.i(650654),k=e.i(249673);let y=(0,i.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),j=(0,i.default)("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]),w=(0,i.default)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);var N=e.i(244996),C=e.i(511800);let S={low:{text:"text-emerald-700 bg-emerald-50 border border-emerald-100",dot:"bg-emerald-500"},medium:{text:"text-amber-700 bg-amber-50 border border-amber-100",dot:"bg-amber-500"},high:{text:"text-rose-700 bg-rose-50 border border-rose-100",dot:"bg-rose-500"}};function z({task:e,onClick:t,isOverlay:a=!1}){let{attributes:s,listeners:o,setNodeRef:n,transform:i,transition:d,isDragging:c}=(0,l.useSortable)({id:e.id,disabled:a}),u=(0,m.useTranslations)("kanban"),x=a?{transform:"rotate(2.5deg) scale(1.04)",cursor:"grabbing"}:{transform:h.CSS.Transform.toString(i),transition:d,opacity:c?.35:1,cursor:c?"grabbing":"pointer"},p=S[e.priority]||S.medium,g={low:u("low"),medium:u("medium"),high:u("high")},b=e=>{try{return new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}catch{return e}};return(0,r.jsxs)("div",{ref:n,style:x,onClick:()=>{c||t()},className:`group relative flex flex-col p-4 bg-white dark:bg-neutral-800 rounded-xl border border-stone-200 dark:border-neutral-700 hover:border-stone-400 dark:hover:border-neutral-500 hover:shadow-md transition-all duration-200 ${a?"shadow-2xl border-2 scale-105 rotate-2 z-20":"shadow-xs"}`,...!a?s:{},children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-2.5",children:[(0,r.jsxs)("span",{className:`flex items-center gap-1 px-2.5 py-0.5 rounded-md text-[10px] font-bold tracking-wider uppercase ${p.text}`,children:[(0,r.jsx)("span",{className:`h-1.5 w-1.5 rounded-full ${p.dot}`}),g[e.priority]]}),!a&&(0,r.jsx)("div",{...o,className:"p-1 text-stone-300 group-hover:text-stone-500 rounded-md hover:bg-stone-50 dark:hover:bg-neutral-700 transition cursor-grab active:cursor-grabbing",onClick:e=>e.stopPropagation(),children:(0,r.jsx)(w,{className:"h-4 w-4"})})]}),(0,r.jsx)("h4",{className:"text-sm font-semibold text-stone-800 dark:text-neutral-100 line-clamp-2 leading-snug mb-1.5",children:e.title}),e.description?(0,r.jsx)("p",{className:"text-xs text-stone-500 dark:text-neutral-400 line-clamp-2 leading-relaxed mb-3",children:e.description}):null,(0,r.jsx)("div",{className:"border-t border-stone-100 dark:border-neutral-700 my-2"}),(0,r.jsxs)("div",{className:"flex items-center justify-between text-[11px] text-stone-400 dark:text-neutral-500 font-medium",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[e.description?(0,r.jsx)(j,{className:"h-3.5 w-3.3 text-stone-300"}):null,"done"===e.columnId?(0,r.jsxs)("span",{className:"flex items-center gap-0.5 text-emerald-600 font-bold",children:[(0,r.jsx)(N.CheckCircle2,{className:"h-3.5 w-3.5 text-emerald-500"}),u("done")]}):null,"archive"===e.columnId?(0,r.jsxs)("span",{className:"flex items-center gap-0.5 text-stone-500 font-bold",children:[(0,r.jsx)(C.AlertCircle,{className:"h-3.5 w-3.5 text-stone-400"}),u("archived")]}):null]}),e.dueDate?(0,r.jsxs)("span",{className:`flex items-center gap-1 px-1.5 py-0.5 rounded-md ${new Date(e.dueDate)<new Date&&"done"!==e.columnId&&"archive"!==e.columnId?"text-rose-600 bg-rose-50 font-bold border border-rose-100":"text-stone-500"}`,children:[(0,r.jsx)(y,{className:"h-3 w-3"}),b(e.dueDate)]}):(0,r.jsx)("span",{className:"text-[10px] text-stone-300",children:b(new Date(e.createdAt).toISOString())})]})]})}let D=[{name:"slate",headerBg:"border-t-stone-500 bg-stone-50 dark:bg-neutral-800 text-stone-700 dark:text-neutral-200"},{name:"sky",headerBg:"border-t-sky-500 bg-sky-50/40 dark:bg-sky-950/30 text-sky-700 dark:text-sky-300"},{name:"emerald",headerBg:"border-t-emerald-500 bg-emerald-50/40 dark:bg-emerald-950/30 text-emerald-700 dark:text-emerald-300"},{name:"amber",headerBg:"border-t-amber-500 bg-amber-50/40 dark:bg-amber-950/30 text-amber-700 dark:text-amber-300"},{name:"rose",headerBg:"border-t-rose-500 bg-rose-50/40 dark:bg-rose-950/30 text-rose-700 dark:text-rose-300"},{name:"purple",headerBg:"border-t-purple-500 bg-purple-50/40 dark:bg-purple-950/30 text-purple-700 dark:text-purple-300"}],T={slate:"bg-stone-400",sky:"bg-sky-400",emerald:"bg-emerald-400",amber:"bg-amber-400",rose:"bg-rose-400",purple:"bg-purple-400"};function I({column:e,tasks:t,layoutMode:s,onCardClick:n,onAddTask:i,onEditColumn:d,onDeleteColumn:c}){let{attributes:u,listeners:x,setNodeRef:p,transform:g,transition:y,isDragging:j,isOver:w}=(0,l.useSortable)({id:e.id}),N={transform:h.CSS.Transform.toString(g),transition:y},[C,S]=(0,a.useState)(!1),[M,L]=(0,a.useState)(!1),B=D.find(t=>t.name===e.color)||D[0],$=t.map(e=>e.id),A=(0,m.useTranslations)("kanban");return(0,r.jsxs)("div",{ref:p,style:N,className:`flex flex-col rounded-2xl border transition-all duration-200 dark:border-neutral-700 ${j?"opacity-30 border-dashed":""} ${w&&!j?"bg-stone-100/60 dark:bg-neutral-700/40 scale-[1.01] shadow-xs":"bg-stone-50/25 dark:bg-neutral-800/50 border-stone-200 dark:border-neutral-700"} ${"horizontal"===s?"w-full md:w-[310px] lg:w-[330px] shrink-0 h-full max-h-[75vh] md:max-h-[80vh]":"w-full"}`,children:[(0,r.jsx)("div",{...u,...x,className:`px-4 py-3.5 border-t-2 rounded-t-2xl border-b border-stone-200/80 dark:border-neutral-700 flex flex-col gap-2.5 relative cursor-grab active:cursor-grabbing select-none ${B.headerBg}`,children:(0,r.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5 flex-1 min-w-0",children:[(0,r.jsx)("span",{className:`block h-3 w-3 rounded-full ${T[e.color]||"bg-stone-400"}`}),(0,r.jsxs)("div",{className:"flex items-center gap-2 truncate flex-1 cursor-pointer",onClick:()=>d(e),children:[(0,r.jsx)("h3",{className:"text-sm font-bold truncate",children:e.title}),(0,r.jsx)("span",{className:"bg-stone-200/70 dark:bg-neutral-600 text-stone-700 dark:text-neutral-300 text-[10px] font-bold px-2 py-0.5 rounded-full min-w-[18px] text-center",children:t.length})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("button",{onClick:()=>d(e),className:"p-1 text-stone-400 hover:text-stone-700 dark:hover:text-neutral-200 hover:bg-stone-100 dark:hover:bg-neutral-700 rounded-md transition cursor-pointer",children:(0,r.jsx)(f.Edit2,{className:"h-3.5 w-3.5"})}),"vertical"===s&&(0,r.jsx)("button",{onClick:()=>S(!C),className:"p-1 text-stone-400 hover:text-stone-700 dark:hover:text-neutral-200 hover:bg-stone-100 dark:hover:bg-neutral-700 rounded-md transition cursor-pointer",children:C?(0,r.jsx)(v.ChevronDown,{className:"h-4 w-4"}):(0,r.jsx)(k.ChevronUp,{className:"h-4 w-4"})}),M?(0,r.jsxs)("div",{className:"flex items-center gap-1 bg-stone-100 dark:bg-neutral-700 p-0.5 border border-stone-200 dark:border-neutral-600 rounded-md",children:[(0,r.jsx)("button",{onClick:()=>{c(e.id),L(!1)},className:"px-1.5 py-0.5 bg-rose-600 hover:bg-rose-700 text-white font-bold text-[9px] rounded transition cursor-pointer",children:A("confirm")}),(0,r.jsx)("button",{onClick:()=>L(!1),className:"px-1 py-0.5 bg-white dark:bg-neutral-600 border border-stone-200 dark:border-neutral-500 text-stone-600 dark:text-neutral-300 text-[9px] rounded transition cursor-pointer",children:A("no")})]}):(0,r.jsx)("button",{onClick:()=>L(!0),className:"p-1 text-stone-400 hover:text-rose-600 hover:bg-rose-50 dark:hover:bg-rose-950/30 rounded-md transition cursor-pointer",children:(0,r.jsx)(b.Trash2,{className:"h-3.5 w-3.5"})})]})]})}),(!C||"horizontal"===s)&&(0,r.jsxs)("div",{className:`p-3.5 flex-1 flex flex-col gap-3 min-h-[140px] select-none ${"horizontal"===s?"overflow-y-auto":""}`,children:[(0,r.jsx)(l.SortableContext,{items:$,strategy:l.verticalListSortingStrategy,children:t.length>0?(0,r.jsx)("div",{className:`grid gap-3 ${"vertical"===s?"grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4":"grid-cols-1"}`,children:t.map(e=>(0,r.jsx)(z,{task:e,onClick:()=>n(e)},e.id))}):(0,r.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center py-6 px-4 border border-dashed border-stone-200 dark:border-neutral-600 rounded-xl text-stone-400",children:[(0,r.jsx)("p",{className:"text-xs font-medium",children:A("emptySection")}),(0,r.jsx)("p",{className:"text-[10px] mt-1",children:A("dropHint")})]})}),(0,r.jsxs)("button",{onClick:()=>i(e.id),className:"w-full flex items-center justify-center gap-1.5 py-2 px-3 mt-1 text-xs font-semibold text-stone-500 dark:text-neutral-400 hover:text-stone-900 dark:hover:text-neutral-100 bg-white dark:bg-neutral-800 border border-stone-200 dark:border-neutral-600 hover:border-stone-400 dark:hover:border-neutral-500 rounded-xl transition cursor-pointer",children:[(0,r.jsx)(o.Plus,{className:"h-4 w-4"}),A("addTask")]})]})]})}var M=e.i(989484),L=e.i(444204),B=e.i(681622),$=e.i(788010),A=e.i(817854),E=e.i(260218),P=e.i(188815),O=e.i(209988);e.i(8890);var R=e.i(29905),H=e.i(535270),F=e.i(139236),G=e.i(969490),K=e.i(267805);let U=a.createContext(void 0);var V=e.i(931709),q=e.i(122702),_=e.i(602453),W=e.i(742665);let J=a.forwardRef(function(e,t){let{className:s,defaultPressed:l=!1,disabled:o=!1,form:n,onPressedChange:i,pressed:d,render:c,type:u,value:m,nativeButton:x=!0,style:p,...g}=e,h=(0,F.useBaseUiId)(m||void 0),b=function(e=!0){let t=a.useContext(U);if(void 0===t&&!e)throw Error((0,K.default)(7));return t}(),f=b?.value??[],v=b?void 0:l,k=(o||b?.disabled)??!1,[y,j]=(0,H.useControlled)({controlled:b?void 0!==h&&f.indexOf(h)>-1:d,default:v,name:"Toggle",state:"pressed"}),w=(0,R.useStableCallback)((e,t)=>{h&&b?.setGroupValue?.(h,e,t),i?.(e,t)}),{getButtonProps:N,buttonRef:C}=(0,V.useButton)({disabled:k,native:x}),S={disabled:k,pressed:y},z=[C,t],D=[{"aria-pressed":y,onClick(e){let t=!y,r=(0,_.createChangeEventDetails)(W.REASONS.none,e.nativeEvent);w(t,r),r.isCanceled||j(t)}},g,N],T=(0,G.useRenderElement)("button",e,{enabled:!b,state:S,ref:z,props:D});return b?(0,r.jsx)(q.CompositeItem,{tag:"button",render:c,className:s,style:p,state:S,refs:z,props:D}):T});var Q=e.i(972308),X=e.i(971109);let Y=((t={}).disabled="data-disabled",t.orientation="data-orientation",t.multiple="data-multiple",t),Z={multiple:e=>e?{[Y.multiple]:""}:null},ee=a.forwardRef(function(e,t){let{defaultValue:s,disabled:l=!1,loopFocus:o=!0,onValueChange:n,orientation:i="horizontal",multiple:d=!1,value:c,className:u,render:m,style:x,...p}=e,g=(0,X.useToolbarRootContext)(!0),h=a.useMemo(()=>{if(void 0===c)return s??[]},[c,s]),b=a.useMemo(()=>void 0!==c||void 0!==s,[c,s]),f=(g?.disabled??!1)||l,[v,k]=(0,H.useControlled)({controlled:c,default:h,name:"ToggleGroup",state:"value"}),y=(0,R.useStableCallback)((e,t,r)=>{let a;if(d?(a=v.slice(),t?a.push(e):a.splice(v.indexOf(e),1)):a=t?[e]:[],Array.isArray(a)){if(n?.(a,r),r.isCanceled)return;k(a)}}),j={disabled:f,multiple:d,orientation:i},w=a.useMemo(()=>({disabled:f,orientation:i,setGroupValue:y,value:v,isValueInitialized:b}),[f,i,y,v,b]),N={role:"group"},C=(0,G.useRenderElement)("div",e,{enabled:!!g,state:j,ref:t,props:[N,p],stateAttributesMapping:Z});return(0,r.jsx)(U.Provider,{value:w,children:g?C:(0,r.jsx)(Q.CompositeRoot,{render:m,className:u,style:x,state:j,refs:[t],props:[N,p],stateAttributesMapping:Z,loopFocus:o,enableHomeAndEndKeys:!0,orientation:i})})});var et=e.i(465458);let er=(0,e.i(294237).cva)("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}}),ea=a.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});function es({className:e,variant:t,size:a,spacing:s=2,orientation:l="horizontal",children:o,...n}){return(0,r.jsx)(ee,{"data-slot":"toggle-group","data-variant":t,"data-size":a,"data-spacing":s,"data-orientation":l,style:{"--gap":s},className:(0,et.cn)("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch",e),...n,children:(0,r.jsx)(ea.Provider,{value:{variant:t,size:a,spacing:s,orientation:l},children:o})})}function el({className:e,children:t,variant:s="default",size:l="default",...o}){let n=a.useContext(ea);return(0,r.jsx)(J,{"data-slot":"toggle-group-item","data-variant":n.variant||s,"data-size":n.size||l,"data-spacing":n.spacing,className:(0,et.cn)("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",er({variant:n.variant||s,size:n.size||l}),e),...o,children:t})}let eo={low:{bg:"bg-emerald-50 text-emerald-700 border-emerald-200 hover:bg-emerald-100",activeBg:"!bg-emerald-600 !text-white !border-emerald-600",dot:"bg-emerald-500"},medium:{bg:"bg-amber-50 text-amber-700 border-amber-200 hover:bg-amber-100",activeBg:"!bg-amber-500 !text-white !border-amber-500",dot:"bg-amber-500"},high:{bg:"bg-rose-50 text-rose-700 border-rose-200 hover:bg-rose-100",activeBg:"!bg-rose-600 !text-white !border-rose-600",dot:"bg-rose-500"}};function en({task:e,columns:t,isOpen:s,onClose:l,onSave:o,onDelete:i}){let[d,c]=(0,a.useState)(""),[u,x]=(0,a.useState)(""),[p,g]=(0,a.useState)("medium"),[h,f]=(0,a.useState)(""),[v,k]=(0,a.useState)(""),[j,w]=(0,a.useState)(!1),N=(0,m.useTranslations)("kanban"),S=(0,m.useTranslations)("common");if((0,a.useEffect)(()=>{e&&(c(e.title),x(e.description),g(e.priority),f(e.columnId),k(e.dueDate||""),w(!1))},[e,s]),!s||!e)return null;let z=t=>{t.preventDefault(),d.trim()&&(o({...e,title:d.trim(),description:u.trim(),priority:p,columnId:h,dueDate:v||void 0}),l())},D={low:N("low"),medium:N("medium"),high:N("high")};return(0,r.jsx)(O.Dialog,{open:s,onOpenChange:e=>{e||l()},children:(0,r.jsxs)(O.DialogContent,{className:"sm:max-w-lg p-0 gap-0 overflow-hidden",children:[(0,r.jsx)(O.DialogHeader,{className:"px-6 py-4 border-b",children:(0,r.jsxs)(O.DialogTitle,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider flex items-center gap-1.5",children:[(0,r.jsx)(M.FileText,{className:"h-3.5 w-3.5"}),N("taskDetails")]})}),(0,r.jsxs)("form",{onSubmit:z,className:"px-6 py-5 space-y-5",children:[(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)(A.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(M.FileText,{className:"h-3.5 w-3.5"}),N("title")]}),(0,r.jsx)(B.Input,{type:"text",required:!0,placeholder:N("titlePlaceholder"),value:d,onChange:e=>c(e.target.value),className:"h-9 text-sm font-medium"})]}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)(A.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(C.AlertCircle,{className:"h-3.5 w-3.5"}),N("descriptionLabel")]}),(0,r.jsx)($.Textarea,{rows:4,placeholder:N("descriptionPlaceholder"),value:u,onChange:e=>x(e.target.value)})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)(A.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(n.LayoutGrid,{className:"h-3.5 w-3.5"}),N("sectionLabel")]}),(0,r.jsx)(P.SearchSelect,{value:h,onChange:f,options:t.map(e=>({value:e.id,label:e.title})),placeholder:N("selectSection"),allowCustom:!1})]}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)(A.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(y,{className:"h-3.5 w-3.5"}),N("dueDate")]}),(0,r.jsx)(B.Input,{type:"date",value:v,onChange:e=>k(e.target.value),className:"h-8"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)(A.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(L.Clock,{className:"h-3.5 w-3.5"}),N("priority")]}),(0,r.jsx)(es,{variant:"outline",value:[p],onValueChange:e=>{e.length&&g(e[e.length-1])},className:"grid grid-cols-3 w-full",children:["low","medium","high"].map(e=>{let t=eo[e],a=p===e;return(0,r.jsxs)(el,{value:e,"aria-label":`Priority ${e}`,className:`flex items-center justify-center gap-1.5 text-xs font-semibold ${a?t.activeBg+" !border":t.bg}`,children:[(0,r.jsx)("span",{className:`h-1.5 w-1.5 rounded-full ${a?"bg-white":t.dot}`}),D[e]]},e)})})]})]}),(0,r.jsxs)(O.DialogFooter,{className:"!-mx-0 !-mb-0 px-6 py-4 border-t flex-row justify-between sm:justify-between",children:[j?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-xs font-semibold text-rose-600 animate-pulse",children:N("deleteConfirm")}),(0,r.jsx)(E.Button,{size:"xs",variant:"destructive",onClick:()=>{i(e.id),l()},children:N("yes")}),(0,r.jsx)(E.Button,{size:"xs",variant:"outline",onClick:()=>w(!1),children:S("cancel")})]}):(0,r.jsxs)(E.Button,{size:"sm",variant:"destructive",onClick:()=>w(!0),children:[(0,r.jsx)(b.Trash2,{className:"h-4 w-4"}),S("delete")]}),(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,r.jsx)(E.Button,{size:"sm",variant:"outline",onClick:l,children:S("cancel")}),(0,r.jsx)(E.Button,{size:"sm",onClick:z,disabled:!d.trim(),children:S("save")})]})]})]})})}var ei=e.i(415360);let ed={sky:"bg-sky-400",amber:"bg-amber-400",emerald:"bg-emerald-400",rose:"bg-rose-400",purple:"bg-purple-400",slate:"bg-stone-400"};function ec({isOpen:e,onClose:t,onCreate:s,onEdit:l,editingColumn:o}){let[n,i]=(0,a.useState)(""),[c,u]=(0,a.useState)("sky"),x=(0,m.useTranslations)("kanban"),p=(0,m.useTranslations)("common");if((0,a.useEffect)(()=>{e&&(o?(i(o.title),u(o.color)):(i(""),u("sky")))},[e,o]),!e)return null;let g=e=>{e.preventDefault(),n.trim()&&(o&&l?l(o.id,n.trim(),c):s(n.trim(),c),t())};return(0,r.jsx)(O.Dialog,{open:e,onOpenChange:e=>{e||t()},children:(0,r.jsxs)(O.DialogContent,{className:"sm:max-w-md p-0 gap-0 overflow-hidden",children:[(0,r.jsx)(O.DialogHeader,{className:"px-6 py-4 border-b",children:(0,r.jsx)(O.DialogTitle,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:x(o?"editSection":"newSection")})}),(0,r.jsxs)("form",{onSubmit:g,className:"px-6 py-5 space-y-5",children:[(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)(A.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(d,{className:"h-3.5 w-3.5"}),x("sectionName")]}),(0,r.jsx)(B.Input,{type:"text",required:!0,autoFocus:!0,placeholder:x("sectionNamePlaceholder"),value:n,onChange:e=>i(e.target.value),maxLength:25,className:"h-9 text-sm font-medium"})]}),(0,r.jsxs)("div",{className:"space-y-2.5",children:[(0,r.jsxs)(A.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(ei.Sparkles,{className:"h-3.5 w-3.5"}),x("theme")]}),(0,r.jsx)("div",{className:"flex items-center gap-3 py-1",children:["sky","amber","emerald","rose","purple","slate"].map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>u(e),className:`h-7 w-7 rounded-full ${ed[e]} hover:scale-115 active:scale-95 transition-all duration-150 cursor-pointer ${c===e?"ring-2 ring-stone-800 dark:ring-neutral-100 ring-offset-2":"opacity-85 hover:opacity-100"}`},e))})]})]}),(0,r.jsxs)(O.DialogFooter,{className:"!-mx-0 !-mb-0 px-6 py-4 border-t flex-row justify-end sm:justify-end",children:[(0,r.jsx)(E.Button,{size:"sm",variant:"outline",onClick:t,children:p("cancel")}),(0,r.jsx)(E.Button,{size:"sm",onClick:g,disabled:!n.trim(),children:p(o?"save":"create")})]})]})})}e.s(["default",0,function({workspaceId:e}){let{board:t,load:i,updateLayoutMode:x,updateColumns:p,updateTasks:h,setBoard:b}=g(),[f,v]=(0,a.useState)(""),[k,y]=(0,a.useState)("all"),[j,w]=(0,a.useState)(null),[N,C]=(0,a.useState)(!1),[S,D]=(0,a.useState)(null),[T,M]=(0,a.useState)(null),[L,B]=(0,a.useState)(!1),[$,A]=(0,a.useState)(null),E=(0,m.useTranslations)("kanban"),P=(0,m.useTranslations)("common");(0,a.useEffect)(()=>{i(e)},[e,i]);let O=t?.columns??[],R=t?.tasks??[],H=t?.layoutMode??"horizontal",F=(0,s.useSensors)((0,s.useSensor)(s.PointerSensor,{activationConstraint:{distance:8}}),(0,s.useSensor)(s.TouchSensor,{activationConstraint:{delay:250,tolerance:6}}),(0,s.useSensor)(s.KeyboardSensor,{coordinateGetter:l.sortableKeyboardCoordinates})),G=R.filter(e=>{let t=e.title.toLowerCase().includes(f.toLowerCase())||e.description.toLowerCase().includes(f.toLowerCase()),r="all"===k||e.priority===k;return t&&r}),K=(0,a.useCallback)(({active:e})=>{let t=R.find(t=>t.id===e.id);if(t)D(t);else{let t=O.find(t=>t.id===e.id);t&&M(t)}},[R,O]),U=(0,a.useCallback)(({active:t,over:r})=>{if(!r)return;let a=t.id.toString(),s=r.id.toString();if(a===s)return;if(O.some(e=>e.id===a)){let t=R.find(e=>e.id===s),r=t?t.columnId:s,o=O.findIndex(e=>e.id===a),n=O.findIndex(e=>e.id===r);-1!==o&&-1!==n&&o!==n&&p(e,(0,l.arrayMove)(O,o,n));return}let o=R.find(e=>e.id===a);if(!o)return;let n=O.some(e=>e.id===s)?s:R.find(e=>e.id===s)?.columnId;n&&o.columnId!==n&&h(e,R.map(e=>e.id===a?{...e,columnId:n}:e))},[O,R,e,p,h]),V=(0,a.useCallback)(({active:t,over:r})=>{if(D(null),M(null),!r)return;let a=t.id.toString(),s=r.id.toString();if(O.some(e=>e.id===a)){let t=R.find(e=>e.id===s),r=t?t.columnId:s,o=O.findIndex(e=>e.id===a),n=O.findIndex(e=>e.id===r);-1!==o&&-1!==n&&o!==n&&p(e,(0,l.arrayMove)(O,o,n));return}if(!R.find(e=>e.id===a))return;let o=O.some(e=>e.id===s)?s:R.find(e=>e.id===s)?.columnId;if(!o)return;let n=R.findIndex(e=>e.id===a),i=R.findIndex(e=>e.id===s),d=R.map(e=>e.id===a?{...e,columnId:o}:e);-1!==i?h(e,(0,l.arrayMove)(d,n,i)):h(e,d)},[O,R,e,p,h]),q=e=>{w({id:`task-${Date.now()}`,title:E("newTask"),description:"",priority:"medium",columnId:e,order:R.filter(t=>t.columnId===e).length,createdAt:Date.now()}),C(!0)},_=t=>{p(e,O.filter(e=>e.id!==t)),h(e,R.filter(e=>e.columnId!==t))};if(!t)return(0,r.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:P("loading")});let W={all:E("priorityAll"),high:E("priorityHigh"),medium:E("priorityMedium"),low:E("priorityLow")};return(0,r.jsxs)("div",{className:"flex flex-col h-full",children:[(0,r.jsxs)("div",{className:"border-b border-stone-200 dark:border-neutral-700 px-4 py-2.5 flex flex-wrap items-center gap-2",children:[(0,r.jsxs)("div",{className:"relative flex-1 min-w-[150px] max-w-xs",children:[(0,r.jsx)(c.Search,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-stone-400"}),(0,r.jsx)("input",{type:"text",placeholder:E("searchPlaceholder"),value:f,onChange:e=>v(e.target.value),className:"w-full pl-8 pr-3 py-1.5 bg-stone-50 dark:bg-neutral-800 border border-stone-200 dark:border-neutral-600 rounded-lg text-xs font-medium focus:outline-none focus:ring-2 focus:ring-stone-500/10 transition"})]}),(0,r.jsx)("div",{className:"flex items-center gap-1 ml-auto",children:["all","high","medium","low"].map(e=>(0,r.jsx)("button",{onClick:()=>y(e),className:`px-2.5 py-1 text-[10px] rounded-full border transition font-medium cursor-pointer ${k===e?"bg-primary text-primary-foreground border-primary":"bg-white dark:bg-neutral-800 dark:border-neutral-600 dark:text-neutral-300 hover:bg-stone-50 text-stone-600 border-stone-200"}`,children:W[e]},e))}),(0,r.jsxs)("button",{onClick:()=>q(O[0]?.id||""),disabled:0===O.length,className:"flex items-center gap-1.5 px-3 py-1.5 bg-primary text-primary-foreground rounded-lg text-xs font-semibold shadow-xs transition cursor-pointer disabled:opacity-50",children:[(0,r.jsx)(o.Plus,{className:"h-3.5 w-3.5"}),E("newCard")]}),(0,r.jsxs)("button",{onClick:()=>B(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-white dark:bg-neutral-800 border border-stone-200 dark:border-neutral-600 rounded-lg text-xs font-semibold text-stone-600 dark:text-neutral-300 shadow-xs transition cursor-pointer",children:[(0,r.jsx)(d,{className:"h-3.5 w-3.5"}),E("section")]}),(0,r.jsxs)("button",{onClick:()=>x(e,"horizontal"===H?"vertical":"horizontal"),className:"flex items-center gap-1.5 px-3 py-1.5 bg-white dark:bg-neutral-800 border border-stone-200 dark:border-neutral-600 rounded-lg text-xs font-semibold text-stone-600 dark:text-neutral-300 shadow-xs transition cursor-pointer",children:[(0,r.jsx)(n.LayoutGrid,{className:"h-3.5 w-3.5"}),"horizontal"===H?E("vertical"):E("horizontal")]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden p-4",children:0===O.length?(0,r.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center py-16 border border-dashed border-stone-200 dark:border-neutral-600 rounded-3xl",children:[(0,r.jsx)(u.Layers,{className:"h-10 w-10 text-stone-300 mb-3"}),(0,r.jsx)("p",{className:"text-sm font-bold text-stone-500 dark:text-neutral-400",children:E("noSections")}),(0,r.jsx)("button",{onClick:()=>B(!0),className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-xl text-xs font-bold cursor-pointer",children:E("addSection")})]}):(0,r.jsxs)(s.DndContext,{sensors:F,onDragStart:K,onDragOver:U,onDragEnd:V,children:[(0,r.jsxs)("div",{className:`flex-1 h-full ${"horizontal"===H?"flex flex-row overflow-x-auto items-start gap-4 pb-4":"flex flex-col gap-4"}`,children:[(0,r.jsx)(l.SortableContext,{items:O.map(e=>e.id),strategy:"horizontal"===H?l.horizontalListSortingStrategy:l.verticalListSortingStrategy,children:O.map(e=>(0,r.jsx)(I,{column:e,tasks:G.filter(t=>t.columnId===e.id),layoutMode:H,onCardClick:e=>{w(e),C(!0)},onAddTask:q,onEditColumn:e=>{A(e),B(!0)},onDeleteColumn:_},e.id))}),"horizontal"===H&&(0,r.jsxs)("button",{onClick:()=>B(!0),className:"w-[280px] shrink-0 h-[120px] rounded-2xl border-2 border-dashed border-stone-200 dark:border-neutral-600 hover:border-stone-400 dark:hover:border-neutral-400 text-stone-400 hover:text-stone-800 dark:hover:text-neutral-200 flex flex-col items-center justify-center gap-1.5 transition cursor-pointer",children:[(0,r.jsx)(o.Plus,{className:"h-5 w-5"}),(0,r.jsx)("span",{className:"text-xs font-bold",children:E("newSection")})]})]}),(0,r.jsx)(s.DragOverlay,{dropAnimation:{sideEffects:(0,s.defaultDropAnimationSideEffects)({styles:{active:{opacity:"0.4"}}})},children:S?(0,r.jsx)(z,{task:S,onClick:()=>{},isOverlay:!0}):T?(0,r.jsx)("div",{className:"opacity-80 scale-98 pointer-events-none",children:(0,r.jsx)(I,{column:T,tasks:G.filter(e=>e.columnId===T.id),layoutMode:H,onCardClick:()=>{},onAddTask:()=>{},onEditColumn:()=>{},onDeleteColumn:()=>{}})}):null})]})}),(0,r.jsx)(en,{task:j,columns:O,isOpen:N,onClose:()=>{C(!1),w(null)},onSave:t=>{h(e,R.some(e=>e.id===t.id)?R.map(e=>e.id===t.id?t:e):[...R,t])},onDelete:t=>{h(e,R.filter(e=>e.id!==t))}}),(0,r.jsx)(ec,{isOpen:L,onClose:()=>{B(!1),A(null)},onCreate:(t,r)=>{let a={id:`col-${Date.now()}`,title:t,color:r,order:O.length};p(e,[...O,a])},onEdit:(t,r,a)=>{p(e,O.map(e=>e.id===t?{...e,title:r,color:a}:e))},editingColumn:$})]})}],770138)},683223,e=>{e.n(e.i(770138))}]);
|