qodewk 0.1.6 → 0.1.9
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 +184 -0
- package/dist/index.cjs +819 -228
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Qodewk Contributors
|
|
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
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# Qodewk — Proof of Shipment for the AI Coding Agent Era
|
|
2
|
+
|
|
3
|
+
> **Universal telemetry and digital receipt generator for autonomous software development.**
|
|
4
|
+
> Built for Claude Code, Cursor, Copilot, Codex, and multi-agent Git workflows.
|
|
5
|
+
|
|
6
|
+
[](https://www.npmjs.com/package/qodewk)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
[](https://turbo.build)
|
|
9
|
+
[](docs/design-system.md)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## ⚡️ Quickstart (Zero Install)
|
|
14
|
+
|
|
15
|
+
Run directly from any Git repository without installing any packages globally:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Generate monospace thermal receipt in terminal
|
|
19
|
+
npx qodewk
|
|
20
|
+
|
|
21
|
+
# Output machine-readable JSON telemetry
|
|
22
|
+
npx qodewk --json
|
|
23
|
+
|
|
24
|
+
# Publish privacy-safe receipt to web and get shareable URL
|
|
25
|
+
npx qodewk share
|
|
26
|
+
|
|
27
|
+
# Audit a PR branch diff range against base
|
|
28
|
+
npx qodewk audit --base origin/main --head HEAD --format markdown --out receipt.md
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Thermal ASCII Receipt Preview
|
|
32
|
+
```text
|
|
33
|
+
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
|
|
34
|
+
| Q O D E W K |
|
|
35
|
+
| *** PROOF OF SHIPMENT *** |
|
|
36
|
+
| |
|
|
37
|
+
| ID: rec_dd56d34a6bb4ff290b1d DATE: 2026-09-27 |
|
|
38
|
+
| REPO: qodewk BRANCH: master |
|
|
39
|
+
| ==================================================== |
|
|
40
|
+
| ITEMS CHANGED QTY |
|
|
41
|
+
| ---------------------------------------------------- |
|
|
42
|
+
| Files Touched 40 |
|
|
43
|
+
| Lines Inserted + 3952 |
|
|
44
|
+
| Lines Deleted - 0 |
|
|
45
|
+
| Net Code Delta + 3952 |
|
|
46
|
+
| ---------------------------------------------------- |
|
|
47
|
+
| AI TELEMETRY |
|
|
48
|
+
| Provider: anthropic · claude-3-7-sonnet |
|
|
49
|
+
| Tokens: 200k in (120k cached) / 35k out |
|
|
50
|
+
| Total Tokens: 234,580 |
|
|
51
|
+
| ==================================================== |
|
|
52
|
+
| ESTIMATED AI COST ~$0.79 |
|
|
53
|
+
| CONFIDENCE: 45% [Mode: unknown ] |
|
|
54
|
+
| ==================================================== |
|
|
55
|
+
| |
|
|
56
|
+
| ||| | ||||| ||| |||| |||||| |||| ||| ||||||| ||| |
|
|
57
|
+
| https://qodewk.dev/r/rec_dd56d34a6bb4ff290b1d830 |
|
|
58
|
+
| |
|
|
59
|
+
| [✓] Source code was never uploaded to Qodewk |
|
|
60
|
+
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 💻 CLI Command Reference
|
|
66
|
+
|
|
67
|
+
| Command / Option | Description | Output / Example |
|
|
68
|
+
|---|---|---|
|
|
69
|
+
| `npx qodewk` | Inspect latest Git commit and generate monospace thermal receipt | Monospace terminal box |
|
|
70
|
+
| `npx qodewk --json` | Export machine-readable telemetry conforming to canonical `ReceiptV1` schema | Formatted JSON output |
|
|
71
|
+
| `npx qodewk share` | Publish privacy-safe metadata to Qodewk Cloud and generate short link | `https://qodewk.dev/r/rec_...` |
|
|
72
|
+
| `npx qodewk audit --base <branch>` | Calculate aggregate diff and telemetry across an entire PR branch range | Git revision delta receipt |
|
|
73
|
+
| `npx qodewk -f markdown -o receipt.md` | Export sticky Markdown receipt directly formatted for GitHub PR comments | File `receipt.md` |
|
|
74
|
+
| `npx qodewk -p <provider> -m <model>` | Override detected provider & frontier model pricing rate card | Custom model cost estimate |
|
|
75
|
+
| `npx qodewk --anon` | Redact sensitive repository and branch identifiers | Privacy-hardened receipt |
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## 🤖 GitHub Action (Automated PR Sticky Receipts)
|
|
80
|
+
|
|
81
|
+
Add Qodewk directly to your repository workflow to generate verifiable shipment receipts on every Pull Request:
|
|
82
|
+
|
|
83
|
+
```yaml
|
|
84
|
+
# .github/workflows/qodewk.yml
|
|
85
|
+
name: "Qodewk Telemetry Receipt"
|
|
86
|
+
|
|
87
|
+
on:
|
|
88
|
+
pull_request:
|
|
89
|
+
types: [opened, synchronize, reopened]
|
|
90
|
+
|
|
91
|
+
permissions:
|
|
92
|
+
contents: read
|
|
93
|
+
pull-requests: write
|
|
94
|
+
|
|
95
|
+
jobs:
|
|
96
|
+
audit-receipt:
|
|
97
|
+
runs-on: ubuntu-latest
|
|
98
|
+
steps:
|
|
99
|
+
- name: Checkout Code
|
|
100
|
+
uses: actions/checkout@v4
|
|
101
|
+
with:
|
|
102
|
+
fetch-depth: 0
|
|
103
|
+
|
|
104
|
+
- name: Run Qodewk Audit
|
|
105
|
+
uses: abushaidislam/Qodewk/packages/action@v0.1.6
|
|
106
|
+
with:
|
|
107
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
108
|
+
base-ref: origin/${{ github.base_ref }}
|
|
109
|
+
head-sha: ${{ github.sha }}
|
|
110
|
+
publish-cloud: "true"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## 🔒 Privacy Invariant (Zero Source Exfiltration)
|
|
116
|
+
|
|
117
|
+
1. **No Code Leaves Your Machine:** Source code files and raw Git diff bodies **never** touch the network.
|
|
118
|
+
2. **Metadata Only:** Public receipts contain only file counts, line insertions/deletions, language ratios, token counts, and cryptographic hashes (`HMAC-SHA256`).
|
|
119
|
+
3. **Hard 50 KB Request Cap:** The `/api/receipts` endpoint enforces a strict `50 KB` request body ceiling.
|
|
120
|
+
4. **Kill Switch:** Set `QODEWK_TELEMETRY=off` to disable all cloud publishing permanently.
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## 🏛️ Monorepo Structure
|
|
125
|
+
|
|
126
|
+
```text
|
|
127
|
+
Qodewk/
|
|
128
|
+
├── apps/
|
|
129
|
+
│ └── web/ # Next.js 15 (App Router, Claude Warm Editorial, Satori OG)
|
|
130
|
+
├── packages/
|
|
131
|
+
│ ├── protocol/ # Canonical Zod schemas & TypeScript contracts (Receipt v1.0)
|
|
132
|
+
│ ├── pricing/ # Versioned frontier rate card registry (Claude, OpenAI, Gemini, DeepSeek)
|
|
133
|
+
│ ├── core/ # Git engine (simple-git), dual-engine estimator, zero-native node:sqlite
|
|
134
|
+
│ ├── cli/ # Self-contained bundled executable (`qodewk`, `npx qodewk`)
|
|
135
|
+
│ └── action/ # GitHub Action for automated sticky PR comment receipts
|
|
136
|
+
├── docs/ # Architectural whitepaper, design specs, and deployment guides
|
|
137
|
+
├── .github/workflows/ # CI/CD & PR telemetry workflow
|
|
138
|
+
├── README.md
|
|
139
|
+
└── AGENTS.md # Strict contributor invariants & coding rules
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## 📖 Documentation Map
|
|
145
|
+
|
|
146
|
+
### Architecture & Specs
|
|
147
|
+
- [`docs/blueprint.md`](file:///c:/Users/ASUS/Desktop/Qodewk/docs/blueprint.md) — Master Architecture Blueprint (158KB Deep-Tech Whitepaper)
|
|
148
|
+
- [`docs/design-system.md`](file:///c:/Users/ASUS/Desktop/Qodewk/docs/design-system.md) — Claude-inspired Warm Editorial Design System & Thermal Receipt Tokens
|
|
149
|
+
- [`docs/deployment.md`](file:///c:/Users/ASUS/Desktop/Qodewk/docs/deployment.md) — Production Deployment (Vercel, Docker, Cloud Run) & NPM Publishing Guide
|
|
150
|
+
- [`AGENTS.md`](file:///c:/Users/ASUS/Desktop/Qodewk/AGENTS.md) — Strict Invariant Engineering Rules & Aesthetic Mandates
|
|
151
|
+
|
|
152
|
+
### Modular Deep Dives
|
|
153
|
+
- [`docs/00-product-thesis.md`](file:///c:/Users/ASUS/Desktop/Qodewk/docs/00-product-thesis.md) — Product definition & market positioning
|
|
154
|
+
- [`docs/01-architecture.md`](file:///c:/Users/ASUS/Desktop/Qodewk/docs/01-architecture.md) — System boundaries & capture pipelines
|
|
155
|
+
- [`docs/02-receipt-protocol.md`](file:///c:/Users/ASUS/Desktop/Qodewk/docs/02-receipt-protocol.md) — Receipt v1.0 schema specification
|
|
156
|
+
- [`docs/03-token-cost-estimation.md`](file:///c:/Users/ASUS/Desktop/Qodewk/docs/03-token-cost-estimation.md) — Dual-engine estimation & confidence scoring
|
|
157
|
+
- [`docs/04-privacy-security.md`](file:///c:/Users/ASUS/Desktop/Qodewk/docs/04-privacy-security.md) — Threat model & 50 KB security boundaries
|
|
158
|
+
- [`docs/06-plg-growth.md`](file:///c:/Users/ASUS/Desktop/Qodewk/docs/06-plg-growth.md) — Viral receipt loops & PR sticky comment integration
|
|
159
|
+
- [`docs/10-mvp-48h.md`](file:///c:/Users/ASUS/Desktop/Qodewk/docs/10-mvp-48h.md) — 48-Hour MVP scope and verification criteria
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## 🚀 Running Locally
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
# Install dependencies
|
|
167
|
+
pnpm install
|
|
168
|
+
|
|
169
|
+
# Build all packages with Turborepo
|
|
170
|
+
pnpm build
|
|
171
|
+
|
|
172
|
+
# Start web app in development
|
|
173
|
+
pnpm --filter web dev
|
|
174
|
+
# App is available at http://localhost:3000
|
|
175
|
+
|
|
176
|
+
# Run CLI standalone bundle directly
|
|
177
|
+
node packages/cli/dist/index.cjs
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## 📄 License
|
|
183
|
+
|
|
184
|
+
MIT © [Qodewk Contributors](LICENSE)
|