zrb 1.15.0__py3-none-any.whl → 1.15.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.
@@ -64,7 +64,7 @@ class LLMContextConfig:
64
64
  for _, sections in reversed(all_sections):
65
65
  for key, value in sections.items():
66
66
  if key.startswith("Workflow:"):
67
- workflow_name = key.replace("Workflow:", "").strip()
67
+ workflow_name = key.replace("Workflow:", "").lower().strip()
68
68
  if workflow_name not in workflows:
69
69
  workflows[workflow_name] = value
70
70
  return workflows
zrb/task/llm/prompt.py CHANGED
@@ -73,7 +73,7 @@ def get_modes(
73
73
  ctx: AnyContext,
74
74
  modes_attr: StrListAttr | None,
75
75
  render_modes: bool,
76
- ) -> str:
76
+ ) -> list[str]:
77
77
  """Gets the modes, prioritizing task-specific, then default."""
78
78
  raw_modes = get_str_list_attr(
79
79
  ctx,
@@ -82,7 +82,7 @@ def get_modes(
82
82
  )
83
83
  if raw_modes is None:
84
84
  raw_modes = []
85
- modes = [mode.strip() for mode in raw_modes if mode.strip() != ""]
85
+ modes = [mode.strip().lower() for mode in raw_modes if mode.strip() != ""]
86
86
  if len(modes) > 0:
87
87
  return modes
88
88
  return llm_config.default_modes or []
@@ -96,15 +96,15 @@ def get_workflow_prompt(
96
96
  modes = get_modes(ctx, modes_attr, render_modes)
97
97
  # Get user-defined workflows
98
98
  workflows = {
99
- workflow_name: content
99
+ workflow_name.strip().lower(): content
100
100
  for workflow_name, content in llm_context_config.get_workflows().items()
101
- if workflow_name in modes
101
+ if workflow_name.strip().lower() in modes
102
102
  }
103
103
  # Get requested builtin-workflow names
104
104
  requested_builtin_workflow_names = [
105
- workflow_name
105
+ workflow_name.lower()
106
106
  for workflow_name in ("coding", "copywriting", "researching")
107
- if workflow_name in modes and workflow_name not in workflows
107
+ if workflow_name.lower() in modes and workflow_name.lower() not in workflows
108
108
  ]
109
109
  # add builtin-workflows if requested
110
110
  if len(requested_builtin_workflow_names) > 0:
@@ -1,8 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: zrb
3
- Version: 1.15.0
3
+ Version: 1.15.1
4
4
  Summary: Your Automation Powerhouse
5
- Home-page: https://github.com/state-alchemists/zrb
6
5
  License: AGPL-3.0-or-later
7
6
  Keywords: Automation,Task Runner,Code Generator,Monorepo,Low Code
8
7
  Author: Go Frendi Gunawan
@@ -13,6 +12,7 @@ Classifier: Programming Language :: Python :: 3
13
12
  Classifier: Programming Language :: Python :: 3.10
14
13
  Classifier: Programming Language :: Python :: 3.11
15
14
  Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
16
  Provides-Extra: all
17
17
  Provides-Extra: playwright
18
18
  Provides-Extra: rag
@@ -35,6 +35,7 @@ Requires-Dist: requests (>=2.32.4,<3.0.0)
35
35
  Requires-Dist: tiktoken (>=0.8.0,<0.9.0)
36
36
  Requires-Dist: ulid-py (>=1.1.0,<2.0.0)
37
37
  Project-URL: Documentation, https://github.com/state-alchemists/zrb
38
+ Project-URL: Homepage, https://github.com/state-alchemists/zrb
38
39
  Project-URL: Repository, https://github.com/state-alchemists/zrb
39
40
  Description-Content-Type: text/markdown
40
41
 
@@ -226,7 +226,7 @@ zrb/config/default_prompt/repo_summarizer_system_prompt.md,sha256=fpG5B416OK3oE4
226
226
  zrb/config/default_prompt/summarization_prompt.md,sha256=hRXH5E78TugSze_Hgp-KTbIhCeyrMcJg-pSXvXH3C9E,1629
227
227
  zrb/config/default_prompt/system_prompt.md,sha256=Jkne5n9HJcBCgfeENwxvqH-kbDO2CaiUzqR4VoWMRHY,3054
228
228
  zrb/config/llm_config.py,sha256=xt-Xf8ZuNoUT_GKCSFz5yy0BhbeHzxP-jrezB06WeiY,8857
229
- zrb/config/llm_context/config.py,sha256=zeqSVOKK5yyApvqTbcO3ayGxtyoag22qlWWaXp1nINs,4950
229
+ zrb/config/llm_context/config.py,sha256=6ipfKi_c8If-5nynw_kBTfweyS4MKjLZVQlSW4PWqZQ,4958
230
230
  zrb/config/llm_context/config_parser.py,sha256=h95FbOjvVobhrsfGtG_BY3hxS-OLzQj-9F5vGZuehkY,1473
231
231
  zrb/config/llm_rate_limitter.py,sha256=P4vR7qxwiGwjlKx2kHcfdIxwGbJB98vdN-UQEH-Q2WU,4894
232
232
  zrb/config/web_auth_config.py,sha256=_PXatQTYh2mX9H3HSYSQKp13zm1RlLyVIoeIr6KYMQ8,6279
@@ -356,7 +356,7 @@ zrb/task/llm/default_workflow/researching.md,sha256=KD-aYHFHir6Ti-4FsBBtGwiI0seS
356
356
  zrb/task/llm/error.py,sha256=QR-nIohS6pBpC_16cWR-fw7Mevo1sNYAiXMBsh_CJDE,4157
357
357
  zrb/task/llm/history_summarization.py,sha256=YaK3BR7gJVi9f8G5loosNAaO4y7K3ck_4bJ9GuOChXk,8028
358
358
  zrb/task/llm/print_node.py,sha256=Z6J1n024MkYIeO4xGnDHmUHk9yTjJRVZRxAC5schE7w,4242
359
- zrb/task/llm/prompt.py,sha256=p_SWitTj6twftae0c_GM7mBdlF9kO9TpmmdKaXGJPAY,10460
359
+ zrb/task/llm/prompt.py,sha256=amFd0UdXDToYgjOwOFDe62EOg81VvjHvdp9omX1NIgg,10530
360
360
  zrb/task/llm/tool_wrapper.py,sha256=kmpixQUFq4Hxj9VMgaaoZd8juzTFou9hIGjU7gZENYs,8297
361
361
  zrb/task/llm/typing.py,sha256=c8VAuPBw_4A3DxfYdydkgedaP-LU61W9_wj3m3CAX1E,58
362
362
  zrb/task/llm_task.py,sha256=1yPs9z8nhA9txMJVQZf3N4e-n6wys0nZ9Qk1lOx8PLg,14448
@@ -406,7 +406,7 @@ zrb/util/todo.py,sha256=r9_KYF2-hLKMNjsp6AFK9zivykMrywd-kJ4bCwfdafI,19323
406
406
  zrb/util/todo_model.py,sha256=hhzAX-uFl5rsg7iVX1ULlJOfBtblwQ_ieNUxBWfc-Os,1670
407
407
  zrb/xcom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
408
408
  zrb/xcom/xcom.py,sha256=o79rxR9wphnShrcIushA0Qt71d_p3ZTxjNf7x9hJB78,1571
409
- zrb-1.15.0.dist-info/METADATA,sha256=U0BCFnN5tq5rylSBYonovK8vTUJfZ6SBeHAmH2FK6Ro,9744
410
- zrb-1.15.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
411
- zrb-1.15.0.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
412
- zrb-1.15.0.dist-info/RECORD,,
409
+ zrb-1.15.1.dist-info/METADATA,sha256=R-ZupKPzJzLZ2etZJrqYz1BdgJzzUbgv2aXaBX214pA,9807
410
+ zrb-1.15.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
411
+ zrb-1.15.1.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
412
+ zrb-1.15.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any