@deepseek-ai/dsh-cordis-host-runner 0.0.1-rc.3
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/LICENSE +28 -0
- package/README.i18n.yaml +6 -0
- package/README.md +72 -0
- package/README.zh.md +72 -0
- package/lib/index.js +2573 -0
- package/lib/invariant.js +25 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +1897 -0
- package/lib/typert.remote-client.d.ts +55 -0
- package/lib/typert.remote-client.js +769 -0
- package/lib/types/guard.d.ts +71 -0
- package/lib/types/guard.js +766 -0
- package/lib/types/index.d.ts +270 -0
- package/lib/types/index.js +1151 -0
- package/lib/types/inspect-registry.d.ts +72 -0
- package/lib/types/inspect-registry.js +192 -0
- package/lib/types/invariant.d.ts +16 -0
- package/lib/types/invariant.js +24 -0
- package/lib/types/lifecycle.d.ts +29 -0
- package/lib/types/lifecycle.js +49 -0
- package/lib/types/registry.d.ts +225 -0
- package/lib/types/registry.js +131 -0
- package/lib/types/sandbox.d.ts +93 -0
- package/lib/types/sandbox.js +223 -0
- package/lib/types/types.d.ts +359 -0
- package/lib/types/types.js +6 -0
- package/package.json +78 -0
package/lib/invariant.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region lib/types/invariant.js
|
|
2
|
+
/**
|
|
3
|
+
* Package-owned invariant companion for `@deepseek-ai/dsh-cordis-host-runner`.
|
|
4
|
+
* @module @deepseek-ai/dsh-cordis-host-runner/invariant
|
|
5
|
+
*/
|
|
6
|
+
const PACKAGE_NAME = "@deepseek-ai/dsh-cordis-host-runner";
|
|
7
|
+
/** Cordis companion plugin name. */
|
|
8
|
+
const name = "cordis-host-runner-invariant";
|
|
9
|
+
/** Service required before the companion can reserve package ownership. */
|
|
10
|
+
const inject = ["invariants"];
|
|
11
|
+
/**
|
|
12
|
+
* No runtime invariant: the definition registry is process memory with no event
|
|
13
|
+
* stream to observe, and its one owned relation (a running definition owns a
|
|
14
|
+
* settled host-half fiber and its handler table) is established and unwound
|
|
15
|
+
* inside single awaited verbs, so package tests assert it directly.
|
|
16
|
+
*/
|
|
17
|
+
const install = () => {};
|
|
18
|
+
/**
|
|
19
|
+
* Register this package's invariant companion.
|
|
20
|
+
* @param ctx - Cordis context carrying the invariant service.
|
|
21
|
+
* @returns the installed registration's disposer after setup succeeds.
|
|
22
|
+
*/
|
|
23
|
+
const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
24
|
+
//#endregion
|
|
25
|
+
export { apply, inject, name };
|