snow-flow 2.0.9 ā 2.0.11
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/cli.js
CHANGED
|
@@ -2186,7 +2186,7 @@ async function createDirectoryStructure(targetDir, force = false) {
|
|
|
2186
2186
|
const directories = [
|
|
2187
2187
|
'.claude', '.claude/commands', '.claude/commands/sparc', '.claude/configs',
|
|
2188
2188
|
'.swarm', '.swarm/sessions', '.swarm/agents',
|
|
2189
|
-
'.snow-flow', '.snow-flow/queen', '.snow-flow/memory', '.snow-flow/queen-test', '.snow-flow/queen-advanced',
|
|
2189
|
+
'.snow-flow', '.snow-flow/queen', '.snow-flow/memory', '.snow-flow/data', '.snow-flow/queen-test', '.snow-flow/queen-advanced',
|
|
2190
2190
|
'memory', 'memory/agents', 'memory/sessions',
|
|
2191
2191
|
'coordination', 'coordination/memory_bank', 'coordination/subtasks',
|
|
2192
2192
|
'servicenow', 'servicenow/widgets', 'servicenow/workflows', 'servicenow/scripts',
|
|
@@ -1709,7 +1709,7 @@ ${args.widgets && args.widgets.length > 0 ? args.widgets.map((w, i) => `
|
|
|
1709
1709
|
? (usedFallback
|
|
1710
1710
|
? `https://${credentials?.instance}/sys_script.do?sys_id=${result.data.sys_id}`
|
|
1711
1711
|
: `https://${credentials?.instance}/nav_to.do?uri=sys_hub_flow.do?sys_id=${result.data.sys_id}`)
|
|
1712
|
-
: `https://${credentials?.instance}
|
|
1712
|
+
: `https://${credentials?.instance}/flow-designer.do`;
|
|
1713
1713
|
const artifactSummary = deployedArtifacts.length > 0
|
|
1714
1714
|
? `\nš **Linked Artifacts Deployed:**\n${deployedArtifacts.map((a, i) => `${i + 1}. ${a.type}: ${a.name} (${a.sys_id})`).join('\n')}\n`
|
|
1715
1715
|
: '';
|
|
@@ -1778,7 +1778,7 @@ Snow-Flow automatically detected Flow Designer issues and created a functionally
|
|
|
1778
1778
|
${artifactSummary}${activitySummary}
|
|
1779
1779
|
š **Direct Links:**
|
|
1780
1780
|
- Flow Designer: ${flowUrl}
|
|
1781
|
-
- Flow Designer Home: https://${credentials?.instance}
|
|
1781
|
+
- Flow Designer Home: https://${credentials?.instance}/flow-designer.do?sysparm_nostack=true
|
|
1782
1782
|
|
|
1783
1783
|
š **Flow Components Created:**
|
|
1784
1784
|
1. ā
Trigger configured (${args.trigger_type})
|
|
@@ -2037,7 +2037,7 @@ ${deploymentResult.warnings.map(w => `- ${w}`).join('\n')}
|
|
|
2037
2037
|
|
|
2038
2038
|
š **Direct Links:**
|
|
2039
2039
|
- Application Record: ${appUrl}
|
|
2040
|
-
- Studio: https://${credentials?.instance}/nav_to.do?uri
|
|
2040
|
+
- Studio: https://${credentials?.instance}/nav_to.do?uri=studio.do
|
|
2041
2041
|
${deploymentResult.scope === 'global' ? '- Global Applications: https://' + credentials?.instance + '/nav_to.do?uri=sys_app_list.do?sysparm_query=scope=global' : ''}
|
|
2042
2042
|
|
|
2043
2043
|
š **Next Steps:**
|
|
@@ -6480,7 +6480,7 @@ ${updateSetSession ? '- Changes are automatically tracked in your active Update
|
|
|
6480
6480
|
switch (type) {
|
|
6481
6481
|
case 'widget':
|
|
6482
6482
|
return `1. **Open Service Portal Widgets**
|
|
6483
|
-
š URL: https://${instance}/nav_to.do?uri=%
|
|
6483
|
+
š URL: https://${instance}/nav_to.do?uri=%2Fsp_widget.do%3Fsys_id%3D-1%26sysparm_stack%3Dsp_widget_list.do
|
|
6484
6484
|
|
|
6485
6485
|
2. **Click "New" Button** (Top right of the page)
|
|
6486
6486
|
šø Look for: Blue "New" button in the header
|
|
@@ -6517,10 +6517,10 @@ ${updateSetSession ? '- Changes are automatically tracked in your active Update
|
|
|
6517
6517
|
- Note the sys_id from the URL for tracking
|
|
6518
6518
|
|
|
6519
6519
|
6. **Test Your Widget**
|
|
6520
|
-
š Test Page URL: https://${instance}
|
|
6520
|
+
š Test Page URL: https://${instance}/sp.do?id=widget_editor&sys_id=YOUR_WIDGET_SYS_ID
|
|
6521
6521
|
|
|
6522
6522
|
7. **Add to Portal Page**
|
|
6523
|
-
š Page Designer: https://${instance}/nav_to.do?uri=%
|
|
6523
|
+
š Page Designer: https://${instance}/nav_to.do?uri=%2Fsp_page.do`;
|
|
6524
6524
|
case 'flow':
|
|
6525
6525
|
return `1. **Open Flow Designer**
|
|
6526
6526
|
š URL: https://${instance}/nav_to.do?uri=%2Fflow_designer.do
|
|
@@ -42,7 +42,7 @@ class ServiceNowIntelligentMCP {
|
|
|
42
42
|
try {
|
|
43
43
|
// Initialize systems synchronously during server startup
|
|
44
44
|
this.memorySystem = new memory_system_js_1.MemorySystem({
|
|
45
|
-
dbPath: '
|
|
45
|
+
dbPath: './.snow-flow/data/intelligent-mcp.db',
|
|
46
46
|
cache: { enabled: true, maxSize: 100, ttl: 3600 },
|
|
47
47
|
ttl: { default: 3600, session: 7200, artifact: 86400, metric: 604800 }
|
|
48
48
|
});
|
|
@@ -57,7 +57,7 @@ class ServiceNowIntelligentMCP {
|
|
|
57
57
|
catch (error) {
|
|
58
58
|
this.logger.error('Failed to initialize systems:', error);
|
|
59
59
|
// Initialize minimal fallback systems
|
|
60
|
-
this.memorySystem = new memory_system_js_1.MemorySystem({ dbPath: '
|
|
60
|
+
this.memorySystem = new memory_system_js_1.MemorySystem({ dbPath: './.snow-flow/data/intelligent-mcp.db' });
|
|
61
61
|
await this.memorySystem.initialize();
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -1301,7 +1301,7 @@ snow_create_flow({
|
|
|
1301
1301
|
...flowResponse.data.result,
|
|
1302
1302
|
sys_id: flowSysId,
|
|
1303
1303
|
url: `https://${instance}/nav_to.do?uri=sys_hub_flow.do?sys_id=${flowSysId}`,
|
|
1304
|
-
flow_designer_url: `https://${instance}
|
|
1304
|
+
flow_designer_url: `https://${instance}/flow-designer.do?sysparm_nostack=true&sysparm_sys_id=${flowSysId}`,
|
|
1305
1305
|
components: {
|
|
1306
1306
|
flow_record: components.flowRecord.sys_id,
|
|
1307
1307
|
trigger_instance: components.triggerInstance.sys_id,
|
|
@@ -1526,7 +1526,7 @@ snow_create_flow({
|
|
|
1526
1526
|
...flowRecord,
|
|
1527
1527
|
// Enhanced response format with proper URLs
|
|
1528
1528
|
url: `https://${instance}/nav_to.do?uri=sys_hub_flow.do?sys_id=${flowRecord.sys_id}`,
|
|
1529
|
-
flow_designer_url: `https://${instance}
|
|
1529
|
+
flow_designer_url: `https://${instance}/flow-designer.do?sysparm_nostack=true&sysparm_sys_id=${flowRecord.sys_id}`,
|
|
1530
1530
|
type: flowRecord.type || flow.type || 'flow', // Ensure type is included
|
|
1531
1531
|
activities_created: flowDefinition.activities.length,
|
|
1532
1532
|
variables_created: (flow.inputs?.length || 0) + (flow.outputs?.length || 0),
|
|
@@ -1646,7 +1646,7 @@ snow_create_flow({
|
|
|
1646
1646
|
...subflowRecord,
|
|
1647
1647
|
// Enhanced response format with proper URLs
|
|
1648
1648
|
url: `https://${instance}/nav_to.do?uri=sys_hub_flow.do?sys_id=${subflowRecord.sys_id}`,
|
|
1649
|
-
flow_designer_url: `https://${instance}
|
|
1649
|
+
flow_designer_url: `https://${instance}/flow-designer.do?sysparm_nostack=true&sysparm_sys_id=${subflowRecord.sys_id}`,
|
|
1650
1650
|
type: 'subflow', // Ensure correct type
|
|
1651
1651
|
activities_created: subflow.activities?.length || 0,
|
|
1652
1652
|
inputs_defined: subflow.inputs?.length || 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snow-flow",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Snow-Flow: ServiceNow Advanced Intelligence Platform - 100+ real MCP tools with AI-powered swarm orchestration. Zero Mock Data, 100% Real API Integration. Natural language interface for ServiceNow operations.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|