@parcha/agentrun-client 0.1.0-beta.53 → 0.1.0-beta.54

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.
@@ -286,7 +286,7 @@ export type DefinitionInput = {
286
286
  repick?: boolean;
287
287
  repick_max_chars?: number;
288
288
  };
289
- checkout?: "pull_request" | "none";
289
+ checkout?: "pull_request" | "repository" | "none";
290
290
  max_requests?: number;
291
291
  };
292
292
  export type JsonObject = Record<string, unknown>;
@@ -2812,6 +2812,7 @@ export type PutLearningCorrectionsResponse = {
2812
2812
  /** Start Connect GitHub: the app-manifest form the console posts to GitHub (POST /integrations/github/connect). */
2813
2813
  export type ConnectGitHubBody = {
2814
2814
  org?: string;
2815
+ contents?: "read" | "write";
2815
2816
  };
2816
2817
  export type ConnectGitHubResponse = {
2817
2818
  action: string;
@@ -2825,6 +2826,72 @@ export type CreatePairingResponse = {
2825
2826
  expires_at: string;
2826
2827
  runs_refused: string | null;
2827
2828
  };
2829
+ /** Create a suggested agent: a branch with its package and client, the agent made here, and a pull request (POST /suggestions/{suggestion_id}/create). */
2830
+ export type CreateSuggestedAgentBody = {
2831
+ name?: string;
2832
+ };
2833
+ export type CreateSuggestedAgentResponse = {
2834
+ id: string;
2835
+ repo: string;
2836
+ key: string;
2837
+ status: "open" | "created" | "discarded";
2838
+ title: string;
2839
+ summary: string;
2840
+ why: string;
2841
+ impact: "high" | "medium" | "low";
2842
+ evidence: Array<{
2843
+ path: string;
2844
+ line: number;
2845
+ quote: string;
2846
+ url: string;
2847
+ }>;
2848
+ agent: {
2849
+ name: string;
2850
+ description: string;
2851
+ inputs: Array<{
2852
+ name: string;
2853
+ type: "string" | "number" | "integer" | "boolean";
2854
+ description: string;
2855
+ required: boolean;
2856
+ }>;
2857
+ output: Array<{
2858
+ name: string;
2859
+ type: "string" | "number" | "integer" | "boolean" | "string_list";
2860
+ description: string;
2861
+ enum?: Array<string>;
2862
+ }>;
2863
+ tools: Array<"web_search" | "web_fetch">;
2864
+ tier: "fast" | "balanced" | "strong";
2865
+ instructions?: string;
2866
+ };
2867
+ integration: {
2868
+ language: "typescript" | "javascript" | "python" | "other";
2869
+ path: string;
2870
+ call_site: {
2871
+ path: string;
2872
+ line: number;
2873
+ note: string;
2874
+ url: string;
2875
+ };
2876
+ };
2877
+ scan: {
2878
+ run_id: string;
2879
+ commit: string | null;
2880
+ at: string;
2881
+ };
2882
+ decided_at: string | null;
2883
+ created: null | {
2884
+ agent_id: string;
2885
+ template_id: string;
2886
+ branch: string | null;
2887
+ pull_request: null | {
2888
+ number: number;
2889
+ url: string;
2890
+ };
2891
+ pull_error: string | null;
2892
+ };
2893
+ warnings: Array<Record<string, unknown>>;
2894
+ };
2828
2895
  /** Forget this server's calendar (DELETE /settings/calendar). */
2829
2896
  /** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
2830
2897
  export type DeleteComposioSubscriptionResponse = {
@@ -2865,6 +2932,68 @@ export type DeleteWorkspaceArchilResponse = {
2865
2932
  s3Url?: string;
2866
2933
  image?: string;
2867
2934
  };
2935
+ /** Discard a suggested agent: it goes away, and later scans leave it out (POST /suggestions/{suggestion_id}/discard). */
2936
+ export type DiscardSuggestionResponse = {
2937
+ id: string;
2938
+ repo: string;
2939
+ key: string;
2940
+ status: "open" | "created" | "discarded";
2941
+ title: string;
2942
+ summary: string;
2943
+ why: string;
2944
+ impact: "high" | "medium" | "low";
2945
+ evidence: Array<{
2946
+ path: string;
2947
+ line: number;
2948
+ quote: string;
2949
+ url: string;
2950
+ }>;
2951
+ agent: {
2952
+ name: string;
2953
+ description: string;
2954
+ inputs: Array<{
2955
+ name: string;
2956
+ type: "string" | "number" | "integer" | "boolean";
2957
+ description: string;
2958
+ required: boolean;
2959
+ }>;
2960
+ output: Array<{
2961
+ name: string;
2962
+ type: "string" | "number" | "integer" | "boolean" | "string_list";
2963
+ description: string;
2964
+ enum?: Array<string>;
2965
+ }>;
2966
+ tools: Array<"web_search" | "web_fetch">;
2967
+ tier: "fast" | "balanced" | "strong";
2968
+ instructions?: string;
2969
+ };
2970
+ integration: {
2971
+ language: "typescript" | "javascript" | "python" | "other";
2972
+ path: string;
2973
+ call_site: {
2974
+ path: string;
2975
+ line: number;
2976
+ note: string;
2977
+ url: string;
2978
+ };
2979
+ };
2980
+ scan: {
2981
+ run_id: string;
2982
+ commit: string | null;
2983
+ at: string;
2984
+ };
2985
+ decided_at: string | null;
2986
+ created: null | {
2987
+ agent_id: string;
2988
+ template_id: string;
2989
+ branch: string | null;
2990
+ pull_request: null | {
2991
+ number: number;
2992
+ url: string;
2993
+ };
2994
+ pull_error: string | null;
2995
+ };
2996
+ };
2868
2997
  /** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
2869
2998
  export type DisconnectGitHubResponse = {
2870
2999
  disconnected: true;
@@ -2960,6 +3089,85 @@ export type GetModelGatewayResponse = {
2960
3089
  };
2961
3090
  problem: string | null;
2962
3091
  };
3092
+ /** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
3093
+ export interface GetSuggestionParams {
3094
+ name?: string;
3095
+ }
3096
+ export type GetSuggestionResponse = {
3097
+ id: string;
3098
+ repo: string;
3099
+ key: string;
3100
+ status: "open" | "created" | "discarded";
3101
+ title: string;
3102
+ summary: string;
3103
+ why: string;
3104
+ impact: "high" | "medium" | "low";
3105
+ evidence: Array<{
3106
+ path: string;
3107
+ line: number;
3108
+ quote: string;
3109
+ url: string;
3110
+ }>;
3111
+ agent: {
3112
+ name: string;
3113
+ description: string;
3114
+ inputs: Array<{
3115
+ name: string;
3116
+ type: "string" | "number" | "integer" | "boolean";
3117
+ description: string;
3118
+ required: boolean;
3119
+ }>;
3120
+ output: Array<{
3121
+ name: string;
3122
+ type: "string" | "number" | "integer" | "boolean" | "string_list";
3123
+ description: string;
3124
+ enum?: Array<string>;
3125
+ }>;
3126
+ tools: Array<"web_search" | "web_fetch">;
3127
+ tier: "fast" | "balanced" | "strong";
3128
+ instructions?: string;
3129
+ };
3130
+ integration: {
3131
+ language: "typescript" | "javascript" | "python" | "other";
3132
+ path: string;
3133
+ call_site: {
3134
+ path: string;
3135
+ line: number;
3136
+ note: string;
3137
+ url: string;
3138
+ };
3139
+ };
3140
+ scan: {
3141
+ run_id: string;
3142
+ commit: string | null;
3143
+ at: string;
3144
+ };
3145
+ decided_at: string | null;
3146
+ created: null | {
3147
+ agent_id: string;
3148
+ template_id: string;
3149
+ branch: string | null;
3150
+ pull_request: null | {
3151
+ number: number;
3152
+ url: string;
3153
+ };
3154
+ pull_error: string | null;
3155
+ };
3156
+ files: Array<{
3157
+ path: string;
3158
+ content: string;
3159
+ }>;
3160
+ problems: Array<string>;
3161
+ github: {
3162
+ ready: boolean;
3163
+ reason: null | "not_connected" | "not_installed" | "github_failed" | "permission_missing";
3164
+ message: string | null;
3165
+ missing: Array<string>;
3166
+ install_url: string | null;
3167
+ permissions_url: string | null;
3168
+ installation_url: string | null;
3169
+ };
3170
+ };
2963
3171
  /** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
2964
3172
  export type GetWorkspaceArchilResponse = {
2965
3173
  on: boolean;
@@ -3083,8 +3291,10 @@ export type ListComputersResponse = {
3083
3291
  tools: Array<string>;
3084
3292
  settings: Array<string>;
3085
3293
  record: {
3086
- available: boolean;
3087
- why?: string;
3294
+ available: true;
3295
+ } | {
3296
+ available: false;
3297
+ why: string;
3088
3298
  };
3089
3299
  providers: Array<{
3090
3300
  id: string;
@@ -3133,10 +3343,123 @@ export type ListComputersResponse = {
3133
3343
  shell_note?: string;
3134
3344
  }>;
3135
3345
  };
3346
+ /** The repositories this server's GitHub App is installed on (GET /integrations/github/repositories). */
3347
+ export type ListGitHubRepositoriesResponse = {
3348
+ repositories: Array<{
3349
+ full_name: string;
3350
+ private: boolean;
3351
+ account: string;
3352
+ installation: number;
3353
+ default_branch?: string;
3354
+ description?: string;
3355
+ }>;
3356
+ truncated: boolean;
3357
+ unread: Array<{
3358
+ account: string;
3359
+ why: string;
3360
+ }>;
3361
+ };
3136
3362
  /** The names of the MCP servers saved here, and nothing else of them (GET /settings/mcp-server-names). */
3137
3363
  export type ListMcpServerNamesResponse = {
3138
3364
  names: Array<string>;
3139
3365
  };
3366
+ /** Suggested agents: each repository's scan and the agents it suggests (GET /suggestions). */
3367
+ export interface ListSuggestionsParams {
3368
+ repo?: string;
3369
+ status?: "open" | "created" | "discarded" | "all";
3370
+ }
3371
+ export type ListSuggestionsResponse = {
3372
+ github: {
3373
+ connected: boolean;
3374
+ app: string | null;
3375
+ installations: Array<{
3376
+ account: string;
3377
+ }>;
3378
+ install_url: string | null;
3379
+ };
3380
+ repositories: Array<{
3381
+ repo: string;
3382
+ scan: {
3383
+ run_id: string;
3384
+ agent_id: string;
3385
+ started_at: string;
3386
+ status: "running" | "waiting" | "completed" | "failed" | "cancelled";
3387
+ ended_at: string | null;
3388
+ app: string | null;
3389
+ commit: string | null;
3390
+ found: number | null;
3391
+ dropped: Array<string>;
3392
+ already_decided: number;
3393
+ error: string | null;
3394
+ };
3395
+ counts: {
3396
+ open: number;
3397
+ created: number;
3398
+ discarded: number;
3399
+ };
3400
+ }>;
3401
+ suggestions: Array<{
3402
+ id: string;
3403
+ repo: string;
3404
+ key: string;
3405
+ status: "open" | "created" | "discarded";
3406
+ title: string;
3407
+ summary: string;
3408
+ why: string;
3409
+ impact: "high" | "medium" | "low";
3410
+ evidence: Array<{
3411
+ path: string;
3412
+ line: number;
3413
+ quote: string;
3414
+ url: string;
3415
+ }>;
3416
+ agent: {
3417
+ name: string;
3418
+ description: string;
3419
+ inputs: Array<{
3420
+ name: string;
3421
+ type: "string" | "number" | "integer" | "boolean";
3422
+ description: string;
3423
+ required: boolean;
3424
+ }>;
3425
+ output: Array<{
3426
+ name: string;
3427
+ type: "string" | "number" | "integer" | "boolean" | "string_list";
3428
+ description: string;
3429
+ enum?: Array<string>;
3430
+ }>;
3431
+ tools: Array<"web_search" | "web_fetch">;
3432
+ tier: "fast" | "balanced" | "strong";
3433
+ instructions?: string;
3434
+ };
3435
+ integration: {
3436
+ language: "typescript" | "javascript" | "python" | "other";
3437
+ path: string;
3438
+ call_site: {
3439
+ path: string;
3440
+ line: number;
3441
+ note: string;
3442
+ url: string;
3443
+ };
3444
+ };
3445
+ scan: {
3446
+ run_id: string;
3447
+ commit: string | null;
3448
+ at: string;
3449
+ };
3450
+ decided_at: string | null;
3451
+ created: null | {
3452
+ agent_id: string;
3453
+ template_id: string;
3454
+ branch: string | null;
3455
+ pull_request: null | {
3456
+ number: number;
3457
+ url: string;
3458
+ };
3459
+ pull_error: string | null;
3460
+ };
3461
+ }>;
3462
+ };
3140
3463
  /** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
3141
3464
  export type PutWorkspaceArchilBody = {
3142
3465
  region: string;
@@ -3205,6 +3528,68 @@ export type ReceiveHookComposioResponse = {
3205
3528
  ok: "duplicate";
3206
3529
  }>;
3207
3530
  };
3531
+ /** Bring a discarded suggestion back (an undo) (POST /suggestions/{suggestion_id}/restore). */
3532
+ export type RestoreSuggestionResponse = {
3533
+ id: string;
3534
+ repo: string;
3535
+ key: string;
3536
+ status: "open" | "created" | "discarded";
3537
+ title: string;
3538
+ summary: string;
3539
+ why: string;
3540
+ impact: "high" | "medium" | "low";
3541
+ evidence: Array<{
3542
+ path: string;
3543
+ line: number;
3544
+ quote: string;
3545
+ url: string;
3546
+ }>;
3547
+ agent: {
3548
+ name: string;
3549
+ description: string;
3550
+ inputs: Array<{
3551
+ name: string;
3552
+ type: "string" | "number" | "integer" | "boolean";
3553
+ description: string;
3554
+ required: boolean;
3555
+ }>;
3556
+ output: Array<{
3557
+ name: string;
3558
+ type: "string" | "number" | "integer" | "boolean" | "string_list";
3559
+ description: string;
3560
+ enum?: Array<string>;
3561
+ }>;
3562
+ tools: Array<"web_search" | "web_fetch">;
3563
+ tier: "fast" | "balanced" | "strong";
3564
+ instructions?: string;
3565
+ };
3566
+ integration: {
3567
+ language: "typescript" | "javascript" | "python" | "other";
3568
+ path: string;
3569
+ call_site: {
3570
+ path: string;
3571
+ line: number;
3572
+ note: string;
3573
+ url: string;
3574
+ };
3575
+ };
3576
+ scan: {
3577
+ run_id: string;
3578
+ commit: string | null;
3579
+ at: string;
3580
+ };
3581
+ decided_at: string | null;
3582
+ created: null | {
3583
+ agent_id: string;
3584
+ template_id: string;
3585
+ branch: string | null;
3586
+ pull_request: null | {
3587
+ number: number;
3588
+ url: string;
3589
+ };
3590
+ pull_error: string | null;
3591
+ };
3592
+ };
3208
3593
  /** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
3209
3594
  export type RotateComposioSecretResponse = {
3210
3595
  rotated: true;
@@ -3381,6 +3766,17 @@ export type SaveModelGatewayResponse = {
3381
3766
  };
3382
3767
  problem: string | null;
3383
3768
  };
3769
+ /** Scan a repository for places its app needs an agent (POST /suggestions/scans). */
3770
+ export type ScanForSuggestionsBody = {
3771
+ repo: string;
3772
+ };
3773
+ export type ScanForSuggestionsResponse = {
3774
+ repo: string;
3775
+ run_id: string;
3776
+ agent_id: string;
3777
+ status: "running";
3778
+ already_running: boolean;
3779
+ };
3384
3780
  /** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
3385
3781
  export type SignOutChatGPTResponse = {
3386
3782
  revoked: boolean;
@@ -4766,7 +5162,7 @@ export type GetTemplateResponse = {
4766
5162
  } | null;
4767
5163
  effort: string | null;
4768
5164
  tools: Array<string> | null;
4769
- checkout: "pull_request" | null;
5165
+ checkout: "pull_request" | "repository" | null;
4770
5166
  tool_policy: {
4771
5167
  bash: "read-only";
4772
5168
  } | null;
@@ -4867,7 +5263,7 @@ export type ImportTemplateResponse = {
4867
5263
  } | null;
4868
5264
  effort: string | null;
4869
5265
  tools: Array<string> | null;
4870
- checkout: "pull_request" | null;
5266
+ checkout: "pull_request" | "repository" | null;
4871
5267
  tool_policy: {
4872
5268
  bash: "read-only";
4873
5269
  } | null;
@@ -4961,7 +5357,7 @@ export type ListTemplatesResponse = {
4961
5357
  } | null;
4962
5358
  effort: string | null;
4963
5359
  tools: Array<string> | null;
4964
- checkout: "pull_request" | null;
5360
+ checkout: "pull_request" | "repository" | null;
4965
5361
  tool_policy: {
4966
5362
  bash: "read-only";
4967
5363
  } | null;
@@ -6473,6 +6869,8 @@ export declare function resources(call: Call): {
6473
6869
  local: {
6474
6870
  /** A code that pairs a person's own computer with this server (POST /computers/pairings). */
6475
6871
  createPairing: (options?: RequestOptions) => Promise<CreatePairingResponse>;
6872
+ /** Create a suggested agent: a branch with its package and client, the agent made here, and a pull request (POST /suggestions/{suggestion_id}/create). */
6873
+ createSuggestedAgent: (suggestionId: string, body?: CreateSuggestedAgentBody, options?: RequestOptions) => Promise<CreateSuggestedAgentResponse>;
6476
6874
  /** Forget this server's calendar (DELETE /settings/calendar). */
6477
6875
  deleteCalendar: (options?: RequestOptions) => Promise<void>;
6478
6876
  /** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
@@ -6485,6 +6883,8 @@ export declare function resources(call: Call): {
6485
6883
  deleteModelGateway: (options?: RequestOptions) => Promise<DeleteModelGatewayResponse>;
6486
6884
  /** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
6487
6885
  deleteWorkspaceArchil: (options?: RequestOptions) => Promise<DeleteWorkspaceArchilResponse>;
6886
+ /** Discard a suggested agent: it goes away, and later scans leave it out (POST /suggestions/{suggestion_id}/discard). */
6887
+ discardSuggestion: (suggestionId: string, options?: RequestOptions) => Promise<DiscardSuggestionResponse>;
6488
6888
  /** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
6489
6889
  disconnectGitHub: (options?: RequestOptions) => Promise<DisconnectGitHubResponse>;
6490
6890
  /** Finish signing in with ChatGPT with the address the sign-in tab ended on (POST /settings/chatgpt/sign-in/finish). */
@@ -6501,6 +6901,8 @@ export declare function resources(call: Call): {
6501
6901
  getGitHubConnection: (options?: RequestOptions) => Promise<GetGitHubConnectionResponse>;
6502
6902
  /** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
6503
6903
  getModelGateway: (options?: RequestOptions) => Promise<GetModelGatewayResponse>;
6904
+ /** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
6905
+ getSuggestion: (suggestionId: string, params?: GetSuggestionParams, options?: RequestOptions) => Promise<GetSuggestionResponse>;
6504
6906
  /** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
6505
6907
  getWorkspaceArchil: (options?: RequestOptions) => Promise<GetWorkspaceArchilResponse>;
6506
6908
  /** List a saved Composio server's toolkit's events, for a composio trigger (GET /settings/mcp-servers/{name}/composio/events). */
@@ -6513,12 +6915,18 @@ export declare function resources(call: Call): {
6513
6915
  listComputerChoices: (provider: string, options?: RequestOptions) => Promise<ListComputerChoicesResponse>;
6514
6916
  /** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
6515
6917
  listComputers: (options?: RequestOptions) => Promise<ListComputersResponse>;
6918
+ /** The repositories this server's GitHub App is installed on (GET /integrations/github/repositories). */
6919
+ listGitHubRepositories: (options?: RequestOptions) => Promise<ListGitHubRepositoriesResponse>;
6516
6920
  /** The names of the MCP servers saved here, and nothing else of them (GET /settings/mcp-server-names). */
6517
6921
  listMcpServerNames: (options?: RequestOptions) => Promise<ListMcpServerNamesResponse>;
6922
+ /** Suggested agents: each repository's scan and the agents it suggests (GET /suggestions). */
6923
+ listSuggestions: (params?: ListSuggestionsParams, options?: RequestOptions) => Promise<ListSuggestionsResponse>;
6518
6924
  /** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
6519
6925
  putWorkspaceArchil: (body: PutWorkspaceArchilBody, options?: RequestOptions) => Promise<PutWorkspaceArchilResponse>;
6520
6926
  /** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
6521
6927
  receiveHookComposio: (hook: string, body: RawBody, options?: BodyOptions) => Promise<ReceiveHookComposioResponse>;
6928
+ /** Bring a discarded suggestion back (an undo) (POST /suggestions/{suggestion_id}/restore). */
6929
+ restoreSuggestion: (suggestionId: string, options?: RequestOptions) => Promise<RestoreSuggestionResponse>;
6522
6930
  /** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
6523
6931
  rotateComposioSecret: (name: string, options?: RequestOptions) => Promise<RotateComposioSecretResponse>;
6524
6932
  /** Save this server's calendar, its iCal address sealed (PUT /settings/calendar). */
@@ -6531,6 +6939,8 @@ export declare function resources(call: Call): {
6531
6939
  saveEmailAccount: (body: SaveEmailAccountBody, options?: RequestOptions) => Promise<SaveEmailAccountResponse>;
6532
6940
  /** Use a model gateway for every model, saved here (PUT /settings/model-gateway). */
6533
6941
  saveModelGateway: (body: SaveModelGatewayBody, options?: RequestOptions) => Promise<SaveModelGatewayResponse>;
6942
+ /** Scan a repository for places its app needs an agent (POST /suggestions/scans). */
6943
+ scanForSuggestions: (body: ScanForSuggestionsBody, options?: RequestOptions) => Promise<ScanForSuggestionsResponse>;
6534
6944
  /** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
6535
6945
  signOutChatGpt: (options?: RequestOptions) => Promise<SignOutChatGPTResponse>;
6536
6946
  /** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
@@ -67,12 +67,14 @@ export const OPERATIONS = {
67
67
  putLearningCorrections: { "method": "PUT", "path": "/agents/{agent_id}/learning/corrections", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["If-Match"], "body": { "required": true, "types": ["text/markdown", "text/plain", "application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
68
68
  connectGitHub: { "method": "POST", "path": "/integrations/github/connect", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
69
69
  createPairing: { "method": "POST", "path": "/computers/pairings", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
70
+ createSuggestedAgent: { "method": "POST", "path": "/suggestions/{suggestion_id}/create", "pathParams": ["suggestion_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
70
71
  deleteCalendar: { "method": "DELETE", "path": "/settings/calendar", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
71
72
  deleteComposioSubscription: { "method": "DELETE", "path": "/settings/mcp-servers/{name}/composio/subscription", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
72
73
  deleteComputer: { "method": "DELETE", "path": "/computers/{computer_id}", "pathParams": ["computer_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
73
74
  deleteEmailAccount: { "method": "DELETE", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
74
75
  deleteModelGateway: { "method": "DELETE", "path": "/settings/model-gateway", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
75
76
  deleteWorkspaceArchil: { "method": "DELETE", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
77
+ discardSuggestion: { "method": "POST", "path": "/suggestions/{suggestion_id}/discard", "pathParams": ["suggestion_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
76
78
  disconnectGitHub: { "method": "DELETE", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
77
79
  finishChatGPTSignIn: { "method": "POST", "path": "/settings/chatgpt/sign-in/finish", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
78
80
  getCalendar: { "method": "GET", "path": "/settings/calendar", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -81,6 +83,7 @@ export const OPERATIONS = {
81
83
  getEmailAccount: { "method": "GET", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
82
84
  getGitHubConnection: { "method": "GET", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
83
85
  getModelGateway: { "method": "GET", "path": "/settings/model-gateway", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
86
+ getSuggestion: { "method": "GET", "path": "/suggestions/{suggestion_id}", "pathParams": ["suggestion_id"], "multiSegment": [], "query": ["name"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
84
87
  getWorkspaceArchil: { "method": "GET", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
85
88
  gitHubCallback: { "method": "GET", "path": "/integrations/github/callback", "pathParams": [], "multiSegment": [], "query": ["code", "state"], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
86
89
  gitHubInstalled: { "method": "GET", "path": "/integrations/github/installed", "pathParams": [], "multiSegment": [], "query": ["installation_id", "setup_action", "state"], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
@@ -89,15 +92,19 @@ export const OPERATIONS = {
89
92
  listComposioTriggers: { "method": "GET", "path": "/settings/mcp-servers/{name}/composio/triggers", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
90
93
  listComputerChoices: { "method": "GET", "path": "/computers/{provider}/choices", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
91
94
  listComputers: { "method": "GET", "path": "/computers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
95
+ listGitHubRepositories: { "method": "GET", "path": "/integrations/github/repositories", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
92
96
  listMcpServerNames: { "method": "GET", "path": "/settings/mcp-server-names", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
97
+ listSuggestions: { "method": "GET", "path": "/suggestions", "pathParams": [], "multiSegment": [], "query": ["repo", "status"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
93
98
  putWorkspaceArchil: { "method": "PUT", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
94
99
  receiveHook_composio: { "method": "POST", "path": "/hooks/composio/{hook}", "pathParams": ["hook"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
100
+ restoreSuggestion: { "method": "POST", "path": "/suggestions/{suggestion_id}/restore", "pathParams": ["suggestion_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
95
101
  rotateComposioSecret: { "method": "POST", "path": "/settings/mcp-servers/{name}/composio/rotate-secret", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
96
102
  saveCalendar: { "method": "PUT", "path": "/settings/calendar", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
97
103
  saveComposioServer: { "method": "PUT", "path": "/settings/mcp-servers/{name}/composio", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": ["toolkit", "tools.[]", "user_id"], "tagged": false },
98
104
  saveComputerKeys: { "method": "PUT", "path": "/computers/{provider}/keys", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
99
105
  saveEmailAccount: { "method": "PUT", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
100
106
  saveModelGateway: { "method": "PUT", "path": "/settings/model-gateway", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": ["base_url", "ids", "models.default", "models.fast", "models.strong"], "tagged": false },
107
+ scanForSuggestions: { "method": "POST", "path": "/suggestions/scans", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
101
108
  signOutChatGPT: { "method": "DELETE", "path": "/settings/chatgpt", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
102
109
  startChatGPTSignIn: { "method": "POST", "path": "/settings/chatgpt/sign-in", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
103
110
  startClaudeLogin: { "method": "POST", "path": "/settings/claude-login/login", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -341,6 +348,8 @@ export function resources(call) {
341
348
  local: {
342
349
  /** A code that pairs a person's own computer with this server (POST /computers/pairings). */
343
350
  createPairing: (options) => call("createPairing", [], undefined, undefined, options),
351
+ /** Create a suggested agent: a branch with its package and client, the agent made here, and a pull request (POST /suggestions/{suggestion_id}/create). */
352
+ createSuggestedAgent: (suggestionId, body, options) => call("createSuggestedAgent", [suggestionId], body, undefined, options),
344
353
  /** Forget this server's calendar (DELETE /settings/calendar). */
345
354
  deleteCalendar: (options) => call("deleteCalendar", [], undefined, undefined, options),
346
355
  /** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
@@ -353,6 +362,8 @@ export function resources(call) {
353
362
  deleteModelGateway: (options) => call("deleteModelGateway", [], undefined, undefined, options),
354
363
  /** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
355
364
  deleteWorkspaceArchil: (options) => call("deleteWorkspaceArchil", [], undefined, undefined, options),
365
+ /** Discard a suggested agent: it goes away, and later scans leave it out (POST /suggestions/{suggestion_id}/discard). */
366
+ discardSuggestion: (suggestionId, options) => call("discardSuggestion", [suggestionId], undefined, undefined, options),
356
367
  /** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
357
368
  disconnectGitHub: (options) => call("disconnectGitHub", [], undefined, undefined, options),
358
369
  /** Finish signing in with ChatGPT with the address the sign-in tab ended on (POST /settings/chatgpt/sign-in/finish). */
@@ -369,6 +380,8 @@ export function resources(call) {
369
380
  getGitHubConnection: (options) => call("getGitHubConnection", [], undefined, undefined, options),
370
381
  /** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
371
382
  getModelGateway: (options) => call("getModelGateway", [], undefined, undefined, options),
383
+ /** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
384
+ getSuggestion: (suggestionId, params, options) => call("getSuggestion", [suggestionId], undefined, params, options),
372
385
  /** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
373
386
  getWorkspaceArchil: (options) => call("getWorkspaceArchil", [], undefined, undefined, options),
374
387
  /** List a saved Composio server's toolkit's events, for a composio trigger (GET /settings/mcp-servers/{name}/composio/events). */
@@ -381,12 +394,18 @@ export function resources(call) {
381
394
  listComputerChoices: (provider, options) => call("listComputerChoices", [provider], undefined, undefined, options),
382
395
  /** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
383
396
  listComputers: (options) => call("listComputers", [], undefined, undefined, options),
397
+ /** The repositories this server's GitHub App is installed on (GET /integrations/github/repositories). */
398
+ listGitHubRepositories: (options) => call("listGitHubRepositories", [], undefined, undefined, options),
384
399
  /** The names of the MCP servers saved here, and nothing else of them (GET /settings/mcp-server-names). */
385
400
  listMcpServerNames: (options) => call("listMcpServerNames", [], undefined, undefined, options),
401
+ /** Suggested agents: each repository's scan and the agents it suggests (GET /suggestions). */
402
+ listSuggestions: (params, options) => call("listSuggestions", [], undefined, params, options),
386
403
  /** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
387
404
  putWorkspaceArchil: (body, options) => call("putWorkspaceArchil", [], body, undefined, options),
388
405
  /** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
389
406
  receiveHookComposio: (hook, body, options) => call("receiveHook_composio", [hook], body, undefined, options),
407
+ /** Bring a discarded suggestion back (an undo) (POST /suggestions/{suggestion_id}/restore). */
408
+ restoreSuggestion: (suggestionId, options) => call("restoreSuggestion", [suggestionId], undefined, undefined, options),
390
409
  /** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
391
410
  rotateComposioSecret: (name, options) => call("rotateComposioSecret", [name], undefined, undefined, options),
392
411
  /** Save this server's calendar, its iCal address sealed (PUT /settings/calendar). */
@@ -399,6 +418,8 @@ export function resources(call) {
399
418
  saveEmailAccount: (body, options) => call("saveEmailAccount", [], body, undefined, options),
400
419
  /** Use a model gateway for every model, saved here (PUT /settings/model-gateway). */
401
420
  saveModelGateway: (body, options) => call("saveModelGateway", [], body, undefined, options),
421
+ /** Scan a repository for places its app needs an agent (POST /suggestions/scans). */
422
+ scanForSuggestions: (body, options) => call("scanForSuggestions", [], body, undefined, options),
402
423
  /** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
403
424
  signOutChatGpt: (options) => call("signOutChatGPT", [], undefined, undefined, options),
404
425
  /** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.53",
3
+ "version": "0.1.0-beta.54",
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.53"
86
+ "@parcha/agentrun-dsl": "0.1.0-beta.54"
87
87
  }
88
88
  }