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
6 changes: 6 additions & 0 deletions .changeset/typed-integrations-system.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@frontal-labs/code': minor
'@frontal-labs/code-sdk': minor
---

Add a typed, manifest-driven integrations system. Integrations are declared as `IntegrationManifest` files and consumed by the server, CLI, and SDKs. Four first-party providers ship as built-ins — `github`, `linear`, `posthog`, and `sentry` — and can be overridden per-project via `FRONTAL_CODE_INTEGRATIONS_CONFIG` or the `mcp.integrations` settings file. New server routes expose `GET /v1/integrations`, `GET /v1/integrations/{id}`, `GET /v1/integrations/{id}/capabilities`, `GET /v1/integrations/{id}/events`, and a stubbed `POST /v1/integrations/{id}/capabilities/{name}/invoke` (501). The CLI gains `integrations list|show|capabilities|validate` commands, and both the Rust and TypeScript SDKs gain an `IntegrationClient`. The legacy `call_*` MCP wrappers remain functional as a deprecated adapter layer for one release.
16 changes: 16 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@ FRONTAL_CODE_SANDBOX_ENABLE_DOCKER=0
# Optional Docker image override when FRONTAL_CODE_SANDBOX_ENABLE_DOCKER=1
FRONTAL_CODE_SANDBOX_DOCKER_IMAGE=busybox:1.36

# Lane transport for hosted tasks.
# sandbox - Frontal Sandbox VM sessions (default, recommended)
# tools-agent - legacy tools.agent transport
# (requires FRONTAL_CODE_SERVER_ALLOW_HOST_AGENT=1)
#FRONTAL_CODE_SERVER_LANE_TRANSPORT=sandbox

# Frontal Sandbox server (used by FRONTAL_CODE_SERVER_LANE_TRANSPORT=sandbox)
# Base URL of the sandbox server, e.g. http://localhost:8080 (default when unset)
FRONTAL_SANDBOX_BASE_URL=http://localhost:8080
# Bearer API key (sbx_...) issued by the sandbox server; leave empty for a
# local server with auth disabled
FRONTAL_SANDBOX_API_KEY=
# Public address worker sessions use to call back to code-server
# (defaults to http://localhost:8788 when unset)
FRONTAL_CODE_SERVER_URL=http://localhost:8788

# Service Configuration

# ===========================================
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ on:
- extensions/slack-agent/**
- scripts/**
- docs/**
- deploy/sandbox/**
- sdks/rust/**
- sdks/typescript/**
- biome.json
Expand Down Expand Up @@ -144,3 +145,22 @@ jobs:
workspaces: . -> target
- name: Run workspace clippy
run: cargo clippy --workspace

sandbox-infra:
name: sandbox deploy (shellcheck + fmt)
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v4
- name: Install shellcheck
run: sudo apt-get update -qq && sudo apt-get install -y -qq shellcheck
- name: Run shellcheck on deploy scripts
run: shellcheck deploy/sandbox/scripts/*.sh
- name: Install pinned OpenTofu
env:
TOFU_VERSION: "1.10.5"
run: |
curl -fsSL -o /tmp/tofu.zip "https://github.com/opentofu/opentofu/releases/download/v${TOFU_VERSION}/tofu_${TOFU_VERSION}_linux_amd64.zip"
sudo unzip -q /tmp/tofu.zip -d /usr/local/bin
tofu version
- name: Check terraform formatting
run: tofu fmt -check deploy/sandbox/terraform
85 changes: 84 additions & 1 deletion Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ publish = false
serde_json = "1"
posthog-rs = { version = "=0.33.1", default-features = false }
uuid = { version = "1", default-features = false, features = ["v4"] }
frontal-sandbox-sdk = { git = "https://github.com/frontal-labs/sandbox" }
sandbox-types = { git = "https://github.com/frontal-labs/sandbox" }

[workspace.lints.rust]
unsafe_code = "forbid"
Expand Down
Loading
Loading