@exagone313/dsh-podman 1.0.4 → 1.1.1

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 (56) hide show
  1. package/README.md +1 -0
  2. package/README.zh.md +1 -0
  3. package/dist/approval-reasons.d.ts +12 -0
  4. package/dist/approval-reasons.js +15 -0
  5. package/dist/approval.js +21 -0
  6. package/dist/card-route.js +83 -1
  7. package/dist/client/ContainerCard.js +14 -2
  8. package/dist/client/card-protocol.d.ts +16 -1
  9. package/dist/client/container-card-controller.d.ts +8 -2
  10. package/dist/client/container-card-controller.js +21 -0
  11. package/dist/client/container-card-ports.d.ts +13 -0
  12. package/dist/client/container-card-ports.js +74 -0
  13. package/dist/client/container-card-row.d.ts +3 -0
  14. package/dist/client/container-card-row.js +12 -2
  15. package/dist/client/container-card-workspace.d.ts +3 -0
  16. package/dist/client/container-card-workspace.js +2 -2
  17. package/dist/client/index.js +653 -386
  18. package/dist/client/locales.d.ts +1 -1
  19. package/dist/client/locales.js +30 -0
  20. package/dist/client/tool-presentations.d.ts +167 -0
  21. package/dist/client/tool-presentations.js +167 -0
  22. package/dist/client/tool-views.d.ts +1 -2
  23. package/dist/client/tool-views.js +54 -190
  24. package/dist/generated/version.d.ts +2 -2
  25. package/dist/generated/version.js +2 -2
  26. package/dist/grpc/proto/dshctl/v1/control.proto +47 -1
  27. package/dist/grpc/proto/dshgateway/v1/gateway.proto +89 -0
  28. package/dist/grpc/proto/dshguest/v1/guest.proto +17 -0
  29. package/dist/index.d.ts +3 -2
  30. package/dist/index.js +3 -2
  31. package/dist/public.d.ts +1 -0
  32. package/dist/public.js +14 -0
  33. package/dist/publish-port.d.ts +6 -0
  34. package/dist/publish-port.js +37 -0
  35. package/dist/tool-defs.js +15 -1
  36. package/dist/tool-handlers.js +31 -1
  37. package/dist/tool-params.d.ts +48 -0
  38. package/dist/tool-params.js +42 -0
  39. package/docs/architecture.md +44 -7
  40. package/docs/architecture.zh.md +38 -6
  41. package/docs/configuration.md +25 -0
  42. package/docs/configuration.zh.md +23 -0
  43. package/docs/development.md +9 -2
  44. package/docs/development.zh.md +9 -2
  45. package/docs/install-dsh-and-dsh-podman.md +10 -4
  46. package/docs/install-dsh-and-dsh-podman.zh.md +9 -3
  47. package/docs/uninstall.md +4 -3
  48. package/docs/uninstall.zh.md +3 -2
  49. package/docs/update.md +23 -6
  50. package/docs/update.zh.md +23 -6
  51. package/docs/usage.md +48 -13
  52. package/docs/usage.zh.md +31 -2
  53. package/package.json +1 -1
  54. package/quadlet/dsh-podman-gateway.container +23 -0
  55. package/quadlet/dsh-podman-orchestrator.container +1 -1
  56. package/quadlet/dsh.container +1 -1
@@ -1,5 +1,5 @@
1
1
  export declare const NS = "podman";
2
- export type ContainerPluginKey = "cardTitle" | "cardDescription" | "versionMismatchMajor" | "versionMismatchMinor" | "versionsTitle" | "orchestrator" | "versionUnknown" | "dsh" | "copyVersions" | "copied" | "copyFailed" | "reload" | "notice" | "defaultImage" | "defaultImageHint" | "defaultEnvironment" | "defaultEnvironmentHint" | "gitIdentity" | "gitName" | "gitEmail" | "gitIdentityHint" | "applyDefaults" | "confirmApplyDefaults" | "clear" | "save" | "discard" | "workspacesTitle" | "noContainers" | "createContainer" | "containerName" | "image" | "status" | "created" | "projects" | "remove" | "removePod" | "confirmRemovePod" | "recreate" | "recreateWithImage" | "imagesTitle" | "imageId" | "imageTag" | "builtAt" | "packages" | "volumesTitle" | "createVolume" | "removeVolume" | "volumeName" | "secretsTitle" | "createSecret" | "secretName" | "secretCharset" | "selectImage" | "setSecret" | "removeSecret" | "removeImage" | "rebuildImage" | "rebuildAllImages" | "buildImage" | "build" | "buildImageTitle" | "pullImage" | "setDefaultImage" | "setDefaultImageTitle" | "baseImagesTitle" | "customImagesTitle" | "primitive" | "packageManager" | "parent" | "cancel" | "removeTag" | "env" | "secretEnv" | "envTitle" | "envKey" | "envValue" | "addEnv" | "removeEnv" | "secretLength" | "containerSecretsTitle" | "attachSecret" | "secretEnvName" | "detachSecret" | "none" | "unavailable" | "busy" | "confirmTitle" | "confirm" | "confirmRemoveContainer" | "confirmRecreate" | "confirmRemoveImage" | "confirmRebuildImage" | "confirmRebuildAllImages" | "confirmRemoveVolume" | "confirmSetSecret" | "confirmRemoveSecret" | "confirmDetachSecret" | "mountsTitle" | "addMount" | "mountKind" | "mountProject" | "mountProjectPath" | "browse" | "browseTitle" | "browseSelect" | "browseLoading" | "browseError" | "browseUnavailable" | "browseHidden" | "browseTruncated" | "browseOutsideRoot" | "mountDestination" | "pathsTitle" | "noPaths" | "editPaths" | "addPath" | "add" | "moveUp" | "moveDown" | "apply" | "dragToReorder" | "remountWaiting" | "remountApprove" | "remountReject" | "mountVolume" | "mountSecret" | "mountTmpfs" | "mountAt" | "mountMode" | "readOnly" | "readWrite" | "mountReadOnlySuffix" | "mountReadWriteSuffix" | "remountReadOnly" | "remountReadWrite" | "confirmRemountReadOnly" | "confirmRemountReadWrite" | "confirmRemoveMount" | "cachesTitle" | "noCaches" | "cacheUsage" | "cacheKeepLatest" | "confirmCacheKeepLatest" | "cacheRemoveAll" | "confirmCacheRemoveAll" | "addContainer" | "invalidContainerName" | "containerNameTaken" | "invalidName" | "invalidImageId" | "terminalSignal" | "terminalExitCode" | "terminalNoExitCode" | "terminalRunning" | "terminalFailed" | "terminalDone" | "terminalNoOutput" | "terminalCollapseAria" | "terminalExpandAria" | "terminalExpandRest" | "toolTitle_container_bash" | "toolTitle_container_exec" | "toolTitle_container_read" | "toolTitle_container_write" | "toolTitle_container_edit" | "toolTitle_container_glob" | "toolTitle_container_grep" | "toolTitle_container_list" | "toolTitle_container_start" | "toolTitle_container_recreate" | "toolTitle_container_remove" | "toolTitle_container_mount_list" | "toolTitle_container_mount_add" | "toolTitle_container_mount_remove" | "toolTitle_container_mount_update" | "toolTitle_container_path_set" | "toolTitle_container_path_add" | "toolTitle_container_path_remove" | "toolTitle_container_secret_add" | "toolTitle_container_secret_remove" | "toolTitle_image_list" | "toolTitle_image_get" | "toolTitle_image_build" | "toolTitle_image_rebuild" | "toolTitle_image_rebuild_all" | "toolTitle_image_remove" | "toolTitle_volume_list" | "toolTitle_volume_create" | "toolTitle_volume_remove" | "toolTitle_secret_list" | "toolTitle_secret_create" | "toolTitle_secret_remove" | "toolTitle_daemon_start" | "toolTitle_daemon_list" | "toolTitle_daemon_logs" | "toolTitle_daemon_restart" | "toolTitle_daemon_stop" | "terminalTabTitle" | "terminalGuideTitle" | "terminalGuideDescription" | "terminalShortcut" | "terminalShortcutNoSession" | "terminalContainer" | "terminalShell" | "terminalDefaultContainer" | "terminalStart" | "terminalConnect" | "terminalReconnect" | "terminalStatusConnecting" | "terminalStatusRunning" | "terminalStatusExited" | "terminalStatusDetached" | "terminalNoShells" | "terminalShellsFailed" | "terminalLoading";
2
+ export type ContainerPluginKey = "cardTitle" | "cardDescription" | "versionMismatchMajor" | "versionMismatchMinor" | "versionsTitle" | "orchestrator" | "gateway" | "gatewayNotRunning" | "gatewayIncompatible" | "versionUnknown" | "dsh" | "copyVersions" | "copied" | "copyFailed" | "reload" | "notice" | "defaultImage" | "defaultImageHint" | "defaultEnvironment" | "defaultEnvironmentHint" | "gitIdentity" | "gitName" | "gitEmail" | "gitIdentityHint" | "applyDefaults" | "confirmApplyDefaults" | "clear" | "save" | "discard" | "workspacesTitle" | "noContainers" | "createContainer" | "containerName" | "image" | "status" | "created" | "projects" | "remove" | "removePod" | "confirmRemovePod" | "recreate" | "recreateWithImage" | "imagesTitle" | "imageId" | "imageTag" | "builtAt" | "packages" | "volumesTitle" | "createVolume" | "removeVolume" | "volumeName" | "secretsTitle" | "createSecret" | "secretName" | "secretCharset" | "selectImage" | "setSecret" | "removeSecret" | "removeImage" | "rebuildImage" | "rebuildAllImages" | "buildImage" | "build" | "buildImageTitle" | "pullImage" | "setDefaultImage" | "setDefaultImageTitle" | "baseImagesTitle" | "customImagesTitle" | "primitive" | "packageManager" | "parent" | "cancel" | "removeTag" | "env" | "secretEnv" | "envTitle" | "envKey" | "envValue" | "addEnv" | "removeEnv" | "secretLength" | "containerSecretsTitle" | "attachSecret" | "secretEnvName" | "detachSecret" | "portsTitle" | "publishPort" | "unpublishPort" | "podPort" | "hostPortOptional" | "invalidPort" | "invalidHostPort" | "publishNeedsGateway" | "containerNotRunning" | "confirmUnpublishPort" | "none" | "unavailable" | "busy" | "confirmTitle" | "confirm" | "confirmRemoveContainer" | "confirmRecreate" | "confirmRemoveImage" | "confirmRebuildImage" | "confirmRebuildAllImages" | "confirmRemoveVolume" | "confirmSetSecret" | "confirmRemoveSecret" | "confirmDetachSecret" | "mountsTitle" | "addMount" | "mountKind" | "mountProject" | "mountProjectPath" | "browse" | "browseTitle" | "browseSelect" | "browseLoading" | "browseError" | "browseUnavailable" | "browseHidden" | "browseTruncated" | "browseOutsideRoot" | "mountDestination" | "pathsTitle" | "noPaths" | "editPaths" | "addPath" | "add" | "moveUp" | "moveDown" | "apply" | "dragToReorder" | "remountWaiting" | "remountApprove" | "remountReject" | "mountVolume" | "mountSecret" | "mountTmpfs" | "mountAt" | "mountMode" | "readOnly" | "readWrite" | "mountReadOnlySuffix" | "mountReadWriteSuffix" | "remountReadOnly" | "remountReadWrite" | "confirmRemountReadOnly" | "confirmRemountReadWrite" | "confirmRemoveMount" | "cachesTitle" | "noCaches" | "cacheUsage" | "cacheKeepLatest" | "confirmCacheKeepLatest" | "cacheRemoveAll" | "confirmCacheRemoveAll" | "addContainer" | "invalidContainerName" | "containerNameTaken" | "invalidName" | "invalidImageId" | "terminalSignal" | "terminalExitCode" | "terminalNoExitCode" | "terminalRunning" | "terminalFailed" | "terminalDone" | "terminalNoOutput" | "terminalCollapseAria" | "terminalExpandAria" | "terminalExpandRest" | "toolTitle_container_bash" | "toolTitle_container_exec" | "toolTitle_container_read" | "toolTitle_container_write" | "toolTitle_container_edit" | "toolTitle_container_glob" | "toolTitle_container_grep" | "toolTitle_container_list" | "toolTitle_container_start" | "toolTitle_container_recreate" | "toolTitle_container_remove" | "toolTitle_container_mount_list" | "toolTitle_container_mount_add" | "toolTitle_container_mount_remove" | "toolTitle_container_mount_update" | "toolTitle_container_path_set" | "toolTitle_container_path_add" | "toolTitle_container_path_remove" | "toolTitle_container_secret_add" | "toolTitle_container_secret_remove" | "toolTitle_container_publish_port" | "toolTitle_container_unpublish_port" | "toolTitle_image_list" | "toolTitle_image_get" | "toolTitle_image_build" | "toolTitle_image_rebuild" | "toolTitle_image_rebuild_all" | "toolTitle_image_remove" | "toolTitle_volume_list" | "toolTitle_volume_create" | "toolTitle_volume_remove" | "toolTitle_secret_list" | "toolTitle_secret_create" | "toolTitle_secret_remove" | "toolTitle_daemon_start" | "toolTitle_daemon_list" | "toolTitle_daemon_logs" | "toolTitle_daemon_restart" | "toolTitle_daemon_stop" | "terminalTabTitle" | "terminalGuideTitle" | "terminalGuideDescription" | "terminalShortcut" | "terminalShortcutNoSession" | "terminalContainer" | "terminalShell" | "terminalDefaultContainer" | "terminalStart" | "terminalConnect" | "terminalReconnect" | "terminalStatusConnecting" | "terminalStatusRunning" | "terminalStatusExited" | "terminalStatusDetached" | "terminalNoShells" | "terminalShellsFailed" | "terminalLoading";
3
3
  /**
4
4
  * Translate one key, interpolating `{name}` placeholders when given. Components
5
5
  * that build dialog copy declare this so they can name their subject.
@@ -9,6 +9,9 @@ export const en = {
9
9
  versionMismatchMinor: "This plugin and the orchestrator have compatible but different versions; consider updating both images.",
10
10
  versionsTitle: "Versions",
11
11
  orchestrator: "dsh-podman-orchestrator",
12
+ gateway: "dsh-podman-gateway",
13
+ gatewayNotRunning: "not running",
14
+ gatewayIncompatible: "incompatible",
12
15
  versionUnknown: "unknown",
13
16
  dsh: "dsh",
14
17
  copyVersions: "Copy versions",
@@ -86,6 +89,16 @@ export const en = {
86
89
  attachSecret: "Attach",
87
90
  secretEnvName: "Env var",
88
91
  detachSecret: "Detach",
92
+ portsTitle: "Ports",
93
+ publishPort: "Publish",
94
+ unpublishPort: "Unpublish",
95
+ podPort: "Pod port",
96
+ hostPortOptional: "Host port (optional)",
97
+ invalidPort: "Port must be between 1 and 65535",
98
+ invalidHostPort: "Host port must be between 1024 and 65535",
99
+ publishNeedsGateway: "The dsh-podman gateway is not running; start the gateway Quadlet to publish ports.",
100
+ containerNotRunning: "The container is not running; start it to publish a port.",
101
+ confirmUnpublishPort: "Stop publishing {port}/{protocol}? The host port becomes unreachable.",
89
102
  none: "None",
90
103
  unavailable: "The container plugin is not available.",
91
104
  busy: "Working…",
@@ -183,6 +196,8 @@ export const en = {
183
196
  toolTitle_container_path_remove: "Remove PATH entry",
184
197
  toolTitle_container_secret_add: "Attach secret",
185
198
  toolTitle_container_secret_remove: "Detach secret",
199
+ toolTitle_container_publish_port: "Publish port",
200
+ toolTitle_container_unpublish_port: "Unpublish port",
186
201
  toolTitle_image_list: "List images",
187
202
  toolTitle_image_get: "Inspect image",
188
203
  toolTitle_image_build: "Build image",
@@ -226,6 +241,9 @@ export const zh = {
226
241
  versionMismatchMinor: "此插件与 orchestrator 的版本不同但兼容;建议同时更新两个镜像。",
227
242
  versionsTitle: "版本",
228
243
  orchestrator: "dsh-podman-orchestrator",
244
+ gateway: "dsh-podman-gateway",
245
+ gatewayNotRunning: "未运行",
246
+ gatewayIncompatible: "版本不兼容",
229
247
  versionUnknown: "未知",
230
248
  dsh: "dsh",
231
249
  copyVersions: "复制版本",
@@ -303,6 +321,16 @@ export const zh = {
303
321
  attachSecret: "注入",
304
322
  secretEnvName: "变量名",
305
323
  detachSecret: "移除",
324
+ portsTitle: "端口",
325
+ publishPort: "发布",
326
+ unpublishPort: "取消发布",
327
+ podPort: "pod 端口",
328
+ hostPortOptional: "主机端口(可选)",
329
+ invalidPort: "端口必须在 1 到 65535 之间",
330
+ invalidHostPort: "主机端口必须在 1024 到 65535 之间",
331
+ publishNeedsGateway: "dsh-podman gateway 未运行;请启动 gateway Quadlet 后再发布端口。",
332
+ containerNotRunning: "容器未运行;请先启动容器再发布端口。",
333
+ confirmUnpublishPort: "停止发布 {port}/{protocol}?该主机端口将不再可访问。",
306
334
  none: "无",
307
335
  unavailable: "容器插件不可用。",
308
336
  busy: "处理中…",
@@ -400,6 +428,8 @@ export const zh = {
400
428
  toolTitle_container_path_remove: "移除 PATH 条目",
401
429
  toolTitle_container_secret_add: "注入机密",
402
430
  toolTitle_container_secret_remove: "移除机密注入",
431
+ toolTitle_container_publish_port: "发布端口",
432
+ toolTitle_container_unpublish_port: "取消发布端口",
403
433
  toolTitle_image_list: "列出镜像",
404
434
  toolTitle_image_get: "查看镜像",
405
435
  toolTitle_image_build: "构建镜像",
@@ -0,0 +1,167 @@
1
+ import type { ContainerPluginKey } from "./locales.js";
2
+ export interface ToolPresentation {
3
+ readonly titleKey: ContainerPluginKey;
4
+ readonly summaryKeys: readonly string[];
5
+ }
6
+ export declare const TOOL_PRESENTATION: {
7
+ readonly container_bash: {
8
+ readonly titleKey: "toolTitle_container_bash";
9
+ readonly summaryKeys: readonly ["description", "command"];
10
+ };
11
+ readonly container_exec: {
12
+ readonly titleKey: "toolTitle_container_exec";
13
+ readonly summaryKeys: readonly ["description", "argv"];
14
+ };
15
+ readonly container_read: {
16
+ readonly titleKey: "toolTitle_container_read";
17
+ readonly summaryKeys: readonly ["file_path"];
18
+ };
19
+ readonly container_write: {
20
+ readonly titleKey: "toolTitle_container_write";
21
+ readonly summaryKeys: readonly ["file_path"];
22
+ };
23
+ readonly container_edit: {
24
+ readonly titleKey: "toolTitle_container_edit";
25
+ readonly summaryKeys: readonly ["file_path"];
26
+ };
27
+ readonly container_glob: {
28
+ readonly titleKey: "toolTitle_container_glob";
29
+ readonly summaryKeys: readonly ["pattern"];
30
+ };
31
+ readonly container_grep: {
32
+ readonly titleKey: "toolTitle_container_grep";
33
+ readonly summaryKeys: readonly ["pattern"];
34
+ };
35
+ readonly container_list: {
36
+ readonly titleKey: "toolTitle_container_list";
37
+ readonly summaryKeys: readonly [];
38
+ };
39
+ readonly container_start: {
40
+ readonly titleKey: "toolTitle_container_start";
41
+ readonly summaryKeys: readonly ["container", "image"];
42
+ };
43
+ readonly container_recreate: {
44
+ readonly titleKey: "toolTitle_container_recreate";
45
+ readonly summaryKeys: readonly ["container", "image"];
46
+ };
47
+ readonly container_remove: {
48
+ readonly titleKey: "toolTitle_container_remove";
49
+ readonly summaryKeys: readonly ["container"];
50
+ };
51
+ readonly container_mount_list: {
52
+ readonly titleKey: "toolTitle_container_mount_list";
53
+ readonly summaryKeys: readonly ["container"];
54
+ };
55
+ readonly container_mount_add: {
56
+ readonly titleKey: "toolTitle_container_mount_add";
57
+ readonly summaryKeys: readonly ["container", "kind"];
58
+ };
59
+ readonly container_mount_remove: {
60
+ readonly titleKey: "toolTitle_container_mount_remove";
61
+ readonly summaryKeys: readonly ["container"];
62
+ };
63
+ readonly container_mount_update: {
64
+ readonly titleKey: "toolTitle_container_mount_update";
65
+ readonly summaryKeys: readonly ["container", "mode"];
66
+ };
67
+ readonly container_publish_port: {
68
+ readonly titleKey: "toolTitle_container_publish_port";
69
+ readonly summaryKeys: readonly ["port", "container"];
70
+ };
71
+ readonly container_unpublish_port: {
72
+ readonly titleKey: "toolTitle_container_unpublish_port";
73
+ readonly summaryKeys: readonly ["port", "container"];
74
+ };
75
+ readonly container_path_set: {
76
+ readonly titleKey: "toolTitle_container_path_set";
77
+ readonly summaryKeys: readonly ["container"];
78
+ };
79
+ readonly container_path_add: {
80
+ readonly titleKey: "toolTitle_container_path_add";
81
+ readonly summaryKeys: readonly ["container", "path"];
82
+ };
83
+ readonly container_path_remove: {
84
+ readonly titleKey: "toolTitle_container_path_remove";
85
+ readonly summaryKeys: readonly ["container", "path"];
86
+ };
87
+ readonly container_secret_add: {
88
+ readonly titleKey: "toolTitle_container_secret_add";
89
+ readonly summaryKeys: readonly ["container", "env"];
90
+ };
91
+ readonly container_secret_remove: {
92
+ readonly titleKey: "toolTitle_container_secret_remove";
93
+ readonly summaryKeys: readonly ["container", "env"];
94
+ };
95
+ readonly image_list: {
96
+ readonly titleKey: "toolTitle_image_list";
97
+ readonly summaryKeys: readonly [];
98
+ };
99
+ readonly image_get: {
100
+ readonly titleKey: "toolTitle_image_get";
101
+ readonly summaryKeys: readonly ["imageId"];
102
+ };
103
+ readonly image_build: {
104
+ readonly titleKey: "toolTitle_image_build";
105
+ readonly summaryKeys: readonly ["imageId", "parent"];
106
+ };
107
+ readonly image_rebuild: {
108
+ readonly titleKey: "toolTitle_image_rebuild";
109
+ readonly summaryKeys: readonly ["imageId"];
110
+ };
111
+ readonly image_rebuild_all: {
112
+ readonly titleKey: "toolTitle_image_rebuild_all";
113
+ readonly summaryKeys: readonly [];
114
+ };
115
+ readonly image_remove: {
116
+ readonly titleKey: "toolTitle_image_remove";
117
+ readonly summaryKeys: readonly ["imageId"];
118
+ };
119
+ readonly volume_list: {
120
+ readonly titleKey: "toolTitle_volume_list";
121
+ readonly summaryKeys: readonly [];
122
+ };
123
+ readonly volume_create: {
124
+ readonly titleKey: "toolTitle_volume_create";
125
+ readonly summaryKeys: readonly ["name"];
126
+ };
127
+ readonly volume_remove: {
128
+ readonly titleKey: "toolTitle_volume_remove";
129
+ readonly summaryKeys: readonly ["name"];
130
+ };
131
+ readonly secret_list: {
132
+ readonly titleKey: "toolTitle_secret_list";
133
+ readonly summaryKeys: readonly [];
134
+ };
135
+ readonly secret_create: {
136
+ readonly titleKey: "toolTitle_secret_create";
137
+ readonly summaryKeys: readonly ["name"];
138
+ };
139
+ readonly secret_remove: {
140
+ readonly titleKey: "toolTitle_secret_remove";
141
+ readonly summaryKeys: readonly ["name"];
142
+ };
143
+ readonly daemon_start: {
144
+ readonly titleKey: "toolTitle_daemon_start";
145
+ readonly summaryKeys: readonly ["name"];
146
+ };
147
+ readonly daemon_list: {
148
+ readonly titleKey: "toolTitle_daemon_list";
149
+ readonly summaryKeys: readonly ["container"];
150
+ };
151
+ readonly daemon_logs: {
152
+ readonly titleKey: "toolTitle_daemon_logs";
153
+ readonly summaryKeys: readonly ["name"];
154
+ };
155
+ readonly daemon_restart: {
156
+ readonly titleKey: "toolTitle_daemon_restart";
157
+ readonly summaryKeys: readonly ["name"];
158
+ };
159
+ readonly daemon_stop: {
160
+ readonly titleKey: "toolTitle_daemon_stop";
161
+ readonly summaryKeys: readonly ["name"];
162
+ };
163
+ };
164
+ /** The wire tool names this package owns a row for. */
165
+ export declare const TOOL_VIEW_KEYS: readonly string[];
166
+ /** The presentation of one tool, or undefined when this package has no row. */
167
+ export declare function toolPresentation(name: string): ToolPresentation | undefined;
@@ -0,0 +1,167 @@
1
+ // SPDX-FileCopyrightText: 2026 Elouan Martinet <exa@elou.world>
2
+ //
3
+ // SPDX-License-Identifier: MIT
4
+ export const TOOL_PRESENTATION = {
5
+ container_bash: {
6
+ titleKey: "toolTitle_container_bash",
7
+ summaryKeys: ["description", "command"],
8
+ },
9
+ container_exec: {
10
+ titleKey: "toolTitle_container_exec",
11
+ summaryKeys: ["description", "argv"],
12
+ },
13
+ container_read: {
14
+ titleKey: "toolTitle_container_read",
15
+ summaryKeys: ["file_path"],
16
+ },
17
+ container_write: {
18
+ titleKey: "toolTitle_container_write",
19
+ summaryKeys: ["file_path"],
20
+ },
21
+ container_edit: {
22
+ titleKey: "toolTitle_container_edit",
23
+ summaryKeys: ["file_path"],
24
+ },
25
+ container_glob: {
26
+ titleKey: "toolTitle_container_glob",
27
+ summaryKeys: ["pattern"],
28
+ },
29
+ container_grep: {
30
+ titleKey: "toolTitle_container_grep",
31
+ summaryKeys: ["pattern"],
32
+ },
33
+ container_list: {
34
+ titleKey: "toolTitle_container_list",
35
+ summaryKeys: [],
36
+ },
37
+ container_start: {
38
+ titleKey: "toolTitle_container_start",
39
+ summaryKeys: ["container", "image"],
40
+ },
41
+ container_recreate: {
42
+ titleKey: "toolTitle_container_recreate",
43
+ summaryKeys: ["container", "image"],
44
+ },
45
+ container_remove: {
46
+ titleKey: "toolTitle_container_remove",
47
+ summaryKeys: ["container"],
48
+ },
49
+ container_mount_list: {
50
+ titleKey: "toolTitle_container_mount_list",
51
+ summaryKeys: ["container"],
52
+ },
53
+ container_mount_add: {
54
+ titleKey: "toolTitle_container_mount_add",
55
+ summaryKeys: ["container", "kind"],
56
+ },
57
+ container_mount_remove: {
58
+ titleKey: "toolTitle_container_mount_remove",
59
+ summaryKeys: ["container"],
60
+ },
61
+ container_mount_update: {
62
+ titleKey: "toolTitle_container_mount_update",
63
+ summaryKeys: ["container", "mode"],
64
+ },
65
+ container_publish_port: {
66
+ titleKey: "toolTitle_container_publish_port",
67
+ summaryKeys: ["port", "container"],
68
+ },
69
+ container_unpublish_port: {
70
+ titleKey: "toolTitle_container_unpublish_port",
71
+ summaryKeys: ["port", "container"],
72
+ },
73
+ container_path_set: {
74
+ titleKey: "toolTitle_container_path_set",
75
+ summaryKeys: ["container"],
76
+ },
77
+ container_path_add: {
78
+ titleKey: "toolTitle_container_path_add",
79
+ summaryKeys: ["container", "path"],
80
+ },
81
+ container_path_remove: {
82
+ titleKey: "toolTitle_container_path_remove",
83
+ summaryKeys: ["container", "path"],
84
+ },
85
+ container_secret_add: {
86
+ titleKey: "toolTitle_container_secret_add",
87
+ summaryKeys: ["container", "env"],
88
+ },
89
+ container_secret_remove: {
90
+ titleKey: "toolTitle_container_secret_remove",
91
+ summaryKeys: ["container", "env"],
92
+ },
93
+ image_list: {
94
+ titleKey: "toolTitle_image_list",
95
+ summaryKeys: [],
96
+ },
97
+ image_get: {
98
+ titleKey: "toolTitle_image_get",
99
+ summaryKeys: ["imageId"],
100
+ },
101
+ image_build: {
102
+ titleKey: "toolTitle_image_build",
103
+ summaryKeys: ["imageId", "parent"],
104
+ },
105
+ image_rebuild: {
106
+ titleKey: "toolTitle_image_rebuild",
107
+ summaryKeys: ["imageId"],
108
+ },
109
+ image_rebuild_all: {
110
+ titleKey: "toolTitle_image_rebuild_all",
111
+ summaryKeys: [],
112
+ },
113
+ image_remove: {
114
+ titleKey: "toolTitle_image_remove",
115
+ summaryKeys: ["imageId"],
116
+ },
117
+ volume_list: {
118
+ titleKey: "toolTitle_volume_list",
119
+ summaryKeys: [],
120
+ },
121
+ volume_create: {
122
+ titleKey: "toolTitle_volume_create",
123
+ summaryKeys: ["name"],
124
+ },
125
+ volume_remove: {
126
+ titleKey: "toolTitle_volume_remove",
127
+ summaryKeys: ["name"],
128
+ },
129
+ secret_list: {
130
+ titleKey: "toolTitle_secret_list",
131
+ summaryKeys: [],
132
+ },
133
+ secret_create: {
134
+ titleKey: "toolTitle_secret_create",
135
+ summaryKeys: ["name"],
136
+ },
137
+ secret_remove: {
138
+ titleKey: "toolTitle_secret_remove",
139
+ summaryKeys: ["name"],
140
+ },
141
+ daemon_start: {
142
+ titleKey: "toolTitle_daemon_start",
143
+ summaryKeys: ["name"],
144
+ },
145
+ daemon_list: {
146
+ titleKey: "toolTitle_daemon_list",
147
+ summaryKeys: ["container"],
148
+ },
149
+ daemon_logs: {
150
+ titleKey: "toolTitle_daemon_logs",
151
+ summaryKeys: ["name"],
152
+ },
153
+ daemon_restart: {
154
+ titleKey: "toolTitle_daemon_restart",
155
+ summaryKeys: ["name"],
156
+ },
157
+ daemon_stop: {
158
+ titleKey: "toolTitle_daemon_stop",
159
+ summaryKeys: ["name"],
160
+ },
161
+ };
162
+ /** The wire tool names this package owns a row for. */
163
+ export const TOOL_VIEW_KEYS = Object.keys(TOOL_PRESENTATION);
164
+ /** The presentation of one tool, or undefined when this package has no row. */
165
+ export function toolPresentation(name) {
166
+ return TOOL_PRESENTATION[name];
167
+ }
@@ -1,8 +1,7 @@
1
1
  import type { PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
2
2
  import type { ToolCallViewProps } from "@deepseek-ai/dsh-client-ui-tool/client";
3
3
  import { NS } from "./locales.js";
4
- /** The wire tool names this package owns a row for. */
5
- export declare const TOOL_VIEW_KEYS: readonly string[];
4
+ export { TOOL_VIEW_KEYS } from "./tool-presentations.js";
6
5
  export type PodmanToolRowProps = ToolCallViewProps & PropsLocale<typeof NS>;
7
6
  /** Render one podman tool call as an icon-titled, expandable row. */
8
7
  export declare function PodmanToolRow({ toolName, block, cwd, home, inspect, t, }: PodmanToolRowProps): import("react").JSX.Element;