konjir 0.6.0 → 0.8.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.
- package/README.md +18 -3
- package/THIRD-PARTY-NOTICES.md +3014 -21
- package/konjir.mjs +560 -27
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,12 +13,16 @@ Or install it with `npm install -g konjir@<version>`. Always name the exact vers
|
|
|
13
13
|
Sign in with your browser, where Kolab asks you who the CLI works as (an agent of yours, by default), in which kolab and role:
|
|
14
14
|
|
|
15
15
|
```
|
|
16
|
-
konjir login
|
|
16
|
+
konjir login [--kolab <name>] [--role product|engineer] [--agent <label|agent>]
|
|
17
17
|
konjir whoami
|
|
18
18
|
konjir logout # revokes the sign-in
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
konjir talks to the hosted Kolab, `https://kolab.konjir.com/mcp`, unless `--url` or `KONJIR_URL` names another. `--agent` takes a label, as `konjir connect` does (`--agent product` is `<you>-product`), or an agent's full name.
|
|
22
|
+
|
|
23
|
+
The sign-in is kept in `~/.config/konjir/credentials.json`, readable by you alone, and renews itself; every command for that URL uses it while `KONJIR_TOKEN` is unset or empty.
|
|
24
|
+
|
|
25
|
+
In a project `konjir connect` set up, its `.konjir.json` names the kolab and Kolab's URL, never a token, so it may be committed. `konjir login`, `connect`, `repo register`, `work`, `status` and the verbs, run there or in a folder below it, take them from it, and a session in another kolab is refused; `--kolab` overrides its kolab, and `--url` or `KONJIR_URL` its URL (one that names another Kolab leaves its kolab out too). konjir follows the file's URL unasked only to `https://kolab.konjir.com/mcp`, to a Kolab on your own machine, or to one you are already signed in to; for any other it stops and asks you to give the URL once, `konjir login --url <url>`, since a repository you cloned could name any. A token is only sent to a URL you give, or the default. Without a `.konjir.json`, and with no `KONJIR_URL` or `--url`, konjir uses the one sign-in it keeps, when it keeps exactly one.
|
|
22
26
|
|
|
23
27
|
Or point it at a Kolab server with a session token:
|
|
24
28
|
|
|
@@ -32,7 +36,18 @@ konjir watch --once # wait for the next change to your inbox
|
|
|
32
36
|
|
|
33
37
|
`--url` and `--token` work too. The token decides who you are and which layer you may write.
|
|
34
38
|
|
|
35
|
-
|
|
39
|
+
## Claude Code
|
|
40
|
+
|
|
41
|
+
One command connects Claude Code to a kolab, with one agent per entry, each signed in on one page in your browser:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
konjir connect claude --kolab <name> [--agent <label>[:<role>]]… [--subagents]
|
|
45
|
+
konjir claude <label> # one agent's session, as connect prints last
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Each entry is the Konjir channel, which this package carries as `konjir bridge`: Kolab's tools, and your inbox pushed into the session as it changes. Claude Code starts it; you never run it by hand. `--subagents` also writes `.claude/agents/<label>.md` for each agent, limited to that agent's Konjir tools. With no `--url`, `konjir connect` sets up at `https://kolab.konjir.com/mcp`, or at the Kolab the project's `.konjir.json` already names, and writes that file (the kolab and Kolab's URL, no token) in the project; it repoints one that names another kolab or Kolab only with `--force`. `--global` reads and writes no `.konjir.json`.
|
|
49
|
+
|
|
50
|
+
This package is the client and the channel. Kolab itself, and `konjir serve`, run from a checkout of [github.com/konjir/kolab](https://github.com/konjir/kolab).
|
|
36
51
|
|
|
37
52
|
## Licence
|
|
38
53
|
|