Files
persistent-chat-plugin/scripts/co-integration/pchat_retire_co_rule.sh
卡若AI ba786b3700 feat: Persistent Chat v1.1 CO-Chat 整合上传 Gitea
同步 enhance/bridge/smoke/retire 模块、vendor 3.3.34、增强面板与 PRD 文档,
Hub 接入 hub-routes-prd,含安装/经验/模块说明与 co-integration 运维脚本。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 17:42:16 +08:00

18 lines
539 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# 将 workspace 内 active co-chat.mdc 移入 _retired防与 persistent-chat 冲突)
set -euo pipefail
WS="${1:-$(cd "$(dirname "$0")/../.." && pwd)}"
RULES="$WS/.cursor/rules"
RET="$RULES/_retired"
mkdir -p "$RET"
SRC="$RULES/co-chat.mdc"
if [[ ! -f "$SRC" ]]; then
echo "OK: 无 active co-chat.mdc"
exit 0
fi
STAMP=$(date +%Y%m%d-%H%M%S)
cp -f "$SRC" "$RET/co-chat.mdc.$STAMP"
mv -f "$SRC" "$RET/co-chat.mdc"
echo "OK: 已移入 $RET/co-chat.mdc"
echo "验证: curl -s http://127.0.0.1:13458/api/mode/check"