codeconscious 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +34 -2
- package/dist/cli.cjs +9043 -0
- package/package.json +47 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 S. Emre Er
|
|
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,35 @@
|
|
|
1
|
-
#
|
|
1
|
+
# codeconscious
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Understand the code you ship. CodeConscious adds a git hook that asks you one short quiz question about your own change after a commit/push, so AI-written code does not go unread.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npx codeconscious init
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Commands
|
|
10
|
+
|
|
11
|
+
- `codeconscious init` install hooks in the current git repo (chains with husky, lefthook, `core.hooksPath`; nothing is overwritten) and log in
|
|
12
|
+
- `codeconscious uninstall` remove the hooks and restore the previous state
|
|
13
|
+
- `codeconscious quiz` answer the pending question for your current commit (and a few more, one at a time)
|
|
14
|
+
- `codeconscious status` show login and hook state
|
|
15
|
+
- `codeconscious --help` list all commands
|
|
16
|
+
|
|
17
|
+
## On push, and when an AI agent commits for you
|
|
18
|
+
|
|
19
|
+
On `git push` you see a one-line teaser: "Press space or enter to answer (15s), s to skip". Press a key within 15 s and the question starts with no countdown (the push waits for you; `s`, Esc, Ctrl-D or Ctrl-C always lets it continue, and Ctrl-C at the prompt skips the question). If you press nothing, or there is no terminal (AI agents, CI), nothing is recorded and unanswered questions wait for `npx codeconscious quiz`.
|
|
20
|
+
|
|
21
|
+
If an AI agent commits for you, run `npx codeconscious quiz` afterwards.
|
|
22
|
+
|
|
23
|
+
## Privacy
|
|
24
|
+
|
|
25
|
+
- Only diffs leave your machine, never the full repo.
|
|
26
|
+
- `.gitignore` and `.codeconsciousignore` are respected. Lockfiles, `.env*`, keys and binaries are never uploaded.
|
|
27
|
+
- Obvious secrets are redacted before upload.
|
|
28
|
+
- Uploads run in a detached background process. Every network call times out after 2 s and fails open: the CLI never blocks or breaks a push.
|
|
29
|
+
|
|
30
|
+
## Configuration
|
|
31
|
+
|
|
32
|
+
- `CODECONSCIOUS_API_URL` API base (default `https://code-conscious.com`; http only for localhost)
|
|
33
|
+
- `CODECONSCIOUS_SKIP=1` disable the quiz
|
|
34
|
+
|
|
35
|
+
Node 18+. macOS, Linux, Windows (Git Bash). https://code-conscious.com
|