MCPcopy Create free account
hub / github.com/anus-dev/ANUS / getModifyContext

Method getModifyContext

packages/core/src/test-utils/tools.ts:149–162  ·  view source on GitHub ↗
(
    _abortSignal: AbortSignal,
  )

Source from the content-addressed store, hash-verified

147 }
148
149 getModifyContext(
150 _abortSignal: AbortSignal,
151 ): ModifyContext<Record<string, unknown>> {
152 return {
153 getFilePath: () => 'test.txt',
154 getCurrentContent: async () => 'old content',
155 getProposedContent: async () => 'new content',
156 createUpdatedParams: (
157 _oldContent: string,
158 modifiedProposedContent: string,
159 _originalParams: Record<string, unknown>,
160 ) => ({ newContent: modifiedProposedContent }),
161 };
162 }
163
164 protected override createInvocation(
165 params: Record<string, unknown>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected