@parcha/agentrun-client 0.1.0-beta.43 → 0.1.0-beta.44
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.
- package/dist/operations.generated.d.ts +114 -5
- package/package.json +2 -2
|
@@ -157,7 +157,7 @@ export type DefinitionInput = {
|
|
|
157
157
|
strong?: string;
|
|
158
158
|
};
|
|
159
159
|
thinking?: "low" | "medium" | "high" | "xhigh" | "max";
|
|
160
|
-
harness?:
|
|
160
|
+
harness?: string;
|
|
161
161
|
place?: {
|
|
162
162
|
mode: "runner";
|
|
163
163
|
} | {
|
|
@@ -476,6 +476,8 @@ export type Cost = {
|
|
|
476
476
|
so_far_usd?: number;
|
|
477
477
|
unpriced?: number;
|
|
478
478
|
upper_bound?: true;
|
|
479
|
+
learning_usd?: number | null;
|
|
480
|
+
all_in_usd?: number | null;
|
|
479
481
|
plan?: {
|
|
480
482
|
requests: number;
|
|
481
483
|
tokens: number;
|
|
@@ -547,6 +549,7 @@ export type RunCreateInline = {
|
|
|
547
549
|
effort?: Effort;
|
|
548
550
|
max_cost_usd?: number;
|
|
549
551
|
quote_id?: string;
|
|
552
|
+
model_key?: string;
|
|
550
553
|
mcp_auth?: Record<string, {
|
|
551
554
|
headers: Record<string, string>;
|
|
552
555
|
}>;
|
|
@@ -753,6 +756,7 @@ export type Run = {
|
|
|
753
756
|
firing_key: string;
|
|
754
757
|
} | null;
|
|
755
758
|
audit_of?: string | null;
|
|
759
|
+
path?: "agent" | "handed_back" | "workflow" | "replay" | "audit" | null;
|
|
756
760
|
};
|
|
757
761
|
export type RunResult = {
|
|
758
762
|
output: unknown;
|
|
@@ -774,6 +778,7 @@ export type RunFile = {
|
|
|
774
778
|
};
|
|
775
779
|
export type MessageCreate = {
|
|
776
780
|
content: string;
|
|
781
|
+
model_key?: string;
|
|
777
782
|
mcp_auth?: Record<string, {
|
|
778
783
|
headers: Record<string, string>;
|
|
779
784
|
}>;
|
|
@@ -792,6 +797,7 @@ export type RunCreate = {
|
|
|
792
797
|
effort?: Effort;
|
|
793
798
|
max_cost_usd?: number;
|
|
794
799
|
quote_id?: string;
|
|
800
|
+
model_key?: string;
|
|
795
801
|
mcp_auth?: Record<string, {
|
|
796
802
|
headers: Record<string, string>;
|
|
797
803
|
}>;
|
|
@@ -952,7 +958,13 @@ export type Capabilities = {
|
|
|
952
958
|
allow: Array<string>;
|
|
953
959
|
};
|
|
954
960
|
harnesses?: Array<{
|
|
955
|
-
id:
|
|
961
|
+
id: string;
|
|
962
|
+
label: string;
|
|
963
|
+
promises: {
|
|
964
|
+
resume: "exact" | "load" | "restart";
|
|
965
|
+
tool_gate: "every_call" | "permission" | "config";
|
|
966
|
+
billing: "proxy" | "plan";
|
|
967
|
+
};
|
|
956
968
|
available: boolean;
|
|
957
969
|
free_models: Array<{
|
|
958
970
|
id: string;
|
|
@@ -979,7 +991,7 @@ export type Capabilities = {
|
|
|
979
991
|
available: boolean;
|
|
980
992
|
reason?: string;
|
|
981
993
|
missing?: Array<string>;
|
|
982
|
-
harnesses: Array<
|
|
994
|
+
harnesses: Array<string>;
|
|
983
995
|
providers?: Array<string>;
|
|
984
996
|
provider?: string;
|
|
985
997
|
default_provider?: string;
|
|
@@ -1510,6 +1522,52 @@ export type ListLearningPromotionsResponse = {
|
|
|
1510
1522
|
} | null;
|
|
1511
1523
|
audits_off: string | null;
|
|
1512
1524
|
not_auditable: number;
|
|
1525
|
+
champion: {
|
|
1526
|
+
digest: string;
|
|
1527
|
+
commit: string | null;
|
|
1528
|
+
nodes: Array<{
|
|
1529
|
+
path: string;
|
|
1530
|
+
kind: string;
|
|
1531
|
+
label: string;
|
|
1532
|
+
tier: "fast" | "agent" | null;
|
|
1533
|
+
checks: Array<{
|
|
1534
|
+
on: "when" | "until";
|
|
1535
|
+
predicate: Record<string, unknown>;
|
|
1536
|
+
}>;
|
|
1537
|
+
}> | null;
|
|
1538
|
+
check: {
|
|
1539
|
+
compile_after: number;
|
|
1540
|
+
agree_min: number;
|
|
1541
|
+
alone_min: number;
|
|
1542
|
+
attempt: 1 | 2;
|
|
1543
|
+
n?: number;
|
|
1544
|
+
agreed?: number;
|
|
1545
|
+
alone?: number;
|
|
1546
|
+
of?: Array<string>;
|
|
1547
|
+
cost_usd?: number | null;
|
|
1548
|
+
outcomes?: {
|
|
1549
|
+
answered: number;
|
|
1550
|
+
handed_back: number;
|
|
1551
|
+
failed: number;
|
|
1552
|
+
skipped_write: number;
|
|
1553
|
+
};
|
|
1554
|
+
unstarted?: number;
|
|
1555
|
+
skipped_tools?: Array<{
|
|
1556
|
+
tool: string;
|
|
1557
|
+
inputs: number;
|
|
1558
|
+
no_read_only_hint: boolean;
|
|
1559
|
+
}>;
|
|
1560
|
+
disagreements?: Array<{
|
|
1561
|
+
run: string;
|
|
1562
|
+
input: string;
|
|
1563
|
+
agent: string | null;
|
|
1564
|
+
draft?: string;
|
|
1565
|
+
escalated?: string;
|
|
1566
|
+
failed?: true;
|
|
1567
|
+
}>;
|
|
1568
|
+
stopped?: true;
|
|
1569
|
+
} | null;
|
|
1570
|
+
} | null;
|
|
1513
1571
|
}>;
|
|
1514
1572
|
};
|
|
1515
1573
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
@@ -2113,6 +2171,50 @@ export type GetLearningCostResponse = {
|
|
|
2113
2171
|
agree_min: number;
|
|
2114
2172
|
} | null;
|
|
2115
2173
|
};
|
|
2174
|
+
bill: {
|
|
2175
|
+
baseline: {
|
|
2176
|
+
runs: number;
|
|
2177
|
+
mean_usd: number;
|
|
2178
|
+
} | null;
|
|
2179
|
+
promoted: {
|
|
2180
|
+
n: number;
|
|
2181
|
+
run_id: string;
|
|
2182
|
+
at: string;
|
|
2183
|
+
} | null;
|
|
2184
|
+
points: Array<{
|
|
2185
|
+
n: number;
|
|
2186
|
+
run_id: string;
|
|
2187
|
+
actual_usd: number;
|
|
2188
|
+
agent_usd: number | null;
|
|
2189
|
+
}>;
|
|
2190
|
+
break_even: {
|
|
2191
|
+
n: number;
|
|
2192
|
+
run_id: string;
|
|
2193
|
+
} | null;
|
|
2194
|
+
gap_usd: number | null;
|
|
2195
|
+
withheld: number;
|
|
2196
|
+
booked_usd: number;
|
|
2197
|
+
revisions: Array<{
|
|
2198
|
+
workflow: string;
|
|
2199
|
+
digest: string;
|
|
2200
|
+
compile_usd: number | null;
|
|
2201
|
+
check_usd: number | null;
|
|
2202
|
+
spend_usd: number | null;
|
|
2203
|
+
k: number;
|
|
2204
|
+
served: number;
|
|
2205
|
+
attributed_usd: number | null;
|
|
2206
|
+
unattributed_usd: number | null;
|
|
2207
|
+
state: "checking" | "serving" | "stopped";
|
|
2208
|
+
}>;
|
|
2209
|
+
unattributed_usd: number | null;
|
|
2210
|
+
holds: Array<{
|
|
2211
|
+
n: number | null;
|
|
2212
|
+
at: string;
|
|
2213
|
+
workflow: string;
|
|
2214
|
+
by: "audit" | "check" | "dsl";
|
|
2215
|
+
reason: string;
|
|
2216
|
+
}>;
|
|
2217
|
+
};
|
|
2116
2218
|
};
|
|
2117
2219
|
/** The agent's eval records: the latest, and every one kept, newest first (GET /agents/{agent_id}/learning/evals). */
|
|
2118
2220
|
export type ListLearningEvalsResponse = {
|
|
@@ -2535,6 +2637,7 @@ export type ListComposioEventsResponse = {
|
|
|
2535
2637
|
description: string;
|
|
2536
2638
|
config: Record<string, unknown>;
|
|
2537
2639
|
polled: boolean;
|
|
2640
|
+
sealed: Array<string>;
|
|
2538
2641
|
instructions?: string;
|
|
2539
2642
|
}>;
|
|
2540
2643
|
};
|
|
@@ -3717,9 +3820,9 @@ export type StartSdkRunResponse = {
|
|
|
3717
3820
|
export type GetCapabilitiesResponse = Capabilities;
|
|
3718
3821
|
/** Whether this server can serve (GET /health). */
|
|
3719
3822
|
export type GetHealthResponse = {
|
|
3720
|
-
status: "ok" | "failing";
|
|
3823
|
+
status: "ok" | "failing" | "warming";
|
|
3721
3824
|
checks: {
|
|
3722
|
-
store: "ok" | "does_not_open";
|
|
3825
|
+
store: "ok" | "does_not_open" | "opening";
|
|
3723
3826
|
disk: "ok" | "below_floor" | "cannot_check";
|
|
3724
3827
|
};
|
|
3725
3828
|
};
|
|
@@ -4268,6 +4371,7 @@ export type CreateTriggerBody = {
|
|
|
4268
4371
|
}>;
|
|
4269
4372
|
}>;
|
|
4270
4373
|
instance_id?: string;
|
|
4374
|
+
sealed_config?: Array<string>;
|
|
4271
4375
|
hook?: string;
|
|
4272
4376
|
move_subscription?: true;
|
|
4273
4377
|
} | {
|
|
@@ -4399,6 +4503,7 @@ export type CreateTriggerResponse = {
|
|
|
4399
4503
|
}>;
|
|
4400
4504
|
}>;
|
|
4401
4505
|
instance_id?: string;
|
|
4506
|
+
sealed_config?: Array<string>;
|
|
4402
4507
|
hook?: string;
|
|
4403
4508
|
move_subscription?: true;
|
|
4404
4509
|
} | {
|
|
@@ -4629,6 +4734,7 @@ export type GetTriggerResponse = {
|
|
|
4629
4734
|
}>;
|
|
4630
4735
|
}>;
|
|
4631
4736
|
instance_id?: string;
|
|
4737
|
+
sealed_config?: Array<string>;
|
|
4632
4738
|
hook?: string;
|
|
4633
4739
|
move_subscription?: true;
|
|
4634
4740
|
} | {
|
|
@@ -4809,6 +4915,7 @@ export type ListTriggersResponse = {
|
|
|
4809
4915
|
}>;
|
|
4810
4916
|
}>;
|
|
4811
4917
|
instance_id?: string;
|
|
4918
|
+
sealed_config?: Array<string>;
|
|
4812
4919
|
hook?: string;
|
|
4813
4920
|
move_subscription?: true;
|
|
4814
4921
|
} | {
|
|
@@ -4993,6 +5100,7 @@ export type UpdateTriggerBody = {
|
|
|
4993
5100
|
}>;
|
|
4994
5101
|
}>;
|
|
4995
5102
|
instance_id?: string;
|
|
5103
|
+
sealed_config?: Array<string>;
|
|
4996
5104
|
hook?: string;
|
|
4997
5105
|
move_subscription?: true;
|
|
4998
5106
|
} | {
|
|
@@ -5121,6 +5229,7 @@ export type UpdateTriggerResponse = {
|
|
|
5121
5229
|
}>;
|
|
5122
5230
|
}>;
|
|
5123
5231
|
instance_id?: string;
|
|
5232
|
+
sealed_config?: Array<string>;
|
|
5124
5233
|
hook?: string;
|
|
5125
5234
|
move_subscription?: true;
|
|
5126
5235
|
} | {
|
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.44",
|
|
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",
|
|
@@ -75,6 +75,6 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@parcha/agentrun-dsl": "0.1.0-beta.
|
|
78
|
+
"@parcha/agentrun-dsl": "0.1.0-beta.44"
|
|
79
79
|
}
|
|
80
80
|
}
|