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

Function fakeA2a

test/cliContracts.test.js:124–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122}
123
124function fakeA2a() {
125 return {
126 buildPublishBundle: ({ gene, capsule, event }) => ({
127 protocol: 'gep-a2a',
128 protocol_version: '1.0.0',
129 message_type: 'publish',
130 payload: { assets: [gene, capsule].concat(event ? [event] : []) },
131 }),
132 buildFetch: ({ assetIds }) => ({
133 protocol: 'gep-a2a',
134 protocol_version: '1.0.0',
135 message_type: 'fetch',
136 payload: { asset_ids: assetIds },
137 }),
138 buildHubHeaders: () => ({ authorization: 'Bearer test' }),
139 };
140}
141
142function authorizationHeader(headers) {
143 return headers && (headers.Authorization || headers.authorization);

Callers 3

mutatingA2aFunction · 0.85
signingMutatingA2aFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected