Skip to content

Commit ca368f3

Browse files
committed
chore(mothership): drop the dead vfs snapshot contract and point protocol docs at the worker catalog
1 parent c226bfa commit ca368f3

4 files changed

Lines changed: 9 additions & 149 deletions

File tree

‎apps/sim/lib/mothership/chat/payload.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import {
4040
WORKFLOW_RUN_WAIT_TIMEOUT_CAPABILITY,
4141
WORKFLOW_TOOL_WAIT_TIMEOUT_CAPABILITY,
4242
} from '@/lib/mothership/generated/protocol'
43-
import type { VfsSnapshotV1 } from '@/lib/mothership/generated/vfs-snapshot-v1'
4443
import { getToolEntry } from '@/lib/mothership/tool-executor/router'
4544
import { getCopilotToolDescription } from '@/lib/mothership/tools/descriptions'
4645
import { listOrganizationSecretNames } from '@/lib/organization-secrets/application/use-cases'
@@ -87,7 +86,6 @@ interface BuildPayloadParams {
8786
assistantFast?: boolean
8887
assistantSearch?: WorkspaceSearchFilters
8988
workspaceContext?: string
90-
vfs?: VfsSnapshotV1
9189
userPermission?: string
9290
/** Plan/flag-gated org capabilities (e.g. "custom-blocks") the mothership gates tools/prompts on. */
9391
userTimezone?: string

‎apps/sim/lib/mothership/generated/vfs-snapshot-v1.ts‎

Lines changed: 0 additions & 141 deletions
This file was deleted.

‎packages/browser-protocol/src/index.ts‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
* policy, and bridge envelopes. Individual tool parameters and results are
1313
* still validated by the desktop driver rather than statically mapped here.
1414
*
15-
* Current tool names mirror the mothership tool catalog
16-
* (`copilot/internal/tools/catalog/browser` in the mothership repo). This
17-
* package also retains retired names needed to replay persisted chat history.
15+
* Current tool names mirror the mothership worker's tool catalog
16+
* (`worker/packages/contracts/tool-catalog-v1.json`, with desktop tool
17+
* definitions in `worker/apps/server/src/protocol/desktop-tools.ts`, in the
18+
* mothership repo). This package also retains retired names needed to replay
19+
* persisted chat history.
1820
* The catalog is the source of truth for what the model can call; this package
1921
* is the source of truth for how current and compatible legacy calls travel to
2022
* the desktop main process.

‎packages/terminal-protocol/src/index.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
* One is active at a time; agent tools act on the active one unless they name
1414
* another.
1515
*
16-
* Tool names and parameter shapes mirror the mothership tool catalog
17-
* (`copilot/internal/tools/catalog/terminal` in the mothership repo) — that
18-
* catalog is the source of truth for what the model can call; this package is
16+
* Tool names and parameter shapes mirror the mothership worker's tool catalog
17+
* (`worker/packages/contracts/tool-catalog-v1.json`, with desktop tool
18+
* definitions in `worker/apps/server/src/protocol/desktop-tools.ts`, in the
19+
* mothership repo) — that catalog is the source of truth for what the model can call; this package is
1920
* the source of truth for how those calls travel to the desktop main process.
2021
*/
2122

0 commit comments

Comments
 (0)