@agentrix/agentrix-run 0.2.0 → 0.4.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/dist/index.cjs +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -17,6 +17,7 @@ function usage() {
|
|
|
17
17
|
" --sha <sha>",
|
|
18
18
|
" --base-ref <ref>",
|
|
19
19
|
" --head-ref <ref>",
|
|
20
|
+
" --branch-name <name>",
|
|
20
21
|
" --pr-number <number>",
|
|
21
22
|
" --issue-number <number>",
|
|
22
23
|
" --response-mode <stream|async>",
|
|
@@ -206,6 +207,10 @@ function parseArgs(argv) {
|
|
|
206
207
|
options.headRef = requireValue(argv, index, arg);
|
|
207
208
|
index += 1;
|
|
208
209
|
break;
|
|
210
|
+
case "--branch-name":
|
|
211
|
+
options.branchName = requireValue(argv, index, arg);
|
|
212
|
+
index += 1;
|
|
213
|
+
break;
|
|
209
214
|
case "--pr-number":
|
|
210
215
|
options.prNumber = parseInteger(requireValue(argv, index, arg), arg);
|
|
211
216
|
index += 1;
|
|
@@ -400,6 +405,7 @@ function buildRequest(options, detected) {
|
|
|
400
405
|
const repo = mergeRepo(options.repo, detected.repo);
|
|
401
406
|
const request = {
|
|
402
407
|
agent: options.agent,
|
|
408
|
+
responseMode: options.responseMode,
|
|
403
409
|
title: options.title,
|
|
404
410
|
prompt: options.prompt,
|
|
405
411
|
outputSchema: options.outputSchema,
|
|
@@ -414,6 +420,7 @@ function buildRequest(options, detected) {
|
|
|
414
420
|
sha: options.sha ?? detected.git?.sha,
|
|
415
421
|
baseRef: options.baseRef ?? detected.git?.baseRef,
|
|
416
422
|
headRef: options.headRef ?? detected.git?.headRef,
|
|
423
|
+
branchName: options.branchName || process.env.AGENTRIX_BRANCH_NAME,
|
|
417
424
|
prNumber: options.prNumber ?? detected.git?.prNumber,
|
|
418
425
|
issueNumber: options.issueNumber ?? detected.git?.issueNumber
|
|
419
426
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -15,6 +15,7 @@ function usage() {
|
|
|
15
15
|
" --sha <sha>",
|
|
16
16
|
" --base-ref <ref>",
|
|
17
17
|
" --head-ref <ref>",
|
|
18
|
+
" --branch-name <name>",
|
|
18
19
|
" --pr-number <number>",
|
|
19
20
|
" --issue-number <number>",
|
|
20
21
|
" --response-mode <stream|async>",
|
|
@@ -204,6 +205,10 @@ function parseArgs(argv) {
|
|
|
204
205
|
options.headRef = requireValue(argv, index, arg);
|
|
205
206
|
index += 1;
|
|
206
207
|
break;
|
|
208
|
+
case "--branch-name":
|
|
209
|
+
options.branchName = requireValue(argv, index, arg);
|
|
210
|
+
index += 1;
|
|
211
|
+
break;
|
|
207
212
|
case "--pr-number":
|
|
208
213
|
options.prNumber = parseInteger(requireValue(argv, index, arg), arg);
|
|
209
214
|
index += 1;
|
|
@@ -398,6 +403,7 @@ function buildRequest(options, detected) {
|
|
|
398
403
|
const repo = mergeRepo(options.repo, detected.repo);
|
|
399
404
|
const request = {
|
|
400
405
|
agent: options.agent,
|
|
406
|
+
responseMode: options.responseMode,
|
|
401
407
|
title: options.title,
|
|
402
408
|
prompt: options.prompt,
|
|
403
409
|
outputSchema: options.outputSchema,
|
|
@@ -412,6 +418,7 @@ function buildRequest(options, detected) {
|
|
|
412
418
|
sha: options.sha ?? detected.git?.sha,
|
|
413
419
|
baseRef: options.baseRef ?? detected.git?.baseRef,
|
|
414
420
|
headRef: options.headRef ?? detected.git?.headRef,
|
|
421
|
+
branchName: options.branchName || process.env.AGENTRIX_BRANCH_NAME,
|
|
415
422
|
prNumber: options.prNumber ?? detected.git?.prNumber,
|
|
416
423
|
issueNumber: options.issueNumber ?? detected.git?.issueNumber
|
|
417
424
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentrix/agentrix-run",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Native CI submit-and-observe wrapper for Agentrix",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"prepublishOnly": "yarn build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@agentrix/shared": "^2.
|
|
35
|
+
"@agentrix/shared": "^2.26.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": ">=20",
|