taskai-cli 1.0.0__tar.gz → 1.0.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taskai-cli
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Author-email: Alex Paskal <alexcpaskal@gmail.com>
5
5
  Requires-Python: >=3.12
6
6
  Requires-Dist: google-genai>=2.8
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "taskai-cli"
3
- version = "1.0.0"
3
+ version = "1.0.1"
4
4
  description = ""
5
5
  authors = [{name = "Alex Paskal", email = "alexcpaskal@gmail.com"}]
6
6
  readme = "README.md"
@@ -14,20 +14,20 @@ def user_setup_service(
14
14
  db: JsonDirectoryDatabase
15
15
  ):
16
16
 
17
- config = db.config
17
+ config = db.get_config()
18
18
  # setup gemini model
19
19
  print("Beginning setup")
20
20
  if "GEMINI_API_KEY" not in config:
21
21
  api_key = _get_gemini_api_key()
22
22
  if api_key:
23
- config["GEMINI_API_KEY"] = api_key
23
+ db.update_config(GEMINI_API_KEY=api_key)
24
24
  else:
25
25
  print("gemini key already specified")
26
26
 
27
27
  if "GEMINI_MODEL" not in config:
28
28
  model = _select_gemini_model()
29
29
  if model:
30
- config["GEMINI_MODEL"] = model
30
+ db.update_config(GEMINI_MODEL=model)
31
31
  else:
32
32
  print("gemini model already specified")
33
33
  print("Setup complete! Use 'task config set|get|list' to interact with your configuration options")
@@ -60,4 +60,4 @@ if __name__ == "__main__":
60
60
  ".taskai/task_db", user=os.getenv("USER")
61
61
  )
62
62
  db.connect()
63
- user_setup_service(db)
63
+ user_setup_service(db)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes