@kb-labs/workflow-engine 2.82.0 → 2.87.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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1753,11 +1753,31 @@ var ManifestScanner = class {
|
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
|
+
const snapshot = this.cliApi.snapshot();
|
|
1757
|
+
let templatesCount = 0;
|
|
1758
|
+
for (const entry of snapshot.manifests ?? []) {
|
|
1759
|
+
const templates = entry.manifest.workflows?.templates ?? [];
|
|
1760
|
+
for (const templateDecl of templates) {
|
|
1761
|
+
const id = `plugin:${entry.pluginId}/${templateDecl.id}`;
|
|
1762
|
+
workflows.push({
|
|
1763
|
+
id,
|
|
1764
|
+
source: "plugin",
|
|
1765
|
+
pluginId: entry.pluginId,
|
|
1766
|
+
name: templateDecl.describe ?? templateDecl.id,
|
|
1767
|
+
description: templateDecl.describe,
|
|
1768
|
+
tags: templateDecl.tags,
|
|
1769
|
+
triggers: [{ type: "manual" }],
|
|
1770
|
+
status: "active"
|
|
1771
|
+
});
|
|
1772
|
+
templatesCount++;
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1756
1775
|
this.platform.logger?.info("ManifestScanner: Discovered workflows via registry", {
|
|
1757
1776
|
count: workflows.length,
|
|
1758
1777
|
workflows: workflowEntities.length,
|
|
1759
1778
|
jobs: jobEntities.length,
|
|
1760
|
-
crons: cronEntities.length
|
|
1779
|
+
crons: cronEntities.length,
|
|
1780
|
+
templates: templatesCount
|
|
1761
1781
|
});
|
|
1762
1782
|
if (this.platform.cache) {
|
|
1763
1783
|
await this.platform.cache.set(cacheKey, workflows, this.cacheTtlMs);
|