Skip to content

Conversation

@amed-xyz
Copy link
Collaborator

Follow up from #4544 to also allow json recipe uploads

@amed-xyz amed-xyz self-assigned this Sep 12, 2025
@amed-xyz amed-xyz merged commit 62cd266 into main Sep 12, 2025
11 checks passed
@amed-xyz amed-xyz deleted the amed/json-recipe-upload branch September 12, 2025 23:05
throw new Error(
`Failed to parse ${isJsonFile ? 'JSON' : 'YAML'} file: ${error instanceof Error ? error.message : 'Invalid format'}`
);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yaml is a superset of json, so no need to parse them separately. more problematically though, recipes are not always correct yaml before parameter substitution. I don't think the client should do any parsing here really

throw new Error(`${isJsonFile ? 'JSON' : 'YAML'} file is empty or contains invalid content`);
}

// Handle both CLI format (flat structure) and Desktop format (nested under 'recipe' key)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this comment or update it about legacy; there should be no Desktop format

michaelneale added a commit that referenced this pull request Sep 15, 2025
* main:
  Soften str_replace instructions for weaker LLMs (#4639)
  docs: changed logo (#4633)
  Add `analyze` tool to Developer extension (#4530)
  Add recipe title in import form (#4625)
  Desktop json recipes upload (#4629)
  Catch errors in node main (#4627)
  chore(deps-dev): bump vite from 7.1.3 to 7.1.5 in /ui/desktop (#4583)
  docs: add Rube extension documentation and server configuration (#4556)
  Always show recipe activities at the top of chat when recipe accepted and active (#4616)
  Add parameter replacement to activities in ui (#4617)
  UI recipes filter invalid, duplicate and unused params (#4615)
  Fix gpt-5 input context limit (#4619)
  [docs] MCP-UI Blog Post (#4578)
  release/1.8.0 (#4577)
  fix: docker build include valid string prior to sha (#4613)
  Run the conversation fixer over messages for recipe create (#4605)
  docs: github copilot config workarounds (#4607)
  Add recipe schema validation to UI (#4602)
@alexhancock alexhancock mentioned this pull request Sep 23, 2025
HikaruEgashira pushed a commit to HikaruEgashira/goose that referenced this pull request Oct 3, 2025
@dianed-square dianed-square mentioned this pull request Oct 31, 2025
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants