snow-flow 4.1.2 → 4.2.1
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/README.md +186 -555
- package/cloudbuild-npm.yaml +132 -0
- package/cloudbuild-website.yaml +92 -0
- package/cloudbuild.yaml +141 -0
- package/dist/agent/interactive.d.ts +11 -0
- package/dist/agent/interactive.js +190 -0
- package/dist/agent/session.d.ts +12 -0
- package/dist/agent/session.js +106 -0
- package/dist/cli/auth.d.ts +3 -0
- package/dist/cli/auth.js +59 -0
- package/dist/cli/session.d.ts +3 -0
- package/dist/cli/session.js +46 -0
- package/dist/cli.js +81 -0
- package/dist/config/llm-config-loader.d.ts +45 -0
- package/dist/config/llm-config-loader.js +49 -0
- package/dist/index.js +1 -3
- package/dist/intelligence/performance-recommendations-engine.js +0 -1
- package/dist/llm/keys.d.ts +5 -0
- package/dist/llm/keys.js +29 -0
- package/dist/llm/providers.d.ts +11 -0
- package/dist/llm/providers.js +77 -0
- package/dist/mcp/advanced/servicenow-advanced-features-mcp.js +12 -12
- package/dist/mcp/bridge.d.ts +10 -0
- package/dist/mcp/bridge.js +31 -0
- package/dist/mcp/servicenow-development-assistant-mcp.js +1 -1
- package/dist/mcp/servicenow-itam-mcp.d.ts +29 -0
- package/dist/mcp/servicenow-itam-mcp.js +537 -0
- package/dist/mcp/servicenow-local-development-mcp.d.ts +0 -2
- package/dist/mcp/servicenow-local-development-mcp.js +0 -43
- package/dist/mcp/servicenow-machine-learning-mcp.js +2 -2
- package/dist/mcp/servicenow-notifications-mcp.d.ts +24 -0
- package/dist/mcp/servicenow-notifications-mcp.js +327 -0
- package/dist/mcp/servicenow-reporting-analytics-mcp.js +1 -1
- package/dist/mcp/servicenow-secops-mcp.d.ts +28 -0
- package/dist/mcp/servicenow-secops-mcp.js +560 -0
- package/dist/mcp/shared/mcp-types.d.ts +37 -0
- package/dist/mcp/shared/mcp-types.js +7 -0
- package/dist/mcp/shared/response-limiter.js +1 -1
- package/dist/memory/hierarchical-memory-system.d.ts +42 -0
- package/dist/memory/hierarchical-memory-system.js +60 -0
- package/dist/memory/memory-system.d.ts +34 -0
- package/dist/memory/memory-system.js +36 -0
- package/dist/memory/snow-flow-memory-patterns.d.ts +47 -28
- package/dist/memory/snow-flow-memory-patterns.js +46 -25
- package/dist/session/store.d.ts +47 -0
- package/dist/session/store.js +74 -0
- package/dist/snow-flow-system.js +0 -1
- package/dist/testing/integration-test-suite.js +0 -1
- package/dist/utils/artifact-local-sync.js +17 -0
- package/dist/utils/artifact-sync/artifact-registry.js +11 -11
- package/dist/utils/chunking-manager.d.ts +39 -0
- package/dist/utils/chunking-manager.js +143 -0
- package/dist/utils/memory-pool.d.ts +56 -0
- package/dist/utils/memory-pool.js +103 -0
- package/dist/utils/smart-field-fetcher.js +11 -9
- package/package.json +3 -3
- package/website/Dockerfile +3 -2
- package/website/cloudbuild.yaml +4 -3
- package/website/complete-mcp-reference.html +1040 -0
- package/website/components/hero/Hero.html +9 -9
- package/website/components/hero/Hero.jsx +3 -3
- package/website/css/button-contrast-fixes.css +133 -0
- package/website/css/button-fixes.css +49 -0
- package/website/css/enterprise-section-update.css +38 -0
- package/website/css/font-standardization.css +54 -0
- package/website/css/footer-hero-styling.css +73 -0
- package/website/css/hero-compact-spacing.css +60 -0
- package/website/css/hero-contrast-fixes.css +195 -0
- package/website/css/hero-inspired-design.css +135 -0
- package/website/css/hero-size-optimization.css +146 -0
- package/website/css/hero-spacing-improvements.css +139 -0
- package/website/css/hero-stats-visibility.css +98 -0
- package/website/css/mobile-hero-fix.css +215 -0
- package/website/css/navbar-hero-styling.css +70 -0
- package/website/css/reference-text-contrast.css +101 -0
- package/website/css/scroll-overlap-nuclear-fix.css +127 -0
- package/website/css/section-layering-fix.css +85 -0
- package/website/css/style.css +37 -10
- package/website/css/title-layout-fix.css +58 -0
- package/website/css/ultimate-overlap-fix.css +101 -0
- package/website/css/website-hero-consistency.css +101 -0
- package/website/enterprise-features.html +147 -0
- package/website/index.html +264 -39
- package/website/js/animations.js +20 -23
- package/website/js/main.js +73 -7
- package/website/mcp-reference-link.html +16 -0
- package/website/mcp-servers.html +2 -2
- package/website/tools.js +125 -6
- package/website/what-is-snow-flow-section.html +144 -0
- package/assets/logo.txt +0 -8
- package/assets/snow-flow-logo.svg +0 -51
- package/src/cli.ts.backup-20250809-125529 +0 -4773
|
@@ -1826,7 +1826,7 @@ class ServiceNowAdvancedFeaturesMCP extends base_mcp_server_js_1.BaseMCPServer {
|
|
|
1826
1826
|
params: {
|
|
1827
1827
|
sysparm_query: `name=${tableName}^internal_type=reference`,
|
|
1828
1828
|
sysparm_fields: 'element,column_label,reference,reference.name,reference.label,mandatory,active',
|
|
1829
|
-
sysparm_limit:
|
|
1829
|
+
sysparm_limit: 100000 // Remove artificial limit
|
|
1830
1830
|
}
|
|
1831
1831
|
});
|
|
1832
1832
|
for (const field of response.result) {
|
|
@@ -1872,7 +1872,7 @@ class ServiceNowAdvancedFeaturesMCP extends base_mcp_server_js_1.BaseMCPServer {
|
|
|
1872
1872
|
params: {
|
|
1873
1873
|
sysparm_query: `reference=${tableName}^internal_type=reference`,
|
|
1874
1874
|
sysparm_fields: 'name,element,column_label,mandatory,active',
|
|
1875
|
-
sysparm_limit:
|
|
1875
|
+
sysparm_limit: 100000 // Remove artificial limit
|
|
1876
1876
|
}
|
|
1877
1877
|
});
|
|
1878
1878
|
// Group by table
|
|
@@ -2335,7 +2335,7 @@ class ServiceNowAdvancedFeaturesMCP extends base_mcp_server_js_1.BaseMCPServer {
|
|
|
2335
2335
|
params: {
|
|
2336
2336
|
sysparm_query: `name=${tableName}^ORname=${tableName}.parent`,
|
|
2337
2337
|
sysparm_fields: 'element,column_label,internal_type,max_length,mandatory,unique,reference',
|
|
2338
|
-
sysparm_limit:
|
|
2338
|
+
sysparm_limit: 100000 // Remove artificial limit
|
|
2339
2339
|
}
|
|
2340
2340
|
});
|
|
2341
2341
|
const schema = {
|
|
@@ -2868,7 +2868,7 @@ class ServiceNowAdvancedFeaturesMCP extends base_mcp_server_js_1.BaseMCPServer {
|
|
|
2868
2868
|
params: {
|
|
2869
2869
|
sysparm_query: query,
|
|
2870
2870
|
sysparm_fields: 'element,column_label,internal_type,mandatory,max_length,read_only,display',
|
|
2871
|
-
sysparm_limit:
|
|
2871
|
+
sysparm_limit: 100000 // Remove artificial limit
|
|
2872
2872
|
}
|
|
2873
2873
|
});
|
|
2874
2874
|
return response.result || [];
|
|
@@ -3523,7 +3523,7 @@ class ServiceNowAdvancedFeaturesMCP extends base_mcp_server_js_1.BaseMCPServer {
|
|
|
3523
3523
|
params: {
|
|
3524
3524
|
sysparm_query: `name=${tableName}^active=true`,
|
|
3525
3525
|
sysparm_fields: 'element,column_label,internal_type,max_length,mandatory,read_only,reference,default_value,unique,primary',
|
|
3526
|
-
sysparm_limit:
|
|
3526
|
+
sysparm_limit: 100000 // Remove artificial limit
|
|
3527
3527
|
}
|
|
3528
3528
|
});
|
|
3529
3529
|
const fields = fieldsResponse.result.map((field) => ({
|
|
@@ -4553,7 +4553,7 @@ WHERE ${m.target_field} IS NULL;`).join('\n')}`;
|
|
|
4553
4553
|
params: {
|
|
4554
4554
|
sysparm_query: `name=${tableName}^active=true`,
|
|
4555
4555
|
sysparm_fields: 'element,column_label,internal_type,max_length,mandatory,read_only,reference,default_value,unique,primary,virtual,calculated,formula,depends_on,choice,dependent_on_field,spell_check',
|
|
4556
|
-
sysparm_limit:
|
|
4556
|
+
sysparm_limit: 100000 // Remove artificial limit
|
|
4557
4557
|
}
|
|
4558
4558
|
});
|
|
4559
4559
|
// Get record count and basic stats
|
|
@@ -4673,7 +4673,7 @@ WHERE ${m.target_field} IS NULL;`).join('\n')}`;
|
|
|
4673
4673
|
params: {
|
|
4674
4674
|
sysparm_query: `name=${tableName}^active=true`,
|
|
4675
4675
|
sysparm_fields: 'element,internal_type,mandatory,max_length,reference',
|
|
4676
|
-
sysparm_limit:
|
|
4676
|
+
sysparm_limit: 100000 // Remove artificial limit
|
|
4677
4677
|
}
|
|
4678
4678
|
});
|
|
4679
4679
|
const fields = schemaResponse.result;
|
|
@@ -10152,7 +10152,7 @@ function getIncidentsByUser(userSysId) {
|
|
|
10152
10152
|
params: {
|
|
10153
10153
|
sysparm_query: auditQuery,
|
|
10154
10154
|
sysparm_fields: 'tablename,fieldname,oldvalue,newvalue,sys_created_on,sys_created_by,documentkey',
|
|
10155
|
-
sysparm_limit:
|
|
10155
|
+
sysparm_limit: 100000 // Remove artificial limit
|
|
10156
10156
|
}
|
|
10157
10157
|
});
|
|
10158
10158
|
if (auditResult.success && auditResult.result?.result) {
|
|
@@ -10201,7 +10201,7 @@ function getIncidentsByUser(userSysId) {
|
|
|
10201
10201
|
params: {
|
|
10202
10202
|
sysparm_query: workflowQuery,
|
|
10203
10203
|
sysparm_fields: 'context,workflow_version,state,started,sys_created_on,sys_created_by',
|
|
10204
|
-
sysparm_limit:
|
|
10204
|
+
sysparm_limit: 100000 // Remove artificial 10k limit0 // Remove artificial 2k limit
|
|
10205
10205
|
}
|
|
10206
10206
|
});
|
|
10207
10207
|
if (workflowResult.success && workflowResult.result?.result) {
|
|
@@ -11109,7 +11109,7 @@ function getIncidentsByUser(userSysId) {
|
|
|
11109
11109
|
params: {
|
|
11110
11110
|
sysparm_query: query,
|
|
11111
11111
|
sysparm_fields: 'sys_id,name,description,table,condition,active,category,workflow_version,published',
|
|
11112
|
-
sysparm_limit:
|
|
11112
|
+
sysparm_limit: 100000 // Remove artificial limit
|
|
11113
11113
|
}
|
|
11114
11114
|
});
|
|
11115
11115
|
if (workflowResult.success && workflowResult.result?.result) {
|
|
@@ -11227,7 +11227,7 @@ function getIncidentsByUser(userSysId) {
|
|
|
11227
11227
|
params: {
|
|
11228
11228
|
sysparm_query: executionQuery,
|
|
11229
11229
|
sysparm_fields: 'sys_id,workflow_version,context,state,started,ended,duration,priority,sys_created_on,sys_created_by',
|
|
11230
|
-
sysparm_limit:
|
|
11230
|
+
sysparm_limit: 100000 // Remove artificial limit0
|
|
11231
11231
|
}
|
|
11232
11232
|
});
|
|
11233
11233
|
if (executionsResult.success && executionsResult.result?.result) {
|
|
@@ -11248,7 +11248,7 @@ function getIncidentsByUser(userSysId) {
|
|
|
11248
11248
|
params: {
|
|
11249
11249
|
sysparm_query: executionQuery.replace('wf_executing', 'wf_history'),
|
|
11250
11250
|
sysparm_fields: 'sys_id,workflow_version,context,state,started,ended,duration,result',
|
|
11251
|
-
sysparm_limit:
|
|
11251
|
+
sysparm_limit: 100000 // Remove artificial limit
|
|
11252
11252
|
}
|
|
11253
11253
|
});
|
|
11254
11254
|
if (historyResult.success && historyResult.result?.result) {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Minimal MCP bridge placeholder. We will hook this into AI SDK tools in a next step.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.loadMCPTools = loadMCPTools;
|
|
5
|
+
async function loadMCPTools(start) {
|
|
6
|
+
// Prefer using AI SDK's experimental MCP client to yield ready-to-use Tool[]
|
|
7
|
+
try {
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
9
|
+
const { experimental_createMCPClient } = require('ai');
|
|
10
|
+
// Use SDK-provided stdio transport
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
12
|
+
const { StdioClientTransport } = require('@modelcontextprotocol/sdk/client/stdio');
|
|
13
|
+
const client = await experimental_createMCPClient({
|
|
14
|
+
name: 'snow-flow',
|
|
15
|
+
transport: new StdioClientTransport({
|
|
16
|
+
command: start.cmd,
|
|
17
|
+
args: start.args ?? [],
|
|
18
|
+
env: start.env ?? {},
|
|
19
|
+
}),
|
|
20
|
+
});
|
|
21
|
+
const tools = await client.tools();
|
|
22
|
+
return { tools, close: client.close };
|
|
23
|
+
}
|
|
24
|
+
catch (err) {
|
|
25
|
+
// Fallback: no AI SDK available, return empty tools and noop close but with a hint.
|
|
26
|
+
const hint = 'AI SDK MCP bridge not available. Install "ai" or verify version to enable MCP tools.';
|
|
27
|
+
console.warn(`[snow-flow] ${hint}`);
|
|
28
|
+
return { tools: [], close: async () => { } };
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=bridge.js.map
|
|
@@ -2131,7 +2131,7 @@ class ServiceNowDevelopmentAssistantMCP {
|
|
|
2131
2131
|
// Estimate token count (rough estimate: 1 token ≈ 4 characters)
|
|
2132
2132
|
const jsonString = JSON.stringify(formattedArtifact, null, 2);
|
|
2133
2133
|
const estimatedTokens = Math.ceil(jsonString.length / 4);
|
|
2134
|
-
const maxTokens =
|
|
2134
|
+
const maxTokens = 200000; // Claude's actual context window limit
|
|
2135
2135
|
let responseText;
|
|
2136
2136
|
if (estimatedTokens > maxTokens) {
|
|
2137
2137
|
// Response too large - return essential fields only and suggest specific field access
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* ServiceNow IT Asset Management (ITAM) MCP Server
|
|
4
|
+
*
|
|
5
|
+
* Provides comprehensive IT Asset Management capabilities including:
|
|
6
|
+
* - Asset lifecycle management (procurement → deployment → retirement)
|
|
7
|
+
* - License management and compliance
|
|
8
|
+
* - Asset normalization and duplicate detection
|
|
9
|
+
* - Hardware inventory and tracking
|
|
10
|
+
* - Asset financial management
|
|
11
|
+
*
|
|
12
|
+
* High-value enterprise ServiceNow module previously missing from Snow-Flow
|
|
13
|
+
*/
|
|
14
|
+
import { EnhancedBaseMCPServer } from './shared/enhanced-base-mcp-server.js';
|
|
15
|
+
export declare class ServiceNowITAMMCP extends EnhancedBaseMCPServer {
|
|
16
|
+
constructor();
|
|
17
|
+
private setupHandlers;
|
|
18
|
+
private createAsset;
|
|
19
|
+
private manageSoftwareLicense;
|
|
20
|
+
private trackAssetLifecycle;
|
|
21
|
+
private generateComplianceReport;
|
|
22
|
+
private generateLicenseUsageReport;
|
|
23
|
+
private generateAssetInventoryReport;
|
|
24
|
+
private generateWarrantyReport;
|
|
25
|
+
private generateCostAnalysisReport;
|
|
26
|
+
private optimizeLicenses;
|
|
27
|
+
private discoverAssets;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=servicenow-itam-mcp.d.ts.map
|