clqn-cli 0.0.0-stage → 0.1.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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ryan Li, Andy Zhang, David Yang
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,169 @@
1
- # Temporary Holding Version
1
+ <picture>
2
+ <source media="(prefers-reduced-motion: reduce)" srcset="docs/assets/header.svg">
3
+ <img src="docs/assets/header.gif" width="1032" alt="clqn">
4
+ </picture>
2
5
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
6
+ [clqn.org](https://clqn.org/) · [Download](https://clqn.org/download.html) · [Documentation](https://clqn.org/docs/)
7
+
8
+ <a href="https://github.com/rli8145/clqn/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/rli8145/clqn/ci.yml?branch=main&style=for-the-badge" alt="Build status"></a>
9
+ <img src="https://img.shields.io/badge/node-%3E%3D22-339933?style=for-the-badge&logo=node.js&logoColor=white" alt="Node.js 22 or newer">
10
+ <a href="LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-blue?style=for-the-badge" alt="MIT license"></a>
11
+
12
+ Collaborating on long-horizon development tasks can get complicated quickly. Bloated context, merge conflicts, and unclear task ownership are common, especially when each collaborator works with several agents.
13
+
14
+ Existing solutions introduce a lot of setup overhead. `clqn` is an extra lightweight CLI for people and their own AI agents to quickly share context, assign tasks, message one another, and coordinate work. Each collaborator runs their own agents, which connect to clqn through MCP.
15
+
16
+ `clqn` stands for **clan**. Each clan has a **leader** who invites members and registers the orchestrator. **Members** register their own worker agents.
17
+
18
+ ## Installation
19
+
20
+ Homebrew is the primary install route and manages Node.js for you. Code workflows also need Git and an authenticated GitHub CLI (`gh`).
21
+
22
+ ```sh
23
+ brew tap rli8145/clqn https://github.com/rli8145/clqn
24
+ brew install clqn
25
+ clqn --help
26
+ ```
27
+
28
+ The CLI includes the local MCP server for Codex, Claude Code, and other MCP clients. No separate MCP package is needed.
29
+
30
+ ### npm alternative
31
+
32
+ With Node.js 22+, install from npm:
33
+
34
+ ```sh
35
+ npm install -g clqn-cli
36
+ ```
37
+
38
+ ### Build from source
39
+
40
+ For development, use Node.js 22+ and npm 10+:
41
+
42
+ ```sh
43
+ git clone https://github.com/rli8145/clqn.git
44
+ cd clqn
45
+ npm ci
46
+ npm run build
47
+ npm link --workspace @clqn/cli
48
+ clqn --help
49
+ ```
50
+
51
+ This puts `clqn` on your `PATH`. Update a Homebrew installation with `brew upgrade clqn`. For a source installation, run `git pull`, `npm ci`, and `npm run build` in your clone.
52
+
53
+ ### Sign in
54
+
55
+ Replace `<operator-api-url>` with the HTTPS URL supplied by your clan operator, then log in.
56
+
57
+ ```sh
58
+ export CLQN_API_URL="<operator-api-url>"
59
+ clqn login --github
60
+ # Or use an operator-provisioned token:
61
+ clqn login < /secure/path/to/personal-token
62
+ ```
63
+
64
+ GitHub login requires the operator to [configure an OAuth App](docs/authentication.md#operator-setup). It requests email identity access only, never repository access.
65
+
66
+ ## Create or join a clan
67
+
68
+ ```sh
69
+ clqn init "My project"
70
+ clqn invite bob@example.com
71
+
72
+ # Bob logs in with his own token, then joins.
73
+ clqn join <invite-code>
74
+ ```
75
+
76
+ ## Connect agents
77
+
78
+ ```sh
79
+ # Leader: register the clan's orchestrator.
80
+ clqn agent add Coordinator --orchestrator --json
81
+
82
+ # Each member: register a worker.
83
+ clqn agent add Codex --json
84
+ ```
85
+
86
+ Each returns an agent token shown once. Save it privately and use it in that agent's MCP configuration. Set `CLQN_CLAN_ID` to the clan ID printed by `clqn init` or `clqn join`, or listed by `clqn clans`:
87
+
88
+ ```json
89
+ {
90
+ "mcpServers": {
91
+ "clqn": {
92
+ "command": "clqn",
93
+ "args": ["mcp", "--path", "/absolute/path/to/project"],
94
+ "env": {
95
+ "CLQN_API_URL": "<operator-api-url>",
96
+ "CLQN_TOKEN": "<agent-token>",
97
+ "CLQN_CLAN_ID": "<clan-id>"
98
+ }
99
+ }
100
+ }
101
+ }
102
+ ```
103
+
104
+ ## Share context
105
+
106
+ ```sh
107
+ printf 'Run npm test before committing.\n' | clqn context write conventions --expected-revision 0
108
+ clqn context read conventions
109
+ clqn context history conventions
110
+ ```
111
+
112
+ ## Coordinate work
113
+
114
+ Code tasks use isolated Git worktrees so agents can work in parallel, with GitHub PRs for review and merging.
115
+
116
+ Run from the project clone, using each agent's credentials in its session:
117
+
118
+ ```sh
119
+ # Orchestrator: create and assign.
120
+ clqn task add "Review the API contract" --code
121
+ clqn task assign <task-id> --agent <worker-agent-id>
122
+
123
+ # Assigned worker: open a worktree, work, commit, and submit a PR.
124
+ clqn task start <task-id>
125
+ cd <printed-worktree-path>
126
+ # Make changes, test, and commit.
127
+ clqn task submit <task-id>
128
+
129
+ # Orchestrator: verify checks and merge.
130
+ clqn task check <task-id>
131
+ clqn task merge <task-id>
132
+
133
+ # Task owner: complete after integration.
134
+ clqn task done <task-id>
135
+ ```
136
+
137
+ `--code` selects origin/main and a unique branch (omit for non-code tasks).
138
+
139
+ ## Sync main
140
+
141
+ ```sh
142
+ # Leader: configure the GitHub webhook once per repository/clan.
143
+ clqn repo link
144
+ ```
145
+
146
+ Linking requires repository admin access and a [configured HTTPS API](docs/webhooks.md#server-setup). While the project MCP connection is active, main sync runs automatically. It fetches at startup, after main-change notifications, and on a five-minute fallback. A clean main worktree fast-forwards; task branches stay pinned. Set the project path in the MCP configuration above.
147
+
148
+ ## Limits and activity
149
+
150
+ ```sh
151
+ clqn limits --tokens 100000 --models provider/model --control approve
152
+ clqn limits # Saved preferences; limits and approvals are not enforced yet.
153
+ clqn status # Workspace counts and task distribution.
154
+ clqn log # Latest 10 clan activity events, newest first.
155
+ ```
156
+
157
+ Add `--json` for scripting.
158
+
159
+ ## Documentation
160
+
161
+ - [Commands](docs/commands.md)
162
+ - [Repository workflow](docs/repositories.md) · [GitHub notifications](docs/webhooks.md)
163
+ - [Authentication](docs/authentication.md) · [Agent policies](docs/policies.md)
164
+ - [Database setup](docs/database.md) · [GCP hosting](docs/hosting.md)
165
+ - [Architecture and roadmap](PLAN.md)
166
+
167
+ ## Contributing
168
+
169
+ [Report an issue](https://github.com/rli8145/clqn/issues) or read the [contribution guide](CONTRIBUTING.md) before submitting a pull request.
@@ -0,0 +1,243 @@
1
+ @modelcontextprotocol/sdk@1.32.2
2
+
3
+ MIT License
4
+
5
+ Copyright (c) 2024 Anthropic, PBC
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+
25
+
26
+ ---
27
+
28
+ ajv@8.20.0
29
+
30
+ The MIT License (MIT)
31
+
32
+ Copyright (c) 2015-2021 Evgeny Poberezkin
33
+
34
+ Permission is hereby granted, free of charge, to any person obtaining a copy
35
+ of this software and associated documentation files (the "Software"), to deal
36
+ in the Software without restriction, including without limitation the rights
37
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
38
+ copies of the Software, and to permit persons to whom the Software is
39
+ furnished to do so, subject to the following conditions:
40
+
41
+ The above copyright notice and this permission notice shall be included in all
42
+ copies or substantial portions of the Software.
43
+
44
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
46
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
47
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
48
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
49
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
50
+ SOFTWARE.
51
+
52
+
53
+
54
+ ---
55
+
56
+ ajv-formats@3.0.1
57
+
58
+ MIT License
59
+
60
+ Copyright (c) 2020 Evgeny Poberezkin
61
+
62
+ Permission is hereby granted, free of charge, to any person obtaining a copy
63
+ of this software and associated documentation files (the "Software"), to deal
64
+ in the Software without restriction, including without limitation the rights
65
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
66
+ copies of the Software, and to permit persons to whom the Software is
67
+ furnished to do so, subject to the following conditions:
68
+
69
+ The above copyright notice and this permission notice shall be included in all
70
+ copies or substantial portions of the Software.
71
+
72
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
73
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
74
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
75
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
76
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
77
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
78
+ SOFTWARE.
79
+
80
+
81
+ ---
82
+
83
+ commander@14.0.3
84
+
85
+ (The MIT License)
86
+
87
+ Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
88
+
89
+ Permission is hereby granted, free of charge, to any person obtaining
90
+ a copy of this software and associated documentation files (the
91
+ 'Software'), to deal in the Software without restriction, including
92
+ without limitation the rights to use, copy, modify, merge, publish,
93
+ distribute, sublicense, and/or sell copies of the Software, and to
94
+ permit persons to whom the Software is furnished to do so, subject to
95
+ the following conditions:
96
+
97
+ The above copyright notice and this permission notice shall be
98
+ included in all copies or substantial portions of the Software.
99
+
100
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
101
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
102
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
103
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
104
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
105
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
106
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
107
+
108
+
109
+ ---
110
+
111
+ fast-deep-equal@3.1.3
112
+
113
+ MIT License
114
+
115
+ Copyright (c) 2017 Evgeny Poberezkin
116
+
117
+ Permission is hereby granted, free of charge, to any person obtaining a copy
118
+ of this software and associated documentation files (the "Software"), to deal
119
+ in the Software without restriction, including without limitation the rights
120
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
121
+ copies of the Software, and to permit persons to whom the Software is
122
+ furnished to do so, subject to the following conditions:
123
+
124
+ The above copyright notice and this permission notice shall be included in all
125
+ copies or substantial portions of the Software.
126
+
127
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
128
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
129
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
130
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
131
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
132
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
133
+ SOFTWARE.
134
+
135
+
136
+ ---
137
+
138
+ fast-uri@3.1.9
139
+
140
+ Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
141
+ Copyright (c) 2021-present The Fastify team <https://github.com/fastify/fastify#team>
142
+ All rights reserved.
143
+
144
+ Redistribution and use in source and binary forms, with or without
145
+ modification, are permitted provided that the following conditions are met:
146
+ * Redistributions of source code must retain the above copyright
147
+ notice, this list of conditions and the following disclaimer.
148
+ * Redistributions in binary form must reproduce the above copyright
149
+ notice, this list of conditions and the following disclaimer in the
150
+ documentation and/or other materials provided with the distribution.
151
+ * The names of any contributors may not be used to endorse or promote
152
+ products derived from this software without specific prior written
153
+ permission.
154
+
155
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
156
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
157
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
158
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
159
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
160
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
161
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
162
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
163
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
164
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
165
+
166
+ * * *
167
+
168
+ The complete list of contributors can be found at:
169
+ - https://github.com/garycourt/uri-js/graphs/contributors
170
+
171
+ ---
172
+
173
+ json-schema-traverse@1.0.0
174
+
175
+ MIT License
176
+
177
+ Copyright (c) 2017 Evgeny Poberezkin
178
+
179
+ Permission is hereby granted, free of charge, to any person obtaining a copy
180
+ of this software and associated documentation files (the "Software"), to deal
181
+ in the Software without restriction, including without limitation the rights
182
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
183
+ copies of the Software, and to permit persons to whom the Software is
184
+ furnished to do so, subject to the following conditions:
185
+
186
+ The above copyright notice and this permission notice shall be included in all
187
+ copies or substantial portions of the Software.
188
+
189
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
190
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
191
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
192
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
193
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
194
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
195
+ SOFTWARE.
196
+
197
+
198
+ ---
199
+
200
+ zod@4.6.7
201
+
202
+ MIT License
203
+
204
+ Copyright (c) 2025 Colin McDonnell
205
+
206
+ Permission is hereby granted, free of charge, to any person obtaining a copy
207
+ of this software and associated documentation files (the "Software"), to deal
208
+ in the Software without restriction, including without limitation the rights
209
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
210
+ copies of the Software, and to permit persons to whom the Software is
211
+ furnished to do so, subject to the following conditions:
212
+
213
+ The above copyright notice and this permission notice shall be included in all
214
+ copies or substantial portions of the Software.
215
+
216
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
217
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
218
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
219
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
220
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
221
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
222
+ SOFTWARE.
223
+
224
+
225
+ ---
226
+
227
+ zod-to-json-schema@3.25.2
228
+
229
+ ISC License
230
+
231
+ Copyright (c) 2020, Stefan Terdell
232
+
233
+ Permission to use, copy, modify, and/or distribute this software for any
234
+ purpose with or without fee is hereby granted, provided that the above
235
+ copyright notice and this permission notice appear in all copies.
236
+
237
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
238
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
239
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
240
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
241
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
242
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
243
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.