jvcli 2.1.4__py3-none-any.whl → 2.1.6__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.
Files changed (26) hide show
  1. jvcli/commands/server.py +11 -2
  2. {jvcli-2.1.4.dist-info → jvcli-2.1.6.dist-info}/METADATA +1 -1
  3. {jvcli-2.1.4.dist-info → jvcli-2.1.6.dist-info}/RECORD +26 -26
  4. /jvcli/templates/{2.1.4 → 2.1.6}/project/README.md +0 -0
  5. /jvcli/templates/{2.1.4 → 2.1.6}/project/actions/README.md +0 -0
  6. /jvcli/templates/{2.1.4 → 2.1.6}/project/daf/README.md +0 -0
  7. /jvcli/templates/{2.1.4 → 2.1.6}/project/env.example +0 -0
  8. /jvcli/templates/{2.1.4 → 2.1.6}/project/gitignore.example +0 -0
  9. /jvcli/templates/{2.1.4 → 2.1.6}/project/globals.jac +0 -0
  10. /jvcli/templates/{2.1.4 → 2.1.6}/project/main.jac +0 -0
  11. /jvcli/templates/{2.1.4 → 2.1.6}/project/tests/README.md +0 -0
  12. /jvcli/templates/{2.1.4 → 2.1.6}/sourcefiles/CHANGELOG.md +0 -0
  13. /jvcli/templates/{2.1.4 → 2.1.6}/sourcefiles/README.md +0 -0
  14. /jvcli/templates/{2.1.4 → 2.1.6}/sourcefiles/action_app.py +0 -0
  15. /jvcli/templates/{2.1.4 → 2.1.6}/sourcefiles/action_archetype.jac +0 -0
  16. /jvcli/templates/{2.1.4 → 2.1.6}/sourcefiles/action_info.yaml +0 -0
  17. /jvcli/templates/{2.1.4 → 2.1.6}/sourcefiles/action_lib.jac +0 -0
  18. /jvcli/templates/{2.1.4 → 2.1.6}/sourcefiles/agent_descriptor.yaml +0 -0
  19. /jvcli/templates/{2.1.4 → 2.1.6}/sourcefiles/agent_info.yaml +0 -0
  20. /jvcli/templates/{2.1.4 → 2.1.6}/sourcefiles/agent_knowledge.yaml +0 -0
  21. /jvcli/templates/{2.1.4 → 2.1.6}/sourcefiles/agent_memory.yaml +0 -0
  22. /jvcli/templates/{2.1.4 → 2.1.6}/sourcefiles/interact_action_archetype.jac +0 -0
  23. {jvcli-2.1.4.dist-info → jvcli-2.1.6.dist-info}/WHEEL +0 -0
  24. {jvcli-2.1.4.dist-info → jvcli-2.1.6.dist-info}/entry_points.txt +0 -0
  25. {jvcli-2.1.4.dist-info → jvcli-2.1.6.dist-info}/licenses/LICENSE +0 -0
  26. {jvcli-2.1.4.dist-info → jvcli-2.1.6.dist-info}/top_level.txt +0 -0
jvcli/commands/server.py CHANGED
@@ -202,7 +202,8 @@ def initagents() -> None:
202
202
  @server.command()
203
203
  @click.argument("agent_name")
204
204
  @click.argument("version", required=False)
205
- def importagent(agent_name: str, version: str) -> None:
205
+ @click.option("--jpr-api-key", default="")
206
+ def importagent(agent_name: str, version: str, jpr_api_key: str) -> None:
206
207
  """
207
208
  Import an agent from a DAF package.
208
209
 
@@ -227,9 +228,17 @@ def importagent(agent_name: str, version: str) -> None:
227
228
  version = "latest"
228
229
 
229
230
  try:
231
+ data = {
232
+ "daf_name": agent_name,
233
+ "daf_version": version,
234
+ }
235
+
236
+ if jpr_api_key:
237
+ data["jpr_api_key"] = jpr_api_key
238
+
230
239
  response = requests.post(
231
240
  f"{os.environ.get('JIVAS_BASE_URL', 'http://localhost:8000')}/walker/import_agent",
232
- json={"daf_name": agent_name, "daf_version": version},
241
+ json=data,
233
242
  headers={
234
243
  "Content-Type": "application/json",
235
244
  "Accept": "application/json",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jvcli
3
- Version: 2.1.4
3
+ Version: 2.1.6
4
4
  Summary: CLI tool for Jivas Package Repository
5
5
  Home-page: https://github.com/TrueSelph/jvcli
6
6
  Author: TrueSelph Inc.
@@ -10,31 +10,31 @@ jvcli/commands/create.py,sha256=PQf1KD-rcCj5I-YOSZXUjUOkMSgyFxyO9qQqtm0ssFk,1317
10
10
  jvcli/commands/download.py,sha256=GiLX_43CQOW9d5vF04fAszOWh3AB-7Mgote4tJ9RVng,3416
11
11
  jvcli/commands/info.py,sha256=NyIDpR_AGMMSFPE0tFZv4dIuv_gwqrfd589zQAA_Q3s,2685
12
12
  jvcli/commands/publish.py,sha256=TntkWRK6P4m0aTWRmFQtT5jYeEJqgxWJKvpUiHlrTQA,6637
13
- jvcli/commands/server.py,sha256=ogf_A3nP4pKY623QCf_AjFZs-UBqCkoWcUsSJpwsrdE,8229
13
+ jvcli/commands/server.py,sha256=H6zU15cLKUOxd5cvCKtiQ8cmib0fZGACf-A_e5ttaWg,8417
14
14
  jvcli/commands/startproject.py,sha256=cU88G4wfTA9_3QeoLK3HbYKLqxQxfpyeV8m8P45uA10,3405
15
15
  jvcli/commands/update.py,sha256=LwCLg-W1b8WSdFkiiJ8WwTit2HJXTLpM5OQ4WBTe9C4,1997
16
- jvcli/templates/2.1.4/project/README.md,sha256=f3njSjmQZRIK0lJ-0udH4118G_GQsYGVNKNrknRUVQQ,16639
17
- jvcli/templates/2.1.4/project/env.example,sha256=PFTk68ZJOvO0wT4pvy2QPxSIzCHAmBVCZDnOcTqmDbQ,1325
18
- jvcli/templates/2.1.4/project/gitignore.example,sha256=KG1wl-o8ltNs4d8qCVgok5F2waUYqCJ5-HJq58Kh79I,530
19
- jvcli/templates/2.1.4/project/globals.jac,sha256=CEt7L25wEZfE6TupqpM1ilHbtJMQQWExDQ5GJlkHPts,56
20
- jvcli/templates/2.1.4/project/main.jac,sha256=6dw30dozEqSEVb1ELn3Ttk4lPqnn-LZLoV1gGzGmC14,40
21
- jvcli/templates/2.1.4/project/actions/README.md,sha256=z92-Oc2Py6zVRb2BBzbSWBdHaXTOledSHsRqQYOf2Bw,1742
22
- jvcli/templates/2.1.4/project/daf/README.md,sha256=HKzoqEM7991NStDdL4lgWzhbv9qCyGW8Lspy0WREPo0,1682
23
- jvcli/templates/2.1.4/project/tests/README.md,sha256=-1ZXkxuUKa6tMw_jlF3rpCvUFq8ijW2L-nSuAkbCANo,917
24
- jvcli/templates/2.1.4/sourcefiles/CHANGELOG.md,sha256=aci-j1gPbzyywQyPY9M2PJkZLVTKgdDuJYcFpdPpKHQ,66
25
- jvcli/templates/2.1.4/sourcefiles/README.md,sha256=VcLV54kkjp_m-cVVuH_OTdIJ39T41sM2TwKH9ISyqbk,51
26
- jvcli/templates/2.1.4/sourcefiles/action_app.py,sha256=v0aUmIpzpzkaa1zbMl1Ixf_3_fCqZqji-euefgh8r48,743
27
- jvcli/templates/2.1.4/sourcefiles/action_archetype.jac,sha256=s-JrUMa0mC1aqs5px2iKJHFhTRZIlvD787AJsBn-eu0,1375
28
- jvcli/templates/2.1.4/sourcefiles/action_info.yaml,sha256=rOwJCK2F7ew4olydbPr2d1R0W0MbAX9v1QVWuzA-sXo,303
29
- jvcli/templates/2.1.4/sourcefiles/action_lib.jac,sha256=ZpptC4rcHL9hIxf2egHAeZLPOuPAIbpMHoDnCzfcxQI,62
30
- jvcli/templates/2.1.4/sourcefiles/agent_descriptor.yaml,sha256=5spl44ytEdvTWuJFe1aJcw10usmxrrqwgNDkyfXW_xk,746
31
- jvcli/templates/2.1.4/sourcefiles/agent_info.yaml,sha256=3olXRQDQG-543o7zSWWT23kJsK29QGhdx6-tOLXvCk8,207
32
- jvcli/templates/2.1.4/sourcefiles/agent_knowledge.yaml,sha256=hI0ifr0ICiZGce-oUFovBOmDWxGU1Z2M10WyZH_wS2g,284
33
- jvcli/templates/2.1.4/sourcefiles/agent_memory.yaml,sha256=_MBgObZcW1UzwWuYQVJiPZ_7TvYbGrDgd-xMuzJEkVo,9
34
- jvcli/templates/2.1.4/sourcefiles/interact_action_archetype.jac,sha256=S37dEHyoCkxCu3gTOOTe0UQIUD11XOEQb0vffm9c-yk,1735
35
- jvcli-2.1.4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
36
- jvcli-2.1.4.dist-info/METADATA,sha256=-uE1OLZHRbch07A3BFLjdISqSVgxrBPPPgoVtN3Rgds,20458
37
- jvcli-2.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
- jvcli-2.1.4.dist-info/entry_points.txt,sha256=XunGcL0LWmIMIytaUckUA27czEf8M2Y4aTOfYIpOgrQ,42
39
- jvcli-2.1.4.dist-info/top_level.txt,sha256=akZnN9Zy1dFT93N0ms-C8ZXUn-xlhq37nO3jSRp0Y6o,6
40
- jvcli-2.1.4.dist-info/RECORD,,
16
+ jvcli/templates/2.1.6/project/README.md,sha256=f3njSjmQZRIK0lJ-0udH4118G_GQsYGVNKNrknRUVQQ,16639
17
+ jvcli/templates/2.1.6/project/env.example,sha256=PFTk68ZJOvO0wT4pvy2QPxSIzCHAmBVCZDnOcTqmDbQ,1325
18
+ jvcli/templates/2.1.6/project/gitignore.example,sha256=KG1wl-o8ltNs4d8qCVgok5F2waUYqCJ5-HJq58Kh79I,530
19
+ jvcli/templates/2.1.6/project/globals.jac,sha256=CEt7L25wEZfE6TupqpM1ilHbtJMQQWExDQ5GJlkHPts,56
20
+ jvcli/templates/2.1.6/project/main.jac,sha256=6dw30dozEqSEVb1ELn3Ttk4lPqnn-LZLoV1gGzGmC14,40
21
+ jvcli/templates/2.1.6/project/actions/README.md,sha256=z92-Oc2Py6zVRb2BBzbSWBdHaXTOledSHsRqQYOf2Bw,1742
22
+ jvcli/templates/2.1.6/project/daf/README.md,sha256=HKzoqEM7991NStDdL4lgWzhbv9qCyGW8Lspy0WREPo0,1682
23
+ jvcli/templates/2.1.6/project/tests/README.md,sha256=-1ZXkxuUKa6tMw_jlF3rpCvUFq8ijW2L-nSuAkbCANo,917
24
+ jvcli/templates/2.1.6/sourcefiles/CHANGELOG.md,sha256=aci-j1gPbzyywQyPY9M2PJkZLVTKgdDuJYcFpdPpKHQ,66
25
+ jvcli/templates/2.1.6/sourcefiles/README.md,sha256=VcLV54kkjp_m-cVVuH_OTdIJ39T41sM2TwKH9ISyqbk,51
26
+ jvcli/templates/2.1.6/sourcefiles/action_app.py,sha256=v0aUmIpzpzkaa1zbMl1Ixf_3_fCqZqji-euefgh8r48,743
27
+ jvcli/templates/2.1.6/sourcefiles/action_archetype.jac,sha256=s-JrUMa0mC1aqs5px2iKJHFhTRZIlvD787AJsBn-eu0,1375
28
+ jvcli/templates/2.1.6/sourcefiles/action_info.yaml,sha256=rOwJCK2F7ew4olydbPr2d1R0W0MbAX9v1QVWuzA-sXo,303
29
+ jvcli/templates/2.1.6/sourcefiles/action_lib.jac,sha256=ZpptC4rcHL9hIxf2egHAeZLPOuPAIbpMHoDnCzfcxQI,62
30
+ jvcli/templates/2.1.6/sourcefiles/agent_descriptor.yaml,sha256=5spl44ytEdvTWuJFe1aJcw10usmxrrqwgNDkyfXW_xk,746
31
+ jvcli/templates/2.1.6/sourcefiles/agent_info.yaml,sha256=3olXRQDQG-543o7zSWWT23kJsK29QGhdx6-tOLXvCk8,207
32
+ jvcli/templates/2.1.6/sourcefiles/agent_knowledge.yaml,sha256=hI0ifr0ICiZGce-oUFovBOmDWxGU1Z2M10WyZH_wS2g,284
33
+ jvcli/templates/2.1.6/sourcefiles/agent_memory.yaml,sha256=_MBgObZcW1UzwWuYQVJiPZ_7TvYbGrDgd-xMuzJEkVo,9
34
+ jvcli/templates/2.1.6/sourcefiles/interact_action_archetype.jac,sha256=S37dEHyoCkxCu3gTOOTe0UQIUD11XOEQb0vffm9c-yk,1735
35
+ jvcli-2.1.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
36
+ jvcli-2.1.6.dist-info/METADATA,sha256=Xttn_2seLAGuJyZSkY4OF-UuoOmXBh5GgOoOCF5cU0M,20458
37
+ jvcli-2.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
+ jvcli-2.1.6.dist-info/entry_points.txt,sha256=XunGcL0LWmIMIytaUckUA27czEf8M2Y4aTOfYIpOgrQ,42
39
+ jvcli-2.1.6.dist-info/top_level.txt,sha256=akZnN9Zy1dFT93N0ms-C8ZXUn-xlhq37nO3jSRp0Y6o,6
40
+ jvcli-2.1.6.dist-info/RECORD,,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes