@karmaniverous/jeeves-watcher-openclaw 0.14.6 → 0.14.7
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/dist/cli.js +3 -2
- package/dist/index.js +35 -3
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -15403,14 +15403,14 @@ const SECTION_ORDER = [
|
|
|
15403
15403
|
* Core library version, inlined at build time.
|
|
15404
15404
|
*
|
|
15405
15405
|
* @remarks
|
|
15406
|
-
* The `0.5.
|
|
15406
|
+
* The `0.5.7` placeholder is replaced by
|
|
15407
15407
|
* `@rollup/plugin-replace` during the build with the actual version
|
|
15408
15408
|
* from `package.json`. This ensures the correct version survives
|
|
15409
15409
|
* when consumers bundle core into their own dist (where runtime
|
|
15410
15410
|
* `import.meta.url`-based resolution would find the wrong package.json).
|
|
15411
15411
|
*/
|
|
15412
15412
|
/** The core library version from package.json (inlined at build time). */
|
|
15413
|
-
const CORE_VERSION = '0.5.
|
|
15413
|
+
const CORE_VERSION = '0.5.7';
|
|
15414
15414
|
|
|
15415
15415
|
/**
|
|
15416
15416
|
* Workspace and config root initialization.
|
|
@@ -15433,6 +15433,7 @@ function init(options) {
|
|
|
15433
15433
|
workspacePath: options.workspacePath,
|
|
15434
15434
|
configRoot: options.configRoot,
|
|
15435
15435
|
coreConfigDir: join(options.configRoot, CORE_CONFIG_DIR),
|
|
15436
|
+
componentConfigPaths: new Map(),
|
|
15436
15437
|
};
|
|
15437
15438
|
}
|
|
15438
15439
|
/**
|
package/dist/index.js
CHANGED
|
@@ -15480,14 +15480,14 @@ const PLATFORM_COMPONENTS = [
|
|
|
15480
15480
|
* Core library version, inlined at build time.
|
|
15481
15481
|
*
|
|
15482
15482
|
* @remarks
|
|
15483
|
-
* The `0.5.
|
|
15483
|
+
* The `0.5.7` placeholder is replaced by
|
|
15484
15484
|
* `@rollup/plugin-replace` during the build with the actual version
|
|
15485
15485
|
* from `package.json`. This ensures the correct version survives
|
|
15486
15486
|
* when consumers bundle core into their own dist (where runtime
|
|
15487
15487
|
* `import.meta.url`-based resolution would find the wrong package.json).
|
|
15488
15488
|
*/
|
|
15489
15489
|
/** The core library version from package.json (inlined at build time). */
|
|
15490
|
-
const CORE_VERSION = '0.5.
|
|
15490
|
+
const CORE_VERSION = '0.5.7';
|
|
15491
15491
|
|
|
15492
15492
|
/**
|
|
15493
15493
|
* Workspace and config root initialization.
|
|
@@ -15510,6 +15510,7 @@ function init(options) {
|
|
|
15510
15510
|
workspacePath: options.workspacePath,
|
|
15511
15511
|
configRoot: options.configRoot,
|
|
15512
15512
|
coreConfigDir: join(options.configRoot, CORE_CONFIG_DIR),
|
|
15513
|
+
componentConfigPaths: new Map(),
|
|
15513
15514
|
};
|
|
15514
15515
|
}
|
|
15515
15516
|
/**
|
|
@@ -15691,6 +15692,32 @@ async function withWorkspaceLock(workspacePath, fn) {
|
|
|
15691
15692
|
function getErrorMessage(err) {
|
|
15692
15693
|
return err instanceof Error ? err.message : String(err);
|
|
15693
15694
|
}
|
|
15695
|
+
/** Error codes / names that indicate transient network failures. */
|
|
15696
|
+
const TRANSIENT_CODES = new Set([
|
|
15697
|
+
'ECONNRESET',
|
|
15698
|
+
'ETIMEDOUT',
|
|
15699
|
+
'UND_ERR_CONNECT_TIMEOUT',
|
|
15700
|
+
'AbortError',
|
|
15701
|
+
]);
|
|
15702
|
+
/**
|
|
15703
|
+
* Classify whether an error is a transient network failure.
|
|
15704
|
+
*
|
|
15705
|
+
* @param err - The caught value.
|
|
15706
|
+
* @returns `true` for ECONNRESET, ETIMEDOUT, UND_ERR_CONNECT_TIMEOUT,
|
|
15707
|
+
* AbortError, and timeout-related fetch errors.
|
|
15708
|
+
*/
|
|
15709
|
+
function isTransientError(err) {
|
|
15710
|
+
let current = err;
|
|
15711
|
+
while (current instanceof Error) {
|
|
15712
|
+
if (TRANSIENT_CODES.has(current.name))
|
|
15713
|
+
return true;
|
|
15714
|
+
const code = current.code;
|
|
15715
|
+
if (typeof code === 'string' && TRANSIENT_CODES.has(code))
|
|
15716
|
+
return true;
|
|
15717
|
+
current = current.cause;
|
|
15718
|
+
}
|
|
15719
|
+
return false;
|
|
15720
|
+
}
|
|
15694
15721
|
|
|
15695
15722
|
/**
|
|
15696
15723
|
* Workspace-level shared configuration: `jeeves.config.json`.
|
|
@@ -18702,7 +18729,12 @@ class ComponentWriter {
|
|
|
18702
18729
|
*/
|
|
18703
18730
|
function createAsyncContentCache(options) {
|
|
18704
18731
|
const { fetch: fetchContent, placeholder = '> Initializing...', onError = (err) => {
|
|
18705
|
-
|
|
18732
|
+
if (isTransientError(err)) {
|
|
18733
|
+
console.warn(`[jeeves] cache refresh: transient error (${getErrorMessage(err)})`);
|
|
18734
|
+
}
|
|
18735
|
+
else {
|
|
18736
|
+
console.warn('[jeeves] cache refresh failed:', err);
|
|
18737
|
+
}
|
|
18706
18738
|
}, } = options;
|
|
18707
18739
|
let cached = placeholder;
|
|
18708
18740
|
let refreshing = false;
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "jeeves-watcher-openclaw",
|
|
3
3
|
"name": "Jeeves Watcher",
|
|
4
4
|
"description": "Semantic search, metadata enrichment, and instance administration for a jeeves-watcher deployment.",
|
|
5
|
-
"version": "0.14.
|
|
5
|
+
"version": "0.14.7",
|
|
6
6
|
"skills": [
|
|
7
7
|
"dist/skills/jeeves-watcher"
|
|
8
8
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karmaniverous/jeeves-watcher-openclaw",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.7",
|
|
4
4
|
"author": "Jason Williscroft",
|
|
5
5
|
"description": "OpenClaw plugin for jeeves-watcher — semantic search and metadata enrichment tools",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -118,6 +118,6 @@
|
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
"dependencies": {
|
|
121
|
-
"@karmaniverous/jeeves": "^0.5.
|
|
121
|
+
"@karmaniverous/jeeves": "^0.5.8"
|
|
122
122
|
}
|
|
123
123
|
}
|