@parcha/agentrun-client 0.1.0-beta.60 → 0.1.0-beta.61
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.
|
@@ -3365,6 +3365,44 @@ export type GetGitHubConnectionResponse = {
|
|
|
3365
3365
|
account: string;
|
|
3366
3366
|
}>;
|
|
3367
3367
|
};
|
|
3368
|
+
/** This machine, its Ollama, the free local model recommended for them, and the pull here (GET /settings/local-model). */
|
|
3369
|
+
export type GetLocalModelResponse = {
|
|
3370
|
+
machine: {
|
|
3371
|
+
platform: string;
|
|
3372
|
+
arch: string;
|
|
3373
|
+
ram_bytes: number;
|
|
3374
|
+
gpu: {
|
|
3375
|
+
kind: "apple";
|
|
3376
|
+
unified: true;
|
|
3377
|
+
} | {
|
|
3378
|
+
kind: "nvidia";
|
|
3379
|
+
name: string;
|
|
3380
|
+
memory_bytes: number;
|
|
3381
|
+
} | {
|
|
3382
|
+
kind: "unknown";
|
|
3383
|
+
};
|
|
3384
|
+
};
|
|
3385
|
+
ollama: {
|
|
3386
|
+
asked: boolean;
|
|
3387
|
+
reachable: boolean;
|
|
3388
|
+
version: string | null;
|
|
3389
|
+
};
|
|
3390
|
+
recommended: {
|
|
3391
|
+
tag: string | null;
|
|
3392
|
+
why: string;
|
|
3393
|
+
pulled: boolean;
|
|
3394
|
+
};
|
|
3395
|
+
pull: null | {
|
|
3396
|
+
tag: string;
|
|
3397
|
+
state: "pulling" | "done" | "failed";
|
|
3398
|
+
status: string;
|
|
3399
|
+
completed_bytes: number;
|
|
3400
|
+
total_bytes: number;
|
|
3401
|
+
error?: string;
|
|
3402
|
+
};
|
|
3403
|
+
can_pull: boolean;
|
|
3404
|
+
refused: string | null;
|
|
3405
|
+
};
|
|
3368
3406
|
/** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
|
|
3369
3407
|
export type GetModelGatewayResponse = {
|
|
3370
3408
|
source: "env" | "console" | null;
|
|
@@ -3793,6 +3831,47 @@ export type ListSuggestionsResponse = {
|
|
|
3793
3831
|
};
|
|
3794
3832
|
}>;
|
|
3795
3833
|
};
|
|
3834
|
+
/** Pull a recommended model into the Ollama here (POST /settings/local-model/pull). */
|
|
3835
|
+
export type PullLocalModelBody = {
|
|
3836
|
+
tag: "inkling-2-mini" | "qwen3:8b" | "qwen3:4b";
|
|
3837
|
+
};
|
|
3838
|
+
export type PullLocalModelResponse = {
|
|
3839
|
+
machine: {
|
|
3840
|
+
platform: string;
|
|
3841
|
+
arch: string;
|
|
3842
|
+
ram_bytes: number;
|
|
3843
|
+
gpu: {
|
|
3844
|
+
kind: "apple";
|
|
3845
|
+
unified: true;
|
|
3846
|
+
} | {
|
|
3847
|
+
kind: "nvidia";
|
|
3848
|
+
name: string;
|
|
3849
|
+
memory_bytes: number;
|
|
3850
|
+
} | {
|
|
3851
|
+
kind: "unknown";
|
|
3852
|
+
};
|
|
3853
|
+
};
|
|
3854
|
+
ollama: {
|
|
3855
|
+
asked: boolean;
|
|
3856
|
+
reachable: boolean;
|
|
3857
|
+
version: string | null;
|
|
3858
|
+
};
|
|
3859
|
+
recommended: {
|
|
3860
|
+
tag: string | null;
|
|
3861
|
+
why: string;
|
|
3862
|
+
pulled: boolean;
|
|
3863
|
+
};
|
|
3864
|
+
pull: null | {
|
|
3865
|
+
tag: string;
|
|
3866
|
+
state: "pulling" | "done" | "failed";
|
|
3867
|
+
status: string;
|
|
3868
|
+
completed_bytes: number;
|
|
3869
|
+
total_bytes: number;
|
|
3870
|
+
error?: string;
|
|
3871
|
+
};
|
|
3872
|
+
can_pull: boolean;
|
|
3873
|
+
refused: string | null;
|
|
3874
|
+
};
|
|
3796
3875
|
/** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
|
|
3797
3876
|
export type PutWorkspaceArchilBody = {
|
|
3798
3877
|
region: string;
|
|
@@ -7518,6 +7597,8 @@ export declare function resources(call: Call): {
|
|
|
7518
7597
|
getEmailAccount: (options?: RequestOptions) => Promise<GetEmailAccountResponse>;
|
|
7519
7598
|
/** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
|
|
7520
7599
|
getGitHubConnection: (options?: RequestOptions) => Promise<GetGitHubConnectionResponse>;
|
|
7600
|
+
/** This machine, its Ollama, the free local model recommended for them, and the pull here (GET /settings/local-model). */
|
|
7601
|
+
getLocalModel: (options?: RequestOptions) => Promise<GetLocalModelResponse>;
|
|
7521
7602
|
/** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
|
|
7522
7603
|
getModelGateway: (options?: RequestOptions) => Promise<GetModelGatewayResponse>;
|
|
7523
7604
|
/** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
|
|
@@ -7546,6 +7627,8 @@ export declare function resources(call: Call): {
|
|
|
7546
7627
|
listRunningComputers: (options?: RequestOptions) => Promise<ListRunningComputersResponse>;
|
|
7547
7628
|
/** Suggested agents: each repository's scan and the agents it suggests (GET /suggestions). */
|
|
7548
7629
|
listSuggestions: (params?: ListSuggestionsParams, options?: RequestOptions) => Promise<ListSuggestionsResponse>;
|
|
7630
|
+
/** Pull a recommended model into the Ollama here (POST /settings/local-model/pull). */
|
|
7631
|
+
pullLocalModel: (body: PullLocalModelBody, options?: RequestOptions) => Promise<PullLocalModelResponse>;
|
|
7549
7632
|
/** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
|
|
7550
7633
|
putWorkspaceArchil: (body: PutWorkspaceArchilBody, options?: RequestOptions) => Promise<PutWorkspaceArchilResponse>;
|
|
7551
7634
|
/** 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.
|
|
3
|
+
"version": "0.1.0-beta.61",
|
|
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.61"
|
|
87
87
|
}
|
|
88
88
|
}
|