dsh-opendesign-corouter 0.1.2 → 0.1.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/login.d.ts CHANGED
@@ -158,6 +158,8 @@ export declare class ConsoleLogin {
158
158
  cancel(request: LoginJobRequest): LoginStatus;
159
159
  /** Plugin teardown: abort the attempt and close the browser. */
160
160
  dispose(): void;
161
+ /** Every cancellation source must let an in-flight atomic store decide the final outcome. */
162
+ private requestCancellation;
161
163
  private alive;
162
164
  private stopTimer;
163
165
  private close;
@@ -30,9 +30,9 @@ export interface ModelSettings {
30
30
  /** Model id → settings. Keys are model ids, never provider-scoped. */
31
31
  export type ModelSettingsMap = Record<string, ModelSettings>;
32
32
  /**
33
- * Validate an untrusted settings payload (settings store, credential-free Host state)
34
- * into a fresh map. Rejects non-objects, oversized maps, reserved/unsafe ids, unknown
35
- * fields and out-of-range values; never returns the input's objects or arrays.
33
+ * Validate an untrusted settings payload into a fresh, allowlisted map.
34
+ * This is also a Schemastery transform: all runtime dependencies must live inside
35
+ * the function so JSON serialization and fresh-realm rehydration preserve validation.
36
36
  */
37
37
  export declare function parseModelSettingsMap(value: unknown): ModelSettingsMap;
38
38
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-opendesign-corouter",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "OpenDesign CoRouter:套餐赠送与付费模型双 Provider、桌面登录态额度及独立登录",
5
5
  "type": "module",
6
6
  "license": "MIT",