@scheduler-systems/gal-run 0.0.621 → 0.0.626
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 +13 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3955,7 +3955,7 @@ var cliVersion, defaultApiUrl, BUILD_CONSTANTS, constants_default;
|
|
|
3955
3955
|
var init_constants = __esm({
|
|
3956
3956
|
"module_6"() {
|
|
3957
3957
|
"use strict";
|
|
3958
|
-
cliVersion = true ? "0.0.
|
|
3958
|
+
cliVersion = true ? "0.0.626" : "0.0.0-dev";
|
|
3959
3959
|
defaultApiUrl = true ? "https://api.gal.run" : "http://localhost:3000";
|
|
3960
3960
|
BUILD_CONSTANTS = Object.freeze([cliVersion, defaultApiUrl]);
|
|
3961
3961
|
constants_default = BUILD_CONSTANTS;
|
|
@@ -11903,7 +11903,7 @@ function detectEnvironment() {
|
|
|
11903
11903
|
return "dev";
|
|
11904
11904
|
}
|
|
11905
11905
|
try {
|
|
11906
|
-
const version2 = true ? "0.0.
|
|
11906
|
+
const version2 = true ? "0.0.626" : void 0;
|
|
11907
11907
|
if (version2 && version2.includes("-local")) {
|
|
11908
11908
|
return "dev";
|
|
11909
11909
|
}
|
|
@@ -14584,7 +14584,7 @@ function getId() {
|
|
|
14584
14584
|
}
|
|
14585
14585
|
function getCliVersion() {
|
|
14586
14586
|
try {
|
|
14587
|
-
return true ? "0.0.
|
|
14587
|
+
return true ? "0.0.626" : "0.0.0-dev";
|
|
14588
14588
|
} catch {
|
|
14589
14589
|
return "0.0.0-dev";
|
|
14590
14590
|
}
|
|
@@ -52713,13 +52713,15 @@ var init_api_client = __esm({
|
|
|
52713
52713
|
}
|
|
52714
52714
|
// Dispatch agent (wraps existing POST /api/sessions)
|
|
52715
52715
|
async dispatchAgent(data) {
|
|
52716
|
+
const orgFromContext = data.project_context?.includes("/") ? data.project_context.split("/")[0] : void 0;
|
|
52716
52717
|
return this.request("POST", "/api/sessions", {
|
|
52717
52718
|
agent: data.agent,
|
|
52718
52719
|
initialPrompt: data.prompt,
|
|
52719
52720
|
projectContext: data.project_context,
|
|
52720
52721
|
session_type: data.session_type ?? "background",
|
|
52722
|
+
...orgFromContext ? { org: orgFromContext } : {},
|
|
52721
52723
|
...data.model ? { model: data.model } : {},
|
|
52722
|
-
...data.
|
|
52724
|
+
...data.org ? { org: data.org } : {},
|
|
52723
52725
|
...data.runner_label ? { runnerLabel: data.runner_label } : {}
|
|
52724
52726
|
});
|
|
52725
52727
|
}
|
|
@@ -58432,9 +58434,9 @@ function registerSessionTools(server, apiClient) {
|
|
|
58432
58434
|
prompt: external_exports.string().describe("What the new background agent should work on"),
|
|
58433
58435
|
project_context: external_exports.string().optional().describe('Repository context, e.g. "owner/repo"'),
|
|
58434
58436
|
model: external_exports.string().optional().describe('Model override (e.g. "gemini-3.1-pro-preview", "claude-sonnet-4-20250514")'),
|
|
58435
|
-
|
|
58437
|
+
org: external_exports.string().optional().describe(`Organization ID to dispatch under (e.g. "Scheduler-Systems"). Defaults to the authenticated user's primary org.`),
|
|
58436
58438
|
runner_label: external_exports.string().optional().describe("Kata-backed ARC runner label (agents-standard-runc-x64, agents-medium-runc-x64, agents-high-runc-x64, agents-kali-runc). Defaults to agents-standard-runc-x64.")
|
|
58437
|
-
}, async ({ agent, prompt: prompt3, project_context, model,
|
|
58439
|
+
}, async ({ agent, prompt: prompt3, project_context, model, org, runner_label }) => {
|
|
58438
58440
|
try {
|
|
58439
58441
|
const result = await apiClient.dispatchAgent({
|
|
58440
58442
|
agent,
|
|
@@ -58442,7 +58444,7 @@ function registerSessionTools(server, apiClient) {
|
|
|
58442
58444
|
project_context,
|
|
58443
58445
|
session_type: "background",
|
|
58444
58446
|
model,
|
|
58445
|
-
|
|
58447
|
+
org,
|
|
58446
58448
|
runner_label
|
|
58447
58449
|
});
|
|
58448
58450
|
return {
|
|
@@ -94220,13 +94222,16 @@ var init_index = __esm({
|
|
|
94220
94222
|
}
|
|
94221
94223
|
program2.parse();
|
|
94222
94224
|
} catch (error2) {
|
|
94225
|
+
if (error2 != null && typeof error2.code === "string" && error2.code?.startsWith("commander.") && error2.exitCode === 0) {
|
|
94226
|
+
process.exit(0);
|
|
94227
|
+
}
|
|
94223
94228
|
handleFatalCliError(error2);
|
|
94224
94229
|
}
|
|
94225
94230
|
})();
|
|
94226
94231
|
}
|
|
94227
94232
|
});
|
|
94228
94233
|
|
|
94229
|
-
var cliVersion10 = true ? "0.0.
|
|
94234
|
+
var cliVersion10 = true ? "0.0.626" : "0.0.0-dev";
|
|
94230
94235
|
var args = process.argv.slice(2);
|
|
94231
94236
|
var requestedGlobalHelp = args.length === 1 && (args[0] === "--help" || args[0] === "-h");
|
|
94232
94237
|
var requestedVersion = args.length === 1 && (args[0] === "--version" || args[0] === "-V");
|
package/package.json
CHANGED