bazaar.it 0.2.0 → 0.2.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
@@ -66,7 +66,7 @@ $ baz
66
66
  ██████╔╝██║ ██║███████╗
67
67
  ╚═════╝ ╚═╝ ╚═╝╚══════╝
68
68
 
69
- AI-powered video generation v0.1.0
69
+ AI-powered video generation v0.2.0
70
70
  ─────────────────────────────────────
71
71
  Type a command or prompt. Use 'help' for commands.
72
72
 
@@ -97,11 +97,7 @@ baz auth logout
97
97
  ```
98
98
 
99
99
  **Get an API Key:**
100
- 1. **For humans**: Generate at https://bazaar.it/settings/api-keys
101
- 2. **For service accounts**: Use the admin script:
102
- ```bash
103
- npx tsx scripts/create-service-account.ts maya@bazaar.it "Maya Bot" "Maya CLI"
104
- ```
100
+ Sign in at [bazaar.it](https://bazaar.it), click your balance in the top bar, then select **API Keys** to generate one.
105
101
 
106
102
  ### Projects
107
103
 
@@ -438,7 +434,7 @@ baz project use <project-id>
438
434
 
439
435
  ### "Insufficient balance"
440
436
 
441
- Check balance at https://bazaar.it/settings/billing
437
+ Check your balance in the app at [bazaar.it](https://bazaar.it) — visible in the top bar after signing in.
442
438
 
443
439
  ### Connection Issues
444
440
 
@@ -39,6 +39,7 @@ export const promptCommand = new Command('prompt')
39
39
  .option('--plan', 'Create a recipe/plan without executing (handshake protocol)')
40
40
  .option('--requirements <list>', 'Requirements to verify against (comma-separated)')
41
41
  .option('--budget <dollars>', 'Max budget per run in USD (default: 5)', parseFloat)
42
+ .option('--model <model>', 'Agent model: fast, default, max')
42
43
  .action(async (text, options, cmd) => {
43
44
  const globalOpts = cmd.optsWithGlobals();
44
45
  const agentModeEnv = process.env.BAZ_AGENT === '1';
@@ -231,6 +232,15 @@ export const promptCommand = new Command('prompt')
231
232
  // Track budget from complete event for summary
232
233
  let budgetData;
233
234
  try {
235
+ // Resolve model alias to full model ID
236
+ const MODEL_ALIASES = {
237
+ fast: 'claude-haiku-4-5',
238
+ max: 'claude-opus-4-6',
239
+ default: 'claude-sonnet-4-5',
240
+ };
241
+ const resolvedModel = options.model
242
+ ? MODEL_ALIASES[options.model] || options.model
243
+ : undefined; // Let api.ts default (Sonnet) handle it
234
244
  const result = await streamGeneration(config, {
235
245
  projectId,
236
246
  prompt: promptText,
@@ -240,6 +250,7 @@ export const promptCommand = new Command('prompt')
240
250
  planOnly: options.plan, // Handshake: create plan without executing
241
251
  requirements: options.requirements, // Requirements for verification
242
252
  budgetUsd: options.budget, // Per-run budget in USD
253
+ modelOverride: resolvedModel,
243
254
  onEvent: options.stream !== false ? (event) => {
244
255
  // Handle streaming output
245
256
  // Stream JSON / JSON mode: output raw event lines, but still track plan/workflow for summaries.
package/dist/lib/api.d.ts CHANGED
@@ -138,6 +138,8 @@ export declare function streamGeneration(config: Config, options: {
138
138
  requirements?: string;
139
139
  /** Per-run budget in USD (default: server decides, typically $5) */
140
140
  budgetUsd?: number;
141
+ /** Model override (default: claude-sonnet-4-5 for CLI) */
142
+ modelOverride?: string;
141
143
  }): Promise<StreamResult>;
142
144
  export interface StreamEvent {
143
145
  type: 'thinking' | 'tool_use' | 'code_gen' | 'compile' | 'scene_created' | 'scene_updated' | 'error' | 'complete' | 'text' | 'recipe_created' | 'workflow_created' | 'video_plan_created' | 'awaiting_approval' | 'ready' | 'asset_generated' | 'raw';
package/dist/lib/api.js CHANGED
@@ -522,6 +522,8 @@ export async function streamGeneration(config, options) {
522
522
  requirements: options.requirements,
523
523
  // Budget control
524
524
  ...(options.budgetUsd != null && options.budgetUsd > 0 ? { budgetUsd: options.budgetUsd } : {}),
525
+ // Model — CLI defaults to Sonnet to keep costs reasonable
526
+ modelOverride: options.modelOverride || 'claude-sonnet-4-5',
525
527
  }),
526
528
  });
527
529
  if (!response.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bazaar.it",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "AI-powered motion graphics from the command line — bazaar.it",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -17,14 +17,7 @@
17
17
  "type": "git",
18
18
  "url": "https://github.com/bazaar-it/bazaar"
19
19
  },
20
- "keywords": [
21
- "video",
22
- "ai",
23
- "motion-graphics",
24
- "remotion",
25
- "cli",
26
- "bazaar"
27
- ],
20
+ "keywords": ["video", "ai", "motion-graphics", "remotion", "cli", "bazaar"],
28
21
  "author": "Markus Hogne <markus@bazaar.it>",
29
22
  "license": "MIT",
30
23
  "scripts": {