Fix biome lint/format on Phase 3 files
Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
parent
c858cb816c
commit
a9136440dc
@ -1008,9 +1008,7 @@ export function createRouter(deps: RouterDeps) {
|
|||||||
signupAllowlist: (input.signupAllowlist ?? []).join(","),
|
signupAllowlist: (input.signupAllowlist ?? []).join(","),
|
||||||
signupPolicyInitialized: true,
|
signupPolicyInitialized: true,
|
||||||
computerHost: input.computerHost ?? undefined,
|
computerHost: input.computerHost ?? undefined,
|
||||||
...(ownerGithubTokenCipher !== undefined
|
...(ownerGithubTokenCipher !== undefined ? { ownerGithubTokenCipher } : {}),
|
||||||
? { ownerGithubTokenCipher }
|
|
||||||
: {}),
|
|
||||||
},
|
},
|
||||||
update: {
|
update: {
|
||||||
...(input.signupsEnabled === undefined ? {} : { signupsEnabled: input.signupsEnabled }),
|
...(input.signupsEnabled === undefined ? {} : { signupsEnabled: input.signupsEnabled }),
|
||||||
@ -1019,9 +1017,7 @@ export function createRouter(deps: RouterDeps) {
|
|||||||
? {}
|
? {}
|
||||||
: { signupPolicyInitialized: true }),
|
: { signupPolicyInitialized: true }),
|
||||||
...(input.computerHost === undefined ? {} : { computerHost: input.computerHost }),
|
...(input.computerHost === undefined ? {} : { computerHost: input.computerHost }),
|
||||||
...(ownerGithubTokenCipher !== undefined
|
...(ownerGithubTokenCipher !== undefined ? { ownerGithubTokenCipher } : {}),
|
||||||
? { ownerGithubTokenCipher }
|
|
||||||
: {}),
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return deploymentDto(deps.prisma, deps.env.sandboxProvider);
|
return deploymentDto(deps.prisma, deps.env.sandboxProvider);
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import { msg } from "@lingui/core/macro";
|
import { msg } from "@lingui/core/macro";
|
||||||
import type { ThreadSnapshot } from "@rakazo/contracts";
|
import type { ThreadSnapshot } from "@rakazo/contracts";
|
||||||
import { i18n } from "./i18n";
|
|
||||||
import { type EvooPose, mapPersonaArchetypeToIdlePose, mapVoicePhaseToPose } from "@rakazo/ui-web";
|
import { type EvooPose, mapPersonaArchetypeToIdlePose, mapVoicePhaseToPose } from "@rakazo/ui-web";
|
||||||
import type { StagePresencePhase } from "../components/stage/StageHero";
|
import type { StagePresencePhase } from "../components/stage/StageHero";
|
||||||
import type { VoicePhase } from "../components/voice/VoiceStage";
|
import type { VoicePhase } from "../components/voice/VoiceStage";
|
||||||
import type { GroupSpark } from "./group-stage";
|
import type { GroupSpark } from "./group-stage";
|
||||||
|
import { i18n } from "./i18n";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Template-aligned archetypes — derived from bot fields, not a DB column.
|
* Template-aligned archetypes — derived from bot fields, not a DB column.
|
||||||
|
|||||||
@ -20,13 +20,13 @@ import {
|
|||||||
hasActiveComputerControl,
|
hasActiveComputerControl,
|
||||||
} from "./computer-control.js";
|
} from "./computer-control.js";
|
||||||
import { toComputerRef } from "./computer-support.js";
|
import { toComputerRef } from "./computer-support.js";
|
||||||
import { resolveProjectWorkspaceBind } from "./project-workspace-bind.js";
|
|
||||||
import {
|
import {
|
||||||
checkpointComputerWorkspace,
|
checkpointComputerWorkspace,
|
||||||
ensureComputerWorkspaceLayout,
|
ensureComputerWorkspaceLayout,
|
||||||
restoreComputerWorkspace,
|
restoreComputerWorkspace,
|
||||||
} from "./computer-workspace.js";
|
} from "./computer-workspace.js";
|
||||||
import { resolveAgentHomePath } from "./home.js";
|
import { resolveAgentHomePath } from "./home.js";
|
||||||
|
import { resolveProjectWorkspaceBind } from "./project-workspace-bind.js";
|
||||||
|
|
||||||
type ComputerUpdateProgress = (
|
type ComputerUpdateProgress = (
|
||||||
stage: Exclude<ComputerUpdate["stage"], "preparing">,
|
stage: Exclude<ComputerUpdate["stage"], "preparing">,
|
||||||
|
|||||||
@ -31,9 +31,7 @@ describe("Team Computer bot folders", () => {
|
|||||||
);
|
);
|
||||||
expect(resolveBotWorkspacePath("team", "bot-1", "/root-note.md")).toBe("root-note.md");
|
expect(resolveBotWorkspacePath("team", "bot-1", "/root-note.md")).toBe("root-note.md");
|
||||||
expect(resolveBotWorkspacePath("team", "bot-1", "/shared/brief.md")).toBe("shared/brief.md");
|
expect(resolveBotWorkspacePath("team", "bot-1", "/shared/brief.md")).toBe("shared/brief.md");
|
||||||
expect(resolveBotWorkspacePath("team", "bot-1", "/home/rakazo/notes/x.md")).toBe(
|
expect(resolveBotWorkspacePath("team", "bot-1", "/home/rakazo/notes/x.md")).toBe("notes/x.md");
|
||||||
"notes/x.md",
|
|
||||||
);
|
|
||||||
expect(resolveBotWorkspacePath("team", "bot-1", "/home/rakazo/project/src/main.ts")).toBe(
|
expect(resolveBotWorkspacePath("team", "bot-1", "/home/rakazo/project/src/main.ts")).toBe(
|
||||||
"project/src/main.ts",
|
"project/src/main.ts",
|
||||||
);
|
);
|
||||||
|
|||||||
@ -125,9 +125,6 @@ import {
|
|||||||
formatAgentEnvironmentInstruction,
|
formatAgentEnvironmentInstruction,
|
||||||
redactAgentCommandResult,
|
redactAgentCommandResult,
|
||||||
} from "./agent-environment.js";
|
} from "./agent-environment.js";
|
||||||
import { ownerGithubEnvironmentForRun } from "./deployment-github-token.js";
|
|
||||||
import { evaluateGitShellPolicy } from "./git-shell-policy.js";
|
|
||||||
import { runStallWithoutProgressMs } from "./pi-model-config.js";
|
|
||||||
import { buildApprovalAskBlock } from "./approval-ask.js";
|
import { buildApprovalAskBlock } from "./approval-ask.js";
|
||||||
import {
|
import {
|
||||||
approvalPausedToolResult,
|
approvalPausedToolResult,
|
||||||
@ -240,6 +237,7 @@ import {
|
|||||||
loadDelegatedTaskInstruction,
|
loadDelegatedTaskInstruction,
|
||||||
syncDelegatedTaskRun,
|
syncDelegatedTaskRun,
|
||||||
} from "./delegated-tasks.js";
|
} from "./delegated-tasks.js";
|
||||||
|
import { ownerGithubEnvironmentForRun } from "./deployment-github-token.js";
|
||||||
import { resolveDeploymentModel } from "./deployment-model.js";
|
import { resolveDeploymentModel } from "./deployment-model.js";
|
||||||
import {
|
import {
|
||||||
missingTurnImagesInstruction,
|
missingTurnImagesInstruction,
|
||||||
@ -289,6 +287,7 @@ import {
|
|||||||
} from "./executor-tools.js";
|
} from "./executor-tools.js";
|
||||||
import type { ExecutorDeps } from "./executor-types.js";
|
import type { ExecutorDeps } from "./executor-types.js";
|
||||||
import { loadCurrentTurnImages, selectRunConnections } from "./executor-utils.js";
|
import { loadCurrentTurnImages, selectRunConnections } from "./executor-utils.js";
|
||||||
|
import { evaluateGitShellPolicy } from "./git-shell-policy.js";
|
||||||
import { handoffToGroupBot, loadGroupContext } from "./group-handoff.js";
|
import { handoffToGroupBot, loadGroupContext } from "./group-handoff.js";
|
||||||
import {
|
import {
|
||||||
COMPACTION_BATCH_SIZE,
|
COMPACTION_BATCH_SIZE,
|
||||||
@ -336,6 +335,7 @@ import {
|
|||||||
import { notifyUserFromTool } from "./notify-user-tool.js";
|
import { notifyUserFromTool } from "./notify-user-tool.js";
|
||||||
import { toOAuthCredential } from "./pi-credentials.js";
|
import { toOAuthCredential } from "./pi-credentials.js";
|
||||||
import { LOCAL_PROVIDER_ID, localTierModels } from "./pi-local-provider.js";
|
import { LOCAL_PROVIDER_ID, localTierModels } from "./pi-local-provider.js";
|
||||||
|
import { runStallWithoutProgressMs } from "./pi-model-config.js";
|
||||||
import {
|
import {
|
||||||
parseModelSecret,
|
parseModelSecret,
|
||||||
resolveModelAuth,
|
resolveModelAuth,
|
||||||
@ -2046,7 +2046,9 @@ export function createRunExecutor(deps: ExecutorDeps) {
|
|||||||
toolRequiresApproval(name, viaConnector) ||
|
toolRequiresApproval(name, viaConnector) ||
|
||||||
gitShellNeedsApproval;
|
gitShellNeedsApproval;
|
||||||
const requiresMandatoryApproval =
|
const requiresMandatoryApproval =
|
||||||
requiresUnattendedApproval || toolRequiresExplicitApproval(name) || gitShellNeedsApproval;
|
requiresUnattendedApproval ||
|
||||||
|
toolRequiresExplicitApproval(name) ||
|
||||||
|
gitShellNeedsApproval;
|
||||||
const connectorKind = connectorKindFromToolName(
|
const connectorKind = connectorKindFromToolName(
|
||||||
name,
|
name,
|
||||||
connectedPlugins.map((plugin) => plugin.provider),
|
connectedPlugins.map((plugin) => plugin.provider),
|
||||||
@ -2082,7 +2084,9 @@ export function createRunExecutor(deps: ExecutorDeps) {
|
|||||||
checkerConfigured,
|
checkerConfigured,
|
||||||
});
|
});
|
||||||
let reviewReason: string | undefined =
|
let reviewReason: string | undefined =
|
||||||
gitShellNeedsApproval && typeof gitShellPolicy === "object" && "reason" in gitShellPolicy
|
gitShellNeedsApproval &&
|
||||||
|
typeof gitShellPolicy === "object" &&
|
||||||
|
"reason" in gitShellPolicy
|
||||||
? gitShellPolicy.reason
|
? gitShellPolicy.reason
|
||||||
: undefined;
|
: undefined;
|
||||||
let gateDecision: "ask" | "allow" = plan === "ask" ? "ask" : "allow";
|
let gateDecision: "ask" | "allow" = plan === "ask" ? "ask" : "allow";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user