strictcli v0.39.0 /typescript/src/errors
On this page

errors.ts centralizes every user-facing error and panic message template used across the strictcli package, mirroring go/strictcli/errors.go one-to-one.

#typescript/src/errors

#typescript/src/errors

errors.ts centralizes every user-facing error and panic message template used across the strictcli package, mirroring go/strictcli/errors.go one-to-one. That mirror means the same section grouping (headers keep the Go source-file labels for catalog traceability -- conformance/check_error_parity.py extracts the Go catalog from those sections), same "(parse-time)" section markers, and byte-identical output for identical inputs.

Conventions:

  • Go %q slots are reproduced via q() (strconv.Quote semantics).
  • Slots that embed pre-formatted values (Go %v / %T, and any float) take the

already-formatted string as the parameter, so this module stays formatting-agnostic (the shortest-canonical float formatter lands in float.ts in a later subphase).

  • Go %d slots take number parameters.
  • Go error-typed parameters become errStr: string (the message text).

#RegistrationError

TS typescript
export class RegistrationError extends Error

Thrown for registration-time validation failures (Go: panic / Python: ValueError).

#ParseError

TS typescript
export class ParseError extends Error

Thrown for parse-time failures (printed to stderr, process exits with code 1). Internal; not re-exported.

#InvokeError

TS typescript
export class InvokeError extends Error

Thrown by app.call() / app.jsonSchema() when programmatic invocation fails (unknown command, missing required flags, mutex violations, dependency errors). Mirrors Go's InvokeError (invoke.go) and Python's InvokeError.

#EffectFailed

TS typescript
export class EffectFailed extends Error

Thrown when an effect operation fails: a run whose child exits nonzero, an http whose status is outside 200-299, or invalid UTF-8 on a captured stream. A failed operation is an error, not a value; check: false opts a single call out. Mirrors Python's EffectFailed and Go's non-nil error.

#DryRunTruncated

TS typescript
export class DryRunTruncated extends Error

Thrown when handler code extracts from or branches on an Unsettled carrier. Internal (never re-exported): the framework catches it at the dispatch boundary, prints the already-recorded would-do log, and truncates.

TS ceiling: unlike Python's BaseException-derived twin, a handler's catch (e) CAN swallow this. The dispatch sites therefore also consult the effects handle's truncated record after the handler returns, so a swallowed truncation still fails closed.

#errListOfBadItemType

TS typescript
export function errListOfBadItemType(itemType: number): string

#errDictOfBadValueType

TS typescript
export function errDictOfBadValueType(valueType: number): string

#errWithConfigConflictModeBadMode

TS typescript
export function errWithConfigConflictModeBadMode(mode: string): string

#errHandshakeEnvVarEmptyHelp

TS typescript
export function errHandshakeEnvVarEmptyHelp(envVar: string): string

#errDuplicateHandshakeEnvVar

TS typescript
export function errDuplicateHandshakeEnvVar(envVar: string): string

#errConnectionEnvVarEmptyHelp

TS typescript
export function errConnectionEnvVarEmptyHelp(envVar: string): string

#errConnectionEnvIsAlreadyInfraRoot

TS typescript
export function errConnectionEnvIsAlreadyInfraRoot(ev: string): string

#errConnectionEnvIsAlreadyHandshake

TS typescript
export function errConnectionEnvIsAlreadyHandshake(ev: string): string

#errConnectionURLFlagUnbound

TS typescript
export function errConnectionURLFlagUnbound(flagName: string): string

#errConnectionEnvWithoutURLFlag

TS typescript
export function errConnectionEnvWithoutURLFlag(flagName: string): string

#errConnectionEnvWithPerFlagEnv

TS typescript
export function errConnectionEnvWithPerFlagEnv(flagName: string): string

#errFlagConnectionEnvUndeclared

TS typescript
export function errFlagConnectionEnvUndeclared(

#errConflictModeBadMode

TS typescript
export function errConflictModeBadMode(mode: string): string

#errInvalidTagName

TS typescript
export function errInvalidTagName(t: string): string

#errArgHelpEmpty

TS typescript
export function errArgHelpEmpty(): string

#errRequiredArgCannotHaveDefault

TS typescript
export function errRequiredArgCannotHaveDefault(): string

#errArgListTypeRequiresVariadic

TS typescript
export function errArgListTypeRequiresVariadic(name: string): string

#errArgListItemTypeBad

TS typescript
export function errArgListItemTypeBad(name: string): string

#errArgDictTypeNotSupported

TS typescript
export function errArgDictTypeNotSupported(name: string): string

#errArgTypeBad

TS typescript
export function errArgTypeBad(t: number): string

#errArgChoicesIncompatibleListType

TS typescript
export function errArgChoicesIncompatibleListType(name: string): string

#errArgChoicesIncompatibleBool

TS typescript
export function errArgChoicesIncompatibleBool(name: string): string

#errArgChoicesEmpty

TS typescript
export function errArgChoicesEmpty(name: string): string

#errArgChoiceTypeMismatch

TS typescript
export function errArgChoiceTypeMismatch(

#errArgListDefaultMustBeList

TS typescript
export function errArgListDefaultMustBeList(name: string): string

#errArgExplicitEmptyDefaultRedundantList

TS typescript
export function errArgExplicitEmptyDefaultRedundantList(name: string): string

#errArgDefaultElementTypeMismatch

TS typescript
export function errArgDefaultElementTypeMismatch(

#errArgStrDefaultTypeMismatch

TS typescript
export function errArgStrDefaultTypeMismatch(

#errArgIntDefaultTypeMismatch

TS typescript
export function errArgIntDefaultTypeMismatch(

#errArgFloatDefaultTypeMismatch

TS typescript
export function errArgFloatDefaultTypeMismatch(

#errArgBoolDefaultTypeMismatch

TS typescript
export function errArgBoolDefaultTypeMismatch(

#errArgDefaultNotInChoices

TS typescript
export function errArgDefaultNotInChoices(

#errFlagHelpEmpty

TS typescript
export function errFlagHelpEmpty(): string

#errFlagForceReserved

TS typescript
export function errFlagForceReserved(): string

#errFlagNoPrefixReserved

TS typescript
export function errFlagNoPrefixReserved(name: string): string

#errFlagRepeatableIncompatibleBool

TS typescript
export function errFlagRepeatableIncompatibleBool(name: string): string

#errFlagChoicesIncompatibleCompound

TS typescript
export function errFlagChoicesIncompatibleCompound(name: string): string

#errFlagRepeatableRequiresExplicitUnique

TS typescript
export function errFlagRepeatableRequiresExplicitUnique(name: string): string

#errFlagUniqueRequiresRepeatable

TS typescript
export function errFlagUniqueRequiresRepeatable(name: string): string

#errFlagEnvSeparatorRequiresRepeatable

TS typescript
export function errFlagEnvSeparatorRequiresRepeatable(name: string): string

#errFlagEnvSeparatorRequiresEnv

TS typescript
export function errFlagEnvSeparatorRequiresEnv(name: string): string

#errFlagRepeatableEnvRequiresSeparator

TS typescript
export function errFlagRepeatableEnvRequiresSeparator(name: string): string

#errFlagEnvSeparatorSingleChar

TS typescript
export function errFlagEnvSeparatorSingleChar(name: string): string

#errFlagEnvSeparatorBackslash

TS typescript
export function errFlagEnvSeparatorBackslash(name: string): string

#errFlagChoicesIncompatibleBool

TS typescript
export function errFlagChoicesIncompatibleBool(name: string): string

#errFlagChoicesEmpty

TS typescript
export function errFlagChoicesEmpty(name: string): string

#errFlagChoiceTypeMismatch

TS typescript
export function errFlagChoiceTypeMismatch(

#errFlagIntDefaultTypeMismatch

TS typescript
export function errFlagIntDefaultTypeMismatch(

#errFlagFloatDefaultTypeMismatch

TS typescript
export function errFlagFloatDefaultTypeMismatch(

#errFlagDictDefaultMustBeMap

TS typescript
export function errFlagDictDefaultMustBeMap(name: string): string

#errFlagExplicitEmptyDefaultRedundantDict

TS typescript
export function errFlagExplicitEmptyDefaultRedundantDict(name: string): string

#errFlagDefaultValueForKey

TS typescript
export function errFlagDefaultValueForKey(

#errFlagListDefaultMustBeSlice

TS typescript
export function errFlagListDefaultMustBeSlice(name: string): string

#errFlagExplicitEmptyDefaultRedundantList

TS typescript
export function errFlagExplicitEmptyDefaultRedundantList(name: string): string

#errFlagDefaultElementError

TS typescript
export function errFlagDefaultElementError(

#errFlagRepeatableDefaultMustBeList

TS typescript
export function errFlagRepeatableDefaultMustBeList(name: string): string

#errFlagExplicitEmptyDefaultRedundantRepeatable

TS typescript
export function errFlagExplicitEmptyDefaultRedundantRepeatable(

#errFlagDefaultElementTypeMismatch

TS typescript
export function errFlagDefaultElementTypeMismatch(

#errFlagDefaultNotInChoices

TS typescript
export function errFlagDefaultNotInChoices(

#errFlagDictCannotCombineRepeatable

TS typescript
export function errFlagDictCannotCombineRepeatable(name: string): string

#errFlagDictCannotCombineUnique

TS typescript
export function errFlagDictCannotCombineUnique(name: string): string

#errFlagDictCannotCombineChoices

TS typescript
export function errFlagDictCannotCombineChoices(name: string): string

#errFlagConflictModeBad

TS typescript
export function errFlagConflictModeBad(name: string, gotRepr: string): string

#errFlagDictCannotUseEnvSeparator

TS typescript
export function errFlagDictCannotUseEnvSeparator(name: string): string

#errFlagDictDefaultKeyMustBeString

TS typescript
export function errFlagDictDefaultKeyMustBeString(

#errArgDictTypeNotSupportedOnArgs

TS typescript
export function errArgDictTypeNotSupportedOnArgs(name: string): string

#errArgListTypeOnArgsRequiresVariadicTrue

TS typescript
export function errArgListTypeOnArgsRequiresVariadicTrue(name: string): string

#errCommandImpliesValueMustBeBool

TS typescript
export function errCommandImpliesValueMustBeBool(

#errAppHelpEmpty

TS typescript
export function errAppHelpEmpty(): string

#errDuplicateInfraRootEnvVar

TS typescript
export function errDuplicateInfraRootEnvVar(envVar: string): string

#errHandshakeIsAlreadyInfraRoot

TS typescript
export function errHandshakeIsAlreadyInfraRoot(ev: string): string

#errCannotUseBothChecksAndEmbed

TS typescript
export function errCannotUseBothChecksAndEmbed(): string

#errChecksPathNotExist

TS typescript
export function errChecksPathNotExist(path: string): string

#errChecksTomlAppMismatch

TS typescript
export function errChecksTomlAppMismatch(

#errTestCoverageCannotCreateDir

TS typescript
export function errTestCoverageCannotCreateDir(errStr: string): string

#errCannotRegisterCheckNotEnabled

TS typescript
export function errCannotRegisterCheckNotEnabled(name: string): string

#errCannotRegisterCheckNotDeclared

TS typescript
export function errCannotRegisterCheckNotDeclared(name: string): string

#errCheckDuplicateRegistration

TS typescript
export function errCheckDuplicateRegistration(name: string): string

#errCheckSeverityMismatch

TS typescript
export function errCheckSeverityMismatch(

#errTagContractViolation

TS typescript
export function errTagContractViolation(

#errCommandConfigFieldsUnknownField

TS typescript
export function errCommandConfigFieldsUnknownField(

#errConfigFieldFlagDefaultDisagree

TS typescript
export function errConfigFieldFlagDefaultDisagree(

#errRelativeToRootUndeclared

TS typescript
export function errRelativeToRootUndeclared(envVar: string): string

#errFlagRelativeToRootUndeclared

TS typescript
export function errFlagRelativeToRootUndeclared(

#errCommandFlagRelativeToRootUndeclared

TS typescript
export function errCommandFlagRelativeToRootUndeclared(

#errCommandMissingHelp

TS typescript
export function errCommandMissingHelp(name: string): string

#errCommandPassthroughCannotHave

TS typescript
export function errCommandPassthroughCannotHave(

#errGlobalFlagNameReserved

TS typescript
export function errGlobalFlagNameReserved(name: string): string

#errGlobalShortFlagReserved

TS typescript
export function errGlobalShortFlagReserved(short: string): string

#errDuplicateGlobalFlag

TS typescript
export function errDuplicateGlobalFlag(name: string): string

#errGroupHelpEmpty

TS typescript
export function errGroupHelpEmpty(): string

#errGroupCollidesWithCommand

TS typescript
export function errGroupCollidesWithCommand(name: string): string

#errGroupAlreadyRegistered

TS typescript
export function errGroupAlreadyRegistered(name: string): string

#errCommandCollidesWithGroup

TS typescript
export function errCommandCollidesWithGroup(name: string): string

#errDeprecatedNameEmpty

TS typescript
export function errDeprecatedNameEmpty(): string

#errDeprecatedMessageEmpty

TS typescript
export function errDeprecatedMessageEmpty(name: string): string

#errDeprecatedCollidesCommand

TS typescript
export function errDeprecatedCollidesCommand(name: string): string

#errDeprecatedCollidesGroup

TS typescript
export function errDeprecatedCollidesGroup(name: string): string

#errDeprecatedAlreadyRegistered

TS typescript
export function errDeprecatedAlreadyRegistered(name: string): string

#errCommandMutexMinFlags

TS typescript
export function errCommandMutexMinFlags(name: string, count: number): string

#errCommandFlagInMultipleMutex

TS typescript
export function errCommandFlagInMultipleMutex(

#errCommandFlagCollidesGlobal

TS typescript
export function errCommandFlagCollidesGlobal(

#errCommandDuplicateFlag

TS typescript
export function errCommandDuplicateFlag(

#errCommandDuplicateArg

TS typescript
export function errCommandDuplicateArg(name: string, argName: string): string

#errCommandAtMostOneVariadic

TS typescript
export function errCommandAtMostOneVariadic(name: string): string

#errCommandVariadicMustBeLast

TS typescript
export function errCommandVariadicMustBeLast(

#errCommandFlagMissingHelp

TS typescript
export function errCommandFlagMissingHelp(

#errCommandEnvVarPrefix

TS typescript
export function errCommandEnvVarPrefix(

#errCommandCoRequiredMinFlags

TS typescript
export function errCommandCoRequiredMinFlags(

#errCommandCoRequiredUnknownFlag

TS typescript
export function errCommandCoRequiredUnknownFlag(

#errCommandCoRequiredDuplicate

TS typescript
export function errCommandCoRequiredDuplicate(

#errCommandRequiresSameFlag

TS typescript
export function errCommandRequiresSameFlag(name: string, flag: string): string

#errCommandRequiresUnknownFlag

TS typescript
export function errCommandRequiresUnknownFlag(

#errCommandImpliesSameFlag

TS typescript
export function errCommandImpliesSameFlag(name: string, flag: string): string

#errCommandImpliesUnknownFlag

TS typescript
export function errCommandImpliesUnknownFlag(

#errCommandImpliesTriggerNotBool

TS typescript
export function errCommandImpliesTriggerNotBool(

#errCommandImpliesTargetNotBool

TS typescript
export function errCommandImpliesTargetNotBool(

#errExpectedStrGot

TS typescript
export function errExpectedStrGot(typeDesc: string): string

#errExpectedIntGot

TS typescript
export function errExpectedIntGot(typeDesc: string): string

#errExpectedFloatGot

TS typescript
export function errExpectedFloatGot(typeDesc: string): string

#errExpectedBoolGot

TS typescript
export function errExpectedBoolGot(typeDesc: string): string

#errHermeticConfigMutuallyExclusive

TS typescript
export function errHermeticConfigMutuallyExclusive(): string

#errHermeticWithConfigCommands

TS typescript
export function errHermeticWithConfigCommands(): string

#errExpectedBoolean

TS typescript
export function errExpectedBoolean(s: string): string

#errExpectedInteger

TS typescript
export function errExpectedInteger(s: string): string

#errExpectedFloat

TS typescript
export function errExpectedFloat(s: string): string

#errNaNNotAllowed

TS typescript
export function errNaNNotAllowed(): string

#errInfNotAllowed

TS typescript
export function errInfNotAllowed(): string

#errAtPrefixStdinOnce

TS typescript
export function errAtPrefixStdinOnce(flagName: string): string

#errAtPrefixCannotReadStdin

TS typescript
export function errAtPrefixCannotReadStdin(flagName: string): string

#errAtPrefixFileTooLarge

TS typescript
export function errAtPrefixFileTooLarge(flagName: string): string

#errAtPrefixFileNotFound

TS typescript
export function errAtPrefixFileNotFound(

#errAtPrefixCannotReadFile

TS typescript
export function errAtPrefixCannotReadFile(

#errBoolFlagNoValue

TS typescript
export function errBoolFlagNoValue(flagPart: string): string

#errBoolNegationNoValue

TS typescript
export function errBoolNegationNoValue(flagPart: string): string

#errUnknownFlag

TS typescript
export function errUnknownFlag(tok: string): string

#errFlagRequiresValue

TS typescript
export function errFlagRequiresValue(tok: string): string

#errFlagDuplicateValue

TS typescript
export function errFlagDuplicateValue(flagName: string, value: string): string

#errWrappedFromEnvVar

TS typescript
export function errWrappedFromEnvVar(errStr: string, envVar: string): string

#errListFlagEnvRequiresSeparator

TS typescript
export function errListFlagEnvRequiresSeparator(flagName: string): string

#errFlagDuplicateValueFromEnv

TS typescript
export function errFlagDuplicateValueFromEnv(

#errInvalidBoolEnvValue

TS typescript
export function errInvalidBoolEnvValue(

#errFlagErrFromEnvVar

TS typescript
export function errFlagErrFromEnvVar(

#errConfigValueError

TS typescript
export function errConfigValueError(flagName: string, errStr: string): string

#errFlagSetInBothAndConfig

TS typescript
export function errFlagSetInBothAndConfig(

#errConfigValueDuplicate

TS typescript
export function errConfigValueDuplicate(

#errFlagSetInBothCliAndConfig

TS typescript
export function errFlagSetInBothCliAndConfig(flagName: string): string

#errMutuallyExclusive

TS typescript
export function errMutuallyExclusive(setFlags: string): string

#errOneOfRequired

TS typescript
export function errOneOfRequired(names: string): string

#errImpliesConflict

TS typescript
export function errImpliesConflict(

#errFlagsMustBeUsedTogether

TS typescript
export function errFlagsMustBeUsedTogether(names: string): string

#errFlagRequiresFlag

TS typescript
export function errFlagRequiresFlag(flag: string, dependsOn: string): string

#errFlagValueError

TS typescript
export function errFlagValueError(flagName: string, msg: string): string

#errMissingRequiredArgument

TS typescript
export function errMissingRequiredArgument(name: string): string

#errUnexpectedArgument

TS typescript
export function errUnexpectedArgument(value: string): string

#errArgInvalidChoice

TS typescript
export function errArgInvalidChoice(

#errFlagInvalidChoice

TS typescript
export function errFlagInvalidChoice(

#errArgumentWrapped

TS typescript
export function errArgumentWrapped(argName: string, msg: string): string

#errArgumentExpectedFloat

TS typescript
export function errArgumentExpectedFloat(argName: string, raw: string): string

#errDictJsonValueForKeyMustBeString

TS typescript
export function errDictJsonValueForKeyMustBeString(

#errDictJsonValueForKeyMustBeInteger

TS typescript
export function errDictJsonValueForKeyMustBeInteger(

#errDictJsonValueForKeyMustBeNumber

TS typescript
export function errDictJsonValueForKeyMustBeNumber(

#errDictUnsupportedValueType

TS typescript
export function errDictUnsupportedValueType(

#errDictInvalidJson

TS typescript
export function errDictInvalidJson(flagName: string, errStr: string): string

#errDictJsonValueMustBeObject

TS typescript
export function errDictJsonValueMustBeObject(

#errDictExpectedKeyValueOrJson

TS typescript
export function errDictExpectedKeyValueOrJson(

#errDictEmptyKey

TS typescript
export function errDictEmptyKey(flagName: string, raw: string): string

#errDictValueForKey

TS typescript
export function errDictValueForKey(

#errDictDuplicateKey

TS typescript
export function errDictDuplicateKey(flagName: string, key: string): string

#errDictInvalidJsonInEnvVar

TS typescript
export function errDictInvalidJsonInEnvVar(

#errDictEnvVarMustBeJsonObject

TS typescript
export function errDictEnvVarMustBeJsonObject(

#errConfigFieldNameInvalid

TS typescript
export function errConfigFieldNameInvalid(name: string): string

#errConfigFieldNameReserved

TS typescript
export function errConfigFieldNameReserved(name: string): string

#errConfigFieldHelpRequired

TS typescript
export function errConfigFieldHelpRequired(name: string): string

#errConfigFieldTypeBad

TS typescript
export function errConfigFieldTypeBad(t: number | string): string

#errDuplicateConfigField

TS typescript
export function errDuplicateConfigField(name: string): string

#errConfigFieldConflictsFramework

TS typescript
export function errConfigFieldConflictsFramework(name: string): string

#errFrameworkFieldMustStartUnderscore

TS typescript
export function errFrameworkFieldMustStartUnderscore(name: string): string

#errFrameworkFieldNameInvalid

TS typescript
export function errFrameworkFieldNameInvalid(name: string): string

#errFrameworkFieldHelpRequired

TS typescript
export function errFrameworkFieldHelpRequired(name: string): string

#errDuplicateFrameworkField

TS typescript
export function errDuplicateFrameworkField(name: string): string

#errFrameworkFieldConflictsUser

TS typescript
export function errFrameworkFieldConflictsUser(name: string): string

#errConfigFieldDefaultMismatch

TS typescript
export function errConfigFieldDefaultMismatch(

#errConfigExpectedBooleanGot

TS typescript
export function errConfigExpectedBooleanGot(typeDesc: string): string

#errConfigExpectedIntegerGotFloat

TS typescript
export function errConfigExpectedIntegerGotFloat(): string

#errConfigExpectedIntegerGot

TS typescript
export function errConfigExpectedIntegerGot(typeDesc: string): string

#errConfigExpectedStringGot

TS typescript
export function errConfigExpectedStringGot(typeDesc: string): string

#errConfigUnsupportedFlagType

TS typescript
export function errConfigUnsupportedFlagType(t: number): string

#errConfigExpectedIntGotFloat

TS typescript
export function errConfigExpectedIntGotFloat(): string

#errConfigExpectedObjectForDictFlag

TS typescript
export function errConfigExpectedObjectForDictFlag(typeDesc: string): string

#errConfigDictKeyTypeMismatch

TS typescript
export function errConfigDictKeyTypeMismatch(

#errConfigExpectedArrayForListFlag

TS typescript
export function errConfigExpectedArrayForListFlag(typeDesc: string): string

#errConfigElementTypeMismatch

TS typescript
export function errConfigElementTypeMismatch(

#errConfigExpectedScalarGotArray

TS typescript
export function errConfigExpectedScalarGotArray(): string

#errConfigExpectedArrayForRepeatableFlag

TS typescript
export function errConfigExpectedArrayForRepeatableFlag(

#errCommandDeprecated

TS typescript
export function errCommandDeprecated(token: string, msg: string): string

#errUnknownCommandInGroup

TS typescript
export function errUnknownCommandInGroup(

#errUnknownCommand

TS typescript
export function errUnknownCommand(token: string): string

#errNoCommandSpecified

TS typescript
export function errNoCommandSpecified(): string

#errPassthroughArgsNotStringSlice

TS typescript
export function errPassthroughArgsNotStringSlice(): string

#errUnknownParameterForPassthroughCommand

TS typescript
export function errUnknownParameterForPassthroughCommand(

#errUnknownParameterForCommand

TS typescript
export function errUnknownParameterForCommand(

#errCallPathIsGroup

TS typescript
export function errCallPathIsGroup(commandPath: string): string

Python divergence (the ground truth for call()): a path that resolves to a group raises "'path' is a group, not a command" (Go says "no command resolved from path: "; no conformance case distinguishes them).

#errDictFlagExpectedMapType

TS typescript
export function errDictFlagExpectedMapType(

#errNoteTextEmpty

TS typescript
export function errNoteTextEmpty(): string

#errProblemTextEmpty

TS typescript
export function errProblemTextEmpty(): string

#errOutcomeMessageEmpty

TS typescript
export function errOutcomeMessageEmpty(): string

#errPassedWithProblems

TS typescript
export function errPassedWithProblems(): string

#errSkipReasonEmpty

TS typescript
export function errSkipReasonEmpty(): string

#errSkippedWithProblems

TS typescript
export function errSkippedWithProblems(): string

#errFoundNoProblems

TS typescript
export function errFoundNoProblems(): string

#errCheckOutcomeDirectConstruction

TS typescript
export function errCheckOutcomeDirectConstruction(): string

#errUnknownCheckOutcomeKind

TS typescript
export function errUnknownCheckOutcomeKind(kind: string): string

#errDuplicateCheckDef

TS typescript
export function errDuplicateCheckDef(name: string): string

#errChecksTomlParse

TS typescript
export function errChecksTomlParse(errStr: string): string

#errChecksTomlUnknownTopLevelKey

TS typescript
export function errChecksTomlUnknownTopLevelKey(key: string): string

#errChecksTomlMissingApp

TS typescript
export function errChecksTomlMissingApp(): string

#errChecksTomlAppNotString

TS typescript
export function errChecksTomlAppNotString(): string

#errChecksTomlChecksMustBeTable

TS typescript
export function errChecksTomlChecksMustBeTable(): string

#errChecksTomlInvalidCheckName

TS typescript
export function errChecksTomlInvalidCheckName(name: string): string

#errChecksTomlCheckMustBeTable

TS typescript
export function errChecksTomlCheckMustBeTable(name: string): string

#errChecksTomlUnknownField

TS typescript
export function errChecksTomlUnknownField(name: string, field: string): string

#errChecksTomlMissingField

TS typescript
export function errChecksTomlMissingField(name: string, field: string): string

#errChecksTomlTagsMustBeStrings

TS typescript
export function errChecksTomlTagsMustBeStrings(name: string): string

#errChecksTomlTagsEntriesMustBeStrings

TS typescript
export function errChecksTomlTagsEntriesMustBeStrings(name: string): string

#errChecksTomlSeverityInvalid

TS typescript
export function errChecksTomlSeverityInvalid(

#errChecksTomlBoolFieldInvalid

TS typescript
export function errChecksTomlBoolFieldInvalid(

#errChecksTomlDependsOnMustBeStrings

TS typescript
export function errChecksTomlDependsOnMustBeStrings(name: string): string

#errChecksTomlDependsOnEntriesMustBeStrings

TS typescript
export function errChecksTomlDependsOnEntriesMustBeStrings(

#errChecksTomlScopeMustBeString

TS typescript
export function errChecksTomlScopeMustBeString(

#errChecksTomlDependsOnUnknown

TS typescript
export function errChecksTomlDependsOnUnknown(

#errCheckDependencyCycleInvolving

TS typescript
export function errCheckDependencyCycleInvolving(name: string): string

#errCheckDependencyCycle

TS typescript
export function errCheckDependencyCycle(cyclePath: string): string

#errCheckDependencyCycleDetected

TS typescript
export function errCheckDependencyCycleDetected(): string

#errCheckOutcomeNotMinted

TS typescript
export function errCheckOutcomeNotMinted(name: string): string

#errInvalidGlobPattern

TS typescript
export function errInvalidGlobPattern(pattern: string, errStr: string): string

#errCheckProviderSeverityMismatch

TS typescript
export function errCheckProviderSeverityMismatch(

#errCheckProviderMustBeCallable

TS typescript
export function errCheckProviderMustBeCallable(): string

#errCheckProviderMustReturnList

TS typescript
export function errCheckProviderMustReturnList(typeDesc: string): string

#errCheckProviderNonCheckSpec

TS typescript
export function errCheckProviderNonCheckSpec(valueRepr: string): string

#errChecksNotEnabled

TS typescript
export function errChecksNotEnabled(): string

#errCannotDetermineProjectIDNoPackageJson

TS typescript
export function errCannotDetermineProjectIDNoPackageJson(): string

#errCannotDetermineProjectIDReadError

TS typescript
export function errCannotDetermineProjectIDReadError(errStr: string): string

#errCannotDetermineProjectIDNoName

TS typescript
export function errCannotDetermineProjectIDNoName(): string

#errSchemaMismatch

TS typescript
export function errSchemaMismatch(existingID: string, newID: string): string

#errTagExprUnexpectedChar

TS typescript
export function errTagExprUnexpectedChar(ch: string, pos: number): string

#errTagExprEmpty

TS typescript
export function errTagExprEmpty(): string

#errTagExprUnexpectedToken

TS typescript
export function errTagExprUnexpectedToken(val: string, pos: number): string

#errTagExprUnexpectedEnd

TS typescript
export function errTagExprUnexpectedEnd(pos: number): string

#errTagExprExpectedRParen

TS typescript
export function errTagExprExpectedRParen(pos: number): string

#errInfraValueUndeclared

TS typescript
export function errInfraValueUndeclared(envVar: string): string

#errConnectionValueUndeclared

TS typescript
export function errConnectionValueUndeclared(envVar: string): string

#errNoSourceInfo

TS typescript
export function errNoSourceInfo(name: string): string

#errHandlerReturnInvalid

TS typescript
export function errHandlerReturnInvalid(got: string): string

#errOutcomeExitCodeNotInteger

TS typescript
export function errOutcomeExitCodeNotInteger(got: string): string

#errGetNoSuchKey

TS typescript
export function errGetNoSuchKey(name: string): string

#errGetKeyNil

TS typescript
export function errGetKeyNil(name: string): string

#errGetTypeMismatch

TS typescript
export function errGetTypeMismatch(

#errGetOptNoSuchKey

TS typescript
export function errGetOptNoSuchKey(name: string): string

#errGetOptTypeMismatch

TS typescript
export function errGetOptTypeMismatch(

#errJsonSchemaRouteError

TS typescript
export function errJsonSchemaRouteError(errMsg: string): string

#errJsonSchemaIsGroup

TS typescript
export function errJsonSchemaIsGroup(commandPath: string): string

#errRouterCommandMustBeString

TS typescript
export function errRouterCommandMustBeString(): string

#errFlagNameReservedByFramework

TS typescript
export function errFlagNameReservedByFramework(name: string): string

#errFlagNameYesBanned

TS typescript
export function errFlagNameYesBanned(): string

The outright yes ban (ยง12.1). yes owns no framework flag any more -- --approve-consequential replaced --yes -- but a private --yes would restate it in a spelling that IS muscle memory, which is exactly what the rename removed.

#errFlagNameConsentReserved

TS typescript
export function errFlagNameConsentReserved(): string

The consent PARAMETER ban (ยง12.1). approve_consequential is how a caller states consent programmatically and over MCP, so a command may not declare a flag or a positional arg of that name -- otherwise the same command means different things on different channels.

#errArgNameConsentReserved

TS typescript
export function errArgNameConsentReserved(): string

#errCommandEffectMissing

TS typescript
export function errCommandEffectMissing(name: string): string

#errCommandEffectInvalid

TS typescript
export function errCommandEffectInvalid(name: string, value: string): string

#errDeprecatedCommandEffect

TS typescript
export function errDeprecatedCommandEffect(name: string): string

#errCommandReadOnlyConsequential

TS typescript
export function errCommandReadOnlyConsequential(name: string): string

ยง8.1's declaration guard: classification answers "should a dry run record rather than execute?" and consequential answers "are these effects worth interrupting someone for?". A command that changes nothing has no effects to weigh.

#errCommandReadOnlyDryRunUnsupported

TS typescript
export function errCommandReadOnlyDryRunUnsupported(name: string): string

Mirrors the guard above for the dry-run declaration: a command that changes nothing records nothing, so a preview of it can never be dishonest and there is no reason to refuse one.

#errCommandDryRunReasonMissing

TS typescript
export function errCommandDryRunReasonMissing(name: string): string

The mandatory-reason guard. The reason is shown in help and in the parse-time refusal, so a declaration without one leaves an operator staring at a refusal with no explanation.

#errCommandDryRunReasonWithoutDeclaration

TS typescript
export function errCommandDryRunReasonWithoutDeclaration(name: string): string

The orphan-reason guard. Go has no analog: WithDryRunUnsupported is its only way to set either field and it always sets both, so the shape is unrepresentable there.

#errHandlerVarKeywordUndeclared

TS typescript
export function errHandlerVarKeywordUndeclared(name: string): string

#errForwardingReasonEmpty

TS typescript
export function errForwardingReasonEmpty(name: string): string

#errFrameworkInternalHandlerForeign

TS typescript
export function errFrameworkInternalHandlerForeign(name: string): string

#errGrantReasonEmpty

TS typescript
export function errGrantReasonEmpty(name: string, grant: string): string

#errGrantDuplicate

TS typescript
export function errGrantDuplicate(name: string, grant: string): string

#errGrantNameInvalid

TS typescript
export function errGrantNameInvalid(name: string, grant: string): string

#errGrantKindInvalid

TS typescript
export function errGrantKindInvalid(

#errProcObserveAllowlistNotStrings

TS typescript
export function errProcObserveAllowlistNotStrings(gotType: string): string

#errProcObserveAllowlistEmptyPrefix

TS typescript
export function errProcObserveAllowlistEmptyPrefix(): string

#errEffectMutatingInReadOnly

TS typescript
export function errEffectMutatingInReadOnly(

#errEffectRunNotAllowlisted

TS typescript
export function errEffectRunNotAllowlisted(name: string, argv: string): string

#errEffectGrantUndeclared

TS typescript
export function errEffectGrantUndeclared(name: string, grant: string): string

#errEffectGrantKindMismatch

TS typescript
export function errEffectGrantKindMismatch(

#errEffectGrantOnObserve

TS typescript
export function errEffectGrantOnObserve(name: string, grant: string): string

#errEffectRunFailed

TS typescript
export function errEffectRunFailed(

#errEffectHTTPFailed

TS typescript
export function errEffectHTTPFailed(

#errEffectOutputNotUTF8

TS typescript
export function errEffectOutputNotUTF8(name: string, method: string): string

#errEffectParamRejectsCarrier

TS typescript
export function errEffectParamRejectsCarrier(

#errEffectOptionNotAccepted

TS typescript
export function errEffectOptionNotAccepted(

#errEffectParamNotStringish

TS typescript
export function errEffectParamNotStringish(

#errEffectArgvNotSequence

TS typescript
export function errEffectArgvNotSequence(

#errEffectArgvEmpty

TS typescript
export function errEffectArgvEmpty(name: string, method: string): string

#errEffectModeNotInt

TS typescript
export function errEffectModeNotInt(name: string, gotType: string): string

#errEffectHTTPMethodNotString

TS typescript
export function errEffectHTTPMethodNotString(

#errEffectsUnavailable

TS typescript
export function errEffectsUnavailable(): string

#errDryRunTruncated

TS typescript
export function errDryRunTruncated(

#errDryRunAborted

TS typescript
export function errDryRunAborted(step: number, cmd: string): string

#promptConfirmConsequential

TS typescript
export function promptConfirmConsequential(name: string): string

#errConfirmNonInteractive

TS typescript
export function errConfirmNonInteractive(): string

#errConfirmDeclined

TS typescript
export function errConfirmDeclined(): string

#errCallConsequentialUnconsented

TS typescript
export function errCallConsequentialUnconsented(cmdPath: string): string

The programmatic-path refusal (contract ยง8.5).

Requiring confirmation is a property of the COMMAND, so every channel has to honour it -- but a programmatic caller has no terminal to prompt. The refusal makes the caller state, in the call, that it is proceeding without a human, instead of the framework deciding that silently on its behalf.

#errDryRunNotSupported

TS typescript
export function errDryRunNotSupported(cmdPath: string, reason: string): string

#errTomlBasicStringEscape

TS typescript
export function errTomlBasicStringEscape(esc: string): string

#errTomlInlineTableNewline

TS typescript
export function errTomlInlineTableNewline(): string

#errTomlInlineTableTrailingComma

TS typescript
export function errTomlInlineTableTrailingComma(): string

#errTomlTimeMissingSeconds

TS typescript
export function errTomlTimeMissingSeconds(): string

#errTomlDatetimeMissingSeconds

TS typescript
export function errTomlDatetimeMissingSeconds(): string

#errTomlSpliceVerifyFailed

TS typescript
export function errTomlSpliceVerifyFailed(key: string): string

#errTomlSpliceKeyNotFound

TS typescript
export function errTomlSpliceKeyNotFound(key: string): string

#errAppConfigFormatBad

TS typescript
export function errAppConfigFormatBad(gotRepr: string): string

#errAppConfigConflictModeBad

TS typescript
export function errAppConfigConflictModeBad(gotRepr: string): string
Search