@parcha/agentrun-client 0.1.0-beta.63 → 0.1.0-beta.65
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.
|
@@ -213,10 +213,12 @@ export type DefinitionInput = {
|
|
|
213
213
|
web_fetch?: {
|
|
214
214
|
provider?: "auto" | "firecrawl-keyless" | "kernel" | "parallel";
|
|
215
215
|
permission?: "allow" | "ask" | "deny";
|
|
216
|
+
jev?: "off";
|
|
216
217
|
};
|
|
217
218
|
web_search?: {
|
|
218
219
|
provider?: "auto" | "native" | "firecrawl-keyless" | "exa-keyless" | "parallel" | "off";
|
|
219
220
|
permission?: "allow" | "ask" | "deny";
|
|
221
|
+
jev?: "off";
|
|
220
222
|
};
|
|
221
223
|
web_save?: {
|
|
222
224
|
permission?: "allow" | "ask" | "deny";
|
|
@@ -954,6 +956,7 @@ export type RunFile = {
|
|
|
954
956
|
};
|
|
955
957
|
export type MessageCreate = {
|
|
956
958
|
content: string;
|
|
959
|
+
said?: string;
|
|
957
960
|
model_key?: string;
|
|
958
961
|
mcp_auth?: Record<string, {
|
|
959
962
|
headers: Record<string, string>;
|
|
@@ -1287,6 +1290,7 @@ export type Features = {
|
|
|
1287
1290
|
answer: boolean;
|
|
1288
1291
|
follow_up: boolean;
|
|
1289
1292
|
steer_workflow_runs: boolean;
|
|
1293
|
+
said?: boolean;
|
|
1290
1294
|
};
|
|
1291
1295
|
timeline: {
|
|
1292
1296
|
long_poll: boolean;
|
|
@@ -1350,6 +1354,12 @@ export type Features = {
|
|
|
1350
1354
|
signing: "standard-webhooks/v1";
|
|
1351
1355
|
at_rest: "sealed";
|
|
1352
1356
|
};
|
|
1357
|
+
workspaces?: {
|
|
1358
|
+
header: "AgentRun-Workspace";
|
|
1359
|
+
enforced: boolean;
|
|
1360
|
+
required_for_tokens: boolean;
|
|
1361
|
+
routes: Array<string>;
|
|
1362
|
+
};
|
|
1353
1363
|
api_keys?: {
|
|
1354
1364
|
routes: boolean;
|
|
1355
1365
|
limit: number;
|
|
@@ -2810,7 +2820,7 @@ export type WriteHomeFileResponse = {
|
|
|
2810
2820
|
export type GetLearningCorrectionsResponse = {
|
|
2811
2821
|
text: string;
|
|
2812
2822
|
etag: string;
|
|
2813
|
-
cap_bytes:
|
|
2823
|
+
cap_bytes: 8192;
|
|
2814
2824
|
};
|
|
2815
2825
|
/** The agent's cost per run, run after run: its own cost, what learning added and the path it took (GET /agents/{agent_id}/learning/cost). */
|
|
2816
2826
|
export interface GetLearningCostParams {
|
|
@@ -3078,7 +3088,7 @@ export interface PutLearningCorrectionsParams {
|
|
|
3078
3088
|
export type PutLearningCorrectionsResponse = {
|
|
3079
3089
|
text: string;
|
|
3080
3090
|
etag: string;
|
|
3081
|
-
cap_bytes:
|
|
3091
|
+
cap_bytes: 8192;
|
|
3082
3092
|
};
|
|
3083
3093
|
/** Start Connect GitHub: the app-manifest form the console posts to GitHub (POST /integrations/github/connect). */
|
|
3084
3094
|
export type ConnectGitHubBody = {
|
|
@@ -3432,6 +3442,24 @@ export type GetModelGatewayResponse = {
|
|
|
3432
3442
|
};
|
|
3433
3443
|
problem: string | null;
|
|
3434
3444
|
};
|
|
3445
|
+
/** The prices this server meters computer time and browser time at, with where each comes from (GET /settings/prices). */
|
|
3446
|
+
export type GetPricesResponse = {
|
|
3447
|
+
compute: Array<{
|
|
3448
|
+
provider: string;
|
|
3449
|
+
resource: "vcpu" | "memory" | "gpu" | "disk";
|
|
3450
|
+
gpu_type: string | null;
|
|
3451
|
+
unit: "vcpu_second" | "gib_second" | "gpu_second" | "gb_month";
|
|
3452
|
+
usd: string | null;
|
|
3453
|
+
source: "setting" | "list" | "unpriced";
|
|
3454
|
+
}>;
|
|
3455
|
+
browser: Array<{
|
|
3456
|
+
provider: string;
|
|
3457
|
+
unit: "hour";
|
|
3458
|
+
usd: string | null;
|
|
3459
|
+
minimum_s: number;
|
|
3460
|
+
source: "setting" | "list" | "unpriced";
|
|
3461
|
+
}>;
|
|
3462
|
+
};
|
|
3435
3463
|
/** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
|
|
3436
3464
|
export interface GetSuggestionParams {
|
|
3437
3465
|
name?: string;
|
|
@@ -5028,6 +5056,9 @@ export type GetRunLearningResponse = {
|
|
|
5028
5056
|
detail: string | null;
|
|
5029
5057
|
at: string;
|
|
5030
5058
|
seed: string | null;
|
|
5059
|
+
seed_failed: "unreadable" | "not_copied" | "other_disk" | null;
|
|
5060
|
+
seed_waited: "ended" | "timed_out" | null;
|
|
5061
|
+
learned_chars: number;
|
|
5031
5062
|
merged: string | null;
|
|
5032
5063
|
workflows: Array<{
|
|
5033
5064
|
file: string;
|
|
@@ -5035,6 +5066,7 @@ export type GetRunLearningResponse = {
|
|
|
5035
5066
|
pending?: true;
|
|
5036
5067
|
}>;
|
|
5037
5068
|
corrections: number;
|
|
5069
|
+
dropped_lines: number;
|
|
5038
5070
|
problems: Array<{
|
|
5039
5071
|
rule: string;
|
|
5040
5072
|
path?: string;
|
|
@@ -5273,7 +5305,7 @@ export type GetRunUsageResponse = {
|
|
|
5273
5305
|
billable: boolean;
|
|
5274
5306
|
}> | null;
|
|
5275
5307
|
infra_usd: number | null;
|
|
5276
|
-
reason: "running" | "not_booked" |
|
|
5308
|
+
reason: "running" | "not_booked" | null;
|
|
5277
5309
|
};
|
|
5278
5310
|
/** Complete a backend SDK task (POST /sdk-runs/{run_id}/complete). */
|
|
5279
5311
|
export type CompleteSdkRunBody = {
|
|
@@ -5791,6 +5823,12 @@ export type GetTemplateResponse = {
|
|
|
5791
5823
|
dropped: Array<string>;
|
|
5792
5824
|
note: string | null;
|
|
5793
5825
|
} | null;
|
|
5826
|
+
model_tiers_here: {
|
|
5827
|
+
harness: string;
|
|
5828
|
+
fast: string | null;
|
|
5829
|
+
strong: string | null;
|
|
5830
|
+
note: string | null;
|
|
5831
|
+
};
|
|
5794
5832
|
category: "engineering" | "security" | "sales" | "marketing" | "research" | "finance" | "operations" | "compliance" | "personal" | null;
|
|
5795
5833
|
tags: Array<string>;
|
|
5796
5834
|
mcp: Array<{
|
|
@@ -5896,6 +5934,12 @@ export type ImportTemplateResponse = {
|
|
|
5896
5934
|
dropped: Array<string>;
|
|
5897
5935
|
note: string | null;
|
|
5898
5936
|
} | null;
|
|
5937
|
+
model_tiers_here: {
|
|
5938
|
+
harness: string;
|
|
5939
|
+
fast: string | null;
|
|
5940
|
+
strong: string | null;
|
|
5941
|
+
note: string | null;
|
|
5942
|
+
};
|
|
5899
5943
|
category: "engineering" | "security" | "sales" | "marketing" | "research" | "finance" | "operations" | "compliance" | "personal" | null;
|
|
5900
5944
|
tags: Array<string>;
|
|
5901
5945
|
mcp: Array<{
|
|
@@ -5994,6 +6038,12 @@ export type ListTemplatesResponse = {
|
|
|
5994
6038
|
dropped: Array<string>;
|
|
5995
6039
|
note: string | null;
|
|
5996
6040
|
} | null;
|
|
6041
|
+
model_tiers_here: {
|
|
6042
|
+
harness: string;
|
|
6043
|
+
fast: string | null;
|
|
6044
|
+
strong: string | null;
|
|
6045
|
+
note: string | null;
|
|
6046
|
+
};
|
|
5997
6047
|
category: "engineering" | "security" | "sales" | "marketing" | "research" | "finance" | "operations" | "compliance" | "personal" | null;
|
|
5998
6048
|
tags: Array<string>;
|
|
5999
6049
|
mcp: Array<{
|
|
@@ -7434,6 +7484,11 @@ export type GetWrappedResponse = {
|
|
|
7434
7484
|
};
|
|
7435
7485
|
unpriced_breaks: number;
|
|
7436
7486
|
} | null;
|
|
7487
|
+
secrets: {
|
|
7488
|
+
runs: number;
|
|
7489
|
+
runs_holding: number;
|
|
7490
|
+
removed: number;
|
|
7491
|
+
} | null;
|
|
7437
7492
|
};
|
|
7438
7493
|
/** Each operation as the runtime sends it, by operationId. */
|
|
7439
7494
|
export declare const OPERATIONS: Readonly<Record<string, Operation>>;
|
|
@@ -7632,6 +7687,8 @@ export declare function resources(call: Call): {
|
|
|
7632
7687
|
getLocalModel: (options?: RequestOptions) => Promise<GetLocalModelResponse>;
|
|
7633
7688
|
/** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
|
|
7634
7689
|
getModelGateway: (options?: RequestOptions) => Promise<GetModelGatewayResponse>;
|
|
7690
|
+
/** The prices this server meters computer time and browser time at, with where each comes from (GET /settings/prices). */
|
|
7691
|
+
getPrices: (options?: RequestOptions) => Promise<GetPricesResponse>;
|
|
7635
7692
|
/** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
|
|
7636
7693
|
getSuggestion: (suggestionId: string, params?: GetSuggestionParams, options?: RequestOptions) => Promise<GetSuggestionResponse>;
|
|
7637
7694
|
/** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
|
|
@@ -88,6 +88,7 @@ export const OPERATIONS = {
|
|
|
88
88
|
getGitHubConnection: { "method": "GET", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
89
89
|
getLocalModel: { "method": "GET", "path": "/settings/local-model", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
90
90
|
getModelGateway: { "method": "GET", "path": "/settings/model-gateway", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
91
|
+
getPrices: { "method": "GET", "path": "/settings/prices", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
91
92
|
getSuggestion: { "method": "GET", "path": "/suggestions/{suggestion_id}", "pathParams": ["suggestion_id"], "multiSegment": [], "query": ["name"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
92
93
|
getWorkspaceArchil: { "method": "GET", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
93
94
|
gitHubCallback: { "method": "GET", "path": "/integrations/github/callback", "pathParams": [], "multiSegment": [], "query": ["code", "state"], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -410,6 +411,8 @@ export function resources(call) {
|
|
|
410
411
|
getLocalModel: (options) => call("getLocalModel", [], undefined, undefined, options),
|
|
411
412
|
/** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
|
|
412
413
|
getModelGateway: (options) => call("getModelGateway", [], undefined, undefined, options),
|
|
414
|
+
/** The prices this server meters computer time and browser time at, with where each comes from (GET /settings/prices). */
|
|
415
|
+
getPrices: (options) => call("getPrices", [], undefined, undefined, options),
|
|
413
416
|
/** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
|
|
414
417
|
getSuggestion: (suggestionId, params, options) => call("getSuggestion", [suggestionId], undefined, params, options),
|
|
415
418
|
/** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcha/agentrun-client",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.65",
|
|
4
4
|
"description": "A typed TypeScript client for a self-hosted AgentRun server: a method per operation of its API, typed from its OpenAPI document, with waiting for a run and following its timeline. No dependencies; fetch only.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentrun",
|
|
@@ -83,6 +83,6 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@parcha/agentrun-dsl": "0.1.0-beta.
|
|
86
|
+
"@parcha/agentrun-dsl": "0.1.0-beta.65"
|
|
87
87
|
}
|
|
88
88
|
}
|