@openforge-app/plugin-sdk 0.1.0 → 0.2.4
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.
- package/LICENSE +21 -0
- package/README.md +26 -0
- package/dist/backend.d.ts +2 -2
- package/dist/browserSurfaces.d.ts +78 -0
- package/dist/browserSurfaces.js +17 -0
- package/dist/browserSurfacesTesting.d.ts +60 -0
- package/dist/browserSurfacesTesting.js +240 -0
- package/dist/domain.d.ts +74 -15
- package/dist/domain.js +5 -1
- package/dist/fileIcons.d.ts +6 -0
- package/dist/fileIcons.js +84 -0
- package/dist/frontend.d.ts +5 -2
- package/dist/frontend.js +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +2 -1
- package/dist/manifest.d.ts +80 -2
- package/dist/manifest.js +55 -1
- package/dist/markdown.d.ts +5 -1
- package/dist/markdown.js +67 -18
- package/dist/openforgePackageMetadataSchema.json +80 -4
- package/dist/pluginIconContract.d.ts +3 -0
- package/dist/pluginIconContract.js +12 -0
- package/dist/pluginIcons.d.ts +7 -0
- package/dist/pluginIcons.js +99 -0
- package/dist/publicUiExports.d.mts +16 -0
- package/dist/publicUiExports.mjs +60 -0
- package/dist/svelteHostRuntimeContract.d.mts +1 -0
- package/dist/svelteHostRuntimeContract.mjs +16 -0
- package/dist/testing/backendServicesFake.d.ts +19 -0
- package/dist/testing/backendServicesFake.js +87 -0
- package/dist/testing/commonApiFake.d.ts +23 -0
- package/dist/testing/commonApiFake.js +306 -0
- package/dist/testing/contracts.d.ts +236 -0
- package/dist/testing/contracts.js +1 -0
- package/dist/testing/frontendContributionFake.d.ts +36 -0
- package/dist/testing/frontendContributionFake.js +204 -0
- package/dist/testing/registryFake.d.ts +40 -0
- package/dist/testing/registryFake.js +124 -0
- package/dist/testing/support.d.ts +40 -0
- package/dist/testing/support.js +247 -0
- package/dist/testing.d.ts +3 -223
- package/dist/testing.js +2 -625
- package/dist/types.d.ts +251 -9
- package/dist/types.js +47 -0
- package/dist/ui/Button.svelte +49 -0
- package/dist/ui/Checkbox.svelte +137 -0
- package/dist/ui/FileTypeIcon.svelte +37 -0
- package/dist/ui/MarkdownContent.svelte +71 -11
- package/dist/ui/Modal.svelte +157 -0
- package/dist/ui/PluginPageHeader.svelte +26 -0
- package/dist/ui/PluginSidebarLink.svelte +54 -0
- package/dist/ui/PluginViewState.svelte +76 -0
- package/dist/ui/ResizablePanel.svelte +10 -0
- package/dist/ui/icons/README.md +9 -0
- package/dist/ui/icons/c.svg +1 -0
- package/dist/ui/icons/console.svg +1 -0
- package/dist/ui/icons/cpp.svg +1 -0
- package/dist/ui/icons/csharp.svg +1 -0
- package/dist/ui/icons/css.svg +3 -0
- package/dist/ui/icons/database.svg +1 -0
- package/dist/ui/icons/docker.svg +1 -0
- package/dist/ui/icons/document.svg +4 -0
- package/dist/ui/icons/file.svg +1 -0
- package/dist/ui/icons/folder-open.svg +1 -0
- package/dist/ui/icons/folder.svg +1 -0
- package/dist/ui/icons/git.svg +3 -0
- package/dist/ui/icons/go.svg +1 -0
- package/dist/ui/icons/graphql.svg +20 -0
- package/dist/ui/icons/h.svg +3 -0
- package/dist/ui/icons/html.svg +3 -0
- package/dist/ui/icons/image.svg +3 -0
- package/dist/ui/icons/java.svg +6 -0
- package/dist/ui/icons/javascript.svg +3 -0
- package/dist/ui/icons/json.svg +3 -0
- package/dist/ui/icons/kotlin.svg +1 -0
- package/dist/ui/icons/lock.svg +3 -0
- package/dist/ui/icons/markdown.svg +6 -0
- package/dist/ui/icons/nodejs.svg +6 -0
- package/dist/ui/icons/npm.svg +3 -0
- package/dist/ui/icons/pdf.svg +1 -0
- package/dist/ui/icons/php.svg +1 -0
- package/dist/ui/icons/python.svg +1 -0
- package/dist/ui/icons/react.svg +8 -0
- package/dist/ui/icons/react_ts.svg +8 -0
- package/dist/ui/icons/readme.svg +4 -0
- package/dist/ui/icons/ruby.svg +1 -0
- package/dist/ui/icons/rust.svg +1 -0
- package/dist/ui/icons/sass.svg +3 -0
- package/dist/ui/icons/settings.svg +4 -0
- package/dist/ui/icons/svelte.svg +1 -0
- package/dist/ui/icons/svg.svg +3 -0
- package/dist/ui/icons/swift.svg +1 -0
- package/dist/ui/icons/tune.svg +11 -0
- package/dist/ui/icons/typescript-def.svg +6 -0
- package/dist/ui/icons/typescript.svg +3 -0
- package/dist/ui/icons/vue.svg +1 -0
- package/dist/ui/icons/xml.svg +1 -0
- package/dist/ui/icons/yaml.svg +3 -0
- package/dist/ui/icons/zip.svg +3 -0
- package/dist/vite.js +5 -2
- package/package.json +35 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2m4.93 10.44c.41.9.93 1.64 1.53 2.15l.41.32c-.87.16-2.07.44-3.34.93l-.11.04.5-1.04c.45-.87.78-1.66 1.01-2.4m6.48 3.81c.18-.18.27-.41.28-.66.03-.2-.02-.39-.12-.55-.29-.47-1.04-.69-2.28-.69l-1.29.07-.87-.58c-.63-.52-1.2-1.43-1.6-2.56l.04-.14c.33-1.33.64-2.94-.02-3.6a.853.853 0 0 0-.61-.24h-.24c-.37 0-.7.39-.79.77-.37 1.33-.15 2.06.22 3.27v.01c-.25.88-.57 1.9-1.08 2.93l-.96 1.8-.89.49c-1.2.75-1.77 1.59-1.88 2.12-.04.19-.02.36.05.54l.03.05.48.31.44.11c.81 0 1.73-.95 2.97-3.07l.18-.07c1.03-.33 2.31-.56 4.03-.75 1.03.51 2.24.74 3 .74.44 0 .74-.11.91-.3m-.41-.71.09.11c-.01.1-.04.11-.09.13h-.04l-.19.02c-.46 0-1.17-.19-1.9-.51.09-.1.13-.1.23-.1 1.4 0 1.8.25 1.9.35M7.83 17c-.65 1.19-1.24 1.85-1.69 2 .05-.38.5-1.04 1.21-1.69l.48-.31m3.02-6.91c-.23-.9-.24-1.63-.07-2.05l.07-.12.15.05c.17.24.19.56.09 1.1l-.03.16-.16.82z" fill="#ef5350"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 18.08c-6.63 0-12-2.72-12-6.08s5.37-6.08 12-6.08S24 8.64 24 12s-5.37 6.08-12 6.08m-5.19-7.95c.54 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.58 1.09-.28.22-.71.33-1.29.33h-.87l.53-2.76h.99m-3.5 5.55h1.44l.34-1.75h1.23c.54 0 .98-.06 1.33-.17.35-.12.67-.31.96-.58.24-.22.43-.46.58-.73.15-.26.26-.56.31-.88.16-.78.05-1.39-.33-1.82-.39-.44-.99-.65-1.82-.65H4.59l-1.28 6.58m7.25-8.33-1.28 6.58h1.42l.74-3.77h1.14c.36 0 .6.06.71.18.11.12.13.34.07.66l-.57 2.93h1.45l.59-3.07c.13-.62.03-1.07-.27-1.36-.3-.27-.85-.4-1.65-.4h-1.27L12 7.35h-1.44M18 10.13c.55 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.57 1.09-.29.22-.72.33-1.3.33h-.85l.5-2.76h1m-3.5 5.55h1.44l.34-1.75h1.22c.55 0 1-.06 1.35-.17.35-.12.65-.31.95-.58.24-.22.44-.46.58-.73.15-.26.26-.56.32-.88.15-.78.04-1.39-.34-1.82-.36-.44-.99-.65-1.82-.65h-2.75l-1.29 6.58z" fill="#1E88E5"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9.86 2A2.86 2.86 0 0 0 7 4.86v1.68h4.29c.39 0 .71.57.71.96H4.86A2.86 2.86 0 0 0 2 10.36v3.781a2.86 2.86 0 0 0 2.86 2.86h1.18v-2.68a2.85 2.85 0 0 1 2.85-2.86h5.25c1.58 0 2.86-1.271 2.86-2.851V4.86A2.86 2.86 0 0 0 14.14 2zm-.72 1.61c.4 0 .72.12.72.71s-.32.891-.72.891c-.39 0-.71-.3-.71-.89s.32-.711.71-.711z" fill="#3c78aa"/><path d="M17.959 7v2.68a2.85 2.85 0 0 1-2.85 2.859H9.86A2.85 2.85 0 0 0 7 15.389v3.75a2.86 2.86 0 0 0 2.86 2.86h4.28A2.86 2.86 0 0 0 17 19.14v-1.68h-4.291c-.39 0-.709-.57-.709-.96h7.14A2.86 2.86 0 0 0 22 13.64V9.86A2.86 2.86 0 0 0 19.14 7zM8.32 11.513l-.004.004c.012-.002.025-.001.038-.004zm6.54 7.276c.39 0 .71.3.71.89a.71.71 0 0 1-.71.71c-.4 0-.72-.12-.72-.71s.32-.89.72-.89z" fill="#fdd835"/></svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2
|
+
<g>
|
|
3
|
+
<path d="M16,12c7.44405,0,12,2.58981,12,4s-4.55595,4-12,4S4,17.41019,4,16,8.556,12,16,12m0-2C8.268,10,2,12.68629,2,16s6.268,6,14,6,14-2.68629,14-6-6.268-6-14-6Z" style="fill: #00bcd4"/>
|
|
4
|
+
<path d="M16,14a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z" style="fill: #00bcd4"/>
|
|
5
|
+
<path d="M10.45764,5.50706C12.47472,5.50746,16.395,8.68416,19.4641,14,23.18613,20.44672,23.22125,25.68721,22,26.3923a.90009.90009,0,0,1-.45691.10064c-2.01725,0-5.93792-3.17678-9.00721-8.49294C8.81387,11.55328,8.77875,6.31279,10,5.6077a.90278.90278,0,0,1,.45766-.10064m-.00076-2A2.87113,2.87113,0,0,0,9,3.87564C6.13025,5.5325,6.93785,12.30391,10.80385,19c3.28459,5.68906,7.71948,9.49292,10.73927,9.49292A2.87033,2.87033,0,0,0,23,28.12436C25.86975,26.4675,25.06215,19.69609,21.19615,13c-3.28459-5.68906-7.71948-9.49342-10.73927-9.49292Z" style="fill: #00bcd4"/>
|
|
6
|
+
<path d="M21.54311,5.50706A.9.9,0,0,1,22,5.6077c1.22125.70509,1.18613,5.94558-2.5359,12.3923-3.06929,5.31616-6.99,8.49294-9.00721,8.49294A.9.9,0,0,1,10,26.3923C8.77875,25.68721,8.81387,20.44672,12.5359,14c3.06929-5.31616,6.99-8.49294,9.00721-8.49294m0-2c-3.01979,0-7.45468,3.80386-10.73927,9.49292C6.93785,19.69609,6.13025,26.4675,9,28.12436a2.87033,2.87033,0,0,0,1.45688.36856c3.01979,0,7.45468-3.80386,10.73927-9.49292C25.06215,12.30391,25.86975,5.5325,23,3.87564a2.87033,2.87033,0,0,0-1.45688-.36856Z" style="fill: #00bcd4"/>
|
|
7
|
+
</g>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2
|
+
<g>
|
|
3
|
+
<path d="M16,12c7.44405,0,12,2.58981,12,4s-4.55595,4-12,4S4,17.41019,4,16,8.556,12,16,12m0-2C8.268,10,2,12.68629,2,16s6.268,6,14,6,14-2.68629,14-6-6.268-6-14-6Z" style="fill: #0288d1"/>
|
|
4
|
+
<path d="M16,14a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z" style="fill: #0288d1"/>
|
|
5
|
+
<path d="M10.45764,5.50706C12.47472,5.50746,16.395,8.68416,19.4641,14,23.18613,20.44672,23.22125,25.68721,22,26.3923a.90009.90009,0,0,1-.45691.10064c-2.01725,0-5.93792-3.17678-9.00721-8.49294C8.81387,11.55328,8.77875,6.31279,10,5.6077a.90278.90278,0,0,1,.45766-.10064m-.00076-2A2.87113,2.87113,0,0,0,9,3.87564C6.13025,5.5325,6.93785,12.30391,10.80385,19c3.28459,5.68906,7.71948,9.49292,10.73927,9.49292A2.87033,2.87033,0,0,0,23,28.12436C25.86975,26.4675,25.06215,19.69609,21.19615,13c-3.28459-5.68906-7.71948-9.49342-10.73927-9.49292Z" style="fill: #0288d1"/>
|
|
6
|
+
<path d="M21.54311,5.50706A.9.9,0,0,1,22,5.6077c1.22125.70509,1.18613,5.94558-2.5359,12.3923-3.06929,5.31616-6.99,8.49294-9.00721,8.49294A.9.9,0,0,1,10,26.3923C8.77875,25.68721,8.81387,20.44672,12.5359,14c3.06929-5.31616,6.99-8.49294,9.00721-8.49294m0-2c-3.01979,0-7.45468,3.80386-10.73927,9.49292C6.93785,19.69609,6.13025,26.4675,9,28.12436a2.87033,2.87033,0,0,0,1.45688.36856c3.01979,0,7.45468-3.80386,10.73927-9.49292C25.06215,12.30391,25.86975,5.5325,23,3.87564a2.87033,2.87033,0,0,0-1.45688-.36856Z" style="fill: #0288d1"/>
|
|
7
|
+
</g>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24px" height="24px" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
|
3
|
+
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" fill="#42a5f5"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M18.041 3.177c2.24.382 2.879 1.919 2.843 3.527V6.67l-1.013 13.266-13.132.897h.008c-1.093-.044-3.518-.151-3.634-3.545l1.217-2.222 2.462 5.74 2.097-6.77-.045.009.018-.018 6.85 2.186L13.945 9.3l6.53-.409-5.144-4.212 2.71-1.51v.009M3.113 17.252v.017-.017M6.916 6.874c2.63-2.622 6.033-4.168 7.34-2.844 1.297 1.306-.072 4.523-2.702 7.135-2.666 2.613-6.015 4.248-7.322 2.933-1.306-1.324.036-4.612 2.675-7.224z" style="fill:#f44336;stroke-width:.88855"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M24,20a2.00591,2.00591,0,0,1-2-2,2,2,0,0,0-2-2,3.00017,3.00017,0,0,0,2.99579-3.16132A3.11454,3.11454,0,0,0,19.83026,10H4v2h6v8H4v2H16V20H14V18h4c.81885.81885.29669,2.30811,1.17865,3.36987A1.88526,1.88526,0,0,0,20.63879,22H28V20Zm-6-6H14V12h4a1,1,0,0,1,0,2Z" style="fill:#ff7043"/><path d="M16.01108,3.77914A12.22061,12.22061,0,1,1,5.88381,9.14562,12.16113,12.16113,0,0,1,16.01108,3.77914m.00057-1h0A13.22132,13.22132,0,1,0,23.41531,5.056,13.21772,13.21772,0,0,0,16.0116,2.77914Z" style="fill:#ff7043"/><polygon points="25.139 2.512 20.897 3.327 20.325 4.17 25.383 7.597 25.955 6.754 25.139 2.512" style="fill:#ff7043"/><polygon points="19.282 0.041 15.674 2.418 15.469 3.415 21.454 4.646 21.659 3.649 19.282 0.041" style="fill:#ff7043"/><polygon points="12.925 0 10.501 3.577 10.694 4.577 16.694 3.423 16.501 2.423 12.925 0" style="fill:#ff7043"/><polygon points="7.036 2.395 6.166 6.627 6.726 7.477 11.828 4.115 11.268 3.265 7.036 2.395" style="fill:#ff7043"/><polygon points="2.512 6.861 3.327 11.103 4.17 11.675 7.597 6.617 6.754 6.045 2.512 6.861" style="fill:#ff7043"/><polygon points="0.041 12.718 2.418 16.326 3.415 16.531 4.646 10.546 3.649 10.341 0.041 12.718" style="fill:#ff7043"/><polygon points="0 19.075 3.577 21.499 4.577 21.306 3.423 15.306 2.423 15.499 0 19.075" style="fill:#ff7043"/><polygon points="2.395 24.964 6.627 25.834 7.477 25.274 4.115 20.172 3.265 20.732 2.395 24.964" style="fill:#ff7043"/><polygon points="6.861 29.488 11.103 28.673 11.675 27.83 6.617 24.403 6.045 25.246 6.861 29.488" style="fill:#ff7043"/><polygon points="12.718 31.959 16.326 29.582 16.531 28.585 10.546 27.354 10.341 28.351 12.718 31.959" style="fill:#ff7043"/><polygon points="19.075 32 21.499 28.423 21.306 27.423 15.306 28.577 15.499 29.577 19.075 32" style="fill:#ff7043"/><polygon points="24.964 29.605 25.834 25.373 25.274 24.523 20.172 27.885 20.732 28.735 24.964 29.605" style="fill:#ff7043"/><polygon points="29.488 25.139 28.673 20.897 27.83 20.325 24.403 25.383 25.246 25.955 29.488 25.139" style="fill:#ff7043"/><polygon points="32 12.925 28.423 10.501 27.423 10.694 28.577 16.694 29.577 16.501 32 12.925" style="fill:#ff7043"/><polygon points="29.605 7.036 25.373 6.166 24.523 6.726 27.885 11.828 28.735 11.268 29.605 7.036" style="fill:#ff7043"/><polygon points="31.959 19.282 29.582 15.674 28.585 15.469 27.354 21.454 28.351 21.659 31.959 19.282" style="fill:#ff7043"/></svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2
|
+
<path d="M27.83653,5.67329A4.32575,4.32575,0,0,0,25.54386,2.972c-2.36209-1.26119-6.11054-1.29834-9.5476-.09239A26.33875,26.33875,0,0,0,7.23619,7.84615c-2.75267,2.54143-3.438,4.925-3.18872,6.1935.52208,2.668,3.27378,4.53929,5.48482,6.04244.418.284.82126.55874,1.17469.81635-1.42889.75916-4.26125,2.44318-5.08837,4.24795a3.88406,3.88406,0,0,0-.11781,3.33139,2.36531,2.36531,0,0,0,1.36778,1.3218A5.60231,5.60231,0,0,0,8.35907,30a6.34583,6.34583,0,0,0,5.19-2.85624,6.73483,6.73483,0,0,0,.86379-5.382,7.31511,7.31511,0,0,1,2.04385-.02884A3.916,3.916,0,0,1,19.273,23.04344a1.823,1.823,0,0,1,.42334,1.26118,1.55091,1.55091,0,0,1-.77238,1.04952c-.23366.14176-.58563.35587-.5035.80413.03519.19358.19749.63255.8936.51132a2.93172,2.93172,0,0,0,2.14505-2.65093A3.99258,3.99258,0,0,0,20.2624,21.115a5.941,5.941,0,0,0-4.39666-1.62586,10.55222,10.55222,0,0,0-2.67153.30357A19.69775,19.69775,0,0,0,10.991,17.94737c-1.71242-1.30079-3.33049-2.52922-3.23517-4.25968.12564-2.26378,2.46866-4.53294,6.96406-6.74441,4.01634-1.97586,7.25444-2.03745,8.94388-1.43864a2.01272,2.01272,0,0,1,1.20451.88332,2.76585,2.76585,0,0,1-.36077,2.46958A9.71389,9.71389,0,0,1,17.083,13.16219a3.86349,3.86349,0,0,1-3.2381-.7572c-.27815-.30161-.593-.64477-1.074-.38324-.37544.20677-.45218.60371-.22487,1.18884a3.89369,3.89369,0,0,0,2.40657,1.92013,11.71029,11.71029,0,0,0,7.12831-.67117C25.60839,13.11087,28.7624,9.25789,27.83653,5.67329ZM11.89487,24.47522a3.896,3.896,0,0,1-.19163.46782,4.51367,4.51367,0,0,1-.75282,1.08129,2.83129,2.83129,0,0,1-2.53367,1.10672c-.05573-.03227-.07773-.14568-.08457-.19309a3.28033,3.28033,0,0,1,1.07594-2.28382,11.29746,11.29746,0,0,1,2.64367-1.93284A3.8528,3.8528,0,0,1,11.89487,24.47522Z" style="fill: #ec407a"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24px" height="24px" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M0 0h24v24H0V0z" fill="none"/>
|
|
3
|
+
<path d="M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" fill="#42a5f5"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg"><path d="M175.94 24.328c-13.037.252-26.009 3.872-37.471 11.174L79.912 72.818a67.134 67.134 0 0 0-30.355 44.906 70.794 70.794 0 0 0 6.959 45.445 67.224 67.224 0 0 0-10.035 25.102 71.535 71.535 0 0 0 12.236 54.156c23.351 33.41 69.468 43.311 102.81 22.07l58.559-37.158a67.359 67.359 0 0 0 30.355-44.906 70.771 70.771 0 0 0-6.982-45.422 67.65 67.65 0 0 0 10.059-25.102 71.625 71.625 0 0 0-12.236-54.156v-.18c-15.324-21.925-40.453-33.727-65.342-33.246zm5.137 28.68a46.5 46.5 0 0 1 36.09 19.969 42.975 42.975 0 0 1 7.365 32.557 45.242 45.242 0 0 1-1.393 5.455l-1.123 3.37-2.986-2.247a75.846 75.846 0 0 0-22.902-11.45l-2.244-.651.201-2.246a13.157 13.157 0 0 0-2.379-8.711 13.988 13.988 0 0 0-14.953-5.412 12.843 12.843 0 0 0-3.594 1.572l-58.578 37.25a12.237 12.237 0 0 0-5.502 8.15 13.112 13.112 0 0 0 2.246 9.834 14.033 14.033 0 0 0 14.93 5.569 13.472 13.472 0 0 0 3.594-1.573l22.453-14.234a41.785 41.785 0 0 1 11.898-5.232 46.477 46.477 0 0 1 49.914 18.502 43.02 43.02 0 0 1 7.363 32.557 40.415 40.415 0 0 1-18.254 27.078l-58.58 37.316a43.065 43.065 0 0 1-11.898 5.23A46.545 46.545 0 0 1 82.81 227.14a42.975 42.975 0 0 1-7.341-32.557 38.17 38.17 0 0 1 1.39-5.41l1.102-3.37 3.008 2.246a75.846 75.846 0 0 0 22.836 11.361l2.244.65-.201 2.247a13.247 13.247 0 0 0 2.447 8.644 14.033 14.033 0 0 0 15.043 5.569 13.135 13.135 0 0 0 3.592-1.573l58.467-37.316a12.169 12.169 0 0 0 5.502-8.173 12.955 12.955 0 0 0-2.246-9.811 14.033 14.033 0 0 0-15.043-5.568 12.843 12.843 0 0 0-3.592 1.57l-22.453 14.258a42.885 42.885 0 0 1-11.877 5.209 46.522 46.522 0 0 1-49.846-18.5 43.02 43.02 0 0 1-7.297-32.557A40.415 40.415 0 0 1 96.798 96.98l58.646-37.316a42.773 42.773 0 0 1 11.811-5.21 46.5 46.5 0 0 1 13.822-1.444z" style="fill:#ff5722;stroke-width:2.2453"/></svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2
|
+
<path d="M29.1684,14.03021A2.68749,2.68749,0,0,0,27.2,13.19861a2.51031,2.51031,0,0,0-1.929.8H20.82837l3.07776-3.07776a2.83475,2.83475,0,0,0,2.857-2.842,2.5931,2.5931,0,0,0-.8316-1.96839A2.823,2.823,0,0,0,23.9184,5.3222,2.67072,2.67072,0,0,0,21.95,6.11041a2.35451,2.35451,0,0,0-.81231,1.922L18,11.1701v-4.444a2.51058,2.51058,0,0,0,.8-1.929,2.69343,2.69343,0,0,0-.83161-1.96838,2.74533,2.74533,0,0,0-3.93676,0A2.68742,2.68742,0,0,0,13.2,4.79718a2.51058,2.51058,0,0,0,.8,1.929v4.444L10.8623,8.03241a2.35451,2.35451,0,0,0-.81231-1.922A2.66055,2.66055,0,0,0,8.0816,5.3222a2.828,2.828,0,0,0-2.01318.78821,2.59708,2.59708,0,0,0-.8316,1.96839,2.7419,2.7419,0,0,0,.8316,2.01318,2.78857,2.78857,0,0,0,2.02545.82886l3.07776,3.07776H6.72894a2.51031,2.51031,0,0,0-1.92895-.8,2.69359,2.69359,0,0,0-1.96839.8316,2.74537,2.74537,0,0,0,0,3.93677A2.68772,2.68772,0,0,0,4.8,18.79858a2.51043,2.51043,0,0,0,1.92895-.8h4.44263L8.09381,21.07635a2.83475,2.83475,0,0,0-2.857,2.842,2.5931,2.5931,0,0,0,.8316,1.96838A2.82327,2.82327,0,0,0,8.0816,26.675,2.671,2.671,0,0,0,10.05,25.88678a2.35452,2.35452,0,0,0,.81231-1.92206L14,20.827v4.444a2.51058,2.51058,0,0,0-.8,1.929,2.78381,2.78381,0,0,0,4.76837,1.96839A2.68746,2.68746,0,0,0,18.8,27.2a2.51058,2.51058,0,0,0-.8-1.929V20.827l3.1377,3.13769A2.35452,2.35452,0,0,0,21.95,25.88678a2.66079,2.66079,0,0,0,1.96839.78821,2.82794,2.82794,0,0,0,2.01318-.78821,2.59706,2.59706,0,0,0,.8316-1.96838,2.74192,2.74192,0,0,0-.8316-2.01319,2.78847,2.78847,0,0,0-2.02539-.82886L20.82843,17.9986h4.44263a2.51043,2.51043,0,0,0,1.929.8,2.78381,2.78381,0,0,0,1.96839-4.76837Z" style="fill: #ffb300"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17.087 19.721c-2.36 1.36-5.59 1.5-8.86.1a13.807 13.807 0 0 1-6.23-5.32c.67.55 1.46 1 2.3 1.4 3.37 1.57 6.73 1.46 9.1 0-3.37-2.59-6.24-5.96-8.37-8.71-.45-.45-.78-1.01-1.12-1.51 8.28 6.05 7.92 7.59 2.41-1.01 4.89 4.94 9.43 7.74 9.43 7.74.16.09.25.16.36.22.1-.25.19-.51.26-.78.79-2.85-.11-6.12-2.08-8.81 4.55 2.75 7.25 7.91 6.12 12.24-.03.11-.06.22-.05.39 2.24 2.83 1.64 5.78 1.35 5.22-1.21-2.39-3.48-1.65-4.62-1.17z" style="fill:#fe5e2f"/></svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2
|
+
<rect x="12" y="10" width="10" height="2" style="fill: #fbc02d"/>
|
|
3
|
+
<rect x="16" y="4" width="2" height="8" style="fill: #fbc02d"/>
|
|
4
|
+
<rect x="20" y="22" width="10" height="2" style="fill: #fbc02d"/>
|
|
5
|
+
<rect x="24" y="24" width="2" height="4" style="fill: #fbc02d"/>
|
|
6
|
+
<rect x="24" y="4" width="2" height="14" style="fill: #fbc02d"/>
|
|
7
|
+
<rect x="2" y="18" width="10" height="2" style="fill: #fbc02d"/>
|
|
8
|
+
<rect x="6" y="18" width="2" height="10" style="fill: #fbc02d"/>
|
|
9
|
+
<rect x="6" y="4" width="2" height="10" style="fill: #fbc02d"/>
|
|
10
|
+
<rect x="16" y="16" width="2" height="12" style="fill: #fbc02d"/>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g transform="scale(.66667)" fill="#0288d1">
|
|
3
|
+
<path d="m3 3v18h18v-18zm1 1h16v16h-16z"/>
|
|
4
|
+
<path d="m15.988 10.311c-1.51 0-2.4785 0.96047-2.4785 2.2305 0 1.38 0.8093 2.0288 2.0293 2.5488l0.41992 0.18164c0.78 0.34 1.2402 0.54891 1.2402 1.1289 0 0.48-0.45039 0.83008-1.1504 0.83008-0.83 0-1.3099-0.4293-1.6699-1.0293l-1.3789 0.79883c0.5 0.98 1.5098 1.7305 3.0898 1.7305 1.6 0 2.7988-0.82938 2.7988-2.3594 0-1.41-0.81-2.0402-2.25-2.6602l-0.41992-0.17969c-0.73-0.31-1.0391-0.52149-1.0391-1.0215 0-0.41 0.30859-0.72852 0.80859-0.72852 0.48 0 0.79984 0.20852 1.0898 0.72852l1.3105-0.86914c-0.55-0.96-1.3304-1.3301-2.4004-1.3301zm-8.6992 0.08008v1.5h1.5v7.25h1.75v-7.25h1.75v-1.5z"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="m2 2h12v12h-12v-12m7.14 9.9067c0.33333 0.65333 1.0067 1.1533 2.06 1.1533 1.0667 0 1.8667-0.55333 1.8667-1.5733 0-0.94-0.54-1.36-1.5-1.7733l-0.28-0.12c-0.48667-0.20667-0.69333-0.34667-0.69333-0.68 0-0.27333 0.20667-0.48667 0.54-0.48667 0.32 0 0.53333 0.14 0.72667 0.48667l0.87333-0.58c-0.36667-0.64-0.88667-0.88667-1.6-0.88667-1.0067 0-1.6533 0.64-1.6533 1.4867 0 0.92 0.54 1.3533 1.3533 1.7l0.28 0.12c0.52 0.22667 0.82667 0.36667 0.82667 0.75333 0 0.32-0.3 0.55333-0.76667 0.55333-0.55333 0-0.87333-0.28667-1.1133-0.68667l-0.92 0.53333m-0.47333-4.4067h-3.3333v1h1v4.8333h1.1667v-4.8333h1.1667z" fill="#0288d1" stroke-width=".66667"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M1.791 3.691 12 21.311 22.209 3.776V3.69H18.24l-6.18 10.616L5.906 3.691z" style="fill:#41b883" transform="translate(0 .16)"/><path d="m5.907 3.691 6.152 10.617L18.24 3.691h-3.723L12.084 7.87 9.66 3.69z" style="fill:#35495e" transform="translate(0 .16)"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m.12 13.5 3.74 3.74 1.42-1.41-2.33-2.33 2.33-2.33-1.42-1.41-3.74 3.74m11.16 0-3.74-3.74-1.42 1.41 2.33 2.33-2.33 2.33 1.42 1.41 3.74-3.74z" fill="#8bc34a"/></svg>
|
package/dist/vite.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* plugin://host-runtime assets are derived from the same host-runtime contract.
|
|
5
5
|
*/
|
|
6
6
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
7
|
+
import { OPENFORGE_PLUGIN_SDK_PUBLIC_UI_EXPORTS } from './publicUiExports.mjs';
|
|
7
8
|
import { OPENFORGE_HOST_RUNTIME_SVELTE_SPECIFIERS as HOST_RUNTIME_SVELTE_SPECIFIERS } from './svelteHostRuntimeContract.mjs';
|
|
8
9
|
export const OPENFORGE_HOST_RUNTIME_SVELTE_SPECIFIERS = HOST_RUNTIME_SVELTE_SPECIFIERS;
|
|
9
10
|
export const OPENFORGE_HOST_SHARED_SVELTE_IMPORTS = OPENFORGE_HOST_RUNTIME_SVELTE_SPECIFIERS;
|
|
@@ -29,14 +30,16 @@ const OPENFORGE_PLUGIN_SDK_SOURCE_ENTRYPOINTS = Object.freeze([
|
|
|
29
30
|
['@openforge-app/plugin-sdk/backend', 'packages/plugin-sdk/src/backend.ts'],
|
|
30
31
|
['@openforge-app/plugin-sdk/testing', 'packages/plugin-sdk/src/testing.ts'],
|
|
31
32
|
['@openforge-app/plugin-sdk/vite', 'packages/plugin-sdk/src/vite.ts'],
|
|
33
|
+
['@openforge-app/plugin-sdk/package-metadata-schema.json', 'packages/plugin-sdk/src/openforgePackageMetadataSchema.json'],
|
|
32
34
|
['@openforge-app/plugin-sdk/domain', 'packages/plugin-sdk/src/domain.ts'],
|
|
33
35
|
['@openforge-app/plugin-sdk/prStatusPresentation', 'packages/plugin-sdk/src/prStatusPresentation.ts'],
|
|
34
36
|
['@openforge-app/plugin-sdk/markdown', 'packages/plugin-sdk/src/markdown.ts'],
|
|
35
37
|
['@openforge-app/plugin-sdk/numberParsing', 'packages/plugin-sdk/src/numberParsing.ts'],
|
|
36
38
|
['@openforge-app/plugin-sdk/projectFileTree', 'packages/plugin-sdk/src/projectFileTree.ts'],
|
|
37
39
|
['@openforge-app/plugin-sdk/sanitize', 'packages/plugin-sdk/src/sanitize.ts'],
|
|
38
|
-
['@openforge-app/plugin-sdk/
|
|
39
|
-
['@openforge-app/plugin-sdk/
|
|
40
|
+
['@openforge-app/plugin-sdk/pluginIcons', 'packages/plugin-sdk/src/pluginIcons.ts'],
|
|
41
|
+
['@openforge-app/plugin-sdk/fileIcons', 'packages/plugin-sdk/src/fileIcons.ts'],
|
|
42
|
+
...OPENFORGE_PLUGIN_SDK_PUBLIC_UI_EXPORTS.map(({ importSpecifier, workspaceSourcePath }) => [importSpecifier, workspaceSourcePath]),
|
|
40
43
|
['@openforge-app/plugin-sdk', 'packages/plugin-sdk/src/index.ts'],
|
|
41
44
|
]);
|
|
42
45
|
function repoRootUrl(repoRoot) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openforge-app/plugin-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.4",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/koenvg/openforge.git",
|
|
8
|
+
"directory": "packages/plugin-sdk"
|
|
9
|
+
},
|
|
4
10
|
"type": "module",
|
|
5
11
|
"main": "./dist/index.js",
|
|
6
12
|
"types": "./dist/index.d.ts",
|
|
@@ -50,11 +56,28 @@
|
|
|
50
56
|
"types": "./dist/sanitize.d.ts",
|
|
51
57
|
"default": "./dist/sanitize.js"
|
|
52
58
|
},
|
|
59
|
+
"./pluginIcons": {
|
|
60
|
+
"types": "./dist/pluginIcons.d.ts",
|
|
61
|
+
"default": "./dist/pluginIcons.js"
|
|
62
|
+
},
|
|
63
|
+
"./fileIcons": {
|
|
64
|
+
"types": "./dist/fileIcons.d.ts",
|
|
65
|
+
"default": "./dist/fileIcons.js"
|
|
66
|
+
},
|
|
67
|
+
"./ui/Button.svelte": "./dist/ui/Button.svelte",
|
|
68
|
+
"./ui/Checkbox.svelte": "./dist/ui/Checkbox.svelte",
|
|
53
69
|
"./ui/MarkdownContent.svelte": "./dist/ui/MarkdownContent.svelte",
|
|
54
|
-
"./ui/ResizablePanel.svelte": "./dist/ui/ResizablePanel.svelte"
|
|
70
|
+
"./ui/ResizablePanel.svelte": "./dist/ui/ResizablePanel.svelte",
|
|
71
|
+
"./ui/Modal.svelte": "./dist/ui/Modal.svelte",
|
|
72
|
+
"./ui/PluginPageHeader.svelte": "./dist/ui/PluginPageHeader.svelte",
|
|
73
|
+
"./ui/PluginViewState.svelte": "./dist/ui/PluginViewState.svelte",
|
|
74
|
+
"./ui/PluginSidebarLink.svelte": "./dist/ui/PluginSidebarLink.svelte",
|
|
75
|
+
"./ui/FileTypeIcon.svelte": "./dist/ui/FileTypeIcon.svelte"
|
|
55
76
|
},
|
|
56
77
|
"files": [
|
|
57
|
-
"dist"
|
|
78
|
+
"dist",
|
|
79
|
+
"README.md",
|
|
80
|
+
"LICENSE"
|
|
58
81
|
],
|
|
59
82
|
"publishConfig": {
|
|
60
83
|
"access": "public"
|
|
@@ -63,19 +86,24 @@
|
|
|
63
86
|
"clean": "node -e \"import('node:fs').then(({ rmSync }) => rmSync('dist', { recursive: true, force: true }))\"",
|
|
64
87
|
"build": "pnpm run clean && tsc && pnpm run build:assets",
|
|
65
88
|
"build:assets": "node ./scripts/copy-package-assets.mjs",
|
|
89
|
+
"check:contract": "node ./scripts/check-published-contract.mjs",
|
|
90
|
+
"icons:generate": "node ./scripts/generate-file-type-icons.mjs",
|
|
66
91
|
"prepack": "pnpm run build",
|
|
92
|
+
"prepublishOnly": "pnpm run check:contract",
|
|
67
93
|
"test": "vitest run"
|
|
68
94
|
},
|
|
69
95
|
"dependencies": {
|
|
70
|
-
"dompurify": "^3.4.
|
|
71
|
-
"marked": "^18.0.
|
|
96
|
+
"dompurify": "^3.4.13",
|
|
97
|
+
"marked": "^18.0.9"
|
|
72
98
|
},
|
|
73
99
|
"peerDependencies": {
|
|
74
100
|
"svelte": "^5.0.0"
|
|
75
101
|
},
|
|
76
102
|
"devDependencies": {
|
|
77
|
-
"@types/node": "26.
|
|
103
|
+
"@types/node": "26.2.0",
|
|
104
|
+
"svelte": "5.56.8",
|
|
78
105
|
"typescript": "^6.0.3",
|
|
79
|
-
"vitest": "^4.1.
|
|
106
|
+
"vitest": "^4.1.10",
|
|
107
|
+
"vscode-material-icons": "^0.1.1"
|
|
80
108
|
}
|
|
81
109
|
}
|