snow-flow 8.39.2 → 8.39.4

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.
Files changed (88) hide show
  1. package/dist/mcp/servicenow-mcp-unified/shared/permission-validator.d.ts.map +1 -1
  2. package/dist/mcp/servicenow-mcp-unified/shared/types.d.ts +1 -1
  3. package/dist/mcp/servicenow-mcp-unified/shared/types.d.ts.map +1 -1
  4. package/dist/mcp/servicenow-mcp-unified/tools/automation/index.d.ts +6 -0
  5. package/dist/mcp/servicenow-mcp-unified/tools/automation/index.d.ts.map +1 -1
  6. package/dist/mcp/servicenow-mcp-unified/tools/automation/index.js +19 -1
  7. package/dist/mcp/servicenow-mcp-unified/tools/automation/index.js.map +1 -1
  8. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.d.ts +12 -0
  9. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.d.ts.map +1 -0
  10. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.js +185 -0
  11. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.js.map +1 -0
  12. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.d.ts +12 -0
  13. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.d.ts.map +1 -0
  14. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.js +280 -0
  15. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.js.map +1 -0
  16. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_inbound_http_logs.d.ts +12 -0
  17. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_inbound_http_logs.d.ts.map +1 -0
  18. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_inbound_http_logs.js +233 -0
  19. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_inbound_http_logs.js.map +1 -0
  20. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_outbound_http_logs.d.ts +12 -0
  21. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_outbound_http_logs.d.ts.map +1 -0
  22. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_outbound_http_logs.js +218 -0
  23. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_outbound_http_logs.js.map +1 -0
  24. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_scheduled_job_logs.d.ts +12 -0
  25. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_scheduled_job_logs.d.ts.map +1 -0
  26. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_scheduled_job_logs.js +276 -0
  27. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_scheduled_job_logs.js.map +1 -0
  28. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_slow_queries.d.ts +12 -0
  29. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_slow_queries.d.ts.map +1 -0
  30. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_slow_queries.js +340 -0
  31. package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_slow_queries.js.map +1 -0
  32. package/dist/mcp/servicenow-mcp-unified/tools/integration/index.d.ts +10 -0
  33. package/dist/mcp/servicenow-mcp-unified/tools/integration/index.d.ts.map +1 -1
  34. package/dist/mcp/servicenow-mcp-unified/tools/integration/index.js +34 -1
  35. package/dist/mcp/servicenow-mcp-unified/tools/integration/index.js.map +1 -1
  36. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_configure_mid_server.d.ts +12 -0
  37. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_configure_mid_server.d.ts.map +1 -0
  38. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_configure_mid_server.js +397 -0
  39. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_configure_mid_server.js.map +1 -0
  40. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_connection_alias.d.ts +12 -0
  41. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_connection_alias.d.ts.map +1 -0
  42. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_connection_alias.js +234 -0
  43. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_connection_alias.js.map +1 -0
  44. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_credential_alias.d.ts +12 -0
  45. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_credential_alias.d.ts.map +1 -0
  46. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_credential_alias.js +280 -0
  47. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_credential_alias.js.map +1 -0
  48. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_flow_action.d.ts +12 -0
  49. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_flow_action.d.ts.map +1 -0
  50. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_flow_action.js +358 -0
  51. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_flow_action.js.map +1 -0
  52. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_oauth_profile.d.ts +12 -0
  53. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_oauth_profile.d.ts.map +1 -0
  54. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_oauth_profile.js +237 -0
  55. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_oauth_profile.js.map +1 -0
  56. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_install_spoke.d.ts +12 -0
  57. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_install_spoke.d.ts.map +1 -0
  58. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_install_spoke.js +326 -0
  59. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_install_spoke.js.map +1 -0
  60. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.d.ts +12 -0
  61. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.d.ts.map +1 -0
  62. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.js +442 -0
  63. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.js.map +1 -0
  64. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_oauth_tokens.d.ts +12 -0
  65. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_oauth_tokens.d.ts.map +1 -0
  66. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_oauth_tokens.js +348 -0
  67. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_oauth_tokens.js.map +1 -0
  68. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_spoke_connection.d.ts +12 -0
  69. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_spoke_connection.d.ts.map +1 -0
  70. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_spoke_connection.js +427 -0
  71. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_spoke_connection.js.map +1 -0
  72. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_mid_connectivity.d.ts +12 -0
  73. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_mid_connectivity.d.ts.map +1 -0
  74. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_mid_connectivity.js +432 -0
  75. package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_mid_connectivity.js.map +1 -0
  76. package/dist/templates/agents-md-template.d.ts +2 -2
  77. package/dist/templates/agents-md-template.d.ts.map +1 -1
  78. package/dist/templates/agents-md-template.js +57 -2
  79. package/dist/templates/agents-md-template.js.map +1 -1
  80. package/dist/templates/claude-md-template.d.ts +2 -2
  81. package/dist/templates/claude-md-template.d.ts.map +1 -1
  82. package/dist/templates/claude-md-template.js +17 -1
  83. package/dist/templates/claude-md-template.js.map +1 -1
  84. package/dist/version.d.ts +1 -1
  85. package/dist/version.d.ts.map +1 -1
  86. package/dist/version.js +1 -1
  87. package/dist/version.js.map +1 -1
  88. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"permission-validator.d.ts","sourceRoot":"","sources":["../../../../src/mcp/servicenow-mcp-unified/shared/permission-validator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAY,MAAM,YAAY,CAAC;AAGrE;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,GAAG,IAAI,CAyCrF;AAiBD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,iBAAiB,EACvB,UAAU,EAAE,UAAU,GAAG,IAAI,GAC5B,IAAI,CAqCN;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,iBAAiB,EAAE,EAC1B,UAAU,EAAE,UAAU,GAAG,IAAI,GAC5B,iBAAiB,EAAE,CAOrB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAGpE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,IAAI,CAWrE"}
1
+ {"version":3,"file":"permission-validator.d.ts","sourceRoot":"","sources":["../../../../src/mcp/servicenow-mcp-unified/shared/permission-validator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAA4B,MAAM,YAAY,CAAC;AAGrF;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,GAAG,IAAI,CAyCrF;AAiBD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,iBAAiB,EACvB,UAAU,EAAE,UAAU,GAAG,IAAI,GAC5B,IAAI,CAqCN;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,iBAAiB,EAAE,EAC1B,UAAU,EAAE,UAAU,GAAG,IAAI,GAC5B,iBAAiB,EAAE,CAOrB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAGpE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,IAAI,CAWrE"}
@@ -38,7 +38,7 @@ export type UserRole = 'developer' | 'stakeholder' | 'admin';
38
38
  /**
39
39
  * Tool permission level
40
40
  */
41
- export type ToolPermission = 'read' | 'write';
41
+ export type ToolPermission = 'read' | 'write' | 'admin';
42
42
  /**
43
43
  * MCP Tool Definition (compliant with Model Context Protocol)
44
44
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/mcp/servicenow-mcp-unified/shared/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,cAAc,GAAG,MAAM,GAAG,YAAY,CAAC;AAElF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,W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AE,MAAM,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,cAAc,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;QACnF,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAC;QACjC,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;IACH,QAAQ,EAAE;QACR,qBAAqB,EAAE,MAAM,EAAE,CAAC;QAChC,aAAa,EAAE,MAAM,EAAE,CAAC;QACxB,cAAc,EAAE,MAAM,EAAE,CAAC;QACzB,YAAY,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,OAAO,GAAG,KAAK,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,eAAe,GAAG,QAAQ,GAAG,eAAe,GAAG,OAAO,CAAC;QACvH,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;KACb,CAAC,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,aAAa,GAAG,UAAU,GAAG,WAAW,CAAC;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;CACpB"}
@@ -13,6 +13,12 @@ export { toolDefinition as snow_execute_background_script_def, execute as snow_e
13
13
  export { toolDefinition as snow_execute_script_sync_def, execute as snow_execute_script_sync_exec } from './snow_execute_script_sync.js';
14
14
  export { toolDefinition as snow_execute_script_with_output_def, execute as snow_execute_script_with_output_exec } from './snow_execute_script_with_output.js';
15
15
  export { toolDefinition as snow_get_logs_def, execute as snow_get_logs_exec } from './snow_get_logs.js';
16
+ export { toolDefinition as snow_get_email_logs_def, execute as snow_get_email_logs_exec } from './snow_get_email_logs.js';
17
+ export { toolDefinition as snow_get_outbound_http_logs_def, execute as snow_get_outbound_http_logs_exec } from './snow_get_outbound_http_logs.js';
18
+ export { toolDefinition as snow_get_inbound_http_logs_def, execute as snow_get_inbound_http_logs_exec } from './snow_get_inbound_http_logs.js';
19
+ export { toolDefinition as snow_get_flow_execution_logs_def, execute as snow_get_flow_execution_logs_exec } from './snow_get_flow_execution_logs.js';
20
+ export { toolDefinition as snow_get_scheduled_job_logs_def, execute as snow_get_scheduled_job_logs_exec } from './snow_get_scheduled_job_logs.js';
21
+ export { toolDefinition as snow_get_slow_queries_def, execute as snow_get_slow_queries_exec } from './snow_get_slow_queries.js';
16
22
  export { toolDefinition as snow_get_script_output_def, execute as snow_get_script_output_exec } from './snow_get_script_output.js';
17
23
  export { toolDefinition as snow_property_manager_def, execute as snow_property_manager_exec } from './snow_property_manager.js';
18
24
  export { toolDefinition as snow_rest_message_test_suite_def, execute as snow_rest_message_test_suite_exec } from './snow_rest_message_test_suite.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/mcp/servicenow-mcp-unified/tools/automation/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,IAAI,iCAAiC,EAAE,OAAO,IAAI,kCAAkC,EAAE,MAAM,oCAAoC,CAAC;AACxJ,OAAO,EAAE,cAAc,IAAI,0BAA0B,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AACnI,OAAO,EAAE,cAAc,IAAI,+BAA+B,EAAE,OAAO,IAAI,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AA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B,CAAC"}
@@ -3,7 +3,7 @@
3
3
  * Automation Tools - Export all automation tool modules
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.snow_trace_execution_exec = exports.snow_trace_execution_def = exports.snow_test_scheduled_job_exec = exports.snow_test_scheduled_job_def = exports.snow_test_rest_connection_exec = exports.snow_test_rest_connection_def = exports.snow_rest_message_test_suite_exec = exports.snow_rest_message_test_suite_def = exports.snow_property_manager_exec = exports.snow_property_manager_def = exports.snow_get_script_output_exec = exports.snow_get_script_output_def = exports.snow_get_logs_exec = exports.snow_get_logs_def = exports.snow_execute_script_with_output_exec = exports.snow_execute_script_with_output_def = exports.snow_execute_script_sync_exec = exports.snow_execute_script_sync_def = exports.snow_execute_background_script_exec = exports.snow_execute_background_script_def = exports.snow_discover_schedules_exec = exports.snow_discover_schedules_def = exports.snow_discover_events_exec = exports.snow_discover_events_def = exports.snow_discover_automation_jobs_exec = exports.snow_discover_automation_jobs_def = exports.snow_create_workflow_activity_exec = exports.snow_create_workflow_activity_def = exports.snow_create_sla_definition_exec = exports.snow_create_sla_definition_def = exports.snow_create_escalation_rule_exec = exports.snow_create_escalation_rule_def = exports.snow_create_event_rule_exec = exports.snow_create_event_rule_def = exports.snow_confirm_script_execution_exec = exports.snow_confirm_script_execution_def = void 0;
6
+ exports.snow_trace_execution_exec = exports.snow_trace_execution_def = exports.snow_test_scheduled_job_exec = exports.snow_test_scheduled_job_def = exports.snow_test_rest_connection_exec = exports.snow_test_rest_connection_def = exports.snow_rest_message_test_suite_exec = exports.snow_rest_message_test_suite_def = exports.snow_property_manager_exec = exports.snow_property_manager_def = exports.snow_get_script_output_exec = exports.snow_get_script_output_def = exports.snow_get_slow_queries_exec = exports.snow_get_slow_queries_def = exports.snow_get_scheduled_job_logs_exec = exports.snow_get_scheduled_job_logs_def = exports.snow_get_flow_execution_logs_exec = exports.snow_get_flow_execution_logs_def = exports.snow_get_inbound_http_logs_exec = exports.snow_get_inbound_http_logs_def = exports.snow_get_outbound_http_logs_exec = exports.snow_get_outbound_http_logs_def = exports.snow_get_email_logs_exec = exports.snow_get_email_logs_def = exports.snow_get_logs_exec = exports.snow_get_logs_def = exports.snow_execute_script_with_output_exec = exports.snow_execute_script_with_output_def = exports.snow_execute_script_sync_exec = exports.snow_execute_script_sync_def = exports.snow_execute_background_script_exec = exports.snow_execute_background_script_def = exports.snow_discover_schedules_exec = exports.snow_discover_schedules_def = exports.snow_discover_events_exec = exports.snow_discover_events_def = exports.snow_discover_automation_jobs_exec = exports.snow_discover_automation_jobs_def = exports.snow_create_workflow_activity_exec = exports.snow_create_workflow_activity_def = exports.snow_create_sla_definition_exec = exports.snow_create_sla_definition_def = exports.snow_create_escalation_rule_exec = exports.snow_create_escalation_rule_def = exports.snow_create_event_rule_exec = exports.snow_create_event_rule_def = exports.snow_confirm_script_execution_exec = exports.snow_confirm_script_execution_def = void 0;
7
7
  var snow_confirm_script_execution_js_1 = require("./snow_confirm_script_execution.js");
8
8
  Object.defineProperty(exports, "snow_confirm_script_execution_def", { enumerable: true, get: function () { return snow_confirm_script_execution_js_1.toolDefinition; } });
9
9
  Object.defineProperty(exports, "snow_confirm_script_execution_exec", { enumerable: true, get: function () { return snow_confirm_script_execution_js_1.execute; } });
@@ -40,6 +40,24 @@ Object.defineProperty(exports, "snow_execute_script_with_output_exec", { enumera
40
40
  var snow_get_logs_js_1 = require("./snow_get_logs.js");
41
41
  Object.defineProperty(exports, "snow_get_logs_def", { enumerable: true, get: function () { return snow_get_logs_js_1.toolDefinition; } });
42
42
  Object.defineProperty(exports, "snow_get_logs_exec", { enumerable: true, get: function () { return snow_get_logs_js_1.execute; } });
43
+ var snow_get_email_logs_js_1 = require("./snow_get_email_logs.js");
44
+ Object.defineProperty(exports, "snow_get_email_logs_def", { enumerable: true, get: function () { return snow_get_email_logs_js_1.toolDefinition; } });
45
+ Object.defineProperty(exports, "snow_get_email_logs_exec", { enumerable: true, get: function () { return snow_get_email_logs_js_1.execute; } });
46
+ var snow_get_outbound_http_logs_js_1 = require("./snow_get_outbound_http_logs.js");
47
+ Object.defineProperty(exports, "snow_get_outbound_http_logs_def", { enumerable: true, get: function () { return snow_get_outbound_http_logs_js_1.toolDefinition; } });
48
+ Object.defineProperty(exports, "snow_get_outbound_http_logs_exec", { enumerable: true, get: function () { return snow_get_outbound_http_logs_js_1.execute; } });
49
+ var snow_get_inbound_http_logs_js_1 = require("./snow_get_inbound_http_logs.js");
50
+ Object.defineProperty(exports, "snow_get_inbound_http_logs_def", { enumerable: true, get: function () { return snow_get_inbound_http_logs_js_1.toolDefinition; } });
51
+ Object.defineProperty(exports, "snow_get_inbound_http_logs_exec", { enumerable: true, get: function () { return snow_get_inbound_http_logs_js_1.execute; } });
52
+ var snow_get_flow_execution_logs_js_1 = require("./snow_get_flow_execution_logs.js");
53
+ Object.defineProperty(exports, "snow_get_flow_execution_logs_def", { enumerable: true, get: function () { return snow_get_flow_execution_logs_js_1.toolDefinition; } });
54
+ Object.defineProperty(exports, "snow_get_flow_execution_logs_exec", { enumerable: true, get: function () { return snow_get_flow_execution_logs_js_1.execute; } });
55
+ var snow_get_scheduled_job_logs_js_1 = require("./snow_get_scheduled_job_logs.js");
56
+ Object.defineProperty(exports, "snow_get_scheduled_job_logs_def", { enumerable: true, get: function () { return snow_get_scheduled_job_logs_js_1.toolDefinition; } });
57
+ Object.defineProperty(exports, "snow_get_scheduled_job_logs_exec", { enumerable: true, get: function () { return snow_get_scheduled_job_logs_js_1.execute; } });
58
+ var snow_get_slow_queries_js_1 = require("./snow_get_slow_queries.js");
59
+ Object.defineProperty(exports, "snow_get_slow_queries_def", { enumerable: true, get: function () { return snow_get_slow_queries_js_1.toolDefinition; } });
60
+ Object.defineProperty(exports, "snow_get_slow_queries_exec", { enumerable: true, get: function () { return snow_get_slow_queries_js_1.execute; } });
43
61
  var snow_get_script_output_js_1 = require("./snow_get_script_output.js");
44
62
  Object.defineProperty(exports, "snow_get_script_output_def", { enumerable: true, get: function () { return snow_get_script_output_js_1.toolDefinition; } });
45
63
  Object.defineProperty(exports, "snow_get_script_output_exec", { enumerable: true, get: function () { return snow_get_script_output_js_1.execute; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/mcp/servicenow-mcp-unified/tools/automation/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,uFAAwJ;AAA/I,qJAAA,cAAc,OAAqC;AAAE,sJAAA,OAAO,OAAsC;AAC3G,yEAAmI;AAA1H,uIAAA,cAAc,OAA8B;AAAE,wIAAA,OAAO,OAA+B;AAC7F,mFAAkJ;AAAzI,iJAAA,cAAc,OAAmC;AAAE,kJAAA,OAAO,OAAoC;AACvG,iFAA+I;AAAtI,+IAAA,cAAc,OAAkC;AAAE,gJAAA,OAAO,OAAmC;AACrG,uFAAwJ;AAA/I,qJAAA,cAAc,OAAqC;AAAE,sJAAA,OAAO,OAAsC;AAC3G,uFAAwJ;AAA/I,qJAAA,cAAc,OAAqC;AAAE,sJAAA,OAAO,OAAsC;AAC3G,qEAA6H;AAApH,mIAAA,cAAc,OAA4B;AAAE,oIAAA,OAAO,OAA6B;AACzF,2EAAsI;AAA7H,yIAAA,cAAc,OAA+B;AAAE,0IAAA,OAAO,OAAgC;AAC/F,yFAA2J;AAAlJ,uJAAA,cAAc,OAAsC;AAAE,wJAAA,OAAO,OAAuC;AAC7G,6EAAyI;AAAhI,2IAAA,cAAc,OAAgC;AAAE,4IAAA,OAAO,OAAiC;AACjG,2FAA8J;AAArJ,yJAAA,cAAc,OAAuC;AAAE,0JAAA,OAAO,OAAwC;AAC/G,uDAAwG;AAA/F,qHAAA,cAAc,OAAqB;AAAE,sHAAA,OAAO,OAAsB;AAC3E,yEAAmI;AAA1H,uIAAA,cAAc,OAA8B;AAAE,wIAAA,OAAO,OAA+B;AAC7F,uEAAgI;AAAvH,qIAAA,cAAc,OAA6B;AAAE,sIAAA,OAAO,OAA8B;AAC3F,qFAAqJ;AAA5I,mJAAA,cAAc,OAAoC;A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A,OAAO,OAA4B;AACvF,mFAAkJ;AAAzI,iJAAA,cAAc,OAAmC;AAAE,kJAAA,OAAO,OAAoC;AACvG,iFAA+I;AAAtI,+IAAA,cAAc,OAAkC;AAAE,gJAAA,OAAO,OAAmC;AACrG,qFAAqJ;AAA5I,mJAAA,cAAc,OAAoC;AAAE,oJAAA,OAAO,OAAqC;AACzG,mFAAkJ;AAAzI,iJAAA,cAAc,OAAmC;AAAE,kJAAA,OAAO,OAAoC;AACvG,uEAAgI;AAAvH,qIAAA,cAAc,OAA6B;AAAE,sIAAA,OAAO,OAA8B;AAC3F,yEAAmI;AAA1H,uIAAA,cAAc,OAA8B;AAAE,wIAAA,OAAO,OAA+B;AAC7F,uEAAgI;AAAvH,qIAAA,cAAc,OAA6B;AAAE,sIAAA,OAAO,OAA8B;AAC3F,qFAAqJ;AAA5I,mJAAA,cAAc,OAAoC;AAAE,oJAAA,OAAO,OAAqC;AACzG,+EAA4I;AAAnI,6IAAA,cAAc,OAAiC;AAAE,8IAAA,OAAO,OAAkC;AACnG,2EAAsI;AAA7H,yIAAA,cAAc,OAA+B;AAAE,0IAAA,OAAO,OAAgC;AAC/F,qEAA6H;AAApH,mIAAA,cAAc,OAA4B;AAAE,oIAAA,OAAO,OAA6B"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * snow_get_email_logs - View sent/received email logs
3
+ *
4
+ * Retrieve email records from sys_email table to monitor
5
+ * email notifications, delivery status, and troubleshoot issues.
6
+ */
7
+ import { MCPToolDefinition, ServiceNowContext, ToolResult } from '../../shared/types.js';
8
+ export declare const toolDefinition: MCPToolDefinition;
9
+ export declare function execute(args: any, context: ServiceNowContext): Promise<ToolResult>;
10
+ export declare const version = "1.0.0";
11
+ export declare const author = "Snow-Flow Team";
12
+ //# sourceMappingURL=snow_get_email_logs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snow_get_email_logs.d.ts","sourceRoot":"","sources":["../../../../../src/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIzF,eAAO,MAAM,cAAc,EAAE,iBAqD5B,CAAC;AAEF,wBAAsB,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CA2GxF;AAyBD,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+ /**
3
+ * snow_get_email_logs - View sent/received email logs
4
+ *
5
+ * Retrieve email records from sys_email table to monitor
6
+ * email notifications, delivery status, and troubleshoot issues.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.author = exports.version = exports.toolDefinition = void 0;
10
+ exports.execute = execute;
11
+ const auth_js_1 = require("../../shared/auth.js");
12
+ const error_handler_js_1 = require("../../shared/error-handler.js");
13
+ exports.toolDefinition = {
14
+ name: 'snow_get_email_logs',
15
+ description: 'Retrieve sent/received email logs from sys_email table for monitoring and debugging',
16
+ // Metadata for tool discovery (not sent to LLM)
17
+ category: 'automation',
18
+ subcategory: 'monitoring',
19
+ use_cases: ['email', 'notifications', 'monitoring', 'debugging'],
20
+ complexity: 'beginner',
21
+ frequency: 'high',
22
+ // Permission enforcement
23
+ // Classification: READ - Get operation - retrieves data
24
+ permission: 'read',
25
+ allowedRoles: ['developer', 'stakeholder', 'admin'],
26
+ inputSchema: {
27
+ type: 'object',
28
+ properties: {
29
+ type: {
30
+ type: 'string',
31
+ enum: ['sent', 'received', 'send-ready', 'failed', 'all'],
32
+ description: 'Email type/status filter',
33
+ default: 'all'
34
+ },
35
+ recipient: {
36
+ type: 'string',
37
+ description: 'Filter by recipient email address'
38
+ },
39
+ sender: {
40
+ type: 'string',
41
+ description: 'Filter by sender email address'
42
+ },
43
+ subject: {
44
+ type: 'string',
45
+ description: 'Search in email subject'
46
+ },
47
+ limit: {
48
+ type: 'number',
49
+ description: 'Maximum number of email records to return',
50
+ default: 50,
51
+ minimum: 1,
52
+ maximum: 500
53
+ },
54
+ since: {
55
+ type: 'string',
56
+ description: 'Get emails since this timestamp (ISO 8601 or relative like "1h", "30m", "7d")'
57
+ },
58
+ include_body: {
59
+ type: 'boolean',
60
+ description: 'Include email body in response (can be large)',
61
+ default: false
62
+ }
63
+ }
64
+ }
65
+ };
66
+ async function execute(args, context) {
67
+ var type = args.type || 'all';
68
+ var recipient = args.recipient;
69
+ var sender = args.sender;
70
+ var subject = args.subject;
71
+ var limit = args.limit || 50;
72
+ var since = args.since;
73
+ var include_body = args.include_body || false;
74
+ try {
75
+ var client = await (0, auth_js_1.getAuthenticatedClient)(context);
76
+ // Build query
77
+ var queryParts = [];
78
+ // Type/status filter
79
+ if (type !== 'all') {
80
+ queryParts.push('type=' + type);
81
+ }
82
+ // Recipient filter
83
+ if (recipient) {
84
+ queryParts.push('recipientsLIKE' + recipient);
85
+ }
86
+ // Sender filter
87
+ if (sender) {
88
+ queryParts.push('fromLIKE' + sender);
89
+ }
90
+ // Subject search
91
+ if (subject) {
92
+ queryParts.push('subjectLIKE' + subject);
93
+ }
94
+ // Time range filter
95
+ if (since) {
96
+ var sinceTimestamp = parseRelativeTime(since);
97
+ queryParts.push('sys_created_on>' + sinceTimestamp);
98
+ }
99
+ var query = queryParts.join('^');
100
+ // Build fields list
101
+ var fields = 'sys_id,sys_created_on,type,subject,recipients,from,cc,bcc,state,error_string,mailbox,content_type';
102
+ if (include_body) {
103
+ fields += ',body,body_text';
104
+ }
105
+ // Get emails from sys_email table
106
+ var response = await client.get('/api/now/table/sys_email', {
107
+ params: {
108
+ sysparm_query: query + '^ORDERBYDESCsys_created_on',
109
+ sysparm_limit: limit,
110
+ sysparm_fields: fields
111
+ }
112
+ });
113
+ var emails = response.data.result.map(function (email) {
114
+ var record = {
115
+ sys_id: email.sys_id,
116
+ timestamp: email.sys_created_on,
117
+ type: email.type,
118
+ state: email.state,
119
+ subject: email.subject,
120
+ from: email.from,
121
+ recipients: email.recipients,
122
+ cc: email.cc || null,
123
+ bcc: email.bcc || null,
124
+ mailbox: email.mailbox,
125
+ content_type: email.content_type,
126
+ error: email.error_string || null
127
+ };
128
+ if (include_body) {
129
+ record.body = email.body || email.body_text;
130
+ }
131
+ return record;
132
+ });
133
+ // Categorize by type/state
134
+ var byType = {
135
+ sent: 0,
136
+ received: 0,
137
+ 'send-ready': 0,
138
+ failed: 0
139
+ };
140
+ emails.forEach(function (e) {
141
+ if (e.state === 'error' || e.error) {
142
+ byType.failed++;
143
+ }
144
+ else if (byType[e.type] !== undefined) {
145
+ byType[e.type]++;
146
+ }
147
+ });
148
+ return (0, error_handler_js_1.createSuccessResult)({
149
+ emails: emails,
150
+ count: emails.length,
151
+ by_type: byType,
152
+ filters: { type: type, recipient: recipient, sender: sender, subject: subject, since: since }
153
+ });
154
+ }
155
+ catch (error) {
156
+ return (0, error_handler_js_1.createErrorResult)(error.message);
157
+ }
158
+ }
159
+ function parseRelativeTime(relative) {
160
+ var now = new Date();
161
+ var match = relative.match(/^(\d+)([mhd])$/);
162
+ if (!match) {
163
+ // Assume it's an absolute timestamp
164
+ return relative;
165
+ }
166
+ var value = parseInt(match[1]);
167
+ var unit = match[2];
168
+ var milliseconds = 0;
169
+ switch (unit) {
170
+ case 'm':
171
+ milliseconds = value * 60 * 1000;
172
+ break;
173
+ case 'h':
174
+ milliseconds = value * 60 * 60 * 1000;
175
+ break;
176
+ case 'd':
177
+ milliseconds = value * 24 * 60 * 60 * 1000;
178
+ break;
179
+ }
180
+ var sinceDate = new Date(now.getTime() - milliseconds);
181
+ return sinceDate.toISOString();
182
+ }
183
+ exports.version = '1.0.0';
184
+ exports.author = 'Snow-Flow Team';
185
+ //# sourceMappingURL=snow_get_email_logs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snow_get_email_logs.js","sourceRoot":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;IAC/B,IAAI,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAEpB,IAAI,YAAY,GAAG,CAAC,CAAC;IACrB,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,GAAG;YAAE,YAAY,GAAG,KAAK,GAAG,EAAE,GAAG,IAAI,CAAC;YAAC,MAAM;QAClD,KAAK,GAAG;YAAE,YAAY,GAAG,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;YAAC,MAAM;QACvD,KAAK,GAAG;YAAE,YAAY,GAAG,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;YAAC,MAAM;IAC9D,CAAC;IAED,IAAI,SAAS,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,YAAY,CAAC,CAAC;IACvD,OAAO,SAAS,CAAC,WAAW,EAAE,CAAC;AACjC,CAAC;AAEY,QAAA,OAAO,GAAG,OAAO,CAAC;AAClB,QAAA,MAAM,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * snow_get_flow_execution_logs - View Flow Designer execution history
3
+ *
4
+ * Retrieve Flow Designer execution logs to monitor flow runs,
5
+ * debug failures, and analyze performance.
6
+ */
7
+ import { MCPToolDefinition, ServiceNowContext, ToolResult } from '../../shared/types.js';
8
+ export declare const toolDefinition: MCPToolDefinition;
9
+ export declare function execute(args: any, context: ServiceNowContext): Promise<ToolResult>;
10
+ export declare const version = "1.0.0";
11
+ export declare const author = "Snow-Flow Team";
12
+ //# sourceMappingURL=snow_get_flow_execution_logs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snow_get_flow_execution_logs.d.ts","sourceRoot":"","sources":["../../../../../src/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIzF,eAAO,MAAM,cAAc,EAAE,iBAgE5B,CAAC;AAEF,wBAAsB,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CAmMxF;AAyBD,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,280 @@
1
+ "use strict";
2
+ /**
3
+ * snow_get_flow_execution_logs - View Flow Designer execution history
4
+ *
5
+ * Retrieve Flow Designer execution logs to monitor flow runs,
6
+ * debug failures, and analyze performance.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.author = exports.version = exports.toolDefinition = void 0;
10
+ exports.execute = execute;
11
+ const auth_js_1 = require("../../shared/auth.js");
12
+ const error_handler_js_1 = require("../../shared/error-handler.js");
13
+ exports.toolDefinition = {
14
+ name: 'snow_get_flow_execution_logs',
15
+ description: 'Retrieve Flow Designer execution logs for monitoring flow runs, debugging failures, and analyzing performance',
16
+ // Metadata for tool discovery (not sent to LLM)
17
+ category: 'automation',
18
+ subcategory: 'monitoring',
19
+ use_cases: ['flow-designer', 'automation', 'monitoring', 'debugging'],
20
+ complexity: 'beginner',
21
+ frequency: 'high',
22
+ // Permission enforcement
23
+ // Classification: READ - Get operation - retrieves data
24
+ permission: 'read',
25
+ allowedRoles: ['developer', 'stakeholder', 'admin'],
26
+ inputSchema: {
27
+ type: 'object',
28
+ properties: {
29
+ status: {
30
+ type: 'string',
31
+ enum: ['complete', 'error', 'cancelled', 'in_progress', 'waiting', 'all'],
32
+ description: 'Filter by execution status',
33
+ default: 'all'
34
+ },
35
+ flow_name: {
36
+ type: 'string',
37
+ description: 'Filter by flow name (partial match)'
38
+ },
39
+ source_table: {
40
+ type: 'string',
41
+ description: 'Filter by source table that triggered the flow (e.g., incident, change_request)'
42
+ },
43
+ source_record: {
44
+ type: 'string',
45
+ description: 'Filter by specific source record sys_id'
46
+ },
47
+ trigger_type: {
48
+ type: 'string',
49
+ enum: ['record', 'scheduled', 'application', 'inbound_email', 'rest', 'all'],
50
+ description: 'Filter by trigger type',
51
+ default: 'all'
52
+ },
53
+ limit: {
54
+ type: 'number',
55
+ description: 'Maximum number of execution records to return',
56
+ default: 50,
57
+ minimum: 1,
58
+ maximum: 500
59
+ },
60
+ since: {
61
+ type: 'string',
62
+ description: 'Get executions since this timestamp (ISO 8601 or relative like "1h", "30m", "7d")'
63
+ },
64
+ errors_only: {
65
+ type: 'boolean',
66
+ description: 'Only show failed executions with errors',
67
+ default: false
68
+ },
69
+ include_logs: {
70
+ type: 'boolean',
71
+ description: 'Include detailed execution logs (can be verbose)',
72
+ default: false
73
+ }
74
+ }
75
+ }
76
+ };
77
+ async function execute(args, context) {
78
+ var status = args.status || 'all';
79
+ var flow_name = args.flow_name;
80
+ var source_table = args.source_table;
81
+ var source_record = args.source_record;
82
+ var trigger_type = args.trigger_type || 'all';
83
+ var limit = args.limit || 50;
84
+ var since = args.since;
85
+ var errors_only = args.errors_only || false;
86
+ var include_logs = args.include_logs || false;
87
+ try {
88
+ var client = await (0, auth_js_1.getAuthenticatedClient)(context);
89
+ // Build query for sys_flow_context
90
+ var queryParts = [];
91
+ // Status filter
92
+ if (status !== 'all') {
93
+ queryParts.push('state=' + status);
94
+ }
95
+ // Errors only filter
96
+ if (errors_only) {
97
+ queryParts.push('state=error');
98
+ }
99
+ // Source table filter
100
+ if (source_table) {
101
+ queryParts.push('source_table=' + source_table);
102
+ }
103
+ // Source record filter
104
+ if (source_record) {
105
+ queryParts.push('source_record=' + source_record);
106
+ }
107
+ // Trigger type filter
108
+ if (trigger_type !== 'all') {
109
+ queryParts.push('trigger_type=' + trigger_type);
110
+ }
111
+ // Time range filter
112
+ if (since) {
113
+ var sinceTimestamp = parseRelativeTime(since);
114
+ queryParts.push('started>' + sinceTimestamp);
115
+ }
116
+ var query = queryParts.join('^');
117
+ // Get flow executions from sys_flow_context
118
+ var response = await client.get('/api/now/table/sys_flow_context', {
119
+ params: {
120
+ sysparm_query: query + '^ORDERBYDESCstarted',
121
+ sysparm_limit: limit,
122
+ sysparm_fields: 'sys_id,flow,state,started,ended,error_message,trigger_type,source_table,source_record,run_count,sys_created_by',
123
+ sysparm_display_value: 'all'
124
+ }
125
+ });
126
+ // Filter by flow name if specified (need to do client-side since it's a reference field)
127
+ var executions = response.data.result;
128
+ if (flow_name) {
129
+ executions = executions.filter(function (exec) {
130
+ var flowDisplayValue = exec.flow && exec.flow.display_value ? exec.flow.display_value : '';
131
+ return flowDisplayValue.toLowerCase().indexOf(flow_name.toLowerCase()) !== -1;
132
+ });
133
+ }
134
+ // Map to clean format
135
+ var logs = executions.map(function (exec) {
136
+ var startTime = exec.started && exec.started.display_value ? new Date(exec.started.display_value) : null;
137
+ var endTime = exec.ended && exec.ended.display_value ? new Date(exec.ended.display_value) : null;
138
+ var duration = null;
139
+ if (startTime && endTime) {
140
+ duration = Math.round((endTime.getTime() - startTime.getTime()) / 1000);
141
+ }
142
+ return {
143
+ sys_id: exec.sys_id,
144
+ flow_name: exec.flow && exec.flow.display_value ? exec.flow.display_value : 'Unknown',
145
+ flow_sys_id: exec.flow && exec.flow.value ? exec.flow.value : null,
146
+ state: exec.state && exec.state.display_value ? exec.state.display_value : exec.state,
147
+ started: exec.started && exec.started.display_value ? exec.started.display_value : null,
148
+ ended: exec.ended && exec.ended.display_value ? exec.ended.display_value : null,
149
+ duration_seconds: duration,
150
+ trigger_type: exec.trigger_type && exec.trigger_type.display_value ? exec.trigger_type.display_value : exec.trigger_type,
151
+ source_table: exec.source_table,
152
+ source_record: exec.source_record && exec.source_record.value ? exec.source_record.value : exec.source_record,
153
+ run_count: exec.run_count,
154
+ created_by: exec.sys_created_by,
155
+ error_message: exec.error_message || null
156
+ };
157
+ });
158
+ // Optionally fetch detailed logs for each execution
159
+ if (include_logs && logs.length > 0 && logs.length <= 10) {
160
+ for (var i = 0; i < logs.length; i++) {
161
+ var logResponse = await client.get('/api/now/table/sys_flow_log', {
162
+ params: {
163
+ sysparm_query: 'context=' + logs[i].sys_id + '^ORDERBYsys_created_on',
164
+ sysparm_limit: 50,
165
+ sysparm_fields: 'sys_created_on,level,message,step'
166
+ }
167
+ });
168
+ logs[i].execution_logs = logResponse.data.result.map(function (log) {
169
+ return {
170
+ timestamp: log.sys_created_on,
171
+ level: log.level,
172
+ message: log.message,
173
+ step: log.step
174
+ };
175
+ });
176
+ }
177
+ }
178
+ // Calculate statistics
179
+ var stats = {
180
+ total: logs.length,
181
+ complete: 0,
182
+ error: 0,
183
+ cancelled: 0,
184
+ in_progress: 0,
185
+ waiting: 0,
186
+ avg_duration_seconds: 0
187
+ };
188
+ var totalDuration = 0;
189
+ var durationCount = 0;
190
+ logs.forEach(function (log) {
191
+ var state = (log.state || '').toLowerCase();
192
+ if (state === 'complete')
193
+ stats.complete++;
194
+ else if (state === 'error')
195
+ stats.error++;
196
+ else if (state === 'cancelled')
197
+ stats.cancelled++;
198
+ else if (state === 'in_progress' || state === 'in progress')
199
+ stats.in_progress++;
200
+ else if (state === 'waiting')
201
+ stats.waiting++;
202
+ if (log.duration_seconds !== null) {
203
+ totalDuration += log.duration_seconds;
204
+ durationCount++;
205
+ }
206
+ });
207
+ if (durationCount > 0) {
208
+ stats.avg_duration_seconds = Math.round(totalDuration / durationCount);
209
+ }
210
+ // Group by flow name
211
+ var byFlow = {};
212
+ logs.forEach(function (log) {
213
+ var flowName = log.flow_name || 'Unknown';
214
+ if (!byFlow[flowName]) {
215
+ byFlow[flowName] = { total: 0, errors: 0 };
216
+ }
217
+ byFlow[flowName].total++;
218
+ if ((log.state || '').toLowerCase() === 'error') {
219
+ byFlow[flowName].errors++;
220
+ }
221
+ });
222
+ // Get error summary
223
+ var errorSummary = [];
224
+ logs.forEach(function (log) {
225
+ if (log.error_message) {
226
+ errorSummary.push({
227
+ flow_name: log.flow_name,
228
+ error: log.error_message,
229
+ timestamp: log.started,
230
+ sys_id: log.sys_id
231
+ });
232
+ }
233
+ });
234
+ return (0, error_handler_js_1.createSuccessResult)({
235
+ executions: logs,
236
+ count: logs.length,
237
+ statistics: stats,
238
+ by_flow: byFlow,
239
+ recent_errors: errorSummary.slice(0, 10),
240
+ filters: {
241
+ status: status,
242
+ flow_name: flow_name,
243
+ source_table: source_table,
244
+ trigger_type: trigger_type,
245
+ since: since,
246
+ errors_only: errors_only
247
+ }
248
+ });
249
+ }
250
+ catch (error) {
251
+ return (0, error_handler_js_1.createErrorResult)(error.message);
252
+ }
253
+ }
254
+ function parseRelativeTime(relative) {
255
+ var now = new Date();
256
+ var match = relative.match(/^(\d+)([mhd])$/);
257
+ if (!match) {
258
+ // Assume it's an absolute timestamp
259
+ return relative;
260
+ }
261
+ var value = parseInt(match[1]);
262
+ var unit = match[2];
263
+ var milliseconds = 0;
264
+ switch (unit) {
265
+ case 'm':
266
+ milliseconds = value * 60 * 1000;
267
+ break;
268
+ case 'h':
269
+ milliseconds = value * 60 * 60 * 1000;
270
+ break;
271
+ case 'd':
272
+ milliseconds = value * 24 * 60 * 60 * 1000;
273
+ break;
274
+ }
275
+ var sinceDate = new Date(now.getTime() - milliseconds);
276
+ return sinceDate.toISOString();
277
+ }
278
+ exports.version = '1.0.0';
279
+ exports.author = 'Snow-Flow Team';
280
+ //# sourceMappingURL=snow_get_flow_execution_logs.js.map