stapes-adsa 1.1.1 → 1.1.2

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/AGENTS.md CHANGED
@@ -55,7 +55,7 @@ only our marker block, leaves Husky / lefthook / etc. intact.
55
55
  Default (human):
56
56
 
57
57
  ```
58
- stapes-adsa@1.1.0
58
+ stapes-adsa@1.1.2
59
59
 
60
60
  ✗ fast-path-with-io 1 finding(s)
61
61
  src/auth/verify.ts:12:1
@@ -70,8 +70,8 @@ stapes-adsa@1.1.0
70
70
  ```json
71
71
  {
72
72
  "startedAt": "2026-09-01T10:49:45.195Z",
73
- "tool": "stapes-adsa@1.1.0",
74
- "version": "1.1.0",
73
+ "tool": "stapes-adsa@1.1.2",
74
+ "version": "1.1.2",
75
75
  "exitCode": 1,
76
76
  "checkCount": 5,
77
77
  "failed": 1,
@@ -166,7 +166,7 @@ The other three checks (`fast-path-with-io`, `decision-router`, `log-schema`) ar
166
166
  }
167
167
  ```
168
168
 
169
- ## Known limitations (v1.1.0)
169
+ ## Known limitations (v1.1.2)
170
170
 
171
171
  - TypeScript only. No Python, Go, Rust, Java support.
172
172
  - No per-check config files. The five checks have fixed heuristics.
@@ -202,7 +202,7 @@ Built by stapes.
202
202
  <!-- gitnexus:start -->
203
203
  # GitNexus — Code Intelligence
204
204
 
205
- This project is indexed by GitNexus as **adsa** (472 symbols, 503 relationships, 0 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
205
+ This project is indexed by GitNexus as **adsa** (492 symbols, 528 relationships, 0 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
206
206
 
207
207
  > If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.
208
208
 
package/CHANGELOG.md CHANGED
@@ -5,6 +5,32 @@ All notable changes to `stapes-adsa` are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.1.2] - 2026-11-08
9
+
10
+ ### Fixed
11
+
12
+ - **The documented import path now resolves.** The README tells users to
13
+ `import { withAdsaLogging } from "stapes-adsa/lib/instrument"`. That
14
+ import failed with `ERR_MODULE_NOT_FOUND` in every consumer install
15
+ from v1.0.0 through v1.1.1. The package published `dist/` but declared
16
+ no `exports` map, so the documented path resolved to nothing.
17
+ The package now declares an `exports` map. `stapes-adsa/lib/instrument`
18
+ and the package root `stapes-adsa` both resolve to the helper. The deep
19
+ path `stapes-adsa/dist/lib/instrument.js` keeps working, so no upgrade
20
+ breaks an existing import.
21
+
22
+ ### Documentation
23
+
24
+ - The README and AGENTS.md sample output names the current version.
25
+
26
+ ### Tests
27
+
28
+ - `test/package-exports.test.ts` packs the package, installs the tarball
29
+ into a scratch project, and imports it through each published path.
30
+ The defect that shipped through three releases is now a failing build.
31
+ - `test/doc-version.test.ts` fails the build when a version bump leaves
32
+ the documentation behind.
33
+
8
34
  ## [1.1.1] - 2026-11-08
9
35
 
10
36
  ### Fixed
package/README.md CHANGED
@@ -52,7 +52,7 @@ commit. Warnings print and let the commit pass.
52
52
 
53
53
  ```text
54
54
  $ npx stapes-adsa
55
- stapes-adsa@1.1.0
55
+ stapes-adsa@1.1.2
56
56
 
57
57
  ✗ fast-path-with-io 1 finding(s)
58
58
  src/auth/verify.ts:12:1
@@ -76,8 +76,8 @@ npx stapes-adsa --json | jq '.exitCode, .findings[].message'
76
76
  ```json
77
77
  {
78
78
  "startedAt": "2026-09-01T10:49:45.195Z",
79
- "tool": "stapes-adsa@1.1.0",
80
- "version": "1.1.0",
79
+ "tool": "stapes-adsa@1.1.2",
80
+ "version": "1.1.2",
81
81
  "exitCode": 1,
82
82
  "checkCount": 5,
83
83
  "failed": 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stapes-adsa",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "AST-based ADSA (Adaptive Dual-System Architecture) linter for TypeScript. Flags slow paths without logging, fast paths doing I/O, decision points without routing, async boundaries missing the adsa_path log line, and invalid {adsa_path, adsa_area} shapes. Auto-fix safe insertions. Install as pre-commit hook. Stable --json for AI agents. Zero telemetry. MIT.",
5
5
  "license": "MIT",
6
6
  "author": "stapesco <github@stapes.co.za>",
@@ -34,6 +34,20 @@
34
34
  "bin": {
35
35
  "stapes-adsa": "dist/cli.js"
36
36
  },
37
+ "main": "./dist/lib/instrument.js",
38
+ "types": "./dist/lib/instrument.d.ts",
39
+ "exports": {
40
+ ".": {
41
+ "types": "./dist/lib/instrument.d.ts",
42
+ "import": "./dist/lib/instrument.js"
43
+ },
44
+ "./lib/instrument": {
45
+ "types": "./dist/lib/instrument.d.ts",
46
+ "import": "./dist/lib/instrument.js"
47
+ },
48
+ "./dist/*": "./dist/*",
49
+ "./package.json": "./package.json"
50
+ },
37
51
  "files": [
38
52
  "dist",
39
53
  "README.md",