UNPKG

rawi

Version:

Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into

4 lines 2.96 kB
/* Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into an intelligent development workspace. */ import{sql as s}from"drizzle-orm";import{integer as t,real as a,sqliteTable as o,text as e}from"drizzle-orm/sqlite-core";var l=o("sessions",{id:e("id").primaryKey(),profile:e("profile").notNull(),type:e("type",{enum:["ask","chat","exec"]}).notNull().default("ask"),title:e("title"),description:e("description"),status:e("status",{enum:["active","archived","paused","pending","completed","failed"]}).notNull().default("active"),createdAt:t("created_at",{mode:"timestamp"}).notNull().default(s`(strftime('%s', 'now'))`),updatedAt:t("updated_at",{mode:"timestamp"}).notNull().default(s`(strftime('%s', 'now'))`),lastAccessedAt:t("last_accessed_at",{mode:"timestamp"}).notNull().default(s`(strftime('%s', 'now'))`),messageCount:t("message_count").notNull().default(0),query:e("query"),filesProcessed:e("files_processed",{mode:"json"}),contentFiltered:t("content_filtered",{mode:"boolean"}).default(!1),conversationContext:e("conversation_context",{mode:"json"}),maxMessages:t("max_messages"),isPrivate:t("is_private",{mode:"boolean"}).default(!1),tags:e("tags",{mode:"json"})}),i=o("messages",{id:e("id").primaryKey(),sessionId:e("session_id").notNull().references(()=>l.id,{onDelete:"cascade"}),role:e("role",{enum:["user","assistant","system"]}).notNull().default("user"),content:e("content").notNull(),timestamp:t("timestamp",{mode:"timestamp"}).notNull().default(s`(strftime('%s', 'now'))`),messageOrder:t("message_order").notNull(),provider:e("provider").notNull(),model:e("model").notNull(),temperature:a("temperature"),maxTokens:t("max_tokens"),processingTime:a("processing_time"),tokenUsage:e("token_usage",{mode:"json"}),metadata:e("metadata",{mode:"json"}),parentMessageId:e("parent_message_id"),isEdited:t("is_edited",{mode:"boolean"}).default(!1),editHistory:e("edit_history",{mode:"json"}),reactions:e("reactions",{mode:"json"})}),m=o("act_templates",{id:e("id").primaryKey(),label:e("label").notNull(),category:e("category").notNull(),description:e("description").notNull(),template:e("template").notNull(),isBuiltIn:t("is_built_in",{mode:"boolean"}).notNull().default(!1),createdAt:t("created_at",{mode:"timestamp"}).notNull().default(s`(strftime('%s', 'now'))`),updatedAt:t("updated_at",{mode:"timestamp"}).notNull().default(s`(strftime('%s', 'now'))`)});export{m as actTemplates,i as messages,l as sessions}; /* Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into an intelligent development workspace. */ //# sourceMappingURL=index.js.map