Skip to content
Closed
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
1 change: 0 additions & 1 deletion apps/code/src/shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export const EXPERIMENT_SUGGESTIONS_FLAG =
export const SELF_DRIVING_SETUP_TASK_FLAG =
"posthog-code-self-driving-setup-task";
export const SYNC_CLOUD_TASKS_FLAG = "posthog-code-sync-cloud-tasks";
export const HOME_TAB_FLAG = "posthog-code-home-tab";
export const DISCOVERY_RUN_FLAG = "posthog-code-discovery-run";
export const BRANCH_PREFIX = "posthog-code/";
export const DATA_DIR = ".posthog-code";
Expand Down
547 changes: 0 additions & 547 deletions docs/home-tab.md

This file was deleted.

116 changes: 0 additions & 116 deletions docs/workflow-architecture.md

This file was deleted.

80 changes: 0 additions & 80 deletions packages/api-client/src/posthog-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,6 @@ interface CloudRunOptions {
runSource?: CloudRunSource;
signalReportId?: string;
initialPermissionMode?: ExecutionMode;
homeQuickAction?: string;
/**
* Local url-based MCP servers to make available inside the sandbox. The
* backend merges these into the agent server's `--mcpServers` at spawn.
Expand Down Expand Up @@ -689,9 +688,6 @@ function buildCloudRunRequestBody(
if (options?.signalReportId) {
body.signal_report_id = options.signalReportId;
}
if (options?.homeQuickAction) {
body.home_quick_action = options.homeQuickAction;
}
if (options?.importedMcpServers?.length) {
body.imported_mcp_servers = options.importedMcpServers;
}
Expand Down Expand Up @@ -1839,82 +1835,6 @@ export class PostHogAPIClient {
return data as Schemas.Team;
}

async getHomeSnapshot(): Promise<unknown> {
const teamId = await this.getTeamId();
const urlPath = `/api/projects/${teamId}/code_home/`;
const response = await this.api.fetcher.fetch({
method: "get",
url: new URL(`${this.api.baseUrl}${urlPath}`),
path: urlPath,
});
if (!response.ok) {
throw new Error(`Failed to fetch home snapshot: ${response.status}`);
}
return response.json();
}

async refreshHomeSnapshot(): Promise<void> {
const teamId = await this.getTeamId();
const urlPath = `/api/projects/${teamId}/code_home/refresh/`;
const response = await this.api.fetcher.fetch({
method: "post",
url: new URL(`${this.api.baseUrl}${urlPath}`),
path: urlPath,
});
if (!response.ok) {
throw new Error(`Failed to request home refresh: ${response.status}`);
}
}

async getCodeWorkflow(): Promise<unknown> {
const teamId = await this.getTeamId();
const urlPath = `/api/projects/${teamId}/code_workflow/`;
const response = await this.api.fetcher.fetch({
method: "get",
url: new URL(`${this.api.baseUrl}${urlPath}`),
path: urlPath,
});
if (!response.ok) {
throw new Error(`Workflow request failed: ${response.status}`);
}
return response.json();
}

// 409/422 carry a structured save-result body the caller validates.
async saveCodeWorkflow(body: {
config: unknown;
expectedVersion: number;
}): Promise<unknown> {
const teamId = await this.getTeamId();
const urlPath = `/api/projects/${teamId}/code_workflow/save/`;
const response = await this.api.fetcher.fetch({
method: "post",
url: new URL(`${this.api.baseUrl}${urlPath}`),
path: urlPath,
overrides: {
body: JSON.stringify(body),
},
});
if (!response.ok && response.status !== 409 && response.status !== 422) {
throw new Error(`Workflow request failed: ${response.status}`);
}
return response.json();
}

async resetCodeWorkflow(): Promise<unknown> {
const teamId = await this.getTeamId();
const urlPath = `/api/projects/${teamId}/code_workflow/reset/`;
const response = await this.api.fetcher.fetch({
method: "post",
url: new URL(`${this.api.baseUrl}${urlPath}`),
path: urlPath,
});
if (!response.ok) {
throw new Error(`Workflow request failed: ${response.status}`);
}
return response.json();
}

async listSignalSourceConfigs(
projectId: number,
): Promise<SignalSourceConfig[]> {
Expand Down
38 changes: 0 additions & 38 deletions packages/core/src/home/prSnapshot.ts

This file was deleted.

113 changes: 0 additions & 113 deletions packages/core/src/home/schemas.test.ts

This file was deleted.

Loading
Loading