@wrongstack/tools 0.260.0 → 0.265.1
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/audit.js +154 -10
- package/dist/audit.js.map +1 -1
- package/dist/bash.js +138 -2
- package/dist/bash.js.map +1 -1
- package/dist/batch-tool-use.js +1 -0
- package/dist/batch-tool-use.js.map +1 -1
- package/dist/builtin.d.ts +20 -1
- package/dist/builtin.js +674 -333
- package/dist/builtin.js.map +1 -1
- package/dist/circuit-breaker.d.ts +20 -0
- package/dist/circuit-breaker.js +40 -2
- package/dist/circuit-breaker.js.map +1 -1
- package/dist/codebase-index/index.d.ts +16 -0
- package/dist/codebase-index/index.js +62 -27
- package/dist/codebase-index/index.js.map +1 -1
- package/dist/codebase-index/worker.js +59 -27
- package/dist/codebase-index/worker.js.map +1 -1
- package/dist/diff.js +14 -6
- package/dist/diff.js.map +1 -1
- package/dist/document.js +18 -11
- package/dist/document.js.map +1 -1
- package/dist/edit.js +22 -14
- package/dist/edit.js.map +1 -1
- package/dist/exec.js +140 -3
- package/dist/exec.js.map +1 -1
- package/dist/fetch.d.ts +19 -1
- package/dist/fetch.js +2 -1
- package/dist/fetch.js.map +1 -1
- package/dist/format.js +153 -10
- package/dist/format.js.map +1 -1
- package/dist/git.js +1 -0
- package/dist/git.js.map +1 -1
- package/dist/glob.js +14 -6
- package/dist/glob.js.map +1 -1
- package/dist/grep.js +14 -6
- package/dist/grep.js.map +1 -1
- package/dist/index.d.ts +55 -3
- package/dist/index.js +833 -336
- package/dist/index.js.map +1 -1
- package/dist/install.js +154 -10
- package/dist/install.js.map +1 -1
- package/dist/json.js +2 -0
- package/dist/json.js.map +1 -1
- package/dist/lint.js +153 -10
- package/dist/lint.js.map +1 -1
- package/dist/logs.js +14 -6
- package/dist/logs.js.map +1 -1
- package/dist/memory.js +1 -0
- package/dist/memory.js.map +1 -1
- package/dist/mode.js +1 -0
- package/dist/mode.js.map +1 -1
- package/dist/outdated.js +16 -7
- package/dist/outdated.js.map +1 -1
- package/dist/pack.js +643 -332
- package/dist/pack.js.map +1 -1
- package/dist/patch.js +14 -6
- package/dist/patch.js.map +1 -1
- package/dist/process-registry.d.ts +56 -2
- package/dist/process-registry.js +138 -3
- package/dist/process-registry.js.map +1 -1
- package/dist/read.js +24 -18
- package/dist/read.js.map +1 -1
- package/dist/replace.js +14 -6
- package/dist/replace.js.map +1 -1
- package/dist/scaffold.js +14 -6
- package/dist/scaffold.js.map +1 -1
- package/dist/search.js +3 -3
- package/dist/search.js.map +1 -1
- package/dist/test.js +153 -10
- package/dist/test.js.map +1 -1
- package/dist/todo.js +1 -0
- package/dist/todo.js.map +1 -1
- package/dist/tool-help.js +1 -0
- package/dist/tool-help.js.map +1 -1
- package/dist/tool-icons.d.ts +20 -0
- package/dist/tool-icons.js +130 -0
- package/dist/tool-icons.js.map +1 -0
- package/dist/tool-search.js +1 -0
- package/dist/tool-search.js.map +1 -1
- package/dist/tool-use.js +1 -0
- package/dist/tool-use.js.map +1 -1
- package/dist/tree.js +14 -6
- package/dist/tree.js.map +1 -1
- package/dist/typecheck.js +153 -10
- package/dist/typecheck.js.map +1 -1
- package/dist/write.js +22 -14
- package/dist/write.js.map +1 -1
- package/package.json +6 -2
package/dist/index.d.ts
CHANGED
|
@@ -31,10 +31,10 @@ export { batchToolUseTool } from './batch-tool-use.js';
|
|
|
31
31
|
export { toolHelpTool } from './tool-help.js';
|
|
32
32
|
export { forgetTool, relatedMemoryTool, rememberTool, searchMemoryTool } from './memory.js';
|
|
33
33
|
export { createModeTool } from './mode.js';
|
|
34
|
-
export { KillOpts, RegistryStats, TrackedProcess, _resetProcessRegistry, getProcessRegistry } from './process-registry.js';
|
|
34
|
+
export { BreakerCountdown, KillOpts, ProcessRegistryImpl, RegistryStats, TrackedProcess, _resetProcessRegistry, getProcessRegistry } from './process-registry.js';
|
|
35
35
|
export { CircuitBreaker, CircuitBreakerConfig, CircuitBreakerSnapshot } from './circuit-breaker.js';
|
|
36
36
|
export { C as CircuitOpenError, a as CircuitSnapshot, b as CircuitState, I as IndexCircuitBreaker, c as IndexTimeoutError, d as cancelPendingReindexes, e as codebaseIndexStats, f as codebaseIndexTool, g as codebaseSearchTool, h as codebaseStatsTool, i as enqueueReindex, j as getIndexState, k as indexCircuitBreaker, l as isIndexReady, m as isIndexableFile, n as isIndexing, o as onIndexStateChange, r as resetIndexCircuitBreaker, p as runStartupIndex, s as searchCodebaseIndex, q as shutdownCodebaseIndexHost } from './background-indexer-CJ5JiV5i.js';
|
|
37
|
-
export { OPTIONAL_TOOLS, TIER1_TOOLS, builtinTools } from './builtin.js';
|
|
37
|
+
export { OPTIONAL_TOOLS, TIER1_TOOLS, TIER2_TOOLS, TIER3_TOOLS, builtinTools } from './builtin.js';
|
|
38
38
|
export { builtinToolsPack } from './pack.js';
|
|
39
39
|
import 'node:child_process';
|
|
40
40
|
|
|
@@ -63,6 +63,13 @@ interface PlanInput {
|
|
|
63
63
|
subtasks?: string[] | undefined;
|
|
64
64
|
/** Required for template_use — the template name (e.g. "new-feature", "bug-fix"). */
|
|
65
65
|
template?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Storage scope. Default (unset): uses the session-scoped path — isolated to this
|
|
68
|
+
* session, survives resume within the same session.
|
|
69
|
+
* `scope: 'project'`: uses a shared project-level path, visible to all sessions
|
|
70
|
+
* for this project. Useful for a shared roadmap that outlasts any single session.
|
|
71
|
+
*/
|
|
72
|
+
scope?: 'session' | 'project';
|
|
66
73
|
}
|
|
67
74
|
interface PlanOutput {
|
|
68
75
|
ok: boolean;
|
|
@@ -84,4 +91,49 @@ interface PlanOutput {
|
|
|
84
91
|
}
|
|
85
92
|
declare const planTool: Tool<PlanInput, PlanOutput>;
|
|
86
93
|
|
|
87
|
-
|
|
94
|
+
/**
|
|
95
|
+
* Shared tool icon mapping for all WrongStack UIs (WebUI, TUI, REPL).
|
|
96
|
+
*
|
|
97
|
+
* Each UI renders icons using its own library:
|
|
98
|
+
* - WebUI: lucide-react
|
|
99
|
+
* - TUI: ink icons or text characters
|
|
100
|
+
* - REPL: unicode characters or ASCII art
|
|
101
|
+
*
|
|
102
|
+
* This module exports the canonical tool → icon-name mapping.
|
|
103
|
+
* Add new tools here, never hardcode icon names in UI components.
|
|
104
|
+
*/
|
|
105
|
+
/**
|
|
106
|
+
* Icon identifiers — each UI maps these to its own icon library.
|
|
107
|
+
* Using a common set of identifiers ensures consistency across all surfaces.
|
|
108
|
+
*/
|
|
109
|
+
type ToolIconId = 'file' | 'edit' | 'search' | 'folder' | 'terminal' | 'web' | 'git' | 'tree' | 'code' | 'test' | 'package' | 'document' | 'scaffold' | 'todo' | 'plan' | 'task' | 'meta' | 'index' | 'json' | 'diff' | 'logs' | 'settings' | 'brain' | 'fallback';
|
|
110
|
+
/**
|
|
111
|
+
* Canonical mapping of WrongStack tool names to icon identifiers.
|
|
112
|
+
* Coverage: all 37 built-in tools + common aliases.
|
|
113
|
+
*/
|
|
114
|
+
declare const TOOL_ICON_MAP: Record<string, ToolIconId>;
|
|
115
|
+
/**
|
|
116
|
+
* Get the icon identifier for a tool name.
|
|
117
|
+
* Returns 'fallback' for unknown tools.
|
|
118
|
+
*/
|
|
119
|
+
declare function getToolIcon(toolName: string): ToolIconId;
|
|
120
|
+
/**
|
|
121
|
+
* Icon configuration including color for rendering.
|
|
122
|
+
*/
|
|
123
|
+
interface ToolIconConfig {
|
|
124
|
+
icon: ToolIconId;
|
|
125
|
+
/** CSS color string, e.g. '#6366f1' or 'var(--tool-file)' */
|
|
126
|
+
color: string;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Icon configurations — icon id -> { icon, color }.
|
|
130
|
+
* Each UI applies its own icon library (lucide-react, ink, unicode, etc.)
|
|
131
|
+
* but uses these canonical color values.
|
|
132
|
+
*/
|
|
133
|
+
declare const TOOL_ICON_CONFIG: Record<ToolIconId, ToolIconConfig>;
|
|
134
|
+
/**
|
|
135
|
+
* Default fallback icon for unknown tools.
|
|
136
|
+
*/
|
|
137
|
+
declare const FALLBACK_ICON: ToolIconId;
|
|
138
|
+
|
|
139
|
+
export { FALLBACK_ICON, TOOL_ICON_CONFIG, TOOL_ICON_MAP, type ToolIconConfig, type ToolIconId, getToolIcon, planTool };
|