openclaw-plugin-exec-grant 1.0.0 → 1.0.1

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "exec-grant",
2
+ "id": "openclaw-plugin-exec-grant",
3
3
  "name": "Exec Grant",
4
4
  "description": "Time-boxed elevated shell access with WhatsApp admin approval",
5
5
  "version": "1.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-plugin-exec-grant",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Time-boxed elevated shell access with WhatsApp admin approval for OpenClaw",
5
5
  "main": "index.ts",
6
6
  "license": "MIT",
@@ -18,7 +18,9 @@
18
18
  "skills/"
19
19
  ],
20
20
  "openclaw": {
21
- "extensions": ["./index.ts"],
21
+ "extensions": [
22
+ "./index.ts"
23
+ ],
22
24
  "install": {
23
25
  "npmSpec": "openclaw-plugin-exec-grant",
24
26
  "defaultChoice": "npm"
@@ -140,7 +140,7 @@ ENDJSON
140
140
  echo "[$(date -u '+%Y-%m-%dT%H:%M:%SZ')] GRANT: ${MINUTES}m, expires ${EXPIRY_HUMAN}, timer=${TIMER_ID}" >> "$AUDIT_LOG"
141
141
 
142
142
  # --- Notify admin ---
143
- ADMIN_PHONE=$(openclaw config get plugins.entries.exec-grant.config.adminPhone 2>/dev/null | tail -1 | tr -d '[:space:]' || true)
143
+ ADMIN_PHONE=$(openclaw config get plugins.entries.openclaw-plugin-exec-grant.config.adminPhone 2>/dev/null | tail -1 | tr -d '[:space:]' || true)
144
144
 
145
145
  if [[ -n "$ADMIN_PHONE" ]]; then
146
146
  MSG="Grant active for *${MINUTES}m*. Expires at ${EXPIRY_HUMAN}. Reply \`/revoke\` to end early."
@@ -59,10 +59,10 @@ if [[ -f "$STATE_FILE" ]]; then
59
59
  fi
60
60
 
61
61
  # --- Get admin phone ---
62
- ADMIN_PHONE=$(openclaw config get plugins.entries.exec-grant.config.adminPhone 2>/dev/null | tail -1 | tr -d '[:space:]' || true)
62
+ ADMIN_PHONE=$(openclaw config get plugins.entries.openclaw-plugin-exec-grant.config.adminPhone 2>/dev/null | tail -1 | tr -d '[:space:]' || true)
63
63
 
64
64
  if [[ -z "$ADMIN_PHONE" ]]; then
65
- echo "Error: no admin phone configured. Set plugins.entries.exec-grant.config.adminPhone" >&2
65
+ echo "Error: no admin phone configured. Set plugins.entries.openclaw-plugin-exec-grant.config.adminPhone" >&2
66
66
  exit 1
67
67
  fi
68
68
 
@@ -46,7 +46,7 @@ ENDJSON
46
46
  echo "[$(date -u '+%Y-%m-%dT%H:%M:%SZ')] REVOKE: security restored to allowlist" >> "$AUDIT_LOG"
47
47
 
48
48
  # --- Notify admin ---
49
- ADMIN_PHONE=$(openclaw config get plugins.entries.exec-grant.config.adminPhone 2>/dev/null | tail -1 | tr -d '[:space:]' || true)
49
+ ADMIN_PHONE=$(openclaw config get plugins.entries.openclaw-plugin-exec-grant.config.adminPhone 2>/dev/null | tail -1 | tr -d '[:space:]' || true)
50
50
 
51
51
  if [[ -n "$ADMIN_PHONE" ]]; then
52
52
  openclaw message send --target "$ADMIN_PHONE" --channel whatsapp --message "Grant revoked. Security restored to allowlist mode." 2>/dev/null || true