@vibecontrols/agent 2026.814.1 → 2026.824.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-5b0avmy6.js +2 -0
- package/dist/{agent-ready-tracker-gx1yqwjk.js → agent-ready-tracker-ez6r9djg.js} +1 -1
- package/dist/app-hkt10ta3.js +2 -0
- package/dist/autostart.cmd-fdcdqrr2.js +2 -0
- package/dist/bootstrap-workspace-t5fyq07m.js +2 -0
- package/dist/bootstrap.service-nxhkrsf1.js +2 -0
- package/dist/{bridge-client-zye1vz1y.js → bridge-client-bgkr7bcn.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/daemon-profile-j2wt35x8.js +2 -0
- package/dist/esm-n9r8p5n2.js +2 -0
- package/dist/{finalize-retry-handle-registry-kzfqhvwv.js → finalize-retry-handle-registry-fvm4gm8s.js} +1 -1
- package/dist/{finalize-retry-worker-74wxbdsh.js → finalize-retry-worker-wb8wj1yw.js} +1 -1
- package/dist/gateway-client-6dqagbg4.js +2 -0
- package/dist/{getMachineId-bsd-65jabrgp.js → getMachineId-bsd-fgatzdd7.js} +1 -1
- package/dist/{getMachineId-darwin-yykv9khr.js → getMachineId-darwin-gt8j2jw2.js} +1 -1
- package/dist/{getMachineId-linux-w09acg2n.js → getMachineId-linux-bcz4rr1x.js} +1 -1
- package/dist/{getMachineId-unsupported-dwr7bb60.js → getMachineId-unsupported-079qwwb4.js} +1 -1
- package/dist/{getMachineId-win-0wkw4jek.js → getMachineId-win-2hk4e8bg.js} +1 -1
- package/dist/highlights-0gfz787m.js +2 -0
- package/dist/highlights-86sbx76f.js +2 -0
- package/dist/highlights-n55f5jnk.js +2 -0
- package/dist/highlights-tbmszdr7.js +2 -0
- package/dist/highlights-wm2cs773.js +2 -0
- package/dist/{index-gx53t38f.js → index-06es0fmw.js} +1 -1
- package/dist/{index-wndzw5pk.js → index-0d4wfjbt.js} +2 -2
- package/dist/{index-2gwc485c.js → index-29fmptfn.js} +2 -2
- package/dist/index-2q2jadag.js +11 -0
- package/dist/{index-16czz4df.js → index-2sn36kaj.js} +1 -1
- package/dist/{index-m2kkd6t6.js → index-3p4n7nwg.js} +2 -2
- package/dist/{index-qzhvhyvq.js → index-3tf12pw3.js} +1 -1
- package/dist/index-4gsn3d9r.js +26 -0
- package/dist/{index-e1bw1bwr.js → index-54mmh1eb.js} +1 -1
- package/dist/{index-5wsfsj88.js → index-7wejfjj9.js} +4 -4
- package/dist/{index-g9fthh7a.js → index-8q19ryt2.js} +2 -2
- package/dist/{index-c975k3pk.js → index-8xh8m2z7.js} +3 -3
- package/dist/index-a8n6s2ae.js +2 -0
- package/dist/{index-2bjqvapr.js → index-b16y8wyz.js} +1 -1
- package/dist/{index-5dysvvjv.js → index-bv1z3fxw.js} +1 -1
- package/dist/{index-nj7bvgws.js → index-df19rrbe.js} +1 -1
- package/dist/{index-jrxbbb7p.js → index-dx9hjdp4.js} +2 -2
- package/dist/{index-0ckffygp.js → index-ea42kfvk.js} +1 -1
- package/dist/{index-52cp759f.js → index-ekr40gvh.js} +1 -1
- package/dist/{index-13xxbf03.js → index-evnbrmdf.js} +2 -2
- package/dist/{index-7vwefvxd.js → index-ggxs7nwz.js} +1 -1
- package/dist/{index-q9dp55wv.js → index-gz5t0vvc.js} +1 -1
- package/dist/{index-4wgjx8bf.js → index-hey6w5m0.js} +1 -1
- package/dist/{index-1ptfacy9.js → index-hp8jrj6j.js} +1 -1
- package/dist/{index-zabjc8f2.js → index-hrfkzecw.js} +1 -1
- package/dist/{index-b5dhmybd.js → index-hwpmdq5z.js} +1 -1
- package/dist/{index-r49hb09r.js → index-hz5cy6vz.js} +2 -2
- package/dist/{index-zaw78sxw.js → index-jbxh0ffn.js} +3 -3
- package/dist/{index-0s81cfpe.js → index-js2r0men.js} +2 -2
- package/dist/{index-jb3v3b39.js → index-k3jkzj3k.js} +1 -1
- package/dist/{index-e2dqz3tw.js → index-kteawn2b.js} +2 -2
- package/dist/{index-ntj6ymk8.js → index-mbhq916m.js} +1 -1
- package/dist/index-pnk33bjw.js +116 -0
- package/dist/{index-4gt22c81.js → index-qdbxvcwr.js} +2 -2
- package/dist/{index-c4p1qcnn.js → index-qqq9qyy6.js} +3 -3
- package/dist/{index-rc79x8fw.js → index-rmh8pff5.js} +1 -1
- package/dist/{index-wd2ak0q4.js → index-sspydg85.js} +1 -1
- package/dist/{index-5s2zc91f.js → index-tk81f249.js} +1 -1
- package/dist/{index-8k78bp4w.js → index-vjdg5qb2.js} +1 -1
- package/dist/{index-c0fgge10.js → index-vkrf8kzp.js} +2 -2
- package/dist/{index-9g3vxhby.js → index-vnxqna70.js} +2 -2
- package/dist/index-w2j4ttsx.js +130 -0
- package/dist/{index-pc05r6fd.js → index-w7gctzhm.js} +2 -2
- package/dist/{index-8nqp3a4d.js → index-wj5hx7gq.js} +1 -1
- package/dist/{index-53qthjhb.js → index-x4eaagvr.js} +2 -2
- package/dist/{index-gb5bnx7a.js → index-xjr60th0.js} +1 -1
- package/dist/{index-zb7nfmts.js → index-xtbppqnv.js} +2 -2
- package/dist/{index-jqfsvf8f.js → index-zr9rmjyp.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/injections-2g0zh0bq.js +2 -0
- package/dist/interactive-08vyaapn.js +2 -0
- package/dist/key.cmd-642xcxb4.js +2 -0
- package/dist/log-shipper-9xfnjwr6.js +2 -0
- package/dist/{path-utils-cg1gsy4m.js → path-utils-g449hqvm.js} +1 -1
- package/dist/plugin-system-gpzcch00.js +2 -0
- package/dist/prereqs-runner-re9f51fp.js +2 -0
- package/dist/profile-mount-txvgkaz8.js +2 -0
- package/dist/prune-stale-shims-vs6a07tb.js +2 -0
- package/dist/register-core-e0ha52yw.js +2 -0
- package/dist/secondary-profile-attach-m9x9e7py.js +2 -0
- package/dist/subprocess-zcgpccp1.js +2 -0
- package/dist/telemetry-k6em3vy2.js +2 -0
- package/dist/tree-sitter-javascript-qh90w7td.js +2 -0
- package/dist/tree-sitter-markdown-favzteb6.js +2 -0
- package/dist/tree-sitter-markdown_inline-x2726t9j.js +2 -0
- package/dist/tree-sitter-typescript-m7ep8z1h.js +2 -0
- package/dist/tree-sitter-zig-3vsxg5wh.js +2 -0
- package/dist/tunnel-bootstrap-y8dczezc.js +2 -0
- package/package.json +1 -1
- package/dist/agent-config-hzzh97dn.js +0 -2
- package/dist/app-k3dex7x4.js +0 -2
- package/dist/bootstrap-workspace-dg1e3fp6.js +0 -2
- package/dist/bootstrap.service-nbhhd4pa.js +0 -2
- package/dist/daemon-profile-ryakpcbx.js +0 -2
- package/dist/esm-cg5tnbkd.js +0 -2
- package/dist/gateway-client-8y9yd0ch.js +0 -2
- package/dist/highlights-5wfvq2xq.js +0 -2
- package/dist/highlights-fdyzf5xj.js +0 -2
- package/dist/highlights-g5bek66n.js +0 -2
- package/dist/highlights-scv26t06.js +0 -2
- package/dist/highlights-tx5ed845.js +0 -2
- package/dist/index-2jxqpj7r.js +0 -26
- package/dist/index-nwh7j7ap.js +0 -2
- package/dist/index-sv4rzv3f.js +0 -11
- package/dist/index-tcwmw7ed.js +0 -231
- package/dist/injections-agpjxatz.js +0 -2
- package/dist/interactive-ewe5szk5.js +0 -2
- package/dist/key.cmd-xefsd8p4.js +0 -2
- package/dist/log-shipper-4h1k4kp6.js +0 -2
- package/dist/plugin-system-ksatnqp4.js +0 -2
- package/dist/prereqs-runner-6yf1e5e3.js +0 -2
- package/dist/profile-mount-13qvjqbg.js +0 -2
- package/dist/prune-stale-shims-t6kdd2an.js +0 -2
- package/dist/register-core-9k4zxnsg.js +0 -2
- package/dist/secondary-profile-attach-42x68g0c.js +0 -2
- package/dist/subprocess-6m8bja6s.js +0 -2
- package/dist/telemetry-mq37zapd.js +0 -2
- package/dist/tree-sitter-javascript-emqv64wx.js +0 -2
- package/dist/tree-sitter-markdown-v98rp3y1.js +0 -2
- package/dist/tree-sitter-markdown_inline-5gq03gn2.js +0 -2
- package/dist/tree-sitter-typescript-gr7ymg9w.js +0 -2
- package/dist/tree-sitter-zig-59q80fch.js +0 -2
- package/dist/tunnel-bootstrap-50fm2wt8.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{b as
|
|
2
|
+
import{gb as Y,hb as k}from"./index-ekr40gvh.js";import{ae as W}from"./index-qqq9qyy6.js";import{qe as V}from"./index-gz5t0vvc.js";import{createHash as g,randomUUID as x}from"crypto";import{existsSync as $,mkdirSync as L,readFileSync as O,writeFileSync as j}from"fs";import{join as K}from"path";import*as X from"os";var A="https://analytics.burdenoff.com/api/track",H="cd7d5ccc3667",w=200,f=10,B=30000,R=5000;function C(q){if(process.env.DO_NOT_TRACK==="1")return!1;let z=process.env.VIBECONTROLS_TELEMETRY?.toLowerCase();if(z==="on"||z==="true"||z==="1")return!0;if(z==="off"||z==="false"||z==="0")return!1;return q}class M{enabled=!1;persisted=!1;buffer=[];flushTimer=null;cachedAnonymousId=null;overflowWarned=!1;postFailureWarned=!1;initialized=!1;init(q){if(q?.persisted!==void 0)this.persisted=q.persisted;if(this.enabled=C(this.persisted),!this.initialized)this.initialized=!0,this.startFlushTimer()}setEnabled(q){let z=this.enabled;if(this.persisted=q,this.enabled=C(this.persisted),z&&!this.enabled)this.buffer=[],this.enqueueRaw("telemetry.disabled",{reason:"user_opt_out"}),this.flush()}emit(q,z={}){if(!this.enabled)return;let G={},J=!1;for(let[Z,N]of Object.entries(z)){if(Y(Z)){J=!0;continue}G[Z]=N}let Q=k(q,G);if(!Q.ok||!Q.sanitized){W().logger.warn("telemetry",`dropping event '${q}': ${Q.reason??"invalid"}`);return}this.enqueue(q,Q.sanitized)}enqueueRaw(q,z){this.enqueue(q,z)}enqueue(q,z){let G={site_id:H,event_name:q,properties:z,anonymous_id:this.getAnonymousId(),timestamp:new Date().toISOString()};if(this.buffer.length>=w){if(this.buffer.shift(),!this.overflowWarned)this.overflowWarned=!0,W().logger.warn("telemetry",`buffer overflow (cap=${w}) \u2014 dropping oldest events`)}if(this.buffer.push(G),this.buffer.length>=f)this.flush()}async flush(){if(this.buffer.length===0)return;let q=this.buffer.splice(0,this.buffer.length),z=new AbortController,G=setTimeout(()=>z.abort(),R);try{await fetch(A,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({events:q}),signal:z.signal})}catch(J){if(!this.postFailureWarned)this.postFailureWarned=!0,W().logger.warn("telemetry","shipper POST failed; dropping batch",{error:String(J)})}finally{clearTimeout(G)}}stop(){if(this.flushTimer)clearInterval(this.flushTimer),this.flushTimer=null;this.initialized=!1}_resetForTest(){this.stop(),this.enabled=!1,this.persisted=!1,this.buffer=[],this.cachedAnonymousId=null,this.overflowWarned=!1,this.postFailureWarned=!1}_bufferLength(){return this.buffer.length}_isEnabled(){return this.enabled}startFlushTimer(){if(this.flushTimer)return;if(this.flushTimer=setInterval(()=>{this.flush()},B),typeof this.flushTimer.unref==="function")this.flushTimer.unref()}getAnonymousId(){if(this.cachedAnonymousId)return this.cachedAnonymousId;let q=`${X.hostname()}${X.platform()}`,z=this.readOrCreateInstallId(),G=g("sha256").update(q+z).digest("hex");return this.cachedAnonymousId=G.slice(0,16),this.cachedAnonymousId}readOrCreateInstallId(){let q;try{q=V()}catch{q=K(process.cwd(),".boff","vibecontrols")}if(!$(q))try{L(q,{recursive:!0,mode:448})}catch{}let z=K(q,".install-id");if($(z))try{let J=O(z,"utf-8").trim();if(J)return J}catch{}let G=x();try{j(z,G,{mode:384})}catch{}return G}}var b=new M;
|
|
3
|
+
export{b as fb};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var j=Object.create;var{getPrototypeOf:k,defineProperty:f,getOwnPropertyNames:l}=Object;var m=Object.prototype.hasOwnProperty;function n(a){return this[a]}var o,p,s=(a,b,c)=>{var g=a!=null&&typeof a==="object";if(g){var h=b?o??=new WeakMap:p??=new WeakMap,i=h.get(a);if(i)return i}c=a!=null?j(k(a)):{};let d=b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c;for(let e of l(a))if(!m.call(d,e))f(d,e,{get:n.bind(a,e),enumerable:!0});if(g)h.set(a,d);return d};var t=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var q=(a)=>a;function r(a,b){this[a]=q.bind(null,b)}var u=(a,b)=>{for(var c in b)f(a,c,{get:b[c],enumerable:!0,configurable:!0,set:r.bind(b,c)})};var v=import.meta.require;
|
|
3
|
-
export{s as
|
|
3
|
+
export{s as te,t as ue,u as ve,v as we};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{k as
|
|
2
|
+
import{$a as R}from"./index-ea42kfvk.js";import{fb as j}from"./index-x4eaagvr.js";import{Od as D,Sd as P,Zd as g,ae as M}from"./index-qqq9qyy6.js";import{ke as y,ne as x,oe as A}from"./index-gz5t0vvc.js";import{spawn as _}from"child_process";import{createHash as f}from"crypto";import{existsSync as u,promises as V,createWriteStream as h}from"fs";import{homedir as m,tmpdir as p}from"os";import*as q from"path";import{Readable as d}from"stream";import{pipeline as l}from"stream/promises";function n(){let G=process.arch==="x64"?"x64":"arm64";return`${process.platform==="win32"?"win32":process.platform==="darwin"?"darwin":"linux"}-${G}`}function c(){return q.join(m(),".boff","vibecontrols","tools")}function L(G,J){let X=J??G;if(process.platform==="win32"&&!X.toLowerCase().endsWith(".exe"))return`${X}.exe`;return X}function o(G,J,X){return q.join(X??c(),G,L(G,J))}async function E(G,J){if(!J.versionMatcher)return!0;return new Promise((X)=>{let Y=_(G,J.versionArgs??["--version"],{stdio:["ignore","pipe","pipe"]}),K="";Y.stdout.on("data",(H)=>K+=H.toString()),Y.stderr.on("data",(H)=>K+=H.toString()),Y.on("close",()=>{try{X(new RegExp(J.versionMatcher).test(K))}catch{X(!1)}}),Y.on("error",()=>X(!1))})}async function i(G){let J=G.platform??n(),X=L(G.name,G.binaryName),Y=o(G.name,G.binaryName,G.cacheRoot);if(u(Y)&&await E(Y,G))return Y;try{let H=typeof Bun<"u"&&typeof Bun.which==="function"?Bun.which(G.binaryName??G.name,{PATH:process.env.PATH}):null;if(H&&await E(H,G))return G.log?.info?.(`[install] using PATH binary ${G.name} (${H})`),H}catch{}let K=G.downloads[J];if(!K)throw Error(`[install] no download manifest entry for ${G.name} on ${J}`);return G.log?.info?.(`[install] downloading ${G.name} for ${J}`),await V.mkdir(q.dirname(Y),{recursive:!0}),await a(K,Y,X,G.name),G.log?.info?.(`[install] installed ${G.name} \u2192 ${Y}`),Y}async function a(G,J,X,Y){let K=q.dirname(J),H=q.join(p(),`vibe-install-${Y}-${process.pid}`);await V.mkdir(H,{recursive:!0});let $=q.join(H,"artifact");try{let Z=await fetch(G.url,{redirect:"follow"});if(!Z.ok)throw Error(`download failed (${Z.status}) for ${G.url}`);if(!Z.body)throw Error(`empty response body for ${G.url}`);if(await l(d.fromWeb(Z.body),h($)),G.sha256){let I=f("sha256").update(await V.readFile($)).digest("hex");if(I!==G.sha256)throw Error(`sha256 mismatch for ${Y}: expected ${G.sha256}, got ${I}`)}let z=G.archive??(G.url.endsWith(".tar.gz")||G.url.endsWith(".tgz")?"tar.gz":G.url.endsWith(".zip")?"zip":"raw");if(z==="raw")await V.copyFile($,J);else{if(z==="tar.gz")await w("tar",["-xzf",$,"-C",H]);else await s($,H);let I=G.binaryWithinArchive??X;await V.copyFile(q.join(H,I),J)}if(process.platform!=="win32")await V.chmod(J,493)}finally{await V.rm(H,{recursive:!0,force:!0})}}async function s(G,J){try{await w("unzip",["-q","-o",G,"-d",J]);return}catch(X){if(process.platform!=="win32")throw X;await w("tar",["-xf",G,"-C",J])}}async function w(G,J){return new Promise((X,Y)=>{let K=_(G,J,{stdio:["ignore","ignore","pipe"]}),H="";K.stderr.on("data",($)=>H+=$.toString()),K.on("close",($)=>$===0?X():Y(Error(`${G} exit ${$}: ${H}`))),K.on("error",Y)})}var W="https://github.com/cloudflare/cloudflared/releases/latest/download",r={"linux-x64":{url:`${W}/cloudflared-linux-amd64`,archive:"raw"},"linux-arm64":{url:`${W}/cloudflared-linux-arm64`,archive:"raw"},"darwin-x64":{url:`${W}/cloudflared-darwin-amd64.tgz`,archive:"tar.gz",binaryWithinArchive:"cloudflared"},"darwin-arm64":{url:`${W}/cloudflared-darwin-arm64.tgz`,archive:"tar.gz",binaryWithinArchive:"cloudflared"},"win32-x64":{url:`${W}/cloudflared-windows-amd64.exe`,archive:"raw"},"win32-arm64":{url:`${W}/cloudflared-windows-arm64.exe`,archive:"raw"}},t=/(https:\/\/(?!api\.)[a-zA-Z0-9-]+\.trycloudflare\.com)/;async function N(G,J){let X=J?.log??{},Y;try{Y=await i({name:"cloudflared",downloads:r,versionMatcher:"cloudflared version",log:X})}catch($){return X.warn?.(`quick-tunnel: could not obtain cloudflared: ${String($)}`),null}let K;try{K=_(Y,["tunnel","--url",`http://127.0.0.1:${G}`,"--no-autoupdate"],{stdio:["ignore","pipe","pipe"]})}catch($){return X.warn?.(`quick-tunnel: failed to spawn cloudflared: ${String($)}`),null}let H=await new Promise(($)=>{let Z=!1,z=(Q)=>{if(Z)return;Z=!0,$(Q)},I=setTimeout(()=>{X.warn?.("quick-tunnel: cloudflared did not advertise a URL in time"),z(null)},J?.timeoutMs??30000),O=(Q)=>{let B=Q.toString("utf8").match(t);if(B)clearTimeout(I),z(B[0])};K.stdout?.on("data",O),K.stderr?.on("data",O),K.on("error",(Q)=>{clearTimeout(I),X.warn?.(`quick-tunnel: cloudflared failed to spawn: ${String(Q)}`),z(null)}),K.on("exit",(Q)=>{clearTimeout(I),X.warn?.(`quick-tunnel: cloudflared exited (code=${Q})`),z(null)})});if(!H)return null;return{url:H,child:K}}import{existsSync as b,mkdirSync as e,readFileSync as GG,writeFileSync as JG,unlinkSync as XG}from"fs";import{dirname as YG,join as S}from"path";import{readdirSync as $G}from"fs";function T(G){return S(G??x(),"tunnel.state.json")}function v(G,J){let X=T(J);try{e(YG(X),{recursive:!0}),JG(X,JSON.stringify(G,null,2),"utf8")}catch(Y){M().logger.warn("tunnel-state","Failed to persist tunnel state",{error:String(Y)})}}function k(G){let J=T(G);if(!b(J))return null;try{let X=GG(J,"utf8"),Y=JSON.parse(X);if(typeof Y.pid!=="number")return null;return Y}catch(X){return M().logger.warn("tunnel-state","Failed to read tunnel state",{error:String(X)}),null}}function F(G){let J=T(G);if(!b(J))return;try{XG(J)}catch{}}function C(G){return R().isProcessAlive(G)}function xG(G){let J=[];if(G?.allProfiles){let Y;try{Y=A()}catch{return J}let K;try{K=$G(Y)}catch{return J}for(let H of K){let $=S(Y,H),Z=k($);if(Z)J.push({...Z,alive:C(Z.pid),profileDir:$})}return J}let X=k();if(X)J.push({...X,alive:C(X.pid),profileDir:x()});return J}function HG(G){return G.replace(/[^A-Za-z0-9_]/g,"_")}function U(){return(g()??M()).tunnel}async function AG(G,J){let X=U();MG(G),KG();let Y=process.env.AGENT_TUNNEL_URL;if(Y){let $=P(Y);if(!$)return M().logger.warn("tunnel-bootstrap","Ignoring invalid AGENT_TUNNEL_URL"),null;X.url=$,X.externalUrl=!0,M().logger.info("tunnel-bootstrap",`Using AGENT_TUNNEL_URL=${$}`);try{j.emit("tunnel.url_assigned",{provider:"external"})}catch{}return $}let K=J.port,H=await N(K,{log:{info:($)=>M().logger.info("tunnel-bootstrap",$),warn:($)=>M().logger.warn("tunnel-bootstrap",$)}});if(!H)return M().logger.warn("tunnel-bootstrap","No bootstrap tunnel \u2014 the agent will register once the tunnel provider starts post-config"),null;if(X.child=H.child,X.url=H.url,X.url){M().logger.info("tunnel-bootstrap",`Bootstrap tunnel ready: ${X.url}`);try{let z=new URL(X.url).hostname.split(".");if(z.length>=2)D("."+z.slice(-2).join("."))}catch{}try{j.emit("tunnel.url_assigned",{provider:"bootstrap"})}catch{}let $=HG(y());if(process.env[`AGENT_TUNNEL_URL_${$}`]=X.url,X.child?.pid!==void 0)process.env[`AGENT_TUNNEL_PID_${$}`]=String(X.child.pid),v({pid:X.child.pid,url:X.url,startedAt:new Date().toISOString(),provider:"bootstrap",port:K,cmd:`cloudflared tunnel --url http://127.0.0.1:${K}`})}return X.url}function bG(){let G=U();if(G.externalUrl)return!1;if(!G.child||G.child.killed)return!1;let J=G.child.pid;if(J===void 0)return!1;try{process.kill(J,0)}catch{return!1}return G.child=null,F(),M().logger.info("tunnel-bootstrap",`Handed over bootstrap tunnel (PID ${J}) to plugin \u2014 process kept alive`),!0}function SG(){let G=U();if(G.externalUrl){F();return}let J=G.child;if(G.child=null,F(),!J||J.killed)return;try{J.kill("SIGTERM"),M().logger.info("tunnel-bootstrap","Bootstrap tunnel stopped")}catch{}}function vG(){return U().url}function KG(){let G=k();if(!G)return;if(!C(G.pid)){F();return}try{process.kill(G.pid,"SIGTERM"),M().logger.info("tunnel-bootstrap","Reaped orphan tunnel from prior run",{pid:G.pid,provider:G.provider})}catch{}let J=Date.now();while(Date.now()-J<2000&&C(G.pid))Bun.sleepSync(50);if(C(G.pid))try{process.kill(G.pid,"SIGKILL")}catch{}F()}function MG(G){let J={name:"bootstrap",async getActiveTunnelUrl(){return U().url}};G.registerProvider("tunnel",J,"bootstrap")}
|
|
3
|
+
export{k as pa,F as qa,C as ra,xG as sa,HG as ta,AG as ua,bG as va,SG as wa,vG as xa,KG as ya};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{P as
|
|
2
|
+
import{nc as O,oc as L,pc as Y}from"./index-wj5hx7gq.js";import{Ac as X,Bc as I,Cc as K,sc as D,uc as R,vc as U,wc as W,yc as C,zc as E}from"./index-8xh8m2z7.js";import{Wc as J,td as T,vd as V,xd as w}from"./index-2q2jadag.js";import{ke as h}from"./index-gz5t0vvc.js";async function P(){if(process.env.AGENT_API_KEY)return process.env.AGENT_API_KEY;let F="default";try{F=h()}catch{}let H=await J(`${F}:static-api-key`);if(H)return H;return T()["static-api-key"]??null}var j=["read","mutate","plugin:install","plugin:remove","update","admin"];function _(F){if(F.length<=12)return"[redacted]";return`${F.slice(0,8)}...${F.slice(-4)}`}function x(){let F=new Uint8Array(32);return crypto.getRandomValues(F),`vcak_${Buffer.from(F).toString("base64url")}`}function b(){return crypto.randomUUID()}function A(F){if(!F)return;let H=/^(\d+)([smhdw]?)$/.exec(F.trim());if(!H)throw Error(`Invalid --expires-in: ${F} (use 30s, 12h, 7d, 4w; bare digits = days)`);let q=Number(H[1]),N=H[2]||"d",z=N==="s"?q*1000:N==="m"?q*60000:N==="h"?q*3600000:N==="w"?q*7*86400000:q*86400000;return new Date(Date.now()+z).toISOString()}function S(F){if(!F)return["read"];let H=F.split(",").map((q)=>q.trim()).filter(Boolean);for(let q of H)if(!j.includes(q))throw Error(`Unknown scope: ${q}. Allowed: ${j.join(", ")}`);return H}function f(F){let H=F.command("key").description("Show or manage VibeControls agent API keys");H.command("show",{isDefault:!0}).description("Show the default agent API key").option("--show-secret","Print the full API key",!1).option("--json","Emit JSON").option("--plain","Force plain text output").action(async function(q){let N={...F.opts(),...q};try{await L({mode:O(N),fetchData:async()=>{return{apiKey:await P()??null}},plain:(z)=>{if(E("Agent API Key"),I(),!z.apiKey){R("No API key found in AGENT_API_KEY or local agent config.");return}if(X("API Key",D.bold(q.showSecret?z.apiKey:_(z.apiKey))),!q.showSecret)X("Full key",D.dim("hidden; rerun with --show-secret"));I()},json:(z)=>({apiKey:z.apiKey?q.showSecret?z.apiKey:"[redacted]":null})})}catch(z){R(`Failed to get API key: ${U(z)}`)}}),H.command("list").description("List all scoped API keys (default + minted)").option("--json","Emit JSON").option("--plain","Force plain text output").option("--show-secret","Include full key values in JSON output",!1).action(async function(q){let N={...F.opts(),...q};try{await L({mode:O(N),fetchData:()=>w(),plain:(z)=>{let B=[],Q=z["static-api-key"];if(Q)B.push({ID:"default",Name:"default",Scopes:"admin",Expires:"never",Key:_(Q)});for(let G of z.apiKeys??[])B.push({ID:G.id??"(legacy)",Name:G.name,Scopes:G.scopes.join(","),Expires:G.expiresAt??"never",Key:_(G.key)});if(B.length===0){C("No keys configured.");return}E("Agent API Keys"),K(B)},json:(z)=>{let B=[],Q=z["static-api-key"];if(Q)B.push({id:"default",name:"default",scopes:["admin"],expiresAt:null,key:q.showSecret?Q:"[redacted]"});for(let G of z.apiKeys??[])B.push({id:G.id??"(legacy)",name:G.name,scopes:G.scopes,expiresAt:G.expiresAt??null,key:q.showSecret?G.key:"[redacted]"});return B}})}catch(z){R(U(z))}}),H.command("add").description("Mint a new scoped API key").requiredOption("--name <name>","Display name (logs only)").option("--scope <scope>",`Comma-separated scope list (default: read). Allowed: ${j.join(",")}`,"read").option("--expires-in <duration>","TTL (e.g. 7d, 12h, 30m). Omit for no expiry.").option("--not-before <iso>","ISO timestamp before which the key is rejected.").option("--json","Emit JSON").action(function(q){let N={...F.opts(),...q};try{let z=S(q.scope),B=A(q.expiresIn),Q=T(),G=b(),Z=x(),$={id:G,name:q.name,key:Z,scopes:z,expiresAt:B,notBefore:q.notBefore,createdAt:new Date().toISOString()},M=[...Q.apiKeys??[],$];if(V({apiKeys:M}),Y(N,{ok:!0,id:G,name:q.name,scopes:z,expiresAt:B??null,key:Z}))return;if(W(`Minted key ${G}`),X("Name",q.name),X("Scopes",z.join(",")),B)X("Expires",B);if(q.notBefore)X("Not before",q.notBefore);I(),X("Key (save now)",D.bold(Z))}catch(z){if(N.json){Y(N,{ok:!1,error:U(z)});return}R(U(z))}}),H.command("revoke <id>").description("Revoke a scoped key by ID").option("--json","Emit JSON").action(function(q,N){let z={...F.opts(),...N};try{let B=T(),Q=(B.apiKeys??[]).length,G=(B.apiKeys??[]).filter((Z)=>Z.id!==q);if(G.length===Q){if(z.json){Y(z,{ok:!1,error:`No key with id ${q}`});return}R(`No key with id ${q}`);return}if(V({apiKeys:G}),Y(z,{ok:!0,id:q}))return;W(`Revoked key ${q}`)}catch(B){if(z.json){Y(z,{ok:!1,error:U(B)});return}R(U(B))}}),H.command("rotate <id>").description("Rotate the secret of an existing scoped key (preserves scopes/expiry)").option("--json","Emit JSON").action(function(q,N){let z={...F.opts(),...N};try{let B=T();if(!(B.apiKeys??[]).find(($)=>$.id===q)){if(z.json){Y(z,{ok:!1,error:`No key with id ${q}`});return}R(`No key with id ${q}`);return}let G=x(),Z=(B.apiKeys??[]).map(($)=>$.id===q?{...$,key:G}:$);if(V({apiKeys:Z}),Y(z,{ok:!0,id:q,key:G}))return;W(`Rotated key ${q}`),X("New key (save now)",D.bold(G))}catch(B){if(z.json){Y(z,{ok:!1,error:U(B)});return}R(U(B))}})}
|
|
3
|
+
export{P as _b,f as $b};
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import{j as
|
|
4
|
-
`,{mode:384})}function
|
|
5
|
-
`,{mode:384}),
|
|
3
|
+
import{j as e,k as QQ,l as XQ,m as ZQ,n as HQ}from"./index-4gsn3d9r.js";import"./index-hrfkzecw.js";import{t as $Q}from"./index-2sn36kaj.js";import"./index-dx9hjdp4.js";import"./index-6jzsthh9.js";import"./index-qdbxvcwr.js";import"./index-xtbppqnv.js";import"./index-29fmptfn.js";import"./index-w7gctzhm.js";import"./index-hey6w5m0.js";import{Ha as t}from"./index-7wejfjj9.js";import"./index-ea42kfvk.js";import"./index-rmh8pff5.js";import{fb as T}from"./index-x4eaagvr.js";import"./index-ekr40gvh.js";import"./index-3p4n7nwg.js";import{Mb as o,Nb as r}from"./index-vnxqna70.js";import"./index-bv1z3fxw.js";import"./index-jbxh0ffn.js";import"./index-kteawn2b.js";import{Hd as s,Id as a,Wc as i,Xc as m,td as E,xd as y}from"./index-2q2jadag.js";import{ae as q}from"./index-qqq9qyy6.js";import{ke as k,ne as S,pe as n,qe as U}from"./index-gz5t0vvc.js";import"./index-mbhq916m.js";import{we as B}from"./index-xjr60th0.js";async function P(Q,H={}){let X=H.readConfig??(async()=>{let Z=await y();return{clientId:Z.clientId,clientSecret:Z.clientSecret,workspaceId:Z.workspaceId,organizationId:Z.organizationId,globalGatewayUrl:Z.globalGatewayUrl,workspaceGatewayUrl:Z.workspaceGatewayUrl}});try{let Z=H.pinned?.clientId&&H.pinned?.clientSecret?{clientId:H.pinned.clientId,clientSecret:H.pinned.clientSecret}:null,Y=await X();if(!Y.clientId||!Y.clientSecret)return Q;return{clientId:Z?.clientId??Y.clientId,clientSecret:Z?.clientSecret??Y.clientSecret,workspaceId:Y.workspaceId??Q.workspaceId,organizationId:Y.organizationId??Q.organizationId,globalGatewayUrl:Y.globalGatewayUrl??Q.globalGatewayUrl,workspaceGatewayUrl:Y.workspaceGatewayUrl??Q.workspaceGatewayUrl}}catch(Z){let Y=Z instanceof Error?Z.message:String(Z);if(H.onReadError)H.onReadError(Y);else q().logger.warn("finalize-retry","Could not re-read stored credentials; retrying with the boot-time pair",{error:Y});return Q}}import{isAbsolute as EQ}from"path";import{existsSync as V,mkdirSync as d,readFileSync as IQ,readdirSync as f,renameSync as TQ,unlinkSync as yQ,writeFileSync as g}from"fs";import{dirname as c,join as F}from"path";var WQ=".secrets-migrated-v1",JQ=["static-api-key","clientId","clientSecret"];function VQ(Q,H){return`${Q}:${H}`}function p(){return F(U(),WQ)}function FQ(){let Q=p();d(c(Q),{recursive:!0}),g(Q,`${new Date().toISOString()}
|
|
4
|
+
`,{mode:384})}function KQ(Q){if(!V(Q))return null;try{let H=IQ(Q,"utf8"),X=JSON.parse(H);if(X&&typeof X==="object"&&!Array.isArray(X))return X}catch{}return null}function MQ(Q,H){d(c(Q),{recursive:!0});let X=`${Q}.${process.pid}.tmp`;g(X,`${JSON.stringify(H,null,2)}
|
|
5
|
+
`,{mode:384}),TQ(X,Q)}function UQ(){let Q=U(),H=F(Q,"agents");if(!V(H))return[];let X=[],Z;try{Z=f(H)}catch{return[]}for(let Y of Z){let z=F(H,Y,"config.json");if(!V(z))continue;X.push({path:z,scope:Y})}return X}function RQ(){let Q=U(),H=F(Q,"profiles");if(!V(H))return[];let X=[],Z;try{Z=f(H)}catch{return[]}for(let Y of Z){if(!Y.endsWith(".json"))continue;X.push({path:F(H,Y),scope:Y.slice(0,-5)})}return X}async function jQ(Q,H){let X=KQ(Q);if(!X)return 0;let Z=0;for(let Y of JQ){let z=X[Y];if(typeof z!=="string"||z.length===0)continue;let _=VQ(H,Y);try{await m(_,z),delete X[Y],Z++,q().logger.info("secrets-migrator","migrated field",{path:Q,scope:H,key:Y})}catch(G){q().logger.warn("secrets-migrator","failed to migrate field",{path:Q,scope:H,key:Y,error:String(G)})}}if(Z>0)MQ(Q,X);return Z}async function l(){let Q={alreadyMigrated:!1,fieldsMoved:0,filesUpdated:0};if(V(p()))return Q.alreadyMigrated=!0,Q;let H=[...UQ(),...RQ()];for(let X of H){let Z;try{Z=await jQ(X.path,X.scope)}catch(Y){q().logger.warn("secrets-migrator","skipping target after error",{path:X.path,error:String(Y)});continue}if(Z>0)Q.fieldsMoved+=Z,Q.filesUpdated++}try{FQ()}catch(X){q().logger.warn("secrets-migrator","failed to drop migration marker",{error:String(X)})}if(Q.fieldsMoved>0)q().logger.info("secrets-migrator","migration complete",{fieldsMoved:Q.fieldsMoved,filesUpdated:Q.filesUpdated});return Q}{let Q=JSON.parse.bind(JSON);JSON.parse=(Z,Y)=>{try{return Q(Z,Y)}catch(z){if(typeof Z==="string"&&Z.endsWith("}}"))try{return Q(Z.slice(0,-1),Y)}catch{}throw z}};let X=globalThis.Request?.prototype;if(X&&typeof X.json==="function"){let Z=X.json;X.json=async function(){let z=await this.text();if(!z)return;try{return Q(z)}catch{if(z.endsWith("}}"))try{return Q(z.slice(0,-1))}catch{}let _=new Request("http://shim/",{method:"POST",body:z});return Z.call(_)}}}}$Q();s();if(!process.env.VIBECONTROLS_DATA_DIR)process.env.VIBECONTROLS_DATA_DIR=S();if(typeof Bun>"u")console.error("ERROR: VibeControls Agent requires Bun runtime."),console.error("Install Bun: https://bun.sh"),process.exit(1);function wQ(Q){if(Q==="default")return 3005;let H=2166136261;for(let X=0;X<Q.length;X++)H=Math.imul(H^Q.charCodeAt(X),16777619);return 3100+Math.abs(H)%300}var w=(()=>{try{return k()}catch{return"default"}})(),x=Number.parseInt(process.env.PORT||String(wQ(w)),10),R=Number.isInteger(x)&&x>0?x:3005,j=process.env.HOST||"0.0.0.0",CQ=(()=>{let Q=process.env.DB_PATH;if(!Q)return;if(EQ(Q))return Q;console.warn(`[boot] Ignoring relative DB_PATH=${Q} (cwd=${process.cwd()}). Use an absolute path or unset to fall back to ${n()}.`);return})(),D=process.env.AGENT_API_KEY||void 0,AQ=process.env.LOG_LEVEL||"info",xQ=process.env.CORS_ORIGIN||void 0;async function DQ(){try{await l()}catch(L){q().logger.warn("server","secrets migration encountered an error",{error:String(L)})}let Q=E()["static-api-key"],H=(()=>{try{return k()}catch{return"default"}})(),X=Q??await i(`${H}:static-api-key`),Z=!D&&!X;await o();let Y={clientId:process.env.VIBE_CLIENT_ID,clientSecret:process.env.VIBE_CLIENT_SECRET};await a();let z=process.env.VIBE_CLIENT_ID,_=process.env.VIBE_CLIENT_SECRET,G=process.env.VIBE_GLOBAL_GATEWAY_URL,u=process.env.VIBE_WORKSPACE_GATEWAY_URL,h=process.env.VIBE_WORKSPACE_ID,YQ=!!z&&!!_&&!!G&&!!u&&!!h;q().logger.info("server","Starting VibeControls Agent...",{runtime:"bun",bunVersion:Bun.version,port:R,host:j,env:"production"});try{let L=E(),$=L["telemetry.enabled"]===!0||L["telemetry.enabled"]==="true";T.init({persisted:$});let N=Date.now();T.emit("agent.started",{version:process.env.npm_package_version??"unknown",profile:w,platform:process.platform}),process.__vibe_started_at=N}catch{}let K=Math.max(1,Number.parseInt(process.env.VIBECONTROLS_AGENT_BOOT_RETRIES??"10",10)||10),LQ=(L)=>{let $=String(L?.message??L).toLowerCase();return $.includes("syntax")||$.includes("cannot find module")||$.includes("module not found")||$.includes("typeerror")||$.includes("config schema")||$.includes("invalid config")||$.includes("corrupt")||$.includes("eaccess")||$.includes("eperm")},O=null,I=0;while(!O){I++;try{O=await HQ({port:R,host:j,dbPath:CQ,apiKey:D,logLevel:AQ,corsOrigin:xQ}),await O.start();try{let L=await import("fs"),$=`${S()}/runtime.json`;L.writeFileSync($,JSON.stringify({pid:process.pid,port:R,host:j,profile:w,startedAt:new Date().toISOString(),version:t()},null,2));let N=()=>{try{if(L.existsSync($))L.unlinkSync($)}catch{}};process.once("SIGTERM",N),process.once("SIGINT",N),process.once("exit",N)}catch(L){q().logger.warn("server","Could not write runtime.json",{error:String(L)})}}catch(L){let $=LQ(L);if(q().logger.error("server","Failed to start agent server",{attempt:I,maxBootAttempts:K,fatal:$,error:String(L)}),$||I>=K)console.error(`\u274C Failed to start VibeControls Agent (attempt ${I}/${K}, fatal=${$}):`,L),process.exit(1);let N=Math.min(30000,1000*2**Math.min(5,I-1)),J=Math.floor(Math.random()*500),M=N+J;console.warn(`\u26A0\uFE0F Agent boot attempt ${I}/${K} failed (transient), retrying in ${Math.round(M/1000)}s...`),await new Promise((A)=>setTimeout(A,M)),O=null}}let b=O.getServiceRegistry().getProvider("tunnel"),W=null;if(b?.getActiveTunnelUrl)for(let L=0;L<30;L++){if(W=await b.getActiveTunnelUrl(),W)break;await new Promise(($)=>setTimeout($,1000))}if(!W){let{sanitizeEnvSuffix:L}=await import("./tunnel-bootstrap-y8dczezc.js"),{getVibecontrolsProfile:$}=await import("./path-utils-g449hqvm.js"),N=L($());W=process.env[`AGENT_TUNNEL_URL_${N}`]??process.env.AGENT_TUNNEL_URL??null}let NQ=E(),qQ=D||r()||NQ["static-api-key"]||"",C=q().getBootState(),zQ=C==="ready"?null:e();if(C==="ready")QQ();kQ({port:R,host:j,tunnelUrl:W,apiKey:qQ,revealApiKey:Z||process.env.AGENT_PRINT_API_KEY==="1",state:C,pairingToken:zQ});try{XQ({profile:w})}catch(L){q().logger.warn("server","Could not start autoupdate",{error:String(L)})}let{existsSync:OQ,unlinkSync:_Q}=await import("fs"),{tmpdir:BQ}=await import("os"),{join:GQ}=await import("path"),v=async(L)=>{q().logger.info("server",`Received ${L}, shutting down...`),ZQ();try{let N=process.__vibe_started_at??Date.now();T.emit("agent.stopped",{uptime_s:Math.round((Date.now()-N)/1000),reason:L}),await T.flush(),T.stop()}catch{}let $=O.getLifecycle();if(L==="SIGTERM"){let N=GQ(BQ(),`.boff-vibecontrols-kill-${process.pid}`);if(OQ(N)){try{_Q(N)}catch{}if(q().logger.info("server","Kill-intent flag detected \u2014 full shutdown"),$)await $.kill();else await O.stop({reason:"shutdown"}),process.exit(0)}else if(q().logger.info("server","No kill flag \u2014 treating as hot-reload (soft stop)"),$)await $.softStop();else await O.stop({reason:"reload"})}else if($)await $.kill();else await O.stop({reason:"shutdown"}),process.exit(0)};if(process.on("SIGINT",()=>v("SIGINT")),process.on("SIGTERM",()=>v("SIGTERM")),YQ){let L=(()=>{let $=process.env.VIBECONTROLS_FINALIZE_TIMEOUT_MS,N=$?Number.parseInt($,10):NaN;return Number.isFinite(N)&&N>0?N:300000})();q().logger.info("server",`VIBE_* env vars detected \u2014 running inline finalize (timeout ${Math.round(L/1000)}s)`),(async()=>{let $={clientId:z,clientSecret:_,workspaceId:h,globalGatewayUrl:G,workspaceGatewayUrl:u};try{let N=await Promise.race([O.finalize($),new Promise((J)=>setTimeout(()=>J({ok:!1,error:`inline finalize timed out after ${Math.round(L/1000)}s`}),L))]);if(!N.ok){q().logger.warn("server","Inline finalize failed \u2014 agent stays awaiting-config. Background retry worker will keep trying.",{error:N.error});let{startFinalizeRetryWorker:J}=await import("./finalize-retry-worker-wb8wj1yw.js"),{setFinalizeRetryHandle:M}=await import("./finalize-retry-handle-registry-fvm4gm8s.js"),A=J({trigger:async()=>O.finalize(await P($,{pinned:Y}))});M(A)}}catch(N){q().logger.error("server","Inline finalize threw",{error:String(N)})}})()}else q().logger.info("server","Agent is awaiting gateway credentials. Add it on the VibeControls platform using the tunnel URL and API key shown above.")}function kQ(Q){let X=(G)=>("\u2551 "+G).padEnd(65)+"\u2551",Z="\u2560"+"\u2550".repeat(64)+"\u2563",Y="\u2554"+"\u2550".repeat(64)+"\u2557",z="\u255A"+"\u2550".repeat(64)+"\u255D",_=Q.revealApiKey?Q.apiKey:Q.apiKey?`${Q.apiKey.substring(0,8)}****${Q.apiKey.substring(Q.apiKey.length-4)}`:"(none)";if(console.log(""),console.log(Y),console.log(X("VibeControls Agent")),console.log(Z),console.log(X(`State: ${Q.state}`)),console.log(X(`Agent URL: http://${Q.host}:${Q.port}`)),console.log(X(`API Key: ${_}`)),console.log(X(`Tunnel URL: ${Q.tunnelUrl??"(none)"}`)),Q.pairingToken)console.log(X(`Pairing: ${Q.pairingToken}`)),console.log(X(" (send as x-pairing-token on bootstrap)"));if(console.log(Z),console.log(X(`Health: http://localhost:${Q.port}/health`)),console.log(X(`Status: http://localhost:${Q.port}/api/agent/status`)),console.log(z),!Q.revealApiKey)console.log(" (Set AGENT_PRINT_API_KEY=1 to print the API key in full.)");console.log("")}DQ();
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$b as b,_b as a}from"./index-zr9rmjyp.js";import"./index-8q19ryt2.js";import"./index-wj5hx7gq.js";import"./index-8xh8m2z7.js";import"./index-js2r0men.js";import"./index-kteawn2b.js";import"./index-2q2jadag.js";import"./index-qqq9qyy6.js";import"./index-gz5t0vvc.js";import"./index-mbhq916m.js";import"./index-xjr60th0.js";export{a as resolveDefaultApiKey,b as register};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{je as a,ke as b,le as c,me as d,ne as e,oe as f,pe as g,qe as h,re as i}from"./index-gz5t0vvc.js";import"./index-xjr60th0.js";export{c as validateAgentName,d as isPathInside,f as getVibecontrolsProfilesDir,b as getVibecontrolsProfile,h as getVibecontrolsProductDir,e as getVibecontrolsDir,g as getProfileDataDir,i as getPluginRegistry,a as assertValidProfile};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ka as a,Ma as b,Ua as c,Va as d,Wa as e,Xa as f,Ya as g,Za as h,_a as i}from"./index-7wejfjj9.js";import"./index-ea42kfvk.js";import"./index-qqq9qyy6.js";import"./index-gz5t0vvc.js";import"./index-mbhq916m.js";import"./index-xjr60th0.js";export{f as validatePluginPackageName,c as getRegistryAllowlist,e as getPluginPackageRoot,g as getInstallScope,d as assertRegistryAllowed,b as TRUSTED_PACKAGES,i as PluginManager,h as DEFAULT_PLUGINS,a as CORE_PLUGIN_NAMES};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{rb as a,sb as b,tb as c,ub as d,vb as e,wb as f}from"./index-3p4n7nwg.js";import"./index-vnxqna70.js";import"./index-bv1z3fxw.js";import"./index-jbxh0ffn.js";import"./index-2q2jadag.js";import"./index-qqq9qyy6.js";import"./index-gz5t0vvc.js";import"./index-mbhq916m.js";import"./index-xjr60th0.js";export{b as unmountProfileRoutes,a as mountProfileRoutes,c as dispatchProfileRequest,f as __setMountForTests,e as __resetProfileMountsForTests,d as __listMountedProfilesForTests};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{J as a}from"./index-pnk33bjw.js";import"./index-w2j4ttsx.js";import"./index-evnbrmdf.js";import"./index-hwpmdq5z.js";import"./index-54mmh1eb.js";import"./index-qdbxvcwr.js";import"./index-xtbppqnv.js";import"./index-29fmptfn.js";import"./index-hey6w5m0.js";import"./index-7wejfjj9.js";import"./index-ea42kfvk.js";import"./index-rmh8pff5.js";import"./index-x4eaagvr.js";import"./index-ekr40gvh.js";import"./index-vnxqna70.js";import"./index-bv1z3fxw.js";import"./index-jbxh0ffn.js";import"./index-8q19ryt2.js";import"./index-wj5hx7gq.js";import"./index-8xh8m2z7.js";import"./index-js2r0men.js";import"./index-kteawn2b.js";import"./index-2q2jadag.js";import"./index-qqq9qyy6.js";import"./index-gz5t0vvc.js";import"./index-mbhq916m.js";import"./index-xjr60th0.js";export{a as registerCoreCommands};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{x as a}from"./index-dx9hjdp4.js";import"./index-w7gctzhm.js";import"./index-hey6w5m0.js";import"./index-7wejfjj9.js";import"./index-ea42kfvk.js";import"./index-3p4n7nwg.js";import"./index-vnxqna70.js";import"./index-bv1z3fxw.js";import"./index-jbxh0ffn.js";import"./index-2q2jadag.js";import"./index-qqq9qyy6.js";import"./index-gz5t0vvc.js";import"./index-mbhq916m.js";import"./index-xjr60th0.js";export{a as attachSecondaryProfile};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{o as a,p as b,q as c,r as d,s as e}from"./index-hrfkzecw.js";import"./index-ea42kfvk.js";import"./index-qqq9qyy6.js";import"./index-gz5t0vvc.js";import"./index-mbhq916m.js";import"./index-xjr60th0.js";export{a as spawnTracked,c as listTrackedByOwner,b as listTracked,d as killTracked,e as killAllTracked};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{ta as a,ua as b,va as c,wa as d,xa as e,ya as f}from"./index-xtbppqnv.js";import"./index-ea42kfvk.js";import"./index-x4eaagvr.js";import"./index-ekr40gvh.js";import"./index-qqq9qyy6.js";import"./index-gz5t0vvc.js";import"./index-mbhq916m.js";import"./index-xjr60th0.js";export{c as tryHandoverBootstrapTunnel,d as stopBootstrapTunnel,b as startBootstrapTunnel,a as sanitizeEnvSuffix,f as reapOrphanTunnelsForProfile,e as getBootstrapTunnelUrl};
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$c as f,Wc as a,Xc as b,Yc as c,Zc as d,_c as e,ad as g,bd as h,cd as i,dd as j,ed as k,fd as l,gd as m,hd as n,id as o,jd as p,kd as q,ld as r,md as s,nd as t,od as u,pd as v,qd as w,rd as x,sd as y,td as z,ud as A,vd as B}from"./index-sv4rzv3f.js";import"./index-c4p1qcnn.js";import"./index-q9dp55wv.js";import"./index-ntj6ymk8.js";import"./index-gb5bnx7a.js";export{m as writeProfile,x as writeAgentConfigAwaitSecrets,w as writeAgentConfig,j as writeActiveProfileName,l as readProfile,y as readAgentConfigWithSecrets,u as readAgentConfig,i as readActiveProfileName,z as readActiveProfile,k as listProfileNames,f as getProfilesDir,h as getProfilePath,q as getProductionGatewayUrls,v as getOrCreateAgentInstanceId,t as getAgentConfigSeed,r as getAgentConfigPath,s as getAgentConfigDefaults,g as getActiveProfilePointerPath,p as ensureProfilesInitialized,n as deleteProfile,o as buildProfileSeed,e as assertValidProfileName,B as applyAgentSecretsToEnv,A as applyAgentConfigToEnv,c as NAMED_ENV_PRESETS,d as DEFAULT_PROFILE_NAME,a as CURRENT_CONFIG_SCHEMA_VERSION,b as BUILTIN_PROFILE_SEEDS};
|
package/dist/app-k3dex7x4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{n as a}from"./index-2jxqpj7r.js";import"./index-zabjc8f2.js";import"./index-jrxbbb7p.js";import"./index-6jzsthh9.js";import"./index-4gt22c81.js";import"./index-zb7nfmts.js";import"./index-2gwc485c.js";import"./index-pc05r6fd.js";import"./index-4wgjx8bf.js";import"./index-5wsfsj88.js";import"./index-0ckffygp.js";import"./index-rc79x8fw.js";import"./index-53qthjhb.js";import"./index-52cp759f.js";import"./index-m2kkd6t6.js";import"./index-9g3vxhby.js";import"./index-5dysvvjv.js";import"./index-zaw78sxw.js";import"./index-e2dqz3tw.js";import"./index-sv4rzv3f.js";import"./index-c4p1qcnn.js";import"./index-q9dp55wv.js";import"./index-ntj6ymk8.js";import"./index-gb5bnx7a.js";export{a as createApp};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Nd as a,Od as b,Pd as c,Qd as d,Rd as e}from"./index-c4p1qcnn.js";import"./index-q9dp55wv.js";import"./index-ntj6ymk8.js";import"./index-gb5bnx7a.js";export{a as profileRegistry,d as getOrCreateProfile,c as getDaemonProfile,b as ensureDaemonProfile,e as __resetDaemonProfileForTests};
|
package/dist/esm-cg5tnbkd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$b as d,Yb as a,Zb as b,_b as c,ac as e,bc as f,cc as g,dc as h,ec as i,fc as j,gc as k}from"./index-g9fthh7a.js";import"./index-gb5bnx7a.js";export{a as program,d as createOption,b as createCommand,c as createArgument,j as Option,g as InvalidOptionArgumentError,f as InvalidArgumentError,k as Help,e as CommanderError,h as Command,i as Argument};
|