@exagone313/dsh-podman 1.4.0 → 1.5.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.
Files changed (47) hide show
  1. package/dist/card-route.d.ts +2 -1
  2. package/dist/card-route.js +89 -6
  3. package/dist/client/ContainerCard.js +1 -1
  4. package/dist/client/card-protocol.d.ts +12 -1
  5. package/dist/client/card-protocol.js +20 -0
  6. package/dist/client/container-card-controller.d.ts +5 -1
  7. package/dist/client/container-card-controller.js +12 -1
  8. package/dist/client/container-card-create-modal.js +14 -12
  9. package/dist/client/container-card-images.d.ts +9 -0
  10. package/dist/client/container-card-images.js +25 -3
  11. package/dist/client/container-card-ptc-section.d.ts +11 -0
  12. package/dist/client/container-card-ptc-section.js +36 -0
  13. package/dist/client/container-card-ptc.d.ts +69 -0
  14. package/dist/client/container-card-ptc.js +148 -0
  15. package/dist/client/container-card-resources.d.ts +1 -0
  16. package/dist/client/container-card-resources.js +13 -8
  17. package/dist/client/container-card-row.js +4 -2
  18. package/dist/client/container-card-shared.d.ts +1 -0
  19. package/dist/client/container-card-shared.js +4 -3
  20. package/dist/client/container-card-status.d.ts +6 -0
  21. package/dist/client/container-card-status.js +18 -14
  22. package/dist/client/index.js +832 -511
  23. package/dist/client/locales.d.ts +1 -1
  24. package/dist/client/locales.js +20 -0
  25. package/dist/client/relative-time.d.ts +2 -2
  26. package/dist/client/relative-time.js +8 -7
  27. package/dist/container-kind.d.ts +10 -0
  28. package/dist/container-kind.js +38 -0
  29. package/dist/dsh-version.d.ts +2 -0
  30. package/dist/dsh-version.js +33 -0
  31. package/dist/generated/version.d.ts +2 -2
  32. package/dist/generated/version.js +2 -2
  33. package/dist/grpc/proto/dshctl/v1/control.proto +35 -7
  34. package/dist/grpc/proto/dshguest/v1/guest.proto +17 -1
  35. package/dist/index.d.ts +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/public.d.ts +2 -0
  38. package/dist/public.js +19 -0
  39. package/dist/subprocess.js +271 -105
  40. package/dist/tool-handlers.js +12 -13
  41. package/dist/workspace-binding.d.ts +2 -0
  42. package/dist/workspace-binding.js +54 -11
  43. package/docs/configuration.md +6 -5
  44. package/docs/configuration.zh.md +6 -5
  45. package/docs/usage.md +37 -1
  46. package/docs/usage.zh.md +31 -1
  47. package/package.json +1 -1
@@ -785,8 +785,8 @@ var STATUS_TONES = {
785
785
  }
786
786
  };
787
787
  function StatusChip(props) {
788
- const { tone, label } = props;
789
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { style: { ...statusChip, ...STATUS_TONES[tone] }, children: label });
788
+ const { tone, label, title } = props;
789
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { style: { ...statusChip, ...STATUS_TONES[tone] }, title, children: label });
790
790
  }
791
791
  function MountKindChip(props) {
792
792
  const { label, tone } = props;
@@ -3335,10 +3335,275 @@ function DefaultsSection(props) {
3335
3335
  );
3336
3336
  }
3337
3337
 
3338
+ // src/client/card-protocol.ts
3339
+ var CARD_PATH = "/api/podman/card";
3340
+ var PTC_CONTAINER_NAME = "ptc";
3341
+ var PTC_IMAGE_ID = "ptc";
3342
+ function containerActionKey(op, workspace, container) {
3343
+ return `${op}:${workspace}:${container}`;
3344
+ }
3345
+ function scopedActionKey(op, scope) {
3346
+ return `${op}:${scope}`;
3347
+ }
3348
+ function bareActionKey(op) {
3349
+ return op;
3350
+ }
3351
+ var CONTAINER_OPS = [
3352
+ "remove",
3353
+ "recreate",
3354
+ "create",
3355
+ "container_mount_add",
3356
+ "container_mount_remove",
3357
+ "container_mount_update",
3358
+ "container_path_set",
3359
+ "container_secret_add",
3360
+ "container_secret_remove",
3361
+ "container_publish_port",
3362
+ "container_unpublish_port"
3363
+ ];
3364
+ function containerActionPending(pendingActions, workspace, container) {
3365
+ return CONTAINER_OPS.some(
3366
+ (op) => pendingActions.includes(containerActionKey(op, workspace, container))
3367
+ );
3368
+ }
3369
+ function absentPtcView() {
3370
+ return {
3371
+ containerName: PTC_CONTAINER_NAME,
3372
+ kind: "ptc",
3373
+ state: "absent",
3374
+ // The container does not exist yet, but its image does: naming it keeps the
3375
+ // card's image field filled instead of requiring the client to guess.
3376
+ imageId: PTC_IMAGE_ID,
3377
+ createdAt: ""
3378
+ };
3379
+ }
3380
+
3381
+ // src/client/container-card-ptc.ts
3382
+ var DEFAULT_CONTAINER_NAME = "default";
3383
+ var RESERVED_CONTAINER_NAMES = [
3384
+ DEFAULT_CONTAINER_NAME,
3385
+ PTC_CONTAINER_NAME
3386
+ ];
3387
+ function reservedContainerName(name2) {
3388
+ return RESERVED_CONTAINER_NAMES.find((reserved) => reserved === name2);
3389
+ }
3390
+ var PTC_CHIP_KEY = "containerKindPtc";
3391
+ var PTC_CHIP_TONE = "violet";
3392
+ function ptcStateLabel(t, state) {
3393
+ if (state === "running") return t("statusRunning");
3394
+ if (state === "stopped") return t("statusStopped");
3395
+ return t("statusMissing");
3396
+ }
3397
+ function ptcStatusChip(t, state) {
3398
+ const chip = {
3399
+ key: "state",
3400
+ tone: state === "running" ? "ok" : "muted",
3401
+ label: ptcStateLabel(t, state)
3402
+ };
3403
+ return state === "absent" ? { ...chip, title: t("ptcMissing") } : chip;
3404
+ }
3405
+ function ptcChip(t, titleKey) {
3406
+ return {
3407
+ key: "ptc",
3408
+ tone: PTC_CHIP_TONE,
3409
+ label: t(PTC_CHIP_KEY),
3410
+ title: t(titleKey)
3411
+ };
3412
+ }
3413
+ function ptcChips(t, state) {
3414
+ return [
3415
+ ptcStatusChip(t, state),
3416
+ ptcChip(t, "ptcContainerTooltip")
3417
+ ];
3418
+ }
3419
+ function ptcActionViews(t, containerName) {
3420
+ return [
3421
+ {
3422
+ key: "recreate",
3423
+ op: "ptc_recreate",
3424
+ label: t("recreate"),
3425
+ title: t("recreatePtcTitle"),
3426
+ description: t("confirmRecreatePtc", { container: containerName }),
3427
+ destructive: false
3428
+ },
3429
+ {
3430
+ key: "remove",
3431
+ op: "ptc_remove",
3432
+ label: t("remove"),
3433
+ title: t("removePtcTitle"),
3434
+ description: t("confirmRemovePtc", { container: containerName }),
3435
+ destructive: true
3436
+ }
3437
+ ];
3438
+ }
3439
+ function isPtcImage(imageId) {
3440
+ return imageId === PTC_IMAGE_ID;
3441
+ }
3442
+ function buildParentImages(images) {
3443
+ return images.filter((image) => !isPtcImage(image.imageId));
3444
+ }
3445
+ function orderedImages(images) {
3446
+ return [
3447
+ ...buildParentImages(images),
3448
+ ...images.filter((image) => isPtcImage(image.imageId))
3449
+ ];
3450
+ }
3451
+ function imageCardRows(images) {
3452
+ const listed = orderedImages(images);
3453
+ const ptc = listed.find((image) => isPtcImage(image.imageId));
3454
+ const editable = listed.filter((image) => !isPtcImage(image.imageId));
3455
+ const base = editable.filter((image) => image.isBase);
3456
+ const custom = editable.filter((image) => !image.isBase);
3457
+ return {
3458
+ editable,
3459
+ base,
3460
+ ptc,
3461
+ custom,
3462
+ baseCount: base.length + (ptc === void 0 ? 0 : 1),
3463
+ customCount: custom.length
3464
+ };
3465
+ }
3466
+ function ptcImageRow(t, image) {
3467
+ const built = image.status === "built";
3468
+ const parent = image.parent ?? "";
3469
+ return {
3470
+ imageId: image.imageId,
3471
+ builtAt: image.builtAt ?? "",
3472
+ // The PTC image names its parent as the primitive it builds from; a row
3473
+ // that only carries that primitive still shows it rather than an empty
3474
+ // field.
3475
+ parent: parent !== "" ? parent : image.primitive ?? "",
3476
+ chips: [
3477
+ {
3478
+ key: "state",
3479
+ tone: built ? "ok" : "error",
3480
+ label: built ? t("statusBuilt") : t("statusMissing")
3481
+ },
3482
+ ptcChip(t, "ptcImageTooltip")
3483
+ ],
3484
+ // A missing PTC image is built through the container's ensure (which
3485
+ // creates the container too), while an existing one is only rebuilt.
3486
+ build: { label: built ? t("rebuildImage") : t("build") },
3487
+ setDefault: {
3488
+ disabled: true,
3489
+ label: t("setDefaultImage"),
3490
+ tooltip: t("ptcImageReserved")
3491
+ }
3492
+ };
3493
+ }
3494
+
3495
+ // src/client/relative-time.ts
3496
+ var MINUTE = 6e4;
3497
+ var HOUR = 60 * MINUTE;
3498
+ var DAY = 24 * HOUR;
3499
+ var MONTH = 30 * DAY;
3500
+ var YEAR = 365 * DAY;
3501
+ var formatters = /* @__PURE__ */ new Map();
3502
+ function formatter(locale) {
3503
+ const cached = formatters.get(locale);
3504
+ if (cached !== void 0) return cached;
3505
+ let created;
3506
+ try {
3507
+ created = new Intl.RelativeTimeFormat(locale === "" ? void 0 : locale, {
3508
+ numeric: "auto"
3509
+ });
3510
+ } catch {
3511
+ try {
3512
+ created = new Intl.RelativeTimeFormat(void 0, { numeric: "auto" });
3513
+ } catch {
3514
+ created = void 0;
3515
+ }
3516
+ }
3517
+ if (created !== void 0) formatters.set(locale, created);
3518
+ return created;
3519
+ }
3520
+ function relativeTimeLabel(createdAt, locale, now = Date.now()) {
3521
+ const at2 = Date.parse(createdAt);
3522
+ if (Number.isNaN(at2)) return createdAt;
3523
+ const format = formatter(locale);
3524
+ if (format === void 0) return createdAt;
3525
+ const elapsed = Math.max(0, now - at2);
3526
+ if (elapsed < MINUTE) {
3527
+ return format.format(-Math.max(1, Math.floor(elapsed / 1e3)), "second");
3528
+ }
3529
+ if (elapsed < HOUR) {
3530
+ return format.format(-Math.floor(elapsed / MINUTE), "minute");
3531
+ }
3532
+ if (elapsed < DAY) return format.format(-Math.floor(elapsed / HOUR), "hour");
3533
+ if (elapsed < MONTH) return format.format(-Math.floor(elapsed / DAY), "day");
3534
+ if (elapsed < YEAR) {
3535
+ return format.format(-Math.floor(elapsed / MONTH), "month");
3536
+ }
3537
+ return format.format(-Math.floor(elapsed / YEAR), "year");
3538
+ }
3539
+
3540
+ // src/client/container-card-ptc-section.tsx
3541
+ var import_jsx_runtime6 = require("react/jsx-runtime");
3542
+ function PtcSection(props) {
3543
+ const { t, ptc, locale, pendingActions, onRecreate, onRemove } = props;
3544
+ const absent = ptc.state === "absent";
3545
+ const actions = ptcActionViews(t, ptc.containerName);
3546
+ const pending = (action) => pendingActions.includes(bareActionKey(action.op));
3547
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("section", { style: card, children: [
3548
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { style: { ...actionRow, ...headerRule }, children: [
3549
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { style: rowMain, children: [
3550
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
3551
+ "span",
3552
+ {
3553
+ style: {
3554
+ ...cardTitle,
3555
+ ...containerNameHeading,
3556
+ overflowWrap: "anywhere"
3557
+ },
3558
+ children: ptc.containerName
3559
+ }
3560
+ ),
3561
+ ptcChips(t, ptc.state).map((chip) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
3562
+ StatusChip,
3563
+ {
3564
+ tone: chip.tone,
3565
+ label: chip.label,
3566
+ title: chip.title
3567
+ },
3568
+ chip.key
3569
+ )),
3570
+ absent || ptc.createdAt === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
3571
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: rowMeta, title: ptc.createdAt, children: relativeTimeLabel(ptc.createdAt, locale) }),
3572
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
3573
+ CopyButton,
3574
+ {
3575
+ t,
3576
+ value: ptc.createdAt,
3577
+ label: t("copyCreated")
3578
+ }
3579
+ )
3580
+ ] })
3581
+ ] }),
3582
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: rowActions, children: actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
3583
+ ConfirmButton,
3584
+ {
3585
+ t,
3586
+ emphasis: action.destructive ? void 0 : "business",
3587
+ destructive: action.destructive,
3588
+ label: action.label,
3589
+ title: action.title,
3590
+ description: action.description,
3591
+ confirmLabel: action.title,
3592
+ disabled: absent,
3593
+ pending: pending(action),
3594
+ onConfirm: action.key === "recreate" ? onRecreate : onRemove
3595
+ },
3596
+ action.key
3597
+ )) })
3598
+ ] }),
3599
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: blockWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ImageRow, { t, mode: "view", image: ptc.imageId }) })
3600
+ ] });
3601
+ }
3602
+
3338
3603
  // src/client/container-card-status.tsx
3339
3604
  var import_dsh_client_ui_primitives5 = require("@deepseek-ai/dsh-client-ui-primitives");
3340
3605
  var import_react6 = require("react");
3341
- var import_jsx_runtime6 = require("react/jsx-runtime");
3606
+ var import_jsx_runtime7 = require("react/jsx-runtime");
3342
3607
  var versionCell = {
3343
3608
  fontSize: "13px",
3344
3609
  lineHeight: "20px",
@@ -3381,7 +3646,12 @@ function StatusSection(props) {
3381
3646
  gatewayState,
3382
3647
  gatewayVersion,
3383
3648
  gatewayCommit,
3384
- gatewayVersionState
3649
+ gatewayVersionState,
3650
+ ptc,
3651
+ locale,
3652
+ pendingActions,
3653
+ onRecreatePtc,
3654
+ onRemovePtc
3385
3655
  } = props;
3386
3656
  const [copyState, setCopyState] = (0, import_react6.useState)(
3387
3657
  "idle"
@@ -3452,164 +3722,104 @@ function StatusSection(props) {
3452
3722
  commit: gatewayCommit
3453
3723
  }
3454
3724
  ];
3455
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
3456
- CardGroup,
3457
- {
3458
- title: t("groupStatusTitle"),
3459
- summary: countLabel(
3460
- t,
3461
- knownVersions,
3462
- "countVersionOne",
3463
- "countVersionMany"
3464
- ),
3465
- hasContent: true,
3466
- className: TABLE_CARD_CLASS,
3467
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
3468
- Subsection,
3469
- {
3470
- title: t("versionsTitle"),
3471
- action: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
3472
- import_dsh_client_ui_primitives5.Button,
3473
- {
3474
- variant: "outline",
3475
- size: "sm",
3476
- onClick: () => void copyVersions(),
3477
- children: copyState === "copied" ? t("copied") : copyState === "failed" ? t("copyFailed") : t("copyVersions")
3478
- }
3479
- ),
3480
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("table", { className: TABLE_CLASS, style: versionTable, children: [
3481
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("tr", { children: [
3482
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("th", { scope: "col", children: t("columnComponent") }),
3483
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("th", { scope: "col", children: t("columnState") }),
3484
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("th", { scope: "col", children: t("columnVersion") }),
3485
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("th", { scope: "col", children: t("columnCommit") })
3486
- ] }) }),
3487
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("tbody", { children: componentRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("tr", { children: [
3488
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("td", { "data-label": t("columnComponent"), style: versionCell, children: row.component }),
3489
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("td", { "data-label": t("columnState"), style: versionCell, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { style: stateLine, children: [
3490
- row.state === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: missingValue, children: t("valueMissing") }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
3491
- StatusChip,
3492
- {
3493
- tone: row.state.tone,
3494
- label: t(row.state.label)
3495
- }
3496
- ),
3497
- row.versionNote === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
3498
- StatusChip,
3499
- {
3500
- tone: row.versionNote.tone,
3501
- label: t(row.versionNote.label)
3502
- }
3503
- )
3725
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
3726
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3727
+ CardGroup,
3728
+ {
3729
+ title: t("groupStatusTitle"),
3730
+ summary: countLabel(
3731
+ t,
3732
+ knownVersions,
3733
+ "countVersionOne",
3734
+ "countVersionMany"
3735
+ ),
3736
+ hasContent: true,
3737
+ className: TABLE_CARD_CLASS,
3738
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3739
+ Subsection,
3740
+ {
3741
+ title: t("versionsTitle"),
3742
+ action: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3743
+ import_dsh_client_ui_primitives5.Button,
3744
+ {
3745
+ variant: "outline",
3746
+ size: "sm",
3747
+ onClick: () => void copyVersions(),
3748
+ children: copyState === "copied" ? t("copied") : copyState === "failed" ? t("copyFailed") : t("copyVersions")
3749
+ }
3750
+ ),
3751
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("table", { className: TABLE_CLASS, style: versionTable, children: [
3752
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("tr", { children: [
3753
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("th", { scope: "col", children: t("columnComponent") }),
3754
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("th", { scope: "col", children: t("columnState") }),
3755
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("th", { scope: "col", children: t("columnVersion") }),
3756
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("th", { scope: "col", children: t("columnCommit") })
3504
3757
  ] }) }),
3505
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("td", { "data-label": t("columnVersion"), style: versionCell, children: row.version === "" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: missingValue, children: t("valueMissing") }) : row.version }),
3506
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("td", { "data-label": t("columnCommit"), style: versionCommit, children: row.commit === "" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: missingValue, children: t("valueMissing") }) : row.commit })
3507
- ] }, row.key)) })
3508
- ] })
3509
- }
3510
- )
3511
- }
3512
- );
3513
- }
3514
-
3515
- // src/client/card-protocol.ts
3516
- var CARD_PATH = "/api/podman/card";
3517
- function containerActionKey(op, workspace, container) {
3518
- return `${op}:${workspace}:${container}`;
3519
- }
3520
- function scopedActionKey(op, scope) {
3521
- return `${op}:${scope}`;
3522
- }
3523
- function bareActionKey(op) {
3524
- return op;
3525
- }
3526
- var CONTAINER_OPS = [
3527
- "remove",
3528
- "recreate",
3529
- "create",
3530
- "container_mount_add",
3531
- "container_mount_remove",
3532
- "container_mount_update",
3533
- "container_path_set",
3534
- "container_secret_add",
3535
- "container_secret_remove",
3536
- "container_publish_port",
3537
- "container_unpublish_port"
3538
- ];
3539
- function containerActionPending(pendingActions, workspace, container) {
3540
- return CONTAINER_OPS.some(
3541
- (op) => pendingActions.includes(containerActionKey(op, workspace, container))
3542
- );
3543
- }
3544
-
3545
- // src/client/relative-time.ts
3546
- var MINUTE = 6e4;
3547
- var HOUR = 60 * MINUTE;
3548
- var DAY = 24 * HOUR;
3549
- var MONTH = 30 * DAY;
3550
- var YEAR = 365 * DAY;
3551
- var formatters = /* @__PURE__ */ new Map();
3552
- function formatter(locale) {
3553
- const cached = formatters.get(locale);
3554
- if (cached !== void 0) return cached;
3555
- let created;
3556
- try {
3557
- created = new Intl.RelativeTimeFormat(locale === "" ? void 0 : locale, {
3558
- numeric: "auto"
3559
- });
3560
- } catch {
3561
- try {
3562
- created = new Intl.RelativeTimeFormat(void 0, { numeric: "auto" });
3563
- } catch {
3564
- created = void 0;
3565
- }
3566
- }
3567
- if (created !== void 0) formatters.set(locale, created);
3568
- return created;
3569
- }
3570
- function relativeTimeLabel(createdAt, locale, now = Date.now()) {
3571
- const at2 = Date.parse(createdAt);
3572
- if (Number.isNaN(at2)) return createdAt;
3573
- const format = formatter(locale);
3574
- if (format === void 0) return createdAt;
3575
- const elapsed = Math.max(0, now - at2);
3576
- if (elapsed < MINUTE) return format.format(0, "day");
3577
- if (elapsed < HOUR) {
3578
- return format.format(-Math.floor(elapsed / MINUTE), "minute");
3579
- }
3580
- if (elapsed < DAY) return format.format(-Math.floor(elapsed / HOUR), "hour");
3581
- if (elapsed < MONTH) return format.format(-Math.floor(elapsed / DAY), "day");
3582
- if (elapsed < YEAR) {
3583
- return format.format(-Math.floor(elapsed / MONTH), "month");
3584
- }
3585
- return format.format(-Math.floor(elapsed / YEAR), "year");
3758
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("tbody", { children: componentRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("tr", { children: [
3759
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("td", { "data-label": t("columnComponent"), style: versionCell, children: row.component }),
3760
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("td", { "data-label": t("columnState"), style: versionCell, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { style: stateLine, children: [
3761
+ row.state === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { style: missingValue, children: t("valueMissing") }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3762
+ StatusChip,
3763
+ {
3764
+ tone: row.state.tone,
3765
+ label: t(row.state.label)
3766
+ }
3767
+ ),
3768
+ row.versionNote === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3769
+ StatusChip,
3770
+ {
3771
+ tone: row.versionNote.tone,
3772
+ label: t(row.versionNote.label)
3773
+ }
3774
+ )
3775
+ ] }) }),
3776
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("td", { "data-label": t("columnVersion"), style: versionCell, children: row.version === "" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { style: missingValue, children: t("valueMissing") }) : row.version }),
3777
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("td", { "data-label": t("columnCommit"), style: versionCommit, children: row.commit === "" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { style: missingValue, children: t("valueMissing") }) : row.commit })
3778
+ ] }, row.key)) })
3779
+ ] })
3780
+ }
3781
+ )
3782
+ }
3783
+ ),
3784
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3785
+ PtcSection,
3786
+ {
3787
+ t,
3788
+ ptc,
3789
+ locale,
3790
+ pendingActions,
3791
+ onRecreate: onRecreatePtc,
3792
+ onRemove: onRemovePtc
3793
+ }
3794
+ )
3795
+ ] });
3586
3796
  }
3587
3797
 
3588
3798
  // src/client/container-card-images.tsx
3589
3799
  var import_dsh_client_ui_primitives6 = require("@deepseek-ai/dsh-client-ui-primitives");
3590
3800
  var import_react7 = require("react");
3591
- var import_jsx_runtime7 = require("react/jsx-runtime");
3801
+ var import_jsx_runtime8 = require("react/jsx-runtime");
3592
3802
  function Packages(props) {
3593
3803
  const { t, image } = props;
3594
3804
  if (image.packages.length === 0) return t("noPackages");
3595
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: image.packages.map((pkg) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Chip, { t, label: pkg }, pkg)) });
3805
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: image.packages.map((pkg) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Chip, { t, label: pkg }, pkg)) });
3596
3806
  }
3597
3807
  function ImageField(props) {
3598
3808
  const { label, ownLine, children } = props;
3599
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: FIELD_ROW_CLASS, children: [
3600
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { style: imageFieldLabel, children: label }),
3601
- ownLine === true ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: imageFieldOwnLine, children }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { style: imageFieldValue, children })
3809
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: FIELD_ROW_CLASS, children: [
3810
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: imageFieldLabel, children: label }),
3811
+ ownLine === true ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: imageFieldOwnLine, children }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: imageFieldValue, children })
3602
3812
  ] });
3603
3813
  }
3604
3814
  function ImageBlock(props) {
3605
3815
  const { t, image, defaultImage, locale, actions } = props;
3606
3816
  const source = image.parent !== "" ? image.parent : image.primitive;
3607
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
3608
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { style: actionRow, children: [
3609
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { style: rowMain, children: [
3610
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { style: containerNameHeading, children: image.imageId }),
3611
- image.imageId === defaultImage ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_dsh_client_ui_primitives6.Pill, { children: t("defaultImage") }) : null,
3612
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3817
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
3818
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: actionRow, children: [
3819
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: rowMain, children: [
3820
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: containerNameHeading, children: image.imageId }),
3821
+ image.imageId === defaultImage ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_dsh_client_ui_primitives6.Pill, { children: t("defaultImage") }) : null,
3822
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3613
3823
  StatusChip,
3614
3824
  {
3615
3825
  tone: imageStatusTone(image.status),
@@ -3617,12 +3827,12 @@ function ImageBlock(props) {
3617
3827
  }
3618
3828
  )
3619
3829
  ] }),
3620
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: rowActions, children: actions })
3830
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: rowActions, children: actions })
3621
3831
  ] }),
3622
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { style: imageFields, children: [
3623
- image.builtAt === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ImageField, { label: t("built"), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { title: image.builtAt, children: relativeTimeLabel(image.builtAt, locale) }) }),
3624
- source === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ImageField, { label: t("parentImage"), children: source }),
3625
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ImageField, { label: t("packages"), ownLine: true, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Packages, { t, image }) })
3832
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: imageFields, children: [
3833
+ image.builtAt === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ImageField, { label: t("built"), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { title: image.builtAt, children: relativeTimeLabel(image.builtAt, locale) }) }),
3834
+ source === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ImageField, { label: t("parentImage"), children: source }),
3835
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ImageField, { label: t("packages"), ownLine: true, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Packages, { t, image }) })
3626
3836
  ] })
3627
3837
  ] });
3628
3838
  }
@@ -3644,15 +3854,15 @@ function ImageItem(props) {
3644
3854
  const removePending = pendingActions.includes(
3645
3855
  scopedActionKey("image_remove", image.imageId)
3646
3856
  );
3647
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: last ? cardBlockRow : { ...cardBlockRow, ...rowDivider }, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3857
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: last ? cardBlockRow : { ...cardBlockRow, ...rowDivider }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3648
3858
  ImageBlock,
3649
3859
  {
3650
3860
  t,
3651
3861
  image,
3652
3862
  defaultImage,
3653
3863
  locale,
3654
- actions: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
3655
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3864
+ actions: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
3865
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3656
3866
  ConfirmButton,
3657
3867
  {
3658
3868
  t,
@@ -3664,7 +3874,7 @@ function ImageItem(props) {
3664
3874
  onConfirm: () => onRebuild(image.imageId)
3665
3875
  }
3666
3876
  ),
3667
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3877
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3668
3878
  import_dsh_client_ui_primitives6.Button,
3669
3879
  {
3670
3880
  variant: "outline",
@@ -3674,7 +3884,7 @@ function ImageItem(props) {
3674
3884
  children: t("setDefaultImage")
3675
3885
  }
3676
3886
  ),
3677
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3887
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3678
3888
  ConfirmButton,
3679
3889
  {
3680
3890
  t,
@@ -3712,15 +3922,15 @@ function BaseImageRow(props) {
3712
3922
  const pull = image.basePublic && (image.status === "missing" || image.status === "pulled");
3713
3923
  const build = !image.basePublic && image.status === "missing";
3714
3924
  const rebuild = !image.basePublic && image.status === "built";
3715
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: last ? cardBlockRow : { ...cardBlockRow, ...rowDivider }, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3925
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: last ? cardBlockRow : { ...cardBlockRow, ...rowDivider }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3716
3926
  ImageBlock,
3717
3927
  {
3718
3928
  t,
3719
3929
  image,
3720
3930
  defaultImage,
3721
3931
  locale,
3722
- actions: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
3723
- pull ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3932
+ actions: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
3933
+ pull ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3724
3934
  import_dsh_client_ui_primitives6.Button,
3725
3935
  {
3726
3936
  variant: "outline",
@@ -3730,7 +3940,7 @@ function BaseImageRow(props) {
3730
3940
  children: pullPending ? t("busy") : t("pullImage")
3731
3941
  }
3732
3942
  ) : null,
3733
- build ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3943
+ build ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3734
3944
  import_dsh_client_ui_primitives6.Button,
3735
3945
  {
3736
3946
  variant: "outline",
@@ -3740,7 +3950,7 @@ function BaseImageRow(props) {
3740
3950
  children: rebuildPending ? t("busy") : t("build")
3741
3951
  }
3742
3952
  ) : null,
3743
- rebuild ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3953
+ rebuild ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3744
3954
  import_dsh_client_ui_primitives6.Button,
3745
3955
  {
3746
3956
  variant: "outline",
@@ -3750,7 +3960,7 @@ function BaseImageRow(props) {
3750
3960
  children: rebuildPending ? t("busy") : t("rebuildImage")
3751
3961
  }
3752
3962
  ) : null,
3753
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3963
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3754
3964
  import_dsh_client_ui_primitives6.Button,
3755
3965
  {
3756
3966
  variant: "outline",
@@ -3764,6 +3974,64 @@ function BaseImageRow(props) {
3764
3974
  }
3765
3975
  ) });
3766
3976
  }
3977
+ function PtcImageRow(props) {
3978
+ const {
3979
+ t,
3980
+ image,
3981
+ locale,
3982
+ last,
3983
+ pendingActions,
3984
+ onRebuild,
3985
+ onBuild
3986
+ } = props;
3987
+ const row = ptcImageRow(t, image);
3988
+ const built = image.status === "built";
3989
+ const pending = pendingActions.includes(
3990
+ built ? scopedActionKey("image_rebuild", image.imageId) : bareActionKey("ptc_build")
3991
+ );
3992
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: last ? cardBlockRow : { ...cardBlockRow, ...rowDivider }, children: [
3993
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: actionRow, children: [
3994
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: rowMain, children: [
3995
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: containerNameHeading, children: row.imageId }),
3996
+ row.chips.map((chip) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3997
+ StatusChip,
3998
+ {
3999
+ tone: chip.tone,
4000
+ label: chip.label,
4001
+ title: chip.title
4002
+ },
4003
+ chip.key
4004
+ ))
4005
+ ] }),
4006
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: rowActions, children: [
4007
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
4008
+ import_dsh_client_ui_primitives6.Button,
4009
+ {
4010
+ variant: "outline",
4011
+ size: "sm",
4012
+ disabled: pending,
4013
+ onClick: () => built ? onRebuild(image.imageId) : onBuild(),
4014
+ children: pending ? t("busy") : row.build.label
4015
+ }
4016
+ ),
4017
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
4018
+ import_dsh_client_ui_primitives6.Button,
4019
+ {
4020
+ variant: "outline",
4021
+ size: "sm",
4022
+ disabled: row.setDefault.disabled,
4023
+ title: row.setDefault.tooltip,
4024
+ children: row.setDefault.label
4025
+ }
4026
+ )
4027
+ ] })
4028
+ ] }),
4029
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: imageFields, children: [
4030
+ row.builtAt === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ImageField, { label: t("built"), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { title: row.builtAt, children: relativeTimeLabel(row.builtAt, locale) }) }),
4031
+ row.parent === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ImageField, { label: t("parentImage"), children: row.parent })
4032
+ ] })
4033
+ ] });
4034
+ }
3767
4035
  function ImageBuildModal(props) {
3768
4036
  const {
3769
4037
  t,
@@ -3782,17 +4050,18 @@ function ImageBuildModal(props) {
3782
4050
  const imageIdLabel = (0, import_react7.useId)();
3783
4051
  const parentLabel = (0, import_react7.useId)();
3784
4052
  const packagesLabel = (0, import_react7.useId)();
3785
- const baseImages = images.filter((image) => image.isBase);
3786
- const customImages = images.filter((image) => !image.isBase);
3787
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
4053
+ const parentImages = buildParentImages(images);
4054
+ const baseImages = parentImages.filter((image) => image.isBase);
4055
+ const customImages = parentImages.filter((image) => !image.isBase);
4056
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3788
4057
  import_dsh_client_ui_primitives6.Modal,
3789
4058
  {
3790
4059
  open,
3791
4060
  onClose,
3792
4061
  title: t("buildImageTitle"),
3793
4062
  closeLabel: t("cancel"),
3794
- footer: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
3795
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
4063
+ footer: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
4064
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3796
4065
  import_dsh_client_ui_primitives6.Button,
3797
4066
  {
3798
4067
  variant: "outline",
@@ -3801,7 +4070,7 @@ function ImageBuildModal(props) {
3801
4070
  children: t("cancel")
3802
4071
  }
3803
4072
  ),
3804
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
4073
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3805
4074
  import_dsh_client_ui_primitives6.Button,
3806
4075
  {
3807
4076
  variant: "primary",
@@ -3812,7 +4081,7 @@ function ImageBuildModal(props) {
3812
4081
  }
3813
4082
  )
3814
4083
  ] }),
3815
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
4084
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
3816
4085
  "div",
3817
4086
  {
3818
4087
  style: {
@@ -3821,8 +4090,8 @@ function ImageBuildModal(props) {
3821
4090
  gap: "12px"
3822
4091
  },
3823
4092
  children: [
3824
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Field, { label: t("imageName"), htmlFor: imageIdLabel, children: [
3825
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
4093
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Field, { label: t("imageName"), htmlFor: imageIdLabel, children: [
4094
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3826
4095
  import_dsh_client_ui_primitives6.Input,
3827
4096
  {
3828
4097
  id: imageIdLabel,
@@ -3830,9 +4099,9 @@ function ImageBuildModal(props) {
3830
4099
  onChange: (event) => onImageId(event.target.value)
3831
4100
  }
3832
4101
  ),
3833
- imageId !== "" && !imageIdPattern.test(imageId) ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: t("invalidImageId") }) : null
4102
+ imageId !== "" && !imageIdPattern.test(imageId) ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: t("invalidImageId") }) : null
3834
4103
  ] }),
3835
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Field, { label: t("parentImage"), htmlFor: parentLabel, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
4104
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Field, { label: t("parentImage"), htmlFor: parentLabel, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
3836
4105
  "select",
3837
4106
  {
3838
4107
  id: parentLabel,
@@ -3840,12 +4109,12 @@ function ImageBuildModal(props) {
3840
4109
  value: parent,
3841
4110
  onChange: (event) => onParent(event.target.value),
3842
4111
  children: [
3843
- baseImages.map((image) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: image.imageId, children: image.imageId }, image.imageId)),
3844
- customImages.map((image) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: image.imageId, children: image.imageId }, image.imageId))
4112
+ baseImages.map((image) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: image.imageId, children: image.imageId }, image.imageId)),
4113
+ customImages.map((image) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: image.imageId, children: image.imageId }, image.imageId))
3845
4114
  ]
3846
4115
  }
3847
4116
  ) }),
3848
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Field, { label: t("packages"), htmlFor: packagesLabel, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
4117
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Field, { label: t("packages"), htmlFor: packagesLabel, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3849
4118
  TagInput,
3850
4119
  {
3851
4120
  id: packagesLabel,
@@ -3863,7 +4132,7 @@ function ImageBuildModal(props) {
3863
4132
  }
3864
4133
 
3865
4134
  // src/client/container-card-caches.tsx
3866
- var import_jsx_runtime8 = require("react/jsx-runtime");
4135
+ var import_jsx_runtime9 = require("react/jsx-runtime");
3867
4136
  function formatBytes(bytes) {
3868
4137
  if (!Number.isFinite(bytes) || bytes <= 0) return "0 B";
3869
4138
  const units = ["B", "KiB", "MiB", "GiB", "TiB"];
@@ -3878,14 +4147,14 @@ function formatBytes(bytes) {
3878
4147
  function CachesSection(props) {
3879
4148
  const { t, caches, pendingActions, onClean } = props;
3880
4149
  const disabled = caches.length === 0;
3881
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
4150
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3882
4151
  CardGroup,
3883
4152
  {
3884
4153
  title: t("cachesTitle"),
3885
4154
  summary: countLabel(t, caches.length, "countCacheOne", "countCacheMany"),
3886
4155
  hasContent: caches.length > 0,
3887
- action: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
3888
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
4156
+ action: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
4157
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3889
4158
  ConfirmButton,
3890
4159
  {
3891
4160
  t,
@@ -3901,7 +4170,7 @@ function CachesSection(props) {
3901
4170
  onConfirm: () => onClean("keep-latest")
3902
4171
  }
3903
4172
  ),
3904
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
4173
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3905
4174
  ConfirmButton,
3906
4175
  {
3907
4176
  t,
@@ -3918,13 +4187,13 @@ function CachesSection(props) {
3918
4187
  }
3919
4188
  )
3920
4189
  ] }),
3921
- children: caches.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noCaches") }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: cardList, children: caches.map((cache, index) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
4190
+ children: caches.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noCaches") }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { style: cardList, children: caches.map((cache, index) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3922
4191
  "div",
3923
4192
  {
3924
4193
  style: index === caches.length - 1 ? cardRow : { ...cardRow, ...rowDivider },
3925
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: rowMain, children: [
3926
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: containerNameHeading, children: cache.manager }),
3927
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: rowMeta, children: t("cacheUsage", {
4194
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { style: rowMain, children: [
4195
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { style: containerNameHeading, children: cache.manager }),
4196
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { style: rowMeta, children: t("cacheUsage", {
3928
4197
  size: formatBytes(cache.bytes),
3929
4198
  n: cache.files
3930
4199
  }) })
@@ -3939,7 +4208,7 @@ function CachesSection(props) {
3939
4208
  // src/client/container-card-secrets.tsx
3940
4209
  var import_dsh_client_ui_primitives7 = require("@deepseek-ai/dsh-client-ui-primitives");
3941
4210
  var import_react8 = require("react");
3942
- var import_jsx_runtime9 = require("react/jsx-runtime");
4211
+ var import_jsx_runtime10 = require("react/jsx-runtime");
3943
4212
  function SecretRow(props) {
3944
4213
  const { t, name: name2, writable, last, pendingActions, onEdit, onRemove } = props;
3945
4214
  const setPending = pendingActions.includes(
@@ -3948,8 +4217,8 @@ function SecretRow(props) {
3948
4217
  const removePending = pendingActions.includes(
3949
4218
  scopedActionKey("secret_remove", name2)
3950
4219
  );
3951
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { style: last ? cardRow : { ...cardRow, ...rowDivider }, children: [
3952
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { style: rowMain, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4220
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { style: last ? cardRow : { ...cardRow, ...rowDivider }, children: [
4221
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: rowMain, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3953
4222
  "code",
3954
4223
  {
3955
4224
  style: {
@@ -3961,8 +4230,8 @@ function SecretRow(props) {
3961
4230
  children: name2
3962
4231
  }
3963
4232
  ) }),
3964
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { style: rowActions, children: [
3965
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4233
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { style: rowActions, children: [
4234
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3966
4235
  import_dsh_client_ui_primitives7.Button,
3967
4236
  {
3968
4237
  variant: "outline",
@@ -3972,7 +4241,7 @@ function SecretRow(props) {
3972
4241
  children: setPending ? t("busy") : t("edit")
3973
4242
  }
3974
4243
  ),
3975
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4244
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3976
4245
  ConfirmButton,
3977
4246
  {
3978
4247
  t,
@@ -4035,7 +4304,7 @@ function SecretModal(props) {
4035
4304
  }
4036
4305
  onClose();
4037
4306
  };
4038
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4307
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4039
4308
  import_dsh_client_ui_primitives7.Modal,
4040
4309
  {
4041
4310
  open,
@@ -4043,8 +4312,8 @@ function SecretModal(props) {
4043
4312
  title: editing ? t("setSecretTitle") : t("createSecret"),
4044
4313
  closeLabel: t("cancel"),
4045
4314
  className: COMPACT_DIALOG_CLASS,
4046
- footer: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
4047
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4315
+ footer: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
4316
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4048
4317
  import_dsh_client_ui_primitives7.Button,
4049
4318
  {
4050
4319
  variant: "outline",
@@ -4053,7 +4322,7 @@ function SecretModal(props) {
4053
4322
  children: t("cancel")
4054
4323
  }
4055
4324
  ),
4056
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4325
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4057
4326
  import_dsh_client_ui_primitives7.Button,
4058
4327
  {
4059
4328
  variant: "primary",
@@ -4064,7 +4333,7 @@ function SecretModal(props) {
4064
4333
  }
4065
4334
  )
4066
4335
  ] }),
4067
- children: editing ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Field, { label: t("setSecret"), htmlFor: secretValueId, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4336
+ children: editing ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Field, { label: t("setSecret"), htmlFor: secretValueId, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4068
4337
  import_dsh_client_ui_primitives7.Input,
4069
4338
  {
4070
4339
  id: secretValueId,
@@ -4077,7 +4346,7 @@ function SecretModal(props) {
4077
4346
  if (event.key === "Enter") submit();
4078
4347
  }
4079
4348
  }
4080
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
4349
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
4081
4350
  "div",
4082
4351
  {
4083
4352
  style: {
@@ -4086,8 +4355,8 @@ function SecretModal(props) {
4086
4355
  gap: "12px"
4087
4356
  },
4088
4357
  children: [
4089
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Field, { label: t("secretName"), htmlFor: secretNameId, children: [
4090
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4358
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Field, { label: t("secretName"), htmlFor: secretNameId, children: [
4359
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4091
4360
  import_dsh_client_ui_primitives7.Input,
4092
4361
  {
4093
4362
  id: secretNameId,
@@ -4100,10 +4369,10 @@ function SecretModal(props) {
4100
4369
  }
4101
4370
  }
4102
4371
  ),
4103
- newName !== "" && !namePattern.test(newName) ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: t("invalidName") }) : null
4372
+ newName !== "" && !namePattern.test(newName) ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: t("invalidName") }) : null
4104
4373
  ] }),
4105
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Field, { label: t("secretLength"), htmlFor: secretLengthId, children: [
4106
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4374
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Field, { label: t("secretLength"), htmlFor: secretLengthId, children: [
4375
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4107
4376
  import_dsh_client_ui_primitives7.Input,
4108
4377
  {
4109
4378
  id: secretLengthId,
@@ -4115,9 +4384,9 @@ function SecretModal(props) {
4115
4384
  onChange: (event) => setLength(event.target.value)
4116
4385
  }
4117
4386
  ),
4118
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { style: { ...hint, margin: 0 }, "aria-live": "polite", children: lengthValid ? t("secretLengthHint") : t("invalidSecretLength") })
4387
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { style: { ...hint, margin: 0 }, "aria-live": "polite", children: lengthValid ? t("secretLengthHint") : t("invalidSecretLength") })
4119
4388
  ] }),
4120
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Field, { label: t("secretCharset"), htmlFor: secretCharsetId, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
4389
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Field, { label: t("secretCharset"), htmlFor: secretCharsetId, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
4121
4390
  "select",
4122
4391
  {
4123
4392
  id: secretCharsetId,
@@ -4126,9 +4395,9 @@ function SecretModal(props) {
4126
4395
  disabled: !writable || busy,
4127
4396
  onChange: (event) => setCharset(event.target.value),
4128
4397
  children: [
4129
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("option", { value: "alphanumeric", children: "alphanumeric" }),
4130
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("option", { value: "hex", children: "hex" }),
4131
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("option", { value: "base64url", children: "base64url" })
4398
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("option", { value: "alphanumeric", children: "alphanumeric" }),
4399
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("option", { value: "hex", children: "hex" }),
4400
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("option", { value: "base64url", children: "base64url" })
4132
4401
  ]
4133
4402
  }
4134
4403
  ) })
@@ -4201,13 +4470,13 @@ function SecretEnvEditor(props) {
4201
4470
  if (id === draftRowId) setDraftRowId(void 0);
4202
4471
  update(rows.filter((row) => row.id !== id));
4203
4472
  };
4204
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
4473
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
4205
4474
  "div",
4206
4475
  {
4207
4476
  className: ROW_LIST_CLASS,
4208
4477
  style: { display: "flex", flexDirection: "column", gap: "8px" },
4209
4478
  children: [
4210
- rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4479
+ rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4211
4480
  SecretEnvRow,
4212
4481
  {
4213
4482
  t,
@@ -4224,7 +4493,7 @@ function SecretEnvEditor(props) {
4224
4493
  },
4225
4494
  row.id
4226
4495
  )),
4227
- secrets.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4496
+ secrets.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4228
4497
  import_dsh_client_ui_primitives7.Button,
4229
4498
  {
4230
4499
  variant: "outline",
@@ -4234,7 +4503,7 @@ function SecretEnvEditor(props) {
4234
4503
  children: t("addSecretEnv")
4235
4504
  }
4236
4505
  ) }),
4237
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4506
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4238
4507
  import_dsh_client_ui_primitives7.Button,
4239
4508
  {
4240
4509
  variant: "outline",
@@ -4244,7 +4513,7 @@ function SecretEnvEditor(props) {
4244
4513
  children: t("createSecret")
4245
4514
  }
4246
4515
  ) }),
4247
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4516
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4248
4517
  SecretModal,
4249
4518
  {
4250
4519
  t,
@@ -4276,7 +4545,7 @@ function SecretsSection(props) {
4276
4545
  } = props;
4277
4546
  const [createOpen, setCreateOpen] = (0, import_react8.useState)(false);
4278
4547
  const [editing, setEditing] = (0, import_react8.useState)(void 0);
4279
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
4548
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
4280
4549
  CardGroup,
4281
4550
  {
4282
4551
  title: t("secretsTitle"),
@@ -4287,7 +4556,7 @@ function SecretsSection(props) {
4287
4556
  "countSecretMany"
4288
4557
  ),
4289
4558
  hasContent: secrets.length > 0,
4290
- action: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4559
+ action: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4291
4560
  import_dsh_client_ui_primitives7.Button,
4292
4561
  {
4293
4562
  variant: "primary",
@@ -4298,7 +4567,7 @@ function SecretsSection(props) {
4298
4567
  }
4299
4568
  ),
4300
4569
  children: [
4301
- secrets.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noSecrets") }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { style: cardList, children: secrets.map((secret, index) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4570
+ secrets.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noSecrets") }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: cardList, children: secrets.map((secret, index) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4302
4571
  SecretRow,
4303
4572
  {
4304
4573
  t,
@@ -4311,7 +4580,7 @@ function SecretsSection(props) {
4311
4580
  },
4312
4581
  secret.name
4313
4582
  )) }),
4314
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4583
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4315
4584
  SecretModal,
4316
4585
  {
4317
4586
  t,
@@ -4336,7 +4605,7 @@ function SecretsSection(props) {
4336
4605
  // src/client/container-card-volumes.tsx
4337
4606
  var import_dsh_client_ui_primitives8 = require("@deepseek-ai/dsh-client-ui-primitives");
4338
4607
  var import_react9 = require("react");
4339
- var import_jsx_runtime10 = require("react/jsx-runtime");
4608
+ var import_jsx_runtime11 = require("react/jsx-runtime");
4340
4609
  function VolumesSection(props) {
4341
4610
  const { t, volumes, busy, writable, pendingActions, onCreate, onRemove } = props;
4342
4611
  const [open, setOpen] = (0, import_react9.useState)(false);
@@ -4349,7 +4618,7 @@ function VolumesSection(props) {
4349
4618
  setName("");
4350
4619
  setOpen(false);
4351
4620
  };
4352
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
4621
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
4353
4622
  CardGroup,
4354
4623
  {
4355
4624
  title: t("volumesTitle"),
@@ -4360,7 +4629,7 @@ function VolumesSection(props) {
4360
4629
  "countVolumeMany"
4361
4630
  ),
4362
4631
  hasContent: volumes.length > 0,
4363
- action: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4632
+ action: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4364
4633
  import_dsh_client_ui_primitives8.Button,
4365
4634
  {
4366
4635
  variant: "primary",
@@ -4371,13 +4640,13 @@ function VolumesSection(props) {
4371
4640
  }
4372
4641
  ),
4373
4642
  children: [
4374
- volumes.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noVolumes") }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: cardList, children: volumes.map((volume, index) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
4643
+ volumes.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noVolumes") }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: cardList, children: volumes.map((volume, index) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
4375
4644
  "div",
4376
4645
  {
4377
4646
  style: index === volumes.length - 1 ? cardRow : { ...cardRow, ...rowDivider },
4378
4647
  children: [
4379
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: rowMain, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { style: containerNameHeading, children: volume.name }) }),
4380
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: rowActions, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4648
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: rowMain, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { style: containerNameHeading, children: volume.name }) }),
4649
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: rowActions, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4381
4650
  ConfirmButton,
4382
4651
  {
4383
4652
  t,
@@ -4398,15 +4667,15 @@ function VolumesSection(props) {
4398
4667
  },
4399
4668
  volume.name
4400
4669
  )) }),
4401
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4670
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4402
4671
  import_dsh_client_ui_primitives8.Modal,
4403
4672
  {
4404
4673
  open,
4405
4674
  onClose: () => setOpen(false),
4406
4675
  title: t("volumesTitle"),
4407
4676
  closeLabel: t("cancel"),
4408
- footer: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
4409
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4677
+ footer: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
4678
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4410
4679
  import_dsh_client_ui_primitives8.Button,
4411
4680
  {
4412
4681
  variant: "outline",
@@ -4415,7 +4684,7 @@ function VolumesSection(props) {
4415
4684
  children: t("cancel")
4416
4685
  }
4417
4686
  ),
4418
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4687
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4419
4688
  import_dsh_client_ui_primitives8.Button,
4420
4689
  {
4421
4690
  variant: "primary",
@@ -4426,8 +4695,8 @@ function VolumesSection(props) {
4426
4695
  }
4427
4696
  )
4428
4697
  ] }),
4429
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Field, { label: t("volumeName"), htmlFor: volumeId, children: [
4430
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4698
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Field, { label: t("volumeName"), htmlFor: volumeId, children: [
4699
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4431
4700
  import_dsh_client_ui_primitives8.Input,
4432
4701
  {
4433
4702
  id: volumeId,
@@ -4440,7 +4709,7 @@ function VolumesSection(props) {
4440
4709
  }
4441
4710
  }
4442
4711
  ),
4443
- name2 !== "" && !namePattern.test(name2) ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: t("invalidName") }) : null
4712
+ name2 !== "" && !namePattern.test(name2) ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: t("invalidName") }) : null
4444
4713
  ] })
4445
4714
  }
4446
4715
  )
@@ -4452,7 +4721,7 @@ function VolumesSection(props) {
4452
4721
  // src/client/container-card-resources.tsx
4453
4722
  var import_dsh_client_ui_primitives9 = require("@deepseek-ai/dsh-client-ui-primitives");
4454
4723
  var import_react10 = require("react");
4455
- var import_jsx_runtime11 = require("react/jsx-runtime");
4724
+ var import_jsx_runtime12 = require("react/jsx-runtime");
4456
4725
  function ImagesSection(props) {
4457
4726
  const {
4458
4727
  t,
@@ -4467,6 +4736,7 @@ function ImagesSection(props) {
4467
4736
  onPullBaseImage,
4468
4737
  onRemoveImage,
4469
4738
  onRebuildImage,
4739
+ onBuildPtcImage,
4470
4740
  onSetDefaultImage
4471
4741
  } = props;
4472
4742
  const [buildOpen, setBuildOpen] = (0, import_react10.useState)(false);
@@ -4478,12 +4748,15 @@ function ImagesSection(props) {
4478
4748
  const rebuildAllPending = pendingActions.includes(
4479
4749
  bareActionKey("image_rebuild_all")
4480
4750
  );
4481
- const baseImages = images.filter((image) => image.isBase);
4482
- const customImages = images.filter((image) => !image.isBase);
4751
+ const {
4752
+ base: baseImages,
4753
+ ptc: ptcImage,
4754
+ custom: customImages,
4755
+ baseCount: baseImageCount,
4756
+ customCount: customImageCount
4757
+ } = imageCardRows(images);
4483
4758
  const openBuild = () => {
4484
- const candidates = [...baseImages, ...customImages].map(
4485
- (image) => image.imageId
4486
- );
4759
+ const candidates = buildParentImages(images).map((image) => image.imageId);
4487
4760
  setImageId("");
4488
4761
  setParent(
4489
4762
  candidates.includes(defaultImage) ? defaultImage : candidates[0] ?? ""
@@ -4495,8 +4768,8 @@ function ImagesSection(props) {
4495
4768
  setRebuildAllAcknowledged(false);
4496
4769
  setRebuildAllOpen(true);
4497
4770
  };
4498
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
4499
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: actionRow, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4771
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
4772
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { style: actionRow, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4500
4773
  import_dsh_client_ui_primitives9.Button,
4501
4774
  {
4502
4775
  variant: "outline",
@@ -4507,47 +4780,61 @@ function ImagesSection(props) {
4507
4780
  children: rebuildAllPending ? t("busy") : t("rebuildAllImages")
4508
4781
  }
4509
4782
  ) }),
4510
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4783
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4511
4784
  CardGroup,
4512
4785
  {
4513
4786
  title: t("baseImagesTitle"),
4514
4787
  summary: countLabel(
4515
4788
  t,
4516
- baseImages.length,
4789
+ baseImageCount,
4517
4790
  "countImageOne",
4518
4791
  "countImageMany"
4519
4792
  ),
4520
- hasContent: baseImages.length > 0,
4793
+ hasContent: baseImageCount > 0,
4521
4794
  className: TABLE_CARD_CLASS,
4522
- children: baseImages.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noBaseImages") }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: cardList, children: baseImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4523
- BaseImageRow,
4524
- {
4525
- t,
4526
- image,
4527
- defaultImage,
4528
- locale,
4529
- last: index === baseImages.length - 1,
4530
- pendingActions,
4531
- onRebuild: onRebuildBaseImage,
4532
- onPull: onPullBaseImage,
4533
- onSetDefault: onSetDefaultImage
4534
- },
4535
- image.imageId
4536
- )) })
4795
+ children: baseImageCount === 0 ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noBaseImages") }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { style: cardList, children: [
4796
+ baseImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4797
+ BaseImageRow,
4798
+ {
4799
+ t,
4800
+ image,
4801
+ defaultImage,
4802
+ locale,
4803
+ last: index === baseImages.length - 1 && ptcImage === void 0,
4804
+ pendingActions,
4805
+ onRebuild: onRebuildBaseImage,
4806
+ onPull: onPullBaseImage,
4807
+ onSetDefault: onSetDefaultImage
4808
+ },
4809
+ image.imageId
4810
+ )),
4811
+ ptcImage === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4812
+ PtcImageRow,
4813
+ {
4814
+ t,
4815
+ image: ptcImage,
4816
+ locale,
4817
+ last: true,
4818
+ pendingActions,
4819
+ onRebuild: onRebuildImage,
4820
+ onBuild: onBuildPtcImage
4821
+ }
4822
+ )
4823
+ ] })
4537
4824
  }
4538
4825
  ),
4539
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4826
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4540
4827
  CardGroup,
4541
4828
  {
4542
4829
  title: t("customImagesTitle"),
4543
4830
  summary: countLabel(
4544
4831
  t,
4545
- customImages.length,
4832
+ customImageCount,
4546
4833
  "countImageOne",
4547
4834
  "countImageMany"
4548
4835
  ),
4549
- hasContent: customImages.length > 0,
4550
- action: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4836
+ hasContent: customImageCount > 0,
4837
+ action: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4551
4838
  import_dsh_client_ui_primitives9.Button,
4552
4839
  {
4553
4840
  variant: "primary",
@@ -4558,7 +4845,7 @@ function ImagesSection(props) {
4558
4845
  }
4559
4846
  ),
4560
4847
  className: TABLE_CARD_CLASS,
4561
- children: customImages.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noCustomImages") }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: cardList, children: customImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4848
+ children: customImageCount === 0 ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noCustomImages") }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { style: cardList, children: customImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4562
4849
  ImageItem,
4563
4850
  {
4564
4851
  t,
@@ -4575,7 +4862,7 @@ function ImagesSection(props) {
4575
4862
  )) })
4576
4863
  }
4577
4864
  ),
4578
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4865
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4579
4866
  import_dsh_client_ui_primitives9.RiskConfirmation,
4580
4867
  {
4581
4868
  open: rebuildAllOpen,
@@ -4599,7 +4886,7 @@ function ImagesSection(props) {
4599
4886
  }
4600
4887
  }
4601
4888
  ),
4602
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4889
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4603
4890
  ImageBuildModal,
4604
4891
  {
4605
4892
  t,
@@ -4639,8 +4926,8 @@ function StorageSection(props) {
4639
4926
  onRemoveSecret,
4640
4927
  onSetSecret
4641
4928
  } = props;
4642
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
4643
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4929
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
4930
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4644
4931
  VolumesSection,
4645
4932
  {
4646
4933
  t,
@@ -4652,7 +4939,7 @@ function StorageSection(props) {
4652
4939
  onRemove: onRemoveVolume
4653
4940
  }
4654
4941
  ),
4655
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4942
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4656
4943
  SecretsSection,
4657
4944
  {
4658
4945
  t,
@@ -4665,7 +4952,7 @@ function StorageSection(props) {
4665
4952
  onSet: onSetSecret
4666
4953
  }
4667
4954
  ),
4668
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4955
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4669
4956
  CachesSection,
4670
4957
  {
4671
4958
  t,
@@ -4679,7 +4966,7 @@ function StorageSection(props) {
4679
4966
 
4680
4967
  // src/client/container-card-dialog.tsx
4681
4968
  var import_dsh_client_ui_primitives10 = require("@deepseek-ai/dsh-client-ui-primitives");
4682
- var import_jsx_runtime12 = require("react/jsx-runtime");
4969
+ var import_jsx_runtime13 = require("react/jsx-runtime");
4683
4970
  var footerRow = {
4684
4971
  display: "flex",
4685
4972
  alignItems: "center",
@@ -4703,7 +4990,7 @@ var footerActions = {
4703
4990
  };
4704
4991
  function ContainerDialog(props) {
4705
4992
  const { t, open, title, onClose, marker, markerError, actions, children } = props;
4706
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4993
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
4707
4994
  import_dsh_client_ui_primitives10.Modal,
4708
4995
  {
4709
4996
  open,
@@ -4712,9 +4999,9 @@ function ContainerDialog(props) {
4712
4999
  closeLabel: t("cancel"),
4713
5000
  className: CONTAINER_DIALOG_CLASS,
4714
5001
  contentClassName: CONTAINER_DIALOG_CONTENT_CLASS,
4715
- footer: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { style: footerRow, children: [
4716
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { style: markerError === true ? footerMarkerError : footerMarker, children: marker ?? "" }),
4717
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { style: footerActions, children: actions })
5002
+ footer: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { style: footerRow, children: [
5003
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { style: markerError === true ? footerMarkerError : footerMarker, children: marker ?? "" }),
5004
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: footerActions, children: actions })
4718
5005
  ] }),
4719
5006
  children
4720
5007
  }
@@ -4724,7 +5011,7 @@ function ContainerDialog(props) {
4724
5011
  // src/client/container-card-paths.tsx
4725
5012
  var import_dsh_client_ui_primitives11 = require("@deepseek-ai/dsh-client-ui-primitives");
4726
5013
  var import_react11 = require("react");
4727
- var import_jsx_runtime13 = require("react/jsx-runtime");
5014
+ var import_jsx_runtime14 = require("react/jsx-runtime");
4728
5015
  var nextPathId = 0;
4729
5016
  function pathEntries(paths) {
4730
5017
  return paths.map((path) => ({ id: nextPathId++, path }));
@@ -4747,13 +5034,13 @@ function PathsList(props) {
4747
5034
  entries.map((entry, at2) => at2 === index ? { ...entry, path } : entry)
4748
5035
  );
4749
5036
  };
4750
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
5037
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
4751
5038
  "div",
4752
5039
  {
4753
5040
  className: ROW_LIST_CLASS,
4754
5041
  style: { display: "flex", flexDirection: "column", gap: "8px" },
4755
5042
  children: [
4756
- entries.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noPaths") }) : entries.map((entry, index) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
5043
+ entries.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noPaths") }) : entries.map((entry, index) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4757
5044
  PathRow,
4758
5045
  {
4759
5046
  t,
@@ -4774,7 +5061,7 @@ function PathsList(props) {
4774
5061
  },
4775
5062
  entry.id
4776
5063
  )),
4777
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
5064
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4778
5065
  import_dsh_client_ui_primitives11.Button,
4779
5066
  {
4780
5067
  variant: "outline",
@@ -4814,13 +5101,13 @@ function PathsEditor(props) {
4814
5101
  );
4815
5102
  setOpen(false);
4816
5103
  };
4817
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
5104
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
4818
5105
  "div",
4819
5106
  {
4820
5107
  className: ROW_LIST_CLASS,
4821
5108
  style: { display: "flex", flexDirection: "column", gap: "8px" },
4822
5109
  children: [
4823
- paths.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noPaths") }) : shown.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
5110
+ paths.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { ...hint, margin: 0 }, children: t("noPaths") }) : shown.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4824
5111
  PathRow,
4825
5112
  {
4826
5113
  t,
@@ -4829,7 +5116,7 @@ function PathsEditor(props) {
4829
5116
  },
4830
5117
  entry.id
4831
5118
  )),
4832
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
5119
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4833
5120
  import_dsh_client_ui_primitives11.Button,
4834
5121
  {
4835
5122
  variant: "outline",
@@ -4839,21 +5126,21 @@ function PathsEditor(props) {
4839
5126
  children: t("editPaths")
4840
5127
  }
4841
5128
  ) }),
4842
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
5129
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4843
5130
  import_dsh_client_ui_primitives11.Modal,
4844
5131
  {
4845
5132
  open,
4846
5133
  onClose: requestClose,
4847
5134
  title: t("pathsTitle"),
4848
5135
  closeLabel: t("cancel"),
4849
- footer: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
4850
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_dsh_client_ui_primitives11.Button, { variant: "outline", size: "sm", onClick: requestClose, children: t("cancel") }),
4851
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_dsh_client_ui_primitives11.Button, { variant: "primary", size: "sm", disabled: busy, onClick: apply2, children: t("apply") })
5136
+ footer: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
5137
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_dsh_client_ui_primitives11.Button, { variant: "outline", size: "sm", onClick: requestClose, children: t("cancel") }),
5138
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_dsh_client_ui_primitives11.Button, { variant: "primary", size: "sm", disabled: busy, onClick: apply2, children: t("apply") })
4852
5139
  ] }),
4853
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(PathsList, { t, entries: draft, busy, onChange: setDraft })
5140
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(PathsList, { t, entries: draft, busy, onChange: setDraft })
4854
5141
  }
4855
5142
  ),
4856
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
5143
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4857
5144
  DiscardChangesModal,
4858
5145
  {
4859
5146
  t,
@@ -4870,7 +5157,7 @@ function PathsEditor(props) {
4870
5157
  // src/client/container-card-ports.tsx
4871
5158
  var import_dsh_client_ui_primitives12 = require("@deepseek-ai/dsh-client-ui-primitives");
4872
5159
  var import_react12 = require("react");
4873
- var import_jsx_runtime14 = require("react/jsx-runtime");
5160
+ var import_jsx_runtime15 = require("react/jsx-runtime");
4874
5161
  var MIN_PORT = 1;
4875
5162
  var MAX_PORT = 65535;
4876
5163
  var MIN_HOST_PORT = 1024;
@@ -4943,13 +5230,13 @@ function PortsEditor(props) {
4943
5230
  alignItems: "center",
4944
5231
  gap: "8px"
4945
5232
  };
4946
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
5233
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
4947
5234
  "div",
4948
5235
  {
4949
5236
  className: ROW_LIST_CLASS,
4950
5237
  style: { display: "flex", flexDirection: "column", gap: "8px" },
4951
5238
  children: [
4952
- ports.map((published) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
5239
+ ports.map((published) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4953
5240
  PortRow,
4954
5241
  {
4955
5242
  t,
@@ -4965,8 +5252,8 @@ function PortsEditor(props) {
4965
5252
  },
4966
5253
  `${published.protocol}/${published.port}`
4967
5254
  )),
4968
- canPublish || !enabled ? null : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { ...hint, paddingTop: "8px" }, children: gatewayUnavailable ? t("publishNeedsGateway") : t("containerNotRunning") }),
4969
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: rowStyle, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
5255
+ canPublish || !enabled ? null : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { style: { ...hint, paddingTop: "8px" }, children: gatewayUnavailable ? t("publishNeedsGateway") : t("containerNotRunning") }),
5256
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: rowStyle, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4970
5257
  import_dsh_client_ui_primitives12.Button,
4971
5258
  {
4972
5259
  variant: "outline",
@@ -4976,7 +5263,7 @@ function PortsEditor(props) {
4976
5263
  children: t("publishPort")
4977
5264
  }
4978
5265
  ) }),
4979
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
5266
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4980
5267
  import_dsh_client_ui_primitives12.Modal,
4981
5268
  {
4982
5269
  open,
@@ -4984,8 +5271,8 @@ function PortsEditor(props) {
4984
5271
  title: t("publishPort"),
4985
5272
  closeLabel: t("cancel"),
4986
5273
  className: COMPACT_DIALOG_CLASS,
4987
- footer: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
4988
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
5274
+ footer: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
5275
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4989
5276
  import_dsh_client_ui_primitives12.Button,
4990
5277
  {
4991
5278
  variant: "outline",
@@ -4994,7 +5281,7 @@ function PortsEditor(props) {
4994
5281
  children: t("cancel")
4995
5282
  }
4996
5283
  ),
4997
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
5284
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4998
5285
  import_dsh_client_ui_primitives12.Button,
4999
5286
  {
5000
5287
  variant: "primary",
@@ -5005,13 +5292,13 @@ function PortsEditor(props) {
5005
5292
  }
5006
5293
  )
5007
5294
  ] }),
5008
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
5295
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
5009
5296
  "div",
5010
5297
  {
5011
5298
  style: { display: "flex", flexDirection: "column", gap: "12px" },
5012
5299
  children: [
5013
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Field, { label: t("containerPort"), htmlFor: portId, children: [
5014
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
5300
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Field, { label: t("containerPort"), htmlFor: portId, children: [
5301
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
5015
5302
  import_dsh_client_ui_primitives12.Input,
5016
5303
  {
5017
5304
  id: portId,
@@ -5027,11 +5314,11 @@ function PortsEditor(props) {
5027
5314
  }
5028
5315
  }
5029
5316
  ),
5030
- port !== "" && containerPort === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: t("invalidPort") }) : null,
5031
- duplicate ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: t("portDuplicate") }) : null
5317
+ port !== "" && containerPort === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: t("invalidPort") }) : null,
5318
+ duplicate ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: t("portDuplicate") }) : null
5032
5319
  ] }),
5033
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Field, { label: t("hostPortOptional"), htmlFor: hostPortId, children: [
5034
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
5320
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Field, { label: t("hostPortOptional"), htmlFor: hostPortId, children: [
5321
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
5035
5322
  import_dsh_client_ui_primitives12.Input,
5036
5323
  {
5037
5324
  id: hostPortId,
@@ -5046,9 +5333,9 @@ function PortsEditor(props) {
5046
5333
  }
5047
5334
  }
5048
5335
  ),
5049
- hostPortInvalid ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: t("invalidHostPort") }) : null
5336
+ hostPortInvalid ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: t("invalidHostPort") }) : null
5050
5337
  ] }),
5051
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Field, { label: t("protocol"), htmlFor: protocolId, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
5338
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Field, { label: t("protocol"), htmlFor: protocolId, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
5052
5339
  "select",
5053
5340
  {
5054
5341
  id: protocolId,
@@ -5056,7 +5343,7 @@ function PortsEditor(props) {
5056
5343
  value: protocol,
5057
5344
  disabled: !canPublish || busy,
5058
5345
  onChange: (event) => setProtocol(event.target.value),
5059
- children: PROTOCOLS.map((candidate) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: candidate, children: candidate }, candidate))
5346
+ children: PROTOCOLS.map((candidate) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("option", { value: candidate, children: candidate }, candidate))
5060
5347
  }
5061
5348
  ) })
5062
5349
  ]
@@ -5072,7 +5359,7 @@ function PortsEditor(props) {
5072
5359
  // src/client/container-card-form.tsx
5073
5360
  var import_dsh_client_ui_primitives13 = require("@deepseek-ai/dsh-client-ui-primitives");
5074
5361
  var import_react13 = require("react");
5075
- var import_jsx_runtime15 = require("react/jsx-runtime");
5362
+ var import_jsx_runtime16 = require("react/jsx-runtime");
5076
5363
  var dialogBody = {
5077
5364
  display: "flex",
5078
5365
  flexDirection: "column",
@@ -5145,14 +5432,14 @@ function ContainerForm(props) {
5145
5432
  ...images.filter((candidate) => candidate.isBase),
5146
5433
  ...images.filter((candidate) => !candidate.isBase)
5147
5434
  ].map((candidate) => candidate.imageId);
5148
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: dialogBody, children: [
5149
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(DialogGroup, { title: t("containerName"), children: [
5150
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
5435
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { style: dialogBody, children: [
5436
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(DialogGroup, { title: t("containerName"), children: [
5437
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5151
5438
  import_dsh_client_ui_primitives13.Input,
5152
5439
  {
5153
5440
  id: nameId,
5154
5441
  className: name2.readOnly ? FIELD_CLASS : void 0,
5155
- icon: name2.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(LockGlyph, {}) : void 0,
5442
+ icon: name2.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(LockGlyph, {}) : void 0,
5156
5443
  value: name2.value,
5157
5444
  readOnly: name2.readOnly,
5158
5445
  disabled: name2.disabled,
@@ -5160,9 +5447,9 @@ function ContainerForm(props) {
5160
5447
  onChange: (event) => name2.onChange?.(event.target.value)
5161
5448
  }
5162
5449
  ),
5163
- name2.error === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: name2.error })
5450
+ name2.error === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { style: { ...hint, margin: 0 }, role: "alert", children: name2.error })
5164
5451
  ] }),
5165
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
5452
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5166
5453
  ImageRow,
5167
5454
  {
5168
5455
  t,
@@ -5173,7 +5460,7 @@ function ContainerForm(props) {
5173
5460
  onChange: onChangeImage
5174
5461
  }
5175
5462
  ),
5176
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogGroup, { title: t("envTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
5463
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DialogGroup, { title: t("envTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5177
5464
  EnvEditor,
5178
5465
  {
5179
5466
  t,
@@ -5185,7 +5472,7 @@ function ContainerForm(props) {
5185
5472
  onNames: reportEnvNames
5186
5473
  }
5187
5474
  ) }),
5188
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogGroup, { title: t("mountsTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
5475
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DialogGroup, { title: t("mountsTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5189
5476
  MountsEditor,
5190
5477
  {
5191
5478
  t,
@@ -5206,7 +5493,7 @@ function ContainerForm(props) {
5206
5493
  )
5207
5494
  }
5208
5495
  ) }),
5209
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogGroup, { title: t("pathsTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
5496
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DialogGroup, { title: t("pathsTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5210
5497
  PathsEditor,
5211
5498
  {
5212
5499
  t,
@@ -5216,7 +5503,7 @@ function ContainerForm(props) {
5216
5503
  onApply: onChangePaths
5217
5504
  }
5218
5505
  ) }),
5219
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogGroup, { title: t("containerSecretsTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
5506
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DialogGroup, { title: t("containerSecretsTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5220
5507
  SecretEnvEditor,
5221
5508
  {
5222
5509
  t,
@@ -5232,7 +5519,7 @@ function ContainerForm(props) {
5232
5519
  onNames: reportSecretEnvNames
5233
5520
  }
5234
5521
  ) }),
5235
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogGroup, { title: t("portsTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
5522
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DialogGroup, { title: t("portsTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5236
5523
  PortsEditor,
5237
5524
  {
5238
5525
  t,
@@ -5249,7 +5536,7 @@ function ContainerForm(props) {
5249
5536
 
5250
5537
  // src/client/container-card-edit-modal.tsx
5251
5538
  var import_dsh_client_ui_primitives14 = require("@deepseek-ai/dsh-client-ui-primitives");
5252
- var import_jsx_runtime16 = require("react/jsx-runtime");
5539
+ var import_jsx_runtime17 = require("react/jsx-runtime");
5253
5540
  function ContainerEditModal(props) {
5254
5541
  const {
5255
5542
  t,
@@ -5282,7 +5569,7 @@ function ContainerEditModal(props) {
5282
5569
  onClose
5283
5570
  } = props;
5284
5571
  const applyLabel = rebuilds ? t("recreateContainer") : t("updateContainer");
5285
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5572
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
5286
5573
  ContainerDialog,
5287
5574
  {
5288
5575
  t,
@@ -5291,8 +5578,8 @@ function ContainerEditModal(props) {
5291
5578
  onClose,
5292
5579
  marker,
5293
5580
  markerError,
5294
- actions: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
5295
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5581
+ actions: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
5582
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
5296
5583
  import_dsh_client_ui_primitives14.Button,
5297
5584
  {
5298
5585
  variant: "ghost",
@@ -5302,7 +5589,7 @@ function ContainerEditModal(props) {
5302
5589
  children: t("discard")
5303
5590
  }
5304
5591
  ),
5305
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5592
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
5306
5593
  ConfirmButton,
5307
5594
  {
5308
5595
  t,
@@ -5324,7 +5611,7 @@ function ContainerEditModal(props) {
5324
5611
  }
5325
5612
  )
5326
5613
  ] }),
5327
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5614
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
5328
5615
  ContainerForm,
5329
5616
  {
5330
5617
  t,
@@ -5375,8 +5662,7 @@ var import_react15 = require("react");
5375
5662
  // src/client/container-card-create-modal.tsx
5376
5663
  var import_dsh_client_ui_primitives15 = require("@deepseek-ai/dsh-client-ui-primitives");
5377
5664
  var import_react14 = require("react");
5378
- var import_jsx_runtime17 = require("react/jsx-runtime");
5379
- var DEFAULT_CONTAINER_NAME = "default";
5665
+ var import_jsx_runtime18 = require("react/jsx-runtime");
5380
5666
  function initialMounts(workspace) {
5381
5667
  return [
5382
5668
  {
@@ -5443,11 +5729,11 @@ function CreateContainerModal(props) {
5443
5729
  setConfirmClose(false);
5444
5730
  }, [open, workspace, defaultImage, defaultEnv]);
5445
5731
  const pristine = initialConfig(workspace, defaultImage, defaultEnv);
5446
- const reservedName = name2 === DEFAULT_CONTAINER_NAME;
5732
+ const reservedName = reservedContainerName(name2);
5447
5733
  const nameTaken = existing.includes(name2);
5448
5734
  const namePatternOk = namePattern.test(name2);
5449
- const nameValid = namePatternOk && !reservedName && !nameTaken;
5450
- const nameError = name2 === "" ? "" : reservedName ? t("containerNameReserved") : nameTaken ? t("containerNameTaken") : namePatternOk ? "" : t("invalidContainerName");
5735
+ const nameValid = namePatternOk && reservedName === void 0 && !nameTaken;
5736
+ const nameError = name2 === "" ? "" : reservedName === DEFAULT_CONTAINER_NAME ? t("containerNameReserved") : reservedName === PTC_CONTAINER_NAME ? t("containerNamePtcReserved") : nameTaken ? t("containerNameTaken") : namePatternOk ? "" : t("invalidContainerName");
5451
5737
  const canCreate = !named || nameValid;
5452
5738
  const dirty = name2 !== "" || !configsEqual(draft, pristine);
5453
5739
  const requestClose = () => {
@@ -5472,8 +5758,8 @@ function CreateContainerModal(props) {
5472
5758
  ports: [...draft.ports]
5473
5759
  });
5474
5760
  };
5475
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
5476
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
5761
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
5762
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5477
5763
  ContainerDialog,
5478
5764
  {
5479
5765
  t,
@@ -5482,8 +5768,8 @@ function CreateContainerModal(props) {
5482
5768
  onClose: requestClose,
5483
5769
  marker: blockingError === void 0 ? void 0 : t(blockingError.key, blockingError.params),
5484
5770
  markerError: blockingError !== void 0,
5485
- actions: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
5486
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
5771
+ actions: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
5772
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5487
5773
  import_dsh_client_ui_primitives15.Button,
5488
5774
  {
5489
5775
  variant: "outline",
@@ -5492,7 +5778,7 @@ function CreateContainerModal(props) {
5492
5778
  children: t("cancel")
5493
5779
  }
5494
5780
  ),
5495
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
5781
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5496
5782
  import_dsh_client_ui_primitives15.Button,
5497
5783
  {
5498
5784
  variant: "primary",
@@ -5503,7 +5789,7 @@ function CreateContainerModal(props) {
5503
5789
  }
5504
5790
  )
5505
5791
  ] }),
5506
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
5792
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5507
5793
  ContainerForm,
5508
5794
  {
5509
5795
  t,
@@ -5551,7 +5837,7 @@ function CreateContainerModal(props) {
5551
5837
  )
5552
5838
  }
5553
5839
  ),
5554
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
5840
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5555
5841
  DiscardChangesModal,
5556
5842
  {
5557
5843
  t,
@@ -5564,19 +5850,19 @@ function CreateContainerModal(props) {
5564
5850
  }
5565
5851
 
5566
5852
  // src/client/container-card-row.tsx
5567
- var import_jsx_runtime18 = require("react/jsx-runtime");
5853
+ var import_jsx_runtime19 = require("react/jsx-runtime");
5568
5854
  function FieldGroup(props) {
5569
5855
  const { label, children } = props;
5570
5856
  if (children === null || children === void 0 || children === false) {
5571
5857
  return null;
5572
5858
  }
5573
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: ROW_LIST_CLASS, style: fieldGroup, children: [
5574
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { style: fieldGroupLabel, children: label }),
5859
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: ROW_LIST_CLASS, style: fieldGroup, children: [
5860
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { style: fieldGroupLabel, children: label }),
5575
5861
  children
5576
5862
  ] });
5577
5863
  }
5578
5864
  function NoEntries(props) {
5579
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { style: missingValue, children: props.t("valueMissing") });
5865
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { style: missingValue, children: props.t("valueMissing") });
5580
5866
  }
5581
5867
  function ContainerRow(props) {
5582
5868
  const {
@@ -5674,20 +5960,20 @@ function ContainerRow(props) {
5674
5960
  setStaged(server);
5675
5961
  }
5676
5962
  };
5677
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
5678
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: last ? cardBlockRow : { ...cardBlockRow, ...rowDivider }, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: blockWrapper, children: [
5679
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: actionRow, children: [
5680
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: rowMain, children: [
5681
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h4", { style: { ...cardTitle, overflowWrap: "anywhere" }, children: container.containerName }),
5682
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5963
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
5964
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { style: last ? cardBlockRow : { ...cardBlockRow, ...rowDivider }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: blockWrapper, children: [
5965
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: actionRow, children: [
5966
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: rowMain, children: [
5967
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h4", { style: { ...cardTitle, overflowWrap: "anywhere" }, children: container.containerName }),
5968
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
5683
5969
  StatusChip,
5684
5970
  {
5685
5971
  tone: containerStatusTone(container.status),
5686
5972
  label: containerStatusLabel(t, container.status)
5687
5973
  }
5688
5974
  ),
5689
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { style: rowMeta, title: container.createdAt, children: relativeTimeLabel(container.createdAt, locale) }),
5690
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5975
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { style: rowMeta, title: container.createdAt, children: relativeTimeLabel(container.createdAt, locale) }),
5976
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
5691
5977
  CopyButton,
5692
5978
  {
5693
5979
  t,
@@ -5696,8 +5982,8 @@ function ContainerRow(props) {
5696
5982
  }
5697
5983
  )
5698
5984
  ] }),
5699
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: rowActions, children: [
5700
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5985
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: rowActions, children: [
5986
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
5701
5987
  import_dsh_client_ui_primitives16.Button,
5702
5988
  {
5703
5989
  variant: "outline",
@@ -5707,7 +5993,7 @@ function ContainerRow(props) {
5707
5993
  children: t("edit")
5708
5994
  }
5709
5995
  ),
5710
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5996
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
5711
5997
  ConfirmButton,
5712
5998
  {
5713
5999
  t,
@@ -5728,7 +6014,7 @@ function ContainerRow(props) {
5728
6014
  )
5729
6015
  }
5730
6016
  ),
5731
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6017
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
5732
6018
  ConfirmButton,
5733
6019
  {
5734
6020
  t,
@@ -5750,9 +6036,9 @@ function ContainerRow(props) {
5750
6036
  )
5751
6037
  ] })
5752
6038
  ] }),
5753
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: blockFields, children: [
5754
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ImageRow, { t, mode: "view", image: container.imageId }),
5755
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FieldGroup, { label: t("envTitle"), children: envEntries.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(NoEntries, { t }) : envEntries.map(([name2, value]) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6039
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: blockFields, children: [
6040
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ImageRow, { t, mode: "view", image: container.imageId }),
6041
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FieldGroup, { label: t("envTitle"), children: envEntries.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(NoEntries, { t }) : envEntries.map(([name2, value]) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
5756
6042
  EnvRow,
5757
6043
  {
5758
6044
  t,
@@ -5762,12 +6048,12 @@ function ContainerRow(props) {
5762
6048
  },
5763
6049
  name2
5764
6050
  )) }),
5765
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FieldGroup, { label: t("mountsTitle"), children: mounts.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(NoEntries, { t }) : mounts.map(({ mount, index }) => (
6051
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FieldGroup, { label: t("mountsTitle"), children: mounts.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(NoEntries, { t }) : mounts.map(({ mount, index }) => (
5766
6052
  // Mounts carry no id and duplicates are legal, so the
5767
6053
  // positional index is the only collision-free key here. The
5768
6054
  // index also names the snapshot view the row reads its
5769
6055
  // destination from.
5770
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6056
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
5771
6057
  MountRow,
5772
6058
  {
5773
6059
  t,
@@ -5778,12 +6064,12 @@ function ContainerRow(props) {
5778
6064
  index
5779
6065
  )
5780
6066
  )) }),
5781
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FieldGroup, { label: t("pathsTitle"), children: container.paths.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(NoEntries, { t }) : container.paths.map((path, index) => (
6067
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FieldGroup, { label: t("pathsTitle"), children: container.paths.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(NoEntries, { t }) : container.paths.map((path, index) => (
5782
6068
  // A PATH list carries no id and duplicates are legal, so the
5783
6069
  // positional index is the only collision-free key here.
5784
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PathRow, { t, mode: "view", path }, index)
6070
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(PathRow, { t, mode: "view", path }, index)
5785
6071
  )) }),
5786
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FieldGroup, { label: t("containerSecretsTitle"), children: secretEnvEntries.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(NoEntries, { t }) : secretEnvEntries.map(([name2, value]) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6072
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FieldGroup, { label: t("containerSecretsTitle"), children: secretEnvEntries.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(NoEntries, { t }) : secretEnvEntries.map(([name2, value]) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
5787
6073
  SecretEnvRow,
5788
6074
  {
5789
6075
  t,
@@ -5793,7 +6079,7 @@ function ContainerRow(props) {
5793
6079
  },
5794
6080
  name2
5795
6081
  )) }),
5796
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FieldGroup, { label: t("portsTitle"), children: container.publishedPorts.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(NoEntries, { t }) : container.publishedPorts.map((port) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6082
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FieldGroup, { label: t("portsTitle"), children: container.publishedPorts.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(NoEntries, { t }) : container.publishedPorts.map((port) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
5797
6083
  PortRow,
5798
6084
  {
5799
6085
  t,
@@ -5806,7 +6092,7 @@ function ContainerRow(props) {
5806
6092
  )) })
5807
6093
  ] })
5808
6094
  ] }) }),
5809
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6095
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
5810
6096
  ContainerEditModal,
5811
6097
  {
5812
6098
  t,
@@ -5845,7 +6131,7 @@ function ContainerRow(props) {
5845
6131
  // src/client/container-card-workspace.tsx
5846
6132
  var import_dsh_client_ui_primitives17 = require("@deepseek-ai/dsh-client-ui-primitives");
5847
6133
  var import_react16 = require("react");
5848
- var import_jsx_runtime19 = require("react/jsx-runtime");
6134
+ var import_jsx_runtime20 = require("react/jsx-runtime");
5849
6135
  function CopyWorkspaceId(props) {
5850
6136
  const { t, id } = props;
5851
6137
  const [copied, setCopied] = (0, import_react16.useState)(false);
@@ -5865,12 +6151,12 @@ function CopyWorkspaceId(props) {
5865
6151
  []
5866
6152
  );
5867
6153
  const label = copied ? t("copied") : t("copyWorkspaceId");
5868
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_dsh_client_ui_primitives17.Tooltip, { label, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
6154
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_dsh_client_ui_primitives17.Tooltip, { label, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5869
6155
  import_dsh_client_ui_primitives17.Button,
5870
6156
  {
5871
6157
  variant: "ghost",
5872
6158
  size: "sm",
5873
- icon: copied ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_dsh_client_ui_primitives17.IconCheckOutlineRegular, {}) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_dsh_client_ui_primitives17.IconCopyOutlineRegular, {}),
6159
+ icon: copied ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_dsh_client_ui_primitives17.IconCheckOutlineRegular, {}) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_dsh_client_ui_primitives17.IconCopyOutlineRegular, {}),
5874
6160
  "aria-label": label,
5875
6161
  disabled: id === "",
5876
6162
  onClick: copy
@@ -5916,16 +6202,16 @@ function WorkspaceSection(props) {
5916
6202
  (container) => container.status === "running"
5917
6203
  ).length;
5918
6204
  const stopped = containers.length - running;
5919
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
6205
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
5920
6206
  "section",
5921
6207
  {
5922
6208
  style: card,
5923
6209
  className: TABLE_CARD_CLASS,
5924
6210
  "aria-labelledby": headingId,
5925
6211
  children: [
5926
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: hasContainer ? { ...actionRow, ...headerRule } : actionRow, children: [
5927
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: rowMain, children: [
5928
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
6212
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: hasContainer ? { ...actionRow, ...headerRule } : actionRow, children: [
6213
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: rowMain, children: [
6214
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5929
6215
  "h3",
5930
6216
  {
5931
6217
  id: headingId,
@@ -5937,8 +6223,8 @@ function WorkspaceSection(props) {
5937
6223
  children: workspace.projectName
5938
6224
  }
5939
6225
  ),
5940
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CopyWorkspaceId, { t, id: workspace.workspaceSlug }),
5941
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
6226
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CopyWorkspaceId, { t, id: workspace.workspaceSlug }),
6227
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
5942
6228
  "span",
5943
6229
  {
5944
6230
  style: hasContainer ? workspaceStatus : {
@@ -5953,13 +6239,13 @@ function WorkspaceSection(props) {
5953
6239
  "countRunningContainerMany"
5954
6240
  ) : null,
5955
6241
  running > 0 && stopped > 0 ? " \xB7 " : null,
5956
- stopped > 0 ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { style: statusMuted, children: countLabel(
6242
+ stopped > 0 ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { style: statusMuted, children: countLabel(
5957
6243
  t,
5958
6244
  stopped,
5959
6245
  "countStoppedContainerOne",
5960
6246
  "countStoppedContainerMany"
5961
6247
  ) }) : null,
5962
- hasContainer ? null : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { style: statusMuted, children: countLabel(
6248
+ hasContainer ? null : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { style: statusMuted, children: countLabel(
5963
6249
  t,
5964
6250
  0,
5965
6251
  "countContainerOne",
@@ -5969,8 +6255,8 @@ function WorkspaceSection(props) {
5969
6255
  }
5970
6256
  )
5971
6257
  ] }),
5972
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: rowActions, children: [
5973
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
6258
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: rowActions, children: [
6259
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5974
6260
  import_dsh_client_ui_primitives17.Button,
5975
6261
  {
5976
6262
  variant: "primary",
@@ -5980,7 +6266,7 @@ function WorkspaceSection(props) {
5980
6266
  children: hasContainer ? t("addContainer") : t("createContainer")
5981
6267
  }
5982
6268
  ),
5983
- hasContainer ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
6269
+ hasContainer ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5984
6270
  import_dsh_client_ui_primitives17.Button,
5985
6271
  {
5986
6272
  variant: "outline",
@@ -5996,7 +6282,7 @@ function WorkspaceSection(props) {
5996
6282
  ) : null
5997
6283
  ] })
5998
6284
  ] }),
5999
- hasContainer ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: TABLE_CARD_CONTENT_CLASS, style: cardContent, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { style: cardList, children: containers.map((container, index) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
6285
+ hasContainer ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: TABLE_CARD_CONTENT_CLASS, style: cardContent, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: cardList, children: containers.map((container, index) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6000
6286
  ContainerRow,
6001
6287
  {
6002
6288
  t,
@@ -6019,7 +6305,7 @@ function WorkspaceSection(props) {
6019
6305
  },
6020
6306
  container.containerName
6021
6307
  )) }) }) : null,
6022
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
6308
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6023
6309
  import_dsh_client_ui_primitives17.RiskConfirmation,
6024
6310
  {
6025
6311
  open: removeWorkspaceOpen,
@@ -6045,7 +6331,7 @@ function WorkspaceSection(props) {
6045
6331
  }
6046
6332
  }
6047
6333
  ),
6048
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
6334
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6049
6335
  CreateContainerModal,
6050
6336
  {
6051
6337
  t,
@@ -6119,7 +6405,7 @@ function installTabsStyles(ctx) {
6119
6405
  // src/client/ContainerCard.tsx
6120
6406
  var import_dsh_client_ui_primitives18 = require("@deepseek-ai/dsh-client-ui-primitives");
6121
6407
  var import_react17 = require("react");
6122
- var import_jsx_runtime20 = require("react/jsx-runtime");
6408
+ var import_jsx_runtime21 = require("react/jsx-runtime");
6123
6409
  function newestContainerAt(containers) {
6124
6410
  return containers.reduce((newest, container) => {
6125
6411
  const at2 = Date.parse(container.createdAt);
@@ -6171,19 +6457,19 @@ function ContainerCard(props) {
6171
6457
  ].join(" \xB7 ");
6172
6458
  }
6173
6459
  if (state.loadState === "loading") {
6174
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6460
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6175
6461
  "div",
6176
6462
  {
6177
6463
  style: { padding: "8px 0", fontSize: "13px", opacity: 0.8 },
6178
6464
  role: "status",
6179
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { style: { margin: 0 }, children: t("loading") })
6465
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { style: { margin: 0 }, children: t("loading") })
6180
6466
  }
6181
6467
  );
6182
6468
  }
6183
6469
  if (!state.available) {
6184
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: { padding: "8px 0", fontSize: "13px", opacity: 0.8 }, children: [
6185
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { style: { margin: 0 }, role: "alert", children: t("unavailable") }),
6186
- state.notice === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
6470
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { style: { padding: "8px 0", fontSize: "13px", opacity: 0.8 }, children: [
6471
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { style: { margin: 0 }, role: "alert", children: t("unavailable") }),
6472
+ state.notice === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
6187
6473
  "p",
6188
6474
  {
6189
6475
  style: { margin: "4px 0 0" },
@@ -6195,7 +6481,7 @@ function ContainerCard(props) {
6195
6481
  ]
6196
6482
  }
6197
6483
  ),
6198
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: { marginTop: "8px" }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6484
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: { marginTop: "8px" }, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6199
6485
  import_dsh_client_ui_primitives18.Button,
6200
6486
  {
6201
6487
  variant: "outline",
@@ -6241,13 +6527,13 @@ function ContainerCard(props) {
6241
6527
  const runningContainers = state.containers.filter(
6242
6528
  (container) => container.status === "running"
6243
6529
  ).length;
6244
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: pageColumn, children: [
6245
- state.notice === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: banner, role: state.noticeIsError ? "alert" : "status", children: [
6530
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { style: pageColumn, children: [
6531
+ state.notice === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { style: banner, role: state.noticeIsError ? "alert" : "status", children: [
6246
6532
  t("notice"),
6247
6533
  ": ",
6248
6534
  state.notice
6249
6535
  ] }),
6250
- state.versionState === "ok" ? null : /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
6536
+ state.versionState === "ok" ? null : /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
6251
6537
  "div",
6252
6538
  {
6253
6539
  style: {
@@ -6258,7 +6544,7 @@ function ContainerCard(props) {
6258
6544
  },
6259
6545
  role: state.versionState === "major-mismatch" ? "alert" : "status",
6260
6546
  children: [
6261
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6547
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6262
6548
  StatusChip,
6263
6549
  {
6264
6550
  tone: state.versionState === "major-mismatch" ? "error" : "warn",
@@ -6267,14 +6553,14 @@ function ContainerCard(props) {
6267
6553
  )
6268
6554
  }
6269
6555
  ),
6270
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: t(
6556
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: t(
6271
6557
  state.versionState === "major-mismatch" ? "versionMismatchMajor" : "versionMismatchMinor"
6272
6558
  ) })
6273
6559
  ]
6274
6560
  }
6275
6561
  ),
6276
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: statusStrip, role: "group", "aria-label": t("statusOverview"), children: [
6277
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6562
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { style: statusStrip, role: "group", "aria-label": t("statusOverview"), children: [
6563
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6278
6564
  StatusChip,
6279
6565
  {
6280
6566
  tone: "muted",
@@ -6286,7 +6572,7 @@ function ContainerCard(props) {
6286
6572
  )
6287
6573
  }
6288
6574
  ),
6289
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6575
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6290
6576
  StatusChip,
6291
6577
  {
6292
6578
  tone: "muted",
@@ -6298,16 +6584,16 @@ function ContainerCard(props) {
6298
6584
  )
6299
6585
  }
6300
6586
  ),
6301
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6587
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6302
6588
  StatusChip,
6303
6589
  {
6304
6590
  tone: orchestratorChip.tone,
6305
6591
  label: orchestratorChip.label
6306
6592
  }
6307
6593
  ),
6308
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StatusChip, { tone: gatewayChip.tone, label: gatewayChip.label })
6594
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(StatusChip, { tone: gatewayChip.tone, label: gatewayChip.label })
6309
6595
  ] }),
6310
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6596
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6311
6597
  import_dsh_client_ui_primitives18.SegmentedTabs,
6312
6598
  {
6313
6599
  label: t("settingsTabs"),
@@ -6348,7 +6634,7 @@ function ContainerCard(props) {
6348
6634
  ]
6349
6635
  }
6350
6636
  ),
6351
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6637
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6352
6638
  "div",
6353
6639
  {
6354
6640
  id: panelId("workspaces"),
@@ -6356,7 +6642,7 @@ function ContainerCard(props) {
6356
6642
  "aria-labelledby": tabId("workspaces"),
6357
6643
  hidden: tab !== "workspaces",
6358
6644
  style: tab === "workspaces" ? tabPanel : void 0,
6359
- children: noWorkspace ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { style: hint, children: t("noWorkspaces") }) : workspaceRows.map(({ workspace, containers }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6645
+ children: noWorkspace ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { style: hint, children: t("noWorkspaces") }) : workspaceRows.map(({ workspace, containers }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6360
6646
  WorkspaceSection,
6361
6647
  {
6362
6648
  t,
@@ -6386,7 +6672,7 @@ function ContainerCard(props) {
6386
6672
  ))
6387
6673
  }
6388
6674
  ),
6389
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6675
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6390
6676
  "div",
6391
6677
  {
6392
6678
  id: panelId("images"),
@@ -6394,7 +6680,7 @@ function ContainerCard(props) {
6394
6680
  "aria-labelledby": tabId("images"),
6395
6681
  hidden: tab !== "images",
6396
6682
  style: tab === "images" ? tabPanel : void 0,
6397
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6683
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6398
6684
  ImagesSection,
6399
6685
  {
6400
6686
  t,
@@ -6409,12 +6695,13 @@ function ContainerCard(props) {
6409
6695
  onPullBaseImage: props.pullBaseImage,
6410
6696
  onRemoveImage: props.removeImage,
6411
6697
  onRebuildImage: props.rebuildImage,
6698
+ onBuildPtcImage: props.buildPtcImage,
6412
6699
  onSetDefaultImage: props.setDefaultImage
6413
6700
  }
6414
6701
  )
6415
6702
  }
6416
6703
  ),
6417
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6704
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6418
6705
  "div",
6419
6706
  {
6420
6707
  id: panelId("storage"),
@@ -6422,7 +6709,7 @@ function ContainerCard(props) {
6422
6709
  "aria-labelledby": tabId("storage"),
6423
6710
  hidden: tab !== "storage",
6424
6711
  style: tab === "storage" ? tabPanel : void 0,
6425
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6712
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6426
6713
  StorageSection,
6427
6714
  {
6428
6715
  t,
@@ -6442,7 +6729,7 @@ function ContainerCard(props) {
6442
6729
  )
6443
6730
  }
6444
6731
  ),
6445
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6732
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6446
6733
  "div",
6447
6734
  {
6448
6735
  id: panelId("defaults"),
@@ -6450,7 +6737,7 @@ function ContainerCard(props) {
6450
6737
  "aria-labelledby": tabId("defaults"),
6451
6738
  hidden: tab !== "defaults",
6452
6739
  style: tab === "defaults" ? tabPanel : void 0,
6453
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6740
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6454
6741
  DefaultsSection,
6455
6742
  {
6456
6743
  t,
@@ -6468,7 +6755,7 @@ function ContainerCard(props) {
6468
6755
  )
6469
6756
  }
6470
6757
  ),
6471
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6758
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6472
6759
  "div",
6473
6760
  {
6474
6761
  id: panelId("status"),
@@ -6476,7 +6763,7 @@ function ContainerCard(props) {
6476
6763
  "aria-labelledby": tabId("status"),
6477
6764
  hidden: tab !== "status",
6478
6765
  style: tab === "status" ? tabPanel : void 0,
6479
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6766
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6480
6767
  StatusSection,
6481
6768
  {
6482
6769
  t,
@@ -6491,12 +6778,17 @@ function ContainerCard(props) {
6491
6778
  gatewayState: state.gatewayState,
6492
6779
  gatewayVersion: state.gatewayVersion,
6493
6780
  gatewayCommit: state.gatewayCommit,
6494
- gatewayVersionState: state.gatewayVersionState
6781
+ gatewayVersionState: state.gatewayVersionState,
6782
+ ptc: state.ptc,
6783
+ locale: state.locale,
6784
+ pendingActions: state.pendingActions,
6785
+ onRecreatePtc: props.recreatePtc,
6786
+ onRemovePtc: props.removePtc
6495
6787
  }
6496
6788
  )
6497
6789
  }
6498
6790
  ),
6499
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: actionRow, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6791
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: actionRow, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6500
6792
  import_dsh_client_ui_primitives18.Button,
6501
6793
  {
6502
6794
  variant: "outline",
@@ -6511,15 +6803,15 @@ function ContainerCard(props) {
6511
6803
 
6512
6804
  // src/client/container-card-toast.tsx
6513
6805
  var import_dsh_client_ui_primitives19 = require("@deepseek-ai/dsh-client-ui-primitives");
6514
- var import_jsx_runtime21 = require("react/jsx-runtime");
6806
+ var import_jsx_runtime22 = require("react/jsx-runtime");
6515
6807
  function ContainerCardToast(props) {
6516
6808
  const toast = props.useContainerCard((state) => state.toast);
6517
6809
  if (toast === null) return null;
6518
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6810
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6519
6811
  import_dsh_client_ui_primitives19.Toast,
6520
6812
  {
6521
6813
  text: toast.text,
6522
- icon: toast.kind === "error" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_dsh_client_ui_primitives19.IconWarningOutlineRegular, {}) : void 0,
6814
+ icon: toast.kind === "error" ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_dsh_client_ui_primitives19.IconWarningOutlineRegular, {}) : void 0,
6523
6815
  onDone: props.dismissToast
6524
6816
  },
6525
6817
  `podman-card-toast-${String(toast.seq)}`
@@ -16127,7 +16419,7 @@ function base64ToBytes(data) {
16127
16419
  }
16128
16420
 
16129
16421
  // src/client/podman-terminal.tsx
16130
- var import_jsx_runtime22 = require("react/jsx-runtime");
16422
+ var import_jsx_runtime23 = require("react/jsx-runtime");
16131
16423
  var TEXT_ENCODER = new TextEncoder();
16132
16424
  var XTERM_STYLE_ATTRIBUTE = "data-dsh-podman-xterm";
16133
16425
  var XTERM_CLASS = "dsh-podman-xterm";
@@ -16166,9 +16458,9 @@ function readTerminalTheme() {
16166
16458
  };
16167
16459
  }
16168
16460
  function ContainerField(props) {
16169
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
16170
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { style: fieldLabel, children: props.label }),
16171
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
16461
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
16462
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { style: fieldLabel, children: props.label }),
16463
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
16172
16464
  "select",
16173
16465
  {
16174
16466
  style: props.selectStyle ?? imageSelect,
@@ -16179,8 +16471,8 @@ function ContainerField(props) {
16179
16471
  props.onContainer(event.target.value);
16180
16472
  },
16181
16473
  children: [
16182
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: "", children: props.defaultLabel }),
16183
- containerOptions(props.containers, props.workspaceSlug).map((name2) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: name2, children: name2 }, name2))
16474
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: "", children: props.defaultLabel }),
16475
+ containerOptions(props.containers, props.workspaceSlug).map((name2) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: name2, children: name2 }, name2))
16184
16476
  ]
16185
16477
  }
16186
16478
  )
@@ -16448,9 +16740,9 @@ function PodmanTerminal(props) {
16448
16740
  }
16449
16741
  const idle = status.kind === "idle";
16450
16742
  const ended = status.kind === "exited" || status.kind === "error";
16451
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("section", { style: ROOT_STYLE, "data-dsh-podman-terminal": true, children: [
16452
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { style: TOOLBAR_STYLE, children: [
16453
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
16743
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("section", { style: ROOT_STYLE, "data-dsh-podman-terminal": true, children: [
16744
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { style: TOOLBAR_STYLE, children: [
16745
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
16454
16746
  ContainerField,
16455
16747
  {
16456
16748
  containers: state.containers,
@@ -16465,8 +16757,8 @@ function PodmanTerminal(props) {
16465
16757
  }
16466
16758
  }
16467
16759
  ),
16468
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { style: fieldLabel, children: t("terminalShell") }),
16469
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
16760
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { style: fieldLabel, children: t("terminalShell") }),
16761
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
16470
16762
  "select",
16471
16763
  {
16472
16764
  style: imageSelect,
@@ -16476,10 +16768,10 @@ function PodmanTerminal(props) {
16476
16768
  onChange: (event) => {
16477
16769
  setShell(event.target.value);
16478
16770
  },
16479
- children: shellList.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: "", children: unknownWorkspace ? "" : shells.phase === "loading" ? t("terminalLoading") : t("terminalNoShells") }) : shellList.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: entry.path, children: entry.name }, entry.path))
16771
+ children: shellList.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: "", children: unknownWorkspace ? "" : shells.phase === "loading" ? t("terminalLoading") : t("terminalNoShells") }) : shellList.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: entry.path, children: entry.name }, entry.path))
16480
16772
  }
16481
16773
  ),
16482
- (idle || ended) && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
16774
+ (idle || ended) && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
16483
16775
  import_dsh_client_ui_primitives20.Button,
16484
16776
  {
16485
16777
  variant: "outline",
@@ -16491,13 +16783,13 @@ function PodmanTerminal(props) {
16491
16783
  children: idle ? t("terminalConnect") : t("terminalReconnect")
16492
16784
  }
16493
16785
  ),
16494
- statusLabel === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { style: STATUS_STYLE, role: "status", children: statusLabel }),
16495
- title === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { style: TITLE_STYLE, children: title })
16786
+ statusLabel === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { style: STATUS_STYLE, role: "status", children: statusLabel }),
16787
+ title === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { style: TITLE_STYLE, children: title })
16496
16788
  ] }),
16497
- state.workspaces.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { style: ERROR_STYLE, role: "status", children: state.busy ? t("terminalLoading") : t("unavailable") }),
16498
- target.phase === "failed" && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { style: ERROR_STYLE, role: "alert", children: target.message }),
16499
- shells.phase === "failed" && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { style: ERROR_STYLE, role: "alert", children: t("terminalShellsFailed", { message: shells.message }) }),
16500
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { ref: node, className: XTERM_CLASS, style: SCREEN_STYLE })
16789
+ state.workspaces.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { style: ERROR_STYLE, role: "status", children: state.busy ? t("terminalLoading") : t("unavailable") }),
16790
+ target.phase === "failed" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { style: ERROR_STYLE, role: "alert", children: target.message }),
16791
+ shells.phase === "failed" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { style: ERROR_STYLE, role: "alert", children: t("terminalShellsFailed", { message: shells.message }) }),
16792
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { ref: node, className: XTERM_CLASS, style: SCREEN_STYLE })
16501
16793
  ] });
16502
16794
  }
16503
16795
  var ROOT_STYLE = {
@@ -16609,7 +16901,7 @@ function writeTerminalTarget(target, storage) {
16609
16901
  }
16610
16902
 
16611
16903
  // src/client/podman-terminal-guide.tsx
16612
- var import_jsx_runtime23 = require("react/jsx-runtime");
16904
+ var import_jsx_runtime24 = require("react/jsx-runtime");
16613
16905
  function PodmanTerminalGuide(props) {
16614
16906
  const { t, sessionId } = props;
16615
16907
  const { tab } = props.useTabInfo();
@@ -16699,18 +16991,18 @@ function PodmanTerminalGuide(props) {
16699
16991
  }, [workspace, container, sessionId]);
16700
16992
  const shellList = shells.phase === "ready" ? shells.shells : [];
16701
16993
  const ready = !unknownWorkspace && container !== void 0 && shell !== void 0 && shellList.length > 0;
16702
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { style: CARD_STYLE, "data-sidebar-right-guide-entry": props.kind, children: [
16703
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { style: HEADER_STYLE, children: [
16704
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { style: ICON_STYLE, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_dsh_client_ui_primitives21.PluginArtworkTerminal, { size: 22 }) }),
16705
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { style: TEXT_STYLE, children: [
16706
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { style: TITLE_STYLE2, children: props.title }),
16707
- props.description === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { style: DESCRIPTION_STYLE, children: props.description })
16994
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { style: CARD_STYLE, "data-sidebar-right-guide-entry": props.kind, children: [
16995
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { style: HEADER_STYLE, children: [
16996
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { style: ICON_STYLE, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_dsh_client_ui_primitives21.PluginArtworkTerminal, { size: 22 }) }),
16997
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { style: TEXT_STYLE, children: [
16998
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { style: TITLE_STYLE2, children: props.title }),
16999
+ props.description === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { style: DESCRIPTION_STYLE, children: props.description })
16708
17000
  ] })
16709
17001
  ] }),
16710
- state.workspaces.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { style: hint, role: "status", children: state.busy ? t("terminalLoading") : t("unavailable") }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
16711
- target.phase === "failed" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { style: hint, role: "alert", children: target.message }),
16712
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { style: FIELDS_STYLE, children: [
16713
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
17002
+ state.workspaces.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { style: hint, role: "status", children: state.busy ? t("terminalLoading") : t("unavailable") }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
17003
+ target.phase === "failed" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { style: hint, role: "alert", children: target.message }),
17004
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { style: FIELDS_STYLE, children: [
17005
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
16714
17006
  ContainerField,
16715
17007
  {
16716
17008
  containers: state.containers,
@@ -16726,8 +17018,8 @@ function PodmanTerminalGuide(props) {
16726
17018
  }
16727
17019
  }
16728
17020
  ),
16729
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { style: fieldLabel, children: t("terminalShell") }),
16730
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
17021
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { style: fieldLabel, children: t("terminalShell") }),
17022
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
16731
17023
  "select",
16732
17024
  {
16733
17025
  style: fieldSelect,
@@ -16737,14 +17029,14 @@ function PodmanTerminalGuide(props) {
16737
17029
  onChange: (event) => {
16738
17030
  setShell(event.target.value);
16739
17031
  },
16740
- children: shellList.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: "", children: unknownWorkspace ? "" : shells.phase === "loading" ? t("terminalLoading") : t("terminalNoShells") }) : shellList.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: entry.path, children: entry.name }, entry.path))
17032
+ children: shellList.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("option", { value: "", children: unknownWorkspace ? "" : shells.phase === "loading" ? t("terminalLoading") : t("terminalNoShells") }) : shellList.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("option", { value: entry.path, children: entry.name }, entry.path))
16741
17033
  }
16742
17034
  )
16743
17035
  ] }),
16744
- !unknownWorkspace && shells.phase === "failed" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { style: hint, role: "alert", children: t("terminalShellsFailed", { message: shells.message }) }),
16745
- !unknownWorkspace && shells.phase === "loading" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { style: hint, role: "status", children: t("terminalLoading") }),
16746
- !unknownWorkspace && shells.phase === "ready" && shellList.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { style: hint, role: "status", children: t("terminalNoShells") }),
16747
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { style: ACTIONS_STYLE, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
17036
+ !unknownWorkspace && shells.phase === "failed" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { style: hint, role: "alert", children: t("terminalShellsFailed", { message: shells.message }) }),
17037
+ !unknownWorkspace && shells.phase === "loading" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { style: hint, role: "status", children: t("terminalLoading") }),
17038
+ !unknownWorkspace && shells.phase === "ready" && shellList.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { style: hint, role: "status", children: t("terminalNoShells") }),
17039
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { style: ACTIONS_STYLE, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
16748
17040
  import_dsh_client_ui_primitives21.Button,
16749
17041
  {
16750
17042
  variant: "primary",
@@ -16831,7 +17123,7 @@ var ACTIONS_STYLE = {
16831
17123
 
16832
17124
  // src/client/podman-terminal-title.tsx
16833
17125
  var import_react20 = require("react");
16834
- var import_jsx_runtime24 = require("react/jsx-runtime");
17126
+ var import_jsx_runtime25 = require("react/jsx-runtime");
16835
17127
  function PodmanTerminalTitle(props) {
16836
17128
  const { tab } = props.useTabInfo();
16837
17129
  const params = tab.navigation.params;
@@ -16841,13 +17133,13 @@ function PodmanTerminalTitle(props) {
16841
17133
  subscribeTerminalTitles,
16842
17134
  () => terminalTitle(key) ?? fallback
16843
17135
  );
16844
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { style: CHIP_STYLE, children: [
16845
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TerminalGlyph, {}),
16846
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { style: TITLE_STYLE3, children: title })
17136
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { style: CHIP_STYLE, children: [
17137
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TerminalGlyph, {}),
17138
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { style: TITLE_STYLE3, children: title })
16847
17139
  ] });
16848
17140
  }
16849
17141
  function TerminalGlyph() {
16850
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
17142
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
16851
17143
  "svg",
16852
17144
  {
16853
17145
  width: "16",
@@ -16856,8 +17148,8 @@ function TerminalGlyph() {
16856
17148
  fill: "none",
16857
17149
  "aria-hidden": "true",
16858
17150
  children: [
16859
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M3 4L7 8L3 12", stroke: "currentColor" }),
16860
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M9 12H13", stroke: "currentColor" })
17151
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", { d: "M3 4L7 8L3 12", stroke: "currentColor" }),
17152
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", { d: "M9 12H13", stroke: "currentColor" })
16861
17153
  ]
16862
17154
  }
16863
17155
  );
@@ -16877,10 +17169,10 @@ var TITLE_STYLE3 = {
16877
17169
  // src/client/read-only-approval.tsx
16878
17170
  var import_dsh_client_ui_primitives22 = require("@deepseek-ai/dsh-client-ui-primitives");
16879
17171
  var import_react21 = require("react");
16880
- var import_jsx_runtime25 = require("react/jsx-runtime");
17172
+ var import_jsx_runtime26 = require("react/jsx-runtime");
16881
17173
  var BUILTIN_PROMPT_PREFIX = "dsh_podman_builtin_";
16882
17174
  function ReadOnlyApprovalPanel(props) {
16883
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ReadOnlyApprovalFlow, { ...props }, props.matched.key);
17175
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ReadOnlyApprovalFlow, { ...props }, props.matched.key);
16884
17176
  }
16885
17177
  function ReadOnlyApprovalFlow({
16886
17178
  t,
@@ -16896,7 +17188,7 @@ function ReadOnlyApprovalFlow({
16896
17188
  setError(failure3 instanceof Error ? failure3.message : String(failure3));
16897
17189
  });
16898
17190
  };
16899
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
17191
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
16900
17192
  "div",
16901
17193
  {
16902
17194
  style: {
@@ -16905,7 +17197,7 @@ function ReadOnlyApprovalFlow({
16905
17197
  alignItems: "center",
16906
17198
  padding: "8px calc(var(--dsh-composer-side-clearance) + 16px) 12px"
16907
17199
  },
16908
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
17200
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
16909
17201
  "div",
16910
17202
  {
16911
17203
  style: {
@@ -16918,7 +17210,7 @@ function ReadOnlyApprovalFlow({
16918
17210
  boxShadow: "var(--dsw-shadow-lv2)"
16919
17211
  },
16920
17212
  children: [
16921
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
17213
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
16922
17214
  "div",
16923
17215
  {
16924
17216
  role: "status",
@@ -16934,7 +17226,7 @@ function ReadOnlyApprovalFlow({
16934
17226
  lineHeight: "18px"
16935
17227
  },
16936
17228
  children: [
16937
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
17229
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
16938
17230
  "span",
16939
17231
  {
16940
17232
  style: {
@@ -16949,7 +17241,7 @@ function ReadOnlyApprovalFlow({
16949
17241
  ]
16950
17242
  }
16951
17243
  ),
16952
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
17244
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
16953
17245
  "div",
16954
17246
  {
16955
17247
  style: {
@@ -16958,7 +17250,7 @@ function ReadOnlyApprovalFlow({
16958
17250
  overflowY: "auto",
16959
17251
  padding: "12px 16px 0"
16960
17252
  },
16961
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
17253
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
16962
17254
  "div",
16963
17255
  {
16964
17256
  style: {
@@ -16973,7 +17265,7 @@ function ReadOnlyApprovalFlow({
16973
17265
  )
16974
17266
  }
16975
17267
  ),
16976
- error === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
17268
+ error === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
16977
17269
  "p",
16978
17270
  {
16979
17271
  role: "alert",
@@ -16986,7 +17278,7 @@ function ReadOnlyApprovalFlow({
16986
17278
  children: error
16987
17279
  }
16988
17280
  ),
16989
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
17281
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
16990
17282
  "div",
16991
17283
  {
16992
17284
  style: {
@@ -16996,7 +17288,7 @@ function ReadOnlyApprovalFlow({
16996
17288
  padding: "14px 16px"
16997
17289
  },
16998
17290
  children: [
16999
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
17291
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
17000
17292
  import_dsh_client_ui_primitives22.Button,
17001
17293
  {
17002
17294
  variant: "outline",
@@ -17006,7 +17298,7 @@ function ReadOnlyApprovalFlow({
17006
17298
  children: t("remountReject")
17007
17299
  }
17008
17300
  ),
17009
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
17301
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
17010
17302
  import_dsh_client_ui_primitives22.Button,
17011
17303
  {
17012
17304
  variant: "primary",
@@ -17219,47 +17511,47 @@ function installTerminalStyles(ctx) {
17219
17511
  }
17220
17512
 
17221
17513
  // src/client/tool-views.tsx
17222
- var import_jsx_runtime26 = require("react/jsx-runtime");
17514
+ var import_jsx_runtime27 = require("react/jsx-runtime");
17223
17515
  var TOOL_ICONS = {
17224
- container_bash: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconApiOutlineRegular, { size: 14 }),
17225
- container_exec: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconApiOutlineRegular, { size: 14 }),
17226
- container_read: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconBrowseOutlineRegular, { size: 14 }),
17227
- container_write: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconEditOutlineRegular, { size: 14 }),
17228
- container_edit: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconEditOutlineRegular, { size: 14 }),
17229
- container_glob: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconSearchOutlineRegular, { size: 14 }),
17230
- container_grep: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconSearchOutlineRegular, { size: 14 }),
17231
- container_list: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconDataOutlineRegular, { size: 14 }),
17232
- container_start: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconPlayOutlineRegular, { size: 14 }),
17233
- container_recreate: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconRefreshOutlineRegular, { size: 14 }),
17234
- container_remove: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17235
- container_mount_list: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconFolderOpenOutlineRegular, { size: 14 }),
17236
- container_mount_add: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconFolderOpenOutlineRegular, { size: 14 }),
17237
- container_mount_remove: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17238
- container_mount_update: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconRefreshOutlineRegular, { size: 14 }),
17239
- container_publish_port: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconLinkOutlineRegular, { size: 14 }),
17240
- container_unpublish_port: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17241
- container_path_set: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconEditOutlineRegular, { size: 14 }),
17242
- container_path_add: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconPlusOutlineRegular, { size: 14 }),
17243
- container_path_remove: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17244
- container_secret_add: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconLinkOutlineRegular, { size: 14 }),
17245
- container_secret_remove: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconLinkOutlineRegular, { size: 14 }),
17246
- image_list: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconArchiveOutlineRegular, { size: 14 }),
17247
- image_get: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconArchiveOutlineRegular, { size: 14 }),
17248
- image_build: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconPlusOutlineRegular, { size: 14 }),
17249
- image_rebuild: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconRefreshOutlineRegular, { size: 14 }),
17250
- image_rebuild_all: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconRefreshOutlineRegular, { size: 14 }),
17251
- image_remove: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17252
- volume_list: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconDataOutlineRegular, { size: 14 }),
17253
- volume_create: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconPlusOutlineRegular, { size: 14 }),
17254
- volume_remove: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17255
- secret_list: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconLinkOutlineRegular, { size: 14 }),
17256
- secret_create: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconPlusOutlineRegular, { size: 14 }),
17257
- secret_remove: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17258
- daemon_start: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconPlayOutlineRegular, { size: 14 }),
17259
- daemon_list: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconPlayOutlineRegular, { size: 14 }),
17260
- daemon_logs: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconBrowseOutlineRegular, { size: 14 }),
17261
- daemon_restart: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconRefreshOutlineRegular, { size: 14 }),
17262
- daemon_stop: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconStopFillRegular, { size: 14 })
17516
+ container_bash: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconApiOutlineRegular, { size: 14 }),
17517
+ container_exec: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconApiOutlineRegular, { size: 14 }),
17518
+ container_read: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconBrowseOutlineRegular, { size: 14 }),
17519
+ container_write: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconEditOutlineRegular, { size: 14 }),
17520
+ container_edit: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconEditOutlineRegular, { size: 14 }),
17521
+ container_glob: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconSearchOutlineRegular, { size: 14 }),
17522
+ container_grep: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconSearchOutlineRegular, { size: 14 }),
17523
+ container_list: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconDataOutlineRegular, { size: 14 }),
17524
+ container_start: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconPlayOutlineRegular, { size: 14 }),
17525
+ container_recreate: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconRefreshOutlineRegular, { size: 14 }),
17526
+ container_remove: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17527
+ container_mount_list: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconFolderOpenOutlineRegular, { size: 14 }),
17528
+ container_mount_add: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconFolderOpenOutlineRegular, { size: 14 }),
17529
+ container_mount_remove: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17530
+ container_mount_update: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconRefreshOutlineRegular, { size: 14 }),
17531
+ container_publish_port: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconLinkOutlineRegular, { size: 14 }),
17532
+ container_unpublish_port: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17533
+ container_path_set: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconEditOutlineRegular, { size: 14 }),
17534
+ container_path_add: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconPlusOutlineRegular, { size: 14 }),
17535
+ container_path_remove: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17536
+ container_secret_add: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconLinkOutlineRegular, { size: 14 }),
17537
+ container_secret_remove: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconLinkOutlineRegular, { size: 14 }),
17538
+ image_list: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconArchiveOutlineRegular, { size: 14 }),
17539
+ image_get: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconArchiveOutlineRegular, { size: 14 }),
17540
+ image_build: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconPlusOutlineRegular, { size: 14 }),
17541
+ image_rebuild: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconRefreshOutlineRegular, { size: 14 }),
17542
+ image_rebuild_all: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconRefreshOutlineRegular, { size: 14 }),
17543
+ image_remove: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17544
+ volume_list: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconDataOutlineRegular, { size: 14 }),
17545
+ volume_create: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconPlusOutlineRegular, { size: 14 }),
17546
+ volume_remove: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17547
+ secret_list: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconLinkOutlineRegular, { size: 14 }),
17548
+ secret_create: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconPlusOutlineRegular, { size: 14 }),
17549
+ secret_remove: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconTrashOutlineRegular, { size: 14 }),
17550
+ daemon_start: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconPlayOutlineRegular, { size: 14 }),
17551
+ daemon_list: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconPlayOutlineRegular, { size: 14 }),
17552
+ daemon_logs: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconBrowseOutlineRegular, { size: 14 }),
17553
+ daemon_restart: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconRefreshOutlineRegular, { size: 14 }),
17554
+ daemon_stop: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconStopFillRegular, { size: 14 })
17263
17555
  };
17264
17556
  var sepStyle = {
17265
17557
  flex: "none",
@@ -17434,9 +17726,9 @@ function PodmanToolRow({
17434
17726
  );
17435
17727
  const [expanded, setExpanded] = (0, import_react22.useState)(false);
17436
17728
  const expandable = terminal !== null || output !== null && output !== "";
17437
- const leading = state === "error" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.StateDot, { state: "error" }) : state === "stopped" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.StateDot, { state: "warning" }) : presentation === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dsh_client_ui_primitives23.IconSparkleRegular, { size: 14 }) : TOOL_ICONS[toolName];
17729
+ const leading = state === "error" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.StateDot, { state: "error" }) : state === "stopped" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.StateDot, { state: "warning" }) : presentation === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_dsh_client_ui_primitives23.IconSparkleRegular, { size: 14 }) : TOOL_ICONS[toolName];
17438
17730
  void inspect;
17439
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
17731
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
17440
17732
  import_dsh_client_ui_primitives23.DisclosureRow,
17441
17733
  {
17442
17734
  icon: leading,
@@ -17446,11 +17738,11 @@ function PodmanToolRow({
17446
17738
  onToggle: () => setExpanded((value) => !value),
17447
17739
  expandOnRowClick: true,
17448
17740
  keepContentWhenOpen: true,
17449
- collapsedContent: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
17450
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { style: sepStyle, "aria-hidden": true }),
17451
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { style: failureLine !== null ? errorSummaryStyle : summaryStyle, children: summary })
17741
+ collapsedContent: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
17742
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { style: sepStyle, "aria-hidden": true }),
17743
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { style: failureLine !== null ? errorSummaryStyle : summaryStyle, children: summary })
17452
17744
  ] }),
17453
- children: terminal !== null ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
17745
+ children: terminal !== null ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
17454
17746
  import_dsh_client_ui_primitives23.TerminalBlock,
17455
17747
  {
17456
17748
  command: terminal.command,
@@ -17464,7 +17756,7 @@ function PodmanToolRow({
17464
17756
  className: TERMINAL_CLASS,
17465
17757
  labels: terminalLabels(t)
17466
17758
  }
17467
- ) : expandable ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("pre", { style: state === "error" ? errorBodyStyle : bodyStyle, children: capLines(output ?? "", MAX_RENDERED_LINES) }) : null
17759
+ ) : expandable ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("pre", { style: state === "error" ? errorBodyStyle : bodyStyle, children: capLines(output ?? "", MAX_RENDERED_LINES) }) : null
17468
17760
  }
17469
17761
  );
17470
17762
  }
@@ -17541,6 +17833,7 @@ var EMPTY_SNAPSHOT = {
17541
17833
  gatewayVersionState: "ok",
17542
17834
  projectsRoot: "",
17543
17835
  workspaces: [],
17836
+ ptc: absentPtcView(),
17544
17837
  containers: [],
17545
17838
  images: [],
17546
17839
  volumes: [],
@@ -17569,6 +17862,10 @@ function commandKey(request) {
17569
17862
  return scopedActionKey(request.op, request.cacheMode);
17570
17863
  case "image_rebuild_all":
17571
17864
  return bareActionKey(request.op);
17865
+ case "ptc_remove":
17866
+ case "ptc_recreate":
17867
+ case "ptc_build":
17868
+ return bareActionKey(request.op);
17572
17869
  case "default_env_sync":
17573
17870
  return scopedActionKey(
17574
17871
  request.op,
@@ -17662,6 +17959,7 @@ var ContainerCardController = class {
17662
17959
  projectsRoot: this.snapshot.projectsRoot,
17663
17960
  ...this.directoryPicker === void 0 ? {} : { directoryPicker: this.directoryPicker },
17664
17961
  workspaces: this.snapshot.workspaces,
17962
+ ptc: this.snapshot.ptc,
17665
17963
  containers: this.snapshot.containers,
17666
17964
  images: this.snapshot.images,
17667
17965
  volumes: this.snapshot.volumes,
@@ -17908,6 +18206,9 @@ var ContainerCardController = class {
17908
18206
  this.publish();
17909
18207
  },
17910
18208
  remove: (workspace, container) => this.command("remove", workspace, "", { container }),
18209
+ removePtc: () => this.command("ptc_remove", "", ""),
18210
+ recreatePtc: () => this.command("ptc_recreate", "", ""),
18211
+ buildPtcImage: () => this.command("ptc_build", "", ""),
17911
18212
  cleanCaches: (mode) => this.command("cache_clean", "", "", { cacheMode: mode }),
17912
18213
  removeWorkspace: (workspace) => this.command("workspace_remove", workspace, ""),
17913
18214
  recreate: (workspace, container, image, env) => this.command("recreate", workspace, image, {
@@ -18041,6 +18342,8 @@ var en2 = {
18041
18342
  discardChangesTitle: "Discard changes?",
18042
18343
  confirmDiscardChanges: "Close this dialog and discard your unsaved edits?",
18043
18344
  containerNameReserved: `"default" is reserved for the workspace's default container.`,
18345
+ containerNamePtcReserved: `"ptc" is reserved for the workspace's PTC container.`,
18346
+ containerKindPtc: "PTC",
18044
18347
  invalidSecretLength: "Length must be between 1 and 1024.",
18045
18348
  secretLengthHint: "Between 1 and 1024; empty uses 32.",
18046
18349
  portPendingSuffix: "(pending)",
@@ -18088,6 +18391,14 @@ var en2 = {
18088
18391
  orchestratorNotReady: "orchestrator not ready",
18089
18392
  orchestratorUnknown: "orchestrator unknown",
18090
18393
  noWorkspaces: "No workspaces.",
18394
+ ptcMissing: "The PTC container has not been created yet; it is created on first use.",
18395
+ ptcContainerTooltip: "This container is used for Programmatic Tool Calling",
18396
+ ptcImageTooltip: "This image is used for Programmatic Tool Calling",
18397
+ recreatePtcTitle: "Recreate PTC container",
18398
+ confirmRecreatePtc: "Recreate the shared PTC container \u201C{container}\u201D? It is removed and rebuilt from the current PTC image.",
18399
+ ptcImageReserved: "This image is reserved to PTC (Programmatic Tool Calling).",
18400
+ removePtcTitle: "Remove PTC container",
18401
+ confirmRemovePtc: "Remove the shared PTC container \u201C{container}\u201D? It is recreated on the next PTC run.",
18091
18402
  createContainer: "Create container",
18092
18403
  containerName: "Name",
18093
18404
  image: "Image",
@@ -18351,6 +18662,8 @@ var zh2 = {
18351
18662
  discardChangesTitle: "\u653E\u5F03\u66F4\u6539\uFF1F",
18352
18663
  confirmDiscardChanges: "\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846\u5E76\u653E\u5F03\u672A\u4FDD\u5B58\u7684\u7F16\u8F91\uFF1F",
18353
18664
  containerNameReserved: "\u201Cdefault\u201D\u662F\u5DE5\u4F5C\u533A\u9ED8\u8BA4\u5BB9\u5668\u7684\u4FDD\u7559\u540D\u79F0\u3002",
18665
+ containerNamePtcReserved: "\u201Cptc\u201D\u662F\u5DE5\u4F5C\u533A PTC \u5BB9\u5668\u7684\u4FDD\u7559\u540D\u79F0\u3002",
18666
+ containerKindPtc: "PTC",
18354
18667
  invalidSecretLength: "\u957F\u5EA6\u5FC5\u987B\u5728 1 \u5230 1024 \u4E4B\u95F4\u3002",
18355
18668
  secretLengthHint: "1 \u5230 1024\uFF1B\u7559\u7A7A\u4F7F\u7528 32\u3002",
18356
18669
  portPendingSuffix: "\uFF08\u5F85\u53D1\u5E03\uFF09",
@@ -18398,6 +18711,14 @@ var zh2 = {
18398
18711
  orchestratorNotReady: "orchestrator \u672A\u5C31\u7EEA",
18399
18712
  orchestratorUnknown: "orchestrator \u72B6\u6001\u672A\u77E5",
18400
18713
  noWorkspaces: "\u65E0\u5DE5\u4F5C\u533A\u3002",
18714
+ ptcMissing: "PTC \u5BB9\u5668\u5C1A\u672A\u521B\u5EFA\uFF1B\u5B83\u4F1A\u5728\u9996\u6B21\u4F7F\u7528\u65F6\u521B\u5EFA\u3002",
18715
+ ptcContainerTooltip: "\u6B64\u5BB9\u5668\u7528\u4E8E\u7A0B\u5E8F\u5316\u5DE5\u5177\u8C03\u7528",
18716
+ ptcImageTooltip: "\u6B64\u955C\u50CF\u7528\u4E8E\u7A0B\u5E8F\u5316\u5DE5\u5177\u8C03\u7528",
18717
+ recreatePtcTitle: "\u91CD\u5EFA PTC \u5BB9\u5668",
18718
+ confirmRecreatePtc: "\u91CD\u5EFA\u5171\u4EAB\u7684 PTC \u5BB9\u5668\u201C{container}\u201D\uFF1F\u5B83\u5C06\u88AB\u79FB\u9664\u5E76\u7531\u5F53\u524D PTC \u955C\u50CF\u91CD\u65B0\u6784\u5EFA\u3002",
18719
+ ptcImageReserved: "\u8BE5\u955C\u50CF\u4E13\u7528\u4E8E PTC\uFF08Programmatic Tool Calling\uFF09\u3002",
18720
+ removePtcTitle: "\u79FB\u9664 PTC \u5BB9\u5668",
18721
+ confirmRemovePtc: "\u79FB\u9664\u5171\u4EAB\u7684 PTC \u5BB9\u5668\u201C{container}\u201D\uFF1F\u4E0B\u6B21\u8FD0\u884C PTC \u65F6\u4F1A\u91CD\u65B0\u521B\u5EFA\u5B83\u3002",
18401
18722
  createContainer: "\u521B\u5EFA\u5BB9\u5668",
18402
18723
  containerName: "\u540D\u79F0",
18403
18724
  image: "\u955C\u50CF",