Skip to content

fix(cli): drop twitter-bookmarks default from connector-sync#87

Merged
graydawnc merged 2 commits intomainfrom
fix/connector-sync-cli-default
Apr 15, 2026
Merged

fix(cli): drop twitter-bookmarks default from connector-sync#87
graydawnc merged 2 commits intomainfrom
fix/connector-sync-cli-default

Conversation

@graydawnc
Copy link
Copy Markdown
Collaborator

@graydawnc graydawnc commented Apr 15, 2026

Summary

  • spool connector-sync no longer defaults connector-id to twitter-bookmarks — stale since multi-connector packages landed (feat: exec capability, GitHub connector, and multi-connector support #70). Running with no args now lists installed connectors and prints usage (exit 0)
  • Also fix a pre-existing ESM bug: __dirname was referenced directly but the package is "type": "module", so the subcommand crashed on invocation. Derived from import.meta.url

Test plan

  • pnpm --filter @spool/cli build passes
  • spool connector-sync with no args lists 8 connectors, exits 0
  • spool connector-sync bogus-id errors with available list
  • Valid-id path unchanged from pre-fix behavior

🤖 Generated with Claude Code

graydawnc and others added 2 commits April 15, 2026 15:25
The default dated from single-connector days. With multi-connector
packages (github, xhs, reddit, hn), defaulting to twitter-bookmarks
is misleading. Omitting the argument now lists installed connectors
and prints usage instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The file uses `join(__dirname, ...)` to resolve bundled-connectors,
but the package is ESM — __dirname is undefined and the subcommand
crashed on invocation. Derive it from import.meta.url.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@graydawnc graydawnc merged commit 5aef393 into main Apr 15, 2026
3 checks passed
@graydawnc graydawnc deleted the fix/connector-sync-cli-default branch April 15, 2026 07:31
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.

1 participant