Skip to content

Commit 4c249cf

Browse files
author
Disturbing
committed
Initial commit for playground v2.
1 parent f81ee81 commit 4c249cf

File tree

192 files changed

+10824
-22535
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+10824
-22535
lines changed

examples/dependent-agent/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"private": true,
55
"scripts": {
66
"deploy": "wrangler deploy",
7-
"dev": "wrangler dev",
7+
"dev": "nullshot dev",
88
"start": "wrangler dev",
99
"cf-typegen": "wrangler types",
10-
"dev:nullshot": "nullshot dev",
10+
"dev:wrangler": "wrangler dev",
1111
"postinstall": "nullshot install"
1212
},
1313
"dependencies": {

examples/dependent-agent/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class DependentAgent extends AiSdkAgent<Env> {
9191
},
9292
);
9393

94-
return result.toTextStreamResponse();
94+
return result.toUIMessageStreamResponse();
9595
}
9696
}
9797

examples/dependent-agent/worker-configuration.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/* eslint-disable */
2-
// Generated by Wrangler by running `wrangler types` (hash: 09a3a2ff44392b0c191d5bb00ea2f8e3)
2+
// Generated by Wrangler by running `wrangler types` (hash: 8c164cda8a902beb1409736cd08ba1ac)
33
// Runtime types generated with workerd@1.20250823.0 2025-06-01 nodejs_compat
44
declare namespace Cloudflare {
55
interface Env {
6-
AI_PROVIDER: "anthropic";
6+
AI_PROVIDER_API_KEY: string;
7+
MODEL_ID: string;
8+
AI_PROVIDER: string;
79
AGENT: DurableObjectNamespace<import("./src/index").DependentAgent>;
810
MCP_SERVICE: Fetcher /* mcp */;
911
}
@@ -13,7 +15,7 @@ type StringifyValues<EnvType extends Record<string, unknown>> = {
1315
[Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string;
1416
};
1517
declare namespace NodeJS {
16-
interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "AI_PROVIDER">> {}
18+
interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "AI_PROVIDER_API_KEY" | "MODEL_ID" | "AI_PROVIDER">> {}
1719
}
1820

1921
// Begin runtime types

examples/playground-showcase/.eslintrc.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

examples/playground-showcase/.gitignore

Lines changed: 0 additions & 43 deletions
This file was deleted.

examples/playground-showcase/README.md

Lines changed: 0 additions & 164 deletions
This file was deleted.

examples/playground-showcase/next-env.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/playground-showcase/next.config.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

examples/playground-showcase/package.json

Lines changed: 0 additions & 39 deletions
This file was deleted.

examples/playground-showcase/postcss.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)