snow-flow 9.0.0 → 9.0.2
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/bin/snow-flow.cmd +58 -0
- package/package.json +3 -5
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
setlocal enabledelayedexpansion
|
|
3
|
+
|
|
4
|
+
if defined OPENCODE_BIN_PATH (
|
|
5
|
+
set "resolved=%OPENCODE_BIN_PATH%"
|
|
6
|
+
goto :execute
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
rem Get the directory of this script
|
|
10
|
+
set "script_dir=%~dp0"
|
|
11
|
+
set "script_dir=%script_dir:~0,-1%"
|
|
12
|
+
|
|
13
|
+
rem Detect platform and architecture
|
|
14
|
+
set "platform=windows"
|
|
15
|
+
|
|
16
|
+
rem Detect architecture
|
|
17
|
+
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
|
|
18
|
+
set "arch=x64"
|
|
19
|
+
) else if "%PROCESSOR_ARCHITECTURE%"=="ARM64" (
|
|
20
|
+
set "arch=arm64"
|
|
21
|
+
) else if "%PROCESSOR_ARCHITECTURE%"=="x86" (
|
|
22
|
+
set "arch=x86"
|
|
23
|
+
) else (
|
|
24
|
+
set "arch=x64"
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
set "name=opencode-!platform!-!arch!"
|
|
28
|
+
set "binary=opencode.exe"
|
|
29
|
+
|
|
30
|
+
rem Search for the binary starting from script location
|
|
31
|
+
set "resolved="
|
|
32
|
+
set "current_dir=%script_dir%"
|
|
33
|
+
|
|
34
|
+
:search_loop
|
|
35
|
+
set "candidate=%current_dir%\node_modules\%name%\bin\%binary%"
|
|
36
|
+
if exist "%candidate%" (
|
|
37
|
+
set "resolved=%candidate%"
|
|
38
|
+
goto :execute
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
rem Move up one directory
|
|
42
|
+
for %%i in ("%current_dir%") do set "parent_dir=%%~dpi"
|
|
43
|
+
set "parent_dir=%parent_dir:~0,-1%"
|
|
44
|
+
|
|
45
|
+
rem Check if we've reached the root
|
|
46
|
+
if "%current_dir%"=="%parent_dir%" goto :not_found
|
|
47
|
+
set "current_dir=%parent_dir%"
|
|
48
|
+
goto :search_loop
|
|
49
|
+
|
|
50
|
+
:not_found
|
|
51
|
+
echo It seems that your package manager failed to install the right version of the opencode CLI for your platform. You can try manually installing the "%name%" package >&2
|
|
52
|
+
exit /b 1
|
|
53
|
+
|
|
54
|
+
:execute
|
|
55
|
+
rem Execute the binary with all arguments in the same console window
|
|
56
|
+
rem Use start /b /wait to ensure it runs in the current shell context for all shells
|
|
57
|
+
start /b /wait "" "%resolved%" %*
|
|
58
|
+
exit /b %ERRORLEVEL%
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"name": "snow-flow",
|
|
5
5
|
"description": "Snow-Flow - AI-powered ServiceNow development CLI with 410+ MCP tools",
|
|
6
6
|
"type": "module",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"release:major": "npm version major -m 'chore: Bump version to %s' && git push --no-verify && git push --tags --no-verify"
|
|
34
34
|
},
|
|
35
35
|
"bin": {
|
|
36
|
+
"snow-flow": "./bin/snow-flow",
|
|
36
37
|
"snow-code": "./bin/snow-code",
|
|
37
38
|
"snowcode": "./bin/snowcode"
|
|
38
39
|
},
|
|
@@ -40,7 +41,6 @@
|
|
|
40
41
|
"./*": "./src/*.ts"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@groeimetai/snow-flow-script": "workspace:*",
|
|
44
44
|
"@ai-sdk/amazon-bedrock": "2.2.10",
|
|
45
45
|
"@ai-sdk/google-vertex": "3.0.16",
|
|
46
46
|
"@octokit/webhooks-types": "7.6.1",
|
|
@@ -62,8 +62,6 @@
|
|
|
62
62
|
"zod-to-json-schema": "3.24.5"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@groeimetai/snow-flow-sdk": "workspace:*",
|
|
66
|
-
"@groeimetai/snow-flow-plugin": "workspace:*",
|
|
67
65
|
"@actions/core": "1.11.1",
|
|
68
66
|
"@actions/github": "6.0.1",
|
|
69
67
|
"@agentclientprotocol/sdk": "0.4.9",
|
|
@@ -111,4 +109,4 @@
|
|
|
111
109
|
"snow-flow-linux-x64": "*",
|
|
112
110
|
"snow-flow-windows-x64": "*"
|
|
113
111
|
}
|
|
114
|
-
}
|
|
112
|
+
}
|