@neriros/ralphy 2.16.6 → 2.16.7
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/cli/index.js +23 -3
- package/dist/mcp/index.js +2 -0
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -35029,8 +35029,8 @@ import { readFileSync as readFileSync2 } from "fs";
|
|
|
35029
35029
|
import { resolve } from "path";
|
|
35030
35030
|
function getVersion() {
|
|
35031
35031
|
try {
|
|
35032
|
-
if ("2.16.
|
|
35033
|
-
return "2.16.
|
|
35032
|
+
if ("2.16.7")
|
|
35033
|
+
return "2.16.7";
|
|
35034
35034
|
} catch {}
|
|
35035
35035
|
const dirsToTry = [];
|
|
35036
35036
|
try {
|
|
@@ -35121,6 +35121,7 @@ async function parseArgs(argv) {
|
|
|
35121
35121
|
log: false,
|
|
35122
35122
|
verbose: false,
|
|
35123
35123
|
manualTest: false,
|
|
35124
|
+
fromAgent: false,
|
|
35124
35125
|
linearTeam: "",
|
|
35125
35126
|
linearAssignee: "",
|
|
35126
35127
|
pollInterval: 60,
|
|
@@ -35321,6 +35322,9 @@ async function parseArgs(argv) {
|
|
|
35321
35322
|
case "--manual-test":
|
|
35322
35323
|
result2.manualTest = true;
|
|
35323
35324
|
break;
|
|
35325
|
+
case "--from-agent":
|
|
35326
|
+
result2.fromAgent = true;
|
|
35327
|
+
break;
|
|
35324
35328
|
default:
|
|
35325
35329
|
if (VALID_MODES.has(arg)) {
|
|
35326
35330
|
result2.mode = arg;
|
|
@@ -39426,6 +39430,7 @@ var init_types2 = __esm(() => {
|
|
|
39426
39430
|
engine: exports_external.enum(["claude", "codex"]).default("claude"),
|
|
39427
39431
|
model: exports_external.string().default("opus"),
|
|
39428
39432
|
manualTest: exports_external.boolean().default(false),
|
|
39433
|
+
createPr: exports_external.boolean().default(false),
|
|
39429
39434
|
usage: UsageSchema.default({}),
|
|
39430
39435
|
history: exports_external.array(HistoryEntrySchema).default([]),
|
|
39431
39436
|
metadata: exports_external.object({ branch: exports_external.string().optional() }).default({})
|
|
@@ -61282,6 +61287,7 @@ PR: ${prUrl}` : ""
|
|
|
61282
61287
|
c.push("--verbose");
|
|
61283
61288
|
if (args.manualTest || cfg.enableManualTest)
|
|
61284
61289
|
c.push("--manual-test");
|
|
61290
|
+
c.push("--from-agent");
|
|
61285
61291
|
return c;
|
|
61286
61292
|
}
|
|
61287
61293
|
function defaultSpawn(changeName, cmd, cwd2, note) {
|
|
@@ -66885,6 +66891,7 @@ function buildInitialState(options) {
|
|
|
66885
66891
|
engine: options.engine ?? "claude",
|
|
66886
66892
|
model: options.model ?? "opus",
|
|
66887
66893
|
manualTest: options.manualTest ?? false,
|
|
66894
|
+
createPr: options.createPr ?? false,
|
|
66888
66895
|
createdAt: now2,
|
|
66889
66896
|
lastModified: now2,
|
|
66890
66897
|
metadata: { branch }
|
|
@@ -71884,6 +71891,17 @@ function buildTaskPrompt(state, taskDir) {
|
|
|
71884
71891
|
`;
|
|
71885
71892
|
prompt += `Commit all changed files yourself before finishing \u2014 stage files individually (e.g. \`git add path/to/file\`), never \`git add -A\` or \`git commit -am\`. Nothing is committed automatically after you exit.
|
|
71886
71893
|
`;
|
|
71894
|
+
if (state.createPr) {
|
|
71895
|
+
prompt += `
|
|
71896
|
+
When all tasks are complete and all files are committed, push your branch and open a pull request:
|
|
71897
|
+
`;
|
|
71898
|
+
prompt += ` git push -u origin HEAD
|
|
71899
|
+
`;
|
|
71900
|
+
prompt += ` gh pr create --title "${state.name}" --body "Summary of changes for ${state.name}"
|
|
71901
|
+
`;
|
|
71902
|
+
prompt += `Use the change name as the PR title and write a concise summary of the implementation in the body.
|
|
71903
|
+
`;
|
|
71904
|
+
}
|
|
71887
71905
|
return prompt;
|
|
71888
71906
|
}
|
|
71889
71907
|
function checkStopSignal(taskDir, stateDir) {
|
|
@@ -72051,7 +72069,8 @@ function useLoop(opts) {
|
|
|
72051
72069
|
prompt: opts.prompt,
|
|
72052
72070
|
engine: opts.engine,
|
|
72053
72071
|
model: opts.model,
|
|
72054
|
-
manualTest: opts.manualTest
|
|
72072
|
+
manualTest: opts.manualTest,
|
|
72073
|
+
createPr: opts.createPr ?? false
|
|
72055
72074
|
});
|
|
72056
72075
|
writeState(stateDir, currentState);
|
|
72057
72076
|
}
|
|
@@ -73616,6 +73635,7 @@ function TaskModeWrapper({ args, statesDir, tasksDir, projectRoot }) {
|
|
|
73616
73635
|
log: args.log,
|
|
73617
73636
|
verbose: args.verbose,
|
|
73618
73637
|
manualTest,
|
|
73638
|
+
createPr: args.fromAgent,
|
|
73619
73639
|
statesDir,
|
|
73620
73640
|
tasksDir,
|
|
73621
73641
|
changeStore: new OpenSpecChangeStore
|
package/dist/mcp/index.js
CHANGED
|
@@ -23967,6 +23967,7 @@ var StateSchema = exports_external.object({
|
|
|
23967
23967
|
engine: exports_external.enum(["claude", "codex"]).default("claude"),
|
|
23968
23968
|
model: exports_external.string().default("opus"),
|
|
23969
23969
|
manualTest: exports_external.boolean().default(false),
|
|
23970
|
+
createPr: exports_external.boolean().default(false),
|
|
23970
23971
|
usage: UsageSchema.default({}),
|
|
23971
23972
|
history: exports_external.array(HistoryEntrySchema).default([]),
|
|
23972
23973
|
metadata: exports_external.object({ branch: exports_external.string().optional() }).default({})
|
|
@@ -24033,6 +24034,7 @@ function buildInitialState(options) {
|
|
|
24033
24034
|
engine: options.engine ?? "claude",
|
|
24034
24035
|
model: options.model ?? "opus",
|
|
24035
24036
|
manualTest: options.manualTest ?? false,
|
|
24037
|
+
createPr: options.createPr ?? false,
|
|
24036
24038
|
createdAt: now,
|
|
24037
24039
|
lastModified: now,
|
|
24038
24040
|
metadata: { branch }
|