Skip to content

Commit 1dd2463

Browse files
committed
Consolidate ActantDB substrate and close deferred gaps
1 parent 05043df commit 1dd2463

165 files changed

Lines changed: 4024 additions & 2301 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agent/hooks.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
{
4747
"type": "command",
48-
"command": "FILE=$(python3 -c \"import json,sys; d=json.load(sys.stdin); t=d.get('tool_input',{}); print(d.get('TargetFile') or d.get('file_path') or (t.get('file_path') if isinstance(t,dict) else '') or '')\" 2>/dev/null || true); if [ -n \"$FILE\" ] && printf '%s' \"$FILE\" | grep -q 'crates/actant-contracts/'; then cargo run -p actant-contracts -- check-compat; fi",
48+
"command": "FILE=$(python3 -c \"import json,sys; d=json.load(sys.stdin); t=d.get('tool_input',{}); print(d.get('TargetFile') or d.get('file_path') or (t.get('file_path') if isinstance(t,dict) else '') or '')\" 2>/dev/null || true); if [ -n \"$FILE\" ] && printf '%s' \"$FILE\" | grep -q 'crates/actant-contracts/'; then cargo run -p actant-contracts --bin actant-contracts -- check-compat; fi",
4949
"timeout": 30
5050
}
5151
]

‎.agent/rules/bindings.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
2. **No New Public Types**:
66
Never introduce any public type outside of `actant-contracts`. Edit `crates/actant-contracts/src/lib.rs` first.
77
3. **No Hand-editing Generated Code**:
8-
Do NOT hand-edit anything under `packages/actant-types/src/generated/*`. They are regenerated via `cargo run -p actant-contracts -- codegen-ts`.
8+
Do NOT hand-edit anything under `packages/actant-types/src/generated/*`. They are regenerated via `cargo run -p actant-contracts --bin actant-contracts -- codegen-ts`.

‎.agent/skills/codegen/SKILL.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ Use this skill when you modify any public types or contracts in `crates/actant-c
1111
1. **Check Compatibility first**:
1212
Run the contract compatibility check before doing any code generation:
1313
```bash
14-
cargo run -p actant-contracts -- check-compat
14+
cargo run -p actant-contracts --bin actant-contracts -- check-compat
1515
```
1616
2. **Regenerate TypeScript Types**:
1717
Run the codegen command:
1818
```bash
19-
cargo run -p actant-contracts -- codegen-ts
19+
cargo run -p actant-contracts --bin actant-contracts -- codegen-ts
2020
```
2121
3. **Commit Together**:
2222
Ensure both the Rust contract changes and the regenerated TS types under `packages/actant-types/src/generated/*` are committed in the same PR/commit.

‎.agent/workflows/codegen.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ description: Run Rust contract check-compat, TS type codegen, and pnpm rebuild.
55
// turbo-all
66

77
1. Run compatibility checks on Rust contracts:
8-
cargo run -p actant-contracts -- check-compat
8+
cargo run -p actant-contracts --bin actant-contracts -- check-compat
99
2. Generate TypeScript bindings from contracts:
10-
cargo run -p actant-contracts -- codegen-ts
10+
cargo run -p actant-contracts --bin actant-contracts -- codegen-ts
1111
3. Build all TypeScript packages to apply the changes:
1212
pnpm -r build

‎.agent/workflows/finish-with-coderabbit.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Use this workflow before final completion of code-changing tasks, and when the u
2121
cargo check -p <crate> --all-targets
2222

2323
5. If contracts changed, run:
24-
cargo run -p actant-contracts -- check-compat
25-
cargo run -p actant-contracts -- codegen-ts
24+
cargo run -p actant-contracts --bin actant-contracts -- check-compat
25+
cargo run -p actant-contracts --bin actant-contracts -- codegen-ts
2626

2727
6. If code changed and graphify-out/graph.json exists, run:
2828
graphify update .

‎.antigravityrules‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ and get a complete, replayable trace for free.
3939
add a struct that crosses a crate boundary or appears in the public
4040
API, edit `crates/actant-contracts/src/lib.rs` first.
4141
2. **Never hand-edit `packages/actant-types/src/generated/*`.** Those
42-
files are produced by `cargo run -p actant-contracts -- codegen-ts`.
42+
files are produced by `cargo run -p actant-contracts --bin actant-contracts -- codegen-ts`.
4343
If the generated TypeScript is wrong, fix the Rust contract and
4444
regenerate.
4545
3. **The default install path is `npm install @actantdb/all`.** Do
@@ -79,7 +79,7 @@ and get a complete, replayable trace for free.
7979
- **Rust tests (per crate):** `cargo test -p <crate> <test_name>`
8080
- **TypeScript build:** `pnpm -r build`
8181
- **TypeScript tests:** `pnpm -r test` or `pnpm --filter @actantdb/<pkg> test`
82-
- **Regenerate TS types from contracts:** `cargo run -p actant-contracts -- codegen-ts`
82+
- **Regenerate TS types from contracts:** `cargo run -p actant-contracts --bin actant-contracts -- codegen-ts`
8383
- **Smoke test (required green on every PR):** `pnpm smoke`
8484
- **Verify Specs compliance:** `just verify-specs`
8585
- **Verify Agent compliance:** `just verify-agents`
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
name: design-system-colosseum
3+
description: Creates implementation-ready design-system guidance with tokens, component behavior, and accessibility standards. Use when creating or updating UI rules, component specifications, or design-system documentation.
4+
---
5+
6+
<!-- TYPEUI_SH_MANAGED_START -->
7+
8+
# Colosseum
9+
10+
## Mission
11+
Deliver implementation-ready design-system guidance for Colosseum that can be applied consistently across dashboard web app interfaces.
12+
13+
## Brand
14+
- Product/brand: Colosseum
15+
- URL: https://arena.colosseum.org/hackathon
16+
- Audience: authenticated users and operators
17+
- Product surface: dashboard web app
18+
19+
## Style Foundations
20+
- Visual style: structured, accessible, implementation-first
21+
- Main font style: `font.family.primary=Inter`, `font.family.stack=Inter, Arial, sans-serif`, `font.size.base=16px`, `font.weight.base=400`, `font.lineHeight.base=24px`
22+
- Typography scale: `font.size.xs=12px`, `font.size.sm=14px`, `font.size.md=16px`, `font.size.lg=18px`, `font.size.xl=20px`, `font.size.2xl=24px`
23+
- Color palette: `color.text.primary=#a0a0a0`, `color.surface.base=#000000`, `color.text.tertiary=#ededed`, `color.text.inverse=#25d0ab`, `color.surface.muted=#0f0f0f`, `color.surface.raised=#2e2e2e`, `color.surface.strong=#f7f7f7`, `color.border.default=#e5e7eb`, `color.border.strong=#01453d`
24+
- Spacing scale: `space.1=4px`, `space.2=6px`, `space.3=8px`, `space.4=12px`, `space.5=16px`, `space.6=24px`, `space.7=32px`
25+
- Radius/shadow/motion tokens: `radius.xs=4px`, `radius.sm=6px` | `shadow.1=rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 3px, rgba(0, 0, 0, 0) 0px 0px 0px 0px` | `motion.duration.instant=100ms`, `motion.duration.fast=150ms`, `motion.duration.normal=200ms`
26+
27+
## Accessibility
28+
- Target: WCAG 2.2 AA
29+
- Keyboard-first interactions required.
30+
- Focus-visible rules required.
31+
- Contrast constraints required.
32+
33+
## Writing Tone
34+
concise, confident, implementation-focused
35+
36+
## Rules: Do
37+
- Use semantic tokens, not raw hex values in component guidance.
38+
- Every component must define required states: default, hover, focus-visible, active, disabled, loading, error.
39+
- Responsive behavior and edge-case handling should be specified for every component family.
40+
- Accessibility acceptance criteria must be testable in implementation.
41+
42+
## Rules: Don't
43+
- Do not allow low-contrast text or hidden focus indicators.
44+
- Do not introduce one-off spacing or typography exceptions.
45+
- Do not use ambiguous labels or non-descriptive actions.
46+
47+
## Guideline Authoring Workflow
48+
1. Restate design intent in one sentence.
49+
2. Define foundations and tokens.
50+
3. Define component anatomy, variants, and interactions.
51+
4. Add accessibility acceptance criteria.
52+
5. Add anti-patterns and migration notes.
53+
6. End with QA checklist.
54+
55+
## Required Output Structure
56+
- Context and goals
57+
- Design tokens and foundations
58+
- Component-level rules (anatomy, variants, states, responsive behavior)
59+
- Accessibility requirements and testable acceptance criteria
60+
- Content and tone standards with examples
61+
- Anti-patterns and prohibited implementations
62+
- QA checklist
63+
64+
## Component Rule Expectations
65+
- Include keyboard, pointer, and touch behavior.
66+
- Include spacing and typography token requirements.
67+
- Include long-content, overflow, and empty-state handling.
68+
69+
## Quality Gates
70+
- Every non-negotiable rule must use "must".
71+
- Every recommendation should use "should".
72+
- Every accessibility rule must be testable in implementation.
73+
- Prefer system consistency over local visual exceptions.
74+
75+
<!-- TYPEUI_SH_MANAGED_END -->

‎.codex/hooks/actantdb-context.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ case "$event" in
6363
context=""
6464
case "$prompt_lc" in
6565
*contract*|*public\ type*|*generated\ type*|*codegen*|*binding*)
66-
context="Contract changes must start in crates/actant-contracts. Run cargo run -p actant-contracts -- check-compat, then cargo run -p actant-contracts -- codegen-ts. Never hand-edit packages/actant-types/src/generated."
66+
context="Contract changes must start in crates/actant-contracts. Run cargo run -p actant-contracts --bin actant-contracts -- check-compat, then cargo run -p actant-contracts --bin actant-contracts -- codegen-ts. Never hand-edit packages/actant-types/src/generated."
6767
;;
6868
*graphify*|*architecture*|*dependency*|*relationship*|*where\ is*|*how\ does*)
6969
if [ -f graphify-out/graph.json ]; then
@@ -105,7 +105,7 @@ case "$event" in
105105
context=""
106106
case "$target" in
107107
*"crates/actant-contracts/"*)
108-
context="Contract source changed. Run cargo run -p actant-contracts -- check-compat and cargo run -p actant-contracts -- codegen-ts before finishing."
108+
context="Contract source changed. Run cargo run -p actant-contracts --bin actant-contracts -- check-compat and cargo run -p actant-contracts --bin actant-contracts -- codegen-ts before finishing."
109109
;;
110110
*"packages/actant-types/src/generated/"*)
111111
context="Generated bindings are not hand-edited in ActantDB. Change crates/actant-contracts and regenerate instead."

‎.cursorrules‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ and get a complete, replayable trace for free.
3939
add a struct that crosses a crate boundary or appears in the public
4040
API, edit `crates/actant-contracts/src/lib.rs` first.
4141
2. **Never hand-edit `packages/actant-types/src/generated/*`.** Those
42-
files are produced by `cargo run -p actant-contracts -- codegen-ts`.
42+
files are produced by `cargo run -p actant-contracts --bin actant-contracts -- codegen-ts`.
4343
If the generated TypeScript is wrong, fix the Rust contract and
4444
regenerate.
4545
3. **The default install path is `npm install @actantdb/all`.** Do
@@ -79,7 +79,7 @@ and get a complete, replayable trace for free.
7979
- **Rust tests (per crate):** `cargo test -p <crate> <test_name>`
8080
- **TypeScript build:** `pnpm -r build`
8181
- **TypeScript tests:** `pnpm -r test` or `pnpm --filter @actantdb/<pkg> test`
82-
- **Regenerate TS types from contracts:** `cargo run -p actant-contracts -- codegen-ts`
82+
- **Regenerate TS types from contracts:** `cargo run -p actant-contracts --bin actant-contracts -- codegen-ts`
8383
- **Smoke test (required green on every PR):** `pnpm smoke`
8484
- **Verify Specs compliance:** `just verify-specs`
8585
- **Verify Agent compliance:** `just verify-agents`

‎.githooks/pre-commit‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if has_staged '^packages/actant-types/src/generated/' && ! has_staged '^crates/a
6060
fi
6161

6262
if has_staged '^crates/actant-contracts/'; then
63-
cargo run -p actant-contracts -- check-compat
63+
cargo run -p actant-contracts --bin actant-contracts -- check-compat
6464
fi
6565

6666
if has_staged '^specs/.*\.md$'; then

0 commit comments

Comments
 (0)