@dxos/plugin-registry 0.8.4-main.fffef41 → 0.8.4-staging.60fe92afc8

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 (233) hide show
  1. package/LICENSE +102 -5
  2. package/dist/lib/neutral/RegistryPlugin.mjs +27 -0
  3. package/dist/lib/neutral/RegistryPlugin.mjs.map +7 -0
  4. package/dist/lib/neutral/RegistryPlugin.node.mjs +153 -0
  5. package/dist/lib/neutral/RegistryPlugin.node.mjs.map +7 -0
  6. package/dist/lib/neutral/RegistryPlugin.workerd.mjs +10 -0
  7. package/dist/lib/neutral/RegistryPlugin.workerd.mjs.map +7 -0
  8. package/dist/lib/neutral/chunk-GRQI6MLI.mjs +36 -0
  9. package/dist/lib/neutral/chunk-GRQI6MLI.mjs.map +7 -0
  10. package/dist/lib/neutral/chunk-XK2JMH3H.mjs +33 -0
  11. package/dist/lib/neutral/chunk-XK2JMH3H.mjs.map +7 -0
  12. package/dist/lib/neutral/index.mjs +25 -0
  13. package/dist/lib/neutral/index.mjs.map +7 -0
  14. package/dist/lib/neutral/meta.json +1 -0
  15. package/dist/lib/neutral/open-plugin-registry-II735N76.mjs +15 -0
  16. package/dist/lib/neutral/open-plugin-registry-II735N76.mjs.map +7 -0
  17. package/dist/lib/neutral/plugin.mjs +18 -0
  18. package/dist/lib/neutral/plugin.mjs.map +7 -0
  19. package/dist/lib/neutral/translations.mjs +72 -0
  20. package/dist/lib/neutral/translations.mjs.map +7 -0
  21. package/dist/types/src/RegistryPlugin.d.ts +3 -1
  22. package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
  23. package/dist/types/src/RegistryPlugin.node.d.ts +4 -0
  24. package/dist/types/src/RegistryPlugin.node.d.ts.map +1 -0
  25. package/dist/types/src/RegistryPlugin.test.d.ts +2 -0
  26. package/dist/types/src/RegistryPlugin.test.d.ts.map +1 -0
  27. package/dist/types/src/RegistryPlugin.workerd.d.ts +4 -0
  28. package/dist/types/src/RegistryPlugin.workerd.d.ts.map +1 -0
  29. package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
  30. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  31. package/dist/types/src/capabilities/dev-plugin-loader.d.ts +11 -0
  32. package/dist/types/src/capabilities/dev-plugin-loader.d.ts.map +1 -0
  33. package/dist/types/src/capabilities/index.d.ts +15 -3
  34. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  35. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  36. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  37. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  38. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  39. package/dist/types/src/capabilities/settings.d.ts +14 -0
  40. package/dist/types/src/capabilities/settings.d.ts.map +1 -0
  41. package/dist/types/src/categories.d.ts +18 -0
  42. package/dist/types/src/categories.d.ts.map +1 -0
  43. package/dist/types/src/commands/disable.d.ts +11 -0
  44. package/dist/types/src/commands/disable.d.ts.map +1 -0
  45. package/dist/types/src/commands/enable.d.ts +11 -0
  46. package/dist/types/src/commands/enable.d.ts.map +1 -0
  47. package/dist/types/src/commands/index.d.ts +3 -0
  48. package/dist/types/src/commands/index.d.ts.map +1 -0
  49. package/dist/types/src/commands/list.d.ts +7 -0
  50. package/dist/types/src/commands/list.d.ts.map +1 -0
  51. package/dist/types/src/commands/util.d.ts +11 -0
  52. package/dist/types/src/commands/util.d.ts.map +1 -0
  53. package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts +24 -0
  54. package/dist/types/src/components/DisableDependentsAlert/DisableDependentsAlert.d.ts.map +1 -0
  55. package/dist/types/src/components/DisableDependentsAlert/index.d.ts +2 -0
  56. package/dist/types/src/components/DisableDependentsAlert/index.d.ts.map +1 -0
  57. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +82 -0
  58. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -0
  59. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +79 -0
  60. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -0
  61. package/dist/types/src/components/PluginDetail/index.d.ts +2 -0
  62. package/dist/types/src/components/PluginDetail/index.d.ts.map +1 -0
  63. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts +20 -0
  64. package/dist/types/src/components/PluginFailureBadge/PluginFailureBadge.d.ts.map +1 -0
  65. package/dist/types/src/components/PluginFailureBadge/index.d.ts +2 -0
  66. package/dist/types/src/components/PluginFailureBadge/index.d.ts.map +1 -0
  67. package/dist/types/src/components/PluginList/PluginItem.d.ts +40 -0
  68. package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -0
  69. package/dist/types/src/components/PluginList/PluginList.d.ts +23 -0
  70. package/dist/types/src/components/PluginList/PluginList.d.ts.map +1 -0
  71. package/dist/types/src/components/PluginList/PluginList.stories.d.ts +78 -0
  72. package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -0
  73. package/dist/types/src/components/PluginList/index.d.ts +2 -0
  74. package/dist/types/src/components/PluginList/index.d.ts.map +1 -0
  75. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts +18 -0
  76. package/dist/types/src/components/RegistrySettings/RegistrySettings.d.ts.map +1 -0
  77. package/dist/types/src/components/RegistrySettings/index.d.ts +2 -0
  78. package/dist/types/src/components/RegistrySettings/index.d.ts.map +1 -0
  79. package/dist/types/src/components/index.d.ts +3 -1
  80. package/dist/types/src/components/index.d.ts.map +1 -1
  81. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts +20 -0
  82. package/dist/types/src/containers/BaseRegistryArticle/BaseRegistryArticle.d.ts.map +1 -0
  83. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts +2 -0
  84. package/dist/types/src/containers/BaseRegistryArticle/index.d.ts.map +1 -0
  85. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts +5 -0
  86. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -0
  87. package/dist/types/src/containers/LoadPluginDialog/index.d.ts +2 -0
  88. package/dist/types/src/containers/LoadPluginDialog/index.d.ts.map +1 -0
  89. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts +7 -0
  90. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -0
  91. package/dist/types/src/containers/PluginArticle/index.d.ts +2 -0
  92. package/dist/types/src/containers/PluginArticle/index.d.ts.map +1 -0
  93. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts +8 -0
  94. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts.map +1 -0
  95. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts +2 -0
  96. package/dist/types/src/containers/PublicRegistryArticle/index.d.ts.map +1 -0
  97. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts +14 -0
  98. package/dist/types/src/containers/RegistryArticle/RegistryArticle.d.ts.map +1 -0
  99. package/dist/types/src/containers/RegistryArticle/index.d.ts +2 -0
  100. package/dist/types/src/containers/RegistryArticle/index.d.ts.map +1 -0
  101. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts +13 -0
  102. package/dist/types/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.d.ts.map +1 -0
  103. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts +2 -0
  104. package/dist/types/src/containers/RegistrySettingsContainer/index.d.ts.map +1 -0
  105. package/dist/types/src/containers/index.d.ts +8 -0
  106. package/dist/types/src/containers/index.d.ts.map +1 -0
  107. package/dist/types/src/hooks/index.d.ts +9 -0
  108. package/dist/types/src/hooks/index.d.ts.map +1 -0
  109. package/dist/types/src/hooks/useAutoTags.d.ts +20 -0
  110. package/dist/types/src/hooks/useAutoTags.d.ts.map +1 -0
  111. package/dist/types/src/hooks/useCatalogEntry.d.ts +11 -0
  112. package/dist/types/src/hooks/useCatalogEntry.d.ts.map +1 -0
  113. package/dist/types/src/hooks/useDisableConfirmation.d.ts +19 -0
  114. package/dist/types/src/hooks/useDisableConfirmation.d.ts.map +1 -0
  115. package/dist/types/src/hooks/useInstalledVersionTag.d.ts +18 -0
  116. package/dist/types/src/hooks/useInstalledVersionTag.d.ts.map +1 -0
  117. package/dist/types/src/hooks/usePluginActions.d.ts +36 -0
  118. package/dist/types/src/hooks/usePluginActions.d.ts.map +1 -0
  119. package/dist/types/src/hooks/useRegistryPlugins.d.ts +15 -0
  120. package/dist/types/src/hooks/useRegistryPlugins.d.ts.map +1 -0
  121. package/dist/types/src/hooks/useUpdateAvailable.d.ts +18 -0
  122. package/dist/types/src/hooks/useUpdateAvailable.d.ts.map +1 -0
  123. package/dist/types/src/hooks/useVersionPicker.d.ts +21 -0
  124. package/dist/types/src/hooks/useVersionPicker.d.ts.map +1 -0
  125. package/dist/types/src/index.d.ts +1 -1
  126. package/dist/types/src/index.d.ts.map +1 -1
  127. package/dist/types/src/meta.d.ts +21 -3
  128. package/dist/types/src/meta.d.ts.map +1 -1
  129. package/dist/types/src/operations/index.d.ts +3 -0
  130. package/dist/types/src/operations/index.d.ts.map +1 -0
  131. package/dist/types/src/operations/open-plugin-registry.d.ts +5 -0
  132. package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -0
  133. package/dist/types/src/plugin.d.ts +4 -0
  134. package/dist/types/src/plugin.d.ts.map +1 -0
  135. package/dist/types/src/storage.d.ts +18 -0
  136. package/dist/types/src/storage.d.ts.map +1 -0
  137. package/dist/types/src/translations.d.ts +59 -16
  138. package/dist/types/src/translations.d.ts.map +1 -1
  139. package/dist/types/src/types.d.ts +30 -1
  140. package/dist/types/src/types.d.ts.map +1 -1
  141. package/dist/types/tsconfig.tsbuildinfo +1 -1
  142. package/package.json +76 -35
  143. package/src/RegistryPlugin.node.ts +19 -0
  144. package/src/RegistryPlugin.test.ts +24 -0
  145. package/src/RegistryPlugin.tsx +19 -25
  146. package/src/RegistryPlugin.workerd.ts +11 -0
  147. package/src/capabilities/app-graph-builder.ts +199 -136
  148. package/src/capabilities/dev-plugin-loader.ts +39 -0
  149. package/src/capabilities/index.ts +10 -4
  150. package/src/capabilities/operation-handler.ts +16 -0
  151. package/src/capabilities/react-surface.tsx +115 -75
  152. package/src/capabilities/settings.ts +34 -0
  153. package/src/categories.ts +44 -0
  154. package/src/commands/disable.ts +47 -0
  155. package/src/commands/enable.ts +44 -0
  156. package/src/commands/index.ts +14 -0
  157. package/src/commands/list.ts +41 -0
  158. package/src/commands/util.ts +24 -0
  159. package/src/components/DisableDependentsAlert/DisableDependentsAlert.tsx +69 -0
  160. package/src/components/DisableDependentsAlert/index.ts +5 -0
  161. package/src/components/{PluginDetail.stories.tsx → PluginDetail/PluginDetail.stories.tsx} +14 -11
  162. package/src/components/PluginDetail/PluginDetail.tsx +345 -0
  163. package/src/components/PluginDetail/index.ts +5 -0
  164. package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +68 -0
  165. package/src/components/PluginFailureBadge/index.ts +5 -0
  166. package/src/components/PluginList/PluginItem.tsx +223 -0
  167. package/src/components/PluginList/PluginList.stories.tsx +90 -0
  168. package/src/components/PluginList/PluginList.tsx +52 -0
  169. package/src/components/PluginList/index.ts +5 -0
  170. package/src/components/RegistrySettings/RegistrySettings.tsx +120 -0
  171. package/src/components/RegistrySettings/index.ts +5 -0
  172. package/src/components/index.ts +3 -1
  173. package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +178 -0
  174. package/src/containers/BaseRegistryArticle/index.ts +5 -0
  175. package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +88 -0
  176. package/src/containers/LoadPluginDialog/index.ts +5 -0
  177. package/src/containers/PluginArticle/PluginArticle.tsx +117 -0
  178. package/src/containers/PluginArticle/index.ts +5 -0
  179. package/src/containers/PublicRegistryArticle/PublicRegistryArticle.tsx +193 -0
  180. package/src/containers/PublicRegistryArticle/index.ts +5 -0
  181. package/src/containers/RegistryArticle/RegistryArticle.tsx +53 -0
  182. package/src/containers/RegistryArticle/index.ts +5 -0
  183. package/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx +59 -0
  184. package/src/containers/RegistrySettingsContainer/index.ts +5 -0
  185. package/src/containers/index.ts +12 -0
  186. package/src/hooks/index.ts +12 -0
  187. package/src/hooks/useAutoTags.ts +52 -0
  188. package/src/hooks/useCatalogEntry.ts +25 -0
  189. package/src/hooks/useDisableConfirmation.ts +58 -0
  190. package/src/hooks/useInstalledVersionTag.ts +41 -0
  191. package/src/hooks/usePluginActions.ts +177 -0
  192. package/src/hooks/useRegistryPlugins.ts +29 -0
  193. package/src/hooks/useUpdateAvailable.ts +31 -0
  194. package/src/hooks/useVersionPicker.ts +112 -0
  195. package/src/index.ts +1 -1
  196. package/src/meta.ts +34 -8
  197. package/src/operations/index.ts +7 -0
  198. package/src/operations/open-plugin-registry.ts +21 -0
  199. package/src/plugin.ts +11 -0
  200. package/src/storage.ts +50 -0
  201. package/src/translations.ts +64 -15
  202. package/src/types.ts +33 -1
  203. package/dist/lib/browser/app-graph-builder-6CNBP3A4.mjs +0 -162
  204. package/dist/lib/browser/app-graph-builder-6CNBP3A4.mjs.map +0 -7
  205. package/dist/lib/browser/chunk-XPEFEID2.mjs +0 -19
  206. package/dist/lib/browser/chunk-XPEFEID2.mjs.map +0 -7
  207. package/dist/lib/browser/index.mjs +0 -69
  208. package/dist/lib/browser/index.mjs.map +0 -7
  209. package/dist/lib/browser/intent-resolver-LKNUYBTN.mjs +0 -23
  210. package/dist/lib/browser/intent-resolver-LKNUYBTN.mjs.map +0 -7
  211. package/dist/lib/browser/meta.json +0 -1
  212. package/dist/lib/browser/react-surface-IGCXOVE2.mjs +0 -359
  213. package/dist/lib/browser/react-surface-IGCXOVE2.mjs.map +0 -7
  214. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  215. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  216. package/dist/types/src/components/PluginDetail.d.ts +0 -9
  217. package/dist/types/src/components/PluginDetail.d.ts.map +0 -1
  218. package/dist/types/src/components/PluginDetail.stories.d.ts +0 -32
  219. package/dist/types/src/components/PluginDetail.stories.d.ts.map +0 -1
  220. package/dist/types/src/components/PluginItem.d.ts +0 -13
  221. package/dist/types/src/components/PluginItem.d.ts.map +0 -1
  222. package/dist/types/src/components/PluginList.d.ts +0 -8
  223. package/dist/types/src/components/PluginList.d.ts.map +0 -1
  224. package/dist/types/src/components/PluginList.stories.d.ts +0 -34
  225. package/dist/types/src/components/PluginList.stories.d.ts.map +0 -1
  226. package/dist/types/src/components/RegistryContainer.d.ts +0 -7
  227. package/dist/types/src/components/RegistryContainer.d.ts.map +0 -1
  228. package/src/capabilities/intent-resolver.ts +0 -27
  229. package/src/components/PluginDetail.tsx +0 -82
  230. package/src/components/PluginItem.tsx +0 -120
  231. package/src/components/PluginList.stories.tsx +0 -80
  232. package/src/components/PluginList.tsx +0 -24
  233. package/src/components/RegistryContainer.tsx +0 -76
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
@@ -1,5 +1,23 @@
1
- import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const REGISTRY_ID = "!dxos:plugin-registry";
1
+ import { Plugin } from '@dxos/app-framework';
2
+ import { DXN } from '@dxos/keys';
3
+ export declare const REGISTRY_ID: string;
3
4
  export declare const REGISTRY_KEY = "plugin-registry";
4
- export declare const meta: PluginMeta;
5
+ /** Build a registry category node ID. */
6
+ export declare const registryCategoryId: (category: string) => string;
7
+ /** Qualified graph path to a specific plugin node. */
8
+ export declare const getPluginPath: (pluginId: string) => string;
9
+ /**
10
+ * Qualified graph path to the bundled MDL spec child node for a plugin.
11
+ *
12
+ * The child is contributed by whichever plugin can render MDL (today:
13
+ * `plugin-code`). plugin-registry only knows the path convention so it can:
14
+ * - dispatch `LayoutOperation.Open` to open the spec viewer, and
15
+ * - probe the app graph for the child's existence to gate the "View
16
+ * specification" button. If no plugin contributes a renderer for the
17
+ * child, the node is absent and the button stays hidden.
18
+ */
19
+ export declare const getPluginSpecPath: (pluginId: string) => string;
20
+ export declare const meta: Plugin.Meta;
21
+ /** Cascade-disable confirmation dialog surface id. */
22
+ export declare const DISABLE_DEPENDENTS_DIALOG: DXN.DXN;
5
23
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMtD,eAAO,MAAM,WAAW,0BAA0B,CAAC;AACnD,eAAO,MAAM,YAAY,oBAAoB,CAAC;AAE9C,eAAO,MAAM,IAAI,EAAE,UAOlB,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,eAAO,MAAM,WAAW,QAA4C,CAAC;AACrE,eAAO,MAAM,YAAY,oBAAoB,CAAC;AAK9C,yCAAyC;AACzC,eAAO,MAAM,kBAAkB,aAAc,MAAM,KAAG,MAA2D,CAAC;AAElH,sDAAsD;AACtD,eAAO,MAAM,aAAa,aAAc,MAAM,KAAG,MAA2C,CAAC;AAE7F;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,aAAc,MAAM,KAAG,MAA2C,CAAC;AAEjG,eAAO,MAAM,IAAI,aAUf,CAAC;AAEH,sDAAsD;AACtD,eAAO,MAAM,yBAAyB,SAAiD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { OperationHandlerSet } from '@dxos/compute';
2
+ export declare const RegistryOperationHandlerSet: OperationHandlerSet.OperationHandlerSet;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,2BAA2B,yCAAmE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { SettingsOperation } from '@dxos/app-toolkit';
2
+ import { Operation } from '@dxos/compute';
3
+ declare const handler: Operation.WithHandler<typeof SettingsOperation.OpenPluginRegistry>;
4
+ export default handler;
5
+ //# sourceMappingURL=open-plugin-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-plugin-registry.d.ts","sourceRoot":"","sources":["../../../../src/operations/open-plugin-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAmB,iBAAiB,EAAgB,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,kBAAkB,CAO7E,CAAC;eAEW,OAAO"}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const RegistryPlugin: Plugin.PluginFactory<void>;
3
+ export { RegistryOperationHandlerSet } from './operations';
4
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,cAAc,4BAA6C,CAAC;AAEzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,18 @@
1
+ import * as FileSystem from '@effect/platform/FileSystem';
2
+ import * as Path from '@effect/platform/Path';
3
+ import * as Effect from 'effect/Effect';
4
+ /**
5
+ * Load enabled plugins from plugins/<profile>.yml (sibling to profile/).
6
+ * Returns the list of enabled plugin IDs, or an empty array if the file doesn't exist.
7
+ */
8
+ export declare const loadEnabledPlugins: (args_0: {
9
+ profile: string;
10
+ }) => Effect.Effect<string[] | readonly string[], import("@effect/platform/Error").BadArgument, FileSystem.FileSystem>;
11
+ /**
12
+ * Save enabled plugins to plugins/<profile>.yml.
13
+ */
14
+ export declare const saveEnabledPlugins: (args_0: {
15
+ profile: string;
16
+ enabled: string[];
17
+ }) => Effect.Effect<void, import("@effect/platform/Error").PlatformError, FileSystem.FileSystem | Path.Path>;
18
+ //# sourceMappingURL=storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/storage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAaxC;;;GAGG;AACH,eAAO,MAAM,kBAAkB;aAAgD,MAAM;sHAcnF,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;aAAyD,MAAM;aAAW,MAAM,EAAE;4GAO/G,CAAC"}
@@ -1,21 +1,64 @@
1
- import { meta } from './meta';
2
1
  export declare const translations: [{
3
2
  readonly 'en-US': {
4
- readonly [meta.id]: {
5
- readonly 'plugin name': "Registry";
6
- readonly 'details label': "Details";
7
- readonly 'home page label': "Website";
8
- readonly 'source label': "Source";
9
- readonly 'plugin registry label': "Plugin Registry";
10
- readonly 'all plugins label': "All";
11
- readonly 'installed plugins label': "Enabled";
12
- readonly 'recommended plugins label': "Recommended";
13
- readonly 'labs plugins label': "Labs";
14
- readonly 'community plugins label': "Community";
15
- readonly 'load by url label': "Load by URL (soon)";
16
- readonly 'coming soon label': "Coming soon!";
17
- readonly 'open plugin registry label': "Open plugin registry";
18
- readonly 'settings label': "Settings";
3
+ readonly [x: string]: {
4
+ readonly 'plugin.name': 'Registry';
5
+ readonly 'details.label': 'Details';
6
+ readonly 'description.label': 'Description';
7
+ readonly 'preview.label': 'Preview';
8
+ readonly 'home-page.label': 'Website';
9
+ readonly 'source.label': 'Source';
10
+ readonly 'resources.label': 'Resources';
11
+ readonly 'plugin-registry.label': 'Plugins';
12
+ readonly 'plugin-settings.label': 'Plugin Settings';
13
+ readonly 'bundled-plugins.label': 'Bundled';
14
+ readonly 'installed-plugins.label': 'Enabled';
15
+ readonly 'recommended-plugins.label': 'Recommended';
16
+ readonly 'labs-plugins.label': 'Labs';
17
+ readonly 'registry-plugins.label': 'Registry';
18
+ readonly 'load-by-url.label': 'Load from URL';
19
+ readonly 'load-by-url-dialog.title': 'Load Plugin from URL';
20
+ readonly 'plugin-url.label': 'Plugin URL';
21
+ readonly 'load-plugin.label': 'Load Plugin';
22
+ readonly 'loading.label': 'Loading...';
23
+ readonly 'filter.label': 'Filter plugins';
24
+ readonly 'filter.placeholder': 'Filter\u2026';
25
+ readonly 'registry.loading.label': 'Loading registry plugins\u2026';
26
+ readonly 'registry.error.label': 'Failed to load registry plugins: {{message}}';
27
+ readonly 'registry.empty.label': 'No registry plugins available.';
28
+ readonly 'dev-plugin.section.title': 'Dev plugin';
29
+ readonly 'dev-plugin.description': 'Load a plugin from a local Vite dev server (the `composerPlugin` defaults to port 3967). Composer reattaches it on every reload, surviving HMR \u2014 useful when iterating on a community plugin against a live registry version.';
30
+ readonly 'dev-plugin.url.label': 'Manifest URL';
31
+ readonly 'dev-plugin.url.description': 'Defaults to the local dev server. Edit if your dev server runs on a different port.';
32
+ readonly 'dev-plugin.toggle.label': 'Dev plugin';
33
+ readonly 'dev-plugin.toggle.description': 'Stays on across reloads. If the dev server is offline at boot, a warning is logged and the next reload retries.';
34
+ readonly 'dev-plugin.enable.label': 'Enable';
35
+ readonly 'dev-plugin.disable.label': 'Disable';
36
+ readonly 'dev-plugin.busy.label': 'Loading\u2026';
37
+ readonly 'dev-plugin.not-loaded.message': 'Dev plugin is enabled but not currently loaded. Check that the dev server is running, then reload.';
38
+ readonly 'coming-soon.label': 'Coming soon!';
39
+ readonly 'open-plugin-registry.label': 'Open plugin registry';
40
+ readonly 'install.label': 'Install';
41
+ readonly 'installing.label': 'Installing\u2026';
42
+ readonly 'uninstall.label': 'Uninstall';
43
+ readonly 'update.label': 'Update';
44
+ readonly 'updating.label': 'Updating\u2026';
45
+ readonly 'versions.label': 'Versions';
46
+ readonly 'installed.label': 'installed';
47
+ readonly 'install-version.label': 'Install version';
48
+ readonly 'failure-badge.label': 'Plugin failure details';
49
+ readonly 'failure-title.label': 'Plugin {{phase}} failed: {{reason}}';
50
+ readonly 'failure-phase-load.label': 'load';
51
+ readonly 'failure-phase-activation.label': 'activation';
52
+ readonly 'failure-reason-timeout.label': 'timed out';
53
+ readonly 'failure-reason-error.label': 'error';
54
+ readonly 'dependencies.label': 'Dependencies';
55
+ readonly 'dependents.label': 'Required by';
56
+ readonly 'spec.label': 'Specification';
57
+ readonly 'open-spec.label': 'Open Specification';
58
+ readonly 'disable-dependents-dialog.title': 'Disable dependent plugins?';
59
+ readonly 'disable-dependents-dialog.description': 'Disabling {{plugin}} will also disable the following plugins that depend on it:';
60
+ readonly 'disable-dependents-dialog.confirm.label': 'Disable';
61
+ readonly 'cancel.label': 'Cancel';
19
62
  };
20
63
  };
21
64
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;UAeR;;EAGwB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;oCAIF,UAAU;sCACR,SAAS;0CACL,aAAa;sCACjB,SAAS;wCACP,SAAS;qCACZ,QAAQ;wCACL,WAAW;8CACL,SAAS;8CACT,iBAAiB;8CACjB,SAAS;gDACP,SAAS;kDACP,aAAa;2CACpB,MAAM;+CACF,UAAU;0CACf,eAAe;iDACR,sBAAsB;yCAC9B,YAAY;0CACX,aAAa;sCACjB,YAAY;qCACb,gBAAgB;2CACV,cAAS;+CACL,gCAA2B;6CAC7B,8CAA8C;6CAC9C,gCAAgC;iDAC5B,YAAY;+CAEtC,oOAA+N;6CACzM,cAAc;mDAEpC,qFAAqF;gDAC5D,YAAY;sDAErC,iHAAiH;gDACxF,QAAQ;iDACP,SAAS;8CACZ,eAAU;sDAEjC,oGAAoG;0CACjF,cAAc;mDACL,sBAAsB;sCACnC,SAAS;yCACN,kBAAa;wCACd,WAAW;qCACd,QAAQ;uCACN,gBAAW;uCACX,UAAU;wCACT,WAAW;8CACL,iBAAiB;4CACnB,wBAAwB;4CACxB,qCAAqC;iDAChC,MAAM;uDACA,YAAY;qDACd,WAAW;mDACb,OAAO;2CACf,cAAc;yCAChB,aAAa;mCACnB,eAAe;wCACV,oBAAoB;wDACJ,4BAA4B;8DAE7D,iFAAiF;gEACxC,SAAS;qCACpC,QAAQ;;;EAID,CAAC"}
@@ -1,8 +1,37 @@
1
+ import { type Atom } from '@effect-atom/atom-react';
1
2
  import * as Schema from 'effect/Schema';
3
+ import { Capability } from '@dxos/app-framework';
2
4
  export declare const RegistrySettingsSchema: Schema.mutable<Schema.Struct<{
3
5
  experimental: Schema.optional<typeof Schema.Boolean>;
6
+ /**
7
+ * Manifest URL for a plugin served by a local Vite dev server. The
8
+ * registry settings panel pre-fills this with `localhost:3967`; authors
9
+ * iterating on a different port can edit it.
10
+ */
11
+ devPluginUrl: Schema.optional<typeof Schema.String>;
12
+ /**
13
+ * When true, the registry plugin attempts to load `devPluginUrl` on every
14
+ * app boot. Failures (dev server offline, manifest 404) are logged and
15
+ * the flag stays on so the next boot retries — the user explicitly turns
16
+ * it off when they're done iterating.
17
+ */
18
+ devPluginEnabled: Schema.optional<typeof Schema.Boolean>;
4
19
  }>>;
5
20
  export type RegistrySettings = Schema.Schema.Type<typeof RegistrySettingsSchema>;
6
- export declare const RegistryTagType: Schema.Literal<["new", "beta", "labs", "popular", "featured", "experimental"]>;
21
+ /**
22
+ * Per-plugin capabilities exposed by `@dxos/plugin-registry`.
23
+ */
24
+ export declare namespace RegistryCapabilities {
25
+ const Settings: Capability.InterfaceDef<Atom.Writable<{
26
+ experimental?: boolean | undefined;
27
+ devPluginUrl?: string | undefined;
28
+ devPluginEnabled?: boolean | undefined;
29
+ }, {
30
+ experimental?: boolean | undefined;
31
+ devPluginUrl?: string | undefined;
32
+ devPluginEnabled?: boolean | undefined;
33
+ }>>;
34
+ }
35
+ export declare const RegistryTagType: Schema.Literal<["new", "beta", "labs", "popular", "featured", "experimental", "registry", "local"]>;
7
36
  export type RegistryTagType = Schema.Schema.Type<typeof RegistryTagType>;
8
37
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,eAAO,MAAM,sBAAsB;;GAIlC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEjF,eAAO,MAAM,eAAe,gFAA+E,CAAC;AAE5G,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,sBAAsB;;IAG/B;;;;OAIG;;IAEH;;;;;OAKG;;GAGN,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEjF;;GAEG;AACH,yBAAiB,oBAAoB,CAAC,CAAC;IAC9B,MAAM,QAAQ;;;;;;;;OAAqF,CAAC;CAC5G;AAED,eAAO,MAAM,eAAe,qGAS3B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC"}