@grepr/cli 1.14.8-70e971b → 1.14.8-866e838
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.
|
@@ -297,6 +297,26 @@ export interface paths {
|
|
|
297
297
|
patch?: never;
|
|
298
298
|
trace?: never;
|
|
299
299
|
};
|
|
300
|
+
"/v1/agents/context-estimate": {
|
|
301
|
+
parameters: {
|
|
302
|
+
query?: never;
|
|
303
|
+
header?: never;
|
|
304
|
+
path?: never;
|
|
305
|
+
cookie?: never;
|
|
306
|
+
};
|
|
307
|
+
get?: never;
|
|
308
|
+
put?: never;
|
|
309
|
+
/**
|
|
310
|
+
* Estimate an agent's starting context
|
|
311
|
+
* @description Returns the parts of an agent's first model request and their estimated sizes: the prompts, the skill list and the tools. The run's own message (the signal or the chat) comes on top. Sizes are characters divided by 4. An MCP integration whose tools cannot be listed is returned with 0 tokens.
|
|
312
|
+
*/
|
|
313
|
+
post: operations["contextEstimate"];
|
|
314
|
+
delete?: never;
|
|
315
|
+
options?: never;
|
|
316
|
+
head?: never;
|
|
317
|
+
patch?: never;
|
|
318
|
+
trace?: never;
|
|
319
|
+
};
|
|
300
320
|
"/v1/agents/mcp-integrations/{integrationId}/tools": {
|
|
301
321
|
parameters: {
|
|
302
322
|
query?: never;
|
|
@@ -4935,6 +4955,20 @@ export interface components {
|
|
|
4935
4955
|
/** @description Whether the agent files and works on issues; required, since an update replaces the agent and an omitted switch would turn issue work off unnoticed. */
|
|
4936
4956
|
worksOnIssues: boolean;
|
|
4937
4957
|
};
|
|
4958
|
+
/** @description What an agent's first model request carries before the run's own message (the signal or the chat), part by part. Sizes are estimates: characters divided by 4. */
|
|
4959
|
+
AgentContextEstimate: {
|
|
4960
|
+
/**
|
|
4961
|
+
* Format: int32
|
|
4962
|
+
* @description The model's context window as the sandbox sets it: OpenCode's own window for a model it knows, otherwise the configured floor.
|
|
4963
|
+
*/
|
|
4964
|
+
contextWindowTokens?: number;
|
|
4965
|
+
parts?: components["schemas"]["ContextPart"][];
|
|
4966
|
+
/**
|
|
4967
|
+
* Format: int32
|
|
4968
|
+
* @description The sum of the parts' tokens.
|
|
4969
|
+
*/
|
|
4970
|
+
totalTokens?: number;
|
|
4971
|
+
};
|
|
4938
4972
|
AgentDetail: {
|
|
4939
4973
|
agent?: components["schemas"]["AgentConfig"];
|
|
4940
4974
|
metrics?: components["schemas"]["AgentInvestigationMetrics"];
|
|
@@ -6629,6 +6663,23 @@ export interface components {
|
|
|
6629
6663
|
*/
|
|
6630
6664
|
type: ConstantSamplingType;
|
|
6631
6665
|
};
|
|
6666
|
+
/** @description One part of an agent's first model request, and its estimated size. */
|
|
6667
|
+
ContextPart: {
|
|
6668
|
+
/** @description The part's breakdown, such as one item per tool; empty when it has none. */
|
|
6669
|
+
items?: components["schemas"]["ContextPart"][];
|
|
6670
|
+
/**
|
|
6671
|
+
* @description Where a part of an agent's first model request comes from.
|
|
6672
|
+
* @enum {string}
|
|
6673
|
+
*/
|
|
6674
|
+
kind?: ContextPartKind;
|
|
6675
|
+
/** @description What the part is, for a person. */
|
|
6676
|
+
label?: string;
|
|
6677
|
+
/**
|
|
6678
|
+
* Format: int32
|
|
6679
|
+
* @description The estimated size, in tokens: characters divided by 4, rounded up.
|
|
6680
|
+
*/
|
|
6681
|
+
tokens?: number;
|
|
6682
|
+
};
|
|
6632
6683
|
/** @description Metadata about the contract. */
|
|
6633
6684
|
Contract: {
|
|
6634
6685
|
/**
|
|
@@ -10417,6 +10468,11 @@ export interface components {
|
|
|
10417
10468
|
};
|
|
10418
10469
|
McpToolDescriptor: {
|
|
10419
10470
|
description?: string;
|
|
10471
|
+
/**
|
|
10472
|
+
* Format: int32
|
|
10473
|
+
* @description What the tool adds to each model request of an agent that may call it, in estimated tokens (characters divided by 4).
|
|
10474
|
+
*/
|
|
10475
|
+
estimatedTokens?: number;
|
|
10420
10476
|
name?: string;
|
|
10421
10477
|
parameters?: components["schemas"]["McpToolParameter"][];
|
|
10422
10478
|
readOnly?: boolean;
|
|
@@ -16655,6 +16711,7 @@ export type SchemaAgentConfig = components["schemas"]["AgentConfig"];
|
|
|
16655
16711
|
export type SchemaAgentConfigCreate = components["schemas"]["AgentConfigCreate"];
|
|
16656
16712
|
export type SchemaAgentConfigPayload = components["schemas"]["AgentConfigPayload"];
|
|
16657
16713
|
export type SchemaAgentConfigUpdate = components["schemas"]["AgentConfigUpdate"];
|
|
16714
|
+
export type SchemaAgentContextEstimate = components["schemas"]["AgentContextEstimate"];
|
|
16658
16715
|
export type SchemaAgentDetail = components["schemas"]["AgentDetail"];
|
|
16659
16716
|
export type SchemaAgentInvestigationMetrics = components["schemas"]["AgentInvestigationMetrics"];
|
|
16660
16717
|
export type SchemaAgentIssuePickup = components["schemas"]["AgentIssuePickup"];
|
|
@@ -16767,6 +16824,7 @@ export type SchemaConditionNode = components["schemas"]["ConditionNode"];
|
|
|
16767
16824
|
export type SchemaConditionalDataLakeConfig = components["schemas"]["ConditionalDataLakeConfig"];
|
|
16768
16825
|
export type SchemaConsoleSetupInfo = components["schemas"]["ConsoleSetupInfo"];
|
|
16769
16826
|
export type SchemaConstantSampling = components["schemas"]["ConstantSampling"];
|
|
16827
|
+
export type SchemaContextPart = components["schemas"]["ContextPart"];
|
|
16770
16828
|
export type SchemaContract = components["schemas"]["Contract"];
|
|
16771
16829
|
export type SchemaCreateAgentSessionAnalyticsJob = components["schemas"]["CreateAgentSessionAnalyticsJob"];
|
|
16772
16830
|
export type SchemaCreateBackfillJob = components["schemas"]["CreateBackfillJob"];
|
|
@@ -17884,6 +17942,44 @@ export interface operations {
|
|
|
17884
17942
|
};
|
|
17885
17943
|
};
|
|
17886
17944
|
};
|
|
17945
|
+
contextEstimate: {
|
|
17946
|
+
parameters: {
|
|
17947
|
+
query?: never;
|
|
17948
|
+
header?: never;
|
|
17949
|
+
path?: never;
|
|
17950
|
+
cookie?: never;
|
|
17951
|
+
};
|
|
17952
|
+
requestBody: {
|
|
17953
|
+
content: {
|
|
17954
|
+
"application/json": components["schemas"]["AgentConfigCreate"];
|
|
17955
|
+
};
|
|
17956
|
+
};
|
|
17957
|
+
responses: {
|
|
17958
|
+
/** @description Estimate computed successfully */
|
|
17959
|
+
200: {
|
|
17960
|
+
headers: {
|
|
17961
|
+
[name: string]: unknown;
|
|
17962
|
+
};
|
|
17963
|
+
content: {
|
|
17964
|
+
"application/json": components["schemas"]["AgentContextEstimate"];
|
|
17965
|
+
};
|
|
17966
|
+
};
|
|
17967
|
+
/** @description The configuration names no model */
|
|
17968
|
+
400: {
|
|
17969
|
+
headers: {
|
|
17970
|
+
[name: string]: unknown;
|
|
17971
|
+
};
|
|
17972
|
+
content?: never;
|
|
17973
|
+
};
|
|
17974
|
+
/** @description Unauthorized */
|
|
17975
|
+
401: {
|
|
17976
|
+
headers: {
|
|
17977
|
+
[name: string]: unknown;
|
|
17978
|
+
};
|
|
17979
|
+
content?: never;
|
|
17980
|
+
};
|
|
17981
|
+
};
|
|
17982
|
+
};
|
|
17887
17983
|
mcpIntegrationTools: {
|
|
17888
17984
|
parameters: {
|
|
17889
17985
|
query?: {
|
|
@@ -30257,6 +30353,16 @@ export declare enum ConditionNodeKind {
|
|
|
30257
30353
|
export declare enum ConstantSamplingType {
|
|
30258
30354
|
constant_sampling = "constant-sampling"
|
|
30259
30355
|
}
|
|
30356
|
+
export declare enum ContextPartKind {
|
|
30357
|
+
BASE_PROMPT = "BASE_PROMPT",
|
|
30358
|
+
ENVIRONMENT = "ENVIRONMENT",
|
|
30359
|
+
AGENT_PROMPT = "AGENT_PROMPT",
|
|
30360
|
+
FRAMEWORK = "FRAMEWORK",
|
|
30361
|
+
SKILLS = "SKILLS",
|
|
30362
|
+
BUILT_IN_TOOLS = "BUILT_IN_TOOLS",
|
|
30363
|
+
GREPR_TOOLS = "GREPR_TOOLS",
|
|
30364
|
+
MCP_TOOLS = "MCP_TOOLS"
|
|
30365
|
+
}
|
|
30260
30366
|
export declare enum CreateIssueRequestConfidence {
|
|
30261
30367
|
CONFIRMED = "CONFIRMED",
|
|
30262
30368
|
LIKELY = "LIKELY",
|