@better-openclaw/core 1.0.13 → 1.0.15

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 (109) hide show
  1. package/dist/composer.mjs.map +1 -1
  2. package/dist/generate.d.mts.map +1 -1
  3. package/dist/generate.mjs +11 -0
  4. package/dist/generate.mjs.map +1 -1
  5. package/dist/generators/env.d.mts.map +1 -1
  6. package/dist/generators/env.mjs +21 -1
  7. package/dist/generators/env.mjs.map +1 -1
  8. package/dist/generators/get-shit-done.d.mts +10 -0
  9. package/dist/generators/get-shit-done.d.mts.map +1 -0
  10. package/dist/generators/get-shit-done.mjs +38 -0
  11. package/dist/generators/get-shit-done.mjs.map +1 -0
  12. package/dist/generators/openclaw-json.d.mts +11 -0
  13. package/dist/generators/openclaw-json.d.mts.map +1 -0
  14. package/dist/generators/openclaw-json.mjs +410 -0
  15. package/dist/generators/openclaw-json.mjs.map +1 -0
  16. package/dist/index.d.mts +2 -2
  17. package/dist/resolver.mjs +3 -1
  18. package/dist/resolver.mjs.map +1 -1
  19. package/dist/schema.d.mts +81 -1
  20. package/dist/schema.d.mts.map +1 -1
  21. package/dist/schema.mjs +28 -2
  22. package/dist/schema.mjs.map +1 -1
  23. package/dist/services/definitions/authentik.d.mts +7 -0
  24. package/dist/services/definitions/authentik.d.mts.map +1 -0
  25. package/dist/services/definitions/authentik.mjs +105 -0
  26. package/dist/services/definitions/authentik.mjs.map +1 -0
  27. package/dist/services/definitions/crowdsec.d.mts +7 -0
  28. package/dist/services/definitions/crowdsec.d.mts.map +1 -0
  29. package/dist/services/definitions/crowdsec.mjs +62 -0
  30. package/dist/services/definitions/crowdsec.mjs.map +1 -0
  31. package/dist/services/definitions/ghost.d.mts +7 -0
  32. package/dist/services/definitions/ghost.d.mts.map +1 -0
  33. package/dist/services/definitions/ghost.mjs +58 -0
  34. package/dist/services/definitions/ghost.mjs.map +1 -0
  35. package/dist/services/definitions/homeassistant.d.mts +7 -0
  36. package/dist/services/definitions/homeassistant.d.mts.map +1 -0
  37. package/dist/services/definitions/homeassistant.mjs +61 -0
  38. package/dist/services/definitions/homeassistant.mjs.map +1 -0
  39. package/dist/services/definitions/immich.d.mts +7 -0
  40. package/dist/services/definitions/immich.d.mts.map +1 -0
  41. package/dist/services/definitions/immich.mjs +92 -0
  42. package/dist/services/definitions/immich.mjs.map +1 -0
  43. package/dist/services/definitions/index.d.mts +14 -1
  44. package/dist/services/definitions/index.d.mts.map +1 -1
  45. package/dist/services/definitions/index.mjs +27 -1
  46. package/dist/services/definitions/index.mjs.map +1 -1
  47. package/dist/services/definitions/jellyfin.d.mts +7 -0
  48. package/dist/services/definitions/jellyfin.d.mts.map +1 -0
  49. package/dist/services/definitions/jellyfin.mjs +62 -0
  50. package/dist/services/definitions/jellyfin.mjs.map +1 -0
  51. package/dist/services/definitions/jenkins.d.mts +7 -0
  52. package/dist/services/definitions/jenkins.d.mts.map +1 -0
  53. package/dist/services/definitions/jenkins.mjs +62 -0
  54. package/dist/services/definitions/jenkins.mjs.map +1 -0
  55. package/dist/services/definitions/loki.d.mts +7 -0
  56. package/dist/services/definitions/loki.d.mts.map +1 -0
  57. package/dist/services/definitions/loki.mjs +51 -0
  58. package/dist/services/definitions/loki.mjs.map +1 -0
  59. package/dist/services/definitions/milvus.d.mts +7 -0
  60. package/dist/services/definitions/milvus.d.mts.map +1 -0
  61. package/dist/services/definitions/milvus.mjs +75 -0
  62. package/dist/services/definitions/milvus.mjs.map +1 -0
  63. package/dist/services/definitions/nextcloud.d.mts +7 -0
  64. package/dist/services/definitions/nextcloud.d.mts.map +1 -0
  65. package/dist/services/definitions/nextcloud.mjs +80 -0
  66. package/dist/services/definitions/nextcloud.mjs.map +1 -0
  67. package/dist/services/definitions/pentagi.mjs.map +1 -1
  68. package/dist/services/definitions/pentestagent.mjs.map +1 -1
  69. package/dist/services/definitions/signoz.d.mts +7 -0
  70. package/dist/services/definitions/signoz.d.mts.map +1 -0
  71. package/dist/services/definitions/signoz.mjs +54 -0
  72. package/dist/services/definitions/signoz.mjs.map +1 -0
  73. package/dist/services/definitions/supabase.d.mts +7 -0
  74. package/dist/services/definitions/supabase.d.mts.map +1 -0
  75. package/dist/services/definitions/supabase.mjs +69 -0
  76. package/dist/services/definitions/supabase.mjs.map +1 -0
  77. package/dist/services/definitions/vaultwarden.d.mts +7 -0
  78. package/dist/services/definitions/vaultwarden.d.mts.map +1 -0
  79. package/dist/services/definitions/vaultwarden.mjs +63 -0
  80. package/dist/services/definitions/vaultwarden.mjs.map +1 -0
  81. package/dist/types.d.mts +6 -2
  82. package/dist/types.d.mts.map +1 -1
  83. package/dist/types.mjs.map +1 -1
  84. package/package.json +1 -1
  85. package/src/composer.ts +1 -1
  86. package/src/generate.ts +15 -0
  87. package/src/generators/env.ts +26 -0
  88. package/src/generators/get-shit-done.ts +43 -0
  89. package/src/generators/openclaw-json.ts +406 -0
  90. package/src/index.ts +2 -0
  91. package/src/resolver.ts +2 -0
  92. package/src/schema.ts +23 -0
  93. package/src/services/definitions/authentik.ts +106 -0
  94. package/src/services/definitions/crowdsec.ts +66 -0
  95. package/src/services/definitions/ghost.ts +60 -0
  96. package/src/services/definitions/homeassistant.ts +65 -0
  97. package/src/services/definitions/immich.ts +93 -0
  98. package/src/services/definitions/index.ts +39 -0
  99. package/src/services/definitions/jellyfin.ts +66 -0
  100. package/src/services/definitions/jenkins.ts +67 -0
  101. package/src/services/definitions/loki.ts +53 -0
  102. package/src/services/definitions/milvus.ts +84 -0
  103. package/src/services/definitions/nextcloud.ts +81 -0
  104. package/src/services/definitions/pentagi.ts +2 -1
  105. package/src/services/definitions/pentestagent.ts +2 -1
  106. package/src/services/definitions/signoz.ts +54 -0
  107. package/src/services/definitions/supabase.ts +73 -0
  108. package/src/services/definitions/vaultwarden.ts +68 -0
  109. package/src/types.ts +6 -0
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.mts","names":[],"sources":["../src/schema.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,C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A;;;;cAKX,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcpB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAcpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAStB,cAAA,EAAc,CAAA,CAAA,SAAA"}
package/dist/schema.mjs CHANGED
@@ -60,6 +60,26 @@ const OutputFormatSchema = z.enum([
60
60
  "tar",
61
61
  "zip"
62
62
  ]);
63
+ const AiProviderSchema = z.enum([
64
+ "openai",
65
+ "anthropic",
66
+ "google",
67
+ "xai",
68
+ "deepseek",
69
+ "groq",
70
+ "openrouter",
71
+ "mistral",
72
+ "together",
73
+ "ollama",
74
+ "lmstudio",
75
+ "vllm"
76
+ ]);
77
+ const GsdRuntimeSchema = z.enum([
78
+ "claude",
79
+ "opencode",
80
+ "gemini",
81
+ "codex"
82
+ ]);
63
83
  const PortMappingSchema = z.object({
64
84
  host: z.number().int().min(1).max(65535),
65
85
  container: z.number().int().min(1).max(65535),
@@ -174,6 +194,8 @@ const GenerationInputSchema = z.object({
174
194
  projectName: z.string().min(1).max(64).regex(/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/, { message: "Project name must be lowercase alphanumeric with hyphens, cannot start or end with hyphen" }),
175
195
  services: z.array(z.string()).default([]),
176
196
  skillPacks: z.array(z.string()).default([]),
197
+ aiProviders: z.array(AiProviderSchema).default([]),
198
+ gsdRuntimes: z.array(GsdRuntimeSchema).default([]),
177
199
  proxy: ProxyTypeSchema.default("none"),
178
200
  domain: z.string().optional(),
179
201
  gpu: z.boolean().default(false),
@@ -216,7 +238,9 @@ const ResolverOutputSchema = z.object({
216
238
  warnings: z.array(WarningSchema),
217
239
  errors: z.array(ErrorSchema),
218
240
  isValid: z.boolean(),
219
- estimatedMemoryMB: z.number().int().min(0)
241
+ estimatedMemoryMB: z.number().int().min(0),
242
+ aiProviders: z.array(AiProviderSchema).default([]),
243
+ gsdRuntimes: z.array(GsdRuntimeSchema).default([])
220
244
  });
221
245
  const ComposeOptionsSchema = z.object({
222
246
  projectName: z.string(),
@@ -231,6 +255,8 @@ const ComposeOptionsSchema = z.object({
231
255
  const ValidateRequestSchema = z.object({
232
256
  services: z.array(z.string()),
233
257
  skillPacks: z.array(z.string()).default([]),
258
+ aiProviders: z.array(AiProviderSchema).default([]),
259
+ gsdRuntimes: z.array(GsdRuntimeSchema).default([]),
234
260
  proxy: ProxyTypeSchema.default("none"),
235
261
  domain: z.string().optional(),
236
262
  gpu: z.boolean().default(false),
@@ -260,5 +286,5 @@ const ApiErrorSchema = z.object({ error: z.object({
260
286
  }) });
261
287
 
262
288
  //#endregion
263
- export { AddedDependencySchema, ApiErrorSchema, ComposeOptionsSchema, ComposePlatformSchema, DeploySchema, DeploymentTargetSchema, DeploymentTypeSchema, EnvVariableSchema, ErrorSchema, GenerationInputSchema, HealthCheckSchema, MaturitySchema, NativePlatformSchema, NativeRecipeSchema, OutputFormatSchema, PlatformSchema, PortMappingSchema, PresetSchema, ProxyTypeSchema, ResolvedServiceSchema, ResolverOutputSchema, ResourceLimitsSchema, RestartPolicySchema, ServiceCategorySchema, ServiceDefinitionSchema, SkillBindingSchema, SkillPackSchema, ValidateRequestSchema, ValidateResponseSchema, VolumeMappingSchema, WarningSchema };
289
+ export { AddedDependencySchema, AiProviderSchema, ApiErrorSchema, ComposeOptionsSchema, ComposePlatformSchema, DeploySchema, DeploymentTargetSchema, DeploymentTypeSchema, EnvVariableSchema, ErrorSchema, GenerationInputSchema, GsdRuntimeSchema, HealthCheckSchema, MaturitySchema, NativePlatformSchema, NativeRecipeSchema, OutputFormatSchema, PlatformSchema, PortMappingSchema, PresetSchema, ProxyTypeSchema, ResolvedServiceSchema, ResolverOutputSchema, ResourceLimitsSchema, RestartPolicySchema, ServiceCategorySchema, ServiceDefinitionSchema, SkillBindingSchema, SkillPackSchema, ValidateRequestSchema, ValidateResponseSchema, VolumeMappingSchema, WarningSchema };
264
290
  //# sourceMappingURL=schema.mjs.map
@@ -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]);\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\"]);\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\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// ─── 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\n\timage: z.string().min(1),\n\timageTag: z.string().min(1),\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\tproxy: ProxyTypeSchema.default(\"none\"),\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});\n\n// ─── Resolver Output ────────────────────────────────────────────────────────\n\nexport const ResolvedServiceSchema = z.object({\n\tdefinition: ServiceDefinitionSchema,\n\taddedBy: z.enum([\"user\", \"dependency\", \"skill-pack\", \"proxy\", \"monitoring\"]).default(\"user\"),\n});\n\nexport const AddedDependencySchema = z.object({\n\tservice: z.string(),\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});\n\n// ─── Compose Options ────────────────────────────────────────────────────────\n\nexport const ComposeOptionsSchema = z.object({\n\tprojectName: z.string(),\n\tproxy: ProxyTypeSchema.default(\"none\"),\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});\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\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\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;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]);\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\"]);\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 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\"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// ─── 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\n\timage: z.string().min(1),\n\timageTag: z.string().min(1),\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\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});\n\n// ─── Resolver Output ────────────────────────────────────────────────────────\n\nexport const ResolvedServiceSchema = z.object({\n\tdefinition: ServiceDefinitionSchema,\n\taddedBy: z.enum([\"user\", \"dependency\", \"skill-pack\", \"proxy\", \"monitoring\"]).default(\"user\"),\n});\n\nexport const AddedDependencySchema = z.object({\n\tservice: z.string(),\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\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});\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,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,UAAU,aAAa,CAAC;AAEpE,MAAa,sBAAsB,EAAE,KAAK;CAAC;CAAkB;CAAU;CAAc;CAAK,CAAC;AAE3F,MAAa,kBAAkB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AAW,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"}
@@ -0,0 +1,7 @@
1
+ import { ServiceDefinition } from "../../types.mjs";
2
+
3
+ //#region src/services/definitions/authentik.d.ts
4
+ declare const authentikDefinition: ServiceDefinition;
5
+ //#endregion
6
+ export { authentikDefinition };
7
+ //# sourceMappingURL=authentik.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authentik.d.mts","names":[],"sources":["../../../src/services/definitions/authentik.ts"],"mappings":";;;cAEa,mBAAA,EAAqB,iBAAA"}
@@ -0,0 +1,105 @@
1
+ //#region src/services/definitions/authentik.ts
2
+ const authentikDefinition = {
3
+ id: "authentik",
4
+ name: "Authentik",
5
+ description: "The open-source Identity Provider that unifies your identity infrastructure.",
6
+ category: "security",
7
+ icon: "🛡️",
8
+ image: "ghcr.io/goauthentik/server",
9
+ imageTag: "latest",
10
+ ports: [{
11
+ host: 9e3,
12
+ container: 9e3,
13
+ description: "Authentik HTTP Interface",
14
+ exposed: true
15
+ }, {
16
+ host: 9443,
17
+ container: 9443,
18
+ description: "Authentik HTTPS Interface",
19
+ exposed: false
20
+ }],
21
+ volumes: [{
22
+ name: "authentik_media",
23
+ containerPath: "/media",
24
+ description: "Authentik media storage"
25
+ }, {
26
+ name: "authentik_custom_templates",
27
+ containerPath: "/templates",
28
+ description: "Authentik custom templates"
29
+ }],
30
+ environment: [
31
+ {
32
+ key: "AUTHENTIK_REDIS__HOST",
33
+ defaultValue: "redis",
34
+ secret: false,
35
+ description: "Redis server hostname",
36
+ required: true
37
+ },
38
+ {
39
+ key: "AUTHENTIK_POSTGRESQL__HOST",
40
+ defaultValue: "postgres",
41
+ secret: false,
42
+ description: "Postgres database hostname",
43
+ required: true
44
+ },
45
+ {
46
+ key: "AUTHENTIK_POSTGRESQL__USER",
47
+ defaultValue: "postgres",
48
+ secret: false,
49
+ description: "Postgres database user",
50
+ required: true
51
+ },
52
+ {
53
+ key: "AUTHENTIK_POSTGRESQL__NAME",
54
+ defaultValue: "authentik",
55
+ secret: false,
56
+ description: "Postgres database name",
57
+ required: true
58
+ },
59
+ {
60
+ key: "AUTHENTIK_POSTGRESQL__PASSWORD",
61
+ defaultValue: "postgres",
62
+ secret: true,
63
+ description: "Postgres database password",
64
+ required: true
65
+ },
66
+ {
67
+ key: "AUTHENTIK_SECRET_KEY",
68
+ defaultValue: "authentik_secret_replace_me_in_production",
69
+ secret: true,
70
+ description: "Secret key used for cookie signing",
71
+ required: true
72
+ }
73
+ ],
74
+ healthcheck: {
75
+ test: "curl --fail http://localhost:9000/-/health/live/ || exit 1",
76
+ interval: "30s",
77
+ timeout: "5s",
78
+ retries: 3,
79
+ startPeriod: "30s"
80
+ },
81
+ dependsOn: ["postgresql", "redis"],
82
+ restartPolicy: "unless-stopped",
83
+ networks: ["openclaw-network"],
84
+ skills: [],
85
+ openclawEnvVars: [],
86
+ docsUrl: "https://docs.goauthentik.io/",
87
+ tags: [
88
+ "identity",
89
+ "sso",
90
+ "saml",
91
+ "oidc",
92
+ "oauth2",
93
+ "security"
94
+ ],
95
+ maturity: "stable",
96
+ requires: ["postgresql", "redis"],
97
+ recommends: [],
98
+ conflictsWith: [],
99
+ minMemoryMB: 2048,
100
+ gpuRequired: false
101
+ };
102
+
103
+ //#endregion
104
+ export { authentikDefinition };
105
+ //# sourceMappingURL=authentik.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authentik.mjs","names":[],"sources":["../../../src/services/definitions/authentik.ts"],"sourcesContent":["import type { ServiceDefinition } from \"../../types.js\";\n\nexport const authentikDefinition: ServiceDefinition = {\n\tid: \"authentik\",\n\tname: \"Authentik\",\n\tdescription: \"The open-source Identity Provider that unifies your identity infrastructure.\",\n\tcategory: \"security\",\n\ticon: \"🛡️\",\n\n\timage: \"ghcr.io/goauthentik/server\",\n\timageTag: \"latest\",\n\tports: [\n\t\t{\n\t\t\thost: 9000,\n\t\t\tcontainer: 9000,\n\t\t\tdescription: \"Authentik HTTP Interface\",\n\t\t\texposed: true,\n\t\t},\n\t\t{\n\t\t\thost: 9443,\n\t\t\tcontainer: 9443,\n\t\t\tdescription: \"Authentik HTTPS Interface\",\n\t\t\texposed: false,\n\t\t},\n\t],\n\tvolumes: [\n\t\t{\n\t\t\tname: \"authentik_media\",\n\t\t\tcontainerPath: \"/media\",\n\t\t\tdescription: \"Authentik media storage\",\n\t\t},\n\t\t{\n\t\t\tname: \"authentik_custom_templates\",\n\t\t\tcontainerPath: \"/templates\",\n\t\t\tdescription: \"Authentik custom templates\",\n\t\t},\n\t],\n\tenvironment: [\n\t\t{\n\t\t\tkey: \"AUTHENTIK_REDIS__HOST\",\n\t\t\tdefaultValue: \"redis\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Redis server hostname\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"AUTHENTIK_POSTGRESQL__HOST\",\n\t\t\tdefaultValue: \"postgres\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Postgres database hostname\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"AUTHENTIK_POSTGRESQL__USER\",\n\t\t\tdefaultValue: \"postgres\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Postgres database user\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"AUTHENTIK_POSTGRESQL__NAME\",\n\t\t\tdefaultValue: \"authentik\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Postgres database name\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"AUTHENTIK_POSTGRESQL__PASSWORD\",\n\t\t\tdefaultValue: \"postgres\",\n\t\t\tsecret: true,\n\t\t\tdescription: \"Postgres database password\",\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tkey: \"AUTHENTIK_SECRET_KEY\",\n\t\t\tdefaultValue: \"authentik_secret_replace_me_in_production\",\n\t\t\tsecret: true,\n\t\t\tdescription: \"Secret key used for cookie signing\",\n\t\t\trequired: true,\n\t\t},\n\t],\n\thealthcheck: {\n\t\ttest: \"curl --fail http://localhost:9000/-/health/live/ || exit 1\",\n\t\tinterval: \"30s\",\n\t\ttimeout: \"5s\",\n\t\tretries: 3,\n\t\tstartPeriod: \"30s\",\n\t},\n\tdependsOn: [\"postgresql\", \"redis\"],\n\trestartPolicy: \"unless-stopped\",\n\tnetworks: [\"openclaw-network\"],\n\n\tskills: [],\n\topenclawEnvVars: [],\n\n\tdocsUrl: \"https://docs.goauthentik.io/\",\n\ttags: [\"identity\", \"sso\", \"saml\", \"oidc\", \"oauth2\", \"security\"],\n\tmaturity: \"stable\",\n\n\trequires: [\"postgresql\", \"redis\"],\n\trecommends: [],\n\tconflictsWith: [],\n\n\tminMemoryMB: 2048,\n\tgpuRequired: false,\n};\n"],"mappings":";AAEA,MAAa,sBAAyC;CACrD,IAAI;CACJ,MAAM;CACN,aAAa;CACb,UAAU;CACV,MAAM;CAEN,OAAO;CACP,UAAU;CACV,OAAO,CACN;EACC,MAAM;EACN,WAAW;EACX,aAAa;EACb,SAAS;EACT,EACD;EACC,MAAM;EACN,WAAW;EACX,aAAa;EACb,SAAS;EACT,CACD;CACD,SAAS,CACR;EACC,MAAM;EACN,eAAe;EACf,aAAa;EACb,EACD;EACC,MAAM;EACN,eAAe;EACf,aAAa;EACb,CACD;CACD,aAAa;EACZ;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;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;CACD,aAAa;EACZ,MAAM;EACN,UAAU;EACV,SAAS;EACT,SAAS;EACT,aAAa;EACb;CACD,WAAW,CAAC,cAAc,QAAQ;CAClC,eAAe;CACf,UAAU,CAAC,mBAAmB;CAE9B,QAAQ,EAAE;CACV,iBAAiB,EAAE;CAEnB,SAAS;CACT,MAAM;EAAC;EAAY;EAAO;EAAQ;EAAQ;EAAU;EAAW;CAC/D,UAAU;CAEV,UAAU,CAAC,cAAc,QAAQ;CACjC,YAAY,EAAE;CACd,eAAe,EAAE;CAEjB,aAAa;CACb,aAAa;CACb"}
@@ -0,0 +1,7 @@
1
+ import { ServiceDefinition } from "../../types.mjs";
2
+
3
+ //#region src/services/definitions/crowdsec.d.ts
4
+ declare const crowdsecDefinition: ServiceDefinition;
5
+ //#endregion
6
+ export { crowdsecDefinition };
7
+ //# sourceMappingURL=crowdsec.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crowdsec.d.mts","names":[],"sources":["../../../src/services/definitions/crowdsec.ts"],"mappings":";;;cAEa,kBAAA,EAAoB,iBAAA"}
@@ -0,0 +1,62 @@
1
+ //#region src/services/definitions/crowdsec.ts
2
+ const crowdsecDefinition = {
3
+ id: "crowdsec",
4
+ name: "CrowdSec",
5
+ description: "Free, open-source and collaborative IPS designed to protect servers, services, and containers.",
6
+ category: "security",
7
+ icon: "⚔️",
8
+ image: "crowdsecurity/crowdsec",
9
+ imageTag: "latest",
10
+ ports: [{
11
+ host: 8080,
12
+ container: 8080,
13
+ description: "CrowdSec Local API Interface",
14
+ exposed: true
15
+ }],
16
+ volumes: [{
17
+ name: "crowdsec_data",
18
+ containerPath: "/v/lib/crowdsec/data",
19
+ description: "CrowdSec persistent SQLite data"
20
+ }, {
21
+ name: "crowdsec_config",
22
+ containerPath: "/etc/crowdsec",
23
+ description: "CrowdSec configurations"
24
+ }],
25
+ environment: [{
26
+ key: "COLLECTIONS",
27
+ defaultValue: "crowdsecurity/linux crowdsecurity/sshd",
28
+ secret: false,
29
+ description: "Default collections to install",
30
+ required: false
31
+ }],
32
+ healthcheck: {
33
+ test: "cscli metrics || exit 1",
34
+ interval: "30s",
35
+ timeout: "10s",
36
+ retries: 3,
37
+ startPeriod: "15s"
38
+ },
39
+ dependsOn: [],
40
+ restartPolicy: "unless-stopped",
41
+ networks: ["openclaw-network"],
42
+ skills: [],
43
+ openclawEnvVars: [],
44
+ docsUrl: "https://docs.crowdsec.net/",
45
+ tags: [
46
+ "ips",
47
+ "ids",
48
+ "firewall",
49
+ "security",
50
+ "threat-intelligence"
51
+ ],
52
+ maturity: "stable",
53
+ requires: [],
54
+ recommends: [],
55
+ conflictsWith: [],
56
+ minMemoryMB: 256,
57
+ gpuRequired: false
58
+ };
59
+
60
+ //#endregion
61
+ export { crowdsecDefinition };
62
+ //# sourceMappingURL=crowdsec.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crowdsec.mjs","names":[],"sources":["../../../src/services/definitions/crowdsec.ts"],"sourcesContent":["import type { ServiceDefinition } from \"../../types.js\";\n\nexport const crowdsecDefinition: ServiceDefinition = {\n\tid: \"crowdsec\",\n\tname: \"CrowdSec\",\n\tdescription:\n\t\t\"Free, open-source and collaborative IPS designed to protect servers, services, and containers.\",\n\tcategory: \"security\",\n\ticon: \"⚔️\",\n\n\timage: \"crowdsecurity/crowdsec\",\n\timageTag: \"latest\",\n\tports: [\n\t\t{\n\t\t\thost: 8080,\n\t\t\tcontainer: 8080,\n\t\t\tdescription: \"CrowdSec Local API Interface\",\n\t\t\texposed: true,\n\t\t},\n\t],\n\tvolumes: [\n\t\t{\n\t\t\tname: \"crowdsec_data\",\n\t\t\tcontainerPath: \"/v/lib/crowdsec/data\",\n\t\t\tdescription: \"CrowdSec persistent SQLite data\",\n\t\t},\n\t\t{\n\t\t\tname: \"crowdsec_config\",\n\t\t\tcontainerPath: \"/etc/crowdsec\",\n\t\t\tdescription: \"CrowdSec configurations\",\n\t\t},\n\t],\n\tenvironment: [\n\t\t{\n\t\t\tkey: \"COLLECTIONS\",\n\t\t\tdefaultValue: \"crowdsecurity/linux crowdsecurity/sshd\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Default collections to install\",\n\t\t\trequired: false,\n\t\t},\n\t],\n\thealthcheck: {\n\t\ttest: \"cscli metrics || 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: [],\n\topenclawEnvVars: [],\n\n\tdocsUrl: \"https://docs.crowdsec.net/\",\n\ttags: [\"ips\", \"ids\", \"firewall\", \"security\", \"threat-intelligence\"],\n\tmaturity: \"stable\",\n\n\trequires: [],\n\trecommends: [],\n\tconflictsWith: [],\n\n\tminMemoryMB: 256,\n\tgpuRequired: false,\n};\n"],"mappings":";AAEA,MAAa,qBAAwC;CACpD,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,CACR;EACC,MAAM;EACN,eAAe;EACf,aAAa;EACb,EACD;EACC,MAAM;EACN,eAAe;EACf,aAAa;EACb,CACD;CACD,aAAa,CACZ;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,EAAE;CACV,iBAAiB,EAAE;CAEnB,SAAS;CACT,MAAM;EAAC;EAAO;EAAO;EAAY;EAAY;EAAsB;CACnE,UAAU;CAEV,UAAU,EAAE;CACZ,YAAY,EAAE;CACd,eAAe,EAAE;CAEjB,aAAa;CACb,aAAa;CACb"}
@@ -0,0 +1,7 @@
1
+ import { ServiceDefinition } from "../../types.mjs";
2
+
3
+ //#region src/services/definitions/ghost.d.ts
4
+ declare const ghostDefinition: ServiceDefinition;
5
+ //#endregion
6
+ export { ghostDefinition };
7
+ //# sourceMappingURL=ghost.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ghost.d.mts","names":[],"sources":["../../../src/services/definitions/ghost.ts"],"mappings":";;;cAEa,eAAA,EAAiB,iBAAA"}
@@ -0,0 +1,58 @@
1
+ //#region src/services/definitions/ghost.ts
2
+ const ghostDefinition = {
3
+ id: "ghost",
4
+ name: "Ghost",
5
+ description: "The world's most popular modern open-source publishing platform.",
6
+ category: "social-media",
7
+ icon: "👻",
8
+ image: "ghost",
9
+ imageTag: "latest",
10
+ ports: [{
11
+ host: 2368,
12
+ container: 2368,
13
+ description: "Ghost Public Interface",
14
+ exposed: true
15
+ }],
16
+ volumes: [{
17
+ name: "ghost_content",
18
+ containerPath: "/var/lib/ghost/content",
19
+ description: "Ghost images, themes, and content storage"
20
+ }],
21
+ environment: [{
22
+ key: "url",
23
+ defaultValue: "http://localhost:2368",
24
+ secret: false,
25
+ description: "The URL of the Ghost install",
26
+ required: true
27
+ }],
28
+ healthcheck: {
29
+ test: "curl --fail http://localhost:2368/ghost/ || exit 1",
30
+ interval: "30s",
31
+ timeout: "10s",
32
+ retries: 3,
33
+ startPeriod: "30s"
34
+ },
35
+ dependsOn: [],
36
+ restartPolicy: "unless-stopped",
37
+ networks: ["openclaw-network"],
38
+ skills: [],
39
+ openclawEnvVars: [],
40
+ docsUrl: "https://ghost.org/docs/",
41
+ tags: [
42
+ "blog",
43
+ "publishing",
44
+ "writing",
45
+ "cms",
46
+ "content"
47
+ ],
48
+ maturity: "stable",
49
+ requires: [],
50
+ recommends: [],
51
+ conflictsWith: [],
52
+ minMemoryMB: 512,
53
+ gpuRequired: false
54
+ };
55
+
56
+ //#endregion
57
+ export { ghostDefinition };
58
+ //# sourceMappingURL=ghost.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ghost.mjs","names":[],"sources":["../../../src/services/definitions/ghost.ts"],"sourcesContent":["import type { ServiceDefinition } from \"../../types.js\";\n\nexport const ghostDefinition: ServiceDefinition = {\n\tid: \"ghost\",\n\tname: \"Ghost\",\n\tdescription: \"The world's most popular modern open-source publishing platform.\",\n\tcategory: \"social-media\",\n\ticon: \"👻\",\n\n\timage: \"ghost\",\n\timageTag: \"latest\",\n\tports: [\n\t\t{\n\t\t\thost: 2368,\n\t\t\tcontainer: 2368,\n\t\t\tdescription: \"Ghost Public Interface\",\n\t\t\texposed: true,\n\t\t},\n\t],\n\tvolumes: [\n\t\t{\n\t\t\tname: \"ghost_content\",\n\t\t\tcontainerPath: \"/var/lib/ghost/content\",\n\t\t\tdescription: \"Ghost images, themes, and content storage\",\n\t\t},\n\t],\n\tenvironment: [\n\t\t{\n\t\t\tkey: \"url\",\n\t\t\tdefaultValue: \"http://localhost:2368\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"The URL of the Ghost install\",\n\t\t\trequired: true,\n\t\t},\n\t],\n\thealthcheck: {\n\t\ttest: \"curl --fail http://localhost:2368/ghost/ || exit 1\",\n\t\tinterval: \"30s\",\n\t\ttimeout: \"10s\",\n\t\tretries: 3,\n\t\tstartPeriod: \"30s\",\n\t},\n\tdependsOn: [],\n\trestartPolicy: \"unless-stopped\",\n\tnetworks: [\"openclaw-network\"],\n\n\tskills: [],\n\topenclawEnvVars: [],\n\n\tdocsUrl: \"https://ghost.org/docs/\",\n\ttags: [\"blog\", \"publishing\", \"writing\", \"cms\", \"content\"],\n\tmaturity: \"stable\",\n\n\trequires: [],\n\trecommends: [],\n\tconflictsWith: [],\n\n\tminMemoryMB: 512,\n\tgpuRequired: false,\n};\n"],"mappings":";AAEA,MAAa,kBAAqC;CACjD,IAAI;CACJ,MAAM;CACN,aAAa;CACb,UAAU;CACV,MAAM;CAEN,OAAO;CACP,UAAU;CACV,OAAO,CACN;EACC,MAAM;EACN,WAAW;EACX,aAAa;EACb,SAAS;EACT,CACD;CACD,SAAS,CACR;EACC,MAAM;EACN,eAAe;EACf,aAAa;EACb,CACD;CACD,aAAa,CACZ;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,EAAE;CACV,iBAAiB,EAAE;CAEnB,SAAS;CACT,MAAM;EAAC;EAAQ;EAAc;EAAW;EAAO;EAAU;CACzD,UAAU;CAEV,UAAU,EAAE;CACZ,YAAY,EAAE;CACd,eAAe,EAAE;CAEjB,aAAa;CACb,aAAa;CACb"}
@@ -0,0 +1,7 @@
1
+ import { ServiceDefinition } from "../../types.mjs";
2
+
3
+ //#region src/services/definitions/homeassistant.d.ts
4
+ declare const homeassistantDefinition: ServiceDefinition;
5
+ //#endregion
6
+ export { homeassistantDefinition };
7
+ //# sourceMappingURL=homeassistant.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"homeassistant.d.mts","names":[],"sources":["../../../src/services/definitions/homeassistant.ts"],"mappings":";;;cAEa,uBAAA,EAAyB,iBAAA"}
@@ -0,0 +1,61 @@
1
+ //#region src/services/definitions/homeassistant.ts
2
+ const homeassistantDefinition = {
3
+ id: "homeassistant",
4
+ name: "Home Assistant",
5
+ description: "Open source home automation that puts local control and privacy first.",
6
+ category: "automation",
7
+ icon: "🏠",
8
+ image: "ghcr.io/home-assistant/home-assistant",
9
+ imageTag: "stable",
10
+ ports: [{
11
+ host: 8123,
12
+ container: 8123,
13
+ description: "Home Assistant Web Interface",
14
+ exposed: true
15
+ }],
16
+ volumes: [{
17
+ name: "homeassistant_config",
18
+ containerPath: "/config",
19
+ description: "Home Assistant configuration directory"
20
+ }, {
21
+ name: "/etc/localtime",
22
+ containerPath: "/etc/localtime",
23
+ description: "Timezone sync"
24
+ }],
25
+ environment: [{
26
+ key: "TZ",
27
+ defaultValue: "UTC",
28
+ secret: false,
29
+ description: "Timezone mapping",
30
+ required: false
31
+ }],
32
+ healthcheck: {
33
+ test: "curl --fail http://localhost:8123/ || exit 1",
34
+ interval: "30s",
35
+ timeout: "10s",
36
+ retries: 3,
37
+ startPeriod: "30s"
38
+ },
39
+ dependsOn: [],
40
+ restartPolicy: "unless-stopped",
41
+ networks: ["openclaw-network"],
42
+ skills: [],
43
+ openclawEnvVars: [],
44
+ docsUrl: "https://www.home-assistant.io/docs/",
45
+ tags: [
46
+ "smarthome",
47
+ "automation",
48
+ "iot",
49
+ "local-first"
50
+ ],
51
+ maturity: "stable",
52
+ requires: [],
53
+ recommends: [],
54
+ conflictsWith: [],
55
+ minMemoryMB: 1024,
56
+ gpuRequired: false
57
+ };
58
+
59
+ //#endregion
60
+ export { homeassistantDefinition };
61
+ //# sourceMappingURL=homeassistant.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"homeassistant.mjs","names":[],"sources":["../../../src/services/definitions/homeassistant.ts"],"sourcesContent":["import type { ServiceDefinition } from \"../../types.js\";\n\nexport const homeassistantDefinition: ServiceDefinition = {\n\tid: \"homeassistant\",\n\tname: \"Home Assistant\",\n\tdescription: \"Open source home automation that puts local control and privacy first.\",\n\tcategory: \"automation\",\n\ticon: \"🏠\",\n\n\timage: \"ghcr.io/home-assistant/home-assistant\",\n\timageTag: \"stable\",\n\tports: [\n\t\t{\n\t\t\thost: 8123,\n\t\t\tcontainer: 8123,\n\t\t\tdescription: \"Home Assistant Web Interface\",\n\t\t\texposed: true,\n\t\t},\n\t],\n\tvolumes: [\n\t\t{\n\t\t\tname: \"homeassistant_config\",\n\t\t\tcontainerPath: \"/config\",\n\t\t\tdescription: \"Home Assistant configuration directory\",\n\t\t},\n\t\t{\n\t\t\tname: \"/etc/localtime\",\n\t\t\tcontainerPath: \"/etc/localtime\",\n\t\t\tdescription: \"Timezone sync\",\n\t\t},\n\t],\n\tenvironment: [\n\t\t{\n\t\t\tkey: \"TZ\",\n\t\t\tdefaultValue: \"UTC\",\n\t\t\tsecret: false,\n\t\t\tdescription: \"Timezone mapping\",\n\t\t\trequired: false,\n\t\t},\n\t],\n\thealthcheck: {\n\t\ttest: \"curl --fail http://localhost:8123/ || exit 1\",\n\t\tinterval: \"30s\",\n\t\ttimeout: \"10s\",\n\t\tretries: 3,\n\t\tstartPeriod: \"30s\",\n\t},\n\tdependsOn: [],\n\trestartPolicy: \"unless-stopped\",\n\tnetworks: [\"openclaw-network\"],\n\n\tskills: [],\n\topenclawEnvVars: [],\n\n\tdocsUrl: \"https://www.home-assistant.io/docs/\",\n\ttags: [\"smarthome\", \"automation\", \"iot\", \"local-first\"],\n\tmaturity: \"stable\",\n\n\trequires: [],\n\trecommends: [],\n\tconflictsWith: [],\n\n\tminMemoryMB: 1024,\n\tgpuRequired: false,\n};\n"],"mappings":";AAEA,MAAa,0BAA6C;CACzD,IAAI;CACJ,MAAM;CACN,aAAa;CACb,UAAU;CACV,MAAM;CAEN,OAAO;CACP,UAAU;CACV,OAAO,CACN;EACC,MAAM;EACN,WAAW;EACX,aAAa;EACb,SAAS;EACT,CACD;CACD,SAAS,CACR;EACC,MAAM;EACN,eAAe;EACf,aAAa;EACb,EACD;EACC,MAAM;EACN,eAAe;EACf,aAAa;EACb,CACD;CACD,aAAa,CACZ;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,EAAE;CACV,iBAAiB,EAAE;CAEnB,SAAS;CACT,MAAM;EAAC;EAAa;EAAc;EAAO;EAAc;CACvD,UAAU;CAEV,UAAU,EAAE;CACZ,YAAY,EAAE;CACd,eAAe,EAAE;CAEjB,aAAa;CACb,aAAa;CACb"}
@@ -0,0 +1,7 @@
1
+ import { ServiceDefinition } from "../../types.mjs";
2
+
3
+ //#region src/services/definitions/immich.d.ts
4
+ declare const immichDefinition: ServiceDefinition;
5
+ //#endregion
6
+ export { immichDefinition };
7
+ //# sourceMappingURL=immich.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"immich.d.mts","names":[],"sources":["../../../src/services/definitions/immich.ts"],"mappings":";;;cAEa,gBAAA,EAAkB,iBAAA"}
@@ -0,0 +1,92 @@
1
+ //#region src/services/definitions/immich.ts
2
+ const immichDefinition = {
3
+ id: "immich",
4
+ name: "Immich",
5
+ description: "High performance self-hosted photo and video management solution.",
6
+ category: "media",
7
+ icon: "📸",
8
+ image: "ghcr.io/immich-app/immich-server",
9
+ imageTag: "release",
10
+ ports: [{
11
+ host: 2283,
12
+ container: 2283,
13
+ description: "Immich Web Interface",
14
+ exposed: true
15
+ }],
16
+ volumes: [{
17
+ name: "immich_upload",
18
+ containerPath: "/usr/src/app/upload",
19
+ description: "Persistent Immich photos/videos storage"
20
+ }, {
21
+ name: "/etc/localtime",
22
+ containerPath: "/etc/localtime",
23
+ description: "Host timezone synchronization"
24
+ }],
25
+ environment: [
26
+ {
27
+ key: "DB_HOSTNAME",
28
+ defaultValue: "postgres",
29
+ secret: false,
30
+ description: "Database hostname",
31
+ required: true
32
+ },
33
+ {
34
+ key: "DB_USERNAME",
35
+ defaultValue: "postgres",
36
+ secret: false,
37
+ description: "Database user",
38
+ required: true
39
+ },
40
+ {
41
+ key: "DB_PASSWORD",
42
+ defaultValue: "postgres",
43
+ secret: true,
44
+ description: "Database password",
45
+ required: true
46
+ },
47
+ {
48
+ key: "DB_DATABASE_NAME",
49
+ defaultValue: "immich",
50
+ secret: false,
51
+ description: "Database name",
52
+ required: true
53
+ },
54
+ {
55
+ key: "REDIS_HOSTNAME",
56
+ defaultValue: "redis",
57
+ secret: false,
58
+ description: "Redis hostname",
59
+ required: true
60
+ }
61
+ ],
62
+ healthcheck: {
63
+ test: "curl --fail http://localhost:2283/api/server-info/ping || exit 1",
64
+ interval: "30s",
65
+ timeout: "10s",
66
+ retries: 3,
67
+ startPeriod: "30s"
68
+ },
69
+ dependsOn: ["postgresql", "redis"],
70
+ restartPolicy: "unless-stopped",
71
+ networks: ["openclaw-network"],
72
+ skills: [],
73
+ openclawEnvVars: [],
74
+ docsUrl: "https://immich.app/docs/overview/introduction",
75
+ tags: [
76
+ "media",
77
+ "photos",
78
+ "videos",
79
+ "gallery",
80
+ "backup"
81
+ ],
82
+ maturity: "stable",
83
+ requires: ["postgresql", "redis"],
84
+ recommends: [],
85
+ conflictsWith: [],
86
+ minMemoryMB: 1024,
87
+ gpuRequired: false
88
+ };
89
+
90
+ //#endregion
91
+ export { immichDefinition };
92
+ //# sourceMappingURL=immich.mjs.map