@onlooker-community/ecosystem 0.33.0 → 0.33.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 (32) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.release-please-manifest.json +7 -7
  3. package/CHANGELOG.md +7 -0
  4. package/package.json +1 -1
  5. package/plugins/archivist/scripts/lib/archivist-config.sh +10 -34
  6. package/plugins/assayer/.claude-plugin/plugin.json +1 -1
  7. package/plugins/assayer/CHANGELOG.md +7 -0
  8. package/plugins/assayer/scripts/lib/assayer-config.sh +39 -62
  9. package/plugins/cartographer/scripts/lib/cartographer-config.sh +11 -29
  10. package/plugins/compass/scripts/lib/compass-config.sh +16 -46
  11. package/plugins/counsel/scripts/lib/counsel-config.sh +15 -46
  12. package/plugins/curator/.claude-plugin/plugin.json +1 -1
  13. package/plugins/curator/CHANGELOG.md +7 -0
  14. package/plugins/curator/scripts/lib/curator-config.sh +19 -44
  15. package/plugins/echo/scripts/lib/echo-config.sh +30 -59
  16. package/plugins/governor/scripts/lib/governor-config.sh +11 -41
  17. package/plugins/historian/scripts/lib/historian-config.sh +9 -33
  18. package/plugins/inspector/.claude-plugin/plugin.json +1 -1
  19. package/plugins/inspector/CHANGELOG.md +7 -0
  20. package/plugins/inspector/scripts/lib/inspector-config.sh +39 -63
  21. package/plugins/librarian/scripts/lib/librarian-config.sh +10 -34
  22. package/plugins/lineage/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lineage/CHANGELOG.md +7 -0
  24. package/plugins/lineage/scripts/lib/lineage-config.sh +17 -53
  25. package/plugins/scribe/.claude-plugin/plugin.json +1 -1
  26. package/plugins/scribe/CHANGELOG.md +7 -0
  27. package/plugins/scribe/scripts/lib/scribe-config.sh +17 -47
  28. package/plugins/tribunal/.claude-plugin/plugin.json +1 -1
  29. package/plugins/tribunal/CHANGELOG.md +7 -0
  30. package/plugins/tribunal/scripts/lib/tribunal-config.sh +25 -63
  31. package/plugins/warden/scripts/lib/warden-config.sh +17 -54
  32. package/scripts/lib/config-loader.sh +8 -1
@@ -1,65 +1,35 @@
1
1
  #!/usr/bin/env bash
2
- # Config resolution for Scribe.
2
+ # Config resolution for scribe.
3
3
  #
4
- # Reads three layers, latest wins:
4
+ # Uses the shared config loader from ecosystem. Reads five layers, latest wins:
5
5
  # 1. plugins/scribe/config.json (defaults shipped with the plugin)
6
6
  # 2. ~/.claude/settings.json
7
- # 3. <repo>/.claude/settings.json
7
+ # 3. ~/.claude/settings.local.json (local overrides user)
8
+ # 4. <repo>/.claude/settings.json
9
+ # 5. <repo>/.claude/settings.local.json (local overrides project)
8
10
  #
9
11
  # Exposes:
10
- # scribe_config_load <repo_root> # populates _SCRIBE_CONFIG (JSON)
11
- # scribe_config_get <jq-path> # echoes string value (empty if unset)
12
- # scribe_config_get_json <jq-path> # echoes JSON value (null if unset)
12
+ # scribe_config_load <repo_root> # populates _scribe_CONFIG (JSON)
13
+ # scribe_config_get <jq-path> # echoes string value (empty if unset)
14
+ # scribe_config_get_json <jq-path> # echoes JSON value (null if unset)
13
15
 
14
- _SCRIBE_CONFIG="{}"
16
+ # shellcheck source=../../../scripts/lib/config-loader.sh
17
+ source "${PLUGIN_ROOT}/../../scripts/lib/config-loader.sh"
18
+
19
+ _scribe_CONFIG="{}"
15
20
 
16
21
  scribe_config_load() {
17
22
  local repo_root="${1:-}"
18
- local plugin_root="${CLAUDE_PLUGIN_ROOT:-}"
19
- local home_dir="${HOME:-}"
20
-
21
- local merged="{}"
22
- local file
23
-
24
- file="${plugin_root}/config.json"
25
- if [[ -f "$file" ]]; then
26
- local defaults
27
- defaults=$(jq '.' "$file" 2>/dev/null) || defaults="{}"
28
- merged=$(jq -n --argjson a "$merged" --argjson b "$defaults" '$a * $b' 2>/dev/null) \
29
- || merged="$defaults"
30
- fi
31
-
32
- local repo_settings=""
33
- [[ -n "$repo_root" ]] && repo_settings="${repo_root}/.claude/settings.json"
34
-
35
- for file in "${home_dir}/.claude/settings.json" "$repo_settings"; do
36
- [[ -n "$file" && -f "$file" ]] || continue
37
- local overlay
38
- overlay=$(jq '{ scribe: (.scribe // {}) }' "$file" 2>/dev/null) || continue
39
- [[ -z "$overlay" ]] && continue
40
- local attempt
41
- if attempt=$(jq -n --argjson a "$merged" --argjson b "$overlay" '
42
- def deepmerge($a; $b):
43
- if ($a|type) == "object" and ($b|type) == "object" then
44
- reduce (($a|keys) + ($b|keys) | unique)[] as $k
45
- ({}; .[$k] = deepmerge($a[$k]; $b[$k]))
46
- elif $b == null then $a
47
- else $b end;
48
- deepmerge($a; $b)
49
- ' 2>/dev/null) && [[ -n "$attempt" ]]; then
50
- merged="$attempt"
51
- fi
52
- done
53
-
54
- _SCRIBE_CONFIG="$merged"
23
+ config_load_plugin "scribe" "$repo_root" "_scribe_CONFIG"
24
+ return 0
55
25
  }
56
26
 
57
27
  scribe_config_get() {
58
28
  local path="$1"
59
- printf '%s' "$_SCRIBE_CONFIG" | jq -r "${path} // empty" 2>/dev/null
29
+ config_get "_scribe_CONFIG" "${path}"
60
30
  }
61
31
 
62
32
  scribe_config_get_json() {
63
33
  local path="$1"
64
- printf '%s' "$_SCRIBE_CONFIG" | jq -c "${path}" 2>/dev/null
65
- }
34
+ config_get_json "_scribe_CONFIG" "${path}"
35
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tribunal",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Multi-agent execution with LLM-as-a-Judge quality gates. An Actor performs work; a jury of typed Judges scores it against a project-overridable rubric; a Meta-Judge reviews the jury for bias; the gate decides accept, retry, or exhaust. Grounded in LLM-as-a-Judge (Zheng et al. 2023) and LLM-as-a-Meta-Judge (Wu et al. 2024). Builds on the Onlooker ecosystem plugin.",
5
5
  "author": {
6
6
  "name": "Onlooker Community",
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.1.2](https://github.com/onlooker-community/ecosystem/compare/tribunal-v1.1.1...tribunal-v1.1.2) (2026-08-02)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * restore config convenience functions & refactor execution plugins to shared loader ([#128](https://github.com/onlooker-community/ecosystem/issues/128)) ([4b3660c](https://github.com/onlooker-community/ecosystem/commit/4b3660c5a8b234187ec1e71c37b63e6a3d305c98))
9
+
3
10
  ## [1.1.1](https://github.com/onlooker-community/ecosystem/compare/tribunal-v1.1.0...tribunal-v1.1.1) (2026-08-01)
4
11
 
5
12
 
@@ -1,93 +1,55 @@
1
1
  #!/usr/bin/env bash
2
- # Config resolution for Tribunal.
2
+ # Config resolution for tribunal.
3
3
  #
4
- # Reads three layers, latest wins:
4
+ # Uses the shared config loader from ecosystem. Reads five layers, latest wins:
5
5
  # 1. plugins/tribunal/config.json (defaults shipped with the plugin)
6
6
  # 2. ~/.claude/settings.json
7
- # 3. <repo>/.claude/settings.json
7
+ # 3. ~/.claude/settings.local.json (local overrides user)
8
+ # 4. <repo>/.claude/settings.json
9
+ # 5. <repo>/.claude/settings.local.json (local overrides project)
8
10
  #
9
11
  # Exposes:
10
- # tribunal_config_load <repo_root> # populates _TRIBUNAL_CONFIG (JSON)
11
- # tribunal_config_get <jq-path> # echoes string value (empty if unset)
12
- # tribunal_config_get_json <jq-path> # echoes JSON value (null if unset)
13
- # tribunal_config_stop_hook_enabled # 0 if tribunal.stop_hook.enabled is true
14
- # tribunal_config_judge_model <judge_type>
15
- # # echoes per-judge-type model override,
16
- # # falling back to tribunal.judges.model
17
- #
18
- # Settings overlay only touches the `tribunal.*` subtree so this plugin coexists
19
- # with other plugins' configuration.
12
+ # tribunal_config_load <repo_root> # populates _tribunal_CONFIG (JSON)
13
+ # tribunal_config_get <jq-path> # echoes string value (empty if unset)
14
+ # tribunal_config_get_json <jq-path> # echoes JSON value (null if unset)
15
+
16
+ # shellcheck source=../../../scripts/lib/config-loader.sh
17
+ source "${PLUGIN_ROOT}/../../scripts/lib/config-loader.sh"
20
18
 
21
19
  _TRIBUNAL_CONFIG="{}"
22
20
 
23
21
  tribunal_config_load() {
24
22
  local repo_root="${1:-}"
25
- local plugin_root="${CLAUDE_PLUGIN_ROOT:-}"
26
- local home_dir="${HOME:-}"
27
-
28
- local merged="{}"
29
- local file
30
-
31
- file="${plugin_root}/config.json"
32
- if [[ -f "$file" ]]; then
33
- local defaults
34
- defaults=$(jq '.' "$file" 2>/dev/null) || defaults="{}"
35
- merged=$(jq -n --argjson a "$merged" --argjson b "$defaults" '$a * $b' 2>/dev/null) \
36
- || merged="$defaults"
37
- fi
38
-
39
- for file in "${home_dir}/.claude/settings.json" "${repo_root}/.claude/settings.json"; do
40
- [[ -n "$file" && -f "$file" ]] || continue
41
- local overlay
42
- overlay=$(jq '{ tribunal: (.tribunal // {}) }' "$file" 2>/dev/null) || continue
43
- [[ -z "$overlay" ]] && continue
44
- local attempt
45
- if attempt=$(jq -n --argjson a "$merged" --argjson b "$overlay" '
46
- def deepmerge($a; $b):
47
- if ($a|type) == "object" and ($b|type) == "object" then
48
- reduce (($a|keys) + ($b|keys) | unique)[] as $k
49
- ({}; .[$k] = deepmerge($a[$k]; $b[$k]))
50
- elif $b == null then $a
51
- else $b end;
52
- deepmerge($a; $b)
53
- ' 2>/dev/null) && [[ -n "$attempt" ]]; then
54
- merged="$attempt"
55
- fi
56
- done
57
-
58
- _TRIBUNAL_CONFIG="$merged"
23
+ config_load_plugin "tribunal" "$repo_root" "_TRIBUNAL_CONFIG"
24
+ return 0
59
25
  }
60
26
 
61
- # Read a string value from the loaded config.
62
- # Usage: tribunal_config_get '.tribunal.session.gate_policy'
63
27
  tribunal_config_get() {
64
28
  local path="$1"
65
- printf '%s' "$_TRIBUNAL_CONFIG" | jq -r "${path} // empty" 2>/dev/null
29
+ config_get "_TRIBUNAL_CONFIG" "${path}"
66
30
  }
67
31
 
68
- # Read a JSON value (arrays, objects, numbers) from the loaded config.
69
- # Usage: tribunal_config_get_json '.tribunal.session.judge_types'
70
32
  tribunal_config_get_json() {
71
33
  local path="$1"
72
- printf '%s' "$_TRIBUNAL_CONFIG" | jq -c "${path}" 2>/dev/null
34
+ config_get_json "_TRIBUNAL_CONFIG" "${path}"
73
35
  }
74
36
 
75
- # Returns 0 if tribunal.stop_hook.enabled is true. Default is false.
76
37
  tribunal_config_stop_hook_enabled() {
77
38
  local v
78
39
  v=$(tribunal_config_get '.tribunal.stop_hook.enabled')
79
40
  [[ "$v" == "true" ]]
80
41
  }
81
42
 
82
- # Resolve the model id for a given judge_type.
83
- # Precedence: tribunal.judges.<type>.model > tribunal.judges.model
84
43
  tribunal_config_judge_model() {
85
- local judge_type="$1"
86
- local override
87
- override=$(tribunal_config_get ".tribunal.judges.\"${judge_type}\".model")
88
- if [[ -n "$override" ]]; then
89
- printf '%s' "$override"
90
- return 0
44
+ local judge_type="${1:-}"
45
+ local v
46
+ if [[ -n "$judge_type" ]]; then
47
+ v=$(tribunal_config_get ".tribunal.judges.\"$judge_type\".model")
48
+ if [[ -n "$v" ]]; then
49
+ printf '%s' "$v"
50
+ return 0
51
+ fi
91
52
  fi
92
- tribunal_config_get '.tribunal.judges.model'
53
+ v=$(tribunal_config_get '.tribunal.judges.model')
54
+ printf '%s' "${v:-claude-opus-4-7}"
93
55
  }
@@ -1,72 +1,35 @@
1
1
  #!/usr/bin/env bash
2
- # Config resolution for Warden.
2
+ # Config resolution for warden.
3
3
  #
4
- # Reads three layers, latest wins:
4
+ # Uses the shared config loader from ecosystem. Reads five layers, latest wins:
5
5
  # 1. plugins/warden/config.json (defaults shipped with the plugin)
6
6
  # 2. ~/.claude/settings.json
7
- # 3. <repo>/.claude/settings.json
7
+ # 3. ~/.claude/settings.local.json (local overrides user)
8
+ # 4. <repo>/.claude/settings.json
9
+ # 5. <repo>/.claude/settings.local.json (local overrides project)
8
10
  #
9
11
  # Exposes:
10
- # warden_config_load <repo_root> # populates _WARDEN_CONFIG (JSON)
11
- # warden_config_get <jq-path> # echoes string value (empty if unset)
12
- # warden_config_get_json <jq-path> # echoes JSON value (null if unset)
12
+ # warden_config_load <repo_root> # populates _warden_CONFIG (JSON)
13
+ # warden_config_get <jq-path> # echoes string value (empty if unset)
14
+ # warden_config_get_json <jq-path> # echoes JSON value (null if unset)
13
15
 
14
- _WARDEN_CONFIG="{}"
16
+ # shellcheck source=../../../scripts/lib/config-loader.sh
17
+ source "${PLUGIN_ROOT}/../../scripts/lib/config-loader.sh"
18
+
19
+ _warden_CONFIG="{}"
15
20
 
16
21
  warden_config_load() {
17
22
  local repo_root="${1:-}"
18
- local plugin_root="${CLAUDE_PLUGIN_ROOT:-}"
19
- local home_dir="${HOME:-}"
20
-
21
- local merged="{}"
22
- local file
23
-
24
- file="${plugin_root}/config.json"
25
- if [[ -f "$file" ]]; then
26
- local defaults
27
- defaults=$(jq '.' "$file" 2>/dev/null) || defaults="{}"
28
- merged=$(jq -n --argjson a "$merged" --argjson b "$defaults" '$a * $b' 2>/dev/null) \
29
- || merged="$defaults"
30
- fi
31
-
32
- local repo_settings=""
33
- [[ -n "$repo_root" ]] && repo_settings="${repo_root}/.claude/settings.json"
34
-
35
- for file in "${home_dir}/.claude/settings.json" "$repo_settings"; do
36
- [[ -n "$file" && -f "$file" ]] || continue
37
- local overlay
38
- overlay=$(jq '{ warden: (.warden // {}) }' "$file" 2>/dev/null) || continue
39
- [[ -z "$overlay" ]] && continue
40
- local attempt
41
- if attempt=$(jq -n --argjson a "$merged" --argjson b "$overlay" '
42
- def deepmerge($a; $b):
43
- if ($a|type) == "object" and ($b|type) == "object" then
44
- reduce (($a|keys) + ($b|keys) | unique)[] as $k
45
- ({}; .[$k] = deepmerge($a[$k]; $b[$k]))
46
- elif $b == null then $a
47
- else $b end;
48
- deepmerge($a; $b)
49
- ' 2>/dev/null) && [[ -n "$attempt" ]]; then
50
- merged="$attempt"
51
- fi
52
- done
53
-
54
- _WARDEN_CONFIG="$merged"
23
+ config_load_plugin "warden" "$repo_root" "_warden_CONFIG"
24
+ return 0
55
25
  }
56
26
 
57
27
  warden_config_get() {
58
28
  local path="$1"
59
- # NB: do NOT use `${path} // empty` — jq's `//` treats `false` and `0` as
60
- # empty, so a `false` boolean would read back as "" and a `${v:-true}`
61
- # default would silently flip it to true. Emit the raw value and map only a
62
- # literal JSON null to the empty string.
63
- local v
64
- v=$(printf '%s' "$_WARDEN_CONFIG" | jq -r "${path}" 2>/dev/null) || return 1
65
- [[ "$v" == "null" ]] && v=""
66
- printf '%s' "$v"
29
+ config_get "_warden_CONFIG" "${path}"
67
30
  }
68
31
 
69
32
  warden_config_get_json() {
70
33
  local path="$1"
71
- printf '%s' "$_WARDEN_CONFIG" | jq -c "${path}" 2>/dev/null
72
- }
34
+ config_get_json "_warden_CONFIG" "${path}"
35
+ }
@@ -110,7 +110,14 @@ config_get() {
110
110
 
111
111
  # Use indirect expansion to read the variable's value.
112
112
  local config_json="${!config_var}"
113
- printf '%s' "$config_json" | jq -r "${path} // empty" 2>/dev/null
113
+ # NB: do NOT use `${path} // empty` — jq's `//` treats `false` and `0` as
114
+ # empty, so a false boolean would read back as "" and a true default would
115
+ # silently flip it. Emit the raw value and map only a literal JSON null to
116
+ # the empty string.
117
+ local v
118
+ v=$(printf '%s' "$config_json" | jq -r "${path}" 2>/dev/null) || return 1
119
+ [[ "$v" == "null" ]] && v=""
120
+ printf '%s' "$v"
114
121
  }
115
122
 
116
123
  # Get a JSON value from loaded config.