Repository navigation
Releases
bond-channels 0.6.0
Needs Agentica 0.31.0 and Bond 0.13.0.
Changed
- Breaking: needs Bond 0.13.0 (the package is pinned by that tag), which checks with Agentica 0.32.0. CI tests with Agentica 0.32.0.
prop 0.4.1
Needs Agentica 0.31.0.
Changed
Prop.roundtrip,idempotent,associativeandcommutativecompare with the text that the generator writes for a value, so they work with aGen[Bytes]or a generator of a struct with bytes (Prop.map_shown); for every other generator the text is its JSON, as before. The results ofProp.oracleandProp.preservesstill compare as JSON (#107).
prop 0.4.0
Needs Agentica 0.31.0.
Added
Prop.bytes(min, max)makesBytes, which shrink to fewer and smaller bytes. A counterexample of bytes is reported as the list of their values.Prop.non_empty_list(gen, max_size)makes lists of at least one item, which never shrink to the empty list. WithProp.int(1, 12)it is the sizes of the pieces that cut a sequence, so a law can try any cut.Prop.map_shown(gen, show, f)isProp.mapfor a result that JSON cannot encode, such as a struct with aBytesfield.- The docs say how to write
GenandPairbare:import {Gen, Pair} from "pkg/prop/prop".
Changed
- Breaking: a
Genhas ashowfield, the text of a value in a counterexample, so aGen(...)built by hand needsshow: ....Prop.checkandProp.exhaustiveno longer need the generated type to be JSON-encodable; the six laws,Prop.eq,Prop.mapandProp.one_ofstill do. The text of every other generator is whatJSON.encodegave.
pool 0.1.2
Needs Agentica 0.31.0.
Fixed
- A body that crashes at the moment its caller is cancelled no longer goes unobserved: the caller watches the task of the body itself, so a crash whose notice came in counts as observed (it was a flaky
RUNTIME-TASK-CRASHED, or "N task crashes were not observed", at exit).
Documented
checkinwithTimedOutmay come for a body that never ran: withlease_msabove 0 the task of the body is sent to the pool before the body starts, and a cancel in between ends it before its first step. The pool prefers onecheckintoo many to a resource that keeps what the body took, so acheckinthat counts uses (a model, a counter) must not assume that the body ran.
pool 0.1.1
Needs Agentica 0.31.0.
Changed
- With
lease_msabove 0,checkoutruns in the task of the body, not in a task of its own, so a check costs no task. The caller still waits at most 5 seconds for it, and acheckoutthat refuses, crashes or hangs still ends the resource without reaching the caller, which gets the next resource at its place in line. - A body that runs in a task of the pool does not start when the drain of a close ended while its
checkoutran, also when the owner is still running (another resource in a slowinit): the caller getspool error: closed. The 5 seconds that a caller waits forcheckouthold for one that waits (a sleep, a channel, I/O, acompute def), not for one that blocks in a plain nativedefcall. closereturns after the last count is written:waitingandliveare 0 when it returns.
Documented
checkinruns at most once for each body that ran (the 0.1.0 entry said once): a caller cancelled withlease_ms0 after it told the pool it is checking in, and before itscheckinstarts, has its resource ended with nocheckin.- A
terminatethat never returns holds its place and the pool does not replace the resource, so each one makes the pool one resource smaller;terminateruns in the keeper, which owns the handles, so it cannot be bounded with a task.
bond-channels 0.5.0
Needs Agentica 0.31.0 and Bond 0.12.0.
Changed
- Broadcasts are framed once and written by the hub straight to each WebSocket, which costs less CPU per frame.
- Breaking: the WebSocket queue of a connection holds twice
MountOptions.inbox(at most 1048576), and a client whose queue is full at any moment is dropped; broadcasts no longer queue behind a slowperform.
websocket-client 0.2.0
[dependencies]
websocket-client = { git = "https://github.com/agentica-lang/packages", tag = "websocket-client-0.2.0", subdir = "websocket-client" }websocket-client 0.2.0 adds WebSocket.handshake, so a program can read why a server refused the upgrade.
WebSocket.handshakeis likeconnect, but a server that does not upgrade (a 403, a 426) givesRefused(status, headers, body)instead of anerror.Clientgainedstatusandheaders, with defaults: the answer of the 101 handshake.connectstill stops at the head of a refusing answer; onlyhandshakereads its body (at most 64 KiB).
Needs Agentica 0.30.0 or later.
Full list: CHANGELOG.
Docs: https://agentica-lang.github.io/packages/websocket-client/
websocket-client 0.1.0
[dependencies]
websocket-client = { git = "https://github.com/agentica-lang/packages", tag = "websocket-client-0.1.0", subdir = "websocket-client" }websocket-client is a WebSocket client (RFC 6455) for ws:// and wss:// over std TCP and TLS. Needs Agentica 0.30.0 or later.
WebSocket.connectdoes the upgrade handshake and theSec-WebSocket-Acceptcheck, with subprotocols and extra headers.send_text,send_binary,send_ping,send_pongandclose; every frame is masked.receivegives whole text and binary messages, answers a ping with a pong, and answers a close frame.- A message size limit, a read timeout, and protocol errors as
errorresults after the close frame. - Every timeout is from 1 ms to one day.
Full list: CHANGELOG.
Docs: https://agentica-lang.github.io/packages/websocket-client/
prop 0.2.1
[dependencies]
prop = { git = "https://github.com/agentica-lang/packages", tag = "prop-0.2.1", subdir = "prop" }prop 0.2.1 keeps compiling with the next Agentica, which refuses a method call right after the end of a do block (CHECK-CHAIN-AFTER-END). Nothing else changes.
Needs Agentica 0.30.0 or later.
Full list: CHANGELOG.
native-gen 0.3.0
[dependencies]
native-gen = { git = "https://github.com/agentica-lang/packages", tag = "native-gen-0.3.0", subdir = "native-gen" }native-gen 0.3.0 moves to Agentica 0.30.0 and keeps compiling with the next Agentica.
Breaking:
- Needs Agentica 0.30.0 or later: the sources use its formatted syntax (implicit returns, guards, one-line defs).
Also: no method call right after the end of a do block (CHECK-CHAIN-AFTER-END), and strip replaces trim, which the next Agentica no longer has.
Full list: CHANGELOG.