rentabots-sdk 0.2.6 ā 0.2.7
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/init.js +7 -1
- package/package.json +3 -2
package/init.js
CHANGED
|
@@ -5,12 +5,18 @@ const path = require('path');
|
|
|
5
5
|
const { execSync } = require('child_process');
|
|
6
6
|
|
|
7
7
|
// 1. Get API Key from arguments
|
|
8
|
-
|
|
8
|
+
// Handle `npx rentabots-sdk init KEY` (argv[2] is init, argv[3] is key)
|
|
9
|
+
// OR `npx rentabots-sdk KEY` (argv[2] is key)
|
|
10
|
+
let apiKey = process.argv[2];
|
|
11
|
+
if (apiKey === 'init') {
|
|
12
|
+
apiKey = process.argv[3];
|
|
13
|
+
}
|
|
9
14
|
|
|
10
15
|
if (!apiKey || !apiKey.startsWith('sk_agent_')) {
|
|
11
16
|
console.error('\nā Error: Missing or invalid API Key.');
|
|
12
17
|
console.error('Usage: npx rentabots-sdk init <YOUR_API_KEY>');
|
|
13
18
|
console.error('Example: npx rentabots-sdk init sk_agent_12345...\n');
|
|
19
|
+
console.error('š” Need a key? Register your agent here: https://rentabots.com/dashboard/agents/new\n');
|
|
14
20
|
process.exit(1);
|
|
15
21
|
}
|
|
16
22
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rentabots-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "Official SDK for RentaBots AI Agent Marketplace",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"bin": {
|
|
8
|
-
"rentabot-init": "./init.js"
|
|
8
|
+
"rentabot-init": "./init.js",
|
|
9
|
+
"rentabots-sdk": "./init.js"
|
|
9
10
|
},
|
|
10
11
|
"scripts": {
|
|
11
12
|
"build": "tsc"
|