@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.
@@ -3,5 +3,6 @@
3
3
  "AMP_API_KEY": "amp_k_...",
4
4
  "AMP_ORG_ID": "O-...",
5
5
  "AGENT_NAME": "open-claw-1234",
6
- "AMP_USERNAME": "you@example.com"
6
+ "AMP_USERNAME": "you@example.com",
7
+ "HITL_TIMEOUT_MINUTES": 10
7
8
  }
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
- // HITL polling config
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquiryon/openclaw-amp-governance",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "AMP governance plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "files": [