struere 0.3.5 → 0.3.6

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.
@@ -17627,12 +17627,12 @@ var initCommand = new Command("init").description("Initialize a new Struere proj
17627
17627
  }
17628
17628
  }
17629
17629
  if (!selectedAgent) {
17630
- const displayName = projectName.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
17630
+ const displayName2 = projectName.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
17631
17631
  spinner.start("Creating agent");
17632
17632
  const { agentId, error: createError } = await createAgent({
17633
- name: displayName,
17633
+ name: displayName2,
17634
17634
  slug: projectName,
17635
- description: `${displayName} Agent`
17635
+ description: `${displayName2} Agent`
17636
17636
  });
17637
17637
  if (createError || !agentId) {
17638
17638
  spinner.fail("Failed to create agent");
@@ -17640,7 +17640,7 @@ var initCommand = new Command("init").description("Initialize a new Struere proj
17640
17640
  console.log(source_default.red("Error:"), createError || "Unknown error");
17641
17641
  process.exit(1);
17642
17642
  }
17643
- selectedAgent = { id: agentId, name: displayName, slug: projectName };
17643
+ selectedAgent = { id: agentId, name: displayName2, slug: projectName };
17644
17644
  deploymentUrl = `https://${projectName}-dev.struere.dev`;
17645
17645
  spinner.succeed(`Created agent "${projectName}"`);
17646
17646
  } else {
@@ -17691,10 +17691,43 @@ var initCommand = new Command("init").description("Initialize a new Struere proj
17691
17691
  }
17692
17692
  }
17693
17693
  console.log();
17694
+ spinner.start("Installing dependencies");
17695
+ const installResult = Bun.spawnSync(["bun", "install"], {
17696
+ cwd,
17697
+ stdout: "pipe",
17698
+ stderr: "pipe"
17699
+ });
17700
+ if (installResult.exitCode === 0) {
17701
+ spinner.succeed("Dependencies installed");
17702
+ } else {
17703
+ spinner.warn("Could not install dependencies automatically");
17704
+ console.log(source_default.gray(" Run"), source_default.cyan("bun install"), source_default.gray("manually"));
17705
+ }
17706
+ spinner.start("Syncing initial config to Convex");
17707
+ const displayName = projectName.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
17708
+ const defaultConfig = {
17709
+ name: displayName,
17710
+ version: "0.1.0",
17711
+ systemPrompt: `You are ${displayName}, a helpful AI assistant. You help users with their questions and tasks.`,
17712
+ model: {
17713
+ provider: "anthropic",
17714
+ name: "claude-sonnet-4-20250514",
17715
+ temperature: 0.7,
17716
+ maxTokens: 4096
17717
+ },
17718
+ tools: []
17719
+ };
17720
+ const syncResult = await syncToConvex(selectedAgent.id, defaultConfig);
17721
+ if (syncResult.success) {
17722
+ spinner.succeed("Initial config synced");
17723
+ } else {
17724
+ spinner.warn("Could not sync initial config");
17725
+ console.log(source_default.gray(" Run"), source_default.cyan("struere dev"), source_default.gray("to sync manually"));
17726
+ }
17727
+ console.log();
17694
17728
  console.log(source_default.green("Success!"), "Project initialized");
17695
17729
  console.log();
17696
17730
  console.log(source_default.gray("Next steps:"));
17697
- console.log(source_default.gray(" $"), source_default.cyan("bun install"));
17698
17731
  console.log(source_default.gray(" $"), source_default.cyan("struere dev"));
17699
17732
  console.log();
17700
17733
  });
@@ -18735,7 +18768,7 @@ var whoamiCommand = new Command("whoami").description("Show current logged in us
18735
18768
  // package.json
18736
18769
  var package_default = {
18737
18770
  name: "struere",
18738
- version: "0.3.5",
18771
+ version: "0.3.6",
18739
18772
  description: "Build, test, and deploy AI agents",
18740
18773
  keywords: ["ai", "agents", "llm", "anthropic", "openai", "framework", "cli"],
18741
18774
  author: "struere",
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAWnC,eAAO,MAAM,WAAW,SA0KpB,CAAA;AAEJ,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAYpE;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK5C"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAWnC,eAAO,MAAM,WAAW,SA4NpB,CAAA;AAEJ,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAYpE;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK5C"}
package/dist/cli/index.js CHANGED
@@ -966,12 +966,12 @@ var initCommand = new Command2("init").description("Initialize a new Struere pro
966
966
  }
967
967
  }
968
968
  if (!selectedAgent) {
969
- const displayName = projectName.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
969
+ const displayName2 = projectName.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
970
970
  spinner.start("Creating agent");
971
971
  const { agentId, error: createError } = await createAgent({
972
- name: displayName,
972
+ name: displayName2,
973
973
  slug: projectName,
974
- description: `${displayName} Agent`
974
+ description: `${displayName2} Agent`
975
975
  });
976
976
  if (createError || !agentId) {
977
977
  spinner.fail("Failed to create agent");
@@ -979,7 +979,7 @@ var initCommand = new Command2("init").description("Initialize a new Struere pro
979
979
  console.log(chalk2.red("Error:"), createError || "Unknown error");
980
980
  process.exit(1);
981
981
  }
982
- selectedAgent = { id: agentId, name: displayName, slug: projectName };
982
+ selectedAgent = { id: agentId, name: displayName2, slug: projectName };
983
983
  deploymentUrl = `https://${projectName}-dev.struere.dev`;
984
984
  spinner.succeed(`Created agent "${projectName}"`);
985
985
  } else {
@@ -1030,10 +1030,43 @@ var initCommand = new Command2("init").description("Initialize a new Struere pro
1030
1030
  }
1031
1031
  }
1032
1032
  console.log();
1033
+ spinner.start("Installing dependencies");
1034
+ const installResult = Bun.spawnSync(["bun", "install"], {
1035
+ cwd,
1036
+ stdout: "pipe",
1037
+ stderr: "pipe"
1038
+ });
1039
+ if (installResult.exitCode === 0) {
1040
+ spinner.succeed("Dependencies installed");
1041
+ } else {
1042
+ spinner.warn("Could not install dependencies automatically");
1043
+ console.log(chalk2.gray(" Run"), chalk2.cyan("bun install"), chalk2.gray("manually"));
1044
+ }
1045
+ spinner.start("Syncing initial config to Convex");
1046
+ const displayName = projectName.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
1047
+ const defaultConfig = {
1048
+ name: displayName,
1049
+ version: "0.1.0",
1050
+ systemPrompt: `You are ${displayName}, a helpful AI assistant. You help users with their questions and tasks.`,
1051
+ model: {
1052
+ provider: "anthropic",
1053
+ name: "claude-sonnet-4-20250514",
1054
+ temperature: 0.7,
1055
+ maxTokens: 4096
1056
+ },
1057
+ tools: []
1058
+ };
1059
+ const syncResult = await syncToConvex(selectedAgent.id, defaultConfig);
1060
+ if (syncResult.success) {
1061
+ spinner.succeed("Initial config synced");
1062
+ } else {
1063
+ spinner.warn("Could not sync initial config");
1064
+ console.log(chalk2.gray(" Run"), chalk2.cyan("struere dev"), chalk2.gray("to sync manually"));
1065
+ }
1066
+ console.log();
1033
1067
  console.log(chalk2.green("Success!"), "Project initialized");
1034
1068
  console.log();
1035
1069
  console.log(chalk2.gray("Next steps:"));
1036
- console.log(chalk2.gray(" $"), chalk2.cyan("bun install"));
1037
1070
  console.log(chalk2.gray(" $"), chalk2.cyan("struere dev"));
1038
1071
  console.log();
1039
1072
  });
@@ -2100,7 +2133,7 @@ var whoamiCommand = new Command11("whoami").description("Show current logged in
2100
2133
  // package.json
2101
2134
  var package_default = {
2102
2135
  name: "struere",
2103
- version: "0.3.5",
2136
+ version: "0.3.6",
2104
2137
  description: "Build, test, and deploy AI agents",
2105
2138
  keywords: ["ai", "agents", "llm", "anthropic", "openai", "framework", "cli"],
2106
2139
  author: "struere",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "struere",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Build, test, and deploy AI agents",
5
5
  "keywords": ["ai", "agents", "llm", "anthropic", "openai", "framework", "cli"],
6
6
  "author": "struere",