superuser.app 0.0.1 → 0.0.2

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Superuser Package Manager
2
2
  ## Extend AI agents with tools, instantly
3
3
 
4
- `sutr` is the official CLI for publishing [Superuser](https://superuser.app) packages.
4
+ `supr` is the official CLI for publishing [Superuser](https://superuser.app) packages.
5
5
  You can use this utility to publish new packages to the Superuser toolkit registry,
6
6
  available at [superuser.app/packages](https://superuser.app/packages).
7
7
 
@@ -52,16 +52,16 @@ and publish custom packages to extend your bots.
52
52
  $ npm i superuser.app -g
53
53
  $ mkdir new-project
54
54
  $ cd new-project
55
- $ sutr init # initialize project in this directory
56
- $ sutr login # log in to Superuser toolkit registry with your Superuser account
57
- $ sutr serve # run your tool package on a local server to test
58
- $ sutr run / # test a single endpoint (like curl)
59
- $ sutr publish # publish to development environment
60
- $ sutr publish --env staging # publish to staging environment
61
- $ sutr publish --env production # publish to production environment
55
+ $ supr init # initialize project in this directory
56
+ $ supr login # log in to Superuser toolkit registry with your Superuser account
57
+ $ supr serve # run your tool package on a local server to test
58
+ $ supr run / # test a single endpoint (like curl)
59
+ $ supr publish # publish to development environment
60
+ $ supr publish --env staging # publish to staging environment
61
+ $ supr publish --env production # publish to production environment
62
62
  ```
63
63
 
64
- You can run `sutr help` at any time to see available commands.
64
+ You can run `supr help` at any time to see available commands.
65
65
 
66
66
  # Table of contents
67
67
 
@@ -121,24 +121,24 @@ working with your own editor, you can use this CLI.
121
121
  To initialize a new Superuser toolkit:
122
122
 
123
123
  ```shell
124
- $ npm i sutr -g
124
+ $ npm i supr -g
125
125
  $ mkdir new-project
126
126
  $ cd new-project
127
- $ sutr init
127
+ $ supr init
128
128
  ```
129
129
 
130
- You'll be walked through the process. The `sutr` CLI will automatically check for
130
+ You'll be walked through the process. The `supr` CLI will automatically check for
131
131
  updates to core packages, so make sure you update when available. To play around with your
132
132
  Superuser toolkit locally;
133
133
 
134
134
  ```shell
135
- $ sutr serve
135
+ $ supr serve
136
136
  ```
137
137
 
138
138
  Will start an HTTP server. To execute a standalone endpoint / tool:
139
139
 
140
140
  ```shell
141
- $ sutr run /
141
+ $ supr run /
142
142
  ```
143
143
 
144
144
  ### Defining tools aka endpoints
@@ -197,14 +197,14 @@ they will be billed from their balance.
197
197
  To deploy a public project to a `development` environment, you can use:
198
198
 
199
199
  ```shell
200
- $ sutr publish
200
+ $ supr publish
201
201
  ```
202
202
 
203
203
  You can also publish to `staging` and `production` using:
204
204
 
205
205
  ```shell
206
- $ sutr publish --env staging
207
- $ sutr publish --env production
206
+ $ supr publish --env staging
207
+ $ supr publish --env production
208
208
  ```
209
209
 
210
210
  ### Private packages
@@ -233,15 +233,15 @@ There are a few additional utilities you may find useful with this package;
233
233
 
234
234
  ```shell
235
235
  # generates functions/my-endpoint/example.js
236
- $ sutr g:endpoint my-endpoint/example
236
+ $ supr g:endpoint my-endpoint/example
237
237
  ```
238
238
 
239
239
  ## Generate tests
240
240
 
241
241
  ```shell
242
242
  # Generate blank tests or ones for an endpoint
243
- $ sutr g:test my_test # OR ...
244
- $ sutr g:test --endpoint my-endpoint/example
243
+ $ supr g:test my_test # OR ...
244
+ $ supr g:test --endpoint my-endpoint/example
245
245
  ```
246
246
 
247
247
  ## Run tests
@@ -249,7 +249,7 @@ $ sutr g:test --endpoint my-endpoint/example
249
249
  You can write tests for your tools to verify they work. Simply run;
250
250
 
251
251
  ```shell
252
- $ sutr test
252
+ $ supr test
253
253
  ```
254
254
 
255
255
  And voila!
@@ -280,17 +280,17 @@ There's a lot to build! [Superuser](https://superuser.app) is still in early bet
280
280
  - Knowledge bases
281
281
  - Much more!
282
282
 
283
- Submit requests via Discord at [discord.gg/instant](https://discord.gg/instant)!
283
+ Submit requests via Discord at [discord.gg/superuser](https://discord.gg/superuser)!
284
284
 
285
285
  # Contact
286
286
 
287
- The best place for help and support is Discord at [discord.gg/instant](https://discord.gg/instant),
287
+ The best place for help and support is Discord at [discord.gg/superuser](https://discord.gg/superuser),
288
288
  but feel free to bookmark all of these links.
289
289
 
290
290
  | Destination | Link |
291
291
  | ----------- | ---- |
292
292
  | Superuser | [superuser.app](https://superuser.app) |
293
- | GitHub | [github.com/instantbots](https://github.com/instantbots) |
294
- | Discord | [discord.gg/instant](https://discord.gg/instant) |
295
- | X / instantbots | [x.com/instantbots](https://x.com/instantbots) |
293
+ | GitHub | [github.com/superuserapp](https://github.com/superuserapp) |
294
+ | Discord | [discord.gg/superuser](https://discord.gg/superuser) |
295
+ | X / @super_user_app | [x.com/super_user_app](https://x.com/super_user_app) |
296
296
  | X / Keith Horwood | [x.com/keithwhor](https://x.com/keithwhor) |
@@ -130,9 +130,9 @@ class UpCommand extends Command {
130
130
  console.log();
131
131
 
132
132
  !fs.existsSync('/tmp') && fs.mkdirSync('/tmp');
133
- !fs.existsSync('/tmp/sutr') && fs.mkdirSync('/tmp/sutr', 0o777);
133
+ !fs.existsSync('/tmp/supr') && fs.mkdirSync('/tmp/supr', 0o777);
134
134
  const tmpName = name.replace(/\//g, '.');
135
- const tmpPath = `/tmp/sutr/${tmpName}.${new Date().valueOf()}.tar.gz`;
135
+ const tmpPath = `/tmp/supr/${tmpName}.${new Date().valueOf()}.tar.gz`;
136
136
 
137
137
  const t0 = new Date().valueOf();
138
138
 
@@ -140,9 +140,9 @@ class UpCommand extends Command {
140
140
  const pack = tar.pack();
141
141
 
142
142
  let ignore = DEFAULT_IGNORE.slice();
143
- if (fs.existsSync(path.join(process.cwd(), '.sutrignore'))) {
143
+ if (fs.existsSync(path.join(process.cwd(), '.suprignore'))) {
144
144
  ignore = ignore.concat(
145
- fs.readFileSync(path.join(process.cwd(), '.sutrignore')).toString()
145
+ fs.readFileSync(path.join(process.cwd(), '.suprignore')).toString()
146
146
  .split('\n')
147
147
  .map(line => line.trim())
148
148
  .filter(line => !!line && !line.trim().startsWith('#'))
@@ -63,7 +63,7 @@ module.exports = async (print = false) => {
63
63
  drawBox.center(
64
64
  `yellow`,
65
65
  ``,
66
- `Updates are available for ${colors.bold('sutr')}:`,
66
+ `Updates are available for ${colors.bold('supr')}:`,
67
67
  ``,
68
68
  ...updatePackages.map(pkg => {
69
69
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superuser.app",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Superuser toolkit registry: command line interface for building toolkits for your agents",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -12,7 +12,7 @@
12
12
  "test": "echo \"Error: no test specified\" && exit 1"
13
13
  },
14
14
  "bin": {
15
- "sutr": "index.js"
15
+ "supr": "index.js"
16
16
  },
17
17
  "author": "Keith Horwood",
18
18
  "license": "MIT",