Classes
Section titled “Classes”DirtyTree
Section titled “DirtyTree”An operation that requires a clean tree found uncommitted changes.
Extends
Section titled “Extends”object&YieldableError<this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DirtyTree(...args): DirtyTree;Parameters
Section titled “Parameters”…[props: object, options?: MakeOptions]
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Schema.TaggedError<DirtyTree>()("DirtyTree", { paths: Schema.Array(Schema.String) }).constructor
Properties
Section titled “Properties”readonly paths: readonly string[];Inherited from
Section titled “Inherited from”Schema.TaggedError<DirtyTree>()("DirtyTree", { paths: Schema.Array(Schema.String) }).paths
DuplicateContent
Section titled “DuplicateContent”The content hash already belongs to an active file. existingPath is what the
caller wanted to create, so a deduped write is answerable without a second query.
Extends
Section titled “Extends”object&YieldableError<this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DuplicateContent(...args): DuplicateContent;Parameters
Section titled “Parameters”…[props: object, options?: MakeOptions]
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Schema.TaggedError<DuplicateContent>()("DuplicateContent", { contentHash: Schema.String, existingPath: Schema.String }).constructor
Properties
Section titled “Properties”contentHash
Section titled “contentHash”readonly contentHash: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<DuplicateContent>()("DuplicateContent", { contentHash: Schema.String, existingPath: Schema.String }).contentHash
existingPath
Section titled “existingPath”readonly existingPath: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<DuplicateContent>()("DuplicateContent", { contentHash: Schema.String, existingPath: Schema.String }).existingPath
GitFailure
Section titled “GitFailure”A git subprocess exited non-zero, or could not be spawned. command is the subcommand name
only, never the full argv, because arguments carry memory paths and commit subjects carry memory
titles, and a GitFailure is returned to an agent through a tool response. The stderr text goes
to Effect.logError at the spawning boundary instead of into the payload.
Declared here rather than in @memhtml/store because two packages spawn git: the store through
its Git service, and @memhtml/session through its own execFile (it needs GIT_INDEX_FILE,
which the store scrubs). One class means one _tag, so the CLI’s ERR_GIT mapping and an
instanceof check hold for either producer.
Extends
Section titled “Extends”object&YieldableError<this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new GitFailure(...args): GitFailure;Parameters
Section titled “Parameters”…[props: object, options?: MakeOptions]
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Schema.TaggedError<GitFailure>()("GitFailure", { command: Schema.String, /** The process exit code, or `null` when the process never started. */ exitCode: Schema.NullOr(Schema.Int) }).constructor
Properties
Section titled “Properties”command
Section titled “command”readonly command: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<GitFailure>()("GitFailure", { command: Schema.String, /** The process exit code, or `null` when the process never started. */ exitCode: Schema.NullOr(Schema.Int) }).command
exitCode
Section titled “exitCode”readonly exitCode: number | null;The process exit code, or null when the process never started.
Inherited from
Section titled “Inherited from”Schema.TaggedError<GitFailure>()("GitFailure", { command: Schema.String, /** The process exit code, or `null` when the process never started. */ exitCode: Schema.NullOr(Schema.Int) }).exitCode
InvalidMemory
Section titled “InvalidMemory”A memory that violates the file format or the type/placement vocabulary.
Extends
Section titled “Extends”object&YieldableError<this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InvalidMemory(...args): InvalidMemory;Parameters
Section titled “Parameters”…[props: object, options?: MakeOptions]
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Schema.TaggedError<InvalidMemory>()("InvalidMemory", { reason: Schema.String }).constructor
Properties
Section titled “Properties”reason
Section titled “reason”readonly reason: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<InvalidMemory>()("InvalidMemory", { reason: Schema.String }).reason
LlmContractViolation
Section titled “LlmContractViolation”The model broke its structured-output contract: an undecodable tool payload, a
max_tokens stop, or a refusal. The item is reported with no result, and a
violation does not become a value.
Extends
Section titled “Extends”object&YieldableError<this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LlmContractViolation(...args): LlmContractViolation;Parameters
Section titled “Parameters”…[props: object, options?: MakeOptions]
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Schema.TaggedError<LlmContractViolation>()( "LlmContractViolation", { reason: Schema.String } ).constructor
Properties
Section titled “Properties”reason
Section titled “reason”readonly reason: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<LlmContractViolation>()( "LlmContractViolation", { reason: Schema.String } ).reason
ModelUnavailable
Section titled “ModelUnavailable”Bedrock refused the call: throttling, an unavailable model, or a denied region.
Extends
Section titled “Extends”object&YieldableError<this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ModelUnavailable(...args): ModelUnavailable;Parameters
Section titled “Parameters”…[props: object, options?: MakeOptions]
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Schema.TaggedError<ModelUnavailable>()("ModelUnavailable", { modelId: Schema.String, reason: Schema.String }).constructor
Properties
Section titled “Properties”modelId
Section titled “modelId”readonly modelId: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<ModelUnavailable>()("ModelUnavailable", { modelId: Schema.String, reason: Schema.String }).modelId
reason
Section titled “reason”readonly reason: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<ModelUnavailable>()("ModelUnavailable", { modelId: Schema.String, reason: Schema.String }).reason
PathNotFound
Section titled “PathNotFound”A repo-root-relative path with no file behind it.
Extends
Section titled “Extends”object&YieldableError<this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PathNotFound(...args): PathNotFound;Parameters
Section titled “Parameters”…[props: object, options?: MakeOptions]
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Schema.TaggedError<PathNotFound>()("PathNotFound", { path: Schema.String }).constructor
Properties
Section titled “Properties”readonly path: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<PathNotFound>()("PathNotFound", { path: Schema.String }).path
StorageFailure
Section titled “StorageFailure”A driver or filesystem rejection, reduced to the operation that failed.
The payload deliberately excludes SQL text, parameters, and row contents so a
storage error can be returned to an agent without leaking corpus content; the
driver’s own message goes to Effect.logError at the adapter edge instead.
Extends
Section titled “Extends”object&YieldableError<this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new StorageFailure(...args): StorageFailure;Parameters
Section titled “Parameters”…[props: object, options?: MakeOptions]
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Schema.TaggedError<StorageFailure>()("StorageFailure", { operation: Schema.String }).constructor
Properties
Section titled “Properties”operation
Section titled “operation”readonly operation: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<StorageFailure>()("StorageFailure", { operation: Schema.String }).operation
StoreConfigInvalid
Section titled “StoreConfigInvalid”The store’s policy file (memhtml.config.json at the store root) could not be read or does not
decode. Fails closed: every write that needs the policy refuses rather than running under the
library defaults, because a typo in a policy file must not loosen the policy it states. path is
the file; reason names what is wrong and where.
Extends
Section titled “Extends”object&YieldableError<this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new StoreConfigInvalid(...args): StoreConfigInvalid;Parameters
Section titled “Parameters”…[props: object, options?: MakeOptions]
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Schema.TaggedError<StoreConfigInvalid>()( "StoreConfigInvalid", { path: Schema.String, reason: Schema.String } ).constructor
Properties
Section titled “Properties”readonly path: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<StoreConfigInvalid>()( "StoreConfigInvalid", { path: Schema.String, reason: Schema.String } ).path
reason
Section titled “reason”readonly reason: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<StoreConfigInvalid>()( "StoreConfigInvalid", { path: Schema.String, reason: Schema.String } ).reason
V1DoorClosed
Section titled “V1DoorClosed”A v1 door that creates a record was called where the store’s v1Doors mode closes it. door is
the command or tool (write, memory_write); session is the MEMHTML_SESSION the process
carries, or null when the mode is closed and no session is set.
Extends
Section titled “Extends”object&YieldableError<this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new V1DoorClosed(...args): V1DoorClosed;Parameters
Section titled “Parameters”…[props: object, options?: MakeOptions]
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Schema.TaggedError<V1DoorClosed>()("V1DoorClosed", { door: Schema.String, mode: Schema.String, session: Schema.NullOr(Schema.String) }).constructor
Properties
Section titled “Properties”readonly door: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<V1DoorClosed>()("V1DoorClosed", { door: Schema.String, mode: Schema.String, session: Schema.NullOr(Schema.String) }).door
readonly mode: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<V1DoorClosed>()("V1DoorClosed", { door: Schema.String, mode: Schema.String, session: Schema.NullOr(Schema.String) }).mode
session
Section titled “session”readonly session: string | null;Inherited from
Section titled “Inherited from”Schema.TaggedError<V1DoorClosed>()("V1DoorClosed", { door: Schema.String, mode: Schema.String, session: Schema.NullOr(Schema.String) }).session
WriteConflict
Section titled “WriteConflict”Two writers touched the same file. ourSha is the blob sha this process wrote
from, theirSha the blob sha now in the tree. Recovery belongs to the caller:
re-read the current content and reapply.
Extends
Section titled “Extends”object&YieldableError<this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WriteConflict(...args): WriteConflict;Parameters
Section titled “Parameters”…[props: object, options?: MakeOptions]
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Schema.TaggedError<WriteConflict>()("WriteConflict", { path: Schema.String, ourSha: Schema.String, theirSha: Schema.String }).constructor
Properties
Section titled “Properties”ourSha
Section titled “ourSha”readonly ourSha: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<WriteConflict>()("WriteConflict", { path: Schema.String, ourSha: Schema.String, theirSha: Schema.String }).ourSha
readonly path: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<WriteConflict>()("WriteConflict", { path: Schema.String, ourSha: Schema.String, theirSha: Schema.String }).path
theirSha
Section titled “theirSha”readonly theirSha: string = Schema.String;Inherited from
Section titled “Inherited from”Schema.TaggedError<WriteConflict>()("WriteConflict", { path: Schema.String, ourSha: Schema.String, theirSha: Schema.String }).theirSha