@semiont/cli 0.2.28-build.38 → 0.2.28-build.40

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/cli.mjs CHANGED
@@ -155,7 +155,7 @@ var init_core = __esm({
155
155
  NEVER = Object.freeze({
156
156
  status: "aborted"
157
157
  });
158
- $brand = Symbol("zod_brand");
158
+ $brand = /* @__PURE__ */ Symbol("zod_brand");
159
159
  $ZodAsyncError = class extends Error {
160
160
  constructor() {
161
161
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
@@ -731,7 +731,7 @@ function uint8ArrayToHex(bytes) {
731
731
  var EVALUATING, captureStackTrace, allowsEval, getParsedType, propertyKeyTypes, primitiveTypes, NUMBER_FORMAT_RANGES, BIGINT_FORMAT_RANGES, Class;
732
732
  var init_util = __esm({
733
733
  "node_modules/zod/v4/core/util.js"() {
734
- EVALUATING = Symbol("evaluating");
734
+ EVALUATING = /* @__PURE__ */ Symbol("evaluating");
735
735
  captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
736
736
  };
737
737
  allowsEval = cached(() => {
@@ -9672,8 +9672,8 @@ function registry() {
9672
9672
  var $output, $input, $ZodRegistry, globalRegistry;
9673
9673
  var init_registries = __esm({
9674
9674
  "node_modules/zod/v4/core/registries.js"() {
9675
- $output = Symbol("ZodOutput");
9676
- $input = Symbol("ZodInput");
9675
+ $output = /* @__PURE__ */ Symbol("ZodOutput");
9676
+ $input = /* @__PURE__ */ Symbol("ZodInput");
9677
9677
  $ZodRegistry = class {
9678
9678
  constructor() {
9679
9679
  this._map = /* @__PURE__ */ new WeakMap();
@@ -17541,7 +17541,7 @@ var init_backend_provision = __esm({
17541
17541
  if (!dbPort) {
17542
17542
  throw new Error("Database port not configured");
17543
17543
  }
17544
- const dbHost = "localhost";
17544
+ const dbHost = dbConfig.host || "localhost";
17545
17545
  const databaseUrl = `postgresql://${dbUser}:${dbPassword}@${dbHost}:${dbPort}/${dbName}`;
17546
17546
  if (!service.quiet) {
17547
17547
  printInfo(`Using database configuration from ${service.environment}.json:`);
@@ -17587,6 +17587,8 @@ var init_backend_provision = __esm({
17587
17587
  const envUpdates = {
17588
17588
  "NODE_ENV": nodeEnv,
17589
17589
  "PORT": port.toString(),
17590
+ "HOST": "0.0.0.0",
17591
+ // Bind to all interfaces for Codespaces compatibility
17590
17592
  "DATABASE_URL": databaseUrl,
17591
17593
  "LOG_DIR": logsDir,
17592
17594
  "TMP_DIR": tmpDir,
@@ -17663,6 +17665,55 @@ var init_backend_provision = __esm({
17663
17665
  printWarning(`Failed to generate Prisma client: ${error46}`);
17664
17666
  }
17665
17667
  }
17668
+ if (!service.quiet) {
17669
+ printInfo("Building workspace dependencies...");
17670
+ }
17671
+ try {
17672
+ const monorepoRoot = path16.dirname(path16.dirname(backendSourceDir));
17673
+ const rootPackageJsonPath = path16.join(monorepoRoot, "package.json");
17674
+ if (fs19.existsSync(rootPackageJsonPath)) {
17675
+ const rootPackageJson = JSON.parse(fs19.readFileSync(rootPackageJsonPath, "utf-8"));
17676
+ if (rootPackageJson.workspaces) {
17677
+ execSync9("npm run build --workspace=@semiont/core --if-present", {
17678
+ cwd: monorepoRoot,
17679
+ stdio: service.verbose ? "inherit" : "pipe"
17680
+ });
17681
+ execSync9("npm run build --workspace=@semiont/event-sourcing --if-present", {
17682
+ cwd: monorepoRoot,
17683
+ stdio: service.verbose ? "inherit" : "pipe"
17684
+ });
17685
+ execSync9("npm run build --workspace=@semiont/api-client --if-present", {
17686
+ cwd: monorepoRoot,
17687
+ stdio: service.verbose ? "inherit" : "pipe"
17688
+ });
17689
+ if (!service.quiet) {
17690
+ printSuccess("Workspace dependencies built successfully");
17691
+ }
17692
+ }
17693
+ }
17694
+ } catch (error46) {
17695
+ printWarning(`Failed to build workspace dependencies: ${error46}`);
17696
+ printInfo("You may need to build manually: npm run build --workspace=@semiont/core");
17697
+ }
17698
+ if (!service.quiet) {
17699
+ printInfo("Building backend application...");
17700
+ }
17701
+ try {
17702
+ execSync9("npm run build", {
17703
+ cwd: backendSourceDir,
17704
+ stdio: service.verbose ? "inherit" : "pipe"
17705
+ });
17706
+ if (!service.quiet) {
17707
+ printSuccess("Backend application built successfully");
17708
+ }
17709
+ } catch (error46) {
17710
+ printError(`Failed to build backend application: ${error46}`);
17711
+ return {
17712
+ success: false,
17713
+ error: `Failed to build backend application: ${error46}`,
17714
+ metadata: { serviceType: "backend", backendSourceDir }
17715
+ };
17716
+ }
17666
17717
  if (options.migrate !== false && fs19.existsSync(prismaSchemaPath)) {
17667
17718
  if (!service.quiet) {
17668
17719
  printInfo("Running database migrations...");
@@ -17828,7 +17879,7 @@ var init_frontend_provision = __esm({
17828
17879
  metadata: { serviceType: "frontend" }
17829
17880
  };
17830
17881
  }
17831
- const backendUrl = `http://localhost:${backendService.port}`;
17882
+ const backendUrl = `http://127.0.0.1:${backendService.port}`;
17832
17883
  if (!siteName) {
17833
17884
  return {
17834
17885
  success: false,
@@ -17950,6 +18001,28 @@ NEXT_PUBLIC_OAUTH_ALLOWED_DOMAINS=${oauthAllowedDomains.join(",")}
17950
18001
  metadata: { serviceType: "frontend", frontendSourceDir }
17951
18002
  };
17952
18003
  }
18004
+ if (!service.quiet) {
18005
+ printInfo("Building workspace dependencies...");
18006
+ }
18007
+ try {
18008
+ const monorepoRoot = path17.dirname(path17.dirname(frontendSourceDir));
18009
+ const rootPackageJsonPath = path17.join(monorepoRoot, "package.json");
18010
+ if (fs20.existsSync(rootPackageJsonPath)) {
18011
+ const rootPackageJson = JSON.parse(fs20.readFileSync(rootPackageJsonPath, "utf-8"));
18012
+ if (rootPackageJson.workspaces) {
18013
+ execSync10("npm run build --workspace=@semiont/react-ui --if-present", {
18014
+ cwd: monorepoRoot,
18015
+ stdio: service.verbose ? "inherit" : "pipe"
18016
+ });
18017
+ if (!service.quiet) {
18018
+ printSuccess("Workspace dependencies built successfully");
18019
+ }
18020
+ }
18021
+ }
18022
+ } catch (error46) {
18023
+ printWarning(`Failed to build workspace dependencies: ${error46}`);
18024
+ printInfo("You may need to build manually: npm run build --workspace=@semiont/react-ui");
18025
+ }
17953
18026
  if (service.environment === "prod") {
17954
18027
  if (!service.quiet) {
17955
18028
  printInfo("Building frontend for production...");
@@ -27875,7 +27948,7 @@ var brand_privateNullableHeaders, buildHeaders;
27875
27948
  var init_headers = __esm({
27876
27949
  "../../node_modules/@anthropic-ai/sdk/internal/headers.mjs"() {
27877
27950
  init_values();
27878
- brand_privateNullableHeaders = Symbol.for("brand.privateNullableHeaders");
27951
+ brand_privateNullableHeaders = /* @__PURE__ */ Symbol.for("brand.privateNullableHeaders");
27879
27952
  buildHeaders = (newHeaders) => {
27880
27953
  const targetHeaders = new Headers();
27881
27954
  const nullHeaders = /* @__PURE__ */ new Set();
@@ -39860,7 +39933,7 @@ import express from "express";
39860
39933
  import { createServer as createServer3 } from "http";
39861
39934
  import { Server as SocketIOServer } from "socket.io";
39862
39935
  import { fileURLToPath as fileURLToPath2 } from "url";
39863
- import { dirname as dirname6, join as join29 } from "path";
39936
+ import { dirname as dirname7, join as join29 } from "path";
39864
39937
  import fs32 from "fs";
39865
39938
  var __filename, __dirname, embeddedJS, embeddedCSS, WebDashboardServer;
39866
39939
  var init_web_dashboard_server = __esm({
@@ -39869,7 +39942,7 @@ var init_web_dashboard_server = __esm({
39869
39942
  init_dashboard_data();
39870
39943
  init_embedded_assets();
39871
39944
  __filename = fileURLToPath2(import.meta.url);
39872
- __dirname = dirname6(__filename);
39945
+ __dirname = dirname7(__filename);
39873
39946
  embeddedJS = dashboardAssetsEmbedded ? embeddedDashboardJS : void 0;
39874
39947
  embeddedCSS = dashboardAssetsEmbedded ? embeddedDashboardCSS : void 0;
39875
39948
  WebDashboardServer = class {
@@ -40174,7 +40247,7 @@ Press Ctrl+C to stop
40174
40247
  // ../../node_modules/arg/index.js
40175
40248
  var require_arg = __commonJS({
40176
40249
  "../../node_modules/arg/index.js"(exports, module) {
40177
- var flagSymbol = Symbol("arg flag");
40250
+ var flagSymbol = /* @__PURE__ */ Symbol("arg flag");
40178
40251
  var ArgError = class _ArgError extends Error {
40179
40252
  constructor(msg, code) {
40180
40253
  super(msg);
@@ -10,6 +10,7 @@
10
10
  "env": {
11
11
  "NODE_ENV": "development"
12
12
  },
13
+ "logLevel": "debug",
13
14
  "services": {
14
15
  "backend": {
15
16
  "platform": {
@@ -13,6 +13,7 @@
13
13
  "env": {
14
14
  "NODE_ENV": "development"
15
15
  },
16
+ "logLevel": "debug",
16
17
  "services": {
17
18
  "backend": {
18
19
  "platform": {
@@ -9,6 +9,7 @@
9
9
  "env": {
10
10
  "NODE_ENV": "production"
11
11
  },
12
+ "logLevel": "info",
12
13
  "aws": {
13
14
  "region": "us-east-1",
14
15
  "accountId": "YOUR_AWS_ACCOUNT_ID",
@@ -9,6 +9,7 @@
9
9
  "env": {
10
10
  "NODE_ENV": "production"
11
11
  },
12
+ "logLevel": "http",
12
13
  "aws": {
13
14
  "region": "us-east-1",
14
15
  "accountId": "YOUR_AWS_ACCOUNT_ID",
@@ -10,6 +10,7 @@
10
10
  "env": {
11
11
  "NODE_ENV": "test"
12
12
  },
13
+ "logLevel": "error",
13
14
  "services": {
14
15
  "backend": {
15
16
  "platform": {
@@ -51,6 +52,12 @@
51
52
  "POSTGRES_PASSWORD": "testpass"
52
53
  }
53
54
  },
55
+ "graph": {
56
+ "platform": {
57
+ "type": "posix"
58
+ },
59
+ "type": "memory"
60
+ },
54
61
  "mcp": {
55
62
  "platform": {
56
63
  "type": "posix"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semiont/cli",
3
- "version": "0.2.28-build.38",
3
+ "version": "0.2.28-build.40",
4
4
  "description": "Semiont CLI - Unified environment management tool",
5
5
  "_comment": "AWS SDK dependencies (@aws-sdk/*) are only used by platforms/aws",
6
6
  "type": "module",
@@ -65,8 +65,8 @@
65
65
  "@aws-sdk/client-sts": "^3.859.0",
66
66
  "@aws-sdk/client-wafv2": "^3.859.0",
67
67
  "@prisma/client": "^6.13.0",
68
- "@semiont/api-client": "0.2.28-build.38",
69
- "@semiont/core": "0.2.28-build.38",
68
+ "@semiont/api-client": "0.2.28-build.40",
69
+ "@semiont/core": "0.2.28-build.40",
70
70
  "@testcontainers/postgresql": "^11.5.1",
71
71
  "arg": "^5.0.2",
72
72
  "bcrypt": "^5.1.1",