primitive 0.2.14__py3-none-any.whl → 0.2.16__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.
primitive/__about__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2024-present Dylan Stein <dylan@primitive.tech>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.2.14"
4
+ __version__ = "0.2.16"
@@ -12,7 +12,6 @@ from .launch_agents import LaunchAgent
12
12
  from .launch_service import LaunchService
13
13
 
14
14
  HOME_DIRECTORY = Path.home()
15
- PRIMITIVE_BINARY_PATH = Path(HOME_DIRECTORY / ".pyenv" / "shims" / "primitive")
16
15
 
17
16
 
18
17
  class Daemons:
@@ -20,15 +19,11 @@ class Daemons:
20
19
  self.primitive: Primitive = primitive
21
20
  self.os_family = platform.system()
22
21
 
23
- found_primitive_binary_path = PRIMITIVE_BINARY_PATH
24
- if not PRIMITIVE_BINARY_PATH.exists():
25
- result = subprocess.run(["which", "primitive"], capture_output=True)
26
- if result.returncode == 0:
27
- found_primitive_binary_path = result.stdout.decode().rstrip("\n")
28
- else:
29
- raise Exception(
30
- f"primitive binary not found at {PRIMITIVE_BINARY_PATH}"
31
- )
22
+ result = subprocess.run(["which", "primitive"], capture_output=True)
23
+ if result.returncode == 0:
24
+ found_primitive_binary_path = result.stdout.decode().rstrip("\n")
25
+ else:
26
+ raise Exception("primitive binary not found")
32
27
 
33
28
  match self.os_family:
34
29
  case "Darwin":
@@ -36,23 +31,23 @@ class Daemons:
36
31
  "agent": LaunchAgent(
37
32
  "tech.primitive.agent",
38
33
  executable=str(found_primitive_binary_path),
39
- command="agent --debug",
34
+ command="--debug agent",
40
35
  ),
41
36
  "monitor": LaunchAgent(
42
37
  "tech.primitive.monitor",
43
38
  executable=str(found_primitive_binary_path),
44
- command="monitor --debug",
39
+ command="--debug monitor",
45
40
  ),
46
41
  }
47
42
  case "Linux":
48
43
  self.daemons: Dict[str, Daemon] = {
49
44
  "agent": LaunchService(
50
45
  "tech.primitive.agent",
51
- command=f'/bin/sh -lc "{found_primitive_binary_path} agent --debug"',
46
+ command=f'/bin/sh -lc "{found_primitive_binary_path} --debug agent"',
52
47
  ),
53
48
  "monitor": LaunchService(
54
49
  "tech.primitive.monitor",
55
- command=f'/bin/sh -lc "{found_primitive_binary_path} monitor --debug"',
50
+ command=f'/bin/sh -lc "{found_primitive_binary_path} --debug monitor"',
56
51
  ),
57
52
  }
58
53
  case _:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: primitive
3
- Version: 0.2.14
3
+ Version: 0.2.16
4
4
  Project-URL: Documentation, https://github.com//primitivecorp/primitive-cli#readme
5
5
  Project-URL: Issues, https://github.com//primitivecorp/primitive-cli/issues
6
6
  Project-URL: Source, https://github.com//primitivecorp/primitive-cli
@@ -1,4 +1,4 @@
1
- primitive/__about__.py,sha256=ymOX1Nb7VAAt3kK32h6uxV1muXGiNaei2IyqxVxxPNY,130
1
+ primitive/__about__.py,sha256=HrQQaOWuqVOmGCuXjJQ4OHW4-hRY9aXKjk3BQ63-Bw4,130
2
2
  primitive/__init__.py,sha256=bwKdgggKNVssJFVPfKSxqFMz4IxSr54WWbmiZqTMPNI,106
3
3
  primitive/cli.py,sha256=g7EtHI9MATAB0qQu5w-WzbXtxz_8zu8z5E7sETmMkKU,2509
4
4
  primitive/client.py,sha256=h8WZVnQylVe0vbpuyC8YZHl2JyITSPC-1HbUcmrE5pc,3623
@@ -13,7 +13,7 @@ primitive/auth/commands.py,sha256=2z5u5xX64n0yILucx9emtWh3uQXLvs2QQQQIldZGr94,23
13
13
  primitive/auth/graphql/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  primitive/auth/graphql/queries.py,sha256=jhrr_VFzHIn8vcVprMIzUx7V4kkWYdR6CKMKPoVFv60,180
15
15
  primitive/daemons/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- primitive/daemons/actions.py,sha256=MTO8HI3KmSU3ZGJIsdrDdqLU1EcVUtOT-Uhf4FOZ8h8,3248
16
+ primitive/daemons/actions.py,sha256=a5DP60day_l19bIx-ThRsN4V7zHPFwqcMYnhnVrplCU,2975
17
17
  primitive/daemons/commands.py,sha256=Xt4qFymNrDLdHJhRnEH_4Re-2xX6w1OT-chV9k7dFCs,2670
18
18
  primitive/daemons/launch_agents.py,sha256=VQ-c9PVTOr3JVt2jfLxIPDS1glKyBM2oDAzSUsFP9_A,7455
19
19
  primitive/daemons/launch_service.py,sha256=JA2kj1obCzu9sGmLFUMdEVKI-aj018b_tZBor0wVJSQ,7531
@@ -96,8 +96,8 @@ primitive/utils/memory_size.py,sha256=4xfha21kW82nFvOTtDFx9Jk2ZQoEhkfXii-PGNTpIU
96
96
  primitive/utils/printer.py,sha256=f1XUpqi5dkTL3GWvYRUGlSwtj2IxU1q745T4Fxo7Tn4,370
97
97
  primitive/utils/shell.py,sha256=jWzb7ky7p987dJas6ZvarK3IJNZ5cwBXcryRWb9Uh6U,2072
98
98
  primitive/utils/text.py,sha256=XiESMnlhjQ534xE2hMNf08WehE1SKaYFRNih0MmnK0k,829
99
- primitive-0.2.14.dist-info/METADATA,sha256=sWALYR1cRxIhPWqz0srhYKwrW9JETXJ1I7Ms2elLjVI,3733
100
- primitive-0.2.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
101
- primitive-0.2.14.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
102
- primitive-0.2.14.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
103
- primitive-0.2.14.dist-info/RECORD,,
99
+ primitive-0.2.16.dist-info/METADATA,sha256=YIJsHdl6uWQvkyzjA3T02ECntyeUxPHjdeichj6JvGk,3733
100
+ primitive-0.2.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
101
+ primitive-0.2.16.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
102
+ primitive-0.2.16.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
103
+ primitive-0.2.16.dist-info/RECORD,,