feat: 建立 ApiState Temporal native 开发链

This commit is contained in:
root
2026-07-17 03:15:50 +02:00
parent ac695021e9
commit d203b22183
19 changed files with 1099 additions and 172 deletions
+12 -2
View File
@@ -5,10 +5,16 @@
"type": "module",
"scripts": {
"cli": "bun scripts/apistate-cli.ts --config config/sub2rank.yaml",
"server": "bun src/server.ts --config config/sub2rank.yaml --runtime k8s",
"api": "bun --hot src/api.ts --config config/sub2rank.yaml --runtime native",
"worker": "bun src/worker.ts --config config/sub2rank.yaml --runtime native",
"dev:web": "bun --hot src/dev-web.ts --config config/sub2rank.yaml --runtime native",
"server": "bun src/api.ts --config config/sub2rank.yaml --runtime k8s",
"check": "bunx tsc --noEmit"
},
"dependencies": {
"@temporalio/client": "^1.20.3",
"@temporalio/worker": "^1.20.3",
"@temporalio/workflow": "^1.20.3",
"luxon": "^3.7.2",
"yaml": "^2.8.1"
},
@@ -16,5 +22,9 @@
"@types/bun": "^1.2.21",
"@types/luxon": "^3.7.1",
"typescript": "^5.9.2"
}
},
"trustedDependencies": [
"@swc/core",
"protobufjs"
]
}