release: v1.3.1 - Pipeline Queue Integration, OCR Fix, Worker Compatibility

Major Changes:
- Pipeline Queue integration completed (internal.file + pipeline.commands)
- Fixed old job_worker database compatibility with new command_queue table
- Compiled Swift OCR binary (was missing, causing empty OCR results)
- Added deep scan functionality through re-scan API

Fixes:
- Changed CommandJob.id from i32 to i64 for database compatibility
- Added UUID generation in create_command (message_id field)
- Fixed claim_pending_commands to query queue_name = 'internal.file'
- Fixed field mappings: command_id → message_id, job_type → command_type
- Added support for 'processing' status in CommandJobStatus

Queue System:
- internal.file queue: for register/unregister/re-scan commands (job_worker)
- pipeline.commands queue: for vectorize/store_asrx/etc commands (pipeline_worker)

Documentation:
- Added comprehensive queue system documentation
- Created M4 workspace status reports
- Updated AGENTS.md with queue system details
This commit is contained in:
Accusys
2026-10-12 10:00:51 +08:00
parent 0a18e70639
commit 63fbbe1225
418 changed files with 44084 additions and 4280 deletions
+4 -2
View File
@@ -7,6 +7,8 @@ use chrono::{DateTime, Utc};
use reqwest::Client;
use serde::{Deserialize, Serialize};
use crate::core::db::qdrant_db::new_http_client;
/// Gitea token scope
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
@@ -122,14 +124,14 @@ impl GiteaClient {
std::env::var("GITEA_URL").unwrap_or_else(|_| "http://localhost:3001".to_string());
Ok(Self {
client: Client::new(),
client: new_http_client(),
base_url,
})
}
pub fn with_url(base_url: String) -> Self {
Self {
client: Client::new(),
client: new_http_client(),
base_url,
}
}
+4 -2
View File
@@ -7,6 +7,8 @@ use chrono::{DateTime, Utc};
use reqwest::Client;
use serde::{Deserialize, Serialize};
use crate::core::db::qdrant_db::new_http_client;
/// Request to create an n8n API key
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CreateN8nApiKeyRequest {
@@ -46,7 +48,7 @@ impl N8nClient {
.unwrap_or_else(|_| "https://n8n.momentry.ddns.net".to_string());
Ok(Self {
client: Client::new(),
client: new_http_client(),
base_url,
api_key,
})
@@ -54,7 +56,7 @@ impl N8nClient {
pub fn with_url(base_url: String, api_key: String) -> Self {
Self {
client: Client::new(),
client: new_http_client(),
base_url,
api_key,
}