- Pure Rule Model & AST Parser:
- Eliminate redundant title field; model rules purely via scope (scene index) and natural language body.
- Implement AST parser for inline clauses: [action]{硬性|弹性|建议|特殊}.
- Validate and enforce preference references with @{级别} syntax, strictly blocking invalid grammar.
- Embedded SQLite Database & Repository:
- Native bun:sqlite integration with zero external dependencies, stored at ~/.config/hose-use/approval.db.
- 5 core schemas: rules, preferences, approval_runs, approval_findings, and aipro_logs.
- Support deduplicated scope indexing (listScopes with 1-based indices) and scope drill-down (getScopeDetail).
- Bill Requisition & Backlog Query Extension:
- Add formatFlowAsBill adapter in domains/bill/tools.ts.
- Fall back to flow and backlog inspection when bills are not found in invoice endpoints, unlocking full structured inspection for requisitions (such as S26000001) and loan requests.
- Deterministic Approval Gateway & Lifecycle:
- Enforce mandatory approval lifecycle: points -> checklist -> review -> decide.
- Physical gateway blocking: forbid decision if audit checklist is missing or empty, or if pending points remain unverified.
- Hard tier severance: automatically sever and throw GatewayBlockError on approval attempts violating {硬性} clauses.
- Dedicated hose-aipro Global CLI & Immutable Audit Ledger:
- Register secondary global binary hose-aipro alongside hose-use in package.json and build-binary.mjs.
- Automatically record every AI Pro invocation, document context, args snapshot, operator, status, and verdict in aipro_logs.
- Provide intuitive subcommands: points, checklist, review, decide, logs, rules.
- Bump project version to v0.7.0 and regenerate OpenAPI bundles.
40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"name": "hose-use",
|
|
"version": "0.7.0",
|
|
"module": "src/server.ts",
|
|
"type": "module",
|
|
"bin": {
|
|
"hose-use": "src/cli.ts",
|
|
"hose-aipro": "src/aipro-cli.ts"
|
|
},
|
|
"scripts": {
|
|
"cli": "bun run src/cli.ts",
|
|
"aipro": "bun run src/aipro-cli.ts",
|
|
"probe": "bun run src/cli.ts probe",
|
|
"check": "tsc --noEmit",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "bun test",
|
|
"bump": "bun run scripts/bump-version.ts",
|
|
"openapi:bundle": "bun run scripts/bundle-openapi.ts",
|
|
"openapi:generate-raw": "bun run scripts/generate-raw-openapi.ts",
|
|
"openapi:all": "bun run scripts/generate-raw-openapi.ts && bun run scripts/bundle-openapi.ts",
|
|
"build:binary": "node scripts/build-binary.mjs",
|
|
"build:plugin": "node scripts/build-plugin.mjs",
|
|
"dev": "bun run --watch src/server.ts",
|
|
"start": "bun run src/server.ts",
|
|
"export:workflow-schema": "bun run scripts/export-workflow-schema.ts"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/core": "^2.0.0",
|
|
"@modelcontextprotocol/server": "^2.0.0",
|
|
"ky": "^2.0.2",
|
|
"yaml": "^2.9.0",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@modelcontextprotocol/client": "^2.0.0",
|
|
"@types/bun": "^1.3.14",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|