t3-auto-build 1.0.1 → 2.0.1
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/CHANGELOG.md +115 -0
- package/README.md +384 -118
- package/bin/cli.mjs +155 -82
- package/hooks/_quota.mjs +75 -23
- package/hooks/_shared.mjs +165 -10
- package/hooks/pre-compact.mjs +41 -4
- package/hooks/pre-tool-use.mjs +52 -15
- package/hooks/session-start.mjs +55 -9
- package/lib/detect.mjs +5 -1
- package/lib/discover.mjs +492 -0
- package/lib/doctor.mjs +42 -2
- package/lib/install.mjs +234 -29
- package/lib/plans.mjs +318 -0
- package/lib/probe.mjs +49 -15
- package/lib/prompt.mjs +82 -5
- package/lib/quota.mjs +59 -18
- package/lib/render.mjs +25 -4
- package/lib/settings.mjs +41 -1
- package/package.json +12 -5
- package/presets/claude-codex.json +62 -14
- package/presets/claude-only.json +41 -11
- package/presets/tri-provider.json +80 -14
- package/skills/auto-build/SKILL.md.tmpl +12 -8
package/lib/quota.mjs
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import {
|
|
5
|
-
COOLDOWN_FILE, cliModelId, inferProvider, loadConfig, modelKeys, normalizeModel, which as findOnPath,
|
|
5
|
+
COOLDOWN_FILE, canonicalProvider, cliModelId, exactProvider, inferProvider, loadConfig, modelKeys, normalizeModel, which as findOnPath,
|
|
6
6
|
} from '../hooks/_shared.mjs';
|
|
7
|
-
import { isLocked, parseRateLimit, prune, readCooldowns, writeCooldowns } from '../hooks/_quota.mjs';
|
|
7
|
+
import { isLocked, parseRateLimit, prune, readCooldowns, SCARCE_POOL, writeCooldowns } from '../hooks/_quota.mjs';
|
|
8
8
|
import { HEAVY_MODELS } from './detect.mjs';
|
|
9
|
+
import { POOLS } from './plans.mjs';
|
|
9
10
|
import { CliError } from './paths.mjs';
|
|
10
11
|
import { createRunner } from './probe.mjs';
|
|
11
12
|
|
|
@@ -29,7 +30,16 @@ function load(target, onInvalid) {
|
|
|
29
30
|
function resolveSubject(subject, config) {
|
|
30
31
|
const text = String(subject ?? '').trim();
|
|
31
32
|
const lower = text.toLowerCase();
|
|
32
|
-
|
|
33
|
+
const qualified = text.match(/^([^:]+):([^:]+)$/);
|
|
34
|
+
if (qualified) {
|
|
35
|
+
const provider = canonicalProvider(qualified[1]);
|
|
36
|
+
if (!provider) throw new CliError(`unknown provider "${clean(qualified[1])}"`, 2);
|
|
37
|
+
const model = normalizeModel(qualified[2]);
|
|
38
|
+
if (!model.trim()) throw new CliError(`unknown provider or model "${clean(text)}"`, 2);
|
|
39
|
+
return { provider, model, id: cliModelId(provider, model, config), qualified: true };
|
|
40
|
+
}
|
|
41
|
+
const canonical = canonicalProvider(lower);
|
|
42
|
+
if (canonical && !inferProvider(text)) return { provider: canonical };
|
|
33
43
|
const model = normalizeModel(text);
|
|
34
44
|
const wanted = modelKeys(model, config);
|
|
35
45
|
const known = [...Object.values(config.allowlist).flat(), ...Object.keys(config.modelIds ?? {})]
|
|
@@ -37,7 +47,15 @@ function resolveSubject(subject, config) {
|
|
|
37
47
|
if (!text || (!known && !inferProvider(model))) {
|
|
38
48
|
throw new CliError(`unknown provider or model "${clean(text)}"; use ${Object.keys(HEAVY_MODELS).join(', ')} or a model name`, 2);
|
|
39
49
|
}
|
|
40
|
-
return { model, id: cliModelId(inferProvider(model), model, config) };
|
|
50
|
+
return { model, id: cliModelId(inferProvider(model), model, config), qualified: false };
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function poolName(pool) {
|
|
54
|
+
const value = String(pool ?? '').trim().toLowerCase();
|
|
55
|
+
if (!value || (!POOLS.includes(value) && !/^[a-z0-9-]+$/.test(value))) {
|
|
56
|
+
throw new CliError(`invalid pool "${clean(pool)}"; use a pool name containing lowercase letters, digits or hyphens`, 2);
|
|
57
|
+
}
|
|
58
|
+
return value;
|
|
41
59
|
}
|
|
42
60
|
|
|
43
61
|
const UNIT_MS = { w: 604_800_000, d: 86_400_000, h: 3_600_000, m: 60_000 };
|
|
@@ -61,26 +79,39 @@ function parseUntil(value, now) {
|
|
|
61
79
|
}
|
|
62
80
|
|
|
63
81
|
/** Locks a provider or model for a window (default burst) or until a given time. */
|
|
64
|
-
export function quotaSet(target, subject, { window, until, reason, now = Date.now(), log = console.log } = {}) {
|
|
82
|
+
export function quotaSet(target, subject, { window, until, reason, pool, heavy = false, now = Date.now(), log = console.log } = {}) {
|
|
65
83
|
if (window !== undefined && until !== undefined) throw new CliError('give a window or --until, not both', 2);
|
|
84
|
+
if (pool !== undefined && heavy) throw new CliError('give --pool or --heavy, not both', 2);
|
|
66
85
|
const span = until === undefined ? window ?? 'burst' : 'custom';
|
|
67
86
|
if (span !== 'custom' && !QUOTA_WINDOWS.includes(span)) throw new CliError(`unknown window "${clean(span)}"`, 2);
|
|
68
87
|
const config = loadConfig(target);
|
|
69
|
-
const
|
|
88
|
+
const targetRef = resolveSubject(subject, config);
|
|
89
|
+
const { provider, id, model } = targetRef;
|
|
90
|
+
const host = provider ?? inferProvider(model);
|
|
91
|
+
if ((pool !== undefined || heavy) && !host) throw new CliError(`cannot determine provider for "${clean(subject)}"`, 2);
|
|
70
92
|
const tier = config.tiers?.[provider ?? inferProvider(id)];
|
|
71
93
|
const limit = span === 'custom'
|
|
72
94
|
? { until: new Date(parseUntil(until, now)).toISOString() }
|
|
73
95
|
: parseRateLimit({ burst: '', '5h': '5h limit', weekly: 'weekly limit' }[span], {
|
|
74
96
|
now, sharing: tier?.sharing, resetDay: tier?.resetDay,
|
|
75
97
|
});
|
|
76
|
-
let scope = provider ? 'provider' : 'model';
|
|
77
|
-
|
|
78
|
-
|
|
98
|
+
let scope = provider && !model ? 'provider' : 'model';
|
|
99
|
+
let poolKey;
|
|
100
|
+
if (pool !== undefined) {
|
|
101
|
+
scope = 'tier';
|
|
102
|
+
poolKey = poolName(pool);
|
|
103
|
+
} else if (heavy || (provider && !model && span === '5h' && limit.scope === 'tier')) {
|
|
104
|
+
scope = 'tier';
|
|
105
|
+
poolKey = SCARCE_POOL[host];
|
|
106
|
+
}
|
|
107
|
+
const key = scope === 'tier' ? `tier:${host}:${poolKey}`
|
|
108
|
+
: scope === 'provider' ? `provider:${provider}`
|
|
109
|
+
: targetRef.qualified ? `model:${provider}:${id}` : `model:${id}`;
|
|
79
110
|
const entry = {
|
|
80
111
|
scope, window: span, until: limit.until, reason: reason ?? `manual lock (${span})`, source: 'manual',
|
|
81
|
-
...(scope === 'tier' && { tier:
|
|
112
|
+
...(scope === 'tier' && { tier: poolKey }),
|
|
82
113
|
};
|
|
83
|
-
writeCooldowns(cooldownPath(target), { ...prune(load(target), now).kept, [key]: entry });
|
|
114
|
+
writeCooldowns(cooldownPath(target), { ...prune(load(target), now).kept, [key]: entry }, { now });
|
|
84
115
|
log(`locked ${key} until ${entry.until} (${span})`);
|
|
85
116
|
return { key, entry };
|
|
86
117
|
}
|
|
@@ -99,7 +130,7 @@ function countdown(ms) {
|
|
|
99
130
|
/** Drops expired locks and prints the rest. Returns the active ones. */
|
|
100
131
|
export function quotaStatus(target, { now = Date.now(), log = console.log } = {}) {
|
|
101
132
|
const { kept, removed } = prune(load(target), now);
|
|
102
|
-
if (Object.keys(removed).length) writeCooldowns(cooldownPath(target), kept);
|
|
133
|
+
if (Object.keys(removed).length) writeCooldowns(cooldownPath(target), kept, { now });
|
|
103
134
|
const locks = Object.entries(kept).map(([key, entry]) => ({ key, ...entry }));
|
|
104
135
|
if (!locks.length) log('no active cooldowns');
|
|
105
136
|
for (const { key, window, until, reason, source } of locks) {
|
|
@@ -117,7 +148,10 @@ export function quotaClear(target, subject, { log = console.log } = {}) {
|
|
|
117
148
|
return null;
|
|
118
149
|
}
|
|
119
150
|
const config = loadConfig(target);
|
|
120
|
-
|
|
151
|
+
// "provider:<p>" is the lock key as quota status prints it.
|
|
152
|
+
const named = String(subject ?? '').trim().replace(/^provider:/i, '');
|
|
153
|
+
const targetRef = resolveSubject(exactProvider(named) ? named : subject, config);
|
|
154
|
+
const { provider, model, qualified } = targetRef;
|
|
121
155
|
const bad = [];
|
|
122
156
|
const data = load(target, (key) => bad.push(key));
|
|
123
157
|
// A malformed entry has no usable fields, so it is matched by its key alone.
|
|
@@ -126,9 +160,14 @@ export function quotaClear(target, subject, { log = console.log } = {}) {
|
|
|
126
160
|
until: '9999-01-01T00:00:00Z',
|
|
127
161
|
}]);
|
|
128
162
|
const removed = [...Object.entries(data), ...stubs].filter(([key, entry]) => {
|
|
129
|
-
if (provider && entry.scope === 'tier') return key.toLowerCase()
|
|
163
|
+
if (provider && !model && entry.scope === 'tier') return key.toLowerCase().startsWith(`tier:${provider}:`);
|
|
164
|
+
if (provider && !model && entry.scope === 'provider') return exactProvider(key.replace(/^provider:/i, '')) === provider;
|
|
165
|
+
if (model && entry.scope === 'tier') return false;
|
|
166
|
+
if (model && entry.scope === 'model' && qualified) {
|
|
167
|
+
return key.toLowerCase() === `model:${provider}:${targetRef.id}` || key.toLowerCase() === `model:${targetRef.id}`;
|
|
168
|
+
}
|
|
130
169
|
// Time 0 makes isLocked match expired entries too.
|
|
131
|
-
return entry.scope === (provider ? 'provider' : 'model')
|
|
170
|
+
return entry.scope === (provider && !model ? 'provider' : 'model')
|
|
132
171
|
&& isLocked({ [key]: entry }, { provider, model, config }, 0) !== null;
|
|
133
172
|
}).map(([key]) => key);
|
|
134
173
|
for (const key of removed) delete data[key];
|
|
@@ -177,11 +216,13 @@ export async function quotaCheck(target, { providers, runner, which = findOnPath
|
|
|
177
216
|
const tier = config.tiers?.[provider];
|
|
178
217
|
const limit = parseRateLimit(`${line}${reset}`, { now, sharing: tier?.sharing, resetDay: tier?.resetDay });
|
|
179
218
|
const scope = limit.scope === 'tier' ? 'tier' : 'provider';
|
|
180
|
-
|
|
219
|
+
// v2 locks only the scarce pool; v1 keeps the legacy heavy key its heavyModels lists rely on.
|
|
220
|
+
const pool = config.schemaVersion === 2 ? SCARCE_POOL[provider] ?? 'heavy' : 'heavy';
|
|
221
|
+
const key = scope === 'tier' ? `tier:${provider}:${pool}` : `provider:${provider}`;
|
|
181
222
|
if (Date.parse(found[key]?.until) >= Date.parse(limit.until)) return;
|
|
182
223
|
found[key] = {
|
|
183
224
|
scope, window: limit.window, until: limit.until, reason: `usage exhausted (${limit.window})`, source: 'probe',
|
|
184
|
-
...(scope === 'tier' && { tier:
|
|
225
|
+
...(scope === 'tier' && { tier: pool }),
|
|
185
226
|
};
|
|
186
227
|
});
|
|
187
228
|
if (Object.keys(found).length === 0) {
|
|
@@ -195,7 +236,7 @@ export async function quotaCheck(target, { providers, runner, which = findOnPath
|
|
|
195
236
|
// An existing lock that lasts longer is never shortened.
|
|
196
237
|
const longer = Object.entries(locks).filter(([key, { until }]) => !(Date.parse(stored[key]?.until) >= Date.parse(until)));
|
|
197
238
|
const next = { ...stored, ...Object.fromEntries(longer) };
|
|
198
|
-
writeCooldowns(cooldownPath(target), next);
|
|
239
|
+
writeCooldowns(cooldownPath(target), next, { now });
|
|
199
240
|
for (const key of Object.keys(locks)) log(`${key}: usage exhausted; locked until ${next[key].until}`);
|
|
200
241
|
} catch (error) {
|
|
201
242
|
log(`warning: lockout not recorded: ${error.message}`);
|
package/lib/render.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CONFIG_FILE, COOLDOWN_FILE, displayPath, effectiveAllowlist } from '../hooks/_shared.mjs';
|
|
1
|
+
import { AVAILABILITY_FILE, CONFIG_FILE, COOLDOWN_FILE, RETIRED_MODELS, canonicalProvider, displayPath, effectiveAllowlist, inferProvider, normalizeName } from '../hooks/_shared.mjs';
|
|
2
2
|
import { CliError } from './paths.mjs';
|
|
3
3
|
|
|
4
4
|
export const LADDERS = ['tier1', 'commandRunner', 'builderA', 'testerA', 'auditorA', 'builderB', 'testerB', 'auditorB', 'architect', 'dualAudit'];
|
|
@@ -17,16 +17,30 @@ const code = (text) => `\`${text}\``;
|
|
|
17
17
|
/** Render SKILL.md from the config. Banned or non-allowlisted ladder entries are dropped. */
|
|
18
18
|
export function renderSkill(template, config, configDir) {
|
|
19
19
|
const groups = effectiveAllowlist(config);
|
|
20
|
-
const
|
|
20
|
+
const allowedByProvider = new Map(groups.map(([provider, models]) => [canonicalProvider(provider), new Map(models.map((model) => [normalizeName(model), model]))]));
|
|
21
|
+
const allowed = new Map(groups.flatMap(([, models]) => models).map((model) => [normalizeName(model), model]));
|
|
21
22
|
if (allowed.size === 0) throw new CliError('the allowlist is empty after removing banned models');
|
|
22
23
|
|
|
23
24
|
const ladders = Object.fromEntries(
|
|
24
25
|
LADDERS.map((name) => {
|
|
25
26
|
const entries = (config.ladders[name] ?? []).flatMap((entry) => {
|
|
26
27
|
const [model, effort] = entry.split('@');
|
|
27
|
-
const
|
|
28
|
+
const trimmed = model.trim();
|
|
29
|
+
const colon = trimmed.indexOf(':');
|
|
30
|
+
if (colon >= 0) {
|
|
31
|
+
const prefix = trimmed.slice(0, colon);
|
|
32
|
+
const provider = canonicalProvider(prefix);
|
|
33
|
+
const known = provider ? allowedByProvider.get(provider)?.get(normalizeName(trimmed.slice(colon + 1))) : null;
|
|
34
|
+
return known ? [{ model: `${prefix}:${known}`, effort }] : [];
|
|
35
|
+
}
|
|
36
|
+
const known = allowed.get(normalizeName(trimmed));
|
|
28
37
|
return known ? [{ model: known, effort }] : [];
|
|
29
38
|
});
|
|
39
|
+
const scarce = (item) => config.models?.some((model) => model.provider === (item.model.includes(':')
|
|
40
|
+
? canonicalProvider(item.model.slice(0, item.model.indexOf(':'))) : inferProvider(item.model))
|
|
41
|
+
&& normalizeName(model.model) === normalizeName(item.model.includes(':') ? item.model.slice(item.model.indexOf(':') + 1) : item.model)
|
|
42
|
+
&& model.scarceQuota);
|
|
43
|
+
entries.sort((a, b) => Number(scarce(a)) - Number(scarce(b)));
|
|
30
44
|
if (entries.length === 0) {
|
|
31
45
|
throw new CliError(`ladder "${name}" has no model left after removing banned and non-allowlisted entries; edit ${CONFIG_FILE}`);
|
|
32
46
|
}
|
|
@@ -35,7 +49,7 @@ export function renderSkill(template, config, configDir) {
|
|
|
35
49
|
);
|
|
36
50
|
const describe = ({ model, effort }) => `${code(model)}${effort ? ` (${code(effort)})` : ''}`;
|
|
37
51
|
const duals = ladders.dualAudit.map(describe);
|
|
38
|
-
const defaultModel = allowed.get(config.defaultModel
|
|
52
|
+
const defaultModel = allowed.get(normalizeName(config.defaultModel ?? '')) ?? ladders.builderA[0].model;
|
|
39
53
|
const flags = groups.map(([provider, models]) => ({ flag: `--${provider.toLowerCase().replace(/\s+/g, '-')}-only`, provider, models }));
|
|
40
54
|
|
|
41
55
|
return fillTemplate(template, {
|
|
@@ -55,5 +69,12 @@ export function renderSkill(template, config, configDir) {
|
|
|
55
69
|
dualAuditRun: duals.length > 1 ? `Run ${duals.join(' AND ')} in parallel` : `Run ${duals[0]}`,
|
|
56
70
|
cooldownsPath: displayPath(configDir, COOLDOWN_FILE),
|
|
57
71
|
configPath: displayPath(configDir, CONFIG_FILE),
|
|
72
|
+
maxParallelBuilders: config.maxParallelBuilders ?? 2,
|
|
73
|
+
availabilityPath: displayPath(configDir, AVAILABILITY_FILE),
|
|
74
|
+
subscriptionSummary: config.subscriptions
|
|
75
|
+
? Object.entries(config.subscriptions).map(([provider, tier]) => `${provider}: ${tier}`).join(', ')
|
|
76
|
+
: 'legacy v1 config (run t3-auto-build upgrade)',
|
|
77
|
+
scarceModels: config.models?.filter((model) => model.scarceQuota).map((model) => `${model.provider}:${model.model}`).join(', ') || 'none',
|
|
78
|
+
retiredModels: [...new Set([...RETIRED_MODELS, ...(config.retiredModels ?? [])])].join(', '),
|
|
58
79
|
});
|
|
59
80
|
}
|
package/lib/settings.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import path from 'node:path';
|
|
|
3
3
|
import { isDeepStrictEqual } from 'node:util';
|
|
4
4
|
import { isObject, parseJson } from '../hooks/_shared.mjs';
|
|
5
5
|
import { CliError } from './paths.mjs';
|
|
6
|
+
import { PARENTS } from './plans.mjs';
|
|
6
7
|
|
|
7
8
|
export const ENV_NAME = 'CLAUDE_AUTOCOMPACT_PCT_OVERRIDE';
|
|
8
9
|
export const HOOKS_DIR = 'hooks/t3-auto-build';
|
|
@@ -84,7 +85,42 @@ const desiredEntries = (target) =>
|
|
|
84
85
|
HOOKS.map(({ event, matcher, script }) => ({ event, matcher, hook: { type: 'command', command: hookCommand(target, script) } }));
|
|
85
86
|
|
|
86
87
|
/** Returns { data, env }: new settings plus the manifest record needed to undo the env change. */
|
|
87
|
-
|
|
88
|
+
const restoreManagedSettings = (data, records = {}) => {
|
|
89
|
+
for (const [key, record] of Object.entries(records)) {
|
|
90
|
+
if (!record || data[key] !== record.installed) continue;
|
|
91
|
+
if (record.had) data[key] = record.prior;
|
|
92
|
+
else delete data[key];
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
function mergeParentSettings(data, parent, previous = {}) {
|
|
97
|
+
const priorRecords = previous.settings ?? {};
|
|
98
|
+
if (!parent) {
|
|
99
|
+
restoreManagedSettings(data, priorRecords);
|
|
100
|
+
return {};
|
|
101
|
+
}
|
|
102
|
+
const desired = { model: PARENTS[parent.model], effortLevel: parent.effort };
|
|
103
|
+
const records = {};
|
|
104
|
+
for (const [key, value] of Object.entries(desired)) {
|
|
105
|
+
if (typeof value !== 'string') continue;
|
|
106
|
+
const prior = priorRecords[key];
|
|
107
|
+
const had = Object.prototype.hasOwnProperty.call(data, key);
|
|
108
|
+
const current = data[key];
|
|
109
|
+
if (!had || (prior && current === prior.installed)) {
|
|
110
|
+
records[key] = prior
|
|
111
|
+
? { ...prior, installed: value }
|
|
112
|
+
: { had: false, prior: null, installed: value };
|
|
113
|
+
data[key] = value;
|
|
114
|
+
} else if (prior) {
|
|
115
|
+
// Preserve the original record so uninstall still recognizes ownership if the value is restored.
|
|
116
|
+
records[key] = prior;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return records;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/** Returns { data, env }: manifest env stores both the prior env value and managed parent setting values. */
|
|
123
|
+
export function mergeSettings(current, target, percent, previous, parent) {
|
|
88
124
|
const data = structuredClone(current);
|
|
89
125
|
const desired = desiredEntries(target);
|
|
90
126
|
const present = taggedHooks(data);
|
|
@@ -103,12 +139,16 @@ export function mergeSettings(current, target, percent, previous) {
|
|
|
103
139
|
? { ...previous, installed }
|
|
104
140
|
: { had, prior: had ? data.env[ENV_NAME] : null, createdEnv: data.env === undefined, installed };
|
|
105
141
|
data.env = { ...data.env, [ENV_NAME]: installed };
|
|
142
|
+
const parentSettings = mergeParentSettings(data, parent, previous);
|
|
143
|
+
if (Object.keys(parentSettings).length) env.settings = parentSettings;
|
|
144
|
+
else delete env.settings;
|
|
106
145
|
return { data, env };
|
|
107
146
|
}
|
|
108
147
|
|
|
109
148
|
export function unmergeSettings(current, env) {
|
|
110
149
|
const data = structuredClone(current);
|
|
111
150
|
removeTagged(data);
|
|
151
|
+
restoreManagedSettings(data, env?.settings);
|
|
112
152
|
if (env && data.env?.[ENV_NAME] === env.installed) {
|
|
113
153
|
if (env.had) data.env[ENV_NAME] = env.prior;
|
|
114
154
|
else delete data.env[ENV_NAME];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "t3-auto-build",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Cross-platform installer and $auto-build orchestration suite for T3 Code.",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "Cross-platform installer and $auto-build orchestration suite for T3 Code: subscription-aware cross-provider routing with quota and availability tracking.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
7
7
|
"t3-code",
|
|
@@ -10,7 +10,13 @@
|
|
|
10
10
|
"hooks",
|
|
11
11
|
"cli",
|
|
12
12
|
"codex",
|
|
13
|
-
"gemini"
|
|
13
|
+
"gemini",
|
|
14
|
+
"antigravity",
|
|
15
|
+
"subscription",
|
|
16
|
+
"quota",
|
|
17
|
+
"availability",
|
|
18
|
+
"cross-provider",
|
|
19
|
+
"model-routing"
|
|
14
20
|
],
|
|
15
21
|
"homepage": "https://github.com/mirceas94/t3-auto-build#readme",
|
|
16
22
|
"bugs": {
|
|
@@ -30,13 +36,14 @@
|
|
|
30
36
|
"core",
|
|
31
37
|
"presets",
|
|
32
38
|
"skills",
|
|
33
|
-
"hooks"
|
|
39
|
+
"hooks",
|
|
40
|
+
"CHANGELOG.md"
|
|
34
41
|
],
|
|
35
42
|
"scripts": {
|
|
36
43
|
"test": "node --test"
|
|
37
44
|
},
|
|
38
45
|
"engines": {
|
|
39
|
-
"node": ">=18"
|
|
46
|
+
"node": ">=18.18.0"
|
|
40
47
|
},
|
|
41
48
|
"license": "MIT"
|
|
42
49
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"preset": "claude-codex",
|
|
3
3
|
"allowlist": {
|
|
4
4
|
"Codex": [
|
|
5
|
-
"gpt-
|
|
6
|
-
"gpt-
|
|
7
|
-
"gpt-6-
|
|
5
|
+
"gpt-6-luna",
|
|
6
|
+
"gpt-6.1-terra",
|
|
7
|
+
"gpt-6.1-sol"
|
|
8
8
|
],
|
|
9
9
|
"Claude": [
|
|
10
10
|
"Claude Haiku 5.5",
|
|
@@ -12,20 +12,68 @@
|
|
|
12
12
|
"Claude Opus 5.5"
|
|
13
13
|
]
|
|
14
14
|
},
|
|
15
|
-
"bannedModels": [
|
|
15
|
+
"bannedModels": [],
|
|
16
16
|
"defaultModel": "Claude Sonnet 5.5",
|
|
17
17
|
"defaultEffort": "medium",
|
|
18
18
|
"compactionThreshold": 35,
|
|
19
19
|
"ladders": {
|
|
20
|
-
"tier1": [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
"tier1": [
|
|
21
|
+
"gpt-6.1-sol",
|
|
22
|
+
"gpt-6.1-terra",
|
|
23
|
+
"gpt-6-luna",
|
|
24
|
+
"Claude Haiku 5.5",
|
|
25
|
+
"Claude Sonnet 5.5"
|
|
26
|
+
],
|
|
27
|
+
"commandRunner": [
|
|
28
|
+
"gpt-6-luna",
|
|
29
|
+
"gpt-6.1-terra",
|
|
30
|
+
"Claude Sonnet 5.5",
|
|
31
|
+
"gpt-6.1-sol",
|
|
32
|
+
"Claude Haiku 5.5"
|
|
33
|
+
],
|
|
34
|
+
"builderA": [
|
|
35
|
+
"Claude Sonnet 5.5",
|
|
36
|
+
"gpt-6-luna",
|
|
37
|
+
"Claude Opus 5.5@medium",
|
|
38
|
+
"gpt-6.1-terra@high",
|
|
39
|
+
"gpt-6.1-sol@high"
|
|
40
|
+
],
|
|
41
|
+
"testerA": [
|
|
42
|
+
"Claude Sonnet 5.5",
|
|
43
|
+
"gpt-6-luna",
|
|
44
|
+
"Claude Opus 5.5@medium"
|
|
45
|
+
],
|
|
46
|
+
"auditorA": [
|
|
47
|
+
"Claude Opus 5.5",
|
|
48
|
+
"Claude Sonnet 5.5@high",
|
|
49
|
+
"gpt-6-luna@high"
|
|
50
|
+
],
|
|
51
|
+
"builderB": [
|
|
52
|
+
"Claude Sonnet 5.5",
|
|
53
|
+
"gpt-6-luna",
|
|
54
|
+
"Claude Opus 5.5@medium",
|
|
55
|
+
"gpt-6.1-terra@high",
|
|
56
|
+
"gpt-6.1-sol@high"
|
|
57
|
+
],
|
|
58
|
+
"testerB": [
|
|
59
|
+
"gpt-6-luna",
|
|
60
|
+
"Claude Sonnet 5.5",
|
|
61
|
+
"Claude Opus 5.5@medium"
|
|
62
|
+
],
|
|
63
|
+
"auditorB": [
|
|
64
|
+
"Claude Opus 5.5",
|
|
65
|
+
"gpt-6-luna@high",
|
|
66
|
+
"Claude Sonnet 5.5@high"
|
|
67
|
+
],
|
|
68
|
+
"architect": [
|
|
69
|
+
"Claude Opus 5.5@high",
|
|
70
|
+
"Claude Sonnet 5.5@high",
|
|
71
|
+
"gpt-6-luna@high",
|
|
72
|
+
"gpt-6.1-terra@high"
|
|
73
|
+
],
|
|
74
|
+
"dualAudit": [
|
|
75
|
+
"Claude Opus 5.5@high",
|
|
76
|
+
"gpt-6-luna@high"
|
|
77
|
+
]
|
|
30
78
|
}
|
|
31
79
|
}
|
package/presets/claude-only.json
CHANGED
|
@@ -7,20 +7,50 @@
|
|
|
7
7
|
"Claude Opus 5.5"
|
|
8
8
|
]
|
|
9
9
|
},
|
|
10
|
-
"bannedModels": [
|
|
10
|
+
"bannedModels": [],
|
|
11
11
|
"defaultModel": "Claude Sonnet 5.5",
|
|
12
12
|
"defaultEffort": "medium",
|
|
13
13
|
"compactionThreshold": 35,
|
|
14
14
|
"ladders": {
|
|
15
|
-
"tier1": [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
15
|
+
"tier1": [
|
|
16
|
+
"Claude Haiku 5.5",
|
|
17
|
+
"Claude Sonnet 5.5"
|
|
18
|
+
],
|
|
19
|
+
"commandRunner": [
|
|
20
|
+
"Claude Sonnet 5.5",
|
|
21
|
+
"Claude Haiku 5.5"
|
|
22
|
+
],
|
|
23
|
+
"builderA": [
|
|
24
|
+
"Claude Sonnet 5.5",
|
|
25
|
+
"Claude Opus 5.5@medium"
|
|
26
|
+
],
|
|
27
|
+
"testerA": [
|
|
28
|
+
"Claude Sonnet 5.5",
|
|
29
|
+
"Claude Opus 5.5@medium"
|
|
30
|
+
],
|
|
31
|
+
"auditorA": [
|
|
32
|
+
"Claude Opus 5.5",
|
|
33
|
+
"Claude Sonnet 5.5@high"
|
|
34
|
+
],
|
|
35
|
+
"builderB": [
|
|
36
|
+
"Claude Sonnet 5.5",
|
|
37
|
+
"Claude Opus 5.5@medium"
|
|
38
|
+
],
|
|
39
|
+
"testerB": [
|
|
40
|
+
"Claude Sonnet 5.5",
|
|
41
|
+
"Claude Opus 5.5@medium"
|
|
42
|
+
],
|
|
43
|
+
"auditorB": [
|
|
44
|
+
"Claude Opus 5.5",
|
|
45
|
+
"Claude Sonnet 5.5@high"
|
|
46
|
+
],
|
|
47
|
+
"architect": [
|
|
48
|
+
"Claude Opus 5.5@high",
|
|
49
|
+
"Claude Sonnet 5.5@high"
|
|
50
|
+
],
|
|
51
|
+
"dualAudit": [
|
|
52
|
+
"Claude Opus 5.5@high",
|
|
53
|
+
"Claude Sonnet 5.5@high"
|
|
54
|
+
]
|
|
25
55
|
}
|
|
26
56
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"preset": "tri-provider",
|
|
3
3
|
"allowlist": {
|
|
4
4
|
"Codex": [
|
|
5
|
-
"gpt-
|
|
6
|
-
"gpt-
|
|
7
|
-
"gpt-6-
|
|
5
|
+
"gpt-6-luna",
|
|
6
|
+
"gpt-6.1-terra",
|
|
7
|
+
"gpt-6.1-sol"
|
|
8
8
|
],
|
|
9
9
|
"Antigravity": [
|
|
10
10
|
"Gemini 4 Hydrogen",
|
|
@@ -17,20 +17,86 @@
|
|
|
17
17
|
"Claude Opus 5.5"
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
|
-
"bannedModels": [
|
|
20
|
+
"bannedModels": [],
|
|
21
21
|
"defaultModel": "Claude Sonnet 5.5",
|
|
22
22
|
"defaultEffort": "medium",
|
|
23
23
|
"compactionThreshold": 35,
|
|
24
24
|
"ladders": {
|
|
25
|
-
"tier1": [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
25
|
+
"tier1": [
|
|
26
|
+
"gpt-6.1-sol",
|
|
27
|
+
"gpt-6.1-terra",
|
|
28
|
+
"gpt-6-luna",
|
|
29
|
+
"Gemini 4 Hydrogen",
|
|
30
|
+
"Claude Haiku 5.5",
|
|
31
|
+
"Gemini 4 Neon",
|
|
32
|
+
"Claude Sonnet 5.5"
|
|
33
|
+
],
|
|
34
|
+
"commandRunner": [
|
|
35
|
+
"gpt-6-luna",
|
|
36
|
+
"gpt-6.1-terra",
|
|
37
|
+
"Claude Sonnet 5.5",
|
|
38
|
+
"Gemini 4 Hydrogen",
|
|
39
|
+
"gpt-6.1-sol",
|
|
40
|
+
"Claude Haiku 5.5",
|
|
41
|
+
"Gemini 4 Neon"
|
|
42
|
+
],
|
|
43
|
+
"builderA": [
|
|
44
|
+
"Gemini 4 Neon",
|
|
45
|
+
"Claude Sonnet 5.5",
|
|
46
|
+
"gpt-6-luna",
|
|
47
|
+
"Gemini 4 Carbon@medium",
|
|
48
|
+
"Claude Opus 5.5@medium",
|
|
49
|
+
"gpt-6.1-terra@high",
|
|
50
|
+
"gpt-6.1-sol@high"
|
|
51
|
+
],
|
|
52
|
+
"testerA": [
|
|
53
|
+
"Claude Sonnet 5.5",
|
|
54
|
+
"gpt-6-luna",
|
|
55
|
+
"Gemini 4 Neon",
|
|
56
|
+
"Claude Opus 5.5@medium",
|
|
57
|
+
"Gemini 4 Carbon@medium"
|
|
58
|
+
],
|
|
59
|
+
"auditorA": [
|
|
60
|
+
"Claude Opus 5.5",
|
|
61
|
+
"Claude Sonnet 5.5@high",
|
|
62
|
+
"Gemini 4 Carbon",
|
|
63
|
+
"gpt-6-luna@high",
|
|
64
|
+
"Gemini 4 Neon@high"
|
|
65
|
+
],
|
|
66
|
+
"builderB": [
|
|
67
|
+
"Claude Sonnet 5.5",
|
|
68
|
+
"Gemini 4 Neon",
|
|
69
|
+
"gpt-6-luna",
|
|
70
|
+
"Claude Opus 5.5@medium",
|
|
71
|
+
"Gemini 4 Carbon@medium",
|
|
72
|
+
"gpt-6.1-terra@high",
|
|
73
|
+
"gpt-6.1-sol@high"
|
|
74
|
+
],
|
|
75
|
+
"testerB": [
|
|
76
|
+
"Gemini 4 Neon",
|
|
77
|
+
"gpt-6-luna",
|
|
78
|
+
"Claude Sonnet 5.5",
|
|
79
|
+
"Gemini 4 Carbon@medium",
|
|
80
|
+
"Claude Opus 5.5@medium"
|
|
81
|
+
],
|
|
82
|
+
"auditorB": [
|
|
83
|
+
"Gemini 4 Carbon",
|
|
84
|
+
"Gemini 4 Neon@high",
|
|
85
|
+
"Claude Opus 5.5",
|
|
86
|
+
"gpt-6-luna@high",
|
|
87
|
+
"Claude Sonnet 5.5@high"
|
|
88
|
+
],
|
|
89
|
+
"architect": [
|
|
90
|
+
"Gemini 4 Carbon@high",
|
|
91
|
+
"Claude Opus 5.5@high",
|
|
92
|
+
"Gemini 4 Neon@high",
|
|
93
|
+
"Claude Sonnet 5.5@high",
|
|
94
|
+
"gpt-6-luna@high",
|
|
95
|
+
"gpt-6.1-terra@high"
|
|
96
|
+
],
|
|
97
|
+
"dualAudit": [
|
|
98
|
+
"Claude Opus 5.5@high",
|
|
99
|
+
"Gemini 4 Carbon@high"
|
|
100
|
+
]
|
|
35
101
|
}
|
|
36
102
|
}
|