@7ots/cli 0.1.0 → 0.1.1

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/cli/7ots.mjs CHANGED
@@ -374,6 +374,9 @@ async function main() {
374
374
  case 'prompt':
375
375
  case 'prompts':
376
376
  return console.log(promptText(args.pos[0] || 'all'));
377
+ case 'server':
378
+ case 'serve':
379
+ return import('../server/server.mjs'); // the 7ots proxy (reads .env / env vars)
377
380
  case 'login':
378
381
  return cmdLogin(args);
379
382
  case 'seed':
package/cli/lib/i18n.mjs CHANGED
@@ -18,6 +18,7 @@ const M = {
18
18
  7ots meet --new | "<invite or call URL>" join apuchat meet with this identity
19
19
  7ots prompt [identity|install|pet|meet|all] prompts for coding agents
20
20
  7ots login orquesta connect a getorquesta.com account
21
+ 7ots server run the 7ots proxy (/api/agent) next to your site
21
22
 
22
23
  Identities are reproducible: the same seed gives the same ot everywhere (web, CLI, pet, meet).
23
24
  Docs: https://7ots.com/llms.txt`,
@@ -28,8 +29,8 @@ Docs: https://7ots.com/llms.txt`,
28
29
  'install.html': 'Added the 7ots widget to {file}.',
29
30
  'install.htmlUpdated': 'Updated the 7ots widget in {file}.',
30
31
  'install.noHtml': 'No HTML file found. Paste this before </body>:',
31
- 'install.endpointLocal': 'The widget talks to a 7ots proxy at /api/agent. Run one next to your site:\n IDENTITY_FILE={file} npx -p 7ots 7ots-server\n(or host it on 7ots.com: {app})',
32
- 'install.self': 'Identity ready for your own server:\n IDENTITY_FILE={file} npx -p 7ots 7ots-server',
32
+ 'install.endpointLocal': 'The widget talks to a 7ots proxy at /api/agent. Run one next to your site:\n IDENTITY_FILE={file} npx -y @7ots/cli server\n(or host it on 7ots.com: {app})',
33
+ 'install.self': 'Identity ready for your own server:\n IDENTITY_FILE={file} npx -y @7ots/cli server',
33
34
  'install.platform': 'Host it on 7ots.com with this exact identity: {app}',
34
35
  'pet.food': 'Food',
35
36
  'pet.energy': 'Energy',
@@ -167,6 +168,7 @@ Docs: https://7ots.com/llms.txt`,
167
168
  7ots meet --new | "<invitación o enlace>" entra a apuchat meet con esta identidad
168
169
  7ots prompt [identity|install|pet|meet|all] prompts para agentes de código
169
170
  7ots login orquesta conecta una cuenta de getorquesta.com
171
+ 7ots server levanta el proxy 7ots (/api/agent) junto a tu web
170
172
 
171
173
  Las identidades son reproducibles: la misma semilla da el mismo ot en todas partes (web, CLI, mascota, meet).
172
174
  Docs: https://7ots.com/llms.txt`,
@@ -177,8 +179,8 @@ Docs: https://7ots.com/llms.txt`,
177
179
  'install.html': 'Widget de 7ots añadido a {file}.',
178
180
  'install.htmlUpdated': 'Widget de 7ots actualizado en {file}.',
179
181
  'install.noHtml': 'No encontré un HTML. Pega esto antes de </body>:',
180
- 'install.endpointLocal': 'El widget habla con un proxy 7ots en /api/agent. Levanta uno junto a tu web:\n IDENTITY_FILE={file} npx -p 7ots 7ots-server\n(o alójalo en 7ots.com: {app})',
181
- 'install.self': 'Identidad lista para tu servidor:\n IDENTITY_FILE={file} npx -p 7ots 7ots-server',
182
+ 'install.endpointLocal': 'El widget habla con un proxy 7ots en /api/agent. Levanta uno junto a tu web:\n IDENTITY_FILE={file} npx -y @7ots/cli server\n(o alójalo en 7ots.com: {app})',
183
+ 'install.self': 'Identidad lista para tu servidor:\n IDENTITY_FILE={file} npx -y @7ots/cli server',
182
184
  'install.platform': 'Alójalo en 7ots.com con esta misma identidad: {app}',
183
185
  'pet.food': 'Comida',
184
186
  'pet.energy': 'Energía',
@@ -316,6 +318,7 @@ Docs: https://7ots.com/llms.txt`,
316
318
  7ots meet --new | "<convite ou link>" entra no apuchat meet com esta identidade
317
319
  7ots prompt [identity|install|pet|meet|all] prompts para agentes de código
318
320
  7ots login orquesta conecta uma conta do getorquesta.com
321
+ 7ots server sobe o proxy 7ots (/api/agent) junto do seu site
319
322
 
320
323
  As identidades são reproduzíveis: a mesma semente dá o mesmo ot em todo lugar (web, CLI, bichinho, meet).
321
324
  Docs: https://7ots.com/llms.txt`,
@@ -326,8 +329,8 @@ Docs: https://7ots.com/llms.txt`,
326
329
  'install.html': 'Widget do 7ots adicionado em {file}.',
327
330
  'install.htmlUpdated': 'Widget do 7ots atualizado em {file}.',
328
331
  'install.noHtml': 'Não achei um HTML. Cole isto antes de </body>:',
329
- 'install.endpointLocal': 'O widget fala com um proxy 7ots em /api/agent. Suba um junto do seu site:\n IDENTITY_FILE={file} npx -p 7ots 7ots-server\n(ou hospede no 7ots.com: {app})',
330
- 'install.self': 'Identidade pronta para o seu servidor:\n IDENTITY_FILE={file} npx -p 7ots 7ots-server',
332
+ 'install.endpointLocal': 'O widget fala com um proxy 7ots em /api/agent. Suba um junto do seu site:\n IDENTITY_FILE={file} npx -y @7ots/cli server\n(ou hospede no 7ots.com: {app})',
333
+ 'install.self': 'Identidade pronta para o seu servidor:\n IDENTITY_FILE={file} npx -y @7ots/cli server',
331
334
  'install.platform': 'Hospede no 7ots.com com esta mesma identidade: {app}',
332
335
  'pet.food': 'Comida',
333
336
  'pet.energy': 'Energia',
@@ -19,7 +19,7 @@ When the user says "install it here":
19
19
  2. Run \`npx -y @7ots/cli install\`. It detects the project:
20
20
  - plain HTML site → inserts the 7ots widget before </body> (between <!-- 7ots --> markers, idempotent);
21
21
  - other projects → prints the snippet: put it in the root layout/template, before </body>;
22
- - \`--target self\` → prepares the identity for the user's own 7ots server (IDENTITY_FILE=… npx -p 7ots 7ots-server);
22
+ - \`--target self\` → prepares the identity for the user's own 7ots server (IDENTITY_FILE=… npx -y @7ots/cli server);
23
23
  - it also prints a 7ots.com link that hosts this same identity (no server needed).
24
24
  3. The widget needs an AI endpoint: a 7ots proxy (/api/agent) or the ot hosted on 7ots.com. Tell the user which.`,
25
25
 
package/llms.txt CHANGED
@@ -26,7 +26,7 @@ When the user says "install it here":
26
26
  2. Run `npx -y @7ots/cli install`. It detects the project:
27
27
  - plain HTML site → inserts the 7ots widget before </body> (between <!-- 7ots --> markers, idempotent);
28
28
  - other projects → prints the snippet: put it in the root layout/template, before </body>;
29
- - `--target self` → prepares the identity for the user's own 7ots server (IDENTITY_FILE=… npx -p 7ots 7ots-server);
29
+ - `--target self` → prepares the identity for the user's own 7ots server (IDENTITY_FILE=… npx -y @7ots/cli server);
30
30
  - it also prints a 7ots.com link that hosts this same identity (no server needed).
31
31
  3. The widget needs an AI endpoint: a 7ots proxy (/api/agent) or the ot hosted on 7ots.com. Tell the user which.
32
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7ots/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "7ots.com — open-source embeddable web agent: it sees the page, speaks and acts for your visitor. Web Component + self-hosted Node proxy, Claude/OpenAI, 2D/3D avatar with voice, i18n, backoffice — plus a CLI with reproducible identities, a desktop pet and apuchat meet.",
5
5
  "homepage": "https://7ots.com",
6
6
  "repository": {
@@ -33,7 +33,6 @@
33
33
  "llms.txt"
34
34
  ],
35
35
  "bin": {
36
- "7ots-server": "./server/server.mjs",
37
36
  "7ots": "./cli/7ots.mjs"
38
37
  },
39
38
  "scripts": {
@@ -23,7 +23,7 @@ When the user says "install it here":
23
23
  2. Run `npx -y @7ots/cli install`. It detects the project:
24
24
  - plain HTML site → inserts the 7ots widget before </body> (between <!-- 7ots --> markers, idempotent);
25
25
  - other projects → prints the snippet: put it in the root layout/template, before </body>;
26
- - `--target self` → prepares the identity for the user's own 7ots server (IDENTITY_FILE=… npx -p 7ots 7ots-server);
26
+ - `--target self` → prepares the identity for the user's own 7ots server (IDENTITY_FILE=… npx -y @7ots/cli server);
27
27
  - it also prints a 7ots.com link that hosts this same identity (no server needed).
28
28
  3. The widget needs an AI endpoint: a 7ots proxy (/api/agent) or the ot hosted on 7ots.com. Tell the user which.
29
29