@ranger1/dx 0.1.14 → 0.1.15

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.
@@ -164,7 +164,8 @@ export async function handleAi(cli, args = []) {
164
164
  if (attach) opencodeArgs.push('--attach', attach)
165
165
  if (configPassthrough.length > 0) opencodeArgs.push(...configPassthrough)
166
166
  if (Array.isArray(passthrough) && passthrough.length > 0) opencodeArgs.push(...passthrough)
167
- opencodeArgs.push(promptText)
167
+ // Protect prompt content from being parsed as CLI flags (e.g. markdown frontmatter starts with '---').
168
+ opencodeArgs.push('--', promptText)
168
169
 
169
170
  logger.step(`ai ${name}`)
170
171
  logger.command(`opencode ${opencodeArgs.filter(a => a !== promptText).join(' ')} <prompt-from-file>`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranger1/dx",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {