@h-ai/serv 0.1.0-alpha.68 → 0.1.0-alpha.70

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.
@@ -189,6 +189,8 @@ interface ServIam {
189
189
  * ```
190
190
  */
191
191
  interface ServContext {
192
+ /** 仅由宿主可信上下文工厂赋值;不从请求头解析租户范围。 */
193
+ readonly scopeId?: string;
192
194
  readonly requestId: string;
193
195
  readonly locale: string;
194
196
  readonly ip?: string;
@@ -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-C48WdBcd.js';
3
+ import { S as ServContext } from './serv-context-B-AxU8hj.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.68",
4
+ "version": "0.1.0-alpha.70",
5
5
  "description": "Hai Framework service runtime powered by Hono and oRPC.",
6
6
  "license": "Apache-2.0",
7
7
  "exports": {
@@ -18,6 +18,10 @@
18
18
  "types": "./dist/features/storage.d.ts",
19
19
  "import": "./dist/features/storage.js"
20
20
  },
21
+ "./features/feedback": {
22
+ "types": "./dist/features/feedback.d.ts",
23
+ "import": "./dist/features/feedback.js"
24
+ },
21
25
  "./features/ai": {
22
26
  "types": "./dist/features/ai.d.ts",
23
27
  "import": "./dist/features/ai.js"
@@ -32,17 +36,21 @@
32
36
  "access": "public"
33
37
  },
34
38
  "engines": {
35
- "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
39
+ "node": "^22.23.4 || ^24.22.1 || ^26.12.1"
36
40
  },
37
41
  "peerDependencies": {
38
- "@h-ai/ai": "0.1.0-alpha.68",
39
- "@h-ai/iam": "0.1.0-alpha.68",
40
- "@h-ai/storage": "0.1.0-alpha.68"
42
+ "@h-ai/ai": "0.1.0-alpha.70",
43
+ "@h-ai/feedback": "0.1.0-alpha.70",
44
+ "@h-ai/iam": "0.1.0-alpha.70",
45
+ "@h-ai/storage": "0.1.0-alpha.70"
41
46
  },
42
47
  "peerDependenciesMeta": {
43
48
  "@h-ai/ai": {
44
49
  "optional": true
45
50
  },
51
+ "@h-ai/feedback": {
52
+ "optional": true
53
+ },
46
54
  "@h-ai/iam": {
47
55
  "optional": true
48
56
  },
@@ -51,9 +59,9 @@
51
59
  }
52
60
  },
53
61
  "dependencies": {
54
- "@h-ai/api-contract": "0.1.0-alpha.68",
55
- "@h-ai/core": "0.1.0-alpha.68",
56
- "@h-ai/crypto": "0.1.0-alpha.68",
62
+ "@h-ai/api-contract": "0.1.0-alpha.70",
63
+ "@h-ai/core": "0.1.0-alpha.70",
64
+ "@h-ai/crypto": "0.1.0-alpha.70",
57
65
  "@hono/node-server": "^2.1.4",
58
66
  "@orpc/openapi": "^1.15.5",
59
67
  "@orpc/server": "^1.15.5",
@@ -64,12 +72,13 @@
64
72
  "zod": "^4.6.5"
65
73
  },
66
74
  "devDependencies": {
67
- "@h-ai/ai": "0.1.0-alpha.68",
68
- "@h-ai/api-client": "0.1.0-alpha.68",
69
- "@h-ai/cache": "0.1.0-alpha.68",
70
- "@h-ai/iam": "0.1.0-alpha.68",
71
- "@h-ai/reldb": "0.1.0-alpha.68",
72
- "@h-ai/storage": "0.1.0-alpha.68",
75
+ "@h-ai/ai": "0.1.0-alpha.70",
76
+ "@h-ai/api-client": "0.1.0-alpha.70",
77
+ "@h-ai/cache": "0.1.0-alpha.70",
78
+ "@h-ai/feedback": "0.1.0-alpha.70",
79
+ "@h-ai/iam": "0.1.0-alpha.70",
80
+ "@h-ai/reldb": "0.1.0-alpha.70",
81
+ "@h-ai/storage": "0.1.0-alpha.70",
73
82
  "@types/node": "^26.6.5",
74
83
  "@types/ws": "^8.18.2",
75
84
  "rimraf": "^6.1.3",