heyio 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/dist/copilot/system-message.js +5 -0
  2. package/dist/copilot/tools.js +34 -47
  3. package/package.json +1 -1
  4. package/web-dist/assets/{ChatView-BHo6lpBx.js → ChatView-B9WVD6tx.js} +2 -2
  5. package/web-dist/assets/{FeedView-BfDlNvNB.js → FeedView-CpzIivbf.js} +2 -2
  6. package/web-dist/assets/LoginView-CIP77sJH.js +1 -0
  7. package/web-dist/assets/{MarkdownContent.vue_vue_type_script_setup_true_lang-LK_1LFOW.js → MarkdownContent.vue_vue_type_script_setup_true_lang-Bo47khKQ.js} +1 -1
  8. package/web-dist/assets/{McpView-B1UW7bIs.js → McpView-Czjm3SHm.js} +1 -1
  9. package/web-dist/assets/{SchedulesView-BBIru1Fh.js → SchedulesView-DD_f5CP5.js} +1 -1
  10. package/web-dist/assets/{SettingsView-BOOCEXGs.js → SettingsView-BXYd-jo1.js} +1 -1
  11. package/web-dist/assets/SkillsView-DfS8e6eK.js +1 -0
  12. package/web-dist/assets/{SquadDetailView-BQ54LMfJ.js → SquadDetailView-BM0HhBdq.js} +2 -2
  13. package/web-dist/assets/{SquadsView-CI3ATEJZ.js → SquadsView-DaFexZRB.js} +2 -2
  14. package/web-dist/assets/{WikiView-B7vhxkhn.js → WikiView-BcQO6_oh.js} +2 -2
  15. package/web-dist/assets/api-GN_ZR-Nh.js +1 -0
  16. package/web-dist/assets/{index-x4G-bL2N.js → index-CMctONs4.js} +30 -30
  17. package/web-dist/assets/{plus-Drw0JiiN.js → plus-CObRuHy3.js} +1 -1
  18. package/web-dist/assets/{trash-2-BMzWlawI.js → trash-2-yEg_2EGm.js} +1 -1
  19. package/web-dist/index.html +1 -1
  20. package/web-dist/assets/LoginView-DoQBErlZ.js +0 -1
  21. package/web-dist/assets/SkillsView-DFuU-I5n.js +0 -1
  22. package/web-dist/assets/api-Bb5_Gvnf.js +0 -1
@@ -1,4 +1,4 @@
1
- import{f as e}from"./index-x4G-bL2N.js";/**
1
+ import{f as e}from"./index-CMctONs4.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{f as e}from"./index-x4G-bL2N.js";/**
1
+ import{f as e}from"./index-CMctONs4.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>IO — Dashboard</title>
7
7
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
8
- <script type="module" crossorigin src="/assets/index-x4G-bL2N.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-CMctONs4.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-Brk3rLgL.css">
10
10
  </head>
11
11
  <body class="bg-background text-foreground">
@@ -1 +0,0 @@
1
- import{i as b,s as v,m as d,e as u,a as e,H as y,E as m,z as p,t as c,d as w,u as f,r as i,w as h}from"./index-x4G-bL2N.js";const k={class:"min-h-screen flex items-center justify-center bg-background p-4"},S={class:"w-full max-w-sm space-y-6"},_={key:0,class:"text-sm text-destructive"},V=["disabled"],L=b({__name:"LoginView",setup(B){const o=v(),g=h(),n=i(""),r=i(""),t=i("");async function x(){t.value="";try{await o.login(n.value,r.value),g.push("/")}catch(l){t.value=l.message??"Login failed"}}return(l,s)=>(d(),u("div",k,[e("div",S,[s[4]||(s[4]=e("div",{class:"text-center"},[e("div",{class:"text-4xl mb-2"},"🤖"),e("h1",{class:"text-2xl font-bold"},"IO"),e("p",{class:"text-sm text-muted-foreground mt-1"},"Sign in to your dashboard")],-1)),e("form",{onSubmit:y(x,["prevent"]),class:"space-y-4"},[e("div",null,[s[2]||(s[2]=e("label",{class:"text-sm font-medium",for:"email"},"Email",-1)),m(e("input",{id:"email","onUpdate:modelValue":s[0]||(s[0]=a=>n.value=a),type:"email",required:"",class:"mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-ring",placeholder:"you@example.com"},null,512),[[p,n.value]])]),e("div",null,[s[3]||(s[3]=e("label",{class:"text-sm font-medium",for:"password"},"Password",-1)),m(e("input",{id:"password","onUpdate:modelValue":s[1]||(s[1]=a=>r.value=a),type:"password",required:"",class:"mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-ring",placeholder:"••••••••"},null,512),[[p,r.value]])]),t.value?(d(),u("div",_,c(t.value),1)):w("",!0),e("button",{type:"submit",disabled:f(o).loading,class:"w-full rounded-md bg-primary text-primary-foreground px-4 py-2 text-sm font-medium hover:bg-primary/90 disabled:opacity-50 transition-colors"},c(f(o).loading?"Signing in...":"Sign In"),9,V)],32)])]))}});export{L as default};
@@ -1 +0,0 @@
1
- import{i as k,o as h,m as l,e as o,a as t,h as g,u as f,g as _,E as w,z as S,G as C,t as n,d as x,P as V,F,p as N,r}from"./index-x4G-bL2N.js";import{b as P,c as T,a as z}from"./api-Bb5_Gvnf.js";import{P as A}from"./plus-Drw0JiiN.js";import{T as B}from"./trash-2-BMzWlawI.js";const D={class:"p-6"},G={class:"flex items-center justify-between mb-6"},L={key:0,class:"mb-6 p-4 border border-border rounded-lg"},R={class:"flex gap-2"},U=["disabled"],$={key:0,class:"text-sm text-destructive mt-2"},j={key:1,class:"text-muted-foreground"},E={key:2,class:"text-center py-12 text-muted-foreground"},I={key:3,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"},K={class:"flex items-start justify-between"},M={class:"font-semibold"},q=["onClick"],H={class:"text-sm text-muted-foreground mt-1"},J={class:"text-xs text-muted-foreground mt-2 font-mono"},ee=k({__name:"SkillsView",setup(O){const c=r([]),p=r(!0),d=r(!1),a=r(""),u=r(!1),i=r("");async function v(){p.value=!0;try{c.value=await P("/skills")}finally{p.value=!1}}async function y(){if(a.value.trim()){u.value=!0,i.value="";try{await T("/skills",{url:a.value.trim()}),a.value="",d.value=!1,await v()}catch(m){i.value=m.message||"Failed to install skill"}finally{u.value=!1}}}async function b(m){try{await z(`/skills/${m}`),await v()}catch(e){i.value=e.message||"Failed to remove skill"}}return h(v),(m,e)=>(l(),o("div",D,[t("div",G,[e[3]||(e[3]=t("h1",{class:"text-2xl font-bold"},"Skills",-1)),t("button",{onClick:e[0]||(e[0]=s=>d.value=!d.value),class:"inline-flex items-center gap-2 px-3 py-2 rounded-md bg-primary text-primary-foreground text-sm hover:bg-primary/90"},[g(f(A),{class:"w-4 h-4"}),e[2]||(e[2]=_(" Add Skill ",-1))])]),d.value?(l(),o("div",L,[e[4]||(e[4]=t("label",{class:"block text-sm font-medium mb-2"},"Git Repository URL",-1)),t("div",R,[w(t("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>a.value=s),type:"text",placeholder:"https://github.com/user/skill-repo.git",class:"flex-1 px-3 py-2 rounded-md border border-input bg-background text-sm",onKeyup:C(y,["enter"])},null,544),[[S,a.value]]),t("button",{onClick:y,disabled:u.value||!a.value.trim(),class:"px-4 py-2 rounded-md bg-primary text-primary-foreground text-sm hover:bg-primary/90 disabled:opacity-50"},n(u.value?"Installing...":"Install"),9,U)]),i.value?(l(),o("p",$,n(i.value),1)):x("",!0)])):x("",!0),p.value?(l(),o("div",j,"Loading...")):c.value.length===0?(l(),o("div",E,[g(f(V),{class:"w-12 h-12 mx-auto mb-3 opacity-50"}),e[5]||(e[5]=t("p",null,"No skills installed.",-1)),e[6]||(e[6]=t("p",{class:"text-sm mt-1"},'Click "Add Skill" to install from a git repository.',-1))])):(l(),o("div",I,[(l(!0),o(F,null,N(c.value,s=>(l(),o("div",{key:s.slug,class:"border border-border rounded-lg p-4 group"},[t("div",K,[t("h3",M,n(s.name),1),t("button",{onClick:Q=>b(s.slug),class:"opacity-0 group-hover:opacity-100 p-1 rounded hover:bg-destructive/10 text-destructive transition-opacity",title:"Remove skill"},[g(f(B),{class:"w-4 h-4"})],8,q)]),t("p",H,n(s.description),1),t("div",J,n(s.slug),1)]))),128))]))]))}});export{ee as default};
@@ -1 +0,0 @@
1
- import{s}from"./index-x4G-bL2N.js";const o="/api";async function a(){const r=s(),t={"Content-Type":"application/json"};return r.token&&(t.Authorization=`Bearer ${r.token}`),t}async function i(r){const t=await fetch(`${o}${r}`,{headers:await a()});if(!t.ok)throw new Error(`API error: ${t.status}`);return t.json()}async function c(r,t){const e=await fetch(`${o}${r}`,{method:"POST",headers:await a(),body:t?JSON.stringify(t):void 0});if(!e.ok)throw new Error(`API error: ${e.status}`);return e.json()}async function h(r,t){const e=await fetch(`${o}${r}`,{method:"PUT",headers:await a(),body:t?JSON.stringify(t):void 0});if(!e.ok)throw new Error(`API error: ${e.status}`);return e.json()}async function u(r){const t=await fetch(`${o}${r}`,{method:"DELETE",headers:await a()});if(!t.ok)throw new Error(`API error: ${t.status}`);return t.json()}export{u as a,i as b,c,h as d};