blade-code 0.10.25 → 0.10.26
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-01n8k1jj.js +1 -0
- package/dist/{chunk-9tp00s2z.js → chunk-0q4jbbm5.js} +1 -1
- package/dist/{chunk-65pe5x3a.js → chunk-1g5h4zv6.js} +1 -1
- package/dist/{chunk-763aam58.js → chunk-1hzj6s0f.js} +2 -2
- package/dist/{chunk-a0ga35qv.js → chunk-1mh2285d.js} +35 -35
- package/dist/{chunk-qvthjzt5.js → chunk-20kg90zt.js} +1 -1
- package/dist/{chunk-18n15nn8.js → chunk-35d5gdgw.js} +1 -1
- package/dist/{chunk-0t0dsepx.js → chunk-46yg6dfr.js} +2 -2
- package/dist/{chunk-ve4wkta1.js → chunk-4aem0m2n.js} +1 -1
- package/dist/{chunk-565weg3f.js → chunk-58tpe6nx.js} +2 -2
- package/dist/{chunk-saneyjmy.js → chunk-58yqrbey.js} +1 -1
- package/dist/{chunk-5xph8r1k.js → chunk-5mtryjjc.js} +1 -1
- package/dist/{chunk-wbvs2tv5.js → chunk-5yr2c8gz.js} +2 -2
- package/dist/{chunk-58wxa5cj.js → chunk-6axhk4r7.js} +1 -1
- package/dist/{chunk-m3ya6rtr.js → chunk-6k74z0eb.js} +2 -2
- package/dist/{chunk-kjwc997q.js → chunk-6srz3q5d.js} +1 -1
- package/dist/{chunk-mmw7jbxg.js → chunk-7jv8thn1.js} +2 -2
- package/dist/{chunk-5dr18jzd.js → chunk-89gswfb2.js} +1 -1
- package/dist/{chunk-awwe1rqb.js → chunk-8htfb5zn.js} +2 -2
- package/dist/{chunk-r561wfcz.js → chunk-9ka0bdry.js} +1 -1
- package/dist/{chunk-5k02rk0f.js → chunk-a4cyec1y.js} +2 -2
- package/dist/{chunk-rhcts0qe.js → chunk-aa28p37g.js} +1 -1
- package/dist/{chunk-9gtc0kd2.js → chunk-acf5v2fv.js} +2 -2
- package/dist/{chunk-4vwyhhjt.js → chunk-b5fegjt7.js} +1 -1
- package/dist/chunk-bbjtt28z.js +1 -0
- package/dist/{chunk-jx1q1f88.js → chunk-ct2x59pr.js} +1 -1
- package/dist/chunk-d9jz1edf.js +100 -0
- package/dist/{chunk-pserj9y9.js → chunk-dxgzyy09.js} +1 -1
- package/dist/{chunk-xjq1htyt.js → chunk-ebffhjma.js} +2 -2
- package/dist/{chunk-15edqtyv.js → chunk-edyxa2jw.js} +1 -1
- package/dist/{chunk-qy36y9xc.js → chunk-eqa706gn.js} +2 -2
- package/dist/chunk-f88wkyfm.js +1 -0
- package/dist/{chunk-rc9rfrws.js → chunk-fbc5zfq7.js} +1 -1
- package/dist/chunk-fkwqgqsw.js +1 -0
- package/dist/{chunk-m27w377p.js → chunk-fnt1z0y8.js} +1 -1
- package/dist/chunk-gahvpbbs.js +1 -0
- package/dist/{chunk-fg1t369y.js → chunk-gn37wxwg.js} +1 -1
- package/dist/chunk-h2npwqz9.js +10 -0
- package/dist/{chunk-7tea6e9y.js → chunk-jt55ct49.js} +2 -2
- package/dist/{chunk-xjqcc0nt.js → chunk-k99rbzqw.js} +1 -1
- package/dist/{chunk-rb7aayp5.js → chunk-kskg7crs.js} +22 -38
- package/dist/{chunk-dbb20rxh.js → chunk-kvd5nexw.js} +1 -1
- package/dist/chunk-kwe0a3xw.js +1 -0
- package/dist/{chunk-38pr3rjg.js → chunk-m7x4ya6m.js} +1 -1
- package/dist/chunk-mqsxghqb.js +1 -0
- package/dist/chunk-nar8qz5t.js +1 -0
- package/dist/{chunk-5sw8j9ae.js → chunk-nt6xmzk0.js} +1 -1
- package/dist/{chunk-nwg0bpex.js → chunk-p6nhdbdw.js} +2 -2
- package/dist/{chunk-5tb28pxt.js → chunk-pja0tttq.js} +1 -1
- package/dist/{chunk-h61xsxmy.js → chunk-px3t1rxa.js} +2 -2
- package/dist/chunk-pyfag66h.js +1 -0
- package/dist/chunk-q1papzdc.js +1 -0
- package/dist/{chunk-6vhc5gdf.js → chunk-r46ws0q8.js} +2 -2
- package/dist/{chunk-eeet612j.js → chunk-rgafk34p.js} +1 -1
- package/dist/chunk-rth3jfdq.js +2 -0
- package/dist/{chunk-10yas08a.js → chunk-rtktz9v1.js} +232 -231
- package/dist/{chunk-vjrn667c.js → chunk-s1khjfye.js} +2 -2
- package/dist/{chunk-86g3xxx7.js → chunk-sprjrvn6.js} +1 -1
- package/dist/chunk-ss449b56.js +1 -0
- package/dist/{chunk-b22x3h7k.js → chunk-tg1mf1tf.js} +1 -1
- package/dist/{chunk-qdngw7h1.js → chunk-tnrrnzzv.js} +1 -1
- package/dist/chunk-vc2c8wkx.js +2 -0
- package/dist/{chunk-qnsj1pp3.js → chunk-vp50e95n.js} +3 -3
- package/dist/chunk-wg8p9g0z.js +1 -0
- package/dist/chunk-xkb48pvz.js +1 -0
- package/dist/{chunk-k89zf5h1.js → chunk-xp44jtsd.js} +1 -1
- package/dist/{chunk-whxmvh0n.js → chunk-y2en7qvs.js} +2 -2
- package/dist/{chunk-wyq21fev.js → chunk-zs9mwd17.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-0qayfsc9.js +0 -2
- package/dist/chunk-37bxrzq5.js +0 -1
- package/dist/chunk-3mgfa96q.js +0 -1
- package/dist/chunk-584eewzf.js +0 -1
- package/dist/chunk-6pb6zs96.js +0 -2
- package/dist/chunk-7cgbnp1m.js +0 -1
- package/dist/chunk-9e244cxx.js +0 -1
- package/dist/chunk-axrwmx6e.js +0 -1
- package/dist/chunk-bt6xqnbx.js +0 -10
- package/dist/chunk-d6qktf17.js +0 -1
- package/dist/chunk-eh8gdgfb.js +0 -1
- package/dist/chunk-f769xhg0.js +0 -1
- package/dist/chunk-fgy8pbk6.js +0 -1
- package/dist/chunk-kmf716yy.js +0 -1
- package/dist/chunk-mbxffehd.js +0 -1
- package/dist/chunk-vbsk6mjn.js +0 -100
- package/dist/chunk-w0z7cn13.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{M as
|
|
1
|
+
import{_f as F}from"./chunk-sprjrvn6.js";import{execSync as G}from"node:child_process";import*as C from"node:os";import*as v from"node:path";function H(k){return v.resolve(k).replace(/[/\\]/g,"-").replace(/:/g,"_")}function M(k){let q=k.replace(/_/g,":");if(q.startsWith("-"))q="/"+q.slice(1);return q.replace(/-/g,"/")}function z(k){let q=H(k);return v.join(E(),"projects",q)}function J(k){return typeof k==="string"&&k!=="."&&k!==".."&&/^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$/.test(k)}function A(k){if(!J(k))throw Error(`Invalid session ID: ${k}`)}function N(k,q){return A(q),v.join(z(k),`${q}.jsonl`)}function O(k,q){return A(q),v.join(z(k),`${q}.inbox.json`)}function Q(k,q){return A(q),v.join(z(k),`${q}.goal.json`)}function T(k){try{return G("git rev-parse --abbrev-ref HEAD",{cwd:k,encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).trim()||void 0}catch{return}}function E(){return process.env.BLADE_STORAGE_ROOT||v.join(C.homedir(),".blade")}async function U(){let{readdir:k}=await import("node:fs/promises");try{let q=v.join(E(),"projects");return(await k(q,{withFileTypes:!0})).filter((w)=>w.isDirectory()).map((w)=>w.name)}catch{return[]}}
|
|
2
|
+
export{M as Qf,z as Rf,J as Sf,A as Tf,N as Uf,O as Vf,Q as Wf,T as Xf,E as Yf,U as Zf};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{createRequire as a}from"node:module";var c=a(import.meta.url);
|
|
2
|
-
export{c as
|
|
2
|
+
export{c as _f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Vd as a,Wd as b,Xd as c,Yd as d,Zd as e}from"./chunk-kskg7crs.js";import"./chunk-5mtryjjc.js";import"./chunk-nt6xmzk0.js";import"./chunk-35d5gdgw.js";import"./chunk-zs9mwd17.js";import"./chunk-rth3jfdq.js";import"./chunk-58tpe6nx.js";import"./chunk-6axhk4r7.js";import"./chunk-9ka0bdry.js";import"./chunk-vc2c8wkx.js";import"./chunk-kvd5nexw.js";import"./chunk-8htfb5zn.js";import"./chunk-jt55ct49.js";import"./chunk-0q4jbbm5.js";import"./chunk-acf5v2fv.js";import"./chunk-r46ws0q8.js";import"./chunk-tnrrnzzv.js";import"./chunk-s1khjfye.js";import"./chunk-sprjrvn6.js";export{d as snapshotWorkspaceAgentResources,c as resolveWorkspaceAgentResources,e as resetWorkspaceAgentResources,a as refreshWorkspaceCommunicationStyles,b as configureInvocationPluginDirs};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{sb as jt,tb as Xt,ub as bn,vb as Tn,wb as fn}from"./chunk-4dnvydyv.js";import{
|
|
1
|
+
import{sb as jt,tb as Xt,ub as bn,vb as Tn,wb as fn}from"./chunk-4dnvydyv.js";import{le as Ut}from"./chunk-zs9mwd17.js";import{Ae as En,Be as U,Ce as on,De as pn,Ee as cn,Fe as lt,Ge as un,He as Mn,Ie as wn,Ke as S,Ne as yn,Oe as Ht,Pe as Bt,Qe as R,Re as qt,qe as xt,re as tn,se as en,te as zt,ue as B,ve as rn,we as gt,xe as mt,ze as dn}from"./chunk-58tpe6nx.js";import{ff as X,hf as x}from"./chunk-9ka0bdry.js";import{rf as vt}from"./chunk-kvd5nexw.js";import{Jf as nn,Kf as sn}from"./chunk-acf5v2fv.js";import{_f as ss}from"./chunk-sprjrvn6.js";import{EventEmitter as hs}from"events";import Un from"node:path";function An(t){if(t===void 0)return"undefined";if(typeof t==="string")return t;try{let i=JSON.stringify(t);return i===void 0?String(t):i}catch{return String(t)}}function _n(t){let i=t;switch(t.code){case"type":return`类型错误:${t.message}`;case"required":return"缺少必需参数";case"minLength":return`字符串过短:${t.message}`;case"maxLength":return`字符串过长:${t.message}`;case"minimum":case"exclusiveMinimum":return`数值太小:${t.message}`;case"maximum":case"exclusiveMaximum":return`数值太大:${t.message}`;case"minItems":return`数组元素过少:${t.message}`;case"maxItems":return`数组元素过多:${t.message}`;case"format":return`格式错误:${t.message}`;case"enum":return`必须是枚举允许的值之一:${t.message}`;case"const":return`必须是指定的字面量值:${t.message}`;case"additionalProperties":case"unevaluatedProperties":return`包含未知参数:${t.message}`;case"anyOf":case"oneOf":return"不符合任何有效的类型定义";case"~refine":return t.message||"自定义验证失败";default:return t.message||`验证失败:${An(i)}`}}class Jt extends Error{issues;type;constructor(t,i,n="validation_error"){super(t);this.issues=i;this.type=n;this.name="ToolValidationError"}}function Vt(t,i){let n=X(t,i);if(n.success)return n.data;let s=n.error.issues.map((r)=>({field:r.path.length>0?r.path.join("."):"root",message:_n(r),value:r.value})),e=s.length===1?`参数验证失败 [${s[0].field}]: ${s[0].message}`:`参数验证失败 (${s.length} 个错误):
|
|
2
2
|
${s.map((r)=>` - ${r.field}: ${r.message}`).join(`
|
|
3
3
|
`)}`;throw new Jt(e,s)}function st(t){if(!t||typeof t!=="object")return;let i=t;if(i.type==="object"&&i.properties)i.required??=[],i.additionalProperties??=!1;for(let n of Object.values(i))if(Array.isArray(n))for(let s of n)st(s);else st(n)}function et(t){let i=JSON.parse(JSON.stringify(t,(n,s)=>n.startsWith("~")?void 0:s));return st(i),i}class rt{toolName;params;executeFn;descriptionFn;affectedPathsFn;constructor(t,i,n,s,e){this.toolName=t;this.params=i;this.executeFn=n;this.descriptionFn=s;this.affectedPathsFn=e}getDescription(){if(this.descriptionFn)return this.descriptionFn(this.params);return`执行工具: ${this.toolName}`}getAffectedPaths(){if(this.affectedPathsFn)return this.affectedPathsFn(this.params);return[]}async execute(t,i,n){let s={signal:t,updateOutput:i,...n};return this.executeFn(this.params,s)}}function Gt(t){return{name:t.name,displayName:t.displayName,kind:t.kind,isReadOnly:t.isReadOnly??jt(t.kind),isConcurrencySafe:t.isConcurrencySafe??!1,parallelism:t.parallelism??(t.isConcurrencySafe?"shared":"exclusive"),strict:t.strict??!1,description:t.description,version:t.version||"1.0.0",category:t.category,tags:t.tags||[],getFunctionDeclaration(){let i=et(t.schema),n=t.description.short;if(t.description.long)n+=`
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{promises as A}from"node:fs";import q from"node:path";var J=new Map;async function L(B){let b=B;while(!0){try{return await A.lstat(q.join(b,".git")),b}catch(H){if(H.code!=="ENOENT")return}let E=q.dirname(b);if(E===b)return;b=E}}async function M(B){let b=q.join(B,".git"),E=await A.lstat(b);if(E.isDirectory())return B;if(!E.isFile())return;let H=await A.readFile(b,"utf8"),F=/^gitdir:\s*(.+)\s*$/im.exec(H);if(!F)return;let z=await A.realpath(q.isAbsolute(F[1])?F[1]:q.resolve(B,F[1])),I=z;try{let x=(await A.readFile(q.join(z,"commondir"),"utf8")).trim();if(x)I=await A.realpath(q.resolve(z,x))}catch(x){if(x.code!=="ENOENT")throw x}return q.basename(I)===".git"?A.realpath(q.dirname(I)):void 0}async function S(B){if(!q.isAbsolute(B))throw Error("Workspace path must be absolute");let b=await A.realpath(B),E=J.get(b);if(E)return E;let H=b;try{let z=await L(b);if(z){let I=await M(z),x=q.relative(z,b);if(I&&(x===""||!x.startsWith(`..${q.sep}`)&&x!==".."&&!q.isAbsolute(x))){let K=q.resolve(I,x);H=await A.realpath(K).catch(()=>K)}}}catch{}let F={projectPath:b,trustRoot:H};if(J.size>=512){let z=J.keys().next().value;if(z)J.delete(z)}return J.set(b,F),F}
|
|
2
|
-
export{S as
|
|
2
|
+
export{S as Pf};
|