@webpresso/agent-config 0.3.0 → 0.3.1

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/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @webpresso/agent-config
2
+
3
+ Shared consumer-facing config presets and low-level primitive re-exports for
4
+ webpresso consumers.
5
+
6
+ `@webpresso/agent-config` is the package consumers install. It owns the stable
7
+ config surface (`/vitest/*`, `/tsconfig/*`, `/stryker`, `/workers-test`) and now
8
+ also re-exports the shared low-level primitives sourced from
9
+ [`@webpresso/agent-core`](../agent-core/README.md).
10
+
11
+ > Consumers should import these APIs from `@webpresso/agent-config`, **not**
12
+ > from `@webpresso/agent-core` and never from `@webpresso/agent-kit`.
13
+
14
+ ## Consumer primitive subpaths
15
+
16
+ | Subpath | Purpose |
17
+ | ----------------------------------- | ------------------------------------------------------------------------------------- |
18
+ | `@webpresso/agent-config/repo-root` | Strict repo-root discovery (`findRepoRoot`, `resolveFromRepoRoot`, `walkToRepoRoot`). |
19
+ | `@webpresso/agent-config/process` | Process-tree signalling and graceful-then-forceful termination. |
20
+ | `@webpresso/agent-config/e2e` | Open-port resolution, HTTP health polling, fail-closed secret-env resolution. |
21
+ | `@webpresso/agent-config/deploy` | Semantic release-version assertion and release-metadata validation. |
22
+ | `@webpresso/agent-config/dev` | Workspace-local binary/command resolution and child-process env construction. |
23
+
24
+ ## Existing config/test surface
25
+
26
+ `@webpresso/agent-config` continues to publish:
27
+
28
+ - `@webpresso/agent-config/tsconfig/*`
29
+ - `@webpresso/agent-config/vitest/*`
30
+ - `@webpresso/agent-config/stryker`
31
+ - `@webpresso/agent-config/workers-test`
32
+
33
+ ## Relationship to other packages
34
+
35
+ - `@webpresso/agent-config` — consumer-installed package surface
36
+ - `@webpresso/agent-core` — internal shared leaf that backs the primitive re-exports
37
+ - `@webpresso/agent-kit` — internal `wp` engine / CLI and broader public subpath host
@@ -1,3 +1,4 @@
1
1
  {
2
- "type": "module"
2
+ "type": "module",
3
+ "sideEffects": false
3
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webpresso/agent-config",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "private": false,
5
5
  "description": "Shared vitest, tsconfig, stryker, and workers-test config for webpresso consumers. Binary-free — pure test/config tooling.",
6
6
  "homepage": "https://github.com/webpresso/agent-kit#readme",
@@ -22,16 +22,16 @@
22
22
  "type": "module",
23
23
  "sideEffects": false,
24
24
  "exports": {
25
- "./repo-root": {
25
+ "./deploy": {
26
26
  "import": {
27
- "types": "./dist/esm/repo-root/index.d.ts",
28
- "default": "./dist/esm/repo-root/index.js"
27
+ "types": "./dist/esm/deploy/index.d.ts",
28
+ "default": "./dist/esm/deploy/index.js"
29
29
  }
30
30
  },
31
- "./process": {
31
+ "./dev": {
32
32
  "import": {
33
- "types": "./dist/esm/process/index.d.ts",
34
- "default": "./dist/esm/process/index.js"
33
+ "types": "./dist/esm/dev/index.d.ts",
34
+ "default": "./dist/esm/dev/index.js"
35
35
  }
36
36
  },
37
37
  "./e2e": {
@@ -40,16 +40,16 @@
40
40
  "default": "./dist/esm/e2e/index.js"
41
41
  }
42
42
  },
43
- "./deploy": {
43
+ "./process": {
44
44
  "import": {
45
- "types": "./dist/esm/deploy/index.d.ts",
46
- "default": "./dist/esm/deploy/index.js"
45
+ "types": "./dist/esm/process/index.d.ts",
46
+ "default": "./dist/esm/process/index.js"
47
47
  }
48
48
  },
49
- "./dev": {
49
+ "./repo-root": {
50
50
  "import": {
51
- "types": "./dist/esm/dev/index.d.ts",
52
- "default": "./dist/esm/dev/index.js"
51
+ "types": "./dist/esm/repo-root/index.d.ts",
52
+ "default": "./dist/esm/repo-root/index.js"
53
53
  }
54
54
  },
55
55
  "./stryker": {
@@ -154,11 +154,11 @@
154
154
  "lint:pkg": "publint && attw --pack . --profile esm-only"
155
155
  },
156
156
  "dependencies": {
157
- "@webpresso/agent-core": "0.1.0",
158
- "@vitejs/plugin-react": "^6.0.2",
159
- "vite": "^8.0.14",
160
- "vite-plus": "^0.1.22",
161
- "vitest": "^4.1.7"
157
+ "@vitejs/plugin-react": "^6.0.3",
158
+ "@webpresso/agent-core": "0.1.1",
159
+ "vite": "^8.1.0",
160
+ "vite-plus": "^0.2.1",
161
+ "vitest": "^4.1.9"
162
162
  },
163
163
  "peerDependencies": {
164
164
  "@cloudflare/vitest-pool-workers": "*",
@@ -201,11 +201,11 @@
201
201
  "src/**/__fixtures__/**"
202
202
  ],
203
203
  "exports": {
204
- "./repo-root": "./src/repo-root/index.ts",
205
- "./process": "./src/process/index.ts",
206
- "./e2e": "./src/e2e/index.ts",
207
204
  "./deploy": "./src/deploy/index.ts",
208
205
  "./dev": "./src/dev/index.ts",
206
+ "./e2e": "./src/e2e/index.ts",
207
+ "./process": "./src/process/index.ts",
208
+ "./repo-root": "./src/repo-root/index.ts",
209
209
  "./stryker": "./src/stryker/index.ts",
210
210
  "./tsconfig/base.json": "./src/tsconfig/base.json",
211
211
  "./tsconfig/cloudflare.json": "./src/tsconfig/cloudflare.json",