Commit Graph
17 Commits
Author SHA1 Message Date
Gregory SchierandClaude Opus 5 333e3c1653 feat(import): add stable per-resource source keys to the importer contract
Re-importing an edited document currently has no way to tell an updated
request from a new one, because every import mints fresh model IDs. Give
each imported resource a key that identifies its source element instead,
so a later import can match against what it already created.

`ImportResponse` gains an optional `sourceKeys` map, keyed by the resource
IDs plugins already emit. A parallel map keeps `ImportResources` and the
partial TS types unchanged.

Bundled importers emit keys where the format carries them: Postman item
IDs, Insomnia `_id`s, OpenAPI `operationId` (falling back to the route),
and Yaak model IDs. curl has no identity of its own, so it emits none.

Planning derives a key for anything left over, hashed from the model type,
folder ancestry, and name or method+URL, prefixed `fb:` so later code can
tell derived keys from importer-provided ones. These break when the source
document renames or moves a resource, which is accepted.

Keys land in `ImportPlan.source_keys`, keyed by minted model ID so the
mapping stays lossless, ready for the commit step to persist. Nothing
consumes them yet.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 11:14:52 -07:00
Gregory SchierandClaude Opus 4.6 b4a1c418bb Run oxfmt across repo, add format script and docs
Add .oxfmtignore to skip generated bindings and wasm-pack output.
Add npm format script, update DEVELOPMENT.md for Vite+ toolchain,
and format all non-generated files with oxfmt.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 10:15:49 -07:00
Gregory Schier 0c60d190af Fix lint errors and show docs explorer on Cmd click 2025-07-14 14:52:16 -07:00
Gregory Schier 101efdd512 Merge plugins repo into mono 2025-05-29 08:02:24 -07:00
Gregory Schier 723e8d2874 Move everything into subdir for repo merge 2025-05-29 07:16:39 -07:00
Gregory Schier 8c0f889dd2 Insomnia v5 importer (#7)
Add support for the new Insomnia 5 export format
2025-05-11 06:44:54 -07:00
Gregory Schier a5333deb71 Logic for new Environment.base field 2025-05-08 14:28:41 -07:00
Gregory Schier d142966d0c Update plugins 2025-01-20 13:07:04 -08:00
Gregory Schier a80a25a90e Update for standalone base environments 2025-01-13 17:04:35 -08:00
Gregory Schier d1871b19ee Template response plugin 2024-08-19 19:11:36 -07:00
Gregory Schier 54efb6ae4e Add @yaakapp/api everywhere 2024-08-15 06:17:33 -07:00
Gregory Schier 373bc75e98 OpenAPI import plugins 2024-07-22 14:04:37 -07:00
Gregory Schier 102bd588c2 NodeJS Plugin Runtime (#53) 2024-07-19 10:41:47 -07:00
Gregory Schier a63b485b95 Move plugins to this repo 2024-06-27 21:44:45 -07:00
Gregory Schier acfc254a58 Deno plugins (#42)
Switch from BoaJS to Deno core
2024-06-07 10:47:41 -07:00
Gregory Schier b533a01677 Insomnia YAML and loading state on import 2024-05-10 09:46:20 -07:00
Gregory Schier 82e2a6b73e Curl import (#24) 2024-05-07 21:57:03 -07:00