@yandy-r/ycc-opencode 6.0.0 → 6.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.
- package/AGENTS.md +3 -2
- package/README.md +10 -1
- package/agents/backport-conflict-resolver.md +346 -4
- package/agents/db-modifier.md +346 -4
- package/agents/git-cleanup.md +3 -2
- package/agents/pr-comment-fixer.md +365 -23
- package/agents/release-fix-applier.md +383 -19
- package/agents/review-fixer.md +371 -26
- package/index.js +268 -5
- package/package.json +3 -2
- package/registration.json +4113 -1238
- package/shared/references/ci-monitoring.md +11 -1
- package/shared/references/goal-pairing.md +4 -2
- package/shared/references/question-policy.md +99 -0
- package/shared/references/review-dispatch.md +4 -2
- package/shared/references/standalone-dispatch.md +4 -2
- package/shared/references/target-capability-matrix.md +227 -36
- package/shared/references/worktree-strategy.md +20 -4
- package/shared/scripts/worktree-paths.sh +7 -2
- package/skills/backport/SKILL.md +2 -0
- package/skills/blueprint/SKILL.md +2 -0
- package/skills/bundle-author/SKILL.md +2 -0
- package/skills/bundle-release/SKILL.md +11 -7
- package/skills/bundle-release/references/release-checklist.md +4 -4
- package/skills/bundle-release/references/version-policy.md +21 -15
- package/skills/bundle-release/scripts/bump-version.sh +5 -3
- package/skills/bundle-release/scripts/draft-notes.sh +1 -1
- package/skills/bundle-release/scripts/preflight.sh +2 -1
- package/skills/bundle-release/scripts/release_versions.py +21 -7
- package/skills/clean/SKILL.md +2 -0
- package/skills/code-report/SKILL.md +2 -0
- package/skills/code-review/SKILL.md +2 -0
- package/skills/compatibility-audit/SKILL.md +9 -6
- package/skills/compatibility-audit/references/reading-the-report.md +4 -1
- package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +71 -12
- package/skills/compatibility-audit/scripts/audit-target-features.sh +58 -20
- package/skills/feature-research/SKILL.md +2 -0
- package/skills/formatters/SKILL.md +2 -0
- package/skills/git-cleanup/SKILL.md +19 -5
- package/skills/git-cleanup/references/active-code-rules.md +8 -3
- package/skills/git-workflow/SKILL.md +2 -0
- package/skills/implement-plan/SKILL.md +2 -0
- package/skills/init/SKILL.md +2 -0
- package/skills/init/templates/git/gitignore.tmpl +1 -0
- package/skills/plan/SKILL.md +2 -0
- package/skills/plan-workflow/SKILL.md +4 -1
- package/skills/pr-autofix/SKILL.md +2 -0
- package/skills/prp-implement/SKILL.md +2 -0
- package/skills/prp-plan/SKILL.md +2 -2
- package/skills/prp-pr/SKILL.md +2 -0
- package/skills/prp-prd/SKILL.md +2 -0
- package/skills/prp-spec/SKILL.md +2 -0
- package/skills/quick-review/SKILL.md +5 -3
- package/skills/release-model/SKILL.md +2 -0
- package/skills/releaser/SKILL.md +2 -0
- package/skills/research-to-issues/SKILL.md +2 -0
- package/skills/resume-session/SKILL.md +2 -0
- package/skills/review-fix/SKILL.md +11 -9
- package/skills/save-session/SKILL.md +2 -0
- package/ycc-sensitive-guard/index.js +621 -0
- package/ycc-sensitive-guard/package.json +7 -0
- package/ycc-sensitive-guard/policy.json +40 -0
- package/skills/prp-plan/scripts/preflight-enhanced-agents.sh +0 -111
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# preflight-enhanced-agents.sh
|
|
3
|
-
#
|
|
4
|
-
# Verifies that agent files required by `prp-plan --enhanced` are present
|
|
5
|
-
# in the running plugin bundle. Exits 0 if all required agents are present;
|
|
6
|
-
# exits 1 with a clear error if any required agent is missing.
|
|
7
|
-
#
|
|
8
|
-
# Usage:
|
|
9
|
-
# preflight-enhanced-agents.sh [<plugin-root>]
|
|
10
|
-
#
|
|
11
|
-
# Args:
|
|
12
|
-
# plugin-root — optional absolute path to the plugin root (the directory
|
|
13
|
-
# containing `agents/`, `skills/`, etc.). When omitted, the
|
|
14
|
-
# script derives the root from its own install location
|
|
15
|
-
# (3 directories up from this file).
|
|
16
|
-
#
|
|
17
|
-
# Exit codes:
|
|
18
|
-
# 0 - All required agents present (optional agents may or may not be present)
|
|
19
|
-
# 1 - One or more required agents are missing
|
|
20
|
-
# 2 - Plugin root could not be resolved or does not exist
|
|
21
|
-
|
|
22
|
-
set -euo pipefail
|
|
23
|
-
|
|
24
|
-
# ---------------------------------------------------------------------------
|
|
25
|
-
# Resolve plugin root
|
|
26
|
-
# ---------------------------------------------------------------------------
|
|
27
|
-
|
|
28
|
-
if [[ -n "${1:-}" ]]; then
|
|
29
|
-
PLUGIN_ROOT="$1"
|
|
30
|
-
else
|
|
31
|
-
# Script lives at <plugin-root>/skills/prp-plan/scripts/<this-file>.
|
|
32
|
-
# Three directories up from this file is the plugin root.
|
|
33
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
|
|
34
|
-
PLUGIN_ROOT="$(cd "${SCRIPT_DIR}/../../.." && pwd)"
|
|
35
|
-
fi
|
|
36
|
-
|
|
37
|
-
if [[ -z "${PLUGIN_ROOT}" || ! -d "${PLUGIN_ROOT}" ]]; then
|
|
38
|
-
printf 'Error: plugin root must be an existing directory (got: %s)\n' \
|
|
39
|
-
"${PLUGIN_ROOT}" >&2
|
|
40
|
-
exit 2
|
|
41
|
-
fi
|
|
42
|
-
|
|
43
|
-
AGENTS_DIR="${PLUGIN_ROOT}/agents"
|
|
44
|
-
|
|
45
|
-
if [[ ! -d "${AGENTS_DIR}" ]]; then
|
|
46
|
-
printf 'Error: expected agents directory not found at %s\n' "${AGENTS_DIR}" >&2
|
|
47
|
-
exit 2
|
|
48
|
-
fi
|
|
49
|
-
|
|
50
|
-
# ---------------------------------------------------------------------------
|
|
51
|
-
# Agent lists
|
|
52
|
-
# ---------------------------------------------------------------------------
|
|
53
|
-
|
|
54
|
-
# Required: script exits 1 if any of these are absent.
|
|
55
|
-
REQUIRED_AGENTS=(
|
|
56
|
-
"prp-researcher"
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
# Optional: script prints a notice but continues if any of these are absent.
|
|
60
|
-
OPTIONAL_AGENTS=(
|
|
61
|
-
"research-specialist"
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
# ---------------------------------------------------------------------------
|
|
65
|
-
# Validation helpers
|
|
66
|
-
# ---------------------------------------------------------------------------
|
|
67
|
-
|
|
68
|
-
MISSING_REQUIRED=()
|
|
69
|
-
|
|
70
|
-
check_required_agent() {
|
|
71
|
-
local name="$1"
|
|
72
|
-
local path="${AGENTS_DIR}/${name}.md"
|
|
73
|
-
if [[ ! -f "${path}" ]]; then
|
|
74
|
-
printf 'Error: --enhanced mode requires agent '\''%s'\'' but %s was not found.\n' \
|
|
75
|
-
"${name}" "${path}" >&2
|
|
76
|
-
MISSING_REQUIRED+=("${name}")
|
|
77
|
-
fi
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
check_optional_agent() {
|
|
81
|
-
local name="$1"
|
|
82
|
-
local path="${AGENTS_DIR}/${name}.md"
|
|
83
|
-
if [[ ! -f "${path}" ]]; then
|
|
84
|
-
printf 'Notice: optional enhanced-mode agent '\''%s'\'' not found at %s (will fall back to prp-researcher).\n' \
|
|
85
|
-
"${name}" "${path}" >&2
|
|
86
|
-
fi
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
# ---------------------------------------------------------------------------
|
|
90
|
-
# Run checks — collect all failures before exiting
|
|
91
|
-
# ---------------------------------------------------------------------------
|
|
92
|
-
|
|
93
|
-
for agent in "${REQUIRED_AGENTS[@]}"; do
|
|
94
|
-
check_required_agent "${agent}"
|
|
95
|
-
done
|
|
96
|
-
|
|
97
|
-
for agent in "${OPTIONAL_AGENTS[@]}"; do
|
|
98
|
-
check_optional_agent "${agent}"
|
|
99
|
-
done
|
|
100
|
-
|
|
101
|
-
# ---------------------------------------------------------------------------
|
|
102
|
-
# Final result
|
|
103
|
-
# ---------------------------------------------------------------------------
|
|
104
|
-
|
|
105
|
-
if [[ ${#MISSING_REQUIRED[@]} -gt 0 ]]; then
|
|
106
|
-
exit 1
|
|
107
|
-
fi
|
|
108
|
-
|
|
109
|
-
printf 'preflight-enhanced-agents: OK (%d required, %d optional checked)\n' \
|
|
110
|
-
"${#REQUIRED_AGENTS[@]}" "${#OPTIONAL_AGENTS[@]}"
|
|
111
|
-
exit 0
|