blade-code 0.10.196 → 0.10.198
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-9dwdhka9.js → chunk-0h301azx.js} +1 -1
- package/dist/{chunk-nj35kwht.js → chunk-0hzq6sr3.js} +1 -1
- package/dist/{chunk-hkz1z544.js → chunk-0qfm5awe.js} +312 -312
- package/dist/{chunk-8yvtknsk.js → chunk-25ma8vb3.js} +1 -1
- package/dist/{chunk-xv8h6611.js → chunk-4bfndh72.js} +1 -1
- package/dist/{chunk-mcpkk1ce.js → chunk-6d9d2cyk.js} +1 -1
- package/dist/{chunk-4k8d018f.js → chunk-7m1bf6zd.js} +1 -1
- package/dist/{chunk-fck48bw1.js → chunk-afq14p8m.js} +1 -1
- package/dist/{chunk-267tf0ts.js → chunk-bh3e2gt1.js} +1 -1
- package/dist/chunk-bp1n4k48.js +1 -0
- package/dist/{chunk-8y61xj8b.js → chunk-dzz3mzg1.js} +1 -1
- package/dist/{chunk-zvyh95x9.js → chunk-evq5ke3s.js} +1 -1
- package/dist/{chunk-9sn36cs0.js → chunk-g88adq1a.js} +1 -1
- package/dist/{chunk-dtnd5zkh.js → chunk-hasgf62t.js} +1 -1
- package/dist/{chunk-827nqwm8.js → chunk-hhey2zgy.js} +1 -1
- package/dist/{chunk-f04jgx3j.js → chunk-jscwac0k.js} +1 -1
- package/dist/chunk-ksf9bywt.js +1 -0
- package/dist/{chunk-7vc0j8m6.js → chunk-m7cv44cg.js} +6 -6
- package/dist/{chunk-nh67db73.js → chunk-mrft8qep.js} +1 -1
- package/dist/{chunk-k40zgmnb.js → chunk-n87apqe7.js} +1 -1
- package/dist/{chunk-af78d1nn.js → chunk-p6g53dbp.js} +1 -1
- package/dist/{chunk-ywfa7fhr.js → chunk-pbw10pjv.js} +2 -2
- package/dist/{chunk-hypy2t78.js → chunk-pfjg8bjg.js} +1 -1
- package/dist/{chunk-ajv12d9b.js → chunk-pq9v80gg.js} +1 -1
- package/dist/{chunk-2nzmdf86.js → chunk-pxmskd21.js} +1 -1
- package/dist/{chunk-tcgb56tp.js → chunk-r2ev8kdg.js} +1 -1
- package/dist/{chunk-c54t12bm.js → chunk-s8cx6pzp.js} +1 -1
- package/dist/{chunk-3036tv7v.js → chunk-spsnc7ey.js} +2 -2
- package/dist/{chunk-zyvxts23.js → chunk-sqrhdczm.js} +1 -1
- package/dist/{chunk-b6qsc6jm.js → chunk-v2bcvfch.js} +1 -1
- package/dist/{chunk-zme6ydm6.js → chunk-vd58pp9k.js} +1 -1
- package/dist/{chunk-w50pdxnm.js → chunk-vnbyb9dq.js} +1 -1
- package/dist/chunk-vw2be560.js +6 -0
- package/dist/{chunk-byat3xec.js → chunk-w2xgdqvw.js} +1 -1
- package/dist/{chunk-bfv4rp3j.js → chunk-wernns90.js} +1 -1
- package/dist/{chunk-kvst0ysv.js → chunk-x5f2d1n2.js} +1 -1
- package/dist/{chunk-bc3nsr8k.js → chunk-yc59atrw.js} +1 -1
- package/dist/{chunk-m4zazwzr.js → chunk-zh4w88j6.js} +1 -1
- package/dist/web/assets/{ChatView-DYA3np_l.js → ChatView-BF6HUrBw.js} +4 -4
- package/dist/web/assets/{CodeBlockHighlighter-B9sgXWAy.js → CodeBlockHighlighter-C4CgCiRf.js} +1 -1
- package/dist/web/assets/{FilePreview-PKalr8bi.js → FilePreview-BS4PgFKb.js} +1 -1
- package/dist/web/assets/{KanbanBoard-GjH7MyZk.js → KanbanBoard-DDXB-yq1.js} +1 -1
- package/dist/web/assets/{MarkdownRenderer-C03DrI8Q.js → MarkdownRenderer-DS7RznBE.js} +3 -3
- package/dist/web/assets/{ScrollArea-CbOr9e7X.js → ScrollArea-BM9NzGZM.js} +1 -1
- package/dist/web/assets/{SessionHistorySurface-BZEOUN2M.js → SessionHistorySurface-DnRySeLE.js} +1 -1
- package/dist/web/assets/{SettingsModal-DAMGwO-E.js → SettingsModal-D5YLUtIo.js} +1 -1
- package/dist/web/assets/{Sidebar-CiCsK7EK.js → Sidebar-BZC6OkDJ.js} +1 -1
- package/dist/web/assets/{TaskSwitcher-BLdgv--U.js → TaskSwitcher-WewOkw5m.js} +1 -1
- package/dist/web/assets/{TerminalPanel-uctuzvle.js → TerminalPanel-C5SGdRNr.js} +1 -1
- package/dist/web/assets/{archive-BHntc9gt.js → archive-DkczUU08.js} +1 -1
- package/dist/web/assets/{arrow-left-DkXe02NZ.js → arrow-left-9pBiQwu7.js} +1 -1
- package/dist/web/assets/{calendar-clock-_-EyQ_16.js → calendar-clock-BFnUlxrU.js} +1 -1
- package/dist/web/assets/{chevron-right-DXuaFbE2.js → chevron-right-yCVkAEcj.js} +1 -1
- package/dist/web/assets/{clock-3-DHOWUt-Y.js → clock-3-CcoWoRQs.js} +1 -1
- package/dist/web/assets/{copy-wCV3sjrM.js → copy-HJF0oQBS.js} +1 -1
- package/dist/web/assets/{download-CEXHgQhj.js → download-DSBCIqk3.js} +1 -1
- package/dist/web/assets/{external-link-D5pUXtvQ.js → external-link-zIgEO0KB.js} +1 -1
- package/dist/web/assets/{folder-Bm-uBrFM.js → folder-BdRo64o3.js} +1 -1
- package/dist/web/assets/{index-E1WG_htm.js → index-BVDkKudh.js} +4 -4
- package/dist/web/assets/{message-square-plus-ChP8ZEgZ.js → message-square-plus-3klTXO0S.js} +1 -1
- package/dist/web/assets/{pause-D8MeccMe.js → pause-B9Q5JWvH.js} +1 -1
- package/dist/web/assets/{pencil-DNEy8lVY.js → pencil-CbYIz1b1.js} +1 -1
- package/dist/web/assets/{play-DhdTbY0j.js → play-CZMTj43e.js} +1 -1
- package/dist/web/assets/{plus-B2PxWoNi.js → plus-Cc7I8fhb.js} +1 -1
- package/dist/web/assets/{session-events-aq2qdB3u.js → session-events-NEjosinC.js} +2 -2
- package/dist/web/assets/{settings-D9Kkb31b.js → settings-DSF3exX2.js} +1 -1
- package/dist/web/assets/{team-ktBP7cND.js → team-qfeJHL9s.js} +1 -1
- package/dist/web/assets/{teamService-CxPZcCrA.js → teamService-Bs9qBKI8.js} +1 -1
- package/dist/web/assets/{terminal-DcSGZkEA.js → terminal-DQLqe-Ed.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/dist/chunk-2wq1zztd.js +0 -1
- package/dist/chunk-akbsgbww.js +0 -6
- package/dist/chunk-xvx0t011.js +0 -1
package/dist/blade.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{Af as W}from"./chunk-
|
|
2
|
+
import{Af as W}from"./chunk-pq9v80gg.js";import{Df as F,Ef as M}from"./chunk-p0wyhp5a.js";import"./chunk-7m1bf6zd.js";import"./chunk-v508x7cg.js";import"./chunk-5yyp6njq.js";import"./chunk-vnbyb9dq.js";import"./chunk-ys8gysg8.js";import"./chunk-pfjg8bjg.js";import"./chunk-qpmvp4q2.js";import"./chunk-tm3789m3.js";import{bj as N,cj as B}from"./chunk-qdbbke8f.js";import"./chunk-wezr6wfq.js";import{Dj as T}from"./chunk-rmfzym94.js";import"./chunk-j89qk7bp.js";import"./chunk-0eajnhrj.js";import"./chunk-25ma8vb3.js";import"./chunk-ggdgk3gy.js";import"./chunk-ky592ay9.js";import"./chunk-n52n2w5v.js";import{Nk as J}from"./chunk-cjfb4kjp.js";import p from"node:path";var E=process.argv.slice(2),I=c(E),u=I!==null;if(I!==null)T.setGlobalDebug(I);function c(Q){for(let Y=0;Y<Q.length;Y+=1){let U=Q[Y];if(U==="--debug"||U==="-d"){let X=Q[Y+1];return X&&!X.startsWith("-")?X:!0}if(U.startsWith("--debug="))return U.slice(8)||!0}return null}function m(Q){return Q.length===1&&(Q[0]==="--version"||Q[0]==="-V")}function q(Q,...Y){return Q.some((U)=>Y.some((X)=>U===X||U.startsWith(`${X}=`)))}function t(Q,...Y){let U=[];for(let X=0;X<Q.length;X+=1){let G=Q[X],z=Y.find(($)=>G.startsWith(`${$}=`));if(z){let $=G.slice(z.length+1);if($)U.push($);continue}if(Y.includes(G)){let $=Q[X+1];if($&&!$.startsWith("-"))U.push($),X+=1}}return U}async function l(){if(m(E)){let{getVersion:K}=await import("./chunk-6d9d2cyk.js");console.log(K());return}let Q=process.cwd(),Y=F(Q);M(Y),N(B());let U=t(E,"--plugin-dir","--pluginDir");if(U.length>0){let{configureInvocationPluginDirs:K}=await import("./chunk-bh3e2gt1.js");K(U.map((Z)=>p.resolve(Q,Z)))}if(q(E,"--trust-workspace","--trustWorkspace")){let{WorkspaceTrustService:K}=await import("./chunk-6ax5dpd3.js");await K.getInstance().trust(B())}if(process.getuid&&process.getuid()===0){let K=!!process.env.SUDO_USER,Z=!!process.env.BLADE_ALLOW_ROOT;if(K&&!Z)console.error(""),console.error("Error: 请不要使用 sudo 运行 blade"),console.error(""),console.error("原因:"),console.error(" 使用 sudo 会创建属于 root 的配置文件,"),console.error(" 导致普通用户无法访问。"),console.error(""),console.error("正确用法:"),console.error(" blade # 直接运行,不要加 sudo"),console.error(""),console.error("如果遇到权限错误,请运行:"),console.error(" sudo chown -R $USER:$USER ~/.blade/"),console.error(""),console.error("如果你确实需要以 root 运行(容器/CI),设置环境变量:"),console.error(" BLADE_ALLOW_ROOT=1 blade"),console.error(""),process.exit(1)}if(q(E,"--headless")){let{handleHeadlessMode:K}=await import("./chunk-vw2be560.js");if(await K())return}if(W(),q(E,"--print","-p")){let{handlePrintMode:K}=await import("./chunk-evq5ke3s.js");if(await K())return}if(E.includes("--acp")){let{runAcpIntegration:K}=await import("./chunk-afq14p8m.js");await K();return}let[{default:X},{hideBin:G},{cliConfig:z,globalOptions:$},{loadConfiguration:_,validateOutput:D,validatePermissions:R},{browserCommands:S},{doctorCommands:k},{installCommands:O},{mcpCommands:y},{projectsCommands:V},{scheduleCommands:b},{serveCommand:P},{updateCommands:x},{webCommand:A}]=await Promise.all([import("yargs"),import("yargs/helpers"),import("./chunk-ksf9bywt.js"),import("./chunk-mrft8qep.js"),import("./chunk-wk869s65.js"),import("./chunk-pbw10pjv.js"),import("./chunk-0xf70s5c.js"),import("./chunk-n87apqe7.js"),import("./chunk-x49bw41v.js"),import("./chunk-g383afnv.js"),import("./chunk-wernns90.js"),import("./chunk-vd58pp9k.js"),import("./chunk-w2xgdqvw.js")]),h=X(G(process.argv)).scriptName(z.scriptName).usage(z.usage).version(z.version).locale(z.locale).showHelpOnFail(z.showHelpOnFail).demandCommand(0,"").recommendCommands().strict(z.strict).parserConfiguration({"populate--":!0}).options($).middleware([_,R,D]).command(S).command(y).command(V).command(b).command(k).command(x).command(O).command(A).command(P).completion("completion",!1).help("help","Show help").alias("help","h").alias("version","V").fail((K,Z,L)=>{if(Z){if(console.error("An error occurred:"),console.error(Z.message),u&&Z.stack)console.error(`
|
|
3
3
|
Stack trace:`),console.error(Z.stack);else console.error(`
|
|
4
4
|
Run with --debug to show the stack trace.`);process.exit(1)}if(K)console.error("Error: Invalid arguments:"),console.error(K),console.error(`
|
|
5
|
-
Hint: Did you mean:`),L.showHelp(),process.exit(1)}).command("$0",!1,()=>{},async(K)=>{let Z=K._.slice(1),L=Z.length>0?Z.join(" "):void 0,f=import("./chunk-
|
|
5
|
+
Hint: Did you mean:`),L.showHelp(),process.exit(1)}).command("$0",!1,()=>{},async(K)=>{let Z=K._.slice(1),L=Z.length>0?Z.join(" "):void 0,f=import("./chunk-bp1n4k48.js").then(({checkVersionOnStartup:v})=>v()),[{render:w},{createElement:j},{AppWrapper:C}]=await Promise.all([import("ink"),import("react"),import("./chunk-spsnc7ey.js")]),H={...K,initialMessage:L,debug:K.debug,print:Boolean(K.print),versionCheckPromise:f};delete H._,delete H.$0,delete H.message,w(j(C,H),{patchConsole:!0,exitOnCtrlC:!1,alternateBuffer:!1})});try{await h.parse()}catch(K){console.error("Error: Parse error:",K),process.exit(1)}}if(J.main==J.module)l().catch(console.error);export{l as main};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{V as I}from"./chunk-
|
|
1
|
+
import{V as I}from"./chunk-0qfm5awe.js";import{ie as M}from"./chunk-r2ev8kdg.js";import P from"node:path";function w(s){let a=s.replace(/\s+/g," ").trim();return a.length<=72?a:`${a.slice(0,69)}...`}function W(s){let a=s.replace(/\s+/g," ").trim();return a.length<=500?a:`${a.slice(0,497)}...`}function A(s){return`task/${s.replace(/[^a-zA-Z0-9_-]/g,"-").slice(0,40)}`}class C{static async createSessionTask(s){if(!s.prompt.trim())throw Error("Task prompt must not be blank");if(!P.isAbsolute(s.sourceProjectPath))throw Error("Task source project path must be absolute");let a=P.resolve(s.sourceProjectPath),t;try{return t=s.isolation==="worktree"?await I.enter({sessionId:s.sessionId,workspaceRoot:a,name:A(s.sessionId)}):void 0,{metadata:await M.createSessionMetadata(s.sessionId,t?.workspaceRoot??a,{title:s.title?.trim()||w(s.prompt),taskPromptSummary:W(s.prompt),taskPriority:s.taskPriority,taskKind:s.taskKind,taskDueAt:s.taskDueAt,taskDispatch:s.dispatch,taskModelId:s.dispatch?.modelId,selectedModelId:s.dispatch?.modelId,permissionMode:s.dispatch?.permissionMode,reasoningEffort:s.dispatch?.reasoningEffort,serviceTier:s.dispatch?.serviceTier,responseVerbosity:s.dispatch?.responseVerbosity,communicationStyle:s.dispatch?.communicationStyle,communicationStyleDigest:s.dispatch?.communicationStyleDigest,projectInstructionsDigest:s.dispatch?.projectInstructionsDigest,taskRetriedFrom:s.retriedFrom,taskIsolation:s.isolation,taskSourceProjectPath:a,taskWorktree:t}),taskWorktree:t}}catch(k){if(t)await I.exit({sessionId:s.sessionId,action:"remove",discardChanges:!0}).catch(()=>{return});throw k}}}var $=256,V=8388608,x=30000;class i extends Error{kind;pendingItems;pendingBytes;constructor(s,a,t){super(a,t);this.kind=s;this.name="BoundedSerialEgressError",this.pendingItems=t?.pendingItems,this.pendingBytes=t?.pendingBytes}}function T(s){s.catch(()=>{return})}class K{options;pending=[];flushWaiters=[];pendingBytes=0;nextSequence=0;completedSequence=0;draining=!1;closed=!1;failure;activeWriteAbort;activeWriteStop;activeWriteTimeout;constructor(s){this.options=s;if(this.assertPositiveInteger(s.maxPendingItems,"maxPendingItems"),this.assertPositiveInteger(s.maxPendingBytes,"maxPendingBytes"),this.assertPositiveInteger(s.writeTimeoutMs,"writeTimeoutMs"),s.signal?.addEventListener("abort",this.handleAbort,{once:!0}),s.signal?.aborted)this.handleAbort()}offer(s){if(this.closed)return{accepted:!1,error:this.failure??new i("closed","Egress is already closed")};let a;try{a=this.options.sizeOf(s)}catch(h){return this.rejectAdmission(new i("invalid_size","Egress size calculation failed",{cause:h}))}if(!Number.isSafeInteger(a)||a<0)return this.rejectAdmission(new i("invalid_size","Egress size must be a non-negative safe integer"));if(a>this.options.maxPendingBytes)return this.rejectAdmission(new i("oversized",`Egress value requires ${a} bytes; limit is ${this.options.maxPendingBytes}`));if(this.pending.length>=this.options.maxPendingItems||this.pendingBytes+a>this.options.maxPendingBytes)return this.rejectAdmission(new i("overflow",`Egress pending limit exceeded (${this.pending.length} items, ${this.pendingBytes} bytes)`));let t,k,c=new Promise((h,m)=>{t=h,k=m});return T(c),this.nextSequence+=1,this.pending.push({value:s,bytes:a,sequence:this.nextSequence,resolve:t,reject:k,completion:c}),this.pendingBytes+=a,this.startDrain(),{accepted:!0,completion:c}}flush(){if(this.failure){let c=Promise.reject(this.failure);return T(c),c}let s=this.nextSequence;if(s<=this.completedSequence)return Promise.resolve();let a,t,k=new Promise((c,h)=>{a=c,t=h});return T(k),this.flushWaiters.push({targetSequence:s,resolve:a,reject:t}),k}close(s){let a=s instanceof i?s:new i("closed","Egress was closed",{cause:s});this.fail(a)}stats(){return{closed:this.closed,pendingItems:this.pending.length,pendingBytes:this.pendingBytes}}handleAbort=()=>{this.fail(new i("aborted","Egress was aborted",{cause:this.options.signal?.reason}))};rejectAdmission(s){return this.fail(s),{accepted:!1,error:s}}startDrain(){if(this.draining||this.closed)return;this.draining=!0;let s=this.drain();T(s)}async drain(){try{while(!this.closed){let s=this.pending[0];if(!s)return;try{await this.writeOne(s.value)}catch(a){this.fail(this.normalizeWriteError(a));return}if(this.closed||this.pending[0]!==s)return;this.pending.shift(),this.pendingBytes-=s.bytes,this.completedSequence=s.sequence,s.resolve(),this.settleFlushWaiters()}}finally{if(this.draining=!1,!this.closed&&this.pending.length>0)this.startDrain()}}async writeOne(s){let a=new AbortController;this.activeWriteAbort=a;let t,k,c=new Promise((S,f)=>{k=f});T(c),this.activeWriteStop=k;let h=Promise.resolve().then(()=>this.options.write(s,a.signal));T(h);let m=new Promise((S,f)=>{t=setTimeout(()=>{let D=new i("write_timeout",`Egress write timed out after ${this.options.writeTimeoutMs}ms`);a.abort(D),f(D)},this.options.writeTimeoutMs),this.activeWriteTimeout=t});T(m);try{await Promise.race([h,m,c])}finally{if(t!==void 0)clearTimeout(t);if(this.activeWriteTimeout===t)this.activeWriteTimeout=void 0;if(this.activeWriteAbort===a)this.activeWriteAbort=void 0;if(this.activeWriteStop===k)this.activeWriteStop=void 0}}normalizeWriteError(s){if(s instanceof i)return s;return new i("write_failed","Egress write failed",{cause:s})}fail(s){if(this.closed)return;if(s.pendingItems??=this.pending.length,s.pendingBytes??=this.pendingBytes,this.closed=!0,this.failure=s,this.options.signal?.removeEventListener("abort",this.handleAbort),this.activeWriteTimeout!==void 0)clearTimeout(this.activeWriteTimeout),this.activeWriteTimeout=void 0;this.activeWriteAbort?.abort(s),this.activeWriteStop?.(s),this.activeWriteAbort=void 0,this.activeWriteStop=void 0;let a=this.pending.splice(0);this.pendingBytes=0;for(let t of a)t.reject(s);for(let t of this.flushWaiters.splice(0))t.reject(s);try{this.options.onFailure?.(s)}catch{}}settleFlushWaiters(){for(let s=0;s<this.flushWaiters.length;){let a=this.flushWaiters[s];if(a.targetSequence>this.completedSequence){s+=1;continue}this.flushWaiters.splice(s,1),a.resolve()}}assertPositiveInteger(s,a){if(!Number.isSafeInteger(s)||s<=0)throw RangeError(`${a} must be a positive safe integer`)}}
|
|
2
2
|
export{C as B,$ as C,V as D,x as E,i as F,K as G};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Yj as d,_j as h}from"./chunk-
|
|
1
|
+
import{Yj as d,_j as h}from"./chunk-25ma8vb3.js";var q={debug:{alias:"d",type:"string",describe:'Enable debug mode with optional category filtering (e.g., "agent,ui" or "!chat,!loop")',group:"Debug Options:"},model:{type:"string",describe:"Override the current run model using a model config ID (TUI / print / headless)",group:"AI Options:"},print:{alias:"p",type:"boolean",describe:"Print response and exit (useful for pipes)",group:"Output Options:"},headless:{type:"boolean",describe:"Run full agent loop without Ink UI and print all events to the terminal",group:"Output Options:"},"output-format":{alias:["outputFormat"],type:"string",choices:["text","json","stream-json","jsonl"],default:"text",describe:"Output format: --print supports text|json|stream-json; --headless supports text|jsonl",group:"Output Options:"},"json-schema":{alias:["jsonSchema"],type:"string",describe:"Inline JSON Schema for the turn-scoped structured final response",group:"Output Options:"},"output-schema":{alias:["outputSchema"],type:"string",describe:"Path to a JSON Schema file for the structured final response",group:"Output Options:"},"include-partial-messages":{alias:["includePartialMessages"],type:"boolean",describe:"Include partial message chunks as they arrive",group:"Output Options:"},"input-format":{alias:["inputFormat"],type:"string",choices:["text","stream-json"],default:"text",describe:"Input format",group:"Input Options:"},"replay-user-messages":{alias:["replayUserMessages"],type:"boolean",describe:"Re-emit user messages from stdin",group:"Input Options:"},"allowed-tools":{alias:["allowedTools"],type:"array",string:!0,describe:"Comma or space-separated list of tool names to allow",group:"Security Options:"},"disallowed-tools":{alias:["disallowedTools"],type:"array",string:!0,describe:"Comma or space-separated list of tool names to deny",group:"Security Options:"},"mcp-config":{alias:["mcpConfig"],type:"array",string:!0,describe:"Load MCP servers from JSON files or strings",group:"MCP Options:"},"system-prompt":{alias:["systemPrompt"],type:"string",describe:"System prompt to use for the session (replaces default)",group:"AI Options:"},"append-system-prompt":{alias:["appendSystemPrompt"],type:"string",describe:"Append a system prompt to the default system prompt",group:"AI Options:"},"max-turns":{alias:["maxTurns"],type:"number",describe:"Maximum conversation turns (-1: unlimited, 0: disable chat, N>0: limit to N turns)",group:"AI Options:",default:void 0},"max-concurrent-tasks":{alias:["maxConcurrentTasks"],type:"number",describe:"Maximum top-level tasks running concurrently in this process",group:"AI Options:",default:void 0},"max-queued-tasks":{alias:["maxQueuedTasks"],type:"number",describe:"Maximum top-level tasks waiting for an admission slot",group:"AI Options:",default:void 0},"max-queued-task-bytes":{alias:["maxQueuedTaskBytes"],type:"number",describe:"Maximum retained bytes across queued top-level tasks",group:"AI Options:",default:void 0},"max-resident-session-runtimes":{alias:["maxResidentSessionRuntimes"],type:"number",describe:"Maximum initialized Session runtimes resident in this process",group:"AI Options:",default:void 0},"session-runtime-idle-ms":{alias:["sessionRuntimeIdleMs"],type:"number",describe:"Idle time before an evictable Web Session runtime is evicted",group:"AI Options:",default:void 0},"max-resident-session-projections":{alias:["maxResidentSessionProjections"],type:"number",describe:"Maximum resident Session projections retained in this process",group:"AI Options:",default:void 0},"session-projection-idle-ms":{alias:["sessionProjectionIdleMs"],type:"number",describe:"Idle time before an evictable Session projection is evicted",group:"AI Options:",default:void 0},"permission-mode":{alias:["permissionMode"],type:"string",choices:["default","autoEdit","yolo","plan"],describe:"Permission mode (default: ask for non-read tools, autoEdit: auto-approve edits, yolo: auto-approve all, plan: reserved)",group:"Security Options:"},yolo:{type:"boolean",describe:"Auto-approve all tools (shortcut for --permission-mode=yolo)",group:"Security Options:"},"trust-workspace":{alias:["trustWorkspace"],type:"boolean",describe:"Trust the current workspace before loading project models, MCP, LSP, permissions, or plugins",group:"Security Options:"},continue:{alias:"c",type:"boolean",describe:"Continue the most recent conversation",group:"Session Options:"},resume:{alias:"r",describe:"Resume a conversation - provide a session ID or interactively select a conversation to resume",group:"Session Options:",coerce:(b)=>{if(b===void 0||b===!0||b==="")return"true";return String(b)}},"fork-session":{alias:["forkSession"],type:"boolean",describe:"Create a new session ID when resuming",group:"Session Options:"},settings:{type:"string",describe:"Path to a settings JSON file or JSON string",group:"Configuration:"},"add-dir":{alias:["addDir"],type:"array",string:!0,describe:"Additional directories to allow tool access to",group:"Security Options:"},ide:{type:"boolean",describe:"Automatically connect to IDE on startup",group:"Integration:"},acp:{type:"boolean",describe:"Run in ACP (Agent Client Protocol) mode for IDE integration",group:"Integration:"},"strict-mcp-config":{alias:["strictMcpConfig"],type:"boolean",describe:"Only use MCP servers from --mcp-config",group:"MCP Options:"},"session-id":{alias:["sessionId"],type:"string",describe:"Use a specific session ID for the conversation",group:"Session Options:"},agents:{type:"string",describe:"JSON object defining custom agents",group:"AI Options:"},"setting-sources":{alias:["settingSources"],type:"string",describe:"Comma-separated list of setting sources to load",group:"Configuration:"},"plugin-dir":{alias:["pluginDir"],type:"array",string:!0,describe:"Load plugins from specified directories",group:"Plugin Options:"}},w={scriptName:"blade",usage:"$0 [command] [options]",description:h(),version:d(),locale:"en",showHelpOnFail:!0,demandCommand:!1,recommendCommands:!0,strict:!1};
|
|
2
2
|
export{q as sf,w as tf};
|