struere 0.3.9 → 0.3.10

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.
@@ -18116,7 +18116,7 @@ import { join as join6 } from "path";
18116
18116
  async function loadAgent(cwd) {
18117
18117
  const agentPath = join6(cwd, "src/agent.ts");
18118
18118
  try {
18119
- const module = await import(agentPath);
18119
+ const module = await import(`${agentPath}?t=${Date.now()}`);
18120
18120
  const agent = module.default || module;
18121
18121
  if (!agent.name) {
18122
18122
  throw new Error("Agent must have a name");
@@ -18365,7 +18365,24 @@ async function interactiveSetup(cwd) {
18365
18365
  console.log(source_default.green("\u2713"), `Created ${file}`);
18366
18366
  }
18367
18367
  console.log();
18368
- console.log(source_default.yellow("Run"), source_default.cyan("bun install"), source_default.yellow("to install dependencies"));
18368
+ spinner.start("Installing dependencies");
18369
+ try {
18370
+ const proc = Bun.spawn(["bun", "install"], {
18371
+ cwd,
18372
+ stdout: "pipe",
18373
+ stderr: "pipe"
18374
+ });
18375
+ await proc.exited;
18376
+ if (proc.exitCode === 0) {
18377
+ spinner.succeed("Dependencies installed");
18378
+ } else {
18379
+ spinner.fail("Failed to install dependencies");
18380
+ console.log(source_default.yellow("Run"), source_default.cyan("bun install"), source_default.yellow("manually"));
18381
+ }
18382
+ } catch {
18383
+ spinner.fail("Failed to install dependencies");
18384
+ console.log(source_default.yellow("Run"), source_default.cyan("bun install"), source_default.yellow("manually"));
18385
+ }
18369
18386
  }
18370
18387
  console.log();
18371
18388
  return projectData;
@@ -19090,7 +19107,7 @@ var whoamiCommand = new Command("whoami").description("Show current logged in us
19090
19107
  // package.json
19091
19108
  var package_default = {
19092
19109
  name: "struere",
19093
- version: "0.3.9",
19110
+ version: "0.3.10",
19094
19111
  description: "Build, test, and deploy AI agents",
19095
19112
  keywords: [
19096
19113
  "ai",
package/dist/cli/index.js CHANGED
@@ -1458,7 +1458,7 @@ import { join as join6 } from "path";
1458
1458
  async function loadAgent(cwd) {
1459
1459
  const agentPath = join6(cwd, "src/agent.ts");
1460
1460
  try {
1461
- const module = await import(agentPath);
1461
+ const module = await import(`${agentPath}?t=${Date.now()}`);
1462
1462
  const agent = module.default || module;
1463
1463
  if (!agent.name) {
1464
1464
  throw new Error("Agent must have a name");
@@ -1707,7 +1707,24 @@ async function interactiveSetup(cwd) {
1707
1707
  console.log(chalk3.green("\u2713"), `Created ${file}`);
1708
1708
  }
1709
1709
  console.log();
1710
- console.log(chalk3.yellow("Run"), chalk3.cyan("bun install"), chalk3.yellow("to install dependencies"));
1710
+ spinner.start("Installing dependencies");
1711
+ try {
1712
+ const proc = Bun.spawn(["bun", "install"], {
1713
+ cwd,
1714
+ stdout: "pipe",
1715
+ stderr: "pipe"
1716
+ });
1717
+ await proc.exited;
1718
+ if (proc.exitCode === 0) {
1719
+ spinner.succeed("Dependencies installed");
1720
+ } else {
1721
+ spinner.fail("Failed to install dependencies");
1722
+ console.log(chalk3.yellow("Run"), chalk3.cyan("bun install"), chalk3.yellow("manually"));
1723
+ }
1724
+ } catch {
1725
+ spinner.fail("Failed to install dependencies");
1726
+ console.log(chalk3.yellow("Run"), chalk3.cyan("bun install"), chalk3.yellow("manually"));
1727
+ }
1711
1728
  }
1712
1729
  console.log();
1713
1730
  return projectData;
@@ -2455,7 +2472,7 @@ var whoamiCommand = new Command11("whoami").description("Show current logged in
2455
2472
  // package.json
2456
2473
  var package_default = {
2457
2474
  name: "struere",
2458
- version: "0.3.9",
2475
+ version: "0.3.10",
2459
2476
  description: "Build, test, and deploy AI agents",
2460
2477
  keywords: [
2461
2478
  "ai",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "struere",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Build, test, and deploy AI agents",
5
5
  "keywords": [
6
6
  "ai",