hobots 1.7.0 → 1.7.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 +4 -4
- package/dist/index.cjs +48 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +48 -9
- package/dist/index.js.map +1 -1
- package/docs/README.md +2 -2
- package/docs/api-reference.md +2 -2
- package/docs/concepts.md +2 -2
- package/docs/getting-started.md +2 -2
- package/docs/protocol.md +2 -2
- package/package.json +1 -1
package/docs/getting-started.md
CHANGED
|
@@ -23,13 +23,13 @@ Os termos que aparecem nesta página, em uma frase cada. Explicação completa d
|
|
|
23
23
|
|
|
24
24
|
## O Client Secret
|
|
25
25
|
|
|
26
|
-
Cada
|
|
26
|
+
Cada agente tem **um único Client Secret** — a mesma credencial autentica a telemetria **e** as tasks:
|
|
27
27
|
|
|
28
28
|
```
|
|
29
29
|
hb_<64 hex>
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
A credencial é **secreta** e viaja sempre no header `Authorization: Bearer` — nunca na URL. Copie o Client Secret no app, em **Configurações →
|
|
32
|
+
A credencial é **secreta** e viaja sempre no header `Authorization: Bearer` — nunca na URL. Copie o Client Secret no app, em **Configurações → Agentes** — os snippets de integração já vêm prontos.
|
|
33
33
|
|
|
34
34
|
O SDK fala com a API oficial `https://api2.hobots.app` automaticamente — não há configuração de host no `init()`. Em desenvolvimento, aponte para outro host com a env `HOBOTS_API_URL`:
|
|
35
35
|
|
package/docs/protocol.md
CHANGED
|
@@ -6,7 +6,7 @@ Os arquivos `src/protocol.ts` e `src/tasks/protocol.ts` são a **fonte de verdad
|
|
|
6
6
|
|
|
7
7
|
## O Client Secret e os endpoints derivados
|
|
8
8
|
|
|
9
|
-
Cada
|
|
9
|
+
Cada agente tem **um único Client Secret**, o mesmo para as duas capabilities:
|
|
10
10
|
|
|
11
11
|
```
|
|
12
12
|
hb_<64 hex>
|
|
@@ -44,7 +44,7 @@ Um `transaction` pode carregar `run_id`: é assim que a [transaction de uma run]
|
|
|
44
44
|
|
|
45
45
|
## Tasks — polling e reporte
|
|
46
46
|
|
|
47
|
-
Dois endpoints sob `<baseUrl>/v1/tasks`, ambos com `Authorization: Bearer <clientSecret>` (a credencial única do
|
|
47
|
+
Dois endpoints sob `<baseUrl>/v1/tasks`, ambos com `Authorization: Bearer <clientSecret>` (a credencial única do agente):
|
|
48
48
|
|
|
49
49
|
### `POST /v1/tasks/poll`
|
|
50
50
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hobots",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "SDK JavaScript da Hobots — telemetria (erros, transactions, check-ins de cron e heartbeats) e execução remota de tarefas sob demanda (tasks) para RPAs e integrações. Um único import e um único init().",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|