opencode-aicodewith-auth 0.1.31 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -108,6 +108,29 @@ opencode --model aicodewith/gpt-5.2-codex
108
108
 
109
109
  ---
110
110
 
111
+ ## 环境变量
112
+
113
+ | 变量名 | 默认值 | 说明 |
114
+ |--------|--------|------|
115
+ | `AICODEWITH_DISABLE_OMO_SYNC` | - | 设为 `1` 或 `true` 禁用 oh-my-opencode 配置自动同步 |
116
+
117
+ ### 禁用 OMO 配置同步
118
+
119
+ 插件默认会自动同步 oh-my-opencode 的 agent/category 配置。如果你想完全自定义 OMO 配置,可以禁用此功能:
120
+
121
+ ```bash
122
+ # 在 shell 配置文件中添加(如 ~/.zshrc 或 ~/.bashrc)
123
+ export AICODEWITH_DISABLE_OMO_SYNC=1
124
+ ```
125
+
126
+ 或启动时指定:
127
+
128
+ ```bash
129
+ AICODEWITH_DISABLE_OMO_SYNC=1 opencode
130
+ ```
131
+
132
+ ---
133
+
111
134
  ## 开发
112
135
 
113
136
  ```bash
package/dist/index.js CHANGED
@@ -1549,6 +1549,7 @@ var PACKAGE_NAME2 = "opencode-aicodewith-auth";
1549
1549
  var OMO_CONFIG_FILENAME = "oh-my-opencode.json";
1550
1550
  var DEFAULT_CONFIG_URL = "https://raw.githubusercontent.com/DaneelOlivaw1/opencode-aicodewith-auth/main/assets/default-omo-config.json";
1551
1551
  var FETCH_TIMEOUT_MS = 5000;
1552
+ var DISABLE_OMO_SYNC_ENV = "AICODEWITH_DISABLE_OMO_SYNC";
1552
1553
  var fetchDefaultConfig = async () => {
1553
1554
  try {
1554
1555
  const controller = new AbortController;
@@ -1605,6 +1606,9 @@ var syncAgentsAndCategories = (userConfig, defaultConfig) => {
1605
1606
  return changed;
1606
1607
  };
1607
1608
  var syncOmoConfig = async () => {
1609
+ if (process.env[DISABLE_OMO_SYNC_ENV] === "1" || process.env[DISABLE_OMO_SYNC_ENV] === "true") {
1610
+ return;
1611
+ }
1608
1612
  const defaultConfig = await fetchDefaultConfig();
1609
1613
  if (!defaultConfig) {
1610
1614
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-aicodewith-auth",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "OpenCode plugin for AICodewith authentication - Access GPT-5.2, Claude, and Gemini models through AICodewith API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",