@willwade/aac-processors 0.0.24 → 0.0.25

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.
@@ -659,13 +659,21 @@ class GridsetProcessor extends baseProcessor_1.BaseProcessor {
659
659
  const message = label; // Use caption as message
660
660
  // Detect plugin cell type (Workspace, LiveCell, AutoContent)
661
661
  const pluginMetadata = (0, pluginTypes_1.detectPluginCellType)(content);
662
- // Default labels for prediction cells so they don't render blank
662
+ // Friendly labels for workspace/prediction cells when captions are missing
663
+ if (pluginMetadata.cellType === pluginTypes_1.Grid3CellType.Workspace) {
664
+ if (!label || label.startsWith('Cell_')) {
665
+ label =
666
+ pluginMetadata.displayName ||
667
+ pluginMetadata.subType ||
668
+ pluginMetadata.pluginId ||
669
+ 'Workspace';
670
+ }
671
+ }
663
672
  if (pluginMetadata.cellType === pluginTypes_1.Grid3CellType.AutoContent &&
664
673
  pluginMetadata.autoContentType === 'Prediction') {
665
674
  predictionCellCounter += 1;
666
- if (!label) {
667
- label = `Prediction ${predictionCellCounter}`;
668
- }
675
+ // Always surface a friendly label for predictions even if a placeholder exists
676
+ label = `Prediction ${predictionCellCounter}`;
669
677
  }
670
678
  // Parse all command types from Grid3 and create semantic actions
671
679
  let semanticAction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willwade/aac-processors",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "A comprehensive TypeScript library for processing AAC (Augmentative and Alternative Communication) file formats with translation support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",