@r-33/opencode 0.4.7-rc.25 → 0.4.7-rc.27
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/tui-entry/index.js +2 -18
- package/dist/v2-entry/index.js +12 -9
- package/package.json +1 -1
package/dist/tui-entry/index.js
CHANGED
|
@@ -7408,13 +7408,6 @@ var answerPass = async (deps) => {
|
|
|
7408
7408
|
});
|
|
7409
7409
|
return;
|
|
7410
7410
|
}
|
|
7411
|
-
const openUrl = () => {
|
|
7412
|
-
try {
|
|
7413
|
-
void deps.openSystemBrowser(new URL(second.data.url)).catch(() => void 0);
|
|
7414
|
-
} catch {
|
|
7415
|
-
}
|
|
7416
|
-
};
|
|
7417
|
-
openUrl();
|
|
7418
7411
|
const settled = await deps.pollTerminal(second.data.attemptID);
|
|
7419
7412
|
if (settled.kind !== "complete") {
|
|
7420
7413
|
deps.toast(v2OutcomeCopy(settled, V2_CONNECT_COPY.setupIncomplete));
|
|
@@ -7424,9 +7417,6 @@ var answerPass = async (deps) => {
|
|
|
7424
7417
|
deps.toast({ message: V2_CONNECT_COPY.success, variant: "success" });
|
|
7425
7418
|
};
|
|
7426
7419
|
|
|
7427
|
-
// src/tui-entry/v2-budget-picker/v2-budget-picker.ts
|
|
7428
|
-
import { openSystemBrowser } from "@r-33/auth-browser";
|
|
7429
|
-
|
|
7430
7420
|
// src/tui-entry/v2-integration-surface/v2-integration-surface.ts
|
|
7431
7421
|
var v2IntegrationSurface = (context) => context.client?.integration ?? context.client?.api?.integration;
|
|
7432
7422
|
|
|
@@ -7511,7 +7501,6 @@ var v2BudgetPicker = async (deps) => {
|
|
|
7511
7501
|
}
|
|
7512
7502
|
await answerPass({
|
|
7513
7503
|
connect: deps.connect,
|
|
7514
|
-
openSystemBrowser: deps.openSystemBrowser ?? openSystemBrowser,
|
|
7515
7504
|
dialog: deps.dialog,
|
|
7516
7505
|
extras,
|
|
7517
7506
|
form: deps.form,
|
|
@@ -7689,7 +7678,6 @@ var v2GuidedConnect = async (deps) => {
|
|
|
7689
7678
|
dialog,
|
|
7690
7679
|
form,
|
|
7691
7680
|
locationInput,
|
|
7692
|
-
...deps.openSystemBrowser === void 0 ? {} : { openSystemBrowser: deps.openSystemBrowser },
|
|
7693
7681
|
pollTerminal,
|
|
7694
7682
|
toast,
|
|
7695
7683
|
unattributed
|
|
@@ -7752,7 +7740,6 @@ var v2Autoconnect = async (context, options = {}) => {
|
|
|
7752
7740
|
}
|
|
7753
7741
|
await v2GuidedConnect({
|
|
7754
7742
|
context,
|
|
7755
|
-
...options.openSystemBrowser === void 0 ? {} : { openSystemBrowser: options.openSystemBrowser },
|
|
7756
7743
|
superseded: options.superseded,
|
|
7757
7744
|
unattributed
|
|
7758
7745
|
});
|
|
@@ -7807,9 +7794,7 @@ var showR33Menu = async (context, deps) => {
|
|
|
7807
7794
|
outsideWorktree: "return-undefined"
|
|
7808
7795
|
});
|
|
7809
7796
|
}
|
|
7810
|
-
await v2Autoconnect(context
|
|
7811
|
-
...deps.openSystemBrowser === void 0 ? {} : { openSystemBrowser: deps.openSystemBrowser }
|
|
7812
|
-
});
|
|
7797
|
+
await v2Autoconnect(context);
|
|
7813
7798
|
return;
|
|
7814
7799
|
}
|
|
7815
7800
|
await runR33MenuAction(context, selection, deps);
|
|
@@ -7876,8 +7861,7 @@ var v2BootMatrix = async ({
|
|
|
7876
7861
|
wizard
|
|
7877
7862
|
}) => {
|
|
7878
7863
|
if (!assumedAlive && await probe() === "dead") {
|
|
7879
|
-
|
|
7880
|
-
return { kind: "wizard-settled" };
|
|
7864
|
+
return { kind: "silent" };
|
|
7881
7865
|
}
|
|
7882
7866
|
if (attributed()) {
|
|
7883
7867
|
return { kind: "silent" };
|
package/dist/v2-entry/index.js
CHANGED
|
@@ -4214,15 +4214,12 @@ var createConnectAuthorize = (deps) => async (answer = {}) => {
|
|
|
4214
4214
|
"Route 33 authorization is unavailable in this host"
|
|
4215
4215
|
);
|
|
4216
4216
|
}
|
|
4217
|
-
await runtime2.login(
|
|
4217
|
+
await runtime2.login();
|
|
4218
4218
|
try {
|
|
4219
4219
|
return await deps.resolveCredential();
|
|
4220
|
-
} catch
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
throw new GatewayCredentialError(CONNECT_COPY.signedInNextStep);
|
|
4224
|
-
}
|
|
4225
|
-
throw error;
|
|
4220
|
+
} catch {
|
|
4221
|
+
await deps.registerProjectForm();
|
|
4222
|
+
throw new GatewayCredentialError(CONNECT_COPY.signedInNextStep);
|
|
4226
4223
|
}
|
|
4227
4224
|
}
|
|
4228
4225
|
await applyWizardAnswer(deps, answer);
|
|
@@ -4572,10 +4569,16 @@ var createRoute33V2Plugin = (options = {}) => {
|
|
|
4572
4569
|
return;
|
|
4573
4570
|
}
|
|
4574
4571
|
const [projects, modelIds, personalKeyActive] = await Promise.all([
|
|
4575
|
-
activeRuntime.listMintableProjects({ allowBrowser: false }).catch(() =>
|
|
4576
|
-
activeRuntime.catalogModelIds(),
|
|
4572
|
+
activeRuntime.listMintableProjects({ allowBrowser: false }).catch(() => void 0),
|
|
4573
|
+
activeRuntime.catalogModelIds().catch(() => []),
|
|
4577
4574
|
activeRuntime.hasPersonalLease().catch(() => false)
|
|
4578
4575
|
]);
|
|
4576
|
+
if (projects === void 0) {
|
|
4577
|
+
plan = void 0;
|
|
4578
|
+
connectFields = void 0;
|
|
4579
|
+
await context.integration.reload();
|
|
4580
|
+
return;
|
|
4581
|
+
}
|
|
4579
4582
|
plan = createAttributionPrompt(projects, { personalKeyActive });
|
|
4580
4583
|
connectFields = buildConnectForm(plan, modelIds);
|
|
4581
4584
|
await context.integration.reload();
|