63fbbe1225
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
36 lines
1.1 KiB
Swift
36 lines
1.1 KiB
Swift
// swift-tools-version:5.9
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift_processors",
|
|
platforms: [.macOS(.v12)],
|
|
products: [
|
|
.executable(name: "swift_scene_detector", targets: ["swift_scene_detector"]),
|
|
.executable(name: "swift_face", targets: ["swift_face"]),
|
|
.executable(name: "swift_ocr", targets: ["swift_ocr"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"),
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "swift_scene_detector",
|
|
path: "Sources/swift_scene_detector"
|
|
),
|
|
.executableTarget(
|
|
name: "swift_face",
|
|
dependencies: [
|
|
.product(name: "ArgumentParser", package: "swift-argument-parser"),
|
|
],
|
|
path: "Sources/swift_face"
|
|
),
|
|
.executableTarget(
|
|
name: "swift_ocr",
|
|
dependencies: [
|
|
.product(name: "ArgumentParser", package: "swift-argument-parser"),
|
|
],
|
|
path: "Sources/swift_ocr"
|
|
),
|
|
]
|
|
)
|