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.
Files changed (108) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +103 -2
  3. package/dist/commands/init.d.ts +55 -0
  4. package/dist/commands/init.d.ts.map +1 -1
  5. package/dist/commands/init.js +93 -103
  6. package/dist/commands/init.js.map +1 -1
  7. package/dist/commands/instructions.d.ts +17 -0
  8. package/dist/commands/instructions.d.ts.map +1 -0
  9. package/dist/commands/instructions.js +51 -0
  10. package/dist/commands/instructions.js.map +1 -0
  11. package/dist/commands/launch.d.ts +21 -0
  12. package/dist/commands/launch.d.ts.map +1 -1
  13. package/dist/commands/launch.js +61 -0
  14. package/dist/commands/launch.js.map +1 -1
  15. package/dist/commands/script.d.ts +28 -0
  16. package/dist/commands/script.d.ts.map +1 -0
  17. package/dist/commands/script.js +69 -0
  18. package/dist/commands/script.js.map +1 -0
  19. package/dist/commands/session-hook.d.ts +26 -0
  20. package/dist/commands/session-hook.d.ts.map +1 -0
  21. package/dist/commands/session-hook.js +146 -0
  22. package/dist/commands/session-hook.js.map +1 -0
  23. package/dist/index.js +21 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/scripts/fix-commit.d.ts +2 -0
  26. package/dist/scripts/fix-commit.d.ts.map +1 -0
  27. package/dist/scripts/fix-commit.js +125 -0
  28. package/dist/scripts/fix-commit.js.map +1 -0
  29. package/dist/scripts/fix-setup.d.ts +2 -0
  30. package/dist/scripts/fix-setup.d.ts.map +1 -0
  31. package/dist/scripts/fix-setup.js +161 -0
  32. package/dist/scripts/fix-setup.js.map +1 -0
  33. package/dist/scripts/launch-run.d.ts +14 -0
  34. package/dist/scripts/launch-run.d.ts.map +1 -0
  35. package/dist/scripts/launch-run.js +117 -0
  36. package/dist/scripts/launch-run.js.map +1 -0
  37. package/dist/scripts/lib/exec.d.ts +48 -0
  38. package/dist/scripts/lib/exec.d.ts.map +1 -0
  39. package/dist/scripts/lib/exec.js +61 -0
  40. package/dist/scripts/lib/exec.js.map +1 -0
  41. package/dist/scripts/lib/io.d.ts +48 -0
  42. package/dist/scripts/lib/io.d.ts.map +1 -0
  43. package/dist/scripts/lib/io.js +72 -0
  44. package/dist/scripts/lib/io.js.map +1 -0
  45. package/dist/scripts/lib/read-config.d.ts +26 -0
  46. package/dist/scripts/lib/read-config.d.ts.map +1 -0
  47. package/dist/scripts/lib/read-config.js +65 -0
  48. package/dist/scripts/lib/read-config.js.map +1 -0
  49. package/dist/scripts/merge-local.d.ts +2 -0
  50. package/dist/scripts/merge-local.d.ts.map +1 -0
  51. package/dist/scripts/merge-local.js +146 -0
  52. package/dist/scripts/merge-local.js.map +1 -0
  53. package/dist/scripts/merge-remote.d.ts +12 -0
  54. package/dist/scripts/merge-remote.d.ts.map +1 -0
  55. package/dist/scripts/merge-remote.js +71 -0
  56. package/dist/scripts/merge-remote.js.map +1 -0
  57. package/dist/scripts/schedule-manage.d.ts +2 -0
  58. package/dist/scripts/schedule-manage.d.ts.map +1 -0
  59. package/dist/scripts/schedule-manage.js +151 -0
  60. package/dist/scripts/schedule-manage.js.map +1 -0
  61. package/dist/scripts/schedule-run.d.ts +2 -0
  62. package/dist/scripts/schedule-run.d.ts.map +1 -0
  63. package/dist/scripts/schedule-run.js +146 -0
  64. package/dist/scripts/schedule-run.js.map +1 -0
  65. package/dist/scripts/verify-gather.d.ts +2 -0
  66. package/dist/scripts/verify-gather.d.ts.map +1 -0
  67. package/dist/scripts/verify-gather.js +210 -0
  68. package/dist/scripts/verify-gather.js.map +1 -0
  69. package/dist/scripts/verify-post.d.ts +12 -0
  70. package/dist/scripts/verify-post.d.ts.map +1 -0
  71. package/dist/scripts/verify-post.js +72 -0
  72. package/dist/scripts/verify-post.js.map +1 -0
  73. package/dist/services/git/FilePublishService.d.ts +6 -0
  74. package/dist/services/git/FilePublishService.d.ts.map +1 -1
  75. package/dist/services/git/FilePublishService.js +79 -2
  76. package/dist/services/git/FilePublishService.js.map +1 -1
  77. package/dist/services/git/WorktreeService.d.ts +17 -0
  78. package/dist/services/git/WorktreeService.d.ts.map +1 -1
  79. package/dist/services/git/WorktreeService.js +40 -0
  80. package/dist/services/git/WorktreeService.js.map +1 -1
  81. package/dist/templates/planning-instructions.md +7 -7
  82. package/dist/templates/skill-creation-instructions.md +2 -2
  83. package/dist/templates/skills/hula-confirm/SKILL.md +3 -3
  84. package/dist/templates/skills/hula-fix/SKILL.md +3 -3
  85. package/dist/templates/skills/hula-launch/SKILL.md +14 -8
  86. package/dist/templates/skills/hula-merge/SKILL.md +2 -2
  87. package/dist/templates/skills/hula-plan/SKILL.md +5 -5
  88. package/dist/templates/skills/hula-schedule/SKILL.md +16 -16
  89. package/dist/templates/skills/hula-verify/SKILL.md +2 -2
  90. package/dist/types/config.schema.d.ts +235 -0
  91. package/dist/types/config.schema.d.ts.map +1 -1
  92. package/dist/types/config.schema.js +66 -0
  93. package/dist/types/config.schema.js.map +1 -1
  94. package/dist/utils/client-session.d.ts +2 -2
  95. package/dist/utils/client-session.js +2 -2
  96. package/package.json +6 -5
  97. package/scripts/postinstall.mjs +101 -0
  98. package/dist/templates/scripts/hula-fix-commit.sh +0 -114
  99. package/dist/templates/scripts/hula-fix-setup.sh +0 -152
  100. package/dist/templates/scripts/hula-launch-run.sh +0 -140
  101. package/dist/templates/scripts/hula-merge-local.sh +0 -138
  102. package/dist/templates/scripts/hula-merge-remote.sh +0 -94
  103. package/dist/templates/scripts/hula-read-config.sh +0 -38
  104. package/dist/templates/scripts/hula-schedule-manage.sh +0 -159
  105. package/dist/templates/scripts/hula-schedule-run.sh +0 -148
  106. package/dist/templates/scripts/hula-session-hook.sh +0 -68
  107. package/dist/templates/scripts/hula-verify-gather.sh +0 -135
  108. 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"