@akagilnc/pi-workflow-roles 0.1.5907 → 0.1.5918

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 CHANGED
@@ -138,6 +138,18 @@ ak-role analyst
138
138
  ak-role --model <provider/model[:thinking]> resume <runId> "<ruling>"
139
139
  ```
140
140
 
141
+ ## Tests
142
+
143
+ During the [ADR 0090](docs/adr/0090-tests-run-on-vitest-fixtures-and-helpers-from-the-platform.md) expand phase, `pnpm run test:vitest` runs the migrated examples from all three projects; CI runs it alongside the unchanged `test:all`. For a focused run:
144
+
145
+ ```bash
146
+ pnpm exec vitest run --project unit test/unit/package-home-seam.test.ts
147
+ pnpm exec vitest run --project integration test/integration/public-cli-bin-startup.test.ts
148
+ pnpm exec vitest run --project package test/package/published-dist-import-closure.test.ts
149
+ ```
150
+
151
+ Project globs already cover the full tree, including `test/adjudication/` and root-level tests, but unfiltered runs still include cases awaiting migration. Progress uses the dot reporter; the full structured report is `.vitest/results.json`. The three examples temporarily select the native runner via `VITEST`; remove that selection when migrating their layers (#1247–#1250).
152
+
141
153
  ## Names
142
154
 
143
155
  Roster: [README.zh-CN.md](https://github.com/Akagilnc/ak-pi-workflow-roles/blob/main/README.zh-CN.md). Naming rule: [ADR 0051](https://github.com/Akagilnc/ak-pi-workflow-roles/blob/main/docs/adr/0051-roles-are-named-after-tang-song-offices.md).
package/README.zh-CN.md CHANGED
@@ -132,6 +132,10 @@ ak-role analyst
132
132
  ak-role --model <provider/model[:thinking]> resume <runId> "<裁定>"
133
133
  ```
134
134
 
135
+ ## 测试
136
+
137
+ Vitest 渐进迁移期间的聚焦命令、报告位置与旧入口共存说明见 [Tests](README.md#tests)。
138
+
135
139
  ## 班子(唐宋官署命名)
136
140
 
137
141
  名号判据、朝廷对应与机器键边界见 [ADR 0051](https://github.com/Akagilnc/ak-pi-workflow-roles/blob/main/docs/adr/0051-roles-are-named-after-tang-song-offices.md)。下表为名号索引。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akagilnc/pi-workflow-roles",
3
- "version": "0.1.5907",
3
+ "version": "0.1.5918",
4
4
  "description": "Soul-bound workflow roles for Pi",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -48,6 +48,7 @@
48
48
  "test:fast": "node --import tsx --import ./scripts/test-process-env-preload.mjs --test-timeout=300000 --test-reporter=dot --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=node-test-report.txt --test test/unit/**/*.test.ts test/contract/**/*.test.ts",
49
49
  "test:integration": "node --import tsx --import ./scripts/test-process-env-preload.mjs --test-reporter=dot --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=node-test-report.txt --test test/unit/**/*.test.ts test/contract/**/*.test.ts test/integration/**/*.test.ts",
50
50
  "test:all": "node scripts/run-test-all.mjs",
51
+ "test:vitest": "vitest run test/unit/package-home-seam.test.ts test/integration/public-cli-bin-startup.test.ts test/package/published-dist-import-closure.test.ts",
51
52
  "test:adjudication": "node --import tsx --import ./scripts/test-process-env-preload.mjs --test-reporter=dot --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=node-test-report.txt --test test/adjudication/**/*.test.ts",
52
53
  "typecheck": "tsc --noEmit",
53
54
  "migrate:book-topology": "node dist/migrate-book-topology.js"
@@ -80,7 +81,8 @@
80
81
  "@types/node": "latest",
81
82
  "esbuild": "^0.28.1",
82
83
  "tsx": "latest",
83
- "typescript": "latest"
84
+ "typescript": "latest",
85
+ "vitest": "^5.0.5"
84
86
  },
85
87
  "repository": {
86
88
  "type": "git",