@tbox.cn/tboxcode-dsh-tools 0.1.0-rc.13 → 0.1.0-rc.14
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/lib/auto-commit/index.d.ts +2 -2
- package/lib/auto-commit/index.js +1 -1
- package/lib/{auto-commit-FhjBfiMx.js → auto-commit-BEFnS23Y.js} +1 -1
- package/lib/{index-CNU9S13j.d.ts → index-BQenc8vl.d.ts} +11 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/pre-execute/index.js +1 -1
- package/lib/{pre-execute-AkMe7eQo.js → pre-execute-B-q9jTVv.js} +1 -1
- package/package.json +5 -5
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RunAutoCommitOptions, c as
|
|
2
|
-
export { AutoCommitOutcome, Config, GitResult, GitRunner, RunAutoCommitOptions, apply, defaultGitRunner, name, pushOnly, runAutoCommit, shouldSkip };
|
|
1
|
+
import { a as RunAutoCommitOptions, c as isForkedSession, d as runAutoCommit, f as shouldSkip, i as GitRunner, l as name, n as Config, o as apply, r as GitResult, s as defaultGitRunner, t as AutoCommitOutcome, u as pushOnly } from "../index-BQenc8vl.js";
|
|
2
|
+
export { AutoCommitOutcome, Config, GitResult, GitRunner, RunAutoCommitOptions, apply, defaultGitRunner, isForkedSession, name, pushOnly, runAutoCommit, shouldSkip };
|
package/lib/auto-commit/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,i as t,n,o as r,r as i,t as
|
|
1
|
+
import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"../auto-commit-BEFnS23Y.js";export{o as apply,n as defaultGitRunner,i as isForkedSession,t as name,e as pushOnly,r as runAutoCommit,a as shouldSkip};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as e}from"zod";import{join as t}from"node:path";import{existsSync as n}from"node:fs";import{execFile as r}from"node:child_process";import{promisify as i}from"node:util";const a=i(r),o=`tboxcode-auto-commit`,s=e.object({enabled:e.boolean().optional(),push:e.boolean().optional(),remote:e.string().optional(),branch:e.string().optional(),commitMessage:e.string().optional(),pendingRetryMs:e.number().int().positive().optional(),authorName:e.string().optional(),authorEmail:e.string().optional(),maxAttempts:e.number().int().min(1).max(10).optional()}),c=async(e,t,n)=>{let r=await a(`git`,[...e],{cwd:t,env:{...process.env,...n},maxBuffer:16*1024*1024});return{stdout:r.stdout,stderr:r.stderr}};function l(e){return{GIT_AUTHOR_NAME:e.authorName??process.env.TBOX_GIT_AUTHOR_NAME??`CodingBox`,GIT_AUTHOR_EMAIL:e.authorEmail??process.env.TBOX_GIT_AUTHOR_EMAIL??`codingbox@tbox.cn`,GIT_COMMITTER_NAME:e.authorName??process.env.TBOX_GIT_AUTHOR_NAME??`CodingBox`,GIT_COMMITTER_EMAIL:e.authorEmail??process.env.TBOX_GIT_AUTHOR_EMAIL??`codingbox@tbox.cn`}}function u(e,r){if(e===void 0||e.length===0)return{kind:`skipped`,reason:`no-cwd`};if(r.enabled!==!0)return{kind:`skipped`,reason:`disabled`};if(n(t(e,`.git`,`TBOX_INIT_IN_PROGRESS`)))return{kind:`skipped`,reason:`init-in-progress`}}async function d(e,t,n,r){let i=n.remote??`origin`,a=n.branch,o=n.push===!1?[]:a===void 0?[`push`]:[`push`,i,a];if(o.length!==0)try{await e(o,t,r);return}catch{await e([`push`,i,`HEAD`],t,r)}}async function f(e){let{cwd:t,config:n}=e;await d(e.git??c,t,n,l(n))}async function p(e){let{cwd:t,config:n}=e,r=u(t,n);if(r!==void 0)return r;let i=e.git??c,a=l(n);if((await i([`status`,`--porcelain`],t,a)).stdout.trim().length===0)return{kind:`noop`};await i([`add`,`-A`],t,a);let o=n.commitMessage??`chore: auto-commit at ${(e.now??(()=>new Date))().toISOString()}`;await i([`commit`,`--no-verify`,`-m`,o],t,a);try{return await d(i,t,n,a),{kind:`committed`,pushed:n.push!==!1,commit:o}}catch(e){return{kind:`push-failed`,commit:o,error:e instanceof Error?e.message:String(e)}}}function m(e,t={}){let n=s.parse(t),r=n.maxAttempts??3,i=n.pendingRetryMs??3e4,a=new Map,o=new Set,c=e.logger,l=async t=>{let a=!1,s;for(let l=1;l<=r;l++)try{if(a){await f({cwd:t,config:n}),o.delete(t),e.emit?.(`tboxcode/git_push`,{cwd:t,ok:!0,...s===void 0?{}:{commit:s},attempt:l});return}let u=await p({cwd:t,config:n});if(u.kind===`push-failed`){if(o.add(t),s=u.commit,a=!0,e.emit?.(`tboxcode/git_push`,{cwd:t,ok:!1,error:u.error,attempt:l}),c?.warn(`[tboxcode-auto-commit] push failed (${t}): ${u.error}`),l<r){await new Promise(e=>setTimeout(e,l*i));continue}return}o.delete(t),u.kind===`committed`&&e.emit?.(`tboxcode/git_push`,{cwd:t,ok:!0,commit:u.commit});return}catch(e){if(c?.warn(`[tboxcode-auto-commit] attempt ${l} failed: ${e instanceof Error?e.message:String(e)}`),l>=r)return;await new Promise(e=>setTimeout(e,l*i))}},d=e=>{if(a.has(e))return;let t=l(e).catch(e=>c?.warn(`[tboxcode-auto-commit] ${e instanceof Error?e.message:String(e)}`)).finally(()=>a.delete(e));a.set(e,t)};if(e.on(`session/event`,(e,t)=>{if(t.type!==`turn/end`)return;let r=e.header;if(r
|
|
1
|
+
import{z as e}from"zod";import{join as t}from"node:path";import{existsSync as n}from"node:fs";import{execFile as r}from"node:child_process";import{promisify as i}from"node:util";const a=i(r),o=`tboxcode-auto-commit`,s=e.object({enabled:e.boolean().optional(),push:e.boolean().optional(),remote:e.string().optional(),branch:e.string().optional(),commitMessage:e.string().optional(),pendingRetryMs:e.number().int().positive().optional(),authorName:e.string().optional(),authorEmail:e.string().optional(),maxAttempts:e.number().int().min(1).max(10).optional()}),c=async(e,t,n)=>{let r=await a(`git`,[...e],{cwd:t,env:{...process.env,...n},maxBuffer:16*1024*1024});return{stdout:r.stdout,stderr:r.stderr}};function l(e){return{GIT_AUTHOR_NAME:e.authorName??process.env.TBOX_GIT_AUTHOR_NAME??`CodingBox`,GIT_AUTHOR_EMAIL:e.authorEmail??process.env.TBOX_GIT_AUTHOR_EMAIL??`codingbox@tbox.cn`,GIT_COMMITTER_NAME:e.authorName??process.env.TBOX_GIT_AUTHOR_NAME??`CodingBox`,GIT_COMMITTER_EMAIL:e.authorEmail??process.env.TBOX_GIT_AUTHOR_EMAIL??`codingbox@tbox.cn`}}function u(e,r){if(e===void 0||e.length===0)return{kind:`skipped`,reason:`no-cwd`};if(r.enabled!==!0)return{kind:`skipped`,reason:`disabled`};if(n(t(e,`.git`,`TBOX_INIT_IN_PROGRESS`)))return{kind:`skipped`,reason:`init-in-progress`}}async function d(e,t,n,r){let i=n.remote??`origin`,a=n.branch,o=n.push===!1?[]:a===void 0?[`push`]:[`push`,i,a];if(o.length!==0)try{await e(o,t,r);return}catch{await e([`push`,i,`HEAD`],t,r)}}async function f(e){let{cwd:t,config:n}=e;await d(e.git??c,t,n,l(n))}async function p(e){let{cwd:t,config:n}=e,r=u(t,n);if(r!==void 0)return r;let i=e.git??c,a=l(n);if((await i([`status`,`--porcelain`],t,a)).stdout.trim().length===0)return{kind:`noop`};await i([`add`,`-A`],t,a);let o=n.commitMessage??`chore: auto-commit at ${(e.now??(()=>new Date))().toISOString()}`;await i([`commit`,`--no-verify`,`-m`,o],t,a);try{return await d(i,t,n,a),{kind:`committed`,pushed:n.push!==!1,commit:o}}catch(e){return{kind:`push-failed`,commit:o,error:e instanceof Error?e.message:String(e)}}}function m(e){return e?.origin===`subagent`||e?.parentSession!==void 0||e?.isSeeded===!0}function h(e,t={}){let n=s.parse(t),r=n.maxAttempts??3,i=n.pendingRetryMs??3e4,a=new Map,o=new Set,c=e.logger,l=async t=>{let a=!1,s;for(let l=1;l<=r;l++)try{if(a){await f({cwd:t,config:n}),o.delete(t),e.emit?.(`tboxcode/git_push`,{cwd:t,ok:!0,...s===void 0?{}:{commit:s},attempt:l});return}let u=await p({cwd:t,config:n});if(u.kind===`push-failed`){if(o.add(t),s=u.commit,a=!0,e.emit?.(`tboxcode/git_push`,{cwd:t,ok:!1,error:u.error,attempt:l}),c?.warn(`[tboxcode-auto-commit] push failed (${t}): ${u.error}`),l<r){await new Promise(e=>setTimeout(e,l*i));continue}return}o.delete(t),u.kind===`committed`&&e.emit?.(`tboxcode/git_push`,{cwd:t,ok:!0,commit:u.commit});return}catch(e){if(c?.warn(`[tboxcode-auto-commit] attempt ${l} failed: ${e instanceof Error?e.message:String(e)}`),l>=r)return;await new Promise(e=>setTimeout(e,l*i))}},d=e=>{if(a.has(e))return;let t=l(e).catch(e=>c?.warn(`[tboxcode-auto-commit] ${e instanceof Error?e.message:String(e)}`)).finally(()=>a.delete(e));a.set(e,t)};if(e.on(`session/event`,(e,t)=>{if(t.type!==`turn/end`)return;let r=e.header;if(m(r))return;let i=r?.cwd;i!==void 0&&u(i,n)===void 0&&d(i)}),n.enabled===!0)for(let e of o)d(e);return()=>{a.clear(),o.clear()}}export{f as a,o as i,c as n,p as o,m as r,u as s,h as t};
|
|
@@ -47,6 +47,16 @@ declare function pushOnly(options: Omit<RunAutoCommitOptions, 'config'> & {
|
|
|
47
47
|
}): Promise<void>;
|
|
48
48
|
/** 一次 turn/end 的自动提交(纯函数;测试注入 git runner)。 */
|
|
49
49
|
declare function runAutoCommit(options: RunAutoCommitOptions): Promise<AutoCommitOutcome>;
|
|
50
|
+
interface SessionLike {
|
|
51
|
+
readonly header?: {
|
|
52
|
+
readonly cwd?: string;
|
|
53
|
+
readonly origin?: string;
|
|
54
|
+
readonly parentSession?: string;
|
|
55
|
+
readonly isSeeded?: boolean;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
/** fork 会话判定(0.2.2 fork 不再写 parentSession——isSeeded 是当前标记)。 */
|
|
59
|
+
declare function isForkedSession(header: SessionLike['header']): boolean;
|
|
50
60
|
declare function apply(ctx: Context, config?: Config): () => void;
|
|
51
61
|
//#endregion
|
|
52
|
-
export { RunAutoCommitOptions as a,
|
|
62
|
+
export { RunAutoCommitOptions as a, isForkedSession as c, runAutoCommit as d, shouldSkip as f, GitRunner as i, name as l, Config as n, apply as o, GitResult as r, defaultGitRunner as s, AutoCommitOutcome as t, pushOnly as u };
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as runAutoCommit, f as shouldSkip, l as name, n as Config, o as apply, t as AutoCommitOutcome, u as pushOnly } from "./index-BQenc8vl.js";
|
|
2
2
|
import { i as name$5, n as apply$5 } from "./index-Bb9goxWJ.js";
|
|
3
3
|
import { i as collectCwdUpSkillRoots, n as TBOXCODE_SKILL_RANK, o as name$4, r as apply$4 } from "./index-C_e95eAG.js";
|
|
4
4
|
import { i as name$2, n as apply$2 } from "./index-D8NxTQT6.js";
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,l as r,o as i,r as a,s as o,t as s,u as c}from"./webfetch-CXvjRbDU.js";import{a as l,c as u,n as d,o as f,r as p,s as m,t as h}from"./skill-provider-DenqO0Yu.js";import{r as g,t as _}from"./restrict-CldLToKG.js";import{a as v,c as y,n as b,o as x,r as S,s as C,t as w}from"./pre-execute-
|
|
1
|
+
import{a as e,c as t,i as n,l as r,o as i,r as a,s as o,t as s,u as c}from"./webfetch-CXvjRbDU.js";import{a as l,c as u,n as d,o as f,r as p,s as m,t as h}from"./skill-provider-DenqO0Yu.js";import{r as g,t as _}from"./restrict-CldLToKG.js";import{a as v,c as y,n as b,o as x,r as S,s as C,t as w}from"./pre-execute-B-q9jTVv.js";import{a as T,i as E,o as D,s as O,t as k}from"./auto-commit-BEFnS23Y.js";import{a as A,c as j,i as M,o as N,s as P,t as F}from"./scratch-ak4Wn8Xe.js";export{w as DEFAULT_MCP_DENY_PATTERNS,f as MAX_SKILL_DESC,h as TBOXCODE_SKILL_RANK,n as TRUNCATE_MAX_BYTES,e as TRUNCATE_MAX_LINES,k as autoCommitApply,E as autoCommitName,p as collectCwdUpSkillRoots,S as collectExecutionPaths,i as detectRedirect,o as executeWebfetch,t as extractTextFromHTML,m as formatSkillDesc,v as matchDenyPath,x as matchesMcpDenyPattern,u as parseSkillFile,b as preExecuteApply,C as preExecuteName,T as pushOnly,r as readLimitedResponse,A as resolveScratchPath,y as resolveToolPermission,N as resolveWithSessionCwd,_ as restrictApply,g as restrictName,D as runAutoCommit,F as scratchApply,P as scratchDirFor,M as scratchName,j as scratchPolicy,O as shouldSkip,d as skillProviderApply,l as skillProviderName,c as truncateOutput,s as webfetchApply,a as webfetchName};
|
package/lib/pre-execute/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"../pre-execute-
|
|
1
|
+
import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"../pre-execute-B-q9jTVv.js";export{s as DEFAULT_MCP_DENY_PATTERNS,r as apply,a as collectExecutionPaths,n as inject,e as matchDenyPath,i as matchesMcpDenyPattern,o as name,t as resolveToolPermission};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as e}from"zod";import{homedir as t}from"node:os";import{isAbsolute as n,join as r,resolve as i,sep as a}from"node:path";import{existsSync as o,realpathSync as s}from"node:fs";const c=`tboxcode-pre-execute`,l=[`tools`],u=e.enum([`allow`,`ask`,`deny`]),d=e.object({permission:e.record(e.string(),u).optional(),mcpDenyPatterns:e.array(e.string()).optional(),denyPaths:e.array(e.string()).optional()}),f=[`_write`,`_create`,`_update`,`_delete`,`_remove`,`_patch`,`_modify`,`_rename`,`_move`,`_copy`,`_upload`,`_send`,`_deploy`,`_publish`,`_commit`,`_push`,`_post`,`_put`,`_insert`,`_replace`];function p(e,t,n){if(t===void 0)return;let r=t[e];if(r!==void 0)return r;let i=-1,a;for(let n of Object.keys(t))if(n.endsWith(`_*`)){let r=n.slice(0,-2);e.startsWith(`${r}_`)&&r.length>i&&(i=r.length,a=t[n])}if(a!==void 0)return a;if(n!==void 0&&n.length>0){for(let e of n){let n=t[e];if(n!==void 0)return n}for(let e of Object.keys(t))if(e.endsWith(`:*`)){let r=e.slice(0,-2);for(let i of n)if(i.startsWith(`${r}:`))return t[e]}}return t[`*`]}function m(e,t){if(!e.startsWith(`mcp__`))return!1;let n=new Set(e.split(`_`));for(let r of t){if(r===e)return!0;let t=r.startsWith(`_`)?r.slice(1):r;if(t.length>0&&n.has(t))return!0}return!1}const h=new Set([`path`,`paths`,`file`,`files`,`file_path`,`filePath`,`target`,`targetPath`,`workdir`,`cwd`,`directory`,`dir`,`location`,`source`,`destination`]);function g(e,a){let c=e.trim();if(c.length===0)return;let l=c===`~`?t():c.startsWith(`~/`)?r(t(),c.slice(2)):c,u=n(l)?i(l):i(a,l);try{return o(u)?s(u):u}catch{return u}}function _(e){let t=e.replace(/\/+$/,``)||`/`;if(t===`/`)return e=>e.startsWith(`/`);if(!t.includes(`*`))return e=>e===t||e.startsWith(t+a);let n=t.replace(/[.+?^${}()|[\]\\]/g,`\\$&`),r=RegExp(`^${n.replace(/\*\*/g,`.*`).replace(/\*/g,`[^/]*`)}(?:/|$)`);return e=>r.test(e)}function v(e,t){let n=[],r=(t,i,a)=>{if(!(a>6||t==null)){if(typeof t==`string`){i!==void 0&&h.has(i)&&n.push(t);return}if(Array.isArray(t)){for(let e of t)r(e,i,a+1);return}if(typeof t==`object`)for(let[i,o]of Object.entries(t)){if(i===`command`&&typeof o==`string`&&(e===`bash`||e===`scratch_bash`)){for(let e of o.split(/\s+/)){let t=e.replace(/^['"]|['"]$/g,``);(t.startsWith(`~`)||t.includes(`/`))&&n.push(t)}continue}r(o,i,a+1)}}};return r(t,void 0,0),n}function y(e,t,n){let r=g(e,n);if(r!==void 0)for(let e of t){let t=g(e,n);if(t!==void 0&&_(t)(r))return e}}function b(e){let t=e.agent?.session?.header;return typeof t?.cwd==`string`&&t.cwd.length>0?t.cwd:process.cwd()}function x(e,t={}){let n=d.parse(t),r=n.permission,i=n.denyPaths??[],a=n.mcpDenyPatterns??f
|
|
1
|
+
import{z as e}from"zod";import{homedir as t}from"node:os";import{isAbsolute as n,join as r,resolve as i,sep as a}from"node:path";import{existsSync as o,realpathSync as s}from"node:fs";const c=`tboxcode-pre-execute`,l=[`tools`],u=e.enum([`allow`,`ask`,`deny`]),d=e.object({permission:e.record(e.string(),u).optional(),mcpDenyPatterns:e.array(e.string()).optional(),denyPaths:e.array(e.string()).optional()}),f=[`_write`,`_create`,`_update`,`_delete`,`_remove`,`_patch`,`_modify`,`_rename`,`_move`,`_copy`,`_upload`,`_send`,`_deploy`,`_publish`,`_commit`,`_push`,`_post`,`_put`,`_insert`,`_replace`];function p(e,t,n){if(t===void 0)return;let r=t[e];if(r!==void 0)return r;let i=-1,a;for(let n of Object.keys(t))if(n.endsWith(`_*`)){let r=n.slice(0,-2);e.startsWith(`${r}_`)&&r.length>i&&(i=r.length,a=t[n])}if(a!==void 0)return a;if(n!==void 0&&n.length>0){for(let e of n){let n=t[e];if(n!==void 0)return n}for(let e of Object.keys(t))if(e.endsWith(`:*`)){let r=e.slice(0,-2);for(let i of n)if(i.startsWith(`${r}:`))return t[e]}}return t[`*`]}function m(e,t){if(!e.startsWith(`mcp__`))return!1;let n=new Set(e.split(`_`));for(let r of t){if(r===e)return!0;let t=r.startsWith(`_`)?r.slice(1):r;if(t.length>0&&n.has(t))return!0}return!1}const h=new Set([`path`,`paths`,`file`,`files`,`file_path`,`filePath`,`target`,`targetPath`,`workdir`,`cwd`,`directory`,`dir`,`location`,`source`,`destination`]);function g(e,a){let c=e.trim();if(c.length===0)return;let l=c===`~`?t():c.startsWith(`~/`)?r(t(),c.slice(2)):c,u=n(l)?i(l):i(a,l);try{return o(u)?s(u):u}catch{return u}}function _(e){let t=e.replace(/\/+$/,``)||`/`;if(t===`/`)return e=>e.startsWith(`/`);if(!t.includes(`*`))return e=>e===t||e.startsWith(t+a);let n=t.replace(/[.+?^${}()|[\]\\]/g,`\\$&`),r=RegExp(`^${n.replace(/\*\*/g,`.*`).replace(/\*/g,`[^/]*`)}(?:/|$)`);return e=>r.test(e)}function v(e,t){let n=[],r=(t,i,a)=>{if(!(a>6||t==null)){if(typeof t==`string`){i!==void 0&&h.has(i)&&n.push(t);return}if(Array.isArray(t)){for(let e of t)r(e,i,a+1);return}if(typeof t==`object`)for(let[i,o]of Object.entries(t)){if(i===`command`&&typeof o==`string`&&(e===`bash`||e===`scratch_bash`)){for(let e of o.split(/\s+/)){let t=e.replace(/^['"]|['"]$/g,``);(t.startsWith(`~`)||t.includes(`/`))&&n.push(t)}continue}r(o,i,a+1)}}};return r(t,void 0,0),n}function y(e,t,n){let r=g(e,n);if(r!==void 0)for(let e of t){let t=g(e,n);if(t!==void 0&&_(t)(r))return e}}function b(e){let t=e.agent?.session?.header;return typeof t?.cwd==`string`&&t.cwd.length>0?t.cwd:process.cwd()}function x(e,t={}){let n=d.parse(t),r=n.permission,i=n.denyPaths??[],a=n.mcpDenyPatterns??f;return e.on(`tools/pre-execute`,async(t,n)=>{if(i.length>0){let e=b(t);for(let n of v(t.name,t.arguments)){let t=y(n,i,e);if(t!==void 0)return{kind:`deny`,reason:`Path '${n}' is denied by the security configuration (matched '${t}'). Do not retry this path; use an allowed location or ask the user.`}}}if(p(t.name,r)===`deny`)return{kind:`deny`,reason:`Tool '${t.name}' is denied by the permission configuration. Do not retry this tool; use an alternative approach or ask the user.`};let o=e.get(`sandboxPolicy`);if(o!==void 0&&t.agent!==void 0)try{if(o.resolve({session:t.agent.session})?.mode===`read-only`&&m(t.name,a))return{kind:`deny`,reason:`Plan mode is active (read-only): the MCP tool '${t.name}' may modify external systems, so it is blocked. Record the intended action in the plan instead, or ask the user to switch to build mode to execute it.`}}catch{}return n()}),()=>{}}export{y as a,p as c,l as i,x as n,m as o,v as r,c as s,f as t};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/tboxcode-dsh-tools",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "tboxcode 工具插件族:webfetch(截断链三分支)/ skill provider(rank 50 cwd-up)/ restrict / pre-execute 拦截器 / scratch 三件",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"lib"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@deepseek-ai/dsh-tools": "0.2.
|
|
42
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"htmlparser2": "^10.0.0",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"zod": "4.6.7"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@deepseek-ai/cordis": "4.0
|
|
52
|
-
"@deepseek-ai/dsh-shell": "0.2.
|
|
53
|
-
"@deepseek-ai/dsh-tools": "0.2.
|
|
51
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
52
|
+
"@deepseek-ai/dsh-shell": "0.2.2-rc.1",
|
|
53
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1",
|
|
54
54
|
"@types/turndown": "^5.0.5"
|
|
55
55
|
},
|
|
56
56
|
"dsh": {
|