mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 04:14:30 +00:00
feat(runner): replace server-side bash sandbox with remote runner (#530)
* feat(runner): replace server-side bash sandbox with remote runner * fix(runner): address review findings for output bounds, key rotation, defaults, and generated uploads * chore(docker): remove sandbox privileges and env vars from remaining compose files * feat(cli): add runner start with bundled SRT sandboxing (#535) * refactor(agent): expose runner bash without skill gating * feat(cli): add runner start with optional SRT sandboxing * refactor(cli): remove runner Python dependency * feat(cli): bundle SRT and use platform-native runner shells * refactor(cli): delegate runner processes to Execa * chore(cli): upgrade @anthropic-ai/sandbox-runtime to 0.0.83 * feat(cli): discover Bash for Windows runners Use Pi-style Bash discovery and launch behavior, exercise the packaged CLI shell, and wait for pending ZIP metadata reads before closing cancelled downloads. * fix(runner): enforce ownership and safe reconnects Gate dispatch on reconciliation, retain cancellations across disconnects, and stop replaced clients. Guard the single-server runner topology with a database lease. Restage missing generated inputs, report signal exits, and bound generated-file cleanup. * feat(webui): add Korean translations for agent runners * feat(cli): add runner event logging and --verbose flag (#536) * feat(cli): add runner event logging and --verbose flag * fix(cli): log runner capacity rejections accurately and use monotonic duration
This commit is contained in:
+45
-43
@@ -2,19 +2,21 @@
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file exports the `AgentSessionCommit` model and its related types.
|
||||
*
|
||||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
|
||||
import type * as runtime from "@prisma/client/runtime/client";
|
||||
import type * as Prisma from "../internal/prismaNamespace.ts";
|
||||
import type * as PJTG from '../pjtg';
|
||||
import type * as runtime from "@prisma/client/runtime/client"
|
||||
import type * as $Enums from "../enums.ts"
|
||||
import type * as Prisma from "../internal/prismaNamespace.ts"
|
||||
|
||||
/**
|
||||
* Model AgentSessionCommit
|
||||
*
|
||||
*
|
||||
*/
|
||||
export type AgentSessionCommitModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentSessionCommitPayload>
|
||||
|
||||
@@ -90,55 +92,55 @@ export type AgentSessionCommitAggregateArgs<ExtArgs extends runtime.Types.Extens
|
||||
where?: Prisma.AgentSessionCommitWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
*
|
||||
* Determine the order of AgentSessionCommits to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.AgentSessionCommitOrderByWithRelationInput | Prisma.AgentSessionCommitOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||||
*
|
||||
*
|
||||
* Sets the start position
|
||||
*/
|
||||
cursor?: Prisma.AgentSessionCommitWhereUniqueInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
*
|
||||
* Take `±n` AgentSessionCommits from the position of the cursor.
|
||||
*/
|
||||
take?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
*
|
||||
* Skip the first `n` AgentSessionCommits.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
*
|
||||
* Count returned AgentSessionCommits
|
||||
**/
|
||||
_count?: true | AgentSessionCommitCountAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
*
|
||||
* Select which fields to average
|
||||
**/
|
||||
_avg?: AgentSessionCommitAvgAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
*
|
||||
* Select which fields to sum
|
||||
**/
|
||||
_sum?: AgentSessionCommitSumAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
*
|
||||
* Select which fields to find the minimum value
|
||||
**/
|
||||
_min?: AgentSessionCommitMinAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
*
|
||||
* Select which fields to find the maximum value
|
||||
**/
|
||||
_max?: AgentSessionCommitMaxAggregateInputType
|
||||
@@ -589,13 +591,13 @@ export interface AgentSessionCommitDelegate<ExtArgs extends runtime.Types.Extens
|
||||
* @example
|
||||
* // Get all AgentSessionCommits
|
||||
* const agentSessionCommits = await prisma.agentSessionCommit.findMany()
|
||||
*
|
||||
*
|
||||
* // Get first 10 AgentSessionCommits
|
||||
* const agentSessionCommits = await prisma.agentSessionCommit.findMany({ take: 10 })
|
||||
*
|
||||
*
|
||||
* // Only select the `id`
|
||||
* const agentSessionCommitWithIdOnly = await prisma.agentSessionCommit.findMany({ select: { id: true } })
|
||||
*
|
||||
*
|
||||
*/
|
||||
findMany<T extends AgentSessionCommitFindManyArgs>(args?: Prisma.SelectSubset<T, AgentSessionCommitFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSessionCommitPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
|
||||
@@ -609,7 +611,7 @@ export interface AgentSessionCommitDelegate<ExtArgs extends runtime.Types.Extens
|
||||
* // ... data to create a AgentSessionCommit
|
||||
* }
|
||||
* })
|
||||
*
|
||||
*
|
||||
*/
|
||||
create<T extends AgentSessionCommitCreateArgs>(args: Prisma.SelectSubset<T, AgentSessionCommitCreateArgs<ExtArgs>>): Prisma.Prisma__AgentSessionCommitClient<runtime.Types.Result.GetResult<Prisma.$AgentSessionCommitPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
@@ -623,7 +625,7 @@ export interface AgentSessionCommitDelegate<ExtArgs extends runtime.Types.Extens
|
||||
* // ... provide data here
|
||||
* ]
|
||||
* })
|
||||
*
|
||||
*
|
||||
*/
|
||||
createMany<T extends AgentSessionCommitCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentSessionCommitCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||
|
||||
@@ -637,7 +639,7 @@ export interface AgentSessionCommitDelegate<ExtArgs extends runtime.Types.Extens
|
||||
* // ... provide data here
|
||||
* ]
|
||||
* })
|
||||
*
|
||||
*
|
||||
* // Create many AgentSessionCommits and only return the `id`
|
||||
* const agentSessionCommitWithIdOnly = await prisma.agentSessionCommit.createManyAndReturn({
|
||||
* select: { id: true },
|
||||
@@ -647,7 +649,7 @@ export interface AgentSessionCommitDelegate<ExtArgs extends runtime.Types.Extens
|
||||
* })
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
*
|
||||
*
|
||||
*/
|
||||
createManyAndReturn<T extends AgentSessionCommitCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentSessionCommitCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSessionCommitPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||
|
||||
@@ -661,7 +663,7 @@ export interface AgentSessionCommitDelegate<ExtArgs extends runtime.Types.Extens
|
||||
* // ... filter to delete one AgentSessionCommit
|
||||
* }
|
||||
* })
|
||||
*
|
||||
*
|
||||
*/
|
||||
delete<T extends AgentSessionCommitDeleteArgs>(args: Prisma.SelectSubset<T, AgentSessionCommitDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentSessionCommitClient<runtime.Types.Result.GetResult<Prisma.$AgentSessionCommitPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
@@ -678,7 +680,7 @@ export interface AgentSessionCommitDelegate<ExtArgs extends runtime.Types.Extens
|
||||
* // ... provide data here
|
||||
* }
|
||||
* })
|
||||
*
|
||||
*
|
||||
*/
|
||||
update<T extends AgentSessionCommitUpdateArgs>(args: Prisma.SelectSubset<T, AgentSessionCommitUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentSessionCommitClient<runtime.Types.Result.GetResult<Prisma.$AgentSessionCommitPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
@@ -692,7 +694,7 @@ export interface AgentSessionCommitDelegate<ExtArgs extends runtime.Types.Extens
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*
|
||||
*
|
||||
*/
|
||||
deleteMany<T extends AgentSessionCommitDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentSessionCommitDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||
|
||||
@@ -711,7 +713,7 @@ export interface AgentSessionCommitDelegate<ExtArgs extends runtime.Types.Extens
|
||||
* // ... provide data here
|
||||
* }
|
||||
* })
|
||||
*
|
||||
*
|
||||
*/
|
||||
updateMany<T extends AgentSessionCommitUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentSessionCommitUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||
|
||||
@@ -728,7 +730,7 @@ export interface AgentSessionCommitDelegate<ExtArgs extends runtime.Types.Extens
|
||||
* // ... provide data here
|
||||
* ]
|
||||
* })
|
||||
*
|
||||
*
|
||||
* // Update zero or more AgentSessionCommits and only return the `id`
|
||||
* const agentSessionCommitWithIdOnly = await prisma.agentSessionCommit.updateManyAndReturn({
|
||||
* select: { id: true },
|
||||
@@ -741,7 +743,7 @@ export interface AgentSessionCommitDelegate<ExtArgs extends runtime.Types.Extens
|
||||
* })
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
*
|
||||
*
|
||||
*/
|
||||
updateManyAndReturn<T extends AgentSessionCommitUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentSessionCommitUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSessionCommitPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||
|
||||
@@ -830,7 +832,7 @@ export interface AgentSessionCommitDelegate<ExtArgs extends runtime.Types.Extens
|
||||
* _all: true
|
||||
* },
|
||||
* })
|
||||
*
|
||||
*
|
||||
**/
|
||||
groupBy<
|
||||
T extends AgentSessionCommitGroupByArgs,
|
||||
@@ -939,7 +941,7 @@ export interface AgentSessionCommitFieldRefs {
|
||||
readonly seq: Prisma.FieldRef<"AgentSessionCommit", 'BigInt'>
|
||||
readonly data: Prisma.FieldRef<"AgentSessionCommit", 'Json'>
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Custom InputTypes
|
||||
/**
|
||||
@@ -1008,31 +1010,31 @@ export type AgentSessionCommitFindFirstArgs<ExtArgs extends runtime.Types.Extens
|
||||
where?: Prisma.AgentSessionCommitWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
*
|
||||
* Determine the order of AgentSessionCommits to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.AgentSessionCommitOrderByWithRelationInput | Prisma.AgentSessionCommitOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||||
*
|
||||
*
|
||||
* Sets the position for searching for AgentSessionCommits.
|
||||
*/
|
||||
cursor?: Prisma.AgentSessionCommitWhereUniqueInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
*
|
||||
* Take `±n` AgentSessionCommits from the position of the cursor.
|
||||
*/
|
||||
take?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
*
|
||||
* Skip the first `n` AgentSessionCommits.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
*
|
||||
* Filter by unique combinations of AgentSessionCommits.
|
||||
*/
|
||||
distinct?: Prisma.AgentSessionCommitScalarFieldEnum | Prisma.AgentSessionCommitScalarFieldEnum[]
|
||||
@@ -1060,31 +1062,31 @@ export type AgentSessionCommitFindFirstOrThrowArgs<ExtArgs extends runtime.Types
|
||||
where?: Prisma.AgentSessionCommitWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
*
|
||||
* Determine the order of AgentSessionCommits to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.AgentSessionCommitOrderByWithRelationInput | Prisma.AgentSessionCommitOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||||
*
|
||||
*
|
||||
* Sets the position for searching for AgentSessionCommits.
|
||||
*/
|
||||
cursor?: Prisma.AgentSessionCommitWhereUniqueInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
*
|
||||
* Take `±n` AgentSessionCommits from the position of the cursor.
|
||||
*/
|
||||
take?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
*
|
||||
* Skip the first `n` AgentSessionCommits.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
*
|
||||
* Filter by unique combinations of AgentSessionCommits.
|
||||
*/
|
||||
distinct?: Prisma.AgentSessionCommitScalarFieldEnum | Prisma.AgentSessionCommitScalarFieldEnum[]
|
||||
@@ -1112,31 +1114,31 @@ export type AgentSessionCommitFindManyArgs<ExtArgs extends runtime.Types.Extensi
|
||||
where?: Prisma.AgentSessionCommitWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
*
|
||||
* Determine the order of AgentSessionCommits to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.AgentSessionCommitOrderByWithRelationInput | Prisma.AgentSessionCommitOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||||
*
|
||||
*
|
||||
* Sets the position for listing AgentSessionCommits.
|
||||
*/
|
||||
cursor?: Prisma.AgentSessionCommitWhereUniqueInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
*
|
||||
* Take `±n` AgentSessionCommits from the position of the cursor.
|
||||
*/
|
||||
take?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
*
|
||||
* Skip the first `n` AgentSessionCommits.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
*
|
||||
* Filter by unique combinations of AgentSessionCommits.
|
||||
*/
|
||||
distinct?: Prisma.AgentSessionCommitScalarFieldEnum | Prisma.AgentSessionCommitScalarFieldEnum[]
|
||||
|
||||
Reference in New Issue
Block a user