MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / update

Method update

packages/sync/src/config-manager.ts:67–72  ·  view source on GitHub ↗
(partial: Partial<ApiServerConfig>)

Source from the content-addressed store, hash-verified

65 }
66
67 update(partial: Partial<ApiServerConfig>): ApiServerConfig {
68 const current = this.load()
69 const updated = { ...current, ...partial }
70 this.save(updated)
71 return updated
72 }
73
74 ensureToken(config: ApiServerConfig): ApiServerConfig {
75 if (!config.token) {

Callers

nothing calls this directly

Calls 2

loadMethod · 0.95
saveMethod · 0.95

Tested by

no test coverage detected