cngkit 1.1.2 → 1.1.4

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 (54) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +47 -10
  3. package/dist/chunk-HBBUFPJG.js +4585 -0
  4. package/dist/chunk-HBBUFPJG.js.map +1 -0
  5. package/dist/chunk-PZ5AY32C.js +10 -0
  6. package/dist/chunk-PZ5AY32C.js.map +1 -0
  7. package/dist/chunk-SNTLRTQ2.js +34 -0
  8. package/dist/chunk-SNTLRTQ2.js.map +1 -0
  9. package/dist/chunk-SSRUN6G5.js +524 -0
  10. package/dist/chunk-SSRUN6G5.js.map +1 -0
  11. package/dist/chunk-XWVFKUUD.js +22 -0
  12. package/dist/chunk-XWVFKUUD.js.map +1 -0
  13. package/dist/chunk-YY2VGJ5N.js +114 -0
  14. package/dist/chunk-YY2VGJ5N.js.map +1 -0
  15. package/dist/cli.js +88 -0
  16. package/dist/cli.js.map +1 -0
  17. package/dist/commands/_app.js +11 -0
  18. package/dist/commands/_app.js.map +1 -0
  19. package/dist/commands/coderoom/index.js +24 -0
  20. package/dist/commands/coderoom/index.js.map +1 -0
  21. package/dist/commands/coderoom/join.js +29 -0
  22. package/dist/commands/coderoom/join.js.map +1 -0
  23. package/dist/commands/coderoom/share.js +29 -0
  24. package/dist/commands/coderoom/share.js.map +1 -0
  25. package/dist/commands/index.js +19 -0
  26. package/dist/commands/index.js.map +1 -0
  27. package/dist/commands/knowledges/audiences.js +26 -0
  28. package/dist/commands/knowledges/audiences.js.map +1 -0
  29. package/dist/commands/knowledges/files.js +44 -0
  30. package/dist/commands/knowledges/files.js.map +1 -0
  31. package/dist/commands/knowledges/glob.js +38 -0
  32. package/dist/commands/knowledges/glob.js.map +1 -0
  33. package/dist/commands/knowledges/grep.js +61 -0
  34. package/dist/commands/knowledges/grep.js.map +1 -0
  35. package/dist/commands/knowledges/index.js +24 -0
  36. package/dist/commands/knowledges/index.js.map +1 -0
  37. package/dist/commands/knowledges/list.js +29 -0
  38. package/dist/commands/knowledges/list.js.map +1 -0
  39. package/dist/commands/knowledges/read.js +44 -0
  40. package/dist/commands/knowledges/read.js.map +1 -0
  41. package/dist/commands/knowledges/search.js +29 -0
  42. package/dist/commands/knowledges/search.js.map +1 -0
  43. package/dist/commands/knowledges/status.js +26 -0
  44. package/dist/commands/knowledges/status.js.map +1 -0
  45. package/dist/commands/login.js +26 -0
  46. package/dist/commands/login.js.map +1 -0
  47. package/dist/commands/scrub.js +42 -0
  48. package/dist/commands/scrub.js.map +1 -0
  49. package/dist/commands/transcripts.js +60 -0
  50. package/dist/commands/transcripts.js.map +1 -0
  51. package/package.json +28 -21
  52. package/dist/cli.cjs +0 -25240
  53. package/dist/cli.cjs.map +0 -1
  54. package/dist/cli.d.cts +0 -1
package/LICENSE CHANGED
@@ -4,4 +4,4 @@ This software is provided as personal, opinionated Curly.ng tooling.
4
4
 
5
5
  You can use it, modify it, and share it. If it helps you, support the workshop.
6
6
 
7
- Support: https://curly.ng/donate
7
+ Support: https://curly.ng/support
package/README.md CHANGED
@@ -13,15 +13,18 @@ the Cloudflare-backed Harness knowledges catalog:
13
13
  - `cngkit coderoom share [room-code]` starts a live shared code room from the current directory.
14
14
  - `cngkit coderoom join <room-code>` joins another developer's shared code room.
15
15
  - `cngkit scrub [path]` scans a file or directory with TruffleHog and prints a redacted report.
16
- - `cngkit scrub [path] --yes` rewrites detected secret values inline with `CNGKIT_SECRET` placeholders.
16
+ - `cngkit scrub [path] --yes` rewrites detected secret values inline with `[CNGKIT_SECRET:<detector>:<verified|unverified>]` placeholders.
17
+ - `cngkit transcripts list [--source all|codex|claude] [--limit n]` lists recent local Claude/Codex transcript files.
18
+ - `cngkit transcripts read <path-or-session-id> [--limit n]` prints normalized user/assistant transcript entries.
19
+ - `cngkit transcripts grep <query> [--limit n] [--file-limit n]` searches recent local transcript entries.
17
20
  - `cngkit knowledges status` prints the remote catalog state.
18
21
  - `cngkit knowledges audiences` lists available audience filters.
19
- - `cngkit knowledges search <query>` runs semantic search against Cloudflare Vectorize.
20
- - `cngkit knowledges list [query]` lists known subskills.
21
- - `cngkit knowledges files [query]` lists uploaded catalog files.
22
- - `cngkit knowledges read <file-path>` reads a catalog file excerpt.
23
- - `cngkit knowledges grep <pattern>` searches catalog file contents.
24
- - `cngkit knowledges glob [pattern]` lists catalog files by supported glob pattern.
22
+ - `cngkit knowledges search <query> [--limit n]` runs semantic search against Cloudflare Vectorize (default limit 5).
23
+ - `cngkit knowledges list [query] [--limit n]` lists known subskills (default limit 25).
24
+ - `cngkit knowledges files [query] [--audience id] [--limit n]` lists uploaded catalog files (default limit 25).
25
+ - `cngkit knowledges read <file-path> [--offset n] [--limit n]` reads a catalog file excerpt (default limit 200).
26
+ - `cngkit knowledges grep <pattern> [--path path] [--include glob] [--output-mode content|files_with_matches|count] [--context n] [--case-insensitive]` searches catalog file contents (default mode `content`, default path `/`).
27
+ - `cngkit knowledges glob [pattern] [--path path]` lists catalog files by supported glob pattern (default pattern `**/*.md`, default path `/`).
25
28
  - `.git/` and files ignored by the repo's `.gitignore` are not synced.
26
29
  - Later changes override earlier changes for the MVP conflict rule.
27
30
 
@@ -30,16 +33,28 @@ Help is baked into the CLI as Markdown with progressive disclosure:
30
33
  ```bash
31
34
  cngkit --help
32
35
  cngkit scrub --help
36
+ cngkit transcripts --help
33
37
  cngkit knowledges --help
34
38
  cngkit knowledges read --help
35
39
  cngkit knowledges grep --help
36
40
  cngkit knowledges glob --help
37
41
  ```
38
42
 
43
+ Global options accepted by every command:
44
+
45
+ - `--api-base-url <url>` overrides the Curly backend URL (default: `CNGKIT_API_BASE_URL` or `https://curly.ng`).
46
+ - `--version` prints the installed `cngkit` version.
47
+ - `--help` / `-h` prints the progressive help for the current command.
48
+
39
49
  The canonical CLI spec lives at `docs/superpowers/specs/2026-06-25-cngkit-cli-spec.md`
40
50
  in the repository. The baked help source lives in `src/help-specs.ts`; keep both
41
51
  aligned when changing command behavior.
42
52
 
53
+ Command routing is implemented with Pastel route files under `src/commands/`, rendered
54
+ through Ink. `tsup` emits a file-preserving ESM build so the published package contains
55
+ `dist/cli.js` plus `dist/commands/**`; the private workspace client stays bundled while
56
+ public runtime packages remain normal package dependencies.
57
+
43
58
  `scrub` requires the `trufflehog` binary on `PATH`. On macOS, install it with:
44
59
 
45
60
  ```bash
@@ -48,6 +63,21 @@ brew install trufflehog
48
63
 
49
64
  Inline masking is intentionally gated behind `--yes` because it rewrites files in place.
50
65
 
66
+ ## Local Agent Transcripts
67
+
68
+ The `transcripts` command reads local JSONL logs from `~/.codex/sessions`,
69
+ `~/.codex/archived_sessions`, `~/.claude/projects`, and `~/.claude/history.jsonl`.
70
+ It is local-only operator tooling: transcript contents are not uploaded to the Curly backend.
71
+
72
+ ```bash
73
+ cngkit transcripts list --limit 12
74
+ cngkit transcripts read <path-or-session-id> --source codex --limit 80
75
+ cngkit transcripts grep "deploy failed" --source all --file-limit 60 --limit 20
76
+ ```
77
+
78
+ By default, `read` and `grep` print only user/assistant text and skip internal prompt,
79
+ hook, and tool noise. Use `--include-internal` when debugging transcript plumbing.
80
+
51
81
  ## Coderoom
52
82
 
53
83
  Coderoom is for quickly uniting developers around one working tree. One developer starts
@@ -80,12 +110,19 @@ cngkit knowledges glob "**/*.md" --path /libraries/lib-cloudflare
80
110
  ```
81
111
 
82
112
  Add `--json` to any `knowledges` command when another tool should consume the
83
- raw API response. `grep` also accepts `--output-mode <content|files_with_matches|count>`,
84
- `--include <glob>`, `--context <n>`, and `--case-insensitive`.
113
+ raw API response. `grep` also accepts `--output-mode <content|files_with_matches|count>`
114
+ (default `content`), `--include <glob>` (default `*`), `--context <n>` (default `0`), and
115
+ `--case-insensitive`. Result limits default to `5` for `search` and `25` for `list` and
116
+ `files`; `read` defaults to `200` lines with a backend cap of `2000`, and accepts `--offset`
117
+ for paging.
118
+
119
+ `read` and `grep` accept shorthand catalog paths: `/libraries/lib-cloudflare/SUBSKILL.md`
120
+ expands to `skills/knowledges/subskills/libraries/lib-cloudflare/SUBSKILL.md`, mirroring the
121
+ Claude `read`/`grep` tool convention.
85
122
 
86
123
  This package is mostly personal tooling for Curly.ng. It is intentionally opinionated,
87
124
  small, and practical rather than a general synchronization platform.
88
125
 
89
126
  ## License
90
127
 
91
- Beerware. If this helps you, support the workshop: https://curly.ng/donate
128
+ Beerware. If this helps you, support the workshop: https://curly.ng/support