@benz-ai-x/dsh-research-graph 0.1.5-rc.1
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 +21 -0
- package/README.md +398 -0
- package/README.zh.md +396 -0
- package/THIRD-PARTY-NOTICES.md +69 -0
- package/cordis.patch.yml +4 -0
- package/lib/client.js +8247 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +3554 -0
- package/lib/invariant.js +21 -0
- package/lib/migrate-merge-history.js +10081 -0
- package/lib/types/client.d.ts +127 -0
- package/lib/types/index.d.ts +240 -0
- package/lib/types/invariant.d.ts +14 -0
- package/lib/types/research-reuse-3HT5WE0E.d.ts +354 -0
- package/package.json +133 -0
package/lib/invariant.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/invariant.ts
|
|
2
|
+
const PACKAGE_NAME = "@benz-ai-x/dsh-research-graph";
|
|
3
|
+
/** Cordis companion plugin name. */
|
|
4
|
+
const name = "research-graph-invariant";
|
|
5
|
+
/** Service required before the companion can reserve package ownership. */
|
|
6
|
+
const inject = ["invariants"];
|
|
7
|
+
/**
|
|
8
|
+
* No additional cross-plugin event invariant. Session facts remain owned by
|
|
9
|
+
* Harness; topic records are validated and committed through its Storage
|
|
10
|
+
* Domain contract. Public Gateway and registered-view behavior specs cover
|
|
11
|
+
* topic durability, source immutability, cancellation, and effect disposal.
|
|
12
|
+
*/
|
|
13
|
+
const install = () => {};
|
|
14
|
+
/**
|
|
15
|
+
* Register this package's invariant companion.
|
|
16
|
+
* @param ctx - Cordis context carrying the invariant service.
|
|
17
|
+
* @returns the installed registration's disposer after setup succeeds.
|
|
18
|
+
*/
|
|
19
|
+
const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
20
|
+
//#endregion
|
|
21
|
+
export { apply, inject, name };
|