jm10085 calcuis commited on
Commit
c16cf6a
·
0 Parent(s):

Duplicate from gguf-org/openclaw

Browse files

Co-authored-by: cαlcμ <calcuis@users.noreply.huggingface.co>

Files changed (2) hide show
  1. .gitattributes +35 -0
  2. README.md +119 -0
.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - openclaw
5
+ - clawdbot
6
+ - moltbot
7
+ - pigbot
8
+ - gguf
9
+ ---
10
+ # OpenClaw Extension
11
+
12
+ ![magnet](https://raw.githubusercontent.com/mochiyaki/pigbot/master/magnet.gif)
13
+
14
+ A simple VS Code extension that manages OpenClaw connection status via a status bar item.
15
+
16
+ ![screenshot](https://raw.githubusercontent.com/mochiyaki/pigbot/master/openclaw.gif)
17
+
18
+ ## Requirements
19
+
20
+ - Visual Studio Code version 1.74.0 or higher ([marketplace](https://marketplace.visualstudio.com/items?itemName=gguf.openclaw) or compatible IDE via [open-vsx](https://open-vsx.org/extension/gguf/openclaw))
21
+ - OpenClaw installed (see install [openclaw](https://github.com/openclaw/openclaw) via npm below)
22
+
23
+ ```
24
+ npm install -g openclaw@latest
25
+ ```
26
+
27
+ ## Features
28
+
29
+ - **Status Bar Item**: Shows connection status with three states:
30
+ - `$(hubot) OpenClaw` - Not connected (click to connect)
31
+ - `$(sync~spin) Connecting...` - Connection in progress
32
+ - `$(check) OpenClaw` - Connected to OpenClaw
33
+
34
+ - **Menu Selection Scheme**: Re-structured to provide command menu with options:
35
+ - Status
36
+ - Onboard
37
+ - Gateway
38
+ - Terminal
39
+ - Dashboard
40
+
41
+ - **OS Detection**: Automatically detects the operating system and uses:
42
+ - `openclaw status` on Windows (wsl)
43
+ - `openclaw status` on other platforms
44
+
45
+ - **Auto-Connect**: Optional setting to automatically connect on startup (disabled by default)
46
+
47
+ - **Terminal Management**: Creates or reuses terminal based on OS detection
48
+ - **Command Execution**: Supports multiple commands (status, onboard, gateway, tui, dashboard)
49
+
50
+ ## Usage
51
+
52
+ 1. Click the OpenClaw status bar item (bottom right) to show the menu
53
+ 2. Select one of the options from the menu (Status, Onboard, Gateway, Terminal, Dashboard)
54
+ 3. The extension will open a terminal and execute the corresponding `openclaw` command
55
+ 4. To enable auto-connect, go to Settings and enable `OpenClaw: Auto Connect`
56
+
57
+ ## Configuration
58
+
59
+ - `openclaw.autoConnect`: Boolean value to automatically connect to OpenClaw on startup (default: false)
60
+
61
+ ## Structure Diagram
62
+
63
+ ```mermaid
64
+ graph TD
65
+ A[VS Code] --> B[OpenClaw Extension]
66
+ B --> C[Status Bar Item]
67
+ C --> D{Menu Selection}
68
+ D --> E[Status Command]
69
+ D --> F[Onboard Command]
70
+ D --> G[Gateway Command]
71
+ D --> H[Dashboard Command]
72
+ E --> I[WSL Terminal]
73
+ F --> I
74
+ G --> I
75
+ H --> I
76
+ I --> J[openclaw CLI]
77
+ ```
78
+
79
+ ![screenshot](https://raw.githubusercontent.com/mochiyaki/pigbot/master/demo2.gif)
80
+ *fetch the weather info in SF today; write a color picker for picking a random color for background
81
+
82
+ ## Workflow
83
+
84
+ 1. **Initialization**: Extension activates and creates status bar item
85
+ 2. **User Interaction**: User clicks status bar item to open menu
86
+ 3. **Command Selection**: User selects from Status, Onboard, Gateway, Terminal, or Dashboard
87
+ 4. **Terminal Management**: Extension creates or reuses terminal based on OS
88
+ 5. **Command Execution**: Selected command is sent to terminal
89
+ 6. **Status Update**: Status bar item updates based on connection state
90
+
91
+ ![screenshot](https://raw.githubusercontent.com/mochiyaki/pigbot/master/demo3.gif)
92
+ *make a flappy bird game on the air
93
+
94
+ ## Development
95
+
96
+ 1. Install dependencies: `npm install`
97
+ 2. Compile: `npm run compile`
98
+ 3. Press F5 to launch the Extension Development Host
99
+
100
+ ![screenshot](https://raw.githubusercontent.com/mochiyaki/pigbot/master/demo4.gif)
101
+ *create a star war game on the go
102
+
103
+ ## Commands
104
+
105
+ - `OpenClaw: Show Menu` - Show the OpenClaw menu with command options
106
+
107
+
108
+ ![screenshot](https://raw.githubusercontent.com/mochiyaki/pigbot/master/demo5.gif)
109
+ *code a tic tac toe game (allows two players or playing against an AI)
110
+
111
+ ## License
112
+ MIT
113
+
114
+ ## alternatively opt to run `openclaw` with `gguf-connector`
115
+ ```
116
+ ggc oc
117
+ ```
118
+
119
+ ![screenshot](https://raw.githubusercontent.com/mochiyaki/pigbot/master/claw.jpg)