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
12 changes: 10 additions & 2 deletions skillopt_sleep/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
--target-skill-path PATH explicit live SKILL.md to stage/adopt
--tasks-file PATH reviewed TaskRecord JSON file to replay instead of harvesting
--backend mock|claude|codex|copilot|cursor|handoff
--source claude|codex|copilot|cursor|auto
--source claude|codex|copilot|cursor|antigravity|auto
--vscode-workspace-storage PATH
--model NAME
--lookback-hours N
Expand Down Expand Up @@ -80,10 +80,14 @@ def _add_common(p: argparse.ArgumentParser) -> None:
p.add_argument("--claude-home", default="", help="override ~/.claude (also isolates state)")
p.add_argument("--codex-home", default="", help="override ~/.codex for archived session harvest")
p.add_argument("--cursor-home", default="", help="override ~/.cursor for Cursor session harvest")
p.add_argument("--source", default="", choices=["", "claude", "codex", "copilot", "cursor", "auto"],
p.add_argument("--source", default="",
choices=["", "claude", "codex", "copilot", "cursor",
"antigravity", "auto"],
help="session transcript source")
p.add_argument("--vscode-workspace-storage", default="",
help="override VS Code User/workspaceStorage root for copilot source")
p.add_argument("--antigravity-home", default="",
help="override ~/.gemini/antigravity for antigravity source")
p.add_argument("--lookback-hours", type=int, default=None,
help="harvest window in hours; 0 = scan full history")
p.add_argument("--edit-budget", type=int, default=0)
Expand Down Expand Up @@ -124,6 +128,10 @@ def _cfg_from_args(args, task_meta: Dict[str, Any] | None = None) -> Any:
overrides["codex_home"] = os.path.abspath(args.codex_home)
if getattr(args, "cursor_home", ""):
overrides["cursor_home"] = os.path.abspath(os.path.expanduser(args.cursor_home))
if getattr(args, "antigravity_home", ""):
overrides["antigravity_home"] = os.path.abspath(
os.path.expanduser(args.antigravity_home)
)
if getattr(args, "source", ""):
overrides["transcript_source"] = args.source
if getattr(args, "vscode_workspace_storage", ""):
Expand Down
10 changes: 9 additions & 1 deletion skillopt_sleep/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@
CLAUDE_HOME = os.path.expanduser("~/.claude")
CODEX_HOME = os.path.expanduser("~/.codex")
CURSOR_HOME = os.path.expanduser("~/.cursor")
ANTIGRAVITY_HOME = os.path.expanduser("~/.gemini/antigravity")


DEFAULTS: Dict[str, Any] = {
# ── scope ──────────────────────────────────────────────────────────────
"claude_home": CLAUDE_HOME,
"codex_home": CODEX_HOME,
"cursor_home": CURSOR_HOME,
"antigravity_home": ANTIGRAVITY_HOME,
"vscode_workspace_storage": "", # "" => auto-detect platform defaults
"transcript_source": "claude", # "claude" | "codex" | "copilot" | "cursor" | "auto"
# "claude" | "codex" | "copilot" | "cursor" | "antigravity" | "auto"
"transcript_source": "claude",
"projects": "invoked", # "invoked" | "all" | [list of abs paths]
"invoked_project": "", # filled at runtime (cwd) when projects == "invoked"
"lookback_hours": 72, # harvest window when no prior sleep recorded
Expand Down Expand Up @@ -128,6 +131,11 @@ def cursor_projects_dir(self) -> str:
cursor_home = os.path.abspath(os.path.expanduser(str(self.data["cursor_home"])))
return os.path.join(cursor_home, "projects")

@property
def antigravity_conversations_dir(self) -> str:
home = os.path.abspath(os.path.expanduser(str(self.data["antigravity_home"])))
return os.path.join(home, "conversations")

@property
def vscode_workspace_storage(self) -> str:
value = self.data.get("vscode_workspace_storage", "") or ""
Expand Down
Loading