@scheduler-systems/gal-run 0.0.360 → 0.0.361
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 +51 -14
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3970,7 +3970,7 @@ var cliVersion, defaultApiUrl, BUILD_CONSTANTS, constants_default;
|
|
|
3970
3970
|
var init_constants = __esm({
|
|
3971
3971
|
"src/constants.ts"() {
|
|
3972
3972
|
"use strict";
|
|
3973
|
-
cliVersion = true ? "0.0.
|
|
3973
|
+
cliVersion = true ? "0.0.361" : "0.0.0-dev";
|
|
3974
3974
|
defaultApiUrl = true ? "https://api.gal.run" : "http://localhost:3000";
|
|
3975
3975
|
BUILD_CONSTANTS = Object.freeze([cliVersion, defaultApiUrl]);
|
|
3976
3976
|
constants_default = BUILD_CONSTANTS;
|
|
@@ -4880,7 +4880,7 @@ function detectEnvironment() {
|
|
|
4880
4880
|
return "dev";
|
|
4881
4881
|
}
|
|
4882
4882
|
try {
|
|
4883
|
-
const version = true ? "0.0.
|
|
4883
|
+
const version = true ? "0.0.361" : void 0;
|
|
4884
4884
|
if (version && version.includes("-local")) {
|
|
4885
4885
|
return "dev";
|
|
4886
4886
|
}
|
|
@@ -5249,7 +5249,7 @@ function getId() {
|
|
|
5249
5249
|
}
|
|
5250
5250
|
function getCliVersion() {
|
|
5251
5251
|
try {
|
|
5252
|
-
return true ? "0.0.
|
|
5252
|
+
return true ? "0.0.361" : "0.0.0-dev";
|
|
5253
5253
|
} catch {
|
|
5254
5254
|
return "0.0.0-dev";
|
|
5255
5255
|
}
|
|
@@ -5719,9 +5719,37 @@ var init_workspace = __esm({
|
|
|
5719
5719
|
});
|
|
5720
5720
|
|
|
5721
5721
|
// ../../packages/types/dist/session.js
|
|
5722
|
+
function isActiveBackgroundAgentRunnerLabel(value) {
|
|
5723
|
+
return ACTIVE_BACKGROUND_AGENT_RUNNER_LABELS.includes(value);
|
|
5724
|
+
}
|
|
5725
|
+
function normalizeBackgroundAgentRunnerLabel(value) {
|
|
5726
|
+
if (!value)
|
|
5727
|
+
return void 0;
|
|
5728
|
+
if (isActiveBackgroundAgentRunnerLabel(value))
|
|
5729
|
+
return value;
|
|
5730
|
+
return RETIRED_BACKGROUND_AGENT_RUNNER_LABELS[value];
|
|
5731
|
+
}
|
|
5732
|
+
var ACTIVE_BACKGROUND_AGENT_RUNNER_LABELS, RETIRED_BACKGROUND_AGENT_RUNNER_LABELS, DEFAULT_RUNNER_LABEL;
|
|
5722
5733
|
var init_session = __esm({
|
|
5723
5734
|
"../../packages/types/dist/session.js"() {
|
|
5724
5735
|
"use strict";
|
|
5736
|
+
ACTIVE_BACKGROUND_AGENT_RUNNER_LABELS = [
|
|
5737
|
+
"agents-standard-runc-x64",
|
|
5738
|
+
"agents-medium-runc-x64",
|
|
5739
|
+
"agents-high-runc-x64",
|
|
5740
|
+
"agents-kali-runc"
|
|
5741
|
+
];
|
|
5742
|
+
RETIRED_BACKGROUND_AGENT_RUNNER_LABELS = {
|
|
5743
|
+
"arc-linux-agents": "agents-standard-runc-x64",
|
|
5744
|
+
"arc-linux-agents-runc": "agents-standard-runc-x64",
|
|
5745
|
+
"agents-standard-runc": "agents-standard-runc-x64",
|
|
5746
|
+
"agents-medium-runc": "agents-medium-runc-x64",
|
|
5747
|
+
"agents-high-runc": "agents-high-runc-x64",
|
|
5748
|
+
"agents-standard-vz-arm64": "agents-standard-runc-x64",
|
|
5749
|
+
"agents-medium-vz-arm64": "agents-medium-runc-x64",
|
|
5750
|
+
"agents-high-vz-arm64": "agents-high-runc-x64"
|
|
5751
|
+
};
|
|
5752
|
+
DEFAULT_RUNNER_LABEL = "agents-standard-runc-x64";
|
|
5725
5753
|
}
|
|
5726
5754
|
});
|
|
5727
5755
|
|
|
@@ -14551,8 +14579,8 @@ function createAgentSessionCommand() {
|
|
|
14551
14579
|
};
|
|
14552
14580
|
cmd.command("create").description("Create a new background agent session (triggers GitHub Actions)").argument("<name>", "Session name").option("-p, --project-context <ctx>", "Project context (owner/repo, https URL, or SSH URL)").option("-b, --branch <branch>", "Git branch to checkout (optional)").option("-a, --agent <agent>", "Agent to use (claude, codex, gemini)", "claude").option(
|
|
14553
14581
|
"-r, --runner-label <label>",
|
|
14554
|
-
"Kata-backed ARC runner label (agents-standard-runc, agents-medium-runc, agents-high-runc)",
|
|
14555
|
-
|
|
14582
|
+
"Kata-backed ARC runner label (agents-standard-runc-x64, agents-medium-runc-x64, agents-high-runc-x64)",
|
|
14583
|
+
DEFAULT_RUNNER_LABEL
|
|
14556
14584
|
).option("--prompt <text>", "Initial prompt to run when the session starts").option("--prompt-file <path>", "Read initial prompt from a file").option("-m, --model <model>", 'Model override (e.g. "claude-sonnet-4-20250514", "gemini-3.1-pro-preview")').option("--dispatch <backend>", "Dispatch backend (auto, gha, hive)").option("--wait", "Wait until the session leaves PENDING/INITIALIZING", false).option("--timeout <ms>", "Wait timeout in milliseconds", "600000").option("--dry-run", "Analyze capabilities without creating a real session", false).option("--json", "Output as JSON", false).action(async (name, options) => {
|
|
14557
14585
|
if (options.dryRun) {
|
|
14558
14586
|
const analysis = analyzeDispatch({
|
|
@@ -14998,6 +15026,7 @@ var init_agent_session = __esm({
|
|
|
14998
15026
|
import_path8 = require("path");
|
|
14999
15027
|
init_config_manager();
|
|
15000
15028
|
init_client();
|
|
15029
|
+
init_dist2();
|
|
15001
15030
|
init_capability_analyzer();
|
|
15002
15031
|
SEVERITY_COLOR = {
|
|
15003
15032
|
error: source_default.red,
|
|
@@ -15020,6 +15049,7 @@ var init_AgentQueueConfigManager = __esm({
|
|
|
15020
15049
|
import_fs9 = require("fs");
|
|
15021
15050
|
import_os9 = require("os");
|
|
15022
15051
|
import_path9 = require("path");
|
|
15052
|
+
init_dist2();
|
|
15023
15053
|
init_config_manager();
|
|
15024
15054
|
CONFIG_DIR2 = (0, import_path9.join)((0, import_os9.homedir)(), ".gal");
|
|
15025
15055
|
CONFIG_FILE3 = (0, import_path9.join)(CONFIG_DIR2, "agent-queue.json");
|
|
@@ -15160,7 +15190,9 @@ var init_AgentQueueConfigManager = __esm({
|
|
|
15160
15190
|
workdir: overrides.workdir || saved.workdir || legacy.workdir || process.cwd(),
|
|
15161
15191
|
capabilities: saved.capabilities || legacy.capabilities,
|
|
15162
15192
|
pollingIntervalMs: saved.pollingIntervalMs || legacy.pollingIntervalMs || 1e4,
|
|
15163
|
-
runnerLabel:
|
|
15193
|
+
runnerLabel: normalizeBackgroundAgentRunnerLabel(
|
|
15194
|
+
overrides.runnerLabel || saved.runnerLabel || legacy.runnerLabel
|
|
15195
|
+
) || DEFAULT_RUNNER_LABEL,
|
|
15164
15196
|
executionMode: overrides.executionMode || process.env.GAL_AGENT_EXECUTION_MODE || process.env.SAL_EXECUTION_MODE || saved.executionMode || legacy.executionMode || "local",
|
|
15165
15197
|
authToken: overrides.authToken || process.env.GAL_AUTH_TOKEN || saved.authToken || cliConfig.authToken || legacy.authToken,
|
|
15166
15198
|
apiKey: overrides.apiKey || process.env.GAL_API_KEY || saved.apiKey || cliConfig.apiKey || legacy.apiKey,
|
|
@@ -19855,6 +19887,7 @@ var init_AgentQueueService = __esm({
|
|
|
19855
19887
|
init_agent_queue_logger();
|
|
19856
19888
|
init_constants();
|
|
19857
19889
|
init_client();
|
|
19890
|
+
init_dist2();
|
|
19858
19891
|
init_SteadyModeController();
|
|
19859
19892
|
logger2 = createLogger("agent-queue");
|
|
19860
19893
|
cliVersion2 = constants_default[0];
|
|
@@ -19886,7 +19919,7 @@ var init_AgentQueueService = __esm({
|
|
|
19886
19919
|
pollingIntervalMs: config.pollingIntervalMs || 1e4,
|
|
19887
19920
|
workdir: config.workdir || process.cwd(),
|
|
19888
19921
|
executionMode: config.executionMode || "local",
|
|
19889
|
-
runnerLabel: config.runnerLabel ||
|
|
19922
|
+
runnerLabel: normalizeBackgroundAgentRunnerLabel(config.runnerLabel) || DEFAULT_RUNNER_LABEL,
|
|
19890
19923
|
authToken: config.authToken || "",
|
|
19891
19924
|
apiKey: config.apiKey || "",
|
|
19892
19925
|
githubToken: config.githubToken || process.env.GITHUB_TOKEN || "",
|
|
@@ -45299,15 +45332,19 @@ function scanMemoryDir(dir, rootDir, files, isGlobal) {
|
|
|
45299
45332
|
}
|
|
45300
45333
|
function createMemoryCommand() {
|
|
45301
45334
|
const command = new Command("memory");
|
|
45302
|
-
command.description("Manage
|
|
45335
|
+
command.description("Manage user-scope AI agent memory (no auth required)").addHelpText("after", `
|
|
45303
45336
|
Examples:
|
|
45304
45337
|
gal memory list List all memories
|
|
45305
45338
|
gal memory import --source claude Import from Claude Code
|
|
45306
45339
|
gal memory import --source claude --global Import from global memory
|
|
45307
45340
|
gal memory add --type feedback "Don't mock the DB" Add a manual memory
|
|
45308
45341
|
gal memory push Push memories to all platforms
|
|
45342
|
+
|
|
45343
|
+
Notes:
|
|
45344
|
+
This command manages user-scope memory only.
|
|
45345
|
+
Organization-scope capture learning runs through session pipelines.
|
|
45309
45346
|
`);
|
|
45310
|
-
command.command("list").description("List memories stored in ~/.gal/config.yaml").option("--format <format>", "Output format: table (default) or json", "table").action(async (options) => {
|
|
45347
|
+
command.command("list").description("List user-scope memories stored in ~/.gal/config.yaml").option("--format <format>", "Output format: table (default) or json", "table").action(async (options) => {
|
|
45311
45348
|
const projectRoot = findProjectRoot(process.cwd());
|
|
45312
45349
|
const service = GalConfigService.forWorkspace(projectRoot);
|
|
45313
45350
|
const config = service.readConfig();
|
|
@@ -45342,7 +45379,7 @@ Examples:
|
|
|
45342
45379
|
console.log();
|
|
45343
45380
|
}
|
|
45344
45381
|
});
|
|
45345
|
-
command.command("import").description("Import memories from a provider into ~/.gal/config.yaml").requiredOption("--source <platform>", `Source platform (${ALL_PLATFORM_IDS.join(", ")})`).option("--global", "Include global/home-directory memory files").option("--dry-run", "Show what would be imported without writing").action(async (options) => {
|
|
45382
|
+
command.command("import").description("Import user-scope memories from a provider into ~/.gal/config.yaml").requiredOption("--source <platform>", `Source platform (${ALL_PLATFORM_IDS.join(", ")})`).option("--global", "Include global/home-directory memory files").option("--dry-run", "Show what would be imported without writing").action(async (options) => {
|
|
45346
45383
|
const source = options.source;
|
|
45347
45384
|
if (!ALL_PLATFORM_IDS.includes(source)) {
|
|
45348
45385
|
console.error(source_default.red(`Invalid platform "${source}".`));
|
|
@@ -45422,7 +45459,7 @@ Examples:
|
|
|
45422
45459
|
console.log(source_default.dim(" Run gal memory push to sync to all platforms"));
|
|
45423
45460
|
console.log();
|
|
45424
45461
|
});
|
|
45425
|
-
command.command("add <content>").description("Add a memory entry manually").requiredOption("--type <type>", "Memory type: user, feedback, project, reference").option("--name <name>", "Memory name (auto-generated if omitted)").option("--description <desc>", "One-line description").action(async (content, options) => {
|
|
45462
|
+
command.command("add <content>").description("Add a user-scope memory entry manually").requiredOption("--type <type>", "Memory type: user, feedback, project, reference").option("--name <name>", "Memory name (auto-generated if omitted)").option("--description <desc>", "One-line description").action(async (content, options) => {
|
|
45426
45463
|
const validTypes = ["user", "feedback", "project", "reference"];
|
|
45427
45464
|
if (!validTypes.includes(options.type)) {
|
|
45428
45465
|
console.error(source_default.red(`Invalid type "${options.type}". Must be: ${validTypes.join(", ")}`));
|
|
@@ -45453,7 +45490,7 @@ Examples:
|
|
|
45453
45490
|
console.log(source_default.dim(" Run gal memory push to sync to all platforms"));
|
|
45454
45491
|
console.log();
|
|
45455
45492
|
});
|
|
45456
|
-
command.command("push").description("Push memories from ~/.gal/config.yaml to all platform-native formats").option("-p, --platform <platform>", "Push to specific platform only").action(async (options) => {
|
|
45493
|
+
command.command("push").description("Push user-scope memories from ~/.gal/config.yaml to all platform-native formats").option("-p, --platform <platform>", "Push to specific platform only").action(async (options) => {
|
|
45457
45494
|
const projectRoot = findProjectRoot(process.cwd());
|
|
45458
45495
|
const service = GalConfigService.forWorkspace(projectRoot);
|
|
45459
45496
|
const config = service.readConfig();
|
|
@@ -55802,7 +55839,7 @@ var init_index = __esm({
|
|
|
55802
55839
|
});
|
|
55803
55840
|
|
|
55804
55841
|
// src/bootstrap.ts
|
|
55805
|
-
var cliVersion10 = true ? "0.0.
|
|
55842
|
+
var cliVersion10 = true ? "0.0.361" : "0.0.0-dev";
|
|
55806
55843
|
var args = process.argv.slice(2);
|
|
55807
55844
|
var requestedGlobalHelp = args.length === 1 && (args[0] === "--help" || args[0] === "-h");
|
|
55808
55845
|
var requestedVersion = args.length === 1 && (args[0] === "--version" || args[0] === "-V");
|
|
@@ -55816,7 +55853,7 @@ var globalHelpCommands = [
|
|
|
55816
55853
|
" hooks Manage AI agent hooks for auto-sync",
|
|
55817
55854
|
" join [options] Join an organization using an invite code",
|
|
55818
55855
|
" mcp Set up and validate GAL hosted MCP connectivity",
|
|
55819
|
-
" memory Manage
|
|
55856
|
+
" memory Manage user-scope AI agent memory (no auth required)",
|
|
55820
55857
|
" policy Manage org-wide AI agent policies (enterprise)",
|
|
55821
55858
|
" propose [description] Propose changes to your organization config",
|
|
55822
55859
|
" scan [options] Scan local directory for AI agent configurations (no auth required)",
|
package/package.json
CHANGED