@its-not-rocket-science/ananke 0.1.2 → 0.1.3
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/CHANGELOG.md +14 -0
- package/dist/src/index.d.ts +1 -26
- package/dist/src/index.js +14 -42
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,20 @@ Versioning follows [Semantic Versioning](https://semver.org/).
|
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
+
## [0.1.3] — 2026-03-20
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- `src/index.ts` (CE-4) now exports only the Tier 1 stable surface defined in `STABLE_API.md`.
|
|
18
|
+
Tier 2 (experimental) and Tier 3 (internal) exports have been removed from the root barrel
|
|
19
|
+
and are accessible via direct module paths (e.g. `dist/src/sim/aging.js`).
|
|
20
|
+
- `createWorld`, `loadScenario`, `validateScenario`, `ARCHETYPE_MAP`, `ITEM_MAP` promoted to
|
|
21
|
+
Tier 1 (were incorrectly placed under Tier 3 in 0.1.2).
|
|
22
|
+
- `describeCharacter`, `formatCharacterSheet`, `formatOneLine` added to root barrel (were
|
|
23
|
+
listed as Tier 1 in `STABLE_API.md` but missing from the 0.1.2 export).
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
13
27
|
## [0.1.2] — 2026-03-19
|
|
14
28
|
|
|
15
29
|
### Added
|
package/dist/src/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./types.js";
|
|
|
3
3
|
export * from "./archetypes.js";
|
|
4
4
|
export * from "./generate.js";
|
|
5
5
|
export * from "./equipment.js";
|
|
6
|
+
export * from "./describe.js";
|
|
6
7
|
export * from "./sim/vec3.js";
|
|
7
8
|
export * from "./sim/condition.js";
|
|
8
9
|
export * from "./sim/injury.js";
|
|
@@ -14,31 +15,5 @@ export * from "./sim/world.js";
|
|
|
14
15
|
export * from "./model3d.js";
|
|
15
16
|
export * from "./replay.js";
|
|
16
17
|
export * from "./bridge/index.js";
|
|
17
|
-
export * from "./channels.js";
|
|
18
|
-
export * from "./traits.js";
|
|
19
|
-
export * from "./derive.js";
|
|
20
|
-
export * from "./sim/intent.js";
|
|
21
|
-
export * from "./sim/action.js";
|
|
22
|
-
export * from "./sim/combat.js";
|
|
23
|
-
export * from "./quest.js";
|
|
24
|
-
export * from "./quest-generators.js";
|
|
25
|
-
export * from "./relationships.js";
|
|
26
|
-
export * from "./relationships-effects.js";
|
|
27
|
-
export * from "./inventory.js";
|
|
28
|
-
export * from "./item-durability.js";
|
|
29
|
-
export * from "./settlement.js";
|
|
30
|
-
export * from "./settlement-services.js";
|
|
31
|
-
export * from "./chronicle.js";
|
|
32
|
-
export * from "./story-arcs.js";
|
|
33
|
-
export * from "./narrative-render.js";
|
|
34
|
-
export * from "./world-generation.js";
|
|
35
|
-
export * from "./sim/trace.js";
|
|
36
|
-
export * from "./rng.js";
|
|
37
|
-
export * from "./dist.js";
|
|
38
|
-
export * from "./lod.js";
|
|
39
|
-
export * from "./sim/impairment.js";
|
|
40
|
-
export * from "./sim/indexing.js";
|
|
41
|
-
export * from "./sim/tuning.js";
|
|
42
|
-
export * from "./sim/testing.js";
|
|
43
18
|
export * from "./world-factory.js";
|
|
44
19
|
export * from "./scenario.js";
|
package/dist/src/index.js
CHANGED
|
@@ -1,56 +1,28 @@
|
|
|
1
1
|
// ── Tier 1 — Stable host API ─────────────────────────────────────────────────
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
|
|
2
|
+
// This is the only import path companion projects and hosts should use:
|
|
3
|
+
// import { stepWorld, createWorld, q, SCALE } from "@its-not-rocket-science/ananke"
|
|
4
|
+
//
|
|
5
|
+
// Breaking changes to any export here require a major semver bump (x.0.0) and
|
|
6
|
+
// a migration guide in CHANGELOG.md. See STABLE_API.md for the full contract.
|
|
7
|
+
//
|
|
8
|
+
// Tier 2 (experimental) and Tier 3 (internal) exports are accessible via direct
|
|
9
|
+
// module imports, e.g. import { stepAging } from ".../dist/src/sim/aging.js"
|
|
10
|
+
export * from "./units.js"; // q(), SCALE, qMul, qDiv, clampQ, mulDiv, to, from, sqrtQ
|
|
6
11
|
export * from "./types.js"; // IndividualAttributes, core scalar types
|
|
7
12
|
export * from "./archetypes.js"; // Archetype, BodyPlan, built-in species presets
|
|
8
13
|
export * from "./generate.js"; // generateIndividual()
|
|
9
14
|
export * from "./equipment.js"; // WEAPONS database, EquipmentCatalogue
|
|
10
|
-
export * from "./
|
|
15
|
+
export * from "./describe.js"; // describeCharacter(), formatCharacterSheet(), formatOneLine()
|
|
16
|
+
export * from "./sim/vec3.js"; // Vec3, lerpVec3, addVec3
|
|
11
17
|
export * from "./sim/condition.js"; // ConditionSnapshot, condition constants
|
|
12
18
|
export * from "./sim/injury.js"; // InjuryRegion, BodyRegion, injury constants
|
|
13
19
|
export * from "./sim/entity.js"; // Entity (stable fields: id, pos, mass_kg, attributes…)
|
|
14
20
|
export * from "./sim/commands.js"; // CommandMap, EntityCommand, action verbs
|
|
15
21
|
export * from "./sim/kernel.js"; // stepWorld(), applyImpactToInjury(), applyExplosion()
|
|
16
22
|
export * from "./sim/body.js"; // BodyPlan, BodySegment, humanoid / quadruped plans
|
|
17
|
-
export * from "./sim/world.js"; // WorldState, KernelContext
|
|
18
|
-
export * from "./model3d.js"; // extractRigSnapshots(), deriveAnimationHints(), RigSnapshot, AnimationHints
|
|
23
|
+
export * from "./sim/world.js"; // WorldState, KernelContext
|
|
24
|
+
export * from "./model3d.js"; // extractRigSnapshots(), deriveAnimationHints(), RigSnapshot, AnimationHints
|
|
19
25
|
export * from "./replay.js"; // ReplayRecorder, replayTo(), serializeReplay(), deserializeReplay()
|
|
20
|
-
export * from "./bridge/index.js"; // BridgeEngine, InterpolatedState, BridgeConfig
|
|
21
|
-
// ── Tier 2 — Advanced / experimental API ─────────────────────────────────────
|
|
22
|
-
// Tested and usable subsystems under active development. May change between
|
|
23
|
-
// minor versions (0.x.0); CHANGELOG.md will document any breaking change.
|
|
24
|
-
// Reference STABLE_API.md §Tier 2 for the full export list per module.
|
|
25
|
-
export * from "./channels.js"; // damage channel constants (BLUNT, SLASH, …)
|
|
26
|
-
export * from "./traits.js"; // trait descriptors
|
|
27
|
-
export * from "./derive.js"; // derived attribute helpers
|
|
28
|
-
export * from "./sim/intent.js"; // IntentMap, buildIntent()
|
|
29
|
-
export * from "./sim/action.js"; // ActionResult, resolveAction()
|
|
30
|
-
export * from "./sim/combat.js"; // resolveHit(), resolveParry(), applyCombat()
|
|
31
|
-
export * from "./quest.js"; // Quest, QuestObjective, questStep()
|
|
32
|
-
export * from "./quest-generators.js"; // generateQuest(), generateQuestChain()
|
|
33
|
-
export * from "./relationships.js"; // RelationshipMap, updateRelationship()
|
|
34
|
-
export * from "./relationships-effects.js"; // applyRelationshipEffect()
|
|
35
|
-
export * from "./inventory.js"; // Inventory, equipItem(), addItemToInventory()
|
|
36
|
-
export * from "./item-durability.js"; // durability helpers, resolveRepair()
|
|
37
|
-
export * from "./settlement.js"; // Settlement, stepSettlement()
|
|
38
|
-
export * from "./settlement-services.js"; // service resolution helpers
|
|
39
|
-
export * from "./chronicle.js"; // ChronicleEntry, addChronicleEntry()
|
|
40
|
-
export * from "./story-arcs.js"; // StoryArc, detectArcs()
|
|
41
|
-
export * from "./narrative-render.js"; // renderEntry(), renderChronicle(), generateNarrative()
|
|
42
|
-
export * from "./world-generation.js"; // WorldTemplate, generateWorld()
|
|
43
|
-
export * from "./sim/trace.js"; // SimTrace, traceStep() — debugging / profiling
|
|
44
|
-
// ── Tier 3 — Internal / kernel API ───────────────────────────────────────────
|
|
45
|
-
// Exported for power users and diagnostic tooling. Not stability-guaranteed;
|
|
46
|
-
// may change at any time without a changelog entry. Prefer Tier 1/2 surfaces
|
|
47
|
-
// in production host code. See STABLE_API.md §Tier 3 for rationale.
|
|
48
|
-
export * from "./rng.js"; // makeRng(), eventSeed() — RNG internals
|
|
49
|
-
export * from "./dist.js"; // distribution primitives
|
|
50
|
-
export * from "./lod.js"; // level-of-detail helpers
|
|
51
|
-
export * from "./sim/impairment.js"; // low-level impairment accumulators
|
|
52
|
-
export * from "./sim/indexing.js"; // SpatialIndex internals
|
|
53
|
-
export * from "./sim/tuning.js"; // kernel tuning constants (may be adjusted)
|
|
54
|
-
export * from "./sim/testing.js"; // mkHumanoidEntity() and other test helpers
|
|
26
|
+
export * from "./bridge/index.js"; // BridgeEngine, InterpolatedState, BridgeConfig
|
|
55
27
|
export * from "./world-factory.js"; // createWorld(), EntitySpec, ARCHETYPE_MAP, ITEM_MAP
|
|
56
28
|
export * from "./scenario.js"; // loadScenario(), validateScenario(), AnankeScenario
|