@soederpop/luca 0.0.11 → 0.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soederpop/luca",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "website": "https://luca.soederpop.com",
5
5
  "description": "lightweight universal conversational architecture AKA Le Ultimate Component Architecture AKA Last Universal Common Ancestor, part AI part Human",
6
6
  "author": "jon soeder aka the people's champ <jon@soederpop.com>",
@@ -182,6 +182,8 @@ export const ClaudeCodeOptionsSchema = FeatureOptionsSchema.extend({
182
182
  settingsFile: z.string().optional().describe('Path to a custom settings file'),
183
183
  /** Directories containing Claude Code skills (SKILL.md files) to load into sessions. Passed as --add-dir. */
184
184
  skillsFolders: z.array(z.string()).optional().describe('Directories containing Claude Code skills to load into sessions'),
185
+ /** Launch Claude Code with a Chrome browser tool. */
186
+ chrome: z.boolean().optional().describe('Launch Claude Code with a Chrome browser tool'),
185
187
  })
186
188
 
187
189
  export const ClaudeCodeEventsSchema = FeatureEventsSchema.extend({
@@ -265,6 +267,8 @@ export interface RunOptions {
265
267
  debugFile?: string
266
268
  /** Path to a custom settings file. */
267
269
  settingsFile?: string
270
+ /** Launch Claude Code with a Chrome browser tool. */
271
+ chrome?: boolean
268
272
  }
269
273
 
270
274
  /**
@@ -597,6 +601,9 @@ export class ClaudeCode extends Feature<ClaudeCodeState, ClaudeCodeOptions> {
597
601
 
598
602
  if (options.debugFile) args.push('--debug-file', options.debugFile)
599
603
 
604
+ const chrome = options.chrome ?? this.options.chrome
605
+ if (chrome) args.push('--chrome')
606
+
600
607
  if (options.extraArgs?.length) {
601
608
  args.push(...options.extraArgs)
602
609
  }
@@ -21,6 +21,7 @@ export const argsSchema = CommandOptionsSchema.extend({
21
21
  'repeat-anyway': z.boolean().default(false).describe('Run even if repeatable is false and the prompt has already been run'),
22
22
  'parallel': z.boolean().default(false).describe('Run multiple prompt files in parallel with side-by-side terminal UI'),
23
23
  'exclude-sections': z.string().optional().describe('Comma-separated list of section headings to exclude from the prompt'),
24
+ 'chrome': z.boolean().default(false).describe('Launch Claude Code with a Chrome browser tool'),
24
25
  })
25
26
 
26
27
  const CLI_TARGETS = new Set(['claude', 'codex'])
@@ -125,6 +126,7 @@ async function runClaudeOrCodex(target: 'claude' | 'codex', promptContent: strin
125
126
 
126
127
  if (target === 'claude') {
127
128
  runOptions.permissionMode = options['permission-mode']
129
+ if (options.chrome) runOptions.chrome = true
128
130
  }
129
131
 
130
132
  const startTime = Date.now()
@@ -273,6 +275,7 @@ async function runParallel(
273
275
 
274
276
  if (target === 'claude') {
275
277
  runOptions.permissionMode = options['permission-mode']
278
+ if (options.chrome) runOptions.chrome = true
276
279
  }
277
280
 
278
281
  feature.on('session:message', ({ sessionId, message }: { sessionId: string; message: any }) => {