blade-code 0.6.2 → 0.6.3
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-dyaxme6k.js → chunk-08h3wmqh.js} +1 -1
- package/dist/{chunk-6gycrrb9.js → chunk-0b3f8r1e.js} +1 -1
- package/dist/{chunk-7010r8zb.js → chunk-5v2jzxpw.js} +1 -1
- package/dist/{chunk-6vwc66b4.js → chunk-8fq1wzv3.js} +1 -1
- package/dist/{chunk-9pg8nttx.js → chunk-8zh508xk.js} +356 -352
- package/dist/{chunk-ythh98wk.js → chunk-99gfk9b2.js} +1 -1
- package/dist/{chunk-mpafvahb.js → chunk-9m9nqfc4.js} +1 -1
- package/dist/{chunk-9zbmef4r.js → chunk-ambewjsk.js} +1 -1
- package/dist/chunk-drrgdzrf.js +1 -0
- package/dist/chunk-g54k7rea.js +28 -0
- package/dist/{chunk-7v6xxyd3.js → chunk-g7bw2nkz.js} +10 -10
- package/dist/{chunk-2ahbedmp.js → chunk-gp3rn8f8.js} +1 -1
- package/dist/{chunk-1cm8qqth.js → chunk-kds0h72f.js} +1 -1
- package/dist/{chunk-9ce1fadm.js → chunk-m1tnx0je.js} +1 -1
- package/dist/{chunk-fkttsa1n.js → chunk-nrh2jage.js} +1 -1
- package/dist/{chunk-k4sbqc14.js → chunk-qjhxk0yp.js} +1 -1
- package/dist/{chunk-3j3v297d.js → chunk-r9vneqaw.js} +1 -1
- package/dist/{chunk-cydswa20.js → chunk-t344cq6m.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-1t0cavth.js +0 -28
- package/dist/chunk-4e20kfa4.js +0 -1
package/dist/chunk-1t0cavth.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import{tb as I,yb as L}from"./chunk-39h8jdm3.js";import{execSync as T}from"child_process";import{existsSync as Q,readFileSync as F,realpathSync as O}from"fs";import{basename as b,isAbsolute as J,resolve as j}from"path";import*as V from"os";import*as H from"path";function R(){let B=L(),q=G(B);return{workingDirectory:B,projectRoot:q,platform:`${V.platform()} (${V.arch()})`,nodeVersion:process.version,currentDate:new Date().toISOString().split("T")[0],homeDirectory:V.homedir()}}function X(B,q){try{return T(q,{cwd:B,encoding:"utf8",stdio:["pipe","pipe","ignore"]}).trim()}catch{return null}}function S(B={}){let{includeGitSnapshot:q=!0,includeDirectoryListing:M=!0}=B,z=R(),Z=Q(H.join(z.projectRoot,".git")),_=b(process.env.SHELL||"unknown"),$=["package.json","tsconfig.json","BLADE.md",".env.example"].filter((K)=>Q(H.join(z.projectRoot,K))).map((K)=>`- \`${H.join(z.projectRoot,K)}\``),N=`# Environment
|
|
2
|
-
You have been invoked in the following environment:
|
|
3
|
-
- Primary working directory: ${z.workingDirectory}
|
|
4
|
-
- Is a git repository: ${Z?"true":"false"}
|
|
5
|
-
- Platform: ${z.platform}
|
|
6
|
-
- Shell: ${_}
|
|
7
|
-
- Node.js: ${z.nodeVersion}`;if(q&&Z){let K=X(z.projectRoot,"git rev-parse --abbrev-ref HEAD"),Y=X(z.projectRoot,"git status --short"),U=X(z.projectRoot,"git log --oneline -n 3");if(K)N+=`
|
|
8
|
-
- Current branch: ${K}`;if(Y)N+=`
|
|
9
|
-
|
|
10
|
-
Working tree status:
|
|
11
|
-
${Y}`;if(U)N+=`
|
|
12
|
-
|
|
13
|
-
Recent commits:
|
|
14
|
-
${U}`}if(N+=`
|
|
15
|
-
|
|
16
|
-
When using file tools (read, write, edit), provide absolute paths based on: \`${z.workingDirectory}/\``,$.length>0)N+=`
|
|
17
|
-
|
|
18
|
-
Key project files at root for quick reference:
|
|
19
|
-
${$.join(`
|
|
20
|
-
`)}`;let A=H.join(z.projectRoot,"package.json");if(Q(A))try{let K=F(A,"utf-8"),U=JSON.parse(K).scripts;if(U){let E=["test","lint","type-check","build","dev","start"].filter((W)=>U[W]).map((W)=>` ${W}: ${U[W].slice(0,60)}`);if(E.length>0)N+=`
|
|
21
|
-
|
|
22
|
-
Available npm scripts:
|
|
23
|
-
${E.join(`
|
|
24
|
-
`)}`}}catch{}if(M){let K=X(z.projectRoot,"ls -1 | head -30");if(K)N+=`
|
|
25
|
-
|
|
26
|
-
Project root directory listing:
|
|
27
|
-
${K}`}return N}function G(B){let q=B,M=null;while(q!==H.dirname(q)){if(Q(H.join(q,".git")))return q;if(Q(H.join(q,".blade")))return q;if(Q(H.join(q,".claude")))return q;if(!M&&Q(H.join(q,"package.json")))M=q;q=H.dirname(q)}return M??B}function g(B,q){let M=J(B)?B:j(q||process.cwd(),B),z;try{z=O(M)}catch{z=M}I(z)}
|
|
28
|
-
export{S as Z,G as _,g as $};
|
package/dist/chunk-4e20kfa4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as a,u as b}from"./chunk-6vwc66b4.js";import"./chunk-fkttsa1n.js";import"./chunk-s53zeref.js";export{a as globalOptions,b as cliConfig};
|