@sparkelf/dsh-knowledge-base 0.6.10 → 0.6.11
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 +641 -641
- package/lib/index.js +16 -8
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -28511,14 +28511,22 @@ function apply(ctx, deploymentConfig) {
|
|
|
28511
28511
|
};
|
|
28512
28512
|
const guardianSessions = new GuardianSessionStore(memoryUsersRoot);
|
|
28513
28513
|
ctx.provide("memoryGuardianSessions", { listSessionIds: () => guardianSessions.listSessionIds() });
|
|
28514
|
-
if (!isTeamDeployment(config))
|
|
28515
|
-
|
|
28516
|
-
|
|
28517
|
-
|
|
28518
|
-
|
|
28519
|
-
|
|
28520
|
-
|
|
28521
|
-
|
|
28514
|
+
if (!isTeamDeployment(config)) {
|
|
28515
|
+
const eagerGuardian = async (attempt) => {
|
|
28516
|
+
try {
|
|
28517
|
+
if (!await memorySettings.isEnabled("local")) return;
|
|
28518
|
+
await resolveOrCreateGuardian(guardianSessionHost, LOCAL_USER_ID);
|
|
28519
|
+
} catch (error) {
|
|
28520
|
+
if (attempt < 6) setTimeout(() => {
|
|
28521
|
+
eagerGuardian(attempt + 1);
|
|
28522
|
+
}, 3e3);
|
|
28523
|
+
else host.logger?.warn?.(`knowledge-base: eager guardian creation failed after retries: ${String(error)}`);
|
|
28524
|
+
}
|
|
28525
|
+
};
|
|
28526
|
+
setTimeout(() => {
|
|
28527
|
+
eagerGuardian(0);
|
|
28528
|
+
}, 2e3);
|
|
28529
|
+
}
|
|
28522
28530
|
const memoryGuardianToolHost = {
|
|
28523
28531
|
resolveCaller: async () => {
|
|
28524
28532
|
return { userId: (await fetchCaller(host, config)).userId };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparkelf/dsh-knowledge-base",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.11",
|
|
4
4
|
"description": "DataOps-backed knowledge base for DeepSeek Harness: a left-sidebar destination, Settings configuration, and index tooling over a mounted NAS view.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|