@gatemux/dsh-gatemux-login-core 1.3.1 → 1.3.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.
Files changed (2) hide show
  1. package/account.js +16 -6
  2. package/package.json +1 -1
package/account.js CHANGED
@@ -333,16 +333,26 @@ export class GateMuxAccount extends DeepSeekAccount {
333
333
  return { status: 'ready', value: [{ currency, balance }], bonusWallets: [] }
334
334
  }
335
335
 
336
+ // The Remote signatures below must keep the base class's parameter names
337
+ // exactly. This module ships plain JavaScript, so the Typert Gateway has no
338
+ // generated descriptor to read: it reflects each overridden method's source
339
+ // text and uses the raw parameter names as the wire field names
340
+ // (`methodParameterNames` in the gateway). A renamed or dropped parameter is
341
+ // therefore a field mismatch that rejects the call before this code runs —
342
+ // which is what made sign-in fail with "please retry" while no browser ever
343
+ // opened. Parameters must stay plain identifiers: defaults, destructuring,
344
+ // and rest all fail the gateway's signature check outright.
345
+
336
346
  /** GateMux has no notification feed; the account UI shows none. */
337
- async getNotifications() { return null }
347
+ async getNotifications(client) { return null }
338
348
 
339
349
  /** GateMux has no notification content. */
340
- async getNotificationContent() { return null }
350
+ async getNotificationContent(id, client) { return null }
341
351
 
342
352
  /** GateMux has no notification events to report. */
343
- async reportNotificationEvent() { return false }
353
+ async reportNotificationEvent(id, event, client) { return false }
344
354
 
345
- async startSignIn(_client, callbackOrigin, loginSource) {
355
+ async startSignIn(client, callbackOrigin, loginSource) {
346
356
  if (this.removing !== undefined) await this.removing
347
357
  const origin = loginOrigin(callbackOrigin)
348
358
  if (this.closed) throw new GateMuxAuthError('provider is closed', 'protocol')
@@ -404,9 +414,9 @@ export class GateMuxAccount extends DeepSeekAccount {
404
414
  return this.getState()
405
415
  }
406
416
 
407
- async cancelSignIn(id) {
417
+ async cancelSignIn(attemptId) {
408
418
  const attempt = this.attempt
409
- if (attempt?.view.id === id) {
419
+ if (attempt?.view.id === attemptId) {
410
420
  if (attempt.view.phase !== 'committing') {
411
421
  attempt.controller.abort()
412
422
  this.ctx.authorization.cancel(KEY)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gatemux/dsh-gatemux-login-core",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "type": "module",
5
5
  "description": "GateMux account provider and model route for DeepSeek Harness. Shared code; install a region bundle instead of this package.",
6
6
  "publishConfig": {