Skip to content

getConfigValue

getConfigValue(valueId, connection?): string | number | bigint | null

Reads a config value, globally or for one connection. Needs init(). The result is a number for int32 and float values, a BigInt for int64 values (so large values stay exact), and a string for string values.

number

The config value number.

number | null

Optional raw connection handle. When given, the value is read for that connection, falling back to the inherited value.

string | number | bigint | null

The value, or null when it does not exist, the connection is invalid, or the value is a callback.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.