adaptiqai 0.1.1 → 0.2.0

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.
Files changed (3) hide show
  1. package/README.md +45 -18
  2. package/lib/index.js +988 -377
  3. package/package.json +2 -3
package/README.md CHANGED
@@ -4,32 +4,53 @@ One command that connects the AI app you use to [AdaptiqAI](https://adaptiqai.co
4
4
  for a person at a terminal and for an agent running it unattended.
5
5
 
6
6
  ```bash
7
- npx -y adaptiqai connect cline
7
+ npx -y adaptiqai
8
8
  ```
9
9
 
10
- It signs you in through your browser, sets the app up, sends one test request,
11
- and says how to start the app. You open one link, press Connect, and add a card
12
- or funds. Nothing else needs doing by hand, and there is no key to copy.
10
+ It asks which app you want, gets it if it is not on your computer, signs you in
11
+ through your browser, sets the app up, sends one test request, and says how to
12
+ start the app; at a terminal it offers to start it there and then. You open one
13
+ link, press Connect, and add funds. Nothing else needs doing by hand, and there
14
+ is no key to copy.
13
15
 
14
16
  | Command | |
15
17
  |---|---|
18
+ | `npx -y adaptiqai` | Pick the app, then connect it. |
16
19
  | `npx -y adaptiqai connect <app>` | Sign in, set the app up, test it. Safe to run again. |
17
20
  | `npx -y adaptiqai status [app]` | Where each app stands. Uses no model. |
18
21
  | `npx -y adaptiqai disconnect <app>` | Take AdaptiqAI out of the app, and put back what it replaced. |
19
22
 
20
- `npx -y adaptiqai` on its own connects the one app it finds, or asks which.
23
+ Everything goes by what you want, not by what this computer has:
24
+
25
+ - **Every app is offered.** `npx -y adaptiqai` lists them all, the ones on this
26
+ computer marked, and you pick.
27
+ - **An app that is not here is got first, on your yes.** Where it has a Mac app
28
+ this works with (DeepSeek Harness, OpenCode, Hermes), you choose: download the
29
+ app, which opens its maker's page and goes on once it is installed, or run it
30
+ in the terminal. Otherwise its maker's own installer runs in this terminal,
31
+ where it can ask its own questions (on Windows, only those that npm runs).
32
+ - **A newer Node.js, where an app needs one,** is installed on your yes by
33
+ AdaptiqAI's install script, in `~/.adaptiq/node` with no admin password, and
34
+ the command goes on there: DeepSeek Harness in the browser asks for 24.9,
35
+ and OpenClaw's installer for 24.16.
36
+ Without Node.js at all, start with that script:
37
+
38
+ ```bash
39
+ curl -fsSL https://api.adaptiqai.com/v1/install.sh | sh
40
+ ```
41
+
42
+ An agent is asked nothing: it is told the ways, for the person to choose.
21
43
 
22
44
  | App | Word | What it sets up | Start it with |
23
45
  |---|---|---|---|
24
- | Cline | `cline` | A provider of its own, in every Cline app on this computer | the app, or `cline` |
25
46
  | DeepSeek Harness | `deepseek` | AdaptiqAI's plugin, in its app or in the browser | the app, or `npx -y @deepseek-ai/dsh adaptiq` |
26
- | Codex | `codex` | A profile and a model catalog of its own, as Connect to app writes them. Plain `codex` stays as it was | `codex --profile adaptiq` |
27
- | Claude Code | `claude-code` | `adaptiq-claude`. Plain `claude` stays as it was | `adaptiq-claude` |
47
+ | Codex | `codex` | A profile and a model catalog of its own, brought up to the workspace's models once a day, with AdaptiqAI's knowledge tools, as Connect to app writes them. Plain `codex` stays as it was | `codex --profile adaptiq` |
48
+ | Claude Code | `claude-code` | `adaptiq-claude`, with AdaptiqAI's knowledge tools and the workspace's models in `/model`. Plain `claude` stays as it was | `adaptiq-claude` |
28
49
  | OpenCode | `opencode` | OpenCode's own sign-in | `opencode` |
29
50
  | Kilo Code | `kilo` | Kilo's own sign-in, which its extension reads too | `kilo`, or the extension |
30
51
  | Pi | `pi` | AdaptiqAI's package for Pi | `pi --provider adaptiqai --model <id>` |
31
- | Hermes Agent | `hermes` | AdaptiqAI's plugin, and a custom endpoint of its own | `hermes`, or the app |
32
- | OpenClaw | `openclaw` | AdaptiqAI's plugin, and the default model | `openclaw dashboard` |
52
+ | Hermes Agent | `hermes` | AdaptiqAI's plugin, turned on, and a custom endpoint of its own; tool search off, as Connect to app sets it | `hermes`, or the app |
53
+ | OpenClaw | `openclaw` | AdaptiqAI's plugin, with its key in OpenClaw's `.env`, and the default model; tool search off, as Connect to app sets it | the app, or `openclaw dashboard` |
33
54
 
34
55
  ## For agents
35
56
 
@@ -38,7 +59,7 @@ object per line, asks nothing, waits for nobody, and never starts or stops an
38
59
  app. In a terminal of your own, pass `--json --no-wait`.
39
60
 
40
61
  ```bash
41
- npx -y adaptiqai connect cline --json --no-wait
62
+ npx -y adaptiqai connect claude-code --json --no-wait
42
63
  ```
43
64
 
44
65
  Run it, read the last line, and do what it says. The same command goes on from
@@ -47,10 +68,10 @@ wherever the last run ended, so a time limit on your tool cannot lose a sign-in.
47
68
  | Exit | Last event | What to do |
48
69
  |---|---|---|
49
70
  | 3 | `waiting` | Give the person `url` from the `sign_in` event (`say` has the words). Run the command again, with `--wait 90` to wait within your tool's limit. |
50
- | 4 | `insufficient_balance` | Give the person `add_funds_url`. An empty balance is a state, not a failure: run the command again once they have added a card or funds. |
71
+ | 4 | `insufficient_balance` | Give the person `add_funds_url`. An empty balance is a state, not a failure: run the command again once they have added funds. |
51
72
  | 0 | `connected` | Tell the person how to start the app: `start`, and any `notes`. |
52
- | 1 | `error` | `code` and `message` say why. `app_not_installed` also has `install`. |
53
- | 2 | `error` or `choose_app` | Not understood. `choose_app` lists the apps found: say which. |
73
+ | 1 | `error` | `code` and `message` say why. `app_not_installed` also has `install`, and `download` for a Mac app; `node_too_old` has `install`, the command that installs a newer Node.js once the person says yes. |
74
+ | 2 | `error` or `choose_app` | Not understood, or no app named: `choose_app` lists every app in `apps` and those on this computer in `installed`. Ask the person which, and run `connect <app>`. |
54
75
 
55
76
  The person presses Connect and adds funds in their own browser. Nobody else can.
56
77
 
@@ -88,8 +109,14 @@ sign in.
88
109
  on instead: it may be running inside that very app.
89
110
  - **The test request is ephemeral.** It makes no conversation, and costs next
90
111
  to nothing.
91
- - **Compaction** goes off for every model in Cline, Pi, OpenClaw, OpenCode and
92
- Kilo, which have no switch for one provider. `disconnect` puts it back. Codex
112
+ - **Claude Code and Codex get the knowledge tools** from AdaptiqAI's MCP
113
+ server, `@adaptiqai/mcp`, which this installs with npm in
114
+ `~/.config/adaptiq/mcp`, as Connect to app does. It is installed before the
115
+ sign-in, so one that cannot be had spends none, and `adaptiq-claude` or
116
+ Codex's `codex-mcp` brings it up to npm's newest once a day. The folder holds
117
+ no key.
118
+ - **Compaction** goes off for every model in Pi, OpenClaw, OpenCode and Kilo,
119
+ which have no switch for one provider. `disconnect` puts it back. Codex
93
120
  has no switch at all, so it compacts only once the 5M window is full.
94
121
 
95
122
  `disconnect` takes the key out of the app. The connection stays listed in the
@@ -102,8 +129,8 @@ browser, and hands the app the approved code.
102
129
 
103
130
  ## Windows
104
131
 
105
- The command itself, Cline, Codex, Claude Code and Pi are written for Windows,
106
- and paths, shims and the key file have tests, but it has not been run on Windows
132
+ The command itself, Codex, Claude Code and Pi are written for Windows, and
133
+ paths, shims and the key file have tests, but it has not been run on Windows
107
134
  yet. Windows has no `chmod`: a file is as private as your user folder. OpenCode
108
135
  and Kilo sign in through `sh`, which Git for Windows brings.
109
136