sidequestor 0.2.3__tar.gz → 0.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sidequestor-0.2.3/src/sidequestor.egg-info → sidequestor-0.2.4}/PKG-INFO +55 -14
- {sidequestor-0.2.3 → sidequestor-0.2.4}/README.md +54 -13
- {sidequestor-0.2.3 → sidequestor-0.2.4}/pyproject.toml +1 -1
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/__init__.py +1 -1
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/cli.py +60 -23
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/launchd.py +4 -4
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/package_data/env.example +2 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/dashboard.html +1 -1
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ops/dashboard-server.py +17 -11
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-onboarding/SKILL.md +10 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-ops/SKILL.md +25 -11
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/setup.py +3 -3
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/setup_worker.py +15 -11
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/upgrade.py +47 -13
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/workspace.py +22 -3
- {sidequestor-0.2.3 → sidequestor-0.2.4/src/sidequestor.egg-info}/PKG-INFO +55 -14
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor.egg-info/SOURCES.txt +2 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/dashboard_review_preview.cjs +5 -1
- sidequestor-0.2.4/tests/test_instance_registry.py +240 -0
- sidequestor-0.2.4/tests/test_multi_instance_operations.py +290 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_runtime_config.py +4 -3
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_update_check.py +33 -1
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_upgrade.py +86 -3
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_worker_readiness.py +19 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/LICENSE +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/MANIFEST.in +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/setup.cfg +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/__main__.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/build_info.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/credential_setup.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/dashboard.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/isolated.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/job_path.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/migrations.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/native.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/onboarding.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/package_data/OPERATING.md +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/package_data/settings.json.example +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/quest_terminal.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/resources.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/approval_state.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/approval_store.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/assets/sidequestor-knows-its-pretty-thank-you.png +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/assets/sidequestor-mark.png +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/approval.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/approval.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/cron-due.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/email.lag +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/email.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/email.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/github.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/github_issue.lag +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/github_issue.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/github_issue.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/github_pr.lag +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/github_pr.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/github_pr.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/health_issue.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/health_issue.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/jira.lag +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/jira.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/jira.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/notion.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/notion_comments.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/notion_comments.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/notion_data_source.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/notion_data_source.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/notion_page.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/notion_page.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/notion_store.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/notion_tree.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/reactions.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/result.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/schedule.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/schedule.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/slack_channel.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/slack_channel.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/slack_dm.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/slack_dm.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/slack_mention.lag +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/slack_mention.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/slack_mention.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/slack_thread.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/slack_thread.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/slack_utils.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/telegram.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/telegram_chat.lag +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/telegram_chat.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/telegram_chat.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/telegram_search.lag +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/telegram_search.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/telegram_search.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_dm.lag +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_dm.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_dm.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_home.lag +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_home.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_home.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_mentions.lag +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_mentions.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_mentions.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_search.lag +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_search.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_search.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_user_posts.lag +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_user_posts.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/checkers/x_user_posts.watch.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/dashboard_settings.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/dispatch/dispatch-agent.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/dispatch/extract-tokens.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/dispatch/fake-worker.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/dispatch/format-stream.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/dispatch/plan.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/dispatch/run-agent.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/dispatch/slack-read-health.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/dispatch/spend-window.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/dispatch/translate-stream.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/dispatch/worker.mcp.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/inbox.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ledger/ack-watch.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ledger/add-watch.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ledger/approval-helper.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ledger/checker-health.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ledger/commit.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ledger/ensure-watch-ids.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ledger/housekeep.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ledger/watch-guard.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ops/dashboard-start.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ops/doctor.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ops/health-monitor.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ops/heartbeat-loop.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ops/notify.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ops/rotate-logs.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ops/sync-yaas-v2.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/reaction_config.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/reaction_lifecycle.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/setup/com.yaas.dashboard.plist.template +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/setup/com.yaas.heartbeat.plist.template +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/setup/com.yaas.triage.plist.template +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/setup/init-yaas-v2-tracking.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/setup/install-launchd-common.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/setup/install-launchd-dashboard.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/setup/install-launchd-heartbeat.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/setup/install-launchd.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/setup/setup.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/setup/yaas-app-config.json +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-action-closure/SKILL.md +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-answering-quality/SKILL.md +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-checker-authoring/SKILL.md +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-draft-readiness/SKILL.md +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-gdoc-anchored-comments/SKILL.md +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-gdoc-anchored-comments/gdoc-comment.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/SKILL.md +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/gmail-reply.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/gmail_policy.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/send_fresh.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-quest-creation/SKILL.md +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-quest-creation/new-quest.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-quest-dispatch/SKILL.md +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-reactions/SKILL.md +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-slack-channel/SKILL.md +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-slack-file/SKILL.md +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/skills/yaas-slack-interface/SKILL.md +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/client.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/credential_store.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/jira-call.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/keychain-helper.c +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/log-event.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/mcp-call.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/native_tls.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/notion-call.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/notion-state.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/react-lifecycle.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/slack-channel.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/slack-expand.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/slack-file.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/slack-react.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/slack-send.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/slack_credentials.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/slack_files.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/telegram-call.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/telegram-send.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/telegram_credentials.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/timeline_io.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/x-call.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/x-send.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/surfaces/x_credentials.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/system_health.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/tick.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/tick_check.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/tick_dispatch.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/tick_state.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/triage-loop.sh +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/update_check.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/upgrade_job.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/worker_readiness.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor.egg-info/dependency_links.txt +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor.egg-info/entry_points.txt +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor.egg-info/requires.txt +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor.egg-info/top_level.txt +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/yaas_triage/__init__.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/yaas_triage/__main__.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/src/yaas_triage/cli.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_approval_failure.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_build_info.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_checker_connector_gates.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_cli_lifecycle.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_connector_policy.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_credential_setup.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_credential_state_root.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_dashboard_app_links.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_dashboard_composer_persistence.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_dashboard_ports.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_dashboard_review_preview.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_dashboard_settings.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_default_workspace.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_dispatch_agent.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_dispatch_manifest.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_gdoc_comment.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_gmail_reply.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_gmail_send.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_initial_run_gate.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_install_script.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_jira_checker.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_job_path.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_launchd_lifecycle.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_native_tls.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_notion_checkers.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_notion_tree.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_onboarding.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_quest_creation_handoff.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_quest_terminal.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_reaction_config.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_reaction_lifecycle.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_reaction_pending.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_runtime_docs.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_runtime_imports.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_setup.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_slack_channel.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_slack_expand.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_slack_file.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_slack_parser.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_slack_search.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_slack_send.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_slack_worker_health.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_system_health.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_telegram_send.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_telegram_x_checkers.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_triage_liveness.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_unacked_prune.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_upgrade_job.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_version.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_watch_activity.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_watcher_status_dashboard.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_x_send.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_x_user_auth.py +0 -0
- {sidequestor-0.2.3 → sidequestor-0.2.4}/tests/test_x_user_checkers.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sidequestor
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Sidequestor workspace and triage command shell
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Requires-Python: >=3.11
|
|
@@ -63,11 +63,19 @@ sidequestor init .
|
|
|
63
63
|
# Save the ready-to-paste Slack YAML manifest.
|
|
64
64
|
sq setup --manifest > slack-app-manifest.yaml
|
|
65
65
|
# Run interactive onboarding; bypassPermissions is the default worker permission mode.
|
|
66
|
-
sq setup
|
|
66
|
+
sq --workspace . setup
|
|
67
67
|
# Start triage, heartbeat, and the dashboard and print the dashboard URL.
|
|
68
|
-
sq start
|
|
68
|
+
sq --workspace . start
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
+
Always target the folder explicitly when setting up a new or additional workspace.
|
|
72
|
+
`cd` and `sidequestor init .` do not override an existing saved default or an exported
|
|
73
|
+
workspace variable. `sq init` prints the exact next setup command for its folder,
|
|
74
|
+
including safe quoting for paths with spaces. Use that command or `sq --workspace . setup`
|
|
75
|
+
from inside the intended workspace.
|
|
76
|
+
Setup saves its selected workspace as the default; initializing an additional
|
|
77
|
+
folder alone does not replace an existing default.
|
|
78
|
+
|
|
71
79
|
The repository also includes `install.sh` for a fresh macOS install. It installs the
|
|
72
80
|
PyPI package with uv when needed, creates `~/sidequestor` only when no workspace is
|
|
73
81
|
registered, runs `sq setup`, and opens the dashboard. A separate `install-circle.sh.in`
|
|
@@ -88,7 +96,20 @@ only while that environment is active, or by full path such as `.venv/bin/sq`.
|
|
|
88
96
|
|
|
89
97
|
`sq start`, `sq stop`, and `sq dashboard` use your saved default workspace from any terminal directory. The first sole valid workspace is adopted automatically in the existing `~/.config/yaas/instances.json` registry (or the configured config home); no files are moved. With multiple workspaces, run `sq setup --select-workspace` once. Explicit `--workspace PATH` or `--instance ID` overrides the default. The selected workspace path is printed on lifecycle commands. `sq status` shows its path, saved dashboard address, and connection issues. `sq dashboard` opens the running dashboard; `sq dashboard url` prints its URL for scripts.
|
|
90
98
|
|
|
91
|
-
|
|
99
|
+
Targeting precedence is an explicit `--workspace PATH` or `--instance ID`, then
|
|
100
|
+
`SIDEQUESTOR_WORKSPACE` (or legacy `YAAS_WORKSPACE`), then the saved default. The
|
|
101
|
+
current directory is used only when no environment workspace or registered default
|
|
102
|
+
is selected. This also applies to `sq setup`. Combining `--workspace` and `--instance`
|
|
103
|
+
is rejected before any action.
|
|
104
|
+
Explicitly empty `--workspace` or `--instance` values are also rejected. An unset
|
|
105
|
+
shell variable passed as a selector cannot silently fall back to the default.
|
|
106
|
+
The default picker offers only registrations whose
|
|
107
|
+
folders still have the expected identity, shows their IDs, and rechecks the chosen
|
|
108
|
+
identity before saving. Inspect skipped stale/missing registrations with
|
|
109
|
+
`sq instances list --all`; refresh a folder with
|
|
110
|
+
`sq --workspace /path/to/workspace instances register`.
|
|
111
|
+
|
|
112
|
+
The dashboard defaults to **http://localhost:8877**. Its port is saved in `.yaas/instance.json`; existing published addresses are retained on upgrade. Starting again reuses running jobs. A port conflict is reported without silently choosing 8878 or 8879. Stop Sidequestor before explicitly changing its port with `sq start --dashboard-port PORT`. Missing AI login or confirmed Claude MCP authentication failures pause affected dispatches without adding quest no-progress backoff; rerun `sq --workspace /path/to/workspace setup` to verify and resume.
|
|
92
113
|
|
|
93
114
|
Background jobs record the PATH of the terminal that runs `sq start`, with the installation's own
|
|
94
115
|
`bin` first, and `sq start` prints the agent CLI they will use. If it reports the CLI as missing,
|
|
@@ -103,18 +124,18 @@ Commands use your saved default workspace. Explicit `--workspace PATH`, `--insta
|
|
|
103
124
|
2. Choose the workspace and Install to Workspace; an administrator may need to approve it.
|
|
104
125
|
3. Confirm that **Agents → Slack Model Context Protocol (MCP) Server** is enabled. The manifest requests this automatically; enable it there manually only if Slack or workspace policy leaves it off.
|
|
105
126
|
4. In **OAuth and Permissions → User Token Scopes**, verify the user scopes listed in the generated manifest. There are no bot scopes. `reactions:read` may need workspace-admin approval; without it reaction monitoring silently finds nothing. `reactions:write` is required or lifecycle transitions fail with `missing_scope`.
|
|
106
|
-
5. If you grant a scope later, reinstall the app and run `sq setup` again.
|
|
127
|
+
5. If you grant a scope later, reinstall the app and run `sq --workspace /path/to/workspace setup` again.
|
|
107
128
|
6. In Basic Information, copy the App ID and Client ID into `.env`, then complete OAuth.
|
|
108
129
|
|
|
109
130
|
For an existing app, generate the updated manifest with `sq setup --manifest`, add the newly
|
|
110
|
-
requested user scopes in the app's OAuth settings, reinstall the app, and run `sq setup` again to
|
|
131
|
+
requested user scopes in the app's OAuth settings, reinstall the app, and run `sq --workspace /path/to/workspace setup` again to
|
|
111
132
|
re-authorize the token. The manifest and OAuth flow use the same scope list in
|
|
112
133
|
`setup/yaas-app-config.json`. It includes `channels:write` and `channels:write.invites`
|
|
113
134
|
for public-channel management/invitations; these are not needed to create the private
|
|
114
135
|
onboarding interface. Sidequestor's channel-creation helper still creates private channels
|
|
115
136
|
only. File uploads need `files:write`; attachment downloads need `files:read`.
|
|
116
137
|
|
|
117
|
-
The wizard never overwrites real values. It fills only blank or placeholder settings, and `sq setup --instructions` never edits files. The selected backend is `codex` by default; the default Codex model is `gpt-6.1-sol` at `high` effort. Setup checks both the Codex and Claude Code CLIs and offers an npm installation for either missing CLI when Codex or Claude is selected. It checks `cursor-agent` when Cursor is selected. npm installation requires Node.js; the Claude Code npm package requires Node.js 22 or later. Installation is optional, but the selected worker CLI must be available before setup starts jobs. Setup guides CLI login, verifies the selected model, and checks the Slack connection used by workers. Claude’s native Slack MCP authorization is separate from Sidequestor Slack OAuth; setup verifies the supported Sidequestor helper used by workers. Rerun `sq setup` to reconnect after credentials expire. Setup offers a CLI update; startup checks only advise and never install updates. You can select `cursor` to use the authenticated `cursor-agent` CLI; leave `SIDEQUESTOR_CURSOR_MODEL` unset to use Cursor's default model, or set it to pin a model.
|
|
138
|
+
The wizard never overwrites real values. It fills only blank or placeholder settings, and `sq setup --instructions` never edits files. The selected backend is `codex` by default; the default Codex model is `gpt-6.1-sol` at `high` effort. Setup checks both the Codex and Claude Code CLIs and offers an npm installation for either missing CLI when Codex or Claude is selected. It checks `cursor-agent` when Cursor is selected. npm installation requires Node.js; the Claude Code npm package requires Node.js 22 or later. Installation is optional, but the selected worker CLI must be available before setup starts jobs. Setup guides CLI login, verifies the selected model, and checks the Slack connection used by workers. Claude’s native Slack MCP authorization is separate from Sidequestor Slack OAuth; setup verifies the supported Sidequestor helper used by workers. Rerun `sq --workspace /path/to/workspace setup` to reconnect after credentials expire. Setup offers a CLI update; startup checks only advise and never install updates. You can select `cursor` to use the authenticated `cursor-agent` CLI; leave `SIDEQUESTOR_CURSOR_MODEL` unset to use Cursor's default model, or set it to pin a model.
|
|
118
139
|
|
|
119
140
|
## How do I get guided onboarding?
|
|
120
141
|
|
|
@@ -155,7 +176,7 @@ returns onboarding to the verified owner DM if the channel becomes unavailable.
|
|
|
155
176
|
## How do I create a private Slack channel?
|
|
156
177
|
|
|
157
178
|
After upgrading, add `groups:write`, `groups:write.invites`, and `groups:write.topic` to
|
|
158
|
-
**User Token Scopes**, reinstall the Slack app, and run `sq setup` again to authorize them.
|
|
179
|
+
**User Token Scopes**, reinstall the Slack app, and run `sq --workspace /path/to/workspace setup` again to authorize them.
|
|
159
180
|
The generated manifest includes these scopes.
|
|
160
181
|
|
|
161
182
|
```bash
|
|
@@ -422,14 +443,19 @@ items because dirty watermarks are committed only after successful acknowledgeme
|
|
|
422
443
|
`tick --isolated --fake-worker` to acknowledge them safely, then confirm a final dry run is clean.
|
|
423
444
|
|
|
424
445
|
```bash
|
|
446
|
+
# These examples target the initialized workspace in the current directory.
|
|
425
447
|
# Print the optional block without changing any files.
|
|
426
|
-
sq setup --instructions
|
|
448
|
+
sq --workspace . setup --instructions
|
|
427
449
|
# Use defaults without OAuth.
|
|
428
|
-
sq setup --non-interactive
|
|
450
|
+
sq --workspace . setup --non-interactive
|
|
429
451
|
# Use the lower-level launchd operations when needed.
|
|
430
|
-
sq setup --render-only
|
|
452
|
+
sq --workspace . setup --render-only
|
|
453
|
+
sq --workspace . setup status
|
|
454
|
+
# Shadow install/uninstall remain available without loading production jobs.
|
|
455
|
+
sq --workspace . setup install
|
|
456
|
+
sq --workspace . setup uninstall
|
|
431
457
|
# Install the production launchd jobs.
|
|
432
|
-
sq setup --production install
|
|
458
|
+
sq --workspace . setup --production install
|
|
433
459
|
```
|
|
434
460
|
|
|
435
461
|
## How do I run and inspect it?
|
|
@@ -458,6 +484,13 @@ sq stop INSTANCE_ID
|
|
|
458
484
|
sq --version
|
|
459
485
|
```
|
|
460
486
|
|
|
487
|
+
An instance ID must still match the identity in its registered folder. If a folder
|
|
488
|
+
has been recreated or rekeyed, commands reject its old ID rather than acting on the
|
|
489
|
+
new instance. `sq instances list --all` marks these entries `STALE`; they are excluded
|
|
490
|
+
from the running list. Run `sq --workspace /path/to/workspace instances register`
|
|
491
|
+
to refresh that folder's registration and remove its old IDs. Registration and
|
|
492
|
+
rekeying preserve the folder's default-workspace selection.
|
|
493
|
+
|
|
461
494
|
`sq pause` stops triage, heartbeat, and the dashboard using the same verified lifecycle
|
|
462
495
|
as `sq stop`. It can interrupt an active worker; it does not wait for that worker to
|
|
463
496
|
finish. Quests, watermarks, history, and approval state are preserved. The managed jobs
|
|
@@ -668,8 +701,16 @@ Inbox is permanent and is restored automatically, including outstanding review w
|
|
|
668
701
|
Reaction actions, source/result links where available, and outcomes are recorded in Inbox.
|
|
669
702
|
|
|
670
703
|
One uv or pipx installation is shared by every workspace, so `sq upgrade` restarts only the
|
|
671
|
-
workspace it runs in and lists any other running workspaces
|
|
672
|
-
|
|
704
|
+
workspace it runs in and lists any other running workspaces whose long-running jobs
|
|
705
|
+
and launchd settings need refreshing. Package-only upgrades list these workspaces too.
|
|
706
|
+
Wait for their active workers to finish, then use the printed refresh commands. They
|
|
707
|
+
name the upgraded installation's exact Python, avoiding an older workspace-local
|
|
708
|
+
`sq` earlier on PATH. A normal start detects changed plists and rewrites/reloads them
|
|
709
|
+
on the saved dashboard port; `launchctl kickstart` alone does not rewrite a plist.
|
|
710
|
+
|
|
711
|
+
The dashboard reports the running package's build identity ahead of inherited
|
|
712
|
+
launchd version labels. An existing Python process can still have the old build
|
|
713
|
+
loaded until it restarts; a freshly launched process uses the installed build.
|
|
673
714
|
|
|
674
715
|
The first upgrade to the stable per-user Slack Keychain helper can show one macOS password prompt.
|
|
675
716
|
Choose **Always Allow** so background refreshes can use that same helper identity without prompting
|
|
@@ -50,11 +50,19 @@ sidequestor init .
|
|
|
50
50
|
# Save the ready-to-paste Slack YAML manifest.
|
|
51
51
|
sq setup --manifest > slack-app-manifest.yaml
|
|
52
52
|
# Run interactive onboarding; bypassPermissions is the default worker permission mode.
|
|
53
|
-
sq setup
|
|
53
|
+
sq --workspace . setup
|
|
54
54
|
# Start triage, heartbeat, and the dashboard and print the dashboard URL.
|
|
55
|
-
sq start
|
|
55
|
+
sq --workspace . start
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
+
Always target the folder explicitly when setting up a new or additional workspace.
|
|
59
|
+
`cd` and `sidequestor init .` do not override an existing saved default or an exported
|
|
60
|
+
workspace variable. `sq init` prints the exact next setup command for its folder,
|
|
61
|
+
including safe quoting for paths with spaces. Use that command or `sq --workspace . setup`
|
|
62
|
+
from inside the intended workspace.
|
|
63
|
+
Setup saves its selected workspace as the default; initializing an additional
|
|
64
|
+
folder alone does not replace an existing default.
|
|
65
|
+
|
|
58
66
|
The repository also includes `install.sh` for a fresh macOS install. It installs the
|
|
59
67
|
PyPI package with uv when needed, creates `~/sidequestor` only when no workspace is
|
|
60
68
|
registered, runs `sq setup`, and opens the dashboard. A separate `install-circle.sh.in`
|
|
@@ -75,7 +83,20 @@ only while that environment is active, or by full path such as `.venv/bin/sq`.
|
|
|
75
83
|
|
|
76
84
|
`sq start`, `sq stop`, and `sq dashboard` use your saved default workspace from any terminal directory. The first sole valid workspace is adopted automatically in the existing `~/.config/yaas/instances.json` registry (or the configured config home); no files are moved. With multiple workspaces, run `sq setup --select-workspace` once. Explicit `--workspace PATH` or `--instance ID` overrides the default. The selected workspace path is printed on lifecycle commands. `sq status` shows its path, saved dashboard address, and connection issues. `sq dashboard` opens the running dashboard; `sq dashboard url` prints its URL for scripts.
|
|
77
85
|
|
|
78
|
-
|
|
86
|
+
Targeting precedence is an explicit `--workspace PATH` or `--instance ID`, then
|
|
87
|
+
`SIDEQUESTOR_WORKSPACE` (or legacy `YAAS_WORKSPACE`), then the saved default. The
|
|
88
|
+
current directory is used only when no environment workspace or registered default
|
|
89
|
+
is selected. This also applies to `sq setup`. Combining `--workspace` and `--instance`
|
|
90
|
+
is rejected before any action.
|
|
91
|
+
Explicitly empty `--workspace` or `--instance` values are also rejected. An unset
|
|
92
|
+
shell variable passed as a selector cannot silently fall back to the default.
|
|
93
|
+
The default picker offers only registrations whose
|
|
94
|
+
folders still have the expected identity, shows their IDs, and rechecks the chosen
|
|
95
|
+
identity before saving. Inspect skipped stale/missing registrations with
|
|
96
|
+
`sq instances list --all`; refresh a folder with
|
|
97
|
+
`sq --workspace /path/to/workspace instances register`.
|
|
98
|
+
|
|
99
|
+
The dashboard defaults to **http://localhost:8877**. Its port is saved in `.yaas/instance.json`; existing published addresses are retained on upgrade. Starting again reuses running jobs. A port conflict is reported without silently choosing 8878 or 8879. Stop Sidequestor before explicitly changing its port with `sq start --dashboard-port PORT`. Missing AI login or confirmed Claude MCP authentication failures pause affected dispatches without adding quest no-progress backoff; rerun `sq --workspace /path/to/workspace setup` to verify and resume.
|
|
79
100
|
|
|
80
101
|
Background jobs record the PATH of the terminal that runs `sq start`, with the installation's own
|
|
81
102
|
`bin` first, and `sq start` prints the agent CLI they will use. If it reports the CLI as missing,
|
|
@@ -90,18 +111,18 @@ Commands use your saved default workspace. Explicit `--workspace PATH`, `--insta
|
|
|
90
111
|
2. Choose the workspace and Install to Workspace; an administrator may need to approve it.
|
|
91
112
|
3. Confirm that **Agents → Slack Model Context Protocol (MCP) Server** is enabled. The manifest requests this automatically; enable it there manually only if Slack or workspace policy leaves it off.
|
|
92
113
|
4. In **OAuth and Permissions → User Token Scopes**, verify the user scopes listed in the generated manifest. There are no bot scopes. `reactions:read` may need workspace-admin approval; without it reaction monitoring silently finds nothing. `reactions:write` is required or lifecycle transitions fail with `missing_scope`.
|
|
93
|
-
5. If you grant a scope later, reinstall the app and run `sq setup` again.
|
|
114
|
+
5. If you grant a scope later, reinstall the app and run `sq --workspace /path/to/workspace setup` again.
|
|
94
115
|
6. In Basic Information, copy the App ID and Client ID into `.env`, then complete OAuth.
|
|
95
116
|
|
|
96
117
|
For an existing app, generate the updated manifest with `sq setup --manifest`, add the newly
|
|
97
|
-
requested user scopes in the app's OAuth settings, reinstall the app, and run `sq setup` again to
|
|
118
|
+
requested user scopes in the app's OAuth settings, reinstall the app, and run `sq --workspace /path/to/workspace setup` again to
|
|
98
119
|
re-authorize the token. The manifest and OAuth flow use the same scope list in
|
|
99
120
|
`setup/yaas-app-config.json`. It includes `channels:write` and `channels:write.invites`
|
|
100
121
|
for public-channel management/invitations; these are not needed to create the private
|
|
101
122
|
onboarding interface. Sidequestor's channel-creation helper still creates private channels
|
|
102
123
|
only. File uploads need `files:write`; attachment downloads need `files:read`.
|
|
103
124
|
|
|
104
|
-
The wizard never overwrites real values. It fills only blank or placeholder settings, and `sq setup --instructions` never edits files. The selected backend is `codex` by default; the default Codex model is `gpt-6.1-sol` at `high` effort. Setup checks both the Codex and Claude Code CLIs and offers an npm installation for either missing CLI when Codex or Claude is selected. It checks `cursor-agent` when Cursor is selected. npm installation requires Node.js; the Claude Code npm package requires Node.js 22 or later. Installation is optional, but the selected worker CLI must be available before setup starts jobs. Setup guides CLI login, verifies the selected model, and checks the Slack connection used by workers. Claude’s native Slack MCP authorization is separate from Sidequestor Slack OAuth; setup verifies the supported Sidequestor helper used by workers. Rerun `sq setup` to reconnect after credentials expire. Setup offers a CLI update; startup checks only advise and never install updates. You can select `cursor` to use the authenticated `cursor-agent` CLI; leave `SIDEQUESTOR_CURSOR_MODEL` unset to use Cursor's default model, or set it to pin a model.
|
|
125
|
+
The wizard never overwrites real values. It fills only blank or placeholder settings, and `sq setup --instructions` never edits files. The selected backend is `codex` by default; the default Codex model is `gpt-6.1-sol` at `high` effort. Setup checks both the Codex and Claude Code CLIs and offers an npm installation for either missing CLI when Codex or Claude is selected. It checks `cursor-agent` when Cursor is selected. npm installation requires Node.js; the Claude Code npm package requires Node.js 22 or later. Installation is optional, but the selected worker CLI must be available before setup starts jobs. Setup guides CLI login, verifies the selected model, and checks the Slack connection used by workers. Claude’s native Slack MCP authorization is separate from Sidequestor Slack OAuth; setup verifies the supported Sidequestor helper used by workers. Rerun `sq --workspace /path/to/workspace setup` to reconnect after credentials expire. Setup offers a CLI update; startup checks only advise and never install updates. You can select `cursor` to use the authenticated `cursor-agent` CLI; leave `SIDEQUESTOR_CURSOR_MODEL` unset to use Cursor's default model, or set it to pin a model.
|
|
105
126
|
|
|
106
127
|
## How do I get guided onboarding?
|
|
107
128
|
|
|
@@ -142,7 +163,7 @@ returns onboarding to the verified owner DM if the channel becomes unavailable.
|
|
|
142
163
|
## How do I create a private Slack channel?
|
|
143
164
|
|
|
144
165
|
After upgrading, add `groups:write`, `groups:write.invites`, and `groups:write.topic` to
|
|
145
|
-
**User Token Scopes**, reinstall the Slack app, and run `sq setup` again to authorize them.
|
|
166
|
+
**User Token Scopes**, reinstall the Slack app, and run `sq --workspace /path/to/workspace setup` again to authorize them.
|
|
146
167
|
The generated manifest includes these scopes.
|
|
147
168
|
|
|
148
169
|
```bash
|
|
@@ -409,14 +430,19 @@ items because dirty watermarks are committed only after successful acknowledgeme
|
|
|
409
430
|
`tick --isolated --fake-worker` to acknowledge them safely, then confirm a final dry run is clean.
|
|
410
431
|
|
|
411
432
|
```bash
|
|
433
|
+
# These examples target the initialized workspace in the current directory.
|
|
412
434
|
# Print the optional block without changing any files.
|
|
413
|
-
sq setup --instructions
|
|
435
|
+
sq --workspace . setup --instructions
|
|
414
436
|
# Use defaults without OAuth.
|
|
415
|
-
sq setup --non-interactive
|
|
437
|
+
sq --workspace . setup --non-interactive
|
|
416
438
|
# Use the lower-level launchd operations when needed.
|
|
417
|
-
sq setup --render-only
|
|
439
|
+
sq --workspace . setup --render-only
|
|
440
|
+
sq --workspace . setup status
|
|
441
|
+
# Shadow install/uninstall remain available without loading production jobs.
|
|
442
|
+
sq --workspace . setup install
|
|
443
|
+
sq --workspace . setup uninstall
|
|
418
444
|
# Install the production launchd jobs.
|
|
419
|
-
sq setup --production install
|
|
445
|
+
sq --workspace . setup --production install
|
|
420
446
|
```
|
|
421
447
|
|
|
422
448
|
## How do I run and inspect it?
|
|
@@ -445,6 +471,13 @@ sq stop INSTANCE_ID
|
|
|
445
471
|
sq --version
|
|
446
472
|
```
|
|
447
473
|
|
|
474
|
+
An instance ID must still match the identity in its registered folder. If a folder
|
|
475
|
+
has been recreated or rekeyed, commands reject its old ID rather than acting on the
|
|
476
|
+
new instance. `sq instances list --all` marks these entries `STALE`; they are excluded
|
|
477
|
+
from the running list. Run `sq --workspace /path/to/workspace instances register`
|
|
478
|
+
to refresh that folder's registration and remove its old IDs. Registration and
|
|
479
|
+
rekeying preserve the folder's default-workspace selection.
|
|
480
|
+
|
|
448
481
|
`sq pause` stops triage, heartbeat, and the dashboard using the same verified lifecycle
|
|
449
482
|
as `sq stop`. It can interrupt an active worker; it does not wait for that worker to
|
|
450
483
|
finish. Quests, watermarks, history, and approval state are preserved. The managed jobs
|
|
@@ -655,8 +688,16 @@ Inbox is permanent and is restored automatically, including outstanding review w
|
|
|
655
688
|
Reaction actions, source/result links where available, and outcomes are recorded in Inbox.
|
|
656
689
|
|
|
657
690
|
One uv or pipx installation is shared by every workspace, so `sq upgrade` restarts only the
|
|
658
|
-
workspace it runs in and lists any other running workspaces
|
|
659
|
-
|
|
691
|
+
workspace it runs in and lists any other running workspaces whose long-running jobs
|
|
692
|
+
and launchd settings need refreshing. Package-only upgrades list these workspaces too.
|
|
693
|
+
Wait for their active workers to finish, then use the printed refresh commands. They
|
|
694
|
+
name the upgraded installation's exact Python, avoiding an older workspace-local
|
|
695
|
+
`sq` earlier on PATH. A normal start detects changed plists and rewrites/reloads them
|
|
696
|
+
on the saved dashboard port; `launchctl kickstart` alone does not rewrite a plist.
|
|
697
|
+
|
|
698
|
+
The dashboard reports the running package's build identity ahead of inherited
|
|
699
|
+
launchd version labels. An existing Python process can still have the old build
|
|
700
|
+
loaded until it restarts; a freshly launched process uses the installed build.
|
|
660
701
|
|
|
661
702
|
The first upgrade to the stable per-user Slack Keychain helper can show one macOS password prompt.
|
|
662
703
|
Choose **Always Allow** so background refreshes can use that same helper identity without prompting
|
|
@@ -50,6 +50,7 @@ from .workspace import (
|
|
|
50
50
|
register_workspace,
|
|
51
51
|
default_workspace,
|
|
52
52
|
set_default_workspace,
|
|
53
|
+
workspace_command,
|
|
53
54
|
rekey_workspace,
|
|
54
55
|
validate_workspace,
|
|
55
56
|
)
|
|
@@ -127,7 +128,7 @@ def _workspace_from_environment() -> str | None:
|
|
|
127
128
|
def _usage() -> str:
|
|
128
129
|
lines = ["usage: sidequestor [--workspace PATH] COMMAND [ARGS...]", "", "commands:"]
|
|
129
130
|
lines.extend(f" {name:15} {description}" for name, description in COMMANDS.items())
|
|
130
|
-
lines.extend(["", "global options:", " --workspace PATH select an initialized workspace (default
|
|
131
|
+
lines.extend(["", "global options:", " --workspace PATH select an initialized workspace (otherwise environment, saved default, then current directory)",
|
|
131
132
|
" --instance ID select an instance from the advisory registry",
|
|
132
133
|
" --version print the engine version", " --help print this help"])
|
|
133
134
|
return "\n".join(lines)
|
|
@@ -164,6 +165,15 @@ def _command_help(command: str) -> str:
|
|
|
164
165
|
return f"usage: {usage}\n\n{COMMANDS[command]}"
|
|
165
166
|
|
|
166
167
|
|
|
168
|
+
def _validate_workspace_selection(workspace_path: str | None, instance: str | None) -> None:
|
|
169
|
+
if workspace_path == "":
|
|
170
|
+
raise SystemExit("--workspace requires a non-empty path; no instance was selected")
|
|
171
|
+
if instance == "":
|
|
172
|
+
raise SystemExit("--instance requires a non-empty ID or name; no instance was selected")
|
|
173
|
+
if workspace_path is not None and instance is not None:
|
|
174
|
+
raise SystemExit("choose either --workspace or --instance, not both")
|
|
175
|
+
|
|
176
|
+
|
|
167
177
|
def _extract_globals(argv: list[str]) -> tuple[str | None, str | None, list[str]]:
|
|
168
178
|
workspace = None
|
|
169
179
|
instance = None
|
|
@@ -190,20 +200,36 @@ def _extract_globals(argv: list[str]) -> tuple[str | None, str | None, list[str]
|
|
|
190
200
|
continue
|
|
191
201
|
remaining.append(value)
|
|
192
202
|
index += 1
|
|
203
|
+
_validate_workspace_selection(workspace, instance)
|
|
193
204
|
return workspace, instance, remaining
|
|
194
205
|
|
|
195
206
|
|
|
207
|
+
def _registered_workspace(instance: str) -> Workspace:
|
|
208
|
+
_validate_workspace_selection(None, instance)
|
|
209
|
+
matches = [row for row in list_instances()
|
|
210
|
+
if row.get("instance_id") == instance or row.get("display_name") == instance]
|
|
211
|
+
if len(matches) != 1:
|
|
212
|
+
raise SystemExit(f"instance not found or ambiguous: {instance}")
|
|
213
|
+
row = matches[0]
|
|
214
|
+
try:
|
|
215
|
+
workspace = load_workspace(row["path"])
|
|
216
|
+
except (OSError, SystemExit, KeyError, TypeError, RuntimeError, ValueError) as exc:
|
|
217
|
+
raise SystemExit(f"Registered workspace is unavailable for {instance}. Run sq --workspace PATH instances register to refresh it.") from exc
|
|
218
|
+
if workspace.instance_id != row.get("instance_id"):
|
|
219
|
+
raise SystemExit(
|
|
220
|
+
f"stale instance registration: {instance}; {workspace.root} now belongs to "
|
|
221
|
+
f"{workspace.instance_id}. Run {workspace_command(workspace, 'instances', 'register')} "
|
|
222
|
+
"to refresh its registration."
|
|
223
|
+
)
|
|
224
|
+
return workspace
|
|
225
|
+
|
|
226
|
+
|
|
196
227
|
def _workspace(workspace_path: str | None, instance: str | None) -> Workspace:
|
|
197
|
-
|
|
198
|
-
raise SystemExit("choose either --workspace or --instance, not both")
|
|
228
|
+
_validate_workspace_selection(workspace_path, instance)
|
|
199
229
|
if workspace_path:
|
|
200
230
|
return find_workspace(workspace_path)
|
|
201
231
|
if instance:
|
|
202
|
-
|
|
203
|
-
if row.get("instance_id") == instance or row.get("display_name") == instance]
|
|
204
|
-
if len(matches) != 1:
|
|
205
|
-
raise SystemExit(f"instance not found or ambiguous: {instance}")
|
|
206
|
-
return load_workspace(matches[0]["path"])
|
|
232
|
+
return _registered_workspace(instance)
|
|
207
233
|
inherited = _workspace_from_environment()
|
|
208
234
|
if inherited:
|
|
209
235
|
return find_workspace(inherited)
|
|
@@ -224,6 +250,7 @@ def _cmd_init(args: list[str]) -> int:
|
|
|
224
250
|
sync_resources(workspace)
|
|
225
251
|
print(f"initialized Sidequestor workspace: {workspace.root}")
|
|
226
252
|
print(f"instance_id: {workspace.instance_id}")
|
|
253
|
+
print("Next: " + workspace_command(workspace, "setup"))
|
|
227
254
|
print("Slack app manifest: run `sq setup --manifest > slack-app-manifest.yaml` to generate the ready-to-paste YAML.")
|
|
228
255
|
return 0
|
|
229
256
|
|
|
@@ -242,7 +269,7 @@ def _cmd_instances(
|
|
|
242
269
|
action = args[0] if args else "list"
|
|
243
270
|
if action == "list":
|
|
244
271
|
parser = argparse.ArgumentParser(prog="sidequestor instances list")
|
|
245
|
-
parser.add_argument("--all", action="store_true", help="include
|
|
272
|
+
parser.add_argument("--all", action="store_true", help="include stopped, missing, and stale registrations")
|
|
246
273
|
values = parser.parse_args(args[1:])
|
|
247
274
|
rows = []
|
|
248
275
|
for registered in list_instances():
|
|
@@ -250,12 +277,15 @@ def _cmd_instances(
|
|
|
250
277
|
path = str(registered.get("path", ""))
|
|
251
278
|
try:
|
|
252
279
|
workspace = load_workspace(path)
|
|
253
|
-
except (OSError, SystemExit):
|
|
280
|
+
except (OSError, SystemExit, RuntimeError, ValueError):
|
|
254
281
|
row["status"] = "missing"
|
|
255
282
|
row["path"] = path
|
|
256
283
|
else:
|
|
257
284
|
row["path"] = str(workspace.root)
|
|
258
|
-
|
|
285
|
+
if workspace.instance_id != row.get("instance_id"):
|
|
286
|
+
row["status"] = "stale"
|
|
287
|
+
else:
|
|
288
|
+
row["status"] = "running" if production_is_running(workspace) else "stopped"
|
|
259
289
|
if values.all or row["status"] == "running":
|
|
260
290
|
rows.append(row)
|
|
261
291
|
if not rows and not values.all:
|
|
@@ -693,6 +723,7 @@ def _dispatch(command: str, args: list[str], workspace_path: str | None, instanc
|
|
|
693
723
|
# Vacation-friendly names for the existing lifecycle, not a second scheduler
|
|
694
724
|
# or a new state machine. Preserve all targeting, safety checks and failures.
|
|
695
725
|
command = {"pause": "stop", "resume": "start"}.get(command, command)
|
|
726
|
+
_validate_workspace_selection(workspace_path, instance)
|
|
696
727
|
if command == "init":
|
|
697
728
|
return _cmd_init(args)
|
|
698
729
|
if command == "instances":
|
|
@@ -709,27 +740,33 @@ def _dispatch(command: str, args: list[str], workspace_path: str | None, instanc
|
|
|
709
740
|
raise SystemExit("choose one of INSTANCE_ID, --workspace, or --instance")
|
|
710
741
|
if command == "stop" and (args or instance):
|
|
711
742
|
target = args[0] if args else instance
|
|
712
|
-
|
|
713
|
-
if row.get("instance_id") == target or row.get("display_name") == target]
|
|
714
|
-
if len(matches) != 1:
|
|
715
|
-
raise SystemExit(f"instance not found or ambiguous: {target}")
|
|
716
|
-
return _cmd_stop(load_workspace(matches[0]["path"]))
|
|
743
|
+
return _cmd_stop(_registered_workspace(target))
|
|
717
744
|
if (command == "upgrade" and not (workspace_path or instance or _workspace_from_environment())
|
|
718
745
|
and find_workspace_root() is None):
|
|
719
746
|
return run_upgrade(None, args)
|
|
720
747
|
if command == "setup" and args == ["--select-workspace"]:
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
748
|
+
choices = []
|
|
749
|
+
for row in list_instances():
|
|
750
|
+
try:
|
|
751
|
+
candidate = load_workspace(row["path"])
|
|
752
|
+
except (OSError, SystemExit, KeyError, TypeError, RuntimeError, ValueError):
|
|
753
|
+
continue
|
|
754
|
+
if candidate.instance_id == row.get("instance_id") and candidate not in choices:
|
|
755
|
+
choices.append(candidate)
|
|
756
|
+
if not choices:
|
|
757
|
+
raise SystemExit("No valid registered workspaces. Run sq --workspace PATH instances register, then retry.")
|
|
758
|
+
for index, candidate in enumerate(choices, 1):
|
|
759
|
+
print(f"{index}. {candidate.display_name} ({candidate.root}) [{candidate.instance_id}]")
|
|
726
760
|
try:
|
|
727
761
|
choice = int(input("Default workspace number: "))
|
|
728
|
-
if not 1 <= choice <= len(
|
|
762
|
+
if not 1 <= choice <= len(choices):
|
|
729
763
|
raise ValueError()
|
|
730
|
-
selected = load_workspace(rows[choice - 1]["path"])
|
|
731
764
|
except (ValueError, EOFError):
|
|
732
765
|
raise SystemExit("No default selected.")
|
|
766
|
+
chosen = choices[choice - 1]
|
|
767
|
+
selected = load_workspace(chosen.root)
|
|
768
|
+
if selected.instance_id != chosen.instance_id:
|
|
769
|
+
raise SystemExit("stale instance registration: workspace identity changed while selecting; retry sq setup --select-workspace.")
|
|
733
770
|
set_default_workspace(selected)
|
|
734
771
|
print(f"Default workspace: {selected.root}")
|
|
735
772
|
return 0
|
|
@@ -14,7 +14,7 @@ import time
|
|
|
14
14
|
from pathlib import Path
|
|
15
15
|
from xml.sax.saxutils import escape
|
|
16
16
|
|
|
17
|
-
from .workspace import Workspace, workspace_lock
|
|
17
|
+
from .workspace import Workspace, workspace_lock, workspace_command
|
|
18
18
|
from .build_info import build_info
|
|
19
19
|
from .job_path import JobPath, resolve_job_path
|
|
20
20
|
|
|
@@ -406,14 +406,14 @@ def start_executable(workspace: Workspace, requested: Path) -> Path:
|
|
|
406
406
|
return requested
|
|
407
407
|
registered = Path(registered)
|
|
408
408
|
if not registered.is_absolute() or not registered.is_file() or not os.access(registered, os.X_OK):
|
|
409
|
-
raise LaunchdLifecycleError("This workspace's registered Sidequestor runtime is unavailable. Run
|
|
409
|
+
raise LaunchdLifecycleError(f"This workspace's registered Sidequestor runtime is unavailable. Run {workspace_command(workspace, 'setup')} to repair it; existing jobs were left unchanged.")
|
|
410
410
|
try:
|
|
411
411
|
result = subprocess.run([str(registered), "-P", "-c", "import sidequestor"],
|
|
412
412
|
env=runtime_environment(), check=False, capture_output=True, timeout=10)
|
|
413
413
|
except (OSError, subprocess.TimeoutExpired) as exc:
|
|
414
|
-
raise LaunchdLifecycleError("Cannot verify this workspace's registered runtime. Run
|
|
414
|
+
raise LaunchdLifecycleError(f"Cannot verify this workspace's registered runtime. Run {workspace_command(workspace, 'setup')} to repair it.") from exc
|
|
415
415
|
if result.returncode:
|
|
416
|
-
raise LaunchdLifecycleError("Sidequestor is missing from this workspace's registered runtime. Run
|
|
416
|
+
raise LaunchdLifecycleError(f"Sidequestor is missing from this workspace's registered runtime. Run {workspace_command(workspace, 'setup')} to repair it.")
|
|
417
417
|
return registered
|
|
418
418
|
|
|
419
419
|
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
#
|
|
13
13
|
# Most SIDEQUESTOR_* knobs below are optional and shown with their runtime defaults.
|
|
14
14
|
# The worker permission values below are the defaults chosen by `sq setup`.
|
|
15
|
+
# When setting up this folder, use `sq --workspace . setup` from inside it.
|
|
16
|
+
# Plain `sq setup` uses an exported workspace or saved default before the current folder.
|
|
15
17
|
|
|
16
18
|
# Dashboard launch target, independent of the worker harness: terminal, codex, claude or cursor.
|
|
17
19
|
# Codex/Claude open a new chat with a prompt. Cursor opens the workspace without a prompt.
|
|
@@ -179,7 +179,7 @@ function isRunning(q){return triagePhase(state.control)==='dispatching'&&(state.
|
|
|
179
179
|
function isInitialising(q){return q.sidequestor_bootstrap===true}function questGroup(q){if(isInitialising(q))return'Initialising';const a=attentionFor(q.id);if(a.some(x=>x.kind==='review'))return'Needs you';if(q.status==='blocked'||q.last_blocked||(q.misconfigured_watches||[]).length)return'Needs a fix';if((q.backoff_watches||[]).length)return'Investigate';if(isRunning(q))return'Running';if((q.ratelimited_watches||[]).length)return'Retrying';return'Watching'}
|
|
180
180
|
function renderMotion(moving){const stream=$('#motion-stream'),latest=(state.control.activity||[])[0],key=latest&&(latest.id||`${latest.quest_id}:${latest.timestamp}:${latest.event}`);stream.classList.toggle('active',moving);stream.classList.toggle('paused',document.hidden);if(moving&&motionEventKey&&key&&key!==motionEventKey){stream.classList.remove('event');void stream.offsetWidth;stream.classList.add('event');clearTimeout(motionFlashTimer);motionFlashTimer=setTimeout(()=>stream.classList.remove('event'),900)}motionEventKey=key||motionEventKey}
|
|
181
181
|
function triagePhase(control,now=Date.now()){const t=control?.triage||{},live=control?.live||{},started=Date.parse(t.tick_started_utc),completed=Date.parse(t.last_triage_completed_utc),workerStarted=Date.parse(live.started_at),open=Number.isFinite(started)&&(!Number.isFinite(completed)||started>completed),ceiling=Number(control?.liveness?.hard_tick_sec)||6300,stallMs=(Number(control?.liveness?.stall_sec)||STALE_MS/1000)*1000,matching=open&&live.lifecycle&&Number.isFinite(workerStarted)&&workerStarted>=started;if(open&&now-started>ceiling*1000)return'tick_overdue';if(matching){if(live.state==='exited'){const ended=Date.parse(live.ended_at);if(Number.isFinite(ended)&&ended>=started&&now-ended>=-30000&&now-ended<=300000)return'dispatch_gap'}if(live.stale)return'worker_stale';if(live.overdue)return'worker_overdue';if(live.running)return'dispatching'}return!Number.isFinite(completed)||now-completed>stallMs?'stale':'live'}
|
|
182
|
-
function renderSubhead(phase,last,live){const el=$('#subhead'),readiness=(state.control.attention||[]).find(x=>String(x.id||'').startsWith('worker-readiness:'));if(readiness){const reason=String(readiness.detail||'Worker connection needs attention').replace(/\s*Run sq setup\.?\s*$/i,'');el.innerHTML=`${esc(reason)} Open Terminal and run <code
|
|
182
|
+
function renderSubhead(phase,last,live){const el=$('#subhead'),readiness=(state.control.attention||[]).find(x=>String(x.id||'').startsWith('worker-readiness:'));if(readiness){const reason=String(readiness.detail||'Worker connection needs attention').replace(/\s*Run sq setup\.?\s*$/i,'');const path=state.control.workspace?.path,absolute=typeof path==='string'&&path.startsWith('/'),command=absolute?"sq --workspace '"+path.replaceAll("'","'\"'\"'")+"' setup":'sq --workspace . setup';el.innerHTML=`${esc(reason)} Open Terminal and run <code>${esc(command)}</code> ${absolute?'from any folder':'from this workspace’s folder'}.`;return}const targets=(live?.targets||[]).join(', ')||'an unreported target';if(phase==='dispatching'){el.textContent=`Worker handling ${targets} for ${ago(live.started_at)} · heartbeat ${ago(live.heartbeat_at)} ago.`;return}if(phase==='dispatch_gap'){el.textContent=`Finishing a dispatch and preparing the next worker.`;return}if(phase==='worker_stale'){el.textContent=`Worker heartbeat stopped for ${targets}.`;return}if(phase==='worker_overdue'){el.textContent=`Worker handling ${targets} exceeded its time limit.`;return}if(phase==='tick_overdue'){el.textContent='Triage tick ran past its dispatch ceiling. Check the worker and triage logs.';return}const age=document.createElement('span');age.className=`live-age${phase==='stale'?' stale':''}`;age.textContent=last?ago(last):'unknown';el.replaceChildren(phase==='stale'?'Last completed ':'Last triage completed ',age,' ago.')}
|
|
183
183
|
function connectionStatus(control,now=Date.now()){const phase=triagePhase(control,now);return{className:`connection${phase==='stale'?' stale':['worker_stale','worker_overdue','tick_overdue'].includes(phase)?' down':''}`,label:{stale:'Triage stale',dispatching:'Dispatching',dispatch_gap:'Dispatching',worker_stale:'Worker stalled',worker_overdue:'Dispatch overdue',tick_overdue:'Tick overdue'}[phase]||'Live'}}
|
|
184
184
|
function setConnection(status){const conn=$('#connection');conn.className=status.className;conn.querySelector('span').textContent=status.label}
|
|
185
185
|
|
{sidequestor-0.2.3 → sidequestor-0.2.4}/src/sidequestor/runtime/yaas-triage/ops/dashboard-server.py
RENAMED
|
@@ -109,6 +109,13 @@ from tick_state import (
|
|
|
109
109
|
load_watch_manifests,
|
|
110
110
|
)
|
|
111
111
|
|
|
112
|
+
# Capture the package identity before an in-place upgrade can replace files on disk.
|
|
113
|
+
try:
|
|
114
|
+
from sidequestor.build_info import build_info as _package_build_info
|
|
115
|
+
PACKAGE_BUILD_INFO = _package_build_info()
|
|
116
|
+
except Exception:
|
|
117
|
+
PACKAGE_BUILD_INFO = {}
|
|
118
|
+
|
|
112
119
|
approval_state.configure(load_environment(REPO_ROOT))
|
|
113
120
|
|
|
114
121
|
# Statuses that are genuinely finished. Everything else is shown, deliberately: the
|
|
@@ -1675,14 +1682,15 @@ def build_control() -> dict:
|
|
|
1675
1682
|
attention = []
|
|
1676
1683
|
try:
|
|
1677
1684
|
from sidequestor.worker_readiness import current_state
|
|
1678
|
-
from sidequestor.workspace import load_workspace
|
|
1679
|
-
|
|
1685
|
+
from sidequestor.workspace import load_workspace, workspace_command
|
|
1686
|
+
workspace = load_workspace(REPO_ROOT)
|
|
1687
|
+
readiness = current_state(workspace)
|
|
1680
1688
|
for scope in ("blocked", "slack"):
|
|
1681
1689
|
reason = readiness.get(scope)
|
|
1682
1690
|
if reason:
|
|
1683
1691
|
attention.append({"id": f"worker-readiness:{scope}", "kind": "configuration",
|
|
1684
1692
|
"priority": "high", "label": "Worker connection needs attention",
|
|
1685
|
-
"detail": reason, "action": "Run
|
|
1693
|
+
"detail": reason, "action": f"Run {workspace_command(workspace, 'setup')} in your terminal."})
|
|
1686
1694
|
except (ImportError, SystemExit, OSError, ValueError, AttributeError):
|
|
1687
1695
|
pass
|
|
1688
1696
|
|
|
@@ -1761,18 +1769,16 @@ def build_reaction_emojis() -> dict:
|
|
|
1761
1769
|
|
|
1762
1770
|
def build_build_info() -> dict:
|
|
1763
1771
|
"""Return package build identity without requiring package imports."""
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
commit_full = os.environ.get("SIDEQUESTOR_COMMIT") or info.get("commit_full", "")
|
|
1770
|
-
version = os.environ.get("SIDEQUESTOR_VERSION") or info.get("version", "unknown")
|
|
1772
|
+
info = PACKAGE_BUILD_INFO
|
|
1773
|
+
# launchd retains its environment across package replacement. Prefer one
|
|
1774
|
+
# coherent package identity over potentially stale version/commit/ref labels.
|
|
1775
|
+
commit_full = info.get("commit_full", "") if info else os.environ.get("SIDEQUESTOR_COMMIT", "")
|
|
1776
|
+
version = info.get("version", "unknown") if info else os.environ.get("SIDEQUESTOR_VERSION", "unknown")
|
|
1771
1777
|
return {
|
|
1772
1778
|
"version": version,
|
|
1773
1779
|
"commit": commit_full[:7],
|
|
1774
1780
|
"commit_full": commit_full,
|
|
1775
|
-
"ref":
|
|
1781
|
+
"ref": info.get("ref", "") if info else os.environ.get("SIDEQUESTOR_REF", ""),
|
|
1776
1782
|
"source": info.get("source", "unknown"),
|
|
1777
1783
|
"engine": info.get("engine", "unknown"),
|
|
1778
1784
|
"update": _available_update(version),
|
|
@@ -9,6 +9,16 @@ Guide the owner, who may have nothing set up, from a fresh install to a workspac
|
|
|
9
9
|
understand and trust. "The owner" is the person this Sidequestor works for. Speak to them
|
|
10
10
|
in the first person ("I found…", "Shall I…?").
|
|
11
11
|
|
|
12
|
+
When configuring or repairing this workspace, pass its absolute path explicitly:
|
|
13
|
+
`sq --workspace /path/to/this/workspace setup`. For a new workspace, use `sq init PATH`
|
|
14
|
+
and follow the exact setup command it prints. Plain `sq setup` can target an exported
|
|
15
|
+
workspace or saved default even after changing directory. Setup saves its selected
|
|
16
|
+
workspace as the default; initializing an additional folder alone does not replace
|
|
17
|
+
an existing default. Tell the owner that setup makes this workspace their default.
|
|
18
|
+
Do not separately use the default picker to switch workspaces unless requested.
|
|
19
|
+
The `--select-workspace` picker excludes stale
|
|
20
|
+
and missing registrations and revalidates the chosen identity.
|
|
21
|
+
|
|
12
22
|
## State
|
|
13
23
|
|
|
14
24
|
The onboarding quest folder's `onboarding.json` stores progress:
|