MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / constructor

Method constructor

apps/cli/src/agent/state-store.ts:118–123  ·  view source on GitHub ↗
(options: { maxHistorySize?: number } = {})

Source from the content-addressed store, hash-verified

116 private maxHistorySize: number
117
118 constructor(options: { maxHistorySize?: number } = {}) {
119 this.state = createInitialState()
120 this.stateObservable = new Observable<StoreState>(this.state)
121 this.agentStateObservable = new Observable<AgentStateInfo>(this.state.agentState)
122 this.maxHistorySize = options.maxHistorySize ?? 0
123 }
124
125 // ===========================================================================
126 // State Queries

Callers

nothing calls this directly

Calls 1

createInitialStateFunction · 0.85

Tested by

no test coverage detected