@smthrs/std 0.0.0-stage → 1.0.0-rc.3
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/CHANGELOG.md +130 -0
- package/LICENSE +21 -0
- package/README.md +152 -2
- package/dist/cjs/ApplyPatch.d.ts +174 -0
- package/dist/cjs/ApplyPatch.d.ts.map +1 -0
- package/dist/cjs/ApplyPatch.js +309 -0
- package/dist/cjs/ApplyPatch.js.map +7 -0
- package/dist/cjs/Bash.d.ts +304 -0
- package/dist/cjs/Bash.d.ts.map +1 -0
- package/dist/cjs/Bash.js +321 -0
- package/dist/cjs/Bash.js.map +7 -0
- package/dist/cjs/Checkpoints.d.ts +279 -0
- package/dist/cjs/Checkpoints.d.ts.map +1 -0
- package/dist/cjs/Checkpoints.js +145 -0
- package/dist/cjs/Checkpoints.js.map +7 -0
- package/dist/cjs/Container.d.ts +132 -0
- package/dist/cjs/Container.d.ts.map +1 -0
- package/dist/cjs/Container.js +113 -0
- package/dist/cjs/Container.js.map +7 -0
- package/dist/cjs/Edit.d.ts +203 -0
- package/dist/cjs/Edit.d.ts.map +1 -0
- package/dist/cjs/Edit.js +258 -0
- package/dist/cjs/Edit.js.map +7 -0
- package/dist/cjs/ExaWebSearch.d.ts +22 -0
- package/dist/cjs/ExaWebSearch.d.ts.map +1 -0
- package/dist/cjs/ExaWebSearch.js +138 -0
- package/dist/cjs/ExaWebSearch.js.map +7 -0
- package/dist/cjs/Explore.d.ts +328 -0
- package/dist/cjs/Explore.d.ts.map +1 -0
- package/dist/cjs/Explore.js +90 -0
- package/dist/cjs/Explore.js.map +7 -0
- package/dist/cjs/Fetch.d.ts +130 -0
- package/dist/cjs/Fetch.d.ts.map +1 -0
- package/dist/cjs/Fetch.js +64 -0
- package/dist/cjs/Fetch.js.map +7 -0
- package/dist/cjs/Glob.d.ts +204 -0
- package/dist/cjs/Glob.d.ts.map +1 -0
- package/dist/cjs/Glob.js +94 -0
- package/dist/cjs/Glob.js.map +7 -0
- package/dist/cjs/Grep.d.ts +347 -0
- package/dist/cjs/Grep.d.ts.map +1 -0
- package/dist/cjs/Grep.js +181 -0
- package/dist/cjs/Grep.js.map +7 -0
- package/dist/cjs/HttpPost.d.ts +130 -0
- package/dist/cjs/HttpPost.d.ts.map +1 -0
- package/dist/cjs/HttpPost.js +72 -0
- package/dist/cjs/HttpPost.js.map +7 -0
- package/dist/cjs/LanguageServer.d.ts +90 -0
- package/dist/cjs/LanguageServer.d.ts.map +1 -0
- package/dist/cjs/LanguageServer.js +60 -0
- package/dist/cjs/LanguageServer.js.map +7 -0
- package/dist/cjs/Ls.d.ts +164 -0
- package/dist/cjs/Ls.d.ts.map +1 -0
- package/dist/cjs/Ls.js +136 -0
- package/dist/cjs/Ls.js.map +7 -0
- package/dist/cjs/Lsp.d.ts +125 -0
- package/dist/cjs/Lsp.d.ts.map +1 -0
- package/dist/cjs/Lsp.js +137 -0
- package/dist/cjs/Lsp.js.map +7 -0
- package/dist/cjs/Manifest.d.ts +918 -0
- package/dist/cjs/Manifest.d.ts.map +1 -0
- package/dist/cjs/Manifest.js +144 -0
- package/dist/cjs/Manifest.js.map +7 -0
- package/dist/cjs/NativeSearch.d.ts +38 -0
- package/dist/cjs/NativeSearch.d.ts.map +1 -0
- package/dist/cjs/NativeSearch.js +326 -0
- package/dist/cjs/NativeSearch.js.map +7 -0
- package/dist/cjs/NodeLanguageServer.d.ts +128 -0
- package/dist/cjs/NodeLanguageServer.d.ts.map +1 -0
- package/dist/cjs/NodeLanguageServer.js +796 -0
- package/dist/cjs/NodeLanguageServer.js.map +7 -0
- package/dist/cjs/PortableSearch.d.ts +24 -0
- package/dist/cjs/PortableSearch.d.ts.map +1 -0
- package/dist/cjs/PortableSearch.js +233 -0
- package/dist/cjs/PortableSearch.js.map +7 -0
- package/dist/cjs/Probe.d.ts +193 -0
- package/dist/cjs/Probe.d.ts.map +1 -0
- package/dist/cjs/Probe.js +134 -0
- package/dist/cjs/Probe.js.map +7 -0
- package/dist/cjs/Read.d.ts +189 -0
- package/dist/cjs/Read.d.ts.map +1 -0
- package/dist/cjs/Read.js +223 -0
- package/dist/cjs/Read.js.map +7 -0
- package/dist/cjs/Relocate.d.ts +73 -0
- package/dist/cjs/Relocate.d.ts.map +1 -0
- package/dist/cjs/Relocate.js +72 -0
- package/dist/cjs/Relocate.js.map +7 -0
- package/dist/cjs/Search.d.ts +163 -0
- package/dist/cjs/Search.d.ts.map +1 -0
- package/dist/cjs/Search.js +51 -0
- package/dist/cjs/Search.js.map +7 -0
- package/dist/cjs/SearchConformance.d.ts +115 -0
- package/dist/cjs/SearchConformance.d.ts.map +1 -0
- package/dist/cjs/SearchConformance.js +172 -0
- package/dist/cjs/SearchConformance.js.map +7 -0
- package/dist/cjs/SearchContract.d.ts +114 -0
- package/dist/cjs/SearchContract.d.ts.map +1 -0
- package/dist/cjs/SearchContract.js +339 -0
- package/dist/cjs/SearchContract.js.map +7 -0
- package/dist/cjs/ShellCommand.d.ts +164 -0
- package/dist/cjs/ShellCommand.d.ts.map +1 -0
- package/dist/cjs/ShellCommand.js +102 -0
- package/dist/cjs/ShellCommand.js.map +7 -0
- package/dist/cjs/StdError.d.ts +55 -0
- package/dist/cjs/StdError.d.ts.map +1 -0
- package/dist/cjs/StdError.js +74 -0
- package/dist/cjs/StdError.js.map +7 -0
- package/dist/cjs/TestRun.d.ts +311 -0
- package/dist/cjs/TestRun.d.ts.map +1 -0
- package/dist/cjs/TestRun.js +228 -0
- package/dist/cjs/TestRun.js.map +7 -0
- package/dist/cjs/TestRunner.d.ts +102 -0
- package/dist/cjs/TestRunner.d.ts.map +1 -0
- package/dist/cjs/TestRunner.js +54 -0
- package/dist/cjs/TestRunner.js.map +7 -0
- package/dist/cjs/TreeFingerprint.d.ts +140 -0
- package/dist/cjs/TreeFingerprint.d.ts.map +1 -0
- package/dist/cjs/TreeFingerprint.js +87 -0
- package/dist/cjs/TreeFingerprint.js.map +7 -0
- package/dist/cjs/UpdatePlan.d.ts +152 -0
- package/dist/cjs/UpdatePlan.d.ts.map +1 -0
- package/dist/cjs/UpdatePlan.js +87 -0
- package/dist/cjs/UpdatePlan.js.map +7 -0
- package/dist/cjs/WebFetch.d.ts +134 -0
- package/dist/cjs/WebFetch.d.ts.map +1 -0
- package/dist/cjs/WebFetch.js +140 -0
- package/dist/cjs/WebFetch.js.map +7 -0
- package/dist/cjs/WebSearch.d.ts +181 -0
- package/dist/cjs/WebSearch.d.ts.map +1 -0
- package/dist/cjs/WebSearch.js +86 -0
- package/dist/cjs/WebSearch.js.map +7 -0
- package/dist/cjs/Write.d.ts +147 -0
- package/dist/cjs/Write.d.ts.map +1 -0
- package/dist/cjs/Write.js +122 -0
- package/dist/cjs/Write.js.map +7 -0
- package/dist/cjs/index.d.ts +127 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +99 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/internal/ApplyPatch.d.ts +145 -0
- package/dist/cjs/internal/ApplyPatch.d.ts.map +1 -0
- package/dist/cjs/internal/ApplyPatch.js +462 -0
- package/dist/cjs/internal/ApplyPatch.js.map +7 -0
- package/dist/cjs/internal/CodexText.d.ts +73 -0
- package/dist/cjs/internal/CodexText.d.ts.map +1 -0
- package/dist/cjs/internal/CodexText.js +108 -0
- package/dist/cjs/internal/CodexText.js.map +7 -0
- package/dist/cjs/internal/Declaration.d.ts +49 -0
- package/dist/cjs/internal/Declaration.d.ts.map +1 -0
- package/dist/cjs/internal/Declaration.js +46 -0
- package/dist/cjs/internal/Declaration.js.map +7 -0
- package/dist/cjs/internal/Diagnostics.d.ts +77 -0
- package/dist/cjs/internal/Diagnostics.d.ts.map +1 -0
- package/dist/cjs/internal/Diagnostics.js +89 -0
- package/dist/cjs/internal/Diagnostics.js.map +7 -0
- package/dist/cjs/internal/EnvelopePrecheck.d.ts +67 -0
- package/dist/cjs/internal/EnvelopePrecheck.d.ts.map +1 -0
- package/dist/cjs/internal/EnvelopePrecheck.js +124 -0
- package/dist/cjs/internal/EnvelopePrecheck.js.map +7 -0
- package/dist/cjs/internal/Exec.d.ts +139 -0
- package/dist/cjs/internal/Exec.d.ts.map +1 -0
- package/dist/cjs/internal/Exec.js +158 -0
- package/dist/cjs/internal/Exec.js.map +7 -0
- package/dist/cjs/internal/FileMutation.d.ts +109 -0
- package/dist/cjs/internal/FileMutation.d.ts.map +1 -0
- package/dist/cjs/internal/FileMutation.js +116 -0
- package/dist/cjs/internal/FileMutation.js.map +7 -0
- package/dist/cjs/internal/FsFailure.d.ts +38 -0
- package/dist/cjs/internal/FsFailure.d.ts.map +1 -0
- package/dist/cjs/internal/FsFailure.js +40 -0
- package/dist/cjs/internal/FsFailure.js.map +7 -0
- package/dist/cjs/internal/GitWorktree.d.ts +98 -0
- package/dist/cjs/internal/GitWorktree.d.ts.map +1 -0
- package/dist/cjs/internal/GitWorktree.js +270 -0
- package/dist/cjs/internal/GitWorktree.js.map +7 -0
- package/dist/cjs/internal/Grouping.d.ts +51 -0
- package/dist/cjs/internal/Grouping.d.ts.map +1 -0
- package/dist/cjs/internal/Grouping.js +83 -0
- package/dist/cjs/internal/Grouping.js.map +7 -0
- package/dist/cjs/internal/Html.d.ts +20 -0
- package/dist/cjs/internal/Html.d.ts.map +1 -0
- package/dist/cjs/internal/Html.js +81 -0
- package/dist/cjs/internal/Html.js.map +7 -0
- package/dist/cjs/internal/Http.d.ts +95 -0
- package/dist/cjs/internal/Http.d.ts.map +1 -0
- package/dist/cjs/internal/Http.js +153 -0
- package/dist/cjs/internal/Http.js.map +7 -0
- package/dist/cjs/internal/HttpNetwork.d.ts +27 -0
- package/dist/cjs/internal/HttpNetwork.d.ts.map +1 -0
- package/dist/cjs/internal/HttpNetwork.js +146 -0
- package/dist/cjs/internal/HttpNetwork.js.map +7 -0
- package/dist/cjs/internal/Ignore.d.ts +37 -0
- package/dist/cjs/internal/Ignore.d.ts.map +1 -0
- package/dist/cjs/internal/Ignore.js +100 -0
- package/dist/cjs/internal/Ignore.js.map +7 -0
- package/dist/cjs/internal/LinearRegex.d.ts +19 -0
- package/dist/cjs/internal/LinearRegex.d.ts.map +1 -0
- package/dist/cjs/internal/LinearRegex.js +166 -0
- package/dist/cjs/internal/LinearRegex.js.map +7 -0
- package/dist/cjs/internal/Match.d.ts +85 -0
- package/dist/cjs/internal/Match.d.ts.map +1 -0
- package/dist/cjs/internal/Match.js +99 -0
- package/dist/cjs/internal/Match.js.map +7 -0
- package/dist/cjs/internal/Paths.d.ts +23 -0
- package/dist/cjs/internal/Paths.d.ts.map +1 -0
- package/dist/cjs/internal/Paths.js +52 -0
- package/dist/cjs/internal/Paths.js.map +7 -0
- package/dist/cjs/internal/Preserve.d.ts +25 -0
- package/dist/cjs/internal/Preserve.d.ts.map +1 -0
- package/dist/cjs/internal/Preserve.js +88 -0
- package/dist/cjs/internal/Preserve.js.map +7 -0
- package/dist/cjs/internal/Prune.d.ts +35 -0
- package/dist/cjs/internal/Prune.d.ts.map +1 -0
- package/dist/cjs/internal/Prune.js +54 -0
- package/dist/cjs/internal/Prune.js.map +7 -0
- package/dist/cjs/internal/SearchContract.d.ts +63 -0
- package/dist/cjs/internal/SearchContract.d.ts.map +1 -0
- package/dist/cjs/internal/SearchContract.js +46 -0
- package/dist/cjs/internal/SearchContract.js.map +7 -0
- package/dist/cjs/internal/Symbols.d.ts +39 -0
- package/dist/cjs/internal/Symbols.d.ts.map +1 -0
- package/dist/cjs/internal/Symbols.js +59 -0
- package/dist/cjs/internal/Symbols.js.map +7 -0
- package/dist/cjs/internal/TestReport.d.ts +52 -0
- package/dist/cjs/internal/TestReport.d.ts.map +1 -0
- package/dist/cjs/internal/TestReport.js +131 -0
- package/dist/cjs/internal/TestReport.js.map +7 -0
- package/dist/cjs/internal/Text.d.ts +114 -0
- package/dist/cjs/internal/Text.d.ts.map +1 -0
- package/dist/cjs/internal/Text.js +82 -0
- package/dist/cjs/internal/Text.js.map +7 -0
- package/dist/cjs/internal/Url.d.ts +13 -0
- package/dist/cjs/internal/Url.d.ts.map +1 -0
- package/dist/cjs/internal/Url.js +35 -0
- package/dist/cjs/internal/Url.js.map +7 -0
- package/dist/cjs/internal/Walk.d.ts +72 -0
- package/dist/cjs/internal/Walk.d.ts.map +1 -0
- package/dist/cjs/internal/Walk.js +108 -0
- package/dist/cjs/internal/Walk.js.map +7 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/ApplyPatch.d.ts +174 -0
- package/dist/esm/ApplyPatch.d.ts.map +1 -0
- package/dist/esm/ApplyPatch.js +346 -0
- package/dist/esm/ApplyPatch.js.map +1 -0
- package/dist/esm/Bash.d.ts +304 -0
- package/dist/esm/Bash.d.ts.map +1 -0
- package/dist/esm/Bash.js +469 -0
- package/dist/esm/Bash.js.map +1 -0
- package/dist/esm/Checkpoints.d.ts +279 -0
- package/dist/esm/Checkpoints.d.ts.map +1 -0
- package/dist/esm/Checkpoints.js +298 -0
- package/dist/esm/Checkpoints.js.map +1 -0
- package/dist/esm/Container.d.ts +132 -0
- package/dist/esm/Container.d.ts.map +1 -0
- package/dist/esm/Container.js +151 -0
- package/dist/esm/Container.js.map +1 -0
- package/dist/esm/Edit.d.ts +203 -0
- package/dist/esm/Edit.d.ts.map +1 -0
- package/dist/esm/Edit.js +296 -0
- package/dist/esm/Edit.js.map +1 -0
- package/dist/esm/ExaWebSearch.d.ts +22 -0
- package/dist/esm/ExaWebSearch.d.ts.map +1 -0
- package/dist/esm/ExaWebSearch.js +107 -0
- package/dist/esm/ExaWebSearch.js.map +1 -0
- package/dist/esm/Explore.d.ts +328 -0
- package/dist/esm/Explore.d.ts.map +1 -0
- package/dist/esm/Explore.js +106 -0
- package/dist/esm/Explore.js.map +1 -0
- package/dist/esm/Fetch.d.ts +130 -0
- package/dist/esm/Fetch.d.ts.map +1 -0
- package/dist/esm/Fetch.js +91 -0
- package/dist/esm/Fetch.js.map +1 -0
- package/dist/esm/Glob.d.ts +204 -0
- package/dist/esm/Glob.d.ts.map +1 -0
- package/dist/esm/Glob.js +177 -0
- package/dist/esm/Glob.js.map +1 -0
- package/dist/esm/Grep.d.ts +347 -0
- package/dist/esm/Grep.d.ts.map +1 -0
- package/dist/esm/Grep.js +289 -0
- package/dist/esm/Grep.js.map +1 -0
- package/dist/esm/HttpPost.d.ts +130 -0
- package/dist/esm/HttpPost.d.ts.map +1 -0
- package/dist/esm/HttpPost.js +89 -0
- package/dist/esm/HttpPost.js.map +1 -0
- package/dist/esm/LanguageServer.d.ts +90 -0
- package/dist/esm/LanguageServer.d.ts.map +1 -0
- package/dist/esm/LanguageServer.js +57 -0
- package/dist/esm/LanguageServer.js.map +1 -0
- package/dist/esm/Ls.d.ts +164 -0
- package/dist/esm/Ls.d.ts.map +1 -0
- package/dist/esm/Ls.js +178 -0
- package/dist/esm/Ls.js.map +1 -0
- package/dist/esm/Lsp.d.ts +125 -0
- package/dist/esm/Lsp.d.ts.map +1 -0
- package/dist/esm/Lsp.js +165 -0
- package/dist/esm/Lsp.js.map +1 -0
- package/dist/esm/Manifest.d.ts +918 -0
- package/dist/esm/Manifest.d.ts.map +1 -0
- package/dist/esm/Manifest.js +153 -0
- package/dist/esm/Manifest.js.map +1 -0
- package/dist/esm/NativeSearch.d.ts +38 -0
- package/dist/esm/NativeSearch.d.ts.map +1 -0
- package/dist/esm/NativeSearch.js +378 -0
- package/dist/esm/NativeSearch.js.map +1 -0
- package/dist/esm/NodeLanguageServer.d.ts +128 -0
- package/dist/esm/NodeLanguageServer.d.ts.map +1 -0
- package/dist/esm/NodeLanguageServer.js +843 -0
- package/dist/esm/NodeLanguageServer.js.map +1 -0
- package/dist/esm/PortableSearch.d.ts +24 -0
- package/dist/esm/PortableSearch.d.ts.map +1 -0
- package/dist/esm/PortableSearch.js +240 -0
- package/dist/esm/PortableSearch.js.map +1 -0
- package/dist/esm/Probe.d.ts +193 -0
- package/dist/esm/Probe.d.ts.map +1 -0
- package/dist/esm/Probe.js +225 -0
- package/dist/esm/Probe.js.map +1 -0
- package/dist/esm/Read.d.ts +189 -0
- package/dist/esm/Read.d.ts.map +1 -0
- package/dist/esm/Read.js +300 -0
- package/dist/esm/Read.js.map +1 -0
- package/dist/esm/Relocate.d.ts +73 -0
- package/dist/esm/Relocate.d.ts.map +1 -0
- package/dist/esm/Relocate.js +153 -0
- package/dist/esm/Relocate.js.map +1 -0
- package/dist/esm/Search.d.ts +163 -0
- package/dist/esm/Search.d.ts.map +1 -0
- package/dist/esm/Search.js +47 -0
- package/dist/esm/Search.js.map +1 -0
- package/dist/esm/SearchConformance.d.ts +115 -0
- package/dist/esm/SearchConformance.d.ts.map +1 -0
- package/dist/esm/SearchConformance.js +193 -0
- package/dist/esm/SearchConformance.js.map +1 -0
- package/dist/esm/SearchContract.d.ts +114 -0
- package/dist/esm/SearchContract.d.ts.map +1 -0
- package/dist/esm/SearchContract.js +461 -0
- package/dist/esm/SearchContract.js.map +1 -0
- package/dist/esm/ShellCommand.d.ts +164 -0
- package/dist/esm/ShellCommand.d.ts.map +1 -0
- package/dist/esm/ShellCommand.js +159 -0
- package/dist/esm/ShellCommand.js.map +1 -0
- package/dist/esm/StdError.d.ts +55 -0
- package/dist/esm/StdError.d.ts.map +1 -0
- package/dist/esm/StdError.js +71 -0
- package/dist/esm/StdError.js.map +1 -0
- package/dist/esm/TestRun.d.ts +311 -0
- package/dist/esm/TestRun.d.ts.map +1 -0
- package/dist/esm/TestRun.js +316 -0
- package/dist/esm/TestRun.js.map +1 -0
- package/dist/esm/TestRunner.d.ts +102 -0
- package/dist/esm/TestRunner.d.ts.map +1 -0
- package/dist/esm/TestRunner.js +68 -0
- package/dist/esm/TestRunner.js.map +1 -0
- package/dist/esm/TreeFingerprint.d.ts +140 -0
- package/dist/esm/TreeFingerprint.d.ts.map +1 -0
- package/dist/esm/TreeFingerprint.js +170 -0
- package/dist/esm/TreeFingerprint.js.map +1 -0
- package/dist/esm/UpdatePlan.d.ts +152 -0
- package/dist/esm/UpdatePlan.d.ts.map +1 -0
- package/dist/esm/UpdatePlan.js +129 -0
- package/dist/esm/UpdatePlan.js.map +1 -0
- package/dist/esm/WebFetch.d.ts +134 -0
- package/dist/esm/WebFetch.d.ts.map +1 -0
- package/dist/esm/WebFetch.js +151 -0
- package/dist/esm/WebFetch.js.map +1 -0
- package/dist/esm/WebSearch.d.ts +181 -0
- package/dist/esm/WebSearch.d.ts.map +1 -0
- package/dist/esm/WebSearch.js +134 -0
- package/dist/esm/WebSearch.js.map +1 -0
- package/dist/esm/Write.d.ts +147 -0
- package/dist/esm/Write.d.ts.map +1 -0
- package/dist/esm/Write.js +144 -0
- package/dist/esm/Write.js.map +1 -0
- package/dist/esm/index.d.ts +127 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +127 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/internal/ApplyPatch.d.ts +145 -0
- package/dist/esm/internal/ApplyPatch.d.ts.map +1 -0
- package/dist/esm/internal/ApplyPatch.js +489 -0
- package/dist/esm/internal/ApplyPatch.js.map +1 -0
- package/dist/esm/internal/CodexText.d.ts +73 -0
- package/dist/esm/internal/CodexText.d.ts.map +1 -0
- package/dist/esm/internal/CodexText.js +156 -0
- package/dist/esm/internal/CodexText.js.map +1 -0
- package/dist/esm/internal/Declaration.d.ts +49 -0
- package/dist/esm/internal/Declaration.d.ts.map +1 -0
- package/dist/esm/internal/Declaration.js +42 -0
- package/dist/esm/internal/Declaration.js.map +1 -0
- package/dist/esm/internal/Diagnostics.d.ts +77 -0
- package/dist/esm/internal/Diagnostics.d.ts.map +1 -0
- package/dist/esm/internal/Diagnostics.js +99 -0
- package/dist/esm/internal/Diagnostics.js.map +1 -0
- package/dist/esm/internal/EnvelopePrecheck.d.ts +67 -0
- package/dist/esm/internal/EnvelopePrecheck.d.ts.map +1 -0
- package/dist/esm/internal/EnvelopePrecheck.js +167 -0
- package/dist/esm/internal/EnvelopePrecheck.js.map +1 -0
- package/dist/esm/internal/Exec.d.ts +139 -0
- package/dist/esm/internal/Exec.d.ts.map +1 -0
- package/dist/esm/internal/Exec.js +193 -0
- package/dist/esm/internal/Exec.js.map +1 -0
- package/dist/esm/internal/FileMutation.d.ts +109 -0
- package/dist/esm/internal/FileMutation.d.ts.map +1 -0
- package/dist/esm/internal/FileMutation.js +123 -0
- package/dist/esm/internal/FileMutation.js.map +1 -0
- package/dist/esm/internal/FsFailure.d.ts +38 -0
- package/dist/esm/internal/FsFailure.d.ts.map +1 -0
- package/dist/esm/internal/FsFailure.js +39 -0
- package/dist/esm/internal/FsFailure.js.map +1 -0
- package/dist/esm/internal/GitWorktree.d.ts +98 -0
- package/dist/esm/internal/GitWorktree.d.ts.map +1 -0
- package/dist/esm/internal/GitWorktree.js +345 -0
- package/dist/esm/internal/GitWorktree.js.map +1 -0
- package/dist/esm/internal/Grouping.d.ts +51 -0
- package/dist/esm/internal/Grouping.d.ts.map +1 -0
- package/dist/esm/internal/Grouping.js +99 -0
- package/dist/esm/internal/Grouping.js.map +1 -0
- package/dist/esm/internal/Html.d.ts +20 -0
- package/dist/esm/internal/Html.d.ts.map +1 -0
- package/dist/esm/internal/Html.js +70 -0
- package/dist/esm/internal/Html.js.map +1 -0
- package/dist/esm/internal/Http.d.ts +95 -0
- package/dist/esm/internal/Http.d.ts.map +1 -0
- package/dist/esm/internal/Http.js +154 -0
- package/dist/esm/internal/Http.js.map +1 -0
- package/dist/esm/internal/HttpNetwork.d.ts +27 -0
- package/dist/esm/internal/HttpNetwork.d.ts.map +1 -0
- package/dist/esm/internal/HttpNetwork.js +114 -0
- package/dist/esm/internal/HttpNetwork.js.map +1 -0
- package/dist/esm/internal/Ignore.d.ts +37 -0
- package/dist/esm/internal/Ignore.d.ts.map +1 -0
- package/dist/esm/internal/Ignore.js +128 -0
- package/dist/esm/internal/Ignore.js.map +1 -0
- package/dist/esm/internal/LinearRegex.d.ts +19 -0
- package/dist/esm/internal/LinearRegex.d.ts.map +1 -0
- package/dist/esm/internal/LinearRegex.js +176 -0
- package/dist/esm/internal/LinearRegex.js.map +1 -0
- package/dist/esm/internal/Match.d.ts +85 -0
- package/dist/esm/internal/Match.d.ts.map +1 -0
- package/dist/esm/internal/Match.js +142 -0
- package/dist/esm/internal/Match.js.map +1 -0
- package/dist/esm/internal/Paths.d.ts +23 -0
- package/dist/esm/internal/Paths.d.ts.map +1 -0
- package/dist/esm/internal/Paths.js +40 -0
- package/dist/esm/internal/Paths.js.map +1 -0
- package/dist/esm/internal/Preserve.d.ts +25 -0
- package/dist/esm/internal/Preserve.d.ts.map +1 -0
- package/dist/esm/internal/Preserve.js +70 -0
- package/dist/esm/internal/Preserve.js.map +1 -0
- package/dist/esm/internal/Prune.d.ts +35 -0
- package/dist/esm/internal/Prune.d.ts.map +1 -0
- package/dist/esm/internal/Prune.js +60 -0
- package/dist/esm/internal/Prune.js.map +1 -0
- package/dist/esm/internal/SearchContract.d.ts +63 -0
- package/dist/esm/internal/SearchContract.d.ts.map +1 -0
- package/dist/esm/internal/SearchContract.js +66 -0
- package/dist/esm/internal/SearchContract.js.map +1 -0
- package/dist/esm/internal/Symbols.d.ts +39 -0
- package/dist/esm/internal/Symbols.d.ts.map +1 -0
- package/dist/esm/internal/Symbols.js +79 -0
- package/dist/esm/internal/Symbols.js.map +1 -0
- package/dist/esm/internal/TestReport.d.ts +52 -0
- package/dist/esm/internal/TestReport.d.ts.map +1 -0
- package/dist/esm/internal/TestReport.js +172 -0
- package/dist/esm/internal/TestReport.js.map +1 -0
- package/dist/esm/internal/Text.d.ts +114 -0
- package/dist/esm/internal/Text.d.ts.map +1 -0
- package/dist/esm/internal/Text.js +130 -0
- package/dist/esm/internal/Text.js.map +1 -0
- package/dist/esm/internal/Url.d.ts +13 -0
- package/dist/esm/internal/Url.d.ts.map +1 -0
- package/dist/esm/internal/Url.js +27 -0
- package/dist/esm/internal/Url.js.map +1 -0
- package/dist/esm/internal/Walk.d.ts +72 -0
- package/dist/esm/internal/Walk.d.ts.map +1 -0
- package/dist/esm/internal/Walk.js +126 -0
- package/dist/esm/internal/Walk.js.map +1 -0
- package/docs/README.md +117 -0
- package/docs/api.md +472 -0
- package/docs/concepts/effects-and-capabilities.md +136 -0
- package/docs/concepts/flows-and-handlers.md +115 -0
- package/docs/concepts/limits-and-disclosure.md +102 -0
- package/docs/concepts/search-contract.md +182 -0
- package/docs/guides/bind-the-standard-flows.md +114 -0
- package/docs/guides/implement-a-search-peer.md +133 -0
- package/docs/guides/pin-a-checkpoint.md +141 -0
- package/docs/guides/query-a-language-server.md +257 -0
- package/docs/guides/reach-the-network.md +141 -0
- package/docs/guides/read-and-edit-a-file.md +240 -0
- package/docs/guides/run-a-shell-command.md +215 -0
- package/docs/guides/run-the-test-suite.md +154 -0
- package/docs/guides/search-a-workspace.md +148 -0
- package/docs/installation.md +111 -0
- package/docs/quickstart.md +125 -0
- package/docs/reference/flows.md +556 -0
- package/docs/troubleshooting.md +322 -0
- package/package.json +439 -3
- package/src/ApplyPatch.ts +458 -0
- package/src/Bash.ts +549 -0
- package/src/Checkpoints.ts +422 -0
- package/src/Container.ts +212 -0
- package/src/Edit.ts +366 -0
- package/src/ExaWebSearch.ts +145 -0
- package/src/Explore.ts +139 -0
- package/src/Fetch.ts +117 -0
- package/src/Glob.ts +200 -0
- package/src/Grep.ts +320 -0
- package/src/HttpPost.ts +120 -0
- package/src/LanguageServer.ts +110 -0
- package/src/Ls.ts +228 -0
- package/src/Lsp.ts +184 -0
- package/src/Manifest.ts +162 -0
- package/src/NativeSearch.ts +457 -0
- package/src/NodeLanguageServer.ts +1148 -0
- package/src/PortableSearch.ts +264 -0
- package/src/Probe.ts +284 -0
- package/src/Read.ts +359 -0
- package/src/Relocate.ts +166 -0
- package/src/Search.ts +185 -0
- package/src/SearchConformance.ts +288 -0
- package/src/SearchContract.ts +489 -0
- package/src/ShellCommand.ts +201 -0
- package/src/StdError.ts +80 -0
- package/src/TestRun.ts +401 -0
- package/src/TestRunner.ts +119 -0
- package/src/TreeFingerprint.ts +200 -0
- package/src/UpdatePlan.ts +171 -0
- package/src/WebFetch.ts +194 -0
- package/src/WebSearch.ts +165 -0
- package/src/Write.ts +195 -0
- package/src/index.ts +154 -0
- package/src/internal/ApplyPatch.ts +601 -0
- package/src/internal/CodexText.ts +182 -0
- package/src/internal/Declaration.ts +60 -0
- package/src/internal/Diagnostics.ts +134 -0
- package/src/internal/EnvelopePrecheck.ts +233 -0
- package/src/internal/Exec.ts +314 -0
- package/src/internal/FileMutation.ts +231 -0
- package/src/internal/FsFailure.ts +51 -0
- package/src/internal/GitWorktree.ts +473 -0
- package/src/internal/Grouping.ts +106 -0
- package/src/internal/Html.ts +87 -0
- package/src/internal/Http.ts +209 -0
- package/src/internal/HttpNetwork.ts +153 -0
- package/src/internal/Ignore.ts +135 -0
- package/src/internal/LinearRegex.ts +173 -0
- package/src/internal/Match.ts +172 -0
- package/src/internal/Paths.ts +42 -0
- package/src/internal/Preserve.ts +108 -0
- package/src/internal/Prune.ts +62 -0
- package/src/internal/SearchContract.ts +77 -0
- package/src/internal/Symbols.ts +88 -0
- package/src/internal/TestReport.ts +194 -0
- package/src/internal/Text.ts +170 -0
- package/src/internal/Url.ts +23 -0
- package/src/internal/Walk.ts +176 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Troubleshooting"
|
|
3
|
+
description: "The failures @smthrs/std actually produces, what causes each one, and what to change: unbound services, unsatisfiable globs, refused anchors, hermetic pre-check rejections, and missing baselines."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Every failure here is a `StdError` with a `code` and a message. Find the code or
|
|
7
|
+
the message and read the matching section. The full code list is in the
|
|
8
|
+
[Flow reference](./reference/flows.md#failures).
|
|
9
|
+
|
|
10
|
+
## provider_unavailable: No search implementation is configured
|
|
11
|
+
|
|
12
|
+
**What happened.** `grep` or `glob` ran with `Search.layerNoop` bound, or with no
|
|
13
|
+
`Search` layer at all in a composition that defaulted to the refusal.
|
|
14
|
+
|
|
15
|
+
**What to change.** Bind a peer:
|
|
16
|
+
`PortableSearch.layer` for in-process search with no external binary, or
|
|
17
|
+
`NativeSearch.layer` when `rg` is on the path. See
|
|
18
|
+
[Bind the standard flows into a host](./guides/bind-the-standard-flows.md).
|
|
19
|
+
|
|
20
|
+
## A glob matches nothing, and the notice says why
|
|
21
|
+
|
|
22
|
+
**What happened.** A positive glob that no file under the root can match. The
|
|
23
|
+
most common cause is an absolute pattern: `/workspace/tests/**` against a root
|
|
24
|
+
of `/workspace` is read as the root-relative path `workspace/tests/**`.
|
|
25
|
+
|
|
26
|
+
**What to change.** Read `notice`. It names the reason, and where a leading path
|
|
27
|
+
duplicates the root, the root-relative pattern you probably meant. The other
|
|
28
|
+
reasons it reports are a directory that does not exist, a directory that is
|
|
29
|
+
never descended into (`.git`, `node_modules`, the checkpoint and test-baseline
|
|
30
|
+
scratch checkouts, and other caches or worktrees), and a hidden path
|
|
31
|
+
with `hidden` left false.
|
|
32
|
+
|
|
33
|
+
## A search found nothing because ignore files excluded paths
|
|
34
|
+
|
|
35
|
+
**What happened.** Both flows apply `.gitignore` rules from the search root and
|
|
36
|
+
nested directories, even outside Git repositories. `noIgnore` is an optional
|
|
37
|
+
boolean defaulting to `false`; explicit `false` is accepted and keeps those rules.
|
|
38
|
+
|
|
39
|
+
**What to change.** Pass `noIgnore: true` to include ignored paths. Hidden-file
|
|
40
|
+
and fixed directory skips still apply; use `hidden: true` for dot files.
|
|
41
|
+
|
|
42
|
+
## A search found nothing, and the result says retriedAsLiteral
|
|
43
|
+
|
|
44
|
+
**What happened.** The pattern contained regex metacharacters, matched nothing as
|
|
45
|
+
a regular expression, and matched something when re-run literally. The results
|
|
46
|
+
you are holding came from the literal reading.
|
|
47
|
+
|
|
48
|
+
**What to change.** Nothing is broken, but the answer is not the one you asked
|
|
49
|
+
for. If you meant a literal, pass `fixedStrings: true` so the intent is in the
|
|
50
|
+
call. If you meant a regular expression, the metacharacters are not doing what
|
|
51
|
+
you think they are.
|
|
52
|
+
|
|
53
|
+
## invalid_input: Invalid ripgrep options
|
|
54
|
+
|
|
55
|
+
**What happened.** One of the option combinations v1 refuses rather than guesses
|
|
56
|
+
at: `ignoreCase` with `smartCase`, `context` with `beforeContext` or
|
|
57
|
+
`afterContext`, or `maxCount` below 1.
|
|
58
|
+
|
|
59
|
+
**What to change.** The message names the constraint. Remove the conflicting
|
|
60
|
+
option or raise `maxCount` to at least 1. File-type registries are unsupported;
|
|
61
|
+
there is no `types` field.
|
|
62
|
+
|
|
63
|
+
## invalid_pattern: Unsupported ripgrep pattern
|
|
64
|
+
|
|
65
|
+
**What happened.** The pattern is outside Smithers Ripgrep ASCII v1. The message
|
|
66
|
+
names the construct: lookaround and special groups, backreferences and shorthand
|
|
67
|
+
classes such as `\d`, nested or empty character classes, class set operations,
|
|
68
|
+
non-ASCII characters, a pattern above 4,096 bytes, or a repetition count above
|
|
69
|
+
1,000. For a pattern that does not parse, it names the character and its column
|
|
70
|
+
and the escape that makes it literal:
|
|
71
|
+
|
|
72
|
+
```text
|
|
73
|
+
Unsupported ripgrep pattern "Rule({": "{" at column 6 is not a repetition count; write \{ for a literal brace
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The standard `grep` and `glob` flows pass these messages to the cell verbatim.
|
|
77
|
+
A peer's own `invalid_pattern` text, such as `rg` stderr, stays private.
|
|
78
|
+
|
|
79
|
+
**What to change.** Rewrite the pattern inside the subset, or set
|
|
80
|
+
`fixedStrings: true` to search the text literally. The subset is the
|
|
81
|
+
intersection of Rust's regex crate and JavaScript's `RegExp`, so that both peers
|
|
82
|
+
compile it the same way.
|
|
83
|
+
|
|
84
|
+
## no_match: oldString does not occur in the file
|
|
85
|
+
|
|
86
|
+
**What happened.** The `edit` anchor is not in the file byte for byte. There is
|
|
87
|
+
no fuzzy apply, because a match that is not your bytes is an edit nobody
|
|
88
|
+
inspected.
|
|
89
|
+
|
|
90
|
+
**What to change.** Read the message. When any line of the anchor occurs in the
|
|
91
|
+
file, the message carries that region's **actual** raw bytes and its line range,
|
|
92
|
+
so you can re-anchor without re-reading. When no line of it occurs, the message
|
|
93
|
+
says so: this is the wrong file, or the region is not what you remember.
|
|
94
|
+
|
|
95
|
+
A `read` page is raw text with no line-number gutter for exactly this reason: a
|
|
96
|
+
line copied out of one is an anchor as it stands.
|
|
97
|
+
|
|
98
|
+
## invalid_input: oldString occurs N times
|
|
99
|
+
|
|
100
|
+
**What happened.** The anchor is not unique, and `edit` refuses rather than
|
|
101
|
+
silently changing the first occurrence.
|
|
102
|
+
|
|
103
|
+
**What to change.** The message lists every line the anchor sits on. Widen the
|
|
104
|
+
anchor with surrounding context, anchor by `startLine` and `endLine` instead, or
|
|
105
|
+
pass `replaceAll: true` if you mean all of them.
|
|
106
|
+
|
|
107
|
+
## no_match: lines do not hold expect
|
|
108
|
+
|
|
109
|
+
**What happened.** A line-range anchor whose `expect` does not match what those
|
|
110
|
+
lines currently hold. The file moved under the line numbers you anchored on.
|
|
111
|
+
|
|
112
|
+
**What to change.** Re-read the file and anchor again. The message prints what
|
|
113
|
+
the lines actually hold, raw.
|
|
114
|
+
|
|
115
|
+
## is_directory, binary_file, offset_out_of_range
|
|
116
|
+
|
|
117
|
+
**What happened.** `read` was aimed at a directory, at a file holding a NUL byte
|
|
118
|
+
or invalid UTF-8, or past the end of the file.
|
|
119
|
+
|
|
120
|
+
**What to change.** Use `ls` for a directory. Binary files are not readable
|
|
121
|
+
through this flow at all. For the offset, note that reading an empty file
|
|
122
|
+
returns an empty page rather than failing, so `offset_out_of_range` means a real
|
|
123
|
+
overshoot.
|
|
124
|
+
|
|
125
|
+
## permission_denied: Permission denied
|
|
126
|
+
|
|
127
|
+
**What happened.** The host refused the path, or the capability kernel did: a
|
|
128
|
+
symlink that escapes the workspace, a hard-linked file, or a missing grant. The
|
|
129
|
+
file exists; searching for it elsewhere will not help.
|
|
130
|
+
|
|
131
|
+
**What to change.** Grant the capability the call needs, or fix the path's
|
|
132
|
+
permissions on the host.
|
|
133
|
+
|
|
134
|
+
## response_too_large on read
|
|
135
|
+
|
|
136
|
+
**What happened.** The file is larger than 64 MiB. `read` decodes the whole
|
|
137
|
+
file to count its lines, so it refuses before loading one that large.
|
|
138
|
+
|
|
139
|
+
**What to change.** Search the file with `grep`, or print the line range you
|
|
140
|
+
need with `bash`.
|
|
141
|
+
|
|
142
|
+
## outside_declared_reads or outside_declared_writes
|
|
143
|
+
|
|
144
|
+
**What happened.** A hermetic `bash` call named an explicit path token that is
|
|
145
|
+
not covered by its own `reads` or `writes`. The message names the resolved path.
|
|
146
|
+
|
|
147
|
+
**What to change.** Add the path or its glob to the declaration, or drop to
|
|
148
|
+
`mode: "unhermetic"` if the command's paths cannot be declared up front. The
|
|
149
|
+
check is lexical and fail-closed: it reads the tokens in the command line, not
|
|
150
|
+
what the process will actually touch.
|
|
151
|
+
|
|
152
|
+
## invalid_input: a hermetic call that names a container
|
|
153
|
+
|
|
154
|
+
**What happened.** `mode: "hermetic"` together with `container`. A container has
|
|
155
|
+
its own filesystem, so host paths in `reads` and `writes` cannot describe it.
|
|
156
|
+
|
|
157
|
+
**What to change.** Use `mode: "unhermetic"` for a containerised command.
|
|
158
|
+
|
|
159
|
+
The same rule refuses a hermetic `script` whose `interpreter` is not a shell:
|
|
160
|
+
the pre-check reads shell text, and Python is not shell text. Run it
|
|
161
|
+
unhermetically, or express it as shell.
|
|
162
|
+
|
|
163
|
+
## provider_unavailable: this host has no container transport
|
|
164
|
+
|
|
165
|
+
**What happened.** A call named a `container` and no `Container` service was
|
|
166
|
+
bound, or `Container.layerNoop` was.
|
|
167
|
+
|
|
168
|
+
**What to change.** Bind `Container.layerCommand()` for the `docker` or `podman`
|
|
169
|
+
CLI, or drop the `container` field and run the command on the host.
|
|
170
|
+
|
|
171
|
+
## provider_unavailable: no test runner is declared
|
|
172
|
+
|
|
173
|
+
**What happened.** `test` ran with `TestRunner.layerNoop` bound.
|
|
174
|
+
|
|
175
|
+
**What to change.** Bind `TestRunner.layer({ command, cwd })` with this
|
|
176
|
+
repository's own invocation. Until then, run the suite through `bash` with the
|
|
177
|
+
command the project's documentation gives, which is what the refusal message
|
|
178
|
+
says.
|
|
179
|
+
|
|
180
|
+
## not_found: no pristine base to compare against
|
|
181
|
+
|
|
182
|
+
**What happened.** `against: "base"` could not resolve a base commit. Either the
|
|
183
|
+
declared `baseRef` does not resolve, or neither `refs/flows/capture-base` nor
|
|
184
|
+
`HEAD` does.
|
|
185
|
+
|
|
186
|
+
**What to change.** A declared ref that does not resolve is an error rather than
|
|
187
|
+
a fallback, because a baseline against the wrong tree answers the attribution
|
|
188
|
+
question wrong. Fix the ref, or run `against: "workspace"`.
|
|
189
|
+
|
|
190
|
+
## invalid_input: the declared runner names no repository directory
|
|
191
|
+
|
|
192
|
+
**What happened.** `against: "base"` needs somewhere to check the base tree out,
|
|
193
|
+
and the runner declared neither `root` nor `cwd`.
|
|
194
|
+
|
|
195
|
+
**What to change.** Add `root` (the host path of the git repository) to the
|
|
196
|
+
`TestRunner.Runner` declaration. When the runner runs in a container, `cwd` is
|
|
197
|
+
the container's view of the same directory and `root` is the host's.
|
|
198
|
+
|
|
199
|
+
## A test run passes before and after a fix, or fails identically
|
|
200
|
+
|
|
201
|
+
**What happened.** Check `invalidProbe` on the result. A command that names a
|
|
202
|
+
test, a file, a module, an environment, or a program that does not exist never
|
|
203
|
+
reaches any code and still exits non-zero, so the exit code reads the same
|
|
204
|
+
before and after a correct fix.
|
|
205
|
+
|
|
206
|
+
**What to change.** `reason` says which kind of name failed to resolve, and
|
|
207
|
+
`evidence` says what the attribution rests on: the shell's own exit code, or
|
|
208
|
+
Jev's reading of the output and how sure it was. Repair the names and run it
|
|
209
|
+
again before drawing any conclusion. An empty `invalidProbe` on a `test` result
|
|
210
|
+
is an answer too, because the flow fails rather than reporting a run no judge
|
|
211
|
+
attributed.
|
|
212
|
+
|
|
213
|
+
## command_failed: rg exceeded the capture cap
|
|
214
|
+
|
|
215
|
+
**What happened.** One `rg` invocation produced more than
|
|
216
|
+
`NativeSearch.MAX_CAPTURE_BYTES` on a stream. The native peer refuses partial
|
|
217
|
+
output rather than returning an answer that could differ from the portable peer.
|
|
218
|
+
|
|
219
|
+
**What to change.** Narrow the search: pass a `root`, add globs, or lower
|
|
220
|
+
`limit`. A refusal to start `rg` at all is `provider_unavailable` instead.
|
|
221
|
+
|
|
222
|
+
## unsupported_content_type, response_too_large, timeout on webfetch
|
|
223
|
+
|
|
224
|
+
**What happened.** In order: a response that is not `text/*` and carries neither
|
|
225
|
+
`json` nor `xml`; a body above 5 MiB, checked against `content-length` first and
|
|
226
|
+
then while reading; or the request or body read exceeding `timeout`.
|
|
227
|
+
|
|
228
|
+
**What to change.** `webfetch` renders text, not binaries. `timeout` is in
|
|
229
|
+
seconds, defaults to 30, and is capped at 120, so a value above that is silently
|
|
230
|
+
lowered rather than honoured. For a raw body without HTML rendering, use `fetch`.
|
|
231
|
+
|
|
232
|
+
## unsupported: language server support is unavailable
|
|
233
|
+
|
|
234
|
+
**What happened.** `lsp` ran with `LanguageServer.layerNoop` bound.
|
|
235
|
+
|
|
236
|
+
**What to change.** Bind `NodeLanguageServer.layer({ command, cwd })` with a
|
|
237
|
+
server that speaks LSP on stdio, or implement the ten-method service yourself.
|
|
238
|
+
|
|
239
|
+
Two other `lsp` failures are input errors: `A normalized absolute path is
|
|
240
|
+
required` means `path` was missing or relative for an operation that needs one,
|
|
241
|
+
and `1-based line and character are required` means a position operation was
|
|
242
|
+
missing its coordinates. Both are `invalid_input`. A `path` the guarded
|
|
243
|
+
filesystem denies fails with `permission_denied`.
|
|
244
|
+
|
|
245
|
+
## permission_denied: Language server program is inside the workspace
|
|
246
|
+
|
|
247
|
+
**What happened.** `NodeLanguageServer.make` resolved `command` to a file under
|
|
248
|
+
`cwd` (a `./` path, a `PATH` entry such as `node_modules/.bin`, or a symlink
|
|
249
|
+
there), an argument named a file under `cwd`, or `command` was a launcher
|
|
250
|
+
(`sh -c`, `env`, `npx`, `pnpm exec`, `yarn`, `bunx`, or `node`/`bun` with `-e`,
|
|
251
|
+
`-p`, `-r`, `--require`, `--import` or `--loader`) whose arguments choose what
|
|
252
|
+
runs. The server would have run workspace-written code on the host.
|
|
253
|
+
|
|
254
|
+
**What to change.** Install the server outside the workspace and pass its
|
|
255
|
+
absolute path, not a launcher. For typescript-language-server, also pin
|
|
256
|
+
`initializationOptions: { tsserver: { path } }` to a host copy.
|
|
257
|
+
|
|
258
|
+
## A write of captured output replaced a file with a log tail
|
|
259
|
+
|
|
260
|
+
**What happened.** A truncated `stdout`, `stderr`, or `tail` was written to a
|
|
261
|
+
file. Those fields are fragments: the capture keeps the tail of what the process
|
|
262
|
+
printed, not the whole of it.
|
|
263
|
+
|
|
264
|
+
**What to change.** Check `stdoutTruncated`, `stderrTruncated`, or
|
|
265
|
+
`tailTruncated` before writing captured output anywhere.
|
|
266
|
+
[`@smthrs/harness`](/api/harness) reads the same flags and refuses the write for
|
|
267
|
+
you when it is the host running these tools.
|
|
268
|
+
|
|
269
|
+
## A browser bundle pulls in node:url
|
|
270
|
+
|
|
271
|
+
**What happened.** Importing `@smthrs/std` from a browser bundle. The root entry
|
|
272
|
+
point re-exports `NodeLanguageServer`, which imports `node:url`.
|
|
273
|
+
|
|
274
|
+
**What to change.** Import the browser-safe subpaths directly:
|
|
275
|
+
`@smthrs/std/Grep`, `@smthrs/std/Glob`, `@smthrs/std/Search`, and
|
|
276
|
+
`@smthrs/std/PortableSearch`.
|
|
277
|
+
|
|
278
|
+
## invalid_input: at most one step can be in_progress
|
|
279
|
+
|
|
280
|
+
**What happened.** An `update_plan` call whose plan names two running steps. The
|
|
281
|
+
rule is enforced at decode time by the `Plan` schema and again in the handler,
|
|
282
|
+
because a host that calls the handler directly never decodes.
|
|
283
|
+
|
|
284
|
+
**What to change.** Mark one step `in_progress` and leave the rest `pending` or
|
|
285
|
+
`completed`.
|
|
286
|
+
|
|
287
|
+
## invalid_input: a patch names one file twice
|
|
288
|
+
|
|
289
|
+
**What happened.** An `apply_patch` input with two sections for the same path.
|
|
290
|
+
Every update hunk is derived from the file as it is on disk, so the second
|
|
291
|
+
section would start from an original the first has already replaced, and the
|
|
292
|
+
summary would report two modifications where one write survived.
|
|
293
|
+
|
|
294
|
+
**What to change.** Put several `@@` chunks inside one section, which is the
|
|
295
|
+
shape the parser already accepts.
|
|
296
|
+
|
|
297
|
+
## stale_read: Re-read before retrying
|
|
298
|
+
|
|
299
|
+
A coding run can replace an existing file only after its `read` flow has read
|
|
300
|
+
that version. `base_digest` is the full-file SHA-256 recorded by that read;
|
|
301
|
+
`current_digest` is the current full-file SHA-256, or `absent` for a missing file.
|
|
302
|
+
An unread existing file reports `base_digest: unread`. Pagination still records
|
|
303
|
+
the complete original bytes. Internal reads performed by `edit` or `apply_patch`
|
|
304
|
+
do not refresh the base. Re-read the file and rebuild the intended change.
|
|
305
|
+
|
|
306
|
+
Read bases belong to the authenticated coding session. A restarted host loses
|
|
307
|
+
its in-memory bases and requires new reads. A multi-file patch checks all source
|
|
308
|
+
and destination bases before applying any hunk. A stale refusal does not update
|
|
309
|
+
the bases or emit successful file diagnostics.
|
|
310
|
+
|
|
311
|
+
`provider_unavailable` means no trustworthy mutation settlement is available:
|
|
312
|
+
the provider may be missing, the transport may have failed, or its receipt may
|
|
313
|
+
be malformed. An attempted commit with unknown settlement revokes the affected
|
|
314
|
+
read bases. Re-read those paths before retrying after the provider recovers;
|
|
315
|
+
re-reading alone cannot enable a missing provider. The coding host never falls
|
|
316
|
+
back to an unconditional filesystem replacement.
|
|
317
|
+
|
|
318
|
+
A batch application failure reports `command_failed` with the stopped path and
|
|
319
|
+
durable prefix length. Earlier changes may remain, and the stopped path may
|
|
320
|
+
also have changed. Re-read every affected path and rebuild the patch. This is
|
|
321
|
+
not a stale preflight refusal or a successful patch; the host does not roll it
|
|
322
|
+
back with compensating writes.
|