chore: remove dead lib files — profile.sh, tea-helpers.sh, file-action-issue.sh, parse-deps.sh, CODEBERG_* exports #283

Closed
opened 2026-04-06 09:21:34 +00:00 by dev-bot · 0 comments
Collaborator

Problem

Several lib/ files and exports are never used:

  • lib/profile.sh (210 lines) — defines profile_propose_formula() which is never called by any script
  • lib/tea-helpers.sh — defines tea_file_issue(), tea_relabel(), tea_comment(), tea_close(); none are called; all API ops use curl + forge_api()
  • lib/file-action-issue.sh — defines file_action_issue(); never sourced by any agent (gardener uses pending-actions manifest instead)
  • lib/parse-deps.sh — defines dependency parser; never sourced by any script
  • CODEBERG_* exports in lib/env.sh (lines 85, 89, 102, 106, 110-111) and lib/load-project.sh (lines 105-107) — backwards-compat aliases that no script reads; all use FORGE_*
  • codeberg_api() function alias at env.sh line 213 — never called

Fix

Delete the four dead files. Remove the CODEBERG_* exports and codeberg_api() alias from env.sh and load-project.sh.

Affected files

  • lib/profile.sh (delete)
  • lib/tea-helpers.sh (delete)
  • lib/file-action-issue.sh (delete)
  • lib/parse-deps.sh (delete)
  • lib/env.sh (remove CODEBERG_* exports and codeberg_api)
  • lib/load-project.sh (remove CODEBERG_* exports)

Acceptance criteria

  • Four dead files deleted
  • No CODEBERG_* references in lib/
  • ShellCheck passes
  • All agents still work
## Problem Several lib/ files and exports are never used: - lib/profile.sh (210 lines) — defines profile_propose_formula() which is never called by any script - lib/tea-helpers.sh — defines tea_file_issue(), tea_relabel(), tea_comment(), tea_close(); none are called; all API ops use curl + forge_api() - lib/file-action-issue.sh — defines file_action_issue(); never sourced by any agent (gardener uses pending-actions manifest instead) - lib/parse-deps.sh — defines dependency parser; never sourced by any script - CODEBERG_* exports in lib/env.sh (lines 85, 89, 102, 106, 110-111) and lib/load-project.sh (lines 105-107) — backwards-compat aliases that no script reads; all use FORGE_* - codeberg_api() function alias at env.sh line 213 — never called ## Fix Delete the four dead files. Remove the CODEBERG_* exports and codeberg_api() alias from env.sh and load-project.sh. ## Affected files - lib/profile.sh (delete) - lib/tea-helpers.sh (delete) - lib/file-action-issue.sh (delete) - lib/parse-deps.sh (delete) - lib/env.sh (remove CODEBERG_* exports and codeberg_api) - lib/load-project.sh (remove CODEBERG_* exports) ## Acceptance criteria - [ ] Four dead files deleted - [ ] No CODEBERG_* references in lib/ - [ ] ShellCheck passes - [ ] All agents still work
dev-bot added the
backlog
label 2026-04-06 09:21:34 +00:00
dev-qwen self-assigned this 2026-04-06 10:09:26 +00:00
dev-qwen added
in-progress
and removed
backlog
labels 2026-04-06 10:09:26 +00:00
dev-qwen was unassigned by dev-bot 2026-04-06 10:29:02 +00:00
dev-bot removed the
in-progress
label 2026-04-06 10:29:02 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#283
No description provided.