connore 0.1.1 → 0.2.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 (238) hide show
  1. package/README.md +13 -8
  2. package/bin/ctxkit.js +5 -5
  3. package/package.json +2 -1
  4. package/packs/base/planning/START.md +29 -28
  5. package/packs/base/planning/blueprint-template.md +46 -46
  6. package/packs/base/planning/plan-template.md +46 -45
  7. package/packs/base/rules/anti-patterns.md +19 -16
  8. package/packs/base/rules/code-style.md +19 -16
  9. package/packs/base/rules/dependency-policy.md +19 -16
  10. package/packs/base/rules/error-handling.md +19 -16
  11. package/packs/base/rules/security-audit.md +47 -0
  12. package/packs/base/rules/security-baseline.md +19 -16
  13. package/packs/base/templates/bug-report.md +19 -16
  14. package/packs/base/templates/feature-spec.md +19 -16
  15. package/packs/base/templates/handoff.md +19 -16
  16. package/packs/base/templates/project-brief.md +19 -16
  17. package/packs/base/workflow/code-review.md +19 -16
  18. package/packs/base/workflow/debugging.md +18 -14
  19. package/packs/base/workflow/git-and-commits.md +19 -16
  20. package/packs/base/workflow/idea-to-spec.md +19 -16
  21. package/packs/base/workflow/session-handoff.md +19 -16
  22. package/packs/base/workflow/spec-to-plan.md +19 -16
  23. package/packs/knowledge/backend/api/conventions.md +21 -0
  24. package/packs/knowledge/backend/architecture/local-sqlite.md +20 -0
  25. package/packs/knowledge/backend/authentication/session-and-engine.md +24 -0
  26. package/packs/knowledge/backend/database/schema.md +21 -0
  27. package/packs/knowledge/components/custom/ambient-background.md +26 -0
  28. package/packs/knowledge/components/custom/ambient-background.tsx +12 -0
  29. package/packs/knowledge/components/custom/corner-frame.md +26 -0
  30. package/packs/knowledge/components/custom/corner-frame.tsx +48 -0
  31. package/packs/knowledge/components/custom/cta-button.md +26 -0
  32. package/packs/knowledge/components/custom/cta-button.tsx +10 -0
  33. package/packs/knowledge/components/custom/page-transition.md +26 -0
  34. package/packs/knowledge/components/custom/page-transition.tsx +10 -0
  35. package/packs/knowledge/components/custom/smooth-scroll.md +26 -0
  36. package/packs/knowledge/components/custom/smooth-scroll.tsx +32 -0
  37. package/packs/knowledge/components/motion-effects/README.md +30 -0
  38. package/packs/knowledge/components/ui-primitives/LICENSE +21 -0
  39. package/packs/knowledge/components/ui-primitives/README.md +22 -0
  40. package/packs/knowledge/components/ui-primitives/badge.md +26 -0
  41. package/packs/knowledge/components/ui-primitives/badge.tsx +48 -0
  42. package/packs/knowledge/components/ui-primitives/button.md +27 -0
  43. package/packs/knowledge/components/ui-primitives/button.tsx +66 -0
  44. package/packs/knowledge/components/ui-primitives/card.md +26 -0
  45. package/packs/knowledge/components/ui-primitives/card.tsx +102 -0
  46. package/packs/knowledge/components/ui-primitives/checkbox.md +26 -0
  47. package/packs/knowledge/components/ui-primitives/checkbox.tsx +32 -0
  48. package/packs/knowledge/components/ui-primitives/dialog.md +26 -0
  49. package/packs/knowledge/components/ui-primitives/dialog.tsx +168 -0
  50. package/packs/knowledge/components/ui-primitives/dropdown-menu.md +26 -0
  51. package/packs/knowledge/components/ui-primitives/dropdown-menu.tsx +268 -0
  52. package/packs/knowledge/components/ui-primitives/input.md +27 -0
  53. package/packs/knowledge/components/ui-primitives/input.tsx +18 -0
  54. package/packs/knowledge/components/ui-primitives/label.md +26 -0
  55. package/packs/knowledge/components/ui-primitives/label.tsx +23 -0
  56. package/packs/knowledge/components/ui-primitives/progress.md +26 -0
  57. package/packs/knowledge/components/ui-primitives/progress.tsx +30 -0
  58. package/packs/knowledge/components/ui-primitives/scroll-area.md +26 -0
  59. package/packs/knowledge/components/ui-primitives/scroll-area.tsx +54 -0
  60. package/packs/knowledge/components/ui-primitives/select.md +26 -0
  61. package/packs/knowledge/components/ui-primitives/select.tsx +191 -0
  62. package/packs/knowledge/components/ui-primitives/separator.md +26 -0
  63. package/packs/knowledge/components/ui-primitives/separator.tsx +27 -0
  64. package/packs/knowledge/components/ui-primitives/sonner.md +26 -0
  65. package/packs/knowledge/components/ui-primitives/sonner.tsx +49 -0
  66. package/packs/knowledge/components/ui-primitives/switch.md +26 -0
  67. package/packs/knowledge/components/ui-primitives/switch.tsx +32 -0
  68. package/packs/knowledge/components/ui-primitives/tabs.md +26 -0
  69. package/packs/knowledge/components/ui-primitives/tabs.tsx +89 -0
  70. package/packs/knowledge/components/ui-primitives/textarea.md +26 -0
  71. package/packs/knowledge/components/ui-primitives/textarea.tsx +17 -0
  72. package/packs/knowledge/components/ui-primitives/tooltip.md +26 -0
  73. package/packs/knowledge/components/ui-primitives/tooltip.tsx +56 -0
  74. package/packs/knowledge/design/aesthetics/app-shell.md +41 -0
  75. package/packs/knowledge/design/aesthetics/code-neutral.md +40 -0
  76. package/packs/knowledge/design/aesthetics/match.md +46 -0
  77. package/packs/knowledge/design/aesthetics/ruled-outline.md +40 -0
  78. package/packs/knowledge/design/aesthetics/solid-accent.md +43 -0
  79. package/packs/knowledge/design/animations/motion.md +40 -0
  80. package/packs/knowledge/design/project-style.md +50 -0
  81. package/packs/knowledge/design/references/benefit-card-grid.md +27 -0
  82. package/packs/knowledge/design/references/benefit-card-grid.png +0 -0
  83. package/packs/knowledge/design/references/cta-centered.md +27 -0
  84. package/packs/knowledge/design/references/cta-centered.png +0 -0
  85. package/packs/knowledge/design/references/cta-split-media.md +27 -0
  86. package/packs/knowledge/design/references/cta-split-media.png +0 -0
  87. package/packs/knowledge/design/references/dashboard-overview.md +31 -0
  88. package/packs/knowledge/design/references/dashboard-overview.png +0 -0
  89. package/packs/knowledge/design/references/faq-split-accordion.md +27 -0
  90. package/packs/knowledge/design/references/faq-split-accordion.png +0 -0
  91. package/packs/knowledge/design/references/feature-split-checklist.md +27 -0
  92. package/packs/knowledge/design/references/feature-split-checklist.png +0 -0
  93. package/packs/knowledge/design/references/footer-four-column.md +27 -0
  94. package/packs/knowledge/design/references/footer-four-column.png +0 -0
  95. package/packs/knowledge/design/references/footer-two-column.md +27 -0
  96. package/packs/knowledge/design/references/footer-two-column.png +0 -0
  97. package/packs/knowledge/design/references/hero-accent-curtain.md +27 -0
  98. package/packs/knowledge/design/references/hero-accent-curtain.png +0 -0
  99. package/packs/knowledge/design/references/hero-split-media.md +27 -0
  100. package/packs/knowledge/design/references/hero-split-media.png +0 -0
  101. package/packs/knowledge/design/references/logo-cloud-grid.md +27 -0
  102. package/packs/knowledge/design/references/logo-cloud-grid.png +0 -0
  103. package/packs/knowledge/design/references/logo-row-ruled.md +27 -0
  104. package/packs/knowledge/design/references/logo-row-ruled.png +0 -0
  105. package/packs/knowledge/design/references/pricing-three-card.md +27 -0
  106. package/packs/knowledge/design/references/pricing-three-card.png +0 -0
  107. package/packs/knowledge/design/references/steps-ruled-grid.md +27 -0
  108. package/packs/knowledge/design/references/steps-ruled-grid.png +0 -0
  109. package/packs/knowledge/design/rules.md +35 -0
  110. package/packs/knowledge/design/token-structure.md +46 -0
  111. package/packs/knowledge/design/tokens.md +55 -0
  112. package/packs/knowledge/frontend/README.md +50 -0
  113. package/packs/knowledge/frontend/SOURCES.md +40 -0
  114. package/packs/knowledge/frontend/accessibility/focus-and-dialogs.md +47 -0
  115. package/packs/knowledge/frontend/accessibility/semantics-and-keyboard.md +45 -0
  116. package/packs/knowledge/frontend/accessibility/wcag-targets.md +43 -0
  117. package/packs/knowledge/frontend/architecture/agent-context-files.md +43 -0
  118. package/packs/knowledge/frontend/architecture/app-foundations.md +43 -0
  119. package/packs/knowledge/frontend/architecture/error-handling.md +47 -0
  120. package/packs/knowledge/frontend/architecture/feature-modules.md +49 -0
  121. package/packs/knowledge/frontend/architecture/import-boundaries.md +44 -0
  122. package/packs/knowledge/frontend/architecture/naming.md +43 -0
  123. package/packs/knowledge/frontend/architecture/project-structure.md +48 -0
  124. package/packs/knowledge/frontend/architecture/routing.md +45 -0
  125. package/packs/knowledge/frontend/architecture/security.md +44 -0
  126. package/packs/knowledge/frontend/architecture/typescript.md +44 -0
  127. package/packs/knowledge/frontend/components/composition.md +45 -0
  128. package/packs/knowledge/frontend/components/data-display.md +47 -0
  129. package/packs/knowledge/frontend/components/library-choice.md +45 -0
  130. package/packs/knowledge/frontend/components/variants.md +44 -0
  131. package/packs/knowledge/frontend/forms/form-architecture.md +49 -0
  132. package/packs/knowledge/frontend/forms/multi-step.md +43 -0
  133. package/packs/knowledge/frontend/forms/validation.md +47 -0
  134. package/packs/knowledge/frontend/layout/responsive.md +41 -0
  135. package/packs/knowledge/frontend/page-blueprints/app-shell.md +16 -0
  136. package/packs/knowledge/frontend/page-blueprints/faq-footer.md +22 -0
  137. package/packs/knowledge/frontend/page-blueprints/feature-grid.md +22 -0
  138. package/packs/knowledge/frontend/page-blueprints/pricing.md +16 -0
  139. package/packs/knowledge/frontend/page-blueprints/saas-hero.md +24 -0
  140. package/packs/knowledge/frontend/patterns/dark-marketing.md +18 -0
  141. package/packs/knowledge/frontend/patterns/status-pill.md +19 -0
  142. package/packs/knowledge/frontend/performance/code-splitting.md +47 -0
  143. package/packs/knowledge/frontend/performance/images-and-vitals.md +44 -0
  144. package/packs/knowledge/frontend/performance/rendering.md +40 -0
  145. package/packs/knowledge/frontend/rendering/server-and-client.md +50 -0
  146. package/packs/knowledge/frontend/state/api-layer.md +49 -0
  147. package/packs/knowledge/frontend/state/async-ui-states.md +43 -0
  148. package/packs/knowledge/frontend/state/client-store.md +46 -0
  149. package/packs/knowledge/frontend/state/server-cache.md +42 -0
  150. package/packs/knowledge/frontend/state/state-categories.md +50 -0
  151. package/packs/knowledge/frontend/testing/component-tests.md +44 -0
  152. package/packs/knowledge/frontend/testing/strategy.md +46 -0
  153. package/packs/knowledge/inbox/README.md +14 -0
  154. package/packs/knowledge/workflows/authentication.md +18 -0
  155. package/packs/knowledge/workflows/crud.md +20 -0
  156. package/packs/knowledge/workflows/dashboard.md +22 -0
  157. package/packs/nextjs-fullstack/backend/auth-and-roles.md +19 -16
  158. package/packs/nextjs-fullstack/backend/background-jobs.md +19 -16
  159. package/packs/nextjs-fullstack/backend/caching.md +17 -14
  160. package/packs/nextjs-fullstack/backend/database.md +19 -16
  161. package/packs/nextjs-fullstack/backend/file-uploads.md +19 -16
  162. package/packs/nextjs-fullstack/backend/logging.md +17 -14
  163. package/packs/nextjs-fullstack/backend/migrations.md +17 -14
  164. package/packs/nextjs-fullstack/backend/rate-limiting.md +19 -16
  165. package/packs/nextjs-fullstack/backend/secrets-and-env.md +19 -16
  166. package/packs/nextjs-fullstack/backend/validation.md +19 -16
  167. package/packs/nextjs-fullstack/blueprints/ai-app.md +1 -1
  168. package/packs/nextjs-fullstack/blueprints/internal-tool.md +1 -1
  169. package/packs/nextjs-fullstack/blueprints/saas-app.md +1 -1
  170. package/packs/nextjs-fullstack/build-deploy/ci.md +18 -16
  171. package/packs/nextjs-fullstack/build-deploy/deploy.md +19 -16
  172. package/packs/nextjs-fullstack/build-deploy/monitoring.md +16 -14
  173. package/packs/nextjs-fullstack/build-deploy/performance.md +17 -14
  174. package/packs/nextjs-fullstack/build-deploy/project-structure.md +18 -16
  175. package/packs/nextjs-fullstack/build-deploy/release-checklist.md +20 -16
  176. package/packs/nextjs-fullstack/build-deploy/testing.md +19 -16
  177. package/packs/nextjs-fullstack/evals/README.md +18 -15
  178. package/packs/nextjs-fullstack/examples/golden-app/README.md +18 -16
  179. package/packs/nextjs-fullstack/frontend/accessibility.md +17 -14
  180. package/packs/nextjs-fullstack/frontend/components.md +19 -16
  181. package/packs/nextjs-fullstack/frontend/copy.md +46 -0
  182. package/packs/nextjs-fullstack/frontend/data-fetching.md +46 -0
  183. package/packs/nextjs-fullstack/frontend/forms.md +17 -14
  184. package/packs/nextjs-fullstack/frontend/layout.md +19 -16
  185. package/packs/nextjs-fullstack/frontend/loading-empty-error.md +19 -16
  186. package/packs/nextjs-fullstack/frontend/motion.md +17 -14
  187. package/packs/nextjs-fullstack/frontend/responsive.md +19 -16
  188. package/packs/nextjs-fullstack/frontend/seo.md +20 -16
  189. package/packs/nextjs-fullstack/frontend/tables.md +17 -14
  190. package/packs/nextjs-fullstack/frontend/tokens.md +18 -16
  191. package/packs/nextjs-fullstack/integrations/analytics.md +17 -14
  192. package/packs/nextjs-fullstack/integrations/email.md +17 -14
  193. package/packs/nextjs-fullstack/integrations/llm-apis.md +19 -16
  194. package/packs/nextjs-fullstack/integrations/oauth.md +19 -16
  195. package/packs/nextjs-fullstack/integrations/object-storage.md +19 -16
  196. package/packs/nextjs-fullstack/integrations/payments.md +17 -14
  197. package/packs/nextjs-fullstack/integrations/queues.md +17 -14
  198. package/packs/nextjs-fullstack/integrations/search.md +19 -16
  199. package/packs/nextjs-fullstack/integrations/webhooks.md +17 -14
  200. package/packs/nextjs-fullstack/playbooks/add-ai-feature.md +19 -16
  201. package/packs/nextjs-fullstack/playbooks/add-auth.md +19 -16
  202. package/packs/nextjs-fullstack/playbooks/add-crud.md +19 -16
  203. package/packs/nextjs-fullstack/playbooks/add-email.md +19 -16
  204. package/packs/nextjs-fullstack/playbooks/add-file-upload.md +19 -16
  205. package/packs/nextjs-fullstack/playbooks/add-webhook.md +19 -16
  206. package/packs/nextjs-fullstack/playbooks/ship-to-prod.md +20 -16
  207. package/plugins/connore/.claude-plugin/plugin.json +10 -0
  208. package/plugins/connore/hooks/hooks.json +16 -0
  209. package/plugins/connore/skills/connore-backend/SKILL.md +32 -0
  210. package/plugins/connore/skills/connore-handoff/SKILL.md +15 -0
  211. package/plugins/connore/skills/connore-routes/SKILL.md +16 -0
  212. package/plugins/connore/skills/connore-validate/SKILL.md +15 -0
  213. package/src/cli.js +110 -21
  214. package/src/commands/doctor.js +2 -0
  215. package/src/commands/edit.js +88 -0
  216. package/src/commands/graph.js +20 -0
  217. package/src/commands/handoff.js +45 -0
  218. package/src/commands/init.js +8 -3
  219. package/src/commands/lint.js +13 -5
  220. package/src/commands/log.js +49 -25
  221. package/src/commands/packs.js +21 -0
  222. package/src/commands/routes.js +13 -0
  223. package/src/commands/search.js +7 -2
  224. package/src/commands/update.js +5 -1
  225. package/src/lib/config.js +67 -64
  226. package/src/lib/graph.js +96 -0
  227. package/src/lib/index.js +88 -72
  228. package/src/lib/lessons.js +173 -173
  229. package/src/lib/lint.js +185 -67
  230. package/src/lib/mutate.js +26 -24
  231. package/src/lib/packs.js +25 -10
  232. package/src/lib/paths.js +1 -1
  233. package/src/lib/prompts.js +66 -0
  234. package/src/lib/report.js +41 -33
  235. package/src/lib/routes.js +59 -0
  236. package/src/lib/run.js +116 -73
  237. package/src/lib/search.js +24 -0
  238. package/src/lib/tokens.js +8 -0
@@ -0,0 +1,89 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import { cva, type VariantProps } from "class-variance-authority"
5
+ import { cn } from "cn"
6
+ import { Tabs as TabsPrimitive } from "radix-ui"
7
+
8
+ function Tabs({
9
+ className,
10
+ orientation = "horizontal",
11
+ ...props
12
+ }: React.ComponentProps<typeof TabsPrimitive.Root>) {
13
+ return (
14
+ <TabsPrimitive.Root
15
+ data-slot="tabs"
16
+ data-orientation={orientation}
17
+ className={cn(
18
+ "group/tabs flex gap-2 data-horizontal:flex-col",
19
+ className
20
+ )}
21
+ {...props}
22
+ />
23
+ )
24
+ }
25
+
26
+ const tabsListVariants = cva(
27
+ "group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",
28
+ {
29
+ variants: {
30
+ variant: {
31
+ default: "bg-muted",
32
+ line: "gap-1 bg-transparent",
33
+ },
34
+ },
35
+ defaultVariants: {
36
+ variant: "default",
37
+ },
38
+ }
39
+ )
40
+
41
+ function TabsList({
42
+ className,
43
+ variant = "default",
44
+ ...props
45
+ }: React.ComponentProps<typeof TabsPrimitive.List> &
46
+ VariantProps<typeof tabsListVariants>) {
47
+ return (
48
+ <TabsPrimitive.List
49
+ data-slot="tabs-list"
50
+ data-variant={variant}
51
+ className={cn(tabsListVariants({ variant }), className)}
52
+ {...props}
53
+ />
54
+ )
55
+ }
56
+
57
+ function TabsTrigger({
58
+ className,
59
+ ...props
60
+ }: React.ComponentProps<typeof TabsPrimitive.Trigger>) {
61
+ return (
62
+ <TabsPrimitive.Trigger
63
+ data-slot="tabs-trigger"
64
+ className={cn(
65
+ "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
66
+ "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent",
67
+ "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground",
68
+ "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
69
+ className
70
+ )}
71
+ {...props}
72
+ />
73
+ )
74
+ }
75
+
76
+ function TabsContent({
77
+ className,
78
+ ...props
79
+ }: React.ComponentProps<typeof TabsPrimitive.Content>) {
80
+ return (
81
+ <TabsPrimitive.Content
82
+ data-slot="tabs-content"
83
+ className={cn("flex-1 text-sm outline-none", className)}
84
+ {...props}
85
+ />
86
+ )
87
+ }
88
+
89
+ export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants }
@@ -0,0 +1,26 @@
1
+ ---
2
+ title: Textarea
3
+ type: component
4
+ tags: [ui-primitive, form]
5
+ updated: 2026-11-19
6
+ description: Multi-line text field.
7
+ ---
8
+
9
+
10
+ # Textarea
11
+
12
+ Multi-line text field. File: `textarea.tsx`.
13
+
14
+ ## Props
15
+
16
+ Forwards textarea props. Same border, radius, and focus ring as Input.
17
+
18
+ ## When
19
+
20
+ A mission brief or a note. Use Input for a single line.
21
+
22
+ ## Example
23
+
24
+ ```tsx
25
+ <Textarea placeholder="Describe the outcome." />
26
+ ```
@@ -0,0 +1,17 @@
1
+ import * as React from "react"
2
+ import { cn } from "cn"
3
+
4
+ function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
5
+ return (
6
+ <textarea
7
+ data-slot="textarea"
8
+ className={cn(
9
+ "flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
10
+ className
11
+ )}
12
+ {...props}
13
+ />
14
+ )
15
+ }
16
+
17
+ export { Textarea }
@@ -0,0 +1,26 @@
1
+ ---
2
+ title: Tooltip
3
+ type: component
4
+ tags: [ui-primitive, tooltip]
5
+ updated: 2026-11-19
6
+ description: Short hover label.
7
+ ---
8
+
9
+
10
+ # Tooltip
11
+
12
+ Short hover label. File: `tooltip.tsx`.
13
+
14
+ ## Props
15
+
16
+ Provider delayDuration defaults to 0. Content, Trigger, and Root forward Radix props.
17
+
18
+ ## When
19
+
20
+ Icon-only buttons. Do not put required instructions only in a tooltip.
21
+
22
+ ## Example
23
+
24
+ ```tsx
25
+ <TooltipProvider><Tooltip><TooltipTrigger asChild><Button size="icon" /></TooltipTrigger><TooltipContent>Sync</TooltipContent></Tooltip></TooltipProvider>
26
+ ```
@@ -0,0 +1,56 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import { cn } from "cn"
5
+ import { Tooltip as TooltipPrimitive } from "radix-ui"
6
+
7
+ function TooltipProvider({
8
+ delayDuration = 0,
9
+ ...props
10
+ }: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
11
+ return (
12
+ <TooltipPrimitive.Provider
13
+ data-slot="tooltip-provider"
14
+ delayDuration={delayDuration}
15
+ {...props}
16
+ />
17
+ )
18
+ }
19
+
20
+ function Tooltip({
21
+ ...props
22
+ }: React.ComponentProps<typeof TooltipPrimitive.Root>) {
23
+ return <TooltipPrimitive.Root data-slot="tooltip" {...props} />
24
+ }
25
+
26
+ function TooltipTrigger({
27
+ ...props
28
+ }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
29
+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />
30
+ }
31
+
32
+ function TooltipContent({
33
+ className,
34
+ sideOffset = 0,
35
+ children,
36
+ ...props
37
+ }: React.ComponentProps<typeof TooltipPrimitive.Content>) {
38
+ return (
39
+ <TooltipPrimitive.Portal>
40
+ <TooltipPrimitive.Content
41
+ data-slot="tooltip-content"
42
+ sideOffset={sideOffset}
43
+ className={cn(
44
+ "z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
45
+ className
46
+ )}
47
+ {...props}
48
+ >
49
+ {children}
50
+ <TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" />
51
+ </TooltipPrimitive.Content>
52
+ </TooltipPrimitive.Portal>
53
+ )
54
+ }
55
+
56
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger }
@@ -0,0 +1,41 @@
1
+ ---
2
+ title: App shell profile
3
+ type: design-token
4
+ tags: [aesthetic, dashboard, app-shell, dark, sidebar]
5
+ updated: 2026-12-06
6
+ description: Load only after match.md selects a signed-in app rather than a marketing page.
7
+ ---
8
+
9
+
10
+ # App shell profile
11
+
12
+ A dense signed-in workspace. Darker than the marketing profiles, and it does not use their accent button.
13
+
14
+ ## Measured colour
15
+
16
+ Sampled from the dashboard reference, content area, bucketed:
17
+
18
+ - Sidebar field: `#04100c`.
19
+ - Main field: `#0c1010`.
20
+ - The graph area is a dark green, not the marketing button green. Exact hex: TODO.
21
+ - Primary button is white. Exact label hex: TODO.
22
+ - Body is smaller and gray. Exact gray: TODO.
23
+
24
+ ## Aesthetic
25
+
26
+ - Left sidebar: logo, workspace, search with a shortcut, nav, user row.
27
+ - Main column: title, a short toolbar, then cards. Cards use a hairline border and a small radius.
28
+ - One white primary button. Other toolbar buttons are dark with a light border.
29
+ - Status is a dot plus a word, not a large accent pill.
30
+
31
+ ## Structure to load
32
+
33
+ `design/references/dashboard-overview.md` and `frontend/page-blueprints/app-shell.md`. What the overview should read is in `workflows/dashboard.md`; this profile is only the visual.
34
+
35
+ ## Do not
36
+
37
+ Do not use the marketing accent `#06e27a` on this shell. Do not restyle it as a landing page with a hero and a logo cloud.
38
+
39
+ ## Source
40
+
41
+ Pixel samples already recorded in `design/tokens.md` and `design/references/dashboard-overview.md`. No new measurement.
@@ -0,0 +1,40 @@
1
+ ---
2
+ title: Recorded app palette
3
+ type: design-token
4
+ tags: [aesthetic, tokens, neutral, code, theme]
5
+ updated: 2026-12-06
6
+ description: Load only when the owner asks for the palette already in the codebase.
7
+ ---
8
+
9
+
10
+ # Recorded app palette
11
+
12
+ This is one existing app's tokens, from `design/tokens.md`. It is not the default for new work. Load it only when the owner points at the current code.
13
+
14
+ ## Colour
15
+
16
+ Neutrals, converted from oklch at chroma 0:
17
+
18
+ | Token | Light | Dark |
19
+ | --- | --- | --- |
20
+ | background | `#ffffff` | `#0a0a0a` |
21
+ | foreground | `#0a0a0a` | `#fafafa` |
22
+ | card | `#ffffff` | `#171717` |
23
+ | primary | `#171717` | `#e5e5e5` |
24
+ | muted | `#f5f5f5` | `#262626` |
25
+ | muted text | `#737373` | `#a1a1a1` |
26
+ | destructive | `#e7000b` | `#ff6467` |
27
+
28
+ Mint accent, both themes: `#9ff2c4`, with a 12% dim mix. This is not the reference accent `#06e27a`. Do not swap them.
29
+
30
+ ## Type, radius, motion
31
+
32
+ UI face is Geist, code is Geist Mono. Radius base is `0.625rem`. Shadows are white at low alpha, not gray clouds. Durations and easings: `design/animations/motion.md`.
33
+
34
+ ## Do not
35
+
36
+ Do not merge this mint with the marketing green. If the owner wanted that green, `solid-accent.md` is the profile. Record a conflict in `design/tokens.md` rather than averaging the two hexes.
37
+
38
+ ## Source
39
+
40
+ `design/tokens.md`, code palette section. Values copied from that record, not re-measured.
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Match a visual style
3
+ type: workflow
4
+ tags: [style, color, aesthetic, intake, theme]
5
+ updated: 2026-12-06
6
+ description: Load before any visual decision. Ask first, then load only the matching profile.
7
+ ---
8
+
9
+
10
+ # Match a visual style
11
+
12
+ Architecture, structure, state, accessibility and performance load without a palette. Colour and aesthetic do not. Ask, then open one profile from this folder. Do not open `design/references/` until a profile names them.
13
+
14
+ ## Ask these, and wait
15
+
16
+ 1. Mode: light, dark, or both.
17
+ 2. Accent: the hue, or "none, keep it neutral".
18
+ 3. Feel: bold and filled, quiet and outlined, or a dense signed-in app.
19
+ 4. Page: marketing landing, or an app shell.
20
+
21
+ Record the answers in `design/project-style.md` before loading anything else. If a row there is already set, use it and skip the question.
22
+
23
+ ## Then load exactly one
24
+
25
+ | They said | Load |
26
+ | --- | --- |
27
+ | Dark, a bright accent, one filled button, a marketing page | `solid-accent.md` |
28
+ | Dark, quiet, outline or bracket buttons, ruled sections | `ruled-outline.md` |
29
+ | A signed-in app: sidebar, overview, dense UI | `app-shell.md` |
30
+ | "Use the palette already in the code" | `code-neutral.md` |
31
+
32
+ Load the named file and the reference specs it lists. Apply its measured values. Do not mix two profiles on one screen.
33
+
34
+ ## When nothing matches
35
+
36
+ Say so. A light page, a second hue, or a serif editorial look is not in this dataset, so do not borrow a dark field or a green button to fill the gap. Record the owner's values in `design/project-style.md` and build from those, still obeying contrast in `frontend/accessibility/wcag-targets.md`.
37
+
38
+ ## Never
39
+
40
+ 1. Never pick a profile because it is the only one with numbers.
41
+ 2. Never average two profiles into a third palette.
42
+ 3. Never treat a reference frame as the product's brand.
43
+
44
+ ## Source
45
+
46
+ Measured values already recorded under `design/tokens.md` and `design/references/`. No new colours were sampled for this file.
@@ -0,0 +1,40 @@
1
+ ---
2
+ title: Ruled outline profile
3
+ type: design-token
4
+ tags: [aesthetic, dark, outline, ruled, marketing]
5
+ updated: 2026-12-06
6
+ description: Load only after match.md selects a dark page with outline buttons and hairline rules.
7
+ ---
8
+
9
+
10
+ # Ruled outline profile
11
+
12
+ Dark and quiet. Hairline rules do the dividing. Buttons are outlines, not filled.
13
+
14
+ ## Measured colour
15
+
16
+ - Page field: `#080808`, then `#101010`.
17
+ - Body text: `#707070`, sampled on the split hero. Headline near white. Exact headline hex: TODO.
18
+ - The accent shows up as a small square marker and as a glow inside images. It is not a flat button colour. Exact accent hex: TODO, too few pixels for a stable sample.
19
+ - No filled accent control. Do not import `#06e27a` from the solid-accent profile to fill that gap.
20
+
21
+ ## Aesthetic
22
+
23
+ - Two corner-bracket buttons, a primary and a quieter secondary. No solid button on the hero.
24
+ - Sections are marked with a small accent square and a short label, not a bracketed word.
25
+ - Layout is ruled cells and vertical lines, not floating cards.
26
+ - Type is large and left aligned. Numbers in step grids are small and mono-like.
27
+
28
+ ## Structure to load
29
+
30
+ `hero-split-media.md`, `logo-row-ruled.md`, `steps-ruled-grid.md`, `cta-split-media.md`, `footer-four-column.md`, all under `design/references/`.
31
+
32
+ Section order: hero, logos, what it does, how it works, closing CTA, footer. See `frontend/patterns/dark-marketing.md`.
33
+
34
+ ## Do not
35
+
36
+ Do not add a filled green button to make the page "pop". That is the other profile. Do not drop the hairline grid and replace it with shadowed cards.
37
+
38
+ ## Source
39
+
40
+ Pixel samples already recorded in `design/tokens.md` and the ruled reference specs. No new measurement.
@@ -0,0 +1,43 @@
1
+ ---
2
+ title: Solid accent profile
3
+ type: design-token
4
+ tags: [aesthetic, dark, accent, marketing, landing]
5
+ updated: 2026-12-06
6
+ description: Load only after match.md selects a dark marketing page with one filled accent button.
7
+ ---
8
+
9
+
10
+ # Solid accent profile
11
+
12
+ Dark marketing. One saturated accent, one filled button, a product mock under the headline.
13
+
14
+ ## Measured colour
15
+
16
+ From `design/tokens.md`. Do not invent the missing ones.
17
+
18
+ - Page field: `#080808`, then `#101010`.
19
+ - Filled button: `#06e27a` on the pricing frame, `#06e37b` on the feature frame. Use one of these and say which.
20
+ - `#08c56e` is the hero curtain, not a button sample. Do not use it as the accent.
21
+ - Headline near white. Body gray. Exact body hex was not sampled on these frames: TODO.
22
+ - Card surfaces sit a hair above the page, with a faint border. Exact card hex: TODO.
23
+
24
+ ## Aesthetic
25
+
26
+ - One filled accent button for the primary action. Everything else is a text link.
27
+ - Section labels are a small accent word in brackets, such as `[ PRICING ]`.
28
+ - Headlines are large, bold, often two lines with the second line gray.
29
+ - Sticky header: wordmark, text links, one filled action.
30
+
31
+ ## Structure to load
32
+
33
+ `hero-accent-curtain.md`, `logo-cloud-grid.md`, `feature-split-checklist.md`, `benefit-card-grid.md`, `pricing-three-card.md`, `faq-split-accordion.md`, `cta-centered.md`, `footer-two-column.md`, all under `design/references/`. Section order is in `frontend/patterns/dark-marketing.md`.
34
+
35
+ Skip a section rather than inventing one. Radius, shadow and type family on these frames are TODO, so take those from `design/project-style.md` once the owner sets them.
36
+
37
+ ## Do not
38
+
39
+ Do not put this palette on a light canvas. Do not reuse it for the app shell; that profile's button is white, not this accent.
40
+
41
+ ## Source
42
+
43
+ Pixel samples already recorded in `design/tokens.md`. No new measurement.
@@ -0,0 +1,40 @@
1
+ ---
2
+ title: Motion
3
+ type: animation
4
+ tags: [motion, easing, duration, css]
5
+ updated: 2026-11-19
6
+ description: Durations and easings copied from Context101 globals.css.
7
+ ---
8
+
9
+
10
+ # Motion
11
+
12
+ Source: `context101/src/app/globals.css`. Screenshot frames are stills, so their motion is TODO.
13
+
14
+ ## Easing
15
+
16
+ - `--ease-out-expo`: `cubic-bezier(0.16, 1, 0.3, 1)`
17
+ - `--ease-soft`: `cubic-bezier(0.22, 1, 0.36, 1)`
18
+ - Lenis wheel easing: `1 - (1 - t) ** 4`, duration `1.15s` (`smooth-scroll.tsx`)
19
+
20
+ ## Durations
21
+
22
+ | Name | Time | Delay | Travel |
23
+ | hero-rise | 1.1s | `--d` | 24px up, blur 10px to 0 |
24
+ | hero-line | 1.4s | `--d` | 0.45em, rotateX -35deg, blur 12px |
25
+ | hero-glow | 2.4s | 0 | scale 0.85 to 1 |
26
+ | link underline | 0.5s | 0 | scaleX 0 to 1 |
27
+ | button lift | 0.45s | 0 | translateY -2px; active 0.15s to scale 0.98 |
28
+ | button sheen | 0.9s | 0 | translateX -120% to 120% |
29
+ | card lift | 0.6s | 0 | translateY -4px |
30
+ | pop-in | 0.35s | 0 | -6px and scale 0.98 |
31
+ | section-in | 0.55s, stagger 0.6s | 0, 60, 120, 180, 240, then 300ms | 12px up |
32
+ | page-out | 220ms | 0 | -10px, blur 4px, ease `cubic-bezier(0.4, 0, 1, 1)` |
33
+ | page-in | 520ms | 120ms | 14px, blur 6px |
34
+ | marquee | 40s | 0 | translateX -50%, linear, infinite |
35
+ | text sheen | 7s | 0 | background-position 120% to -120% |
36
+ | orb drift | 38s, 46s, 52s | 0 | ease-in-out, alternate |
37
+
38
+ Dialog open/close uses `duration-100` with fade and zoom 95.
39
+
40
+ Reduced motion: hero, sheen, orb, button, and card transforms are turned off. View transitions go to `0s`.
@@ -0,0 +1,50 @@
1
+ ---
2
+ title: Project style choices
3
+ type: design-token
4
+ tags: [style, color, type, owner-choice, theme]
5
+ updated: 2026-12-06
6
+ description: The owner's visual decisions. Read before picking any colour, font or radius.
7
+ ---
8
+
9
+
10
+ # Project style choices
11
+
12
+ This file is the record of visual decisions. An agent writes a row only after the owner has answered and, where one matches, a profile has supplied the values.
13
+
14
+ **If a row is unset, stop and ask.** Then run `design/aesthetics/match.md`. A profile may fill colour only after the owner has described the look, and only when their answers match it. Do not inherit a value from the last project.
15
+
16
+ ## Decisions
17
+
18
+ | Choice | Value | Status |
19
+ | --- | --- | --- |
20
+ | Mode | light, dark, or both | unset |
21
+ | Surface / background | | unset |
22
+ | Text, primary and muted | | unset |
23
+ | Accent, one per screen | | unset |
24
+ | Semantic: success, warning, danger | | unset |
25
+ | Type family, UI | | unset |
26
+ | Type family, mono | | unset |
27
+ | Type scale | | unset |
28
+ | Radius scale | | unset |
29
+ | Density, compact or roomy | | unset |
30
+ | Border vs shadow for elevation | | unset |
31
+ | Motion feel, and whether to use any | | unset |
32
+ | Matched profile | | unset |
33
+
34
+ ## How to record a choice
35
+
36
+ Replace `unset` with the value and the date. Keep the reasoning to one clause if it is not obvious. If two values conflict, list both with their contexts; never average them, per `design/tokens.md`.
37
+
38
+ Once Mode and Accent are set, open the one file `design/aesthetics/match.md` names and copy its measured values into the rows above. Do not hard-code those hexes in components; they go in one token layer.
39
+
40
+ ## Current project
41
+
42
+ `design/tokens.md` records what the Context101 codebase already uses. That is a record of one existing app, not a default for new work. Treat it as a starting proposal to show the owner, nothing more.
43
+
44
+ ## What is not a choice
45
+
46
+ Contrast ratios, focus visibility, target size and reduced-motion support are not style preferences. They hold whatever palette is picked. See `frontend/accessibility/wcag-targets.md`.
47
+
48
+ ## Source
49
+
50
+ This project's own convention for separating owner decisions from engineering defaults.
@@ -0,0 +1,27 @@
1
+ ---
2
+ title: Benefit card grid
3
+ type: screenshot
4
+ tags: [cards, grid, benefits, landing, dark]
5
+ updated: 2026-12-06
6
+ description: Six equal cards in a 3×2 grid under a benefits headline.
7
+ ---
8
+
9
+
10
+ # Benefit card grid
11
+
12
+ Frame is 1920×1080 and includes browser chrome and the taskbar. Those are not part of the UI. Exact padding in px is TODO unless a number below was measured from pixels. File `benefit-card-grid.png`.
13
+
14
+ ## Purpose
15
+ Six reasons, each an icon, a short title, and two lines of gray copy.
16
+
17
+ ## Layout
18
+ Bracketed accent section label. Headline is two lines, white then gray. Grid is 3 columns by 2 rows. Every card has the same structure: line icon, title, paragraph. Gutters look equal. Exact gap and card padding: TODO.
19
+
20
+ ## Color
21
+ Page buckets: `#080808`, then `#101010`. Cards are a hair lighter than the page, with a faint border. Exact card and border hex: TODO. Icons and titles are white. Body is gray.
22
+
23
+ ## Type, radius, shadow, motion
24
+ Title is medium and semibold. Body is smaller. Exact px: TODO. Cards look slightly rounded. Exact radius: TODO. No obvious drop shadow. Hover motion is not visible in a still: TODO.
25
+
26
+ ## Components
27
+ Section label, headline, six static cards. No buttons inside the grid.
@@ -0,0 +1,27 @@
1
+ ---
2
+ title: Centered closing CTA
3
+ type: screenshot
4
+ tags: [cta, landing, centered, dark]
5
+ updated: 2026-12-06
6
+ description: Centered headline and one accent button above a repeat of the console mock.
7
+ ---
8
+
9
+
10
+ # Centered closing CTA
11
+
12
+ Frame is 1920×1080 and includes browser chrome and the taskbar. Those are not part of the UI. Exact padding in px is TODO unless a number below was measured from pixels. File `cta-centered.png`.
13
+
14
+ ## Purpose
15
+ Repeat the ask after the FAQ, then show the product again.
16
+
17
+ ## Layout
18
+ Copy is centered: two-line headline, one gray subline, one solid accent button. Under that, the same console mock as the hero, now with an accent action button inside the left pane. The mock is wider than the text block. Exact widths: TODO.
19
+
20
+ ## Color
21
+ Page buckets: `#080808`, `#101010`. Saturated-accent median: `#06e27a`, consistent with the pricing frame. Headline white. Subline gray.
22
+
23
+ ## Type, radius, shadow, motion
24
+ Headline is large, bold, centered. Button label is small relative to the headline. Exact px: TODO. Button radius looks the same as the hero button. Exact value: TODO. Motion: TODO.
25
+
26
+ ## Components
27
+ Centered headline, solid accent button with arrow, console card, status pill, tabs, monospace log.
@@ -0,0 +1,27 @@
1
+ ---
2
+ title: Split closing CTA
3
+ type: screenshot
4
+ tags: [cta, landing, outline, ruled]
5
+ updated: 2026-12-06
6
+ description: Split closing band: headline and two outline buttons beside the hero image.
7
+ ---
8
+
9
+
10
+ # Split closing CTA
11
+
12
+ Frame is 1920×1080 and includes browser chrome and the taskbar. Those are not part of the UI. Exact padding in px is TODO unless a number below was measured from pixels. File `cta-split-media.png`. A capture-tool toast covers the bottom-right of the frame. Ignore that toast.
13
+
14
+ ## Purpose
15
+ Last ask: start free, or talk to the team.
16
+
17
+ ## Layout
18
+ Same two-column split as `hero-split-media.md`, with vertical rules. Left: a one-line headline, one gray sentence, two bracketed buttons, a primary and a secondary. Right: the same halftone image and geometric mark as the hero. Copy is vertically centered in the left cell. Exact padding: TODO.
19
+
20
+ ## Color
21
+ Page buckets: `#080808`, `#101010`. Buttons are outline, not filled. Text is near white and gray. The image glow is the only strong accent. Exact glow hex: TODO.
22
+
23
+ ## Type, radius, shadow, motion
24
+ Headline is large and bold. Button labels are small. Exact px: TODO. Buttons use corner brackets, not a filled radius. Shadow: none on the buttons. Motion: TODO.
25
+
26
+ ## Components
27
+ Headline, two corner-bracket buttons, media panel. Header is off screen.
@@ -0,0 +1,31 @@
1
+ ---
2
+ title: Dashboard overview
3
+ type: screenshot
4
+ tags: [dashboard, app-shell, dark, sidebar]
5
+ updated: 2026-12-06
6
+ description: Dark app shell with a left nav, overview cards, and a repository graph.
7
+ ---
8
+
9
+
10
+ # Dashboard overview
11
+
12
+ Frame is 1920×1080 and includes browser chrome and the taskbar. Those are not part of the UI. Exact padding in px is TODO unless a number below was measured from pixels. File `dashboard-overview.png`.
13
+
14
+ ## Purpose
15
+ Signed-in workspace overview: connect an agent, scan recent activity, and open indexed repositories.
16
+
17
+ ## Layout
18
+ Left sidebar, then a top warning bar, then a two-column row, then a full-width repository block. Sidebar holds logo, workspace name, a search field with a `Ctrl+K` hint, nav, a community link, and the user row. Main column starts with a page title and two outline buttons on the right, plus one solid light primary button.
19
+
20
+ ## Color
21
+ Sampled from the bitmap, content area only, colors bucketed to 4:
22
+ - Sidebar field: `#04100c` (most common bucket).
23
+ - Main field: `#0c1010`.
24
+ - The graph area is a dark green, not the bright accent used by the solid-accent landing family. Exact graph hex: TODO.
25
+ - The primary button is white. Exact label hex: TODO.
26
+
27
+ ## Type, radius, shadow, motion
28
+ Sans-serif. Family name is not in the image: TODO. Title is larger than card titles; body is smaller and gray. Exact sizes: TODO. Cards have a hairline border and a small radius. Exact radius and shadow: TODO. This frame shows no animation.
29
+
30
+ ## Components
31
+ Sidebar nav, search field, warning banner, outline and solid buttons, two stat cards, status dot, graph thumbnail, command input (`Ctrl+I`).