snow-flow 3.6.24 → 4.0.0-final-claude
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/.env.example +89 -0
- package/README.md +506 -364
- 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 +31 -0
- package/dist/config/llm-config-loader.js +80 -0
- package/dist/dynamic-version.js +1 -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/bridge.d.ts +10 -0
- package/dist/mcp/bridge.js +31 -0
- package/dist/mcp/servicenow-knowledge-catalog-mcp.js +46 -6
- package/dist/session/store.d.ts +47 -0
- package/dist/session/store.js +74 -0
- package/package.json +8 -3
- package/snowflow.config.json +15 -0
- package/website/css/style.css +645 -6
- package/website/index.html +250 -18
- package/website/tools.js +261 -475
package/.env.example
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Closed-source
|
|
2
|
+
OPENAI_API_KEY=
|
|
3
|
+
GOOGLE_API_KEY=
|
|
4
|
+
|
|
5
|
+
# Gateways / OSS
|
|
6
|
+
OPENROUTER_API_KEY=
|
|
7
|
+
OPENAI_COMPAT_API_KEY= # voor xAI Grok en DeepSeek (OpenAI-compatible)
|
|
8
|
+
|
|
9
|
+
# ServiceNow Configuration
|
|
10
|
+
# ===========================================
|
|
11
|
+
|
|
12
|
+
# ServiceNow Instance URL (without https://)
|
|
13
|
+
# Example: dev12345.service-now.com
|
|
14
|
+
SNOW_INSTANCE=your-instance.service-now.com
|
|
15
|
+
|
|
16
|
+
# OAuth Client ID from ServiceNow Application Registry
|
|
17
|
+
SNOW_CLIENT_ID=your-oauth-client-id
|
|
18
|
+
|
|
19
|
+
# OAuth Client Secret from ServiceNow Application Registry
|
|
20
|
+
SNOW_CLIENT_SECRET=your-oauth-client-secret
|
|
21
|
+
|
|
22
|
+
# ===========================================
|
|
23
|
+
# Snow-Flow Configuration
|
|
24
|
+
# ===========================================
|
|
25
|
+
|
|
26
|
+
# Enable debug logging (true/false)
|
|
27
|
+
SNOW_FLOW_DEBUG=true
|
|
28
|
+
|
|
29
|
+
# MAXIMUM DEBUG LEVELS
|
|
30
|
+
DEBUG=* # Debug ALLES
|
|
31
|
+
NODE_ENV=development # Development mode voor extra debug info
|
|
32
|
+
LOG_LEVEL=trace # Trace is nog hoger dan debug
|
|
33
|
+
VERBOSE=true # Extra verbose output
|
|
34
|
+
MCP_DEBUG=true # MCP specific debugging
|
|
35
|
+
MCP_LOG_LEVEL=trace # MCP trace level logging
|
|
36
|
+
SNOW_FLOW_TRACE=true # Snow-Flow trace logging
|
|
37
|
+
CLAUDE_CODE_DEBUG=true # Claude Code debug mode
|
|
38
|
+
HTTP_TRACE=true # HTTP request/response tracing
|
|
39
|
+
|
|
40
|
+
# Default coordination strategy
|
|
41
|
+
SNOW_FLOW_STRATEGY=development
|
|
42
|
+
|
|
43
|
+
# Maximum number of agents
|
|
44
|
+
SNOW_FLOW_MAX_AGENTS=5
|
|
45
|
+
|
|
46
|
+
# ===========================================
|
|
47
|
+
# Claude Code API Integration (30 minutes)
|
|
48
|
+
# ===========================================
|
|
49
|
+
# API timeout for Claude Code integration - 30 minutes
|
|
50
|
+
# This ensures Snow-Flow works smoothly with Claude Code's extended operation timeouts
|
|
51
|
+
API_TIMEOUT_MS=1800000
|
|
52
|
+
|
|
53
|
+
# ===========================================
|
|
54
|
+
# Timeout Configuration (v3.0.1+)
|
|
55
|
+
# ===========================================
|
|
56
|
+
# IMPORTANT: Snow-Flow has NO TIMEOUTS by default for maximum reliability.
|
|
57
|
+
# Operations run until completion. Only set timeouts if you specifically need them.
|
|
58
|
+
# All timeout values below are COMMENTED OUT - uncomment only what you need.
|
|
59
|
+
|
|
60
|
+
# Memory Operations (TodoWrite, etc.)
|
|
61
|
+
# MCP_MEMORY_TIMEOUT=30000 # 30 seconds
|
|
62
|
+
# MCP_MEMORY_TIMEOUT=60000 # 1 minute
|
|
63
|
+
# MCP_MEMORY_TIMEOUT=120000 # 2 minutes
|
|
64
|
+
|
|
65
|
+
# ServiceNow API Operations
|
|
66
|
+
# SNOW_API_TIMEOUT=60000 # 1 minute - quick operations
|
|
67
|
+
# SNOW_API_TIMEOUT=180000 # 3 minutes - standard operations
|
|
68
|
+
# SNOW_API_TIMEOUT=300000 # 5 minutes - complex queries
|
|
69
|
+
|
|
70
|
+
# Deployment Operations
|
|
71
|
+
# SNOW_DEPLOYMENT_TIMEOUT=300000 # 5 minutes - simple deployments
|
|
72
|
+
# SNOW_DEPLOYMENT_TIMEOUT=600000 # 10 minutes - complex widgets
|
|
73
|
+
|
|
74
|
+
# MCP transport timeout (should be higher than SNOW_DEPLOYMENT_TIMEOUT if both set)
|
|
75
|
+
# MCP_DEPLOYMENT_TIMEOUT=360000 # 6 minutes
|
|
76
|
+
# MCP_DEPLOYMENT_TIMEOUT=720000 # 12 minutes
|
|
77
|
+
|
|
78
|
+
# ===========================================
|
|
79
|
+
# Response Size Limits (v3.4.34+)
|
|
80
|
+
# ===========================================
|
|
81
|
+
# Maximum MCP response size to prevent timeouts
|
|
82
|
+
# Default: 500KB (sufficient for most widgets/flows)
|
|
83
|
+
# MCP_MAX_RESPONSE_SIZE=500000 # 500KB default (recommended)
|
|
84
|
+
# MCP_MAX_RESPONSE_SIZE=1000000 # 1MB for larger artifacts
|
|
85
|
+
# MCP_MAX_RESPONSE_SIZE=2000000 # 2MB for very large responses
|
|
86
|
+
|
|
87
|
+
# Maximum array items in responses
|
|
88
|
+
# MCP_MAX_ARRAY_ITEMS=500 # 500 items default
|
|
89
|
+
# MCP_MAX_ARRAY_ITEMS=1000 # 1000 for large datasets
|