remote-coder 0.4.2__tar.gz → 0.4.3__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.
- remote_coder-0.4.3/PKG-INFO +353 -0
- remote_coder-0.4.3/README.md +132 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/__init__.py +1 -1
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/advanced_settings.py +28 -6
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/router.py +11 -20
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/static/i18n.js +47 -14
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/static/summary.js +5 -10
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/templates/admin.html +5 -9
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/templates/advanced.html +53 -4
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/templates/projects.html +0 -6
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/ai/claude.py +2 -6
- remote_coder-0.4.3/app/ai/factory.py +44 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/cli.py +2 -4
- remote_coder-0.4.3/app/config.py +77 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/jobs/manager.py +16 -7
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/main.py +17 -16
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/projects/__init__.py +2 -2
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/projects/registry.py +23 -113
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/commands/base.py +6 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/commands/branch.py +9 -8
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/commands/clear_stop.py +4 -3
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/commands/monitor.py +2 -1
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/conversation.py +26 -10
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/parser.py +23 -12
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/webhook_registration.py +2 -5
- {remote_coder-0.4.2 → remote_coder-0.4.3}/pyproject.toml +1 -2
- remote_coder-0.4.3/remote_coder.egg-info/PKG-INFO +353 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/remote_coder.egg-info/requires.txt +0 -1
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_admin_router.py +46 -28
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_bot_instance_manager.py +0 -3
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_claude_runner.py +2 -2
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_cli.py +1 -1
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_command_parser.py +30 -11
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_commands.py +0 -10
- remote_coder-0.4.3/tests/test_config.py +28 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_conversation_store.py +53 -9
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_job_manager.py +15 -14
- remote_coder-0.4.3/tests/test_project_registry.py +258 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_project_scoped_state.py +0 -6
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_webhook_multibot.py +0 -6
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_webhook_registration.py +1 -13
- remote_coder-0.4.2/PKG-INFO +0 -520
- remote_coder-0.4.2/README.md +0 -298
- remote_coder-0.4.2/app/ai/factory.py +0 -27
- remote_coder-0.4.2/app/config.py +0 -130
- remote_coder-0.4.2/remote_coder.egg-info/PKG-INFO +0 -520
- remote_coder-0.4.2/tests/test_config.py +0 -72
- remote_coder-0.4.2/tests/test_project_registry.py +0 -362
- {remote_coder-0.4.2 → remote_coder-0.4.3}/LICENSE +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/__init__.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/database_browser.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/static/icons/advanced.svg +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/static/icons/database.svg +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/static/icons/download.svg +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/static/icons/home.svg +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/static/icons/logs.svg +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/static/icons/projects.svg +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/templates/database.html +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/admin/templates/logs.html +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/ai/__init__.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/ai/base.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/ai/codex.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/ai/gemini.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/ai/model_catalog.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/ai/usage.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/diagnostics.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/git/__init__.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/git/ai_commit.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/git/branch_naming.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/git/commit_message.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/git/service.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/jobs/__init__.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/jobs/schemas.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/jobs/store.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/models.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/monitoring/__init__.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/monitoring/code.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/monitoring/events.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/monitoring/git.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/monitoring/log_buffer.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/monitoring/memory.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/monitoring/model.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/security/__init__.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/security/auth.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/system_startup.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/__init__.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/bot_instances.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/commands/__init__.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/commands/fix.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/commands/model.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/commands/registry.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/commands/status.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/commands/system.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/confirmations.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/i18n.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/model_preferences.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/notifier.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/telegram/webhook.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/app/tunnel.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/remote_coder.egg-info/SOURCES.txt +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/remote_coder.egg-info/dependency_links.txt +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/remote_coder.egg-info/entry_points.txt +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/remote_coder.egg-info/top_level.txt +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/setup.cfg +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_ai_base.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_ai_commit.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_ai_factory.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_auth.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_branch_naming.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_codex_runner.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_commit_message_formatter.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_database_browser.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_diagnostics.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_event_logger.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_gemini_runner.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_git_service.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_i18n.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_job_status.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_job_store.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_log_buffer.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_monitoring.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_notifier.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_system_startup.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_tunnel.py +0 -0
- {remote_coder-0.4.2 → remote_coder-0.4.3}/tests/test_webhook.py +0 -0
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: remote-coder
|
|
3
|
+
Version: 0.4.3
|
|
4
|
+
Summary: Telegram-based remote AI coding automation server
|
|
5
|
+
Author: Remote AI Coder contributors
|
|
6
|
+
License: Apache License
|
|
7
|
+
Version 2.0, January 2004
|
|
8
|
+
http://www.apache.org/licenses/
|
|
9
|
+
|
|
10
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
11
|
+
|
|
12
|
+
1. Definitions.
|
|
13
|
+
|
|
14
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
15
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
16
|
+
|
|
17
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
18
|
+
the copyright owner that is granting the License.
|
|
19
|
+
|
|
20
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
21
|
+
other entities that control, are controlled by, or are under common
|
|
22
|
+
control with that entity. For the purposes of this definition,
|
|
23
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
24
|
+
direction or management of such entity, whether by contract or
|
|
25
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
26
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
27
|
+
|
|
28
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
29
|
+
exercising permissions granted by this License.
|
|
30
|
+
|
|
31
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
32
|
+
including but not limited to software source code, documentation
|
|
33
|
+
source, and configuration files.
|
|
34
|
+
|
|
35
|
+
"Object" form shall mean any form resulting from mechanical
|
|
36
|
+
transformation or translation of a Source form, including but
|
|
37
|
+
not limited to compiled object code, generated documentation,
|
|
38
|
+
and conversions to other media types.
|
|
39
|
+
|
|
40
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
41
|
+
Object form, made available under the License, as indicated by a
|
|
42
|
+
copyright notice that is included in or attached to the work
|
|
43
|
+
(an example is provided in the Appendix below).
|
|
44
|
+
|
|
45
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
46
|
+
form, that is based on (or derived from) the Work and for which the
|
|
47
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
48
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
49
|
+
of this License, Derivative Works shall not include works that remain
|
|
50
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
51
|
+
the Work and Derivative Works thereof.
|
|
52
|
+
|
|
53
|
+
"Contribution" shall mean any work of authorship, including
|
|
54
|
+
the original version of the Work and any modifications or additions
|
|
55
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
56
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
57
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
58
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
59
|
+
means any form of electronic, verbal, or written communication sent
|
|
60
|
+
to the Licensor or its representatives, including but not limited to
|
|
61
|
+
communication on electronic mailing lists, source code control systems,
|
|
62
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
63
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
64
|
+
excluding communication that is conspicuously marked or otherwise
|
|
65
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
66
|
+
|
|
67
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
68
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
69
|
+
subsequently incorporated within the Work.
|
|
70
|
+
|
|
71
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
72
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
73
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
74
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
75
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
76
|
+
Work and such Derivative Works in Source or Object form.
|
|
77
|
+
|
|
78
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
79
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
80
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
81
|
+
(except as stated in this section) patent license to make, have made,
|
|
82
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
83
|
+
where such license applies only to those patent claims licensable
|
|
84
|
+
by such Contributor that are necessarily infringed by their
|
|
85
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
86
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
87
|
+
institute patent litigation against any entity (including a
|
|
88
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
89
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
90
|
+
or contributory patent infringement, then any patent licenses
|
|
91
|
+
granted to You under this License for that Work shall terminate
|
|
92
|
+
as of the date such litigation is filed.
|
|
93
|
+
|
|
94
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
95
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
96
|
+
modifications, and in Source or Object form, provided that You
|
|
97
|
+
meet the following conditions:
|
|
98
|
+
|
|
99
|
+
(a) You must give any other recipients of the Work or
|
|
100
|
+
Derivative Works a copy of this License; and
|
|
101
|
+
|
|
102
|
+
(b) You must cause any modified files to carry prominent notices
|
|
103
|
+
stating that You changed the files; and
|
|
104
|
+
|
|
105
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
106
|
+
that You distribute, all copyright, patent, trademark, and
|
|
107
|
+
attribution notices from the Source form of the Work,
|
|
108
|
+
excluding those notices that do not pertain to any part of
|
|
109
|
+
the Derivative Works; and
|
|
110
|
+
|
|
111
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
112
|
+
distribution, then any Derivative Works that You distribute must
|
|
113
|
+
include a readable copy of the attribution notices contained
|
|
114
|
+
within such NOTICE file, excluding those notices that do not
|
|
115
|
+
pertain to any part of the Derivative Works, in at least one
|
|
116
|
+
of the following places: within a NOTICE text file distributed
|
|
117
|
+
as part of the Derivative Works; within the Source form or
|
|
118
|
+
documentation, if provided along with the Derivative Works; or,
|
|
119
|
+
within a display generated by the Derivative Works, if and
|
|
120
|
+
wherever such third-party notices normally appear. The contents
|
|
121
|
+
of the NOTICE file are for informational purposes only and
|
|
122
|
+
do not modify the License. You may add Your own attribution
|
|
123
|
+
notices within Derivative Works that You distribute, alongside
|
|
124
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
125
|
+
that such additional attribution notices cannot be construed
|
|
126
|
+
as modifying the License.
|
|
127
|
+
|
|
128
|
+
You may add Your own copyright statement to Your modifications and
|
|
129
|
+
may provide additional or different license terms and conditions
|
|
130
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
131
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
132
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
133
|
+
the conditions stated in this License.
|
|
134
|
+
|
|
135
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
136
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
137
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
138
|
+
this License, without any additional terms or conditions.
|
|
139
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
140
|
+
the terms of any separate license agreement you may have executed
|
|
141
|
+
with Licensor regarding such Contributions.
|
|
142
|
+
|
|
143
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
144
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
145
|
+
except as required for reasonable and customary use in describing the
|
|
146
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
147
|
+
|
|
148
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
149
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
150
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
151
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
152
|
+
implied, including, without limitation, any warranties or conditions
|
|
153
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
154
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
155
|
+
appropriateness of using or redistributing the Work and assume any
|
|
156
|
+
risks associated with Your exercise of permissions under this License.
|
|
157
|
+
|
|
158
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
159
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
160
|
+
unless required by applicable law (such as deliberate and grossly
|
|
161
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
162
|
+
liable to You for damages, including any direct, indirect, special,
|
|
163
|
+
incidental, or consequential damages of any character arising as a
|
|
164
|
+
result of this License or out of the use or inability to use the
|
|
165
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
166
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
167
|
+
other commercial damages or losses), even if such Contributor
|
|
168
|
+
has been advised of the possibility of such damages.
|
|
169
|
+
|
|
170
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
171
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
172
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
173
|
+
or other liability obligations and/or rights consistent with this
|
|
174
|
+
License. However, in accepting such obligations, You may act only
|
|
175
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
176
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
177
|
+
defend, and hold each Contributor harmless for any liability
|
|
178
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
179
|
+
of your accepting any such warranty or additional liability.
|
|
180
|
+
|
|
181
|
+
END OF TERMS AND CONDITIONS
|
|
182
|
+
|
|
183
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
184
|
+
|
|
185
|
+
To apply the Apache License to your work, attach the following
|
|
186
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
187
|
+
replaced with your own identifying information. (Don't include
|
|
188
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
189
|
+
comment syntax for the file format. We also recommend that a
|
|
190
|
+
file or class name and description of purpose be included on the
|
|
191
|
+
same "printed page" as the copyright notice for easier
|
|
192
|
+
identification within third-party archives.
|
|
193
|
+
|
|
194
|
+
Copyright 2026 maroomir
|
|
195
|
+
|
|
196
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
197
|
+
you may not use this file except in compliance with the License.
|
|
198
|
+
You may obtain a copy of the License at
|
|
199
|
+
|
|
200
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
201
|
+
|
|
202
|
+
Unless required by applicable law or agreed to in writing, software
|
|
203
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
204
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
205
|
+
See the License for the specific language governing permissions and
|
|
206
|
+
limitations under the License.
|
|
207
|
+
Requires-Python: >=3.11
|
|
208
|
+
Description-Content-Type: text/markdown
|
|
209
|
+
License-File: LICENSE
|
|
210
|
+
Requires-Dist: fastapi<1.0,>=0.115
|
|
211
|
+
Requires-Dist: httpx<1.0,>=0.27
|
|
212
|
+
Requires-Dist: pydantic<3.0,>=2.7
|
|
213
|
+
Requires-Dist: pydantic-settings<3.0,>=2.3
|
|
214
|
+
Requires-Dist: pyyaml<7.0,>=6.0
|
|
215
|
+
Requires-Dist: uvicorn[standard]<1.0,>=0.30
|
|
216
|
+
Provides-Extra: dev
|
|
217
|
+
Requires-Dist: pytest<10.0,>=8.0; extra == "dev"
|
|
218
|
+
Requires-Dist: pytest-asyncio<2.0,>=0.23; extra == "dev"
|
|
219
|
+
Requires-Dist: respx<1.0,>=0.21; extra == "dev"
|
|
220
|
+
Dynamic: license-file
|
|
221
|
+
|
|
222
|
+
# Remote AI Coder
|
|
223
|
+
|
|
224
|
+
Run Claude Code, Codex, or Gemini on your local development machine by sending a Telegram message. Remote AI Coder isolates each request in a Git worktree, commits the result on a separate branch, and reports the outcome back to Telegram.
|
|
225
|
+
|
|
226
|
+
*English: this document · 한국어: [README.ko.md](README.ko.md)*
|
|
227
|
+
|
|
228
|
+
> [!WARNING]
|
|
229
|
+
> This is a local automation tool with access to AI CLIs, Git, and your filesystem. Keep it private, use Telegram allowlists, and do not expose the server or admin UI to the public internet.
|
|
230
|
+
|
|
231
|
+
## What You Get
|
|
232
|
+
|
|
233
|
+
- Telegram as a lightweight remote control for local coding agents.
|
|
234
|
+
- One Telegram bot per registered project, with project-scoped allowlists and settings.
|
|
235
|
+
- Request-specific Git worktrees, branch creation, commit, push, and result notifications.
|
|
236
|
+
- Claude, Codex, and Gemini runners behind the same job flow.
|
|
237
|
+
- Local admin UI for project setup, advanced settings, logs, and conversation memory.
|
|
238
|
+
- Read-only `plan:` and `ask:` modes when you want analysis without commits.
|
|
239
|
+
|
|
240
|
+
## Quick Start
|
|
241
|
+
|
|
242
|
+
Install the CLI:
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
pip install remote-coder
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
Before the first package release, install from source:
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
pip install git+https://github.com/maroomir/remote-coder.git
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
Check your local tools, then start everything:
|
|
255
|
+
|
|
256
|
+
```bash
|
|
257
|
+
remote-coder doctor
|
|
258
|
+
remote-coder up
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
Open `http://127.0.0.1:8000/`, add your first project, and message the project bot in Telegram. `remote-coder up` runs the server, starts the ngrok tunnel, registers webhooks, and refreshes the Telegram command menu. Use `remote-coder up --no-tunnel` when you only want the local server.
|
|
262
|
+
|
|
263
|
+
## Requirements
|
|
264
|
+
|
|
265
|
+
- Python 3.11+
|
|
266
|
+
- `ngrok` or another HTTPS tunnel for Telegram webhooks
|
|
267
|
+
- One Telegram bot token per project
|
|
268
|
+
- Allowed Telegram Chat IDs, and optionally User IDs
|
|
269
|
+
- At least one local AI CLI: `claude`, `codex`, or `gemini`
|
|
270
|
+
- A local Git repository to automate
|
|
271
|
+
|
|
272
|
+
## How It Works
|
|
273
|
+
|
|
274
|
+
```text
|
|
275
|
+
Telegram message
|
|
276
|
+
-> FastAPI webhook /telegram/webhook/{sha256-prefix16}
|
|
277
|
+
-> project-bound bot instance and allowlist check
|
|
278
|
+
-> command parser or natural-language confirmation
|
|
279
|
+
-> JobManager
|
|
280
|
+
-> Git worktree
|
|
281
|
+
-> Claude / Codex / Gemini runner
|
|
282
|
+
-> branch, commit, push, and Telegram result
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
Each project uses its own bot. The webhook path contains the first 16 hex characters of `SHA-256(bot token)`, never the raw token. Natural-language jobs show the target project, branch, model, and mode before running, then wait for confirmation.
|
|
286
|
+
|
|
287
|
+
## Everyday Commands
|
|
288
|
+
|
|
289
|
+
| Command | Purpose |
|
|
290
|
+
|---|---|
|
|
291
|
+
| `/start`, `/help` | Open the menu or command help |
|
|
292
|
+
| `/model` | View or change the chat's default model |
|
|
293
|
+
| `/status [job_id]` | Inspect recent or specific jobs |
|
|
294
|
+
| `/branch [name]` | Show or switch the bound project's local branch |
|
|
295
|
+
| `/pull` | Fetch remotes and pull the current branch |
|
|
296
|
+
| `/rebase [branch]` | Rebase and fast-forward a completed branch into `main` or `master` |
|
|
297
|
+
| `/pr [branch]` | Create a GitHub PR with `gh` |
|
|
298
|
+
| `/fix ...` | Rework a previous job's commit message or source |
|
|
299
|
+
| `/monitor ...` | Inspect model, memory, branch, worktree, code, or project status |
|
|
300
|
+
| `/clear ...` | Clean managed branches, worktrees, or conversation memory |
|
|
301
|
+
| `/stop [job_id]` | Cancel a queued or running job |
|
|
302
|
+
| `/init` | Reset chat-local model and pending confirmations |
|
|
303
|
+
|
|
304
|
+
Natural-language examples:
|
|
305
|
+
|
|
306
|
+
```text
|
|
307
|
+
Fix the login validation bug with model: codex
|
|
308
|
+
plan: outline the migration before changing code
|
|
309
|
+
/ask what test command does this repo use?
|
|
310
|
+
수정: 방금 작업에서 README 문구만 더 간결하게 바꿔줘
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
## Configuration
|
|
314
|
+
|
|
315
|
+
Day-to-day setup happens in the local admin UI. Files live under `REMOTE_CODER_HOME`, defaulting to `~/.remote-coder`:
|
|
316
|
+
|
|
317
|
+
- `projects.json` stores project records, bot tokens, allowlists, root paths, and default models.
|
|
318
|
+
- `advanced_settings.json` stores global behavior such as timeouts, sandbox mode, language, worktree retention, and memory limits.
|
|
319
|
+
- `worktrees/<project>/` contains managed job worktrees and logs.
|
|
320
|
+
|
|
321
|
+
Useful overrides: `REMOTE_CODER_HOME`, `PROJECTS_CONFIG_PATH`, `CONVERSATION_DB_PATH`, and `JOB_DB_PATH`.
|
|
322
|
+
|
|
323
|
+
## Security Notes
|
|
324
|
+
|
|
325
|
+
- Treat `~/.remote-coder/projects.json` as a secret; bot tokens are stored in plain text.
|
|
326
|
+
- Keep the admin UI on localhost.
|
|
327
|
+
- Do not paste secrets or sensitive code into Telegram messages.
|
|
328
|
+
- Dangerous runner modes such as Claude `--dangerously-skip-permissions`, Gemini `--approval-mode yolo`, and Codex `danger-full-access` can modify local files.
|
|
329
|
+
- See [`SECURITY.md`](SECURITY.md) before publishing, exposing, or sharing a deployment.
|
|
330
|
+
|
|
331
|
+
## More Docs
|
|
332
|
+
|
|
333
|
+
- Multi-bot setup and migration: [`docs/multi-bot-setup.md`](docs/multi-bot-setup.md)
|
|
334
|
+
- AI runners: [`docs/ai-runners.md`](docs/ai-runners.md)
|
|
335
|
+
- Read-only worktree troubleshooting: [`docs/read-only-workspace.md`](docs/read-only-workspace.md)
|
|
336
|
+
- Contributing: [`CONTRIBUTING.md`](CONTRIBUTING.md)
|
|
337
|
+
|
|
338
|
+
## Development
|
|
339
|
+
|
|
340
|
+
```bash
|
|
341
|
+
conda env create -f environment.yml
|
|
342
|
+
conda activate remote-coder
|
|
343
|
+
python -m pip install -e ".[dev]"
|
|
344
|
+
remote-coder up --no-tunnel --reload
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
Run the test suite:
|
|
348
|
+
|
|
349
|
+
```bash
|
|
350
|
+
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 conda run -n remote-coder pytest -q -p pytest_asyncio.plugin -p respx.fixtures
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
License: [Apache License 2.0](LICENSE)
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Remote AI Coder
|
|
2
|
+
|
|
3
|
+
Run Claude Code, Codex, or Gemini on your local development machine by sending a Telegram message. Remote AI Coder isolates each request in a Git worktree, commits the result on a separate branch, and reports the outcome back to Telegram.
|
|
4
|
+
|
|
5
|
+
*English: this document · 한국어: [README.ko.md](README.ko.md)*
|
|
6
|
+
|
|
7
|
+
> [!WARNING]
|
|
8
|
+
> This is a local automation tool with access to AI CLIs, Git, and your filesystem. Keep it private, use Telegram allowlists, and do not expose the server or admin UI to the public internet.
|
|
9
|
+
|
|
10
|
+
## What You Get
|
|
11
|
+
|
|
12
|
+
- Telegram as a lightweight remote control for local coding agents.
|
|
13
|
+
- One Telegram bot per registered project, with project-scoped allowlists and settings.
|
|
14
|
+
- Request-specific Git worktrees, branch creation, commit, push, and result notifications.
|
|
15
|
+
- Claude, Codex, and Gemini runners behind the same job flow.
|
|
16
|
+
- Local admin UI for project setup, advanced settings, logs, and conversation memory.
|
|
17
|
+
- Read-only `plan:` and `ask:` modes when you want analysis without commits.
|
|
18
|
+
|
|
19
|
+
## Quick Start
|
|
20
|
+
|
|
21
|
+
Install the CLI:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install remote-coder
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Before the first package release, install from source:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pip install git+https://github.com/maroomir/remote-coder.git
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Check your local tools, then start everything:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
remote-coder doctor
|
|
37
|
+
remote-coder up
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Open `http://127.0.0.1:8000/`, add your first project, and message the project bot in Telegram. `remote-coder up` runs the server, starts the ngrok tunnel, registers webhooks, and refreshes the Telegram command menu. Use `remote-coder up --no-tunnel` when you only want the local server.
|
|
41
|
+
|
|
42
|
+
## Requirements
|
|
43
|
+
|
|
44
|
+
- Python 3.11+
|
|
45
|
+
- `ngrok` or another HTTPS tunnel for Telegram webhooks
|
|
46
|
+
- One Telegram bot token per project
|
|
47
|
+
- Allowed Telegram Chat IDs, and optionally User IDs
|
|
48
|
+
- At least one local AI CLI: `claude`, `codex`, or `gemini`
|
|
49
|
+
- A local Git repository to automate
|
|
50
|
+
|
|
51
|
+
## How It Works
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
Telegram message
|
|
55
|
+
-> FastAPI webhook /telegram/webhook/{sha256-prefix16}
|
|
56
|
+
-> project-bound bot instance and allowlist check
|
|
57
|
+
-> command parser or natural-language confirmation
|
|
58
|
+
-> JobManager
|
|
59
|
+
-> Git worktree
|
|
60
|
+
-> Claude / Codex / Gemini runner
|
|
61
|
+
-> branch, commit, push, and Telegram result
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Each project uses its own bot. The webhook path contains the first 16 hex characters of `SHA-256(bot token)`, never the raw token. Natural-language jobs show the target project, branch, model, and mode before running, then wait for confirmation.
|
|
65
|
+
|
|
66
|
+
## Everyday Commands
|
|
67
|
+
|
|
68
|
+
| Command | Purpose |
|
|
69
|
+
|---|---|
|
|
70
|
+
| `/start`, `/help` | Open the menu or command help |
|
|
71
|
+
| `/model` | View or change the chat's default model |
|
|
72
|
+
| `/status [job_id]` | Inspect recent or specific jobs |
|
|
73
|
+
| `/branch [name]` | Show or switch the bound project's local branch |
|
|
74
|
+
| `/pull` | Fetch remotes and pull the current branch |
|
|
75
|
+
| `/rebase [branch]` | Rebase and fast-forward a completed branch into `main` or `master` |
|
|
76
|
+
| `/pr [branch]` | Create a GitHub PR with `gh` |
|
|
77
|
+
| `/fix ...` | Rework a previous job's commit message or source |
|
|
78
|
+
| `/monitor ...` | Inspect model, memory, branch, worktree, code, or project status |
|
|
79
|
+
| `/clear ...` | Clean managed branches, worktrees, or conversation memory |
|
|
80
|
+
| `/stop [job_id]` | Cancel a queued or running job |
|
|
81
|
+
| `/init` | Reset chat-local model and pending confirmations |
|
|
82
|
+
|
|
83
|
+
Natural-language examples:
|
|
84
|
+
|
|
85
|
+
```text
|
|
86
|
+
Fix the login validation bug with model: codex
|
|
87
|
+
plan: outline the migration before changing code
|
|
88
|
+
/ask what test command does this repo use?
|
|
89
|
+
수정: 방금 작업에서 README 문구만 더 간결하게 바꿔줘
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Configuration
|
|
93
|
+
|
|
94
|
+
Day-to-day setup happens in the local admin UI. Files live under `REMOTE_CODER_HOME`, defaulting to `~/.remote-coder`:
|
|
95
|
+
|
|
96
|
+
- `projects.json` stores project records, bot tokens, allowlists, root paths, and default models.
|
|
97
|
+
- `advanced_settings.json` stores global behavior such as timeouts, sandbox mode, language, worktree retention, and memory limits.
|
|
98
|
+
- `worktrees/<project>/` contains managed job worktrees and logs.
|
|
99
|
+
|
|
100
|
+
Useful overrides: `REMOTE_CODER_HOME`, `PROJECTS_CONFIG_PATH`, `CONVERSATION_DB_PATH`, and `JOB_DB_PATH`.
|
|
101
|
+
|
|
102
|
+
## Security Notes
|
|
103
|
+
|
|
104
|
+
- Treat `~/.remote-coder/projects.json` as a secret; bot tokens are stored in plain text.
|
|
105
|
+
- Keep the admin UI on localhost.
|
|
106
|
+
- Do not paste secrets or sensitive code into Telegram messages.
|
|
107
|
+
- Dangerous runner modes such as Claude `--dangerously-skip-permissions`, Gemini `--approval-mode yolo`, and Codex `danger-full-access` can modify local files.
|
|
108
|
+
- See [`SECURITY.md`](SECURITY.md) before publishing, exposing, or sharing a deployment.
|
|
109
|
+
|
|
110
|
+
## More Docs
|
|
111
|
+
|
|
112
|
+
- Multi-bot setup and migration: [`docs/multi-bot-setup.md`](docs/multi-bot-setup.md)
|
|
113
|
+
- AI runners: [`docs/ai-runners.md`](docs/ai-runners.md)
|
|
114
|
+
- Read-only worktree troubleshooting: [`docs/read-only-workspace.md`](docs/read-only-workspace.md)
|
|
115
|
+
- Contributing: [`CONTRIBUTING.md`](CONTRIBUTING.md)
|
|
116
|
+
|
|
117
|
+
## Development
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
conda env create -f environment.yml
|
|
121
|
+
conda activate remote-coder
|
|
122
|
+
python -m pip install -e ".[dev]"
|
|
123
|
+
remote-coder up --no-tunnel --reload
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Run the test suite:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 conda run -n remote-coder pytest -q -p pytest_asyncio.plugin -p respx.fixtures
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
License: [Apache License 2.0](LICENSE)
|
|
@@ -7,7 +7,12 @@ from typing import Self
|
|
|
7
7
|
|
|
8
8
|
from pydantic import BaseModel, model_validator
|
|
9
9
|
|
|
10
|
-
from app.
|
|
10
|
+
from app.config import resolve_state_path
|
|
11
|
+
from app.models import CodexSandboxMode, UiLanguage
|
|
12
|
+
|
|
13
|
+
CONVERSATION_REPLY_SNIPPET_MAX_CHARS_DEFAULT = 3000
|
|
14
|
+
CONVERSATION_REPLY_SNIPPET_MAX_CHARS_MIN = 200
|
|
15
|
+
CONVERSATION_REPLY_SNIPPET_MAX_CHARS_MAX = 20000
|
|
11
16
|
|
|
12
17
|
|
|
13
18
|
class AdvancedSettings(BaseModel):
|
|
@@ -23,7 +28,12 @@ class AdvancedSettings(BaseModel):
|
|
|
23
28
|
conversation_memory_max_rows: int | None = None
|
|
24
29
|
conversation_memory_max_bytes: int | None = None
|
|
25
30
|
status_recent_job_limit: int = 10
|
|
26
|
-
job_timeout_seconds: int
|
|
31
|
+
job_timeout_seconds: int = 1800
|
|
32
|
+
git_remote_name: str = "origin"
|
|
33
|
+
keep_worktree_on_success: bool = True
|
|
34
|
+
codex_sandbox: CodexSandboxMode = CodexSandboxMode.WORKSPACE_WRITE
|
|
35
|
+
conversation_recent_limit: int = 10
|
|
36
|
+
conversation_reply_snippet_max_chars: int = CONVERSATION_REPLY_SNIPPET_MAX_CHARS_DEFAULT
|
|
27
37
|
|
|
28
38
|
@model_validator(mode="after")
|
|
29
39
|
def _validate_memory_limits(self) -> Self:
|
|
@@ -43,13 +53,25 @@ class AdvancedSettings(BaseModel):
|
|
|
43
53
|
raise ValueError("conversation_memory_max_bytes must be positive or blank.")
|
|
44
54
|
if self.status_recent_job_limit < 1:
|
|
45
55
|
raise ValueError("status_recent_job_limit must be at least 1.")
|
|
46
|
-
if self.job_timeout_seconds
|
|
47
|
-
raise ValueError("job_timeout_seconds must be positive
|
|
56
|
+
if self.job_timeout_seconds <= 0:
|
|
57
|
+
raise ValueError("job_timeout_seconds must be positive.")
|
|
58
|
+
if self.conversation_recent_limit < 1:
|
|
59
|
+
raise ValueError("conversation_recent_limit must be at least 1.")
|
|
60
|
+
if not (
|
|
61
|
+
CONVERSATION_REPLY_SNIPPET_MAX_CHARS_MIN
|
|
62
|
+
<= self.conversation_reply_snippet_max_chars
|
|
63
|
+
<= CONVERSATION_REPLY_SNIPPET_MAX_CHARS_MAX
|
|
64
|
+
):
|
|
65
|
+
raise ValueError(
|
|
66
|
+
"conversation_reply_snippet_max_chars must be between "
|
|
67
|
+
f"{CONVERSATION_REPLY_SNIPPET_MAX_CHARS_MIN} and "
|
|
68
|
+
f"{CONVERSATION_REPLY_SNIPPET_MAX_CHARS_MAX}.",
|
|
69
|
+
)
|
|
48
70
|
return self
|
|
49
71
|
|
|
50
72
|
|
|
51
|
-
def
|
|
52
|
-
return (
|
|
73
|
+
def advanced_settings_path() -> Path:
|
|
74
|
+
return resolve_state_path("advanced_settings.json")
|
|
53
75
|
|
|
54
76
|
|
|
55
77
|
class FileAdvancedSettingsStore:
|
|
@@ -19,7 +19,6 @@ from app.projects.registry import (
|
|
|
19
19
|
WEBHOOK_TOKEN_HASH_PREFIX_LENGTH,
|
|
20
20
|
ProjectRecord,
|
|
21
21
|
ProjectRegistry,
|
|
22
|
-
mask_bot_token,
|
|
23
22
|
)
|
|
24
23
|
from app.telegram.bot_instances import BotInstanceManager
|
|
25
24
|
from app.telegram.conversation import SQLiteConversationStore
|
|
@@ -50,7 +49,6 @@ _DEFAULT_NEW_PROJECT_WEBHOOK_SECRET = "optional-secret"
|
|
|
50
49
|
class ProjectUpsertBody(BaseModel):
|
|
51
50
|
name: str
|
|
52
51
|
root_path: str
|
|
53
|
-
worktree_base_dir: str
|
|
54
52
|
default_model: ModelName = ModelName.CLAUDE
|
|
55
53
|
enabled: bool = True
|
|
56
54
|
bot_token: str | None = None
|
|
@@ -325,26 +323,21 @@ def create_admin_router(
|
|
|
325
323
|
|
|
326
324
|
@router.get("/api/settings")
|
|
327
325
|
def api_settings(_: LocalhostOnly) -> dict:
|
|
328
|
-
|
|
329
|
-
settings.telegram_bot_token.get_secret_value()
|
|
330
|
-
if settings.telegram_bot_token is not None
|
|
331
|
-
else ""
|
|
332
|
-
)
|
|
326
|
+
adv = advanced_settings_store.get()
|
|
333
327
|
_adminlog.info(
|
|
334
|
-
"settings queried
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
settings.default_model.value,
|
|
328
|
+
"settings queried projects_config=%s job_timeout=%d git_remote=%s",
|
|
329
|
+
registry.config_path,
|
|
330
|
+
adv.job_timeout_seconds,
|
|
331
|
+
adv.git_remote_name,
|
|
339
332
|
)
|
|
340
333
|
return {
|
|
341
|
-
"telegram_bot_token_masked": mask_bot_token(token),
|
|
342
|
-
"telegram_allowed_chat_ids": settings.telegram_allowed_chat_ids,
|
|
343
|
-
"telegram_allowed_user_ids": settings.telegram_allowed_user_ids,
|
|
344
|
-
"telegram_webhook_secret_set": bool(settings.telegram_webhook_secret),
|
|
345
|
-
"default_model_env": settings.default_model.value,
|
|
346
|
-
"job_timeout_seconds_env": settings.job_timeout_seconds,
|
|
347
334
|
"projects_config_path": str(registry.config_path),
|
|
335
|
+
"advanced_settings_path": str(advanced_settings_store.path),
|
|
336
|
+
"job_timeout_seconds": adv.job_timeout_seconds,
|
|
337
|
+
"git_remote_name": adv.git_remote_name,
|
|
338
|
+
"codex_sandbox": adv.codex_sandbox.value,
|
|
339
|
+
"conversation_recent_limit": adv.conversation_recent_limit,
|
|
340
|
+
"keep_worktree_on_success": adv.keep_worktree_on_success,
|
|
348
341
|
"webhook_token_hash_prefix_length": WEBHOOK_TOKEN_HASH_PREFIX_LENGTH,
|
|
349
342
|
"webhook_route_template": "/telegram/webhook/{token_hash_prefix}",
|
|
350
343
|
"webhook_public_url_rule": "<public HTTPS Base URL> + each project's webhook_path",
|
|
@@ -389,7 +382,6 @@ def create_admin_router(
|
|
|
389
382
|
record = ProjectRecord(
|
|
390
383
|
name=body.name,
|
|
391
384
|
root_path=body.root_path,
|
|
392
|
-
worktree_base_dir=body.worktree_base_dir,
|
|
393
385
|
default_model=body.default_model,
|
|
394
386
|
enabled=body.enabled,
|
|
395
387
|
bot_token=SecretStr(body.bot_token.strip()),
|
|
@@ -436,7 +428,6 @@ def create_admin_router(
|
|
|
436
428
|
record = ProjectRecord(
|
|
437
429
|
name=body.name,
|
|
438
430
|
root_path=body.root_path,
|
|
439
|
-
worktree_base_dir=body.worktree_base_dir,
|
|
440
431
|
default_model=body.default_model,
|
|
441
432
|
enabled=body.enabled,
|
|
442
433
|
bot_token=bot_token,
|