@inquiryon/openclaw-amp-governance 1.1.1 → 1.1.2
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/hook/amp_config.json +2 -1
- package/index.js +4 -3
- package/package.json +1 -1
package/hook/amp_config.json
CHANGED
package/index.js
CHANGED
|
@@ -8,9 +8,7 @@ const CONFIG_FILE = `${process.env.HOME}/.openclaw/hooks/amp/amp_config.json`;
|
|
|
8
8
|
// Tools that are internal/noisy — skip logging and policy checks
|
|
9
9
|
const SKIP_TOOLS = new Set(['session_status', 'heartbeat']);
|
|
10
10
|
|
|
11
|
-
//
|
|
12
|
-
const HITL_POLL_INTERVAL_MS = 3000; // 3 seconds between polls
|
|
13
|
-
const HITL_TIMEOUT_MS = 10 * 60 * 1000; // 10 minute max wait for human
|
|
11
|
+
const HITL_POLL_INTERVAL_MS = 3000; // 3 seconds between polls
|
|
14
12
|
|
|
15
13
|
let config = null;
|
|
16
14
|
try {
|
|
@@ -20,6 +18,9 @@ try {
|
|
|
20
18
|
console.error('[AMP Governance] Failed to load config:', err.message);
|
|
21
19
|
}
|
|
22
20
|
|
|
21
|
+
// HITL timeout — configurable via HITL_TIMEOUT_MINUTES in amp_config.json (default: 10)
|
|
22
|
+
const HITL_TIMEOUT_MS = (config?.HITL_TIMEOUT_MINUTES ?? 10) * 60 * 1000;
|
|
23
|
+
|
|
23
24
|
// Module-level instance cache so we only init once per process lifetime
|
|
24
25
|
let _instanceId = null;
|
|
25
26
|
|