@better-openclaw/core 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon-stack.cjs +725 -0
- package/dist/addon-stack.cjs.map +1 -0
- package/dist/addon-stack.d.cts +23 -0
- package/dist/addon-stack.d.cts.map +1 -0
- package/dist/addon-stack.d.mts +23 -0
- package/dist/addon-stack.d.mts.map +1 -0
- package/dist/addon-stack.mjs +723 -0
- package/dist/addon-stack.mjs.map +1 -0
- package/dist/addon-stack.test.cjs +461 -0
- package/dist/addon-stack.test.cjs.map +1 -0
- package/dist/addon-stack.test.d.cts +1 -0
- package/dist/addon-stack.test.d.mts +1 -0
- package/dist/addon-stack.test.mjs +461 -0
- package/dist/addon-stack.test.mjs.map +1 -0
- package/dist/bare-metal-partition.test.cjs +20 -20
- package/dist/bare-metal-partition.test.cjs.map +1 -1
- package/dist/bare-metal-partition.test.mjs +2 -2
- package/dist/compose-validation.test.cjs +1 -1
- package/dist/composer.cjs +5 -1
- package/dist/composer.cjs.map +1 -1
- package/dist/composer.d.cts +24 -1
- package/dist/composer.d.cts.map +1 -1
- package/dist/composer.d.mts +24 -1
- package/dist/composer.d.mts.map +1 -1
- package/dist/composer.mjs +1 -1
- package/dist/composer.mjs.map +1 -1
- package/dist/composer.snapshot.test.cjs +20 -20
- package/dist/composer.snapshot.test.cjs.map +1 -1
- package/dist/composer.snapshot.test.mjs +2 -2
- package/dist/composer.test.cjs +54 -54
- package/dist/composer.test.cjs.map +1 -1
- package/dist/composer.test.mjs +2 -2
- package/dist/deployers/strip-host-ports.cjs +1 -1
- package/dist/deployers/strip-host-ports.test.cjs +26 -26
- package/dist/deployers/strip-host-ports.test.cjs.map +1 -1
- package/dist/deployers/strip-host-ports.test.mjs +1 -1
- package/dist/generate.cjs +3 -3
- package/dist/generate.mjs +3 -3
- package/dist/generate.test.cjs +56 -56
- package/dist/generate.test.cjs.map +1 -1
- package/dist/generate.test.mjs +1 -1
- package/dist/generators/bare-metal-install.test.cjs +18 -18
- package/dist/generators/bare-metal-install.test.cjs.map +1 -1
- package/dist/generators/bare-metal-install.test.mjs +1 -1
- package/dist/generators/caddy.test.cjs +13 -13
- package/dist/generators/caddy.test.cjs.map +1 -1
- package/dist/generators/caddy.test.mjs +1 -1
- package/dist/generators/clone-repos.test.cjs +27 -27
- package/dist/generators/clone-repos.test.cjs.map +1 -1
- package/dist/generators/clone-repos.test.mjs +1 -1
- package/dist/generators/env.cjs +1 -1
- package/dist/generators/env.test.cjs +17 -17
- package/dist/generators/env.test.cjs.map +1 -1
- package/dist/generators/env.test.mjs +1 -1
- package/dist/generators/health-check.test.cjs +39 -39
- package/dist/generators/health-check.test.cjs.map +1 -1
- package/dist/generators/health-check.test.mjs +1 -1
- package/dist/generators/postgres-init.cjs +5 -0
- package/dist/generators/postgres-init.cjs.map +1 -1
- package/dist/generators/postgres-init.d.cts.map +1 -1
- package/dist/generators/postgres-init.d.mts.map +1 -1
- package/dist/generators/postgres-init.mjs +5 -0
- package/dist/generators/postgres-init.mjs.map +1 -1
- package/dist/generators/scripts.test.cjs +39 -39
- package/dist/generators/scripts.test.cjs.map +1 -1
- package/dist/generators/scripts.test.mjs +1 -1
- package/dist/generators/skills.cjs +1 -1
- package/dist/generators/skills.d.cts.map +1 -1
- package/dist/generators/skills.d.mts.map +1 -1
- package/dist/generators/skills.mjs +141 -0
- package/dist/generators/skills.mjs.map +1 -1
- package/dist/generators/traefik.test.cjs +32 -32
- package/dist/generators/traefik.test.cjs.map +1 -1
- package/dist/generators/traefik.test.mjs +1 -1
- package/dist/index.cjs +21 -5
- package/dist/index.d.cts +5 -4
- package/dist/index.d.mts +5 -4
- package/dist/index.mjs +7 -6
- package/dist/migrations.test.cjs +16 -16
- package/dist/migrations.test.cjs.map +1 -1
- package/dist/migrations.test.mjs +1 -1
- package/dist/presets/presets.test.cjs +1 -1
- package/dist/presets/registry.test.cjs +14 -14
- package/dist/presets/registry.test.cjs.map +1 -1
- package/dist/presets/registry.test.mjs +1 -1
- package/dist/resolver.test.cjs +95 -95
- package/dist/resolver.test.cjs.map +1 -1
- package/dist/resolver.test.mjs +1 -1
- package/dist/{schema-eX44HhRp.d.mts → schema-BQnZrcw8.d.cts} +300 -2
- package/dist/schema-BQnZrcw8.d.cts.map +1 -0
- package/dist/{schema-tn5RK8CM.d.cts → schema-SBpL0bdI.d.mts} +300 -2
- package/dist/schema-SBpL0bdI.d.mts.map +1 -0
- package/dist/schema.cjs +148 -2
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +2 -2
- package/dist/schema.d.mts +2 -2
- package/dist/schema.mjs +139 -2
- package/dist/schema.mjs.map +1 -1
- package/dist/schema.test.cjs +86 -86
- package/dist/schema.test.cjs.map +1 -1
- package/dist/schema.test.mjs +1 -1
- package/dist/services/definitions/browserless.cjs +4 -1
- package/dist/services/definitions/browserless.cjs.map +1 -1
- package/dist/services/definitions/browserless.mjs +4 -1
- package/dist/services/definitions/browserless.mjs.map +1 -1
- package/dist/services/definitions/burnlink.cjs +142 -0
- package/dist/services/definitions/burnlink.cjs.map +1 -0
- package/dist/services/definitions/burnlink.d.cts +7 -0
- package/dist/services/definitions/burnlink.d.cts.map +1 -0
- package/dist/services/definitions/burnlink.d.mts +7 -0
- package/dist/services/definitions/burnlink.d.mts.map +1 -0
- package/dist/services/definitions/burnlink.mjs +141 -0
- package/dist/services/definitions/burnlink.mjs.map +1 -0
- package/dist/services/definitions/convex.cjs +43 -1
- package/dist/services/definitions/convex.cjs.map +1 -1
- package/dist/services/definitions/convex.mjs +43 -1
- package/dist/services/definitions/convex.mjs.map +1 -1
- package/dist/services/definitions/grafana.cjs +11 -1
- package/dist/services/definitions/grafana.cjs.map +1 -1
- package/dist/services/definitions/grafana.mjs +11 -1
- package/dist/services/definitions/grafana.mjs.map +1 -1
- package/dist/services/definitions/hindsight.cjs +130 -0
- package/dist/services/definitions/hindsight.cjs.map +1 -0
- package/dist/services/definitions/hindsight.d.cts +7 -0
- package/dist/services/definitions/hindsight.d.cts.map +1 -0
- package/dist/services/definitions/hindsight.d.mts +7 -0
- package/dist/services/definitions/hindsight.d.mts.map +1 -0
- package/dist/services/definitions/hindsight.mjs +129 -0
- package/dist/services/definitions/hindsight.mjs.map +1 -0
- package/dist/services/definitions/index.cjs +9 -0
- package/dist/services/definitions/index.cjs.map +1 -1
- package/dist/services/definitions/index.d.cts +4 -1
- package/dist/services/definitions/index.d.cts.map +1 -1
- package/dist/services/definitions/index.d.mts +4 -1
- package/dist/services/definitions/index.d.mts.map +1 -1
- package/dist/services/definitions/index.mjs +7 -1
- package/dist/services/definitions/index.mjs.map +1 -1
- package/dist/services/definitions/meilisearch.cjs +11 -1
- package/dist/services/definitions/meilisearch.cjs.map +1 -1
- package/dist/services/definitions/meilisearch.mjs +11 -1
- package/dist/services/definitions/meilisearch.mjs.map +1 -1
- package/dist/services/definitions/minio.cjs +3 -1
- package/dist/services/definitions/minio.cjs.map +1 -1
- package/dist/services/definitions/minio.mjs +3 -1
- package/dist/services/definitions/minio.mjs.map +1 -1
- package/dist/services/definitions/n8n.cjs +11 -1
- package/dist/services/definitions/n8n.cjs.map +1 -1
- package/dist/services/definitions/n8n.mjs +11 -1
- package/dist/services/definitions/n8n.mjs.map +1 -1
- package/dist/services/definitions/ollama.cjs +3 -1
- package/dist/services/definitions/ollama.cjs.map +1 -1
- package/dist/services/definitions/ollama.mjs +3 -1
- package/dist/services/definitions/ollama.mjs.map +1 -1
- package/dist/services/definitions/opensandbox.cjs +149 -0
- package/dist/services/definitions/opensandbox.cjs.map +1 -0
- package/dist/services/definitions/opensandbox.d.cts +7 -0
- package/dist/services/definitions/opensandbox.d.cts.map +1 -0
- package/dist/services/definitions/opensandbox.d.mts +7 -0
- package/dist/services/definitions/opensandbox.d.mts.map +1 -0
- package/dist/services/definitions/opensandbox.mjs +148 -0
- package/dist/services/definitions/opensandbox.mjs.map +1 -0
- package/dist/services/definitions/qdrant.cjs +3 -1
- package/dist/services/definitions/qdrant.cjs.map +1 -1
- package/dist/services/definitions/qdrant.mjs +3 -1
- package/dist/services/definitions/qdrant.mjs.map +1 -1
- package/dist/services/definitions/searxng.cjs +8 -1
- package/dist/services/definitions/searxng.cjs.map +1 -1
- package/dist/services/definitions/searxng.mjs +8 -1
- package/dist/services/definitions/searxng.mjs.map +1 -1
- package/dist/services/definitions/uptime-kuma.cjs +8 -1
- package/dist/services/definitions/uptime-kuma.cjs.map +1 -1
- package/dist/services/definitions/uptime-kuma.mjs +8 -1
- package/dist/services/definitions/uptime-kuma.mjs.map +1 -1
- package/dist/services/registry.test.cjs +36 -36
- package/dist/services/registry.test.cjs.map +1 -1
- package/dist/services/registry.test.mjs +1 -1
- package/dist/{skills-BlzpHmpH.cjs → skills-BSF7iNa4.cjs} +142 -1
- package/dist/{skills-BlzpHmpH.cjs.map → skills-BSF7iNa4.cjs.map} +1 -1
- package/dist/{vi.2VT5v0um-C_jmO7m2.mjs → test.CTcmp4Su-ClCHJ3FA.mjs} +6793 -6403
- package/dist/test.CTcmp4Su-ClCHJ3FA.mjs.map +1 -0
- package/dist/{vi.2VT5v0um-iVBt6Fyq.cjs → test.CTcmp4Su-DlzTarwH.cjs} +6793 -6403
- package/dist/test.CTcmp4Su-DlzTarwH.cjs.map +1 -0
- package/dist/track-analytics.test.cjs +28 -28
- package/dist/track-analytics.test.cjs.map +1 -1
- package/dist/track-analytics.test.mjs +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +10 -2
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +10 -2
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/validator.cjs +1 -1
- package/dist/validator.test.cjs +15 -15
- package/dist/validator.test.cjs.map +1 -1
- package/dist/validator.test.mjs +2 -2
- package/dist/version-manager.test.cjs +37 -37
- package/dist/version-manager.test.cjs.map +1 -1
- package/dist/version-manager.test.mjs +1 -1
- package/package.json +4 -4
- package/src/__snapshots__/composer.snapshot.test.ts.snap +5 -0
- package/src/addon-stack.test.ts +648 -0
- package/src/addon-stack.ts +1046 -0
- package/src/composer.ts +4 -4
- package/src/generators/postgres-init.ts +2 -0
- package/src/generators/skills.ts +142 -0
- package/src/index.ts +20 -2
- package/src/schema.ts +190 -0
- package/src/services/definitions/browserless.ts +3 -0
- package/src/services/definitions/burnlink.ts +142 -0
- package/src/services/definitions/convex.ts +31 -0
- package/src/services/definitions/grafana.ts +9 -0
- package/src/services/definitions/hindsight.ts +131 -0
- package/src/services/definitions/index.ts +10 -0
- package/src/services/definitions/meilisearch.ts +9 -0
- package/src/services/definitions/minio.ts +2 -0
- package/src/services/definitions/n8n.ts +9 -0
- package/src/services/definitions/ollama.ts +2 -0
- package/src/services/definitions/opensandbox.ts +156 -0
- package/src/services/definitions/qdrant.ts +2 -0
- package/src/services/definitions/searxng.ts +3 -0
- package/src/services/definitions/uptime-kuma.ts +3 -0
- package/src/types.ts +18 -0
- package/dist/schema-eX44HhRp.d.mts.map +0 -1
- package/dist/schema-tn5RK8CM.d.cts.map +0 -1
- package/dist/vi.2VT5v0um-C_jmO7m2.mjs.map +0 -1
- package/dist/vi.2VT5v0um-iVBt6Fyq.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_test_CTcmp4Su = require("./test.CTcmp4Su-DlzTarwH.cjs");
|
|
2
2
|
const require_track_analytics = require("./track-analytics.cjs");
|
|
3
3
|
//#region src/track-analytics.test.ts
|
|
4
4
|
const baseInput = {
|
|
@@ -38,52 +38,52 @@ const baseMetadata = {
|
|
|
38
38
|
],
|
|
39
39
|
generatedAt: "2026-03-09T00:00:00.000Z"
|
|
40
40
|
};
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
require_test_CTcmp4Su.describe("buildAnalyticsPayload", () => {
|
|
42
|
+
require_test_CTcmp4Su.it("builds payload for a preset-based CLI generation", () => {
|
|
43
43
|
const payload = require_track_analytics.buildAnalyticsPayload(baseInput, baseMetadata, "cli", "researcher");
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
require_test_CTcmp4Su.globalExpect(payload.source).toBe("cli");
|
|
45
|
+
require_test_CTcmp4Su.globalExpect(payload.buildMethod).toBe("preset");
|
|
46
|
+
require_test_CTcmp4Su.globalExpect(payload.presetId).toBe("researcher");
|
|
47
|
+
require_test_CTcmp4Su.globalExpect(payload.services).toEqual([
|
|
48
48
|
"postgresql",
|
|
49
49
|
"redis",
|
|
50
50
|
"n8n"
|
|
51
51
|
]);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
require_test_CTcmp4Su.globalExpect(payload.skillPacks).toEqual(["research-agent"]);
|
|
53
|
+
require_test_CTcmp4Su.globalExpect(payload.serviceCount).toBe(5);
|
|
54
|
+
require_test_CTcmp4Su.globalExpect(payload.proxy).toBe("caddy");
|
|
55
|
+
require_test_CTcmp4Su.globalExpect(payload.deployment).toBe("local");
|
|
56
|
+
require_test_CTcmp4Su.globalExpect(payload.deploymentType).toBe("docker");
|
|
57
|
+
require_test_CTcmp4Su.globalExpect(payload.platform).toBe("linux/amd64");
|
|
58
|
+
require_test_CTcmp4Su.globalExpect(payload.gpu).toBe(false);
|
|
59
|
+
require_test_CTcmp4Su.globalExpect(payload.monitoring).toBe(true);
|
|
60
|
+
require_test_CTcmp4Su.globalExpect(payload.hasDomain).toBe(true);
|
|
61
|
+
require_test_CTcmp4Su.globalExpect(payload.openclawImage).toBe("official");
|
|
62
|
+
require_test_CTcmp4Su.globalExpect(payload.estimatedMemoryMB).toBe(2048);
|
|
63
63
|
});
|
|
64
|
-
|
|
64
|
+
require_test_CTcmp4Su.it("sets buildMethod to custom when no presetId", () => {
|
|
65
65
|
const payload = require_track_analytics.buildAnalyticsPayload(baseInput, baseMetadata, "web");
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
require_test_CTcmp4Su.globalExpect(payload.buildMethod).toBe("custom");
|
|
67
|
+
require_test_CTcmp4Su.globalExpect(payload.presetId).toBeNull();
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
require_test_CTcmp4Su.it("sets buildMethod to custom when presetId is null", () => {
|
|
70
70
|
const payload = require_track_analytics.buildAnalyticsPayload(baseInput, baseMetadata, "api", null);
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
require_test_CTcmp4Su.globalExpect(payload.buildMethod).toBe("custom");
|
|
72
|
+
require_test_CTcmp4Su.globalExpect(payload.presetId).toBeNull();
|
|
73
73
|
});
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
require_test_CTcmp4Su.it("sets hasDomain to false when no domain in input", () => {
|
|
75
|
+
require_test_CTcmp4Su.globalExpect(require_track_analytics.buildAnalyticsPayload({
|
|
76
76
|
...baseInput,
|
|
77
77
|
domain: void 0
|
|
78
78
|
}, baseMetadata, "mcp").hasDomain).toBe(false);
|
|
79
79
|
});
|
|
80
|
-
|
|
80
|
+
require_test_CTcmp4Su.it("preserves all source types", () => {
|
|
81
81
|
for (const source of [
|
|
82
82
|
"cli",
|
|
83
83
|
"web",
|
|
84
84
|
"api",
|
|
85
85
|
"mcp"
|
|
86
|
-
])
|
|
86
|
+
]) require_test_CTcmp4Su.globalExpect(require_track_analytics.buildAnalyticsPayload(baseInput, baseMetadata, source).source).toBe(source);
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"track-analytics.test.cjs","names":["describe","buildAnalyticsPayload"],"sources":["../src/track-analytics.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport { buildAnalyticsPayload } from \"./track-analytics.js\";\nimport type { GenerationInput, GenerationMetadata } from \"./types.js\";\n\nconst baseInput: GenerationInput = {\n\tprojectName: \"test-stack\",\n\tservices: [\"postgresql\", \"redis\", \"n8n\"],\n\tskillPacks: [\"research-agent\"],\n\taiProviders: [\"openai\"],\n\tgsdRuntimes: [],\n\tproxy: \"caddy\",\n\tdomain: \"example.com\",\n\tgpu: false,\n\tplatform: \"linux/amd64\",\n\tdeployment: \"local\",\n\tdeploymentType: \"docker\",\n\tgenerateSecrets: true,\n\topenclawVersion: \"latest\",\n\tmonitoring: true,\n\topenclawImage: \"official\",\n\topenclawInstallMethod: \"docker\",\n\thardened: true,\n\tdeployTarget: \"local\",\n};\n\nconst baseMetadata: GenerationMetadata = {\n\tserviceCount: 5,\n\tskillCount: 1,\n\testimatedMemoryMB: 2048,\n\tresolvedServices: [\"postgresql\", \"redis\", \"n8n\", \"caddy\", \"searxng\"],\n\tgeneratedAt: \"2026-03-09T00:00:00.000Z\",\n};\n\ndescribe(\"buildAnalyticsPayload\", () => {\n\tit(\"builds payload for a preset-based CLI generation\", () => {\n\t\tconst payload = buildAnalyticsPayload(baseInput, baseMetadata, \"cli\", \"researcher\");\n\n\t\texpect(payload.source).toBe(\"cli\");\n\t\texpect(payload.buildMethod).toBe(\"preset\");\n\t\texpect(payload.presetId).toBe(\"researcher\");\n\t\texpect(payload.services).toEqual([\"postgresql\", \"redis\", \"n8n\"]);\n\t\texpect(payload.skillPacks).toEqual([\"research-agent\"]);\n\t\texpect(payload.serviceCount).toBe(5);\n\t\texpect(payload.proxy).toBe(\"caddy\");\n\t\texpect(payload.deployment).toBe(\"local\");\n\t\texpect(payload.deploymentType).toBe(\"docker\");\n\t\texpect(payload.platform).toBe(\"linux/amd64\");\n\t\texpect(payload.gpu).toBe(false);\n\t\texpect(payload.monitoring).toBe(true);\n\t\texpect(payload.hasDomain).toBe(true);\n\t\texpect(payload.openclawImage).toBe(\"official\");\n\t\texpect(payload.estimatedMemoryMB).toBe(2048);\n\t});\n\n\tit(\"sets buildMethod to custom when no presetId\", () => {\n\t\tconst payload = buildAnalyticsPayload(baseInput, baseMetadata, \"web\");\n\n\t\texpect(payload.buildMethod).toBe(\"custom\");\n\t\texpect(payload.presetId).toBeNull();\n\t});\n\n\tit(\"sets buildMethod to custom when presetId is null\", () => {\n\t\tconst payload = buildAnalyticsPayload(baseInput, baseMetadata, \"api\", null);\n\n\t\texpect(payload.buildMethod).toBe(\"custom\");\n\t\texpect(payload.presetId).toBeNull();\n\t});\n\n\tit(\"sets hasDomain to false when no domain in input\", () => {\n\t\tconst noDomainInput = { ...baseInput, domain: undefined };\n\t\tconst payload = buildAnalyticsPayload(noDomainInput, baseMetadata, \"mcp\");\n\n\t\texpect(payload.hasDomain).toBe(false);\n\t});\n\n\tit(\"preserves all source types\", () => {\n\t\tfor (const source of [\"cli\", \"web\", \"api\", \"mcp\"] as const) {\n\t\t\tconst payload = buildAnalyticsPayload(baseInput, baseMetadata, source);\n\t\t\texpect(payload.source).toBe(source);\n\t\t}\n\t});\n});\n"],"mappings":";;;AAIA,MAAM,YAA6B;CAClC,aAAa;CACb,UAAU;EAAC;EAAc;EAAS;EAAM;CACxC,YAAY,CAAC,iBAAiB;CAC9B,aAAa,CAAC,SAAS;CACvB,aAAa,EAAE;CACf,OAAO;CACP,QAAQ;CACR,KAAK;CACL,UAAU;CACV,YAAY;CACZ,gBAAgB;CAChB,iBAAiB;CACjB,iBAAiB;CACjB,YAAY;CACZ,eAAe;CACf,uBAAuB;CACvB,UAAU;CACV,cAAc;CACd;AAED,MAAM,eAAmC;CACxC,cAAc;CACd,YAAY;CACZ,mBAAmB;CACnB,kBAAkB;EAAC;EAAc;EAAS;EAAO;EAAS;EAAU;CACpE,aAAa;CACb;AAEDA,
|
|
1
|
+
{"version":3,"file":"track-analytics.test.cjs","names":["describe","buildAnalyticsPayload"],"sources":["../src/track-analytics.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport { buildAnalyticsPayload } from \"./track-analytics.js\";\nimport type { GenerationInput, GenerationMetadata } from \"./types.js\";\n\nconst baseInput: GenerationInput = {\n\tprojectName: \"test-stack\",\n\tservices: [\"postgresql\", \"redis\", \"n8n\"],\n\tskillPacks: [\"research-agent\"],\n\taiProviders: [\"openai\"],\n\tgsdRuntimes: [],\n\tproxy: \"caddy\",\n\tdomain: \"example.com\",\n\tgpu: false,\n\tplatform: \"linux/amd64\",\n\tdeployment: \"local\",\n\tdeploymentType: \"docker\",\n\tgenerateSecrets: true,\n\topenclawVersion: \"latest\",\n\tmonitoring: true,\n\topenclawImage: \"official\",\n\topenclawInstallMethod: \"docker\",\n\thardened: true,\n\tdeployTarget: \"local\",\n};\n\nconst baseMetadata: GenerationMetadata = {\n\tserviceCount: 5,\n\tskillCount: 1,\n\testimatedMemoryMB: 2048,\n\tresolvedServices: [\"postgresql\", \"redis\", \"n8n\", \"caddy\", \"searxng\"],\n\tgeneratedAt: \"2026-03-09T00:00:00.000Z\",\n};\n\ndescribe(\"buildAnalyticsPayload\", () => {\n\tit(\"builds payload for a preset-based CLI generation\", () => {\n\t\tconst payload = buildAnalyticsPayload(baseInput, baseMetadata, \"cli\", \"researcher\");\n\n\t\texpect(payload.source).toBe(\"cli\");\n\t\texpect(payload.buildMethod).toBe(\"preset\");\n\t\texpect(payload.presetId).toBe(\"researcher\");\n\t\texpect(payload.services).toEqual([\"postgresql\", \"redis\", \"n8n\"]);\n\t\texpect(payload.skillPacks).toEqual([\"research-agent\"]);\n\t\texpect(payload.serviceCount).toBe(5);\n\t\texpect(payload.proxy).toBe(\"caddy\");\n\t\texpect(payload.deployment).toBe(\"local\");\n\t\texpect(payload.deploymentType).toBe(\"docker\");\n\t\texpect(payload.platform).toBe(\"linux/amd64\");\n\t\texpect(payload.gpu).toBe(false);\n\t\texpect(payload.monitoring).toBe(true);\n\t\texpect(payload.hasDomain).toBe(true);\n\t\texpect(payload.openclawImage).toBe(\"official\");\n\t\texpect(payload.estimatedMemoryMB).toBe(2048);\n\t});\n\n\tit(\"sets buildMethod to custom when no presetId\", () => {\n\t\tconst payload = buildAnalyticsPayload(baseInput, baseMetadata, \"web\");\n\n\t\texpect(payload.buildMethod).toBe(\"custom\");\n\t\texpect(payload.presetId).toBeNull();\n\t});\n\n\tit(\"sets buildMethod to custom when presetId is null\", () => {\n\t\tconst payload = buildAnalyticsPayload(baseInput, baseMetadata, \"api\", null);\n\n\t\texpect(payload.buildMethod).toBe(\"custom\");\n\t\texpect(payload.presetId).toBeNull();\n\t});\n\n\tit(\"sets hasDomain to false when no domain in input\", () => {\n\t\tconst noDomainInput = { ...baseInput, domain: undefined };\n\t\tconst payload = buildAnalyticsPayload(noDomainInput, baseMetadata, \"mcp\");\n\n\t\texpect(payload.hasDomain).toBe(false);\n\t});\n\n\tit(\"preserves all source types\", () => {\n\t\tfor (const source of [\"cli\", \"web\", \"api\", \"mcp\"] as const) {\n\t\t\tconst payload = buildAnalyticsPayload(baseInput, baseMetadata, source);\n\t\t\texpect(payload.source).toBe(source);\n\t\t}\n\t});\n});\n"],"mappings":";;;AAIA,MAAM,YAA6B;CAClC,aAAa;CACb,UAAU;EAAC;EAAc;EAAS;EAAM;CACxC,YAAY,CAAC,iBAAiB;CAC9B,aAAa,CAAC,SAAS;CACvB,aAAa,EAAE;CACf,OAAO;CACP,QAAQ;CACR,KAAK;CACL,UAAU;CACV,YAAY;CACZ,gBAAgB;CAChB,iBAAiB;CACjB,iBAAiB;CACjB,YAAY;CACZ,eAAe;CACf,uBAAuB;CACvB,UAAU;CACV,cAAc;CACd;AAED,MAAM,eAAmC;CACxC,cAAc;CACd,YAAY;CACZ,mBAAmB;CACnB,kBAAkB;EAAC;EAAc;EAAS;EAAO;EAAS;EAAU;CACpE,aAAa;CACb;AAEDA,sBAAAA,SAAS,+BAA+B;AACvC,uBAAA,GAAG,0DAA0D;EAC5D,MAAM,UAAUC,wBAAAA,sBAAsB,WAAW,cAAc,OAAO,aAAa;AAEnF,wBAAA,aAAO,QAAQ,OAAO,CAAC,KAAK,MAAM;AAClC,wBAAA,aAAO,QAAQ,YAAY,CAAC,KAAK,SAAS;AAC1C,wBAAA,aAAO,QAAQ,SAAS,CAAC,KAAK,aAAa;AAC3C,wBAAA,aAAO,QAAQ,SAAS,CAAC,QAAQ;GAAC;GAAc;GAAS;GAAM,CAAC;AAChE,wBAAA,aAAO,QAAQ,WAAW,CAAC,QAAQ,CAAC,iBAAiB,CAAC;AACtD,wBAAA,aAAO,QAAQ,aAAa,CAAC,KAAK,EAAE;AACpC,wBAAA,aAAO,QAAQ,MAAM,CAAC,KAAK,QAAQ;AACnC,wBAAA,aAAO,QAAQ,WAAW,CAAC,KAAK,QAAQ;AACxC,wBAAA,aAAO,QAAQ,eAAe,CAAC,KAAK,SAAS;AAC7C,wBAAA,aAAO,QAAQ,SAAS,CAAC,KAAK,cAAc;AAC5C,wBAAA,aAAO,QAAQ,IAAI,CAAC,KAAK,MAAM;AAC/B,wBAAA,aAAO,QAAQ,WAAW,CAAC,KAAK,KAAK;AACrC,wBAAA,aAAO,QAAQ,UAAU,CAAC,KAAK,KAAK;AACpC,wBAAA,aAAO,QAAQ,cAAc,CAAC,KAAK,WAAW;AAC9C,wBAAA,aAAO,QAAQ,kBAAkB,CAAC,KAAK,KAAK;GAC3C;AAEF,uBAAA,GAAG,qDAAqD;EACvD,MAAM,UAAUA,wBAAAA,sBAAsB,WAAW,cAAc,MAAM;AAErE,wBAAA,aAAO,QAAQ,YAAY,CAAC,KAAK,SAAS;AAC1C,wBAAA,aAAO,QAAQ,SAAS,CAAC,UAAU;GAClC;AAEF,uBAAA,GAAG,0DAA0D;EAC5D,MAAM,UAAUA,wBAAAA,sBAAsB,WAAW,cAAc,OAAO,KAAK;AAE3E,wBAAA,aAAO,QAAQ,YAAY,CAAC,KAAK,SAAS;AAC1C,wBAAA,aAAO,QAAQ,SAAS,CAAC,UAAU;GAClC;AAEF,uBAAA,GAAG,yDAAyD;AAI3D,wBAAA,aAFgBA,wBAAAA,sBADM;GAAE,GAAG;GAAW,QAAQ,KAAA;GAAW,EACJ,cAAc,MAAM,CAE1D,UAAU,CAAC,KAAK,MAAM;GACpC;AAEF,uBAAA,GAAG,oCAAoC;AACtC,OAAK,MAAM,UAAU;GAAC;GAAO;GAAO;GAAO;GAAM,CAEhD,uBAAA,aADgBA,wBAAAA,sBAAsB,WAAW,cAAc,OAAO,CACvD,OAAO,CAAC,KAAK,OAAO;GAEnC;EACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as describe, r as it, t as globalExpect } from "./
|
|
1
|
+
import { n as describe, r as it, t as globalExpect } from "./test.CTcmp4Su-ClCHJ3FA.mjs";
|
|
2
2
|
import { buildAnalyticsPayload } from "./track-analytics.mjs";
|
|
3
3
|
//#region src/track-analytics.test.ts
|
|
4
4
|
const baseInput = {
|
package/dist/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs","names":[],"sources":["../src/types.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type {\n\tAddedDependencySchema,\n\tAiProviderSchema,\n\tApiErrorSchema,\n\tBuildContextSchema,\n\tComposeOptionsSchema,\n\tDeploymentTargetSchema,\n\tDeploymentTypeSchema,\n\tDeploySchema,\n\tDeployTargetSchema,\n\tEnvVariableSchema,\n\tErrorSchema,\n\tGenerationInputSchema,\n\tGitSourceSchema,\n\tGsdRuntimeSchema,\n\tHealthCheckSchema,\n\tMaturitySchema,\n\tNativePlatformSchema,\n\tNativeRecipeSchema,\n\tOpenclawImageVariantSchema,\n\tOpenclawInstallMethodSchema,\n\tOutputFormatSchema,\n\tPlatformSchema,\n\tPortMappingSchema,\n\tPresetSchema,\n\tProxyTypeSchema,\n\tResolvedServiceSchema,\n\tResolverOutputSchema,\n\tResourceLimitsSchema,\n\tRestartPolicySchema,\n\tServiceCategorySchema,\n\tServiceDefinitionSchema,\n\tSkillBindingSchema,\n\tSkillPackSchema,\n\tValidateRequestSchema,\n\tValidateResponseSchema,\n\tVolumeMappingSchema,\n\tWarningSchema,\n} from \"./schema.js\";\n\n// ─── Inferred Types ─────────────────────────────────────────────────────────\n\nexport type AiProvider = z.infer<typeof AiProviderSchema>;\nexport type GsdRuntime = z.infer<typeof GsdRuntimeSchema>;\nexport type ServiceCategory = z.infer<typeof ServiceCategorySchema>;\nexport type Maturity = z.infer<typeof MaturitySchema>;\nexport type Platform = z.infer<typeof PlatformSchema>;\nexport type RestartPolicy = z.infer<typeof RestartPolicySchema>;\nexport type ProxyType = z.infer<typeof ProxyTypeSchema>;\nexport type DeploymentTarget = z.infer<typeof DeploymentTargetSchema>;\nexport type DeploymentType = z.infer<typeof DeploymentTypeSchema>;\nexport type NativePlatform = z.infer<typeof NativePlatformSchema>;\nexport type NativeRecipe = z.infer<typeof NativeRecipeSchema>;\nexport type GitSource = z.infer<typeof GitSourceSchema>;\nexport type BuildContext = z.infer<typeof BuildContextSchema>;\nexport type OutputFormat = z.infer<typeof OutputFormatSchema>;\nexport type OpenclawImageVariant = z.infer<typeof OpenclawImageVariantSchema>;\nexport type OpenclawInstallMethod = z.infer<typeof OpenclawInstallMethodSchema>;\nexport type DeployTarget = z.infer<typeof DeployTargetSchema>;\n\nexport type PortMapping = z.infer<typeof PortMappingSchema>;\nexport type VolumeMapping = z.infer<typeof VolumeMappingSchema>;\nexport type EnvVariable = z.infer<typeof EnvVariableSchema>;\nexport type HealthCheck = z.infer<typeof HealthCheckSchema>;\nexport type ResourceLimits = z.infer<typeof ResourceLimitsSchema>;\nexport type Deploy = z.infer<typeof DeploySchema>;\nexport type SkillBinding = z.infer<typeof SkillBindingSchema>;\n\nexport type ServiceDefinition = z.infer<typeof ServiceDefinitionSchema>;\nexport type SkillPack = z.infer<typeof SkillPackSchema>;\nexport type Preset = z.infer<typeof PresetSchema>;\n\nexport type GenerationInput = z.infer<typeof GenerationInputSchema>;\nexport type ComposeOptions = z.infer<typeof ComposeOptionsSchema> & {\n\t/** Dynamic Traefik labels per service, computed by the Traefik generator. */\n\ttraefikLabels?: Map<string, Record<string, string>>;\n};\nexport type ResolvedService = z.infer<typeof ResolvedServiceSchema>;\nexport type AddedDependency = z.infer<typeof AddedDependencySchema>;\nexport type Warning = z.infer<typeof WarningSchema>;\nexport type ResolverError = z.infer<typeof ErrorSchema>;\nexport type ResolverOutput = z.infer<typeof ResolverOutputSchema>;\n\nexport type ValidateRequest = z.infer<typeof ValidateRequestSchema>;\nexport type ValidateResponse = z.infer<typeof ValidateResponseSchema>;\nexport type ApiError = z.infer<typeof ApiErrorSchema>;\n\n// ─── Additional Types ───────────────────────────────────────────────────────\n\nexport interface ResolverInput {\n\tservices: string[];\n\tskillPacks: string[];\n\taiProviders?: AiProvider[];\n\tgsdRuntimes?: GsdRuntime[];\n\tproxy?: ProxyType;\n\tgpu?: boolean;\n\tplatform?: Platform;\n\tdeployment?: DeploymentType;\n\tdeploymentType?: DeploymentType;\n\tmonitoring?: boolean;\n\tmemoryThresholds?: { info: number; warning: number; critical: number };\n}\n\nexport interface GeneratedFiles {\n\t[path: string]: string;\n}\n\nexport interface GenerationMetadata {\n\tserviceCount: number;\n\tskillCount: number;\n\testimatedMemoryMB: number;\n\tresolvedServices: string[];\n\tgeneratedAt: string;\n}\n\nexport interface GenerationResult {\n\tfiles: GeneratedFiles;\n\tmetadata: GenerationMetadata;\n}\n\nexport interface CategoryInfo {\n\tid: ServiceCategory;\n\tname: string;\n\tdescription?: string;\n\tlabel?: string;\n\ticon: string;\n}\n\nexport const SERVICE_CATEGORIES: CategoryInfo[] = [\n\t{\n\t\tid: \"coding-agent\",\n\t\tname: \"AI Coding Agents\",\n\t\tdescription: \"AI Coding Agents\",\n\t\tlabel: \"AI Coding Agents\",\n\t\ticon: \"💻\",\n\t},\n\t{\n\t\tid: \"ai-platform\",\n\t\tname: \"AI Platforms & Chat UIs\",\n\t\tdescription: \"AI Platforms & Chat UIs\",\n\t\tlabel: \"AI Platforms & Chat UIs\",\n\t\ticon: \"🧪\",\n\t},\n\t{\n\t\tid: \"ai\",\n\t\tname: \"AI / Local Models\",\n\t\tdescription: \"AI / Local Models\",\n\t\tlabel: \"AI / Local Models\",\n\t\ticon: \"🤖\",\n\t},\n\t{\n\t\tid: \"automation\",\n\t\tname: \"Automation & Workflows\",\n\t\tdescription: \"Automation & Workflows\",\n\t\tlabel: \"Automation & Workflows\",\n\t\ticon: \"🔄\",\n\t},\n\t{\n\t\tid: \"vector-db\",\n\t\tname: \"Vector Databases\",\n\t\tdescription: \"Vector Databases\",\n\t\tlabel: \"Vector Databases\",\n\t\ticon: \"🧠\",\n\t},\n\t{\n\t\tid: \"media\",\n\t\tname: \"Media & Video\",\n\t\tdescription: \"Media & Video\",\n\t\tlabel: \"Media & Video\",\n\t\ticon: \"🎬\",\n\t},\n\t{\n\t\tid: \"social-media\",\n\t\tname: \"Social Media\",\n\t\tdescription: \"Social Media\",\n\t\tlabel: \"Social Media\",\n\t\ticon: \"📱\",\n\t},\n\t{\n\t\tid: \"analytics\",\n\t\tname: \"Analytics\",\n\t\tdescription: \"Analytics\",\n\t\tlabel: \"Analytics\",\n\t\ticon: \"📊\",\n\t},\n\t{\n\t\tid: \"knowledge\",\n\t\tname: \"Knowledge & Documents\",\n\t\tdescription: \"Knowledge & Documents\",\n\t\tlabel: \"Knowledge & Documents\",\n\t\ticon: \"📚\",\n\t},\n\t{\n\t\tid: \"storage\",\n\t\tname: \"Object Storage\",\n\t\tdescription: \"Object Storage\",\n\t\tlabel: \"Object Storage\",\n\t\ticon: \"💾\",\n\t},\n\t{\n\t\tid: \"database\",\n\t\tname: \"Databases & Caching\",\n\t\tdescription: \"Databases & Caching\",\n\t\tlabel: \"Databases & Caching\",\n\t\ticon: \"🗄️\",\n\t},\n\t{\n\t\tid: \"dev-tools\",\n\t\tname: \"Developer Tools\",\n\t\tdescription: \"Developer Tools\",\n\t\tlabel: \"Developer Tools\",\n\t\ticon: \"🛠️\",\n\t},\n\t{\n\t\tid: \"proxy\",\n\t\tname: \"Reverse Proxy\",\n\t\tdescription: \"Reverse Proxy\",\n\t\tlabel: \"Reverse Proxy\",\n\t\ticon: \"🌐\",\n\t},\n\t{\n\t\tid: \"monitoring\",\n\t\tname: \"Monitoring\",\n\t\tdescription: \"Monitoring\",\n\t\tlabel: \"Monitoring\",\n\t\ticon: \"📡\",\n\t},\n\t{\n\t\tid: \"browser\",\n\t\tname: \"Browser Automation\",\n\t\tdescription: \"Browser Automation\",\n\t\tlabel: \"Browser Automation\",\n\t\ticon: \"🌐\",\n\t},\n\t{\n\t\tid: \"search\",\n\t\tname: \"Search\",\n\t\tdescription: \"Search\",\n\t\tlabel: \"Search\",\n\t\ticon: \"🔍\",\n\t},\n\t{\n\t\tid: \"communication\",\n\t\tname: \"Notifications\",\n\t\tdescription: \"Notifications\",\n\t\tlabel: \"Notifications\",\n\t\ticon: \"🔔\",\n\t},\n\t{\n\t\tid: \"desktop\",\n\t\tname: \"Desktop Environment\",\n\t\tdescription: \"Desktop Environment\",\n\t\tlabel: \"Desktop Environment\",\n\t\ticon: \"🖥️\",\n\t},\n\t{\n\t\tid: \"streaming\",\n\t\tname: \"Streaming & Relay\",\n\t\tdescription: \"Streaming & Relay\",\n\t\tlabel: \"Streaming & Relay\",\n\t\ticon: \"📺\",\n\t},\n\t{\n\t\tid: \"security\",\n\t\tname: \"Security & Pentesting\",\n\t\tdescription: \"Security & Pentesting\",\n\t\tlabel: \"Security & Pentesting\",\n\t\ticon: \"🛡️\",\n\t},\n\t{\n\t\tid: \"billing\",\n\t\tname: \"Billing & Payments\",\n\t\tdescription: \"Billing & Payments\",\n\t\tlabel: \"Billing & Payments\",\n\t\ticon: \"💳\",\n\t},\n\t{\n\t\tid: \"crm\",\n\t\tname: \"CRM & Customer Management\",\n\t\tdescription: \"CRM & Customer Management\",\n\t\tlabel: \"CRM & Customer Management\",\n\t\ticon: \"🤝\",\n\t},\n\t{\n\t\tid: \"email-marketing\",\n\t\tname: \"Email & Marketing\",\n\t\tdescription: \"Email & Marketing\",\n\t\tlabel: \"Email & Marketing\",\n\t\ticon: \"📧\",\n\t},\n\t{\n\t\tid: \"forms\",\n\t\tname: \"Forms & Surveys\",\n\t\tdescription: \"Forms & Surveys\",\n\t\tlabel: \"Forms & Surveys\",\n\t\ticon: \"📋\",\n\t},\n\t{\n\t\tid: \"api-gateway\",\n\t\tname: \"API Management\",\n\t\tdescription: \"API Management\",\n\t\tlabel: \"API Management\",\n\t\ticon: \"🔌\",\n\t},\n\t{\n\t\tid: \"backup\",\n\t\tname: \"Backup & Recovery\",\n\t\tdescription: \"Backup & Recovery\",\n\t\tlabel: \"Backup & Recovery\",\n\t\ticon: \"💾\",\n\t},\n\t{\n\t\tid: \"voice\",\n\t\tname: \"Voice & Telephony\",\n\t\tdescription: \"Voice & Telephony\",\n\t\tlabel: \"Voice & Telephony\",\n\t\ticon: \"📞\",\n\t},\n\t{\n\t\tid: \"ecommerce\",\n\t\tname: \"E-Commerce\",\n\t\tdescription: \"E-Commerce\",\n\t\tlabel: \"E-Commerce\",\n\t\ticon: \"🛒\",\n\t},\n\t{\n\t\tid: \"collaboration\",\n\t\tname: \"Real-Time Collaboration\",\n\t\tdescription: \"Real-Time Collaboration\",\n\t\tlabel: \"Real-Time Collaboration\",\n\t\ticon: \"✏️\",\n\t},\n\t{\n\t\tid: \"ai-observability\",\n\t\tname: \"AI Observability\",\n\t\tdescription: \"AI Observability\",\n\t\tlabel: \"AI Observability\",\n\t\ticon: \"🔭\",\n\t},\n\t{\n\t\tid: \"fine-tuning\",\n\t\tname: \"AI Fine-Tuning\",\n\t\tdescription: \"AI Fine-Tuning\",\n\t\tlabel: \"AI Fine-Tuning\",\n\t\ticon: \"🎯\",\n\t},\n\t{\n\t\tid: \"project-management\",\n\t\tname: \"Project Management\",\n\t\tdescription: \"Project Management\",\n\t\tlabel: \"Project Management\",\n\t\ticon: \"📋\",\n\t},\n\t{\n\t\tid: \"business-intelligence\",\n\t\tname: \"Business Intelligence\",\n\t\tdescription: \"Business Intelligence\",\n\t\tlabel: \"Business Intelligence\",\n\t\ticon: \"📈\",\n\t},\n\t{\n\t\tid: \"dns-networking\",\n\t\tname: \"DNS & Networking\",\n\t\tdescription: \"DNS & Networking\",\n\t\tlabel: \"DNS & Networking\",\n\t\ticon: \"🌐\",\n\t},\n\t{\n\t\tid: \"iot\",\n\t\tname: \"IoT & Edge\",\n\t\tdescription: \"IoT & Edge\",\n\t\tlabel: \"IoT & Edge\",\n\t\ticon: \"📡\",\n\t},\n\t{\n\t\tid: \"saas-boilerplate\",\n\t\tname: \"SaaS Boilerplates\",\n\t\tdescription: \"Full-stack SaaS starter kits and boilerplates\",\n\t\tlabel: \"SaaS Boilerplates\",\n\t\ticon: \"🚀\",\n\t},\n];\n"],"mappings":";;AAiIA,MAAa,qBAAqC;CACjD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD"}
|
|
1
|
+
{"version":3,"file":"types.cjs","names":[],"sources":["../src/types.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type {\n\tAddonStackInputSchema,\n\tAddonStackResultSchema,\n\tAddonStackUpdateInputSchema,\n\tAddonStackUpdateResultSchema,\n\tAddedDependencySchema,\n\tAiProviderSchema,\n\tApiErrorSchema,\n\tBuildContextSchema,\n\tComposeOptionsSchema,\n\tDeploymentTargetSchema,\n\tDeploymentTypeSchema,\n\tDeploySchema,\n\tDeployTargetSchema,\n\tEnvQuirkFixSchema,\n\tEnvQuirkSchema,\n\tEnvVariableSchema,\n\tErrorSchema,\n\tGenerationInputSchema,\n\tGitSourceSchema,\n\tGsdRuntimeSchema,\n\tHealthCheckSchema,\n\tMaturitySchema,\n\tNativePlatformSchema,\n\tNativeRecipeSchema,\n\tOpenclawImageVariantSchema,\n\tOpenclawInstallMethodSchema,\n\tOutputFormatSchema,\n\tPlatformSchema,\n\tPortMappingSchema,\n\tPresetSchema,\n\tProxyRouteSchema,\n\tProxyTypeSchema,\n\tResolvedServiceSchema,\n\tResolverOutputSchema,\n\tResourceLimitsSchema,\n\tRestartPolicySchema,\n\tServiceCategorySchema,\n\tServiceDefinitionSchema,\n\tSkillBindingSchema,\n\tSkillPackSchema,\n\tSkippedServiceSchema,\n\tValidateRequestSchema,\n\tValidateResponseSchema,\n\tVolumeMappingSchema,\n\tWarningSchema,\n} from \"./schema.js\";\n\n// ─── Inferred Types ─────────────────────────────────────────────────────────\n\nexport type AiProvider = z.infer<typeof AiProviderSchema>;\nexport type GsdRuntime = z.infer<typeof GsdRuntimeSchema>;\nexport type ServiceCategory = z.infer<typeof ServiceCategorySchema>;\nexport type Maturity = z.infer<typeof MaturitySchema>;\nexport type Platform = z.infer<typeof PlatformSchema>;\nexport type RestartPolicy = z.infer<typeof RestartPolicySchema>;\nexport type ProxyType = z.infer<typeof ProxyTypeSchema>;\nexport type DeploymentTarget = z.infer<typeof DeploymentTargetSchema>;\nexport type DeploymentType = z.infer<typeof DeploymentTypeSchema>;\nexport type NativePlatform = z.infer<typeof NativePlatformSchema>;\nexport type NativeRecipe = z.infer<typeof NativeRecipeSchema>;\nexport type GitSource = z.infer<typeof GitSourceSchema>;\nexport type BuildContext = z.infer<typeof BuildContextSchema>;\nexport type OutputFormat = z.infer<typeof OutputFormatSchema>;\nexport type OpenclawImageVariant = z.infer<typeof OpenclawImageVariantSchema>;\nexport type OpenclawInstallMethod = z.infer<typeof OpenclawInstallMethodSchema>;\nexport type DeployTarget = z.infer<typeof DeployTargetSchema>;\n\nexport type PortMapping = z.infer<typeof PortMappingSchema>;\nexport type VolumeMapping = z.infer<typeof VolumeMappingSchema>;\nexport type EnvVariable = z.infer<typeof EnvVariableSchema>;\nexport type HealthCheck = z.infer<typeof HealthCheckSchema>;\nexport type ResourceLimits = z.infer<typeof ResourceLimitsSchema>;\nexport type Deploy = z.infer<typeof DeploySchema>;\nexport type SkillBinding = z.infer<typeof SkillBindingSchema>;\n\nexport type ServiceDefinition = z.infer<typeof ServiceDefinitionSchema>;\nexport type SkillPack = z.infer<typeof SkillPackSchema>;\nexport type Preset = z.infer<typeof PresetSchema>;\n\nexport type GenerationInput = z.infer<typeof GenerationInputSchema>;\nexport type ComposeOptions = z.infer<typeof ComposeOptionsSchema> & {\n\t/** Dynamic Traefik labels per service, computed by the Traefik generator. */\n\ttraefikLabels?: Map<string, Record<string, string>>;\n};\nexport type ResolvedService = z.infer<typeof ResolvedServiceSchema>;\nexport type AddedDependency = z.infer<typeof AddedDependencySchema>;\nexport type Warning = z.infer<typeof WarningSchema>;\nexport type ResolverError = z.infer<typeof ErrorSchema>;\nexport type ResolverOutput = z.infer<typeof ResolverOutputSchema>;\n\nexport type ValidateRequest = z.infer<typeof ValidateRequestSchema>;\nexport type ValidateResponse = z.infer<typeof ValidateResponseSchema>;\nexport type ApiError = z.infer<typeof ApiErrorSchema>;\n\n// Addon Stack (Clawexa)\nexport type EnvQuirkFix = z.infer<typeof EnvQuirkFixSchema>;\nexport type EnvQuirk = z.infer<typeof EnvQuirkSchema>;\nexport type ProxyRoute = z.infer<typeof ProxyRouteSchema>;\nexport type SkippedService = z.infer<typeof SkippedServiceSchema>;\nexport type AddonStackInput = z.infer<typeof AddonStackInputSchema>;\nexport type AddonStackResult = z.infer<typeof AddonStackResultSchema>;\nexport type AddonStackUpdateInput = z.infer<typeof AddonStackUpdateInputSchema>;\nexport type AddonStackUpdateResult = z.infer<typeof AddonStackUpdateResultSchema>;\n\n// ─── Additional Types ───────────────────────────────────────────────────────\n\nexport interface ResolverInput {\n\tservices: string[];\n\tskillPacks: string[];\n\taiProviders?: AiProvider[];\n\tgsdRuntimes?: GsdRuntime[];\n\tproxy?: ProxyType;\n\tgpu?: boolean;\n\tplatform?: Platform;\n\tdeployment?: DeploymentType;\n\tdeploymentType?: DeploymentType;\n\tmonitoring?: boolean;\n\tmemoryThresholds?: { info: number; warning: number; critical: number };\n}\n\nexport interface GeneratedFiles {\n\t[path: string]: string;\n}\n\nexport interface GenerationMetadata {\n\tserviceCount: number;\n\tskillCount: number;\n\testimatedMemoryMB: number;\n\tresolvedServices: string[];\n\tgeneratedAt: string;\n}\n\nexport interface GenerationResult {\n\tfiles: GeneratedFiles;\n\tmetadata: GenerationMetadata;\n}\n\nexport interface CategoryInfo {\n\tid: ServiceCategory;\n\tname: string;\n\tdescription?: string;\n\tlabel?: string;\n\ticon: string;\n}\n\nexport const SERVICE_CATEGORIES: CategoryInfo[] = [\n\t{\n\t\tid: \"coding-agent\",\n\t\tname: \"AI Coding Agents\",\n\t\tdescription: \"AI Coding Agents\",\n\t\tlabel: \"AI Coding Agents\",\n\t\ticon: \"💻\",\n\t},\n\t{\n\t\tid: \"ai-platform\",\n\t\tname: \"AI Platforms & Chat UIs\",\n\t\tdescription: \"AI Platforms & Chat UIs\",\n\t\tlabel: \"AI Platforms & Chat UIs\",\n\t\ticon: \"🧪\",\n\t},\n\t{\n\t\tid: \"ai\",\n\t\tname: \"AI / Local Models\",\n\t\tdescription: \"AI / Local Models\",\n\t\tlabel: \"AI / Local Models\",\n\t\ticon: \"🤖\",\n\t},\n\t{\n\t\tid: \"automation\",\n\t\tname: \"Automation & Workflows\",\n\t\tdescription: \"Automation & Workflows\",\n\t\tlabel: \"Automation & Workflows\",\n\t\ticon: \"🔄\",\n\t},\n\t{\n\t\tid: \"vector-db\",\n\t\tname: \"Vector Databases\",\n\t\tdescription: \"Vector Databases\",\n\t\tlabel: \"Vector Databases\",\n\t\ticon: \"🧠\",\n\t},\n\t{\n\t\tid: \"media\",\n\t\tname: \"Media & Video\",\n\t\tdescription: \"Media & Video\",\n\t\tlabel: \"Media & Video\",\n\t\ticon: \"🎬\",\n\t},\n\t{\n\t\tid: \"social-media\",\n\t\tname: \"Social Media\",\n\t\tdescription: \"Social Media\",\n\t\tlabel: \"Social Media\",\n\t\ticon: \"📱\",\n\t},\n\t{\n\t\tid: \"analytics\",\n\t\tname: \"Analytics\",\n\t\tdescription: \"Analytics\",\n\t\tlabel: \"Analytics\",\n\t\ticon: \"📊\",\n\t},\n\t{\n\t\tid: \"knowledge\",\n\t\tname: \"Knowledge & Documents\",\n\t\tdescription: \"Knowledge & Documents\",\n\t\tlabel: \"Knowledge & Documents\",\n\t\ticon: \"📚\",\n\t},\n\t{\n\t\tid: \"storage\",\n\t\tname: \"Object Storage\",\n\t\tdescription: \"Object Storage\",\n\t\tlabel: \"Object Storage\",\n\t\ticon: \"💾\",\n\t},\n\t{\n\t\tid: \"database\",\n\t\tname: \"Databases & Caching\",\n\t\tdescription: \"Databases & Caching\",\n\t\tlabel: \"Databases & Caching\",\n\t\ticon: \"🗄️\",\n\t},\n\t{\n\t\tid: \"dev-tools\",\n\t\tname: \"Developer Tools\",\n\t\tdescription: \"Developer Tools\",\n\t\tlabel: \"Developer Tools\",\n\t\ticon: \"🛠️\",\n\t},\n\t{\n\t\tid: \"proxy\",\n\t\tname: \"Reverse Proxy\",\n\t\tdescription: \"Reverse Proxy\",\n\t\tlabel: \"Reverse Proxy\",\n\t\ticon: \"🌐\",\n\t},\n\t{\n\t\tid: \"monitoring\",\n\t\tname: \"Monitoring\",\n\t\tdescription: \"Monitoring\",\n\t\tlabel: \"Monitoring\",\n\t\ticon: \"📡\",\n\t},\n\t{\n\t\tid: \"browser\",\n\t\tname: \"Browser Automation\",\n\t\tdescription: \"Browser Automation\",\n\t\tlabel: \"Browser Automation\",\n\t\ticon: \"🌐\",\n\t},\n\t{\n\t\tid: \"search\",\n\t\tname: \"Search\",\n\t\tdescription: \"Search\",\n\t\tlabel: \"Search\",\n\t\ticon: \"🔍\",\n\t},\n\t{\n\t\tid: \"communication\",\n\t\tname: \"Notifications\",\n\t\tdescription: \"Notifications\",\n\t\tlabel: \"Notifications\",\n\t\ticon: \"🔔\",\n\t},\n\t{\n\t\tid: \"desktop\",\n\t\tname: \"Desktop Environment\",\n\t\tdescription: \"Desktop Environment\",\n\t\tlabel: \"Desktop Environment\",\n\t\ticon: \"🖥️\",\n\t},\n\t{\n\t\tid: \"streaming\",\n\t\tname: \"Streaming & Relay\",\n\t\tdescription: \"Streaming & Relay\",\n\t\tlabel: \"Streaming & Relay\",\n\t\ticon: \"📺\",\n\t},\n\t{\n\t\tid: \"security\",\n\t\tname: \"Security & Pentesting\",\n\t\tdescription: \"Security & Pentesting\",\n\t\tlabel: \"Security & Pentesting\",\n\t\ticon: \"🛡️\",\n\t},\n\t{\n\t\tid: \"billing\",\n\t\tname: \"Billing & Payments\",\n\t\tdescription: \"Billing & Payments\",\n\t\tlabel: \"Billing & Payments\",\n\t\ticon: \"💳\",\n\t},\n\t{\n\t\tid: \"crm\",\n\t\tname: \"CRM & Customer Management\",\n\t\tdescription: \"CRM & Customer Management\",\n\t\tlabel: \"CRM & Customer Management\",\n\t\ticon: \"🤝\",\n\t},\n\t{\n\t\tid: \"email-marketing\",\n\t\tname: \"Email & Marketing\",\n\t\tdescription: \"Email & Marketing\",\n\t\tlabel: \"Email & Marketing\",\n\t\ticon: \"📧\",\n\t},\n\t{\n\t\tid: \"forms\",\n\t\tname: \"Forms & Surveys\",\n\t\tdescription: \"Forms & Surveys\",\n\t\tlabel: \"Forms & Surveys\",\n\t\ticon: \"📋\",\n\t},\n\t{\n\t\tid: \"api-gateway\",\n\t\tname: \"API Management\",\n\t\tdescription: \"API Management\",\n\t\tlabel: \"API Management\",\n\t\ticon: \"🔌\",\n\t},\n\t{\n\t\tid: \"backup\",\n\t\tname: \"Backup & Recovery\",\n\t\tdescription: \"Backup & Recovery\",\n\t\tlabel: \"Backup & Recovery\",\n\t\ticon: \"💾\",\n\t},\n\t{\n\t\tid: \"voice\",\n\t\tname: \"Voice & Telephony\",\n\t\tdescription: \"Voice & Telephony\",\n\t\tlabel: \"Voice & Telephony\",\n\t\ticon: \"📞\",\n\t},\n\t{\n\t\tid: \"ecommerce\",\n\t\tname: \"E-Commerce\",\n\t\tdescription: \"E-Commerce\",\n\t\tlabel: \"E-Commerce\",\n\t\ticon: \"🛒\",\n\t},\n\t{\n\t\tid: \"collaboration\",\n\t\tname: \"Real-Time Collaboration\",\n\t\tdescription: \"Real-Time Collaboration\",\n\t\tlabel: \"Real-Time Collaboration\",\n\t\ticon: \"✏️\",\n\t},\n\t{\n\t\tid: \"ai-observability\",\n\t\tname: \"AI Observability\",\n\t\tdescription: \"AI Observability\",\n\t\tlabel: \"AI Observability\",\n\t\ticon: \"🔭\",\n\t},\n\t{\n\t\tid: \"fine-tuning\",\n\t\tname: \"AI Fine-Tuning\",\n\t\tdescription: \"AI Fine-Tuning\",\n\t\tlabel: \"AI Fine-Tuning\",\n\t\ticon: \"🎯\",\n\t},\n\t{\n\t\tid: \"project-management\",\n\t\tname: \"Project Management\",\n\t\tdescription: \"Project Management\",\n\t\tlabel: \"Project Management\",\n\t\ticon: \"📋\",\n\t},\n\t{\n\t\tid: \"business-intelligence\",\n\t\tname: \"Business Intelligence\",\n\t\tdescription: \"Business Intelligence\",\n\t\tlabel: \"Business Intelligence\",\n\t\ticon: \"📈\",\n\t},\n\t{\n\t\tid: \"dns-networking\",\n\t\tname: \"DNS & Networking\",\n\t\tdescription: \"DNS & Networking\",\n\t\tlabel: \"DNS & Networking\",\n\t\ticon: \"🌐\",\n\t},\n\t{\n\t\tid: \"iot\",\n\t\tname: \"IoT & Edge\",\n\t\tdescription: \"IoT & Edge\",\n\t\tlabel: \"IoT & Edge\",\n\t\ticon: \"📡\",\n\t},\n\t{\n\t\tid: \"saas-boilerplate\",\n\t\tname: \"SaaS Boilerplates\",\n\t\tdescription: \"Full-stack SaaS starter kits and boilerplates\",\n\t\tlabel: \"SaaS Boilerplates\",\n\t\ticon: \"🚀\",\n\t},\n];\n"],"mappings":";;AAmJA,MAAa,qBAAqC;CACjD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD"}
|
package/dist/types.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as PortMappingSchema, B as SkillBindingSchema, C as MaturitySchema, D as OpenclawInstallMethodSchema, E as OpenclawImageVariantSchema, F as ResolverOutputSchema, G as ValidateResponseSchema, I as ResourceLimitsSchema, K as VolumeMappingSchema, L as RestartPolicySchema, M as ProxyRouteSchema, N as ProxyTypeSchema, O as OutputFormatSchema, P as ResolvedServiceSchema, R as ServiceCategorySchema, S as HealthCheckSchema, T as NativeRecipeSchema, U as SkippedServiceSchema, V as SkillPackSchema, W as ValidateRequestSchema, _ as EnvVariableSchema, a as AddonStackUpdateResultSchema, b as GitSourceSchema, c as BuildContextSchema, d as DeploySchema, f as DeployTargetSchema, g as EnvQuirkSchema, h as EnvQuirkFixSchema, i as AddonStackUpdateInputSchema, j as PresetSchema, k as PlatformSchema, l as ComposeOptionsSchema, m as DeploymentTypeSchema, n as AddonStackInputSchema, o as AiProviderSchema, p as DeploymentTargetSchema, q as WarningSchema, r as AddonStackResultSchema, s as ApiErrorSchema, t as AddedDependencySchema, v as ErrorSchema, w as NativePlatformSchema, x as GsdRuntimeSchema, y as GenerationInputSchema, z as ServiceDefinitionSchema } from "./schema-BQnZrcw8.cjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/types.d.ts
|
|
@@ -41,6 +41,14 @@ type ResolverOutput = z.infer<typeof ResolverOutputSchema>;
|
|
|
41
41
|
type ValidateRequest = z.infer<typeof ValidateRequestSchema>;
|
|
42
42
|
type ValidateResponse = z.infer<typeof ValidateResponseSchema>;
|
|
43
43
|
type ApiError = z.infer<typeof ApiErrorSchema>;
|
|
44
|
+
type EnvQuirkFix = z.infer<typeof EnvQuirkFixSchema>;
|
|
45
|
+
type EnvQuirk = z.infer<typeof EnvQuirkSchema>;
|
|
46
|
+
type ProxyRoute = z.infer<typeof ProxyRouteSchema>;
|
|
47
|
+
type SkippedService = z.infer<typeof SkippedServiceSchema>;
|
|
48
|
+
type AddonStackInput = z.infer<typeof AddonStackInputSchema>;
|
|
49
|
+
type AddonStackResult = z.infer<typeof AddonStackResultSchema>;
|
|
50
|
+
type AddonStackUpdateInput = z.infer<typeof AddonStackUpdateInputSchema>;
|
|
51
|
+
type AddonStackUpdateResult = z.infer<typeof AddonStackUpdateResultSchema>;
|
|
44
52
|
interface ResolverInput {
|
|
45
53
|
services: string[];
|
|
46
54
|
skillPacks: string[];
|
|
@@ -81,5 +89,5 @@ interface CategoryInfo {
|
|
|
81
89
|
}
|
|
82
90
|
declare const SERVICE_CATEGORIES: CategoryInfo[];
|
|
83
91
|
//#endregion
|
|
84
|
-
export { AddedDependency, AiProvider, ApiError, BuildContext, CategoryInfo, ComposeOptions, Deploy, DeployTarget, DeploymentTarget, DeploymentType, EnvVariable, GeneratedFiles, GenerationInput, GenerationMetadata, GenerationResult, GitSource, GsdRuntime, HealthCheck, Maturity, NativePlatform, NativeRecipe, OpenclawImageVariant, OpenclawInstallMethod, OutputFormat, Platform, PortMapping, Preset, ProxyType, ResolvedService, ResolverError, ResolverInput, ResolverOutput, ResourceLimits, RestartPolicy, SERVICE_CATEGORIES, ServiceCategory, ServiceDefinition, SkillBinding, SkillPack, ValidateRequest, ValidateResponse, VolumeMapping, Warning };
|
|
92
|
+
export { AddedDependency, AddonStackInput, AddonStackResult, AddonStackUpdateInput, AddonStackUpdateResult, AiProvider, ApiError, BuildContext, CategoryInfo, ComposeOptions, Deploy, DeployTarget, DeploymentTarget, DeploymentType, EnvQuirk, EnvQuirkFix, EnvVariable, GeneratedFiles, GenerationInput, GenerationMetadata, GenerationResult, GitSource, GsdRuntime, HealthCheck, Maturity, NativePlatform, NativeRecipe, OpenclawImageVariant, OpenclawInstallMethod, OutputFormat, Platform, PortMapping, Preset, ProxyRoute, ProxyType, ResolvedService, ResolverError, ResolverInput, ResolverOutput, ResourceLimits, RestartPolicy, SERVICE_CATEGORIES, ServiceCategory, ServiceDefinition, SkillBinding, SkillPack, SkippedService, ValidateRequest, ValidateResponse, VolumeMapping, Warning };
|
|
85
93
|
//# sourceMappingURL=types.d.cts.map
|
package/dist/types.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../src/types.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../src/types.ts"],"mappings":"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"}
|
package/dist/types.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as PortMappingSchema, B as SkillBindingSchema, C as MaturitySchema, D as OpenclawInstallMethodSchema, E as OpenclawImageVariantSchema, F as ResolverOutputSchema, G as ValidateResponseSchema, I as ResourceLimitsSchema, K as VolumeMappingSchema, L as RestartPolicySchema, M as ProxyRouteSchema, N as ProxyTypeSchema, O as OutputFormatSchema, P as ResolvedServiceSchema, R as ServiceCategorySchema, S as HealthCheckSchema, T as NativeRecipeSchema, U as SkippedServiceSchema, V as SkillPackSchema, W as ValidateRequestSchema, _ as EnvVariableSchema, a as AddonStackUpdateResultSchema, b as GitSourceSchema, c as BuildContextSchema, d as DeploySchema, f as DeployTargetSchema, g as EnvQuirkSchema, h as EnvQuirkFixSchema, i as AddonStackUpdateInputSchema, j as PresetSchema, k as PlatformSchema, l as ComposeOptionsSchema, m as DeploymentTypeSchema, n as AddonStackInputSchema, o as AiProviderSchema, p as DeploymentTargetSchema, q as WarningSchema, r as AddonStackResultSchema, s as ApiErrorSchema, t as AddedDependencySchema, v as ErrorSchema, w as NativePlatformSchema, x as GsdRuntimeSchema, y as GenerationInputSchema, z as ServiceDefinitionSchema } from "./schema-SBpL0bdI.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/types.d.ts
|
|
@@ -41,6 +41,14 @@ type ResolverOutput = z.infer<typeof ResolverOutputSchema>;
|
|
|
41
41
|
type ValidateRequest = z.infer<typeof ValidateRequestSchema>;
|
|
42
42
|
type ValidateResponse = z.infer<typeof ValidateResponseSchema>;
|
|
43
43
|
type ApiError = z.infer<typeof ApiErrorSchema>;
|
|
44
|
+
type EnvQuirkFix = z.infer<typeof EnvQuirkFixSchema>;
|
|
45
|
+
type EnvQuirk = z.infer<typeof EnvQuirkSchema>;
|
|
46
|
+
type ProxyRoute = z.infer<typeof ProxyRouteSchema>;
|
|
47
|
+
type SkippedService = z.infer<typeof SkippedServiceSchema>;
|
|
48
|
+
type AddonStackInput = z.infer<typeof AddonStackInputSchema>;
|
|
49
|
+
type AddonStackResult = z.infer<typeof AddonStackResultSchema>;
|
|
50
|
+
type AddonStackUpdateInput = z.infer<typeof AddonStackUpdateInputSchema>;
|
|
51
|
+
type AddonStackUpdateResult = z.infer<typeof AddonStackUpdateResultSchema>;
|
|
44
52
|
interface ResolverInput {
|
|
45
53
|
services: string[];
|
|
46
54
|
skillPacks: string[];
|
|
@@ -81,5 +89,5 @@ interface CategoryInfo {
|
|
|
81
89
|
}
|
|
82
90
|
declare const SERVICE_CATEGORIES: CategoryInfo[];
|
|
83
91
|
//#endregion
|
|
84
|
-
export { AddedDependency, AiProvider, ApiError, BuildContext, CategoryInfo, ComposeOptions, Deploy, DeployTarget, DeploymentTarget, DeploymentType, EnvVariable, GeneratedFiles, GenerationInput, GenerationMetadata, GenerationResult, GitSource, GsdRuntime, HealthCheck, Maturity, NativePlatform, NativeRecipe, OpenclawImageVariant, OpenclawInstallMethod, OutputFormat, Platform, PortMapping, Preset, ProxyType, ResolvedService, ResolverError, ResolverInput, ResolverOutput, ResourceLimits, RestartPolicy, SERVICE_CATEGORIES, ServiceCategory, ServiceDefinition, SkillBinding, SkillPack, ValidateRequest, ValidateResponse, VolumeMapping, Warning };
|
|
92
|
+
export { AddedDependency, AddonStackInput, AddonStackResult, AddonStackUpdateInput, AddonStackUpdateResult, AiProvider, ApiError, BuildContext, CategoryInfo, ComposeOptions, Deploy, DeployTarget, DeploymentTarget, DeploymentType, EnvQuirk, EnvQuirkFix, EnvVariable, GeneratedFiles, GenerationInput, GenerationMetadata, GenerationResult, GitSource, GsdRuntime, HealthCheck, Maturity, NativePlatform, NativeRecipe, OpenclawImageVariant, OpenclawInstallMethod, OutputFormat, Platform, PortMapping, Preset, ProxyRoute, ProxyType, ResolvedService, ResolverError, ResolverInput, ResolverOutput, ResourceLimits, RestartPolicy, SERVICE_CATEGORIES, ServiceCategory, ServiceDefinition, SkillBinding, SkillPack, SkippedService, ValidateRequest, ValidateResponse, VolumeMapping, Warning };
|
|
85
93
|
//# sourceMappingURL=types.d.mts.map
|
package/dist/types.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"mappings":";;;;KAmDY,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,gBAAA;AAAA,KAC5B,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,gBAAA;AAAA,KAC5B,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,KACjC,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,KAC1B,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,KAC1B,aAAA,GAAgB,CAAA,CAAE,KAAA,QAAa,mBAAA;AAAA,KAC/B,SAAA,GAAY,CAAA,CAAE,KAAA,QAAa,eAAA;AAAA,KAC3B,gBAAA,GAAmB,CAAA,CAAE,KAAA,QAAa,sBAAA;AAAA,KAClC,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAChC,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAChC,YAAA,GAAe,CAAA,CAAE,KAAA,QAAa,kBAAA;AAAA,KAC9B,SAAA,GAAY,CAAA,CAAE,KAAA,QAAa,eAAA;AAAA,KAC3B,YAAA,GAAe,CAAA,CAAE,KAAA,QAAa,kBAAA;AAAA,KAC9B,YAAA,GAAe,CAAA,CAAE,KAAA,QAAa,kBAAA;AAAA,KAC9B,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,0BAAA;AAAA,KACtC,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,KACvC,YAAA,GAAe,CAAA,CAAE,KAAA,QAAa,kBAAA;AAAA,KAE9B,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,KAC7B,aAAA,GAAgB,CAAA,CAAE,KAAA,QAAa,mBAAA;AAAA,KAC/B,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,KAC7B,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,KAC7B,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAChC,MAAA,GAAS,CAAA,CAAE,KAAA,QAAa,YAAA;AAAA,KACxB,YAAA,GAAe,CAAA,CAAE,KAAA,QAAa,kBAAA;AAAA,KAE9B,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,uBAAA;AAAA,KACnC,SAAA,GAAY,CAAA,CAAE,KAAA,QAAa,eAAA;AAAA,KAC3B,MAAA,GAAS,CAAA,CAAE,KAAA,QAAa,YAAA;AAAA,KAExB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,KACjC,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;EA5BhC,6EA8BX,aAAA,GAAgB,GAAA,SAAY,MAAA;AAAA;AAAA,KAEjB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,KACjC,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,KACjC,OAAA,GAAU,CAAA,CAAE,KAAA,QAAa,aAAA;AAAA,KACzB,aAAA,GAAgB,CAAA,CAAE,KAAA,QAAa,WAAA;AAAA,KAC/B,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAEhC,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,KACjC,gBAAA,GAAmB,CAAA,CAAE,KAAA,QAAa,sBAAA;AAAA,KAClC,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,KAG1B,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,KAC7B,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,KAC1B,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,gBAAA;AAAA,KAC5B,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAChC,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,KACjC,gBAAA,GAAmB,CAAA,CAAE,KAAA,QAAa,sBAAA;AAAA,KAClC,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,KACvC,sBAAA,GAAyB,CAAA,CAAE,KAAA,QAAa,4BAAA;AAAA,UAInC,aAAA;EAChB,QAAA;EACA,UAAA;EACA,WAAA,GAAc,UAAA;EACd,WAAA,GAAc,UAAA;EACd,KAAA,GAAQ,SAAA;EACR,GAAA;EACA,QAAA,GAAW,QAAA;EACX,UAAA,GAAa,cAAA;EACb,cAAA,GAAiB,cAAA;EACjB,UAAA;EACA,gBAAA;IAAqB,IAAA;IAAc,OAAA;IAAiB,QAAA;EAAA;AAAA;AAAA,UAGpC,cAAA;EAAA,CACf,IAAA;AAAA;AAAA,UAGe,kBAAA;EAChB,YAAA;EACA,UAAA;EACA,iBAAA;EACA,gBAAA;EACA,WAAA;AAAA;AAAA,UAGgB,gBAAA;EAChB,KAAA,EAAO,cAAA;EACP,QAAA,EAAU,kBAAA;AAAA;AAAA,UAGM,YAAA;EAChB,EAAA,EAAI,eAAA;EACJ,IAAA;EACA,WAAA;EACA,KAAA;EACA,IAAA;AAAA;AAAA,cAGY,kBAAA,EAAoB,YAAA"}
|
package/dist/types.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","names":[],"sources":["../src/types.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type {\n\tAddedDependencySchema,\n\tAiProviderSchema,\n\tApiErrorSchema,\n\tBuildContextSchema,\n\tComposeOptionsSchema,\n\tDeploymentTargetSchema,\n\tDeploymentTypeSchema,\n\tDeploySchema,\n\tDeployTargetSchema,\n\tEnvVariableSchema,\n\tErrorSchema,\n\tGenerationInputSchema,\n\tGitSourceSchema,\n\tGsdRuntimeSchema,\n\tHealthCheckSchema,\n\tMaturitySchema,\n\tNativePlatformSchema,\n\tNativeRecipeSchema,\n\tOpenclawImageVariantSchema,\n\tOpenclawInstallMethodSchema,\n\tOutputFormatSchema,\n\tPlatformSchema,\n\tPortMappingSchema,\n\tPresetSchema,\n\tProxyTypeSchema,\n\tResolvedServiceSchema,\n\tResolverOutputSchema,\n\tResourceLimitsSchema,\n\tRestartPolicySchema,\n\tServiceCategorySchema,\n\tServiceDefinitionSchema,\n\tSkillBindingSchema,\n\tSkillPackSchema,\n\tValidateRequestSchema,\n\tValidateResponseSchema,\n\tVolumeMappingSchema,\n\tWarningSchema,\n} from \"./schema.js\";\n\n// ─── Inferred Types ─────────────────────────────────────────────────────────\n\nexport type AiProvider = z.infer<typeof AiProviderSchema>;\nexport type GsdRuntime = z.infer<typeof GsdRuntimeSchema>;\nexport type ServiceCategory = z.infer<typeof ServiceCategorySchema>;\nexport type Maturity = z.infer<typeof MaturitySchema>;\nexport type Platform = z.infer<typeof PlatformSchema>;\nexport type RestartPolicy = z.infer<typeof RestartPolicySchema>;\nexport type ProxyType = z.infer<typeof ProxyTypeSchema>;\nexport type DeploymentTarget = z.infer<typeof DeploymentTargetSchema>;\nexport type DeploymentType = z.infer<typeof DeploymentTypeSchema>;\nexport type NativePlatform = z.infer<typeof NativePlatformSchema>;\nexport type NativeRecipe = z.infer<typeof NativeRecipeSchema>;\nexport type GitSource = z.infer<typeof GitSourceSchema>;\nexport type BuildContext = z.infer<typeof BuildContextSchema>;\nexport type OutputFormat = z.infer<typeof OutputFormatSchema>;\nexport type OpenclawImageVariant = z.infer<typeof OpenclawImageVariantSchema>;\nexport type OpenclawInstallMethod = z.infer<typeof OpenclawInstallMethodSchema>;\nexport type DeployTarget = z.infer<typeof DeployTargetSchema>;\n\nexport type PortMapping = z.infer<typeof PortMappingSchema>;\nexport type VolumeMapping = z.infer<typeof VolumeMappingSchema>;\nexport type EnvVariable = z.infer<typeof EnvVariableSchema>;\nexport type HealthCheck = z.infer<typeof HealthCheckSchema>;\nexport type ResourceLimits = z.infer<typeof ResourceLimitsSchema>;\nexport type Deploy = z.infer<typeof DeploySchema>;\nexport type SkillBinding = z.infer<typeof SkillBindingSchema>;\n\nexport type ServiceDefinition = z.infer<typeof ServiceDefinitionSchema>;\nexport type SkillPack = z.infer<typeof SkillPackSchema>;\nexport type Preset = z.infer<typeof PresetSchema>;\n\nexport type GenerationInput = z.infer<typeof GenerationInputSchema>;\nexport type ComposeOptions = z.infer<typeof ComposeOptionsSchema> & {\n\t/** Dynamic Traefik labels per service, computed by the Traefik generator. */\n\ttraefikLabels?: Map<string, Record<string, string>>;\n};\nexport type ResolvedService = z.infer<typeof ResolvedServiceSchema>;\nexport type AddedDependency = z.infer<typeof AddedDependencySchema>;\nexport type Warning = z.infer<typeof WarningSchema>;\nexport type ResolverError = z.infer<typeof ErrorSchema>;\nexport type ResolverOutput = z.infer<typeof ResolverOutputSchema>;\n\nexport type ValidateRequest = z.infer<typeof ValidateRequestSchema>;\nexport type ValidateResponse = z.infer<typeof ValidateResponseSchema>;\nexport type ApiError = z.infer<typeof ApiErrorSchema>;\n\n// ─── Additional Types ───────────────────────────────────────────────────────\n\nexport interface ResolverInput {\n\tservices: string[];\n\tskillPacks: string[];\n\taiProviders?: AiProvider[];\n\tgsdRuntimes?: GsdRuntime[];\n\tproxy?: ProxyType;\n\tgpu?: boolean;\n\tplatform?: Platform;\n\tdeployment?: DeploymentType;\n\tdeploymentType?: DeploymentType;\n\tmonitoring?: boolean;\n\tmemoryThresholds?: { info: number; warning: number; critical: number };\n}\n\nexport interface GeneratedFiles {\n\t[path: string]: string;\n}\n\nexport interface GenerationMetadata {\n\tserviceCount: number;\n\tskillCount: number;\n\testimatedMemoryMB: number;\n\tresolvedServices: string[];\n\tgeneratedAt: string;\n}\n\nexport interface GenerationResult {\n\tfiles: GeneratedFiles;\n\tmetadata: GenerationMetadata;\n}\n\nexport interface CategoryInfo {\n\tid: ServiceCategory;\n\tname: string;\n\tdescription?: string;\n\tlabel?: string;\n\ticon: string;\n}\n\nexport const SERVICE_CATEGORIES: CategoryInfo[] = [\n\t{\n\t\tid: \"coding-agent\",\n\t\tname: \"AI Coding Agents\",\n\t\tdescription: \"AI Coding Agents\",\n\t\tlabel: \"AI Coding Agents\",\n\t\ticon: \"💻\",\n\t},\n\t{\n\t\tid: \"ai-platform\",\n\t\tname: \"AI Platforms & Chat UIs\",\n\t\tdescription: \"AI Platforms & Chat UIs\",\n\t\tlabel: \"AI Platforms & Chat UIs\",\n\t\ticon: \"🧪\",\n\t},\n\t{\n\t\tid: \"ai\",\n\t\tname: \"AI / Local Models\",\n\t\tdescription: \"AI / Local Models\",\n\t\tlabel: \"AI / Local Models\",\n\t\ticon: \"🤖\",\n\t},\n\t{\n\t\tid: \"automation\",\n\t\tname: \"Automation & Workflows\",\n\t\tdescription: \"Automation & Workflows\",\n\t\tlabel: \"Automation & Workflows\",\n\t\ticon: \"🔄\",\n\t},\n\t{\n\t\tid: \"vector-db\",\n\t\tname: \"Vector Databases\",\n\t\tdescription: \"Vector Databases\",\n\t\tlabel: \"Vector Databases\",\n\t\ticon: \"🧠\",\n\t},\n\t{\n\t\tid: \"media\",\n\t\tname: \"Media & Video\",\n\t\tdescription: \"Media & Video\",\n\t\tlabel: \"Media & Video\",\n\t\ticon: \"🎬\",\n\t},\n\t{\n\t\tid: \"social-media\",\n\t\tname: \"Social Media\",\n\t\tdescription: \"Social Media\",\n\t\tlabel: \"Social Media\",\n\t\ticon: \"📱\",\n\t},\n\t{\n\t\tid: \"analytics\",\n\t\tname: \"Analytics\",\n\t\tdescription: \"Analytics\",\n\t\tlabel: \"Analytics\",\n\t\ticon: \"📊\",\n\t},\n\t{\n\t\tid: \"knowledge\",\n\t\tname: \"Knowledge & Documents\",\n\t\tdescription: \"Knowledge & Documents\",\n\t\tlabel: \"Knowledge & Documents\",\n\t\ticon: \"📚\",\n\t},\n\t{\n\t\tid: \"storage\",\n\t\tname: \"Object Storage\",\n\t\tdescription: \"Object Storage\",\n\t\tlabel: \"Object Storage\",\n\t\ticon: \"💾\",\n\t},\n\t{\n\t\tid: \"database\",\n\t\tname: \"Databases & Caching\",\n\t\tdescription: \"Databases & Caching\",\n\t\tlabel: \"Databases & Caching\",\n\t\ticon: \"🗄️\",\n\t},\n\t{\n\t\tid: \"dev-tools\",\n\t\tname: \"Developer Tools\",\n\t\tdescription: \"Developer Tools\",\n\t\tlabel: \"Developer Tools\",\n\t\ticon: \"🛠️\",\n\t},\n\t{\n\t\tid: \"proxy\",\n\t\tname: \"Reverse Proxy\",\n\t\tdescription: \"Reverse Proxy\",\n\t\tlabel: \"Reverse Proxy\",\n\t\ticon: \"🌐\",\n\t},\n\t{\n\t\tid: \"monitoring\",\n\t\tname: \"Monitoring\",\n\t\tdescription: \"Monitoring\",\n\t\tlabel: \"Monitoring\",\n\t\ticon: \"📡\",\n\t},\n\t{\n\t\tid: \"browser\",\n\t\tname: \"Browser Automation\",\n\t\tdescription: \"Browser Automation\",\n\t\tlabel: \"Browser Automation\",\n\t\ticon: \"🌐\",\n\t},\n\t{\n\t\tid: \"search\",\n\t\tname: \"Search\",\n\t\tdescription: \"Search\",\n\t\tlabel: \"Search\",\n\t\ticon: \"🔍\",\n\t},\n\t{\n\t\tid: \"communication\",\n\t\tname: \"Notifications\",\n\t\tdescription: \"Notifications\",\n\t\tlabel: \"Notifications\",\n\t\ticon: \"🔔\",\n\t},\n\t{\n\t\tid: \"desktop\",\n\t\tname: \"Desktop Environment\",\n\t\tdescription: \"Desktop Environment\",\n\t\tlabel: \"Desktop Environment\",\n\t\ticon: \"🖥️\",\n\t},\n\t{\n\t\tid: \"streaming\",\n\t\tname: \"Streaming & Relay\",\n\t\tdescription: \"Streaming & Relay\",\n\t\tlabel: \"Streaming & Relay\",\n\t\ticon: \"📺\",\n\t},\n\t{\n\t\tid: \"security\",\n\t\tname: \"Security & Pentesting\",\n\t\tdescription: \"Security & Pentesting\",\n\t\tlabel: \"Security & Pentesting\",\n\t\ticon: \"🛡️\",\n\t},\n\t{\n\t\tid: \"billing\",\n\t\tname: \"Billing & Payments\",\n\t\tdescription: \"Billing & Payments\",\n\t\tlabel: \"Billing & Payments\",\n\t\ticon: \"💳\",\n\t},\n\t{\n\t\tid: \"crm\",\n\t\tname: \"CRM & Customer Management\",\n\t\tdescription: \"CRM & Customer Management\",\n\t\tlabel: \"CRM & Customer Management\",\n\t\ticon: \"🤝\",\n\t},\n\t{\n\t\tid: \"email-marketing\",\n\t\tname: \"Email & Marketing\",\n\t\tdescription: \"Email & Marketing\",\n\t\tlabel: \"Email & Marketing\",\n\t\ticon: \"📧\",\n\t},\n\t{\n\t\tid: \"forms\",\n\t\tname: \"Forms & Surveys\",\n\t\tdescription: \"Forms & Surveys\",\n\t\tlabel: \"Forms & Surveys\",\n\t\ticon: \"📋\",\n\t},\n\t{\n\t\tid: \"api-gateway\",\n\t\tname: \"API Management\",\n\t\tdescription: \"API Management\",\n\t\tlabel: \"API Management\",\n\t\ticon: \"🔌\",\n\t},\n\t{\n\t\tid: \"backup\",\n\t\tname: \"Backup & Recovery\",\n\t\tdescription: \"Backup & Recovery\",\n\t\tlabel: \"Backup & Recovery\",\n\t\ticon: \"💾\",\n\t},\n\t{\n\t\tid: \"voice\",\n\t\tname: \"Voice & Telephony\",\n\t\tdescription: \"Voice & Telephony\",\n\t\tlabel: \"Voice & Telephony\",\n\t\ticon: \"📞\",\n\t},\n\t{\n\t\tid: \"ecommerce\",\n\t\tname: \"E-Commerce\",\n\t\tdescription: \"E-Commerce\",\n\t\tlabel: \"E-Commerce\",\n\t\ticon: \"🛒\",\n\t},\n\t{\n\t\tid: \"collaboration\",\n\t\tname: \"Real-Time Collaboration\",\n\t\tdescription: \"Real-Time Collaboration\",\n\t\tlabel: \"Real-Time Collaboration\",\n\t\ticon: \"✏️\",\n\t},\n\t{\n\t\tid: \"ai-observability\",\n\t\tname: \"AI Observability\",\n\t\tdescription: \"AI Observability\",\n\t\tlabel: \"AI Observability\",\n\t\ticon: \"🔭\",\n\t},\n\t{\n\t\tid: \"fine-tuning\",\n\t\tname: \"AI Fine-Tuning\",\n\t\tdescription: \"AI Fine-Tuning\",\n\t\tlabel: \"AI Fine-Tuning\",\n\t\ticon: \"🎯\",\n\t},\n\t{\n\t\tid: \"project-management\",\n\t\tname: \"Project Management\",\n\t\tdescription: \"Project Management\",\n\t\tlabel: \"Project Management\",\n\t\ticon: \"📋\",\n\t},\n\t{\n\t\tid: \"business-intelligence\",\n\t\tname: \"Business Intelligence\",\n\t\tdescription: \"Business Intelligence\",\n\t\tlabel: \"Business Intelligence\",\n\t\ticon: \"📈\",\n\t},\n\t{\n\t\tid: \"dns-networking\",\n\t\tname: \"DNS & Networking\",\n\t\tdescription: \"DNS & Networking\",\n\t\tlabel: \"DNS & Networking\",\n\t\ticon: \"🌐\",\n\t},\n\t{\n\t\tid: \"iot\",\n\t\tname: \"IoT & Edge\",\n\t\tdescription: \"IoT & Edge\",\n\t\tlabel: \"IoT & Edge\",\n\t\ticon: \"📡\",\n\t},\n\t{\n\t\tid: \"saas-boilerplate\",\n\t\tname: \"SaaS Boilerplates\",\n\t\tdescription: \"Full-stack SaaS starter kits and boilerplates\",\n\t\tlabel: \"SaaS Boilerplates\",\n\t\ticon: \"🚀\",\n\t},\n];\n"],"mappings":";AAiIA,MAAa,qBAAqC;CACjD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD"}
|
|
1
|
+
{"version":3,"file":"types.mjs","names":[],"sources":["../src/types.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type {\n\tAddonStackInputSchema,\n\tAddonStackResultSchema,\n\tAddonStackUpdateInputSchema,\n\tAddonStackUpdateResultSchema,\n\tAddedDependencySchema,\n\tAiProviderSchema,\n\tApiErrorSchema,\n\tBuildContextSchema,\n\tComposeOptionsSchema,\n\tDeploymentTargetSchema,\n\tDeploymentTypeSchema,\n\tDeploySchema,\n\tDeployTargetSchema,\n\tEnvQuirkFixSchema,\n\tEnvQuirkSchema,\n\tEnvVariableSchema,\n\tErrorSchema,\n\tGenerationInputSchema,\n\tGitSourceSchema,\n\tGsdRuntimeSchema,\n\tHealthCheckSchema,\n\tMaturitySchema,\n\tNativePlatformSchema,\n\tNativeRecipeSchema,\n\tOpenclawImageVariantSchema,\n\tOpenclawInstallMethodSchema,\n\tOutputFormatSchema,\n\tPlatformSchema,\n\tPortMappingSchema,\n\tPresetSchema,\n\tProxyRouteSchema,\n\tProxyTypeSchema,\n\tResolvedServiceSchema,\n\tResolverOutputSchema,\n\tResourceLimitsSchema,\n\tRestartPolicySchema,\n\tServiceCategorySchema,\n\tServiceDefinitionSchema,\n\tSkillBindingSchema,\n\tSkillPackSchema,\n\tSkippedServiceSchema,\n\tValidateRequestSchema,\n\tValidateResponseSchema,\n\tVolumeMappingSchema,\n\tWarningSchema,\n} from \"./schema.js\";\n\n// ─── Inferred Types ─────────────────────────────────────────────────────────\n\nexport type AiProvider = z.infer<typeof AiProviderSchema>;\nexport type GsdRuntime = z.infer<typeof GsdRuntimeSchema>;\nexport type ServiceCategory = z.infer<typeof ServiceCategorySchema>;\nexport type Maturity = z.infer<typeof MaturitySchema>;\nexport type Platform = z.infer<typeof PlatformSchema>;\nexport type RestartPolicy = z.infer<typeof RestartPolicySchema>;\nexport type ProxyType = z.infer<typeof ProxyTypeSchema>;\nexport type DeploymentTarget = z.infer<typeof DeploymentTargetSchema>;\nexport type DeploymentType = z.infer<typeof DeploymentTypeSchema>;\nexport type NativePlatform = z.infer<typeof NativePlatformSchema>;\nexport type NativeRecipe = z.infer<typeof NativeRecipeSchema>;\nexport type GitSource = z.infer<typeof GitSourceSchema>;\nexport type BuildContext = z.infer<typeof BuildContextSchema>;\nexport type OutputFormat = z.infer<typeof OutputFormatSchema>;\nexport type OpenclawImageVariant = z.infer<typeof OpenclawImageVariantSchema>;\nexport type OpenclawInstallMethod = z.infer<typeof OpenclawInstallMethodSchema>;\nexport type DeployTarget = z.infer<typeof DeployTargetSchema>;\n\nexport type PortMapping = z.infer<typeof PortMappingSchema>;\nexport type VolumeMapping = z.infer<typeof VolumeMappingSchema>;\nexport type EnvVariable = z.infer<typeof EnvVariableSchema>;\nexport type HealthCheck = z.infer<typeof HealthCheckSchema>;\nexport type ResourceLimits = z.infer<typeof ResourceLimitsSchema>;\nexport type Deploy = z.infer<typeof DeploySchema>;\nexport type SkillBinding = z.infer<typeof SkillBindingSchema>;\n\nexport type ServiceDefinition = z.infer<typeof ServiceDefinitionSchema>;\nexport type SkillPack = z.infer<typeof SkillPackSchema>;\nexport type Preset = z.infer<typeof PresetSchema>;\n\nexport type GenerationInput = z.infer<typeof GenerationInputSchema>;\nexport type ComposeOptions = z.infer<typeof ComposeOptionsSchema> & {\n\t/** Dynamic Traefik labels per service, computed by the Traefik generator. */\n\ttraefikLabels?: Map<string, Record<string, string>>;\n};\nexport type ResolvedService = z.infer<typeof ResolvedServiceSchema>;\nexport type AddedDependency = z.infer<typeof AddedDependencySchema>;\nexport type Warning = z.infer<typeof WarningSchema>;\nexport type ResolverError = z.infer<typeof ErrorSchema>;\nexport type ResolverOutput = z.infer<typeof ResolverOutputSchema>;\n\nexport type ValidateRequest = z.infer<typeof ValidateRequestSchema>;\nexport type ValidateResponse = z.infer<typeof ValidateResponseSchema>;\nexport type ApiError = z.infer<typeof ApiErrorSchema>;\n\n// Addon Stack (Clawexa)\nexport type EnvQuirkFix = z.infer<typeof EnvQuirkFixSchema>;\nexport type EnvQuirk = z.infer<typeof EnvQuirkSchema>;\nexport type ProxyRoute = z.infer<typeof ProxyRouteSchema>;\nexport type SkippedService = z.infer<typeof SkippedServiceSchema>;\nexport type AddonStackInput = z.infer<typeof AddonStackInputSchema>;\nexport type AddonStackResult = z.infer<typeof AddonStackResultSchema>;\nexport type AddonStackUpdateInput = z.infer<typeof AddonStackUpdateInputSchema>;\nexport type AddonStackUpdateResult = z.infer<typeof AddonStackUpdateResultSchema>;\n\n// ─── Additional Types ───────────────────────────────────────────────────────\n\nexport interface ResolverInput {\n\tservices: string[];\n\tskillPacks: string[];\n\taiProviders?: AiProvider[];\n\tgsdRuntimes?: GsdRuntime[];\n\tproxy?: ProxyType;\n\tgpu?: boolean;\n\tplatform?: Platform;\n\tdeployment?: DeploymentType;\n\tdeploymentType?: DeploymentType;\n\tmonitoring?: boolean;\n\tmemoryThresholds?: { info: number; warning: number; critical: number };\n}\n\nexport interface GeneratedFiles {\n\t[path: string]: string;\n}\n\nexport interface GenerationMetadata {\n\tserviceCount: number;\n\tskillCount: number;\n\testimatedMemoryMB: number;\n\tresolvedServices: string[];\n\tgeneratedAt: string;\n}\n\nexport interface GenerationResult {\n\tfiles: GeneratedFiles;\n\tmetadata: GenerationMetadata;\n}\n\nexport interface CategoryInfo {\n\tid: ServiceCategory;\n\tname: string;\n\tdescription?: string;\n\tlabel?: string;\n\ticon: string;\n}\n\nexport const SERVICE_CATEGORIES: CategoryInfo[] = [\n\t{\n\t\tid: \"coding-agent\",\n\t\tname: \"AI Coding Agents\",\n\t\tdescription: \"AI Coding Agents\",\n\t\tlabel: \"AI Coding Agents\",\n\t\ticon: \"💻\",\n\t},\n\t{\n\t\tid: \"ai-platform\",\n\t\tname: \"AI Platforms & Chat UIs\",\n\t\tdescription: \"AI Platforms & Chat UIs\",\n\t\tlabel: \"AI Platforms & Chat UIs\",\n\t\ticon: \"🧪\",\n\t},\n\t{\n\t\tid: \"ai\",\n\t\tname: \"AI / Local Models\",\n\t\tdescription: \"AI / Local Models\",\n\t\tlabel: \"AI / Local Models\",\n\t\ticon: \"🤖\",\n\t},\n\t{\n\t\tid: \"automation\",\n\t\tname: \"Automation & Workflows\",\n\t\tdescription: \"Automation & Workflows\",\n\t\tlabel: \"Automation & Workflows\",\n\t\ticon: \"🔄\",\n\t},\n\t{\n\t\tid: \"vector-db\",\n\t\tname: \"Vector Databases\",\n\t\tdescription: \"Vector Databases\",\n\t\tlabel: \"Vector Databases\",\n\t\ticon: \"🧠\",\n\t},\n\t{\n\t\tid: \"media\",\n\t\tname: \"Media & Video\",\n\t\tdescription: \"Media & Video\",\n\t\tlabel: \"Media & Video\",\n\t\ticon: \"🎬\",\n\t},\n\t{\n\t\tid: \"social-media\",\n\t\tname: \"Social Media\",\n\t\tdescription: \"Social Media\",\n\t\tlabel: \"Social Media\",\n\t\ticon: \"📱\",\n\t},\n\t{\n\t\tid: \"analytics\",\n\t\tname: \"Analytics\",\n\t\tdescription: \"Analytics\",\n\t\tlabel: \"Analytics\",\n\t\ticon: \"📊\",\n\t},\n\t{\n\t\tid: \"knowledge\",\n\t\tname: \"Knowledge & Documents\",\n\t\tdescription: \"Knowledge & Documents\",\n\t\tlabel: \"Knowledge & Documents\",\n\t\ticon: \"📚\",\n\t},\n\t{\n\t\tid: \"storage\",\n\t\tname: \"Object Storage\",\n\t\tdescription: \"Object Storage\",\n\t\tlabel: \"Object Storage\",\n\t\ticon: \"💾\",\n\t},\n\t{\n\t\tid: \"database\",\n\t\tname: \"Databases & Caching\",\n\t\tdescription: \"Databases & Caching\",\n\t\tlabel: \"Databases & Caching\",\n\t\ticon: \"🗄️\",\n\t},\n\t{\n\t\tid: \"dev-tools\",\n\t\tname: \"Developer Tools\",\n\t\tdescription: \"Developer Tools\",\n\t\tlabel: \"Developer Tools\",\n\t\ticon: \"🛠️\",\n\t},\n\t{\n\t\tid: \"proxy\",\n\t\tname: \"Reverse Proxy\",\n\t\tdescription: \"Reverse Proxy\",\n\t\tlabel: \"Reverse Proxy\",\n\t\ticon: \"🌐\",\n\t},\n\t{\n\t\tid: \"monitoring\",\n\t\tname: \"Monitoring\",\n\t\tdescription: \"Monitoring\",\n\t\tlabel: \"Monitoring\",\n\t\ticon: \"📡\",\n\t},\n\t{\n\t\tid: \"browser\",\n\t\tname: \"Browser Automation\",\n\t\tdescription: \"Browser Automation\",\n\t\tlabel: \"Browser Automation\",\n\t\ticon: \"🌐\",\n\t},\n\t{\n\t\tid: \"search\",\n\t\tname: \"Search\",\n\t\tdescription: \"Search\",\n\t\tlabel: \"Search\",\n\t\ticon: \"🔍\",\n\t},\n\t{\n\t\tid: \"communication\",\n\t\tname: \"Notifications\",\n\t\tdescription: \"Notifications\",\n\t\tlabel: \"Notifications\",\n\t\ticon: \"🔔\",\n\t},\n\t{\n\t\tid: \"desktop\",\n\t\tname: \"Desktop Environment\",\n\t\tdescription: \"Desktop Environment\",\n\t\tlabel: \"Desktop Environment\",\n\t\ticon: \"🖥️\",\n\t},\n\t{\n\t\tid: \"streaming\",\n\t\tname: \"Streaming & Relay\",\n\t\tdescription: \"Streaming & Relay\",\n\t\tlabel: \"Streaming & Relay\",\n\t\ticon: \"📺\",\n\t},\n\t{\n\t\tid: \"security\",\n\t\tname: \"Security & Pentesting\",\n\t\tdescription: \"Security & Pentesting\",\n\t\tlabel: \"Security & Pentesting\",\n\t\ticon: \"🛡️\",\n\t},\n\t{\n\t\tid: \"billing\",\n\t\tname: \"Billing & Payments\",\n\t\tdescription: \"Billing & Payments\",\n\t\tlabel: \"Billing & Payments\",\n\t\ticon: \"💳\",\n\t},\n\t{\n\t\tid: \"crm\",\n\t\tname: \"CRM & Customer Management\",\n\t\tdescription: \"CRM & Customer Management\",\n\t\tlabel: \"CRM & Customer Management\",\n\t\ticon: \"🤝\",\n\t},\n\t{\n\t\tid: \"email-marketing\",\n\t\tname: \"Email & Marketing\",\n\t\tdescription: \"Email & Marketing\",\n\t\tlabel: \"Email & Marketing\",\n\t\ticon: \"📧\",\n\t},\n\t{\n\t\tid: \"forms\",\n\t\tname: \"Forms & Surveys\",\n\t\tdescription: \"Forms & Surveys\",\n\t\tlabel: \"Forms & Surveys\",\n\t\ticon: \"📋\",\n\t},\n\t{\n\t\tid: \"api-gateway\",\n\t\tname: \"API Management\",\n\t\tdescription: \"API Management\",\n\t\tlabel: \"API Management\",\n\t\ticon: \"🔌\",\n\t},\n\t{\n\t\tid: \"backup\",\n\t\tname: \"Backup & Recovery\",\n\t\tdescription: \"Backup & Recovery\",\n\t\tlabel: \"Backup & Recovery\",\n\t\ticon: \"💾\",\n\t},\n\t{\n\t\tid: \"voice\",\n\t\tname: \"Voice & Telephony\",\n\t\tdescription: \"Voice & Telephony\",\n\t\tlabel: \"Voice & Telephony\",\n\t\ticon: \"📞\",\n\t},\n\t{\n\t\tid: \"ecommerce\",\n\t\tname: \"E-Commerce\",\n\t\tdescription: \"E-Commerce\",\n\t\tlabel: \"E-Commerce\",\n\t\ticon: \"🛒\",\n\t},\n\t{\n\t\tid: \"collaboration\",\n\t\tname: \"Real-Time Collaboration\",\n\t\tdescription: \"Real-Time Collaboration\",\n\t\tlabel: \"Real-Time Collaboration\",\n\t\ticon: \"✏️\",\n\t},\n\t{\n\t\tid: \"ai-observability\",\n\t\tname: \"AI Observability\",\n\t\tdescription: \"AI Observability\",\n\t\tlabel: \"AI Observability\",\n\t\ticon: \"🔭\",\n\t},\n\t{\n\t\tid: \"fine-tuning\",\n\t\tname: \"AI Fine-Tuning\",\n\t\tdescription: \"AI Fine-Tuning\",\n\t\tlabel: \"AI Fine-Tuning\",\n\t\ticon: \"🎯\",\n\t},\n\t{\n\t\tid: \"project-management\",\n\t\tname: \"Project Management\",\n\t\tdescription: \"Project Management\",\n\t\tlabel: \"Project Management\",\n\t\ticon: \"📋\",\n\t},\n\t{\n\t\tid: \"business-intelligence\",\n\t\tname: \"Business Intelligence\",\n\t\tdescription: \"Business Intelligence\",\n\t\tlabel: \"Business Intelligence\",\n\t\ticon: \"📈\",\n\t},\n\t{\n\t\tid: \"dns-networking\",\n\t\tname: \"DNS & Networking\",\n\t\tdescription: \"DNS & Networking\",\n\t\tlabel: \"DNS & Networking\",\n\t\ticon: \"🌐\",\n\t},\n\t{\n\t\tid: \"iot\",\n\t\tname: \"IoT & Edge\",\n\t\tdescription: \"IoT & Edge\",\n\t\tlabel: \"IoT & Edge\",\n\t\ticon: \"📡\",\n\t},\n\t{\n\t\tid: \"saas-boilerplate\",\n\t\tname: \"SaaS Boilerplates\",\n\t\tdescription: \"Full-stack SaaS starter kits and boilerplates\",\n\t\tlabel: \"SaaS Boilerplates\",\n\t\ticon: \"🚀\",\n\t},\n];\n"],"mappings":";AAmJA,MAAa,qBAAqC;CACjD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD;EACC,IAAI;EACJ,MAAM;EACN,aAAa;EACb,OAAO;EACP,MAAM;EACN;CACD"}
|
package/dist/validator.cjs
CHANGED
package/dist/validator.test.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_resolver = require("./resolver.cjs");
|
|
1
|
+
const require_test_CTcmp4Su = require("./test.CTcmp4Su-DlzTarwH.cjs");
|
|
3
2
|
const require_composer = require("./composer.cjs");
|
|
3
|
+
const require_resolver = require("./resolver.cjs");
|
|
4
4
|
const require_validator = require("./validator.cjs");
|
|
5
5
|
//#region src/validator.test.ts
|
|
6
6
|
const defaultComposeOptions = {
|
|
@@ -11,37 +11,37 @@ const defaultComposeOptions = {
|
|
|
11
11
|
deployment: "local",
|
|
12
12
|
openclawVersion: "latest"
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
require_test_CTcmp4Su.describe("validate", () => {
|
|
15
|
+
require_test_CTcmp4Su.it("validates a valid minimal stack", () => {
|
|
16
16
|
const resolved = require_resolver.resolve({
|
|
17
17
|
services: ["redis"],
|
|
18
18
|
skillPacks: []
|
|
19
19
|
});
|
|
20
20
|
const result = require_validator.validate(resolved, require_composer.compose(resolved, defaultComposeOptions));
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
require_test_CTcmp4Su.globalExpect(result.valid).toBe(true);
|
|
22
|
+
require_test_CTcmp4Su.globalExpect(result.errors).toHaveLength(0);
|
|
23
23
|
});
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
require_test_CTcmp4Su.it("detects invalid YAML", () => {
|
|
25
|
+
require_test_CTcmp4Su.globalExpect(require_validator.validate(require_resolver.resolve({
|
|
26
26
|
services: ["redis"],
|
|
27
27
|
skillPacks: []
|
|
28
28
|
}), "services:\n redis:\n image: redis\n bad_indent:\n- broken\n::: invalid").errors.filter((e) => e.type === "yaml_invalid").length).toBeGreaterThanOrEqual(1);
|
|
29
29
|
});
|
|
30
|
-
|
|
30
|
+
require_test_CTcmp4Su.it("detects invalid domain", () => {
|
|
31
31
|
const resolved = require_resolver.resolve({
|
|
32
32
|
services: ["redis"],
|
|
33
33
|
skillPacks: []
|
|
34
34
|
});
|
|
35
|
-
|
|
35
|
+
require_test_CTcmp4Su.globalExpect(require_validator.validate(resolved, require_composer.compose(resolved, defaultComposeOptions), { domain: "not-a-domain" }).errors.filter((e) => e.type === "invalid_domain").length).toBeGreaterThanOrEqual(1);
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
require_test_CTcmp4Su.it("accepts valid domain", () => {
|
|
38
38
|
const resolved = require_resolver.resolve({
|
|
39
39
|
services: ["redis"],
|
|
40
40
|
skillPacks: []
|
|
41
41
|
});
|
|
42
|
-
|
|
42
|
+
require_test_CTcmp4Su.globalExpect(require_validator.validate(resolved, require_composer.compose(resolved, defaultComposeOptions), { domain: "example.com" }).errors.filter((e) => e.type === "invalid_domain")).toHaveLength(0);
|
|
43
43
|
});
|
|
44
|
-
|
|
44
|
+
require_test_CTcmp4Su.it("validates full stack without errors", () => {
|
|
45
45
|
const resolved = require_resolver.resolve({
|
|
46
46
|
services: [
|
|
47
47
|
"redis",
|
|
@@ -54,8 +54,8 @@ require_vi_2VT5v0um.describe("validate", () => {
|
|
|
54
54
|
skillPacks: []
|
|
55
55
|
});
|
|
56
56
|
const result = require_validator.validate(resolved, require_composer.compose(resolved, defaultComposeOptions));
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
require_test_CTcmp4Su.globalExpect(result.valid).toBe(true);
|
|
58
|
+
require_test_CTcmp4Su.globalExpect(result.errors).toHaveLength(0);
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validator.test.cjs","names":["describe","resolve","validate","compose"],"sources":["../src/validator.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport { compose } from \"./composer.js\";\nimport { resolve } from \"./resolver.js\";\nimport type { ComposeOptions } from \"./types.js\";\nimport { validate } from \"./validator.js\";\n\nconst defaultComposeOptions: ComposeOptions = {\n\tprojectName: \"test-project\",\n\tproxy: \"none\",\n\tgpu: false,\n\tplatform: \"linux/amd64\",\n\tdeployment: \"local\",\n\topenclawVersion: \"latest\",\n};\n\ndescribe(\"validate\", () => {\n\tit(\"validates a valid minimal stack\", () => {\n\t\tconst resolved = resolve({ services: [\"redis\"], skillPacks: [] });\n\t\tconst yaml = compose(resolved, defaultComposeOptions);\n\t\tconst result = validate(resolved, yaml);\n\n\t\texpect(result.valid).toBe(true);\n\t\texpect(result.errors).toHaveLength(0);\n\t});\n\n\tit(\"detects invalid YAML\", () => {\n\t\tconst resolved = resolve({ services: [\"redis\"], skillPacks: [] });\n\t\tconst brokenYaml =\n\t\t\t\"services:\\n redis:\\n image: redis\\n bad_indent:\\n- broken\\n::: invalid\";\n\n\t\tconst result = validate(resolved, brokenYaml);\n\n\t\tconst yamlErrors = result.errors.filter((e) => e.type === \"yaml_invalid\");\n\t\texpect(yamlErrors.length).toBeGreaterThanOrEqual(1);\n\t});\n\n\tit(\"detects invalid domain\", () => {\n\t\tconst resolved = resolve({ services: [\"redis\"], skillPacks: [] });\n\t\tconst yaml = compose(resolved, defaultComposeOptions);\n\t\tconst result = validate(resolved, yaml, { domain: \"not-a-domain\" });\n\n\t\tconst domainErrors = result.errors.filter((e) => e.type === \"invalid_domain\");\n\t\texpect(domainErrors.length).toBeGreaterThanOrEqual(1);\n\t});\n\n\tit(\"accepts valid domain\", () => {\n\t\tconst resolved = resolve({ services: [\"redis\"], skillPacks: [] });\n\t\tconst yaml = compose(resolved, defaultComposeOptions);\n\t\tconst result = validate(resolved, yaml, { domain: \"example.com\" });\n\n\t\tconst domainErrors = result.errors.filter((e) => e.type === \"invalid_domain\");\n\t\texpect(domainErrors).toHaveLength(0);\n\t});\n\n\tit(\"validates full stack without errors\", () => {\n\t\tconst resolved = resolve({\n\t\t\tservices: [\"redis\", \"qdrant\", \"n8n\", \"minio\", \"browserless\", \"searxng\"],\n\t\t\tskillPacks: [],\n\t\t});\n\t\tconst yaml = compose(resolved, defaultComposeOptions);\n\t\tconst result = validate(resolved, yaml);\n\n\t\texpect(result.valid).toBe(true);\n\t\texpect(result.errors).toHaveLength(0);\n\t});\n});\n"],"mappings":";;;;;AAMA,MAAM,wBAAwC;CAC7C,aAAa;CACb,OAAO;CACP,KAAK;CACL,UAAU;CACV,YAAY;CACZ,iBAAiB;CACjB;AAEDA,
|
|
1
|
+
{"version":3,"file":"validator.test.cjs","names":["describe","resolve","validate","compose"],"sources":["../src/validator.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport { compose } from \"./composer.js\";\nimport { resolve } from \"./resolver.js\";\nimport type { ComposeOptions } from \"./types.js\";\nimport { validate } from \"./validator.js\";\n\nconst defaultComposeOptions: ComposeOptions = {\n\tprojectName: \"test-project\",\n\tproxy: \"none\",\n\tgpu: false,\n\tplatform: \"linux/amd64\",\n\tdeployment: \"local\",\n\topenclawVersion: \"latest\",\n};\n\ndescribe(\"validate\", () => {\n\tit(\"validates a valid minimal stack\", () => {\n\t\tconst resolved = resolve({ services: [\"redis\"], skillPacks: [] });\n\t\tconst yaml = compose(resolved, defaultComposeOptions);\n\t\tconst result = validate(resolved, yaml);\n\n\t\texpect(result.valid).toBe(true);\n\t\texpect(result.errors).toHaveLength(0);\n\t});\n\n\tit(\"detects invalid YAML\", () => {\n\t\tconst resolved = resolve({ services: [\"redis\"], skillPacks: [] });\n\t\tconst brokenYaml =\n\t\t\t\"services:\\n redis:\\n image: redis\\n bad_indent:\\n- broken\\n::: invalid\";\n\n\t\tconst result = validate(resolved, brokenYaml);\n\n\t\tconst yamlErrors = result.errors.filter((e) => e.type === \"yaml_invalid\");\n\t\texpect(yamlErrors.length).toBeGreaterThanOrEqual(1);\n\t});\n\n\tit(\"detects invalid domain\", () => {\n\t\tconst resolved = resolve({ services: [\"redis\"], skillPacks: [] });\n\t\tconst yaml = compose(resolved, defaultComposeOptions);\n\t\tconst result = validate(resolved, yaml, { domain: \"not-a-domain\" });\n\n\t\tconst domainErrors = result.errors.filter((e) => e.type === \"invalid_domain\");\n\t\texpect(domainErrors.length).toBeGreaterThanOrEqual(1);\n\t});\n\n\tit(\"accepts valid domain\", () => {\n\t\tconst resolved = resolve({ services: [\"redis\"], skillPacks: [] });\n\t\tconst yaml = compose(resolved, defaultComposeOptions);\n\t\tconst result = validate(resolved, yaml, { domain: \"example.com\" });\n\n\t\tconst domainErrors = result.errors.filter((e) => e.type === \"invalid_domain\");\n\t\texpect(domainErrors).toHaveLength(0);\n\t});\n\n\tit(\"validates full stack without errors\", () => {\n\t\tconst resolved = resolve({\n\t\t\tservices: [\"redis\", \"qdrant\", \"n8n\", \"minio\", \"browserless\", \"searxng\"],\n\t\t\tskillPacks: [],\n\t\t});\n\t\tconst yaml = compose(resolved, defaultComposeOptions);\n\t\tconst result = validate(resolved, yaml);\n\n\t\texpect(result.valid).toBe(true);\n\t\texpect(result.errors).toHaveLength(0);\n\t});\n});\n"],"mappings":";;;;;AAMA,MAAM,wBAAwC;CAC7C,aAAa;CACb,OAAO;CACP,KAAK;CACL,UAAU;CACV,YAAY;CACZ,iBAAiB;CACjB;AAEDA,sBAAAA,SAAS,kBAAkB;AAC1B,uBAAA,GAAG,yCAAyC;EAC3C,MAAM,WAAWC,iBAAAA,QAAQ;GAAE,UAAU,CAAC,QAAQ;GAAE,YAAY,EAAE;GAAE,CAAC;EAEjE,MAAM,SAASC,kBAAAA,SAAS,UADXC,iBAAAA,QAAQ,UAAU,sBAAsB,CACd;AAEvC,wBAAA,aAAO,OAAO,MAAM,CAAC,KAAK,KAAK;AAC/B,wBAAA,aAAO,OAAO,OAAO,CAAC,aAAa,EAAE;GACpC;AAEF,uBAAA,GAAG,8BAA8B;AAQhC,wBAAA,aAHeD,kBAAAA,SAJED,iBAAAA,QAAQ;GAAE,UAAU,CAAC,QAAQ;GAAE,YAAY,EAAE;GAAE,CAAC,EAEhE,8EAE4C,CAEnB,OAAO,QAAQ,MAAM,EAAE,SAAS,eAAe,CACvD,OAAO,CAAC,uBAAuB,EAAE;GAClD;AAEF,uBAAA,GAAG,gCAAgC;EAClC,MAAM,WAAWA,iBAAAA,QAAQ;GAAE,UAAU,CAAC,QAAQ;GAAE,YAAY,EAAE;GAAE,CAAC;AAKjE,wBAAA,aAHeC,kBAAAA,SAAS,UADXC,iBAAAA,QAAQ,UAAU,sBAAsB,EACb,EAAE,QAAQ,gBAAgB,CAAC,CAEvC,OAAO,QAAQ,MAAM,EAAE,SAAS,iBAAiB,CACzD,OAAO,CAAC,uBAAuB,EAAE;GACpD;AAEF,uBAAA,GAAG,8BAA8B;EAChC,MAAM,WAAWF,iBAAAA,QAAQ;GAAE,UAAU,CAAC,QAAQ;GAAE,YAAY,EAAE;GAAE,CAAC;AAKjE,wBAAA,aAHeC,kBAAAA,SAAS,UADXC,iBAAAA,QAAQ,UAAU,sBAAsB,EACb,EAAE,QAAQ,eAAe,CAAC,CAEtC,OAAO,QAAQ,MAAM,EAAE,SAAS,iBAAiB,CACzD,CAAC,aAAa,EAAE;GACnC;AAEF,uBAAA,GAAG,6CAA6C;EAC/C,MAAM,WAAWF,iBAAAA,QAAQ;GACxB,UAAU;IAAC;IAAS;IAAU;IAAO;IAAS;IAAe;IAAU;GACvE,YAAY,EAAE;GACd,CAAC;EAEF,MAAM,SAASC,kBAAAA,SAAS,UADXC,iBAAAA,QAAQ,UAAU,sBAAsB,CACd;AAEvC,wBAAA,aAAO,OAAO,MAAM,CAAC,KAAK,KAAK;AAC/B,wBAAA,aAAO,OAAO,OAAO,CAAC,aAAa,EAAE;GACpC;EACD"}
|
package/dist/validator.test.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as describe, r as it, t as globalExpect } from "./
|
|
2
|
-
import { resolve } from "./resolver.mjs";
|
|
1
|
+
import { n as describe, r as it, t as globalExpect } from "./test.CTcmp4Su-ClCHJ3FA.mjs";
|
|
3
2
|
import { compose } from "./composer.mjs";
|
|
3
|
+
import { resolve } from "./resolver.mjs";
|
|
4
4
|
import { validate } from "./validator.mjs";
|
|
5
5
|
//#region src/validator.test.ts
|
|
6
6
|
const defaultComposeOptions = {
|