gibson-cli 0.8.0__py3-none-any.whl → 0.8.1__py3-none-any.whl
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.
- bin/build.sh +1 -2
- bin/gibson +2 -2
- bin/release.sh +5 -1
- gibson/api/BaseApi.py +3 -3
- gibson/api/ProjectApi.py +2 -2
- gibson/command/Version.py +1 -1
- {gibson_cli-0.8.0.dist-info → gibson_cli-0.8.1.dist-info}/METADATA +13 -10
- {gibson_cli-0.8.0.dist-info → gibson_cli-0.8.1.dist-info}/RECORD +11 -11
- {gibson_cli-0.8.0.dist-info → gibson_cli-0.8.1.dist-info}/WHEEL +0 -0
- {gibson_cli-0.8.0.dist-info → gibson_cli-0.8.1.dist-info}/entry_points.txt +0 -0
- {gibson_cli-0.8.0.dist-info → gibson_cli-0.8.1.dist-info}/top_level.txt +0 -0
bin/build.sh
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
PYTHONMEM=1G python3 -m build
|
1
|
+
uv build
|
bin/gibson
CHANGED
@@ -10,8 +10,8 @@
|
|
10
10
|
# }
|
11
11
|
#
|
12
12
|
# cli_dev_off() {
|
13
|
-
# export PATH=${PATH
|
14
|
-
# export PYTHONPATH=${PYTHONPATH
|
13
|
+
# export PATH=${PATH//$HOME\/src\/gibson\/cli\/bin:/}
|
14
|
+
# export PYTHONPATH=${PYTHONPATH//$HOME\/src\/gibson\/cli:/}
|
15
15
|
# }
|
16
16
|
|
17
17
|
import re
|
bin/release.sh
CHANGED
gibson/api/BaseApi.py
CHANGED
@@ -25,7 +25,7 @@ class BaseApi:
|
|
25
25
|
|
26
26
|
return r
|
27
27
|
|
28
|
-
def get(self, endpoint):
|
28
|
+
def get(self, endpoint: str = ""):
|
29
29
|
r = requests.get(self.url(endpoint), headers=self.headers())
|
30
30
|
|
31
31
|
if r.status_code == 401 and self.refresh_auth_tokens():
|
@@ -46,7 +46,7 @@ class BaseApi:
|
|
46
46
|
|
47
47
|
return headers
|
48
48
|
|
49
|
-
def patch(self, endpoint, json: dict):
|
49
|
+
def patch(self, endpoint: str = "", json: dict = None):
|
50
50
|
r = requests.patch(self.url(endpoint), headers=self.headers(), json=json)
|
51
51
|
|
52
52
|
if r.status_code == 401 and self.refresh_auth_tokens():
|
@@ -66,7 +66,7 @@ class BaseApi:
|
|
66
66
|
|
67
67
|
return r
|
68
68
|
|
69
|
-
def put(self, endpoint, json: dict):
|
69
|
+
def put(self, endpoint: str = "", json: dict = None):
|
70
70
|
r = requests.put(self.url(endpoint), headers=self.headers(), json=json)
|
71
71
|
|
72
72
|
if r.status_code == 401 and self.refresh_auth_tokens():
|
gibson/api/ProjectApi.py
CHANGED
@@ -10,7 +10,7 @@ class ProjectApi(BaseApi):
|
|
10
10
|
self.configuration.require_login()
|
11
11
|
|
12
12
|
def list(self):
|
13
|
-
return self.get(
|
13
|
+
return self.get()["projects"]
|
14
14
|
|
15
15
|
def create(self):
|
16
16
|
return self.post().json()
|
@@ -43,4 +43,4 @@ class ProjectApi(BaseApi):
|
|
43
43
|
if not name:
|
44
44
|
raise ValueError("Name is required")
|
45
45
|
|
46
|
-
return self.
|
46
|
+
return self.patch(f"{uuid}", {"name": name}).json()
|
gibson/command/Version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: gibson-cli
|
3
|
-
Version: 0.8.
|
3
|
+
Version: 0.8.1
|
4
4
|
Summary: Gibson Command Line Interface
|
5
5
|
Author-email: GibsonAI <noc@gibsonai.com>
|
6
6
|
Project-URL: Homepage, https://gibsonai.com/
|
@@ -73,7 +73,6 @@ Requires-Dist: watchfiles==0.21.0
|
|
73
73
|
Requires-Dist: websockets==12.0
|
74
74
|
Requires-Dist: yaspin==3.1.0
|
75
75
|
|
76
|
-
|
77
76
|
[](https://gibsonai.com/)
|
78
77
|
|
79
78
|
# Gibson CLI
|
@@ -90,19 +89,23 @@ Portions of the Gibson backend code are written by Gibson. So far, versus a hum
|
|
90
89
|
|
91
90
|
## Installation / Upgrading
|
92
91
|
|
93
|
-
|
92
|
+
### With [uv](https://docs.astral.sh/uv/) (recommended)
|
94
93
|
|
95
94
|
```sh
|
96
|
-
|
95
|
+
uv tool install gibson-cli@latest
|
97
96
|
```
|
98
97
|
|
99
|
-
|
98
|
+
If you're unable to run `gibson` after installing with uv, try running `uv tool update-shell` to ensure your `PATH` includes the uv tool executables directory.
|
99
|
+
|
100
|
+
### With pip
|
100
101
|
|
101
102
|
```sh
|
102
|
-
|
103
|
+
pip3 install gibson-cli --upgrade
|
103
104
|
```
|
104
105
|
|
105
|
-
|
106
|
+
Note: you'll want to run this **outside** of a virtual environment (globally on your machine)
|
107
|
+
|
108
|
+
If you're unable to run `gibson` after installing with pip, ensure your `PATH` contains the directory where pip installs executables. This can differ based on your operating system, python installation location, and pip version.
|
106
109
|
|
107
110
|
## Key Terms
|
108
111
|
|
@@ -390,8 +393,8 @@ Update the configuration to look like the following:
|
|
390
393
|
{
|
391
394
|
"mcpServers": {
|
392
395
|
"gibson": {
|
393
|
-
"command": "
|
394
|
-
"args": ["mcp", "run"]
|
396
|
+
"command": "uvx",
|
397
|
+
"args": ["--from", "gibson-cli@latest", "gibson", "mcp", "run"]
|
395
398
|
}
|
396
399
|
}
|
397
400
|
}
|
@@ -402,4 +405,4 @@ That's it! Just make sure you're logged in to the CLI (if you're reading this, y
|
|
402
405
|
## Contributing
|
403
406
|
|
404
407
|
- Clone this repository somewhere in your file system
|
405
|
-
- `
|
408
|
+
- `uv tool install [path to repository] -e`
|
@@ -1,10 +1,10 @@
|
|
1
|
-
bin/build.sh,sha256=
|
1
|
+
bin/build.sh,sha256=aAcWaPJeeFTojf2AYoD--_zS6TRqZcSogvqEezD5Wak,9
|
2
2
|
bin/clean.sh,sha256=bVJ1aL-IWconmyZ70OAcF0MHiPzpWCejPiIFJ72yFkM,55
|
3
|
-
bin/gibson,sha256=
|
4
|
-
bin/release.sh,sha256=
|
5
|
-
gibson/api/BaseApi.py,sha256=
|
3
|
+
bin/gibson,sha256=gp8qFxBv1i3iTqDVVIm7hNU2II2DeoMgxnjbi4ofvwA,853
|
4
|
+
bin/release.sh,sha256=ghS71QUBWwCqBNKAtpspYvqX46M1cZyUgtOEI4xDLUo,110
|
5
|
+
gibson/api/BaseApi.py,sha256=4BZYKcLnIUtxinQuL--qpTRlsorMmpirdf3pW1DzPaI,3735
|
6
6
|
gibson/api/Cli.py,sha256=Qcm5NIQ4x1Wn6KfkrAzwvZeWyt-cKF_xD7_lTWL4Lbw,8071
|
7
|
-
gibson/api/ProjectApi.py,sha256=
|
7
|
+
gibson/api/ProjectApi.py,sha256=OzOPumgcd9IHqiaa_v52vBfh1RTwJyYuQWcilj52GTI,1255
|
8
8
|
gibson/bin/gibson.py,sha256=56fqPBiF47uJvafHyNbWZ4GorcI0Ut98DCXeS7dt2io,420
|
9
9
|
gibson/command/BaseCommand.py,sha256=mmWUO0FxjMCbv3cHWnnasfAWnU_hTuGHUsRVJ4hUcqM,777
|
10
10
|
gibson/command/Build.py,sha256=6lMdTa3HZvcbskoX8iJZJnekiJmyNVSbgGmgvh1v-BM,4421
|
@@ -19,7 +19,7 @@ gibson/command/Question.py,sha256=g8SwopbzeG14WWP0bc-fXIDVqOOicMzjC9YXoGd-NxY,38
|
|
19
19
|
gibson/command/Remove.py,sha256=Ar8-vSNwmCaBupCLY_rcvyU_kWIILU_qVX5njV-tZVw,2478
|
20
20
|
gibson/command/Show.py,sha256=qkkprY2JhA4qOOhYOwAECDnFZwTdqcsKsG4cwB_b-84,1409
|
21
21
|
gibson/command/Tree.py,sha256=BeJ_13xrrRCK5FP2rQHWpDKrshVzte-_D1pNG1GXPIw,3056
|
22
|
-
gibson/command/Version.py,sha256=
|
22
|
+
gibson/command/Version.py,sha256=jxkRdbQiyTdto18RpbL-5vudcbvLLX9kcl8vmkt7USw,1187
|
23
23
|
gibson/command/auth/Auth.py,sha256=DAvnKq3Ks77QJwuGJCWA9Iv3c0Qq5pHFIpEA-gy6CxM,1086
|
24
24
|
gibson/command/auth/Login.py,sha256=b43OfV76i6aGdOwj1NK64ZOdYlNyc08g3lZGQ_37KDw,437
|
25
25
|
gibson/command/auth/Logout.py,sha256=V01q4TdbiBqCnIrM6IA4T25fO6ws0UpXp42I3pwHZVM,248
|
@@ -129,8 +129,8 @@ gibson/tests/test_Env.py,sha256=DPWmP0-aEelducq9bAwv7rKoY2NjWXUeCrzfJDQkn2M,369
|
|
129
129
|
gibson/tests/test_Memory.py,sha256=YP7owToABAk_-s7fD5UG0HTc4lamDjdA39JUlLnk3Fg,2574
|
130
130
|
gibson/tests/test_utils.py,sha256=r_y-EG05YTCNtL8MWiAK1KmPsmeoMgypKsQC_lVgOtM,559
|
131
131
|
venv/bin/activate_this.py,sha256=E1T7r3559tBsyqFpdcQW0HbY7gDvNiIv5Pc6HQ4bpoA,2383
|
132
|
-
gibson_cli-0.8.
|
133
|
-
gibson_cli-0.8.
|
134
|
-
gibson_cli-0.8.
|
135
|
-
gibson_cli-0.8.
|
136
|
-
gibson_cli-0.8.
|
132
|
+
gibson_cli-0.8.1.dist-info/METADATA,sha256=9PkfewFxUDz75qzIG7HUXAbjraHB0aPDbS6D8cN5aBg,14592
|
133
|
+
gibson_cli-0.8.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
134
|
+
gibson_cli-0.8.1.dist-info/entry_points.txt,sha256=j5VUvq3AzL21xPvVC24zMoXFt-I5lUWulr66nL3OAPM,50
|
135
|
+
gibson_cli-0.8.1.dist-info/top_level.txt,sha256=fSV3vegbdbSDwiB6n5z3FCeYwkIonzFrx4ek3F_OSdI,16
|
136
|
+
gibson_cli-0.8.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|