// Read-only example. Importing this module performs no requests and signs nothing. // Invoke only with an existing authorized runtime. Never put secrets in this file. const { createAgentClient } = require('./agent-solana-client.cjs'); async function inspectCatalog(authorizedRuntime) { const catalog = await createAgentClient(authorizedRuntime).catalog(); return [...catalog.products, ...(catalog.freeProducts || [])].map((product) => ({ id: product.id, title: product.title, description: product.description, licenseUrl: product.licenseUrl, licensing: product.licensing ?? null, })); } module.exports = { inspectCatalog };