blade-code 0.10.71 → 0.10.73
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/README.md +1 -1
- package/dist/blade.js +2 -2
- package/dist/{chunk-wfy851et.js → chunk-0hrj06t7.js} +1 -1
- package/dist/chunk-0qqzd0hq.js +1 -0
- package/dist/{chunk-jzntxp7f.js → chunk-1ava19kd.js} +2 -2
- package/dist/chunk-1cyy8wqj.js +10 -0
- package/dist/{chunk-97aywyzn.js → chunk-2wdxpdz3.js} +2 -2
- package/dist/chunk-3fzy7q6x.js +1 -0
- package/dist/chunk-3hv57n95.js +1635 -0
- package/dist/{chunk-bjqjdw34.js → chunk-3r0x2p7z.js} +2 -2
- package/dist/chunk-4cpgcm7q.js +44 -0
- package/dist/{chunk-m57w4p91.js → chunk-4ehgjdm0.js} +1 -1
- package/dist/{chunk-hat9v5c5.js → chunk-4khtsmrf.js} +1 -1
- package/dist/{chunk-axtzde5k.js → chunk-5d1gbm41.js} +2 -2
- package/dist/chunk-64jq6jcr.js +2 -0
- package/dist/{chunk-4ke8k0xw.js → chunk-67ddp3ns.js} +3 -3
- package/dist/{chunk-trn6r1g3.js → chunk-77hn7hf6.js} +1 -1
- package/dist/{chunk-ahg9vjb6.js → chunk-8fm3xamc.js} +1 -1
- package/dist/chunk-8h35w91f.js +1 -0
- package/dist/{chunk-2px6hzdc.js → chunk-948efzyp.js} +2 -2
- package/dist/{chunk-qgrq04hb.js → chunk-9cgsheg0.js} +2 -2
- package/dist/chunk-9e6dcbqq.js +160 -0
- package/dist/{chunk-gtcxybv5.js → chunk-a0ns74mh.js} +1 -1
- package/dist/{chunk-5te2jqt3.js → chunk-a37mn58w.js} +1 -1
- package/dist/{chunk-3hy06st1.js → chunk-a5e4sy4q.js} +2 -2
- package/dist/{chunk-k0pa8874.js → chunk-ah12xhh6.js} +1 -1
- package/dist/{chunk-j9q1wyxg.js → chunk-ax610gqh.js} +1 -1
- package/dist/chunk-b28zsp1t.js +166 -0
- package/dist/{chunk-rm9hbew3.js → chunk-b3413dtc.js} +1 -1
- package/dist/{chunk-1je1xw6v.js → chunk-bhhdvqe7.js} +18 -18
- package/dist/{chunk-0j22w4wh.js → chunk-c9e0fbyh.js} +1 -1
- package/dist/{chunk-fcv8b6ny.js → chunk-cvvtrvk6.js} +2 -2
- package/dist/chunk-fdmcef2p.js +2 -0
- package/dist/{chunk-x9tvjkjv.js → chunk-fgh6mjdp.js} +1 -1
- package/dist/chunk-hswyrd88.js +1 -0
- package/dist/chunk-jeazjp08.js +8 -0
- package/dist/{chunk-zvz2cnt4.js → chunk-jkh9s1ht.js} +1 -1
- package/dist/{chunk-yn51162x.js → chunk-js4vqnds.js} +1 -1
- package/dist/chunk-jsg7vmxp.js +1 -0
- package/dist/{chunk-v0rsz1rt.js → chunk-k82ff14t.js} +1 -1
- package/dist/chunk-kka51s0k.js +2 -0
- package/dist/{chunk-cff9gphh.js → chunk-meee1cbq.js} +1 -1
- package/dist/{chunk-r9d4mjxj.js → chunk-mefb27ch.js} +1 -1
- package/dist/{chunk-0vrgrw71.js → chunk-n1w40gq2.js} +2 -2
- package/dist/{chunk-t8xmh4w2.js → chunk-ne7vres8.js} +1 -1
- package/dist/chunk-p0qjjyex.js +22 -0
- package/dist/{chunk-h0ft81a3.js → chunk-p7y79y6c.js} +1 -1
- package/dist/{chunk-0tm20v38.js → chunk-q6ak67n8.js} +2 -2
- package/dist/{chunk-byqxaa9v.js → chunk-r5bpvfym.js} +1 -1
- package/dist/{chunk-th4jjfgm.js → chunk-r8wbvxn7.js} +1 -1
- package/dist/{chunk-0wxkymqv.js → chunk-skw3b17a.js} +1 -1
- package/dist/{chunk-dwb2nmms.js → chunk-sxjs66h6.js} +1 -1
- package/dist/{chunk-s77sbxr7.js → chunk-tmvg7taj.js} +1 -1
- package/dist/{chunk-1pjkgfez.js → chunk-traa01dd.js} +1 -1
- package/dist/{chunk-9hchc346.js → chunk-tvv3syt3.js} +1 -1
- package/dist/{chunk-t2wgf9tq.js → chunk-tzytnhbp.js} +2 -2
- package/dist/chunk-vhadycw2.js +2 -0
- package/dist/{chunk-s7jsadnc.js → chunk-vw0gg08s.js} +2 -2
- package/dist/chunk-vxd30mnx.js +1 -0
- package/dist/chunk-wbzvy99s.js +1 -0
- package/dist/chunk-wg3z2epq.js +1 -0
- package/dist/{chunk-mtphps19.js → chunk-wp0794r2.js} +2 -2
- package/dist/{chunk-azw0jckv.js → chunk-xjc0bthz.js} +2 -2
- package/dist/chunk-xkc6v9nb.js +1 -0
- package/dist/{chunk-be30r8an.js → chunk-xv92c582.js} +1 -1
- package/dist/chunk-y36rdy4v.js +5 -0
- package/dist/chunk-yg6c4xrs.js +1 -0
- package/dist/{chunk-cdy9efgm.js → chunk-yvnm25nb.js} +1 -1
- package/dist/chunk-yx82ang3.js +6 -0
- package/dist/chunk-z8a5ebep.js +1 -0
- package/dist/chunk-z95pw8nb.js +1 -0
- package/dist/chunk-zh2x0tcm.js +1 -0
- package/dist/chunk-zr1mg5kq.js +1 -0
- package/dist/{chunk-9q852bsc.js → chunk-zxn7f308.js} +2 -2
- package/dist/web/assets/ChatView-Dm-DMbOV.js +18 -0
- package/dist/web/assets/{CodeBlockHighlighter-Dy7QpAmC.js → CodeBlockHighlighter-XaY8h0vd.js} +1 -1
- package/dist/web/assets/{FilePreview-BI3nkxz1.js → FilePreview-CVHV6oga.js} +1 -1
- package/dist/web/assets/{KanbanBoard-D5dYOyPH.js → KanbanBoard-D1_61uZi.js} +1 -1
- package/dist/web/assets/{MarkdownRenderer-Da1vB81L.js → MarkdownRenderer-DUPwAzs4.js} +3 -3
- package/dist/web/assets/{SettingsModal-jcCFqLqS.js → SettingsModal-DHnU7uMN.js} +2 -2
- package/dist/web/assets/{TaskSwitcher-CQ--jOLB.js → TaskSwitcher-CpXhLtO5.js} +1 -1
- package/dist/web/assets/{TerminalPanel-CWzjEXOb.js → TerminalPanel-eYsA-A62.js} +1 -1
- package/dist/web/assets/index-8G4ejlcH.css +1 -0
- package/dist/web/assets/index-gjBOFzd1.js +11 -0
- package/dist/web/assets/{session-events-BvtUOaNG.js → session-events-Bgir_Gl_.js} +6 -6
- package/dist/web/assets/team-QZ9byb3E.js +1 -0
- package/dist/web/assets/teamService-Bb2kW8Hh.js +1 -0
- package/dist/web/assets/{vendor-icons-B63aW_OM.js → vendor-icons-DovdPN7M.js} +51 -41
- package/dist/web/index.html +4 -4
- package/package.json +1 -1
- package/dist/chunk-1w83z8j0.js +0 -1
- package/dist/chunk-2428hhvj.js +0 -6
- package/dist/chunk-3as0bkqy.js +0 -1
- package/dist/chunk-4pexpa3h.js +0 -160
- package/dist/chunk-6pyktfa4.js +0 -2
- package/dist/chunk-82htkvz8.js +0 -44
- package/dist/chunk-8j568nm6.js +0 -1
- package/dist/chunk-92x15fzx.js +0 -2
- package/dist/chunk-93tvxmqg.js +0 -8
- package/dist/chunk-ckqpt15b.js +0 -1
- package/dist/chunk-d3ttqmyt.js +0 -1620
- package/dist/chunk-fcmgwzrj.js +0 -10
- package/dist/chunk-gvbx0t4j.js +0 -1
- package/dist/chunk-j0p54tqt.js +0 -1
- package/dist/chunk-n827nys9.js +0 -1
- package/dist/chunk-nwzpnx7m.js +0 -22
- package/dist/chunk-nx31fkkf.js +0 -166
- package/dist/chunk-qnsvae10.js +0 -1
- package/dist/chunk-sp3bn8qh.js +0 -1
- package/dist/chunk-v7p533ff.js +0 -1
- package/dist/chunk-vthgpdbd.js +0 -1
- package/dist/chunk-wneeq8cr.js +0 -1
- package/dist/chunk-wrfay5r3.js +0 -2
- package/dist/chunk-xdz5zrjt.js +0 -1
- package/dist/chunk-xz6y0w4n.js +0 -2
- package/dist/chunk-xzz69esf.js +0 -1
- package/dist/chunk-zdnk7qtn.js +0 -5
- package/dist/web/assets/ChatView-BVrhnE2j.js +0 -18
- package/dist/web/assets/index-BOgOL4hG.js +0 -11
- package/dist/web/assets/index-DbWgTuT3.css +0 -1
package/package.json
CHANGED
package/dist/chunk-1w83z8j0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Hc as a,Ic as b,Jc as c,Kc as d,Lc as e,Mc as f,Nc as g}from"./chunk-97aywyzn.js";import"./chunk-0wxkymqv.js";import"./chunk-mtphps19.js";import"./chunk-yn51162x.js";import"./chunk-cdy9efgm.js";import"./chunk-m57w4p91.js";import"./chunk-xz6y0w4n.js";import"./chunk-k0pa8874.js";import"./chunk-t2wgf9tq.js";import"./chunk-t8xmh4w2.js";import"./chunk-azw0jckv.js";import"./chunk-9q852bsc.js";import"./chunk-wfy851et.js";export{b as __setSessionSnapshotIOForTesting,c as __resetSessionSnapshotIOForTesting,g as SessionService,d as SessionMissingCreationError,e as SessionArchivedError,f as SessionArchiveConflictError,a as STALE_EMPTY_SESSION_AGE_MS};
|
package/dist/chunk-2428hhvj.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{od as o}from"./chunk-s7jsadnc.js";import{Hd as n}from"./chunk-1je1xw6v.js";import{Hf as Y,If as x,Kf as I,Mf as N,Nf as j,Pf as F,Tf as R,Uf as E,Vf as _,Wf as f,Yf as C,Zf as S,bg as m,gg as d,hg as l}from"./chunk-82htkvz8.js";import{ig as V}from"./chunk-h0ft81a3.js";import{kg as X,mg as k,pg as Z}from"./chunk-v0rsz1rt.js";import{ug as Q}from"./chunk-k0pa8874.js";import{Fg as h,Gg as A,Jg as P,Kg as T,Mg as U,Ng as L,Pg as M,Qg as O,yg as y,zg as D}from"./chunk-6pyktfa4.js";import{Xg as u}from"./chunk-t2wgf9tq.js";import{promises as s}from"node:fs";import i from"node:path";var t=["systemPrompt","appendSystemPrompt","initialMessage","resumeSessionId","forkSession","allowedTools","disallowedTools","mcpConfigPaths","strictMcpConfig","model","addDirs","outputFormat","inputFormat","print","includePartialMessages","replayUserMessages","agentsConfig","settingSources"],e=new Set([...Object.keys(m),...t]),W=k.Number({exclusiveMinimum:0}),z=k.String({minLength:1}),$=k.Array(k.String()),v=k.Object({currentModelId:k.Optional(k.String()),modelProviders:k.Optional(k.Record(z,k.Object({name:z,baseUrl:z,wireApi:Z(["openai-completions","anthropic-messages"]),apiKeyEnv:k.Optional(z)}))),models:k.Optional(k.Array(k.Object({id:z,displayName:k.Optional(z),provider:z,model:z,overrides:k.Optional(k.Object({baseUrl:k.Optional(k.String()),temperature:k.Optional(k.Number()),maxOutputTokens:k.Optional(W),timeout:k.Optional(W),streamIdleTimeout:k.Optional(k.Number({minimum:1000})),apiVersion:k.Optional(k.String()),customHeaders:k.Optional(k.Record(k.String(),k.String())),maxRetries:k.Optional(k.Integer({minimum:0})),enablePromptCaching:k.Optional(k.Boolean())})),fallbackModels:k.Optional(k.Array(k.Object({provider:z,model:z,configId:k.Optional(z)})))}))),temperature:k.Optional(k.Number()),maxOutputTokens:k.Optional(W),stream:k.Optional(k.Boolean()),topP:k.Optional(k.Number()),topK:k.Optional(k.Number()),timeout:k.Optional(W),bashForegroundHandoffMs:k.Optional(k.Union([k.Literal(0),k.Integer({minimum:Y,maximum:x})])),providerForegroundRecoveryMs:k.Optional(k.Union([k.Literal(0),k.Integer({minimum:y,maximum:D})])),providerCircuitBreakerOpenMs:k.Optional(k.Union([k.Literal(0),k.Integer({minimum:h,maximum:A})])),providerRequestConcurrency:k.Optional(k.Integer({minimum:P,maximum:T})),providerRequestAdmissionMs:k.Optional(k.Union([k.Literal(0),k.Integer({minimum:U,maximum:L})])),providerRequestPendingBytes:k.Optional(k.Integer({minimum:M,maximum:O})),codeTheme:k.Optional(k.String()),uiTheme:k.Optional(Z(["light","dark","system"])),language:k.Optional(k.String()),fontSize:k.Optional(W),autoSaveSessions:k.Optional(k.Boolean()),notifyBuild:k.Optional(k.Boolean()),notifyErrors:k.Optional(k.Boolean()),notifySounds:k.Optional(k.Boolean()),privacyTelemetry:k.Optional(k.Boolean()),privacyCrash:k.Optional(k.Boolean()),debug:k.Optional(k.Union([k.Boolean(),k.String()])),mcpEnabled:k.Optional(k.Boolean()),mcpServers:k.Optional(k.Record(k.String(),k.Record(k.String(),k.Unknown()))),lspServers:k.Optional(k.Record(z,k.Object({command:z,args:k.Optional(k.Array(k.String())),extensionToLanguage:k.Record(z,z),env:k.Optional(k.Record(k.String(),k.String())),initializationOptions:k.Optional(k.Unknown()),settings:k.Optional(k.Unknown()),enabled:k.Optional(k.Boolean()),priority:k.Optional(k.Integer()),startupTimeout:k.Optional(k.Integer({minimum:100})),shutdownTimeout:k.Optional(k.Integer({minimum:100})),requestTimeout:k.Optional(k.Integer({minimum:100})),diagnosticWaitTimeout:k.Optional(k.Integer({minimum:0})),maxRestarts:k.Optional(k.Integer({minimum:0,maximum:10}))}))),permissionMode:k.Optional(k.Enum(V)),maxTurns:k.Optional(k.Integer({minimum:-1})),maxConcurrentTasks:k.Optional(k.Integer({minimum:R,maximum:E})),maxQueuedTasks:k.Optional(k.Integer({minimum:_,maximum:f})),maxQueuedTaskBytes:k.Optional(k.Integer({minimum:C,maximum:S})),maxResidentSessionRuntimes:k.Optional(k.Integer({minimum:I,maximum:N})),sessionRuntimeIdleMs:k.Optional(k.Integer({minimum:j,maximum:F})),systemPrompt:k.Optional(k.String()),appendSystemPrompt:k.Optional(k.String()),initialMessage:k.Optional(k.String()),resumeSessionId:k.Optional(k.String()),forkSession:k.Optional(k.Boolean()),allowedTools:k.Optional(k.Array(z)),disallowedTools:k.Optional(k.Array(z)),mcpConfigPaths:k.Optional(k.Array(z)),strictMcpConfig:k.Optional(k.Boolean()),model:k.Optional(z),addDirs:k.Optional(k.Array(z)),outputFormat:k.Optional(Z(["text","json","stream-json","jsonl"])),inputFormat:k.Optional(Z(["text","stream-json"])),print:k.Optional(k.Boolean()),includePartialMessages:k.Optional(k.Boolean()),replayUserMessages:k.Optional(k.Boolean()),agentsConfig:k.Optional(k.String()),settingSources:k.Optional(k.String()),permissions:k.Optional(k.Object({allow:k.Optional($),ask:k.Optional($),deny:k.Optional($)})),env:k.Optional(k.Record(k.String(),k.String())),hooks:k.Optional(k.Record(k.String(),k.Unknown())),enabledPlugins:k.Optional(k.Record(z,k.Boolean())),pluginSourcePolicy:k.Optional(k.Object({restrictToAllowedSources:k.Optional(k.Boolean()),requireGitCommitSha:k.Optional(k.Boolean()),allowedGitHosts:k.Optional(k.Array(z)),allowedMarketplaces:k.Optional(k.Array(z)),allowedLocalRoots:k.Optional(k.Array(z))})),disableAllHooks:k.Optional(k.Boolean())}),a=[["systemPrompt","systemPrompt"],["appendSystemPrompt","appendSystemPrompt"],["initialMessage","initialMessage"],["resumeSessionId","sessionId"],["forkSession","forkSession"],["allowedTools","allowedTools"],["disallowedTools","disallowedTools"],["mcpConfigPaths","mcpConfig"],["strictMcpConfig","strictMcpConfig"],["model","model"],["addDirs","addDir"],["outputFormat","outputFormat"],["inputFormat","inputFormat"],["print","print"],["includePartialMessages","includePartialMessages"],["replayUserMessages","replayUserMessages"],["agentsConfig","agents"],["settingSources","settingSources"],["permissionMode","permissionMode"],["maxTurns","maxTurns"],["maxConcurrentTasks","maxConcurrentTasks"],["maxQueuedTasks","maxQueuedTasks"],["maxQueuedTaskBytes","maxQueuedTaskBytes"],["maxResidentSessionRuntimes","maxResidentSessionRuntimes"],["sessionRuntimeIdleMs","sessionRuntimeIdleMs"]];function G(q,B){let w;try{w=JSON.parse(q)}catch(H){let K=H instanceof Error?`: ${H.message}`:"";throw Error(`Invalid JSON provided to --settings (${B})${K}`)}if(!w||typeof w!=="object"||Array.isArray(w))throw Error("--settings must contain a JSON object");for(let H of Object.keys(w))if(!e.has(H))throw Error(`Unknown --settings field: ${H}`);let J=X(v,w);if(!J.success){let H=J.error.issues.map((K)=>`${K.path.join(".")||"settings"}: ${K.message}`).join("; ");throw Error(`Invalid --settings value: ${H}`)}return J.data}async function c(q){if(q===void 0)return;let B=q.trim();if(!B)throw Error("--settings requires a JSON object or file path");if(B.startsWith("{"))return G(B,"inline JSON");let w=i.resolve(Q(),B),J;try{J=await s.readFile(w,"utf8")}catch(H){let K=H instanceof Error?`: ${H.message}`:"";throw Error(`Unable to read --settings file ${w}${K}`)}return G(J,w)}function p(q,B){if(!B)return;let w=B;for(let[J,H]of a){if(J==="permissionMode"&&q.yolo===!0)continue;if(q[H]===void 0&&w[J]!==void 0)q[H]=w[J]}}var b=u("General"),yk=(q)=>{if(q.yolo){if(q.permissionMode&&q.permissionMode!=="yolo")throw Error("Cannot use both --yolo and --permission-mode with different values");q.permissionMode="yolo"}if(Array.isArray(q.allowedTools))q.allowedTools=q.allowedTools.flatMap((B)=>B.split(",").map((w)=>w.trim()).filter((w)=>w.length>0));if(Array.isArray(q.disallowedTools))q.disallowedTools=q.disallowedTools.flatMap((B)=>B.split(",").map((w)=>w.trim()).filter((w)=>w.length>0));if(Array.isArray(q.allowedTools)&&Array.isArray(q.disallowedTools)){let B=q.allowedTools.filter((w)=>q.disallowedTools.includes(w));if(B.length>0)throw Error(`Tools cannot be both allowed and disallowed: ${B.join(", ")}`)}},Dk=async(q)=>{let B=await c(typeof q.settings==="string"?q.settings:void 0);if(p(q,B),typeof q.agents==="string")o(q.agents);g(q);try{let J=await d.getInstance().initialize(B),H=l(J,q);if(n().config.actions.setConfig(H),q.debug)b.info("[CLI] 配置已加载到 Store")}catch(w){b.error("[CLI] [FAIL] 配置初始化失败",w instanceof Error?w.message:w),console.error(`
|
|
2
|
-
[FAIL] 配置初始化失败
|
|
3
|
-
`),console.error("原因:",w instanceof Error?w.message:"未知错误"),console.error(`
|
|
4
|
-
请检查:`),console.error(" 1. 配置文件格式是否正确 (~/.blade/config.json)"),console.error(" 2. 是否需要运行 blade 进行首次配置"),console.error(` 3. 配置文件权限是否正确
|
|
5
|
-
`),process.exit(1)}};function g(q){if(q.continue&&q.resume)throw Error("Cannot use both --continue and --resume flags simultaneously");if(q.forkSession&&!q.continue&&!q.resume)throw Error("--fork-session requires --resume or --continue");if(q.sessionId&&(q.continue||q.resume)&&!q.forkSession)throw Error("--session-id can only be combined with --resume or --continue when --fork-session is set")}var hk=(q)=>{if(q.jsonSchema&&q.outputSchema)throw Error("--json-schema cannot be combined with --output-schema");if((q.jsonSchema||q.outputSchema)&&!q.print&&!q.headless)throw Error("--json-schema and --output-schema can only be used with --print or --headless");if(q.outputFormat&&q.outputFormat!=="text"&&!q.print&&!q.headless)throw Error("--output-format can only be used with --print or --headless");if(q.headless&&q.outputFormat&&!["text","jsonl"].includes(q.outputFormat))throw Error(`--headless only supports --output-format text|jsonl, but got "${q.outputFormat}". Use --print for json|stream-json support.`);if(q.print&&q.outputFormat&&!["text","json","stream-json"].includes(q.outputFormat))throw Error(`--print only supports --output-format text|json|stream-json, but got "${q.outputFormat}". Use --headless for jsonl support.`);if(q.inputFormat==="stream-json"&&q.print)b.warn("[WARN] Warning: stream-json input format may not work as expected with --print")};
|
|
6
|
-
export{yk as ld,Dk as md,hk as nd};
|
package/dist/chunk-3as0bkqy.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ke as a,le as b,me as c}from"./chunk-fcv8b6ny.js";import"./chunk-82htkvz8.js";import"./chunk-h0ft81a3.js";import"./chunk-v0rsz1rt.js";import"./chunk-xz6y0w4n.js";import"./chunk-k0pa8874.js";import"./chunk-6pyktfa4.js";import"./chunk-t2wgf9tq.js";import"./chunk-2px6hzdc.js";import"./chunk-t8xmh4w2.js";import"./chunk-azw0jckv.js";import"./chunk-jzntxp7f.js";import"./chunk-r9d4mjxj.js";import"./chunk-9q852bsc.js";import"./chunk-wfy851et.js";export{c as snapshotWorkspaceModelResources,b as resolveWorkspaceModelResources,a as cloneWorkspaceModelConfig};
|