@moxxy/cli 0.29.0 → 0.30.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/dist/bin.js +55 -11
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -104784,6 +104784,13 @@ var codexModels = [
|
|
|
104784
104784
|
// the proactive compactor's `estimatedTokens > 0.75 * contextWindow` gate
|
|
104785
104785
|
// unreachable, so every overflow fell through to the reactive
|
|
104786
104786
|
// compact-on-overflow retry. Keep these in step with the rest of the catalog.
|
|
104787
|
+
// GPT-5.6 family (GA July 9, 2026): served to ChatGPT-Pro/Plus subscribers
|
|
104788
|
+
// under the same ids the API uses (sol/terra/luna — no `-codex` variant).
|
|
104789
|
+
// Sol is OpenAI's default Codex model. The ChatGPT-plan window cap applies
|
|
104790
|
+
// here too, so keep them at 400k like the rest of this list.
|
|
104791
|
+
{ id: "gpt-5.6-sol", contextWindow: 4e5, maxOutputTokens: 128e3, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
104792
|
+
{ id: "gpt-5.6-terra", contextWindow: 4e5, maxOutputTokens: 128e3, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
104793
|
+
{ id: "gpt-5.6-luna", contextWindow: 4e5, maxOutputTokens: 128e3, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
104787
104794
|
{ id: "gpt-5.5", contextWindow: 4e5, maxOutputTokens: 128e3, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
104788
104795
|
{ id: "gpt-5.4", contextWindow: 4e5, maxOutputTokens: 128e3, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
104789
104796
|
{ id: "gpt-5.4-mini", contextWindow: 4e5, maxOutputTokens: 128e3, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
@@ -104791,7 +104798,7 @@ var codexModels = [
|
|
|
104791
104798
|
{ id: "gpt-5.3-codex-spark", contextWindow: 4e5, maxOutputTokens: 128e3, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
104792
104799
|
{ id: "gpt-5.2", contextWindow: 4e5, maxOutputTokens: 128e3, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true }
|
|
104793
104800
|
];
|
|
104794
|
-
var DEFAULT_CODEX_MODEL = "gpt-5.
|
|
104801
|
+
var DEFAULT_CODEX_MODEL = "gpt-5.6-sol";
|
|
104795
104802
|
function contentBlocksToInputText(role, blocks) {
|
|
104796
104803
|
const out = [];
|
|
104797
104804
|
for (const block of blocks) {
|
|
@@ -105480,6 +105487,9 @@ var openaiCodexProviderDef = defineProvider({
|
|
|
105480
105487
|
auth: {
|
|
105481
105488
|
kind: "oauth",
|
|
105482
105489
|
serviceName: "ChatGPT Pro/Plus",
|
|
105490
|
+
// The codex profile carries a device-flow adapter, so `codexLogin` honours
|
|
105491
|
+
// `ctx.headless` with a real no-browser flow — let hosts offer the choice.
|
|
105492
|
+
supportsHeadless: true,
|
|
105483
105493
|
login: codexLogin,
|
|
105484
105494
|
logout: codexLogout,
|
|
105485
105495
|
status: codexStatus
|
|
@@ -130106,7 +130116,14 @@ function toOpenAITools(tools) {
|
|
|
130106
130116
|
// ../plugin-provider-openai/dist/provider.js
|
|
130107
130117
|
var DEFAULT_TIMEOUT_MS = 12e4;
|
|
130108
130118
|
var openAIModels = [
|
|
130109
|
-
// GPT-5.
|
|
130119
|
+
// GPT-5.6 family (GA July 9, 2026): three-tier frontier class, knowledge
|
|
130120
|
+
// cutoff Feb 16, 2026. Sol = flagship, Terra = balanced, Luna = fast/cheap.
|
|
130121
|
+
// All share the 1,050,000-token window and 128k max output; pick by cost:
|
|
130122
|
+
// Sol $5/$30, Terra $2.50/$15, Luna $1/$6 per 1M in/out tokens.
|
|
130123
|
+
{ id: "gpt-5.6-sol", contextWindow: 105e4, maxOutputTokens: 128e3, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
130124
|
+
{ id: "gpt-5.6-terra", contextWindow: 105e4, maxOutputTokens: 128e3, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
130125
|
+
{ id: "gpt-5.6-luna", contextWindow: 105e4, maxOutputTokens: 128e3, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
130126
|
+
// GPT-5.5 family (released April 23, 2026): prior frontier class.
|
|
130110
130127
|
{ id: "gpt-5.5", contextWindow: 105e4, maxOutputTokens: 128e3, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
130111
130128
|
{ id: "gpt-5.5-pro", contextWindow: 105e4, maxOutputTokens: 128e3, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
130112
130129
|
// GPT-5.4 family: cheaper general-purpose tier; -mini and -nano are the
|
|
@@ -131404,7 +131421,7 @@ function buildProviderSetupView(opts) {
|
|
|
131404
131421
|
await vault.set(canonicalKey(providerId), key, [providerId]);
|
|
131405
131422
|
markReady(providerId);
|
|
131406
131423
|
},
|
|
131407
|
-
loginOAuth: async (providerId, io) => {
|
|
131424
|
+
loginOAuth: async (providerId, io, opts2) => {
|
|
131408
131425
|
const def = registered(providerId);
|
|
131409
131426
|
if (!def || def.auth?.kind !== "oauth") {
|
|
131410
131427
|
throw new MoxxyError({
|
|
@@ -131414,16 +131431,17 @@ function buildProviderSetupView(opts) {
|
|
|
131414
131431
|
context: { provider: providerId }
|
|
131415
131432
|
});
|
|
131416
131433
|
}
|
|
131417
|
-
const
|
|
131434
|
+
const headless = opts2?.headless === true;
|
|
131435
|
+
const ctx = io ? channelAuthContext(vault, io, headless) : buildProviderAuthContext(vault, { headless });
|
|
131418
131436
|
const result = await def.auth.login(ctx);
|
|
131419
131437
|
markReady(providerId);
|
|
131420
131438
|
return result;
|
|
131421
131439
|
}
|
|
131422
131440
|
};
|
|
131423
131441
|
}
|
|
131424
|
-
function channelAuthContext(vault, io) {
|
|
131442
|
+
function channelAuthContext(vault, io, headless = false) {
|
|
131425
131443
|
return {
|
|
131426
|
-
headless
|
|
131444
|
+
headless,
|
|
131427
131445
|
write: io.write,
|
|
131428
131446
|
...io.prompt ? { prompt: io.prompt } : {},
|
|
131429
131447
|
vault: {
|
|
@@ -132171,7 +132189,8 @@ async function runSetupWizard(opts) {
|
|
|
132171
132189
|
);
|
|
132172
132190
|
process.exit(1);
|
|
132173
132191
|
}
|
|
132174
|
-
|
|
132192
|
+
const supportsHeadless = opts.controller.oauthSupportsHeadless?.(provider) ?? false;
|
|
132193
|
+
await collectOAuth(provider, opts.controller.loginOAuth, supportsHeadless);
|
|
132175
132194
|
oauthCompleted.push(provider);
|
|
132176
132195
|
} else {
|
|
132177
132196
|
apiKeys[provider] = await collectKey(provider, opts.controller);
|
|
@@ -132263,11 +132282,32 @@ async function runSetupWizard(opts) {
|
|
|
132263
132282
|
);
|
|
132264
132283
|
return configPath;
|
|
132265
132284
|
}
|
|
132266
|
-
async function collectOAuth(providerId, loginOAuth) {
|
|
132285
|
+
async function collectOAuth(providerId, loginOAuth, supportsHeadless) {
|
|
132286
|
+
let headless;
|
|
132287
|
+
if (supportsHeadless) {
|
|
132288
|
+
const choiceRaw = await xe2({
|
|
132289
|
+
message: `Step 2 \u2014 How do you want to sign in to ${colors.bold(providerId)}?`,
|
|
132290
|
+
options: [
|
|
132291
|
+
{
|
|
132292
|
+
value: "browser",
|
|
132293
|
+
label: "Open a browser on this machine",
|
|
132294
|
+
hint: "loopback callback \u2014 for a local desktop"
|
|
132295
|
+
},
|
|
132296
|
+
{
|
|
132297
|
+
value: "no-browser",
|
|
132298
|
+
label: "No browser \u2014 show a URL + code to enter elsewhere",
|
|
132299
|
+
hint: "device-code flow \u2014 for a headless / remote box"
|
|
132300
|
+
}
|
|
132301
|
+
],
|
|
132302
|
+
initialValue: "browser"
|
|
132303
|
+
});
|
|
132304
|
+
headless = guard(choiceRaw) === "no-browser";
|
|
132305
|
+
}
|
|
132306
|
+
const loginOpts = headless === void 0 ? void 0 : { headless };
|
|
132267
132307
|
while (true) {
|
|
132268
132308
|
R3.step(`Step 2 \u2014 Sign in to ${colors.bold(providerId)} (OAuth)`);
|
|
132269
132309
|
try {
|
|
132270
|
-
await loginOAuth(providerId);
|
|
132310
|
+
await loginOAuth(providerId, loginOpts);
|
|
132271
132311
|
R3.success(`${providerId} sign-in complete`);
|
|
132272
132312
|
return;
|
|
132273
132313
|
} catch (err) {
|
|
@@ -132488,8 +132528,12 @@ async function runInteractiveInit(session, vault) {
|
|
|
132488
132528
|
async testKey(providerId, key) {
|
|
132489
132529
|
return await providerSetup.testKey(providerId, key);
|
|
132490
132530
|
},
|
|
132491
|
-
async loginOAuth(providerId) {
|
|
132492
|
-
await providerSetup.loginOAuth(providerId);
|
|
132531
|
+
async loginOAuth(providerId, loginOpts) {
|
|
132532
|
+
await providerSetup.loginOAuth(providerId, void 0, loginOpts);
|
|
132533
|
+
},
|
|
132534
|
+
oauthSupportsHeadless(providerId) {
|
|
132535
|
+
const def = session.providers.list().find((p3) => p3.name === providerId);
|
|
132536
|
+
return def?.auth?.kind === "oauth" && def.auth.supportsHeadless === true;
|
|
132493
132537
|
},
|
|
132494
132538
|
async installPlugins(ids) {
|
|
132495
132539
|
for (const id of ids) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moxxy/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "moxxy command-line binary. Subcommand dispatcher consuming the moxxy SDK.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"moxxy",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"zod": "^3.24.0",
|
|
54
|
-
"@moxxy/sdk": "0.
|
|
54
|
+
"@moxxy/sdk": "0.30.0"
|
|
55
55
|
},
|
|
56
56
|
"optionalDependencies": {
|
|
57
57
|
"@napi-rs/keyring": "^1.3.0"
|