Function
mustTruncate
(result: {
metadata: { truncated?: boolean; exit?: number | null } & Record<string, unknown>
output: string
})
Source from the content-addressed store, hash-verified
| 171 | }) |
| 172 | |
| 173 | const mustTruncate = (result: { |
| 174 | metadata: { truncated?: boolean; exit?: number | null } & Record<string, unknown> |
| 175 | output: string |
| 176 | }) => { |
| 177 | if (result.metadata.truncated) return |
| 178 | throw new Error( |
| 179 | [`shell: ${process.env.SHELL || ""}`, `exit: ${String(result.metadata.exit)}`, "output:", result.output].join("\n"), |
| 180 | ) |
| 181 | } |
| 182 | |
| 183 | describe("tool.shell", () => { |
| 184 | each("basic", () => |
Tested by
no test coverage detected