dsh-opendesign-corouter 0.1.7 → 0.1.8

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.
@@ -0,0 +1,6 @@
1
+ import type { CatalogModel } from './catalog.js';
2
+ import type { ApiProtocol } from './protocol-options.js';
3
+ /** Whether this request format can encode an effort without remapping it. */
4
+ export declare function protocolAcceptsEffort(protocol: ApiProtocol, effort: string): boolean;
5
+ /** Intersect documented model choices with the active request format. */
6
+ export declare function modelReasoningEfforts(model: Pick<CatalogModel, 'reasoningEfforts'>, protocol: ApiProtocol): readonly string[] | undefined;
@@ -0,0 +1,4 @@
1
+ /** Preserve a transform callback through repeated Schema JSON rehydration. */
2
+ export declare function serializableTransform<T, R>(callback: (value: T) => R): ((value: T) => R) & {
3
+ toJSON(): string;
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-opendesign-corouter",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "OpenDesign CoRouter:套餐赠送与付费模型双 Provider、桌面登录态额度及独立登录",
5
5
  "type": "module",
6
6
  "license": "MIT",