Skip to content

Releases

0.33.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 15:00
020f0f6
  • New: Process.spawn with pty: true and Process.resize for interactive programs (Linux and macOS), Actor.send and Actor.await, Bytes.build, Native.arena, details (path or host) on file and network errors, and Native API 1.4.
  • Startup: a cached program starts without loading the compiler (about 16 ms in place of 48 ms on Linux), a compiling run says Compiling FILE…, and agentica compile with no -o fills the cache ahead.
  • Faster: back-to-back compute def and native calls (about 3 µs in place of 15 to 25 µs), TCP and TLS I/O and ATS reads with several schedulers, the interpreter (4 to 6%), text work, Float to text and Bytes building.
  • Changed: TCP.write buffers on TLS sockets too; Float text and parsing are now shortest and nearest, which changes a few values on Windows.
  • Fixes: String#downcase final sigma, --max-heap hits on large lists on macOS arm64 and Windows, and JSON.decode defaults for missing keys.

Full list: CHANGELOG

0.32.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 06:46
9cec361
  • Breaking: agentica test now runs the scenarios of each --jobs slot in one worker process, about 5 times faster for many small scenarios. State made before BDD.run or set by a step is shared within a worker; --isolate gives each scenario its own process.
  • New: --max-heap SIZE, std/heap, ATS.push and ATS.clear, a TCP.write that does not wait for a slow peer (with TCP.write_limit and TCP.flush), Actor.inbox, and generic structs in JSON.decode.
  • Faster: ATS tables are hash tables (writes 5 to 8 times faster), chunked HTTP streams and uploads join waiting pieces, loops that call builtins are up to 17% faster, and Int loops up to 15% faster on x86-64.
  • Fixes in std/http (header limits, HTTP.open with no body), std/cache, JSON with aliased field types and none in map blocks.

Full list: CHANGELOG

0.32.0-alpha.2

0.32.0-alpha.2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 14 Nov 10:59
3550d48

Second alpha of 0.32.0. Alpha builds ship for Linux, macOS and Windows; features that land on Linux first may be missing on the others.

New since 0.32.0-alpha.1:

  • std/analysis: Analysis.bodies is complete: it covers the prelude bodies and every node kind, and gives the arguments of a call in the order they run.
  • Channel messages between tasks scale with the schedulers (no runtime-wide lock per send or receive), so message throughput is much higher. A channel timeout of a second or more may end up a few ms late on Linux.
  • Bug fixes: CHECK-REDEFINED-NAME help, PKG-LOCK-MISSING help, agentica check shows a problem of an imported file once.
  • Breaking: the call shape of Analysis.bodies nodes changed: each named argument is a named node, and there are no default placeholders.

Not signed or notarized.

Details: https://github.com/agentica-lang/agentica/blob/0.32.0-alpha.2/CHANGELOG.md#0320-alpha2---2026-11-14

0.32.0-alpha.1

0.32.0-alpha.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 14 Nov 07:32
986f9ca

First alpha of 0.32.0. An alpha because the work on std/analysis is not finished: #1159 PRs 4 and 5 are still pending.

What is new:

  • Analysis.bodies reads a std/ module as the binary carries it, says for each function whether it is pure (and why not in impure), and gives the type_args of generic calls.
  • std/actor: Actor.Timeout wakes an actor when no message came in time. Breaking: Actor.reply gives a Bool, and a call that times out closes its reply channel.
  • Process.poll_line, Process.signal, Process.signal_group, Process.spawn_group.
  • HTTP.shutdown stops a server gracefully.
  • System.subscribe and System.signal for signals. Breaking: SIGUSR1, SIGUSR2 and SIGQUIT now stop the program as SIGTERM does.
  • format("%-8s|%6.2f", name, price) is a builtin; def format is now an error.
  • JSON.node, test-only dependencies, agentica help File.Info.

Not signed or notarized. Full list: CHANGELOG.

0.31.2

Choose a tag to compare

@github-actions github-actions released this 14 Nov 09:39
857b15e

Patch release, bug fixes only (built from 0.31.1):

  • A hand-made .agcb that interpolates a bad Error fails with RUNTIME-INTERNAL under the JIT too, instead of crashing (#1561).
  • macOS: a stop signal after a task crash stops the program again (#1529).
  • none in a map block takes the Optional item of the expected list type (#1579).
  • List.uniq takes Bytes items (#1577).
  • r.error? help on a Result points to ok? (#1578).

Not signed or notarized. See the CHANGELOG.

0.31.1

Choose a tag to compare

@github-actions github-actions released this 13 Nov 23:55
fbafb16

A patch release of 0.31.0 with two fixes.

  • The location of an error returned by a function of an extern module block is now the place of the call, not of the declaration (#1466).
  • Task.monitor: a notice that finds its channel full is no longer dropped. A crash seen only through a monitor of a TaskRef (Task.current) is now reported as not observed (#1522).

Details: CHANGELOG.

0.31.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 16:30
e90cf12

Agentica 0.31.0 is the first stable release since 0.30.1. It includes the changes of 0.31.0-alpha.1.

Highlights:

  • Lambdas: ->(x) { x + 1 } is a function value, and a pipe step may name a method of the value: xs |> map(f) |> sum().
  • Named arguments for any function, std/ function or builtin: check(gen, verbose: true).
  • Errors have a type: a failed Result holds an Error with a kind, message, code, details, cause and location. error("unique failed", kind: "db.constraint", code: 19) builds one and e.is_a?("db") matches a family of kinds. Builtins and std/ report kinds such as io.not_found, net.timeout, http.too_large and denied.fs.
  • private: a private line in a file or module block makes the declarations after it private, and in a struct body makes the fields after it private to the module (the struct is built only there).
  • agentica = "0.31.0" in agentica.toml names the oldest Agentica a project or package needs.
  • Builtin types live under their module: File.Info, TCP.Socket, TLS.Context, Test.Case, JSON.Value, HTTP.Request.
  • agentica lint, refs and type-at understand named arguments and error kinds.

Breaking changes:

  • export before a declaration is a parse error. A declaration is public unless it comes after private: delete the export, and put private before the declarations you want to hide. export Alias.name still re-exports.
  • A file with no private is public as a whole (it exported only what it marked before): add private before what you want to hide. An import after a re-export is CHECK-DECL-ORDER: move the imports above it.
  • Builtin and std/ errors have kinds, and == with error("same text") no longer holds. Branch on e.kind or e.is_a?("io"), not on the message.
  • error(e) in a case binds an Error, not a String: write e.message.
  • A refused --deny-* or --sandbox call returns the kind denied.env, denied.fs, denied.net or denied.run, not error.
  • Old type names are unknown: write JSON.Value and JSON.Field (not Json, JsonField), File.Info, File.Handle, Process.Output, TCP.Socket, TCP.Listener, TLS.Context, TLS.ClientOptions, TLS.ServerOptions, Test.Case, and System.Profile.measure / System.Profile.steps.
  • From the alpha: a builtin has only its Ruby name (strip, to_i, list.join, ...); the HTTP types are HTTP.Request, HTTP.Response, HTTP.Header, HTTP.ClientOptions, HTTP.ServerOptions, HTTP.Client and HTTP.Server; Error is a reserved type name; nothing chains after the end of a do block (use braces); agentica test --jobs N runs the scenarios of one file as separate jobs (use --jobs 1 when they share a port, a path or a DB); the child channel of Process.spawn_channel is a pipe per direction.

Full list: CHANGELOG.

The archives are not signed or notarized.

0.31.0-alpha.1

0.31.0-alpha.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 12 Nov 19:44
b7b1956

Pre-release of 0.31.0. Each archive passed the release smoke test on its system, but the full test suite of the other systems (Platforms) was not awaited.

  • Faster BDD runs: agentica test --jobs N now spreads the scenarios of one feature file over the jobs, so one long file no longer sets the floor. Breaking: scenarios that share a port, a path or a database need --jobs 1.
  • Lambdas: ->(x) { x + 1 }, a lambda as a block, pipe steps that name a method (xs |> map(f) |> sum()), and agentica lint.
  • Breaking: builtins keep only their Ruby names (strip, to_i, list.join, ...); the HTTP types are HTTP.Request, HTTP.Response and the rest of std/http; Error is a reserved type name; nothing chains after the end of a do block.
  • String#edit_distance and String#jaro_winkler.

Programs written for 0.30 that use the old builtin or HTTP names get an error with a help that names the new form.

Full list: CHANGELOG.

0.30.1

Choose a tag to compare

@github-actions github-actions released this 11 Nov 22:16
70615ec

A patch release of 0.30 with one fix.

  • A guard (return x if c), a case or a while/for ... do inside a do block within [...], (...) or {...} no longer fails with LEX-UNMATCHED-DELIMITER or a parse error, so agentica fmt can write such code back.

Details: CHANGELOG.

0.30.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 18:10
3650419

Agentica 0.30.0.

Highlights:

  • Actors: std/actor runs tasks that own their state, with cast, call and stop, and std/supervisor restarts an actor that crashes (one for one).
  • channel.address gives an Address[T], a send-only reference that is data.
  • Module blocks: module Name ... end holds several modules in one file, and export module makes one importable.
  • DNS.lookup(host) gives the IPv4 and IPv6 addresses of a host name.
  • TCP.recv_bytes(socket, max_bytes) without a timeout waits with no limit.
  • Language: a case arm takes several patterns ("ex", "px" -> ...), + joins two lists, a builtin is a function value ([1, 2].map(&Int.to_s)), a range has the Enumerable methods of List, and a constant may be an ATS table shared by every task.
  • Fixes: running out of memory ends with agentica: out of memory, and on macOS x86_64 a native call through an_blocking no longer loses a value to the collector.

Breaking changes:

  • LogEvent and LogLevel are now Logger.Event and Logger.Level of std/logger; the old names are unknown, with a help.

Full list: CHANGELOG.

The archives are not signed or notarized.