ccman 3.3.4 → 3.3.6
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 +8 -10
- package/dist/index.js +309 -341
- package/dist/templates/codex/config.toml +10 -98
- package/dist/templates/opencode/opencode.json +38 -0
- package/package.json +1 -1
|
@@ -1,109 +1,21 @@
|
|
|
1
1
|
########################################
|
|
2
|
-
#
|
|
2
|
+
# Codex 最小模板(ccman 默认)
|
|
3
|
+
#
|
|
4
|
+
# - model_provider 与 [model_providers.*] 由 ccman 根据当前服务商自动写入
|
|
5
|
+
# - 配置越少越稳定;需要扩展再手动加
|
|
3
6
|
########################################
|
|
4
7
|
|
|
5
|
-
model = "gpt-5.
|
|
6
|
-
|
|
7
|
-
# model_provider 与 model_providers 由 ccman 根据当前服务商自动写入
|
|
8
|
-
# 如需手动指定可自行在此添加:
|
|
9
|
-
# model_provider = "YourProviderName"
|
|
10
|
-
|
|
11
|
-
# 理力度设置
|
|
8
|
+
model = "gpt-5.2-codex"
|
|
12
9
|
model_reasoning_effort = "high"
|
|
13
|
-
|
|
14
|
-
# 存储策略
|
|
10
|
+
model_verbosity = "high"
|
|
15
11
|
disable_response_storage = true
|
|
16
|
-
|
|
17
|
-
# 沙箱模式
|
|
18
|
-
sandbox_mode = "danger-full-access" # 完全禁用沙箱
|
|
19
|
-
# sandbox_mode = "workspace-write"
|
|
20
12
|
windows_wsl_setup_acknowledged = true
|
|
21
13
|
|
|
22
|
-
#
|
|
23
|
-
#
|
|
24
|
-
approval_policy = "never"
|
|
25
|
-
|
|
26
|
-
# 默认使用的 profile(下面定义,只改行为,不改 model)
|
|
27
|
-
profile = "auto-max"
|
|
28
|
-
|
|
29
|
-
# 打开文件用哪个编辑器
|
|
30
|
-
file_opener = "vscode"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
########################################
|
|
34
|
-
# 历史记录 & 终端 UI(纯本地)
|
|
35
|
-
########################################
|
|
36
|
-
|
|
37
|
-
[history]
|
|
38
|
-
persistence = "save-all"
|
|
14
|
+
# Web 搜索策略(替代旧的 [features].web_search_request)
|
|
15
|
+
web_search = "live" # "live" | "cached" | "disabled"
|
|
39
16
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
########################################
|
|
45
|
-
# Shell 环境(纯本地)
|
|
46
|
-
########################################
|
|
47
|
-
|
|
48
|
-
[shell_environment_policy]
|
|
49
|
-
inherit = "all"
|
|
50
|
-
ignore_default_excludes = false
|
|
51
|
-
# 如有需要可以再加 exclude / include_only / set
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
########################################
|
|
55
|
-
# workspace-write 沙箱设置(纯本地)
|
|
56
|
-
########################################
|
|
17
|
+
# 沙箱与网络访问:workspace-write + 允许联网
|
|
18
|
+
sandbox_mode = "workspace-write"
|
|
57
19
|
|
|
58
20
|
[sandbox_workspace_write]
|
|
59
21
|
network_access = true
|
|
60
|
-
# 可按需再加 writable_roots / exclude_tmpdir_env_var / exclude_slash_tmp
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
########################################
|
|
64
|
-
# Features(完全沿用你原来的 + 本地能力)
|
|
65
|
-
########################################
|
|
66
|
-
|
|
67
|
-
[features]
|
|
68
|
-
plan_tool = true
|
|
69
|
-
apply_patch_freeform = true
|
|
70
|
-
view_image_tool = true
|
|
71
|
-
web_search_request = true
|
|
72
|
-
unified_exec = false
|
|
73
|
-
streamable_shell = false
|
|
74
|
-
rmcp_client = true
|
|
75
|
-
# 如以后确认其他服务完全兼容,可以考虑再打开 ghost_commit 等
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
########################################
|
|
79
|
-
# Profiles:只改“行为”,不改模型/提供方
|
|
80
|
-
########################################
|
|
81
|
-
|
|
82
|
-
[profiles.auto-max]
|
|
83
|
-
# 使用顶层的 model / model_provider(即 gpt-5.1-codex + OpenAI/GMN)
|
|
84
|
-
# 这里只覆盖“本地行为”,例如审批和沙箱
|
|
85
|
-
approval_policy = "never"
|
|
86
|
-
sandbox_mode = "workspace-write"
|
|
87
|
-
|
|
88
|
-
[profiles.review]
|
|
89
|
-
# 审核模式:命令前多问一句(适合公司仓库)
|
|
90
|
-
approval_policy = "on-request"
|
|
91
|
-
sandbox_mode = "workspace-write"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
########################################
|
|
95
|
-
# 其它提示 / 杂项
|
|
96
|
-
########################################
|
|
97
|
-
|
|
98
|
-
[notice]
|
|
99
|
-
hide_gpt5_1_migration_prompt = true
|
|
100
|
-
|
|
101
|
-
########################################
|
|
102
|
-
# 模型提供方示例(仅注释示例,不会生效)
|
|
103
|
-
########################################
|
|
104
|
-
|
|
105
|
-
# [model_providers.gmn]
|
|
106
|
-
# name = "GMN"
|
|
107
|
-
# base_url = "https://gmn.chuangzuoli.cn/openai"
|
|
108
|
-
# wire_api = "responses"
|
|
109
|
-
# requires_openai_auth = true
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"provider": {
|
|
3
|
+
"openai": {
|
|
4
|
+
"options": {
|
|
5
|
+
"baseURL": "{{baseUrl}}",
|
|
6
|
+
"apiKey": "{{apiKey}}"
|
|
7
|
+
},
|
|
8
|
+
"models": {
|
|
9
|
+
"gpt-5.2-codex": {
|
|
10
|
+
"name": "GPT-5.2 Codex",
|
|
11
|
+
"options": {
|
|
12
|
+
"store": false
|
|
13
|
+
},
|
|
14
|
+
"variants": {
|
|
15
|
+
"low": {},
|
|
16
|
+
"medium": {},
|
|
17
|
+
"high": {},
|
|
18
|
+
"xhigh": {}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"agent": {
|
|
25
|
+
"build": {
|
|
26
|
+
"options": {
|
|
27
|
+
"store": false
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"plan": {
|
|
31
|
+
"options": {
|
|
32
|
+
"store": false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"$schema": "https://opencode.ai/config.json",
|
|
37
|
+
"model": "openai/gpt-5.2-codex"
|
|
38
|
+
}
|