claude-trello-cli 0.1.2 → 0.1.4

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.
package/README.md CHANGED
@@ -78,9 +78,8 @@ claude-trello run
78
78
 
79
79
  ## Prerequisites
80
80
 
81
- - **A Claude Trello Bridge account** — sign up at the web app, connect your Trello account, and save your Anthropic API key
81
+ - **A Claude Trello Bridge account** — sign up at [ct.joshualevine.me](https://ct.joshualevine.me), connect your Trello account, and save your Anthropic API key
82
82
  - **Node.js 20+**
83
- - **The web app running** (locally via `pnpm dev` or deployed) — the CLI authenticates against it
84
83
 
85
84
  ## Commands
86
85
 
@@ -95,7 +94,7 @@ npx claude-trello-cli login --server https://your-app.vercel.app
95
94
 
96
95
  | Flag | Description |
97
96
  |------|-------------|
98
- | `-s, --server <url>` | Server URL (default: `http://localhost:3000`) |
97
+ | `-s, --server <url>` | Server URL (default: `https://ct.joshualevine.me`) |
99
98
 
100
99
  ### `claude-trello-cli run`
101
100
 
@@ -135,7 +134,7 @@ npx claude-trello-cli status
135
134
 
136
135
  # Claude Trello Bridge — Status
137
136
  #
138
- # Server: http://localhost:3000
137
+ # Server: https://ct.joshualevine.me
139
138
  # Auth: Signed in as Your Name
140
139
  # Trello: Connected
141
140
  # API Key: Configured
package/dist/index.js CHANGED
@@ -48,7 +48,7 @@ function clearConfig() {
48
48
  }
49
49
  function getServerUrl() {
50
50
  const config = getConfig();
51
- return config.serverUrl || process.env.CLAUDE_TRELLO_URL || "http://localhost:3000";
51
+ return config.serverUrl || process.env.CLAUDE_TRELLO_URL || "https://ct.joshualevine.me";
52
52
  }
53
53
  function getSessionCookie() {
54
54
  return getConfig().sessionCookie;
@@ -78,6 +78,7 @@ async function apiFetch(path, options) {
78
78
  ...options,
79
79
  headers: {
80
80
  "Content-Type": "application/json",
81
+ Origin: serverUrl,
81
82
  Cookie: cookie,
82
83
  ...options?.headers ?? {}
83
84
  },
@@ -103,7 +104,10 @@ async function apiFetch(path, options) {
103
104
  async function signIn(serverUrl, email, password2) {
104
105
  const res = await fetch(`${serverUrl}/api/auth/sign-in/email`, {
105
106
  method: "POST",
106
- headers: { "Content-Type": "application/json" },
107
+ headers: {
108
+ "Content-Type": "application/json",
109
+ Origin: serverUrl
110
+ },
107
111
  body: JSON.stringify({ email, password: password2 }),
108
112
  redirect: "manual"
109
113
  });
@@ -140,7 +144,7 @@ async function getCredentials() {
140
144
  }
141
145
 
142
146
  // src/commands/login.ts
143
- var loginCommand = new Command("login").description("Sign in to Claude Trello Bridge").option("-s, --server <url>", "Server URL (default: http://localhost:3000)").action(async (opts) => {
147
+ var loginCommand = new Command("login").description("Sign in to Claude Trello Bridge").option("-s, --server <url>", "Server URL (default: https://ct.joshualevine.me)").action(async (opts) => {
144
148
  const serverUrl = opts.server || getServerUrl();
145
149
  console.log(chalk.bold("Sign in to Claude Trello Bridge"));
146
150
  console.log(chalk.dim(`Server: ${serverUrl}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-trello-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "CLI for Claude Trello Bridge — point Claude Code at a Trello board and work through tasks from your terminal",
5
5
  "type": "module",
6
6
  "bin": {