Release rolling / release (push) Successful in 11m16s
Bump published pins (compact-encoding 3, bare-fetch/tls/https/ws 3, bare-subprocess 6, bare-signals 5, corestore 7.12, protomux 3.11, hypercore-crypto 3.7, bare-runtime 1.31) and regenerate catalogs, manifests, and kernel/seeder bundles. Adapt call sites to the new APIs: - Corestore: explicit session flush before suspend(); treeCache ctor opts - bare-crypto: KeyObject.export() instead of removed ._key - Protomux 3.11: wait for fullyOpened()/fullyClosed() on chat channels - bare-fetch: surface response.type and Headers.getSetCookie - host snapshots: bare-os 3.9 / bare-posix / bare-fs.statfs frsize - bare-subprocess 6: optional IPC channel + json serialization Keep catalog sync from wiping curated pearEntries. Teach the Node test shim to stub bare-thread/bare-worker (ESM absolute paths) and chain Bare.on so bare-timers can load. Booter 479, protocol 34, seeder 14.
162 lines
5.9 KiB
JavaScript
162 lines
5.9 KiB
JavaScript
var __bare_os_bundle_exports__ = (() => {
|
|
var __create = Object.create;
|
|
var __defProp = Object.defineProperty;
|
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
var __getProtoOf = Object.getPrototypeOf;
|
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
}) : x)(function(x) {
|
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
});
|
|
var __commonJS = (cb, mod) => function __require2() {
|
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
};
|
|
var __export = (target, all) => {
|
|
for (var name in all)
|
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
};
|
|
var __copyProps = (to, from, except, desc) => {
|
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
for (let key of __getOwnPropNames(from))
|
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
}
|
|
return to;
|
|
};
|
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
// file that has been converted to a CommonJS file using a Babel-
|
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
mod
|
|
));
|
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
|
|
// ../../node_modules/bare-gpu-info/binding.js
|
|
var require_binding = __commonJS({
|
|
"../../node_modules/bare-gpu-info/binding.js"(exports, module) {
|
|
module.exports = __require.addon();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/bare-gpu-info/lib/constants.js
|
|
var require_constants = __commonJS({
|
|
"../../node_modules/bare-gpu-info/lib/constants.js"(exports) {
|
|
exports.gpuType = {
|
|
UNKNOWN: 0,
|
|
INTEGRATED: 1,
|
|
DEDICATED: 2,
|
|
VIRTUAL: 3,
|
|
EXTERNAL: 4
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/bare-gpu-info/index.js
|
|
var require_bare_gpu_info = __commonJS({
|
|
"../../node_modules/bare-gpu-info/index.js"(exports, module) {
|
|
var binding = require_binding();
|
|
var constants = require_constants();
|
|
module.exports = exports = class GPUInfo {
|
|
constructor() {
|
|
this._destroyed = false;
|
|
binding.init(this);
|
|
}
|
|
get length() {
|
|
this._check();
|
|
return binding.count(this);
|
|
}
|
|
drivers() {
|
|
this._check();
|
|
return binding.drivers(this);
|
|
}
|
|
gpu(index) {
|
|
this._check();
|
|
validateIndex(index, this.length);
|
|
return normalizeGpu(binding.query(this, index));
|
|
}
|
|
gpus() {
|
|
this._check();
|
|
const result = [];
|
|
for (let i = 0, n = this.length; i < n; i++) {
|
|
result.push(normalizeGpu(binding.query(this, i)));
|
|
}
|
|
return result;
|
|
}
|
|
sample(index) {
|
|
this._check();
|
|
validateIndex(index, this.length);
|
|
return normalizeUsage(binding.sample(this, index));
|
|
}
|
|
destroy() {
|
|
if (this._destroyed) return;
|
|
this._destroyed = true;
|
|
binding.destroy(this);
|
|
}
|
|
[Symbol.dispose]() {
|
|
this.destroy();
|
|
}
|
|
*[Symbol.iterator]() {
|
|
this._check();
|
|
for (let i = 0, n = this.length; i < n; i++) {
|
|
yield normalizeGpu(binding.query(this, i));
|
|
}
|
|
}
|
|
_check() {
|
|
if (this._destroyed) {
|
|
throw new Error("GPU information has been destroyed");
|
|
}
|
|
}
|
|
};
|
|
exports.GPUInfo = exports;
|
|
exports.constants = constants;
|
|
function normalizeGpu(gpu) {
|
|
for (const key of ["name", "vendor", "driverName", "driverVersion"]) {
|
|
if (gpu[key] === "") gpu[key] = null;
|
|
}
|
|
for (const key of ["vendorId", "deviceId", "subsystemId"]) {
|
|
if (gpu[key] === 0) gpu[key] = void 0;
|
|
}
|
|
if (gpu.memory < 0) gpu.memory = void 0;
|
|
return gpu;
|
|
}
|
|
function normalizeUsage(usage) {
|
|
for (const key of [
|
|
"compute",
|
|
"encode",
|
|
"decode",
|
|
"power",
|
|
"temperature",
|
|
"memoryUsed",
|
|
"memoryTotal"
|
|
]) {
|
|
if (usage[key] < 0) usage[key] = void 0;
|
|
}
|
|
return usage;
|
|
}
|
|
function validateIndex(index, length) {
|
|
if (!Number.isInteger(index)) {
|
|
throw new TypeError(`Index must be an integer. Received type ${typeof index} (${index})`);
|
|
}
|
|
if (index < 0 || index >= length) {
|
|
throw new RangeError(`Index ${index} out of range [0, ${length})`);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
// ../../bare-lib-entry-bareGpuInfo.js
|
|
var bare_lib_entry_bareGpuInfo_exports = {};
|
|
__export(bare_lib_entry_bareGpuInfo_exports, {
|
|
default: () => bare_lib_entry_bareGpuInfo_default
|
|
});
|
|
var import_bare_gpu_info = __toESM(require_bare_gpu_info());
|
|
var bare_lib_entry_bareGpuInfo_default = import_bare_gpu_info.default;
|
|
return __toCommonJS(bare_lib_entry_bareGpuInfo_exports);
|
|
})();
|
|
;(function(){var g=globalThis;var s="__bare_os_stdlib__";g[s]=g[s]||{};var e=typeof __bare_os_bundle_exports__!=="undefined"?__bare_os_bundle_exports__:void 0;var v=e!=null&&typeof e==="object"&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;g[s]["bareGpuInfo"]=v;})();
|