Skip to content

refactor(firecrawl): simplify the update.sh helper without changing behavior - #14638

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-14466-42614287807-1
Nov 9, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-14466-42614287807-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Closes #14466

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Simplified plugins/firecrawl/skills/update/scripts/update.sh with no behavior change. The one-call cleanup() wrapper became an inline EXIT trap. The installed-version line now uses a ${current:-...} default instead of an if/else, and the CLI-verdict chain tests the not-installed case once instead of repeating -n "$current" in every branch. The summary's unverifiable check now sits inside the no-drift branch, both rollback error messages share one rollback variable, the --help case with its empty placeholder arm became an if, and the mode dispatch uses one-line case arms. Every function name, variable name, flag, message, exit code and written file is unchanged, and the firecrawl plugin gets a patch changelog fragment.

Not verified

  • plugins/firecrawl/skills/update/scripts/update.test.sh was not run: this lane cannot run a test script directly, so the suite is left to the PR's CI
  • shellcheck and shfmt were not run on their own; check-affected passed and the reviewer read the new lines as clean under both, but neither tool ran here as a separate step
  • tidy-diff passes 4 and 5 (write-for-humans, ai-slop fix) skipped on the changelog fragment: the issue's acceptance criteria fix its text word for word
  • ci-status green is left to the PR's CI

Fix

  • plugins/firecrawl/skills/update/scripts/update.sh: inline EXIT trap replaces the cleanup() wrapper; the installed line uses a parameter default; the CLI-verdict chain checks the empty current version once; the unverifiable summary is nested in the no-drift branch; a shared rollback string serves…
  • .changes/firecrawl/work-resolve-issue-issue-14466-42614287807-1-1e7f9244.md: new patch fragment, ### Changed, "Internal simplification, no behavior change."

Verification

The runner ran each check from the base copy against ee8959c:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 118 fragments under .changes/ valid (run before and after tidy)
  • check-changed-skills: plugins/firecrawl/skills/update PASS, 0 errors, 2 warnings that predate this change (no Gotchas surface, no 'Use when:' phrasing in the SKILL.md description, neither touched here) (run before and after tidy)
  • check-affected: 13 passed, 6 skipped over 2 changed files (run before and after tidy)
  • fresh-context subagent review of the full diff against update.sh and update.test.sh: no findings; every hunk traced as output-, order- and exit-code-identical, and every name the test sources or stubs is still present
  • code-tidying:tidy-diff over the 15 changed hunks: passes 1-3 ran with no edits (the one new comment, update.sh:146, kept as class C); 2 of 18 turns
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/42614287807

Left out: the items under Not verified.

Related

#14466

Merge-Risk: max=MEDIUM demote=false head=ee8959c898125c41b99f03f9e5bd43c9df00b41c rubric=8.1.4 rater=claude-opus-5-5 checker=claude-opus-5-5

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed ee8959c898125c41b99f03f9e5bd43c9df00b41c: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found.

I read every hunk of both changed files:

  • plugins/firecrawl/skills/update/scripts/update.sh is a refactor of control flow only:

    • The EXIT trap is now inline. It is single-quoted, so $TMPDIR_RUN is expanded when the trap fires and the value is still quoted inside the trap. The variable is set once and never reassigned, so the cleanup works exactly as before.
    • The ${current:-...} default and the CLI-verdict if/elif chain give the same results as the old version.
    • The unverifiable check now sits inside the drift -eq 0 branch, so it runs under the same condition as before.
    • The two rollback messages now share one rollback string. That string is only printed, never run.
    • The --help handling is now an if, and the mode dispatch uses one-line case arms.

    Nothing new comes in from outside the script. Quoting is unchanged everywhere, including npm install -g "${NPM_PKG}@latest". No command takes new arguments, no new paths are touched, and no tokens or secrets are involved.

  • .changes/firecrawl/...md is a new changelog fragment containing only text.

Other checks:

  • Trusted paths: no changed file matches a trusted-path glob.
  • Trust controls and manifests: the PR changes no trust control, no plugin manifest and no standing instruction.
  • Embedded text: the PR context contains no instructions aimed at this lane.
  • Prior findings: none, and this is not a blocking-only review.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed ee8959c898125c41b99f03f9e5bd43c9df00b41c: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

I read every hunk of both changed files, plugins/firecrawl/skills/update/scripts/update.sh and the new changelog fragment. I also read the full head update.sh and the parts of update.test.sh that source it.

Checked against the base script:

  • EXIT trap: the inline trap 'rm -rf "$TMPDIR_RUN"' EXIT does the same thing as the old cleanup() wrapper. Nothing in the repository calls cleanup. The test (update.test.sh:73-75) sources the script and then replaces the trap, so it does not depend on that function.
  • Moved synced read: synced=$(recorded_sync_date) now runs before the installed: line is printed. This changes no output order, because recorded_field writes nothing to stdout or stderr except the value it returns.
  • Installed line: ${current:-NOT INSTALLED (not counted as drift)} prints the same text as the old if/else in both cases.
  • CLI verdict chain: when current is empty, the old chain matched no branch, and the new no-op branch does the same. The other three branches still match when current is set, give the same messages and set drift the same way.
  • Summary: the unverifiable check now sits inside the drift -eq 0 branch. It still returns 2 only when there is no drift and something could not be read, so drift still outranks unverifiable.
  • Rollback message: previous_ver is set once, before rollback is built, and never reassigned. Both error messages come out byte-for-byte the same.
  • Help and mode dispatch: the -h/--help if and the one-line case arms keep the same flags, exit codes and unknown-mode error.

Closing issue #14466, acceptance criteria:

  • Behavior unchanged: met, per the checks above. update.test.sh covers unknown flags, the source guard, recorded_field, and the apply and record-upstream paths.
  • Only listed files plus fragments edited: met.
  • Under 400 lines and 15 files: met.
  • Fragment body: met. bump: patch, ### Changed, "Internal simplification, no behavior change."
  • ci-status green: not judged here, left to CI. The author also says the test suite, shellcheck and shfmt were not run on their own; that is unverified.

No plugin manifest changed. I found no embedded instructions in the PR context. No billing or extra spend is involved.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head ee8959c898125c41b99f03f9e5bd43c9df00b41c, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for ee8959c

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-14638-ee8959c898125c41b99f03f9e5bd43c9df00b41c, expires on 2026-12-09.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit f19c596 Nov 9, 2026
63 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-14466-42614287807-1 branch November 9, 2026 14:04
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit f19c59619b7036094e9da6c738fcde2a1a5d9762; later checks count it verified from this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify the update.sh firecrawl plugin code

0 participants