smart_ide/scripts/ensure-ia-dev-smart-ide-project-link.sh
Nicolas Cantu 7f1cee487c Cursor ia-dev bridge, versioned project confs, docv and ecosystem docs
- Add .cursor agents ia-dev-* and smart-ide-ia-dev-bridge rule
- Track ia_dev project conf under projects/smart_ide; link script for ia_dev/projects
- Document docv AI integration and ecosystem architecture/sync strategy
- Update README, platform-target, system-architecture, submodule doc
2026-04-03 16:30:42 +02:00

16 lines
587 B
Bash
Executable File

#!/usr/bin/env bash
# Create ia_dev/projects/smart_ide -> ../../projects/smart_ide so scripts under ia_dev
# resolve projects/smart_ide/conf.json to this monorepo's versioned conf.
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
LINK_PARENT="${ROOT}/ia_dev/projects"
TARGET="../../projects/smart_ide"
LINK_NAME="${LINK_PARENT}/smart_ide"
mkdir -p "${LINK_PARENT}"
if [[ -e "${LINK_NAME}" && ! -L "${LINK_NAME}" ]]; then
echo "Refusing to replace non-symlink: ${LINK_NAME}" >&2
exit 1
fi
ln -sfn "${TARGET}" "${LINK_NAME}"
echo "OK: ${LINK_NAME} -> ${TARGET}"