@ainecto/cli 0.14.0-next.13 → 0.14.0-next.14
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 +13 -7
- package/dist/bin/ainecto.js +826 -403
- package/dist/bin/ainecto.js.map +1 -1
- package/dist/bin/mcp.js +4 -3
- package/dist/bin/mcp.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Published as `ainecto`, `@ainecto/mcp` and `@ainecto/cli` — the same code. Command: `ainecto`.
|
|
4
4
|
|
|
5
5
|
**Once per machine:** `npx -y ainecto@latest setup` — signs you in through the browser (once), checks the
|
|
6
|
-
connection, and connects Claude Code, Cursor, and
|
|
6
|
+
connection, and connects Claude Code, Cursor, Codex, and Antigravity to the AiNecto server address
|
|
7
7
|
(`https://ainecto.com/mcp`). Each agent then signs in to AiNecto by itself the first time it connects.
|
|
8
8
|
|
|
9
9
|
Every AI session sees the same AiNecto tools. What a tool may change is decided by your AiNecto
|
|
@@ -18,7 +18,8 @@ to 5 minutes for the user). Then run `npx -y ainecto@latest doctor` and do what
|
|
|
18
18
|
- `setup` registers the server address, so each agent signs in on its own the first time: Claude Code —
|
|
19
19
|
run `/mcp` in a session and sign in to `ainecto`; Cursor — sign in when `ainecto` asks in its MCP
|
|
20
20
|
settings; Codex — signs in while `setup` connects it (a browser tab opens and the sign-in link is
|
|
21
|
-
printed to stderr; if it did not finish, run `codex mcp login ainecto`)
|
|
21
|
+
printed to stderr; if it did not finish, run `codex mcp login ainecto`); Antigravity — open
|
|
22
|
+
Customizations › Installed › MCP Servers and choose Authenticate for `ainecto`.
|
|
22
23
|
- To add AiNecto's working rules to a repository, run `npx -y ainecto@latest init` from its root. It
|
|
23
24
|
does not ask for a role or a project.
|
|
24
25
|
- **A server added during a session is not available in that session.** Keep working through the CLI:
|
|
@@ -33,7 +34,7 @@ to 5 minutes for the user). Then run `npx -y ainecto@latest doctor` and do what
|
|
|
33
34
|
## Set up this machine
|
|
34
35
|
|
|
35
36
|
```bash
|
|
36
|
-
npx -y ainecto@latest setup # sign in, check, connect Claude Code · Cursor · Codex
|
|
37
|
+
npx -y ainecto@latest setup # sign in, check, connect Claude Code · Cursor · Codex · Antigravity
|
|
37
38
|
npx -y ainecto@latest setup --dry-run # show what it would do — no sign-in, no changes
|
|
38
39
|
npx -y ainecto@latest setup --local # connect through the local relay instead (see below)
|
|
39
40
|
npx -y ainecto@latest setup --undo # remove the connections setup made (sign-in stays)
|
|
@@ -53,6 +54,10 @@ exits 1:
|
|
|
53
54
|
(a browser tab opens; `setup` passes Codex's output, with the sign-in link, through to stderr). If that
|
|
54
55
|
did not finish within 90 seconds, Codex shows as `failed` but stays connected — run
|
|
55
56
|
`codex mcp login ainecto` (re-running `setup` says the same).
|
|
57
|
+
- Antigravity — merges `"ainecto": { "serverUrl": "https://ainecto.com/mcp" }` into
|
|
58
|
+
`~/.gemini/config/mcp_config.json` (shared by the Antigravity app, IDE and `agy` CLI), keeping your other servers.
|
|
59
|
+
Sign in from Customizations › Installed › MCP Servers › Authenticate. Antigravity asks before each AiNecto tool
|
|
60
|
+
call unless you allow it.
|
|
56
61
|
|
|
57
62
|
With `--env dev` (or `--endpoint`) the address is that environment's. The server address has no version
|
|
58
63
|
to pin: a server update reaches every agent at once. Entries an older `setup` wrote
|
|
@@ -71,7 +76,7 @@ it to pitch explanations — it does not change permissions.
|
|
|
71
76
|
|
|
72
77
|
```bash
|
|
73
78
|
npx -y ainecto@latest init # .ainecto/HARNESS.md, an AGENTS.md block (and CLAUDE.md if present), .ainecto/config.json
|
|
74
|
-
npx -y ainecto@latest init --mcp # also .mcp.json (Claude Code)
|
|
79
|
+
npx -y ainecto@latest init --mcp # also .mcp.json (Claude Code), .cursor/mcp.json (Cursor) and .agents/mcp_config.json (Antigravity), with the server address
|
|
75
80
|
npx -y ainecto@latest init --mcp --local # the same files with the local relay instead
|
|
76
81
|
npx -y ainecto@latest init --dry-run # the same plan, nothing written
|
|
77
82
|
npx -y ainecto@latest init --undo # remove what init wrote
|
|
@@ -79,8 +84,8 @@ npx -y ainecto@latest init --agent tester # name the agent working in this fold
|
|
|
79
84
|
```
|
|
80
85
|
|
|
81
86
|
- `--agent <name>` names the agent that works in this folder. It writes the name to
|
|
82
|
-
`.ainecto/agent.local` (keep it out of git) and puts it in `.mcp.json`, `.cursor/mcp.json
|
|
83
|
-
`.codex/config.toml` — the server address entries get the header `X-AiNecto-Agent-Name`, the local relay
|
|
87
|
+
`.ainecto/agent.local` (keep it out of git) and puts it in `.mcp.json`, `.cursor/mcp.json`,
|
|
88
|
+
`.agents/mcp_config.json` and `.codex/config.toml` — the server address entries get the header `X-AiNecto-Agent-Name`, the local relay
|
|
84
89
|
gets `--agent <name>`. Re-running `init` keeps the name. `ainecto tools call …` run in this folder sends
|
|
85
90
|
the same name. The server checks the name; a name it refuses stops `init` before any file is written.
|
|
86
91
|
`.codex/config.toml` is written only when it does not exist yet (or init wrote it); Codex reads it only in
|
|
@@ -93,7 +98,8 @@ npx -y ainecto@latest init --agent tester # name the agent working in this fold
|
|
|
93
98
|
- It stops when run from a sub-folder of a git repository, and tells you the root.
|
|
94
99
|
- `--mcp` writes the server address, like `setup`: `.mcp.json` gets
|
|
95
100
|
`"ainecto": { "type": "http", "url": "https://ainecto.com/mcp" }` (Claude Code needs the `type`) and
|
|
96
|
-
`.cursor/mcp.json` gets `"ainecto": { "url": "https://ainecto.com/mcp" }
|
|
101
|
+
`.cursor/mcp.json` gets `"ainecto": { "url": "https://ainecto.com/mcp" }` and `.agents/mcp_config.json` gets
|
|
102
|
+
`"ainecto": { "serverUrl": "https://ainecto.com/mcp" }` (merged — your other servers stay). Each agent signs in by
|
|
97
103
|
itself the first time. `--local` writes the pinned local relay instead (see Connector Mode).
|
|
98
104
|
- **Repositories set up earlier** (`.mcp.json` with `npx -y @ainecto/mcp…`, with or without `--role`):
|
|
99
105
|
re-run `npx -y ainecto@latest init`. It rewrites the existing `ainecto` entry to the server address
|