@principal-ai/principal-view-cli 0.8.2 → 0.8.3
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.
- package/dist/index.cjs +8 -11
- package/dist/index.cjs.map +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -241987,7 +241987,7 @@ var CanvasDiscovery = class _CanvasDiscovery {
|
|
|
241987
241987
|
const canvases = await this.discoverCanvasFiles(fileTree, packageMap, options, errors);
|
|
241988
241988
|
const executions = await this.discoverExecutionFiles(fileTree, packageMap, options, errors);
|
|
241989
241989
|
const storyboards = await this.discoverStoryboards(fileTree, packageMap, canvases, executions, options, errors);
|
|
241990
|
-
this.detectLegacyStructures(canvases, executions, storyboards,
|
|
241990
|
+
this.detectLegacyStructures(canvases, executions, storyboards, errors);
|
|
241991
241991
|
canvases.sort(this.compareByPackageThenName);
|
|
241992
241992
|
executions.sort(this.compareByPackageThenName);
|
|
241993
241993
|
storyboards.sort(this.compareByPackageThenName);
|
|
@@ -242038,9 +242038,8 @@ var CanvasDiscovery = class _CanvasDiscovery {
|
|
|
242038
242038
|
}
|
|
242039
242039
|
storyboardDirs.get(storyboardPath).add(storyboardName);
|
|
242040
242040
|
}
|
|
242041
|
-
for (const [
|
|
242041
|
+
for (const [storyboardPath, storyboardNames] of storyboardDirs) {
|
|
242042
242042
|
for (const storyboardName of storyboardNames) {
|
|
242043
|
-
const storyboardPath = `${storyboardParentPath}/${storyboardName}`;
|
|
242044
242043
|
if (storyboardName === _CanvasDiscovery.EXECUTIONS_DIR)
|
|
242045
242044
|
continue;
|
|
242046
242045
|
const storyboardCanvas = canvases.find((c) => {
|
|
@@ -242328,9 +242327,9 @@ var CanvasDiscovery = class _CanvasDiscovery {
|
|
|
242328
242327
|
return a.name.localeCompare(b.name);
|
|
242329
242328
|
}
|
|
242330
242329
|
/**
|
|
242331
|
-
* Detect legacy flat structures and add deprecation
|
|
242330
|
+
* Detect legacy flat structures and add deprecation errors
|
|
242332
242331
|
*/
|
|
242333
|
-
detectLegacyStructures(canvases, executions, storyboards,
|
|
242332
|
+
detectLegacyStructures(canvases, executions, storyboards, errors) {
|
|
242334
242333
|
const storyboardCanvasIds = new Set(storyboards.map((s) => s.canvas.id));
|
|
242335
242334
|
const storyboardExecutionIds = /* @__PURE__ */ new Set();
|
|
242336
242335
|
for (const storyboard of storyboards) {
|
|
@@ -242346,10 +242345,9 @@ var CanvasDiscovery = class _CanvasDiscovery {
|
|
|
242346
242345
|
const parts = canvasDir.split("/");
|
|
242347
242346
|
const pvIndex = parts.indexOf(_CanvasDiscovery.CANVAS_DIR);
|
|
242348
242347
|
if (pvIndex !== -1 && parts.length === pvIndex + 1) {
|
|
242349
|
-
|
|
242348
|
+
errors.push({
|
|
242350
242349
|
path: canvas.path,
|
|
242351
|
-
|
|
242352
|
-
type: "deprecation"
|
|
242350
|
+
error: "DEPRECATED: Legacy flat canvas structure is no longer supported. Migrate to the storyboard structure immediately. See migration guide at docs/MIGRATION_GUIDE.md for details."
|
|
242353
242351
|
});
|
|
242354
242352
|
}
|
|
242355
242353
|
}
|
|
@@ -242357,10 +242355,9 @@ var CanvasDiscovery = class _CanvasDiscovery {
|
|
|
242357
242355
|
for (const execution of executions) {
|
|
242358
242356
|
if (!storyboardExecutionIds.has(execution.id)) {
|
|
242359
242357
|
if (execution.path.includes(`/${_CanvasDiscovery.EXECUTIONS_DIR}/`)) {
|
|
242360
|
-
|
|
242358
|
+
errors.push({
|
|
242361
242359
|
path: execution.path,
|
|
242362
|
-
|
|
242363
|
-
type: "deprecation"
|
|
242360
|
+
error: "DEPRECATED: Legacy __executions__/ directory is no longer supported. Migrate executions to workflow folders within storyboards immediately. See migration guide at docs/MIGRATION_GUIDE.md for details."
|
|
242364
242361
|
});
|
|
242365
242362
|
}
|
|
242366
242363
|
}
|