@scheduler-systems/gal-run 0.0.621 → 0.0.624
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 -5
- 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.624" : "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.624" : 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.624" : "0.0.0-dev";
|
|
14588
14588
|
} catch {
|
|
14589
14589
|
return "0.0.0-dev";
|
|
14590
14590
|
}
|
|
@@ -52713,12 +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 } : {},
|
|
52724
|
+
...data.org ? { org: data.org } : {},
|
|
52722
52725
|
...data.credential_user ? { credentialUser: data.credential_user } : {},
|
|
52723
52726
|
...data.runner_label ? { runnerLabel: data.runner_label } : {}
|
|
52724
52727
|
});
|
|
@@ -58432,9 +58435,10 @@ function registerSessionTools(server, apiClient) {
|
|
|
58432
58435
|
prompt: external_exports.string().describe("What the new background agent should work on"),
|
|
58433
58436
|
project_context: external_exports.string().optional().describe('Repository context, e.g. "owner/repo"'),
|
|
58434
58437
|
model: external_exports.string().optional().describe('Model override (e.g. "gemini-3.1-pro-preview", "claude-sonnet-4-20250514")'),
|
|
58438
|
+
org: external_exports.string().optional().describe(`Organization ID to dispatch under (e.g. "Scheduler-Systems"). Defaults to the authenticated user's primary org.`),
|
|
58435
58439
|
credential_user: external_exports.string().optional().describe(`GitHub username whose credentials to use for this session (e.g. "karabil"). If omitted, uses the caller's credentials.`),
|
|
58436
58440
|
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, credential_user, runner_label }) => {
|
|
58441
|
+
}, async ({ agent, prompt: prompt3, project_context, model, org, credential_user, runner_label }) => {
|
|
58438
58442
|
try {
|
|
58439
58443
|
const result = await apiClient.dispatchAgent({
|
|
58440
58444
|
agent,
|
|
@@ -58442,6 +58446,7 @@ function registerSessionTools(server, apiClient) {
|
|
|
58442
58446
|
project_context,
|
|
58443
58447
|
session_type: "background",
|
|
58444
58448
|
model,
|
|
58449
|
+
org,
|
|
58445
58450
|
credential_user,
|
|
58446
58451
|
runner_label
|
|
58447
58452
|
});
|
|
@@ -94220,13 +94225,16 @@ var init_index = __esm({
|
|
|
94220
94225
|
}
|
|
94221
94226
|
program2.parse();
|
|
94222
94227
|
} catch (error2) {
|
|
94228
|
+
if (error2 != null && typeof error2.code === "string" && error2.code?.startsWith("commander.") && error2.exitCode === 0) {
|
|
94229
|
+
process.exit(0);
|
|
94230
|
+
}
|
|
94223
94231
|
handleFatalCliError(error2);
|
|
94224
94232
|
}
|
|
94225
94233
|
})();
|
|
94226
94234
|
}
|
|
94227
94235
|
});
|
|
94228
94236
|
|
|
94229
|
-
var cliVersion10 = true ? "0.0.
|
|
94237
|
+
var cliVersion10 = true ? "0.0.624" : "0.0.0-dev";
|
|
94230
94238
|
var args = process.argv.slice(2);
|
|
94231
94239
|
var requestedGlobalHelp = args.length === 1 && (args[0] === "--help" || args[0] === "-h");
|
|
94232
94240
|
var requestedVersion = args.length === 1 && (args[0] === "--version" || args[0] === "-V");
|
package/package.json
CHANGED