televibe 0.1.0__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.
- televibe-0.1.0/.gitignore +6 -0
- televibe-0.1.0/LICENSE +21 -0
- televibe-0.1.0/PKG-INFO +48 -0
- televibe-0.1.0/README.md +24 -0
- televibe-0.1.0/SPEC.md +632 -0
- televibe-0.1.0/pyproject.toml +69 -0
- televibe-0.1.0/src/televibe/__init__.py +23 -0
- televibe-0.1.0/src/televibe/access.py +11 -0
- televibe-0.1.0/src/televibe/account.py +26 -0
- televibe-0.1.0/src/televibe/engine.py +177 -0
- televibe-0.1.0/src/televibe/env.py +69 -0
- televibe-0.1.0/src/televibe/errors.py +5 -0
- televibe-0.1.0/src/televibe/events.py +76 -0
- televibe-0.1.0/src/televibe/lines.py +44 -0
- televibe-0.1.0/src/televibe/markers.py +41 -0
- televibe-0.1.0/src/televibe/procinfo.py +50 -0
- televibe-0.1.0/src/televibe/providers/__init__.py +6 -0
- televibe-0.1.0/src/televibe/providers/base.py +101 -0
- televibe-0.1.0/src/televibe/providers/claude.py +101 -0
- televibe-0.1.0/src/televibe/providers/codex.py +97 -0
- televibe-0.1.0/src/televibe/py.typed +0 -0
- televibe-0.1.0/src/televibe/scheduler.py +76 -0
- televibe-0.1.0/src/televibe/session.py +57 -0
- televibe-0.1.0/src/televibe/telegram/__init__.py +13 -0
- televibe-0.1.0/src/televibe/telegram/chains.py +177 -0
- televibe-0.1.0/src/televibe/telegram/presenter.py +198 -0
- televibe-0.1.0/src/televibe/telegram/render.py +66 -0
- televibe-0.1.0/src/televibe/telegram/store.py +39 -0
- televibe-0.1.0/src/televibe/turn.py +332 -0
- televibe-0.1.0/tests/conftest.py +124 -0
- televibe-0.1.0/tests/fakes/bin/claude +8 -0
- televibe-0.1.0/tests/fakes/bin/codex +8 -0
- televibe-0.1.0/tests/fakes/fakeagent.py +76 -0
- televibe-0.1.0/tests/fixtures/README.md +19 -0
- televibe-0.1.0/tests/fixtures/claude/lost.jsonl +1 -0
- televibe-0.1.0/tests/fixtures/claude/lost.stderr +1 -0
- televibe-0.1.0/tests/fixtures/claude/ok.jsonl +7 -0
- televibe-0.1.0/tests/fixtures/claude/resume.jsonl +7 -0
- televibe-0.1.0/tests/fixtures/codex/lost.jsonl +0 -0
- televibe-0.1.0/tests/fixtures/codex/lost.stderr +1 -0
- televibe-0.1.0/tests/fixtures/codex/ok.jsonl +8 -0
- televibe-0.1.0/tests/fixtures/codex/readonly.jsonl +6 -0
- televibe-0.1.0/tests/fixtures/codex/resume.jsonl +5 -0
- televibe-0.1.0/tests/fixtures/codex/resume_readonly.jsonl +8 -0
- televibe-0.1.0/tests/fixtures/sanitize.py +73 -0
- televibe-0.1.0/tests/replay.py +21 -0
- televibe-0.1.0/tests/test_account_env.py +103 -0
- televibe-0.1.0/tests/test_api.py +11 -0
- televibe-0.1.0/tests/test_cancel.py +163 -0
- televibe-0.1.0/tests/test_claude.py +102 -0
- televibe-0.1.0/tests/test_codex.py +95 -0
- televibe-0.1.0/tests/test_fakes.py +14 -0
- televibe-0.1.0/tests/test_fixtures.py +31 -0
- televibe-0.1.0/tests/test_lines.py +35 -0
- televibe-0.1.0/tests/test_live.py +36 -0
- televibe-0.1.0/tests/test_markers.py +25 -0
- televibe-0.1.0/tests/test_ordering.py +99 -0
- televibe-0.1.0/tests/test_procinfo.py +49 -0
- televibe-0.1.0/tests/test_requirements.py +12 -0
- televibe-0.1.0/tests/test_scheduler.py +71 -0
- televibe-0.1.0/tests/test_scope.py +50 -0
- televibe-0.1.0/tests/test_session.py +108 -0
- televibe-0.1.0/tests/test_state.py +138 -0
- televibe-0.1.0/tests/test_tg_chain_turns.py +234 -0
- televibe-0.1.0/tests/test_tg_chains.py +58 -0
- televibe-0.1.0/tests/test_tg_flow.py +33 -0
- televibe-0.1.0/tests/test_tg_package.py +42 -0
- televibe-0.1.0/tests/test_tg_presenter.py +223 -0
- televibe-0.1.0/tests/test_tg_render.py +64 -0
- televibe-0.1.0/tests/test_turn.py +278 -0
- televibe-0.1.0/tests/tgkit.py +119 -0
televibe-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Maxim Romanyuk
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
televibe-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: televibe
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Run headless coding agents (Claude Code, Codex) one turn at a time, as resumable sessions with a typed event stream.
|
|
5
|
+
Project-URL: Homepage, https://github.com/metheoryt/televibe
|
|
6
|
+
Project-URL: Specification, https://github.com/metheoryt/televibe/blob/main/SPEC.md
|
|
7
|
+
Author-email: Maxim Romanyuk <metheoryt@gmail.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: agents,aiogram,claude-code,codex,headless,telegram
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Framework :: AsyncIO
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Operating System :: MacOS
|
|
15
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Typing :: Typed
|
|
20
|
+
Requires-Python: >=3.12
|
|
21
|
+
Provides-Extra: telegram
|
|
22
|
+
Requires-Dist: aiogram<4,>=3.31; extra == 'telegram'
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# televibe
|
|
26
|
+
|
|
27
|
+
Run headless coding agents (Claude Code, Codex) one turn at a time, as
|
|
28
|
+
resumable sessions with a typed event stream.
|
|
29
|
+
|
|
30
|
+
televibe starts the agent, turns its output into common events
|
|
31
|
+
(`Started`, `Message`, `ToolUse`, `Warning`, then exactly one `Done` or
|
|
32
|
+
`Failed`), and kills what it started on timeout, cancel, or when the caller
|
|
33
|
+
walks away. What to do with the output is the caller's business: televibe never
|
|
34
|
+
sends a message anywhere.
|
|
35
|
+
|
|
36
|
+
The optional Telegram layer does: `pip install 'televibe[telegram]'` adds
|
|
37
|
+
`televibe.telegram`, which shows a turn in a chat (reactions, typing or a live
|
|
38
|
+
draft, the answer) and keeps one session per reply chain. It is a set of parts
|
|
39
|
+
for an aiogram bot, not a framework. See SPEC.md section 12.
|
|
40
|
+
|
|
41
|
+
Install: `pip install televibe`, or `pip install 'televibe[telegram]'` with the
|
|
42
|
+
Telegram layer. Python 3.12+, Linux and macOS.
|
|
43
|
+
|
|
44
|
+
Status: 0.1, alpha. Tests: `uv run pytest`; live tests against real agents:
|
|
45
|
+
see `tests/test_live.py`. MIT licensed.
|
|
46
|
+
|
|
47
|
+
- [SPEC.md](https://github.com/metheoryt/televibe/blob/main/SPEC.md) is the specification. It is the law: numbered
|
|
48
|
+
requirements, each claimed by a test.
|
televibe-0.1.0/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# televibe
|
|
2
|
+
|
|
3
|
+
Run headless coding agents (Claude Code, Codex) one turn at a time, as
|
|
4
|
+
resumable sessions with a typed event stream.
|
|
5
|
+
|
|
6
|
+
televibe starts the agent, turns its output into common events
|
|
7
|
+
(`Started`, `Message`, `ToolUse`, `Warning`, then exactly one `Done` or
|
|
8
|
+
`Failed`), and kills what it started on timeout, cancel, or when the caller
|
|
9
|
+
walks away. What to do with the output is the caller's business: televibe never
|
|
10
|
+
sends a message anywhere.
|
|
11
|
+
|
|
12
|
+
The optional Telegram layer does: `pip install 'televibe[telegram]'` adds
|
|
13
|
+
`televibe.telegram`, which shows a turn in a chat (reactions, typing or a live
|
|
14
|
+
draft, the answer) and keeps one session per reply chain. It is a set of parts
|
|
15
|
+
for an aiogram bot, not a framework. See SPEC.md section 12.
|
|
16
|
+
|
|
17
|
+
Install: `pip install televibe`, or `pip install 'televibe[telegram]'` with the
|
|
18
|
+
Telegram layer. Python 3.12+, Linux and macOS.
|
|
19
|
+
|
|
20
|
+
Status: 0.1, alpha. Tests: `uv run pytest`; live tests against real agents:
|
|
21
|
+
see `tests/test_live.py`. MIT licensed.
|
|
22
|
+
|
|
23
|
+
- [SPEC.md](https://github.com/metheoryt/televibe/blob/main/SPEC.md) is the specification. It is the law: numbered
|
|
24
|
+
requirements, each claimed by a test.
|