@oracle-agent/oracle 0.21.0 → 0.22.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/README.md CHANGED
@@ -5,14 +5,15 @@
5
5
  ```bash
6
6
  npm i -g @oracle-agent/oracle # Node >= 20.19
7
7
  oracle --version
8
- oracle auth login claude # or codex / grok
8
+ oracle setup model # choose OAuth or API-key access
9
9
  oracle # native Oracle chat
10
10
  oracle doctor # verify local posture
11
11
  ```
12
12
 
13
- Prefer an API key instead? `oracle auth api-key openrouter` accepts hidden
14
- interactive input. `oracle auth status` reports providers without printing
15
- credentials. Linux, Windows, and macOS apps are in beta.
13
+ `oracle setup model` offers Anthropic, OpenAI Codex, and Grok OAuth plus secure
14
+ API-key setup for OpenRouter, OpenAI, Anthropic, xAI, DeepSeek, Gemini, Kimi,
15
+ Mistral, and custom OpenAI-compatible providers. `oracle auth status` reports
16
+ providers without printing credentials. Linux, Windows, and macOS apps are in beta.
16
17
 
17
18
  The CLI, source, and desktop beta are public to everyone. Locals Only holders
18
19
  receive a 0% Oracle integrator fee; the NFT does not gate product access.
@@ -202,7 +203,7 @@ known answer. This matters: the canonical QuoterV2 address also has bytecode on
202
203
  Base, but does not price that chain's pairs. A codesize check would have
203
204
  allowlisted the wrong contract.
204
205
 
205
- **73 provider modules** in the read/quote catalog, covering **219 unique
206
+ **72 provider modules** in the read/quote catalog, covering **219 unique
206
207
  protocols/venues** across EVM, Solana, and Bitcoin (115 EVM + cross-chain, 98
207
208
  Solana venues backed by 101 verified Jupiter program IDs, 6 Bitcoin surfaces).
208
209
  One module can cover many protocols: the Jupiter module alone routes 98 Solana
package/SETUP.md CHANGED
@@ -39,13 +39,19 @@ configuration enables strict engine checks, so verify `node --version` yourself.
39
39
 
40
40
  ## 2. Authenticate a model provider
41
41
 
42
+ List every standalone choice with safe status and copyable setup commands:
43
+
44
+ ```bash
45
+ oracle setup model
46
+ ```
47
+
42
48
  ### OAuth
43
49
 
44
50
  ```bash
45
- oracle auth login claude
51
+ oracle setup model claude
46
52
  # or
47
- oracle auth login codex
48
- oracle auth login grok
53
+ oracle setup model codex
54
+ oracle setup model grok
49
55
  ```
50
56
 
51
57
  The command opens the provider's authorization flow and selects its default
@@ -54,8 +60,8 @@ model. Use `--no-browser` when the browser must be opened manually.
54
60
  ### API key
55
61
 
56
62
  ```bash
57
- oracle auth api-key openrouter
58
- # also supported: openai, xai, deepseek, gemini, custom
63
+ oracle setup model openrouter
64
+ # also supported: openai, anthropic, xai, deepseek, gemini, kimi, mistral, custom
59
65
  ```
60
66
 
61
67
  Interactive API-key entry is hidden. Do not put a key directly in the command
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: xurl
3
+ description: Use when reading or posting on X/Twitter via the official xurl CLI through Oracle's bounded xurl tool.
4
+ ---
5
+
6
+ # xurl (Oracle-bounded)
7
+
8
+ Oracle has no shell. Talk to X only through the `xurl` tool.
9
+
10
+ ## Preconditions
11
+ - `ORACLE_XURL_ENABLED=true` in `~/.config/oracle/env`
12
+ - Local `xurl` binary on PATH (or `ORACLE_XURL_BIN`)
13
+ - Operator already ran `xurl auth oauth2` outside the agent; tokens live in `~/.xurl`
14
+ - Never read `~/.xurl` into context. Never pass `--verbose` or inline secrets.
15
+
16
+ ## Read (default)
17
+ ```
18
+ xurl command=whoami
19
+ xurl command=user handle=demi_hl
20
+ xurl command=read id=https://x.com/user/status/123
21
+ xurl command=search query="from:demi_hl" limit=5
22
+ xurl command=timeline limit=10
23
+ xurl command=mentions limit=10
24
+ xurl command=auth args=["status"]
25
+ ```
26
+
27
+ ## Write (requires ORACLE_XURL_ALLOW_WRITE=true)
28
+ ```
29
+ xurl command=post text="gm"
30
+ xurl command=reply id=123 text="agreed"
31
+ xurl command=like id=123
32
+ xurl command=follow handle=someone
33
+ ```
34
+
35
+ Confirm target + wording with the user before any write.
36
+
37
+ ## Failures
38
+ - `CreditsDepleted` / free-tier: reads need Basic; use browser_navigate on x.com as fallback for public pages.
39
+ - Auth errors: tell the user to re-run `xurl auth oauth2 --app <app> <user>` in their own terminal.
40
+ - Never attempt `auth apps add` or oauth from the agent.