symmetry-cli 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/install.ps1 +6 -36
  2. package/package.json +1 -1
package/install.ps1 CHANGED
@@ -1,6 +1,6 @@
1
+ # Symmetry CLI Install Script for Windows
1
2
  $ErrorActionPreference = "Stop"
2
3
 
3
- # Colors for output
4
4
  $RED = "`e[31m"
5
5
  $GREEN = "`e[32m"
6
6
  $YELLOW = "`e[33m"
@@ -10,48 +10,19 @@ function Print-Color($color, $message) {
10
10
  Write-Host "$color$message$NC"
11
11
  }
12
12
 
13
- # Check if npm is installed
14
13
  if (!(Get-Command npm -ErrorAction SilentlyContinue)) {
15
14
  Print-Color $RED "Error: npm is not installed. Please install Node.js and npm first."
16
15
  exit 1
17
16
  }
18
17
 
19
- # Install symmetry-cli globally
20
18
  Print-Color $YELLOW "Installing symmetry-cli globally..."
21
- try {
22
- npm install -g symmetry-cli
19
+ if (npm install -g .) {
23
20
  Print-Color $GREEN "symmetry-cli installed successfully!"
24
- }
25
- catch {
21
+ } else {
26
22
  Print-Color $RED "Failed to install symmetry-cli. Please check your npm configuration and try again."
27
23
  exit 1
28
24
  }
29
25
 
30
- # Prompt for API provider
31
- Print-Color $YELLOW "Please select an API provider:"
32
- $providers = @{
33
- 1 = @{name = "LiteLLM"; value = "litellm"}
34
- 2 = @{name = "LlamaCpp"; value = "llamacpp"}
35
- 3 = @{name = "LMStudio"; value = "lmstudio"}
36
- 4 = @{name = "Ollama"; value = "ollama"}
37
- 5 = @{name = "Oobabooga"; value = "oobabooga"}
38
- 6 = @{name = "OpenWebUI"; value = "openwebui"}
39
- }
40
-
41
- $providers.GetEnumerator() | ForEach-Object {
42
- Write-Host "$($_.Key): $($_.Value.name)"
43
- }
44
-
45
- do {
46
- $selection = Read-Host "Enter the number of your choice"
47
- $api_provider = $providers[$selection].value
48
- } while (-not $api_provider)
49
-
50
- # Prompt for model name
51
- Print-Color $YELLOW "Please enter the model name you want to use:"
52
- $model_name = Read-Host
53
-
54
- # Create config directory and provider.yaml file
55
26
  $config_dir = "$env:USERPROFILE\.config\symmetry"
56
27
  $provider_yaml = "$config_dir\provider.yaml"
57
28
 
@@ -66,18 +37,17 @@ apiKey:
66
37
  apiPath: /v1/chat/completions
67
38
  apiPort: 11434
68
39
  apiProtocol: http
69
- apiProvider: $api_provider
40
+ apiProvider: ollama
70
41
  dataCollectionEnabled: true
71
42
  maxConnections: 10
72
- modelName: $model_name
43
+ modelName: llama3.1:latest
73
44
  name: $env:USERNAME
74
45
  path: $config_dir
75
46
  public: true
76
47
  serverKey: 4b4a9cc325d134dee6679e9407420023531fd7e96c563f6c5d00fd5549b77435
77
48
  "@ | Set-Content $provider_yaml
78
49
  Print-Color $GREEN "provider.yaml created successfully at $provider_yaml"
79
- }
80
- else {
50
+ } else {
81
51
  Print-Color $YELLOW "provider.yaml already exists at $provider_yaml"
82
52
  }
83
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "symmetry-cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "dist/symmetry.js",
6
6
  "bin": "dist/symmetry.js",