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

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 (124) hide show
  1. package/dist/lib/neutral/RegistryPlugin.node.mjs +709 -18
  2. package/dist/lib/neutral/RegistryPlugin.node.mjs.map +4 -4
  3. package/dist/lib/neutral/chunk-ZY37XLVF.mjs +46 -0
  4. package/dist/lib/neutral/chunk-ZY37XLVF.mjs.map +7 -0
  5. package/dist/lib/neutral/index.mjs +1 -1
  6. package/dist/lib/neutral/meta.json +1 -1
  7. package/dist/lib/neutral/{open-plugin-registry-II735N76.mjs → open-plugin-registry-ID7LV3SF.mjs} +3 -3
  8. package/dist/lib/neutral/open-plugin-registry-ID7LV3SF.mjs.map +7 -0
  9. package/dist/lib/neutral/plugin.mjs +2 -2
  10. package/dist/lib/neutral/translations.mjs +1 -1
  11. package/dist/lib/neutral/translations.mjs.map +3 -3
  12. package/dist/types/dx.config.d.ts +28 -0
  13. package/dist/types/dx.config.d.ts.map +1 -0
  14. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  15. package/dist/types/src/capabilities/index.d.ts +4 -12
  16. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  17. package/dist/types/src/capabilities/react-surface.d.ts +2 -2
  18. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  19. package/dist/types/src/categories.d.ts.map +1 -1
  20. package/dist/types/src/commands/index.d.ts +2 -2
  21. package/dist/types/src/commands/index.d.ts.map +1 -1
  22. package/dist/types/src/commands/plugin/disable.d.ts.map +1 -0
  23. package/dist/types/src/commands/plugin/enable.d.ts.map +1 -0
  24. package/dist/types/src/commands/plugin/index.d.ts +3 -0
  25. package/dist/types/src/commands/plugin/index.d.ts.map +1 -0
  26. package/dist/types/src/commands/plugin/list.d.ts.map +1 -0
  27. package/dist/types/src/commands/plugin/util.d.ts.map +1 -0
  28. package/dist/types/src/commands/registry/index.d.ts +16 -0
  29. package/dist/types/src/commands/registry/index.d.ts.map +1 -0
  30. package/dist/types/src/commands/registry/publish-package.d.ts +29 -0
  31. package/dist/types/src/commands/registry/publish-package.d.ts.map +1 -0
  32. package/dist/types/src/commands/registry/publish-publisher.d.ts +19 -0
  33. package/dist/types/src/commands/registry/publish-publisher.d.ts.map +1 -0
  34. package/dist/types/src/commands/registry/publish.d.ts +25 -0
  35. package/dist/types/src/commands/registry/publish.d.ts.map +1 -0
  36. package/dist/types/src/commands/registry/records.d.ts +14 -0
  37. package/dist/types/src/commands/registry/records.d.ts.map +1 -0
  38. package/dist/types/src/commands/registry/unpublish.d.ts +15 -0
  39. package/dist/types/src/commands/registry/unpublish.d.ts.map +1 -0
  40. package/dist/types/src/commands/registry/util.d.ts +113 -0
  41. package/dist/types/src/commands/registry/util.d.ts.map +1 -0
  42. package/dist/types/src/commands/registry/verify.d.ts +20 -0
  43. package/dist/types/src/commands/registry/verify.d.ts.map +1 -0
  44. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +2 -2
  45. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -1
  46. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -1
  47. package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -1
  48. package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -1
  49. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -1
  50. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -1
  51. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts.map +1 -1
  52. package/dist/types/src/hooks/useAutoTags.d.ts +2 -2
  53. package/dist/types/src/hooks/useAutoTags.d.ts.map +1 -1
  54. package/dist/types/src/hooks/useCatalogEntry.d.ts +4 -5
  55. package/dist/types/src/hooks/useCatalogEntry.d.ts.map +1 -1
  56. package/dist/types/src/hooks/usePluginActions.d.ts +3 -3
  57. package/dist/types/src/hooks/usePluginActions.d.ts.map +1 -1
  58. package/dist/types/src/hooks/useUpdateAvailable.d.ts +2 -2
  59. package/dist/types/src/hooks/useUpdateAvailable.d.ts.map +1 -1
  60. package/dist/types/src/hooks/useVersionPicker.d.ts +7 -8
  61. package/dist/types/src/hooks/useVersionPicker.d.ts.map +1 -1
  62. package/dist/types/src/meta.d.ts +28 -2
  63. package/dist/types/src/meta.d.ts.map +1 -1
  64. package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -1
  65. package/dist/types/src/types.d.ts.map +1 -1
  66. package/dist/types/tsconfig.tsbuildinfo +1 -1
  67. package/dx.config.ts +20 -0
  68. package/package.json +31 -24
  69. package/src/RegistryPlugin.node.ts +2 -2
  70. package/src/RegistryPlugin.test.ts +1 -1
  71. package/src/capabilities/app-graph-builder.ts +43 -39
  72. package/src/capabilities/dev-plugin-loader.ts +1 -1
  73. package/src/capabilities/react-surface.tsx +1 -4
  74. package/src/capabilities/settings.ts +2 -2
  75. package/src/categories.ts +5 -4
  76. package/src/commands/index.ts +2 -10
  77. package/src/commands/{disable.ts → plugin/disable.ts} +3 -3
  78. package/src/commands/{enable.ts → plugin/enable.ts} +3 -3
  79. package/src/commands/plugin/index.ts +14 -0
  80. package/src/commands/{list.ts → plugin/list.ts} +4 -4
  81. package/src/commands/registry/index.ts +30 -0
  82. package/src/commands/registry/publish-package.ts +119 -0
  83. package/src/commands/registry/publish-publisher.ts +73 -0
  84. package/src/commands/registry/publish.ts +278 -0
  85. package/src/commands/registry/records.ts +73 -0
  86. package/src/commands/registry/unpublish.ts +70 -0
  87. package/src/commands/registry/util.ts +395 -0
  88. package/src/commands/registry/verify.ts +76 -0
  89. package/src/components/DisableDependentsAlert/DisableDependentsAlert.tsx +1 -1
  90. package/src/components/PluginDetail/PluginDetail.stories.tsx +5 -3
  91. package/src/components/PluginDetail/PluginDetail.tsx +21 -23
  92. package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +1 -1
  93. package/src/components/PluginList/PluginItem.tsx +5 -3
  94. package/src/components/PluginList/PluginList.stories.tsx +1 -2
  95. package/src/components/PluginList/PluginList.tsx +4 -4
  96. package/src/components/RegistrySettings/RegistrySettings.tsx +1 -1
  97. package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +2 -2
  98. package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +3 -3
  99. package/src/containers/PluginArticle/PluginArticle.tsx +8 -6
  100. package/src/containers/PublicRegistryArticle/PublicRegistryArticle.tsx +35 -28
  101. package/src/containers/RegistryArticle/RegistryArticle.tsx +1 -1
  102. package/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx +1 -1
  103. package/src/hooks/useAutoTags.ts +3 -3
  104. package/src/hooks/useCatalogEntry.ts +6 -7
  105. package/src/hooks/useDisableConfirmation.ts +1 -1
  106. package/src/hooks/usePluginActions.ts +13 -11
  107. package/src/hooks/useUpdateAvailable.ts +5 -5
  108. package/src/hooks/useVersionPicker.ts +22 -30
  109. package/src/meta.ts +6 -15
  110. package/src/operations/open-plugin-registry.ts +2 -2
  111. package/src/translations.ts +1 -1
  112. package/src/types.ts +3 -1
  113. package/dist/lib/neutral/chunk-GRQI6MLI.mjs +0 -36
  114. package/dist/lib/neutral/chunk-GRQI6MLI.mjs.map +0 -7
  115. package/dist/lib/neutral/open-plugin-registry-II735N76.mjs.map +0 -7
  116. package/dist/types/src/commands/disable.d.ts.map +0 -1
  117. package/dist/types/src/commands/enable.d.ts.map +0 -1
  118. package/dist/types/src/commands/list.d.ts.map +0 -1
  119. package/dist/types/src/commands/util.d.ts.map +0 -1
  120. /package/dist/types/src/commands/{disable.d.ts → plugin/disable.d.ts} +0 -0
  121. /package/dist/types/src/commands/{enable.d.ts → plugin/enable.d.ts} +0 -0
  122. /package/dist/types/src/commands/{list.d.ts → plugin/list.d.ts} +0 -0
  123. /package/dist/types/src/commands/{util.d.ts → plugin/util.d.ts} +0 -0
  124. /package/src/commands/{util.ts → plugin/util.ts} +0 -0
@@ -1,36 +0,0 @@
1
- // src/meta.ts
2
- import { Plugin } from "@dxos/app-framework";
3
- import { pinnedWorkspaceId } from "@dxos/app-toolkit";
4
- import { DXN } from "@dxos/keys";
5
- import { trim } from "@dxos/util";
6
- var REGISTRY_ID = pinnedWorkspaceId("dxos:plugin-registry");
7
- var REGISTRY_KEY = "plugin-registry";
8
- var CATEGORY_SEPARATOR = ">";
9
- var registryCategoryId = (category) => `${REGISTRY_KEY}${CATEGORY_SEPARATOR}${category}`;
10
- var getPluginPath = (pluginId) => `root/${REGISTRY_ID}/${pluginId}`;
11
- var getPluginSpecPath = (pluginId) => `${getPluginPath(pluginId)}/spec`;
12
- var meta = Plugin.makeMeta({
13
- key: DXN.make("org.dxos.plugin.registry"),
14
- name: "Plugins",
15
- author: "DXOS",
16
- description: trim`
17
- Plugin management system for discovering, installing, and configuring workspace extensions.
18
- Browse available plugins and customize your workspace capabilities.
19
- `,
20
- icon: "ph--squares-four--regular",
21
- tags: [
22
- "system"
23
- ]
24
- });
25
- var DISABLE_DEPENDENTS_DIALOG = DXN.make(`${meta.id}.disableDependentsDialog`);
26
-
27
- export {
28
- REGISTRY_ID,
29
- REGISTRY_KEY,
30
- registryCategoryId,
31
- getPluginPath,
32
- getPluginSpecPath,
33
- meta,
34
- DISABLE_DEPENDENTS_DIALOG
35
- };
36
- //# sourceMappingURL=chunk-GRQI6MLI.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { pinnedWorkspaceId } from '@dxos/app-toolkit';\nimport { DXN } from '@dxos/keys';\nimport { trim } from '@dxos/util';\n\nexport const REGISTRY_ID = pinnedWorkspaceId('dxos:plugin-registry');\nexport const REGISTRY_KEY = 'plugin-registry';\n\n// TODO(wittjosiah): Should this be a special separator or use the standard path separator?\nconst CATEGORY_SEPARATOR = '>';\n\n/** Build a registry category node ID. */\nexport const registryCategoryId = (category: string): string => `${REGISTRY_KEY}${CATEGORY_SEPARATOR}${category}`;\n\n/** Qualified graph path to a specific plugin node. */\nexport const getPluginPath = (pluginId: string): string => `root/${REGISTRY_ID}/${pluginId}`;\n\n/**\n * Qualified graph path to the bundled MDL spec child node for a plugin.\n *\n * The child is contributed by whichever plugin can render MDL (today:\n * `plugin-code`). plugin-registry only knows the path convention so it can:\n * - dispatch `LayoutOperation.Open` to open the spec viewer, and\n * - probe the app graph for the child's existence to gate the \"View\n * specification\" button. If no plugin contributes a renderer for the\n * child, the node is absent and the button stays hidden.\n */\nexport const getPluginSpecPath = (pluginId: string): string => `${getPluginPath(pluginId)}/spec`;\n\nexport const meta = Plugin.makeMeta({\n key: DXN.make('org.dxos.plugin.registry'),\n name: 'Plugins',\n author: 'DXOS',\n description: trim`\n Plugin management system for discovering, installing, and configuring workspace extensions.\n Browse available plugins and customize your workspace capabilities.\n `,\n icon: 'ph--squares-four--regular',\n tags: ['system'],\n});\n\n/** Cascade-disable confirmation dialog surface id. */\nexport const DISABLE_DEPENDENTS_DIALOG = DXN.make(`${meta.id}.disableDependentsDialog`);\n"],
5
- "mappings": ";AAIA,SAASA,cAAc;AACvB,SAASC,yBAAyB;AAClC,SAASC,WAAW;AACpB,SAASC,YAAY;AAEd,IAAMC,cAAcH,kBAAkB,sBAAA;AACtC,IAAMI,eAAe;AAG5B,IAAMC,qBAAqB;AAGpB,IAAMC,qBAAqB,CAACC,aAA6B,GAAGH,YAAAA,GAAeC,kBAAAA,GAAqBE,QAAAA;AAGhG,IAAMC,gBAAgB,CAACC,aAA6B,QAAQN,WAAAA,IAAeM,QAAAA;AAY3E,IAAMC,oBAAoB,CAACD,aAA6B,GAAGD,cAAcC,QAAAA,CAAAA;AAEzE,IAAME,OAAOZ,OAAOa,SAAS;EAClCC,KAAKZ,IAAIa,KAAK,0BAAA;EACdC,MAAM;EACNC,QAAQ;EACRC,aAAaf;;;;EAIbgB,MAAM;EACNC,MAAM;IAAC;;AACT,CAAA;AAGO,IAAMC,4BAA4BnB,IAAIa,KAAK,GAAGH,KAAKU,EAAE,0BAA0B;",
6
- "names": ["Plugin", "pinnedWorkspaceId", "DXN", "trim", "REGISTRY_ID", "REGISTRY_KEY", "CATEGORY_SEPARATOR", "registryCategoryId", "category", "getPluginPath", "pluginId", "getPluginSpecPath", "meta", "makeMeta", "key", "make", "name", "author", "description", "icon", "tags", "DISABLE_DEPENDENTS_DIALOG", "id"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/open-plugin-registry.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation, SettingsOperation, getSpacePath } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { REGISTRY_ID } from '#meta';\n\nconst handler: Operation.WithHandler<typeof SettingsOperation.OpenPluginRegistry> =\n SettingsOperation.OpenPluginRegistry.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: getSpacePath(REGISTRY_ID) });\n }),\n ),\n );\n\nexport default handler;\n"],
5
- "mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiBC,mBAAmBC,oBAAoB;AACjE,SAASC,iBAAiB;AAE1B,SAASC,mBAAmB;AAE5B,IAAMC,UACJJ,kBAAkBK,mBAAmBC,KACnCJ,UAAUK,YACDC,kBAAW,aAAA;AAChB,SAAON,UAAUO,OAAOV,gBAAgBW,iBAAiB;IAAEC,SAASV,aAAaE,WAAAA;EAAa,CAAA;AAChG,CAAA,CAAA,CAAA;AAIN,IAAA,+BAAeC;",
6
- "names": ["Effect", "LayoutOperation", "SettingsOperation", "getSpacePath", "Operation", "REGISTRY_ID", "handler", "OpenPluginRegistry", "pipe", "withHandler", "fnUntraced", "invoke", "SwitchWorkspace", "subject"]
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"disable.d.ts","sourceRoot":"","sources":["../../../../src/commands/disable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAK/C,eAAO,MAAM,OAAO;QAAsC,MAAM;2MAuB9D,CAAC;AAEH,eAAO,MAAM,OAAO;;EAMgC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../../src/commands/enable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAK/C,eAAO,MAAM,OAAO;QAAsC,MAAM;2MAoB9D,CAAC;AAEH,eAAO,MAAM,MAAM;;EAMgC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/list.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAa,MAAM,gBAAgB,CAAC;AAI1D,eAAO,MAAM,OAAO,kEAyBlB,CAAC;AAEH,eAAO,MAAM,IAAI,oEAAiG,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/commands/util.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,WAAY,eAAe,2CAOlD,CAAC"}
File without changes