@deepseek-ai/dsh-typert-registry 0.1.6-alpha.2 → 0.1.7-alpha.2
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/lib/client.js +3 -0
- package/lib/index.js +3 -0
- package/lib/types/service.js +6 -0
- package/package.json +4 -4
package/lib/client.js
CHANGED
|
@@ -1333,6 +1333,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1333
1333
|
}
|
|
1334
1334
|
const cancellation = descriptor.cancellation;
|
|
1335
1335
|
if (cancellation !== void 0 && cancellation.parameter !== "signal") throw new Error(`typert: invocation "${descriptor.id}" cancellation parameter must be "signal"`);
|
|
1336
|
+
const mode = descriptor.mode;
|
|
1337
|
+
if (mode !== void 0 && mode !== "stream") throw new Error(`typert: invocation "${descriptor.id}" mode must be "stream"`);
|
|
1338
|
+
if (descriptor.uplink !== void 0) validateCodec(descriptor.uplink.codec, `${descriptor.id} uplink`);
|
|
1336
1339
|
if (descriptor.scope !== void 0) {
|
|
1337
1340
|
if (descriptor.invocation.kind !== "direct") throw new Error(`typert: invocation "${descriptor.id}" Context receiver cannot declare a direct scope projection`);
|
|
1338
1341
|
validateSegment("scope Context key", descriptor.scope.context);
|
package/lib/index.js
CHANGED
|
@@ -541,6 +541,9 @@ function validateInvocation(descriptor) {
|
|
|
541
541
|
}
|
|
542
542
|
const cancellation = descriptor.cancellation;
|
|
543
543
|
if (cancellation !== void 0 && cancellation.parameter !== "signal") throw new Error(`typert: invocation "${descriptor.id}" cancellation parameter must be "signal"`);
|
|
544
|
+
const mode = descriptor.mode;
|
|
545
|
+
if (mode !== void 0 && mode !== "stream") throw new Error(`typert: invocation "${descriptor.id}" mode must be "stream"`);
|
|
546
|
+
if (descriptor.uplink !== void 0) validateCodec(descriptor.uplink.codec, `${descriptor.id} uplink`);
|
|
544
547
|
if (descriptor.scope !== void 0) {
|
|
545
548
|
if (descriptor.invocation.kind !== "direct") throw new Error(`typert: invocation "${descriptor.id}" Context receiver cannot declare a direct scope projection`);
|
|
546
549
|
validateSegment("scope Context key", descriptor.scope.context);
|
package/lib/types/service.js
CHANGED
|
@@ -566,6 +566,12 @@ function validateInvocation(descriptor) {
|
|
|
566
566
|
if (cancellation !== undefined && cancellation.parameter !== 'signal') {
|
|
567
567
|
throw new Error(`typert: invocation "${descriptor.id}" cancellation parameter must be "signal"`);
|
|
568
568
|
}
|
|
569
|
+
const mode = descriptor.mode;
|
|
570
|
+
if (mode !== undefined && mode !== 'stream') {
|
|
571
|
+
throw new Error(`typert: invocation "${descriptor.id}" mode must be "stream"`);
|
|
572
|
+
}
|
|
573
|
+
if (descriptor.uplink !== undefined)
|
|
574
|
+
validateCodec(descriptor.uplink.codec, `${descriptor.id} uplink`);
|
|
569
575
|
if (descriptor.scope !== undefined) {
|
|
570
576
|
if (descriptor.invocation.kind !== 'direct') {
|
|
571
577
|
throw new Error(`typert: invocation "${descriptor.id}" Context receiver cannot declare a direct scope projection`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-typert-registry",
|
|
3
3
|
"description": "Runtime registry for generated package reflection and Zod schemas",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"zod": "^4.4.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@deepseek-ai/cordis": "
|
|
50
|
+
"@deepseek-ai/cordis": "~4.0.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@deepseek-ai/
|
|
54
|
-
"@deepseek-ai/
|
|
53
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.7-alpha.2",
|
|
54
|
+
"@deepseek-ai/cordis": "~4.0.4"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"bundle": "tsdown",
|