@uzysjung/agent-harness 26.149.0 → 26.151.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 (65) hide show
  1. package/README.ko.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/{chunk-YSW3OLH4.js → chunk-3QBHZUVB.js} +164 -66
  4. package/dist/chunk-3QBHZUVB.js.map +1 -0
  5. package/dist/index.js +397 -293
  6. package/dist/index.js.map +1 -1
  7. package/dist/trust-tier-drift.js +5 -1
  8. package/dist/trust-tier-drift.js.map +1 -1
  9. package/package.json +1 -1
  10. package/templates/CLAUDE.md +145 -164
  11. package/templates/agents/build-error-resolver.md +1 -1
  12. package/templates/agents/plan-checker.md +1 -1
  13. package/templates/agents/reviewer.md +4 -5
  14. package/templates/antigravity/AGENTS.md.template +3 -23
  15. package/templates/codex/AGENTS.md.template +5 -56
  16. package/templates/hooks/protect-files.sh +4 -0
  17. package/templates/hooks/session-start.sh +57 -3
  18. package/templates/opencode/AGENTS.md.template +4 -52
  19. package/templates/opencode/opencode.json.template +0 -8
  20. package/templates/rules/change-management.md +0 -1
  21. package/templates/rules/cli-development.md +1 -1
  22. package/templates/rules/doc-governance.md +2 -0
  23. package/templates/rules/git-policy.md +1 -1
  24. package/templates/rules/ship-checklist.md +3 -3
  25. package/templates/rules/test-policy.md +3 -8
  26. package/templates/settings.json +1 -16
  27. package/templates/skills/agent-introspection-debugging/SKILL.md +1 -1
  28. package/templates/skills/audit-harness-fit/README.md +113 -0
  29. package/templates/skills/audit-harness-fit/SKILL.md +64 -433
  30. package/templates/skills/audit-harness-fit/evals/scenarios.yaml +222 -0
  31. package/templates/skills/audit-harness-fit/references/apply.md +66 -0
  32. package/templates/skills/audit-harness-fit/references/audit.md +160 -0
  33. package/templates/skills/audit-harness-fit/references/populate.md +74 -0
  34. package/templates/skills/audit-harness-fit/references/verification.md +123 -0
  35. package/templates/skills/audit-service-gaps/SKILL.md +6 -7
  36. package/templates/skills/clear-korean-communication/SKILL.md +8 -13
  37. package/templates/skills/compaction-handoff/SKILL.md +29 -12
  38. package/templates/skills/external-model-consult/SKILL.md +13 -24
  39. package/templates/skills/model-orchestration/SKILL.md +18 -15
  40. package/templates/skills/natural-korean/SKILL.md +45 -0
  41. package/templates/skills/north-star/SKILL.md +4 -6
  42. package/templates/skills/north-star/references/roadmap-method.md +2 -2
  43. package/templates/skills/{task-brief → objective-brief}/SKILL.md +17 -18
  44. package/templates/skills/recurrence-prevention/SKILL.md +16 -16
  45. package/dist/chunk-YSW3OLH4.js.map +0 -1
  46. package/templates/agents/code-reviewer.md +0 -237
  47. package/templates/agents/security-reviewer.md +0 -108
  48. package/templates/hooks/task-brief-nudge.sh +0 -57
  49. package/templates/skills/audit-harness-fit/references/official-criteria.md +0 -367
  50. package/templates/skills/continuous-learning-v2/SKILL.md +0 -361
  51. package/templates/skills/continuous-learning-v2/agents/observer-loop.sh +0 -362
  52. package/templates/skills/continuous-learning-v2/agents/observer.md +0 -189
  53. package/templates/skills/continuous-learning-v2/agents/session-guardian.sh +0 -150
  54. package/templates/skills/continuous-learning-v2/agents/start-observer.sh +0 -252
  55. package/templates/skills/continuous-learning-v2/config.json +0 -8
  56. package/templates/skills/continuous-learning-v2/hooks/observe.sh +0 -585
  57. package/templates/skills/continuous-learning-v2/scripts/detect-project.sh +0 -322
  58. package/templates/skills/continuous-learning-v2/scripts/instinct-cli.py +0 -1956
  59. package/templates/skills/continuous-learning-v2/scripts/lib/homunculus-dir.sh +0 -31
  60. package/templates/skills/continuous-learning-v2/scripts/migrate-homunculus.sh +0 -68
  61. package/templates/skills/continuous-learning-v2/scripts/test_parse_instinct.py +0 -1420
  62. package/templates/skills/humanize-korean/SKILL.md +0 -228
  63. package/templates/skills/spec-scaling/SKILL.md +0 -89
  64. package/templates/skills/strategic-compact/SKILL.md +0 -145
  65. package/templates/skills/strategic-compact/suggest-compact.sh +0 -54
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Shared continuous-learning-v2 data-directory resolver.
3
- #
4
- # Resolution precedence:
5
- # 1. CLV2_HOMUNCULUS_DIR, when absolute
6
- # 2. XDG_DATA_HOME/ecc-homunculus, when XDG_DATA_HOME is absolute
7
- # 3. HOME/.local/share/ecc-homunculus
8
-
9
- _clv2_resolve_homunculus_dir() {
10
- if [ -n "${CLV2_HOMUNCULUS_DIR:-}" ]; then
11
- case "$CLV2_HOMUNCULUS_DIR" in
12
- /*) printf '%s\n' "$CLV2_HOMUNCULUS_DIR"; return 0 ;;
13
- *) printf '[ecc] CLV2_HOMUNCULUS_DIR=%s is not absolute; ignoring\n' "$CLV2_HOMUNCULUS_DIR" >&2 ;;
14
- esac
15
- fi
16
-
17
- if [ -n "${XDG_DATA_HOME:-}" ]; then
18
- case "$XDG_DATA_HOME" in
19
- /*) printf '%s/ecc-homunculus\n' "$XDG_DATA_HOME"; return 0 ;;
20
- *) printf '[ecc] XDG_DATA_HOME=%s is not absolute; ignoring\n' "$XDG_DATA_HOME" >&2 ;;
21
- esac
22
- fi
23
-
24
- case "${HOME:-}" in
25
- /*) printf '%s/.local/share/ecc-homunculus\n' "$HOME" ;;
26
- *)
27
- printf '[ecc] HOME=%s is not absolute; cannot resolve homunculus dir\n' "${HOME:-}" >&2
28
- return 1
29
- ;;
30
- esac
31
- }
@@ -1,68 +0,0 @@
1
- #!/usr/bin/env bash
2
- # One-shot migration from the legacy Claude config tree into the
3
- # continuous-learning-v2 data directory.
4
- set -euo pipefail
5
-
6
- OLD="${HOME}/.claude/homunculus"
7
-
8
- # shellcheck disable=SC1091
9
- . "$(dirname "$0")/lib/homunculus-dir.sh"
10
- NEW="$(_clv2_resolve_homunculus_dir)"
11
-
12
- if [ "$NEW" = "$OLD" ]; then
13
- echo "Resolved destination equals source ($OLD); nothing to migrate."
14
- exit 0
15
- fi
16
-
17
- if [ ! -d "$OLD" ]; then
18
- echo "Nothing to migrate (no $OLD)."
19
- exit 0
20
- fi
21
-
22
- if command -v pgrep >/dev/null 2>&1; then
23
- # pgrep -f treats its argument as an extended regular expression, so $HOME
24
- # must be escaped before interpolation. Without this, regex metacharacters in
25
- # the path (e.g. /home/user.name, /home/c++dev, /home/user (work)) would make
26
- # the match over-broad or invalid, causing false negatives (observer missed,
27
- # migration proceeds unsafely) or false positives (migration blocked).
28
- escaped_home="$(printf '%s' "$HOME" | sed 's/[]\.[(){}+*?|^$]/\\&/g')"
29
- if pgrep -f "${escaped_home}.*observer-loop\\.sh" >/dev/null 2>&1; then
30
- echo "Refusing to migrate: observer-loop.sh is running." >&2
31
- echo "Exit all Claude Code sessions, then re-run." >&2
32
- exit 1
33
- fi
34
- else
35
- echo "Warning: pgrep not available; skipping running-observer check." >&2
36
- fi
37
-
38
- mkdir -p "$(dirname "$NEW")"
39
-
40
- if [ ! -d "$NEW" ]; then
41
- mv "$OLD" "$NEW"
42
- echo "Moved $OLD -> $NEW"
43
- elif [ -z "$(ls -A "$NEW" 2>/dev/null || true)" ]; then
44
- rmdir "$NEW"
45
- mv "$OLD" "$NEW"
46
- echo "Moved $OLD -> $NEW (replaced empty destination)"
47
- else
48
- old_count="$(find "$OLD" -type f 2>/dev/null | wc -l | tr -d ' ')"
49
- new_count="$(find "$NEW" -type f 2>/dev/null | wc -l | tr -d ' ')"
50
- echo "Refusing to migrate: both paths exist with content." >&2
51
- echo " Old: $OLD ($old_count files)" >&2
52
- echo " New: $NEW ($new_count files)" >&2
53
- echo "Resolve manually, then re-run." >&2
54
- exit 1
55
- fi
56
-
57
- settings="${HOME}/.claude/settings.json"
58
- if [ -f "$settings" ] && grep -q '"CLV2_CONFIG"' "$settings" 2>/dev/null; then
59
- if grep -q '\.claude/homunculus' "$settings" 2>/dev/null; then
60
- cat >&2 <<WARN
61
-
62
- Advisory: ~/.claude/settings.json still sets CLV2_CONFIG under the old path.
63
- Update it to: ${NEW}/config.json
64
- (Not editing settings.json automatically.)
65
-
66
- WARN
67
- fi
68
- fi