Summary:\n- added Codex marketplace registry plus awareness/ethics/guardrails sub-plugins\n- mirrored Claude plugin commands/scripts/hooks into codex api/ci/code/collect/coolify/core/issue/perf/qa/review/verify\n- embedded Axioms of Life ethics modal, guardrails, and kernel files under codex/ethics\n- added Codex parity report, improvements list, and MCP integration plan\n- extended Gemini MCP tools and docs for Codex awareness
32 lines
867 B
Bash
Executable file
32 lines
867 B
Bash
Executable file
#!/bin/bash
|
|
|
|
TARGET_PATH=$1
|
|
# The second argument can be a path to scan for API endpoints.
|
|
SCAN_PATH=$2
|
|
|
|
if [ -z "$TARGET_PATH" ]; then
|
|
echo "Usage: doc-api.sh <TargetPath> [ScanPath]" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Default to scanning the 'src' directory if no path is provided.
|
|
if [ -z "$SCAN_PATH" ]; then
|
|
SCAN_PATH="src"
|
|
fi
|
|
|
|
SWAGGER_PHP_PATH="${TARGET_PATH}/vendor/bin/swagger-php"
|
|
FULL_SCAN_PATH="${TARGET_PATH}/${SCAN_PATH}"
|
|
|
|
if [ ! -d "$FULL_SCAN_PATH" ]; then
|
|
echo "Error: Scan directory does not exist at '$FULL_SCAN_PATH'." >&2
|
|
exit 1
|
|
fi
|
|
|
|
if [ -f "$SWAGGER_PHP_PATH" ]; then
|
|
echo "Found swagger-php. Generating OpenAPI spec from '$FULL_SCAN_PATH'..."
|
|
"$SWAGGER_PHP_PATH" "$FULL_SCAN_PATH"
|
|
else
|
|
echo "Error: 'swagger-php' not found at '$SWAGGER_PHP_PATH'." >&2
|
|
echo "Please ensure it is installed in your project's dev dependencies." >&2
|
|
exit 1
|
|
fi
|