testblocks 0.3.0 → 0.4.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.
@@ -16,7 +16,7 @@
16
16
  overflow: hidden;
17
17
  }
18
18
  </style>
19
- <script type="module" crossorigin src="/assets/index-RpGJFDVQ.js"></script>
19
+ <script type="module" crossorigin src="/assets/index-Cq84-VIf.js"></script>
20
20
  <link rel="stylesheet" crossorigin href="/assets/index-Dnk1ti7l.css">
21
21
  </head>
22
22
  <body>
@@ -35,14 +35,14 @@ app.use(express_1.default.json({ limit: '10mb' }));
35
35
  app.get('/api/health', (req, res) => {
36
36
  res.json({ status: 'ok', version: '1.0.0' });
37
37
  });
38
- // List available plugins
38
+ // List available plugins (with full block definitions for client registration)
39
39
  app.get('/api/plugins', (req, res) => {
40
40
  const available = (0, plugins_1.discoverPlugins)();
41
41
  const loaded = (0, plugins_1.getServerPlugins)().map(p => ({
42
42
  name: p.name,
43
43
  version: p.version,
44
44
  description: p.description,
45
- blockCount: p.blocks.length,
45
+ blocks: p.blocks, // Include full block definitions
46
46
  }));
47
47
  res.json({
48
48
  directory: (0, plugins_1.getPluginsDirectory)(),
@@ -75,14 +75,14 @@ async function startServer(options = {}) {
75
75
  app.get('/api/health', (_req, res) => {
76
76
  res.json({ status: 'ok', version: '1.0.0' });
77
77
  });
78
- // List available plugins
78
+ // List available plugins (with full block definitions for client registration)
79
79
  app.get('/api/plugins', (_req, res) => {
80
80
  const available = (0, plugins_1.discoverPlugins)();
81
81
  const loaded = (0, plugins_1.getServerPlugins)().map(p => ({
82
82
  name: p.name,
83
83
  version: p.version,
84
84
  description: p.description,
85
- blockCount: p.blocks.length,
85
+ blocks: p.blocks, // Include full block definitions
86
86
  }));
87
87
  res.json({
88
88
  directory: (0, plugins_1.getPluginsDirectory)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testblocks",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Visual test automation tool with Blockly - API and Playwright testing",
5
5
  "author": "Roy de Kleijn",
6
6
  "license": "MIT",