@app-vitals/agent-admin 1.25.0 → 1.27.0
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/package.json +2 -2
- package/prisma/client/browser.ts +5 -0
- package/prisma/client/client.ts +5 -0
- package/prisma/client/internal/class.ts +14 -4
- package/prisma/client/internal/prismaNamespace.ts +91 -2
- package/prisma/client/internal/prismaNamespaceBrowser.ts +15 -1
- package/prisma/client/models/GitHubReconcileAudit.ts +1193 -0
- package/prisma/client/models.ts +1 -0
- package/prisma/migrations/20261111000000_add_github_reconcile_audit/migration.sql +16 -0
- package/prisma/schema/schema.prisma +16 -0
- package/src/reconcile-apply-service.integration.test.ts +263 -0
- package/src/reconcile-apply-service.ts +343 -0
- package/src/reconcile-apply-service.unit.test.ts +191 -0
- package/src/reconcile-open-work.ts +33 -0
- package/src/reconcile-planner.ts +249 -0
- package/src/reconcile-planner.unit.test.ts +274 -0
|
@@ -424,7 +424,8 @@ export const ModelName = {
|
|
|
424
424
|
PushSubscription: 'PushSubscription',
|
|
425
425
|
ChatThreadWatch: 'ChatThreadWatch',
|
|
426
426
|
UserNotificationPrefs: 'UserNotificationPrefs',
|
|
427
|
-
AgentMarketplace: 'AgentMarketplace'
|
|
427
|
+
AgentMarketplace: 'AgentMarketplace',
|
|
428
|
+
GitHubReconcileAudit: 'GitHubReconcileAudit'
|
|
428
429
|
} as const
|
|
429
430
|
|
|
430
431
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -440,7 +441,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
440
441
|
omit: GlobalOmitOptions
|
|
441
442
|
}
|
|
442
443
|
meta: {
|
|
443
|
-
modelProps: "agentWorkQueueSnapshot" | "agentPhaseMethodology" | "sessionFollow" | "sessionAlertState" | "agent" | "agentEnv" | "gitHubEnterpriseApp" | "agentCronJob" | "agentTool" | "agentToken" | "agentPlugin" | "agentMember" | "account" | "accountMember" | "accountInvite" | "agentCronRun" | "agentCronRunSkillUsage" | "agentCronRunModelBreakdown" | "agentChatTokenUsageDailyByModel" | "agentAsk" | "agentCronRunRequest" | "agentCronRunTranscript" | "agentTranscriptRead" | "agentGitHubInstallationsSnapshot" | "pushSubscription" | "chatThreadWatch" | "userNotificationPrefs" | "agentMarketplace"
|
|
444
|
+
modelProps: "agentWorkQueueSnapshot" | "agentPhaseMethodology" | "sessionFollow" | "sessionAlertState" | "agent" | "agentEnv" | "gitHubEnterpriseApp" | "agentCronJob" | "agentTool" | "agentToken" | "agentPlugin" | "agentMember" | "account" | "accountMember" | "accountInvite" | "agentCronRun" | "agentCronRunSkillUsage" | "agentCronRunModelBreakdown" | "agentChatTokenUsageDailyByModel" | "agentAsk" | "agentCronRunRequest" | "agentCronRunTranscript" | "agentTranscriptRead" | "agentGitHubInstallationsSnapshot" | "pushSubscription" | "chatThreadWatch" | "userNotificationPrefs" | "agentMarketplace" | "gitHubReconcileAudit"
|
|
444
445
|
txIsolationLevel: TransactionIsolationLevel
|
|
445
446
|
}
|
|
446
447
|
model: {
|
|
@@ -2516,6 +2517,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
2516
2517
|
}
|
|
2517
2518
|
}
|
|
2518
2519
|
}
|
|
2520
|
+
GitHubReconcileAudit: {
|
|
2521
|
+
payload: Prisma.$GitHubReconcileAuditPayload<ExtArgs>
|
|
2522
|
+
fields: Prisma.GitHubReconcileAuditFieldRefs
|
|
2523
|
+
operations: {
|
|
2524
|
+
findUnique: {
|
|
2525
|
+
args: Prisma.GitHubReconcileAuditFindUniqueArgs<ExtArgs>
|
|
2526
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$GitHubReconcileAuditPayload> | null
|
|
2527
|
+
}
|
|
2528
|
+
findUniqueOrThrow: {
|
|
2529
|
+
args: Prisma.GitHubReconcileAuditFindUniqueOrThrowArgs<ExtArgs>
|
|
2530
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$GitHubReconcileAuditPayload>
|
|
2531
|
+
}
|
|
2532
|
+
findFirst: {
|
|
2533
|
+
args: Prisma.GitHubReconcileAuditFindFirstArgs<ExtArgs>
|
|
2534
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$GitHubReconcileAuditPayload> | null
|
|
2535
|
+
}
|
|
2536
|
+
findFirstOrThrow: {
|
|
2537
|
+
args: Prisma.GitHubReconcileAuditFindFirstOrThrowArgs<ExtArgs>
|
|
2538
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$GitHubReconcileAuditPayload>
|
|
2539
|
+
}
|
|
2540
|
+
findMany: {
|
|
2541
|
+
args: Prisma.GitHubReconcileAuditFindManyArgs<ExtArgs>
|
|
2542
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$GitHubReconcileAuditPayload>[]
|
|
2543
|
+
}
|
|
2544
|
+
create: {
|
|
2545
|
+
args: Prisma.GitHubReconcileAuditCreateArgs<ExtArgs>
|
|
2546
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$GitHubReconcileAuditPayload>
|
|
2547
|
+
}
|
|
2548
|
+
createMany: {
|
|
2549
|
+
args: Prisma.GitHubReconcileAuditCreateManyArgs<ExtArgs>
|
|
2550
|
+
result: BatchPayload
|
|
2551
|
+
}
|
|
2552
|
+
createManyAndReturn: {
|
|
2553
|
+
args: Prisma.GitHubReconcileAuditCreateManyAndReturnArgs<ExtArgs>
|
|
2554
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$GitHubReconcileAuditPayload>[]
|
|
2555
|
+
}
|
|
2556
|
+
delete: {
|
|
2557
|
+
args: Prisma.GitHubReconcileAuditDeleteArgs<ExtArgs>
|
|
2558
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$GitHubReconcileAuditPayload>
|
|
2559
|
+
}
|
|
2560
|
+
update: {
|
|
2561
|
+
args: Prisma.GitHubReconcileAuditUpdateArgs<ExtArgs>
|
|
2562
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$GitHubReconcileAuditPayload>
|
|
2563
|
+
}
|
|
2564
|
+
deleteMany: {
|
|
2565
|
+
args: Prisma.GitHubReconcileAuditDeleteManyArgs<ExtArgs>
|
|
2566
|
+
result: BatchPayload
|
|
2567
|
+
}
|
|
2568
|
+
updateMany: {
|
|
2569
|
+
args: Prisma.GitHubReconcileAuditUpdateManyArgs<ExtArgs>
|
|
2570
|
+
result: BatchPayload
|
|
2571
|
+
}
|
|
2572
|
+
updateManyAndReturn: {
|
|
2573
|
+
args: Prisma.GitHubReconcileAuditUpdateManyAndReturnArgs<ExtArgs>
|
|
2574
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$GitHubReconcileAuditPayload>[]
|
|
2575
|
+
}
|
|
2576
|
+
upsert: {
|
|
2577
|
+
args: Prisma.GitHubReconcileAuditUpsertArgs<ExtArgs>
|
|
2578
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$GitHubReconcileAuditPayload>
|
|
2579
|
+
}
|
|
2580
|
+
aggregate: {
|
|
2581
|
+
args: Prisma.GitHubReconcileAuditAggregateArgs<ExtArgs>
|
|
2582
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateGitHubReconcileAudit>
|
|
2583
|
+
}
|
|
2584
|
+
groupBy: {
|
|
2585
|
+
args: Prisma.GitHubReconcileAuditGroupByArgs<ExtArgs>
|
|
2586
|
+
result: runtime.Types.Utils.Optional<Prisma.GitHubReconcileAuditGroupByOutputType>[]
|
|
2587
|
+
}
|
|
2588
|
+
count: {
|
|
2589
|
+
args: Prisma.GitHubReconcileAuditCountArgs<ExtArgs>
|
|
2590
|
+
result: runtime.Types.Utils.Optional<Prisma.GitHubReconcileAuditCountAggregateOutputType> | number
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2519
2594
|
}
|
|
2520
2595
|
} & {
|
|
2521
2596
|
other: {
|
|
@@ -2975,6 +3050,19 @@ export const AgentMarketplaceScalarFieldEnum = {
|
|
|
2975
3050
|
export type AgentMarketplaceScalarFieldEnum = (typeof AgentMarketplaceScalarFieldEnum)[keyof typeof AgentMarketplaceScalarFieldEnum]
|
|
2976
3051
|
|
|
2977
3052
|
|
|
3053
|
+
export const GitHubReconcileAuditScalarFieldEnum = {
|
|
3054
|
+
id: 'id',
|
|
3055
|
+
agentId: 'agentId',
|
|
3056
|
+
caller: 'caller',
|
|
3057
|
+
planHash: 'planHash',
|
|
3058
|
+
diff: 'diff',
|
|
3059
|
+
result: 'result',
|
|
3060
|
+
createdAt: 'createdAt'
|
|
3061
|
+
} as const
|
|
3062
|
+
|
|
3063
|
+
export type GitHubReconcileAuditScalarFieldEnum = (typeof GitHubReconcileAuditScalarFieldEnum)[keyof typeof GitHubReconcileAuditScalarFieldEnum]
|
|
3064
|
+
|
|
3065
|
+
|
|
2978
3066
|
export const SortOrder = {
|
|
2979
3067
|
asc: 'asc',
|
|
2980
3068
|
desc: 'desc'
|
|
@@ -3298,6 +3386,7 @@ export type GlobalOmitConfig = {
|
|
|
3298
3386
|
chatThreadWatch?: Prisma.ChatThreadWatchOmit
|
|
3299
3387
|
userNotificationPrefs?: Prisma.UserNotificationPrefsOmit
|
|
3300
3388
|
agentMarketplace?: Prisma.AgentMarketplaceOmit
|
|
3389
|
+
gitHubReconcileAudit?: Prisma.GitHubReconcileAuditOmit
|
|
3301
3390
|
}
|
|
3302
3391
|
|
|
3303
3392
|
/* Types for Logging */
|
|
@@ -78,7 +78,8 @@ export const ModelName = {
|
|
|
78
78
|
PushSubscription: 'PushSubscription',
|
|
79
79
|
ChatThreadWatch: 'ChatThreadWatch',
|
|
80
80
|
UserNotificationPrefs: 'UserNotificationPrefs',
|
|
81
|
-
AgentMarketplace: 'AgentMarketplace'
|
|
81
|
+
AgentMarketplace: 'AgentMarketplace',
|
|
82
|
+
GitHubReconcileAudit: 'GitHubReconcileAudit'
|
|
82
83
|
} as const
|
|
83
84
|
|
|
84
85
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -517,6 +518,19 @@ export const AgentMarketplaceScalarFieldEnum = {
|
|
|
517
518
|
export type AgentMarketplaceScalarFieldEnum = (typeof AgentMarketplaceScalarFieldEnum)[keyof typeof AgentMarketplaceScalarFieldEnum]
|
|
518
519
|
|
|
519
520
|
|
|
521
|
+
export const GitHubReconcileAuditScalarFieldEnum = {
|
|
522
|
+
id: 'id',
|
|
523
|
+
agentId: 'agentId',
|
|
524
|
+
caller: 'caller',
|
|
525
|
+
planHash: 'planHash',
|
|
526
|
+
diff: 'diff',
|
|
527
|
+
result: 'result',
|
|
528
|
+
createdAt: 'createdAt'
|
|
529
|
+
} as const
|
|
530
|
+
|
|
531
|
+
export type GitHubReconcileAuditScalarFieldEnum = (typeof GitHubReconcileAuditScalarFieldEnum)[keyof typeof GitHubReconcileAuditScalarFieldEnum]
|
|
532
|
+
|
|
533
|
+
|
|
520
534
|
export const SortOrder = {
|
|
521
535
|
asc: 'asc',
|
|
522
536
|
desc: 'desc'
|