{"_id":"@buildtovalue/adapters-bpmn","_rev":"3-0185c139591948d70d1ccd5f3c8d3f7f","name":"@buildtovalue/adapters-bpmn","dist-tags":{"latest":"1.2.0-next.1"},"versions":{"1.1.0":{"name":"@buildtovalue/adapters-bpmn","version":"1.1.0","keywords":["bpmn","catalog","adapter","governance","buildtovalue"],"license":"Apache-2.0","_id":"@buildtovalue/adapters-bpmn@1.1.0","maintainers":[{"name":"danzeroum","email":"danzeroum@gmail.com"}],"homepage":"https://github.com/danzeroum/bpmn#readme","bugs":{"url":"https://github.com/danzeroum/bpmn/issues"},"dist":{"shasum":"a69bfc1a711ff07bd5218dd17732d5ff72473ccb","tarball":"https://registry.npmjs.org/@buildtovalue/adapters-bpmn/-/adapters-bpmn-1.1.0.tgz","fileCount":106,"integrity":"sha512-h21n6tNLvR21MfHv/RJrf7wI7KD7r0B6Xrv00ZBMxIj5od3bzkqV87dmGt3L/hN9S7qX//E+k6mcE/IUBHlYXQ==","signatures":[{"sig":"MEQCIGcjW/MP3s/bzzuEYyD/o4THPfJdpcvVun5REp5tPyloAiBb/uJbhdeBym+DTGuJr1mBsdN7KZesy0SGMcunW+nG6g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":258892},"main":"./dist/cjs/index.js","type":"module","_from":"file:buildtovalue-adapters-bpmn-1.1.0.tgz","types":"./dist/esm/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"build":"tsc -p tsconfig.build.json && tsc -p tsconfig.cjs.json && node ../../scripts/write-cjs-package.mjs dist/cjs","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"danzeroum","email":"danzeroum@gmail.com"},"_resolved":"C:\\Users\\danni\\AppData\\Local\\Temp\\c696fc0db2caf4b9264c26cfafd72bfb\\buildtovalue-adapters-bpmn-1.1.0.tgz","_integrity":"sha512-h21n6tNLvR21MfHv/RJrf7wI7KD7r0B6Xrv00ZBMxIj5od3bzkqV87dmGt3L/hN9S7qX//E+k6mcE/IUBHlYXQ==","repository":{"url":"git+https://github.com/danzeroum/bpmn.git","type":"git","directory":"packages/adapters-bpmn"},"_npmVersion":"10.9.3","description":"ArtifactAdapter implementations for the BuildToValue Studio library (Handoff 6 S-2): BPMN flow, persona, prompt, connector and policy adapters over the version registry, a DMN decision adapter, headless SVG thumbnails, plus the in-memory \"recipe\" fixture ","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{"@buildtovalue/core":"1.1.0","@buildtovalue/lint":"1.1.0","@buildtovalue/replay":"1.0.0","@buildtovalue/copilot":"1.0.1","@buildtovalue/library":"1.0.0","@buildtovalue/registry":"1.0.1","@buildtovalue/agentflow":"1.0.0","@buildtovalue/simulation":"1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adapters-bpmn_1.1.0_1784345304463_0.4872928891089603","host":"s3://npm-registry-packages-npm-production"}},"1.2.0-next.0":{"name":"@buildtovalue/adapters-bpmn","version":"1.2.0-next.0","keywords":["bpmn","catalog","adapter","governance","buildtovalue"],"license":"Apache-2.0","_id":"@buildtovalue/adapters-bpmn@1.2.0-next.0","maintainers":[{"name":"danzeroum","email":"danzeroum@gmail.com"}],"homepage":"https://github.com/danzeroum/bpmn#readme","bugs":{"url":"https://github.com/danzeroum/bpmn/issues"},"dist":{"shasum":"bd67e75709399be2a848aca9c6cfc2c3527f6821","tarball":"https://registry.npmjs.org/@buildtovalue/adapters-bpmn/-/adapters-bpmn-1.2.0-next.0.tgz","fileCount":148,"integrity":"sha512-1LSk0HvOIwTBV1ETSFZcuViXyqf4NnR8W18WcKEZ+eemQQceDkeCIzab1Rfd88y9K2QdJ0VgnoJkVH5SsA3ojQ==","signatures":[{"sig":"MEQCIAOJuKNsM1tVGRNbeOJYjDcjtRe5o9AMPxbvwsTxO82BAiA0AR7I5oN+xKiMWgM3rRBN/1JvCEvMW5xD3YTeC2QJRA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":357052},"main":"./dist/cjs/index.js","type":"module","_from":"file:buildtovalue-adapters-bpmn-1.2.0-next.0.tgz","types":"./dist/esm/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"build":"tsc -p tsconfig.build.json && tsc -p tsconfig.cjs.json && node ../../scripts/write-cjs-package.mjs dist/cjs","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"danzeroum","email":"danzeroum@gmail.com"},"_resolved":"/tmp/e79f53623833e5dccadaa259f1ae7e81/buildtovalue-adapters-bpmn-1.2.0-next.0.tgz","_integrity":"sha512-1LSk0HvOIwTBV1ETSFZcuViXyqf4NnR8W18WcKEZ+eemQQceDkeCIzab1Rfd88y9K2QdJ0VgnoJkVH5SsA3ojQ==","repository":{"url":"git+https://github.com/danzeroum/bpmn.git","type":"git","directory":"packages/adapters-bpmn"},"_npmVersion":"10.9.8","description":"ArtifactAdapter implementations for the BuildToValue Studio library (Handoff 6 S-2): BPMN flow, persona, prompt, connector and policy adapters over the version registry, a DMN decision adapter, headless SVG thumbnails, plus the in-memory \"recipe\" fixture ","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@buildtovalue/core":"1.2.0-next.0","@buildtovalue/lint":"1.2.0-next.0","@buildtovalue/replay":"1.0.0","@buildtovalue/copilot":"1.1.0-next.0","@buildtovalue/library":"1.0.0","@buildtovalue/registry":"1.0.2-next.0","@buildtovalue/agentflow":"1.1.0-next.0","@buildtovalue/simulation":"1.1.0-next.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adapters-bpmn_1.2.0-next.0_1784725593578_0.5584504313938918","host":"s3://npm-registry-packages-npm-production"}},"1.2.0-next.1":{"name":"@buildtovalue/adapters-bpmn","version":"1.2.0-next.1","description":"ArtifactAdapter implementations for the BuildToValue Studio library (Handoff 6 S-2): BPMN flow, persona, prompt, connector and policy adapters over the version registry, a DMN decision adapter, headless SVG thumbnails, plus the in-memory \"recipe\" fixture ","license":"Apache-2.0","type":"module","sideEffects":false,"engines":{"node":">=20"},"main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/esm/index.d.ts","exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"dependencies":{"@buildtovalue/agentflow":"1.1.0-next.1","@buildtovalue/core":"1.2.0-next.0","@buildtovalue/library":"1.0.0","@buildtovalue/copilot":"1.1.0-next.0","@buildtovalue/lint":"1.2.0-next.0","@buildtovalue/registry":"1.0.2-next.0","@buildtovalue/simulation":"1.1.0-next.0","@buildtovalue/replay":"1.0.0"},"keywords":["bpmn","catalog","adapter","governance","buildtovalue"],"repository":{"type":"git","url":"git+https://github.com/danzeroum/bpmn.git","directory":"packages/adapters-bpmn"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc -p tsconfig.build.json && tsc -p tsconfig.cjs.json && node ../../scripts/write-cjs-package.mjs dist/cjs","typecheck":"tsc -p tsconfig.json --noEmit"},"_id":"@buildtovalue/adapters-bpmn@1.2.0-next.1","bugs":{"url":"https://github.com/danzeroum/bpmn/issues"},"homepage":"https://github.com/danzeroum/bpmn#readme","_integrity":"sha512-X5jics1nJIwr73sSVcwKb+uToxMIXr2kjRf74ihkKXhNxzvqaM8+V3GyeFYO1hgc6vECpkiukoYYF8UiRhNaBg==","_resolved":"/tmp/57e8369173ab0188777f085efcaef288/buildtovalue-adapters-bpmn-1.2.0-next.1.tgz","_from":"file:buildtovalue-adapters-bpmn-1.2.0-next.1.tgz","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-X5jics1nJIwr73sSVcwKb+uToxMIXr2kjRf74ihkKXhNxzvqaM8+V3GyeFYO1hgc6vECpkiukoYYF8UiRhNaBg==","shasum":"4ae831108ef2b2f93ce3e02c396d8e1dea65240a","tarball":"https://registry.npmjs.org/@buildtovalue/adapters-bpmn/-/adapters-bpmn-1.2.0-next.1.tgz","fileCount":148,"unpackedSize":357052,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIC79jgsKlTBVap5acG4Sq5/g+BQ9uhFQrZvysyIPfLO7AiANwheeH1daBbPD4UE5OznRFk5zIRLgxu+GSi+8j5eYRA=="}]},"_npmUser":{"name":"danzeroum","email":"danzeroum@gmail.com"},"directories":{},"maintainers":[{"name":"danzeroum","email":"danzeroum@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adapters-bpmn_1.2.0-next.1_1784833417183_0.7271554007846488"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-18T03:28:24.381Z","modified":"2026-07-23T19:03:37.503Z","1.1.0":"2026-07-18T03:28:24.610Z","1.2.0-next.0":"2026-07-22T13:06:33.715Z","1.2.0-next.1":"2026-07-23T19:03:37.342Z"},"bugs":{"url":"https://github.com/danzeroum/bpmn/issues"},"license":"Apache-2.0","homepage":"https://github.com/danzeroum/bpmn#readme","keywords":["bpmn","catalog","adapter","governance","buildtovalue"],"repository":{"type":"git","url":"git+https://github.com/danzeroum/bpmn.git","directory":"packages/adapters-bpmn"},"description":"ArtifactAdapter implementations for the BuildToValue Studio library (Handoff 6 S-2): BPMN flow, persona, prompt, connector and policy adapters over the version registry, a DMN decision adapter, headless SVG thumbnails, plus the in-memory \"recipe\" fixture ","maintainers":[{"name":"danzeroum","email":"danzeroum@gmail.com"}],"readme":"# @buildtovalue/adapters-bpmn\n\nThe concrete `ArtifactAdapter` implementations that connect the BPMN\necosystem to the generic library (Handoff 6, S-2). This package is the side\nof the boundary that KNOWS BPMN — `@buildtovalue/library` never does.\n\n> Workspace-only until the npm-scope decision (pendencias.md §1). The final\n> published name will be `<scope>/adapters-bpmn`.\n\n## Adapters\n\nAll registry-backed adapters are thin configurations of one factory,\n`createRegistryAdapter({ id, typeLabel, registry, match, target?, boundRuns? })`:\n\n| Factory | id | typeLabel | Claims |\n|---|---|---|---|\n| `bpmnDiagramAdapter` | `bpmn-diagram` | FLUXO | diagrams not claimed by a specific kind |\n| `personaAdapter` | `btv-persona` | PERSONA | persona-definition diagrams |\n| `promptAdapter` | `btv-prompt` | PROMPT | prompt-definition diagrams |\n| `connectorAdapter` | `btv-connector` | CONNECTOR | connector-definition diagrams |\n| `policyAdapter` | `btv-policy` | POLÍTICA | approval-gate diagrams (see note) |\n| `dmnDecisionAdapter` | `dmn-decision` | DECISÃO | `dmn:decision` nodes inside registered diagrams |\n\nClassification (`classifyDiagram`): an explicit `diagram.metadata.artifactType`\n(pt/en aliases) wins; otherwise a diagram whose active nodes are all one\nmapped `btv:` type IS that artifact; everything else is a flow.\n\n**Nota — \"política\":** there is no dedicated policy node type in the domain\ntoday; the policy adapter maps to the BuildToValue Approval Gate\n(`btv:gate`). Open product decision in pendencias.md (Handoff 6).\n\n**DMN:** decisions enter as \"mais um adapter, nunca caso especial\". The\nadapter is duck-typed on the DMN vocabulary (`dmn:decision` +\n`properties.decisionTable`) so this package stays headless (the dmn package\nbundles React components); once the npm scope lands it can move into the dmn\npackage — the end state the handoff describes — with zero changes to\nlibrary/library-react.\n\n## What the adapters translate\n\n- `ArtifactRef.artifactId` = the logical `diagram.id` (shared across\n  versions); the registry stores one entry per version and the adapter\n  groups them (`logicalArtifacts`).\n- The observer's channel (`target`) picks the relevant version via the open\n  publication window; without a target the newest version wins.\n- `approvers` ← `version.approvedBy`; `provenance.ledgerHash` ← snapshot\n  hash; `versions` timeline newest-first; `boundRuns` comes from the host\n  (the registry stores no runs).\n- Thumbnails are **headless SVG strings** (`diagramThumbnail`,\n  `decisionThumbnail`) drawn from the diagram geometry with `--btv-*` token\n  colors — the library only places them (§3.1).\n- Actions are descriptors (\"Abrir no Designer\", \"Diff vs versão ativa\") the\n  Studio resolves (§3.2) — nothing here mutates anything.\n- `subscribe` + `notifyChanged()`: the registry has no observer, so the host\n  calls `adapter.notifyChanged()` after register/publish.\n\n## The acid-test fixture\n\n`createRecipeAdapter()` — a fake adapter for cooking recipes, with no\nrelation to BPMN, importing only `@buildtovalue/library`. It exists to prove\nthe architecture (Handoff 6 §10.1): the whole Biblioteca must work with it\nalone, without touching library/library-react. `tests/acidez.test.ts` runs\nthe catalog only with this adapter; S-3 extends the same fixture to the UI.\n","readmeFilename":"README.md"}