@builderos/create-agent-os 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/bin/cli.js +133 -0
- package/package.json +40 -0
- package/src/template/App.tsx +68 -0
- package/src/template/agent-os/commands/create-tasks/1-get-spec-requirements.md +19 -0
- package/src/template/agent-os/commands/create-tasks/2-create-tasks-list.md +234 -0
- package/src/template/agent-os/commands/create-tasks/create-tasks.md +254 -0
- package/src/template/agent-os/commands/design-screen/design-screen.md +32 -0
- package/src/template/agent-os/commands/design-shell/design-shell.md +34 -0
- package/src/template/agent-os/commands/design-tokens/design-tokens.md +36 -0
- package/src/template/agent-os/commands/export-product/export-product.md +44 -0
- package/src/template/agent-os/commands/implement-tasks/1-determine-tasks.md +13 -0
- package/src/template/agent-os/commands/implement-tasks/2-implement-tasks.md +63 -0
- package/src/template/agent-os/commands/implement-tasks/3-verify-implementation.md +113 -0
- package/src/template/agent-os/commands/implement-tasks/implement-tasks.md +207 -0
- package/src/template/agent-os/commands/initialize-design/initialize-design.md +54 -0
- package/src/template/agent-os/commands/orchestrate-tasks/orchestrate-tasks.md +180 -0
- package/src/template/agent-os/commands/plan-product/1-product-concept.md +53 -0
- package/src/template/agent-os/commands/plan-product/2-create-mission.md +78 -0
- package/src/template/agent-os/commands/plan-product/3-create-roadmap.md +73 -0
- package/src/template/agent-os/commands/plan-product/4-create-tech-stack.md +46 -0
- package/src/template/agent-os/commands/plan-product/plan-product.md +241 -0
- package/src/template/agent-os/commands/sample-data/sample-data.md +51 -0
- package/src/template/agent-os/commands/scaffold-implementation/scaffold-implementation.md +36 -0
- package/src/template/agent-os/commands/screenshot-design/screenshot-design.md +21 -0
- package/src/template/agent-os/commands/shape-spec/1-initialize-spec.md +95 -0
- package/src/template/agent-os/commands/shape-spec/2-shape-spec.md +300 -0
- package/src/template/agent-os/commands/shape-spec/shape-spec.md +40 -0
- package/src/template/agent-os/commands/write-spec/write-spec.md +134 -0
- package/src/template/agent-os/config.yml +13 -0
- package/src/template/agent-os/product/mission.md +29 -0
- package/src/template/agent-os/product/roadmap.md +9 -0
- package/src/template/agent-os/product/tech-stack.md +14 -0
- package/src/template/agent-os/specs/README.md +1 -0
- package/src/template/agent-os/standards/backend/api.md +10 -0
- package/src/template/agent-os/standards/backend/migrations.md +9 -0
- package/src/template/agent-os/standards/backend/models.md +10 -0
- package/src/template/agent-os/standards/backend/queries.md +9 -0
- package/src/template/agent-os/standards/frontend/accessibility.md +10 -0
- package/src/template/agent-os/standards/frontend/components.md +11 -0
- package/src/template/agent-os/standards/frontend/css.md +7 -0
- package/src/template/agent-os/standards/frontend/responsive.md +11 -0
- package/src/template/agent-os/standards/global/coding-style.md +10 -0
- package/src/template/agent-os/standards/global/commenting.md +5 -0
- package/src/template/agent-os/standards/global/conventions.md +11 -0
- package/src/template/agent-os/standards/global/error-handling.md +9 -0
- package/src/template/agent-os/standards/global/tech-stack.md +31 -0
- package/src/template/agent-os/standards/global/validation.md +11 -0
- package/src/template/agent-os/standards/testing/test-writing.md +9 -0
- package/src/template/agent-os-ui/README.md +73 -0
- package/src/template/agent-os-ui/package-lock.json +5028 -0
- package/src/template/agent-os-ui/package.json +52 -0
- package/src/template/agent-os-ui/postcss.config.js +6 -0
- package/src/template/agent-os-ui/src/components/AgentShell.tsx +31 -0
- package/src/template/agent-os-ui/src/components/AgentSidebar.tsx +65 -0
- package/src/template/agent-os-ui/src/components/GuidanceCard.tsx +75 -0
- package/src/template/agent-os-ui/src/components/MarkdownViewer.tsx +25 -0
- package/src/template/agent-os-ui/src/components/PromptButton.tsx +28 -0
- package/src/template/agent-os-ui/src/components/StatusItem.tsx +45 -0
- package/src/template/agent-os-ui/src/components/ThemeToggle.tsx +72 -0
- package/src/template/agent-os-ui/src/index.ts +11 -0
- package/src/template/agent-os-ui/src/style.css +3 -0
- package/src/template/agent-os-ui/tailwind.config.js +50 -0
- package/src/template/agent-os-ui/tsconfig.json +33 -0
- package/src/template/agent-os-ui/vite.config.ts +32 -0
- package/src/template/control-center/backend/backend.log +2 -0
- package/src/template/control-center/backend/index.js +228 -0
- package/src/template/control-center/backend/package-lock.json +951 -0
- package/src/template/control-center/backend/package.json +19 -0
- package/src/template/control-center/frontend/README.md +73 -0
- package/src/template/control-center/frontend/eslint.config.js +23 -0
- package/src/template/control-center/frontend/index.html +21 -0
- package/src/template/control-center/frontend/package-lock.json +5752 -0
- package/src/template/control-center/frontend/package.json +42 -0
- package/src/template/control-center/frontend/public/runtime-config.json +11 -0
- package/src/template/control-center/frontend/public/vite.svg +1 -0
- package/src/template/control-center/frontend/src/App.css +42 -0
- package/src/template/control-center/frontend/src/App.tsx +738 -0
- package/src/template/control-center/frontend/src/assets/react.svg +1 -0
- package/src/template/control-center/frontend/src/components/ThemeToggle.tsx +64 -0
- package/src/template/control-center/frontend/src/components/ui/ToastContext.tsx +81 -0
- package/src/template/control-center/frontend/src/index.css +194 -0
- package/src/template/control-center/frontend/src/main.tsx +14 -0
- package/src/template/control-center/frontend/src/vite-env.d.ts +1 -0
- package/src/template/control-center/frontend/tsconfig.app.json +28 -0
- package/src/template/control-center/frontend/tsconfig.json +7 -0
- package/src/template/control-center/frontend/tsconfig.node.json +26 -0
- package/src/template/control-center/frontend/vite.config.ts +22 -0
- package/src/template/design/.claude/commands/design-os/data-model.md +122 -0
- package/src/template/design/.claude/commands/design-os/design-screen.md +309 -0
- package/src/template/design/.claude/commands/design-os/design-shell.md +238 -0
- package/src/template/design/.claude/commands/design-os/design-tokens.md +166 -0
- package/src/template/design/.claude/commands/design-os/export-product.md +1105 -0
- package/src/template/design/.claude/commands/design-os/product-roadmap.md +121 -0
- package/src/template/design/.claude/commands/design-os/product-vision.md +99 -0
- package/src/template/design/.claude/commands/design-os/sample-data.md +263 -0
- package/src/template/design/.claude/commands/design-os/screenshot-design.md +112 -0
- package/src/template/design/.claude/commands/design-os/shape-section.md +138 -0
- package/src/template/design/.claude/skills/frontend-design/SKILL.md +42 -0
- package/src/template/design/.github/CODE_OF_CONDUCT.md +5 -0
- package/src/template/design/.github/CONTRIBUTING.md +51 -0
- package/src/template/design/.github/ISSUE_TEMPLATE/config.yml +22 -0
- package/src/template/design/.github/PULL_REQUEST_TEMPLATE.md +20 -0
- package/src/template/design/.github/SECURITY.yml +5 -0
- package/src/template/design/.github/SUPPORT.md +19 -0
- package/src/template/design/.github/workflows/pr-decline.yml +135 -0
- package/src/template/design/.github/workflows/stale.yml +25 -0
- package/src/template/design/CHANGELOG.md +13 -0
- package/src/template/design/LICENSE +21 -0
- package/src/template/design/README.md +54 -0
- package/src/template/design/agents.md +218 -0
- package/src/template/design/claude.md +1 -0
- package/src/template/design/components.json +22 -0
- package/src/template/design/docs/codebase-implementation.md +153 -0
- package/src/template/design/docs/design-section.md +135 -0
- package/src/template/design/docs/export.md +149 -0
- package/src/template/design/docs/getting-started.md +59 -0
- package/src/template/design/docs/index.md +56 -0
- package/src/template/design/docs/product-planning.md +113 -0
- package/src/template/design/docs/requirements.md +22 -0
- package/src/template/design/docs/usage.md +62 -0
- package/src/template/design/eslint.config.js +23 -0
- package/src/template/design/index.html +21 -0
- package/src/template/design/package-lock.json +5473 -0
- package/src/template/design/package.json +47 -0
- package/src/template/design/product-plan.zip +0 -0
- package/src/template/design/public/vite.svg +1 -0
- package/src/template/design/src/assets/react.svg +1 -0
- package/src/template/design/src/components/AppLayout.tsx +95 -0
- package/src/template/design/src/components/DataCard.tsx +139 -0
- package/src/template/design/src/components/DataModelPage.tsx +120 -0
- package/src/template/design/src/components/DesignPage.tsx +284 -0
- package/src/template/design/src/components/EmptyState.tsx +155 -0
- package/src/template/design/src/components/ExportPage.tsx +344 -0
- package/src/template/design/src/components/NextPhaseButton.tsx +33 -0
- package/src/template/design/src/components/PhaseNav.tsx +152 -0
- package/src/template/design/src/components/PhaseWarningBanner.tsx +81 -0
- package/src/template/design/src/components/ProductOverviewCard.tsx +102 -0
- package/src/template/design/src/components/ProductPage.tsx +97 -0
- package/src/template/design/src/components/ScreenDesignPage.tsx +370 -0
- package/src/template/design/src/components/ScreenDesignsCard.tsx +49 -0
- package/src/template/design/src/components/SectionPage.tsx +256 -0
- package/src/template/design/src/components/SectionsCard.tsx +47 -0
- package/src/template/design/src/components/SectionsPage.tsx +181 -0
- package/src/template/design/src/components/ShellCard.tsx +85 -0
- package/src/template/design/src/components/ShellDesignPage.tsx +242 -0
- package/src/template/design/src/components/SpecCard.tsx +121 -0
- package/src/template/design/src/components/StepIndicator.tsx +75 -0
- package/src/template/design/src/components/ThemeToggle.tsx +86 -0
- package/src/template/design/src/components/ui/ToastContext.tsx +81 -0
- package/src/template/design/src/components/ui/avatar.tsx +53 -0
- package/src/template/design/src/components/ui/badge.tsx +46 -0
- package/src/template/design/src/components/ui/button.tsx +60 -0
- package/src/template/design/src/components/ui/card.tsx +92 -0
- package/src/template/design/src/components/ui/collapsible.tsx +48 -0
- package/src/template/design/src/components/ui/dialog.tsx +143 -0
- package/src/template/design/src/components/ui/dropdown-menu.tsx +255 -0
- package/src/template/design/src/components/ui/input.tsx +21 -0
- package/src/template/design/src/components/ui/label.tsx +22 -0
- package/src/template/design/src/components/ui/progress.tsx +24 -0
- package/src/template/design/src/components/ui/scroll-area.tsx +18 -0
- package/src/template/design/src/components/ui/select.tsx +67 -0
- package/src/template/design/src/components/ui/separator.tsx +28 -0
- package/src/template/design/src/components/ui/sheet.tsx +137 -0
- package/src/template/design/src/components/ui/skeleton.tsx +13 -0
- package/src/template/design/src/components/ui/switch.tsx +46 -0
- package/src/template/design/src/components/ui/table.tsx +116 -0
- package/src/template/design/src/components/ui/tabs.tsx +64 -0
- package/src/template/design/src/index.css +284 -0
- package/src/template/design/src/lib/data-model-loader.ts +91 -0
- package/src/template/design/src/lib/design-system-loader.ts +101 -0
- package/src/template/design/src/lib/product-loader.ts +221 -0
- package/src/template/design/src/lib/router.tsx +52 -0
- package/src/template/design/src/lib/section-loader.ts +272 -0
- package/src/template/design/src/lib/shell-loader.ts +175 -0
- package/src/template/design/src/lib/utils.ts +6 -0
- package/src/template/design/src/main.tsx +15 -0
- package/src/template/design/src/sections/.gitkeep +0 -0
- package/src/template/design/src/sections/ai-orchestration-engine-oai/OrchestrationEngine.tsx +348 -0
- package/src/template/design/src/sections/core-platform-shell/AppShell.tsx +403 -0
- package/src/template/design/src/sections/gemini-live-integration/GeminiIntegration.tsx +332 -0
- package/src/template/design/src/sections/interactive-2d-canvas/WhiteboardCanvas.tsx +334 -0
- package/src/template/design/src/sections/participation-equity-tracker/EquityTracker.tsx +383 -0
- package/src/template/design/src/sections/persistent-memory-system/PersistentMemory.tsx +308 -0
- package/src/template/design/src/sections/real-time-communication-layer/VideoSession.tsx +342 -0
- package/src/template/design/src/sections/visual-intelligence-agents/VisualAgents.tsx +311 -0
- package/src/template/design/src/types/product.ts +97 -0
- package/src/template/design/src/types/section.ts +33 -0
- package/src/template/design/tsconfig.app.json +34 -0
- package/src/template/design/tsconfig.json +13 -0
- package/src/template/design/tsconfig.node.json +26 -0
- package/src/template/design/vite.config.ts +18 -0
- package/src/template/package.json +27 -0
- package/src/template/vite.config.ts +16 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
## General development conventions
|
|
2
|
+
|
|
3
|
+
- **Consistent Project Structure**: Organize files and directories in a predictable, logical structure that team members can navigate easily
|
|
4
|
+
- **Clear Documentation**: Maintain up-to-date README files with setup instructions, architecture overview, and contribution guidelines
|
|
5
|
+
- **Version Control Best Practices**: Use clear commit messages, feature branches, and meaningful pull/merge requests with descriptions
|
|
6
|
+
- **Environment Configuration**: Use environment variables for configuration; never commit secrets or API keys to version control
|
|
7
|
+
- **Dependency Management**: Keep dependencies up-to-date and minimal; document why major dependencies are used
|
|
8
|
+
- **Code Review Process**: Establish a consistent code review process with clear expectations for reviewers and authors
|
|
9
|
+
- **Testing Requirements**: Define what level of testing is required before merging (unit tests, integration tests, etc.)
|
|
10
|
+
- **Feature Flags**: Use feature flags for incomplete features rather than long-lived feature branches
|
|
11
|
+
- **Changelog Maintenance**: Keep a changelog or release notes to track significant changes and improvements
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
## Error handling best practices
|
|
2
|
+
|
|
3
|
+
- **User-Friendly Messages**: Provide clear, actionable error messages to users without exposing technical details or security information
|
|
4
|
+
- **Fail Fast and Explicitly**: Validate input and check preconditions early; fail with clear error messages rather than allowing invalid state
|
|
5
|
+
- **Specific Exception Types**: Use specific exception/error types rather than generic ones to enable targeted handling
|
|
6
|
+
- **Centralized Error Handling**: Handle errors at appropriate boundaries (controllers, API layers) rather than scattering try-catch blocks everywhere
|
|
7
|
+
- **Graceful Degradation**: Design systems to degrade gracefully when non-critical services fail rather than breaking entirely
|
|
8
|
+
- **Retry Strategies**: Implement exponential backoff for transient failures in external service calls
|
|
9
|
+
- **Clean Up Resources**: Always clean up resources (file handles, connections) in finally blocks or equivalent mechanisms
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
## Tech stack
|
|
2
|
+
|
|
3
|
+
Define your technical stack below. This serves as a reference for all team members and helps maintain consistency across the project.
|
|
4
|
+
|
|
5
|
+
### Framework & Runtime
|
|
6
|
+
- **Application Framework:** [e.g., Rails, Django, Next.js, Express]
|
|
7
|
+
- **Language/Runtime:** [e.g., Ruby, Python, Node.js, Java]
|
|
8
|
+
- **Package Manager:** [e.g., bundler, pip, npm, yarn]
|
|
9
|
+
|
|
10
|
+
### Frontend
|
|
11
|
+
- **JavaScript Framework:** [e.g., React, Vue, Svelte, Alpine, vanilla JS]
|
|
12
|
+
- **CSS Framework:** [e.g., Tailwind CSS, Bootstrap, custom]
|
|
13
|
+
- **UI Components:** [e.g., shadcn/ui, Material UI, custom library]
|
|
14
|
+
|
|
15
|
+
### Database & Storage
|
|
16
|
+
- **Database:** [e.g., PostgreSQL, MySQL, MongoDB]
|
|
17
|
+
- **ORM/Query Builder:** [e.g., ActiveRecord, Prisma, Sequelize]
|
|
18
|
+
- **Caching:** [e.g., Redis, Memcached]
|
|
19
|
+
|
|
20
|
+
### Testing & Quality
|
|
21
|
+
- **Test Framework:** [e.g., Jest, RSpec, pytest]
|
|
22
|
+
- **Linting/Formatting:** [e.g., ESLint, Prettier, RuboCop]
|
|
23
|
+
|
|
24
|
+
### Deployment & Infrastructure
|
|
25
|
+
- **Hosting:** [e.g., Heroku, AWS, Vercel, Railway]
|
|
26
|
+
- **CI/CD:** [e.g., GitHub Actions, CircleCI]
|
|
27
|
+
|
|
28
|
+
### Third-Party Services
|
|
29
|
+
- **Authentication:** [e.g., Auth0, Devise, NextAuth]
|
|
30
|
+
- **Email:** [e.g., SendGrid, Postmark]
|
|
31
|
+
- **Monitoring:** [e.g., Sentry, Datadog]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
## Validation best practices
|
|
2
|
+
|
|
3
|
+
- **Validate on Server Side**: Always validate on the server; never trust client-side validation alone for security or data integrity
|
|
4
|
+
- **Client-Side for UX**: Use client-side validation to provide immediate user feedback, but duplicate checks server-side
|
|
5
|
+
- **Fail Early**: Validate input as early as possible and reject invalid data before processing
|
|
6
|
+
- **Specific Error Messages**: Provide clear, field-specific error messages that help users correct their input
|
|
7
|
+
- **Allowlists Over Blocklists**: When possible, define what is allowed rather than trying to block everything that's not
|
|
8
|
+
- **Type and Format Validation**: Check data types, formats, ranges, and required fields systematically
|
|
9
|
+
- **Sanitize Input**: Sanitize user input to prevent injection attacks (SQL, XSS, command injection)
|
|
10
|
+
- **Business Rule Validation**: Validate business rules (e.g., sufficient balance, valid dates) at the appropriate application layer
|
|
11
|
+
- **Consistent Validation**: Apply validation consistently across all entry points (web forms, API endpoints, background jobs)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
## Test coverage best practices
|
|
2
|
+
|
|
3
|
+
- **Write Minimal Tests During Development**: Do NOT write tests for every change or intermediate step. Focus on completing the feature implementation first, then add strategic tests only at logical completion points
|
|
4
|
+
- **Test Only Core User Flows**: Write tests exclusively for critical paths and primary user workflows. Skip writing tests for non-critical utilities and secondary workflows until if/when you're instructed to do so.
|
|
5
|
+
- **Defer Edge Case Testing**: Do NOT test edge cases, error states, or validation logic unless they are business-critical. These can be addressed in dedicated testing phases, not during feature development.
|
|
6
|
+
- **Test Behavior, Not Implementation**: Focus tests on what the code does, not how it does it, to reduce brittleness
|
|
7
|
+
- **Clear Test Names**: Use descriptive names that explain what's being tested and the expected outcome
|
|
8
|
+
- **Mock External Dependencies**: Isolate units by mocking databases, APIs, file systems, and other external services
|
|
9
|
+
- **Fast Execution**: Keep unit tests fast (milliseconds) so developers run them frequently during development
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# @antigravity/agent-os-ui
|
|
2
|
+
|
|
3
|
+
The official UI capability for the **Agent OS** workflow.
|
|
4
|
+
Use this library to build the control interface that guides you through the Antigravity development process (Product -> Design -> Build -> Verify).
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm install @antigravity/agent-os-ui
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Setup
|
|
13
|
+
|
|
14
|
+
1. Import the styles:
|
|
15
|
+
```ts
|
|
16
|
+
import '@antigravity/agent-os-ui/style.css';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
2. Build your Control Dashboard:
|
|
20
|
+
```tsx
|
|
21
|
+
import { AgentShell, GuidanceCard } from '@antigravity/agent-os-ui';
|
|
22
|
+
|
|
23
|
+
export function ControlCenter() {
|
|
24
|
+
return (
|
|
25
|
+
<AgentShell sidebar={...}>
|
|
26
|
+
<div className="p-8 space-y-6">
|
|
27
|
+
{/* The core workflow component */}
|
|
28
|
+
<GuidanceCard
|
|
29
|
+
phase="Phase 1: Strategy"
|
|
30
|
+
title="Plan Your Product"
|
|
31
|
+
description="Define your Mission and Roadmap."
|
|
32
|
+
prompt="Antigravity, plan the product..."
|
|
33
|
+
/>
|
|
34
|
+
</div>
|
|
35
|
+
</AgentShell>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Features
|
|
41
|
+
- **AgentShell**: Full application layout (Sidebar + Header + Main).
|
|
42
|
+
- **AgentSidebar**: Standardized navigation menu.
|
|
43
|
+
- **GuidanceCard**: The "Next Step" card with integrated prompt copying.
|
|
44
|
+
- **ThemeToggle**: Dark/Light mode switcher with system sync.
|
|
45
|
+
- **MarkdownViewer**: Beautifully styled Markdown rendering (Prose).
|
|
46
|
+
- **StatusItem**: Standardized pills for checking system health.
|
|
47
|
+
|
|
48
|
+
## Example Layout
|
|
49
|
+
|
|
50
|
+
```tsx
|
|
51
|
+
import { AgentShell, AgentSidebar, ThemeToggle } from '@antigravity/agent-os-ui';
|
|
52
|
+
import { Home, Layers } from 'lucide-react';
|
|
53
|
+
|
|
54
|
+
export default function App() {
|
|
55
|
+
return (
|
|
56
|
+
<AgentShell
|
|
57
|
+
sidebar={
|
|
58
|
+
<AgentSidebar
|
|
59
|
+
items={[
|
|
60
|
+
{ label: 'Home', icon: <Home size={18}/>, active: true },
|
|
61
|
+
{ label: 'Design', icon: <Layers size={18}/> }
|
|
62
|
+
]}
|
|
63
|
+
footer={<ThemeToggle />}
|
|
64
|
+
/>
|
|
65
|
+
}
|
|
66
|
+
>
|
|
67
|
+
<div className="p-8">
|
|
68
|
+
<h1 className="text-2xl font-bold">Welcome to Agent OS</h1>
|
|
69
|
+
</div>
|
|
70
|
+
</AgentShell>
|
|
71
|
+
)
|
|
72
|
+
}
|
|
73
|
+
```
|