Add CLI package, config file support, and workspace setup

Add cli/ package with initial scaffolding. Add config-schema to shared
package for typed configuration. Add server config-file loader for
paperclip.config.ts support. Register cli in pnpm workspace. Add
.paperclip/ and .pnpm-store/ to gitignore. Minor Companies page fix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Forgotten
2026-02-17 13:39:47 -06:00
parent 0975907121
commit 5306142542
28 changed files with 1091 additions and 7 deletions

View File

@@ -128,10 +128,18 @@ export function Companies() {
const isEditing = editingId === company.id;
return (
<button
<div
key={company.id}
role="button"
tabIndex={0}
onClick={() => setSelectedCompanyId(company.id)}
className={`group text-left bg-card border rounded-lg p-4 transition-colors ${
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
setSelectedCompanyId(company.id);
}
}}
className={`group text-left bg-card border rounded-lg p-4 transition-colors cursor-pointer ${
selected ? "border-primary ring-1 ring-primary" : "border-border hover:border-muted-foreground/30"
}`}
>
@@ -185,7 +193,7 @@ export function Companies() {
{formatCents(company.spentMonthlyCents)} / {formatCents(company.budgetMonthlyCents)}
</div>
</div>
</button>
</div>
);
})}
</div>