subconscious-cli 4.0.17 → 4.1.0-windows.0
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 +125 -7
- package/bin/agents.js +10 -1
- package/bin/auth.js +15 -5
- package/bin/cli.js +69 -0
- package/bin/native/subc-tui-darwin-amd64 +0 -0
- package/bin/native/subc-tui-darwin-arm64 +0 -0
- package/bin/native/subc-tui-linux-amd64 +0 -0
- package/bin/native/subc-tui-linux-arm64 +0 -0
- package/bin/native/subc-tui-windows-amd64.exe +0 -0
- package/bin/native/subc-tui-windows-arm64.exe +0 -0
- package/bin/profiles.js +60 -16
- package/bin/registry.generated.json +14 -4
- package/bin/runbook/claude-code/install.sh +4 -4
- package/bin/runbook/claude-code/run.sh +3 -3
- package/bin/runbook/codex/run.sh +3 -2
- package/bin/runbook/copilot/install.sh +6 -5
- package/bin/runbook/cursor/install.sh +3 -2
- package/bin/runbook/deepseek-harness/run.sh +3 -2
- package/bin/runbook/opencode/install.sh +6 -5
- package/bin/runbook/opencode/run.sh +3 -2
- package/bin/runbook/pi/install.sh +4 -3
- package/bin/runbook/pi/run.sh +1 -1
- package/bin/runbook/subconscious-code/run.sh +1 -1
- package/bin/sessions.js +622 -0
- package/bin/tui.js +27 -1
- package/bin/update-check.js +90 -17
- package/bin/upgrade.js +27 -11
- package/bin/usage.js +229 -0
- package/bin/windows/agents.js +87 -0
- package/bin/windows/claude.js +71 -0
- package/bin/windows/common.js +58 -0
- package/bin/windows/hook.cjs +71 -0
- package/bin/windows/install.js +97 -0
- package/bin/windows/launch.js +97 -0
- package/bin/windows/pi-compaction.ts +29 -0
- package/bin/windows/process.js +157 -0
- package/bin/windows/setup.js +168 -0
- package/package.json +2 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
# ./run.sh # uses GATEWAY_URL/API_KEY from ../.env
|
|
9
9
|
# ./run.sh --continue # pass args through to claude
|
|
10
10
|
# ./run.sh --compact-window 1000000 -- --continue
|
|
11
|
-
# ./run.sh --model subconscious/glm-5.
|
|
11
|
+
# ./run.sh --model subconscious/glm-5.3-marathon -p "hi"
|
|
12
12
|
#
|
|
13
13
|
# Config: copy ../env.example to ../.env and edit. .env is gitignored.
|
|
14
14
|
# Profile env is injected by subc. A sibling .env is only used when SUBC_ENV_FILE is unset.
|
|
@@ -25,7 +25,7 @@ SHARED_ENV="${SUBC_ENV_FILE:-${SCRIPT_DIR}/../.env}"
|
|
|
25
25
|
[[ -f "$SHARED_ENV" ]] || SHARED_ENV="${SCRIPT_DIR}/../env.example"
|
|
26
26
|
if [[ -f "$SHARED_ENV" ]]; then set -a; source "$SHARED_ENV"; set +a; fi
|
|
27
27
|
|
|
28
|
-
DEFAULT_MODEL="subconscious/glm-5.
|
|
28
|
+
DEFAULT_MODEL="subconscious/glm-5.3-marathon"
|
|
29
29
|
DEFAULT_COMPACT_WINDOW="1000000"
|
|
30
30
|
DEFAULT_MAX_CONTEXT_TOKENS="3000000"
|
|
31
31
|
DEFAULT_MAX_CONCURRENT_SUBAGENTS="4"
|
|
@@ -136,7 +136,7 @@ Usage:
|
|
|
136
136
|
Options (same as install.sh; flags override env for this run):
|
|
137
137
|
--gateway-url URL Gateway origin (e.g. https://gateway.example)
|
|
138
138
|
--api-key KEY Gateway API key (sk-gw-...)
|
|
139
|
-
--model MODEL Model name (default: subconscious/glm-5.
|
|
139
|
+
--model MODEL Model name (default: subconscious/glm-5.3-marathon)
|
|
140
140
|
--compact-window N CLAUDE_CODE_AUTO_COMPACT_WINDOW (default: 1000000; Claude Code clamps to 100000–1000000)
|
|
141
141
|
See https://code.claude.com/docs/en/env-vars and
|
|
142
142
|
https://code.claude.com/docs/en/context-window#set-the-auto-compact-window
|
package/bin/runbook/codex/run.sh
CHANGED
|
@@ -39,7 +39,7 @@ if [[ -f "$SHARED_ENV" ]]; then set -a; source "$SHARED_ENV"; set +a; fi
|
|
|
39
39
|
|
|
40
40
|
GATEWAY_URL="${GATEWAY_URL:-}"
|
|
41
41
|
API_KEY="${CODEX_API_KEY:-${API_KEY:-}}"
|
|
42
|
-
MODEL="${MODEL:-subconscious/glm-5.
|
|
42
|
+
MODEL="${MODEL:-subconscious/glm-5.3-marathon}"
|
|
43
43
|
MAX_CONCURRENT_SUBAGENTS="${MAX_CONCURRENT_SUBAGENTS:-4}"
|
|
44
44
|
SUBAGENTS=false
|
|
45
45
|
EXTERNAL_TOOLS="${CODEX_EXTERNAL_TOOLS:-false}"
|
|
@@ -102,7 +102,8 @@ case "$CODEX_REASONING_EFFORT" in
|
|
|
102
102
|
;;
|
|
103
103
|
esac
|
|
104
104
|
|
|
105
|
-
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.
|
|
105
|
+
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.3-marathon
|
|
106
|
+
subconscious/glm-5.2
|
|
106
107
|
subconscious/tim-qwen3.6-27b
|
|
107
108
|
subconscious/deepseek-v4-flash-marathon"
|
|
108
109
|
SUPPORTED_MODELS=()
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
# "apiType": "messages",
|
|
34
34
|
# "models": [
|
|
35
35
|
# {
|
|
36
|
-
# "id": "subconscious/glm-5.
|
|
37
|
-
# "name": "Subconscious GLM 5.
|
|
36
|
+
# "id": "subconscious/glm-5.3-marathon",
|
|
37
|
+
# "name": "Subconscious GLM 5.3 Marathon",
|
|
38
38
|
# "url": "https://your-gateway.example/v1/messages",
|
|
39
39
|
# "toolCalling": true,
|
|
40
40
|
# "vision": false,
|
|
@@ -77,7 +77,7 @@ if [[ -f "$SHARED_ENV" ]]; then set -a; source "$SHARED_ENV"; set +a; fi
|
|
|
77
77
|
COMMAND="install"
|
|
78
78
|
GATEWAY_URL="${GATEWAY_URL:-}"
|
|
79
79
|
API_KEY="${COPILOT_API_KEY:-${API_KEY:-}}"
|
|
80
|
-
MODEL="${MODEL:-subconscious/glm-5.
|
|
80
|
+
MODEL="${MODEL:-subconscious/glm-5.3-marathon}"
|
|
81
81
|
MAX_INPUT_TOKENS="${COPILOT_MAX_INPUT_TOKENS:-5000000}"
|
|
82
82
|
MAX_OUTPUT_TOKENS="${COPILOT_MAX_OUTPUT_TOKENS:-65536}"
|
|
83
83
|
VSCODE_APP="${VSCODE_APP:-}" # auto-detected: Code | Code - Insiders | VSCodium
|
|
@@ -122,7 +122,7 @@ default. Restart VS Code after install.
|
|
|
122
122
|
Options:
|
|
123
123
|
--gateway-url URL Gateway origin (default: $GATEWAY_URL from .env)
|
|
124
124
|
--api-key KEY Gateway API key for hooks (default: $API_KEY from .env)
|
|
125
|
-
--model MODEL Model id (default: subconscious/glm-5.
|
|
125
|
+
--model MODEL Model id (default: subconscious/glm-5.3-marathon)
|
|
126
126
|
--max-input-tokens N Model context window input tokens (default: 5000000)
|
|
127
127
|
--max-output-tokens N Model max output tokens (default: 65536)
|
|
128
128
|
--vscode-app APP Code, Code - Insiders, or VSCodium (auto-detected)
|
|
@@ -174,7 +174,8 @@ while [[ $# -gt 0 ]]; do
|
|
|
174
174
|
esac
|
|
175
175
|
done
|
|
176
176
|
|
|
177
|
-
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.
|
|
177
|
+
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.3-marathon
|
|
178
|
+
subconscious/glm-5.2
|
|
178
179
|
subconscious/tim-qwen3.6-27b
|
|
179
180
|
subconscious/deepseek-v4-flash-marathon"
|
|
180
181
|
SUPPORTED_MODELS=()
|
|
@@ -53,10 +53,11 @@ if [[ -f "$SHARED_ENV" ]]; then set -a; source "$SHARED_ENV"; set +a; fi
|
|
|
53
53
|
|
|
54
54
|
GATEWAY_URL="${GATEWAY_URL:-}"
|
|
55
55
|
API_KEY="${CURSOR_API_KEY:-${API_KEY:-}}"
|
|
56
|
-
MODEL="${MODEL:-subconscious/glm-5.
|
|
56
|
+
MODEL="${MODEL:-subconscious/glm-5.3-marathon}"
|
|
57
57
|
COMMAND="install"
|
|
58
58
|
|
|
59
|
-
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.
|
|
59
|
+
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.3-marathon
|
|
60
|
+
subconscious/glm-5.2
|
|
60
61
|
subconscious/tim-qwen3.6-27b
|
|
61
62
|
subconscious/deepseek-v4-flash-marathon"
|
|
62
63
|
|
|
@@ -6,11 +6,12 @@ set -euo pipefail
|
|
|
6
6
|
|
|
7
7
|
GATEWAY_URL="${GATEWAY_URL:-}"
|
|
8
8
|
API_KEY="${DEEPSEEK_HARNESS_API_KEY:-${API_KEY:-}}"
|
|
9
|
-
MODEL="${MODEL:-subconscious/glm-5.
|
|
9
|
+
MODEL="${MODEL:-subconscious/glm-5.3-marathon}"
|
|
10
10
|
CONTEXT_WINDOW="${DEEPSEEK_HARNESS_CONTEXT_WINDOW:-5000000}"
|
|
11
11
|
MAX_TOKENS="${DEEPSEEK_HARNESS_MAX_TOKENS:-65536}"
|
|
12
12
|
|
|
13
|
-
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.
|
|
13
|
+
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.3-marathon
|
|
14
|
+
subconscious/glm-5.2
|
|
14
15
|
subconscious/tim-qwen3.6-27b
|
|
15
16
|
subconscious/deepseek-v4-flash-marathon"
|
|
16
17
|
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
# "headers": { "x-subconscious-client": "opencode" }
|
|
29
29
|
# },
|
|
30
30
|
# "models": {
|
|
31
|
-
# "subconscious/glm-5.
|
|
32
|
-
# "name": "subconscious/glm-5.
|
|
31
|
+
# "subconscious/glm-5.3-marathon": {
|
|
32
|
+
# "name": "subconscious/glm-5.3-marathon",
|
|
33
33
|
# "tools": true,
|
|
34
34
|
# "limit": { "context": 5000000, "output": 65536 }
|
|
35
35
|
# }
|
|
36
36
|
# }
|
|
37
37
|
# }
|
|
38
38
|
# },
|
|
39
|
-
# "model": "subconscious/subconscious/glm-5.
|
|
39
|
+
# "model": "subconscious/subconscious/glm-5.3-marathon"
|
|
40
40
|
# }
|
|
41
41
|
# EOF
|
|
42
42
|
# opencode
|
|
@@ -63,7 +63,7 @@ if [[ -f "$SHARED_ENV" ]]; then set -a; source "$SHARED_ENV"; set +a; fi
|
|
|
63
63
|
COMMAND="install"
|
|
64
64
|
GATEWAY_URL="${GATEWAY_URL:-}"
|
|
65
65
|
API_KEY="${OPENCODE_API_KEY:-${API_KEY:-}}"
|
|
66
|
-
MODEL="${MODEL:-subconscious/glm-5.
|
|
66
|
+
MODEL="${MODEL:-subconscious/glm-5.3-marathon}"
|
|
67
67
|
# OpenCode auto-compaction uses model limit.context. Custom openai-compatible
|
|
68
68
|
# providers do not get that from baseURL/models.dev; set it explicitly.
|
|
69
69
|
CONTEXT_LIMIT="${OPENCODE_CONTEXT_LIMIT:-5000000}"
|
|
@@ -119,7 +119,8 @@ while [[ $# -gt 0 ]]; do
|
|
|
119
119
|
esac
|
|
120
120
|
done
|
|
121
121
|
|
|
122
|
-
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.
|
|
122
|
+
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.3-marathon
|
|
123
|
+
subconscious/glm-5.2
|
|
123
124
|
subconscious/tim-qwen3.6-27b
|
|
124
125
|
subconscious/deepseek-v4-flash-marathon"
|
|
125
126
|
SUPPORTED_MODELS=()
|
|
@@ -26,11 +26,12 @@ if [[ -f "$SHARED_ENV" ]]; then set -a; source "$SHARED_ENV"; set +a; fi
|
|
|
26
26
|
|
|
27
27
|
GATEWAY_URL="${GATEWAY_URL:-}"
|
|
28
28
|
API_KEY="${OPENCODE_API_KEY:-${API_KEY:-}}"
|
|
29
|
-
MODEL="${MODEL:-subconscious/glm-5.
|
|
29
|
+
MODEL="${MODEL:-subconscious/glm-5.3-marathon}"
|
|
30
30
|
CONTEXT_LIMIT="${OPENCODE_CONTEXT_LIMIT:-5000000}"
|
|
31
31
|
OUTPUT_LIMIT="${OPENCODE_OUTPUT_LIMIT:-65536}"
|
|
32
32
|
|
|
33
|
-
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.
|
|
33
|
+
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.3-marathon
|
|
34
|
+
subconscious/glm-5.2
|
|
34
35
|
subconscious/tim-qwen3.6-27b
|
|
35
36
|
subconscious/deepseek-v4-flash-marathon"
|
|
36
37
|
SUPPORTED_MODELS=()
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# "apiKey": "sk-gw-...",
|
|
22
22
|
# "headers": { "x-subconscious-client": "pi" },
|
|
23
23
|
# "models": [{
|
|
24
|
-
# "id": "subconscious/glm-5.
|
|
24
|
+
# "id": "subconscious/glm-5.3-marathon",
|
|
25
25
|
# "contextWindow": 5000000,
|
|
26
26
|
# "maxTokens": 65536,
|
|
27
27
|
# "compat": {
|
|
@@ -57,7 +57,7 @@ if [[ -f "$SHARED_ENV" ]]; then set -a; source "$SHARED_ENV"; set +a; fi
|
|
|
57
57
|
COMMAND="install"
|
|
58
58
|
GATEWAY_URL="${GATEWAY_URL:-}"
|
|
59
59
|
API_KEY="${PI_API_KEY:-${API_KEY:-}}"
|
|
60
|
-
MODEL="${MODEL:-subconscious/glm-5.
|
|
60
|
+
MODEL="${MODEL:-subconscious/glm-5.3-marathon}"
|
|
61
61
|
CONTEXT_WINDOW="${PI_CONTEXT_WINDOW:-5000000}"
|
|
62
62
|
MAX_TOKENS="${PI_MAX_TOKENS:-65536}"
|
|
63
63
|
|
|
@@ -114,7 +114,8 @@ while [[ $# -gt 0 ]]; do
|
|
|
114
114
|
esac
|
|
115
115
|
done
|
|
116
116
|
|
|
117
|
-
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.
|
|
117
|
+
DEFAULT_SUBCONSCIOUS_MODELS="subconscious/glm-5.3-marathon
|
|
118
|
+
subconscious/glm-5.2
|
|
118
119
|
subconscious/tim-qwen3.6-27b
|
|
119
120
|
subconscious/deepseek-v4-flash-marathon"
|
|
120
121
|
SUPPORTED_MODELS=()
|
package/bin/runbook/pi/run.sh
CHANGED
|
@@ -7,7 +7,7 @@ set -euo pipefail
|
|
|
7
7
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
8
8
|
GATEWAY_URL="${GATEWAY_URL:-}"
|
|
9
9
|
API_KEY="${PI_API_KEY:-${API_KEY:-}}"
|
|
10
|
-
MODEL="${MODEL:-subconscious/glm-5.
|
|
10
|
+
MODEL="${MODEL:-subconscious/glm-5.3-marathon}"
|
|
11
11
|
PI_DIR="${PI_CODING_AGENT_DIR:-${HOME}/.pi/agent}"
|
|
12
12
|
MODELS_JSON="${PI_DIR}/models.json"
|
|
13
13
|
|
|
@@ -5,7 +5,7 @@ set -euo pipefail
|
|
|
5
5
|
|
|
6
6
|
GATEWAY_URL="${GATEWAY_URL:-}"
|
|
7
7
|
API_KEY="${SC_API_KEY:-${API_KEY:-}}"
|
|
8
|
-
MODEL="${MODEL:-subconscious/glm-5.
|
|
8
|
+
MODEL="${MODEL:-subconscious/glm-5.3-marathon}"
|
|
9
9
|
|
|
10
10
|
if [[ -z "$GATEWAY_URL" || -z "$API_KEY" ]]; then
|
|
11
11
|
echo "error: GATEWAY_URL and API_KEY are required to launch Subconscious Code" >&2
|