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
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { DashboardOverview } from '~~/shared/types'
|
|
3
|
+
|
|
4
|
+
defineProps<{
|
|
5
|
+
usage: DashboardOverview['usage']
|
|
6
|
+
loading?: boolean
|
|
7
|
+
}>()
|
|
8
|
+
|
|
9
|
+
function formatCurrency(value: number): string {
|
|
10
|
+
if (value < 0.01 && value > 0) return '<$0.01'
|
|
11
|
+
return `$${value.toFixed(2)}`
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function formatTokens(value: number): string {
|
|
15
|
+
if (value >= 1_000_000) return `${(value / 1_000_000).toFixed(1)}M`
|
|
16
|
+
if (value >= 1_000) return `${(value / 1_000).toFixed(1)}K`
|
|
17
|
+
return String(value)
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<UCard>
|
|
23
|
+
<template #header>
|
|
24
|
+
<div class="flex items-center justify-between">
|
|
25
|
+
<div class="flex items-center gap-2">
|
|
26
|
+
<UIcon
|
|
27
|
+
name="i-lucide-bar-chart-3"
|
|
28
|
+
class="size-4 text-primary"
|
|
29
|
+
/>
|
|
30
|
+
<span class="text-sm font-medium">Token Usage (7d)</span>
|
|
31
|
+
</div>
|
|
32
|
+
<UButton
|
|
33
|
+
to="/usage"
|
|
34
|
+
variant="ghost"
|
|
35
|
+
size="xs"
|
|
36
|
+
trailing-icon="i-lucide-arrow-right"
|
|
37
|
+
>
|
|
38
|
+
Details
|
|
39
|
+
</UButton>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<div
|
|
44
|
+
v-if="loading"
|
|
45
|
+
class="grid grid-cols-2 gap-4"
|
|
46
|
+
>
|
|
47
|
+
<div
|
|
48
|
+
v-for="i in 4"
|
|
49
|
+
:key="i"
|
|
50
|
+
>
|
|
51
|
+
<USkeleton class="h-3 w-12 mb-1" />
|
|
52
|
+
<USkeleton class="h-6 w-16" />
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<div
|
|
57
|
+
v-else
|
|
58
|
+
class="grid grid-cols-2 gap-4"
|
|
59
|
+
>
|
|
60
|
+
<div>
|
|
61
|
+
<p class="text-xs text-muted mb-0.5">
|
|
62
|
+
Total Cost
|
|
63
|
+
</p>
|
|
64
|
+
<p class="text-lg font-semibold">
|
|
65
|
+
{{ formatCurrency(usage.totalCost7d) }}
|
|
66
|
+
</p>
|
|
67
|
+
</div>
|
|
68
|
+
<div>
|
|
69
|
+
<p class="text-xs text-muted mb-0.5">
|
|
70
|
+
API Calls
|
|
71
|
+
</p>
|
|
72
|
+
<p class="text-lg font-semibold">
|
|
73
|
+
{{ usage.totalCalls7d }}
|
|
74
|
+
</p>
|
|
75
|
+
</div>
|
|
76
|
+
<div>
|
|
77
|
+
<p class="text-xs text-muted mb-0.5">
|
|
78
|
+
Input Tokens
|
|
79
|
+
</p>
|
|
80
|
+
<p class="text-lg font-semibold">
|
|
81
|
+
{{ formatTokens(usage.totalInputTokens7d) }}
|
|
82
|
+
</p>
|
|
83
|
+
</div>
|
|
84
|
+
<div>
|
|
85
|
+
<p class="text-xs text-muted mb-0.5">
|
|
86
|
+
Output Tokens
|
|
87
|
+
</p>
|
|
88
|
+
<p class="text-lg font-semibold">
|
|
89
|
+
{{ formatTokens(usage.totalOutputTokens7d) }}
|
|
90
|
+
</p>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</UCard>
|
|
94
|
+
</template>
|
|
@@ -122,15 +122,17 @@ function handleShareClick() {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
const { copy } = useCopyToClipboard()
|
|
126
|
+
|
|
125
127
|
async function copyShareLink() {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
const ok = await copy(shareUrl.value)
|
|
129
|
+
if (ok) {
|
|
128
130
|
linkCopied.value = true
|
|
129
131
|
toast.add({ title: 'Link copied!', icon: 'i-lucide-check', color: 'success' })
|
|
130
132
|
setTimeout(() => {
|
|
131
133
|
linkCopied.value = false
|
|
132
134
|
}, 2000)
|
|
133
|
-
}
|
|
135
|
+
} else {
|
|
134
136
|
toast.add({ title: 'Failed to copy link', icon: 'i-lucide-x', color: 'error' })
|
|
135
137
|
}
|
|
136
138
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SkillListItem } from '~~/shared/types'
|
|
3
|
+
|
|
4
|
+
const props = defineProps<{
|
|
5
|
+
skill: SkillListItem
|
|
6
|
+
}>()
|
|
7
|
+
|
|
8
|
+
const emit = defineEmits<{
|
|
9
|
+
toggle: [name: string]
|
|
10
|
+
}>()
|
|
11
|
+
|
|
12
|
+
const toggling = ref(false)
|
|
13
|
+
|
|
14
|
+
async function handleToggle() {
|
|
15
|
+
toggling.value = true
|
|
16
|
+
emit('toggle', props.skill.name)
|
|
17
|
+
toggling.value = false
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<NuxtLink
|
|
23
|
+
:to="`/skills/${skill.name}`"
|
|
24
|
+
class="block p-4 rounded-lg border border-default bg-elevated/50 hover:bg-elevated transition-colors"
|
|
25
|
+
>
|
|
26
|
+
<div class="flex items-start justify-between gap-3">
|
|
27
|
+
<div class="flex-1 min-w-0">
|
|
28
|
+
<div class="flex items-center gap-2 mb-1">
|
|
29
|
+
<span class="font-medium text-sm truncate">{{ skill.name }}</span>
|
|
30
|
+
<UBadge
|
|
31
|
+
v-if="skill.core"
|
|
32
|
+
variant="subtle"
|
|
33
|
+
color="primary"
|
|
34
|
+
size="xs"
|
|
35
|
+
>
|
|
36
|
+
Core
|
|
37
|
+
</UBadge>
|
|
38
|
+
<UBadge
|
|
39
|
+
v-if="!skill.active"
|
|
40
|
+
variant="subtle"
|
|
41
|
+
color="neutral"
|
|
42
|
+
size="xs"
|
|
43
|
+
>
|
|
44
|
+
Disabled
|
|
45
|
+
</UBadge>
|
|
46
|
+
</div>
|
|
47
|
+
<p class="text-xs text-muted line-clamp-2">
|
|
48
|
+
{{ skill.description }}
|
|
49
|
+
</p>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<USwitch
|
|
53
|
+
v-if="!skill.core"
|
|
54
|
+
:model-value="skill.active"
|
|
55
|
+
size="sm"
|
|
56
|
+
:loading="toggling"
|
|
57
|
+
@update:model-value="handleToggle"
|
|
58
|
+
@click.prevent.stop
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div class="flex items-center gap-2 mt-3">
|
|
63
|
+
<UBadge
|
|
64
|
+
v-if="skill.version"
|
|
65
|
+
variant="soft"
|
|
66
|
+
color="neutral"
|
|
67
|
+
size="xs"
|
|
68
|
+
>
|
|
69
|
+
v{{ skill.version }}
|
|
70
|
+
</UBadge>
|
|
71
|
+
<UBadge
|
|
72
|
+
v-if="skill.author"
|
|
73
|
+
variant="soft"
|
|
74
|
+
color="neutral"
|
|
75
|
+
size="xs"
|
|
76
|
+
>
|
|
77
|
+
{{ skill.author }}
|
|
78
|
+
</UBadge>
|
|
79
|
+
<span class="text-xs text-dimmed ml-auto">{{ skill.fileCount }} file{{ skill.fileCount !== 1 ? 's' : '' }}</span>
|
|
80
|
+
</div>
|
|
81
|
+
</NuxtLink>
|
|
82
|
+
</template>
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const props = defineProps<{
|
|
3
|
+
open: boolean
|
|
4
|
+
}>()
|
|
5
|
+
|
|
6
|
+
const emit = defineEmits<{
|
|
7
|
+
'update:open': [value: boolean]
|
|
8
|
+
'created': [name: string]
|
|
9
|
+
}>()
|
|
10
|
+
|
|
11
|
+
const router = useRouter()
|
|
12
|
+
const toast = useToast()
|
|
13
|
+
|
|
14
|
+
const mode = ref<'blank' | 'generate'>('blank')
|
|
15
|
+
const name = ref('')
|
|
16
|
+
const description = ref('')
|
|
17
|
+
const loading = ref(false)
|
|
18
|
+
|
|
19
|
+
function resetForm() {
|
|
20
|
+
mode.value = 'blank'
|
|
21
|
+
name.value = ''
|
|
22
|
+
description.value = ''
|
|
23
|
+
loading.value = false
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function close() {
|
|
27
|
+
emit('update:open', false)
|
|
28
|
+
resetForm()
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
async function handleCreate() {
|
|
32
|
+
if (!name.value.trim()) return
|
|
33
|
+
|
|
34
|
+
loading.value = true
|
|
35
|
+
try {
|
|
36
|
+
if (mode.value === 'blank') {
|
|
37
|
+
await $fetch('/api/skills/create', {
|
|
38
|
+
method: 'POST',
|
|
39
|
+
body: { name: name.value.trim(), description: description.value.trim() || undefined }
|
|
40
|
+
})
|
|
41
|
+
toast.add({ title: `Skill '${name.value}' created`, color: 'success' })
|
|
42
|
+
emit('created', name.value.trim())
|
|
43
|
+
close()
|
|
44
|
+
router.push(`/skills/${name.value.trim()}`)
|
|
45
|
+
} else {
|
|
46
|
+
if (!description.value.trim()) {
|
|
47
|
+
toast.add({ title: 'Description is required for AI generation', color: 'warning' })
|
|
48
|
+
loading.value = false
|
|
49
|
+
return
|
|
50
|
+
}
|
|
51
|
+
const res = await $fetch<{ data: { name: string, costUsd: number } }>('/api/skills/generate', {
|
|
52
|
+
method: 'POST',
|
|
53
|
+
body: { name: name.value.trim(), description: description.value.trim() }
|
|
54
|
+
})
|
|
55
|
+
toast.add({
|
|
56
|
+
title: `Skill '${name.value}' generated`,
|
|
57
|
+
description: `Cost: $${res.data.costUsd.toFixed(4)} — created in inactive state for review`,
|
|
58
|
+
color: 'success'
|
|
59
|
+
})
|
|
60
|
+
emit('created', name.value.trim())
|
|
61
|
+
close()
|
|
62
|
+
router.push(`/skills/${name.value.trim()}`)
|
|
63
|
+
}
|
|
64
|
+
} catch (e: unknown) {
|
|
65
|
+
const message = e instanceof Error ? e.message : 'Failed to create skill'
|
|
66
|
+
toast.add({ title: message, color: 'error' })
|
|
67
|
+
} finally {
|
|
68
|
+
loading.value = false
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
</script>
|
|
72
|
+
|
|
73
|
+
<template>
|
|
74
|
+
<UModal
|
|
75
|
+
:open="props.open"
|
|
76
|
+
@update:open="emit('update:open', $event)"
|
|
77
|
+
>
|
|
78
|
+
<template #header>
|
|
79
|
+
<span class="font-semibold">Create Skill</span>
|
|
80
|
+
</template>
|
|
81
|
+
|
|
82
|
+
<template #body>
|
|
83
|
+
<div class="space-y-4">
|
|
84
|
+
<div class="flex gap-2">
|
|
85
|
+
<UButton
|
|
86
|
+
:variant="mode === 'blank' ? 'solid' : 'outline'"
|
|
87
|
+
color="neutral"
|
|
88
|
+
size="sm"
|
|
89
|
+
icon="i-lucide-file-plus"
|
|
90
|
+
@click="mode = 'blank'"
|
|
91
|
+
>
|
|
92
|
+
Blank Skill
|
|
93
|
+
</UButton>
|
|
94
|
+
<UButton
|
|
95
|
+
:variant="mode === 'generate' ? 'solid' : 'outline'"
|
|
96
|
+
color="neutral"
|
|
97
|
+
size="sm"
|
|
98
|
+
icon="i-lucide-sparkles"
|
|
99
|
+
@click="mode = 'generate'"
|
|
100
|
+
>
|
|
101
|
+
AI Generate
|
|
102
|
+
</UButton>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
<UFormField label="Name">
|
|
106
|
+
<UInput
|
|
107
|
+
v-model="name"
|
|
108
|
+
placeholder="my-skill"
|
|
109
|
+
:disabled="loading"
|
|
110
|
+
class="w-full"
|
|
111
|
+
/>
|
|
112
|
+
</UFormField>
|
|
113
|
+
|
|
114
|
+
<UFormField
|
|
115
|
+
label="Description"
|
|
116
|
+
:required="mode === 'generate'"
|
|
117
|
+
>
|
|
118
|
+
<UTextarea
|
|
119
|
+
v-model="description"
|
|
120
|
+
:placeholder="mode === 'generate' ? 'Describe what this skill should do...' : 'Optional description'"
|
|
121
|
+
:rows="3"
|
|
122
|
+
:disabled="loading"
|
|
123
|
+
class="w-full"
|
|
124
|
+
/>
|
|
125
|
+
</UFormField>
|
|
126
|
+
|
|
127
|
+
<p
|
|
128
|
+
v-if="mode === 'generate'"
|
|
129
|
+
class="text-xs text-muted"
|
|
130
|
+
>
|
|
131
|
+
AI-generated skills are created in an inactive state so you can review them before enabling.
|
|
132
|
+
</p>
|
|
133
|
+
</div>
|
|
134
|
+
</template>
|
|
135
|
+
|
|
136
|
+
<template #footer>
|
|
137
|
+
<div class="flex justify-end gap-2">
|
|
138
|
+
<UButton
|
|
139
|
+
variant="ghost"
|
|
140
|
+
color="neutral"
|
|
141
|
+
:disabled="loading"
|
|
142
|
+
@click="close"
|
|
143
|
+
>
|
|
144
|
+
Cancel
|
|
145
|
+
</UButton>
|
|
146
|
+
<UButton
|
|
147
|
+
:loading="loading"
|
|
148
|
+
:disabled="!name.trim()"
|
|
149
|
+
@click="handleCreate"
|
|
150
|
+
>
|
|
151
|
+
{{ mode === 'generate' ? 'Generate' : 'Create' }}
|
|
152
|
+
</UButton>
|
|
153
|
+
</div>
|
|
154
|
+
</template>
|
|
155
|
+
</UModal>
|
|
156
|
+
</template>
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { CodeLanguage } from '~~/shared/types'
|
|
3
|
+
|
|
4
|
+
const props = defineProps<{
|
|
5
|
+
skillName: string
|
|
6
|
+
filePath: string
|
|
7
|
+
}>()
|
|
8
|
+
|
|
9
|
+
const emit = defineEmits<{
|
|
10
|
+
saved: []
|
|
11
|
+
}>()
|
|
12
|
+
|
|
13
|
+
const toast = useToast()
|
|
14
|
+
const content = ref('')
|
|
15
|
+
const originalContent = ref('')
|
|
16
|
+
const loading = ref(true)
|
|
17
|
+
const saving = ref(false)
|
|
18
|
+
|
|
19
|
+
const isDirty = computed(() => content.value !== originalContent.value)
|
|
20
|
+
|
|
21
|
+
const language = computed<CodeLanguage>(() => {
|
|
22
|
+
const ext = props.filePath.split('.').pop()?.toLowerCase()
|
|
23
|
+
switch (ext) {
|
|
24
|
+
case 'py': return 'python'
|
|
25
|
+
case 'md': return 'markdown'
|
|
26
|
+
case 'json': return 'json'
|
|
27
|
+
case 'ts': return 'typescript'
|
|
28
|
+
case 'js': return 'javascript'
|
|
29
|
+
case 'yaml':
|
|
30
|
+
case 'yml': return 'yaml'
|
|
31
|
+
case 'sh':
|
|
32
|
+
case 'bash': return 'bash'
|
|
33
|
+
default: return 'plaintext'
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
async function loadFile() {
|
|
38
|
+
loading.value = true
|
|
39
|
+
try {
|
|
40
|
+
const res = await $fetch<{ data: { content: string } }>(`/api/skills/${props.skillName}/files/read`, {
|
|
41
|
+
method: 'POST',
|
|
42
|
+
body: { path: props.filePath }
|
|
43
|
+
})
|
|
44
|
+
content.value = res.data.content
|
|
45
|
+
originalContent.value = res.data.content
|
|
46
|
+
} catch {
|
|
47
|
+
toast.add({ title: 'Failed to load file', color: 'error' })
|
|
48
|
+
} finally {
|
|
49
|
+
loading.value = false
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async function save() {
|
|
54
|
+
saving.value = true
|
|
55
|
+
try {
|
|
56
|
+
await $fetch(`/api/skills/${props.skillName}/files/write`, {
|
|
57
|
+
method: 'POST',
|
|
58
|
+
body: { path: props.filePath, content: content.value }
|
|
59
|
+
})
|
|
60
|
+
originalContent.value = content.value
|
|
61
|
+
toast.add({ title: 'File saved', color: 'success' })
|
|
62
|
+
emit('saved')
|
|
63
|
+
} catch {
|
|
64
|
+
toast.add({ title: 'Failed to save file', color: 'error' })
|
|
65
|
+
} finally {
|
|
66
|
+
saving.value = false
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Ctrl+S / Cmd+S keyboard shortcut
|
|
71
|
+
function handleKeydown(e: KeyboardEvent) {
|
|
72
|
+
if ((e.metaKey || e.ctrlKey) && e.key === 's') {
|
|
73
|
+
e.preventDefault()
|
|
74
|
+
if (isDirty.value) save()
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
onMounted(() => {
|
|
79
|
+
loadFile()
|
|
80
|
+
window.addEventListener('keydown', handleKeydown)
|
|
81
|
+
})
|
|
82
|
+
|
|
83
|
+
onUnmounted(() => {
|
|
84
|
+
window.removeEventListener('keydown', handleKeydown)
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
watch(() => props.filePath, () => loadFile())
|
|
88
|
+
</script>
|
|
89
|
+
|
|
90
|
+
<template>
|
|
91
|
+
<div class="flex flex-col h-full">
|
|
92
|
+
<div class="flex items-center justify-between px-4 py-2 border-b border-default">
|
|
93
|
+
<div class="flex items-center gap-2 text-sm text-muted">
|
|
94
|
+
<UIcon
|
|
95
|
+
name="i-lucide-file-code"
|
|
96
|
+
class="size-4"
|
|
97
|
+
/>
|
|
98
|
+
<span>{{ filePath }}</span>
|
|
99
|
+
<UBadge
|
|
100
|
+
v-if="isDirty"
|
|
101
|
+
variant="soft"
|
|
102
|
+
color="warning"
|
|
103
|
+
size="xs"
|
|
104
|
+
>
|
|
105
|
+
Modified
|
|
106
|
+
</UBadge>
|
|
107
|
+
</div>
|
|
108
|
+
<UButton
|
|
109
|
+
size="xs"
|
|
110
|
+
:loading="saving"
|
|
111
|
+
:disabled="!isDirty"
|
|
112
|
+
@click="save"
|
|
113
|
+
>
|
|
114
|
+
Save
|
|
115
|
+
</UButton>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
<div
|
|
119
|
+
v-if="loading"
|
|
120
|
+
class="flex-1 flex items-center justify-center"
|
|
121
|
+
>
|
|
122
|
+
<UIcon
|
|
123
|
+
name="i-lucide-loader-2"
|
|
124
|
+
class="size-6 animate-spin text-dimmed"
|
|
125
|
+
/>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
<EditorCodeEditor
|
|
129
|
+
v-else
|
|
130
|
+
v-model="content"
|
|
131
|
+
:language="language"
|
|
132
|
+
class="flex-1"
|
|
133
|
+
/>
|
|
134
|
+
</div>
|
|
135
|
+
</template>
|