mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
feat(gateway): generate shared TypeScript contracts
Define gateway payloads as Python TypedDict contracts and generate the shared TypeScript surface through ts-type during shared, TUI, and desktop workflows.
This commit is contained in:
parent
75afaf46da
commit
2cdfe35429
12 changed files with 166 additions and 49 deletions
|
|
@ -8,14 +8,16 @@
|
|||
"./billing": "./src/billing-types.ts",
|
||||
"./billing-policy": "./src/billing-policy.ts",
|
||||
"./charge-settlement": "./src/charge-settlement.ts",
|
||||
"./gateway-contracts": "./src/generated/gateway.ts",
|
||||
"./skin": "./src/skin.ts"
|
||||
},
|
||||
"types": "./src/index.ts",
|
||||
"scripts": {
|
||||
"generate:gateway-types": "uv run --locked --extra dev python ../../scripts/generate_gateway_types.py",
|
||||
"lint": "eslint src/",
|
||||
"lint:fix": "eslint src/ --fix",
|
||||
"fix": "npm run lint:fix",
|
||||
"typecheck": "tsc -p . --noEmit",
|
||||
"typecheck": "npm run generate:gateway-types && tsc -p . --noEmit",
|
||||
"check": "npm run typecheck"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue