RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
feat(cli): add admin ingestion log command hooks (#21470)
adwsbff3e0ebbc9b
diff --git a/internal/cli/admin_command_ee.go b/internal/cli/admin_command_ee.goindex 21afe7a3ad..4bd03b154d 100644--- a/internal/cli/admin_command_ee.go+++ b/internal/cli/admin_command_ee.go@@ -44,6 +44,18 @@ func (p *Parser) parseAdminListIngestionTasks() (*Command, error) {return nil, errors.New("listing admin ingestion tasks is not supported in the open-source edition")}+func (p *Parser) parseAdminShowIngestionLog() (*Command, error) {+ return nil, errors.New("ingestion logs are only available in the enterprise edition")+}++func (c *CLI) AdminShowIngestionLogCommand(commandCount int, cmd *Command) (ResponseIf, error) {+ return nil, errors.New("ingestion logs are only available in the enterprise edition")+}++func (c *CLI) AdminShowIngestionMessagesCommand(commandCount int, cmd *Command) (ResponseIf, error) {+ return nil, errors.New("ingestion logs are only available in the enterprise edition")+}+func (c *CLI) AdminListUserIngestionTasksCommand(commandCount int, cmd *Command) (ResponseIf, error) {return nil, errors.New("listing user ingestion tasks in admin mode is not supported in the open-source edition")}diff --git a/internal/cli/admin_parser.go b/internal/cli/admin_parser.goindex 49d199e0c9..48bcb2400b 100644--- a/internal/cli/admin_parser.go+++ b/internal/cli/admin_parser.go@@ -410,6 +410,8 @@ func (p *Parser) parseAdminShowCommands() (*Command, error) {return p.parseAdminShowQuota()case TokenTasks:return p.parseAdminShowTasks()+ case TokenIngestion:+ return p.parseAdminShowIngestionLog()case TokenLog:return p.parseAdminShowLogCommands()case TokenHardware:diff --git a/internal/cli/cli_http.go b/internal/cli/cli_http.goindex 5016260b92..9d12a1da0b 100644--- a/internal/cli/cli_http.go+++ b/internal/cli/cli_http.go@@ -161,6 +161,10 @@ func (c *CLI) ExecuteAdminCommand(commandCount int, cmd *Command) (ResponseIf, ereturn c.AdminShutdownIngestor(commandCount, cmd)case "list_admin_ingestion_tasks":return c.ListAdminIngestionTasks(commandCount, cmd)+ case "admin_show_ingestion_log":+ return c.AdminShowIngestionLogCommand(commandCount, cmd)+ case "admin_show_ingestion_messages":+ return c.AdminShowIngestionMessagesCommand(commandCount, cmd)case "user_list_message_queue_command":return c.UserListMessageQueueCommand(commandCount, cmd)case "user_publish_message_command":diff --git a/internal/cli/common_command.go b/internal/cli/common_command.goindex 4afc7a25e1..79c1598f0a 100644--- a/internal/cli/common_command.go+++ b/internal/cli/common_command.go@@ -93,7 +93,7 @@ func (c *CLI) LoginUserInteractive(email, password string) error {return err}- fmt.Printf("Login successfully\n")+ fmt.Fprintln(os.Stderr, "Login successfully")switch c.Config.CLIMode {case AdminMode: