@dsh-plus/image-studio 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/index.d.ts CHANGED
@@ -161,7 +161,7 @@ interface PresetsWire {
161
161
  //#endregion
162
162
  //#region src/service.d.ts
163
163
  declare class ImageStudioService extends Service {
164
- static [Context.inject]: string[];
164
+ static inject: string[];
165
165
  private current;
166
166
  private readonly runner;
167
167
  private readonly log;
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import z from "@deepseek-ai/schemastery";
2
- import { Context, Service } from "@deepseek-ai/cordis";
2
+ import { Service } from "@deepseek-ai/cordis";
3
3
  import { credentialRef } from "@deepseek-ai/dsh-credentials";
4
4
  import { request } from "node:http";
5
5
  import { request as request$1 } from "node:https";
@@ -996,18 +996,9 @@ function defaultIdCounter() {
996
996
  }
997
997
  //#endregion
998
998
  //#region src/service.ts
999
- /**
1000
- * image-studio 服务主体:
1001
- * - settings installSection(三组预设 + 并发/超时/代理/画廊上限);
1002
- * - TaskRunner 并发生图:提交即排队,成功自动入画廊(元数据 + 图片落盘);
1003
- * - 提供商预设按 id 即时 resolve credentials(不缓存);
1004
- * - 端点:generate/tasks/gallery/images/credentials/providers(api.ts 注册)。
1005
- * 红线:开发测试仅指向本地 mock,严禁真实调用产生费用。
1006
- * @module image-studio/service
1007
- */
1008
999
  /** 静态 schema 引用(installSection 用;避免循环 import config → service)。 */
1009
1000
  var ImageStudioService = class extends Service {
1010
- static [Context.inject] = ["credentials"];
1001
+ static inject = ["credentials"];
1011
1002
  current;
1012
1003
  runner;
1013
1004
  log;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-plus/image-studio",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "dsh-plus service+ui plugin: 图像工作室——OpenAI Images 协议文生图/图生图,全参数开关化,双预设体系,并发生图任务与可二次编辑画廊",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -20,23 +20,23 @@
20
20
  ],
21
21
  "dependencies": {
22
22
  "https-proxy-agent": "^9.1.0",
23
- "@dsh-plus/shared": "0.1.12"
23
+ "@dsh-plus/shared": "0.1.13"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "@deepseek-ai/cordis": "^4.0.2",
27
- "@deepseek-ai/dsh-client-ui-primitives": "*",
28
- "@deepseek-ai/dsh-credentials": "*",
29
- "@deepseek-ai/dsh-host-webserver": "*",
30
- "@deepseek-ai/dsh-settings": "*",
27
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.5-alpha.2",
28
+ "@deepseek-ai/dsh-credentials": "^0.1.5-alpha.2",
29
+ "@deepseek-ai/dsh-host-webserver": "^0.1.5-alpha.2",
30
+ "@deepseek-ai/dsh-settings": "^0.1.5-alpha.2",
31
31
  "@deepseek-ai/schemastery": "^3.18.2"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@deepseek-ai/cordis": "4.0.2",
35
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.5-alpha.1",
36
- "@deepseek-ai/dsh-credentials": "0.1.5-alpha.1",
37
- "@deepseek-ai/dsh-host-webserver": "0.1.5-alpha.1",
38
- "@deepseek-ai/dsh-session": "0.1.5-alpha.1",
39
- "@deepseek-ai/dsh-settings": "0.1.5-alpha.1",
35
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.5-alpha.2",
36
+ "@deepseek-ai/dsh-credentials": "0.1.5-alpha.2",
37
+ "@deepseek-ai/dsh-host-webserver": "0.1.5-alpha.2",
38
+ "@deepseek-ai/dsh-session": "0.1.5-alpha.2",
39
+ "@deepseek-ai/dsh-settings": "0.1.5-alpha.2",
40
40
  "@deepseek-ai/schemastery": "3.18.2",
41
41
  "@types/node": "26.4.0",
42
42
  "@types/react": "~18.3.31",
package/src/service.ts CHANGED
@@ -7,7 +7,8 @@
7
7
  * 红线:开发测试仅指向本地 mock,严禁真实调用产生费用。
8
8
  * @module image-studio/service
9
9
  */
10
- import { Context, type Context as ContextT, Service } from '@deepseek-ai/cordis'
10
+ import type { Context as ContextT } from '@deepseek-ai/cordis'
11
+ import { Service } from '@deepseek-ai/cordis'
11
12
  import { credentialRef } from '@deepseek-ai/dsh-credentials'
12
13
  import type {} from '@deepseek-ai/dsh-settings'
13
14
  import { registerImageStudioApi } from './api.ts'
@@ -66,7 +67,9 @@ interface TaskOutcome {
66
67
  }
67
68
 
68
69
  export class ImageStudioService extends Service {
69
- static [Context.inject] = ['credentials']
70
+ // 普通 static inject:cordis 4.0.2 不存在 Context.inject 符号(computed key
71
+ // 会失效为 'undefined' 使声明无效);credentials 时序由该声明保证。
72
+ static inject = ['credentials']
70
73
 
71
74
  private current: () => ImageStudioConfig
72
75
  private readonly runner: TaskRunner<TaskSnapshot>