vis-agent 0.5.22.dev9328__py3-none-any.whl → 0.5.22.dev9332__py3-none-any.whl
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.
- blockether/vis/_data/schema/keymap.json +7 -0
- blockether/vis/_outside.py +1 -1
- blockether/vis/engine/__init__.py +4 -5
- blockether/vis/engine/_agent.py +25 -30
- blockether/vis/engine/_client.py +52 -57
- blockether/vis/engine/_local.py +29 -2
- blockether/vis/engine/_service.py +136 -185
- blockether/vis/engine/release-tag +1 -1
- {vis_agent-0.5.22.dev9328.dist-info → vis_agent-0.5.22.dev9332.dist-info}/METADATA +2 -2
- {vis_agent-0.5.22.dev9328.dist-info → vis_agent-0.5.22.dev9332.dist-info}/RECORD +12 -12
- {vis_agent-0.5.22.dev9328.dist-info → vis_agent-0.5.22.dev9332.dist-info}/WHEEL +0 -0
- {vis_agent-0.5.22.dev9328.dist-info → vis_agent-0.5.22.dev9332.dist-info}/licenses/LICENSE +0 -0
|
@@ -90,6 +90,13 @@
|
|
|
90
90
|
"x-vis-key": "s",
|
|
91
91
|
"x-vis-group": "session"
|
|
92
92
|
},
|
|
93
|
+
{
|
|
94
|
+
"const": "rename-session",
|
|
95
|
+
"title": "rename session",
|
|
96
|
+
"description": "Change the title of this session",
|
|
97
|
+
"x-vis-key": "r",
|
|
98
|
+
"x-vis-group": "session"
|
|
99
|
+
},
|
|
93
100
|
{
|
|
94
101
|
"const": "delete-session",
|
|
95
102
|
"title": "delete session",
|
blockether/vis/_outside.py
CHANGED
|
@@ -74,7 +74,7 @@ def request(frame):
|
|
|
74
74
|
"""Refuse a host session request outside a Vis process."""
|
|
75
75
|
raise Refused(
|
|
76
76
|
"vis.sessions, vis.session and vis.council need a Vis host. Outside an "
|
|
77
|
-
"extension, use
|
|
77
|
+
"extension, use GatewayClient or StdioEngineClient from blockether.vis.engine."
|
|
78
78
|
)
|
|
79
79
|
|
|
80
80
|
|
|
@@ -24,7 +24,6 @@ from ._client import (
|
|
|
24
24
|
TransportError,
|
|
25
25
|
Turn,
|
|
26
26
|
VisTimeout,
|
|
27
|
-
connect,
|
|
28
27
|
)
|
|
29
28
|
from ._council import (
|
|
30
29
|
Council,
|
|
@@ -37,8 +36,9 @@ from ._council import (
|
|
|
37
36
|
)
|
|
38
37
|
from ._groups import SessionGroup
|
|
39
38
|
from ._install import InstallError, ensure_installed, install
|
|
39
|
+
from ._local import StdioEngineClient
|
|
40
40
|
from ._models import Model, SessionModel
|
|
41
|
-
from ._service import
|
|
41
|
+
from ._service import HttpLocalEngineClient
|
|
42
42
|
from ._sounds import SoundPreset, Sounds, SoundSettings
|
|
43
43
|
from ._speech import Speech, SpeechAudio, Transcript, Voice
|
|
44
44
|
|
|
@@ -59,6 +59,7 @@ __all__ = [
|
|
|
59
59
|
"ExecutionLayer",
|
|
60
60
|
"GatewayClient",
|
|
61
61
|
"GatewayError",
|
|
62
|
+
"HttpLocalEngineClient",
|
|
62
63
|
"InstallError",
|
|
63
64
|
"JobEvent",
|
|
64
65
|
"JobEvents",
|
|
@@ -76,16 +77,14 @@ __all__ = [
|
|
|
76
77
|
"SoundSettings",
|
|
77
78
|
"Speech",
|
|
78
79
|
"SpeechAudio",
|
|
80
|
+
"StdioEngineClient",
|
|
79
81
|
"StructuredOutputError",
|
|
80
82
|
"Transcript",
|
|
81
83
|
"TransportError",
|
|
82
84
|
"Turn",
|
|
83
85
|
"VisTimeout",
|
|
84
86
|
"Voice",
|
|
85
|
-
"connect",
|
|
86
87
|
"ensure_installed",
|
|
87
88
|
"final_answer",
|
|
88
89
|
"install",
|
|
89
|
-
"start",
|
|
90
|
-
"stop_shared",
|
|
91
90
|
]
|
blockether/vis/engine/_agent.py
CHANGED
|
@@ -26,7 +26,7 @@ from ._client import (
|
|
|
26
26
|
Turn,
|
|
27
27
|
_duration,
|
|
28
28
|
)
|
|
29
|
-
from ._local import
|
|
29
|
+
from ._local import StdioEngineClient
|
|
30
30
|
|
|
31
31
|
ResponseModel = TypeVar("ResponseModel", bound=BaseModel)
|
|
32
32
|
|
|
@@ -443,10 +443,11 @@ class Agent:
|
|
|
443
443
|
Args:
|
|
444
444
|
project: Project directory. Local execution resolves an existing directory
|
|
445
445
|
immediately. Gateway execution requires an absolute path on the gateway.
|
|
446
|
-
|
|
447
|
-
`blockether.vis.engine.
|
|
448
|
-
|
|
449
|
-
and
|
|
446
|
+
client: A `blockether.vis.engine.StdioEngineClient`,
|
|
447
|
+
`blockether.vis.engine.HttpLocalEngineClient` or
|
|
448
|
+
`blockether.vis.engine.GatewayClient` to borrow. When omitted, the agent
|
|
449
|
+
creates and owns a `StdioEngineClient`. Configure executable, credentials
|
|
450
|
+
and transport timeouts on an explicit client.
|
|
450
451
|
extensions: Iterable of `blockether.vis.extension.Extension` declarations.
|
|
451
452
|
Their Python callables stay in your application and execute on the
|
|
452
453
|
calling thread while you read, wait or iterate events.
|
|
@@ -461,11 +462,11 @@ class Agent:
|
|
|
461
462
|
Construction does not start a process or connect. Session access, context
|
|
462
463
|
entry, `send` or `run` starts the conversation. Closing the default agent stops
|
|
463
464
|
its private process and discards its temporary session database, not file edits.
|
|
464
|
-
An explicitly supplied
|
|
465
|
+
An explicitly supplied client is borrowed: you must close it yourself, after
|
|
465
466
|
all agents using it have finished. An agent cannot be reused after `close`.
|
|
466
467
|
|
|
467
468
|
Raises:
|
|
468
|
-
TypeError: The supplied
|
|
469
|
+
TypeError: The supplied client does not implement
|
|
469
470
|
`blockether.vis.engine.ExecutionLayer`, an extension is unsupported, or
|
|
470
471
|
`tools` is not an iterable of strings.
|
|
471
472
|
ValueError: A project or extension declaration is invalid, or only one of
|
|
@@ -478,7 +479,7 @@ class Agent:
|
|
|
478
479
|
self,
|
|
479
480
|
project=".",
|
|
480
481
|
*,
|
|
481
|
-
|
|
482
|
+
client: ExecutionLayer | None = None,
|
|
482
483
|
extensions=(),
|
|
483
484
|
tools=None,
|
|
484
485
|
provider: str | None = None,
|
|
@@ -495,16 +496,12 @@ class Agent:
|
|
|
495
496
|
tools = list(tools)
|
|
496
497
|
if not all(isinstance(name, str) for name in tools):
|
|
497
498
|
raise TypeError("tools must be an iterable of tool names")
|
|
498
|
-
if
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
self._owns_execution_layer = execution_layer is None
|
|
503
|
-
self.execution_layer = (
|
|
504
|
-
PrivateEngine(root=project) if execution_layer is None else execution_layer
|
|
505
|
-
)
|
|
499
|
+
if client is not None and not isinstance(client, ExecutionLayer):
|
|
500
|
+
raise TypeError("client must be an ExecutionLayer")
|
|
501
|
+
self._owns_client = client is None
|
|
502
|
+
self.client = StdioEngineClient(root=project) if client is None else client
|
|
506
503
|
self._session_options: dict[str, Any] = dict(
|
|
507
|
-
self.
|
|
504
|
+
self.client.session_options(project)
|
|
508
505
|
)
|
|
509
506
|
if tools is not None:
|
|
510
507
|
self._session_options["tools"] = tools
|
|
@@ -521,9 +518,9 @@ class Agent:
|
|
|
521
518
|
raise TransportError("agent is closed")
|
|
522
519
|
if self._session is None:
|
|
523
520
|
try:
|
|
524
|
-
self.
|
|
521
|
+
self.client.connect()
|
|
525
522
|
options: dict[str, Any] = self._session_options
|
|
526
|
-
self._session = self.
|
|
523
|
+
self._session = self.client.create_session(**options)
|
|
527
524
|
self._mount_extensions(self._session, self._extensions)
|
|
528
525
|
except BaseException:
|
|
529
526
|
try:
|
|
@@ -535,11 +532,11 @@ class Agent:
|
|
|
535
532
|
|
|
536
533
|
def _mount_extensions(self, session: Session, extensions):
|
|
537
534
|
if extensions.manifest:
|
|
538
|
-
self.
|
|
539
|
-
self.
|
|
535
|
+
self.client._ensure_client_lease()
|
|
536
|
+
self.client.put_session_client_extensions(
|
|
540
537
|
session.id, body={"extensions": extensions.manifest}
|
|
541
538
|
)
|
|
542
|
-
self.
|
|
539
|
+
self.client._client_extensions[session.id] = extensions
|
|
543
540
|
|
|
544
541
|
def _replace_extensions(self, candidate):
|
|
545
542
|
if self._closed:
|
|
@@ -682,19 +679,17 @@ class Agent:
|
|
|
682
679
|
self._closed = True
|
|
683
680
|
try:
|
|
684
681
|
if self._session is not None:
|
|
685
|
-
for stream in tuple(self.
|
|
682
|
+
for stream in tuple(self.client._streams):
|
|
686
683
|
if getattr(stream, "session", None) == self._session:
|
|
687
684
|
stream.close()
|
|
688
|
-
if self._extensions.manifest and not self.
|
|
689
|
-
self.
|
|
690
|
-
self._session.id
|
|
691
|
-
)
|
|
685
|
+
if self._extensions.manifest and not self.client._closed:
|
|
686
|
+
self.client.delete_session_client_extensions(self._session.id)
|
|
692
687
|
finally:
|
|
693
688
|
if self._session is not None:
|
|
694
|
-
self.
|
|
689
|
+
self.client._client_extensions.pop(self._session.id, None)
|
|
695
690
|
self._extensions.clear()
|
|
696
|
-
if self.
|
|
697
|
-
self.
|
|
691
|
+
if self._owns_client:
|
|
692
|
+
self.client.close()
|
|
698
693
|
|
|
699
694
|
def __enter__(self):
|
|
700
695
|
_ = self.session
|
blockether/vis/engine/_client.py
CHANGED
|
@@ -232,6 +232,34 @@ class _Inflated:
|
|
|
232
232
|
raise OSError("gzip answer cut short") from None
|
|
233
233
|
|
|
234
234
|
|
|
235
|
+
class _InflatedLines:
|
|
236
|
+
"""The lines of one gzip event stream, each given when the gateway flushes it."""
|
|
237
|
+
|
|
238
|
+
def __init__(self, raw):
|
|
239
|
+
self._raw = raw
|
|
240
|
+
self._inflate = zlib.decompressobj(31)
|
|
241
|
+
self._plain = bytearray()
|
|
242
|
+
|
|
243
|
+
def readline(self, limit: int) -> bytes:
|
|
244
|
+
while True:
|
|
245
|
+
end = self._plain.find(b"\n", 0, limit)
|
|
246
|
+
if end >= 0 or len(self._plain) >= limit:
|
|
247
|
+
size = end + 1 if end >= 0 else limit
|
|
248
|
+
line = bytes(self._plain[:size])
|
|
249
|
+
del self._plain[:size]
|
|
250
|
+
return line
|
|
251
|
+
# read1 returns the bytes that are there; it does not wait for more.
|
|
252
|
+
packed = self._inflate.unconsumed_tail or self._raw.read1(8192)
|
|
253
|
+
if not packed:
|
|
254
|
+
line = bytes(self._plain)
|
|
255
|
+
self._plain.clear()
|
|
256
|
+
return line
|
|
257
|
+
try:
|
|
258
|
+
self._plain += self._inflate.decompress(packed, limit)
|
|
259
|
+
except zlib.error:
|
|
260
|
+
raise OSError("gzip event stream is damaged") from None
|
|
261
|
+
|
|
262
|
+
|
|
235
263
|
def _duration(value: float) -> float:
|
|
236
264
|
if not math.isfinite(value) or value <= 0:
|
|
237
265
|
raise ValueError("timeout must be positive and finite")
|
|
@@ -408,8 +436,9 @@ class Event:
|
|
|
408
436
|
class ExecutionLayer(ABC):
|
|
409
437
|
"""Shared session API for local processes and explicit gateway connections.
|
|
410
438
|
|
|
411
|
-
Applications normally
|
|
412
|
-
`blockether.vis.engine.
|
|
439
|
+
Applications normally choose `blockether.vis.engine.StdioEngineClient`,
|
|
440
|
+
`blockether.vis.engine.HttpLocalEngineClient` or
|
|
441
|
+
`blockether.vis.engine.GatewayClient`, then use `create_session` to start a
|
|
413
442
|
conversation or `session` to attach to an existing session ID. `Agent` wraps
|
|
414
443
|
this API when you only need one conversation.
|
|
415
444
|
|
|
@@ -461,6 +490,10 @@ class ExecutionLayer(ABC):
|
|
|
461
490
|
"""Run one exchange whose answer the caller reads whole, not as a stream."""
|
|
462
491
|
return self._open(method, route, **options)
|
|
463
492
|
|
|
493
|
+
def _open_events(self, route, **options) -> Any:
|
|
494
|
+
"""Open one event stream. The caller inflates a gzip answer line by line."""
|
|
495
|
+
return self._open("GET", route, **options)
|
|
496
|
+
|
|
464
497
|
def _ensure_client_lease(self, *, pid: int | None = None) -> str:
|
|
465
498
|
if self._closed:
|
|
466
499
|
raise TransportError("client is closed")
|
|
@@ -3622,7 +3655,6 @@ class _UploadStream:
|
|
|
3622
3655
|
class GatewayClient(ExecutionLayer):
|
|
3623
3656
|
"""Use an existing Vis gateway through an explicit HTTP(S) origin.
|
|
3624
3657
|
|
|
3625
|
-
`blockether.vis.engine.connect` returns a connected instance of this class.
|
|
3626
3658
|
Choose this layer when sessions must outlive your Python process, or when
|
|
3627
3659
|
the engine runs on another machine. It never starts or discovers a gateway,
|
|
3628
3660
|
and it never reads locally saved credentials. Get an authorized gateway URL
|
|
@@ -3641,12 +3673,12 @@ class GatewayClient(ExecutionLayer):
|
|
|
3641
3673
|
|
|
3642
3674
|
```python
|
|
3643
3675
|
import os
|
|
3644
|
-
from blockether.vis.engine import Agent,
|
|
3676
|
+
from blockether.vis.engine import Agent, GatewayClient
|
|
3645
3677
|
|
|
3646
|
-
with
|
|
3678
|
+
with GatewayClient(
|
|
3647
3679
|
"https://gateway.example.com", token=os.environ["VIS_GATEWAY_TOKEN"]
|
|
3648
3680
|
) as client:
|
|
3649
|
-
with Agent(project="/workspace/project",
|
|
3681
|
+
with Agent(project="/workspace/project", client=client) as agent:
|
|
3650
3682
|
result = agent.run("Summarize this project without changing files.")
|
|
3651
3683
|
print(result["status"])
|
|
3652
3684
|
```
|
|
@@ -3703,7 +3735,7 @@ class GatewayClient(ExecutionLayer):
|
|
|
3703
3735
|
timeout=None,
|
|
3704
3736
|
upload_sha256=None,
|
|
3705
3737
|
upload_length=None,
|
|
3706
|
-
|
|
3738
|
+
is_inflated=False,
|
|
3707
3739
|
):
|
|
3708
3740
|
if self._closed:
|
|
3709
3741
|
raise TransportError("client is closed")
|
|
@@ -3728,8 +3760,9 @@ class GatewayClient(ExecutionLayer):
|
|
|
3728
3760
|
if self._is_remote and self._inflates and len(content) >= _GZIP_MIN_BYTES:
|
|
3729
3761
|
content = gzip.compress(content, 6, mtime=0)
|
|
3730
3762
|
headers["Content-Encoding"] = "gzip"
|
|
3731
|
-
#
|
|
3732
|
-
|
|
3763
|
+
# Only a caller that inflates the answer asks for gzip: a whole answer, or
|
|
3764
|
+
# an event stream, where the gateway flushes each event when it writes it.
|
|
3765
|
+
if is_inflated and self._is_remote:
|
|
3733
3766
|
headers["Accept-Encoding"] = "gzip"
|
|
3734
3767
|
if upload_sha256 is not None:
|
|
3735
3768
|
headers["Content-Type"] = "application/zip"
|
|
@@ -3764,11 +3797,14 @@ class GatewayClient(ExecutionLayer):
|
|
|
3764
3797
|
return raw
|
|
3765
3798
|
|
|
3766
3799
|
def _open_whole(self, method, route, **options):
|
|
3767
|
-
raw = self._open(method, route,
|
|
3800
|
+
raw = self._open(method, route, is_inflated=True, **options)
|
|
3768
3801
|
if raw.headers.get("Content-Encoding") == "gzip":
|
|
3769
3802
|
return _Inflated(raw)
|
|
3770
3803
|
return raw
|
|
3771
3804
|
|
|
3805
|
+
def _open_events(self, route, **options):
|
|
3806
|
+
return self._open("GET", route, is_inflated=True, **options)
|
|
3807
|
+
|
|
3772
3808
|
def _note_codings(self, answer):
|
|
3773
3809
|
"""Record that an answer says the gateway inflates gzip request bodies."""
|
|
3774
3810
|
if "gzip" in (answer.headers.get("Accept-Encoding") or "").lower():
|
|
@@ -3923,50 +3959,6 @@ class GatewayClient(ExecutionLayer):
|
|
|
3923
3959
|
return {"root": str(path), "channel": "app"}
|
|
3924
3960
|
|
|
3925
3961
|
|
|
3926
|
-
def connect(
|
|
3927
|
-
url: str, *, token: str | None = None, timeout: float = 30
|
|
3928
|
-
) -> GatewayClient:
|
|
3929
|
-
"""Connect to a Vis gateway that runs separately, and return its client.
|
|
3930
|
-
|
|
3931
|
-
Use this when sessions must outlive your Python program, or when the engine
|
|
3932
|
-
runs on another machine. To start an engine on this computer, call
|
|
3933
|
-
`blockether.vis.engine.start`. This function never starts or discovers a
|
|
3934
|
-
gateway, and it never reads locally saved credentials.
|
|
3935
|
-
|
|
3936
|
-
```python
|
|
3937
|
-
import os
|
|
3938
|
-
from blockether.vis.engine import Agent, connect
|
|
3939
|
-
|
|
3940
|
-
with connect(
|
|
3941
|
-
"https://gateway.example.com", token=os.environ["VIS_GATEWAY_TOKEN"]
|
|
3942
|
-
) as client:
|
|
3943
|
-
with Agent(project="/workspace/project", execution_layer=client) as agent:
|
|
3944
|
-
print(agent.run("Summarize this project without changing files.")["status"])
|
|
3945
|
-
```
|
|
3946
|
-
|
|
3947
|
-
Args:
|
|
3948
|
-
url: HTTP(S) origin such as `https://gateway.example.com`, without a
|
|
3949
|
-
path, query, fragment or embedded credentials.
|
|
3950
|
-
token: Optional bearer token supplied by your application.
|
|
3951
|
-
timeout: Positive finite transport timeout in seconds. Defaults to 30.
|
|
3952
|
-
|
|
3953
|
-
The call checks protocol compatibility and takes a client lease. Close the
|
|
3954
|
-
client, or use it as a context manager. Closing releases the lease and the
|
|
3955
|
-
streams of this client, not the gateway or its stored sessions.
|
|
3956
|
-
|
|
3957
|
-
Raises:
|
|
3958
|
-
ValueError: `url` is not a plain HTTP(S) origin.
|
|
3959
|
-
GatewayError: The gateway refused the connection, for example the token.
|
|
3960
|
-
TransportError: The gateway cannot be reached or uses another protocol.
|
|
3961
|
-
"""
|
|
3962
|
-
client = GatewayClient(url, token=token, timeout=timeout)
|
|
3963
|
-
try:
|
|
3964
|
-
return client.connect()
|
|
3965
|
-
except BaseException:
|
|
3966
|
-
client.close()
|
|
3967
|
-
raise
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
3962
|
@dataclass(frozen=True, slots=True)
|
|
3971
3963
|
class Session:
|
|
3972
3964
|
"""A conversation handle bound to one execution layer and session ID.
|
|
@@ -4854,8 +4846,8 @@ class _EventStream(Generic[_T]):
|
|
|
4854
4846
|
return
|
|
4855
4847
|
try:
|
|
4856
4848
|
route, query = self._endpoint()
|
|
4857
|
-
with self.client.
|
|
4858
|
-
|
|
4849
|
+
with self.client._open_events(
|
|
4850
|
+
route, query=query, timeout=self._read_timeout()
|
|
4859
4851
|
) as raw:
|
|
4860
4852
|
if not self._attach(raw):
|
|
4861
4853
|
return
|
|
@@ -4863,7 +4855,10 @@ class _EventStream(Generic[_T]):
|
|
|
4863
4855
|
if raw.headers.get_content_type() != "text/event-stream":
|
|
4864
4856
|
raise ProtocolError("expected event stream")
|
|
4865
4857
|
data, size, event_name = [], 0, None
|
|
4866
|
-
|
|
4858
|
+
lines = raw
|
|
4859
|
+
if raw.headers.get("Content-Encoding") == "gzip":
|
|
4860
|
+
lines = _InflatedLines(raw)
|
|
4861
|
+
while line := lines.readline(1048577):
|
|
4867
4862
|
if self._should_stop():
|
|
4868
4863
|
return
|
|
4869
4864
|
if self._limit() is not None:
|
blockether/vis/engine/_local.py
CHANGED
|
@@ -131,8 +131,20 @@ def _reply(status, decoded, headers):
|
|
|
131
131
|
return _Reply(status, decoded, headers)
|
|
132
132
|
|
|
133
133
|
|
|
134
|
-
class
|
|
135
|
-
"""
|
|
134
|
+
class StdioEngineClient(ExecutionLayer):
|
|
135
|
+
"""Own a private Vis process over standard input and output, without an HTTP server.
|
|
136
|
+
|
|
137
|
+
`Agent()` without a client creates one of these. Use this class yourself when
|
|
138
|
+
you need to choose an executable, share one local process between agents, or
|
|
139
|
+
call the session API directly. Its sessions are temporary. To keep sessions and
|
|
140
|
+
start the engine one time for many programs, use
|
|
141
|
+
`blockether.vis.engine.HttpLocalEngineClient`.
|
|
142
|
+
|
|
143
|
+
With the default `vis-agent`, `connect` uses the installed command when it runs
|
|
144
|
+
this SDK's release. Otherwise it downloads that release once into
|
|
145
|
+
`$VIS_HOME/sdk` and checks it against the release checksums. Set
|
|
146
|
+
`VIS_NO_AUTO_INSTALL=1` to turn off the download. This class never discovers
|
|
147
|
+
a gateway. Supported platforms are Linux and macOS.
|
|
136
148
|
|
|
137
149
|
Args:
|
|
138
150
|
executable: Executable path/name or nonempty argument sequence. The SDK
|
|
@@ -150,6 +162,21 @@ class PrivateEngine(ExecutionLayer):
|
|
|
150
162
|
stops and the temporary database is removed when Python collects the layer or exits.
|
|
151
163
|
Do not rely on this: an unclosed layer keeps its process until then.
|
|
152
164
|
|
|
165
|
+
The first session of a new engine copy can take more than a minute, for example
|
|
166
|
+
after the first download or an SDK update. The engine then prepares the installed
|
|
167
|
+
Python extensions for its embedded Python: it installs their dependencies and
|
|
168
|
+
compiles them. A project with its own extensions can need this once too. So
|
|
169
|
+
`create_session` waits up to `startup_timeout`.
|
|
170
|
+
|
|
171
|
+
```python
|
|
172
|
+
from blockether.vis.engine import Agent, StdioEngineClient
|
|
173
|
+
|
|
174
|
+
with StdioEngineClient(executable="vis-agent", root=".") as client:
|
|
175
|
+
with Agent(project=".", client=client) as agent:
|
|
176
|
+
result = agent.run("Summarize this project without changing files.")
|
|
177
|
+
print(result["status"])
|
|
178
|
+
```
|
|
179
|
+
|
|
153
180
|
A pipe timeout stops the process: a late reply must never be mistaken for the
|
|
154
181
|
next request's answer. This differs from a `blockether.vis.engine.Turn.wait`
|
|
155
182
|
deadline, which does not itself request cancellation. Startup, protocol and
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""One warm local Vis gateway that SDK processes share (#489).
|
|
2
2
|
|
|
3
|
-
`
|
|
4
|
-
folder and
|
|
3
|
+
`HttpLocalEngineClient` finds or starts one `vis-agent gateway` in a private state
|
|
4
|
+
folder and connects to it. While a client holds a lease,
|
|
5
5
|
the next `Agent` attaches in milliseconds instead of starting an engine. The
|
|
6
6
|
gateway stops by itself when its last client leaves. Supports Linux and macOS.
|
|
7
7
|
"""
|
|
@@ -24,7 +24,6 @@ from pathlib import Path
|
|
|
24
24
|
from typing import TypedDict
|
|
25
25
|
|
|
26
26
|
from ._client import (
|
|
27
|
-
ExecutionLayer,
|
|
28
27
|
GatewayClient,
|
|
29
28
|
GatewayError,
|
|
30
29
|
SessionOptions,
|
|
@@ -40,7 +39,6 @@ from ._install import (
|
|
|
40
39
|
_vis_home,
|
|
41
40
|
ensure_installed,
|
|
42
41
|
)
|
|
43
|
-
from ._local import PrivateEngine
|
|
44
42
|
|
|
45
43
|
_HOST = "127.0.0.1"
|
|
46
44
|
# Errors quote at most this much of the gateway log, starting at a line.
|
|
@@ -58,179 +56,156 @@ class _Record(TypedDict):
|
|
|
58
56
|
started_at: float
|
|
59
57
|
|
|
60
58
|
|
|
61
|
-
class
|
|
62
|
-
"""
|
|
59
|
+
class HttpLocalEngineClient(GatewayClient):
|
|
60
|
+
"""Share one local Vis gateway between your programs, over HTTP on this computer.
|
|
63
61
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
def session_options(self, project=".") -> SessionOptions:
|
|
69
|
-
"""Resolve an existing local directory: the gateway runs on this computer."""
|
|
70
|
-
path = Path(project).resolve(strict=True)
|
|
71
|
-
if not path.is_dir():
|
|
72
|
-
raise NotADirectoryError(str(path))
|
|
73
|
-
return {"root": str(path), "channel": "app"}
|
|
74
|
-
|
|
75
|
-
def _session_create_timeout(self, timeout: float | None) -> float | None:
|
|
76
|
-
"""Wait for a session up to the startup deadline of the service."""
|
|
77
|
-
return max(self.timeout, self._startup_timeout) if timeout is None else timeout
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
def start(
|
|
81
|
-
*,
|
|
82
|
-
shared: bool = False,
|
|
83
|
-
executable: str | os.PathLike[str] | Sequence[str] = _COMMAND,
|
|
84
|
-
root: str | os.PathLike[str] | None = None,
|
|
85
|
-
home: str | os.PathLike[str] | None = None,
|
|
86
|
-
timeout: float = 30,
|
|
87
|
-
startup_timeout: float = 120,
|
|
88
|
-
) -> ExecutionLayer:
|
|
89
|
-
"""Start a Vis engine on this computer and return its connected client.
|
|
90
|
-
|
|
91
|
-
To use a gateway that runs separately, call `blockether.vis.engine.connect`.
|
|
62
|
+
The first client starts the gateway. Each later client attaches in milliseconds,
|
|
63
|
+
where a `blockether.vis.engine.StdioEngineClient` starts a new engine in about
|
|
64
|
+
1.5 s. Programs and threads that connect at the same time get one gateway. Its
|
|
65
|
+
sessions stay in its database.
|
|
92
66
|
|
|
93
67
|
```python
|
|
94
|
-
from blockether.vis.engine import Agent,
|
|
68
|
+
from blockether.vis.engine import Agent, HttpLocalEngineClient
|
|
95
69
|
|
|
96
|
-
with
|
|
97
|
-
with Agent(project=".",
|
|
98
|
-
|
|
70
|
+
with HttpLocalEngineClient() as client:
|
|
71
|
+
with Agent(project=".", client=client) as agent:
|
|
72
|
+
result = agent.run("Summarize this project without changing files.")
|
|
73
|
+
print(result["status"])
|
|
99
74
|
```
|
|
100
75
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
the
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
With `shared=True`, the engine is one local gateway that all your programs
|
|
108
|
-
share. The first call starts it, and each later call attaches in milliseconds.
|
|
109
|
-
Programs and threads that call at the same time get one gateway. Its sessions
|
|
110
|
-
stay in its database. `close` releases the lease of this client. The gateway
|
|
111
|
-
stops by itself when no client holds a lease and no turn runs. A client that
|
|
112
|
-
was not closed keeps its lease for up to 2 minutes after its process ends, and
|
|
113
|
-
a gateway that no client ever used stops after 30 s. Keep one client open while
|
|
114
|
-
you work to keep the gateway warm. `blockether.vis.engine.stop_shared` stops it
|
|
115
|
-
for all programs.
|
|
116
|
-
|
|
117
|
-
The shared gateway keeps its database, token, runtime folder, logs and push
|
|
118
|
-
state in `home`. It uses the provider settings of `VIS_HOME`, but never the
|
|
119
|
-
database, the gateway or the paired devices of your own Vis. So its turns do
|
|
120
|
-
not send notifications to your phone or browser. It listens only on 127.0.0.1,
|
|
121
|
-
on a free port, and requires its token.
|
|
122
|
-
|
|
123
|
-
With the default `vis-agent`, the call uses the installed command when it runs
|
|
124
|
-
this SDK's release. Otherwise it downloads that release once into
|
|
125
|
-
`$VIS_HOME/sdk` and checks it against the release checksums. Set
|
|
126
|
-
`VIS_NO_AUTO_INSTALL=1` to turn off the download. The first session of a new
|
|
127
|
-
engine copy can take more than a minute, because the engine then prepares the
|
|
128
|
-
installed Python extensions. So `create_session` waits up to `startup_timeout`.
|
|
129
|
-
Supported platforms are Linux and macOS.
|
|
76
|
+
The gateway keeps its database, token, runtime folder, logs and push state in
|
|
77
|
+
`home`. It uses the provider settings of `VIS_HOME`, but never the database,
|
|
78
|
+
the gateway or the paired devices of your own Vis. So its turns do not send
|
|
79
|
+
notifications to your phone or browser. It listens only on 127.0.0.1, on a free
|
|
80
|
+
port, and requires its token.
|
|
130
81
|
|
|
131
82
|
Args:
|
|
132
|
-
shared: False starts a private engine with temporary sessions. True
|
|
133
|
-
starts or joins the shared local gateway, which keeps its sessions.
|
|
134
83
|
executable: Executable path or name, or a nonempty argument sequence. The
|
|
135
|
-
SDK appends
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
`create_session`.
|
|
139
|
-
home: State folder of the shared gateway. Default `$VIS_HOME/sdk/service`.
|
|
140
|
-
Not valid without `shared=True`.
|
|
84
|
+
SDK appends `gateway start` and its options. It does not parse shell
|
|
85
|
+
commands.
|
|
86
|
+
home: State folder of the gateway. Default `$VIS_HOME/sdk/service`.
|
|
141
87
|
timeout: Positive finite timeout in seconds for each request.
|
|
142
88
|
startup_timeout: Positive finite deadline in seconds for the start of the
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
if root is not None:
|
|
157
|
-
raise ValueError("root applies only to a private engine")
|
|
158
|
-
return _ensure(
|
|
159
|
-
executable=executable,
|
|
160
|
-
home=home,
|
|
161
|
-
timeout=timeout,
|
|
162
|
-
startup_timeout=startup_timeout,
|
|
163
|
-
)
|
|
164
|
-
if home is not None:
|
|
165
|
-
raise ValueError("home applies only with shared=True")
|
|
166
|
-
return PrivateEngine(
|
|
167
|
-
executable=executable,
|
|
168
|
-
root="." if root is None else root,
|
|
169
|
-
timeout=timeout,
|
|
170
|
-
startup_timeout=startup_timeout,
|
|
171
|
-
).connect()
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
def _ensure(
|
|
175
|
-
*,
|
|
176
|
-
executable: str | os.PathLike[str] | Sequence[str] = _COMMAND,
|
|
177
|
-
home: str | os.PathLike[str] | None = None,
|
|
178
|
-
timeout: float = 30,
|
|
179
|
-
startup_timeout: float = 120,
|
|
180
|
-
) -> GatewayClient:
|
|
181
|
-
"""Return a connected client of the shared gateway, and start it when none runs.
|
|
182
|
-
|
|
183
|
-
A file lock in `home` lets only one caller start the gateway. The client takes
|
|
184
|
-
its lease while the call holds the lock, so the gateway cannot stop before the
|
|
185
|
-
caller uses it. A record of a gateway that stopped, does not answer or stops
|
|
186
|
-
during the call is replaced. A running gateway of another engine (for example
|
|
187
|
-
after an SDK update) is replaced only when no client uses it and no turn runs;
|
|
188
|
-
else the call reuses it.
|
|
89
|
+
gateway and for each session creation.
|
|
90
|
+
|
|
91
|
+
Construction starts nothing. `connect` or context entry attaches to the running
|
|
92
|
+
gateway of `home`, or starts it. `close` releases the lease of this client. The
|
|
93
|
+
gateway stops by itself when no client holds a lease and no turn runs. A client
|
|
94
|
+
that was not closed keeps its lease for up to 2 minutes after its process ends,
|
|
95
|
+
and a gateway that no client ever used stops after 30 s. Keep one client open
|
|
96
|
+
while you work to keep the gateway warm. `shutdown` stops the gateway for all
|
|
97
|
+
programs.
|
|
98
|
+
|
|
99
|
+
With the default `vis-agent`, the engine comes from the same place as for
|
|
100
|
+
`StdioEngineClient`: the installed command of this SDK's release, else a checked
|
|
101
|
+
download into `$VIS_HOME/sdk`. Supported platforms are Linux and macOS.
|
|
189
102
|
"""
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
103
|
+
|
|
104
|
+
def __init__(
|
|
105
|
+
self,
|
|
106
|
+
*,
|
|
107
|
+
executable: str | os.PathLike[str] | Sequence[str] = _COMMAND,
|
|
108
|
+
home: str | os.PathLike[str] | None = None,
|
|
109
|
+
timeout: float = 30,
|
|
110
|
+
startup_timeout: float = 120,
|
|
111
|
+
):
|
|
112
|
+
# The gateway takes a free port at its start, so `connect` sets the origin.
|
|
113
|
+
super().__init__(f"http://{_HOST}", timeout=timeout)
|
|
114
|
+
self._executable = executable
|
|
115
|
+
self._home = home
|
|
116
|
+
self._startup_timeout = _duration(startup_timeout)
|
|
117
|
+
|
|
118
|
+
def connect(self) -> HttpLocalEngineClient:
|
|
119
|
+
"""Attach to the running gateway of `home`, or start it, and take a lease.
|
|
120
|
+
|
|
121
|
+
Return this client. Repeated calls reuse its lease. A file lock in `home`
|
|
122
|
+
lets only one caller start the gateway. The client takes its lease while
|
|
123
|
+
the call holds the lock, so the gateway cannot stop before the caller uses
|
|
124
|
+
it. A record of a gateway that stopped, does not answer or stops during the
|
|
125
|
+
call is replaced. A running gateway of another engine (for example after an
|
|
126
|
+
SDK update) is replaced only when no client uses it and no turn runs; else
|
|
127
|
+
the call reuses it.
|
|
128
|
+
|
|
129
|
+
Raises:
|
|
130
|
+
TransportError: The engine cannot be found or downloaded, or the
|
|
131
|
+
gateway exited during its start. The message ends with its log.
|
|
132
|
+
VisTimeout: The gateway did not answer within `startup_timeout`.
|
|
133
|
+
"""
|
|
134
|
+
if self._closed:
|
|
135
|
+
raise TransportError("client is closed")
|
|
136
|
+
if self._lease or self._lease_error:
|
|
137
|
+
super().connect()
|
|
138
|
+
return self
|
|
139
|
+
folder = _folder(self._home)
|
|
140
|
+
command = _resolve(self._executable)
|
|
141
|
+
deadline = time.monotonic() + self._startup_timeout + self.timeout
|
|
142
|
+
with _locked(folder / "lock", deadline):
|
|
143
|
+
record = _read(folder)
|
|
144
|
+
token = _token(folder)
|
|
145
|
+
health = _health(record, token) if record else None
|
|
146
|
+
if record and health:
|
|
147
|
+
busy = health.get("clients") or health.get("running_turns")
|
|
148
|
+
if record["command"] == command or busy:
|
|
149
|
+
if self._attach(record, token):
|
|
150
|
+
return self
|
|
151
|
+
# It stopped by itself after its last client left.
|
|
152
|
+
_retire(folder, record)
|
|
153
|
+
else:
|
|
154
|
+
_stop(folder, record, token)
|
|
155
|
+
elif record:
|
|
156
|
+
_retire(folder, record)
|
|
157
|
+
record, token = _start(folder, command, self._startup_timeout)
|
|
158
|
+
self._point(record, token)
|
|
159
|
+
super().connect()
|
|
160
|
+
return self
|
|
161
|
+
|
|
162
|
+
def shutdown(self) -> bool:
|
|
163
|
+
"""Stop the gateway for every program, and close this client.
|
|
164
|
+
|
|
165
|
+
Return True when a gateway ran. Running turns stop too. Stored sessions
|
|
166
|
+
stay in its database for the next start. A client that never connected can
|
|
167
|
+
call this.
|
|
168
|
+
"""
|
|
169
|
+
folder = _folder(self._home)
|
|
170
|
+
with _locked(folder / "lock", time.monotonic() + 60):
|
|
171
|
+
record = _read(folder)
|
|
172
|
+
is_running = bool(record and _health(record, _token(folder)))
|
|
173
|
+
if record and is_running:
|
|
174
|
+
_stop(folder, record, _token(folder))
|
|
175
|
+
elif record:
|
|
205
176
|
_retire(folder, record)
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
record, token = _start(folder, command, startup_timeout)
|
|
211
|
-
return _client(record, token, timeout, startup_timeout).connect()
|
|
177
|
+
# The lease ended with the gateway, so `close` has nothing to release.
|
|
178
|
+
self._lease = None
|
|
179
|
+
self.close()
|
|
180
|
+
return is_running
|
|
212
181
|
|
|
182
|
+
def session_options(self, project=".") -> SessionOptions:
|
|
183
|
+
"""Resolve an existing local directory: the gateway runs on this computer."""
|
|
184
|
+
path = Path(project).resolve(strict=True)
|
|
185
|
+
if not path.is_dir():
|
|
186
|
+
raise NotADirectoryError(str(path))
|
|
187
|
+
return {"root": str(path), "channel": "app"}
|
|
213
188
|
|
|
214
|
-
def
|
|
215
|
-
|
|
189
|
+
def _session_create_timeout(self, timeout: float | None) -> float | None:
|
|
190
|
+
"""Wait for a session up to the startup deadline of the gateway."""
|
|
191
|
+
return max(self.timeout, self._startup_timeout) if timeout is None else timeout
|
|
216
192
|
|
|
217
|
-
|
|
218
|
-
|
|
193
|
+
def _point(self, record: _Record, token: str | None) -> None:
|
|
194
|
+
"""Aim this client at the gateway of `record`."""
|
|
195
|
+
if token is None:
|
|
196
|
+
raise TransportError(
|
|
197
|
+
"the shared local gateway has no token; call shutdown()"
|
|
198
|
+
)
|
|
199
|
+
self._url, self._token = record["url"], token
|
|
219
200
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
if record is None:
|
|
201
|
+
def _attach(self, record: _Record, token: str | None) -> bool:
|
|
202
|
+
"""Take a lease on a running gateway. False when it stopped meanwhile."""
|
|
203
|
+
self._point(record, token)
|
|
204
|
+
try:
|
|
205
|
+
super().connect()
|
|
206
|
+
except (TransportError, GatewayError):
|
|
227
207
|
return False
|
|
228
|
-
|
|
229
|
-
if _health(record, token):
|
|
230
|
-
_stop(folder, record, token)
|
|
231
|
-
return True
|
|
232
|
-
_retire(folder, record)
|
|
233
|
-
return False
|
|
208
|
+
return True
|
|
234
209
|
|
|
235
210
|
|
|
236
211
|
def _folder(home: str | os.PathLike[str] | None) -> Path:
|
|
@@ -247,7 +222,7 @@ def _folder(home: str | os.PathLike[str] | None) -> Path:
|
|
|
247
222
|
|
|
248
223
|
|
|
249
224
|
def _resolve(executable: str | os.PathLike[str] | Sequence[str]) -> list[str]:
|
|
250
|
-
"""Return the engine argv, with the same resolution and download as
|
|
225
|
+
"""Return the engine argv, with the same resolution and download as `StdioEngineClient`."""
|
|
251
226
|
command = (
|
|
252
227
|
[os.fspath(executable)]
|
|
253
228
|
if isinstance(executable, (str, os.PathLike))
|
|
@@ -572,27 +547,3 @@ def _log_tail(log: Path) -> str:
|
|
|
572
547
|
end = end.partition(b"\n")[2] or end
|
|
573
548
|
text = end.decode("utf-8", "replace").strip()
|
|
574
549
|
return f"\nShared local gateway log:\n{text}" if text else ""
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
def _connected(
|
|
578
|
-
record: _Record, token: str | None, timeout: float, startup_timeout: float
|
|
579
|
-
) -> GatewayClient | None:
|
|
580
|
-
"""Return a client with a lease, or None when the gateway stopped meanwhile."""
|
|
581
|
-
client = _client(record, token, timeout, startup_timeout)
|
|
582
|
-
try:
|
|
583
|
-
return client.connect()
|
|
584
|
-
except (TransportError, GatewayError):
|
|
585
|
-
client.close()
|
|
586
|
-
return None
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
def _client(
|
|
590
|
-
record: _Record, token: str | None, timeout: float, startup_timeout: float
|
|
591
|
-
) -> GatewayClient:
|
|
592
|
-
if token is None:
|
|
593
|
-
raise TransportError(
|
|
594
|
-
"the shared local gateway has no token; call stop_shared()"
|
|
595
|
-
)
|
|
596
|
-
return _ServiceClient(
|
|
597
|
-
record["url"], token=token, timeout=timeout, startup_timeout=startup_timeout
|
|
598
|
-
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
beta-
|
|
1
|
+
beta-53e83def0f2b9d2a5accc16d5d8324e39d8f279c
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: vis-agent
|
|
3
|
-
Version: 0.5.22.
|
|
3
|
+
Version: 0.5.22.dev9332
|
|
4
4
|
Summary: The Vis Python SDK — author extensions and control local or remote engines.
|
|
5
5
|
Project-URL: Homepage, https://vis.blockether.com
|
|
6
6
|
Project-URL: Documentation, https://vis.blockether.com
|
|
@@ -53,7 +53,7 @@ with Agent(project=".") as agent:
|
|
|
53
53
|
|
|
54
54
|
The SDK starts a private Vis process with a temporary session database and removes both
|
|
55
55
|
when the block ends. Tasks can incur provider charges and can change project files. To
|
|
56
|
-
choose the executable or share one process between agents,
|
|
56
|
+
choose the executable or share one process between agents, use `StdioEngineClient`. See the
|
|
57
57
|
[stdio guide](https://vis.blockether.com/python-sdk.html#use-stdio-from-the-python-sdk).
|
|
58
58
|
The first run with a new engine copy can take more than one minute. See
|
|
59
59
|
[the first start of a private agent](https://vis.blockether.com/python-sdk.html#the-first-start-of-a-private-agent).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
blockether/vis/__init__.py,sha256=qZHO5GRQsM6_fzA98MOHo1XVIsESuPRlkaMjF9olP18,263
|
|
2
2
|
blockether/vis/_contracts.py,sha256=WoeQOQsoqN3EyW6_pMYPb1CcwPLEDRuOKee_T5w_UI8,79606
|
|
3
|
-
blockether/vis/_outside.py,sha256=
|
|
3
|
+
blockether/vis/_outside.py,sha256=aLa1PX4OUrhgFY4yuyK-UYVMZ565lkk28NqtAMRkN5I,63291
|
|
4
4
|
blockether/vis/_wire.py,sha256=UyOiARmcvPl6HpLp1u_uAdUIrScP1o0cK6DuvEheMKg,892
|
|
5
5
|
blockether/vis/activity.py,sha256=8sQozSA3pV33RODOOqKMVchYLC0HalL49tz2Gfxpk5g,10934
|
|
6
6
|
blockether/vis/extension.py,sha256=N99FLTZsNsLuggAJ3CcJEKtNKs0AFmwvMpwXoXyWwcU,334780
|
|
@@ -8,18 +8,18 @@ blockether/vis/extension_package.py,sha256=C9Bk-bLJK1BqXW866Ox3diDVRQuVrgrZgWzN-
|
|
|
8
8
|
blockether/vis/live_check.py,sha256=A4nyKSSJLID5sIbmm0FiM0mLpL9VoTcpiFJDd6gq160,2507
|
|
9
9
|
blockether/vis/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
blockether/vis/views.py,sha256=lYzXHhb6fSW-OGL1P08WhVtqXy6OSGxbN6hRBfDvd_w,7598
|
|
11
|
-
blockether/vis/engine/__init__.py,sha256=
|
|
12
|
-
blockether/vis/engine/_agent.py,sha256=
|
|
11
|
+
blockether/vis/engine/__init__.py,sha256=ZCnypWbkCrIf_hWV9IacdaZPSKAjWS2Hv1VnCo3ufrk,1908
|
|
12
|
+
blockether/vis/engine/_agent.py,sha256=N_zcL5w9jL3IZUEokBxNnQKNrUbPyH4MhbnBMX8utL0,28174
|
|
13
13
|
blockether/vis/engine/_agents.py,sha256=uYBzwwkp6o5t69aTEoy0GGOKhavo4HUfOCQEE0ov0nU,3500
|
|
14
|
-
blockether/vis/engine/_client.py,sha256=
|
|
14
|
+
blockether/vis/engine/_client.py,sha256=Vrka2NFUh0K8upTyRBVlYE2qQlUu6N_C78_F-zdfwWM,183613
|
|
15
15
|
blockether/vis/engine/_council.py,sha256=4MCH6DQ9u3nHXX1ZzqIVyJYzh25ddubqstLicC2G4pY,16728
|
|
16
16
|
blockether/vis/engine/_extensions.py,sha256=gCXRN1fkUMg8SkNB_3xcOKAeSatfaY6S9g_R8Yy-0sI,13950
|
|
17
17
|
blockether/vis/engine/_groups.py,sha256=6ED7PihO1jFSjEmxUpccb0hxIAa_YWaOADvlkAji7-c,1281
|
|
18
18
|
blockether/vis/engine/_host.py,sha256=GxiN2A5of4tUg5YBBcICqyBgzo2Il0rZd7UlOKfRMAQ,3080
|
|
19
19
|
blockether/vis/engine/_install.py,sha256=5RUY8I3FdJ2xGSYg_qvmmoT6sEHjAocqrjrRkQm_Eco,11540
|
|
20
|
-
blockether/vis/engine/_local.py,sha256=
|
|
20
|
+
blockether/vis/engine/_local.py,sha256=j0WUjxvtAvQIn9kGgysN66c4bS-JtZyMlLGXjBAFGRo,18266
|
|
21
21
|
blockether/vis/engine/_models.py,sha256=Tajra-zkfmPIq5Tvajp57zgxDWAbjJiq4MDUKaL8dxs,3365
|
|
22
|
-
blockether/vis/engine/_service.py,sha256=
|
|
22
|
+
blockether/vis/engine/_service.py,sha256=551dVIkzK2BcXgakGOsLoGfiLKs1_yNEWE1odyB4ogA,20121
|
|
23
23
|
blockether/vis/engine/_sounds.py,sha256=kuYKATiH0azTs5BrUxN_-GF2ZSIxluqpe11hoZIwvPA,9460
|
|
24
24
|
blockether/vis/engine/_speech.py,sha256=n5qNsOJKzDthhXFc6_5vOK3fmhfbb9brPSK4CJAvnTQ,10874
|
|
25
25
|
blockether/vis/engine/_types.py,sha256=CeurdrExdEHplaHY0ntQBNWe3i9hUO2qtBrcbITtCAw,85737
|
|
@@ -84,13 +84,13 @@ blockether/vis/_data/schema/council.json,sha256=xiuTZnx7qp-Kx96XFE8Qv8zPMv1N10is
|
|
|
84
84
|
blockether/vis/_data/schema/diff.json,sha256=NOQDBR98KMuVW4JF18IDB57YYTMqASVZCtg-BeBKEGY,2060
|
|
85
85
|
blockether/vis/_data/schema/evals.json,sha256=TpP8OCv_1Yh1Ie_xmJYa7-d69bJrFRiZpUhn7tmniTs,23972
|
|
86
86
|
blockether/vis/_data/schema/gateway.json,sha256=F7Sk1yBLjcOYvMrRrJFtS9st5tBbzNdE26IkAL_8BJI,214196
|
|
87
|
-
blockether/vis/_data/schema/keymap.json,sha256=
|
|
87
|
+
blockether/vis/_data/schema/keymap.json,sha256=D7gpiGfOw0izF4kKeSFoFZJE2E79XH_lKZCJQx_Vxyc,15522
|
|
88
88
|
blockether/vis/_data/schema/provider.json,sha256=iJeEFke3pRgs6ugkgDIokiMIRiUlVDubYn4aWI0GmSQ,10870
|
|
89
89
|
blockether/vis/_data/schema/symbol.json,sha256=RiOf2vdWcuQGzKwCmCZrWQui6n2k4fVfhBRs1-PPnlw,5754
|
|
90
90
|
blockether/vis/_data/schema/toggle.json,sha256=RJvAS0Hh8gjyPFcnnYR7GiN9MMf36YHd8IVZ5uxHA94,7829
|
|
91
91
|
blockether/vis/_data/schema/view.json,sha256=RW9KleUYlwfl0o1O5gPR42gQ4iBTq7w2R4XHyKAw8TE,137563
|
|
92
|
-
blockether/vis/engine/release-tag,sha256=
|
|
93
|
-
vis_agent-0.5.22.
|
|
94
|
-
vis_agent-0.5.22.
|
|
95
|
-
vis_agent-0.5.22.
|
|
96
|
-
vis_agent-0.5.22.
|
|
92
|
+
blockether/vis/engine/release-tag,sha256=HOpoplAP0KN_VkQ2b0QZXEi46yeJNoMBmJtPc9hl-_w,46
|
|
93
|
+
vis_agent-0.5.22.dev9332.dist-info/METADATA,sha256=BDGycgBblQBrErkkObgPX3lkWZWTiM2QGPAtnP_N5Hs,3098
|
|
94
|
+
vis_agent-0.5.22.dev9332.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
95
|
+
vis_agent-0.5.22.dev9332.dist-info/licenses/LICENSE,sha256=Ds8Buu9Jm7CYdc8ZhLv4kvaHexBDIuDngh1UmIvHhRs,10766
|
|
96
|
+
vis_agent-0.5.22.dev9332.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|