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
4 changes: 2 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
serve:
obelisk server run --server-config server.toml --app-config app.toml --deployment deployment.toml
obelisk server run --dev --server-config server.toml --app-config app.toml --deployment deployment.toml

verify:
obelisk server verify --skip-db --server-config server.toml --app-config app.toml --deployment deployment.toml
Expand All @@ -14,7 +14,7 @@ build-rust:
(cd rust/webhook-tutorial && env -u CARGO_TARGET_DIR cargo build --profile=webhook)

serve-rust:
obelisk server run --server-config rust/server.toml --app-config rust/app.toml --deployment rust/deployment.toml
obelisk server run --dev --server-config rust/server.toml --app-config rust/app.toml --deployment rust/deployment.toml

verify-rust:
obelisk server verify --skip-db --server-config rust/server.toml --app-config rust/app.toml --deployment rust/deployment.toml
1 change: 1 addition & 0 deletions app.toml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
app_name = "demo-tutorial"
public_http_servers = ["external"]
1 change: 1 addition & 0 deletions deployment.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ return_type = "result<u32, string>"

[[webhook_endpoint_js]]
name = "webhook"
http_server = "external"
location = "webhook/tutorial.js"
routes = ["/*"]
4 changes: 2 additions & 2 deletions dev-deps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ cargo-edit-upgrade 0.13.13
cargo-expand 1.0.127
cargo generate 0.25.1
just 1.58.0
obelisk 0.43.0-rc.14
obelisk 0.43.0-rc.16 (87f2ad2)
pkg-config 0.29.2
rustc 1.98.1 (48a229cea 2026-09-01)
wasm-tools 1.261.0
wasm-tools 1.262.0
ldd (GNU libc) 2.44
18 changes: 9 additions & 9 deletions flake.lock

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

9 changes: 7 additions & 2 deletions fly-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,21 @@ export FLY_API_TOKEN=your_token_here
## Run

```sh
obelisk server run --app-config app.toml --deployment deployment.toml
obelisk server run --dev --app-config app.toml --deployment deployment.toml
```

The resource-creating endpoint uses `internal`. Local `--dev` permits access
without credentials; keep the listener on localhost. Hosted instances require
platform sign-in at `https://internal--<app>.<domain>` and leave `external`
closed. Choose an app name of at most 20 characters before deploying to Obelisk Cloud.

Trigger the saga with your actual organization slug and a globally unique app name. The `personal`
alias is unsuitable here because Fly returns the real slug on the idempotency check after a retry.

```sh
ORG_SLUG=your-org-slug
APP=my-fly-agent-$(date +%s)
curl -v "http://localhost:9090/run/${ORG_SLUG}/${APP}/what-is-42"
curl -v "http://localhost:9091/run/${ORG_SLUG}/${APP}/what-is-42"
```

## Saga Recovery Demo
Expand Down
1 change: 1 addition & 0 deletions fly-agent/deployment.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,6 @@ return_type = "result<string, string>"
# Webhook: HTTP entry point for triggering the saga.
[[webhook_endpoint_js]]
name = "webhook"
http_server = "internal"
location = "webhook/fly-agent.js"
routes = [{ methods = ["GET"], route = "/run/:org-slug/:app-name/:prompt" }]
1 change: 1 addition & 0 deletions rust/app.toml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
app_name = "demo-tutorial-rust"
public_http_servers = ["external"]
1 change: 1 addition & 0 deletions rust/deployment.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ backtrace.sources = {".../src/lib.rs" = "workflow-tutorial/src/lib.rs"}

[[webhook_endpoint_wasm]]
name = "webhook_tutorial"
http_server = "external"
location = "target/wasm32-wasip2/webhook/webhook_tutorial.wasm"
routes = ["/*"]
backtrace.sources = {".../src/lib.rs" = "webhook-tutorial/src/lib.rs"}
Loading