@autifyhq/aximo-cli 0.2.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 +3 -1
- 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/mcp/server.test.js +8 -3
- package/dist/commands/mcp/tools.js +70 -0
- package/dist/commands/mcp/tools.test.js +65 -1
- 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 +40 -1
- 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 +37 -0
- package/package.json +1 -1
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,6 +119,43 @@ 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
|
+
}
|
|
122
159
|
export interface PaginatedList<T> {
|
|
123
160
|
items: T[];
|
|
124
161
|
totalCount: number;
|