Add Epiphany jobsUpdated notification

This commit is contained in:
Meta Vens 2026-04-26 15:02:45 +01:00
commit 48d6820d7d
22 changed files with 923 additions and 23 deletions

View file

@ -3856,6 +3856,150 @@
],
"type": "object"
},
"ThreadEpiphanyJob": {
"properties": {
"activeThreadIds": {
"items": {
"type": "string"
},
"type": "array"
},
"blockingReason": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"itemsProcessed": {
"format": "uint32",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"itemsTotal": {
"format": "uint32",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"$ref": "#/definitions/ThreadEpiphanyJobKind"
},
"lastCheckpointAtUnixSeconds": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"linkedGraphNodeIds": {
"items": {
"type": "string"
},
"type": "array"
},
"linkedSubgoalIds": {
"items": {
"type": "string"
},
"type": "array"
},
"ownerRole": {
"type": "string"
},
"progressNote": {
"type": [
"string",
"null"
]
},
"runtimeAgentJobId": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
},
"status": {
"$ref": "#/definitions/ThreadEpiphanyJobStatus"
}
},
"required": [
"id",
"kind",
"ownerRole",
"scope",
"status"
],
"type": "object"
},
"ThreadEpiphanyJobKind": {
"enum": [
"indexing",
"remap",
"verification",
"specialist"
],
"type": "string"
},
"ThreadEpiphanyJobStatus": {
"enum": [
"idle",
"needed",
"pending",
"running",
"completed",
"failed",
"cancelled",
"blocked",
"unavailable"
],
"type": "string"
},
"ThreadEpiphanyJobsUpdatedNotification": {
"properties": {
"jobs": {
"items": {
"$ref": "#/definitions/ThreadEpiphanyJob"
},
"type": "array"
},
"source": {
"$ref": "#/definitions/ThreadEpiphanyJobsUpdatedSource"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"threadId": {
"type": "string"
}
},
"required": [
"source",
"threadId"
],
"type": "object"
},
"ThreadEpiphanyJobsUpdatedSource": {
"enum": [
"runtimeProgress"
],
"type": "string"
},
"ThreadEpiphanyStateUpdatedField": {
"enum": [
"objective",
@ -6363,6 +6507,26 @@
"title": "Thread/epiphany/stateUpdatedNotification",
"type": "object"
},
{
"properties": {
"method": {
"enum": [
"thread/epiphany/jobsUpdated"
],
"title": "Thread/epiphany/jobsUpdatedNotificationMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadEpiphanyJobsUpdatedNotification"
}
},
"required": [
"method",
"params"
],
"title": "Thread/epiphany/jobsUpdatedNotification",
"type": "object"
},
{
"properties": {
"method": {

View file

@ -4524,6 +4524,26 @@
"title": "Thread/epiphany/stateUpdatedNotification",
"type": "object"
},
{
"properties": {
"method": {
"enum": [
"thread/epiphany/jobsUpdated"
],
"title": "Thread/epiphany/jobsUpdatedNotificationMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ThreadEpiphanyJobsUpdatedNotification"
}
},
"required": [
"method",
"params"
],
"title": "Thread/epiphany/jobsUpdatedNotification",
"type": "object"
},
{
"properties": {
"method": {
@ -15328,6 +15348,43 @@
],
"type": "string"
},
"ThreadEpiphanyJobsUpdatedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"jobs": {
"items": {
"$ref": "#/definitions/v2/ThreadEpiphanyJob"
},
"type": "array"
},
"source": {
"$ref": "#/definitions/v2/ThreadEpiphanyJobsUpdatedSource"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"threadId": {
"type": "string"
}
},
"required": [
"source",
"threadId"
],
"title": "ThreadEpiphanyJobsUpdatedNotification",
"type": "object"
},
"ThreadEpiphanyJobsUpdatedSource": {
"enum": [
"runtimeProgress"
],
"type": "string"
},
"ThreadEpiphanyPressure": {
"properties": {
"basis": {

View file

@ -11726,6 +11726,26 @@
"title": "Thread/epiphany/stateUpdatedNotification",
"type": "object"
},
{
"properties": {
"method": {
"enum": [
"thread/epiphany/jobsUpdated"
],
"title": "Thread/epiphany/jobsUpdatedNotificationMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadEpiphanyJobsUpdatedNotification"
}
},
"required": [
"method",
"params"
],
"title": "Thread/epiphany/jobsUpdatedNotification",
"type": "object"
},
{
"properties": {
"method": {
@ -13215,6 +13235,43 @@
],
"type": "string"
},
"ThreadEpiphanyJobsUpdatedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"jobs": {
"items": {
"$ref": "#/definitions/ThreadEpiphanyJob"
},
"type": "array"
},
"source": {
"$ref": "#/definitions/ThreadEpiphanyJobsUpdatedSource"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"threadId": {
"type": "string"
}
},
"required": [
"source",
"threadId"
],
"title": "ThreadEpiphanyJobsUpdatedNotification",
"type": "object"
},
"ThreadEpiphanyJobsUpdatedSource": {
"enum": [
"runtimeProgress"
],
"type": "string"
},
"ThreadEpiphanyPressure": {
"properties": {
"basis": {

View file

@ -0,0 +1,148 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ThreadEpiphanyJob": {
"properties": {
"activeThreadIds": {
"items": {
"type": "string"
},
"type": "array"
},
"blockingReason": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"itemsProcessed": {
"format": "uint32",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"itemsTotal": {
"format": "uint32",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"$ref": "#/definitions/ThreadEpiphanyJobKind"
},
"lastCheckpointAtUnixSeconds": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"linkedGraphNodeIds": {
"items": {
"type": "string"
},
"type": "array"
},
"linkedSubgoalIds": {
"items": {
"type": "string"
},
"type": "array"
},
"ownerRole": {
"type": "string"
},
"progressNote": {
"type": [
"string",
"null"
]
},
"runtimeAgentJobId": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
},
"status": {
"$ref": "#/definitions/ThreadEpiphanyJobStatus"
}
},
"required": [
"id",
"kind",
"ownerRole",
"scope",
"status"
],
"type": "object"
},
"ThreadEpiphanyJobKind": {
"enum": [
"indexing",
"remap",
"verification",
"specialist"
],
"type": "string"
},
"ThreadEpiphanyJobStatus": {
"enum": [
"idle",
"needed",
"pending",
"running",
"completed",
"failed",
"cancelled",
"blocked",
"unavailable"
],
"type": "string"
},
"ThreadEpiphanyJobsUpdatedSource": {
"enum": [
"runtimeProgress"
],
"type": "string"
}
},
"properties": {
"jobs": {
"items": {
"$ref": "#/definitions/ThreadEpiphanyJob"
},
"type": "array"
},
"source": {
"$ref": "#/definitions/ThreadEpiphanyJobsUpdatedSource"
},
"stateRevision": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"threadId": {
"type": "string"
}
},
"required": [
"source",
"threadId"
],
"title": "ThreadEpiphanyJobsUpdatedNotification",
"type": "object"
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,7 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadEpiphanyJob } from "./ThreadEpiphanyJob";
import type { ThreadEpiphanyJobsUpdatedSource } from "./ThreadEpiphanyJobsUpdatedSource";
export type ThreadEpiphanyJobsUpdatedNotification = { threadId: string, source: ThreadEpiphanyJobsUpdatedSource, stateRevision?: bigint | null, jobs?: Array<ThreadEpiphanyJob>, };

View file

@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanyJobsUpdatedSource = "runtimeProgress";

View file

@ -331,6 +331,8 @@ export type { ThreadEpiphanyJob } from "./ThreadEpiphanyJob";
export type { ThreadEpiphanyJobKind } from "./ThreadEpiphanyJobKind";
export type { ThreadEpiphanyJobStatus } from "./ThreadEpiphanyJobStatus";
export type { ThreadEpiphanyJobsSource } from "./ThreadEpiphanyJobsSource";
export type { ThreadEpiphanyJobsUpdatedNotification } from "./ThreadEpiphanyJobsUpdatedNotification";
export type { ThreadEpiphanyJobsUpdatedSource } from "./ThreadEpiphanyJobsUpdatedSource";
export type { ThreadEpiphanyPressure } from "./ThreadEpiphanyPressure";
export type { ThreadEpiphanyPressureBasis } from "./ThreadEpiphanyPressureBasis";
export type { ThreadEpiphanyPressureLevel } from "./ThreadEpiphanyPressureLevel";