@agentrix/agentrix-run 0.5.0 → 0.6.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 +3 -5
- package/dist/index.mjs +3 -5
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5,6 +5,7 @@ var shared = require('@agentrix/shared');
|
|
|
5
5
|
|
|
6
6
|
const DEFAULT_RESPONSE_MODE = "stream";
|
|
7
7
|
const DEFAULT_WAIT_TIMEOUT_SECONDS = 1800;
|
|
8
|
+
const DEFAULT_AGENTRIX_BASE_URL = "https://agentrix.xmz.ai";
|
|
8
9
|
function usage() {
|
|
9
10
|
return [
|
|
10
11
|
"Usage: agentrix-run --agent <agent> --prompt <prompt> [options]",
|
|
@@ -26,7 +27,7 @@ function usage() {
|
|
|
26
27
|
" --capability-profile <name>",
|
|
27
28
|
" --runner-id <cloud-id|machine-id>",
|
|
28
29
|
" --result-file <path>",
|
|
29
|
-
|
|
30
|
+
` --base-url <url> (default: ${DEFAULT_AGENTRIX_BASE_URL})`,
|
|
30
31
|
" --api-key <api-key>",
|
|
31
32
|
" --metadata <key=value>",
|
|
32
33
|
" --help"
|
|
@@ -451,10 +452,7 @@ function buildRequest(options, detected) {
|
|
|
451
452
|
return shared.CreateCiRunRequestSchema.parse(request);
|
|
452
453
|
}
|
|
453
454
|
function resolveBaseUrl(options) {
|
|
454
|
-
const value = options.baseUrl || process.env.AGENTRIX_BASE_URL;
|
|
455
|
-
if (!value) {
|
|
456
|
-
throw new Error("Missing --base-url and AGENTRIX_BASE_URL");
|
|
457
|
-
}
|
|
455
|
+
const value = options.baseUrl || process.env.AGENTRIX_BASE_URL || DEFAULT_AGENTRIX_BASE_URL;
|
|
458
456
|
return value.replace(/\/+$/, "");
|
|
459
457
|
}
|
|
460
458
|
function resolveApiKey(options) {
|
package/dist/index.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import { CreateCiRunRequestSchema, CiRunStatusResponseSchema, CreateCiRunRespons
|
|
|
3
3
|
|
|
4
4
|
const DEFAULT_RESPONSE_MODE = "stream";
|
|
5
5
|
const DEFAULT_WAIT_TIMEOUT_SECONDS = 1800;
|
|
6
|
+
const DEFAULT_AGENTRIX_BASE_URL = "https://agentrix.xmz.ai";
|
|
6
7
|
function usage() {
|
|
7
8
|
return [
|
|
8
9
|
"Usage: agentrix-run --agent <agent> --prompt <prompt> [options]",
|
|
@@ -24,7 +25,7 @@ function usage() {
|
|
|
24
25
|
" --capability-profile <name>",
|
|
25
26
|
" --runner-id <cloud-id|machine-id>",
|
|
26
27
|
" --result-file <path>",
|
|
27
|
-
|
|
28
|
+
` --base-url <url> (default: ${DEFAULT_AGENTRIX_BASE_URL})`,
|
|
28
29
|
" --api-key <api-key>",
|
|
29
30
|
" --metadata <key=value>",
|
|
30
31
|
" --help"
|
|
@@ -449,10 +450,7 @@ function buildRequest(options, detected) {
|
|
|
449
450
|
return CreateCiRunRequestSchema.parse(request);
|
|
450
451
|
}
|
|
451
452
|
function resolveBaseUrl(options) {
|
|
452
|
-
const value = options.baseUrl || process.env.AGENTRIX_BASE_URL;
|
|
453
|
-
if (!value) {
|
|
454
|
-
throw new Error("Missing --base-url and AGENTRIX_BASE_URL");
|
|
455
|
-
}
|
|
453
|
+
const value = options.baseUrl || process.env.AGENTRIX_BASE_URL || DEFAULT_AGENTRIX_BASE_URL;
|
|
456
454
|
return value.replace(/\/+$/, "");
|
|
457
455
|
}
|
|
458
456
|
function resolveApiKey(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentrix/agentrix-run",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.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.33.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": ">=20",
|