sidequestor 0.1.11__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.1.11/LICENSE +202 -0
- sidequestor-0.1.11/PKG-INFO +163 -0
- sidequestor-0.1.11/README.md +153 -0
- sidequestor-0.1.11/pyproject.toml +27 -0
- sidequestor-0.1.11/setup.cfg +4 -0
- sidequestor-0.1.11/src/sidequestor/__init__.py +3 -0
- sidequestor-0.1.11/src/sidequestor/__main__.py +3 -0
- sidequestor-0.1.11/src/sidequestor/build_info.py +54 -0
- sidequestor-0.1.11/src/sidequestor/cli.py +548 -0
- sidequestor-0.1.11/src/sidequestor/dashboard.py +170 -0
- sidequestor-0.1.11/src/sidequestor/isolated.py +114 -0
- sidequestor-0.1.11/src/sidequestor/launchd.py +387 -0
- sidequestor-0.1.11/src/sidequestor/migrations.py +93 -0
- sidequestor-0.1.11/src/sidequestor/native.py +176 -0
- sidequestor-0.1.11/src/sidequestor/package_data/OPERATING.md +63 -0
- sidequestor-0.1.11/src/sidequestor/package_data/env.example +264 -0
- sidequestor-0.1.11/src/sidequestor/package_data/settings.json.example +12 -0
- sidequestor-0.1.11/src/sidequestor/resources.py +173 -0
- sidequestor-0.1.11/src/sidequestor/runtime/dashboard.html +186 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/approval_state.py +288 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/approval_store.py +129 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/assets/sidequestor-mark.png +0 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/approval.py +136 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/approval.watch.json +14 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/cron-due.py +142 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/email.lag +1 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/email.py +173 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/email.watch.json +14 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/github.py +148 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/github_issue.lag +1 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/github_issue.py +113 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/github_issue.watch.json +14 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/github_pr.lag +1 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/github_pr.py +123 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/github_pr.watch.json +14 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/jira.lag +1 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/jira.py +224 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/jira.watch.json +14 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/reactions.py +185 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/result.py +149 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/schedule.py +91 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/schedule.watch.json +15 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/slack_channel.py +128 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/slack_channel.watch.json +14 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/slack_dm.py +143 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/slack_dm.watch.json +15 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/slack_mention.lag +1 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/slack_mention.py +153 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/slack_mention.watch.json +14 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/slack_thread.py +131 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/slack_thread.watch.json +15 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/checkers/slack_utils.py +429 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/dispatch/dispatch-agent.sh +165 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/dispatch/extract-tokens.py +87 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/dispatch/fake-worker.py +44 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/dispatch/format-stream.py +124 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/dispatch/plan.py +133 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/dispatch/run-agent.py +377 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/dispatch/slack-read-health.py +159 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/dispatch/spend-window.py +183 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/dispatch/translate-stream.py +131 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/dispatch/worker.mcp.json +26 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ledger/ack-watch.py +340 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ledger/add-watch.py +246 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ledger/approval-helper.py +634 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ledger/checker-health.py +236 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ledger/commit.py +107 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ledger/ensure-watch-ids.py +90 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ledger/housekeep.py +322 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ledger/watch-guard.py +218 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ops/dashboard-server.py +2265 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ops/dashboard-start.sh +46 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ops/doctor.sh +356 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ops/health-monitor.py +431 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ops/heartbeat-loop.sh +97 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ops/notify.py +236 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ops/rotate-logs.py +210 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/ops/sync-yaas-v2.sh +144 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/reaction_config.py +66 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/setup/com.yaas.dashboard.plist.template +42 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/setup/com.yaas.heartbeat.plist.template +45 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/setup/com.yaas.triage.plist.template +45 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/setup/init-yaas-v2-tracking.sh +72 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/setup/install-launchd-common.sh +60 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/setup/install-launchd-dashboard.sh +46 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/setup/install-launchd-heartbeat.sh +47 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/setup/install-launchd.sh +47 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/setup/setup.sh +448 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/setup/yaas-app-config.json +31 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/skills/yaas-answering-quality/SKILL.md +69 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/skills/yaas-checker-authoring/SKILL.md +240 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/SKILL.md +43 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/gmail-reply.py +120 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/send_fresh.py +68 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/skills/yaas-ops/SKILL.md +347 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/skills/yaas-quest-creation/SKILL.md +212 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/skills/yaas-quest-creation/new-quest.py +367 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/skills/yaas-quest-dispatch/SKILL.md +304 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/skills/yaas-reactions/SKILL.md +111 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/surfaces/client.py +516 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/surfaces/jira-call.sh +27 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/surfaces/keychain-helper.c +90 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/surfaces/log-event.py +199 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/surfaces/mcp-call.sh +27 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/surfaces/react-lifecycle.py +129 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/surfaces/slack-react.sh +27 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/surfaces/slack-send.py +386 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/surfaces/slack_credentials.py +549 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/surfaces/timeline_io.py +49 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/tick.py +1801 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/tick_check.py +279 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/tick_dispatch.py +155 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/tick_state.py +405 -0
- sidequestor-0.1.11/src/sidequestor/runtime/yaas-triage/triage-loop.sh +117 -0
- sidequestor-0.1.11/src/sidequestor/setup.py +187 -0
- sidequestor-0.1.11/src/sidequestor/upgrade.py +187 -0
- sidequestor-0.1.11/src/sidequestor/workspace.py +218 -0
- sidequestor-0.1.11/src/sidequestor.egg-info/PKG-INFO +163 -0
- sidequestor-0.1.11/src/sidequestor.egg-info/SOURCES.txt +139 -0
- sidequestor-0.1.11/src/sidequestor.egg-info/dependency_links.txt +1 -0
- sidequestor-0.1.11/src/sidequestor.egg-info/entry_points.txt +4 -0
- sidequestor-0.1.11/src/sidequestor.egg-info/top_level.txt +2 -0
- sidequestor-0.1.11/src/yaas_triage/__init__.py +5 -0
- sidequestor-0.1.11/src/yaas_triage/__main__.py +5 -0
- sidequestor-0.1.11/src/yaas_triage/cli.py +3 -0
- sidequestor-0.1.11/tests/test_approval_failure.py +164 -0
- sidequestor-0.1.11/tests/test_build_info.py +22 -0
- sidequestor-0.1.11/tests/test_cli_lifecycle.py +70 -0
- sidequestor-0.1.11/tests/test_credential_state_root.py +105 -0
- sidequestor-0.1.11/tests/test_dashboard_ports.py +45 -0
- sidequestor-0.1.11/tests/test_initial_run_gate.py +153 -0
- sidequestor-0.1.11/tests/test_launchd_lifecycle.py +125 -0
- sidequestor-0.1.11/tests/test_quest_creation_handoff.py +57 -0
- sidequestor-0.1.11/tests/test_reaction_config.py +49 -0
- sidequestor-0.1.11/tests/test_runtime_config.py +417 -0
- sidequestor-0.1.11/tests/test_runtime_docs.py +99 -0
- sidequestor-0.1.11/tests/test_runtime_imports.py +94 -0
- sidequestor-0.1.11/tests/test_setup.py +173 -0
- sidequestor-0.1.11/tests/test_slack_parser.py +128 -0
- sidequestor-0.1.11/tests/test_slack_send.py +67 -0
- sidequestor-0.1.11/tests/test_upgrade.py +166 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sidequestor
|
|
3
|
+
Version: 0.1.11
|
|
4
|
+
Summary: Sidequestor workspace and triage command shell
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Dynamic: license-file
|
|
10
|
+
|
|
11
|
+
# Sidequestor
|
|
12
|
+
|
|
13
|
+
**Your side quests, handled.** Sidequestor is a local-first Slack sidekick that keeps small
|
|
14
|
+
missions moving while you get on with the main storyline. Point it at a workspace, pick your
|
|
15
|
+
agent, and it takes the next useful step — then leaves every file, log and decision on disk so
|
|
16
|
+
you can always see exactly what it did.
|
|
17
|
+
|
|
18
|
+
- 🎯 **Quests, not chores** — you describe the mission once; the triage loop watches for what changes.
|
|
19
|
+
- 🏠 **Local-first** — your machine, your Slack token, your files. Nothing to host.
|
|
20
|
+
- 🔍 **Nothing hidden** — every dispatch leaves a transcript, a timeline entry and a run log.
|
|
21
|
+
- 🤖 **Your agent, your call** — `codex` out of the box, `claude` if you prefer.
|
|
22
|
+
|
|
23
|
+
## Before you start
|
|
24
|
+
|
|
25
|
+
A short checklist, so nothing surprises you halfway through:
|
|
26
|
+
|
|
27
|
+
- macOS with launchd (that is what runs the loop) and Python ≥ 3.11.
|
|
28
|
+
- The command-line tools `jq`, `curl`, `openssl`, `security` and `open`.
|
|
29
|
+
- An already-authenticated `claude` **or** `codex` CLI. Sidequestor never logs in for you.
|
|
30
|
+
|
|
31
|
+
Sidequestor installs zero Python dependencies, so pip cannot check the list above for you.
|
|
32
|
+
The Slack setup script checks the tools it needs before it runs, and
|
|
33
|
+
`yaas-triage/ops/doctor.sh` checks the rest.
|
|
34
|
+
|
|
35
|
+
## How do I install it?
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Change to an existing project or workspace directory.
|
|
39
|
+
cd ~/path/to/existing-workspace
|
|
40
|
+
# Optional instead: create a new directory and enter it.
|
|
41
|
+
# mkdir -p ~/new-sidequestor-workspace
|
|
42
|
+
# cd ~/new-sidequestor-workspace
|
|
43
|
+
# Create an isolated Python environment inside that workspace.
|
|
44
|
+
python3 -m venv .venv
|
|
45
|
+
# Make the Sidequestor commands available in this terminal.
|
|
46
|
+
source .venv/bin/activate
|
|
47
|
+
# Install the latest stable package from PyPI.
|
|
48
|
+
python -m pip install sidequestor
|
|
49
|
+
# Add Sidequestor metadata and configuration to this directory.
|
|
50
|
+
sidequestor init .
|
|
51
|
+
# Save the ready-to-paste Slack YAML manifest.
|
|
52
|
+
sq setup --manifest > slack-app-manifest.yaml
|
|
53
|
+
# Run interactive onboarding; choose bypassPermissions for the worker backend.
|
|
54
|
+
sq setup
|
|
55
|
+
# Start triage, heartbeat, and the dashboard and print the dashboard URL.
|
|
56
|
+
sq start
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Nothing of yours is moved or overwritten: `sidequestor init .` only adds `.yaas` metadata alongside your existing files. `sq`, `sidequestor`, and `yaas` are all available aliases. The dashboard workspace label opens the current workspace in Cursor when available, or in macOS’s default IDE/file opener. Set `SIDEQUESTOR_IDE_APP` to prefer another application.
|
|
60
|
+
|
|
61
|
+
The virtualenv supplies the commands, so `deactivate` puts the shell back the way you found it.
|
|
62
|
+
|
|
63
|
+
Commands use the current directory when it is an initialized workspace. From elsewhere, pass `--workspace PATH` or set `SIDEQUESTOR_WORKSPACE`; the legacy `YAAS_WORKSPACE` name remains accepted.
|
|
64
|
+
|
|
65
|
+
## How do I set up the Slack app?
|
|
66
|
+
|
|
67
|
+
1. Run `sq setup --manifest > slack-app-manifest.yaml`, then paste that YAML at api.slack.com → Create New App → From an app manifest.
|
|
68
|
+
2. Choose the workspace and Install to Workspace; an administrator may need to approve it.
|
|
69
|
+
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.
|
|
70
|
+
4. In **OAuth and Permissions → User Token Scopes**, verify the 18 requested user scopes. 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`.
|
|
71
|
+
5. If you grant a scope later, reinstall the app and run `sq setup` again.
|
|
72
|
+
6. In Basic Information, copy the App ID and Client ID into `.env`, then complete OAuth.
|
|
73
|
+
|
|
74
|
+
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-5.6-luna` at `high` effort.
|
|
75
|
+
|
|
76
|
+
## What permissions does the worker need?
|
|
77
|
+
|
|
78
|
+
For unattended work, choose `bypassPermissions` at the Worker permission mode prompt. This lets the selected agent execute filesystem, shell, and network/MCP operations without per-action approval, so use it only in a workspace where that behavior is acceptable.
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# Allow Claude workers to execute unattended tool actions.
|
|
82
|
+
SIDEQUESTOR_CLAUDE_PERMISSION_MODE=bypassPermissions
|
|
83
|
+
# Allow Codex workers to execute unattended tool actions.
|
|
84
|
+
SIDEQUESTOR_CODEX_PERMISSION_MODE=bypassPermissions
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The optional instruction block targets `CLAUDE.md` for Claude and `AGENTS.md` for every other backend. Neither file is ever created or edited by Sidequestor.
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# Print the optional block without changing any files.
|
|
91
|
+
sq setup --instructions
|
|
92
|
+
# Use defaults without OAuth.
|
|
93
|
+
sq setup --non-interactive
|
|
94
|
+
# Use the lower-level launchd operations when needed.
|
|
95
|
+
sq setup --render-only|install|status|uninstall
|
|
96
|
+
# Install the production launchd jobs.
|
|
97
|
+
sq setup --production install
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## How do I run and inspect it?
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
# Start triage, heartbeat, and dashboard jobs for the current workspace.
|
|
104
|
+
# Wait for the dashboard and print its selected free loopback URL.
|
|
105
|
+
sq start
|
|
106
|
+
# Stop every job for the current workspace; the instance ID is optional here.
|
|
107
|
+
sq stop
|
|
108
|
+
# List currently running Sidequestor instances and their exact workspaces.
|
|
109
|
+
sq instances list
|
|
110
|
+
# Include stopped or historical registered workspaces as well.
|
|
111
|
+
sq instances list --all
|
|
112
|
+
# Validate the current workspace and print its build identity.
|
|
113
|
+
sq doctor
|
|
114
|
+
# Look up the dashboard URL later without restarting anything.
|
|
115
|
+
sq dashboard url
|
|
116
|
+
# From another directory, stop one registered workspace explicitly.
|
|
117
|
+
sq stop INSTANCE_ID
|
|
118
|
+
# Print the installed package build identity.
|
|
119
|
+
sq --version
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## How do I upgrade?
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# Upgrade to the latest stable PyPI release, refresh resources, validate, and restart.
|
|
126
|
+
sq upgrade
|
|
127
|
+
|
|
128
|
+
# Or install one explicit branch, tag, or commit from GitHub.
|
|
129
|
+
sq upgrade --source https://github.com/OWNER/sidequestor.git --ref BRANCH
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
`sq upgrade` uses the same Python environment as the running `sq` command. It stops production
|
|
133
|
+
jobs only when they were previously marked running, invokes pip, then uses a fresh Python process
|
|
134
|
+
to sync resources and run `sq doctor`. Previously running jobs restart only after both checks
|
|
135
|
+
succeed. Git installs require confirmation because they install code with the worker's permissions;
|
|
136
|
+
pass `--yes` for a non-interactive run. Use `--pre` to consider PyPI pre-releases or
|
|
137
|
+
`--no-restart` to leave previously running jobs stopped. Git sources are limited to HTTPS GitHub
|
|
138
|
+
repository URLs and require an explicit `--ref`; a commit SHA is reproducible while a branch can
|
|
139
|
+
move.
|
|
140
|
+
|
|
141
|
+
If the installed command itself is broken, the equivalent recovery sequence remains
|
|
142
|
+
`python -m pip install --upgrade sidequestor`, `sq sync-resources`, `sq doctor`, and `sq start`.
|
|
143
|
+
|
|
144
|
+
`.env`, `settings.json`, `state/`, `logs/`, and your personal `skills/` survive. `.yaas/engine/current/` is wiped and rebuilt every sync; hand-edits there are intentionally lost. An existing `.env` never gains newly added knobs because `provision_env` fills only placeholders, so diff it against `.env.example` after upgrading. Plists embed the venv’s absolute interpreter path: upgrading in place is fine, but recreating the venv means running `sq setup` again.
|
|
145
|
+
|
|
146
|
+
Reaction defaults are now standard Unicode names: `robot_face`, `hourglass_flowing_sand`, and `white_check_mark`. Items already queued under an old emoji in `state/triage/pending_reactions.json` are not picked up again, and a message already wearing the old loading emoji keeps it. To keep the old set, pin it with `SIDEQUESTOR_REACTION_PROCESS_EMOJI`, `SIDEQUESTOR_REACTION_LOADING_EMOJI`, and `SIDEQUESTOR_REACTION_DONE_EMOJI`.
|
|
147
|
+
|
|
148
|
+
## Something looks wrong. Now what?
|
|
149
|
+
|
|
150
|
+
Start with `sq doctor` — it is the cheapest question you can ask. Include its build line when reporting a problem. `sq start` prints the dashboard URL and records it in `state/dashboard-url.txt`; `sq dashboard url` retrieves it later. `sq dashboard serve` remains available as a foreground developer escape hatch, but the normal persistent lifecycle is `sq start` and `sq stop`. Job errors are in `logs/package-*.err.log`.
|
|
151
|
+
|
|
152
|
+
## How do I test a checkout?
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
# Run the complete unittest suite from the repository checkout.
|
|
156
|
+
python -m unittest discover -s tests -p 'test_*.py'
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
For a disposable branch-install test, read `.agents/skills/sidequestor-e2e/SKILL.md`. Before publishing package changes, run `.agents/skills/regression-check/SKILL.md`, then use `.agents/skills/publish-yaas-to-circlefin/SKILL.md` for the signed branch publication. Neither skill modifies `.git-yaas-v2`.
|
|
160
|
+
|
|
161
|
+
## License
|
|
162
|
+
|
|
163
|
+
Apache License 2.0. See `LICENSE`.
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Sidequestor
|
|
2
|
+
|
|
3
|
+
**Your side quests, handled.** Sidequestor is a local-first Slack sidekick that keeps small
|
|
4
|
+
missions moving while you get on with the main storyline. Point it at a workspace, pick your
|
|
5
|
+
agent, and it takes the next useful step — then leaves every file, log and decision on disk so
|
|
6
|
+
you can always see exactly what it did.
|
|
7
|
+
|
|
8
|
+
- 🎯 **Quests, not chores** — you describe the mission once; the triage loop watches for what changes.
|
|
9
|
+
- 🏠 **Local-first** — your machine, your Slack token, your files. Nothing to host.
|
|
10
|
+
- 🔍 **Nothing hidden** — every dispatch leaves a transcript, a timeline entry and a run log.
|
|
11
|
+
- 🤖 **Your agent, your call** — `codex` out of the box, `claude` if you prefer.
|
|
12
|
+
|
|
13
|
+
## Before you start
|
|
14
|
+
|
|
15
|
+
A short checklist, so nothing surprises you halfway through:
|
|
16
|
+
|
|
17
|
+
- macOS with launchd (that is what runs the loop) and Python ≥ 3.11.
|
|
18
|
+
- The command-line tools `jq`, `curl`, `openssl`, `security` and `open`.
|
|
19
|
+
- An already-authenticated `claude` **or** `codex` CLI. Sidequestor never logs in for you.
|
|
20
|
+
|
|
21
|
+
Sidequestor installs zero Python dependencies, so pip cannot check the list above for you.
|
|
22
|
+
The Slack setup script checks the tools it needs before it runs, and
|
|
23
|
+
`yaas-triage/ops/doctor.sh` checks the rest.
|
|
24
|
+
|
|
25
|
+
## How do I install it?
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Change to an existing project or workspace directory.
|
|
29
|
+
cd ~/path/to/existing-workspace
|
|
30
|
+
# Optional instead: create a new directory and enter it.
|
|
31
|
+
# mkdir -p ~/new-sidequestor-workspace
|
|
32
|
+
# cd ~/new-sidequestor-workspace
|
|
33
|
+
# Create an isolated Python environment inside that workspace.
|
|
34
|
+
python3 -m venv .venv
|
|
35
|
+
# Make the Sidequestor commands available in this terminal.
|
|
36
|
+
source .venv/bin/activate
|
|
37
|
+
# Install the latest stable package from PyPI.
|
|
38
|
+
python -m pip install sidequestor
|
|
39
|
+
# Add Sidequestor metadata and configuration to this directory.
|
|
40
|
+
sidequestor init .
|
|
41
|
+
# Save the ready-to-paste Slack YAML manifest.
|
|
42
|
+
sq setup --manifest > slack-app-manifest.yaml
|
|
43
|
+
# Run interactive onboarding; choose bypassPermissions for the worker backend.
|
|
44
|
+
sq setup
|
|
45
|
+
# Start triage, heartbeat, and the dashboard and print the dashboard URL.
|
|
46
|
+
sq start
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Nothing of yours is moved or overwritten: `sidequestor init .` only adds `.yaas` metadata alongside your existing files. `sq`, `sidequestor`, and `yaas` are all available aliases. The dashboard workspace label opens the current workspace in Cursor when available, or in macOS’s default IDE/file opener. Set `SIDEQUESTOR_IDE_APP` to prefer another application.
|
|
50
|
+
|
|
51
|
+
The virtualenv supplies the commands, so `deactivate` puts the shell back the way you found it.
|
|
52
|
+
|
|
53
|
+
Commands use the current directory when it is an initialized workspace. From elsewhere, pass `--workspace PATH` or set `SIDEQUESTOR_WORKSPACE`; the legacy `YAAS_WORKSPACE` name remains accepted.
|
|
54
|
+
|
|
55
|
+
## How do I set up the Slack app?
|
|
56
|
+
|
|
57
|
+
1. Run `sq setup --manifest > slack-app-manifest.yaml`, then paste that YAML at api.slack.com → Create New App → From an app manifest.
|
|
58
|
+
2. Choose the workspace and Install to Workspace; an administrator may need to approve it.
|
|
59
|
+
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.
|
|
60
|
+
4. In **OAuth and Permissions → User Token Scopes**, verify the 18 requested user scopes. 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`.
|
|
61
|
+
5. If you grant a scope later, reinstall the app and run `sq setup` again.
|
|
62
|
+
6. In Basic Information, copy the App ID and Client ID into `.env`, then complete OAuth.
|
|
63
|
+
|
|
64
|
+
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-5.6-luna` at `high` effort.
|
|
65
|
+
|
|
66
|
+
## What permissions does the worker need?
|
|
67
|
+
|
|
68
|
+
For unattended work, choose `bypassPermissions` at the Worker permission mode prompt. This lets the selected agent execute filesystem, shell, and network/MCP operations without per-action approval, so use it only in a workspace where that behavior is acceptable.
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# Allow Claude workers to execute unattended tool actions.
|
|
72
|
+
SIDEQUESTOR_CLAUDE_PERMISSION_MODE=bypassPermissions
|
|
73
|
+
# Allow Codex workers to execute unattended tool actions.
|
|
74
|
+
SIDEQUESTOR_CODEX_PERMISSION_MODE=bypassPermissions
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The optional instruction block targets `CLAUDE.md` for Claude and `AGENTS.md` for every other backend. Neither file is ever created or edited by Sidequestor.
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Print the optional block without changing any files.
|
|
81
|
+
sq setup --instructions
|
|
82
|
+
# Use defaults without OAuth.
|
|
83
|
+
sq setup --non-interactive
|
|
84
|
+
# Use the lower-level launchd operations when needed.
|
|
85
|
+
sq setup --render-only|install|status|uninstall
|
|
86
|
+
# Install the production launchd jobs.
|
|
87
|
+
sq setup --production install
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## How do I run and inspect it?
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
# Start triage, heartbeat, and dashboard jobs for the current workspace.
|
|
94
|
+
# Wait for the dashboard and print its selected free loopback URL.
|
|
95
|
+
sq start
|
|
96
|
+
# Stop every job for the current workspace; the instance ID is optional here.
|
|
97
|
+
sq stop
|
|
98
|
+
# List currently running Sidequestor instances and their exact workspaces.
|
|
99
|
+
sq instances list
|
|
100
|
+
# Include stopped or historical registered workspaces as well.
|
|
101
|
+
sq instances list --all
|
|
102
|
+
# Validate the current workspace and print its build identity.
|
|
103
|
+
sq doctor
|
|
104
|
+
# Look up the dashboard URL later without restarting anything.
|
|
105
|
+
sq dashboard url
|
|
106
|
+
# From another directory, stop one registered workspace explicitly.
|
|
107
|
+
sq stop INSTANCE_ID
|
|
108
|
+
# Print the installed package build identity.
|
|
109
|
+
sq --version
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## How do I upgrade?
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
# Upgrade to the latest stable PyPI release, refresh resources, validate, and restart.
|
|
116
|
+
sq upgrade
|
|
117
|
+
|
|
118
|
+
# Or install one explicit branch, tag, or commit from GitHub.
|
|
119
|
+
sq upgrade --source https://github.com/OWNER/sidequestor.git --ref BRANCH
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
`sq upgrade` uses the same Python environment as the running `sq` command. It stops production
|
|
123
|
+
jobs only when they were previously marked running, invokes pip, then uses a fresh Python process
|
|
124
|
+
to sync resources and run `sq doctor`. Previously running jobs restart only after both checks
|
|
125
|
+
succeed. Git installs require confirmation because they install code with the worker's permissions;
|
|
126
|
+
pass `--yes` for a non-interactive run. Use `--pre` to consider PyPI pre-releases or
|
|
127
|
+
`--no-restart` to leave previously running jobs stopped. Git sources are limited to HTTPS GitHub
|
|
128
|
+
repository URLs and require an explicit `--ref`; a commit SHA is reproducible while a branch can
|
|
129
|
+
move.
|
|
130
|
+
|
|
131
|
+
If the installed command itself is broken, the equivalent recovery sequence remains
|
|
132
|
+
`python -m pip install --upgrade sidequestor`, `sq sync-resources`, `sq doctor`, and `sq start`.
|
|
133
|
+
|
|
134
|
+
`.env`, `settings.json`, `state/`, `logs/`, and your personal `skills/` survive. `.yaas/engine/current/` is wiped and rebuilt every sync; hand-edits there are intentionally lost. An existing `.env` never gains newly added knobs because `provision_env` fills only placeholders, so diff it against `.env.example` after upgrading. Plists embed the venv’s absolute interpreter path: upgrading in place is fine, but recreating the venv means running `sq setup` again.
|
|
135
|
+
|
|
136
|
+
Reaction defaults are now standard Unicode names: `robot_face`, `hourglass_flowing_sand`, and `white_check_mark`. Items already queued under an old emoji in `state/triage/pending_reactions.json` are not picked up again, and a message already wearing the old loading emoji keeps it. To keep the old set, pin it with `SIDEQUESTOR_REACTION_PROCESS_EMOJI`, `SIDEQUESTOR_REACTION_LOADING_EMOJI`, and `SIDEQUESTOR_REACTION_DONE_EMOJI`.
|
|
137
|
+
|
|
138
|
+
## Something looks wrong. Now what?
|
|
139
|
+
|
|
140
|
+
Start with `sq doctor` — it is the cheapest question you can ask. Include its build line when reporting a problem. `sq start` prints the dashboard URL and records it in `state/dashboard-url.txt`; `sq dashboard url` retrieves it later. `sq dashboard serve` remains available as a foreground developer escape hatch, but the normal persistent lifecycle is `sq start` and `sq stop`. Job errors are in `logs/package-*.err.log`.
|
|
141
|
+
|
|
142
|
+
## How do I test a checkout?
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# Run the complete unittest suite from the repository checkout.
|
|
146
|
+
python -m unittest discover -s tests -p 'test_*.py'
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
For a disposable branch-install test, read `.agents/skills/sidequestor-e2e/SKILL.md`. Before publishing package changes, run `.agents/skills/regression-check/SKILL.md`, then use `.agents/skills/publish-yaas-to-circlefin/SKILL.md` for the signed branch publication. Neither skill modifies `.git-yaas-v2`.
|
|
150
|
+
|
|
151
|
+
## License
|
|
152
|
+
|
|
153
|
+
Apache License 2.0. See `LICENSE`.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sidequestor"
|
|
7
|
+
version = "0.1.11"
|
|
8
|
+
description = "Sidequestor workspace and triage command shell"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "Apache-2.0"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
requires-python = ">=3.11"
|
|
13
|
+
dependencies = []
|
|
14
|
+
|
|
15
|
+
[project.scripts]
|
|
16
|
+
sidequestor = "sidequestor.cli:main"
|
|
17
|
+
sq = "sidequestor.cli:main"
|
|
18
|
+
yaas = "sidequestor.cli:main"
|
|
19
|
+
|
|
20
|
+
[tool.setuptools.packages.find]
|
|
21
|
+
where = ["src"]
|
|
22
|
+
|
|
23
|
+
[tool.setuptools.package-data]
|
|
24
|
+
sidequestor = ["*.json", "*.md", "*.html", "*.png", "package_data/*.md", "package_data/*.example", "runtime/**/*"]
|
|
25
|
+
|
|
26
|
+
[tool.setuptools.exclude-package-data]
|
|
27
|
+
sidequestor = ["**/__pycache__/*", "**/*.pyc"]
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""Build identity exposed by the package and dashboard."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
import subprocess
|
|
7
|
+
from importlib import metadata
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
10
|
+
from . import __version__
|
|
11
|
+
from .resources import ENGINE_VERSION
|
|
12
|
+
|
|
13
|
+
_BUILD_INFO: dict[str, str] | None = None
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def build_info() -> dict[str, str]:
|
|
17
|
+
"""Return the immutable identity of this running package build."""
|
|
18
|
+
global _BUILD_INFO
|
|
19
|
+
if _BUILD_INFO is not None:
|
|
20
|
+
return dict(_BUILD_INFO)
|
|
21
|
+
commit_full = ""
|
|
22
|
+
ref = ""
|
|
23
|
+
source = "unknown"
|
|
24
|
+
try:
|
|
25
|
+
direct_url = metadata.distribution("sidequestor").read_text("direct_url.json")
|
|
26
|
+
if direct_url:
|
|
27
|
+
data = json.loads(direct_url)
|
|
28
|
+
vcs_info = data.get("vcs_info", {})
|
|
29
|
+
commit_full = str(vcs_info.get("commit_id", "") or "")
|
|
30
|
+
ref = str(vcs_info.get("requested_revision", "") or "")
|
|
31
|
+
if commit_full:
|
|
32
|
+
source = "install"
|
|
33
|
+
except Exception:
|
|
34
|
+
pass
|
|
35
|
+
if not commit_full:
|
|
36
|
+
checkout = Path(__file__).resolve().parents[2]
|
|
37
|
+
if not (checkout / "src" / "sidequestor" / "__init__.py").exists():
|
|
38
|
+
checkout = None
|
|
39
|
+
try:
|
|
40
|
+
result = subprocess.run(
|
|
41
|
+
["git", "rev-parse", "HEAD"], cwd=checkout, check=False,
|
|
42
|
+
capture_output=True, text=True, timeout=2,
|
|
43
|
+
) if checkout else None
|
|
44
|
+
commit_full = result.stdout.strip() if result and result.returncode == 0 else ""
|
|
45
|
+
if commit_full:
|
|
46
|
+
source = "checkout"
|
|
47
|
+
except Exception:
|
|
48
|
+
pass
|
|
49
|
+
_BUILD_INFO = {
|
|
50
|
+
"version": __version__, "commit": commit_full[:7],
|
|
51
|
+
"commit_full": commit_full, "ref": ref, "source": source,
|
|
52
|
+
"engine": ENGINE_VERSION,
|
|
53
|
+
}
|
|
54
|
+
return dict(_BUILD_INFO)
|