@alexkroman1/aai 0.7.3 → 0.7.5
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 +31 -16
- package/package.json +3 -2
- package/templates/.env +1 -0
- package/templates/_shared/.env.example +5 -0
- package/templates/_shared/CLAUDE.md +710 -0
- package/templates/_shared/package.json +17 -0
- package/templates/_shared/tsconfig.json +16 -0
- package/templates/code-interpreter/agent.ts +27 -0
- package/templates/code-interpreter/client.tsx +2 -0
- package/templates/dispatch-center/agent.ts +1564 -0
- package/templates/dispatch-center/client.tsx +504 -0
- package/templates/embedded-assets/agent.ts +49 -0
- package/templates/embedded-assets/client.tsx +2 -0
- package/templates/embedded-assets/knowledge.json +20 -0
- package/templates/health-assistant/agent.ts +160 -0
- package/templates/health-assistant/client.tsx +2 -0
- package/templates/infocom-adventure/agent.ts +164 -0
- package/templates/infocom-adventure/client.tsx +299 -0
- package/templates/math-buddy/agent.ts +21 -0
- package/templates/math-buddy/client.tsx +2 -0
- package/templates/memory-agent/agent.ts +74 -0
- package/templates/memory-agent/client.tsx +2 -0
- package/templates/night-owl/agent.ts +98 -0
- package/templates/night-owl/client.tsx +28 -0
- package/templates/personal-finance/agent.ts +26 -0
- package/templates/personal-finance/client.tsx +2 -0
- package/templates/simple/agent.ts +6 -0
- package/templates/simple/client.tsx +2 -0
- package/templates/smart-research/agent.ts +164 -0
- package/templates/smart-research/client.tsx +2 -0
- package/templates/support/README.md +62 -0
- package/templates/support/agent.ts +19 -0
- package/templates/support/client.tsx +2 -0
- package/templates/travel-concierge/agent.ts +29 -0
- package/templates/travel-concierge/client.tsx +2 -0
- package/templates/tsconfig.json +1 -0
- package/templates/web-researcher/agent.ts +17 -0
- package/templates/web-researcher/client.tsx +2 -0
package/dist/cli.js
CHANGED
|
@@ -15,13 +15,13 @@ function primary(s) {
|
|
|
15
15
|
return chalk.hex("#fab283")(s);
|
|
16
16
|
}
|
|
17
17
|
function interactive(s) {
|
|
18
|
-
return chalk.hex("#
|
|
18
|
+
return chalk.hex("#56b6c2")(s);
|
|
19
19
|
}
|
|
20
20
|
function error(s) {
|
|
21
|
-
return chalk.hex("#
|
|
21
|
+
return chalk.hex("#e06c75")(s);
|
|
22
22
|
}
|
|
23
23
|
function warning(s) {
|
|
24
|
-
return chalk.hex("#
|
|
24
|
+
return chalk.hex("#f5a742")(s);
|
|
25
25
|
}
|
|
26
26
|
var init_colors = __esm({
|
|
27
27
|
"cli/_colors.ts"() {
|
|
@@ -2050,9 +2050,9 @@ import React, { useRef, useState } from "react";
|
|
|
2050
2050
|
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
2051
2051
|
var PAD2 = 9;
|
|
2052
2052
|
var PRIMARY = "#fab283";
|
|
2053
|
-
var INTERACTIVE = "#
|
|
2054
|
-
var ERROR_COLOR = "#
|
|
2055
|
-
var WARNING_COLOR = "#
|
|
2053
|
+
var INTERACTIVE = "#56b6c2";
|
|
2054
|
+
var ERROR_COLOR = "#e06c75";
|
|
2055
|
+
var WARNING_COLOR = "#f5a742";
|
|
2056
2056
|
function Step({ action, msg }) {
|
|
2057
2057
|
return /* @__PURE__ */ jsxs2(Text2, { children: [
|
|
2058
2058
|
/* @__PURE__ */ jsx2(Text2, { bold: true, color: PRIMARY, children: action.padStart(PAD2) }),
|
|
@@ -2223,15 +2223,15 @@ var DEFAULT_STYLES_CSS = `@import url("https://fonts.googleapis.com/css2?family=
|
|
|
2223
2223
|
--color-aai-text-secondary: rgba(255, 255, 255, 0.618);
|
|
2224
2224
|
--color-aai-text-muted: rgba(255, 255, 255, 0.284);
|
|
2225
2225
|
--color-aai-text-dim: rgba(255, 255, 255, 0.422);
|
|
2226
|
-
--color-aai-error: #
|
|
2227
|
-
--color-aai-ring: #
|
|
2226
|
+
--color-aai-error: #e06c75;
|
|
2227
|
+
--color-aai-ring: #56b6c2;
|
|
2228
2228
|
--color-aai-state-disconnected: rgba(255, 255, 255, 0.422);
|
|
2229
2229
|
--color-aai-state-connecting: rgba(255, 255, 255, 0.422);
|
|
2230
|
-
--color-aai-state-ready: #
|
|
2231
|
-
--color-aai-state-listening: #
|
|
2232
|
-
--color-aai-state-thinking: #
|
|
2233
|
-
--color-aai-state-speaking: #
|
|
2234
|
-
--color-aai-state-error: #
|
|
2230
|
+
--color-aai-state-ready: #7fd88f;
|
|
2231
|
+
--color-aai-state-listening: #56b6c2;
|
|
2232
|
+
--color-aai-state-thinking: #f5a742;
|
|
2233
|
+
--color-aai-state-speaking: #e06c75;
|
|
2234
|
+
--color-aai-state-error: #e06c75;
|
|
2235
2235
|
--radius-aai: 6px;
|
|
2236
2236
|
--font-aai: "Inter", system-ui, -apple-system, sans-serif;
|
|
2237
2237
|
--font-aai-mono: "IBM Plex Mono", monospace;
|
|
@@ -2396,6 +2396,7 @@ init_colors();
|
|
|
2396
2396
|
import fs5 from "node:fs/promises";
|
|
2397
2397
|
import path5 from "node:path";
|
|
2398
2398
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
2399
|
+
import chalk4 from "chalk";
|
|
2399
2400
|
import minimist from "minimist";
|
|
2400
2401
|
init_new();
|
|
2401
2402
|
var newCommandDef = {
|
|
@@ -2437,7 +2438,7 @@ async function selectTemplate(available) {
|
|
|
2437
2438
|
}));
|
|
2438
2439
|
return await askSelect("Which template?", choices);
|
|
2439
2440
|
}
|
|
2440
|
-
async function runNewCommand(args, version) {
|
|
2441
|
+
async function runNewCommand(args, version, opts) {
|
|
2441
2442
|
const parsed = minimist(args, {
|
|
2442
2443
|
string: ["template"],
|
|
2443
2444
|
boolean: ["force", "help", "yes"],
|
|
@@ -2482,6 +2483,20 @@ async function runNewCommand(args, version) {
|
|
|
2482
2483
|
await ensureClaudeMd(cwd);
|
|
2483
2484
|
await ensureDependencies(cwd);
|
|
2484
2485
|
});
|
|
2486
|
+
if (!opts?.quiet) {
|
|
2487
|
+
const cdNeeded = dir != null;
|
|
2488
|
+
console.log();
|
|
2489
|
+
console.log(chalk4.bold("Next steps:"));
|
|
2490
|
+
if (cdNeeded) {
|
|
2491
|
+
console.log(` ${chalk4.dim("$")} ${primary(`cd ${path5.relative(process.cwd(), cwd)}`)}`);
|
|
2492
|
+
}
|
|
2493
|
+
console.log(
|
|
2494
|
+
` ${chalk4.dim("$")} ${primary("aai dev")} ${chalk4.dim("Start local dev server")}`
|
|
2495
|
+
);
|
|
2496
|
+
console.log(
|
|
2497
|
+
` ${chalk4.dim("$")} ${primary("aai deploy")} ${chalk4.dim("Deploy to production")}`
|
|
2498
|
+
);
|
|
2499
|
+
}
|
|
2485
2500
|
return cwd;
|
|
2486
2501
|
}
|
|
2487
2502
|
|
|
@@ -2515,7 +2530,7 @@ async function runDeployCommand(args, version) {
|
|
|
2515
2530
|
}
|
|
2516
2531
|
const cwd = process.env.INIT_CWD || process.cwd();
|
|
2517
2532
|
if (!await fileExists(path6.join(cwd, "agent.ts"))) {
|
|
2518
|
-
await runNewCommand(parsed.yes ? ["-y"] : [], version);
|
|
2533
|
+
await runNewCommand(parsed.yes ? ["-y"] : [], version, { quiet: true });
|
|
2519
2534
|
}
|
|
2520
2535
|
const local = parsed.local;
|
|
2521
2536
|
const serverUrl = local !== void 0 ? typeof local === "string" && local !== "" ? local : "http://localhost:3100" : parsed.server || (isDevMode() ? "http://localhost:3100" : DEFAULT_SERVER);
|
|
@@ -2653,7 +2668,7 @@ async function runDevCommand(args, version) {
|
|
|
2653
2668
|
const cwd = process.env.INIT_CWD || process.cwd();
|
|
2654
2669
|
const port = Number.parseInt(parsed.port ?? "3000", 10);
|
|
2655
2670
|
if (!await fileExists(path8.join(cwd, "agent.ts"))) {
|
|
2656
|
-
await runNewCommand(parsed.yes ? ["-y"] : [], version);
|
|
2671
|
+
await runNewCommand(parsed.yes ? ["-y"] : [], version, { quiet: true });
|
|
2657
2672
|
}
|
|
2658
2673
|
await getApiKey();
|
|
2659
2674
|
await runWithInk("Bundling...", async (log) => {
|
package/package.json
CHANGED
package/templates/.env
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ASSEMBLYAI_API_KEY=
|