Skip to main content

synth_ai.research.project_namespaces

Nested project namespaces on client.research.projects.

Classes

ResearchProjectsSetupAPI

Prepare projects for launch (onboarding + runnable setup). Methods:

get

Return current setup/onboarding state for a project.

prepare

Run setup steps required before runs.check_preflight succeeds.

start_onboarding

Start the onboarding workflow for a new project.

complete_onboarding_step

Mark an onboarding step complete or failed. Args:
  • project_id: Project identifier.
  • step: Onboarding step name.
  • status: Step status (for example "complete").
  • detail: Optional structured detail payload.

dry_run_onboarding

Validate onboarding prerequisites without mutating project state.

onboarding_status

Return onboarding progress and blocking issues.

ResearchProjectsWorkspaceAPI

Upload and download project workspace inputs and archives. Methods:

get

Return the current workspace projection for a project.

upload

Upload workspace files from in-memory file descriptors. Args:
  • project_id: Project identifier.
  • files: Iterable of file mappings (path, content, metadata).

upload_directory

Upload an entire local directory into the project workspace.

download

Download the project workspace archive to a local path.

inputs

Return workspace input state (uploaded files, git linkage).

upload_url

Mint a presigned URL for direct workspace archive upload.

confirm_push

Confirm a git push completed and attach the uploaded archive. Args:
  • project_id: Project identifier.
  • commit_sha: Git commit SHA for the pushed workspace.
  • archive_key: Storage key returned from upload_url.

ResearchProjectsReposAPI

Attach external source repositories to a project workspace. Methods:

attach

Attach a git repository as a workspace input source. Args:
  • project_id: Project identifier.
  • url: Repository clone URL.
  • default_branch: Branch to track when no commit is pinned.
  • commit_sha: Optional pinned commit SHA.

GitCommitRow

One commit summary row from the project git server. Methods:

from_wire

Build a typed commit summary from a git-server response.

GitBranchRow

One unmerged-branch summary row from the project git server. Methods:

from_wire

Build a typed branch summary from a git-server response.

GitRepoStatus

Project git repo status: HEAD, recent commits, unmerged branches, tree. Methods:

from_wire

Build a typed repository status projection from a git-server response.

GitFileContent

One file read from the project git server (utf-8 or base64 content). Methods:

from_wire

Build a typed file-content result from a git-server response.

GitPullRequestRow

One GitHub pull-request row (raw GitHub payload preserved in raw). Methods:

from_wire

Build a typed pull-request summary from a git-server response.

ResearchProjectsGitPullRequestsAPI

Read pull requests on the project’s bound GitHub repo. Methods:

list

List pull requests (state in open/closed/all, limit 1-100). Backend route: GET /smr/projects/{project_id}/git/pull-requests.

ResearchProjectsGitAPI

Project git source connection, metadata, and read-only git-server views. Read bindings cover the mounted GET routes only: status, tree, file, diff, and pull-request listing. Branch/commit creation, push, file writes, and PR create/comment are POST routes and are intentionally not bound here. Methods:

pull_requests

Read pull requests on the project’s bound repo.

status

Read repo status: HEAD, recent commits, unmerged branches, tree. Backend route: GET /smr/projects/{project_id}/git/status.

tree

List tree entry paths at a ref, optionally under a path prefix. Backend route: GET /smr/projects/{project_id}/git/tree.

file

Read one file blob at a ref. Backend route: GET /smr/projects/{project_id}/git/file.

diff

Read the diff between two refs (optionally scoped to one path). Backend route: GET /smr/projects/{project_id}/git/diff.

get

Return git metadata for the project workspace.

connect

Connect or update the project’s git code source.

ResearchProjectsCodeAPI

Download project code archives. Methods:

download

Download the project code archive to a local path.

ResearchProjectsObjectivesAPI

Directed effort outcomes and objective status for a project. Methods:

list_directed_effort_outcomes

List directed effort outcomes (legacy alias for directed objectives).

list

List objectives for a project, optionally scoped to a run.

get_status

Return status fields for a single objective.

get_progress

Return progress metrics for a single objective.

ResearchProjectsMilestonesAPI

Project and run-scoped milestones. Methods:

list

List milestones for a project, optionally filtered to a run.

ResearchProjectsRunsAPI

List runs belonging to a project. Methods:

list

List runs for a project. Args:
  • project_id: Project identifier.
  • active_only: When True, return only non-terminal runs.