@event4u/agent-config 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/scripts/install +7 -6
- package/scripts/install.py +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -343,6 +343,14 @@ our recommendation order, not its support status.
|
|
|
343
343
|
users" tension without removing any path that an existing user
|
|
344
344
|
might rely on.
|
|
345
345
|
|
|
346
|
+
## [2.2.2](https://github.com/event4u-app/agent-config/compare/2.2.1...2.2.2) (2026-05-12)
|
|
347
|
+
|
|
348
|
+
### Bug Fixes
|
|
349
|
+
|
|
350
|
+
* allow --global installs from agent-config source repo ([1be1b44](https://github.com/event4u-app/agent-config/commit/1be1b4429e8fa3ff3fb2981a1368138aa34186ac))
|
|
351
|
+
|
|
352
|
+
Tests: 3350 (+0 since 2.2.1)
|
|
353
|
+
|
|
346
354
|
## [2.2.1](https://github.com/event4u-app/agent-config/compare/2.2.0...2.2.1) (2026-05-12)
|
|
347
355
|
|
|
348
356
|
### Documentation
|
package/package.json
CHANGED
package/scripts/install
CHANGED
|
@@ -230,17 +230,18 @@ if [[ -z "$TARGET_DIR" ]]; then
|
|
|
230
230
|
fi
|
|
231
231
|
|
|
232
232
|
# Source-repo guard: refuse to install into the agent-config dev tree itself.
|
|
233
|
-
#
|
|
234
|
-
#
|
|
235
|
-
#
|
|
233
|
+
# Defense-in-depth so a direct `bash scripts/install` from inside the source
|
|
234
|
+
# checkout cannot corrupt .augment/ symlinks. Skipped for --global because
|
|
235
|
+
# global installs only write to user-scope paths (~/.config/agent-config/,
|
|
236
|
+
# ~/.claude/, …) and never touch the source tree. Override for self-tests:
|
|
236
237
|
# AGENT_CONFIG_ALLOW_SELF_INSTALL=1.
|
|
237
|
-
if [[ "${AGENT_CONFIG_ALLOW_SELF_INSTALL:-0}" != "1" ]]; then
|
|
238
|
+
if ! $GLOBAL && [[ "${AGENT_CONFIG_ALLOW_SELF_INSTALL:-0}" != "1" ]]; then
|
|
238
239
|
self_marker=""
|
|
239
240
|
if [[ -d "$TARGET_DIR/.agent-src.uncompressed" ]]; then
|
|
240
241
|
self_marker=".agent-src.uncompressed/"
|
|
241
242
|
elif [[ -f "$TARGET_DIR/package.json" ]] && \
|
|
242
|
-
grep -qE '"name"[[:space:]]*:[[:space:]]*"@event4u/
|
|
243
|
-
self_marker='package.json::name === "@event4u/
|
|
243
|
+
grep -qE '"name"[[:space:]]*:[[:space:]]*"@event4u/agent-config"' "$TARGET_DIR/package.json" 2>/dev/null; then
|
|
244
|
+
self_marker='package.json::name === "@event4u/agent-config"'
|
|
244
245
|
fi
|
|
245
246
|
if [[ -n "$self_marker" ]]; then
|
|
246
247
|
err "Refusing to install agent-config into its own source checkout."
|
package/scripts/install.py
CHANGED
|
@@ -2036,7 +2036,14 @@ def install_global(
|
|
|
2036
2036
|
# Refresh the project-scope manifest when running inside a project tree
|
|
2037
2037
|
# (ADR-008 Phase 3.2). Outside a project (e.g. plain `~/`) there is no
|
|
2038
2038
|
# manifest to write and the global lockfile alone is the source of truth.
|
|
2039
|
-
|
|
2039
|
+
# Skipped inside the agent-config source repo (detected by
|
|
2040
|
+
# `.agent-src.uncompressed/`) — maintainers dogfood with their own
|
|
2041
|
+
# `.agent-settings.yml` and the manifest would be untracked noise.
|
|
2042
|
+
if (
|
|
2043
|
+
project_root is not None
|
|
2044
|
+
and (project_root / SETTINGS_FILE).exists()
|
|
2045
|
+
and not (project_root / ".agent-src.uncompressed").is_dir()
|
|
2046
|
+
):
|
|
2040
2047
|
rc = _update_installed_tools_manifest(project_root, tools, "global", force)
|
|
2041
2048
|
if rc != 0:
|
|
2042
2049
|
return rc
|