opencode-aicodewith-auth 0.1.8 → 0.1.10
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/index.js
CHANGED
|
@@ -1309,6 +1309,7 @@ function invalidatePackage(packageName = PACKAGE_NAME) {
|
|
|
1309
1309
|
// lib/hooks/auto-update/index.ts
|
|
1310
1310
|
var DISPLAY_NAME = "AICodewith";
|
|
1311
1311
|
var SPINNER_FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
|
|
1312
|
+
var STARTUP_TOAST_DELAY = 6000;
|
|
1312
1313
|
function createAutoUpdateHook(ctx, options = {}) {
|
|
1313
1314
|
const { autoUpdate = true, showStartupToast = true } = options;
|
|
1314
1315
|
let hasChecked = false;
|
|
@@ -1327,13 +1328,17 @@ function createAutoUpdateHook(ctx, options = {}) {
|
|
|
1327
1328
|
const displayVersion = localDevVersion ?? cachedVersion ?? "unknown";
|
|
1328
1329
|
if (localDevVersion) {
|
|
1329
1330
|
if (showStartupToast) {
|
|
1330
|
-
|
|
1331
|
+
setTimeout(() => {
|
|
1332
|
+
showStartupToastWithSpinner(ctx, `${displayVersion} (dev)`, "Local development mode").catch(() => {});
|
|
1333
|
+
}, STARTUP_TOAST_DELAY);
|
|
1331
1334
|
}
|
|
1332
1335
|
log("Local development mode, skipping update check");
|
|
1333
1336
|
return;
|
|
1334
1337
|
}
|
|
1335
1338
|
if (showStartupToast) {
|
|
1336
|
-
|
|
1339
|
+
setTimeout(() => {
|
|
1340
|
+
showStartupToastWithSpinner(ctx, displayVersion, "GPT-5.2 \xB7 Claude \xB7 Gemini").catch(() => {});
|
|
1341
|
+
}, STARTUP_TOAST_DELAY);
|
|
1337
1342
|
}
|
|
1338
1343
|
runBackgroundUpdateCheck(ctx, autoUpdate).catch((err) => {
|
|
1339
1344
|
log("Background update check failed:", err);
|
|
@@ -7,4 +7,5 @@ export declare function findPluginEntry(directory: string): PluginEntryInfo | nu
|
|
|
7
7
|
export declare function getCachedVersion(): string | null;
|
|
8
8
|
export declare function updatePinnedVersion(configPath: string, oldEntry: string, newVersion: string): boolean;
|
|
9
9
|
export declare function getLatestVersion(): Promise<string | null>;
|
|
10
|
+
export declare function hasOhMyOpencode(directory: string): boolean;
|
|
10
11
|
export { log };
|
package/package.json
CHANGED