Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
286 changes: 218 additions & 68 deletions packages/plugin-sdk/src/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12487,8 +12487,24 @@ export const contracts: {
HistoryView: {
description:
'Tool output is available through source reads in both views. Conversation\nwindows carry tool metadata only, keeping large results out of chat paging.',
type: 'string',
enum: ['text', 'conversation'],
oneOf: [
{
type: 'string',
enum: ['text', 'conversation'],
},
{
description:
'Visible chat rows. Completed work can be read separately at the same fence.',
type: 'string',
const: 'chat',
},
{
description:
'All conversation rows belonging to the live history Run at the anchor.',
type: 'string',
const: 'turn',
},
],
},
},
},
Expand Down Expand Up @@ -12631,6 +12647,16 @@ export const contracts: {
},
],
},
foldedWork: {
anyOf: [
{
$ref: '#/$defs/HistoryFoldedWork',
},
{
type: 'null',
},
],
},
field: {
$ref: '#/$defs/HistoryField',
},
Expand Down Expand Up @@ -13034,48 +13060,54 @@ export const contracts: {
additionalProperties: false,
required: ['inputTokens', 'readTokens'],
},
HistoryField: {
description: 'A readable field in a conversation window, in presentation order.',
type: 'string',
enum: ['thinking', 'body'],
},
Role: {
description:
'Canonical message author/kind; the field identifies body versus thinking.\nTool body JSON contributes string values, never its keys.',
type: 'string',
enum: [
'system',
'context',
'tool',
'compaction',
'failure',
'user',
'assistant',
'tool_call',
'tool_result',
],
},
HistoryOrder: {
description:
'Lexicographic tree order: original marker sequences followed by the leaf\nsequence/ordinal. This is presentation order, never a fabricated Root sequence.',
HistoryFoldedWork: {
description: 'Completed activity available on demand at the same history fence.',
type: 'object',
properties: {
path: {
thoughts: {
type: 'integer',
format: 'uint64',
minimum: 0,
},
tools: {
type: 'integer',
format: 'uint64',
minimum: 0,
},
messages: {
type: 'integer',
format: 'uint64',
minimum: 0,
},
imageCount: {
type: 'integer',
format: 'uint64',
minimum: 0,
},
images: {
type: 'array',
items: {
type: 'integer',
format: 'uint64',
minimum: 0,
$ref: '#/$defs/HistoryWorkImage',
},
},
itemIndex: {
type: 'integer',
format: 'uint64',
},
additionalProperties: false,
required: ['thoughts', 'tools', 'messages', 'imageCount', 'images'],
},
HistoryWorkImage: {
type: 'object',
properties: {
position: {
$ref: '#/$defs/HistoryRowAddress',
},
image: {
type: ['integer', 'null'],
format: 'uint32',
minimum: 0,
},
},
additionalProperties: false,
required: ['path', 'itemIndex'],
required: ['position'],
},
HistoryRowAddress: {
description:
Expand Down Expand Up @@ -13176,6 +13208,49 @@ export const contracts: {
type: 'string',
format: 'uuid',
},
HistoryField: {
description: 'A readable field in a conversation window, in presentation order.',
type: 'string',
enum: ['thinking', 'body'],
},
Role: {
description:
'Canonical message author/kind; the field identifies body versus thinking.\nTool body JSON contributes string values, never its keys.',
type: 'string',
enum: [
'system',
'context',
'tool',
'compaction',
'failure',
'user',
'assistant',
'tool_call',
'tool_result',
],
},
HistoryOrder: {
description:
'Lexicographic tree order: original marker sequences followed by the leaf\nsequence/ordinal. This is presentation order, never a fabricated Root sequence.',
type: 'object',
properties: {
path: {
type: 'array',
items: {
type: 'integer',
format: 'uint64',
minimum: 0,
},
},
itemIndex: {
type: 'integer',
format: 'uint64',
minimum: 0,
},
},
additionalProperties: false,
required: ['path', 'itemIndex'],
},
HistoryTool: {
description:
'Canonical references at the requested fence, never execution authority.\nBoth references are present only for a unique same-Turn call/result pair\nwith matching origin and parentage. An unpaired row retains its own reference.',
Expand Down Expand Up @@ -20553,8 +20628,24 @@ export const contracts: {
HistoryView: {
description:
'Tool output is available through source reads in both views. Conversation\nwindows carry tool metadata only, keeping large results out of chat paging.',
type: 'string',
enum: ['text', 'conversation'],
oneOf: [
{
type: 'string',
enum: ['text', 'conversation'],
},
{
description:
'Visible chat rows. Completed work can be read separately at the same fence.',
type: 'string',
const: 'chat',
},
{
description:
'All conversation rows belonging to the live history Run at the anchor.',
type: 'string',
const: 'turn',
},
],
},
},
},
Expand Down Expand Up @@ -20697,6 +20788,16 @@ export const contracts: {
},
],
},
foldedWork: {
anyOf: [
{
$ref: '#/$defs/HistoryFoldedWork',
},
{
type: 'null',
},
],
},
field: {
$ref: '#/$defs/HistoryField',
},
Expand Down Expand Up @@ -21100,48 +21201,54 @@ export const contracts: {
additionalProperties: false,
required: ['inputTokens', 'readTokens'],
},
HistoryField: {
description: 'A readable field in a conversation window, in presentation order.',
type: 'string',
enum: ['thinking', 'body'],
},
Role: {
description:
'Canonical message author/kind; the field identifies body versus thinking.\nTool body JSON contributes string values, never its keys.',
type: 'string',
enum: [
'system',
'context',
'tool',
'compaction',
'failure',
'user',
'assistant',
'tool_call',
'tool_result',
],
},
HistoryOrder: {
description:
'Lexicographic tree order: original marker sequences followed by the leaf\nsequence/ordinal. This is presentation order, never a fabricated Root sequence.',
HistoryFoldedWork: {
description: 'Completed activity available on demand at the same history fence.',
type: 'object',
properties: {
path: {
thoughts: {
type: 'integer',
format: 'uint64',
minimum: 0,
},
tools: {
type: 'integer',
format: 'uint64',
minimum: 0,
},
messages: {
type: 'integer',
format: 'uint64',
minimum: 0,
},
imageCount: {
type: 'integer',
format: 'uint64',
minimum: 0,
},
images: {
type: 'array',
items: {
type: 'integer',
format: 'uint64',
minimum: 0,
$ref: '#/$defs/HistoryWorkImage',
},
},
itemIndex: {
type: 'integer',
format: 'uint64',
},
additionalProperties: false,
required: ['thoughts', 'tools', 'messages', 'imageCount', 'images'],
},
HistoryWorkImage: {
type: 'object',
properties: {
position: {
$ref: '#/$defs/HistoryRowAddress',
},
image: {
type: ['integer', 'null'],
format: 'uint32',
minimum: 0,
},
},
additionalProperties: false,
required: ['path', 'itemIndex'],
required: ['position'],
},
HistoryRowAddress: {
description:
Expand Down Expand Up @@ -21242,6 +21349,49 @@ export const contracts: {
type: 'string',
format: 'uuid',
},
HistoryField: {
description: 'A readable field in a conversation window, in presentation order.',
type: 'string',
enum: ['thinking', 'body'],
},
Role: {
description:
'Canonical message author/kind; the field identifies body versus thinking.\nTool body JSON contributes string values, never its keys.',
type: 'string',
enum: [
'system',
'context',
'tool',
'compaction',
'failure',
'user',
'assistant',
'tool_call',
'tool_result',
],
},
HistoryOrder: {
description:
'Lexicographic tree order: original marker sequences followed by the leaf\nsequence/ordinal. This is presentation order, never a fabricated Root sequence.',
type: 'object',
properties: {
path: {
type: 'array',
items: {
type: 'integer',
format: 'uint64',
minimum: 0,
},
},
itemIndex: {
type: 'integer',
format: 'uint64',
minimum: 0,
},
},
additionalProperties: false,
required: ['path', 'itemIndex'],
},
HistoryTool: {
description:
'Canonical references at the requested fence, never execution authority.\nBoth references are present only for a unique same-Turn call/result pair\nwith matching origin and parentage. An unpaired row retains its own reference.',
Expand Down
5 changes: 4 additions & 1 deletion packages/plugin-sdk/src/generated/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,10 @@ export type AgentLoadedHistoryCheckpointHistoryInput_HistoryField = 'thinking' |
* Tool output is available through source reads in both views. Conversation
* windows carry tool metadata only, keeping large results out of chat paging.
*/
export type AgentLoadedHistoryCheckpointHistoryInput_HistoryView = 'text' | 'conversation';
export type AgentLoadedHistoryCheckpointHistoryInput_HistoryView =
| ('text' | 'conversation')
| 'chat'
| 'turn';
/**
* An original row within the actual read capability supplied by the caller.
* Marker paths are relative to that capability; none of these fields grants access.
Expand Down
Loading
Loading