dsh-connect-workbuddy 5.21.3 → 5.22.0

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.
@@ -1990,6 +1990,80 @@ function queueNoticeText(report) {
1990
1990
  const IMAGE_TAG_TEXT_TO_IMAGE = "text-to-image";
1991
1991
  /** 产品配置里「图生图 / 改图」模型的标签。 */
1992
1992
  const IMAGE_TAG_IMAGE_TO_IMAGE = "image-to-image";
1993
+ /** 实测通过的宽档(目录里的 `hunyuan-image-alpha` 等默认档)。 */
1994
+ const IMAGE_SIZE_LIMITS_WIDE = {
1995
+ minEdge: 512,
1996
+ maxEdge: 2560,
1997
+ maxPixels: 4194304
1998
+ };
1999
+ /**
2000
+ * `hunyuan-image-v3.0` 的窄档:边长 2048、总像素 1024² 顶格。
2001
+ *
2002
+ * 实测边界见 {@link WorkBuddyImageSizeLimits} 的表:`1024x1024`(1,048,576)
2003
+ * 通过、`1024x1025` 被拒,所以上限就是这个数,不多一位。
2004
+ */
2005
+ const IMAGE_SIZE_LIMITS_V3 = {
2006
+ minEdge: 512,
2007
+ maxEdge: 2048,
2008
+ maxPixels: 1048576
2009
+ };
2010
+ /**
2011
+ * 按模型 id 给出它的尺寸范围。
2012
+ *
2013
+ * 判据只看 id 前缀:`hunyuan-image-v3.0` 与它的改图位(若有)同族同限。这不是
2014
+ * 「猜模型能力」——两条是实测过的边界,其余一律回落到实测过的宽档。
2015
+ */
2016
+ function imageSizeLimitsOf(modelId) {
2017
+ return modelId.startsWith("hunyuan-image-v3") ? IMAGE_SIZE_LIMITS_V3 : IMAGE_SIZE_LIMITS_WIDE;
2018
+ }
2019
+ /**
2020
+ * 无水印模型:`hunyuan-image-v3.0`(issue #241)。
2021
+ *
2022
+ * 2026-11-12 实测:同一个提示词、同一个账号,`hunyuan-image-alpha` 的产物右下角
2023
+ * 固定带「AI生成 WORKBUDD>」水印,而 `hunyuan-image-v3.0` **完全没有**——它不是
2024
+ * 参数开关,是产物落盘路径的差别:带水印的产物落在 COS 的 `aigc-processed/`
2025
+ * 前缀下,v3.0 的不落。所以「关水印」这件事在上游只有一个等价做法:换模型。
2026
+ *
2027
+ * 代价如实体现在两处:单价 6 → 11.1 积分/张,尺寸上限降到
2028
+ * {@link IMAGE_SIZE_LIMITS_V3}。因此它是**用户选的**,不是默认——
2029
+ * 见 `preferredImageModels`。
2030
+ */
2031
+ const IMAGE_MODEL_NO_WATERMARK = "hunyuan-image-v3.0";
2032
+ /** 这个模型 id 是不是那条「不带水印」的模型。 */
2033
+ function isWatermarkFreeImageModel(modelId) {
2034
+ return modelId === IMAGE_MODEL_NO_WATERMARK;
2035
+ }
2036
+ /**
2037
+ * 「不带水印」这条可选项的目录条目。
2038
+ *
2039
+ * 它**不在** `/v3/config` 的媒体目录里——目录只发 `hunyuan-image-alpha` /
2040
+ * `hunyuan-image-alpha-edit` 两条。但它是官方 CLI 自己写死的文生图兜底模型
2041
+ * (`resolveModel` 里 `s ? "hunyuan-image-v3.0" : "hunyuan-image-v2.0-general-edit"`),
2042
+ * 实测也真的能出图,所以把它补成一条与目录条目同形的候选,让「选模型」这一层
2043
+ * 不必为它开第二条分支。
2044
+ *
2045
+ * `tags` 只给 `text-to-image`:它在 `/v2/images/edits` 上是**静默忽略输入图**的
2046
+ * (2026-11-12 实测:蓝底黑十字的输入图 + 「只加一颗星」,出来是灰底一颗星、
2047
+ * 输入图完全没进画布,照样扣 11.31 积分)。所以它绝不能出现在改图那一组里。
2048
+ */
2049
+ const IMAGE_MODEL_NO_WATERMARK_ENTRY = {
2050
+ id: IMAGE_MODEL_NO_WATERMARK,
2051
+ name: "Hunyuan Image v3.0(无水印)",
2052
+ tags: [IMAGE_TAG_TEXT_TO_IMAGE]
2053
+ };
2054
+ /**
2055
+ * 某个 tag 组里**可选的全部**模型:目录给的,加上本插件自己补的。
2056
+ *
2057
+ * 只往 `text-to-image` 组里补 `hunyuan-image-v3.0`,其他组原样返回。目录要是哪天
2058
+ * 自己下发了这个 id,就以目录的那条为准(不重复、不覆盖上游的名字)。
2059
+ */
2060
+ function imageModelChoices(models, tag) {
2061
+ const group = models.filter((model) => model.tags.includes(tag));
2062
+ if (group.length === 0) return group;
2063
+ if (tag !== "text-to-image") return group;
2064
+ if (group.some((model) => model.id === "hunyuan-image-v3.0")) return group;
2065
+ return [...group, IMAGE_MODEL_NO_WATERMARK_ENTRY];
2066
+ }
1993
2067
  /** 生图路由。 */
1994
2068
  const IMAGE_GENERATIONS_PATH = "/v2/images/generations";
1995
2069
  /** 改图路由:官方 CLI 的 `ImageService.editImage` 打的就是这条(2026-10-25 国际区实测 200)。 */
@@ -10527,7 +10601,7 @@ function describeRosterSeenPayload(raw) {
10527
10601
  //#endregion
10528
10602
  //#region src/version.ts
10529
10603
  /** The npm package version this build was produced from. */
10530
- const WORKBUDDY_CONNECT_VERSION = "5.21.3";
10604
+ const WORKBUDDY_CONNECT_VERSION = "5.22.0";
10531
10605
  //#endregion
10532
10606
  //#region src/host-heartbeat.ts
10533
10607
  /**
@@ -10738,4 +10812,4 @@ async function clearHostHeartbeat() {
10738
10812
  await rm(workbuddyHostHeartbeatPath(), { force: true });
10739
10813
  }
10740
10814
  //#endregion
10741
- export { DEFAULT_WIRE_PROFILE as $, imageDefaultFor as $t, withoutRouters as A, offRefused as At, defaultDesktopAuthPath as B, IMAGE_TAG_TEXT_TO_IMAGE as Bt, setDeviceMode as C, hostPeersInfo as Cn, attachBusyLevels as Ct, applyContextBudgets as D, defaultOffModelIds as Dt, WorkBuddyCatalog as E, writeFileAtomic as En, REFUSES_OFF_MODEL_IDS as Et, WorkBuddyCredentialStore as F, WorkBuddyVideoError as Ft, parseWorkBuddyAuth as G, isBareBase64Image as Gt, isEncryptedCredentialError as H, WorkBuddyImageError as Ht, WorkBuddyEncryptedCredentialError as I, parseSupportedSecondsRange as It, workbuddyOwnAuthPath as J, sniffImageMime as Jt, preferredAccountName as K, parseImageDataUrl as Kt, authFileName as L, pickVideoModel as Lt, WORKBUDDY_AUTH_FILENAME as M, withEffectiveOff as Mt, WORKBUDDY_AUTH_FILE_ENV as N, VIDEO_TAG_IMAGE_TO_VIDEO as Nt, deriveCatalog as O, lastRefusalFor as Ot, WORKBUDDY_VAULT_DIRNAME as P, VIDEO_TAG_TEXT_TO_VIDEO as Pt, CREDENTIAL_REJECTED_CODE as Q, NATIVE_MODALITY_BY_MODEL_ID as Qt, defaultDesktopAuthCandidates as R, resolveVideoParams as Rt, saveDeviceSdkSettings as S, workbuddyAppExecutableCandidates as Sn, rewriteSessionTitleModel as St, FALLBACK_WORKBUDDY_MODELS_GLOBAL as T, withFileLock as Tn, selectPromoBadge as Tt, isVaultAccountId as U, imageDataUrl as Ut, hasEncryptedCredentialFields as V, MAX_INPUT_IMAGE_BYTES as Vt, legacyWorkbuddyOwnAuthPath as W, imageMimeForPath as Wt, APP_VERSION as X, queueNoticeText as Xt, workbuddyVaultDir as Y, parseQueueAnswer as Yt, CONTEXT_OVERFLOW_MARKER as Z, pruneTempDir as Zt, createDeviceProfileLookup as _, isWorkbuddyBundle as _n, parseUpstreamModel as _t, readHostHeartbeat as a, deriveDeviceId as an, declaredTools as at, readDeviceSettings as b, openEncryptedField as bn, regionOf as bt, WORKBUDDY_CONNECT_VERSION as c, protectCredentialDirectory as cn, isContextTooLongBody as ct, rosterSeenPath as d, deriveAtRestKey as dn, isFirstMessageGateBody as dt, nativeModalityOf as en, WORKBUDDY_FALLBACK_SYSTEM_PROMPT as et, WORKBUDDY_CN_BASE_ENV as f, deriveAtRestKeyId as fn, knownRegionOf as ft, createTuringSdk as g, isEncryptedFieldWrapper as gn, parseReasoning as gt, createDeviceSdkPort as h, findWorkbuddyAppExecutableWithSource as hn, parseCreditMultiplier as ht, processStartTimeMs as i, readDeviceSalt as in, classifyUpstreamError as it, ENCRYPTED_CREDENTIAL_CODE as j, recordRefusal as jt, fallbackModelsFor as k, offDefaultFor as kt, createFileRosterSeenStore as l, WORKBUDDY_APP_EXECUTABLE_ENV as ln, isConversationIdGateBody as lt, piAiRuntimeInfo as m, findWorkbuddyAppExecutable as mn, openingEvidenceOfBody as mt, clearHostHeartbeat as n, readDeviceTokenFile as nn, WorkBuddyUpstreamClient as nt, workbuddyHostHeartbeatPath as o, isDeviceId as on, describeRequestHeaderNames as ot, resolveCnGateway as p, fetchAtRestKeyPayload as pn, modelIdOfBody as pt, workbuddyAccountId as q, pickMediaModel as qt, isHeartbeatProcessAlive as r, ensureDeviceSalt as rn, channelGateMemberOf as rt, writeHostHeartbeat as s, inspectCredentialDirectory as sn, forceNeutralHead as st, WORKBUDDY_HOST_HEARTBEAT_FILENAME as t, WORKBUDDY_DEVICE_TOKEN_FILE_ENV as tn, WorkBuddyCredentialRejectedError as tt, describeRosterSeenPayload as u, clearAtRestKeyCache as un, isCredentialRejectedError as ut, describeDerivedDevices as v, macosBundleExecutable as vn, perturbChannelFingerprints as vt, FALLBACK_WORKBUDDY_MODELS as w, resolveDshHome as wn, promoBadgeTone as wt, saveDeviceProfile as x, readAtRestKey as xn, requestEvidenceOf as xt, isDeviceMode as y, macosNestedAppBundles as yn, prepareChatBody as yt, defaultDesktopAuthDirs as z, IMAGE_TAG_IMAGE_TO_IMAGE as zt };
10815
+ export { DEFAULT_WIRE_PROFILE as $, parseQueueAnswer as $t, withoutRouters as A, writeFileAtomic as An, offRefused as At, defaultDesktopAuthPath as B, IMAGE_TAG_IMAGE_TO_IMAGE as Bt, setDeviceMode as C, macosNestedAppBundles as Cn, attachBusyLevels as Ct, applyContextBudgets as D, hostPeersInfo as Dn, defaultOffModelIds as Dt, WorkBuddyCatalog as E, workbuddyAppExecutableCandidates as En, REFUSES_OFF_MODEL_IDS as Et, WorkBuddyCredentialStore as F, WorkBuddyVideoError as Ft, parseWorkBuddyAuth as G, imageMimeForPath as Gt, isEncryptedCredentialError as H, MAX_INPUT_IMAGE_BYTES as Ht, WorkBuddyEncryptedCredentialError as I, parseSupportedSecondsRange as It, workbuddyOwnAuthPath as J, isBareBase64Image as Jt, preferredAccountName as K, imageModelChoices as Kt, authFileName as L, pickVideoModel as Lt, WORKBUDDY_AUTH_FILENAME as M, withEffectiveOff as Mt, WORKBUDDY_AUTH_FILE_ENV as N, VIDEO_TAG_IMAGE_TO_VIDEO as Nt, deriveCatalog as O, resolveDshHome as On, lastRefusalFor as Ot, WORKBUDDY_VAULT_DIRNAME as P, VIDEO_TAG_TEXT_TO_VIDEO as Pt, CREDENTIAL_REJECTED_CODE as Q, sniffImageMime as Qt, defaultDesktopAuthCandidates as R, resolveVideoParams as Rt, saveDeviceSdkSettings as S, macosBundleExecutable as Sn, rewriteSessionTitleModel as St, FALLBACK_WORKBUDDY_MODELS_GLOBAL as T, readAtRestKey as Tn, selectPromoBadge as Tt, isVaultAccountId as U, WorkBuddyImageError as Ut, hasEncryptedCredentialFields as V, IMAGE_TAG_TEXT_TO_IMAGE as Vt, legacyWorkbuddyOwnAuthPath as W, imageDataUrl as Wt, APP_VERSION as X, parseImageDataUrl as Xt, workbuddyVaultDir as Y, isWatermarkFreeImageModel as Yt, CONTEXT_OVERFLOW_MARKER as Z, pickMediaModel as Zt, createDeviceProfileLookup as _, fetchAtRestKeyPayload as _n, parseUpstreamModel as _t, readHostHeartbeat as a, WORKBUDDY_DEVICE_TOKEN_FILE_ENV as an, declaredTools as at, readDeviceSettings as b, isEncryptedFieldWrapper as bn, regionOf as bt, WORKBUDDY_CONNECT_VERSION as c, readDeviceSalt as cn, isContextTooLongBody as ct, rosterSeenPath as d, inspectCredentialDirectory as dn, isFirstMessageGateBody as dt, queueNoticeText as en, WORKBUDDY_FALLBACK_SYSTEM_PROMPT as et, WORKBUDDY_CN_BASE_ENV as f, protectCredentialDirectory as fn, knownRegionOf as ft, createTuringSdk as g, deriveAtRestKeyId as gn, parseReasoning as gt, createDeviceSdkPort as h, deriveAtRestKey as hn, parseCreditMultiplier as ht, processStartTimeMs as i, nativeModalityOf as in, classifyUpstreamError as it, ENCRYPTED_CREDENTIAL_CODE as j, recordRefusal as jt, fallbackModelsFor as k, withFileLock as kn, offDefaultFor as kt, createFileRosterSeenStore as l, deriveDeviceId as ln, isConversationIdGateBody as lt, piAiRuntimeInfo as m, clearAtRestKeyCache as mn, openingEvidenceOfBody as mt, clearHostHeartbeat as n, NATIVE_MODALITY_BY_MODEL_ID as nn, WorkBuddyUpstreamClient as nt, workbuddyHostHeartbeatPath as o, readDeviceTokenFile as on, describeRequestHeaderNames as ot, resolveCnGateway as p, WORKBUDDY_APP_EXECUTABLE_ENV as pn, modelIdOfBody as pt, workbuddyAccountId as q, imageSizeLimitsOf as qt, isHeartbeatProcessAlive as r, imageDefaultFor as rn, channelGateMemberOf as rt, writeHostHeartbeat as s, ensureDeviceSalt as sn, forceNeutralHead as st, WORKBUDDY_HOST_HEARTBEAT_FILENAME as t, pruneTempDir as tn, WorkBuddyCredentialRejectedError as tt, describeRosterSeenPayload as u, isDeviceId as un, isCredentialRejectedError as ut, describeDerivedDevices as v, findWorkbuddyAppExecutable as vn, perturbChannelFingerprints as vt, FALLBACK_WORKBUDDY_MODELS as w, openEncryptedField as wn, promoBadgeTone as wt, saveDeviceProfile as x, isWorkbuddyBundle as xn, requestEvidenceOf as xt, isDeviceMode as y, findWorkbuddyAppExecutableWithSource as yn, prepareChatBody as yt, defaultDesktopAuthDirs as z, IMAGE_SIZE_LIMITS_WIDE as zt };
package/lib/index.d.ts CHANGED
@@ -2581,9 +2581,10 @@ interface WorkBuddyShimOptions {
2581
2581
  * token REFRESH in one place (`store.resolve()`) instead of duplicating it on
2582
2582
  * a path that would silently send expired tokens.
2583
2583
  *
2584
- * Absent means the store's own selection always serves.
2584
+ * The optional signal releases a request waiting for pool recovery on client
2585
+ * disconnect. Absent means the store's own selection always serves.
2585
2586
  */
2586
- prepareAccount?: () => Promise<void>;
2587
+ prepareAccount?: (signal?: AbortSignal) => Promise<void>;
2587
2588
  /**
2588
2589
  * Called for every attempt that failed upstream, before the next one is tried.
2589
2590
  *
@@ -3425,7 +3426,8 @@ interface WorkBuddyProbeResult {
3425
3426
  */
3426
3427
  declare function parseRetryAfter(value: string | null, nowMs: number): number | undefined;
3427
3428
  /**
3428
- * The cooldown the upstream stated, if it stated one.
3429
+ * The upstream reset metadata, if stated. A credit-package refresh timestamp
3430
+ * is retained for diagnostics; it is not a minimum wait or recovery evidence.
3429
3431
  *
3430
3432
  * Three sources, in order of authority:
3431
3433
  *
@@ -3436,13 +3438,13 @@ declare function parseRetryAfter(value: string | null, nowMs: number): number |
3436
3438
  * this service: a 429 from the Chinese gateway carries code 6004 and a
3437
3439
  * `将在 … 重置` sentence, with no `Retry-After` header at all.
3438
3440
  * 3. The region's monthly quota refresh point, but ONLY for an out-of-credit
3439
- * outcome. A quota that resets at a known time is the one case where "when
3440
- * can I use this again" has a real answer even without a header — and it is
3441
- * the answer for the most common real limit on this service.
3441
+ * outcome. Check-in or a purchase can replenish credits earlier, so callers
3442
+ * must not render this metadata as a recovery countdown or release the
3443
+ * account when the timestamp passes.
3442
3444
  *
3443
- * A limited outcome with none of the three returns `{}`, which the card renders
3444
- * as "the upstream did not say when". That remains the honest answer for a
3445
- * genuinely timeless failure; inventing a number here would be pure fiction.
3445
+ * A limited outcome with none of the three returns `{}`. Rate-limit views state
3446
+ * that no time was given; credit-exhaustion views name the replenishment action
3447
+ * instead. Neither view invents a countdown.
3446
3448
  *
3447
3449
  * An `ok` outcome ALWAYS returns `{}`, whatever headers or body came with it.
3448
3450
  * A successful probe has already answered "can this account serve right now?"
@@ -3619,10 +3621,12 @@ interface WorkBuddyPoolProbe {
3619
3621
  */
3620
3622
  source?: WorkBuddyPoolProbeSource;
3621
3623
  /**
3622
- * When this account may be usable again, when the upstream stated a time.
3624
+ * The upstream's reset timestamp, interpreted according to the outcome.
3623
3625
  *
3624
3626
  * Present for a `rate-limited` outcome whose failure body carried a reset
3625
3627
  * sentence, and for an `out-of-credit` outcome with a known quota refresh.
3628
+ * For credit exhaustion this is package metadata, not a minimum wait or
3629
+ * proof of replenishment; later positive balance evidence clears the failure.
3626
3630
  * ABSENT when the upstream named no time — that absence is meaningful and
3627
3631
  * must never be turned into a locally invented countdown.
3628
3632
  */
@@ -4168,6 +4172,17 @@ type WorkBuddyWebUsage =
4168
4172
  * deployments. Absent reads as "nothing pinned", never as a made-up id.
4169
4173
  */
4170
4174
  preferredVideoModels?: Readonly<Record<string, string>>;
4175
+ /**
4176
+ * The text-to-image model this region generates with (issue #241), or `''`
4177
+ * for "follow the catalog".
4178
+ *
4179
+ * Travels on the Host's answer for the same measured reason as the switches
4180
+ * above: the picker must render the choice the TOOL will read, and the
4181
+ * browser settings mirror is stale for this namespace. Absent reads as "no
4182
+ * choice", never as the watermark-free model — that one costs twice as much
4183
+ * per image, so it cannot be inferred from a missing value.
4184
+ */
4185
+ preferredImageModel?: string;
4171
4186
  /**
4172
4187
  * Whether the OPTIONAL CodeBuddy CLI route is mounted (tool `codebuddy_ask`
4173
4188
  * + command `/codebuddy`).
@@ -4330,6 +4345,12 @@ type WorkBuddyWebUsage =
4330
4345
  * this travels on the Host's answer instead of the browser mirror.
4331
4346
  */
4332
4347
  preferredVideoModels?: Readonly<Record<string, string>>;
4348
+ /**
4349
+ * The text-to-image model this region generates with; see the signed-out
4350
+ * variant for why this travels on the Host's answer and why an absent value
4351
+ * must read as "no choice" rather than the watermark-free model.
4352
+ */
4353
+ preferredImageModel?: string;
4333
4354
  /**
4334
4355
  * Whether the OPTIONAL CodeBuddy CLI route is mounted (tool `codebuddy_ask`
4335
4356
  * + command `/codebuddy`).
@@ -5078,6 +5099,15 @@ interface WorkBuddyStatusRouteOptions {
5078
5099
  * from the committed value the tool will actually read.
5079
5100
  */
5080
5101
  preferredVideoModels?(region: WorkBuddyRegion): Readonly<Record<string, string>>;
5102
+ /**
5103
+ * The text-to-image model this region generates with (issue #241), or `''`.
5104
+ *
5105
+ * Optional and absent-tolerant like the pickers above: a Host that cannot
5106
+ * answer means "no choice", which is the pre-#241 behaviour. It must never
5107
+ * read as the watermark-free model — that costs roughly twice as much per
5108
+ * image, so a missing answer is not permission to spend more.
5109
+ */
5110
+ preferredImageModel?(region: WorkBuddyRegion): string;
5081
5111
  /**
5082
5112
  * Whether the OPTIONAL CodeBuddy CLI route is mounted (`codebuddy_ask` tool +
5083
5113
  * `/codebuddy` command).
@@ -5213,10 +5243,11 @@ interface WorkBuddyStatusRouteOptions {
5213
5243
  /**
5214
5244
  * The region's next monthly quota refresh, when the upstream declares one.
5215
5245
  *
5216
- * Used ONLY to answer "when can I use this again" for an out-of-credit
5217
- * outcome, which is the one cooldown the service actually states: a monthly
5218
- * resource that resets at a known time. Every other limited outcome has no
5219
- * time from any source and must be reported as such.
5246
+ * Recorded as upstream EVIDENCE beside an out-of-credit outcome, and nothing
5247
+ * more. It is deliberately NOT a "when can I use this again" answer: check-in
5248
+ * and top-ups replenish credits whenever they land, so this timestamp is a
5249
+ * package fact rather than the earliest recovery, and the pool must not release
5250
+ * the account when it passes (see `exclusionOf`).
5220
5251
  */
5221
5252
  quotaRefreshAtMs?(region: WorkBuddyRegion): number | undefined;
5222
5253
  /**
@@ -5672,6 +5703,20 @@ interface WorkBuddyRegionState {
5672
5703
  * decides to spend, so an upgrade must never hand out a spending capability.
5673
5704
  */
5674
5705
  videoToolEnabled?: boolean;
5706
+ /**
5707
+ * Which text-to-image model this region generates with (issue #241).
5708
+ *
5709
+ * Absent or `''` means "no choice" — the tool takes the catalog's first model
5710
+ * for that tag, so a config predating this field keeps its exact behaviour.
5711
+ * Set to `hunyuan-image-v3.0` to get output WITHOUT the "AI生成 WORKBUDD>"
5712
+ * watermark, at ~11.1 credits/image instead of ~6 and with a smaller maximum
5713
+ * size (2048 px edge, 1,048,576 px total).
5714
+ *
5715
+ * A free id rather than an enum, deliberately: the watermark-free model is not
5716
+ * in the upstream catalog (it is the official CLI's hard-coded fallback), and
5717
+ * a stale pick must degrade to "no choice" rather than fail a generation.
5718
+ */
5719
+ preferredImageModel?: string;
5675
5720
  /**
5676
5721
  * The video model the user pinned in the card, keyed by video tag
5677
5722
  * (`text-to-video` / `image-to-video`), value is a model id from this