@wildo-ai/wildo-cli 1.1.14 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/commands/generate/email-command.utils.d.ts +2 -0
- package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/email-command.utils.js +5 -0
- package/dist/src/commands/generate/email-command.utils.js.map +1 -1
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +7 -2
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
- package/dist/src/commands/local/deregister.command.js +4 -0
- package/dist/src/commands/local/deregister.command.js.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +6 -0
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +72 -0
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/jobs-command.utils.d.ts +24 -0
- package/dist/src/commands/local/jobs-command.utils.d.ts.map +1 -0
- package/dist/src/commands/local/jobs-command.utils.js +44 -0
- package/dist/src/commands/local/jobs-command.utils.js.map +1 -0
- package/dist/src/commands/local/jobs-run.command.d.ts +7 -0
- package/dist/src/commands/local/jobs-run.command.d.ts.map +1 -0
- package/dist/src/commands/local/jobs-run.command.js +92 -0
- package/dist/src/commands/local/jobs-run.command.js.map +1 -0
- package/dist/src/commands/local/jobs.command.d.ts +7 -0
- package/dist/src/commands/local/jobs.command.d.ts.map +1 -0
- package/dist/src/commands/local/jobs.command.js +59 -0
- package/dist/src/commands/local/jobs.command.js.map +1 -0
- package/dist/src/commands/local/tunnel.command.d.ts +84 -0
- package/dist/src/commands/local/tunnel.command.d.ts.map +1 -0
- package/dist/src/commands/local/tunnel.command.js +274 -0
- package/dist/src/commands/local/tunnel.command.js.map +1 -0
- package/dist/src/services/application/app-bootstrap.service.d.ts +41 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +49 -3
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.js +9 -1
- package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.d.ts +20 -0
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.js +32 -2
- package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
- package/dist/src/services/application/local-tunnel.service.d.ts +153 -0
- package/dist/src/services/application/local-tunnel.service.d.ts.map +1 -0
- package/dist/src/services/application/local-tunnel.service.js +294 -0
- package/dist/src/services/application/local-tunnel.service.js.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.js +3 -0
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.d.ts +7 -0
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +2 -0
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts +7 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.js +6 -3
- package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.d.ts +6 -0
- package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.js +1 -1
- package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js +3 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts +11 -2
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.js +12 -3
- package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js +3 -3
- package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +3 -3
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +16 -12
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts +6 -0
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.js +12 -3
- package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +4 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +17 -7
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +7 -0
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +15 -9
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts +43 -0
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js +12 -0
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js.map +1 -0
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts +3 -1
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.js.map +1 -1
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts +124 -0
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts.map +1 -0
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.js +249 -0
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.js.map +1 -0
- package/dist/src/services/environment/authored-infra-config.utils.d.ts +9 -0
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.js +20 -1
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts +6 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts.map +1 -1
- package/dist/src/services/environment/container-host-gateway-listen-host.js +6 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.js.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +12 -0
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +37 -5
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts +2 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js +47 -32
- package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts +7 -4
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.js +14 -18
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.js +17 -6
- package/dist/src/services/environment/environment-setup.service.js.map +1 -1
- package/dist/src/services/environment/environment.service.d.ts +4 -3
- package/dist/src/services/environment/environment.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.js +0 -1
- package/dist/src/services/environment/environment.service.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts +55 -15
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js +115 -25
- package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
- package/dist/src/services/security/csp-sync.service.js +21 -2
- package/dist/src/services/security/csp-sync.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +19 -19
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +14 -7
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +13 -0
- package/templates/saas/skeleton/.wildo-saas/wildo-dev-companion/scripts/dev-supervised.sh +18 -4
- package/templates/saas/skeleton/frontend/nginx-config/default.conf.hbs +1 -1
- package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +4 -4
- package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +2 -0
- package/wildo-framework.info.json +1 -1
|
@@ -6,8 +6,9 @@ import { EnvironmentUtils } from '../../../services/environment/environment.serv
|
|
|
6
6
|
import { assertProfileRunsDeclaredMinions, assertProfileRunsItsDatabaseFamilies, includesMongoSearchSidecar, selfHostsOptionalServiceAllowedByProfile, } from '../../../services/environment/environment-service-profile.utils.js';
|
|
7
7
|
import { EnvironmentPaths } from '../../../services/environment/environment-paths.service.js';
|
|
8
8
|
import { EnvironmentRegistry } from '../../../services/environment/environment-registry.service.js';
|
|
9
|
+
import { CONTAINER_HOST_GATEWAY_HOSTNAME } from '../../../services/environment/container-host-gateway-listen-host.js';
|
|
9
10
|
import { InfrastructureHost, SharedInfrastructureAction } from '../../../services/environment/infrastructure-host.service.js';
|
|
10
|
-
import { BackingServiceKind, BackingServiceSource, ConfigModuleResolution, INFRA_DEFAULT_PORTS, loadMinionConfigs, loadSaasConfig, loadWorkerConfigs, RUNTIME_MANDATORY_WRITABLE_PATH, PROVIDER_RUNTIME_GENERATED_ENV_FILE_NAME, resolveFrameworkLayout, WildoLocalDataStorage, resolveDefaultLocalDataStorage, PlatformWildoServices, selfHostsPlatformKeyVault, describeUnreachablePkcs11Module, pkcs11ModuleIsReachableInPlatformContainer, buildMinionLivenessHeartbeatEnv, buildMinionLivenessProbeCommand, deriveMinionLivenessProbeTiming, MINION_LIVENESS_STARTUP_BUDGET_SEC, ApplicationRuntimePrincipalKind, resolveRuntimeComposeNetworks, resolveApplicationDatabaseEngine, EnvironmentServiceProfileOptionalService, } from '@wildo-ai/platform-config-lib';
|
|
11
|
+
import { BackingServiceKind, BackingServiceSource, ConfigModuleResolution, INFRA_DEFAULT_PORTS, loadMinionConfigs, loadSaasConfig, loadWorkerConfigs, RUNTIME_MANDATORY_WRITABLE_PATH, PROVIDER_RUNTIME_GENERATED_ENV_FILE_NAME, resolveFrameworkLayout, WildoLocalDataStorage, resolveDefaultLocalDataStorage, PlatformWildoServices, selfHostsPlatformKeyVault, describeUnreachablePkcs11Module, pkcs11ModuleIsReachableInPlatformContainer, buildMinionLivenessHeartbeatEnv, buildMinionLivenessProbeCommand, deriveMinionLivenessProbeTiming, MINION_LIVENESS_STARTUP_BUDGET_SEC, ApplicationRuntimePrincipalKind, resolveRuntimeComposeNetworks, resolveApplicationDatabaseEngine, EnvironmentServiceProfileOptionalService, environmentServiceProfileRunsMessageBroker, resolveRuntimeApplicationStores, } from '@wildo-ai/platform-config-lib';
|
|
11
12
|
import { buildMinionServiceName, buildWorkerServiceName } from '@wildo-ai/platform-core-shared';
|
|
12
13
|
import { FILE_NAMES, GENERATED_FILE_HEADER } from '../../../infrastructure/io/io.schemas.js';
|
|
13
14
|
import { DEFAULT_DOCKER_COMPOSE_LOCAL_PROJECT_NAME, resolvePlatformImageRef } from '../../../services/environment/platform-runtime.schemas.js';
|
|
@@ -659,13 +660,13 @@ function writeFileWhenContentDiffers(path, content, mode) {
|
|
|
659
660
|
* internet. Compose cannot express egress restriction at all (the template says so beside every app runtime), and
|
|
660
661
|
* the Kubernetes lane, where egress IS enforced, is unaffected: this is compose-only, like the bridge.
|
|
661
662
|
*/
|
|
662
|
-
export function composeMinionNetworks(minionKey, declaration,
|
|
663
|
+
export function composeMinionNetworks(minionKey, declaration, applicationStores) {
|
|
663
664
|
return [
|
|
664
665
|
...resolveRuntimeComposeNetworks({ kind: ApplicationRuntimePrincipalKind.MINION, name: minionKey },
|
|
665
666
|
// Forwarded verbatim, absence included: an absent declaration and an empty one are different statements.
|
|
666
667
|
{ resourceAccess: declaration.resourceAccess, requiresInternetEgress: declaration.requiresInternetEgress },
|
|
667
668
|
// A minion serves no HTTP route.
|
|
668
|
-
{ servesHttp: false,
|
|
669
|
+
{ servesHttp: false, ...applicationStores }),
|
|
669
670
|
COMPOSE_HOST_ACCESS_NETWORK,
|
|
670
671
|
];
|
|
671
672
|
}
|
|
@@ -705,9 +706,9 @@ const COMPOSE_HOST_ACCESS_NETWORK = 'wildo-host-access';
|
|
|
705
706
|
* publishes its HTTP port. The hand-written list this replaced gave every worker MongoDB, Redis, RabbitMQ and object
|
|
706
707
|
* storage, none of which it holds a credential or topology for.
|
|
707
708
|
*/
|
|
708
|
-
export function composeWorkerNetworks(workerKey,
|
|
709
|
+
export function composeWorkerNetworks(workerKey, applicationStores) {
|
|
709
710
|
return [
|
|
710
|
-
...resolveRuntimeComposeNetworks({ kind: ApplicationRuntimePrincipalKind.WORKER, name: workerKey }, undefined, { servesHttp: false,
|
|
711
|
+
...resolveRuntimeComposeNetworks({ kind: ApplicationRuntimePrincipalKind.WORKER, name: workerKey }, undefined, { servesHttp: false, ...applicationStores }),
|
|
711
712
|
COMPOSE_HOST_ACCESS_NETWORK,
|
|
712
713
|
];
|
|
713
714
|
}
|
|
@@ -757,7 +758,7 @@ function relativeDockerfilePath(frameworkRoot, packageRoot) {
|
|
|
757
758
|
* `WILDO_PROVIDER_*` keys at boot.
|
|
758
759
|
*/
|
|
759
760
|
function buildAppMinionComposeEntries(input) {
|
|
760
|
-
const { saasRoot, frameworkRoot, saasConfig, minionEntries, environmentName,
|
|
761
|
+
const { saasRoot, frameworkRoot, saasConfig, minionEntries, environmentName, applicationStores } = input;
|
|
761
762
|
return minionEntries.map((entry) => {
|
|
762
763
|
const ref = saasConfig.minions?.[entry.key];
|
|
763
764
|
if (!ref) {
|
|
@@ -787,12 +788,12 @@ function buildAppMinionComposeEntries(input) {
|
|
|
787
788
|
writablePaths: [RUNTIME_MANDATORY_WRITABLE_PATH, ...entry.config.isolation.writablePaths],
|
|
788
789
|
pidsLimit: entry.config.isolation.pidsLimit,
|
|
789
790
|
...buildMinionComposeLiveness(entry.config.liveness),
|
|
790
|
-
networks: composeMinionNetworks(entry.key, ref,
|
|
791
|
+
networks: composeMinionNetworks(entry.key, ref, applicationStores),
|
|
791
792
|
};
|
|
792
793
|
});
|
|
793
794
|
}
|
|
794
795
|
function buildAppWorkerComposeEntries(input) {
|
|
795
|
-
const { saasRoot, frameworkRoot, saasConfig, workerEntries, environmentName,
|
|
796
|
+
const { saasRoot, frameworkRoot, saasConfig, workerEntries, environmentName, applicationStores } = input;
|
|
796
797
|
return workerEntries.map((entry) => {
|
|
797
798
|
const ref = saasConfig.workers?.[entry.key];
|
|
798
799
|
if (!ref) {
|
|
@@ -816,7 +817,7 @@ function buildAppWorkerComposeEntries(input) {
|
|
|
816
817
|
runAsGroupId: entry.config.isolation.runAsGroup,
|
|
817
818
|
writablePaths: [RUNTIME_MANDATORY_WRITABLE_PATH, ...entry.config.isolation.writablePaths],
|
|
818
819
|
pidsLimit: entry.config.isolation.pidsLimit,
|
|
819
|
-
networks: composeWorkerNetworks(entry.key,
|
|
820
|
+
networks: composeWorkerNetworks(entry.key, applicationStores),
|
|
820
821
|
httpPort: entry.config.http.port,
|
|
821
822
|
healthPath: entry.config.http.healthPath,
|
|
822
823
|
readyPath: entry.config.http.readyPath,
|
|
@@ -889,7 +890,7 @@ options = {}) {
|
|
|
889
890
|
* spec-cite: Docker docs, "Networking in Compose" / `extra_hosts` and "Explore networking features on Docker
|
|
890
891
|
* Desktop" (`host.docker.internal`); `host-gateway` is the special value `docker run --add-host` documents.
|
|
891
892
|
*/
|
|
892
|
-
export const COMPOSE_HOST_GATEWAY_HOSTNAME =
|
|
893
|
+
export const COMPOSE_HOST_GATEWAY_HOSTNAME = CONTAINER_HOST_GATEWAY_HOSTNAME;
|
|
893
894
|
export const COMPOSE_HOST_GATEWAY_EXTRA_HOST = `${COMPOSE_HOST_GATEWAY_HOSTNAME}:host-gateway`;
|
|
894
895
|
/** The runtime env files {@link writeComposeRuntimeEnvFiles} would write for these targets, for an overwrite prompt. */
|
|
895
896
|
export function composeRuntimeEnvFilePaths(environmentName, minions, workers) {
|
|
@@ -1001,7 +1002,7 @@ export async function renderDockerComposeTemplate(env, frameworkPath, isFramewor
|
|
|
1001
1002
|
saasConfig: saasConfigForRuntimes,
|
|
1002
1003
|
minionEntries,
|
|
1003
1004
|
environmentName: env.name,
|
|
1004
|
-
|
|
1005
|
+
applicationStores: resolveRuntimeApplicationStores(config),
|
|
1005
1006
|
})
|
|
1006
1007
|
: [];
|
|
1007
1008
|
// #2303: a profile whose queue cannot confine its minions (the DATABASE queue on MongoDB) refuses them here, before any
|
|
@@ -1021,7 +1022,7 @@ export async function renderDockerComposeTemplate(env, frameworkPath, isFramewor
|
|
|
1021
1022
|
saasConfig: saasConfigForRuntimes,
|
|
1022
1023
|
workerEntries,
|
|
1023
1024
|
environmentName: env.name,
|
|
1024
|
-
|
|
1025
|
+
applicationStores: resolveRuntimeApplicationStores(config),
|
|
1025
1026
|
})
|
|
1026
1027
|
: [];
|
|
1027
1028
|
// Slice 2 Phase 5b Wave 2 — local OTel collector inclusion + host port.
|
|
@@ -1237,6 +1238,9 @@ export async function renderDockerComposeTemplate(env, frameworkPath, isFramewor
|
|
|
1237
1238
|
*/
|
|
1238
1239
|
includeLocalValkey: resolveIncludeLocalValkey(env),
|
|
1239
1240
|
includeLocalRabbitMQ: resolveIncludeLocalRabbitMQ(env),
|
|
1241
|
+
// #2303 slice D — whether the environment runs a broker at all (local or managed): it gates the broker env and the
|
|
1242
|
+
// broker network segment of the platform services, which `includeLocalRabbitMQ` (the local CONTAINER) cannot.
|
|
1243
|
+
runsMessageBroker: environmentServiceProfileRunsMessageBroker(env.serviceProfile),
|
|
1240
1244
|
includeLocalMinIO: resolveIncludeLocalMinIO(env),
|
|
1241
1245
|
includeLocalClamAV: resolveIncludeLocalClamAV(env),
|
|
1242
1246
|
includeLocalImmudb: resolveIncludeLocalImmudb(env),
|