@triflux/core 10.45.0 → 10.46.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.
@@ -45,7 +45,7 @@ function makeFallback(policy, trigger, inputsHash, now) {
45
45
  {
46
46
  cli: fb.default_cli ?? "codex",
47
47
  accountId: null,
48
- model: fb.default_model ?? "gpt-5.6-terra",
48
+ model: fb.default_model ?? "gpt-6-sol",
49
49
  riskTier: "safe",
50
50
  reason: trigger,
51
51
  },
@@ -23,7 +23,10 @@ import {
23
23
  } from "node:fs";
24
24
  import { dirname, join } from "node:path";
25
25
 
26
- import { normalizeCodexProfileName } from "../../scripts/lib/codex-profile-config.mjs";
26
+ import {
27
+ canonicalCodexProfileModel,
28
+ normalizeCodexProfileName,
29
+ } from "../../scripts/lib/codex-profile-config.mjs";
27
30
 
28
31
  export const STATES = Object.freeze({
29
32
  PLANNING: "PLANNING",
@@ -318,6 +321,11 @@ function normalizeEscalationChainEntry(entry, index, source) {
318
321
  const profile = entry.profile.trim();
319
322
  normalized.profile =
320
323
  entry.cli === "codex" ? normalizeEscalationProfile(profile) : profile;
324
+ // A remapped legacy profile must not keep reporting its old model.
325
+ if (normalized.profile !== profile) {
326
+ normalized.model =
327
+ canonicalCodexProfileModel(normalized.profile) ?? normalized.model;
328
+ }
321
329
  }
322
330
  return normalized;
323
331
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triflux/core",
3
- "version": "10.45.0",
3
+ "version": "10.46.0",
4
4
  "description": "triflux core — CLI routing, pipeline, adapters. Zero native dependencies.",
5
5
  "type": "module",
6
6
  "main": "hub/index.mjs",
@@ -7,7 +7,7 @@ import {
7
7
 
8
8
  const policy = {
9
9
  executor: {
10
- profile: "gpt56_terra_high",
10
+ profile: "gpt6_sol_high",
11
11
  timeoutSec: 1080,
12
12
  runMode: "fg",
13
13
  opusOversight: false,
@@ -15,7 +15,7 @@ const policy = {
15
15
  subcommand: "exec",
16
16
  },
17
17
  codex: {
18
- profile: "gpt56_terra_high",
18
+ profile: "gpt6_sol_high",
19
19
  timeoutSec: 1080,
20
20
  runMode: "fg",
21
21
  opusOversight: false,
@@ -23,7 +23,7 @@ const policy = {
23
23
  subcommand: "exec",
24
24
  },
25
25
  "build-fixer": {
26
- profile: "gpt56_luna_low",
26
+ profile: "gpt6_luna_high",
27
27
  timeoutSec: 540,
28
28
  runMode: "fg",
29
29
  opusOversight: false,
@@ -31,7 +31,7 @@ const policy = {
31
31
  subcommand: "exec",
32
32
  },
33
33
  cleanup: {
34
- profile: "gpt56_terra_med",
34
+ profile: "gpt6_sol_med",
35
35
  timeoutSec: 540,
36
36
  runMode: "fg",
37
37
  opusOversight: false,
@@ -39,7 +39,7 @@ const policy = {
39
39
  subcommand: "exec",
40
40
  },
41
41
  deslop: {
42
- profile: "gpt56_terra_med",
42
+ profile: "gpt6_sol_med",
43
43
  timeoutSec: 540,
44
44
  runMode: "fg",
45
45
  opusOversight: false,
@@ -95,7 +95,7 @@ const policy = {
95
95
  subcommand: "exec",
96
96
  },
97
97
  "code-reviewer": {
98
- profile: "gpt56_terra_high",
98
+ profile: "gpt6_sol_high",
99
99
  timeoutSec: 1800,
100
100
  runMode: "bg",
101
101
  opusOversight: false,
@@ -103,7 +103,7 @@ const policy = {
103
103
  subcommand: "review",
104
104
  },
105
105
  "quality-reviewer": {
106
- profile: "gpt56_terra_high",
106
+ profile: "gpt6_sol_high",
107
107
  timeoutSec: 1800,
108
108
  runMode: "bg",
109
109
  opusOversight: false,
@@ -119,7 +119,7 @@ const policy = {
119
119
  subcommand: "review",
120
120
  },
121
121
  scientist: {
122
- profile: "gpt56_terra_high",
122
+ profile: "gpt6_sol_high",
123
123
  timeoutSec: 1440,
124
124
  runMode: "bg",
125
125
  opusOversight: false,
@@ -127,7 +127,7 @@ const policy = {
127
127
  subcommand: "exec",
128
128
  },
129
129
  "document-specialist": {
130
- profile: "gpt56_terra_high",
130
+ profile: "gpt6_sol_high",
131
131
  timeoutSec: 1440,
132
132
  runMode: "bg",
133
133
  opusOversight: false,
@@ -143,7 +143,7 @@ const policy = {
143
143
  subcommand: "exec",
144
144
  },
145
145
  verifier: {
146
- profile: "gpt56_terra_high",
146
+ profile: "gpt6_sol_high",
147
147
  timeoutSec: 1200,
148
148
  runMode: "fg",
149
149
  opusOversight: false,
@@ -151,7 +151,7 @@ const policy = {
151
151
  subcommand: "review",
152
152
  },
153
153
  "test-engineer": {
154
- profile: "gpt56_terra_high",
154
+ profile: "gpt6_sol_high",
155
155
  timeoutSec: 1200,
156
156
  runMode: "bg",
157
157
  opusOversight: false,
@@ -159,7 +159,7 @@ const policy = {
159
159
  subcommand: "exec",
160
160
  },
161
161
  "qa-tester": {
162
- profile: "gpt56_terra_high",
162
+ profile: "gpt6_sol_high",
163
163
  timeoutSec: 1200,
164
164
  runMode: "bg",
165
165
  opusOversight: false,
@@ -167,7 +167,7 @@ const policy = {
167
167
  subcommand: "review",
168
168
  },
169
169
  spark: {
170
- profile: "gpt56_luna_low",
170
+ profile: "gpt6_luna_low",
171
171
  timeoutSec: 180,
172
172
  runMode: "fg",
173
173
  opusOversight: false,
@@ -185,7 +185,7 @@ const policy = {
185
185
  subcommand: "exec",
186
186
  },
187
187
  writer: {
188
- profile: "gpt56_luna_low",
188
+ profile: "gpt6_luna_high",
189
189
  timeoutSec: 900,
190
190
  runMode: "bg",
191
191
  opusOversight: false,
@@ -210,9 +210,10 @@ export const DEFAULT_CODEX_AGENT = "executor";
210
210
 
211
211
  export const CANONICAL_CODEX_PROFILE_OVERRIDES = Object.freeze(
212
212
  new Set([
213
- "gpt56_luna_low",
214
- "gpt56_terra_med",
215
- "gpt56_terra_high",
213
+ "gpt6_luna_low",
214
+ "gpt6_luna_high",
215
+ "gpt6_sol_med",
216
+ "gpt6_sol_high",
216
217
  "gpt6_astra_xhigh",
217
218
  "gpt6_astra_max",
218
219
  "gpt6_astra_ultra",
@@ -19,18 +19,24 @@ const EFFORT_BY_SUFFIX = {
19
19
  };
20
20
 
21
21
  const CANONICAL_PROFILE_VALUES = Object.freeze({
22
- gpt56_luna_low: { model: "gpt-5.6-luna", effort: "low" },
23
- gpt56_terra_med: { model: "gpt-5.6-terra", effort: "medium" },
24
- gpt56_terra_high: { model: "gpt-5.6-terra", effort: "high" },
22
+ gpt6_luna_low: { model: "gpt-6-luna", effort: "low" },
23
+ gpt6_luna_high: { model: "gpt-6-luna", effort: "high" },
24
+ gpt6_sol_med: { model: "gpt-6-sol", effort: "medium" },
25
+ gpt6_sol_high: { model: "gpt-6-sol", effort: "high" },
25
26
  gpt6_astra_xhigh: { model: "gpt-6-astra", effort: "xhigh" },
26
27
  gpt6_astra_max: { model: "gpt-6-astra", effort: "max" },
27
28
  gpt6_astra_ultra: { model: "gpt-6-astra", effort: "ultra" },
28
29
  });
29
30
 
31
+ // GPT-5.6 lane names map to the GPT-6 lane with the same effort. GPT-6 has no
32
+ // Terra tier, so Terra lanes move to Sol.
30
33
  const LEGACY_CANONICAL_PROFILE_ALIASES = Object.freeze({
31
34
  gpt56_sol_xhigh: "gpt6_astra_xhigh",
32
35
  gpt56_sol_max: "gpt6_astra_max",
33
36
  gpt56_sol_ultra: "gpt6_astra_ultra",
37
+ gpt56_terra_high: "gpt6_sol_high",
38
+ gpt56_terra_med: "gpt6_sol_med",
39
+ gpt56_luna_low: "gpt6_luna_low",
34
40
  });
35
41
 
36
42
  export function normalizeCodexProfileName(profileName) {
@@ -38,6 +44,14 @@ export function normalizeCodexProfileName(profileName) {
38
44
  return LEGACY_CANONICAL_PROFILE_ALIASES[normalized] || normalized;
39
45
  }
40
46
 
47
+ /** Model ID of a canonical profile (after legacy normalization), or null. */
48
+ export function canonicalCodexProfileModel(profileName) {
49
+ return (
50
+ CANONICAL_PROFILE_VALUES[normalizeCodexProfileName(profileName)]?.model ??
51
+ null
52
+ );
53
+ }
54
+
41
55
  function readProfileScalar(raw, key) {
42
56
  const match = String(raw).match(
43
57
  new RegExp(
@@ -51,7 +65,7 @@ function readProfileScalar(raw, key) {
51
65
  }
52
66
 
53
67
  /**
54
- * Resolve a Codex effort profile name (e.g. "gpt56_terra_high") to the `-c key=value`
68
+ * Resolve a Codex effort profile name (e.g. "gpt6_sol_high") to the `-c key=value`
55
69
  * config overrides that `codex exec` accepts, so the headless CLI lanes can
56
70
  * select a profile WITHOUT `codex exec --profile <name>`. codex 0.134+ rejects
57
71
  * `--profile X` whenever config.toml still contains an inline `[profiles.X]`
@@ -69,7 +83,7 @@ function readProfileScalar(raw, key) {
69
83
  *
70
84
  * @param {string} profileName
71
85
  * @param {{ codexHome?: string }} [opts]
72
- * @returns {string[]} e.g. ['model="gpt-5.6-terra"', 'model_reasoning_effort="high"']
86
+ * @returns {string[]} e.g. ['model="gpt-6-sol"', 'model_reasoning_effort="high"']
73
87
  */
74
88
  export function resolveCodexProfileConfigValues(profileName, opts = {}) {
75
89
  if (typeof profileName !== "string" || !profileName) {