Hello from agentOS Apps
-This HTML is served by an HTTP app running inside an agentOS VM.
- -This HTML is served by an HTTP app running inside an agentOS VM.
- -Loading JavaScript…
- - - diff --git a/vendor/agentos/examples/apps-static-website/fixtures/app/logo.svg b/vendor/agentos/examples/apps-static-website/fixtures/app/logo.svg deleted file mode 100644 index 0cef9946..00000000 --- a/vendor/agentos/examples/apps-static-website/fixtures/app/logo.svg +++ /dev/null @@ -1,4 +0,0 @@ - diff --git a/vendor/agentos/examples/apps-static-website/fixtures/app/styles.css b/vendor/agentos/examples/apps-static-website/fixtures/app/styles.css deleted file mode 100644 index c9acfaa9..00000000 --- a/vendor/agentos/examples/apps-static-website/fixtures/app/styles.css +++ /dev/null @@ -1,10 +0,0 @@ -:root { - color-scheme: dark; - font: 18px/1.5 system-ui, sans-serif; -} - -body { - max-width: 42rem; - margin: 6rem auto; - padding: 0 1.5rem; -} diff --git a/vendor/agentos/examples/apps-static-website/package.json b/vendor/agentos/examples/apps-static-website/package.json deleted file mode 100644 index 71eac20c..00000000 --- a/vendor/agentos/examples/apps-static-website/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "@rivet-dev/agentos-example-apps-static-website", - "version": "0.0.1", - "private": true, - "type": "module", - "scripts": { - "start": "node --import tsx src/server.ts", - "check-types": "tsc --noEmit" - }, - "dependencies": { - "@hono/node-server": "^2.0.11", - "@rivet-dev/agentos": "workspace:*", - "@rivet-dev/agentos-apps": "workspace:*", - "hono": "^4.12.9", - "rivetkit": "catalog:rivetkit" - }, - "devDependencies": { - "@types/node": "^22.19.15", - "tsx": "^4.20.6", - "typescript": "^5.7.3" - } -} diff --git a/vendor/agentos/examples/apps-static-website/src/actors.ts b/vendor/agentos/examples/apps-static-website/src/actors.ts deleted file mode 100644 index 1664777e..00000000 --- a/vendor/agentos/examples/apps-static-website/src/actors.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { setup } from "@rivet-dev/agentos"; -import { setupApps } from "@rivet-dev/agentos-apps"; - -const { appsActors } = setupApps(); - -export const registry = setup({ - use: { - // These actors manage app deployments and scaling. - ...appsActors, - }, -}); diff --git a/vendor/agentos/examples/apps-static-website/src/server.ts b/vendor/agentos/examples/apps-static-website/src/server.ts deleted file mode 100644 index 751ae7ef..00000000 --- a/vendor/agentos/examples/apps-static-website/src/server.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { serve } from "@hono/node-server"; -import { appsRouter, deployApp } from "@rivet-dev/agentos-apps"; -import { Hono } from "hono"; -import { registry } from "./actors.js"; - -registry.start(); - -const server = new Hono(); - -// In production, an agent or any other part of the system can upload app files -// here as multipart form data. This static example deploys its checked fixture. -server.post("/deploy/:name", async (context) => { - return context.json( - await deployApp({ - appId: context.req.param("name"), - source: new URL("../fixtures/app/", import.meta.url), - }), - ); -}); - -server.route("/apps", appsRouter); - -serve({ - fetch: server.fetch, - port: 3000, -}); diff --git a/vendor/agentos/examples/apps-static-website/tsconfig.json b/vendor/agentos/examples/apps-static-website/tsconfig.json deleted file mode 100644 index 05028f5c..00000000 --- a/vendor/agentos/examples/apps-static-website/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2022", - "lib": ["ES2022", "DOM"], - "module": "NodeNext", - "moduleResolution": "NodeNext", - "strict": true, - "noEmit": true, - "skipLibCheck": true - }, - "include": ["src"] -} diff --git a/vendor/agentos/examples/apps-workflows/README.md b/vendor/agentos/examples/apps-workflows/README.md deleted file mode 100644 index 22ea82c3..00000000 --- a/vendor/agentos/examples/apps-workflows/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# agentOS Apps: Workflows - -The deployed server defines a keyed `job` actor and an HTTP handler. The -separate `src/client.ts` deploys it, connects with the returned namespace and -pool, and creates a durable workflow through DirectActor. - -Run the checked workspace example with Node.js 22 or newer: - -```sh -pnpm --dir examples/apps-workflows start -# In another terminal: -pnpm --dir examples/apps-workflows client -``` - -RivetKit starts its local Engine automatically. Against an existing Rivet -deployment, use the standard Rivet connection variables instead. The deployed -HTTP handler is available at -`http://localhost:3000/apps/durable-workflow`. diff --git a/vendor/agentos/examples/apps-workflows/fixtures/app/package.json b/vendor/agentos/examples/apps-workflows/fixtures/app/package.json deleted file mode 100644 index 203476cf..00000000 --- a/vendor/agentos/examples/apps-workflows/fixtures/app/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "durable-workflow-app", - "version": "0.0.0", - "private": true, - "type": "module", - "main": "src/index.ts", - "scripts": { - "check-types": "node --check src/index.mjs" - }, - "dependencies": { - "rivetkit": "2.3.10" - } -} diff --git a/vendor/agentos/examples/apps-workflows/fixtures/app/src/index.ts b/vendor/agentos/examples/apps-workflows/fixtures/app/src/index.ts deleted file mode 100644 index 28553b14..00000000 --- a/vendor/agentos/examples/apps-workflows/fixtures/app/src/index.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { actor, setup } from "rivetkit"; -import { workflow } from "rivetkit/workflow"; - -const job = actor({ - state: { - id: "", - status: "queued" as "queued" | "running" | "complete", - }, - onCreate(c) { - c.state.id = c.key[0] ?? ""; - }, - actions: { - inspect: (c) => c.state, - }, - run: workflow(async (workflowContext) => { - await workflowContext.step("start", async (c) => { - c.state.status = "running"; - }); - await workflowContext.sleep("work", 1_000); - await workflowContext.step("finish", async (c) => { - c.state.status = "complete"; - }); - }), -}); - -export const registry = setup({ - use: { job }, -}); - -registry.start(); - -export default function fetch() { - return Response.json({ - app: "durable-workflow", - message: "Use the RivetKit client to create and inspect jobs.", - }); -} diff --git a/vendor/agentos/examples/apps-workflows/package.json b/vendor/agentos/examples/apps-workflows/package.json deleted file mode 100644 index 8e35840d..00000000 --- a/vendor/agentos/examples/apps-workflows/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "@rivet-dev/agentos-example-apps-workflows", - "version": "0.0.1", - "private": true, - "type": "module", - "scripts": { - "start": "node --import tsx src/server.ts", - "client": "node --import tsx src/client.ts", - "check-types": "tsc --noEmit" - }, - "dependencies": { - "@hono/node-server": "^2.0.11", - "@rivet-dev/agentos": "workspace:*", - "@rivet-dev/agentos-apps": "workspace:*", - "hono": "^4.12.9", - "rivetkit": "catalog:rivetkit" - }, - "devDependencies": { - "@types/node": "^22.19.15", - "tsx": "^4.20.6", - "typescript": "^5.7.3" - } -} diff --git a/vendor/agentos/examples/apps-workflows/src/actors.ts b/vendor/agentos/examples/apps-workflows/src/actors.ts deleted file mode 100644 index 1664777e..00000000 --- a/vendor/agentos/examples/apps-workflows/src/actors.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { setup } from "@rivet-dev/agentos"; -import { setupApps } from "@rivet-dev/agentos-apps"; - -const { appsActors } = setupApps(); - -export const registry = setup({ - use: { - // These actors manage app deployments and scaling. - ...appsActors, - }, -}); diff --git a/vendor/agentos/examples/apps-workflows/src/client.ts b/vendor/agentos/examples/apps-workflows/src/client.ts deleted file mode 100644 index 8ec6aea3..00000000 --- a/vendor/agentos/examples/apps-workflows/src/client.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type { Deployment } from "@rivet-dev/agentos-apps"; -import { createClient } from "rivetkit/client"; -import type { registry as appRegistry } from "../fixtures/app/src/index.js"; - -const response = await fetch("http://localhost:3000/deploy/durable-workflow", { - method: "POST", -}); -if (!response.ok) { - throw new Error(`deployment failed: ${response.status} ${await response.text()}`); -} -const deployment = (await response.json()) as Deployment; - -const client = createClient