Support for files other than markdown as spec artifacts

Aperta
#2,115 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
html, markdown, typescript, yaml

Direzione di ricerca

Start with schema.yaml and the existing artifact loading and delta-processing workflow to understand how Markdown extensions and required markers are currently handled. Done means schema-defined formats can select an extension and identify delta sections reliably, allowing artifacts such as spec to use formats including Gherkin, HTML, and MDX without changing the workflow.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement needs-triage
The problem, in one or two sentences

I have often used HTML for specifications that require rich interaction, Gherkin when authoring scenarios, and sometimes even MDX. Right now, OpenSpec uses Markdown (.md), especially for the spec artifact itself.

I am wondering if the format could be made configurable. As long as the markers required for the delta format are present and can be reliably identified, the underlying file format should not matter.

Who this affects

Affects power users of OpenSpec who are creating their own schemas. Right now we are working around.

What you tried

My workaround: https://github.com/intent-driven-dev/intent-driven-template#experimental-spec-as-source

What you have in mind

Make the artifact format configurable in schema.yaml. A format definition could specify the file extension, type, and the placeholders or markers required for the delta format. Artifacts such as spec could then reference one of these format definitions.

This would allow spec to use Markdown, Gherkin, HTML, MDX, or other formats without changing the artifact workflow, as long as the selected format defines how the required delta sections are represented.

Lingua principale
TypeScript
Stelle
76k
Fork
5.2k
Merge medio
1g 5h
PR unite (30g)
58

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Fission-AI/OpenSpec

Tutte le issue di Fission-AI/OpenSpec

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.