MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / getData

Method getData

hyperagent-ext/src/extension.ts:328–337  ·  view source on GitHub ↗
(contentId: string)

Source from the content-addressed store, hash-verified

326 }
327
328 public getData(contentId: string): DataItem[] {
329 // Dummy data for demonstration; replace with your actual data fetching logic
330 const dummyData: Record<string, DataItem[]> = {
331 navigator: [{ text: 'Navigator Item 1' }, { text: 'Navigator Item 2' }],
332 executor: [{ text: 'Executor Item 1' }, { text: 'Executor Item 2' }],
333 editor: [{ text: 'Editor Item 1' }, { text: 'Editor Item 2' }],
334 terminal: [{ text: 'Terminal Item 1' }, { text: 'Terminal Item 2' }],
335 };
336 return dummyData[contentId] || [];
337 }
338
339 private _getHtmlForWebview(webview: vscode.Webview) {
340 const scriptUri = webview.asWebviewUri(vscode.Uri.joinPath(this._extensionUri, 'media', 'main.js'));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected