@xcanwin/manyoyo 5.3.9 → 5.3.10
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/docker/res/claude/claude.json +9 -0
- package/docker/res/claude/settings.json +6 -0
- package/docker/res/claude/statusline.sh +58 -0
- package/docker/res/codex/config.toml +7 -0
- package/docker/res/gemini/settings.json +21 -0
- package/docker/res/opencode/opencode.json +22 -0
- package/docker/res/supervisor/s.conf +3 -0
- package/package.json +2 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Claude Code status line script
|
|
3
|
+
# Items: used-tokens, context-used, model-with-reasoning, current-dir
|
|
4
|
+
|
|
5
|
+
input=$(cat)
|
|
6
|
+
|
|
7
|
+
total_input=$(echo "$input" | jq -r '.context_window.total_input_tokens // 0')
|
|
8
|
+
total_output=$(echo "$input" | jq -r '.context_window.total_output_tokens // 0')
|
|
9
|
+
used_pct=$(echo "$input" | jq -r '.context_window.used_percentage // empty')
|
|
10
|
+
model_id=$(echo "$input" | jq -r '.model.id // ""')
|
|
11
|
+
model_name=$(echo "$input" | jq -r '.model.display_name // ""')
|
|
12
|
+
cwd=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // ""')
|
|
13
|
+
|
|
14
|
+
# used-tokens (omit when zero)
|
|
15
|
+
used_tokens=$((total_input + total_output))
|
|
16
|
+
if [ "$used_tokens" -ge 1000000 ]; then
|
|
17
|
+
used_tokens_str="$(awk "BEGIN {printf \"%.1fM\", $used_tokens/1000000}") used"
|
|
18
|
+
elif [ "$used_tokens" -ge 1000 ]; then
|
|
19
|
+
used_tokens_str="$(awk "BEGIN {printf \"%.1fk\", $used_tokens/1000}") used"
|
|
20
|
+
elif [ "$used_tokens" -gt 0 ]; then
|
|
21
|
+
used_tokens_str="${used_tokens} used"
|
|
22
|
+
else
|
|
23
|
+
used_tokens_str=""
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
# context-used (omit when unknown)
|
|
27
|
+
if [ -n "$used_pct" ]; then
|
|
28
|
+
context_used_str="$(printf "%.0f" "$used_pct")% used"
|
|
29
|
+
else
|
|
30
|
+
context_used_str=""
|
|
31
|
+
fi
|
|
32
|
+
|
|
33
|
+
# model-with-reasoning
|
|
34
|
+
if echo "$model_id" | grep -qi "thinking\|extended"; then
|
|
35
|
+
model_str="${model_name}[T]"
|
|
36
|
+
else
|
|
37
|
+
model_str="${model_name}"
|
|
38
|
+
fi
|
|
39
|
+
|
|
40
|
+
# current-dir (absolute path)
|
|
41
|
+
if [ -n "$cwd" ]; then
|
|
42
|
+
current_dir="$cwd"
|
|
43
|
+
else
|
|
44
|
+
current_dir="$PWD"
|
|
45
|
+
fi
|
|
46
|
+
|
|
47
|
+
# Assemble (skip empty parts)
|
|
48
|
+
parts=()
|
|
49
|
+
[ -n "$used_tokens_str" ] && parts+=("$used_tokens_str")
|
|
50
|
+
[ -n "$context_used_str" ] && parts+=("$context_used_str")
|
|
51
|
+
[ -n "$model_str" ] && parts+=("$model_str")
|
|
52
|
+
[ -n "$current_dir" ] && parts+=("$current_dir")
|
|
53
|
+
|
|
54
|
+
result=""
|
|
55
|
+
for part in "${parts[@]}"; do
|
|
56
|
+
[ -z "$result" ] && result="$part" || result="$result · $part"
|
|
57
|
+
done
|
|
58
|
+
printf "%s" "$result"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"privacy": {
|
|
3
|
+
"usageStatisticsEnabled": false
|
|
4
|
+
},
|
|
5
|
+
"general": {
|
|
6
|
+
"previewFeatures": true,
|
|
7
|
+
"enableAutoUpdate": false,
|
|
8
|
+
"enableAutoUpdateNotification": false
|
|
9
|
+
},
|
|
10
|
+
"ui": {
|
|
11
|
+
"showLineNumbers": false
|
|
12
|
+
},
|
|
13
|
+
"security": {
|
|
14
|
+
"auth": {
|
|
15
|
+
"selectedType": "oauth-personal"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"model": {
|
|
19
|
+
"name": "gemini-3-pro-preview"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opencode.ai/config.json",
|
|
3
|
+
"autoupdate": false,
|
|
4
|
+
"model": "Custom_Provider/{env:OPENAI_MODEL}",
|
|
5
|
+
"provider": {
|
|
6
|
+
"Custom_Provider": {
|
|
7
|
+
"npm": "@ai-sdk/openai-compatible",
|
|
8
|
+
"options": {
|
|
9
|
+
"baseURL": "{env:OPENAI_BASE_URL}",
|
|
10
|
+
"apiKey": "{env:OPENAI_API_KEY}",
|
|
11
|
+
"headers": {
|
|
12
|
+
"User-Agent": "opencode"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"models": {
|
|
16
|
+
"{env:OPENAI_MODEL}": {},
|
|
17
|
+
"claude-sonnet-4-5-20250929": {},
|
|
18
|
+
"gpt-5.2": {}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcanwin/manyoyo",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.10",
|
|
4
4
|
"imageVersion": "1.8.4-common",
|
|
5
5
|
"description": "AI Agent CLI Security Sandbox for Docker and Podman",
|
|
6
6
|
"keywords": [
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"README.md",
|
|
51
51
|
"LICENSE",
|
|
52
52
|
"docker/manyoyo.Dockerfile",
|
|
53
|
+
"docker/res/**",
|
|
53
54
|
"manyoyo.example.json"
|
|
54
55
|
],
|
|
55
56
|
"dependencies": {
|