codee-agent 0.10.0__tar.gz → 0.11.0__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.
- {codee_agent-0.10.0 → codee_agent-0.11.0}/PKG-INFO +1 -1
- {codee_agent-0.10.0 → codee_agent-0.11.0}/pyproject.toml +1 -1
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/admin.py +259 -197
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/admin_service.py +87 -5
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/test_admin.py +28 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/test_admin_service.py +158 -20
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_abstract/provider.py +25 -7
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_claude_code/provider.py +4 -6
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_claude_code/test.py +12 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_codex/provider.py +6 -6
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_codex/test.py +12 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_github_copilot/provider.py +9 -7
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_github_copilot/test.py +18 -1
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_opencode/provider.py +9 -3
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_opencode/test.py +14 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_main_context/context.py +6 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/LICENSE +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/README.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/.gitignore +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/admin_api.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/admin_cli.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/agent_cli.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/coding_agents.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/conftest.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/executor.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/init_cli.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/claude_key_rotation.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/cron_describe.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/mcp_config.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/plugins.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/runs_db.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/runtime_control.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/test_claude_key_rotation.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/test_mcp_config.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/test_plugins.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/test_runs_db.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/test_trigger_cron_skills.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/test_trigger_email_skills.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/test_trigger_issue_skills.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/trigger_aws_sqs_skills.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/trigger_cron_skills.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/trigger_email_skills.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/lib/trigger_issue_skills.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/mail_server.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/setup_wizard.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/start_cli.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/tasks_providers.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/AGENTS.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/CLAUDE.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/skills/aws-sqs-alarm-response/SKILL.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/skills/cron-research-5xx-errors/SKILL.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/skills/story-code-reviewer/SKILL.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/skills/story-developer/SKILL.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/skills/story-planner/SKILL.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/skills/story-planner/assets/readme-template.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/skills/story-qa/SKILL.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/skills/story-security-reviewer/SKILL.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/skills/task-code-reviewer/SKILL.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/skills/task-developer/SKILL.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/skills/task-qa/SKILL.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/templates/skills/task-security-reviewer/SKILL.md +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/test_admin_api.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/test_admin_cli.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/test_agent_cli.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/test_coding_agents.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/test_executor.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/test_init_cli.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/test_memory_index.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/test_setup_wizard.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/test_start_cli.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee/workflow_graph.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_admin/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_admin/codee_admin.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_abstract/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_abstract/acp.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_abstract/test.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_abstract/transcript.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_claude_code/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_claude_code/account.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_claude_code/credentials.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_claude_code/greeting.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_claude_code/oauth.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_claude_code/usage.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_codex/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_github_copilot/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_agent_opencode/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_database/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_database/claude_code_accounts.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_database/database.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_database/oauth_tokens.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_files/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_files/plugin.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_files/test_files.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_main_context/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_main_context/logging.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_main_context/test_context.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_main_context/test_logging.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_plugin_abstract/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_plugin_abstract/plugin.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_tasks_abstract/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_tasks_abstract/provider.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_tasks_azure_devops/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_tasks_azure_devops/oauth.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_tasks_azure_devops/provider.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_tasks_azure_devops/test.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_tasks_jira/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_tasks_jira/provider.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_tasks_jira/test.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_teams/__init__.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_teams/auth.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_teams/decide.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_teams/graph.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_teams/plugin.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_teams/render.py +0 -0
- {codee_agent-0.10.0 → codee_agent-0.11.0}/src/codee_teams/test_teams.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codee-agent
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0
|
|
4
4
|
Summary: A virtual co-worker that picks up Jira and Azure DevOps tasks and solves them with coding agents.
|
|
5
5
|
Keywords: ai,agent,jira,azure-devops,claude-code,github-copilot,codex,opencode,automation
|
|
6
6
|
Author: Denis Kibalko
|
|
@@ -554,7 +554,7 @@ class RunRecord(BaseModel):
|
|
|
554
554
|
|
|
555
555
|
|
|
556
556
|
EMPTY_RUN = RunRecord(**{name: "" for name, field in
|
|
557
|
-
|
|
557
|
+
RunRecord.model_fields.items() if field.is_required()})
|
|
558
558
|
|
|
559
559
|
|
|
560
560
|
class AdminState(rx.State):
|
|
@@ -691,6 +691,14 @@ class AdminState(rx.State):
|
|
|
691
691
|
# from the one before it, so a watcher that can no longer reach this page
|
|
692
692
|
# cannot leave it on a spinner until Codee is restarted.
|
|
693
693
|
workflow_watch: int = 0
|
|
694
|
+
# The model the workflow is generated with, saved per coding agent: the one
|
|
695
|
+
# picked (empty for none) and every one that is tried, in order.
|
|
696
|
+
workflow_agent: str = ""
|
|
697
|
+
workflow_model: str = ""
|
|
698
|
+
workflow_models: list[str] = []
|
|
699
|
+
workflow_model_options: list[ModelOption] = []
|
|
700
|
+
workflow_model_query: str = ""
|
|
701
|
+
workflow_models_loading: bool = False
|
|
694
702
|
edge_menu_skills: list[str] = []
|
|
695
703
|
edge_menu_left: str = "0px"
|
|
696
704
|
edge_menu_top: str = "0px"
|
|
@@ -1168,8 +1176,8 @@ class AdminState(rx.State):
|
|
|
1168
1176
|
if not option.label]
|
|
1169
1177
|
for item in self.skill_plugin_fields if item.searchable}
|
|
1170
1178
|
labels = {key: await asyncio.to_thread(
|
|
1171
|
-
|
|
1172
|
-
|
|
1179
|
+
SERVICE.describe_plugin_field, key, values)
|
|
1180
|
+
for key, values in unnamed.items() if values}
|
|
1173
1181
|
if not any(labels.values()):
|
|
1174
1182
|
return
|
|
1175
1183
|
async with self:
|
|
@@ -1619,6 +1627,74 @@ class AdminState(rx.State):
|
|
|
1619
1627
|
print(f"[admin] Failed to refresh runs: {error}")
|
|
1620
1628
|
await asyncio.sleep(1)
|
|
1621
1629
|
|
|
1630
|
+
@rx.var
|
|
1631
|
+
def filtered_workflow_models(self) -> list[ModelOption]:
|
|
1632
|
+
query = self.workflow_model_query.strip().lower()
|
|
1633
|
+
return [
|
|
1634
|
+
model for model in self.workflow_model_options
|
|
1635
|
+
if not query or query in f"{model.name} {model.id}".lower()
|
|
1636
|
+
]
|
|
1637
|
+
|
|
1638
|
+
@rx.var
|
|
1639
|
+
def workflow_model_label(self) -> str:
|
|
1640
|
+
if not self.workflow_model:
|
|
1641
|
+
return "Best available"
|
|
1642
|
+
model = _model_option(self.workflow_model_options, self.workflow_model)
|
|
1643
|
+
return model.name if model else self.workflow_model
|
|
1644
|
+
|
|
1645
|
+
@rx.var
|
|
1646
|
+
def custom_workflow_model_query(self) -> str:
|
|
1647
|
+
query = self.workflow_model_query.strip()
|
|
1648
|
+
if not query or _model_option(self.workflow_model_options, query):
|
|
1649
|
+
return ""
|
|
1650
|
+
return query
|
|
1651
|
+
|
|
1652
|
+
@rx.var
|
|
1653
|
+
def workflow_model_hint(self) -> str:
|
|
1654
|
+
"""Which models are tried, in order, as the line under the picker."""
|
|
1655
|
+
names = [model or "the agent's default" for model in self.workflow_models]
|
|
1656
|
+
return f"Tries {', then '.join(names)}." if names else ""
|
|
1657
|
+
|
|
1658
|
+
def set_workflow_model_query(self, value: str) -> None:
|
|
1659
|
+
self.workflow_model_query = value
|
|
1660
|
+
|
|
1661
|
+
def choose_workflow_model(self, model_id: str) -> Any:
|
|
1662
|
+
"""Save the model to generate with. The graph on screen stays as it is."""
|
|
1663
|
+
self.workflow_model_query = ""
|
|
1664
|
+
try:
|
|
1665
|
+
SERVICE.save_workflow_model(self.workflow_agent, model_id.strip())
|
|
1666
|
+
except OSError as error:
|
|
1667
|
+
return rx.toast.error(f"Could not save the model: {error}")
|
|
1668
|
+
self._show_workflow_model()
|
|
1669
|
+
return rx.toast.success(
|
|
1670
|
+
"Workflow model saved. Regenerate to use it.")
|
|
1671
|
+
|
|
1672
|
+
def _show_workflow_model(self) -> None:
|
|
1673
|
+
choice = SERVICE.workflow_model_choice()
|
|
1674
|
+
self.workflow_agent = choice["agent"]
|
|
1675
|
+
self.workflow_model = choice["model"]
|
|
1676
|
+
self.workflow_models = choice["models"]
|
|
1677
|
+
|
|
1678
|
+
@rx.event(background=True)
|
|
1679
|
+
async def load_workflow_model(self) -> None:
|
|
1680
|
+
"""Show the saved model, then fetch the agent's catalog for the picker."""
|
|
1681
|
+
async with self:
|
|
1682
|
+
self._show_workflow_model()
|
|
1683
|
+
agent = self.workflow_agent
|
|
1684
|
+
self.workflow_model_query = ""
|
|
1685
|
+
self.workflow_model_options = []
|
|
1686
|
+
self.workflow_models_loading = True
|
|
1687
|
+
try:
|
|
1688
|
+
models = await asyncio.to_thread(SERVICE.list_agent_models, agent)
|
|
1689
|
+
except Exception:
|
|
1690
|
+
models = []
|
|
1691
|
+
async with self:
|
|
1692
|
+
if self.workflow_agent != agent:
|
|
1693
|
+
return
|
|
1694
|
+
self.workflow_model_options = [
|
|
1695
|
+
ModelOption(**model) for model in models]
|
|
1696
|
+
self.workflow_models_loading = False
|
|
1697
|
+
|
|
1622
1698
|
@rx.event(background=True)
|
|
1623
1699
|
async def load_workflow(self, force: bool = False) -> None:
|
|
1624
1700
|
"""Show the workflow, attaching to a generation already under way.
|
|
@@ -2569,7 +2645,8 @@ def footer() -> rx.Component:
|
|
|
2569
2645
|
rx.text("Codee is developed by ",
|
|
2570
2646
|
footer_link("FuseBase", "https://thefusebase.com")),
|
|
2571
2647
|
rx.text("·", aria_hidden="true"),
|
|
2572
|
-
footer_link("Source code on GitHub",
|
|
2648
|
+
footer_link("Source code on GitHub",
|
|
2649
|
+
"https://github.com/fusebase-dev/codee"),
|
|
2573
2650
|
gap="0.5rem",
|
|
2574
2651
|
wrap="wrap",
|
|
2575
2652
|
align="center",
|
|
@@ -2660,7 +2737,8 @@ def shell(content: rx.Component) -> rx.Component:
|
|
|
2660
2737
|
min_height=rx.breakpoints(initial="auto", lg="100vh"),
|
|
2661
2738
|
),
|
|
2662
2739
|
rx.box(rx.box(content, flex="1", width="100%"), footer(),
|
|
2663
|
-
padding=rx.breakpoints(
|
|
2740
|
+
padding=rx.breakpoints(
|
|
2741
|
+
initial="1.25rem", md="2rem", xl="3rem"),
|
|
2664
2742
|
display="flex", flex_direction="column", gap="3rem",
|
|
2665
2743
|
min_width="0", max_width="1440px", width="100%"),
|
|
2666
2744
|
columns=rx.breakpoints(initial="1fr", lg="230px minmax(0, 1fr)"),
|
|
@@ -3226,7 +3304,7 @@ def recent_runs_panel() -> rx.Component:
|
|
|
3226
3304
|
def dashboard_page() -> rx.Component:
|
|
3227
3305
|
return shell(rx.vstack(
|
|
3228
3306
|
page_header(
|
|
3229
|
-
"Dashboard", "Run activity and live
|
|
3307
|
+
"Dashboard", "Run activity and live agent sessions."),
|
|
3230
3308
|
# First, because it is the only part of this page that answers "what is
|
|
3231
3309
|
# happening right now"; the counts and the chart are history.
|
|
3232
3310
|
running_panel(),
|
|
@@ -3381,12 +3459,62 @@ def _model_option_row(option: ModelOption, choose_model: Any) -> rx.Component:
|
|
|
3381
3459
|
on_click=choose_model(option.id)))
|
|
3382
3460
|
|
|
3383
3461
|
|
|
3384
|
-
def
|
|
3385
|
-
|
|
3386
|
-
|
|
3462
|
+
def model_select(*, label: Any, query: Any, set_query: Any, custom_query: Any,
|
|
3463
|
+
choose: Any, options: Any, loading: Any,
|
|
3464
|
+
default_label: str = "Agent default",
|
|
3465
|
+
width: str = "100%") -> rx.Component:
|
|
3466
|
+
"""Searchable model select that also accepts a model code typed by hand.
|
|
3387
3467
|
|
|
3388
|
-
|
|
3389
|
-
|
|
3468
|
+
The agent's own catalog is only a convenience: anything typed here is used
|
|
3469
|
+
verbatim, so a model the agent gained after the list was built still works.
|
|
3470
|
+
"""
|
|
3471
|
+
return rx.popover.root(
|
|
3472
|
+
rx.popover.trigger(
|
|
3473
|
+
rx.button(
|
|
3474
|
+
rx.hstack(rx.text(label), rx.spacer(),
|
|
3475
|
+
rx.icon("chevrons-up-down", size=14),
|
|
3476
|
+
align="center", width="100%"),
|
|
3477
|
+
variant="surface", color_scheme="gray", width=width,
|
|
3478
|
+
type="button")),
|
|
3479
|
+
rx.popover.content(
|
|
3480
|
+
rx.vstack(
|
|
3481
|
+
rx.input(placeholder="Search models, or type a model code",
|
|
3482
|
+
value=query, on_change=set_query,
|
|
3483
|
+
auto_focus=True, width="100%"),
|
|
3484
|
+
rx.cond(
|
|
3485
|
+
custom_query != "",
|
|
3486
|
+
model_menu_item(
|
|
3487
|
+
rx.button(
|
|
3488
|
+
rx.hstack(rx.icon("plus", size=14),
|
|
3489
|
+
rx.text("Use "), rx.code(custom_query),
|
|
3490
|
+
align="center", spacing="2"),
|
|
3491
|
+
variant="soft", width="100%",
|
|
3492
|
+
justify_content="start",
|
|
3493
|
+
padding="0.45rem 0.6rem",
|
|
3494
|
+
on_click=choose(custom_query)))),
|
|
3495
|
+
rx.scroll_area(
|
|
3496
|
+
rx.vstack(
|
|
3497
|
+
model_menu_item(
|
|
3498
|
+
rx.button(
|
|
3499
|
+
default_label, variant="ghost",
|
|
3500
|
+
color_scheme="gray", width="100%",
|
|
3501
|
+
justify_content="start",
|
|
3502
|
+
padding="0.45rem 0.6rem",
|
|
3503
|
+
on_click=choose(""))),
|
|
3504
|
+
rx.foreach(
|
|
3505
|
+
options,
|
|
3506
|
+
lambda option: _model_option_row(option, choose)),
|
|
3507
|
+
rx.cond(
|
|
3508
|
+
loading,
|
|
3509
|
+
rx.text("Loading models from the coding agent…",
|
|
3510
|
+
color=MUTED, font_size="0.8rem",
|
|
3511
|
+
padding="0.5rem")),
|
|
3512
|
+
spacing="1", width="100%"),
|
|
3513
|
+
type="auto", scrollbars="vertical",
|
|
3514
|
+
max_height="15rem", width="100%"),
|
|
3515
|
+
spacing="2", width="100%"),
|
|
3516
|
+
width="24rem", max_width="calc(100vw - 3rem)"),
|
|
3517
|
+
)
|
|
3390
3518
|
|
|
3391
3519
|
|
|
3392
3520
|
def agent_picker() -> rx.Component:
|
|
@@ -3403,63 +3531,17 @@ def agent_picker() -> rx.Component:
|
|
|
3403
3531
|
|
|
3404
3532
|
|
|
3405
3533
|
def model_picker() -> rx.Component:
|
|
3406
|
-
"""
|
|
3407
|
-
|
|
3408
|
-
The agent's own catalog is only a convenience — anything typed here is saved
|
|
3409
|
-
verbatim, so a model the agent gained after this list was built still works.
|
|
3410
|
-
"""
|
|
3534
|
+
"""Which of the picked agent's models runs this skill."""
|
|
3411
3535
|
return field(
|
|
3412
3536
|
"Model",
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
rx.popover.content(
|
|
3422
|
-
rx.vstack(
|
|
3423
|
-
rx.input(placeholder="Search models, or type a model code",
|
|
3424
|
-
value=AdminState.model_query,
|
|
3425
|
-
on_change=AdminState.set_model_query,
|
|
3426
|
-
auto_focus=True, width="100%"),
|
|
3427
|
-
rx.cond(
|
|
3428
|
-
AdminState.custom_model_query != "",
|
|
3429
|
-
model_menu_item(
|
|
3430
|
-
rx.button(
|
|
3431
|
-
rx.hstack(rx.icon("plus", size=14),
|
|
3432
|
-
rx.text("Use "),
|
|
3433
|
-
rx.code(
|
|
3434
|
-
AdminState.custom_model_query),
|
|
3435
|
-
align="center", spacing="2"),
|
|
3436
|
-
variant="soft", width="100%",
|
|
3437
|
-
justify_content="start",
|
|
3438
|
-
padding="0.45rem 0.6rem",
|
|
3439
|
-
on_click=AdminState.choose_model(
|
|
3440
|
-
AdminState.custom_model_query)))),
|
|
3441
|
-
rx.scroll_area(
|
|
3442
|
-
rx.vstack(
|
|
3443
|
-
model_menu_item(
|
|
3444
|
-
rx.button(
|
|
3445
|
-
"Agent default", variant="ghost",
|
|
3446
|
-
color_scheme="gray", width="100%",
|
|
3447
|
-
justify_content="start",
|
|
3448
|
-
padding="0.45rem 0.6rem",
|
|
3449
|
-
on_click=AdminState.choose_model(""))),
|
|
3450
|
-
rx.foreach(AdminState.filtered_models,
|
|
3451
|
-
model_option_row),
|
|
3452
|
-
rx.cond(
|
|
3453
|
-
AdminState.models_loading,
|
|
3454
|
-
rx.text("Loading models from the coding agent…",
|
|
3455
|
-
color=MUTED, font_size="0.8rem",
|
|
3456
|
-
padding="0.5rem")),
|
|
3457
|
-
spacing="1", width="100%"),
|
|
3458
|
-
type="auto", scrollbars="vertical",
|
|
3459
|
-
max_height="15rem", width="100%"),
|
|
3460
|
-
spacing="2", width="100%"),
|
|
3461
|
-
width="24rem"),
|
|
3462
|
-
),
|
|
3537
|
+
model_select(
|
|
3538
|
+
label=AdminState.skill_model_label,
|
|
3539
|
+
query=AdminState.model_query,
|
|
3540
|
+
set_query=AdminState.set_model_query,
|
|
3541
|
+
custom_query=AdminState.custom_model_query,
|
|
3542
|
+
choose=AdminState.choose_model,
|
|
3543
|
+
options=AdminState.filtered_models,
|
|
3544
|
+
loading=AdminState.models_loading),
|
|
3463
3545
|
rx.text(
|
|
3464
3546
|
rx.cond(AdminState.skill_model == "",
|
|
3465
3547
|
"Runs on whatever that agent defaults to.",
|
|
@@ -3685,11 +3767,11 @@ def plugin_skill_field(item: PluginSkillField) -> rx.Component:
|
|
|
3685
3767
|
return AdminState.set_skill_plugin_field(item.key, value)
|
|
3686
3768
|
return field(item.label,
|
|
3687
3769
|
rx.cond(item.tags, tags_input(item),
|
|
3688
|
-
|
|
3770
|
+
rx.cond(item.searchable, field_picker(item),
|
|
3689
3771
|
rx.cond(item.choices.length() > 0,
|
|
3690
3772
|
choice_select(item.choices, item.value,
|
|
3691
3773
|
on_change),
|
|
3692
|
-
|
|
3774
|
+
rx.cond(item.multiline,
|
|
3693
3775
|
rx.text_area(value=item.value,
|
|
3694
3776
|
placeholder=item.placeholder,
|
|
3695
3777
|
on_change=on_change, width="100%",
|
|
@@ -3760,71 +3842,72 @@ def skill_editor() -> rx.Component:
|
|
|
3760
3842
|
# A disabled fieldset disables every control inside it, the pickers
|
|
3761
3843
|
# included, which is all a plugin's skill needs to be read-only.
|
|
3762
3844
|
rx.el.fieldset(rx.vstack(
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
rx.
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3845
|
+
rx.grid(
|
|
3846
|
+
field("Name", rx.input(value=AdminState.skill_name,
|
|
3847
|
+
on_change=AdminState.set_skill_name, width="100%")),
|
|
3848
|
+
field("Skill type", rx.select(SKILL_TYPES, value=AdminState.skill_type,
|
|
3849
|
+
on_change=AdminState.set_skill_type, width="100%")),
|
|
3850
|
+
columns=rx.breakpoints(initial="1", md="2"), gap="1rem", width="100%"),
|
|
3851
|
+
field("Description", rx.text_area(value=AdminState.skill_description,
|
|
3852
|
+
on_change=AdminState.set_skill_description,
|
|
3853
|
+
width="100%", min_height="5rem")),
|
|
3854
|
+
rx.grid(agent_picker(),
|
|
3855
|
+
# Effort and context window share the model's column; the
|
|
3856
|
+
# model takes all of it when the picked model has neither.
|
|
3857
|
+
rx.flex(rx.box(model_picker(), flex="1", min_width="0"),
|
|
3858
|
+
effort_picker(),
|
|
3859
|
+
context_picker(),
|
|
3860
|
+
direction=rx.breakpoints(
|
|
3861
|
+
initial="column", sm="row"),
|
|
3862
|
+
gap="1rem", align="start", width="100%"),
|
|
3863
|
+
columns=rx.breakpoints(initial="1", md="2"), gap="1rem",
|
|
3864
|
+
align="start", width="100%"),
|
|
3865
|
+
rx.cond(AdminState.skill_type == "cron trigger",
|
|
3866
|
+
field("Cron expression", rx.input(value=AdminState.skill_cron,
|
|
3867
|
+
on_change=AdminState.set_skill_cron, width="100%"),
|
|
3868
|
+
rx.hstack(rx.icon("clock-3", size=14), rx.text(AdminState.cron_description),
|
|
3869
|
+
color=MUTED, font_size="0.82rem"))),
|
|
3870
|
+
rx.cond(AdminState.skill_type == "email trigger",
|
|
3871
|
+
field("Email address", rx.input(value=AdminState.skill_email,
|
|
3872
|
+
on_change=AdminState.set_skill_email, width="100%"))),
|
|
3873
|
+
rx.cond(AdminState.skill_type == "aws-sqs trigger",
|
|
3874
|
+
field("AWS SQS queue", rx.input(value=AdminState.skill_sqs,
|
|
3875
|
+
on_change=AdminState.set_skill_sqs, width="100%"))),
|
|
3876
|
+
rx.cond(AdminState.skill_type == "issue trigger",
|
|
3877
|
+
rx.grid(
|
|
3878
|
+
field("Issue type", rx.select(
|
|
3879
|
+
AdminState.skill_issue_types,
|
|
3880
|
+
value=AdminState.skill_issue_type,
|
|
3881
|
+
on_change=AdminState.set_skill_issue_type, width="100%")),
|
|
3882
|
+
field("Issue statuses", rx.input(value=AdminState.skill_issue_status,
|
|
3883
|
+
on_change=AdminState.set_skill_issue_status,
|
|
3884
|
+
placeholder="Ready, In progress", width="100%")),
|
|
3885
|
+
columns=rx.breakpoints(initial="1", md="2"), gap="1rem", width="100%")),
|
|
3886
|
+
rx.cond(AdminState.active_plugin_fields.length() > 0,
|
|
3887
|
+
rx.vstack(rx.foreach(AdminState.active_plugin_fields,
|
|
3888
|
+
plugin_skill_field),
|
|
3889
|
+
spacing="4", width="100%")),
|
|
3890
|
+
rx.vstack(
|
|
3891
|
+
rx.checkbox("Use other fields in frontmatter (for instance allowed-tools)",
|
|
3892
|
+
checked=AdminState.skill_extra_enabled,
|
|
3893
|
+
on_change=AdminState.set_skill_extra_enabled,
|
|
3894
|
+
size="2"),
|
|
3895
|
+
rx.cond(
|
|
3896
|
+
AdminState.skill_extra_enabled,
|
|
3897
|
+
field("Other frontmatter fields",
|
|
3898
|
+
rx.text_area(value=AdminState.skill_extra,
|
|
3899
|
+
on_change=AdminState.set_skill_extra,
|
|
3900
|
+
placeholder="allowed-tools: Bash",
|
|
3901
|
+
width="100%", min_height="7rem",
|
|
3902
|
+
font_family="IBM Plex Mono, monospace"),
|
|
3903
|
+
rx.text("YAML lines written into the frontmatter as they are.",
|
|
3904
|
+
color=MUTED, font_size="0.82rem"))),
|
|
3905
|
+
spacing="3", align="start", width="100%"),
|
|
3906
|
+
rx.cond(AdminState.active_trigger_description != "",
|
|
3907
|
+
trigger_description_panel()),
|
|
3908
|
+
field("Skill body", rx.text_area(value=AdminState.skill_body, on_change=AdminState.set_skill_body,
|
|
3909
|
+
width="100%", min_height="25rem",
|
|
3910
|
+
font_family="IBM Plex Mono, monospace")),
|
|
3828
3911
|
spacing="5", align="start", width="100%"),
|
|
3829
3912
|
disabled=read_only,
|
|
3830
3913
|
border="none", padding="0", margin="0", min_width="0",
|
|
@@ -4301,14 +4384,38 @@ def workflow_page() -> rx.Component:
|
|
|
4301
4384
|
"Workflow",
|
|
4302
4385
|
"Status transitions per work item, inferred from issue-trigger skills."),
|
|
4303
4386
|
rx.spacer(),
|
|
4304
|
-
rx.
|
|
4305
|
-
rx.
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4387
|
+
rx.vstack(
|
|
4388
|
+
rx.hstack(
|
|
4389
|
+
model_select(
|
|
4390
|
+
label=AdminState.workflow_model_label,
|
|
4391
|
+
query=AdminState.workflow_model_query,
|
|
4392
|
+
set_query=AdminState.set_workflow_model_query,
|
|
4393
|
+
custom_query=AdminState.custom_workflow_model_query,
|
|
4394
|
+
choose=AdminState.choose_workflow_model,
|
|
4395
|
+
options=AdminState.filtered_workflow_models,
|
|
4396
|
+
loading=AdminState.workflow_models_loading,
|
|
4397
|
+
default_label="Best available",
|
|
4398
|
+
width="15rem"),
|
|
4399
|
+
rx.button(
|
|
4400
|
+
rx.icon("refresh-cw", size=16),
|
|
4401
|
+
"Regenerate",
|
|
4402
|
+
variant="outline",
|
|
4403
|
+
loading=AdminState.workflow_running,
|
|
4404
|
+
on_click=AdminState.load_workflow(True),
|
|
4405
|
+
),
|
|
4406
|
+
spacing="3",
|
|
4407
|
+
align="center",
|
|
4408
|
+
wrap="wrap",
|
|
4409
|
+
),
|
|
4410
|
+
rx.text(AdminState.workflow_model_hint, color=MUTED,
|
|
4411
|
+
font_size="0.82rem", max_width="24rem"),
|
|
4412
|
+
spacing="2",
|
|
4413
|
+
align="start",
|
|
4414
|
+
max_width="100%",
|
|
4310
4415
|
),
|
|
4311
4416
|
align="start",
|
|
4417
|
+
wrap="wrap",
|
|
4418
|
+
gap="1rem",
|
|
4312
4419
|
width="100%",
|
|
4313
4420
|
),
|
|
4314
4421
|
rx.cond(
|
|
@@ -4949,62 +5056,14 @@ def agent_test_dialog() -> rx.Component:
|
|
|
4949
5056
|
color=MUTED),
|
|
4950
5057
|
field(
|
|
4951
5058
|
"Model",
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
variant="surface", color_scheme="gray",
|
|
4961
|
-
width="100%", type="button")),
|
|
4962
|
-
rx.popover.content(
|
|
4963
|
-
rx.vstack(
|
|
4964
|
-
rx.input(
|
|
4965
|
-
placeholder=(
|
|
4966
|
-
"Search models, or type a model code"),
|
|
4967
|
-
value=AdminState.agent_test_model_query,
|
|
4968
|
-
on_change=AdminState.set_agent_test_model_query,
|
|
4969
|
-
auto_focus=True, width="100%"),
|
|
4970
|
-
rx.cond(
|
|
4971
|
-
AdminState.custom_agent_test_model_query != "",
|
|
4972
|
-
model_menu_item(
|
|
4973
|
-
rx.button(
|
|
4974
|
-
rx.hstack(
|
|
4975
|
-
rx.icon("plus", size=14),
|
|
4976
|
-
rx.text("Use "),
|
|
4977
|
-
rx.code(
|
|
4978
|
-
AdminState.custom_agent_test_model_query),
|
|
4979
|
-
align="center", spacing="2"),
|
|
4980
|
-
variant="soft", width="100%",
|
|
4981
|
-
justify_content="start",
|
|
4982
|
-
padding="0.45rem 0.6rem",
|
|
4983
|
-
on_click=AdminState.choose_agent_test_model(
|
|
4984
|
-
AdminState.custom_agent_test_model_query)))),
|
|
4985
|
-
rx.scroll_area(
|
|
4986
|
-
rx.vstack(
|
|
4987
|
-
model_menu_item(
|
|
4988
|
-
rx.button(
|
|
4989
|
-
"Agent default", variant="ghost",
|
|
4990
|
-
color_scheme="gray", width="100%",
|
|
4991
|
-
justify_content="start",
|
|
4992
|
-
padding="0.45rem 0.6rem",
|
|
4993
|
-
on_click=AdminState.choose_agent_test_model(""))),
|
|
4994
|
-
rx.foreach(
|
|
4995
|
-
AdminState.filtered_agent_test_models,
|
|
4996
|
-
agent_test_model_option_row),
|
|
4997
|
-
rx.cond(
|
|
4998
|
-
AdminState.agent_test_models_loading,
|
|
4999
|
-
rx.text(
|
|
5000
|
-
"Loading models from the coding agent…",
|
|
5001
|
-
color=MUTED, font_size="0.8rem",
|
|
5002
|
-
padding="0.5rem")),
|
|
5003
|
-
spacing="1", width="100%"),
|
|
5004
|
-
type="auto", scrollbars="vertical",
|
|
5005
|
-
max_height="15rem", width="100%"),
|
|
5006
|
-
spacing="2", width="100%"),
|
|
5007
|
-
width="24rem", max_width="calc(100vw - 3rem)")),
|
|
5059
|
+
model_select(
|
|
5060
|
+
label=AdminState.agent_test_model_label,
|
|
5061
|
+
query=AdminState.agent_test_model_query,
|
|
5062
|
+
set_query=AdminState.set_agent_test_model_query,
|
|
5063
|
+
custom_query=AdminState.custom_agent_test_model_query,
|
|
5064
|
+
choose=AdminState.choose_agent_test_model,
|
|
5065
|
+
options=AdminState.filtered_agent_test_models,
|
|
5066
|
+
loading=AdminState.agent_test_models_loading),
|
|
5008
5067
|
rx.text(
|
|
5009
5068
|
rx.cond(
|
|
5010
5069
|
AdminState.agent_test_model == "",
|
|
@@ -5099,7 +5158,8 @@ def plugin_sign_in(section: PluginSection) -> rx.Component:
|
|
|
5099
5158
|
on_click=AdminState.start_plugin_sign_in(section.name))),
|
|
5100
5159
|
align="center", width="100%"),
|
|
5101
5160
|
field("Redirect URI",
|
|
5102
|
-
rx.input(value=section.redirect_uri,
|
|
5161
|
+
rx.input(value=section.redirect_uri,
|
|
5162
|
+
read_only=True, width="100%"),
|
|
5103
5163
|
rx.text("Register this as a Web redirect URI on the app you sign in with.",
|
|
5104
5164
|
color=MUTED, font_size="0.82rem")),
|
|
5105
5165
|
spacing="3", width="100%", padding_top="0.75rem", border_top=BORDER)
|
|
@@ -5186,7 +5246,8 @@ def plugin_card(section: PluginSection) -> rx.Component:
|
|
|
5186
5246
|
rx.foreach(section.fields,
|
|
5187
5247
|
lambda item: plugin_setting_field(section.name, item)),
|
|
5188
5248
|
# Before saving: an action tests what was just typed above.
|
|
5189
|
-
rx.cond(section.actions.length() >
|
|
5249
|
+
rx.cond(section.actions.length() >
|
|
5250
|
+
0, plugin_actions(section)),
|
|
5190
5251
|
rx.button(rx.icon("save", size=16), "Save settings",
|
|
5191
5252
|
variant="outline",
|
|
5192
5253
|
on_click=AdminState.save_plugin_settings(section.name)),
|
|
@@ -5605,6 +5666,7 @@ app.add_page(plugins_page, route="/plugins", title="Plugins | Codee",
|
|
|
5605
5666
|
AdminState.load_skill_conflicts])
|
|
5606
5667
|
app.add_page(workflow_page, route="/workflow", title="Workflow | Codee",
|
|
5607
5668
|
on_load=[AdminState.load_workflow,
|
|
5669
|
+
AdminState.load_workflow_model,
|
|
5608
5670
|
AdminState.load_skill_conflicts])
|
|
5609
5671
|
app.add_page(memory_page, route="/memory", title="Memory | Codee",
|
|
5610
5672
|
on_load=[AdminState.load_memories,
|