@chimerai/cli 1.2.1 → 1.2.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.
@@ -237,13 +237,15 @@ async function createCommand(projectName, options) {
237
237
  console.log(chalk_1.default.white(' ./install.sh (Linux/macOS)'));
238
238
  console.log(chalk_1.default.bold.white('\n Or manually:'));
239
239
  console.log(chalk_1.default.white(' npm install'));
240
- console.log(chalk_1.default.white(' docker-compose up -d'));
240
+ if (!options.sqlite)
241
+ console.log(chalk_1.default.white(' docker-compose up -d'));
241
242
  console.log(chalk_1.default.white(' npm run db:push'));
242
243
  console.log(chalk_1.default.white(' npm run db:seed'));
243
244
  console.log(chalk_1.default.white(' npm run dev'));
244
245
  }
245
246
  else {
246
- console.log(chalk_1.default.white(' docker-compose up -d'));
247
+ if (!options.sqlite)
248
+ console.log(chalk_1.default.white(' docker-compose up -d'));
247
249
  console.log(chalk_1.default.white(' npm run db:push'));
248
250
  console.log(chalk_1.default.white(' npm run db:seed'));
249
251
  console.log(chalk_1.default.white(' npm run dev'));
@@ -1166,7 +1166,7 @@ export function useChat(options: UseChatOptions = {}): UseChatReturn {
1166
1166
 
1167
1167
  // Refresh conversations to pick up new/updated titles
1168
1168
  refreshConversations();
1169
- fetchCreditBalance();
1169
+ ${hasBilling ? 'fetchCreditBalance();' : ''}
1170
1170
  } catch (error: any) {
1171
1171
  if (error.name !== 'AbortError') {
1172
1172
  setMessages((prev) => {
@@ -1185,7 +1185,7 @@ export function useChat(options: UseChatOptions = {}): UseChatReturn {
1185
1185
  abortControllerRef.current = null;
1186
1186
  }
1187
1187
  },
1188
- [isStreaming, messages, models, selectedModelId, systemPrompt, options, refreshConversations, fetchCreditBalance]
1188
+ [isStreaming, messages, models, selectedModelId, systemPrompt, options, refreshConversations${hasBilling ? ', fetchCreditBalance' : ''}]
1189
1189
  );
1190
1190
 
1191
1191
  // --- Stop Streaming ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chimerai/cli",
3
- "version": "1.2.1",
3
+ "version": "1.2.4",
4
4
  "description": "CLI wizard for ChimerAI starter kit — scaffold auth, RBAC, AI chat, billing and more into any Next.js project",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {