openship 0.1.0 → 0.1.7

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.
Files changed (177) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +5786 -0
  3. package/dist/server/index.js +324319 -0
  4. package/dist/server/migrations/0000_init.sql +666 -0
  5. package/dist/server/migrations/0001_brief_tomorrow_man.sql +47 -0
  6. package/dist/server/migrations/0002_funny_dazzler.sql +2 -0
  7. package/dist/server/migrations/0003_third_killer_shrike.sql +1 -0
  8. package/dist/server/migrations/0004_session_active_org_not_null.sql +10 -0
  9. package/dist/server/migrations/0005_warm_amazoness.sql +3 -0
  10. package/dist/server/migrations/0006_lumpy_joystick.sql +1 -0
  11. package/dist/server/migrations/0007_outgoing_maginty.sql +2 -0
  12. package/dist/server/migrations/0008_frozen_cutover.sql +3 -0
  13. package/dist/server/migrations/0009_credits_billing.sql +142 -0
  14. package/dist/server/migrations/0010_credit_grant_dedupe.sql +14 -0
  15. package/dist/server/migrations/0011_remove_credit_ledger.sql +23 -0
  16. package/dist/server/migrations/0012_smart_deploys_and_git_rollback.sql +81 -0
  17. package/dist/server/migrations/0013_fix_check_run_rollup_unique.sql +38 -0
  18. package/dist/server/migrations/0014_default_rollback_git.sql +9 -0
  19. package/dist/server/migrations/0015_billing_idempotency_grants.sql +41 -0
  20. package/dist/server/migrations/0016_github_auth_high_findings.sql +30 -0
  21. package/dist/server/migrations/0017_spooky_rumiko_fujikawa.sql +6 -0
  22. package/dist/server/migrations/0018_calm_shatterstar.sql +1 -0
  23. package/dist/server/migrations/0019_rename_workspace_install_to_prepare.sql +1 -0
  24. package/dist/server/migrations/0020_uneven_the_renegades.sql +13 -0
  25. package/dist/server/migrations/0021_shiny_firestar.sql +2 -0
  26. package/dist/server/migrations/0022_version_on_success_backfill.sql +6 -0
  27. package/dist/server/migrations/0023_productive_gorilla_man.sql +17 -0
  28. package/dist/server/migrations/0024_sleepy_peter_quill.sql +2 -0
  29. package/dist/server/migrations/0025_smooth_blue_shield.sql +1 -0
  30. package/dist/server/migrations/0026_mail_backup_source.sql +11 -0
  31. package/dist/server/migrations/0027_opposite_anthem.sql +6 -0
  32. package/dist/server/migrations/0028_stale_rogue.sql +18 -0
  33. package/dist/server/migrations/0029_bouncy_loners.sql +16 -0
  34. package/dist/server/migrations/0030_bright_darkstar.sql +6 -0
  35. package/dist/server/migrations/0031_conscious_catseye.sql +13 -0
  36. package/dist/server/migrations/0032_wet_mimic.sql +51 -0
  37. package/dist/server/migrations/0033_eminent_molly_hayes.sql +2 -0
  38. package/dist/server/migrations/meta/0000_snapshot.json +5110 -0
  39. package/dist/server/migrations/meta/0001_snapshot.json +5257 -0
  40. package/dist/server/migrations/meta/0002_snapshot.json +5279 -0
  41. package/dist/server/migrations/meta/0003_snapshot.json +5286 -0
  42. package/dist/server/migrations/meta/0004_snapshot.json +5286 -0
  43. package/dist/server/migrations/meta/0005_snapshot.json +5305 -0
  44. package/dist/server/migrations/meta/0006_snapshot.json +5311 -0
  45. package/dist/server/migrations/meta/0007_snapshot.json +5323 -0
  46. package/dist/server/migrations/meta/0016_snapshot.json +6345 -0
  47. package/dist/server/migrations/meta/0017_snapshot.json +6383 -0
  48. package/dist/server/migrations/meta/0018_snapshot.json +6390 -0
  49. package/dist/server/migrations/meta/0019_snapshot.json +6390 -0
  50. package/dist/server/migrations/meta/0020_snapshot.json +6497 -0
  51. package/dist/server/migrations/meta/0021_snapshot.json +6509 -0
  52. package/dist/server/migrations/meta/0022_snapshot.json +6509 -0
  53. package/dist/server/migrations/meta/0023_snapshot.json +6629 -0
  54. package/dist/server/migrations/meta/0024_snapshot.json +6641 -0
  55. package/dist/server/migrations/meta/0025_snapshot.json +6648 -0
  56. package/dist/server/migrations/meta/0026_snapshot.json +6750 -0
  57. package/dist/server/migrations/meta/0027_snapshot.json +6757 -0
  58. package/dist/server/migrations/meta/0028_snapshot.json +6895 -0
  59. package/dist/server/migrations/meta/0029_snapshot.json +7028 -0
  60. package/dist/server/migrations/meta/0030_snapshot.json +7066 -0
  61. package/dist/server/migrations/meta/0031_snapshot.json +7181 -0
  62. package/dist/server/migrations/meta/0032_snapshot.json +7570 -0
  63. package/dist/server/migrations/meta/0033_snapshot.json +7597 -0
  64. package/dist/server/migrations/meta/_journal.json +244 -0
  65. package/dist/server/pglite/pglite.data +0 -0
  66. package/dist/server/pglite/pglite.wasm +0 -0
  67. package/package.json +33 -21
  68. package/.env.example +0 -22
  69. package/.nvmrc +0 -1
  70. package/.prettierrc +0 -7
  71. package/CONTRIBUTING.md +0 -40
  72. package/README.md +0 -164
  73. package/apps/api/.env.example +0 -30
  74. package/apps/api/Dockerfile +0 -24
  75. package/apps/api/package.json +0 -37
  76. package/apps/api/src/app.ts +0 -26
  77. package/apps/api/src/config/env.ts +0 -39
  78. package/apps/api/src/config/index.ts +0 -1
  79. package/apps/api/src/index.ts +0 -8
  80. package/apps/api/src/middleware/auth.ts +0 -24
  81. package/apps/api/src/middleware/error-handler.ts +0 -21
  82. package/apps/api/src/middleware/index.ts +0 -3
  83. package/apps/api/src/middleware/rate-limiter.ts +0 -26
  84. package/apps/api/src/modules/auth/auth.controller.ts +0 -26
  85. package/apps/api/src/modules/auth/auth.routes.ts +0 -10
  86. package/apps/api/src/modules/auth/auth.schema.ts +0 -12
  87. package/apps/api/src/modules/auth/auth.service.ts +0 -23
  88. package/apps/api/src/modules/billing/billing.controller.ts +0 -60
  89. package/apps/api/src/modules/billing/billing.routes.ts +0 -26
  90. package/apps/api/src/modules/billing/billing.schema.ts +0 -9
  91. package/apps/api/src/modules/billing/billing.service.ts +0 -33
  92. package/apps/api/src/modules/deployments/deployment.controller.ts +0 -35
  93. package/apps/api/src/modules/deployments/deployment.routes.ts +0 -11
  94. package/apps/api/src/modules/deployments/deployment.schema.ts +0 -7
  95. package/apps/api/src/modules/deployments/deployment.service.ts +0 -23
  96. package/apps/api/src/modules/domains/domain.controller.ts +0 -21
  97. package/apps/api/src/modules/domains/domain.routes.ts +0 -9
  98. package/apps/api/src/modules/domains/domain.service.ts +0 -19
  99. package/apps/api/src/modules/health/health.routes.ts +0 -10
  100. package/apps/api/src/modules/projects/project.controller.ts +0 -29
  101. package/apps/api/src/modules/projects/project.routes.ts +0 -10
  102. package/apps/api/src/modules/projects/project.schema.ts +0 -9
  103. package/apps/api/src/modules/projects/project.service.ts +0 -23
  104. package/apps/api/src/modules/webhooks/webhook.controller.ts +0 -22
  105. package/apps/api/src/modules/webhooks/webhook.routes.ts +0 -12
  106. package/apps/api/src/modules/webhooks/webhook.service.ts +0 -11
  107. package/apps/api/tsconfig.json +0 -12
  108. package/apps/cli/package.json +0 -28
  109. package/apps/cli/src/commands/deploy.ts +0 -11
  110. package/apps/cli/src/commands/init.ts +0 -8
  111. package/apps/cli/src/commands/login.ts +0 -8
  112. package/apps/cli/src/commands/logs.ts +0 -9
  113. package/apps/cli/src/index.ts +0 -21
  114. package/apps/cli/src/lib/api-client.ts +0 -35
  115. package/apps/cli/tsconfig.json +0 -12
  116. package/apps/dashboard/Dockerfile +0 -24
  117. package/apps/dashboard/next.config.mjs +0 -6
  118. package/apps/dashboard/package.json +0 -28
  119. package/apps/dashboard/src/app/(auth)/layout.tsx +0 -6
  120. package/apps/dashboard/src/app/(auth)/login/page.tsx +0 -11
  121. package/apps/dashboard/src/app/(auth)/register/page.tsx +0 -10
  122. package/apps/dashboard/src/app/(dashboard)/billing/page.tsx +0 -10
  123. package/apps/dashboard/src/app/(dashboard)/deployments/page.tsx +0 -8
  124. package/apps/dashboard/src/app/(dashboard)/domains/page.tsx +0 -8
  125. package/apps/dashboard/src/app/(dashboard)/layout.tsx +0 -37
  126. package/apps/dashboard/src/app/(dashboard)/monitoring/page.tsx +0 -8
  127. package/apps/dashboard/src/app/(dashboard)/projects/page.tsx +0 -8
  128. package/apps/dashboard/src/app/(dashboard)/settings/page.tsx +0 -8
  129. package/apps/dashboard/src/app/globals.css +0 -3
  130. package/apps/dashboard/src/app/layout.tsx +0 -15
  131. package/apps/dashboard/src/app/page.tsx +0 -6
  132. package/apps/dashboard/tsconfig.json +0 -11
  133. package/apps/web/Dockerfile +0 -24
  134. package/apps/web/next.config.mjs +0 -6
  135. package/apps/web/package.json +0 -26
  136. package/apps/web/src/app/(marketing)/docs/page.tsx +0 -10
  137. package/apps/web/src/app/(marketing)/layout.tsx +0 -24
  138. package/apps/web/src/app/(marketing)/page.tsx +0 -2
  139. package/apps/web/src/app/(marketing)/pricing/page.tsx +0 -10
  140. package/apps/web/src/app/globals.css +0 -3
  141. package/apps/web/src/app/layout.tsx +0 -16
  142. package/apps/web/src/app/page.tsx +0 -10
  143. package/apps/web/tsconfig.json +0 -11
  144. package/docker-compose.yml +0 -87
  145. package/packages/adapters/package.json +0 -27
  146. package/packages/adapters/src/base-adapter.ts +0 -49
  147. package/packages/adapters/src/docker-adapter.ts +0 -43
  148. package/packages/adapters/src/index.ts +0 -4
  149. package/packages/adapters/src/oblien-adapter.ts +0 -46
  150. package/packages/adapters/src/registry.ts +0 -22
  151. package/packages/adapters/tsconfig.json +0 -9
  152. package/packages/core/package.json +0 -27
  153. package/packages/core/src/constants.ts +0 -28
  154. package/packages/core/src/errors.ts +0 -49
  155. package/packages/core/src/index.ts +0 -4
  156. package/packages/core/src/types.ts +0 -47
  157. package/packages/core/src/utils.ts +0 -35
  158. package/packages/core/tsconfig.json +0 -9
  159. package/packages/db/package.json +0 -32
  160. package/packages/db/prisma/schema.prisma +0 -160
  161. package/packages/db/src/index.ts +0 -11
  162. package/packages/db/tsconfig.json +0 -9
  163. package/packages/ui/package.json +0 -38
  164. package/packages/ui/src/components/badge.tsx +0 -29
  165. package/packages/ui/src/components/button.tsx +0 -44
  166. package/packages/ui/src/components/card.tsx +0 -26
  167. package/packages/ui/src/components/status-dot.tsx +0 -25
  168. package/packages/ui/src/globals.css +0 -18
  169. package/packages/ui/src/index.tsx +0 -8
  170. package/packages/ui/src/lib/cn.ts +0 -7
  171. package/packages/ui/tsconfig.json +0 -9
  172. package/pnpm-workspace.yaml +0 -4
  173. package/tooling/tsconfig/base.json +0 -19
  174. package/tooling/tsconfig/nextjs.json +0 -10
  175. package/tooling/tsconfig/node.json +0 -10
  176. package/tooling/tsconfig/package.json +0 -7
  177. package/turbo.json +0 -32
@@ -1,44 +0,0 @@
1
- import * as React from "react";
2
- import { cva, type VariantProps } from "class-variance-authority";
3
- import { cn } from "../lib/cn";
4
-
5
- const buttonVariants = cva(
6
- "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
7
- {
8
- variants: {
9
- variant: {
10
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
11
- secondary: "bg-muted text-foreground hover:bg-muted/80",
12
- outline: "border border-border bg-transparent hover:bg-muted",
13
- ghost: "hover:bg-muted",
14
- destructive: "bg-red-600 text-white hover:bg-red-700",
15
- },
16
- size: {
17
- sm: "h-8 px-3 text-xs",
18
- md: "h-10 px-4",
19
- lg: "h-12 px-6 text-base",
20
- },
21
- },
22
- defaultVariants: {
23
- variant: "default",
24
- size: "md",
25
- },
26
- },
27
- );
28
-
29
- export interface ButtonProps
30
- extends React.ButtonHTMLAttributes<HTMLButtonElement>,
31
- VariantProps<typeof buttonVariants> {}
32
-
33
- export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
34
- ({ className, variant, size, ...props }, ref) => {
35
- return (
36
- <button
37
- className={cn(buttonVariants({ variant, size }), className)}
38
- ref={ref}
39
- {...props}
40
- />
41
- );
42
- },
43
- );
44
- Button.displayName = "Button";
@@ -1,26 +0,0 @@
1
- import * as React from "react";
2
- import { cn } from "../lib/cn";
3
-
4
- export function Card({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
5
- return <div className={cn("rounded-lg border bg-white shadow-sm", className)} {...props} />;
6
- }
7
-
8
- export function CardHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
9
- return <div className={cn("flex flex-col space-y-1.5 p-6", className)} {...props} />;
10
- }
11
-
12
- export function CardTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) {
13
- return <h3 className={cn("text-lg font-semibold", className)} {...props} />;
14
- }
15
-
16
- export function CardDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>) {
17
- return <p className={cn("text-sm text-muted-foreground", className)} {...props} />;
18
- }
19
-
20
- export function CardContent({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
21
- return <div className={cn("p-6 pt-0", className)} {...props} />;
22
- }
23
-
24
- export function CardFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
25
- return <div className={cn("flex items-center p-6 pt-0", className)} {...props} />;
26
- }
@@ -1,25 +0,0 @@
1
- import { cn } from "../lib/cn";
2
- import type { DeploymentStatus } from "openship-core";
3
-
4
- const statusColors: Record<string, string> = {
5
- queued: "bg-gray-400",
6
- building: "bg-yellow-400 animate-pulse",
7
- deploying: "bg-blue-400 animate-pulse",
8
- ready: "bg-green-500",
9
- failed: "bg-red-500",
10
- cancelled: "bg-gray-400",
11
- };
12
-
13
- interface StatusDotProps {
14
- status: DeploymentStatus;
15
- className?: string;
16
- }
17
-
18
- export function StatusDot({ status, className }: StatusDotProps) {
19
- return (
20
- <span
21
- className={cn("inline-block h-2.5 w-2.5 rounded-full", statusColors[status], className)}
22
- title={status}
23
- />
24
- );
25
- }
@@ -1,18 +0,0 @@
1
- /* Shared design tokens and base Tailwind styles */
2
- @tailwind base;
3
- @tailwind components;
4
- @tailwind utilities;
5
-
6
- @layer base {
7
- :root {
8
- --background: 0 0% 100%;
9
- --foreground: 222.2 84% 4.9%;
10
- --primary: 222.2 47.4% 11.2%;
11
- --primary-foreground: 210 40% 98%;
12
- --muted: 210 40% 96.1%;
13
- --muted-foreground: 215.4 16.3% 46.9%;
14
- --border: 214.3 31.8% 91.4%;
15
- --ring: 222.2 84% 4.9%;
16
- --radius: 0.5rem;
17
- }
18
- }
@@ -1,8 +0,0 @@
1
- /* ---------- Components ---------- */
2
- export { Button } from "./components/button";
3
- export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from "./components/card";
4
- export { Badge } from "./components/badge";
5
- export { StatusDot } from "./components/status-dot";
6
-
7
- /* ---------- Utils ---------- */
8
- export { cn } from "./lib/cn";
@@ -1,7 +0,0 @@
1
- import { clsx, type ClassValue } from "clsx";
2
- import { twMerge } from "tailwind-merge";
3
-
4
- /** Merge Tailwind classes without conflicts */
5
- export function cn(...inputs: ClassValue[]) {
6
- return twMerge(clsx(inputs));
7
- }
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "openship-tsconfig/nextjs.json",
3
- "compilerOptions": {
4
- "baseUrl": ".",
5
- "outDir": "dist"
6
- },
7
- "include": ["src/**/*.ts", "src/**/*.tsx"],
8
- "exclude": ["node_modules", "dist"]
9
- }
@@ -1,4 +0,0 @@
1
- packages:
2
- - "apps/*"
3
- - "packages/*"
4
- - "tooling/*"
@@ -1,19 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- "strict": true,
5
- "esModuleInterop": true,
6
- "forceConsistentCasingInFileNames": true,
7
- "skipLibCheck": true,
8
- "target": "ES2022",
9
- "module": "ESNext",
10
- "moduleResolution": "bundler",
11
- "resolveJsonModule": true,
12
- "isolatedModules": true,
13
- "incremental": true,
14
- "declaration": true,
15
- "declarationMap": true,
16
- "sourceMap": true
17
- },
18
- "exclude": ["node_modules", "dist"]
19
- }
@@ -1,10 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "extends": "./base.json",
4
- "compilerOptions": {
5
- "lib": ["DOM", "DOM.Iterable", "ES2022"],
6
- "jsx": "preserve",
7
- "noEmit": true,
8
- "plugins": [{ "name": "next" }]
9
- }
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "extends": "./base.json",
4
- "compilerOptions": {
5
- "lib": ["ES2022"],
6
- "module": "ESNext",
7
- "outDir": "dist",
8
- "noEmit": false
9
- }
10
- }
@@ -1,7 +0,0 @@
1
- {
2
- "name": "openship-tsconfig",
3
- "version": "0.0.0",
4
- "private": true,
5
- "license": "MIT",
6
- "files": ["base.json", "nextjs.json", "node.json"]
7
- }
package/turbo.json DELETED
@@ -1,32 +0,0 @@
1
- {
2
- "$schema": "https://turbo.build/schema.json",
3
- "globalDependencies": ["**/.env.*local"],
4
- "tasks": {
5
- "build": {
6
- "dependsOn": ["^build"],
7
- "outputs": ["dist/**", ".next/**", "!.next/cache/**"]
8
- },
9
- "dev": {
10
- "cache": false,
11
- "persistent": true
12
- },
13
- "lint": {
14
- "dependsOn": ["^build"]
15
- },
16
- "test": {
17
- "dependsOn": ["^build"]
18
- },
19
- "clean": {
20
- "cache": false
21
- },
22
- "db:generate": {
23
- "cache": false
24
- },
25
- "db:push": {
26
- "cache": false
27
- },
28
- "db:migrate": {
29
- "cache": false
30
- }
31
- }
32
- }