@surph_ai/sdk 0.0.8 → 0.0.10

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 CHANGED
@@ -125,6 +125,15 @@ program.command('toolserver')
125
125
  .action(async (cmd, options) => {
126
126
  try {
127
127
  shell.exec('nodemon --quiet ./node_modules/@surph_ai/sdk/toolserver/app')
128
+ } catch (error) {
129
+ utils.printError(error)
130
+ }
131
+ })
132
+
133
+ program.command('chatserver')
134
+ .description('run chat server')
135
+ .action(async (cmd, options) => {
136
+ try {
128
137
  shell.exec('nodemon --quiet ./node_modules/@surph_ai/sdk/toolserver/chat')
129
138
  } catch (error) {
130
139
  utils.printError(error)
@@ -216,17 +225,6 @@ program.command('connect')
216
225
  }
217
226
  })
218
227
 
219
- program.command('build')
220
- .description('compile Surph app')
221
- .action(name => {
222
- shell.exec('gulp build --gulpfile node_modules/@turbo360/turbo-sdk/src/gulpfile.js --silent')
223
-
224
- console.log('BUILD COMPLETE')
225
- // const gulpfilePath = path.join(__dirname, 'scaffold/app/gulpfile.js')
226
- // shell.exec(`gulp build --gulpfile ${gulpfilePath}`)
227
- })
228
-
229
-
230
228
  program.command('deploy')
231
229
  .option('-t, --type <default_or_static>', 'deployment type | static or default', 'default') // https://www.npmjs.com/package/commander#default-option-value
232
230
  .description('Deploy to Surph')
@@ -279,7 +277,3 @@ program.command('deploy')
279
277
  })
280
278
 
281
279
  program.parse(process.argv)
282
-
283
- module.exports = {
284
-
285
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surph_ai/sdk",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -20,10 +20,16 @@
20
20
  "adm-zip": "^0.5.10",
21
21
  "axios": "^1.12.2",
22
22
  "bestzip": "^2.2.1",
23
+ "cheerio": "^1.2.0",
23
24
  "colors": "^1.4.0",
25
+ "cookie": "^0.5.0",
24
26
  "commander": "^14.0.1",
27
+ "cors": "^2.8.6",
25
28
  "dotenv": "^16.0.3",
29
+ "express": "^4.18.1",
30
+ "impit": "^0.14.0",
26
31
  "prompt": "^1.3.0",
27
- "shelljs": "^0.8.5"
32
+ "shelljs": "^0.8.5",
33
+ "mustache": "^4.2.0"
28
34
  }
29
35
  }
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "dev": "surph toolserver",
6
+ "dev": "surph toolserver & surph chatserver",
7
7
  "test": "",
8
8
  "build": ""
9
9
  },