Skip to content

Releases

bond-channels 0.6.0

Choose a tag to compare

@sonic182 sonic182 released this 16 Nov 08:33
555fd9b

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

Choose a tag to compare

@sonic182 sonic182 released this 13 Nov 22:25
fb816bf

Needs Agentica 0.31.0.

Changed

  • Prop.roundtrip, idempotent, associative and commutative compare with the text that the generator writes for a value, so they work with a Gen[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 of Prop.oracle and Prop.preserves still compare as JSON (#107).

prop 0.4.0

Choose a tag to compare

@sonic182 sonic182 released this 13 Nov 21:48
6d378bc

Needs Agentica 0.31.0.

Added

  • Prop.bytes(min, max) makes Bytes, 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. With Prop.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) is Prop.map for a result that JSON cannot encode, such as a struct with a Bytes field.
  • The docs say how to write Gen and Pair bare: import {Gen, Pair} from "pkg/prop/prop".

Changed

  • Breaking: a Gen has a show field, the text of a value in a counterexample, so a Gen(...) built by hand needs show: .... Prop.check and Prop.exhaustive no longer need the generated type to be JSON-encodable; the six laws, Prop.eq, Prop.map and Prop.one_of still do. The text of every other generator is what JSON.encode gave.

pool 0.1.2

Choose a tag to compare

@sonic182 sonic182 released this 13 Nov 22:25
b23c369

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

  • checkin with TimedOut may come for a body that never ran: with lease_ms above 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 one checkin too many to a resource that keeps what the body took, so a checkin that counts uses (a model, a counter) must not assume that the body ran.

pool 0.1.1

Choose a tag to compare

@sonic182 sonic182 released this 13 Nov 21:57
5aac32c

Needs Agentica 0.31.0.

Changed

  • With lease_ms above 0, checkout runs 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 a checkout that 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 checkout ran, also when the owner is still running (another resource in a slow init): the caller gets pool error: closed. The 5 seconds that a caller waits for checkout hold for one that waits (a sleep, a channel, I/O, a compute def), not for one that blocks in a plain native def call.
  • close returns after the last count is written: waiting and live are 0 when it returns.

Documented

  • checkin runs at most once for each body that ran (the 0.1.0 entry said once): a caller cancelled with lease_ms 0 after it told the pool it is checking in, and before its checkin starts, has its resource ended with no checkin.
  • A terminate that never returns holds its place and the pool does not replace the resource, so each one makes the pool one resource smaller; terminate runs in the keeper, which owns the handles, so it cannot be bounded with a task.

bond-channels 0.5.0

Choose a tag to compare

@sonic182 sonic182 released this 13 Nov 23:32
497ebec

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 slow perform.

websocket-client 0.2.0

Choose a tag to compare

@sonic182 sonic182 released this 12 Nov 11:11
af80325
[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.handshake is like connect, but a server that does not upgrade (a 403, a 426) gives Refused(status, headers, body) instead of an error.
  • Client gained status and headers, with defaults: the answer of the 101 handshake.
  • connect still stops at the head of a refusing answer; only handshake reads 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

Choose a tag to compare

@sonic182 sonic182 released this 12 Nov 11:11
24ff4b7
[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.connect does the upgrade handshake and the Sec-WebSocket-Accept check, with subprotocols and extra headers.
  • send_text, send_binary, send_ping, send_pong and close; every frame is masked.
  • receive gives 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 error results 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

Choose a tag to compare

@sonic182 sonic182 released this 12 Nov 12:30
6e7cb70
[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.

Docs: https://agentica-lang.github.io/packages/prop/

native-gen 0.3.0

Choose a tag to compare

@sonic182 sonic182 released this 12 Nov 12:30
6e7cb70
[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.

Docs: https://agentica-lang.github.io/packages/native-gen/