@trajectonomics/sim 0.0.0-stage → 0.1.0-alpha.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 excited.live
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,46 @@
1
- # Temporary Holding Version
1
+ # sim-core
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Pure, deterministic personal-finance projection engine.
4
+
5
+ ## Overview
6
+
7
+ `sim-core` models personal-finance projection as it works in the real world:
8
+ - **Pure and deterministic**: Given a baseline financial state and an event scenario, it produces a projection timeline. The as-of date is an input; there is no unseeded randomness and no internal wall clock.
9
+ - **Closed-world**: No callbacks or external plugin hooks; all behavior emerges from validated, structured data.
10
+ - **Strict environment**: Built with strict TypeScript with zero DOM, Node, or Bun ambient types in the core engine.
11
+
12
+ ## Scripts
13
+
14
+ - `bun run check`: Complete verification suite (`lint`, `typecheck`, `test`, `build`, `lint:package`).
15
+ - `bun run build`: Build ESM and CJS bundles via `tsdown`.
16
+ - `bun test`: Run test suite.
17
+ - `bun run typecheck`: Run strict TypeScript compiler checks.
18
+ - `bun run lint`: Lint with Biome (zero warnings allowed).
19
+ - `bun run format`: Auto-format and organize imports with Biome.
20
+ - `bun run lint:package`: Validate package manifests and type exports with `publint` and `@arethetypeswrong/cli`.
21
+
22
+ ## License
23
+
24
+ MIT
25
+
26
+ ## Releasing
27
+
28
+ Versions are computed, never edited by hand (`package.json` says `0.0.0-development` on purpose). `scripts/version.ts` reads the last `vX.Y.Z` git tag and the conventional commit messages since then:
29
+
30
+ | Commits since last release | Bump |
31
+ | --- | --- |
32
+ | any `feat!:` / `fix!:` / `BREAKING CHANGE:` | major (minor while on 0.x) |
33
+ | any `feat:` | minor |
34
+ | anything else | patch |
35
+
36
+ - **Alpha, automatic:** Every merge to `main` that touches code publishes `<next>-alpha.<n>` under the npm dist-tag `alpha` (`bun add @trajectonomics/sim@alpha`). `n` counts up per upcoming version.
37
+ - **Stable, on demand:** Actions → Release → Run workflow (on `main`). It publishes `<next>` under `latest`, tags `vX.Y.Z`, and creates a GitHub release with generated notes. The bump input overrides the computed one; pick `major` to cut 1.0.0.
38
+
39
+ PR titles must be conventional commits (enforced by the `PR title` check) because squash-merge commit subjects become the basis for version calculation.
40
+
41
+ Preview the next version locally:
42
+
43
+ ```bash
44
+ bun scripts/version.ts --channel alpha
45
+ bun scripts/version.ts --channel stable
46
+ ```