Skip to content
Source
Sign inSign up
fuko/rive-preview-player

Prune feedback bundles an agent read over 14 days ago #5

Mergedfukomerged 5 commits intomain fromfeat/feedback-cleanupmerged by fuko View on GitHub

Showing 4 changed files with 147 additions and 3 deletions (loading 1).

x
0 of 4 viewed, 4 left
61 additions and 1 deletionbin/rive-video-preview.mjsModified
View file
@@ -4,6 +4,7 @@
import { existsSync, mkdirSync, readFileSync, rmSync, statSync, writeFileSync } from 'node:fs';
import os from 'node:os';
import path from 'node:path';
+import { DEFAULT_FEEDBACK_DAYS, FeedbackStore } from '../lib/feedback.mjs';
import { STATE_DIR, findRunning, stateFile } from '../lib/registry.mjs';
import { PreviewServer } from '../lib/server.mjs';
​
@@ -14,6 +15,8 @@
rive-video-preview wait-feedback [project-dir | file.riv] [--timeout <time>] [--no-mark-read]
wait for "Send to agent", print the feedback, exit
rive-video-preview mcp [project-dir] run the MCP server (stdio) for coding agents
+ rive-video-preview prune-feedback [project-dir | file.riv] [--days <n>] [--dry-run]
+ delete feedback bundles read over n days ago
​
The project dir defaults to the current directory. It builds the project with
\`rive . --once\`, opens a player window, and rebuilds on every save. It keeps
@@ -28,6 +31,8 @@
--no-open don't open a window; just print the URL
--browser open in the default browser instead of a Chrome app window
--no-watch don't rebuild on file changes
+ --keep-feedback don't delete old feedback bundles
+ --feedback-days <n> delete bundles an agent read over n days ago (default 14)