@h-ai/serv 0.1.0-alpha.73 → 0.1.0-alpha.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +4 -0
- package/README.ja.md +4 -0
- package/README.md +4 -0
- package/dist/features/ai.d.ts +2 -2
- package/dist/features/feedback.d.ts +5 -2
- package/dist/features/iam.d.ts +28 -1
- package/dist/features/iam.js +4 -4
- package/dist/features/iam.js.map +1 -1
- package/dist/features/storage.d.ts +2 -2
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/{serv-context-B-AxU8hj.d.ts → serv-context-DE1JH5bd.d.ts} +2 -0
- package/dist/{serv-router-C8dSz2k-.d.ts → serv-router-BJk04-oS.d.ts} +1 -1
- package/package.json +16 -16
|
@@ -195,6 +195,8 @@ interface ServContext {
|
|
|
195
195
|
readonly locale: string;
|
|
196
196
|
readonly ip?: string;
|
|
197
197
|
readonly userAgent?: string;
|
|
198
|
+
/** 客户端终端类别;仅作服务端允许的会话分组,不是硬件身份认证。 */
|
|
199
|
+
readonly terminalType?: 'web' | 'app' | 'desktop' | 'api';
|
|
198
200
|
readonly accessToken?: string;
|
|
199
201
|
readonly session?: ServSession;
|
|
200
202
|
readonly request: Request;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HaiResult } from '@h-ai/core';
|
|
2
2
|
import { ContractRouter, Meta, Context, ContractProcedure, InferSchemaInput, ProcedureHandler, InferSchemaOutput, UnlaziedRouter, Router } from '@orpc/server';
|
|
3
|
-
import { S as ServContext } from './serv-context-
|
|
3
|
+
import { S as ServContext } from './serv-context-DE1JH5bd.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @h-ai/serv — contract-first 链式 procedure 实现器
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-ai/serv",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.0-alpha.
|
|
4
|
+
"version": "0.1.0-alpha.74",
|
|
5
5
|
"description": "Hai Framework service runtime powered by Hono and oRPC.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"exports": {
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"node": "^22.23.4 || ^24.22.1 || ^26.12.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@h-ai/ai": "0.1.0-alpha.
|
|
43
|
-
"@h-ai/feedback": "0.1.0-alpha.
|
|
44
|
-
"@h-ai/iam": "0.1.0-alpha.
|
|
45
|
-
"@h-ai/storage": "0.1.0-alpha.
|
|
42
|
+
"@h-ai/ai": "0.1.0-alpha.74",
|
|
43
|
+
"@h-ai/feedback": "0.1.0-alpha.74",
|
|
44
|
+
"@h-ai/iam": "0.1.0-alpha.74",
|
|
45
|
+
"@h-ai/storage": "0.1.0-alpha.74"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
|
48
48
|
"@h-ai/ai": {
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@h-ai/api-contract": "0.1.0-alpha.
|
|
63
|
-
"@h-ai/audit": "0.1.0-alpha.
|
|
64
|
-
"@h-ai/core": "0.1.0-alpha.
|
|
65
|
-
"@h-ai/crypto": "0.1.0-alpha.
|
|
62
|
+
"@h-ai/api-contract": "0.1.0-alpha.74",
|
|
63
|
+
"@h-ai/audit": "0.1.0-alpha.74",
|
|
64
|
+
"@h-ai/core": "0.1.0-alpha.74",
|
|
65
|
+
"@h-ai/crypto": "0.1.0-alpha.74",
|
|
66
66
|
"@hono/node-server": "^2.1.4",
|
|
67
67
|
"@orpc/openapi": "^1.15.5",
|
|
68
68
|
"@orpc/server": "^1.15.5",
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
"zod": "^4.6.5"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@h-ai/ai": "0.1.0-alpha.
|
|
77
|
-
"@h-ai/api-client": "0.1.0-alpha.
|
|
78
|
-
"@h-ai/cache": "0.1.0-alpha.
|
|
79
|
-
"@h-ai/feedback": "0.1.0-alpha.
|
|
80
|
-
"@h-ai/iam": "0.1.0-alpha.
|
|
81
|
-
"@h-ai/reldb": "0.1.0-alpha.
|
|
82
|
-
"@h-ai/storage": "0.1.0-alpha.
|
|
76
|
+
"@h-ai/ai": "0.1.0-alpha.74",
|
|
77
|
+
"@h-ai/api-client": "0.1.0-alpha.74",
|
|
78
|
+
"@h-ai/cache": "0.1.0-alpha.74",
|
|
79
|
+
"@h-ai/feedback": "0.1.0-alpha.74",
|
|
80
|
+
"@h-ai/iam": "0.1.0-alpha.74",
|
|
81
|
+
"@h-ai/reldb": "0.1.0-alpha.74",
|
|
82
|
+
"@h-ai/storage": "0.1.0-alpha.74",
|
|
83
83
|
"@types/node": "^26.6.5",
|
|
84
84
|
"@types/ws": "^8.18.2",
|
|
85
85
|
"altcha": "^3.5.0",
|