mirror of
https://github.com/openprose/prose.git
synced 2026-09-19 05:55:05 +08:00
9248d949e7
The open-prose skill ships as a plain folder, so everything under skills/open-prose/examples/ reaches every install. Each runtime example shipped a committed replay/ state-dir (around 480 binary world-model files), a generator, and a test suite wired to the workspace through a dist alias with no local package.json. That machinery is internal validation, not the template a user lifts: it cannot run from a copied folder, and it shipped generated artifacts nobody should copy. Keep the shipped examples to what a user actually adapts, and move the validation into the repo's test tree: - Move each example's tests, generator, and committed replay/ into tests/open-prose/examples/<name>/. The shipped example is now its .prose contracts under src/, a README, and a .gitignore. - Re-point the vitest include and the test scripts; the byte-deterministic offline coverage runs unchanged, just rooted under tests/. - Rewrite the example READMEs to point at the reactor CLI for producing and replaying a run, and drop the stale committed-fixture sections. - Update the examples-gate workflow description to match the new layout. No language, CLI, or runtime behavior changes, and the example contracts are untouched. Verified with the offline gate (REACTOR_OFFLINE=1): the conformance suite, the relocated example tests, and the eval harness all pass.
19 lines
1.2 KiB
JSON
19 lines
1.2 KiB
JSON
{
|
|
"name": "openprose-prose",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"packageManager": "pnpm@9.15.0",
|
|
"scripts": {
|
|
"build": "pnpm --filter @openprose/reactor build && pnpm --filter @openprose/reactor-cli build && pnpm --filter @openprose/reactor-devtools build",
|
|
"test": "pnpm --filter @openprose/reactor test && pnpm --filter @openprose/reactor-cli test && pnpm --filter @openprose/reactor-devtools test && pnpm test:skill && pnpm test:examples",
|
|
"test:reactor:offline": "REACTOR_OFFLINE=1 pnpm --filter @openprose/reactor test && REACTOR_OFFLINE=1 pnpm --filter @openprose/reactor-cli test && REACTOR_OFFLINE=1 pnpm --filter @openprose/reactor-devtools test",
|
|
"test:skill": "REACTOR_OFFLINE=1 vitest run tests/open-prose",
|
|
"test:examples": "REACTOR_OFFLINE=1 vitest run tests/open-prose/examples && pnpm test:eval:offline",
|
|
"test:eval:offline": "REACTOR_OFFLINE=1 node --test tools/eval-harness/eval-harness.test.mjs",
|
|
"lint": "pnpm --filter @openprose/reactor run lint --if-present && pnpm --filter @openprose/reactor-cli run lint --if-present && pnpm --filter @openprose/reactor-devtools run lint --if-present"
|
|
},
|
|
"devDependencies": {
|
|
"vitest": "^4.1.8"
|
|
}
|
|
}
|