@better-openclaw/core 1.0.24 → 1.0.25

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 (170) hide show
  1. package/dist/addon-stack.cjs +673 -0
  2. package/dist/addon-stack.cjs.map +1 -0
  3. package/dist/addon-stack.d.cts +23 -0
  4. package/dist/addon-stack.d.cts.map +1 -0
  5. package/dist/addon-stack.d.mts +23 -0
  6. package/dist/addon-stack.d.mts.map +1 -0
  7. package/dist/addon-stack.mjs +671 -0
  8. package/dist/addon-stack.mjs.map +1 -0
  9. package/dist/addon-stack.test.cjs +349 -0
  10. package/dist/addon-stack.test.cjs.map +1 -0
  11. package/dist/addon-stack.test.d.cts +1 -0
  12. package/dist/addon-stack.test.d.mts +1 -0
  13. package/dist/addon-stack.test.mjs +349 -0
  14. package/dist/addon-stack.test.mjs.map +1 -0
  15. package/dist/bare-metal-partition.test.cjs +20 -20
  16. package/dist/bare-metal-partition.test.cjs.map +1 -1
  17. package/dist/bare-metal-partition.test.mjs +2 -2
  18. package/dist/composer.cjs +4 -0
  19. package/dist/composer.cjs.map +1 -1
  20. package/dist/composer.d.cts +24 -1
  21. package/dist/composer.d.cts.map +1 -1
  22. package/dist/composer.d.mts +24 -1
  23. package/dist/composer.d.mts.map +1 -1
  24. package/dist/composer.mjs +1 -1
  25. package/dist/composer.mjs.map +1 -1
  26. package/dist/composer.snapshot.test.cjs +20 -20
  27. package/dist/composer.snapshot.test.cjs.map +1 -1
  28. package/dist/composer.snapshot.test.mjs +2 -2
  29. package/dist/composer.test.cjs +53 -53
  30. package/dist/composer.test.cjs.map +1 -1
  31. package/dist/composer.test.mjs +2 -2
  32. package/dist/deployers/strip-host-ports.test.cjs +26 -26
  33. package/dist/deployers/strip-host-ports.test.cjs.map +1 -1
  34. package/dist/deployers/strip-host-ports.test.mjs +1 -1
  35. package/dist/generate.cjs +2 -2
  36. package/dist/generate.mjs +3 -3
  37. package/dist/generate.test.cjs +55 -55
  38. package/dist/generate.test.cjs.map +1 -1
  39. package/dist/generate.test.mjs +1 -1
  40. package/dist/generators/bare-metal-install.test.cjs +18 -18
  41. package/dist/generators/bare-metal-install.test.cjs.map +1 -1
  42. package/dist/generators/bare-metal-install.test.mjs +1 -1
  43. package/dist/generators/caddy.test.cjs +13 -13
  44. package/dist/generators/caddy.test.cjs.map +1 -1
  45. package/dist/generators/caddy.test.mjs +1 -1
  46. package/dist/generators/clone-repos.test.cjs +27 -27
  47. package/dist/generators/clone-repos.test.cjs.map +1 -1
  48. package/dist/generators/clone-repos.test.mjs +1 -1
  49. package/dist/generators/env.test.cjs +17 -17
  50. package/dist/generators/env.test.cjs.map +1 -1
  51. package/dist/generators/env.test.mjs +1 -1
  52. package/dist/generators/health-check.test.cjs +39 -39
  53. package/dist/generators/health-check.test.cjs.map +1 -1
  54. package/dist/generators/health-check.test.mjs +1 -1
  55. package/dist/generators/scripts.test.cjs +39 -39
  56. package/dist/generators/scripts.test.cjs.map +1 -1
  57. package/dist/generators/scripts.test.mjs +1 -1
  58. package/dist/generators/traefik.test.cjs +32 -32
  59. package/dist/generators/traefik.test.cjs.map +1 -1
  60. package/dist/generators/traefik.test.mjs +1 -1
  61. package/dist/index.cjs +20 -4
  62. package/dist/index.d.cts +5 -4
  63. package/dist/index.d.mts +5 -4
  64. package/dist/index.mjs +7 -6
  65. package/dist/migrations.test.cjs +16 -16
  66. package/dist/migrations.test.cjs.map +1 -1
  67. package/dist/migrations.test.mjs +1 -1
  68. package/dist/presets/registry.test.cjs +14 -14
  69. package/dist/presets/registry.test.cjs.map +1 -1
  70. package/dist/presets/registry.test.mjs +1 -1
  71. package/dist/resolver.test.cjs +95 -95
  72. package/dist/resolver.test.cjs.map +1 -1
  73. package/dist/resolver.test.mjs +1 -1
  74. package/dist/{schema-eX44HhRp.d.mts → schema-CKBRu-Rt.d.cts} +295 -2
  75. package/dist/schema-CKBRu-Rt.d.cts.map +1 -0
  76. package/dist/{schema-tn5RK8CM.d.cts → schema-Dn-_Jpb6.d.mts} +295 -2
  77. package/dist/schema-Dn-_Jpb6.d.mts.map +1 -0
  78. package/dist/schema.cjs +138 -1
  79. package/dist/schema.cjs.map +1 -1
  80. package/dist/schema.d.cts +2 -2
  81. package/dist/schema.d.mts +2 -2
  82. package/dist/schema.mjs +130 -2
  83. package/dist/schema.mjs.map +1 -1
  84. package/dist/schema.test.cjs +86 -86
  85. package/dist/schema.test.cjs.map +1 -1
  86. package/dist/schema.test.mjs +1 -1
  87. package/dist/services/definitions/browserless.cjs +4 -1
  88. package/dist/services/definitions/browserless.cjs.map +1 -1
  89. package/dist/services/definitions/browserless.mjs +4 -1
  90. package/dist/services/definitions/browserless.mjs.map +1 -1
  91. package/dist/services/definitions/convex.cjs +43 -1
  92. package/dist/services/definitions/convex.cjs.map +1 -1
  93. package/dist/services/definitions/convex.mjs +43 -1
  94. package/dist/services/definitions/convex.mjs.map +1 -1
  95. package/dist/services/definitions/grafana.cjs +11 -1
  96. package/dist/services/definitions/grafana.cjs.map +1 -1
  97. package/dist/services/definitions/grafana.mjs +11 -1
  98. package/dist/services/definitions/grafana.mjs.map +1 -1
  99. package/dist/services/definitions/meilisearch.cjs +11 -1
  100. package/dist/services/definitions/meilisearch.cjs.map +1 -1
  101. package/dist/services/definitions/meilisearch.mjs +11 -1
  102. package/dist/services/definitions/meilisearch.mjs.map +1 -1
  103. package/dist/services/definitions/minio.cjs +3 -1
  104. package/dist/services/definitions/minio.cjs.map +1 -1
  105. package/dist/services/definitions/minio.mjs +3 -1
  106. package/dist/services/definitions/minio.mjs.map +1 -1
  107. package/dist/services/definitions/n8n.cjs +11 -1
  108. package/dist/services/definitions/n8n.cjs.map +1 -1
  109. package/dist/services/definitions/n8n.mjs +11 -1
  110. package/dist/services/definitions/n8n.mjs.map +1 -1
  111. package/dist/services/definitions/ollama.cjs +3 -1
  112. package/dist/services/definitions/ollama.cjs.map +1 -1
  113. package/dist/services/definitions/ollama.mjs +3 -1
  114. package/dist/services/definitions/ollama.mjs.map +1 -1
  115. package/dist/services/definitions/qdrant.cjs +3 -1
  116. package/dist/services/definitions/qdrant.cjs.map +1 -1
  117. package/dist/services/definitions/qdrant.mjs +3 -1
  118. package/dist/services/definitions/qdrant.mjs.map +1 -1
  119. package/dist/services/definitions/searxng.cjs +8 -1
  120. package/dist/services/definitions/searxng.cjs.map +1 -1
  121. package/dist/services/definitions/searxng.mjs +8 -1
  122. package/dist/services/definitions/searxng.mjs.map +1 -1
  123. package/dist/services/definitions/uptime-kuma.cjs +8 -1
  124. package/dist/services/definitions/uptime-kuma.cjs.map +1 -1
  125. package/dist/services/definitions/uptime-kuma.mjs +8 -1
  126. package/dist/services/definitions/uptime-kuma.mjs.map +1 -1
  127. package/dist/services/registry.test.cjs +36 -36
  128. package/dist/services/registry.test.cjs.map +1 -1
  129. package/dist/services/registry.test.mjs +1 -1
  130. package/dist/{vi.2VT5v0um-C_jmO7m2.mjs → test.CTcmp4Su-ClCHJ3FA.mjs} +6793 -6403
  131. package/dist/test.CTcmp4Su-ClCHJ3FA.mjs.map +1 -0
  132. package/dist/{vi.2VT5v0um-iVBt6Fyq.cjs → test.CTcmp4Su-DlzTarwH.cjs} +6793 -6403
  133. package/dist/test.CTcmp4Su-DlzTarwH.cjs.map +1 -0
  134. package/dist/track-analytics.test.cjs +28 -28
  135. package/dist/track-analytics.test.cjs.map +1 -1
  136. package/dist/track-analytics.test.mjs +1 -1
  137. package/dist/types.cjs.map +1 -1
  138. package/dist/types.d.cts +10 -2
  139. package/dist/types.d.cts.map +1 -1
  140. package/dist/types.d.mts +10 -2
  141. package/dist/types.d.mts.map +1 -1
  142. package/dist/types.mjs.map +1 -1
  143. package/dist/validator.test.cjs +15 -15
  144. package/dist/validator.test.cjs.map +1 -1
  145. package/dist/validator.test.mjs +2 -2
  146. package/dist/version-manager.test.cjs +37 -37
  147. package/dist/version-manager.test.cjs.map +1 -1
  148. package/dist/version-manager.test.mjs +1 -1
  149. package/package.json +4 -4
  150. package/src/__snapshots__/composer.snapshot.test.ts.snap +5 -0
  151. package/src/addon-stack.test.ts +490 -0
  152. package/src/addon-stack.ts +998 -0
  153. package/src/composer.ts +4 -4
  154. package/src/index.ts +20 -2
  155. package/src/schema.ts +183 -0
  156. package/src/services/definitions/browserless.ts +3 -0
  157. package/src/services/definitions/convex.ts +31 -0
  158. package/src/services/definitions/grafana.ts +9 -0
  159. package/src/services/definitions/meilisearch.ts +9 -0
  160. package/src/services/definitions/minio.ts +2 -0
  161. package/src/services/definitions/n8n.ts +9 -0
  162. package/src/services/definitions/ollama.ts +2 -0
  163. package/src/services/definitions/qdrant.ts +2 -0
  164. package/src/services/definitions/searxng.ts +3 -0
  165. package/src/services/definitions/uptime-kuma.ts +3 -0
  166. package/src/types.ts +18 -0
  167. package/dist/schema-eX44HhRp.d.mts.map +0 -1
  168. package/dist/schema-tn5RK8CM.d.cts.map +0 -1
  169. package/dist/vi.2VT5v0um-C_jmO7m2.mjs.map +0 -1
  170. package/dist/vi.2VT5v0um-iVBt6Fyq.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"schema.mjs","names":[],"sources":["../src/schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\n// ─── Enums ──────────────────────────────────────────────────────────────────\n\nexport const ServiceCategorySchema = z.enum([\n\t\"automation\",\n\t\"vector-db\",\n\t\"media\",\n\t\"storage\",\n\t\"database\",\n\t\"proxy\",\n\t\"monitoring\",\n\t\"browser\",\n\t\"search\",\n\t\"ai\",\n\t\"communication\",\n\t\"coding-agent\",\n\t\"social-media\",\n\t\"analytics\",\n\t\"ai-platform\",\n\t\"dev-tools\",\n\t\"knowledge\",\n\t\"desktop\",\n\t\"streaming\",\n\t\"security\",\n\t\"billing\",\n\t\"crm\",\n\t\"email-marketing\",\n\t\"forms\",\n\t\"api-gateway\",\n\t\"backup\",\n\t\"voice\",\n\t\"ecommerce\",\n\t\"collaboration\",\n\t\"ai-observability\",\n\t\"fine-tuning\",\n\t\"project-management\",\n\t\"business-intelligence\",\n\t\"dns-networking\",\n\t\"iot\",\n\t\"saas-boilerplate\",\n]);\n\nexport const MaturitySchema = z.enum([\"stable\", \"beta\", \"experimental\"]);\n\nexport const PlatformSchema = z.enum([\n\t\"linux/amd64\",\n\t\"linux/arm64\",\n\t\"windows/amd64\",\n\t\"macos/amd64\",\n\t\"macos/arm64\",\n]);\n\n/** Platform for Docker image arch only (used by resolver/compose). */\nexport const ComposePlatformSchema = z.enum([\"linux/amd64\", \"linux/arm64\"]);\n\nexport const DeploymentTypeSchema = z.enum([\"docker\", \"bare-metal\", \"local\"]);\n\nexport const RestartPolicySchema = z.enum([\"unless-stopped\", \"always\", \"on-failure\", \"no\"]);\n\nexport const ProxyTypeSchema = z.enum([\"none\", \"caddy\", \"traefik\"]);\n\nexport const DeploymentTargetSchema = z.enum([\"local\", \"vps\", \"homelab\", \"clawexa\"]);\n\nexport const OutputFormatSchema = z.enum([\"directory\", \"tar\", \"zip\"]);\n\nexport const OpenclawImageVariantSchema = z.enum([\"official\", \"coolify\", \"alpine\"]);\n\nexport const OpenclawInstallMethodSchema = z.enum([\"docker\", \"direct\"]);\n\nexport const DeployTargetSchema = z.enum([\"local\", \"cloud-init\"]);\n\nexport const AiProviderSchema = z.enum([\n\t\"openai\",\n\t\"anthropic\",\n\t\"google\",\n\t\"xai\",\n\t\"deepseek\",\n\t\"groq\",\n\t\"openrouter\",\n\t\"mistral\",\n\t\"together\",\n\t\"ollama\",\n\t\"ollama-cloud\",\n\t\"lmstudio\",\n\t\"vllm\",\n]);\n\nexport const GsdRuntimeSchema = z.enum([\"claude\", \"opencode\", \"gemini\", \"codex\"]);\n\n// ─── Sub-Schemas ────────────────────────────────────────────────────────────\n\nexport const PortMappingSchema = z.object({\n\thost: z.number().int().min(1).max(65535),\n\tcontainer: z.number().int().min(1).max(65535),\n\tdescription: z.string(),\n\texposed: z.boolean().default(true),\n});\n\nexport const VolumeMappingSchema = z.object({\n\tname: z.string().min(1),\n\tcontainerPath: z.string().min(1),\n\tdescription: z.string(),\n\tdriver: z.string().optional(),\n});\n\nexport const EnvVariableSchema = z.object({\n\tkey: z.string().min(1),\n\tdefaultValue: z.string(),\n\tsecret: z.boolean().default(false),\n\tdescription: z.string(),\n\trequired: z.boolean().default(true),\n\tvalidation: z.string().optional(),\n});\n\nexport const HealthCheckSchema = z.object({\n\ttest: z.string().min(1),\n\tinterval: z.string().default(\"30s\"),\n\ttimeout: z.string().default(\"10s\"),\n\tretries: z.number().int().min(1).default(3),\n\tstartPeriod: z.string().optional(),\n});\n\nexport const ResourceLimitsSchema = z.object({\n\tcpus: z.string().optional(),\n\tmemory: z.string().optional(),\n});\n\nexport const DeploySchema = z.object({\n\tresources: z\n\t\t.object({\n\t\t\tlimits: ResourceLimitsSchema.optional(),\n\t\t\treservations: ResourceLimitsSchema.optional(),\n\t\t})\n\t\t.optional(),\n});\n\nexport const SkillBindingSchema = z.object({\n\tskillId: z.string().min(1),\n\tautoInstall: z.boolean().default(true),\n\tconfigOverrides: z.record(z.string(), z.string()).optional(),\n});\n\n/** Platform for native install (linux, windows, macos — no arch). */\nexport const NativePlatformSchema = z.enum([\"linux\", \"windows\", \"macos\"]);\n\nexport const NativeRecipeSchema = z.object({\n\tplatform: NativePlatformSchema,\n\tinstallSteps: z.array(z.string()).min(1),\n\tstartCommand: z.string(),\n\tstopCommand: z.string().optional(),\n\tconfigPath: z.string().optional(),\n\tconfigTemplate: z.string().optional(),\n\tsystemdUnit: z.string().optional(),\n});\n\n// ─── Git Source / Build Context (for repo-based services) ───────────────────\n\nexport const GitSourceSchema = z.object({\n\t/** Git clone URL, e.g. \"https://github.com/wasp-lang/open-saas.git\" */\n\trepoUrl: z.string().url(),\n\t/** Branch or tag to clone. Defaults to repo's default branch. */\n\tbranch: z.string().optional(),\n\t/** Subdirectory within the cloned repo to use as build context root. */\n\tsubdirectory: z.string().optional(),\n\t/** Commands to run after cloning (e.g. \"cp .env.example .env\"). */\n\tpostCloneCommands: z.array(z.string()).default([]),\n});\n\nexport const BuildContextSchema = z.object({\n\t/** Path to Dockerfile relative to the context root. Defaults to \"Dockerfile\". */\n\tdockerfile: z.string().optional(),\n\t/** Build context path relative to the subdirectory root. Defaults to \".\". */\n\tcontext: z.string().default(\".\"),\n\t/** Docker build args to pass at build time. */\n\targs: z.record(z.string(), z.string()).optional(),\n\t/** Target stage in a multi-stage Dockerfile. */\n\ttarget: z.string().optional(),\n});\n\n// ─── Service Definition ─────────────────────────────────────────────────────\n\nexport const ServiceDefinitionSchema = z.object({\n\t// Identity\n\tid: z\n\t\t.string()\n\t\t.min(1)\n\t\t.regex(/^[a-z0-9-]+$/),\n\tname: z.string().min(1),\n\tdescription: z.string(),\n\tcategory: ServiceCategorySchema,\n\ticon: z.string(),\n\n\t// Docker (required for image-based services, omitted for git-based)\n\timage: z.string().min(1).optional(),\n\timageTag: z.string().min(1).optional(),\n\n\t// Git source (for services built from cloned repositories)\n\tgitSource: GitSourceSchema.optional(),\n\tbuildContext: BuildContextSchema.optional(),\n\tports: z.array(PortMappingSchema).default([]),\n\tvolumes: z.array(VolumeMappingSchema).default([]),\n\tenvironment: z.array(EnvVariableSchema).default([]),\n\thealthcheck: HealthCheckSchema.optional(),\n\tcommand: z.string().optional(),\n\tentrypoint: z.string().optional(),\n\tdependsOn: z.array(z.string()).default([]),\n\trestartPolicy: RestartPolicySchema.default(\"unless-stopped\"),\n\tnetworks: z.array(z.string()).default([\"openclaw-network\"]),\n\tlabels: z.record(z.string(), z.string()).optional(),\n\tdeploy: DeploySchema.optional(),\n\n\t// OpenClaw Integration\n\tskills: z.array(SkillBindingSchema).default([]),\n\topenclawEnvVars: z.array(EnvVariableSchema).default([]),\n\topenclawVolumeMounts: z.array(VolumeMappingSchema).optional(),\n\n\t// Metadata\n\tdocsUrl: z.string().url(),\n\tselfHostedDocsUrl: z.string().url().optional(),\n\ttags: z.array(z.string()).default([]),\n\tmaturity: MaturitySchema.default(\"stable\"),\n\n\t// Dependencies & Conflicts\n\trequires: z.array(z.string()).default([]),\n\trecommends: z.array(z.string()).default([]),\n\tconflictsWith: z.array(z.string()).default([]),\n\tmandatory: z.boolean().default(false).optional(),\n\tremovalWarning: z.string().optional(),\n\n\t// Platform Constraints\n\tplatforms: z.array(PlatformSchema).optional(),\n\tminMemoryMB: z.number().int().min(0).optional(),\n\tgpuRequired: z.boolean().default(false),\n\n\t// Bare-metal native (install/run on host when no Docker)\n\tnativeSupported: z.boolean().optional(),\n\tnativeRecipes: z.array(NativeRecipeSchema).optional(),\n});\n\n// ─── Skill Pack ─────────────────────────────────────────────────────────────\n\nexport const SkillPackSchema = z.object({\n\tid: z\n\t\t.string()\n\t\t.min(1)\n\t\t.regex(/^[a-z0-9-]+$/),\n\tname: z.string().min(1),\n\tdescription: z.string(),\n\trequiredServices: z.array(z.string()).min(1),\n\tskills: z.array(z.string()),\n\ticon: z.string().optional(),\n\ttags: z.array(z.string()).default([]),\n});\n\n// ─── Preset ─────────────────────────────────────────────────────────────────\n\nexport const PresetSchema = z.object({\n\tid: z\n\t\t.string()\n\t\t.min(1)\n\t\t.regex(/^[a-z0-9-]+$/),\n\tname: z.string().min(1),\n\tdescription: z.string(),\n\tservices: z.array(z.string()),\n\tskillPacks: z.array(z.string()).default([]),\n\testimatedMemoryMB: z.number().int().min(0).optional(),\n});\n\n// ─── Generation Input ───────────────────────────────────────────────────────\n\nexport const GenerationInputSchema = z.object({\n\tconfigVersion: z.number().int().min(1).optional(),\n\tprojectName: z\n\t\t.string()\n\t\t.min(1)\n\t\t.max(64)\n\t\t.regex(/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/, {\n\t\t\tmessage:\n\t\t\t\t\"Project name must be lowercase alphanumeric with hyphens, cannot start or end with hyphen\",\n\t\t}),\n\tservices: z.array(z.string()).default([]),\n\tskillPacks: z.array(z.string()).default([]),\n\taiProviders: z.array(AiProviderSchema).default([]),\n\tgsdRuntimes: z.array(GsdRuntimeSchema).default([]),\n\tproxy: ProxyTypeSchema.default(\"none\"),\n\tproxyHttpPort: z.number().int().min(1).max(65535).optional(),\n\tproxyHttpsPort: z.number().int().min(1).max(65535).optional(),\n\tportOverrides: z\n\t\t.record(z.string(), z.record(z.string(), z.number().int().min(1).max(65535)))\n\t\t.optional(),\n\tdomain: z.string().optional(),\n\tgpu: z.boolean().default(false),\n\tplatform: PlatformSchema.default(\"linux/amd64\"),\n\tdeployment: DeploymentTargetSchema.default(\"local\"),\n\tdeploymentType: DeploymentTypeSchema.default(\"docker\"),\n\tgenerateSecrets: z.boolean().default(true),\n\topenclawVersion: z.string().default(\"latest\"),\n\tmonitoring: z.boolean().default(false),\n\topenclawImage: OpenclawImageVariantSchema.default(\"official\"),\n\topenclawInstallMethod: OpenclawInstallMethodSchema.default(\"docker\"),\n\tdeployTarget: DeployTargetSchema.default(\"local\"),\n\thardened: z.boolean().default(true),\n});\n\n// ─── Resolver Output ────────────────────────────────────────────────────────\n\nexport const ResolvedServiceSchema = z.object({\n\tdefinition: ServiceDefinitionSchema,\n\taddedBy: z.enum([\"user\", \"dependency\", \"skill-pack\", \"proxy\", \"monitoring\", \"mandatory\"]).default(\"user\"),\n});\n\nexport const AddedDependencySchema = z.object({\n\tservice: z.string(),\n\tserviceId: z.string().optional(),\n\trequiredBy: z.string().optional(),\n\treason: z.string(),\n});\n\nexport const WarningSchema = z.object({\n\ttype: z.string(),\n\tmessage: z.string(),\n});\n\nexport const ErrorSchema = z.object({\n\ttype: z.string(),\n\tmessage: z.string(),\n});\n\nexport const ResolverOutputSchema = z.object({\n\tservices: z.array(ResolvedServiceSchema),\n\taddedDependencies: z.array(AddedDependencySchema),\n\tremovedConflicts: z.array(z.object({ service: z.string(), reason: z.string() })),\n\twarnings: z.array(WarningSchema),\n\terrors: z.array(ErrorSchema),\n\tisValid: z.boolean(),\n\testimatedMemoryMB: z.number().int().min(0),\n\taiProviders: z.array(AiProviderSchema).default([]),\n\tgsdRuntimes: z.array(GsdRuntimeSchema).default([]),\n});\n\n// ─── Compose Options ────────────────────────────────────────────────────────\n\nexport const ComposeOptionsSchema = z.object({\n\tprojectName: z.string(),\n\tproxy: ProxyTypeSchema.default(\"none\"),\n\tproxyHttpPort: z.number().int().min(1).max(65535).optional(),\n\tproxyHttpsPort: z.number().int().min(1).max(65535).optional(),\n\tportOverrides: z\n\t\t.record(z.string(), z.record(z.string(), z.number().int().min(1).max(65535)))\n\t\t.optional(),\n\tdomain: z.string().optional(),\n\tgpu: z.boolean().default(false),\n\tplatform: PlatformSchema.default(\"linux/amd64\"),\n\tdeployment: DeploymentTargetSchema.default(\"local\"),\n\topenclawVersion: z.string().default(\"latest\"),\n\t/** When true, gateway gets extra_hosts so it can reach host-run (native) services. */\n\tbareMetalNativeHost: z.boolean().optional(),\n\t/** OpenClaw Docker image variant: official, coolify, or alpine. */\n\topenclawImage: OpenclawImageVariantSchema.default(\"official\"),\n\t/** Whether to apply security hardening (cap_drop, no-new-privileges, etc.) */\n\thardened: z.boolean().default(true),\n\t/** How to install OpenClaw itself: docker (in container) or direct (host install). */\n\topenclawInstallMethod: OpenclawInstallMethodSchema.default(\"docker\"),\n});\n\n// ─── API Request/Response ───────────────────────────────────────────────────\n\nexport const ValidateRequestSchema = z.object({\n\tservices: z.array(z.string()),\n\tskillPacks: z.array(z.string()).default([]),\n\taiProviders: z.array(AiProviderSchema).default([]),\n\tgsdRuntimes: z.array(GsdRuntimeSchema).default([]),\n\tproxy: ProxyTypeSchema.default(\"none\"),\n\tdomain: z.string().optional(),\n\tgpu: z.boolean().default(false),\n\tplatform: PlatformSchema.default(\"linux/amd64\"),\n});\n\nexport const ValidateResponseSchema = z.object({\n\tvalid: z.boolean(),\n\tresolvedServices: z.array(z.string()),\n\taddedDependencies: z.array(AddedDependencySchema),\n\twarnings: z.array(WarningSchema),\n\tconflicts: z.array(ErrorSchema),\n\testimatedMemoryMB: z.number(),\n});\n\nexport const ApiErrorSchema = z.object({\n\terror: z.object({\n\t\tcode: z.enum([\n\t\t\t\"VALIDATION_ERROR\",\n\t\t\t\"CONFLICT_ERROR\",\n\t\t\t\"GENERATION_ERROR\",\n\t\t\t\"RATE_LIMITED\",\n\t\t\t\"INTERNAL_ERROR\",\n\t\t]),\n\t\tmessage: z.string(),\n\t\tdetails: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tfield: z.string().optional(),\n\t\t\t\t\tmessage: z.string(),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.optional(),\n\t}),\n});\n"],"mappings":";;AAIA,MAAa,wBAAwB,EAAE,KAAK;CAC3C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAAC;AAEF,MAAa,iBAAiB,EAAE,KAAK;CAAC;CAAU;CAAQ;CAAe,CAAC;AAExE,MAAa,iBAAiB,EAAE,KAAK;CACpC;CACA;CACA;CACA;CACA;CACA,CAAC;;AAGF,MAAa,wBAAwB,EAAE,KAAK,CAAC,eAAe,cAAc,CAAC;AAE3E,MAAa,uBAAuB,EAAE,KAAK;CAAC;CAAU;CAAc;CAAQ,CAAC;AAE7E,MAAa,sBAAsB,EAAE,KAAK;CAAC;CAAkB;CAAU;CAAc;CAAK,CAAC;AAE3F,MAAa,kBAAkB,EAAE,KAAK;CAAC;CAAQ;CAAS;CAAU,CAAC;AAEnE,MAAa,yBAAyB,EAAE,KAAK;CAAC;CAAS;CAAO;CAAW;CAAU,CAAC;AAEpF,MAAa,qBAAqB,EAAE,KAAK;CAAC;CAAa;CAAO;CAAM,CAAC;AAErE,MAAa,6BAA6B,EAAE,KAAK;CAAC;CAAY;CAAW;CAAS,CAAC;AAEnF,MAAa,8BAA8B,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC;AAEvE,MAAa,qBAAqB,EAAE,KAAK,CAAC,SAAS,aAAa,CAAC;AAEjE,MAAa,mBAAmB,EAAE,KAAK;CACtC;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AAE,SAAS;CAClB,kBAAkB,EAAE,MAAM,EAAE,QAAQ,CAAC;CACrC,mBAAmB,EAAE,MAAM,sBAAsB;CACjD,UAAU,EAAE,MAAM,cAAc;CAChC,WAAW,EAAE,MAAM,YAAY;CAC/B,mBAAmB,EAAE,QAAQ;CAC7B,CAAC;AAEF,MAAa,iBAAiB,EAAE,OAAO,EACtC,OAAO,EAAE,OAAO;CACf,MAAM,EAAE,KAAK;EACZ;EACA;EACA;EACA;EACA;EACA,CAAC;CACF,SAAS,EAAE,QAAQ;CACnB,SAAS,EACP,MACA,EAAE,OAAO;EACR,OAAO,EAAE,QAAQ,CAAC,UAAU;EAC5B,SAAS,EAAE,QAAQ;EACnB,CAAC,CACF,CACA,UAAU;CACZ,CAAC,EACF,CAAC"}
1
+ {"version":3,"file":"schema.mjs","names":[],"sources":["../src/schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\n// ─── Enums ──────────────────────────────────────────────────────────────────\n\nexport const ServiceCategorySchema = z.enum([\n\t\"automation\",\n\t\"vector-db\",\n\t\"media\",\n\t\"storage\",\n\t\"database\",\n\t\"proxy\",\n\t\"monitoring\",\n\t\"browser\",\n\t\"search\",\n\t\"ai\",\n\t\"communication\",\n\t\"coding-agent\",\n\t\"social-media\",\n\t\"analytics\",\n\t\"ai-platform\",\n\t\"dev-tools\",\n\t\"knowledge\",\n\t\"desktop\",\n\t\"streaming\",\n\t\"security\",\n\t\"billing\",\n\t\"crm\",\n\t\"email-marketing\",\n\t\"forms\",\n\t\"api-gateway\",\n\t\"backup\",\n\t\"voice\",\n\t\"ecommerce\",\n\t\"collaboration\",\n\t\"ai-observability\",\n\t\"fine-tuning\",\n\t\"project-management\",\n\t\"business-intelligence\",\n\t\"dns-networking\",\n\t\"iot\",\n\t\"saas-boilerplate\",\n]);\n\nexport const MaturitySchema = z.enum([\"stable\", \"beta\", \"experimental\"]);\n\nexport const PlatformSchema = z.enum([\n\t\"linux/amd64\",\n\t\"linux/arm64\",\n\t\"windows/amd64\",\n\t\"macos/amd64\",\n\t\"macos/arm64\",\n]);\n\n/** Platform for Docker image arch only (used by resolver/compose). */\nexport const ComposePlatformSchema = z.enum([\"linux/amd64\", \"linux/arm64\"]);\n\nexport const DeploymentTypeSchema = z.enum([\"docker\", \"bare-metal\", \"local\"]);\n\nexport const RestartPolicySchema = z.enum([\"unless-stopped\", \"always\", \"on-failure\", \"no\"]);\n\nexport const ProxyTypeSchema = z.enum([\"none\", \"caddy\", \"traefik\"]);\n\nexport const DeploymentTargetSchema = z.enum([\"local\", \"vps\", \"homelab\", \"clawexa\"]);\n\nexport const OutputFormatSchema = z.enum([\"directory\", \"tar\", \"zip\"]);\n\nexport const OpenclawImageVariantSchema = z.enum([\"official\", \"coolify\", \"alpine\"]);\n\nexport const OpenclawInstallMethodSchema = z.enum([\"docker\", \"direct\"]);\n\nexport const DeployTargetSchema = z.enum([\"local\", \"cloud-init\"]);\n\nexport const AiProviderSchema = z.enum([\n\t\"openai\",\n\t\"anthropic\",\n\t\"google\",\n\t\"xai\",\n\t\"deepseek\",\n\t\"groq\",\n\t\"openrouter\",\n\t\"mistral\",\n\t\"together\",\n\t\"ollama\",\n\t\"ollama-cloud\",\n\t\"lmstudio\",\n\t\"vllm\",\n]);\n\nexport const GsdRuntimeSchema = z.enum([\"claude\", \"opencode\", \"gemini\", \"codex\"]);\n\n// ─── Sub-Schemas ────────────────────────────────────────────────────────────\n\nexport const PortMappingSchema = z.object({\n\thost: z.number().int().min(1).max(65535),\n\tcontainer: z.number().int().min(1).max(65535),\n\tdescription: z.string(),\n\texposed: z.boolean().default(true),\n});\n\nexport const VolumeMappingSchema = z.object({\n\tname: z.string().min(1),\n\tcontainerPath: z.string().min(1),\n\tdescription: z.string(),\n\tdriver: z.string().optional(),\n});\n\nexport const EnvVariableSchema = z.object({\n\tkey: z.string().min(1),\n\tdefaultValue: z.string(),\n\tsecret: z.boolean().default(false),\n\tdescription: z.string(),\n\trequired: z.boolean().default(true),\n\tvalidation: z.string().optional(),\n});\n\nexport const HealthCheckSchema = z.object({\n\ttest: z.string().min(1),\n\tinterval: z.string().default(\"30s\"),\n\ttimeout: z.string().default(\"10s\"),\n\tretries: z.number().int().min(1).default(3),\n\tstartPeriod: z.string().optional(),\n});\n\nexport const ResourceLimitsSchema = z.object({\n\tcpus: z.string().optional(),\n\tmemory: z.string().optional(),\n});\n\nexport const DeploySchema = z.object({\n\tresources: z\n\t\t.object({\n\t\t\tlimits: ResourceLimitsSchema.optional(),\n\t\t\treservations: ResourceLimitsSchema.optional(),\n\t\t})\n\t\t.optional(),\n});\n\nexport const SkillBindingSchema = z.object({\n\tskillId: z.string().min(1),\n\tautoInstall: z.boolean().default(true),\n\tconfigOverrides: z.record(z.string(), z.string()).optional(),\n});\n\n/** Platform for native install (linux, windows, macos — no arch). */\nexport const NativePlatformSchema = z.enum([\"linux\", \"windows\", \"macos\"]);\n\nexport const NativeRecipeSchema = z.object({\n\tplatform: NativePlatformSchema,\n\tinstallSteps: z.array(z.string()).min(1),\n\tstartCommand: z.string(),\n\tstopCommand: z.string().optional(),\n\tconfigPath: z.string().optional(),\n\tconfigTemplate: z.string().optional(),\n\tsystemdUnit: z.string().optional(),\n});\n\n// ─── Git Source / Build Context (for repo-based services) ───────────────────\n\nexport const GitSourceSchema = z.object({\n\t/** Git clone URL, e.g. \"https://github.com/wasp-lang/open-saas.git\" */\n\trepoUrl: z.string().url(),\n\t/** Branch or tag to clone. Defaults to repo's default branch. */\n\tbranch: z.string().optional(),\n\t/** Subdirectory within the cloned repo to use as build context root. */\n\tsubdirectory: z.string().optional(),\n\t/** Commands to run after cloning (e.g. \"cp .env.example .env\"). */\n\tpostCloneCommands: z.array(z.string()).default([]),\n});\n\nexport const BuildContextSchema = z.object({\n\t/** Path to Dockerfile relative to the context root. Defaults to \"Dockerfile\". */\n\tdockerfile: z.string().optional(),\n\t/** Build context path relative to the subdirectory root. Defaults to \".\". */\n\tcontext: z.string().default(\".\"),\n\t/** Docker build args to pass at build time. */\n\targs: z.record(z.string(), z.string()).optional(),\n\t/** Target stage in a multi-stage Dockerfile. */\n\ttarget: z.string().optional(),\n});\n\n// ─── Env Quirks (for addon stack generation) ────────────────────────────────\n\nexport const EnvQuirkFixSchema = z.object({\n\ttype: z.enum([\"set_value\", \"generate_hex\", \"generate_base64url\", \"sync_with\"]),\n\t/** Fixed value to set (for set_value type). */\n\tvalue: z.string().optional(),\n\t/** Minimum bytes for generated secrets (for generate_hex/generate_base64url). */\n\tminBytes: z.number().int().min(1).optional(),\n\t/** Key to synchronize with (for sync_with type). */\n\tsyncKey: z.string().optional(),\n});\n\nexport const EnvQuirkSchema = z.object({\n\tkey: z.string(),\n\tissue: z.enum([\"empty_string_crashes\", \"min_length\", \"must_sync\"]),\n\tfix: EnvQuirkFixSchema,\n});\n\n// ─── Service Definition ─────────────────────────────────────────────────────\n\nexport const ServiceDefinitionSchema = z.object({\n\t// Identity\n\tid: z\n\t\t.string()\n\t\t.min(1)\n\t\t.regex(/^[a-z0-9-]+$/),\n\tname: z.string().min(1),\n\tdescription: z.string(),\n\tcategory: ServiceCategorySchema,\n\ticon: z.string(),\n\n\t// Docker (required for image-based services, omitted for git-based)\n\timage: z.string().min(1).optional(),\n\timageTag: z.string().min(1).optional(),\n\n\t// Git source (for services built from cloned repositories)\n\tgitSource: GitSourceSchema.optional(),\n\tbuildContext: BuildContextSchema.optional(),\n\tports: z.array(PortMappingSchema).default([]),\n\tvolumes: z.array(VolumeMappingSchema).default([]),\n\tenvironment: z.array(EnvVariableSchema).default([]),\n\thealthcheck: HealthCheckSchema.optional(),\n\tcommand: z.string().optional(),\n\tentrypoint: z.string().optional(),\n\tdependsOn: z.array(z.string()).default([]),\n\trestartPolicy: RestartPolicySchema.default(\"unless-stopped\"),\n\tnetworks: z.array(z.string()).default([\"openclaw-network\"]),\n\tlabels: z.record(z.string(), z.string()).optional(),\n\tdeploy: DeploySchema.optional(),\n\n\t// OpenClaw Integration\n\tskills: z.array(SkillBindingSchema).default([]),\n\topenclawEnvVars: z.array(EnvVariableSchema).default([]),\n\topenclawVolumeMounts: z.array(VolumeMappingSchema).optional(),\n\n\t// Metadata\n\tdocsUrl: z.string().url(),\n\tselfHostedDocsUrl: z.string().url().optional(),\n\ttags: z.array(z.string()).default([]),\n\tmaturity: MaturitySchema.default(\"stable\"),\n\n\t// Dependencies & Conflicts\n\trequires: z.array(z.string()).default([]),\n\trecommends: z.array(z.string()).default([]),\n\tconflictsWith: z.array(z.string()).default([]),\n\tmandatory: z.boolean().default(false).optional(),\n\tremovalWarning: z.string().optional(),\n\n\t// Platform Constraints\n\tplatforms: z.array(PlatformSchema).optional(),\n\tminMemoryMB: z.number().int().min(0).optional(),\n\tgpuRequired: z.boolean().default(false),\n\n\t// Bare-metal native (install/run on host when no Docker)\n\tnativeSupported: z.boolean().optional(),\n\tnativeRecipes: z.array(NativeRecipeSchema).optional(),\n\n\t// Clawexa addon metadata\n\t/** Whether the service works with cap_drop: ALL (default: undefined = not audited). */\n\tcapDropCompatible: z.boolean().optional(),\n\t/** Pre-built Docker image for cloud-init deployment (replaces build: directives). */\n\tprebuiltImage: z.string().optional(),\n\t/** Default reverse proxy path (e.g. \"/n8n\", \"/grafana\"). */\n\tproxyPath: z.string().optional(),\n\t/** Linux capabilities needed at first boot (e.g. [\"CHOWN\", \"SETGID\"]). */\n\tfirstBootCapabilities: z.array(z.string()).optional(),\n\t/** Known environment variable quirks that need special handling. */\n\tenvQuirks: z.array(EnvQuirkSchema).optional(),\n});\n\n// ─── Skill Pack ─────────────────────────────────────────────────────────────\n\nexport const SkillPackSchema = z.object({\n\tid: z\n\t\t.string()\n\t\t.min(1)\n\t\t.regex(/^[a-z0-9-]+$/),\n\tname: z.string().min(1),\n\tdescription: z.string(),\n\trequiredServices: z.array(z.string()).min(1),\n\tskills: z.array(z.string()),\n\ticon: z.string().optional(),\n\ttags: z.array(z.string()).default([]),\n});\n\n// ─── Preset ─────────────────────────────────────────────────────────────────\n\nexport const PresetSchema = z.object({\n\tid: z\n\t\t.string()\n\t\t.min(1)\n\t\t.regex(/^[a-z0-9-]+$/),\n\tname: z.string().min(1),\n\tdescription: z.string(),\n\tservices: z.array(z.string()),\n\tskillPacks: z.array(z.string()).default([]),\n\testimatedMemoryMB: z.number().int().min(0).optional(),\n});\n\n// ─── Generation Input ───────────────────────────────────────────────────────\n\nexport const GenerationInputSchema = z.object({\n\tconfigVersion: z.number().int().min(1).optional(),\n\tprojectName: z\n\t\t.string()\n\t\t.min(1)\n\t\t.max(64)\n\t\t.regex(/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/, {\n\t\t\tmessage:\n\t\t\t\t\"Project name must be lowercase alphanumeric with hyphens, cannot start or end with hyphen\",\n\t\t}),\n\tservices: z.array(z.string()).default([]),\n\tskillPacks: z.array(z.string()).default([]),\n\taiProviders: z.array(AiProviderSchema).default([]),\n\tgsdRuntimes: z.array(GsdRuntimeSchema).default([]),\n\tproxy: ProxyTypeSchema.default(\"none\"),\n\tproxyHttpPort: z.number().int().min(1).max(65535).optional(),\n\tproxyHttpsPort: z.number().int().min(1).max(65535).optional(),\n\tportOverrides: z\n\t\t.record(z.string(), z.record(z.string(), z.number().int().min(1).max(65535)))\n\t\t.optional(),\n\tdomain: z.string().optional(),\n\tgpu: z.boolean().default(false),\n\tplatform: PlatformSchema.default(\"linux/amd64\"),\n\tdeployment: DeploymentTargetSchema.default(\"local\"),\n\tdeploymentType: DeploymentTypeSchema.default(\"docker\"),\n\tgenerateSecrets: z.boolean().default(true),\n\topenclawVersion: z.string().default(\"latest\"),\n\tmonitoring: z.boolean().default(false),\n\topenclawImage: OpenclawImageVariantSchema.default(\"official\"),\n\topenclawInstallMethod: OpenclawInstallMethodSchema.default(\"docker\"),\n\tdeployTarget: DeployTargetSchema.default(\"local\"),\n\thardened: z.boolean().default(true),\n});\n\n// ─── Resolver Output ────────────────────────────────────────────────────────\n\nexport const ResolvedServiceSchema = z.object({\n\tdefinition: ServiceDefinitionSchema,\n\taddedBy: z.enum([\"user\", \"dependency\", \"skill-pack\", \"proxy\", \"monitoring\", \"mandatory\"]).default(\"user\"),\n});\n\nexport const AddedDependencySchema = z.object({\n\tservice: z.string(),\n\tserviceId: z.string().optional(),\n\trequiredBy: z.string().optional(),\n\treason: z.string(),\n});\n\nexport const WarningSchema = z.object({\n\ttype: z.string(),\n\tmessage: z.string(),\n});\n\nexport const ErrorSchema = z.object({\n\ttype: z.string(),\n\tmessage: z.string(),\n});\n\nexport const ResolverOutputSchema = z.object({\n\tservices: z.array(ResolvedServiceSchema),\n\taddedDependencies: z.array(AddedDependencySchema),\n\tremovedConflicts: z.array(z.object({ service: z.string(), reason: z.string() })),\n\twarnings: z.array(WarningSchema),\n\terrors: z.array(ErrorSchema),\n\tisValid: z.boolean(),\n\testimatedMemoryMB: z.number().int().min(0),\n\taiProviders: z.array(AiProviderSchema).default([]),\n\tgsdRuntimes: z.array(GsdRuntimeSchema).default([]),\n});\n\n// ─── Compose Options ────────────────────────────────────────────────────────\n\nexport const ComposeOptionsSchema = z.object({\n\tprojectName: z.string(),\n\tproxy: ProxyTypeSchema.default(\"none\"),\n\tproxyHttpPort: z.number().int().min(1).max(65535).optional(),\n\tproxyHttpsPort: z.number().int().min(1).max(65535).optional(),\n\tportOverrides: z\n\t\t.record(z.string(), z.record(z.string(), z.number().int().min(1).max(65535)))\n\t\t.optional(),\n\tdomain: z.string().optional(),\n\tgpu: z.boolean().default(false),\n\tplatform: PlatformSchema.default(\"linux/amd64\"),\n\tdeployment: DeploymentTargetSchema.default(\"local\"),\n\topenclawVersion: z.string().default(\"latest\"),\n\t/** When true, gateway gets extra_hosts so it can reach host-run (native) services. */\n\tbareMetalNativeHost: z.boolean().optional(),\n\t/** OpenClaw Docker image variant: official, coolify, or alpine. */\n\topenclawImage: OpenclawImageVariantSchema.default(\"official\"),\n\t/** Whether to apply security hardening (cap_drop, no-new-privileges, etc.) */\n\thardened: z.boolean().default(true),\n\t/** How to install OpenClaw itself: docker (in container) or direct (host install). */\n\topenclawInstallMethod: OpenclawInstallMethodSchema.default(\"docker\"),\n});\n\n// ─── Addon Stack (Clawexa) ───────────────────────────────────────────────────\n\nexport const SkippedServiceReasonSchema = z.enum([\n\t\"missing_credentials\",\n\t\"no_image\",\n\t\"platform_unsupported\",\n\t\"conflict\",\n\t\"gpu_required\",\n\t\"unknown_service\",\n\t\"resolution_error\",\n]);\n\nexport const SkippedServiceSchema = z.object({\n\tserviceId: z.string(),\n\treason: SkippedServiceReasonSchema,\n\tdetails: z.string(),\n\trequiredCredentials: z.array(z.string()).optional(),\n});\n\nexport const ProxyRouteSchema = z.object({\n\tserviceId: z.string(),\n\tpath: z.string(),\n\tport: z.number().int(),\n\tprotocol: z.enum([\"http\", \"https\", \"ws\"]).default(\"http\"),\n\tstripPrefix: z.boolean().default(true),\n});\n\nexport const AddonStackInputSchema = z.object({\n\t/** Instance identifier (used for project name sanitization). */\n\tinstanceId: z.string().min(1),\n\t/** Addon service IDs to deploy. */\n\tservices: z.array(z.string()),\n\t/** Optional skill packs. */\n\tskillPacks: z.array(z.string()).default([]),\n\t/** Platform architecture. */\n\tplatform: PlatformSchema.default(\"linux/amd64\"),\n\t/** OpenClaw version running on the instance. */\n\topenclawVersion: z.string().default(\"latest\"),\n\t/** Services already running on the instance (to detect conflicts). */\n\texistingServices: z.array(z.string()).default([]),\n\t/** Ports already in use on the host. */\n\treservedPorts: z.array(z.number().int()).default([]),\n\t/** Whether to generate secrets (default: true). */\n\tgenerateSecrets: z.boolean().default(true),\n\t/** User-provided credentials for services that need them. */\n\tcredentials: z.record(z.string(), z.record(z.string(), z.string())).default({}),\n\t/** Port overrides for specific services. */\n\tportOverrides: z.record(z.string(), z.record(z.string(), z.number().int().min(1).max(65535))).optional(),\n\t/** Whether the host has GPU support. */\n\tgpu: z.boolean().default(false),\n\t/** AI providers configured on this instance. */\n\taiProviders: z.array(AiProviderSchema).default([]),\n\t/** Pre-built image overrides (serviceId → image:tag). */\n\tprebuiltImages: z.record(z.string(), z.string()).default({}),\n});\n\nexport const AddonStackResultSchema = z.object({\n\t/** Single docker-compose.override.yml content. */\n\tcomposeOverride: z.string(),\n\t/** Complete .env file with all secrets generated. */\n\tenvFile: z.string(),\n\t/** Structured env vars for UI display / credential management. */\n\tenvVars: z.array(z.object({\n\t\tserviceName: z.string(),\n\t\tvars: z.array(z.object({\n\t\t\tkey: z.string(),\n\t\t\tdescription: z.string(),\n\t\t\tvalue: z.string(),\n\t\t\tsecret: z.boolean(),\n\t\t})),\n\t})),\n\t/** SKILL.md files keyed by slug. */\n\tskillFiles: z.record(z.string(), z.string()),\n\t/** OpenClaw config additions (skills.entries to merge). */\n\topenclawConfigPatch: z.object({\n\t\tskills: z.object({\n\t\t\tentries: z.record(z.string(), z.object({ enabled: z.boolean() })),\n\t\t}),\n\t}),\n\t/** Port mapping for reverse proxy configuration. */\n\tproxyRoutes: z.array(ProxyRouteSchema),\n\t/** Metadata. */\n\tmetadata: z.object({\n\t\tserviceCount: z.number(),\n\t\tskillCount: z.number(),\n\t\testimatedMemoryMB: z.number(),\n\t\tresolvedServices: z.array(z.string()),\n\t\tskippedServices: z.array(SkippedServiceSchema),\n\t\tgeneratedSecretKeys: z.array(z.string()),\n\t\tportAssignments: z.record(z.string(), z.number()),\n\t}),\n\t/** Warnings (non-fatal issues). */\n\twarnings: z.array(z.string()),\n});\n\nexport const AddonStackUpdateInputSchema = z.object({\n\tinstanceId: z.string().min(1),\n\t/** Current compose override YAML (from the running instance). */\n\tcurrentCompose: z.string(),\n\t/** Current .env content. */\n\tcurrentEnv: z.string(),\n\t/** Services to add. */\n\taddServices: z.array(z.string()).default([]),\n\t/** Services to remove. */\n\tremoveServices: z.array(z.string()).default([]),\n\t/** Whether to generate secrets for newly added services (default: true). */\n\tgenerateSecrets: z.boolean().default(true),\n\t/** User-provided credentials for new services. */\n\tcredentials: z.record(z.string(), z.record(z.string(), z.string())).default({}),\n\t/** Port overrides for specific services. */\n\tportOverrides: z.record(z.string(), z.record(z.string(), z.number().int().min(1).max(65535))).optional(),\n\t/** Reserved ports. */\n\treservedPorts: z.array(z.number().int()).default([]),\n\tplatform: PlatformSchema.default(\"linux/amd64\"),\n\topenclawVersion: z.string().default(\"latest\"),\n\taiProviders: z.array(AiProviderSchema).default([]),\n\tprebuiltImages: z.record(z.string(), z.string()).default({}),\n});\n\nexport const AddonStackUpdateResultSchema = z.object({\n\t/** Updated compose override (merged with existing). */\n\tcomposeOverride: z.string(),\n\t/** Updated .env (existing values preserved, new ones added). */\n\tenvFile: z.string(),\n\t/** Only NEW skill files to deploy. */\n\tnewSkillFiles: z.record(z.string(), z.string()),\n\t/** Skill slugs to remove from openclaw.json. */\n\tremovedSkillSlugs: z.array(z.string()),\n\t/** Config patch to apply. */\n\topenclawConfigPatch: z.object({\n\t\tskills: z.object({\n\t\t\tadd: z.record(z.string(), z.object({ enabled: z.boolean() })),\n\t\t\tremove: z.array(z.string()),\n\t\t}),\n\t}),\n\t/** New proxy routes to add. */\n\taddProxyRoutes: z.array(ProxyRouteSchema),\n\t/** Proxy routes to remove (service IDs). */\n\tremoveProxyRoutes: z.array(z.string()),\n\t/** Services that need their images pulled. */\n\timagesToPull: z.array(z.string()),\n\t/** Services to restart (due to dependency changes). */\n\trestartRequired: z.array(z.string()),\n\t/** Metadata. */\n\tmetadata: z.object({\n\t\tadded: z.array(z.string()),\n\t\tremoved: z.array(z.string()),\n\t\tunchanged: z.array(z.string()),\n\t\testimatedMemoryDelta: z.number(),\n\t}),\n\twarnings: z.array(z.string()),\n});\n\n// ─── API Request/Response ───────────────────────────────────────────────────\n\nexport const ValidateRequestSchema = z.object({\n\tservices: z.array(z.string()),\n\tskillPacks: z.array(z.string()).default([]),\n\taiProviders: z.array(AiProviderSchema).default([]),\n\tgsdRuntimes: z.array(GsdRuntimeSchema).default([]),\n\tproxy: ProxyTypeSchema.default(\"none\"),\n\tdomain: z.string().optional(),\n\tgpu: z.boolean().default(false),\n\tplatform: PlatformSchema.default(\"linux/amd64\"),\n});\n\nexport const ValidateResponseSchema = z.object({\n\tvalid: z.boolean(),\n\tresolvedServices: z.array(z.string()),\n\taddedDependencies: z.array(AddedDependencySchema),\n\twarnings: z.array(WarningSchema),\n\tconflicts: z.array(ErrorSchema),\n\testimatedMemoryMB: z.number(),\n});\n\nexport const ApiErrorSchema = z.object({\n\terror: z.object({\n\t\tcode: z.enum([\n\t\t\t\"VALIDATION_ERROR\",\n\t\t\t\"CONFLICT_ERROR\",\n\t\t\t\"GENERATION_ERROR\",\n\t\t\t\"RATE_LIMITED\",\n\t\t\t\"INTERNAL_ERROR\",\n\t\t]),\n\t\tmessage: z.string(),\n\t\tdetails: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tfield: z.string().optional(),\n\t\t\t\t\tmessage: z.string(),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.optional(),\n\t}),\n});\n"],"mappings":";;AAIA,MAAa,wBAAwB,EAAE,KAAK;CAC3C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAAC;AAEF,MAAa,iBAAiB,EAAE,KAAK;CAAC;CAAU;CAAQ;CAAe,CAAC;AAExE,MAAa,iBAAiB,EAAE,KAAK;CACpC;CACA;CACA;CACA;CACA;CACA,CAAC;;AAGF,MAAa,wBAAwB,EAAE,KAAK,CAAC,eAAe,cAAc,CAAC;AAE3E,MAAa,uBAAuB,EAAE,KAAK;CAAC;CAAU;CAAc;CAAQ,CAAC;AAE7E,MAAa,sBAAsB,EAAE,KAAK;CAAC;CAAkB;CAAU;CAAc;CAAK,CAAC;AAE3F,MAAa,kBAAkB,EAAE,KAAK;CAAC;CAAQ;CAAS;CAAU,CAAC;AAEnE,MAAa,yBAAyB,EAAE,KAAK;CAAC;CAAS;CAAO;CAAW;CAAU,CAAC;AAEpF,MAAa,q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AU;CAC7B,KAAK,EAAE,SAAS,CAAC,QAAQ,MAAM;CAC/B,UAAU,eAAe,QAAQ,cAAc;CAC/C,CAAC;AAEF,MAAa,yBAAyB,EAAE,OAAO;CAC9C,OAAO,EAAE,SAAS;CAClB,kBAAkB,EAAE,MAAM,EAAE,QAAQ,CAAC;CACrC,mBAAmB,EAAE,MAAM,sBAAsB;CACjD,UAAU,EAAE,MAAM,cAAc;CAChC,WAAW,EAAE,MAAM,YAAY;CAC/B,mBAAmB,EAAE,QAAQ;CAC7B,CAAC;AAEF,MAAa,iBAAiB,EAAE,OAAO,EACtC,OAAO,EAAE,OAAO;CACf,MAAM,EAAE,KAAK;EACZ;EACA;EACA;EACA;EACA;EACA,CAAC;CACF,SAAS,EAAE,QAAQ;CACnB,SAAS,EACP,MACA,EAAE,OAAO;EACR,OAAO,EAAE,QAAQ,CAAC,UAAU;EAC5B,SAAS,EAAE,QAAQ;EACnB,CAAC,CACF,CACA,UAAU;CACZ,CAAC,EACF,CAAC"}
@@ -1,65 +1,65 @@
1
- const require_vi_2VT5v0um = require("./vi.2VT5v0um-iVBt6Fyq.cjs");
1
+ const require_test_CTcmp4Su = require("./test.CTcmp4Su-DlzTarwH.cjs");
2
2
  const require_schema = require("./schema.cjs");
3
3
  //#region src/schema.test.ts
4
- require_vi_2VT5v0um.describe("ServiceCategorySchema", () => {
5
- require_vi_2VT5v0um.it("accepts valid categories", () => {
6
- require_vi_2VT5v0um.globalExpect(require_schema.ServiceCategorySchema.parse("automation")).toBe("automation");
7
- require_vi_2VT5v0um.globalExpect(require_schema.ServiceCategorySchema.parse("vector-db")).toBe("vector-db");
8
- require_vi_2VT5v0um.globalExpect(require_schema.ServiceCategorySchema.parse("ai")).toBe("ai");
4
+ require_test_CTcmp4Su.describe("ServiceCategorySchema", () => {
5
+ require_test_CTcmp4Su.it("accepts valid categories", () => {
6
+ require_test_CTcmp4Su.globalExpect(require_schema.ServiceCategorySchema.parse("automation")).toBe("automation");
7
+ require_test_CTcmp4Su.globalExpect(require_schema.ServiceCategorySchema.parse("vector-db")).toBe("vector-db");
8
+ require_test_CTcmp4Su.globalExpect(require_schema.ServiceCategorySchema.parse("ai")).toBe("ai");
9
9
  });
10
- require_vi_2VT5v0um.it("rejects invalid categories", () => {
11
- require_vi_2VT5v0um.globalExpect(() => require_schema.ServiceCategorySchema.parse("invalid")).toThrow();
12
- require_vi_2VT5v0um.globalExpect(() => require_schema.ServiceCategorySchema.parse("")).toThrow();
10
+ require_test_CTcmp4Su.it("rejects invalid categories", () => {
11
+ require_test_CTcmp4Su.globalExpect(() => require_schema.ServiceCategorySchema.parse("invalid")).toThrow();
12
+ require_test_CTcmp4Su.globalExpect(() => require_schema.ServiceCategorySchema.parse("")).toThrow();
13
13
  });
14
14
  });
15
- require_vi_2VT5v0um.describe("PortMappingSchema", () => {
16
- require_vi_2VT5v0um.it("accepts valid port mapping", () => {
17
- require_vi_2VT5v0um.globalExpect(require_schema.PortMappingSchema.parse({
15
+ require_test_CTcmp4Su.describe("PortMappingSchema", () => {
16
+ require_test_CTcmp4Su.it("accepts valid port mapping", () => {
17
+ require_test_CTcmp4Su.globalExpect(require_schema.PortMappingSchema.parse({
18
18
  host: 6379,
19
19
  container: 6379,
20
20
  description: "Redis port",
21
21
  exposed: true
22
22
  }).host).toBe(6379);
23
23
  });
24
- require_vi_2VT5v0um.it("defaults exposed to true", () => {
25
- require_vi_2VT5v0um.globalExpect(require_schema.PortMappingSchema.parse({
24
+ require_test_CTcmp4Su.it("defaults exposed to true", () => {
25
+ require_test_CTcmp4Su.globalExpect(require_schema.PortMappingSchema.parse({
26
26
  host: 6379,
27
27
  container: 6379,
28
28
  description: "Redis port"
29
29
  }).exposed).toBe(true);
30
30
  });
31
- require_vi_2VT5v0um.it("rejects invalid port numbers", () => {
32
- require_vi_2VT5v0um.globalExpect(() => require_schema.PortMappingSchema.parse({
31
+ require_test_CTcmp4Su.it("rejects invalid port numbers", () => {
32
+ require_test_CTcmp4Su.globalExpect(() => require_schema.PortMappingSchema.parse({
33
33
  host: 0,
34
34
  container: 6379,
35
35
  description: "bad"
36
36
  })).toThrow();
37
- require_vi_2VT5v0um.globalExpect(() => require_schema.PortMappingSchema.parse({
37
+ require_test_CTcmp4Su.globalExpect(() => require_schema.PortMappingSchema.parse({
38
38
  host: 7e4,
39
39
  container: 6379,
40
40
  description: "bad"
41
41
  })).toThrow();
42
42
  });
43
43
  });
44
- require_vi_2VT5v0um.describe("VolumeMappingSchema", () => {
45
- require_vi_2VT5v0um.it("accepts valid volume mapping", () => {
46
- require_vi_2VT5v0um.globalExpect(require_schema.VolumeMappingSchema.parse({
44
+ require_test_CTcmp4Su.describe("VolumeMappingSchema", () => {
45
+ require_test_CTcmp4Su.it("accepts valid volume mapping", () => {
46
+ require_test_CTcmp4Su.globalExpect(require_schema.VolumeMappingSchema.parse({
47
47
  name: "redis-data",
48
48
  containerPath: "/data",
49
49
  description: "Redis persistent data"
50
50
  }).name).toBe("redis-data");
51
51
  });
52
- require_vi_2VT5v0um.it("rejects empty name", () => {
53
- require_vi_2VT5v0um.globalExpect(() => require_schema.VolumeMappingSchema.parse({
52
+ require_test_CTcmp4Su.it("rejects empty name", () => {
53
+ require_test_CTcmp4Su.globalExpect(() => require_schema.VolumeMappingSchema.parse({
54
54
  name: "",
55
55
  containerPath: "/data",
56
56
  description: "bad"
57
57
  })).toThrow();
58
58
  });
59
59
  });
60
- require_vi_2VT5v0um.describe("EnvVariableSchema", () => {
61
- require_vi_2VT5v0um.it("accepts valid env variable", () => {
62
- require_vi_2VT5v0um.globalExpect(require_schema.EnvVariableSchema.parse({
60
+ require_test_CTcmp4Su.describe("EnvVariableSchema", () => {
61
+ require_test_CTcmp4Su.it("accepts valid env variable", () => {
62
+ require_test_CTcmp4Su.globalExpect(require_schema.EnvVariableSchema.parse({
63
63
  key: "REDIS_PASSWORD",
64
64
  defaultValue: "changeme",
65
65
  secret: true,
@@ -67,26 +67,26 @@ require_vi_2VT5v0um.describe("EnvVariableSchema", () => {
67
67
  required: true
68
68
  }).secret).toBe(true);
69
69
  });
70
- require_vi_2VT5v0um.it("defaults secret to false", () => {
70
+ require_test_CTcmp4Su.it("defaults secret to false", () => {
71
71
  const result = require_schema.EnvVariableSchema.parse({
72
72
  key: "REDIS_HOST",
73
73
  defaultValue: "redis",
74
74
  description: "Redis host"
75
75
  });
76
- require_vi_2VT5v0um.globalExpect(result.secret).toBe(false);
77
- require_vi_2VT5v0um.globalExpect(result.required).toBe(true);
76
+ require_test_CTcmp4Su.globalExpect(result.secret).toBe(false);
77
+ require_test_CTcmp4Su.globalExpect(result.required).toBe(true);
78
78
  });
79
79
  });
80
- require_vi_2VT5v0um.describe("HealthCheckSchema", () => {
81
- require_vi_2VT5v0um.it("accepts valid healthcheck with defaults", () => {
80
+ require_test_CTcmp4Su.describe("HealthCheckSchema", () => {
81
+ require_test_CTcmp4Su.it("accepts valid healthcheck with defaults", () => {
82
82
  const result = require_schema.HealthCheckSchema.parse({ test: "redis-cli ping" });
83
- require_vi_2VT5v0um.globalExpect(result.interval).toBe("30s");
84
- require_vi_2VT5v0um.globalExpect(result.timeout).toBe("10s");
85
- require_vi_2VT5v0um.globalExpect(result.retries).toBe(3);
83
+ require_test_CTcmp4Su.globalExpect(result.interval).toBe("30s");
84
+ require_test_CTcmp4Su.globalExpect(result.timeout).toBe("10s");
85
+ require_test_CTcmp4Su.globalExpect(result.retries).toBe(3);
86
86
  });
87
87
  });
88
- require_vi_2VT5v0um.describe("GenerationInputSchema", () => {
89
- require_vi_2VT5v0um.it("accepts valid generation input", () => {
88
+ require_test_CTcmp4Su.describe("GenerationInputSchema", () => {
89
+ require_test_CTcmp4Su.it("accepts valid generation input", () => {
90
90
  const result = require_schema.GenerationInputSchema.parse({
91
91
  projectName: "my-openclaw-stack",
92
92
  services: ["redis", "qdrant"],
@@ -94,47 +94,47 @@ require_vi_2VT5v0um.describe("GenerationInputSchema", () => {
94
94
  proxy: "caddy",
95
95
  domain: "openclaw.example.com"
96
96
  });
97
- require_vi_2VT5v0um.globalExpect(result.projectName).toBe("my-openclaw-stack");
98
- require_vi_2VT5v0um.globalExpect(result.gpu).toBe(false);
97
+ require_test_CTcmp4Su.globalExpect(result.projectName).toBe("my-openclaw-stack");
98
+ require_test_CTcmp4Su.globalExpect(result.gpu).toBe(false);
99
99
  });
100
- require_vi_2VT5v0um.it("rejects invalid project names", () => {
101
- require_vi_2VT5v0um.globalExpect(() => require_schema.GenerationInputSchema.parse({ projectName: "-bad-name" })).toThrow();
102
- require_vi_2VT5v0um.globalExpect(() => require_schema.GenerationInputSchema.parse({ projectName: "Bad Name" })).toThrow();
103
- require_vi_2VT5v0um.globalExpect(() => require_schema.GenerationInputSchema.parse({ projectName: "has spaces" })).toThrow();
100
+ require_test_CTcmp4Su.it("rejects invalid project names", () => {
101
+ require_test_CTcmp4Su.globalExpect(() => require_schema.GenerationInputSchema.parse({ projectName: "-bad-name" })).toThrow();
102
+ require_test_CTcmp4Su.globalExpect(() => require_schema.GenerationInputSchema.parse({ projectName: "Bad Name" })).toThrow();
103
+ require_test_CTcmp4Su.globalExpect(() => require_schema.GenerationInputSchema.parse({ projectName: "has spaces" })).toThrow();
104
104
  });
105
- require_vi_2VT5v0um.it("accepts single-char project name", () => {
106
- require_vi_2VT5v0um.globalExpect(require_schema.GenerationInputSchema.parse({ projectName: "a" }).projectName).toBe("a");
105
+ require_test_CTcmp4Su.it("accepts single-char project name", () => {
106
+ require_test_CTcmp4Su.globalExpect(require_schema.GenerationInputSchema.parse({ projectName: "a" }).projectName).toBe("a");
107
107
  });
108
- require_vi_2VT5v0um.it("applies defaults", () => {
108
+ require_test_CTcmp4Su.it("applies defaults", () => {
109
109
  const result = require_schema.GenerationInputSchema.parse({ projectName: "test" });
110
- require_vi_2VT5v0um.globalExpect(result.services).toEqual([]);
111
- require_vi_2VT5v0um.globalExpect(result.skillPacks).toEqual([]);
112
- require_vi_2VT5v0um.globalExpect(result.proxy).toBe("none");
113
- require_vi_2VT5v0um.globalExpect(result.gpu).toBe(false);
114
- require_vi_2VT5v0um.globalExpect(result.platform).toBe("linux/amd64");
115
- require_vi_2VT5v0um.globalExpect(result.deployment).toBe("local");
116
- require_vi_2VT5v0um.globalExpect(result.deploymentType).toBe("docker");
117
- require_vi_2VT5v0um.globalExpect(result.generateSecrets).toBe(true);
118
- require_vi_2VT5v0um.globalExpect(result.openclawVersion).toBe("latest");
110
+ require_test_CTcmp4Su.globalExpect(result.services).toEqual([]);
111
+ require_test_CTcmp4Su.globalExpect(result.skillPacks).toEqual([]);
112
+ require_test_CTcmp4Su.globalExpect(result.proxy).toBe("none");
113
+ require_test_CTcmp4Su.globalExpect(result.gpu).toBe(false);
114
+ require_test_CTcmp4Su.globalExpect(result.platform).toBe("linux/amd64");
115
+ require_test_CTcmp4Su.globalExpect(result.deployment).toBe("local");
116
+ require_test_CTcmp4Su.globalExpect(result.deploymentType).toBe("docker");
117
+ require_test_CTcmp4Su.globalExpect(result.generateSecrets).toBe(true);
118
+ require_test_CTcmp4Su.globalExpect(result.openclawVersion).toBe("latest");
119
119
  });
120
- require_vi_2VT5v0um.it("accepts deploymentType bare-metal and extended platform", () => {
120
+ require_test_CTcmp4Su.it("accepts deploymentType bare-metal and extended platform", () => {
121
121
  const result = require_schema.GenerationInputSchema.parse({
122
122
  projectName: "my-stack",
123
123
  services: ["redis"],
124
124
  deploymentType: "bare-metal",
125
125
  platform: "windows/amd64"
126
126
  });
127
- require_vi_2VT5v0um.globalExpect(result.deploymentType).toBe("bare-metal");
128
- require_vi_2VT5v0um.globalExpect(result.platform).toBe("windows/amd64");
127
+ require_test_CTcmp4Su.globalExpect(result.deploymentType).toBe("bare-metal");
128
+ require_test_CTcmp4Su.globalExpect(result.platform).toBe("windows/amd64");
129
129
  });
130
- require_vi_2VT5v0um.it("accepts platform macos/arm64", () => {
131
- require_vi_2VT5v0um.globalExpect(require_schema.GenerationInputSchema.parse({
130
+ require_test_CTcmp4Su.it("accepts platform macos/arm64", () => {
131
+ require_test_CTcmp4Su.globalExpect(require_schema.GenerationInputSchema.parse({
132
132
  projectName: "my-stack",
133
133
  platform: "macos/arm64"
134
134
  }).platform).toBe("macos/arm64");
135
135
  });
136
136
  });
137
- require_vi_2VT5v0um.describe("ServiceDefinitionSchema", () => {
137
+ require_test_CTcmp4Su.describe("ServiceDefinitionSchema", () => {
138
138
  const validDef = {
139
139
  id: "redis",
140
140
  name: "Redis",
@@ -163,16 +163,16 @@ require_vi_2VT5v0um.describe("ServiceDefinitionSchema", () => {
163
163
  tags: ["cache", "database"],
164
164
  maturity: "stable"
165
165
  };
166
- require_vi_2VT5v0um.it("accepts valid service definition", () => {
167
- require_vi_2VT5v0um.globalExpect(require_schema.ServiceDefinitionSchema.parse(validDef).id).toBe("redis");
166
+ require_test_CTcmp4Su.it("accepts valid service definition", () => {
167
+ require_test_CTcmp4Su.globalExpect(require_schema.ServiceDefinitionSchema.parse(validDef).id).toBe("redis");
168
168
  });
169
- require_vi_2VT5v0um.it("rejects invalid id format", () => {
170
- require_vi_2VT5v0um.globalExpect(() => require_schema.ServiceDefinitionSchema.parse({
169
+ require_test_CTcmp4Su.it("rejects invalid id format", () => {
170
+ require_test_CTcmp4Su.globalExpect(() => require_schema.ServiceDefinitionSchema.parse({
171
171
  ...validDef,
172
172
  id: "Bad_Id"
173
173
  })).toThrow();
174
174
  });
175
- require_vi_2VT5v0um.it("defaults arrays and booleans correctly", () => {
175
+ require_test_CTcmp4Su.it("defaults arrays and booleans correctly", () => {
176
176
  const result = require_schema.ServiceDefinitionSchema.parse({
177
177
  id: "test",
178
178
  name: "Test",
@@ -183,23 +183,23 @@ require_vi_2VT5v0um.describe("ServiceDefinitionSchema", () => {
183
183
  imageTag: "latest",
184
184
  docsUrl: "https://example.com"
185
185
  });
186
- require_vi_2VT5v0um.globalExpect(result.ports).toEqual([]);
187
- require_vi_2VT5v0um.globalExpect(result.volumes).toEqual([]);
188
- require_vi_2VT5v0um.globalExpect(result.requires).toEqual([]);
189
- require_vi_2VT5v0um.globalExpect(result.conflictsWith).toEqual([]);
190
- require_vi_2VT5v0um.globalExpect(result.gpuRequired).toBe(false);
186
+ require_test_CTcmp4Su.globalExpect(result.ports).toEqual([]);
187
+ require_test_CTcmp4Su.globalExpect(result.volumes).toEqual([]);
188
+ require_test_CTcmp4Su.globalExpect(result.requires).toEqual([]);
189
+ require_test_CTcmp4Su.globalExpect(result.conflictsWith).toEqual([]);
190
+ require_test_CTcmp4Su.globalExpect(result.gpuRequired).toBe(false);
191
191
  });
192
- require_vi_2VT5v0um.it("accepts optional mandatory field and defaults to false when omitted", () => {
192
+ require_test_CTcmp4Su.it("accepts optional mandatory field and defaults to false when omitted", () => {
193
193
  const withMandatory = {
194
194
  ...validDef,
195
195
  mandatory: true
196
196
  };
197
- require_vi_2VT5v0um.globalExpect(require_schema.ServiceDefinitionSchema.parse(withMandatory).mandatory).toBe(true);
197
+ require_test_CTcmp4Su.globalExpect(require_schema.ServiceDefinitionSchema.parse(withMandatory).mandatory).toBe(true);
198
198
  });
199
- require_vi_2VT5v0um.it("omitting mandatory leaves it undefined or false (schema default false)", () => {
200
- require_vi_2VT5v0um.globalExpect(require_schema.ServiceDefinitionSchema.parse(validDef).mandatory !== true).toBe(true);
199
+ require_test_CTcmp4Su.it("omitting mandatory leaves it undefined or false (schema default false)", () => {
200
+ require_test_CTcmp4Su.globalExpect(require_schema.ServiceDefinitionSchema.parse(validDef).mandatory !== true).toBe(true);
201
201
  });
202
- require_vi_2VT5v0um.it("accepts nativeSupported and nativeRecipes for bare-metal", () => {
202
+ require_test_CTcmp4Su.it("accepts nativeSupported and nativeRecipes for bare-metal", () => {
203
203
  const withNative = {
204
204
  ...validDef,
205
205
  nativeSupported: true,
@@ -212,15 +212,15 @@ require_vi_2VT5v0um.describe("ServiceDefinitionSchema", () => {
212
212
  }]
213
213
  };
214
214
  const result = require_schema.ServiceDefinitionSchema.parse(withNative);
215
- require_vi_2VT5v0um.globalExpect(result.nativeSupported).toBe(true);
216
- require_vi_2VT5v0um.globalExpect(result.nativeRecipes).toHaveLength(1);
217
- require_vi_2VT5v0um.globalExpect(result.nativeRecipes[0].platform).toBe("linux");
218
- require_vi_2VT5v0um.globalExpect(result.nativeRecipes[0].startCommand).toBe("systemctl start redis-server");
215
+ require_test_CTcmp4Su.globalExpect(result.nativeSupported).toBe(true);
216
+ require_test_CTcmp4Su.globalExpect(result.nativeRecipes).toHaveLength(1);
217
+ require_test_CTcmp4Su.globalExpect(result.nativeRecipes[0].platform).toBe("linux");
218
+ require_test_CTcmp4Su.globalExpect(result.nativeRecipes[0].startCommand).toBe("systemctl start redis-server");
219
219
  });
220
220
  });
221
- require_vi_2VT5v0um.describe("SkillPackSchema", () => {
222
- require_vi_2VT5v0um.it("accepts valid skill pack", () => {
223
- require_vi_2VT5v0um.globalExpect(require_schema.SkillPackSchema.parse({
221
+ require_test_CTcmp4Su.describe("SkillPackSchema", () => {
222
+ require_test_CTcmp4Su.it("accepts valid skill pack", () => {
223
+ require_test_CTcmp4Su.globalExpect(require_schema.SkillPackSchema.parse({
224
224
  id: "research-agent",
225
225
  name: "Research Agent",
226
226
  description: "Research agent pack",
@@ -236,8 +236,8 @@ require_vi_2VT5v0um.describe("SkillPackSchema", () => {
236
236
  ]
237
237
  }).requiredServices).toHaveLength(3);
238
238
  });
239
- require_vi_2VT5v0um.it("rejects empty required services", () => {
240
- require_vi_2VT5v0um.globalExpect(() => require_schema.SkillPackSchema.parse({
239
+ require_test_CTcmp4Su.it("rejects empty required services", () => {
240
+ require_test_CTcmp4Su.globalExpect(() => require_schema.SkillPackSchema.parse({
241
241
  id: "empty",
242
242
  name: "Empty",
243
243
  description: "Bad",
@@ -246,9 +246,9 @@ require_vi_2VT5v0um.describe("SkillPackSchema", () => {
246
246
  })).toThrow();
247
247
  });
248
248
  });
249
- require_vi_2VT5v0um.describe("PresetSchema", () => {
250
- require_vi_2VT5v0um.it("accepts valid preset", () => {
251
- require_vi_2VT5v0um.globalExpect(require_schema.PresetSchema.parse({
249
+ require_test_CTcmp4Su.describe("PresetSchema", () => {
250
+ require_test_CTcmp4Su.it("accepts valid preset", () => {
251
+ require_test_CTcmp4Su.globalExpect(require_schema.PresetSchema.parse({
252
252
  id: "minimal",
253
253
  name: "Minimal",
254
254
  description: "OpenClaw + Redis",
@@ -1 +1 @@
1
- {"version":3,"file":"schema.test.cjs","names":["describe","ServiceCategorySchema","PortMappingSchema","VolumeMappingSchema","EnvVariableSchema","HealthCheckSchema","GenerationInputSchema","ServiceDefinitionSchema","SkillPackSchema","PresetSchema"],"sources":["../src/schema.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport {\n\tEnvVariableSchema,\n\tGenerationInputSchema,\n\tHealthCheckSchema,\n\tPortMappingSchema,\n\tPresetSchema,\n\tServiceCategorySchema,\n\tServiceDefinitionSchema,\n\tSkillPackSchema,\n\tVolumeMappingSchema,\n} from \"./schema.js\";\n\ndescribe(\"ServiceCategorySchema\", () => {\n\tit(\"accepts valid categories\", () => {\n\t\texpect(ServiceCategorySchema.parse(\"automation\")).toBe(\"automation\");\n\t\texpect(ServiceCategorySchema.parse(\"vector-db\")).toBe(\"vector-db\");\n\t\texpect(ServiceCategorySchema.parse(\"ai\")).toBe(\"ai\");\n\t});\n\n\tit(\"rejects invalid categories\", () => {\n\t\texpect(() => ServiceCategorySchema.parse(\"invalid\")).toThrow();\n\t\texpect(() => ServiceCategorySchema.parse(\"\")).toThrow();\n\t});\n});\n\ndescribe(\"PortMappingSchema\", () => {\n\tit(\"accepts valid port mapping\", () => {\n\t\tconst result = PortMappingSchema.parse({\n\t\t\thost: 6379,\n\t\t\tcontainer: 6379,\n\t\t\tdescription: \"Redis port\",\n\t\t\texposed: true,\n\t\t});\n\t\texpect(result.host).toBe(6379);\n\t});\n\n\tit(\"defaults exposed to true\", () => {\n\t\tconst result = PortMappingSchema.parse({\n\t\t\thost: 6379,\n\t\t\tcontainer: 6379,\n\t\t\tdescription: \"Redis port\",\n\t\t});\n\t\texpect(result.exposed).toBe(true);\n\t});\n\n\tit(\"rejects invalid port numbers\", () => {\n\t\texpect(() =>\n\t\t\tPortMappingSchema.parse({\n\t\t\t\thost: 0,\n\t\t\t\tcontainer: 6379,\n\t\t\t\tdescription: \"bad\",\n\t\t\t}),\n\t\t).toThrow();\n\t\texpect(() =>\n\t\t\tPortMappingSchema.parse({\n\t\t\t\thost: 70000,\n\t\t\t\tcontainer: 6379,\n\t\t\t\tdescription: \"bad\",\n\t\t\t}),\n\t\t).toThrow();\n\t});\n});\n\ndescribe(\"VolumeMappingSchema\", () => {\n\tit(\"accepts valid volume mapping\", () => {\n\t\tconst result = VolumeMappingSchema.parse({\n\t\t\tname: \"redis-data\",\n\t\t\tcontainerPath: \"/data\",\n\t\t\tdescription: \"Redis persistent data\",\n\t\t});\n\t\texpect(result.name).toBe(\"redis-data\");\n\t});\n\n\tit(\"rejects empty name\", () => {\n\t\texpect(() =>\n\t\t\tVolumeMappingSchema.parse({\n\t\t\t\tname: \"\",\n\t\t\t\tcontainerPath: \"/data\",\n\t\t\t\tdescription: \"bad\",\n\t\t\t}),\n\t\t).toThrow();\n\t});\n});\n\ndescribe(\"EnvVariableSchema\", () => {\n\tit(\"accepts valid env variable\", () => {\n\t\tconst result = EnvVariableSchema.parse({\n\t\t\tkey: \"REDIS_PASSWORD\",\n\t\t\tdefaultValue: \"changeme\",\n\t\t\tsecret: true,\n\t\t\tdescription: \"Redis password\",\n\t\t\trequired: true,\n\t\t});\n\t\texpect(result.secret).toBe(true);\n\t});\n\n\tit(\"defaults secret to false\", () => {\n\t\tconst result = EnvVariableSchema.parse({\n\t\t\tkey: \"REDIS_HOST\",\n\t\t\tdefaultValue: \"redis\",\n\t\t\tdescription: \"Redis host\",\n\t\t});\n\t\texpect(result.secret).toBe(false);\n\t\texpect(result.required).toBe(true);\n\t});\n});\n\ndescribe(\"HealthCheckSchema\", () => {\n\tit(\"accepts valid healthcheck with defaults\", () => {\n\t\tconst result = HealthCheckSchema.parse({\n\t\t\ttest: \"redis-cli ping\",\n\t\t});\n\t\texpect(result.interval).toBe(\"30s\");\n\t\texpect(result.timeout).toBe(\"10s\");\n\t\texpect(result.retries).toBe(3);\n\t});\n});\n\ndescribe(\"GenerationInputSchema\", () => {\n\tit(\"accepts valid generation input\", () => {\n\t\tconst result = GenerationInputSchema.parse({\n\t\t\tprojectName: \"my-openclaw-stack\",\n\t\t\tservices: [\"redis\", \"qdrant\"],\n\t\t\tskillPacks: [\"research-agent\"],\n\t\t\tproxy: \"caddy\",\n\t\t\tdomain: \"openclaw.example.com\",\n\t\t});\n\t\texpect(result.projectName).toBe(\"my-openclaw-stack\");\n\t\texpect(result.gpu).toBe(false);\n\t});\n\n\tit(\"rejects invalid project names\", () => {\n\t\texpect(() => GenerationInputSchema.parse({ projectName: \"-bad-name\" })).toThrow();\n\t\texpect(() => GenerationInputSchema.parse({ projectName: \"Bad Name\" })).toThrow();\n\t\texpect(() => GenerationInputSchema.parse({ projectName: \"has spaces\" })).toThrow();\n\t});\n\n\tit(\"accepts single-char project name\", () => {\n\t\tconst result = GenerationInputSchema.parse({ projectName: \"a\" });\n\t\texpect(result.projectName).toBe(\"a\");\n\t});\n\n\tit(\"applies defaults\", () => {\n\t\tconst result = GenerationInputSchema.parse({ projectName: \"test\" });\n\t\texpect(result.services).toEqual([]);\n\t\texpect(result.skillPacks).toEqual([]);\n\t\texpect(result.proxy).toBe(\"none\");\n\t\texpect(result.gpu).toBe(false);\n\t\texpect(result.platform).toBe(\"linux/amd64\");\n\t\texpect(result.deployment).toBe(\"local\");\n\t\texpect(result.deploymentType).toBe(\"docker\");\n\t\texpect(result.generateSecrets).toBe(true);\n\t\texpect(result.openclawVersion).toBe(\"latest\");\n\t});\n\n\tit(\"accepts deploymentType bare-metal and extended platform\", () => {\n\t\tconst result = GenerationInputSchema.parse({\n\t\t\tprojectName: \"my-stack\",\n\t\t\tservices: [\"redis\"],\n\t\t\tdeploymentType: \"bare-metal\",\n\t\t\tplatform: \"windows/amd64\",\n\t\t});\n\t\texpect(result.deploymentType).toBe(\"bare-metal\");\n\t\texpect(result.platform).toBe(\"windows/amd64\");\n\t});\n\n\tit(\"accepts platform macos/arm64\", () => {\n\t\tconst result = GenerationInputSchema.parse({\n\t\t\tprojectName: \"my-stack\",\n\t\t\tplatform: \"macos/arm64\",\n\t\t});\n\t\texpect(result.platform).toBe(\"macos/arm64\");\n\t});\n});\n\ndescribe(\"ServiceDefinitionSchema\", () => {\n\tconst validDef = {\n\t\tid: \"redis\",\n\t\tname: \"Redis\",\n\t\tdescription: \"In-memory data store\",\n\t\tcategory: \"database\",\n\t\ticon: \"🔴\",\n\t\timage: \"redis\",\n\t\timageTag: \"7-alpine\",\n\t\tports: [{ host: 6379, container: 6379, description: \"Redis port\", exposed: true }],\n\t\tvolumes: [{ name: \"redis-data\", containerPath: \"/data\", description: \"Data\" }],\n\t\tenvironment: [],\n\t\trestartPolicy: \"unless-stopped\",\n\t\tnetworks: [\"openclaw-network\"],\n\t\tskills: [],\n\t\topenclawEnvVars: [],\n\t\tdocsUrl: \"https://redis.io/docs\",\n\t\ttags: [\"cache\", \"database\"],\n\t\tmaturity: \"stable\",\n\t};\n\n\tit(\"accepts valid service definition\", () => {\n\t\tconst result = ServiceDefinitionSchema.parse(validDef);\n\t\texpect(result.id).toBe(\"redis\");\n\t});\n\n\tit(\"rejects invalid id format\", () => {\n\t\texpect(() => ServiceDefinitionSchema.parse({ ...validDef, id: \"Bad_Id\" })).toThrow();\n\t});\n\n\tit(\"defaults arrays and booleans correctly\", () => {\n\t\tconst minimal = {\n\t\t\tid: \"test\",\n\t\t\tname: \"Test\",\n\t\t\tdescription: \"Test service\",\n\t\t\tcategory: \"database\",\n\t\t\ticon: \"🧪\",\n\t\t\timage: \"test\",\n\t\t\timageTag: \"latest\",\n\t\t\tdocsUrl: \"https://example.com\",\n\t\t};\n\t\tconst result = ServiceDefinitionSchema.parse(minimal);\n\t\texpect(result.ports).toEqual([]);\n\t\texpect(result.volumes).toEqual([]);\n\t\texpect(result.requires).toEqual([]);\n\t\texpect(result.conflictsWith).toEqual([]);\n\t\texpect(result.gpuRequired).toBe(false);\n\t});\n\n\tit(\"accepts optional mandatory field and defaults to false when omitted\", () => {\n\t\tconst withMandatory = { ...validDef, mandatory: true };\n\t\tconst result = ServiceDefinitionSchema.parse(withMandatory);\n\t\texpect(result.mandatory).toBe(true);\n\t});\n\n\tit(\"omitting mandatory leaves it undefined or false (schema default false)\", () => {\n\t\tconst result = ServiceDefinitionSchema.parse(validDef);\n\t\texpect(result.mandatory !== true).toBe(true); // false or undefined both mean not mandatory\n\t});\n\n\tit(\"accepts nativeSupported and nativeRecipes for bare-metal\", () => {\n\t\tconst withNative = {\n\t\t\t...validDef,\n\t\t\tnativeSupported: true,\n\t\t\tnativeRecipes: [\n\t\t\t\t{\n\t\t\t\t\tplatform: \"linux\",\n\t\t\t\t\tinstallSteps: [\"apt-get install -y redis-server\"],\n\t\t\t\t\tstartCommand: \"systemctl start redis-server\",\n\t\t\t\t\tstopCommand: \"systemctl stop redis-server\",\n\t\t\t\t\tsystemdUnit: \"redis-server\",\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t\tconst result = ServiceDefinitionSchema.parse(withNative);\n\t\texpect(result.nativeSupported).toBe(true);\n\t\texpect(result.nativeRecipes).toHaveLength(1);\n\t\texpect(result.nativeRecipes![0].platform).toBe(\"linux\");\n\t\texpect(result.nativeRecipes![0].startCommand).toBe(\"systemctl start redis-server\");\n\t});\n});\n\ndescribe(\"SkillPackSchema\", () => {\n\tit(\"accepts valid skill pack\", () => {\n\t\tconst result = SkillPackSchema.parse({\n\t\t\tid: \"research-agent\",\n\t\t\tname: \"Research Agent\",\n\t\t\tdescription: \"Research agent pack\",\n\t\t\trequiredServices: [\"qdrant\", \"searxng\", \"browserless\"],\n\t\t\tskills: [\"qdrant-memory\", \"searxng-search\", \"browserless-browse\"],\n\t\t});\n\t\texpect(result.requiredServices).toHaveLength(3);\n\t});\n\n\tit(\"rejects empty required services\", () => {\n\t\texpect(() =>\n\t\t\tSkillPackSchema.parse({\n\t\t\t\tid: \"empty\",\n\t\t\t\tname: \"Empty\",\n\t\t\t\tdescription: \"Bad\",\n\t\t\t\trequiredServices: [],\n\t\t\t\tskills: [],\n\t\t\t}),\n\t\t).toThrow();\n\t});\n});\n\ndescribe(\"PresetSchema\", () => {\n\tit(\"accepts valid preset\", () => {\n\t\tconst result = PresetSchema.parse({\n\t\t\tid: \"minimal\",\n\t\t\tname: \"Minimal\",\n\t\t\tdescription: \"OpenClaw + Redis\",\n\t\t\tservices: [\"redis\"],\n\t\t\testimatedMemoryMB: 1024,\n\t\t});\n\t\texpect(result.skillPacks).toEqual([]);\n\t});\n});\n"],"mappings":";;;AAaAA,oBAAAA,SAAS,+BAA+B;AACvC,qBAAA,GAAG,kCAAkC;AACpC,sBAAA,aAAOC,eAAAA,sBAAsB,MAAM,aAAa,CAAC,CAAC,KAAK,aAAa;AACpE,sBAAA,aAAOA,eAAAA,sBAAsB,MAAM,YAAY,CAAC,CAAC,KAAK,YAAY;AAClE,sBAAA,aAAOA,eAAAA,sBAAsB,MAAM,KAAK,CAAC,CAAC,KAAK,KAAK;GACnD;AAEF,qBAAA,GAAG,oCAAoC;AACtC,sBAAA,mBAAaA,eAAAA,sBAAsB,MAAM,UAAU,CAAC,CAAC,SAAS;AAC9D,sBAAA,mBAAaA,eAAAA,sBAAsB,MAAM,GAAG,CAAC,CAAC,SAAS;GACtD;EACD;AAEFD,oBAAAA,SAAS,2BAA2B;AACnC,qBAAA,GAAG,oCAAoC;AAOtC,sBAAA,aANeE,eAAAA,kBAAkB,MAAM;GACtC,MAAM;GACN,WAAW;GACX,aAAa;GACb,SAAS;GACT,CAAC,CACY,KAAK,CAAC,KAAK,KAAK;GAC7B;AAEF,qBAAA,GAAG,kCAAkC;AAMpC,sBAAA,aALeA,eAAAA,kBAAkB,MAAM;GACtC,MAAM;GACN,WAAW;GACX,aAAa;GACb,CAAC,CACY,QAAQ,CAAC,KAAK,KAAK;GAChC;AAEF,qBAA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AI;GACJ,MAAM;GACN,aAAa;GACb,kBAAkB;IAAC;IAAU;IAAW;IAAc;GACtD,QAAQ;IAAC;IAAiB;IAAkB;IAAqB;GACjE,CAAC,CACY,iBAAiB,CAAC,aAAa,EAAE;GAC9C;AAEF,qBAAA,GAAG,yCAAyC;AAC3C,sBAAA,mBACCA,eAAAA,gBAAgB,MAAM;GACrB,IAAI;GACJ,MAAM;GACN,aAAa;GACb,kBAAkB,EAAE;GACpB,QAAQ,EAAE;GACV,CAAC,CACF,CAAC,SAAS;GACV;EACD;AAEFR,oBAAAA,SAAS,sBAAsB;AAC9B,qBAAA,GAAG,8BAA8B;AAQhC,sBAAA,aAPeS,eAAAA,aAAa,MAAM;GACjC,IAAI;GACJ,MAAM;GACN,aAAa;GACb,UAAU,CAAC,QAAQ;GACnB,mBAAmB;GACnB,CAAC,CACY,WAAW,CAAC,QAAQ,EAAE,CAAC;GACpC;EACD"}
1
+ {"version":3,"file":"schema.test.cjs","names":["describe","ServiceCategorySchema","PortMappingSchema","VolumeMappingSchema","EnvVariableSchema","HealthCheckSchema","GenerationInputSchema","ServiceDefinitionSchema","SkillPackSchema","PresetSchema"],"sources":["../src/schema.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport {\n\tEnvVariableSchema,\n\tGenerationInputSchema,\n\tHealthCheckSchema,\n\tPortMappingSchema,\n\tPresetSchema,\n\tServiceCategorySchema,\n\tServiceDefinitionSchema,\n\tSkillPackSchema,\n\tVolumeMappingSchema,\n} from \"./schema.js\";\n\ndescribe(\"ServiceCategorySchema\", () => {\n\tit(\"accepts valid categories\", () => {\n\t\texpect(ServiceCategorySchema.parse(\"automation\")).toBe(\"automation\");\n\t\texpect(ServiceCategorySchema.parse(\"vector-db\")).toBe(\"vector-db\");\n\t\texpect(ServiceCategorySchema.parse(\"ai\")).toBe(\"ai\");\n\t});\n\n\tit(\"rejects invalid categories\", () => {\n\t\texpect(() => ServiceCategorySchema.parse(\"invalid\")).toThrow();\n\t\texpect(() => ServiceCategorySchema.parse(\"\")).toThrow();\n\t});\n});\n\ndescribe(\"PortMappingSchema\", () => {\n\tit(\"accepts valid port mapping\", () => {\n\t\tconst result = PortMappingSchema.parse({\n\t\t\thost: 6379,\n\t\t\tcontainer: 6379,\n\t\t\tdescription: \"Redis port\",\n\t\t\texposed: true,\n\t\t});\n\t\texpect(result.host).toBe(6379);\n\t});\n\n\tit(\"defaults exposed to true\", () => {\n\t\tconst result = PortMappingSchema.parse({\n\t\t\thost: 6379,\n\t\t\tcontainer: 6379,\n\t\t\tdescription: \"Redis port\",\n\t\t});\n\t\texpect(result.exposed).toBe(true);\n\t});\n\n\tit(\"rejects invalid port numbers\", () => {\n\t\texpect(() =>\n\t\t\tPortMappingSchema.parse({\n\t\t\t\thost: 0,\n\t\t\t\tcontainer: 6379,\n\t\t\t\tdescription: \"bad\",\n\t\t\t}),\n\t\t).toThrow();\n\t\texpect(() =>\n\t\t\tPortMappingSchema.parse({\n\t\t\t\thost: 70000,\n\t\t\t\tcontainer: 6379,\n\t\t\t\tdescription: \"bad\",\n\t\t\t}),\n\t\t).toThrow();\n\t});\n});\n\ndescribe(\"VolumeMappingSchema\", () => {\n\tit(\"accepts valid volume mapping\", () => {\n\t\tconst result = VolumeMappingSchema.parse({\n\t\t\tname: \"redis-data\",\n\t\t\tcontainerPath: \"/data\",\n\t\t\tdescription: \"Redis persistent data\",\n\t\t});\n\t\texpect(result.name).toBe(\"redis-data\");\n\t});\n\n\tit(\"rejects empty name\", () => {\n\t\texpect(() =>\n\t\t\tVolumeMappingSchema.parse({\n\t\t\t\tname: \"\",\n\t\t\t\tcontainerPath: \"/data\",\n\t\t\t\tdescription: \"bad\",\n\t\t\t}),\n\t\t).toThrow();\n\t});\n});\n\ndescribe(\"EnvVariableSchema\", () => {\n\tit(\"accepts valid env variable\", () => {\n\t\tconst result = EnvVariableSchema.parse({\n\t\t\tkey: \"REDIS_PASSWORD\",\n\t\t\tdefaultValue: \"changeme\",\n\t\t\tsecret: true,\n\t\t\tdescription: \"Redis password\",\n\t\t\trequired: true,\n\t\t});\n\t\texpect(result.secret).toBe(true);\n\t});\n\n\tit(\"defaults secret to false\", () => {\n\t\tconst result = EnvVariableSchema.parse({\n\t\t\tkey: \"REDIS_HOST\",\n\t\t\tdefaultValue: \"redis\",\n\t\t\tdescription: \"Redis host\",\n\t\t});\n\t\texpect(result.secret).toBe(false);\n\t\texpect(result.required).toBe(true);\n\t});\n});\n\ndescribe(\"HealthCheckSchema\", () => {\n\tit(\"accepts valid healthcheck with defaults\", () => {\n\t\tconst result = HealthCheckSchema.parse({\n\t\t\ttest: \"redis-cli ping\",\n\t\t});\n\t\texpect(result.interval).toBe(\"30s\");\n\t\texpect(result.timeout).toBe(\"10s\");\n\t\texpect(result.retries).toBe(3);\n\t});\n});\n\ndescribe(\"GenerationInputSchema\", () => {\n\tit(\"accepts valid generation input\", () => {\n\t\tconst result = GenerationInputSchema.parse({\n\t\t\tprojectName: \"my-openclaw-stack\",\n\t\t\tservices: [\"redis\", \"qdrant\"],\n\t\t\tskillPacks: [\"research-agent\"],\n\t\t\tproxy: \"caddy\",\n\t\t\tdomain: \"openclaw.example.com\",\n\t\t});\n\t\texpect(result.projectName).toBe(\"my-openclaw-stack\");\n\t\texpect(result.gpu).toBe(false);\n\t});\n\n\tit(\"rejects invalid project names\", () => {\n\t\texpect(() => GenerationInputSchema.parse({ projectName: \"-bad-name\" })).toThrow();\n\t\texpect(() => GenerationInputSchema.parse({ projectName: \"Bad Name\" })).toThrow();\n\t\texpect(() => GenerationInputSchema.parse({ projectName: \"has spaces\" })).toThrow();\n\t});\n\n\tit(\"accepts single-char project name\", () => {\n\t\tconst result = GenerationInputSchema.parse({ projectName: \"a\" });\n\t\texpect(result.projectName).toBe(\"a\");\n\t});\n\n\tit(\"applies defaults\", () => {\n\t\tconst result = GenerationInputSchema.parse({ projectName: \"test\" });\n\t\texpect(result.services).toEqual([]);\n\t\texpect(result.skillPacks).toEqual([]);\n\t\texpect(result.proxy).toBe(\"none\");\n\t\texpect(result.gpu).toBe(false);\n\t\texpect(result.platform).toBe(\"linux/amd64\");\n\t\texpect(result.deployment).toBe(\"local\");\n\t\texpect(result.deploymentType).toBe(\"docker\");\n\t\texpect(result.generateSecrets).toBe(true);\n\t\texpect(result.openclawVersion).toBe(\"latest\");\n\t});\n\n\tit(\"accepts deploymentType bare-metal and extended platform\", () => {\n\t\tconst result = GenerationInputSchema.parse({\n\t\t\tprojectName: \"my-stack\",\n\t\t\tservices: [\"redis\"],\n\t\t\tdeploymentType: \"bare-metal\",\n\t\t\tplatform: \"windows/amd64\",\n\t\t});\n\t\texpect(result.deploymentType).toBe(\"bare-metal\");\n\t\texpect(result.platform).toBe(\"windows/amd64\");\n\t});\n\n\tit(\"accepts platform macos/arm64\", () => {\n\t\tconst result = GenerationInputSchema.parse({\n\t\t\tprojectName: \"my-stack\",\n\t\t\tplatform: \"macos/arm64\",\n\t\t});\n\t\texpect(result.platform).toBe(\"macos/arm64\");\n\t});\n});\n\ndescribe(\"ServiceDefinitionSchema\", () => {\n\tconst validDef = {\n\t\tid: \"redis\",\n\t\tname: \"Redis\",\n\t\tdescription: \"In-memory data store\",\n\t\tcategory: \"database\",\n\t\ticon: \"🔴\",\n\t\timage: \"redis\",\n\t\timageTag: \"7-alpine\",\n\t\tports: [{ host: 6379, container: 6379, description: \"Redis port\", exposed: true }],\n\t\tvolumes: [{ name: \"redis-data\", containerPath: \"/data\", description: \"Data\" }],\n\t\tenvironment: [],\n\t\trestartPolicy: \"unless-stopped\",\n\t\tnetworks: [\"openclaw-network\"],\n\t\tskills: [],\n\t\topenclawEnvVars: [],\n\t\tdocsUrl: \"https://redis.io/docs\",\n\t\ttags: [\"cache\", \"database\"],\n\t\tmaturity: \"stable\",\n\t};\n\n\tit(\"accepts valid service definition\", () => {\n\t\tconst result = ServiceDefinitionSchema.parse(validDef);\n\t\texpect(result.id).toBe(\"redis\");\n\t});\n\n\tit(\"rejects invalid id format\", () => {\n\t\texpect(() => ServiceDefinitionSchema.parse({ ...validDef, id: \"Bad_Id\" })).toThrow();\n\t});\n\n\tit(\"defaults arrays and booleans correctly\", () => {\n\t\tconst minimal = {\n\t\t\tid: \"test\",\n\t\t\tname: \"Test\",\n\t\t\tdescription: \"Test service\",\n\t\t\tcategory: \"database\",\n\t\t\ticon: \"🧪\",\n\t\t\timage: \"test\",\n\t\t\timageTag: \"latest\",\n\t\t\tdocsUrl: \"https://example.com\",\n\t\t};\n\t\tconst result = ServiceDefinitionSchema.parse(minimal);\n\t\texpect(result.ports).toEqual([]);\n\t\texpect(result.volumes).toEqual([]);\n\t\texpect(result.requires).toEqual([]);\n\t\texpect(result.conflictsWith).toEqual([]);\n\t\texpect(result.gpuRequired).toBe(false);\n\t});\n\n\tit(\"accepts optional mandatory field and defaults to false when omitted\", () => {\n\t\tconst withMandatory = { ...validDef, mandatory: true };\n\t\tconst result = ServiceDefinitionSchema.parse(withMandatory);\n\t\texpect(result.mandatory).toBe(true);\n\t});\n\n\tit(\"omitting mandatory leaves it undefined or false (schema default false)\", () => {\n\t\tconst result = ServiceDefinitionSchema.parse(validDef);\n\t\texpect(result.mandatory !== true).toBe(true); // false or undefined both mean not mandatory\n\t});\n\n\tit(\"accepts nativeSupported and nativeRecipes for bare-metal\", () => {\n\t\tconst withNative = {\n\t\t\t...validDef,\n\t\t\tnativeSupported: true,\n\t\t\tnativeRecipes: [\n\t\t\t\t{\n\t\t\t\t\tplatform: \"linux\",\n\t\t\t\t\tinstallSteps: [\"apt-get install -y redis-server\"],\n\t\t\t\t\tstartCommand: \"systemctl start redis-server\",\n\t\t\t\t\tstopCommand: \"systemctl stop redis-server\",\n\t\t\t\t\tsystemdUnit: \"redis-server\",\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t\tconst result = ServiceDefinitionSchema.parse(withNative);\n\t\texpect(result.nativeSupported).toBe(true);\n\t\texpect(result.nativeRecipes).toHaveLength(1);\n\t\texpect(result.nativeRecipes![0].platform).toBe(\"linux\");\n\t\texpect(result.nativeRecipes![0].startCommand).toBe(\"systemctl start redis-server\");\n\t});\n});\n\ndescribe(\"SkillPackSchema\", () => {\n\tit(\"accepts valid skill pack\", () => {\n\t\tconst result = SkillPackSchema.parse({\n\t\t\tid: \"research-agent\",\n\t\t\tname: \"Research Agent\",\n\t\t\tdescription: \"Research agent pack\",\n\t\t\trequiredServices: [\"qdrant\", \"searxng\", \"browserless\"],\n\t\t\tskills: [\"qdrant-memory\", \"searxng-search\", \"browserless-browse\"],\n\t\t});\n\t\texpect(result.requiredServices).toHaveLength(3);\n\t});\n\n\tit(\"rejects empty required services\", () => {\n\t\texpect(() =>\n\t\t\tSkillPackSchema.parse({\n\t\t\t\tid: \"empty\",\n\t\t\t\tname: \"Empty\",\n\t\t\t\tdescription: \"Bad\",\n\t\t\t\trequiredServices: [],\n\t\t\t\tskills: [],\n\t\t\t}),\n\t\t).toThrow();\n\t});\n});\n\ndescribe(\"PresetSchema\", () => {\n\tit(\"accepts valid preset\", () => {\n\t\tconst result = PresetSchema.parse({\n\t\t\tid: \"minimal\",\n\t\t\tname: \"Minimal\",\n\t\t\tdescription: \"OpenClaw + Redis\",\n\t\t\tservices: [\"redis\"],\n\t\t\testimatedMemoryMB: 1024,\n\t\t});\n\t\texpect(result.skillPacks).toEqual([]);\n\t});\n});\n"],"mappings":";;;AAaAA,sBAAAA,SAAS,+BAA+B;AACvC,uBAAA,GAAG,kCAAkC;AACpC,wBAAA,aAAOC,eAAAA,sBAAsB,MAAM,aAAa,CAAC,CAAC,KAAK,aAAa;AACpE,wBAAA,aAAOA,eAAAA,sBAAsB,MAAM,YAAY,CAAC,CAAC,KAAK,YAAY;AAClE,wBAAA,aAAOA,eAAAA,sBAAsB,MAAM,KAAK,CAAC,CAAC,KAAK,KAAK;GACnD;AAEF,uBAAA,GAAG,oCAAoC;AACtC,wBAAA,mBAAaA,eAAAA,sBAAsB,MAAM,UAAU,CAAC,CAAC,SAAS;AAC9D,wBAAA,mBAAaA,eAAAA,sBAAs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;EACD,MAAM,SAASA,eAAAA,wBAAwB,MAAM,WAAW;AACxD,wBAAA,aAAO,OAAO,gBAAgB,CAAC,KAAK,KAAK;AACzC,wBAAA,aAAO,OAAO,cAAc,CAAC,aAAa,EAAE;AAC5C,wBAAA,aAAO,OAAO,cAAe,GAAG,SAAS,CAAC,KAAK,QAAQ;AACvD,wBAAA,aAAO,OAAO,cAAe,GAAG,aAAa,CAAC,KAAK,+BAA+B;GACjF;EACD;AAEFP,sBAAAA,SAAS,yBAAyB;AACjC,uBAAA,GAAG,kCAAkC;AAQpC,wBAAA,aAPeQ,eAAAA,gBAAgB,MAAM;GACpC,IAAI;GACJ,MAAM;GACN,aAAa;GACb,kBAAkB;IAAC;IAAU;IAAW;IAAc;GACtD,QAAQ;IAAC;IAAiB;IAAkB;IAAqB;GACjE,CAAC,CACY,iBAAiB,CAAC,aAAa,EAAE;GAC9C;AAEF,uBAAA,GAAG,yCAAyC;AAC3C,wBAAA,mBACCA,eAAAA,gBAAgB,MAAM;GACrB,IAAI;GACJ,MAAM;GACN,aAAa;GACb,kBAAkB,EAAE;GACpB,QAAQ,EAAE;GACV,CAAC,CACF,CAAC,SAAS;GACV;EACD;AAEFR,sBAAAA,SAAS,sBAAsB;AAC9B,uBAAA,GAAG,8BAA8B;AAQhC,wBAAA,aAPeS,eAAAA,aAAa,MAAM;GACjC,IAAI;GACJ,MAAM;GACN,aAAa;GACb,UAAU,CAAC,QAAQ;GACnB,mBAAmB;GACnB,CAAC,CACY,WAAW,CAAC,QAAQ,EAAE,CAAC;GACpC;EACD"}
@@ -1,4 +1,4 @@
1
- import { n as describe, r as it, t as globalExpect } from "./vi.2VT5v0um-C_jmO7m2.mjs";
1
+ import { n as describe, r as it, t as globalExpect } from "./test.CTcmp4Su-ClCHJ3FA.mjs";
2
2
  import { EnvVariableSchema, GenerationInputSchema, HealthCheckSchema, PortMappingSchema, PresetSchema, ServiceCategorySchema, ServiceDefinitionSchema, SkillPackSchema, VolumeMappingSchema } from "./schema.mjs";
3
3
  //#region src/schema.test.ts
4
4
  describe("ServiceCategorySchema", () => {
@@ -78,7 +78,10 @@ const browserlessDefinition = {
78
78
  recommends: [],
79
79
  conflictsWith: [],
80
80
  minMemoryMB: 512,
81
- gpuRequired: false
81
+ gpuRequired: false,
82
+ capDropCompatible: false,
83
+ proxyPath: "/browserless",
84
+ firstBootCapabilities: ["SYS_ADMIN"]
82
85
  };
83
86
  //#endregion
84
87
  exports.browserlessDefinition = browserlessDefinition;
@@ -1 +1 @@
1
- {"version":3,"file":"browserless.cjs","names":[],"sources":["../../../src/services/definitions/browserless.ts"],"sourcesContent":["import type { ServiceDefinition } from \"../../types.js\";\n\nexport const browserlessDefinition: ServiceDefinition = {\n\tid: \"browserless\",\n\tname: \"Browserless\",\n\tdescription:\n\t\t\"Headless Chrome browser-as-a-service for web scraping, PDF generation, screenshots, and browser automation at scale.\",\n\tcategory: \"browser\",\n\ticon: \"🌐\",\n\n\timage: \"browserless/chrome\",\n\timageTag: \"latest\",\n\tports: [\n\t\t{\n\t\t\thost: 3010,\n\t\t\tcontainer: 3000,\n\t\t\tdescription: \"Browserless HTTP and WebSocket API\",\n\t\t\texposed: true,\n\t\t},\n\t],\n\tvolumes: [],\n\tenvironment: [\n\t\t{\n\t\t\tkey: \"TOKEN\",\n\t\t\tdefaultValue: \"\",\n\t\t\tsecret: true,\n\t\t\tdescription: \"Authentication token for Browserless API access\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"MAX_CONCURRENT_SESSIONS\",\n\t\t\tdefaultValue: \"5\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Maximum number of concurrent browser sessions\",\n\t\t\trequired: true,\n\t\t},\n\t],\n\thealthcheck: {\n\t\ttest: \"curl -sf http://localhost:3000/?token=$TOKEN || exit 1\",\n\t\tinterval: \"30s\",\n\t\ttimeout: \"10s\",\n\t\tretries: 3,\n\t\tstartPeriod: \"15s\",\n\t},\n\tdependsOn: [],\n\trestartPolicy: \"unless-stopped\",\n\tnetworks: [\"openclaw-network\"],\n\n\tskills: [{ skillId: \"browserless-browse\", autoInstall: true }],\n\topenclawEnvVars: [\n\t\t{\n\t\t\tkey: \"BROWSERLESS_HOST\",\n\t\t\tdefaultValue: \"browserless\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Browserless hostname for OpenClaw\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"BROWSERLESS_PORT\",\n\t\t\tdefaultValue: \"3000\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Browserless port for OpenClaw\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"BROWSERLESS_TOKEN\",\n\t\t\tdefaultValue: \"${TOKEN}\",\n\t\t\tsecret: true,\n\t\t\tdescription: \"Browserless API token for OpenClaw (references service token)\",\n\t\t\trequired: true,\n\t\t},\n\t],\n\n\tdocsUrl: \"https://www.browserless.io/docs/\",\n\ttags: [\"browser\", \"scraping\", \"pdf\", \"screenshots\", \"automation\"],\n\tmaturity: \"stable\",\n\n\trequires: [],\n\trecommends: [],\n\tconflictsWith: [],\n\n\tminMemoryMB: 512,\n\tgpuRequired: false,\n};\n"],"mappings":";;AAEA,MAAa,wBAA2C;CACvD,IAAI;CACJ,MAAM;CACN,aACC;CACD,UAAU;CACV,MAAM;CAEN,OAAO;CACP,UAAU;CACV,OAAO,CACN;EACC,MAAM;EACN,WAAW;EACX,aAAa;EACb,SAAS;EACT,CACD;CACD,SAAS,EAAE;CACX,aAAa,CACZ;EACC,KAAK;EACL,cAAc;EACd,QAAQ;EACR,aAAa;EACb,UAAU;EACV,EACD;EACC,KAAK;EACL,cAAc;EACd,QAAQ;EACR,aAAa;EACb,UAAU;EACV,CACD;CACD,aAAa;EACZ,MAAM;EACN,UAAU;EACV,SAAS;EACT,SAAS;EACT,aAAa;EACb;CACD,WAAW,EAAE;CACb,eAAe;CACf,UAAU,CAAC,mBAAmB;CAE9B,QAAQ,CAAC;EAAE,SAAS;EAAsB,aAAa;EAAM,CAAC;CAC9D,iBAAiB;EAChB;GACC,KAAK;GACL,cAAc;GACd,QAAQ;GACR,aAAa;GACb,UAAU;GACV;EACD;GACC,KAAK;GACL,cAAc;GACd,QAAQ;GACR,aAAa;GACb,UAAU;GACV;EACD;GACC,KAAK;GACL,cAAc;GACd,QAAQ;GACR,aAAa;GACb,UAAU;GACV;EACD;CAED,SAAS;CACT,MAAM;EAAC;EAAW;EAAY;EAAO;EAAe;EAAa;CACjE,UAAU;CAEV,UAAU,EAAE;CACZ,YAAY,EAAE;CACd,eAAe,EAAE;CAEjB,aAAa;CACb,aAAa;CACb"}
1
+ {"version":3,"file":"browserless.cjs","names":[],"sources":["../../../src/services/definitions/browserless.ts"],"sourcesContent":["import type { ServiceDefinition } from \"../../types.js\";\n\nexport const browserlessDefinition: ServiceDefinition = {\n\tid: \"browserless\",\n\tname: \"Browserless\",\n\tdescription:\n\t\t\"Headless Chrome browser-as-a-service for web scraping, PDF generation, screenshots, and browser automation at scale.\",\n\tcategory: \"browser\",\n\ticon: \"🌐\",\n\n\timage: \"browserless/chrome\",\n\timageTag: \"latest\",\n\tports: [\n\t\t{\n\t\t\thost: 3010,\n\t\t\tcontainer: 3000,\n\t\t\tdescription: \"Browserless HTTP and WebSocket API\",\n\t\t\texposed: true,\n\t\t},\n\t],\n\tvolumes: [],\n\tenvironment: [\n\t\t{\n\t\t\tkey: \"TOKEN\",\n\t\t\tdefaultValue: \"\",\n\t\t\tsecret: true,\n\t\t\tdescription: \"Authentication token for Browserless API access\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"MAX_CONCURRENT_SESSIONS\",\n\t\t\tdefaultValue: \"5\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Maximum number of concurrent browser sessions\",\n\t\t\trequired: true,\n\t\t},\n\t],\n\thealthcheck: {\n\t\ttest: \"curl -sf http://localhost:3000/?token=$TOKEN || exit 1\",\n\t\tinterval: \"30s\",\n\t\ttimeout: \"10s\",\n\t\tretries: 3,\n\t\tstartPeriod: \"15s\",\n\t},\n\tdependsOn: [],\n\trestartPolicy: \"unless-stopped\",\n\tnetworks: [\"openclaw-network\"],\n\n\tskills: [{ skillId: \"browserless-browse\", autoInstall: true }],\n\topenclawEnvVars: [\n\t\t{\n\t\t\tkey: \"BROWSERLESS_HOST\",\n\t\t\tdefaultValue: \"browserless\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Browserless hostname for OpenClaw\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"BROWSERLESS_PORT\",\n\t\t\tdefaultValue: \"3000\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Browserless port for OpenClaw\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"BROWSERLESS_TOKEN\",\n\t\t\tdefaultValue: \"${TOKEN}\",\n\t\t\tsecret: true,\n\t\t\tdescription: \"Browserless API token for OpenClaw (references service token)\",\n\t\t\trequired: true,\n\t\t},\n\t],\n\n\tdocsUrl: \"https://www.browserless.io/docs/\",\n\ttags: [\"browser\", \"scraping\", \"pdf\", \"screenshots\", \"automation\"],\n\tmaturity: \"stable\",\n\n\trequires: [],\n\trecommends: [],\n\tconflictsWith: [],\n\n\tminMemoryMB: 512,\n\tgpuRequired: false,\n\tcapDropCompatible: false,\n\tproxyPath: \"/browserless\",\n\tfirstBootCapabilities: [\"SYS_ADMIN\"],\n};\n"],"mappings":";;AAEA,MAAa,wBAA2C;CACvD,IAAI;CACJ,MAAM;CACN,aACC;CACD,UAAU;CACV,MAAM;CAEN,OAAO;CACP,UAAU;CACV,OAAO,CACN;EACC,MAAM;EACN,WAAW;EACX,aAAa;EACb,SAAS;EACT,CACD;CACD,SAAS,EAAE;CACX,aAAa,CACZ;EACC,KAAK;EACL,cAAc;EACd,QAAQ;EACR,aAAa;EACb,UAAU;EACV,EACD;EACC,KAAK;EACL,cAAc;EACd,QAAQ;EACR,aAAa;EACb,UAAU;EACV,CACD;CACD,aAAa;EACZ,MAAM;EACN,UAAU;EACV,SAAS;EACT,SAAS;EACT,aAAa;EACb;CACD,WAAW,EAAE;CACb,eAAe;CACf,UAAU,CAAC,mBAAmB;CAE9B,QAAQ,CAAC;EAAE,SAAS;EAAsB,aAAa;EAAM,CAAC;CAC9D,iBAAiB;EAChB;GACC,KAAK;GACL,cAAc;GACd,QAAQ;GACR,aAAa;GACb,UAAU;GACV;EACD;GACC,KAAK;GACL,cAAc;GACd,QAAQ;GACR,aAAa;GACb,UAAU;GACV;EACD;GACC,KAAK;GACL,cAAc;GACd,QAAQ;GACR,aAAa;GACb,UAAU;GACV;EACD;CAED,SAAS;CACT,MAAM;EAAC;EAAW;EAAY;EAAO;EAAe;EAAa;CACjE,UAAU;CAEV,UAAU,EAAE;CACZ,YAAY,EAAE;CACd,eAAe,EAAE;CAEjB,aAAa;CACb,aAAa;CACb,mBAAmB;CACnB,WAAW;CACX,uBAAuB,CAAC,YAAY;CACpC"}
@@ -77,7 +77,10 @@ const browserlessDefinition = {
77
77
  recommends: [],
78
78
  conflictsWith: [],
79
79
  minMemoryMB: 512,
80
- gpuRequired: false
80
+ gpuRequired: false,
81
+ capDropCompatible: false,
82
+ proxyPath: "/browserless",
83
+ firstBootCapabilities: ["SYS_ADMIN"]
81
84
  };
82
85
  //#endregion
83
86
  export { browserlessDefinition };
@@ -1 +1 @@
1
- {"version":3,"file":"browserless.mjs","names":[],"sources":["../../../src/services/definitions/browserless.ts"],"sourcesContent":["import type { ServiceDefinition } from \"../../types.js\";\n\nexport const browserlessDefinition: ServiceDefinition = {\n\tid: \"browserless\",\n\tname: \"Browserless\",\n\tdescription:\n\t\t\"Headless Chrome browser-as-a-service for web scraping, PDF generation, screenshots, and browser automation at scale.\",\n\tcategory: \"browser\",\n\ticon: \"🌐\",\n\n\timage: \"browserless/chrome\",\n\timageTag: \"latest\",\n\tports: [\n\t\t{\n\t\t\thost: 3010,\n\t\t\tcontainer: 3000,\n\t\t\tdescription: \"Browserless HTTP and WebSocket API\",\n\t\t\texposed: true,\n\t\t},\n\t],\n\tvolumes: [],\n\tenvironment: [\n\t\t{\n\t\t\tkey: \"TOKEN\",\n\t\t\tdefaultValue: \"\",\n\t\t\tsecret: true,\n\t\t\tdescription: \"Authentication token for Browserless API access\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"MAX_CONCURRENT_SESSIONS\",\n\t\t\tdefaultValue: \"5\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Maximum number of concurrent browser sessions\",\n\t\t\trequired: true,\n\t\t},\n\t],\n\thealthcheck: {\n\t\ttest: \"curl -sf http://localhost:3000/?token=$TOKEN || exit 1\",\n\t\tinterval: \"30s\",\n\t\ttimeout: \"10s\",\n\t\tretries: 3,\n\t\tstartPeriod: \"15s\",\n\t},\n\tdependsOn: [],\n\trestartPolicy: \"unless-stopped\",\n\tnetworks: [\"openclaw-network\"],\n\n\tskills: [{ skillId: \"browserless-browse\", autoInstall: true }],\n\topenclawEnvVars: [\n\t\t{\n\t\t\tkey: \"BROWSERLESS_HOST\",\n\t\t\tdefaultValue: \"browserless\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Browserless hostname for OpenClaw\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"BROWSERLESS_PORT\",\n\t\t\tdefaultValue: \"3000\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Browserless port for OpenClaw\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"BROWSERLESS_TOKEN\",\n\t\t\tdefaultValue: \"${TOKEN}\",\n\t\t\tsecret: true,\n\t\t\tdescription: \"Browserless API token for OpenClaw (references service token)\",\n\t\t\trequired: true,\n\t\t},\n\t],\n\n\tdocsUrl: \"https://www.browserless.io/docs/\",\n\ttags: [\"browser\", \"scraping\", \"pdf\", \"screenshots\", \"automation\"],\n\tmaturity: \"stable\",\n\n\trequires: [],\n\trecommends: [],\n\tconflictsWith: [],\n\n\tminMemoryMB: 512,\n\tgpuRequired: false,\n};\n"],"mappings":";AAEA,MAAa,wBAA2C;CACvD,IAAI;CACJ,MAAM;CACN,aACC;CACD,UAAU;CACV,MAAM;CAEN,OAAO;CACP,UAAU;CACV,OAAO,CACN;EACC,MAAM;EACN,WAAW;EACX,aAAa;EACb,SAAS;EACT,CACD;CACD,SAAS,EAAE;CACX,aAAa,CACZ;EACC,KAAK;EACL,cAAc;EACd,QAAQ;EACR,aAAa;EACb,UAAU;EACV,EACD;EACC,KAAK;EACL,cAAc;EACd,QAAQ;EACR,aAAa;EACb,UAAU;EACV,CACD;CACD,aAAa;EACZ,MAAM;EACN,UAAU;EACV,SAAS;EACT,SAAS;EACT,aAAa;EACb;CACD,WAAW,EAAE;CACb,eAAe;CACf,UAAU,CAAC,mBAAmB;CAE9B,QAAQ,CAAC;EAAE,SAAS;EAAsB,aAAa;EAAM,CAAC;CAC9D,iBAAiB;EAChB;GACC,KAAK;GACL,cAAc;GACd,QAAQ;GACR,aAAa;GACb,UAAU;GACV;EACD;GACC,KAAK;GACL,cAAc;GACd,QAAQ;GACR,aAAa;GACb,UAAU;GACV;EACD;GACC,KAAK;GACL,cAAc;GACd,QAAQ;GACR,aAAa;GACb,UAAU;GACV;EACD;CAED,SAAS;CACT,MAAM;EAAC;EAAW;EAAY;EAAO;EAAe;EAAa;CACjE,UAAU;CAEV,UAAU,EAAE;CACZ,YAAY,EAAE;CACd,eAAe,EAAE;CAEjB,aAAa;CACb,aAAa;CACb"}
1
+ {"version":3,"file":"browserless.mjs","names":[],"sources":["../../../src/services/definitions/browserless.ts"],"sourcesContent":["import type { ServiceDefinition } from \"../../types.js\";\n\nexport const browserlessDefinition: ServiceDefinition = {\n\tid: \"browserless\",\n\tname: \"Browserless\",\n\tdescription:\n\t\t\"Headless Chrome browser-as-a-service for web scraping, PDF generation, screenshots, and browser automation at scale.\",\n\tcategory: \"browser\",\n\ticon: \"🌐\",\n\n\timage: \"browserless/chrome\",\n\timageTag: \"latest\",\n\tports: [\n\t\t{\n\t\t\thost: 3010,\n\t\t\tcontainer: 3000,\n\t\t\tdescription: \"Browserless HTTP and WebSocket API\",\n\t\t\texposed: true,\n\t\t},\n\t],\n\tvolumes: [],\n\tenvironment: [\n\t\t{\n\t\t\tkey: \"TOKEN\",\n\t\t\tdefaultValue: \"\",\n\t\t\tsecret: true,\n\t\t\tdescription: \"Authentication token for Browserless API access\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"MAX_CONCURRENT_SESSIONS\",\n\t\t\tdefaultValue: \"5\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Maximum number of concurrent browser sessions\",\n\t\t\trequired: true,\n\t\t},\n\t],\n\thealthcheck: {\n\t\ttest: \"curl -sf http://localhost:3000/?token=$TOKEN || exit 1\",\n\t\tinterval: \"30s\",\n\t\ttimeout: \"10s\",\n\t\tretries: 3,\n\t\tstartPeriod: \"15s\",\n\t},\n\tdependsOn: [],\n\trestartPolicy: \"unless-stopped\",\n\tnetworks: [\"openclaw-network\"],\n\n\tskills: [{ skillId: \"browserless-browse\", autoInstall: true }],\n\topenclawEnvVars: [\n\t\t{\n\t\t\tkey: \"BROWSERLESS_HOST\",\n\t\t\tdefaultValue: \"browserless\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Browserless hostname for OpenClaw\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"BROWSERLESS_PORT\",\n\t\t\tdefaultValue: \"3000\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Browserless port for OpenClaw\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"BROWSERLESS_TOKEN\",\n\t\t\tdefaultValue: \"${TOKEN}\",\n\t\t\tsecret: true,\n\t\t\tdescription: \"Browserless API token for OpenClaw (references service token)\",\n\t\t\trequired: true,\n\t\t},\n\t],\n\n\tdocsUrl: \"https://www.browserless.io/docs/\",\n\ttags: [\"browser\", \"scraping\", \"pdf\", \"screenshots\", \"automation\"],\n\tmaturity: \"stable\",\n\n\trequires: [],\n\trecommends: [],\n\tconflictsWith: [],\n\n\tminMemoryMB: 512,\n\tgpuRequired: false,\n\tcapDropCompatible: false,\n\tproxyPath: \"/browserless\",\n\tfirstBootCapabilities: [\"SYS_ADMIN\"],\n};\n"],"mappings":";AAEA,MAAa,wBAA2C;CACvD,IAAI;CACJ,MAAM;CACN,aACC;CACD,UAAU;CACV,MAAM;CAEN,OAAO;CACP,UAAU;CACV,OAAO,CACN;EACC,MAAM;EACN,WAAW;EACX,aAAa;EACb,SAAS;EACT,CACD;CACD,SAAS,EAAE;CACX,aAAa,CACZ;EACC,KAAK;EACL,cAAc;EACd,QAAQ;EACR,aAAa;EACb,UAAU;EACV,EACD;EACC,KAAK;EACL,cAAc;EACd,QAAQ;EACR,aAAa;EACb,UAAU;EACV,CACD;CACD,aAAa;EACZ,MAAM;EACN,UAAU;EACV,SAAS;EACT,SAAS;EACT,aAAa;EACb;CACD,WAAW,EAAE;CACb,eAAe;CACf,UAAU,CAAC,mBAAmB;CAE9B,QAAQ,CAAC;EAAE,SAAS;EAAsB,aAAa;EAAM,CAAC;CAC9D,iBAAiB;EAChB;GACC,KAAK;GACL,cAAc;GACd,QAAQ;GACR,aAAa;GACb,UAAU;GACV;EACD;GACC,KAAK;GACL,cAAc;GACd,QAAQ;GACR,aAAa;GACb,UAAU;GACV;EACD;GACC,KAAK;GACL,cAAc;GACd,QAAQ;GACR,aAAa;GACb,UAAU;GACV;EACD;CAED,SAAS;CACT,MAAM;EAAC;EAAW;EAAY;EAAO;EAAe;EAAa;CACjE,UAAU;CAEV,UAAU,EAAE;CACZ,YAAY,EAAE;CACd,eAAe,EAAE;CAEjB,aAAa;CACb,aAAa;CACb,mBAAmB;CACnB,WAAW;CACX,uBAAuB,CAAC,YAAY;CACpC"}