Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
217 changes: 217 additions & 0 deletions .auto-claude-security.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
{
"base_commands": [
".",
"[",
"[[",
"ag",
"awk",
"basename",
"bash",
"bc",
"break",
"cat",
"cd",
"chmod",
"clear",
"cmp",
"column",
"comm",
"command",
"continue",
"cp",
"curl",
"cut",
"date",
"df",
"diff",
"dig",
"dirname",
"du",
"echo",
"egrep",
"env",
"eval",
"exec",
"exit",
"expand",
"export",
"expr",
"false",
"fd",
"fgrep",
"file",
"find",
"fmt",
"fold",
"gawk",
"gh",
"git",
"grep",
"gunzip",
"gzip",
"head",
"help",
"host",
"iconv",
"id",
"jobs",
"join",
"jq",
"kill",
"killall",
"less",
"let",
"ln",
"ls",
"lsof",
"man",
"mkdir",
"mktemp",
"more",
"mv",
"nl",
"paste",
"pgrep",
"ping",
"pkill",
"popd",
"printenv",
"printf",
"ps",
"pushd",
"pwd",
"read",
"readlink",
"realpath",
"reset",
"return",
"rev",
"rg",
"rm",
"rmdir",
"sed",
"seq",
"set",
"sh",
"shuf",
"sleep",
"sort",
"source",
"split",
"stat",
"tail",
"tar",
"tee",
"test",
"time",
"timeout",
"touch",
"tr",
"tree",
"true",
"type",
"uname",
"unexpand",
"uniq",
"unset",
"unzip",
"watch",
"wc",
"wget",
"whereis",
"which",
"whoami",
"xargs",
"yes",
"yq",
"zip",
"zsh"
],
"stack_commands": [
"ar",
"clang",
"clang++",
"cmake",
"composer",
"eslint",
"g++",
"gcc",
"ipython",
"jupyter",
"ld",
"make",
"meson",
"ninja",
"nm",
"node",
"notebook",
"npm",
"npx",
"objdump",
"pdb",
"php",
"pip",
"pip3",
"pipx",
"pudb",
"python",
"python3",
"react-scripts",
"strip",
"ts-node",
"tsc",
"tsx",
"vite"
],
"script_commands": [
"bun",
"npm",
"pnpm",
"yarn"
],
"custom_commands": [],
"detected_stack": {
"languages": [
"python",
"javascript",
"typescript",
"php",
"c",
"cpp"
],
"package_managers": [
"npm",
"pip"
],
"frameworks": [
"react",
"vite",
"eslint"
],
"databases": [],
"infrastructure": [],
"cloud_providers": [],
"code_quality_tools": [],
"version_managers": []
},
"custom_scripts": {
"npm_scripts": [
"dev",
"dev:watch",
"vite",
"pyloid",
"pyloid:watch",
"build",
"build:installer",
"setup"
],
"make_targets": [],
"poetry_scripts": [],
"cargo_aliases": [],
"shell_scripts": []
},
"project_dir": "D:\\dev\\personal\\VoiceFlow-fresh",
"created_at": "2026-01-14T18:09:48.602484",
"project_hash": "f43790d42262b3ae0f34be772dfa0899",
"inherited_from": "D:\\dev\\personal\\VoiceFlow-fresh"
}
25 changes: 25 additions & 0 deletions .auto-claude-status
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"active": true,
"spec": "002-bulk-delete-history-items",
"state": "building",
"subtasks": {
"completed": 10,
"total": 11,
"in_progress": 1,
"failed": 0
},
"phase": {
"current": "Integration Testing",
"id": null,
"total": 1
},
"workers": {
"active": 0,
"max": 1
},
"session": {
"number": 11,
"started_at": "2026-01-14T23:06:52.356672"
},
"last_update": "2026-01-14T23:30:24.885220"
}
39 changes: 39 additions & 0 deletions .claude_settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"sandbox": {
"enabled": true,
"autoAllowBashIfSandboxed": true
},
"permissions": {
"defaultMode": "acceptEdits",
"allow": [
"Read(./**)",
"Write(./**)",
"Edit(./**)",
"Glob(./**)",
"Grep(./**)",
"Read(D:\\dev\\personal\\VoiceFlow-fresh\\.auto-claude\\worktrees\\tasks\\002-bulk-delete-history-items/**)",
"Write(D:\\dev\\personal\\VoiceFlow-fresh\\.auto-claude\\worktrees\\tasks\\002-bulk-delete-history-items/**)",
"Edit(D:\\dev\\personal\\VoiceFlow-fresh\\.auto-claude\\worktrees\\tasks\\002-bulk-delete-history-items/**)",
"Glob(D:\\dev\\personal\\VoiceFlow-fresh\\.auto-claude\\worktrees\\tasks\\002-bulk-delete-history-items/**)",
"Grep(D:\\dev\\personal\\VoiceFlow-fresh\\.auto-claude\\worktrees\\tasks\\002-bulk-delete-history-items/**)",
"Read(D:\\dev\\personal\\VoiceFlow-fresh\\.auto-claude\\worktrees\\tasks\\002-bulk-delete-history-items\\.auto-claude\\specs\\002-bulk-delete-history-items/**)",
"Write(D:\\dev\\personal\\VoiceFlow-fresh\\.auto-claude\\worktrees\\tasks\\002-bulk-delete-history-items\\.auto-claude\\specs\\002-bulk-delete-history-items/**)",
"Edit(D:\\dev\\personal\\VoiceFlow-fresh\\.auto-claude\\worktrees\\tasks\\002-bulk-delete-history-items\\.auto-claude\\specs\\002-bulk-delete-history-items/**)",
"Read(D:\\dev\\personal\\VoiceFlow-fresh\\.auto-claude/**)",
"Write(D:\\dev\\personal\\VoiceFlow-fresh\\.auto-claude/**)",
"Edit(D:\\dev\\personal\\VoiceFlow-fresh\\.auto-claude/**)",
"Glob(D:\\dev\\personal\\VoiceFlow-fresh\\.auto-claude/**)",
"Grep(D:\\dev\\personal\\VoiceFlow-fresh\\.auto-claude/**)",
"Bash(*)",
"WebFetch(*)",
"WebSearch(*)",
"mcp__context7__resolve-library-id(*)",
"mcp__context7__get-library-docs(*)",
"mcp__graphiti-memory__search_nodes(*)",
"mcp__graphiti-memory__search_facts(*)",
"mcp__graphiti-memory__add_episode(*)",
"mcp__graphiti-memory__get_episodes(*)",
"mcp__graphiti-memory__get_entity_edge(*)"
]
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ docs/plans/
*.spec
build_error_log.txt


# Auto Claude data directory
.auto-claude/
4 changes: 4 additions & 0 deletions src-pyloid/app_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@ def get_history(self, limit: int = 100, offset: int = 0, search: str = None, inc
def delete_history(self, history_id: int):
self.db.delete_history(history_id)

def delete_history_bulk(self, history_ids: list):
info(f"Deleting {len(history_ids)} history items")
self.db.delete_history_bulk(history_ids)

def get_stats(self) -> dict:
return self.db.get_stats()

Expand Down
7 changes: 7 additions & 0 deletions src-pyloid/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,13 @@ async def delete_history(history_id: int):
return {"success": True}


@server.method()
async def delete_history_bulk(history_ids: list):
controller = get_controller()
controller.delete_history_bulk(history_ids)
return {"success": True}


@server.method()
async def copy_to_clipboard(text: str):
controller = get_controller()
Expand Down
39 changes: 39 additions & 0 deletions src-pyloid/services/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,45 @@ def delete_history(self, history_id: int):
conn.commit()
conn.close()

def delete_history_bulk(self, history_ids: list[int]):
"""Delete multiple history entries and their audio files in a transaction."""
if not history_ids:
return

conn = self._get_connection()
cursor = conn.cursor()

try:
# Fetch all entries to get audio metadata
placeholders = ",".join("?" * len(history_ids))
cursor.execute(
f"""
SELECT id, audio_relpath
FROM history
WHERE id IN ({placeholders})
""",
history_ids,
)
entries = cursor.fetchall()

# Delete audio files for entries that have audio
for entry in entries:
if entry["audio_relpath"]:
self._delete_audio_file(entry["audio_relpath"])

# Delete all records in a transaction
cursor.execute(
f"DELETE FROM history WHERE id IN ({placeholders})",
history_ids,
)

conn.commit()
except Exception:
conn.rollback()
raise
finally:
conn.close()

def clear_old_history(self, days: int):
"""Clear history older than specified days. -1 means keep forever."""
if days < 0:
Expand Down
Loading