corporateai 0.0.1
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/.dockerignore +10 -0
- package/.env.example +3 -0
- package/.github/workflows/publish-cli.yml +49 -0
- package/.mailmap +1 -0
- package/AGENTS.md +148 -0
- package/CONTRIBUTING.md +75 -0
- package/Dockerfile +59 -0
- package/Dockerfile.onboard-smoke +42 -0
- package/LICENSE +21 -0
- package/README.md +93 -0
- package/cli/esbuild.config.mjs +11 -0
- package/cli/package.json +24 -0
- package/cli/scripts/build-cli.mjs +5 -0
- package/cli/src/index.ts +27 -0
- package/docker-compose.quickstart.yml +18 -0
- package/docker-compose.untrusted-review.yml +33 -0
- package/docker-compose.yml +38 -0
- package/package.json +56 -0
- package/patches/embedded-postgres@18.1.0-beta.16.patch +0 -0
- package/pnpm-workspace.yaml +4 -0
- package/releases/.gitkeep +0 -0
- package/releases/v0.0.1.md +36 -0
- package/releases/v0.2.7.md +15 -0
- package/releases/v0.3.0.md +54 -0
- package/releases/v0.3.1.md +55 -0
- package/releases/v2026.318.0.md +66 -0
- package/releases/v2026.325.0.md +78 -0
- package/report/2026-03-13-08-46-token-optimization-implementation.md +48 -0
- package/scripts/backup-db.sh +17 -0
- package/scripts/build-npm.sh +80 -0
- package/scripts/check-forbidden-tokens.mjs +115 -0
- package/scripts/clean-onboard-git.sh +14 -0
- package/scripts/clean-onboard-npm.sh +13 -0
- package/scripts/clean-onboard-ref.sh +86 -0
- package/scripts/create-github-release.sh +99 -0
- package/scripts/dev-runner-paths.mjs +38 -0
- package/scripts/dev-runner.mjs +606 -0
- package/scripts/docker-onboard-smoke.sh +306 -0
- package/scripts/ensure-plugin-build-deps.mjs +47 -0
- package/scripts/generate-company-assets.ts +365 -0
- package/scripts/generate-npm-package-json.mjs +113 -0
- package/scripts/generate-org-chart-images.ts +694 -0
- package/scripts/generate-org-chart-satori-comparison.ts +225 -0
- package/scripts/generate-ui-package-json.mjs +31 -0
- package/scripts/kill-dev.sh +71 -0
- package/scripts/migrate-inline-env-secrets.ts +126 -0
- package/scripts/prepare-server-ui-dist.sh +22 -0
- package/scripts/provision-worktree.sh +333 -0
- package/scripts/release-lib.sh +306 -0
- package/scripts/release-package-map.mjs +169 -0
- package/scripts/release.sh +312 -0
- package/scripts/rollback-latest.sh +111 -0
- package/scripts/smoke/openclaw-docker-ui.sh +329 -0
- package/scripts/smoke/openclaw-gateway-e2e.sh +954 -0
- package/scripts/smoke/openclaw-join.sh +295 -0
- package/scripts/smoke/openclaw-sse-standalone.sh +146 -0
- package/scripts/workspace-compat.mjs +60 -0
- package/server/CHANGELOG.md +130 -0
- package/server/package.json +96 -0
- package/server/scripts/copy-onboarding-assets.mjs +10 -0
- package/server/scripts/dev-watch.ts +33 -0
- package/server/src/__tests__/activity-routes.test.ts +70 -0
- package/server/src/__tests__/adapter-models.test.ts +105 -0
- package/server/src/__tests__/adapter-session-codecs.test.ts +194 -0
- package/server/src/__tests__/agent-auth-jwt.test.ts +79 -0
- package/server/src/__tests__/agent-instructions-routes.test.ts +318 -0
- package/server/src/__tests__/agent-instructions-service.test.ts +361 -0
- package/server/src/__tests__/agent-permissions-routes.test.ts +275 -0
- package/server/src/__tests__/agent-shortname-collision.test.ts +69 -0
- package/server/src/__tests__/agent-skill-contract.test.ts +50 -0
- package/server/src/__tests__/agent-skills-routes.test.ts +462 -0
- package/server/src/__tests__/app-hmr-port.test.ts +19 -0
- package/server/src/__tests__/approval-routes-idempotency.test.ts +110 -0
- package/server/src/__tests__/approvals-service.test.ts +107 -0
- package/server/src/__tests__/assets.test.ts +250 -0
- package/server/src/__tests__/attachment-types.test.ts +97 -0
- package/server/src/__tests__/board-mutation-guard.test.ts +105 -0
- package/server/src/__tests__/budgets-service.test.ts +311 -0
- package/server/src/__tests__/claude-local-adapter-environment.test.ts +92 -0
- package/server/src/__tests__/claude-local-adapter.test.ts +31 -0
- package/server/src/__tests__/claude-local-skill-sync.test.ts +111 -0
- package/server/src/__tests__/cli-auth-routes.test.ts +230 -0
- package/server/src/__tests__/codex-local-adapter-environment.test.ts +143 -0
- package/server/src/__tests__/codex-local-adapter.test.ts +253 -0
- package/server/src/__tests__/codex-local-execute.test.ts +391 -0
- package/server/src/__tests__/codex-local-skill-injection.test.ts +175 -0
- package/server/src/__tests__/codex-local-skill-sync.test.ts +123 -0
- package/server/src/__tests__/companies-route-path-guard.test.ts +56 -0
- package/server/src/__tests__/company-branding-route.test.ts +196 -0
- package/server/src/__tests__/company-portability-routes.test.ts +175 -0
- package/server/src/__tests__/company-portability.test.ts +2186 -0
- package/server/src/__tests__/company-skills-routes.test.ts +113 -0
- package/server/src/__tests__/company-skills.test.ts +229 -0
- package/server/src/__tests__/costs-service.test.ts +226 -0
- package/server/src/__tests__/cursor-local-adapter-environment.test.ts +196 -0
- package/server/src/__tests__/cursor-local-adapter.test.ts +406 -0
- package/server/src/__tests__/cursor-local-execute.test.ts +263 -0
- package/server/src/__tests__/cursor-local-skill-injection.test.ts +104 -0
- package/server/src/__tests__/cursor-local-skill-sync.test.ts +145 -0
- package/server/src/__tests__/dev-runner-paths.test.ts +25 -0
- package/server/src/__tests__/dev-server-status.test.ts +66 -0
- package/server/src/__tests__/dev-watch-ignore.test.ts +42 -0
- package/server/src/__tests__/documents.test.ts +29 -0
- package/server/src/__tests__/error-handler.test.ts +53 -0
- package/server/src/__tests__/execution-workspace-policy.test.ts +170 -0
- package/server/src/__tests__/forbidden-tokens.test.ts +77 -0
- package/server/src/__tests__/gemini-local-adapter-environment.test.ts +135 -0
- package/server/src/__tests__/gemini-local-adapter.test.ts +190 -0
- package/server/src/__tests__/gemini-local-execute.test.ts +172 -0
- package/server/src/__tests__/gemini-local-skill-sync.test.ts +90 -0
- package/server/src/__tests__/health.test.ts +16 -0
- package/server/src/__tests__/heartbeat-process-recovery.test.ts +256 -0
- package/server/src/__tests__/heartbeat-run-summary.test.ts +33 -0
- package/server/src/__tests__/heartbeat-workspace-session.test.ts +334 -0
- package/server/src/__tests__/helpers/embedded-postgres.ts +7 -0
- package/server/src/__tests__/hire-hook.test.ts +181 -0
- package/server/src/__tests__/instance-settings-routes.test.ts +156 -0
- package/server/src/__tests__/invite-accept-gateway-defaults.test.ts +119 -0
- package/server/src/__tests__/invite-accept-replay.test.ts +92 -0
- package/server/src/__tests__/invite-expiry.test.ts +10 -0
- package/server/src/__tests__/invite-join-grants.test.ts +57 -0
- package/server/src/__tests__/invite-join-manager.test.ts +33 -0
- package/server/src/__tests__/invite-onboarding-text.test.ts +116 -0
- package/server/src/__tests__/issue-comment-reopen-routes.test.ts +146 -0
- package/server/src/__tests__/issue-goal-fallback.test.ts +99 -0
- package/server/src/__tests__/issues-checkout-wakeup.test.ts +48 -0
- package/server/src/__tests__/issues-goal-context-routes.test.ts +187 -0
- package/server/src/__tests__/issues-service.test.ts +317 -0
- package/server/src/__tests__/issues-user-context.test.ts +113 -0
- package/server/src/__tests__/log-redaction.test.ts +74 -0
- package/server/src/__tests__/monthly-spend-service.test.ts +90 -0
- package/server/src/__tests__/normalize-agent-mention-token.test.ts +41 -0
- package/server/src/__tests__/openclaw-gateway-adapter.test.ts +626 -0
- package/server/src/__tests__/openclaw-invite-prompt-route.test.ts +192 -0
- package/server/src/__tests__/opencode-local-adapter-environment.test.ts +97 -0
- package/server/src/__tests__/opencode-local-adapter.test.ts +226 -0
- package/server/src/__tests__/opencode-local-skill-sync.test.ts +91 -0
- package/server/src/__tests__/paperclip-env.test.ts +58 -0
- package/server/src/__tests__/paperclip-skill-utils.test.ts +63 -0
- package/server/src/__tests__/pi-local-adapter-environment.test.ts +102 -0
- package/server/src/__tests__/pi-local-skill-sync.test.ts +95 -0
- package/server/src/__tests__/plugin-dev-watcher.test.ts +68 -0
- package/server/src/__tests__/plugin-worker-manager.test.ts +43 -0
- package/server/src/__tests__/private-hostname-guard.test.ts +56 -0
- package/server/src/__tests__/project-shortname-resolution.test.ts +45 -0
- package/server/src/__tests__/quota-windows-service.test.ts +56 -0
- package/server/src/__tests__/quota-windows.test.ts +1109 -0
- package/server/src/__tests__/redaction.test.ts +66 -0
- package/server/src/__tests__/routines-e2e.test.ts +276 -0
- package/server/src/__tests__/routines-routes.test.ts +271 -0
- package/server/src/__tests__/routines-service.test.ts +424 -0
- package/server/src/__tests__/storage-local-provider.test.ts +78 -0
- package/server/src/__tests__/ui-branding.test.ts +82 -0
- package/server/src/__tests__/work-products.test.ts +95 -0
- package/server/src/__tests__/workspace-runtime.test.ts +1131 -0
- package/server/src/__tests__/worktree-config.test.ts +426 -0
- package/server/src/adapters/codex-models.ts +105 -0
- package/server/src/adapters/cursor-models.ts +171 -0
- package/server/src/adapters/http/execute.ts +42 -0
- package/server/src/adapters/http/index.ts +21 -0
- package/server/src/adapters/http/test.ts +116 -0
- package/server/src/adapters/index.ts +18 -0
- package/server/src/adapters/process/execute.ts +77 -0
- package/server/src/adapters/process/index.ts +24 -0
- package/server/src/adapters/process/test.ts +89 -0
- package/server/src/adapters/registry.ts +225 -0
- package/server/src/adapters/server-utils-compat.ts +57 -0
- package/server/src/adapters/types.ts +30 -0
- package/server/src/adapters/utils.ts +48 -0
- package/server/src/agent-auth-jwt.ts +141 -0
- package/server/src/app.ts +321 -0
- package/server/src/attachment-types.ts +74 -0
- package/server/src/auth/better-auth.ts +148 -0
- package/server/src/board-claim.ts +150 -0
- package/server/src/config-file.ts +17 -0
- package/server/src/config.ts +260 -0
- package/server/src/dev-server-status.ts +103 -0
- package/server/src/dev-watch-ignore.ts +36 -0
- package/server/src/errors.ts +34 -0
- package/server/src/home-paths.ts +95 -0
- package/server/src/index.ts +799 -0
- package/server/src/log-redaction.ts +146 -0
- package/server/src/middleware/auth.ts +178 -0
- package/server/src/middleware/board-mutation-guard.ts +66 -0
- package/server/src/middleware/error-handler.ts +71 -0
- package/server/src/middleware/index.ts +3 -0
- package/server/src/middleware/logger.ts +90 -0
- package/server/src/middleware/private-hostname-guard.ts +92 -0
- package/server/src/middleware/validate.ts +9 -0
- package/server/src/onboarding-assets/ceo/AGENTS.md +54 -0
- package/server/src/onboarding-assets/ceo/HEARTBEAT.md +72 -0
- package/server/src/onboarding-assets/ceo/SOUL.md +33 -0
- package/server/src/onboarding-assets/ceo/TOOLS.md +3 -0
- package/server/src/onboarding-assets/default/AGENTS.md +3 -0
- package/server/src/paths.ts +34 -0
- package/server/src/realtime/live-events-ws.ts +274 -0
- package/server/src/redaction.ts +59 -0
- package/server/src/routes/access.ts +2888 -0
- package/server/src/routes/activity.ts +89 -0
- package/server/src/routes/agents.ts +2313 -0
- package/server/src/routes/approvals.ts +346 -0
- package/server/src/routes/assets.ts +341 -0
- package/server/src/routes/authz.ts +52 -0
- package/server/src/routes/companies.ts +343 -0
- package/server/src/routes/company-skills.ts +300 -0
- package/server/src/routes/costs.ts +335 -0
- package/server/src/routes/dashboard.ts +19 -0
- package/server/src/routes/execution-workspaces.ts +182 -0
- package/server/src/routes/goals.ts +107 -0
- package/server/src/routes/health.ts +94 -0
- package/server/src/routes/index.ts +17 -0
- package/server/src/routes/instance-settings.ts +95 -0
- package/server/src/routes/issues-checkout-wakeup.ts +14 -0
- package/server/src/routes/issues.ts +1680 -0
- package/server/src/routes/llms.ts +86 -0
- package/server/src/routes/org-chart-svg.ts +777 -0
- package/server/src/routes/plugin-ui-static.ts +497 -0
- package/server/src/routes/plugins.ts +2220 -0
- package/server/src/routes/projects.ts +295 -0
- package/server/src/routes/routines.ts +300 -0
- package/server/src/routes/secrets.ts +166 -0
- package/server/src/routes/sidebar-badges.ts +52 -0
- package/server/src/secrets/external-stub-providers.ts +32 -0
- package/server/src/secrets/local-encrypted-provider.ts +135 -0
- package/server/src/secrets/provider-registry.ts +31 -0
- package/server/src/secrets/types.ts +23 -0
- package/server/src/services/access.ts +381 -0
- package/server/src/services/activity-log.ts +95 -0
- package/server/src/services/activity.ts +164 -0
- package/server/src/services/agent-instructions.ts +735 -0
- package/server/src/services/agent-permissions.ts +27 -0
- package/server/src/services/agents.ts +694 -0
- package/server/src/services/approvals.ts +273 -0
- package/server/src/services/assets.ts +23 -0
- package/server/src/services/board-auth.ts +355 -0
- package/server/src/services/budgets.ts +959 -0
- package/server/src/services/companies.ts +313 -0
- package/server/src/services/company-export-readme.ts +173 -0
- package/server/src/services/company-portability.ts +4263 -0
- package/server/src/services/company-skills.ts +2356 -0
- package/server/src/services/costs.ts +365 -0
- package/server/src/services/cron.ts +373 -0
- package/server/src/services/dashboard.ts +110 -0
- package/server/src/services/default-agent-instructions.ts +27 -0
- package/server/src/services/documents.ts +434 -0
- package/server/src/services/execution-workspace-policy.ts +210 -0
- package/server/src/services/execution-workspaces.ts +100 -0
- package/server/src/services/finance.ts +135 -0
- package/server/src/services/goals.ts +81 -0
- package/server/src/services/heartbeat-run-summary.ts +35 -0
- package/server/src/services/heartbeat.ts +3863 -0
- package/server/src/services/hire-hook.ts +114 -0
- package/server/src/services/index.ts +32 -0
- package/server/src/services/instance-settings.ts +138 -0
- package/server/src/services/issue-approvals.ts +175 -0
- package/server/src/services/issue-assignment-wakeup.ts +48 -0
- package/server/src/services/issue-goal-fallback.ts +56 -0
- package/server/src/services/issues.ts +1828 -0
- package/server/src/services/live-events.ts +55 -0
- package/server/src/services/plugin-capability-validator.ts +450 -0
- package/server/src/services/plugin-config-validator.ts +55 -0
- package/server/src/services/plugin-dev-watcher.ts +339 -0
- package/server/src/services/plugin-event-bus.ts +413 -0
- package/server/src/services/plugin-host-service-cleanup.ts +59 -0
- package/server/src/services/plugin-host-services.ts +1132 -0
- package/server/src/services/plugin-job-coordinator.ts +261 -0
- package/server/src/services/plugin-job-scheduler.ts +753 -0
- package/server/src/services/plugin-job-store.ts +466 -0
- package/server/src/services/plugin-lifecycle.ts +822 -0
- package/server/src/services/plugin-loader.ts +1955 -0
- package/server/src/services/plugin-log-retention.ts +87 -0
- package/server/src/services/plugin-manifest-validator.ts +164 -0
- package/server/src/services/plugin-registry.ts +683 -0
- package/server/src/services/plugin-runtime-sandbox.ts +222 -0
- package/server/src/services/plugin-secrets-handler.ts +355 -0
- package/server/src/services/plugin-state-store.ts +238 -0
- package/server/src/services/plugin-stream-bus.ts +81 -0
- package/server/src/services/plugin-tool-dispatcher.ts +449 -0
- package/server/src/services/plugin-tool-registry.ts +450 -0
- package/server/src/services/plugin-worker-manager.ts +1343 -0
- package/server/src/services/projects.ts +860 -0
- package/server/src/services/quota-windows.ts +65 -0
- package/server/src/services/routines.ts +1269 -0
- package/server/src/services/run-log-store.ts +156 -0
- package/server/src/services/secrets.ts +370 -0
- package/server/src/services/sidebar-badges.ts +56 -0
- package/server/src/services/work-products.ts +124 -0
- package/server/src/services/workspace-operation-log-store.ts +156 -0
- package/server/src/services/workspace-operations.ts +262 -0
- package/server/src/services/workspace-runtime.ts +1565 -0
- package/server/src/startup-banner.ts +176 -0
- package/server/src/storage/index.ts +35 -0
- package/server/src/storage/local-disk-provider.ts +89 -0
- package/server/src/storage/provider-registry.ts +18 -0
- package/server/src/storage/s3-provider.ts +153 -0
- package/server/src/storage/service.ts +131 -0
- package/server/src/storage/types.ts +63 -0
- package/server/src/ui-branding.ts +217 -0
- package/server/src/version.ts +10 -0
- package/server/src/worktree-config.ts +468 -0
- package/server/tsconfig.json +9 -0
- package/server/vitest.config.ts +7 -0
- package/skills/paperclip/SKILL.md +365 -0
- package/skills/paperclip/references/api-reference.md +647 -0
- package/skills/paperclip/references/company-skills.md +193 -0
- package/skills/paperclip-create-agent/SKILL.md +142 -0
- package/skills/paperclip-create-agent/references/api-reference.md +105 -0
- package/skills/paperclip-create-plugin/SKILL.md +102 -0
- package/skills/para-memory-files/SKILL.md +104 -0
- package/skills/para-memory-files/references/schemas.md +35 -0
- package/tests/e2e/onboarding.spec.ts +142 -0
- package/tests/e2e/playwright.config.ts +35 -0
- package/tests/release-smoke/docker-auth-onboarding.spec.ts +141 -0
- package/tests/release-smoke/playwright.config.ts +28 -0
- package/tsconfig.base.json +18 -0
- package/tsconfig.json +18 -0
- package/ui/README.md +12 -0
- package/ui/components.json +21 -0
- package/ui/index.html +47 -0
- package/ui/package.json +73 -0
- package/ui/public/android-chrome-192x192.png +0 -0
- package/ui/public/android-chrome-512x512.png +0 -0
- package/ui/public/apple-touch-icon.png +0 -0
- package/ui/public/brands/opencode-logo-dark-square.svg +18 -0
- package/ui/public/brands/opencode-logo-light-square.svg +18 -0
- package/ui/public/favicon-16x16.png +0 -0
- package/ui/public/favicon-32x32.png +0 -0
- package/ui/public/favicon.ico +0 -0
- package/ui/public/favicon.svg +9 -0
- package/ui/public/site.webmanifest +30 -0
- package/ui/public/sprites/1-D-1.png +0 -0
- package/ui/public/sprites/1-D-2.png +0 -0
- package/ui/public/sprites/1-D-3.png +0 -0
- package/ui/public/sprites/1-L-1.png +0 -0
- package/ui/public/sprites/1-R-1.png +0 -0
- package/ui/public/sprites/10-D-1.png +0 -0
- package/ui/public/sprites/10-D-2.png +0 -0
- package/ui/public/sprites/10-D-3.png +0 -0
- package/ui/public/sprites/10-L-1.png +0 -0
- package/ui/public/sprites/10-R-1.png +0 -0
- package/ui/public/sprites/11-D-1.png +0 -0
- package/ui/public/sprites/11-D-2.png +0 -0
- package/ui/public/sprites/11-D-3.png +0 -0
- package/ui/public/sprites/11-L-1.png +0 -0
- package/ui/public/sprites/11-R-1.png +0 -0
- package/ui/public/sprites/12-D-1.png +0 -0
- package/ui/public/sprites/12-D-2.png +0 -0
- package/ui/public/sprites/12-D-3.png +0 -0
- package/ui/public/sprites/12-L-1.png +0 -0
- package/ui/public/sprites/12-R-1.png +0 -0
- package/ui/public/sprites/13-D-1.png +0 -0
- package/ui/public/sprites/13-D-2.png +0 -0
- package/ui/public/sprites/13-D-3.png +0 -0
- package/ui/public/sprites/13-L-1.png +0 -0
- package/ui/public/sprites/13-R-1.png +0 -0
- package/ui/public/sprites/14-D-1.png +0 -0
- package/ui/public/sprites/14-D-2.png +0 -0
- package/ui/public/sprites/14-D-3.png +0 -0
- package/ui/public/sprites/14-L-1.png +0 -0
- package/ui/public/sprites/14-R-1.png +0 -0
- package/ui/public/sprites/2-D-1.png +0 -0
- package/ui/public/sprites/2-D-2.png +0 -0
- package/ui/public/sprites/2-D-3.png +0 -0
- package/ui/public/sprites/2-L-1.png +0 -0
- package/ui/public/sprites/2-R-1.png +0 -0
- package/ui/public/sprites/3-D-1.png +0 -0
- package/ui/public/sprites/3-D-2.png +0 -0
- package/ui/public/sprites/3-D-3.png +0 -0
- package/ui/public/sprites/3-L-1.png +0 -0
- package/ui/public/sprites/3-R-1.png +0 -0
- package/ui/public/sprites/4-D-1.png +0 -0
- package/ui/public/sprites/4-D-2.png +0 -0
- package/ui/public/sprites/4-D-3.png +0 -0
- package/ui/public/sprites/4-L-1.png +0 -0
- package/ui/public/sprites/4-R-1.png +0 -0
- package/ui/public/sprites/5-D-1.png +0 -0
- package/ui/public/sprites/5-D-2.png +0 -0
- package/ui/public/sprites/5-D-3.png +0 -0
- package/ui/public/sprites/5-L-1.png +0 -0
- package/ui/public/sprites/5-R-1.png +0 -0
- package/ui/public/sprites/6-D-1.png +0 -0
- package/ui/public/sprites/6-D-2.png +0 -0
- package/ui/public/sprites/6-D-3.png +0 -0
- package/ui/public/sprites/6-L-1.png +0 -0
- package/ui/public/sprites/6-R-1.png +0 -0
- package/ui/public/sprites/7-D-1.png +0 -0
- package/ui/public/sprites/7-D-2.png +0 -0
- package/ui/public/sprites/7-D-3.png +0 -0
- package/ui/public/sprites/7-L-1.png +0 -0
- package/ui/public/sprites/7-R-1.png +0 -0
- package/ui/public/sprites/8-D-1.png +0 -0
- package/ui/public/sprites/8-D-2.png +0 -0
- package/ui/public/sprites/8-D-3.png +0 -0
- package/ui/public/sprites/8-L-1.png +0 -0
- package/ui/public/sprites/8-R-1.png +0 -0
- package/ui/public/sprites/9-D-1.png +0 -0
- package/ui/public/sprites/9-D-2.png +0 -0
- package/ui/public/sprites/9-D-3.png +0 -0
- package/ui/public/sprites/9-L-1.png +0 -0
- package/ui/public/sprites/9-R-1.png +0 -0
- package/ui/public/sprites/ceo-lobster.png +0 -0
- package/ui/public/sw.js +42 -0
- package/ui/public/worktree-favicon-16x16.png +0 -0
- package/ui/public/worktree-favicon-32x32.png +0 -0
- package/ui/public/worktree-favicon.ico +0 -0
- package/ui/public/worktree-favicon.svg +9 -0
- package/ui/src/App.tsx +354 -0
- package/ui/src/adapters/claude-local/config-fields.tsx +138 -0
- package/ui/src/adapters/claude-local/index.ts +13 -0
- package/ui/src/adapters/codex-local/config-fields.tsx +104 -0
- package/ui/src/adapters/codex-local/index.ts +13 -0
- package/ui/src/adapters/cursor/config-fields.tsx +49 -0
- package/ui/src/adapters/cursor/index.ts +13 -0
- package/ui/src/adapters/gemini-local/config-fields.tsx +51 -0
- package/ui/src/adapters/gemini-local/index.ts +13 -0
- package/ui/src/adapters/http/build-config.ts +9 -0
- package/ui/src/adapters/http/config-fields.tsx +38 -0
- package/ui/src/adapters/http/index.ts +12 -0
- package/ui/src/adapters/http/parse-stdout.ts +5 -0
- package/ui/src/adapters/index.ts +9 -0
- package/ui/src/adapters/local-workspace-runtime-fields.tsx +5 -0
- package/ui/src/adapters/openclaw-gateway/config-fields.tsx +237 -0
- package/ui/src/adapters/openclaw-gateway/index.ts +13 -0
- package/ui/src/adapters/opencode-local/config-fields.tsx +72 -0
- package/ui/src/adapters/opencode-local/index.ts +13 -0
- package/ui/src/adapters/pi-local/config-fields.tsx +49 -0
- package/ui/src/adapters/pi-local/index.ts +13 -0
- package/ui/src/adapters/process/build-config.ts +18 -0
- package/ui/src/adapters/process/config-fields.tsx +77 -0
- package/ui/src/adapters/process/index.ts +12 -0
- package/ui/src/adapters/process/parse-stdout.ts +5 -0
- package/ui/src/adapters/registry.ts +34 -0
- package/ui/src/adapters/runtime-json-fields.tsx +122 -0
- package/ui/src/adapters/transcript.test.ts +30 -0
- package/ui/src/adapters/transcript.ts +62 -0
- package/ui/src/adapters/types.ts +34 -0
- package/ui/src/api/access.ts +160 -0
- package/ui/src/api/activity.ts +37 -0
- package/ui/src/api/agents.ts +194 -0
- package/ui/src/api/approvals.ts +25 -0
- package/ui/src/api/assets.ts +30 -0
- package/ui/src/api/auth.ts +74 -0
- package/ui/src/api/budgets.ts +21 -0
- package/ui/src/api/client.ts +50 -0
- package/ui/src/api/companies.ts +59 -0
- package/ui/src/api/companySkills.ts +55 -0
- package/ui/src/api/costs.ts +60 -0
- package/ui/src/api/dashboard.ts +7 -0
- package/ui/src/api/execution-workspaces.ts +27 -0
- package/ui/src/api/goals.ts +12 -0
- package/ui/src/api/health.ts +41 -0
- package/ui/src/api/heartbeats.ts +62 -0
- package/ui/src/api/index.ts +18 -0
- package/ui/src/api/instanceSettings.ts +19 -0
- package/ui/src/api/issues.ts +115 -0
- package/ui/src/api/plugins.ts +424 -0
- package/ui/src/api/projects.ts +34 -0
- package/ui/src/api/routines.ts +59 -0
- package/ui/src/api/secrets.ts +26 -0
- package/ui/src/api/sidebarBadges.ts +7 -0
- package/ui/src/components/AccountingModelCard.tsx +69 -0
- package/ui/src/components/ActiveAgentsPanel.tsx +157 -0
- package/ui/src/components/ActivityCharts.tsx +264 -0
- package/ui/src/components/ActivityRow.tsx +147 -0
- package/ui/src/components/AgentActionButtons.tsx +51 -0
- package/ui/src/components/AgentConfigForm.tsx +1468 -0
- package/ui/src/components/AgentIconPicker.tsx +81 -0
- package/ui/src/components/AgentProperties.tsx +107 -0
- package/ui/src/components/ApprovalCard.tsx +107 -0
- package/ui/src/components/ApprovalPayload.tsx +134 -0
- package/ui/src/components/AsciiArtAnimation.tsx +355 -0
- package/ui/src/components/BillerSpendCard.tsx +146 -0
- package/ui/src/components/BreadcrumbBar.tsx +113 -0
- package/ui/src/components/BudgetIncidentCard.tsx +101 -0
- package/ui/src/components/BudgetPolicyCard.tsx +220 -0
- package/ui/src/components/BudgetSidebarMarker.tsx +13 -0
- package/ui/src/components/ClaudeSubscriptionPanel.tsx +141 -0
- package/ui/src/components/CodexSubscriptionPanel.tsx +158 -0
- package/ui/src/components/CommandPalette.tsx +239 -0
- package/ui/src/components/CommentThread.tsx +503 -0
- package/ui/src/components/CompanyPatternIcon.tsx +212 -0
- package/ui/src/components/CompanyRail.tsx +329 -0
- package/ui/src/components/CompanySwitcher.tsx +81 -0
- package/ui/src/components/CopyText.tsx +56 -0
- package/ui/src/components/DevRestartBanner.tsx +89 -0
- package/ui/src/components/EmptyState.tsx +27 -0
- package/ui/src/components/EntityRow.tsx +69 -0
- package/ui/src/components/FilterBar.tsx +39 -0
- package/ui/src/components/FinanceBillerCard.tsx +45 -0
- package/ui/src/components/FinanceKindCard.tsx +44 -0
- package/ui/src/components/FinanceTimelineCard.tsx +72 -0
- package/ui/src/components/GoalProperties.tsx +165 -0
- package/ui/src/components/GoalTree.tsx +118 -0
- package/ui/src/components/Identity.tsx +39 -0
- package/ui/src/components/InlineEditor.tsx +248 -0
- package/ui/src/components/InlineEntitySelector.tsx +206 -0
- package/ui/src/components/InstanceSidebar.tsx +53 -0
- package/ui/src/components/IssueDocumentsSection.tsx +892 -0
- package/ui/src/components/IssueProperties.tsx +621 -0
- package/ui/src/components/IssueRow.tsx +149 -0
- package/ui/src/components/IssueWorkspaceCard.tsx +404 -0
- package/ui/src/components/IssuesList.tsx +889 -0
- package/ui/src/components/JsonSchemaForm.tsx +1048 -0
- package/ui/src/components/KanbanBoard.tsx +275 -0
- package/ui/src/components/Layout.tsx +441 -0
- package/ui/src/components/LiveRunWidget.tsx +160 -0
- package/ui/src/components/MarkdownBody.test.tsx +50 -0
- package/ui/src/components/MarkdownBody.tsx +152 -0
- package/ui/src/components/MarkdownEditor.tsx +622 -0
- package/ui/src/components/MetricCard.tsx +53 -0
- package/ui/src/components/MobileBottomNav.tsx +123 -0
- package/ui/src/components/NewAgentDialog.tsx +223 -0
- package/ui/src/components/NewGoalDialog.tsx +283 -0
- package/ui/src/components/NewIssueDialog.tsx +1473 -0
- package/ui/src/components/NewProjectDialog.tsx +451 -0
- package/ui/src/components/OnboardingWizard.tsx +1392 -0
- package/ui/src/components/OpenCodeLogoIcon.tsx +22 -0
- package/ui/src/components/PackageFileTree.tsx +318 -0
- package/ui/src/components/PageSkeleton.tsx +180 -0
- package/ui/src/components/PageTabBar.tsx +45 -0
- package/ui/src/components/PathInstructionsModal.tsx +143 -0
- package/ui/src/components/PriorityIcon.tsx +77 -0
- package/ui/src/components/ProjectProperties.tsx +1127 -0
- package/ui/src/components/PropertiesPanel.tsx +29 -0
- package/ui/src/components/ProviderQuotaCard.tsx +417 -0
- package/ui/src/components/QuotaBar.tsx +65 -0
- package/ui/src/components/ReportsToPicker.tsx +127 -0
- package/ui/src/components/ScheduleEditor.tsx +344 -0
- package/ui/src/components/ScrollToBottom.tsx +79 -0
- package/ui/src/components/Sidebar.tsx +130 -0
- package/ui/src/components/SidebarAgents.tsx +146 -0
- package/ui/src/components/SidebarNavItem.tsx +92 -0
- package/ui/src/components/SidebarProjects.tsx +234 -0
- package/ui/src/components/SidebarSection.tsx +17 -0
- package/ui/src/components/StatusBadge.tsx +15 -0
- package/ui/src/components/StatusIcon.tsx +71 -0
- package/ui/src/components/SwipeToArchive.tsx +152 -0
- package/ui/src/components/ToastViewport.tsx +99 -0
- package/ui/src/components/WorktreeBanner.tsx +25 -0
- package/ui/src/components/agent-config-defaults.ts +31 -0
- package/ui/src/components/agent-config-primitives.tsx +476 -0
- package/ui/src/components/transcript/RunTranscriptView.test.tsx +84 -0
- package/ui/src/components/transcript/RunTranscriptView.tsx +1015 -0
- package/ui/src/components/transcript/useLiveRunTranscripts.ts +297 -0
- package/ui/src/components/ui/avatar.tsx +107 -0
- package/ui/src/components/ui/badge.tsx +48 -0
- package/ui/src/components/ui/breadcrumb.tsx +109 -0
- package/ui/src/components/ui/button.tsx +64 -0
- package/ui/src/components/ui/card.tsx +92 -0
- package/ui/src/components/ui/checkbox.tsx +32 -0
- package/ui/src/components/ui/collapsible.tsx +33 -0
- package/ui/src/components/ui/command.tsx +194 -0
- package/ui/src/components/ui/dialog.tsx +156 -0
- package/ui/src/components/ui/dropdown-menu.tsx +257 -0
- package/ui/src/components/ui/input.tsx +21 -0
- package/ui/src/components/ui/label.tsx +22 -0
- package/ui/src/components/ui/popover.tsx +88 -0
- package/ui/src/components/ui/scroll-area.tsx +56 -0
- package/ui/src/components/ui/select.tsx +188 -0
- package/ui/src/components/ui/separator.tsx +28 -0
- package/ui/src/components/ui/sheet.tsx +143 -0
- package/ui/src/components/ui/skeleton.tsx +13 -0
- package/ui/src/components/ui/tabs.tsx +89 -0
- package/ui/src/components/ui/textarea.tsx +18 -0
- package/ui/src/components/ui/tooltip.tsx +57 -0
- package/ui/src/components/visual-office/AgentAvatar.tsx +99 -0
- package/ui/src/components/visual-office/OfficeViewExact.tsx +417 -0
- package/ui/src/components/visual-office/i18n.ts +52 -0
- package/ui/src/components/visual-office/office-view/CliUsagePanel.tsx +240 -0
- package/ui/src/components/visual-office/office-view/VirtualPadOverlay.tsx +104 -0
- package/ui/src/components/visual-office/office-view/buildScene-break-room.ts +248 -0
- package/ui/src/components/visual-office/office-view/buildScene-ceo-hallway.ts +345 -0
- package/ui/src/components/visual-office/office-view/buildScene-department-agent.ts +242 -0
- package/ui/src/components/visual-office/office-view/buildScene-departments.ts +360 -0
- package/ui/src/components/visual-office/office-view/buildScene-final-layers.ts +113 -0
- package/ui/src/components/visual-office/office-view/buildScene-types.ts +91 -0
- package/ui/src/components/visual-office/office-view/buildScene.ts +232 -0
- package/ui/src/components/visual-office/office-view/drawing-core.ts +374 -0
- package/ui/src/components/visual-office/office-view/drawing-furniture-a.ts +338 -0
- package/ui/src/components/visual-office/office-view/drawing-furniture-b.ts +241 -0
- package/ui/src/components/visual-office/office-view/model.ts +301 -0
- package/ui/src/components/visual-office/office-view/officeTicker.ts +455 -0
- package/ui/src/components/visual-office/office-view/officeTickerRoomAndDelivery.ts +133 -0
- package/ui/src/components/visual-office/office-view/themes-locale.ts +460 -0
- package/ui/src/components/visual-office/office-view/useCliUsage.ts +37 -0
- package/ui/src/components/visual-office/office-view/useOfficeDeliveryEffects.ts +465 -0
- package/ui/src/components/visual-office/office-view/useOfficePixiRuntime.ts +282 -0
- package/ui/src/components/visual-office/types.ts +123 -0
- package/ui/src/context/BreadcrumbContext.tsx +44 -0
- package/ui/src/context/CompanyContext.tsx +151 -0
- package/ui/src/context/DialogContext.tsx +135 -0
- package/ui/src/context/LiveUpdatesProvider.test.ts +119 -0
- package/ui/src/context/LiveUpdatesProvider.tsx +760 -0
- package/ui/src/context/PanelContext.tsx +73 -0
- package/ui/src/context/SidebarContext.tsx +43 -0
- package/ui/src/context/ThemeContext.tsx +83 -0
- package/ui/src/context/ToastContext.tsx +172 -0
- package/ui/src/fixtures/runTranscriptFixtures.ts +226 -0
- package/ui/src/hooks/useAgentOrder.ts +105 -0
- package/ui/src/hooks/useAutosaveIndicator.ts +72 -0
- package/ui/src/hooks/useCompanyPageMemory.test.ts +90 -0
- package/ui/src/hooks/useCompanyPageMemory.ts +79 -0
- package/ui/src/hooks/useDateRange.ts +120 -0
- package/ui/src/hooks/useInboxBadge.ts +132 -0
- package/ui/src/hooks/useKeyboardShortcuts.ts +40 -0
- package/ui/src/hooks/useProjectOrder.ts +106 -0
- package/ui/src/index.css +770 -0
- package/ui/src/lib/agent-icons.ts +99 -0
- package/ui/src/lib/agent-order.ts +107 -0
- package/ui/src/lib/agent-skills-state.test.ts +90 -0
- package/ui/src/lib/agent-skills-state.ts +41 -0
- package/ui/src/lib/assignees.test.ts +92 -0
- package/ui/src/lib/assignees.ts +82 -0
- package/ui/src/lib/color-contrast.ts +107 -0
- package/ui/src/lib/company-export-selection.test.ts +41 -0
- package/ui/src/lib/company-export-selection.ts +57 -0
- package/ui/src/lib/company-page-memory.ts +65 -0
- package/ui/src/lib/company-portability-sidebar.test.ts +101 -0
- package/ui/src/lib/company-portability-sidebar.ts +62 -0
- package/ui/src/lib/company-routes.ts +88 -0
- package/ui/src/lib/company-selection.test.ts +34 -0
- package/ui/src/lib/company-selection.ts +18 -0
- package/ui/src/lib/groupBy.ts +11 -0
- package/ui/src/lib/inbox.test.ts +404 -0
- package/ui/src/lib/inbox.ts +292 -0
- package/ui/src/lib/instance-settings.test.ts +26 -0
- package/ui/src/lib/instance-settings.ts +25 -0
- package/ui/src/lib/issueDetailBreadcrumb.ts +24 -0
- package/ui/src/lib/legacy-agent-config.test.ts +40 -0
- package/ui/src/lib/legacy-agent-config.ts +17 -0
- package/ui/src/lib/mention-aware-link-node.test.ts +50 -0
- package/ui/src/lib/mention-aware-link-node.ts +67 -0
- package/ui/src/lib/mention-chips.ts +168 -0
- package/ui/src/lib/mention-deletion.test.ts +87 -0
- package/ui/src/lib/mention-deletion.ts +143 -0
- package/ui/src/lib/model-utils.ts +16 -0
- package/ui/src/lib/onboarding-goal.test.ts +22 -0
- package/ui/src/lib/onboarding-goal.ts +18 -0
- package/ui/src/lib/onboarding-launch.test.ts +131 -0
- package/ui/src/lib/onboarding-launch.ts +54 -0
- package/ui/src/lib/onboarding-route.test.ts +80 -0
- package/ui/src/lib/onboarding-route.ts +51 -0
- package/ui/src/lib/portable-files.ts +42 -0
- package/ui/src/lib/project-order.ts +71 -0
- package/ui/src/lib/queryKeys.ts +140 -0
- package/ui/src/lib/recent-assignees.ts +36 -0
- package/ui/src/lib/router.tsx +76 -0
- package/ui/src/lib/routine-trigger-patch.test.ts +72 -0
- package/ui/src/lib/routine-trigger-patch.ts +31 -0
- package/ui/src/lib/status-colors.ts +108 -0
- package/ui/src/lib/timeAgo.ts +31 -0
- package/ui/src/lib/utils.ts +168 -0
- package/ui/src/lib/worktree-branding.ts +65 -0
- package/ui/src/lib/zip.test.ts +289 -0
- package/ui/src/lib/zip.ts +284 -0
- package/ui/src/main.tsx +67 -0
- package/ui/src/pages/Activity.tsx +141 -0
- package/ui/src/pages/AgentDetail.tsx +4053 -0
- package/ui/src/pages/Agents.tsx +415 -0
- package/ui/src/pages/ApprovalDetail.tsx +369 -0
- package/ui/src/pages/Approvals.tsx +132 -0
- package/ui/src/pages/Auth.tsx +180 -0
- package/ui/src/pages/BoardClaim.tsx +125 -0
- package/ui/src/pages/CliAuth.tsx +184 -0
- package/ui/src/pages/Companies.tsx +297 -0
- package/ui/src/pages/CompanyExport.tsx +1019 -0
- package/ui/src/pages/CompanyImport.tsx +1355 -0
- package/ui/src/pages/CompanySettings.tsx +661 -0
- package/ui/src/pages/CompanySkills.tsx +1171 -0
- package/ui/src/pages/Costs.tsx +1103 -0
- package/ui/src/pages/Dashboard.tsx +388 -0
- package/ui/src/pages/DesignGuide.tsx +1330 -0
- package/ui/src/pages/ExecutionWorkspaceDetail.tsx +82 -0
- package/ui/src/pages/GoalDetail.tsx +197 -0
- package/ui/src/pages/Goals.tsx +63 -0
- package/ui/src/pages/Inbox.tsx +1291 -0
- package/ui/src/pages/InstanceExperimentalSettings.tsx +139 -0
- package/ui/src/pages/InstanceGeneralSettings.tsx +104 -0
- package/ui/src/pages/InstanceSettings.tsx +284 -0
- package/ui/src/pages/InviteLanding.tsx +320 -0
- package/ui/src/pages/IssueDetail.tsx +1201 -0
- package/ui/src/pages/Issues.tsx +116 -0
- package/ui/src/pages/MyIssues.tsx +72 -0
- package/ui/src/pages/NewAgent.tsx +353 -0
- package/ui/src/pages/NotFound.tsx +66 -0
- package/ui/src/pages/Org.tsx +132 -0
- package/ui/src/pages/OrgChart.tsx +447 -0
- package/ui/src/pages/PluginManager.tsx +510 -0
- package/ui/src/pages/PluginPage.tsx +156 -0
- package/ui/src/pages/PluginSettings.tsx +836 -0
- package/ui/src/pages/ProjectDetail.tsx +633 -0
- package/ui/src/pages/Projects.tsx +87 -0
- package/ui/src/pages/RoutineDetail.tsx +1022 -0
- package/ui/src/pages/Routines.tsx +661 -0
- package/ui/src/pages/RunTranscriptUxLab.tsx +334 -0
- package/ui/src/pages/VisualOffice.tsx +243 -0
- package/ui/src/plugins/bridge-init.ts +69 -0
- package/ui/src/plugins/bridge.ts +476 -0
- package/ui/src/plugins/launchers.tsx +834 -0
- package/ui/src/plugins/slots.tsx +855 -0
- package/ui/tsconfig.json +21 -0
- package/ui/vite.config.ts +23 -0
- package/ui/vitest.config.ts +14 -0
- package/vitest.config.ts +11 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { test, expect } from "@playwright/test";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* E2E: Onboarding wizard flow (skip_llm mode).
|
|
5
|
+
*
|
|
6
|
+
* Walks through the 4-step OnboardingWizard:
|
|
7
|
+
* Step 1 — Name your company
|
|
8
|
+
* Step 2 — Create your first agent (adapter selection + config)
|
|
9
|
+
* Step 3 — Give it something to do (task creation)
|
|
10
|
+
* Step 4 — Ready to launch (summary + open issue)
|
|
11
|
+
*
|
|
12
|
+
* By default this runs in skip_llm mode: we do NOT assert that an LLM
|
|
13
|
+
* heartbeat fires. Set PAPERCLIP_E2E_SKIP_LLM=false to enable LLM-dependent
|
|
14
|
+
* assertions (requires a valid ANTHROPIC_API_KEY).
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const SKIP_LLM = process.env.PAPERCLIP_E2E_SKIP_LLM !== "false";
|
|
18
|
+
|
|
19
|
+
const COMPANY_NAME = `E2E-Test-${Date.now()}`;
|
|
20
|
+
const AGENT_NAME = "CEO";
|
|
21
|
+
const TASK_TITLE = "E2E test task";
|
|
22
|
+
|
|
23
|
+
test.describe("Onboarding wizard", () => {
|
|
24
|
+
test("completes full wizard flow", async ({ page }) => {
|
|
25
|
+
await page.goto("/");
|
|
26
|
+
|
|
27
|
+
const wizardHeading = page.locator("h3", { hasText: "Name your company" });
|
|
28
|
+
const newCompanyBtn = page.getByRole("button", { name: "New Company" });
|
|
29
|
+
|
|
30
|
+
await expect(
|
|
31
|
+
wizardHeading.or(newCompanyBtn)
|
|
32
|
+
).toBeVisible({ timeout: 15_000 });
|
|
33
|
+
|
|
34
|
+
if (await newCompanyBtn.isVisible()) {
|
|
35
|
+
await newCompanyBtn.click();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
await expect(wizardHeading).toBeVisible({ timeout: 5_000 });
|
|
39
|
+
|
|
40
|
+
const companyNameInput = page.locator('input[placeholder="Acme Corp"]');
|
|
41
|
+
await companyNameInput.fill(COMPANY_NAME);
|
|
42
|
+
|
|
43
|
+
const nextButton = page.getByRole("button", { name: "Next" });
|
|
44
|
+
await nextButton.click();
|
|
45
|
+
|
|
46
|
+
await expect(
|
|
47
|
+
page.locator("h3", { hasText: "Create your first agent" })
|
|
48
|
+
).toBeVisible({ timeout: 10_000 });
|
|
49
|
+
|
|
50
|
+
const agentNameInput = page.locator('input[placeholder="CEO"]');
|
|
51
|
+
await expect(agentNameInput).toHaveValue(AGENT_NAME);
|
|
52
|
+
|
|
53
|
+
await expect(
|
|
54
|
+
page.locator("button", { hasText: "Claude Code" }).locator("..")
|
|
55
|
+
).toBeVisible();
|
|
56
|
+
|
|
57
|
+
await page.getByRole("button", { name: "More Agent Adapter Types" }).click();
|
|
58
|
+
await expect(page.getByRole("button", { name: "Process" })).toHaveCount(0);
|
|
59
|
+
|
|
60
|
+
await page.getByRole("button", { name: "Next" }).click();
|
|
61
|
+
|
|
62
|
+
await expect(
|
|
63
|
+
page.locator("h3", { hasText: "Give it something to do" })
|
|
64
|
+
).toBeVisible({ timeout: 10_000 });
|
|
65
|
+
|
|
66
|
+
const taskTitleInput = page.locator(
|
|
67
|
+
'input[placeholder="e.g. Research competitor pricing"]'
|
|
68
|
+
);
|
|
69
|
+
await taskTitleInput.clear();
|
|
70
|
+
await taskTitleInput.fill(TASK_TITLE);
|
|
71
|
+
|
|
72
|
+
await page.getByRole("button", { name: "Next" }).click();
|
|
73
|
+
|
|
74
|
+
await expect(
|
|
75
|
+
page.locator("h3", { hasText: "Ready to launch" })
|
|
76
|
+
).toBeVisible({ timeout: 10_000 });
|
|
77
|
+
|
|
78
|
+
await expect(page.locator("text=" + COMPANY_NAME)).toBeVisible();
|
|
79
|
+
await expect(page.locator("text=" + AGENT_NAME)).toBeVisible();
|
|
80
|
+
await expect(page.locator("text=" + TASK_TITLE)).toBeVisible();
|
|
81
|
+
|
|
82
|
+
await page.getByRole("button", { name: "Create & Open Issue" }).click();
|
|
83
|
+
|
|
84
|
+
await expect(page).toHaveURL(/\/issues\//, { timeout: 10_000 });
|
|
85
|
+
|
|
86
|
+
const baseUrl = page.url().split("/").slice(0, 3).join("/");
|
|
87
|
+
|
|
88
|
+
const companiesRes = await page.request.get(`${baseUrl}/api/companies`);
|
|
89
|
+
expect(companiesRes.ok()).toBe(true);
|
|
90
|
+
const companies = await companiesRes.json();
|
|
91
|
+
const company = companies.find(
|
|
92
|
+
(c: { name: string }) => c.name === COMPANY_NAME
|
|
93
|
+
);
|
|
94
|
+
expect(company).toBeTruthy();
|
|
95
|
+
|
|
96
|
+
const agentsRes = await page.request.get(
|
|
97
|
+
`${baseUrl}/api/companies/${company.id}/agents`
|
|
98
|
+
);
|
|
99
|
+
expect(agentsRes.ok()).toBe(true);
|
|
100
|
+
const agents = await agentsRes.json();
|
|
101
|
+
const ceoAgent = agents.find(
|
|
102
|
+
(a: { name: string }) => a.name === AGENT_NAME
|
|
103
|
+
);
|
|
104
|
+
expect(ceoAgent).toBeTruthy();
|
|
105
|
+
expect(ceoAgent.role).toBe("ceo");
|
|
106
|
+
expect(ceoAgent.adapterType).not.toBe("process");
|
|
107
|
+
|
|
108
|
+
const instructionsBundleRes = await page.request.get(
|
|
109
|
+
`${baseUrl}/api/agents/${ceoAgent.id}/instructions-bundle?companyId=${company.id}`
|
|
110
|
+
);
|
|
111
|
+
expect(instructionsBundleRes.ok()).toBe(true);
|
|
112
|
+
const instructionsBundle = await instructionsBundleRes.json();
|
|
113
|
+
expect(
|
|
114
|
+
instructionsBundle.files.map((file: { path: string }) => file.path).sort()
|
|
115
|
+
).toEqual(["AGENTS.md", "HEARTBEAT.md", "SOUL.md", "TOOLS.md"]);
|
|
116
|
+
|
|
117
|
+
const issuesRes = await page.request.get(
|
|
118
|
+
`${baseUrl}/api/companies/${company.id}/issues`
|
|
119
|
+
);
|
|
120
|
+
expect(issuesRes.ok()).toBe(true);
|
|
121
|
+
const issues = await issuesRes.json();
|
|
122
|
+
const task = issues.find(
|
|
123
|
+
(i: { title: string }) => i.title === TASK_TITLE
|
|
124
|
+
);
|
|
125
|
+
expect(task).toBeTruthy();
|
|
126
|
+
expect(task.assigneeAgentId).toBe(ceoAgent.id);
|
|
127
|
+
expect(task.description).toContain(
|
|
128
|
+
"You are the CEO. You set the direction for the company."
|
|
129
|
+
);
|
|
130
|
+
expect(task.description).not.toContain("github.com/corporateai/companies");
|
|
131
|
+
|
|
132
|
+
if (!SKIP_LLM) {
|
|
133
|
+
await expect(async () => {
|
|
134
|
+
const res = await page.request.get(
|
|
135
|
+
`${baseUrl}/api/issues/${task.id}`
|
|
136
|
+
);
|
|
137
|
+
const issue = await res.json();
|
|
138
|
+
expect(["in_progress", "done"]).toContain(issue.status);
|
|
139
|
+
}).toPass({ timeout: 120_000, intervals: [5_000] });
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineConfig } from "@playwright/test";
|
|
2
|
+
|
|
3
|
+
const PORT = Number(process.env.PAPERCLIP_E2E_PORT ?? 3100);
|
|
4
|
+
const BASE_URL = `http://127.0.0.1:${PORT}`;
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
testDir: ".",
|
|
8
|
+
testMatch: "**/*.spec.ts",
|
|
9
|
+
timeout: 60_000,
|
|
10
|
+
retries: 0,
|
|
11
|
+
use: {
|
|
12
|
+
baseURL: BASE_URL,
|
|
13
|
+
headless: true,
|
|
14
|
+
screenshot: "only-on-failure",
|
|
15
|
+
trace: "on-first-retry",
|
|
16
|
+
},
|
|
17
|
+
projects: [
|
|
18
|
+
{
|
|
19
|
+
name: "chromium",
|
|
20
|
+
use: { browserName: "chromium" },
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
// The webServer directive starts `corporateai run` before tests.
|
|
24
|
+
// Expects `pnpm corporateai` to be runnable from repo root.
|
|
25
|
+
webServer: {
|
|
26
|
+
command: `pnpm corporateai run`,
|
|
27
|
+
url: `${BASE_URL}/api/health`,
|
|
28
|
+
reuseExistingServer: !process.env.CI,
|
|
29
|
+
timeout: 120_000,
|
|
30
|
+
stdout: "pipe",
|
|
31
|
+
stderr: "pipe",
|
|
32
|
+
},
|
|
33
|
+
outputDir: "./test-results",
|
|
34
|
+
reporter: [["list"], ["html", { open: "never", outputFolder: "./playwright-report" }]],
|
|
35
|
+
});
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { expect, test, type Page } from "@playwright/test";
|
|
2
|
+
|
|
3
|
+
const ADMIN_EMAIL =
|
|
4
|
+
process.env.PAPERCLIP_RELEASE_SMOKE_EMAIL ??
|
|
5
|
+
process.env.SMOKE_ADMIN_EMAIL ??
|
|
6
|
+
"smoke-admin@paperclip.local";
|
|
7
|
+
const ADMIN_PASSWORD =
|
|
8
|
+
process.env.PAPERCLIP_RELEASE_SMOKE_PASSWORD ??
|
|
9
|
+
process.env.SMOKE_ADMIN_PASSWORD ??
|
|
10
|
+
"paperclip-smoke-password";
|
|
11
|
+
|
|
12
|
+
const COMPANY_NAME = `Release-Smoke-${Date.now()}`;
|
|
13
|
+
const AGENT_NAME = "CEO";
|
|
14
|
+
const TASK_TITLE = "Release smoke task";
|
|
15
|
+
|
|
16
|
+
async function signIn(page: Page) {
|
|
17
|
+
await page.goto("/");
|
|
18
|
+
await expect(page).toHaveURL(/\/auth/);
|
|
19
|
+
|
|
20
|
+
await page.locator('input[type="email"]').fill(ADMIN_EMAIL);
|
|
21
|
+
await page.locator('input[type="password"]').fill(ADMIN_PASSWORD);
|
|
22
|
+
await page.getByRole("button", { name: "Sign In" }).click();
|
|
23
|
+
|
|
24
|
+
await expect(page).not.toHaveURL(/\/auth/, { timeout: 20_000 });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
async function openOnboarding(page: Page) {
|
|
28
|
+
const wizardHeading = page.locator("h3", { hasText: "Name your company" });
|
|
29
|
+
const startButton = page.getByRole("button", { name: "Start Onboarding" });
|
|
30
|
+
|
|
31
|
+
await expect(wizardHeading.or(startButton)).toBeVisible({ timeout: 20_000 });
|
|
32
|
+
|
|
33
|
+
if (await startButton.isVisible()) {
|
|
34
|
+
await startButton.click();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
await expect(wizardHeading).toBeVisible({ timeout: 10_000 });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
test.describe("Docker authenticated onboarding smoke", () => {
|
|
41
|
+
test("logs in, completes onboarding, and triggers the first CEO run", async ({
|
|
42
|
+
page,
|
|
43
|
+
}) => {
|
|
44
|
+
await signIn(page);
|
|
45
|
+
await openOnboarding(page);
|
|
46
|
+
|
|
47
|
+
await page.locator('input[placeholder="Acme Corp"]').fill(COMPANY_NAME);
|
|
48
|
+
await page.getByRole("button", { name: "Next" }).click();
|
|
49
|
+
|
|
50
|
+
await expect(
|
|
51
|
+
page.locator("h3", { hasText: "Create your first agent" })
|
|
52
|
+
).toBeVisible({ timeout: 10_000 });
|
|
53
|
+
|
|
54
|
+
await expect(page.locator('input[placeholder="CEO"]')).toHaveValue(AGENT_NAME);
|
|
55
|
+
await page.getByRole("button", { name: "Next" }).click();
|
|
56
|
+
|
|
57
|
+
await expect(
|
|
58
|
+
page.locator("h3", { hasText: "Give it something to do" })
|
|
59
|
+
).toBeVisible({ timeout: 10_000 });
|
|
60
|
+
await page
|
|
61
|
+
.locator('input[placeholder="e.g. Research competitor pricing"]')
|
|
62
|
+
.fill(TASK_TITLE);
|
|
63
|
+
await page.getByRole("button", { name: "Next" }).click();
|
|
64
|
+
|
|
65
|
+
await expect(
|
|
66
|
+
page.locator("h3", { hasText: "Ready to launch" })
|
|
67
|
+
).toBeVisible({ timeout: 10_000 });
|
|
68
|
+
await expect(page.getByText(COMPANY_NAME)).toBeVisible();
|
|
69
|
+
await expect(page.getByText(AGENT_NAME)).toBeVisible();
|
|
70
|
+
await expect(page.getByText(TASK_TITLE)).toBeVisible();
|
|
71
|
+
|
|
72
|
+
await page.getByRole("button", { name: "Create & Open Issue" }).click();
|
|
73
|
+
await expect(page).toHaveURL(/\/issues\//, { timeout: 10_000 });
|
|
74
|
+
|
|
75
|
+
const baseUrl = new URL(page.url()).origin;
|
|
76
|
+
|
|
77
|
+
const companiesRes = await page.request.get(`${baseUrl}/api/companies`);
|
|
78
|
+
expect(companiesRes.ok()).toBe(true);
|
|
79
|
+
const companies = (await companiesRes.json()) as Array<{ id: string; name: string }>;
|
|
80
|
+
const company = companies.find((entry) => entry.name === COMPANY_NAME);
|
|
81
|
+
expect(company).toBeTruthy();
|
|
82
|
+
|
|
83
|
+
const agentsRes = await page.request.get(
|
|
84
|
+
`${baseUrl}/api/companies/${company!.id}/agents`
|
|
85
|
+
);
|
|
86
|
+
expect(agentsRes.ok()).toBe(true);
|
|
87
|
+
const agents = (await agentsRes.json()) as Array<{
|
|
88
|
+
id: string;
|
|
89
|
+
name: string;
|
|
90
|
+
role: string;
|
|
91
|
+
adapterType: string;
|
|
92
|
+
}>;
|
|
93
|
+
const ceoAgent = agents.find((entry) => entry.name === AGENT_NAME);
|
|
94
|
+
expect(ceoAgent).toBeTruthy();
|
|
95
|
+
expect(ceoAgent!.role).toBe("ceo");
|
|
96
|
+
expect(ceoAgent!.adapterType).not.toBe("process");
|
|
97
|
+
|
|
98
|
+
const issuesRes = await page.request.get(
|
|
99
|
+
`${baseUrl}/api/companies/${company!.id}/issues`
|
|
100
|
+
);
|
|
101
|
+
expect(issuesRes.ok()).toBe(true);
|
|
102
|
+
const issues = (await issuesRes.json()) as Array<{
|
|
103
|
+
id: string;
|
|
104
|
+
title: string;
|
|
105
|
+
assigneeAgentId: string | null;
|
|
106
|
+
}>;
|
|
107
|
+
const issue = issues.find((entry) => entry.title === TASK_TITLE);
|
|
108
|
+
expect(issue).toBeTruthy();
|
|
109
|
+
expect(issue!.assigneeAgentId).toBe(ceoAgent!.id);
|
|
110
|
+
|
|
111
|
+
await expect.poll(
|
|
112
|
+
async () => {
|
|
113
|
+
const runsRes = await page.request.get(
|
|
114
|
+
`${baseUrl}/api/companies/${company!.id}/heartbeat-runs?agentId=${ceoAgent!.id}`
|
|
115
|
+
);
|
|
116
|
+
expect(runsRes.ok()).toBe(true);
|
|
117
|
+
const runs = (await runsRes.json()) as Array<{
|
|
118
|
+
agentId: string;
|
|
119
|
+
invocationSource: string;
|
|
120
|
+
status: string;
|
|
121
|
+
}>;
|
|
122
|
+
const latestRun = runs.find((entry) => entry.agentId === ceoAgent!.id);
|
|
123
|
+
return latestRun
|
|
124
|
+
? {
|
|
125
|
+
invocationSource: latestRun.invocationSource,
|
|
126
|
+
status: latestRun.status,
|
|
127
|
+
}
|
|
128
|
+
: null;
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
timeout: 30_000,
|
|
132
|
+
intervals: [1_000, 2_000, 5_000],
|
|
133
|
+
}
|
|
134
|
+
).toEqual(
|
|
135
|
+
expect.objectContaining({
|
|
136
|
+
invocationSource: "assignment",
|
|
137
|
+
status: expect.stringMatching(/^(queued|running|succeeded|failed)$/),
|
|
138
|
+
})
|
|
139
|
+
);
|
|
140
|
+
});
|
|
141
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineConfig } from "@playwright/test";
|
|
2
|
+
|
|
3
|
+
const BASE_URL =
|
|
4
|
+
process.env.PAPERCLIP_RELEASE_SMOKE_BASE_URL ?? "http://127.0.0.1:3232";
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
testDir: ".",
|
|
8
|
+
testMatch: "**/*.spec.ts",
|
|
9
|
+
timeout: 90_000,
|
|
10
|
+
expect: {
|
|
11
|
+
timeout: 15_000,
|
|
12
|
+
},
|
|
13
|
+
retries: process.env.CI ? 1 : 0,
|
|
14
|
+
use: {
|
|
15
|
+
baseURL: BASE_URL,
|
|
16
|
+
headless: true,
|
|
17
|
+
screenshot: "only-on-failure",
|
|
18
|
+
trace: "retain-on-failure",
|
|
19
|
+
},
|
|
20
|
+
projects: [
|
|
21
|
+
{
|
|
22
|
+
name: "chromium",
|
|
23
|
+
use: { browserName: "chromium" },
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
outputDir: "./test-results",
|
|
27
|
+
reporter: [["list"], ["html", { open: "never", outputFolder: "./playwright-report" }]],
|
|
28
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2023",
|
|
4
|
+
"module": "NodeNext",
|
|
5
|
+
"moduleResolution": "NodeNext",
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"declarationMap": true,
|
|
11
|
+
"sourceMap": true,
|
|
12
|
+
"outDir": "dist",
|
|
13
|
+
"rootDir": "src",
|
|
14
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
|
+
"resolveJsonModule": true,
|
|
16
|
+
"isolatedModules": true
|
|
17
|
+
}
|
|
18
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.base.json",
|
|
3
|
+
"files": [],
|
|
4
|
+
"references": [
|
|
5
|
+
{ "path": "./packages/adapter-utils" },
|
|
6
|
+
{ "path": "./packages/shared" },
|
|
7
|
+
{ "path": "./packages/db" },
|
|
8
|
+
{ "path": "./packages/adapters/claude-local" },
|
|
9
|
+
{ "path": "./packages/adapters/codex-local" },
|
|
10
|
+
{ "path": "./packages/adapters/cursor-local" },
|
|
11
|
+
{ "path": "./packages/adapters/openclaw-gateway" },
|
|
12
|
+
{ "path": "./packages/adapters/opencode-local" },
|
|
13
|
+
{ "path": "./packages/adapters/pi-local" },
|
|
14
|
+
{ "path": "./server" },
|
|
15
|
+
{ "path": "./ui" },
|
|
16
|
+
{ "path": "./cli" }
|
|
17
|
+
]
|
|
18
|
+
}
|
package/ui/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# @corporateai/ui
|
|
2
|
+
|
|
3
|
+
Published static assets for the Paperclip board UI.
|
|
4
|
+
|
|
5
|
+
## What gets published
|
|
6
|
+
|
|
7
|
+
The npm package contains the production build under `dist/`. It does not ship the UI source tree or workspace-only dependencies.
|
|
8
|
+
|
|
9
|
+
## Typical use
|
|
10
|
+
|
|
11
|
+
Install the package, then serve or copy the built files from `node_modules/@corporateai/ui/dist`.
|
|
12
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
+
"style": "new-york",
|
|
4
|
+
"rsc": false,
|
|
5
|
+
"tsx": true,
|
|
6
|
+
"tailwind": {
|
|
7
|
+
"config": "",
|
|
8
|
+
"css": "src/index.css",
|
|
9
|
+
"baseColor": "neutral",
|
|
10
|
+
"cssVariables": true,
|
|
11
|
+
"prefix": ""
|
|
12
|
+
},
|
|
13
|
+
"aliases": {
|
|
14
|
+
"components": "@/components",
|
|
15
|
+
"utils": "@/lib/utils",
|
|
16
|
+
"ui": "@/components/ui",
|
|
17
|
+
"lib": "@/lib",
|
|
18
|
+
"hooks": "@/hooks"
|
|
19
|
+
},
|
|
20
|
+
"iconLibrary": "lucide"
|
|
21
|
+
}
|
package/ui/index.html
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" class="dark">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
|
|
6
|
+
<meta name="theme-color" content="#18181b" />
|
|
7
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
8
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
9
|
+
<meta name="apple-mobile-web-app-title" content="Paperclip" />
|
|
10
|
+
<title>Paperclip</title>
|
|
11
|
+
<!-- PAPERCLIP_RUNTIME_BRANDING_START -->
|
|
12
|
+
<!-- PAPERCLIP_RUNTIME_BRANDING_END -->
|
|
13
|
+
<!-- PAPERCLIP_FAVICON_START -->
|
|
14
|
+
<link rel="icon" href="/favicon.ico" sizes="48x48" />
|
|
15
|
+
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
|
16
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
|
17
|
+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
|
18
|
+
<!-- PAPERCLIP_FAVICON_END -->
|
|
19
|
+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
|
20
|
+
<link rel="manifest" href="/site.webmanifest" />
|
|
21
|
+
<script>
|
|
22
|
+
(() => {
|
|
23
|
+
const key = "paperclip.theme";
|
|
24
|
+
const darkThemeColor = "#18181b";
|
|
25
|
+
const lightThemeColor = "#ffffff";
|
|
26
|
+
try {
|
|
27
|
+
const stored = window.localStorage.getItem(key);
|
|
28
|
+
const theme = stored === "light" || stored === "dark" ? stored : "dark";
|
|
29
|
+
const isDark = theme === "dark";
|
|
30
|
+
document.documentElement.classList.toggle("dark", isDark);
|
|
31
|
+
document.documentElement.style.colorScheme = isDark ? "dark" : "light";
|
|
32
|
+
const themeColorMeta = document.querySelector('meta[name="theme-color"]');
|
|
33
|
+
if (themeColorMeta) {
|
|
34
|
+
themeColorMeta.setAttribute("content", isDark ? darkThemeColor : lightThemeColor);
|
|
35
|
+
}
|
|
36
|
+
} catch {
|
|
37
|
+
document.documentElement.classList.add("dark");
|
|
38
|
+
document.documentElement.style.colorScheme = "dark";
|
|
39
|
+
}
|
|
40
|
+
})();
|
|
41
|
+
</script>
|
|
42
|
+
</head>
|
|
43
|
+
<body>
|
|
44
|
+
<div id="root"></div>
|
|
45
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
46
|
+
</body>
|
|
47
|
+
</html>
|
package/ui/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@corporateai/ui",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "Prebuilt Paperclip board UI assets.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://github.com/EvanGribar/corporate",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/EvanGribar/corporate/issues"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/EvanGribar/corporate",
|
|
13
|
+
"directory": "ui"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "vite",
|
|
18
|
+
"build": "tsc -b && vite build",
|
|
19
|
+
"preview": "vite preview",
|
|
20
|
+
"typecheck": "tsc -b",
|
|
21
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
22
|
+
"prepack": "rm -f package.dev.json && cp package.json package.dev.json && node ../scripts/generate-ui-package-json.mjs",
|
|
23
|
+
"postpack": "if [ -f package.dev.json ]; then mv package.dev.json package.json; fi"
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@dnd-kit/core": "^6.3.1",
|
|
30
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
31
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
32
|
+
"@lexical/link": "0.35.0",
|
|
33
|
+
"lexical": "0.35.0",
|
|
34
|
+
"@mdxeditor/editor": "^3.52.4",
|
|
35
|
+
"@corporateai/adapter-claude-local": "npm:@paperclipai/adapter-claude-local@2026.325.0",
|
|
36
|
+
"@corporateai/adapter-codex-local": "npm:@paperclipai/adapter-codex-local@2026.325.0",
|
|
37
|
+
"@corporateai/adapter-cursor-local": "npm:@paperclipai/adapter-cursor-local@2026.325.0",
|
|
38
|
+
"@corporateai/adapter-gemini-local": "npm:@paperclipai/adapter-gemini-local@2026.325.0",
|
|
39
|
+
"@corporateai/adapter-openclaw-gateway": "npm:@paperclipai/adapter-openclaw-gateway@2026.325.0",
|
|
40
|
+
"@corporateai/adapter-opencode-local": "npm:@paperclipai/adapter-opencode-local@2026.325.0",
|
|
41
|
+
"@corporateai/adapter-pi-local": "npm:@paperclipai/adapter-pi-local@2026.325.0",
|
|
42
|
+
"@corporateai/adapter-utils": "npm:@paperclipai/adapter-utils@2026.325.0",
|
|
43
|
+
"@corporateai/shared": "npm:@paperclipai/shared@2026.325.0",
|
|
44
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
45
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
46
|
+
"@tanstack/react-query": "^5.90.21",
|
|
47
|
+
"class-variance-authority": "^0.7.1",
|
|
48
|
+
"clsx": "^2.1.1",
|
|
49
|
+
"cmdk": "^1.1.1",
|
|
50
|
+
"lucide-react": "^0.574.0",
|
|
51
|
+
"mermaid": "^11.12.0",
|
|
52
|
+
"pixi.js": "^8.6.6",
|
|
53
|
+
"radix-ui": "^1.4.3",
|
|
54
|
+
"react": "^19.0.0",
|
|
55
|
+
"react-dom": "^19.0.0",
|
|
56
|
+
"react-markdown": "^10.1.0",
|
|
57
|
+
"react-router-dom": "^7.1.5",
|
|
58
|
+
"remark-gfm": "^4.0.1",
|
|
59
|
+
"tailwind-merge": "^3.4.1"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@tailwindcss/vite": "^4.0.7",
|
|
63
|
+
"@types/node": "^25.2.3",
|
|
64
|
+
"@types/react": "^19.0.8",
|
|
65
|
+
"@types/react-dom": "^19.0.3",
|
|
66
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
67
|
+
"tailwindcss": "^4.0.7",
|
|
68
|
+
"typescript": "^5.7.3",
|
|
69
|
+
"vite": "^6.1.0",
|
|
70
|
+
"vitest": "^3.0.5"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g transform="translate(30, 0)">
|
|
3
|
+
<g clip-path="url(#clip0_1401_86283)">
|
|
4
|
+
<mask id="mask0_1401_86283" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="240" height="300">
|
|
5
|
+
<path d="M240 0H0V300H240V0Z" fill="white"/>
|
|
6
|
+
</mask>
|
|
7
|
+
<g mask="url(#mask0_1401_86283)">
|
|
8
|
+
<path d="M180 240H60V120H180V240Z" fill="#4B4646"/>
|
|
9
|
+
<path d="M180 60H60V240H180V60ZM240 300H0V0H240V300Z" fill="#F1ECEC"/>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
<defs>
|
|
14
|
+
<clipPath id="clip0_1401_86283">
|
|
15
|
+
<rect width="240" height="300" fill="white"/>
|
|
16
|
+
</clipPath>
|
|
17
|
+
</defs>
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g transform="translate(30, 0)">
|
|
3
|
+
<g clip-path="url(#clip0_1401_86274)">
|
|
4
|
+
<mask id="mask0_1401_86274" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="240" height="300">
|
|
5
|
+
<path d="M240 0H0V300H240V0Z" fill="white"/>
|
|
6
|
+
</mask>
|
|
7
|
+
<g mask="url(#mask0_1401_86274)">
|
|
8
|
+
<path d="M180 240H60V120H180V240Z" fill="#CFCECD"/>
|
|
9
|
+
<path d="M180 60H60V240H180V60ZM240 300H0V0H240V300Z" fill="#211E1E"/>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
<defs>
|
|
14
|
+
<clipPath id="clip0_1401_86274">
|
|
15
|
+
<rect width="240" height="300" fill="white"/>
|
|
16
|
+
</clipPath>
|
|
17
|
+
</defs>
|
|
18
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
2
|
+
<style>
|
|
3
|
+
path { stroke: #18181b; }
|
|
4
|
+
@media (prefers-color-scheme: dark) {
|
|
5
|
+
path { stroke: #e4e4e7; }
|
|
6
|
+
}
|
|
7
|
+
</style>
|
|
8
|
+
<path stroke-width="2" d="m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"/>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "/",
|
|
3
|
+
"name": "Paperclip",
|
|
4
|
+
"short_name": "Paperclip",
|
|
5
|
+
"description": "AI-powered project management and agent coordination platform",
|
|
6
|
+
"start_url": "/",
|
|
7
|
+
"scope": "/",
|
|
8
|
+
"display": "standalone",
|
|
9
|
+
"orientation": "any",
|
|
10
|
+
"theme_color": "#18181b",
|
|
11
|
+
"background_color": "#18181b",
|
|
12
|
+
"icons": [
|
|
13
|
+
{
|
|
14
|
+
"src": "/android-chrome-192x192.png",
|
|
15
|
+
"sizes": "192x192",
|
|
16
|
+
"type": "image/png"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"src": "/android-chrome-512x512.png",
|
|
20
|
+
"sizes": "512x512",
|
|
21
|
+
"type": "image/png"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"src": "/android-chrome-512x512.png",
|
|
25
|
+
"sizes": "512x512",
|
|
26
|
+
"type": "image/png",
|
|
27
|
+
"purpose": "maskable"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|