@cimplify/cli 0.3.0 → 0.3.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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { gitDetectRoot, gitCurrentBranch, gitCurrentSha, gitStatusPorcelain } from './chunk-RRY3NEZZ.mjs';
3
3
  import { parseEnvFile } from './chunk-YI7UMMM7.mjs';
4
- import { package_default } from './chunk-YQVMG62Z.mjs';
4
+ import { package_default } from './chunk-IQJ45AK3.mjs';
5
5
  import { parseArgs } from './chunk-C4M3DXKC.mjs';
6
6
  import { readAuthOrNull, readProjectLinkOrNull, readProjectState } from './chunk-LS2VTSMQ.mjs';
7
7
  import { bold, dim, yellow, green, info, result, red } from './chunk-I3XQSSOT.mjs';
@@ -2,7 +2,7 @@
2
2
  // package.json
3
3
  var package_default = {
4
4
  name: "@cimplify/cli",
5
- version: "0.3.0",
5
+ version: "0.3.1",
6
6
  description: "Cimplify CLI \u2014 deploy, manage env vars, link projects, and scaffold storefronts",
7
7
  keywords: [
8
8
  "cimplify",
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { TEMPLATES } from './chunk-MHK4WVNF.mjs';
3
- import { package_default } from './chunk-YQVMG62Z.mjs';
2
+ import { TEMPLATES } from './chunk-42PFJBC6.mjs';
3
+ import { package_default } from './chunk-IQJ45AK3.mjs';
4
4
 
5
5
  // src/dispatcher.ts
6
6
  var VERSION = package_default.version ?? "unknown";
@@ -121,7 +121,7 @@ Need the mock storefront server? It ships with @cimplify/sdk:
121
121
  bunx @cimplify/sdk mock [flags] Boot the local Cimplify API mock
122
122
  `;
123
123
  var COMMANDS = {
124
- login: () => import('./login-WSAW4BEA.mjs'),
124
+ login: () => import('./login-7O7ZXKU3.mjs'),
125
125
  logout: () => import('./logout-DJDINVDF.mjs'),
126
126
  whoami: () => import('./whoami-LACWBSNL.mjs'),
127
127
  projects: () => import('./projects-364HGWHO.mjs'),
@@ -134,15 +134,15 @@ var COMMANDS = {
134
134
  logs: () => import('./logs-KUKGEXR2.mjs'),
135
135
  status: () => import('./status-W4HW3CX3.mjs'),
136
136
  dev: () => import('./dev-FD4PM3UD.mjs'),
137
- introspect: () => import('./introspect-PFBI3JHO.mjs'),
138
- doctor: () => import('./doctor-5LBLYT7M.mjs'),
139
- explain: () => import('./explain-3KBMWL6M.mjs'),
137
+ introspect: () => import('./introspect-MNTC26UY.mjs'),
138
+ doctor: () => import('./doctor-AY7VDIJZ.mjs'),
139
+ explain: () => import('./explain-QZVAK5I3.mjs'),
140
140
  assets: () => import('./assets-DMK2QOPD.mjs'),
141
141
  repo: () => import('./repo-26N2CHF6.mjs'),
142
- list: () => import('./list-TE54SJIB.mjs'),
143
- add: () => import('./add-ZJNXWN2B.mjs'),
144
- update: () => import('./update-5MRKRVZC.mjs'),
145
- upgrade: () => import('./update-5MRKRVZC.mjs')
142
+ list: () => import('./list-TEQ73IR7.mjs'),
143
+ add: () => import('./add-OUMIT4YX.mjs'),
144
+ update: () => import('./update-2DCENLHM.mjs'),
145
+ upgrade: () => import('./update-2DCENLHM.mjs')
146
146
  };
147
147
  var GLOBAL_FLAGS = /* @__PURE__ */ new Set(["--json", "--yes", "-y"]);
148
148
  function extractGlobalFlags(argv) {
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { gatherIntrospection } from './chunk-5IAYN7AJ.mjs';
2
+ import { gatherIntrospection } from './chunk-I6P3I2YJ.mjs';
3
3
  import './chunk-RRY3NEZZ.mjs';
4
4
  import './chunk-YI7UMMM7.mjs';
5
- import './chunk-YQVMG62Z.mjs';
5
+ import './chunk-IQJ45AK3.mjs';
6
6
  import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
7
7
  import { ApiClient } from './chunk-D7WMSGKK.mjs';
8
8
  import { readAuthOrNull } from './chunk-LS2VTSMQ.mjs';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { package_default } from './chunk-YQVMG62Z.mjs';
2
+ import { package_default } from './chunk-IQJ45AK3.mjs';
3
3
  import { parseArgs } from './chunk-C4M3DXKC.mjs';
4
4
  import { bold, dim, info, result, CliError, CLI_ERROR_CODE } from './chunk-I3XQSSOT.mjs';
5
5
 
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- export { run as default, extractMockSeed, gatherIntrospection, renderIntrospection } from './chunk-5IAYN7AJ.mjs';
2
+ export { run as default, extractMockSeed, gatherIntrospection, renderIntrospection } from './chunk-I6P3I2YJ.mjs';
3
3
  import './chunk-RRY3NEZZ.mjs';
4
4
  import './chunk-YI7UMMM7.mjs';
5
- import './chunk-YQVMG62Z.mjs';
5
+ import './chunk-IQJ45AK3.mjs';
6
6
  import './chunk-C4M3DXKC.mjs';
7
7
  import './chunk-LS2VTSMQ.mjs';
8
8
  import './chunk-I3XQSSOT.mjs';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { REGISTRY_INDEX } from './chunk-MHK4WVNF.mjs';
2
+ import { REGISTRY_INDEX } from './chunk-42PFJBC6.mjs';
3
3
  import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
4
4
  import { CliError, CLI_ERROR_CODE, info, bold, dim, green, result } from './chunk-I3XQSSOT.mjs';
5
5
 
@@ -251,24 +251,18 @@ async function loginWithBrowser(baseUrl, noBrowser) {
251
251
  code_verifier: pkce.codeVerifier,
252
252
  redirect_uri: loopback.redirectUri
253
253
  });
254
- const meClient = ApiClient.withKey(token.access_token, baseUrl);
255
- const me = await meClient.get(ENDPOINT_AUTH_ME);
256
254
  await writeAuth({
257
255
  apiKey: token.access_token,
258
256
  apiBaseUrl: baseUrl,
259
- accountId: me.id,
260
- businessId: me.business_id,
261
- email: me.email,
262
- name: me.name,
257
+ accountId: token.account_id,
258
+ businessId: token.business_id,
263
259
  savedAt: (/* @__PURE__ */ new Date()).toISOString()
264
260
  });
265
- success(
266
- `Logged in as ${me.email ?? me.name ?? me.id} (business ${me.business_id})`
267
- );
261
+ success(`Logged in (business ${token.business_id})`);
268
262
  result({
269
263
  logged_in: true,
270
- account: { id: me.id, email: me.email ?? null, name: me.name ?? null },
271
- business: { id: me.business_id },
264
+ account: { id: token.account_id, email: null, name: null },
265
+ business: { id: token.business_id },
272
266
  method: "oauth_pkce"
273
267
  });
274
268
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { package_default } from './chunk-YQVMG62Z.mjs';
2
+ import { package_default } from './chunk-IQJ45AK3.mjs';
3
3
  import { promptYesNo } from './chunk-RZQTHTXX.mjs';
4
4
  import { parseArgs, flagBool, flagString } from './chunk-C4M3DXKC.mjs';
5
5
  import { success, bold, info, dim, result, failure, CliError, CLI_ERROR_CODE, step, isJsonMode } from './chunk-I3XQSSOT.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimplify/cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Cimplify CLI — deploy, manage env vars, link projects, and scaffold storefronts",
5
5
  "keywords": [
6
6
  "cimplify",