feat(api): carry language and jurisdictions in the .mikeworkflow.json interchange format - #18
Open
amal66 wants to merge 4 commits into
Open
feat(api): carry language and jurisdictions in the .mikeworkflow.json interchange format#18amal66 wants to merge 4 commits into
amal66 wants to merge 4 commits into
Conversation
amal66
force-pushed
the
feat/workflow-metadata
branch
5 times, most recently
from
July 6, 2026 00:26
3128ba7 to
7eda703
Compare
…nterchange format
Rebased onto the upstream workflow-metadata sync: main already persists and
normalizes language/jurisdictions on create/update (via the metadata
envelope), ships the modal fields, metadata bar, scope tabs, Tiptap tables
and the DB migration — those parts of this branch were dropped as superseded.
What remains is the genuinely additive slice: the .mikeworkflow.json
interchange format now carries the two metadata fields.
- workflowFormat.ts (the SINGLE zod source): two new optional fields,
language and jurisdictions, plus updated examples. The published
schemas/workflow.schema.json is regenerated from it (via
`npm run generate:workflow-schema`) — never hand-edited; the drift
test (workflowFormat.test.ts) guards the pair.
- exportWorkflow selects and emits the columns.
- importWorkflow normalizes them with main's existing
normalizeOptionalString / normalizeJurisdictions helpers, falling back
to the 'English' / ['General'] defaults so files predating the fields
still import onto the same baseline the UI shows.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
amal66
force-pushed
the
feat/workflow-metadata
branch
from
July 10, 2026 02:56
7eda703 to
f97cbac
Compare
This was referenced Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends the
.mikeworkflow.jsonimport/export format with optionallanguageandjurisdictionsmetadata while keeping format-version 1 backwards compatible. Scope is the interchange layer only (pack schema, export, import, published JSON schema); the underlying database columns and CRUD handling for these fields already live onmainfrom the upstream workflow metadata sync.Compatibility behavior
Englishand["General"].schemas/workflow.schema.jsonremains generated from the Zod source of truth (drift-checked in tests).Verification
workflowFormat.test.tsandworkflows.import-metadata.test.ts: schema drift + published examples (2), pack validation behavior including metadata acceptance and rejection of malformed jurisdictions (9), explicit-metadata import and legacy-default import (2).tsc) passes.main(olp UI sync, b3166dd): clean merge, no conflicts, no adaptations required.Credits & prior art
.mikeworkflow.jsoninterchange format this PR extends builds on feat(workflows): add JSON file download/upload for workflow transfer Open-Legal-Products/mike#59, which pioneered workflow export/import under that exact file extension; the fork's workflow-portability commit records feat(workflows): add JSON file download/upload for workflow transfer Open-Legal-Products/mike#59 as its precedent.schemas/workflow.schema.json) builds on feat: local LLM support via Ollama (OpenAI-compatible, behind ENABLE_OLLAMA) #34's docs-only declarative workflow-pack proposal; the fork's pack-format commit records feat: local LLM support via Ollama (OpenAI-compatible, behind ENABLE_OLLAMA) #34 as its precedent.🤖 Generated with Claude Code
https://claude.ai/code/session_01CEguyEgXa9JjCciXCcVemC