mirror of
https://github.com/run-llama/workflows-ts.git
synced 2026-07-19 09:35:53 -04:00
[PR #141] [MERGED] feat: update handler signature to use context parameter instead of getContext() #142
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/workflows-ts/pull/141
Author: @thucpn
Created: 8/20/2025
Status: ✅ Merged
Merged: 8/21/2025
Merged by: @marcusschiesser
Base:
main← Head:tp/context-param📝 Commits (10+)
455dbd3fix: workflow with state exampleaa6af0ffeat: update handler signature to use context parameter instead of getContext()a8b47efMerge branch 'main' into tp/context-param85661cdfix formatd52efa4update testa09e6b7update example0979e32mark getContext deprecated8d8b5e5infer type for withStatebed0c5ffix typec65e870fix format📊 Changes
21 files changed (+307 additions, -208 deletions)
View changed files
➕
.changeset/tall-swans-flash.md(+7 -0)📝
demo/cloudflare/src/index.ts(+1 -1)📝
demo/node/basic.ts(+4 -4)📝
demo/node/mcp-file-parse-tool.ts(+16 -13)📝
demo/node/workflow-with-state.ts(+9 -9)📝
demo/workflows/file-parse-agent.ts(+51 -41)📝
demo/workflows/human-in-the-loop.ts(+3 -3)📝
demo/workflows/llama-parse-workflow.ts(+29 -11)➕
demo/workflows/sample.pdf(+0 -0)📝
demo/workflows/tool-call-agent.ts(+4 -9)📝
packages/core/src/core/context.ts(+16 -2)📝
packages/core/src/middleware/state.ts(+40 -12)📝
packages/core/src/middleware/validation.ts(+5 -1)📝
packages/core/src/util/p-retry.ts(+10 -7)📝
packages/core/tests/core/context-api.spec.ts(+39 -26)📝
packages/core/tests/core/readable-stream.spec.ts(+35 -33)📝
packages/core/tests/core/run-helpers.spec.ts(+7 -8)📝
packages/core/tests/middleware/full-workflow.spec.ts(+11 -7)📝
packages/core/tests/middleware/state-with-snapshot.spec.ts(+8 -10)📝
packages/core/tests/middleware/with-snapshot.spec.ts(+6 -6)...and 1 more files
📄 Description
No description provided
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.