style: apply biome formatting on phase3 touchpoints
Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
parent
54240e3723
commit
542b07d068
@ -1,7 +1,6 @@
|
||||
import type { MessageDescriptor } from "@lingui/core";
|
||||
import { msg } from "@lingui/core/macro";
|
||||
import type { PersonaArchetype } from "./bot-persona";
|
||||
import type { VoiceAwarenessEvent } from "./bot-persona";
|
||||
import type { PersonaArchetype, VoiceAwarenessEvent } from "./bot-persona";
|
||||
|
||||
export function awarenessKindLabel(kind: VoiceAwarenessEvent["kind"]): MessageDescriptor {
|
||||
switch (kind) {
|
||||
@ -79,7 +78,9 @@ function narrateHandoffDescriptor(
|
||||
const line = text ? truncate(text, 72) : "";
|
||||
switch (archetype) {
|
||||
case "cto-executive":
|
||||
return line ? msg`Passing the baton to ${target} — ${line}` : msg`This goes to ${target} now.`;
|
||||
return line
|
||||
? msg`Passing the baton to ${target} — ${line}`
|
||||
: msg`This goes to ${target} now.`;
|
||||
case "chief-operator":
|
||||
return line ? msg`Handoff to ${target}: ${line}` : msg`Transferring to ${target}.`;
|
||||
default:
|
||||
|
||||
@ -8,11 +8,7 @@ import {
|
||||
type VoiceTranscriptLine,
|
||||
} from "../components/voice/VoiceStage";
|
||||
import { narrateAwarenessDescriptor } from "../lib/awareness-persona-copy";
|
||||
import {
|
||||
cadencePulseMs,
|
||||
extractVoiceAwareness,
|
||||
resolveBotPersona,
|
||||
} from "../lib/bot-persona";
|
||||
import { cadencePulseMs, extractVoiceAwareness, resolveBotPersona } from "../lib/bot-persona";
|
||||
import {
|
||||
INVITE_MESSAGE_PREFIX,
|
||||
isActiveRunStatus,
|
||||
|
||||
@ -48,8 +48,8 @@ import {
|
||||
screenUrlWithToken,
|
||||
xdotoolCommand,
|
||||
} from "./computer-spec.js";
|
||||
import { assertComputerHomeWritable } from "./home-ownership.js";
|
||||
import { mountGithubBrokerRoutes } from "./github-broker.js";
|
||||
import { assertComputerHomeWritable } from "./home-ownership.js";
|
||||
import {
|
||||
assertRequestIdentity,
|
||||
attemptComputerControl,
|
||||
|
||||
@ -241,12 +241,6 @@ import {
|
||||
ownerGithubEnvironmentForRun,
|
||||
ownerGithubTokenForBroker,
|
||||
} from "./deployment-github-token.js";
|
||||
import {
|
||||
deleteGithubBrokerSession,
|
||||
registerGithubBrokerSession,
|
||||
setGithubBrokerPushApproved,
|
||||
} from "./github-broker-client.js";
|
||||
import { resolveProjectWorkspaceBind } from "./project-workspace-bind.js";
|
||||
import { resolveDeploymentModel } from "./deployment-model.js";
|
||||
import {
|
||||
missingTurnImagesInstruction,
|
||||
@ -297,6 +291,11 @@ import {
|
||||
import type { ExecutorDeps } from "./executor-types.js";
|
||||
import { loadCurrentTurnImages, selectRunConnections } from "./executor-utils.js";
|
||||
import { evaluateGitShellPolicy } from "./git-shell-policy.js";
|
||||
import {
|
||||
deleteGithubBrokerSession,
|
||||
registerGithubBrokerSession,
|
||||
setGithubBrokerPushApproved,
|
||||
} from "./github-broker-client.js";
|
||||
import { handoffToGroupBot, loadGroupContext } from "./group-handoff.js";
|
||||
import {
|
||||
COMPACTION_BATCH_SIZE,
|
||||
@ -361,6 +360,7 @@ import {
|
||||
searchChartCatalog,
|
||||
} from "./plot-tool.js";
|
||||
import { formatProductSelfModificationInstruction } from "./product-self-modification.js";
|
||||
import { resolveProjectWorkspaceBind } from "./project-workspace-bind.js";
|
||||
import {
|
||||
tryRecoverProseHandoff,
|
||||
workshopFallbackAfterBlockedHandoff,
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
export {
|
||||
evaluateGitShellPolicy,
|
||||
type GitShellPolicyDecision,
|
||||
type GitShellPolicyInput,
|
||||
ghBrokerArgv,
|
||||
gitNetworkArgv,
|
||||
parseGitPushRef,
|
||||
type GitShellPolicyDecision,
|
||||
type GitShellPolicyInput,
|
||||
} from "@rakazo/core";
|
||||
|
||||
@ -53,7 +53,10 @@ export async function registerGithubBrokerSession(input: GithubBrokerSessionInpu
|
||||
}
|
||||
}
|
||||
|
||||
export async function setGithubBrokerPushApproved(runId: string, pushApproved: boolean): Promise<void> {
|
||||
export async function setGithubBrokerPushApproved(
|
||||
runId: string,
|
||||
pushApproved: boolean,
|
||||
): Promise<void> {
|
||||
const base = supervisorBaseUrl();
|
||||
const headers = supervisorAuthHeaders();
|
||||
if (!base || !headers) return;
|
||||
|
||||
@ -84,11 +84,7 @@ export function gitNetworkArgv(argv: string[]): boolean {
|
||||
if (argv.length === 0 || argv[0] !== "git") return false;
|
||||
const sub = argv[1];
|
||||
return (
|
||||
sub === "push" ||
|
||||
sub === "fetch" ||
|
||||
sub === "pull" ||
|
||||
sub === "clone" ||
|
||||
sub === "ls-remote"
|
||||
sub === "push" || sub === "fetch" || sub === "pull" || sub === "clone" || sub === "ls-remote"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -19,10 +19,10 @@ export * from "./computer-updates.js";
|
||||
export * from "./cron.js";
|
||||
export * from "./delegated-tasks.js";
|
||||
export * from "./events.js";
|
||||
export * from "./featured-connectors.js";
|
||||
export * from "./git-shell-policy.js";
|
||||
export * from "./github-broker-token.js";
|
||||
export * from "./github-remote-allowlist.js";
|
||||
export * from "./featured-connectors.js";
|
||||
export * from "./group-mentions.js";
|
||||
export * from "./http-response.js";
|
||||
export * from "./mcp.js";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user