Skip to content

Releases: beogip/code-first-agents-tool

v0.1.5

Choose a tag to compare

@github-actions github-actions released this 08 Jun 03:29

0.1.5 (2026-06-08)

Bug Fixes

  • args: warn when positionals overwrite an explicit --_ flag (#39) (366b422), closes #19
  • emit extension-free bundled declarations for published types (#33) (3841ab1), closes #18

v0.1.4

Choose a tag to compare

@github-actions github-actions released this 07 Jun 16:29

0.1.4 (2026-06-07)

Bug Fixes

  • package: complete metadata for npm discovery (#31) (27dd3f6), closes #24

v0.1.3

Choose a tag to compare

@github-actions github-actions released this 07 Jun 16:00

0.1.3 (2026-06-07)

Bug Fixes

  • ci: rewrite kael.code SSH URL to HTTPS so plugin install works in CI (#29) (f3239e9)

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 07 Jun 15:51

0.1.2 (2026-06-07)

Bug Fixes

  • ci: pin Bun to exact 1.2.23 — setup-bun rejects 1.2.x wildcard (#28) (83bea42)

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 24 May 13:23

0.1.1 (2026-05-24)

Bug Fixes

  • add SSH key and persist credentials for checkout step (6544536)
  • ci: use SSH repositoryUrl for semantic-release to bypass branch ruleset (b72e2be)
  • trigger first automated release (17e6cdd)

v0.1.0 — Initial release

Choose a tag to compare

@beogip beogip released this 07 Jun 23:50
7ef0a4e

Initial release of @code-first-agents/tool — the TypeScript implementation of the Code-First Agents pattern. It provides the Tool base class for building deterministic CLI tools that LLM agents can discover, validate, and invoke with zero guesswork.

Features

  • Tool base class — register subcommands (.subcommand()) with Zod input/output schemas, then dispatch from the CLI via .run(argv) — which always exits 0 — or call .invoke(name, args) for in-process use, which returns the result envelope without exiting.
  • Typed output levels (L1/L2/L3)l1Output (raw data fields), l2Output (requires a classification enum), and l3Output (adds a required instructions string) helpers, each baking the { ok, message } envelope for the output spectrum.
  • Self-describing introspection — auto-registered schema (JSON Schema for every subcommand) and help builtins; neither is user-overridable.
  • Always-exit-0 semantics — every path, including errors, exits 0 and reports status via an ok: false JSON envelope (unknown_subcommand, input_validation_error, schema_violation, non_object_return, unexpected_error); handlers throw ToolError for domain-specific codes.
  • Zod v4 schema validation — input/output validated on every call; .strict() input schemas reject unknown flags. Requires the zod@^4 peer dependency; developed and tested on Bun >= 1.2.

📦 npm: @code-first-agents/tool · 📖 Pattern spec