jeopi-cli 16.6.1 → 16.6.2
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 +11 -0
- package/README.md +20 -0
- package/dist/cli.js +3317 -3317
- package/dist/types/config/model-registry.d.ts +3 -1
- package/package.json +12 -12
- package/src/config/model-registry.ts +10 -2
- package/src/internal-urls/docs-index.generated.txt +2 -2
- package/src/modes/controllers/selector-controller.ts +1 -2
- package/src/modes/rpc/rpc-mode.ts +1 -2
- package/src/modes/setup-wizard/scenes/sign-in.ts +1 -2
|
@@ -1131,7 +1131,7 @@ export class SelectorController {
|
|
|
1131
1131
|
const manualInput = this.ctx.oauthManualInput;
|
|
1132
1132
|
const useManualInput = PASTE_CODE_LOGIN_PROVIDERS.has(providerId);
|
|
1133
1133
|
try {
|
|
1134
|
-
await this.ctx.session.modelRegistry.
|
|
1134
|
+
await this.ctx.session.modelRegistry.login(providerId as OAuthProvider, {
|
|
1135
1135
|
onAuth: (info: { url: string; instructions?: string }) => {
|
|
1136
1136
|
const block = new TranscriptBlock();
|
|
1137
1137
|
block.addChild(new Text(theme.fg("dim", info.url), 1, 0));
|
|
@@ -1175,7 +1175,6 @@ export class SelectorController {
|
|
|
1175
1175
|
},
|
|
1176
1176
|
onManualCodeInput: useManualInput ? () => manualInput.waitForInput(providerId) : undefined,
|
|
1177
1177
|
});
|
|
1178
|
-
await this.ctx.session.modelRegistry.refresh();
|
|
1179
1178
|
const block = new TranscriptBlock();
|
|
1180
1179
|
block.addChild(
|
|
1181
1180
|
new Text(theme.fg("success", `${theme.status.success} Successfully logged in to ${providerId}`), 1, 0),
|
|
@@ -1289,7 +1289,7 @@ export async function runRpcMode(
|
|
|
1289
1289
|
// We use this ordering to self-classify at runtime — no static allowlist.
|
|
1290
1290
|
let authEmitted = false;
|
|
1291
1291
|
try {
|
|
1292
|
-
await session.modelRegistry.
|
|
1292
|
+
await session.modelRegistry.login(command.providerId, {
|
|
1293
1293
|
onAuth: info => {
|
|
1294
1294
|
authEmitted = true;
|
|
1295
1295
|
output({
|
|
@@ -1321,7 +1321,6 @@ export async function runRpcMode(
|
|
|
1321
1321
|
return new Promise<string>(() => {});
|
|
1322
1322
|
},
|
|
1323
1323
|
});
|
|
1324
|
-
await session.modelRegistry.refresh();
|
|
1325
1324
|
return success(id, "login", { providerId: command.providerId });
|
|
1326
1325
|
} catch (err: unknown) {
|
|
1327
1326
|
return error(id, "login", err instanceof Error ? err.message : String(err));
|
|
@@ -179,7 +179,7 @@ export class SignInTab implements SetupTab {
|
|
|
179
179
|
this.host.restoreFocus();
|
|
180
180
|
this.host.requestRender();
|
|
181
181
|
try {
|
|
182
|
-
await this
|
|
182
|
+
await this.host.ctx.session.modelRegistry.login(providerId as OAuthProvider, {
|
|
183
183
|
signal: this.#loginAbort.signal,
|
|
184
184
|
onAuth: info => {
|
|
185
185
|
this.#authUrl = info.url;
|
|
@@ -202,7 +202,6 @@ export class SignInTab implements SetupTab {
|
|
|
202
202
|
onManualCodeInput: () =>
|
|
203
203
|
this.#showPrompt({ message: "Paste the authorization code (or full redirect URL):" }),
|
|
204
204
|
});
|
|
205
|
-
await this.host.ctx.session.modelRegistry.refresh();
|
|
206
205
|
if (this.#disposed) return;
|
|
207
206
|
this.#statusLines = [
|
|
208
207
|
theme.fg("success", `${theme.status.success} Signed in to ${providerId}`),
|