feat: Face JSON v2 schema - add schema_version, bbox x2/y2/center, keep embeddings, update clustering
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<!-- module: cli_register -->
|
||||
<!-- description: Register a video file into the system -->
|
||||
<!-- depends: none -->
|
||||
|
||||
# Register — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry register <PATH>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Register a video file into the Momentry system. This creates a database record for the video and generates its UUID.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `PATH` | string | Yes | Video file path or URL to register |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Register a local video file
|
||||
momentry register /path/to/video.mp4
|
||||
|
||||
# Register via URL
|
||||
momentry register https://example.com/video.mp4
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
**Note**: Register requires file system access and is typically run as a CLI command.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `process` — Process the registered video
|
||||
- `lookup` — Lookup UUID from path
|
||||
- `status` — Check registration status
|
||||
@@ -0,0 +1,58 @@
|
||||
<!-- module: cli_process -->
|
||||
<!-- description: Process video to generate all processor JSON files -->
|
||||
<!-- depends: cli_register -->
|
||||
|
||||
# Process — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry process <TARGET> [OPTIONS]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Process a registered video to generate processor output files (ASR, Cut, ASRX, YOLO, OCR, Face, Pose, Story, Caption).
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `TARGET` | string | Yes | UUID or path of the video to process |
|
||||
|
||||
## Options
|
||||
|
||||
| Option | Type | Default | Description |
|
||||
|--------|------|---------|-------------|
|
||||
| `-m, --modules` | string[] | all | Modules to process (comma separated: asr,cut,asrx,yolo,ocr,face,pose,story,caption) |
|
||||
| `--cloud` | string[] | none | Modules to process via cloud (comma separated) |
|
||||
| `--force` | bool | false | Force reprocess even if JSON exists |
|
||||
| `--resume` | bool | false | Resume from last checkpoint if interrupted |
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Process all modules
|
||||
momentry process 384b0ff44aaaa1f1
|
||||
|
||||
# Process specific modules
|
||||
momentry process 384b0ff44aaaa1f1 --modules asr,cut,face
|
||||
|
||||
# Force reprocess
|
||||
momentry process 384b0ff44aaaa1f1 --force
|
||||
|
||||
# Resume interrupted processing
|
||||
momentry process 384b0ff44aaaa1f1 --resume
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
**Note**: Process requires file system access and processor execution.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `register` — Register video before processing
|
||||
- `chunk` — Generate chunks after processing
|
||||
- `status` — Check processing status
|
||||
@@ -0,0 +1,44 @@
|
||||
<!-- module: cli_chunk -->
|
||||
<!-- description: Generate chunks and store in database -->
|
||||
<!-- depends: cli_process -->
|
||||
|
||||
# Chunk — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry chunk <UUID>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Generate chunks from processed video data and store them in the database. Chunks are text segments used for RAG search.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `UUID` | string | Yes | File UUID of the processed video |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Generate chunks for a video
|
||||
momentry chunk 384b0ff44aaaa1f1
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
**Note**: Chunk requires database write access.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `process` — Process video before chunking
|
||||
- `vectorize` — Vectorize chunks for search
|
||||
- `query` — Query using chunks
|
||||
@@ -0,0 +1,41 @@
|
||||
<!-- module: cli_store_asrx -->
|
||||
<!-- description: Store ASRX chunks into pre_chunks table -->
|
||||
<!-- depends: cli_process -->
|
||||
|
||||
# Store-Asrx — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry store-asrx <UUID>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Store ASRX (speaker diarization) chunks into the pre_chunks table for further processing.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `UUID` | string | Yes | File UUID of the processed video |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Store ASRX chunks
|
||||
momentry store-asrx 384b0ff44aaaa1f1
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `process` — Process video with ASRX module
|
||||
- `chunk` — Generate final chunks
|
||||
@@ -0,0 +1,41 @@
|
||||
<!-- module: cli_story -->
|
||||
<!-- description: Generate story descriptions for cut scenes -->
|
||||
<!-- depends: cli_process -->
|
||||
|
||||
# Story — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry story <UUID>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Generate narrative story descriptions for cut scenes using LLM.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `UUID` | string | Yes | File UUID of the processed video |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Generate story for cut scenes
|
||||
momentry story 384b0ff44aaaa1f1
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `process` — Process video with cut module
|
||||
- `phase1` — Full release pipeline
|
||||
@@ -0,0 +1,62 @@
|
||||
<!-- module: cli_detect -->
|
||||
<!-- description: Detect objects in an image using CLIP or Qwen3-VL -->
|
||||
<!-- depends: none -->
|
||||
|
||||
# Detect — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry detect --image <PATH> --objects <LIST> [OPTIONS]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Detect specified objects in an image using CLIP (fast) or Qwen3-VL (accurate). Supports cascade mode for optimal results.
|
||||
|
||||
## Arguments
|
||||
|
||||
None (uses options).
|
||||
|
||||
## Options
|
||||
|
||||
| Option | Type | Required | Default | Description |
|
||||
|--------|------|----------|---------|-------------|
|
||||
| `-i, --image` | string | Yes | — | Image file path |
|
||||
| `-o, --objects` | string[] | Yes | — | Objects to detect (comma separated) |
|
||||
| `--cascade` | bool | No | false | Use cascade mode (CLIP first, Qwen3-VL for high confidence) |
|
||||
| `--threshold` | f32 | No | 0.7 | CLIP confidence threshold for cascade |
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Detect single object
|
||||
momentry detect --image photo.jpg --objects cat
|
||||
|
||||
# Detect multiple objects
|
||||
momentry detect --image photo.jpg --objects cat,dog,car
|
||||
|
||||
# Cascade mode with custom threshold
|
||||
momentry detect --image photo.jpg --objects person --cascade --threshold 0.8
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: `momentry detect '<json-args>'`
|
||||
|
||||
**JSON Args**:
|
||||
```json
|
||||
{
|
||||
"image": "/path/to/image.jpg",
|
||||
"objects": ["cat", "dog"],
|
||||
"cascade": false,
|
||||
"threshold": 0.7
|
||||
}
|
||||
```
|
||||
|
||||
**Returns**: JSON with detected objects and confidence scores.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `vision` — Vision LLM management
|
||||
- `process` — Process with YOLO module
|
||||
@@ -0,0 +1,57 @@
|
||||
<!-- module: cli_vision -->
|
||||
<!-- description: Vision LLM management subcommands -->
|
||||
<!-- depends: none -->
|
||||
|
||||
# Vision — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry vision <SUBCOMMAND>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Manage the Qwen3-VL vision LLM server for image analysis tasks.
|
||||
|
||||
## Subcommands
|
||||
|
||||
| Subcommand | Description |
|
||||
|------------|-------------|
|
||||
| `start` | Start Qwen3-VL server |
|
||||
| `stop` | Stop Qwen3-VL server |
|
||||
| `status` | Check Qwen3-VL server status |
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `SUBCOMMAND` | string | Yes | One of: start, stop, status |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Start vision server
|
||||
momentry vision start
|
||||
|
||||
# Check server status
|
||||
momentry vision status
|
||||
|
||||
# Stop server
|
||||
momentry vision stop
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
**Note**: Vision server management requires system access.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `detect` — Object detection using vision models
|
||||
- `process` — Video processing with vision modules
|
||||
@@ -0,0 +1,47 @@
|
||||
<!-- module: cli_vectorize -->
|
||||
<!-- description: Vectorize chunks for semantic search -->
|
||||
<!-- depends: cli_chunk -->
|
||||
|
||||
# Vectorize — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry vectorize <UUID>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Generate vector embeddings for chunks and store in Qdrant for semantic search.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `UUID` | string | Yes | File UUID or 'all' for all videos |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Vectorize chunks for one video
|
||||
momentry vectorize 384b0ff44aaaa1f1
|
||||
|
||||
# Vectorize all videos
|
||||
momentry vectorize all
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
**Note**: Vectorize requires Qdrant access.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `chunk` — Generate chunks before vectorizing
|
||||
- `query` — Query using vector embeddings
|
||||
- `phase1` — Full release pipeline
|
||||
@@ -0,0 +1,43 @@
|
||||
<!-- module: cli_phase1 -->
|
||||
<!-- description: Run Phase 1 release packaging -->
|
||||
<!-- depends: cli_process -->
|
||||
|
||||
# Phase1 — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry phase1 <UUID>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Execute the complete Phase 1 release pipeline for a video: process → chunk → vectorize → complete.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `UUID` | string | Yes | File UUID of the video |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Run Phase 1 release pipeline
|
||||
momentry phase1 384b0ff44aaaa1f1
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `process` — Process video
|
||||
- `chunk` — Generate chunks
|
||||
- `vectorize` — Vectorize chunks
|
||||
- `complete` — Mark video completed
|
||||
@@ -0,0 +1,41 @@
|
||||
<!-- module: cli_complete -->
|
||||
<!-- description: Mark video as completed -->
|
||||
<!-- depends: cli_phase1 -->
|
||||
|
||||
# Complete — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry complete <UUID>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Mark a video as fully processed and ready for production use.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `UUID` | string | Yes | File UUID of the video |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Mark video as completed
|
||||
momentry complete 384b0ff44aaaa1f1
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `phase1` — Full release pipeline
|
||||
- `status` — Check completion status
|
||||
@@ -0,0 +1,46 @@
|
||||
<!-- module: cli_play -->
|
||||
<!-- description: Play video with overlays -->
|
||||
<!-- depends: cli_process -->
|
||||
|
||||
# Play — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry play <TARGET>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Play a video with analysis overlays (face boxes, speaker labels, object detections).
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `TARGET` | string | Yes | Video path or UUID |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Play video by UUID
|
||||
momentry play 384b0ff44aaaa1f1
|
||||
|
||||
# Play video by path
|
||||
momentry play /path/to/video.mp4
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
**Note**: Play launches interactive video player.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `process` — Process video for overlays
|
||||
- `thumbnails` — Generate thumbnails
|
||||
@@ -0,0 +1,47 @@
|
||||
<!-- module: cli_watch -->
|
||||
<!-- description: Watch directories for new video files -->
|
||||
<!-- depends: none -->
|
||||
|
||||
# Watch — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry watch [OPTIONS]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Start watching specified directories for new video files and automatically register/process them.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `directories` | string | No | Directories to watch (comma separated) |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Watch default directory
|
||||
momentry watch
|
||||
|
||||
# Watch specific directories
|
||||
momentry watch /path/to/videos,/path/to/imports
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
**Note**: Watch runs as a long-running background service.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `register` — Manual registration
|
||||
- `process` — Manual processing
|
||||
- `worker` — Background job worker
|
||||
@@ -0,0 +1,53 @@
|
||||
<!-- module: cli_system -->
|
||||
<!-- description: Check system resources and processing strategy -->
|
||||
<!-- depends: none -->
|
||||
|
||||
# System — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry system [OPTIONS]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Check system resources (CPU, memory, GPU) and recommend optimal processing strategy.
|
||||
|
||||
## Arguments
|
||||
|
||||
None.
|
||||
|
||||
## Options
|
||||
|
||||
| Option | Type | Required | Default | Description |
|
||||
|--------|------|----------|---------|-------------|
|
||||
| `--gpu` | bool | No | false | Show detailed GPU info (NVIDIA/MPS) |
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Check basic system info
|
||||
momentry system
|
||||
|
||||
# Check with GPU details
|
||||
momentry system --gpu
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: `momentry system '<json-args>'`
|
||||
|
||||
**JSON Args**:
|
||||
```json
|
||||
{
|
||||
"gpu": true
|
||||
}
|
||||
```
|
||||
|
||||
**Returns**: JSON with system resource info.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `process` — Video processing
|
||||
- `worker` — Job worker configuration
|
||||
@@ -0,0 +1,50 @@
|
||||
<!-- module: cli_server -->
|
||||
<!-- description: Start API server -->
|
||||
<!-- depends: none -->
|
||||
|
||||
# Server — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry server [OPTIONS]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Start the Momentry API server for HTTP endpoints.
|
||||
|
||||
## Arguments
|
||||
|
||||
None.
|
||||
|
||||
## Options
|
||||
|
||||
| Option | Type | Required | Default | Description |
|
||||
|--------|------|----------|---------|-------------|
|
||||
| `--host` | string | No | 127.0.0.1 | Server host address |
|
||||
| `--port` | u16 | No | MOMENTRY_SERVER_PORT or 3002 | Server port |
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Start server on default port (3002)
|
||||
momentry server
|
||||
|
||||
# Start on custom port
|
||||
momentry server --port 3003
|
||||
|
||||
# Start on specific host
|
||||
momentry server --host 0.0.0.0 --port 3002
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
**Note**: Server runs as a long-running HTTP service.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `worker` — Start job worker
|
||||
- `api-key` — Manage API keys for server auth
|
||||
@@ -0,0 +1,52 @@
|
||||
<!-- module: cli_worker -->
|
||||
<!-- description: Start job worker for background processing -->
|
||||
<!-- depends: cli_server -->
|
||||
|
||||
# Worker — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry worker [OPTIONS]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Start the job worker to process queued jobs in the background.
|
||||
|
||||
## Arguments
|
||||
|
||||
None.
|
||||
|
||||
## Options
|
||||
|
||||
| Option | Type | Required | Default | Description |
|
||||
|--------|------|----------|---------|-------------|
|
||||
| `--max-concurrent` | usize | No | 2 | Max concurrent processors |
|
||||
| `--poll-interval` | u64 | No | 5 | Poll interval in seconds |
|
||||
| `--batch-size` | i32 | No | 10 | Job batch size |
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Start worker with defaults
|
||||
momentry worker
|
||||
|
||||
# Start with 6 concurrent processors
|
||||
momentry worker --max-concurrent 6
|
||||
|
||||
# Start with custom polling
|
||||
momentry worker --max-concurrent 4 --poll-interval 10 --batch-size 5
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
**Note**: Worker runs as a long-running background service.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `server` — API server
|
||||
- `process` — Manual processing
|
||||
- `watch` — Directory watcher
|
||||
@@ -0,0 +1,54 @@
|
||||
<!-- module: cli_query -->
|
||||
<!-- description: Query using RAG semantic search -->
|
||||
<!-- depends: cli_vectorize -->
|
||||
|
||||
# Query — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry query <QUERY>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Perform RAG (Retrieval-Augmented Generation) query against video content.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `QUERY` | string | Yes | Query text to search |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Simple query
|
||||
momentry query "What happened in the beginning?"
|
||||
|
||||
# Query about specific topic
|
||||
momentry query "Who is the main speaker?"
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: `momentry query '<json-args>'`
|
||||
|
||||
**JSON Args**:
|
||||
```json
|
||||
{
|
||||
"query": "What happened in the beginning?"
|
||||
}
|
||||
```
|
||||
|
||||
**Returns**: JSON with search results and answer.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `vectorize` — Vectorize chunks for search
|
||||
- `agent` — Agent-based intelligent query
|
||||
- `chunk` — Generate searchable chunks
|
||||
@@ -0,0 +1,51 @@
|
||||
<!-- module: cli_lookup -->
|
||||
<!-- description: Lookup UUID from file path -->
|
||||
<!-- depends: cli_register -->
|
||||
|
||||
# Lookup — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry lookup <PATH>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Lookup the UUID of a registered video from its file path.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `PATH` | string | Yes | File path of the registered video |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Lookup UUID from path
|
||||
momentry lookup /path/to/video.mp4
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: `momentry lookup '<json-args>'`
|
||||
|
||||
**JSON Args**:
|
||||
```json
|
||||
{
|
||||
"path": "/path/to/video.mp4"
|
||||
}
|
||||
```
|
||||
|
||||
**Returns**: JSON with `file_uuid`.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `resolve` — Resolve path from UUID
|
||||
- `register` — Register video file
|
||||
- `status` — Check video status
|
||||
@@ -0,0 +1,51 @@
|
||||
<!-- module: cli_resolve -->
|
||||
<!-- description: Resolve file path from UUID -->
|
||||
<!-- depends: cli_register -->
|
||||
|
||||
# Resolve — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry resolve <UUID>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Resolve the file path of a registered video from its UUID.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `UUID` | string | Yes | File UUID of the video |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Resolve path from UUID
|
||||
momentry resolve 384b0ff44aaaa1f1
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: `momentry resolve '<json-args>'`
|
||||
|
||||
**JSON Args**:
|
||||
```json
|
||||
{
|
||||
"uuid": "384b0ff44aaaa1f1"
|
||||
}
|
||||
```
|
||||
|
||||
**Returns**: JSON with `file_path`.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `lookup` — Lookup UUID from path
|
||||
- `get_file_info` — Agent tool for file info
|
||||
- `status` — Check video status
|
||||
@@ -0,0 +1,57 @@
|
||||
<!-- module: cli_thumbnails -->
|
||||
<!-- description: Generate thumbnails for videos -->
|
||||
<!-- depends: cli_process -->
|
||||
|
||||
# Thumbnails — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry thumbnails [UUID] [OPTIONS]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Generate thumbnail images for video preview.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `UUID` | string | No | File UUID (generates for all if not specified) |
|
||||
|
||||
## Options
|
||||
|
||||
| Option | Type | Required | Default | Description |
|
||||
|--------|------|----------|---------|-------------|
|
||||
| `-c, --count` | u32 | No | 6 | Number of thumbnails per video |
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Generate thumbnails for all videos
|
||||
momentry thumbnails
|
||||
|
||||
# Generate 10 thumbnails for specific video
|
||||
momentry thumbnails 384b0ff44aaaa1f1 --count 10
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: `momentry thumbnails '<json-args>'`
|
||||
|
||||
**JSON Args**:
|
||||
```json
|
||||
{
|
||||
"uuid": "384b0ff44aaaa1f1",
|
||||
"count": 6
|
||||
}
|
||||
```
|
||||
|
||||
**Returns**: JSON with thumbnail paths.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `process` — Process video first
|
||||
- `play` — Play video with overlays
|
||||
- `get_representative_frame` — Agent tool for best frame
|
||||
@@ -0,0 +1,54 @@
|
||||
<!-- module: cli_status -->
|
||||
<!-- description: Show storage status report -->
|
||||
<!-- depends: cli_register -->
|
||||
|
||||
# Status — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry status [UUID]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Show storage and processing status report for registered videos.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `UUID` | string | No | File UUID (shows all if not specified) |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Show status for all videos
|
||||
momentry status
|
||||
|
||||
# Show status for specific video
|
||||
momentry status 384b0ff44aaaa1f1
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: `momentry status '<json-args>'`
|
||||
|
||||
**JSON Args**:
|
||||
```json
|
||||
{
|
||||
"uuid": "384b0ff44aaaa1f1"
|
||||
}
|
||||
```
|
||||
|
||||
**Returns**: JSON with status info.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `register` — Register video
|
||||
- `process` — Process video
|
||||
- `complete` — Mark completed
|
||||
@@ -0,0 +1,61 @@
|
||||
<!-- module: cli_backup -->
|
||||
<!-- description: Manage output backups -->
|
||||
<!-- depends: none -->
|
||||
|
||||
# Backup — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry backup <ACTION> [OPTIONS]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Manage backup files in the output directory.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `ACTION` | string | Yes | Action: list, cleanup |
|
||||
| `days` | u32 | No | Days to keep (for cleanup) |
|
||||
|
||||
## Options
|
||||
|
||||
None.
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# List backup files
|
||||
momentry backup list
|
||||
|
||||
# Cleanup backups older than 30 days
|
||||
momentry backup cleanup 30
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: `momentry backup '<json-args>'`
|
||||
|
||||
**JSON Args**:
|
||||
```json
|
||||
{
|
||||
"action": "list"
|
||||
}
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"action": "cleanup",
|
||||
"days": 30
|
||||
}
|
||||
```
|
||||
|
||||
**Returns**: JSON with backup info or cleanup results.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `status` — Storage status
|
||||
- `process` — Generates output files
|
||||
@@ -0,0 +1,64 @@
|
||||
<!-- module: cli_api_key -->
|
||||
<!-- description: Manage API keys for authentication -->
|
||||
<!-- depends: cli_server -->
|
||||
|
||||
# Api-Key — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry api-key <ACTION> [OPTIONS]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Manage API keys for server authentication and access control.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `ACTION` | enum | Yes | Action: create, list, validate, revoke, rotate, stats |
|
||||
|
||||
## Options
|
||||
|
||||
| Option | Type | Required | Description |
|
||||
|--------|------|----------|-------------|
|
||||
| `--name` | string | No | Key name (for create) |
|
||||
| `--key-type` | string | No | Key type: system, user, service, integration, emergency |
|
||||
| `--ttl` | i64 | No | TTL in days (for create) |
|
||||
| `--key` | string | No | API key to validate/revoke |
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Create a new API key
|
||||
momentry api-key create --name "my-service" --key-type service --ttl 365
|
||||
|
||||
# List all API keys
|
||||
momentry api-key list
|
||||
|
||||
# Validate an API key
|
||||
momentry api-key validate --key muser_xxx
|
||||
|
||||
# Revoke an API key
|
||||
momentry api-key revoke --key muser_xxx
|
||||
|
||||
# Rotate an API key
|
||||
momentry api-key rotate --key muser_xxx
|
||||
|
||||
# Show API key statistics
|
||||
momentry api-key stats
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
**Note**: API key management is admin-level operation.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `server` — API server using these keys
|
||||
- `gitea` — Manage Gitea tokens
|
||||
- `n8n` — Manage n8n API keys
|
||||
@@ -0,0 +1,57 @@
|
||||
<!-- module: cli_gitea -->
|
||||
<!-- description: Manage Gitea API tokens -->
|
||||
<!-- depends: none -->
|
||||
|
||||
# Gitea — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry gitea <ACTION> [OPTIONS]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Manage Gitea API tokens for repository sync.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `ACTION` | enum | Yes | Action: create, list, delete, verify |
|
||||
|
||||
## Options
|
||||
|
||||
| Option | Type | Required | Description |
|
||||
|--------|------|----------|-------------|
|
||||
| `--username` | string | No | Gitea username (for create/list/delete) |
|
||||
| `--password` | string | No | Gitea password (for create/list/delete) |
|
||||
| `--token-name` | string | No | Token name (for create/delete) |
|
||||
| `--scopes` | string | No | Token scopes (comma separated: read:repository,write:issue) |
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# Create a Gitea token
|
||||
momentry gitea create --username admin --password secret --token-name "ci-token" --scopes write:repository
|
||||
|
||||
# List tokens
|
||||
momentry gitea list --username admin --password secret
|
||||
|
||||
# Verify a token
|
||||
momentry gitea verify --token-name "ci-token"
|
||||
|
||||
# Delete a token
|
||||
momentry gitea delete --username admin --password secret --token-name "ci-token"
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Not directly callable via agent JSON args.
|
||||
|
||||
**Note**: Gitea token management requires admin credentials.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `api-key` — Manage Momentry API keys
|
||||
- `n8n` — Manage n8n API keys
|
||||
@@ -0,0 +1,74 @@
|
||||
<!-- module: cli_agent -->
|
||||
<!-- description: Run agent tools with JSON arguments -->
|
||||
<!-- depends: cli_vectorize -->
|
||||
|
||||
# Agent — CLI Command
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
momentry agent <TOOL> '<JSON_ARGS>'
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Run an agent tool directly from CLI with JSON arguments. Same interface as LLM function calling.
|
||||
|
||||
## Arguments
|
||||
|
||||
| Argument | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| `TOOL` | string | Yes | Tool name (find_file, list_files, tkg_query, etc.) |
|
||||
| `ARGS` | string | Yes | JSON arguments for the tool |
|
||||
|
||||
## Available Tools
|
||||
|
||||
| Tool | Description |
|
||||
|------|-------------|
|
||||
| `find_file` | Search files by keyword |
|
||||
| `list_files` | List recent files |
|
||||
| `tkg_query` | Query TKG (top_identities, speaker_dialogue, etc.) |
|
||||
| `tkg_nodes_query` | Query TKG nodes |
|
||||
| `tkg_edges_query` | Query TKG edges |
|
||||
| `tkg_node_detail` | Query single TKG node |
|
||||
| `smart_search` | Semantic search chunks |
|
||||
| `identity_text` | Search text to find identities |
|
||||
| `identities_search` | Search identity dialogue |
|
||||
| `get_identity_detail` | Get identity details |
|
||||
| `get_file_info` | Get file metadata |
|
||||
| `get_representative_frame` | Get representative frame |
|
||||
| `analyze_frame` | Analyze frame with vision LLM |
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# List recent files
|
||||
momentry agent list_files '{}'
|
||||
|
||||
# Find files by keyword
|
||||
momentry agent find_file '{"query":"batman"}'
|
||||
|
||||
# Get file info
|
||||
momentry agent get_file_info '{"file_uuid":"384b0ff44aaaa1f1"}'
|
||||
|
||||
# Query top identities
|
||||
momentry agent tkg_query '{"file_uuid":"384b0ff44aaaa1f1","query_type":"top_identities"}'
|
||||
|
||||
# Smart search
|
||||
momentry agent smart_search '{"query":"action scene","limit":5}'
|
||||
|
||||
# Analyze frame
|
||||
momentry agent analyze_frame '{"file_uuid":"384b0ff44aaaa1f1","question":"What is happening?"}'
|
||||
```
|
||||
|
||||
## Agent Callable
|
||||
|
||||
**Format**: Direct CLI invocation — agent tools are designed for this.
|
||||
|
||||
**Returns**: JSON string with tool results.
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `query` — Basic RAG query
|
||||
- `tkg_query` — TKG API endpoint
|
||||
- `smart_search` — Search API endpoint
|
||||
Reference in New Issue
Block a user