@vibesdotdev/infra-core 0.0.1 → 1.0.0-rc.11
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/LICENSE +18 -0
- package/README.md +34 -63
- package/dist/bootstrap/seed.descriptor.d.ts +1 -1
- package/dist/bootstrap/seed.descriptor.d.ts.map +1 -1
- package/dist/bootstrap/seed.descriptor.js +1 -1
- package/dist/bootstrap/seed.descriptor.js.map +1 -1
- package/dist/bootstrap/seed.impl-shape.d.ts +1 -1
- package/dist/bootstrap/seed.impl-shape.d.ts.map +1 -1
- package/dist/bootstrap/seed.kind.d.ts +1 -3
- package/dist/bootstrap/seed.kind.d.ts.map +1 -1
- package/dist/bootstrap/seed.kind.js +17 -4
- package/dist/bootstrap/seed.kind.js.map +1 -1
- package/dist/bootstrap/seed.runner.d.ts +9 -2
- package/dist/bootstrap/seed.runner.d.ts.map +1 -1
- package/dist/bootstrap/seed.runner.js +37 -18
- package/dist/bootstrap/seed.runner.js.map +1 -1
- package/dist/capped-id.d.ts +19 -0
- package/dist/capped-id.d.ts.map +1 -0
- package/dist/capped-id.js +64 -0
- package/dist/capped-id.js.map +1 -0
- package/dist/cli/generate/artifact/artifact.cli-command.descriptor.d.ts +23 -0
- package/dist/cli/generate/artifact/artifact.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/generate/artifact/artifact.cli-command.descriptor.js +33 -0
- package/dist/cli/generate/artifact/artifact.cli-command.descriptor.js.map +1 -0
- package/dist/cli/generate/artifact/artifact.cli-command.impl.d.ts +24 -0
- package/dist/cli/generate/artifact/artifact.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/generate/artifact/artifact.cli-command.impl.js +73 -0
- package/dist/cli/generate/artifact/artifact.cli-command.impl.js.map +1 -0
- package/dist/cli/generate/context.d.ts +17 -0
- package/dist/cli/generate/context.d.ts.map +1 -0
- package/dist/cli/generate/context.js +24 -0
- package/dist/cli/generate/context.js.map +1 -0
- package/dist/cli/generate/generate/generate.cli-command.descriptor.d.ts +30 -0
- package/dist/cli/generate/generate/generate.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/generate/generate/generate.cli-command.descriptor.js +25 -0
- package/dist/cli/generate/generate/generate.cli-command.descriptor.js.map +1 -0
- package/dist/cli/generate/generate/generate.cli-command.impl.d.ts +25 -0
- package/dist/cli/generate/generate/generate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/generate/generate/generate.cli-command.impl.js +64 -0
- package/dist/cli/generate/generate/generate.cli-command.impl.js.map +1 -0
- package/dist/cli/generate/generate-core.d.ts +51 -0
- package/dist/cli/generate/generate-core.d.ts.map +1 -0
- package/dist/cli/generate/generate-core.js +172 -0
- package/dist/cli/generate/generate-core.js.map +1 -0
- package/dist/cli/generate/index.d.ts +5 -0
- package/dist/cli/generate/index.d.ts.map +1 -0
- package/dist/cli/generate/index.js +5 -0
- package/dist/cli/generate/index.js.map +1 -0
- package/dist/credentials/resolve.d.ts +82 -22
- package/dist/credentials/resolve.d.ts.map +1 -1
- package/dist/credentials/resolve.js +251 -77
- package/dist/credentials/resolve.js.map +1 -1
- package/dist/deployment-budget.d.ts +319 -0
- package/dist/deployment-budget.d.ts.map +1 -0
- package/dist/deployment-budget.js +660 -0
- package/dist/deployment-budget.js.map +1 -0
- package/dist/deployment-environment.d.ts +30 -0
- package/dist/deployment-environment.d.ts.map +1 -0
- package/dist/deployment-environment.js +53 -0
- package/dist/deployment-environment.js.map +1 -0
- package/dist/deployment-graph.d.ts +185 -0
- package/dist/deployment-graph.d.ts.map +1 -0
- package/dist/deployment-graph.js +705 -0
- package/dist/deployment-graph.js.map +1 -0
- package/dist/deployment.d.ts +25 -4
- package/dist/deployment.d.ts.map +1 -1
- package/dist/deployment.js +105 -0
- package/dist/deployment.js.map +1 -1
- package/dist/doks/cloud/base.d.ts +49 -0
- package/dist/doks/cloud/base.d.ts.map +1 -0
- package/dist/doks/cloud/base.js +138 -0
- package/dist/doks/cloud/base.js.map +1 -0
- package/dist/doks/cloud/factory.d.ts +18 -0
- package/dist/doks/cloud/factory.d.ts.map +1 -0
- package/dist/doks/cloud/factory.js +22 -0
- package/dist/doks/cloud/factory.js.map +1 -0
- package/dist/doks/cloud/index.d.ts +5 -0
- package/dist/doks/cloud/index.d.ts.map +1 -0
- package/dist/doks/cloud/index.js +4 -0
- package/dist/doks/cloud/index.js.map +1 -0
- package/dist/doks/types.d.ts +95 -0
- package/dist/doks/types.d.ts.map +1 -0
- package/dist/doks/types.js +14 -0
- package/dist/doks/types.js.map +1 -0
- package/dist/generate/index.d.ts +29 -0
- package/dist/generate/index.d.ts.map +1 -0
- package/dist/generate/index.js +28 -0
- package/dist/generate/index.js.map +1 -0
- package/dist/generate/infra-generate.plugin.d.ts +3 -0
- package/dist/generate/infra-generate.plugin.d.ts.map +1 -0
- package/dist/generate/infra-generate.plugin.js +23 -0
- package/dist/generate/infra-generate.plugin.js.map +1 -0
- package/dist/generate/plugin.d.ts +2 -0
- package/dist/generate/plugin.d.ts.map +1 -0
- package/dist/generate/plugin.js +2 -0
- package/dist/generate/plugin.js.map +1 -0
- package/dist/heartbeat/cron-heartbeat.d.ts +97 -0
- package/dist/heartbeat/cron-heartbeat.d.ts.map +1 -0
- package/dist/heartbeat/cron-heartbeat.js +200 -0
- package/dist/heartbeat/cron-heartbeat.js.map +1 -0
- package/dist/index.d.ts +37 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -14
- package/dist/index.js.map +1 -1
- package/dist/infra.plugin.d.ts +1 -1
- package/dist/infra.plugin.d.ts.map +1 -1
- package/dist/infra.plugin.js +64 -12
- package/dist/infra.plugin.js.map +1 -1
- package/dist/kinds/alerts.kind.d.ts +64 -25
- package/dist/kinds/alerts.kind.d.ts.map +1 -1
- package/dist/kinds/alerts.kind.js +43 -16
- package/dist/kinds/alerts.kind.js.map +1 -1
- package/dist/kinds/artifact.kind.d.ts +58 -10
- package/dist/kinds/artifact.kind.d.ts.map +1 -1
- package/dist/kinds/artifact.kind.js +26 -9
- package/dist/kinds/artifact.kind.js.map +1 -1
- package/dist/kinds/billing.kind.d.ts +88 -0
- package/dist/kinds/billing.kind.d.ts.map +1 -0
- package/dist/kinds/billing.kind.js +48 -0
- package/dist/kinds/billing.kind.js.map +1 -0
- package/dist/kinds/build-job.kind.d.ts +383 -0
- package/dist/kinds/build-job.kind.d.ts.map +1 -0
- package/dist/kinds/build-job.kind.js +218 -0
- package/dist/kinds/build-job.kind.js.map +1 -0
- package/dist/kinds/cache-byte-store.d.ts +23 -0
- package/dist/kinds/cache-byte-store.d.ts.map +1 -0
- package/dist/kinds/cache-byte-store.js +9 -0
- package/dist/kinds/cache-byte-store.js.map +1 -0
- package/dist/kinds/cache.kind.d.ts +38 -94
- package/dist/kinds/cache.kind.d.ts.map +1 -1
- package/dist/kinds/cache.kind.js +39 -50
- package/dist/kinds/cache.kind.js.map +1 -1
- package/dist/kinds/cluster.kind.d.ts +154 -0
- package/dist/kinds/cluster.kind.d.ts.map +1 -0
- package/dist/kinds/cluster.kind.js +99 -0
- package/dist/kinds/cluster.kind.js.map +1 -0
- package/dist/kinds/compute-source.kind.d.ts +155 -0
- package/dist/kinds/compute-source.kind.d.ts.map +1 -0
- package/dist/kinds/compute-source.kind.js +158 -0
- package/dist/kinds/compute-source.kind.js.map +1 -0
- package/dist/kinds/container-registry.kind.d.ts +62 -0
- package/dist/kinds/container-registry.kind.d.ts.map +1 -0
- package/dist/kinds/container-registry.kind.js +47 -0
- package/dist/kinds/container-registry.kind.js.map +1 -0
- package/dist/kinds/database-migrator.kind.d.ts +6 -0
- package/dist/kinds/database-migrator.kind.d.ts.map +1 -0
- package/dist/kinds/database-migrator.kind.js +28 -0
- package/dist/kinds/database-migrator.kind.js.map +1 -0
- package/dist/kinds/database.kind.d.ts +114 -93
- package/dist/kinds/database.kind.d.ts.map +1 -1
- package/dist/kinds/database.kind.js +93 -54
- package/dist/kinds/database.kind.js.map +1 -1
- package/dist/kinds/deployment-provider.kind.d.ts +5 -0
- package/dist/kinds/deployment-provider.kind.d.ts.map +1 -0
- package/dist/kinds/deployment-provider.kind.js +11 -0
- package/dist/kinds/deployment-provider.kind.js.map +1 -0
- package/dist/kinds/discovery.d.ts +5 -12
- package/dist/kinds/discovery.d.ts.map +1 -1
- package/dist/kinds/discovery.js +5 -17
- package/dist/kinds/discovery.js.map +1 -1
- package/dist/kinds/dns.kind.d.ts +162 -0
- package/dist/kinds/dns.kind.d.ts.map +1 -0
- package/dist/kinds/dns.kind.js +54 -0
- package/dist/kinds/dns.kind.js.map +1 -0
- package/dist/kinds/drift.kind.d.ts +115 -0
- package/dist/kinds/drift.kind.d.ts.map +1 -0
- package/dist/kinds/drift.kind.js +60 -0
- package/dist/kinds/drift.kind.js.map +1 -0
- package/dist/kinds/edge-hostname.kind.d.ts +124 -0
- package/dist/kinds/edge-hostname.kind.d.ts.map +1 -0
- package/dist/kinds/edge-hostname.kind.js +87 -0
- package/dist/kinds/edge-hostname.kind.js.map +1 -0
- package/dist/kinds/edge-tls.kind.d.ts +194 -0
- package/dist/kinds/edge-tls.kind.d.ts.map +1 -0
- package/dist/kinds/edge-tls.kind.js +58 -0
- package/dist/kinds/edge-tls.kind.js.map +1 -0
- package/dist/kinds/firewall.kind.d.ts +92 -0
- package/dist/kinds/firewall.kind.d.ts.map +1 -0
- package/dist/kinds/firewall.kind.js +59 -0
- package/dist/kinds/firewall.kind.js.map +1 -0
- package/dist/kinds/git-hosting.kind.d.ts +36 -38
- package/dist/kinds/git-hosting.kind.d.ts.map +1 -1
- package/dist/kinds/git-hosting.kind.js +23 -34
- package/dist/kinds/git-hosting.kind.js.map +1 -1
- package/dist/kinds/index.d.ts +41 -15
- package/dist/kinds/index.d.ts.map +1 -1
- package/dist/kinds/index.js +40 -14
- package/dist/kinds/index.js.map +1 -1
- package/dist/kinds/inventory.kind.d.ts +245 -0
- package/dist/kinds/inventory.kind.d.ts.map +1 -0
- package/dist/kinds/inventory.kind.js +243 -0
- package/dist/kinds/inventory.kind.js.map +1 -0
- package/dist/kinds/load-balancer.kind.d.ts +135 -0
- package/dist/kinds/load-balancer.kind.d.ts.map +1 -0
- package/dist/kinds/load-balancer.kind.js +71 -0
- package/dist/kinds/load-balancer.kind.js.map +1 -0
- package/dist/kinds/logs.kind.d.ts +74 -3
- package/dist/kinds/logs.kind.d.ts.map +1 -1
- package/dist/kinds/logs.kind.js +26 -17
- package/dist/kinds/logs.kind.js.map +1 -1
- package/dist/kinds/nfs.kind.d.ts +67 -0
- package/dist/kinds/nfs.kind.d.ts.map +1 -0
- package/dist/kinds/nfs.kind.js +45 -0
- package/dist/kinds/nfs.kind.js.map +1 -0
- package/dist/kinds/node-pool.kind.d.ts +134 -0
- package/dist/kinds/node-pool.kind.d.ts.map +1 -0
- package/dist/kinds/node-pool.kind.js +88 -0
- package/dist/kinds/node-pool.kind.js.map +1 -0
- package/dist/kinds/object-storage.kind.d.ts +50 -24
- package/dist/kinds/object-storage.kind.d.ts.map +1 -1
- package/dist/kinds/object-storage.kind.js +40 -23
- package/dist/kinds/object-storage.kind.js.map +1 -1
- package/dist/kinds/observability.kind.d.ts +104 -6
- package/dist/kinds/observability.kind.d.ts.map +1 -1
- package/dist/kinds/observability.kind.js +67 -9
- package/dist/kinds/observability.kind.js.map +1 -1
- package/dist/kinds/package-registry.kind.d.ts +141 -35
- package/dist/kinds/package-registry.kind.d.ts.map +1 -1
- package/dist/kinds/package-registry.kind.js +55 -25
- package/dist/kinds/package-registry.kind.js.map +1 -1
- package/dist/kinds/queue.kind.d.ts +67 -63
- package/dist/kinds/queue.kind.d.ts.map +1 -1
- package/dist/kinds/queue.kind.js +55 -33
- package/dist/kinds/queue.kind.js.map +1 -1
- package/dist/kinds/read-descriptor.d.ts +15 -0
- package/dist/kinds/read-descriptor.d.ts.map +1 -0
- package/dist/kinds/read-descriptor.js +11 -0
- package/dist/kinds/read-descriptor.js.map +1 -0
- package/dist/kinds/rum.kind.d.ts +36 -6
- package/dist/kinds/rum.kind.d.ts.map +1 -1
- package/dist/kinds/rum.kind.js +6 -7
- package/dist/kinds/rum.kind.js.map +1 -1
- package/dist/kinds/sandbox.kind.d.ts +136 -40
- package/dist/kinds/sandbox.kind.d.ts.map +1 -1
- package/dist/kinds/sandbox.kind.js +82 -43
- package/dist/kinds/sandbox.kind.js.map +1 -1
- package/dist/kinds/select-compute-source.d.ts +72 -0
- package/dist/kinds/select-compute-source.d.ts.map +1 -0
- package/dist/kinds/select-compute-source.js +170 -0
- package/dist/kinds/select-compute-source.js.map +1 -0
- package/dist/kinds/service-release.kind.d.ts +771 -0
- package/dist/kinds/service-release.kind.d.ts.map +1 -0
- package/dist/kinds/service-release.kind.js +676 -0
- package/dist/kinds/service-release.kind.js.map +1 -0
- package/dist/kinds/spend-guard.kind.d.ts +41 -0
- package/dist/kinds/spend-guard.kind.d.ts.map +1 -0
- package/dist/kinds/spend-guard.kind.js +140 -0
- package/dist/kinds/spend-guard.kind.js.map +1 -0
- package/dist/kinds/utilization.kind.d.ts +88 -0
- package/dist/kinds/utilization.kind.d.ts.map +1 -0
- package/dist/kinds/utilization.kind.js +62 -0
- package/dist/kinds/utilization.kind.js.map +1 -0
- package/dist/kinds/volume.kind.d.ts +54 -0
- package/dist/kinds/volume.kind.d.ts.map +1 -0
- package/dist/kinds/volume.kind.js +39 -0
- package/dist/kinds/volume.kind.js.map +1 -0
- package/dist/kinds/vpc.kind.d.ts +61 -0
- package/dist/kinds/vpc.kind.d.ts.map +1 -0
- package/dist/kinds/vpc.kind.js +51 -0
- package/dist/kinds/vpc.kind.js.map +1 -0
- package/dist/kinds/web-app.kind.d.ts +118 -45
- package/dist/kinds/web-app.kind.d.ts.map +1 -1
- package/dist/kinds/web-app.kind.js +69 -42
- package/dist/kinds/web-app.kind.js.map +1 -1
- package/dist/kinds/worker.kind.d.ts +129 -188
- package/dist/kinds/worker.kind.d.ts.map +1 -1
- package/dist/kinds/worker.kind.js +45 -123
- package/dist/kinds/worker.kind.js.map +1 -1
- package/dist/schemas/database-migration.d.ts +173 -0
- package/dist/schemas/database-migration.d.ts.map +1 -0
- package/dist/schemas/database-migration.js +88 -0
- package/dist/schemas/database-migration.js.map +1 -0
- package/dist/schemas/deployment-environment.d.ts +11 -0
- package/dist/schemas/deployment-environment.d.ts.map +1 -0
- package/dist/schemas/deployment-environment.js +9 -0
- package/dist/schemas/deployment-environment.js.map +1 -0
- package/dist/schemas/deployment-provider.d.ts +383 -0
- package/dist/schemas/deployment-provider.d.ts.map +1 -0
- package/dist/schemas/deployment-provider.js +211 -0
- package/dist/schemas/deployment-provider.js.map +1 -0
- package/dist/schemas/log-stream.d.ts +27 -0
- package/dist/schemas/log-stream.d.ts.map +1 -0
- package/dist/schemas/log-stream.js +31 -0
- package/dist/schemas/log-stream.js.map +1 -0
- package/dist/schemas/spend-guard.d.ts +155 -0
- package/dist/schemas/spend-guard.d.ts.map +1 -0
- package/dist/schemas/spend-guard.js +61 -0
- package/dist/schemas/spend-guard.js.map +1 -0
- package/dist/schemas.d.ts +195 -20
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +151 -31
- package/dist/schemas.js.map +1 -1
- package/dist/service.d.ts +87 -0
- package/dist/service.d.ts.map +1 -0
- package/dist/service.js +199 -0
- package/dist/service.js.map +1 -0
- package/dist/settle-work.d.ts +20 -0
- package/dist/settle-work.d.ts.map +1 -0
- package/dist/settle-work.js +22 -0
- package/dist/settle-work.js.map +1 -0
- package/dist/web-app-projection.d.ts +208 -0
- package/dist/web-app-projection.d.ts.map +1 -0
- package/dist/web-app-projection.js +95 -0
- package/dist/web-app-projection.js.map +1 -0
- package/package.json +123 -40
- package/SPEC.md +0 -169
- package/src/bootstrap/index.ts +0 -15
- package/src/bootstrap/seed.descriptor.ts +0 -24
- package/src/bootstrap/seed.impl-shape.ts +0 -5
- package/src/bootstrap/seed.kind.ts +0 -26
- package/src/bootstrap/seed.runner.ts +0 -87
- package/src/credentials/resolve.ts +0 -205
- package/src/deployment.ts +0 -57
- package/src/index.ts +0 -149
- package/src/infra.plugin.ts +0 -54
- package/src/kinds/alerts.kind.ts +0 -164
- package/src/kinds/artifact.kind.ts +0 -96
- package/src/kinds/cache.kind.ts +0 -104
- package/src/kinds/database.kind.ts +0 -120
- package/src/kinds/discovery.ts +0 -26
- package/src/kinds/git-hosting.kind.ts +0 -100
- package/src/kinds/index.ts +0 -139
- package/src/kinds/logs.kind.ts +0 -104
- package/src/kinds/object-storage.kind.ts +0 -101
- package/src/kinds/observability.kind.ts +0 -178
- package/src/kinds/package-registry.kind.ts +0 -95
- package/src/kinds/queue.kind.ts +0 -102
- package/src/kinds/rum.kind.ts +0 -135
- package/src/kinds/sandbox.kind.ts +0 -115
- package/src/kinds/web-app.kind.ts +0 -103
- package/src/kinds/worker.kind.ts +0 -203
- package/src/schemas.ts +0 -127
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
3
|
+
import type { ArtifactOutput } from './kinds/artifact.kind.ts';
|
|
4
|
+
import type { WebAppDescriptor } from './kinds/web-app.kind.ts';
|
|
5
|
+
/** The formatter belongs to the declared project, never a global fallback. */
|
|
6
|
+
export declare const WebAppFormatterSchema: z.ZodObject<{
|
|
7
|
+
projectRoot: z.ZodString;
|
|
8
|
+
bunExecutable: z.ZodString;
|
|
9
|
+
prettierExecutable: z.ZodString;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
export declare const WebAppProjectionOptionsSchema: z.ZodObject<{
|
|
12
|
+
appRoot: z.ZodString;
|
|
13
|
+
target: z.ZodEnum<{
|
|
14
|
+
local: "local";
|
|
15
|
+
production: "production";
|
|
16
|
+
}>;
|
|
17
|
+
projectionEnvironment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
18
|
+
deployment: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
appId: z.ZodString;
|
|
20
|
+
appName: z.ZodString;
|
|
21
|
+
provider: z.ZodString;
|
|
22
|
+
providerPlugin: z.ZodOptional<z.ZodString>;
|
|
23
|
+
runtime: z.ZodEnum<{
|
|
24
|
+
browser: "browser";
|
|
25
|
+
worker: "worker";
|
|
26
|
+
edge: "edge";
|
|
27
|
+
node: "node";
|
|
28
|
+
}>;
|
|
29
|
+
build: z.ZodObject<{
|
|
30
|
+
workspaceRootDir: z.ZodDefault<z.ZodString>;
|
|
31
|
+
appDir: z.ZodString;
|
|
32
|
+
installCommand: z.ZodOptional<z.ZodString>;
|
|
33
|
+
buildCommand: z.ZodString;
|
|
34
|
+
outputDir: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
origins: z.ZodArray<z.ZodObject<{
|
|
37
|
+
hostname: z.ZodString;
|
|
38
|
+
origin: z.ZodString;
|
|
39
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
40
|
+
internal: "internal";
|
|
41
|
+
primary: "primary";
|
|
42
|
+
redirect: "redirect";
|
|
43
|
+
preview: "preview";
|
|
44
|
+
alias: "alias";
|
|
45
|
+
}>>;
|
|
46
|
+
description: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
env: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
public: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
value: z.ZodOptional<z.ZodString>;
|
|
53
|
+
secret: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
description: z.ZodOptional<z.ZodString>;
|
|
55
|
+
storeKey: z.ZodOptional<z.ZodString>;
|
|
56
|
+
storeBinding: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
dependsOn: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
59
|
+
appId: z.ZodString;
|
|
60
|
+
reason: z.ZodString;
|
|
61
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
62
|
+
}, z.core.$strip>>>;
|
|
63
|
+
upstreams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
origin: z.ZodString;
|
|
66
|
+
purpose: z.ZodString;
|
|
67
|
+
originEnvVar: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$strip>>>;
|
|
69
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
70
|
+
kvNamespaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
71
|
+
binding: z.ZodString;
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
preview_id: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
75
|
+
preDeployCommands: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
76
|
+
command: z.ZodString;
|
|
77
|
+
description: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
pty: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
shell: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
maxSessions: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
edge: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
purgePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
migrations: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
requiredForLocalDev: z.ZodDefault<z.ZodBoolean>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
formatter: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
projectRoot: z.ZodString;
|
|
93
|
+
bunExecutable: z.ZodString;
|
|
94
|
+
prettierExecutable: z.ZodString;
|
|
95
|
+
}, z.core.$strict>>;
|
|
96
|
+
signal: z.ZodOptional<z.ZodInstanceOf<AbortSignal>>;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
export type WebAppProjectionOptions = z.infer<typeof WebAppProjectionOptionsSchema>;
|
|
99
|
+
export declare const WebAppTextArtifactSchema: z.ZodObject<{
|
|
100
|
+
content: z.ZodString;
|
|
101
|
+
filename: z.ZodString;
|
|
102
|
+
path: z.ZodString;
|
|
103
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
104
|
+
}, z.core.$strict>;
|
|
105
|
+
export type WebAppTextArtifact = Omit<ArtifactOutput, 'content'> & {
|
|
106
|
+
content: string;
|
|
107
|
+
};
|
|
108
|
+
export declare const WebAppProjectionSchema: z.ZodObject<{
|
|
109
|
+
deployment: z.ZodObject<{
|
|
110
|
+
appId: z.ZodString;
|
|
111
|
+
appName: z.ZodString;
|
|
112
|
+
provider: z.ZodString;
|
|
113
|
+
providerPlugin: z.ZodOptional<z.ZodString>;
|
|
114
|
+
runtime: z.ZodEnum<{
|
|
115
|
+
browser: "browser";
|
|
116
|
+
worker: "worker";
|
|
117
|
+
edge: "edge";
|
|
118
|
+
node: "node";
|
|
119
|
+
}>;
|
|
120
|
+
build: z.ZodObject<{
|
|
121
|
+
workspaceRootDir: z.ZodDefault<z.ZodString>;
|
|
122
|
+
appDir: z.ZodString;
|
|
123
|
+
installCommand: z.ZodOptional<z.ZodString>;
|
|
124
|
+
buildCommand: z.ZodString;
|
|
125
|
+
outputDir: z.ZodString;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
origins: z.ZodArray<z.ZodObject<{
|
|
128
|
+
hostname: z.ZodString;
|
|
129
|
+
origin: z.ZodString;
|
|
130
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
131
|
+
internal: "internal";
|
|
132
|
+
primary: "primary";
|
|
133
|
+
redirect: "redirect";
|
|
134
|
+
preview: "preview";
|
|
135
|
+
alias: "alias";
|
|
136
|
+
}>>;
|
|
137
|
+
description: z.ZodOptional<z.ZodString>;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
env: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
140
|
+
name: z.ZodString;
|
|
141
|
+
public: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
value: z.ZodOptional<z.ZodString>;
|
|
144
|
+
secret: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
description: z.ZodOptional<z.ZodString>;
|
|
146
|
+
storeKey: z.ZodOptional<z.ZodString>;
|
|
147
|
+
storeBinding: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
}, z.core.$strip>>>;
|
|
149
|
+
dependsOn: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
150
|
+
appId: z.ZodString;
|
|
151
|
+
reason: z.ZodString;
|
|
152
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
153
|
+
}, z.core.$strip>>>;
|
|
154
|
+
upstreams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
origin: z.ZodString;
|
|
157
|
+
purpose: z.ZodString;
|
|
158
|
+
originEnvVar: z.ZodOptional<z.ZodString>;
|
|
159
|
+
}, z.core.$strip>>>;
|
|
160
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
161
|
+
kvNamespaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
162
|
+
binding: z.ZodString;
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
preview_id: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>>>;
|
|
166
|
+
preDeployCommands: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
167
|
+
command: z.ZodString;
|
|
168
|
+
description: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>>>;
|
|
170
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
171
|
+
pty: z.ZodOptional<z.ZodBoolean>;
|
|
172
|
+
shell: z.ZodOptional<z.ZodBoolean>;
|
|
173
|
+
maxSessions: z.ZodOptional<z.ZodNumber>;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
edge: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
purgePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
migrations: z.ZodOptional<z.ZodObject<{
|
|
179
|
+
requiredForLocalDev: z.ZodDefault<z.ZodBoolean>;
|
|
180
|
+
}, z.core.$strip>>;
|
|
181
|
+
}, z.core.$strip>;
|
|
182
|
+
provider: z.ZodString;
|
|
183
|
+
managed: z.ZodBoolean;
|
|
184
|
+
workerName: z.ZodNullable<z.ZodString>;
|
|
185
|
+
artifact: z.ZodNullable<z.ZodObject<{
|
|
186
|
+
content: z.ZodString;
|
|
187
|
+
filename: z.ZodString;
|
|
188
|
+
path: z.ZodString;
|
|
189
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
190
|
+
}, z.core.$strict>>;
|
|
191
|
+
}, z.core.$strict>;
|
|
192
|
+
export type WebAppProjection = z.infer<typeof WebAppProjectionSchema>;
|
|
193
|
+
/** Implemented by the provider's per-descriptor runtime loader. */
|
|
194
|
+
export interface WebAppProjectionImplementation {
|
|
195
|
+
readonly config: WebAppDescriptor;
|
|
196
|
+
project(options: WebAppProjectionOptions): Promise<WebAppProjection>;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Resolve one registered deployable through the handed runtime. Options are
|
|
200
|
+
* read once inside the untrusted-input guard (`INVALID_INPUT
|
|
201
|
+
* web-app-projection-options-invalid`); a provider without `project` refuses
|
|
202
|
+
* `UNAVAILABLE web-app-projection-provider-missing`; a provider's typed refusal
|
|
203
|
+
* passes through, any other throw is `INTERNAL web-app-projection-failed`
|
|
204
|
+
* carrying only its value-free facts; a result that does not read is
|
|
205
|
+
* `INTERNAL web-app-projection-invalid`.
|
|
206
|
+
*/
|
|
207
|
+
export declare function projectWebApp(runtime: RuntimeRef, id: string, options: WebAppProjectionOptions): Promise<WebAppProjection>;
|
|
208
|
+
//# sourceMappingURL=web-app-projection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-app-projection.d.ts","sourceRoot":"","sources":["../src/web-app-projection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAA6E,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjI,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB;;;;kBAIhC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBASxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,wBAAwB;;;;;kBAKnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAajC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,mEAAmE;AACnE,MAAM,WAAW,8BAA8B;IAC9C,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,OAAO,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACrE;AAwBD;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAClC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,uBAAuB,GAC9B,OAAO,CAAC,gBAAgB,CAAC,CAuB3B"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { validateAppDeployment } from "./deployment.js";
|
|
3
|
+
import { readUntrusted } from '@vibesdotdev/config/manifest/read-untrusted';
|
|
4
|
+
import { CapabilityError, CaughtFailureSchema, isCapabilityError, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
5
|
+
import { appDeploymentSchema, deploymentProviderSchema } from "./schemas.js";
|
|
6
|
+
/** The formatter belongs to the declared project, never a global fallback. */
|
|
7
|
+
export const WebAppFormatterSchema = z.strictObject({
|
|
8
|
+
projectRoot: z.string().min(1),
|
|
9
|
+
bunExecutable: z.string().min(1),
|
|
10
|
+
prettierExecutable: z.string().min(1)
|
|
11
|
+
});
|
|
12
|
+
export const WebAppProjectionOptionsSchema = z.strictObject({
|
|
13
|
+
/** Absolute app root supplied by the canonical runtime discovery/caller. */
|
|
14
|
+
appRoot: z.string().min(1),
|
|
15
|
+
target: z.enum(['production', 'local']),
|
|
16
|
+
projectionEnvironment: z.record(z.string(), z.string()),
|
|
17
|
+
/** The deployment the artifact renders from: the descriptor's, with the declared credentials reconciled into its env. */
|
|
18
|
+
deployment: appDeploymentSchema.optional(),
|
|
19
|
+
formatter: WebAppFormatterSchema.optional(),
|
|
20
|
+
signal: z.instanceof(AbortSignal).optional()
|
|
21
|
+
});
|
|
22
|
+
export const WebAppTextArtifactSchema = z.strictObject({
|
|
23
|
+
content: z.string(),
|
|
24
|
+
filename: z.string().min(1),
|
|
25
|
+
path: z.string().min(1),
|
|
26
|
+
metadata: z.record(z.string(), z.unknown()).optional()
|
|
27
|
+
});
|
|
28
|
+
export const WebAppProjectionSchema = z.strictObject({
|
|
29
|
+
deployment: appDeploymentSchema,
|
|
30
|
+
provider: deploymentProviderSchema,
|
|
31
|
+
managed: z.boolean(),
|
|
32
|
+
workerName: z.string().min(1).nullable(),
|
|
33
|
+
artifact: WebAppTextArtifactSchema.nullable()
|
|
34
|
+
}).superRefine((projection, context) => {
|
|
35
|
+
if (projection.provider !== projection.deployment.provider) {
|
|
36
|
+
context.addIssue({ code: 'custom', path: ['provider'], message: 'Projection provider must match its deployment.' });
|
|
37
|
+
}
|
|
38
|
+
if (projection.managed && projection.artifact === null) {
|
|
39
|
+
context.addIssue({ code: 'custom', path: ['artifact'], message: 'A managed projection must contain its artifact.' });
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
const OPTIONS_INVALID = {
|
|
43
|
+
code: 'INVALID_INPUT',
|
|
44
|
+
reason: 'web-app-projection-options-invalid',
|
|
45
|
+
message: () => 'Web app projection options are invalid.'
|
|
46
|
+
};
|
|
47
|
+
const PROJECTION_INVALID = {
|
|
48
|
+
code: 'INTERNAL',
|
|
49
|
+
reason: 'web-app-projection-invalid',
|
|
50
|
+
message: () => 'The provider returned an invalid web app projection.'
|
|
51
|
+
};
|
|
52
|
+
const PROVIDER_MISSING = {
|
|
53
|
+
code: 'UNAVAILABLE',
|
|
54
|
+
reason: 'web-app-projection-provider-missing',
|
|
55
|
+
message: () => 'The web app has no composed projection provider.'
|
|
56
|
+
};
|
|
57
|
+
/** A resolved provider offers `project`; kept as the original object (its method uses `this`). */
|
|
58
|
+
const ProjectionOperationsSchema = z.object({ project: z.function() });
|
|
59
|
+
const ProjectionProviderSchema = z.custom((value) => ProjectionOperationsSchema.safeParse(value).success);
|
|
60
|
+
/**
|
|
61
|
+
* Resolve one registered deployable through the handed runtime. Options are
|
|
62
|
+
* read once inside the untrusted-input guard (`INVALID_INPUT
|
|
63
|
+
* web-app-projection-options-invalid`); a provider without `project` refuses
|
|
64
|
+
* `UNAVAILABLE web-app-projection-provider-missing`; a provider's typed refusal
|
|
65
|
+
* passes through, any other throw is `INTERNAL web-app-projection-failed`
|
|
66
|
+
* carrying only its value-free facts; a result that does not read is
|
|
67
|
+
* `INTERNAL web-app-projection-invalid`.
|
|
68
|
+
*/
|
|
69
|
+
export async function projectWebApp(runtime, id, options) {
|
|
70
|
+
const input = readUntrusted(WebAppProjectionOptionsSchema, () => options, OPTIONS_INVALID);
|
|
71
|
+
const resolved = await runtime
|
|
72
|
+
.query('infra/web-app')
|
|
73
|
+
.withId(id)
|
|
74
|
+
.enabled()
|
|
75
|
+
.resolve();
|
|
76
|
+
// A composed loader may be absent or stale; refuse unless the seam resolves to something callable.
|
|
77
|
+
const provider = readUntrusted(ProjectionProviderSchema, () => resolved, { ...PROVIDER_MISSING, details: { id } });
|
|
78
|
+
let projected;
|
|
79
|
+
try {
|
|
80
|
+
validateAppDeployment(runtime, provider.config.deployment);
|
|
81
|
+
projected = await provider.project(input);
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
const caught = CaughtFailureSchema.parse(error);
|
|
85
|
+
if (caught instanceof Error && isCapabilityError(caught))
|
|
86
|
+
throw caught;
|
|
87
|
+
throw new CapabilityError('The web app projection provider failed.', 'INTERNAL', {
|
|
88
|
+
reason: 'web-app-projection-failed', details: { id }, cause: valueFreeFailure(caught)
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
const projection = readUntrusted(WebAppProjectionSchema, () => projected, PROJECTION_INVALID);
|
|
92
|
+
validateAppDeployment(runtime, projection.deployment);
|
|
93
|
+
return projection;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=web-app-projection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-app-projection.js","sourceRoot":"","sources":["../src/web-app-projection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,aAAa,EAA6B,MAAM,6CAA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GAAG,mBAAmB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAChD,IAAI,MAAM,YAAY,KAAK,IAAI,iBAAiB,CAAC,MAAM,CAAC;YAAE,MAAM,MAAM,CAAC;QACvE,MAAM,IAAI,eAAe,CAAC,yCAAyC,EAAE,UAAU,EAAE;YAChF,MAAM,EAAE,2BAA2B,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,gBAAgB,CAAC,MAAM,CAAC;SACrF,CAAC,CAAC;IACJ,CAAC;IACD,MAAM,UAAU,GAAG,aAAa,CAAC,sBAAsB,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAAC;IAC9F,qBAAqB,CAAC,OAAO,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IACtD,OAAO,UAAU,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,80 +1,108 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibesdotdev/infra-core",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
3
|
+
"version": "1.0.0-rc.11",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"@vibesdotdev/config": "^1.0.0-rc.9",
|
|
6
|
+
"@vibesdotdev/filesystem": "^1.0.0-rc.6",
|
|
7
|
+
"@vibesdotdev/infra-contracts": "^1.0.0-rc.6",
|
|
8
|
+
"@vibesdotdev/logging": "^1.0.0-rc.9",
|
|
9
|
+
"@vibesdotdev/kernel": "^1.0.0-rc.13",
|
|
10
|
+
"@vibesdotdev/shared": "^1.0.0-rc.7",
|
|
11
|
+
"zod": "^4.6.7"
|
|
12
|
+
},
|
|
13
|
+
"peerDependencies": {},
|
|
14
|
+
"gitHead": "769aa8a370cf2a9d1ee086cf71c986c7591356cf",
|
|
15
|
+
"_vibes_source": {
|
|
16
|
+
"repo": "ssh://git@git.vibes.dev/vibesdotdev/framework.git",
|
|
17
|
+
"sha": "769aa8a370cf2a9d1ee086cf71c986c7591356cf",
|
|
18
|
+
"workspaceDigest": "sha256:2f49ba19302ff9b5642dab4e0d8e5a17af899a8c2cacaccaea37c443914d5e53"
|
|
19
|
+
},
|
|
5
20
|
"main": "./dist/index.js",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
21
|
"exports": {
|
|
22
|
+
"./service": {
|
|
23
|
+
"bun": "./dist/service.js",
|
|
24
|
+
"types": "./dist/service.d.ts",
|
|
25
|
+
"import": "./dist/service.js",
|
|
26
|
+
"default": "./dist/service.js"
|
|
27
|
+
},
|
|
8
28
|
".": {
|
|
29
|
+
"bun": "./dist/index.js",
|
|
9
30
|
"types": "./dist/index.d.ts",
|
|
10
|
-
"bun": "./src/index.ts",
|
|
11
31
|
"import": "./dist/index.js",
|
|
12
32
|
"default": "./dist/index.js"
|
|
13
33
|
},
|
|
14
34
|
"./deployment": {
|
|
35
|
+
"bun": "./dist/deployment.js",
|
|
15
36
|
"types": "./dist/deployment.d.ts",
|
|
16
|
-
"bun": "./src/deployment.ts",
|
|
17
37
|
"import": "./dist/deployment.js",
|
|
18
38
|
"default": "./dist/deployment.js"
|
|
19
39
|
},
|
|
40
|
+
"./deployment-budget": {
|
|
41
|
+
"bun": "./dist/deployment-budget.js",
|
|
42
|
+
"types": "./dist/deployment-budget.d.ts",
|
|
43
|
+
"import": "./dist/deployment-budget.js",
|
|
44
|
+
"default": "./dist/deployment-budget.js"
|
|
45
|
+
},
|
|
46
|
+
"./deployment-environment": {
|
|
47
|
+
"bun": "./dist/deployment-environment.js",
|
|
48
|
+
"types": "./dist/deployment-environment.d.ts",
|
|
49
|
+
"import": "./dist/deployment-environment.js",
|
|
50
|
+
"default": "./dist/deployment-environment.js"
|
|
51
|
+
},
|
|
20
52
|
"./schemas": {
|
|
53
|
+
"bun": "./dist/schemas.js",
|
|
21
54
|
"types": "./dist/schemas.d.ts",
|
|
22
|
-
"bun": "./src/schemas.ts",
|
|
23
55
|
"import": "./dist/schemas.js",
|
|
24
56
|
"default": "./dist/schemas.js"
|
|
25
57
|
},
|
|
26
58
|
"./kinds": {
|
|
59
|
+
"bun": "./dist/kinds/index.js",
|
|
27
60
|
"types": "./dist/kinds/index.d.ts",
|
|
28
|
-
"bun": "./src/kinds/index.ts",
|
|
29
61
|
"import": "./dist/kinds/index.js",
|
|
30
62
|
"default": "./dist/kinds/index.js"
|
|
31
63
|
},
|
|
32
64
|
"./plugin": {
|
|
65
|
+
"bun": "./dist/infra.plugin.js",
|
|
33
66
|
"types": "./dist/infra.plugin.d.ts",
|
|
34
|
-
"bun": "./src/infra.plugin.ts",
|
|
35
67
|
"import": "./dist/infra.plugin.js",
|
|
36
68
|
"default": "./dist/infra.plugin.js"
|
|
37
69
|
},
|
|
38
70
|
"./bootstrap": {
|
|
71
|
+
"bun": "./dist/bootstrap/index.js",
|
|
39
72
|
"types": "./dist/bootstrap/index.d.ts",
|
|
40
|
-
"bun": "./src/bootstrap/index.ts",
|
|
41
73
|
"import": "./dist/bootstrap/index.js",
|
|
42
74
|
"default": "./dist/bootstrap/index.js"
|
|
75
|
+
},
|
|
76
|
+
"./generate": {
|
|
77
|
+
"bun": "./dist/generate/index.js",
|
|
78
|
+
"types": "./dist/generate/index.d.ts",
|
|
79
|
+
"import": "./dist/generate/index.js",
|
|
80
|
+
"default": "./dist/generate/index.js"
|
|
81
|
+
},
|
|
82
|
+
"./generate/plugin": {
|
|
83
|
+
"bun": "./dist/generate/plugin.js",
|
|
84
|
+
"types": "./dist/generate/plugin.d.ts",
|
|
85
|
+
"import": "./dist/generate/plugin.js",
|
|
86
|
+
"default": "./dist/generate/plugin.js"
|
|
87
|
+
},
|
|
88
|
+
"./doks/cloud": {
|
|
89
|
+
"bun": "./dist/doks/cloud/index.js",
|
|
90
|
+
"types": "./dist/doks/cloud/index.d.ts",
|
|
91
|
+
"import": "./dist/doks/cloud/index.js",
|
|
92
|
+
"default": "./dist/doks/cloud/index.js"
|
|
93
|
+
},
|
|
94
|
+
"./doks/types": {
|
|
95
|
+
"bun": "./dist/doks/types.js",
|
|
96
|
+
"types": "./dist/doks/types.d.ts",
|
|
97
|
+
"import": "./dist/doks/types.js",
|
|
98
|
+
"default": "./dist/doks/types.js"
|
|
43
99
|
}
|
|
44
100
|
},
|
|
45
|
-
"publishConfig": {
|
|
46
|
-
"registry": "https://registry.npmjs.org",
|
|
47
|
-
"access": "public"
|
|
48
|
-
},
|
|
49
|
-
"repository": {
|
|
50
|
-
"type": "git",
|
|
51
|
-
"url": "git+https://github.com/vibesdotdev/monorepo.git",
|
|
52
|
-
"directory": "packages/infra-core"
|
|
53
|
-
},
|
|
54
|
-
"dependencies": {
|
|
55
|
-
"@vibesdotdev/logging": "0.0.1",
|
|
56
|
-
"@vibesdotdev/runtime": "0.0.1",
|
|
57
|
-
"zod": "^4.3.6"
|
|
58
|
-
},
|
|
59
|
-
"scripts": {
|
|
60
|
-
"test": "bun test",
|
|
61
|
-
"check": "bun --bun tsc -p tsconfig.json --noEmit",
|
|
62
|
-
"build": "tsc -p tsconfig.json"
|
|
63
|
-
},
|
|
64
|
-
"license": "MIT",
|
|
65
101
|
"files": [
|
|
66
102
|
"dist",
|
|
67
|
-
"src",
|
|
68
|
-
"bin",
|
|
69
103
|
"README.md",
|
|
70
|
-
"SPEC.md",
|
|
71
104
|
"LICENSE",
|
|
72
|
-
"!
|
|
73
|
-
"!src/**/__stubs__/**",
|
|
74
|
-
"!src/**/*.test.ts",
|
|
75
|
-
"!src/**/*.test.tsx",
|
|
76
|
-
"!src/**/*.spec.ts",
|
|
77
|
-
"!src/**/*.spec.tsx",
|
|
105
|
+
"!dist/**/*.tsbuildinfo",
|
|
78
106
|
"!dist/**/__tests__/**",
|
|
79
107
|
"!dist/**/__stubs__/**",
|
|
80
108
|
"!dist/**/*.test.js",
|
|
@@ -84,9 +112,64 @@
|
|
|
84
112
|
"!dist/**/*.spec.js",
|
|
85
113
|
"!dist/**/*.spec.js.map",
|
|
86
114
|
"!dist/**/*.spec.d.ts",
|
|
87
|
-
"!dist/**/*.spec.d.ts.map"
|
|
115
|
+
"!dist/**/*.spec.d.ts.map",
|
|
116
|
+
"!**/.turbo/**",
|
|
117
|
+
"!**/.svelte-kit/**",
|
|
118
|
+
"!**/.vibes/**",
|
|
119
|
+
"!**/__tests__/**",
|
|
120
|
+
"!**/__stubs__/**",
|
|
121
|
+
"!**/*.test.js",
|
|
122
|
+
"!**/*.test.mjs",
|
|
123
|
+
"!**/*.test.cjs",
|
|
124
|
+
"!**/*.test.jsx",
|
|
125
|
+
"!**/*.test.ts",
|
|
126
|
+
"!**/*.test.mts",
|
|
127
|
+
"!**/*.test.cts",
|
|
128
|
+
"!**/*.test.tsx",
|
|
129
|
+
"!**/*.spec.js",
|
|
130
|
+
"!**/*.spec.mjs",
|
|
131
|
+
"!**/*.spec.cjs",
|
|
132
|
+
"!**/*.spec.jsx",
|
|
133
|
+
"!**/*.spec.ts",
|
|
134
|
+
"!**/*.spec.mts",
|
|
135
|
+
"!**/*.spec.cts",
|
|
136
|
+
"!**/*.spec.tsx",
|
|
137
|
+
"!**/SPEC.md",
|
|
138
|
+
"!**/tsconfig.json",
|
|
139
|
+
"!**/tsconfig.*.json",
|
|
140
|
+
"!**/*.tsbuildinfo",
|
|
141
|
+
"!**/.build-ok.json",
|
|
142
|
+
"!**/*.tgz"
|
|
88
143
|
],
|
|
144
|
+
"scripts": {
|
|
145
|
+
"lint": "node ../node_modules/@vibesdotdev/internal-oxlint-toolchain/ratchet.mjs .",
|
|
146
|
+
"test": "${BUN:-bun} test",
|
|
147
|
+
"check": "${BUN:-bun} --bun tsc -p tsconfig.json",
|
|
148
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json"
|
|
149
|
+
},
|
|
150
|
+
"repository": {
|
|
151
|
+
"type": "git",
|
|
152
|
+
"url": "ssh://git@git.vibes.dev/vibesdotdev/framework.git",
|
|
153
|
+
"directory": "infra-core"
|
|
154
|
+
},
|
|
155
|
+
"publishConfig": {
|
|
156
|
+
"registry": "https://packages.vibes.dev",
|
|
157
|
+
"access": "public"
|
|
158
|
+
},
|
|
89
159
|
"vibes": {
|
|
90
|
-
"visibility": "public
|
|
160
|
+
"visibility": "public",
|
|
161
|
+
"registry": {
|
|
162
|
+
"repositoryId": "4b1374d4-6830-4bfd-98e3-de66416368a8",
|
|
163
|
+
"directory": "infra-core"
|
|
164
|
+
},
|
|
165
|
+
"handedRuntimeLogging": true
|
|
166
|
+
},
|
|
167
|
+
"type": "module",
|
|
168
|
+
"types": "./dist/index.d.ts",
|
|
169
|
+
"license": "MIT",
|
|
170
|
+
"description": "Infrastructure manifest schemas, runtime kinds and deployment primitives shared by infra adapters.",
|
|
171
|
+
"homepage": "https://docs.vibes.dev/infra-core",
|
|
172
|
+
"bugs": {
|
|
173
|
+
"url": "https://docs.vibes.dev/infra-core#support"
|
|
91
174
|
}
|
|
92
175
|
}
|