@vibecontrols/agent 2026.902.1 → 2026.1125.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-config-v9d7gcz0.js +2 -0
- package/dist/agent-ready-tracker-mewxehg9.js +2 -0
- package/dist/app-a95wetk5.js +2 -0
- package/dist/autostart.cmd-ahet7b1t.js +2 -0
- package/dist/bootstrap-workspace-3pb8qjsh.js +2 -0
- package/dist/bootstrap.service-9m7m1ksa.js +2 -0
- package/dist/bridge-client-xvqy3n15.js +2 -0
- package/dist/cli.js +2 -2
- package/dist/daemon-profile-sg8fp50z.js +2 -0
- package/dist/finalize-retry-handle-registry-z9mbbjmj.js +2 -0
- package/dist/finalize-retry-worker-az74f2qv.js +2 -0
- package/dist/gateway-client-ermpz52n.js +2 -0
- package/dist/getMachineId-bsd-4w1wmcjv.js +2 -0
- package/dist/getMachineId-darwin-kejwz8w5.js +3 -0
- package/dist/getMachineId-linux-mpm53wat.js +2 -0
- package/dist/getMachineId-unsupported-54seyw5v.js +2 -0
- package/dist/getMachineId-win-cva7ghz9.js +2 -0
- package/dist/highlights-3nz7pbkh.js +2 -0
- package/dist/highlights-6dgztt5d.js +2 -0
- package/dist/highlights-jq0g1547.js +2 -0
- package/dist/highlights-yc7cwzcr.js +2 -0
- package/dist/highlights-z2sw1kpq.js +2 -0
- package/dist/index-01fp85ft.js +171 -0
- package/dist/index-0gmhd3hs.js +4 -0
- package/dist/index-0qjbnyg4.js +21 -0
- package/dist/index-2r6cmxxz.js +9 -0
- package/dist/index-2vcxt38h.js +3 -0
- package/dist/index-4527yp1c.js +178 -0
- package/dist/index-4z1y39jt.js +3 -0
- package/dist/index-5021rk8n.js +3 -0
- package/dist/index-652f9scs.js +4 -0
- package/dist/index-75hk5q9s.js +13 -0
- package/dist/index-76m37yd8.js +22 -0
- package/dist/index-7f2k4g6q.js +8 -0
- package/dist/index-7gk1x74m.js +15 -0
- package/dist/index-7wben1jx.js +3 -0
- package/dist/index-8rbhm4g8.js +7 -0
- package/dist/index-9xrhb68w.js +14 -0
- package/dist/index-a0vx2zyx.js +3 -0
- package/dist/index-akk3rxnn.js +4 -0
- package/dist/index-b3v08awy.js +3 -0
- package/dist/index-byerrz46.js +3 -0
- package/dist/index-c4whjk5r.js +3 -0
- package/dist/index-cy97asyh.js +133 -0
- package/dist/index-d59kp6zr.js +3 -0
- package/dist/index-ec08v08h.js +116 -0
- package/dist/index-g08z6z5v.js +5 -0
- package/dist/index-gaztfvyz.js +158 -0
- package/dist/index-gnb8xw13.js +83 -0
- package/dist/index-haww9jpq.js +27 -0
- package/dist/index-hsrt2v87.js +2 -0
- package/dist/index-jmx5awkj.js +3 -0
- package/dist/index-jnxjjx2y.js +3 -0
- package/dist/index-kwhx023z.js +11 -0
- package/dist/index-mmx2kp76.js +16 -0
- package/dist/index-ne8q0a64.js +26 -0
- package/dist/index-nzfqdhsx.js +11 -0
- package/dist/index-qe3xpt41.js +3 -0
- package/dist/index-qfxwk38p.js +82 -0
- package/dist/index-ss5gez2p.js +2 -0
- package/dist/index-t5cfkz1e.js +4 -0
- package/dist/index-t6p4szqx.js +5 -0
- package/dist/index-tahaxp6n.js +3 -0
- package/dist/index-v16qz1fa.js +3 -0
- package/dist/index-v35k2y31.js +17 -0
- package/dist/index-vtsd74g0.js +9 -0
- package/dist/index-w0m3jm0s.js +408 -0
- package/dist/index-w4jqdhc2.js +5 -0
- package/dist/index-xtd0j8ve.js +3 -0
- package/dist/index-ywnfz6nm.js +3 -0
- package/dist/index.js +3 -3
- package/dist/injections-h25c1fmk.js +2 -0
- package/dist/interactive-vbz68zh5.js +2 -0
- package/dist/key.cmd-f6rjvjy8.js +2 -0
- package/dist/log-shipper-0erbwn0q.js +2 -0
- package/dist/path-utils-r4df8d3w.js +2 -0
- package/dist/plugin-system-zj50tg4k.js +2 -0
- package/dist/prereqs-runner-gca0bytz.js +2 -0
- package/dist/profile-mount-s4mc1x18.js +2 -0
- package/dist/prune-stale-shims-4nqtv0xt.js +2 -0
- package/dist/register-core-vng5hdga.js +2 -0
- package/dist/secondary-profile-attach-pyqqf4ny.js +2 -0
- package/dist/subprocess-4gg77skg.js +2 -0
- package/dist/telemetry-nmtywcba.js +2 -0
- package/dist/tree-sitter-javascript-rfadfcwb.js +2 -0
- package/dist/tree-sitter-markdown-gkyb2qez.js +2 -0
- package/dist/tree-sitter-markdown_inline-xzttqkvb.js +2 -0
- package/dist/tree-sitter-typescript-4z897028.js +2 -0
- package/dist/tree-sitter-zig-y6n7djp6.js +2 -0
- package/dist/tunnel-bootstrap-zwyzxrkt.js +2 -0
- package/package.json +10 -9
- package/dist/agent-config-5b0avmy6.js +0 -2
- package/dist/agent-ready-tracker-ez6r9djg.js +0 -2
- package/dist/app-mhms2gs0.js +0 -2
- package/dist/autostart.cmd-4zb9xhj0.js +0 -2
- package/dist/bootstrap-workspace-t5fyq07m.js +0 -2
- package/dist/bootstrap.service-nxhkrsf1.js +0 -2
- package/dist/bridge-client-bgkr7bcn.js +0 -2
- package/dist/daemon-profile-j2wt35x8.js +0 -2
- package/dist/esm-n9r8p5n2.js +0 -2
- package/dist/finalize-retry-handle-registry-fvm4gm8s.js +0 -2
- package/dist/finalize-retry-worker-wb8wj1yw.js +0 -2
- package/dist/gateway-client-6dqagbg4.js +0 -2
- package/dist/getMachineId-bsd-fgatzdd7.js +0 -2
- package/dist/getMachineId-darwin-gt8j2jw2.js +0 -3
- package/dist/getMachineId-linux-bcz4rr1x.js +0 -2
- package/dist/getMachineId-unsupported-079qwwb4.js +0 -2
- package/dist/getMachineId-win-2hk4e8bg.js +0 -2
- package/dist/highlights-0gfz787m.js +0 -2
- package/dist/highlights-86sbx76f.js +0 -2
- package/dist/highlights-n55f5jnk.js +0 -2
- package/dist/highlights-tbmszdr7.js +0 -2
- package/dist/highlights-wm2cs773.js +0 -2
- package/dist/index-06es0fmw.js +0 -10
- package/dist/index-0d4wfjbt.js +0 -171
- package/dist/index-29fmptfn.js +0 -13
- package/dist/index-2q2jadag.js +0 -11
- package/dist/index-2sn36kaj.js +0 -7
- package/dist/index-3p4n7nwg.js +0 -83
- package/dist/index-3tf12pw3.js +0 -3
- package/dist/index-54mmh1eb.js +0 -4
- package/dist/index-6jzsthh9.js +0 -3
- package/dist/index-7wejfjj9.js +0 -5
- package/dist/index-8q19ryt2.js +0 -28
- package/dist/index-8xh8m2z7.js +0 -8
- package/dist/index-98gr644s.js +0 -116
- package/dist/index-a8n6s2ae.js +0 -2
- package/dist/index-b16y8wyz.js +0 -15
- package/dist/index-bv1z3fxw.js +0 -3
- package/dist/index-cs78wq6y.js +0 -3
- package/dist/index-df19rrbe.js +0 -5
- package/dist/index-dx9hjdp4.js +0 -178
- package/dist/index-ea42kfvk.js +0 -5
- package/dist/index-ekr40gvh.js +0 -3
- package/dist/index-evnbrmdf.js +0 -4
- package/dist/index-f2asckf0.js +0 -26
- package/dist/index-ggxs7nwz.js +0 -3
- package/dist/index-gz5t0vvc.js +0 -4
- package/dist/index-hey6w5m0.js +0 -3
- package/dist/index-hp8jrj6j.js +0 -3
- package/dist/index-hrfkzecw.js +0 -3
- package/dist/index-hwpmdq5z.js +0 -4
- package/dist/index-hz5cy6vz.js +0 -11
- package/dist/index-jbxh0ffn.js +0 -407
- package/dist/index-js2r0men.js +0 -9
- package/dist/index-k3jkzj3k.js +0 -9
- package/dist/index-kteawn2b.js +0 -3
- package/dist/index-mbhq916m.js +0 -3
- package/dist/index-mxc61yr1.js +0 -3
- package/dist/index-qdbxvcwr.js +0 -17
- package/dist/index-qqq9qyy6.js +0 -21
- package/dist/index-rmh8pff5.js +0 -3
- package/dist/index-sspydg85.js +0 -15
- package/dist/index-tk81f249.js +0 -3
- package/dist/index-vjdg5qb2.js +0 -2
- package/dist/index-vkrf8kzp.js +0 -158
- package/dist/index-vnxqna70.js +0 -16
- package/dist/index-w7gctzhm.js +0 -83
- package/dist/index-wj5hx7gq.js +0 -4
- package/dist/index-x4eaagvr.js +0 -3
- package/dist/index-xjr60th0.js +0 -3
- package/dist/index-xtbppqnv.js +0 -3
- package/dist/index-y42xsgr6.js +0 -133
- package/dist/index-zr9rmjyp.js +0 -3
- package/dist/injections-2g0zh0bq.js +0 -2
- package/dist/interactive-08vyaapn.js +0 -2
- package/dist/key.cmd-642xcxb4.js +0 -2
- package/dist/log-shipper-9xfnjwr6.js +0 -2
- package/dist/path-utils-g449hqvm.js +0 -2
- package/dist/plugin-system-gpzcch00.js +0 -2
- package/dist/prereqs-runner-re9f51fp.js +0 -2
- package/dist/profile-mount-txvgkaz8.js +0 -2
- package/dist/prune-stale-shims-vs6a07tb.js +0 -2
- package/dist/register-core-ma4kse87.js +0 -2
- package/dist/secondary-profile-attach-m9x9e7py.js +0 -2
- package/dist/subprocess-zcgpccp1.js +0 -2
- package/dist/telemetry-k6em3vy2.js +0 -2
- package/dist/tree-sitter-javascript-qh90w7td.js +0 -2
- package/dist/tree-sitter-markdown-favzteb6.js +0 -2
- package/dist/tree-sitter-markdown_inline-x2726t9j.js +0 -2
- package/dist/tree-sitter-typescript-m7ep8z1h.js +0 -2
- package/dist/tree-sitter-zig-3vsxg5wh.js +0 -2
- package/dist/tunnel-bootstrap-y8dczezc.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Qt,lr,fe,je,pe,jt,Hr,_t,Vr,et,Yr,gr,dr,tt,hr,Zr,w,Jr,M,Gt,X,$t,Wr,Xr,zr,ei,yt,ti}from"./index-kwhx023z.js";import"./index-0qjbnyg4.js";export{Qt as BUILTIN_PROFILE_SEEDS,lr as NAMED_ENV_PRESETS,yt as applyAgentConfigToEnv,ti as applyAgentSecretsToEnv,fe as assertValidProfileName,$t as buildPairedIdentity,gr as buildProfileSeed,Yr as deleteProfile,Wr as describeGatewayIdentityConflict,zr as describeGatewayIdentityMismatch,Xr as describeProfileEnvironmentConflict,dr as ensureProfilesInitialized,hr as getAgentConfigDefaults,tt as getAgentConfigPath,Zr as getAgentConfigSeed,ei as getEnvPinnedGateways,Jr as getOrCreateAgentInstanceId,je as getProfilePath,Hr as listProfileNames,pe as readActiveProfileName,w as readAgentConfig,X as readAgentConfigWithSecrets,_t as readProfile,Vr as readProfileStrict,jt as writeActiveProfileName,M as writeAgentConfig,Gt as writeAgentConfigAwaitSecrets,et as writeProfile};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{i,g,n,c}from"./index-7f2k4g6q.js";var u={pending:()=>i.gray("\u25CF"),active:()=>i.cyan("\u25B6"),ok:()=>i.green("\u2713"),warn:()=>i.yellow("\u26A0"),fail:()=>i.red("\u2717")};function d(a,t){if(t)console.log(" "+a)}async function P(a,t=2000){let f=new AbortController,h=setTimeout(()=>f.abort(),t);try{let e=await fetch(`${a}/health/ready`,{signal:f.signal});if(e.status!==200&&e.status!==503)return null;return await e.json()}catch{return null}finally{clearTimeout(h)}}function D(a){if(!a?.message)return null;let t=a.message.match(/provider:\s*(\S+)/);return t?t[1]:null}async function I(a,t={}){let f=t.timeoutMs??60000,h=t.pollIntervalMs??500,e=t.verbose!==!1;if(e)g("Waiting for agent to become ready");let o={daemon:!1,awaiting:!1,initializing:!1,db:!1,session:!1,tunnel:!1},S=Date.now(),p="",v=0,A=null;while(Date.now()-S<f){let m=await P(a);if(!m){await C(h);continue}if(!o.daemon)d(`${u.ok()} Daemon listening on ${a}`,e),o.daemon=!0;let s=m.bootState??"unknown",y=m.components??{};if(s!==p){if(p=s,s==="awaiting-config"&&!o.awaiting)d(`${u.warn()} Workspace config: ${i.yellow("awaiting OAuth credentials \u2014 register this agent in the VibeControls UI")}`,e),o.awaiting=!0;else if(s==="initializing"&&!o.initializing)d(`${u.active()} Finalizing: fetching encryption key, opening storage, loading plugins\u2026`,e),o.initializing=!0}if(s==="awaiting-config"){if(v++,v>=2)return{outcome:"awaiting-config",bootState:s,degradedReasons:[],summary:"Agent is awaiting workspace registration. Open the VibeControls UI \u2192 Agents \u2192 Add Agent, paste the API Key and Tunnel URL printed above."}}else v=0;if(y.db?.ok&&!o.db)d(`${u.ok()} Storage encryption key loaded, DB opened`,e),o.db=!0;if(y.session?.ok&&!o.session){let k=y.session.message??"";d(`${u.ok()} Plugins started \u2014 ${k}`,e),o.session=!0}let b=D(y.tunnel);if(b&&b!=="bootstrap"&&b!==A){if(A=b,!o.tunnel)d(`${u.ok()} Tunnel ready (provider: ${b})`,e),o.tunnel=!0}let T=m.status==="degraded";if(s==="ready"&&!T){if(e)c(),n("Status",i.green("ready"));return{outcome:"ready",bootState:s,degradedReasons:[],summary:"Agent ready."}}if(s==="degraded"||s==="ready"&&T){let k=m.degradedReasons??[],w=k;if(k.length===0){let r=[];for(let[R,l]of Object.entries(y)){if(R==="boot"||R==="lifecycle")continue;if(l&&!l.ok&&l.message)r.push({plugin:R,message:l.message})}for(let[R,l]of Object.entries(m.plugins??{}))if(l&&!l.ok&&l.message)r.push({plugin:`plugin:${R}`,message:l.message});w=r}if(e){c(),d(`${u.fail()} Agent boot ${i.red("degraded")} \u2014 investigate before retrying`,e);for(let r of w)d(` ${i.gray("\xB7")} [${r.plugin}] ${r.message}`,e);c()}return{outcome:"degraded",bootState:s,degradedReasons:w,summary:w.length?`Agent degraded: ${w.map((r)=>`[${r.plugin}] ${r.message}`).join("; ")}`:"Agent degraded with no reported reason \u2014 check vibe logs."}}await C(h)}if(e)c(),d(`${u.warn()} Timed out after ${Math.round(f/1000)}s; last bootState=${p||"unknown"}. Check ${i.bold("vibe logs")} for details.`,e),c();return{outcome:"timeout",bootState:p||"unknown",degradedReasons:[],summary:`Timed out waiting for ready. Last bootState=${p||"unknown"}.`}}function C(a){return new Promise((t)=>setTimeout(t,a))}export{I as trackAgentReady};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Er}from"./index-ne8q0a64.js";import"./index-tahaxp6n.js";import"./index-4527yp1c.js";import"./index-jnxjjx2y.js";import"./index-v35k2y31.js";import"./index-75hk5q9s.js";import"./index-gnb8xw13.js";import"./index-g08z6z5v.js";import"./index-ywnfz6nm.js";import"./index-4z1y39jt.js";import"./index-qfxwk38p.js";import"./index-mmx2kp76.js";import"./index-5021rk8n.js";import"./index-w0m3jm0s.js";import"./index-byerrz46.js";import"./index-kwhx023z.js";import"./index-0qjbnyg4.js";export{Er as createApp};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{T,e}from"./index-0qjbnyg4.js";var v="bridge-client",E=2000,k=30000,h=30000,f=6,n={ws:null,pingTimer:null,reconnectTimer:null,reconnectAttempt:0,connected:!1,stopped:!1,agentId:null,profile:"default",pendingEvents:[]};function s(t,r,i){e().logger[t](v,r,i)}function b(t){try{let r=new URL(t);r.protocol=r.protocol==="https:"?"wss:":"ws:",r.pathname="/agent-bridge",r.search="",r.hash="";let i=process.env.VIBE_BRIDGE_URL;if(i)return i;return r.toString()}catch{return process.env.VIBE_BRIDGE_URL??""}}async function m(){if(n.stopped||n.ws)return;if(!T.isConfigured()){s("debug","Gateway client not configured yet; deferring bridge connect");return}if(!n.agentId){s("debug","No agentId set yet; deferring bridge connect");return}let t,r,i;try{let o=await T.getAccessToken();t=o.token,r=o.workspaceGatewayUrl,i=o.workspaceId}catch(o){s("warn","Failed to fetch access token for bridge",{error:o instanceof Error?o.message:String(o)}),d();return}if(!t||!r){d();return}let l=b(r);if(!l){s("warn","Cannot resolve bridge URL from workspaceGatewayUrl",{workspaceGatewayUrl:r}),d();return}s("info","Connecting to agent-bridge",{url:l,agentId:n.agentId});let a;try{a=new WebSocket(l,{headers:{Authorization:`Bearer ${t}`,...i?{"x-workspace-id":i}:{}}})}catch(o){s("warn","Bridge connect threw",{error:o instanceof Error?o.message:String(o)}),d();return}n.ws=a,a.addEventListener("open",()=>{n.reconnectAttempt=0,s("info","Bridge socket open \u2014 sending hello"),g({type:"hello",agentId:n.agentId,profile:n.profile,version:process.env.npm_package_version??"unknown"})}),a.addEventListener("message",(o)=>{let p=typeof o.data==="string"?o.data:o.data instanceof Blob?"":new TextDecoder().decode(o.data);if(!p)return;let c;try{c=JSON.parse(p)}catch{return}if(c.type==="welcome")n.connected=!0,s("info","Bridge welcome received \u2014 connection ready",{workspaceId:typeof c.workspaceId==="string"?c.workspaceId:void 0}),I(),B();else if(c.type==="error")s("warn","Bridge error frame",{error:c})}),a.addEventListener("close",(o)=>{if(s("info","Bridge socket closed",{code:o.code,reason:o.reason}),y(),!n.stopped)d()}),a.addEventListener("error",(o)=>{s("warn","Bridge socket error",{message:o.message})})}function g(t){if(!n.ws||n.ws.readyState!==1)return!1;try{return n.ws.send(JSON.stringify(t)),!0}catch(r){return s("debug","safeSend failed",{error:r instanceof Error?r.message:String(r)}),!1}}function I(){w(),n.pingTimer=setInterval(()=>{g({type:"ping"})},h),n.pingTimer.unref?.()}function w(){if(n.pingTimer)clearInterval(n.pingTimer),n.pingTimer=null}function y(){n.connected=!1,w(),n.ws=null}function d(){if(n.stopped||n.reconnectTimer)return;let t=n.reconnectAttempt+1,r=Math.min(E*2**Math.min(t-1,5),k);if(n.reconnectAttempt=t,t===f)s("warn",`Bridge unavailable after ${t} attempts \u2014 falling back to existing HTTP polling for heartbeat/tunnel sync. Will keep retrying in the background.`);n.reconnectTimer=setTimeout(()=>{n.reconnectTimer=null,m().catch((i)=>{s("debug",`Bridge reconnect attempt failed: ${i instanceof Error?i.message:String(i)}`)})},r),n.reconnectTimer.unref?.()}function B(){if(!n.connected)return;while(n.pendingEvents.length>0){let t=n.pendingEvents.shift();if(!g({type:t.type,...t.payload})){n.pendingEvents.unshift(t);return}}}var R=500;function u(t){if(n.connected&&g({type:t.type,...t.payload}))return;if(n.pendingEvents.length>=R)n.pendingEvents.shift();n.pendingEvents.push(t)}var A={start(t,r){if(n.stopped=!1,n.agentId===t&&n.connected)return;n.agentId=t,n.profile=r||"default",m().catch((i)=>{s("debug",`Bridge connect failed: ${i instanceof Error?i.message:String(i)}`)})},stop(){if(n.stopped=!0,n.reconnectTimer)clearTimeout(n.reconnectTimer),n.reconnectTimer=null;let t=n.ws;try{t?.close(1000,"agent shutdown")}catch{}y()},publishEvent(t){u({type:"event",payload:{topic:t.topic,payload:t.payload}})},publishLog(t){u({type:"log",payload:{payload:t}})},isConnected(){return n.connected},isFallbackEngaged(){return n.reconnectAttempt>=f&&!n.connected}};export{A as bridgeClient};
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import{
|
|
3
|
+
import{$e}from"./index-haww9jpq.js";import{I,se,e}from"./index-0qjbnyg4.js";import{W}from"./index-g08z6z5v.js";import{Z}from"./index-ywnfz6nm.js";import{vi}from"./index-7f2k4g6q.js";import"./index-w0m3jm0s.js";import"./index-kwhx023z.js";import"./index-5021rk8n.js";import"./index-mmx2kp76.js";import{xr}from"./index-jmx5awkj.js";import"./index-vtsd74g0.js";import"./index-652f9scs.js";import"./index-cy97asyh.js";import{br,wr}from"./index-ec08v08h.js";import"./index-v35k2y31.js";import"./index-0gmhd3hs.js";import"./index-75hk5q9s.js";import{Te,Ee,Ti,ke}from"./index-gnb8xw13.js";import{b}from"./index-w4jqdhc2.js";import"./index-4z1y39jt.js";import"./index-t5cfkz1e.js";import"./index-byerrz46.js";import{join as m}from"path";if(typeof Bun>"u")console.error(`\x1B[31mError:\x1B[0m VibeControls Agent requires the Bun runtime.
|
|
4
4
|
Install Bun: https://bun.sh
|
|
5
|
-
Then run: bun run vibe ...`),process.exit(1);var
|
|
5
|
+
Then run: bun run vibe ...`),process.exit(1);var a=process.argv.slice(2),l=a.includes("--plain")||a.includes("--json")||process.env.NO_COLOR==="1"||!process.stdout.isTTY;vi(!l);try{xr()}catch{}var s="1.0.0";try{let t=m(import.meta.dir,"..","package.json");s=(await Bun.file(t).json()).version}catch{}var r=new $e;r.name("vibe").description("VibeControls Agent CLI \u2014 Remote development environment management").version(s,"-v, --version").option("--provider <name>","Override the default provider for tunnel/session operations").option("-p, --profile <name>","Target a specific profile (one-off; doesn't change the persisted default). See `vibe profile`.").option("--json","Emit machine-readable JSON instead of human output.").option("--plain","Force plain-text output (no interactive UI).").hook("preAction",(t,o)=>{let n=t.opts().profile;if(n)process.env.VIBECONTROLS_PROFILE=n;try{Z.init(),Z.emit("command.executed",{command_name:o.name()})}catch{}});wr(r);async function g(){let t=new W;try{await t.loadCorePlugins()}catch{}try{await t.loadAll()}catch{}let o=new Te,n={storage:{async get(){return null},async set(){},async delete(){return!1},async list(){return[]},async deleteAll(){return 0}},logger:e().logger,serviceRegistry:o,getProvider:(i)=>o.getProvider(i),getAgentBaseUrl:()=>process.env.AGENT_URL||"http://localhost:3005",getAgentVersion:()=>s,broadcast:()=>{},workspaceQuery:async()=>({data:void 0,errors:[{message:"workspaceQuery is not available in CLI mode"}]}),isGatewayConfigured:()=>!1,getAgentRecordId:async()=>null,getWorkspaceId:async()=>null,getConfig:async()=>{return},getPluginRegistry:()=>se(),getDataDir:()=>I(),cliContributors:new Ee,telemetry:{emit:(i,p)=>{try{Z.emit(i,p??{})}catch{}}},os:b(),iframeBridge:ke()};Ti(n.cliContributors);try{await t.dispatchCliSetup(r,n)}catch{}r.configureHelp({formatHelp:()=>br(r,!0)}),await r.parseAsync()}g().then(()=>{process.exit(process.exitCode??0)}).catch((t)=>{console.error(`\x1B[31mFatal:\x1B[0m ${t instanceof Error?t.message:t}`),process.exit(1)});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{e}from"./index-0qjbnyg4.js";var m=[300000,600000,900000,1800000];function p(f){let g=f.backoffsMs??m,n=0,o=!1,i=null,u=null,a=null,t=e();if(t.getBootState()==="ready")return{cancel(){},async forceRetryNow(){return{ok:!0}},getState(){return{attempt:0,cancelled:!0,nextAttemptAt:null}}};function c(){if(i!==null)clearTimeout(i),i=null,u=null}function y(){if(o)return Promise.resolve({ok:!1,error:"retry worker cancelled"});if(t.getBootState()==="ready")return o=!0,c(),Promise.resolve({ok:!0});if(a)return a;return n+=1,f.onAttempt?.(n),t.logger.info("finalize-retry",`Background finalize retry attempt ${n}`),a=(async()=>{try{let r=await f.trigger();if(r.ok)t.logger.info("finalize-retry",`Background finalize succeeded on attempt ${n} \u2014 agent recovered`),o=!0,c();else t.recordFinalizeError(r.error,n),t.logger.warn("finalize-retry",`Background finalize attempt ${n} failed`,{error:r.error});return r}catch(r){let l=r instanceof Error?r.message:String(r);return t.recordFinalizeError(l,n),t.logger.error("finalize-retry",`Background finalize attempt ${n} threw`,{error:l}),{ok:!1,error:l}}finally{a=null}})(),a}function s(){if(o)return;if(t.getBootState()==="ready"){o=!0;return}if(i!==null)return;let r=Math.min(n,g.length-1),l=g[r];u=Date.now()+l,i=setTimeout(async()=>{if(i=null,await y(),!o&&t.getBootState()!=="ready")s()},l)}return s(),{cancel(){o=!0,c()},async forceRetryNow(){if(t.getBootState()==="ready")return{ok:!0};if(o)return{ok:!1,error:"retry worker cancelled"};c();let r=await y();if(!o&&t.getBootState()!=="ready")s();return r},getState(){return{attempt:n,cancelled:o,nextAttemptAt:u?new Date(u).toISOString():null}}}}export{p as startFinalizeRetryWorker};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{nt}from"./index-qe3xpt41.js";import{x}from"./index-7wben1jx.js";import{a,j}from"./index-a0vx2zyx.js";var u=a(function(n){Object.defineProperty(n,"__esModule",{value:!0});n.getMachineId=void 0;var r=j("fs"),i=nt(),t=x();async function c(){try{return(await r.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(e){t.diag.debug(`error reading machine id: ${e}`)}try{return(await i.execAsync("kenv -q smbios.system.uuid")).stdout.trim()}catch(e){t.diag.debug(`error reading machine id: ${e}`)}return}n.getMachineId=c});export default u();
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{nt}from"./index-qe3xpt41.js";import{x}from"./index-7wben1jx.js";import{a}from"./index-a0vx2zyx.js";var o=a(function(c){Object.defineProperty(c,"__esModule",{value:!0});c.getMachineId=void 0;var i=nt(),n=x();async function u(){try{let t=(await i.execAsync('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
3
|
+
`).find((d)=>d.includes("IOPlatformUUID"));if(!t)return;let r=t.split('" = "');if(r.length===2)return r[1].slice(0,-1)}catch(e){n.diag.debug(`error reading machine id: ${e}`)}return}c.getMachineId=u});export default o();
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{x}from"./index-7wben1jx.js";import{a,j}from"./index-a0vx2zyx.js";var o=a(function(i){Object.defineProperty(i,"__esModule",{value:!0});i.getMachineId=void 0;var t=j("fs"),r=x();async function d(){let c=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let s of c)try{return(await t.promises.readFile(s,{encoding:"utf8"})).trim()}catch(e){r.diag.debug(`error reading machine id: ${e}`)}return}i.getMachineId=d});export default o();
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{x}from"./index-7wben1jx.js";import{a}from"./index-a0vx2zyx.js";var i=a(function(t){Object.defineProperty(t,"__esModule",{value:!0});t.getMachineId=void 0;var e=x();async function n(){e.diag.debug("could not read machine-id: unsupported platform");return}t.getMachineId=n});export default i();
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{nt}from"./index-qe3xpt41.js";import{x}from"./index-7wben1jx.js";import{a,j}from"./index-a0vx2zyx.js";var u=a(function(s){Object.defineProperty(s,"__esModule",{value:!0});s.getMachineId=void 0;var e=j("process"),n=nt(),c=x();async function d(){let t="%windir%\\System32\\REG.exe";if(e.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in e.env)t="%windir%\\sysnative\\cmd.exe /c "+t;try{let i=(await n.execAsync(`${t} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split("REG_SZ");if(i.length===2)return i[1].trim()}catch(r){c.diag.debug(`error reading machine id: ${r}`)}return}s.getMachineId=d});export default u();
|