Skip to content
Draft

V2 #67

Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
1778562
WIP
davidkpiano Mar 31, 2026
0123b2e
Rework
davidkpiano Apr 3, 2026
2020c01
Types WIP
davidkpiano Apr 4, 2026
27a6697
Simplify: flat state
davidkpiano Apr 5, 2026
a4b8071
docs: add langgraph core replacement design
davidkpiano Apr 8, 2026
a3a2d75
docs: refine langgraph replacement event model
davidkpiano Apr 9, 2026
d1842e2
feat: add durable session store foundation
davidkpiano Apr 9, 2026
3c85ab9
fix: align durable snapshot contract
davidkpiano Apr 9, 2026
50b382b
fix: emit durable stream snapshots
davidkpiano Apr 9, 2026
18057e6
fix: key run store by event session
davidkpiano Apr 9, 2026
07c06bc
fix: stabilize stream snapshot runtime
davidkpiano Apr 9, 2026
d659e94
fix: harden stream and replay metadata
davidkpiano Apr 9, 2026
6c4bccb
fix: unify durable snapshot restore shape
davidkpiano Apr 9, 2026
4f305d1
fix: simplify replay cursor contract
davidkpiano Apr 9, 2026
4b9ab8d
feat: add durable session runtime
davidkpiano Apr 9, 2026
ce8dce4
WIP
davidkpiano Apr 10, 2026
186aefb
feat: expand durable agent runtime and langgraph coverage
davidkpiano Apr 18, 2026
ccc71e0
feat: add stately graph export and workflow examples
davidkpiano Apr 18, 2026
e513614
feat: add agent machine conversion CLI
davidkpiano Apr 20, 2026
dd82cf9
feat: improve graph analysis and retry workflows
davidkpiano Apr 23, 2026
7b5eea0
feat: surface conversion warnings and durable retry restore
davidkpiano Apr 23, 2026
118eadf
feat: clarify xstate visualization and conditional subflows
davidkpiano Apr 23, 2026
5672cc3
feat: add durable workflow parity and node baseline
davidkpiano Apr 24, 2026
e7ef00a
feat: add durable supervisor and streaming examples
davidkpiano Apr 24, 2026
b26a554
feat: add http session example
davidkpiano Apr 24, 2026
72260b6
feat: add durable http streaming example
davidkpiano Apr 25, 2026
23910f1
feat: add parity matrix and core workflow examples
davidkpiano Apr 25, 2026
59161ce
feat: add ai sdk and cloudflare agents examples
davidkpiano Apr 25, 2026
0f974b2
feat: add next app router example
davidkpiano Apr 26, 2026
4224da7
feat: add next ai sdk ui example
davidkpiano Apr 26, 2026
be277fb
feat: reorganize and modernize examples
davidkpiano Apr 27, 2026
4bde82c
feat: add runtime adapter subpaths
davidkpiano May 5, 2026
858ce6f
Add first-class messages and always transitions
davidkpiano May 14, 2026
c169a3d
Add generative state schemas
davidkpiano May 17, 2026
584f41b
Refocus agent runtime surface
davidkpiano May 22, 2026
79cb302
Add V2 serverless and email examples
davidkpiano May 22, 2026
d750efc
Make setupAgent withTasks the authoring API
davidkpiano Jun 18, 2026
e0c3b6e
Add agent machine task execution helpers
davidkpiano Jun 18, 2026
f2e5561
Use text executors for agent machine tasks
davidkpiano Jun 18, 2026
f33a0c2
Add dinavinter agents equivalence tests
davidkpiano Jun 18, 2026
3e747f6
Add appendMessages action helper
davidkpiano Jun 18, 2026
efd087d
Harden setupAgent task authoring
davidkpiano Jun 18, 2026
01c24f6
Separate host examples from authoring
davidkpiano Jun 18, 2026
c81ed60
Split AI SDK authored examples from host
davidkpiano Jun 18, 2026
8fc9681
Fix v2 agent API seams
davidkpiano Jun 19, 2026
c149431
Prune stale adapter API
davidkpiano Jun 19, 2026
c291a14
Add static agent workflow config support
davidkpiano Jun 24, 2026
0ff0b8c
Refine reusable text logic API
davidkpiano Jun 24, 2026
f55b781
Add setupAgent requests API
davidkpiano Jun 25, 2026
5eaf035
Add configurable event tool names
davidkpiano Jun 25, 2026
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
59 changes: 59 additions & 0 deletions examples_old/email2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import { setup, SnapshotFrom } from 'xstate';
import { mapState } from '../src/mapState';

const machine = setup({}).createMachine({
initial: 'checking',
states: {
checking: {
on: {
askForClarification: {
target: 'clarifying',
},
submitEmail: {
target: 'submitting',
},
},
},
clarifying: {
on: {
provideClarification: {
target: 'checking',
},
},
},
submitting: {
on: {
confirm: {
target: 'done',
},
},
},
done: {
type: 'final',
},
},
});

function getStuff(snapshot: SnapshotFrom<typeof machine>) {
return mapState<
typeof snapshot,
{
goal: string;
}
>(snapshot, {
states: {
checking: {
map: () => ({
goal: 'Respond to the email given the instructions and the provided clarifications. If not enough information is provided, ask for clarification. Otherwise, if you are absolutely sure that there is no ambiguous or missing information, create and submit a response email.',
}),
},
submitting: {
map: () => ({
goal: 'Create and submit an email based on the instructions.',
}),
},
},
});
}

async function main() {}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
34 changes: 34 additions & 0 deletions examples_old/hono/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# prod
dist/
dist-server/

# dev
.yarn/
!.yarn/releases
.vscode/*
!.vscode/launch.json
!.vscode/*.code-snippets
.idea/workspace.xml
.idea/usage.statistics.xml
.idea/shelf

# deps
node_modules/
.wrangler

# env
.env
.env.production
.dev.vars

# logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# misc
.DS_Store
21 changes: 21 additions & 0 deletions examples_old/hono/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
```txt
npm install
npm run dev
```

```txt
npm run deploy
```

[For generating/synchronizing types based on your Worker configuration run](https://developers.cloudflare.com/workers/wrangler/commands/#types):

```txt
npm run cf-typegen
```

Pass the `CloudflareBindings` as generics when instantiation `Hono`:

```ts
// src/index.ts
const app = new Hono<{ Bindings: CloudflareBindings }>()
```
23 changes: 23 additions & 0 deletions examples_old/hono/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "hono",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "$npm_execpath run build && vite preview",
"deploy": "$npm_execpath run build && wrangler deploy",
"cf-typegen": "wrangler types --env-interface CloudflareBindings"
},
"dependencies": {
"@ai-sdk/openai": "^3.0.24",
"ai": "^6.0.66",
"hono": "^4.11.7",
"xstate": "^5.26.0",
"zod": "^3.23.0"
},
"devDependencies": {
"@cloudflare/vite-plugin": "^1.2.3",
"vite": "^6.3.5",
"wrangler": "^4.17.0"
}
}
Loading