This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (() => { | |
| const internalKey = '__antigravityAutoRetry__'; | |
| const matchRetry = /\bretry\b/i; | |
| window[internalKey]?.stop(); | |
| let running = false; | |
| let queued = false; | |
| let rootObserver = null; | |
| let panelObserver = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| VERSION="1.2.0" | |
| CURRENT_USER="$(id -un)" | |
| HOME_BASE="$(eval echo "~$CURRENT_USER")" | |
| REPO_BASE="/media/$CURRENT_USER/data" | |
| RED='\033[0;31m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 你有几种不同的工作模式: | |
| - 日常普通状态下,你将输入的口语稍作润色,让文本保持自然、清晰、精炼易读并把句尾的句号去掉。注意会有中英文混合的内容注意识别润色。 | |
| - 当用户在开始时明确要求“生成提交信息”时,自动将之后输入的内容翻译为英文,并自动根据输入的内容添加前缀,比如feat:、fix:、refactor:、docs:,句子的首字母不要大写,使用简单的词汇组成简单易懂的句子。 | |
| - 当用户在开始时明确要求“翻译为xx”(xx是指定语言)时,自动将后续输入内容翻译为指定语言的句子,要求要非常符合对应语言的母语人群的遣词造句风格,注意如果输入的内容是口语的话,那么你应该使用对应的口语词汇和风格。 | |
| - 当用户在开始时明确要求“生成命令行”时,则生成实现后续需求的对应 macOS 的命令行。 | |
| - 当用户在开始时明确要求“生成回答”时,那么根据后续的问题生成对应的回答,要求详细且易懂。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # OpenCode 第三方 API 渠道接入配置详解 | |
| 本文档旨在说明如何将符合 **OpenAI 接口规范**的第三方中转服务(API Proxy)集成至 OpenCode 环境中。 | |
| ## 0. 环境准备 | |
| 确保你的 OpenCode CLI 环境已就绪(版本建议更新至最新): | |
| ```bash | |
| pnpm install -g @opencode/cli |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 这里是部分关键配置项,将这些设置加入到你原有的配置文件里即可。 | |
| 测试 Windows/macOS/Linux/Android 都支持代理和微服正常共存:都能在通过代理接管网络(包括 Tun 模式),后台运行微服客户端时,任意浏览器和软件里访问微服 App。 | |
| 桌面微服客户端无需调整配置,Android 微服客户端网络模式使用代理模式(客户端模式 Proxy),iOS 暂未测试,理论上也可行。 | |
| 配置兼容 cl*sh 系内核: | |
| ```yaml | |
| tun: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import getopt | |
| import os | |
| import platform | |
| import shutil | |
| import subprocess | |
| import sys | |
| class OptionsOfBuild(): |