Compare commits
21 Commits
dean/unify
...
loewy/sess
| Author | SHA1 | Date | |
|---|---|---|---|
| 7c795cc5bf | |||
| 17a518429a | |||
| 33eb213cc9 | |||
| 3b66cb3270 | |||
| d67fdd9fee | |||
| d787e5e9a2 | |||
| 1d73b2d67b | |||
|
|
aa731b85fc | ||
| 644f70c3b0 | |||
| 1a95439ed2 | |||
| 5e14cd2201 | |||
|
|
9ec52d9d94 | ||
| 4576b25dae | |||
| 650b3bc13c | |||
| 6d9cb4126e | |||
| feeb5b7038 | |||
| 3340314166 | |||
| 6b8fdd4262 | |||
| bfaed33c89 | |||
|
|
1ce3aaed1b | ||
| 1bd03f2bbe |
955
src/index.tsx
955
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -41,6 +41,7 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
|
uploadCompletionCursor
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
isCompleted
|
isCompleted
|
||||||
lastSegmentUploadedAt
|
lastSegmentUploadedAt
|
||||||
|
|||||||
@@ -1,5 +1,21 @@
|
|||||||
query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
query GetMakesLeaderboard(
|
||||||
getMakesLeaderboard(interval: $interval, when: $when) {
|
$interval: TimeInterval
|
||||||
|
$when: DateTime
|
||||||
|
$gameType: String
|
||||||
|
$tableSizeMin: Float
|
||||||
|
$tableSizeMax: Float
|
||||||
|
$pocketSizeMin: Float
|
||||||
|
$pocketSizeMax: Float
|
||||||
|
) {
|
||||||
|
getMakesLeaderboard(
|
||||||
|
interval: $interval
|
||||||
|
when: $when
|
||||||
|
gameType: $gameType
|
||||||
|
tableSizeMin: $tableSizeMin
|
||||||
|
tableSizeMax: $tableSizeMax
|
||||||
|
pocketSizeMin: $pocketSizeMin
|
||||||
|
pocketSizeMax: $pocketSizeMax
|
||||||
|
) {
|
||||||
entries {
|
entries {
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
@@ -13,8 +29,24 @@ query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetRunsLeaderboard($interval: TimeInterval, $when: DateTime) {
|
query GetRunsLeaderboard(
|
||||||
getLongestRunsLeaderboard(interval: $interval, when: $when) {
|
$interval: TimeInterval
|
||||||
|
$when: DateTime
|
||||||
|
$gameType: String
|
||||||
|
$tableSizeMin: Float
|
||||||
|
$tableSizeMax: Float
|
||||||
|
$pocketSizeMin: Float
|
||||||
|
$pocketSizeMax: Float
|
||||||
|
) {
|
||||||
|
getLongestRunsLeaderboard(
|
||||||
|
interval: $interval
|
||||||
|
when: $when
|
||||||
|
gameType: $gameType
|
||||||
|
tableSizeMin: $tableSizeMin
|
||||||
|
tableSizeMax: $tableSizeMax
|
||||||
|
pocketSizeMin: $pocketSizeMin
|
||||||
|
pocketSizeMax: $pocketSizeMax
|
||||||
|
) {
|
||||||
entries {
|
entries {
|
||||||
id
|
id
|
||||||
runLength
|
runLength
|
||||||
|
|||||||
@@ -1,34 +0,0 @@
|
|||||||
# Lightweight listing of live (in-progress) streams for pickers like the
|
|
||||||
# Shot Lab "follow a live stream" flow. Selects only what a picker card
|
|
||||||
# needs; intentionally avoids the heavy VideoCardFields fragment.
|
|
||||||
query GetLiveStreams($limit: Int! = 25) {
|
|
||||||
getFeedVideos(
|
|
||||||
limit: $limit
|
|
||||||
filters: { isStreamCompleted: false, requireCursorCompletion: false }
|
|
||||||
includePrivate: MINE
|
|
||||||
feedInput: { allUsers: true }
|
|
||||||
) {
|
|
||||||
videos {
|
|
||||||
id
|
|
||||||
name
|
|
||||||
startTime
|
|
||||||
createdAt
|
|
||||||
screenshotUri
|
|
||||||
elapsedTime
|
|
||||||
owner {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
}
|
|
||||||
stream {
|
|
||||||
id
|
|
||||||
isCompleted
|
|
||||||
lastSegmentUploadedAt
|
|
||||||
}
|
|
||||||
}
|
|
||||||
pageInfo {
|
|
||||||
hasNextPage
|
|
||||||
endCursor
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
# Lightweight two-step picker data for loading a recorded shot into Shot Lab.
|
# Lightweight two-step picker data for Shot Lab's video-first source: the
|
||||||
query GetRecordedStreams($limit: Int! = 25) {
|
# caller's recent videos (completed or still uploading), then that video's
|
||||||
|
# shots. The stream fields hint at "actively updating" without gating.
|
||||||
|
query GetShotLabVideos($userId: Int!, $limit: Int! = 25) {
|
||||||
getFeedVideos(
|
getFeedVideos(
|
||||||
limit: $limit
|
limit: $limit
|
||||||
filters: { isStreamCompleted: true, excludeVideosWithNoShots: true }
|
includeCallersVideos: false
|
||||||
includePrivate: MINE
|
includePrivate: MINE
|
||||||
feedInput: { allUsers: true }
|
feedInput: { userId: $userId }
|
||||||
) {
|
) {
|
||||||
videos {
|
videos {
|
||||||
id
|
id
|
||||||
@@ -18,6 +20,11 @@ query GetRecordedStreams($limit: Int! = 25) {
|
|||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
}
|
}
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
isCompleted
|
||||||
|
lastSegmentUploadedAt
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -36,26 +43,11 @@ query GetRecordedStreamShots($videoId: Int!, $limit: Int! = 200) {
|
|||||||
serializedShotPaths {
|
serializedShotPaths {
|
||||||
b64EncodedBuffer
|
b64EncodedBuffer
|
||||||
}
|
}
|
||||||
cueObjectFeatures {
|
|
||||||
cueObjectDistance
|
|
||||||
cueObjectAngle
|
|
||||||
cueBallSpeed
|
|
||||||
shotDirection
|
|
||||||
spinType
|
|
||||||
}
|
|
||||||
pocketingIntentionFeatures {
|
pocketingIntentionFeatures {
|
||||||
make
|
make
|
||||||
targetPocketDistance
|
|
||||||
targetPocketAngle
|
|
||||||
targetPocketAngleDirection
|
|
||||||
marginOfErrorInDegrees
|
|
||||||
intendedPocketType
|
|
||||||
difficulty
|
|
||||||
}
|
}
|
||||||
pocketingIntentionInfo {
|
pocketingIntentionInfo {
|
||||||
ballId
|
|
||||||
pocketId
|
pocketId
|
||||||
pathMetadataIndex
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
100
src/operations/session-coach.gql
Normal file
100
src/operations/session-coach.gql
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
query GetSessionCoach($videoId: Int!) {
|
||||||
|
getSessionCoach(videoId: $videoId) {
|
||||||
|
videoId
|
||||||
|
processingId
|
||||||
|
analysisVersion
|
||||||
|
state
|
||||||
|
generatedAt
|
||||||
|
processingStatus
|
||||||
|
ineligibilityReason
|
||||||
|
summary
|
||||||
|
shotCount
|
||||||
|
madeCount
|
||||||
|
missedCount
|
||||||
|
unknownOutcomeCount
|
||||||
|
analyzedShotCount
|
||||||
|
makePercentage
|
||||||
|
primaryCandidate {
|
||||||
|
...SessionCoachCandidateFields
|
||||||
|
}
|
||||||
|
candidates {
|
||||||
|
...SessionCoachCandidateFields
|
||||||
|
}
|
||||||
|
agentGeneration {
|
||||||
|
...SessionCoachGenerationFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation RequestSessionCoachGeneration($videoId: Int!) {
|
||||||
|
requestSessionCoachGeneration(videoId: $videoId) {
|
||||||
|
state
|
||||||
|
agentGeneration {
|
||||||
|
...SessionCoachGenerationFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fragment SessionCoachCandidateFields on SessionCoachCandidateGQL {
|
||||||
|
id
|
||||||
|
rank
|
||||||
|
family
|
||||||
|
kind
|
||||||
|
title
|
||||||
|
body
|
||||||
|
action
|
||||||
|
supportingShotIds
|
||||||
|
drillId
|
||||||
|
limitations
|
||||||
|
evidence {
|
||||||
|
bucketKey
|
||||||
|
bucketLabel
|
||||||
|
attemptCount
|
||||||
|
madeCount
|
||||||
|
missedCount
|
||||||
|
makePercentage
|
||||||
|
comparisonAttemptCount
|
||||||
|
comparisonMadeCount
|
||||||
|
comparisonMakePercentage
|
||||||
|
patternShotCount
|
||||||
|
score
|
||||||
|
rankReason
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fragment SessionCoachGenerationFields on SessionCoachGenerationGQL {
|
||||||
|
id
|
||||||
|
state
|
||||||
|
createdAt
|
||||||
|
completedAt
|
||||||
|
decision {
|
||||||
|
selectedCandidateId
|
||||||
|
sessionSummary
|
||||||
|
title
|
||||||
|
body
|
||||||
|
suggestedAction
|
||||||
|
drillId
|
||||||
|
drillReason
|
||||||
|
practiceAttemptCount
|
||||||
|
practiceTarget
|
||||||
|
}
|
||||||
|
diagnostics {
|
||||||
|
analysisVersion
|
||||||
|
promptVersion
|
||||||
|
providerKey
|
||||||
|
modelName
|
||||||
|
inputHash
|
||||||
|
attemptCount
|
||||||
|
maxAttempts
|
||||||
|
enqueueCount
|
||||||
|
latencyMs
|
||||||
|
inputTokens
|
||||||
|
cachedInputTokens
|
||||||
|
outputTokens
|
||||||
|
failureCode
|
||||||
|
updatedAt
|
||||||
|
startedAt
|
||||||
|
lastEnqueuedAt
|
||||||
|
abstentionReason
|
||||||
|
}
|
||||||
|
}
|
||||||
3180
src/schema.gql
3180
src/schema.gql
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user