cognova 0.1.10 → 0.2.2
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{BLIw7q7e.js → 4MiwzAAt.js} +2 -2
- package/.output/public/_nuxt/{B8gRcrNP.js → 5ZXA0Ckq.js} +1 -1
- package/.output/public/_nuxt/9IQmsEjr.js +1 -0
- package/.output/public/_nuxt/{DlmPGBGX.js → 9QnH0xQM.js} +1 -1
- package/.output/public/_nuxt/{Qi4Arc25.js → B1X4Bzcy.js} +1 -1
- package/.output/public/_nuxt/{kuWCWJ92.js → B3y_Qqox.js} +1 -1
- package/.output/public/_nuxt/{CJVO4EWp.js → B6S_ob86.js} +1 -1
- package/.output/public/_nuxt/{xdp-pGVh.js → BAIz-dEB.js} +1 -1
- package/.output/public/_nuxt/{DIF41aNz.js → BCtfQCzC.js} +1 -1
- package/.output/public/_nuxt/BIIJhjQO.js +1 -0
- package/.output/public/_nuxt/{QOhiCNXN.js → BIckl6wA.js} +1 -1
- package/.output/public/_nuxt/{CqsT2LL7.js → BJ3o57WW.js} +1 -1
- package/.output/public/_nuxt/BNetzZzF.js +1 -0
- package/.output/public/_nuxt/{C5jkgqcy.js → BOj6t-oo.js} +1 -1
- package/.output/public/_nuxt/BS0ofHJK.js +1 -0
- package/.output/public/_nuxt/{CdKHIoKZ.js → BWhMnjID.js} +1 -1
- package/.output/public/_nuxt/{BUjpjVNI.js → BYjadNrw.js} +1 -1
- package/.output/public/_nuxt/{DLkyutNs.js → BZXMQuYP.js} +1 -1
- package/.output/public/_nuxt/B_3_hrpn.js +1 -0
- package/.output/public/_nuxt/BaBZjmMC.js +1 -0
- package/.output/public/_nuxt/BaMqDm5u.js +1 -0
- package/.output/public/_nuxt/{DwSbu8wg.js → BasgsT_S.js} +1 -1
- package/.output/public/_nuxt/{B4nb4eka.js → BffWCM73.js} +1 -1
- package/.output/public/_nuxt/{BxaDmjPM.js → BhzMoffi.js} +1 -1
- package/.output/public/_nuxt/{DjzaeRs8.js → BjjCvHLT.js} +1 -1
- package/.output/public/_nuxt/{CtJTw_81.js → BlAZO7nq.js} +1 -1
- package/.output/public/_nuxt/{C6nLQFo5.js → BlhFigLL.js} +1 -1
- package/.output/public/_nuxt/{CiJs9fhO.js → Bm9LyG4F.js} +1 -1
- package/.output/public/_nuxt/BoIxv-gM.js +1 -0
- package/.output/public/_nuxt/{C8xYfk_L.js → BqKFIuRj.js} +1 -1
- package/.output/public/_nuxt/Br19oYkq.js +1 -0
- package/.output/public/_nuxt/{htEHZODo.js → BrNqhp1a.js} +3 -3
- package/.output/public/_nuxt/{DFKQfGt8.js → BsEZoHd1.js} +1 -1
- package/.output/public/_nuxt/{CmF_IsFj.js → BxXOsXrM.js} +3 -3
- package/.output/public/_nuxt/{q7M6chAB.js → BzOqrmGa.js} +3 -3
- package/.output/public/_nuxt/{DT_NtxcV.js → C0JKNMDO.js} +1 -1
- package/.output/public/_nuxt/{BOb3QiPL.js → C0kh_F7v.js} +1 -1
- package/.output/public/_nuxt/{D472oOJg.js → C3FxIITy.js} +1 -1
- package/.output/public/_nuxt/{Bh7WRSzZ.js → C4pxqdgg.js} +1 -1
- package/.output/public/_nuxt/{ByWk4RVe.js → C61KgSco.js} +1 -1
- package/.output/public/_nuxt/{TjI_tk0y.js → C69W7k2j.js} +1 -1
- package/.output/public/_nuxt/{uqOLgWHD.js → C6RC3lA1.js} +1 -1
- package/.output/public/_nuxt/{DvA5meSv.js → C6aqGHu1.js} +1 -1
- package/.output/public/_nuxt/{CQM_5Ht0.js → CJUdYEdO.js} +1 -1
- package/.output/public/_nuxt/{BzWvPP8W.js → CKkC3Ptm.js} +1 -1
- package/.output/public/_nuxt/CNnJrDvu.js +1 -0
- package/.output/public/_nuxt/{Bf2SSE6Q.js → CVJQGP1Q.js} +1 -1
- package/.output/public/_nuxt/{0p0wrrYN.js → CVgTJeSq.js} +1 -1
- package/.output/public/_nuxt/CWMUi89H.js +1 -0
- package/.output/public/_nuxt/{DUYrX_jl.js → CYP_MLH8.js} +1 -1
- package/.output/public/_nuxt/{DEDt4pMc.js → C_BdYLzz.js} +1 -1
- package/.output/public/_nuxt/{CU3_Ewk2.js → Cdt3I3Go.js} +1 -1
- package/.output/public/_nuxt/{DX5y-Dpt.js → Cdu2qGgq.js} +1 -1
- package/.output/public/_nuxt/{DQunOghN.js → CeIVm4A3.js} +1 -1
- package/.output/public/_nuxt/CeIu7z4p.js +1 -0
- package/.output/public/_nuxt/{B73gh0JS.js → Ci7UEZQh.js} +1 -1
- package/.output/public/_nuxt/{C7NKjT6R.js → CihWZmJe.js} +2 -2
- package/.output/public/_nuxt/{902fefRh.js → CitkKxhw.js} +1 -1
- package/.output/public/_nuxt/{DH_IrAcJ.js → CmzH6R-N.js} +2 -2
- package/.output/public/_nuxt/{CgPM54k_.js → Cp2MA0cm.js} +1 -1
- package/.output/public/_nuxt/{hfaTbWV_.js → CqU2XbzO.js} +1 -1
- package/.output/public/_nuxt/{CuxiR1jN.js → Cqy_L_ip.js} +1 -1
- package/.output/public/_nuxt/{BFmbqknL.js → Cr8ixbr1.js} +1 -1
- package/.output/public/_nuxt/{BkiRMhMm.js → CsJ9KhQ4.js} +1 -1
- package/.output/public/_nuxt/{Dhvv7eaa.js → CtYFj7k1.js} +1 -1
- package/.output/public/_nuxt/{DG0VCYsy.js → CtchsY6e.js} +1 -1
- package/.output/public/_nuxt/{pqmDf_cQ.js → Cvp7FI3T.js} +1 -1
- package/.output/public/_nuxt/{38G-HXi8.js → CxuZBC8n.js} +5 -5
- package/.output/public/_nuxt/D2689qk4.js +1 -0
- package/.output/public/_nuxt/{Dw5YM8ji.js → D31L7Ks6.js} +1 -1
- package/.output/public/_nuxt/{DYTkcgRd.js → D3RiUGdz.js} +1 -1
- package/.output/public/_nuxt/{Csa19Lyu.js → D3e44mCL.js} +1 -1
- package/.output/public/_nuxt/{DmXY_FiQ.js → D6t3dcTl.js} +1 -1
- package/.output/public/_nuxt/{ChNxcBlH.js → DAQhmSv4.js} +1 -1
- package/.output/public/_nuxt/{BFtDSgo7.js → DB359q8R.js} +1 -1
- package/.output/public/_nuxt/{CrUNulhU.js → DCzfkCGa.js} +1 -1
- package/.output/public/_nuxt/{Cn1H4f01.js → DG-T44jj.js} +1 -1
- package/.output/public/_nuxt/{CAGIVdiL.js → DGX0tzL8.js} +1 -1
- package/.output/public/_nuxt/DHG66LPS.js +1 -0
- package/.output/public/_nuxt/{BV0QyLX9.js → DHKLCQRG.js} +1 -1
- package/.output/public/_nuxt/{DFs-kxzi.js → DIoI0uJm.js} +1 -1
- package/.output/public/_nuxt/{koWn-xAZ.js → DJ5V-y_x.js} +1 -1
- package/.output/public/_nuxt/{HUnwr3r4.js → DJMS2og1.js} +1 -1
- package/.output/public/_nuxt/{CjfarCg3.js → DJjDvbZE.js} +1 -1
- package/.output/public/_nuxt/DK9jxJ0g.js +1 -0
- package/.output/public/_nuxt/{BjN5vE4c.js → DKZxeXDQ.js} +1 -1
- package/.output/public/_nuxt/{CcWl1F-m.js → DLETdGFL.js} +1 -1
- package/.output/public/_nuxt/DOICd-Ld.js +1 -0
- package/.output/public/_nuxt/{bX88p2Mb.js → DPEcH-gi.js} +3 -3
- package/.output/public/_nuxt/{DDqY0xzR.js → DSRrg8JT.js} +1 -1
- package/.output/public/_nuxt/{B67bSHkr.js → DTDgHTuh.js} +2 -2
- package/.output/public/_nuxt/{BYzrgyQu.js → D_3Rq1BS.js} +1 -1
- package/.output/public/_nuxt/{TQO0uTDM.js → Daz4MeL6.js} +1 -1
- package/.output/public/_nuxt/{DxkqpACx.js → Db2v8O7O.js} +1 -1
- package/.output/public/_nuxt/{CHa8PuBL.js → Db8-_gO7.js} +1 -1
- package/.output/public/_nuxt/{BUEnkhcM.js → DfQu3kEw.js} +1 -1
- package/.output/public/_nuxt/{hDpBJf9-.js → DgV-EDJ9.js} +1 -1
- package/.output/public/_nuxt/{D1CNUSvv.js → DnjGH3SQ.js} +1 -1
- package/.output/public/_nuxt/Dp2X5R2m.js +1 -0
- package/.output/public/_nuxt/DqB723Z0.js +1 -0
- package/.output/public/_nuxt/{DcIiuvW-.js → DyRelyfs.js} +1 -1
- package/.output/public/_nuxt/{sgWRawF5.js → Dy_Cq5LQ.js} +1 -1
- package/.output/public/_nuxt/{B4T7pJz5.js → DznawRFW.js} +1 -1
- package/.output/public/_nuxt/EuOqK1A6.js +1 -0
- package/.output/public/_nuxt/{Dn4PGlE2.js → FNC8XZTk.js} +1 -1
- package/.output/public/_nuxt/{ZToTf_46.js → Fukkqjkf.js} +1 -1
- package/.output/public/_nuxt/{D5aulRKh.js → FvlxxmNk.js} +2 -2
- package/.output/public/_nuxt/{C2IkB9Vg.js → IRSbVPIu.js} +1 -1
- package/.output/public/_nuxt/{QESaAMMF.js → JJ3634gV.js} +1 -1
- package/.output/public/_nuxt/{DGUr7xQ7.js → Jez9DHn7.js} +1 -1
- package/.output/public/_nuxt/{DPdR3tu5.js → KKK6HVeG.js} +1 -1
- package/.output/public/_nuxt/{D0bh5qKf.js → Lwdv_RKd.js} +1 -1
- package/.output/public/_nuxt/{BkRZ4-cg.js → Nb2jBtYT.js} +1 -1
- package/.output/public/_nuxt/Q8Ps7oN5.js +1 -0
- package/.output/public/_nuxt/SXTDhzp6.js +1 -0
- package/.output/public/_nuxt/{GC9cY_vb.js → Sg2Lwc46.js} +1 -1
- package/.output/public/_nuxt/{GI6TTFJt.js → YuTZB7sD.js} +1 -1
- package/.output/public/_nuxt/{D2_L0Ze1.js → _CYZi8HN.js} +1 -1
- package/.output/public/_nuxt/_J_7XIn-.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/a1e9100c-1a4f-4f7e-bb53-9dbe0d07effb.json +1 -0
- package/.output/public/_nuxt/{DZNG1AbU.js → cABRLVee.js} +1 -1
- package/.output/public/_nuxt/eko-0FUm.js +1 -0
- package/.output/public/_nuxt/entry.CGxIBGAf.css +1 -0
- package/.output/public/_nuxt/{BIjt_cIY.js → g20UHUCv.js} +1 -1
- package/.output/public/_nuxt/{HIlTvc-2.js → gBC9k4Qj.js} +1 -1
- package/.output/public/_nuxt/{IQoLFBX8.js → ghuJ76mD.js} +1 -1
- package/.output/public/_nuxt/{BGYWH_3A.js → iBGCpHdw.js} +2 -2
- package/.output/public/_nuxt/{uUGV1V-6.js → inmzPrjz.js} +1 -1
- package/.output/public/_nuxt/{CgHipF8Q.js → m5kGCDpI.js} +1 -1
- package/.output/public/_nuxt/{Bj0OFhNx.js → nIU2F7ia.js} +3 -3
- package/.output/public/_nuxt/{Dcv_tyzb.js → oIX-ZDN6.js} +1 -1
- package/.output/public/_nuxt/{B7NSgclV.js → pcUI-zuY.js} +1 -1
- package/.output/public/_nuxt/{DpF6VoC4.js → sf57orEk.js} +1 -1
- package/.output/public/_nuxt/{DS_mF4Ol.js → wCGVE8_e.js} +1 -1
- package/.output/public/_nuxt/{KAzeBbaL.js → xuzLdW-o.js} +1 -1
- package/.output/public/_nuxt/{ytKsJZlj.js → yNrp2XvX.js} +1 -1
- package/.output/public/_nuxt/{B3mdl0Ae.js → yuf23kh9.js} +1 -1
- package/.output/server/chunks/build/{_uuid_-DAZ5CM0C.mjs → _uuid_-0UgdUhfY.mjs} +6 -5
- package/.output/server/chunks/build/{_uuid_-DAZ5CM0C.mjs.map → _uuid_-0UgdUhfY.mjs.map} +1 -1
- package/.output/server/chunks/build/chat-CZMiB68R.mjs.map +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/dashboard-YEscLBQN.mjs +1109 -0
- package/.output/server/chunks/build/dashboard-YEscLBQN.mjs.map +1 -0
- package/.output/server/chunks/build/{docs-CFAI1clt.mjs → docs-Dk2JnYq3.mjs} +6 -5
- package/.output/server/chunks/build/{docs-CFAI1clt.mjs.map → docs-Dk2JnYq3.mjs.map} +1 -1
- package/.output/server/chunks/build/server.mjs +3 -3
- package/.output/server/chunks/build/settings-DdkKCJ00.mjs +1 -1
- package/.output/server/chunks/build/styles.mjs +4 -4
- package/.output/server/chunks/build/{CodeEditorFallback-DfYly7f5.mjs → useCopyToClipboard-vi6FYyyZ.mjs} +29 -2
- package/.output/server/chunks/build/useCopyToClipboard-vi6FYyyZ.mjs.map +1 -0
- package/.output/server/chunks/build/useNotificationBus-BG5JNQf1.mjs +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +819 -824
- package/.output/server/chunks/routes/api/dashboard/overview.get.mjs +149 -0
- package/.output/server/chunks/routes/api/dashboard/overview.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/documents/_id/public.get.mjs +1 -1
- package/.output/server/chunks/routes/api/documents/_id/restore.post.mjs +1 -1
- package/.output/server/chunks/routes/api/documents/by-path.post.mjs +1 -1
- package/.output/server/chunks/routes/api/documents/index.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/documents/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/fs/delete.post.mjs +1 -1
- package/.output/server/chunks/routes/api/fs/list.get.mjs +1 -1
- package/.output/server/chunks/routes/api/fs/mkdir.post.mjs +1 -1
- package/.output/server/chunks/routes/api/fs/move.post.mjs +1 -1
- package/.output/server/chunks/routes/api/fs/read.post.mjs +1 -1
- package/.output/server/chunks/routes/api/fs/rename.post.mjs +1 -1
- package/.output/server/chunks/routes/api/fs/write.post.mjs +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +1 -1
- package/.output/server/chunks/routes/api/home.get.mjs +1 -1
- package/.output/server/chunks/routes/api/hooks/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/hooks/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/hooks/stats.get.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get3.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get4.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get5.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get6.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get7.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get8.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post2.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post3.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post4.mjs +1 -1
- package/.output/server/chunks/routes/api/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/memory/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/memory/context.get.mjs +1 -1
- package/.output/server/chunks/routes/api/memory/extract.post.mjs +1 -1
- package/.output/server/chunks/routes/api/memory/search.get.mjs +1 -1
- package/.output/server/chunks/routes/api/memory/store.post.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/index.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/secrets/_key_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/secrets/_key_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/secrets/_key_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/tasks/_id/restore.post.mjs +1 -1
- package/.output/server/chunks/routes/api/tasks/index.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/tasks/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/tasks/tags.get.mjs +1 -1
- package/.output/server/chunks/routes/api/usage/stats.get.mjs +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/Claude/CLAUDE.md +9 -4
- package/Claude/skills/environment/SKILL.md +6 -0
- package/Claude/skills/memory/SKILL.md +6 -0
- package/Claude/skills/project/SKILL.md +6 -0
- package/Claude/skills/secret/SKILL.md +85 -0
- package/Claude/skills/secret/secret.py +146 -0
- package/Claude/skills/skill-creator/SKILL.md +30 -0
- package/Claude/skills/task/SKILL.md +6 -0
- package/app/components/dashboard/RecentChats.vue +93 -0
- package/app/components/dashboard/RecentDocs.vue +108 -0
- package/app/components/dashboard/StatCards.vue +82 -0
- package/app/components/dashboard/UpcomingTasks.vue +119 -0
- package/app/components/dashboard/UsageSummary.vue +94 -0
- package/app/components/editor/DocumentEditor.vue +5 -3
- package/app/components/skills/Card.vue +82 -0
- package/app/components/skills/CreateModal.vue +156 -0
- package/app/components/skills/Editor.vue +135 -0
- package/app/components/skills/FileTree.vue +336 -0
- package/app/components/skills/LibraryCard.vue +122 -0
- package/app/components/skills/RenameModal.vue +84 -0
- package/app/composables/useCopyToClipboard.ts +37 -0
- package/app/layouts/dashboard.vue +7 -0
- package/app/pages/chat.vue +11 -1
- package/app/pages/dashboard.vue +65 -64
- package/app/pages/skills/[name].vue +198 -0
- package/app/pages/skills/index.vue +157 -0
- package/app/pages/skills/library.vue +209 -0
- package/app/pages/view/[uuid].vue +4 -3
- package/dist/cli/index.js +23 -23
- package/nuxt.config.ts +9 -0
- package/package.json +1 -1
- package/server/api/dashboard/overview.get.ts +133 -0
- package/server/api/skills/[name]/files/create.post.ts +45 -0
- package/server/api/skills/[name]/files/delete.post.ts +45 -0
- package/server/api/skills/[name]/files/index.get.ts +28 -0
- package/server/api/skills/[name]/files/read.post.ts +41 -0
- package/server/api/skills/[name]/files/write.post.ts +42 -0
- package/server/api/skills/[name]/index.get.ts +54 -0
- package/server/api/skills/[name]/rename.post.ts +64 -0
- package/server/api/skills/[name]/toggle.post.ts +32 -0
- package/server/api/skills/create.post.ts +51 -0
- package/server/api/skills/generate.post.ts +126 -0
- package/server/api/skills/index.get.ts +57 -0
- package/server/api/skills/library/check-updates.get.ts +46 -0
- package/server/api/skills/library/index.get.ts +56 -0
- package/server/api/skills/library/install.post.ts +73 -0
- package/server/db/schema.ts +17 -0
- package/server/drizzle/migrations/0012_good_deadpool.sql +12 -0
- package/server/drizzle/migrations/0013_swift_snowbird.sql +1 -0
- package/server/drizzle/migrations/meta/0012_snapshot.json +1713 -0
- package/server/drizzle/migrations/meta/0013_snapshot.json +1720 -0
- package/server/drizzle/migrations/meta/_journal.json +14 -0
- package/server/middleware/auth.ts +0 -1
- package/server/plugins/05.skills-catalog.ts +105 -0
- package/server/utils/skills-path.ts +197 -0
- package/shared/types/index.ts +102 -0
- package/.output/public/_nuxt/BAWOIJ__.js +0 -1
- package/.output/public/_nuxt/B_paJhyq.js +0 -1
- package/.output/public/_nuxt/BdYiqlvd.js +0 -1
- package/.output/public/_nuxt/BpiqBbAF.js +0 -1
- package/.output/public/_nuxt/BqDfJ2hd.js +0 -1
- package/.output/public/_nuxt/BxgB0-mq.js +0 -1
- package/.output/public/_nuxt/C1hs5K_e.js +0 -1
- package/.output/public/_nuxt/C4Ncdd9K.js +0 -1
- package/.output/public/_nuxt/CAQ2bGHm.js +0 -1
- package/.output/public/_nuxt/CCpQAJpz.js +0 -1
- package/.output/public/_nuxt/CXXD-owe.js +0 -1
- package/.output/public/_nuxt/CcRijyCZ.js +0 -1
- package/.output/public/_nuxt/CoEfPCKj.js +0 -1
- package/.output/public/_nuxt/D08h2e32.js +0 -1
- package/.output/public/_nuxt/D_t_j6EB.js +0 -1
- package/.output/public/_nuxt/DaZy6Ki2.js +0 -1
- package/.output/public/_nuxt/DdrudNqf.js +0 -1
- package/.output/public/_nuxt/DdtmJxeb.js +0 -1
- package/.output/public/_nuxt/Dgv5fJ6Q.js +0 -1
- package/.output/public/_nuxt/DhIluGHO.js +0 -1
- package/.output/public/_nuxt/DuRk5Dc_.js +0 -1
- package/.output/public/_nuxt/VFwvl1mU.js +0 -1
- package/.output/public/_nuxt/builds/meta/555978fa-172f-4d0d-8238-88f8b610f712.json +0 -1
- package/.output/public/_nuxt/entry.DPbNaeQT.css +0 -1
- package/.output/public/_nuxt/hZV7Z8Ig.js +0 -1
- package/.output/public/_nuxt/lK0inMQ6.js +0 -1
- package/.output/server/chunks/build/CodeEditorFallback-DfYly7f5.mjs.map +0 -1
- package/.output/server/chunks/build/dashboard-DtbGchTa.mjs +0 -277
- package/.output/server/chunks/build/dashboard-DtbGchTa.mjs.map +0 -1
- /package/.output/public/_nuxt/{language-detection.Be_IvFWy.css → useCopyToClipboard.Be_IvFWy.css} +0 -0
package/app/pages/dashboard.vue
CHANGED
|
@@ -1,80 +1,81 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { DashboardOverview } from '~~/shared/types'
|
|
3
|
+
|
|
2
4
|
definePageMeta({
|
|
3
5
|
layout: 'dashboard',
|
|
4
6
|
middleware: 'auth'
|
|
5
7
|
})
|
|
8
|
+
|
|
9
|
+
const { user } = useAuth()
|
|
10
|
+
const overview = ref<DashboardOverview | null>(null)
|
|
11
|
+
const loading = ref(true)
|
|
12
|
+
|
|
13
|
+
async function loadOverview() {
|
|
14
|
+
loading.value = true
|
|
15
|
+
try {
|
|
16
|
+
const res = await $fetch<{ data: DashboardOverview }>('/api/dashboard/overview')
|
|
17
|
+
overview.value = res.data
|
|
18
|
+
} catch {
|
|
19
|
+
// Silently fail — cards show empty state
|
|
20
|
+
} finally {
|
|
21
|
+
loading.value = false
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
onMounted(() => {
|
|
26
|
+
loadOverview()
|
|
27
|
+
})
|
|
6
28
|
</script>
|
|
7
29
|
|
|
8
30
|
<template>
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<template #
|
|
15
|
-
<
|
|
31
|
+
<div class="contents">
|
|
32
|
+
<UDashboardPanel
|
|
33
|
+
id="dashboard"
|
|
34
|
+
grow
|
|
35
|
+
>
|
|
36
|
+
<template #header>
|
|
37
|
+
<UDashboardNavbar title="Dashboard" />
|
|
16
38
|
</template>
|
|
17
|
-
</UDashboardNavbar>
|
|
18
|
-
|
|
19
|
-
<div class="p-6 overflow-auto">
|
|
20
|
-
<div class="space-y-6">
|
|
21
|
-
<div>
|
|
22
|
-
<h1 class="text-2xl font-bold">
|
|
23
|
-
Welcome to Cognova
|
|
24
|
-
</h1>
|
|
25
|
-
<p class="text-muted mt-1">
|
|
26
|
-
Your personal knowledge management system.
|
|
27
|
-
</p>
|
|
28
|
-
</div>
|
|
29
39
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<span class="font-semibold">Tasks Due Today</span>
|
|
39
|
-
</div>
|
|
40
|
-
</template>
|
|
41
|
-
<p class="text-muted text-sm">
|
|
42
|
-
No tasks due today.
|
|
40
|
+
<template #body>
|
|
41
|
+
<div class="p-4 space-y-6">
|
|
42
|
+
<div>
|
|
43
|
+
<h1 class="text-2xl font-bold">
|
|
44
|
+
Welcome back{{ user?.name ? `, ${user.name}` : '' }}
|
|
45
|
+
</h1>
|
|
46
|
+
<p class="text-muted mt-1 text-sm">
|
|
47
|
+
Here's what's happening in your workspace.
|
|
43
48
|
</p>
|
|
44
|
-
</
|
|
49
|
+
</div>
|
|
45
50
|
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
<DashboardStatCards
|
|
52
|
+
:overview="overview"
|
|
53
|
+
:loading="loading"
|
|
54
|
+
/>
|
|
55
|
+
|
|
56
|
+
<div class="grid gap-6 lg:grid-cols-2">
|
|
57
|
+
<DashboardUpcomingTasks
|
|
58
|
+
:tasks="overview?.tasks.upcoming ?? []"
|
|
59
|
+
:loading="loading"
|
|
60
|
+
/>
|
|
61
|
+
<DashboardRecentChats
|
|
62
|
+
:conversations="overview?.conversations ?? []"
|
|
63
|
+
:loading="loading"
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
60
66
|
|
|
61
|
-
<
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
</div>
|
|
70
|
-
</template>
|
|
71
|
-
<UInput
|
|
72
|
-
placeholder="What's on your mind?"
|
|
73
|
-
class="mt-2"
|
|
67
|
+
<div class="grid gap-6 lg:grid-cols-2">
|
|
68
|
+
<DashboardRecentDocs
|
|
69
|
+
:documents="overview?.documents ?? []"
|
|
70
|
+
:loading="loading"
|
|
71
|
+
/>
|
|
72
|
+
<DashboardUsageSummary
|
|
73
|
+
:usage="overview?.usage ?? { totalCost7d: 0, totalCalls7d: 0, totalInputTokens7d: 0, totalOutputTokens7d: 0 }"
|
|
74
|
+
:loading="loading"
|
|
74
75
|
/>
|
|
75
|
-
</
|
|
76
|
+
</div>
|
|
76
77
|
</div>
|
|
77
|
-
</
|
|
78
|
-
</
|
|
79
|
-
</
|
|
78
|
+
</template>
|
|
79
|
+
</UDashboardPanel>
|
|
80
|
+
</div>
|
|
80
81
|
</template>
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SkillDetail } from '~~/shared/types'
|
|
3
|
+
|
|
4
|
+
definePageMeta({
|
|
5
|
+
layout: 'dashboard',
|
|
6
|
+
middleware: 'auth'
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
const route = useRoute()
|
|
10
|
+
const router = useRouter()
|
|
11
|
+
const toast = useToast()
|
|
12
|
+
|
|
13
|
+
const skillName = computed(() => route.params.name as string)
|
|
14
|
+
const skill = ref<SkillDetail | null>(null)
|
|
15
|
+
const loading = ref(true)
|
|
16
|
+
const selectedFile = ref('')
|
|
17
|
+
const renameOpen = ref(false)
|
|
18
|
+
|
|
19
|
+
async function loadSkill() {
|
|
20
|
+
loading.value = true
|
|
21
|
+
try {
|
|
22
|
+
const res = await $fetch<{ data: SkillDetail }>(`/api/skills/${skillName.value}`)
|
|
23
|
+
skill.value = res.data
|
|
24
|
+
|
|
25
|
+
// Auto-select SKILL.md if exists
|
|
26
|
+
if (!selectedFile.value) {
|
|
27
|
+
const skillMd = res.data.files.find(f => f.name === 'SKILL.md')
|
|
28
|
+
if (skillMd) selectedFile.value = skillMd.path
|
|
29
|
+
}
|
|
30
|
+
} catch {
|
|
31
|
+
toast.add({ title: 'Skill not found', color: 'error' })
|
|
32
|
+
router.push('/skills')
|
|
33
|
+
} finally {
|
|
34
|
+
loading.value = false
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async function handleToggle() {
|
|
39
|
+
if (!skill.value || skill.value.core) return
|
|
40
|
+
try {
|
|
41
|
+
const res = await $fetch<{ data: { active: boolean } }>(`/api/skills/${skillName.value}/toggle`, {
|
|
42
|
+
method: 'POST'
|
|
43
|
+
})
|
|
44
|
+
skill.value.active = res.data.active
|
|
45
|
+
toast.add({
|
|
46
|
+
title: `${skillName.value} ${res.data.active ? 'enabled' : 'disabled'}`,
|
|
47
|
+
color: 'success'
|
|
48
|
+
})
|
|
49
|
+
} catch {
|
|
50
|
+
toast.add({ title: 'Failed to toggle skill', color: 'error' })
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function handleRenamed(newName: string) {
|
|
55
|
+
router.replace(`/skills/${newName}`)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
onMounted(() => loadSkill())
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<template>
|
|
62
|
+
<div class="flex flex-1 min-w-0">
|
|
63
|
+
<!-- File tree sidebar -->
|
|
64
|
+
<UDashboardPanel
|
|
65
|
+
id="skill-filetree"
|
|
66
|
+
collapsible
|
|
67
|
+
resizable
|
|
68
|
+
:min-size="12"
|
|
69
|
+
:default-size="16"
|
|
70
|
+
:max-size="24"
|
|
71
|
+
class="hidden lg:flex"
|
|
72
|
+
>
|
|
73
|
+
<template #header>
|
|
74
|
+
<UDashboardNavbar>
|
|
75
|
+
<template #title>
|
|
76
|
+
<span class="text-sm font-medium truncate">Files</span>
|
|
77
|
+
</template>
|
|
78
|
+
</UDashboardNavbar>
|
|
79
|
+
</template>
|
|
80
|
+
|
|
81
|
+
<template #body>
|
|
82
|
+
<div
|
|
83
|
+
v-if="loading"
|
|
84
|
+
class="p-4 space-y-2"
|
|
85
|
+
>
|
|
86
|
+
<USkeleton
|
|
87
|
+
v-for="i in 4"
|
|
88
|
+
:key="i"
|
|
89
|
+
class="h-6 w-full"
|
|
90
|
+
/>
|
|
91
|
+
</div>
|
|
92
|
+
<SkillsFileTree
|
|
93
|
+
v-else-if="skill"
|
|
94
|
+
:skill-name="skillName"
|
|
95
|
+
:files="skill.files"
|
|
96
|
+
:selected-path="selectedFile"
|
|
97
|
+
@select="selectedFile = $event"
|
|
98
|
+
@refresh="loadSkill"
|
|
99
|
+
/>
|
|
100
|
+
</template>
|
|
101
|
+
</UDashboardPanel>
|
|
102
|
+
|
|
103
|
+
<!-- Editor panel -->
|
|
104
|
+
<UDashboardPanel
|
|
105
|
+
id="skill-editor"
|
|
106
|
+
grow
|
|
107
|
+
:ui="{ body: '!p-0' }"
|
|
108
|
+
>
|
|
109
|
+
<template #header>
|
|
110
|
+
<UDashboardNavbar>
|
|
111
|
+
<template #title>
|
|
112
|
+
<NuxtLink
|
|
113
|
+
to="/skills"
|
|
114
|
+
class="text-muted hover:text-default transition-colors"
|
|
115
|
+
>
|
|
116
|
+
<UIcon
|
|
117
|
+
name="i-lucide-arrow-left"
|
|
118
|
+
class="size-4"
|
|
119
|
+
/>
|
|
120
|
+
</NuxtLink>
|
|
121
|
+
<span class="font-medium">{{ skillName }}</span>
|
|
122
|
+
<UBadge
|
|
123
|
+
v-if="skill?.core"
|
|
124
|
+
variant="subtle"
|
|
125
|
+
color="primary"
|
|
126
|
+
size="xs"
|
|
127
|
+
>
|
|
128
|
+
Core
|
|
129
|
+
</UBadge>
|
|
130
|
+
<UBadge
|
|
131
|
+
v-if="skill && !skill.active"
|
|
132
|
+
variant="subtle"
|
|
133
|
+
color="neutral"
|
|
134
|
+
size="xs"
|
|
135
|
+
>
|
|
136
|
+
Disabled
|
|
137
|
+
</UBadge>
|
|
138
|
+
</template>
|
|
139
|
+
<template #right>
|
|
140
|
+
<USwitch
|
|
141
|
+
v-if="skill && !skill.core"
|
|
142
|
+
:model-value="skill.active"
|
|
143
|
+
size="sm"
|
|
144
|
+
@update:model-value="handleToggle"
|
|
145
|
+
/>
|
|
146
|
+
<UButton
|
|
147
|
+
v-if="skill && !skill.core"
|
|
148
|
+
icon="i-lucide-pencil"
|
|
149
|
+
variant="ghost"
|
|
150
|
+
color="neutral"
|
|
151
|
+
size="sm"
|
|
152
|
+
@click="renameOpen = true"
|
|
153
|
+
/>
|
|
154
|
+
</template>
|
|
155
|
+
</UDashboardNavbar>
|
|
156
|
+
</template>
|
|
157
|
+
|
|
158
|
+
<template #body>
|
|
159
|
+
<div
|
|
160
|
+
v-if="loading"
|
|
161
|
+
class="flex-1 flex items-center justify-center h-full"
|
|
162
|
+
>
|
|
163
|
+
<UIcon
|
|
164
|
+
name="i-lucide-loader-2"
|
|
165
|
+
class="size-6 animate-spin text-dimmed"
|
|
166
|
+
/>
|
|
167
|
+
</div>
|
|
168
|
+
<div
|
|
169
|
+
v-else-if="!selectedFile"
|
|
170
|
+
class="flex-1 flex items-center justify-center h-full text-dimmed"
|
|
171
|
+
>
|
|
172
|
+
<div class="text-center">
|
|
173
|
+
<UIcon
|
|
174
|
+
name="i-lucide-file-code"
|
|
175
|
+
class="size-12 mx-auto mb-4 opacity-50"
|
|
176
|
+
/>
|
|
177
|
+
<p>Select a file to edit</p>
|
|
178
|
+
</div>
|
|
179
|
+
</div>
|
|
180
|
+
<SkillsEditor
|
|
181
|
+
v-else
|
|
182
|
+
:key="selectedFile"
|
|
183
|
+
:skill-name="skillName"
|
|
184
|
+
:file-path="selectedFile"
|
|
185
|
+
@saved="loadSkill"
|
|
186
|
+
/>
|
|
187
|
+
</template>
|
|
188
|
+
</UDashboardPanel>
|
|
189
|
+
|
|
190
|
+
<SkillsRenameModal
|
|
191
|
+
v-if="skill"
|
|
192
|
+
:open="renameOpen"
|
|
193
|
+
:current-name="skillName"
|
|
194
|
+
@update:open="renameOpen = $event"
|
|
195
|
+
@renamed="handleRenamed"
|
|
196
|
+
/>
|
|
197
|
+
</div>
|
|
198
|
+
</template>
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SkillListItem } from '~~/shared/types'
|
|
3
|
+
|
|
4
|
+
definePageMeta({
|
|
5
|
+
layout: 'dashboard',
|
|
6
|
+
middleware: 'auth'
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
const toast = useToast()
|
|
10
|
+
const skills = ref<SkillListItem[]>([])
|
|
11
|
+
const loading = ref(true)
|
|
12
|
+
const search = ref('')
|
|
13
|
+
const createOpen = ref(false)
|
|
14
|
+
|
|
15
|
+
const filteredSkills = computed(() => {
|
|
16
|
+
if (!search.value.trim()) return skills.value
|
|
17
|
+
const q = search.value.toLowerCase()
|
|
18
|
+
return skills.value.filter(s =>
|
|
19
|
+
s.name.toLowerCase().includes(q)
|
|
20
|
+
|| s.description.toLowerCase().includes(q)
|
|
21
|
+
)
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
async function loadSkills() {
|
|
25
|
+
loading.value = true
|
|
26
|
+
try {
|
|
27
|
+
const res = await $fetch<{ data: SkillListItem[] }>('/api/skills')
|
|
28
|
+
skills.value = res.data
|
|
29
|
+
} catch {
|
|
30
|
+
toast.add({ title: 'Failed to load skills', color: 'error' })
|
|
31
|
+
} finally {
|
|
32
|
+
loading.value = false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async function handleToggle(name: string) {
|
|
37
|
+
try {
|
|
38
|
+
const res = await $fetch<{ data: { name: string, active: boolean } }>(`/api/skills/${name}/toggle`, {
|
|
39
|
+
method: 'POST'
|
|
40
|
+
})
|
|
41
|
+
const skill = skills.value.find(s => s.name === name)
|
|
42
|
+
if (skill) skill.active = res.data.active
|
|
43
|
+
toast.add({
|
|
44
|
+
title: `${name} ${res.data.active ? 'enabled' : 'disabled'}`,
|
|
45
|
+
color: 'success'
|
|
46
|
+
})
|
|
47
|
+
} catch {
|
|
48
|
+
toast.add({ title: `Failed to toggle ${name}`, color: 'error' })
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
onMounted(() => loadSkills())
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<template>
|
|
56
|
+
<div class="flex flex-1 min-w-0">
|
|
57
|
+
<UDashboardPanel
|
|
58
|
+
id="skills-main"
|
|
59
|
+
grow
|
|
60
|
+
>
|
|
61
|
+
<template #header>
|
|
62
|
+
<UDashboardNavbar title="Skills">
|
|
63
|
+
<template #right>
|
|
64
|
+
<UInput
|
|
65
|
+
v-model="search"
|
|
66
|
+
icon="i-lucide-search"
|
|
67
|
+
placeholder="Search skills..."
|
|
68
|
+
size="sm"
|
|
69
|
+
class="w-48"
|
|
70
|
+
/>
|
|
71
|
+
<NuxtLink to="/skills/library">
|
|
72
|
+
<UButton
|
|
73
|
+
icon="i-lucide-library"
|
|
74
|
+
variant="ghost"
|
|
75
|
+
color="neutral"
|
|
76
|
+
size="sm"
|
|
77
|
+
>
|
|
78
|
+
Library
|
|
79
|
+
</UButton>
|
|
80
|
+
</NuxtLink>
|
|
81
|
+
<UButton
|
|
82
|
+
icon="i-lucide-plus"
|
|
83
|
+
size="sm"
|
|
84
|
+
@click="createOpen = true"
|
|
85
|
+
>
|
|
86
|
+
Create Skill
|
|
87
|
+
</UButton>
|
|
88
|
+
</template>
|
|
89
|
+
</UDashboardNavbar>
|
|
90
|
+
</template>
|
|
91
|
+
|
|
92
|
+
<template #body>
|
|
93
|
+
<div class="p-4">
|
|
94
|
+
<!-- Loading -->
|
|
95
|
+
<div
|
|
96
|
+
v-if="loading"
|
|
97
|
+
class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3"
|
|
98
|
+
>
|
|
99
|
+
<div
|
|
100
|
+
v-for="i in 6"
|
|
101
|
+
:key="i"
|
|
102
|
+
class="p-4 rounded-lg border border-default bg-elevated/50"
|
|
103
|
+
>
|
|
104
|
+
<USkeleton class="h-4 w-24 mb-2" />
|
|
105
|
+
<USkeleton class="h-3 w-full mb-1" />
|
|
106
|
+
<USkeleton class="h-3 w-2/3" />
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<!-- Empty -->
|
|
111
|
+
<div
|
|
112
|
+
v-else-if="skills.length === 0"
|
|
113
|
+
class="flex flex-col items-center justify-center py-16 text-dimmed"
|
|
114
|
+
>
|
|
115
|
+
<UIcon
|
|
116
|
+
name="i-lucide-puzzle"
|
|
117
|
+
class="size-12 mb-4"
|
|
118
|
+
/>
|
|
119
|
+
<p class="text-lg font-medium">
|
|
120
|
+
No skills found
|
|
121
|
+
</p>
|
|
122
|
+
<p class="text-sm mt-1">
|
|
123
|
+
Skills are loaded from ~/.claude/skills/
|
|
124
|
+
</p>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
<!-- No results -->
|
|
128
|
+
<div
|
|
129
|
+
v-else-if="filteredSkills.length === 0"
|
|
130
|
+
class="text-center py-12 text-muted text-sm"
|
|
131
|
+
>
|
|
132
|
+
No skills matching "{{ search }}"
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<!-- Grid -->
|
|
136
|
+
<div
|
|
137
|
+
v-else
|
|
138
|
+
class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3"
|
|
139
|
+
>
|
|
140
|
+
<SkillsCard
|
|
141
|
+
v-for="skill in filteredSkills"
|
|
142
|
+
:key="skill.name"
|
|
143
|
+
:skill="skill"
|
|
144
|
+
@toggle="handleToggle"
|
|
145
|
+
/>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</template>
|
|
149
|
+
</UDashboardPanel>
|
|
150
|
+
|
|
151
|
+
<SkillsCreateModal
|
|
152
|
+
:open="createOpen"
|
|
153
|
+
@update:open="createOpen = $event"
|
|
154
|
+
@created="loadSkills"
|
|
155
|
+
/>
|
|
156
|
+
</div>
|
|
157
|
+
</template>
|