@multiplayer-app/cli 2.0.2 → 2.0.3
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/index.js +51 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -163604,13 +163604,7 @@ var processClaudeStreamEvent = (event, callbacks, pendingToolCallRef, runningToo
|
|
|
163604
163604
|
}
|
|
163605
163605
|
};
|
|
163606
163606
|
var runOpenAiLoop = async (client, model, messages, projectDir, abortSignal, callbacks, handleExtraTool) => {
|
|
163607
|
-
const {
|
|
163608
|
-
onProgress,
|
|
163609
|
-
onToolCall,
|
|
163610
|
-
onToolCallResult,
|
|
163611
|
-
onTurnStart,
|
|
163612
|
-
confirmToolCall
|
|
163613
|
-
} = callbacks;
|
|
163607
|
+
const { onProgress, onToolCall, onToolCallResult, onTurnStart, confirmToolCall } = callbacks;
|
|
163614
163608
|
let filesRead = 0;
|
|
163615
163609
|
let patches = [];
|
|
163616
163610
|
let finalContent = "";
|
|
@@ -163746,6 +163740,7 @@ var resolveIssueWithClaudeCode = async (_issue, projectDir, prompt, model, abort
|
|
|
163746
163740
|
prompt,
|
|
163747
163741
|
options: {
|
|
163748
163742
|
cwd: projectDir,
|
|
163743
|
+
executable: "node",
|
|
163749
163744
|
permissionMode: "bypassPermissions",
|
|
163750
163745
|
systemPrompt: buildSystemPrompt(projectDir),
|
|
163751
163746
|
maxTurns: 1000,
|
|
@@ -163777,11 +163772,7 @@ var resolveIssueWithClaudeCode = async (_issue, projectDir, prompt, model, abort
|
|
|
163777
163772
|
if (abortSignal?.aborted)
|
|
163778
163773
|
return [];
|
|
163779
163774
|
const status = await git.status();
|
|
163780
|
-
const changedFiles = [
|
|
163781
|
-
...status.modified,
|
|
163782
|
-
...status.created,
|
|
163783
|
-
...status.not_added
|
|
163784
|
-
];
|
|
163775
|
+
const changedFiles = [...status.modified, ...status.created, ...status.not_added];
|
|
163785
163776
|
return changedFiles.map((filePath) => ({
|
|
163786
163777
|
filePath,
|
|
163787
163778
|
newContent: fs4.readFileSync(path11.resolve(projectDir, filePath), "utf-8")
|
|
@@ -163826,6 +163817,7 @@ ${lastMessage?.content}` : lastMessage?.content;
|
|
|
163826
163817
|
prompt,
|
|
163827
163818
|
options: {
|
|
163828
163819
|
cwd: projectDir,
|
|
163820
|
+
executable: "node",
|
|
163829
163821
|
permissionMode: "bypassPermissions",
|
|
163830
163822
|
systemPrompt: buildSystemPrompt(projectDir),
|
|
163831
163823
|
maxTurns: 250,
|
|
@@ -166121,11 +166113,57 @@ function loadProfile(profileName, projectDir) {
|
|
|
166121
166113
|
const merged = { ...defaultRaw, ...profileRaw };
|
|
166122
166114
|
return iniToProfileConfig(merged);
|
|
166123
166115
|
}
|
|
166116
|
+
// package.json
|
|
166117
|
+
var package_default2 = {
|
|
166118
|
+
name: "@multiplayer-app/cli",
|
|
166119
|
+
version: "2.0.3",
|
|
166120
|
+
description: "Multiplayer CLI",
|
|
166121
|
+
main: "dist/index.js",
|
|
166122
|
+
bin: {
|
|
166123
|
+
multiplayer: "./dist/index.js"
|
|
166124
|
+
},
|
|
166125
|
+
scripts: {
|
|
166126
|
+
build: "bun build src/index.tsx --outdir dist --target bun --format esm --sourcemap=none --external @anthropic-ai/claude-agent-sdk && rm -f dist/index.js.map",
|
|
166127
|
+
start: "bun dist/index.js",
|
|
166128
|
+
dev: "bun src/index.tsx",
|
|
166129
|
+
typecheck: "tsc --noEmit",
|
|
166130
|
+
lint: "eslint src/**/*.ts --config eslint.config.js",
|
|
166131
|
+
prepublishOnly: "npm run build"
|
|
166132
|
+
},
|
|
166133
|
+
license: "MIT",
|
|
166134
|
+
dependencies: {
|
|
166135
|
+
"@anthropic-ai/claude-agent-sdk": "0.2.89",
|
|
166136
|
+
"@anthropic-ai/sdk": "^0.78.0",
|
|
166137
|
+
"@opentui/core": "0.1.93",
|
|
166138
|
+
"@opentui/react": "0.1.93",
|
|
166139
|
+
commander: "14.0.3",
|
|
166140
|
+
dotenv: "16.0.0",
|
|
166141
|
+
jsonwebtoken: "9.0.3",
|
|
166142
|
+
mongoose: "9.3.3",
|
|
166143
|
+
openai: "6.33.0",
|
|
166144
|
+
react: "19.2.4",
|
|
166145
|
+
"simple-git": "3.33.0",
|
|
166146
|
+
"socket.io-client": "4.8.3",
|
|
166147
|
+
superagent: "10.3.0"
|
|
166148
|
+
},
|
|
166149
|
+
overrides: {
|
|
166150
|
+
react: "19.2.4"
|
|
166151
|
+
},
|
|
166152
|
+
devDependencies: {
|
|
166153
|
+
"@sindresorhus/tsconfig": "^8.1.0",
|
|
166154
|
+
"@types/jsonwebtoken": "^9.0.10",
|
|
166155
|
+
"@types/node": "25.5.0",
|
|
166156
|
+
"@types/react": "19.2.14",
|
|
166157
|
+
"@types/superagent": "8.1.9",
|
|
166158
|
+
eslint: "10.1.0",
|
|
166159
|
+
typescript: "6.0.2"
|
|
166160
|
+
}
|
|
166161
|
+
};
|
|
166124
166162
|
|
|
166125
166163
|
// src/cli/flags.ts
|
|
166126
166164
|
function parseFlags(argv) {
|
|
166127
166165
|
const program2 = new Command;
|
|
166128
|
-
program2.name("multiplayer").description("Multiplayer debugging agent \u2014 automatically resolves issues using AI").version(
|
|
166166
|
+
program2.name("multiplayer").description("Multiplayer debugging agent \u2014 automatically resolves issues using AI").version(package_default2.version).option("--headless", "Run without TUI (structured log output, requires full config); also set via MULTIPLAYER_HEADLESS=true").option("--profile <name>", 'Config profile to use from .multiplayer/config (default: "default"); also set via MULTIPLAYER_PROFILE').option("--url <url>", "Multiplayer base API URL").option("--api-key <key>", "Multiplayer API key").option("--name <name>", "Agent name (defaults to hostname)").option("--dir <path>", "Project directory (must be a git repo)").option("--model <name>", "AI model name (e.g. claude-sonnet-4-6, gpt-4o)").option("--model-key <key>", "API key for the AI provider").option("--model-url <url>", "Optional base URL for OpenAI-compatible APIs").option("--max-concurrent <n>", "Maximum number of issues to resolve in parallel", String(DEFAULT_MAX_CONCURRENT)).option("--no-git-branch", "Work in current branch \u2014 no worktree, no new branch, no push").option("--health-port <port>", "Port for HTTP health check endpoint (headless mode only); also set via MULTIPLAYER_HEALTH_PORT").exitOverride();
|
|
166129
166167
|
try {
|
|
166130
166168
|
program2.parse(argv);
|
|
166131
166169
|
} catch (err) {
|