@dainprotocol/cli 1.2.16 → 1.2.17

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.
@@ -156,9 +156,7 @@ function dev(options) {
156
156
  options.port = port;
157
157
  }
158
158
  (0, utils_1.logInfo)("Using port ".concat(options.port, " (from ").concat(portSource, ")"));
159
- console.log('Config: ' + JSON.stringify(config));
160
159
  runtime = options.runtime || config.runtime || 'node';
161
- console.log('Runtime: ' + runtime);
162
160
  tsNodePath = path_1.default.join(process.cwd(), 'node_modules', '.bin', 'ts-node');
163
161
  command = "\"".concat(tsNodePath, "\" \"").concat(config['main-file'], "\"");
164
162
  envVars = {
@@ -125,7 +125,6 @@ function chat(dainConnection) {
125
125
  _f.label = 8;
126
126
  case 8:
127
127
  _f.trys.push([8, 10, , 11]);
128
- console.log("messages", messages);
129
128
  return [4 /*yield*/, (0, ai_1.generateText)({
130
129
  model: (0, anthropic_1.anthropic)("claude-3-5-sonnet-20240620"),
131
130
  system: " Keep your responses brief but insightful.\n use lots of emojis, to show your enthusiasm!\n Your name is Butterfly, Built by the team at Dain. \n You are given tools only use them if they ask for it or if it helps you accomplish the task.\n when explaining topics you can use diagrams to help visualize the concepts.\n if the user asks for a tool, you can use it to help them\n You always answer the with markdown formatting. use markdown when it would be possible.\n You support the following markdown headings, bold, italic, links, tables, lists, code blocks, and blockquotes.\n You do not support images and never include images. You can also use emojis to show enthusiasm!\n Tools often have UI components that directly display to the user, once they are displayed you dont need to repeat the tool name or what it does or what its supposed to output, assume the user can already see the output.\n",
package/dist/utils.js CHANGED
@@ -66,7 +66,6 @@ function getDainConfig(configFile) {
66
66
  loadEnvFiles(); // Loads all env files first
67
67
  var defaultConfigPath = path_1.default.join(process.cwd(), "dain.json");
68
68
  var configPath = configFile ? path_1.default.join(process.cwd(), configFile) : defaultConfigPath;
69
- console.log("Config path: ", configPath);
70
69
  if (!fs_1.default.existsSync(configPath)) {
71
70
  logError("Configuration file not found: ".concat(configPath));
72
71
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dainprotocol/cli",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"