@moxxy/cli 0.0.5 → 0.0.6
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-CAUXONEF.mjs +1131 -0
- package/dist/chunk-FXY3GPVA.mjs +1126 -0
- package/dist/chunk-QDVRLN6D.mjs +1121 -0
- package/dist/chunk-UALWCJ7F.mjs +1131 -0
- package/dist/chunk-UQZKODNW.mjs +1124 -0
- package/dist/cli-CGO2LZ6Z.mjs +8 -0
- package/dist/cli-DDRVVNAV.mjs +8 -0
- package/dist/cli-NJXXTQYF.mjs +8 -0
- package/dist/cli-TUX22CZP.mjs +8 -0
- package/dist/cli-XJVH7EEP.mjs +8 -0
- package/dist/dist-KLSB6YHV.mjs +6964 -0
- package/dist/index.js +42 -18
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -24513,12 +24513,21 @@ var init_dist7 = __esm({
|
|
|
24513
24513
|
}
|
|
24514
24514
|
}
|
|
24515
24515
|
async commentOnIssue(owner, repo, issueNumber, body) {
|
|
24516
|
-
await this.octokit.issues.createComment({
|
|
24516
|
+
const { data } = await this.octokit.issues.createComment({
|
|
24517
24517
|
owner,
|
|
24518
24518
|
repo,
|
|
24519
24519
|
issue_number: issueNumber,
|
|
24520
24520
|
body
|
|
24521
24521
|
});
|
|
24522
|
+
return data.id;
|
|
24523
|
+
}
|
|
24524
|
+
async updateComment(owner, repo, commentId, body) {
|
|
24525
|
+
await this.octokit.issues.updateComment({
|
|
24526
|
+
owner,
|
|
24527
|
+
repo,
|
|
24528
|
+
comment_id: commentId,
|
|
24529
|
+
body
|
|
24530
|
+
});
|
|
24522
24531
|
}
|
|
24523
24532
|
async createBranch(owner, repo, branchName, fromRef) {
|
|
24524
24533
|
const { data: ref } = await this.octokit.git.getRef({
|
|
@@ -24601,8 +24610,9 @@ var init_dist7 = __esm({
|
|
|
24601
24610
|
updatedAt: Date.now()
|
|
24602
24611
|
};
|
|
24603
24612
|
const activeStages = PIPELINE_STAGES.filter((s) => this.enabledStages.has(s));
|
|
24613
|
+
let commentId;
|
|
24604
24614
|
try {
|
|
24605
|
-
await this.github.commentOnIssue(
|
|
24615
|
+
commentId = await this.github.commentOnIssue(
|
|
24606
24616
|
payload.repo.owner,
|
|
24607
24617
|
payload.repo.name,
|
|
24608
24618
|
payload.issueNumber,
|
|
@@ -24678,23 +24688,27 @@ Automated implementation by Moxxy.${classificationNote}`,
|
|
|
24678
24688
|
pipelineRun.prNumber = prNumber;
|
|
24679
24689
|
pipelineRun.status = "completed";
|
|
24680
24690
|
pipelineRun.updatedAt = Date.now();
|
|
24681
|
-
|
|
24682
|
-
|
|
24683
|
-
|
|
24684
|
-
|
|
24685
|
-
|
|
24686
|
-
|
|
24691
|
+
if (commentId) {
|
|
24692
|
+
await this.github.updateComment(
|
|
24693
|
+
payload.repo.owner,
|
|
24694
|
+
payload.repo.name,
|
|
24695
|
+
commentId,
|
|
24696
|
+
buildSuccessComment(pipelineRun, payload)
|
|
24697
|
+
);
|
|
24698
|
+
}
|
|
24687
24699
|
return pipelineRun;
|
|
24688
24700
|
} catch (error2) {
|
|
24689
24701
|
pipelineRun.status = "failed";
|
|
24690
24702
|
pipelineRun.updatedAt = Date.now();
|
|
24691
|
-
|
|
24692
|
-
|
|
24693
|
-
|
|
24694
|
-
|
|
24695
|
-
|
|
24696
|
-
|
|
24697
|
-
|
|
24703
|
+
if (commentId) {
|
|
24704
|
+
await this.github.updateComment(
|
|
24705
|
+
payload.repo.owner,
|
|
24706
|
+
payload.repo.name,
|
|
24707
|
+
commentId,
|
|
24708
|
+
buildFailureComment(pipelineRun, error2)
|
|
24709
|
+
).catch(() => {
|
|
24710
|
+
});
|
|
24711
|
+
}
|
|
24698
24712
|
return pipelineRun;
|
|
24699
24713
|
}
|
|
24700
24714
|
}
|
|
@@ -24925,12 +24939,22 @@ function registerStartCommand(program) {
|
|
|
24925
24939
|
connectSpinner.succeed(`Connected to ${sdkName}`);
|
|
24926
24940
|
const supervisorSpinner = spinner("Initializing agent supervisor");
|
|
24927
24941
|
const supervisor = new MoltAgentSupervisor2(sdk);
|
|
24928
|
-
|
|
24942
|
+
let agentId = config.agent?.moltAgentId;
|
|
24943
|
+
if (!agentId) {
|
|
24944
|
+
const agentList = await sdk.agents.list();
|
|
24945
|
+
const agents = agentList.agents ?? [];
|
|
24946
|
+
if (agents.length > 0) {
|
|
24947
|
+
const picked = agentList.defaultAgentId && agents.find((a) => (a.agentId || a.id) === agentList.defaultAgentId) || agents[0];
|
|
24948
|
+
agentId = picked.agentId || picked.id;
|
|
24949
|
+
}
|
|
24950
|
+
}
|
|
24929
24951
|
if (agentId) {
|
|
24930
24952
|
await supervisor.assignAgent(agentId, "developer");
|
|
24931
24953
|
supervisorSpinner.succeed(`Agent ${import_chalk.default.bold(agentId)} assigned`);
|
|
24932
24954
|
} else {
|
|
24933
|
-
supervisorSpinner.
|
|
24955
|
+
supervisorSpinner.warn(
|
|
24956
|
+
`No agents found. Run ${import_chalk.default.cyan("moxxy agent create <id>")} to create one.`
|
|
24957
|
+
);
|
|
24934
24958
|
}
|
|
24935
24959
|
const integrationManager = new IntegrationManager2();
|
|
24936
24960
|
const github = new GitHubIntegration2();
|
|
@@ -25092,7 +25116,7 @@ __export(cli_exports, {
|
|
|
25092
25116
|
});
|
|
25093
25117
|
function createProgram() {
|
|
25094
25118
|
const program = new import_commander.Command();
|
|
25095
|
-
program.name("moxxy").description("Moxxy - Agent orchestration platform").version("0.0.
|
|
25119
|
+
program.name("moxxy").description("Moxxy - Agent orchestration platform").version("0.0.6");
|
|
25096
25120
|
registerStartCommand(program);
|
|
25097
25121
|
registerRepoCommand(program);
|
|
25098
25122
|
registerConfigCommand(program);
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConfigManager,
|
|
3
3
|
createProgram
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CAUXONEF.mjs";
|
|
5
5
|
import "./chunk-GSNMMI3H.mjs";
|
|
6
6
|
import "./chunk-6DZX6EAA.mjs";
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
9
9
|
async function run() {
|
|
10
|
-
const { createProgram: createProgram2 } = await import("./cli-
|
|
10
|
+
const { createProgram: createProgram2 } = await import("./cli-CGO2LZ6Z.mjs");
|
|
11
11
|
const program = createProgram2();
|
|
12
12
|
await program.parseAsync(process.argv);
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moxxy/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "User-facing CLI for Moxxy agent orchestration",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"tsup": "^8.0.1",
|
|
52
52
|
"typescript": "^5.7.0",
|
|
53
53
|
"vitest": "^2.1.0",
|
|
54
|
-
"@moxxy/
|
|
54
|
+
"@moxxy/types": "1.0.0",
|
|
55
55
|
"@moxxy/claude": "0.1.0",
|
|
56
56
|
"@moxxy/agents": "1.0.0",
|
|
57
|
+
"@moxxy/molt": "1.0.0",
|
|
57
58
|
"@moxxy/integration-github": "1.0.0",
|
|
58
|
-
"@moxxy/
|
|
59
|
-
"@moxxy/molt": "1.0.0"
|
|
59
|
+
"@moxxy/integration-base": "1.0.0"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "tsup",
|