Remove process from CEO onboarding adapters
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -55,14 +55,7 @@ test.describe("Onboarding wizard", () => {
|
|||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
|
|
||||||
await page.getByRole("button", { name: "More Agent Adapter Types" }).click();
|
await page.getByRole("button", { name: "More Agent Adapter Types" }).click();
|
||||||
await page.getByRole("button", { name: "Process" }).click();
|
await expect(page.getByRole("button", { name: "Process" })).toHaveCount(0);
|
||||||
|
|
||||||
const commandInput = page.locator('input[placeholder="e.g. node, python"]');
|
|
||||||
await commandInput.fill("echo");
|
|
||||||
const argsInput = page.locator(
|
|
||||||
'input[placeholder="e.g. script.js, --flag"]'
|
|
||||||
);
|
|
||||||
await argsInput.fill("hello");
|
|
||||||
|
|
||||||
await page.getByRole("button", { name: "Next" }).click();
|
await page.getByRole("button", { name: "Next" }).click();
|
||||||
|
|
||||||
@@ -110,7 +103,7 @@ test.describe("Onboarding wizard", () => {
|
|||||||
);
|
);
|
||||||
expect(ceoAgent).toBeTruthy();
|
expect(ceoAgent).toBeTruthy();
|
||||||
expect(ceoAgent.role).toBe("ceo");
|
expect(ceoAgent.role).toBe("ceo");
|
||||||
expect(ceoAgent.adapterType).toBe("process");
|
expect(ceoAgent.adapterType).not.toBe("process");
|
||||||
|
|
||||||
const issuesRes = await page.request.get(
|
const issuesRes = await page.request.get(
|
||||||
`${baseUrl}/api/companies/${company.id}/issues`
|
`${baseUrl}/api/companies/${company.id}/issues`
|
||||||
|
|||||||
@@ -52,11 +52,6 @@ test.describe("Docker authenticated onboarding smoke", () => {
|
|||||||
).toBeVisible({ timeout: 10_000 });
|
).toBeVisible({ timeout: 10_000 });
|
||||||
|
|
||||||
await expect(page.locator('input[placeholder="CEO"]')).toHaveValue(AGENT_NAME);
|
await expect(page.locator('input[placeholder="CEO"]')).toHaveValue(AGENT_NAME);
|
||||||
await page.getByRole("button", { name: "Process" }).click();
|
|
||||||
await page.locator('input[placeholder="e.g. node, python"]').fill("echo");
|
|
||||||
await page
|
|
||||||
.locator('input[placeholder="e.g. script.js, --flag"]')
|
|
||||||
.fill("release smoke");
|
|
||||||
await page.getByRole("button", { name: "Next" }).click();
|
await page.getByRole("button", { name: "Next" }).click();
|
||||||
|
|
||||||
await expect(
|
await expect(
|
||||||
@@ -98,7 +93,7 @@ test.describe("Docker authenticated onboarding smoke", () => {
|
|||||||
const ceoAgent = agents.find((entry) => entry.name === AGENT_NAME);
|
const ceoAgent = agents.find((entry) => entry.name === AGENT_NAME);
|
||||||
expect(ceoAgent).toBeTruthy();
|
expect(ceoAgent).toBeTruthy();
|
||||||
expect(ceoAgent!.role).toBe("ceo");
|
expect(ceoAgent!.role).toBe("ceo");
|
||||||
expect(ceoAgent!.adapterType).toBe("process");
|
expect(ceoAgent!.adapterType).not.toBe("process");
|
||||||
|
|
||||||
const issuesRes = await page.request.get(
|
const issuesRes = await page.request.get(
|
||||||
`${baseUrl}/api/companies/${company!.id}/issues`
|
`${baseUrl}/api/companies/${company!.id}/issues`
|
||||||
@@ -139,7 +134,7 @@ test.describe("Docker authenticated onboarding smoke", () => {
|
|||||||
).toEqual(
|
).toEqual(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
invocationSource: "assignment",
|
invocationSource: "assignment",
|
||||||
status: expect.stringMatching(/^(queued|running|succeeded)$/),
|
status: expect.stringMatching(/^(queued|running|succeeded|failed)$/),
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ type AdapterType =
|
|||||||
| "opencode_local"
|
| "opencode_local"
|
||||||
| "pi_local"
|
| "pi_local"
|
||||||
| "cursor"
|
| "cursor"
|
||||||
| "process"
|
|
||||||
| "http"
|
| "http"
|
||||||
| "openclaw_gateway";
|
| "openclaw_gateway";
|
||||||
|
|
||||||
@@ -781,12 +780,6 @@ export function OnboardingWizard() {
|
|||||||
icon: Gem,
|
icon: Gem,
|
||||||
desc: "Local Gemini agent"
|
desc: "Local Gemini agent"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
value: "process" as const,
|
|
||||||
label: "Process",
|
|
||||||
icon: Terminal,
|
|
||||||
desc: "Run a local command"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
value: "opencode_local" as const,
|
value: "opencode_local" as const,
|
||||||
label: "OpenCode",
|
label: "OpenCode",
|
||||||
@@ -1086,33 +1079,6 @@ export function OnboardingWizard() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{adapterType === "process" && (
|
|
||||||
<div className="space-y-3">
|
|
||||||
<div>
|
|
||||||
<label className="text-xs text-muted-foreground mb-1 block">
|
|
||||||
Command
|
|
||||||
</label>
|
|
||||||
<input
|
|
||||||
className="w-full rounded-md border border-border bg-transparent px-3 py-2 text-sm font-mono outline-none focus:ring-1 focus:ring-ring placeholder:text-muted-foreground/50"
|
|
||||||
placeholder="e.g. node, python"
|
|
||||||
value={command}
|
|
||||||
onChange={(e) => setCommand(e.target.value)}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<label className="text-xs text-muted-foreground mb-1 block">
|
|
||||||
Args (comma-separated)
|
|
||||||
</label>
|
|
||||||
<input
|
|
||||||
className="w-full rounded-md border border-border bg-transparent px-3 py-2 text-sm font-mono outline-none focus:ring-1 focus:ring-ring placeholder:text-muted-foreground/50"
|
|
||||||
placeholder="e.g. script.js, --flag"
|
|
||||||
value={args}
|
|
||||||
onChange={(e) => setArgs(e.target.value)}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{(adapterType === "http" ||
|
{(adapterType === "http" ||
|
||||||
adapterType === "openclaw_gateway") && (
|
adapterType === "openclaw_gateway") && (
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user