dkit 0.3.0 → 0.3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/bin/dkit +19 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff6fc0e53b34c039584e579f8b866d5097ee8ef9ff3b5951e3fa6a905ef6320e
|
|
4
|
+
data.tar.gz: cc0cf53bb9df918be82d7e38542175ef10421b522f06b746380f7c2a4fc74bea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 153b4417073e89d4b28da38ee174049e16439406e1915bc631e41b81d7986bf91dcd8effa28db55b861f0f563378ea63417562889e737b9b8435a4835a781d5e
|
|
7
|
+
data.tar.gz: 9e8b738739abfd0c65b1815d7d30f948bdbe3bf26e5af42a8582f60712e71be02639f739ac30293de22e1b6d0fa27fab8836c0e802e73fe9844d616591e4c28f
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.1] - 2026-04-13
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Verbose fallback message: when a command falls back to the host (container not running), prints `[dkit] <cmd> → host` to stderr if verbose is enabled
|
|
12
|
+
- Fallback messages respect the same config as container messages: `verbose: false` in `.devcontainer/dkit-intercept` or `DKIT_VERBOSE=0` env var suppress them
|
|
13
|
+
|
|
14
|
+
### Notes
|
|
15
|
+
- Requires `exec zsh` after gem update to reload the shell hook with the updated function templates
|
|
16
|
+
|
|
8
17
|
## [0.3.0] - 2026-04-13
|
|
9
18
|
|
|
10
19
|
### Added
|
data/bin/dkit
CHANGED
|
@@ -16,7 +16,7 @@ require 'pathname'
|
|
|
16
16
|
require 'shellwords'
|
|
17
17
|
require 'fileutils'
|
|
18
18
|
|
|
19
|
-
VERSION = "0.3.
|
|
19
|
+
VERSION = "0.3.1"
|
|
20
20
|
DC_CONFIG = ".devcontainer/devcontainer.json"
|
|
21
21
|
DC_INTERCEPT = ".devcontainer/dkit-intercept"
|
|
22
22
|
|
|
@@ -252,6 +252,12 @@ def cmd_hook
|
|
|
252
252
|
if dkit status --quiet 2>/dev/null; then
|
|
253
253
|
dkit run ${cmd} \"\$@\"
|
|
254
254
|
else
|
|
255
|
+
if [[ \"\${DKIT_VERBOSE}\" != \"0\" && -n \"\${_DKIT_ROOT}\" ]]; then
|
|
256
|
+
local _ic=\"\${_DKIT_ROOT}/.devcontainer/dkit-intercept\"
|
|
257
|
+
if ! grep -qxF 'verbose: false' \"\$_ic\" 2>/dev/null; then
|
|
258
|
+
print -u2 \"[dkit] ${cmd} → host\"
|
|
259
|
+
fi
|
|
260
|
+
fi
|
|
255
261
|
command ${cmd} \"\$@\"
|
|
256
262
|
fi
|
|
257
263
|
}"
|
|
@@ -277,6 +283,12 @@ def cmd_hook
|
|
|
277
283
|
if dkit status --quiet 2>/dev/null; then
|
|
278
284
|
dkit code "$@"
|
|
279
285
|
else
|
|
286
|
+
if [[ "${DKIT_VERBOSE}" != "0" && -n "${_DKIT_ROOT}" ]]; then
|
|
287
|
+
local _ic="${_DKIT_ROOT}/.devcontainer/dkit-intercept"
|
|
288
|
+
if ! grep -qxF 'verbose: false' "$_ic" 2>/dev/null; then
|
|
289
|
+
print -u2 "[dkit] code → host"
|
|
290
|
+
fi
|
|
291
|
+
fi
|
|
280
292
|
command code "$@"
|
|
281
293
|
fi
|
|
282
294
|
}
|
|
@@ -285,6 +297,12 @@ def cmd_hook
|
|
|
285
297
|
if dkit status --quiet 2>/dev/null; then
|
|
286
298
|
dkit claude "$@"
|
|
287
299
|
else
|
|
300
|
+
if [[ "${DKIT_VERBOSE}" != "0" && -n "${_DKIT_ROOT}" ]]; then
|
|
301
|
+
local _ic="${_DKIT_ROOT}/.devcontainer/dkit-intercept"
|
|
302
|
+
if ! grep -qxF 'verbose: false' "$_ic" 2>/dev/null; then
|
|
303
|
+
print -u2 "[dkit] claude → host"
|
|
304
|
+
fi
|
|
305
|
+
fi
|
|
288
306
|
command claude "$@"
|
|
289
307
|
fi
|
|
290
308
|
}
|