Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/step-finish-ai-sdk-passthrough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@funkai/agents": minor
---

Pass through full AI SDK `StepResult` fields in `onStepFinish` events instead of stripping tool calls/results to summary fields. `StepFinishEvent` is now a superset of the Vercel AI SDK's `StepResult<ToolSet>` — all SDK fields (`text`, `toolCalls`, `toolResults`, `finishReason`, `usage`, `reasoning`, `sources`, `response`, etc.) are passed through unchanged, plus funkai-specific additions (`stepId`, `agentChain`).

**Breaking:** `toolCalls` entries now contain full AI SDK `TypedToolCall` objects (with `input`) instead of `{ toolName, argsTextLength }`. `toolResults` entries now contain full `TypedToolResult` objects (with `output`) instead of `{ toolName, resultTextLength }`. `usage` is now the AI SDK's `LanguageModelUsage` type (with `undefined`-able fields) instead of a simplified `{ inputTokens: number; outputTokens: number; totalTokens: number }`.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,16 @@ jobs:

- name: Check for changeset
run: pnpm changeset status --since=origin/main

- name: Block major version bumps (pre-1.0)
run: |
shopt -s nullglob
found=0
for f in .changeset/*.md; do
[ "$f" = ".changeset/README.md" ] && continue
if grep -qP '^"@funkai/.+?":\s*major' "$f"; then
echo "::error file=$f::Major bump detected — all @funkai/* packages are pre-1.0. Use 'minor' for breaking changes."
found=1
fi
done
exit $found
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ For architectural details, see [Architecture](contributing/concepts/architecture
- **Commit format**: Conventional Commits (`type(scope): description`)
- **Types**: feat, fix, docs, refactor, test, chore, perf, style, ci, deps, revert
- **Scopes**: packages/models, packages/agents, packages/prompts, workspace, tooling
- **Changesets**: Run `pnpm changeset` for changes to published packages
- **Changesets**: Run `pnpm changeset` for changes to published packages. All `@funkai/*` packages are **pre-1.0** — use `minor` for breaking changes, `patch` for non-breaking. **Never use `major`** until the team decides to release 1.0. CI will reject PRs with major bumps.
- **PR standards**: Keep PRs focused — one feature/fix per PR

For details, see [Commit Standards](contributing/standards/git-commits.md) and [PR Standards](contributing/standards/git-pulls.md).
Expand Down
8 changes: 0 additions & 8 deletions packages/agents/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# @funkai/agents

## 1.0.0

### Major Changes

- 2d7b765: Pass through full AI SDK `StepResult` fields in `onStepFinish` events instead of stripping tool calls/results to summary fields. `StepFinishEvent` is now a superset of the Vercel AI SDK's `StepResult<ToolSet>` — all SDK fields (`text`, `toolCalls`, `toolResults`, `finishReason`, `usage`, `reasoning`, `sources`, `response`, etc.) are passed through unchanged, plus funkai-specific additions (`stepId`, `agentChain`).

**Breaking:** `toolCalls` entries now contain full AI SDK `TypedToolCall` objects (with `input`) instead of `{ toolName, argsTextLength }`. `toolResults` entries now contain full `TypedToolResult` objects (with `output`) instead of `{ toolName, resultTextLength }`. `usage` is now the AI SDK's `LanguageModelUsage` type (with `undefined`-able fields) instead of a simplified `{ inputTokens: number; outputTokens: number; totalTokens: number }`.

## 0.12.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/agents/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@funkai/agents",
"version": "1.0.0",
"version": "0.12.1",
"private": false,
"description": "Lightweight workflow and agent orchestration framework",
"keywords": [
Expand Down
Loading