@scheduler-systems/gal-run 0.0.314 → 0.0.316

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 +16 -25
  2. 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.314" : "0.0.0-dev";
3973
+ cliVersion = true ? "0.0.316" : "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.314" : void 0;
4883
+ const version = true ? "0.0.316" : 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.314" : "0.0.0-dev";
5252
+ return true ? "0.0.316" : "0.0.0-dev";
5253
5253
  } catch {
5254
5254
  return "0.0.0-dev";
5255
5255
  }
@@ -30986,7 +30986,7 @@ function installCursorHooks() {
30986
30986
  const scriptContent = `#!/bin/sh
30987
30987
  # GAL Config Sync Hook for Cursor
30988
30988
  # Installed by: gal hooks install
30989
- # GAL_HOOK_VERSION = "2.2.0"
30989
+ # GAL_HOOK_VERSION = "2.3.0"
30990
30990
 
30991
30991
  # Auto-update: silently upgrade gal CLI if newer version is cached
30992
30992
  UPDATE_CACHE="$HOME/.gal/update-cache.json"
@@ -30994,11 +30994,8 @@ if [ "$GAL_NO_AUTO_UPDATE" != "1" ] && [ -z "$CI" ] && [ -f "$UPDATE_CACHE" ]; t
30994
30994
  LATEST=$(node -e "try{process.stdout.write(JSON.parse(require('fs').readFileSync(process.env.HOME+'/.gal/update-cache.json')).latestVersion||'')}catch(e){}" 2>/dev/null)
30995
30995
  CURRENT=$(gal --version 2>/dev/null)
30996
30996
  if [ -n "$LATEST" ] && [ -n "$CURRENT" ] && [ "$CURRENT" != "$LATEST" ]; then
30997
+ echo "\u{1F504} GAL: Updating to v$LATEST..." > /dev/tty
30997
30998
  gal update 2>/dev/null || true
30998
- UPDATED=$(gal --version 2>/dev/null)
30999
- if [ -n "$UPDATED" ] && [ "$UPDATED" != "$CURRENT" ]; then
31000
- echo "\u{1F504} GAL: Updated to v$UPDATED" > /dev/tty
31001
- fi
31002
30999
  fi
31003
31000
  fi
31004
31001
 
@@ -31016,7 +31013,7 @@ gal sync --pull --auto 2>/dev/null || true
31016
31013
  description: "GAL config sync and auto-update",
31017
31014
  timeout: 1e4,
31018
31015
  installed_by: "gal-cli",
31019
- version: "2.2.0"
31016
+ version: "2.3.0"
31020
31017
  };
31021
31018
  let hooks = { hooks: { startup: [] } };
31022
31019
  if ((0, import_fs15.existsSync)(hooksPath)) {
@@ -31033,7 +31030,7 @@ gal sync --pull --auto 2>/dev/null || true
31033
31030
  (entry) => entry.installed_by === "gal-cli"
31034
31031
  );
31035
31032
  if (existingIndex >= 0) {
31036
- if (hooks.hooks.startup[existingIndex].version === "2.2.0") {
31033
+ if (hooks.hooks.startup[existingIndex].version === "2.3.0") {
31037
31034
  return {
31038
31035
  agent: "cursor",
31039
31036
  status: "up_to_date",
@@ -31079,7 +31076,7 @@ function installWindsurfHooks() {
31079
31076
  const scriptContent = `#!/bin/sh
31080
31077
  # GAL Config Sync Hook for Windsurf
31081
31078
  # Installed by: gal hooks install
31082
- # GAL_HOOK_VERSION = "2.2.0"
31079
+ # GAL_HOOK_VERSION = "2.3.0"
31083
31080
 
31084
31081
  # Auto-update: silently upgrade gal CLI if newer version is cached
31085
31082
  UPDATE_CACHE="$HOME/.gal/update-cache.json"
@@ -31087,11 +31084,8 @@ if [ "$GAL_NO_AUTO_UPDATE" != "1" ] && [ -z "$CI" ] && [ -f "$UPDATE_CACHE" ]; t
31087
31084
  LATEST=$(node -e "try{process.stdout.write(JSON.parse(require('fs').readFileSync(process.env.HOME+'/.gal/update-cache.json')).latestVersion||'')}catch(e){}" 2>/dev/null)
31088
31085
  CURRENT=$(gal --version 2>/dev/null)
31089
31086
  if [ -n "$LATEST" ] && [ -n "$CURRENT" ] && [ "$CURRENT" != "$LATEST" ]; then
31087
+ echo "\u{1F504} GAL: Updating to v$LATEST..." > /dev/tty
31090
31088
  gal update 2>/dev/null || true
31091
- UPDATED=$(gal --version 2>/dev/null)
31092
- if [ -n "$UPDATED" ] && [ "$UPDATED" != "$CURRENT" ]; then
31093
- echo "\u{1F504} GAL: Updated to v$UPDATED" > /dev/tty
31094
- fi
31095
31089
  fi
31096
31090
  fi
31097
31091
 
@@ -31109,7 +31103,7 @@ gal sync --pull --auto 2>/dev/null || true
31109
31103
  description: "GAL config sync and auto-update",
31110
31104
  timeout: 1e4,
31111
31105
  installed_by: "gal-cli",
31112
- version: "2.2.0"
31106
+ version: "2.3.0"
31113
31107
  };
31114
31108
  let hooks = { hooks: { startup: [] } };
31115
31109
  if ((0, import_fs15.existsSync)(hooksPath)) {
@@ -31126,7 +31120,7 @@ gal sync --pull --auto 2>/dev/null || true
31126
31120
  (entry) => entry.installed_by === "gal-cli"
31127
31121
  );
31128
31122
  if (existingIndex >= 0) {
31129
- if (hooks.hooks.startup[existingIndex].version === "2.2.0") {
31123
+ if (hooks.hooks.startup[existingIndex].version === "2.3.0") {
31130
31124
  return {
31131
31125
  agent: "windsurf",
31132
31126
  status: "up_to_date",
@@ -31169,7 +31163,7 @@ function installGeminiHooks() {
31169
31163
  if ((0, import_fs15.existsSync)(manifestPath)) {
31170
31164
  try {
31171
31165
  const manifest = JSON.parse((0, import_fs15.readFileSync)(manifestPath, "utf-8"));
31172
- if (manifest.version === "2.2.0") {
31166
+ if (manifest.version === "2.3.0") {
31173
31167
  return { agent: "gemini", status: "up_to_date", path: extensionSourceDir };
31174
31168
  }
31175
31169
  } catch {
@@ -31177,7 +31171,7 @@ function installGeminiHooks() {
31177
31171
  }
31178
31172
  (0, import_fs15.mkdirSync)((0, import_path14.join)(extensionSourceDir, "hooks"), { recursive: true });
31179
31173
  (0, import_fs15.mkdirSync)((0, import_path14.join)(extensionSourceDir, "scripts"), { recursive: true });
31180
- (0, import_fs15.writeFileSync)(manifestPath, JSON.stringify({ name: extensionName, version: "2.2.0" }, null, 2), "utf-8");
31174
+ (0, import_fs15.writeFileSync)(manifestPath, JSON.stringify({ name: extensionName, version: "2.3.0" }, null, 2), "utf-8");
31181
31175
  (0, import_fs15.writeFileSync)((0, import_path14.join)(extensionSourceDir, "hooks", "hooks.json"), JSON.stringify({
31182
31176
  hooks: {
31183
31177
  SessionStart: [{
@@ -31191,7 +31185,7 @@ function installGeminiHooks() {
31191
31185
  const scriptContent = `#!/bin/sh
31192
31186
  # GAL Config Sync Hook for Gemini CLI
31193
31187
  # Installed by: gal hooks install
31194
- # GAL_HOOK_VERSION = "2.2.0"
31188
+ # GAL_HOOK_VERSION = "2.3.0"
31195
31189
 
31196
31190
  # Auto-update: silently upgrade gal CLI if newer version is cached
31197
31191
  UPDATE_CACHE="$HOME/.gal/update-cache.json"
@@ -31199,11 +31193,8 @@ if [ "$GAL_NO_AUTO_UPDATE" != "1" ] && [ -z "$CI" ] && [ -f "$UPDATE_CACHE" ]; t
31199
31193
  LATEST=$(node -e "try{process.stdout.write(JSON.parse(require('fs').readFileSync(process.env.HOME+'/.gal/update-cache.json')).latestVersion||'')}catch(e){}" 2>/dev/null)
31200
31194
  CURRENT=$(gal --version 2>/dev/null)
31201
31195
  if [ -n "$LATEST" ] && [ -n "$CURRENT" ] && [ "$CURRENT" != "$LATEST" ]; then
31196
+ echo "\u{1F504} GAL: Updating to v$LATEST..." > /dev/tty
31202
31197
  gal update 2>/dev/null || true
31203
- UPDATED=$(gal --version 2>/dev/null)
31204
- if [ -n "$UPDATED" ] && [ "$UPDATED" != "$CURRENT" ]; then
31205
- echo "\u{1F504} GAL: Updated to v$UPDATED" > /dev/tty
31206
- fi
31207
31198
  fi
31208
31199
  fi
31209
31200
 
@@ -54919,7 +54910,7 @@ var init_index = __esm({
54919
54910
  });
54920
54911
 
54921
54912
  // src/bootstrap.ts
54922
- var cliVersion10 = true ? "0.0.314" : "0.0.0-dev";
54913
+ var cliVersion10 = true ? "0.0.316" : "0.0.0-dev";
54923
54914
  var args = process.argv.slice(2);
54924
54915
  var requestedGlobalHelp = args.length === 1 && (args[0] === "--help" || args[0] === "-h");
54925
54916
  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.314",
3
+ "version": "0.0.316",
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,