Update entrypoint.sh
Browse files- entrypoint.sh +5 -81
entrypoint.sh
CHANGED
|
@@ -96,95 +96,19 @@ cat <<EOF > "$HOME/.codex/auth.json"
|
|
| 96 |
}
|
| 97 |
EOF
|
| 98 |
|
| 99 |
-
# 5 自动生成 Cursor 配置
|
| 100 |
mkdir -p "$HOME/.cursor"
|
| 101 |
cat <<EOF > "$HOME/.cursor/cli-config.json"
|
| 102 |
{
|
| 103 |
"permissions": {
|
| 104 |
"allow": [
|
| 105 |
-
"Shell(
|
|
|
|
|
|
|
| 106 |
],
|
| 107 |
"deny": []
|
| 108 |
},
|
| 109 |
-
"version": 1
|
| 110 |
-
"editor": {
|
| 111 |
-
"vimMode": false
|
| 112 |
-
},
|
| 113 |
-
"display": {
|
| 114 |
-
"showLineNumbers": false,
|
| 115 |
-
"showThinkingBlocks": false,
|
| 116 |
-
"showStatusIndicators": false,
|
| 117 |
-
"showStatusLineRunningTime": false,
|
| 118 |
-
"mode": "zen"
|
| 119 |
-
},
|
| 120 |
-
"notifications": true,
|
| 121 |
-
"hints": true,
|
| 122 |
-
"modelSlashCommands": true,
|
| 123 |
-
"rewind": true,
|
| 124 |
-
"model": {
|
| 125 |
-
"modelId": "default",
|
| 126 |
-
"displayModelId": "auto",
|
| 127 |
-
"displayName": "Auto",
|
| 128 |
-
"displayNameShort": "Auto",
|
| 129 |
-
"aliases": [
|
| 130 |
-
"auto"
|
| 131 |
-
],
|
| 132 |
-
"maxMode": false
|
| 133 |
-
},
|
| 134 |
-
"hasChangedDefaultModel": false,
|
| 135 |
-
"modelParameters": {
|
| 136 |
-
"default": []
|
| 137 |
-
},
|
| 138 |
-
"selectedModel": {
|
| 139 |
-
"modelId": "default",
|
| 140 |
-
"parameters": []
|
| 141 |
-
},
|
| 142 |
-
"modelSelectionHistory": [
|
| 143 |
-
"default"
|
| 144 |
-
],
|
| 145 |
-
"exploreSubagentModel": "default",
|
| 146 |
-
"privacyCache": {
|
| 147 |
-
"ghostMode": true,
|
| 148 |
-
"privacyMode": 2,
|
| 149 |
-
"updatedAt": 1788319772358
|
| 150 |
-
},
|
| 151 |
-
"autoReviewAvailabilityCache": {
|
| 152 |
-
"backendUrl": "https://api2.cursor.sh",
|
| 153 |
-
"authCacheKey": "auth:auth0|user_01M1FVSA1ACQKBVJT0N5ST0FT8",
|
| 154 |
-
"available": true,
|
| 155 |
-
"updatedAt": 1788319795595
|
| 156 |
-
},
|
| 157 |
-
"serverConfigCache": {
|
| 158 |
-
"backendUrl": "https://api2.cursor.sh",
|
| 159 |
-
"authCacheKey": "auth:auth0|user_01M1FVSA1ACQKBVJT0N5ST0FT8",
|
| 160 |
-
"agentUrlConfig": {
|
| 161 |
-
"agentUrl": "https://agentn.global.api5.cursor.sh",
|
| 162 |
-
"agentnUrl": "https://agentn.global.api5.cursor.sh"
|
| 163 |
-
},
|
| 164 |
-
"cliSandboxDefaultEnabled": false,
|
| 165 |
-
"serverHttp2Config": 0,
|
| 166 |
-
"updatedAt": 1788319792368
|
| 167 |
-
},
|
| 168 |
-
"authInfo": {
|
| 169 |
-
"email": "dragonfly2025@edu.openlook.kdns.fr",
|
| 170 |
-
"displayName": "dragon fly",
|
| 171 |
-
"userId": 418660534,
|
| 172 |
-
"authId": "auth0|user_01M1FVSA1ACQKBVJT0N5ST0FT8"
|
| 173 |
-
},
|
| 174 |
-
"network": {
|
| 175 |
-
"useHttp1ForAgent": false
|
| 176 |
-
},
|
| 177 |
-
"approvalMode": "allowlist",
|
| 178 |
-
"autoAcceptWebSearch": false,
|
| 179 |
-
"sandbox": {
|
| 180 |
-
"mode": "disabled",
|
| 181 |
-
"networkAccess": "user_config_with_defaults"
|
| 182 |
-
},
|
| 183 |
-
"runEverythingSettingsPromptStreak": 0,
|
| 184 |
-
"attribution": {
|
| 185 |
-
"attributeCommitsToAgent": true,
|
| 186 |
-
"attributePRsToAgent": true
|
| 187 |
-
}
|
| 188 |
}
|
| 189 |
EOF
|
| 190 |
|
|
|
|
| 96 |
}
|
| 97 |
EOF
|
| 98 |
|
| 99 |
+
# 5 自动生成 Cursor 基础配置 (仅保留权限策略,认证通过 CURSOR_API_KEY 环境变量注入)
|
| 100 |
mkdir -p "$HOME/.cursor"
|
| 101 |
cat <<EOF > "$HOME/.cursor/cli-config.json"
|
| 102 |
{
|
| 103 |
"permissions": {
|
| 104 |
"allow": [
|
| 105 |
+
"Shell(*)",
|
| 106 |
+
"Read",
|
| 107 |
+
"Write"
|
| 108 |
],
|
| 109 |
"deny": []
|
| 110 |
},
|
| 111 |
+
"version": 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
}
|
| 113 |
EOF
|
| 114 |
|