feat: add observable and recoverable HTML animation agent runtime#15
Draft
lollipop798 wants to merge 3 commits into
Draft
feat: add observable and recoverable HTML animation agent runtime#15lollipop798 wants to merge 3 commits into
lollipop798 wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds an observable and recoverable HTML animation Agent Runtime to the Open SaaS interview starter. It uses PostgreSQL and Wasp PgBoss for durable execution without introducing Redis, and treats Run state, checkpoints, budgets, alerts, and audit records as first-class platform concerns.
The user workflow now supports:
Detailed documentation is available in English and 简体中文.
Architecture and decisions
AgentJobQueue,PromptOptimizationQueue,AnimationVideoQueue, andVideoObjectStorekeep workflow code independent from PgBoss, Local/S3 storage, and a future Redis/BullMQ worker deployment.QUEUEDrows without a PgBoss id as a transactional outbox.parentRunIdandthreadIdpreserve the complete version tree.sandbox="allow-scripts"and a restrictive CSP with network access blocked.SUCCEEDED.Validation
npm run lintnpm run prettier:checknpm run typecheckgit diff --checkThe deterministic Chromium E2E was completed with the local Wasp 0.24 compatibility environment before restoring the repository's declared Wasp
^0.25.0configuration. A Wasp 0.25 compile could not be run locally because the npm registry currently publishes the CLI only through 0.24.0.Known limitations
Follow-up work can add a Redis/BullMQ adapter, independent workers, provider fallback, webhook alerts, model evaluation, and richer video presets without changing the persisted Run and Step contracts.