hub-launch 1.15.0 → 1.17.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.
- package/CHANGELOG.md +12 -0
- package/README.md +103 -2
- package/dist/commands/init.d.ts +55 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +93 -103
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/instructions.d.ts +17 -0
- package/dist/commands/instructions.d.ts.map +1 -0
- package/dist/commands/instructions.js +51 -0
- package/dist/commands/instructions.js.map +1 -0
- package/dist/commands/launch.d.ts +21 -0
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +61 -0
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/script.d.ts +28 -0
- package/dist/commands/script.d.ts.map +1 -0
- package/dist/commands/script.js +69 -0
- package/dist/commands/script.js.map +1 -0
- package/dist/commands/session-hook.d.ts +26 -0
- package/dist/commands/session-hook.d.ts.map +1 -0
- package/dist/commands/session-hook.js +146 -0
- package/dist/commands/session-hook.js.map +1 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/dist/scripts/fix-commit.d.ts +2 -0
- package/dist/scripts/fix-commit.d.ts.map +1 -0
- package/dist/scripts/fix-commit.js +125 -0
- package/dist/scripts/fix-commit.js.map +1 -0
- package/dist/scripts/fix-setup.d.ts +2 -0
- package/dist/scripts/fix-setup.d.ts.map +1 -0
- package/dist/scripts/fix-setup.js +161 -0
- package/dist/scripts/fix-setup.js.map +1 -0
- package/dist/scripts/launch-run.d.ts +14 -0
- package/dist/scripts/launch-run.d.ts.map +1 -0
- package/dist/scripts/launch-run.js +117 -0
- package/dist/scripts/launch-run.js.map +1 -0
- package/dist/scripts/lib/exec.d.ts +48 -0
- package/dist/scripts/lib/exec.d.ts.map +1 -0
- package/dist/scripts/lib/exec.js +61 -0
- package/dist/scripts/lib/exec.js.map +1 -0
- package/dist/scripts/lib/io.d.ts +48 -0
- package/dist/scripts/lib/io.d.ts.map +1 -0
- package/dist/scripts/lib/io.js +72 -0
- package/dist/scripts/lib/io.js.map +1 -0
- package/dist/scripts/lib/read-config.d.ts +26 -0
- package/dist/scripts/lib/read-config.d.ts.map +1 -0
- package/dist/scripts/lib/read-config.js +65 -0
- package/dist/scripts/lib/read-config.js.map +1 -0
- package/dist/scripts/merge-local.d.ts +2 -0
- package/dist/scripts/merge-local.d.ts.map +1 -0
- package/dist/scripts/merge-local.js +146 -0
- package/dist/scripts/merge-local.js.map +1 -0
- package/dist/scripts/merge-remote.d.ts +12 -0
- package/dist/scripts/merge-remote.d.ts.map +1 -0
- package/dist/scripts/merge-remote.js +71 -0
- package/dist/scripts/merge-remote.js.map +1 -0
- package/dist/scripts/schedule-manage.d.ts +2 -0
- package/dist/scripts/schedule-manage.d.ts.map +1 -0
- package/dist/scripts/schedule-manage.js +151 -0
- package/dist/scripts/schedule-manage.js.map +1 -0
- package/dist/scripts/schedule-run.d.ts +2 -0
- package/dist/scripts/schedule-run.d.ts.map +1 -0
- package/dist/scripts/schedule-run.js +146 -0
- package/dist/scripts/schedule-run.js.map +1 -0
- package/dist/scripts/verify-gather.d.ts +2 -0
- package/dist/scripts/verify-gather.d.ts.map +1 -0
- package/dist/scripts/verify-gather.js +210 -0
- package/dist/scripts/verify-gather.js.map +1 -0
- package/dist/scripts/verify-post.d.ts +12 -0
- package/dist/scripts/verify-post.d.ts.map +1 -0
- package/dist/scripts/verify-post.js +72 -0
- package/dist/scripts/verify-post.js.map +1 -0
- package/dist/services/git/FilePublishService.d.ts +6 -0
- package/dist/services/git/FilePublishService.d.ts.map +1 -1
- package/dist/services/git/FilePublishService.js +79 -2
- package/dist/services/git/FilePublishService.js.map +1 -1
- package/dist/services/git/WorktreeService.d.ts +17 -0
- package/dist/services/git/WorktreeService.d.ts.map +1 -1
- package/dist/services/git/WorktreeService.js +40 -0
- package/dist/services/git/WorktreeService.js.map +1 -1
- package/dist/templates/planning-instructions.md +7 -7
- package/dist/templates/skill-creation-instructions.md +2 -2
- package/dist/templates/skills/hula-confirm/SKILL.md +3 -3
- package/dist/templates/skills/hula-fix/SKILL.md +3 -3
- package/dist/templates/skills/hula-launch/SKILL.md +14 -8
- package/dist/templates/skills/hula-merge/SKILL.md +2 -2
- package/dist/templates/skills/hula-plan/SKILL.md +5 -5
- package/dist/templates/skills/hula-schedule/SKILL.md +16 -16
- package/dist/templates/skills/hula-verify/SKILL.md +2 -2
- package/dist/types/config.schema.d.ts +235 -0
- package/dist/types/config.schema.d.ts.map +1 -1
- package/dist/types/config.schema.js +66 -0
- package/dist/types/config.schema.js.map +1 -1
- package/dist/utils/client-session.d.ts +2 -2
- package/dist/utils/client-session.js +2 -2
- package/package.json +6 -5
- package/scripts/postinstall.mjs +101 -0
- package/dist/templates/scripts/hula-fix-commit.sh +0 -114
- package/dist/templates/scripts/hula-fix-setup.sh +0 -152
- package/dist/templates/scripts/hula-launch-run.sh +0 -140
- package/dist/templates/scripts/hula-merge-local.sh +0 -138
- package/dist/templates/scripts/hula-merge-remote.sh +0 -94
- package/dist/templates/scripts/hula-read-config.sh +0 -38
- package/dist/templates/scripts/hula-schedule-manage.sh +0 -159
- package/dist/templates/scripts/hula-schedule-run.sh +0 -148
- package/dist/templates/scripts/hula-session-hook.sh +0 -68
- package/dist/templates/scripts/hula-verify-gather.sh +0 -135
- package/dist/templates/scripts/hula-verify-post.sh +0 -84
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# hula-verify-post.sh — Step 8 of the hula.verify workflow
|
|
3
|
-
# Usage: bash .github/scripts/hula-verify-post.sh <pr-number> <report-file>
|
|
4
|
-
#
|
|
5
|
-
# Posts a verification report as a PR comment mentioning @copilot.
|
|
6
|
-
# Outputs structured JSON to stdout; all other output goes to stderr.
|
|
7
|
-
# Exit codes: 0=success, 1=user error, 2=tool error
|
|
8
|
-
|
|
9
|
-
set -euo pipefail
|
|
10
|
-
|
|
11
|
-
# ── helpers ────────────────────────────────────────────────────────────────────
|
|
12
|
-
|
|
13
|
-
json_escape() {
|
|
14
|
-
printf '%s' "$1" | sed 's/\\/\\\\/g; s/"/\\"/g; s/$/\\n/g' | tr -d '\n' | sed 's/\\n$//'
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
die() {
|
|
18
|
-
local code="$1"; shift
|
|
19
|
-
local safe_msg
|
|
20
|
-
safe_msg=$(json_escape "$*")
|
|
21
|
-
printf '{"status":"error","code":%d,"message":"%s"}\n' "$code" "$safe_msg" >&1
|
|
22
|
-
exit "$code"
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
# ── argument parsing ────────────────────────────────────────────────────────────
|
|
26
|
-
|
|
27
|
-
PR_NUMBER=''
|
|
28
|
-
REPORT_FILE=''
|
|
29
|
-
|
|
30
|
-
while [[ $# -gt 0 ]]; do
|
|
31
|
-
case "$1" in
|
|
32
|
-
[0-9]*)
|
|
33
|
-
if [[ -z "$PR_NUMBER" ]]; then
|
|
34
|
-
PR_NUMBER="$1"
|
|
35
|
-
else
|
|
36
|
-
die 1 "Unexpected positional argument: $1"
|
|
37
|
-
fi
|
|
38
|
-
shift ;;
|
|
39
|
-
*)
|
|
40
|
-
if [[ -z "$REPORT_FILE" ]]; then
|
|
41
|
-
REPORT_FILE="$1"
|
|
42
|
-
else
|
|
43
|
-
die 1 "Unknown argument: $1"
|
|
44
|
-
fi
|
|
45
|
-
shift ;;
|
|
46
|
-
esac
|
|
47
|
-
done
|
|
48
|
-
|
|
49
|
-
if [[ -z "$PR_NUMBER" ]]; then
|
|
50
|
-
die 1 "Usage: bash .github/scripts/hula-verify-post.sh <pr-number> <report-file>"
|
|
51
|
-
fi
|
|
52
|
-
|
|
53
|
-
if [[ -z "$REPORT_FILE" ]]; then
|
|
54
|
-
die 1 "Report file path is required as second argument."
|
|
55
|
-
fi
|
|
56
|
-
|
|
57
|
-
if [[ ! -f "$REPORT_FILE" ]]; then
|
|
58
|
-
die 1 "Report file not found: ${REPORT_FILE}"
|
|
59
|
-
fi
|
|
60
|
-
|
|
61
|
-
# ── Build comment body with @copilot mention ──────────────────────────────────
|
|
62
|
-
|
|
63
|
-
COMMENT_TMP="/tmp/hula-verify-comment-${PR_NUMBER}.md"
|
|
64
|
-
|
|
65
|
-
{
|
|
66
|
-
printf '@copilot Please review this verification report and address any gaps.\n\n'
|
|
67
|
-
cat "$REPORT_FILE"
|
|
68
|
-
} > "$COMMENT_TMP"
|
|
69
|
-
|
|
70
|
-
# ── Post comment ──────────────────────────────────────────────────────────────
|
|
71
|
-
|
|
72
|
-
printf '📝 Posting verification report to PR #%s...\n' "$PR_NUMBER" >&2
|
|
73
|
-
|
|
74
|
-
COMMENT_URL=$(gh pr comment "$PR_NUMBER" --body-file "$COMMENT_TMP" 2>/dev/null) \
|
|
75
|
-
|| die 2 "Failed to post comment to PR #${PR_NUMBER}. You can copy the report manually."
|
|
76
|
-
|
|
77
|
-
rm -f "$COMMENT_TMP"
|
|
78
|
-
|
|
79
|
-
# ── Output result ─────────────────────────────────────────────────────────────
|
|
80
|
-
|
|
81
|
-
SAFE_URL=$(json_escape "${COMMENT_URL:-}")
|
|
82
|
-
|
|
83
|
-
printf '{"status":"success","prNumber":%s,"commentUrl":"%s"}\n' \
|
|
84
|
-
"$PR_NUMBER" "$SAFE_URL"
|