overlord-cli 0.2608101034.0 → 0.2608110816.0
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/connectors/HARNESS-MATRIX.md +16 -17
- package/dist/connectors/VERSION +1 -1
- package/dist/connectors/adapters/antigravity/CAPABILITIES.md +27 -23
- package/dist/connectors/adapters/antigravity/README.md +15 -11
- package/dist/connectors/adapters/antigravity/conformance-manifest.yaml +1 -6
- package/dist/connectors/adapters/antigravity/fixtures/official-pre-tool-use.json +36 -0
- package/dist/connectors/adapters/antigravity/fixtures/unbound-session.json +10 -20
- package/dist/connectors/adapters/antigravity/harness-capabilities.yaml +66 -36
- package/dist/connectors/adapters/antigravity/hooks.json +1 -30
- package/dist/connectors/adapters/antigravity/plugin.json +2 -2
- package/dist/connectors/adapters/antigravity/skills/overlord-mission/SKILL.md +2 -2
- package/dist/connectors/adapters/claude/.claude-plugin/plugin.json +1 -1
- package/dist/connectors/adapters/claude/CAPABILITIES.md +4 -4
- package/dist/connectors/adapters/claude/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/claude/harness-capabilities.yaml +9 -5
- package/dist/connectors/adapters/codex/.codex-plugin/plugin.json +1 -1
- package/dist/connectors/adapters/codex/CAPABILITIES.md +3 -3
- package/dist/connectors/adapters/codex/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/codex/harness-capabilities.yaml +5 -2
- package/dist/connectors/adapters/cursor/.cursor-plugin/plugin.json +1 -1
- package/dist/connectors/adapters/cursor/CAPABILITIES.md +8 -9
- package/dist/connectors/adapters/cursor/conformance-manifest.yaml +2 -2
- package/dist/connectors/adapters/cursor/harness-capabilities.yaml +11 -18
- package/dist/connectors/core/scripts/overlord-mcp.mjs +33 -6
- package/dist/index.js +97 -52
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
- package/dist/connectors/adapters/antigravity/scripts/pre-invocation-hook.sh +0 -79
- package/dist/connectors/adapters/antigravity/scripts/pre-tool-use-hook.sh +0 -25
package/package.json
CHANGED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Overlord PreInvocation hook (plugin-managed) — Antigravity's closest analog to
|
|
3
|
-
# the canonical UserPromptSubmit follow-up-capture hook. It fires before each
|
|
4
|
-
# agent invocation and records the human's turn text as `user_follow_up`
|
|
5
|
-
# activity through `ovld protocol hook-event`. It must never block the agent:
|
|
6
|
-
# on any missing field, missing MISSION_ID, or missing `ovld`, it prints a
|
|
7
|
-
# harmless allow response and exits 0.
|
|
8
|
-
#
|
|
9
|
-
# Antigravity's public docs do not yet pin an exact PreInvocation payload
|
|
10
|
-
# shape the way they do for PreToolUse (`toolCall.args`), so this script
|
|
11
|
-
# defensively probes a few plausible field names (`prompt`, `message`, `text`,
|
|
12
|
-
# `input`) for the human turn text rather than assuming one.
|
|
13
|
-
|
|
14
|
-
BODY=$(cat -)
|
|
15
|
-
HOOK_NAME="antigravity-pre-invocation"
|
|
16
|
-
LOG_DIR="${HOME:-}/.ovld/logs"
|
|
17
|
-
LOG_FILE="${LOG_DIR}/pre-invocation-hook.log"
|
|
18
|
-
|
|
19
|
-
log_hook() {
|
|
20
|
-
mkdir -p "$LOG_DIR" 2>/dev/null || return 0
|
|
21
|
-
printf '%s [%s] %s\n' "$(date -u '+%Y-%m-%dT%H:%M:%SZ')" "$HOOK_NAME" "$1" >>"$LOG_FILE" 2>/dev/null || true
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
respond_allow() {
|
|
25
|
-
printf '{"decision":"allow"}'
|
|
26
|
-
exit 0
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
if [ -z "${MISSION_ID:-}" ] || ! command -v ovld >/dev/null 2>&1; then
|
|
30
|
-
log_hook "missing required env/tool mission=$([ -n "${MISSION_ID:-}" ] && echo yes || echo no) ovld=$([ "$(command -v ovld 2>/dev/null)" ] && echo yes || echo no)"
|
|
31
|
-
respond_allow
|
|
32
|
-
fi
|
|
33
|
-
|
|
34
|
-
printf '%s' "$BODY" | python3 -c "
|
|
35
|
-
import json
|
|
36
|
-
import os
|
|
37
|
-
import subprocess
|
|
38
|
-
import sys
|
|
39
|
-
|
|
40
|
-
try:
|
|
41
|
-
body = json.load(sys.stdin)
|
|
42
|
-
except Exception:
|
|
43
|
-
sys.exit(0)
|
|
44
|
-
|
|
45
|
-
text = ''
|
|
46
|
-
for key in ('prompt', 'message', 'text', 'input'):
|
|
47
|
-
value = body.get(key)
|
|
48
|
-
if isinstance(value, str) and value.strip():
|
|
49
|
-
text = value.strip()
|
|
50
|
-
break
|
|
51
|
-
|
|
52
|
-
if not text:
|
|
53
|
-
sys.exit(0)
|
|
54
|
-
|
|
55
|
-
mission_id = os.environ.get('MISSION_ID', '')
|
|
56
|
-
session_id = body.get('session_id') or body.get('sessionId')
|
|
57
|
-
session_key = os.environ.get('SESSION_KEY') or ''
|
|
58
|
-
|
|
59
|
-
env = dict(os.environ)
|
|
60
|
-
user_token = env.get('Overlord_USER_TOKEN') or env.get('OVLD_USER_TOKEN')
|
|
61
|
-
if user_token:
|
|
62
|
-
env['Overlord_USER_TOKEN'] = user_token
|
|
63
|
-
|
|
64
|
-
args = [
|
|
65
|
-
'ovld', 'protocol', 'hook-event',
|
|
66
|
-
'--hook-type', 'UserPromptSubmit',
|
|
67
|
-
'--mission-id', mission_id,
|
|
68
|
-
'--prompt', text,
|
|
69
|
-
]
|
|
70
|
-
if session_id:
|
|
71
|
-
args.extend(['--external-session-id', str(session_id)])
|
|
72
|
-
if session_key:
|
|
73
|
-
args.extend(['--session-key', session_key])
|
|
74
|
-
|
|
75
|
-
with open(os.devnull, 'wb') as devnull:
|
|
76
|
-
subprocess.Popen(args, stdout=devnull, stderr=devnull, env=env)
|
|
77
|
-
" 2>/dev/null
|
|
78
|
-
|
|
79
|
-
respond_allow
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Overlord PreToolUse hook (plugin-managed) — Antigravity's closest analog to
|
|
3
|
-
# the canonical PermissionRequest hook. It fires before every tool call, so it
|
|
4
|
-
# is used only to *record* the request through `ovld protocol
|
|
5
|
-
# permission-request`; it always allows the call. This hook must never gate or
|
|
6
|
-
# slow down tool execution, and must never leak errors into the session, so
|
|
7
|
-
# the recording call runs detached and this script always answers allow.
|
|
8
|
-
BODY=$(cat -)
|
|
9
|
-
|
|
10
|
-
if [ -n "${MISSION_ID:-}" ] && command -v ovld >/dev/null 2>&1; then
|
|
11
|
-
(
|
|
12
|
-
USER_TOKEN="${Overlord_USER_TOKEN:-${OVLD_USER_TOKEN:-}}"
|
|
13
|
-
if [ -n "$USER_TOKEN" ]; then
|
|
14
|
-
export Overlord_USER_TOKEN="$USER_TOKEN"
|
|
15
|
-
fi
|
|
16
|
-
printf '%s' "$BODY" | ovld protocol permission-request \
|
|
17
|
-
--mission-id "$MISSION_ID" \
|
|
18
|
-
--payload-file - \
|
|
19
|
-
>/dev/null 2>&1
|
|
20
|
-
) &
|
|
21
|
-
disown
|
|
22
|
-
fi
|
|
23
|
-
|
|
24
|
-
printf '{"allow_tool":true}'
|
|
25
|
-
exit 0
|