@gapi/gcli 1.8.266 → 1.8.267
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/build.js +4 -0
- package/package.json +1 -1
- package/release/index.js +74 -73
package/build.js
CHANGED
|
@@ -5,6 +5,10 @@ require('esbuild')
|
|
|
5
5
|
platform: 'node',
|
|
6
6
|
target: 'node24',
|
|
7
7
|
outfile: './release/index.js',
|
|
8
|
+
// `gcli --version` reads it (src/main.ts)
|
|
9
|
+
define: {
|
|
10
|
+
__GCLI_VERSION__: JSON.stringify(require('./package.json').version),
|
|
11
|
+
},
|
|
8
12
|
external: process.env.BINARY_BUILD ? [] : ["esbuild"]
|
|
9
13
|
})
|
|
10
14
|
.then((data) => console.log('SUCCESS', data))
|
package/package.json
CHANGED
package/release/index.js
CHANGED
|
@@ -21755,7 +21755,7 @@ var require_index_node_cjs2 = __commonJS({
|
|
|
21755
21755
|
] = "First argument to `onLog` must be null or a function.", _a2);
|
|
21756
21756
|
var ERROR_FACTORY = new util2.ErrorFactory("app", "Firebase", ERRORS);
|
|
21757
21757
|
var name$1 = "@firebase/app";
|
|
21758
|
-
var
|
|
21758
|
+
var version3 = "0.6.4";
|
|
21759
21759
|
var name$2 = "@firebase/analytics";
|
|
21760
21760
|
var name$3 = "@firebase/auth";
|
|
21761
21761
|
var name$4 = "@firebase/database";
|
|
@@ -22010,17 +22010,17 @@ var require_index_node_cjs2 = __commonJS({
|
|
|
22010
22010
|
namespace[componentName]
|
|
22011
22011
|
) : null;
|
|
22012
22012
|
}
|
|
22013
|
-
function registerVersion(libraryKeyOrName,
|
|
22013
|
+
function registerVersion(libraryKeyOrName, version4, variant) {
|
|
22014
22014
|
var _a3;
|
|
22015
22015
|
var library = (_a3 = PLATFORM_LOG_STRING[libraryKeyOrName]) !== null && _a3 !== void 0 ? _a3 : libraryKeyOrName;
|
|
22016
22016
|
if (variant) {
|
|
22017
22017
|
library += "-" + variant;
|
|
22018
22018
|
}
|
|
22019
22019
|
var libraryMismatch = library.match(/\s|\//);
|
|
22020
|
-
var versionMismatch =
|
|
22020
|
+
var versionMismatch = version4.match(/\s|\//);
|
|
22021
22021
|
if (libraryMismatch || versionMismatch) {
|
|
22022
22022
|
var warning = [
|
|
22023
|
-
'Unable to register library "' + library + '" with version "' +
|
|
22023
|
+
'Unable to register library "' + library + '" with version "' + version4 + '":'
|
|
22024
22024
|
];
|
|
22025
22025
|
if (libraryMismatch) {
|
|
22026
22026
|
warning.push('library name "' + library + '" contains illegal characters (whitespace or "/")');
|
|
@@ -22029,7 +22029,7 @@ var require_index_node_cjs2 = __commonJS({
|
|
|
22029
22029
|
warning.push("and");
|
|
22030
22030
|
}
|
|
22031
22031
|
if (versionMismatch) {
|
|
22032
|
-
warning.push('version name "' +
|
|
22032
|
+
warning.push('version name "' + version4 + '" contains illegal characters (whitespace or "/")');
|
|
22033
22033
|
}
|
|
22034
22034
|
logger.warn(warning.join(" "));
|
|
22035
22035
|
return;
|
|
@@ -22037,7 +22037,7 @@ var require_index_node_cjs2 = __commonJS({
|
|
|
22037
22037
|
registerComponent(new component.Component(
|
|
22038
22038
|
library + "-version",
|
|
22039
22039
|
function() {
|
|
22040
|
-
return { library, version:
|
|
22040
|
+
return { library, version: version4 };
|
|
22041
22041
|
},
|
|
22042
22042
|
"VERSION"
|
|
22043
22043
|
/* VERSION */
|
|
@@ -22110,7 +22110,7 @@ var require_index_node_cjs2 = __commonJS({
|
|
|
22110
22110
|
"PRIVATE"
|
|
22111
22111
|
/* PRIVATE */
|
|
22112
22112
|
));
|
|
22113
|
-
firebase3.registerVersion(name$1,
|
|
22113
|
+
firebase3.registerVersion(name$1, version3, variant);
|
|
22114
22114
|
firebase3.registerVersion("fire-js", "");
|
|
22115
22115
|
}
|
|
22116
22116
|
firebase2.INTERNAL.extendNamespace({
|
|
@@ -35988,8 +35988,8 @@ var require_index_cjs3 = __commonJS({
|
|
|
35988
35988
|
}
|
|
35989
35989
|
var firebase2 = _interopDefault(require_index_node_cjs2());
|
|
35990
35990
|
var name2 = "firebase";
|
|
35991
|
-
var
|
|
35992
|
-
firebase2.registerVersion(name2,
|
|
35991
|
+
var version3 = "7.14.6";
|
|
35992
|
+
firebase2.registerVersion(name2, version3, "app");
|
|
35993
35993
|
module2.exports = firebase2;
|
|
35994
35994
|
}
|
|
35995
35995
|
});
|
|
@@ -39770,15 +39770,15 @@ var require_source_map_consumer = __commonJS({
|
|
|
39770
39770
|
if (typeof aSourceMap === "string") {
|
|
39771
39771
|
sourceMap = util2.parseSourceMapInput(aSourceMap);
|
|
39772
39772
|
}
|
|
39773
|
-
var
|
|
39773
|
+
var version3 = util2.getArg(sourceMap, "version");
|
|
39774
39774
|
var sources = util2.getArg(sourceMap, "sources");
|
|
39775
39775
|
var names = util2.getArg(sourceMap, "names", []);
|
|
39776
39776
|
var sourceRoot = util2.getArg(sourceMap, "sourceRoot", null);
|
|
39777
39777
|
var sourcesContent = util2.getArg(sourceMap, "sourcesContent", null);
|
|
39778
39778
|
var mappings = util2.getArg(sourceMap, "mappings");
|
|
39779
39779
|
var file2 = util2.getArg(sourceMap, "file", null);
|
|
39780
|
-
if (
|
|
39781
|
-
throw new Error("Unsupported version: " +
|
|
39780
|
+
if (version3 != this._version) {
|
|
39781
|
+
throw new Error("Unsupported version: " + version3);
|
|
39782
39782
|
}
|
|
39783
39783
|
if (sourceRoot) {
|
|
39784
39784
|
sourceRoot = util2.normalize(sourceRoot);
|
|
@@ -40083,10 +40083,10 @@ var require_source_map_consumer = __commonJS({
|
|
|
40083
40083
|
if (typeof aSourceMap === "string") {
|
|
40084
40084
|
sourceMap = util2.parseSourceMapInput(aSourceMap);
|
|
40085
40085
|
}
|
|
40086
|
-
var
|
|
40086
|
+
var version3 = util2.getArg(sourceMap, "version");
|
|
40087
40087
|
var sections = util2.getArg(sourceMap, "sections");
|
|
40088
|
-
if (
|
|
40089
|
-
throw new Error("Unsupported version: " +
|
|
40088
|
+
if (version3 != this._version) {
|
|
40089
|
+
throw new Error("Unsupported version: " + version3);
|
|
40090
40090
|
}
|
|
40091
40091
|
this._sources = new ArraySet();
|
|
40092
40092
|
this._names = new ArraySet();
|
|
@@ -43262,7 +43262,7 @@ var require_typescript = __commonJS({
|
|
|
43262
43262
|
usingSingleLineStringWriter: () => usingSingleLineStringWriter,
|
|
43263
43263
|
utf16EncodeAsString: () => utf16EncodeAsString,
|
|
43264
43264
|
validateLocaleAndSetLanguage: () => validateLocaleAndSetLanguage,
|
|
43265
|
-
version: () =>
|
|
43265
|
+
version: () => version3,
|
|
43266
43266
|
versionMajorMinor: () => versionMajorMinor,
|
|
43267
43267
|
visitArray: () => visitArray,
|
|
43268
43268
|
visitCommaListElements: () => visitCommaListElements,
|
|
@@ -43286,7 +43286,7 @@ var require_typescript = __commonJS({
|
|
|
43286
43286
|
});
|
|
43287
43287
|
module3.exports = __toCommonJS2(typescript_exports);
|
|
43288
43288
|
var versionMajorMinor = "5.9";
|
|
43289
|
-
var
|
|
43289
|
+
var version3 = "5.9.3";
|
|
43290
43290
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
43291
43291
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
43292
43292
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -88398,7 +88398,7 @@ ${lanes.join("\n")}
|
|
|
88398
88398
|
}
|
|
88399
88399
|
var typeScriptVersion;
|
|
88400
88400
|
function getPackageJsonTypesVersionsPaths(typesVersions) {
|
|
88401
|
-
if (!typeScriptVersion) typeScriptVersion = new Version(
|
|
88401
|
+
if (!typeScriptVersion) typeScriptVersion = new Version(version3);
|
|
88402
88402
|
for (const key in typesVersions) {
|
|
88403
88403
|
if (!hasProperty(typesVersions, key)) continue;
|
|
88404
88404
|
const keyRange = VersionRange.tryParse(key);
|
|
@@ -90046,7 +90046,7 @@ ${lanes.join("\n")}
|
|
|
90046
90046
|
false
|
|
90047
90047
|
);
|
|
90048
90048
|
if (state.traceEnabled) {
|
|
90049
|
-
trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version,
|
|
90049
|
+
trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version3, moduleName);
|
|
90050
90050
|
}
|
|
90051
90051
|
const pathPatterns = tryParsePatterns(versionPaths.paths);
|
|
90052
90052
|
const result = tryLoadModuleUsingPaths(extensions, moduleName, candidate, versionPaths.paths, pathPatterns, loader, onlyRecordFailuresForPackageFile || onlyRecordFailuresForIndex, state);
|
|
@@ -90528,7 +90528,7 @@ ${lanes.join("\n")}
|
|
|
90528
90528
|
if (!startsWith(key, "types@")) return false;
|
|
90529
90529
|
const range = VersionRange.tryParse(key.substring("types@".length));
|
|
90530
90530
|
if (!range) return false;
|
|
90531
|
-
return range.test(
|
|
90531
|
+
return range.test(version3);
|
|
90532
90532
|
}
|
|
90533
90533
|
function loadModuleFromNearestNodeModulesDirectory(extensions, moduleName, directory, state, cache, redirectedReference) {
|
|
90534
90534
|
return loadModuleFromNearestNodeModulesDirectoryWorker(
|
|
@@ -90664,7 +90664,7 @@ ${lanes.join("\n")}
|
|
|
90664
90664
|
const versionPaths = rest !== "" && packageInfo ? getVersionPathsOfPackageJsonInfo(packageInfo, state) : void 0;
|
|
90665
90665
|
if (versionPaths) {
|
|
90666
90666
|
if (state.traceEnabled) {
|
|
90667
|
-
trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version,
|
|
90667
|
+
trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version3, rest);
|
|
90668
90668
|
}
|
|
90669
90669
|
const packageDirectoryExists = nodeModulesDirectoryExists && directoryProbablyExists(packageDirectory, state.host);
|
|
90670
90670
|
const pathPatterns = tryParsePatterns(versionPaths.paths);
|
|
@@ -170673,7 +170673,7 @@ ${lanes.join("\n")}
|
|
|
170673
170673
|
emitSkipped = true;
|
|
170674
170674
|
return;
|
|
170675
170675
|
}
|
|
170676
|
-
const buildInfo = host.getBuildInfo() || { version:
|
|
170676
|
+
const buildInfo = host.getBuildInfo() || { version: version3 };
|
|
170677
170677
|
writeFile13(
|
|
170678
170678
|
host,
|
|
170679
170679
|
emitterDiagnostics,
|
|
@@ -181406,7 +181406,7 @@ ${lanes.join("\n")}
|
|
|
181406
181406
|
root: arrayFrom(rootFileNames, (r2) => relativeToBuildInfo(r2)),
|
|
181407
181407
|
errors: state.hasErrors ? true : void 0,
|
|
181408
181408
|
checkPending: state.checkPending,
|
|
181409
|
-
version:
|
|
181409
|
+
version: version3
|
|
181410
181410
|
};
|
|
181411
181411
|
return buildInfo2;
|
|
181412
181412
|
}
|
|
@@ -181438,7 +181438,7 @@ ${lanes.join("\n")}
|
|
|
181438
181438
|
// Actual value
|
|
181439
181439
|
errors: state.hasErrors ? true : void 0,
|
|
181440
181440
|
checkPending: state.checkPending,
|
|
181441
|
-
version:
|
|
181441
|
+
version: version3
|
|
181442
181442
|
};
|
|
181443
181443
|
return buildInfo2;
|
|
181444
181444
|
}
|
|
@@ -181535,7 +181535,7 @@ ${lanes.join("\n")}
|
|
|
181535
181535
|
latestChangedDtsFile,
|
|
181536
181536
|
errors: state.hasErrors ? true : void 0,
|
|
181537
181537
|
checkPending: state.checkPending,
|
|
181538
|
-
version:
|
|
181538
|
+
version: version3
|
|
181539
181539
|
};
|
|
181540
181540
|
return buildInfo;
|
|
181541
181541
|
function relativeToBuildInfoEnsuringAbsolutePath(path2) {
|
|
@@ -184213,7 +184213,7 @@ ${lanes.join("\n")}
|
|
|
184213
184213
|
if (!content) return void 0;
|
|
184214
184214
|
buildInfo = getBuildInfo(buildInfoPath, content);
|
|
184215
184215
|
}
|
|
184216
|
-
if (!buildInfo || buildInfo.version !==
|
|
184216
|
+
if (!buildInfo || buildInfo.version !== version3 || !isIncrementalBuildInfo(buildInfo)) return void 0;
|
|
184217
184217
|
return createBuilderProgramUsingIncrementalBuildInfo(buildInfo, buildInfoPath, host);
|
|
184218
184218
|
}
|
|
184219
184219
|
function createIncrementalCompilerHost(options, system = sys) {
|
|
@@ -185916,7 +185916,7 @@ ${lanes.join("\n")}
|
|
|
185916
185916
|
};
|
|
185917
185917
|
}
|
|
185918
185918
|
const incrementalBuildInfo = isIncremental && isIncrementalBuildInfo(buildInfo) ? buildInfo : void 0;
|
|
185919
|
-
if ((incrementalBuildInfo || !isIncremental) && buildInfo.version !==
|
|
185919
|
+
if ((incrementalBuildInfo || !isIncremental) && buildInfo.version !== version3) {
|
|
185920
185920
|
return {
|
|
185921
185921
|
type: 14,
|
|
185922
185922
|
version: buildInfo.version
|
|
@@ -186735,7 +186735,7 @@ ${lanes.join("\n")}
|
|
|
186735
186735
|
Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,
|
|
186736
186736
|
relName(state, configFileName),
|
|
186737
186737
|
status2.version,
|
|
186738
|
-
|
|
186738
|
+
version3
|
|
186739
186739
|
);
|
|
186740
186740
|
case 17:
|
|
186741
186741
|
return reportStatus(
|
|
@@ -186823,7 +186823,7 @@ ${lanes.join("\n")}
|
|
|
186823
186823
|
return !!commandLine.options.all ? toSorted(optionDeclarations.concat(tscBuildOption), (a, b) => compareStringsCaseInsensitive(a.name, b.name)) : filter4(optionDeclarations.concat(tscBuildOption), (v) => !!v.showInSimplifiedHelpView);
|
|
186824
186824
|
}
|
|
186825
186825
|
function printVersion(sys2) {
|
|
186826
|
-
sys2.write(getDiagnosticText(Diagnostics.Version_0,
|
|
186826
|
+
sys2.write(getDiagnosticText(Diagnostics.Version_0, version3) + sys2.newLine);
|
|
186827
186827
|
}
|
|
186828
186828
|
function createColors(sys2) {
|
|
186829
186829
|
const showColors = defaultIsPretty(sys2);
|
|
@@ -187075,7 +187075,7 @@ ${lanes.join("\n")}
|
|
|
187075
187075
|
}
|
|
187076
187076
|
function printEasyHelp(sys2, simpleOptions) {
|
|
187077
187077
|
const colors = createColors(sys2);
|
|
187078
|
-
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0,
|
|
187078
|
+
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version3)}`)];
|
|
187079
187079
|
output.push(colors.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
|
|
187080
187080
|
example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
|
|
187081
187081
|
example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
|
|
@@ -187122,7 +187122,7 @@ ${lanes.join("\n")}
|
|
|
187122
187122
|
}
|
|
187123
187123
|
}
|
|
187124
187124
|
function printAllHelp(sys2, compilerOptions, buildOptions, watchOptions) {
|
|
187125
|
-
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0,
|
|
187125
|
+
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version3)}`)];
|
|
187126
187126
|
output = [...output, ...generateSectionOptionsOutput(
|
|
187127
187127
|
sys2,
|
|
187128
187128
|
getDiagnosticText(Diagnostics.ALL_COMPILER_OPTIONS),
|
|
@@ -187154,7 +187154,7 @@ ${lanes.join("\n")}
|
|
|
187154
187154
|
}
|
|
187155
187155
|
}
|
|
187156
187156
|
function printBuildHelp(sys2, buildOptions) {
|
|
187157
|
-
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0,
|
|
187157
|
+
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version3)}`)];
|
|
187158
187158
|
output = [...output, ...generateSectionOptionsOutput(
|
|
187159
187159
|
sys2,
|
|
187160
187160
|
getDiagnosticText(Diagnostics.BUILD_OPTIONS),
|
|
@@ -238765,7 +238765,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
238765
238765
|
usingSingleLineStringWriter: () => usingSingleLineStringWriter,
|
|
238766
238766
|
utf16EncodeAsString: () => utf16EncodeAsString,
|
|
238767
238767
|
validateLocaleAndSetLanguage: () => validateLocaleAndSetLanguage,
|
|
238768
|
-
version: () =>
|
|
238768
|
+
version: () => version3,
|
|
238769
238769
|
versionMajorMinor: () => versionMajorMinor,
|
|
238770
238770
|
visitArray: () => visitArray,
|
|
238771
238771
|
visitCommaListElements: () => visitCommaListElements,
|
|
@@ -238790,7 +238790,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
238790
238790
|
var enableDeprecationWarnings = true;
|
|
238791
238791
|
var typeScriptVersion2;
|
|
238792
238792
|
function getTypeScriptVersion() {
|
|
238793
|
-
return typeScriptVersion2 ?? (typeScriptVersion2 = new Version(
|
|
238793
|
+
return typeScriptVersion2 ?? (typeScriptVersion2 = new Version(version3));
|
|
238794
238794
|
}
|
|
238795
238795
|
function formatDeprecationMessage(name2, error210, errorAfter, since, message) {
|
|
238796
238796
|
let deprecationMessage = error210 ? "DeprecationError: " : "DeprecationWarning: ";
|
|
@@ -239299,7 +239299,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
239299
239299
|
this.sendResponse({
|
|
239300
239300
|
kind: EventBeginInstallTypes,
|
|
239301
239301
|
eventId: requestId,
|
|
239302
|
-
typingsInstallerVersion:
|
|
239302
|
+
typingsInstallerVersion: version3,
|
|
239303
239303
|
projectName: req.projectName
|
|
239304
239304
|
});
|
|
239305
239305
|
const scopedTypings = filteredTypings.map(typingsName);
|
|
@@ -239341,7 +239341,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
239341
239341
|
projectName: req.projectName,
|
|
239342
239342
|
packagesToInstall: scopedTypings,
|
|
239343
239343
|
installSuccess: ok,
|
|
239344
|
-
typingsInstallerVersion:
|
|
239344
|
+
typingsInstallerVersion: version3
|
|
239345
239345
|
};
|
|
239346
239346
|
this.sendResponse(response);
|
|
239347
239347
|
}
|
|
@@ -244380,7 +244380,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
244380
244380
|
configFileName: configFileName(),
|
|
244381
244381
|
projectType: project instanceof ExternalProject ? "external" : "configured",
|
|
244382
244382
|
languageServiceEnabled: project.languageServiceEnabled,
|
|
244383
|
-
version:
|
|
244383
|
+
version: version3
|
|
244384
244384
|
};
|
|
244385
244385
|
this.eventHandler({ eventName: ProjectInfoTelemetryEvent, data });
|
|
244386
244386
|
function configFileName() {
|
|
@@ -247348,7 +247348,7 @@ ${json2}${newLine}`;
|
|
|
247348
247348
|
"status"
|
|
247349
247349
|
/* Status */
|
|
247350
247350
|
]: () => {
|
|
247351
|
-
const response = { version:
|
|
247351
|
+
const response = { version: version3 };
|
|
247352
247352
|
return this.requiredResponse(response);
|
|
247353
247353
|
},
|
|
247354
247354
|
[
|
|
@@ -256200,40 +256200,40 @@ async function download(url2) {
|
|
|
256200
256200
|
}
|
|
256201
256201
|
return Buffer.from(await res.arrayBuffer());
|
|
256202
256202
|
}
|
|
256203
|
-
async function ensureTalosctl(
|
|
256204
|
-
if (!VERSION_RE.test(
|
|
256205
|
-
throw new Error(`Unknown Talos version "${
|
|
256203
|
+
async function ensureTalosctl(version3) {
|
|
256204
|
+
if (!VERSION_RE.test(version3)) {
|
|
256205
|
+
throw new Error(`Unknown Talos version "${version3}"`);
|
|
256206
256206
|
}
|
|
256207
256207
|
const onPath = await runBinary("talosctl", [
|
|
256208
256208
|
"version",
|
|
256209
256209
|
"--client",
|
|
256210
256210
|
"--short"
|
|
256211
256211
|
]);
|
|
256212
|
-
if (onPath.code === 0 && clientVersionOf(onPath.stdout) ===
|
|
256212
|
+
if (onPath.code === 0 && clientVersionOf(onPath.stdout) === version3) {
|
|
256213
256213
|
return "talosctl";
|
|
256214
256214
|
}
|
|
256215
256215
|
const asset = talosctlAssetName();
|
|
256216
256216
|
const dir = (0, import_path2.join)(mainDirectory, "bin");
|
|
256217
256217
|
const binary = (0, import_path2.join)(
|
|
256218
256218
|
dir,
|
|
256219
|
-
`talosctl-${
|
|
256219
|
+
`talosctl-${version3}${asset.endsWith(".exe") ? ".exe" : ""}`
|
|
256220
256220
|
);
|
|
256221
256221
|
if ((0, import_fs4.existsSync)(binary)) {
|
|
256222
256222
|
return binary;
|
|
256223
256223
|
}
|
|
256224
256224
|
Logger.info(
|
|
256225
|
-
`Downloading talosctl ${
|
|
256225
|
+
`Downloading talosctl ${version3} (${asset}, about 90 MB, once) from the Talos releases ...`
|
|
256226
256226
|
);
|
|
256227
|
-
const sums = (await download(`${RELEASES}/${
|
|
256227
|
+
const sums = (await download(`${RELEASES}/${version3}/sha256sum.txt`)).toString("utf8");
|
|
256228
256228
|
const expected = checksumFor(sums, asset);
|
|
256229
256229
|
if (!expected) {
|
|
256230
|
-
throw new Error(`The ${
|
|
256230
|
+
throw new Error(`The ${version3} release lists no checksum for ${asset}.`);
|
|
256231
256231
|
}
|
|
256232
|
-
const body = await download(`${RELEASES}/${
|
|
256232
|
+
const body = await download(`${RELEASES}/${version3}/${asset}`);
|
|
256233
256233
|
const actual = (0, import_crypto.createHash)("sha256").update(body).digest("hex");
|
|
256234
256234
|
if (actual !== expected) {
|
|
256235
256235
|
throw new Error(
|
|
256236
|
-
`Checksum mismatch for ${asset} ${
|
|
256236
|
+
`Checksum mismatch for ${asset} ${version3} - the download was not used.`
|
|
256237
256237
|
);
|
|
256238
256238
|
}
|
|
256239
256239
|
await (0, import_promises.mkdir)(dir, { recursive: true });
|
|
@@ -256241,7 +256241,7 @@ async function ensureTalosctl(version2) {
|
|
|
256241
256241
|
await (0, import_promises.writeFile)(partial2, body, { mode: 493 });
|
|
256242
256242
|
await (0, import_promises.chmod)(partial2, 493);
|
|
256243
256243
|
await (0, import_promises.rename)(partial2, binary);
|
|
256244
|
-
Logger.info(`talosctl ${
|
|
256244
|
+
Logger.info(`talosctl ${version3} saved to ${binary}`);
|
|
256245
256245
|
return binary;
|
|
256246
256246
|
}
|
|
256247
256247
|
var import_child_process2, import_crypto, import_fs4, import_promises, import_path2, RELEASES, VERSION_RE, clientVersionOf, runBinary;
|
|
@@ -256320,8 +256320,8 @@ var init_attach2 = __esm({
|
|
|
256320
256320
|
);
|
|
256321
256321
|
}
|
|
256322
256322
|
Logger.info(`Looking for the Talos installer at ${opts.nodeIp}:50000 ...`);
|
|
256323
|
-
let
|
|
256324
|
-
for (let i2 = 0; i2 < 12 && !
|
|
256323
|
+
let version3;
|
|
256324
|
+
for (let i2 = 0; i2 < 12 && !version3; i2++) {
|
|
256325
256325
|
const probe = await talosctl([
|
|
256326
256326
|
"-n",
|
|
256327
256327
|
opts.nodeIp,
|
|
@@ -256331,15 +256331,15 @@ var init_attach2 = __esm({
|
|
|
256331
256331
|
"-o",
|
|
256332
256332
|
"yaml"
|
|
256333
256333
|
]);
|
|
256334
|
-
|
|
256335
|
-
if (!
|
|
256334
|
+
version3 = probe.code === 0 ? serverTalosVersion(probe.stdout) : void 0;
|
|
256335
|
+
if (!version3) await sleep3(5e3);
|
|
256336
256336
|
}
|
|
256337
|
-
if (!
|
|
256337
|
+
if (!version3) {
|
|
256338
256338
|
throw new Error(
|
|
256339
256339
|
`No Talos installer answers at ${opts.nodeIp}:50000. Boot the machine from the Talos ${info.talosVersion ?? ""} ISO (${info.isoUrl ?? "https://github.com/siderolabs/talos/releases"}; ARM: ${info.isoUrlArm64 ?? "-"}) and run this from the same network.`
|
|
256340
256340
|
);
|
|
256341
256341
|
}
|
|
256342
|
-
Logger.info(`Machine runs the Talos ${
|
|
256342
|
+
Logger.info(`Machine runs the Talos ${version3} installer. Its disks:`);
|
|
256343
256343
|
const disks = await talosctl([
|
|
256344
256344
|
"-n",
|
|
256345
256345
|
opts.nodeIp,
|
|
@@ -256372,9 +256372,9 @@ var init_attach2 = __esm({
|
|
|
256372
256372
|
storage: opts.storage
|
|
256373
256373
|
})
|
|
256374
256374
|
);
|
|
256375
|
-
if (join_.talosVersion && join_.talosVersion !==
|
|
256375
|
+
if (join_.talosVersion && join_.talosVersion !== version3) {
|
|
256376
256376
|
Logger.warn(
|
|
256377
|
-
`The cluster runs Talos ${join_.talosVersion}, the machine booted ${
|
|
256377
|
+
`The cluster runs Talos ${join_.talosVersion}, the machine booted ${version3}. It installs ${join_.talosVersion} anyway; if the join fails, boot ${join_.isoUrl}.`
|
|
256378
256378
|
);
|
|
256379
256379
|
}
|
|
256380
256380
|
const dir = await (0, import_promises2.mkdtemp)((0, import_path3.join)((0, import_os3.tmpdir)(), "gcli-attach-"));
|
|
@@ -274648,8 +274648,8 @@ var require_fs = __commonJS({
|
|
|
274648
274648
|
var fs3 = require("fs");
|
|
274649
274649
|
var origRealpath = fs3.realpath;
|
|
274650
274650
|
var origRealpathSync = fs3.realpathSync;
|
|
274651
|
-
var
|
|
274652
|
-
var ok = /^v[0-5]\./.test(
|
|
274651
|
+
var version3 = process.version;
|
|
274652
|
+
var ok = /^v[0-5]\./.test(version3);
|
|
274653
274653
|
var old = require_old();
|
|
274654
274654
|
function newError(er) {
|
|
274655
274655
|
return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG");
|
|
@@ -290070,11 +290070,11 @@ function datetimeRegex(args) {
|
|
|
290070
290070
|
regex = `${regex}(${opts.join("|")})`;
|
|
290071
290071
|
return new RegExp(`^${regex}$`);
|
|
290072
290072
|
}
|
|
290073
|
-
function isValidIP(ip,
|
|
290074
|
-
if ((
|
|
290073
|
+
function isValidIP(ip, version3) {
|
|
290074
|
+
if ((version3 === "v4" || !version3) && ipv4Regex.test(ip)) {
|
|
290075
290075
|
return true;
|
|
290076
290076
|
}
|
|
290077
|
-
if ((
|
|
290077
|
+
if ((version3 === "v6" || !version3) && ipv6Regex.test(ip)) {
|
|
290078
290078
|
return true;
|
|
290079
290079
|
}
|
|
290080
290080
|
return false;
|
|
@@ -290101,11 +290101,11 @@ function isValidJWT(jwt2, alg) {
|
|
|
290101
290101
|
return false;
|
|
290102
290102
|
}
|
|
290103
290103
|
}
|
|
290104
|
-
function isValidCidr(ip,
|
|
290105
|
-
if ((
|
|
290104
|
+
function isValidCidr(ip, version3) {
|
|
290105
|
+
if ((version3 === "v4" || !version3) && ipv4CidrRegex.test(ip)) {
|
|
290106
290106
|
return true;
|
|
290107
290107
|
}
|
|
290108
|
-
if ((
|
|
290108
|
+
if ((version3 === "v6" || !version3) && ipv6CidrRegex.test(ip)) {
|
|
290109
290109
|
return true;
|
|
290110
290110
|
}
|
|
290111
290111
|
return false;
|
|
@@ -294560,10 +294560,10 @@ var init_regexes = __esm({
|
|
|
294560
294560
|
duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
|
|
294561
294561
|
extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
|
|
294562
294562
|
guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
|
|
294563
|
-
uuid = (
|
|
294564
|
-
if (!
|
|
294563
|
+
uuid = (version3) => {
|
|
294564
|
+
if (!version3)
|
|
294565
294565
|
return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
|
|
294566
|
-
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${
|
|
294566
|
+
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version3}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
|
|
294567
294567
|
};
|
|
294568
294568
|
uuid4 = /* @__PURE__ */ uuid(4);
|
|
294569
294569
|
uuid6 = /* @__PURE__ */ uuid(6);
|
|
@@ -307504,10 +307504,10 @@ function fromJSONSchema(schema, params) {
|
|
|
307504
307504
|
if (typeof schema === "boolean") {
|
|
307505
307505
|
return schema ? z.any() : z.never();
|
|
307506
307506
|
}
|
|
307507
|
-
const
|
|
307507
|
+
const version3 = detectVersion(schema, params?.defaultTarget);
|
|
307508
307508
|
const defs = schema.$defs || schema.definitions || {};
|
|
307509
307509
|
const ctx = {
|
|
307510
|
-
version:
|
|
307510
|
+
version: version3,
|
|
307511
307511
|
defs,
|
|
307512
307512
|
refs: /* @__PURE__ */ new Map(),
|
|
307513
307513
|
processing: /* @__PURE__ */ new Set(),
|
|
@@ -319715,8 +319715,8 @@ var init_streamableHttp = __esm({
|
|
|
319715
319715
|
throw error48;
|
|
319716
319716
|
}
|
|
319717
319717
|
}
|
|
319718
|
-
setProtocolVersion(
|
|
319719
|
-
this._protocolVersion =
|
|
319718
|
+
setProtocolVersion(version3) {
|
|
319719
|
+
this._protocolVersion = version3;
|
|
319720
319720
|
}
|
|
319721
319721
|
get protocolVersion() {
|
|
319722
319722
|
return this._protocolVersion;
|
|
@@ -325798,8 +325798,9 @@ if (!isWebContainer) {
|
|
|
325798
325798
|
} else {
|
|
325799
325799
|
}
|
|
325800
325800
|
}
|
|
325801
|
+
var version2 = true ? "1.8.266" : "development";
|
|
325801
325802
|
var main = (argv) => {
|
|
325802
|
-
import_commander.program.name("gcli").version(
|
|
325803
|
+
import_commander.program.name("gcli").version(version2);
|
|
325803
325804
|
commands.map((command) => command(import_commander.program));
|
|
325804
325805
|
import_commander.program.on("command:*", () => {
|
|
325805
325806
|
console.log();
|