From 1f7851d5e3d253a3406469e9a44556e4e85197a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=9C=88?= Date: Fri, 8 May 2026 10:32:57 +0800 Subject: [PATCH] chore: remove outdated examples/ folder Delete examples/ workspace and remove from workspaces config. --- examples/hello-world.ts | 45 ----------------------------------------- examples/package.json | 9 --------- package.json | 3 +-- 3 files changed, 1 insertion(+), 56 deletions(-) delete mode 100644 examples/hello-world.ts delete mode 100644 examples/package.json diff --git a/examples/hello-world.ts b/examples/hello-world.ts deleted file mode 100644 index dccabea..0000000 --- a/examples/hello-world.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { createWorkflow, END, type RoleDefinition } from "@uncaged/workflow"; -import * as z from "zod/v4"; - -type Roles = { - greeter: { greeting: string }; -}; - -const greeterMetaSchema = z.object({ - greeting: z.string(), -}); - -export const descriptor = { - description: "A simple hello world workflow", - roles: { - greeter: { - description: "Generates a greeting", - schema: { - type: "object", - properties: { greeting: { type: "string" } }, - required: ["greeting"], - }, - }, - }, -}; - -const greeter: RoleDefinition = { - description: "Generates a greeting", - systemPrompt: "You greet the user briefly.", - extractPrompt: "Extract the greeting string produced for the user.", - schema: greeterMetaSchema, - extractRefs: null, - extractMode: "single", -}; - -export const run = createWorkflow( - { - roles: { greeter }, - moderator(ctx) { - return ctx.steps.length === 0 ? "greeter" : END; - }, - }, - { - agent: async (ctx) => `Hello, ${ctx.start.content}`, - }, -); diff --git a/examples/package.json b/examples/package.json deleted file mode 100644 index f9b7e90..0000000 --- a/examples/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "@uncaged/workflow-examples", - "private": true, - "type": "module", - "dependencies": { - "@uncaged/workflow": "workspace:*", - "zod": "^4.0.0" - } -} diff --git a/package.json b/package.json index 18079fd..9ecc7a7 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,7 @@ "name": "@uncaged/workflow-monorepo", "private": true, "workspaces": [ - "packages/*", - "examples" + "packages/*" ], "scripts": { "check": "bunx tsc --build && biome check .",