-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·53 lines (44 loc) · 1.79 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·53 lines (44 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
INSTALLER="$SCRIPT_DIR/scripts/install_codex_integration.py"
print_help() {
cat <<'EOF'
ix-codex-plugin installer wrapper
Usage:
./install.sh --repo /path/to/project [--plugin] [--hooks] [--mcp] [--mode copy|symlink] [--force]
./install.sh --home [--plugin] [--hooks] [--mcp] [--mode copy|symlink] [--force]
Examples:
./install.sh --repo /path/to/project --plugin
./install.sh --repo /path/to/project --plugin --hooks
./install.sh --repo /path/to/project --plugin --hooks --mode symlink
./install.sh --home --plugin --hooks
./install.sh --home --hooks --mcp
Flags:
--plugin Copy/register the ix-memory Codex plugin in a local marketplace
--hooks Install the .codex hook bundle (session, prompt, pre/post tool, stop)
--mcp Install the ix-memory MCP server and print the codex mcp add command
Notes:
- If none of --plugin, --hooks, or --mcp is passed, the installer defaults to
--plugin --hooks --mcp.
- --plugin does not activate the plugin in Codex. Restart Codex, then install or enable
'ix-memory' from the marketplace before its skills appear.
- Local Codex plugins do not reliably expose skill autocomplete, so type `$ix-tutorial`
manually after enabling the plugin instead of waiting for it to appear in a picker.
- This wrapper forwards all arguments to scripts/install_codex_integration.py.
EOF
}
if command -v python3 >/dev/null 2>&1; then
PYTHON_BIN="python3"
elif command -v python >/dev/null 2>&1; then
PYTHON_BIN="python"
else
echo "python3 or python is required to run the installer." >&2
exit 1
fi
if [[ "${1:-}" == "--help" || "${1:-}" == "-h" ]]; then
print_help
echo
exec "$PYTHON_BIN" "$INSTALLER" --help
fi
exec "$PYTHON_BIN" "$INSTALLER" "$@"