@scheduler-systems/gal-run 0.0.254 → 0.0.256
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 +135 -6
- 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.256" : "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;
|
|
@@ -4812,7 +4812,7 @@ function detectEnvironment() {
|
|
|
4812
4812
|
return "dev";
|
|
4813
4813
|
}
|
|
4814
4814
|
try {
|
|
4815
|
-
const version = true ? "0.0.
|
|
4815
|
+
const version = true ? "0.0.256" : void 0;
|
|
4816
4816
|
if (version && version.includes("-local")) {
|
|
4817
4817
|
return "dev";
|
|
4818
4818
|
}
|
|
@@ -5181,7 +5181,7 @@ function getId() {
|
|
|
5181
5181
|
}
|
|
5182
5182
|
function getCliVersion() {
|
|
5183
5183
|
try {
|
|
5184
|
-
return true ? "0.0.
|
|
5184
|
+
return true ? "0.0.256" : "0.0.0-dev";
|
|
5185
5185
|
} catch {
|
|
5186
5186
|
return "0.0.0-dev";
|
|
5187
5187
|
}
|
|
@@ -5478,6 +5478,18 @@ var init_platform_registry = __esm({
|
|
|
5478
5478
|
},
|
|
5479
5479
|
instructionFile: "AGENTS.md"
|
|
5480
5480
|
},
|
|
5481
|
+
"codex-cloud": {
|
|
5482
|
+
id: "codex-cloud",
|
|
5483
|
+
directory: ".codex",
|
|
5484
|
+
display: { fullName: "Codex Cloud", shortName: "Codex Cloud", icon: "\u2601\uFE0F" },
|
|
5485
|
+
capabilities: {
|
|
5486
|
+
hooks: false,
|
|
5487
|
+
credentialSync: false,
|
|
5488
|
+
sessionRunner: false,
|
|
5489
|
+
complianceScan: false,
|
|
5490
|
+
stable: false
|
|
5491
|
+
}
|
|
5492
|
+
},
|
|
5481
5493
|
windsurf: {
|
|
5482
5494
|
id: "windsurf",
|
|
5483
5495
|
directory: ".windsurf",
|
|
@@ -5526,6 +5538,18 @@ var init_platform_registry = __esm({
|
|
|
5526
5538
|
complianceScan: false,
|
|
5527
5539
|
stable: false
|
|
5528
5540
|
}
|
|
5541
|
+
},
|
|
5542
|
+
kling: {
|
|
5543
|
+
id: "kling",
|
|
5544
|
+
directory: ".kling",
|
|
5545
|
+
display: { fullName: "Kling AI", shortName: "Kling AI", icon: "\u{1F3AC}" },
|
|
5546
|
+
capabilities: {
|
|
5547
|
+
hooks: false,
|
|
5548
|
+
credentialSync: false,
|
|
5549
|
+
sessionRunner: false,
|
|
5550
|
+
complianceScan: false,
|
|
5551
|
+
stable: false
|
|
5552
|
+
}
|
|
5529
5553
|
}
|
|
5530
5554
|
};
|
|
5531
5555
|
ALL_PLATFORM_IDS = Object.keys(PLATFORM_REGISTRY);
|
|
@@ -6119,6 +6143,20 @@ var init_dist2 = __esm({
|
|
|
6119
6143
|
settingsFile: "",
|
|
6120
6144
|
rulesDir: "",
|
|
6121
6145
|
ruleExtensions: []
|
|
6146
|
+
},
|
|
6147
|
+
"codex-cloud": {
|
|
6148
|
+
platform: "codex-cloud",
|
|
6149
|
+
directory: ".codex",
|
|
6150
|
+
settingsFile: "",
|
|
6151
|
+
rulesDir: "",
|
|
6152
|
+
ruleExtensions: []
|
|
6153
|
+
},
|
|
6154
|
+
kling: {
|
|
6155
|
+
platform: "kling",
|
|
6156
|
+
directory: ".kling",
|
|
6157
|
+
settingsFile: "",
|
|
6158
|
+
rulesDir: "",
|
|
6159
|
+
ruleExtensions: []
|
|
6122
6160
|
}
|
|
6123
6161
|
};
|
|
6124
6162
|
}
|
|
@@ -6847,7 +6885,9 @@ var init_OrganizationService = __esm({
|
|
|
6847
6885
|
windsurf: this.createEmptyPlatformStats(orgName, "windsurf"),
|
|
6848
6886
|
antigravity: this.createEmptyPlatformStats(orgName, "antigravity"),
|
|
6849
6887
|
amp: this.createEmptyPlatformStats(orgName, "amp"),
|
|
6850
|
-
"ai-studio": this.createEmptyPlatformStats(orgName, "ai-studio")
|
|
6888
|
+
"ai-studio": this.createEmptyPlatformStats(orgName, "ai-studio"),
|
|
6889
|
+
"codex-cloud": this.createEmptyPlatformStats(orgName, "codex-cloud"),
|
|
6890
|
+
kling: this.createEmptyPlatformStats(orgName, "kling")
|
|
6851
6891
|
};
|
|
6852
6892
|
for (const result of scanResults) {
|
|
6853
6893
|
const platformStats = platforms[result.platform];
|
|
@@ -7425,6 +7465,13 @@ var init_DiscoveryInsightValidator = __esm({
|
|
|
7425
7465
|
}
|
|
7426
7466
|
});
|
|
7427
7467
|
|
|
7468
|
+
// ../../packages/core/src/migrations/MigrationRegistry.ts
|
|
7469
|
+
var init_MigrationRegistry = __esm({
|
|
7470
|
+
"../../packages/core/src/migrations/MigrationRegistry.ts"() {
|
|
7471
|
+
"use strict";
|
|
7472
|
+
}
|
|
7473
|
+
});
|
|
7474
|
+
|
|
7428
7475
|
// ../../packages/core/src/index.ts
|
|
7429
7476
|
var init_src = __esm({
|
|
7430
7477
|
"../../packages/core/src/index.ts"() {
|
|
@@ -7467,6 +7514,7 @@ var init_src = __esm({
|
|
|
7467
7514
|
init_ValidationError();
|
|
7468
7515
|
init_convenience_model_telemetry();
|
|
7469
7516
|
init_DiscoveryInsightValidator();
|
|
7517
|
+
init_MigrationRegistry();
|
|
7470
7518
|
}
|
|
7471
7519
|
});
|
|
7472
7520
|
|
|
@@ -12689,6 +12737,13 @@ var init_DiscoveryInsightValidator2 = __esm({
|
|
|
12689
12737
|
}
|
|
12690
12738
|
});
|
|
12691
12739
|
|
|
12740
|
+
// ../../packages/core/dist/migrations/MigrationRegistry.js
|
|
12741
|
+
var init_MigrationRegistry2 = __esm({
|
|
12742
|
+
"../../packages/core/dist/migrations/MigrationRegistry.js"() {
|
|
12743
|
+
"use strict";
|
|
12744
|
+
}
|
|
12745
|
+
});
|
|
12746
|
+
|
|
12692
12747
|
// ../../packages/core/dist/index.js
|
|
12693
12748
|
var init_dist3 = __esm({
|
|
12694
12749
|
"../../packages/core/dist/index.js"() {
|
|
@@ -12731,6 +12786,7 @@ var init_dist3 = __esm({
|
|
|
12731
12786
|
init_ValidationError2();
|
|
12732
12787
|
init_convenience_model_telemetry2();
|
|
12733
12788
|
init_DiscoveryInsightValidator2();
|
|
12789
|
+
init_MigrationRegistry2();
|
|
12734
12790
|
}
|
|
12735
12791
|
});
|
|
12736
12792
|
|
|
@@ -43357,6 +43413,7 @@ function createSetupCommand() {
|
|
|
43357
43413
|
process.exit(1);
|
|
43358
43414
|
}
|
|
43359
43415
|
const next = upsertHostedGalServer(existing, serverName, apiUrl);
|
|
43416
|
+
(0, import_fs24.mkdirSync)(directory, { recursive: true });
|
|
43360
43417
|
(0, import_fs24.writeFileSync)(mcpPath, JSON.stringify(next, null, 2) + "\n", "utf-8");
|
|
43361
43418
|
console.log(source_default.green(`\u2713 Updated ${mcpPath}`));
|
|
43362
43419
|
console.log(source_default.dim(` mcpServers.${serverName}.url = ${buildMcpUrl(apiUrl)}
|
|
@@ -52678,6 +52735,76 @@ var init_workflow2 = __esm({
|
|
|
52678
52735
|
}
|
|
52679
52736
|
});
|
|
52680
52737
|
|
|
52738
|
+
// src/commands/workspace.ts
|
|
52739
|
+
function printNoWorkspacesMessage() {
|
|
52740
|
+
console.log("No cloud workspaces found.");
|
|
52741
|
+
console.log();
|
|
52742
|
+
console.log("To connect your organization: gal auth login");
|
|
52743
|
+
console.log();
|
|
52744
|
+
console.log("Using local mode? Your local configs are managed with:");
|
|
52745
|
+
console.log(" gal scan # Discover configs on this machine");
|
|
52746
|
+
console.log(" gal approve # Approve a local config");
|
|
52747
|
+
console.log(" gal sync # Sync approved config to all agents");
|
|
52748
|
+
}
|
|
52749
|
+
function createWorkspaceCommand() {
|
|
52750
|
+
const command = new Command("workspace");
|
|
52751
|
+
command.description("Manage workspaces (GitHub organizations and personal accounts)");
|
|
52752
|
+
command.command("list").description("List all connected workspaces").action(() => {
|
|
52753
|
+
const config = ConfigManager.load();
|
|
52754
|
+
const memberships = config.orgMemberships ?? [];
|
|
52755
|
+
if (memberships.length === 0) {
|
|
52756
|
+
printNoWorkspacesMessage();
|
|
52757
|
+
return;
|
|
52758
|
+
}
|
|
52759
|
+
for (const workspace of memberships) {
|
|
52760
|
+
const isActive = workspace === config.defaultOrg;
|
|
52761
|
+
const prefix = isActive ? source_default.green("\u2713") : " ";
|
|
52762
|
+
const suffix = isActive ? source_default.green(" (active)") : "";
|
|
52763
|
+
console.log(`${prefix} ${workspace}${suffix}`);
|
|
52764
|
+
}
|
|
52765
|
+
});
|
|
52766
|
+
command.command("current").description("Show the currently active workspace").action(() => {
|
|
52767
|
+
const config = ConfigManager.load();
|
|
52768
|
+
if (!config.defaultOrg) {
|
|
52769
|
+
console.log("No active workspace set. Run `gal workspace switch <name>` to set one.");
|
|
52770
|
+
return;
|
|
52771
|
+
}
|
|
52772
|
+
console.log(`Active workspace: ${config.defaultOrg}`);
|
|
52773
|
+
});
|
|
52774
|
+
command.command("switch").description("Switch the active workspace").argument("<name>", "Workspace name to activate").action((name) => {
|
|
52775
|
+
const trimmedName = name.trim();
|
|
52776
|
+
const config = ConfigManager.load();
|
|
52777
|
+
const memberships = config.orgMemberships ?? [];
|
|
52778
|
+
if (!trimmedName) {
|
|
52779
|
+
console.error(source_default.red("Workspace name cannot be empty."));
|
|
52780
|
+
process.exit(1);
|
|
52781
|
+
}
|
|
52782
|
+
if (memberships.length > 0 && !memberships.includes(trimmedName)) {
|
|
52783
|
+
console.error(
|
|
52784
|
+
source_default.red(
|
|
52785
|
+
`Workspace "${trimmedName}" not found. Run \`gal workspace list\` to see available workspaces.`
|
|
52786
|
+
)
|
|
52787
|
+
);
|
|
52788
|
+
process.exit(1);
|
|
52789
|
+
}
|
|
52790
|
+
ConfigManager.save({
|
|
52791
|
+
...config,
|
|
52792
|
+
defaultOrg: trimmedName
|
|
52793
|
+
});
|
|
52794
|
+
console.log(source_default.green(`\u2713 Switched to ${trimmedName}`));
|
|
52795
|
+
console.log(" Run `gal sync --pull` to sync the approved config for this workspace.");
|
|
52796
|
+
});
|
|
52797
|
+
return command;
|
|
52798
|
+
}
|
|
52799
|
+
var init_workspace6 = __esm({
|
|
52800
|
+
"src/commands/workspace.ts"() {
|
|
52801
|
+
"use strict";
|
|
52802
|
+
init_esm();
|
|
52803
|
+
init_source();
|
|
52804
|
+
init_config_manager();
|
|
52805
|
+
}
|
|
52806
|
+
});
|
|
52807
|
+
|
|
52681
52808
|
// src/command-registry.ts
|
|
52682
52809
|
var COMMAND_FACTORIES;
|
|
52683
52810
|
var init_command_registry = __esm({
|
|
@@ -52728,6 +52855,7 @@ var init_command_registry = __esm({
|
|
|
52728
52855
|
init_update();
|
|
52729
52856
|
init_work();
|
|
52730
52857
|
init_workflow2();
|
|
52858
|
+
init_workspace6();
|
|
52731
52859
|
COMMAND_FACTORIES = [
|
|
52732
52860
|
{ name: "admin", create: createAdminCommand },
|
|
52733
52861
|
{ name: "agent", create: createAgentCommand },
|
|
@@ -52773,7 +52901,8 @@ var init_command_registry = __esm({
|
|
|
52773
52901
|
{ name: "universal", create: createUniversalCommand },
|
|
52774
52902
|
{ name: "update", create: createUpdateCommand },
|
|
52775
52903
|
{ name: "work", create: createWorkCommand },
|
|
52776
|
-
{ name: "workflow", create: createWorkflowCommand }
|
|
52904
|
+
{ name: "workflow", create: createWorkflowCommand },
|
|
52905
|
+
{ name: "workspace", create: createWorkspaceCommand }
|
|
52777
52906
|
];
|
|
52778
52907
|
}
|
|
52779
52908
|
});
|
|
@@ -53251,7 +53380,7 @@ var init_index = __esm({
|
|
|
53251
53380
|
});
|
|
53252
53381
|
|
|
53253
53382
|
// src/bootstrap.ts
|
|
53254
|
-
var cliVersion10 = true ? "0.0.
|
|
53383
|
+
var cliVersion10 = true ? "0.0.256" : "0.0.0-dev";
|
|
53255
53384
|
var args = process.argv.slice(2);
|
|
53256
53385
|
var requestedGlobalHelp = args.length === 1 && (args[0] === "--help" || args[0] === "-h");
|
|
53257
53386
|
var requestedVersion = args.length === 1 && (args[0] === "--version" || args[0] === "-V");
|
package/package.json
CHANGED