Skip to content

created build for agenticfirst prod #1316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ steps:
npm run build-prod-enterprise;
elif [ "${_BUILD_ENV}" = "prod-in" ]; then
npm run build-prod-in;
elif [ "${_BUILD_ENV}" = "prod_agenticfirst" ]; then
npm run build-prod-agenticfirst;
Comment on lines +42 to +43
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Verify environment naming and matching npm script.

Please ensure that the _BUILD_ENV value prod_agenticfirst aligns exactly with the npm script name in package.json (e.g., build-prod-agenticfirst). In addition, consider standardizing on hyphens (prod-agenticfirst) instead of underscores to stay consistent with other environment identifiers (prod-in, prod-eu, etc.) and avoid confusion.

Run this snippet to confirm the script’s presence:


🏁 Script executed:

#!/bin/bash
# Verify that build-prod-agenticfirst exists in package.json
grep -R '"build-prod-agenticfirst"' -n package.json

Length of output: 163


Standardize Environment Naming and Confirm npm Script

Confirmed that the build-prod-agenticfirst script exists in package.json (line 18) and matches the current _BUILD_ENV value. To maintain consistency with other environments (e.g., prod-in, prod-eu), rename underscores to hyphens throughout:

• In cloudbuild.yaml (lines 42–43):

  • Update _BUILD_ENV check from prod_agenticfirstprod-agenticfirst
    • In package.json (line 18):
  • Update NODE_ENV=prod_agenticfirstNODE_ENV=prod-agenticfirst

Proposed diffs:

--- a/cloudbuild.yaml
+++ b/cloudbuild.yaml
@@ -42,2 +42,2 @@ steps:
-        elif [ "${_BUILD_ENV}" = "prod_agenticfirst" ]; then 
-          npm run build-prod-agenticfirst;
+        elif [ "${_BUILD_ENV}" = "prod-agenticfirst" ]; then 
+          npm run build-prod-agenticfirst;
--- a/package.json
+++ b/package.json
@@ -18,1 +18,1 @@
-    "build-prod-agenticfirst": "export NODE_ENV=prod_agenticfirst && npm-run-all build-server gulp-build",
+    "build-prod-agenticfirst": "export NODE_ENV=prod-agenticfirst && npm-run-all build-server gulp-build",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
elif [ "${_BUILD_ENV}" = "prod_agenticfirst" ]; then
npm run build-prod-agenticfirst;
elif [ "${_BUILD_ENV}" = "prod-agenticfirst" ]; then
npm run build-prod-agenticfirst;
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 42-42: trailing spaces

(trailing-spaces)

elif [ "${_BUILD_ENV}" = "prod-eu" ]; then
npm run build-prod-eu;
elif [ "${_BUILD_ENV}" = "prod-cn" ]; then
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"build-test": "export NODE_ENV=test && npm-run-all build-server gulp-build",
"build-release": "export NODE_ENV=release && npm-run-all build-server gulp-build",
"build-prod": "export NODE_ENV=prod && npm-run-all build-server gulp-build",
"build-prod-agenticfirst": "export NODE_ENV=prod_agenticfirst && npm-run-all build-server gulp-build",
"build-test-agenticfirst": "export NODE_ENV=test_agenticfirst && npm-run-all build-server gulp-build",
"build-prod-enterprise": "export NODE_ENV=prod_enterprise && npm-run-all build-server gulp-build",
"build-prod-in": "export NODE_ENV=prod_in && npm-run-all build-server gulp-build",
"build-prod-eu": "export NODE_ENV=prod_eu && npm-run-all build-server gulp-build",
Expand Down
57 changes: 57 additions & 0 deletions server/config/config-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,35 @@ const configEnv = {
},
},
},
test_agenticfirst: {
port: '3030',
urls: {
applozicBaseUrl: 'https://chat-test.kommunicate.io',
kommunicateBaseUrl: 'https://api-test.kommunicate.io',
botPlatformApi: 'https://bots-test.kommunicate.io',
hostUrl: 'https://widget-test.agenticfirst.ai',
dashboardUrl: 'https://app-test.agenticfirst.ai',
},
pluginProperties: {
pseudoNameEnabled: true,
},
thirdPartyIntegration: {
sentry: {
nameSpace: '0494b01c401dbac92222bf85f41e26a0',
dsn:
'https://0494b01c401dbac92222bf85f41e26a0@o4508295387480064.ingest.us.sentry.io/4508295388790784',
enabled: true,
PROJECT: 'test-widget',
ORG: 'km-test',
AUTH_TOKEN:
'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',
},
aws: {
cdnUrl: 'https://cdn-test.kommunicate.io',
bucket: 'kom-test-cdn',
},
},
},
test: {
port: '3030',
urls: {
Expand Down Expand Up @@ -147,6 +176,34 @@ const configEnv = {
},
},
},
prod_agenticfirst: {
port: '3030',
urls: {
applozicBaseUrl: 'https://chat.kommunicate.io',
kommunicateBaseUrl: 'https://api.kommunicate.io',
botPlatformApi: 'https://bots.kommunicate.io',
hostUrl: 'https://widget.agenticfirst.ai',
dashboardUrl: 'https://app.agenticfirst.ai',
},
pluginProperties: {
pseudoNameEnabled: true,
},
thirdPartyIntegration: {
sentry: {
nameSpace: '9f71614ef8184d0cab00074555dad9a7',
dsn: 'https://[email protected]/1321911',
enabled: true,
AUTH_TOKEN:
'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',
PROJECT: 'chat-widget',
ORG: 'applozic',
},
aws: {
cdnUrl: 'https://cdn.kommunicate.io',
bucket: 'kom-prod-cdn',
},
},
},
prod_cn: {
port: '3030',
urls: {
Expand Down