@alexkroman1/aai-cli 16.1.0 → 17.0.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/README.md +2 -1
- package/dist/{_build-target-ClEEuUuW.mjs → _build-target-C08aM-Es.mjs} +504 -43
- package/dist/_build-target.d.ts +98 -19
- package/dist/_deno-target.d.ts +15 -14
- package/dist/_dev-env.d.ts +19 -13
- package/dist/{_dev-server-D1wKiA0_.mjs → _dev-server-CLU9xjH5.mjs} +25 -17
- package/dist/_dev-server.d.ts +4 -3
- package/dist/_init.d.ts +39 -0
- package/dist/_modal-target.d.ts +11 -6
- package/dist/_preflight-CnW9QiE7.mjs +116 -0
- package/dist/_preflight.d.ts +110 -5
- package/dist/_target-bundle.d.ts +112 -0
- package/dist/_target-entry.d.ts +81 -0
- package/dist/{_templates-CuP74F8D.mjs → _templates-IMeKMVIj.mjs} +1 -1
- package/dist/{_vitest-runner-BiAMIir1.mjs → _vitest-runner-CZNGj0ZC.mjs} +21 -16
- package/dist/_vitest-runner.d.ts +35 -23
- package/dist/{build-O6BT51x_.mjs → build-DrQTSc2R.mjs} +128 -293
- package/dist/build.d.ts +34 -4
- package/dist/cli.mjs +20 -16
- package/dist/{deploy-lldQyJVj.mjs → deploy-B68-x7xM.mjs} +12 -4
- package/dist/deploy.d.ts +9 -0
- package/dist/{dev-Du8pCWFq.mjs → dev-ChsrNHpK.mjs} +1 -1
- package/dist/dev.d.ts +1 -1
- package/dist/{eval-Ducmkt1n.mjs → eval-DB07kTxO.mjs} +1 -1
- package/dist/init-W-4k-lCF.mjs +559 -0
- package/dist/init.d.ts +43 -3
- package/dist/scaffold/CLAUDE.md +51 -64
- package/dist/scaffold/package.json +6 -6
- package/dist/scaffold/vite.config.ts +29 -1
- package/dist/{studio-It7SRfUN.mjs → studio-DEAJGBXa.mjs} +19 -9
- package/dist/templates/applicant-screening-agent/agent.eval.test.ts +20 -6
- package/dist/templates/applicant-screening-agent/agent.ts +28 -0
- package/dist/templates/applicant-screening-agent/shared.ts +11 -11
- package/dist/templates/call-audit-workflow/agent.ts +2 -0
- package/dist/templates/code-interpreter-agent/agent.eval.test.ts +3 -2
- package/dist/templates/code-interpreter-agent/agent.ts +1 -0
- package/dist/templates/coding-agent/agent.eval.test.ts +136 -0
- package/dist/templates/coding-agent/agent.test.ts +109 -0
- package/dist/templates/coding-agent/agent.ts +45 -0
- package/dist/templates/coding-agent/chat.ts +63 -0
- package/dist/templates/coding-agent/shared.ts +46 -0
- package/dist/templates/coding-agent/system-prompt.md +32 -0
- package/dist/templates/coding-agent/tools/bash.ts +6 -0
- package/dist/templates/coding-agent/tools/delete_file.ts +6 -0
- package/dist/templates/coding-agent/tools/edit_file.ts +6 -0
- package/dist/templates/coding-agent/tools/glob.ts +6 -0
- package/dist/templates/coding-agent/tools/grep.ts +6 -0
- package/dist/templates/coding-agent/tools/list_files.ts +6 -0
- package/dist/templates/coding-agent/tools/read_file.ts +6 -0
- package/dist/templates/coding-agent/tools/todo_write.ts +6 -0
- package/dist/templates/coding-agent/tools/write_file.ts +6 -0
- package/dist/templates/custom-pipeline-agent/agent.ts +1 -0
- package/dist/templates/document-redline-workflow/agent.ts +2 -0
- package/dist/templates/emergency-dispatch-agent/agent.test.ts +103 -0
- package/dist/templates/emergency-dispatch-agent/agent.ts +15 -0
- package/dist/templates/emergency-dispatch-agent/guardrails.ts +105 -0
- package/dist/templates/emergency-dispatch-agent/system-prompt.md +1 -0
- package/dist/templates/entertainment-picks-agent/agent.eval.test.ts +8 -1
- package/dist/templates/entertainment-picks-agent/agent.ts +1 -0
- package/dist/templates/entertainment-picks-agent/system-prompt.md +6 -0
- package/dist/templates/entertainment-picks-agent/tools/revisit.ts +7 -0
- package/dist/templates/executive-inbox-agent/agent.eval.test.ts +84 -23
- package/dist/templates/executive-inbox-agent/agent.ts +1 -0
- package/dist/templates/executive-inbox-agent/meeting.ts +1 -1
- package/dist/templates/executive-inbox-agent/prompts.ts +3 -1
- package/dist/templates/executive-inbox-agent/system-prompt.md +3 -3
- package/dist/templates/executive-inbox-agent/tools/meeting_assistant.ts +3 -3
- package/dist/templates/executive-inbox-agent/tools/open_email.ts +8 -16
- package/dist/templates/hotel-reception-agent/agent.eval.test.ts +85 -21
- package/dist/templates/hotel-reception-agent/agent.test.ts +2 -1
- package/dist/templates/hotel-reception-agent/agent.ts +6 -3
- package/dist/templates/hotel-reception-agent/client.tsx +14 -2
- package/dist/templates/hotel-reception-agent/concierge.ts +2 -1
- package/dist/templates/hotel-reception-agent/desk-seams.test.ts +2 -1
- package/dist/templates/hotel-reception-agent/disputes.ts +9 -11
- package/dist/templates/hotel-reception-agent/events.ts +2 -1
- package/dist/templates/hotel-reception-agent/session.ts +56 -0
- package/dist/templates/hotel-reception-agent/shared.ts +20 -21
- package/dist/templates/hotel-reception-agent/system-prompt.md +1 -1
- package/dist/templates/hotel-reception-agent/tools/abandon_booking.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/add_to_waitlist.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/book_airport_car.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/cancel_restaurant_reservation.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/cancel_room_booking.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/check_restaurant_availability.ts +1 -1
- package/dist/templates/hotel-reception-agent/tools/check_room_availability.ts +1 -1
- package/dist/templates/hotel-reception-agent/tools/choose_room.ts +1 -1
- package/dist/templates/hotel-reception-agent/tools/confirm_booking.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/dispatch_emergency.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/dispute_charge.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/flag_late_arrival.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/lookup_booking.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/lookup_guest_history.ts +1 -1
- package/dist/templates/hotel-reception-agent/tools/lookup_invoice.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/lookup_restaurant_reservation.ts +1 -1
- package/dist/templates/hotel-reception-agent/tools/modify_restaurant_reservation.ts +1 -1
- package/dist/templates/hotel-reception-agent/tools/record_card.ts +1 -1
- package/dist/templates/hotel-reception-agent/tools/record_followup.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/record_group_inquiry.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/record_guest_details.ts +1 -1
- package/dist/templates/hotel-reception-agent/tools/reinstate_booking.ts +1 -1
- package/dist/templates/hotel-reception-agent/tools/request_flight_reconfirmation.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/resend_confirmation.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/reserve_table.ts +1 -1
- package/dist/templates/hotel-reception-agent/tools/resolve_room_conflict.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/schedule_wakeup_call.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/set_do_not_disturb.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/set_extras.ts +1 -1
- package/dist/templates/hotel-reception-agent/tools/set_stay.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/start_booking_modification.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/start_room_booking.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/take_guest_message.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/transfer_call.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/update_card.ts +2 -1
- package/dist/templates/hotel-reception-agent/tools/verify_booking.ts +2 -1
- package/dist/templates/link-digest-workflow/agent.eval.test.ts +16 -1
- package/dist/templates/link-digest-workflow/agent.ts +5 -0
- package/dist/templates/medication-safety-agent/agent.test.ts +54 -0
- package/dist/templates/medication-safety-agent/agent.ts +48 -1
- package/dist/templates/meeting-recap-agent/agent.test.ts +2 -2
- package/dist/templates/meeting-recap-agent/agent.ts +4 -0
- package/dist/templates/pizza-ordering-agent/agent.ts +3 -0
- package/dist/templates/podcast-digest-workflow/agent.ts +4 -0
- package/dist/templates/quickstart-agent/agent.eval.test.ts +39 -3
- package/dist/templates/quickstart-agent/agent.test.ts +22 -0
- package/dist/templates/quickstart-agent/agent.ts +18 -2
- package/dist/templates/quickstart-agent/system-prompt.md +8 -0
- package/dist/templates/quickstart-agent/tools/get_weather.ts +59 -0
- package/dist/templates/research-handoff-agent/agent.ts +4 -0
- package/dist/templates/research-planner-agent/agent.eval.test.ts +24 -2
- package/dist/templates/research-planner-agent/agent.ts +3 -0
- package/dist/templates/research-planner-agent/system-prompt.md +1 -1
- package/dist/templates/retail-orders-agent/agent.ts +32 -3
- package/dist/templates/retail-orders-agent/keyterms.ts +154 -0
- package/dist/templates/retail-orders-agent/resolve.ts +18 -3
- package/dist/templates/roadside-assistance-agent/agent.eval.test.ts +37 -5
- package/dist/templates/roadside-assistance-agent/agent.test.ts +38 -6
- package/dist/templates/roadside-assistance-agent/agent.ts +4 -0
- package/dist/templates/roadside-assistance-agent/shared.ts +12 -0
- package/dist/templates/roadside-assistance-agent/tools/acknowledge_disclosure.ts +14 -0
- package/dist/templates/roadside-assistance-agent/tools/lookup_coverage.ts +11 -0
- package/dist/templates/roadside-assistance-agent/tools/service_disclosure.ts +17 -11
- package/dist/templates/roadside-assistance-agent/yard.test.ts +4 -0
- package/dist/templates/spoken-summary-workflow/agent.ts +4 -0
- package/dist/templates/tabletop-rpg-agent/agent.eval.test.ts +6 -0
- package/dist/templates/tabletop-rpg-agent/agent.test.ts +125 -1
- package/dist/templates/tabletop-rpg-agent/agent.ts +30 -1
- package/dist/templates/tabletop-rpg-agent/shared.ts +81 -0
- package/dist/templates/tabletop-rpg-agent/system-prompt.md +1 -1
- package/dist/templates/tabletop-rpg-agent/tools/check_state.ts +16 -7
- package/dist/templates/technical-support-agent/agent.test.ts +3 -3
- package/dist/templates/technical-support-agent/agent.ts +5 -1
- package/dist/templates/technical-support-agent/knowledge.ts +165 -0
- package/dist/templates/technical-support-agent/nodes.ts +3 -2
- package/dist/templates/technical-support-agent/procedure.ts +4 -3
- package/dist/templates/technical-support-agent/shared.ts +10 -146
- package/dist/templates/technical-support-agent/tools/list_topics.ts +2 -1
- package/dist/templates/text-adventure-agent/agent.eval.test.ts +39 -6
- package/dist/templates/text-adventure-agent/agent.test.ts +79 -1
- package/dist/templates/text-adventure-agent/agent.ts +30 -1
- package/dist/templates/text-adventure-agent/shared.ts +37 -0
- package/dist/templates/text-adventure-agent/system-prompt.md +9 -2
- package/dist/templates/topic-briefing-agent/agent.eval.test.ts +18 -4
- package/dist/templates/topic-briefing-agent/agent.test.ts +23 -11
- package/dist/templates/topic-briefing-agent/agent.ts +4 -1
- package/dist/templates/topic-briefing-agent/shared.ts +10 -10
- package/dist/templates/topic-briefing-agent/system-prompt.md +13 -8
- package/dist/templates/topic-briefing-agent/tools/send_briefing.ts +43 -5
- package/dist/templates/transcription-workflow/agent.ts +3 -0
- package/dist/templates/travel-concierge-agent/agent.ts +4 -0
- package/dist/templates/web-research-agent/agent.eval.test.ts +31 -5
- package/dist/templates/web-research-agent/agent.test.ts +16 -0
- package/dist/templates/web-research-agent/agent.ts +30 -0
- package/dist/templates/web-research-agent/system-prompt.md +8 -2
- package/dist/templates/word-game-agent/agent.eval.test.ts +79 -18
- package/dist/templates/word-game-agent/agent.ts +20 -0
- package/dist/test-CjKPQ9_B.mjs +102 -0
- package/dist/test.d.ts +37 -12
- package/package.json +5 -5
- package/dist/_init-Bp1CjRrU.mjs +0 -199
- package/dist/_preflight-CcAR577V.mjs +0 -46
- package/dist/init-CY4NAXAA.mjs +0 -183
- package/dist/test-PHHv0Vj6.mjs +0 -83
package/dist/_build-target.d.ts
CHANGED
|
@@ -39,13 +39,43 @@
|
|
|
39
39
|
* reads this one — so a fourth target is a fourth file plus two lines here.
|
|
40
40
|
*/
|
|
41
41
|
/**
|
|
42
|
-
* What {@link
|
|
42
|
+
* What a {@link DeployStep} puts where a variable NAME goes.
|
|
43
43
|
*
|
|
44
44
|
* Angle brackets rather than a `$NAME` or `%s`: the string is printed for a
|
|
45
45
|
* human to adapt as often as it is substituted into, and both of the other two
|
|
46
46
|
* are shell-significant enough to be mistaken for something to type literally.
|
|
47
47
|
*/
|
|
48
48
|
export declare const SECRET_NAME_PLACEHOLDER = "<NAME>";
|
|
49
|
+
/**
|
|
50
|
+
* The placeholders {@link resolveDeploySteps} FILLS, and the ones it leaves.
|
|
51
|
+
*
|
|
52
|
+
* The line between them is who KNOWS the value at build time, and it is worth
|
|
53
|
+
* stating because it is the same line `.env.example` draws: this build knows
|
|
54
|
+
* every declared variable name and the agent's own name, so leaving those as
|
|
55
|
+
* placeholders would be withholding something it could have printed. It knows
|
|
56
|
+
* nothing about the reader's account — an org, an app that may not exist yet —
|
|
57
|
+
* or about a secret's VALUE, which is the whole point of declarations shipping
|
|
58
|
+
* while values do not.
|
|
59
|
+
*
|
|
60
|
+
* So {@link SECRET_NAME_PLACEHOLDER} and {@link MODAL_SECRET_PLACEHOLDER} are
|
|
61
|
+
* substituted, and these three survive into the printed command as prompts for
|
|
62
|
+
* the reader to fill.
|
|
63
|
+
*/
|
|
64
|
+
export declare const ORG_PLACEHOLDER = "<ORG>";
|
|
65
|
+
/** @see ORG_PLACEHOLDER */
|
|
66
|
+
export declare const APP_PLACEHOLDER = "<APP>";
|
|
67
|
+
/** @see ORG_PLACEHOLDER */
|
|
68
|
+
export declare const SECRET_VALUE_PLACEHOLDER = "<value>";
|
|
69
|
+
/**
|
|
70
|
+
* Where Modal's derived secret name goes — see {@link modalSecretName}.
|
|
71
|
+
*
|
|
72
|
+
* Substituted rather than left for the reader, because `app.py` DERIVES that
|
|
73
|
+
* name from the agent's own and a reader who invents one gets a deploy that
|
|
74
|
+
* fails on `Secret.from_name`. The emitted file's docstring already prints the
|
|
75
|
+
* resolved name; this is the same string reaching the same reader one surface
|
|
76
|
+
* earlier.
|
|
77
|
+
*/
|
|
78
|
+
export declare const MODAL_SECRET_PLACEHOLDER = "<secret>";
|
|
49
79
|
/** The targets `aai build --target` accepts. */
|
|
50
80
|
export declare const BUILD_TARGETS: readonly ["node", "vercel", "deno", "modal"];
|
|
51
81
|
export type BuildTarget = (typeof BUILD_TARGETS)[number];
|
|
@@ -162,28 +192,58 @@ export interface TargetOutput {
|
|
|
162
192
|
* different program than the one they just built.
|
|
163
193
|
*/
|
|
164
194
|
readonly preview?: string;
|
|
165
|
-
/** Ship what was just emitted. */
|
|
166
|
-
readonly deploy?: string;
|
|
167
195
|
/**
|
|
168
|
-
*
|
|
169
|
-
* standing in for the variable name.
|
|
196
|
+
* Ship what was just emitted — the ORDERED sequence, not one command.
|
|
170
197
|
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
* `
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
198
|
+
* It was one string, and the string was WRONG for both hosts that have a
|
|
199
|
+
* local flow. Measured end to end: `cd .aai/deno && deno deploy` fails
|
|
200
|
+
* `APP_NOT_FOUND` because the app has to be created first; the create then
|
|
201
|
+
* has to override Deploy's auto-detected build config, which for this
|
|
202
|
+
* directory resolves to no entrypoint and fails at `building`; and the
|
|
203
|
+
* deployment then fails at `warming` until the declared secret is set,
|
|
204
|
+
* because this server crashes in `createRuntime` without a provider
|
|
205
|
+
* credential rather than starting and failing later. Three distinct
|
|
206
|
+
* failures, none of which a one-liner prepares a reader for. `modal deploy`
|
|
207
|
+
* has the milder version of the same shape — `app.py` resolves
|
|
208
|
+
* `Secret.from_name` at deploy time, so it dies unless the secret exists.
|
|
178
209
|
*
|
|
179
|
-
* Absent
|
|
180
|
-
* {@link deploy} follow. `node` has no host to name — the deployment is a
|
|
181
|
-
* process someone runs, reading `.env` or whatever `-e` flags a container got.
|
|
182
|
-
* `deno` and `modal` are absent because their commands are unverified here,
|
|
183
|
-
* not because they have none; the warning still names the variables and says
|
|
184
|
-
* they must be set in the host's environment, which is the load-bearing half.
|
|
210
|
+
* Absent for a target with no honest answer — `node`, which deploys nowhere.
|
|
185
211
|
*/
|
|
186
|
-
readonly
|
|
212
|
+
readonly deploy?: readonly DeployStep[];
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* WHEN a step runs, which is the whole reason the sequence is data.
|
|
216
|
+
*
|
|
217
|
+
* A reader needs three different things from these commands and a flat list
|
|
218
|
+
* answers none of them: which command they must re-run on every deploy, which
|
|
219
|
+
* one they run once per app and never again, and which one repeats per secret.
|
|
220
|
+
* Rendering differs per case too — see `build.ts`, where the post-build log
|
|
221
|
+
* omits `build` (the reader just ran one) while the `--json` result keeps it,
|
|
222
|
+
* because a CI job scripting a fresh checkout genuinely has to run it.
|
|
223
|
+
*
|
|
224
|
+
* - `build` — `aai build --target <t>`. **Mandatory before every deploy**, and
|
|
225
|
+
* the one step whose omission is silent: `deno deploy` and `modal deploy`
|
|
226
|
+
* both upload the emitted directory AS IT STANDS, so a forgotten rebuild
|
|
227
|
+
* ships the previous bundle and reports success. Deno prints "No files were
|
|
228
|
+
* changed, so there is nothing to upload", which reads like a no-op rather
|
|
229
|
+
* than like a stale deployment.
|
|
230
|
+
* - `once` — creating or linking the app. A LABEL and not a branch: whether
|
|
231
|
+
* the app exists is account state on someone else's platform, so this is
|
|
232
|
+
* printed with its caveat rather than conditionally hidden. Guessing would
|
|
233
|
+
* either hide the step a first-timer needs or nag forever.
|
|
234
|
+
* - `perSecret` — expanded per variable `missingDeployEnv` reported, with the
|
|
235
|
+
* real name substituted. This is what replaced {@link TargetOutput}'s old
|
|
236
|
+
* `secret` field, which was absent for `deno` and `modal` on the grounds
|
|
237
|
+
* that their commands were "unverified here" — so the warning for the two
|
|
238
|
+
* hosts that most need one said only "Set it in the deno environment".
|
|
239
|
+
* - `each` — the upload itself.
|
|
240
|
+
*/
|
|
241
|
+
export type DeployStepWhen = "build" | "once" | "perSecret" | "each";
|
|
242
|
+
/** One command in a target's {@link TargetOutput.deploy} sequence. */
|
|
243
|
+
export interface DeployStep {
|
|
244
|
+
readonly when: DeployStepWhen;
|
|
245
|
+
/** The command, carrying any of the placeholders above. */
|
|
246
|
+
readonly run: string;
|
|
187
247
|
}
|
|
188
248
|
/**
|
|
189
249
|
* Every target's output and commands.
|
|
@@ -195,3 +255,22 @@ export interface TargetOutput {
|
|
|
195
255
|
* with the same `cd`.
|
|
196
256
|
*/
|
|
197
257
|
export declare const TARGET_OUTPUTS: Readonly<Record<BuildTarget, TargetOutput>>;
|
|
258
|
+
/**
|
|
259
|
+
* The sequence a reader should actually run: placeholders this build can fill
|
|
260
|
+
* FILLED, and the `perSecret` step expanded once per variable that needs one.
|
|
261
|
+
*
|
|
262
|
+
* Resolved here rather than at the log site so the `--json` result and the
|
|
263
|
+
* printed lines cannot disagree — the defect that produced this whole shape was
|
|
264
|
+
* a deploy instruction that lived as a string at one call site and was wrong.
|
|
265
|
+
*
|
|
266
|
+
* With nothing missing, the `perSecret` step is kept ONCE in placeholder form
|
|
267
|
+
* rather than dropped, and that is deliberate: `missingDeployEnv` reads the
|
|
268
|
+
* BUILD's environment, which says nothing about what the host has (its own doc
|
|
269
|
+
* makes this point), so an empty `missing` means "your shell had these", not
|
|
270
|
+
* "the platform does". Dropping the step there would quietly promise a host is
|
|
271
|
+
* configured when nobody has configured it.
|
|
272
|
+
*/
|
|
273
|
+
export declare function resolveDeploySteps(target: BuildTarget, options: {
|
|
274
|
+
readonly agentName: string;
|
|
275
|
+
readonly missingEnv: readonly string[];
|
|
276
|
+
}): DeployStep[];
|
package/dist/_deno-target.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* it goes and what goes in it.
|
|
7
7
|
*
|
|
8
8
|
* Deno and Modal are the two LONG-LIVED targets: each entry binds a port and
|
|
9
|
-
* each drains on a signal (
|
|
9
|
+
* each drains on a signal (`TARGET_DRAIN_SOURCE`), which is what makes
|
|
10
10
|
* them the pair that also shares `_target-output.ts`.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
@@ -23,6 +23,14 @@ export declare const DENO_OUTPUT_DIR: string;
|
|
|
23
23
|
export declare const DENO_ENTRY_FILE = "server.mjs";
|
|
24
24
|
/** Deno's own project file inside {@link DENO_OUTPUT_DIR}. */
|
|
25
25
|
export declare const DENO_CONFIG_FILE = "deno.json";
|
|
26
|
+
/**
|
|
27
|
+
* The port the entry binds when the host set no `PORT`.
|
|
28
|
+
*
|
|
29
|
+
* Deploy sets one, so this is what a bare `deno task start` on a laptop gets —
|
|
30
|
+
* the same number the Modal entry defaults to, because a reader who has run
|
|
31
|
+
* one emit should not have to look up the other.
|
|
32
|
+
*/
|
|
33
|
+
export declare const DENO_PORT = 8000;
|
|
26
34
|
/**
|
|
27
35
|
* The `deno.json` written beside the entry, so the output DESCRIBES how to run
|
|
28
36
|
* itself.
|
|
@@ -56,18 +64,11 @@ export declare const DENO_CONFIG_SOURCE: string;
|
|
|
56
64
|
* `aai start` run. Verified against a live deployment with real speech: 74
|
|
57
65
|
* audio frames back, transcript and reply intact.
|
|
58
66
|
*
|
|
59
|
-
*
|
|
60
|
-
* the process, so binding loopback answers nothing.
|
|
61
|
-
*
|
|
62
|
-
* `import.meta.dirname` rather than `process.cwd()` — the artifacts are copied
|
|
63
|
-
* in BESIDE this file, and the working directory belongs to the platform.
|
|
64
|
-
*
|
|
65
|
-
* `globalThis.Deno?.env` rather than `Deno.env`: this file is bundled by a
|
|
66
|
-
* Node-side build and is read by Node tooling (its own spec included), where a
|
|
67
|
-
* bare `Deno` is a `ReferenceError` at parse-adjacent evaluation time.
|
|
67
|
+
* ## The body is SHARED, and only these three lines are Deno's
|
|
68
68
|
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
69
|
+
* {@link longLivedEntrySource} carries the bind, the `0.0.0.0`, the
|
|
70
|
+
* `import.meta.dirname` and the drain — see that module for why the port read
|
|
71
|
+
* is no longer Deno's own, which is what left this artifact runnable only under
|
|
72
|
+
* Deno for as long as it read `globalThis.Deno.env` and nothing else.
|
|
72
73
|
*/
|
|
73
|
-
export declare const DENO_ENTRY_SOURCE
|
|
74
|
+
export declare const DENO_ENTRY_SOURCE: string;
|
package/dist/_dev-env.d.ts
CHANGED
|
@@ -30,27 +30,33 @@ export declare function hostModeEnv(providerEnv: Record<string, string>): Record
|
|
|
30
30
|
*/
|
|
31
31
|
export declare function devBindHost(): string | undefined;
|
|
32
32
|
/**
|
|
33
|
-
* File watching is
|
|
33
|
+
* File watching is on for a HUMAN and off for everything else — `--watch` /
|
|
34
|
+
* `--watch=false` and `AAI_DEV_WATCH` override it in either direction.
|
|
34
35
|
*
|
|
35
36
|
* A restart rebuilds the bundle and replaces the server, which drops nothing
|
|
36
37
|
* mid-request but does end in-flight voice sessions. That is the right default
|
|
37
38
|
* while editing an agent and the wrong one while a benchmark is driving the
|
|
38
39
|
* host for twenty minutes: a stray formatter save, a `.env` touch, or a git
|
|
39
40
|
* operation restarts the server underneath the run, and the harness reports it
|
|
40
|
-
* as a provider failure several records deep.
|
|
41
|
+
* as a provider failure several records deep. That argument is why watching was
|
|
42
|
+
* opt-in, and it is unchanged — what changed is that it is an argument about a
|
|
43
|
+
* HARNESS, and every default here was paying for it.
|
|
41
44
|
*
|
|
42
|
-
* **The
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
45
|
+
* **The two TTYs are the narrowing.** `process.stdin.isTTY && stdout.isTTY` is
|
|
46
|
+
* already this CLI's discriminator for "a person is running this" (`cli.ts`
|
|
47
|
+
* confirms before an implicit publish on exactly that pair), and a harness or
|
|
48
|
+
* supervisor driving `aai dev` has neither — it pipes stdout, which is also
|
|
49
|
+
* what auto-selects JSON mode. So the twenty-minute benchmark keeps today's
|
|
50
|
+
* behaviour by construction, without having to know a variable exists, and the
|
|
51
|
+
* author editing `agent.ts` in a terminal gets the reload the guide shipped
|
|
52
|
+
* into every scaffolded project has always promised ("Iterate in `pnpm dev` —
|
|
53
|
+
* hot reload") and the quickstart's own `aai dev --watch` had to ask for.
|
|
49
54
|
*
|
|
50
|
-
* The
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
55
|
+
* The FLAG still wins when passed, in both directions, and `AAI_DEV_WATCH`
|
|
56
|
+
* decides whenever it carries a value — `AAI_DEV_WATCH=0` is what turns
|
|
57
|
+
* watching OFF at a terminal, and it has to be read explicitly for that:
|
|
58
|
+
* before, every value but the four truthy ones fell through to a default of
|
|
59
|
+
* off, so `=0` worked by coincidence rather than by being read.
|
|
54
60
|
*/
|
|
55
61
|
export declare function devWatchEnabled(flag?: boolean | undefined): boolean;
|
|
56
62
|
/**
|
|
@@ -43,31 +43,39 @@ function devBindHost() {
|
|
|
43
43
|
return host ? host : void 0;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
* File watching is
|
|
46
|
+
* File watching is on for a HUMAN and off for everything else — `--watch` /
|
|
47
|
+
* `--watch=false` and `AAI_DEV_WATCH` override it in either direction.
|
|
47
48
|
*
|
|
48
49
|
* A restart rebuilds the bundle and replaces the server, which drops nothing
|
|
49
50
|
* mid-request but does end in-flight voice sessions. That is the right default
|
|
50
51
|
* while editing an agent and the wrong one while a benchmark is driving the
|
|
51
52
|
* host for twenty minutes: a stray formatter save, a `.env` touch, or a git
|
|
52
53
|
* operation restarts the server underneath the run, and the harness reports it
|
|
53
|
-
* as a provider failure several records deep.
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
54
|
+
* as a provider failure several records deep. That argument is why watching was
|
|
55
|
+
* opt-in, and it is unchanged — what changed is that it is an argument about a
|
|
56
|
+
* HARNESS, and every default here was paying for it.
|
|
57
|
+
*
|
|
58
|
+
* **The two TTYs are the narrowing.** `process.stdin.isTTY && stdout.isTTY` is
|
|
59
|
+
* already this CLI's discriminator for "a person is running this" (`cli.ts`
|
|
60
|
+
* confirms before an implicit publish on exactly that pair), and a harness or
|
|
61
|
+
* supervisor driving `aai dev` has neither — it pipes stdout, which is also
|
|
62
|
+
* what auto-selects JSON mode. So the twenty-minute benchmark keeps today's
|
|
63
|
+
* behaviour by construction, without having to know a variable exists, and the
|
|
64
|
+
* author editing `agent.ts` in a terminal gets the reload the guide shipped
|
|
65
|
+
* into every scaffolded project has always promised ("Iterate in `pnpm dev` —
|
|
66
|
+
* hot reload") and the quickstart's own `aai dev --watch` had to ask for.
|
|
67
|
+
*
|
|
68
|
+
* The FLAG still wins when passed, in both directions, and `AAI_DEV_WATCH`
|
|
69
|
+
* decides whenever it carries a value — `AAI_DEV_WATCH=0` is what turns
|
|
70
|
+
* watching OFF at a terminal, and it has to be read explicitly for that:
|
|
71
|
+
* before, every value but the four truthy ones fell through to a default of
|
|
72
|
+
* off, so `=0` worked by coincidence rather than by being read.
|
|
67
73
|
*/
|
|
68
74
|
function devWatchEnabled(flag) {
|
|
69
75
|
if (flag !== void 0) return flag;
|
|
70
|
-
|
|
76
|
+
const declared = process.env.AAI_DEV_WATCH?.trim();
|
|
77
|
+
if (declared) return /^(1|true|yes|on)$/i.test(declared);
|
|
78
|
+
return process.stdin.isTTY === true && process.stdout.isTTY === true;
|
|
71
79
|
}
|
|
72
80
|
/**
|
|
73
81
|
* The logger the dev server's runtime writes through.
|
|
@@ -474,7 +482,7 @@ function viteDevConfig(cwd, vitePort, backendPort) {
|
|
|
474
482
|
*
|
|
475
483
|
* Imports agent.ts directly for the full agent definition,
|
|
476
484
|
* builds a runtime, and starts an HTTP+WebSocket server. File watching is
|
|
477
|
-
*
|
|
485
|
+
* on at a terminal, off otherwise (see devWatchEnabled). Optionally runs Vite for
|
|
478
486
|
* client SPA HMR.
|
|
479
487
|
*/
|
|
480
488
|
/**
|
package/dist/_dev-server.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Imports agent.ts directly for the full agent definition,
|
|
5
5
|
* builds a runtime, and starts an HTTP+WebSocket server. File watching is
|
|
6
|
-
*
|
|
6
|
+
* on at a terminal, off otherwise (see devWatchEnabled). Optionally runs Vite for
|
|
7
7
|
* client SPA HMR.
|
|
8
8
|
*/
|
|
9
9
|
import type { AgentDef } from "@alexkroman1/aai";
|
|
@@ -57,8 +57,9 @@ export type DevServerOptions = {
|
|
|
57
57
|
cwd: string;
|
|
58
58
|
port: number;
|
|
59
59
|
/**
|
|
60
|
-
* Restart on a file change. Omitted, `AAI_DEV_WATCH` decides
|
|
61
|
-
* {@link devWatchEnabled} for why
|
|
60
|
+
* Restart on a file change. Omitted, `AAI_DEV_WATCH` decides, and failing
|
|
61
|
+
* that the TTY pair does — see {@link devWatchEnabled} for why a person gets
|
|
62
|
+
* a watcher and a harness does not.
|
|
62
63
|
*/
|
|
63
64
|
watch?: boolean | undefined;
|
|
64
65
|
};
|
package/dist/_init.d.ts
CHANGED
|
@@ -1,6 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The package managers `aai init` can install a project with, in PREFERENCE
|
|
3
|
+
* order — which is also the order `detectPackageManager` (`init.ts`) probes
|
|
4
|
+
* `PATH` in.
|
|
5
|
+
*
|
|
6
|
+
* pnpm first because it stays the preference where it is present (the scaffold
|
|
7
|
+
* is a pnpm workspace root and its lockfile is pnpm's), but it is no longer the
|
|
8
|
+
* only answer: the install instructions everywhere teach
|
|
9
|
+
* `npm i -g @alexkroman1/aai-cli`, and `init` then installed with pnpm alone —
|
|
10
|
+
* reaching it through `corepack enable`, which does not exist on Node >= 25,
|
|
11
|
+
* i.e. half the range `scaffold/package.json` declares.
|
|
12
|
+
*
|
|
13
|
+
* The list lives here, beside {@link PM_COMMANDS}, so the ORDER and the
|
|
14
|
+
* per-manager command spellings cannot disagree about which managers exist: a
|
|
15
|
+
* fifth entry fails to compile until that record has a row for it.
|
|
16
|
+
*/
|
|
17
|
+
export declare const PACKAGE_MANAGERS: readonly ["pnpm", "npm", "bun", "yarn"];
|
|
18
|
+
/** One of {@link PACKAGE_MANAGERS}. */
|
|
19
|
+
export type PackageManager = (typeof PACKAGE_MANAGERS)[number];
|
|
20
|
+
/** The manager `aai init` installed with, and the version to pin to it. */
|
|
21
|
+
export type PackageManagerInfo = {
|
|
22
|
+
readonly name: PackageManager;
|
|
23
|
+
/**
|
|
24
|
+
* What goes in the manifest's `packageManager` field. Absent means the field
|
|
25
|
+
* is REMOVED — see {@link stampPackageManager}.
|
|
26
|
+
*/
|
|
27
|
+
readonly version?: string | undefined;
|
|
28
|
+
};
|
|
1
29
|
export type InitOptions = {
|
|
2
30
|
targetDir: string;
|
|
3
31
|
template: string;
|
|
32
|
+
/**
|
|
33
|
+
* The manager the caller is about to install with — see
|
|
34
|
+
* {@link detectPackageManager} in `init.ts`.
|
|
35
|
+
*
|
|
36
|
+
* It reaches this far because the two files that have to AGREE with it are
|
|
37
|
+
* written here: the README's every command, and the manifest's
|
|
38
|
+
* `packageManager` pin. Omitted means npm and no pin, which is what a caller
|
|
39
|
+
* with no opinion should generate — npm is the one manager every Node install
|
|
40
|
+
* already has.
|
|
41
|
+
*/
|
|
42
|
+
packageManager?: PackageManagerInfo | undefined;
|
|
4
43
|
};
|
|
5
44
|
/** Rewrite workspace deps to link: paths so pnpm links to local source. */
|
|
6
45
|
export declare function patchPackageJsonForWorkspace(targetDir: string): Promise<void>;
|
package/dist/_modal-target.d.ts
CHANGED
|
@@ -44,14 +44,19 @@ export declare const MODAL_PORT = 8000;
|
|
|
44
44
|
* `aai start` shape rather than the serverless one — `listen()`, `0.0.0.0`
|
|
45
45
|
* (the proxy reaches this from outside the process), and artifacts resolved
|
|
46
46
|
* from {@link MODAL_ENTRY_FILE}'s own directory rather than from a working
|
|
47
|
-
* directory the platform owns.
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
47
|
+
* directory the platform owns.
|
|
48
|
+
*
|
|
49
|
+
* ## The entry IS shared with Deno's now
|
|
50
|
+
*
|
|
51
|
+
* It was not, on the reading that the two read the port from different
|
|
52
|
+
* runtimes and a shared entry would be a template with a hole where that goes.
|
|
53
|
+
* `RUNTIME_PORT_SOURCE` reads both runtimes, so the hole closed — and the
|
|
54
|
+
* copy cost more than duplication: it is what made each artifact runnable only
|
|
55
|
+
* under the runtime whose host emitted it. See `_target-entry.ts`.
|
|
51
56
|
*
|
|
52
57
|
* ## The drain is SHARED, and Modal supplies its other half
|
|
53
58
|
*
|
|
54
|
-
* The `SIGINT`/`SIGTERM` body is
|
|
59
|
+
* The `SIGINT`/`SIGTERM` body is `TARGET_DRAIN_SOURCE`, the same text the
|
|
55
60
|
* Deno entry carries — it used to live here alone, on the reading that Modal
|
|
56
61
|
* stops containers and Deno Deploy does not, which is not true of either.
|
|
57
62
|
*
|
|
@@ -61,4 +66,4 @@ export declare const MODAL_PORT = 8000;
|
|
|
61
66
|
* platform's own deploy learned that when orphaned guest sandboxes billed ~20
|
|
62
67
|
* minutes each on every release (see `run_node` in `scripts/modal_image.py`).
|
|
63
68
|
*/
|
|
64
|
-
export declare const MODAL_ENTRY_SOURCE
|
|
69
|
+
export declare const MODAL_ENTRY_SOURCE: string;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { plural } from "@alexkroman1/aai/utils";
|
|
3
|
+
import { TELEPHONY_CARRIERS } from "@alexkroman1/aai/internal";
|
|
4
|
+
import { CARRIER_PARAM, TELEPHONY_PATH, requiredProviderEnvVars } from "@alexkroman1/aai-runtime";
|
|
5
|
+
//#region src/_preflight.ts
|
|
6
|
+
/**
|
|
7
|
+
* Every env var name the agent needs to start: provider credentials derived
|
|
8
|
+
* from the stt/llm/tts/s2s descriptors (the same registry-backed derivation the
|
|
9
|
+
* runtime resolves keys with), plus the agent's own declared `requiredEnv` — an
|
|
10
|
+
* `agent()` field for custom keys tools read from `ctx.env`, which no static
|
|
11
|
+
* derivation can see.
|
|
12
|
+
*
|
|
13
|
+
* **Named on its own because the CLI has TWO deploy paths and only one of them
|
|
14
|
+
* used to ask.** `missingDeployEnv` (`build.ts`, the `--target` hosts) derived
|
|
15
|
+
* its list from `.env.example` alone, so an agent declaring
|
|
16
|
+
* `requiredEnv: ["ORDERS_API_KEY"]` and no example entry got neither a warning
|
|
17
|
+
* nor an `env add` step for it — while the managed path below saw both sources.
|
|
18
|
+
* One derivation, two callers; each applies its own "what counts as supplied".
|
|
19
|
+
*/
|
|
20
|
+
function requiredEnvNames(config) {
|
|
21
|
+
return [.../* @__PURE__ */ new Set([...requiredProviderEnvVars(config), ...config.requiredEnv ?? []])];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Env var names the agent needs that the env being uploaded doesn't supply.
|
|
25
|
+
* Empty values count as missing — an empty credential authenticates nothing.
|
|
26
|
+
*/
|
|
27
|
+
function missingCredentials(config, env) {
|
|
28
|
+
return requiredEnvNames(config).filter((name) => !env[name]);
|
|
29
|
+
}
|
|
30
|
+
/** One line naming the missing keys and what to do about them. */
|
|
31
|
+
function missingCredentialMessage(missing) {
|
|
32
|
+
return `Missing ${plural(missing.length, "credential")} the agent needs to start: ${missing.join(", ")}. Declare ${plural(missing.length, "it", "them")} in .env and redeploy (already set on the platform with \`aai secret put\`? then this is already handled).`;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The webhook-signing secret each carrier's requests are verified with —
|
|
36
|
+
* `phone-signature.ts`'s `TWILIO_AUTH_TOKEN_SECRET` / `TELNYX_PUBLIC_KEY_SECRET`
|
|
37
|
+
* from the reading end.
|
|
38
|
+
*
|
|
39
|
+
* Copied rather than imported: those constants live in `aai-server`, which the
|
|
40
|
+
* CLI may never import (see "Dependency flow" in `AGENTS.md`). `satisfies` is
|
|
41
|
+
* what keeps the copy total — a carrier added to `TELEPHONY_CARRIERS` with no
|
|
42
|
+
* secret named here fails this package's build rather than deploying a phone
|
|
43
|
+
* number nothing warns about.
|
|
44
|
+
*/
|
|
45
|
+
const CARRIER_SIGNING_SECRETS = {
|
|
46
|
+
twilio: "TWILIO_AUTH_TOKEN",
|
|
47
|
+
telnyx: "TELNYX_PUBLIC_KEY"
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* The carriers a declaration admits, in `TELEPHONY_CARRIERS` order.
|
|
51
|
+
*
|
|
52
|
+
* The same resolution the runtime's `enabledCarriers` performs — `false`, `[]`
|
|
53
|
+
* and an absent field all mean the route is not served, `true` means every
|
|
54
|
+
* carrier this build ships a codec for, and a name this build does not know is
|
|
55
|
+
* DROPPED. It is re-derived here only because that function is `@internal` to
|
|
56
|
+
* `aai-runtime` and reaches no published subpath; keep the two in step.
|
|
57
|
+
*/
|
|
58
|
+
function declaredCarriers(config) {
|
|
59
|
+
const access = config.telephony;
|
|
60
|
+
if (access === void 0 || access === false) return [];
|
|
61
|
+
if (access === true) return [...TELEPHONY_CARRIERS];
|
|
62
|
+
const asked = new Set(access);
|
|
63
|
+
return TELEPHONY_CARRIERS.filter((name) => asked.has(name));
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Declared carriers whose signing secret the env being uploaded doesn't
|
|
67
|
+
* supply — the phone half of {@link missingCredentials}, and a separate
|
|
68
|
+
* function because the failure is a separate one.
|
|
69
|
+
*
|
|
70
|
+
* A missing provider key stops the agent starting; a missing signing secret
|
|
71
|
+
* lets it start and serve a phone number with **verification off**. Signature
|
|
72
|
+
* checking is enabled BY PRESENCE (`phone-signature.ts`), so the absence is
|
|
73
|
+
* silent at every layer: the deploy succeeds, the call connects, and nothing
|
|
74
|
+
* anywhere says the webhook is unauthenticated. That is the one thing about a
|
|
75
|
+
* declared carrier the CLI knows and the platform cannot — the platform stores
|
|
76
|
+
* no agent config — so it is said here or nowhere.
|
|
77
|
+
*
|
|
78
|
+
* Empty values count as missing for the reason they do above, and for one more:
|
|
79
|
+
* `verifyPhoneWebhook` reads the stored value, and a blank secret is a check
|
|
80
|
+
* that cannot pass rather than one that is off.
|
|
81
|
+
*/
|
|
82
|
+
function missingTelephonySecrets(config, env) {
|
|
83
|
+
return declaredCarriers(config).map((carrier) => ({
|
|
84
|
+
carrier,
|
|
85
|
+
secret: CARRIER_SIGNING_SECRETS[carrier]
|
|
86
|
+
})).filter(({ secret }) => !env[secret]);
|
|
87
|
+
}
|
|
88
|
+
/** One line per carrier whose signing secret is absent. */
|
|
89
|
+
function missingTelephonySecretWarnings(missing) {
|
|
90
|
+
return missing.map(({ carrier, secret }) => `telephony declares ${carrier} but ${secret} is not set — the ${carrier} webhook will be served with signature verification OFF, so anyone who knows the URL can start a call. Declare ${secret} in .env and redeploy (already set on the platform with \`aai secret put\`? then this is already handled).`);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The webhook URL to paste into each declared carrier's phone-number
|
|
94
|
+
* configuration, `?carrier=` already filled in.
|
|
95
|
+
*
|
|
96
|
+
* Printed because both halves are things a user is otherwise asked to
|
|
97
|
+
* reconstruct by hand, and getting either wrong produces a failure that names
|
|
98
|
+
* neither: the platform's phone route defaults `carrier` to `"twilio"` against
|
|
99
|
+
* a hardcoded set and never consults the agent's declaration, so a Telnyx
|
|
100
|
+
* number reached without the query parameter is verified against Twilio's
|
|
101
|
+
* scheme and answers `403 Invalid webhook signature`. The parameter cannot be
|
|
102
|
+
* inferred server-side — `BundleStore` deliberately holds no agent config — and
|
|
103
|
+
* it does not have to be, because the declaration is in hand right here.
|
|
104
|
+
*
|
|
105
|
+
* The path and the parameter name come from `aai-runtime`'s own constants
|
|
106
|
+
* rather than from string literals, so a route rename cannot leave this
|
|
107
|
+
* printing a URL that 404s.
|
|
108
|
+
*/
|
|
109
|
+
function telephonyWebhooks(config, agentUrl) {
|
|
110
|
+
return declaredCarriers(config).map((carrier) => ({
|
|
111
|
+
carrier,
|
|
112
|
+
url: `${agentUrl}${TELEPHONY_PATH}?${CARRIER_PARAM}=${carrier}`
|
|
113
|
+
}));
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
export { CARRIER_SIGNING_SECRETS, declaredCarriers, missingCredentialMessage, missingCredentials, missingTelephonySecretWarnings, missingTelephonySecrets, requiredEnvNames, telephonyWebhooks };
|