@castlemilk/omega 0.6.11 → 0.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1391 -254
- package/dist/server/dist/app.d.ts.map +1 -1
- package/dist/server/dist/app.js +2 -0
- package/dist/server/dist/app.js.map +1 -1
- package/dist/server/dist/lib/run-task.d.ts.map +1 -1
- package/dist/server/dist/lib/run-task.js +3 -2
- package/dist/server/dist/lib/run-task.js.map +1 -1
- package/dist/server/dist/routes/metrics.d.ts.map +1 -1
- package/dist/server/dist/routes/metrics.js +76 -2
- package/dist/server/dist/routes/metrics.js.map +1 -1
- package/dist/server/dist/routes/prompt-versions.d.ts +4 -0
- package/dist/server/dist/routes/prompt-versions.d.ts.map +1 -0
- package/dist/server/dist/routes/prompt-versions.js +40 -0
- package/dist/server/dist/routes/prompt-versions.js.map +1 -0
- package/dist/server/dist/routes/tasks.d.ts.map +1 -1
- package/dist/server/dist/routes/tasks.js +4 -0
- package/dist/server/dist/routes/tasks.js.map +1 -1
- package/dist/server/node_modules/.package-lock.json +3 -3
- package/dist/server/node_modules/@grpc/proto-loader/build/bin/proto-loader-gen-types.js +0 -0
- package/dist/server/node_modules/@omega/agent/dist/executor.d.ts.map +1 -1
- package/dist/server/node_modules/@omega/agent/dist/executor.js +83 -10
- package/dist/server/node_modules/@omega/agent/dist/executor.js.map +1 -1
- package/dist/server/node_modules/@omega/agent/dist/index.d.ts +1 -0
- package/dist/server/node_modules/@omega/agent/dist/index.d.ts.map +1 -1
- package/dist/server/node_modules/@omega/agent/dist/index.js +1 -0
- package/dist/server/node_modules/@omega/agent/dist/index.js.map +1 -1
- package/dist/server/node_modules/@omega/agent/dist/planner.d.ts +5 -0
- package/dist/server/node_modules/@omega/agent/dist/planner.d.ts.map +1 -1
- package/dist/server/node_modules/@omega/agent/dist/planner.js +31 -5
- package/dist/server/node_modules/@omega/agent/dist/planner.js.map +1 -1
- package/dist/server/node_modules/@omega/agent/dist/prompt-versioning.d.ts +22 -0
- package/dist/server/node_modules/@omega/agent/dist/prompt-versioning.d.ts.map +1 -0
- package/dist/server/node_modules/@omega/agent/dist/prompt-versioning.js +53 -0
- package/dist/server/node_modules/@omega/agent/dist/prompt-versioning.js.map +1 -0
- package/dist/server/node_modules/@omega/agent/dist/prompts.d.ts +2 -2
- package/dist/server/node_modules/@omega/agent/dist/prompts.d.ts.map +1 -1
- package/dist/server/node_modules/@omega/agent/dist/prompts.js +44 -7
- package/dist/server/node_modules/@omega/agent/dist/prompts.js.map +1 -1
- package/dist/server/node_modules/@omega/agent/package.json +4 -0
- package/dist/server/node_modules/@omega/core/dist/provider.d.ts +12 -2
- package/dist/server/node_modules/@omega/core/dist/provider.d.ts.map +1 -1
- package/dist/server/node_modules/@omega/db/dist/index.d.ts +1 -0
- package/dist/server/node_modules/@omega/db/dist/index.d.ts.map +1 -1
- package/dist/server/node_modules/@omega/db/dist/index.js +1 -0
- package/dist/server/node_modules/@omega/db/dist/index.js.map +1 -1
- package/dist/server/node_modules/@omega/db/dist/prompt-versions.d.ts +19 -0
- package/dist/server/node_modules/@omega/db/dist/prompt-versions.d.ts.map +1 -0
- package/dist/server/node_modules/@omega/db/dist/prompt-versions.js +32 -0
- package/dist/server/node_modules/@omega/db/dist/prompt-versions.js.map +1 -0
- package/dist/server/node_modules/@omega/db/dist/seed.js +6 -6
- package/dist/server/node_modules/@omega/db/dist/seed.js.map +1 -1
- package/dist/server/node_modules/@omega/db/generated/client/edge.js +19 -4
- package/dist/server/node_modules/@omega/db/generated/client/index-browser.js +16 -1
- package/dist/server/node_modules/@omega/db/generated/client/index.d.ts +1511 -93
- package/dist/server/node_modules/@omega/db/generated/client/index.js +19 -4
- package/dist/server/node_modules/@omega/db/generated/client/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/dist/server/node_modules/@omega/db/generated/client/package.json +1 -1
- package/dist/server/node_modules/@omega/db/generated/client/schema.prisma +14 -0
- package/dist/server/node_modules/@omega/db/generated/client/wasm.js +19 -4
- package/dist/server/node_modules/@omega/db/prisma/migrations/20260703010000_add_agent_run_usage/migration.sql +4 -0
- package/dist/server/node_modules/@omega/db/prisma/migrations/20260703020000_add_prompt_versions/migration.sql +16 -0
- package/dist/server/node_modules/@omega/providers/dist/anthropic.d.ts +2 -2
- package/dist/server/node_modules/@omega/providers/dist/anthropic.d.ts.map +1 -1
- package/dist/server/node_modules/@omega/providers/dist/anthropic.js +16 -1
- package/dist/server/node_modules/@omega/providers/dist/anthropic.js.map +1 -1
- package/dist/server/node_modules/@omega/providers/dist/gemini.d.ts +2 -2
- package/dist/server/node_modules/@omega/providers/dist/gemini.d.ts.map +1 -1
- package/dist/server/node_modules/@omega/providers/dist/gemini.js +14 -1
- package/dist/server/node_modules/@omega/providers/dist/gemini.js.map +1 -1
- package/dist/server/node_modules/@omega/providers/dist/kimi.d.ts +3 -4
- package/dist/server/node_modules/@omega/providers/dist/kimi.d.ts.map +1 -1
- package/dist/server/node_modules/@omega/providers/dist/kimi.js +6 -4
- package/dist/server/node_modules/@omega/providers/dist/kimi.js.map +1 -1
- package/dist/server/node_modules/@omega/providers/dist/ollama.d.ts +2 -2
- package/dist/server/node_modules/@omega/providers/dist/ollama.d.ts.map +1 -1
- package/dist/server/node_modules/@omega/providers/dist/ollama.js +13 -1
- package/dist/server/node_modules/@omega/providers/dist/ollama.js.map +1 -1
- package/dist/server/node_modules/@omega/providers/dist/openai.d.ts +3 -3
- package/dist/server/node_modules/@omega/providers/dist/openai.d.ts.map +1 -1
- package/dist/server/node_modules/@omega/providers/dist/openai.js +28 -5
- package/dist/server/node_modules/@omega/providers/dist/openai.js.map +1 -1
- package/dist/server/node_modules/@omega/providers/dist/providers.test.js +13 -9
- package/dist/server/node_modules/@omega/providers/dist/providers.test.js.map +1 -1
- package/dist/server/node_modules/mime/cli.js +0 -0
- package/dist/server/node_modules/mime/src/build.js +0 -0
- package/dist/server/node_modules/protobufjs/dist/light/protobuf.js +2 -2
- package/dist/server/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
- package/dist/server/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/dist/server/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/dist/server/node_modules/protobufjs/dist/protobuf.js +5 -2
- package/dist/server/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/dist/server/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/dist/server/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/dist/server/node_modules/protobufjs/package.json +1 -1
- package/dist/server/node_modules/protobufjs/src/parse.js +3 -0
- package/dist/server/node_modules/wrap-ansi/index.js +0 -0
- package/dist/server/pglite-data/base/5/1247 +0 -0
- package/dist/server/pglite-data/base/5/1249 +0 -0
- package/dist/server/pglite-data/base/5/1249_fsm +0 -0
- package/dist/server/pglite-data/base/5/1259 +0 -0
- package/dist/server/pglite-data/base/5/1259_fsm +0 -0
- package/dist/server/pglite-data/base/5/1259_vm +0 -0
- package/dist/server/pglite-data/base/5/16384 +0 -0
- package/dist/server/pglite-data/base/5/16392 +0 -0
- package/dist/server/pglite-data/base/5/16394 +0 -0
- package/dist/server/pglite-data/base/5/16404 +0 -0
- package/dist/server/pglite-data/base/5/16406 +0 -0
- package/dist/server/pglite-data/base/5/16421 +0 -0
- package/dist/server/pglite-data/base/5/16480 +0 -0
- package/dist/server/pglite-data/base/5/16494 +0 -0
- package/dist/server/pglite-data/base/5/16510 +0 -0
- package/dist/server/pglite-data/base/5/16515 +0 -0
- package/dist/server/pglite-data/base/5/{24591 → 16554} +0 -0
- package/dist/server/pglite-data/base/5/{24592 → 16555} +0 -0
- package/dist/server/pglite-data/base/5/{24588 → 16557} +0 -0
- package/dist/server/pglite-data/base/5/{24589 → 16558} +0 -0
- package/dist/server/pglite-data/base/5/16564 +0 -0
- package/dist/server/pglite-data/base/5/16575 +0 -0
- package/dist/server/pglite-data/base/5/16576 +0 -0
- package/dist/server/pglite-data/base/5/16577 +0 -0
- package/dist/server/pglite-data/base/5/16579 +0 -0
- package/dist/server/pglite-data/base/5/2579 +0 -0
- package/dist/server/pglite-data/base/5/2604 +0 -0
- package/dist/server/pglite-data/base/5/2606 +0 -0
- package/dist/server/pglite-data/base/5/2608 +0 -0
- package/dist/server/pglite-data/base/5/2608_fsm +0 -0
- package/dist/server/pglite-data/base/5/2610 +0 -0
- package/dist/server/pglite-data/base/5/2620 +0 -0
- package/dist/server/pglite-data/base/5/2656 +0 -0
- package/dist/server/pglite-data/base/5/2657 +0 -0
- package/dist/server/pglite-data/base/5/2658 +0 -0
- package/dist/server/pglite-data/base/5/2659 +0 -0
- package/dist/server/pglite-data/base/5/2662 +0 -0
- package/dist/server/pglite-data/base/5/2663 +0 -0
- package/dist/server/pglite-data/base/5/2664 +0 -0
- package/dist/server/pglite-data/base/5/2665 +0 -0
- package/dist/server/pglite-data/base/5/2666 +0 -0
- package/dist/server/pglite-data/base/5/2667 +0 -0
- package/dist/server/pglite-data/base/5/2673 +0 -0
- package/dist/server/pglite-data/base/5/2674 +0 -0
- package/dist/server/pglite-data/base/5/2678 +0 -0
- package/dist/server/pglite-data/base/5/2679 +0 -0
- package/dist/server/pglite-data/base/5/2699 +0 -0
- package/dist/server/pglite-data/base/5/2701 +0 -0
- package/dist/server/pglite-data/base/5/2702 +0 -0
- package/dist/server/pglite-data/base/5/2703 +0 -0
- package/dist/server/pglite-data/base/5/2704 +0 -0
- package/dist/server/pglite-data/base/5/3455 +0 -0
- package/dist/server/pglite-data/base/5/pg_internal.init +0 -0
- package/dist/server/pglite-data/global/pg_control +0 -0
- package/dist/server/pglite-data/global/pg_internal.init +0 -0
- package/dist/server/pglite-data/pg_wal/000000010000000000000001 +0 -0
- package/dist/server/pglite-data/pg_xact/0000 +0 -0
- package/dist/server/pglite-data/postmaster.pid +2 -2
- package/dist/server/src/app.ts +2 -0
- package/dist/server/src/lib/run-task.ts +3 -2
- package/dist/server/src/routes/metrics.ts +81 -2
- package/dist/server/src/routes/prompt-versions.ts +46 -0
- package/dist/server/src/routes/tasks.ts +6 -2
- package/dist/web/dist/assets/index-BVjHH_u_.js +40 -0
- package/dist/web/dist/assets/index-BkzWwMOJ.js +40 -0
- package/dist/web/dist/assets/index-D4rY_mY0.css +1 -0
- package/dist/web/dist/assets/index-DHQbiQAM.css +1 -0
- package/dist/web/dist/index.html +2 -2
- package/package.json +14 -13
- /package/dist/server/pglite-data/base/5/{24576 → 16542} +0 -0
- /package/dist/server/pglite-data/base/5/{24587 → 16553} +0 -0
|
@@ -58,6 +58,11 @@ export type ProviderConfig = $Result.DefaultSelection<Prisma.$ProviderConfigPayl
|
|
|
58
58
|
*
|
|
59
59
|
*/
|
|
60
60
|
export type SkillArtifact = $Result.DefaultSelection<Prisma.$SkillArtifactPayload>
|
|
61
|
+
/**
|
|
62
|
+
* Model PromptVersion
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
export type PromptVersion = $Result.DefaultSelection<Prisma.$PromptVersionPayload>
|
|
61
66
|
|
|
62
67
|
/**
|
|
63
68
|
* ## Prisma Client ʲˢ
|
|
@@ -271,6 +276,16 @@ export class PrismaClient<
|
|
|
271
276
|
* ```
|
|
272
277
|
*/
|
|
273
278
|
get skillArtifact(): Prisma.SkillArtifactDelegate<ExtArgs>;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* `prisma.promptVersion`: Exposes CRUD operations for the **PromptVersion** model.
|
|
282
|
+
* Example usage:
|
|
283
|
+
* ```ts
|
|
284
|
+
* // Fetch zero or more PromptVersions
|
|
285
|
+
* const promptVersions = await prisma.promptVersion.findMany()
|
|
286
|
+
* ```
|
|
287
|
+
*/
|
|
288
|
+
get promptVersion(): Prisma.PromptVersionDelegate<ExtArgs>;
|
|
274
289
|
}
|
|
275
290
|
|
|
276
291
|
export namespace Prisma {
|
|
@@ -720,7 +735,8 @@ export namespace Prisma {
|
|
|
720
735
|
AgentRun: 'AgentRun',
|
|
721
736
|
TraceSpan: 'TraceSpan',
|
|
722
737
|
ProviderConfig: 'ProviderConfig',
|
|
723
|
-
SkillArtifact: 'SkillArtifact'
|
|
738
|
+
SkillArtifact: 'SkillArtifact',
|
|
739
|
+
PromptVersion: 'PromptVersion'
|
|
724
740
|
};
|
|
725
741
|
|
|
726
742
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -736,7 +752,7 @@ export namespace Prisma {
|
|
|
736
752
|
|
|
737
753
|
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> = {
|
|
738
754
|
meta: {
|
|
739
|
-
modelProps: "project" | "task" | "taskStep" | "taskTrace" | "taskDiff" | "agentRun" | "traceSpan" | "providerConfig" | "skillArtifact"
|
|
755
|
+
modelProps: "project" | "task" | "taskStep" | "taskTrace" | "taskDiff" | "agentRun" | "traceSpan" | "providerConfig" | "skillArtifact" | "promptVersion"
|
|
740
756
|
txIsolationLevel: Prisma.TransactionIsolationLevel
|
|
741
757
|
}
|
|
742
758
|
model: {
|
|
@@ -1370,6 +1386,76 @@ export namespace Prisma {
|
|
|
1370
1386
|
}
|
|
1371
1387
|
}
|
|
1372
1388
|
}
|
|
1389
|
+
PromptVersion: {
|
|
1390
|
+
payload: Prisma.$PromptVersionPayload<ExtArgs>
|
|
1391
|
+
fields: Prisma.PromptVersionFieldRefs
|
|
1392
|
+
operations: {
|
|
1393
|
+
findUnique: {
|
|
1394
|
+
args: Prisma.PromptVersionFindUniqueArgs<ExtArgs>
|
|
1395
|
+
result: $Utils.PayloadToResult<Prisma.$PromptVersionPayload> | null
|
|
1396
|
+
}
|
|
1397
|
+
findUniqueOrThrow: {
|
|
1398
|
+
args: Prisma.PromptVersionFindUniqueOrThrowArgs<ExtArgs>
|
|
1399
|
+
result: $Utils.PayloadToResult<Prisma.$PromptVersionPayload>
|
|
1400
|
+
}
|
|
1401
|
+
findFirst: {
|
|
1402
|
+
args: Prisma.PromptVersionFindFirstArgs<ExtArgs>
|
|
1403
|
+
result: $Utils.PayloadToResult<Prisma.$PromptVersionPayload> | null
|
|
1404
|
+
}
|
|
1405
|
+
findFirstOrThrow: {
|
|
1406
|
+
args: Prisma.PromptVersionFindFirstOrThrowArgs<ExtArgs>
|
|
1407
|
+
result: $Utils.PayloadToResult<Prisma.$PromptVersionPayload>
|
|
1408
|
+
}
|
|
1409
|
+
findMany: {
|
|
1410
|
+
args: Prisma.PromptVersionFindManyArgs<ExtArgs>
|
|
1411
|
+
result: $Utils.PayloadToResult<Prisma.$PromptVersionPayload>[]
|
|
1412
|
+
}
|
|
1413
|
+
create: {
|
|
1414
|
+
args: Prisma.PromptVersionCreateArgs<ExtArgs>
|
|
1415
|
+
result: $Utils.PayloadToResult<Prisma.$PromptVersionPayload>
|
|
1416
|
+
}
|
|
1417
|
+
createMany: {
|
|
1418
|
+
args: Prisma.PromptVersionCreateManyArgs<ExtArgs>
|
|
1419
|
+
result: BatchPayload
|
|
1420
|
+
}
|
|
1421
|
+
createManyAndReturn: {
|
|
1422
|
+
args: Prisma.PromptVersionCreateManyAndReturnArgs<ExtArgs>
|
|
1423
|
+
result: $Utils.PayloadToResult<Prisma.$PromptVersionPayload>[]
|
|
1424
|
+
}
|
|
1425
|
+
delete: {
|
|
1426
|
+
args: Prisma.PromptVersionDeleteArgs<ExtArgs>
|
|
1427
|
+
result: $Utils.PayloadToResult<Prisma.$PromptVersionPayload>
|
|
1428
|
+
}
|
|
1429
|
+
update: {
|
|
1430
|
+
args: Prisma.PromptVersionUpdateArgs<ExtArgs>
|
|
1431
|
+
result: $Utils.PayloadToResult<Prisma.$PromptVersionPayload>
|
|
1432
|
+
}
|
|
1433
|
+
deleteMany: {
|
|
1434
|
+
args: Prisma.PromptVersionDeleteManyArgs<ExtArgs>
|
|
1435
|
+
result: BatchPayload
|
|
1436
|
+
}
|
|
1437
|
+
updateMany: {
|
|
1438
|
+
args: Prisma.PromptVersionUpdateManyArgs<ExtArgs>
|
|
1439
|
+
result: BatchPayload
|
|
1440
|
+
}
|
|
1441
|
+
upsert: {
|
|
1442
|
+
args: Prisma.PromptVersionUpsertArgs<ExtArgs>
|
|
1443
|
+
result: $Utils.PayloadToResult<Prisma.$PromptVersionPayload>
|
|
1444
|
+
}
|
|
1445
|
+
aggregate: {
|
|
1446
|
+
args: Prisma.PromptVersionAggregateArgs<ExtArgs>
|
|
1447
|
+
result: $Utils.Optional<AggregatePromptVersion>
|
|
1448
|
+
}
|
|
1449
|
+
groupBy: {
|
|
1450
|
+
args: Prisma.PromptVersionGroupByArgs<ExtArgs>
|
|
1451
|
+
result: $Utils.Optional<PromptVersionGroupByOutputType>[]
|
|
1452
|
+
}
|
|
1453
|
+
count: {
|
|
1454
|
+
args: Prisma.PromptVersionCountArgs<ExtArgs>
|
|
1455
|
+
result: $Utils.Optional<PromptVersionCountAggregateOutputType> | number
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1373
1459
|
}
|
|
1374
1460
|
} & {
|
|
1375
1461
|
other: {
|
|
@@ -6690,10 +6776,24 @@ export namespace Prisma {
|
|
|
6690
6776
|
|
|
6691
6777
|
export type AggregateAgentRun = {
|
|
6692
6778
|
_count: AgentRunCountAggregateOutputType | null
|
|
6779
|
+
_avg: AgentRunAvgAggregateOutputType | null
|
|
6780
|
+
_sum: AgentRunSumAggregateOutputType | null
|
|
6693
6781
|
_min: AgentRunMinAggregateOutputType | null
|
|
6694
6782
|
_max: AgentRunMaxAggregateOutputType | null
|
|
6695
6783
|
}
|
|
6696
6784
|
|
|
6785
|
+
export type AgentRunAvgAggregateOutputType = {
|
|
6786
|
+
promptTokens: number | null
|
|
6787
|
+
completionTokens: number | null
|
|
6788
|
+
totalTokens: number | null
|
|
6789
|
+
}
|
|
6790
|
+
|
|
6791
|
+
export type AgentRunSumAggregateOutputType = {
|
|
6792
|
+
promptTokens: number | null
|
|
6793
|
+
completionTokens: number | null
|
|
6794
|
+
totalTokens: number | null
|
|
6795
|
+
}
|
|
6796
|
+
|
|
6697
6797
|
export type AgentRunMinAggregateOutputType = {
|
|
6698
6798
|
id: string | null
|
|
6699
6799
|
taskId: string | null
|
|
@@ -6702,6 +6802,9 @@ export namespace Prisma {
|
|
|
6702
6802
|
resultStatus: string | null
|
|
6703
6803
|
validationSummary: string | null
|
|
6704
6804
|
publishedVersion: string | null
|
|
6805
|
+
promptTokens: number | null
|
|
6806
|
+
completionTokens: number | null
|
|
6807
|
+
totalTokens: number | null
|
|
6705
6808
|
createdAt: Date | null
|
|
6706
6809
|
updatedAt: Date | null
|
|
6707
6810
|
}
|
|
@@ -6714,6 +6817,9 @@ export namespace Prisma {
|
|
|
6714
6817
|
resultStatus: string | null
|
|
6715
6818
|
validationSummary: string | null
|
|
6716
6819
|
publishedVersion: string | null
|
|
6820
|
+
promptTokens: number | null
|
|
6821
|
+
completionTokens: number | null
|
|
6822
|
+
totalTokens: number | null
|
|
6717
6823
|
createdAt: Date | null
|
|
6718
6824
|
updatedAt: Date | null
|
|
6719
6825
|
}
|
|
@@ -6726,12 +6832,27 @@ export namespace Prisma {
|
|
|
6726
6832
|
resultStatus: number
|
|
6727
6833
|
validationSummary: number
|
|
6728
6834
|
publishedVersion: number
|
|
6835
|
+
promptTokens: number
|
|
6836
|
+
completionTokens: number
|
|
6837
|
+
totalTokens: number
|
|
6729
6838
|
createdAt: number
|
|
6730
6839
|
updatedAt: number
|
|
6731
6840
|
_all: number
|
|
6732
6841
|
}
|
|
6733
6842
|
|
|
6734
6843
|
|
|
6844
|
+
export type AgentRunAvgAggregateInputType = {
|
|
6845
|
+
promptTokens?: true
|
|
6846
|
+
completionTokens?: true
|
|
6847
|
+
totalTokens?: true
|
|
6848
|
+
}
|
|
6849
|
+
|
|
6850
|
+
export type AgentRunSumAggregateInputType = {
|
|
6851
|
+
promptTokens?: true
|
|
6852
|
+
completionTokens?: true
|
|
6853
|
+
totalTokens?: true
|
|
6854
|
+
}
|
|
6855
|
+
|
|
6735
6856
|
export type AgentRunMinAggregateInputType = {
|
|
6736
6857
|
id?: true
|
|
6737
6858
|
taskId?: true
|
|
@@ -6740,6 +6861,9 @@ export namespace Prisma {
|
|
|
6740
6861
|
resultStatus?: true
|
|
6741
6862
|
validationSummary?: true
|
|
6742
6863
|
publishedVersion?: true
|
|
6864
|
+
promptTokens?: true
|
|
6865
|
+
completionTokens?: true
|
|
6866
|
+
totalTokens?: true
|
|
6743
6867
|
createdAt?: true
|
|
6744
6868
|
updatedAt?: true
|
|
6745
6869
|
}
|
|
@@ -6752,6 +6876,9 @@ export namespace Prisma {
|
|
|
6752
6876
|
resultStatus?: true
|
|
6753
6877
|
validationSummary?: true
|
|
6754
6878
|
publishedVersion?: true
|
|
6879
|
+
promptTokens?: true
|
|
6880
|
+
completionTokens?: true
|
|
6881
|
+
totalTokens?: true
|
|
6755
6882
|
createdAt?: true
|
|
6756
6883
|
updatedAt?: true
|
|
6757
6884
|
}
|
|
@@ -6764,6 +6891,9 @@ export namespace Prisma {
|
|
|
6764
6891
|
resultStatus?: true
|
|
6765
6892
|
validationSummary?: true
|
|
6766
6893
|
publishedVersion?: true
|
|
6894
|
+
promptTokens?: true
|
|
6895
|
+
completionTokens?: true
|
|
6896
|
+
totalTokens?: true
|
|
6767
6897
|
createdAt?: true
|
|
6768
6898
|
updatedAt?: true
|
|
6769
6899
|
_all?: true
|
|
@@ -6804,6 +6934,18 @@ export namespace Prisma {
|
|
|
6804
6934
|
* Count returned AgentRuns
|
|
6805
6935
|
**/
|
|
6806
6936
|
_count?: true | AgentRunCountAggregateInputType
|
|
6937
|
+
/**
|
|
6938
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6939
|
+
*
|
|
6940
|
+
* Select which fields to average
|
|
6941
|
+
**/
|
|
6942
|
+
_avg?: AgentRunAvgAggregateInputType
|
|
6943
|
+
/**
|
|
6944
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6945
|
+
*
|
|
6946
|
+
* Select which fields to sum
|
|
6947
|
+
**/
|
|
6948
|
+
_sum?: AgentRunSumAggregateInputType
|
|
6807
6949
|
/**
|
|
6808
6950
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6809
6951
|
*
|
|
@@ -6837,6 +6979,8 @@ export namespace Prisma {
|
|
|
6837
6979
|
take?: number
|
|
6838
6980
|
skip?: number
|
|
6839
6981
|
_count?: AgentRunCountAggregateInputType | true
|
|
6982
|
+
_avg?: AgentRunAvgAggregateInputType
|
|
6983
|
+
_sum?: AgentRunSumAggregateInputType
|
|
6840
6984
|
_min?: AgentRunMinAggregateInputType
|
|
6841
6985
|
_max?: AgentRunMaxAggregateInputType
|
|
6842
6986
|
}
|
|
@@ -6849,9 +6993,14 @@ export namespace Prisma {
|
|
|
6849
6993
|
resultStatus: string
|
|
6850
6994
|
validationSummary: string | null
|
|
6851
6995
|
publishedVersion: string | null
|
|
6996
|
+
promptTokens: number | null
|
|
6997
|
+
completionTokens: number | null
|
|
6998
|
+
totalTokens: number | null
|
|
6852
6999
|
createdAt: Date
|
|
6853
7000
|
updatedAt: Date
|
|
6854
7001
|
_count: AgentRunCountAggregateOutputType | null
|
|
7002
|
+
_avg: AgentRunAvgAggregateOutputType | null
|
|
7003
|
+
_sum: AgentRunSumAggregateOutputType | null
|
|
6855
7004
|
_min: AgentRunMinAggregateOutputType | null
|
|
6856
7005
|
_max: AgentRunMaxAggregateOutputType | null
|
|
6857
7006
|
}
|
|
@@ -6878,6 +7027,9 @@ export namespace Prisma {
|
|
|
6878
7027
|
resultStatus?: boolean
|
|
6879
7028
|
validationSummary?: boolean
|
|
6880
7029
|
publishedVersion?: boolean
|
|
7030
|
+
promptTokens?: boolean
|
|
7031
|
+
completionTokens?: boolean
|
|
7032
|
+
totalTokens?: boolean
|
|
6881
7033
|
createdAt?: boolean
|
|
6882
7034
|
updatedAt?: boolean
|
|
6883
7035
|
task?: boolean | TaskDefaultArgs<ExtArgs>
|
|
@@ -6891,6 +7043,9 @@ export namespace Prisma {
|
|
|
6891
7043
|
resultStatus?: boolean
|
|
6892
7044
|
validationSummary?: boolean
|
|
6893
7045
|
publishedVersion?: boolean
|
|
7046
|
+
promptTokens?: boolean
|
|
7047
|
+
completionTokens?: boolean
|
|
7048
|
+
totalTokens?: boolean
|
|
6894
7049
|
createdAt?: boolean
|
|
6895
7050
|
updatedAt?: boolean
|
|
6896
7051
|
task?: boolean | TaskDefaultArgs<ExtArgs>
|
|
@@ -6904,6 +7059,9 @@ export namespace Prisma {
|
|
|
6904
7059
|
resultStatus?: boolean
|
|
6905
7060
|
validationSummary?: boolean
|
|
6906
7061
|
publishedVersion?: boolean
|
|
7062
|
+
promptTokens?: boolean
|
|
7063
|
+
completionTokens?: boolean
|
|
7064
|
+
totalTokens?: boolean
|
|
6907
7065
|
createdAt?: boolean
|
|
6908
7066
|
updatedAt?: boolean
|
|
6909
7067
|
}
|
|
@@ -6928,6 +7086,9 @@ export namespace Prisma {
|
|
|
6928
7086
|
resultStatus: string
|
|
6929
7087
|
validationSummary: string | null
|
|
6930
7088
|
publishedVersion: string | null
|
|
7089
|
+
promptTokens: number | null
|
|
7090
|
+
completionTokens: number | null
|
|
7091
|
+
totalTokens: number | null
|
|
6931
7092
|
createdAt: Date
|
|
6932
7093
|
updatedAt: Date
|
|
6933
7094
|
}, ExtArgs["result"]["agentRun"]>
|
|
@@ -7331,6 +7492,9 @@ export namespace Prisma {
|
|
|
7331
7492
|
readonly resultStatus: FieldRef<"AgentRun", 'String'>
|
|
7332
7493
|
readonly validationSummary: FieldRef<"AgentRun", 'String'>
|
|
7333
7494
|
readonly publishedVersion: FieldRef<"AgentRun", 'String'>
|
|
7495
|
+
readonly promptTokens: FieldRef<"AgentRun", 'Int'>
|
|
7496
|
+
readonly completionTokens: FieldRef<"AgentRun", 'Int'>
|
|
7497
|
+
readonly totalTokens: FieldRef<"AgentRun", 'Int'>
|
|
7334
7498
|
readonly createdAt: FieldRef<"AgentRun", 'DateTime'>
|
|
7335
7499
|
readonly updatedAt: FieldRef<"AgentRun", 'DateTime'>
|
|
7336
7500
|
}
|
|
@@ -10502,120 +10666,1037 @@ export namespace Prisma {
|
|
|
10502
10666
|
|
|
10503
10667
|
|
|
10504
10668
|
/**
|
|
10505
|
-
*
|
|
10669
|
+
* Model PromptVersion
|
|
10506
10670
|
*/
|
|
10507
10671
|
|
|
10508
|
-
export
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
};
|
|
10672
|
+
export type AggregatePromptVersion = {
|
|
10673
|
+
_count: PromptVersionCountAggregateOutputType | null
|
|
10674
|
+
_min: PromptVersionMinAggregateOutputType | null
|
|
10675
|
+
_max: PromptVersionMaxAggregateOutputType | null
|
|
10676
|
+
}
|
|
10514
10677
|
|
|
10515
|
-
export type
|
|
10678
|
+
export type PromptVersionMinAggregateOutputType = {
|
|
10679
|
+
id: string | null
|
|
10680
|
+
name: string | null
|
|
10681
|
+
sourcePath: string | null
|
|
10682
|
+
systemPrompt: string | null
|
|
10683
|
+
textToolsPrompt: string | null
|
|
10684
|
+
hash: string | null
|
|
10685
|
+
metadata: string | null
|
|
10686
|
+
createdAt: Date | null
|
|
10687
|
+
}
|
|
10516
10688
|
|
|
10689
|
+
export type PromptVersionMaxAggregateOutputType = {
|
|
10690
|
+
id: string | null
|
|
10691
|
+
name: string | null
|
|
10692
|
+
sourcePath: string | null
|
|
10693
|
+
systemPrompt: string | null
|
|
10694
|
+
textToolsPrompt: string | null
|
|
10695
|
+
hash: string | null
|
|
10696
|
+
metadata: string | null
|
|
10697
|
+
createdAt: Date | null
|
|
10698
|
+
}
|
|
10517
10699
|
|
|
10518
|
-
export
|
|
10519
|
-
id:
|
|
10520
|
-
name:
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10700
|
+
export type PromptVersionCountAggregateOutputType = {
|
|
10701
|
+
id: number
|
|
10702
|
+
name: number
|
|
10703
|
+
sourcePath: number
|
|
10704
|
+
systemPrompt: number
|
|
10705
|
+
textToolsPrompt: number
|
|
10706
|
+
hash: number
|
|
10707
|
+
metadata: number
|
|
10708
|
+
createdAt: number
|
|
10709
|
+
_all: number
|
|
10710
|
+
}
|
|
10527
10711
|
|
|
10528
|
-
export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum]
|
|
10529
10712
|
|
|
10713
|
+
export type PromptVersionMinAggregateInputType = {
|
|
10714
|
+
id?: true
|
|
10715
|
+
name?: true
|
|
10716
|
+
sourcePath?: true
|
|
10717
|
+
systemPrompt?: true
|
|
10718
|
+
textToolsPrompt?: true
|
|
10719
|
+
hash?: true
|
|
10720
|
+
metadata?: true
|
|
10721
|
+
createdAt?: true
|
|
10722
|
+
}
|
|
10530
10723
|
|
|
10531
|
-
export
|
|
10532
|
-
id
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
result: 'result',
|
|
10542
|
-
error: 'error',
|
|
10543
|
-
createdAt: 'createdAt',
|
|
10544
|
-
updatedAt: 'updatedAt'
|
|
10545
|
-
};
|
|
10724
|
+
export type PromptVersionMaxAggregateInputType = {
|
|
10725
|
+
id?: true
|
|
10726
|
+
name?: true
|
|
10727
|
+
sourcePath?: true
|
|
10728
|
+
systemPrompt?: true
|
|
10729
|
+
textToolsPrompt?: true
|
|
10730
|
+
hash?: true
|
|
10731
|
+
metadata?: true
|
|
10732
|
+
createdAt?: true
|
|
10733
|
+
}
|
|
10546
10734
|
|
|
10547
|
-
export type
|
|
10735
|
+
export type PromptVersionCountAggregateInputType = {
|
|
10736
|
+
id?: true
|
|
10737
|
+
name?: true
|
|
10738
|
+
sourcePath?: true
|
|
10739
|
+
systemPrompt?: true
|
|
10740
|
+
textToolsPrompt?: true
|
|
10741
|
+
hash?: true
|
|
10742
|
+
metadata?: true
|
|
10743
|
+
createdAt?: true
|
|
10744
|
+
_all?: true
|
|
10745
|
+
}
|
|
10548
10746
|
|
|
10747
|
+
export type PromptVersionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
10748
|
+
/**
|
|
10749
|
+
* Filter which PromptVersion to aggregate.
|
|
10750
|
+
*/
|
|
10751
|
+
where?: PromptVersionWhereInput
|
|
10752
|
+
/**
|
|
10753
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
10754
|
+
*
|
|
10755
|
+
* Determine the order of PromptVersions to fetch.
|
|
10756
|
+
*/
|
|
10757
|
+
orderBy?: PromptVersionOrderByWithRelationInput | PromptVersionOrderByWithRelationInput[]
|
|
10758
|
+
/**
|
|
10759
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
10760
|
+
*
|
|
10761
|
+
* Sets the start position
|
|
10762
|
+
*/
|
|
10763
|
+
cursor?: PromptVersionWhereUniqueInput
|
|
10764
|
+
/**
|
|
10765
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
10766
|
+
*
|
|
10767
|
+
* Take `±n` PromptVersions from the position of the cursor.
|
|
10768
|
+
*/
|
|
10769
|
+
take?: number
|
|
10770
|
+
/**
|
|
10771
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
10772
|
+
*
|
|
10773
|
+
* Skip the first `n` PromptVersions.
|
|
10774
|
+
*/
|
|
10775
|
+
skip?: number
|
|
10776
|
+
/**
|
|
10777
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
10778
|
+
*
|
|
10779
|
+
* Count returned PromptVersions
|
|
10780
|
+
**/
|
|
10781
|
+
_count?: true | PromptVersionCountAggregateInputType
|
|
10782
|
+
/**
|
|
10783
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
10784
|
+
*
|
|
10785
|
+
* Select which fields to find the minimum value
|
|
10786
|
+
**/
|
|
10787
|
+
_min?: PromptVersionMinAggregateInputType
|
|
10788
|
+
/**
|
|
10789
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
10790
|
+
*
|
|
10791
|
+
* Select which fields to find the maximum value
|
|
10792
|
+
**/
|
|
10793
|
+
_max?: PromptVersionMaxAggregateInputType
|
|
10794
|
+
}
|
|
10549
10795
|
|
|
10550
|
-
export
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
output: 'output',
|
|
10558
|
-
error: 'error',
|
|
10559
|
-
createdAt: 'createdAt',
|
|
10560
|
-
updatedAt: 'updatedAt'
|
|
10561
|
-
};
|
|
10796
|
+
export type GetPromptVersionAggregateType<T extends PromptVersionAggregateArgs> = {
|
|
10797
|
+
[P in keyof T & keyof AggregatePromptVersion]: P extends '_count' | 'count'
|
|
10798
|
+
? T[P] extends true
|
|
10799
|
+
? number
|
|
10800
|
+
: GetScalarType<T[P], AggregatePromptVersion[P]>
|
|
10801
|
+
: GetScalarType<T[P], AggregatePromptVersion[P]>
|
|
10802
|
+
}
|
|
10562
10803
|
|
|
10563
|
-
export type TaskStepScalarFieldEnum = (typeof TaskStepScalarFieldEnum)[keyof typeof TaskStepScalarFieldEnum]
|
|
10564
10804
|
|
|
10565
10805
|
|
|
10566
|
-
export const TaskTraceScalarFieldEnum: {
|
|
10567
|
-
id: 'id',
|
|
10568
|
-
taskId: 'taskId',
|
|
10569
|
-
stepId: 'stepId',
|
|
10570
|
-
role: 'role',
|
|
10571
|
-
content: 'content',
|
|
10572
|
-
toolCalls: 'toolCalls',
|
|
10573
|
-
createdAt: 'createdAt'
|
|
10574
|
-
};
|
|
10575
10806
|
|
|
10576
|
-
export type
|
|
10807
|
+
export type PromptVersionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
10808
|
+
where?: PromptVersionWhereInput
|
|
10809
|
+
orderBy?: PromptVersionOrderByWithAggregationInput | PromptVersionOrderByWithAggregationInput[]
|
|
10810
|
+
by: PromptVersionScalarFieldEnum[] | PromptVersionScalarFieldEnum
|
|
10811
|
+
having?: PromptVersionScalarWhereWithAggregatesInput
|
|
10812
|
+
take?: number
|
|
10813
|
+
skip?: number
|
|
10814
|
+
_count?: PromptVersionCountAggregateInputType | true
|
|
10815
|
+
_min?: PromptVersionMinAggregateInputType
|
|
10816
|
+
_max?: PromptVersionMaxAggregateInputType
|
|
10817
|
+
}
|
|
10577
10818
|
|
|
10819
|
+
export type PromptVersionGroupByOutputType = {
|
|
10820
|
+
id: string
|
|
10821
|
+
name: string
|
|
10822
|
+
sourcePath: string
|
|
10823
|
+
systemPrompt: string
|
|
10824
|
+
textToolsPrompt: string
|
|
10825
|
+
hash: string
|
|
10826
|
+
metadata: string | null
|
|
10827
|
+
createdAt: Date
|
|
10828
|
+
_count: PromptVersionCountAggregateOutputType | null
|
|
10829
|
+
_min: PromptVersionMinAggregateOutputType | null
|
|
10830
|
+
_max: PromptVersionMaxAggregateOutputType | null
|
|
10831
|
+
}
|
|
10578
10832
|
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10833
|
+
type GetPromptVersionGroupByPayload<T extends PromptVersionGroupByArgs> = Prisma.PrismaPromise<
|
|
10834
|
+
Array<
|
|
10835
|
+
PickEnumerable<PromptVersionGroupByOutputType, T['by']> &
|
|
10836
|
+
{
|
|
10837
|
+
[P in ((keyof T) & (keyof PromptVersionGroupByOutputType))]: P extends '_count'
|
|
10838
|
+
? T[P] extends boolean
|
|
10839
|
+
? number
|
|
10840
|
+
: GetScalarType<T[P], PromptVersionGroupByOutputType[P]>
|
|
10841
|
+
: GetScalarType<T[P], PromptVersionGroupByOutputType[P]>
|
|
10842
|
+
}
|
|
10843
|
+
>
|
|
10844
|
+
>
|
|
10587
10845
|
|
|
10588
|
-
export type TaskDiffScalarFieldEnum = (typeof TaskDiffScalarFieldEnum)[keyof typeof TaskDiffScalarFieldEnum]
|
|
10589
10846
|
|
|
10847
|
+
export type PromptVersionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
10848
|
+
id?: boolean
|
|
10849
|
+
name?: boolean
|
|
10850
|
+
sourcePath?: boolean
|
|
10851
|
+
systemPrompt?: boolean
|
|
10852
|
+
textToolsPrompt?: boolean
|
|
10853
|
+
hash?: boolean
|
|
10854
|
+
metadata?: boolean
|
|
10855
|
+
createdAt?: boolean
|
|
10856
|
+
}, ExtArgs["result"]["promptVersion"]>
|
|
10590
10857
|
|
|
10591
|
-
export
|
|
10592
|
-
id
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
createdAt
|
|
10600
|
-
|
|
10601
|
-
};
|
|
10858
|
+
export type PromptVersionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
10859
|
+
id?: boolean
|
|
10860
|
+
name?: boolean
|
|
10861
|
+
sourcePath?: boolean
|
|
10862
|
+
systemPrompt?: boolean
|
|
10863
|
+
textToolsPrompt?: boolean
|
|
10864
|
+
hash?: boolean
|
|
10865
|
+
metadata?: boolean
|
|
10866
|
+
createdAt?: boolean
|
|
10867
|
+
}, ExtArgs["result"]["promptVersion"]>
|
|
10602
10868
|
|
|
10603
|
-
export type
|
|
10869
|
+
export type PromptVersionSelectScalar = {
|
|
10870
|
+
id?: boolean
|
|
10871
|
+
name?: boolean
|
|
10872
|
+
sourcePath?: boolean
|
|
10873
|
+
systemPrompt?: boolean
|
|
10874
|
+
textToolsPrompt?: boolean
|
|
10875
|
+
hash?: boolean
|
|
10876
|
+
metadata?: boolean
|
|
10877
|
+
createdAt?: boolean
|
|
10878
|
+
}
|
|
10604
10879
|
|
|
10605
10880
|
|
|
10606
|
-
export
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
|
|
10881
|
+
export type $PromptVersionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
10882
|
+
name: "PromptVersion"
|
|
10883
|
+
objects: {}
|
|
10884
|
+
scalars: $Extensions.GetPayloadResult<{
|
|
10885
|
+
id: string
|
|
10886
|
+
name: string
|
|
10887
|
+
sourcePath: string
|
|
10888
|
+
systemPrompt: string
|
|
10889
|
+
textToolsPrompt: string
|
|
10890
|
+
hash: string
|
|
10891
|
+
metadata: string | null
|
|
10892
|
+
createdAt: Date
|
|
10893
|
+
}, ExtArgs["result"]["promptVersion"]>
|
|
10894
|
+
composites: {}
|
|
10895
|
+
}
|
|
10896
|
+
|
|
10897
|
+
type PromptVersionGetPayload<S extends boolean | null | undefined | PromptVersionDefaultArgs> = $Result.GetResult<Prisma.$PromptVersionPayload, S>
|
|
10898
|
+
|
|
10899
|
+
type PromptVersionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
10900
|
+
Omit<PromptVersionFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
10901
|
+
select?: PromptVersionCountAggregateInputType | true
|
|
10902
|
+
}
|
|
10903
|
+
|
|
10904
|
+
export interface PromptVersionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
10905
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PromptVersion'], meta: { name: 'PromptVersion' } }
|
|
10906
|
+
/**
|
|
10907
|
+
* Find zero or one PromptVersion that matches the filter.
|
|
10908
|
+
* @param {PromptVersionFindUniqueArgs} args - Arguments to find a PromptVersion
|
|
10909
|
+
* @example
|
|
10910
|
+
* // Get one PromptVersion
|
|
10911
|
+
* const promptVersion = await prisma.promptVersion.findUnique({
|
|
10912
|
+
* where: {
|
|
10913
|
+
* // ... provide filter here
|
|
10914
|
+
* }
|
|
10915
|
+
* })
|
|
10916
|
+
*/
|
|
10917
|
+
findUnique<T extends PromptVersionFindUniqueArgs>(args: SelectSubset<T, PromptVersionFindUniqueArgs<ExtArgs>>): Prisma__PromptVersionClient<$Result.GetResult<Prisma.$PromptVersionPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
10918
|
+
|
|
10919
|
+
/**
|
|
10920
|
+
* Find one PromptVersion that matches the filter or throw an error with `error.code='P2025'`
|
|
10921
|
+
* if no matches were found.
|
|
10922
|
+
* @param {PromptVersionFindUniqueOrThrowArgs} args - Arguments to find a PromptVersion
|
|
10923
|
+
* @example
|
|
10924
|
+
* // Get one PromptVersion
|
|
10925
|
+
* const promptVersion = await prisma.promptVersion.findUniqueOrThrow({
|
|
10926
|
+
* where: {
|
|
10927
|
+
* // ... provide filter here
|
|
10928
|
+
* }
|
|
10929
|
+
* })
|
|
10930
|
+
*/
|
|
10931
|
+
findUniqueOrThrow<T extends PromptVersionFindUniqueOrThrowArgs>(args: SelectSubset<T, PromptVersionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PromptVersionClient<$Result.GetResult<Prisma.$PromptVersionPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
10932
|
+
|
|
10933
|
+
/**
|
|
10934
|
+
* Find the first PromptVersion that matches the filter.
|
|
10935
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
10936
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
10937
|
+
* @param {PromptVersionFindFirstArgs} args - Arguments to find a PromptVersion
|
|
10938
|
+
* @example
|
|
10939
|
+
* // Get one PromptVersion
|
|
10940
|
+
* const promptVersion = await prisma.promptVersion.findFirst({
|
|
10941
|
+
* where: {
|
|
10942
|
+
* // ... provide filter here
|
|
10943
|
+
* }
|
|
10944
|
+
* })
|
|
10945
|
+
*/
|
|
10946
|
+
findFirst<T extends PromptVersionFindFirstArgs>(args?: SelectSubset<T, PromptVersionFindFirstArgs<ExtArgs>>): Prisma__PromptVersionClient<$Result.GetResult<Prisma.$PromptVersionPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
10947
|
+
|
|
10948
|
+
/**
|
|
10949
|
+
* Find the first PromptVersion that matches the filter or
|
|
10950
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
10951
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
10952
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
10953
|
+
* @param {PromptVersionFindFirstOrThrowArgs} args - Arguments to find a PromptVersion
|
|
10954
|
+
* @example
|
|
10955
|
+
* // Get one PromptVersion
|
|
10956
|
+
* const promptVersion = await prisma.promptVersion.findFirstOrThrow({
|
|
10957
|
+
* where: {
|
|
10958
|
+
* // ... provide filter here
|
|
10959
|
+
* }
|
|
10960
|
+
* })
|
|
10961
|
+
*/
|
|
10962
|
+
findFirstOrThrow<T extends PromptVersionFindFirstOrThrowArgs>(args?: SelectSubset<T, PromptVersionFindFirstOrThrowArgs<ExtArgs>>): Prisma__PromptVersionClient<$Result.GetResult<Prisma.$PromptVersionPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
10963
|
+
|
|
10964
|
+
/**
|
|
10965
|
+
* Find zero or more PromptVersions that matches the filter.
|
|
10966
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
10967
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
10968
|
+
* @param {PromptVersionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
10969
|
+
* @example
|
|
10970
|
+
* // Get all PromptVersions
|
|
10971
|
+
* const promptVersions = await prisma.promptVersion.findMany()
|
|
10972
|
+
*
|
|
10973
|
+
* // Get first 10 PromptVersions
|
|
10974
|
+
* const promptVersions = await prisma.promptVersion.findMany({ take: 10 })
|
|
10975
|
+
*
|
|
10976
|
+
* // Only select the `id`
|
|
10977
|
+
* const promptVersionWithIdOnly = await prisma.promptVersion.findMany({ select: { id: true } })
|
|
10978
|
+
*
|
|
10979
|
+
*/
|
|
10980
|
+
findMany<T extends PromptVersionFindManyArgs>(args?: SelectSubset<T, PromptVersionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PromptVersionPayload<ExtArgs>, T, "findMany">>
|
|
10981
|
+
|
|
10982
|
+
/**
|
|
10983
|
+
* Create a PromptVersion.
|
|
10984
|
+
* @param {PromptVersionCreateArgs} args - Arguments to create a PromptVersion.
|
|
10985
|
+
* @example
|
|
10986
|
+
* // Create one PromptVersion
|
|
10987
|
+
* const PromptVersion = await prisma.promptVersion.create({
|
|
10988
|
+
* data: {
|
|
10989
|
+
* // ... data to create a PromptVersion
|
|
10990
|
+
* }
|
|
10991
|
+
* })
|
|
10992
|
+
*
|
|
10993
|
+
*/
|
|
10994
|
+
create<T extends PromptVersionCreateArgs>(args: SelectSubset<T, PromptVersionCreateArgs<ExtArgs>>): Prisma__PromptVersionClient<$Result.GetResult<Prisma.$PromptVersionPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
10995
|
+
|
|
10996
|
+
/**
|
|
10997
|
+
* Create many PromptVersions.
|
|
10998
|
+
* @param {PromptVersionCreateManyArgs} args - Arguments to create many PromptVersions.
|
|
10999
|
+
* @example
|
|
11000
|
+
* // Create many PromptVersions
|
|
11001
|
+
* const promptVersion = await prisma.promptVersion.createMany({
|
|
11002
|
+
* data: [
|
|
11003
|
+
* // ... provide data here
|
|
11004
|
+
* ]
|
|
11005
|
+
* })
|
|
11006
|
+
*
|
|
11007
|
+
*/
|
|
11008
|
+
createMany<T extends PromptVersionCreateManyArgs>(args?: SelectSubset<T, PromptVersionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
11009
|
+
|
|
11010
|
+
/**
|
|
11011
|
+
* Create many PromptVersions and returns the data saved in the database.
|
|
11012
|
+
* @param {PromptVersionCreateManyAndReturnArgs} args - Arguments to create many PromptVersions.
|
|
11013
|
+
* @example
|
|
11014
|
+
* // Create many PromptVersions
|
|
11015
|
+
* const promptVersion = await prisma.promptVersion.createManyAndReturn({
|
|
11016
|
+
* data: [
|
|
11017
|
+
* // ... provide data here
|
|
11018
|
+
* ]
|
|
11019
|
+
* })
|
|
11020
|
+
*
|
|
11021
|
+
* // Create many PromptVersions and only return the `id`
|
|
11022
|
+
* const promptVersionWithIdOnly = await prisma.promptVersion.createManyAndReturn({
|
|
11023
|
+
* select: { id: true },
|
|
11024
|
+
* data: [
|
|
11025
|
+
* // ... provide data here
|
|
11026
|
+
* ]
|
|
11027
|
+
* })
|
|
11028
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11029
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11030
|
+
*
|
|
11031
|
+
*/
|
|
11032
|
+
createManyAndReturn<T extends PromptVersionCreateManyAndReturnArgs>(args?: SelectSubset<T, PromptVersionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PromptVersionPayload<ExtArgs>, T, "createManyAndReturn">>
|
|
11033
|
+
|
|
11034
|
+
/**
|
|
11035
|
+
* Delete a PromptVersion.
|
|
11036
|
+
* @param {PromptVersionDeleteArgs} args - Arguments to delete one PromptVersion.
|
|
11037
|
+
* @example
|
|
11038
|
+
* // Delete one PromptVersion
|
|
11039
|
+
* const PromptVersion = await prisma.promptVersion.delete({
|
|
11040
|
+
* where: {
|
|
11041
|
+
* // ... filter to delete one PromptVersion
|
|
11042
|
+
* }
|
|
11043
|
+
* })
|
|
11044
|
+
*
|
|
11045
|
+
*/
|
|
11046
|
+
delete<T extends PromptVersionDeleteArgs>(args: SelectSubset<T, PromptVersionDeleteArgs<ExtArgs>>): Prisma__PromptVersionClient<$Result.GetResult<Prisma.$PromptVersionPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
11047
|
+
|
|
11048
|
+
/**
|
|
11049
|
+
* Update one PromptVersion.
|
|
11050
|
+
* @param {PromptVersionUpdateArgs} args - Arguments to update one PromptVersion.
|
|
11051
|
+
* @example
|
|
11052
|
+
* // Update one PromptVersion
|
|
11053
|
+
* const promptVersion = await prisma.promptVersion.update({
|
|
11054
|
+
* where: {
|
|
11055
|
+
* // ... provide filter here
|
|
11056
|
+
* },
|
|
11057
|
+
* data: {
|
|
11058
|
+
* // ... provide data here
|
|
11059
|
+
* }
|
|
11060
|
+
* })
|
|
11061
|
+
*
|
|
11062
|
+
*/
|
|
11063
|
+
update<T extends PromptVersionUpdateArgs>(args: SelectSubset<T, PromptVersionUpdateArgs<ExtArgs>>): Prisma__PromptVersionClient<$Result.GetResult<Prisma.$PromptVersionPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
11064
|
+
|
|
11065
|
+
/**
|
|
11066
|
+
* Delete zero or more PromptVersions.
|
|
11067
|
+
* @param {PromptVersionDeleteManyArgs} args - Arguments to filter PromptVersions to delete.
|
|
11068
|
+
* @example
|
|
11069
|
+
* // Delete a few PromptVersions
|
|
11070
|
+
* const { count } = await prisma.promptVersion.deleteMany({
|
|
11071
|
+
* where: {
|
|
11072
|
+
* // ... provide filter here
|
|
11073
|
+
* }
|
|
11074
|
+
* })
|
|
11075
|
+
*
|
|
11076
|
+
*/
|
|
11077
|
+
deleteMany<T extends PromptVersionDeleteManyArgs>(args?: SelectSubset<T, PromptVersionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
11078
|
+
|
|
11079
|
+
/**
|
|
11080
|
+
* Update zero or more PromptVersions.
|
|
11081
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11082
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11083
|
+
* @param {PromptVersionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
11084
|
+
* @example
|
|
11085
|
+
* // Update many PromptVersions
|
|
11086
|
+
* const promptVersion = await prisma.promptVersion.updateMany({
|
|
11087
|
+
* where: {
|
|
11088
|
+
* // ... provide filter here
|
|
11089
|
+
* },
|
|
11090
|
+
* data: {
|
|
11091
|
+
* // ... provide data here
|
|
11092
|
+
* }
|
|
11093
|
+
* })
|
|
11094
|
+
*
|
|
11095
|
+
*/
|
|
11096
|
+
updateMany<T extends PromptVersionUpdateManyArgs>(args: SelectSubset<T, PromptVersionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
11097
|
+
|
|
11098
|
+
/**
|
|
11099
|
+
* Create or update one PromptVersion.
|
|
11100
|
+
* @param {PromptVersionUpsertArgs} args - Arguments to update or create a PromptVersion.
|
|
11101
|
+
* @example
|
|
11102
|
+
* // Update or create a PromptVersion
|
|
11103
|
+
* const promptVersion = await prisma.promptVersion.upsert({
|
|
11104
|
+
* create: {
|
|
11105
|
+
* // ... data to create a PromptVersion
|
|
11106
|
+
* },
|
|
11107
|
+
* update: {
|
|
11108
|
+
* // ... in case it already exists, update
|
|
11109
|
+
* },
|
|
11110
|
+
* where: {
|
|
11111
|
+
* // ... the filter for the PromptVersion we want to update
|
|
11112
|
+
* }
|
|
11113
|
+
* })
|
|
11114
|
+
*/
|
|
11115
|
+
upsert<T extends PromptVersionUpsertArgs>(args: SelectSubset<T, PromptVersionUpsertArgs<ExtArgs>>): Prisma__PromptVersionClient<$Result.GetResult<Prisma.$PromptVersionPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
11116
|
+
|
|
11117
|
+
|
|
11118
|
+
/**
|
|
11119
|
+
* Count the number of PromptVersions.
|
|
11120
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11121
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11122
|
+
* @param {PromptVersionCountArgs} args - Arguments to filter PromptVersions to count.
|
|
11123
|
+
* @example
|
|
11124
|
+
* // Count the number of PromptVersions
|
|
11125
|
+
* const count = await prisma.promptVersion.count({
|
|
11126
|
+
* where: {
|
|
11127
|
+
* // ... the filter for the PromptVersions we want to count
|
|
11128
|
+
* }
|
|
11129
|
+
* })
|
|
11130
|
+
**/
|
|
11131
|
+
count<T extends PromptVersionCountArgs>(
|
|
11132
|
+
args?: Subset<T, PromptVersionCountArgs>,
|
|
11133
|
+
): Prisma.PrismaPromise<
|
|
11134
|
+
T extends $Utils.Record<'select', any>
|
|
11135
|
+
? T['select'] extends true
|
|
11136
|
+
? number
|
|
11137
|
+
: GetScalarType<T['select'], PromptVersionCountAggregateOutputType>
|
|
11138
|
+
: number
|
|
11139
|
+
>
|
|
11140
|
+
|
|
11141
|
+
/**
|
|
11142
|
+
* Allows you to perform aggregations operations on a PromptVersion.
|
|
11143
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11144
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11145
|
+
* @param {PromptVersionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
11146
|
+
* @example
|
|
11147
|
+
* // Ordered by age ascending
|
|
11148
|
+
* // Where email contains prisma.io
|
|
11149
|
+
* // Limited to the 10 users
|
|
11150
|
+
* const aggregations = await prisma.user.aggregate({
|
|
11151
|
+
* _avg: {
|
|
11152
|
+
* age: true,
|
|
11153
|
+
* },
|
|
11154
|
+
* where: {
|
|
11155
|
+
* email: {
|
|
11156
|
+
* contains: "prisma.io",
|
|
11157
|
+
* },
|
|
11158
|
+
* },
|
|
11159
|
+
* orderBy: {
|
|
11160
|
+
* age: "asc",
|
|
11161
|
+
* },
|
|
11162
|
+
* take: 10,
|
|
11163
|
+
* })
|
|
11164
|
+
**/
|
|
11165
|
+
aggregate<T extends PromptVersionAggregateArgs>(args: Subset<T, PromptVersionAggregateArgs>): Prisma.PrismaPromise<GetPromptVersionAggregateType<T>>
|
|
11166
|
+
|
|
11167
|
+
/**
|
|
11168
|
+
* Group by PromptVersion.
|
|
11169
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11170
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11171
|
+
* @param {PromptVersionGroupByArgs} args - Group by arguments.
|
|
11172
|
+
* @example
|
|
11173
|
+
* // Group by city, order by createdAt, get count
|
|
11174
|
+
* const result = await prisma.user.groupBy({
|
|
11175
|
+
* by: ['city', 'createdAt'],
|
|
11176
|
+
* orderBy: {
|
|
11177
|
+
* createdAt: true
|
|
11178
|
+
* },
|
|
11179
|
+
* _count: {
|
|
11180
|
+
* _all: true
|
|
11181
|
+
* },
|
|
11182
|
+
* })
|
|
11183
|
+
*
|
|
11184
|
+
**/
|
|
11185
|
+
groupBy<
|
|
11186
|
+
T extends PromptVersionGroupByArgs,
|
|
11187
|
+
HasSelectOrTake extends Or<
|
|
11188
|
+
Extends<'skip', Keys<T>>,
|
|
11189
|
+
Extends<'take', Keys<T>>
|
|
11190
|
+
>,
|
|
11191
|
+
OrderByArg extends True extends HasSelectOrTake
|
|
11192
|
+
? { orderBy: PromptVersionGroupByArgs['orderBy'] }
|
|
11193
|
+
: { orderBy?: PromptVersionGroupByArgs['orderBy'] },
|
|
11194
|
+
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
11195
|
+
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
11196
|
+
ByValid extends Has<ByFields, OrderFields>,
|
|
11197
|
+
HavingFields extends GetHavingFields<T['having']>,
|
|
11198
|
+
HavingValid extends Has<ByFields, HavingFields>,
|
|
11199
|
+
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
11200
|
+
InputErrors extends ByEmpty extends True
|
|
11201
|
+
? `Error: "by" must not be empty.`
|
|
11202
|
+
: HavingValid extends False
|
|
11203
|
+
? {
|
|
11204
|
+
[P in HavingFields]: P extends ByFields
|
|
11205
|
+
? never
|
|
11206
|
+
: P extends string
|
|
11207
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
11208
|
+
: [
|
|
11209
|
+
Error,
|
|
11210
|
+
'Field ',
|
|
11211
|
+
P,
|
|
11212
|
+
` in "having" needs to be provided in "by"`,
|
|
11213
|
+
]
|
|
11214
|
+
}[HavingFields]
|
|
11215
|
+
: 'take' extends Keys<T>
|
|
11216
|
+
? 'orderBy' extends Keys<T>
|
|
11217
|
+
? ByValid extends True
|
|
11218
|
+
? {}
|
|
11219
|
+
: {
|
|
11220
|
+
[P in OrderFields]: P extends ByFields
|
|
11221
|
+
? never
|
|
11222
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
11223
|
+
}[OrderFields]
|
|
11224
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
11225
|
+
: 'skip' extends Keys<T>
|
|
11226
|
+
? 'orderBy' extends Keys<T>
|
|
11227
|
+
? ByValid extends True
|
|
11228
|
+
? {}
|
|
11229
|
+
: {
|
|
11230
|
+
[P in OrderFields]: P extends ByFields
|
|
11231
|
+
? never
|
|
11232
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
11233
|
+
}[OrderFields]
|
|
11234
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
11235
|
+
: ByValid extends True
|
|
11236
|
+
? {}
|
|
11237
|
+
: {
|
|
11238
|
+
[P in OrderFields]: P extends ByFields
|
|
11239
|
+
? never
|
|
11240
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
11241
|
+
}[OrderFields]
|
|
11242
|
+
>(args: SubsetIntersection<T, PromptVersionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPromptVersionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
11243
|
+
/**
|
|
11244
|
+
* Fields of the PromptVersion model
|
|
11245
|
+
*/
|
|
11246
|
+
readonly fields: PromptVersionFieldRefs;
|
|
11247
|
+
}
|
|
11248
|
+
|
|
11249
|
+
/**
|
|
11250
|
+
* The delegate class that acts as a "Promise-like" for PromptVersion.
|
|
11251
|
+
* Why is this prefixed with `Prisma__`?
|
|
11252
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
11253
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
11254
|
+
*/
|
|
11255
|
+
export interface Prisma__PromptVersionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
11256
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
11257
|
+
/**
|
|
11258
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
11259
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
11260
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
11261
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
11262
|
+
*/
|
|
11263
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
11264
|
+
/**
|
|
11265
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
11266
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
11267
|
+
* @returns A Promise for the completion of the callback.
|
|
11268
|
+
*/
|
|
11269
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
11270
|
+
/**
|
|
11271
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
11272
|
+
* resolved value cannot be modified from the callback.
|
|
11273
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
11274
|
+
* @returns A Promise for the completion of the callback.
|
|
11275
|
+
*/
|
|
11276
|
+
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
11277
|
+
}
|
|
11278
|
+
|
|
11279
|
+
|
|
11280
|
+
|
|
11281
|
+
|
|
11282
|
+
/**
|
|
11283
|
+
* Fields of the PromptVersion model
|
|
11284
|
+
*/
|
|
11285
|
+
interface PromptVersionFieldRefs {
|
|
11286
|
+
readonly id: FieldRef<"PromptVersion", 'String'>
|
|
11287
|
+
readonly name: FieldRef<"PromptVersion", 'String'>
|
|
11288
|
+
readonly sourcePath: FieldRef<"PromptVersion", 'String'>
|
|
11289
|
+
readonly systemPrompt: FieldRef<"PromptVersion", 'String'>
|
|
11290
|
+
readonly textToolsPrompt: FieldRef<"PromptVersion", 'String'>
|
|
11291
|
+
readonly hash: FieldRef<"PromptVersion", 'String'>
|
|
11292
|
+
readonly metadata: FieldRef<"PromptVersion", 'String'>
|
|
11293
|
+
readonly createdAt: FieldRef<"PromptVersion", 'DateTime'>
|
|
11294
|
+
}
|
|
11295
|
+
|
|
11296
|
+
|
|
11297
|
+
// Custom InputTypes
|
|
11298
|
+
/**
|
|
11299
|
+
* PromptVersion findUnique
|
|
11300
|
+
*/
|
|
11301
|
+
export type PromptVersionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11302
|
+
/**
|
|
11303
|
+
* Select specific fields to fetch from the PromptVersion
|
|
11304
|
+
*/
|
|
11305
|
+
select?: PromptVersionSelect<ExtArgs> | null
|
|
11306
|
+
/**
|
|
11307
|
+
* Filter, which PromptVersion to fetch.
|
|
11308
|
+
*/
|
|
11309
|
+
where: PromptVersionWhereUniqueInput
|
|
11310
|
+
}
|
|
11311
|
+
|
|
11312
|
+
/**
|
|
11313
|
+
* PromptVersion findUniqueOrThrow
|
|
11314
|
+
*/
|
|
11315
|
+
export type PromptVersionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11316
|
+
/**
|
|
11317
|
+
* Select specific fields to fetch from the PromptVersion
|
|
11318
|
+
*/
|
|
11319
|
+
select?: PromptVersionSelect<ExtArgs> | null
|
|
11320
|
+
/**
|
|
11321
|
+
* Filter, which PromptVersion to fetch.
|
|
11322
|
+
*/
|
|
11323
|
+
where: PromptVersionWhereUniqueInput
|
|
11324
|
+
}
|
|
11325
|
+
|
|
11326
|
+
/**
|
|
11327
|
+
* PromptVersion findFirst
|
|
11328
|
+
*/
|
|
11329
|
+
export type PromptVersionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11330
|
+
/**
|
|
11331
|
+
* Select specific fields to fetch from the PromptVersion
|
|
11332
|
+
*/
|
|
11333
|
+
select?: PromptVersionSelect<ExtArgs> | null
|
|
11334
|
+
/**
|
|
11335
|
+
* Filter, which PromptVersion to fetch.
|
|
11336
|
+
*/
|
|
11337
|
+
where?: PromptVersionWhereInput
|
|
11338
|
+
/**
|
|
11339
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
11340
|
+
*
|
|
11341
|
+
* Determine the order of PromptVersions to fetch.
|
|
11342
|
+
*/
|
|
11343
|
+
orderBy?: PromptVersionOrderByWithRelationInput | PromptVersionOrderByWithRelationInput[]
|
|
11344
|
+
/**
|
|
11345
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
11346
|
+
*
|
|
11347
|
+
* Sets the position for searching for PromptVersions.
|
|
11348
|
+
*/
|
|
11349
|
+
cursor?: PromptVersionWhereUniqueInput
|
|
11350
|
+
/**
|
|
11351
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11352
|
+
*
|
|
11353
|
+
* Take `±n` PromptVersions from the position of the cursor.
|
|
11354
|
+
*/
|
|
11355
|
+
take?: number
|
|
11356
|
+
/**
|
|
11357
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11358
|
+
*
|
|
11359
|
+
* Skip the first `n` PromptVersions.
|
|
11360
|
+
*/
|
|
11361
|
+
skip?: number
|
|
11362
|
+
/**
|
|
11363
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
11364
|
+
*
|
|
11365
|
+
* Filter by unique combinations of PromptVersions.
|
|
11366
|
+
*/
|
|
11367
|
+
distinct?: PromptVersionScalarFieldEnum | PromptVersionScalarFieldEnum[]
|
|
11368
|
+
}
|
|
11369
|
+
|
|
11370
|
+
/**
|
|
11371
|
+
* PromptVersion findFirstOrThrow
|
|
11372
|
+
*/
|
|
11373
|
+
export type PromptVersionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11374
|
+
/**
|
|
11375
|
+
* Select specific fields to fetch from the PromptVersion
|
|
11376
|
+
*/
|
|
11377
|
+
select?: PromptVersionSelect<ExtArgs> | null
|
|
11378
|
+
/**
|
|
11379
|
+
* Filter, which PromptVersion to fetch.
|
|
11380
|
+
*/
|
|
11381
|
+
where?: PromptVersionWhereInput
|
|
11382
|
+
/**
|
|
11383
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
11384
|
+
*
|
|
11385
|
+
* Determine the order of PromptVersions to fetch.
|
|
11386
|
+
*/
|
|
11387
|
+
orderBy?: PromptVersionOrderByWithRelationInput | PromptVersionOrderByWithRelationInput[]
|
|
11388
|
+
/**
|
|
11389
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
11390
|
+
*
|
|
11391
|
+
* Sets the position for searching for PromptVersions.
|
|
11392
|
+
*/
|
|
11393
|
+
cursor?: PromptVersionWhereUniqueInput
|
|
11394
|
+
/**
|
|
11395
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11396
|
+
*
|
|
11397
|
+
* Take `±n` PromptVersions from the position of the cursor.
|
|
11398
|
+
*/
|
|
11399
|
+
take?: number
|
|
11400
|
+
/**
|
|
11401
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11402
|
+
*
|
|
11403
|
+
* Skip the first `n` PromptVersions.
|
|
11404
|
+
*/
|
|
11405
|
+
skip?: number
|
|
11406
|
+
/**
|
|
11407
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
11408
|
+
*
|
|
11409
|
+
* Filter by unique combinations of PromptVersions.
|
|
11410
|
+
*/
|
|
11411
|
+
distinct?: PromptVersionScalarFieldEnum | PromptVersionScalarFieldEnum[]
|
|
11412
|
+
}
|
|
11413
|
+
|
|
11414
|
+
/**
|
|
11415
|
+
* PromptVersion findMany
|
|
11416
|
+
*/
|
|
11417
|
+
export type PromptVersionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11418
|
+
/**
|
|
11419
|
+
* Select specific fields to fetch from the PromptVersion
|
|
11420
|
+
*/
|
|
11421
|
+
select?: PromptVersionSelect<ExtArgs> | null
|
|
11422
|
+
/**
|
|
11423
|
+
* Filter, which PromptVersions to fetch.
|
|
11424
|
+
*/
|
|
11425
|
+
where?: PromptVersionWhereInput
|
|
11426
|
+
/**
|
|
11427
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
11428
|
+
*
|
|
11429
|
+
* Determine the order of PromptVersions to fetch.
|
|
11430
|
+
*/
|
|
11431
|
+
orderBy?: PromptVersionOrderByWithRelationInput | PromptVersionOrderByWithRelationInput[]
|
|
11432
|
+
/**
|
|
11433
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
11434
|
+
*
|
|
11435
|
+
* Sets the position for listing PromptVersions.
|
|
11436
|
+
*/
|
|
11437
|
+
cursor?: PromptVersionWhereUniqueInput
|
|
11438
|
+
/**
|
|
11439
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11440
|
+
*
|
|
11441
|
+
* Take `±n` PromptVersions from the position of the cursor.
|
|
11442
|
+
*/
|
|
11443
|
+
take?: number
|
|
11444
|
+
/**
|
|
11445
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11446
|
+
*
|
|
11447
|
+
* Skip the first `n` PromptVersions.
|
|
11448
|
+
*/
|
|
11449
|
+
skip?: number
|
|
11450
|
+
distinct?: PromptVersionScalarFieldEnum | PromptVersionScalarFieldEnum[]
|
|
11451
|
+
}
|
|
11452
|
+
|
|
11453
|
+
/**
|
|
11454
|
+
* PromptVersion create
|
|
11455
|
+
*/
|
|
11456
|
+
export type PromptVersionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11457
|
+
/**
|
|
11458
|
+
* Select specific fields to fetch from the PromptVersion
|
|
11459
|
+
*/
|
|
11460
|
+
select?: PromptVersionSelect<ExtArgs> | null
|
|
11461
|
+
/**
|
|
11462
|
+
* The data needed to create a PromptVersion.
|
|
11463
|
+
*/
|
|
11464
|
+
data: XOR<PromptVersionCreateInput, PromptVersionUncheckedCreateInput>
|
|
11465
|
+
}
|
|
11466
|
+
|
|
11467
|
+
/**
|
|
11468
|
+
* PromptVersion createMany
|
|
11469
|
+
*/
|
|
11470
|
+
export type PromptVersionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11471
|
+
/**
|
|
11472
|
+
* The data used to create many PromptVersions.
|
|
11473
|
+
*/
|
|
11474
|
+
data: PromptVersionCreateManyInput | PromptVersionCreateManyInput[]
|
|
11475
|
+
skipDuplicates?: boolean
|
|
11476
|
+
}
|
|
11477
|
+
|
|
11478
|
+
/**
|
|
11479
|
+
* PromptVersion createManyAndReturn
|
|
11480
|
+
*/
|
|
11481
|
+
export type PromptVersionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11482
|
+
/**
|
|
11483
|
+
* Select specific fields to fetch from the PromptVersion
|
|
11484
|
+
*/
|
|
11485
|
+
select?: PromptVersionSelectCreateManyAndReturn<ExtArgs> | null
|
|
11486
|
+
/**
|
|
11487
|
+
* The data used to create many PromptVersions.
|
|
11488
|
+
*/
|
|
11489
|
+
data: PromptVersionCreateManyInput | PromptVersionCreateManyInput[]
|
|
11490
|
+
skipDuplicates?: boolean
|
|
11491
|
+
}
|
|
11492
|
+
|
|
11493
|
+
/**
|
|
11494
|
+
* PromptVersion update
|
|
11495
|
+
*/
|
|
11496
|
+
export type PromptVersionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11497
|
+
/**
|
|
11498
|
+
* Select specific fields to fetch from the PromptVersion
|
|
11499
|
+
*/
|
|
11500
|
+
select?: PromptVersionSelect<ExtArgs> | null
|
|
11501
|
+
/**
|
|
11502
|
+
* The data needed to update a PromptVersion.
|
|
11503
|
+
*/
|
|
11504
|
+
data: XOR<PromptVersionUpdateInput, PromptVersionUncheckedUpdateInput>
|
|
11505
|
+
/**
|
|
11506
|
+
* Choose, which PromptVersion to update.
|
|
11507
|
+
*/
|
|
11508
|
+
where: PromptVersionWhereUniqueInput
|
|
11509
|
+
}
|
|
11510
|
+
|
|
11511
|
+
/**
|
|
11512
|
+
* PromptVersion updateMany
|
|
11513
|
+
*/
|
|
11514
|
+
export type PromptVersionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11515
|
+
/**
|
|
11516
|
+
* The data used to update PromptVersions.
|
|
11517
|
+
*/
|
|
11518
|
+
data: XOR<PromptVersionUpdateManyMutationInput, PromptVersionUncheckedUpdateManyInput>
|
|
11519
|
+
/**
|
|
11520
|
+
* Filter which PromptVersions to update
|
|
11521
|
+
*/
|
|
11522
|
+
where?: PromptVersionWhereInput
|
|
11523
|
+
}
|
|
11524
|
+
|
|
11525
|
+
/**
|
|
11526
|
+
* PromptVersion upsert
|
|
11527
|
+
*/
|
|
11528
|
+
export type PromptVersionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11529
|
+
/**
|
|
11530
|
+
* Select specific fields to fetch from the PromptVersion
|
|
11531
|
+
*/
|
|
11532
|
+
select?: PromptVersionSelect<ExtArgs> | null
|
|
11533
|
+
/**
|
|
11534
|
+
* The filter to search for the PromptVersion to update in case it exists.
|
|
11535
|
+
*/
|
|
11536
|
+
where: PromptVersionWhereUniqueInput
|
|
11537
|
+
/**
|
|
11538
|
+
* In case the PromptVersion found by the `where` argument doesn't exist, create a new PromptVersion with this data.
|
|
11539
|
+
*/
|
|
11540
|
+
create: XOR<PromptVersionCreateInput, PromptVersionUncheckedCreateInput>
|
|
11541
|
+
/**
|
|
11542
|
+
* In case the PromptVersion was found with the provided `where` argument, update it with this data.
|
|
11543
|
+
*/
|
|
11544
|
+
update: XOR<PromptVersionUpdateInput, PromptVersionUncheckedUpdateInput>
|
|
11545
|
+
}
|
|
11546
|
+
|
|
11547
|
+
/**
|
|
11548
|
+
* PromptVersion delete
|
|
11549
|
+
*/
|
|
11550
|
+
export type PromptVersionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11551
|
+
/**
|
|
11552
|
+
* Select specific fields to fetch from the PromptVersion
|
|
11553
|
+
*/
|
|
11554
|
+
select?: PromptVersionSelect<ExtArgs> | null
|
|
11555
|
+
/**
|
|
11556
|
+
* Filter which PromptVersion to delete.
|
|
11557
|
+
*/
|
|
11558
|
+
where: PromptVersionWhereUniqueInput
|
|
11559
|
+
}
|
|
11560
|
+
|
|
11561
|
+
/**
|
|
11562
|
+
* PromptVersion deleteMany
|
|
11563
|
+
*/
|
|
11564
|
+
export type PromptVersionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11565
|
+
/**
|
|
11566
|
+
* Filter which PromptVersions to delete
|
|
11567
|
+
*/
|
|
11568
|
+
where?: PromptVersionWhereInput
|
|
11569
|
+
}
|
|
11570
|
+
|
|
11571
|
+
/**
|
|
11572
|
+
* PromptVersion without action
|
|
11573
|
+
*/
|
|
11574
|
+
export type PromptVersionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11575
|
+
/**
|
|
11576
|
+
* Select specific fields to fetch from the PromptVersion
|
|
11577
|
+
*/
|
|
11578
|
+
select?: PromptVersionSelect<ExtArgs> | null
|
|
11579
|
+
}
|
|
11580
|
+
|
|
11581
|
+
|
|
11582
|
+
/**
|
|
11583
|
+
* Enums
|
|
11584
|
+
*/
|
|
11585
|
+
|
|
11586
|
+
export const TransactionIsolationLevel: {
|
|
11587
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
11588
|
+
ReadCommitted: 'ReadCommitted',
|
|
11589
|
+
RepeatableRead: 'RepeatableRead',
|
|
11590
|
+
Serializable: 'Serializable'
|
|
11591
|
+
};
|
|
11592
|
+
|
|
11593
|
+
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
11594
|
+
|
|
11595
|
+
|
|
11596
|
+
export const ProjectScalarFieldEnum: {
|
|
11597
|
+
id: 'id',
|
|
11598
|
+
name: 'name',
|
|
11599
|
+
path: 'path',
|
|
11600
|
+
repoUrl: 'repoUrl',
|
|
11601
|
+
description: 'description',
|
|
11602
|
+
env: 'env',
|
|
11603
|
+
createdAt: 'createdAt'
|
|
11604
|
+
};
|
|
11605
|
+
|
|
11606
|
+
export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum]
|
|
11607
|
+
|
|
11608
|
+
|
|
11609
|
+
export const TaskScalarFieldEnum: {
|
|
11610
|
+
id: 'id',
|
|
11611
|
+
projectId: 'projectId',
|
|
11612
|
+
title: 'title',
|
|
11613
|
+
description: 'description',
|
|
11614
|
+
status: 'status',
|
|
11615
|
+
complexity: 'complexity',
|
|
11616
|
+
tags: 'tags',
|
|
11617
|
+
provider: 'provider',
|
|
11618
|
+
model: 'model',
|
|
11619
|
+
result: 'result',
|
|
11620
|
+
error: 'error',
|
|
11621
|
+
createdAt: 'createdAt',
|
|
11622
|
+
updatedAt: 'updatedAt'
|
|
11623
|
+
};
|
|
11624
|
+
|
|
11625
|
+
export type TaskScalarFieldEnum = (typeof TaskScalarFieldEnum)[keyof typeof TaskScalarFieldEnum]
|
|
11626
|
+
|
|
11627
|
+
|
|
11628
|
+
export const TaskStepScalarFieldEnum: {
|
|
11629
|
+
id: 'id',
|
|
11630
|
+
taskId: 'taskId',
|
|
11631
|
+
idx: 'idx',
|
|
11632
|
+
name: 'name',
|
|
11633
|
+
status: 'status',
|
|
11634
|
+
input: 'input',
|
|
11635
|
+
output: 'output',
|
|
11636
|
+
error: 'error',
|
|
11637
|
+
createdAt: 'createdAt',
|
|
11638
|
+
updatedAt: 'updatedAt'
|
|
11639
|
+
};
|
|
11640
|
+
|
|
11641
|
+
export type TaskStepScalarFieldEnum = (typeof TaskStepScalarFieldEnum)[keyof typeof TaskStepScalarFieldEnum]
|
|
11642
|
+
|
|
11643
|
+
|
|
11644
|
+
export const TaskTraceScalarFieldEnum: {
|
|
11645
|
+
id: 'id',
|
|
11646
|
+
taskId: 'taskId',
|
|
11647
|
+
stepId: 'stepId',
|
|
11648
|
+
role: 'role',
|
|
11649
|
+
content: 'content',
|
|
11650
|
+
toolCalls: 'toolCalls',
|
|
11651
|
+
createdAt: 'createdAt'
|
|
11652
|
+
};
|
|
11653
|
+
|
|
11654
|
+
export type TaskTraceScalarFieldEnum = (typeof TaskTraceScalarFieldEnum)[keyof typeof TaskTraceScalarFieldEnum]
|
|
11655
|
+
|
|
11656
|
+
|
|
11657
|
+
export const TaskDiffScalarFieldEnum: {
|
|
11658
|
+
id: 'id',
|
|
11659
|
+
taskId: 'taskId',
|
|
11660
|
+
branch: 'branch',
|
|
11661
|
+
commitSha: 'commitSha',
|
|
11662
|
+
patch: 'patch',
|
|
11663
|
+
createdAt: 'createdAt'
|
|
11664
|
+
};
|
|
11665
|
+
|
|
11666
|
+
export type TaskDiffScalarFieldEnum = (typeof TaskDiffScalarFieldEnum)[keyof typeof TaskDiffScalarFieldEnum]
|
|
11667
|
+
|
|
11668
|
+
|
|
11669
|
+
export const AgentRunScalarFieldEnum: {
|
|
11670
|
+
id: 'id',
|
|
11671
|
+
taskId: 'taskId',
|
|
11672
|
+
branch: 'branch',
|
|
11673
|
+
baseCommit: 'baseCommit',
|
|
11674
|
+
resultStatus: 'resultStatus',
|
|
11675
|
+
validationSummary: 'validationSummary',
|
|
11676
|
+
publishedVersion: 'publishedVersion',
|
|
11677
|
+
promptTokens: 'promptTokens',
|
|
11678
|
+
completionTokens: 'completionTokens',
|
|
11679
|
+
totalTokens: 'totalTokens',
|
|
11680
|
+
createdAt: 'createdAt',
|
|
11681
|
+
updatedAt: 'updatedAt'
|
|
11682
|
+
};
|
|
11683
|
+
|
|
11684
|
+
export type AgentRunScalarFieldEnum = (typeof AgentRunScalarFieldEnum)[keyof typeof AgentRunScalarFieldEnum]
|
|
11685
|
+
|
|
11686
|
+
|
|
11687
|
+
export const TraceSpanScalarFieldEnum: {
|
|
11688
|
+
id: 'id',
|
|
11689
|
+
traceId: 'traceId',
|
|
11690
|
+
spanId: 'spanId',
|
|
11691
|
+
parentId: 'parentId',
|
|
11692
|
+
taskId: 'taskId',
|
|
11693
|
+
name: 'name',
|
|
11694
|
+
startTime: 'startTime',
|
|
11695
|
+
endTime: 'endTime',
|
|
11696
|
+
status: 'status',
|
|
11697
|
+
attributes: 'attributes',
|
|
11698
|
+
events: 'events'
|
|
11699
|
+
};
|
|
10619
11700
|
|
|
10620
11701
|
export type TraceSpanScalarFieldEnum = (typeof TraceSpanScalarFieldEnum)[keyof typeof TraceSpanScalarFieldEnum]
|
|
10621
11702
|
|
|
@@ -10647,6 +11728,20 @@ export namespace Prisma {
|
|
|
10647
11728
|
export type SkillArtifactScalarFieldEnum = (typeof SkillArtifactScalarFieldEnum)[keyof typeof SkillArtifactScalarFieldEnum]
|
|
10648
11729
|
|
|
10649
11730
|
|
|
11731
|
+
export const PromptVersionScalarFieldEnum: {
|
|
11732
|
+
id: 'id',
|
|
11733
|
+
name: 'name',
|
|
11734
|
+
sourcePath: 'sourcePath',
|
|
11735
|
+
systemPrompt: 'systemPrompt',
|
|
11736
|
+
textToolsPrompt: 'textToolsPrompt',
|
|
11737
|
+
hash: 'hash',
|
|
11738
|
+
metadata: 'metadata',
|
|
11739
|
+
createdAt: 'createdAt'
|
|
11740
|
+
};
|
|
11741
|
+
|
|
11742
|
+
export type PromptVersionScalarFieldEnum = (typeof PromptVersionScalarFieldEnum)[keyof typeof PromptVersionScalarFieldEnum]
|
|
11743
|
+
|
|
11744
|
+
|
|
10650
11745
|
export const SortOrder: {
|
|
10651
11746
|
asc: 'asc',
|
|
10652
11747
|
desc: 'desc'
|
|
@@ -11135,6 +12230,9 @@ export namespace Prisma {
|
|
|
11135
12230
|
resultStatus?: StringFilter<"AgentRun"> | string
|
|
11136
12231
|
validationSummary?: StringNullableFilter<"AgentRun"> | string | null
|
|
11137
12232
|
publishedVersion?: StringNullableFilter<"AgentRun"> | string | null
|
|
12233
|
+
promptTokens?: IntNullableFilter<"AgentRun"> | number | null
|
|
12234
|
+
completionTokens?: IntNullableFilter<"AgentRun"> | number | null
|
|
12235
|
+
totalTokens?: IntNullableFilter<"AgentRun"> | number | null
|
|
11138
12236
|
createdAt?: DateTimeFilter<"AgentRun"> | Date | string
|
|
11139
12237
|
updatedAt?: DateTimeFilter<"AgentRun"> | Date | string
|
|
11140
12238
|
task?: XOR<TaskRelationFilter, TaskWhereInput>
|
|
@@ -11148,6 +12246,9 @@ export namespace Prisma {
|
|
|
11148
12246
|
resultStatus?: SortOrder
|
|
11149
12247
|
validationSummary?: SortOrderInput | SortOrder
|
|
11150
12248
|
publishedVersion?: SortOrderInput | SortOrder
|
|
12249
|
+
promptTokens?: SortOrderInput | SortOrder
|
|
12250
|
+
completionTokens?: SortOrderInput | SortOrder
|
|
12251
|
+
totalTokens?: SortOrderInput | SortOrder
|
|
11151
12252
|
createdAt?: SortOrder
|
|
11152
12253
|
updatedAt?: SortOrder
|
|
11153
12254
|
task?: TaskOrderByWithRelationInput
|
|
@@ -11164,6 +12265,9 @@ export namespace Prisma {
|
|
|
11164
12265
|
resultStatus?: StringFilter<"AgentRun"> | string
|
|
11165
12266
|
validationSummary?: StringNullableFilter<"AgentRun"> | string | null
|
|
11166
12267
|
publishedVersion?: StringNullableFilter<"AgentRun"> | string | null
|
|
12268
|
+
promptTokens?: IntNullableFilter<"AgentRun"> | number | null
|
|
12269
|
+
completionTokens?: IntNullableFilter<"AgentRun"> | number | null
|
|
12270
|
+
totalTokens?: IntNullableFilter<"AgentRun"> | number | null
|
|
11167
12271
|
createdAt?: DateTimeFilter<"AgentRun"> | Date | string
|
|
11168
12272
|
updatedAt?: DateTimeFilter<"AgentRun"> | Date | string
|
|
11169
12273
|
task?: XOR<TaskRelationFilter, TaskWhereInput>
|
|
@@ -11177,11 +12281,16 @@ export namespace Prisma {
|
|
|
11177
12281
|
resultStatus?: SortOrder
|
|
11178
12282
|
validationSummary?: SortOrderInput | SortOrder
|
|
11179
12283
|
publishedVersion?: SortOrderInput | SortOrder
|
|
12284
|
+
promptTokens?: SortOrderInput | SortOrder
|
|
12285
|
+
completionTokens?: SortOrderInput | SortOrder
|
|
12286
|
+
totalTokens?: SortOrderInput | SortOrder
|
|
11180
12287
|
createdAt?: SortOrder
|
|
11181
12288
|
updatedAt?: SortOrder
|
|
11182
12289
|
_count?: AgentRunCountOrderByAggregateInput
|
|
12290
|
+
_avg?: AgentRunAvgOrderByAggregateInput
|
|
11183
12291
|
_max?: AgentRunMaxOrderByAggregateInput
|
|
11184
12292
|
_min?: AgentRunMinOrderByAggregateInput
|
|
12293
|
+
_sum?: AgentRunSumOrderByAggregateInput
|
|
11185
12294
|
}
|
|
11186
12295
|
|
|
11187
12296
|
export type AgentRunScalarWhereWithAggregatesInput = {
|
|
@@ -11195,6 +12304,9 @@ export namespace Prisma {
|
|
|
11195
12304
|
resultStatus?: StringWithAggregatesFilter<"AgentRun"> | string
|
|
11196
12305
|
validationSummary?: StringNullableWithAggregatesFilter<"AgentRun"> | string | null
|
|
11197
12306
|
publishedVersion?: StringNullableWithAggregatesFilter<"AgentRun"> | string | null
|
|
12307
|
+
promptTokens?: IntNullableWithAggregatesFilter<"AgentRun"> | number | null
|
|
12308
|
+
completionTokens?: IntNullableWithAggregatesFilter<"AgentRun"> | number | null
|
|
12309
|
+
totalTokens?: IntNullableWithAggregatesFilter<"AgentRun"> | number | null
|
|
11198
12310
|
createdAt?: DateTimeWithAggregatesFilter<"AgentRun"> | Date | string
|
|
11199
12311
|
updatedAt?: DateTimeWithAggregatesFilter<"AgentRun"> | Date | string
|
|
11200
12312
|
}
|
|
@@ -11413,6 +12525,73 @@ export namespace Prisma {
|
|
|
11413
12525
|
registeredAt?: DateTimeWithAggregatesFilter<"SkillArtifact"> | Date | string
|
|
11414
12526
|
}
|
|
11415
12527
|
|
|
12528
|
+
export type PromptVersionWhereInput = {
|
|
12529
|
+
AND?: PromptVersionWhereInput | PromptVersionWhereInput[]
|
|
12530
|
+
OR?: PromptVersionWhereInput[]
|
|
12531
|
+
NOT?: PromptVersionWhereInput | PromptVersionWhereInput[]
|
|
12532
|
+
id?: StringFilter<"PromptVersion"> | string
|
|
12533
|
+
name?: StringFilter<"PromptVersion"> | string
|
|
12534
|
+
sourcePath?: StringFilter<"PromptVersion"> | string
|
|
12535
|
+
systemPrompt?: StringFilter<"PromptVersion"> | string
|
|
12536
|
+
textToolsPrompt?: StringFilter<"PromptVersion"> | string
|
|
12537
|
+
hash?: StringFilter<"PromptVersion"> | string
|
|
12538
|
+
metadata?: StringNullableFilter<"PromptVersion"> | string | null
|
|
12539
|
+
createdAt?: DateTimeFilter<"PromptVersion"> | Date | string
|
|
12540
|
+
}
|
|
12541
|
+
|
|
12542
|
+
export type PromptVersionOrderByWithRelationInput = {
|
|
12543
|
+
id?: SortOrder
|
|
12544
|
+
name?: SortOrder
|
|
12545
|
+
sourcePath?: SortOrder
|
|
12546
|
+
systemPrompt?: SortOrder
|
|
12547
|
+
textToolsPrompt?: SortOrder
|
|
12548
|
+
hash?: SortOrder
|
|
12549
|
+
metadata?: SortOrderInput | SortOrder
|
|
12550
|
+
createdAt?: SortOrder
|
|
12551
|
+
}
|
|
12552
|
+
|
|
12553
|
+
export type PromptVersionWhereUniqueInput = Prisma.AtLeast<{
|
|
12554
|
+
id?: string
|
|
12555
|
+
name?: string
|
|
12556
|
+
AND?: PromptVersionWhereInput | PromptVersionWhereInput[]
|
|
12557
|
+
OR?: PromptVersionWhereInput[]
|
|
12558
|
+
NOT?: PromptVersionWhereInput | PromptVersionWhereInput[]
|
|
12559
|
+
sourcePath?: StringFilter<"PromptVersion"> | string
|
|
12560
|
+
systemPrompt?: StringFilter<"PromptVersion"> | string
|
|
12561
|
+
textToolsPrompt?: StringFilter<"PromptVersion"> | string
|
|
12562
|
+
hash?: StringFilter<"PromptVersion"> | string
|
|
12563
|
+
metadata?: StringNullableFilter<"PromptVersion"> | string | null
|
|
12564
|
+
createdAt?: DateTimeFilter<"PromptVersion"> | Date | string
|
|
12565
|
+
}, "id" | "name">
|
|
12566
|
+
|
|
12567
|
+
export type PromptVersionOrderByWithAggregationInput = {
|
|
12568
|
+
id?: SortOrder
|
|
12569
|
+
name?: SortOrder
|
|
12570
|
+
sourcePath?: SortOrder
|
|
12571
|
+
systemPrompt?: SortOrder
|
|
12572
|
+
textToolsPrompt?: SortOrder
|
|
12573
|
+
hash?: SortOrder
|
|
12574
|
+
metadata?: SortOrderInput | SortOrder
|
|
12575
|
+
createdAt?: SortOrder
|
|
12576
|
+
_count?: PromptVersionCountOrderByAggregateInput
|
|
12577
|
+
_max?: PromptVersionMaxOrderByAggregateInput
|
|
12578
|
+
_min?: PromptVersionMinOrderByAggregateInput
|
|
12579
|
+
}
|
|
12580
|
+
|
|
12581
|
+
export type PromptVersionScalarWhereWithAggregatesInput = {
|
|
12582
|
+
AND?: PromptVersionScalarWhereWithAggregatesInput | PromptVersionScalarWhereWithAggregatesInput[]
|
|
12583
|
+
OR?: PromptVersionScalarWhereWithAggregatesInput[]
|
|
12584
|
+
NOT?: PromptVersionScalarWhereWithAggregatesInput | PromptVersionScalarWhereWithAggregatesInput[]
|
|
12585
|
+
id?: StringWithAggregatesFilter<"PromptVersion"> | string
|
|
12586
|
+
name?: StringWithAggregatesFilter<"PromptVersion"> | string
|
|
12587
|
+
sourcePath?: StringWithAggregatesFilter<"PromptVersion"> | string
|
|
12588
|
+
systemPrompt?: StringWithAggregatesFilter<"PromptVersion"> | string
|
|
12589
|
+
textToolsPrompt?: StringWithAggregatesFilter<"PromptVersion"> | string
|
|
12590
|
+
hash?: StringWithAggregatesFilter<"PromptVersion"> | string
|
|
12591
|
+
metadata?: StringNullableWithAggregatesFilter<"PromptVersion"> | string | null
|
|
12592
|
+
createdAt?: DateTimeWithAggregatesFilter<"PromptVersion"> | Date | string
|
|
12593
|
+
}
|
|
12594
|
+
|
|
11416
12595
|
export type ProjectCreateInput = {
|
|
11417
12596
|
id?: string
|
|
11418
12597
|
name: string
|
|
@@ -11846,6 +13025,9 @@ export namespace Prisma {
|
|
|
11846
13025
|
resultStatus?: string
|
|
11847
13026
|
validationSummary?: string | null
|
|
11848
13027
|
publishedVersion?: string | null
|
|
13028
|
+
promptTokens?: number | null
|
|
13029
|
+
completionTokens?: number | null
|
|
13030
|
+
totalTokens?: number | null
|
|
11849
13031
|
createdAt?: Date | string
|
|
11850
13032
|
updatedAt?: Date | string
|
|
11851
13033
|
task: TaskCreateNestedOneWithoutAgentRunsInput
|
|
@@ -11859,6 +13041,9 @@ export namespace Prisma {
|
|
|
11859
13041
|
resultStatus?: string
|
|
11860
13042
|
validationSummary?: string | null
|
|
11861
13043
|
publishedVersion?: string | null
|
|
13044
|
+
promptTokens?: number | null
|
|
13045
|
+
completionTokens?: number | null
|
|
13046
|
+
totalTokens?: number | null
|
|
11862
13047
|
createdAt?: Date | string
|
|
11863
13048
|
updatedAt?: Date | string
|
|
11864
13049
|
}
|
|
@@ -11870,6 +13055,9 @@ export namespace Prisma {
|
|
|
11870
13055
|
resultStatus?: StringFieldUpdateOperationsInput | string
|
|
11871
13056
|
validationSummary?: NullableStringFieldUpdateOperationsInput | string | null
|
|
11872
13057
|
publishedVersion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13058
|
+
promptTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
13059
|
+
completionTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
13060
|
+
totalTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
11873
13061
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
11874
13062
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
11875
13063
|
task?: TaskUpdateOneRequiredWithoutAgentRunsNestedInput
|
|
@@ -11883,6 +13071,9 @@ export namespace Prisma {
|
|
|
11883
13071
|
resultStatus?: StringFieldUpdateOperationsInput | string
|
|
11884
13072
|
validationSummary?: NullableStringFieldUpdateOperationsInput | string | null
|
|
11885
13073
|
publishedVersion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13074
|
+
promptTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
13075
|
+
completionTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
13076
|
+
totalTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
11886
13077
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
11887
13078
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
11888
13079
|
}
|
|
@@ -11895,6 +13086,9 @@ export namespace Prisma {
|
|
|
11895
13086
|
resultStatus?: string
|
|
11896
13087
|
validationSummary?: string | null
|
|
11897
13088
|
publishedVersion?: string | null
|
|
13089
|
+
promptTokens?: number | null
|
|
13090
|
+
completionTokens?: number | null
|
|
13091
|
+
totalTokens?: number | null
|
|
11898
13092
|
createdAt?: Date | string
|
|
11899
13093
|
updatedAt?: Date | string
|
|
11900
13094
|
}
|
|
@@ -11906,6 +13100,9 @@ export namespace Prisma {
|
|
|
11906
13100
|
resultStatus?: StringFieldUpdateOperationsInput | string
|
|
11907
13101
|
validationSummary?: NullableStringFieldUpdateOperationsInput | string | null
|
|
11908
13102
|
publishedVersion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13103
|
+
promptTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
13104
|
+
completionTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
13105
|
+
totalTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
11909
13106
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
11910
13107
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
11911
13108
|
}
|
|
@@ -11918,6 +13115,9 @@ export namespace Prisma {
|
|
|
11918
13115
|
resultStatus?: StringFieldUpdateOperationsInput | string
|
|
11919
13116
|
validationSummary?: NullableStringFieldUpdateOperationsInput | string | null
|
|
11920
13117
|
publishedVersion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13118
|
+
promptTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
13119
|
+
completionTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
13120
|
+
totalTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
11921
13121
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
11922
13122
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
11923
13123
|
}
|
|
@@ -12166,6 +13366,83 @@ export namespace Prisma {
|
|
|
12166
13366
|
registeredAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
12167
13367
|
}
|
|
12168
13368
|
|
|
13369
|
+
export type PromptVersionCreateInput = {
|
|
13370
|
+
id?: string
|
|
13371
|
+
name: string
|
|
13372
|
+
sourcePath: string
|
|
13373
|
+
systemPrompt: string
|
|
13374
|
+
textToolsPrompt: string
|
|
13375
|
+
hash: string
|
|
13376
|
+
metadata?: string | null
|
|
13377
|
+
createdAt?: Date | string
|
|
13378
|
+
}
|
|
13379
|
+
|
|
13380
|
+
export type PromptVersionUncheckedCreateInput = {
|
|
13381
|
+
id?: string
|
|
13382
|
+
name: string
|
|
13383
|
+
sourcePath: string
|
|
13384
|
+
systemPrompt: string
|
|
13385
|
+
textToolsPrompt: string
|
|
13386
|
+
hash: string
|
|
13387
|
+
metadata?: string | null
|
|
13388
|
+
createdAt?: Date | string
|
|
13389
|
+
}
|
|
13390
|
+
|
|
13391
|
+
export type PromptVersionUpdateInput = {
|
|
13392
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
13393
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
13394
|
+
sourcePath?: StringFieldUpdateOperationsInput | string
|
|
13395
|
+
systemPrompt?: StringFieldUpdateOperationsInput | string
|
|
13396
|
+
textToolsPrompt?: StringFieldUpdateOperationsInput | string
|
|
13397
|
+
hash?: StringFieldUpdateOperationsInput | string
|
|
13398
|
+
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13399
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
13400
|
+
}
|
|
13401
|
+
|
|
13402
|
+
export type PromptVersionUncheckedUpdateInput = {
|
|
13403
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
13404
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
13405
|
+
sourcePath?: StringFieldUpdateOperationsInput | string
|
|
13406
|
+
systemPrompt?: StringFieldUpdateOperationsInput | string
|
|
13407
|
+
textToolsPrompt?: StringFieldUpdateOperationsInput | string
|
|
13408
|
+
hash?: StringFieldUpdateOperationsInput | string
|
|
13409
|
+
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13410
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
13411
|
+
}
|
|
13412
|
+
|
|
13413
|
+
export type PromptVersionCreateManyInput = {
|
|
13414
|
+
id?: string
|
|
13415
|
+
name: string
|
|
13416
|
+
sourcePath: string
|
|
13417
|
+
systemPrompt: string
|
|
13418
|
+
textToolsPrompt: string
|
|
13419
|
+
hash: string
|
|
13420
|
+
metadata?: string | null
|
|
13421
|
+
createdAt?: Date | string
|
|
13422
|
+
}
|
|
13423
|
+
|
|
13424
|
+
export type PromptVersionUpdateManyMutationInput = {
|
|
13425
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
13426
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
13427
|
+
sourcePath?: StringFieldUpdateOperationsInput | string
|
|
13428
|
+
systemPrompt?: StringFieldUpdateOperationsInput | string
|
|
13429
|
+
textToolsPrompt?: StringFieldUpdateOperationsInput | string
|
|
13430
|
+
hash?: StringFieldUpdateOperationsInput | string
|
|
13431
|
+
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13432
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
13433
|
+
}
|
|
13434
|
+
|
|
13435
|
+
export type PromptVersionUncheckedUpdateManyInput = {
|
|
13436
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
13437
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
13438
|
+
sourcePath?: StringFieldUpdateOperationsInput | string
|
|
13439
|
+
systemPrompt?: StringFieldUpdateOperationsInput | string
|
|
13440
|
+
textToolsPrompt?: StringFieldUpdateOperationsInput | string
|
|
13441
|
+
hash?: StringFieldUpdateOperationsInput | string
|
|
13442
|
+
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13443
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
13444
|
+
}
|
|
13445
|
+
|
|
12169
13446
|
export type StringFilter<$PrismaModel = never> = {
|
|
12170
13447
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
12171
13448
|
in?: string[] | ListStringFieldRefInput<$PrismaModel>
|
|
@@ -12541,6 +13818,17 @@ export namespace Prisma {
|
|
|
12541
13818
|
createdAt?: SortOrder
|
|
12542
13819
|
}
|
|
12543
13820
|
|
|
13821
|
+
export type IntNullableFilter<$PrismaModel = never> = {
|
|
13822
|
+
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
13823
|
+
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
|
|
13824
|
+
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
|
|
13825
|
+
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
13826
|
+
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
13827
|
+
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
13828
|
+
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
13829
|
+
not?: NestedIntNullableFilter<$PrismaModel> | number | null
|
|
13830
|
+
}
|
|
13831
|
+
|
|
12544
13832
|
export type AgentRunCountOrderByAggregateInput = {
|
|
12545
13833
|
id?: SortOrder
|
|
12546
13834
|
taskId?: SortOrder
|
|
@@ -12549,10 +13837,19 @@ export namespace Prisma {
|
|
|
12549
13837
|
resultStatus?: SortOrder
|
|
12550
13838
|
validationSummary?: SortOrder
|
|
12551
13839
|
publishedVersion?: SortOrder
|
|
13840
|
+
promptTokens?: SortOrder
|
|
13841
|
+
completionTokens?: SortOrder
|
|
13842
|
+
totalTokens?: SortOrder
|
|
12552
13843
|
createdAt?: SortOrder
|
|
12553
13844
|
updatedAt?: SortOrder
|
|
12554
13845
|
}
|
|
12555
13846
|
|
|
13847
|
+
export type AgentRunAvgOrderByAggregateInput = {
|
|
13848
|
+
promptTokens?: SortOrder
|
|
13849
|
+
completionTokens?: SortOrder
|
|
13850
|
+
totalTokens?: SortOrder
|
|
13851
|
+
}
|
|
13852
|
+
|
|
12556
13853
|
export type AgentRunMaxOrderByAggregateInput = {
|
|
12557
13854
|
id?: SortOrder
|
|
12558
13855
|
taskId?: SortOrder
|
|
@@ -12561,6 +13858,9 @@ export namespace Prisma {
|
|
|
12561
13858
|
resultStatus?: SortOrder
|
|
12562
13859
|
validationSummary?: SortOrder
|
|
12563
13860
|
publishedVersion?: SortOrder
|
|
13861
|
+
promptTokens?: SortOrder
|
|
13862
|
+
completionTokens?: SortOrder
|
|
13863
|
+
totalTokens?: SortOrder
|
|
12564
13864
|
createdAt?: SortOrder
|
|
12565
13865
|
updatedAt?: SortOrder
|
|
12566
13866
|
}
|
|
@@ -12573,10 +13873,35 @@ export namespace Prisma {
|
|
|
12573
13873
|
resultStatus?: SortOrder
|
|
12574
13874
|
validationSummary?: SortOrder
|
|
12575
13875
|
publishedVersion?: SortOrder
|
|
13876
|
+
promptTokens?: SortOrder
|
|
13877
|
+
completionTokens?: SortOrder
|
|
13878
|
+
totalTokens?: SortOrder
|
|
12576
13879
|
createdAt?: SortOrder
|
|
12577
13880
|
updatedAt?: SortOrder
|
|
12578
13881
|
}
|
|
12579
13882
|
|
|
13883
|
+
export type AgentRunSumOrderByAggregateInput = {
|
|
13884
|
+
promptTokens?: SortOrder
|
|
13885
|
+
completionTokens?: SortOrder
|
|
13886
|
+
totalTokens?: SortOrder
|
|
13887
|
+
}
|
|
13888
|
+
|
|
13889
|
+
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
13890
|
+
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
13891
|
+
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
|
|
13892
|
+
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
|
|
13893
|
+
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
13894
|
+
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
13895
|
+
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
13896
|
+
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
13897
|
+
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
|
13898
|
+
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
13899
|
+
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
13900
|
+
_sum?: NestedIntNullableFilter<$PrismaModel>
|
|
13901
|
+
_min?: NestedIntNullableFilter<$PrismaModel>
|
|
13902
|
+
_max?: NestedIntNullableFilter<$PrismaModel>
|
|
13903
|
+
}
|
|
13904
|
+
|
|
12580
13905
|
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|
12581
13906
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
12582
13907
|
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
|
|
@@ -12725,6 +14050,39 @@ export namespace Prisma {
|
|
|
12725
14050
|
registeredAt?: SortOrder
|
|
12726
14051
|
}
|
|
12727
14052
|
|
|
14053
|
+
export type PromptVersionCountOrderByAggregateInput = {
|
|
14054
|
+
id?: SortOrder
|
|
14055
|
+
name?: SortOrder
|
|
14056
|
+
sourcePath?: SortOrder
|
|
14057
|
+
systemPrompt?: SortOrder
|
|
14058
|
+
textToolsPrompt?: SortOrder
|
|
14059
|
+
hash?: SortOrder
|
|
14060
|
+
metadata?: SortOrder
|
|
14061
|
+
createdAt?: SortOrder
|
|
14062
|
+
}
|
|
14063
|
+
|
|
14064
|
+
export type PromptVersionMaxOrderByAggregateInput = {
|
|
14065
|
+
id?: SortOrder
|
|
14066
|
+
name?: SortOrder
|
|
14067
|
+
sourcePath?: SortOrder
|
|
14068
|
+
systemPrompt?: SortOrder
|
|
14069
|
+
textToolsPrompt?: SortOrder
|
|
14070
|
+
hash?: SortOrder
|
|
14071
|
+
metadata?: SortOrder
|
|
14072
|
+
createdAt?: SortOrder
|
|
14073
|
+
}
|
|
14074
|
+
|
|
14075
|
+
export type PromptVersionMinOrderByAggregateInput = {
|
|
14076
|
+
id?: SortOrder
|
|
14077
|
+
name?: SortOrder
|
|
14078
|
+
sourcePath?: SortOrder
|
|
14079
|
+
systemPrompt?: SortOrder
|
|
14080
|
+
textToolsPrompt?: SortOrder
|
|
14081
|
+
hash?: SortOrder
|
|
14082
|
+
metadata?: SortOrder
|
|
14083
|
+
createdAt?: SortOrder
|
|
14084
|
+
}
|
|
14085
|
+
|
|
12728
14086
|
export type TaskCreateNestedManyWithoutProjectInput = {
|
|
12729
14087
|
create?: XOR<TaskCreateWithoutProjectInput, TaskUncheckedCreateWithoutProjectInput> | TaskCreateWithoutProjectInput[] | TaskUncheckedCreateWithoutProjectInput[]
|
|
12730
14088
|
connectOrCreate?: TaskCreateOrConnectWithoutProjectInput | TaskCreateOrConnectWithoutProjectInput[]
|
|
@@ -13059,6 +14417,14 @@ export namespace Prisma {
|
|
|
13059
14417
|
connect?: TaskWhereUniqueInput
|
|
13060
14418
|
}
|
|
13061
14419
|
|
|
14420
|
+
export type NullableIntFieldUpdateOperationsInput = {
|
|
14421
|
+
set?: number | null
|
|
14422
|
+
increment?: number
|
|
14423
|
+
decrement?: number
|
|
14424
|
+
multiply?: number
|
|
14425
|
+
divide?: number
|
|
14426
|
+
}
|
|
14427
|
+
|
|
13062
14428
|
export type TaskUpdateOneRequiredWithoutAgentRunsNestedInput = {
|
|
13063
14429
|
create?: XOR<TaskCreateWithoutAgentRunsInput, TaskUncheckedCreateWithoutAgentRunsInput>
|
|
13064
14430
|
connectOrCreate?: TaskCreateOrConnectWithoutAgentRunsInput
|
|
@@ -13227,6 +14593,33 @@ export namespace Prisma {
|
|
|
13227
14593
|
not?: NestedFloatFilter<$PrismaModel> | number
|
|
13228
14594
|
}
|
|
13229
14595
|
|
|
14596
|
+
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
14597
|
+
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
14598
|
+
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
|
|
14599
|
+
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
|
|
14600
|
+
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
14601
|
+
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
14602
|
+
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
14603
|
+
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
14604
|
+
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
|
14605
|
+
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
14606
|
+
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
14607
|
+
_sum?: NestedIntNullableFilter<$PrismaModel>
|
|
14608
|
+
_min?: NestedIntNullableFilter<$PrismaModel>
|
|
14609
|
+
_max?: NestedIntNullableFilter<$PrismaModel>
|
|
14610
|
+
}
|
|
14611
|
+
|
|
14612
|
+
export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
|
14613
|
+
equals?: number | FloatFieldRefInput<$PrismaModel> | null
|
|
14614
|
+
in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
|
|
14615
|
+
notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
|
|
14616
|
+
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
14617
|
+
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
14618
|
+
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
14619
|
+
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
14620
|
+
not?: NestedFloatNullableFilter<$PrismaModel> | number | null
|
|
14621
|
+
}
|
|
14622
|
+
|
|
13230
14623
|
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|
13231
14624
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
13232
14625
|
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
|
|
@@ -13470,6 +14863,9 @@ export namespace Prisma {
|
|
|
13470
14863
|
resultStatus?: string
|
|
13471
14864
|
validationSummary?: string | null
|
|
13472
14865
|
publishedVersion?: string | null
|
|
14866
|
+
promptTokens?: number | null
|
|
14867
|
+
completionTokens?: number | null
|
|
14868
|
+
totalTokens?: number | null
|
|
13473
14869
|
createdAt?: Date | string
|
|
13474
14870
|
updatedAt?: Date | string
|
|
13475
14871
|
}
|
|
@@ -13481,6 +14877,9 @@ export namespace Prisma {
|
|
|
13481
14877
|
resultStatus?: string
|
|
13482
14878
|
validationSummary?: string | null
|
|
13483
14879
|
publishedVersion?: string | null
|
|
14880
|
+
promptTokens?: number | null
|
|
14881
|
+
completionTokens?: number | null
|
|
14882
|
+
totalTokens?: number | null
|
|
13484
14883
|
createdAt?: Date | string
|
|
13485
14884
|
updatedAt?: Date | string
|
|
13486
14885
|
}
|
|
@@ -13678,6 +15077,9 @@ export namespace Prisma {
|
|
|
13678
15077
|
resultStatus?: StringFilter<"AgentRun"> | string
|
|
13679
15078
|
validationSummary?: StringNullableFilter<"AgentRun"> | string | null
|
|
13680
15079
|
publishedVersion?: StringNullableFilter<"AgentRun"> | string | null
|
|
15080
|
+
promptTokens?: IntNullableFilter<"AgentRun"> | number | null
|
|
15081
|
+
completionTokens?: IntNullableFilter<"AgentRun"> | number | null
|
|
15082
|
+
totalTokens?: IntNullableFilter<"AgentRun"> | number | null
|
|
13681
15083
|
createdAt?: DateTimeFilter<"AgentRun"> | Date | string
|
|
13682
15084
|
updatedAt?: DateTimeFilter<"AgentRun"> | Date | string
|
|
13683
15085
|
}
|
|
@@ -14301,6 +15703,9 @@ export namespace Prisma {
|
|
|
14301
15703
|
resultStatus?: string
|
|
14302
15704
|
validationSummary?: string | null
|
|
14303
15705
|
publishedVersion?: string | null
|
|
15706
|
+
promptTokens?: number | null
|
|
15707
|
+
completionTokens?: number | null
|
|
15708
|
+
totalTokens?: number | null
|
|
14304
15709
|
createdAt?: Date | string
|
|
14305
15710
|
updatedAt?: Date | string
|
|
14306
15711
|
}
|
|
@@ -14412,6 +15817,9 @@ export namespace Prisma {
|
|
|
14412
15817
|
resultStatus?: StringFieldUpdateOperationsInput | string
|
|
14413
15818
|
validationSummary?: NullableStringFieldUpdateOperationsInput | string | null
|
|
14414
15819
|
publishedVersion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
15820
|
+
promptTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
15821
|
+
completionTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
15822
|
+
totalTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
14415
15823
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
14416
15824
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
14417
15825
|
}
|
|
@@ -14423,6 +15831,9 @@ export namespace Prisma {
|
|
|
14423
15831
|
resultStatus?: StringFieldUpdateOperationsInput | string
|
|
14424
15832
|
validationSummary?: NullableStringFieldUpdateOperationsInput | string | null
|
|
14425
15833
|
publishedVersion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
15834
|
+
promptTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
15835
|
+
completionTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
15836
|
+
totalTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
14426
15837
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
14427
15838
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
14428
15839
|
}
|
|
@@ -14434,6 +15845,9 @@ export namespace Prisma {
|
|
|
14434
15845
|
resultStatus?: StringFieldUpdateOperationsInput | string
|
|
14435
15846
|
validationSummary?: NullableStringFieldUpdateOperationsInput | string | null
|
|
14436
15847
|
publishedVersion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
15848
|
+
promptTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
15849
|
+
completionTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
15850
|
+
totalTokens?: NullableIntFieldUpdateOperationsInput | number | null
|
|
14437
15851
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
14438
15852
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
14439
15853
|
}
|
|
@@ -14526,6 +15940,10 @@ export namespace Prisma {
|
|
|
14526
15940
|
* @deprecated Use SkillArtifactDefaultArgs instead
|
|
14527
15941
|
*/
|
|
14528
15942
|
export type SkillArtifactArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SkillArtifactDefaultArgs<ExtArgs>
|
|
15943
|
+
/**
|
|
15944
|
+
* @deprecated Use PromptVersionDefaultArgs instead
|
|
15945
|
+
*/
|
|
15946
|
+
export type PromptVersionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PromptVersionDefaultArgs<ExtArgs>
|
|
14529
15947
|
|
|
14530
15948
|
/**
|
|
14531
15949
|
* Batch Payload for updateMany & deleteMany & createMany
|