ucode-agent 1.3.0 → 1.5.0
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/README.md +42 -12
- package/package.json +5 -3
- package/skills/build-app/SKILL.md +23 -3
- package/skills/ui-ux/SKILL.md +5 -1
- package/src/core/loop.js +181 -20
- package/src/core/provider.js +40 -12
- package/src/core/updater.js +95 -0
- package/src/tools/browser.js +258 -0
- package/src/tools/index.js +51 -1
- package/src/tools/scaffold.js +130 -0
- package/src/tools/shell.js +8 -1
- package/src/ui/screen.js +20 -6
- package/templates/next-shadcn/AGENTS.md +9 -0
- package/templates/next-shadcn/README.md +9 -0
- package/templates/next-shadcn/TEMPLATE.md +39 -0
- package/templates/next-shadcn/_gitignore +41 -0
- package/templates/next-shadcn/_package-lock.json +10278 -0
- package/templates/next-shadcn/components.json +25 -0
- package/templates/next-shadcn/eslint.config.mjs +18 -0
- package/templates/next-shadcn/next-env.d.ts +5 -0
- package/templates/next-shadcn/next.config.ts +7 -0
- package/templates/next-shadcn/package.json +37 -0
- package/templates/next-shadcn/postcss.config.mjs +7 -0
- package/templates/next-shadcn/src/app/favicon.ico +0 -0
- package/templates/next-shadcn/src/app/globals.css +155 -0
- package/templates/next-shadcn/src/app/layout.tsx +42 -0
- package/templates/next-shadcn/src/app/page.tsx +14 -0
- package/templates/next-shadcn/src/components/theme-provider.tsx +7 -0
- package/templates/next-shadcn/src/components/theme-toggle.tsx +27 -0
- package/templates/next-shadcn/src/components/ui/alert-dialog.tsx +187 -0
- package/templates/next-shadcn/src/components/ui/avatar.tsx +108 -0
- package/templates/next-shadcn/src/components/ui/badge.tsx +51 -0
- package/templates/next-shadcn/src/components/ui/button.tsx +57 -0
- package/templates/next-shadcn/src/components/ui/calendar.tsx +221 -0
- package/templates/next-shadcn/src/components/ui/card.tsx +102 -0
- package/templates/next-shadcn/src/components/ui/checkbox.tsx +28 -0
- package/templates/next-shadcn/src/components/ui/command.tsx +196 -0
- package/templates/next-shadcn/src/components/ui/dialog.tsx +160 -0
- package/templates/next-shadcn/src/components/ui/dropdown-menu.tsx +267 -0
- package/templates/next-shadcn/src/components/ui/input-group.tsx +158 -0
- package/templates/next-shadcn/src/components/ui/input.tsx +19 -0
- package/templates/next-shadcn/src/components/ui/label.tsx +19 -0
- package/templates/next-shadcn/src/components/ui/popover.tsx +89 -0
- package/templates/next-shadcn/src/components/ui/progress.tsx +82 -0
- package/templates/next-shadcn/src/components/ui/scroll-area.tsx +54 -0
- package/templates/next-shadcn/src/components/ui/select.tsx +200 -0
- package/templates/next-shadcn/src/components/ui/separator.tsx +24 -0
- package/templates/next-shadcn/src/components/ui/sheet.tsx +138 -0
- package/templates/next-shadcn/src/components/ui/skeleton.tsx +13 -0
- package/templates/next-shadcn/src/components/ui/sonner.tsx +49 -0
- package/templates/next-shadcn/src/components/ui/switch.tsx +31 -0
- package/templates/next-shadcn/src/components/ui/tabs.tsx +81 -0
- package/templates/next-shadcn/src/components/ui/textarea.tsx +17 -0
- package/templates/next-shadcn/src/components/ui/tooltip.tsx +65 -0
- package/templates/next-shadcn/src/lib/utils.ts +1 -0
- package/templates/next-shadcn/tsconfig.json +34 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# What this project already has
|
|
2
|
+
|
|
3
|
+
It was created by ucode's `create_app` from a starter that is known to build.
|
|
4
|
+
Do not re-run create-next-app or `shadcn init` — everything below is in place.
|
|
5
|
+
|
|
6
|
+
## Stack
|
|
7
|
+
|
|
8
|
+
- Next.js 16 (App Router), React 19, TypeScript, Tailwind CSS 4
|
|
9
|
+
- shadcn/ui ("base-nova" style, built on `@base-ui/react`), lucide-react icons
|
|
10
|
+
- next-themes (light / dark / system), sonner toasts, date-fns
|
|
11
|
+
|
|
12
|
+
Next 16 changed APIs. `AGENTS.md` explains, and `node_modules/next/dist/docs/`
|
|
13
|
+
has the guides — check them before using an API you are unsure of.
|
|
14
|
+
|
|
15
|
+
## Already wired
|
|
16
|
+
|
|
17
|
+
- `src/app/layout.tsx` — font (Geist, registered as `--font-sans`), `ThemeProvider`,
|
|
18
|
+
`TooltipProvider`, and `<Toaster />`. Call `toast()` from `sonner` anywhere.
|
|
19
|
+
- `src/components/theme-toggle.tsx` — a light/dark button, ready to place.
|
|
20
|
+
- `src/app/globals.css` — the design tokens. The palette is a starting point:
|
|
21
|
+
re-tint `--primary`, `--accent` and the neutrals for this app's direction.
|
|
22
|
+
`--success` and `--warning` exist alongside `--destructive`
|
|
23
|
+
(`bg-success`, `text-warning`, ...).
|
|
24
|
+
- `src/app/page.tsx` — a placeholder. Replace it.
|
|
25
|
+
|
|
26
|
+
## Components in `src/components/ui/`
|
|
27
|
+
|
|
28
|
+
alert-dialog, avatar, badge, button, calendar, card, checkbox, command, dialog,
|
|
29
|
+
dropdown-menu, input, input-group, label, popover, progress, scroll-area, select,
|
|
30
|
+
separator, sheet, skeleton, sonner, switch, tabs, textarea, tooltip
|
|
31
|
+
|
|
32
|
+
Anything else: `npx shadcn@latest add <name> -y`.
|
|
33
|
+
|
|
34
|
+
## Conventions
|
|
35
|
+
|
|
36
|
+
- One component per file, grouped by feature: `src/components/<feature>/`.
|
|
37
|
+
- Shared types in `src/lib/types.ts`, helpers in `src/lib/`.
|
|
38
|
+
- `"use client"` only on components that need state or events.
|
|
39
|
+
- `cn()` from `@/lib/utils` to merge class names.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
2
|
+
|
|
3
|
+
# dependencies
|
|
4
|
+
/node_modules
|
|
5
|
+
/.pnp
|
|
6
|
+
.pnp.*
|
|
7
|
+
.yarn/*
|
|
8
|
+
!.yarn/patches
|
|
9
|
+
!.yarn/plugins
|
|
10
|
+
!.yarn/releases
|
|
11
|
+
!.yarn/versions
|
|
12
|
+
|
|
13
|
+
# testing
|
|
14
|
+
/coverage
|
|
15
|
+
|
|
16
|
+
# next.js
|
|
17
|
+
/.next/
|
|
18
|
+
/out/
|
|
19
|
+
|
|
20
|
+
# production
|
|
21
|
+
/build
|
|
22
|
+
|
|
23
|
+
# misc
|
|
24
|
+
.DS_Store
|
|
25
|
+
*.pem
|
|
26
|
+
|
|
27
|
+
# debug
|
|
28
|
+
npm-debug.log*
|
|
29
|
+
yarn-debug.log*
|
|
30
|
+
yarn-error.log*
|
|
31
|
+
.pnpm-debug.log*
|
|
32
|
+
|
|
33
|
+
# env files (can opt-in for committing if needed)
|
|
34
|
+
.env*
|
|
35
|
+
|
|
36
|
+
# vercel
|
|
37
|
+
.vercel
|
|
38
|
+
|
|
39
|
+
# typescript
|
|
40
|
+
*.tsbuildinfo
|
|
41
|
+
next-env.d.ts
|