- POST /organization-records: sourcePaths must resolve (realpath) under a
registered library_root or downloader path-mapping host path; `..` and
symlink escapes rejected (400), dryRun included. Move requires an admin
session, or an API key with an automation_grant covering the entity or a
matching one-time approval (consumed on use), else 403. Manual Move from a
managed download_task with unsatisfied H&R returns 409 and opens a
decision; never silently downgraded to Copy.
- Series slot completion: total episode count is unknown while units are
provisional, so the slot is not satisfied and the subscription keeps
tracking; coverage is registered per actual file (creating provisional
episode units), and already_in_library files count as verified presence.
- POST /engine/runs/{id}/retry (admin): re-enqueue by original task name and
raw input with idempotency key retry:<id>:<n>, audited; retry button on
the run detail page.
- E7 regular series e2e, E8 AT24 tag removal / task disappearance e2e.
- All workspace members and root set to version 0.1.0; CHANGELOG.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
86 lines
3.8 KiB
JSON
86 lines
3.8 KiB
JSON
{
|
|
"version": "0.1.0",
|
|
"workspace": [
|
|
"./packages/adapters",
|
|
"./packages/agent",
|
|
"./packages/contracts",
|
|
"./packages/db",
|
|
"./packages/domain",
|
|
"./packages/mapping",
|
|
"./packages/tasks",
|
|
"./packages/testkit",
|
|
"./apps/server",
|
|
"./apps/web"
|
|
],
|
|
"nodeModulesDir": "auto",
|
|
"imports": {
|
|
"@biomejs/biome": "npm:@biomejs/[email protected]",
|
|
"@earendil-works/pi-agent-core": "npm:@earendil-works/[email protected]",
|
|
"@earendil-works/pi-agent-core/": "npm:/@earendil-works/[email protected]/",
|
|
"@earendil-works/pi-ai": "npm:@earendil-works/[email protected]",
|
|
"@earendil-works/pi-ai/": "npm:/@earendil-works/[email protected]/",
|
|
"@hono/swagger-ui": "npm:@hono/[email protected]",
|
|
"@hono/zod-openapi": "npm:@hono/[email protected]",
|
|
"@types/node": "npm:@types/[email protected]",
|
|
"@types/nunjucks": "npm:@types/[email protected]",
|
|
"@types/pg": "npm:@types/[email protected]",
|
|
"@xmldom/xmldom": "npm:@xmldom/[email protected]",
|
|
"cheerio": "npm:[email protected]",
|
|
"fast-xml-parser": "npm:[email protected]",
|
|
"hash-wasm": "npm:[email protected]",
|
|
"hono": "npm:[email protected]",
|
|
"hono/": "npm:/[email protected]/",
|
|
"kysely": "npm:[email protected]",
|
|
"kysely/": "npm:/[email protected]/",
|
|
"nunjucks": "npm:[email protected]",
|
|
"openworkflow": "npm:[email protected]",
|
|
"openworkflow/": "npm:/[email protected]/",
|
|
"pg": "npm:[email protected]",
|
|
"pino": "npm:[email protected]",
|
|
"pino-pretty": "npm:[email protected]",
|
|
"playwright-core": "npm:[email protected]",
|
|
"postgres": "npm:[email protected]",
|
|
"typebox": "npm:[email protected]",
|
|
"typescript": "npm:[email protected]",
|
|
"vitest": "npm:[email protected]",
|
|
"vitest/": "npm:/[email protected]/",
|
|
"xpath": "npm:[email protected]",
|
|
"yaml": "npm:[email protected]",
|
|
"zod": "npm:[email protected]"
|
|
},
|
|
"compilerOptions": {
|
|
"strict": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"noImplicitOverride": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"verbatimModuleSyntax": true
|
|
},
|
|
"tasks": {
|
|
"dev": {
|
|
"description": "同时起 server(4380)与 web(5180)",
|
|
"dependencies": ["dev:server", "dev:web"]
|
|
},
|
|
"dev:server": "cd apps/server && deno task dev",
|
|
"dev:web": "cd apps/web && deno task dev",
|
|
"db:up": "docker compose -f docker-compose.dev.yml up -d --wait",
|
|
"db:migrate": "deno run -A --env-file=.env packages/db/scripts/migrate.ts latest",
|
|
"db:reset": "deno run -A --env-file=.env packages/db/scripts/migrate.ts reset",
|
|
"gen:types": "deno run -A --env-file=.env packages/db/scripts/gen-types.ts",
|
|
"types": "mkdir -p types && deno types > types/deno.d.ts",
|
|
"typecheck": "deno task types && deno task typecheck:tsc && deno task typecheck:deno",
|
|
"typecheck:tsc": "deno task --members -j 1 typecheck",
|
|
"typecheck:deno": "deno check apps/server/src/main.ts packages/contracts/src/index.ts packages/db/src/index.ts packages/db/scripts/migrate.ts packages/db/scripts/gen-types.ts packages/db/migrations/*.ts packages/domain/src/index.ts packages/mapping/src/index.ts packages/tasks/src/index.ts packages/agent/src/index.ts packages/adapters/src/index.ts packages/testkit/src/index.ts",
|
|
"lint": "deno run -A npm:@biomejs/biome check .",
|
|
"fmt": "deno run -A npm:@biomejs/biome check --write .",
|
|
"test": "deno task --members -j 1 test",
|
|
"test:web:smoke": {
|
|
"description": "前端全页面冒烟(Playwright):需要已启动的后端 + web 与已初始化的管理员,见 README",
|
|
"command": "deno run -A apps/web/scripts/smoke.mjs"
|
|
},
|
|
"check:tokens": "cd apps/web && deno task check:tokens",
|
|
"build": "cd apps/web && deno task build && cd ../server && deno task compile",
|
|
"ci": "deno task typecheck && deno task lint && deno task test && deno task check:tokens && deno task build",
|
|
"gen:tokens": "cd apps/web && deno task gen:tokens"
|
|
}
|
|
}
|