snow-flow 10.0.1-dev.409 → 10.0.1-dev.410

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "10.0.1-dev.409",
3
+ "version": "10.0.1-dev.410",
4
4
  "name": "snow-flow",
5
5
  "description": "Snow-Flow - ServiceNow Multi-Agent Development Framework powered by AI",
6
6
  "license": "Elastic-2.0",
@@ -1634,11 +1634,11 @@ export async function execute(args: any, context: ServiceNowContext): Promise<To
1634
1634
 
1635
1635
  }
1636
1636
 
1637
- // ── Register flow with Flow Designer engine (Table API only) ──
1638
- // For scheduled job path, engine registration is done server-side
1639
- // inside the job script (via sn_fd APIs). Only call the external
1640
- // REST-based registration for the Table API fallback path.
1641
- if (flowSysId && usedMethod.startsWith('table_api')) {
1637
+ // ── Register flow with Flow Designer engine ──
1638
+ // Call the REST API (publish/activate/checkout+checkin/snapshot) to
1639
+ // trigger engine compilation and set latest_version (computed field
1640
+ // that cannot be set via GlideRecord or Table API PATCH).
1641
+ if (flowSysId) {
1642
1642
  var engineResult = await registerFlowWithEngine(client, flowSysId, shouldActivate);
1643
1643
  diagnostics.engine_registration = {
1644
1644
  success: engineResult.success,