@wrongstack/tools 0.277.1 → 0.280.0
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/bash.js +2 -2
- package/dist/bash.js.map +1 -1
- package/dist/builtin.js +314 -15
- package/dist/builtin.js.map +1 -1
- package/dist/codebase-index/index.js +12 -11
- package/dist/codebase-index/index.js.map +1 -1
- package/dist/codebase-index/worker.js +12 -11
- package/dist/codebase-index/worker.js.map +1 -1
- package/dist/exec-Ca3fnpUh.d.ts +121 -0
- package/dist/exec.d.ts +2 -39
- package/dist/exec.js +322 -11
- package/dist/exec.js.map +1 -1
- package/dist/index.d.ts +46 -3
- package/dist/index.js +629 -153
- package/dist/index.js.map +1 -1
- package/dist/install.js.map +1 -1
- package/dist/json.js +0 -1
- package/dist/json.js.map +1 -1
- package/dist/logs.js.map +1 -1
- package/dist/pack.js +314 -15
- package/dist/pack.js.map +1 -1
- package/dist/scaffold.js.map +1 -1
- package/dist/tool-icons.js +6 -6
- package/dist/tool-icons.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ export { replaceTool } from './replace.js';
|
|
|
5
5
|
export { globTool } from './glob.js';
|
|
6
6
|
export { grepTool } from './grep.js';
|
|
7
7
|
export { bashTool } from './bash.js';
|
|
8
|
-
export { configureExecPolicy, execTool, getExecAllowlist, isExecCommandAllowed, resetExecPolicy } from './exec.js';
|
|
8
|
+
export { D as DangerAssessment, a as DangerLevel, c as configureDangerBypass, b as configureExecPolicy, d as detectDanger, e as execTool, g as getDangerBypass, f as getExecAllowlist, i as isExecCommandAllowed, r as resetDangerBypass, h as resetExecPolicy } from './exec-Ca3fnpUh.js';
|
|
9
9
|
export { fetchTool } from './fetch.js';
|
|
10
10
|
export { searchTool } from './search.js';
|
|
11
11
|
export { todoTool } from './todo.js';
|
|
12
|
-
import { Tool } from '@wrongstack/core';
|
|
12
|
+
import { Tool, SkillLoader } from '@wrongstack/core';
|
|
13
13
|
export { gitTool } from './git.js';
|
|
14
14
|
export { patchTool } from './patch.js';
|
|
15
15
|
export { jsonTool } from './json.js';
|
|
@@ -237,6 +237,49 @@ interface DesignOutput {
|
|
|
237
237
|
*/
|
|
238
238
|
declare const designTool: Tool<DesignInput, DesignOutput>;
|
|
239
239
|
|
|
240
|
+
interface SkillToolInput {
|
|
241
|
+
name: string;
|
|
242
|
+
/** Optional relative path of a bundled resource to load (e.g. `references/REF.md`, `scripts/extract.py`, `assets/template.html`). Omit to list resources. */
|
|
243
|
+
resource?: string | undefined;
|
|
244
|
+
}
|
|
245
|
+
interface SkillResource {
|
|
246
|
+
/** Path relative to the skill directory (e.g. `scripts/extract.py`). */
|
|
247
|
+
path: string;
|
|
248
|
+
bytes: number;
|
|
249
|
+
}
|
|
250
|
+
interface LoadedResource {
|
|
251
|
+
rel: string;
|
|
252
|
+
absPath: string;
|
|
253
|
+
content: string;
|
|
254
|
+
bytes: number;
|
|
255
|
+
truncated: boolean;
|
|
256
|
+
}
|
|
257
|
+
interface SkillToolOutput {
|
|
258
|
+
name: string;
|
|
259
|
+
description: string;
|
|
260
|
+
/** Frontmatter-stripped SKILL.md body (capped). */
|
|
261
|
+
body: string;
|
|
262
|
+
/** All bundled resource files (recursive), when no specific resource was requested. */
|
|
263
|
+
resources: SkillResource[];
|
|
264
|
+
/** Absolute directory of the skill — run scripts via bash using paths under here. */
|
|
265
|
+
dir: string;
|
|
266
|
+
/** When `resource` was requested: the loaded file. */
|
|
267
|
+
loadedResource?: LoadedResource | undefined;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Skill tool — the agentskills.io progressive-disclosure primitive.
|
|
271
|
+
*
|
|
272
|
+
* - `skill({ name })` → SKILL.md body + a recursive listing of every bundled
|
|
273
|
+
* resource file (scripts/ references/ assets/ templates/ … any subdir).
|
|
274
|
+
* - `skill({ name, resource })` → the content of that one resource file.
|
|
275
|
+
*
|
|
276
|
+
* Use this (not the `read` tool) to load skill resources: it works for foreign
|
|
277
|
+
* skills that live outside the project root (e.g. `~/.claude/skills/…`), which
|
|
278
|
+
* a project-root-restricted `read` tool may refuse. Scripts are returned with
|
|
279
|
+
* their absolute path so the agent can run them via `bash`.
|
|
280
|
+
*/
|
|
281
|
+
declare function makeSkillTool(skillLoader: SkillLoader): Tool<SkillToolInput, SkillToolOutput>;
|
|
282
|
+
|
|
240
283
|
/**
|
|
241
284
|
* PersistentProcessRegistry — filesystem-backed process registry that survives
|
|
242
285
|
* process restarts and coordinates protection across multiple WrongStack instances
|
|
@@ -595,4 +638,4 @@ declare const TOOL_ICON_CONFIG: Record<ToolIconId, ToolIconConfig>;
|
|
|
595
638
|
*/
|
|
596
639
|
declare const FALLBACK_ICON: ToolIconId;
|
|
597
640
|
|
|
598
|
-
export { type BashShell, type EnsureSessionShellOptions, FALLBACK_ICON, type GlobalProcessStatus, type InstanceInfo, type InstanceListOptions, type PersistentProcessEntry, type PersistentRegistryData, type ProcessGuardianConfig, ProcessRegistryImpl, type ResolveSessionShellDeps, TOOL_ICON_CONFIG, TOOL_ICON_MAP, type ToolIconConfig, type ToolIconId, createGlobalPsSlashCommand, designTool, ensureSessionShell, formatGlobalStatus, formatInstanceList, formatInstanceSummary, getInstanceCount, getPersistentProcessRegistry, getProcessGuardian, getToolIcon, listInstances, normalizeShell, planTool, resetPersistentProcessRegistry, resolveSessionShell, startProcessGuardian, stopProcessGuardian };
|
|
641
|
+
export { type BashShell, type EnsureSessionShellOptions, FALLBACK_ICON, type GlobalProcessStatus, type InstanceInfo, type InstanceListOptions, type PersistentProcessEntry, type PersistentRegistryData, type ProcessGuardianConfig, ProcessRegistryImpl, type ResolveSessionShellDeps, TOOL_ICON_CONFIG, TOOL_ICON_MAP, type ToolIconConfig, type ToolIconId, createGlobalPsSlashCommand, designTool, ensureSessionShell, formatGlobalStatus, formatInstanceList, formatInstanceSummary, getInstanceCount, getPersistentProcessRegistry, getProcessGuardian, getToolIcon, listInstances, makeSkillTool, normalizeShell, planTool, resetPersistentProcessRegistry, resolveSessionShell, startProcessGuardian, stopProcessGuardian };
|