@scheduler-systems/gal-run 0.0.589 → 0.0.590

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.
Files changed (2) hide show
  1. package/dist/index.cjs +54 -52
  2. 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.589" : "0.0.0-dev";
3958
+ cliVersion = true ? "0.0.590" : "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;
@@ -11868,7 +11868,7 @@ function detectEnvironment() {
11868
11868
  return "dev";
11869
11869
  }
11870
11870
  try {
11871
- const version2 = true ? "0.0.589" : void 0;
11871
+ const version2 = true ? "0.0.590" : void 0;
11872
11872
  if (version2 && version2.includes("-local")) {
11873
11873
  return "dev";
11874
11874
  }
@@ -14549,7 +14549,7 @@ function getId() {
14549
14549
  }
14550
14550
  function getCliVersion() {
14551
14551
  try {
14552
- return true ? "0.0.589" : "0.0.0-dev";
14552
+ return true ? "0.0.590" : "0.0.0-dev";
14553
14553
  } catch {
14554
14554
  return "0.0.0-dev";
14555
14555
  }
@@ -15125,8 +15125,8 @@ var init_session = __esm({
15125
15125
  { id: "gemini", displayName: "Gemini CLI", icon: "\u{1F48E}", description: "Google Gemini CLI" },
15126
15126
  { id: "cursor-agent", displayName: "Cursor Agent", icon: "\u{1F3AF}", description: "Cursor AI Agent" },
15127
15127
  { id: "copilot", displayName: "GitHub Copilot", icon: "\u{1F680}", description: "GitHub Copilot CLI" },
15128
- { id: "oss", displayName: "OSS Model", icon: "\u{1F513}", description: "Open-source model via vLLM (Qwen, DeepSeek)" },
15129
- { id: "gal", displayName: "GAL Inference", icon: "\u{1F9E0}", description: "GAL agent executor inference via RunPod" }
15128
+ { id: "oss", displayName: "GAL Code (GLM-5)", icon: "\u{1F513}", description: "GAL Code gateway for the GLM-5 executor lane" },
15129
+ { id: "gal", displayName: "GAL Code", icon: "\u{1F9E0}", description: "GAL Code executor lane (GLM-5)" }
15130
15130
  ];
15131
15131
  DEFAULT_SESSION_AGENT = "claude";
15132
15132
  ACTIVE_BACKGROUND_AGENT_RUNNER_LABELS = [
@@ -15445,10 +15445,10 @@ var init_credentials = __esm({
15445
15445
  },
15446
15446
  {
15447
15447
  id: "oss",
15448
- displayName: "OSS Model (vLLM)",
15448
+ displayName: "GAL Code (GLM-5)",
15449
15449
  icon: "\u{1F513}",
15450
- instructions: "Set VLLM_API_KEY and VLLM_BASE_URL environment variables for your vLLM endpoint",
15451
- tokenHint: "vLLM API key (or any auth token for your inference endpoint)",
15450
+ instructions: "Use the GAL Code gateway token and base URL for your GLM-5 endpoint",
15451
+ tokenHint: "GAL Code session token or API key",
15452
15452
  refreshTokenRequired: false
15453
15453
  }
15454
15454
  ];
@@ -15545,8 +15545,8 @@ function mapAgentToProvider(agent) {
15545
15545
  codex: "codex",
15546
15546
  gemini: "gemini",
15547
15547
  oss: "oss",
15548
- gal: "codex"
15549
- // GAL routes through codex (OpenAI-compatible) adapter (#5139)
15548
+ gal: "oss"
15549
+ // GAL Code routes through the GLM-5 executor lane (#5139)
15550
15550
  };
15551
15551
  return mapping[agent] ?? "claude";
15552
15552
  }
@@ -55639,8 +55639,8 @@ async function pushLearnings(directory, orgName, apiUrl, headers, options) {
55639
55639
  let repoSlug;
55640
55640
  let sessionId = process.env.CLAUDE_SESSION_ID || `cli-${Date.now()}`;
55641
55641
  try {
55642
- const { execSync: execSync17 } = await import("child_process");
55643
- const remoteUrl = execSync17("git remote get-url origin", { cwd: directory, encoding: "utf-8" }).trim();
55642
+ const { execSync: execSync16 } = await import("child_process");
55643
+ const remoteUrl = execSync16("git remote get-url origin", { cwd: directory, encoding: "utf-8" }).trim();
55644
55644
  const match = remoteUrl.match(/github\.com[:/]([^/]+\/[^/]+?)(\.git)?$/);
55645
55645
  if (match) {
55646
55646
  repoSlug = match[1];
@@ -60088,22 +60088,10 @@ function resolveCodeVariantBinaryCandidates(variant, galCodeMode) {
60088
60088
  const candidates = localFirst ? [localWrapper, galWrapper, officialBinary] : [officialBinary, localWrapper, galWrapper];
60089
60089
  return candidates.filter((binary, index) => candidates.indexOf(binary) === index);
60090
60090
  }
60091
- function getVertexAccessToken() {
60092
- try {
60093
- return (0, import_node_child_process.execSync)("gcloud auth print-access-token", {
60094
- encoding: "utf-8",
60095
- stdio: ["ignore", "pipe", "ignore"]
60096
- }).trim();
60097
- } catch {
60098
- return null;
60099
- }
60100
- }
60101
60091
  function buildOpencodeEnv() {
60102
- const token = getVertexAccessToken();
60103
60092
  const configContent = JSON.stringify(GLM_PROVIDER_CONFIG);
60104
60093
  return {
60105
60094
  ...process.env,
60106
- ...token ? { VERTEX_ACCESS_TOKEN: token } : {},
60107
60095
  OPENCODE_CONFIG_CONTENT: configContent
60108
60096
  };
60109
60097
  }
@@ -60153,8 +60141,8 @@ function createCodeCommand(runVariant = runCodeVariant) {
60153
60141
  });
60154
60142
  const args2 = leadingArgs.length > 0 ? leadingArgs : maybeCommand instanceof Command ? maybeCommand.args : [];
60155
60143
  if (args2.length === 0) {
60156
- command.outputHelp();
60157
- process.exit(0);
60144
+ const code = await runVariant("opencode", []);
60145
+ process.exit(code);
60158
60146
  return;
60159
60147
  }
60160
60148
  if (args2[0] === "codex" || args2[0] === "opencode") {
@@ -60171,11 +60159,10 @@ function createCodeCommand(runVariant = runCodeVariant) {
60171
60159
  addVariantCommand(command, "opencode", runVariant);
60172
60160
  return command;
60173
60161
  }
60174
- var import_node_child_process, import_node_os3, import_node_path2, import_node_fs2, GAL_CODE_DESCRIPTION, OPENCODE_CONFIG_PATH, OFFICIAL_VARIANT_BINARIES, GLM_PROVIDER_CONFIG;
60162
+ var import_node_os3, import_node_path2, import_node_fs2, GAL_CODE_DESCRIPTION, OPENCODE_CONFIG_PATH, OFFICIAL_VARIANT_BINARIES, GLM_PROVIDER_CONFIG;
60175
60163
  var init_code = __esm({
60176
60164
  "module_365"() {
60177
60165
  "use strict";
60178
- import_node_child_process = require("node:child_process");
60179
60166
  import_node_os3 = __toESM(require("node:os"), 1);
60180
60167
  import_node_path2 = __toESM(require("node:path"), 1);
60181
60168
  import_node_fs2 = require("node:fs");
@@ -60183,7 +60170,7 @@ var init_code = __esm({
60183
60170
  init_config_manager();
60184
60171
  init_code_process();
60185
60172
  init_gal_home();
60186
- GAL_CODE_DESCRIPTION = "Run GAL Code Codex or OpenCode via `gal code codex` or `gal code opencode`. Use `make gal-code-local` for local iteration.";
60173
+ GAL_CODE_DESCRIPTION = "Run GAL Code. Running without args launches the default UI. Use `make gal-code-local` for local iteration.";
60187
60174
  OPENCODE_CONFIG_PATH = ["apps", "gal-code-opencode", ".opencode"];
60188
60175
  OFFICIAL_VARIANT_BINARIES = {
60189
60176
  codex: "codex",
@@ -60191,18 +60178,33 @@ var init_code = __esm({
60191
60178
  };
60192
60179
  GLM_PROVIDER_CONFIG = {
60193
60180
  provider: {
60194
- glm: {
60181
+ "glm-5-vertex": {
60195
60182
  npm: "@ai-sdk/openai-compatible",
60196
- name: "GLM-5 (Vertex AI)",
60183
+ name: "GLM-5 GAL Gateway",
60184
+ env: ["GAL_AUTH_TOKEN"],
60185
+ api: "https://api.gal.run/api/gal-code/v1",
60197
60186
  options: {
60198
- baseURL: "https://us-central1-aiplatform.googleapis.com/v1/projects/scheduler-systems-infra/locations/us-central1/endpoints/openapi/"
60187
+ baseURL: "https://api.gal.run/api/gal-code/v1"
60199
60188
  },
60200
60189
  models: {
60201
- "zai-org/glm-5-maas": { name: "GLM-5" }
60190
+ "glm-5": {
60191
+ id: "zai-org/glm-5-maas",
60192
+ name: "GLM-5",
60193
+ family: "glm",
60194
+ release_date: "2026-02-11",
60195
+ attachment: false,
60196
+ reasoning: true,
60197
+ temperature: true,
60198
+ tool_call: true,
60199
+ interleaved: { field: "reasoning_content" },
60200
+ limit: { context: 205e3, output: 205e3 },
60201
+ modalities: { input: ["text"], output: ["text"] },
60202
+ cost: { input: 1, output: 3.2, cache_read: 0.1 }
60203
+ }
60202
60204
  }
60203
60205
  }
60204
60206
  },
60205
- model: "glm/zai-org/glm-5-maas"
60207
+ model: "glm-5-vertex/glm-5"
60206
60208
  };
60207
60209
  }
60208
60210
  });
@@ -65163,8 +65165,8 @@ async function fetchWithAuth(url, authToken) {
65163
65165
  }
65164
65166
  async function resolveOrgFromGit(basePath) {
65165
65167
  try {
65166
- const { execSync: execSync17 } = await import("node:child_process");
65167
- const remote = execSync17("git remote get-url origin", { cwd: basePath, encoding: "utf-8" }).trim();
65168
+ const { execSync: execSync16 } = await import("node:child_process");
65169
+ const remote = execSync16("git remote get-url origin", { cwd: basePath, encoding: "utf-8" }).trim();
65168
65170
  const sshMatch = remote.match(/:([^/]+)\//);
65169
65171
  const httpsMatch = remote.match(/github\.com\/([^/]+)\//);
65170
65172
  return sshMatch?.[1] || httpsMatch?.[1] || null;
@@ -65932,7 +65934,7 @@ function getMachineId() {
65932
65934
  }
65933
65935
  function getGitEmail() {
65934
65936
  try {
65935
- return (0, import_node_child_process2.execSync)("git config user.email", { encoding: "utf-8" }).trim();
65937
+ return (0, import_node_child_process.execSync)("git config user.email", { encoding: "utf-8" }).trim();
65936
65938
  } catch {
65937
65939
  return null;
65938
65940
  }
@@ -66311,7 +66313,7 @@ Fleet Status: ${orgName}
66311
66313
  });
66312
66314
  return fleet;
66313
66315
  }
66314
- var import_node_os5, import_node_child_process2, import_node_crypto2, import_promises6, import_meta2, defaultApiUrl8;
66316
+ var import_node_os5, import_node_child_process, import_node_crypto2, import_promises6, import_meta2, defaultApiUrl8;
66315
66317
  var init_fleet = __esm({
66316
66318
  "module_387"() {
66317
66319
  "use strict";
@@ -66320,7 +66322,7 @@ var init_fleet = __esm({
66320
66322
  init_ora();
66321
66323
  init_constants();
66322
66324
  import_node_os5 = require("node:os");
66323
- import_node_child_process2 = require("node:child_process");
66325
+ import_node_child_process = require("node:child_process");
66324
66326
  import_node_crypto2 = require("node:crypto");
66325
66327
  import_promises6 = require("node:fs/promises");
66326
66328
  init_CoreServiceProvider();
@@ -67116,7 +67118,7 @@ function getMachineId2() {
67116
67118
  }
67117
67119
  function getGitEmail2() {
67118
67120
  try {
67119
- return (0, import_node_child_process3.execSync)("git config user.email", { encoding: "utf-8" }).trim();
67121
+ return (0, import_node_child_process2.execSync)("git config user.email", { encoding: "utf-8" }).trim();
67120
67122
  } catch {
67121
67123
  return null;
67122
67124
  }
@@ -67383,7 +67385,7 @@ Error: ${useResult.error || "Unknown error"}`));
67383
67385
  });
67384
67386
  return join62;
67385
67387
  }
67386
- var import_node_os6, import_node_child_process3, import_node_crypto3, import_promises7, import_node_path6, defaultApiUrl9;
67388
+ var import_node_os6, import_node_child_process2, import_node_crypto3, import_promises7, import_node_path6, defaultApiUrl9;
67387
67389
  var init_join = __esm({
67388
67390
  "module_391"() {
67389
67391
  "use strict";
@@ -67392,7 +67394,7 @@ var init_join = __esm({
67392
67394
  init_ora();
67393
67395
  init_constants();
67394
67396
  import_node_os6 = require("node:os");
67395
- import_node_child_process3 = require("node:child_process");
67397
+ import_node_child_process2 = require("node:child_process");
67396
67398
  import_node_crypto3 = require("node:crypto");
67397
67399
  import_promises7 = require("node:fs/promises");
67398
67400
  import_node_path6 = require("node:path");
@@ -69082,16 +69084,16 @@ async function createIssues(drafts, context, onProgress) {
69082
69084
  }
69083
69085
  return results;
69084
69086
  }
69085
- var import_node_child_process4, import_promises9, import_node_os8, import_node_path8, import_node_util2, execFile;
69087
+ var import_node_child_process3, import_promises9, import_node_os8, import_node_path8, import_node_util2, execFile;
69086
69088
  var init_issue_creator = __esm({
69087
69089
  "module_400"() {
69088
69090
  "use strict";
69089
- import_node_child_process4 = require("node:child_process");
69091
+ import_node_child_process3 = require("node:child_process");
69090
69092
  import_promises9 = require("node:fs/promises");
69091
69093
  import_node_os8 = require("node:os");
69092
69094
  import_node_path8 = require("node:path");
69093
69095
  import_node_util2 = require("node:util");
69094
- execFile = (0, import_node_util2.promisify)(import_node_child_process4.execFile);
69096
+ execFile = (0, import_node_util2.promisify)(import_node_child_process3.execFile);
69095
69097
  }
69096
69098
  });
69097
69099
 
@@ -69123,7 +69125,7 @@ async function maybeEditDraftsWithEditor(drafts, editor) {
69123
69125
  await (0, import_promises10.writeFile)(tempPath, `${JSON.stringify(drafts, null, 2)}
69124
69126
  `, "utf-8");
69125
69127
  try {
69126
- const result = (0, import_node_child_process5.spawnSync)(editor, [tempPath], { stdio: "inherit" });
69128
+ const result = (0, import_node_child_process4.spawnSync)(editor, [tempPath], { stdio: "inherit" });
69127
69129
  if (result.status !== 0) {
69128
69130
  throw new Error(`${editor} exited with status ${result.status ?? "unknown"}.`);
69129
69131
  }
@@ -69176,12 +69178,12 @@ async function reviewDraftIssues(transcript, drafts, options = {}) {
69176
69178
  const approvedIndexes = parseApprovalSelection(selection, workingDrafts.length);
69177
69179
  return approvedIndexes.map((index) => workingDrafts[index]).filter(Boolean);
69178
69180
  }
69179
- var import_node_readline, import_node_child_process5, import_promises10, import_node_os9, import_node_path9;
69181
+ var import_node_readline, import_node_child_process4, import_promises10, import_node_os9, import_node_path9;
69180
69182
  var init_transcript_review = __esm({
69181
69183
  "module_401"() {
69182
69184
  "use strict";
69183
69185
  import_node_readline = require("node:readline");
69184
- import_node_child_process5 = require("node:child_process");
69186
+ import_node_child_process4 = require("node:child_process");
69185
69187
  import_promises10 = require("node:fs/promises");
69186
69188
  import_node_os9 = require("node:os");
69187
69189
  import_node_path9 = require("node:path");
@@ -69209,7 +69211,7 @@ function parseGithubRepoFromRemote(remote) {
69209
69211
  }
69210
69212
  function detectCurrentRepo() {
69211
69213
  try {
69212
- const remote = (0, import_node_child_process6.execFileSync)("git", ["config", "--get", "remote.origin.url"], {
69214
+ const remote = (0, import_node_child_process5.execFileSync)("git", ["config", "--get", "remote.origin.url"], {
69213
69215
  encoding: "utf-8",
69214
69216
  stdio: ["ignore", "pipe", "ignore"]
69215
69217
  }).trim();
@@ -69402,11 +69404,11 @@ function createOpsCommand() {
69402
69404
  });
69403
69405
  return command;
69404
69406
  }
69405
- var import_node_child_process6, import_promises11, DEFAULT_TRANSCRIPT_REPO;
69407
+ var import_node_child_process5, import_promises11, DEFAULT_TRANSCRIPT_REPO;
69406
69408
  var init_ops = __esm({
69407
69409
  "module_402"() {
69408
69410
  "use strict";
69409
- import_node_child_process6 = require("node:child_process");
69411
+ import_node_child_process5 = require("node:child_process");
69410
69412
  import_promises11 = require("node:fs/promises");
69411
69413
  init_esm();
69412
69414
  init_source();
@@ -80488,7 +80490,7 @@ var init_index = __esm({
80488
80490
  }
80489
80491
  });
80490
80492
 
80491
- var cliVersion10 = true ? "0.0.589" : "0.0.0-dev";
80493
+ var cliVersion10 = true ? "0.0.590" : "0.0.0-dev";
80492
80494
  var args = process.argv.slice(2);
80493
80495
  var requestedGlobalHelp = args.length === 1 && (args[0] === "--help" || args[0] === "-h");
80494
80496
  var requestedVersion = args.length === 1 && (args[0] === "--version" || args[0] === "-V");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scheduler-systems/gal-run",
3
- "version": "0.0.589",
3
+ "version": "0.0.590",
4
4
  "description": "GAL CLI - Command-line tool for managing AI agent configurations across your organization",
5
5
  "license": "Elastic-2.0",
6
6
  "private": false,