kitcn 0.0.1 → 0.12.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.
Files changed (93) hide show
  1. package/bin/intent.js +3 -0
  2. package/dist/aggregate/index.d.ts +388 -0
  3. package/dist/aggregate/index.js +37 -0
  4. package/dist/api-entry-BckXqaLb.js +66 -0
  5. package/dist/auth/client/index.d.ts +37 -0
  6. package/dist/auth/client/index.js +217 -0
  7. package/dist/auth/config/index.d.ts +45 -0
  8. package/dist/auth/config/index.js +24 -0
  9. package/dist/auth/generated/index.d.ts +2 -0
  10. package/dist/auth/generated/index.js +3 -0
  11. package/dist/auth/http/index.d.ts +64 -0
  12. package/dist/auth/http/index.js +461 -0
  13. package/dist/auth/index.d.ts +221 -0
  14. package/dist/auth/index.js +1398 -0
  15. package/dist/auth/nextjs/index.d.ts +50 -0
  16. package/dist/auth/nextjs/index.js +81 -0
  17. package/dist/auth-store-Cljlmdmi.js +197 -0
  18. package/dist/builder-CBdG5W6A.js +1974 -0
  19. package/dist/caller-factory-cTXNvYdz.js +216 -0
  20. package/dist/cli.mjs +13264 -0
  21. package/dist/codegen-lF80HSWu.mjs +3416 -0
  22. package/dist/context-utils-HPC5nXzx.d.ts +17 -0
  23. package/dist/create-schema-odyF4kCy.js +156 -0
  24. package/dist/create-schema-orm-DOyiNDCx.js +246 -0
  25. package/dist/crpc/index.d.ts +105 -0
  26. package/dist/crpc/index.js +169 -0
  27. package/dist/customFunctions-C0voKmtx.js +144 -0
  28. package/dist/error-BZEnI7Sq.js +41 -0
  29. package/dist/generated-contract-disabled-Cih4eITO.js +50 -0
  30. package/dist/generated-contract-disabled-D-sOFy92.d.ts +354 -0
  31. package/dist/http-types-DqJubRPJ.d.ts +292 -0
  32. package/dist/meta-utils-0Pu0Nrap.js +117 -0
  33. package/dist/middleware-BUybuv9n.d.ts +34 -0
  34. package/dist/middleware-C2qTZ3V7.js +84 -0
  35. package/dist/orm/index.d.ts +17 -0
  36. package/dist/orm/index.js +10713 -0
  37. package/dist/plugins/index.d.ts +2 -0
  38. package/dist/plugins/index.js +3 -0
  39. package/dist/procedure-caller-DtxLmGwA.d.ts +1467 -0
  40. package/dist/procedure-caller-MWcxhQDv.js +349 -0
  41. package/dist/query-context-B8o6-8kC.js +1518 -0
  42. package/dist/query-context-CFZqIvD7.d.ts +42 -0
  43. package/dist/query-options-Dw7cOyXl.js +121 -0
  44. package/dist/ratelimit/index.d.ts +269 -0
  45. package/dist/ratelimit/index.js +856 -0
  46. package/dist/ratelimit/react/index.d.ts +76 -0
  47. package/dist/ratelimit/react/index.js +183 -0
  48. package/dist/react/index.d.ts +1284 -0
  49. package/dist/react/index.js +2526 -0
  50. package/dist/rsc/index.d.ts +276 -0
  51. package/dist/rsc/index.js +233 -0
  52. package/dist/runtime-CtvJPkur.js +2453 -0
  53. package/dist/server/index.d.ts +5 -0
  54. package/dist/server/index.js +6 -0
  55. package/dist/solid/index.d.ts +1221 -0
  56. package/dist/solid/index.js +2940 -0
  57. package/dist/transformer-DtDhR3Lc.js +194 -0
  58. package/dist/types-BTb_4BaU.d.ts +42 -0
  59. package/dist/types-BiJE7qxR.d.ts +4 -0
  60. package/dist/types-DEJpkIhw.d.ts +88 -0
  61. package/dist/types-HhO_R6pd.d.ts +213 -0
  62. package/dist/validators-B7oIJCAp.js +279 -0
  63. package/dist/validators-vzRKjBJC.d.ts +88 -0
  64. package/dist/watcher.mjs +96 -0
  65. package/dist/where-clause-compiler-DdjN63Io.d.ts +4756 -0
  66. package/package.json +107 -34
  67. package/skills/convex/SKILL.md +486 -0
  68. package/skills/convex/references/features/aggregates.md +353 -0
  69. package/skills/convex/references/features/auth-admin.md +446 -0
  70. package/skills/convex/references/features/auth-organizations.md +1141 -0
  71. package/skills/convex/references/features/auth-polar.md +579 -0
  72. package/skills/convex/references/features/auth.md +470 -0
  73. package/skills/convex/references/features/create-plugins.md +153 -0
  74. package/skills/convex/references/features/http.md +676 -0
  75. package/skills/convex/references/features/migrations.md +162 -0
  76. package/skills/convex/references/features/orm.md +1166 -0
  77. package/skills/convex/references/features/react.md +657 -0
  78. package/skills/convex/references/features/scheduling.md +267 -0
  79. package/skills/convex/references/features/testing.md +209 -0
  80. package/skills/convex/references/setup/auth.md +501 -0
  81. package/skills/convex/references/setup/biome.md +190 -0
  82. package/skills/convex/references/setup/doc-guidelines.md +145 -0
  83. package/skills/convex/references/setup/index.md +761 -0
  84. package/skills/convex/references/setup/next.md +116 -0
  85. package/skills/convex/references/setup/react.md +175 -0
  86. package/skills/convex/references/setup/server.md +473 -0
  87. package/skills/convex/references/setup/start.md +67 -0
  88. package/LICENSE +0 -21
  89. package/README.md +0 -0
  90. package/dist/index.d.mts +0 -5
  91. package/dist/index.d.mts.map +0 -1
  92. package/dist/index.mjs +0 -6
  93. package/dist/index.mjs.map +0 -1
@@ -0,0 +1,145 @@
1
+ # Convex Docs Sync Contract (WWW -> Skill)
2
+
3
+ This file is the normative process spec for syncing kitcn docs into the Convex skill docs.
4
+
5
+ ## 1. Purpose
6
+
7
+ Keep skill docs as a compressed mirror of `www` docs:
8
+
9
+ 1. Lossless for kitcn/Convex-specific deltas.
10
+ 2. Compressed for parity content AI already knows.
11
+ 3. Strictly separated by setup vs core feature work vs advanced resources.
12
+
13
+ ## 2. Canonical Source of Truth
14
+
15
+ Primary source:
16
+
17
+ - `/Users/zbeyens/GitHub/kitcn/www/content/docs/**`
18
+
19
+ Discovery source:
20
+
21
+ - All `meta.json` trees under `/Users/zbeyens/GitHub/kitcn/www/content/docs/**`
22
+
23
+ Contract:
24
+
25
+ 1. Skill docs are a compressed mirror of `www`, not an independent spec.
26
+ 2. `www` changes trigger skill sync review.
27
+ 3. Missing parity in skill must be treated as a sync bug, not a style preference.
28
+
29
+ ## 3. Compression Contract (Parity vs Delta)
30
+
31
+ Baseline assumption: AI already knows tRPC + Drizzle + Better Auth semantics where behavior is fully equivalent.
32
+
33
+ Keep (must keep):
34
+
35
+ 1. kitcn-specific runtime behavior.
36
+ 2. Convex constraints, limits, and operational caveats.
37
+ 3. Integration gotchas and edge cases.
38
+ 4. Non-obvious snippets that encode real behavioral differences.
39
+ 5. Any behavior that differs from parity baseline; label as `Delta from parity`.
40
+
41
+ Drop or condense (must condense):
42
+
43
+ 1. Pure parity explanations identical to vanilla tRPC/Drizzle/Better Auth.
44
+ 2. Repeated introductory theory when no kitcn delta exists.
45
+
46
+ Snippet policy:
47
+
48
+ 1. If snippet demonstrates a delta, keep full snippet.
49
+ 2. If snippet is parity-only, keep minimal snippet plus pointer.
50
+
51
+ ## 4. Destination Matrix (setup/core/resources)
52
+
53
+ Use non-overlapping placement.
54
+
55
+ | Destination | Role | Must Contain | Must Not Contain |
56
+ | --- | --- | --- | --- |
57
+ | `references/setup/` | One-time bootstrap (loaded once per project) | install/bootstrap/env/config/initial wiring/framework setup | daily feature patterns and long advanced deep-dives |
58
+ | `SKILL.md` | Always-loaded core | generic everyday E2E feature implementation path; usable alone for standard feature delivery | setup/install workflows and advanced niche overload |
59
+ | `references/features/` | Features (on-demand, self-contained) | advanced/special cases, plugin depth, long snippets, niche troubleshooting, long-form API detail | setup bootstrap and generic core flow duplication |
60
+
61
+ Definition:
62
+
63
+ - setup == `packages/kitcn/skills/convex/references/setup/*.md`
64
+ - features == `packages/kitcn/skills/convex/references/features/*.md`
65
+
66
+ ## 5. WWW Sync Workflow (phase-by-phase)
67
+
68
+ Follow this exact sequence.
69
+
70
+ 1. Enumerate docs via top-level and nested `meta.json`.
71
+ 2. Process one source doc at a time, heading-by-heading.
72
+ 3. Classify each heading block as one of: `setup | core | resource | parity-drop`.
73
+ 4. Migrate content to destination file with DRY enforcement.
74
+ 5. Record every parity drop with rationale (what was dropped and why).
75
+ 6. Run separation checks:
76
+ - no setup leakage into `SKILL.md`
77
+ - no advanced overload in core
78
+ - advanced sections live in resources and are linked from core when relevant
79
+
80
+ ## 6. DRY and Cross-Linking Rules
81
+
82
+ 1. One canonical home per topic.
83
+ 2. Do not duplicate large blocks across setup/core/resources.
84
+ 3. Feature references should link back to core/setup when repeating context.
85
+ 4. `SKILL.md` should point to feature references for advanced branches, not embed full deep-dives.
86
+ 5. `references/setup/` content should not be copied into feature references; link instead.
87
+
88
+ ## 7. Required Coverage + Traceability Artifacts
89
+
90
+ Each sync update must include:
91
+
92
+ 1. Source coverage matrix: source page -> destination file/section.
93
+ 2. Parity-drop rationale list (inline checklist in PR/update notes is acceptable).
94
+ 3. Explicit confirmation that features were treated as `references/features/*.md`.
95
+
96
+ Minimum acceptance statement per sync:
97
+
98
+ 1. All touched `www` pages mapped.
99
+ 2. All dropped parity sections justified.
100
+ 3. All retained deltas preserved.
101
+
102
+ ## 8. Quality Gates / Verification Checklist
103
+
104
+ Run these checks before accepting a sync.
105
+
106
+ 1. No stale setup command references in `.claude`:
107
+ ```bash
108
+ rg -n "convex-setup\\.md|commands/convex-setup|\\bconvex-setup\\b" .claude -g '*.md' -g '*.mdc'
109
+ ```
110
+
111
+ 2. No legacy Ents/`ctx.table` snippets in active Convex skill docs:
112
+ ```bash
113
+ rg -n "ctx\\.table\\(|ctx\\.table\\b|convex-ents|defineEnt\\(" packages/kitcn/skills/convex/SKILL.md packages/kitcn/skills/convex/references -g '*.md'
114
+ ```
115
+
116
+ 3. `SKILL.md` remains setup-free (manual + grep check):
117
+ ```bash
118
+ rg -n "create-next-app|Installation|convex\\.json|\\.env|env push|one-time setup" packages/kitcn/skills/convex/SKILL.md
119
+ ```
120
+
121
+ 4. Every advanced reference has a discoverable pointer from core when relevant (manual review required).
122
+
123
+ 5. `SKILL.md` remains generic E2E-usable without opening references for standard feature work (manual scenario review).
124
+
125
+ ## 9. Anti-Patterns (what to reject)
126
+
127
+ Reject updates that:
128
+
129
+ 1. Mix setup/bootstrap instructions into `SKILL.md`.
130
+ 2. Explain parity basics in depth with no kitcn delta.
131
+ 3. Use hollow placeholders (`see docs`) without enough operational guidance.
132
+ 4. Duplicate large snippets across setup/core/resources.
133
+ 5. Move advanced niche depth into core and bloat always-loaded context.
134
+
135
+ ## 10. Quick Operator Checklist
136
+
137
+ Before merging doc sync changes:
138
+
139
+ 1. Synced from `www` + `meta.json` traversal.
140
+ 2. Classified every moved section (`setup/core/resource/parity-drop`).
141
+ 3. Preserved all kitcn/Convex deltas.
142
+ 4. Removed or compressed parity-only explanation.
143
+ 5. Enforced destination matrix with no overlap.
144
+ 6. Updated coverage matrix and parity-drop rationale.
145
+ 7. Passed quality gates in Section 8.