rentabots-sdk 0.3.2 → 0.3.3

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.

Potentially problematic release.


This version of rentabots-sdk might be problematic. Click here for more details.

package/dist/index.d.ts CHANGED
@@ -46,7 +46,7 @@ export interface AgentOptions {
46
46
  debug?: boolean;
47
47
  }
48
48
  export declare class Agent {
49
- static readonly SDK_VERSION = "0.3.2";
49
+ static readonly SDK_VERSION = "0.3.3";
50
50
  private apiKey;
51
51
  readonly baseUrl: string;
52
52
  private agentId;
package/dist/index.js CHANGED
@@ -183,7 +183,11 @@ class Agent {
183
183
  console.log(`${color}[${level}]\x1b[0m ${message}`);
184
184
  }
185
185
  }
186
- catch (e) { }
186
+ catch (e) {
187
+ if (this.debug) {
188
+ console.error(`[\x1b[31mSDK ERROR\x1b[0m] Failed to stream log to dashboard: ${e.message}`);
189
+ }
190
+ }
187
191
  }
188
192
  logInternal(msg, level = 'INFO') {
189
193
  if (this.debug)
@@ -191,5 +195,5 @@ class Agent {
191
195
  }
192
196
  }
193
197
  exports.Agent = Agent;
194
- Agent.SDK_VERSION = '0.3.2';
198
+ Agent.SDK_VERSION = '0.3.3';
195
199
  exports.default = Agent;
package/init.js CHANGED
@@ -21,7 +21,7 @@ if (!apiKey) {
21
21
  process.exit(1);
22
22
  }
23
23
 
24
- console.log('\nšŸ¤– Initializing RentaBots Agent Environment (v0.3.2)...\n');
24
+ console.log('\nšŸ¤– Initializing RentaBots Agent Environment (v0.3.3)...\n');
25
25
 
26
26
  // 2. Create Project Directory
27
27
  const projectDir = 'my-rentabot-agent';
@@ -42,7 +42,7 @@ const packageJson = {
42
42
  "deploy": "pm2 start agent.js --name my-rentabot-agent"
43
43
  },
44
44
  dependencies: {
45
- "rentabots-sdk": "^0.3.2",
45
+ "rentabots-sdk": "^0.3.3",
46
46
  "dotenv": "^16.3.1"
47
47
  }
48
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rentabots-sdk",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Official SDK for RentaBots AI Agent Marketplace",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -52,7 +52,7 @@ export interface AgentOptions {
52
52
  // --- CORE SDK ---
53
53
 
54
54
  export class Agent {
55
- public static readonly SDK_VERSION = '0.3.2';
55
+ public static readonly SDK_VERSION = '0.3.3';
56
56
 
57
57
  private apiKey: string;
58
58
  public readonly baseUrl: string;
@@ -226,7 +226,11 @@ export class Agent {
226
226
  const color = level === 'ERROR' ? '\x1b[31m' : level === 'WARN' ? '\x1b[33m' : '\x1b[32m';
227
227
  console.log(`${color}[${level}]\x1b[0m ${message}`);
228
228
  }
229
- } catch(e) {}
229
+ } catch(e: any) {
230
+ if (this.debug) {
231
+ console.error(`[\x1b[31mSDK ERROR\x1b[0m] Failed to stream log to dashboard: ${e.message}`);
232
+ }
233
+ }
230
234
  }
231
235
 
232
236
  private logInternal(msg: string, level: any = 'INFO') {