everything-dev 1.32.0 → 1.33.0
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/config.cjs +18 -3
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +18 -3
- package/dist/config.mjs.map +1 -1
- package/dist/contract.d.cts +9 -9
- package/dist/contract.d.mts +9 -9
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/plugin.d.cts +12 -12
- package/dist/plugin.d.mts +12 -12
- package/dist/service-descriptor.cjs.map +1 -1
- package/dist/service-descriptor.d.cts +2 -2
- package/dist/service-descriptor.d.cts.map +1 -1
- package/dist/service-descriptor.d.mts +2 -2
- package/dist/service-descriptor.d.mts.map +1 -1
- package/dist/service-descriptor.mjs.map +1 -1
- package/dist/types.cjs +16 -5
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +21 -14
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +21 -14
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +15 -6
- package/dist/types.mjs.map +1 -1
- package/dist/ui/head.cjs +7 -11
- package/dist/ui/head.cjs.map +1 -1
- package/dist/ui/head.d.cts +1 -3
- package/dist/ui/head.d.cts.map +1 -1
- package/dist/ui/head.d.mts +1 -3
- package/dist/ui/head.d.mts.map +1 -1
- package/dist/ui/head.mjs +8 -11
- package/dist/ui/head.mjs.map +1 -1
- package/dist/ui/index.cjs +0 -1
- package/dist/ui/index.d.cts +2 -2
- package/dist/ui/index.d.mts +2 -2
- package/dist/ui/index.mjs +2 -2
- package/dist/ui/types.d.cts +0 -2
- package/dist/ui/types.d.cts.map +1 -1
- package/dist/ui/types.d.mts +0 -2
- package/dist/ui/types.d.mts.map +1 -1
- package/package.json +1 -1
package/dist/contract.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BosConfigInput } from "./types.cjs";
|
|
1
|
+
import { BosConfigInput, JsonValue } from "./types.cjs";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
import * as _$_orpc_contract0 from "@orpc/contract";
|
|
4
4
|
|
|
@@ -108,7 +108,7 @@ declare const ConfigResultSchema: z.ZodObject<{
|
|
|
108
108
|
production: z.ZodOptional<z.ZodString>;
|
|
109
109
|
integrity: z.ZodOptional<z.ZodString>;
|
|
110
110
|
proxy: z.ZodOptional<z.ZodString>;
|
|
111
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
111
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
112
112
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
113
113
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
114
114
|
icon: z.ZodString;
|
|
@@ -159,7 +159,7 @@ declare const ConfigResultSchema: z.ZodObject<{
|
|
|
159
159
|
production: z.ZodOptional<z.ZodString>;
|
|
160
160
|
integrity: z.ZodOptional<z.ZodString>;
|
|
161
161
|
proxy: z.ZodOptional<z.ZodString>;
|
|
162
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
162
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
163
163
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
164
164
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
165
165
|
icon: z.ZodString;
|
|
@@ -184,7 +184,7 @@ declare const ConfigResultSchema: z.ZodObject<{
|
|
|
184
184
|
production: z.ZodOptional<z.ZodString>;
|
|
185
185
|
integrity: z.ZodOptional<z.ZodString>;
|
|
186
186
|
proxy: z.ZodOptional<z.ZodString>;
|
|
187
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
187
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
188
188
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
189
189
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
190
190
|
icon: z.ZodString;
|
|
@@ -481,8 +481,8 @@ declare const StatusResultSchema: z.ZodObject<{
|
|
|
481
481
|
}, z.core.$strip>;
|
|
482
482
|
declare const TypesGenOptionsSchema: z.ZodObject<{
|
|
483
483
|
env: z.ZodOptional<z.ZodEnum<{
|
|
484
|
-
production: "production";
|
|
485
484
|
development: "development";
|
|
485
|
+
production: "production";
|
|
486
486
|
}>>;
|
|
487
487
|
dryRun: z.ZodDefault<z.ZodBoolean>;
|
|
488
488
|
}, z.core.$strip>;
|
|
@@ -603,7 +603,7 @@ declare const bosContract: {
|
|
|
603
603
|
production: z.ZodOptional<z.ZodString>;
|
|
604
604
|
integrity: z.ZodOptional<z.ZodString>;
|
|
605
605
|
proxy: z.ZodOptional<z.ZodString>;
|
|
606
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
606
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
607
607
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
608
608
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
609
609
|
icon: z.ZodString;
|
|
@@ -654,7 +654,7 @@ declare const bosContract: {
|
|
|
654
654
|
production: z.ZodOptional<z.ZodString>;
|
|
655
655
|
integrity: z.ZodOptional<z.ZodString>;
|
|
656
656
|
proxy: z.ZodOptional<z.ZodString>;
|
|
657
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
657
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
658
658
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
659
659
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
660
660
|
icon: z.ZodString;
|
|
@@ -679,7 +679,7 @@ declare const bosContract: {
|
|
|
679
679
|
production: z.ZodOptional<z.ZodString>;
|
|
680
680
|
integrity: z.ZodOptional<z.ZodString>;
|
|
681
681
|
proxy: z.ZodOptional<z.ZodString>;
|
|
682
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
682
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
683
683
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
684
684
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
685
685
|
icon: z.ZodString;
|
|
@@ -947,8 +947,8 @@ declare const bosContract: {
|
|
|
947
947
|
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
948
948
|
typesGen: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
949
949
|
env: z.ZodOptional<z.ZodEnum<{
|
|
950
|
-
production: "production";
|
|
951
950
|
development: "development";
|
|
951
|
+
production: "production";
|
|
952
952
|
}>>;
|
|
953
953
|
dryRun: z.ZodDefault<z.ZodBoolean>;
|
|
954
954
|
}, z.core.$strip>, z.ZodObject<{
|
package/dist/contract.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BosConfigInput } from "./types.mjs";
|
|
1
|
+
import { BosConfigInput, JsonValue } from "./types.mjs";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
import * as _$_orpc_contract0 from "@orpc/contract";
|
|
4
4
|
|
|
@@ -108,7 +108,7 @@ declare const ConfigResultSchema: z.ZodObject<{
|
|
|
108
108
|
production: z.ZodOptional<z.ZodString>;
|
|
109
109
|
integrity: z.ZodOptional<z.ZodString>;
|
|
110
110
|
proxy: z.ZodOptional<z.ZodString>;
|
|
111
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
111
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
112
112
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
113
113
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
114
114
|
icon: z.ZodString;
|
|
@@ -159,7 +159,7 @@ declare const ConfigResultSchema: z.ZodObject<{
|
|
|
159
159
|
production: z.ZodOptional<z.ZodString>;
|
|
160
160
|
integrity: z.ZodOptional<z.ZodString>;
|
|
161
161
|
proxy: z.ZodOptional<z.ZodString>;
|
|
162
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
162
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
163
163
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
164
164
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
165
165
|
icon: z.ZodString;
|
|
@@ -184,7 +184,7 @@ declare const ConfigResultSchema: z.ZodObject<{
|
|
|
184
184
|
production: z.ZodOptional<z.ZodString>;
|
|
185
185
|
integrity: z.ZodOptional<z.ZodString>;
|
|
186
186
|
proxy: z.ZodOptional<z.ZodString>;
|
|
187
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
187
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
188
188
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
189
189
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
190
190
|
icon: z.ZodString;
|
|
@@ -481,8 +481,8 @@ declare const StatusResultSchema: z.ZodObject<{
|
|
|
481
481
|
}, z.core.$strip>;
|
|
482
482
|
declare const TypesGenOptionsSchema: z.ZodObject<{
|
|
483
483
|
env: z.ZodOptional<z.ZodEnum<{
|
|
484
|
-
production: "production";
|
|
485
484
|
development: "development";
|
|
485
|
+
production: "production";
|
|
486
486
|
}>>;
|
|
487
487
|
dryRun: z.ZodDefault<z.ZodBoolean>;
|
|
488
488
|
}, z.core.$strip>;
|
|
@@ -603,7 +603,7 @@ declare const bosContract: {
|
|
|
603
603
|
production: z.ZodOptional<z.ZodString>;
|
|
604
604
|
integrity: z.ZodOptional<z.ZodString>;
|
|
605
605
|
proxy: z.ZodOptional<z.ZodString>;
|
|
606
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
606
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
607
607
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
608
608
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
609
609
|
icon: z.ZodString;
|
|
@@ -654,7 +654,7 @@ declare const bosContract: {
|
|
|
654
654
|
production: z.ZodOptional<z.ZodString>;
|
|
655
655
|
integrity: z.ZodOptional<z.ZodString>;
|
|
656
656
|
proxy: z.ZodOptional<z.ZodString>;
|
|
657
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
657
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
658
658
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
659
659
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
660
660
|
icon: z.ZodString;
|
|
@@ -679,7 +679,7 @@ declare const bosContract: {
|
|
|
679
679
|
production: z.ZodOptional<z.ZodString>;
|
|
680
680
|
integrity: z.ZodOptional<z.ZodString>;
|
|
681
681
|
proxy: z.ZodOptional<z.ZodString>;
|
|
682
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
682
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
683
683
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
684
684
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
685
685
|
icon: z.ZodString;
|
|
@@ -947,8 +947,8 @@ declare const bosContract: {
|
|
|
947
947
|
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
948
948
|
typesGen: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
949
949
|
env: z.ZodOptional<z.ZodEnum<{
|
|
950
|
-
production: "production";
|
|
951
950
|
development: "development";
|
|
951
|
+
production: "production";
|
|
952
952
|
}>>;
|
|
953
953
|
dryRun: z.ZodDefault<z.ZodBoolean>;
|
|
954
954
|
}, z.core.$strip>, z.ZodObject<{
|
package/dist/index.cjs
CHANGED
|
@@ -47,6 +47,8 @@ exports.FederationEntrySchema = require_types.FederationEntrySchema;
|
|
|
47
47
|
exports.HostConfigSchema = require_types.HostConfigSchema;
|
|
48
48
|
exports.InitOptionsSchema = require_contract.InitOptionsSchema;
|
|
49
49
|
exports.InitResultSchema = require_contract.InitResultSchema;
|
|
50
|
+
exports.JsonObjectSchema = require_types.JsonObjectSchema;
|
|
51
|
+
exports.JsonValueSchema = require_types.JsonValueSchema;
|
|
50
52
|
exports.KeyPublishOptionsSchema = require_contract.KeyPublishOptionsSchema;
|
|
51
53
|
exports.KeyPublishResultSchema = require_contract.KeyPublishResultSchema;
|
|
52
54
|
Object.defineProperty(exports, 'Layer', {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiPluginConfig, ApiPluginConfigSchema, BosConfig, BosConfigInput, BosConfigInputAppEntry, BosConfigInputSchema, BosConfigSchema, BosPluginRef, BosPluginRefSchema, BosStaging, BosStagingSchema, CiConfig, CiConfigSchema, ClientRuntimeConfig, ClientRuntimeConfigSchema, ClientRuntimeInfo, ClientRuntimeInfoSchema, ComposableAppEntry, ComposableAppEntrySchema, Extends, ExtendsConfig, ExtendsSchema, FederationEntry, FederationEntrySchema, HostConfig, HostConfigSchema, PluginEntries, PluginEntryValue, PluginRuntimeUi, PluginUiConfig, PluginUiConfigSchema, RailwayCi, RailwayCiSchema, RuntimeConfig, RuntimeConfigSchema, RuntimeLineage, RuntimeLineageSchema, RuntimePluginConfig, RuntimePluginConfigSchema, SharedConfig, SharedConfigSchema, SharedDepConfig, SharedDepConfigSchema, SidebarItem, SidebarItemSchema, SidebarRole, SidebarRoleSchema, SourceMode, SourceModeSchema, UiConfig, UiConfigSchema } from "./types.cjs";
|
|
1
|
+
import { ApiPluginConfig, ApiPluginConfigSchema, BosConfig, BosConfigInput, BosConfigInputAppEntry, BosConfigInputSchema, BosConfigSchema, BosPluginRef, BosPluginRefSchema, BosStaging, BosStagingSchema, CiConfig, CiConfigSchema, ClientRuntimeConfig, ClientRuntimeConfigSchema, ClientRuntimeInfo, ClientRuntimeInfoSchema, ComposableAppEntry, ComposableAppEntrySchema, Extends, ExtendsConfig, ExtendsSchema, FederationEntry, FederationEntrySchema, HostConfig, HostConfigSchema, JsonObject, JsonObjectSchema, JsonPrimitive, JsonValue, JsonValueSchema, PluginEntries, PluginEntryValue, PluginRuntimeUi, PluginUiConfig, PluginUiConfigSchema, RailwayCi, RailwayCiSchema, RuntimeConfig, RuntimeConfigSchema, RuntimeLineage, RuntimeLineageSchema, RuntimePluginConfig, RuntimePluginConfigSchema, SharedConfig, SharedConfigSchema, SharedDepConfig, SharedDepConfigSchema, SidebarItem, SidebarItemSchema, SidebarRole, SidebarRoleSchema, SourceMode, SourceModeSchema, UiConfig, UiConfigSchema } from "./types.cjs";
|
|
2
2
|
import { BosConfigResult, BuildOptions, BuildOptionsSchema, BuildResultSchema, ConfigOptionsSchema, ConfigResultSchema, DeployOptions, DeployOptionsSchema, DeployResult, DeployResultSchema, DevOptions, DevOptionsSchema, DevResult, DevResultSchema, InitOptions, InitOptionsSchema, InitResult, InitResultSchema, KeyPublishOptions, KeyPublishOptionsSchema, KeyPublishResult, KeyPublishResultSchema, OverrideSection, OverrideSectionSchema, PhaseTiming, PhaseTimingSchema, PluginAddOptions, PluginAddOptionsSchema, PluginAddResult, PluginAddResultSchema, PluginListResult, PluginListResultSchema, PluginPublishOptions, PluginPublishOptionsSchema, PluginPublishResult, PluginPublishResultSchema, PluginRemoveOptions, PluginRemoveOptionsSchema, PluginRemoveResult, PluginRemoveResultSchema, PublishOptions, PublishOptionsSchema, PublishResultSchema, RuntimeOverrideTarget, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, StartOptions, StartOptionsSchema, StartResult, StartResultSchema, StatusResult, StatusResultSchema, SyncOptions, SyncOptionsSchema, SyncResult, SyncResultSchema, TypesGenOptions, TypesGenOptionsSchema, TypesGenResult, TypesGenResultSchema, UpgradeOptions, UpgradeOptionsSchema, UpgradeResult, UpgradeResultSchema, bosContract } from "./contract.cjs";
|
|
3
3
|
import { BOS_CONFIG_ORDER, mergeBosConfigWithExtends, rebuildOrderedConfig, resolveExtendsRef } from "./merge.cjs";
|
|
4
4
|
import { BuildRuntimeConfigOptions, ConfigResult, LocalConfigResult, RemoteConfigResult, ResolvedComposableReference, buildRuntimeConfig, buildRuntimePluginsForConfig, clearConfigCache, drainConfigWarnings, findConfigPath, getConfig, getHostDevelopmentPort, getProjectRoot, getResolvedConfigPath, isLocalDevelopmentTarget, isRuntimeOverrideAllowed, loadBosConfig, loadGeneratedResolvedConfig, loadLocalConfig, loadRemoteConfig, loadResolvedConfig, parsePort, parseRuntimeOverrideTargets, readBosConfigForBuild, resolveBosConfigPath, resolveComposableReference, resolveDevelopmentHostUrl, resolveLocalDevelopmentPath, resolvePluginRuntimeName, resumeWarnings, suppressWarnings, writeResolvedConfig } from "./config.cjs";
|
|
@@ -6,4 +6,4 @@ import { CliCommandMeta, cliCommandMeta } from "./contract.meta.cjs";
|
|
|
6
6
|
import { NetworkId, PluginManifest, buildRegistryConfigUrl, buildRegistryConfigUrlForNetwork, fetchBosConfigFromFastKv, fetchRemotePluginManifest, getFastKvBaseUrlForNetwork, getRegistryNamespaceForAccount, getRegistryNamespaceForNetwork } from "./fastkv.cjs";
|
|
7
7
|
import { AnyContractRouter, AnySchema, Context, Effect, Layer, LoadedPluginWithBinding, Plugin, PluginRuntime, Scope, createPlugin, createPluginRuntime, oc, z } from "./sdk.cjs";
|
|
8
8
|
import { generatePluginSidebarContent, writePluginSidebarGen } from "./sidebar.cjs";
|
|
9
|
-
export { AnyContractRouter, AnySchema, ApiPluginConfig, ApiPluginConfigSchema, BOS_CONFIG_ORDER, BosConfig, BosConfigInput, BosConfigInputAppEntry, BosConfigInputSchema, BosConfigResult, BosConfigSchema, BosPluginRef, BosPluginRefSchema, BosStaging, BosStagingSchema, BuildOptions, BuildOptionsSchema, BuildResultSchema, BuildRuntimeConfigOptions, CiConfig, CiConfigSchema, CliCommandMeta, ClientRuntimeConfig, ClientRuntimeConfigSchema, ClientRuntimeInfo, ClientRuntimeInfoSchema, ComposableAppEntry, ComposableAppEntrySchema, ConfigOptionsSchema, ConfigResult, ConfigResultSchema, Context, DeployOptions, DeployOptionsSchema, DeployResult, DeployResultSchema, DevOptions, DevOptionsSchema, DevResult, DevResultSchema, Effect, Extends, ExtendsConfig, ExtendsSchema, FederationEntry, FederationEntrySchema, HostConfig, HostConfigSchema, InitOptions, InitOptionsSchema, InitResult, InitResultSchema, KeyPublishOptions, KeyPublishOptionsSchema, KeyPublishResult, KeyPublishResultSchema, Layer, LoadedPluginWithBinding, LocalConfigResult, NetworkId, OverrideSection, OverrideSectionSchema, PhaseTiming, PhaseTimingSchema, Plugin, PluginAddOptions, PluginAddOptionsSchema, PluginAddResult, PluginAddResultSchema, PluginEntries, PluginEntryValue, PluginListResult, PluginListResultSchema, PluginManifest, PluginPublishOptions, PluginPublishOptionsSchema, PluginPublishResult, PluginPublishResultSchema, PluginRemoveOptions, PluginRemoveOptionsSchema, PluginRemoveResult, PluginRemoveResultSchema, PluginRuntime, PluginRuntimeUi, PluginUiConfig, PluginUiConfigSchema, PublishOptions, PublishOptionsSchema, PublishResultSchema, RailwayCi, RailwayCiSchema, RemoteConfigResult, ResolvedComposableReference, RuntimeConfig, RuntimeConfigSchema, RuntimeLineage, RuntimeLineageSchema, RuntimeOverrideTarget, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, RuntimePluginConfig, RuntimePluginConfigSchema, Scope, SharedConfig, SharedConfigSchema, SharedDepConfig, SharedDepConfigSchema, SidebarItem, SidebarItemSchema, SidebarRole, SidebarRoleSchema, SourceMode, SourceModeSchema, StartOptions, StartOptionsSchema, StartResult, StartResultSchema, StatusResult, StatusResultSchema, SyncOptions, SyncOptionsSchema, SyncResult, SyncResultSchema, TypesGenOptions, TypesGenOptionsSchema, TypesGenResult, TypesGenResultSchema, UiConfig, UiConfigSchema, UpgradeOptions, UpgradeOptionsSchema, UpgradeResult, UpgradeResultSchema, bosContract, buildRegistryConfigUrl, buildRegistryConfigUrlForNetwork, buildRuntimeConfig, buildRuntimePluginsForConfig, clearConfigCache, cliCommandMeta, createPlugin, createPluginRuntime, drainConfigWarnings, fetchBosConfigFromFastKv, fetchRemotePluginManifest, findConfigPath, generatePluginSidebarContent, getConfig, getFastKvBaseUrlForNetwork, getHostDevelopmentPort, getProjectRoot, getRegistryNamespaceForAccount, getRegistryNamespaceForNetwork, getResolvedConfigPath, isLocalDevelopmentTarget, isRuntimeOverrideAllowed, loadBosConfig, loadGeneratedResolvedConfig, loadLocalConfig, loadRemoteConfig, loadResolvedConfig, mergeBosConfigWithExtends, oc, parsePort, parseRuntimeOverrideTargets, readBosConfigForBuild, rebuildOrderedConfig, resolveBosConfigPath, resolveComposableReference, resolveDevelopmentHostUrl, resolveExtendsRef, resolveLocalDevelopmentPath, resolvePluginRuntimeName, resumeWarnings, suppressWarnings, writePluginSidebarGen, writeResolvedConfig, z };
|
|
9
|
+
export { AnyContractRouter, AnySchema, ApiPluginConfig, ApiPluginConfigSchema, BOS_CONFIG_ORDER, BosConfig, BosConfigInput, BosConfigInputAppEntry, BosConfigInputSchema, BosConfigResult, BosConfigSchema, BosPluginRef, BosPluginRefSchema, BosStaging, BosStagingSchema, BuildOptions, BuildOptionsSchema, BuildResultSchema, BuildRuntimeConfigOptions, CiConfig, CiConfigSchema, CliCommandMeta, ClientRuntimeConfig, ClientRuntimeConfigSchema, ClientRuntimeInfo, ClientRuntimeInfoSchema, ComposableAppEntry, ComposableAppEntrySchema, ConfigOptionsSchema, ConfigResult, ConfigResultSchema, Context, DeployOptions, DeployOptionsSchema, DeployResult, DeployResultSchema, DevOptions, DevOptionsSchema, DevResult, DevResultSchema, Effect, Extends, ExtendsConfig, ExtendsSchema, FederationEntry, FederationEntrySchema, HostConfig, HostConfigSchema, InitOptions, InitOptionsSchema, InitResult, InitResultSchema, JsonObject, JsonObjectSchema, JsonPrimitive, JsonValue, JsonValueSchema, KeyPublishOptions, KeyPublishOptionsSchema, KeyPublishResult, KeyPublishResultSchema, Layer, LoadedPluginWithBinding, LocalConfigResult, NetworkId, OverrideSection, OverrideSectionSchema, PhaseTiming, PhaseTimingSchema, Plugin, PluginAddOptions, PluginAddOptionsSchema, PluginAddResult, PluginAddResultSchema, PluginEntries, PluginEntryValue, PluginListResult, PluginListResultSchema, PluginManifest, PluginPublishOptions, PluginPublishOptionsSchema, PluginPublishResult, PluginPublishResultSchema, PluginRemoveOptions, PluginRemoveOptionsSchema, PluginRemoveResult, PluginRemoveResultSchema, PluginRuntime, PluginRuntimeUi, PluginUiConfig, PluginUiConfigSchema, PublishOptions, PublishOptionsSchema, PublishResultSchema, RailwayCi, RailwayCiSchema, RemoteConfigResult, ResolvedComposableReference, RuntimeConfig, RuntimeConfigSchema, RuntimeLineage, RuntimeLineageSchema, RuntimeOverrideTarget, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, RuntimePluginConfig, RuntimePluginConfigSchema, Scope, SharedConfig, SharedConfigSchema, SharedDepConfig, SharedDepConfigSchema, SidebarItem, SidebarItemSchema, SidebarRole, SidebarRoleSchema, SourceMode, SourceModeSchema, StartOptions, StartOptionsSchema, StartResult, StartResultSchema, StatusResult, StatusResultSchema, SyncOptions, SyncOptionsSchema, SyncResult, SyncResultSchema, TypesGenOptions, TypesGenOptionsSchema, TypesGenResult, TypesGenResultSchema, UiConfig, UiConfigSchema, UpgradeOptions, UpgradeOptionsSchema, UpgradeResult, UpgradeResultSchema, bosContract, buildRegistryConfigUrl, buildRegistryConfigUrlForNetwork, buildRuntimeConfig, buildRuntimePluginsForConfig, clearConfigCache, cliCommandMeta, createPlugin, createPluginRuntime, drainConfigWarnings, fetchBosConfigFromFastKv, fetchRemotePluginManifest, findConfigPath, generatePluginSidebarContent, getConfig, getFastKvBaseUrlForNetwork, getHostDevelopmentPort, getProjectRoot, getRegistryNamespaceForAccount, getRegistryNamespaceForNetwork, getResolvedConfigPath, isLocalDevelopmentTarget, isRuntimeOverrideAllowed, loadBosConfig, loadGeneratedResolvedConfig, loadLocalConfig, loadRemoteConfig, loadResolvedConfig, mergeBosConfigWithExtends, oc, parsePort, parseRuntimeOverrideTargets, readBosConfigForBuild, rebuildOrderedConfig, resolveBosConfigPath, resolveComposableReference, resolveDevelopmentHostUrl, resolveExtendsRef, resolveLocalDevelopmentPath, resolvePluginRuntimeName, resumeWarnings, suppressWarnings, writePluginSidebarGen, writeResolvedConfig, z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiPluginConfig, ApiPluginConfigSchema, BosConfig, BosConfigInput, BosConfigInputAppEntry, BosConfigInputSchema, BosConfigSchema, BosPluginRef, BosPluginRefSchema, BosStaging, BosStagingSchema, CiConfig, CiConfigSchema, ClientRuntimeConfig, ClientRuntimeConfigSchema, ClientRuntimeInfo, ClientRuntimeInfoSchema, ComposableAppEntry, ComposableAppEntrySchema, Extends, ExtendsConfig, ExtendsSchema, FederationEntry, FederationEntrySchema, HostConfig, HostConfigSchema, PluginEntries, PluginEntryValue, PluginRuntimeUi, PluginUiConfig, PluginUiConfigSchema, RailwayCi, RailwayCiSchema, RuntimeConfig, RuntimeConfigSchema, RuntimeLineage, RuntimeLineageSchema, RuntimePluginConfig, RuntimePluginConfigSchema, SharedConfig, SharedConfigSchema, SharedDepConfig, SharedDepConfigSchema, SidebarItem, SidebarItemSchema, SidebarRole, SidebarRoleSchema, SourceMode, SourceModeSchema, UiConfig, UiConfigSchema } from "./types.mjs";
|
|
1
|
+
import { ApiPluginConfig, ApiPluginConfigSchema, BosConfig, BosConfigInput, BosConfigInputAppEntry, BosConfigInputSchema, BosConfigSchema, BosPluginRef, BosPluginRefSchema, BosStaging, BosStagingSchema, CiConfig, CiConfigSchema, ClientRuntimeConfig, ClientRuntimeConfigSchema, ClientRuntimeInfo, ClientRuntimeInfoSchema, ComposableAppEntry, ComposableAppEntrySchema, Extends, ExtendsConfig, ExtendsSchema, FederationEntry, FederationEntrySchema, HostConfig, HostConfigSchema, JsonObject, JsonObjectSchema, JsonPrimitive, JsonValue, JsonValueSchema, PluginEntries, PluginEntryValue, PluginRuntimeUi, PluginUiConfig, PluginUiConfigSchema, RailwayCi, RailwayCiSchema, RuntimeConfig, RuntimeConfigSchema, RuntimeLineage, RuntimeLineageSchema, RuntimePluginConfig, RuntimePluginConfigSchema, SharedConfig, SharedConfigSchema, SharedDepConfig, SharedDepConfigSchema, SidebarItem, SidebarItemSchema, SidebarRole, SidebarRoleSchema, SourceMode, SourceModeSchema, UiConfig, UiConfigSchema } from "./types.mjs";
|
|
2
2
|
import { BosConfigResult, BuildOptions, BuildOptionsSchema, BuildResultSchema, ConfigOptionsSchema, ConfigResultSchema, DeployOptions, DeployOptionsSchema, DeployResult, DeployResultSchema, DevOptions, DevOptionsSchema, DevResult, DevResultSchema, InitOptions, InitOptionsSchema, InitResult, InitResultSchema, KeyPublishOptions, KeyPublishOptionsSchema, KeyPublishResult, KeyPublishResultSchema, OverrideSection, OverrideSectionSchema, PhaseTiming, PhaseTimingSchema, PluginAddOptions, PluginAddOptionsSchema, PluginAddResult, PluginAddResultSchema, PluginListResult, PluginListResultSchema, PluginPublishOptions, PluginPublishOptionsSchema, PluginPublishResult, PluginPublishResultSchema, PluginRemoveOptions, PluginRemoveOptionsSchema, PluginRemoveResult, PluginRemoveResultSchema, PublishOptions, PublishOptionsSchema, PublishResultSchema, RuntimeOverrideTarget, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, StartOptions, StartOptionsSchema, StartResult, StartResultSchema, StatusResult, StatusResultSchema, SyncOptions, SyncOptionsSchema, SyncResult, SyncResultSchema, TypesGenOptions, TypesGenOptionsSchema, TypesGenResult, TypesGenResultSchema, UpgradeOptions, UpgradeOptionsSchema, UpgradeResult, UpgradeResultSchema, bosContract } from "./contract.mjs";
|
|
3
3
|
import { BOS_CONFIG_ORDER, mergeBosConfigWithExtends, rebuildOrderedConfig, resolveExtendsRef } from "./merge.mjs";
|
|
4
4
|
import { BuildRuntimeConfigOptions, ConfigResult, LocalConfigResult, RemoteConfigResult, ResolvedComposableReference, buildRuntimeConfig, buildRuntimePluginsForConfig, clearConfigCache, drainConfigWarnings, findConfigPath, getConfig, getHostDevelopmentPort, getProjectRoot, getResolvedConfigPath, isLocalDevelopmentTarget, isRuntimeOverrideAllowed, loadBosConfig, loadGeneratedResolvedConfig, loadLocalConfig, loadRemoteConfig, loadResolvedConfig, parsePort, parseRuntimeOverrideTargets, readBosConfigForBuild, resolveBosConfigPath, resolveComposableReference, resolveDevelopmentHostUrl, resolveLocalDevelopmentPath, resolvePluginRuntimeName, resumeWarnings, suppressWarnings, writeResolvedConfig } from "./config.mjs";
|
|
@@ -6,4 +6,4 @@ import { CliCommandMeta, cliCommandMeta } from "./contract.meta.mjs";
|
|
|
6
6
|
import { NetworkId, PluginManifest, buildRegistryConfigUrl, buildRegistryConfigUrlForNetwork, fetchBosConfigFromFastKv, fetchRemotePluginManifest, getFastKvBaseUrlForNetwork, getRegistryNamespaceForAccount, getRegistryNamespaceForNetwork } from "./fastkv.mjs";
|
|
7
7
|
import { AnyContractRouter, AnySchema, Context, Effect, Layer, LoadedPluginWithBinding, Plugin, PluginRuntime, Scope, createPlugin, createPluginRuntime, oc, z } from "./sdk.mjs";
|
|
8
8
|
import { generatePluginSidebarContent, writePluginSidebarGen } from "./sidebar.mjs";
|
|
9
|
-
export { AnyContractRouter, AnySchema, ApiPluginConfig, ApiPluginConfigSchema, BOS_CONFIG_ORDER, BosConfig, BosConfigInput, BosConfigInputAppEntry, BosConfigInputSchema, BosConfigResult, BosConfigSchema, BosPluginRef, BosPluginRefSchema, BosStaging, BosStagingSchema, BuildOptions, BuildOptionsSchema, BuildResultSchema, BuildRuntimeConfigOptions, CiConfig, CiConfigSchema, CliCommandMeta, ClientRuntimeConfig, ClientRuntimeConfigSchema, ClientRuntimeInfo, ClientRuntimeInfoSchema, ComposableAppEntry, ComposableAppEntrySchema, ConfigOptionsSchema, ConfigResult, ConfigResultSchema, Context, DeployOptions, DeployOptionsSchema, DeployResult, DeployResultSchema, DevOptions, DevOptionsSchema, DevResult, DevResultSchema, Effect, Extends, ExtendsConfig, ExtendsSchema, FederationEntry, FederationEntrySchema, HostConfig, HostConfigSchema, InitOptions, InitOptionsSchema, InitResult, InitResultSchema, KeyPublishOptions, KeyPublishOptionsSchema, KeyPublishResult, KeyPublishResultSchema, Layer, LoadedPluginWithBinding, LocalConfigResult, NetworkId, OverrideSection, OverrideSectionSchema, PhaseTiming, PhaseTimingSchema, Plugin, PluginAddOptions, PluginAddOptionsSchema, PluginAddResult, PluginAddResultSchema, PluginEntries, PluginEntryValue, PluginListResult, PluginListResultSchema, PluginManifest, PluginPublishOptions, PluginPublishOptionsSchema, PluginPublishResult, PluginPublishResultSchema, PluginRemoveOptions, PluginRemoveOptionsSchema, PluginRemoveResult, PluginRemoveResultSchema, PluginRuntime, PluginRuntimeUi, PluginUiConfig, PluginUiConfigSchema, PublishOptions, PublishOptionsSchema, PublishResultSchema, RailwayCi, RailwayCiSchema, RemoteConfigResult, ResolvedComposableReference, RuntimeConfig, RuntimeConfigSchema, RuntimeLineage, RuntimeLineageSchema, RuntimeOverrideTarget, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, RuntimePluginConfig, RuntimePluginConfigSchema, Scope, SharedConfig, SharedConfigSchema, SharedDepConfig, SharedDepConfigSchema, SidebarItem, SidebarItemSchema, SidebarRole, SidebarRoleSchema, SourceMode, SourceModeSchema, StartOptions, StartOptionsSchema, StartResult, StartResultSchema, StatusResult, StatusResultSchema, SyncOptions, SyncOptionsSchema, SyncResult, SyncResultSchema, TypesGenOptions, TypesGenOptionsSchema, TypesGenResult, TypesGenResultSchema, UiConfig, UiConfigSchema, UpgradeOptions, UpgradeOptionsSchema, UpgradeResult, UpgradeResultSchema, bosContract, buildRegistryConfigUrl, buildRegistryConfigUrlForNetwork, buildRuntimeConfig, buildRuntimePluginsForConfig, clearConfigCache, cliCommandMeta, createPlugin, createPluginRuntime, drainConfigWarnings, fetchBosConfigFromFastKv, fetchRemotePluginManifest, findConfigPath, generatePluginSidebarContent, getConfig, getFastKvBaseUrlForNetwork, getHostDevelopmentPort, getProjectRoot, getRegistryNamespaceForAccount, getRegistryNamespaceForNetwork, getResolvedConfigPath, isLocalDevelopmentTarget, isRuntimeOverrideAllowed, loadBosConfig, loadGeneratedResolvedConfig, loadLocalConfig, loadRemoteConfig, loadResolvedConfig, mergeBosConfigWithExtends, oc, parsePort, parseRuntimeOverrideTargets, readBosConfigForBuild, rebuildOrderedConfig, resolveBosConfigPath, resolveComposableReference, resolveDevelopmentHostUrl, resolveExtendsRef, resolveLocalDevelopmentPath, resolvePluginRuntimeName, resumeWarnings, suppressWarnings, writePluginSidebarGen, writeResolvedConfig, z };
|
|
9
|
+
export { AnyContractRouter, AnySchema, ApiPluginConfig, ApiPluginConfigSchema, BOS_CONFIG_ORDER, BosConfig, BosConfigInput, BosConfigInputAppEntry, BosConfigInputSchema, BosConfigResult, BosConfigSchema, BosPluginRef, BosPluginRefSchema, BosStaging, BosStagingSchema, BuildOptions, BuildOptionsSchema, BuildResultSchema, BuildRuntimeConfigOptions, CiConfig, CiConfigSchema, CliCommandMeta, ClientRuntimeConfig, ClientRuntimeConfigSchema, ClientRuntimeInfo, ClientRuntimeInfoSchema, ComposableAppEntry, ComposableAppEntrySchema, ConfigOptionsSchema, ConfigResult, ConfigResultSchema, Context, DeployOptions, DeployOptionsSchema, DeployResult, DeployResultSchema, DevOptions, DevOptionsSchema, DevResult, DevResultSchema, Effect, Extends, ExtendsConfig, ExtendsSchema, FederationEntry, FederationEntrySchema, HostConfig, HostConfigSchema, InitOptions, InitOptionsSchema, InitResult, InitResultSchema, JsonObject, JsonObjectSchema, JsonPrimitive, JsonValue, JsonValueSchema, KeyPublishOptions, KeyPublishOptionsSchema, KeyPublishResult, KeyPublishResultSchema, Layer, LoadedPluginWithBinding, LocalConfigResult, NetworkId, OverrideSection, OverrideSectionSchema, PhaseTiming, PhaseTimingSchema, Plugin, PluginAddOptions, PluginAddOptionsSchema, PluginAddResult, PluginAddResultSchema, PluginEntries, PluginEntryValue, PluginListResult, PluginListResultSchema, PluginManifest, PluginPublishOptions, PluginPublishOptionsSchema, PluginPublishResult, PluginPublishResultSchema, PluginRemoveOptions, PluginRemoveOptionsSchema, PluginRemoveResult, PluginRemoveResultSchema, PluginRuntime, PluginRuntimeUi, PluginUiConfig, PluginUiConfigSchema, PublishOptions, PublishOptionsSchema, PublishResultSchema, RailwayCi, RailwayCiSchema, RemoteConfigResult, ResolvedComposableReference, RuntimeConfig, RuntimeConfigSchema, RuntimeLineage, RuntimeLineageSchema, RuntimeOverrideTarget, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, RuntimePluginConfig, RuntimePluginConfigSchema, Scope, SharedConfig, SharedConfigSchema, SharedDepConfig, SharedDepConfigSchema, SidebarItem, SidebarItemSchema, SidebarRole, SidebarRoleSchema, SourceMode, SourceModeSchema, StartOptions, StartOptionsSchema, StartResult, StartResultSchema, StatusResult, StatusResultSchema, SyncOptions, SyncOptionsSchema, SyncResult, SyncResultSchema, TypesGenOptions, TypesGenOptionsSchema, TypesGenResult, TypesGenResultSchema, UiConfig, UiConfigSchema, UpgradeOptions, UpgradeOptionsSchema, UpgradeResult, UpgradeResultSchema, bosContract, buildRegistryConfigUrl, buildRegistryConfigUrlForNetwork, buildRuntimeConfig, buildRuntimePluginsForConfig, clearConfigCache, cliCommandMeta, createPlugin, createPluginRuntime, drainConfigWarnings, fetchBosConfigFromFastKv, fetchRemotePluginManifest, findConfigPath, generatePluginSidebarContent, getConfig, getFastKvBaseUrlForNetwork, getHostDevelopmentPort, getProjectRoot, getRegistryNamespaceForAccount, getRegistryNamespaceForNetwork, getResolvedConfigPath, isLocalDevelopmentTarget, isRuntimeOverrideAllowed, loadBosConfig, loadGeneratedResolvedConfig, loadLocalConfig, loadRemoteConfig, loadResolvedConfig, mergeBosConfigWithExtends, oc, parsePort, parseRuntimeOverrideTargets, readBosConfigForBuild, rebuildOrderedConfig, resolveBosConfigPath, resolveComposableReference, resolveDevelopmentHostUrl, resolveExtendsRef, resolveLocalDevelopmentPath, resolvePluginRuntimeName, resumeWarnings, suppressWarnings, writePluginSidebarGen, writeResolvedConfig, z };
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { buildRegistryConfigUrl, buildRegistryConfigUrlForNetwork, fetchBosConfigFromFastKv, fetchRemotePluginManifest, getFastKvBaseUrlForNetwork, getRegistryNamespaceForAccount, getRegistryNamespaceForNetwork } from "./fastkv.mjs";
|
|
2
2
|
import { BOS_CONFIG_ORDER, mergeBosConfigWithExtends, rebuildOrderedConfig, resolveExtendsRef } from "./merge.mjs";
|
|
3
|
-
import { ApiPluginConfigSchema, BosConfigInputSchema, BosConfigSchema, BosPluginRefSchema, BosStagingSchema, CiConfigSchema, ClientRuntimeConfigSchema, ClientRuntimeInfoSchema, ComposableAppEntrySchema, ExtendsSchema, FederationEntrySchema, HostConfigSchema, PluginUiConfigSchema, RailwayCiSchema, RuntimeConfigSchema, RuntimeLineageSchema, RuntimePluginConfigSchema, SharedConfigSchema, SharedDepConfigSchema, SidebarItemSchema, SidebarRoleSchema, SourceModeSchema, UiConfigSchema } from "./types.mjs";
|
|
3
|
+
import { ApiPluginConfigSchema, BosConfigInputSchema, BosConfigSchema, BosPluginRefSchema, BosStagingSchema, CiConfigSchema, ClientRuntimeConfigSchema, ClientRuntimeInfoSchema, ComposableAppEntrySchema, ExtendsSchema, FederationEntrySchema, HostConfigSchema, JsonObjectSchema, JsonValueSchema, PluginUiConfigSchema, RailwayCiSchema, RuntimeConfigSchema, RuntimeLineageSchema, RuntimePluginConfigSchema, SharedConfigSchema, SharedDepConfigSchema, SidebarItemSchema, SidebarRoleSchema, SourceModeSchema, UiConfigSchema } from "./types.mjs";
|
|
4
4
|
import { buildRuntimeConfig, buildRuntimePluginsForConfig, clearConfigCache, drainConfigWarnings, findConfigPath, getConfig, getHostDevelopmentPort, getProjectRoot, getResolvedConfigPath, isLocalDevelopmentTarget, isRuntimeOverrideAllowed, loadBosConfig, loadGeneratedResolvedConfig, loadLocalConfig, loadRemoteConfig, loadResolvedConfig, parsePort, parseRuntimeOverrideTargets, readBosConfigForBuild, resolveBosConfigPath, resolveComposableReference, resolveDevelopmentHostUrl, resolveLocalDevelopmentPath, resolvePluginRuntimeName, resumeWarnings, suppressWarnings, writeResolvedConfig } from "./config.mjs";
|
|
5
5
|
import { Context, Effect, Layer, PluginRuntime, Scope, createPlugin, createPluginRuntime, oc, z } from "./sdk.mjs";
|
|
6
6
|
import { BuildOptionsSchema, BuildResultSchema, ConfigOptionsSchema, ConfigResultSchema, DeployOptionsSchema, DeployResultSchema, DevOptionsSchema, DevResultSchema, InitOptionsSchema, InitResultSchema, KeyPublishOptionsSchema, KeyPublishResultSchema, OverrideSectionSchema, PhaseTimingSchema, PluginAddOptionsSchema, PluginAddResultSchema, PluginListResultSchema, PluginPublishOptionsSchema, PluginPublishResultSchema, PluginRemoveOptionsSchema, PluginRemoveResultSchema, PublishOptionsSchema, PublishResultSchema, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, StartOptionsSchema, StartResultSchema, StatusResultSchema, SyncOptionsSchema, SyncResultSchema, TypesGenOptionsSchema, TypesGenResultSchema, UpgradeOptionsSchema, UpgradeResultSchema, bosContract } from "./contract.mjs";
|
|
7
7
|
import { cliCommandMeta } from "./contract.meta.mjs";
|
|
8
8
|
import { generatePluginSidebarContent, writePluginSidebarGen } from "./sidebar.mjs";
|
|
9
9
|
|
|
10
|
-
export { ApiPluginConfigSchema, BOS_CONFIG_ORDER, BosConfigInputSchema, BosConfigSchema, BosPluginRefSchema, BosStagingSchema, BuildOptionsSchema, BuildResultSchema, CiConfigSchema, ClientRuntimeConfigSchema, ClientRuntimeInfoSchema, ComposableAppEntrySchema, ConfigOptionsSchema, ConfigResultSchema, Context, DeployOptionsSchema, DeployResultSchema, DevOptionsSchema, DevResultSchema, Effect, ExtendsSchema, FederationEntrySchema, HostConfigSchema, InitOptionsSchema, InitResultSchema, KeyPublishOptionsSchema, KeyPublishResultSchema, Layer, OverrideSectionSchema, PhaseTimingSchema, PluginAddOptionsSchema, PluginAddResultSchema, PluginListResultSchema, PluginPublishOptionsSchema, PluginPublishResultSchema, PluginRemoveOptionsSchema, PluginRemoveResultSchema, PluginRuntime, PluginUiConfigSchema, PublishOptionsSchema, PublishResultSchema, RailwayCiSchema, RuntimeConfigSchema, RuntimeLineageSchema, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, RuntimePluginConfigSchema, Scope, SharedConfigSchema, SharedDepConfigSchema, SidebarItemSchema, SidebarRoleSchema, SourceModeSchema, StartOptionsSchema, StartResultSchema, StatusResultSchema, SyncOptionsSchema, SyncResultSchema, TypesGenOptionsSchema, TypesGenResultSchema, UiConfigSchema, UpgradeOptionsSchema, UpgradeResultSchema, bosContract, buildRegistryConfigUrl, buildRegistryConfigUrlForNetwork, buildRuntimeConfig, buildRuntimePluginsForConfig, clearConfigCache, cliCommandMeta, createPlugin, createPluginRuntime, drainConfigWarnings, fetchBosConfigFromFastKv, fetchRemotePluginManifest, findConfigPath, generatePluginSidebarContent, getConfig, getFastKvBaseUrlForNetwork, getHostDevelopmentPort, getProjectRoot, getRegistryNamespaceForAccount, getRegistryNamespaceForNetwork, getResolvedConfigPath, isLocalDevelopmentTarget, isRuntimeOverrideAllowed, loadBosConfig, loadGeneratedResolvedConfig, loadLocalConfig, loadRemoteConfig, loadResolvedConfig, mergeBosConfigWithExtends, oc, parsePort, parseRuntimeOverrideTargets, readBosConfigForBuild, rebuildOrderedConfig, resolveBosConfigPath, resolveComposableReference, resolveDevelopmentHostUrl, resolveExtendsRef, resolveLocalDevelopmentPath, resolvePluginRuntimeName, resumeWarnings, suppressWarnings, writePluginSidebarGen, writeResolvedConfig, z };
|
|
10
|
+
export { ApiPluginConfigSchema, BOS_CONFIG_ORDER, BosConfigInputSchema, BosConfigSchema, BosPluginRefSchema, BosStagingSchema, BuildOptionsSchema, BuildResultSchema, CiConfigSchema, ClientRuntimeConfigSchema, ClientRuntimeInfoSchema, ComposableAppEntrySchema, ConfigOptionsSchema, ConfigResultSchema, Context, DeployOptionsSchema, DeployResultSchema, DevOptionsSchema, DevResultSchema, Effect, ExtendsSchema, FederationEntrySchema, HostConfigSchema, InitOptionsSchema, InitResultSchema, JsonObjectSchema, JsonValueSchema, KeyPublishOptionsSchema, KeyPublishResultSchema, Layer, OverrideSectionSchema, PhaseTimingSchema, PluginAddOptionsSchema, PluginAddResultSchema, PluginListResultSchema, PluginPublishOptionsSchema, PluginPublishResultSchema, PluginRemoveOptionsSchema, PluginRemoveResultSchema, PluginRuntime, PluginUiConfigSchema, PublishOptionsSchema, PublishResultSchema, RailwayCiSchema, RuntimeConfigSchema, RuntimeLineageSchema, RuntimeOverrideTargetBaseSchema, RuntimeOverrideTargetSchema, RuntimePluginConfigSchema, Scope, SharedConfigSchema, SharedDepConfigSchema, SidebarItemSchema, SidebarRoleSchema, SourceModeSchema, StartOptionsSchema, StartResultSchema, StatusResultSchema, SyncOptionsSchema, SyncResultSchema, TypesGenOptionsSchema, TypesGenResultSchema, UiConfigSchema, UpgradeOptionsSchema, UpgradeResultSchema, bosContract, buildRegistryConfigUrl, buildRegistryConfigUrlForNetwork, buildRuntimeConfig, buildRuntimePluginsForConfig, clearConfigCache, cliCommandMeta, createPlugin, createPluginRuntime, drainConfigWarnings, fetchBosConfigFromFastKv, fetchRemotePluginManifest, findConfigPath, generatePluginSidebarContent, getConfig, getFastKvBaseUrlForNetwork, getHostDevelopmentPort, getProjectRoot, getRegistryNamespaceForAccount, getRegistryNamespaceForNetwork, getResolvedConfigPath, isLocalDevelopmentTarget, isRuntimeOverrideAllowed, loadBosConfig, loadGeneratedResolvedConfig, loadLocalConfig, loadRemoteConfig, loadResolvedConfig, mergeBosConfigWithExtends, oc, parsePort, parseRuntimeOverrideTargets, readBosConfigForBuild, rebuildOrderedConfig, resolveBosConfigPath, resolveComposableReference, resolveDevelopmentHostUrl, resolveExtendsRef, resolveLocalDevelopmentPath, resolvePluginRuntimeName, resumeWarnings, suppressWarnings, writePluginSidebarGen, writeResolvedConfig, z };
|
package/dist/plugin.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BosConfigInput, RuntimeConfig } from "./types.cjs";
|
|
1
|
+
import { BosConfigInput, JsonValue, RuntimeConfig } from "./types.cjs";
|
|
2
2
|
import { z } from "./sdk.cjs";
|
|
3
3
|
import { AppOrchestrator, ServiceDescriptor } from "./service-descriptor.cjs";
|
|
4
4
|
import * as _$_orpc_contract0 from "@orpc/contract";
|
|
@@ -136,7 +136,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
136
136
|
production: z.ZodOptional<z.ZodString>;
|
|
137
137
|
integrity: z.ZodOptional<z.ZodString>;
|
|
138
138
|
proxy: z.ZodOptional<z.ZodString>;
|
|
139
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
139
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
140
140
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
141
141
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
142
|
icon: z.ZodString;
|
|
@@ -187,7 +187,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
187
187
|
production: z.ZodOptional<z.ZodString>;
|
|
188
188
|
integrity: z.ZodOptional<z.ZodString>;
|
|
189
189
|
proxy: z.ZodOptional<z.ZodString>;
|
|
190
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
190
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
191
191
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
192
192
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
193
193
|
icon: z.ZodString;
|
|
@@ -212,7 +212,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
212
212
|
production: z.ZodOptional<z.ZodString>;
|
|
213
213
|
integrity: z.ZodOptional<z.ZodString>;
|
|
214
214
|
proxy: z.ZodOptional<z.ZodString>;
|
|
215
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
215
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
216
216
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
217
217
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
218
218
|
icon: z.ZodString;
|
|
@@ -480,8 +480,8 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
480
480
|
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
481
481
|
typesGen: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
482
482
|
env: z.ZodOptional<z.ZodEnum<{
|
|
483
|
-
production: "production";
|
|
484
483
|
development: "development";
|
|
484
|
+
production: "production";
|
|
485
485
|
}>>;
|
|
486
486
|
dryRun: z.ZodDefault<z.ZodBoolean>;
|
|
487
487
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -530,7 +530,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
530
530
|
production?: string | undefined;
|
|
531
531
|
integrity?: string | undefined;
|
|
532
532
|
proxy?: string | undefined;
|
|
533
|
-
variables?: Record<string,
|
|
533
|
+
variables?: Record<string, JsonValue> | undefined;
|
|
534
534
|
secrets?: string[] | undefined;
|
|
535
535
|
sidebar?: {
|
|
536
536
|
icon: string;
|
|
@@ -551,7 +551,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
551
551
|
production?: string | undefined;
|
|
552
552
|
integrity?: string | undefined;
|
|
553
553
|
proxy?: string | undefined;
|
|
554
|
-
variables?: Record<string,
|
|
554
|
+
variables?: Record<string, JsonValue> | undefined;
|
|
555
555
|
secrets?: string[] | undefined;
|
|
556
556
|
sidebar?: {
|
|
557
557
|
icon: string;
|
|
@@ -599,7 +599,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
599
599
|
production?: string | undefined;
|
|
600
600
|
integrity?: string | undefined;
|
|
601
601
|
proxy?: string | undefined;
|
|
602
|
-
variables?: Record<string,
|
|
602
|
+
variables?: Record<string, JsonValue> | undefined;
|
|
603
603
|
secrets?: string[] | undefined;
|
|
604
604
|
sidebar?: {
|
|
605
605
|
icon: string;
|
|
@@ -622,7 +622,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
622
622
|
}> | undefined;
|
|
623
623
|
} | null;
|
|
624
624
|
runtimeConfig: {
|
|
625
|
-
env: "
|
|
625
|
+
env: "development" | "production" | "staging";
|
|
626
626
|
account: string;
|
|
627
627
|
networkId: "testnet" | "mainnet";
|
|
628
628
|
host: {
|
|
@@ -656,7 +656,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
656
656
|
localPath?: string | undefined;
|
|
657
657
|
port?: number | undefined;
|
|
658
658
|
proxy?: string | undefined;
|
|
659
|
-
variables?: Record<string,
|
|
659
|
+
variables?: Record<string, JsonValue> | undefined;
|
|
660
660
|
secrets?: string[] | undefined;
|
|
661
661
|
};
|
|
662
662
|
domain?: string | undefined;
|
|
@@ -690,7 +690,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
690
690
|
localPath?: string | undefined;
|
|
691
691
|
port?: number | undefined;
|
|
692
692
|
proxy?: string | undefined;
|
|
693
|
-
variables?: Record<string,
|
|
693
|
+
variables?: Record<string, JsonValue> | undefined;
|
|
694
694
|
secrets?: string[] | undefined;
|
|
695
695
|
sidebar?: {
|
|
696
696
|
icon: string;
|
|
@@ -707,7 +707,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
707
707
|
localPath?: string | undefined;
|
|
708
708
|
port?: number | undefined;
|
|
709
709
|
proxy?: string | undefined;
|
|
710
|
-
variables?: Record<string,
|
|
710
|
+
variables?: Record<string, JsonValue> | undefined;
|
|
711
711
|
secrets?: string[] | undefined;
|
|
712
712
|
integrity?: string | undefined;
|
|
713
713
|
ui?: {
|
package/dist/plugin.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BosConfigInput, RuntimeConfig } from "./types.mjs";
|
|
1
|
+
import { BosConfigInput, JsonValue, RuntimeConfig } from "./types.mjs";
|
|
2
2
|
import { z } from "./sdk.mjs";
|
|
3
3
|
import { AppOrchestrator, ServiceDescriptor } from "./service-descriptor.mjs";
|
|
4
4
|
import * as _$every_plugin0 from "every-plugin";
|
|
@@ -136,7 +136,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
136
136
|
production: z.ZodOptional<z.ZodString>;
|
|
137
137
|
integrity: z.ZodOptional<z.ZodString>;
|
|
138
138
|
proxy: z.ZodOptional<z.ZodString>;
|
|
139
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
139
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
140
140
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
141
141
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
142
|
icon: z.ZodString;
|
|
@@ -187,7 +187,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
187
187
|
production: z.ZodOptional<z.ZodString>;
|
|
188
188
|
integrity: z.ZodOptional<z.ZodString>;
|
|
189
189
|
proxy: z.ZodOptional<z.ZodString>;
|
|
190
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
190
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
191
191
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
192
192
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
193
193
|
icon: z.ZodString;
|
|
@@ -212,7 +212,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
212
212
|
production: z.ZodOptional<z.ZodString>;
|
|
213
213
|
integrity: z.ZodOptional<z.ZodString>;
|
|
214
214
|
proxy: z.ZodOptional<z.ZodString>;
|
|
215
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
215
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
216
216
|
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
217
217
|
sidebar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
218
218
|
icon: z.ZodString;
|
|
@@ -480,8 +480,8 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
480
480
|
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
481
481
|
typesGen: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
482
482
|
env: z.ZodOptional<z.ZodEnum<{
|
|
483
|
-
production: "production";
|
|
484
483
|
development: "development";
|
|
484
|
+
production: "production";
|
|
485
485
|
}>>;
|
|
486
486
|
dryRun: z.ZodDefault<z.ZodBoolean>;
|
|
487
487
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -530,7 +530,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
530
530
|
production?: string | undefined;
|
|
531
531
|
integrity?: string | undefined;
|
|
532
532
|
proxy?: string | undefined;
|
|
533
|
-
variables?: Record<string,
|
|
533
|
+
variables?: Record<string, JsonValue> | undefined;
|
|
534
534
|
secrets?: string[] | undefined;
|
|
535
535
|
sidebar?: {
|
|
536
536
|
icon: string;
|
|
@@ -551,7 +551,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
551
551
|
production?: string | undefined;
|
|
552
552
|
integrity?: string | undefined;
|
|
553
553
|
proxy?: string | undefined;
|
|
554
|
-
variables?: Record<string,
|
|
554
|
+
variables?: Record<string, JsonValue> | undefined;
|
|
555
555
|
secrets?: string[] | undefined;
|
|
556
556
|
sidebar?: {
|
|
557
557
|
icon: string;
|
|
@@ -599,7 +599,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
599
599
|
production?: string | undefined;
|
|
600
600
|
integrity?: string | undefined;
|
|
601
601
|
proxy?: string | undefined;
|
|
602
|
-
variables?: Record<string,
|
|
602
|
+
variables?: Record<string, JsonValue> | undefined;
|
|
603
603
|
secrets?: string[] | undefined;
|
|
604
604
|
sidebar?: {
|
|
605
605
|
icon: string;
|
|
@@ -622,7 +622,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
622
622
|
}> | undefined;
|
|
623
623
|
} | null;
|
|
624
624
|
runtimeConfig: {
|
|
625
|
-
env: "
|
|
625
|
+
env: "development" | "production" | "staging";
|
|
626
626
|
account: string;
|
|
627
627
|
networkId: "testnet" | "mainnet";
|
|
628
628
|
host: {
|
|
@@ -656,7 +656,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
656
656
|
localPath?: string | undefined;
|
|
657
657
|
port?: number | undefined;
|
|
658
658
|
proxy?: string | undefined;
|
|
659
|
-
variables?: Record<string,
|
|
659
|
+
variables?: Record<string, JsonValue> | undefined;
|
|
660
660
|
secrets?: string[] | undefined;
|
|
661
661
|
};
|
|
662
662
|
domain?: string | undefined;
|
|
@@ -690,7 +690,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
690
690
|
localPath?: string | undefined;
|
|
691
691
|
port?: number | undefined;
|
|
692
692
|
proxy?: string | undefined;
|
|
693
|
-
variables?: Record<string,
|
|
693
|
+
variables?: Record<string, JsonValue> | undefined;
|
|
694
694
|
secrets?: string[] | undefined;
|
|
695
695
|
sidebar?: {
|
|
696
696
|
icon: string;
|
|
@@ -707,7 +707,7 @@ declare const _default: _$every_plugin0.LoadedPluginWithBinding<{
|
|
|
707
707
|
localPath?: string | undefined;
|
|
708
708
|
port?: number | undefined;
|
|
709
709
|
proxy?: string | undefined;
|
|
710
|
-
variables?: Record<string,
|
|
710
|
+
variables?: Record<string, JsonValue> | undefined;
|
|
711
711
|
secrets?: string[] | undefined;
|
|
712
712
|
integrity?: string | undefined;
|
|
713
713
|
ui?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-descriptor.cjs","names":["Context","Layer"],"sources":["../src/service-descriptor.ts"],"sourcesContent":["import { Context, Layer } from \"effect\";\nimport type { RuntimeConfig, SourceMode } from \"./types\";\n\nexport interface ServiceDescriptor {\n key: string;\n source: SourceMode;\n url: string;\n remoteUrl?: string;\n entry: string;\n name: string;\n localPath?: string;\n port?: number;\n readinessPath: string;\n defaultPort: number;\n integrity?: string;\n proxy?: string;\n variables?: Record<string, string>;\n secrets?: string[];\n ssr?: boolean;\n command?: string;\n args?: string[];\n readyPatterns?: RegExp[];\n errorPatterns?: RegExp[];\n}\n\nexport class ServiceDescriptorMap extends Context.Tag(\"ServiceDescriptorMap\")<\n ServiceDescriptorMap,\n Map<string, ServiceDescriptor>\n>() {}\n\nexport class DevRuntimeConfig extends Context.Tag(\"DevRuntimeConfig\")<\n DevRuntimeConfig,\n RuntimeConfig\n>() {}\n\nconst PLUGIN_READY_PATTERNS = [/ready in/i, /compiled.*successfully/i, /listening/i, /started/i];\n\nconst PLUGIN_ERROR_PATTERNS = [/error/i, /failed/i];\n\nconst SERVICE_CONFIGS: Record<\n string,\n Pick<\n ServiceDescriptor,\n \"command\" | \"args\" | \"readyPatterns\" | \"errorPatterns\" | \"defaultPort\" | \"readinessPath\"\n >\n> = {\n host: {\n command: \"bun\",\n args: [\"run\", \"dev\"],\n readyPatterns: [/Host (dev|production) server running at/i, /Server running at/i],\n errorPatterns: [/error:/i, /failed/i, /exception/i],\n defaultPort: 3000,\n readinessPath: \"/health\",\n },\n auth: {\n command: \"bun\",\n args: [\"run\", \"dev\"],\n readyPatterns: PLUGIN_READY_PATTERNS,\n errorPatterns: PLUGIN_ERROR_PATTERNS,\n defaultPort: 3002,\n readinessPath: \"/remoteEntry.js\",\n },\n ui: {\n command: \"bun\",\n args: [\"run\", \"dev\"],\n readyPatterns: [/\\bready\\s+built in\\b/i, /\\bLocal:\\b/i, /\\bcompiled\\b.*successfully/i],\n errorPatterns: [/error/i, /failed to compile/i],\n defaultPort: 3003,\n readinessPath: \"/remoteEntry.js\",\n },\n \"ui-ssr\": {\n command: \"bun\",\n args: [\"run\", \"dev:ssr\"],\n readyPatterns: [/\\bready\\s+built in\\b/i, /\\bcompiled\\b.*successfully/i],\n errorPatterns: [/error/i, /failed/i],\n defaultPort: 3004,\n readinessPath: \"/\",\n },\n api: {\n command: \"bun\",\n args: [\"run\", \"dev\"],\n readyPatterns: PLUGIN_READY_PATTERNS,\n errorPatterns: PLUGIN_ERROR_PATTERNS,\n defaultPort: 3001,\n readinessPath: \"/remoteEntry.js\",\n },\n};\n\nexport function buildServiceDescriptorMap(\n runtimeConfig: RuntimeConfig,\n options?: { ssr?: boolean; proxy?: boolean },\n): Map<string, ServiceDescriptor> {\n const map = new Map<string, ServiceDescriptor>();\n const ssr = options?.ssr ?? false;\n\n const hostIsRemote = runtimeConfig.host.source === \"remote\";\n const hostProbeUrl = hostIsRemote\n ? (runtimeConfig.host.remoteUrl ?? runtimeConfig.host.url)\n : runtimeConfig.host.url;\n map.set(\"host\", {\n key: \"host\",\n source: runtimeConfig.host.source,\n url: hostProbeUrl,\n remoteUrl: runtimeConfig.host.remoteUrl,\n entry: hostIsRemote\n ? hostProbeUrl\n ? `${hostProbeUrl}/mf-manifest.json`\n : \"/mf-manifest.json\"\n : runtimeConfig.host.entry,\n name: runtimeConfig.host.name,\n localPath: runtimeConfig.host.localPath,\n port: runtimeConfig.host.port,\n integrity: runtimeConfig.host.integrity,\n secrets: runtimeConfig.host.secrets,\n ...SERVICE_CONFIGS.host,\n });\n\n map.set(\"ui\", {\n key: \"ui\",\n source: runtimeConfig.ui.source,\n url: runtimeConfig.ui.url,\n remoteUrl: runtimeConfig.ui.source === \"remote\" ? runtimeConfig.ui.url : undefined,\n entry: runtimeConfig.ui.entry,\n name: runtimeConfig.ui.name,\n localPath: runtimeConfig.ui.localPath,\n port: runtimeConfig.ui.port,\n integrity: runtimeConfig.ui.integrity,\n ssr,\n ...SERVICE_CONFIGS.ui,\n });\n\n if (ssr && runtimeConfig.ui.source === \"local\") {\n map.set(\"ui-ssr\", {\n key: \"ui-ssr\",\n source: runtimeConfig.ui.source,\n url: runtimeConfig.ui.ssrUrl ?? \"\",\n entry: \"\",\n name: \"ui-ssr\",\n localPath: runtimeConfig.ui.localPath,\n port: runtimeConfig.ui.ssrUrl\n ? Number.parseInt(new URL(runtimeConfig.ui.ssrUrl).port, 10)\n : (runtimeConfig.ui.port ?? 3003) + 1,\n ...SERVICE_CONFIGS[\"ui-ssr\"],\n });\n }\n\n map.set(\"api\", {\n key: \"api\",\n source: runtimeConfig.api.source,\n url: runtimeConfig.api.url,\n remoteUrl: runtimeConfig.api.source === \"remote\" ? runtimeConfig.api.url : undefined,\n entry: runtimeConfig.api.entry,\n name: runtimeConfig.api.name,\n localPath: runtimeConfig.api.localPath,\n port: runtimeConfig.api.port,\n integrity: runtimeConfig.api.integrity,\n proxy: runtimeConfig.api.proxy,\n variables: runtimeConfig.api.variables,\n secrets: runtimeConfig.api.secrets,\n ...SERVICE_CONFIGS.api,\n });\n\n if (runtimeConfig.auth) {\n map.set(\"auth\", {\n key: \"auth\",\n source: runtimeConfig.auth.source,\n url: runtimeConfig.auth.url,\n remoteUrl: runtimeConfig.auth.source === \"remote\" ? runtimeConfig.auth.url : undefined,\n entry: runtimeConfig.auth.entry,\n name: runtimeConfig.auth.name,\n localPath: runtimeConfig.auth.localPath,\n port: runtimeConfig.auth.port,\n integrity: runtimeConfig.auth.integrity,\n proxy: runtimeConfig.auth.proxy,\n variables: runtimeConfig.auth.variables,\n secrets: runtimeConfig.auth.secrets,\n ...SERVICE_CONFIGS.auth,\n });\n }\n\n if (runtimeConfig.plugins) {\n let pluginBasePort = 3010;\n for (const [pluginId, pluginConfig] of Object.entries(runtimeConfig.plugins)) {\n const pluginKey = `plugin:${pluginId}`;\n const resolvedPort = pluginConfig.port ?? pluginBasePort;\n pluginBasePort = resolvedPort + 1;\n\n map.set(pluginKey, {\n key: pluginKey,\n source: pluginConfig.source,\n url: pluginConfig.url,\n remoteUrl: pluginConfig.source === \"remote\" ? pluginConfig.url : undefined,\n entry: pluginConfig.entry,\n name: pluginConfig.name,\n localPath: pluginConfig.localPath,\n port: resolvedPort,\n integrity: pluginConfig.integrity,\n proxy: pluginConfig.proxy,\n variables: pluginConfig.variables,\n secrets: pluginConfig.secrets,\n command: \"bun\",\n args: [\"run\", \"dev\"],\n readyPatterns: PLUGIN_READY_PATTERNS,\n errorPatterns: PLUGIN_ERROR_PATTERNS,\n defaultPort: resolvedPort,\n readinessPath: \"/remoteEntry.js\",\n });\n\n if (pluginConfig.ui?.localPath && pluginConfig.ui.source === \"local\") {\n const uiKey = `plugin-ui:${pluginId}`;\n const uiPort = pluginConfig.ui.port ?? pluginBasePort;\n pluginBasePort = uiPort + 1;\n\n map.set(uiKey, {\n key: uiKey,\n source: pluginConfig.ui.source,\n url: pluginConfig.ui.url,\n entry: pluginConfig.ui.entry,\n name: pluginConfig.ui.name,\n localPath: pluginConfig.ui.localPath,\n port: uiPort,\n integrity: pluginConfig.ui.integrity,\n command: \"bun\",\n args: [\"run\", \"dev\"],\n readyPatterns: PLUGIN_READY_PATTERNS,\n errorPatterns: PLUGIN_ERROR_PATTERNS,\n defaultPort: uiPort,\n readinessPath: \"/remoteEntry.js\",\n });\n }\n }\n }\n\n return map;\n}\n\nexport interface AppOrchestrator {\n packages: string[];\n description: string;\n env: Record<string, string>;\n port?: number;\n interactive?: boolean;\n noLogs?: boolean;\n}\n\nexport const ServiceDescriptorMapLive = (map: Map<string, ServiceDescriptor>) =>\n Layer.succeed(ServiceDescriptorMap, map);\n\nexport const DevRuntimeConfigLive = (config: RuntimeConfig) =>\n Layer.succeed(DevRuntimeConfig, config);\n\nexport function buildDescription(map: Map<string, ServiceDescriptor>): string {\n const descriptors = [...map.values()].filter(\n (d) => d.key !== \"ui-ssr\" && !d.key.startsWith(\"plugin:\"),\n );\n\n const allLocal = descriptors.every((d) => d.source === \"local\");\n const hasProxy = [...map.values()].some((d) => d.proxy && d.source === \"local\");\n if (allLocal && !hasProxy) return \"Full Local Development\";\n\n const parts: string[] = [];\n for (const d of descriptors) {\n if (d.source === \"remote\") {\n const label =\n d.key === \"host\"\n ? \"Remote Host\"\n : d.key === \"ui\"\n ? \"Remote UI\"\n : d.key === \"api\"\n ? hasProxy\n ? undefined\n : \"Remote API\"\n : d.key === \"auth\"\n ? \"Remote Auth\"\n : undefined;\n if (label) parts.push(label);\n }\n }\n if (hasProxy) parts.push(\"Proxy API → Production\");\n return parts.join(\" + \") || \"Remote Mode\";\n}\n"],"mappings":";;;;AAyBA,IAAa,uBAAb,cAA0CA,eAAQ,IAAI,uBAAuB,EAG1E,CAAC;AAEJ,IAAa,mBAAb,cAAsCA,eAAQ,IAAI,mBAAmB,EAGlE,CAAC;AAEJ,MAAM,wBAAwB;CAAC;CAAa;CAA2B;CAAc;CAAW;AAEhG,MAAM,wBAAwB,CAAC,UAAU,UAAU;AAEnD,MAAM,kBAMF;CACF,MAAM;EACJ,SAAS;EACT,MAAM,CAAC,OAAO,MAAM;EACpB,eAAe,CAAC,4CAA4C,qBAAqB;EACjF,eAAe;GAAC;GAAW;GAAW;GAAa;EACnD,aAAa;EACb,eAAe;EAChB;CACD,MAAM;EACJ,SAAS;EACT,MAAM,CAAC,OAAO,MAAM;EACpB,eAAe;EACf,eAAe;EACf,aAAa;EACb,eAAe;EAChB;CACD,IAAI;EACF,SAAS;EACT,MAAM,CAAC,OAAO,MAAM;EACpB,eAAe;GAAC;GAAyB;GAAe;GAA8B;EACtF,eAAe,CAAC,UAAU,qBAAqB;EAC/C,aAAa;EACb,eAAe;EAChB;CACD,UAAU;EACR,SAAS;EAC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BACA,EAAE,QAAQ,OACR,cACA,EAAE,QAAQ,QACR,WACE,SACA,eACF,EAAE,QAAQ,SACR,gBACA;AACZ,MAAI,MAAO,OAAM,KAAK,MAAM;;AAGhC,KAAI,SAAU,OAAM,KAAK,yBAAyB;AAClD,QAAO,MAAM,KAAK,MAAM,IAAI"}
|
|
1
|
+
{"version":3,"file":"service-descriptor.cjs","names":["Context","Layer"],"sources":["../src/service-descriptor.ts"],"sourcesContent":["import { Context, Layer } from \"effect\";\nimport type { JsonObject, RuntimeConfig, SourceMode } from \"./types\";\n\nexport interface ServiceDescriptor {\n key: string;\n source: SourceMode;\n url: string;\n remoteUrl?: string;\n entry: string;\n name: string;\n localPath?: string;\n port?: number;\n readinessPath: string;\n defaultPort: number;\n integrity?: string;\n proxy?: string;\n variables?: JsonObject;\n secrets?: string[];\n ssr?: boolean;\n command?: string;\n args?: string[];\n readyPatterns?: RegExp[];\n errorPatterns?: RegExp[];\n}\n\nexport class ServiceDescriptorMap extends Context.Tag(\"ServiceDescriptorMap\")<\n ServiceDescriptorMap,\n Map<string, ServiceDescriptor>\n>() {}\n\nexport class DevRuntimeConfig extends Context.Tag(\"DevRuntimeConfig\")<\n DevRuntimeConfig,\n RuntimeConfig\n>() {}\n\nconst PLUGIN_READY_PATTERNS = [/ready in/i, /compiled.*successfully/i, /listening/i, /started/i];\n\nconst PLUGIN_ERROR_PATTERNS = [/error/i, /failed/i];\n\nconst SERVICE_CONFIGS: Record<\n string,\n Pick<\n ServiceDescriptor,\n \"command\" | \"args\" | \"readyPatterns\" | \"errorPatterns\" | \"defaultPort\" | \"readinessPath\"\n >\n> = {\n host: {\n command: \"bun\",\n args: [\"run\", \"dev\"],\n readyPatterns: [/Host (dev|production) server running at/i, /Server running at/i],\n errorPatterns: [/error:/i, /failed/i, /exception/i],\n defaultPort: 3000,\n readinessPath: \"/health\",\n },\n auth: {\n command: \"bun\",\n args: [\"run\", \"dev\"],\n readyPatterns: PLUGIN_READY_PATTERNS,\n errorPatterns: PLUGIN_ERROR_PATTERNS,\n defaultPort: 3002,\n readinessPath: \"/remoteEntry.js\",\n },\n ui: {\n command: \"bun\",\n args: [\"run\", \"dev\"],\n readyPatterns: [/\\bready\\s+built in\\b/i, /\\bLocal:\\b/i, /\\bcompiled\\b.*successfully/i],\n errorPatterns: [/error/i, /failed to compile/i],\n defaultPort: 3003,\n readinessPath: \"/remoteEntry.js\",\n },\n \"ui-ssr\": {\n command: \"bun\",\n args: [\"run\", \"dev:ssr\"],\n readyPatterns: [/\\bready\\s+built in\\b/i, /\\bcompiled\\b.*successfully/i],\n errorPatterns: [/error/i, /failed/i],\n defaultPort: 3004,\n readinessPath: \"/\",\n },\n api: {\n command: \"bun\",\n args: [\"run\", \"dev\"],\n readyPatterns: PLUGIN_READY_PATTERNS,\n errorPatterns: PLUGIN_ERROR_PATTERNS,\n defaultPort: 3001,\n readinessPath: \"/remoteEntry.js\",\n },\n};\n\nexport function buildServiceDescriptorMap(\n runtimeConfig: RuntimeConfig,\n options?: { ssr?: boolean; proxy?: boolean },\n): Map<string, ServiceDescriptor> {\n const map = new Map<string, ServiceDescriptor>();\n const ssr = options?.ssr ?? false;\n\n const hostIsRemote = runtimeConfig.host.source === \"remote\";\n const hostProbeUrl = hostIsRemote\n ? (runtimeConfig.host.remoteUrl ?? runtimeConfig.host.url)\n : runtimeConfig.host.url;\n map.set(\"host\", {\n key: \"host\",\n source: runtimeConfig.host.source,\n url: hostProbeUrl,\n remoteUrl: runtimeConfig.host.remoteUrl,\n entry: hostIsRemote\n ? hostProbeUrl\n ? `${hostProbeUrl}/mf-manifest.json`\n : \"/mf-manifest.json\"\n : runtimeConfig.host.entry,\n name: runtimeConfig.host.name,\n localPath: runtimeConfig.host.localPath,\n port: runtimeConfig.host.port,\n integrity: runtimeConfig.host.integrity,\n secrets: runtimeConfig.host.secrets,\n ...SERVICE_CONFIGS.host,\n });\n\n map.set(\"ui\", {\n key: \"ui\",\n source: runtimeConfig.ui.source,\n url: runtimeConfig.ui.url,\n remoteUrl: runtimeConfig.ui.source === \"remote\" ? runtimeConfig.ui.url : undefined,\n entry: runtimeConfig.ui.entry,\n name: runtimeConfig.ui.name,\n localPath: runtimeConfig.ui.localPath,\n port: runtimeConfig.ui.port,\n integrity: runtimeConfig.ui.integrity,\n ssr,\n ...SERVICE_CONFIGS.ui,\n });\n\n if (ssr && runtimeConfig.ui.source === \"local\") {\n map.set(\"ui-ssr\", {\n key: \"ui-ssr\",\n source: runtimeConfig.ui.source,\n url: runtimeConfig.ui.ssrUrl ?? \"\",\n entry: \"\",\n name: \"ui-ssr\",\n localPath: runtimeConfig.ui.localPath,\n port: runtimeConfig.ui.ssrUrl\n ? Number.parseInt(new URL(runtimeConfig.ui.ssrUrl).port, 10)\n : (runtimeConfig.ui.port ?? 3003) + 1,\n ...SERVICE_CONFIGS[\"ui-ssr\"],\n });\n }\n\n map.set(\"api\", {\n key: \"api\",\n source: runtimeConfig.api.source,\n url: runtimeConfig.api.url,\n remoteUrl: runtimeConfig.api.source === \"remote\" ? runtimeConfig.api.url : undefined,\n entry: runtimeConfig.api.entry,\n name: runtimeConfig.api.name,\n localPath: runtimeConfig.api.localPath,\n port: runtimeConfig.api.port,\n integrity: runtimeConfig.api.integrity,\n proxy: runtimeConfig.api.proxy,\n variables: runtimeConfig.api.variables,\n secrets: runtimeConfig.api.secrets,\n ...SERVICE_CONFIGS.api,\n });\n\n if (runtimeConfig.auth) {\n map.set(\"auth\", {\n key: \"auth\",\n source: runtimeConfig.auth.source,\n url: runtimeConfig.auth.url,\n remoteUrl: runtimeConfig.auth.source === \"remote\" ? runtimeConfig.auth.url : undefined,\n entry: runtimeConfig.auth.entry,\n name: runtimeConfig.auth.name,\n localPath: runtimeConfig.auth.localPath,\n port: runtimeConfig.auth.port,\n integrity: runtimeConfig.auth.integrity,\n proxy: runtimeConfig.auth.proxy,\n variables: runtimeConfig.auth.variables,\n secrets: runtimeConfig.auth.secrets,\n ...SERVICE_CONFIGS.auth,\n });\n }\n\n if (runtimeConfig.plugins) {\n let pluginBasePort = 3010;\n for (const [pluginId, pluginConfig] of Object.entries(runtimeConfig.plugins)) {\n const pluginKey = `plugin:${pluginId}`;\n const resolvedPort = pluginConfig.port ?? pluginBasePort;\n pluginBasePort = resolvedPort + 1;\n\n map.set(pluginKey, {\n key: pluginKey,\n source: pluginConfig.source,\n url: pluginConfig.url,\n remoteUrl: pluginConfig.source === \"remote\" ? pluginConfig.url : undefined,\n entry: pluginConfig.entry,\n name: pluginConfig.name,\n localPath: pluginConfig.localPath,\n port: resolvedPort,\n integrity: pluginConfig.integrity,\n proxy: pluginConfig.proxy,\n variables: pluginConfig.variables,\n secrets: pluginConfig.secrets,\n command: \"bun\",\n args: [\"run\", \"dev\"],\n readyPatterns: PLUGIN_READY_PATTERNS,\n errorPatterns: PLUGIN_ERROR_PATTERNS,\n defaultPort: resolvedPort,\n readinessPath: \"/remoteEntry.js\",\n });\n\n if (pluginConfig.ui?.localPath && pluginConfig.ui.source === \"local\") {\n const uiKey = `plugin-ui:${pluginId}`;\n const uiPort = pluginConfig.ui.port ?? pluginBasePort;\n pluginBasePort = uiPort + 1;\n\n map.set(uiKey, {\n key: uiKey,\n source: pluginConfig.ui.source,\n url: pluginConfig.ui.url,\n entry: pluginConfig.ui.entry,\n name: pluginConfig.ui.name,\n localPath: pluginConfig.ui.localPath,\n port: uiPort,\n integrity: pluginConfig.ui.integrity,\n command: \"bun\",\n args: [\"run\", \"dev\"],\n readyPatterns: PLUGIN_READY_PATTERNS,\n errorPatterns: PLUGIN_ERROR_PATTERNS,\n defaultPort: uiPort,\n readinessPath: \"/remoteEntry.js\",\n });\n }\n }\n }\n\n return map;\n}\n\nexport interface AppOrchestrator {\n packages: string[];\n description: string;\n env: Record<string, string>;\n port?: number;\n interactive?: boolean;\n noLogs?: boolean;\n}\n\nexport const ServiceDescriptorMapLive = (map: Map<string, ServiceDescriptor>) =>\n Layer.succeed(ServiceDescriptorMap, map);\n\nexport const DevRuntimeConfigLive = (config: RuntimeConfig) =>\n Layer.succeed(DevRuntimeConfig, config);\n\nexport function buildDescription(map: Map<string, ServiceDescriptor>): string {\n const descriptors = [...map.values()].filter(\n (d) => d.key !== \"ui-ssr\" && !d.key.startsWith(\"plugin:\"),\n );\n\n const allLocal = descriptors.every((d) => d.source === \"local\");\n const hasProxy = [...map.values()].some((d) => d.proxy && d.source === \"local\");\n if (allLocal && !hasProxy) return \"Full Local Development\";\n\n const parts: string[] = [];\n for (const d of descriptors) {\n if (d.source === \"remote\") {\n const label =\n d.key === \"host\"\n ? \"Remote Host\"\n : d.key === \"ui\"\n ? \"Remote UI\"\n : d.key === \"api\"\n ? hasProxy\n ? undefined\n : \"Remote API\"\n : d.key === \"auth\"\n ? \"Remote Auth\"\n : undefined;\n if (label) parts.push(label);\n }\n }\n if (hasProxy) parts.push(\"Proxy API → Production\");\n return parts.join(\" + \") || \"Remote Mode\";\n}\n"],"mappings":";;;;AAyBA,IAAa,uBAAb,cAA0CA,eAAQ,IAAI,uBAAuB,EAG1E,CAAC;AAEJ,IAAa,mBAAb,cAAsCA,eAAQ,IAAI,mBAAmB,EAGlE,CAAC;AAEJ,MAAM,wBAAwB;CAAC;CAAa;CAA2B;CAAc;CAAW;AAEhG,MAAM,wBAAwB,CAAC,UAAU,UAAU;AAEnD,MAAM,kBAMF;CACF,MAAM;EACJ,SAAS;EACT,MAAM,CAAC,OAAO,MAAM;EACpB,eAAe,CAAC,4CAA4C,qBAAqB;EACjF,eAAe;GAAC;GAAW;GAAW;GAAa;EACnD,aAAa;EACb,eAAe;EAChB;CACD,MAAM;EACJ,SAAS;EACT,MAAM,CAAC,OAAO,MAAM;EACpB,eAAe;EACf,eAAe;EACf,aAAa;EACb,eAAe;EAChB;CACD,IAAI;EACF,SAAS;EACT,MAAM,CAAC,OAAO,MAAM;EACpB,eAAe;GAAC;GAAyB;GAAe;GAA8B;EACtF,eAAe,CAAC,UAAU,qBAAqB;EAC/C,aAAa;EACb,eAAe;EAChB;CACD,UAAU;EACR,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,SACN,gBACA,EAAE,QAAQ,OACR,cACA,EAAE,QAAQ,QACR,WACE,SACA,eACF,EAAE,QAAQ,SACR,gBACA;AACZ,MAAI,MAAO,OAAM,KAAK,MAAM;;AAGhC,KAAI,SAAU,OAAM,KAAK,yBAAyB;AAClD,QAAO,MAAM,KAAK,MAAM,IAAI"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SourceMode } from "./types.cjs";
|
|
1
|
+
import { JsonObject, SourceMode } from "./types.cjs";
|
|
2
2
|
//#region src/service-descriptor.d.ts
|
|
3
3
|
interface ServiceDescriptor {
|
|
4
4
|
key: string;
|
|
@@ -13,7 +13,7 @@ interface ServiceDescriptor {
|
|
|
13
13
|
defaultPort: number;
|
|
14
14
|
integrity?: string;
|
|
15
15
|
proxy?: string;
|
|
16
|
-
variables?:
|
|
16
|
+
variables?: JsonObject;
|
|
17
17
|
secrets?: string[];
|
|
18
18
|
ssr?: boolean;
|
|
19
19
|
command?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-descriptor.d.cts","names":[],"sources":["../src/service-descriptor.ts"],"mappings":";;UAGiB,iBAAA;EACf,GAAA;EACA,MAAA,EAAQ,UAAA;EACR,GAAA;EACA,SAAA;EACA,KAAA;EACA,IAAA;EACA,SAAA;EACA,IAAA;EACA,aAAA;EACA,WAAA;EACA,SAAA;EACA,KAAA;EACA,SAAA,GAAY,
|
|
1
|
+
{"version":3,"file":"service-descriptor.d.cts","names":[],"sources":["../src/service-descriptor.ts"],"mappings":";;UAGiB,iBAAA;EACf,GAAA;EACA,MAAA,EAAQ,UAAA;EACR,GAAA;EACA,SAAA;EACA,KAAA;EACA,IAAA;EACA,SAAA;EACA,IAAA;EACA,aAAA;EACA,WAAA;EACA,SAAA;EACA,KAAA;EACA,SAAA,GAAY,UAAA;EACZ,OAAA;EACA,GAAA;EACA,OAAA;EACA,IAAA;EACA,aAAA,GAAgB,MAAA;EAChB,aAAA,GAAgB,MAAA;AAAA;AAAA,UAsND,eAAA;EACf,QAAA;EACA,WAAA;EACA,GAAA,EAAK,MAAA;EACL,IAAA;EACA,WAAA;EACA,MAAA;AAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SourceMode } from "./types.mjs";
|
|
1
|
+
import { JsonObject, SourceMode } from "./types.mjs";
|
|
2
2
|
import { Context, Layer } from "effect";
|
|
3
3
|
|
|
4
4
|
//#region src/service-descriptor.d.ts
|
|
@@ -15,7 +15,7 @@ interface ServiceDescriptor {
|
|
|
15
15
|
defaultPort: number;
|
|
16
16
|
integrity?: string;
|
|
17
17
|
proxy?: string;
|
|
18
|
-
variables?:
|
|
18
|
+
variables?: JsonObject;
|
|
19
19
|
secrets?: string[];
|
|
20
20
|
ssr?: boolean;
|
|
21
21
|
command?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-descriptor.d.mts","names":[],"sources":["../src/service-descriptor.ts"],"mappings":";;;;UAGiB,iBAAA;EACf,GAAA;EACA,MAAA,EAAQ,UAAA;EACR,GAAA;EACA,SAAA;EACA,KAAA;EACA,IAAA;EACA,SAAA;EACA,IAAA;EACA,aAAA;EACA,WAAA;EACA,SAAA;EACA,KAAA;EACA,SAAA,GAAY,
|
|
1
|
+
{"version":3,"file":"service-descriptor.d.mts","names":[],"sources":["../src/service-descriptor.ts"],"mappings":";;;;UAGiB,iBAAA;EACf,GAAA;EACA,MAAA,EAAQ,UAAA;EACR,GAAA;EACA,SAAA;EACA,KAAA;EACA,IAAA;EACA,SAAA;EACA,IAAA;EACA,aAAA;EACA,WAAA;EACA,SAAA;EACA,KAAA;EACA,SAAA,GAAY,UAAA;EACZ,OAAA;EACA,GAAA;EACA,OAAA;EACA,IAAA;EACA,aAAA,GAAgB,MAAA;EAChB,aAAA,GAAgB,MAAA;AAAA;AAAA,UAsND,eAAA;EACf,QAAA;EACA,WAAA;EACA,GAAA,EAAK,MAAA;EACL,IAAA;EACA,WAAA;EACA,MAAA;AAAA"}
|