Add Epiphany pressure reflection

This commit is contained in:
Meta Vens 2026-04-26 04:24:55 +01:00
commit e1298e58a9
42 changed files with 986 additions and 90 deletions

View file

@ -4736,6 +4736,13 @@
"last": {
"$ref": "#/definitions/TokenUsageBreakdown"
},
"modelAutoCompactTokenLimit": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"modelContextWindow": {
"format": "int64",
"type": [

View file

@ -15032,6 +15032,101 @@
],
"type": "string"
},
"ThreadEpiphanyPressure": {
"properties": {
"basis": {
"$ref": "#/definitions/v2/ThreadEpiphanyPressureBasis"
},
"level": {
"$ref": "#/definitions/v2/ThreadEpiphanyPressureLevel"
},
"modelAutoCompactTokenLimit": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"modelContextWindow": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"note": {
"type": "string"
},
"ratioPerMille": {
"format": "uint32",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"remainingTokens": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"shouldPrepareCompaction": {
"type": "boolean"
},
"status": {
"$ref": "#/definitions/v2/ThreadEpiphanyPressureStatus"
},
"usedTokens": {
"format": "int64",
"type": [
"integer",
"null"
]
}
},
"required": [
"basis",
"level",
"note",
"shouldPrepareCompaction",
"status"
],
"type": "object"
},
"ThreadEpiphanyPressureBasis": {
"enum": [
"unknown",
"autoCompactLimit",
"modelContextWindow"
],
"type": "string"
},
"ThreadEpiphanyPressureLevel": {
"enum": [
"unknown",
"low",
"elevated",
"high",
"critical"
],
"type": "string"
},
"ThreadEpiphanyPressureSource": {
"enum": [
"stored",
"live"
],
"type": "string"
},
"ThreadEpiphanyPressureStatus": {
"enum": [
"unknown",
"ready"
],
"type": "string"
},
"ThreadEpiphanyRetrieveIndexSummary": {
"properties": {
"dirtyPaths": {
@ -15283,6 +15378,7 @@
"distill",
"context",
"jobs",
"pressure",
"propose",
"promote",
"update"
@ -17813,6 +17909,13 @@
"last": {
"$ref": "#/definitions/v2/TokenUsageBreakdown"
},
"modelAutoCompactTokenLimit": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"modelContextWindow": {
"format": "int64",
"type": [

View file

@ -12919,6 +12919,101 @@
],
"type": "string"
},
"ThreadEpiphanyPressure": {
"properties": {
"basis": {
"$ref": "#/definitions/ThreadEpiphanyPressureBasis"
},
"level": {
"$ref": "#/definitions/ThreadEpiphanyPressureLevel"
},
"modelAutoCompactTokenLimit": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"modelContextWindow": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"note": {
"type": "string"
},
"ratioPerMille": {
"format": "uint32",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"remainingTokens": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"shouldPrepareCompaction": {
"type": "boolean"
},
"status": {
"$ref": "#/definitions/ThreadEpiphanyPressureStatus"
},
"usedTokens": {
"format": "int64",
"type": [
"integer",
"null"
]
}
},
"required": [
"basis",
"level",
"note",
"shouldPrepareCompaction",
"status"
],
"type": "object"
},
"ThreadEpiphanyPressureBasis": {
"enum": [
"unknown",
"autoCompactLimit",
"modelContextWindow"
],
"type": "string"
},
"ThreadEpiphanyPressureLevel": {
"enum": [
"unknown",
"low",
"elevated",
"high",
"critical"
],
"type": "string"
},
"ThreadEpiphanyPressureSource": {
"enum": [
"stored",
"live"
],
"type": "string"
},
"ThreadEpiphanyPressureStatus": {
"enum": [
"unknown",
"ready"
],
"type": "string"
},
"ThreadEpiphanyRetrieveIndexSummary": {
"properties": {
"dirtyPaths": {
@ -13170,6 +13265,7 @@
"distill",
"context",
"jobs",
"pressure",
"propose",
"promote",
"update"
@ -15700,6 +15796,13 @@
"last": {
"$ref": "#/definitions/TokenUsageBreakdown"
},
"modelAutoCompactTokenLimit": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"modelContextWindow": {
"format": "int64",
"type": [

View file

@ -6,6 +6,13 @@
"last": {
"$ref": "#/definitions/TokenUsageBreakdown"
},
"modelAutoCompactTokenLimit": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"modelContextWindow": {
"format": "int64",
"type": [

View file

@ -0,0 +1,8 @@
// 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 { ThreadEpiphanyPressureBasis } from "./ThreadEpiphanyPressureBasis";
import type { ThreadEpiphanyPressureLevel } from "./ThreadEpiphanyPressureLevel";
import type { ThreadEpiphanyPressureStatus } from "./ThreadEpiphanyPressureStatus";
export type ThreadEpiphanyPressure = { status: ThreadEpiphanyPressureStatus, level: ThreadEpiphanyPressureLevel, basis: ThreadEpiphanyPressureBasis, usedTokens?: bigint | null, modelContextWindow?: bigint | null, modelAutoCompactTokenLimit?: bigint | null, remainingTokens?: bigint | null, ratioPerMille?: number | null, shouldPrepareCompaction: boolean, note: string, };

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 ThreadEpiphanyPressureBasis = "unknown" | "autoCompactLimit" | "modelContextWindow";

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 ThreadEpiphanyPressureLevel = "unknown" | "low" | "elevated" | "high" | "critical";

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 ThreadEpiphanyPressureSource = "stored" | "live";

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 ThreadEpiphanyPressureStatus = "unknown" | "ready";

View file

@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanySceneAction = "index" | "retrieve" | "distill" | "context" | "jobs" | "propose" | "promote" | "update";
export type ThreadEpiphanySceneAction = "index" | "retrieve" | "distill" | "context" | "jobs" | "pressure" | "propose" | "promote" | "update";

View file

@ -3,4 +3,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { TokenUsageBreakdown } from "./TokenUsageBreakdown";
export type ThreadTokenUsage = { total: TokenUsageBreakdown, last: TokenUsageBreakdown, modelContextWindow: number | null, };
export type ThreadTokenUsage = { total: TokenUsageBreakdown, last: TokenUsageBreakdown, modelContextWindow: number | null, modelAutoCompactTokenLimit?: number | null, };

View file

@ -326,6 +326,11 @@ export type { ThreadEpiphanyJob } from "./ThreadEpiphanyJob";
export type { ThreadEpiphanyJobKind } from "./ThreadEpiphanyJobKind";
export type { ThreadEpiphanyJobStatus } from "./ThreadEpiphanyJobStatus";
export type { ThreadEpiphanyJobsSource } from "./ThreadEpiphanyJobsSource";
export type { ThreadEpiphanyPressure } from "./ThreadEpiphanyPressure";
export type { ThreadEpiphanyPressureBasis } from "./ThreadEpiphanyPressureBasis";
export type { ThreadEpiphanyPressureLevel } from "./ThreadEpiphanyPressureLevel";
export type { ThreadEpiphanyPressureSource } from "./ThreadEpiphanyPressureSource";
export type { ThreadEpiphanyPressureStatus } from "./ThreadEpiphanyPressureStatus";
export type { ThreadEpiphanyRetrieveIndexSummary } from "./ThreadEpiphanyRetrieveIndexSummary";
export type { ThreadEpiphanyRetrieveResult } from "./ThreadEpiphanyRetrieveResult";
export type { ThreadEpiphanyRetrieveResultKind } from "./ThreadEpiphanyRetrieveResultKind";