UNPKG

newo

Version:

NEWO CLI: Professional command-line tool with modular architecture for NEWO AI Agent development. Features account migration, integration management, webhook automation, AKB knowledge base, project attributes, sandbox testing, IDN-based file management, r

19 lines 977 B
/** * Pull AKB command handler * Downloads AKB (knowledge base) articles for all personas linked to agents */ import path from 'path'; import { makeClient } from '../../api.js'; import { pullAkb } from '../../sync/akb.js'; import { getValidAccessToken } from '../../auth.js'; import { requireSingleCustomer } from '../customer-selection.js'; export async function handlePullAkbCommand(customerConfig, args, verbose) { const selectedCustomer = requireSingleCustomer(customerConfig, args.customer); const accessToken = await getValidAccessToken(selectedCustomer); const client = await makeClient(verbose, accessToken); const customerDir = path.join(process.cwd(), 'newo_customers', selectedCustomer.idn); console.log(`📚 Fetching AKB articles for ${selectedCustomer.idn}...`); await pullAkb(client, customerDir, verbose); console.log(`✅ AKB articles saved to newo_customers/${selectedCustomer.idn}/akb/`); } //# sourceMappingURL=pull-akb.js.map