sidequestor 0.2.6__tar.gz → 0.2.7.dev4__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.6/src/sidequestor.egg-info → sidequestor-0.2.7.dev4}/PKG-INFO +67 -5
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/README.md +66 -4
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/pyproject.toml +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/__init__.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/package_data/OPERATING.md +3 -3
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/package_data/env.example +15 -14
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/quest_terminal.py +2 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/approval_store.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/approval.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/schedule.watch.json +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ledger/ack-watch.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ledger/add-watch.py +5 -2
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ledger/approval-helper.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ledger/checker-health.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ledger/watch-guard.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ops/dashboard-server.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ops/health-monitor.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ops/notify.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ops/rotate-logs.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/setup/setup.sh +76 -27
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/setup/yaas-app-config.json +15 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-answering-quality/SKILL.md +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-onboarding/SKILL.md +6 -3
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-ops/SKILL.md +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-quest-creation/SKILL.md +6 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-quest-creation/new-quest.py +5 -2
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/client.py +4 -2
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/jira-call.sh +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/log-event.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/mcp-call.sh +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/react-lifecycle.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/slack-file.py +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/slack-react.sh +1 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/slack-send.py +3 -3
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/tick.py +3 -2
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/tick_state.py +18 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/setup.py +78 -29
- sidequestor-0.2.7.dev4/src/sidequestor/setup_output.py +33 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/setup_worker.py +7 -6
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4/src/sidequestor.egg-info}/PKG-INFO +67 -5
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor.egg-info/SOURCES.txt +4 -0
- sidequestor-0.2.7.dev4/tests/test_claude_slack_defaults.py +250 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_onboarding.py +3 -1
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_quest_terminal.py +2 -0
- sidequestor-0.2.7.dev4/tests/test_schedule_watch_validation.py +93 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_setup.py +42 -4
- sidequestor-0.2.7.dev4/tests/test_slack_oauth_listener.py +152 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_system_health.py +3 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_update_check.py +13 -4
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/LICENSE +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/MANIFEST.in +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/setup.cfg +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/__main__.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/build_info.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/cli.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/credential_setup.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/dashboard.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/isolated.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/job_path.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/launchd.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/migrations.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/native.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/onboarding.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/package_data/settings.json.example +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/resources.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/dashboard.html +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/approval_state.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/assets/sidequestor-knows-its-pretty-thank-you.png +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/assets/sidequestor-mark.png +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/approval.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/cron-due.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/email.lag +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/email.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/email.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/github.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/github_issue.lag +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/github_issue.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/github_issue.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/github_pr.lag +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/github_pr.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/github_pr.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/health_issue.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/health_issue.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/jira.lag +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/jira.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/jira.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/notion.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/notion_comments.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/notion_comments.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/notion_data_source.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/notion_data_source.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/notion_page.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/notion_page.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/notion_store.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/notion_tree.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/reactions.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/result.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/schedule.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/slack_channel.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/slack_channel.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/slack_dm.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/slack_dm.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/slack_mention.lag +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/slack_mention.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/slack_mention.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/slack_thread.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/slack_thread.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/slack_utils.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/telegram.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/telegram_chat.lag +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/telegram_chat.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/telegram_chat.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/telegram_search.lag +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/telegram_search.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/telegram_search.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_dm.lag +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_dm.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_dm.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_home.lag +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_home.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_home.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_mentions.lag +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_mentions.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_mentions.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_search.lag +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_search.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_search.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_user_posts.lag +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_user_posts.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/checkers/x_user_posts.watch.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/dashboard_settings.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/dispatch/dispatch-agent.sh +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/dispatch/extract-tokens.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/dispatch/fake-worker.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/dispatch/format-stream.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/dispatch/plan.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/dispatch/run-agent.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/dispatch/slack-read-health.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/dispatch/spend-window.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/dispatch/translate-stream.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/dispatch/worker.mcp.json +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/inbox.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ledger/commit.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ledger/ensure-watch-ids.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ledger/housekeep.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ops/dashboard-start.sh +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ops/doctor.sh +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ops/heartbeat-loop.sh +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ops/sync-yaas-v2.sh +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/reaction_config.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/reaction_lifecycle.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/setup/com.yaas.dashboard.plist.template +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/setup/com.yaas.heartbeat.plist.template +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/setup/com.yaas.triage.plist.template +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/setup/init-yaas-v2-tracking.sh +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/setup/install-launchd-common.sh +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/setup/install-launchd-dashboard.sh +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/setup/install-launchd-heartbeat.sh +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/setup/install-launchd.sh +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-action-closure/SKILL.md +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-checker-authoring/SKILL.md +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-draft-readiness/SKILL.md +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-gdoc-anchored-comments/SKILL.md +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-gdoc-anchored-comments/gdoc-comment.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/SKILL.md +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/gmail-reply.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/gmail_policy.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/send_fresh.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-quest-dispatch/SKILL.md +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-reactions/SKILL.md +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-slack-channel/SKILL.md +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-slack-file/SKILL.md +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/skills/yaas-slack-interface/SKILL.md +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/credential_store.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/keychain-helper.c +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/native_tls.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/notion-call.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/notion-state.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/slack-channel.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/slack-expand.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/slack_credentials.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/slack_files.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/telegram-call.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/telegram-send.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/telegram_credentials.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/timeline_io.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/x-call.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/x-send.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/surfaces/x_credentials.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/system_health.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/tick_check.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/tick_dispatch.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/triage-loop.sh +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/update_check.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/upgrade.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/upgrade_job.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/worker_readiness.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/workspace.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor.egg-info/dependency_links.txt +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor.egg-info/entry_points.txt +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor.egg-info/requires.txt +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor.egg-info/top_level.txt +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/yaas_triage/__init__.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/yaas_triage/__main__.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/yaas_triage/cli.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/dashboard_review_preview.cjs +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_approval_failure.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_build_info.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_checker_connector_gates.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_cli_lifecycle.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_connector_policy.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_credential_setup.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_credential_state_root.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_dashboard_app_links.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_dashboard_composer_persistence.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_dashboard_ports.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_dashboard_review_preview.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_dashboard_settings.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_default_workspace.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_dispatch_agent.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_dispatch_manifest.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_gdoc_comment.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_gmail_reply.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_gmail_send.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_initial_run_gate.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_install_script.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_instance_registry.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_jira_checker.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_job_path.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_launchd_lifecycle.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_multi_instance_operations.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_native_tls.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_notion_checkers.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_notion_tree.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_quest_creation_handoff.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_reaction_config.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_reaction_lifecycle.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_reaction_pending.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_runtime_config.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_runtime_docs.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_runtime_imports.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_slack_channel.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_slack_expand.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_slack_file.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_slack_parser.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_slack_search.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_slack_send.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_slack_worker_health.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_telegram_send.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_telegram_x_checkers.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_triage_liveness.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_unacked_prune.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_upgrade.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_upgrade_job.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_version.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_watch_activity.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_watcher_status_dashboard.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_worker_readiness.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_x_send.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/tests/test_x_user_auth.py +0 -0
- {sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/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.7.dev4
|
|
4
4
|
Summary: Sidequestor workspace and triage command shell
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Requires-Python: >=3.11
|
|
@@ -60,8 +60,7 @@ cd ~/path/to/existing-workspace
|
|
|
60
60
|
# cd ~/new-sidequestor-workspace
|
|
61
61
|
# Add Sidequestor metadata and configuration to this directory.
|
|
62
62
|
sidequestor init .
|
|
63
|
-
#
|
|
64
|
-
sq setup --manifest > slack-app-manifest.yaml
|
|
63
|
+
# The wizard asks for Slack settings and saves your answers automatically.
|
|
65
64
|
# Run interactive onboarding; bypassPermissions is the default worker permission mode.
|
|
66
65
|
sq --workspace . setup
|
|
67
66
|
# Start triage, heartbeat, and the dashboard and print the dashboard URL.
|
|
@@ -118,14 +117,70 @@ install it or set `SIDEQUESTOR_PATH` in the workspace `.env` to a PATH that cont
|
|
|
118
117
|
|
|
119
118
|
Commands use your saved default workspace. Explicit `--workspace PATH`, `--instance ID`, or `SIDEQUESTOR_WORKSPACE` selects another workspace; the legacy `YAAS_WORKSPACE` name remains accepted. Ordinary starts preserve the workspace’s registered Python runtime. Setup and upgrades can refresh that binding explicitly.
|
|
120
119
|
|
|
120
|
+
To test this development release explicitly:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
uv tool install --force 'sidequestor==0.2.7.dev4'
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Use `sidequestor[telegram]==0.2.7.dev4` instead if you need Telegram support.
|
|
127
|
+
Normal stable installs do not select this development release. Sidequestor's
|
|
128
|
+
built-in update notices compare stable version numbers only; development builds
|
|
129
|
+
must be upgraded explicitly. Restart a running dashboard to display the new version.
|
|
130
|
+
|
|
121
131
|
## How do I set up the Slack app?
|
|
122
132
|
|
|
133
|
+
A workspace-owned custom Sidequestor app is recommended for the full supported
|
|
134
|
+
feature set, including profile/status operations and DND lookup. Claude's existing
|
|
135
|
+
app is an alternative sufficient for core checking, messages, replies and reactions.
|
|
136
|
+
Setup presents the custom-app path first and explains these tradeoffs before the
|
|
137
|
+
identifier prompts. Headings and prompts use bold text in supported interactive
|
|
138
|
+
terminals; redirected output, `TERM=dumb`, and `NO_COLOR` retain plain text.
|
|
139
|
+
|
|
140
|
+
With `SIDEQUESTOR_AGENT=claude`, the interactive `sq setup` wizard asks for
|
|
141
|
+
`SLACK_APP_ID` and `SLACK_CLIENT_ID`. Enter both custom identifiers, or press Enter
|
|
142
|
+
at BOTH prompts to choose Claude's existing app (`A08SF47R6P4`, client ID
|
|
143
|
+
`1601185624273.8899143856786`). Both prompts show these fallback identifiers and
|
|
144
|
+
explain the connection's limitations. Only missing settings are asked for; saved
|
|
145
|
+
App ID, Client ID, workspace name and domain are preserved. Leaving only one app
|
|
146
|
+
identifier blank is an error.
|
|
147
|
+
You can run `sq init` followed by the setup command it prints: the wizard explains
|
|
148
|
+
both app choices, collects your Slack workspace name/domain, and saves your answers.
|
|
149
|
+
No `.env` editing is required. Custom-app creation instructions and the command to
|
|
150
|
+
print its manifest are shown before the identifier prompts.
|
|
151
|
+
Interactive setup is split into numbered sections with indented prompts and wrapped
|
|
152
|
+
instructions. Every interactive `sq setup` with Slack checking enabled starts fresh
|
|
153
|
+
OAuth for the selected app, even when an existing token works. Existing credentials
|
|
154
|
+
are replaced only after successful authorization; OAuth failure stops setup before
|
|
155
|
+
worker checks or job installation. Non-interactive setup does not launch OAuth.
|
|
156
|
+
The OAuth browser opens only after setup owns its callback port. If another setup
|
|
157
|
+
is already using port 3118, close that attempt and rerun setup. Cancelling setup
|
|
158
|
+
stops its listener. Non-interactive setup and direct OAuth-script runs require
|
|
159
|
+
configured identifiers.
|
|
160
|
+
Supply your workspace name/domain and complete the browser OAuth flow; each user
|
|
161
|
+
gets a separate Sidequestor-managed token. Workspace approval may still be required.
|
|
162
|
+
This requests 29 scopes, excluding `channels:write.invites`, `dnd:read`,
|
|
163
|
+
`groups:write.invites`, `groups:write.topic`, `im:write.topic`, `users.profile:read`,
|
|
164
|
+
and `users.profile:write`. Core checkers, reaction watches/lifecycle, messaging,
|
|
165
|
+
files, and private interface-channel creation stay enabled. Retained broad channel
|
|
166
|
+
write scopes also cover invitations, topics and descriptions, subject to workspace policy.
|
|
167
|
+
Direct profile/status get/set is unavailable with the reduced scopes; the helper
|
|
168
|
+
reports Slack's scope error with an explanation that this operation is optional.
|
|
169
|
+
No core watcher needs DND access.
|
|
170
|
+
Claude's app configuration is provider-controlled and may change; this compatibility
|
|
171
|
+
path does not imply provider endorsement of Sidequestor.
|
|
172
|
+
|
|
173
|
+
Explicit app IDs are always preserved. A partially configured identity is never
|
|
174
|
+
completed with Claude defaults. Codex/Cursor, or Claude users who need their own app,
|
|
175
|
+
use the full-scope custom-app flow below. `sq setup --manifest` always describes
|
|
176
|
+
that custom app:
|
|
177
|
+
|
|
123
178
|
1. Run `sq setup --manifest > slack-app-manifest.yaml`, then paste that YAML at api.slack.com → Create New App → From an app manifest.
|
|
124
179
|
2. Choose the workspace and Install to Workspace; an administrator may need to approve it.
|
|
125
180
|
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.
|
|
126
181
|
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`.
|
|
127
182
|
5. If you grant a scope later, reinstall the app and run `sq --workspace /path/to/workspace setup` again.
|
|
128
|
-
6. In Basic Information, copy the App ID and Client ID into
|
|
183
|
+
6. In Basic Information, copy the App ID and Client ID into the corresponding `sq setup` prompts, then complete OAuth. The wizard saves them automatically.
|
|
129
184
|
|
|
130
185
|
For an existing app, generate the updated manifest with `sq setup --manifest`, add the newly
|
|
131
186
|
requested user scopes in the app's OAuth settings, reinstall the app, and run `sq --workspace /path/to/workspace setup` again to
|
|
@@ -137,6 +192,13 @@ only. File uploads need `files:write`; attachment downloads need `files:read`.
|
|
|
137
192
|
|
|
138
193
|
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.
|
|
139
194
|
|
|
195
|
+
One-shot schedule watches require `next_fire_ts` as a finite positive Unix timestamp
|
|
196
|
+
in **seconds**, supplied as a JSON number or numeric string. Fractional seconds are
|
|
197
|
+
accepted. For a minute from now, compute it with
|
|
198
|
+
`python3 -c 'import time; print(int(time.time()) + 60)'`. ISO date strings, booleans,
|
|
199
|
+
and non-finite values are rejected by both `sq watch` and `sq new-quest` before
|
|
200
|
+
saving a watch. Recurring schedules continue to use `cron` and `tz`.
|
|
201
|
+
|
|
140
202
|
## How do I get guided onboarding?
|
|
141
203
|
|
|
142
204
|
At the end of `sq setup`, choose `slack`, `terminal`, or `later`. Choosing Slack or terminal creates
|
|
@@ -206,7 +268,7 @@ SIDEQUESTOR_CODEX_PERMISSION_MODE=bypassPermissions
|
|
|
206
268
|
SIDEQUESTOR_CURSOR_PERMISSION_MODE=bypassPermissions
|
|
207
269
|
```
|
|
208
270
|
|
|
209
|
-
The optional instruction block targets `
|
|
271
|
+
The optional instruction block targets `AGENTS.md` for every backend, including Claude. Sidequestor never creates or edits this user-owned file.
|
|
210
272
|
|
|
211
273
|
## How do I use Slack files?
|
|
212
274
|
|
|
@@ -47,8 +47,7 @@ cd ~/path/to/existing-workspace
|
|
|
47
47
|
# cd ~/new-sidequestor-workspace
|
|
48
48
|
# Add Sidequestor metadata and configuration to this directory.
|
|
49
49
|
sidequestor init .
|
|
50
|
-
#
|
|
51
|
-
sq setup --manifest > slack-app-manifest.yaml
|
|
50
|
+
# The wizard asks for Slack settings and saves your answers automatically.
|
|
52
51
|
# Run interactive onboarding; bypassPermissions is the default worker permission mode.
|
|
53
52
|
sq --workspace . setup
|
|
54
53
|
# Start triage, heartbeat, and the dashboard and print the dashboard URL.
|
|
@@ -105,14 +104,70 @@ install it or set `SIDEQUESTOR_PATH` in the workspace `.env` to a PATH that cont
|
|
|
105
104
|
|
|
106
105
|
Commands use your saved default workspace. Explicit `--workspace PATH`, `--instance ID`, or `SIDEQUESTOR_WORKSPACE` selects another workspace; the legacy `YAAS_WORKSPACE` name remains accepted. Ordinary starts preserve the workspace’s registered Python runtime. Setup and upgrades can refresh that binding explicitly.
|
|
107
106
|
|
|
107
|
+
To test this development release explicitly:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
uv tool install --force 'sidequestor==0.2.7.dev4'
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Use `sidequestor[telegram]==0.2.7.dev4` instead if you need Telegram support.
|
|
114
|
+
Normal stable installs do not select this development release. Sidequestor's
|
|
115
|
+
built-in update notices compare stable version numbers only; development builds
|
|
116
|
+
must be upgraded explicitly. Restart a running dashboard to display the new version.
|
|
117
|
+
|
|
108
118
|
## How do I set up the Slack app?
|
|
109
119
|
|
|
120
|
+
A workspace-owned custom Sidequestor app is recommended for the full supported
|
|
121
|
+
feature set, including profile/status operations and DND lookup. Claude's existing
|
|
122
|
+
app is an alternative sufficient for core checking, messages, replies and reactions.
|
|
123
|
+
Setup presents the custom-app path first and explains these tradeoffs before the
|
|
124
|
+
identifier prompts. Headings and prompts use bold text in supported interactive
|
|
125
|
+
terminals; redirected output, `TERM=dumb`, and `NO_COLOR` retain plain text.
|
|
126
|
+
|
|
127
|
+
With `SIDEQUESTOR_AGENT=claude`, the interactive `sq setup` wizard asks for
|
|
128
|
+
`SLACK_APP_ID` and `SLACK_CLIENT_ID`. Enter both custom identifiers, or press Enter
|
|
129
|
+
at BOTH prompts to choose Claude's existing app (`A08SF47R6P4`, client ID
|
|
130
|
+
`1601185624273.8899143856786`). Both prompts show these fallback identifiers and
|
|
131
|
+
explain the connection's limitations. Only missing settings are asked for; saved
|
|
132
|
+
App ID, Client ID, workspace name and domain are preserved. Leaving only one app
|
|
133
|
+
identifier blank is an error.
|
|
134
|
+
You can run `sq init` followed by the setup command it prints: the wizard explains
|
|
135
|
+
both app choices, collects your Slack workspace name/domain, and saves your answers.
|
|
136
|
+
No `.env` editing is required. Custom-app creation instructions and the command to
|
|
137
|
+
print its manifest are shown before the identifier prompts.
|
|
138
|
+
Interactive setup is split into numbered sections with indented prompts and wrapped
|
|
139
|
+
instructions. Every interactive `sq setup` with Slack checking enabled starts fresh
|
|
140
|
+
OAuth for the selected app, even when an existing token works. Existing credentials
|
|
141
|
+
are replaced only after successful authorization; OAuth failure stops setup before
|
|
142
|
+
worker checks or job installation. Non-interactive setup does not launch OAuth.
|
|
143
|
+
The OAuth browser opens only after setup owns its callback port. If another setup
|
|
144
|
+
is already using port 3118, close that attempt and rerun setup. Cancelling setup
|
|
145
|
+
stops its listener. Non-interactive setup and direct OAuth-script runs require
|
|
146
|
+
configured identifiers.
|
|
147
|
+
Supply your workspace name/domain and complete the browser OAuth flow; each user
|
|
148
|
+
gets a separate Sidequestor-managed token. Workspace approval may still be required.
|
|
149
|
+
This requests 29 scopes, excluding `channels:write.invites`, `dnd:read`,
|
|
150
|
+
`groups:write.invites`, `groups:write.topic`, `im:write.topic`, `users.profile:read`,
|
|
151
|
+
and `users.profile:write`. Core checkers, reaction watches/lifecycle, messaging,
|
|
152
|
+
files, and private interface-channel creation stay enabled. Retained broad channel
|
|
153
|
+
write scopes also cover invitations, topics and descriptions, subject to workspace policy.
|
|
154
|
+
Direct profile/status get/set is unavailable with the reduced scopes; the helper
|
|
155
|
+
reports Slack's scope error with an explanation that this operation is optional.
|
|
156
|
+
No core watcher needs DND access.
|
|
157
|
+
Claude's app configuration is provider-controlled and may change; this compatibility
|
|
158
|
+
path does not imply provider endorsement of Sidequestor.
|
|
159
|
+
|
|
160
|
+
Explicit app IDs are always preserved. A partially configured identity is never
|
|
161
|
+
completed with Claude defaults. Codex/Cursor, or Claude users who need their own app,
|
|
162
|
+
use the full-scope custom-app flow below. `sq setup --manifest` always describes
|
|
163
|
+
that custom app:
|
|
164
|
+
|
|
110
165
|
1. Run `sq setup --manifest > slack-app-manifest.yaml`, then paste that YAML at api.slack.com → Create New App → From an app manifest.
|
|
111
166
|
2. Choose the workspace and Install to Workspace; an administrator may need to approve it.
|
|
112
167
|
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.
|
|
113
168
|
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`.
|
|
114
169
|
5. If you grant a scope later, reinstall the app and run `sq --workspace /path/to/workspace setup` again.
|
|
115
|
-
6. In Basic Information, copy the App ID and Client ID into
|
|
170
|
+
6. In Basic Information, copy the App ID and Client ID into the corresponding `sq setup` prompts, then complete OAuth. The wizard saves them automatically.
|
|
116
171
|
|
|
117
172
|
For an existing app, generate the updated manifest with `sq setup --manifest`, add the newly
|
|
118
173
|
requested user scopes in the app's OAuth settings, reinstall the app, and run `sq --workspace /path/to/workspace setup` again to
|
|
@@ -124,6 +179,13 @@ only. File uploads need `files:write`; attachment downloads need `files:read`.
|
|
|
124
179
|
|
|
125
180
|
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.
|
|
126
181
|
|
|
182
|
+
One-shot schedule watches require `next_fire_ts` as a finite positive Unix timestamp
|
|
183
|
+
in **seconds**, supplied as a JSON number or numeric string. Fractional seconds are
|
|
184
|
+
accepted. For a minute from now, compute it with
|
|
185
|
+
`python3 -c 'import time; print(int(time.time()) + 60)'`. ISO date strings, booleans,
|
|
186
|
+
and non-finite values are rejected by both `sq watch` and `sq new-quest` before
|
|
187
|
+
saving a watch. Recurring schedules continue to use `cron` and `tz`.
|
|
188
|
+
|
|
127
189
|
## How do I get guided onboarding?
|
|
128
190
|
|
|
129
191
|
At the end of `sq setup`, choose `slack`, `terminal`, or `later`. Choosing Slack or terminal creates
|
|
@@ -193,7 +255,7 @@ SIDEQUESTOR_CODEX_PERMISSION_MODE=bypassPermissions
|
|
|
193
255
|
SIDEQUESTOR_CURSOR_PERMISSION_MODE=bypassPermissions
|
|
194
256
|
```
|
|
195
257
|
|
|
196
|
-
The optional instruction block targets `
|
|
258
|
+
The optional instruction block targets `AGENTS.md` for every backend, including Claude. Sidequestor never creates or edits this user-owned file.
|
|
197
259
|
|
|
198
260
|
## How do I use Slack files?
|
|
199
261
|
|
|
@@ -165,7 +165,7 @@ the packaged runtime directory. Put mutable data in the workspace through the su
|
|
|
165
165
|
individual conversation is live-read-verified and safely transferred to a one-shot exact thread
|
|
166
166
|
watch, the broad mention item is handled so unrelated conversations can commit.
|
|
167
167
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
Read the workspace `AGENTS.md` if it exists, for every backend including Claude.
|
|
169
|
+
This optional, user-owned file adds user-specific instructions; Sidequestor never
|
|
170
|
+
creates or edits it. Those instructions remain in force, but this
|
|
171
171
|
file owns the Sidequestor runtime boundary and dispatch protocol.
|
|
@@ -58,22 +58,23 @@ SIDEQUESTOR_GDOC_COMMENTS_ENABLED=1
|
|
|
58
58
|
# present in SIDEQUESTOR_CHECKER_CONNECTORS and this value is not 0.
|
|
59
59
|
# SIDEQUESTOR_SLACK_CHECKERS_ENABLED=0
|
|
60
60
|
#
|
|
61
|
-
#
|
|
62
|
-
#
|
|
63
|
-
#
|
|
61
|
+
# Slack OAuth uses a separate Sidequestor-managed user token (PKCE, no secret).
|
|
62
|
+
# A workspace-owned Sidequestor app is recommended for full functionality.
|
|
63
|
+
# Claude's existing app is sufficient for core checks, messaging and reactions.
|
|
64
|
+
# With SIDEQUESTOR_AGENT=claude, the wizard asks for App ID and Client ID. Leave
|
|
65
|
+
# BOTH prompt answers blank to choose Claude's app with 29 user scopes.
|
|
66
|
+
# Non-interactive setup requires configured identifiers. Each user authorizes;
|
|
67
|
+
# workspace approval may be required. Direct profile/status get/set and DND lookup
|
|
68
|
+
# are unavailable. Slack checking, reactions and messaging stay enabled.
|
|
69
|
+
# Claude's app configuration is provider-controlled and may change.
|
|
64
70
|
#
|
|
71
|
+
# Explicit app IDs are preserved for every backend. To use your own app, generate:
|
|
65
72
|
# sq setup --manifest > slack-app-manifest.yaml
|
|
66
|
-
#
|
|
67
|
-
#
|
|
68
|
-
#
|
|
69
|
-
#
|
|
70
|
-
#
|
|
71
|
-
# The manifest requests Slack Model Context Protocol Server. Before OAuth,
|
|
72
|
-
# confirm it is enabled at (manual fallback if workspace policy requires it):
|
|
73
|
-
# https://api.slack.com/apps/<SLACK_APP_ID>/app-assistant
|
|
74
|
-
#
|
|
75
|
-
# These are PUBLIC OAuth identifiers (no client secret — PKCE flow), but they
|
|
76
|
-
# are workspace-specific: use your own, don't commit real values back here.
|
|
73
|
+
# Paste into https://api.slack.com/apps → Create New App → From an app manifest,
|
|
74
|
+
# install it, enable Slack Model Context Protocol Server if needed, and set BOTH
|
|
75
|
+
# identifiers below. Custom apps request the full scope list. Codex and Cursor
|
|
76
|
+
# require explicit app IDs. Never mix one custom ID with one Claude ID.
|
|
77
|
+
# Workspace name/domain must be supplied for either connection.
|
|
77
78
|
SLACK_APP_ID=
|
|
78
79
|
SLACK_CLIENT_ID=
|
|
79
80
|
SLACK_WORKSPACE_NAME=
|
|
@@ -306,8 +306,9 @@ def _exec_agent(workspace: Workspace, prompt: str, requested: str | None,
|
|
|
306
306
|
if not binary:
|
|
307
307
|
return 1
|
|
308
308
|
environment.update(extra_env)
|
|
309
|
-
# The agent works from the workspace root, where its AGENTS.md
|
|
309
|
+
# The agent works from the workspace root, where its AGENTS.md and `sq` live.
|
|
310
310
|
os.chdir(workspace.root)
|
|
311
|
+
prompt = "Read and follow workspace AGENTS.md if it exists.\n\n" + prompt
|
|
311
312
|
execve(binary, [binary, prompt], environment)
|
|
312
313
|
return 0 # only reached when execve is replaced in tests
|
|
313
314
|
|
{sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/approval_store.py
RENAMED
|
@@ -28,7 +28,7 @@ def _repo_root(start):
|
|
|
28
28
|
|
|
29
29
|
NOT counted as `parent.parent`: that is correct only while every script sits directly
|
|
30
30
|
in yaas-triage/, and silently resolves to yaas-triage/ itself once a script moves into
|
|
31
|
-
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on
|
|
31
|
+
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on AGENTS.md
|
|
32
32
|
(a fresh clone has only CLAUDE.example.md) and NOT on .git (two git dirs here, none in
|
|
33
33
|
fixtures). Ambient $REPO_ROOT is deliberately ignored: a stale value pointing at another
|
|
34
34
|
checkout would pass any marker check and silently redirect writes. Test fixtures copy
|
|
@@ -37,7 +37,7 @@ def _repo_root(start):
|
|
|
37
37
|
|
|
38
38
|
NOT counted as `parent.parent`: that is correct only while every script sits directly
|
|
39
39
|
in yaas-triage/, and silently resolves to yaas-triage/ itself once a script moves into
|
|
40
|
-
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on
|
|
40
|
+
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on AGENTS.md
|
|
41
41
|
(a fresh clone has only CLAUDE.example.md) and NOT on .git (two git dirs here, none in
|
|
42
42
|
fixtures). Ambient $REPO_ROOT is deliberately ignored: a stale value pointing at another
|
|
43
43
|
checkout would pass any marker check and silently redirect writes. Test fixtures copy
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_comment": "checker_example is a minimal checker input, not an add-watch or new-quest creation template; it intentionally includes last_checked_ts.",
|
|
2
|
+
"_comment": "checker_example is a minimal checker input, not an add-watch or new-quest creation template; it intentionally includes last_checked_ts. One-shot next_fire_ts must be a finite positive Unix timestamp in seconds (number or numeric string), not an ISO date.",
|
|
3
3
|
"schema_version": 1,
|
|
4
4
|
"required": [["cron", "tz"], ["next_fire_ts"]],
|
|
5
5
|
"identity": ["id", "cron", "next_fire_ts"],
|
{sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ledger/ack-watch.py
RENAMED
|
@@ -86,7 +86,7 @@ def _repo_root(start):
|
|
|
86
86
|
|
|
87
87
|
NOT counted as `parent.parent`: that is correct only while every script sits directly
|
|
88
88
|
in yaas-triage/, and silently resolves to yaas-triage/ itself once a script moves into
|
|
89
|
-
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on
|
|
89
|
+
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on AGENTS.md
|
|
90
90
|
(a fresh clone has only CLAUDE.example.md) and NOT on .git (two git dirs here, none in
|
|
91
91
|
fixtures). Ambient $REPO_ROOT is deliberately ignored: a stale value pointing at another
|
|
92
92
|
checkout would pass any marker check and silently redirect writes. Test fixtures copy
|
{sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ledger/add-watch.py
RENAMED
|
@@ -21,7 +21,7 @@ add-watch.py — the only way to add a watch.
|
|
|
21
21
|
Why this exists
|
|
22
22
|
───────────────
|
|
23
23
|
`watch.json` has one invariant: triage owns every existing `last_checked_ts`, and the
|
|
24
|
-
worker may only APPEND. That invariant lived solely as prose in
|
|
24
|
+
worker may only APPEND. That invariant lived solely as prose in AGENTS.md, and prose
|
|
25
25
|
does not stop an Edit tool call. It has been violated in production (the `threads[]`
|
|
26
26
|
versus `watches[]` dead drop, where appends went to a key nothing read).
|
|
27
27
|
|
|
@@ -70,7 +70,7 @@ def _repo_root(start):
|
|
|
70
70
|
|
|
71
71
|
NOT counted as `parent.parent`: that is correct only while every script sits directly
|
|
72
72
|
in yaas-triage/, and silently resolves to yaas-triage/ itself once a script moves into
|
|
73
|
-
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on
|
|
73
|
+
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on AGENTS.md
|
|
74
74
|
(a fresh clone has only CLAUDE.example.md) and NOT on .git (two git dirs here, none in
|
|
75
75
|
fixtures). Ambient $REPO_ROOT is deliberately ignored: a stale value pointing at another
|
|
76
76
|
checkout would pass any marker check and silently redirect writes. Test fixtures copy
|
|
@@ -187,6 +187,9 @@ def validate(entry):
|
|
|
187
187
|
wtype = entry.get("type")
|
|
188
188
|
if wtype not in required:
|
|
189
189
|
die(f"unknown_type:{wtype}:known are {', '.join(sorted(required))}")
|
|
190
|
+
problem = _tick_state()[0].schedule_timestamp_problem(wtype, entry)
|
|
191
|
+
if problem:
|
|
192
|
+
die(f"bad_next_fire_ts:{problem}")
|
|
190
193
|
for field in identity[wtype]:
|
|
191
194
|
value = identity_value(entry, field)
|
|
192
195
|
if value is None:
|
|
@@ -96,7 +96,7 @@ def _repo_root(start):
|
|
|
96
96
|
|
|
97
97
|
NOT counted as `parent.parent`: that is correct only while every script sits directly
|
|
98
98
|
in yaas-triage/, and silently resolves to yaas-triage/ itself once a script moves into
|
|
99
|
-
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on
|
|
99
|
+
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on AGENTS.md
|
|
100
100
|
(a fresh clone has only CLAUDE.example.md) and NOT on .git (two git dirs here, none in
|
|
101
101
|
fixtures). Ambient $REPO_ROOT is deliberately ignored: a stale value pointing at another
|
|
102
102
|
checkout would pass any marker check and silently redirect writes. Test fixtures copy
|
|
@@ -81,7 +81,7 @@ def _repo_root(start):
|
|
|
81
81
|
|
|
82
82
|
NOT counted as `parent.parent`: that is correct only while every script sits directly
|
|
83
83
|
in yaas-triage/, and silently resolves to yaas-triage/ itself once a script moves into
|
|
84
|
-
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on
|
|
84
|
+
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on AGENTS.md
|
|
85
85
|
(a fresh clone has only CLAUDE.example.md) and NOT on .git (two git dirs here, none in
|
|
86
86
|
fixtures). Ambient $REPO_ROOT is deliberately ignored: a stale value pointing at another
|
|
87
87
|
checkout would pass any marker check and silently redirect writes. Test fixtures copy
|
|
@@ -48,7 +48,7 @@ def _repo_root(start):
|
|
|
48
48
|
|
|
49
49
|
NOT counted as `parent.parent`: that is correct only while every script sits directly
|
|
50
50
|
in yaas-triage/, and silently resolves to yaas-triage/ itself once a script moves into
|
|
51
|
-
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on
|
|
51
|
+
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on AGENTS.md
|
|
52
52
|
(a fresh clone has only CLAUDE.example.md) and NOT on .git (two git dirs here, none in
|
|
53
53
|
fixtures). Ambient $REPO_ROOT is deliberately ignored: a stale value pointing at another
|
|
54
54
|
checkout would pass any marker check and silently redirect writes. Test fixtures copy
|
|
@@ -66,7 +66,7 @@ def _repo_root(start):
|
|
|
66
66
|
|
|
67
67
|
NOT counted as `parent.parent`: that is correct only while every script sits directly
|
|
68
68
|
in yaas-triage/, and silently resolves to yaas-triage/ itself once a script moves into
|
|
69
|
-
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on
|
|
69
|
+
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on AGENTS.md
|
|
70
70
|
(a fresh clone has only CLAUDE.example.md) and NOT on .git (two git dirs here, none in
|
|
71
71
|
fixtures). Ambient $REPO_ROOT is deliberately ignored: a stale value pointing at another
|
|
72
72
|
checkout would pass any marker check and silently redirect writes. Test fixtures copy
|
|
@@ -438,7 +438,7 @@ def _repo_root(start):
|
|
|
438
438
|
|
|
439
439
|
NOT counted as `parent.parent`: that is correct only while every script sits directly
|
|
440
440
|
in yaas-triage/, and silently resolves to yaas-triage/ itself once a script moves into
|
|
441
|
-
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on
|
|
441
|
+
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on AGENTS.md
|
|
442
442
|
(a fresh clone has only CLAUDE.example.md) and NOT on .git (two git dirs here, none in
|
|
443
443
|
fixtures). Ambient $REPO_ROOT is deliberately ignored: a stale value pointing at another
|
|
444
444
|
checkout would pass any marker check and silently redirect writes. Test fixtures copy
|
{sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ops/notify.py
RENAMED
|
@@ -179,7 +179,7 @@ def _repo_root(start):
|
|
|
179
179
|
|
|
180
180
|
NOT counted as `parent.parent`: that is correct only while every script sits directly
|
|
181
181
|
in yaas-triage/, and silently resolves to yaas-triage/ itself once a script moves into
|
|
182
|
-
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on
|
|
182
|
+
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on AGENTS.md
|
|
183
183
|
(a fresh clone has only CLAUDE.example.md) and NOT on .git (two git dirs here, none in
|
|
184
184
|
fixtures). Ambient $REPO_ROOT is deliberately ignored: a stale value pointing at another
|
|
185
185
|
checkout would pass any marker check and silently redirect writes. Test fixtures copy
|
{sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/ops/rotate-logs.py
RENAMED
|
@@ -155,7 +155,7 @@ def _repo_root(start):
|
|
|
155
155
|
|
|
156
156
|
NOT counted as `parent.parent`: that is correct only while every script sits directly
|
|
157
157
|
in yaas-triage/, and silently resolves to yaas-triage/ itself once a script moves into
|
|
158
|
-
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on
|
|
158
|
+
a subdirectory, producing a parallel state/ tree nothing reads. NOT keyed on AGENTS.md
|
|
159
159
|
(a fresh clone has only CLAUDE.example.md) and NOT on .git (two git dirs here, none in
|
|
160
160
|
fixtures). Ambient $REPO_ROOT is deliberately ignored: a stale value pointing at another
|
|
161
161
|
checkout would pass any marker check and silently redirect writes. Test fixtures copy
|
{sidequestor-0.2.6 → sidequestor-0.2.7.dev4}/src/sidequestor/runtime/yaas-triage/setup/setup.sh
RENAMED
|
@@ -34,7 +34,17 @@ OAUTH_ONLY=0
|
|
|
34
34
|
CONFIG="$SCRIPT_DIR/yaas-app-config.json"
|
|
35
35
|
PORT=3118
|
|
36
36
|
STATE_SERVER_LOG=$(mktemp)
|
|
37
|
-
|
|
37
|
+
SERVER_PID=""
|
|
38
|
+
cleanup_oauth() {
|
|
39
|
+
if [ -n "$SERVER_PID" ]; then
|
|
40
|
+
kill "$SERVER_PID" 2>/dev/null || true
|
|
41
|
+
wait "$SERVER_PID" 2>/dev/null || true
|
|
42
|
+
fi
|
|
43
|
+
rm -f "$STATE_SERVER_LOG"
|
|
44
|
+
}
|
|
45
|
+
trap cleanup_oauth EXIT
|
|
46
|
+
trap 'exit 130' INT
|
|
47
|
+
trap 'exit 143' TERM
|
|
38
48
|
|
|
39
49
|
# ── Preflight ───────────────────────────────────────────────────────────────
|
|
40
50
|
for cmd in jq python3; do
|
|
@@ -142,6 +152,10 @@ for cmd in curl openssl security open; do
|
|
|
142
152
|
exit 1
|
|
143
153
|
fi
|
|
144
154
|
done
|
|
155
|
+
# The wizard records the user's chosen app identity, including an explicit
|
|
156
|
+
# choice of Claude's defaults. Do not infer that choice from a blank .env.
|
|
157
|
+
CLAUDE_CLIENT_ID=$(jq -r '.claude_app.client_id' "$CONFIG")
|
|
158
|
+
CLAUDE_APP_ID=$(jq -r '.claude_app.app_id' "$CONFIG")
|
|
145
159
|
MISSING=""
|
|
146
160
|
for var in SLACK_APP_ID SLACK_CLIENT_ID SLACK_WORKSPACE_NAME SLACK_WORKSPACE_DOMAIN; do
|
|
147
161
|
[ -z "${!var:-}" ] && MISSING="$MISSING $var"
|
|
@@ -179,31 +193,47 @@ fi
|
|
|
179
193
|
APP_NAME=$(jq -r '.slack_app.app_name' "$CONFIG")
|
|
180
194
|
REDIRECT=$(jq -r '.slack_app.redirect_uri' "$CONFIG")
|
|
181
195
|
SCOPES=$(jq -r '.user_scopes | join(",")' "$CONFIG")
|
|
196
|
+
if [ "$SLACK_CLIENT_ID" = "$CLAUDE_CLIENT_ID" ]; then
|
|
197
|
+
if [ "$SLACK_APP_ID" != "$CLAUDE_APP_ID" ]; then
|
|
198
|
+
echo "ERROR: Claude Slack client ID requires SLACK_APP_ID=$CLAUDE_APP_ID" >&2
|
|
199
|
+
exit 1
|
|
200
|
+
fi
|
|
201
|
+
APP_NAME=$(jq -r '.claude_app.app_name' "$CONFIG")
|
|
202
|
+
SCOPES=$(jq -r '.claude_app.excluded_user_scopes as $excluded |
|
|
203
|
+
[.user_scopes[] | select(. as $scope | $excluded | index($scope) | not)] | join(",")' "$CONFIG")
|
|
204
|
+
fi
|
|
182
205
|
|
|
183
206
|
# Per-install values from .env
|
|
184
207
|
CLIENT_ID="$SLACK_CLIENT_ID"
|
|
185
208
|
APP_URL="https://api.slack.com/apps/$SLACK_APP_ID"
|
|
186
209
|
|
|
187
210
|
cat <<EOF
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
$APP_URL/app-assistant
|
|
200
|
-
|
|
201
|
-
You'll be redirected to Slack in your browser to authorize this app for
|
|
202
|
-
your user account. Review the permissions, click "Allow", then return here.
|
|
211
|
+
|
|
212
|
+
Slack authorization
|
|
213
|
+
-------------------
|
|
214
|
+
App: $APP_NAME
|
|
215
|
+
App ID: $SLACK_APP_ID
|
|
216
|
+
Client ID: $CLIENT_ID
|
|
217
|
+
Redirect: $REDIRECT
|
|
218
|
+
Scopes: $(echo "$SCOPES" | tr ',' '\n' | wc -l | tr -d ' ') user scopes ($(echo "$SCOPES" | tr ',' '\n' | wc -l | tr -d ' ') total)
|
|
219
|
+
|
|
220
|
+
Your browser will open Slack. Review the permissions, choose Allow,
|
|
221
|
+
then return to this terminal.
|
|
203
222
|
|
|
204
223
|
EOF
|
|
205
224
|
|
|
206
|
-
|
|
225
|
+
if [ "$SLACK_CLIENT_ID" = "$CLAUDE_CLIENT_ID" ]; then
|
|
226
|
+
echo " Workspace approval may be required for Claude's Slack app."
|
|
227
|
+
echo " Profile/status operations and DND lookup are unavailable."
|
|
228
|
+
echo " Sidequestor manages its own token; Claude Code's connection is separate."
|
|
229
|
+
echo " The provider controls Claude's app configuration and may change it."
|
|
230
|
+
else
|
|
231
|
+
echo ' Confirm Agents → "Slack Model Context Protocol (MCP) Server" is enabled.'
|
|
232
|
+
echo " $APP_URL/app-assistant"
|
|
233
|
+
fi
|
|
234
|
+
|
|
235
|
+
echo
|
|
236
|
+
read -p " Press Enter to open Slack authorization, or Ctrl-C to cancel..."
|
|
207
237
|
|
|
208
238
|
# ── PKCE ────────────────────────────────────────────────────────────────────
|
|
209
239
|
# RFC 7636 Proof Key for Code Exchange
|
|
@@ -234,17 +264,17 @@ LOG_PATH = sys.argv[2]
|
|
|
234
264
|
EXPECTED_STATE = sys.argv[3]
|
|
235
265
|
|
|
236
266
|
RESPONSE_OK = b"""<!DOCTYPE html>
|
|
237
|
-
<html><head><title>Sidequestor
|
|
238
|
-
<style>body{font-family
|
|
267
|
+
<html><head><meta charset="utf-8"><title>Sidequestor authorization received</title>
|
|
268
|
+
<style>body{font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif;max-width:600px;margin:80px auto;padding:0 24px;color:#111;}
|
|
239
269
|
h1{color:#2eb67d;}code{background:#f4f4f4;padding:2px 6px;border-radius:3px;}</style>
|
|
240
270
|
</head><body>
|
|
241
271
|
<h1>Sidequestor authorized</h1>
|
|
242
|
-
<p>
|
|
272
|
+
<p>Return to your terminal to finish exchanging and saving the token.</p>
|
|
243
273
|
<p>You can close this tab and return to your terminal.</p>
|
|
244
274
|
</body></html>"""
|
|
245
275
|
|
|
246
276
|
RESPONSE_ERR = lambda msg: f"""<!DOCTYPE html>
|
|
247
|
-
<html><body style="font-family
|
|
277
|
+
<html><head><meta charset="utf-8"></head><body style="font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif;max-width:600px;margin:80px auto;padding:0 24px;">
|
|
248
278
|
<h1 style="color:#e01e5a;">Sidequestor install failed</h1>
|
|
249
279
|
<p>{msg}</p>
|
|
250
280
|
<p>Check your terminal for details.</p>
|
|
@@ -263,16 +293,16 @@ class H(http.server.BaseHTTPRequestHandler):
|
|
|
263
293
|
if err:
|
|
264
294
|
msg = "error=" + html.escape(err) # escape: err is reflected into HTML
|
|
265
295
|
with open(LOG_PATH, "w") as f: f.write(f"ERROR {msg}\n")
|
|
266
|
-
self.send_response(400); self.send_header("Content-Type","text/html"); self.end_headers()
|
|
296
|
+
self.send_response(400); self.send_header("Content-Type","text/html; charset=utf-8"); self.end_headers()
|
|
267
297
|
self.wfile.write(RESPONSE_ERR(msg))
|
|
268
298
|
return
|
|
269
299
|
if state != EXPECTED_STATE:
|
|
270
300
|
with open(LOG_PATH, "w") as f: f.write("ERROR state mismatch\n")
|
|
271
|
-
self.send_response(400); self.send_header("Content-Type","text/html"); self.end_headers()
|
|
301
|
+
self.send_response(400); self.send_header("Content-Type","text/html; charset=utf-8"); self.end_headers()
|
|
272
302
|
self.wfile.write(RESPONSE_ERR("State mismatch — possible CSRF. Re-run setup.sh."))
|
|
273
303
|
return
|
|
274
304
|
with open(LOG_PATH, "w") as f: f.write(f"CODE {code}\n")
|
|
275
|
-
self.send_response(200); self.send_header("Content-Type","text/html"); self.end_headers()
|
|
305
|
+
self.send_response(200); self.send_header("Content-Type","text/html; charset=utf-8"); self.end_headers()
|
|
276
306
|
self.wfile.write(RESPONSE_OK)
|
|
277
307
|
|
|
278
308
|
# Bind with SO_REUSEADDR
|
|
@@ -286,11 +316,29 @@ except OSError as e:
|
|
|
286
316
|
sys.exit(1)
|
|
287
317
|
|
|
288
318
|
srv.timeout = 300 # 5 min total window
|
|
289
|
-
|
|
319
|
+
with open(LOG_PATH, "w") as f:
|
|
320
|
+
f.write("READY\n")
|
|
321
|
+
try:
|
|
322
|
+
srv.handle_request() # serve exactly one request then exit
|
|
323
|
+
finally:
|
|
324
|
+
srv.server_close()
|
|
290
325
|
PY
|
|
291
326
|
|
|
292
327
|
SERVER_PID=$!
|
|
293
|
-
|
|
328
|
+
# The browser must never open until THIS listener has bound the callback port.
|
|
329
|
+
for attempt in {1..100}; do
|
|
330
|
+
[ -s "$STATE_SERVER_LOG" ] && break
|
|
331
|
+
kill -0 "$SERVER_PID" 2>/dev/null || break
|
|
332
|
+
sleep 0.05
|
|
333
|
+
done
|
|
334
|
+
if [ "$(cat "$STATE_SERVER_LOG")" != "READY" ]; then
|
|
335
|
+
echo "ERROR: Slack callback listener could not start." >&2
|
|
336
|
+
if [ -s "$STATE_SERVER_LOG" ]; then
|
|
337
|
+
cat "$STATE_SERVER_LOG" >&2
|
|
338
|
+
fi
|
|
339
|
+
echo "Close the other setup attempt using port $PORT, then run sq setup again." >&2
|
|
340
|
+
exit 1
|
|
341
|
+
fi
|
|
294
342
|
|
|
295
343
|
echo "Opening browser to Slack authorize page..."
|
|
296
344
|
echo "If it doesn't open automatically, visit:"
|
|
@@ -300,9 +348,10 @@ open "$AUTH_URL"
|
|
|
300
348
|
|
|
301
349
|
# Wait for the server to finish (max ~5 min via its own timeout)
|
|
302
350
|
wait "$SERVER_PID" 2>/dev/null || true
|
|
351
|
+
SERVER_PID=""
|
|
303
352
|
|
|
304
353
|
# ── Inspect server log ──────────────────────────────────────────────────────
|
|
305
|
-
if [ ! -s "$STATE_SERVER_LOG" ]; then
|
|
354
|
+
if [ ! -s "$STATE_SERVER_LOG" ] || [ "$(cat "$STATE_SERVER_LOG")" = "READY" ]; then
|
|
306
355
|
echo "ERROR: no callback received. The server timed out or the browser flow was interrupted." >&2
|
|
307
356
|
exit 1
|
|
308
357
|
fi
|