@ascendkit/cli 0.3.9 → 0.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -112,9 +112,14 @@ Commands:
112
112
  journey node update <journey-id> <node-name> [--action <json>] [--email-id <email>] [--terminal <true|false>]
113
113
  journey node remove <journey-id> <node-name>
114
114
  journey transition list <journey-id> [--from <node-name>] [--to <node-name>]
115
- journey transition add <journey-id> --from <node-name> --to <node-name> --trigger <json> [--priority <n>] [--name <transition-name>] [--quiet]
116
- journey transition update <journey-id> <transition-name> [--trigger <json>] [--priority <n>]
117
- journey transition remove <journey-id> <transition-name>`,
115
+ journey transition add <journey-id> --from <node-name> --to <node-name> --on <event> | --after <delay> [--priority <n>] [--name <transition-name>] [--quiet]
116
+ journey transition update <journey-id> <transition-name> [--on <event>] [--after <delay>] [--priority <n>]
117
+ journey transition remove <journey-id> <transition-name>
118
+
119
+ Trigger shortcuts:
120
+ --on <event> Event trigger (e.g. --on user.login, --on app.completed_onboarding)
121
+ --after <delay> Timer trigger (e.g. --after 2d, --after 12h, --after 30m)
122
+ --trigger <json> Raw JSON: {"type":"event","event":"user.login"} or {"type":"timer","delay":"3d"}`,
118
123
  "email-identity": `Usage: ascendkit email-identity <command>
119
124
 
120
125
  Commands:
@@ -13,6 +13,7 @@ const ASCENDKIT_ENV_KEYS = [
13
13
  "ASCENDKIT_API_URL",
14
14
  "NEXT_PUBLIC_ASCENDKIT_ENV_KEY",
15
15
  "ASCENDKIT_ENV_KEY",
16
+ "ASCENDKIT_APP_URL",
16
17
  "ASCENDKIT_SECRET_KEY",
17
18
  "ASCENDKIT_WEBHOOK_SECRET",
18
19
  ];
@@ -135,6 +136,11 @@ function buildAscendKitEnvBlock(values) {
135
136
  `NEXT_PUBLIC_ASCENDKIT_ENV_KEY=${values.NEXT_PUBLIC_ASCENDKIT_ENV_KEY}`,
136
137
  `ASCENDKIT_ENV_KEY=${values.ASCENDKIT_ENV_KEY}`,
137
138
  "",
139
+ "# Public URL where your app is hosted (used for auth callbacks and redirects)",
140
+ "# Example: https://app.yourdomain.com",
141
+ "# Leave blank in local dev if the SDK should infer from the incoming request.",
142
+ `ASCENDKIT_APP_URL=${values.ASCENDKIT_APP_URL}`,
143
+ "",
138
144
  "# AscendKit secret key (server-only; never expose to client/browser)",
139
145
  `ASCENDKIT_SECRET_KEY=${values.ASCENDKIT_SECRET_KEY}`,
140
146
  "",
@@ -183,6 +189,7 @@ async function updateEnvExampleFile(filePath) {
183
189
  ASCENDKIT_API_URL: "",
184
190
  NEXT_PUBLIC_ASCENDKIT_ENV_KEY: "",
185
191
  ASCENDKIT_ENV_KEY: "",
192
+ ASCENDKIT_APP_URL: "",
186
193
  ASCENDKIT_SECRET_KEY: "",
187
194
  ASCENDKIT_WEBHOOK_SECRET: "",
188
195
  });
@@ -208,6 +215,7 @@ async function updateRuntimeEnvFile(filePath, apiUrl, publicKey, secretKey, opti
208
215
  ASCENDKIT_API_URL: resolvedApiUrl,
209
216
  NEXT_PUBLIC_ASCENDKIT_ENV_KEY: resolvedPublicKey,
210
217
  ASCENDKIT_ENV_KEY: resolvedPublicKey,
218
+ ASCENDKIT_APP_URL: readEnvValue(original, "ASCENDKIT_APP_URL") ?? "",
211
219
  ASCENDKIT_SECRET_KEY: resolvedSecretKey,
212
220
  ASCENDKIT_WEBHOOK_SECRET: resolvedWebhookSecret,
213
221
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ascendkit/cli",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "description": "AscendKit CLI and MCP server",
5
5
  "author": "ascendkit.dev",
6
6
  "license": "MIT",