@autifyhq/aximo-cli 0.1.0 → 0.3.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/README.md +87 -50
- package/dist/cli.js +15 -0
- package/dist/commands/case/case.test.d.ts +1 -0
- package/dist/commands/case/case.test.js +86 -0
- package/dist/commands/case/create.d.ts +53 -0
- package/dist/commands/case/create.js +71 -0
- package/dist/commands/case/index.d.ts +2 -0
- package/dist/commands/case/index.js +7 -0
- package/dist/commands/device/index.js +4 -1
- package/dist/commands/device/list.js +4 -1
- package/dist/commands/device/register.js +1 -1
- package/dist/commands/device/status.js +4 -1
- package/dist/commands/mcp/index.d.ts +2 -0
- package/dist/commands/mcp/index.js +29 -0
- package/dist/commands/mcp/server.d.ts +3 -0
- package/dist/commands/mcp/server.js +19 -0
- package/dist/commands/mcp/server.test.d.ts +1 -0
- package/dist/commands/mcp/server.test.js +89 -0
- package/dist/commands/mcp/tools.d.ts +18 -0
- package/dist/commands/mcp/tools.js +268 -0
- package/dist/commands/mcp/tools.test.d.ts +1 -0
- package/dist/commands/mcp/tools.test.js +269 -0
- package/dist/commands/plan/add-case.d.ts +30 -0
- package/dist/commands/plan/add-case.js +58 -0
- package/dist/commands/plan/create.d.ts +31 -0
- package/dist/commands/plan/create.js +56 -0
- package/dist/commands/plan/index.d.ts +2 -0
- package/dist/commands/plan/index.js +9 -0
- package/dist/commands/plan/plan.test.d.ts +1 -0
- package/dist/commands/plan/plan.test.js +104 -0
- package/dist/commands/plan/remove-case.d.ts +26 -0
- package/dist/commands/plan/remove-case.js +43 -0
- package/dist/commands/schema.js +42 -3
- package/dist/commands/session/index.js +1 -0
- package/dist/commands/session/save-as-case.d.ts +43 -0
- package/dist/commands/session/save-as-case.js +69 -0
- package/dist/commands/session/save-as-case.test.d.ts +1 -0
- package/dist/commands/session/save-as-case.test.js +58 -0
- package/dist/index.d.ts +12 -7
- package/dist/index.js +12 -7
- package/dist/types.d.ts +147 -0
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { getApiKey, getBaseUrl, request } from "./client.js";
|
|
2
|
+
export { runCaseCreate } from "./commands/case/create.js";
|
|
3
|
+
export { runDeviceList } from "./commands/device/list.js";
|
|
4
4
|
export { runHealthCheck } from "./commands/health/check.js";
|
|
5
|
+
export { runPlanAddCase } from "./commands/plan/add-case.js";
|
|
6
|
+
export { runPlanCreate } from "./commands/plan/create.js";
|
|
7
|
+
export { runPlanRemoveCase } from "./commands/plan/remove-case.js";
|
|
5
8
|
export { runProjectList } from "./commands/project/list.js";
|
|
6
|
-
export { runDeviceList } from "./commands/device/list.js";
|
|
7
9
|
export { runSessionCreate } from "./commands/session/create.js";
|
|
8
10
|
export { runSessionGet } from "./commands/session/get.js";
|
|
9
|
-
export {
|
|
11
|
+
export { runSessionSaveAsCase } from "./commands/session/save-as-case.js";
|
|
10
12
|
export { runTriggerCaseGet } from "./commands/trigger/case/get.js";
|
|
11
|
-
export {
|
|
13
|
+
export { runTriggerCaseRun } from "./commands/trigger/case/run.js";
|
|
12
14
|
export { runTriggerPlanGet } from "./commands/trigger/plan/get.js";
|
|
15
|
+
export { runTriggerPlanRun } from "./commands/trigger/plan/run.js";
|
|
13
16
|
export { runUploadCreate } from "./commands/upload/create.js";
|
|
14
|
-
export { runUploadList } from "./commands/upload/list.js";
|
|
15
17
|
export { runUploadGet } from "./commands/upload/get.js";
|
|
18
|
+
export { runUploadList } from "./commands/upload/list.js";
|
|
16
19
|
export { runUploadPut } from "./commands/upload/put.js";
|
|
17
20
|
export { runUploadSubmit } from "./commands/upload/submit.js";
|
|
21
|
+
export { handleApiError } from "./errors.js";
|
|
22
|
+
export { formatError, formatSuccess, printResult, validationError } from "./output.js";
|
package/dist/types.d.ts
CHANGED
|
@@ -119,3 +119,150 @@ export interface Project {
|
|
|
119
119
|
name?: string | undefined;
|
|
120
120
|
[key: string]: unknown;
|
|
121
121
|
}
|
|
122
|
+
export interface CreateCaseInput {
|
|
123
|
+
projectId: string;
|
|
124
|
+
scenario: string;
|
|
125
|
+
type?: string | undefined;
|
|
126
|
+
title?: string | undefined;
|
|
127
|
+
description?: string | undefined;
|
|
128
|
+
format?: string | undefined;
|
|
129
|
+
startUrl?: string | undefined;
|
|
130
|
+
directoryId?: string | undefined;
|
|
131
|
+
}
|
|
132
|
+
export interface CreateCaseResult {
|
|
133
|
+
success: boolean;
|
|
134
|
+
caseId: string;
|
|
135
|
+
}
|
|
136
|
+
export interface CreatePlanInput {
|
|
137
|
+
projectId: string;
|
|
138
|
+
title: string;
|
|
139
|
+
description?: string | undefined;
|
|
140
|
+
}
|
|
141
|
+
export interface CreatePlanResult {
|
|
142
|
+
success: boolean;
|
|
143
|
+
planId: string;
|
|
144
|
+
}
|
|
145
|
+
export interface PlanCaseResult {
|
|
146
|
+
success: boolean;
|
|
147
|
+
}
|
|
148
|
+
export interface SaveSessionAsCaseInput {
|
|
149
|
+
title?: string | undefined;
|
|
150
|
+
type?: string | undefined;
|
|
151
|
+
scenario?: string | undefined;
|
|
152
|
+
format?: string | undefined;
|
|
153
|
+
}
|
|
154
|
+
export interface SaveSessionAsCaseResult {
|
|
155
|
+
success: boolean;
|
|
156
|
+
caseId: string;
|
|
157
|
+
projectId: string;
|
|
158
|
+
}
|
|
159
|
+
export interface PaginatedList<T> {
|
|
160
|
+
items: T[];
|
|
161
|
+
totalCount: number;
|
|
162
|
+
page: number;
|
|
163
|
+
pageSize: number;
|
|
164
|
+
totalPages: number;
|
|
165
|
+
}
|
|
166
|
+
export interface CursorPage<T> {
|
|
167
|
+
items: T[];
|
|
168
|
+
nextCursor: string | null;
|
|
169
|
+
}
|
|
170
|
+
export interface SessionListItem {
|
|
171
|
+
id: string;
|
|
172
|
+
projectId: string | null;
|
|
173
|
+
caseId: string | null;
|
|
174
|
+
title: string;
|
|
175
|
+
prompt: string;
|
|
176
|
+
platform: string;
|
|
177
|
+
status: string;
|
|
178
|
+
result: string | null;
|
|
179
|
+
startedAt: string | null;
|
|
180
|
+
completedAt: string | null;
|
|
181
|
+
createdAt: string;
|
|
182
|
+
durationMs: number | null;
|
|
183
|
+
}
|
|
184
|
+
export interface SessionMessage {
|
|
185
|
+
id: string;
|
|
186
|
+
role: string;
|
|
187
|
+
content: string;
|
|
188
|
+
metadata?: unknown;
|
|
189
|
+
createdAt: string;
|
|
190
|
+
}
|
|
191
|
+
export interface SessionScreenshot {
|
|
192
|
+
id: string;
|
|
193
|
+
url: string;
|
|
194
|
+
messageId: string | null;
|
|
195
|
+
width: number | null;
|
|
196
|
+
height: number | null;
|
|
197
|
+
resizedWidth: number | null;
|
|
198
|
+
resizedHeight: number | null;
|
|
199
|
+
capturedAt: string;
|
|
200
|
+
}
|
|
201
|
+
export interface TimelineStep {
|
|
202
|
+
index: number;
|
|
203
|
+
messageId: string;
|
|
204
|
+
role: string;
|
|
205
|
+
toolName: string | null;
|
|
206
|
+
toolInput: unknown;
|
|
207
|
+
toolOutput: unknown;
|
|
208
|
+
text: string | null;
|
|
209
|
+
createdAt: string;
|
|
210
|
+
screenshots: SessionScreenshot[];
|
|
211
|
+
}
|
|
212
|
+
export interface SessionTimeline {
|
|
213
|
+
sessionId: string;
|
|
214
|
+
stepCount: number;
|
|
215
|
+
steps: TimelineStep[];
|
|
216
|
+
}
|
|
217
|
+
export interface CaseListItem {
|
|
218
|
+
id: string;
|
|
219
|
+
projectId: string;
|
|
220
|
+
type: string;
|
|
221
|
+
title: string | null;
|
|
222
|
+
description: string | null;
|
|
223
|
+
startUrl: string | null;
|
|
224
|
+
lastRunAt: string | null;
|
|
225
|
+
lastStatus: string | null;
|
|
226
|
+
createdAt: string;
|
|
227
|
+
updatedAt: string;
|
|
228
|
+
}
|
|
229
|
+
export interface CaptureSnapshot {
|
|
230
|
+
id: string;
|
|
231
|
+
ts: number;
|
|
232
|
+
messageId: string | null;
|
|
233
|
+
trigger: "screenshot" | "page_load";
|
|
234
|
+
targetId: string;
|
|
235
|
+
url: string;
|
|
236
|
+
title: string;
|
|
237
|
+
dom: unknown;
|
|
238
|
+
axTree: unknown;
|
|
239
|
+
}
|
|
240
|
+
export interface SessionCapture {
|
|
241
|
+
sessionId: string;
|
|
242
|
+
platform: string;
|
|
243
|
+
startedAt: string | null;
|
|
244
|
+
endedAt: string | null;
|
|
245
|
+
browserContext: Record<string, unknown> | null;
|
|
246
|
+
events: Array<Record<string, unknown>>;
|
|
247
|
+
storageState: Record<string, unknown> | null;
|
|
248
|
+
snapshotCount: number;
|
|
249
|
+
snapshotsPrefix: string | null;
|
|
250
|
+
truncated: boolean;
|
|
251
|
+
createdAt: string;
|
|
252
|
+
updatedAt: string;
|
|
253
|
+
}
|
|
254
|
+
export interface CaseDetail {
|
|
255
|
+
id: string;
|
|
256
|
+
projectId: string;
|
|
257
|
+
type: string;
|
|
258
|
+
title: string | null;
|
|
259
|
+
description: string | null;
|
|
260
|
+
scenario: string;
|
|
261
|
+
format: string;
|
|
262
|
+
startUrl: string | null;
|
|
263
|
+
apiEnabled: boolean;
|
|
264
|
+
lastRunAt: string | null;
|
|
265
|
+
lastStatus: string | null;
|
|
266
|
+
createdAt: string;
|
|
267
|
+
updatedAt: string;
|
|
268
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autifyhq/aximo-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Autify Aximo Command Line Interface (CLI)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"autify",
|
|
@@ -36,8 +36,10 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
39
40
|
"citty": "0.2.2",
|
|
40
|
-
"ws": "^8.18.0"
|
|
41
|
+
"ws": "^8.18.0",
|
|
42
|
+
"zod": "^3.25.76"
|
|
41
43
|
},
|
|
42
44
|
"devDependencies": {
|
|
43
45
|
"@commitlint/cli": "20.5.0",
|