@parcha/agentrun-client 0.1.0-beta.64 → 0.1.0-beta.66

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";
@@ -580,6 +582,7 @@ export type Cost = {
580
582
  };
581
583
  learning_usd?: number | null;
582
584
  tools_usd?: number | null;
585
+ billable_usd?: number | null;
583
586
  all_in_usd?: number | null;
584
587
  compile_usd?: number | null;
585
588
  followup_usd?: number | null;
@@ -1352,6 +1355,12 @@ export type Features = {
1352
1355
  signing: "standard-webhooks/v1";
1353
1356
  at_rest: "sealed";
1354
1357
  };
1358
+ workspaces?: {
1359
+ header: "AgentRun-Workspace";
1360
+ enforced: boolean;
1361
+ required_for_tokens: boolean;
1362
+ routes: Array<string>;
1363
+ };
1355
1364
  api_keys?: {
1356
1365
  routes: boolean;
1357
1366
  limit: number;
@@ -1842,7 +1851,7 @@ export type ListLearningPromotionsResponse = {
1842
1851
  fields?: Array<string>;
1843
1852
  expected?: Array<{
1844
1853
  field: string;
1845
- known: "grade" | "unknown" | "contradicts";
1854
+ known: "grade" | "correction" | "unknown" | "contradicts";
1846
1855
  value?: string;
1847
1856
  }>;
1848
1857
  }>;
@@ -1885,7 +1894,7 @@ export type ListLearningPromotionsResponse = {
1885
1894
  fields?: Array<string>;
1886
1895
  expected?: Array<{
1887
1896
  field: string;
1888
- known: "grade" | "unknown" | "contradicts";
1897
+ known: "grade" | "correction" | "unknown" | "contradicts";
1889
1898
  value?: string;
1890
1899
  }>;
1891
1900
  }>;
@@ -2003,7 +2012,7 @@ export type ListLearningPromotionsResponse = {
2003
2012
  fields?: Array<string>;
2004
2013
  expected?: Array<{
2005
2014
  field: string;
2006
- known: "grade" | "unknown" | "contradicts";
2015
+ known: "grade" | "correction" | "unknown" | "contradicts";
2007
2016
  value?: string;
2008
2017
  }>;
2009
2018
  }>;
@@ -2046,7 +2055,7 @@ export type ListLearningPromotionsResponse = {
2046
2055
  fields?: Array<string>;
2047
2056
  expected?: Array<{
2048
2057
  field: string;
2049
- known: "grade" | "unknown" | "contradicts";
2058
+ known: "grade" | "correction" | "unknown" | "contradicts";
2050
2059
  value?: string;
2051
2060
  }>;
2052
2061
  }>;
@@ -3326,6 +3335,7 @@ export type GetClaudeLoginResponse = {
3326
3335
  place: "agentrun" | "machine";
3327
3336
  command: string;
3328
3337
  can_start: boolean;
3338
+ start_off?: string;
3329
3339
  refused?: string;
3330
3340
  account?: {
3331
3341
  method?: string;
@@ -3434,6 +3444,24 @@ export type GetModelGatewayResponse = {
3434
3444
  };
3435
3445
  problem: string | null;
3436
3446
  };
3447
+ /** The prices this server meters computer time and browser time at, with where each comes from (GET /settings/prices). */
3448
+ export type GetPricesResponse = {
3449
+ compute: Array<{
3450
+ provider: string;
3451
+ resource: "vcpu" | "memory" | "gpu" | "disk";
3452
+ gpu_type: string | null;
3453
+ unit: "vcpu_second" | "gib_second" | "gpu_second" | "gb_month";
3454
+ usd: string | null;
3455
+ source: "setting" | "list" | "unpriced";
3456
+ }>;
3457
+ browser: Array<{
3458
+ provider: string;
3459
+ unit: "hour";
3460
+ usd: string | null;
3461
+ minimum_s: number;
3462
+ source: "setting" | "list" | "unpriced";
3463
+ }>;
3464
+ };
3437
3465
  /** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
3438
3466
  export interface GetSuggestionParams {
3439
3467
  name?: string;
@@ -4229,6 +4257,7 @@ export type SignOutClaudeLoginResponse = {
4229
4257
  place: "agentrun" | "machine";
4230
4258
  command: string;
4231
4259
  can_start: boolean;
4260
+ start_off?: string;
4232
4261
  refused?: string;
4233
4262
  account?: {
4234
4263
  method?: string;
@@ -4264,6 +4293,7 @@ export type StartClaudeLoginResponse = {
4264
4293
  place: "agentrun" | "machine";
4265
4294
  command: string;
4266
4295
  can_start: boolean;
4296
+ start_off?: string;
4267
4297
  refused?: string;
4268
4298
  account?: {
4269
4299
  method?: string;
@@ -4366,6 +4396,7 @@ export type TurnOffClaudeLoginResponse = {
4366
4396
  place: "agentrun" | "machine";
4367
4397
  command: string;
4368
4398
  can_start: boolean;
4399
+ start_off?: string;
4369
4400
  refused?: string;
4370
4401
  account?: {
4371
4402
  method?: string;
@@ -4399,6 +4430,7 @@ export type TurnOnClaudeLoginResponse = {
4399
4430
  place: "agentrun" | "machine";
4400
4431
  command: string;
4401
4432
  can_start: boolean;
4433
+ start_off?: string;
4402
4434
  refused?: string;
4403
4435
  account?: {
4404
4436
  method?: string;
@@ -5224,6 +5256,7 @@ export type GetRunUsageResponse = {
5224
5256
  basis: "reported" | "estimate" | "unpriced";
5225
5257
  attempt: number | null;
5226
5258
  billable: boolean;
5259
+ absorbed?: "create_race";
5227
5260
  usd: number | null;
5228
5261
  so_far_usd?: number;
5229
5262
  unpriced?: number;
@@ -5279,7 +5312,7 @@ export type GetRunUsageResponse = {
5279
5312
  billable: boolean;
5280
5313
  }> | null;
5281
5314
  infra_usd: number | null;
5282
- reason: "running" | "not_booked" | "reopened" | null;
5315
+ reason: "running" | "not_booked" | null;
5283
5316
  };
5284
5317
  /** Complete a backend SDK task (POST /sdk-runs/{run_id}/complete). */
5285
5318
  export type CompleteSdkRunBody = {
@@ -7661,6 +7694,8 @@ export declare function resources(call: Call): {
7661
7694
  getLocalModel: (options?: RequestOptions) => Promise<GetLocalModelResponse>;
7662
7695
  /** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
7663
7696
  getModelGateway: (options?: RequestOptions) => Promise<GetModelGatewayResponse>;
7697
+ /** The prices this server meters computer time and browser time at, with where each comes from (GET /settings/prices). */
7698
+ getPrices: (options?: RequestOptions) => Promise<GetPricesResponse>;
7664
7699
  /** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
7665
7700
  getSuggestion: (suggestionId: string, params?: GetSuggestionParams, options?: RequestOptions) => Promise<GetSuggestionResponse>;
7666
7701
  /** 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.64",
3
+ "version": "0.1.0-beta.66",
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.64"
86
+ "@parcha/agentrun-dsl": "0.1.0-beta.66"
87
87
  }
88
88
  }