@xpufx/paseo-helper-demo 0.2.0

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 (104) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +57 -0
  3. package/client/pill.tsx +1249 -0
  4. package/client/suite-settings.tsx +77 -0
  5. package/client/vendor/paseo-plugin-helper/command-center.ts +43 -0
  6. package/client/vendor/paseo-plugin-helper/components/AboutSection.tsx +493 -0
  7. package/client/vendor/paseo-plugin-helper/components/AttentionBeacon.tsx +250 -0
  8. package/client/vendor/paseo-plugin-helper/components/Badge.tsx +156 -0
  9. package/client/vendor/paseo-plugin-helper/components/Button.tsx +178 -0
  10. package/client/vendor/paseo-plugin-helper/components/Card.tsx +225 -0
  11. package/client/vendor/paseo-plugin-helper/components/CodeBlock.tsx +196 -0
  12. package/client/vendor/paseo-plugin-helper/components/Collapsible.tsx +277 -0
  13. package/client/vendor/paseo-plugin-helper/components/CommandBox.tsx +172 -0
  14. package/client/vendor/paseo-plugin-helper/components/CopyButton.tsx +180 -0
  15. package/client/vendor/paseo-plugin-helper/components/DataTable.tsx +200 -0
  16. package/client/vendor/paseo-plugin-helper/components/EmptyState.tsx +97 -0
  17. package/client/vendor/paseo-plugin-helper/components/HighlightedText.tsx +70 -0
  18. package/client/vendor/paseo-plugin-helper/components/InlineButton.tsx +73 -0
  19. package/client/vendor/paseo-plugin-helper/components/KeyValue.tsx +446 -0
  20. package/client/vendor/paseo-plugin-helper/components/MetricGauge.tsx +247 -0
  21. package/client/vendor/paseo-plugin-helper/components/ProgressBar.tsx +117 -0
  22. package/client/vendor/paseo-plugin-helper/components/Responsive.tsx +53 -0
  23. package/client/vendor/paseo-plugin-helper/components/SearchInput.tsx +118 -0
  24. package/client/vendor/paseo-plugin-helper/components/SectionHeader.tsx +80 -0
  25. package/client/vendor/paseo-plugin-helper/components/Select.tsx +215 -0
  26. package/client/vendor/paseo-plugin-helper/components/StatusDot.tsx +80 -0
  27. package/client/vendor/paseo-plugin-helper/components/Tabs.tsx +319 -0
  28. package/client/vendor/paseo-plugin-helper/components/TextInput.tsx +150 -0
  29. package/client/vendor/paseo-plugin-helper/components/Toggle.tsx +163 -0
  30. package/client/vendor/paseo-plugin-helper/components/TruncatedText.tsx +157 -0
  31. package/client/vendor/paseo-plugin-helper/components/index.ts +25 -0
  32. package/client/vendor/paseo-plugin-helper/core/index.ts +64 -0
  33. package/client/vendor/paseo-plugin-helper/custom-pills.tsx +224 -0
  34. package/client/vendor/paseo-plugin-helper/forge-icon.tsx +79 -0
  35. package/client/vendor/paseo-plugin-helper/host.ts +277 -0
  36. package/client/vendor/paseo-plugin-helper/icon.tsx +39 -0
  37. package/client/vendor/paseo-plugin-helper/index.ts +28 -0
  38. package/client/vendor/paseo-plugin-helper/layout/ActionBar.tsx +49 -0
  39. package/client/vendor/paseo-plugin-helper/layout/FormRow.tsx +103 -0
  40. package/client/vendor/paseo-plugin-helper/layout/Grid.tsx +65 -0
  41. package/client/vendor/paseo-plugin-helper/layout/ModalBody.tsx +378 -0
  42. package/client/vendor/paseo-plugin-helper/layout/ModalContent.tsx +49 -0
  43. package/client/vendor/paseo-plugin-helper/layout/Row.tsx +39 -0
  44. package/client/vendor/paseo-plugin-helper/layout/Stack.tsx +39 -0
  45. package/client/vendor/paseo-plugin-helper/layout/index.ts +7 -0
  46. package/client/vendor/paseo-plugin-helper/panel.tsx +81 -0
  47. package/client/vendor/paseo-plugin-helper/pill.tsx +884 -0
  48. package/client/vendor/paseo-plugin-helper/query-refresh.ts +79 -0
  49. package/client/vendor/paseo-plugin-helper/query.ts +66 -0
  50. package/client/vendor/paseo-plugin-helper/settings-screen.tsx +372 -0
  51. package/client/vendor/paseo-plugin-helper/settings.ts +181 -0
  52. package/client/vendor/paseo-plugin-helper/shared-settings.ts +46 -0
  53. package/client/vendor/paseo-plugin-helper/snapshot.ts +68 -0
  54. package/client/vendor/paseo-plugin-helper/surface.tsx +80 -0
  55. package/client/vendor/paseo-plugin-helper/theme/color-utils.ts +118 -0
  56. package/client/vendor/paseo-plugin-helper/theme/flair.ts +76 -0
  57. package/client/vendor/paseo-plugin-helper/theme/host-variables.ts +121 -0
  58. package/client/vendor/paseo-plugin-helper/theme/index.ts +7 -0
  59. package/client/vendor/paseo-plugin-helper/theme/provider.tsx +214 -0
  60. package/client/vendor/paseo-plugin-helper/theme/responsive.ts +213 -0
  61. package/client/vendor/paseo-plugin-helper/theme/tokens.ts +161 -0
  62. package/client/vendor/paseo-plugin-helper/theme/useResponsive.ts +57 -0
  63. package/client/vendor/paseo-plugin-helper/ui/index.ts +25 -0
  64. package/client/vendor/paseo-plugin-helper/ui/modal.tsx +105 -0
  65. package/client/vendor/paseo-plugin-helper/ui/settings.ts +36 -0
  66. package/client/vendor/paseo-plugin-helper/utils/clipboard.ts +149 -0
  67. package/client/vendor/paseo-plugin-helper/utils/haptics.ts +34 -0
  68. package/package.json +35 -0
  69. package/paseo-plugin.json +6 -0
  70. package/server/demo.ts +195 -0
  71. package/server/suite-settings.ts +23 -0
  72. package/server/vendor/paseo-plugin-helper/agent.ts +85 -0
  73. package/server/vendor/paseo-plugin-helper/custom-pills.ts +344 -0
  74. package/server/vendor/paseo-plugin-helper/index.ts +18 -0
  75. package/server/vendor/paseo-plugin-helper/jsonc.ts +78 -0
  76. package/server/vendor/paseo-plugin-helper/logger.ts +210 -0
  77. package/server/vendor/paseo-plugin-helper/mcp-config.ts +367 -0
  78. package/server/vendor/paseo-plugin-helper/mcp-injection.ts +85 -0
  79. package/server/vendor/paseo-plugin-helper/network.ts +91 -0
  80. package/server/vendor/paseo-plugin-helper/plugins.ts +160 -0
  81. package/server/vendor/paseo-plugin-helper/process.ts +186 -0
  82. package/server/vendor/paseo-plugin-helper/redact.ts +86 -0
  83. package/server/vendor/paseo-plugin-helper/rpc-guard.ts +77 -0
  84. package/server/vendor/paseo-plugin-helper/settings.ts +97 -0
  85. package/server/vendor/paseo-plugin-helper/shared-settings.ts +243 -0
  86. package/server/vendor/paseo-plugin-helper/storage.ts +244 -0
  87. package/server/vendor/paseo-plugin-helper/system.ts +128 -0
  88. package/server/vendor/paseo-plugin-helper/task.ts +116 -0
  89. package/server/vendor/paseo-plugin-helper/version.ts +153 -0
  90. package/server/vendor/paseo-plugin-helper/workspace-beacon.ts +418 -0
  91. package/shared/demo.ts +155 -0
  92. package/shared/vendor/paseo-plugin-helper/README.md +11 -0
  93. package/shared/vendor/paseo-plugin-helper/async.ts +35 -0
  94. package/shared/vendor/paseo-plugin-helper/custom-pills.ts +169 -0
  95. package/shared/vendor/paseo-plugin-helper/forge.ts +110 -0
  96. package/shared/vendor/paseo-plugin-helper/formatters.ts +271 -0
  97. package/shared/vendor/paseo-plugin-helper/highlight.ts +184 -0
  98. package/shared/vendor/paseo-plugin-helper/index.ts +10 -0
  99. package/shared/vendor/paseo-plugin-helper/rpc.ts +72 -0
  100. package/shared/vendor/paseo-plugin-helper/settings.ts +138 -0
  101. package/shared/vendor/paseo-plugin-helper/suite-settings.ts +17 -0
  102. package/shared/vendor/paseo-plugin-helper/suppressed.ts +31 -0
  103. package/shared/vendor/paseo-plugin-helper/types.ts +36 -0
  104. package/shared/version.ts +2 -0
@@ -0,0 +1,81 @@
1
+ import React, { type ComponentType } from "react";
2
+ import type {
3
+ HostWorkspacePanelProps as PluginWorkspacePanelProps,
4
+ HostAgentPanelProps as PluginAgentPanelProps,
5
+ } from "./host";
6
+ import { PluginThemeProvider } from "./theme/provider";
7
+ import type { VisualFlair } from "./theme/flair";
8
+
9
+ /**
10
+ * Structural registrar interface satisfied by both Paseo v0.7 PluginContext
11
+ * and Paseo v0.8 PluginClientContext.
12
+ */
13
+ export interface WorkspacePanelRegistrar {
14
+ addWorkspacePanel(contribution: any): any;
15
+ }
16
+
17
+ export interface RegisterWorkspacePanelOptions {
18
+ id: string;
19
+ title: string;
20
+ icon: string;
21
+ Component: ComponentType<PluginWorkspacePanelProps>;
22
+ flair?: VisualFlair;
23
+ }
24
+
25
+ export interface RegisterAgentPanelOptions {
26
+ id: string;
27
+ title: string;
28
+ icon: string;
29
+ Component: ComponentType<PluginAgentPanelProps>;
30
+ flair?: VisualFlair;
31
+ }
32
+
33
+ /**
34
+ * Registers a workspace-scoped panel with automatic `<PluginThemeProvider>` injection.
35
+ * Works with both Paseo v0.7 PluginContext and Paseo v0.8 PluginClientContext.
36
+ */
37
+ export function registerWorkspacePanel(
38
+ plugin: WorkspacePanelRegistrar,
39
+ options: RegisterWorkspacePanelOptions,
40
+ ): void {
41
+ const { id, title, icon, Component, flair } = options;
42
+
43
+ const WrappedComponent: ComponentType<PluginWorkspacePanelProps> = (props) => (
44
+ <PluginThemeProvider theme={props.theme} layout={props.layout} flair={flair}>
45
+ <Component {...props} />
46
+ </PluginThemeProvider>
47
+ );
48
+
49
+ plugin.addWorkspacePanel({
50
+ id,
51
+ title,
52
+ icon,
53
+ context: "workspace",
54
+ Component: WrappedComponent,
55
+ });
56
+ }
57
+
58
+ /**
59
+ * Registers an agent-scoped panel with automatic `<PluginThemeProvider>` injection.
60
+ * Works with both Paseo v0.7 PluginContext and Paseo v0.8 PluginClientContext.
61
+ */
62
+ export function registerAgentPanel(
63
+ plugin: WorkspacePanelRegistrar,
64
+ options: RegisterAgentPanelOptions,
65
+ ): void {
66
+ const { id, title, icon, Component, flair } = options;
67
+
68
+ const WrappedComponent: ComponentType<PluginAgentPanelProps> = (props) => (
69
+ <PluginThemeProvider theme={props.theme} layout={props.layout} flair={flair}>
70
+ <Component {...props} />
71
+ </PluginThemeProvider>
72
+ );
73
+
74
+ plugin.addWorkspacePanel({
75
+ id,
76
+ title,
77
+ icon,
78
+ context: "agent",
79
+ Component: WrappedComponent,
80
+ });
81
+ }