vibee-live 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.
- vibee_live-0.1.0/.gitignore +18 -0
- vibee_live-0.1.0/PKG-INFO +44 -0
- vibee_live-0.1.0/PYPI.md +28 -0
- vibee_live-0.1.0/pyproject.toml +67 -0
- vibee_live-0.1.0/src/vibee_live/__init__.py +97 -0
- vibee_live-0.1.0/src/vibee_live/__main__.py +6 -0
- vibee_live-0.1.0/src/vibee_live/adapters/__init__.py +1 -0
- vibee_live-0.1.0/src/vibee_live/adapters/acp.py +621 -0
- vibee_live-0.1.0/src/vibee_live/adapters/desktop.py +91 -0
- vibee_live-0.1.0/src/vibee_live/adapters/local.py +81 -0
- vibee_live-0.1.0/src/vibee_live/adapters/page.py +713 -0
- vibee_live-0.1.0/src/vibee_live/adapters/relay.py +148 -0
- vibee_live-0.1.0/src/vibee_live/adapters/relay_server.py +204 -0
- vibee_live-0.1.0/src/vibee_live/adapters/terminal.py +207 -0
- vibee_live-0.1.0/src/vibee_live/app/__init__.py +1 -0
- vibee_live-0.1.0/src/vibee_live/app/command.py +301 -0
- vibee_live-0.1.0/src/vibee_live/app/companion.py +761 -0
- vibee_live-0.1.0/src/vibee_live/app/tool.py +239 -0
- vibee_live-0.1.0/src/vibee_live/delivery.py +352 -0
- vibee_live-0.1.0/src/vibee_live/events.py +97 -0
- vibee_live-0.1.0/src/vibee_live/exit_codes.py +6 -0
- vibee_live-0.1.0/src/vibee_live/loop.py +69 -0
- vibee_live-0.1.0/src/vibee_live/ports.py +210 -0
- vibee_live-0.1.0/src/vibee_live/py.typed +0 -0
- vibee_live-0.1.0/src/vibee_live/testing/__init__.py +184 -0
- vibee_live-0.1.0/src/vibee_live/testing/fake_agent.py +216 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: vibee-live
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Brings a person's own agent into a product: pushed events become turns in their agent's session.
|
|
5
|
+
Author: Flieber
|
|
6
|
+
License: Proprietary
|
|
7
|
+
Classifier: Development Status :: 4 - Beta
|
|
8
|
+
Classifier: License :: Other/Proprietary License
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Requires-Python: >=3.12
|
|
12
|
+
Requires-Dist: agent-client-protocol<2,>=1.0
|
|
13
|
+
Provides-Extra: page
|
|
14
|
+
Requires-Dist: websockets>=13; extra == 'page'
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
# vibee-live
|
|
18
|
+
|
|
19
|
+
`vibee-live` runs a person's own agent (Claude Code, Codex, or any agent that speaks the
|
|
20
|
+
[Agent Client Protocol](https://agentclientprotocol.com)) inside a product: it keeps the agent's session
|
|
21
|
+
on the person's computer, lets a page of the product pair with it, and turns events the product pushes
|
|
22
|
+
into turns in that session. The agent runs on the person's own sign-in and model.
|
|
23
|
+
|
|
24
|
+
It is a component of [Flieber](https://flieber.com). Most people do not install it by itself: it comes
|
|
25
|
+
with the Flieber command line.
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
pip install "flieber[live]"
|
|
29
|
+
flieber live
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
By itself it is a library and a small command, `vibee-live`, for products that bring their own events
|
|
33
|
+
and pages:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
pip install "vibee-live[page]"
|
|
37
|
+
vibee-live --help
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Requires Python 3.12 or later.
|
|
41
|
+
|
|
42
|
+
## Licence
|
|
43
|
+
|
|
44
|
+
Proprietary. Copyright Flieber, Inc. All rights reserved.
|
vibee_live-0.1.0/PYPI.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# vibee-live
|
|
2
|
+
|
|
3
|
+
`vibee-live` runs a person's own agent (Claude Code, Codex, or any agent that speaks the
|
|
4
|
+
[Agent Client Protocol](https://agentclientprotocol.com)) inside a product: it keeps the agent's session
|
|
5
|
+
on the person's computer, lets a page of the product pair with it, and turns events the product pushes
|
|
6
|
+
into turns in that session. The agent runs on the person's own sign-in and model.
|
|
7
|
+
|
|
8
|
+
It is a component of [Flieber](https://flieber.com). Most people do not install it by itself: it comes
|
|
9
|
+
with the Flieber command line.
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
pip install "flieber[live]"
|
|
13
|
+
flieber live
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
By itself it is a library and a small command, `vibee-live`, for products that bring their own events
|
|
17
|
+
and pages:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
pip install "vibee-live[page]"
|
|
21
|
+
vibee-live --help
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Requires Python 3.12 or later.
|
|
25
|
+
|
|
26
|
+
## Licence
|
|
27
|
+
|
|
28
|
+
Proprietary. Copyright Flieber, Inc. All rights reserved.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "vibee-live"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Brings a person's own agent into a product: pushed events become turns in their agent's session."
|
|
5
|
+
# PyPI's project page is PYPI.md, written for whoever finds the package there; README.md is the engineers' page
|
|
6
|
+
# in this repository.
|
|
7
|
+
readme = "PYPI.md"
|
|
8
|
+
requires-python = ">=3.12"
|
|
9
|
+
license = { text = "Proprietary" }
|
|
10
|
+
authors = [{ name = "Flieber" }]
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Development Status :: 4 - Beta",
|
|
13
|
+
"Programming Language :: Python :: 3",
|
|
14
|
+
"Programming Language :: Python :: 3.12",
|
|
15
|
+
"License :: Other/Proprietary License",
|
|
16
|
+
]
|
|
17
|
+
dependencies = ["agent-client-protocol>=1.0,<2"]
|
|
18
|
+
|
|
19
|
+
[project.optional-dependencies]
|
|
20
|
+
# The page link (the WebSocket a browser tab on the same machine connects to): ADR-0003.
|
|
21
|
+
page = ["websockets>=13"]
|
|
22
|
+
|
|
23
|
+
[project.scripts]
|
|
24
|
+
# The companion (needs the extra `page` to pair a page).
|
|
25
|
+
vibee-live = "vibee_live.app.command:main"
|
|
26
|
+
|
|
27
|
+
[dependency-groups]
|
|
28
|
+
# playwright drives the ask box's browser tests (tests/web) in the machine's own Chrome; no browser is downloaded
|
|
29
|
+
# (the pipeline downloads Playwright's Chromium instead: VIBEE_LIVE_BROWSER=chromium).
|
|
30
|
+
# trustme makes the certificates the page link's TLS tests need (ADR-0012): a test authority, never a real one.
|
|
31
|
+
dev = [
|
|
32
|
+
"pytest>=8",
|
|
33
|
+
"ruff>=0.8",
|
|
34
|
+
"websockets>=13",
|
|
35
|
+
"playwright>=1.65.2",
|
|
36
|
+
"trustme>=1.2",
|
|
37
|
+
{ include-group = "release" },
|
|
38
|
+
]
|
|
39
|
+
# The publish job's tools, exact. CI installs them from requirements-release.txt (exported from uv.lock with
|
|
40
|
+
# hashes: docs/release.md).
|
|
41
|
+
release = ["twine==7.0.0"]
|
|
42
|
+
|
|
43
|
+
[build-system]
|
|
44
|
+
requires = ["hatchling"]
|
|
45
|
+
build-backend = "hatchling.build"
|
|
46
|
+
|
|
47
|
+
[tool.hatch.build.targets.wheel]
|
|
48
|
+
packages = ["src/vibee_live"]
|
|
49
|
+
|
|
50
|
+
# What is published is public. The sdist holds the package and PyPI's page, and nothing else of this
|
|
51
|
+
# repository (scripts/check_release.py refuses a build that holds more).
|
|
52
|
+
[tool.hatch.build.targets.sdist]
|
|
53
|
+
include = ["src/vibee_live", "PYPI.md"]
|
|
54
|
+
|
|
55
|
+
[tool.pytest.ini_options]
|
|
56
|
+
testpaths = ["tests"]
|
|
57
|
+
|
|
58
|
+
[tool.ruff]
|
|
59
|
+
line-length = 110
|
|
60
|
+
target-version = "py312"
|
|
61
|
+
|
|
62
|
+
[tool.ruff.lint]
|
|
63
|
+
select = ["E", "F", "I", "UP", "B", "SIM"]
|
|
64
|
+
|
|
65
|
+
[tool.ruff.lint.flake8-bugbear]
|
|
66
|
+
# A frozen dataclass of defaults: safe as a default argument.
|
|
67
|
+
extend-immutable-calls = ["vibee_live.Policy", "vibee_live.delivery.Policy"]
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"""vibee-live: a person's own agent, live inside a product. Pushed events become turns in its session.
|
|
2
|
+
|
|
3
|
+
Everything a product's own command needs is here. The core's names (events, ports, the delivery path, the
|
|
4
|
+
exit codes) are imported with the package and need the standard library only. The companion's (`Config`,
|
|
5
|
+
`run`, `main_run`, `AGENTS`, `agent_command`, `folder`, `port`) live in the composition root,
|
|
6
|
+
`vibee_live.app`, which needs the protocol library: they are loaded when first asked for, so that importing
|
|
7
|
+
this package imports no adapter. The test doubles are in `vibee_live.testing`.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from importlib import import_module
|
|
11
|
+
from typing import TYPE_CHECKING, Any
|
|
12
|
+
|
|
13
|
+
from vibee_live.delivery import Live, Outcome, Policy
|
|
14
|
+
from vibee_live.events import Event, MalformedEvent, Mark, UnreadableCursor, Vocabulary, plain, read_event
|
|
15
|
+
from vibee_live.exit_codes import EXIT_FAILED, EXIT_IN_USE, EXIT_OK, EXIT_SETUP
|
|
16
|
+
from vibee_live.loop import SourceAvailable
|
|
17
|
+
from vibee_live.ports import (
|
|
18
|
+
AgentDriver,
|
|
19
|
+
AgentSession,
|
|
20
|
+
AgentUnavailable,
|
|
21
|
+
ApprovalRequest,
|
|
22
|
+
ApprovalSurface,
|
|
23
|
+
Clock,
|
|
24
|
+
EventSource,
|
|
25
|
+
Notice,
|
|
26
|
+
Notifier,
|
|
27
|
+
Option,
|
|
28
|
+
Saved,
|
|
29
|
+
SessionSpec,
|
|
30
|
+
SourceUnavailable,
|
|
31
|
+
State,
|
|
32
|
+
ToolServer,
|
|
33
|
+
TurnRefused,
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
if TYPE_CHECKING:
|
|
37
|
+
from vibee_live.app.command import AGENTS, agent_command, folder, main_run, port
|
|
38
|
+
from vibee_live.app.companion import Config, run
|
|
39
|
+
|
|
40
|
+
# The composition root's names, and the module each is loaded from when first asked for.
|
|
41
|
+
_LATER = {
|
|
42
|
+
"AGENTS": "vibee_live.app.command",
|
|
43
|
+
"Config": "vibee_live.app.companion",
|
|
44
|
+
"run": "vibee_live.app.companion",
|
|
45
|
+
"agent_command": "vibee_live.app.command",
|
|
46
|
+
"folder": "vibee_live.app.command",
|
|
47
|
+
"main_run": "vibee_live.app.command",
|
|
48
|
+
"port": "vibee_live.app.command",
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def __getattr__(name: str) -> Any:
|
|
53
|
+
if name not in _LATER:
|
|
54
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
55
|
+
return getattr(import_module(_LATER[name]), name)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
__all__ = [
|
|
59
|
+
"AGENTS",
|
|
60
|
+
"AgentDriver",
|
|
61
|
+
"AgentUnavailable",
|
|
62
|
+
"AgentSession",
|
|
63
|
+
"ApprovalRequest",
|
|
64
|
+
"ApprovalSurface",
|
|
65
|
+
"Clock",
|
|
66
|
+
"Config",
|
|
67
|
+
"EXIT_FAILED",
|
|
68
|
+
"EXIT_IN_USE",
|
|
69
|
+
"EXIT_OK",
|
|
70
|
+
"EXIT_SETUP",
|
|
71
|
+
"Event",
|
|
72
|
+
"EventSource",
|
|
73
|
+
"Live",
|
|
74
|
+
"MalformedEvent",
|
|
75
|
+
"Mark",
|
|
76
|
+
"Notice",
|
|
77
|
+
"Notifier",
|
|
78
|
+
"Option",
|
|
79
|
+
"Outcome",
|
|
80
|
+
"Policy",
|
|
81
|
+
"Saved",
|
|
82
|
+
"SessionSpec",
|
|
83
|
+
"SourceAvailable",
|
|
84
|
+
"SourceUnavailable",
|
|
85
|
+
"State",
|
|
86
|
+
"ToolServer",
|
|
87
|
+
"TurnRefused",
|
|
88
|
+
"UnreadableCursor",
|
|
89
|
+
"Vocabulary",
|
|
90
|
+
"agent_command",
|
|
91
|
+
"folder",
|
|
92
|
+
"main_run",
|
|
93
|
+
"plain",
|
|
94
|
+
"port",
|
|
95
|
+
"read_event",
|
|
96
|
+
"run",
|
|
97
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Adapters of the core's ports that are not specific to a product."""
|