@mostra/protocol 0.14.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dist/artifact-path.d.ts +22 -0
  2. package/dist/artifact-path.d.ts.map +1 -0
  3. package/dist/artifact-path.js +39 -0
  4. package/dist/artifact-path.js.map +1 -0
  5. package/dist/diagnostics/codes/index.d.ts +5 -2
  6. package/dist/diagnostics/codes/index.d.ts.map +1 -1
  7. package/dist/diagnostics/codes/index.js +7 -1
  8. package/dist/diagnostics/codes/index.js.map +1 -1
  9. package/dist/diagnostics/codes/license.d.ts +8 -0
  10. package/dist/diagnostics/codes/license.d.ts.map +1 -0
  11. package/dist/diagnostics/codes/license.js +55 -0
  12. package/dist/diagnostics/codes/license.js.map +1 -0
  13. package/dist/diagnostics/codes/pack.d.ts +8 -0
  14. package/dist/diagnostics/codes/pack.d.ts.map +1 -0
  15. package/dist/diagnostics/codes/pack.js +110 -0
  16. package/dist/diagnostics/codes/pack.js.map +1 -0
  17. package/dist/diagnostics/codes/plugin.d.ts +8 -0
  18. package/dist/diagnostics/codes/plugin.d.ts.map +1 -0
  19. package/dist/diagnostics/codes/plugin.js +154 -0
  20. package/dist/diagnostics/codes/plugin.js.map +1 -0
  21. package/dist/diagnostics/diagnostic.d.ts +1 -1
  22. package/dist/diagnostics/diagnostic.d.ts.map +1 -1
  23. package/dist/diagnostics/diagnostic.js +4 -1
  24. package/dist/diagnostics/diagnostic.js.map +1 -1
  25. package/dist/index.d.ts +13 -1
  26. package/dist/index.js +13 -1
  27. package/dist/methods/deps/add.d.ts +6 -0
  28. package/dist/methods/deps/add.d.ts.map +1 -1
  29. package/dist/methods/deps/add.js +1 -0
  30. package/dist/methods/deps/add.js.map +1 -1
  31. package/dist/methods/index.d.ts.map +1 -1
  32. package/dist/methods/index.js +15 -1
  33. package/dist/methods/index.js.map +1 -1
  34. package/dist/methods/mostra/initialize.d.ts +7 -0
  35. package/dist/methods/mostra/initialize.d.ts.map +1 -1
  36. package/dist/methods/mostra/initialize.js +4 -2
  37. package/dist/methods/mostra/initialize.js.map +1 -1
  38. package/dist/methods/pack/add.d.ts +80 -0
  39. package/dist/methods/pack/add.d.ts.map +1 -0
  40. package/dist/methods/pack/add.js +59 -0
  41. package/dist/methods/pack/add.js.map +1 -0
  42. package/dist/methods/plugin/add.d.ts +43 -0
  43. package/dist/methods/plugin/add.d.ts.map +1 -0
  44. package/dist/methods/plugin/add.js +39 -0
  45. package/dist/methods/plugin/add.js.map +1 -0
  46. package/dist/methods/plugin/commands.d.ts +38 -0
  47. package/dist/methods/plugin/commands.d.ts.map +1 -0
  48. package/dist/methods/plugin/commands.js +33 -0
  49. package/dist/methods/plugin/commands.js.map +1 -0
  50. package/dist/methods/plugin/export.d.ts +58 -0
  51. package/dist/methods/plugin/export.d.ts.map +1 -0
  52. package/dist/methods/plugin/export.js +57 -0
  53. package/dist/methods/plugin/export.js.map +1 -0
  54. package/dist/methods/plugin/list.d.ts +26 -0
  55. package/dist/methods/plugin/list.d.ts.map +1 -0
  56. package/dist/methods/plugin/list.js +30 -0
  57. package/dist/methods/plugin/list.js.map +1 -0
  58. package/dist/methods/plugin/remove.d.ts +32 -0
  59. package/dist/methods/plugin/remove.d.ts.map +1 -0
  60. package/dist/methods/plugin/remove.js +33 -0
  61. package/dist/methods/plugin/remove.js.map +1 -0
  62. package/dist/methods/plugin/validate.d.ts +35 -0
  63. package/dist/methods/plugin/validate.d.ts.map +1 -0
  64. package/dist/methods/plugin/validate.js +33 -0
  65. package/dist/methods/plugin/validate.js.map +1 -0
  66. package/dist/plugin/contract-versions.generated.js +14 -0
  67. package/dist/plugin/contract-versions.generated.js.map +1 -0
  68. package/dist/plugin/contracts.d.ts +51 -0
  69. package/dist/plugin/contracts.d.ts.map +1 -0
  70. package/dist/plugin/contracts.js +129 -0
  71. package/dist/plugin/contracts.js.map +1 -0
  72. package/dist/plugin/license.d.ts +87 -0
  73. package/dist/plugin/license.d.ts.map +1 -0
  74. package/dist/plugin/license.js +243 -0
  75. package/dist/plugin/license.js.map +1 -0
  76. package/dist/plugin/manifest.d.ts +141 -0
  77. package/dist/plugin/manifest.d.ts.map +1 -0
  78. package/dist/plugin/manifest.js +281 -0
  79. package/dist/plugin/manifest.js.map +1 -0
  80. package/dist/plugin/registry-item.d.ts +171 -0
  81. package/dist/plugin/registry-item.d.ts.map +1 -0
  82. package/dist/plugin/registry-item.js +162 -0
  83. package/dist/plugin/registry-item.js.map +1 -0
  84. package/dist/plugin/spdx.generated.d.ts +9 -0
  85. package/dist/plugin/spdx.generated.d.ts.map +1 -0
  86. package/dist/plugin/spdx.generated.js +846 -0
  87. package/dist/plugin/spdx.generated.js.map +1 -0
  88. package/dist/plugin.d.ts +7 -0
  89. package/dist/plugin.js +6 -0
  90. package/dist/plugins.d.ts +118 -0
  91. package/dist/plugins.d.ts.map +1 -0
  92. package/dist/plugins.js +109 -0
  93. package/dist/plugins.js.map +1 -0
  94. package/package.json +19 -4
  95. package/schemas/plugin-manifest.draft-07.json +611 -0
  96. package/schemas/plugin-manifest.schema.json +607 -0
  97. package/schemas/protocol.draft-07.json +899 -1
  98. package/schemas/protocol.schema.json +875 -1
  99. package/src/artifact-path.ts +46 -0
  100. package/src/diagnostics/codes/index.ts +14 -2
  101. package/src/diagnostics/codes/license.ts +65 -0
  102. package/src/diagnostics/codes/pack.ts +125 -0
  103. package/src/diagnostics/codes/plugin.ts +173 -0
  104. package/src/diagnostics/diagnostic.ts +7 -1
  105. package/src/index.ts +57 -0
  106. package/src/methods/deps/add.ts +7 -0
  107. package/src/methods/index.ts +14 -0
  108. package/src/methods/mostra/initialize.ts +9 -1
  109. package/src/methods/pack/add.ts +133 -0
  110. package/src/methods/plugin/add.ts +70 -0
  111. package/src/methods/plugin/commands.ts +67 -0
  112. package/src/methods/plugin/export.ts +100 -0
  113. package/src/methods/plugin/list.ts +45 -0
  114. package/src/methods/plugin/remove.ts +58 -0
  115. package/src/methods/plugin/validate.ts +60 -0
  116. package/src/plugin/contract-versions.generated.ts +15 -0
  117. package/src/plugin/contracts.ts +171 -0
  118. package/src/plugin/license.ts +320 -0
  119. package/src/plugin/manifest.ts +546 -0
  120. package/src/plugin/registry-item.ts +330 -0
  121. package/src/plugin/spdx-tables.ts +74 -0
  122. package/src/plugin/spdx.generated.ts +844 -0
  123. package/src/plugin.ts +77 -0
  124. package/src/plugins.ts +239 -0
  125. package/LICENSE +0 -202
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spdx.generated.js","names":[],"sources":["../../src/plugin/spdx.generated.ts"],"sourcesContent":["/**\n * Generated by `node packages/protocol/scripts/spdx.ts` from the SPDX License List 3.29.0\n * (`data/spdx/`, CC0-1.0). Don't edit: replace the data and run the script.\n */\n\n/** The SPDX License List release these tables come from. */\nexport const SPDX_LICENSE_LIST_VERSION: string = \"3.29.0\";\n\n/**\n * Every license ID with its flags after a colon: `o` OSI-approved, `f` FSF libre, `d`\n * deprecated.\n */\nexport const SPDX_LICENSES: readonly string[] = [\n \"0BSD:o\",\n \"3D-Slicer-1.0:\",\n \"AAL:o\",\n \"ADSL:\",\n \"AFL-1.1:of\",\n \"AFL-1.2:of\",\n \"AFL-2.0:of\",\n \"AFL-2.1:of\",\n \"AFL-3.0:of\",\n \"AGPL-1.0:fd\",\n \"AGPL-1.0-only:\",\n \"AGPL-1.0-or-later:\",\n \"AGPL-3.0:ofd\",\n \"AGPL-3.0-only:of\",\n \"AGPL-3.0-or-later:of\",\n \"ALGLIB-Documentation:o\",\n \"AMD-newlib:\",\n \"AMDPLPA:\",\n \"AML:\",\n \"AML-glslang:\",\n \"AMPAS:\",\n \"ANTLR-PD:\",\n \"ANTLR-PD-fallback:\",\n \"APAFML:\",\n \"APL-1.0:o\",\n \"APSL-1.0:o\",\n \"APSL-1.1:o\",\n \"APSL-1.2:o\",\n \"APSL-2.0:of\",\n \"ASWF-Digital-Assets-1.0:\",\n \"ASWF-Digital-Assets-1.1:\",\n \"Abstyles:\",\n \"AdaCore-doc:\",\n \"Adobe-2006:\",\n \"Adobe-Display-PostScript:\",\n \"Adobe-Glyph:\",\n \"Adobe-Utopia:\",\n \"Advanced-Cryptics-Dictionary:\",\n \"Afmparse:\",\n \"Aladdin:\",\n \"Apache-1.0:f\",\n \"Apache-1.1:of\",\n \"Apache-2.0:of\",\n \"App-s2p:\",\n \"Arphic-1999:\",\n \"Artistic-1.0:o\",\n \"Artistic-1.0-Perl:o\",\n \"Artistic-1.0-cl8:o\",\n \"Artistic-2.0:of\",\n \"Artistic-dist:\",\n \"Aspell-RU:\",\n \"BOLA-1.1:\",\n \"BSD-1-Clause:o\",\n \"BSD-2-Clause:of\",\n \"BSD-2-Clause-Darwin:\",\n \"BSD-2-Clause-FreeBSD:fd\",\n \"BSD-2-Clause-NetBSD:fd\",\n \"BSD-2-Clause-Patent:o\",\n \"BSD-2-Clause-Views:\",\n \"BSD-2-Clause-first-lines:\",\n \"BSD-2-Clause-pkgconf-disclaimer:\",\n \"BSD-2-Clause-pos-unchanged:\",\n \"BSD-3-Clause:of\",\n \"BSD-3-Clause-Attribution:\",\n \"BSD-3-Clause-Clear:f\",\n \"BSD-3-Clause-HP:\",\n \"BSD-3-Clause-LBNL:o\",\n \"BSD-3-Clause-Modification:\",\n \"BSD-3-Clause-No-Military-License:\",\n \"BSD-3-Clause-No-Nuclear-License:\",\n \"BSD-3-Clause-No-Nuclear-License-2014:\",\n \"BSD-3-Clause-No-Nuclear-Warranty:\",\n \"BSD-3-Clause-Open-MPI:o\",\n \"BSD-3-Clause-OpenWebUI:\",\n \"BSD-3-Clause-Sun:\",\n \"BSD-3-Clause-Tso:\",\n \"BSD-3-Clause-acpica:\",\n \"BSD-3-Clause-flex:\",\n \"BSD-4-Clause:f\",\n \"BSD-4-Clause-Shortened:\",\n \"BSD-4-Clause-UC:\",\n \"BSD-4.3RENO:\",\n \"BSD-4.3TAHOE:\",\n \"BSD-Advertising-Acknowledgement:\",\n \"BSD-Attribution-HPND-disclaimer:\",\n \"BSD-Inferno-Nettverk:\",\n \"BSD-Mark-Modifications:\",\n \"BSD-Protection:\",\n \"BSD-Source-Code:\",\n \"BSD-Source-Code-no-disclaimer:\",\n \"BSD-Source-alt-GPL:\",\n \"BSD-Source-beginning-file:\",\n \"BSD-Systemics:\",\n \"BSD-Systemics-W3Works:\",\n \"BSD-ask-to-endorse:o\",\n \"BSL-1.0:of\",\n \"BUSL-1.1:\",\n \"Baekmuk:\",\n \"Bahyph:\",\n \"Barr:\",\n \"Beerware:\",\n \"BitTorrent-1.0:\",\n \"BitTorrent-1.1:f\",\n \"Bitstream-Charter:\",\n \"Bitstream-Vera:\",\n \"BlueOak-1.0.0:o\",\n \"Boehm-GC:\",\n \"Boehm-GC-without-fee:\",\n \"Borceux:\",\n \"Brian-Gladman-2-Clause:\",\n \"Brian-Gladman-3-Clause:\",\n \"Brian-Gladman-3-Clause-no-conversion:\",\n \"Buddy:\",\n \"Bugroff:\",\n \"C-UDA-1.0:\",\n \"CAL-1.0:o\",\n \"CAL-1.0-Combined-Work-Exception:o\",\n \"CAPEC-tou:\",\n \"CATOSL-1.1:o\",\n \"CC-BY-1.0:\",\n \"CC-BY-2.0:\",\n \"CC-BY-2.5:\",\n \"CC-BY-2.5-AU:\",\n \"CC-BY-3.0:\",\n \"CC-BY-3.0-AT:\",\n \"CC-BY-3.0-AU:\",\n \"CC-BY-3.0-DE:\",\n \"CC-BY-3.0-IGO:\",\n \"CC-BY-3.0-NL:\",\n \"CC-BY-3.0-US:\",\n \"CC-BY-4.0:f\",\n \"CC-BY-NC-1.0:\",\n \"CC-BY-NC-2.0:\",\n \"CC-BY-NC-2.5:\",\n \"CC-BY-NC-3.0:\",\n \"CC-BY-NC-3.0-DE:\",\n \"CC-BY-NC-3.0-IGO:\",\n \"CC-BY-NC-4.0:\",\n \"CC-BY-NC-ND-1.0:\",\n \"CC-BY-NC-ND-2.0:\",\n \"CC-BY-NC-ND-2.5:\",\n \"CC-BY-NC-ND-3.0:\",\n \"CC-BY-NC-ND-3.0-DE:\",\n \"CC-BY-NC-ND-3.0-IGO:\",\n \"CC-BY-NC-ND-4.0:\",\n \"CC-BY-NC-SA-1.0:\",\n \"CC-BY-NC-SA-2.0:\",\n \"CC-BY-NC-SA-2.0-DE:\",\n \"CC-BY-NC-SA-2.0-FR:\",\n \"CC-BY-NC-SA-2.0-UK:\",\n \"CC-BY-NC-SA-2.5:\",\n \"CC-BY-NC-SA-3.0:\",\n \"CC-BY-NC-SA-3.0-DE:\",\n \"CC-BY-NC-SA-3.0-IGO:\",\n \"CC-BY-NC-SA-4.0:\",\n \"CC-BY-ND-1.0:\",\n \"CC-BY-ND-2.0:\",\n \"CC-BY-ND-2.5:\",\n \"CC-BY-ND-3.0:\",\n \"CC-BY-ND-3.0-DE:\",\n \"CC-BY-ND-4.0:\",\n \"CC-BY-SA-1.0:\",\n \"CC-BY-SA-2.0:\",\n \"CC-BY-SA-2.0-UK:\",\n \"CC-BY-SA-2.1-JP:\",\n \"CC-BY-SA-2.5:\",\n \"CC-BY-SA-3.0:\",\n \"CC-BY-SA-3.0-AT:\",\n \"CC-BY-SA-3.0-DE:\",\n \"CC-BY-SA-3.0-IGO:\",\n \"CC-BY-SA-4.0:f\",\n \"CC-PDDC:\",\n \"CC-PDM-1.0:\",\n \"CC-SA-1.0:\",\n \"CC0-1.0:f\",\n \"CDDL-1.0:of\",\n \"CDDL-1.1:o\",\n \"CDL-1.0:\",\n \"CDLA-Permissive-1.0:\",\n \"CDLA-Permissive-2.0:\",\n \"CDLA-Sharing-1.0:\",\n \"CECILL-1.0:\",\n \"CECILL-1.1:\",\n \"CECILL-2.0:f\",\n \"CECILL-2.1:o\",\n \"CECILL-B:f\",\n \"CECILL-C:f\",\n \"CERN-OHL-1.1:\",\n \"CERN-OHL-1.2:\",\n \"CERN-OHL-P-2.0:o\",\n \"CERN-OHL-S-2.0:o\",\n \"CERN-OHL-W-2.0:o\",\n \"CFITSIO:\",\n \"CMU-Mach:\",\n \"CMU-Mach-nodoc:\",\n \"CNRI-Jython:\",\n \"CNRI-Python:o\",\n \"CNRI-Python-GPL-Compatible:o\",\n \"COIL-1.0:\",\n \"CPAL-1.0:of\",\n \"CPL-1.0:of\",\n \"CPOL-1.02:\",\n \"CUA-OPL-1.0:o\",\n \"Caldera:\",\n \"Caldera-no-preamble:\",\n \"Catharon:\",\n \"ClArtistic:f\",\n \"Clips:\",\n \"Community-Spec-1.0:\",\n \"Condor-1.1:f\",\n \"Cornell-Lossless-JPEG:\",\n \"Cronyx:\",\n \"Crossword:\",\n \"CryptoSwift:\",\n \"CrystalStacker:\",\n \"Cube:\",\n \"D-FSL-1.0:\",\n \"DEC-3-Clause:\",\n \"DL-DE-BY-2.0:\",\n \"DL-DE-ZERO-2.0:\",\n \"DOC:\",\n \"DRL-1.0:\",\n \"DRL-1.1:\",\n \"DSDP:\",\n \"DocBook-DTD:\",\n \"DocBook-Schema:\",\n \"DocBook-Stylesheet:\",\n \"DocBook-XML:\",\n \"Dotseqn:\",\n \"ECL-1.0:o\",\n \"ECL-2.0:of\",\n \"EFL-1.0:o\",\n \"EFL-2.0:of\",\n \"EPICS:\",\n \"EPL-1.0:of\",\n \"EPL-2.0:of\",\n \"ESA-PL-permissive-2.4:\",\n \"ESA-PL-strong-copyleft-2.4:\",\n \"ESA-PL-weak-copyleft-2.4:\",\n \"EUDatagrid:of\",\n \"EUPL-1.0:\",\n \"EUPL-1.1:of\",\n \"EUPL-1.2:of\",\n \"Elastic-2.0:\",\n \"Entessa:o\",\n \"ErlPL-1.1:\",\n \"Eurosym:\",\n \"FBM:\",\n \"FDK-AAC:\",\n \"FDK-MPEG-H:\",\n \"FSFAP:f\",\n \"FSFAP-no-warranty-disclaimer:\",\n \"FSFUL:\",\n \"FSFULLR:\",\n \"FSFULLRSD:\",\n \"FSFULLRWD:\",\n \"FSL-1.1-ALv2:\",\n \"FSL-1.1-MIT:\",\n \"FTL:f\",\n \"Fair:o\",\n \"Ferguson-Twofish:\",\n \"Frameworx-1.0:o\",\n \"FreeBSD-DOC:\",\n \"FreeImage:\",\n \"Furuseth:\",\n \"GCR-docs:\",\n \"GD:\",\n \"GFDL-1.1:fd\",\n \"GFDL-1.1-invariants-only:\",\n \"GFDL-1.1-invariants-or-later:\",\n \"GFDL-1.1-no-invariants-only:\",\n \"GFDL-1.1-no-invariants-or-later:\",\n \"GFDL-1.1-only:f\",\n \"GFDL-1.1-or-later:f\",\n \"GFDL-1.2:fd\",\n \"GFDL-1.2-invariants-only:\",\n \"GFDL-1.2-invariants-or-later:\",\n \"GFDL-1.2-no-invariants-only:\",\n \"GFDL-1.2-no-invariants-or-later:\",\n \"GFDL-1.2-only:f\",\n \"GFDL-1.2-or-later:f\",\n \"GFDL-1.3:fd\",\n \"GFDL-1.3-invariants-only:\",\n \"GFDL-1.3-invariants-or-later:\",\n \"GFDL-1.3-no-invariants-only:\",\n \"GFDL-1.3-no-invariants-or-later:\",\n \"GFDL-1.3-only:f\",\n \"GFDL-1.3-or-later:f\",\n \"GL2PS:\",\n \"GLWTPL:\",\n \"GPL-1.0:d\",\n \"GPL-1.0+:d\",\n \"GPL-1.0-only:\",\n \"GPL-1.0-or-later:\",\n \"GPL-2.0:ofd\",\n \"GPL-2.0+:ofd\",\n \"GPL-2.0-only:of\",\n \"GPL-2.0-or-later:of\",\n \"GPL-2.0-with-GCC-exception:d\",\n \"GPL-2.0-with-autoconf-exception:d\",\n \"GPL-2.0-with-bison-exception:d\",\n \"GPL-2.0-with-classpath-exception:d\",\n \"GPL-2.0-with-font-exception:d\",\n \"GPL-3.0:ofd\",\n \"GPL-3.0+:ofd\",\n \"GPL-3.0-only:of\",\n \"GPL-3.0-or-later:of\",\n \"GPL-3.0-with-GCC-exception:od\",\n \"GPL-3.0-with-autoconf-exception:d\",\n \"Game-Programming-Gems:\",\n \"Giftware:\",\n \"Glide:\",\n \"Glulxe:\",\n \"Graphics-Gems:\",\n \"Gutmann:\",\n \"HDF5:\",\n \"HIDAPI:\",\n \"HP-1986:\",\n \"HP-1989:\",\n \"HPND:of\",\n \"HPND-DEC:\",\n \"HPND-Fenneberg-Livingston:\",\n \"HPND-INRIA-IMAG:\",\n \"HPND-Intel:\",\n \"HPND-Kevlin-Henney:\",\n \"HPND-MIT-disclaimer:\",\n \"HPND-Markus-Kuhn:\",\n \"HPND-Netrek:\",\n \"HPND-Pbmplus:\",\n \"HPND-SMC:\",\n \"HPND-UC:\",\n \"HPND-UC-export-US:\",\n \"HPND-doc:\",\n \"HPND-doc-sell:\",\n \"HPND-export-US:\",\n \"HPND-export-US-acknowledgement:\",\n \"HPND-export-US-modify:\",\n \"HPND-export2-US:\",\n \"HPND-merchantability-variant:\",\n \"HPND-sell-MIT-disclaimer-xserver:\",\n \"HPND-sell-regexpr:\",\n \"HPND-sell-variant:\",\n \"HPND-sell-variant-MIT-disclaimer:\",\n \"HPND-sell-variant-MIT-disclaimer-rev:\",\n \"HPND-sell-variant-critical-systems:\",\n \"HTMLTIDY:\",\n \"HaskellReport:\",\n \"Hippocratic-2.1:\",\n \"Hippocratic-3.0-core:\",\n \"IBM-pibs:\",\n \"ICU:o\",\n \"IEC-Code-Components-EULA:\",\n \"IJG:f\",\n \"IJG-short:\",\n \"IPA:of\",\n \"IPL-1.0:of\",\n \"ISC:of\",\n \"ISC-Veillard:\",\n \"ISO-permission:\",\n \"ImageMagick:\",\n \"Imlib2:f\",\n \"Info-ZIP:\",\n \"Informatica:\",\n \"Inner-Net-2.0:\",\n \"InnoSetup:\",\n \"Intel:of\",\n \"Intel-ACPI:\",\n \"Interbase-1.0:\",\n \"JPL-image:\",\n \"JPNIC:\",\n \"JSON:\",\n \"Jam:o\",\n \"JasPer-2.0:\",\n \"Kastrup:\",\n \"Kazlib:\",\n \"Knuth-CTAN:\",\n \"LAL-1.2:\",\n \"LAL-1.3:\",\n \"LGPL-2.0:od\",\n \"LGPL-2.0+:od\",\n \"LGPL-2.0-only:o\",\n \"LGPL-2.0-or-later:o\",\n \"LGPL-2.1:ofd\",\n \"LGPL-2.1+:ofd\",\n \"LGPL-2.1-only:of\",\n \"LGPL-2.1-or-later:of\",\n \"LGPL-3.0:ofd\",\n \"LGPL-3.0+:ofd\",\n \"LGPL-3.0-only:of\",\n \"LGPL-3.0-or-later:of\",\n \"LGPLLR:\",\n \"LOOP:\",\n \"LPD-document:\",\n \"LPL-1.0:o\",\n \"LPL-1.02:of\",\n \"LPPL-1.0:\",\n \"LPPL-1.1:\",\n \"LPPL-1.2:f\",\n \"LPPL-1.3a:f\",\n \"LPPL-1.3c:o\",\n \"LZMA-SDK-9.11-to-9.20:\",\n \"LZMA-SDK-9.22:\",\n \"Latex2e:\",\n \"Latex2e-translated-notice:\",\n \"Leptonica:\",\n \"LiLiQ-P-1.1:o\",\n \"LiLiQ-R-1.1:o\",\n \"LiLiQ-Rplus-1.1:o\",\n \"Libpng:\",\n \"Linux-OpenIB:\",\n \"Linux-man-pages-1-para:\",\n \"Linux-man-pages-copyleft:\",\n \"Linux-man-pages-copyleft-2-para:\",\n \"Linux-man-pages-copyleft-var:\",\n \"Lucida-Bitmap-Fonts:\",\n \"MIPS:\",\n \"MIT:of\",\n \"MIT-0:o\",\n \"MIT-CMU:\",\n \"MIT-Click:\",\n \"MIT-Festival:\",\n \"MIT-Khronos-old:\",\n \"MIT-Modern-Variant:o\",\n \"MIT-STK:\",\n \"MIT-Wu:\",\n \"MIT-advertising:\",\n \"MIT-enna:\",\n \"MIT-feh:\",\n \"MIT-open-group:\",\n \"MIT-testregex:\",\n \"MITNFA:\",\n \"MMIXware:\",\n \"MMPL-1.0.1:\",\n \"MPEG-SSG:\",\n \"MPL-1.0:o\",\n \"MPL-1.1:of\",\n \"MPL-2.0:of\",\n \"MPL-2.0-no-copyleft-exception:o\",\n \"MS-LPL:\",\n \"MS-PL:of\",\n \"MS-RL:of\",\n \"MTLL:\",\n \"MVT-1.1:\",\n \"Mackerras-3-Clause:\",\n \"Mackerras-3-Clause-acknowledgment:\",\n \"MakeIndex:\",\n \"Martin-Birgmeier:\",\n \"McPhee-slideshow:\",\n \"Minpack:\",\n \"MirOS:o\",\n \"Motosoto:o\",\n \"MulanPSL-1.0:\",\n \"MulanPSL-2.0:o\",\n \"Multics:o\",\n \"Mup:\",\n \"NAIST-2003:\",\n \"NASA-1.3:o\",\n \"NBPL-1.0:\",\n \"NCBI-PD:\",\n \"NCGL-UK-2.0:\",\n \"NCL:\",\n \"NCSA:of\",\n \"NGPL:o\",\n \"NICTA-1.0:\",\n \"NIST-PD:\",\n \"NIST-PD-TNT:\",\n \"NIST-PD-fallback:\",\n \"NIST-Software:\",\n \"NLOD-1.0:\",\n \"NLOD-2.0:\",\n \"NLPL:\",\n \"NOSL:f\",\n \"NPL-1.0:f\",\n \"NPL-1.1:f\",\n \"NPOSL-3.0:o\",\n \"NRL:\",\n \"NTIA-PD:\",\n \"NTP:o\",\n \"NTP-0:\",\n \"Naumen:o\",\n \"Net-SNMP:d\",\n \"NetCDF:\",\n \"Newsletr:\",\n \"Nokia:of\",\n \"Noweb:\",\n \"Nunit:fd\",\n \"O-UDA-1.0:\",\n \"OAR:\",\n \"OCCT-PL:\",\n \"OCLC-2.0:o\",\n \"ODC-By-1.0:\",\n \"ODbL-1.0:f\",\n \"OFFIS:\",\n \"OFL-1.0:f\",\n \"OFL-1.0-RFN:\",\n \"OFL-1.0-no-RFN:\",\n \"OFL-1.1:of\",\n \"OFL-1.1-RFN:o\",\n \"OFL-1.1-no-RFN:o\",\n \"OGC-1.0:\",\n \"OGDL-Taiwan-1.0:\",\n \"OGL-Canada-2.0:\",\n \"OGL-UK-1.0:\",\n \"OGL-UK-2.0:\",\n \"OGL-UK-3.0:\",\n \"OGTSL:o\",\n \"OLDAP-1.1:\",\n \"OLDAP-1.2:\",\n \"OLDAP-1.3:\",\n \"OLDAP-1.4:\",\n \"OLDAP-2.0:\",\n \"OLDAP-2.0.1:\",\n \"OLDAP-2.1:\",\n \"OLDAP-2.2:\",\n \"OLDAP-2.2.1:\",\n \"OLDAP-2.2.2:\",\n \"OLDAP-2.3:f\",\n \"OLDAP-2.4:\",\n \"OLDAP-2.5:\",\n \"OLDAP-2.6:\",\n \"OLDAP-2.7:f\",\n \"OLDAP-2.8:o\",\n \"OLFL-1.3:o\",\n \"OML:\",\n \"OPL-1.0:\",\n \"OPL-UK-3.0:\",\n \"OPUBL-1.0:\",\n \"OSC-1.0:o\",\n \"OSET-PL-2.1:o\",\n \"OSL-1.0:of\",\n \"OSL-1.1:f\",\n \"OSL-2.0:of\",\n \"OSL-2.1:of\",\n \"OSL-3.0:of\",\n \"OSSP:\",\n \"OpenMDW-1.0:\",\n \"OpenPBS-2.3:\",\n \"OpenSSL:f\",\n \"OpenSSL-standalone:\",\n \"OpenVision:\",\n \"PADL:\",\n \"PDDL-1.0:\",\n \"PHP-3.0:o\",\n \"PHP-3.01:of\",\n \"PPL:\",\n \"PSF-2.0:\",\n \"ParaType-Free-Font-1.3:\",\n \"Parity-6.0.0:\",\n \"Parity-7.0.0:\",\n \"Pixar:\",\n \"Plexus:\",\n \"PolyForm-Noncommercial-1.0.0:\",\n \"PolyForm-Small-Business-1.0.0:\",\n \"PostgreSQL:o\",\n \"Python-2.0:of\",\n \"Python-2.0.1:o\",\n \"QPL-1.0:of\",\n \"QPL-1.0-INRIA-2004:\",\n \"Qhull:\",\n \"RHeCos-1.1:\",\n \"RPL-1.1:o\",\n \"RPL-1.5:o\",\n \"RPSL-1.0:of\",\n \"RSA-MD:\",\n \"RSCPL:o\",\n \"Rdisc:\",\n \"Ruby:f\",\n \"Ruby-pty:\",\n \"SAX-PD:\",\n \"SAX-PD-2.0:\",\n \"SCEA:\",\n \"SGI-B-1.0:\",\n \"SGI-B-1.1:\",\n \"SGI-B-2.0:f\",\n \"SGI-OpenGL:\",\n \"SGMLUG-PM:\",\n \"SGP4:\",\n \"SHL-0.5:\",\n \"SHL-0.51:\",\n \"SISSL:of\",\n \"SISSL-1.2:\",\n \"SL:\",\n \"SMAIL-GPL:\",\n \"SMLNJ:f\",\n \"SMPPL:\",\n \"SNIA:\",\n \"SOFA:\",\n \"SPL-1.0:of\",\n \"SSH-OpenSSH:\",\n \"SSH-short:\",\n \"SSLeay-standalone:\",\n \"SSPL-1.0:\",\n \"SUL-1.0:\",\n \"SWL:\",\n \"Saxpath:\",\n \"SchemeReport:\",\n \"Sendmail:\",\n \"Sendmail-8.23:\",\n \"Sendmail-Open-Source-1.1:\",\n \"SimPL-2.0:o\",\n \"Sleepycat:of\",\n \"Soundex:\",\n \"Spencer-86:\",\n \"Spencer-94:\",\n \"Spencer-99:\",\n \"StandardML-NJ:fd\",\n \"SugarCRM-1.1.3:\",\n \"Sun-PPP:\",\n \"Sun-PPP-2000:\",\n \"SunPro:\",\n \"Symlinks:\",\n \"TAPR-OHL-1.0:\",\n \"TCL:\",\n \"TCP-wrappers:\",\n \"TGPPL-1.0:\",\n \"TMate:\",\n \"TORQUE-1.1:\",\n \"TOSL:\",\n \"TPDL:\",\n \"TPL-1.0:\",\n \"TTWL:\",\n \"TTYP0:\",\n \"TU-Berlin-1.0:\",\n \"TU-Berlin-2.0:\",\n \"TekHVC:\",\n \"TermReadKey:\",\n \"ThirdEye:\",\n \"TrustedQSL:\",\n \"UCAR:\",\n \"UCL-1.0:o\",\n \"UMich-Merit:\",\n \"UPL-1.0:of\",\n \"URT-RLE:\",\n \"Ubuntu-font-1.0:\",\n \"UnRAR:\",\n \"Unicode-3.0:o\",\n \"Unicode-DFS-2015:\",\n \"Unicode-DFS-2016:o\",\n \"Unicode-TOU:\",\n \"UnixCrypt:\",\n \"Unlicense:of\",\n \"Unlicense-libtelnet:\",\n \"Unlicense-libwhirlpool:\",\n \"VOSTROM:\",\n \"VSL-1.0:o\",\n \"Vim:f\",\n \"Vixie-Cron:\",\n \"W3C:of\",\n \"W3C-19980720:\",\n \"W3C-20150513:o\",\n \"WTFNMFPL:\",\n \"WTFPL:f\",\n \"Watcom-1.0:o\",\n \"Widget-Workshop:\",\n \"WordNet:o\",\n \"Wsuipa:\",\n \"X11:f\",\n \"X11-distribute-modifications-variant:\",\n \"X11-no-permit-persons:\",\n \"X11-swapped:\",\n \"XFree86-1.1:f\",\n \"XSkat:\",\n \"Xdebug-1.03:\",\n \"Xerox:\",\n \"Xfig:\",\n \"Xnet:o\",\n \"YPL-1.0:\",\n \"YPL-1.1:f\",\n \"ZPL-1.1:\",\n \"ZPL-2.0:of\",\n \"ZPL-2.1:of\",\n \"Zed:\",\n \"Zeeff:\",\n \"Zend-2.0:f\",\n \"Zimbra-1.3:f\",\n \"Zimbra-1.4:\",\n \"Zlib:of\",\n \"any-OSI:\",\n \"any-OSI-perl-modules:\",\n \"atc-game:\",\n \"bcrypt-Solar-Designer:\",\n \"blessing:\",\n \"bzip2-1.0.5:d\",\n \"bzip2-1.0.6:\",\n \"check-cvs:\",\n \"checkmk:\",\n \"copyleft-next-0.3.0:\",\n \"copyleft-next-0.3.1:\",\n \"curl:o\",\n \"cve-tou:\",\n \"diffmark:\",\n \"dtoa:\",\n \"dvipdfm:\",\n \"eCos-2.0:fd\",\n \"eGenix:\",\n \"etalab-2.0:\",\n \"fwlw:\",\n \"gSOAP-1.3b:\",\n \"generic-xts:\",\n \"gnuplot:f\",\n \"gtkbook:\",\n \"hdparm:\",\n \"hyphen-bulgarian:\",\n \"iMatix:f\",\n \"jove:\",\n \"libpng-1.6.35:\",\n \"libpng-2.0:\",\n \"libselinux-1.0:\",\n \"libtiff:\",\n \"libutil-David-Nugent:\",\n \"lsof:\",\n \"magaz:\",\n \"mailprio:\",\n \"man2html:\",\n \"metamail:\",\n \"mpi-permissive:\",\n \"mpich2:\",\n \"mplus:\",\n \"ngrep:\",\n \"pkgconf:\",\n \"pnmstitch:\",\n \"psfrag:\",\n \"psutils:\",\n \"python-ldap:\",\n \"radvd:\",\n \"snprintf:\",\n \"softSurfer:\",\n \"ssh-keyscan:\",\n \"swrule:\",\n \"threeparttable:\",\n \"ulem:\",\n \"w3m:\",\n \"wwl:\",\n \"wxWindows:od\",\n \"xinetd:f\",\n \"xkeyboard-config-Zinoviev:\",\n \"xlock:\",\n \"xpp:\",\n \"xzoom:\",\n \"zlib-acknowledgement:\",\n];\n\n/** Every license exception ID (the right side of `WITH`). */\nexport const SPDX_EXCEPTIONS: readonly string[] = [\n \"389-exception\",\n \"Asterisk-exception\",\n \"Asterisk-linking-protocols-exception\",\n \"Autoconf-exception-2.0\",\n \"Autoconf-exception-3.0\",\n \"Autoconf-exception-generic\",\n \"Autoconf-exception-generic-3.0\",\n \"Autoconf-exception-macro\",\n \"Bison-exception-1.24\",\n \"Bison-exception-2.2\",\n \"Bootloader-exception\",\n \"CGAL-linking-exception\",\n \"CLISP-exception-2.0\",\n \"Classpath-exception-2.0\",\n \"Classpath-exception-2.0-short\",\n \"DigiRule-FOSS-exception\",\n \"Digia-Qt-LGPL-exception-1.1\",\n \"FLTK-exception\",\n \"Fawkes-Runtime-exception\",\n \"Font-exception-2.0\",\n \"GCC-exception-2.0\",\n \"GCC-exception-2.0-note\",\n \"GCC-exception-3.1\",\n \"GNAT-exception\",\n \"GNOME-examples-exception\",\n \"GNU-compiler-exception\",\n \"GPL-3.0-389-ds-base-exception\",\n \"GPL-3.0-interface-exception\",\n \"GPL-3.0-linking-exception\",\n \"GPL-3.0-linking-source-exception\",\n \"GPL-CC-1.0\",\n \"GStreamer-exception-2005\",\n \"GStreamer-exception-2008\",\n \"Gmsh-exception\",\n \"Google-Patent-WebM\",\n \"Independent-modules-exception\",\n \"KiCad-libraries-exception\",\n \"LGPL-3.0-linking-exception\",\n \"LLGPL\",\n \"LLVM-exception\",\n \"LZMA-exception\",\n \"Libtool-exception\",\n \"Linux-syscall-note\",\n \"Nokia-Qt-exception-1.1\",\n \"OCCT-exception-1.0\",\n \"OCaml-LGPL-linking-exception\",\n \"OpenJDK-assembly-exception-1.0\",\n \"PCRE2-exception\",\n \"PS-or-PDF-font-exception-20170817\",\n \"QPL-1.0-INRIA-2004-exception\",\n \"Qt-GPL-exception-1.0\",\n \"Qt-LGPL-exception-1.1\",\n \"Qwt-exception-1.0\",\n \"RRDtool-FLOSS-exception-2.0\",\n \"SANE-exception\",\n \"SHL-2.0\",\n \"SHL-2.1\",\n \"SWI-exception\",\n \"Simple-Library-Usage-exception\",\n \"Spelling-Provider-LGPL-exception\",\n \"Swift-exception\",\n \"Texinfo-exception\",\n \"UBDL-exception\",\n \"Universal-FOSS-exception-1.0\",\n \"WxWindows-exception-3.1\",\n \"cryptsetup-OpenSSL-exception\",\n \"eCos-exception-2.0\",\n \"erlang-otp-linking-exception\",\n \"fmt-exception\",\n \"freertos-exception-2.0\",\n \"gnu-javamail-exception\",\n \"harbour-exception\",\n \"i2p-gpl-java-exception\",\n \"kvirc-openssl-exception\",\n \"libpri-OpenH323-exception\",\n \"mif-exception\",\n \"mxml-exception\",\n \"openvpn-openssl-exception\",\n \"polyparse-exception\",\n \"romic-exception\",\n \"rsync-linking-exception\",\n \"sqlitestudio-OpenSSL-exception\",\n \"stunnel-exception\",\n \"u-boot-exception-2.0\",\n \"vsftpd-openssl-exception\",\n \"x11vnc-openssl-exception\",\n];\n"],"mappings":";;;;;;AAMA,MAAa,4BAAoC;;;;;AAMjD,MAAa,gBAAmC;CAC9C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AAGA,MAAa,kBAAqC;CAChD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
@@ -0,0 +1,7 @@
1
+ import { ContractName, LicenseClass, PluginScope } from "./plugins.js";
2
+ import { BUILT_IN_EXPORTERS, CONTRACT_NAMES, CORE_COMMANDS, ContractInfo, ContributesKey, PLUGIN_CONTRACTS, coreCommandTaken, stampServed } from "./plugin/contracts.js";
3
+ import { SPDX_LICENSE_LIST_VERSION } from "./plugin/spdx.generated.js";
4
+ import { ACKNOWLEDGED_CLASSES, LicenseExpression, LicenseExpressionError, LicenseTerm, SpdxEntry, formatLicenseExpression, isLicenseRef, licenseTerms, packageLicense, packageLicenseTerms, parseLicenseExpression, spdxClass, spdxLicense, unreadableLicenseRef } from "./plugin/license.js";
5
+ import { BundledLicense, CONTRACT_OF_KEY, CONTRIBUTION_ID, ManifestCheck, ManifestIssue, PACKAGE_PATH, PLUGIN_EFFECTS, PLUGIN_MANIFEST_REVISION, PLUGIN_NAME, PLUGIN_PLATFORMS, PluginCommandEntry, PluginContributes, PluginEntry, PluginExample, PluginManifest, PluginManifestSchema, PluginPackEntry, checkPluginManifest, manifestScopes, pluginManifestRegistry } from "./plugin/manifest.js";
6
+ import { PACK_VARIABLES, PackAddress, PackMostraBlock, Registry, RegistryCssValue, RegistryCssVars, RegistryFile, RegistryFont, RegistryItem, RegistryItemSchema, RegistrySchema, packVariables, parsePackAddress } from "./plugin/registry-item.js";
7
+ export { ACKNOWLEDGED_CLASSES, BUILT_IN_EXPORTERS, type BundledLicense, CONTRACT_NAMES, CONTRACT_OF_KEY, CONTRIBUTION_ID, CORE_COMMANDS, type ContractInfo, type ContractName, type ContributesKey, type LicenseClass, type LicenseExpression, LicenseExpressionError, type LicenseTerm, type ManifestCheck, type ManifestIssue, PACKAGE_PATH, PACK_VARIABLES, PLUGIN_CONTRACTS, PLUGIN_EFFECTS, PLUGIN_MANIFEST_REVISION, PLUGIN_NAME, PLUGIN_PLATFORMS, type PackAddress, type PackMostraBlock, type PluginCommandEntry, type PluginContributes, type PluginEntry, type PluginExample, type PluginManifest, PluginManifestSchema, type PluginPackEntry, type PluginScope, type Registry, type RegistryCssValue, type RegistryCssVars, type RegistryFile, type RegistryFont, type RegistryItem, RegistryItemSchema, RegistrySchema, SPDX_LICENSE_LIST_VERSION, type SpdxEntry, checkPluginManifest, coreCommandTaken, formatLicenseExpression, isLicenseRef, licenseTerms, manifestScopes, packVariables, packageLicense, packageLicenseTerms, parseLicenseExpression, parsePackAddress, pluginManifestRegistry, spdxClass, spdxLicense, stampServed, unreadableLicenseRef };
package/dist/plugin.js ADDED
@@ -0,0 +1,6 @@
1
+ import { BUILT_IN_EXPORTERS, CONTRACT_NAMES, CORE_COMMANDS, PLUGIN_CONTRACTS, coreCommandTaken, stampServed } from "./plugin/contracts.js";
2
+ import { SPDX_LICENSE_LIST_VERSION } from "./plugin/spdx.generated.js";
3
+ import { ACKNOWLEDGED_CLASSES, LicenseExpressionError, formatLicenseExpression, isLicenseRef, licenseTerms, packageLicense, packageLicenseTerms, parseLicenseExpression, spdxClass, spdxLicense, unreadableLicenseRef } from "./plugin/license.js";
4
+ import { CONTRACT_OF_KEY, CONTRIBUTION_ID, PACKAGE_PATH, PLUGIN_EFFECTS, PLUGIN_MANIFEST_REVISION, PLUGIN_NAME, PLUGIN_PLATFORMS, PluginManifestSchema, checkPluginManifest, manifestScopes, pluginManifestRegistry } from "./plugin/manifest.js";
5
+ import { PACK_VARIABLES, RegistryItemSchema, RegistrySchema, packVariables, parsePackAddress } from "./plugin/registry-item.js";
6
+ export { ACKNOWLEDGED_CLASSES, BUILT_IN_EXPORTERS, CONTRACT_NAMES, CONTRACT_OF_KEY, CONTRIBUTION_ID, CORE_COMMANDS, LicenseExpressionError, PACKAGE_PATH, PACK_VARIABLES, PLUGIN_CONTRACTS, PLUGIN_EFFECTS, PLUGIN_MANIFEST_REVISION, PLUGIN_NAME, PLUGIN_PLATFORMS, PluginManifestSchema, RegistryItemSchema, RegistrySchema, SPDX_LICENSE_LIST_VERSION, checkPluginManifest, coreCommandTaken, formatLicenseExpression, isLicenseRef, licenseTerms, manifestScopes, packVariables, packageLicense, packageLicenseTerms, parseLicenseExpression, parsePackAddress, pluginManifestRegistry, spdxClass, spdxLicense, stampServed, unreadableLicenseRef };
@@ -0,0 +1,118 @@
1
+ import { Diagnostic } from "./diagnostics/diagnostic.js";
2
+ import * as z from "zod";
3
+ //#region src/plugins.d.ts
4
+ /**
5
+ * The six extension contracts (ARCHITECTURE §13, ROUND-3 §6.1), each its own
6
+ * `@mostra/contract-<name>` package with its own version.
7
+ */
8
+ export type ContractName = "embed-engine" | "exporter" | "verify-check" | "anchor-provider" | "connector" | "cli-command";
9
+ /** The Zod schema of the `ContractName` type. */
10
+ export declare const ContractName: z.ZodType<ContractName>;
11
+ /**
12
+ * What a license is, as Mostra shows it at install (D31, EX-04): `osi-permissive` and
13
+ * `osi-copyleft` (OSI-approved), `public-domain` (a dedication, or a license that asks nothing),
14
+ * `free` (free but not OSI-approved, such as CC-BY-4.0), `source-available` (readable, with use
15
+ * restricted), `proprietary`, and `unknown` (Mostra can't read it). The last three need a one-time
16
+ * acknowledgment.
17
+ */
18
+ export type LicenseClass = "osi-permissive" | "osi-copyleft" | "public-domain" | "free" | "source-available" | "proprietary" | "unknown";
19
+ /** The Zod schema of the `LicenseClass` type. */
20
+ export declare const LicenseClass: z.ZodType<LicenseClass>;
21
+ /**
22
+ * Where a license's acknowledgment stands: `not-needed` (its class needs none), `accepted` (with
23
+ * `--accept-license`, recorded in the lockfile), `host` (the home's host accepted it by policy,
24
+ * recorded the same way) or `missing`.
25
+ */
26
+ export type LicenseAcknowledgment = "not-needed" | "accepted" | "host" | "missing";
27
+ /** The Zod schema of the `LicenseAcknowledgment` type. */
28
+ export declare const LicenseAcknowledgment: z.ZodType<LicenseAcknowledgment>;
29
+ /** One package under a license, or one source pack item, as a disclosure lists it. */
30
+ export interface LicensedPackage {
31
+ /** The npm package's name, or the item's. */
32
+ readonly name: string;
33
+ /** The package's version; an item has none. */
34
+ readonly version?: string;
35
+ /** The license expression it declares, as Mostra read it. */
36
+ readonly license: string;
37
+ /** It is a source pack item (its `mostra.license`), whose files are copied in. */
38
+ readonly item?: true;
39
+ }
40
+ /** The Zod schema of the `LicensedPackage` type. */
41
+ export declare const LicensedPackage: z.ZodType<LicensedPackage>;
42
+ /** One license an install brings, shown before anything is recorded (D31). */
43
+ export interface LicenseDisclosure {
44
+ /** The license: an SPDX ID or a `LicenseRef-` reference, what `--accept-license` names. */
45
+ readonly id: string;
46
+ /** Its class (D31). */
47
+ readonly class: LicenseClass;
48
+ /** The packages under it. */
49
+ readonly packages: readonly LicensedPackage[];
50
+ /** Where its acknowledgment stands. */
51
+ readonly acknowledgment: LicenseAcknowledgment;
52
+ /** When it was acknowledged (RFC 3339). */
53
+ readonly acceptedAt?: string;
54
+ /** What the plugin says of it in one line, for a `LicenseRef-`. */
55
+ readonly summary?: string;
56
+ /** Where its full text is. */
57
+ readonly url?: string;
58
+ }
59
+ /** The Zod schema of the `LicenseDisclosure` type. */
60
+ export declare const LicenseDisclosure: z.ZodType<LicenseDisclosure>;
61
+ /** Where a plugin is installed: one artifact (recorded in its lockfile) or the whole home. */
62
+ export type PluginScope = "artifact" | "home";
63
+ /** The Zod schema of the `PluginScope` type. */
64
+ export declare const PluginScope: z.ZodType<PluginScope>;
65
+ /** One contribution of a plugin: the contract it implements and its ID. */
66
+ export interface PluginContribution {
67
+ /** The contract's stamp, its name and version, which the define function sets. */
68
+ readonly contract: ContractName;
69
+ /** Its ID (a CLI command's: its words joined by spaces). */
70
+ readonly id: string;
71
+ }
72
+ /** The Zod schema of the `PluginContribution` type. */
73
+ export declare const PluginContribution: z.ZodType<PluginContribution>;
74
+ /** A plugin as `plugin/*` reports it. */
75
+ export interface PluginSummary {
76
+ /** Its npm package. */
77
+ readonly package: string;
78
+ /** The package's version. */
79
+ readonly version: string;
80
+ /** Its manifest's `name`: `<namespace>/<name>`. */
81
+ readonly name: string;
82
+ /** A short name for people. */
83
+ readonly title?: string;
84
+ /** One sentence on what it does, for people and agents. */
85
+ readonly description?: string;
86
+ /** Where it is installed: one artifact, or the whole home. */
87
+ readonly scope: PluginScope;
88
+ /** The contract ranges it declares, by contract. */
89
+ readonly contracts: Readonly<Record<string, string>>;
90
+ /** What it contributes, in its manifest's order. */
91
+ readonly contributions: readonly PluginContribution[];
92
+ /** The source packs it carries (their item names). */
93
+ readonly packs: readonly string[];
94
+ /** The effects it declares (`network`, `filesystem` …): disclosure, never enforced. */
95
+ readonly effects: readonly string[];
96
+ /** Its own license expression. */
97
+ readonly license: string;
98
+ /** The systems it says it runs on; absent means all. */
99
+ readonly platforms?: readonly string[];
100
+ /** `ok` when it loads here, `error` when one of `diagnostics` is an error. */
101
+ readonly status: "ok" | "error";
102
+ /** What loading it found: contract ranges, conflicts, entries, licenses. */
103
+ readonly diagnostics: readonly Diagnostic[];
104
+ }
105
+ /** The Zod schema of the `PluginSummary` type. */
106
+ export declare const PluginSummary: z.ZodType<PluginSummary>;
107
+ /**
108
+ * The home's license policy (D31): the licenses its host accepts for every install, as
109
+ * `--accept-license` would (`"*"` accepts any). Kept in the home's `config.json`.
110
+ */
111
+ export interface LicensePolicy {
112
+ /** License IDs (`LicenseRef-Remotion`), or `"*"` for every license. */
113
+ readonly accept: readonly string[];
114
+ }
115
+ /** The Zod schema of the `LicensePolicy` type. */
116
+ export declare const LicensePolicy: z.ZodType<LicensePolicy>;
117
+ //#endregion
118
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","names":[],"sources":["../src/plugins.ts"],"mappings":";;;;;;;YAaY;;qBASC,cAAc,EAAE,QAAQ;;;;;;;;YAczB;;qBAUC,cAAc,EAAE,QAAQ;;;;;;YAqBzB;;qBAGC,uBAAuB,EAAE,QAAQ;;iBAQ7B;;WAEN;;WAEA;;WAEA;;WAEA;;;qBAIE,iBAAiB,EAAE,QAAQ;;iBAcvB;;WAEN;;WAEA,OAAO;;WAEP,mBAAmB;;WAEnB,gBAAgB;;WAEhB;;WAEA;;WAEA;;;qBAIE,mBAAmB,EAAE,QAAQ;;YAiB9B;;qBAGC,aAAa,EAAE,QAAQ;;iBASnB;;WAEN,UAAU;;WAEV;;;qBAIE,oBAAoB,EAAE,QAAQ;;iBAQ1B;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA,OAAO;;WAEP,WAAW,SAAS;;WAEpB,wBAAwB;;WAExB;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA,sBAAsB;;;qBAIpB,eAAe,EAAE,QAAQ;;;;;iBA2BrB;;WAEN;;;qBAIE,eAAe,EAAE,QAAQ"}
@@ -0,0 +1,109 @@
1
+ import { wireRegistry } from "./wire-registry.js";
2
+ import { Diagnostic } from "./diagnostics/diagnostic.js";
3
+ import * as z from "zod";
4
+ //#region src/plugins.ts
5
+ /**
6
+ * The wire types of the plugin system (D30, D31, INTERFACES §14): what `plugin/*` and `pack/add`
7
+ * answer, and the home's license policy. The manifest schema, license classing and the contract
8
+ * table live in the `./plugin` entry, which only the instance and tools load.
9
+ */
10
+ /** The Zod schema of the `ContractName` type. */
11
+ const ContractName = z.enum([
12
+ "embed-engine",
13
+ "exporter",
14
+ "verify-check",
15
+ "anchor-provider",
16
+ "connector",
17
+ "cli-command"
18
+ ]).register(wireRegistry, {
19
+ id: "ContractName",
20
+ description: "An extension contract: each is its own @mostra/contract-<name> package (D30)."
21
+ });
22
+ /** The Zod schema of the `LicenseClass` type. */
23
+ const LicenseClass = z.enum([
24
+ "osi-permissive",
25
+ "osi-copyleft",
26
+ "public-domain",
27
+ "free",
28
+ "source-available",
29
+ "proprietary",
30
+ "unknown"
31
+ ]).register(wireRegistry, {
32
+ id: "LicenseClass",
33
+ description: "What a license is (D31): OSI-approved (permissive, copyleft), public-domain, free, source-available, proprietary or unknown; the last three need an acknowledgment."
34
+ });
35
+ /** The Zod schema of the `LicenseAcknowledgment` type. */
36
+ const LicenseAcknowledgment = z.enum([
37
+ "not-needed",
38
+ "accepted",
39
+ "host",
40
+ "missing"
41
+ ]).register(wireRegistry, {
42
+ id: "LicenseAcknowledgment",
43
+ description: "Where a license's acknowledgment stands: not-needed, accepted, host or missing."
44
+ });
45
+ /** The Zod schema of the `LicensedPackage` type. */
46
+ const LicensedPackage = z.object({
47
+ name: z.string().min(1),
48
+ version: z.string().min(1).exactOptional(),
49
+ license: z.string(),
50
+ item: z.literal(true).exactOptional()
51
+ }).register(wireRegistry, {
52
+ id: "LicensedPackage",
53
+ description: "A package under a license (its name, version and declared license), or a source pack item."
54
+ });
55
+ /** The Zod schema of the `LicenseDisclosure` type. */
56
+ const LicenseDisclosure = z.object({
57
+ id: z.string().min(1),
58
+ class: LicenseClass,
59
+ packages: z.array(LicensedPackage).readonly(),
60
+ acknowledgment: LicenseAcknowledgment,
61
+ acceptedAt: z.iso.datetime().exactOptional(),
62
+ summary: z.string().exactOptional(),
63
+ url: z.string().exactOptional()
64
+ }).register(wireRegistry, {
65
+ id: "LicenseDisclosure",
66
+ description: "A license an install brings: its ID and class, the packages under it and where its acknowledgment stands (D31)."
67
+ });
68
+ /** The Zod schema of the `PluginScope` type. */
69
+ const PluginScope = z.enum(["artifact", "home"]).register(wireRegistry, {
70
+ id: "PluginScope",
71
+ description: "Where a plugin is installed: one artifact, or the whole home (exporters and CLI commands)."
72
+ });
73
+ /** The Zod schema of the `PluginContribution` type. */
74
+ const PluginContribution = z.object({
75
+ contract: ContractName,
76
+ id: z.string().min(1)
77
+ }).register(wireRegistry, {
78
+ id: "PluginContribution",
79
+ description: "A plugin's contribution: the contract it implements and its ID."
80
+ });
81
+ /** The Zod schema of the `PluginSummary` type. */
82
+ const PluginSummary = z.object({
83
+ package: z.string().min(1),
84
+ version: z.string().min(1),
85
+ name: z.string().min(1),
86
+ title: z.string().exactOptional(),
87
+ description: z.string().exactOptional(),
88
+ scope: PluginScope,
89
+ contracts: z.record(z.string(), z.string()),
90
+ contributions: z.array(PluginContribution).readonly(),
91
+ packs: z.array(z.string()).readonly(),
92
+ effects: z.array(z.string()).readonly(),
93
+ license: z.string(),
94
+ platforms: z.array(z.string()).readonly().exactOptional(),
95
+ status: z.enum(["ok", "error"]),
96
+ diagnostics: z.array(Diagnostic).readonly()
97
+ }).register(wireRegistry, {
98
+ id: "PluginSummary",
99
+ description: "A plugin as plugin/* reports it: its package, manifest, scope, contributions, licenses and whether it loads (D30)."
100
+ });
101
+ /** The Zod schema of the `LicensePolicy` type. */
102
+ const LicensePolicy = z.object({ accept: z.array(z.string().min(1).max(256)).max(256).readonly() }).register(wireRegistry, {
103
+ id: "LicensePolicy",
104
+ description: "The licenses a home's host accepts for every install (D31): IDs, or * for any. Kept in config.json."
105
+ });
106
+ //#endregion
107
+ export { ContractName, LicenseAcknowledgment, LicenseClass, LicenseDisclosure, LicensePolicy, LicensedPackage, PluginContribution, PluginScope, PluginSummary };
108
+
109
+ //# sourceMappingURL=plugins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.js","names":[],"sources":["../src/plugins.ts"],"sourcesContent":["/**\n * The wire types of the plugin system (D30, D31, INTERFACES §14): what `plugin/*` and `pack/add`\n * answer, and the home's license policy. The manifest schema, license classing and the contract\n * table live in the `./plugin` entry, which only the instance and tools load.\n */\nimport * as z from \"zod\";\nimport { Diagnostic } from \"./diagnostics/diagnostic.ts\";\nimport { wireRegistry } from \"./wire-registry.ts\";\n\n/**\n * The six extension contracts (ARCHITECTURE §13, ROUND-3 §6.1), each its own\n * `@mostra/contract-<name>` package with its own version.\n */\nexport type ContractName =\n | \"embed-engine\"\n | \"exporter\"\n | \"verify-check\"\n | \"anchor-provider\"\n | \"connector\"\n | \"cli-command\";\n\n/** The Zod schema of the `ContractName` type. */\nexport const ContractName: z.ZodType<ContractName> = z\n .enum([\"embed-engine\", \"exporter\", \"verify-check\", \"anchor-provider\", \"connector\", \"cli-command\"])\n .register(wireRegistry, {\n id: \"ContractName\",\n description: \"An extension contract: each is its own @mostra/contract-<name> package (D30).\",\n });\n\n/**\n * What a license is, as Mostra shows it at install (D31, EX-04): `osi-permissive` and\n * `osi-copyleft` (OSI-approved), `public-domain` (a dedication, or a license that asks nothing),\n * `free` (free but not OSI-approved, such as CC-BY-4.0), `source-available` (readable, with use\n * restricted), `proprietary`, and `unknown` (Mostra can't read it). The last three need a one-time\n * acknowledgment.\n */\nexport type LicenseClass =\n | \"osi-permissive\"\n | \"osi-copyleft\"\n | \"public-domain\"\n | \"free\"\n | \"source-available\"\n | \"proprietary\"\n | \"unknown\";\n\n/** The Zod schema of the `LicenseClass` type. */\nexport const LicenseClass: z.ZodType<LicenseClass> = z\n .enum([\n \"osi-permissive\",\n \"osi-copyleft\",\n \"public-domain\",\n \"free\",\n \"source-available\",\n \"proprietary\",\n \"unknown\",\n ])\n .register(wireRegistry, {\n id: \"LicenseClass\",\n description:\n \"What a license is (D31): OSI-approved (permissive, copyleft), public-domain, free, source-available, proprietary or unknown; the last three need an acknowledgment.\",\n });\n\n/**\n * Where a license's acknowledgment stands: `not-needed` (its class needs none), `accepted` (with\n * `--accept-license`, recorded in the lockfile), `host` (the home's host accepted it by policy,\n * recorded the same way) or `missing`.\n */\nexport type LicenseAcknowledgment = \"not-needed\" | \"accepted\" | \"host\" | \"missing\";\n\n/** The Zod schema of the `LicenseAcknowledgment` type. */\nexport const LicenseAcknowledgment: z.ZodType<LicenseAcknowledgment> = z\n .enum([\"not-needed\", \"accepted\", \"host\", \"missing\"])\n .register(wireRegistry, {\n id: \"LicenseAcknowledgment\",\n description: \"Where a license's acknowledgment stands: not-needed, accepted, host or missing.\",\n });\n\n/** One package under a license, or one source pack item, as a disclosure lists it. */\nexport interface LicensedPackage {\n /** The npm package's name, or the item's. */\n readonly name: string;\n /** The package's version; an item has none. */\n readonly version?: string;\n /** The license expression it declares, as Mostra read it. */\n readonly license: string;\n /** It is a source pack item (its `mostra.license`), whose files are copied in. */\n readonly item?: true;\n}\n\n/** The Zod schema of the `LicensedPackage` type. */\nexport const LicensedPackage: z.ZodType<LicensedPackage> = z\n .object({\n name: z.string().min(1),\n version: z.string().min(1).exactOptional(),\n license: z.string(),\n item: z.literal(true).exactOptional(),\n })\n .register(wireRegistry, {\n id: \"LicensedPackage\",\n description:\n \"A package under a license (its name, version and declared license), or a source pack item.\",\n });\n\n/** One license an install brings, shown before anything is recorded (D31). */\nexport interface LicenseDisclosure {\n /** The license: an SPDX ID or a `LicenseRef-` reference, what `--accept-license` names. */\n readonly id: string;\n /** Its class (D31). */\n readonly class: LicenseClass;\n /** The packages under it. */\n readonly packages: readonly LicensedPackage[];\n /** Where its acknowledgment stands. */\n readonly acknowledgment: LicenseAcknowledgment;\n /** When it was acknowledged (RFC 3339). */\n readonly acceptedAt?: string;\n /** What the plugin says of it in one line, for a `LicenseRef-`. */\n readonly summary?: string;\n /** Where its full text is. */\n readonly url?: string;\n}\n\n/** The Zod schema of the `LicenseDisclosure` type. */\nexport const LicenseDisclosure: z.ZodType<LicenseDisclosure> = z\n .object({\n id: z.string().min(1),\n class: LicenseClass,\n packages: z.array(LicensedPackage).readonly(),\n acknowledgment: LicenseAcknowledgment,\n acceptedAt: z.iso.datetime().exactOptional(),\n summary: z.string().exactOptional(),\n url: z.string().exactOptional(),\n })\n .register(wireRegistry, {\n id: \"LicenseDisclosure\",\n description:\n \"A license an install brings: its ID and class, the packages under it and where its acknowledgment stands (D31).\",\n });\n\n/** Where a plugin is installed: one artifact (recorded in its lockfile) or the whole home. */\nexport type PluginScope = \"artifact\" | \"home\";\n\n/** The Zod schema of the `PluginScope` type. */\nexport const PluginScope: z.ZodType<PluginScope> = z\n .enum([\"artifact\", \"home\"])\n .register(wireRegistry, {\n id: \"PluginScope\",\n description:\n \"Where a plugin is installed: one artifact, or the whole home (exporters and CLI commands).\",\n });\n\n/** One contribution of a plugin: the contract it implements and its ID. */\nexport interface PluginContribution {\n /** The contract's stamp, its name and version, which the define function sets. */\n readonly contract: ContractName;\n /** Its ID (a CLI command's: its words joined by spaces). */\n readonly id: string;\n}\n\n/** The Zod schema of the `PluginContribution` type. */\nexport const PluginContribution: z.ZodType<PluginContribution> = z\n .object({ contract: ContractName, id: z.string().min(1) })\n .register(wireRegistry, {\n id: \"PluginContribution\",\n description: \"A plugin's contribution: the contract it implements and its ID.\",\n });\n\n/** A plugin as `plugin/*` reports it. */\nexport interface PluginSummary {\n /** Its npm package. */\n readonly package: string;\n /** The package's version. */\n readonly version: string;\n /** Its manifest's `name`: `<namespace>/<name>`. */\n readonly name: string;\n /** A short name for people. */\n readonly title?: string;\n /** One sentence on what it does, for people and agents. */\n readonly description?: string;\n /** Where it is installed: one artifact, or the whole home. */\n readonly scope: PluginScope;\n /** The contract ranges it declares, by contract. */\n readonly contracts: Readonly<Record<string, string>>;\n /** What it contributes, in its manifest's order. */\n readonly contributions: readonly PluginContribution[];\n /** The source packs it carries (their item names). */\n readonly packs: readonly string[];\n /** The effects it declares (`network`, `filesystem` …): disclosure, never enforced. */\n readonly effects: readonly string[];\n /** Its own license expression. */\n readonly license: string;\n /** The systems it says it runs on; absent means all. */\n readonly platforms?: readonly string[];\n /** `ok` when it loads here, `error` when one of `diagnostics` is an error. */\n readonly status: \"ok\" | \"error\";\n /** What loading it found: contract ranges, conflicts, entries, licenses. */\n readonly diagnostics: readonly Diagnostic[];\n}\n\n/** The Zod schema of the `PluginSummary` type. */\nexport const PluginSummary: z.ZodType<PluginSummary> = z\n .object({\n package: z.string().min(1),\n version: z.string().min(1),\n name: z.string().min(1),\n title: z.string().exactOptional(),\n description: z.string().exactOptional(),\n scope: PluginScope,\n contracts: z.record(z.string(), z.string()),\n contributions: z.array(PluginContribution).readonly(),\n packs: z.array(z.string()).readonly(),\n effects: z.array(z.string()).readonly(),\n license: z.string(),\n platforms: z.array(z.string()).readonly().exactOptional(),\n status: z.enum([\"ok\", \"error\"]),\n diagnostics: z.array(Diagnostic).readonly(),\n })\n .register(wireRegistry, {\n id: \"PluginSummary\",\n description:\n \"A plugin as plugin/* reports it: its package, manifest, scope, contributions, licenses and whether it loads (D30).\",\n });\n\n/**\n * The home's license policy (D31): the licenses its host accepts for every install, as\n * `--accept-license` would (`\"*\"` accepts any). Kept in the home's `config.json`.\n */\nexport interface LicensePolicy {\n /** License IDs (`LicenseRef-Remotion`), or `\"*\"` for every license. */\n readonly accept: readonly string[];\n}\n\n/** The Zod schema of the `LicensePolicy` type. */\nexport const LicensePolicy: z.ZodType<LicensePolicy> = z\n .object({ accept: z.array(z.string().min(1).max(256)).max(256).readonly() })\n .register(wireRegistry, {\n id: \"LicensePolicy\",\n description:\n \"The licenses a home's host accepts for every install (D31): IDs, or * for any. Kept in config.json.\",\n });\n"],"mappings":";;;;;;;;;;AAsBA,MAAa,eAAwC,EAClD,KAAK;CAAC;CAAgB;CAAY;CAAgB;CAAmB;CAAa;AAAa,CAAC,CAAC,CACjG,SAAS,cAAc;CACtB,IAAI;CACJ,aAAa;AACf,CAAC;;AAmBH,MAAa,eAAwC,EAClD,KAAK;CACJ;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC,CAAC,CACD,SAAS,cAAc;CACtB,IAAI;CACJ,aACE;AACJ,CAAC;;AAUH,MAAa,wBAA0D,EACpE,KAAK;CAAC;CAAc;CAAY;CAAQ;AAAS,CAAC,CAAC,CACnD,SAAS,cAAc;CACtB,IAAI;CACJ,aAAa;AACf,CAAC;;AAeH,MAAa,kBAA8C,EACxD,OAAO;CACN,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CACtB,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc;CACzC,SAAS,EAAE,OAAO;CAClB,MAAM,EAAE,QAAQ,IAAI,CAAC,CAAC,cAAc;AACtC,CAAC,CAAC,CACD,SAAS,cAAc;CACtB,IAAI;CACJ,aACE;AACJ,CAAC;;AAqBH,MAAa,oBAAkD,EAC5D,OAAO;CACN,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CACpB,OAAO;CACP,UAAU,EAAE,MAAM,eAAe,CAAC,CAAC,SAAS;CAC5C,gBAAgB;CAChB,YAAY,EAAE,IAAI,SAAS,CAAC,CAAC,cAAc;CAC3C,SAAS,EAAE,OAAO,CAAC,CAAC,cAAc;CAClC,KAAK,EAAE,OAAO,CAAC,CAAC,cAAc;AAChC,CAAC,CAAC,CACD,SAAS,cAAc;CACtB,IAAI;CACJ,aACE;AACJ,CAAC;;AAMH,MAAa,cAAsC,EAChD,KAAK,CAAC,YAAY,MAAM,CAAC,CAAC,CAC1B,SAAS,cAAc;CACtB,IAAI;CACJ,aACE;AACJ,CAAC;;AAWH,MAAa,qBAAoD,EAC9D,OAAO;CAAE,UAAU;CAAc,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;AAAE,CAAC,CAAC,CACzD,SAAS,cAAc;CACtB,IAAI;CACJ,aAAa;AACf,CAAC;;AAmCH,MAAa,gBAA0C,EACpD,OAAO;CACN,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CACzB,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CACzB,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CACtB,OAAO,EAAE,OAAO,CAAC,CAAC,cAAc;CAChC,aAAa,EAAE,OAAO,CAAC,CAAC,cAAc;CACtC,OAAO;CACP,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC;CAC1C,eAAe,EAAE,MAAM,kBAAkB,CAAC,CAAC,SAAS;CACpD,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;CACpC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;CACtC,SAAS,EAAE,OAAO;CAClB,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,cAAc;CACxD,QAAQ,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC;CAC9B,aAAa,EAAE,MAAM,UAAU,CAAC,CAAC,SAAS;AAC5C,CAAC,CAAC,CACD,SAAS,cAAc;CACtB,IAAI;CACJ,aACE;AACJ,CAAC;;AAYH,MAAa,gBAA0C,EACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAC3E,SAAS,cAAc;CACtB,IAAI;CACJ,aACE;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mostra/protocol",
3
- "version": "0.14.0",
3
+ "version": "0.15.1",
4
4
  "description": "Mostra's shared protocol vocabulary: IDs, dated revisions and diagnostics, with Zod schemas and generated JSON Schema.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "The Mostra Authors",
@@ -31,6 +31,11 @@
31
31
  "types": "./dist/operator.d.ts",
32
32
  "default": "./dist/operator.js"
33
33
  },
34
+ "./plugin": {
35
+ "@mostra/source": "./src/plugin.ts",
36
+ "types": "./dist/plugin.d.ts",
37
+ "default": "./dist/plugin.js"
38
+ },
34
39
  "./schemas/*": "./schemas/*",
35
40
  "./package.json": "./package.json"
36
41
  },
@@ -71,7 +76,16 @@
71
76
  "ignore": [
72
77
  "zod"
73
78
  ],
74
- "limit": "60 kB"
79
+ "limit": "66 kB"
80
+ },
81
+ {
82
+ "name": "@mostra/protocol/plugin (D30, zod excluded)",
83
+ "path": "dist/plugin.js",
84
+ "import": "*",
85
+ "ignore": [
86
+ "zod"
87
+ ],
88
+ "limit": "12 kB"
75
89
  },
76
90
  {
77
91
  "name": "@mostra/protocol JSON-RPC core (D83, zod excluded)",
@@ -110,9 +124,10 @@
110
124
  "limit": "5 kB"
111
125
  }
112
126
  ],
113
- "mostra": {
127
+ "mostra-tools": {
114
128
  "apiReports": [
115
- "./operator"
129
+ "./operator",
130
+ "./plugin"
116
131
  ]
117
132
  },
118
133
  "scripts": {