@surph_ai/sdk 0.0.20 → 0.0.21
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.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -303,7 +303,7 @@ program.command('publish')
|
|
|
303
303
|
|
|
304
304
|
// tool not registered yet, create:
|
|
305
305
|
if (payload.length === 0) {
|
|
306
|
-
const resp = await fetch(
|
|
306
|
+
const resp = await fetch(`${SURPH_REST_URL}/rest/tool`, {
|
|
307
307
|
method: 'POST',
|
|
308
308
|
body: JSON.stringify({
|
|
309
309
|
...toolJson,
|
|
@@ -321,7 +321,7 @@ program.command('publish')
|
|
|
321
321
|
})
|
|
322
322
|
|
|
323
323
|
const { payload } = await resp.json()
|
|
324
|
-
console.log('\nSurph tool registered
|
|
324
|
+
console.log('\nSurph tool registered. ')
|
|
325
325
|
return
|
|
326
326
|
}
|
|
327
327
|
|