CodingTools
The coding tools: read, write, edit and bash, working in the conversation’s ExecEnv. Nothing installs
them automatically; install the CodingTools extension, or pick single tools.
import { CodingTools, Harness, NodeExecEnv, Registry } from "@effective-harness/core"import * as Layer from "effect/Layer"
const layer = Harness.layer({ env: NodeExecEnv.layer() }).pipe( Layer.provideMerge(Registry.layer([CodingTools.CodingTools])))edit and write calls on one file (same environment ID and canonical path) run one at a time, in arrival order.
Since v0.0.0
BashArgs
Section titled “BashArgs”Signature
declare const BashArgs: anySince v0.0.0
BashExecution
Section titled “BashExecution”Signature
declare const BashExecution: anySince v0.0.0
BashOptions
Section titled “BashOptions”Signature
declare const BashOptions: anySince v0.0.0
BashPrepare
Section titled “BashPrepare”Signature
declare const BashPrepare: anySince v0.0.0
CodingToolError
Section titled “CodingToolError”Signature
declare const CodingToolError: typeof CodingToolErrorSince v0.0.0
CodingTools
Section titled “CodingTools”read, write, edit and bash.
Signature
declare const CodingTools: Extension.Extension<Any>Since v0.0.0
EditArgs
Section titled “EditArgs”Signature
declare const EditArgs: anySince v0.0.0
EditDetails
Section titled “EditDetails”Signature
declare const EditDetails: anySince v0.0.0
ReadArgs
Section titled “ReadArgs”Signature
declare const ReadArgs: anySince v0.0.0
ReadDetails
Section titled “ReadDetails”Signature
declare const ReadDetails: anySince v0.0.0
WriteArgs
Section titled “WriteArgs”Signature
declare const WriteArgs: anySince v0.0.0
Signature
declare const bash: Tool<any>Since v0.0.0
Signature
declare const edit: Tool<any>Since v0.0.0
makeBash
Section titled “makeBash”A bash tool, optionally with a command prefix or a prepare step.
Signature
declare const makeBash: (options?: Bash.BashOptions) => Tool<Bash.BashArgs>Since v0.0.0
makeEdit
Section titled “makeEdit”An edit tool.
Signature
declare const makeEdit: () => Tool<Edit.EditArgs>Since v0.0.0
makeRead
Section titled “makeRead”A read tool: text files with offset/limit, truncated to 2,000 lines or 50 KiB.
Signature
declare const makeRead: () => Tool<Read.ReadArgs>Since v0.0.0
makeWrite
Section titled “makeWrite”A write tool.
Signature
declare const makeWrite: () => Tool<Write.WriteArgs>Since v0.0.0
prepareEditArguments
Section titled “prepareEditArguments”Signature
declare const prepareEditArguments: (input: unknown) => unknownSince v0.0.0
Signature
declare const read: Tool<any>Since v0.0.0
withFileMutationQueue
Section titled “withFileMutationQueue”Signature
declare const withFileMutationQueue: <A, E, R>( env: ExecEnv, path: string, body: Effect.Effect<A, E, R>) => Effect.Effect<A, E | FileError, R>Since v0.0.0
Signature
declare const write: Tool<any>Since v0.0.0