blade-code 0.11.7 → 0.11.9
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/blade.js +2 -2
- package/dist/{chunk-j6tm12ft.js → chunk-0fc2cz08.js} +1 -1
- package/dist/{chunk-f7nx3ewr.js → chunk-11xk8krn.js} +1 -1
- package/dist/{chunk-wqk2nkm4.js → chunk-1n5y4m62.js} +2 -2
- package/dist/{chunk-dtv22yvk.js → chunk-2c8x98q3.js} +1 -1
- package/dist/{chunk-d561qcwy.js → chunk-3brrdhw9.js} +1 -1
- package/dist/{chunk-37exmxas.js → chunk-3rcwpywe.js} +1 -1
- package/dist/{chunk-k17d0ysy.js → chunk-3rmcsb4e.js} +1 -1
- package/dist/{chunk-gt2wpeyx.js → chunk-45w61v5m.js} +1 -1
- package/dist/{chunk-33sgdacd.js → chunk-47rhy4jf.js} +1 -1
- package/dist/{chunk-03ax0738.js → chunk-5pnrgh5w.js} +1 -1
- package/dist/{chunk-exp8ksxn.js → chunk-6ffsdn5e.js} +1 -1
- package/dist/{chunk-9f99qxqc.js → chunk-6hja02q7.js} +1 -1
- package/dist/{chunk-4v28fy5p.js → chunk-7wmxf4n8.js} +1 -1
- package/dist/{chunk-1khsmsem.js → chunk-81ezwggm.js} +1 -1
- package/dist/{chunk-03hbrytg.js → chunk-98mjd5cf.js} +1 -1
- package/dist/{chunk-ghg7sbxt.js → chunk-agg0r7hf.js} +1 -1
- package/dist/{chunk-6s4btp37.js → chunk-egp3ph5r.js} +1 -1
- package/dist/{chunk-d9gdv6hv.js → chunk-egqfnree.js} +1 -1
- package/dist/{chunk-9q7egv5e.js → chunk-ewe3nv2f.js} +1 -1
- package/dist/{chunk-chhf109c.js → chunk-g2wynrn4.js} +1 -1
- package/dist/{chunk-ep0g03gq.js → chunk-gcq0tffx.js} +1 -1
- package/dist/chunk-gjzf8ct6.js +1 -0
- package/dist/{chunk-j4v5f56k.js → chunk-he3bc68s.js} +1 -1
- package/dist/{chunk-29ek6raw.js → chunk-hthmvjrr.js} +1 -1
- package/dist/{chunk-zhnctpb5.js → chunk-htn8n0n9.js} +1 -1
- package/dist/chunk-jbm1k50z.js +1 -0
- package/dist/{chunk-0w3h2qnk.js → chunk-jfhst6aa.js} +1 -1
- package/dist/{chunk-6f5gf32h.js → chunk-jgbkavhw.js} +1 -1
- package/dist/{chunk-atjraymv.js → chunk-k9yda72x.js} +1 -1
- package/dist/{chunk-70n8qq1r.js → chunk-kaabejqf.js} +1 -1
- package/dist/{chunk-4rqen6w9.js → chunk-ne41rzzb.js} +1 -1
- package/dist/{chunk-yeee0ac9.js → chunk-njt778p0.js} +1 -1
- package/dist/{chunk-vrk1p3p2.js → chunk-qhg9hak4.js} +53 -53
- package/dist/{chunk-n90wq61v.js → chunk-w7fq53ee.js} +1 -1
- package/dist/{chunk-253fwyzb.js → chunk-x04qm0v9.js} +1 -1
- package/dist/{chunk-4mamvx8a.js → chunk-xagbx7qc.js} +269 -269
- package/dist/{chunk-ska66dmc.js → chunk-ya1h0x91.js} +1 -1
- package/dist/{chunk-hdbxph08.js → chunk-yhtyed6x.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-byrk9d45.js +0 -1
- package/dist/chunk-drqv15xs.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ch as FO,dh as $b,eh as JO}from"./chunk-kehgewqh.js";import{kh as wb}from"./chunk-kkzznz4w.js";import{th as Z0,uh as $O}from"./chunk-1cy4ab77.js";import{xh as BO}from"./chunk-7ajvrtb3.js";import{Ah as bb,yh as Ab}from"./chunk-
|
|
1
|
+
import{ch as FO,dh as $b,eh as JO}from"./chunk-kehgewqh.js";import{kh as wb}from"./chunk-kkzznz4w.js";import{th as Z0,uh as $O}from"./chunk-1cy4ab77.js";import{xh as BO}from"./chunk-7ajvrtb3.js";import{Ah as bb,yh as Ab}from"./chunk-egqfnree.js";import{Pi as Zb,Qi as G0,Ui as Wb}from"./chunk-gcq0tffx.js";import{Zi as B}from"./chunk-b22ab7yw.js";import{Ej as k,Fj as A,Gj as m,Ij as U,Lj as pO}from"./chunk-saz6mwpq.js";import{Xj as Eb}from"./chunk-3rmcsb4e.js";import{ck as _}from"./chunk-asgmmaec.js";import{xk as O0}from"./chunk-ed2hdrwe.js";import xb from"node:path";import I0 from"node:path";import Db from"node:fs";import WO from"node:os";import E from"node:path";import k0 from"yaml";var GO=`# Goal Completion Verifier
|
|
2
2
|
|
|
3
3
|
You are a fresh, independent, adversarial verifier. The parent Agent has claimed
|
|
4
4
|
that a persisted goal is complete. Your job is to refute that claim unless the
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Xj as I}from"./chunk-
|
|
1
|
+
import{Xj as I}from"./chunk-3rmcsb4e.js";import{Jk as f}from"./chunk-gmpsfkgg.js";import*as j from"fs/promises";import*as S from"path";import X from"semver";import{ProxyAgent as R,fetch as k}from"undici";function x(){return process.env.HTTPS_PROXY||process.env.HTTP_PROXY||process.env.https_proxy||process.env.http_proxy}function L(){let z=x();if(z)try{return new R(z)}catch(q){console.warn(`[proxyFetch] Invalid proxy URL: ${z}`)}return}async function F(z,q,Z){let{timeout:W=30000,signal:J,...Q}=q;if(J?.aborted)throw new DOMException("The operation was aborted.","AbortError");let Y=L(),$=new AbortController,w=!1,y=setTimeout(()=>{w=!0,$.abort()},W),T=()=>$.abort();J?.addEventListener("abort",T);let D;try{let B={method:Q.method,headers:Q.headers,body:Q.body,signal:$.signal,dispatcher:Y};return D=await k(z.toString(),B),await Z(D)}catch(B){if(B instanceof Error&&B.name==="AbortError"){if(w)throw Error(`Request timeout after ${W}ms`);throw B}throw B}finally{if(clearTimeout(y),J?.removeEventListener("abort",T),$.abort(),D?.body&&!D.body.locked)await D.body.cancel().catch(()=>{return});await Y?.destroy?.().catch(()=>{return})}}var O="blade-code",G="https://cdn.jsdelivr.net/npm/blade-code@latest/CHANGELOG.md",H=S.join(process.env.HOME||process.env.USERPROFILE||".",".blade"),N=S.join(H,"version-cache.json"),_=3600000,g=`https://registry.npmjs.org/${O}/latest`,M=null;async function P(){try{if(process.env.BLADE_VERSION)return process.env.BLADE_VERSION;return I()}catch{return"unknown"}}async function b(){try{let z=await j.readFile(N,"utf-8"),q=JSON.parse(z);if(Date.now()-q.checkedAt<_)return q;return{...q,checkedAt:0}}catch{return null}}async function K(z){try{await j.mkdir(H,{recursive:!0,mode:493}),await j.writeFile(N,JSON.stringify(z,null,2))}catch{}}async function E(){try{return await F(g,{timeout:5000,headers:{Accept:"application/json"}},async(z)=>{if(!z.ok)return null;let q=await z.json();if(!q||typeof q!=="object"||!("version"in q))return null;return typeof q.version==="string"&&X.valid(q.version)?q.version:null})}catch{return null}}async function A(z=!1){let q=await P(),Z=G;if(q==="unknown")return{currentVersion:q,latestVersion:null,hasUpdate:!1,shouldPrompt:!1,releaseNotesUrl:Z,error:"Unable to determine current version"};let W=await b(),J=W?.skipUntilVersion,Q=null;if(!z&&W?.latestVersion&&W.checkedAt>0)Q=W.latestVersion;else if(Q=await E(),J=(await b())?.skipUntilVersion??J,Q)await K({latestVersion:Q,checkedAt:Date.now(),skipUntilVersion:J});else if(W?.latestVersion)await K({checkedAt:0,skipUntilVersion:J});if(!Q||!X.valid(Q))return{currentVersion:q,latestVersion:null,hasUpdate:!1,shouldPrompt:!1,releaseNotesUrl:Z,error:"Unable to check for updates"};if(X.lt(Q,q))Q=q,await K({latestVersion:Q,checkedAt:Date.now(),skipUntilVersion:J});let Y=X.gt(Q,q),$=Y;if(Y&&J)$=X.gt(Q,J);return{currentVersion:q,latestVersion:Q,hasUpdate:Y,shouldPrompt:$,releaseNotesUrl:Z}}async function V(z){let q=await b();await K({latestVersion:q?.latestVersion??z,checkedAt:q?.checkedAt||Date.now(),skipUntilVersion:z})}function v(){return`npm install -g ${O}@latest --registry https://registry.npmjs.org`}async function p(){let{spawn:z}=await import("child_process");return new Promise((q)=>{let Z=v(),W=z(Z,{stdio:"inherit",shell:!0});W.on("close",(J)=>{if(J===0)q({success:!0,message:"Upgrade successful! Please restart blade."});else q({success:!1,message:`Upgrade failed (exit code: ${J})`})}),W.on("error",(J)=>{q({success:!1,message:`Upgrade failed: ${J.message}`})})})}async function h(){try{let z=await b();if(!z?.latestVersion||!X.valid(z.latestVersion)||!z.checkedAt){if(!M)M=A(!0).then(()=>{return},()=>{return}).finally(()=>{M=null});return null}let q=await P();if(!X.valid(q)||!X.gt(z.latestVersion,q)||z.skipUntilVersion&&X.valid(z.skipUntilVersion)&&!X.gt(z.latestVersion,z.skipUntilVersion))return null;return{currentVersion:q,latestVersion:z.latestVersion,hasUpdate:!0,shouldPrompt:!0,releaseNotesUrl:G}}catch{return null}}
|
|
2
2
|
export{A as k,V as l,v as m,p as n,h as o};
|
package/package.json
CHANGED
package/dist/chunk-byrk9d45.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as a,l as b,m as c,n as d,o as e}from"./chunk-hdbxph08.js";import"./chunk-k17d0ysy.js";import"./chunk-gmpsfkgg.js";export{b as setSkipUntilVersion,d as performUpgrade,c as getUpgradeCommand,e as checkVersionOnStartup,a as checkVersion};
|
package/dist/chunk-drqv15xs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{xf as a,yf as b}from"./chunk-9q7egv5e.js";import"./chunk-k17d0ysy.js";import"./chunk-gmpsfkgg.js";export{a as globalOptions,b as cliConfig};
|