dsh-qoder-connect 0.2.3-alpha.2 → 0.2.3

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/lib/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { D as QoderCatalogStore, O as qoderCatalogPath, U as qoderCredentialIdentity, V as QoderCredentialStore, b as createQoderTransport, f as QODER_CONNECT_VERSION, i as variantFor, k as FALLBACK_QODER_MODELS, l as qoderHostHeartbeatPath, m as QoderUpstreamClient, r as QODER_VARIANTS, s as isHeartbeatProcessAlive, t as CHINA_VARIANT, u as readHostHeartbeat, y as validateApiKey } from "./variants-UX2MxZaz.js";
2
+ import { D as QoderCatalogStore, O as qoderCatalogPath, U as qoderCredentialIdentity, V as QoderCredentialStore, b as createQoderTransport, f as QODER_CONNECT_VERSION, i as variantFor, k as FALLBACK_QODER_MODELS, l as qoderHostHeartbeatPath, m as QoderUpstreamClient, r as QODER_VARIANTS, s as isHeartbeatProcessAlive, t as CHINA_VARIANT, u as readHostHeartbeat, y as validateApiKey } from "./variants-BgysmR2W.js";
3
3
  import { readFile } from "node:fs/promises";
4
4
  import { realpathSync } from "node:fs";
5
5
  import { fileURLToPath } from "node:url";
package/lib/client.js CHANGED
@@ -1760,17 +1760,17 @@ window.__ModuleLoader__.load({
1760
1760
  height: 6,
1761
1761
  borderRadius: "50%",
1762
1762
  flexShrink: 0,
1763
- background: log.status === "claimed" ? "var(--dsw-alias-status-success, #52c41a)" : log.status === "already-claimed" ? "var(--dsw-alias-status-info, #1890ff)" : log.status === "no-campaign" ? "var(--dsw-alias-label-tertiary, #999)" : "var(--dsw-alias-status-error, #f5222d)"
1764
- } }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: log.status === "claimed" ? t("autoCheckInStatusClaimed", { amount: log.amount ?? 100 }) : log.status === "already-claimed" ? t("autoCheckInStatusAlready") : log.status === "no-campaign" ? t("autoCheckInStatusNoCampaign") : t("autoCheckInStatusError", { message: log.message ?? "" }) })]
1763
+ background: log.status === "claimed" ? "var(--dsw-alias-status-success, #52c41a)" : log.status === "already-claimed" ? "var(--dsw-alias-status-info, #1890ff)" : log.status === "no-campaign" || log.status === "before-window" ? "var(--dsw-alias-label-tertiary, #999)" : "var(--dsw-alias-status-error, #f5222d)"
1764
+ } }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: log.status === "claimed" ? t("autoCheckInStatusClaimed", { amount: log.amount ?? 100 }) : log.status === "already-claimed" ? t("autoCheckInStatusAlready") : log.status === "no-campaign" ? t("autoCheckInStatusNoCampaign") : log.status === "before-window" ? t("autoCheckInStatusBeforeWindow") : t("autoCheckInStatusError", { message: log.message ?? "" }) })]
1765
1765
  }),
1766
1766
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1767
1767
  style: {
1768
1768
  flex: 1,
1769
1769
  textAlign: "right",
1770
1770
  fontWeight: 600,
1771
- color: log.amount ? "var(--dsw-alias-brand-primary)" : "inherit"
1771
+ color: log.status === "claimed" ? "var(--dsw-alias-brand-primary)" : "inherit"
1772
1772
  },
1773
- children: log.amount ? `+${log.amount}` : "-"
1773
+ children: log.status === "claimed" ? `+${log.amount ?? 100}` : "-"
1774
1774
  })
1775
1775
  ]
1776
1776
  }, log.id))]
@@ -1950,6 +1950,7 @@ window.__ModuleLoader__.load({
1950
1950
  if (result.state === "claimed") setCheckInNotice(t("autoCheckInStatusClaimed", { amount: result.amount ?? 100 }));
1951
1951
  else if (result.state === "already-claimed") setCheckInNotice(t("autoCheckInStatusAlready"));
1952
1952
  else if (result.state === "no-campaign") setCheckInNotice(t("autoCheckInStatusNoCampaign"));
1953
+ else if (result.state === "before-window") setCheckInNotice(t("autoCheckInStatusBeforeWindow"));
1953
1954
  else if (result.reason) setCheckInNotice(t("autoCheckInStatusError", { message: result.reason }));
1954
1955
  } catch (error) {
1955
1956
  if (mounted.current && controller.signal.aborted !== true) setCheckInNotice(error instanceof Error ? error.message : t("requestFailed"));
@@ -3968,6 +3969,7 @@ window.__ModuleLoader__.load({
3968
3969
  autoCheckInStatusClaimed: "Checked in today (+{amount} Credits)",
3969
3970
  autoCheckInStatusAlready: "Already checked in today",
3970
3971
  autoCheckInStatusNoCampaign: "No active benefit campaign today",
3972
+ autoCheckInStatusBeforeWindow: "Benefit window not open yet",
3971
3973
  autoCheckInStatusError: "Auto check-in error: {message}",
3972
3974
  quotaSignInRequired: "Save a PAT for this variant first to enable this card.",
3973
3975
  quotaPollLabel: "Refresh interval",
@@ -4139,6 +4141,7 @@ window.__ModuleLoader__.load({
4139
4141
  autoCheckInStatusClaimed: "今日已自动签到(+{amount} Credits)",
4140
4142
  autoCheckInStatusAlready: "今日已完成签到",
4141
4143
  autoCheckInStatusNoCampaign: "今日无可用签到福利活动",
4144
+ autoCheckInStatusBeforeWindow: "签到活动尚未开启",
4142
4145
  autoCheckInStatusError: "自动签到出错:{message}",
4143
4146
  quotaSignInRequired: "请先为该变体保存 PAT,再开启此开关。",
4144
4147
  quotaPollLabel: "刷新间隔",
package/lib/index.d.ts CHANGED
@@ -269,7 +269,7 @@ type QoderWebStatus = {
269
269
  checkIn?: {
270
270
  lastDate: string;
271
271
  lastAt: number;
272
- status: 'claimed' | 'already-claimed' | 'no-campaign' | 'error';
272
+ status: 'claimed' | 'already-claimed' | 'before-window' | 'no-campaign' | 'error';
273
273
  amount?: number | undefined;
274
274
  message?: string | undefined;
275
275
  /**
@@ -284,7 +284,7 @@ type QoderWebStatus = {
284
284
  id: string;
285
285
  date: string;
286
286
  timestamp: number;
287
- status: 'claimed' | 'already-claimed' | 'no-campaign' | 'error';
287
+ status: 'claimed' | 'already-claimed' | 'before-window' | 'no-campaign' | 'error';
288
288
  amount?: number | undefined;
289
289
  campaignKey?: string | undefined;
290
290
  message?: string | undefined;
@@ -747,7 +747,7 @@ interface QoderCheckInResult {
747
747
  variantId: string;
748
748
  date: string;
749
749
  timestamp: number;
750
- status: 'claimed' | 'already-claimed' | 'no-campaign' | 'error';
750
+ status: 'claimed' | 'already-claimed' | 'before-window' | 'no-campaign' | 'error';
751
751
  amount?: number | undefined;
752
752
  campaignKey?: string | undefined;
753
753
  message?: string | undefined;
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as QoderCatalog, B as QODER_PAT_ENV_GLOBAL, C as getMachineId, D as QoderCatalogStore, E as randomSentinel, F as QODER_PROBE_PATH, G as QODER_DATA_DIR_ENV, H as patTail, I as QODER_SETTINGS_FACE_PATH, J as qoderPluginDataDir, K as QODER_DATA_DIR_NAME, L as QODER_STATUS_PATH, M as QODER_GLOBAL_AUTH_PATH, N as QODER_GLOBAL_PROBE_PATH, O as qoderCatalogPath, P as QODER_GLOBAL_STATUS_PATH, R as QODER_AUTH_FILENAME, S as utc8WallClock, T as probeModel, U as qoderCredentialIdentity, V as QoderCredentialStore, W as qoderOwnAuthPath, Y as qoderStateDir, _ as modelInfoOf, a as QODER_HOST_HEARTBEAT_FILENAME, b as createQoderTransport, c as processStartTimeMs, d as writeHostHeartbeat, f as QODER_CONNECT_VERSION, g as kindFromQoderFailure, h as classifyUpstreamError, i as variantFor, j as QODER_AUTH_PATH, k as FALLBACK_QODER_MODELS, l as qoderHostHeartbeatPath, m as QoderUpstreamClient, n as GLOBAL_VARIANT, o as clearHostHeartbeat, p as KIND_STATUS, q as qoderMachineIdPath, r as QODER_VARIANTS, s as isHeartbeatProcessAlive, t as CHINA_VARIANT, u as readHostHeartbeat, v as normalizeCredits, w as PROBE_EFFORT_CANDIDATES, x as formatUtc8Date, y as validateApiKey, z as QODER_PAT_ENV_CN } from "./variants-UX2MxZaz.js";
1
+ import { A as QoderCatalog, B as QODER_PAT_ENV_GLOBAL, C as getMachineId, D as QoderCatalogStore, E as randomSentinel, F as QODER_PROBE_PATH, G as QODER_DATA_DIR_ENV, H as patTail, I as QODER_SETTINGS_FACE_PATH, J as qoderPluginDataDir, K as QODER_DATA_DIR_NAME, L as QODER_STATUS_PATH, M as QODER_GLOBAL_AUTH_PATH, N as QODER_GLOBAL_PROBE_PATH, O as qoderCatalogPath, P as QODER_GLOBAL_STATUS_PATH, R as QODER_AUTH_FILENAME, S as utc8WallClock, T as probeModel, U as qoderCredentialIdentity, V as QoderCredentialStore, W as qoderOwnAuthPath, Y as qoderStateDir, _ as modelInfoOf, a as QODER_HOST_HEARTBEAT_FILENAME, b as createQoderTransport, c as processStartTimeMs, d as writeHostHeartbeat, f as QODER_CONNECT_VERSION, g as kindFromQoderFailure, h as classifyUpstreamError, i as variantFor, j as QODER_AUTH_PATH, k as FALLBACK_QODER_MODELS, l as qoderHostHeartbeatPath, m as QoderUpstreamClient, n as GLOBAL_VARIANT, o as clearHostHeartbeat, p as KIND_STATUS, q as qoderMachineIdPath, r as QODER_VARIANTS, s as isHeartbeatProcessAlive, t as CHINA_VARIANT, u as readHostHeartbeat, v as normalizeCredits, w as PROBE_EFFORT_CANDIDATES, x as formatUtc8Date, y as validateApiKey, z as QODER_PAT_ENV_CN } from "./variants-BgysmR2W.js";
2
2
  import z from "@deepseek-ai/schemastery";
3
3
  import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
4
4
  import { dirname, join, resolve } from "node:path";
@@ -2849,7 +2849,7 @@ var QoderCheckInService = class {
2849
2849
  variantId: this.variantId,
2850
2850
  date: today,
2851
2851
  timestamp: nowMs,
2852
- status: "no-campaign",
2852
+ status: "before-window",
2853
2853
  campaignKey: benefitCampaign.campaignKey,
2854
2854
  message: campaignWindow.kind === "not-open" ? "Today's benefit window has not opened yet" : `Upstream is still serving the benefit window of ${campaignWindow.date}`
2855
2855
  };
@@ -4662,7 +4662,7 @@ const DEFAULT_MAX_TOKENS = 32768;
4662
4662
  const DEFAULT_CONTEXT_WINDOW = 18e4;
4663
4663
  //#endregion
4664
4664
  //#region src/version.ts
4665
- const QODER_CONNECT_VERSION = "0.2.3-alpha.2";
4665
+ const QODER_CONNECT_VERSION = "0.2.3";
4666
4666
  //#endregion
4667
4667
  //#region src/host-heartbeat.ts
4668
4668
  /**
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dsh-qoder-connect",
3
3
  "displayName": "DSH Qoder Connect",
4
4
  "description": "将 Qoder(国内版 / 国际版)的模型接入 DeepSeek Harness — bring Qoder (CN & international) models into DeepSeek Harness.",
5
- "version": "0.2.3-alpha.2",
5
+ "version": "0.2.3",
6
6
  "author": "corrinehu",
7
7
  "keywords": [
8
8
  "dsh-plugin",