Skip to content

Commit 6c82188

Browse files
authored
Merge pull request #20 from thefrontside/project-tom-hagen
Project Tom Hagen: rebuild Configliere as a typed request router
2 parents f3e0957 + 1e65207 commit 6c82188

66 files changed

Lines changed: 5495 additions & 4804 deletions

Some content is hidden

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

‎.github/workflows/verify.yaml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@ jobs:
2828
- name: lint
2929
run: deno lint
3030

31+
- name: check
32+
run: deno check mod.ts
33+
3134
- name: test
32-
run: deno test
35+
run: deno task test

‎AGENTS.md‎

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
# Configliere
22

3-
Functional configuration parser that validates all program inputs (config files,
4-
environment variables, CLI options) ahead of time using a single schema based on
5-
the [Standard Schema](https://standardschema.dev) spec.
3+
Configuration for programs.
64

7-
## Architecture
5+
## Current state
86

9-
Configliere is a parser-combinator library. Small parsers compose into larger
10-
ones. Every parser implements the `Parser` interface from `lib/types.ts` and
11-
returns an `Increment` — either `Done|Fail` for single-step parsers or
12-
`Next|Fail` for multi-step (phased) parsers.
13-
14-
### Key design concepts
15-
16-
- **Source tracking**: Every parsed value carries metadata about where it came
7+
Configliere is undergoing a ground-up rebuild. No implementation architecture is
8+
established yet. Design from the bottom up with small API sketches, exact type
9+
expectations, and tests before implementation. Do not carry architectural
10+
assumptions forward from pre-rebuild history.
1711

1812
## Conventions
1913

@@ -30,20 +24,14 @@ Strongly prefer one-word variable and function names (e.g. `dir` not `tmpDir`,
3024
### Testing
3125

3226
- Framework: `@std/testing/bdd` (`describe`/`it`) with `@std/expect`
33-
- Schema library in tests: `arktype` (via `type()`)
34-
- Test helpers in `test/test-helpers.ts`: `parseOk()` and `parseNotOk()` wrap
35-
`parseSync` with assertions
36-
- Tests live in `test/` and mirror `lib/` module names (e.g.
37-
`test/field.test.ts`)
27+
- Tests live in `test/` and mirror the source layout.
3828

3929
### Runtime and tooling
4030

4131
- **Runtime**: Deno
4232
- **Registry**: JSR (`@frontside/configliere`)
43-
- **Linting**: `deno lint` (excludes `prefer-const` and `require-yield`)
44-
- **Testing**: `deno test`
45-
- **Examples**: Files in `examples/` must compile (`deno check`) and run
46-
(`deno run`) without errors
33+
- **Linting**: `deno lint` (excludes `prefer-const`)
34+
- **Testing**: `deno task test`
4735
- **Build**: `deno task build:npm` (dnt) and `deno task build:jsr`
4836

4937
### Dependencies

0 commit comments

Comments
 (0)