@app-vitals/agent-admin 0.2.0 → 0.3.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/openapi.json +291 -0
- package/openapi.platform.json +291 -0
- package/package.json +2 -2
- package/prisma/client/browser.ts +10 -0
- package/prisma/client/client.ts +10 -0
- package/prisma/client/internal/class.ts +24 -4
- package/prisma/client/internal/prismaNamespace.ts +181 -1
- package/prisma/client/internal/prismaNamespaceBrowser.ts +30 -0
- package/prisma/client/models/AgentCronRunTranscript.ts +1339 -0
- package/prisma/client/models/AgentTranscriptRead.ts +1177 -0
- package/prisma/client/models.ts +2 -0
- package/prisma/migrations/20261027000000_add_cron_run_transcripts/migration.sql +37 -0
- package/prisma/schema/schema.prisma +34 -0
- package/src/admin-boot.ts +10 -0
- package/src/agents-api.ts +13 -0
- package/src/api.smoke.test.ts +27 -0
- package/src/api.ts +15 -0
- package/src/cron-run-transcripts.integration.test.ts +220 -0
- package/src/cron-run-transcripts.smoke.test.ts +286 -0
- package/src/cron-run-transcripts.ts +314 -0
- package/src/errors.ts +7 -0
- package/src/openapi-schemas.ts +64 -0
- package/src/transcript-config.ts +19 -0
- package/src/transcript-config.unit.test.ts +32 -0
|
@@ -416,6 +416,8 @@ export const ModelName = {
|
|
|
416
416
|
AgentCronRunModelBreakdown: 'AgentCronRunModelBreakdown',
|
|
417
417
|
AgentChatTokenUsageDailyByModel: 'AgentChatTokenUsageDailyByModel',
|
|
418
418
|
AgentAsk: 'AgentAsk',
|
|
419
|
+
AgentCronRunTranscript: 'AgentCronRunTranscript',
|
|
420
|
+
AgentTranscriptRead: 'AgentTranscriptRead',
|
|
419
421
|
AgentGitHubInstallationsSnapshot: 'AgentGitHubInstallationsSnapshot',
|
|
420
422
|
PushSubscription: 'PushSubscription',
|
|
421
423
|
ChatThreadWatch: 'ChatThreadWatch',
|
|
@@ -435,7 +437,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
435
437
|
omit: GlobalOmitOptions
|
|
436
438
|
}
|
|
437
439
|
meta: {
|
|
438
|
-
modelProps: "agentWorkQueueSnapshot" | "agentPhaseMethodology" | "sessionFollow" | "sessionAlertState" | "agent" | "agentEnv" | "agentCronJob" | "agentTool" | "agentToken" | "agentPlugin" | "agentMember" | "account" | "accountMember" | "accountInvite" | "agentCronRun" | "agentCronRunSkillUsage" | "agentCronRunModelBreakdown" | "agentChatTokenUsageDailyByModel" | "agentAsk" | "agentGitHubInstallationsSnapshot" | "pushSubscription" | "chatThreadWatch" | "userNotificationPrefs"
|
|
440
|
+
modelProps: "agentWorkQueueSnapshot" | "agentPhaseMethodology" | "sessionFollow" | "sessionAlertState" | "agent" | "agentEnv" | "agentCronJob" | "agentTool" | "agentToken" | "agentPlugin" | "agentMember" | "account" | "accountMember" | "accountInvite" | "agentCronRun" | "agentCronRunSkillUsage" | "agentCronRunModelBreakdown" | "agentChatTokenUsageDailyByModel" | "agentAsk" | "agentCronRunTranscript" | "agentTranscriptRead" | "agentGitHubInstallationsSnapshot" | "pushSubscription" | "chatThreadWatch" | "userNotificationPrefs"
|
|
439
441
|
txIsolationLevel: TransactionIsolationLevel
|
|
440
442
|
}
|
|
441
443
|
model: {
|
|
@@ -1845,6 +1847,154 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
1845
1847
|
}
|
|
1846
1848
|
}
|
|
1847
1849
|
}
|
|
1850
|
+
AgentCronRunTranscript: {
|
|
1851
|
+
payload: Prisma.$AgentCronRunTranscriptPayload<ExtArgs>
|
|
1852
|
+
fields: Prisma.AgentCronRunTranscriptFieldRefs
|
|
1853
|
+
operations: {
|
|
1854
|
+
findUnique: {
|
|
1855
|
+
args: Prisma.AgentCronRunTranscriptFindUniqueArgs<ExtArgs>
|
|
1856
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentCronRunTranscriptPayload> | null
|
|
1857
|
+
}
|
|
1858
|
+
findUniqueOrThrow: {
|
|
1859
|
+
args: Prisma.AgentCronRunTranscriptFindUniqueOrThrowArgs<ExtArgs>
|
|
1860
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentCronRunTranscriptPayload>
|
|
1861
|
+
}
|
|
1862
|
+
findFirst: {
|
|
1863
|
+
args: Prisma.AgentCronRunTranscriptFindFirstArgs<ExtArgs>
|
|
1864
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentCronRunTranscriptPayload> | null
|
|
1865
|
+
}
|
|
1866
|
+
findFirstOrThrow: {
|
|
1867
|
+
args: Prisma.AgentCronRunTranscriptFindFirstOrThrowArgs<ExtArgs>
|
|
1868
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentCronRunTranscriptPayload>
|
|
1869
|
+
}
|
|
1870
|
+
findMany: {
|
|
1871
|
+
args: Prisma.AgentCronRunTranscriptFindManyArgs<ExtArgs>
|
|
1872
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentCronRunTranscriptPayload>[]
|
|
1873
|
+
}
|
|
1874
|
+
create: {
|
|
1875
|
+
args: Prisma.AgentCronRunTranscriptCreateArgs<ExtArgs>
|
|
1876
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentCronRunTranscriptPayload>
|
|
1877
|
+
}
|
|
1878
|
+
createMany: {
|
|
1879
|
+
args: Prisma.AgentCronRunTranscriptCreateManyArgs<ExtArgs>
|
|
1880
|
+
result: BatchPayload
|
|
1881
|
+
}
|
|
1882
|
+
createManyAndReturn: {
|
|
1883
|
+
args: Prisma.AgentCronRunTranscriptCreateManyAndReturnArgs<ExtArgs>
|
|
1884
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentCronRunTranscriptPayload>[]
|
|
1885
|
+
}
|
|
1886
|
+
delete: {
|
|
1887
|
+
args: Prisma.AgentCronRunTranscriptDeleteArgs<ExtArgs>
|
|
1888
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentCronRunTranscriptPayload>
|
|
1889
|
+
}
|
|
1890
|
+
update: {
|
|
1891
|
+
args: Prisma.AgentCronRunTranscriptUpdateArgs<ExtArgs>
|
|
1892
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentCronRunTranscriptPayload>
|
|
1893
|
+
}
|
|
1894
|
+
deleteMany: {
|
|
1895
|
+
args: Prisma.AgentCronRunTranscriptDeleteManyArgs<ExtArgs>
|
|
1896
|
+
result: BatchPayload
|
|
1897
|
+
}
|
|
1898
|
+
updateMany: {
|
|
1899
|
+
args: Prisma.AgentCronRunTranscriptUpdateManyArgs<ExtArgs>
|
|
1900
|
+
result: BatchPayload
|
|
1901
|
+
}
|
|
1902
|
+
updateManyAndReturn: {
|
|
1903
|
+
args: Prisma.AgentCronRunTranscriptUpdateManyAndReturnArgs<ExtArgs>
|
|
1904
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentCronRunTranscriptPayload>[]
|
|
1905
|
+
}
|
|
1906
|
+
upsert: {
|
|
1907
|
+
args: Prisma.AgentCronRunTranscriptUpsertArgs<ExtArgs>
|
|
1908
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentCronRunTranscriptPayload>
|
|
1909
|
+
}
|
|
1910
|
+
aggregate: {
|
|
1911
|
+
args: Prisma.AgentCronRunTranscriptAggregateArgs<ExtArgs>
|
|
1912
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateAgentCronRunTranscript>
|
|
1913
|
+
}
|
|
1914
|
+
groupBy: {
|
|
1915
|
+
args: Prisma.AgentCronRunTranscriptGroupByArgs<ExtArgs>
|
|
1916
|
+
result: runtime.Types.Utils.Optional<Prisma.AgentCronRunTranscriptGroupByOutputType>[]
|
|
1917
|
+
}
|
|
1918
|
+
count: {
|
|
1919
|
+
args: Prisma.AgentCronRunTranscriptCountArgs<ExtArgs>
|
|
1920
|
+
result: runtime.Types.Utils.Optional<Prisma.AgentCronRunTranscriptCountAggregateOutputType> | number
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
AgentTranscriptRead: {
|
|
1925
|
+
payload: Prisma.$AgentTranscriptReadPayload<ExtArgs>
|
|
1926
|
+
fields: Prisma.AgentTranscriptReadFieldRefs
|
|
1927
|
+
operations: {
|
|
1928
|
+
findUnique: {
|
|
1929
|
+
args: Prisma.AgentTranscriptReadFindUniqueArgs<ExtArgs>
|
|
1930
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTranscriptReadPayload> | null
|
|
1931
|
+
}
|
|
1932
|
+
findUniqueOrThrow: {
|
|
1933
|
+
args: Prisma.AgentTranscriptReadFindUniqueOrThrowArgs<ExtArgs>
|
|
1934
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTranscriptReadPayload>
|
|
1935
|
+
}
|
|
1936
|
+
findFirst: {
|
|
1937
|
+
args: Prisma.AgentTranscriptReadFindFirstArgs<ExtArgs>
|
|
1938
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTranscriptReadPayload> | null
|
|
1939
|
+
}
|
|
1940
|
+
findFirstOrThrow: {
|
|
1941
|
+
args: Prisma.AgentTranscriptReadFindFirstOrThrowArgs<ExtArgs>
|
|
1942
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTranscriptReadPayload>
|
|
1943
|
+
}
|
|
1944
|
+
findMany: {
|
|
1945
|
+
args: Prisma.AgentTranscriptReadFindManyArgs<ExtArgs>
|
|
1946
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTranscriptReadPayload>[]
|
|
1947
|
+
}
|
|
1948
|
+
create: {
|
|
1949
|
+
args: Prisma.AgentTranscriptReadCreateArgs<ExtArgs>
|
|
1950
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTranscriptReadPayload>
|
|
1951
|
+
}
|
|
1952
|
+
createMany: {
|
|
1953
|
+
args: Prisma.AgentTranscriptReadCreateManyArgs<ExtArgs>
|
|
1954
|
+
result: BatchPayload
|
|
1955
|
+
}
|
|
1956
|
+
createManyAndReturn: {
|
|
1957
|
+
args: Prisma.AgentTranscriptReadCreateManyAndReturnArgs<ExtArgs>
|
|
1958
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTranscriptReadPayload>[]
|
|
1959
|
+
}
|
|
1960
|
+
delete: {
|
|
1961
|
+
args: Prisma.AgentTranscriptReadDeleteArgs<ExtArgs>
|
|
1962
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTranscriptReadPayload>
|
|
1963
|
+
}
|
|
1964
|
+
update: {
|
|
1965
|
+
args: Prisma.AgentTranscriptReadUpdateArgs<ExtArgs>
|
|
1966
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTranscriptReadPayload>
|
|
1967
|
+
}
|
|
1968
|
+
deleteMany: {
|
|
1969
|
+
args: Prisma.AgentTranscriptReadDeleteManyArgs<ExtArgs>
|
|
1970
|
+
result: BatchPayload
|
|
1971
|
+
}
|
|
1972
|
+
updateMany: {
|
|
1973
|
+
args: Prisma.AgentTranscriptReadUpdateManyArgs<ExtArgs>
|
|
1974
|
+
result: BatchPayload
|
|
1975
|
+
}
|
|
1976
|
+
updateManyAndReturn: {
|
|
1977
|
+
args: Prisma.AgentTranscriptReadUpdateManyAndReturnArgs<ExtArgs>
|
|
1978
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTranscriptReadPayload>[]
|
|
1979
|
+
}
|
|
1980
|
+
upsert: {
|
|
1981
|
+
args: Prisma.AgentTranscriptReadUpsertArgs<ExtArgs>
|
|
1982
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTranscriptReadPayload>
|
|
1983
|
+
}
|
|
1984
|
+
aggregate: {
|
|
1985
|
+
args: Prisma.AgentTranscriptReadAggregateArgs<ExtArgs>
|
|
1986
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateAgentTranscriptRead>
|
|
1987
|
+
}
|
|
1988
|
+
groupBy: {
|
|
1989
|
+
args: Prisma.AgentTranscriptReadGroupByArgs<ExtArgs>
|
|
1990
|
+
result: runtime.Types.Utils.Optional<Prisma.AgentTranscriptReadGroupByOutputType>[]
|
|
1991
|
+
}
|
|
1992
|
+
count: {
|
|
1993
|
+
args: Prisma.AgentTranscriptReadCountArgs<ExtArgs>
|
|
1994
|
+
result: runtime.Types.Utils.Optional<Prisma.AgentTranscriptReadCountAggregateOutputType> | number
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1848
1998
|
AgentGitHubInstallationsSnapshot: {
|
|
1849
1999
|
payload: Prisma.$AgentGitHubInstallationsSnapshotPayload<ExtArgs>
|
|
1850
2000
|
fields: Prisma.AgentGitHubInstallationsSnapshotFieldRefs
|
|
@@ -2475,6 +2625,34 @@ export const AgentAskScalarFieldEnum = {
|
|
|
2475
2625
|
export type AgentAskScalarFieldEnum = (typeof AgentAskScalarFieldEnum)[keyof typeof AgentAskScalarFieldEnum]
|
|
2476
2626
|
|
|
2477
2627
|
|
|
2628
|
+
export const AgentCronRunTranscriptScalarFieldEnum = {
|
|
2629
|
+
id: 'id',
|
|
2630
|
+
runId: 'runId',
|
|
2631
|
+
agentId: 'agentId',
|
|
2632
|
+
cronId: 'cronId',
|
|
2633
|
+
sessionId: 'sessionId',
|
|
2634
|
+
bytes: 'bytes',
|
|
2635
|
+
truncated: 'truncated',
|
|
2636
|
+
redactions: 'redactions',
|
|
2637
|
+
body: 'body',
|
|
2638
|
+
createdAt: 'createdAt'
|
|
2639
|
+
} as const
|
|
2640
|
+
|
|
2641
|
+
export type AgentCronRunTranscriptScalarFieldEnum = (typeof AgentCronRunTranscriptScalarFieldEnum)[keyof typeof AgentCronRunTranscriptScalarFieldEnum]
|
|
2642
|
+
|
|
2643
|
+
|
|
2644
|
+
export const AgentTranscriptReadScalarFieldEnum = {
|
|
2645
|
+
id: 'id',
|
|
2646
|
+
runId: 'runId',
|
|
2647
|
+
agentId: 'agentId',
|
|
2648
|
+
reader: 'reader',
|
|
2649
|
+
scopeKind: 'scopeKind',
|
|
2650
|
+
at: 'at'
|
|
2651
|
+
} as const
|
|
2652
|
+
|
|
2653
|
+
export type AgentTranscriptReadScalarFieldEnum = (typeof AgentTranscriptReadScalarFieldEnum)[keyof typeof AgentTranscriptReadScalarFieldEnum]
|
|
2654
|
+
|
|
2655
|
+
|
|
2478
2656
|
export const AgentGitHubInstallationsSnapshotScalarFieldEnum = {
|
|
2479
2657
|
id: 'id',
|
|
2480
2658
|
agentId: 'agentId',
|
|
@@ -2830,6 +3008,8 @@ export type GlobalOmitConfig = {
|
|
|
2830
3008
|
agentCronRunModelBreakdown?: Prisma.AgentCronRunModelBreakdownOmit
|
|
2831
3009
|
agentChatTokenUsageDailyByModel?: Prisma.AgentChatTokenUsageDailyByModelOmit
|
|
2832
3010
|
agentAsk?: Prisma.AgentAskOmit
|
|
3011
|
+
agentCronRunTranscript?: Prisma.AgentCronRunTranscriptOmit
|
|
3012
|
+
agentTranscriptRead?: Prisma.AgentTranscriptReadOmit
|
|
2833
3013
|
agentGitHubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotOmit
|
|
2834
3014
|
pushSubscription?: Prisma.PushSubscriptionOmit
|
|
2835
3015
|
chatThreadWatch?: Prisma.ChatThreadWatchOmit
|
|
@@ -70,6 +70,8 @@ export const ModelName = {
|
|
|
70
70
|
AgentCronRunModelBreakdown: 'AgentCronRunModelBreakdown',
|
|
71
71
|
AgentChatTokenUsageDailyByModel: 'AgentChatTokenUsageDailyByModel',
|
|
72
72
|
AgentAsk: 'AgentAsk',
|
|
73
|
+
AgentCronRunTranscript: 'AgentCronRunTranscript',
|
|
74
|
+
AgentTranscriptRead: 'AgentTranscriptRead',
|
|
73
75
|
AgentGitHubInstallationsSnapshot: 'AgentGitHubInstallationsSnapshot',
|
|
74
76
|
PushSubscription: 'PushSubscription',
|
|
75
77
|
ChatThreadWatch: 'ChatThreadWatch',
|
|
@@ -387,6 +389,34 @@ export const AgentAskScalarFieldEnum = {
|
|
|
387
389
|
export type AgentAskScalarFieldEnum = (typeof AgentAskScalarFieldEnum)[keyof typeof AgentAskScalarFieldEnum]
|
|
388
390
|
|
|
389
391
|
|
|
392
|
+
export const AgentCronRunTranscriptScalarFieldEnum = {
|
|
393
|
+
id: 'id',
|
|
394
|
+
runId: 'runId',
|
|
395
|
+
agentId: 'agentId',
|
|
396
|
+
cronId: 'cronId',
|
|
397
|
+
sessionId: 'sessionId',
|
|
398
|
+
bytes: 'bytes',
|
|
399
|
+
truncated: 'truncated',
|
|
400
|
+
redactions: 'redactions',
|
|
401
|
+
body: 'body',
|
|
402
|
+
createdAt: 'createdAt'
|
|
403
|
+
} as const
|
|
404
|
+
|
|
405
|
+
export type AgentCronRunTranscriptScalarFieldEnum = (typeof AgentCronRunTranscriptScalarFieldEnum)[keyof typeof AgentCronRunTranscriptScalarFieldEnum]
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
export const AgentTranscriptReadScalarFieldEnum = {
|
|
409
|
+
id: 'id',
|
|
410
|
+
runId: 'runId',
|
|
411
|
+
agentId: 'agentId',
|
|
412
|
+
reader: 'reader',
|
|
413
|
+
scopeKind: 'scopeKind',
|
|
414
|
+
at: 'at'
|
|
415
|
+
} as const
|
|
416
|
+
|
|
417
|
+
export type AgentTranscriptReadScalarFieldEnum = (typeof AgentTranscriptReadScalarFieldEnum)[keyof typeof AgentTranscriptReadScalarFieldEnum]
|
|
418
|
+
|
|
419
|
+
|
|
390
420
|
export const AgentGitHubInstallationsSnapshotScalarFieldEnum = {
|
|
391
421
|
id: 'id',
|
|
392
422
|
agentId: 'agentId',
|