@moxxy/agent-cli 0.0.3 → 0.0.4
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/dist/chunk-ZTFAXFQJ.mjs +2108 -0
- package/dist/cli-T3ZFKHEG.mjs +6 -0
- package/dist/index.js +117 -113
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1651,7 +1651,7 @@ var init_pr = __esm({
|
|
|
1651
1651
|
});
|
|
1652
1652
|
|
|
1653
1653
|
// ../types/dist/index.mjs
|
|
1654
|
-
var import_zod, import_zod2, import_zod3, import_zod4, import_zod5, import_zod6, import_zod7, import_zod8, import_zod9, import_zod10, import_zod11, uuidSchema, timestampSchema, paginationSchema, activityTypeSchema, taskActivitySchema, createActivitySchema, agentStatusSchema, agentTypeSchema, agentCapabilitySchema, agentIdentitySchema, agentModelConfigSchema, agentSchema, createAgentSchema, updateAgentSchema, taskFiltersSchema, INTEGRATION_TYPES, NOTIFICATION_EVENTS, createIntegrationSchema, updateIntegrationSchema, projectStatusSchema, workflowModeSchema, validationSettingsSchema, workflowSettingsSchema, prdStatusSchema, prdTemplateSchema, prdTaskSchema, projectSchema, generatePRDInputSchema, importPRDTasksInputSchema, updatePRDInputSchema, createProjectSchema, updateProjectSchema, taskStatusSchema, taskTypeSchema, taskPrioritySchema, agentNoteTypeSchema, agentNoteSchema, taskSchema, createTaskSchema, updateTaskSchema, clientEventTypeSchema, serverEventTypeSchema,
|
|
1654
|
+
var import_zod, import_zod2, import_zod3, import_zod4, import_zod5, import_zod6, import_zod7, import_zod8, import_zod9, import_zod10, import_zod11, uuidSchema, timestampSchema, paginationSchema, activityTypeSchema, taskActivitySchema, createActivitySchema, agentStatusSchema, agentTypeSchema, agentCapabilitySchema, agentIdentitySchema, agentModelConfigSchema, agentSchema, createAgentSchema, updateAgentSchema, taskFiltersSchema, INTEGRATION_TYPES, NOTIFICATION_EVENTS, createIntegrationSchema, updateIntegrationSchema, projectStatusSchema, workflowModeSchema, validationSettingsSchema, workflowSettingsSchema, prdStatusSchema, prdTemplateSchema, prdTaskSchema, projectSchema, generatePRDInputSchema, importPRDTasksInputSchema, updatePRDInputSchema, createProjectSchema, updateProjectSchema, taskStatusSchema, taskTypeSchema, taskPrioritySchema, agentNoteTypeSchema, agentNoteSchema, taskSchema, createTaskSchema, updateTaskSchema, clientEventTypeSchema, serverEventTypeSchema, githubIssuePayloadSchema, ISSUE_TYPES, ISSUE_PRIORITIES, ISSUE_COMPLEXITIES, issueClassificationSchema, PIPELINE_STAGES, PIPELINE_STATUSES, pipelineStageResultSchema, pipelineRunSchema, gatewayConfigSchema, githubAuthConfigSchema, webhookServerConfigSchema, watchedRepoSchema, agentRunConfigSchema, sdkProviderSchema, claudeConfigSchema, pipelineConfigSchema, moxxyConfigSchema, agentCommandResultSchema, argDefSchema, optionDefSchema, agentCLICommandDefSchema, workflowStepSchema, workflowSchema, workflowStepResultSchema, workflowResultSchema;
|
|
1655
1655
|
var init_dist = __esm({
|
|
1656
1656
|
"../types/dist/index.mjs"() {
|
|
1657
1657
|
"use strict";
|
|
@@ -2007,6 +2007,69 @@ var init_dist = __esm({
|
|
|
2007
2007
|
"project:prd_status_changed",
|
|
2008
2008
|
"error"
|
|
2009
2009
|
]);
|
|
2010
|
+
githubIssuePayloadSchema = import_zod10.z.object({
|
|
2011
|
+
action: import_zod10.z.string(),
|
|
2012
|
+
issueNumber: import_zod10.z.number().int().positive(),
|
|
2013
|
+
title: import_zod10.z.string(),
|
|
2014
|
+
body: import_zod10.z.string().nullable(),
|
|
2015
|
+
labels: import_zod10.z.array(import_zod10.z.string()),
|
|
2016
|
+
author: import_zod10.z.string(),
|
|
2017
|
+
repo: import_zod10.z.object({
|
|
2018
|
+
owner: import_zod10.z.string(),
|
|
2019
|
+
name: import_zod10.z.string(),
|
|
2020
|
+
fullName: import_zod10.z.string(),
|
|
2021
|
+
defaultBranch: import_zod10.z.string(),
|
|
2022
|
+
cloneUrl: import_zod10.z.string()
|
|
2023
|
+
}),
|
|
2024
|
+
url: import_zod10.z.string().url(),
|
|
2025
|
+
createdAt: import_zod10.z.string()
|
|
2026
|
+
});
|
|
2027
|
+
ISSUE_TYPES = ["feature", "bug", "refactor", "docs", "test", "chore"];
|
|
2028
|
+
ISSUE_PRIORITIES = ["low", "medium", "high", "urgent"];
|
|
2029
|
+
ISSUE_COMPLEXITIES = ["trivial", "small", "medium", "large", "epic"];
|
|
2030
|
+
issueClassificationSchema = import_zod10.z.object({
|
|
2031
|
+
type: import_zod10.z.enum(ISSUE_TYPES),
|
|
2032
|
+
priority: import_zod10.z.enum(ISSUE_PRIORITIES),
|
|
2033
|
+
complexity: import_zod10.z.enum(ISSUE_COMPLEXITIES),
|
|
2034
|
+
confidence: import_zod10.z.number().min(0).max(1),
|
|
2035
|
+
reasoning: import_zod10.z.string()
|
|
2036
|
+
});
|
|
2037
|
+
PIPELINE_STAGES = [
|
|
2038
|
+
"triage",
|
|
2039
|
+
"research",
|
|
2040
|
+
"inspect",
|
|
2041
|
+
"plan",
|
|
2042
|
+
"implement"
|
|
2043
|
+
];
|
|
2044
|
+
PIPELINE_STATUSES = [
|
|
2045
|
+
"pending",
|
|
2046
|
+
"running",
|
|
2047
|
+
"completed",
|
|
2048
|
+
"failed",
|
|
2049
|
+
"cancelled"
|
|
2050
|
+
];
|
|
2051
|
+
pipelineStageResultSchema = import_zod10.z.object({
|
|
2052
|
+
stage: import_zod10.z.enum(PIPELINE_STAGES),
|
|
2053
|
+
status: import_zod10.z.enum(PIPELINE_STATUSES),
|
|
2054
|
+
output: import_zod10.z.unknown().optional(),
|
|
2055
|
+
error: import_zod10.z.string().optional(),
|
|
2056
|
+
duration_ms: import_zod10.z.number().optional()
|
|
2057
|
+
});
|
|
2058
|
+
pipelineRunSchema = import_zod10.z.object({
|
|
2059
|
+
id: import_zod10.z.string(),
|
|
2060
|
+
issueNumber: import_zod10.z.number().int().positive(),
|
|
2061
|
+
repo: import_zod10.z.object({
|
|
2062
|
+
owner: import_zod10.z.string(),
|
|
2063
|
+
name: import_zod10.z.string()
|
|
2064
|
+
}),
|
|
2065
|
+
stages: import_zod10.z.array(pipelineStageResultSchema),
|
|
2066
|
+
status: import_zod10.z.enum(PIPELINE_STATUSES),
|
|
2067
|
+
branchName: import_zod10.z.string().optional(),
|
|
2068
|
+
prNumber: import_zod10.z.number().int().positive().optional(),
|
|
2069
|
+
classification: issueClassificationSchema.optional(),
|
|
2070
|
+
createdAt: import_zod10.z.number(),
|
|
2071
|
+
updatedAt: import_zod10.z.number()
|
|
2072
|
+
});
|
|
2010
2073
|
gatewayConfigSchema = import_zod9.z.object({
|
|
2011
2074
|
url: import_zod9.z.string().url(),
|
|
2012
2075
|
authToken: import_zod9.z.string().optional(),
|
|
@@ -2043,6 +2106,9 @@ var init_dist = __esm({
|
|
|
2043
2106
|
timeout: import_zod9.z.number().int().positive().default(3e5),
|
|
2044
2107
|
permissionMode: import_zod9.z.string().default("default")
|
|
2045
2108
|
});
|
|
2109
|
+
pipelineConfigSchema = import_zod9.z.object({
|
|
2110
|
+
enabledStages: import_zod9.z.array(import_zod9.z.enum(PIPELINE_STAGES)).default(["triage", "research", "inspect", "plan", "implement"])
|
|
2111
|
+
});
|
|
2046
2112
|
moxxyConfigSchema = import_zod9.z.object({
|
|
2047
2113
|
version: import_zod9.z.number().int().positive().default(1),
|
|
2048
2114
|
sdk: sdkProviderSchema,
|
|
@@ -2051,129 +2117,67 @@ var init_dist = __esm({
|
|
|
2051
2117
|
webhook: webhookServerConfigSchema.optional(),
|
|
2052
2118
|
repos: import_zod9.z.array(watchedRepoSchema).default([]),
|
|
2053
2119
|
agent: agentRunConfigSchema.optional(),
|
|
2120
|
+
pipeline: pipelineConfigSchema.optional(),
|
|
2054
2121
|
claude: claudeConfigSchema.optional()
|
|
2055
2122
|
});
|
|
2056
|
-
agentCommandResultSchema =
|
|
2057
|
-
success:
|
|
2058
|
-
command:
|
|
2059
|
-
data:
|
|
2060
|
-
error:
|
|
2061
|
-
code:
|
|
2062
|
-
message:
|
|
2063
|
-
details:
|
|
2123
|
+
agentCommandResultSchema = import_zod11.z.object({
|
|
2124
|
+
success: import_zod11.z.boolean(),
|
|
2125
|
+
command: import_zod11.z.string(),
|
|
2126
|
+
data: import_zod11.z.unknown().optional(),
|
|
2127
|
+
error: import_zod11.z.object({
|
|
2128
|
+
code: import_zod11.z.string(),
|
|
2129
|
+
message: import_zod11.z.string(),
|
|
2130
|
+
details: import_zod11.z.string().optional()
|
|
2064
2131
|
}).optional(),
|
|
2065
|
-
duration_ms:
|
|
2132
|
+
duration_ms: import_zod11.z.number()
|
|
2066
2133
|
});
|
|
2067
|
-
argDefSchema =
|
|
2068
|
-
name:
|
|
2069
|
-
description:
|
|
2070
|
-
required:
|
|
2071
|
-
type:
|
|
2134
|
+
argDefSchema = import_zod11.z.object({
|
|
2135
|
+
name: import_zod11.z.string(),
|
|
2136
|
+
description: import_zod11.z.string(),
|
|
2137
|
+
required: import_zod11.z.boolean().default(false),
|
|
2138
|
+
type: import_zod11.z.enum(["string", "number", "boolean"]).default("string")
|
|
2072
2139
|
});
|
|
2073
|
-
optionDefSchema =
|
|
2074
|
-
name:
|
|
2075
|
-
short:
|
|
2076
|
-
description:
|
|
2077
|
-
required:
|
|
2078
|
-
type:
|
|
2079
|
-
defaultValue:
|
|
2140
|
+
optionDefSchema = import_zod11.z.object({
|
|
2141
|
+
name: import_zod11.z.string(),
|
|
2142
|
+
short: import_zod11.z.string().optional(),
|
|
2143
|
+
description: import_zod11.z.string(),
|
|
2144
|
+
required: import_zod11.z.boolean().default(false),
|
|
2145
|
+
type: import_zod11.z.enum(["string", "number", "boolean"]).default("string"),
|
|
2146
|
+
defaultValue: import_zod11.z.unknown().optional()
|
|
2080
2147
|
});
|
|
2081
|
-
agentCLICommandDefSchema =
|
|
2082
|
-
name:
|
|
2083
|
-
description:
|
|
2084
|
-
args:
|
|
2085
|
-
options:
|
|
2086
|
-
examples:
|
|
2148
|
+
agentCLICommandDefSchema = import_zod11.z.object({
|
|
2149
|
+
name: import_zod11.z.string(),
|
|
2150
|
+
description: import_zod11.z.string(),
|
|
2151
|
+
args: import_zod11.z.array(argDefSchema),
|
|
2152
|
+
options: import_zod11.z.array(optionDefSchema),
|
|
2153
|
+
examples: import_zod11.z.array(import_zod11.z.string())
|
|
2087
2154
|
});
|
|
2088
|
-
workflowStepSchema =
|
|
2089
|
-
id:
|
|
2090
|
-
plugin:
|
|
2091
|
-
command:
|
|
2092
|
-
args:
|
|
2093
|
-
description:
|
|
2094
|
-
dependsOn:
|
|
2095
|
-
optional:
|
|
2155
|
+
workflowStepSchema = import_zod11.z.object({
|
|
2156
|
+
id: import_zod11.z.string(),
|
|
2157
|
+
plugin: import_zod11.z.string(),
|
|
2158
|
+
command: import_zod11.z.string(),
|
|
2159
|
+
args: import_zod11.z.record(import_zod11.z.unknown()),
|
|
2160
|
+
description: import_zod11.z.string(),
|
|
2161
|
+
dependsOn: import_zod11.z.array(import_zod11.z.string()).optional(),
|
|
2162
|
+
optional: import_zod11.z.boolean().optional()
|
|
2096
2163
|
});
|
|
2097
|
-
workflowSchema =
|
|
2098
|
-
id:
|
|
2099
|
-
name:
|
|
2100
|
-
description:
|
|
2101
|
-
steps:
|
|
2102
|
-
context:
|
|
2164
|
+
workflowSchema = import_zod11.z.object({
|
|
2165
|
+
id: import_zod11.z.string(),
|
|
2166
|
+
name: import_zod11.z.string(),
|
|
2167
|
+
description: import_zod11.z.string(),
|
|
2168
|
+
steps: import_zod11.z.array(workflowStepSchema),
|
|
2169
|
+
context: import_zod11.z.record(import_zod11.z.unknown())
|
|
2103
2170
|
});
|
|
2104
|
-
workflowStepResultSchema =
|
|
2105
|
-
stepId:
|
|
2171
|
+
workflowStepResultSchema = import_zod11.z.object({
|
|
2172
|
+
stepId: import_zod11.z.string(),
|
|
2106
2173
|
result: agentCommandResultSchema,
|
|
2107
|
-
skipped:
|
|
2108
|
-
});
|
|
2109
|
-
workflowResultSchema = import_zod10.z.object({
|
|
2110
|
-
workflowId: import_zod10.z.string(),
|
|
2111
|
-
success: import_zod10.z.boolean(),
|
|
2112
|
-
stepResults: import_zod10.z.array(workflowStepResultSchema),
|
|
2113
|
-
duration_ms: import_zod10.z.number()
|
|
2114
|
-
});
|
|
2115
|
-
githubIssuePayloadSchema = import_zod11.z.object({
|
|
2116
|
-
action: import_zod11.z.string(),
|
|
2117
|
-
issueNumber: import_zod11.z.number().int().positive(),
|
|
2118
|
-
title: import_zod11.z.string(),
|
|
2119
|
-
body: import_zod11.z.string().nullable(),
|
|
2120
|
-
labels: import_zod11.z.array(import_zod11.z.string()),
|
|
2121
|
-
author: import_zod11.z.string(),
|
|
2122
|
-
repo: import_zod11.z.object({
|
|
2123
|
-
owner: import_zod11.z.string(),
|
|
2124
|
-
name: import_zod11.z.string(),
|
|
2125
|
-
fullName: import_zod11.z.string(),
|
|
2126
|
-
defaultBranch: import_zod11.z.string(),
|
|
2127
|
-
cloneUrl: import_zod11.z.string()
|
|
2128
|
-
}),
|
|
2129
|
-
url: import_zod11.z.string().url(),
|
|
2130
|
-
createdAt: import_zod11.z.string()
|
|
2131
|
-
});
|
|
2132
|
-
ISSUE_TYPES = ["feature", "bug", "refactor", "docs", "test", "chore"];
|
|
2133
|
-
ISSUE_PRIORITIES = ["low", "medium", "high", "urgent"];
|
|
2134
|
-
ISSUE_COMPLEXITIES = ["trivial", "small", "medium", "large", "epic"];
|
|
2135
|
-
issueClassificationSchema = import_zod11.z.object({
|
|
2136
|
-
type: import_zod11.z.enum(ISSUE_TYPES),
|
|
2137
|
-
priority: import_zod11.z.enum(ISSUE_PRIORITIES),
|
|
2138
|
-
complexity: import_zod11.z.enum(ISSUE_COMPLEXITIES),
|
|
2139
|
-
confidence: import_zod11.z.number().min(0).max(1),
|
|
2140
|
-
reasoning: import_zod11.z.string()
|
|
2174
|
+
skipped: import_zod11.z.boolean().default(false)
|
|
2141
2175
|
});
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
"implement"
|
|
2148
|
-
];
|
|
2149
|
-
PIPELINE_STATUSES = [
|
|
2150
|
-
"pending",
|
|
2151
|
-
"running",
|
|
2152
|
-
"completed",
|
|
2153
|
-
"failed",
|
|
2154
|
-
"cancelled"
|
|
2155
|
-
];
|
|
2156
|
-
pipelineStageResultSchema = import_zod11.z.object({
|
|
2157
|
-
stage: import_zod11.z.enum(PIPELINE_STAGES),
|
|
2158
|
-
status: import_zod11.z.enum(PIPELINE_STATUSES),
|
|
2159
|
-
output: import_zod11.z.unknown().optional(),
|
|
2160
|
-
error: import_zod11.z.string().optional(),
|
|
2161
|
-
duration_ms: import_zod11.z.number().optional()
|
|
2162
|
-
});
|
|
2163
|
-
pipelineRunSchema = import_zod11.z.object({
|
|
2164
|
-
id: import_zod11.z.string(),
|
|
2165
|
-
issueNumber: import_zod11.z.number().int().positive(),
|
|
2166
|
-
repo: import_zod11.z.object({
|
|
2167
|
-
owner: import_zod11.z.string(),
|
|
2168
|
-
name: import_zod11.z.string()
|
|
2169
|
-
}),
|
|
2170
|
-
stages: import_zod11.z.array(pipelineStageResultSchema),
|
|
2171
|
-
status: import_zod11.z.enum(PIPELINE_STATUSES),
|
|
2172
|
-
branchName: import_zod11.z.string().optional(),
|
|
2173
|
-
prNumber: import_zod11.z.number().int().positive().optional(),
|
|
2174
|
-
classification: issueClassificationSchema.optional(),
|
|
2175
|
-
createdAt: import_zod11.z.number(),
|
|
2176
|
-
updatedAt: import_zod11.z.number()
|
|
2176
|
+
workflowResultSchema = import_zod11.z.object({
|
|
2177
|
+
workflowId: import_zod11.z.string(),
|
|
2178
|
+
success: import_zod11.z.boolean(),
|
|
2179
|
+
stepResults: import_zod11.z.array(workflowStepResultSchema),
|
|
2180
|
+
duration_ms: import_zod11.z.number()
|
|
2177
2181
|
});
|
|
2178
2182
|
}
|
|
2179
2183
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
log,
|
|
8
8
|
output,
|
|
9
9
|
success
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZTFAXFQJ.mjs";
|
|
11
11
|
|
|
12
12
|
// src/index.ts
|
|
13
13
|
async function run() {
|
|
14
|
-
const { createProgram: createProgram2 } = await import("./cli-
|
|
14
|
+
const { createProgram: createProgram2 } = await import("./cli-T3ZFKHEG.mjs");
|
|
15
15
|
const program = createProgram2();
|
|
16
16
|
await program.parseAsync(process.argv);
|
|
17
17
|
}
|