@wrongstack/tools 0.319.1 → 1.0.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.
Files changed (203) hide show
  1. package/dist/_danger-detect.d.ts +8 -0
  2. package/dist/_syntax-check.d.ts +1 -2
  3. package/dist/audit.d.ts +4 -5
  4. package/dist/audit.js +8 -8
  5. package/dist/auto-proceed-loop-guard.js +9 -160
  6. package/dist/bash-kill-guard.d.ts +2 -3
  7. package/dist/bash.d.ts +2 -3
  8. package/dist/bash.js +6 -6
  9. package/dist/batch-tool-use.d.ts +2 -3
  10. package/dist/batch-tool-use.js +1 -1
  11. package/dist/browser/index.d.ts +1 -1
  12. package/dist/browser/index.js +1 -1
  13. package/dist/browser/tools.d.ts +56 -45
  14. package/dist/builtin.js +55 -55
  15. package/dist/{chunk-RJZQWEMS.js → chunk-24T5XIJU.js} +3 -2
  16. package/dist/{chunk-DTQ75VBC.js → chunk-2CTZW6JQ.js} +2 -2
  17. package/dist/chunk-37QKUQ2Z.js +171 -0
  18. package/dist/{chunk-LOBRWKCR.js → chunk-3D5DJWOE.js} +3 -3
  19. package/dist/{chunk-YOKD4GWJ.js → chunk-4ERMPDHV.js} +14 -8
  20. package/dist/{chunk-5EUJF3WC.js → chunk-4WPBS45A.js} +4 -5
  21. package/dist/{chunk-42BHI7TN.js → chunk-5ITQPCLC.js} +2 -2
  22. package/dist/{chunk-B4HTSV6Z.js → chunk-5KS24LTS.js} +11 -11
  23. package/dist/{chunk-QPNYDH5B.js → chunk-62OAECEQ.js} +29 -7
  24. package/dist/{chunk-IYKXK356.js → chunk-6GOZTS6F.js} +4 -4
  25. package/dist/{chunk-OG2BEUBY.js → chunk-7HL23T3T.js} +73 -16
  26. package/dist/{chunk-HFXSNKCV.js → chunk-7JJFC6CT.js} +1 -1
  27. package/dist/{chunk-TTZOK6IY.js → chunk-7N5U2RAU.js} +2 -2
  28. package/dist/{chunk-QBV725YG.js → chunk-7ODZTPCU.js} +2 -2
  29. package/dist/{chunk-OTINMOKK.js → chunk-AB2CAUOP.js} +66 -55
  30. package/dist/{chunk-6AAOT4PW.js → chunk-AQ5YBURX.js} +16 -4
  31. package/dist/{chunk-JDPQOR7C.js → chunk-ASEXQRA7.js} +19 -19
  32. package/dist/{chunk-FRN7TIAA.js → chunk-B3MGJBFI.js} +1 -1
  33. package/dist/{chunk-IWS56OY7.js → chunk-CGXTR34H.js} +63 -4
  34. package/dist/{chunk-IU4DV2PA.js → chunk-CHEK3ASV.js} +6 -3
  35. package/dist/{chunk-GOIZNNOA.js → chunk-DJYLI7EW.js} +1 -1
  36. package/dist/{chunk-CFLJFDYV.js → chunk-DK4J2WMH.js} +14 -11
  37. package/dist/{chunk-ZHH3BEWU.js → chunk-DRRY6SCM.js} +49 -22
  38. package/dist/{chunk-BK732J7I.js → chunk-FBUP524S.js} +4 -4
  39. package/dist/{chunk-WHIIIREL.js → chunk-FVM3O4JQ.js} +7 -3
  40. package/dist/chunk-FYDBUVQD.js +244 -0
  41. package/dist/{chunk-UDVKRX5R.js → chunk-GDDXX27P.js} +50 -50
  42. package/dist/{chunk-O44IMQCN.js → chunk-GKSG5CPH.js} +6 -6
  43. package/dist/{chunk-3PVYQFRQ.js → chunk-HDYUBRMF.js} +5 -3
  44. package/dist/{chunk-ELRRTWNP.js → chunk-IXIS7RSG.js} +2 -2
  45. package/dist/{chunk-X5FOFGXX.js → chunk-IYH4OHBP.js} +6 -6
  46. package/dist/{chunk-MNP3GE7H.js → chunk-JDOO4P6Z.js} +21 -16
  47. package/dist/{chunk-BSJSNVGA.js → chunk-KDEXUQY7.js} +24 -11
  48. package/dist/{chunk-V43EQ6VR.js → chunk-KE7A76VC.js} +3 -2
  49. package/dist/{chunk-2OXHS3KZ.js → chunk-KLJZ4WV4.js} +4 -3
  50. package/dist/{chunk-3M7LLN7W.js → chunk-LQSOU63Z.js} +12 -11
  51. package/dist/{chunk-DC4KMPJO.js → chunk-M6UV67BH.js} +2 -2
  52. package/dist/{chunk-C2DQKVLO.js → chunk-MJSJWXBF.js} +1 -1
  53. package/dist/{chunk-RNWUCZ2U.js → chunk-MK2JK35J.js} +29 -12
  54. package/dist/{chunk-FQZOHLG3.js → chunk-MSOAX3GC.js} +3 -2
  55. package/dist/{chunk-KY4PXYSO.js → chunk-N3K2SFEI.js} +534 -494
  56. package/dist/{chunk-EADULOZV.js → chunk-NJX2RXKJ.js} +50 -7
  57. package/dist/{chunk-AKHYMB4V.js → chunk-NN2SNP2R.js} +6 -6
  58. package/dist/{chunk-CMOUCKGC.js → chunk-NU2IZ72J.js} +6 -6
  59. package/dist/{chunk-RLMX75EM.js → chunk-O6BY43ZB.js} +29 -8
  60. package/dist/{chunk-NKNOBUBU.js → chunk-PVCB7RUZ.js} +2 -2
  61. package/dist/{chunk-UQQS3VNT.js → chunk-QA6IASYX.js} +8 -8
  62. package/dist/{chunk-VPALDFYM.js → chunk-RV7BVTDG.js} +1 -1
  63. package/dist/chunk-S57CDR2H.js +288 -0
  64. package/dist/{chunk-2VSZC6QM.js → chunk-SCMRM6NL.js} +6 -4
  65. package/dist/{chunk-W2CECGTG.js → chunk-SMARDKAC.js} +1 -1
  66. package/dist/{chunk-45JPRMC2.js → chunk-SOR7OCYP.js} +7 -3
  67. package/dist/{chunk-ATSKPZUK.js → chunk-T3SMFF5Q.js} +11 -5
  68. package/dist/{chunk-4BHUSMNL.js → chunk-UI3ZJIG3.js} +1 -1
  69. package/dist/{chunk-WXJY3BKV.js → chunk-VBF2YXUW.js} +2 -2
  70. package/dist/{chunk-FQNXYA6W.js → chunk-VU3QBYL4.js} +36 -5
  71. package/dist/{chunk-IIF5HIVF.js → chunk-VVZPQPTY.js} +2 -2
  72. package/dist/{chunk-VD2LV5WO.js → chunk-VZGPASGD.js} +37 -12
  73. package/dist/{chunk-64VIJPFV.js → chunk-WEEVSWQB.js} +17 -6
  74. package/dist/chunk-XXRMF2BC.js +186 -0
  75. package/dist/{chunk-RTZWBNTY.js → chunk-YEISRT4S.js} +7 -12
  76. package/dist/{chunk-Q5JPPCZC.js → chunk-YJTXRH5Y.js} +3 -2
  77. package/dist/{chunk-GMZYW52L.js → chunk-YULVUTK5.js} +6 -3
  78. package/dist/{chunk-NWZ6XGBJ.js → chunk-ZBMANLYH.js} +5 -3
  79. package/dist/{chunk-DP6CXMJZ.js → chunk-ZTCJCYLN.js} +3 -3
  80. package/dist/circuit-breaker.d.ts +1 -0
  81. package/dist/circuit-breaker.js +1 -1
  82. package/dist/clarify.d.ts +1 -0
  83. package/dist/codebase-index/codebase-ast-replace-tool.d.ts +2 -3
  84. package/dist/codebase-index/codebase-impact-analysis-tool.d.ts +5 -4
  85. package/dist/codebase-index/codebase-incoming-calls-tool.d.ts +4 -3
  86. package/dist/codebase-index/codebase-index-tool.d.ts +2 -3
  87. package/dist/codebase-index/codebase-invariant-check-tool.d.ts +2 -3
  88. package/dist/codebase-index/codebase-outgoing-calls-tool.d.ts +4 -3
  89. package/dist/codebase-index/codebase-repo-map-tool.d.ts +2 -3
  90. package/dist/codebase-index/codebase-search-tool.d.ts +2 -3
  91. package/dist/codebase-index/codebase-skeleton-tool.d.ts +2 -3
  92. package/dist/codebase-index/codebase-stats-tool.d.ts +9 -3
  93. package/dist/codebase-index/codebase-targeted-test-tool.d.ts +4 -3
  94. package/dist/codebase-index/index.d.ts +11 -11
  95. package/dist/codebase-index/index.js +12 -12
  96. package/dist/codebase-index/parser-worker-script.js +3 -3
  97. package/dist/codebase-index/project-server-framing.d.ts +29 -0
  98. package/dist/codebase-index/project-server-lifecycle.d.ts +20 -0
  99. package/dist/codebase-index/project-server-operations.d.ts +37 -0
  100. package/dist/codebase-index/project-server-types.d.ts +30 -0
  101. package/dist/codebase-index/project-server-watcher.d.ts +25 -0
  102. package/dist/codebase-index/project-server.js +451 -394
  103. package/dist/codebase-index/worker.js +5 -5
  104. package/dist/codebase-index/writer-init.d.ts +13 -0
  105. package/dist/codebase-index/writer-maintenance.d.ts +14 -0
  106. package/dist/codebase-index/writer.d.ts +0 -15
  107. package/dist/design.d.ts +2 -2
  108. package/dist/design.js +1 -1
  109. package/dist/diff.d.ts +4 -4
  110. package/dist/diff.js +2 -2
  111. package/dist/document.d.ts +3 -4
  112. package/dist/document.js +1 -1
  113. package/dist/e2e.d.ts +1 -1
  114. package/dist/e2e.js +1 -1
  115. package/dist/edit.d.ts +3 -3
  116. package/dist/edit.js +9 -9
  117. package/dist/exec.d.ts +2 -3
  118. package/dist/exec.js +6 -6
  119. package/dist/fetch.d.ts +4 -3
  120. package/dist/fetch.js +1 -1
  121. package/dist/format.d.ts +17 -45
  122. package/dist/format.js +14 -10
  123. package/dist/git.d.ts +3 -3
  124. package/dist/git.js +1 -1
  125. package/dist/glob.d.ts +2 -3
  126. package/dist/glob.js +3 -3
  127. package/dist/{go-parser-IKHW67WE.js → go-parser-D7ELWQ7F.js} +2 -2
  128. package/dist/grep.d.ts +7 -5
  129. package/dist/grep.js +4 -4
  130. package/dist/index.d.ts +54 -45
  131. package/dist/index.js +122 -63
  132. package/dist/install.d.ts +7 -55
  133. package/dist/install.js +8 -8
  134. package/dist/{json-parser-2EOVP5MR.js → json-parser-34DHYCPW.js} +1 -18
  135. package/dist/json.d.ts +3 -4
  136. package/dist/json.js +2 -2
  137. package/dist/kanban-tool-types.d.ts +1 -2
  138. package/dist/kanban.d.ts +3 -19
  139. package/dist/kanban.js +1 -1
  140. package/dist/languages/execute-tool.d.ts +2 -3
  141. package/dist/languages/index.d.ts +2 -2
  142. package/dist/languages/index.js +6 -6
  143. package/dist/languages/tool.d.ts +3 -4
  144. package/dist/legacy-bridge-YXANP5QB.js +18 -0
  145. package/dist/lint.d.ts +5 -4
  146. package/dist/lint.js +8 -8
  147. package/dist/logs.d.ts +3 -4
  148. package/dist/logs.js +2 -2
  149. package/dist/memory.d.ts +7 -8
  150. package/dist/memory.js +1 -1
  151. package/dist/mode.d.ts +3 -4
  152. package/dist/mode.js +1 -1
  153. package/dist/next-steps-tool.d.ts +2 -3
  154. package/dist/next-steps.d.ts +11 -0
  155. package/dist/next-steps.js +10 -132
  156. package/dist/outdated.d.ts +5 -29
  157. package/dist/outdated.js +4 -4
  158. package/dist/pack.js +56 -56
  159. package/dist/{parser-dispatch-QGC4HSP5.js → parser-dispatch-BDVCJXTV.js} +4 -4
  160. package/dist/patch.d.ts +2 -3
  161. package/dist/patch.js +8 -8
  162. package/dist/plan.d.ts +4 -4
  163. package/dist/plan.js +3 -3
  164. package/dist/process-registry.js +2 -2
  165. package/dist/ps-slash.js +4 -4
  166. package/dist/pwsh.d.ts +1 -0
  167. package/dist/{py-parser-RFWG2HYI.js → py-parser-QC6MR4GB.js} +3 -3
  168. package/dist/read.d.ts +5 -5
  169. package/dist/read.js +8 -8
  170. package/dist/replace.d.ts +2 -3
  171. package/dist/replace.js +10 -10
  172. package/dist/scaffold.d.ts +7 -3
  173. package/dist/scaffold.js +3 -1
  174. package/dist/search.d.ts +17 -3
  175. package/dist/search.js +5 -1
  176. package/dist/set-working-dir.d.ts +2 -3
  177. package/dist/skill.d.ts +4 -5
  178. package/dist/skill.js +1 -1
  179. package/dist/task.d.ts +6 -6
  180. package/dist/task.js +3 -3
  181. package/dist/test.d.ts +5 -4
  182. package/dist/test.js +8 -8
  183. package/dist/todo.d.ts +8 -8
  184. package/dist/todo.js +2 -2
  185. package/dist/tool-diff.js +11 -230
  186. package/dist/tool-help.d.ts +2 -3
  187. package/dist/tool-help.js +1 -1
  188. package/dist/tool-search.d.ts +2 -3
  189. package/dist/tool-search.js +1 -1
  190. package/dist/tool-summary.js +5 -281
  191. package/dist/tool-tier.js +57 -57
  192. package/dist/tool-use.d.ts +2 -3
  193. package/dist/tool-use.js +1 -1
  194. package/dist/tree.d.ts +5 -3
  195. package/dist/tree.js +5 -1
  196. package/dist/typecheck.d.ts +3 -3
  197. package/dist/typecheck.js +8 -8
  198. package/dist/win32.js +1 -1
  199. package/dist/write.d.ts +2 -3
  200. package/dist/write.js +9 -9
  201. package/package.json +5 -5
  202. package/dist/legacy-bridge-3T7SR4SK.js +0 -18
  203. package/dist/spawn-background.d.ts +0 -80
package/dist/index.d.ts CHANGED
@@ -1,62 +1,71 @@
1
- export { type DangerAssessment, type DangerLevel, detectDanger } from './_danger-detect.js';
1
+ export { type DangerAssessment, type DangerLevel, type DangerRule, detectDanger, } from './_danger-detect.js';
2
2
  export { type EnsureSessionShellOptions, ensureSessionShell, normalizeShell, type ResolveSessionShellDeps, resolveSessionShell, } from './_session-shell.js';
3
3
  export type { BashShell } from './_shell-pick.js';
4
- export { auditTool } from './audit.js';
5
- export { bashTool } from './bash.js';
6
- export { batchToolUseTool } from './batch-tool-use.js';
4
+ export { auditTool, type AuditContext, type AuditInput, type AuditOutput, type AuditVulnerability, } from './audit.js';
5
+ export { type AutoProceedLoopGuard, createAutoProceedLoopGuard, GROUNDED_NO_PROGRESS_STEER, type GroundedRepetitionAction, type GroundedRepetitionSignal, type LoopGuardOptions, normalizeForRepetition, type RepetitionSignal, } from './auto-proceed-loop-guard.js';
6
+ export { bashTool, type BashInput, type BashOutput, } from './bash.js';
7
+ export { checkAndBlockKillCommand, type KillCheckResult, type KillCommand, } from './bash-kill-guard.js';
8
+ export { batchToolUseTool, type BatchToolUseInput, type BatchToolUseOutput, } from './batch-tool-use.js';
7
9
  export * from './browser/index.js';
8
10
  export { builtinTools, OFF_ONLY_TOOLS, OPTIONAL_TOOLS, TIER1_TOOLS, TIER2_TOOLS, TIER3_TOOLS, } from './builtin.js';
9
- export { CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerSnapshot, } from './circuit-breaker.js';
10
- export type { CircuitSnapshot, CircuitState, CodeMapGraph, DeadCodeScanInput, DeadCodeScanOutput, DeadFile, DeadPackage, DeadSymbol, GraphEdge, GraphNode, ProjectIndexDaemonAvailability, ProjectIndexServerActivity, ProjectIndexServerClientHealth, ProjectIndexServerConnectionState, ProjectIndexServerConnectionStatus, ProjectIndexServerHealth, } from './codebase-index/index.js';
11
- export { clarifyTool, type ClarifyQuestionInput, type ClarifyOutput, } from './clarify.js';
12
- export { CircuitOpenError, cancelPendingReindexes, checkCodebaseIndexServerHealth, codebaseAstReplaceTool, codebaseImpactAnalysisTool, codebaseIndexStats, codebaseIndexTool, codebaseInvariantCheckTool, codebaseRepoMapTool, codebaseSearchTool, codebaseSkeletonTool, codebaseStatsTool, codebaseTargetedTestTool, deadCodeScanTool, enqueueReindex, ensureCodebaseIndexServer, extractDirectorySkeleton, extractFileSkeleton, generateRepoMap, replaceSymbolInFile, type FileSkeletonResult, type MutateSymbolOptions, type MutateSymbolResult, type RepoMapOptions, type RepoMapResult, type SkeletonOptions, type SkeletonSymbolRange, fileGraphService, getIndexState, IndexCircuitBreaker, IndexTimeoutError, indexCircuitBreaker, isIndexableFile, isIndexing, isIndexReady, onIndexStateChange, packageGraphService, resetIndexCircuitBreaker, resolveProjectIndexDaemonAvailability, runDeadCodeScan, runStartupIndex, searchCodebaseIndex, shutdownCodebaseIndexHost, shutdownCodebaseIndexServer, symbolGraphService, } from './codebase-index/index.js';
13
- export { designTool } from './design.js';
14
- export { diffTool } from './diff.js';
15
- export { documentTool } from './document.js';
16
- export { discoverE2EProjects, type E2EExecutionPlan, type E2EFramework, type E2EPackageManager, type E2EPlanOutput, type E2EProjectPlan, type E2EServerHint, e2ePlanTool, } from './e2e.js';
17
- export { editTool } from './edit.js';
18
- export { configureDangerBypass, configureExecPolicy, execTool, getDangerBypass, getExecAllowlist, isExecCommandAllowed, resetDangerBypass, resetExecPolicy, } from './exec.js';
11
+ export { type BreakerState, CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerSnapshot, } from './circuit-breaker.js';
12
+ export type { CircuitSnapshot, CircuitState, CodeMapGraph, CodebaseAstReplaceInput, CodebaseAstReplaceOutput, CodebaseImpactAnalysisInput, CodebaseImpactAnalysisOutput, CodebaseIncomingCallsInput, CodebaseIncomingCallsOutput, CodebaseIndexInput, CodebaseIndexOutput, CodebaseInvariantCheckInput, CodebaseInvariantCheckOutput, CodebaseOutgoingCallsInput, CodebaseOutgoingCallsOutput, CodebaseRepoMapInput, CodebaseRepoMapOutput, CodebaseSearchInput, CodebaseSearchOutput, CodebaseSkeletonInput, CodebaseSkeletonOutput, CodebaseStatsInput, CodebaseStatsOutput, CodebaseTargetedTestInput, CodebaseTargetedTestOutput, DeadCodeScanInput, DeadCodeScanOutput, DeadFile, DeadPackage, DeadSymbol, GraphEdge, GraphNode, ImpactAnalysisInput, ImpactAnalysisOutput, ImpactCallSite, IncomingCallsInput, IncomingCallsOutput, OutgoingCallsInput, OutgoingCallsOutput, ProjectIndexDaemonAvailability, ProjectIndexServerActivity, ProjectIndexServerClientHealth, ProjectIndexServerConnectionState, ProjectIndexServerConnectionStatus, ProjectIndexServerHealth, TargetedTestInput, TargetedTestOutput, } from './codebase-index/index.js';
13
+ export { clarifyTool, type ClarifyInput, type ClarifyQuestionInput, type ClarifyOutput, } from './clarify.js';
14
+ export { CircuitOpenError, cancelPendingReindexes, checkCodebaseIndexServerHealth, codebaseAstReplaceTool, codebaseImpactAnalysisTool, codebaseIncomingCallsTool, codebaseIndexStats, codebaseIndexTool, codebaseInvariantCheckTool, codebaseOutgoingCallsTool, codebaseRepoMapTool, codebaseSearchTool, codebaseSkeletonTool, codebaseStatsTool, codebaseTargetedTestTool, deadCodeScanTool, enqueueReindex, ensureCodebaseIndexServer, extractDirectorySkeleton, extractFileSkeleton, generateRepoMap, replaceSymbolInFile, type FileSkeletonResult, type MutateSymbolOptions, type MutateSymbolResult, type RepoMapOptions, type RepoMapResult, type SkeletonOptions, type SkeletonSymbolRange, fileGraphService, getIndexState, IndexCircuitBreaker, IndexTimeoutError, indexCircuitBreaker, isIndexableFile, isIndexing, isIndexReady, onIndexStateChange, packageGraphService, resetIndexCircuitBreaker, resolveProjectIndexDaemonAvailability, runDeadCodeScan, runStartupIndex, searchCodebaseIndex, shutdownCodebaseIndexHost, shutdownCodebaseIndexServer, symbolGraphService, } from './codebase-index/index.js';
15
+ export { designTool, type DesignInput, type DesignOutput, } from './design.js';
16
+ export { diffTool, type DiffInput, type DiffMode, type DiffOutput, } from './diff.js';
17
+ export { documentTool, type DocumentInput, type DocumentOutput, type DocumentedItem, } from './document.js';
18
+ export { discoverE2EProjects, type E2EExecutionPlan, type E2EFramework, type E2EPackageManager, type E2EPlanInput, type E2EPlanOutput, type E2EProjectPlan, type E2EServerHint, e2ePlanTool, } from './e2e.js';
19
+ export { editTool, type EditInput, type EditOutput, type MatchTier, } from './edit.js';
20
+ export { configureDangerBypass, configureExecPolicy, execTool, type ExecInput, type ExecOutput, getDangerBypass, getExecAllowlist, isExecCommandAllowed, resetDangerBypass, resetExecPolicy, } from './exec.js';
19
21
  export { checkExecKillCommand, type ExecKillCheckResult, } from './exec-kill-guard.js';
20
- export { fetchTool } from './fetch.js';
21
- export { formatTool } from './format.js';
22
- export { gitTool } from './git.js';
23
- export { globTool } from './glob.js';
24
- export { grepTool } from './grep.js';
25
- export { installTool } from './install.js';
26
- export { jsonTool } from './json.js';
27
- export { kanbanTool } from './kanban.js';
22
+ export { fetchTool, type FetchFormat, type FetchInput, type FetchOutput, } from './fetch.js';
23
+ export { formatTool, type FormatContext, type FormatFixer, type FormatInput, type FormatOutput, } from './format.js';
24
+ export { gitTool, type GitInput, type GitOutput, type GitSubcommand, } from './git.js';
25
+ export { globTool, type GlobInput, type GlobOutput, } from './glob.js';
26
+ export { grepTool, type GrepBackend, type GrepEngine, type GrepInput, type GrepOutput, type GrepOutputMode, } from './grep.js';
27
+ export { installTool, type InstallContext, type InstallInput, type InstallOutput, type InstallSaveType, } from './install.js';
28
+ export { jsonTool, type JsonAction, type JsonInput, type JsonOutput, } from './json.js';
29
+ export { kanbanTool, type KanbanAction, type KanbanContext, type KanbanToolInput, type KanbanToolOutput, } from './kanban.js';
28
30
  export { kanbanEvidenceKey, kanbanEvidencePointer, recordKanbanVerificationEvidence, } from './kanban-evidence-bridge.js';
29
31
  export * from './languages/index.js';
30
- export { lintTool } from './lint.js';
31
- export { logsTool } from './logs.js';
32
- export { forgetTool, relatedMemoryTool, rememberTool, searchMemoryTool } from './memory.js';
33
- export { createModeTool } from './mode.js';
34
- export { nextStepsTool } from './next-steps-tool.js';
35
- export { outdatedTool } from './outdated.js';
32
+ export { lintTool, type LintContext, type LinterName, type LintInput, type LintOutput, } from './lint.js';
33
+ export { logsTool, type LogEntry, type LogsInput, type LogsOutput, } from './logs.js';
34
+ export { forgetTool, type ForgetInput, type ForgetOutput, relatedMemoryTool, type RelatedMemoryInput, rememberTool, type RememberInput, type RememberOutput, searchMemoryTool, type SearchMemoryInput, type SearchMemoryOutput, } from './memory.js';
35
+ export { createModeTool, type ModeFamily, type ModeInput, type ModeOutput, } from './mode.js';
36
+ export { nextStepsTool, type NextStepsInput, type NextStepsOutput, } from './next-steps-tool.js';
37
+ export { type ParseNextStepsOptions, type ParseNextStepsResult, type ParsedNextStep, parseNextSteps, stripNextSteps, } from './next-steps.js';
38
+ export { outdatedTool, type OutdatedContext, type OutdatedInput, type OutdatedOutput, type OutdatedPackage, } from './outdated.js';
36
39
  export { builtinToolsPack } from './pack.js';
37
- export { patchTool } from './patch.js';
38
- export { planTool } from './plan.js';
40
+ export { patchTool, type PatchInput, type PatchOutput, } from './patch.js';
41
+ export { planTool, type PlanAction, type PlanInput, type PlanOutput, } from './plan.js';
39
42
  export { getProcessGuardian, type ProcessGuardianConfig, startProcessGuardian, stopProcessGuardian, } from './process-guardian.js';
40
43
  export { _resetProcessRegistry, type BreakerCountdown, getProcessRegistry, type KillOpts, type ProcessRegistryImpl, type RegistryStats, type TrackedProcess, } from './process-registry.js';
41
44
  export { getPersistentProcessRegistry, type PersistentProcessEntry, type PersistentRegistryData, resetPersistentProcessRegistry, } from './process-registry-persistent.js';
42
45
  export { createGlobalPsSlashCommand, formatGlobalStatus, formatInstanceList, formatInstanceSummary, type GlobalProcessStatus, getInstanceCount, type InstanceInfo, type InstanceListOptions, listInstances, } from './ps-slash.js';
43
- export { pwshTool, PWSH_TOOL_DESCRIPTION, type PwshInput, type PwshOutput } from './pwsh.js';
44
- export { readTool } from './read.js';
45
- export { replaceTool } from './replace.js';
46
- export { scaffoldTool } from './scaffold.js';
47
- export { searchTool } from './search.js';
46
+ export { pwshTool, PWSH_TOOL_DESCRIPTION, PWSH_TOOL_USAGE_HINT, type PwshInput, type PwshOutput, } from './pwsh.js';
47
+ export { readTool, type ReadInput, type ReadMode, type ReadOutput, type SymbolEntry, } from './read.js';
48
+ export { replaceTool, type ReplaceInput, type ReplaceOutput, } from './replace.js';
49
+ export { BUILT_IN_TEMPLATES, scaffoldTool, type ScaffoldInput, type ScaffoldOutput, type ScaffoldTemplate, } from './scaffold.js';
50
+ export { searchTool, type CacheEntry as SearchCacheEntry, type SearchInput, type SearchOutput, type SearchResult, } from './search.js';
48
51
  export { analyzeSecurityAndPerformance, securityAstScanTool, type SecurityFinding, type SecurityScanInput, type SecurityScanOutput, } from './security-ast-scan-tool.js';
49
52
  export { applySessionKanbanBoardToTodos, applySessionKanbanTaskToSource, attachSessionKanbanMirror, ensureSessionKanbanBoard, hydrateSessionKanban, mirrorSessionPlanToKanban, mirrorSessionTasksToKanban, mirrorSessionTodosToKanban, projectSessionPlanToKanban, projectSessionTasksToKanban, projectSessionTodosToKanban, rebindSessionKanbanTask, SESSION_KANBAN_COLUMNS, } from './session-kanban.js';
50
- export { makeSkillTool } from './skill.js';
51
- export { taskTool } from './task.js';
52
- export { testTool } from './test.js';
53
- export { todoTool } from './todo.js';
54
- export { toolHelpTool } from './tool-help.js';
53
+ export { makeSkillTool, type LoadedResource, type SkillResource, type SkillToolInput, type SkillToolOutput, } from './skill.js';
54
+ export { setWorkingDirTool, type SetWorkingDirInput, type SetWorkingDirOutput, } from './set-working-dir.js';
55
+ export { taskTool, type TaskAction, type TaskAdditionItem, type TaskInput, type TaskOutput, type TaskReplacementItem, } from './task.js';
56
+ export { testTool, type TestContext, type TestInput, type TestOutput, type TestRunnerName, } from './test.js';
57
+ export { todoTool, type TodoInput, type TodoKanbanBinding, type TodoOutput, } from './todo.js';
58
+ export { toolHelpTool, type ToolHelpInput, type ToolHelpOutput, } from './tool-help.js';
55
59
  export { FALLBACK_ICON, getToolIcon, TOOL_ICON_CONFIG, TOOL_ICON_MAP, type ToolIconConfig, type ToolIconId, } from './tool-icon-map.js';
56
- export { toolSearchTool } from './tool-search.js';
60
+ export { computeLineDiff, DIFF_MAX_LINES, diffFromToolInput, type DiffRow, type DiffRowKind, type ToolDiff, } from './tool-diff.js';
61
+ export { FALLBACK_HEAD_FIELDS, SUMMARIZE_TOOL_INPUT_BROWSER_SRC, summarizeToolInput, } from './tool-summary.js';
62
+ export { toolSearchTool, type ToolSearchInput, type ToolSearchOutput, } from './tool-search.js';
57
63
  export { type RegisterBuiltinToolTierOptions, registerBuiltinToolTier, selectBuiltinToolsForTier, } from './tool-tier.js';
58
- export { toolUseTool } from './tool-use.js';
59
- export { treeTool } from './tree.js';
60
- export { typecheckTool } from './typecheck.js';
61
- export { writeTool } from './write.js';
64
+ export { toolUseTool, type ToolUseInput, type ToolUseOutput, } from './tool-use.js';
65
+ export { DEFAULT_MAX_TREE_ENTRIES, MAX_TREE_OUTPUT_BYTES, treeTool, type TreeContext, type TreeInput, type TreeOutput, } from './tree.js';
66
+ export { typecheckTool, type TypecheckContext, type TypecheckInput, type TypecheckOutput, } from './typecheck.js';
67
+ export { writeTool, type WriteInput, type WriteOutput, } from './write.js';
68
+ export { checkSyntax, type SyntaxCheckResult, } from './_syntax-check.js';
69
+ export { mapWithConcurrency, } from './_concurrency.js';
70
+ export { capSubject, compileUserRegex, MAX_SUBJECT_LEN, type CompileFail, type CompileResult, } from './_regex.js';
62
71
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,3 +1,22 @@
1
+ import {
2
+ FALLBACK_HEAD_FIELDS,
3
+ SUMMARIZE_TOOL_INPUT_BROWSER_SRC,
4
+ summarizeToolInput
5
+ } from "./chunk-S57CDR2H.js";
6
+ import {
7
+ DIFF_MAX_LINES,
8
+ computeLineDiff,
9
+ diffFromToolInput
10
+ } from "./chunk-FYDBUVQD.js";
11
+ import {
12
+ parseNextSteps,
13
+ stripNextSteps
14
+ } from "./chunk-XXRMF2BC.js";
15
+ import {
16
+ GROUNDED_NO_PROGRESS_STEER,
17
+ createAutoProceedLoopGuard,
18
+ normalizeForRepetition
19
+ } from "./chunk-37QKUQ2Z.js";
1
20
  import {
2
21
  createGlobalPsSlashCommand,
3
22
  formatGlobalStatus,
@@ -5,31 +24,32 @@ import {
5
24
  formatInstanceSummary,
6
25
  getInstanceCount,
7
26
  listInstances
8
- } from "./chunk-42BHI7TN.js";
27
+ } from "./chunk-5ITQPCLC.js";
9
28
  import {
10
29
  makeSkillTool
11
- } from "./chunk-GOIZNNOA.js";
30
+ } from "./chunk-DJYLI7EW.js";
12
31
  import {
13
32
  forgetTool,
14
33
  relatedMemoryTool,
15
34
  rememberTool,
16
35
  searchMemoryTool
17
- } from "./chunk-WHIIIREL.js";
36
+ } from "./chunk-FVM3O4JQ.js";
18
37
  import {
19
38
  createModeTool
20
- } from "./chunk-4BHUSMNL.js";
39
+ } from "./chunk-UI3ZJIG3.js";
21
40
  import "./chunk-Z6DAKQ3U.js";
22
41
  import {
23
42
  registerBuiltinToolTier,
24
43
  selectBuiltinToolsForTier
25
- } from "./chunk-GMZYW52L.js";
44
+ } from "./chunk-YULVUTK5.js";
26
45
  import {
27
46
  builtinToolsPack
28
- } from "./chunk-DC4KMPJO.js";
47
+ } from "./chunk-M6UV67BH.js";
29
48
  import {
30
49
  OFF_ONLY_TOOLS,
31
50
  OPTIONAL_TOOLS,
32
51
  PWSH_TOOL_DESCRIPTION,
52
+ PWSH_TOOL_USAGE_HINT,
33
53
  TIER1_TOOLS,
34
54
  TIER2_TOOLS,
35
55
  TIER3_TOOLS,
@@ -37,17 +57,20 @@ import {
37
57
  builtinTools,
38
58
  clarifyTool,
39
59
  pwshTool,
40
- securityAstScanTool
41
- } from "./chunk-OTINMOKK.js";
60
+ securityAstScanTool,
61
+ setWorkingDirTool
62
+ } from "./chunk-AB2CAUOP.js";
42
63
  import {
43
64
  discoverE2EProjects,
44
65
  e2ePlanTool
45
- } from "./chunk-VPALDFYM.js";
66
+ } from "./chunk-RV7BVTDG.js";
46
67
  import {
47
68
  codebaseAstReplaceTool,
48
69
  codebaseImpactAnalysisTool,
70
+ codebaseIncomingCallsTool,
49
71
  codebaseIndexTool,
50
72
  codebaseInvariantCheckTool,
73
+ codebaseOutgoingCallsTool,
51
74
  codebaseRepoMapTool,
52
75
  codebaseSearchTool,
53
76
  codebaseSkeletonTool,
@@ -59,75 +82,78 @@ import {
59
82
  generateRepoMap,
60
83
  replaceSymbolInFile,
61
84
  runDeadCodeScan
62
- } from "./chunk-RTZWBNTY.js";
85
+ } from "./chunk-YEISRT4S.js";
63
86
  import "./chunk-XRNN44QY.js";
64
87
  import {
65
88
  planTool
66
- } from "./chunk-B4HTSV6Z.js";
89
+ } from "./chunk-5KS24LTS.js";
67
90
  import {
68
91
  taskTool
69
- } from "./chunk-3M7LLN7W.js";
92
+ } from "./chunk-LQSOU63Z.js";
70
93
  import {
71
94
  toolSearchTool
72
- } from "./chunk-RJZQWEMS.js";
95
+ } from "./chunk-24T5XIJU.js";
73
96
  import {
74
97
  toolUseTool
75
- } from "./chunk-FRN7TIAA.js";
98
+ } from "./chunk-B3MGJBFI.js";
76
99
  import {
77
100
  batchToolUseTool
78
- } from "./chunk-WXJY3BKV.js";
101
+ } from "./chunk-VBF2YXUW.js";
79
102
  import {
80
103
  toolHelpTool
81
- } from "./chunk-QBV725YG.js";
104
+ } from "./chunk-7ODZTPCU.js";
82
105
  import {
83
106
  designTool
84
- } from "./chunk-ELRRTWNP.js";
107
+ } from "./chunk-IXIS7RSG.js";
85
108
  import {
86
109
  testTool
87
- } from "./chunk-UQQS3VNT.js";
110
+ } from "./chunk-QA6IASYX.js";
88
111
  import {
89
112
  installTool
90
- } from "./chunk-RLMX75EM.js";
113
+ } from "./chunk-O6BY43ZB.js";
91
114
  import {
92
115
  auditTool
93
- } from "./chunk-64VIJPFV.js";
116
+ } from "./chunk-WEEVSWQB.js";
94
117
  import {
95
118
  outdatedTool
96
- } from "./chunk-IYKXK356.js";
119
+ } from "./chunk-6GOZTS6F.js";
97
120
  import {
98
121
  logsTool
99
- } from "./chunk-FQNXYA6W.js";
122
+ } from "./chunk-VU3QBYL4.js";
100
123
  import {
101
124
  documentTool
102
- } from "./chunk-IU4DV2PA.js";
125
+ } from "./chunk-CHEK3ASV.js";
103
126
  import {
127
+ BUILT_IN_TEMPLATES,
104
128
  scaffoldTool
105
- } from "./chunk-2OXHS3KZ.js";
129
+ } from "./chunk-KLJZ4WV4.js";
106
130
  import {
107
131
  gitTool
108
- } from "./chunk-6AAOT4PW.js";
132
+ } from "./chunk-AQ5YBURX.js";
109
133
  import {
110
134
  patchTool
111
- } from "./chunk-IWS56OY7.js";
135
+ } from "./chunk-CGXTR34H.js";
112
136
  import {
113
137
  jsonTool
114
- } from "./chunk-VD2LV5WO.js";
138
+ } from "./chunk-VZGPASGD.js";
115
139
  import {
116
140
  diffTool
117
- } from "./chunk-OG2BEUBY.js";
141
+ } from "./chunk-7HL23T3T.js";
118
142
  import {
143
+ DEFAULT_MAX_TREE_ENTRIES,
144
+ MAX_TREE_OUTPUT_BYTES,
119
145
  treeTool
120
- } from "./chunk-MNP3GE7H.js";
146
+ } from "./chunk-JDOO4P6Z.js";
121
147
  import {
122
148
  lintTool
123
- } from "./chunk-LOBRWKCR.js";
149
+ } from "./chunk-3D5DJWOE.js";
124
150
  import {
125
151
  formatTool
126
- } from "./chunk-EADULOZV.js";
152
+ } from "./chunk-NJX2RXKJ.js";
127
153
  import {
128
154
  typecheckTool
129
- } from "./chunk-5EUJF3WC.js";
130
- import "./chunk-ATSKPZUK.js";
155
+ } from "./chunk-4WPBS45A.js";
156
+ import "./chunk-T3SMFF5Q.js";
131
157
  import {
132
158
  ADDITIONAL_LANGUAGE_PROFILES,
133
159
  LanguageProfileRegistry,
@@ -145,22 +171,29 @@ import {
145
171
  planLanguageOperation,
146
172
  validateCommandPlan,
147
173
  validateLanguageProfile
148
- } from "./chunk-TTZOK6IY.js";
149
- import "./chunk-ZHH3BEWU.js";
174
+ } from "./chunk-7N5U2RAU.js";
175
+ import "./chunk-DRRY6SCM.js";
150
176
  import {
151
177
  replaceTool
152
- } from "./chunk-X5FOFGXX.js";
178
+ } from "./chunk-IYH4OHBP.js";
153
179
  import {
154
180
  globTool
155
- } from "./chunk-JDPQOR7C.js";
181
+ } from "./chunk-ASEXQRA7.js";
156
182
  import {
157
183
  grepTool
158
- } from "./chunk-YOKD4GWJ.js";
159
- import "./chunk-Q5JPPCZC.js";
160
- import "./chunk-NWZ6XGBJ.js";
184
+ } from "./chunk-4ERMPDHV.js";
161
185
  import {
162
- bashTool
163
- } from "./chunk-AKHYMB4V.js";
186
+ MAX_SUBJECT_LEN,
187
+ capSubject,
188
+ compileUserRegex
189
+ } from "./chunk-YJTXRH5Y.js";
190
+ import {
191
+ mapWithConcurrency
192
+ } from "./chunk-ZBMANLYH.js";
193
+ import {
194
+ bashTool,
195
+ checkAndBlockKillCommand
196
+ } from "./chunk-NN2SNP2R.js";
164
197
  import {
165
198
  checkExecKillCommand,
166
199
  configureDangerBypass,
@@ -172,36 +205,36 @@ import {
172
205
  isExecCommandAllowed,
173
206
  resetDangerBypass,
174
207
  resetExecPolicy
175
- } from "./chunk-BSJSNVGA.js";
208
+ } from "./chunk-KDEXUQY7.js";
176
209
  import "./chunk-BTSFTGIL.js";
177
210
  import {
178
211
  getPersistentProcessRegistry,
179
212
  resetPersistentProcessRegistry
180
- } from "./chunk-NKNOBUBU.js";
181
- import "./chunk-2VSZC6QM.js";
213
+ } from "./chunk-PVCB7RUZ.js";
214
+ import "./chunk-SCMRM6NL.js";
182
215
  import {
183
216
  _resetProcessRegistry,
184
217
  getProcessRegistry
185
- } from "./chunk-3PVYQFRQ.js";
218
+ } from "./chunk-HDYUBRMF.js";
186
219
  import {
187
220
  CircuitBreaker
188
- } from "./chunk-HFXSNKCV.js";
221
+ } from "./chunk-7JJFC6CT.js";
189
222
  import {
190
223
  fetchTool
191
- } from "./chunk-C2DQKVLO.js";
224
+ } from "./chunk-MJSJWXBF.js";
192
225
  import {
193
226
  searchTool
194
- } from "./chunk-QPNYDH5B.js";
227
+ } from "./chunk-62OAECEQ.js";
195
228
  import "./chunk-NBDZMMG2.js";
196
229
  import {
197
230
  todoTool
198
- } from "./chunk-BK732J7I.js";
231
+ } from "./chunk-FBUP524S.js";
199
232
  import {
200
233
  kanbanEvidenceKey,
201
234
  kanbanEvidencePointer,
202
235
  kanbanTool,
203
236
  recordKanbanVerificationEvidence
204
- } from "./chunk-W2CECGTG.js";
237
+ } from "./chunk-SMARDKAC.js";
205
238
  import {
206
239
  SESSION_KANBAN_COLUMNS,
207
240
  applySessionKanbanBoardToTodos,
@@ -245,17 +278,19 @@ import {
245
278
  resolvePinnedBrowserTarget,
246
279
  safeBrowserUrl,
247
280
  shutdownBrowserTools
248
- } from "./chunk-45JPRMC2.js";
281
+ } from "./chunk-SOR7OCYP.js";
249
282
  import {
250
283
  readTool
251
- } from "./chunk-RNWUCZ2U.js";
284
+ } from "./chunk-MK2JK35J.js";
252
285
  import {
253
286
  writeTool
254
- } from "./chunk-O44IMQCN.js";
287
+ } from "./chunk-GKSG5CPH.js";
255
288
  import {
256
289
  editTool
257
- } from "./chunk-CFLJFDYV.js";
258
- import "./chunk-FQZOHLG3.js";
290
+ } from "./chunk-DK4J2WMH.js";
291
+ import {
292
+ checkSyntax
293
+ } from "./chunk-MSOAX3GC.js";
259
294
  import {
260
295
  cancelPendingReindexes,
261
296
  checkCodebaseIndexServerHealth,
@@ -275,24 +310,24 @@ import {
275
310
  shutdownCodebaseIndexHost,
276
311
  shutdownCodebaseIndexServer,
277
312
  symbolGraphService
278
- } from "./chunk-DP6CXMJZ.js";
279
- import "./chunk-UDVKRX5R.js";
313
+ } from "./chunk-ZTCJCYLN.js";
314
+ import "./chunk-GDDXX27P.js";
280
315
  import {
281
316
  CircuitOpenError,
282
317
  IndexCircuitBreaker,
283
318
  IndexTimeoutError,
284
319
  indexCircuitBreaker,
285
320
  resetIndexCircuitBreaker
286
- } from "./chunk-KY4PXYSO.js";
287
- import "./chunk-CMOUCKGC.js";
288
- import "./chunk-IIF5HIVF.js";
321
+ } from "./chunk-N3K2SFEI.js";
322
+ import "./chunk-NU2IZ72J.js";
323
+ import "./chunk-VVZPQPTY.js";
289
324
  import "./chunk-6IEBD27U.js";
290
325
  import "./chunk-UCYQTZ7F.js";
291
326
  import "./chunk-YOHO4DVT.js";
292
- import "./chunk-DTQ75VBC.js";
327
+ import "./chunk-2CTZW6JQ.js";
293
328
  import {
294
329
  resolveWin32Command
295
- } from "./chunk-V43EQ6VR.js";
330
+ } from "./chunk-KE7A76VC.js";
296
331
  import "./chunk-ZUFHAHTE.js";
297
332
 
298
333
  // src/_session-shell.ts
@@ -877,20 +912,29 @@ var TOOL_ICON_CONFIG = {
877
912
  var FALLBACK_ICON = "fallback";
878
913
  export {
879
914
  ADDITIONAL_LANGUAGE_PROFILES,
915
+ BUILT_IN_TEMPLATES,
880
916
  BrowserArtifactStore,
881
917
  BrowserNetworkGuardProxy,
882
918
  BrowserSessionManager,
883
919
  CircuitBreaker,
884
920
  CircuitOpenError,
921
+ DEFAULT_MAX_TREE_ENTRIES,
922
+ DIFF_MAX_LINES,
923
+ FALLBACK_HEAD_FIELDS,
885
924
  FALLBACK_ICON,
925
+ GROUNDED_NO_PROGRESS_STEER,
886
926
  IndexCircuitBreaker,
887
927
  IndexTimeoutError,
888
928
  LanguageProfileRegistry,
929
+ MAX_SUBJECT_LEN,
930
+ MAX_TREE_OUTPUT_BYTES,
889
931
  OFF_ONLY_TOOLS,
890
932
  OPTIONAL_TOOLS,
891
933
  PRIMARY_LANGUAGE_PROFILES,
892
934
  PWSH_TOOL_DESCRIPTION,
935
+ PWSH_TOOL_USAGE_HINT,
893
936
  SESSION_KANBAN_COLUMNS,
937
+ SUMMARIZE_TOOL_INPUT_BROWSER_SRC,
894
938
  TIER1_TOOLS,
895
939
  TIER2_TOOLS,
896
940
  TIER3_TOOLS,
@@ -926,21 +970,29 @@ export {
926
970
  builtinTools,
927
971
  builtinToolsPack,
928
972
  cancelPendingReindexes,
973
+ capSubject,
974
+ checkAndBlockKillCommand,
929
975
  checkCodebaseIndexServerHealth,
930
976
  checkExecKillCommand,
977
+ checkSyntax,
931
978
  clarifyTool,
932
979
  codebaseAstReplaceTool,
933
980
  codebaseImpactAnalysisTool,
981
+ codebaseIncomingCallsTool,
934
982
  codebaseIndexStats,
935
983
  codebaseIndexTool,
936
984
  codebaseInvariantCheckTool,
985
+ codebaseOutgoingCallsTool,
937
986
  codebaseRepoMapTool,
938
987
  codebaseSearchTool,
939
988
  codebaseSkeletonTool,
940
989
  codebaseStatsTool,
941
990
  codebaseTargetedTestTool,
991
+ compileUserRegex,
992
+ computeLineDiff,
942
993
  configureDangerBypass,
943
994
  configureExecPolicy,
995
+ createAutoProceedLoopGuard,
944
996
  createGlobalPsSlashCommand,
945
997
  createModeTool,
946
998
  deadCodeScanTool,
@@ -948,6 +1000,7 @@ export {
948
1000
  detectDanger,
949
1001
  detectLanguageWorkspaces,
950
1002
  diagnosticsForInternalSyntax,
1003
+ diffFromToolInput,
951
1004
  diffTool,
952
1005
  discoverE2EProjects,
953
1006
  documentTool,
@@ -1000,15 +1053,18 @@ export {
1000
1053
  listInstances,
1001
1054
  logsTool,
1002
1055
  makeSkillTool,
1056
+ mapWithConcurrency,
1003
1057
  mirrorSessionPlanToKanban,
1004
1058
  mirrorSessionTasksToKanban,
1005
1059
  mirrorSessionTodosToKanban,
1006
1060
  nextStepsTool,
1061
+ normalizeForRepetition,
1007
1062
  normalizeShell,
1008
1063
  onIndexStateChange,
1009
1064
  outdatedTool,
1010
1065
  packageGraphService,
1011
1066
  parseLanguageDiagnostics,
1067
+ parseNextSteps,
1012
1068
  parsePackageReports,
1013
1069
  parsePrivateOriginAllowlist,
1014
1070
  patchTool,
@@ -1043,11 +1099,14 @@ export {
1043
1099
  searchTool,
1044
1100
  securityAstScanTool,
1045
1101
  selectBuiltinToolsForTier,
1102
+ setWorkingDirTool,
1046
1103
  shutdownBrowserTools,
1047
1104
  shutdownCodebaseIndexHost,
1048
1105
  shutdownCodebaseIndexServer,
1049
1106
  startProcessGuardian,
1050
1107
  stopProcessGuardian,
1108
+ stripNextSteps,
1109
+ summarizeToolInput,
1051
1110
  symbolGraphService,
1052
1111
  taskTool,
1053
1112
  testTool,
package/dist/install.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import type { Tool, ToolStreamEvent } from '@wrongstack/core/types';
2
- interface InstallInput {
1
+ import type { Tool } from '@wrongstack/core/types';
2
+ export type InstallSaveType = 'dependency' | 'dev' | 'optional';
3
+ export interface InstallInput {
3
4
  packages?: string | string[] | undefined;
4
- save?: 'dependency' | 'dev' | 'optional' | undefined;
5
+ save?: InstallSaveType | undefined;
5
6
  cwd?: string | undefined;
6
7
  dry_run?: boolean | undefined;
7
8
  global?: boolean | undefined;
@@ -13,62 +14,13 @@ interface InstallInput {
13
14
  */
14
15
  lifecycleScripts?: boolean | undefined;
15
16
  }
16
- interface InstallOutput {
17
+ export interface InstallOutput {
17
18
  packages: string[];
18
19
  exit_code: number;
19
20
  output: string;
20
21
  dry_run: boolean;
21
22
  truncated: boolean;
22
23
  }
23
- type InstallContext = Parameters<Tool<InstallInput, InstallOutput>['execute']>[1];
24
- export declare const installTool: {
25
- name: string;
26
- category: string;
27
- description: string;
28
- usageHint: string;
29
- permission: "confirm";
30
- subjectKey: string;
31
- mutating: true;
32
- riskTier: "standard";
33
- icon: "package";
34
- timeoutMs: number;
35
- capabilities: string[];
36
- inputSchema: {
37
- type: string;
38
- properties: {
39
- packages: {
40
- type: string;
41
- description: string;
42
- };
43
- save: {
44
- type: string;
45
- enum: string[];
46
- description: string;
47
- };
48
- cwd: {
49
- type: string;
50
- description: string;
51
- };
52
- dry_run: {
53
- type: string;
54
- description: string;
55
- };
56
- global: {
57
- type: string;
58
- description: string;
59
- };
60
- lifecycleScripts: {
61
- type: string;
62
- description: string;
63
- };
64
- };
65
- };
66
- execute(input: InstallInput, ctx: InstallContext, opts?: {
67
- signal: AbortSignal;
68
- }): Promise<InstallOutput>;
69
- executeStream(input: InstallInput, ctx: InstallContext, opts?: {
70
- signal: AbortSignal;
71
- }): AsyncGenerator<ToolStreamEvent<InstallOutput>>;
72
- };
73
- export {};
24
+ export type InstallContext = Parameters<Tool<InstallInput, InstallOutput>['execute']>[1];
25
+ export declare const installTool: Tool<InstallInput, InstallOutput>;
74
26
  //# sourceMappingURL=install.d.ts.map
package/dist/install.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  installTool
3
- } from "./chunk-RLMX75EM.js";
4
- import "./chunk-ATSKPZUK.js";
5
- import "./chunk-TTZOK6IY.js";
6
- import "./chunk-ZHH3BEWU.js";
7
- import "./chunk-2VSZC6QM.js";
8
- import "./chunk-3PVYQFRQ.js";
9
- import "./chunk-HFXSNKCV.js";
10
- import "./chunk-V43EQ6VR.js";
3
+ } from "./chunk-O6BY43ZB.js";
4
+ import "./chunk-T3SMFF5Q.js";
5
+ import "./chunk-7N5U2RAU.js";
6
+ import "./chunk-DRRY6SCM.js";
7
+ import "./chunk-SCMRM6NL.js";
8
+ import "./chunk-HDYUBRMF.js";
9
+ import "./chunk-7JJFC6CT.js";
10
+ import "./chunk-KE7A76VC.js";
11
11
  import "./chunk-ZUFHAHTE.js";
12
12
  export {
13
13
  installTool