@eigenpal/sdk 0.5.12 → 0.6.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @eigenpal/sdk
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 2aeeaf2: Complete the agent Git cutover with pluralized agent CLI commands, source-ref run support, lockfile metadata, and regenerated SDK/docs surfaces.
8
+ - 2aeeaf2: Expose Git-backed agent source refs and public source automation APIs consistently across CLI docs and SDK facades.
9
+
3
10
  ## 0.5.9
4
11
 
5
12
  ### Major Changes
package/README.md CHANGED
@@ -136,8 +136,8 @@ const { executionId } = await client.agents.run('invoice-agent', {
136
136
  invoice: file,
137
137
  });
138
138
 
139
- await client.agents.executions.get(executionId);
140
- await client.agents.executions.cancel(executionId);
139
+ await client.agents.runs.get(runId);
140
+ await client.agents.runs.cancel(runId);
141
141
  ```
142
142
 
143
143
  ## Errors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eigenpal/sdk",
3
- "version": "0.5.12",
3
+ "version": "0.6.0",
4
4
  "description": "Official TypeScript SDK for the EigenPal API",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/client.ts CHANGED
@@ -2,6 +2,8 @@ import { EigenpalError, EigenpalTimeoutError, errorFromResponse } from './errors
2
2
  import { createClient, createConfig, type Client, type Config } from './generated/client';
3
3
  import type { ApiErrorEnvelope } from './generated/types.gen';
4
4
  import { AgentsResource } from './resources/agents';
5
+ import { AutomationsResource } from './resources/automations';
6
+ import { SourceResource } from './resources/source';
5
7
  import { WorkflowsResource } from './resources/workflows';
6
8
  import { buildTelemetryHeaders } from './telemetry';
7
9
 
@@ -74,6 +76,10 @@ export class EigenpalClient {
74
76
  public readonly workflows: WorkflowsResource;
75
77
  /** Agent operations: `list`, `get`, `create`, `run`, `executions`. */
76
78
  public readonly agents: AgentsResource;
79
+ /** Source repository operations: repository metadata, raw files, releases, lockfiles, and secret decrypt. */
80
+ public readonly source: SourceResource;
81
+ /** Automation operations: sync public automation metadata from source. */
82
+ public readonly automations: AutomationsResource;
77
83
 
78
84
  /** Underlying hey-api client. Use `getRawClient()` for advanced cases. */
79
85
  private readonly client: Client;
@@ -116,6 +122,8 @@ export class EigenpalClient {
116
122
 
117
123
  this.workflows = new WorkflowsResource(this.client, this._request.bind(this));
118
124
  this.agents = new AgentsResource(this.client, this._request.bind(this));
125
+ this.source = new SourceResource(this.client, this._request.bind(this));
126
+ this.automations = new AutomationsResource(this.client, this._request.bind(this));
119
127
  }
120
128
 
121
129
  /** Expose the underlying hey-api client for advanced use (custom interceptors, etc.). */
@@ -2,26 +2,33 @@
2
2
 
3
3
  export {
4
4
  agentsCreate,
5
- agentsExecutionsCancel,
6
- agentsExecutionsExpectedCreate,
7
- agentsExecutionsExpectedDelete,
8
- agentsExecutionsExpectedDownload,
9
- agentsExecutionsExpectedList,
10
- agentsExecutionsExpectedRename,
11
- agentsExecutionsFeedbackDelete,
12
- agentsExecutionsFeedbackGet,
13
- agentsExecutionsFeedbackUpdate,
14
- agentsExecutionsFilesDownload,
15
- agentsExecutionsGet,
16
- agentsExecutionsList,
17
- agentsExecutionsRerun,
18
5
  agentsFilesListOrGet,
19
6
  agentsFilesPut,
20
7
  agentsFilesUploadBatch,
21
8
  agentsGet,
22
9
  agentsList,
23
10
  agentsRun,
11
+ agentsRunsCancel,
12
+ agentsRunsExpectedCreate,
13
+ agentsRunsExpectedDelete,
14
+ agentsRunsExpectedDownload,
15
+ agentsRunsExpectedList,
16
+ agentsRunsExpectedRename,
17
+ agentsRunsFeedbackDelete,
18
+ agentsRunsFeedbackGet,
19
+ agentsRunsFeedbackUpdate,
20
+ agentsRunsFilesDownload,
21
+ agentsRunsGet,
22
+ agentsRunsList,
23
+ agentsRunsRerun,
24
24
  agentsUpdate,
25
+ automationsSync,
26
+ sourceLockfilePreview,
27
+ sourceRaw,
28
+ sourceReleases,
29
+ sourceRepository,
30
+ sourceSecretsDecrypt,
31
+ sourceSecretsEncrypt,
25
32
  workflowsExecutionsCancel,
26
33
  workflowsExecutionsGet,
27
34
  workflowsExecutionsList,
@@ -35,79 +42,14 @@ export type {
35
42
  AgentExecutionExpectedArtifacts,
36
43
  AgentExecutionFeedback,
37
44
  AgentExecutionFeedbackDetail,
38
- AgentExecutionResponse,
39
45
  AgentExecutionSummary,
40
- AgentFileBody,
41
- AgentFilesBody,
46
+ AgentRunResponse,
42
47
  AgentSummary,
43
48
  AgentsCreateData,
44
49
  AgentsCreateError,
45
50
  AgentsCreateErrors,
46
51
  AgentsCreateResponse,
47
52
  AgentsCreateResponses,
48
- AgentsExecutionsCancelData,
49
- AgentsExecutionsCancelError,
50
- AgentsExecutionsCancelErrors,
51
- AgentsExecutionsCancelResponse,
52
- AgentsExecutionsCancelResponses,
53
- AgentsExecutionsExpectedCreateData,
54
- AgentsExecutionsExpectedCreateError,
55
- AgentsExecutionsExpectedCreateErrors,
56
- AgentsExecutionsExpectedCreateResponse,
57
- AgentsExecutionsExpectedCreateResponses,
58
- AgentsExecutionsExpectedDeleteData,
59
- AgentsExecutionsExpectedDeleteError,
60
- AgentsExecutionsExpectedDeleteErrors,
61
- AgentsExecutionsExpectedDeleteResponse,
62
- AgentsExecutionsExpectedDeleteResponses,
63
- AgentsExecutionsExpectedDownloadData,
64
- AgentsExecutionsExpectedDownloadError,
65
- AgentsExecutionsExpectedDownloadErrors,
66
- AgentsExecutionsExpectedDownloadResponses,
67
- AgentsExecutionsExpectedListData,
68
- AgentsExecutionsExpectedListError,
69
- AgentsExecutionsExpectedListErrors,
70
- AgentsExecutionsExpectedListResponse,
71
- AgentsExecutionsExpectedListResponses,
72
- AgentsExecutionsExpectedRenameData,
73
- AgentsExecutionsExpectedRenameError,
74
- AgentsExecutionsExpectedRenameErrors,
75
- AgentsExecutionsExpectedRenameResponse,
76
- AgentsExecutionsExpectedRenameResponses,
77
- AgentsExecutionsFeedbackDeleteData,
78
- AgentsExecutionsFeedbackDeleteError,
79
- AgentsExecutionsFeedbackDeleteErrors,
80
- AgentsExecutionsFeedbackDeleteResponse,
81
- AgentsExecutionsFeedbackDeleteResponses,
82
- AgentsExecutionsFeedbackGetData,
83
- AgentsExecutionsFeedbackGetError,
84
- AgentsExecutionsFeedbackGetErrors,
85
- AgentsExecutionsFeedbackGetResponse,
86
- AgentsExecutionsFeedbackGetResponses,
87
- AgentsExecutionsFeedbackUpdateData,
88
- AgentsExecutionsFeedbackUpdateError,
89
- AgentsExecutionsFeedbackUpdateErrors,
90
- AgentsExecutionsFeedbackUpdateResponse,
91
- AgentsExecutionsFeedbackUpdateResponses,
92
- AgentsExecutionsFilesDownloadData,
93
- AgentsExecutionsFilesDownloadError,
94
- AgentsExecutionsFilesDownloadErrors,
95
- AgentsExecutionsFilesDownloadResponses,
96
- AgentsExecutionsGetData,
97
- AgentsExecutionsGetError,
98
- AgentsExecutionsGetErrors,
99
- AgentsExecutionsGetResponse,
100
- AgentsExecutionsGetResponses,
101
- AgentsExecutionsListData,
102
- AgentsExecutionsListError,
103
- AgentsExecutionsListErrors,
104
- AgentsExecutionsListResponse,
105
- AgentsExecutionsListResponses,
106
- AgentsExecutionsRerunData,
107
- AgentsExecutionsRerunError,
108
- AgentsExecutionsRerunErrors,
109
- AgentsExecutionsRerunResponse,
110
- AgentsExecutionsRerunResponses,
111
53
  AgentsFilesListOrGetData,
112
54
  AgentsFilesListOrGetError,
113
55
  AgentsFilesListOrGetErrors,
@@ -115,13 +57,9 @@ export type {
115
57
  AgentsFilesPutData,
116
58
  AgentsFilesPutError,
117
59
  AgentsFilesPutErrors,
118
- AgentsFilesPutResponse,
119
- AgentsFilesPutResponses,
120
60
  AgentsFilesUploadBatchData,
121
61
  AgentsFilesUploadBatchError,
122
62
  AgentsFilesUploadBatchErrors,
123
- AgentsFilesUploadBatchResponse,
124
- AgentsFilesUploadBatchResponses,
125
63
  AgentsGetData,
126
64
  AgentsGetError,
127
65
  AgentsGetErrors,
@@ -137,6 +75,69 @@ export type {
137
75
  AgentsRunErrors,
138
76
  AgentsRunResponse,
139
77
  AgentsRunResponses,
78
+ AgentsRunsCancelData,
79
+ AgentsRunsCancelError,
80
+ AgentsRunsCancelErrors,
81
+ AgentsRunsCancelResponse,
82
+ AgentsRunsCancelResponses,
83
+ AgentsRunsExpectedCreateData,
84
+ AgentsRunsExpectedCreateError,
85
+ AgentsRunsExpectedCreateErrors,
86
+ AgentsRunsExpectedCreateResponse,
87
+ AgentsRunsExpectedCreateResponses,
88
+ AgentsRunsExpectedDeleteData,
89
+ AgentsRunsExpectedDeleteError,
90
+ AgentsRunsExpectedDeleteErrors,
91
+ AgentsRunsExpectedDeleteResponse,
92
+ AgentsRunsExpectedDeleteResponses,
93
+ AgentsRunsExpectedDownloadData,
94
+ AgentsRunsExpectedDownloadError,
95
+ AgentsRunsExpectedDownloadErrors,
96
+ AgentsRunsExpectedDownloadResponses,
97
+ AgentsRunsExpectedListData,
98
+ AgentsRunsExpectedListError,
99
+ AgentsRunsExpectedListErrors,
100
+ AgentsRunsExpectedListResponse,
101
+ AgentsRunsExpectedListResponses,
102
+ AgentsRunsExpectedRenameData,
103
+ AgentsRunsExpectedRenameError,
104
+ AgentsRunsExpectedRenameErrors,
105
+ AgentsRunsExpectedRenameResponse,
106
+ AgentsRunsExpectedRenameResponses,
107
+ AgentsRunsFeedbackDeleteData,
108
+ AgentsRunsFeedbackDeleteError,
109
+ AgentsRunsFeedbackDeleteErrors,
110
+ AgentsRunsFeedbackDeleteResponse,
111
+ AgentsRunsFeedbackDeleteResponses,
112
+ AgentsRunsFeedbackGetData,
113
+ AgentsRunsFeedbackGetError,
114
+ AgentsRunsFeedbackGetErrors,
115
+ AgentsRunsFeedbackGetResponse,
116
+ AgentsRunsFeedbackGetResponses,
117
+ AgentsRunsFeedbackUpdateData,
118
+ AgentsRunsFeedbackUpdateError,
119
+ AgentsRunsFeedbackUpdateErrors,
120
+ AgentsRunsFeedbackUpdateResponse,
121
+ AgentsRunsFeedbackUpdateResponses,
122
+ AgentsRunsFilesDownloadData,
123
+ AgentsRunsFilesDownloadError,
124
+ AgentsRunsFilesDownloadErrors,
125
+ AgentsRunsFilesDownloadResponses,
126
+ AgentsRunsGetData,
127
+ AgentsRunsGetError,
128
+ AgentsRunsGetErrors,
129
+ AgentsRunsGetResponse,
130
+ AgentsRunsGetResponses,
131
+ AgentsRunsListData,
132
+ AgentsRunsListError,
133
+ AgentsRunsListErrors,
134
+ AgentsRunsListResponse,
135
+ AgentsRunsListResponses,
136
+ AgentsRunsRerunData,
137
+ AgentsRunsRerunError,
138
+ AgentsRunsRerunErrors,
139
+ AgentsRunsRerunResponse,
140
+ AgentsRunsRerunResponses,
140
141
  AgentsUpdateData,
141
142
  AgentsUpdateError,
142
143
  AgentsUpdateErrors,
@@ -144,6 +145,12 @@ export type {
144
145
  AgentsUpdateResponses,
145
146
  ApiErrorEnvelope,
146
147
  ApiErrorIssue,
148
+ AutomationSyncResponse,
149
+ AutomationsSyncData,
150
+ AutomationsSyncError,
151
+ AutomationsSyncErrors,
152
+ AutomationsSyncResponse,
153
+ AutomationsSyncResponses,
147
154
  CancelAgentExecutionResponse,
148
155
  CancelWorkflowExecutionResponse,
149
156
  ClientOptions,
@@ -153,20 +160,59 @@ export type {
153
160
  ExecutionStatus,
154
161
  ExecutionSummary,
155
162
  GetAgentResponse,
156
- ListAgentExecutionsResponse,
163
+ ListAgentRunsResponse,
157
164
  ListAgentsResponse,
158
165
  ListVersionsResponse,
159
166
  ListWorkflowExecutionsResponse,
160
167
  ListWorkflowsResponse,
161
168
  PatchAgentBody,
162
169
  PatchAgentResponse,
170
+ RawSourceResponse,
163
171
  RenameExpectedFileBody,
164
172
  RenameExpectedFileResponse,
165
- RerunAgentExecutionResponse,
173
+ RerunAgentRunResponse,
166
174
  RunAgentBody,
167
175
  RunAgentResponse,
168
176
  RunWorkflowBody,
169
177
  RunWorkflowResponse,
178
+ Schema0,
179
+ SourceLockfilePreviewData,
180
+ SourceLockfilePreviewError,
181
+ SourceLockfilePreviewErrors,
182
+ SourceLockfilePreviewResponse,
183
+ SourceLockfilePreviewResponses,
184
+ SourceLockfileResponse,
185
+ SourceRawData,
186
+ SourceRawError,
187
+ SourceRawErrors,
188
+ SourceRawResponse,
189
+ SourceRawResponses,
190
+ SourceReleasesData,
191
+ SourceReleasesError,
192
+ SourceReleasesErrors,
193
+ SourceReleasesResponse,
194
+ SourceReleasesResponse2,
195
+ SourceReleasesResponses,
196
+ SourceRepositoryData,
197
+ SourceRepositoryError,
198
+ SourceRepositoryErrors,
199
+ SourceRepositoryResponse,
200
+ SourceRepositoryResponse2,
201
+ SourceRepositoryResponses,
202
+ SourceSecretsDecryptBody,
203
+ SourceSecretsDecryptData,
204
+ SourceSecretsDecryptError,
205
+ SourceSecretsDecryptErrors,
206
+ SourceSecretsDecryptResponse,
207
+ SourceSecretsDecryptResponse2,
208
+ SourceSecretsDecryptResponses,
209
+ SourceSecretsEncryptBody,
210
+ SourceSecretsEncryptData,
211
+ SourceSecretsEncryptError,
212
+ SourceSecretsEncryptErrors,
213
+ SourceSecretsEncryptResponse,
214
+ SourceSecretsEncryptResponse2,
215
+ SourceSecretsEncryptResponses,
170
216
  UpdateAgentExecutionFeedbackBody,
171
217
  WorkflowDetail,
172
218
  WorkflowExecutionStatusResponse,