@omercnet/paseo-omp 5.6.0 → 5.6.1-next.451.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.
@@ -34,7 +34,7 @@ import {
34
34
  accountGroups,
35
35
  accountsPollInterval,
36
36
  balanceLine,
37
- loginIsOpen,
37
+ loginIdToCancelOnClose,
38
38
  resetsLabel,
39
39
  signInProviders,
40
40
  usedPercent,
@@ -646,7 +646,8 @@ function SignInModal({
646
646
 
647
647
  function close() {
648
648
  closed.current = true;
649
- if (login && loginIsOpen(login)) cancel({ store, loginId: login.id }).catch(() => undefined);
649
+ const loginId = loginIdToCancelOnClose(state.kind === "login" ? state.id : undefined, login);
650
+ if (loginId) cancel({ store, loginId }).catch(() => undefined);
650
651
  onClose();
651
652
  }
652
653
 
@@ -47,6 +47,17 @@ export function loginIsOpen(login: Pick<OmpLogin, "step">): boolean {
47
47
  return login.step === "starting" || login.step === "waiting" || login.step === "verifying";
48
48
  }
49
49
 
50
+ /**
51
+ * The login to cancel when the sign-in modal closes. A login that was just started may not be in
52
+ * the polled view yet, so an unseen one still counts as open; only a login seen settled is left.
53
+ */
54
+ export function loginIdToCancelOnClose(
55
+ loginId: string | undefined,
56
+ login: Pick<OmpLogin, "step"> | undefined,
57
+ ): string | undefined {
58
+ return loginId && (!login || loginIsOpen(login)) ? loginId : undefined;
59
+ }
60
+
50
61
  /** Polls quickly while a sign-in is moving, otherwise slowly: the server already caches reads. */
51
62
  export function accountsPollInterval(view: OmpAccountsView | undefined): number {
52
63
  return view?.logins.some(loginIsOpen) ? OPEN_LOGIN_POLL_MS : IDLE_POLL_MS;
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-omp",
3
- "version": "5.6.0",
3
+ "version": "5.6.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@omercnet/paseo-omp",
9
- "version": "5.6.0",
9
+ "version": "5.6.1",
10
10
  "dependencies": {
11
- "@getpaseo/protocol": "0.15.0",
11
+ "@getpaseo/protocol": "0.15.2",
12
12
  "@modelcontextprotocol/sdk": "1.32.2",
13
13
  "yaml": "^2.9.0"
14
14
  }
15
15
  },
16
16
  "node_modules/@getpaseo/protocol": {
17
- "version": "0.15.0",
18
- "resolved": "https://registry.npmjs.org/@getpaseo/protocol/-/protocol-0.15.0.tgz",
19
- "integrity": "sha512-UqB9eB6h1X5AXeeTdTQsS0CmfG31KgTdxbw5Wrp9nYc7kk0uBqRbVgGx7uqVAzJYjdcDGUiYpQv+649T2POA5w==",
17
+ "version": "0.15.2",
18
+ "resolved": "https://registry.npmjs.org/@getpaseo/protocol/-/protocol-0.15.2.tgz",
19
+ "integrity": "sha512-+OaRl9s8SMVIYPhHnck11jUM0pXnvuyCNvtd6g2p2uD/hieB5PtUq3BX7gmPFSZakvmUupUvtmtpGN+N7WhaRw==",
20
20
  "dependencies": {
21
21
  "semver": "^7.8.5",
22
22
  "zod": "^4.4.3"
@@ -610,9 +610,9 @@
610
610
  }
611
611
  },
612
612
  "node_modules/hono": {
613
- "version": "4.13.16",
614
- "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.16.tgz",
615
- "integrity": "sha512-AOLOEhvrV+iH92xXCnFr/5+3KjPKcI3xP63XJtX5spAnkznPdHijlIsUTpi7/9EhWqrTCekw5c5zh1K+YsVw7A==",
613
+ "version": "4.13.17",
614
+ "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.17.tgz",
615
+ "integrity": "sha512-vZIcbkvjOR5hHRWERbGkr8fGfF0GGM1ooYkuH448iO3b2AdVEr3AXZSw4Z3Kn+1L5z0CVoVeyV29VGYmFh05kQ==",
616
616
  "license": "MIT",
617
617
  "engines": {
618
618
  "node": ">=16.9.0"
@@ -661,9 +661,9 @@
661
661
  "license": "ISC"
662
662
  },
663
663
  "node_modules/ip-address": {
664
- "version": "10.7.5",
665
- "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.5.tgz",
666
- "integrity": "sha512-t2v0rkILYv9WXmSL7TpAaU3HXgaFYOPUcH3QHgwQ++gpJuH3bqyMy4Fvt/DJCTKwzH3Cf+bAp5W/mFL39KPLzA==",
664
+ "version": "10.7.6",
665
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.6.tgz",
666
+ "integrity": "sha512-00LYkM6byILa9eQIx6qoaXCM40xTLd56AZ4vyaPW3YTyb49VZYPo5xsiAq4tuQ54GH4R7gVdYScJ1B7B77PuTg==",
667
667
  "license": "MIT",
668
668
  "engines": {
669
669
  "node": ">= 12"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-omp",
3
- "version": "5.6.0",
3
+ "version": "5.6.1-next.451.1",
4
4
  "type": "module",
5
5
  "description": "Paseo integration for OMP, including its direct provider and workspace tooling.",
6
6
  "license": "MIT",
@@ -54,16 +54,16 @@
54
54
  "typecheck": "tsc --noEmit -p tsconfig.client.json && tsc --noEmit -p tsconfig.server.json && tsc --noEmit -p tsconfig.tests.json"
55
55
  },
56
56
  "dependencies": {
57
- "@getpaseo/protocol": "0.15.0",
57
+ "@getpaseo/protocol": "0.15.2",
58
58
  "@modelcontextprotocol/sdk": "1.32.2",
59
59
  "yaml": "^2.9.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@biomejs/biome": "^2.5.10",
63
- "@getpaseo/cli": "0.15.0",
64
- "@getpaseo/client": "0.15.0",
65
- "@getpaseo/plugin": "0.15.0",
66
- "@getpaseo/server": "0.15.0",
63
+ "@getpaseo/cli": "0.15.2",
64
+ "@getpaseo/client": "0.15.2",
65
+ "@getpaseo/plugin": "0.15.2",
66
+ "@getpaseo/server": "0.15.2",
67
67
  "@oh-my-pi/pi-agent-core": "18.16.0",
68
68
  "@oh-my-pi/pi-coding-agent": "18.16.0",
69
69
  "@tanstack/react-query": "^5.102.3",
@@ -71,9 +71,9 @@
71
71
  "@types/react": "^19.2.18",
72
72
  "@vitest/coverage-v8": "^5.0.0",
73
73
  "esbuild": "0.28.2",
74
+ "pino": "10.4.0",
74
75
  "react": "19.1.0",
75
76
  "react-native": "0.81.5",
76
- "pino": "10.4.0",
77
77
  "tsx": "^4.20.6",
78
78
  "typescript": "^7.0.2",
79
79
  "vitest": "^5.0.0",
@@ -1093,6 +1093,7 @@ export class OmpAccounts {
1093
1093
  }
1094
1094
 
1095
1095
  private settle(login: LoginState, step: OmpLoginStep, message: string | null): void {
1096
+ if (!isOpen(login.step)) return;
1096
1097
  login.step = step;
1097
1098
  login.message = message;
1098
1099
  login.codePrompt = null;
@@ -1,2 +1,2 @@
1
1
  /** Release Please keeps this bundle-safe constant aligned with package.json. */
2
- export const PASEO_OMP_PACKAGE_VERSION = "5.6.0"; // x-release-please-version
2
+ export const PASEO_OMP_PACKAGE_VERSION = "5.6.1-next.451.1"; // x-release-please-version
@@ -1084,7 +1084,7 @@ export class OmpProviderSession implements OmpOpenedSession, OmpSubagentControls
1084
1084
  this.configRefreshInFlight,
1085
1085
  ].filter((pending): pending is Promise<void> => pending !== null),
1086
1086
  );
1087
- this.disposalPromise = cleanup;
1087
+ this.disposalPromise ??= cleanup;
1088
1088
  this.quarantineRewindCleanup(cleanup);
1089
1089
  await Promise.allSettled([cleanup]);
1090
1090
  }