openxiangda-skill-kit 2.0.0-alpha.57 → 2.0.0-alpha.59
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openxiangda-skill-kit",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.59",
|
|
4
4
|
"description": "Validation and deterministic packaging for OpenXiangda 2.0 AI skills.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"README.md"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"openxiangda-devkit-core": "2.0.0-alpha.
|
|
20
|
+
"openxiangda-devkit-core": "2.0.0-alpha.44"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"tsx": "4.23.12",
|
|
@@ -4,6 +4,33 @@ Keep normal record CRUD in the platform Data API. Use `apps/server` only for typ
|
|
|
4
4
|
|
|
5
5
|
Do not duplicate resource persistence in controllers. Keep actions bounded and side-effect behavior explicit. Run `pnpm openxiangda dev` for the connected loop and `pnpm openxiangda check` before delivery.
|
|
6
6
|
|
|
7
|
+
Keep the generated `apps/server/src/main.ts` on
|
|
8
|
+
`bootstrapOpenXiangdaApplication(AppModule)`. Do not replace it with an
|
|
9
|
+
application-owned `NestFactory` or `FastifyAdapter`: the SDK bootstrap owns the
|
|
10
|
+
exact raw request bytes required by gateway signatures, proxy trust, shutdown
|
|
11
|
+
hooks, and the runtime listen contract.
|
|
12
|
+
|
|
13
|
+
Connected development and release builds deliberately use different compilers,
|
|
14
|
+
so application Nest classes must never depend on emitted constructor metadata.
|
|
15
|
+
Every constructor dependency in a `@Controller` or `@Injectable` class uses an
|
|
16
|
+
explicit token:
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
import { Controller, Inject } from '@nestjs/common';
|
|
20
|
+
import { OpenXiangdaStandardOperations } from 'openxiangda-nest';
|
|
21
|
+
|
|
22
|
+
@Controller('/api/visitor-reservations')
|
|
23
|
+
export class VisitorReservationsController {
|
|
24
|
+
constructor(
|
|
25
|
+
@Inject(OpenXiangdaStandardOperations)
|
|
26
|
+
private readonly operations: OpenXiangdaStandardOperations,
|
|
27
|
+
) {}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
`openxiangda check` and `openxiangda dev` reject implicit constructor injection.
|
|
32
|
+
Do not silence that diagnostic or replace the connected-development compiler.
|
|
33
|
+
|
|
7
34
|
Backend routes are private to the application unless their operation declaration contains an explicit `ai` block. Never infer AI exposure or risk from the HTTP method. A write action declares its touched resources and non-empty side effects, for example:
|
|
8
35
|
|
|
9
36
|
```ts
|