mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-23 00:53:38 +02:00
feat(dot): expand governed Runner capabilities and finish pairing setup
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
426e9fac15
commit
ebc99db2f5
45 files changed
+1409
-105
No files matched your search
@@ -7335,6 +7335,7 @@ export async function executePaperclipNativeSession(input: {
|
||||
/** Use a session-owned GitHub broker, rebound only after run ownership is acquired. */
|
||||
managedGitHub?: boolean;
|
||||
/** Resolved adapter env; the runner transport applies a provider allowlist before spawn. */
|
||||
dotWorkspaceRoot?: string;
|
||||
runnerEnvironment?: NodeJS.ProcessEnv;
|
||||
/** Private grant materialization; never a user-configured host path. */
|
||||
managedAiCredentialHome?: string;
|
||||
@@ -10784,6 +10785,7 @@ export async function createRunnerdBackend(input: {
|
||||
processGroupId: number | null;
|
||||
startedAt: string;
|
||||
}) => Promise<void>;
|
||||
dotWorkspaceRoot?: string;
|
||||
runnerEnvironment?: NodeJS.ProcessEnv;
|
||||
/** Private grant materialization; never a user-configured host path. */
|
||||
managedAiCredentialHome?: string;
|
||||
@@ -10899,7 +10901,7 @@ async function createRunnerdBackendWithinSessionClaim(
|
||||
// Remote Codex already sends dynamic tool calls over authenticated PRP. Keep
|
||||
// the assigned gateway on the control plane instead of asking the sandbox to
|
||||
// reach the host's HTTP origin (which may be private or loopback-only).
|
||||
const relayAssignedMcp = remoteTarget !== null && input.execution.provider.kind === "codex";
|
||||
const relayAssignedMcp = (remoteTarget !== null && input.execution.provider.kind === "codex") || input.execution.provider.kind === "openai_dot";
|
||||
const assignedMcpUrl = input.runnerEnvironment?.PAPERCLIP_NATIVE_MCP_URL;
|
||||
const assignedMcpToken = input.runnerEnvironment?.PAPERCLIP_NATIVE_MCP_TOKEN;
|
||||
const assignedMcpName = input.runnerEnvironment?.PAPERCLIP_NATIVE_MCP_NAME;
|
||||
@@ -10935,7 +10937,10 @@ async function createRunnerdBackendWithinSessionClaim(
|
||||
? input.execution.runtimeContext.mcp.digest
|
||||
: undefined,
|
||||
workMode: input.execution.task.workMode,
|
||||
workspaceRoot: remoteTarget?.remoteCwd ?? input.execution.workspace.cwd ?? undefined,
|
||||
runtimeContext: "runtimeContext" in input.execution ? input.execution.runtimeContext : undefined,
|
||||
workspaceBridge: input.execution.provider.kind === "openai_dot" && !!input.dotWorkspaceRoot,
|
||||
assertBridgeAuthority: input.execution.provider.kind === "openai_dot" ? () => dotRunnerBroker(input.db).assertRunAuthority(input.execution as import("../../vendor/paperclip-runner/index.js").NativeExecutionInputV6) : undefined,
|
||||
workspaceRoot: input.dotWorkspaceRoot ?? remoteTarget?.remoteCwd ?? input.execution.workspace.cwd ?? undefined,
|
||||
executionTargetKind: target.kind,
|
||||
readRemoteWorkspaceFile: remoteTarget && remoteCommandRunner
|
||||
? (file) => readVerifiedRemoteWorkspaceFile({ runner: remoteCommandRunner, workspaceRoot: remoteTarget.remoteCwd, ...file })
|
||||
|
||||
Reference in new issue
Block a user