snow-flow 3.6.25 → 4.0.0

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.
@@ -0,0 +1,37 @@
1
+ /**
2
+ * MCP Types
3
+ * Common types for MCP server implementations
4
+ */
5
+ export interface MCPServerConfig {
6
+ name: string;
7
+ description?: string;
8
+ version?: string;
9
+ }
10
+ export interface MCPTool {
11
+ name: string;
12
+ description: string;
13
+ inputSchema: any;
14
+ }
15
+ export interface MCPResponse<T = any> {
16
+ success: boolean;
17
+ data?: T;
18
+ error?: string;
19
+ message?: string;
20
+ }
21
+ export interface MCPRequest {
22
+ tool: string;
23
+ params: any;
24
+ }
25
+ export interface MCPLogger {
26
+ info(message: string, meta?: any): void;
27
+ warn(message: string, meta?: any): void;
28
+ error(message: string, meta?: any): void;
29
+ debug(message: string, meta?: any): void;
30
+ }
31
+ export interface MCPMemoryManager {
32
+ store(key: string, value: any): Promise<void>;
33
+ retrieve(key: string): Promise<any>;
34
+ delete(key: string): Promise<boolean>;
35
+ list(): Promise<string[]>;
36
+ }
37
+ //# sourceMappingURL=mcp-types.d.ts.map
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * MCP Types
4
+ * Common types for MCP server implementations
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=mcp-types.js.map
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Hierarchical Memory System
3
+ * Extended memory system with hierarchical organization
4
+ */
5
+ import { MemorySystem } from './memory-system';
6
+ export interface HierarchicalMemorySystem extends MemorySystem {
7
+ dbPath?: string;
8
+ namespace?: string;
9
+ storeInNamespace(namespace: string, key: string, value: any): Promise<void>;
10
+ retrieveFromNamespace(namespace: string, key: string): Promise<any>;
11
+ listNamespaces(): Promise<string[]>;
12
+ clearNamespace(namespace: string): Promise<void>;
13
+ }
14
+ export declare class DefaultHierarchicalMemorySystem implements HierarchicalMemorySystem {
15
+ private memory;
16
+ dbPath?: string;
17
+ namespace?: string;
18
+ constructor(dbPath?: string, namespace?: string);
19
+ private getNamespaceMap;
20
+ store(key: string, value: any): Promise<void>;
21
+ retrieve(key: string): Promise<any>;
22
+ get(key: string): Promise<any>;
23
+ delete(key: string): Promise<boolean>;
24
+ clear(): Promise<void>;
25
+ list(): Promise<string[]>;
26
+ exists(key: string): Promise<boolean>;
27
+ storeInNamespace(namespace: string, key: string, value: any): Promise<void>;
28
+ retrieveFromNamespace(namespace: string, key: string): Promise<any>;
29
+ listNamespaces(): Promise<string[]>;
30
+ clearNamespace(namespace: string): Promise<void>;
31
+ }
32
+ //# sourceMappingURL=hierarchical-memory-system.d.ts.map
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /**
3
+ * Hierarchical Memory System
4
+ * Extended memory system with hierarchical organization
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.DefaultHierarchicalMemorySystem = void 0;
8
+ class DefaultHierarchicalMemorySystem {
9
+ constructor(dbPath, namespace) {
10
+ this.memory = new Map();
11
+ this.dbPath = dbPath;
12
+ this.namespace = namespace || 'default';
13
+ }
14
+ getNamespaceMap(namespace) {
15
+ if (!this.memory.has(namespace)) {
16
+ this.memory.set(namespace, new Map());
17
+ }
18
+ return this.memory.get(namespace);
19
+ }
20
+ async store(key, value) {
21
+ await this.storeInNamespace(this.namespace || 'default', key, value);
22
+ }
23
+ async retrieve(key) {
24
+ return this.retrieveFromNamespace(this.namespace || 'default', key);
25
+ }
26
+ async get(key) {
27
+ return this.retrieve(key);
28
+ }
29
+ async delete(key) {
30
+ const nsMap = this.getNamespaceMap(this.namespace || 'default');
31
+ return nsMap.delete(key);
32
+ }
33
+ async clear() {
34
+ await this.clearNamespace(this.namespace || 'default');
35
+ }
36
+ async list() {
37
+ const nsMap = this.getNamespaceMap(this.namespace || 'default');
38
+ return Array.from(nsMap.keys());
39
+ }
40
+ async exists(key) {
41
+ const nsMap = this.getNamespaceMap(this.namespace || 'default');
42
+ return nsMap.has(key);
43
+ }
44
+ async storeInNamespace(namespace, key, value) {
45
+ const nsMap = this.getNamespaceMap(namespace);
46
+ nsMap.set(key, value);
47
+ }
48
+ async retrieveFromNamespace(namespace, key) {
49
+ const nsMap = this.getNamespaceMap(namespace);
50
+ return nsMap.get(key);
51
+ }
52
+ async listNamespaces() {
53
+ return Array.from(this.memory.keys());
54
+ }
55
+ async clearNamespace(namespace) {
56
+ this.memory.delete(namespace);
57
+ }
58
+ }
59
+ exports.DefaultHierarchicalMemorySystem = DefaultHierarchicalMemorySystem;
60
+ //# sourceMappingURL=hierarchical-memory-system.js.map
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Basic Memory System Interface
3
+ * Minimal implementation to satisfy missing imports
4
+ */
5
+ export interface MemorySystem {
6
+ store(key: string, value: any): Promise<void>;
7
+ retrieve(key: string): Promise<any>;
8
+ get(key: string): Promise<any>;
9
+ delete(key: string): Promise<boolean>;
10
+ clear(): Promise<void>;
11
+ list(): Promise<string[]>;
12
+ exists(key: string): Promise<boolean>;
13
+ }
14
+ export declare class BasicMemorySystem implements MemorySystem {
15
+ private memory;
16
+ store(key: string, value: any): Promise<void>;
17
+ retrieve(key: string): Promise<any>;
18
+ get(key: string): Promise<any>;
19
+ delete(key: string): Promise<boolean>;
20
+ clear(): Promise<void>;
21
+ list(): Promise<string[]>;
22
+ exists(key: string): Promise<boolean>;
23
+ }
24
+ export declare const defaultMemorySystem: BasicMemorySystem;
25
+ //# sourceMappingURL=memory-system.d.ts.map
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * Basic Memory System Interface
4
+ * Minimal implementation to satisfy missing imports
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.defaultMemorySystem = exports.BasicMemorySystem = void 0;
8
+ class BasicMemorySystem {
9
+ constructor() {
10
+ this.memory = new Map();
11
+ }
12
+ async store(key, value) {
13
+ this.memory.set(key, value);
14
+ }
15
+ async retrieve(key) {
16
+ return this.memory.get(key);
17
+ }
18
+ async get(key) {
19
+ return this.memory.get(key);
20
+ }
21
+ async delete(key) {
22
+ return this.memory.delete(key);
23
+ }
24
+ async clear() {
25
+ this.memory.clear();
26
+ }
27
+ async list() {
28
+ return Array.from(this.memory.keys());
29
+ }
30
+ async exists(key) {
31
+ return this.memory.has(key);
32
+ }
33
+ }
34
+ exports.BasicMemorySystem = BasicMemorySystem;
35
+ exports.defaultMemorySystem = new BasicMemorySystem();
36
+ //# sourceMappingURL=memory-system.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "3.6.25",
3
+ "version": "4.0.0",
4
4
  "description": "KNOWLEDGE BASE VERIFICATION - v3.6.25 adds critical validation to snow_create_knowledge_article. Now throws error when non-existent knowledge base is specified, preventing orphaned articles. Includes helpful suggestions to create or discover valid knowledge bases.",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",
package/.mcp.json DELETED
@@ -1,220 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "servicenow-deployment": {
4
- "command": "node",
5
- "args": [
6
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-deployment-mcp.js"
7
- ],
8
- "description": "Widget and artifact deployment with COHERENCE VALIDATION - ensures HTML template, client script, server script work together perfectly. Tools: snow_deploy, snow_update, snow_validate_deployment, snow_rollback_deployment, snow_deployment_status, snow_export_artifact, snow_import_artifact, snow_preview_widget, snow_widget_test, snow_create_solution_package",
9
- "env": {
10
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
11
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
12
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}",
13
- "SNOW_DEPLOYMENT_TIMEOUT": "${SNOW_DEPLOYMENT_TIMEOUT}",
14
- "MCP_DEPLOYMENT_TIMEOUT": "${MCP_DEPLOYMENT_TIMEOUT}"
15
- }
16
- },
17
- "servicenow-operations": {
18
- "command": "node",
19
- "args": [
20
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-operations-mcp.js"
21
- ],
22
- "description": "Core ServiceNow operations - universal table query (snow_query_table), CRUD operations, incident/request/problem management, CMDB search, user/group management, catalog items, knowledge search, field discovery (snow_discover_table_fields), get by sys_id",
23
- "env": {
24
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
25
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
26
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
27
- }
28
- },
29
- "servicenow-automation": {
30
- "command": "node",
31
- "args": [
32
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-automation-mcp.js"
33
- ],
34
- "description": "Script execution with output capture (snow_execute_script_with_output), scheduled jobs, event rules, notifications, SLA definitions, workflow activities, script history, REST testing, system logs (snow_get_logs), execution tracing, background scripts with autoConfirm option",
35
- "env": {
36
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
37
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
38
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
39
- }
40
- },
41
- "servicenow-platform-development": {
42
- "command": "node",
43
- "args": [
44
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-platform-development-mcp.js"
45
- ],
46
- "description": "Platform development - create UI pages, script includes, business rules, client scripts, UI policies/actions, ACLs, dictionary entries, catalog items, workflows, transform maps",
47
- "env": {
48
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
49
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
50
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
51
- }
52
- },
53
- "servicenow-integration": {
54
- "command": "node",
55
- "args": [
56
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-integration-mcp.js"
57
- ],
58
- "description": "Integration management - REST messages, SOAP messages, transform maps, import sets, web services, email configuration, OAuth providers, endpoint discovery, integration testing",
59
- "env": {
60
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
61
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
62
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
63
- }
64
- },
65
- "servicenow-system-properties": {
66
- "command": "node",
67
- "args": [
68
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-system-properties-mcp.js"
69
- ],
70
- "description": "System property management - get/set/list/delete properties (snow_property_get, snow_property_set), bulk operations, import/export JSON, validate values, search by pattern, categories, audit history",
71
- "env": {
72
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
73
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
74
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
75
- }
76
- },
77
- "servicenow-update-set": {
78
- "command": "node",
79
- "args": [
80
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-update-set-mcp.js"
81
- ],
82
- "description": "Update set management - create/switch/complete update sets, preview changes, export/import XML, ensure active update set, add artifacts to sets, batch operations",
83
- "env": {
84
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
85
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
86
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
87
- }
88
- },
89
- "servicenow-development-assistant": {
90
- "command": "node",
91
- "args": [
92
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-development-assistant-mcp.js"
93
- ],
94
- "description": "Development assistance - code generation, best practices, pattern recommendations, code review, performance optimization, ES5 conversion, documentation generation, requirement analysis (snow_find_artifact, snow_edit_artifact, snow_analyze_artifact)",
95
- "env": {
96
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
97
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
98
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
99
- }
100
- },
101
- "servicenow-security-compliance": {
102
- "command": "node",
103
- "args": [
104
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-security-compliance-mcp.js"
105
- ],
106
- "description": "Security and compliance - security policies, compliance rules (SOX/GDPR/HIPAA), audit trails, access control review, vulnerability scanning, risk assessment, encryption settings",
107
- "env": {
108
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
109
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
110
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
111
- }
112
- },
113
- "servicenow-reporting-analytics": {
114
- "command": "node",
115
- "args": [
116
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-reporting-analytics-mcp.js"
117
- ],
118
- "description": "Reporting and analytics - create reports/dashboards/KPIs, data visualization, performance analytics, scheduled reports, data quality analysis, metrics collection, trend analysis",
119
- "env": {
120
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
121
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
122
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
123
- }
124
- },
125
- "servicenow-machine-learning": {
126
- "command": "node",
127
- "args": [
128
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-machine-learning-mcp.js"
129
- ],
130
- "description": "Machine learning - train/classify incidents (snow_train_classifier), change risk prediction, anomaly detection, forecast incidents, sentiment analysis, process optimization, hybrid recommendations with TensorFlow.js",
131
- "env": {
132
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
133
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
134
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
135
- }
136
- },
137
- "servicenow-knowledge-catalog": {
138
- "command": "node",
139
- "args": [
140
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-knowledge-catalog-mcp.js"
141
- ],
142
- "description": "Knowledge and catalog management - create/search/update knowledge articles, knowledge bases, catalog items, catalog variables, UI policies, client scripts, order items, discover catalogs",
143
- "env": {
144
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
145
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
146
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
147
- }
148
- },
149
- "servicenow-change-virtualagent-pa": {
150
- "command": "node",
151
- "args": [
152
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-change-virtualagent-pa-mcp.js"
153
- ],
154
- "description": "Change management, Virtual Agent, and Performance Analytics - create/manage change requests, CAB meetings, VA topics/blocks, conversations, PA indicators/widgets/breakdowns, thresholds, data collection",
155
- "env": {
156
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
157
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
158
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
159
- }
160
- },
161
- "servicenow-flow-workspace-mobile": {
162
- "command": "node",
163
- "args": [
164
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-flow-workspace-mobile-mcp.js"
165
- ],
166
- "description": "Flow Designer, Workspace, and Mobile - create flows/actions/subflows/triggers, test flows, workspaces/tabs/lists, contextual panels, mobile app config, layouts, push notifications, offline sync",
167
- "env": {
168
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
169
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
170
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
171
- }
172
- },
173
- "servicenow-cmdb-event-hr-csm-devops": {
174
- "command": "node",
175
- "args": [
176
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-cmdb-event-hr-csm-devops-mcp.js"
177
- ],
178
- "description": "CMDB, Event Management, HR, CSM, and DevOps - create CIs/relationships, discovery, impact analysis, events/alerts, HR cases/onboarding, customer cases/accounts, DevOps pipelines/deployments",
179
- "env": {
180
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
181
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
182
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
183
- }
184
- },
185
- "servicenow-advanced-features": {
186
- "command": "node",
187
- "args": [
188
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/advanced/servicenow-advanced-features-mcp.js"
189
- ],
190
- "description": "Advanced features - batch API operations (80% reduction), table relationships analysis, query optimization, field usage analysis, code pattern detection, process discovery, workflow analysis, documentation generation",
191
- "env": {
192
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
193
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
194
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
195
- }
196
- },
197
- "servicenow-local-development": {
198
- "command": "node",
199
- "args": [
200
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/servicenow-local-development-mcp.js"
201
- ],
202
- "description": "Local development bridge for Claude Code - pull any ServiceNow artifact to local files with native tool integration (snow_pull_artifact, snow_push_artifact, snow_validate_artifact_coherence), smart field chunking for large artifacts, ES5 validation, coherence checking, 12+ artifact types support",
203
- "env": {
204
- "SNOW_INSTANCE": "${SNOW_INSTANCE}",
205
- "SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
206
- "SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
207
- }
208
- },
209
- "snow-flow": {
210
- "command": "node",
211
- "args": [
212
- "/Users/nielsvanderwerf/Projects/snow-flow-dev/snow-flow/dist/mcp/snow-flow-mcp.js"
213
- ],
214
- "description": "Snow-Flow orchestration - swarm init/status, agent spawn/discover, task orchestrate/categorize, neural train/patterns (TensorFlow.js), memory store/search (timeout-protected), performance reports, token usage tracking",
215
- "env": {
216
- "SNOW_FLOW_ENV": "${SNOW_FLOW_ENV}"
217
- }
218
- }
219
- }
220
- }
package/claude-flow DELETED
@@ -1,81 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Claude Flow CLI - Universal Wrapper
5
- * Works in both CommonJS and ES Module projects
6
- */
7
-
8
- // Use dynamic import to work in both CommonJS and ES modules
9
- (async () => {
10
- const { spawn } = await import('child_process');
11
- const { resolve } = await import('path');
12
- const { fileURLToPath } = await import('url');
13
-
14
- // Detect if we're running in ES module context
15
- let __dirname;
16
- try {
17
- // Check if import.meta is available (ES modules)
18
- if (typeof import.meta !== 'undefined' && import.meta.url) {
19
- const __filename = fileURLToPath(import.meta.url);
20
- __dirname = resolve(__filename, '..');
21
- } else {
22
- // Fallback for CommonJS
23
- __dirname = process.cwd();
24
- }
25
- } catch {
26
- // Fallback for CommonJS
27
- __dirname = process.cwd();
28
- }
29
-
30
- // Try multiple strategies to find claude-flow
31
- const strategies = [
32
- // 1. Local node_modules
33
- async () => {
34
- try {
35
- const localPath = resolve(process.cwd(), 'node_modules/.bin/claude-flow');
36
- const { existsSync } = await import('fs');
37
- if (existsSync(localPath)) {
38
- return spawn(localPath, process.argv.slice(2), { stdio: 'inherit' });
39
- }
40
- } catch {}
41
- },
42
-
43
- // 2. Parent node_modules (monorepo)
44
- async () => {
45
- try {
46
- const parentPath = resolve(process.cwd(), '../node_modules/.bin/claude-flow');
47
- const { existsSync } = await import('fs');
48
- if (existsSync(parentPath)) {
49
- return spawn(parentPath, process.argv.slice(2), { stdio: 'inherit' });
50
- }
51
- } catch {}
52
- },
53
-
54
- // 3. NPX with latest alpha version (prioritized over global)
55
- async () => {
56
- return spawn('npx', ['claude-flow@alpha', ...process.argv.slice(2)], {
57
- stdio: 'inherit',
58
- });
59
- },
60
- ];
61
-
62
- // Try each strategy
63
- for (const strategy of strategies) {
64
- try {
65
- const child = await strategy();
66
- if (child) {
67
- child.on('exit', (code) => process.exit(code || 0));
68
- child.on('error', (err) => {
69
- if (err.code !== 'ENOENT') {
70
- console.error('Error:', err);
71
- process.exit(1);
72
- }
73
- });
74
- return;
75
- }
76
- } catch {}
77
- }
78
-
79
- console.error('Could not find claude-flow. Please install it with: npm install claude-flow');
80
- process.exit(1);
81
- })();
package/claude-flow.bat DELETED
@@ -1,18 +0,0 @@
1
- @echo off
2
- :: Claude Flow CLI for Windows
3
- :: AI-Driven Development Toolkit
4
-
5
- setlocal
6
-
7
- :: Check if Node.js is installed
8
- where node >nul 2>nul
9
- if %errorlevel% neq 0 (
10
- echo Error: Node.js is not installed or not in PATH
11
- echo Please install Node.js from https://nodejs.org/
12
- exit /b 1
13
- )
14
-
15
- :: Run Claude Flow CLI
16
- node "%~dp0claude-flow" %*
17
-
18
- endlocal
package/claude-flow.ps1 DELETED
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env pwsh
2
- # Claude Flow CLI for PowerShell
3
- # AI-Driven Development Toolkit
4
-
5
- param(
6
- [Parameter(ValueFromRemainingArguments=$true)]
7
- [string[]]$Arguments
8
- )
9
-
10
- # Check if Node.js is installed
11
- if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
12
- Write-Error "Node.js is not installed or not in PATH"
13
- Write-Error "Please install Node.js from https://nodejs.org/"
14
- exit 1
15
- }
16
-
17
- # Get the script directory
18
- $scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
19
-
20
- # Run Claude Flow CLI
21
- & node "$scriptDir\claude-flow" @Arguments
22
-
23
- # Forward the exit code
24
- exit $LASTEXITCODE
@@ -1,3 +0,0 @@
1
- # Agent Memory
2
-
3
- This directory contains persistent memory for ServiceNow agents.
@@ -1,5 +0,0 @@
1
- {
2
- "agents": [],
3
- "tasks": [],
4
- "lastUpdated": 1754601197654
5
- }
@@ -1,32 +0,0 @@
1
- # Session Memory Storage
2
-
3
- ## Purpose
4
- This directory stores session-based memory data, conversation history, and contextual information for development sessions using the Claude-Flow orchestration system.
5
-
6
- ## Structure
7
- Sessions are organized by date and session ID for easy retrieval:
8
-
9
- ```
10
- memory/sessions/
11
- ├── 2024-01-10/
12
- │ ├── session_001/
13
- │ │ ├── metadata.json # Session metadata and configuration
14
- │ │ ├── conversation.md # Full conversation history
15
- │ │ ├── decisions.md # Key decisions and rationale
16
- │ │ ├── artifacts/ # Generated files and outputs
17
- │ │ └── coordination_state/ # Coordination system snapshots
18
- │ └── ...
19
- └── shared/
20
- ├── patterns.md # Common session patterns
21
- └── templates/ # Session template files
22
- ```
23
-
24
- ## Usage Guidelines
25
- 1. **Session Isolation**: Each session gets its own directory
26
- 2. **Metadata Completeness**: Always fill out session metadata
27
- 3. **Conversation Logging**: Document all significant interactions
28
- 4. **Artifact Organization**: Structure generated files clearly
29
- 5. **State Preservation**: Snapshot coordination state regularly
30
-
31
- ## Last Updated
32
- 2025-08-07T21:13:17.654Z
@@ -1,3 +0,0 @@
1
- # ServiceNow Artifacts
2
-
3
- This directory contains generated ServiceNow development artifacts.