MCPcopy Create free account
hub / github.com/EvoMap/evolver / _completeTaskOnHub

Function _completeTaskOnHub

src/atp/atpExecute.js:187–195  ·  view source on GitHub ↗
(taskId, assetId)

Source from the content-addressed store, hash-verified

185}
186
187async function _completeTaskOnHub(taskId, assetId) {
188 const base = String(getHubUrl() || '').replace(/\/+$/, '');
189 if (!base) return { ok: false, error: 'hub_url_missing' };
190 return _postJson(base + '/a2a/task/complete', {
191 task_id: taskId,
192 asset_id: assetId,
193 node_id: getNodeId(),
194 }, PUBLISH_TIMEOUT_MS);
195}
196
197/**
198 * End-to-end ATP task completion driver.

Callers 1

completeAtpTaskFunction · 0.85

Calls 2

getHubUrlFunction · 0.85
_postJsonFunction · 0.85

Tested by

no test coverage detected