Skip to content

Commit eafde8c

Browse files
fix: remove all tk script references — fix CI failures
Remove deprecated tk wrapper and all associated test files, helper scripts, and references. The v3 event-sourced ticket system (ticket CLI) replaces all tk functionality. - Delete 18 tk test files and 3 tk helper scripts - Remove tk allowlist from tickets-tracker bash guard hook - Update scripts that called tk sync to use ticket commands - Remove require-tk.sh sourcing from validate-issues.sh - Clean up tk references in shim/setup/probe test files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b7b2d38 commit eafde8c

34 files changed

+20
-5523
lines changed

plugins/dso/hooks/lib/pre-bash-functions.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -783,12 +783,12 @@ hook_tickets_tracker_bash_guard() {
783783
return 0
784784
fi
785785

786-
# Allowlist: ticket CLI patterns (ticket *, tk *) — sanctioned write path
787-
# Check if command's first meaningful token is 'ticket' or 'tk'
786+
# Allowlist: ticket CLI patterns (ticket *) — sanctioned write path
787+
# Check if command's first meaningful token is 'ticket'
788788
local FIRST_TOKEN
789789
FIRST_TOKEN="${COMMAND##*([[:space:]])}" # trim leading whitespace
790790
FIRST_TOKEN="${FIRST_TOKEN%%[[:space:]]*}" # first token
791-
if [[ "$FIRST_TOKEN" == "ticket" || "$FIRST_TOKEN" == "tk" ]]; then
791+
if [[ "$FIRST_TOKEN" == "ticket" ]]; then
792792
return 0
793793
fi
794794

plugins/dso/hooks/lib/pre-edit-write-functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ hook_title_length_validator() {
245245
# REVIEW-DEFENSE: This function is intentionally not wired into dispatchers yet.
246246
# Task dso-280g ("Wire tickets-tracker guards into dispatchers") handles dispatcher
247247
# integration as a separate task, dependent on this implementation (dso-4cb7).
248-
# See: tk show dso-280g
248+
# See: ticket show dso-280g
249249
hook_tickets_tracker_guard() {
250250
local INPUT="$1"
251251
local HOOK_ERROR_LOG="$HOME/.claude/hook-error-log.jsonl"

plugins/dso/scripts/bench-tk-ready.sh

Lines changed: 0 additions & 57 deletions
This file was deleted.

plugins/dso/scripts/cutover-tickets-migration.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -988,18 +988,7 @@ _phase_finalize() {
988988
fi
989989

990990
# ------------------------------------------------------------------
991-
# 3. Remove tk script
992-
# ------------------------------------------------------------------
993-
local _tk_script="${_REPO_ROOT}/plugins/dso/scripts/tk"
994-
if [[ "$_DRY_RUN" != "true" ]]; then
995-
rm -f "$_tk_script"
996-
echo "finalize: removed $_tk_script"
997-
else
998-
echo "finalize: [would] rm -f $_tk_script"
999-
fi
1000-
1001-
# ------------------------------------------------------------------
1002-
# 4. Remove tk-specific test fixtures
991+
# 3. Remove tk-specific test fixtures
1003992
# ------------------------------------------------------------------
1004993
# bench-tk-ready.sh scripts
1005994
local _bench_script="${_REPO_ROOT}/plugins/dso/scripts/bench-tk-ready.sh"

plugins/dso/scripts/lib/require-tk.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

plugins/dso/scripts/reset-tickets.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -euo pipefail
1111
# 4. Applies type hierarchy fixes (task→story for epic children)
1212
# 5. Deletes .sync-state.json to force a full resync
1313
# 6. Commits the reset
14-
# 7. Runs tk sync to push all tickets to the clean Jira project
14+
# 7. Runs ticket sync to push all tickets to the clean Jira project
1515
# 8. Verifies idempotency with a second sync
1616
#
1717
# Usage:
@@ -149,7 +149,7 @@ echo " 3. Restore .tickets/ from commit $COMMIT_SHA ($BASELINE_COUNT files)"
149149
echo " 4. Fix type hierarchy (task→story for epic children)"
150150
echo " 5. Delete .sync-state.json"
151151
echo " 6. Commit the reset"
152-
echo " 7. Run tk sync to push $BASELINE_COUNT tickets to Jira"
152+
echo " 7. Run ticket sync to push $BASELINE_COUNT tickets to Jira"
153153
echo " 8. Verify idempotency"
154154
echo ""
155155

@@ -253,12 +253,12 @@ EOF
253253

254254
if [[ "$SKIP_JIRA" == "false" ]]; then
255255
echo ""
256-
echo "Step 7/8: Running tk sync to push tickets to '$JIRA_PROJECT'..."
256+
echo "Step 7/8: Running ticket sync to push tickets to '$JIRA_PROJECT'..."
257257
# Skip per-ticket git push during bulk sync — we do a single batch push afterward.
258258
# Without this, each of N tickets triggers an individual git push (N round-trips),
259259
# which causes hangs from rate limiting after ~196 pushes.
260260
TK_SYNC_SKIP_WORKTREE_PUSH=1 JIRA_PROJECT="$JIRA_PROJECT" \
261-
"${CLAUDE_PLUGIN_ROOT}/scripts/tk" sync 2>&1 | tail -10
261+
ticket sync 2>&1 | tail -10
262262
echo " Sync complete."
263263

264264
# Batch commit+push: jira_key stamps were written to .tickets/ files during sync
@@ -277,7 +277,7 @@ EOF
277277
echo ""
278278
echo "Step 8/8: Verifying idempotency (second sync)..."
279279
SECOND_SYNC=$(TK_SYNC_SKIP_WORKTREE_PUSH=1 JIRA_PROJECT="$JIRA_PROJECT" \
280-
"${CLAUDE_PLUGIN_ROOT}/scripts/tk" sync 2>&1)
280+
ticket sync 2>&1)
281281
CREATED_COUNT=$(echo "$SECOND_SYNC" | grep -c 'created' || true)
282282
if [[ "$CREATED_COUNT" -gt 0 ]]; then
283283
echo " WARNING: Second sync created $CREATED_COUNT new issues — not idempotent!"

plugins/dso/scripts/sprint-next-batch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -euo pipefail
66
# fully-classified, conflict-free batch in one script call — the orchestrator
77
# receives everything it needs to launch sub-agents without further analysis.
88
#
9-
# NOTE: Delegates to scripts/issue-batch.sh for tk-based issue tracking.
9+
# NOTE: Delegates to scripts/issue-batch.sh for ticket-based issue tracking.
1010
#
1111
# Handles the 3-tier hierarchy (epic -> story -> task):
1212
# - If a story has open blockers, all its child tasks are deferred regardless

plugins/dso/scripts/tk-bugs

Lines changed: 0 additions & 97 deletions
This file was deleted.

plugins/dso/scripts/validate-issues.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2525

2626
TK="${TK:-$SCRIPT_DIR/tk}"
2727

28-
# Source shared tk availability helper
29-
source "$SCRIPT_DIR/lib/require-tk.sh"
30-
require_tk
31-
3228
# Colors for output
3329
RED='\033[0;31m'
3430
YELLOW='\033[1;33m'

0 commit comments

Comments
 (0)