@jinn-network/jinn-layer 0.1.1 → 0.1.2-canary.e631cbf2
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.
|
@@ -4,5 +4,5 @@ export interface FederatedCorpusAdapterDeps {
|
|
|
4
4
|
public: CorpusPort;
|
|
5
5
|
timeoutMs?: number;
|
|
6
6
|
}
|
|
7
|
-
export declare const DEFAULT_FEDERATED_CHILD_TIMEOUT_MS =
|
|
7
|
+
export declare const DEFAULT_FEDERATED_CHILD_TIMEOUT_MS = 10000;
|
|
8
8
|
export declare function createFederatedCorpusAdapter(deps: FederatedCorpusAdapterDeps): CorpusPort;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { degraded, ok, unavailable, valueOr, } from '@jinn-network/plugin';
|
|
2
2
|
import { LOCAL_EPISODE_REF_PREFIX } from './local-episode-corpus-adapter.js';
|
|
3
|
-
|
|
3
|
+
// Cold public corpus reads can take longer than five seconds while still
|
|
4
|
+
// completing inside Hermes' 15-second session-pickup deadline.
|
|
5
|
+
export const DEFAULT_FEDERATED_CHILD_TIMEOUT_MS = 10_000;
|
|
4
6
|
export function createFederatedCorpusAdapter(deps) {
|
|
5
7
|
const timeoutMs = deps.timeoutMs ?? DEFAULT_FEDERATED_CHILD_TIMEOUT_MS;
|
|
6
8
|
const openCircuit = new Set();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jinn-network/jinn-layer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2-canary.e631cbf2",
|
|
4
4
|
"description": "Standalone Jinn plugin process layer: host contract, local evidence, corpus reads, distillation, and seed import.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "yarn@4.13.0",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"test": "vitest run"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@jinn-network/core": "0.1.
|
|
42
|
-
"@jinn-network/plugin": "0.1.
|
|
41
|
+
"@jinn-network/core": "0.1.2-canary.e631cbf2",
|
|
42
|
+
"@jinn-network/plugin": "0.1.2-canary.e631cbf2",
|
|
43
43
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
44
44
|
"better-sqlite3": "^12.10.0",
|
|
45
45
|
"canonicalize": "^3.0.0",
|