@scheduler-systems/gal-run 0.0.254 → 0.0.255
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 +115 -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.255" : "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.255" : 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.255" : "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",
|
|
@@ -6119,6 +6131,13 @@ var init_dist2 = __esm({
|
|
|
6119
6131
|
settingsFile: "",
|
|
6120
6132
|
rulesDir: "",
|
|
6121
6133
|
ruleExtensions: []
|
|
6134
|
+
},
|
|
6135
|
+
"codex-cloud": {
|
|
6136
|
+
platform: "codex-cloud",
|
|
6137
|
+
directory: ".codex",
|
|
6138
|
+
settingsFile: "",
|
|
6139
|
+
rulesDir: "",
|
|
6140
|
+
ruleExtensions: []
|
|
6122
6141
|
}
|
|
6123
6142
|
};
|
|
6124
6143
|
}
|
|
@@ -6847,7 +6866,8 @@ var init_OrganizationService = __esm({
|
|
|
6847
6866
|
windsurf: this.createEmptyPlatformStats(orgName, "windsurf"),
|
|
6848
6867
|
antigravity: this.createEmptyPlatformStats(orgName, "antigravity"),
|
|
6849
6868
|
amp: this.createEmptyPlatformStats(orgName, "amp"),
|
|
6850
|
-
"ai-studio": this.createEmptyPlatformStats(orgName, "ai-studio")
|
|
6869
|
+
"ai-studio": this.createEmptyPlatformStats(orgName, "ai-studio"),
|
|
6870
|
+
"codex-cloud": this.createEmptyPlatformStats(orgName, "codex-cloud")
|
|
6851
6871
|
};
|
|
6852
6872
|
for (const result of scanResults) {
|
|
6853
6873
|
const platformStats = platforms[result.platform];
|
|
@@ -7425,6 +7445,13 @@ var init_DiscoveryInsightValidator = __esm({
|
|
|
7425
7445
|
}
|
|
7426
7446
|
});
|
|
7427
7447
|
|
|
7448
|
+
// ../../packages/core/src/migrations/MigrationRegistry.ts
|
|
7449
|
+
var init_MigrationRegistry = __esm({
|
|
7450
|
+
"../../packages/core/src/migrations/MigrationRegistry.ts"() {
|
|
7451
|
+
"use strict";
|
|
7452
|
+
}
|
|
7453
|
+
});
|
|
7454
|
+
|
|
7428
7455
|
// ../../packages/core/src/index.ts
|
|
7429
7456
|
var init_src = __esm({
|
|
7430
7457
|
"../../packages/core/src/index.ts"() {
|
|
@@ -7467,6 +7494,7 @@ var init_src = __esm({
|
|
|
7467
7494
|
init_ValidationError();
|
|
7468
7495
|
init_convenience_model_telemetry();
|
|
7469
7496
|
init_DiscoveryInsightValidator();
|
|
7497
|
+
init_MigrationRegistry();
|
|
7470
7498
|
}
|
|
7471
7499
|
});
|
|
7472
7500
|
|
|
@@ -12689,6 +12717,13 @@ var init_DiscoveryInsightValidator2 = __esm({
|
|
|
12689
12717
|
}
|
|
12690
12718
|
});
|
|
12691
12719
|
|
|
12720
|
+
// ../../packages/core/dist/migrations/MigrationRegistry.js
|
|
12721
|
+
var init_MigrationRegistry2 = __esm({
|
|
12722
|
+
"../../packages/core/dist/migrations/MigrationRegistry.js"() {
|
|
12723
|
+
"use strict";
|
|
12724
|
+
}
|
|
12725
|
+
});
|
|
12726
|
+
|
|
12692
12727
|
// ../../packages/core/dist/index.js
|
|
12693
12728
|
var init_dist3 = __esm({
|
|
12694
12729
|
"../../packages/core/dist/index.js"() {
|
|
@@ -12731,6 +12766,7 @@ var init_dist3 = __esm({
|
|
|
12731
12766
|
init_ValidationError2();
|
|
12732
12767
|
init_convenience_model_telemetry2();
|
|
12733
12768
|
init_DiscoveryInsightValidator2();
|
|
12769
|
+
init_MigrationRegistry2();
|
|
12734
12770
|
}
|
|
12735
12771
|
});
|
|
12736
12772
|
|
|
@@ -43357,6 +43393,7 @@ function createSetupCommand() {
|
|
|
43357
43393
|
process.exit(1);
|
|
43358
43394
|
}
|
|
43359
43395
|
const next = upsertHostedGalServer(existing, serverName, apiUrl);
|
|
43396
|
+
(0, import_fs24.mkdirSync)(directory, { recursive: true });
|
|
43360
43397
|
(0, import_fs24.writeFileSync)(mcpPath, JSON.stringify(next, null, 2) + "\n", "utf-8");
|
|
43361
43398
|
console.log(source_default.green(`\u2713 Updated ${mcpPath}`));
|
|
43362
43399
|
console.log(source_default.dim(` mcpServers.${serverName}.url = ${buildMcpUrl(apiUrl)}
|
|
@@ -52678,6 +52715,76 @@ var init_workflow2 = __esm({
|
|
|
52678
52715
|
}
|
|
52679
52716
|
});
|
|
52680
52717
|
|
|
52718
|
+
// src/commands/workspace.ts
|
|
52719
|
+
function printNoWorkspacesMessage() {
|
|
52720
|
+
console.log("No cloud workspaces found.");
|
|
52721
|
+
console.log();
|
|
52722
|
+
console.log("To connect your organization: gal auth login");
|
|
52723
|
+
console.log();
|
|
52724
|
+
console.log("Using local mode? Your local configs are managed with:");
|
|
52725
|
+
console.log(" gal scan # Discover configs on this machine");
|
|
52726
|
+
console.log(" gal approve # Approve a local config");
|
|
52727
|
+
console.log(" gal sync # Sync approved config to all agents");
|
|
52728
|
+
}
|
|
52729
|
+
function createWorkspaceCommand() {
|
|
52730
|
+
const command = new Command("workspace");
|
|
52731
|
+
command.description("Manage workspaces (GitHub organizations and personal accounts)");
|
|
52732
|
+
command.command("list").description("List all connected workspaces").action(() => {
|
|
52733
|
+
const config = ConfigManager.load();
|
|
52734
|
+
const memberships = config.orgMemberships ?? [];
|
|
52735
|
+
if (memberships.length === 0) {
|
|
52736
|
+
printNoWorkspacesMessage();
|
|
52737
|
+
return;
|
|
52738
|
+
}
|
|
52739
|
+
for (const workspace of memberships) {
|
|
52740
|
+
const isActive = workspace === config.defaultOrg;
|
|
52741
|
+
const prefix = isActive ? source_default.green("\u2713") : " ";
|
|
52742
|
+
const suffix = isActive ? source_default.green(" (active)") : "";
|
|
52743
|
+
console.log(`${prefix} ${workspace}${suffix}`);
|
|
52744
|
+
}
|
|
52745
|
+
});
|
|
52746
|
+
command.command("current").description("Show the currently active workspace").action(() => {
|
|
52747
|
+
const config = ConfigManager.load();
|
|
52748
|
+
if (!config.defaultOrg) {
|
|
52749
|
+
console.log("No active workspace set. Run `gal workspace switch <name>` to set one.");
|
|
52750
|
+
return;
|
|
52751
|
+
}
|
|
52752
|
+
console.log(`Active workspace: ${config.defaultOrg}`);
|
|
52753
|
+
});
|
|
52754
|
+
command.command("switch").description("Switch the active workspace").argument("<name>", "Workspace name to activate").action((name) => {
|
|
52755
|
+
const trimmedName = name.trim();
|
|
52756
|
+
const config = ConfigManager.load();
|
|
52757
|
+
const memberships = config.orgMemberships ?? [];
|
|
52758
|
+
if (!trimmedName) {
|
|
52759
|
+
console.error(source_default.red("Workspace name cannot be empty."));
|
|
52760
|
+
process.exit(1);
|
|
52761
|
+
}
|
|
52762
|
+
if (memberships.length > 0 && !memberships.includes(trimmedName)) {
|
|
52763
|
+
console.error(
|
|
52764
|
+
source_default.red(
|
|
52765
|
+
`Workspace "${trimmedName}" not found. Run \`gal workspace list\` to see available workspaces.`
|
|
52766
|
+
)
|
|
52767
|
+
);
|
|
52768
|
+
process.exit(1);
|
|
52769
|
+
}
|
|
52770
|
+
ConfigManager.save({
|
|
52771
|
+
...config,
|
|
52772
|
+
defaultOrg: trimmedName
|
|
52773
|
+
});
|
|
52774
|
+
console.log(source_default.green(`\u2713 Switched to ${trimmedName}`));
|
|
52775
|
+
console.log(" Run `gal sync --pull` to sync the approved config for this workspace.");
|
|
52776
|
+
});
|
|
52777
|
+
return command;
|
|
52778
|
+
}
|
|
52779
|
+
var init_workspace6 = __esm({
|
|
52780
|
+
"src/commands/workspace.ts"() {
|
|
52781
|
+
"use strict";
|
|
52782
|
+
init_esm();
|
|
52783
|
+
init_source();
|
|
52784
|
+
init_config_manager();
|
|
52785
|
+
}
|
|
52786
|
+
});
|
|
52787
|
+
|
|
52681
52788
|
// src/command-registry.ts
|
|
52682
52789
|
var COMMAND_FACTORIES;
|
|
52683
52790
|
var init_command_registry = __esm({
|
|
@@ -52728,6 +52835,7 @@ var init_command_registry = __esm({
|
|
|
52728
52835
|
init_update();
|
|
52729
52836
|
init_work();
|
|
52730
52837
|
init_workflow2();
|
|
52838
|
+
init_workspace6();
|
|
52731
52839
|
COMMAND_FACTORIES = [
|
|
52732
52840
|
{ name: "admin", create: createAdminCommand },
|
|
52733
52841
|
{ name: "agent", create: createAgentCommand },
|
|
@@ -52773,7 +52881,8 @@ var init_command_registry = __esm({
|
|
|
52773
52881
|
{ name: "universal", create: createUniversalCommand },
|
|
52774
52882
|
{ name: "update", create: createUpdateCommand },
|
|
52775
52883
|
{ name: "work", create: createWorkCommand },
|
|
52776
|
-
{ name: "workflow", create: createWorkflowCommand }
|
|
52884
|
+
{ name: "workflow", create: createWorkflowCommand },
|
|
52885
|
+
{ name: "workspace", create: createWorkspaceCommand }
|
|
52777
52886
|
];
|
|
52778
52887
|
}
|
|
52779
52888
|
});
|
|
@@ -53251,7 +53360,7 @@ var init_index = __esm({
|
|
|
53251
53360
|
});
|
|
53252
53361
|
|
|
53253
53362
|
// src/bootstrap.ts
|
|
53254
|
-
var cliVersion10 = true ? "0.0.
|
|
53363
|
+
var cliVersion10 = true ? "0.0.255" : "0.0.0-dev";
|
|
53255
53364
|
var args = process.argv.slice(2);
|
|
53256
53365
|
var requestedGlobalHelp = args.length === 1 && (args[0] === "--help" || args[0] === "-h");
|
|
53257
53366
|
var requestedVersion = args.length === 1 && (args[0] === "--version" || args[0] === "-V");
|
package/package.json
CHANGED