Skip to content

Commit 9a62b35

Browse files
committed
chore: bump version to 0.2.0-beta.0
Made-with: Cursor
1 parent 7ae8612 commit 9a62b35

3 files changed

Lines changed: 18 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitrefill/cli",
3-
"version": "0.1.1",
3+
"version": "0.2.0-beta.0",
44
"description": "Bitrefill - browse, buy, and manage gift cards, mobile top-ups, and eSIMs",
55
"type": "module",
66
"bin": {

src/index.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ async function createMcpClient(
224224
};
225225

226226
if (!useOAuth) {
227-
const c = new Client({ name: 'bitrefill-cli', version: '0.1.1' });
227+
const c = new Client({
228+
name: 'bitrefill-cli',
229+
version: '0.2.0-beta.0',
230+
});
228231
c.onerror = suppressNoise;
229232
const t = new StreamableHTTPClientTransport(new URL(url));
230233
await c.connect(t);
@@ -234,7 +237,10 @@ async function createMcpClient(
234237
const authProvider = createOAuthProvider(url, formatter);
235238

236239
const tryConnect = async () => {
237-
const c = new Client({ name: 'bitrefill-cli', version: '0.1.1' });
240+
const c = new Client({
241+
name: 'bitrefill-cli',
242+
version: '0.2.0-beta.0',
243+
});
238244
c.onerror = suppressNoise;
239245
const t = new StreamableHTTPClientTransport(new URL(url), {
240246
authProvider,
@@ -252,7 +258,10 @@ async function createMcpClient(
252258
const code = await waitForCallback();
253259
formatter.info('Authorization code received.');
254260

255-
const c = new Client({ name: 'bitrefill-cli', version: '0.1.1' });
261+
const c = new Client({
262+
name: 'bitrefill-cli',
263+
version: '0.2.0-beta.0',
264+
});
256265
c.onerror = suppressNoise;
257266
const t = new StreamableHTTPClientTransport(new URL(url), {
258267
authProvider,
@@ -359,7 +368,7 @@ async function main(): Promise<void> {
359368
.description(
360369
'Bitrefill CLI - browse, buy, and manage gift cards, mobile top-ups, and eSIMs.\n\nTerms: https://www.bitrefill.com/terms\nPrivacy: https://www.bitrefill.com/privacy'
361370
)
362-
.version('0.1.1')
371+
.version('0.2.0-beta.0')
363372
.option(
364373
'--api-key <key>',
365374
'Bitrefill API key (overrides BITREFILL_API_KEY env var)'

src/init.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ function resolveInitApiKey(opts: InitOptions): string | undefined {
106106

107107
async function validateApiKey(apiKey: string): Promise<{ tools: Tool[] }> {
108108
const url = `${BASE_MCP_URL}/${apiKey}`;
109-
const client = new Client({ name: 'bitrefill-cli', version: '0.1.1' });
109+
const client = new Client({
110+
name: 'bitrefill-cli',
111+
version: '0.2.0-beta.0',
112+
});
110113
const transport = new StreamableHTTPClientTransport(new URL(url));
111114

112115
try {

0 commit comments

Comments
 (0)