gibson-cli 0.1.1__py3-none-any.whl → 0.1.2__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.
- command/Version.py +8 -0
- conf/Version.py +4 -1
- core/CommandRouter.py +3 -0
- core/Conversation.py +2 -2
- {gibson_cli-0.1.1.dist-info → gibson_cli-0.1.2.dist-info}/METADATA +1 -1
- {gibson_cli-0.1.1.dist-info → gibson_cli-0.1.2.dist-info}/RECORD +10 -9
- services/auth/Server.py +3 -15
- {gibson_cli-0.1.1.dist-info → gibson_cli-0.1.2.dist-info}/WHEEL +0 -0
- {gibson_cli-0.1.1.dist-info → gibson_cli-0.1.2.dist-info}/entry_points.txt +0 -0
- {gibson_cli-0.1.1.dist-info → gibson_cli-0.1.2.dist-info}/top_level.txt +0 -0
command/Version.py
ADDED
conf/Version.py
CHANGED
core/CommandRouter.py
CHANGED
@@ -28,6 +28,7 @@ from command.Show import Show
|
|
28
28
|
from command.Test import Test
|
29
29
|
from command.Tests import Tests
|
30
30
|
from command.Tree import Tree
|
31
|
+
from command.Version import Version
|
31
32
|
from command.WarGames import WarGames
|
32
33
|
from .Configuration import Configuration
|
33
34
|
from .Conversation import Conversation
|
@@ -242,6 +243,8 @@ class CommandRouter:
|
|
242
243
|
command = Tree(self.configuration)
|
243
244
|
elif sys.argv[1] in ["?", "q"]:
|
244
245
|
command = Question(self.configuration)
|
246
|
+
elif sys.argv[1] in ["--version", "-v"]:
|
247
|
+
command = Version(self.configuration)
|
245
248
|
else:
|
246
249
|
command = WarGames(self.configuration)
|
247
250
|
|
core/Conversation.py
CHANGED
@@ -132,7 +132,7 @@ class Conversation:
|
|
132
132
|
def message_welcome(self):
|
133
133
|
self.newline()
|
134
134
|
print(pyfiglet.figlet_format("GibsonAI", font="big").rstrip(), end="")
|
135
|
-
print(f" ...CLI v{Version.
|
135
|
+
print(f" ...CLI v{Version.num}...")
|
136
136
|
self.newline()
|
137
137
|
self.pause()
|
138
138
|
self.type("Welcome!\n\n")
|
@@ -162,7 +162,7 @@ class Conversation:
|
|
162
162
|
def new_project(self, configuration):
|
163
163
|
self.newline()
|
164
164
|
print(pyfiglet.figlet_format("GibsonAI", font="big").rstrip(), end="")
|
165
|
-
print(f" ...CLI v{Version.
|
165
|
+
print(f" ...CLI v{Version.num}...")
|
166
166
|
self.newline()
|
167
167
|
|
168
168
|
if len(configuration.settings.keys()) <= 1:
|
@@ -29,6 +29,7 @@ command/Show.py,sha256=oNGKeNfEo6Qz1n4rJIRjlLuHWHWs5lB0TWE8Vn3hE2U,1190
|
|
29
29
|
command/Test.py,sha256=2zfxSTm-lwvzERTZNgD99z-AtOWb4RdAN1B93aa-UEk,1194
|
30
30
|
command/Tests.py,sha256=1l8iJs2W6fJDKMPL9Qdx7Qzm2I3azg_esthrZihK-S4,897
|
31
31
|
command/Tree.py,sha256=JWvUimeHWY5-6vEh6axTkhAdI-dVTxbKSjx_4isAAx8,3041
|
32
|
+
command/Version.py,sha256=15rhAl3nfMOXmCAc8Tbh9URlj2R9dAXBrPRAEzzypgg,206
|
32
33
|
command/WarGames.py,sha256=vgMXSddUEU_PwDKyI7K0j-FN7uPs5jznfRj-CWh78FI,1280
|
33
34
|
command/auth/Auth.py,sha256=taUwmwAsJWN19oKmjgVGhPA_A8vj6vQLmNUVkuiqfjg,666
|
34
35
|
command/auth/Login.py,sha256=oEdvzXYgO1RGYXMiJWpGWQpMqVEv0reDSyyEInVtt8o,549
|
@@ -46,16 +47,16 @@ conf/Modeler.py,sha256=RayW3VFD_2nCFXZepfEcCXTUX2tWd7WtOjHULNVCai8,67
|
|
46
47
|
conf/Paths.py,sha256=NHJ_YLzmTIUUVLvtZornRdl1xPSluSmpFlMNsnqonxA,192
|
47
48
|
conf/Platform.py,sha256=ai7bLab2Ak_zWiANJH78Pj3YjTlTCQ1EEtkFaVDijOc,307
|
48
49
|
conf/Project.py,sha256=2lc_rr7giu1aGA4Ue4sU3Ey8-_yB2orLM1cw8f9zcdo,440
|
49
|
-
conf/Version.py,sha256=
|
50
|
+
conf/Version.py,sha256=a1VNbiIj5E7m-PmH_pWBVFNf8Iu8zACSJ_qPNdtI9b0,89
|
50
51
|
conf/dev/Api.py,sha256=EKZwy-3h7NxLdP6AYtwyTpJhD1kdQN6gVLuWw4_2KC8,158
|
51
52
|
conf/dev/Base.py,sha256=HisA87syPa5sJFjfjyxWRkLIKuVM5CtAkwW3f2zJx5Y,72
|
52
53
|
conf/dev/Model.py,sha256=HbHRX3VDxR7hXlzuxkKw4Bf7FH6XMfQ96k9BeIUoBf4,73
|
53
54
|
conf/dev/Schema.py,sha256=kOSlX1jEyVb82xd8TO8jEAimLcaefIFJr6d2JYvyTqg,74
|
54
55
|
conf/tests/test_conf_Dependencies.py,sha256=zmUFIANwpmFSMeEV5CllJstaqSSOBh9-Vgk-nETdlx0,109
|
55
56
|
conf/tests/test_conf_Platform.py,sha256=amq1YqxHOXimIP6eIoSg-hAKZ8S68cDAXRdNEaTkdfw,131
|
56
|
-
core/CommandRouter.py,sha256=
|
57
|
+
core/CommandRouter.py,sha256=3YbjTMnuHtTP3p7XZvmqGxTI0Yi1ytLnJfpVqWX2wPk,9304
|
57
58
|
core/Configuration.py,sha256=Rw8g0W11BK1TW7WdWef6tIB4YVLuRGiUtn-VjL8OFu0,13881
|
58
|
-
core/Conversation.py,sha256=
|
59
|
+
core/Conversation.py,sha256=y9-RrMjC-DfAUXLGGjXWsi8PxpEP4_LaGrRoHQN0I7Y,8106
|
59
60
|
core/Env.py,sha256=ulL7y1xqlz6Mrg_hVUM3NzSumDCI2B1Zjfz9StT2Ju0,413
|
60
61
|
core/Memory.py,sha256=A7YtZFZwHqYpTFODsms8r_RNFNj3l-HKmaD8DhKH6So,3910
|
61
62
|
core/TimeKeeper.py,sha256=0mzs04wizjGEJbiQFWZyi4ja4XgeJaDqc0JzPCHp9po,250
|
@@ -73,7 +74,7 @@ display/tests/test_display_WorkspaceFooter.py,sha256=fDxXdwDmQLIRWYIBHbh32gfy2eW
|
|
73
74
|
display/tests/test_display_WorkspaceHeader.py,sha256=Mhloli8KkyVFqv3-Ci4CDggXjrdJ5xebyZmw4foxsuE,309
|
74
75
|
lang/Python.py,sha256=qplU7xoplAIwWTTUSP1RcG3eMhHNUcbyJxCh1yZsXP8,1672
|
75
76
|
lang/tests/test_lang_Python.py,sha256=nulN-VSftAG2BM9HGFUP2RGUHebJAOCWIVPLbHY96Uk,1961
|
76
|
-
services/auth/Server.py,sha256=
|
77
|
+
services/auth/Server.py,sha256=IAkp4Z6Zpyr1o2WttRwDJ6cPrRuKCuCux46riQzZnuc,1661
|
77
78
|
services/code/context/schema/DataDictionary.py,sha256=zWLzxOzW8iMHxfXPEwnnbruEAtFa8j1UpghNd4AHzfA,369
|
78
79
|
services/code/context/schema/EntityKeys.py,sha256=c8psaGfKseGN9V84xTjotgoLNs41sshbgX9K6ToFXHI,1548
|
79
80
|
services/code/context/schema/Manager.py,sha256=rzj4eTfLn2NDJVop4VWqedNZ6oN0ST1hXqK54UwHe5A,892
|
@@ -95,8 +96,8 @@ structure/keys/tests/test_ForeignKey.py,sha256=rcNEgHpYjg5fYsbSHa1zd_N09NFRRyimD
|
|
95
96
|
structure/keys/tests/test_Index.py,sha256=0ZFHEnU5DJBtxG2TCavVD13Rq6aloUXPFM1bspWhbXg,2163
|
96
97
|
structure/keys/tests/test_IndexAttribute.py,sha256=_v3aKmL06cgXuV3xLXJMdp-8oPxHStj7qymtF3HtGrQ,381
|
97
98
|
structure/tests/test_Entity.py,sha256=MYog9b_IV3gbfYx9_hPmCgX3JNPz0t6cXQ-LU1WobjE,3117
|
98
|
-
gibson_cli-0.1.
|
99
|
-
gibson_cli-0.1.
|
100
|
-
gibson_cli-0.1.
|
101
|
-
gibson_cli-0.1.
|
102
|
-
gibson_cli-0.1.
|
99
|
+
gibson_cli-0.1.2.dist-info/METADATA,sha256=sl47VC64ftoMAgdqc0M7VD_47o8_mzowFpemMZ8WRuU,11437
|
100
|
+
gibson_cli-0.1.2.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
101
|
+
gibson_cli-0.1.2.dist-info/entry_points.txt,sha256=VAGCYo_zQgGI5bYR4Ql4rHhl5Zt7iA-Irt1v4iriLvQ,43
|
102
|
+
gibson_cli-0.1.2.dist-info/top_level.txt,sha256=e26JAjLAeXm2tl9nuW9OxrRvzkIXNYlXnHo-Yf5ZtnE,70
|
103
|
+
gibson_cli-0.1.2.dist-info/RECORD,,
|
services/auth/Server.py
CHANGED
@@ -14,29 +14,17 @@ class Handler(BaseHTTPRequestHandler):
|
|
14
14
|
token = params.get("token", [""])[0]
|
15
15
|
|
16
16
|
if token:
|
17
|
-
self.respond(200, "You are now logged in! You can close this window.")
|
18
17
|
self.server.token = token
|
19
|
-
else:
|
20
|
-
self.respond(400, "Login failed, please close this window and try again.")
|
21
18
|
|
19
|
+
self.send_response(302)
|
20
|
+
self.send_header("Location", f"{self.server.app_domain}/chat")
|
21
|
+
self.end_headers()
|
22
22
|
self.server._stop()
|
23
23
|
|
24
24
|
# Suppress logging
|
25
25
|
def log_message(self, format, *args):
|
26
26
|
pass
|
27
27
|
|
28
|
-
# Format the response
|
29
|
-
def respond(self, code, message):
|
30
|
-
self.send_response(code)
|
31
|
-
self.send_header("Content-type", "text")
|
32
|
-
self.send_header("Access-Control-Allow-Origin", "*")
|
33
|
-
self.send_header(
|
34
|
-
"Access-Control-Allow-Headers",
|
35
|
-
"Origin, X-Requested-With, Content-Type, Accept",
|
36
|
-
)
|
37
|
-
self.end_headers()
|
38
|
-
self.wfile.write(message.encode("utf8"))
|
39
|
-
|
40
28
|
|
41
29
|
# Temporary HTTP server to handle the login process
|
42
30
|
class Server(HTTPServer):
|
File without changes
|
File without changes
|
File without changes
|