MCPcopy Create free account
hub / github.com/code100x/mobile-magic / constructor

Method constructor

mobile-magic/apps/worker/parser.ts:17–21  ·  view source on GitHub ↗
(currentArtifact: string, onFileContent: (filePath: string, fileContent: string) => void, onShellCommand: (shellCommand: string) => void)

Source from the content-addressed store, hash-verified

15 private onShellCommand: (shellCommand: string) => void;
16
17 constructor(currentArtifact: string, onFileContent: (filePath: string, fileContent: string) => void, onShellCommand: (shellCommand: string) => void) {
18 this.currentArtifact = currentArtifact;
19 this.onFileContent = onFileContent;
20 this.onShellCommand = onShellCommand;
21 }
22
23 append(artifact: string) {
24 this.currentArtifact += artifact;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected