@arcforge/axon 1.0.39 → 1.0.40

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 (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -2045,4 +2045,4 @@ export default defineAgent({
2045
2045
  `).find((W)=>W.trim().length>0)??R}function d(I){if(typeof I.detail==="string")return I.detail;if(typeof I.reason==="string"){let R=I.reason.split(`
2046
2046
  `).slice(1).join(`
2047
2047
  `).trim();return R.length>0?R:void 0}return}function b(I){if(I.kind==="turn")return I.turn.id;if(I.kind==="reload")return I.entry.id;return I.entry.id}let _=vf(),k=Rm.ref(!1),B=Rm.ref(!1),D=null,Q=_.onBeforeExit(()=>{if(r.isStreaming.value)r.abort();if(k.value){if(D)clearTimeout(D),D=null;k.value=!1,B.value=!0,r.shutdown();return}return k.value=!0,D=setTimeout(()=>{k.value=!1},1500),!1});return Rm.onUnmounted(()=>{if(Q(),D)clearTimeout(D)}),(I,R)=>{return YG(),vWe("div",{class:"chat-container","scroll-bottom":DWe(s)},[zIi(Tua,{class:"header"}),(YG(!0),vWe(ada,null,UIi(DWe(o).turnList.value,(W)=>{return YG(),vWe(ada,{key:b(W)},[W.kind==="turn"?(YG(),F1e(Uma,{key:0,class:"msg",turn:W.turn,"agent-name":DWe(r).agentName.value},null,8,["turn","agent-name"])):W.kind==="reload"?(YG(),F1e(Wpa,{key:1,class:"msg",item:W},null,8,["item"])):W.kind==="connecting"?(YG(),F1e(Ama,{key:2,class:"msg",entry:W.entry},null,8,["entry"])):W.kind==="client-error"&&W.entry.type==="axon:client:connect:failed"?(YG(),F1e(fWe,{key:3,class:"msg",kind:A(W.entry.payload),message:m(W.entry.payload),meta:W.entry.payload.hint,detail:d(W.entry.payload)},null,8,["kind","message","meta","detail"])):W.kind==="client-error"&&W.entry.type==="axon:client:error"?(YG(),F1e(fWe,{key:4,class:"msg",kind:W.entry.payload.code.toLowerCase().replace(/_/g," "),message:W.entry.payload.message,meta:W.entry.payload.meta},null,8,["kind","message","meta"])):W.kind==="client-help"?(YG(),F1e(Bma,{key:5,class:"msg"})):W.kind==="client-key-status"?(YG(),F1e(oma,{key:6,class:"msg",entry:W.entry},null,8,["entry"])):nda("v-if",!0)],64)}),128)),DWe(B)?(YG(),vWe("div",{key:0,class:"exit-hint"},"shutting down...")):DWe(k)?(YG(),vWe("div",{key:1,class:"exit-hint"},"press C-c again to exit")):nda("v-if",!0)],8,["scroll-bottom"])}}});ida.__scopeId="data-v-49467ba9";var oda=ida;var yp=hp(qm(),1);var HIi=yp.defineComponent,Boe=yp.toDisplayString,q_=yp.createElementVNode;var ade=yp.createCommentVNode,nT=yp.openBlock,aT=yp.createElementBlock;var KIi=yp.renderList,JIi=yp.Fragment,ZIi=yp.normalizeClass,Eoe=yp.normalizeStyle;var WIi=yp.resolveComponent;var Uy=yp.unref,YIi=yp.isRef;var XIi=yp.createVNode;var sda={"data-v-83dec4da\x00.account":{display:"flex",flexDirection:"column",width:"100%",height:"100%",scrollable:!0,alwaysScroll:!0,scrollableY:!0,gap:1},"data-v-83dec4da\x00.section":{display:"flex",flexDirection:"column"},"data-v-83dec4da\x00.section-header":{visualStyles:{bold:!0}},"data-v-83dec4da\x00.table":{display:"flex",flexDirection:"column"},"data-v-83dec4da\x00.row":{display:"flex",gap:2},"data-v-83dec4da\x00.row-action":{cursor:"pointer"},"data-v-83dec4da\x00.row-active .key":{visualStyles:{fg:"white"}},"data-v-83dec4da\x00.key":{width:18,visualStyles:{fg:"#787878"}},"data-v-83dec4da\x00.val":{visualStyles:{fg:"white"},flexGrow:1,flexShrink:1,flexBasis:0},"data-v-83dec4da\x00.val.dim":{visualStyles:{fg:"#505050"}},"data-v-83dec4da\x00.dim":{visualStyles:{fg:"#505050"}},"data-v-83dec4da\x00.badge":{pointerEvents:"none"},"data-v-83dec4da\x00.checkbox":{width:3,pointerEvents:"none"},"data-v-83dec4da\x00.checkbox-label":{visualStyles:{fg:"white"},pointerEvents:"none"},"data-v-83dec4da\x00.hint":{visualStyles:{fg:"#646464"}}},cda=HIi({__name:"account",setup(e){ub({layout:"default"});let{auth:t,prefs:n,credentials:r}=Pd(),o=yp.computed(()=>t.user.value),s=yp.computed(()=>t.ui.profiles.value),A=yp.computed(()=>t.ui.activeProfileId.value),m=yp.computed(()=>r.get()),d=yp.computed(()=>({color:n.theme.value?.ui?.primary??"#00B4D8"})),b={color:"#4ade80"},_={color:"#606060"},k=yp.computed(()=>n.settings.value.telemetry);function B(){n.set("telemetry",!k.value)}let D=yp.computed(()=>{let X=m.value.openai?.expires_at;if(!X)return!1;return Date.now()>X});function Q(X,ee=8){if(X.length<=ee+6)return X;return X.slice(0,6)+"..."+X.slice(-ee)}function I(X){return new Date(X).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"numeric"})}function R(X,ee){let ae=X/100;return new Intl.NumberFormat("en-GB",{style:"currency",currency:ee.toUpperCase()}).format(ae)}function W(X){let ee=s.value[X];if(ee&&ee!==A.value)t.switchProfile(ee)}function G(X){return{telemetry:X.telemetry,agentPaths:X.agentPaths??[],streaming:X.streaming??"token"}}let $=yp.ref(JSON.stringify(G(n.settings.value),null,2));yp.watch(n.settings,(X)=>{let ee=JSON.stringify(G(X),null,2);if(ee!==$.value)$.value=ee});let q=null;yp.watch($,(X)=>{if(q)clearTimeout(q);q=setTimeout(()=>{try{let ee=JSON.parse(X);if(typeof ee.telemetry==="boolean")n.set("telemetry",ee.telemetry);if(Array.isArray(ee.agentPaths))n.set("agentPaths",ee.agentPaths);if(ee.streaming===!1||ee.streaming==="token"||ee.streaming==="paragraph")n.set("streaming",ee.streaming)}catch{}},600)});let U={type:"object",additionalProperties:!1,properties:{telemetry:{type:"boolean",description:"Send anonymous crash reports to ArcLabs. No conversation data collected."},agentPaths:{type:"array",items:{type:"string"},description:"Extra directories to scan for local agents. Each directory should contain {name}/axon.config.ts files."},streaming:{enum:["token","paragraph",!1],description:'Token streaming mode. "token" = every token live, "paragraph" = flush on blank line, false = wait for full response.'}}};return(X,ee)=>{let ae=WIi("editor");return nT(),aT("div",{class:"account"},[q_("div",{class:"section"},[q_("div",{class:"section-header",style:Eoe(Uy(d))},"Account",4),Uy(o)?(nT(),aT("div",{key:0,class:"table"},[q_("div",{class:"row"},[q_("div",{class:"key"},"Name"),q_("div",{class:"val"},Boe(Uy(o).name),1)]),q_("div",{class:"row"},[q_("div",{class:"key"},"Email"),q_("div",{class:"val"},Boe(Uy(o).email),1)]),q_("div",{class:"row"},[q_("div",{class:"key"},"Balance"),q_("div",{class:"val"},Boe(R(Uy(o).balance,Uy(o).currency)),1)]),Uy(o).memberSince?(nT(),aT("div",{key:0,class:"row"},[q_("div",{class:"key"},"Member since"),q_("div",{class:"val dim"},Boe(I(Uy(o).memberSince)),1)])):ade("v-if",!0)])):(nT(),aT("div",{key:1,class:"dim"},"Not logged in"))]),q_("div",{class:"section"},[q_("div",{class:"section-header",style:Eoe(Uy(d))},"Keys",4),q_("div",{class:"table"},[q_("div",{class:"row"},[q_("div",{class:"key"},"OpenRouter"),Uy(m).openrouter?(nT(),aT("div",{key:0,class:"val"},Boe(Q(Uy(m).openrouter.api_key)),1)):ade("v-if",!0),Uy(m).openrouter?(nT(),aT("div",{key:1,class:"badge",style:Eoe(Uy(d))},"connected",4)):ade("v-if",!0),!Uy(m).openrouter?(nT(),aT("div",{key:2,class:"val dim"},"not connected")):ade("v-if",!0)]),q_("div",{class:"row"},[q_("div",{class:"key"},"OpenAI"),Uy(m).openai?(nT(),aT("div",{key:0,class:"val"},Boe(Q(Uy(m).openai.access_token,12)),1)):ade("v-if",!0),Uy(m).openai?(nT(),aT("div",{key:1,class:"badge",style:Eoe(Uy(D)?_:Uy(d))},Boe(Uy(D)?"expired":"connected"),5)):ade("v-if",!0),!Uy(m).openai?(nT(),aT("div",{key:2,class:"val dim"},"not connected")):ade("v-if",!0)])]),q_("div",{class:"hint"},"Keys stored locally in ~/.axon \u2014 never sent to ArcLabs servers.")]),Uy(s).length>1?(nT(),aT("div",{key:0,class:"section"},[q_("div",{class:"section-header",style:Eoe(Uy(d))},"Profiles",4),q_("div",{class:"table"},[(nT(!0),aT(JIi,null,KIi(Uy(s),(se,ye)=>{return nT(),aT("div",{key:se,class:ZIi(["row row-action",{"row-active":se===Uy(A)}]),onPress:()=>W(ye)},[q_("div",{class:"key"},Boe(se),1),se===Uy(A)?(nT(),aT("div",{key:0,class:"val",style:Eoe(Uy(d))},"active",4)):(nT(),aT("div",{key:1,class:"val dim"},"switch"))],42,["onPress"])}),128))])])):ade("v-if",!0),q_("div",{class:"section"},[q_("div",{class:"section-header",style:Eoe(Uy(d))},"Telemetry",4),q_("div",{class:"hint"},"Sends anonymous crash reports to ArcLabs. No conversation data collected."),q_("div",{class:"row row-action",onPress:B},[q_("div",{class:"checkbox",style:Eoe(Uy(k)?b:_)},Boe(Uy(k)?"[x]":"[ ]"),5),q_("div",{class:"checkbox-label"},"Enable telemetry")],32)]),q_("div",{class:"section settings-section"},[q_("div",{class:"section-header",style:Eoe(Uy(d))},"Settings",4),q_("div",{class:"hint"},"Your local settings file. Changes are saved automatically on edit."),q_("div",{class:"editor-wrap"},[XIi(ae,{modelValue:Uy($),"onUpdate:modelValue":ee[0]||(ee[0]=(se)=>YIi($)?$.value=se:null),lang:"json",schema:U,indent:2,"diagnostics-display":"hover",validation:{debounce:250}},null,8,["modelValue"])])])])}}});cda.__scopeId="data-v-83dec4da";var uda=cda;var $p=hp(qm(),1);var VIi=$p.defineComponent,A3e=$p.toDisplayString,Wq=$p.createElementVNode;var ran=$p.createCommentVNode,rde=$p.openBlock,ide=$p.createElementBlock;var e9i=$p.renderList,Ada=$p.Fragment,t9i=$p.normalizeClass,ZBt=$p.normalizeStyle;var A9=$p.unref;var lda={"data-v-2eaec43d\x00.auth":{padding:0,display:"flex",flexDirection:"column",gap:0},"data-v-2eaec43d\x00.logo":{visualStyles:{bold:!0}},"data-v-2eaec43d\x00header":{display:"flex",gap:1,marginBottom:1,paddingLeft:2},"data-v-2eaec43d\x00.section":{display:"flex",flexDirection:"column",flexGrow:1,flexShrink:1,flexBasis:0},"data-v-2eaec43d\x00.subtitle":{visualStyles:{fg:"grey"}},"data-v-2eaec43d\x00.list":{display:"flex",flexDirection:"column"},"data-v-2eaec43d\x00.list-item":{height:1,display:"flex",flexDirection:"row"},"data-v-2eaec43d\x00.cursor":{width:2},"data-v-2eaec43d\x00.item-label":{visualStyles:{fg:"grey"}},"data-v-2eaec43d\x00.item-selected":{visualStyles:{fg:"white"}},"data-v-2eaec43d\x00.hint":{height:1,visualStyles:{fg:"grey"}},"data-v-2eaec43d\x00.status-line":{height:1,display:"flex",flexDirection:"row",alignItems:"center",gap:1},"data-v-2eaec43d\x00.spinner":{width:1},"data-v-2eaec43d\x00.status-text":{visualStyles:{fg:"grey"}},"data-v-2eaec43d\x00.code-line":{height:1,display:"flex",flexDirection:"row",alignItems:"center",gap:1},"data-v-2eaec43d\x00.code-label":{visualStyles:{fg:"grey"}},"data-v-2eaec43d\x00.code-value":{visualStyles:{bold:!0}}},pda=VIi({__name:"auth",setup(e){ub({layout:"default"});let{auth:t,prefs:n}=Pd(),r=Mf(),o=$p.computed(()=>n.theme.value?.ui?.primary??"#00B4D8");$p.watch(t.ui.isAuthenticated,(R)=>{if(R)r.push("/")},{immediate:!0});let s=$p.computed(()=>{let R=t.ui.profiles.value.map((W)=>({id:W.email,label:W.email}));return R.push({id:"__new__",label:"Sign in with a new account"}),R}),A=$p.ref(0),m=$p.computed(()=>s.value[A.value]?.id??""),d=$p.ref(null),b=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],_=$p.ref(0),k=null;function B(){if(k)return;k=setInterval(()=>{_.value++},80)}function D(){if(k)clearInterval(k),k=null}$p.onUnmounted(D);let Q=$p.computed(()=>b[_.value%b.length]),I=$p.computed(()=>{if(t.loginStatus.value==="authorizing")return"Opening browser\u2026";if(t.loginStatus.value==="polling")return"Waiting for approval in browser\u2026";return""});return $p.watch(t.ui.showDeviceCode,(R)=>{R?B():D()},{immediate:!0}),dg("enter",async()=>{if(t.ui.showDeviceCode.value)return;let R=s.value[A.value];if(!R||d.value)return;if(R.id==="__new__"||t.ui.showLoginButton.value){let W=R.id==="__new__"?"new_account":void 0;await t.startLogin(W);return}d.value=R.id,B();try{await t.switchProfile(R.id)}finally{d.value=null,D()}}),dg("up",()=>{A.value=(A.value-1+s.value.length)%s.value.length}),dg("down",()=>{A.value=(A.value+1)%s.value.length}),(R,W)=>{return rde(),ide("div",{class:"auth"},[Wq("header",null,[Wq("div",{class:"logo",style:ZBt({color:A9(o)})},"Axon \xB7",4),Wq("div",{class:"subtitle"},A3e(A9(t).ui.reauthorizingEmail.value?`Re-authenticating ${A9(t).ui.reauthorizingEmail.value}`:A9(t).ui.showProfileList.value?"Select an account":"Sign in to get started"),1)]),ran(" Device flow in progress "),A9(t).ui.showDeviceCode.value?(rde(),ide("div",{key:0,class:"section"},[Wq("div",{class:"status-line"},[Wq("span",{class:"spinner",style:ZBt({color:A9(o)})},A3e(A9(Q)),5),Wq("span",{class:"status-text"},A3e(A9(I)),1)]),A9(t).ui.userCode.value?(rde(),ide("div",{key:0,class:"code-line"},[Wq("span",{class:"code-label"},"code"),Wq("span",{class:"code-value",style:ZBt({color:A9(o)})},A3e(A9(t).ui.userCode.value),5)])):ran("v-if",!0),Wq("div",{class:"hint"},"ctrl+c to cancel")])):(rde(),ide(Ada,{key:1},[ran(" Idle: profile list or login prompt "),Wq("div",{class:"section"},[A9(t).ui.showProfileList.value?(rde(),ide("div",{key:0,class:"list"},[(rde(!0),ide(Ada,null,e9i(A9(s),(G)=>{return rde(),ide("div",{key:G.id,class:"list-item"},[Wq("span",{class:"cursor",style:ZBt({color:A9(o)})},A3e(G.id===A9(d)?A9(Q):G.id===A9(m)?"\u203A":" "),5),Wq("span",{class:t9i({"item-label":!0,"item-selected":G.id===A9(m)})},A3e(G.label),3)])}),128)),Wq("div",{class:"hint"},"\u2191\u2193 navigate \xB7 enter select")])):(rde(),ide("div",{key:1,class:"hint"},"press enter to open browser"))])],2112))])}}});pda.__scopeId="data-v-2eaec43d";var mda=pda;var Ud=hp(qm(),1);var n9i=Ud.defineComponent,a9i=Ud.toDisplayString,dda=Ud.createElementVNode;var WBt=Ud.openBlock,YBt=Ud.createElementBlock;var r9i=Ud.renderList,i9i=Ud.Fragment;var gda=Ud.unref;var fda={"data-v-8f7d4fe4\x00.context-page":{display:"flex",flexDirection:"column",width:"100%",height:"100%",scrollable:!0,alwaysScroll:!0,scrollableY:!0},"data-v-8f7d4fe4\x00.empty":{display:"flex",flexDirection:"column",padding:2},"data-v-8f7d4fe4\x00.hint":{visualStyles:{fg:"#505050"}},"data-v-8f7d4fe4\x00.message":{display:"flex",flexDirection:"column",borderBottomWidth:0,padding:{top:1,bottom:1,left:0,right:0}}},bda=n9i({__name:"context",setup(e){ub({layout:"default"});let t=Tj(),n=Ud.computed(()=>{let r=t.messages.value,o=null;for(let s of r)if(s.type==="agent:context")o=s;return o});return(r,o)=>{return WBt(),YBt("div",{class:"context-page"},[!gda(n)?(WBt(),YBt("div",{key:0,class:"empty"},[dda("div",{class:"hint"},"Context snapshot will appear after the first message.")])):(WBt(!0),YBt(i9i,{key:1},r9i(gda(n).payload.messages,(s,A)=>{return WBt(),YBt("div",{key:A,class:"message"},[dda("code",{lang:"air"},a9i(s.content),1)])}),128))])}}});bda.__scopeId="data-v-8f7d4fe4";var hda=bda;var Wl=hp(qm(),1);import{homedir as l9i}from"os";import{spawn as p9i}from"child_process";var o9i=Wl.defineComponent,zD=Wl.toDisplayString,F0=Wl.createElementVNode,s9i=Wl.createTextVNode,HD=Wl.createCommentVNode,fw=Wl.openBlock,bw=Wl.createElementBlock;var c9i=Wl.withCtx,QWe=Wl.renderList,ode=Wl.Fragment;var S1e=Wl.normalizeStyle;var u9i=Wl.resolveComponent;var rh=Wl.unref;var A9i=Wl.createVNode;var _da={"data-v-273a6d86\x00.environment":{display:"flex",flexDirection:"column",width:"100%",height:"100%",scrollable:!0,alwaysScroll:!0,scrollableY:!0,gap:1},"data-v-273a6d86\x00.section":{display:"flex",flexDirection:"column"},"data-v-273a6d86\x00.section-header":{visualStyles:{bold:!0}},"data-v-273a6d86\x00.agent-name":{visualStyles:{bold:!0}},"data-v-273a6d86\x00.agent-description":{visualStyles:{fg:"#969696"}},"data-v-273a6d86\x00.table":{display:"flex",flexDirection:"column"},"data-v-273a6d86\x00.row":{display:"flex",gap:2},"data-v-273a6d86\x00.key":{width:18,visualStyles:{fg:"#787878"}},"data-v-273a6d86\x00.val":{visualStyles:{fg:"white"},flexGrow:1,flexShrink:1,flexBasis:0},"data-v-273a6d86\x00.val.dim":{visualStyles:{fg:"#505050"}},"data-v-273a6d86\x00.dim":{visualStyles:{fg:"#505050"}},"data-v-273a6d86\x00.hint":{visualStyles:{fg:"#646464"}},"data-v-273a6d86\x00.badge":{pointerEvents:"none"},"data-v-273a6d86\x00.path-link":{visualStyles:{fg:"#787878"},flexGrow:1,flexShrink:1,flexBasis:0,scrollable:!1},"data-v-273a6d86\x00.tool-block":{display:"flex",flexDirection:"column",marginTop:1},"data-v-273a6d86\x00.tool-header":{display:"flex",gap:2,height:1},"data-v-273a6d86\x00.tool-name":{visualStyles:{bold:!0}},"data-v-273a6d86\x00.policy-group":{display:"flex",flexDirection:"column",marginTop:1},"data-v-273a6d86\x00.policy-group-label":{height:1}},yda=o9i({__name:"environment",setup(e){ub({layout:"default"});let{prefs:t,agents:n}=Pd(),r=OFe(),o=Wl.computed(()=>({color:t.theme.value?.ui?.primary??"#00B4D8"})),s={color:"#606060"},A=Wl.computed(()=>{let q=n.selected.value;if((q?.path||q?.url)&&q.name!=="default")return q.name;return n.activeModelId.value??"\u2014"}),m=Wl.computed(()=>n.selected.value?.description??null),d=Wl.computed(()=>n.selected.value?.path??null),b=Wl.computed(()=>{let q=d.value;if(!q)return null;let U=l9i(),X=q.startsWith(U)?"~"+q.slice(U.length):q,ee=X.match(/^~[/\\]\.axon[/\\]profiles[/\\][^/\\]+[/\\]agents[/\\](.+)$/);if(ee)return`~/.axon/\u2026/${ee[1]}`;return X});function _(){let q=d.value;if(!q)return;let U=process.env.EDITOR??"code";p9i(U,[q+"/axon.config.ts"],{detached:!0,stdio:"ignore"}).unref()}let k=Wl.computed(()=>{let q=n.selected.value;if(!q)return"\u2014";let U=q.provider??"axon",X=q.model?.modelId??q.model?.id??"";return X?`${U} \xB7 ${X}`:U}),B=Wl.computed(()=>r.manifest.value?.workspacePath??null),D=Wl.computed(()=>(r.manifest.value?.tools??[]).filter((q)=>q.origin!=="package")),Q=Wl.computed(()=>r.manifest.value?.prompts??[]),I=Wl.computed(()=>r.manifest.value?.modules??[]);function R(q){let U=[];for(let X of q.fns){if(X.jsdoc)U.push(X.jsdoc);U.push(X.declaration)}return"```typescript\n"+U.join(`
2048
- `)+"\n```"}let W=Wl.ref(null),G=Wl.ref(!1);Wl.onMounted(async()=>{let q=n.handle.value;if(!q)return;G.value=!0;try{W.value=await q.policy.get()}finally{G.value=!1}});function $(q){if(q===void 0||q===null)return"\u2014";if(q===!0)return"allow";if(q===!1)return"deny";if(q==="escalate")return"escalate";if(typeof q==="object"){let U=[];if(q.allow?.length)U.push(`allow: ${q.allow.join(", ")}`);if(q.deny?.length)U.push(`deny: ${q.deny.join(", ")}`);if(q.escalate?.length)U.push(`escalate: ${q.escalate.join(", ")}`);return U.join(" \xB7 ")||"\u2014"}return String(q)}return(q,U)=>{let X=u9i("markdown");return fw(),bw("div",{class:"environment"},[HD(" \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),F0("div",{class:"section"},[F0("div",{class:"agent-name",style:S1e(rh(o))},zD(rh(A)),5),rh(m)?(fw(),bw("div",{key:0,class:"agent-description"},zD(rh(m)),1)):HD("v-if",!0),F0("div",{class:"table"},[F0("div",{class:"row"},[F0("div",{class:"key"},"engine"),F0("div",{class:"val"},zD(rh(k)),1)]),F0("div",{class:"row"},[F0("div",{class:"key"},"path"),rh(d)?(fw(),bw("div",{key:0,class:"val path-link row-action",onPress:_},zD(rh(b)),33)):(fw(),bw("div",{key:1,class:"val dim"},"cloud agent"))]),rh(B)?(fw(),bw("div",{key:0,class:"row"},[F0("div",{class:"key"},"workspace"),F0("a",{class:"val path-link",href:rh(B)},zD(rh(B)),9,["href"])])):HD("v-if",!0)])]),HD(" \u2500\u2500 Loading / error / not available \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),rh(r).loading.value?(fw(),bw("div",{key:0,class:"section"},[F0("div",{class:"dim"},"loading manifest...")])):rh(r).error.value?(fw(),bw("div",{key:1,class:"section"},[F0("div",{class:"hint"},zD(rh(r).error.value),1)])):!rh(r).manifest.value&&!rh(d)?(fw(),bw("div",{key:2,class:"section"},[F0("div",{class:"hint"},"Manifest is not available for cloud agents.")])):rh(r).manifest.value?(fw(),bw(ode,{key:3},[HD(" \u2500\u2500 Tools \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),F0("div",{class:"section"},[F0("div",{class:"section-header",style:S1e(rh(o))},"Tools",4),rh(D).length===0?(fw(),bw("div",{key:0,class:"hint"},"No tools defined. Add .ts files to src/tools/ to expose tools to this agent.")):(fw(),bw(ode,{key:1},[F0("div",{class:"hint"},"Type declarations exposed to the agent."),(fw(!0),bw(ode,null,QWe(rh(D),(ee)=>{return fw(),bw("div",{key:ee.name,class:"tool-block"},[F0("div",{class:"tool-header"},[F0("span",{class:"tool-name",style:S1e(rh(o))},zD(ee.name),5),ee.origin!=="src"?(fw(),bw("span",{key:0,class:"badge dim"},zD(ee.origin),1)):HD("v-if",!0)]),A9i(X,null,{default:c9i(()=>[s9i(zD(R(ee)),1)]),_:2},1024)])}),128))],64))]),HD(" \u2500\u2500 Prompts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),rh(Q).length>0?(fw(),bw("div",{key:0,class:"section"},[F0("div",{class:"section-header",style:S1e(rh(o))},"Prompts",4),F0("div",{class:"table"},[(fw(!0),bw(ode,null,QWe(rh(Q),(ee)=>{return fw(),bw("div",{key:ee.name,class:"row"},[F0("div",{class:"key"},zD(ee.name),1),F0("div",{class:"badge",style:S1e(ee.kind==="dynamic"?rh(o):s)},zD(ee.kind),5),F0("div",{class:"val dim"},zD(ee.description??""),1)])}),128))])])):HD("v-if",!0),HD(" \u2500\u2500 Modules \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),rh(I).length>0?(fw(),bw("div",{key:1,class:"section"},[F0("div",{class:"section-header",style:S1e(rh(o))},"Modules",4),F0("div",{class:"table"},[(fw(!0),bw(ode,null,QWe(rh(I),(ee)=>{return fw(),bw("div",{key:ee.name,class:"row"},[F0("div",{class:"key"},zD(ee.name),1),F0("a",{class:"val path-link",href:ee.root},zD(ee.root),9,["href"])])}),128))])])):HD("v-if",!0),HD(" \u2500\u2500 Policy \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),F0("div",{class:"section"},[F0("div",{class:"section-header",style:S1e(rh(o))},"Policy",4),rh(G)?(fw(),bw("div",{key:0,class:"dim"},"loading...")):!rh(W)?(fw(),bw("div",{key:1,class:"dim"},"No policy configured.")):(fw(),bw(ode,{key:2},[HD(" fs "),rh(W).fs?(fw(),bw("div",{key:0,class:"policy-group"},[F0("div",{class:"policy-group-label dim"},"fs"),(fw(!0),bw(ode,null,QWe(rh(W).fs,(ee,ae)=>{return fw(),bw("div",{key:ae,class:"row"},[F0("div",{class:"key"},zD(ae),1),F0("div",{class:"val"},zD($(ee)),1)])}),128))])):HD("v-if",!0),HD(" shell "),rh(W).shell!==void 0?(fw(),bw("div",{key:1,class:"row"},[F0("div",{class:"key"},"shell"),F0("div",{class:"val"},zD($(rh(W).shell)),1)])):HD("v-if",!0),HD(" network "),rh(W).network?(fw(),bw("div",{key:2,class:"policy-group"},[F0("div",{class:"policy-group-label dim"},"network"),(fw(!0),bw(ode,null,QWe(rh(W).network,(ee,ae)=>{return fw(),bw("div",{key:ae,class:"row"},[F0("div",{class:"key"},zD(ae),1),F0("div",{class:"val"},zD($(ee)),1)])}),128))])):HD("v-if",!0),HD(" proc "),rh(W).proc!==void 0?(fw(),bw("div",{key:3,class:"row"},[F0("div",{class:"key"},"proc"),F0("div",{class:"val"},zD($(rh(W).proc)),1)])):HD("v-if",!0)],64))])],64)):HD("v-if",!0)])}}});yda.__scopeId="data-v-273a6d86";var wda=yda;var cf=hp(qm(),1);var m9i=cf.defineComponent;var d9i=cf.createCommentVNode;var kda={},g9i=m9i({__name:"index",setup(e){ub({layout:"default"});let t=Mf(),n=Tj();return cf.onMounted(()=>{let r=n.executionThreadId.value;console.log(`[index] onMounted, redirecting to /thread/${r}`),t.replace(`/thread/${r}`)}),(r,o)=>{return d9i(" Blank while redirecting to the execution thread. ")}}}),Cda=g9i;var Rda=!1;{let e=process.argv.slice(2),t={version:"1.0.39",args:e},n={"--version":({version:r})=>{console.log(r)},"--help":({version:r})=>{console.log(`axon ${r}`),console.log(),console.log("Usage: axon [command]"),console.log(),console.log("Commands:"),console.log(" init <name> Scaffold a new agent"),console.log(" dev [--port <n>] Start dev server"),console.log(" prepare Regenerate manifest"),console.log(" run <script> [--key val] Run a script [--tail for live output]"),console.log(" test [pattern] Run tests"),console.log(" bundle Bundle agent source"),console.log(" build Bundle + build Docker image"),console.log(" deploy Bundle + deploy to cloud"),console.log(" publish Bundle + publish to registry (no compute)"),console.log(" list List your published agents and modules"),console.log(" stop Stop a deployed agent"),console.log(" start Start a stopped agent"),console.log(" delete --force Delete deployment and all cloud resources"),console.log(" visibility <public|private> Set agent or module visibility"),console.log(""),console.log(" clone <@scope/name[@ver]> Clone an agent or module to disk"),console.log(" install --local <path> Install a local module into this agent"),console.log(" uninstall <name> Uninstall a module"),console.log(""),console.log(" module init <name> Scaffold a new module"),console.log(" module prepare Regenerate module manifest"),console.log(" module publish Publish module to registry"),console.log(""),console.log(" repo init Set up ArcLense in this repo"),console.log(" repo create <name> Scaffold a new repo agent"),console.log(" repo dev Start Mission Control"),console.log(" repo invoke <name> Print boot.md path for an agent"),console.log(""),console.log(" env [local|cloud] Show or switch environment"),console.log(""),console.log(" login Authenticate"),console.log(" logout Log out"),console.log(" whoami Show current user"),console.log(" prefs set telemetry <bool> Enable or disable crash reporting"),console.log(" install-sandbox Set up the axon-agent sandbox user and axon-runner helper (requires sudo)"),console.log(),console.log("Options:"),console.log(" --version Print version number"),console.log(" --help Show this help message")},init:async({args:r,cwd:o})=>{let{Init:s}=await Promise.resolve().then(() => (fJ(),gJ));await s.agent(r[0],o)},prepare:async({cwd:r})=>{let o=await import("fs"),s=await import("path"),A=o.existsSync(s.join(r,"module.config.ts")),m=o.existsSync(s.join(r,"axon.config.ts"));if(A){let{Module:d}=await Promise.resolve().then(() => (fJ(),gJ));await d.prepare()}else if(m){let{Manifest:d}=await Promise.resolve().then(() => (rJ(),YCt));await d.prepare()}else console.error("Not an agent or module directory (no axon.config.ts or module.config.ts found)."),process.exit(1)},dev:async({args:r})=>{let{Dev:o}=await Promise.resolve().then(() => (t2t(),e2t)),{Args:s}=await Promise.resolve().then(() => (Nj(),D1e)),{flags:A}=s.parse(r),m=A.port?parseInt(A.port,10):void 0;await o.run(m)},run:async({args:r})=>{let{Script:o}=await Promise.resolve().then(() => (t2t(),e2t)),{Args:s}=await Promise.resolve().then(() => (Nj(),D1e)),[A,...m]=r,{flags:d}=s.parse(m),{tail:b,..._}=d;await o.run(A,_,{tail:b==="true"})},test:async()=>{console.log("Run tests with your test runner directly: bun test"),console.log("The Axon() global is available in all test files \u2014 no imports needed."),process.exit(0)},bundle:async({cwd:r})=>{let{Bundle:o}=await Promise.resolve().then(() => (rJ(),YCt));await o.run(r)},build:async({cwd:r})=>{let{Docker:o}=await Promise.resolve().then(() => (rJ(),YCt));await o.build(r)},deploy:async({cwd:r})=>{let{Deploy:o}=await Promise.resolve().then(() => (pJ(),FV));await o.run(r)},publish:async({cwd:r})=>{let{existsSync:o}=await import("fs"),{join:s}=await import("path"),{Publish:A}=await Promise.resolve().then(() => (pJ(),FV));if(o(s(r,"module.config.ts")))await A.module(r);else await A.agent(r)},list:async()=>{let{Registry:r}=await Promise.resolve().then(() => (pJ(),FV));await r.list()},stop:async({cwd:r})=>{let{Lifecycle:o}=await Promise.resolve().then(() => (pJ(),FV));await o.stop(r)},start:async({cwd:r})=>{let{Lifecycle:o}=await Promise.resolve().then(() => (pJ(),FV));await o.start(r)},delete:async({args:r,cwd:o})=>{let{Lifecycle:s}=await Promise.resolve().then(() => (pJ(),FV)),{Args:A}=await Promise.resolve().then(() => (Nj(),D1e)),{flags:m}=A.parse(r);await s.remove(o,m.force==="true")},visibility:async({args:r,cwd:o})=>{let{Lifecycle:s}=await Promise.resolve().then(() => (pJ(),FV));await s.setVisibility(r[0],o)},clone:async({args:r,cwd:o})=>{let{Registry:s}=await Promise.resolve().then(() => (pJ(),FV)),{Args:A}=await Promise.resolve().then(() => (Nj(),D1e)),{flags:m,positional:d}=A.parse(r);await s.clone(d[0],m.dir,o)},install:async({args:r})=>{let{Install:o}=await Promise.resolve().then(() => (fJ(),gJ)),{Args:s}=await Promise.resolve().then(() => (Nj(),D1e)),{flags:A}=s.parse(r);await o.install(A.local)},uninstall:async({args:r})=>{let{Install:o}=await Promise.resolve().then(() => (fJ(),gJ));await o.uninstall(r[0])},module:async({args:r,cwd:o})=>{let{Init:s,Module:A}=await Promise.resolve().then(() => (fJ(),gJ)),{Publish:m}=await Promise.resolve().then(() => (pJ(),FV)),{Args:d}=await Promise.resolve().then(() => (Nj(),D1e)),[b,..._]=r,{positional:k}=d.parse(_);if(b==="init")await s.module(k[0],o);else if(b==="prepare")await A.prepare();else if(b==="publish")await m.module(o);else console.error(`Unknown module subcommand: ${b??""}`),process.exit(1)},env:async({args:r})=>{let{Env:o}=await Promise.resolve().then(() => (fJ(),gJ));if(r[0])await o.set(r[0]);else await o.get()},login:async()=>{let{Auth:r}=await Promise.resolve().then(() => (fJ(),gJ));await r.login()},logout:async()=>{let{Auth:r}=await Promise.resolve().then(() => (fJ(),gJ));await r.logout()},whoami:async()=>{let{Auth:r}=await Promise.resolve().then(() => (fJ(),gJ));await r.whoami()},"install-sandbox":async()=>{let{Sandbox:r}=await Promise.resolve().then(() => (t2t(),e2t));await r.install()},prefs:async({args:r})=>{let{Prefs:o}=await Promise.resolve().then(() => (fJ(),gJ)),[s,A,m]=r;if(s==="set"){await o.set(A,m);return}console.error(`Unknown prefs subcommand: ${s??""}`),process.exit(1)}};for(let[r,o]of Object.entries(n))if(e.includes(r)){await o(t),Rda=!0;break}}if(!Rda)tJt({routes:[{path:"/thread/:id",component:oda,name:"thread-id",meta:{layout:"default"}},{path:"/account",component:uda,name:"account",meta:{layout:"default"}},{path:"/auth",component:mda,name:"auth",meta:{layout:"default"}},{path:"/context",component:hda,name:"context",meta:{layout:"default"}},{path:"/environment",component:wda,name:"environment",meta:{layout:"default"}},{path:"/",component:Cda,name:"home",meta:{layout:"default"}}],styles:[Fua,Lua,Rua,vpa,Xua,nAa,Bpa,Hua,Tpa,jpa,qpa,Opa,Hpa,Jpa,Ypa,ema,rma,cma,lma,dma,hma,kma,Ema,Ima,Oma,Mma,$pa,Tma,Zma,Wma,rda,sda,lda,fda,_da,kda],layouts:new Map([["default",Xma]]),middleware:[kua],screen:{title:"VTerm"},quitKeys:["C-c"],highlight:{theme:"dark-plus"},ui:{cursor:{shape:"line",blink:!0},scrollbar:{thumb:"\u2502",track:"\u2502"},smoothScroll:{}}});
2048
+ `)+"\n```"}let W=Wl.ref(null),G=Wl.ref(!1);Wl.onMounted(async()=>{let q=n.handle.value;if(!q)return;G.value=!0;try{W.value=await q.policy.get()}finally{G.value=!1}});function $(q){if(q===void 0||q===null)return"\u2014";if(q===!0)return"allow";if(q===!1)return"deny";if(q==="escalate")return"escalate";if(typeof q==="object"){let U=[];if(q.allow?.length)U.push(`allow: ${q.allow.join(", ")}`);if(q.deny?.length)U.push(`deny: ${q.deny.join(", ")}`);if(q.escalate?.length)U.push(`escalate: ${q.escalate.join(", ")}`);return U.join(" \xB7 ")||"\u2014"}return String(q)}return(q,U)=>{let X=u9i("markdown");return fw(),bw("div",{class:"environment"},[HD(" \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),F0("div",{class:"section"},[F0("div",{class:"agent-name",style:S1e(rh(o))},zD(rh(A)),5),rh(m)?(fw(),bw("div",{key:0,class:"agent-description"},zD(rh(m)),1)):HD("v-if",!0),F0("div",{class:"table"},[F0("div",{class:"row"},[F0("div",{class:"key"},"engine"),F0("div",{class:"val"},zD(rh(k)),1)]),F0("div",{class:"row"},[F0("div",{class:"key"},"path"),rh(d)?(fw(),bw("div",{key:0,class:"val path-link row-action",onPress:_},zD(rh(b)),33)):(fw(),bw("div",{key:1,class:"val dim"},"cloud agent"))]),rh(B)?(fw(),bw("div",{key:0,class:"row"},[F0("div",{class:"key"},"workspace"),F0("a",{class:"val path-link",href:rh(B)},zD(rh(B)),9,["href"])])):HD("v-if",!0)])]),HD(" \u2500\u2500 Loading / error / not available \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),rh(r).loading.value?(fw(),bw("div",{key:0,class:"section"},[F0("div",{class:"dim"},"loading manifest...")])):rh(r).error.value?(fw(),bw("div",{key:1,class:"section"},[F0("div",{class:"hint"},zD(rh(r).error.value),1)])):!rh(r).manifest.value&&!rh(d)?(fw(),bw("div",{key:2,class:"section"},[F0("div",{class:"hint"},"Manifest is not available for cloud agents.")])):rh(r).manifest.value?(fw(),bw(ode,{key:3},[HD(" \u2500\u2500 Tools \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),F0("div",{class:"section"},[F0("div",{class:"section-header",style:S1e(rh(o))},"Tools",4),rh(D).length===0?(fw(),bw("div",{key:0,class:"hint"},"No tools defined. Add .ts files to src/tools/ to expose tools to this agent.")):(fw(),bw(ode,{key:1},[F0("div",{class:"hint"},"Type declarations exposed to the agent."),(fw(!0),bw(ode,null,QWe(rh(D),(ee)=>{return fw(),bw("div",{key:ee.name,class:"tool-block"},[F0("div",{class:"tool-header"},[F0("span",{class:"tool-name",style:S1e(rh(o))},zD(ee.name),5),ee.origin!=="src"?(fw(),bw("span",{key:0,class:"badge dim"},zD(ee.origin),1)):HD("v-if",!0)]),A9i(X,null,{default:c9i(()=>[s9i(zD(R(ee)),1)]),_:2},1024)])}),128))],64))]),HD(" \u2500\u2500 Prompts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),rh(Q).length>0?(fw(),bw("div",{key:0,class:"section"},[F0("div",{class:"section-header",style:S1e(rh(o))},"Prompts",4),F0("div",{class:"table"},[(fw(!0),bw(ode,null,QWe(rh(Q),(ee)=>{return fw(),bw("div",{key:ee.name,class:"row"},[F0("div",{class:"key"},zD(ee.name),1),F0("div",{class:"badge",style:S1e(ee.kind==="dynamic"?rh(o):s)},zD(ee.kind),5),F0("div",{class:"val dim"},zD(ee.description??""),1)])}),128))])])):HD("v-if",!0),HD(" \u2500\u2500 Modules \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),rh(I).length>0?(fw(),bw("div",{key:1,class:"section"},[F0("div",{class:"section-header",style:S1e(rh(o))},"Modules",4),F0("div",{class:"table"},[(fw(!0),bw(ode,null,QWe(rh(I),(ee)=>{return fw(),bw("div",{key:ee.name,class:"row"},[F0("div",{class:"key"},zD(ee.name),1),F0("a",{class:"val path-link",href:ee.root},zD(ee.root),9,["href"])])}),128))])])):HD("v-if",!0),HD(" \u2500\u2500 Policy \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),F0("div",{class:"section"},[F0("div",{class:"section-header",style:S1e(rh(o))},"Policy",4),rh(G)?(fw(),bw("div",{key:0,class:"dim"},"loading...")):!rh(W)?(fw(),bw("div",{key:1,class:"dim"},"No policy configured.")):(fw(),bw(ode,{key:2},[HD(" fs "),rh(W).fs?(fw(),bw("div",{key:0,class:"policy-group"},[F0("div",{class:"policy-group-label dim"},"fs"),(fw(!0),bw(ode,null,QWe(rh(W).fs,(ee,ae)=>{return fw(),bw("div",{key:ae,class:"row"},[F0("div",{class:"key"},zD(ae),1),F0("div",{class:"val"},zD($(ee)),1)])}),128))])):HD("v-if",!0),HD(" shell "),rh(W).shell!==void 0?(fw(),bw("div",{key:1,class:"row"},[F0("div",{class:"key"},"shell"),F0("div",{class:"val"},zD($(rh(W).shell)),1)])):HD("v-if",!0),HD(" network "),rh(W).network?(fw(),bw("div",{key:2,class:"policy-group"},[F0("div",{class:"policy-group-label dim"},"network"),(fw(!0),bw(ode,null,QWe(rh(W).network,(ee,ae)=>{return fw(),bw("div",{key:ae,class:"row"},[F0("div",{class:"key"},zD(ae),1),F0("div",{class:"val"},zD($(ee)),1)])}),128))])):HD("v-if",!0),HD(" proc "),rh(W).proc!==void 0?(fw(),bw("div",{key:3,class:"row"},[F0("div",{class:"key"},"proc"),F0("div",{class:"val"},zD($(rh(W).proc)),1)])):HD("v-if",!0)],64))])],64)):HD("v-if",!0)])}}});yda.__scopeId="data-v-273a6d86";var wda=yda;var cf=hp(qm(),1);var m9i=cf.defineComponent;var d9i=cf.createCommentVNode;var kda={},g9i=m9i({__name:"index",setup(e){ub({layout:"default"});let t=Mf(),n=Tj();return cf.onMounted(()=>{let r=n.executionThreadId.value;console.log(`[index] onMounted, redirecting to /thread/${r}`),t.replace(`/thread/${r}`)}),(r,o)=>{return d9i(" Blank while redirecting to the execution thread. ")}}}),Cda=g9i;var Rda=!1;{let e=process.argv.slice(2),t={version:"1.0.40",args:e},n={"--version":({version:r})=>{console.log(r)},"--help":({version:r})=>{console.log(`axon ${r}`),console.log(),console.log("Usage: axon [command]"),console.log(),console.log("Commands:"),console.log(" init <name> Scaffold a new agent"),console.log(" dev [--port <n>] Start dev server"),console.log(" prepare Regenerate manifest"),console.log(" run <script> [--key val] Run a script [--tail for live output]"),console.log(" test [pattern] Run tests"),console.log(" bundle Bundle agent source"),console.log(" build Bundle + build Docker image"),console.log(" deploy Bundle + deploy to cloud"),console.log(" publish Bundle + publish to registry (no compute)"),console.log(" list List your published agents and modules"),console.log(" stop Stop a deployed agent"),console.log(" start Start a stopped agent"),console.log(" delete --force Delete deployment and all cloud resources"),console.log(" visibility <public|private> Set agent or module visibility"),console.log(""),console.log(" clone <@scope/name[@ver]> Clone an agent or module to disk"),console.log(" install --local <path> Install a local module into this agent"),console.log(" uninstall <name> Uninstall a module"),console.log(""),console.log(" module init <name> Scaffold a new module"),console.log(" module prepare Regenerate module manifest"),console.log(" module publish Publish module to registry"),console.log(""),console.log(" repo init Set up ArcLense in this repo"),console.log(" repo create <name> Scaffold a new repo agent"),console.log(" repo dev Start Mission Control"),console.log(" repo invoke <name> Print boot.md path for an agent"),console.log(""),console.log(" env [local|cloud] Show or switch environment"),console.log(""),console.log(" login Authenticate"),console.log(" logout Log out"),console.log(" whoami Show current user"),console.log(" prefs set telemetry <bool> Enable or disable crash reporting"),console.log(" install-sandbox Set up the axon-agent sandbox user and axon-runner helper (requires sudo)"),console.log(),console.log("Options:"),console.log(" --version Print version number"),console.log(" --help Show this help message")},init:async({args:r,cwd:o})=>{let{Init:s}=await Promise.resolve().then(() => (fJ(),gJ));await s.agent(r[0],o)},prepare:async({cwd:r})=>{let o=await import("fs"),s=await import("path"),A=o.existsSync(s.join(r,"module.config.ts")),m=o.existsSync(s.join(r,"axon.config.ts"));if(A){let{Module:d}=await Promise.resolve().then(() => (fJ(),gJ));await d.prepare()}else if(m){let{Manifest:d}=await Promise.resolve().then(() => (rJ(),YCt));await d.prepare()}else console.error("Not an agent or module directory (no axon.config.ts or module.config.ts found)."),process.exit(1)},dev:async({args:r})=>{let{Dev:o}=await Promise.resolve().then(() => (t2t(),e2t)),{Args:s}=await Promise.resolve().then(() => (Nj(),D1e)),{flags:A}=s.parse(r),m=A.port?parseInt(A.port,10):void 0;await o.run(m)},run:async({args:r})=>{let{Script:o}=await Promise.resolve().then(() => (t2t(),e2t)),{Args:s}=await Promise.resolve().then(() => (Nj(),D1e)),[A,...m]=r,{flags:d}=s.parse(m),{tail:b,..._}=d;await o.run(A,_,{tail:b==="true"})},test:async()=>{console.log("Run tests with your test runner directly: bun test"),console.log("The Axon() global is available in all test files \u2014 no imports needed."),process.exit(0)},bundle:async({cwd:r})=>{let{Bundle:o}=await Promise.resolve().then(() => (rJ(),YCt));await o.run(r)},build:async({cwd:r})=>{let{Docker:o}=await Promise.resolve().then(() => (rJ(),YCt));await o.build(r)},deploy:async({cwd:r})=>{let{Deploy:o}=await Promise.resolve().then(() => (pJ(),FV));await o.run(r)},publish:async({cwd:r})=>{let{existsSync:o}=await import("fs"),{join:s}=await import("path"),{Publish:A}=await Promise.resolve().then(() => (pJ(),FV));if(o(s(r,"module.config.ts")))await A.module(r);else await A.agent(r)},list:async()=>{let{Registry:r}=await Promise.resolve().then(() => (pJ(),FV));await r.list()},stop:async({cwd:r})=>{let{Lifecycle:o}=await Promise.resolve().then(() => (pJ(),FV));await o.stop(r)},start:async({cwd:r})=>{let{Lifecycle:o}=await Promise.resolve().then(() => (pJ(),FV));await o.start(r)},delete:async({args:r,cwd:o})=>{let{Lifecycle:s}=await Promise.resolve().then(() => (pJ(),FV)),{Args:A}=await Promise.resolve().then(() => (Nj(),D1e)),{flags:m}=A.parse(r);await s.remove(o,m.force==="true")},visibility:async({args:r,cwd:o})=>{let{Lifecycle:s}=await Promise.resolve().then(() => (pJ(),FV));await s.setVisibility(r[0],o)},clone:async({args:r,cwd:o})=>{let{Registry:s}=await Promise.resolve().then(() => (pJ(),FV)),{Args:A}=await Promise.resolve().then(() => (Nj(),D1e)),{flags:m,positional:d}=A.parse(r);await s.clone(d[0],m.dir,o)},install:async({args:r})=>{let{Install:o}=await Promise.resolve().then(() => (fJ(),gJ)),{Args:s}=await Promise.resolve().then(() => (Nj(),D1e)),{flags:A}=s.parse(r);await o.install(A.local)},uninstall:async({args:r})=>{let{Install:o}=await Promise.resolve().then(() => (fJ(),gJ));await o.uninstall(r[0])},module:async({args:r,cwd:o})=>{let{Init:s,Module:A}=await Promise.resolve().then(() => (fJ(),gJ)),{Publish:m}=await Promise.resolve().then(() => (pJ(),FV)),{Args:d}=await Promise.resolve().then(() => (Nj(),D1e)),[b,..._]=r,{positional:k}=d.parse(_);if(b==="init")await s.module(k[0],o);else if(b==="prepare")await A.prepare();else if(b==="publish")await m.module(o);else console.error(`Unknown module subcommand: ${b??""}`),process.exit(1)},env:async({args:r})=>{let{Env:o}=await Promise.resolve().then(() => (fJ(),gJ));if(r[0])await o.set(r[0]);else await o.get()},login:async()=>{let{Auth:r}=await Promise.resolve().then(() => (fJ(),gJ));await r.login()},logout:async()=>{let{Auth:r}=await Promise.resolve().then(() => (fJ(),gJ));await r.logout()},whoami:async()=>{let{Auth:r}=await Promise.resolve().then(() => (fJ(),gJ));await r.whoami()},"install-sandbox":async()=>{let{Sandbox:r}=await Promise.resolve().then(() => (t2t(),e2t));await r.install()},prefs:async({args:r})=>{let{Prefs:o}=await Promise.resolve().then(() => (fJ(),gJ)),[s,A,m]=r;if(s==="set"){await o.set(A,m);return}console.error(`Unknown prefs subcommand: ${s??""}`),process.exit(1)}};for(let[r,o]of Object.entries(n))if(e.includes(r)){await o(t),Rda=!0;break}}if(!Rda)tJt({routes:[{path:"/thread/:id",component:oda,name:"thread-id",meta:{layout:"default"}},{path:"/account",component:uda,name:"account",meta:{layout:"default"}},{path:"/auth",component:mda,name:"auth",meta:{layout:"default"}},{path:"/context",component:hda,name:"context",meta:{layout:"default"}},{path:"/environment",component:wda,name:"environment",meta:{layout:"default"}},{path:"/",component:Cda,name:"home",meta:{layout:"default"}}],styles:[Fua,Lua,Rua,vpa,Tpa,jpa,qpa,Opa,Hpa,Jpa,Ypa,ema,rma,cma,lma,dma,hma,kma,Ema,Ima,Oma,Mma,$pa,Tma,Zma,Xua,nAa,Bpa,Hua,Wma,rda,sda,lda,fda,_da,kda],layouts:new Map([["default",Xma]]),middleware:[kua],screen:{title:"VTerm"},quitKeys:["C-c"],highlight:{theme:"dark-plus"},ui:{cursor:{shape:"line",blink:!0},scrollbar:{thumb:"\u2502",track:"\u2502"},smoothScroll:{}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcforge/axon",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "coding agent cli",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,6 +14,7 @@
14
14
  "README.md"
15
15
  ],
16
16
  "dependencies": {
17
+ "@arcforge/axon": "^1.0.39",
17
18
  "chalk": "^5.6.2",
18
19
  "fft.js": "^4.0.4",
19
20
  "open": "^11.0.0"