MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / cloneResourceState

Function cloneResourceState

packages/core/src/resource-state.ts:12–14  ·  view source on GitHub ↗
(input: ResourceStateV1 | undefined)

Source from the content-addressed store, hash-verified

10import type { TextEditorFsCallbacks } from './tools/text-editor.js';
11
12export function cloneResourceState(input: ResourceStateV1 | undefined): ResourceStateV1 {
13 return normalizeResourceState(input);
14}
15
16function addUnique(target: string[], value: string): void {
17 if (!target.includes(value)) target.push(value);

Callers 2

generateViaAgentFunction · 0.85

Calls 1

normalizeResourceStateFunction · 0.90

Tested by

no test coverage detected