@jjdenhertog/ai-driven-development
Version:
AI-driven development workflow with learning capabilities for Claude
28 lines • 950 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractNotifications = extractNotifications;
function extractNotifications(transcriptEntries) {
var _a;
const notifications = [];
for (const entry of transcriptEntries) {
if (entry.type !== 'assistant' || !((_a = entry.message) === null || _a === void 0 ? void 0 : _a.content)) {
continue;
}
const { content } = entry.message;
// Handle text responses
if (!Array.isArray(content)) {
continue;
}
for (const item of content) {
if (item.type === 'text' && item.text) {
notifications.push({
type: 'status',
timestamp: entry.timestamp,
message: `⏺ ${item.text}`
});
}
}
}
return notifications;
}
//# sourceMappingURL=extractNotifications.js.map