MCPcopy Create free account
hub / github.com/Noumena-Network/code / buildTrustedWrapperGlobalConfig

Function buildTrustedWrapperGlobalConfig

src/testing/wrapperPtyHarness.ts:123–147  ·  view source on GitHub ↗
(
  config: Record<string, unknown> = {},
)

Source from the content-addressed store, hash-verified

121}
122
123export function buildTrustedWrapperGlobalConfig(
124 config: Record<string, unknown> = {},
125): Record<string, unknown> {
126 const projects =
127 typeof config.projects === 'object' && config.projects !== null
128 ? (config.projects as Record<string, unknown>)
129 : {}
130 const existingProjectConfig =
131 typeof projects[WRAPPER_HARNESS_REPO_ROOT] === 'object' &&
132 projects[WRAPPER_HARNESS_REPO_ROOT] !== null
133 ? (projects[WRAPPER_HARNESS_REPO_ROOT] as Record<string, unknown>)
134 : {}
135
136 return {
137 ...config,
138 hasSeenUndercoverAutoNotice: true,
139 projects: {
140 ...projects,
141 [WRAPPER_HARNESS_REPO_ROOT]: {
142 ...existingProjectConfig,
143 hasTrustDialogAccepted: true,
144 },
145 },
146 }
147}
148
149function createFixture(
150 commandArgs: readonly string[],

Calls

no outgoing calls

Tested by

no test coverage detected