wyuc 3b4567076f
refactor(generation): consume the package everywhere and delete lib/generation (#1090)
Part D of #1057 — the switch. All consumers import @openmaic/generation; lib/generation deleted (net -11,900 lines). PBL wiring preserved (single-call -> classified fallback -> injected loop), streaming outline route deduplicated onto buildOutlinePrompt, serverExternalPackages wired, and the change verified by a real-model four-kind end-to-end run against the production build with a rendered-classroom screenshot check. Closes #1057.
2026-08-10 03:58:33 -04:00

61 lines
1.4 KiB
JSON

{
"name": "@openmaic/generation",
"version": "0.3.0",
"description": "Pure generation pipeline contracts and packaged prompt assets for MAIC consumers.",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"files": [
"dist",
"templates",
"snippets",
"prompts-pbl",
"README.md",
"LICENSE"
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"build": "rm -rf dist && tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch",
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"prepublishOnly": "pnpm run build"
},
"keywords": [
"maic",
"generation",
"prompts",
"pipeline"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/THU-MAIC/OpenMAIC",
"directory": "packages/@openmaic/generation"
},
"dependencies": {
"@openmaic/dsl": "workspace:^",
"jsonrepair": "^3.13.2",
"katex": "^0.16.22",
"nanoid": "^5.1.6",
"partial-json": "^0.1.7"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
"devDependencies": {
"typescript": "^5",
"vitest": "^4.1.8"
}
}