UNPKG

@astrasyncai/sdk

Version:

Universal SDK for registering AI agents with AstraSync

28 lines 963 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseLettaAgent = parseLettaAgent; const fs_1 = require("fs"); function parseLettaAgent(filePath) { // For .af files, we read as JSON for now // TODO: Add proper ZIP handling for .af files in future version try { const content = (0, fs_1.readFileSync)(filePath, 'utf-8'); const data = JSON.parse(content); return { name: data.name || 'Letta Agent', description: data.description || 'Letta Agent', version: data.version || '1.0.0', capabilities: data.capabilities || ['memory', 'tools'] }; } catch (error) { // If parsing fails, return default return { name: 'Letta Agent', description: 'Imported Letta Agent', version: '1.0.0', capabilities: ['memory', 'tools'] }; } } //# sourceMappingURL=letta.js.map