commet 0.6.0 → 0.7.1

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
@@ -43,8 +43,8 @@ commet login
43
43
  Prompts you to select an environment (Sandbox or Production), then opens your browser to authenticate. Creates `~/.commet/auth.json` with your credentials.
44
44
 
45
45
  **Important:** Sandbox and Production are completely isolated platforms with separate accounts:
46
- - **Sandbox**: `api.sandbox.commet.co` - Development and testing
47
- - **Production**: `api.commet.co` - Live billing operations
46
+ - **Sandbox**: `sandbox.commet.co` - Development and testing
47
+ - **Production**: `commet.co` - Live billing operations
48
48
 
49
49
  Make sure to login to the correct environment for your needs.
50
50
 
@@ -210,8 +210,8 @@ Add `.commet/` to `.gitignore` if different developers use different organizatio
210
210
 
211
211
  Commet supports two completely isolated environments:
212
212
 
213
- - **Sandbox** (`api.sandbox.commet.co`): Development and testing with separate data
214
- - **Production** (`api.commet.co`): Live billing operations with real customers
213
+ - **Sandbox** (`sandbox.commet.co`): Development and testing with separate data
214
+ - **Production** (`commet.co`): Live billing operations with real customers
215
215
 
216
216
  **Important:** Each environment requires separate authentication because they are independent platforms. To work with both:
217
217
 
package/dist/index.js CHANGED
@@ -137,9 +137,9 @@ var import_ora = __toESM(require("ora"));
137
137
  // src/utils/api.ts
138
138
  function getBaseURL(environment) {
139
139
  if (environment === "production") {
140
- return "https://api.commet.co";
140
+ return "https://commet.co";
141
141
  }
142
- return "https://api.sandbox.commet.co";
142
+ return "https://sandbox.commet.co";
143
143
  }
144
144
  async function apiRequest(endpoint, options = {}) {
145
145
  const auth = loadAuth();
@@ -249,7 +249,7 @@ var linkCommand = new import_commander2.Command("link").description("Link this p
249
249
  }
250
250
  const baseURL = getBaseURL(auth.environment);
251
251
  const result = await apiRequest(
252
- `${baseURL}/api/cli/organizations`
252
+ `${baseURL}/cli/organizations`
253
253
  );
254
254
  if (result.error || !result.data) {
255
255
  spinner.fail("Failed to fetch organizations");
@@ -261,7 +261,7 @@ var linkCommand = new import_commander2.Command("link").description("Link this p
261
261
  spinner.stop();
262
262
  console.log(import_chalk3.default.yellow("\u26A0 No organizations found"));
263
263
  console.log(
264
- import_chalk3.default.dim("Create an organization at https://billing.commet.co first")
264
+ import_chalk3.default.dim("Create an organization at https://commet.co first")
265
265
  );
266
266
  return;
267
267
  }
@@ -335,7 +335,7 @@ var listCommand = new import_commander3.Command("list").description("List event
335
335
  const spinner = (0, import_ora2.default)(`Fetching ${type}...`).start();
336
336
  const baseURL = getBaseURL(projectConfig.environment);
337
337
  const result = await apiRequest(
338
- `${baseURL}/api/cli/types?orgId=${projectConfig.orgId}`
338
+ `${baseURL}/cli/types?orgId=${projectConfig.orgId}`
339
339
  );
340
340
  if (result.error || !result.data) {
341
341
  spinner.fail(`Failed to fetch ${type}`);
@@ -702,7 +702,7 @@ var pullCommand = new import_commander6.Command("pull").description("Pull type d
702
702
  const spinner = (0, import_ora4.default)("Fetching type definitions...").start();
703
703
  const baseURL = getBaseURL(projectConfig.environment);
704
704
  const result = await apiRequest(
705
- `${baseURL}/api/cli/types?orgId=${projectConfig.orgId}`
705
+ `${baseURL}/cli/types?orgId=${projectConfig.orgId}`
706
706
  );
707
707
  if (result.error || !result.data) {
708
708
  spinner.fail("Failed to fetch types");
@@ -793,7 +793,7 @@ var switchCommand = new import_commander7.Command("switch").description("Switch
793
793
  }
794
794
  const baseURL = getBaseURL(auth.environment);
795
795
  const result = await apiRequest(
796
- `${baseURL}/api/cli/organizations`
796
+ `${baseURL}/cli/organizations`
797
797
  );
798
798
  if (result.error || !result.data) {
799
799
  spinner.fail("Failed to fetch organizations");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commet",
3
- "version": "0.6.0",
3
+ "version": "0.7.1",
4
4
  "description": "Commet CLI - Manage your billing platform from the command line",
5
5
  "bin": {
6
6
  "commet": "./bin/commet"
@@ -25,7 +25,7 @@
25
25
  "jsonc-parser": "^3.3.1",
26
26
  "open": "^10.0.0",
27
27
  "ora": "^7.0.1",
28
- "@commet/node": "0.7.0"
28
+ "@commet/node": "0.7.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^20.10.0",