@triflux/core 10.41.1 → 10.43.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/hooks/keyword-rules.json +39 -5
- package/hooks/pipeline-stop.mjs +1 -1
- package/hub/bridge.mjs +80 -1
- package/hub/cli-adapter-base.mjs +100 -19
- package/hub/codex-adapter.mjs +5 -1
- package/hub/dynamic-routing-engine.mjs +1 -1
- package/hub/gemini-adapter.mjs +3 -1
- package/hub/intent.mjs +13 -9
- package/hub/lib/cto-env.mjs +94 -0
- package/hub/lib/memory-store.mjs +34 -13
- package/hub/lib/timeout-defaults.mjs +45 -0
- package/hub/lib/worker-lifecycle.mjs +101 -0
- package/hub/log-retention.mjs +726 -0
- package/hub/middleware/request-logger.mjs +4 -1
- package/hub/role-contract.mjs +314 -0
- package/hub/role-control-events.mjs +113 -0
- package/hub/router.mjs +135 -30
- package/hub/team/claude-daemon-control.mjs +28 -15
- package/hub/team/intervention.mjs +530 -0
- package/hub/team/retry-state-machine.mjs +6 -2
- package/hud/constants.mjs +21 -0
- package/hud/context-monitor.mjs +18 -21
- package/hud/hud-qos-status.mjs +1 -1
- package/hud/providers/codex-probe.mjs +216 -0
- package/hud/providers/codex.mjs +206 -29
- package/hud/renderers.mjs +6 -9
- package/package.json +1 -1
- package/scripts/lib/cli-agy.mjs +1 -0
- package/scripts/lib/cli-claude.mjs +1 -0
- package/scripts/lib/cli-codex.mjs +22 -21
- package/scripts/lib/codex-profile-config.mjs +2 -2
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
//
|
|
6
6
|
// 진입점: tfx-route.mjs → selectAdapter("codex") → plan({...}).
|
|
7
7
|
// 출처: scripts/tfx-route.sh route_agent() L1001-L1079 case 문 미러.
|
|
8
|
+
// timeoutSec은 lane 예상 소요 시간(advisory)이다. hard ceiling 집행은 Bash route가 소유한다.
|
|
8
9
|
|
|
9
10
|
export const id = "codex";
|
|
10
11
|
export const cliType = "codex";
|
|
@@ -12,84 +13,84 @@ export const command = "codex";
|
|
|
12
13
|
|
|
13
14
|
const AGENT_PROFILES = {
|
|
14
15
|
executor: {
|
|
15
|
-
profile: "
|
|
16
|
+
profile: "gpt56_terra_high",
|
|
16
17
|
timeoutSec: 1080,
|
|
17
18
|
runMode: "fg",
|
|
18
19
|
opusOversight: false,
|
|
19
20
|
mcpHint: "implement",
|
|
20
21
|
},
|
|
21
22
|
codex: {
|
|
22
|
-
profile: "
|
|
23
|
+
profile: "gpt56_terra_high",
|
|
23
24
|
timeoutSec: 1080,
|
|
24
25
|
runMode: "fg",
|
|
25
26
|
opusOversight: false,
|
|
26
27
|
mcpHint: "implement",
|
|
27
28
|
},
|
|
28
29
|
"build-fixer": {
|
|
29
|
-
profile: "
|
|
30
|
+
profile: "gpt56_luna_low",
|
|
30
31
|
timeoutSec: 540,
|
|
31
32
|
runMode: "fg",
|
|
32
33
|
opusOversight: false,
|
|
33
34
|
mcpHint: "implement",
|
|
34
35
|
},
|
|
35
36
|
cleanup: {
|
|
36
|
-
profile: "
|
|
37
|
+
profile: "gpt56_terra_med",
|
|
37
38
|
timeoutSec: 540,
|
|
38
39
|
runMode: "fg",
|
|
39
40
|
opusOversight: false,
|
|
40
41
|
mcpHint: "implement",
|
|
41
42
|
},
|
|
42
43
|
deslop: {
|
|
43
|
-
profile: "
|
|
44
|
+
profile: "gpt56_terra_med",
|
|
44
45
|
timeoutSec: 540,
|
|
45
46
|
runMode: "fg",
|
|
46
47
|
opusOversight: false,
|
|
47
48
|
mcpHint: "implement",
|
|
48
49
|
},
|
|
49
50
|
debugger: {
|
|
50
|
-
profile: "
|
|
51
|
+
profile: "gpt56_sol_xhigh",
|
|
51
52
|
timeoutSec: 900,
|
|
52
53
|
runMode: "bg",
|
|
53
54
|
opusOversight: false,
|
|
54
55
|
mcpHint: "implement",
|
|
55
56
|
},
|
|
56
57
|
"deep-executor": {
|
|
57
|
-
profile: "
|
|
58
|
+
profile: "gpt56_sol_xhigh",
|
|
58
59
|
timeoutSec: 3600,
|
|
59
60
|
runMode: "bg",
|
|
60
61
|
opusOversight: true,
|
|
61
62
|
mcpHint: "implement",
|
|
62
63
|
},
|
|
63
64
|
architect: {
|
|
64
|
-
profile: "
|
|
65
|
+
profile: "gpt56_sol_xhigh",
|
|
65
66
|
timeoutSec: 3600,
|
|
66
67
|
runMode: "bg",
|
|
67
68
|
opusOversight: true,
|
|
68
69
|
mcpHint: "analyze",
|
|
69
70
|
},
|
|
70
71
|
critic: {
|
|
71
|
-
profile: "
|
|
72
|
+
profile: "gpt56_sol_xhigh",
|
|
72
73
|
timeoutSec: 3600,
|
|
73
74
|
runMode: "bg",
|
|
74
75
|
opusOversight: true,
|
|
75
76
|
mcpHint: "analyze",
|
|
76
77
|
},
|
|
77
78
|
planner: {
|
|
78
|
-
profile: "
|
|
79
|
+
profile: "gpt56_sol_xhigh",
|
|
79
80
|
timeoutSec: 3600,
|
|
80
81
|
runMode: "fg",
|
|
81
82
|
opusOversight: true,
|
|
82
83
|
mcpHint: "analyze",
|
|
83
84
|
},
|
|
84
85
|
analyst: {
|
|
85
|
-
profile: "
|
|
86
|
+
profile: "gpt56_sol_xhigh",
|
|
86
87
|
timeoutSec: 3600,
|
|
87
88
|
runMode: "fg",
|
|
88
89
|
opusOversight: true,
|
|
89
90
|
mcpHint: "analyze",
|
|
90
91
|
},
|
|
91
92
|
"code-reviewer": {
|
|
92
|
-
profile: "
|
|
93
|
+
profile: "gpt56_terra_high",
|
|
93
94
|
timeoutSec: 1800,
|
|
94
95
|
runMode: "bg",
|
|
95
96
|
opusOversight: false,
|
|
@@ -97,7 +98,7 @@ const AGENT_PROFILES = {
|
|
|
97
98
|
subcommand: "review",
|
|
98
99
|
},
|
|
99
100
|
"quality-reviewer": {
|
|
100
|
-
profile: "
|
|
101
|
+
profile: "gpt56_terra_high",
|
|
101
102
|
timeoutSec: 1800,
|
|
102
103
|
runMode: "bg",
|
|
103
104
|
opusOversight: false,
|
|
@@ -105,7 +106,7 @@ const AGENT_PROFILES = {
|
|
|
105
106
|
subcommand: "review",
|
|
106
107
|
},
|
|
107
108
|
"security-reviewer": {
|
|
108
|
-
profile: "
|
|
109
|
+
profile: "gpt56_sol_xhigh",
|
|
109
110
|
timeoutSec: 1800,
|
|
110
111
|
runMode: "bg",
|
|
111
112
|
opusOversight: true,
|
|
@@ -113,28 +114,28 @@ const AGENT_PROFILES = {
|
|
|
113
114
|
subcommand: "review",
|
|
114
115
|
},
|
|
115
116
|
scientist: {
|
|
116
|
-
profile: "
|
|
117
|
+
profile: "gpt56_terra_high",
|
|
117
118
|
timeoutSec: 1440,
|
|
118
119
|
runMode: "bg",
|
|
119
120
|
opusOversight: false,
|
|
120
121
|
mcpHint: "analyze",
|
|
121
122
|
},
|
|
122
123
|
"document-specialist": {
|
|
123
|
-
profile: "
|
|
124
|
+
profile: "gpt56_terra_high",
|
|
124
125
|
timeoutSec: 1440,
|
|
125
126
|
runMode: "bg",
|
|
126
127
|
opusOversight: false,
|
|
127
128
|
mcpHint: "analyze",
|
|
128
129
|
},
|
|
129
130
|
"scientist-deep": {
|
|
130
|
-
profile: "
|
|
131
|
+
profile: "gpt56_sol_xhigh",
|
|
131
132
|
timeoutSec: 3600,
|
|
132
133
|
runMode: "bg",
|
|
133
134
|
opusOversight: false,
|
|
134
135
|
mcpHint: "analyze",
|
|
135
136
|
},
|
|
136
137
|
verifier: {
|
|
137
|
-
profile: "
|
|
138
|
+
profile: "gpt56_terra_high",
|
|
138
139
|
timeoutSec: 1200,
|
|
139
140
|
runMode: "fg",
|
|
140
141
|
opusOversight: false,
|
|
@@ -142,14 +143,14 @@ const AGENT_PROFILES = {
|
|
|
142
143
|
subcommand: "review",
|
|
143
144
|
},
|
|
144
145
|
"test-engineer": {
|
|
145
|
-
profile: "
|
|
146
|
+
profile: "gpt56_terra_high",
|
|
146
147
|
timeoutSec: 1200,
|
|
147
148
|
runMode: "bg",
|
|
148
149
|
opusOversight: false,
|
|
149
150
|
mcpHint: "implement",
|
|
150
151
|
},
|
|
151
152
|
"qa-tester": {
|
|
152
|
-
profile: "
|
|
153
|
+
profile: "gpt56_terra_high",
|
|
153
154
|
timeoutSec: 1200,
|
|
154
155
|
runMode: "bg",
|
|
155
156
|
opusOversight: false,
|
|
@@ -157,7 +158,7 @@ const AGENT_PROFILES = {
|
|
|
157
158
|
subcommand: "review",
|
|
158
159
|
},
|
|
159
160
|
spark: {
|
|
160
|
-
profile: "
|
|
161
|
+
profile: "gpt56_luna_low",
|
|
161
162
|
timeoutSec: 180,
|
|
162
163
|
runMode: "fg",
|
|
163
164
|
opusOversight: false,
|
|
@@ -29,7 +29,7 @@ function readProfileScalar(raw, key) {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* Resolve a Codex effort profile name (e.g. "
|
|
32
|
+
* Resolve a Codex effort profile name (e.g. "gpt56_terra_high") to the `-c key=value`
|
|
33
33
|
* config overrides that `codex exec` accepts, so the headless CLI lanes can
|
|
34
34
|
* select a profile WITHOUT `codex exec --profile <name>`. codex 0.134+ rejects
|
|
35
35
|
* `--profile X` whenever config.toml still contains an inline `[profiles.X]`
|
|
@@ -47,7 +47,7 @@ function readProfileScalar(raw, key) {
|
|
|
47
47
|
*
|
|
48
48
|
* @param {string} profileName
|
|
49
49
|
* @param {{ codexHome?: string }} [opts]
|
|
50
|
-
* @returns {string[]} e.g. ['model="gpt-5.
|
|
50
|
+
* @returns {string[]} e.g. ['model="gpt-5.6-terra"', 'model_reasoning_effort="high"']
|
|
51
51
|
*/
|
|
52
52
|
export function codexProfileConfigOverrides(profileName, opts = {}) {
|
|
53
53
|
if (typeof profileName !== "string" || !profileName) return [];
|