@parcha/agentrun-client 0.1.0-beta.60 → 0.1.0-beta.62

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.
@@ -63,6 +63,7 @@ export type Agent = {
63
63
  provider_from?: "agent" | "server" | "default";
64
64
  default_provider?: string;
65
65
  resolved?: string;
66
+ ceiling?: string;
66
67
  permission: "allow" | "ask" | "deny";
67
68
  permission_from: "agent" | "server" | "default" | "unattended";
68
69
  default_permission: "allow" | "ask" | "deny";
@@ -176,7 +177,7 @@ export type DefinitionInput = {
176
177
  mode: "runner";
177
178
  } | {
178
179
  mode: "sandbox";
179
- box: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "boxd" | "groundbox";
180
+ box: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "render" | "boxd" | "groundbox";
180
181
  };
181
182
  computer?: {
182
183
  kind: "none" | "sandbox" | "desktop" | "phone" | "browser";
@@ -787,7 +788,7 @@ export type Run = {
787
788
  mode: "runner";
788
789
  } | {
789
790
  mode: "sandbox";
790
- box: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "boxd" | "groundbox";
791
+ box: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "render" | "boxd" | "groundbox";
791
792
  };
792
793
  computer?: {
793
794
  kind: "sandbox" | "desktop" | "phone" | "browser";
@@ -1133,7 +1134,7 @@ export type Capabilities = {
1133
1134
  places: {
1134
1135
  modes: Array<"runner" | "sandbox">;
1135
1136
  boxes: Array<{
1136
- id: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "boxd" | "groundbox";
1137
+ id: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "render" | "boxd" | "groundbox";
1137
1138
  available: boolean;
1138
1139
  state: "ready" | "unavailable";
1139
1140
  reason?: string;
@@ -1145,7 +1146,7 @@ export type Capabilities = {
1145
1146
  mode: "runner";
1146
1147
  } | {
1147
1148
  mode: "sandbox";
1148
- box: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "boxd" | "groundbox";
1149
+ box: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "render" | "boxd" | "groundbox";
1149
1150
  } | null;
1150
1151
  default_reason?: string;
1151
1152
  allow: Array<string>;
@@ -1628,6 +1629,7 @@ export type GetAgentResponse = Agent & ({
1628
1629
  provider_from?: "agent" | "server" | "default";
1629
1630
  default_provider?: string;
1630
1631
  resolved?: string;
1632
+ ceiling?: string;
1631
1633
  permission: "allow" | "ask" | "deny";
1632
1634
  permission_from: "agent" | "server" | "default" | "unattended";
1633
1635
  default_permission: "allow" | "ask" | "deny";
@@ -3365,6 +3367,44 @@ export type GetGitHubConnectionResponse = {
3365
3367
  account: string;
3366
3368
  }>;
3367
3369
  };
3370
+ /** This machine, its Ollama, the free local model recommended for them, and the pull here (GET /settings/local-model). */
3371
+ export type GetLocalModelResponse = {
3372
+ machine: {
3373
+ platform: string;
3374
+ arch: string;
3375
+ ram_bytes: number;
3376
+ gpu: {
3377
+ kind: "apple";
3378
+ unified: true;
3379
+ } | {
3380
+ kind: "nvidia";
3381
+ name: string;
3382
+ memory_bytes: number;
3383
+ } | {
3384
+ kind: "unknown";
3385
+ };
3386
+ };
3387
+ ollama: {
3388
+ asked: boolean;
3389
+ reachable: boolean;
3390
+ version: string | null;
3391
+ };
3392
+ recommended: {
3393
+ tag: string | null;
3394
+ why: string;
3395
+ pulled: boolean;
3396
+ };
3397
+ pull: null | {
3398
+ tag: string;
3399
+ state: "pulling" | "done" | "failed";
3400
+ status: string;
3401
+ completed_bytes: number;
3402
+ total_bytes: number;
3403
+ error?: string;
3404
+ };
3405
+ can_pull: boolean;
3406
+ refused: string | null;
3407
+ };
3368
3408
  /** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
3369
3409
  export type GetModelGatewayResponse = {
3370
3410
  source: "env" | "console" | null;
@@ -3793,6 +3833,47 @@ export type ListSuggestionsResponse = {
3793
3833
  };
3794
3834
  }>;
3795
3835
  };
3836
+ /** Pull a recommended model into the Ollama here (POST /settings/local-model/pull). */
3837
+ export type PullLocalModelBody = {
3838
+ tag: "inkling-2-mini" | "qwen3:8b" | "qwen3:4b";
3839
+ };
3840
+ export type PullLocalModelResponse = {
3841
+ machine: {
3842
+ platform: string;
3843
+ arch: string;
3844
+ ram_bytes: number;
3845
+ gpu: {
3846
+ kind: "apple";
3847
+ unified: true;
3848
+ } | {
3849
+ kind: "nvidia";
3850
+ name: string;
3851
+ memory_bytes: number;
3852
+ } | {
3853
+ kind: "unknown";
3854
+ };
3855
+ };
3856
+ ollama: {
3857
+ asked: boolean;
3858
+ reachable: boolean;
3859
+ version: string | null;
3860
+ };
3861
+ recommended: {
3862
+ tag: string | null;
3863
+ why: string;
3864
+ pulled: boolean;
3865
+ };
3866
+ pull: null | {
3867
+ tag: string;
3868
+ state: "pulling" | "done" | "failed";
3869
+ status: string;
3870
+ completed_bytes: number;
3871
+ total_bytes: number;
3872
+ error?: string;
3873
+ };
3874
+ can_pull: boolean;
3875
+ refused: string | null;
3876
+ };
3796
3877
  /** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
3797
3878
  export type PutWorkspaceArchilBody = {
3798
3879
  region: string;
@@ -7324,6 +7405,27 @@ export type GetWrappedResponse = {
7324
7405
  runs: number;
7325
7406
  }>;
7326
7407
  unread_files: number;
7408
+ cache: {
7409
+ runs: number;
7410
+ hit_rate: number | null;
7411
+ breaks: {
7412
+ model: number;
7413
+ idle: number;
7414
+ compaction: number;
7415
+ edited: number;
7416
+ sidechain: number;
7417
+ unknown: number;
7418
+ };
7419
+ extra_cost_usd: {
7420
+ model: number;
7421
+ idle: number;
7422
+ compaction: number;
7423
+ edited: number;
7424
+ sidechain: number;
7425
+ unknown: number;
7426
+ };
7427
+ unpriced_breaks: number;
7428
+ } | null;
7327
7429
  };
7328
7430
  /** Each operation as the runtime sends it, by operationId. */
7329
7431
  export declare const OPERATIONS: Readonly<Record<string, Operation>>;
@@ -7518,6 +7620,8 @@ export declare function resources(call: Call): {
7518
7620
  getEmailAccount: (options?: RequestOptions) => Promise<GetEmailAccountResponse>;
7519
7621
  /** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
7520
7622
  getGitHubConnection: (options?: RequestOptions) => Promise<GetGitHubConnectionResponse>;
7623
+ /** This machine, its Ollama, the free local model recommended for them, and the pull here (GET /settings/local-model). */
7624
+ getLocalModel: (options?: RequestOptions) => Promise<GetLocalModelResponse>;
7521
7625
  /** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
7522
7626
  getModelGateway: (options?: RequestOptions) => Promise<GetModelGatewayResponse>;
7523
7627
  /** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
@@ -7546,6 +7650,8 @@ export declare function resources(call: Call): {
7546
7650
  listRunningComputers: (options?: RequestOptions) => Promise<ListRunningComputersResponse>;
7547
7651
  /** Suggested agents: each repository's scan and the agents it suggests (GET /suggestions). */
7548
7652
  listSuggestions: (params?: ListSuggestionsParams, options?: RequestOptions) => Promise<ListSuggestionsResponse>;
7653
+ /** Pull a recommended model into the Ollama here (POST /settings/local-model/pull). */
7654
+ pullLocalModel: (body: PullLocalModelBody, options?: RequestOptions) => Promise<PullLocalModelResponse>;
7549
7655
  /** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
7550
7656
  putWorkspaceArchil: (body: PutWorkspaceArchilBody, options?: RequestOptions) => Promise<PutWorkspaceArchilResponse>;
7551
7657
  /** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
@@ -86,6 +86,7 @@ export const OPERATIONS = {
86
86
  getClaudeLogin: { "method": "GET", "path": "/settings/claude-login", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
87
87
  getEmailAccount: { "method": "GET", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
88
88
  getGitHubConnection: { "method": "GET", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
89
+ getLocalModel: { "method": "GET", "path": "/settings/local-model", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
89
90
  getModelGateway: { "method": "GET", "path": "/settings/model-gateway", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
90
91
  getSuggestion: { "method": "GET", "path": "/suggestions/{suggestion_id}", "pathParams": ["suggestion_id"], "multiSegment": [], "query": ["name"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
91
92
  getWorkspaceArchil: { "method": "GET", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -102,6 +103,7 @@ export const OPERATIONS = {
102
103
  listMcpServerNames: { "method": "GET", "path": "/settings/mcp-server-names", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
103
104
  listRunningComputers: { "method": "GET", "path": "/computers/running", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
104
105
  listSuggestions: { "method": "GET", "path": "/suggestions", "pathParams": [], "multiSegment": [], "query": ["repo", "status"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
106
+ pullLocalModel: { "method": "POST", "path": "/settings/local-model/pull", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
105
107
  putWorkspaceArchil: { "method": "PUT", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
106
108
  receiveHook_composio: { "method": "POST", "path": "/hooks/composio/{hook}", "pathParams": ["hook"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
107
109
  restoreSuggestion: { "method": "POST", "path": "/suggestions/{suggestion_id}/restore", "pathParams": ["suggestion_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -404,6 +406,8 @@ export function resources(call) {
404
406
  getEmailAccount: (options) => call("getEmailAccount", [], undefined, undefined, options),
405
407
  /** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
406
408
  getGitHubConnection: (options) => call("getGitHubConnection", [], undefined, undefined, options),
409
+ /** This machine, its Ollama, the free local model recommended for them, and the pull here (GET /settings/local-model). */
410
+ getLocalModel: (options) => call("getLocalModel", [], undefined, undefined, options),
407
411
  /** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
408
412
  getModelGateway: (options) => call("getModelGateway", [], undefined, undefined, options),
409
413
  /** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
@@ -432,6 +436,8 @@ export function resources(call) {
432
436
  listRunningComputers: (options) => call("listRunningComputers", [], undefined, undefined, options),
433
437
  /** Suggested agents: each repository's scan and the agents it suggests (GET /suggestions). */
434
438
  listSuggestions: (params, options) => call("listSuggestions", [], undefined, params, options),
439
+ /** Pull a recommended model into the Ollama here (POST /settings/local-model/pull). */
440
+ pullLocalModel: (body, options) => call("pullLocalModel", [], body, undefined, options),
435
441
  /** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
436
442
  putWorkspaceArchil: (body, options) => call("putWorkspaceArchil", [], body, undefined, options),
437
443
  /** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.60",
3
+ "version": "0.1.0-beta.62",
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.60"
86
+ "@parcha/agentrun-dsl": "0.1.0-beta.62"
87
87
  }
88
88
  }