snow-flow 1.3.5 → 1.3.7

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.
@@ -30,40 +30,40 @@ const ConfigSchema = zod_1.z.object({
30
30
  coordinationInterval: zod_1.z.number().min(1000).default(5000),
31
31
  decisionThreshold: zod_1.z.number().min(0).max(1).default(0.7),
32
32
  retryAttempts: zod_1.z.number().min(1).max(10).default(3),
33
- }),
33
+ }).default({}),
34
34
  worker: zod_1.z.object({
35
35
  heartbeatInterval: zod_1.z.number().min(1000).default(10000),
36
36
  taskTimeout: zod_1.z.number().min(60000).default(300000), // 5 minutes
37
37
  maxMemoryUsage: zod_1.z.number().min(100).default(500), // MB
38
38
  autoShutdownIdle: zod_1.z.number().min(60000).default(600000), // 10 minutes
39
- }),
39
+ }).default({}),
40
40
  specializations: zod_1.z.object({
41
41
  widgetCreator: zod_1.z.object({
42
42
  enabled: zod_1.z.boolean().default(true),
43
43
  priority: zod_1.z.number().min(1).max(10).default(8),
44
44
  capabilities: zod_1.z.array(zod_1.z.string()).default(['html', 'css', 'javascript', 'servicenow-api']),
45
- }),
45
+ }).default({}),
46
46
  flowBuilder: zod_1.z.object({
47
47
  enabled: zod_1.z.boolean().default(true),
48
48
  priority: zod_1.z.number().min(1).max(10).default(8),
49
49
  capabilities: zod_1.z.array(zod_1.z.string()).default(['flow-designer', 'triggers', 'actions', 'approvals']),
50
- }),
50
+ }).default({}),
51
51
  scriptWriter: zod_1.z.object({
52
52
  enabled: zod_1.z.boolean().default(true),
53
53
  priority: zod_1.z.number().min(1).max(10).default(7),
54
54
  capabilities: zod_1.z.array(zod_1.z.string()).default(['business-rules', 'script-includes', 'client-scripts']),
55
- }),
55
+ }).default({}),
56
56
  securityAgent: zod_1.z.object({
57
57
  enabled: zod_1.z.boolean().default(true),
58
58
  priority: zod_1.z.number().min(1).max(10).default(9),
59
59
  capabilities: zod_1.z.array(zod_1.z.string()).default(['acl', 'security-scan', 'compliance']),
60
- }),
60
+ }).default({}),
61
61
  testAgent: zod_1.z.object({
62
62
  enabled: zod_1.z.boolean().default(true),
63
63
  priority: zod_1.z.number().min(1).max(10).default(6),
64
64
  capabilities: zod_1.z.array(zod_1.z.string()).default(['unit-test', 'integration-test', 'performance-test']),
65
- }),
66
- }),
65
+ }).default({}),
66
+ }).default({}),
67
67
  }).default({}),
68
68
  // Memory system configuration
69
69
  memory: zod_1.z.object({
@@ -71,23 +71,23 @@ const ConfigSchema = zod_1.z.object({
71
71
  schema: zod_1.z.object({
72
72
  version: zod_1.z.string().default('1.0.0'),
73
73
  autoMigrate: zod_1.z.boolean().default(true),
74
- }),
74
+ }).default({}),
75
75
  cache: zod_1.z.object({
76
76
  enabled: zod_1.z.boolean().default(true),
77
77
  maxSize: zod_1.z.number().min(10).default(100), // MB
78
78
  ttl: zod_1.z.number().min(60000).default(3600000), // 1 hour
79
- }),
79
+ }).default({}),
80
80
  ttl: zod_1.z.object({
81
81
  default: zod_1.z.number().min(3600000).default(86400000), // 24 hours
82
82
  session: zod_1.z.number().min(3600000).default(86400000), // 24 hours
83
83
  artifact: zod_1.z.number().min(86400000).default(604800000), // 7 days
84
84
  metric: zod_1.z.number().min(86400000).default(2592000000), // 30 days
85
- }),
85
+ }).default({}),
86
86
  cleanup: zod_1.z.object({
87
87
  enabled: zod_1.z.boolean().default(true),
88
88
  interval: zod_1.z.number().min(3600000).default(86400000), // 24 hours
89
89
  retentionDays: zod_1.z.number().min(7).default(30),
90
- }),
90
+ }).default({}),
91
91
  }).default({}),
92
92
  // MCP server configuration
93
93
  mcp: zod_1.z.object({
@@ -96,38 +96,38 @@ const ConfigSchema = zod_1.z.object({
96
96
  enabled: zod_1.z.boolean().default(true),
97
97
  port: zod_1.z.number().min(3000).max(65535).default(3001),
98
98
  host: zod_1.z.string().default('localhost'),
99
- }),
99
+ }).default({}),
100
100
  intelligent: zod_1.z.object({
101
101
  enabled: zod_1.z.boolean().default(true),
102
102
  port: zod_1.z.number().min(3000).max(65535).default(3002),
103
103
  host: zod_1.z.string().default('localhost'),
104
- }),
104
+ }).default({}),
105
105
  operations: zod_1.z.object({
106
106
  enabled: zod_1.z.boolean().default(true),
107
107
  port: zod_1.z.number().min(3000).max(65535).default(3003),
108
108
  host: zod_1.z.string().default('localhost'),
109
- }),
109
+ }).default({}),
110
110
  flowComposer: zod_1.z.object({
111
111
  enabled: zod_1.z.boolean().default(true),
112
112
  port: zod_1.z.number().min(3000).max(65535).default(3004),
113
113
  host: zod_1.z.string().default('localhost'),
114
- }),
114
+ }).default({}),
115
115
  platformDevelopment: zod_1.z.object({
116
116
  enabled: zod_1.z.boolean().default(true),
117
117
  port: zod_1.z.number().min(3000).max(65535).default(3005),
118
118
  host: zod_1.z.string().default('localhost'),
119
- }),
120
- }),
119
+ }).default({}),
120
+ }).default({}),
121
121
  transport: zod_1.z.object({
122
122
  type: zod_1.z.enum(['stdio', 'http', 'websocket']).default('stdio'),
123
123
  timeout: zod_1.z.number().min(5000).default(30000),
124
124
  retryAttempts: zod_1.z.number().min(1).max(10).default(3),
125
125
  retryDelay: zod_1.z.number().min(1000).default(5000),
126
- }),
126
+ }).default({}),
127
127
  authentication: zod_1.z.object({
128
128
  required: zod_1.z.boolean().default(true),
129
129
  tokenExpiry: zod_1.z.number().min(3600000).default(86400000), // 24 hours
130
- }),
130
+ }).default({}),
131
131
  }).default({}),
132
132
  // ServiceNow connection settings
133
133
  servicenow: zod_1.z.object({
@@ -143,17 +143,17 @@ const ConfigSchema = zod_1.z.object({
143
143
  maxRetries: zod_1.z.number().min(0).max(10).default(3),
144
144
  retryDelay: zod_1.z.number().min(1000).default(2000),
145
145
  backoffMultiplier: zod_1.z.number().min(1).max(5).default(2),
146
- }),
146
+ }).default({}),
147
147
  cache: zod_1.z.object({
148
148
  enabled: zod_1.z.boolean().default(true),
149
149
  ttl: zod_1.z.number().min(60000).default(300000), // 5 minutes
150
150
  maxSize: zod_1.z.number().min(10).default(50), // MB
151
- }),
151
+ }).default({}),
152
152
  oauth: zod_1.z.object({
153
153
  redirectHost: zod_1.z.string().default('localhost'),
154
154
  redirectPort: zod_1.z.number().min(3000).max(65535).default(3005),
155
155
  redirectPath: zod_1.z.string().default('/callback'),
156
- }),
156
+ }).default({}),
157
157
  }).default({}),
158
158
  // Monitoring configuration
159
159
  monitoring: zod_1.z.object({
@@ -162,7 +162,7 @@ const ConfigSchema = zod_1.z.object({
162
162
  sampleRate: zod_1.z.number().min(0).max(1).default(1),
163
163
  metricsRetention: zod_1.z.number().min(86400000).default(604800000), // 7 days
164
164
  aggregationInterval: zod_1.z.number().min(60000).default(300000), // 5 minutes
165
- }),
165
+ }).default({}),
166
166
  health: zod_1.z.object({
167
167
  enabled: zod_1.z.boolean().default(true),
168
168
  checkInterval: zod_1.z.number().min(30000).default(60000), // 1 minute
@@ -171,14 +171,14 @@ const ConfigSchema = zod_1.z.object({
171
171
  memoryUsage: zod_1.z.number().min(0).max(1).default(0.8), // 80%
172
172
  cpuUsage: zod_1.z.number().min(0).max(1).default(0.8), // 80%
173
173
  errorRate: zod_1.z.number().min(0).max(1).default(0.05), // 5%
174
- }),
175
- }),
174
+ }).default({}),
175
+ }).default({}),
176
176
  alerts: zod_1.z.object({
177
177
  enabled: zod_1.z.boolean().default(true),
178
178
  channels: zod_1.z.array(zod_1.z.enum(['console', 'file', 'webhook'])).default(['console']),
179
179
  webhookUrl: zod_1.z.string().url().optional(),
180
180
  severityThreshold: zod_1.z.enum(['info', 'warn', 'error']).default('warn'),
181
- }),
181
+ }).default({}),
182
182
  }).default({}),
183
183
  // Health check configuration
184
184
  health: zod_1.z.object({
@@ -187,12 +187,12 @@ const ConfigSchema = zod_1.z.object({
187
187
  mcp: zod_1.z.boolean().default(true),
188
188
  servicenow: zod_1.z.boolean().default(true),
189
189
  queen: zod_1.z.boolean().default(true),
190
- }),
190
+ }).default({}),
191
191
  thresholds: zod_1.z.object({
192
192
  responseTime: zod_1.z.number().min(100).default(5000), // ms
193
193
  memoryUsage: zod_1.z.number().min(100).default(1000), // MB
194
194
  queueSize: zod_1.z.number().min(10).default(100),
195
- }),
195
+ }).default({}),
196
196
  }).default({}),
197
197
  // Feature flags
198
198
  features: zod_1.z.object({
package/dist/version.js CHANGED
@@ -7,12 +7,45 @@ exports.VERSION_INFO = exports.VERSION = void 0;
7
7
  exports.getVersionString = getVersionString;
8
8
  exports.getLatestFeatures = getLatestFeatures;
9
9
  exports.isLatestVersion = isLatestVersion;
10
- exports.VERSION = '1.3.1';
10
+ exports.VERSION = '1.3.7';
11
11
  exports.VERSION_INFO = {
12
12
  version: exports.VERSION,
13
13
  name: 'Snow-Flow',
14
14
  description: 'ServiceNow Queen Agent - Hive-Mind Intelligence for ServiceNow Development',
15
15
  features: {
16
+ '1.3.7': [
17
+ '🚀 RELEASE VERSION: Combined all fixes from 1.3.2-1.3.6 into stable release',
18
+ '✅ ZOD VALIDATION: Completely fixed all configuration schema issues',
19
+ '🧠 HIERARCHICAL MEMORY: ServiceNow-specific memory patterns for agent coordination',
20
+ '📦 PRODUCTION READY: All version numbers aligned and ready for npm publish'
21
+ ],
22
+ '1.3.6': [
23
+ '🐛 ZOD FIX: Fixed nested object validation errors in configuration schema',
24
+ '🔧 NESTED DEFAULTS: Added .default({}) to all nested objects in ConfigSchema',
25
+ '✅ STARTUP FIX: Package now starts correctly without Zod validation errors',
26
+ '💾 BACKWARDS COMPATIBLE: All configuration objects have proper default values'
27
+ ],
28
+ '1.3.5': [
29
+ '🧠 HIERARCHICAL MEMORY: Enhanced memory system with ServiceNow-specific patterns',
30
+ '🤖 AGENT CAPABILITIES: 15+ specialized ServiceNow agent types defined',
31
+ '📊 PATTERN LEARNING: Success/failure pattern recognition for continuous improvement',
32
+ '🔗 RELATIONSHIP TRACKING: Graph-like connections between artifacts'
33
+ ],
34
+ '1.3.4': [
35
+ '🐛 ZOD FIX ATTEMPT 2: Added .default({}) to all top-level objects',
36
+ '🔧 CONFIG SCHEMA: Fixed "Required" errors for all config properties',
37
+ '⚠️ PARTIAL FIX: Resolved top-level validation but nested objects still failed'
38
+ ],
39
+ '1.3.3': [
40
+ '🐛 ZOD FIX ATTEMPT 1: Fixed parseInt() returning NaN for undefined env vars',
41
+ '🔧 DYNAMIC DEFAULTS: Removed dynamic parseInt() from schema defaults',
42
+ '✅ NAN CHECKS: Added validation in loadFromEnvironment() method',
43
+ '⚠️ PARTIAL FIX: Resolved NaN errors but uncovered nested object issues'
44
+ ],
45
+ '1.3.2': [
46
+ '🚨 BUG INTRODUCED: Zod validation errors preventing package startup',
47
+ '❌ ISSUE: parseInt() with undefined env vars causing NaN in defaults'
48
+ ],
16
49
  '1.3.1': [
17
50
  '🚨 HOTFIX: Fixed "memory MCP tool is not available" error',
18
51
  '🔧 CONFIG BUG FIX: BaseMCPServer now properly stores config parameter',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "ServiceNow Queen Agent - Hive-Mind Intelligence for ServiceNow Development inspired by claude-flow. Transform complex workflows into elegant one-command orchestration.",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",