@scheduler-systems/gal-run 0.0.309 → 0.0.311
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 +15 -15
- 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.311" : "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.311" : 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.311" : "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.
|
|
30989
|
+
# GAL_HOOK_VERSION = "2.2.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"
|
|
@@ -30997,7 +30997,7 @@ if [ "$GAL_NO_AUTO_UPDATE" != "1" ] && [ -z "$CI" ] && [ -f "$UPDATE_CACHE" ]; t
|
|
|
30997
30997
|
gal update 2>/dev/null || true
|
|
30998
30998
|
UPDATED=$(gal --version 2>/dev/null)
|
|
30999
30999
|
if [ -n "$UPDATED" ] && [ "$UPDATED" != "$CURRENT" ]; then
|
|
31000
|
-
echo "\u{1F504} GAL: Updated to v$UPDATED"
|
|
31000
|
+
echo "\u{1F504} GAL: Updated to v$UPDATED" > /dev/tty
|
|
31001
31001
|
fi
|
|
31002
31002
|
fi
|
|
31003
31003
|
fi
|
|
@@ -31016,7 +31016,7 @@ gal sync --pull --auto 2>/dev/null || true
|
|
|
31016
31016
|
description: "GAL config sync and auto-update",
|
|
31017
31017
|
timeout: 1e4,
|
|
31018
31018
|
installed_by: "gal-cli",
|
|
31019
|
-
version: "2.
|
|
31019
|
+
version: "2.2.0"
|
|
31020
31020
|
};
|
|
31021
31021
|
let hooks = { hooks: { startup: [] } };
|
|
31022
31022
|
if ((0, import_fs15.existsSync)(hooksPath)) {
|
|
@@ -31033,7 +31033,7 @@ gal sync --pull --auto 2>/dev/null || true
|
|
|
31033
31033
|
(entry) => entry.installed_by === "gal-cli"
|
|
31034
31034
|
);
|
|
31035
31035
|
if (existingIndex >= 0) {
|
|
31036
|
-
if (hooks.hooks.startup[existingIndex].version === "2.
|
|
31036
|
+
if (hooks.hooks.startup[existingIndex].version === "2.2.0") {
|
|
31037
31037
|
return {
|
|
31038
31038
|
agent: "cursor",
|
|
31039
31039
|
status: "up_to_date",
|
|
@@ -31079,7 +31079,7 @@ function installWindsurfHooks() {
|
|
|
31079
31079
|
const scriptContent = `#!/bin/sh
|
|
31080
31080
|
# GAL Config Sync Hook for Windsurf
|
|
31081
31081
|
# Installed by: gal hooks install
|
|
31082
|
-
# GAL_HOOK_VERSION = "2.
|
|
31082
|
+
# GAL_HOOK_VERSION = "2.2.0"
|
|
31083
31083
|
|
|
31084
31084
|
# Auto-update: silently upgrade gal CLI if newer version is cached
|
|
31085
31085
|
UPDATE_CACHE="$HOME/.gal/update-cache.json"
|
|
@@ -31090,7 +31090,7 @@ if [ "$GAL_NO_AUTO_UPDATE" != "1" ] && [ -z "$CI" ] && [ -f "$UPDATE_CACHE" ]; t
|
|
|
31090
31090
|
gal update 2>/dev/null || true
|
|
31091
31091
|
UPDATED=$(gal --version 2>/dev/null)
|
|
31092
31092
|
if [ -n "$UPDATED" ] && [ "$UPDATED" != "$CURRENT" ]; then
|
|
31093
|
-
echo "\u{1F504} GAL: Updated to v$UPDATED"
|
|
31093
|
+
echo "\u{1F504} GAL: Updated to v$UPDATED" > /dev/tty
|
|
31094
31094
|
fi
|
|
31095
31095
|
fi
|
|
31096
31096
|
fi
|
|
@@ -31109,7 +31109,7 @@ gal sync --pull --auto 2>/dev/null || true
|
|
|
31109
31109
|
description: "GAL config sync and auto-update",
|
|
31110
31110
|
timeout: 1e4,
|
|
31111
31111
|
installed_by: "gal-cli",
|
|
31112
|
-
version: "2.
|
|
31112
|
+
version: "2.2.0"
|
|
31113
31113
|
};
|
|
31114
31114
|
let hooks = { hooks: { startup: [] } };
|
|
31115
31115
|
if ((0, import_fs15.existsSync)(hooksPath)) {
|
|
@@ -31126,7 +31126,7 @@ gal sync --pull --auto 2>/dev/null || true
|
|
|
31126
31126
|
(entry) => entry.installed_by === "gal-cli"
|
|
31127
31127
|
);
|
|
31128
31128
|
if (existingIndex >= 0) {
|
|
31129
|
-
if (hooks.hooks.startup[existingIndex].version === "2.
|
|
31129
|
+
if (hooks.hooks.startup[existingIndex].version === "2.2.0") {
|
|
31130
31130
|
return {
|
|
31131
31131
|
agent: "windsurf",
|
|
31132
31132
|
status: "up_to_date",
|
|
@@ -31167,7 +31167,7 @@ function installGeminiHooks() {
|
|
|
31167
31167
|
const hookContent = `#!/bin/sh
|
|
31168
31168
|
# GAL Config Sync Hook for Gemini CLI
|
|
31169
31169
|
# Installed by: gal hooks install
|
|
31170
|
-
# GAL_HOOK_VERSION = "2.
|
|
31170
|
+
# GAL_HOOK_VERSION = "2.2.0"
|
|
31171
31171
|
|
|
31172
31172
|
# Auto-update: silently upgrade gal CLI if newer version is cached
|
|
31173
31173
|
UPDATE_CACHE="$HOME/.gal/update-cache.json"
|
|
@@ -31178,7 +31178,7 @@ if [ "$GAL_NO_AUTO_UPDATE" != "1" ] && [ -z "$CI" ] && [ -f "$UPDATE_CACHE" ]; t
|
|
|
31178
31178
|
gal update 2>/dev/null || true
|
|
31179
31179
|
UPDATED=$(gal --version 2>/dev/null)
|
|
31180
31180
|
if [ -n "$UPDATED" ] && [ "$UPDATED" != "$CURRENT" ]; then
|
|
31181
|
-
echo "\u{1F504} GAL: Updated to v$UPDATED"
|
|
31181
|
+
echo "\u{1F504} GAL: Updated to v$UPDATED" > /dev/tty
|
|
31182
31182
|
fi
|
|
31183
31183
|
fi
|
|
31184
31184
|
fi
|
|
@@ -31191,7 +31191,7 @@ gal sync --pull --auto 2>/dev/null || true
|
|
|
31191
31191
|
`;
|
|
31192
31192
|
if ((0, import_fs15.existsSync)(hookPath)) {
|
|
31193
31193
|
const existing = (0, import_fs15.readFileSync)(hookPath, "utf-8");
|
|
31194
|
-
if (existing.includes('GAL_HOOK_VERSION = "2.
|
|
31194
|
+
if (existing.includes('GAL_HOOK_VERSION = "2.2.0"')) {
|
|
31195
31195
|
return {
|
|
31196
31196
|
agent: "gemini",
|
|
31197
31197
|
status: "up_to_date",
|
|
@@ -54876,7 +54876,7 @@ var init_index = __esm({
|
|
|
54876
54876
|
});
|
|
54877
54877
|
|
|
54878
54878
|
// src/bootstrap.ts
|
|
54879
|
-
var cliVersion10 = true ? "0.0.
|
|
54879
|
+
var cliVersion10 = true ? "0.0.311" : "0.0.0-dev";
|
|
54880
54880
|
var args = process.argv.slice(2);
|
|
54881
54881
|
var requestedGlobalHelp = args.length === 1 && (args[0] === "--help" || args[0] === "-h");
|
|
54882
54882
|
var requestedVersion = args.length === 1 && (args[0] === "--version" || args[0] === "-V");
|
package/package.json
CHANGED