Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/narada-core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "narada-core"
version = "0.0.12"
version = "0.0.13"
description = "Code shared by the `narada` and `narada-pyodide` packages."
license = "Apache-2.0"
readme = "README.md"
Expand Down
61 changes: 60 additions & 1 deletion packages/narada-core/src/narada_core/actions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,57 @@ class GetScreenshotTrace(BaseModel):
description: str


class ObjectExportAsJsonTrace(BaseModel):
step_type: Literal["objectExportAsJson"]
url: str
description: str


class RunCustomAgentTrace(BaseModel):
step_type: Literal["runCustomAgent"]
url: str
workflow_id: str
workflow_name: str
status: Literal["success", "error"]
error_message: str | None = None


class IfTrace(BaseModel):
step_type: Literal["if"]
url: str
description: str


class SetVariableTrace(BaseModel):
step_type: Literal["setVariable"]
url: str
description: str


class WaitTrace(BaseModel):
step_type: Literal["wait"]
url: str
description: str


class DataTableInsertRowTrace(BaseModel):
step_type: Literal["dataTableInsertRow"]
url: str
description: str


class DataTableUpdateCellValueTrace(BaseModel):
step_type: Literal["dataTableUpdateCellValue"]
url: str
description: str


class ObjectSetPropertiesTrace(BaseModel):
step_type: Literal["objectSetProperties"]
url: str
description: str


ApaStepTrace = Annotated[
GoToUrlTrace
| GetUrlTrace
Expand All @@ -173,12 +224,20 @@ class GetScreenshotTrace(BaseModel):
| ReadGoogleSheetTrace
| WriteGoogleSheetTrace
| DataTableExportAsCsvTrace
| ObjectExportAsJsonTrace
| PythonTrace
| StartTrace
| EndTrace
| GetFullHtmlTrace
| GetSimplifiedHtmlTrace
| GetScreenshotTrace,
| GetScreenshotTrace
| RunCustomAgentTrace
| IfTrace
| SetVariableTrace
| WaitTrace
| DataTableInsertRowTrace
| DataTableUpdateCellValueTrace
| ObjectSetPropertiesTrace,
Field(discriminator="step_type"),
]

Expand Down
59 changes: 59 additions & 0 deletions packages/narada-core/src/narada_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,57 @@ class GetScreenshotTrace(TypedDict):
description: str


class ObjectExportAsJsonTrace(TypedDict):
step_type: Literal["objectExportAsJson"]
url: str
description: str


class RunCustomAgentTrace(TypedDict):
step_type: Literal["runCustomAgent"]
url: str
workflow_id: str
workflow_name: str
status: Literal["success", "error"]
error_message: NotRequired[str]


class IfTrace(TypedDict):
step_type: Literal["if"]
url: str
description: str


class SetVariableTrace(TypedDict):
step_type: Literal["setVariable"]
url: str
description: str


class WaitTrace(TypedDict):
step_type: Literal["wait"]
url: str
description: str


class DataTableInsertRowTrace(TypedDict):
step_type: Literal["dataTableInsertRow"]
url: str
description: str


class DataTableUpdateCellValueTrace(TypedDict):
step_type: Literal["dataTableUpdateCellValue"]
url: str
description: str


class ObjectSetPropertiesTrace(TypedDict):
step_type: Literal["objectSetProperties"]
url: str
description: str


ApaStepTrace = (
GoToUrlTrace
| GetUrlTrace
Expand All @@ -218,12 +269,20 @@ class GetScreenshotTrace(TypedDict):
| ReadGoogleSheetTrace
| WriteGoogleSheetTrace
| DataTableExportAsCsvTrace
| ObjectExportAsJsonTrace
| PythonTrace
| StartTrace
| EndTrace
| GetFullHtmlTrace
| GetSimplifiedHtmlTrace
| GetScreenshotTrace
| RunCustomAgentTrace
| IfTrace
| SetVariableTrace
| WaitTrace
| DataTableInsertRowTrace
| DataTableUpdateCellValueTrace
| ObjectSetPropertiesTrace
)


Expand Down
4 changes: 2 additions & 2 deletions packages/narada-pyodide/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

[project]
name = "narada-pyodide"
version = "0.0.37"
version = "0.0.38"
description = "Pyodide-compatible Python client SDK for Narada"
license = "Apache-2.0"
readme = "README.md"
authors = [{ name = "Narada", email = "support@narada.ai" }]
requires-python = ">=3.12"
dependencies = [
"narada-core==0.0.12",
"narada-core==0.0.13",
# Must be a supported version in https://pyodide.org/en/stable/usage/packages-in-pyodide.html
"packaging==24.2",
]
Expand Down
4 changes: 2 additions & 2 deletions packages/narada/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[project]
name = "narada"
version = "0.1.33a15"
version = "0.1.34"
description = "Python client SDK for Narada"
license = "Apache-2.0"
readme = "README.md"
authors = [{ name = "Narada", email = "support@narada.ai" }]
requires-python = ">=3.12"
dependencies = [
"narada-core==0.0.12",
"narada-core==0.0.13",
"aiohttp>=3.12.13",
"playwright>=1.53.0",
"rich>=14.0.0",
Expand Down
6 changes: 3 additions & 3 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.