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: 3 additions & 3 deletions docs/ai/flows.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Cloud workflows

Wanta embeds Console's shared `@oomol-lab/open-flow/workbench` runtime, pinned to
`0.1.0-beta.47`, with the matching `effect` peer dependency. The sidebar entry is
`0.1.0-beta.52`, with the matching `effect` peer dependency. The sidebar entry is
immediately below Knowledge. The route supports the shared workflow catalog,
designer, publications, runs and variables; execution remains in Open Flow Cloud.

Expand All @@ -16,7 +16,7 @@ be substituted for this team-name header.

There are independent catalog and per-flow WSS subscriptions with readiness,
bounded reconnect backoff, event validation and resynchronization after reconnect.
The host handles beta.47's `flows.changed`, `flow.created`, `draft.changed`,
The host handles beta.52's `flows.changed`, `flow.created`, `draft.changed`,
`run.created`, `run.changed` and `access.changed` events. Disposing the host aborts
requests, closes sockets, clears reconnect timers and dismisses its notification.

Expand All @@ -43,7 +43,7 @@ host rejects all mutations there using the shared API error shape; other permiss
checks remain enforced by the cloud service.

The route import fallback and the shared workbench startup gate use the same list
skeleton. The startup overlay follows beta.47's direct busy `main` element through
skeleton. The startup overlay follows beta.52's direct busy `main` element through
a scoped CSS `:has()` selector, so it remains visible until the workbench is ready
and disappears for loaded content or error/retry UI.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@iconify-icons/tabler": "2.0.0",
"@iconify/types": "2.0.0",
"@modelcontextprotocol/sdk": "1.30.0",
"@oomol-lab/open-flow": "0.1.0-beta.47",
"@oomol-lab/open-flow": "0.1.0-beta.52",
"@oomol/connection": "0.2.28",
"@oomol/connection-electron-adapter": "0.2.12",
"@opencode-ai/plugin": "1.18.30",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ overrides:
# Explicitly requested latest stable SDK; keep the age exception version-scoped.
minimumReleaseAgeExclude:
- "@anthropic-ai/claude-agent-sdk@0.3.268"
- "@oomol-lab/open-flow@0.1.0-beta.52"
4 changes: 4 additions & 0 deletions src/routes/Flows/host.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ afterEach(() => {
})

describe("Flow host requests", () => {
it("uses the current team's name for connector cache ownership", () => {
expect(host().connectorOwnerId).toBe("team / A")
})

it("preserves Request bodies, merges init overrides and enforces the current team", async () => {
const fetchMock = vi.fn<typeof fetch>(async () => new Response(null, { status: 204 }))
vi.stubGlobal("fetch", fetchMock)
Expand Down
1 change: 1 addition & 0 deletions src/routes/Flows/host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export function createFlowHost(options: FlowHostOptions): WorkbenchHost & { disp
}
const assertActive = () => lifetime.signal.throwIfAborted()
return {
connectorOwnerId: options.teamName,
async openExternalPage(resolveUrl) {
assertActive()
const url = new URL(await resolveUrl())
Expand Down
Loading