@ariestools/cli 0.1.8 → 0.1.9
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/README.md +32 -0
- package/dist/bin/aries.mjs +608 -185
- package/dist/bin/daemons/chain-server.mjs +152 -0
- package/dist/bin/daemons/dapp-server.mjs +970 -0
- package/dist/bin/daemons/datalake-dev.mjs +111520 -0
- package/dist/node/datalake.d.ts +100 -0
- package/dist/node/datalake.mjs +475 -0
- package/package.json +19 -11
package/dist/bin/aries.mjs
CHANGED
|
@@ -34253,7 +34253,7 @@ var init_esm$2 = __esmMin((() => {
|
|
|
34253
34253
|
init_trace_api();
|
|
34254
34254
|
}));
|
|
34255
34255
|
//#endregion
|
|
34256
|
-
//#region ../../node_modules/.pnpm/@ariestools+telemetry@8.1.
|
|
34256
|
+
//#region ../../node_modules/.pnpm/@ariestools+telemetry@8.1.2_@opentelemetry+api@1.9.1/node_modules/@ariestools/telemetry/dist/neutral/index.mjs
|
|
34257
34257
|
async function timeBudget(name, logger, func, budget, status = false) {
|
|
34258
34258
|
const start = Date.now();
|
|
34259
34259
|
const timer = status ? setInterval(() => {
|
|
@@ -34264,7 +34264,7 @@ async function timeBudget(name, logger, func, budget, status = false) {
|
|
|
34264
34264
|
const duration = Date.now() - start;
|
|
34265
34265
|
if (timer === void 0 && budget > 0 && duration > budget) if (duration > 100 * budget) logger?.warn(`Function [${name}] execution exceeded 100x budget: ${duration}ms > ${budget}ms`);
|
|
34266
34266
|
else if (duration > 10 * budget) logger?.info(`Function [${name}] execution exceeded 10x budget: ${duration}ms > ${budget}ms`);
|
|
34267
|
-
else logger?.log(`Function [${name}] execution exceeded
|
|
34267
|
+
else logger?.log(`Function [${name}] execution exceeded budget: ${duration}ms > ${budget}ms`);
|
|
34268
34268
|
if (timer !== void 0) clearInterval(timer);
|
|
34269
34269
|
return result;
|
|
34270
34270
|
}
|
|
@@ -34469,7 +34469,7 @@ var init_neutral$3 = __esmMin((() => {
|
|
|
34469
34469
|
});
|
|
34470
34470
|
}));
|
|
34471
34471
|
//#endregion
|
|
34472
|
-
//#region ../../node_modules/.pnpm/@ariestools+sdk@8.1.
|
|
34472
|
+
//#region ../../node_modules/.pnpm/@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3/node_modules/@ariestools/sdk/dist/node/index.mjs
|
|
34473
34473
|
function findErrorCode(error) {
|
|
34474
34474
|
let current = error;
|
|
34475
34475
|
for (let depth = 0; depth < 8 && current instanceof Error; depth++) {
|
|
@@ -34874,15 +34874,25 @@ var init_node$2 = __esmMin((() => {
|
|
|
34874
34874
|
ERR_TLS_CERT_ALTNAME_INVALID: "tls"
|
|
34875
34875
|
};
|
|
34876
34876
|
FetchError = class extends Error {
|
|
34877
|
+
/** Cross-realm marker consumed by {@link isFetchError}. */
|
|
34877
34878
|
__fetchErrorMarker = fetchErrorMarker;
|
|
34879
|
+
/** Raw unparseable body text for `parse` failures. */
|
|
34878
34880
|
body;
|
|
34881
|
+
/** Node, undici, or TLS system error code when available. */
|
|
34879
34882
|
code;
|
|
34883
|
+
/** HTTP method associated with the failed request. */
|
|
34880
34884
|
method;
|
|
34885
|
+
/** Parsed response for rejected HTTP-status requests. */
|
|
34881
34886
|
response;
|
|
34887
|
+
/** HTTP status when a response was received. */
|
|
34882
34888
|
status;
|
|
34889
|
+
/** HTTP reason phrase when a response was received. */
|
|
34883
34890
|
statusText;
|
|
34891
|
+
/** Classified reason for the fetch failure. */
|
|
34884
34892
|
type;
|
|
34893
|
+
/** Request URL associated with the failure. */
|
|
34885
34894
|
url;
|
|
34895
|
+
/** Creates a structured fetch error from a message and request context. */
|
|
34886
34896
|
constructor(message, context = {}) {
|
|
34887
34897
|
super(message, { cause: context.cause });
|
|
34888
34898
|
this.name = "FetchError";
|
|
@@ -34895,6 +34905,7 @@ var init_node$2 = __esmMin((() => {
|
|
|
34895
34905
|
this.response = context.response;
|
|
34896
34906
|
this.body = context.body;
|
|
34897
34907
|
}
|
|
34908
|
+
/** Returns a circular-reference-free representation for logs and telemetry. */
|
|
34898
34909
|
toJSON() {
|
|
34899
34910
|
return {
|
|
34900
34911
|
name: this.name,
|
|
@@ -34909,7 +34920,9 @@ var init_node$2 = __esmMin((() => {
|
|
|
34909
34920
|
}
|
|
34910
34921
|
};
|
|
34911
34922
|
FetchClientError = class extends FetchError {
|
|
34923
|
+
/** Effective request configuration, including the resolved request URL. */
|
|
34912
34924
|
config;
|
|
34925
|
+
/** Creates an HTTP-status error with its response and request configuration. */
|
|
34913
34926
|
constructor(message, response, config) {
|
|
34914
34927
|
super(message, {
|
|
34915
34928
|
type: "http-status",
|
|
@@ -34924,13 +34937,17 @@ var init_node$2 = __esmMin((() => {
|
|
|
34924
34937
|
}
|
|
34925
34938
|
};
|
|
34926
34939
|
FetchClient = class _FetchClient {
|
|
34940
|
+
/** Instance defaults shallow-merged beneath every request configuration. */
|
|
34927
34941
|
defaults;
|
|
34942
|
+
/** Creates a client with reusable request defaults. */
|
|
34928
34943
|
constructor(defaults = {}) {
|
|
34929
34944
|
this.defaults = defaults;
|
|
34930
34945
|
}
|
|
34946
|
+
/** Creates a client with the supplied request defaults. */
|
|
34931
34947
|
static create(config) {
|
|
34932
34948
|
return new _FetchClient(config);
|
|
34933
34949
|
}
|
|
34950
|
+
/** Sends a `DELETE` request and parses its response as JSON. */
|
|
34934
34951
|
delete(url, config) {
|
|
34935
34952
|
return this.request({
|
|
34936
34953
|
...config,
|
|
@@ -34938,6 +34955,7 @@ var init_node$2 = __esmMin((() => {
|
|
|
34938
34955
|
method: "DELETE"
|
|
34939
34956
|
});
|
|
34940
34957
|
}
|
|
34958
|
+
/** Sends a `GET` request and parses its response as JSON. */
|
|
34941
34959
|
get(url, config) {
|
|
34942
34960
|
return this.request({
|
|
34943
34961
|
...config,
|
|
@@ -34945,6 +34963,7 @@ var init_node$2 = __esmMin((() => {
|
|
|
34945
34963
|
method: "GET"
|
|
34946
34964
|
});
|
|
34947
34965
|
}
|
|
34966
|
+
/** Serializes `data`, sends a `PATCH` request, and parses the JSON response. */
|
|
34948
34967
|
patch(url, data, config) {
|
|
34949
34968
|
return this.request({
|
|
34950
34969
|
...config,
|
|
@@ -34953,6 +34972,7 @@ var init_node$2 = __esmMin((() => {
|
|
|
34953
34972
|
method: "PATCH"
|
|
34954
34973
|
});
|
|
34955
34974
|
}
|
|
34975
|
+
/** Serializes `data`, sends a `POST` request, and parses the JSON response. */
|
|
34956
34976
|
post(url, data, config) {
|
|
34957
34977
|
return this.request({
|
|
34958
34978
|
...config,
|
|
@@ -34961,6 +34981,7 @@ var init_node$2 = __esmMin((() => {
|
|
|
34961
34981
|
method: "POST"
|
|
34962
34982
|
});
|
|
34963
34983
|
}
|
|
34984
|
+
/** Serializes `data`, sends a `PUT` request, and parses the JSON response. */
|
|
34964
34985
|
put(url, data, config) {
|
|
34965
34986
|
return this.request({
|
|
34966
34987
|
...config,
|
|
@@ -34969,6 +34990,12 @@ var init_node$2 = __esmMin((() => {
|
|
|
34969
34990
|
method: "PUT"
|
|
34970
34991
|
});
|
|
34971
34992
|
}
|
|
34993
|
+
/**
|
|
34994
|
+
* Resolves and executes a request using native fetch semantics.
|
|
34995
|
+
* @returns Response metadata and parsed JSON, or `null` for an empty body.
|
|
34996
|
+
* @throws {@link FetchClientError} when `validateStatus` rejects the status.
|
|
34997
|
+
* @throws {@link FetchError} for transport or JSON parsing failures.
|
|
34998
|
+
*/
|
|
34972
34999
|
async request(config) {
|
|
34973
35000
|
const merged = {
|
|
34974
35001
|
...this.defaults,
|
|
@@ -35002,9 +35029,11 @@ var init_node$2 = __esmMin((() => {
|
|
|
35002
35029
|
}
|
|
35003
35030
|
};
|
|
35004
35031
|
FetchJsonClient = class _FetchJsonClient extends FetchClient {
|
|
35032
|
+
/** Creates a JSON client with reusable request and compression defaults. */
|
|
35005
35033
|
constructor(config) {
|
|
35006
35034
|
super(config);
|
|
35007
35035
|
}
|
|
35036
|
+
/** Creates a JSON client with the supplied defaults. */
|
|
35008
35037
|
static create(config) {
|
|
35009
35038
|
return new _FetchJsonClient(config);
|
|
35010
35039
|
}
|
|
@@ -35161,8 +35190,11 @@ var init_node$2 = __esmMin((() => {
|
|
|
35161
35190
|
MIN_GC_FREQUENCY = 1e3;
|
|
35162
35191
|
MIN_HISTORY_INTERVAL = 1e3;
|
|
35163
35192
|
Base = class _Base {
|
|
35193
|
+
/** Process-wide fallback logger used by instances without an explicit logger. */
|
|
35164
35194
|
static defaultLogger;
|
|
35195
|
+
/** Weak references grouped by runtime class name for diagnostic instance counts. */
|
|
35165
35196
|
static globalInstances = {};
|
|
35197
|
+
/** Recorded instance-count samples grouped by runtime class name. */
|
|
35166
35198
|
static globalInstancesCountHistory = {};
|
|
35167
35199
|
static _historyInterval = DEFAULT_HISTORY_INTERVAL;
|
|
35168
35200
|
static _historyTime = DEFAULT_HISTORY_TIME;
|
|
@@ -35170,59 +35202,85 @@ var init_node$2 = __esmMin((() => {
|
|
|
35170
35202
|
static _lastGC = 0;
|
|
35171
35203
|
static _maxGcFrequency = MAX_GC_FREQUENCY;
|
|
35172
35204
|
_params;
|
|
35205
|
+
/**
|
|
35206
|
+
* Stores the shared services and registers a weak reference for instance
|
|
35207
|
+
* diagnostics.
|
|
35208
|
+
* @param params - Logger and telemetry providers plus subclass parameters.
|
|
35209
|
+
*/
|
|
35173
35210
|
constructor(params) {
|
|
35174
35211
|
this._params = params;
|
|
35175
35212
|
params?.logger?.debug(`Base constructed [${this.constructor.name}]`);
|
|
35176
35213
|
this.recordInstance();
|
|
35177
35214
|
}
|
|
35215
|
+
/** Interval between instance-count samples, in milliseconds. */
|
|
35178
35216
|
static get historyInterval() {
|
|
35179
35217
|
return this._historyInterval;
|
|
35180
35218
|
}
|
|
35219
|
+
/**
|
|
35220
|
+
* Sets the sample interval, clamped to at least one second.
|
|
35221
|
+
* @throws When the requested interval exceeds {@link historyTime}.
|
|
35222
|
+
*/
|
|
35181
35223
|
static set historyInterval(value) {
|
|
35182
35224
|
assertEx(value <= this.historyTime, () => `historyInterval [${value}] must be less than or equal to historyTime [${this.historyTime}]`);
|
|
35183
35225
|
this._historyInterval = Math.max(value, MIN_HISTORY_INTERVAL);
|
|
35184
35226
|
}
|
|
35227
|
+
/** Configured retention window for instance-count history, in milliseconds. */
|
|
35185
35228
|
static get historyTime() {
|
|
35186
35229
|
return this._historyTime;
|
|
35187
35230
|
}
|
|
35231
|
+
/**
|
|
35232
|
+
* Applies the requested history-time configuration.
|
|
35233
|
+
* @throws When the requested value is shorter than {@link historyInterval}.
|
|
35234
|
+
*/
|
|
35188
35235
|
static set historyTime(value) {
|
|
35189
35236
|
assertEx(value >= this.historyInterval, () => `historyTime [${value}] must be greater than or equal to historyInterval [${this.historyInterval}]`);
|
|
35190
35237
|
this._historyInterval = value;
|
|
35191
35238
|
}
|
|
35239
|
+
/** Minimum elapsed time between unforced garbage-collection scans. */
|
|
35192
35240
|
static get maxGcFrequency() {
|
|
35193
35241
|
return this._maxGcFrequency;
|
|
35194
35242
|
}
|
|
35243
|
+
/** Sets the scan interval, clamped to at least one second. */
|
|
35195
35244
|
static set maxGcFrequency(value) {
|
|
35196
35245
|
this._maxGcFrequency = Math.max(value, MIN_GC_FREQUENCY);
|
|
35197
35246
|
}
|
|
35247
|
+
/** Maximum number of samples retained for each runtime class. */
|
|
35198
35248
|
static get maxHistoryDepth() {
|
|
35199
35249
|
return Math.floor(this.historyTime / this.historyInterval);
|
|
35200
35250
|
}
|
|
35251
|
+
/** Explicit instance logger or the process-wide default logger. */
|
|
35201
35252
|
get logger() {
|
|
35202
35253
|
return this.params?.logger ?? _Base.defaultLogger;
|
|
35203
35254
|
}
|
|
35255
|
+
/** Meter created lazily from the configured provider for the runtime class. */
|
|
35204
35256
|
get meter() {
|
|
35205
35257
|
return this.params?.meterProvider?.getMeter(this.constructor.name);
|
|
35206
35258
|
}
|
|
35259
|
+
/** Construction parameters retained by this instance. */
|
|
35207
35260
|
get params() {
|
|
35208
35261
|
return this._params;
|
|
35209
35262
|
}
|
|
35263
|
+
/** Tracer created lazily from the configured provider for the runtime class. */
|
|
35210
35264
|
get tracer() {
|
|
35211
35265
|
return this.params?.traceProvider?.getTracer(this.constructor.name);
|
|
35212
35266
|
}
|
|
35267
|
+
/** Implements forced, frequency-limited, or class-specific cleanup. */
|
|
35213
35268
|
static gc(classNameOrForce = false) {
|
|
35214
35269
|
if (typeof classNameOrForce === "string") this.gcClass(classNameOrForce);
|
|
35215
35270
|
else if (classNameOrForce || Date.now() - this._lastGC > this._maxGcFrequency) this.gcAll();
|
|
35216
35271
|
}
|
|
35272
|
+
/** Returns the currently tracked weak-reference count for a runtime class. */
|
|
35217
35273
|
static instanceCount(className) {
|
|
35218
35274
|
return this.globalInstances[className]?.length ?? 0;
|
|
35219
35275
|
}
|
|
35276
|
+
/** Runs eligible cleanup and returns counts for all tracked runtime classes. */
|
|
35220
35277
|
static instanceCounts() {
|
|
35221
35278
|
this.gc();
|
|
35222
35279
|
const result = {};
|
|
35223
35280
|
for (const [className, instances] of Object.entries(this.globalInstances)) result[className] = instances.length;
|
|
35224
35281
|
return result;
|
|
35225
35282
|
}
|
|
35283
|
+
/** Starts periodic instance-count sampling, replacing an existing timer. */
|
|
35226
35284
|
static startHistory() {
|
|
35227
35285
|
if (this._historyTimeout !== void 0) this.stopHistory();
|
|
35228
35286
|
const timeoutHandler = () => {
|
|
@@ -35232,6 +35290,7 @@ var init_node$2 = __esmMin((() => {
|
|
|
35232
35290
|
};
|
|
35233
35291
|
this._historyTimeout = setTimeout(timeoutHandler, this.historyInterval);
|
|
35234
35292
|
}
|
|
35293
|
+
/** Stops periodic instance-count sampling when it is active. */
|
|
35235
35294
|
static stopHistory() {
|
|
35236
35295
|
if (this._historyTimeout === void 0) return;
|
|
35237
35296
|
clearTimeout(this._historyTimeout);
|
|
@@ -35476,8 +35535,13 @@ var init_node$2 = __esmMin((() => {
|
|
|
35476
35535
|
static anyMap = /* @__PURE__ */ new WeakMap();
|
|
35477
35536
|
static eventsMap = /* @__PURE__ */ new WeakMap();
|
|
35478
35537
|
static isGlobalDebugEnabled = false;
|
|
35538
|
+
/** Type-only event map exposed for consumers that need to infer event data. */
|
|
35479
35539
|
eventData = {};
|
|
35480
35540
|
_canEmitMetaEvents = false;
|
|
35541
|
+
/**
|
|
35542
|
+
* Creates isolated named and wildcard listener registries.
|
|
35543
|
+
* @param params - Base services and optional per-instance debug behavior.
|
|
35544
|
+
*/
|
|
35481
35545
|
constructor(params = {}) {
|
|
35482
35546
|
const mutatedParams = { ...params };
|
|
35483
35547
|
if (mutatedParams.debug) mutatedParams.debug.logger ??= (type, debugName, eventName, eventData) => {
|
|
@@ -35503,6 +35567,7 @@ var init_node$2 = __esmMin((() => {
|
|
|
35503
35567
|
const env = processGlobal.process?.env;
|
|
35504
35568
|
return env?.DEBUG === "events" || env?.DEBUG === "*" || this.isGlobalDebugEnabled;
|
|
35505
35569
|
}
|
|
35570
|
+
/** Enables or disables process-wide event debug logging. */
|
|
35506
35571
|
static set isDebugEnabled(newValue) {
|
|
35507
35572
|
this.isGlobalDebugEnabled = newValue;
|
|
35508
35573
|
}
|
|
@@ -35741,8 +35806,10 @@ var init_node$2 = __esmMin((() => {
|
|
|
35741
35806
|
}
|
|
35742
35807
|
};
|
|
35743
35808
|
BaseEmitter = class extends Base {
|
|
35809
|
+
/** Type-only event map exposed for consumers that need to infer event data. */
|
|
35744
35810
|
eventData = {};
|
|
35745
35811
|
events;
|
|
35812
|
+
/** Creates an emitter with an isolated listener registry. */
|
|
35746
35813
|
constructor(params) {
|
|
35747
35814
|
super(params);
|
|
35748
35815
|
this.events = new Events();
|
|
@@ -35829,6 +35896,12 @@ var init_node$2 = __esmMin((() => {
|
|
|
35829
35896
|
defaultParams;
|
|
35830
35897
|
/** Labels identifying resources created by this factory. */
|
|
35831
35898
|
labels;
|
|
35899
|
+
/**
|
|
35900
|
+
* Creates a factory with reusable defaults and merged class labels.
|
|
35901
|
+
* @param creatable - Creatable constructor invoked by {@link create}.
|
|
35902
|
+
* @param params - Default parameters overridden by each create call.
|
|
35903
|
+
* @param labels - Labels merged over any static creatable labels.
|
|
35904
|
+
*/
|
|
35832
35905
|
constructor(creatable2, params, labels = {}) {
|
|
35833
35906
|
this.creatable = creatable2;
|
|
35834
35907
|
this.defaultParams = params;
|
|
@@ -35868,6 +35941,12 @@ var init_node$2 = __esmMin((() => {
|
|
|
35868
35941
|
_status = null;
|
|
35869
35942
|
_statusMutex = new Mutex();
|
|
35870
35943
|
_validatedParams;
|
|
35944
|
+
/**
|
|
35945
|
+
* Constructs an instance for the static creation pipeline.
|
|
35946
|
+
* @param key - Private construction token supplied by {@link create}.
|
|
35947
|
+
* @param params - Unvalidated parameters retained until first access.
|
|
35948
|
+
* @throws When called directly instead of through {@link create}.
|
|
35949
|
+
*/
|
|
35871
35950
|
constructor(key, params) {
|
|
35872
35951
|
assertEx(key === AbstractCreatableConstructorKey, () => "AbstractCreatable should not be instantiated directly, use the static create method instead");
|
|
35873
35952
|
super(params);
|
|
@@ -36113,32 +36192,42 @@ var init_node$2 = __esmMin((() => {
|
|
|
36113
36192
|
trace: 6
|
|
36114
36193
|
});
|
|
36115
36194
|
LevelLogger = class {
|
|
36195
|
+
/** Highest numeric verbosity admitted by this logger. */
|
|
36116
36196
|
level;
|
|
36197
|
+
/** Destination logger receiving admitted messages. */
|
|
36117
36198
|
logger;
|
|
36199
|
+
/** Creates a threshold filter around a destination logger. */
|
|
36118
36200
|
constructor(logger, level = LogLevel.warn) {
|
|
36119
36201
|
this.level = level;
|
|
36120
36202
|
this.logger = logger;
|
|
36121
36203
|
}
|
|
36204
|
+
/** Debug function or a no-op when debug messages exceed the threshold. */
|
|
36122
36205
|
get debug() {
|
|
36123
36206
|
return this.level >= LogLevel.debug ? this.logger.debug : NoOpLogFunction;
|
|
36124
36207
|
}
|
|
36208
|
+
/** Error function or a no-op when errors exceed the threshold. */
|
|
36125
36209
|
get error() {
|
|
36126
36210
|
return this.level >= LogLevel.error ? this.logger.error : NoOpLogFunction;
|
|
36127
36211
|
}
|
|
36212
|
+
/** Info function or a no-op when informational messages exceed the threshold. */
|
|
36128
36213
|
get info() {
|
|
36129
36214
|
return this.level >= LogLevel.info ? this.logger.info : NoOpLogFunction;
|
|
36130
36215
|
}
|
|
36216
|
+
/** General log function or a no-op when it exceeds the threshold. */
|
|
36131
36217
|
get log() {
|
|
36132
36218
|
return this.level >= LogLevel.log ? this.logger.log : NoOpLogFunction;
|
|
36133
36219
|
}
|
|
36220
|
+
/** Trace function or a no-op when trace messages exceed the threshold. */
|
|
36134
36221
|
get trace() {
|
|
36135
36222
|
return this.level >= LogLevel.trace ? this.logger.trace : NoOpLogFunction;
|
|
36136
36223
|
}
|
|
36224
|
+
/** Warning function or a no-op when warnings exceed the threshold. */
|
|
36137
36225
|
get warn() {
|
|
36138
36226
|
return this.level >= LogLevel.warn ? this.logger.warn : NoOpLogFunction;
|
|
36139
36227
|
}
|
|
36140
36228
|
};
|
|
36141
36229
|
ConsoleLogger = class extends LevelLogger {
|
|
36230
|
+
/** Creates a console-backed logger at the selected verbosity threshold. */
|
|
36142
36231
|
constructor(level = LogLevel.warn) {
|
|
36143
36232
|
super(console, level);
|
|
36144
36233
|
}
|
|
@@ -36146,28 +36235,40 @@ var init_node$2 = __esmMin((() => {
|
|
|
36146
36235
|
IdLogger = class {
|
|
36147
36236
|
_id;
|
|
36148
36237
|
_logger;
|
|
36238
|
+
/**
|
|
36239
|
+
* Wraps a logger with an optional lazily evaluated identifier.
|
|
36240
|
+
* @param logger - Destination for all prefixed messages.
|
|
36241
|
+
* @param id - Callback evaluated for each log call.
|
|
36242
|
+
*/
|
|
36149
36243
|
constructor(logger, id) {
|
|
36150
36244
|
this._logger = logger;
|
|
36151
36245
|
this._id = id;
|
|
36152
36246
|
}
|
|
36247
|
+
/** Replaces the identifier callback with a fixed identifier. */
|
|
36153
36248
|
set id(id) {
|
|
36154
36249
|
this._id = () => id;
|
|
36155
36250
|
}
|
|
36251
|
+
/** Forwards a debug message prefixed with the current identifier. */
|
|
36156
36252
|
debug(...data) {
|
|
36157
36253
|
this._logger?.debug(this.prefix(), ...data);
|
|
36158
36254
|
}
|
|
36255
|
+
/** Forwards an error message prefixed with the current identifier. */
|
|
36159
36256
|
error(...data) {
|
|
36160
36257
|
this._logger?.error(this.prefix(), ...data);
|
|
36161
36258
|
}
|
|
36259
|
+
/** Forwards an informational message prefixed with the current identifier. */
|
|
36162
36260
|
info(...data) {
|
|
36163
36261
|
this._logger?.info(this.prefix(), ...data);
|
|
36164
36262
|
}
|
|
36263
|
+
/** Forwards a general log message prefixed with the current identifier. */
|
|
36165
36264
|
log(...data) {
|
|
36166
36265
|
this._logger?.log(this.prefix(), ...data);
|
|
36167
36266
|
}
|
|
36267
|
+
/** Forwards a trace message prefixed with the current identifier. */
|
|
36168
36268
|
trace(...data) {
|
|
36169
36269
|
this._logger?.trace(this.prefix(), ...data);
|
|
36170
36270
|
}
|
|
36271
|
+
/** Forwards a warning prefixed with the current identifier. */
|
|
36171
36272
|
warn(...data) {
|
|
36172
36273
|
this._logger?.warn(this.prefix(), ...data);
|
|
36173
36274
|
}
|
|
@@ -36289,10 +36390,20 @@ var init_node$2 = __esmMin((() => {
|
|
|
36289
36390
|
/** Whether the promise has been cancelled via a value callback. */
|
|
36290
36391
|
cancelled;
|
|
36291
36392
|
_value;
|
|
36393
|
+
/**
|
|
36394
|
+
* Creates a promise with metadata available to cancellation callbacks.
|
|
36395
|
+
* @param func - Standard promise executor.
|
|
36396
|
+
* @param value - Metadata inspected by {@link PromiseEx.then} and {@link PromiseEx.value}.
|
|
36397
|
+
*/
|
|
36292
36398
|
constructor(func, value) {
|
|
36293
36399
|
super(func);
|
|
36294
36400
|
this._value = value;
|
|
36295
36401
|
}
|
|
36402
|
+
/**
|
|
36403
|
+
* Registers settlement callbacks and optionally inspects attached metadata.
|
|
36404
|
+
* Returning true from `onvalue` marks the instance as cancelled but does not
|
|
36405
|
+
* suppress or abort normal promise settlement.
|
|
36406
|
+
*/
|
|
36296
36407
|
then(onfulfilled, onrejected, onvalue) {
|
|
36297
36408
|
if (onvalue?.(this._value) === true) this.cancelled = true;
|
|
36298
36409
|
return super.then(onfulfilled, onrejected);
|
|
@@ -36980,7 +37091,7 @@ var init_index_min = __esmMin((() => {
|
|
|
36980
37091
|
};
|
|
36981
37092
|
}));
|
|
36982
37093
|
//#endregion
|
|
36983
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
37094
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/module-model.mjs
|
|
36984
37095
|
function creatableModule() {
|
|
36985
37096
|
return (constructor) => {};
|
|
36986
37097
|
}
|
|
@@ -37439,7 +37550,7 @@ var init_archivist_model = __esmMin((() => {
|
|
|
37439
37550
|
};
|
|
37440
37551
|
}));
|
|
37441
37552
|
//#endregion
|
|
37442
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
37553
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/diviner-model.mjs
|
|
37443
37554
|
var DivinerDivineQuerySchema, DivinerDivineQueryZod, isDivinerDivineQuery, asDivinerDivineQuery, toDivinerDivineQuery, isDivinerInstance, isDivinerModule, asDivinerModule, asDivinerInstance, withDivinerModule, withDivinerInstance, requiredAttachableDivinerInstanceFunctions, isAttachableDivinerInstance, asAttachableDivinerInstance, IsAttachableDivinerInstanceFactory, DivinerConfigSchema, DivinerConfigZod, isDivinerConfig, asDivinerConfig, toDivinerConfig;
|
|
37444
37555
|
var init_diviner_model = __esmMin((() => {
|
|
37445
37556
|
init_node$2();
|
|
@@ -37470,7 +37581,7 @@ var init_diviner_model = __esmMin((() => {
|
|
|
37470
37581
|
toDivinerConfig = zodToFactory(DivinerConfigZod, "toDivinerConfig");
|
|
37471
37582
|
}));
|
|
37472
37583
|
//#endregion
|
|
37473
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
37584
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/diviner-payload-model.mjs
|
|
37474
37585
|
var PayloadDivinerSchema, PayloadDivinerConfigSchema, PayloadDivinerConfigZod, isPayloadDivinerConfig, asPayloadDivinerConfig, toPayloadDivinerConfig, PayloadDivinerQuerySchema, PayloadDivinerQueryPayloadZod, isPayloadDivinerQueryPayloadInternal, isPayloadDivinerQueryPayload, asPayloadDivinerQueryPayload, toPayloadDivinerQueryPayload;
|
|
37475
37586
|
var init_diviner_payload_model = __esmMin((() => {
|
|
37476
37587
|
init_node$2();
|
|
@@ -37500,7 +37611,7 @@ var init_diviner_payload_model = __esmMin((() => {
|
|
|
37500
37611
|
toPayloadDivinerQueryPayload = zodToFactory(PayloadDivinerQueryPayloadZod, "toPayloadDivinerQueryPayload");
|
|
37501
37612
|
}));
|
|
37502
37613
|
//#endregion
|
|
37503
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
37614
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/module-resolver.mjs
|
|
37504
37615
|
var AbstractModuleResolver, resolveAddressToInstanceDown, resolveAddressToInstanceSiblings, resolveAddressToInstanceUp, resolveAddressToInstanceAll, resolveAddressToInstance, resolveAllUp, resolveAllDown, resolveAll, ResolveHelperStatic, resolveLocalNameToInstanceUp, resolveLocalNameToInstanceDown, resolveLocalNameToInstanceAll, resolveLocalNameToInstance, resolveLocalNameToAddressUp, resolveLocalNameToAddressDown, resolveLocalNameToAddressAll, resolveLocalNameToAddress, transformModuleIdentifier, resolvePathToInstance, resolvePathToAddress, traceModuleIdentifier, ResolveHelper, SimpleModuleResolver, moduleIdentifierParts, CompositeModuleResolver, NameRegistrarTransformer, getMixin, mixinResolverEventEmitter;
|
|
37505
37616
|
var init_module_resolver = __esmMin((() => {
|
|
37506
37617
|
init_node$2();
|
|
@@ -38038,7 +38149,7 @@ var init_module_resolver = __esmMin((() => {
|
|
|
38038
38149
|
};
|
|
38039
38150
|
}));
|
|
38040
38151
|
//#endregion
|
|
38041
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
38152
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/node-model.mjs
|
|
38042
38153
|
var NodeAttachQuerySchema, NodeAttachQueryZod, isNodeAttachQuery, asNodeAttachQuery, toNodeAttachQuery, NodeAttachedQuerySchema, NodeAttachedQueryZod, isNodeAttachedQuery, asNodeAttachedQuery, toNodeAttachedQuery, NodeCertifyQuerySchema, NodeCertifyQueryZod, isNodeCertifyQuery, asNodeCertifyQuery, toNodeCertifyQuery, NodeDetachQuerySchema, NodeDetachQueryZod, isNodeDetachQuery, asNodeDetachQuery, toNodeDetachQuery, NodeRegisteredQuerySchema, NodeRegisteredQueryZod, isNodeRegisteredQuery, asNodeRegisteredQuery, toNodeRegisteredQuery, isNodeInstance, isNodeModule, asNodeModule, asNodeInstance, withNodeModule, withNodeInstance, requiredAttachableNodeInstanceFunctions, isAttachableNodeInstance, asAttachableNodeInstance, IsAttachableNodeInstanceFactory, ChildCertificationSchema, ChildCertificationZod, isChildCertification, asChildCertification, toChildCertification, NodeConfigSchema, NodeConfigZod, isNodeConfig, asNodeConfig, toNodeConfig;
|
|
38043
38154
|
var init_node_model = __esmMin((() => {
|
|
38044
38155
|
init_node$2();
|
|
@@ -38107,7 +38218,7 @@ var init_node_model = __esmMin((() => {
|
|
|
38107
38218
|
toNodeConfig = zodToFactory(NodeConfigZod, "toNodeConfig");
|
|
38108
38219
|
}));
|
|
38109
38220
|
//#endregion
|
|
38110
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
38221
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/module-abstract.mjs
|
|
38111
38222
|
async function determineAccount(params, allowRandomAccount = true) {
|
|
38112
38223
|
if (isDetermineAccountFromAccountParams(params)) {
|
|
38113
38224
|
if (params.account === "random") {
|
|
@@ -38892,7 +39003,7 @@ var init_module_abstract = __esmMin((() => {
|
|
|
38892
39003
|
};
|
|
38893
39004
|
}));
|
|
38894
39005
|
//#endregion
|
|
38895
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
39006
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/archivist-abstract.mjs
|
|
38896
39007
|
var StorageClassLabel, NOT_IMPLEMENTED, AbstractArchivist;
|
|
38897
39008
|
var init_archivist_abstract = __esmMin((() => {
|
|
38898
39009
|
init_node$2();
|
|
@@ -39374,7 +39485,7 @@ var init_archivist_abstract = __esmMin((() => {
|
|
|
39374
39485
|
};
|
|
39375
39486
|
}));
|
|
39376
39487
|
//#endregion
|
|
39377
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
39488
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/archivist-generic.mjs
|
|
39378
39489
|
var __defProp$19, __getOwnPropDesc$18, __getProtoOf$5, __reflectGet$5, __defNormalProp$17, __decorateClass$18, __publicField$17, __superGet$5, GenericArchivistConfigSchema, GenericArchivistConfigZod, isGenericArchivistConfig, asGenericArchivistConfig, toGenericArchivistConfig, GenericArchivist;
|
|
39379
39490
|
var init_archivist_generic = __esmMin((() => {
|
|
39380
39491
|
init_node$2();
|
|
@@ -39472,7 +39583,7 @@ var init_archivist_generic = __esmMin((() => {
|
|
|
39472
39583
|
GenericArchivist = __decorateClass$18([creatableModule()], GenericArchivist);
|
|
39473
39584
|
}));
|
|
39474
39585
|
//#endregion
|
|
39475
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
39586
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/archivist-view.mjs
|
|
39476
39587
|
var __defProp$18, __getOwnPropDesc$17, __getProtoOf$4, __reflectGet$4, __defNormalProp$16, __decorateClass$17, __publicField$16, __superGet$4, ViewArchivistConfigSchema, ViewArchivistConfigZod, isViewArchivistConfig, asViewArchivistConfig, toViewArchivistConfig, ViewArchivist;
|
|
39477
39588
|
var init_archivist_view = __esmMin((() => {
|
|
39478
39589
|
init_node$2();
|
|
@@ -39546,7 +39657,7 @@ var init_archivist_view = __esmMin((() => {
|
|
|
39546
39657
|
ViewArchivist = __decorateClass$17([labeledCreatableModule()], ViewArchivist);
|
|
39547
39658
|
}));
|
|
39548
39659
|
//#endregion
|
|
39549
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
39660
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/bridge-model.mjs
|
|
39550
39661
|
var BridgeConnectQuerySchema, BridgeConnectQueryZod, isBridgeConnectQuery, asBridgeConnectQuery, toBridgeConnectQuery, BridgeDisconnectQuerySchema, BridgeDisconnectQueryZod, isBridgeDisconnectQuery, asBridgeDisconnectQuery, toBridgeDisconnectQuery, BridgeExposeQuerySchema, ModuleFilterPayloadSchema, ModuleFilterPayloadZod, isModuleFilterPayload, asModuleFilterPayload, toModuleFilterPayload, BridgeExposeQueryZod, isBridgeExposeQuery, asBridgeExposeQuery, toBridgeExposeQuery, BridgeUnexposeQuerySchema, BridgeUnexposeQueryZod, isBridgeUnexposeQuery, asBridgeUnexposeQuery, toBridgeUnexposeQuery, isBridgeInstance, isBridgeModule, asBridgeModule, asBridgeInstance, withBridgeModule, withBridgeInstance, requiredAttachableBridgeInstanceFunctions, isAttachableBridgeInstance, asAttachableBridgeInstance, IsAttachableBridgeInstanceFactory, BridgeConfigSchema, BridgeConfigZod, isBridgeConfig, asBridgeConfig, toBridgeConfig;
|
|
39551
39662
|
var init_bridge_model = __esmMin((() => {
|
|
39552
39663
|
init_node$2();
|
|
@@ -39610,7 +39721,7 @@ var init_bridge_model = __esmMin((() => {
|
|
|
39610
39721
|
toBridgeConfig = zodToFactory(BridgeConfigZod, "toBridgeConfig");
|
|
39611
39722
|
}));
|
|
39612
39723
|
//#endregion
|
|
39613
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
39724
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/module-wrapper.mjs
|
|
39614
39725
|
function constructableModuleWrapper() {
|
|
39615
39726
|
return (constructor) => {};
|
|
39616
39727
|
}
|
|
@@ -39882,7 +39993,7 @@ var init_module_wrapper = __esmMin((() => {
|
|
|
39882
39993
|
ModuleWrapper = __decorateClass$16([constructableModuleWrapper()], ModuleWrapper);
|
|
39883
39994
|
}));
|
|
39884
39995
|
//#endregion
|
|
39885
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
39996
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/archivist-wrapper.mjs
|
|
39886
39997
|
var ArchivistWrapper;
|
|
39887
39998
|
var init_archivist_wrapper = __esmMin((() => {
|
|
39888
39999
|
init_archivist_model();
|
|
@@ -39982,7 +40093,7 @@ var init_archivist_wrapper = __esmMin((() => {
|
|
|
39982
40093
|
};
|
|
39983
40094
|
}));
|
|
39984
40095
|
//#endregion
|
|
39985
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
40096
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/diviner-wrapper.mjs
|
|
39986
40097
|
var DivinerWrapper;
|
|
39987
40098
|
var init_diviner_wrapper = __esmMin((() => {
|
|
39988
40099
|
init_diviner_model();
|
|
@@ -40002,7 +40113,7 @@ var init_diviner_wrapper = __esmMin((() => {
|
|
|
40002
40113
|
};
|
|
40003
40114
|
}));
|
|
40004
40115
|
//#endregion
|
|
40005
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
40116
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/node-wrapper.mjs
|
|
40006
40117
|
var NodeWrapper;
|
|
40007
40118
|
var init_node_wrapper = __esmMin((() => {
|
|
40008
40119
|
init_async_mutex();
|
|
@@ -40091,7 +40202,7 @@ var init_node_wrapper = __esmMin((() => {
|
|
|
40091
40202
|
};
|
|
40092
40203
|
}));
|
|
40093
40204
|
//#endregion
|
|
40094
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
40205
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/sentinel-model.mjs
|
|
40095
40206
|
var SentinelReportQuerySchema, SentinelReportQueryZod, isSentinelReportQuery, asSentinelReportQuery, toSentinelReportQuery, isSentinelInstance, isSentinelModule, asSentinelModule, asSentinelInstance, withSentinelModule, withSentinelInstance, requiredAttachableSentinelInstanceFunctions, isAttachableSentinelInstance, asAttachableSentinelInstance, IsAttachableSentinelInstanceFactory, SentinelAutomationSchema, SentinelIntervalAutomationSchema, SentinelModuleEventAutomationSchema, SentinelIntervalAutomationZod, isSentinelIntervalAutomation, asSentinelIntervalAutomation, toSentinelIntervalAutomation, SentinelModuleEventAutomationZod, isSentinelModuleEventAutomation, asSentinelModuleEventAutomation, toSentinelModuleEventAutomation, SentinelConfigSchema, SentinelConfigZod, isSentinelConfig, asSentinelConfig, toSentinelConfig;
|
|
40096
40207
|
var init_sentinel_model = __esmMin((() => {
|
|
40097
40208
|
init_node$2();
|
|
@@ -40159,7 +40270,7 @@ var init_sentinel_model = __esmMin((() => {
|
|
|
40159
40270
|
toSentinelConfig = zodToFactory(SentinelConfigZod, "toSentinelConfig");
|
|
40160
40271
|
}));
|
|
40161
40272
|
//#endregion
|
|
40162
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
40273
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/sentinel-wrapper.mjs
|
|
40163
40274
|
var SentinelWrapper;
|
|
40164
40275
|
var init_sentinel_wrapper = __esmMin((() => {
|
|
40165
40276
|
init_module_wrapper();
|
|
@@ -40185,7 +40296,7 @@ var init_sentinel_wrapper = __esmMin((() => {
|
|
|
40185
40296
|
};
|
|
40186
40297
|
}));
|
|
40187
40298
|
//#endregion
|
|
40188
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
40299
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/witness-model.mjs
|
|
40189
40300
|
var WitnessObserveQuerySchema, WitnessObserveQueryZod, isWitnessObserveQuery, asWitnessObserveQuery, toWitnessObserveQuery, isWitnessInstance, isWitnessModule, asWitnessModule, asWitnessInstance, withWitnessModule, withWitnessInstance, requiredAttachableWitnessInstanceFunctions, isAttachableWitnessInstance, asAttachableWitnessInstance, IsAttachableWitnessInstanceFactory, WitnessConfigSchema, WitnessConfigZod, isWitnessConfig, asWitnessConfig, toWitnessConfig;
|
|
40190
40301
|
var init_witness_model = __esmMin((() => {
|
|
40191
40302
|
init_node$2();
|
|
@@ -40216,7 +40327,7 @@ var init_witness_model = __esmMin((() => {
|
|
|
40216
40327
|
toWitnessConfig = zodToFactory(WitnessConfigZod, "toWitnessConfig");
|
|
40217
40328
|
}));
|
|
40218
40329
|
//#endregion
|
|
40219
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
40330
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/witness-wrapper.mjs
|
|
40220
40331
|
var WitnessWrapper;
|
|
40221
40332
|
var init_witness_wrapper = __esmMin((() => {
|
|
40222
40333
|
init_module_wrapper();
|
|
@@ -40236,7 +40347,7 @@ var init_witness_wrapper = __esmMin((() => {
|
|
|
40236
40347
|
};
|
|
40237
40348
|
}));
|
|
40238
40349
|
//#endregion
|
|
40239
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
40350
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/bridge-abstract.mjs
|
|
40240
40351
|
var AbstractBridge, AbstractBridgeModuleResolver, wrapModuleWithType, ModuleProxyResolver, AbstractModuleProxy;
|
|
40241
40352
|
var init_bridge_abstract = __esmMin((() => {
|
|
40242
40353
|
init_node$2();
|
|
@@ -40667,7 +40778,7 @@ var init_bridge_abstract = __esmMin((() => {
|
|
|
40667
40778
|
};
|
|
40668
40779
|
}));
|
|
40669
40780
|
//#endregion
|
|
40670
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
40781
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/bridge-http.mjs
|
|
40671
40782
|
var __defProp$16, __getOwnPropDesc$15, __getProtoOf$3, __reflectGet$3, __defNormalProp$14, __decorateClass$15, __publicField$14, __superGet$3, HttpBridgeConfigSchema, HttpBridgeConfigZod, isHttpBridgeConfig, asHttpBridgeConfig, toHttpBridgeConfig, HttpModuleProxy, NotFoundModule, HttpBridgeModuleResolver, HttpBridge;
|
|
40672
40783
|
var init_bridge_http = __esmMin((() => {
|
|
40673
40784
|
init_node$2();
|
|
@@ -40964,7 +41075,7 @@ var init_bridge_http = __esmMin((() => {
|
|
|
40964
41075
|
HttpBridge = __decorateClass$15([creatableModule()], HttpBridge);
|
|
40965
41076
|
}));
|
|
40966
41077
|
//#endregion
|
|
40967
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41078
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/diviner-abstract.mjs
|
|
40968
41079
|
var delayedResolve, AbstractDiviner;
|
|
40969
41080
|
var init_diviner_abstract = __esmMin((() => {
|
|
40970
41081
|
init_node$2();
|
|
@@ -41085,7 +41196,7 @@ var init_diviner_abstract = __esmMin((() => {
|
|
|
41085
41196
|
};
|
|
41086
41197
|
}));
|
|
41087
41198
|
//#endregion
|
|
41088
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41199
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/diviner-boundwitness.mjs
|
|
41089
41200
|
var BoundWitnessDivinerSchema$1, BoundWitnessDivinerConfigSchema$1, BoundWitnessDivinerConfigZod$1, isBoundWitnessDivinerConfig, asBoundWitnessDivinerConfig, toBoundWitnessDivinerConfig, BoundWitnessDiviner$1, applyBoundWitnessDivinerQueryPayload$1, BoundWitnessDivinerQuerySchema$1, BoundWitnessDivinerQueryPayloadZod$1, isBoundWitnessDivinerQueryPayload$1, asBoundWitnessDivinerQueryPayload, toBoundWitnessDivinerQueryPayload, MemoryBoundWitnessDiviner$1;
|
|
41090
41201
|
var init_diviner_boundwitness = __esmMin((() => {
|
|
41091
41202
|
init_diviner_abstract();
|
|
@@ -41139,7 +41250,7 @@ var init_diviner_boundwitness = __esmMin((() => {
|
|
|
41139
41250
|
};
|
|
41140
41251
|
}));
|
|
41141
41252
|
//#endregion
|
|
41142
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41253
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/diviner-identity.mjs
|
|
41143
41254
|
var __defProp$15, __getOwnPropDesc$14, __defNormalProp$13, __decorateClass$14, __publicField$13, IdentityDiviner;
|
|
41144
41255
|
var init_diviner_identity = __esmMin((() => {
|
|
41145
41256
|
init_node$2();
|
|
@@ -41169,7 +41280,7 @@ var init_diviner_identity = __esmMin((() => {
|
|
|
41169
41280
|
IdentityDiviner = __decorateClass$14([creatableModule()], IdentityDiviner);
|
|
41170
41281
|
}));
|
|
41171
41282
|
//#endregion
|
|
41172
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41283
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/diviner-payload-abstract.mjs
|
|
41173
41284
|
var PayloadDiviner;
|
|
41174
41285
|
var init_diviner_payload_abstract = __esmMin((() => {
|
|
41175
41286
|
init_diviner_abstract();
|
|
@@ -41180,7 +41291,7 @@ var init_diviner_payload_abstract = __esmMin((() => {
|
|
|
41180
41291
|
};
|
|
41181
41292
|
}));
|
|
41182
41293
|
//#endregion
|
|
41183
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41294
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/diviner-payload-generic.mjs
|
|
41184
41295
|
var __defProp$14, __getOwnPropDesc$13, __getProtoOf$2, __reflectGet$2, __defNormalProp$12, __decorateClass$13, __publicField$12, __superGet$2, DEFAULT_INDEX_BATCH_SIZE, DEFAULT_MAX_INDEX_SIZE, GenericPayloadDivinerConfigSchema, GenericPayloadDivinerConfigZod, isGenericPayloadDivinerConfig, asGenericPayloadDivinerConfig, toGenericPayloadDivinerConfig, GenericPayloadDiviner;
|
|
41185
41296
|
var init_diviner_payload_generic = __esmMin((() => {
|
|
41186
41297
|
init_node$2();
|
|
@@ -41332,7 +41443,7 @@ var init_diviner_payload_generic = __esmMin((() => {
|
|
|
41332
41443
|
GenericPayloadDiviner = __decorateClass$13([creatableModule()], GenericPayloadDiviner);
|
|
41333
41444
|
}));
|
|
41334
41445
|
//#endregion
|
|
41335
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41446
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/address-payload-plugin.mjs
|
|
41336
41447
|
var addressPayloadTemplate, AddressPayloadPlugin;
|
|
41337
41448
|
var init_address_payload_plugin = __esmMin((() => {
|
|
41338
41449
|
init_module_model();
|
|
@@ -41347,7 +41458,7 @@ var init_address_payload_plugin = __esmMin((() => {
|
|
|
41347
41458
|
});
|
|
41348
41459
|
}));
|
|
41349
41460
|
//#endregion
|
|
41350
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41461
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/api-location-diviner.mjs
|
|
41351
41462
|
var LocationDivinerApi, CurrentLocationWitnessSchema, CurrentLocationWitnessPayloadZod, isCurrentLocationWitnessPayload, asCurrentLocationWitnessPayload, toCurrentLocationWitnessPayload, LocationWitnessSchema, LocationWitnessPayloadZod, isLocationWitnessPayload, asLocationWitnessPayload, toLocationWitnessPayload, LocationHeatmapQuerySchema, LocationHeatmapAnswerSchema, LocationHeatmapQueryZod, isLocationHeatmapQuery, asLocationHeatmapQuery, toLocationHeatmapQuery, LocationQuadkeyHeatmapQuerySchema, LocationQuadkeyHeatmapAnswerSchema, LocationQuadkeyHeatmapQueryZod, isLocationQuadkeyHeatmapQuery, asLocationQuadkeyHeatmapQuery, toLocationQuadkeyHeatmapQuery, locationQuerySchemas, isSupportedLocationQuerySchema, LocationTimeRangeQuerySchema, LocationTimeRangeAnswerSchema, LocationTimeRangeQueryZod, isLocationTimeRangeQuery, asLocationTimeRangeQuery, toLocationTimeRangeQuery, RemoteDivinerConfigSchema, RemoteDivinerConfigZod, isRemoteDivinerConfig, asRemoteDivinerConfig, toRemoteDivinerConfig, RemoteDivinerError;
|
|
41352
41463
|
var init_api_location_diviner = __esmMin((() => {
|
|
41353
41464
|
init_node$2();
|
|
@@ -41442,7 +41553,7 @@ var init_api_location_diviner = __esmMin((() => {
|
|
|
41442
41553
|
};
|
|
41443
41554
|
}));
|
|
41444
41555
|
//#endregion
|
|
41445
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41556
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/archivist-memory.mjs
|
|
41446
41557
|
var __defProp$13, __getOwnPropDesc$12, __getProtoOf$1, __reflectGet$1, __defNormalProp$11, __decorateClass$12, __publicField$11, __superGet$1, MemoryArchivistConfigSchema, MemoryArchivistConfigZod, isMemoryArchivistConfig, asMemoryArchivistConfig, toMemoryArchivistConfig, MemoryDriver, MemoryArchivist;
|
|
41447
41558
|
var init_archivist_memory = __esmMin((() => {
|
|
41448
41559
|
init_archivist_abstract();
|
|
@@ -41598,7 +41709,7 @@ var init_archivist_memory = __esmMin((() => {
|
|
|
41598
41709
|
MemoryArchivist = __decorateClass$12([creatableModule()], MemoryArchivist);
|
|
41599
41710
|
}));
|
|
41600
41711
|
//#endregion
|
|
41601
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41712
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/archivist.mjs
|
|
41602
41713
|
var init_archivist = __esmMin((() => {
|
|
41603
41714
|
init_archivist_abstract();
|
|
41604
41715
|
init_archivist_memory();
|
|
@@ -41606,7 +41717,7 @@ var init_archivist = __esmMin((() => {
|
|
|
41606
41717
|
init_archivist_wrapper();
|
|
41607
41718
|
}));
|
|
41608
41719
|
//#endregion
|
|
41609
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41720
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/boundwitness-loader.mjs
|
|
41610
41721
|
var BoundWitnessLoader;
|
|
41611
41722
|
var init_boundwitness_loader = __esmMin((() => {
|
|
41612
41723
|
init_node$2();
|
|
@@ -41650,7 +41761,7 @@ var init_boundwitness_loader = __esmMin((() => {
|
|
|
41650
41761
|
};
|
|
41651
41762
|
}));
|
|
41652
41763
|
//#endregion
|
|
41653
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41764
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/bridge-wrapper.mjs
|
|
41654
41765
|
var BridgeWrapper;
|
|
41655
41766
|
var init_bridge_wrapper = __esmMin((() => {
|
|
41656
41767
|
init_bridge_model();
|
|
@@ -41678,21 +41789,21 @@ var init_bridge_wrapper = __esmMin((() => {
|
|
|
41678
41789
|
};
|
|
41679
41790
|
}));
|
|
41680
41791
|
//#endregion
|
|
41681
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41792
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/bridge.mjs
|
|
41682
41793
|
var init_bridge = __esmMin((() => {
|
|
41683
41794
|
init_bridge_abstract();
|
|
41684
41795
|
init_bridge_model();
|
|
41685
41796
|
init_bridge_wrapper();
|
|
41686
41797
|
}));
|
|
41687
41798
|
//#endregion
|
|
41688
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41799
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/diviner.mjs
|
|
41689
41800
|
var init_diviner = __esmMin((() => {
|
|
41690
41801
|
init_diviner_abstract();
|
|
41691
41802
|
init_diviner_model();
|
|
41692
41803
|
init_diviner_wrapper();
|
|
41693
41804
|
}));
|
|
41694
41805
|
//#endregion
|
|
41695
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
41806
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/node-abstract.mjs
|
|
41696
41807
|
var AbstractNode, attachedPrivateModules, attachedPublicModules, NodeHelper;
|
|
41697
41808
|
var init_node_abstract = __esmMin((() => {
|
|
41698
41809
|
init_node$2();
|
|
@@ -41902,7 +42013,7 @@ var init_node_abstract = __esmMin((() => {
|
|
|
41902
42013
|
};
|
|
41903
42014
|
}));
|
|
41904
42015
|
//#endregion
|
|
41905
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
42016
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/node-memory.mjs
|
|
41906
42017
|
var __defProp$12, __getOwnPropDesc$11, __decorateClass$11, MemoryNode, flatAttachAllToExistingNode, flatAttachChildToExistingNode, flatAttachToExistingNode, attachToExistingNode, DEFAULT_NODE_PARAMS, attachToNewNode, flatAttachToNewNode, MemoryNodeHelper;
|
|
41907
42018
|
var init_node_memory = __esmMin((() => {
|
|
41908
42019
|
init_node$2();
|
|
@@ -42131,7 +42242,7 @@ var init_node_memory = __esmMin((() => {
|
|
|
42131
42242
|
};
|
|
42132
42243
|
}));
|
|
42133
42244
|
//#endregion
|
|
42134
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
42245
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/manifest-wrapper.mjs
|
|
42135
42246
|
var ManifestWrapper, ManifestWrapperEx;
|
|
42136
42247
|
var init_manifest_wrapper = __esmMin((() => {
|
|
42137
42248
|
init_node$2();
|
|
@@ -42311,7 +42422,7 @@ var init_manifest_wrapper = __esmMin((() => {
|
|
|
42311
42422
|
};
|
|
42312
42423
|
}));
|
|
42313
42424
|
//#endregion
|
|
42314
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
42425
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/module-event-emitter.mjs
|
|
42315
42426
|
var ModuleBaseEmitter;
|
|
42316
42427
|
var init_module_event_emitter = __esmMin((() => {
|
|
42317
42428
|
init_node$2();
|
|
@@ -42363,7 +42474,7 @@ var init_diviner_boundwitness_memory = __esmMin((() => {
|
|
|
42363
42474
|
};
|
|
42364
42475
|
}));
|
|
42365
42476
|
//#endregion
|
|
42366
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
42477
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/node-view.mjs
|
|
42367
42478
|
var __defProp$11, __getOwnPropDesc$10, __getProtoOf, __reflectGet, __defNormalProp$10, __decorateClass$10, __publicField$10, __superGet, ViewNodeConfigSchema, ViewNodeConfigZod, isViewNodeConfig, asViewNodeConfig, toViewNodeConfig, ViewNode;
|
|
42368
42479
|
var init_node_view = __esmMin((() => {
|
|
42369
42480
|
init_node$2();
|
|
@@ -42479,7 +42590,7 @@ var init_node_view = __esmMin((() => {
|
|
|
42479
42590
|
ViewNode = __decorateClass$10([creatableModule()], ViewNode);
|
|
42480
42591
|
}));
|
|
42481
42592
|
//#endregion
|
|
42482
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
42593
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/sentinel-abstract.mjs
|
|
42483
42594
|
var AbstractSentinel;
|
|
42484
42595
|
var init_sentinel_abstract = __esmMin((() => {
|
|
42485
42596
|
init_node$2();
|
|
@@ -42591,7 +42702,7 @@ var init_sentinel_abstract = __esmMin((() => {
|
|
|
42591
42702
|
};
|
|
42592
42703
|
}));
|
|
42593
42704
|
//#endregion
|
|
42594
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
42705
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/sentinel-memory.mjs
|
|
42595
42706
|
var SentinelIntervalAutomationWrapper, SentinelRunner, MemorySentinel;
|
|
42596
42707
|
var init_sentinel_memory = __esmMin((() => {
|
|
42597
42708
|
init_node$2();
|
|
@@ -42870,7 +42981,7 @@ var init_sentinel_memory = __esmMin((() => {
|
|
|
42870
42981
|
};
|
|
42871
42982
|
}));
|
|
42872
42983
|
//#endregion
|
|
42873
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
42984
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/witness-abstract.mjs
|
|
42874
42985
|
var AbstractWitness;
|
|
42875
42986
|
var init_witness_abstract = __esmMin((() => {
|
|
42876
42987
|
init_node$2();
|
|
@@ -42944,7 +43055,7 @@ var init_witness_abstract = __esmMin((() => {
|
|
|
42944
43055
|
};
|
|
42945
43056
|
}));
|
|
42946
43057
|
//#endregion
|
|
42947
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
43058
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/witness-adhoc.mjs
|
|
42948
43059
|
var AdhocWitnessConfigSchema, AdhocWitnessConfigZod, isAdhocWitnessConfig, asAdhocWitnessConfig, toAdhocWitnessConfig, AdhocWitness;
|
|
42949
43060
|
var init_witness_adhoc = __esmMin((() => {
|
|
42950
43061
|
init_node$2();
|
|
@@ -42971,7 +43082,7 @@ var init_witness_adhoc = __esmMin((() => {
|
|
|
42971
43082
|
};
|
|
42972
43083
|
}));
|
|
42973
43084
|
//#endregion
|
|
42974
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
43085
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/module-factory-locator.mjs
|
|
42975
43086
|
var standardCreatableModulesList, standardCreatableFactories, ModuleFactoryLocator;
|
|
42976
43087
|
var init_module_factory_locator = __esmMin((() => {
|
|
42977
43088
|
init_node$2();
|
|
@@ -43072,7 +43183,7 @@ var init_module_factory_locator = __esmMin((() => {
|
|
|
43072
43183
|
};
|
|
43073
43184
|
}));
|
|
43074
43185
|
//#endregion
|
|
43075
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
43186
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/module.mjs
|
|
43076
43187
|
var init_module = __esmMin((() => {
|
|
43077
43188
|
init_module_abstract();
|
|
43078
43189
|
init_module_event_emitter();
|
|
@@ -43082,7 +43193,7 @@ var init_module = __esmMin((() => {
|
|
|
43082
43193
|
init_module_wrapper();
|
|
43083
43194
|
}));
|
|
43084
43195
|
//#endregion
|
|
43085
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
43196
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/node.mjs
|
|
43086
43197
|
var init_node$1 = __esmMin((() => {
|
|
43087
43198
|
init_node_abstract();
|
|
43088
43199
|
init_node_memory();
|
|
@@ -43090,7 +43201,7 @@ var init_node$1 = __esmMin((() => {
|
|
|
43090
43201
|
init_node_wrapper();
|
|
43091
43202
|
}));
|
|
43092
43203
|
//#endregion
|
|
43093
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
43204
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/payloadset-plugin.mjs
|
|
43094
43205
|
var createPayloadSetDualPlugin, createPayloadSetWitnessPlugin, createPayloadSetDivinerPlugin, isPayloadSetWitnessPlugin, tryAsPayloadSetWitnessPlugin, isPayloadSetDivinerPlugin, tryAsPayloadSetDivinerPlugin, PayloadSetPluginResolver;
|
|
43095
43206
|
var init_payloadset_plugin = __esmMin((() => {
|
|
43096
43207
|
init_node$2();
|
|
@@ -43166,7 +43277,7 @@ var init_payloadset_plugin = __esmMin((() => {
|
|
|
43166
43277
|
};
|
|
43167
43278
|
}));
|
|
43168
43279
|
//#endregion
|
|
43169
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
43280
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/sentinel.mjs
|
|
43170
43281
|
var init_sentinel = __esmMin((() => {
|
|
43171
43282
|
init_sentinel_abstract();
|
|
43172
43283
|
init_sentinel_memory();
|
|
@@ -43174,14 +43285,14 @@ var init_sentinel = __esmMin((() => {
|
|
|
43174
43285
|
init_sentinel_wrapper();
|
|
43175
43286
|
}));
|
|
43176
43287
|
//#endregion
|
|
43177
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
43288
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/witness.mjs
|
|
43178
43289
|
var init_witness = __esmMin((() => {
|
|
43179
43290
|
init_witness_abstract();
|
|
43180
43291
|
init_witness_model();
|
|
43181
43292
|
init_witness_wrapper();
|
|
43182
43293
|
}));
|
|
43183
43294
|
//#endregion
|
|
43184
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
43295
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/neutral/modules.mjs
|
|
43185
43296
|
var init_modules = __esmMin((() => {
|
|
43186
43297
|
init_address_payload_plugin();
|
|
43187
43298
|
init_api_location_diviner();
|
|
@@ -43197,7 +43308,7 @@ var init_modules = __esmMin((() => {
|
|
|
43197
43308
|
init_witness();
|
|
43198
43309
|
}));
|
|
43199
43310
|
//#endregion
|
|
43200
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
43311
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_1e12c71e9dc42df17f68d79f2e8de59a/node_modules/@xyo-network/sdk/dist/node/index.mjs
|
|
43201
43312
|
var node_exports = /* @__PURE__ */ __exportAll({
|
|
43202
43313
|
AbstractArchivist: () => AbstractArchivist,
|
|
43203
43314
|
AbstractBridge: () => AbstractBridge,
|
|
@@ -74164,7 +74275,7 @@ zero
|
|
|
74164
74275
|
zone
|
|
74165
74276
|
zoo`.split("\n"));
|
|
74166
74277
|
//#endregion
|
|
74167
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.
|
|
74278
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod_c65b4407ab2a98f6b954f45fe956b15a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/address.mjs
|
|
74168
74279
|
init_node$2();
|
|
74169
74280
|
init_mini();
|
|
74170
74281
|
function encodeQuantAddress(hrp, bytes) {
|
|
@@ -74184,7 +74295,7 @@ function tryDecodeQuantAddress(address) {
|
|
|
74184
74295
|
}
|
|
74185
74296
|
(/* @__PURE__ */ string$3()).check(/* @__PURE__ */ refine$2((v) => tryDecodeQuantAddress(v) !== void 0));
|
|
74186
74297
|
//#endregion
|
|
74187
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.
|
|
74298
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod_c65b4407ab2a98f6b954f45fe956b15a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/account-model.mjs
|
|
74188
74299
|
init_node$2();
|
|
74189
74300
|
var isPhraseInitializationConfig = (value) => {
|
|
74190
74301
|
if (typeof value === "object" && value !== null) return typeof value.phrase === "string";
|
|
@@ -75637,12 +75748,14 @@ const ml_dsa65 = /* @__PURE__ */ (() => getDilithium({
|
|
|
75637
75748
|
securityLevel: 192
|
|
75638
75749
|
}))();
|
|
75639
75750
|
//#endregion
|
|
75640
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.
|
|
75751
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod_c65b4407ab2a98f6b954f45fe956b15a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/data.mjs
|
|
75641
75752
|
init_node$2();
|
|
75642
75753
|
var AbstractData = class {
|
|
75754
|
+
/** Type guard for {@link AbstractData} instances. */
|
|
75643
75755
|
static is(value) {
|
|
75644
75756
|
return value instanceof this;
|
|
75645
75757
|
}
|
|
75758
|
+
/** Byte length of the underlying buffer. */
|
|
75646
75759
|
get length() {
|
|
75647
75760
|
return this.bytes.byteLength;
|
|
75648
75761
|
}
|
|
@@ -75653,41 +75766,72 @@ function checkLength(bytes, length) {
|
|
|
75653
75766
|
var Data = class _Data extends AbstractData {
|
|
75654
75767
|
_bytes;
|
|
75655
75768
|
_length;
|
|
75769
|
+
/**
|
|
75770
|
+
* @param length - Expected byte length (asserted on encode views)
|
|
75771
|
+
* @param bytes - Optional initial bytes
|
|
75772
|
+
* @param base - Optional radix when parsing string-like input via `toUint8Array`
|
|
75773
|
+
*/
|
|
75656
75774
|
constructor(length, bytes, base) {
|
|
75657
75775
|
super();
|
|
75658
75776
|
this._bytes = toUint8Array$2(bytes, length, base)?.buffer;
|
|
75659
75777
|
this._length = length;
|
|
75660
75778
|
}
|
|
75779
|
+
/**
|
|
75780
|
+
* Wrap an ArrayBuffer as {@link Data}, or return `undefined` when `data` is missing.
|
|
75781
|
+
* @param data - Source buffer
|
|
75782
|
+
*/
|
|
75661
75783
|
static from(data) {
|
|
75662
75784
|
return data ? new _Data(data.byteLength, data) : void 0;
|
|
75663
75785
|
}
|
|
75786
|
+
/** Base58 encoding of the bytes (asserts configured length). */
|
|
75664
75787
|
get base58() {
|
|
75665
75788
|
checkLength(this.bytes, this._length);
|
|
75666
75789
|
return base58.encode(new Uint8Array(this.bytes));
|
|
75667
75790
|
}
|
|
75791
|
+
/** Underlying byte buffer (throws if uninitialized). */
|
|
75668
75792
|
get bytes() {
|
|
75669
75793
|
return assertEx(this._bytes, () => "Data uninitialized");
|
|
75670
75794
|
}
|
|
75795
|
+
/** Lowercase hex encoding of the bytes (asserts configured length). */
|
|
75671
75796
|
get hex() {
|
|
75672
75797
|
checkLength(this.bytes, this._length);
|
|
75673
75798
|
return base16$1.encode(new Uint8Array(this.bytes)).toLowerCase();
|
|
75674
75799
|
}
|
|
75800
|
+
/** Keccak-256 digest of the bytes (asserts configured length). */
|
|
75675
75801
|
get keccak256() {
|
|
75676
75802
|
checkLength(this.bytes, this._length);
|
|
75677
75803
|
return toArrayBuffer(keccak256(new Uint8Array(this.bytes)));
|
|
75678
75804
|
}
|
|
75679
75805
|
};
|
|
75680
75806
|
//#endregion
|
|
75681
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.
|
|
75807
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod_c65b4407ab2a98f6b954f45fe956b15a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/pqc.mjs
|
|
75682
75808
|
init_node$2();
|
|
75683
75809
|
var MlDsa = class {
|
|
75810
|
+
/** Concatenated public key + signature length in bytes. */
|
|
75684
75811
|
static bundleLength = 5261;
|
|
75812
|
+
/** ML-DSA-65 public key length in bytes. */
|
|
75685
75813
|
static publicKeyLength = 1952;
|
|
75814
|
+
/** ML-DSA-65 secret key length in bytes. */
|
|
75686
75815
|
static secretKeyLength = 4032;
|
|
75816
|
+
/** ML-DSA-65 signature length in bytes. */
|
|
75687
75817
|
static signatureLength = 3309;
|
|
75818
|
+
/**
|
|
75819
|
+
* Derives a 20-byte address payload from an ML-DSA public key
|
|
75820
|
+
* (keccak256 of the key, last 20 bytes — same truncation as eth-style).
|
|
75821
|
+
*
|
|
75822
|
+
* @param publicKey - ML-DSA public key bytes
|
|
75823
|
+
* @returns 20-byte address buffer
|
|
75824
|
+
*/
|
|
75688
75825
|
static addressFromPublicKey(publicKey) {
|
|
75689
75826
|
return new Data(publicKey.byteLength, publicKey).keccak256.slice(12);
|
|
75690
75827
|
}
|
|
75828
|
+
/**
|
|
75829
|
+
* Concatenates public key and signature into a single wire bundle.
|
|
75830
|
+
*
|
|
75831
|
+
* @param publicKey - ML-DSA public key bytes
|
|
75832
|
+
* @param signature - ML-DSA signature bytes
|
|
75833
|
+
* @returns Bundle buffer (`publicKey || signature`)
|
|
75834
|
+
*/
|
|
75691
75835
|
static bundle(publicKey, signature) {
|
|
75692
75836
|
const pk = toUint8Array$2(publicKey);
|
|
75693
75837
|
const sig = toUint8Array$2(signature);
|
|
@@ -75696,13 +75840,33 @@ var MlDsa = class {
|
|
|
75696
75840
|
out.set(sig, pk.byteLength);
|
|
75697
75841
|
return out.buffer;
|
|
75698
75842
|
}
|
|
75843
|
+
/**
|
|
75844
|
+
* Generates an ML-DSA-65 key pair, optionally from a 32-byte seed.
|
|
75845
|
+
*
|
|
75846
|
+
* @param seed - Optional 32-byte seed for deterministic keygen
|
|
75847
|
+
* @returns Public and secret key pair
|
|
75848
|
+
*/
|
|
75699
75849
|
static keygen(seed) {
|
|
75700
75850
|
const seedBytes = seed === void 0 ? void 0 : toUint8Array$2(seed, 32);
|
|
75701
75851
|
return ml_dsa65.keygen(seedBytes);
|
|
75702
75852
|
}
|
|
75853
|
+
/**
|
|
75854
|
+
* Signs a message with an ML-DSA-65 secret key.
|
|
75855
|
+
*
|
|
75856
|
+
* @param secretKey - ML-DSA secret key bytes
|
|
75857
|
+
* @param message - Message bytes to sign
|
|
75858
|
+
* @returns Signature buffer
|
|
75859
|
+
*/
|
|
75703
75860
|
static sign(secretKey, message) {
|
|
75704
75861
|
return ml_dsa65.sign(toUint8Array$2(message), toUint8Array$2(secretKey)).buffer;
|
|
75705
75862
|
}
|
|
75863
|
+
/**
|
|
75864
|
+
* Splits a public-key + signature bundle into its components.
|
|
75865
|
+
*
|
|
75866
|
+
* @param bundle - Concatenated bundle of expected {@link MlDsa.bundleLength}
|
|
75867
|
+
* @returns Public key and signature slices
|
|
75868
|
+
* @throws If bundle length is wrong
|
|
75869
|
+
*/
|
|
75706
75870
|
static unbundle(bundle) {
|
|
75707
75871
|
if (bundle.byteLength !== this.bundleLength) throw new Error(`Invalid ML-DSA signature bundle length [${bundle.byteLength} !== ${this.bundleLength}]`);
|
|
75708
75872
|
const bytes = toUint8Array$2(bundle);
|
|
@@ -75711,12 +75875,20 @@ var MlDsa = class {
|
|
|
75711
75875
|
signature: bytes.slice(this.publicKeyLength).buffer
|
|
75712
75876
|
};
|
|
75713
75877
|
}
|
|
75878
|
+
/**
|
|
75879
|
+
* Verifies an ML-DSA-65 signature over a message.
|
|
75880
|
+
*
|
|
75881
|
+
* @param publicKey - ML-DSA public key bytes
|
|
75882
|
+
* @param message - Message that was signed
|
|
75883
|
+
* @param signature - Signature bytes
|
|
75884
|
+
* @returns `true` if the signature is valid
|
|
75885
|
+
*/
|
|
75714
75886
|
static verify(publicKey, message, signature) {
|
|
75715
75887
|
return ml_dsa65.verify(toUint8Array$2(signature), toUint8Array$2(message), toUint8Array$2(publicKey));
|
|
75716
75888
|
}
|
|
75717
75889
|
};
|
|
75718
75890
|
//#endregion
|
|
75719
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.
|
|
75891
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod_c65b4407ab2a98f6b954f45fe956b15a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/quant-account.mjs
|
|
75720
75892
|
init_node$2();
|
|
75721
75893
|
init_async_mutex();
|
|
75722
75894
|
var __defProp$10 = Object.defineProperty;
|
|
@@ -75744,7 +75916,7 @@ function buffersEqual(a, b) {
|
|
|
75744
75916
|
registerVerifier("ml-dsa-65", async (address, hash, signatureBundle) => {
|
|
75745
75917
|
const { publicKey, signature } = MlDsa.unbundle(signatureBundle);
|
|
75746
75918
|
if (!buffersEqual(addressTo20Bytes(address), MlDsa.addressFromPublicKey(publicKey))) return false;
|
|
75747
|
-
return
|
|
75919
|
+
return MlDsa.verify(publicKey, hash, signature);
|
|
75748
75920
|
});
|
|
75749
75921
|
var QuantAccount = class {
|
|
75750
75922
|
_address;
|
|
@@ -75753,6 +75925,7 @@ var QuantAccount = class {
|
|
|
75753
75925
|
_previousHash;
|
|
75754
75926
|
_publicKey;
|
|
75755
75927
|
_secretKey;
|
|
75928
|
+
/** Signing algorithm for this account (`ml-dsa-65`). */
|
|
75756
75929
|
algorithm = "ml-dsa-65";
|
|
75757
75930
|
constructor(key, secretKey, publicKey) {
|
|
75758
75931
|
assertEx(key === QuantAccount._protectedConstructorKey, () => "Do not call this protected constructor");
|
|
@@ -75762,39 +75935,81 @@ var QuantAccount = class {
|
|
|
75762
75935
|
const hrp = assertEx(hrpForAlgorithm("ml-dsa-65"), () => "No HRP registered for algorithm [ml-dsa-65]");
|
|
75763
75936
|
this._address = encodeQuantAddress(hrp, this._addressBytes);
|
|
75764
75937
|
}
|
|
75938
|
+
/**
|
|
75939
|
+
* Creates a quant account from an optional 32-byte seed or random keygen.
|
|
75940
|
+
*
|
|
75941
|
+
* Deduplicates by address so only one live instance exists per address, then
|
|
75942
|
+
* loads any configured previous-hash state.
|
|
75943
|
+
*
|
|
75944
|
+
* @param opts - Optional privateKey seed and previousHash
|
|
75945
|
+
* @returns A unique quant account instance for the derived address
|
|
75946
|
+
*/
|
|
75765
75947
|
static async create(opts) {
|
|
75766
75948
|
let seed;
|
|
75767
75949
|
if (opts && isPrivateKeyInitializationConfig(opts)) seed = toUint8Array$2(opts.privateKey, 32).buffer;
|
|
75768
75950
|
const keyPair = MlDsa.keygen(seed);
|
|
75769
75951
|
return await new QuantAccount(this._protectedConstructorKey, keyPair.secretKey, keyPair.publicKey).verifyUniqueAddress().loadPreviousHash(opts?.previousHash);
|
|
75770
75952
|
}
|
|
75953
|
+
/**
|
|
75954
|
+
* Creates a quant account from a 32-byte ML-DSA seed (private key material).
|
|
75955
|
+
*
|
|
75956
|
+
* @param key - Seed as buffer, bigint, or hex string
|
|
75957
|
+
* @returns Quant account instance for the derived address
|
|
75958
|
+
*/
|
|
75771
75959
|
static async fromPrivateKey(key) {
|
|
75772
75960
|
const privateKey = toUint8Array$2(key, 32).buffer;
|
|
75773
75961
|
return await this.create({ privateKey });
|
|
75774
75962
|
}
|
|
75963
|
+
/**
|
|
75964
|
+
* Returns whether the string is a bech32m quant address for ML-DSA-65.
|
|
75965
|
+
*
|
|
75966
|
+
* @param address - Candidate address string
|
|
75967
|
+
* @returns `true` if decode succeeds and HRP matches `ml-dsa-65`
|
|
75968
|
+
*/
|
|
75775
75969
|
static isAddress(address) {
|
|
75776
75970
|
return tryDecodeQuantAddress(address)?.hrp === hrpForAlgorithm("ml-dsa-65");
|
|
75777
75971
|
}
|
|
75972
|
+
/**
|
|
75973
|
+
* Creates a quant account with a random ML-DSA-65 key pair.
|
|
75974
|
+
*
|
|
75975
|
+
* @returns Fresh random quant account instance
|
|
75976
|
+
*/
|
|
75778
75977
|
static async random() {
|
|
75779
75978
|
return await this.create();
|
|
75780
75979
|
}
|
|
75980
|
+
/** Bech32m quant address (algorithm HRP + 20-byte payload). */
|
|
75781
75981
|
get address() {
|
|
75782
75982
|
return this._address;
|
|
75783
75983
|
}
|
|
75984
|
+
/** Raw 20-byte address payload bytes. */
|
|
75784
75985
|
get addressBytes() {
|
|
75785
75986
|
return this._addressBytes;
|
|
75786
75987
|
}
|
|
75988
|
+
/** Previous-hash anti-replay value as lowercase hex, or `undefined` if unset. */
|
|
75787
75989
|
get previousHash() {
|
|
75788
75990
|
return this.previousHashBytes ? toHex$1(this.previousHashBytes, { prefix: false }).toLowerCase() : void 0;
|
|
75789
75991
|
}
|
|
75992
|
+
/** Not supported — previous hash is advanced only via chained `sign`. */
|
|
75790
75993
|
set previousHash(_value) {}
|
|
75994
|
+
/** Previous-hash anti-replay value as raw bytes, or `undefined` if unset. */
|
|
75791
75995
|
get previousHashBytes() {
|
|
75792
75996
|
return this._previousHash;
|
|
75793
75997
|
}
|
|
75998
|
+
/** Not supported — previous hash is advanced only via chained `sign`. */
|
|
75794
75999
|
set previousHashBytes(_value) {}
|
|
76000
|
+
/** ML-DSA-65 public key bytes. */
|
|
75795
76001
|
get publicKey() {
|
|
75796
76002
|
return this._publicKey.buffer;
|
|
75797
76003
|
}
|
|
76004
|
+
/**
|
|
76005
|
+
* Loads the previous-hash chain state from the given value or the shared store.
|
|
76006
|
+
*
|
|
76007
|
+
* When `previousHash` is provided it is written through to the store so an
|
|
76008
|
+
* empty store cannot later clobber the explicit value at sign time.
|
|
76009
|
+
*
|
|
76010
|
+
* @param previousHash - Optional explicit previous hash (buffer or hex)
|
|
76011
|
+
* @returns This instance with chain state applied
|
|
76012
|
+
*/
|
|
75798
76013
|
async loadPreviousHash(previousHash) {
|
|
75799
76014
|
return await this._signingMutex.runExclusive(async () => {
|
|
75800
76015
|
if (isDefined(previousHash)) {
|
|
@@ -75838,18 +76053,39 @@ var QuantAccount = class {
|
|
|
75838
76053
|
return [bundle, currentPreviousHash];
|
|
75839
76054
|
});
|
|
75840
76055
|
}
|
|
76056
|
+
/**
|
|
76057
|
+
* JWT signing is not implemented for ML-DSA-65 (no standard IANA JOSE algorithm yet).
|
|
76058
|
+
*
|
|
76059
|
+
* @param _options - Sign-JWT options (unused)
|
|
76060
|
+
* @returns Never resolves successfully
|
|
76061
|
+
* @throws Always — ML-DSA JWT is unsupported
|
|
76062
|
+
*/
|
|
75841
76063
|
async signJwt(_options) {
|
|
75842
|
-
|
|
76064
|
+
throw new Error("JWT signing is not implemented for ml-dsa-65 (no standard IANA JOSE alg yet)");
|
|
75843
76065
|
}
|
|
76066
|
+
/**
|
|
76067
|
+
* Verifies an ML-DSA-65 signature or public-key + signature bundle.
|
|
76068
|
+
*
|
|
76069
|
+
* Bundled signatures must derive to this account's address before verify.
|
|
76070
|
+
*
|
|
76071
|
+
* @param msg - Message that was signed
|
|
76072
|
+
* @param signature - Raw signature or ML-DSA bundle
|
|
76073
|
+
* @returns `true` if verification succeeds
|
|
76074
|
+
*/
|
|
75844
76075
|
async verify(msg, signature) {
|
|
75845
76076
|
if (signature.byteLength === MlDsa.bundleLength) {
|
|
75846
76077
|
const { publicKey, signature: sig } = MlDsa.unbundle(signature);
|
|
75847
76078
|
if (!buffersEqual(MlDsa.addressFromPublicKey(publicKey), this._addressBytes)) return false;
|
|
75848
|
-
return
|
|
76079
|
+
return MlDsa.verify(publicKey, msg, sig);
|
|
75849
76080
|
}
|
|
75850
|
-
if (signature.byteLength === MlDsa.signatureLength) return
|
|
75851
|
-
return
|
|
76081
|
+
if (signature.byteLength === MlDsa.signatureLength) return MlDsa.verify(this._publicKey.buffer, msg, signature);
|
|
76082
|
+
return false;
|
|
75852
76083
|
}
|
|
76084
|
+
/**
|
|
76085
|
+
* Ensures only one live quant account instance exists per address.
|
|
76086
|
+
*
|
|
76087
|
+
* @returns This instance if first for the address, otherwise the cached instance
|
|
76088
|
+
*/
|
|
75853
76089
|
verifyUniqueAddress() {
|
|
75854
76090
|
const address = this.address;
|
|
75855
76091
|
const existing = QuantAccount._addressMap[address]?.deref();
|
|
@@ -75860,12 +76096,13 @@ var QuantAccount = class {
|
|
|
75860
76096
|
return existing;
|
|
75861
76097
|
}
|
|
75862
76098
|
};
|
|
76099
|
+
/** Shared store for previous-hash anti-replay values, keyed by address. */
|
|
75863
76100
|
__publicField$9(QuantAccount, "previousHashStore");
|
|
75864
76101
|
__publicField$9(QuantAccount, "_addressMap", {});
|
|
75865
76102
|
__publicField$9(QuantAccount, "_protectedConstructorKey", /* @__PURE__ */ Symbol());
|
|
75866
76103
|
QuantAccount = __decorateClass$9([staticImplements()], QuantAccount);
|
|
75867
76104
|
//#endregion
|
|
75868
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.
|
|
76105
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod_c65b4407ab2a98f6b954f45fe956b15a/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/quant-wallet.mjs
|
|
75869
76106
|
init_lib_esm();
|
|
75870
76107
|
init_node$2();
|
|
75871
76108
|
var __defProp$9 = Object.defineProperty;
|
|
@@ -75901,11 +76138,17 @@ function bip85EntropyFromNode(node) {
|
|
|
75901
76138
|
return getBytes(computeHmac("sha512", toUtf8Bytes(BIP85_HMAC_KEY), getBytes(node.privateKey))).slice(0, 32);
|
|
75902
76139
|
}
|
|
75903
76140
|
var QuantHDWallet = class {
|
|
76141
|
+
/** Signing algorithm for derived accounts (`ml-dsa-65`). */
|
|
75904
76142
|
algorithm = "ml-dsa-65";
|
|
75905
76143
|
_account;
|
|
75906
76144
|
_master;
|
|
75907
76145
|
_seed;
|
|
75908
76146
|
node;
|
|
76147
|
+
/**
|
|
76148
|
+
* Not implemented for ML-DSA-65 HD wallets.
|
|
76149
|
+
*
|
|
76150
|
+
* @throws Always
|
|
76151
|
+
*/
|
|
75909
76152
|
neuter = () => {
|
|
75910
76153
|
throw new Error("neuter() is not implemented for ml-dsa-65 HD wallets");
|
|
75911
76154
|
};
|
|
@@ -75916,6 +76159,13 @@ var QuantHDWallet = class {
|
|
|
75916
76159
|
this._seed = seed;
|
|
75917
76160
|
this._account = account;
|
|
75918
76161
|
}
|
|
76162
|
+
/**
|
|
76163
|
+
* Creates a quant HD wallet from phrase or mnemonic config (not private key).
|
|
76164
|
+
*
|
|
76165
|
+
* @param opts - Phrase or mnemonic initialization config
|
|
76166
|
+
* @returns Quant HD wallet instance
|
|
76167
|
+
* @throws If config is missing, or is a private-key config
|
|
76168
|
+
*/
|
|
75919
76169
|
static async create(opts) {
|
|
75920
76170
|
if (isPhraseInitializationConfig(opts)) return await this.fromPhrase(opts.phrase);
|
|
75921
76171
|
if (isMnemonicInitializationConfig(opts)) return await this.fromPhrase(opts.mnemonic, opts.path);
|
|
@@ -75930,77 +76180,148 @@ var QuantHDWallet = class {
|
|
|
75930
76180
|
});
|
|
75931
76181
|
return new QuantHDWallet(this._protectedConstructorKey, node, master, seed, account).verifyUniqueWallet();
|
|
75932
76182
|
}
|
|
76183
|
+
/**
|
|
76184
|
+
* Creates a wallet from an xprv/xpub extended key.
|
|
76185
|
+
*
|
|
76186
|
+
* Root (depth 0) keys retain a master node so absolute BIP-85 paths can resolve.
|
|
76187
|
+
*
|
|
76188
|
+
* @param key - BIP-32 extended key
|
|
76189
|
+
* @returns Quant HD wallet for the node
|
|
76190
|
+
*/
|
|
75933
76191
|
static async fromExtendedKey(key) {
|
|
75934
76192
|
const node = HDNodeWallet.fromExtendedKey(key);
|
|
75935
76193
|
const master = node.depth === 0 ? node : void 0;
|
|
75936
76194
|
return await this.createFromNode(node, master);
|
|
75937
76195
|
}
|
|
76196
|
+
/**
|
|
76197
|
+
* Creates a wallet from a BIP-39 mnemonic at the given path.
|
|
76198
|
+
*
|
|
76199
|
+
* @param mnemonic - ethers `Mnemonic` instance
|
|
76200
|
+
* @param path - BIP-32 path (defaults to ethers `defaultPath`)
|
|
76201
|
+
* @returns Quant HD wallet with BIP-85-derived ML-DSA identity
|
|
76202
|
+
*/
|
|
75938
76203
|
static async fromMnemonic(mnemonic, path = defaultPath) {
|
|
75939
76204
|
const master = HDNodeWallet.fromMnemonic(mnemonic, "m");
|
|
75940
76205
|
const node = path === "m" || path === "m/" ? master : master.derivePath(path.startsWith("m/") ? path.slice(2) : path);
|
|
75941
76206
|
return await this.createFromNode(node, master);
|
|
75942
76207
|
}
|
|
76208
|
+
/**
|
|
76209
|
+
* Creates a wallet from a BIP-39 mnemonic phrase string.
|
|
76210
|
+
*
|
|
76211
|
+
* @param phrase - Space-separated mnemonic words
|
|
76212
|
+
* @param path - BIP-32 path (defaults to ethers `defaultPath`)
|
|
76213
|
+
* @returns Quant HD wallet instance
|
|
76214
|
+
*/
|
|
75943
76215
|
static async fromPhrase(phrase, path = defaultPath) {
|
|
75944
76216
|
return await this.fromMnemonic(Mnemonic.fromPhrase(phrase), path);
|
|
75945
76217
|
}
|
|
76218
|
+
/**
|
|
76219
|
+
* Not supported on quant HD wallets — use seed/phrase/mnemonic/extended-key factories.
|
|
76220
|
+
*
|
|
76221
|
+
* @param _key - Unused private key argument
|
|
76222
|
+
* @throws Always
|
|
76223
|
+
*/
|
|
75946
76224
|
static async fromPrivateKey(_key) {
|
|
75947
|
-
|
|
76225
|
+
throw new Error("fromPrivateKey is not supported on QuantHDWallet — use fromSeed, fromPhrase, fromMnemonic, or fromExtendedKey");
|
|
75948
76226
|
}
|
|
76227
|
+
/**
|
|
76228
|
+
* Creates a wallet from a BIP-32 master seed.
|
|
76229
|
+
*
|
|
76230
|
+
* @param seed - Seed bytes or hex string
|
|
76231
|
+
* @returns Quant HD wallet at the master node
|
|
76232
|
+
*/
|
|
75949
76233
|
static async fromSeed(seed) {
|
|
75950
76234
|
const master = HDNodeWallet.fromSeed(toUint8Array$2(seed));
|
|
75951
76235
|
return await this.createFromNode(master, master);
|
|
75952
76236
|
}
|
|
76237
|
+
/**
|
|
76238
|
+
* Generates a BIP-39 mnemonic phrase.
|
|
76239
|
+
*
|
|
76240
|
+
* @param wordlist - BIP-39 wordlist (default: English)
|
|
76241
|
+
* @param strength - Entropy bits (default 256 → 24 words)
|
|
76242
|
+
* @returns Mnemonic phrase string
|
|
76243
|
+
*/
|
|
75953
76244
|
static generateMnemonic(wordlist$9 = wordlist, strength = 256) {
|
|
75954
76245
|
return generateMnemonic(wordlist$9, strength);
|
|
75955
76246
|
}
|
|
76247
|
+
/**
|
|
76248
|
+
* Creates a quant HD wallet from a newly generated random mnemonic.
|
|
76249
|
+
*
|
|
76250
|
+
* @returns Fresh random quant HD wallet
|
|
76251
|
+
*/
|
|
75956
76252
|
static async random() {
|
|
75957
76253
|
return await this.fromPhrase(this.generateMnemonic());
|
|
75958
76254
|
}
|
|
76255
|
+
/** Bech32m quant address of the inner ML-DSA account. */
|
|
75959
76256
|
get address() {
|
|
75960
76257
|
return this._account.address;
|
|
75961
76258
|
}
|
|
76259
|
+
/** Raw 20-byte address payload of the inner account. */
|
|
75962
76260
|
get addressBytes() {
|
|
75963
76261
|
return this._account.addressBytes;
|
|
75964
76262
|
}
|
|
76263
|
+
/** BIP-32 chain code of this HD node. */
|
|
75965
76264
|
get chainCode() {
|
|
75966
76265
|
return this.node.chainCode;
|
|
75967
76266
|
}
|
|
76267
|
+
/** BIP-32 depth of this HD node. */
|
|
75968
76268
|
get depth() {
|
|
75969
76269
|
return this.node.depth;
|
|
75970
76270
|
}
|
|
76271
|
+
/** BIP-32 extended key string for this HD node. */
|
|
75971
76272
|
get extendedKey() {
|
|
75972
76273
|
return this.node.extendedKey;
|
|
75973
76274
|
}
|
|
76275
|
+
/** BIP-32 fingerprint of this HD node. */
|
|
75974
76276
|
get fingerprint() {
|
|
75975
76277
|
return this.node.fingerprint;
|
|
75976
76278
|
}
|
|
76279
|
+
/** BIP-32 child index of this HD node. */
|
|
75977
76280
|
get index() {
|
|
75978
76281
|
return this.node.index;
|
|
75979
76282
|
}
|
|
76283
|
+
/** BIP-39 mnemonic attached to this node, if any. */
|
|
75980
76284
|
get mnemonic() {
|
|
75981
76285
|
return this.node.mnemonic;
|
|
75982
76286
|
}
|
|
76287
|
+
/** BIP-32 parent fingerprint. */
|
|
75983
76288
|
get parentFingerprint() {
|
|
75984
76289
|
return this.node.parentFingerprint;
|
|
75985
76290
|
}
|
|
76291
|
+
/** Absolute BIP-32 path of this node, or `null`. */
|
|
75986
76292
|
get path() {
|
|
75987
76293
|
return this.node.path;
|
|
75988
76294
|
}
|
|
76295
|
+
/** Previous-hash anti-replay value from the inner account. */
|
|
75989
76296
|
get previousHash() {
|
|
75990
76297
|
return this._account.previousHash;
|
|
75991
76298
|
}
|
|
76299
|
+
/** Not supported — previous hash is advanced only via chained `sign`. */
|
|
75992
76300
|
set previousHash(_value) {}
|
|
76301
|
+
/** Previous-hash anti-replay bytes from the inner account. */
|
|
75993
76302
|
get previousHashBytes() {
|
|
75994
76303
|
return this._account.previousHashBytes;
|
|
75995
76304
|
}
|
|
76305
|
+
/** Not supported — previous hash is advanced only via chained `sign`. */
|
|
75996
76306
|
set previousHashBytes(_value) {}
|
|
76307
|
+
/** BIP-85-derived 32-byte ML-DSA seed as lowercase hex (no `0x`). */
|
|
75997
76308
|
get privateKey() {
|
|
75998
76309
|
return hexFromArrayBuffer(this._seed.buffer, { prefix: false }).toLowerCase();
|
|
75999
76310
|
}
|
|
76311
|
+
/** ML-DSA-65 public key as lowercase hex (no `0x`). */
|
|
76000
76312
|
get publicKey() {
|
|
76001
76313
|
const bytes = this._account.publicKey;
|
|
76002
76314
|
return hexFromArrayBuffer(bytes, { prefix: false }).toLowerCase();
|
|
76003
76315
|
}
|
|
76316
|
+
/**
|
|
76317
|
+
* Derives a child quant wallet at a relative, absolute, or BIP-85 path.
|
|
76318
|
+
*
|
|
76319
|
+
* Absolute BIP-85 paths require a master node (from mnemonic/seed/root xkey).
|
|
76320
|
+
*
|
|
76321
|
+
* @param path - Relative path, absolute path, or BIP-85 absolute path
|
|
76322
|
+
* @returns Child quant HD wallet
|
|
76323
|
+
* @throws If absolute BIP-85 derivation lacks a master, or path is invalid
|
|
76324
|
+
*/
|
|
76004
76325
|
async derivePath(path) {
|
|
76005
76326
|
if (path.startsWith("m/")) {
|
|
76006
76327
|
if (isBip85AbsolutePath(path)) {
|
|
@@ -76021,12 +76342,30 @@ var QuantHDWallet = class {
|
|
|
76021
76342
|
async sign(hash, optionsOrPreviousHash) {
|
|
76022
76343
|
return await this._account.sign(hash, asSignOptions(optionsOrPreviousHash));
|
|
76023
76344
|
}
|
|
76345
|
+
/**
|
|
76346
|
+
* Delegates JWT signing to the inner account (currently unsupported for ML-DSA).
|
|
76347
|
+
*
|
|
76348
|
+
* @param options - Sign-JWT options
|
|
76349
|
+
* @returns JWT result if implemented
|
|
76350
|
+
*/
|
|
76024
76351
|
async signJwt(options) {
|
|
76025
76352
|
return await this._account.signJwt(options);
|
|
76026
76353
|
}
|
|
76354
|
+
/**
|
|
76355
|
+
* Verifies a signature with the inner quant account.
|
|
76356
|
+
*
|
|
76357
|
+
* @param msg - Message that was signed
|
|
76358
|
+
* @param signature - Raw signature or ML-DSA bundle
|
|
76359
|
+
* @returns `true` if verification succeeds
|
|
76360
|
+
*/
|
|
76027
76361
|
async verify(msg, signature) {
|
|
76028
76362
|
return await this._account.verify(msg, signature);
|
|
76029
76363
|
}
|
|
76364
|
+
/**
|
|
76365
|
+
* Ensures only one live quant HD wallet instance exists per address.
|
|
76366
|
+
*
|
|
76367
|
+
* @returns This instance if first for the address, otherwise the cached instance
|
|
76368
|
+
*/
|
|
76030
76369
|
verifyUniqueWallet() {
|
|
76031
76370
|
const address = this.address;
|
|
76032
76371
|
const existing = QuantHDWallet._walletAddressMap[address]?.deref();
|
|
@@ -78299,7 +78638,7 @@ var init_zod = __esmMin((() => {
|
|
|
78299
78638
|
zod_default = external_exports;
|
|
78300
78639
|
}));
|
|
78301
78640
|
//#endregion
|
|
78302
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol@4.5.2_@ariestools+sdk@8.1.
|
|
78641
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4._2c6d3baddd373b419eacaa9bc7767357/node_modules/@xyo-network/xl1-protocol/dist/neutral/protocol-model.mjs
|
|
78303
78642
|
function isValidStep(step) {
|
|
78304
78643
|
if (typeof step === "number" && Number.isSafeInteger(step)) return step >= 0 && step < StepSizes.length;
|
|
78305
78644
|
return false;
|
|
@@ -79020,7 +79359,7 @@ srcConfirmation: (/* @__PURE__ */ optional$2(HexZod)).check(describe$1("Source c
|
|
|
79020
79359
|
AsObjectFactory.create(isTransactionRejection);
|
|
79021
79360
|
}));
|
|
79022
79361
|
//#endregion
|
|
79023
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol@4.5.2_@ariestools+sdk@8.1.
|
|
79362
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4._2c6d3baddd373b419eacaa9bc7767357/node_modules/@xyo-network/xl1-protocol/dist/neutral/protocol-lib.mjs
|
|
79024
79363
|
function derivedReceiveAddress(address, scope) {
|
|
79025
79364
|
return toAddress(keccak256(new TextEncoder().encode(isDefined(scope) ? `${scope}|${address}` : address)).slice(-40), { prefix: false });
|
|
79026
79365
|
}
|
|
@@ -79214,7 +79553,7 @@ var init_protocol_lib = __esmMin((() => {
|
|
|
79214
79553
|
XyoViewerMoniker = "XyoViewer";
|
|
79215
79554
|
}));
|
|
79216
79555
|
//#endregion
|
|
79217
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol@4.5.2_@ariestools+sdk@8.1.
|
|
79556
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4._2c6d3baddd373b419eacaa9bc7767357/node_modules/@xyo-network/xl1-protocol/dist/neutral/network-model.mjs
|
|
79218
79557
|
function createChainContractManifest(config) {
|
|
79219
79558
|
return ChainContractManifestZod.parse({
|
|
79220
79559
|
...config,
|
|
@@ -85764,7 +86103,7 @@ var init_validation = __esmMin((() => {
|
|
|
85764
86103
|
};
|
|
85765
86104
|
}));
|
|
85766
86105
|
//#endregion
|
|
85767
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol@4.5.2_@ariestools+sdk@8.1.
|
|
86106
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4._2c6d3baddd373b419eacaa9bc7767357/node_modules/@xyo-network/xl1-protocol/dist/neutral/index.mjs
|
|
85768
86107
|
var init_neutral$2 = __esmMin((() => {
|
|
85769
86108
|
init_network_model();
|
|
85770
86109
|
init_protocol_lib();
|
|
@@ -85772,7 +86111,7 @@ var init_neutral$2 = __esmMin((() => {
|
|
|
85772
86111
|
init_validation();
|
|
85773
86112
|
}));
|
|
85774
86113
|
//#endregion
|
|
85775
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.
|
|
86114
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@m_5b0e6142d161eddba81ca750471362ff/node_modules/@xyo-network/xl1-sdk/dist/neutral/driver-memory.mjs
|
|
85776
86115
|
var LruCacheMap, MemoryMap;
|
|
85777
86116
|
var init_driver_memory = __esmMin((() => {
|
|
85778
86117
|
init_index_min();
|
|
@@ -238453,7 +238792,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
238453
238792
|
require_util();
|
|
238454
238793
|
}));
|
|
238455
238794
|
//#endregion
|
|
238456
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.
|
|
238795
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@m_5b0e6142d161eddba81ca750471362ff/node_modules/@xyo-network/xl1-sdk/dist/node/protocol-sdk.mjs
|
|
238457
238796
|
function blockRangeSteps(range, steps) {
|
|
238458
238797
|
const result = [];
|
|
238459
238798
|
for (const step of steps) {
|
|
@@ -263400,7 +263739,7 @@ var init_v2 = __esmMin((() => {
|
|
|
263400
263739
|
init_utils$3();
|
|
263401
263740
|
}));
|
|
263402
263741
|
//#endregion
|
|
263403
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.
|
|
263742
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@m_5b0e6142d161eddba81ca750471362ff/node_modules/@xyo-network/xl1-sdk/dist/neutral/rpc.mjs
|
|
263404
263743
|
function browserWindow() {
|
|
263405
263744
|
return globalThis;
|
|
263406
263745
|
}
|
|
@@ -265837,7 +266176,7 @@ var init_rpc = __esmMin((() => {
|
|
|
265837
266176
|
};
|
|
265838
266177
|
}));
|
|
265839
266178
|
//#endregion
|
|
265840
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.
|
|
266179
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@m_5b0e6142d161eddba81ca750471362ff/node_modules/@xyo-network/xl1-sdk/dist/neutral/rest-block-viewer.mjs
|
|
265841
266180
|
var __defProp$6, __getOwnPropDesc$5, __defNormalProp$5, __decorateClass$5, __publicField$5, REST_SUMMARY_CACHE_MAX_BY_STEP, MIN_HEAD_POLL_INTERVAL_MS, CURRENT_BLOCK_CACHE_TTL_MS, CURRENT_BLOCK_CACHE_KEY, BLOCKS_BY_NUMBER_STEP_ACCEL_MIN_LIMIT, PayloadFileZod, RestBlockViewer, RestChainContractViewer, MIN_HEAD_POLL_INTERVAL_MS2, RestChainStateViewer, RestFinalizationViewer, MAX_STEP_BY_FAMILY, RestIndexViewer;
|
|
265842
266181
|
var init_rest_block_viewer = __esmMin((() => {
|
|
265843
266182
|
init_network_model();
|
|
@@ -286136,7 +286475,7 @@ var init_neutral$1 = __esmMin((() => {
|
|
|
286136
286475
|
};
|
|
286137
286476
|
}));
|
|
286138
286477
|
//#endregion
|
|
286139
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.
|
|
286478
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@m_5b0e6142d161eddba81ca750471362ff/node_modules/@xyo-network/xl1-sdk/dist/neutral/providers.mjs
|
|
286140
286479
|
function estimateBlockNumberFromHead$1(headNumber, headTimestampSec, targetDate = DEFAULT_ESTIMATE_BLOCK_DATE$1, avgBlockTimeSec = 12) {
|
|
286141
286480
|
const targetTimestampSec = Math.floor(targetDate.getTime() / 1e3);
|
|
286142
286481
|
if (targetTimestampSec >= headTimestampSec) return headNumber;
|
|
@@ -288308,7 +288647,7 @@ var init_providers = __esmMin((() => {
|
|
|
288308
288647
|
warnedFinalizedAliases = /* @__PURE__ */ new Set();
|
|
288309
288648
|
}));
|
|
288310
288649
|
//#endregion
|
|
288311
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.
|
|
288650
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@m_5b0e6142d161eddba81ca750471362ff/node_modules/@xyo-network/xl1-sdk/dist/neutral/gateway.mjs
|
|
288312
288651
|
var __defProp$3, __getOwnPropDesc$3, __defNormalProp$3, __decorateClass$3, __publicField$3, XyoSignerWrapper$1;
|
|
288313
288652
|
var init_gateway = __esmMin((() => {
|
|
288314
288653
|
init_protocol_lib();
|
|
@@ -288359,7 +288698,7 @@ var init_gateway = __esmMin((() => {
|
|
|
288359
288698
|
XyoSignerWrapper$1 = __decorateClass$3([creatableProvider()], XyoSignerWrapper$1);
|
|
288360
288699
|
}));
|
|
288361
288700
|
//#endregion
|
|
288362
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.
|
|
288701
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@m_5b0e6142d161eddba81ca750471362ff/node_modules/@xyo-network/xl1-sdk/dist/neutral/wrappers.mjs
|
|
288363
288702
|
var init_wrappers = __esmMin((() => {
|
|
288364
288703
|
init_node$2();
|
|
288365
288704
|
init_protocol_lib();
|
|
@@ -288368,7 +288707,7 @@ var init_wrappers = __esmMin((() => {
|
|
|
288368
288707
|
init_protocol_sdk();
|
|
288369
288708
|
}));
|
|
288370
288709
|
//#endregion
|
|
288371
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.
|
|
288710
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@m_5b0e6142d161eddba81ca750471362ff/node_modules/@xyo-network/xl1-sdk/dist/neutral/index.mjs
|
|
288372
288711
|
var init_neutral = __esmMin((() => {
|
|
288373
288712
|
init_neutral$2();
|
|
288374
288713
|
init_driver_memory();
|
|
@@ -305299,7 +305638,7 @@ var require_api = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
305299
305638
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
305300
305639
|
}));
|
|
305301
305640
|
//#endregion
|
|
305302
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.
|
|
305641
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@m_5b0e6142d161eddba81ca750471362ff/node_modules/@xyo-network/xl1-sdk/dist/node/gateway.mjs
|
|
305303
305642
|
var import_src = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
305304
305643
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
305305
305644
|
if (k2 === void 0) k2 = k;
|
|
@@ -329259,7 +329598,7 @@ var init_sha = __esmMin((() => {
|
|
|
329259
329598
|
init_checksum();
|
|
329260
329599
|
}));
|
|
329261
329600
|
//#endregion
|
|
329262
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.
|
|
329601
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-sdk@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@4.4.3__@m_5b0e6142d161eddba81ca750471362ff/node_modules/@xyo-network/xl1-sdk/dist/node/providers.mjs
|
|
329263
329602
|
var import_dist_cjs$3 = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
329264
329603
|
const { getFlexibleChecksumsPlugin, NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, resolveFlexibleChecksumsConfig } = (init_flexible_checksums(), __toCommonJS(flexible_checksums_exports));
|
|
329265
329604
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = (init_client(), __toCommonJS(client_exports));
|
|
@@ -344139,7 +344478,7 @@ __publicField$1(SimpleXyoViewer, "monikers", [XyoViewerMoniker]);
|
|
|
344139
344478
|
__publicField$1(SimpleXyoViewer, "surface", "node");
|
|
344140
344479
|
SimpleXyoViewer = __decorateClass$1([creatableProvider()], SimpleXyoViewer);
|
|
344141
344480
|
//#endregion
|
|
344142
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-s3-providers@4.5.2_@ariestools+sdk@8.1.
|
|
344481
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-s3-providers@4.5.2_@ariestools+sdk@8.1.2_@opentelemetry+api@1.9.1_zod@_6889cbd479822fab78872b23026ad846/node_modules/@xyo-network/xl1-s3-providers/dist/node/index.mjs
|
|
344143
344482
|
init_node$2();
|
|
344144
344483
|
init_protocol_sdk();
|
|
344145
344484
|
init_network_model();
|
|
@@ -359842,18 +360181,18 @@ var OFFICIAL_AUTHOR_NAMES = [
|
|
|
359842
360181
|
"github",
|
|
359843
360182
|
"microsoft"
|
|
359844
360183
|
];
|
|
359845
|
-
function safeStat(
|
|
360184
|
+
function safeStat(path38) {
|
|
359846
360185
|
try {
|
|
359847
|
-
return statSync(
|
|
360186
|
+
return statSync(path38);
|
|
359848
360187
|
} catch {
|
|
359849
360188
|
return;
|
|
359850
360189
|
}
|
|
359851
360190
|
}
|
|
359852
|
-
function isFile(
|
|
359853
|
-
return safeStat(
|
|
360191
|
+
function isFile(path38) {
|
|
360192
|
+
return safeStat(path38)?.isFile() === true;
|
|
359854
360193
|
}
|
|
359855
|
-
function toDisplayPath(
|
|
359856
|
-
return
|
|
360194
|
+
function toDisplayPath(path38) {
|
|
360195
|
+
return path38.split(PATH.sep).join("/");
|
|
359857
360196
|
}
|
|
359858
360197
|
function addMissingIssue(pair, missing, issues) {
|
|
359859
360198
|
const missingLabel = missing === "claude" ? "Claude Code" : "Codex";
|
|
@@ -359890,10 +360229,10 @@ function compareFilePair(pair, issues, code = `${pair.scope}.content_mismatch`)
|
|
|
359890
360229
|
function joinRel(base, rel) {
|
|
359891
360230
|
return PATH.join(base, ...rel.split("/"));
|
|
359892
360231
|
}
|
|
359893
|
-
function skipProjectPath(
|
|
360232
|
+
function skipProjectPath(path38, skipped, reason) {
|
|
359894
360233
|
skipped.push({
|
|
359895
360234
|
scope: "project",
|
|
359896
|
-
path:
|
|
360235
|
+
path: path38,
|
|
359897
360236
|
reason
|
|
359898
360237
|
});
|
|
359899
360238
|
}
|
|
@@ -359961,9 +360300,9 @@ function findFiles(root, predicate) {
|
|
|
359961
360300
|
}
|
|
359962
360301
|
return result;
|
|
359963
360302
|
}
|
|
359964
|
-
function readJsonFile(
|
|
360303
|
+
function readJsonFile(path38) {
|
|
359965
360304
|
try {
|
|
359966
|
-
return JSON.parse(readFileSync(
|
|
360305
|
+
return JSON.parse(readFileSync(path38, "utf8"));
|
|
359967
360306
|
} catch {
|
|
359968
360307
|
return;
|
|
359969
360308
|
}
|
|
@@ -359972,8 +360311,8 @@ function manifestAuthorName(manifest) {
|
|
|
359972
360311
|
if (typeof manifest?.author === "string") return manifest.author;
|
|
359973
360312
|
return manifest?.author?.name;
|
|
359974
360313
|
}
|
|
359975
|
-
function isOfficialPath(
|
|
359976
|
-
const displayPath = toDisplayPath(
|
|
360314
|
+
function isOfficialPath(path38) {
|
|
360315
|
+
const displayPath = toDisplayPath(path38);
|
|
359977
360316
|
return displayPath.includes("/.claude/plugins/marketplaces/claude-plugins-official/") || displayPath.includes("/.codex/plugins/cache/openai-") || displayPath.includes("/.codex/skills/.system/");
|
|
359978
360317
|
}
|
|
359979
360318
|
function isOfficialManifest(manifest) {
|
|
@@ -361146,15 +361485,21 @@ function createDaemonKit(config) {
|
|
|
361146
361485
|
for (const filePath of [paths.statePath(), paths.pidPath()]) if (existsSync(filePath)) unlinkSync(filePath);
|
|
361147
361486
|
}
|
|
361148
361487
|
function resolveServerBin() {
|
|
361149
|
-
|
|
361150
|
-
|
|
361151
|
-
|
|
361152
|
-
|
|
361153
|
-
|
|
361154
|
-
|
|
361155
|
-
|
|
361156
|
-
|
|
361157
|
-
|
|
361488
|
+
if (config.bin.embeddedRelPath !== void 0 && config.bin.embeddedRelPath.length > 0) {
|
|
361489
|
+
const binDir = PATH.dirname(fileURLToPath$1(import.meta.url));
|
|
361490
|
+
const embedded = PATH.join(binDir, ...config.bin.embeddedRelPath.split("/"));
|
|
361491
|
+
if (existsSync(embedded)) return embedded;
|
|
361492
|
+
const monorepoEmbedded = PATH.resolve(binDir, "../../../cli/dist/bin", ...config.bin.embeddedRelPath.split("/"));
|
|
361493
|
+
if (existsSync(monorepoEmbedded)) return monorepoEmbedded;
|
|
361494
|
+
const monorepoInternal = PATH.resolve(binDir, "../../../cli-internal/dist/bin", ...config.bin.embeddedRelPath.split("/"));
|
|
361495
|
+
if (existsSync(monorepoInternal)) return monorepoInternal;
|
|
361496
|
+
}
|
|
361497
|
+
if (config.bin.packageName !== void 0 && config.bin.binRelPath !== void 0) try {
|
|
361498
|
+
const packageJsonPath = require2.resolve(`${config.bin.packageName}/package.json`);
|
|
361499
|
+
const binPath = PATH.join(PATH.dirname(packageJsonPath), ...config.bin.binRelPath.split("/"));
|
|
361500
|
+
if (existsSync(binPath)) return binPath;
|
|
361501
|
+
} catch {}
|
|
361502
|
+
throw new Error(`${capitalizedName} binary not found. ${config.bin.installHint} (expected an embedded daemon under dist/bin/daemons/ or a resolvable package bin)`);
|
|
361158
361503
|
}
|
|
361159
361504
|
function probeUrl(baseUrl) {
|
|
361160
361505
|
return `${baseUrl.replace(/\/$/, "")}${config.health?.path ?? ""}`;
|
|
@@ -361322,9 +361667,10 @@ var chainDaemon = createDaemonKit({
|
|
|
361322
361667
|
dirName: "chain",
|
|
361323
361668
|
displayName: "chain server",
|
|
361324
361669
|
bin: {
|
|
361670
|
+
embeddedRelPath: "daemons/chain-server.mjs",
|
|
361325
361671
|
packageName: "@ariestools/aries-chain-serve",
|
|
361326
361672
|
binRelPath: "dist/bin/chainServer.mjs",
|
|
361327
|
-
installHint: "
|
|
361673
|
+
installHint: "Rebuild the CLI package so dist/bin/daemons/chain-server.mjs is embedded."
|
|
361328
361674
|
},
|
|
361329
361675
|
health: {
|
|
361330
361676
|
anyResponse: true,
|
|
@@ -361634,9 +361980,10 @@ var dappDaemon = createDaemonKit({
|
|
|
361634
361980
|
dirName: "dapp",
|
|
361635
361981
|
displayName: "dapp server",
|
|
361636
361982
|
bin: {
|
|
361983
|
+
embeddedRelPath: "daemons/dapp-server.mjs",
|
|
361637
361984
|
packageName: "@ariestools/aries-dapp-core",
|
|
361638
361985
|
binRelPath: "dist/bin/dappServer.mjs",
|
|
361639
|
-
installHint: "
|
|
361986
|
+
installHint: "Rebuild the CLI package so dist/bin/daemons/dapp-server.mjs is embedded."
|
|
361640
361987
|
},
|
|
361641
361988
|
health: {
|
|
361642
361989
|
anyResponse: true,
|
|
@@ -361649,7 +361996,9 @@ var dappDaemon = createDaemonKit({
|
|
|
361649
361996
|
["state", `${state2.baseUrl}/state`],
|
|
361650
361997
|
["index", `${state2.baseUrl}/index`],
|
|
361651
361998
|
["backing", state2.backing],
|
|
361999
|
+
...state2.dataDir === void 0 ? [] : [["data-dir", state2.dataDir]],
|
|
361652
362000
|
["reduce", `${state2.reduceIntervalMs}ms`],
|
|
362001
|
+
["reducer", state2.reducer ?? "noop"],
|
|
361653
362002
|
["ssl", state2.ssl ?? (state2.baseUrl.startsWith("https:") ? "auto" : "off")]
|
|
361654
362003
|
]
|
|
361655
362004
|
});
|
|
@@ -361667,23 +362016,46 @@ var DEFAULT_TIMEOUT_SECONDS2 = 10;
|
|
|
361667
362016
|
var DEFAULT_BACKING2 = "memory";
|
|
361668
362017
|
var DEFAULT_SSL2 = "off";
|
|
361669
362018
|
var DEFAULT_REDUCE_INTERVAL_MS = 5e3;
|
|
362019
|
+
function resolveReducerPath(spec) {
|
|
362020
|
+
if (spec === void 0 || spec.length === 0) return void 0;
|
|
362021
|
+
if (spec.startsWith("file:")) return spec;
|
|
362022
|
+
if (!spec.startsWith(".") && !spec.startsWith("/") && !PATH.isAbsolute(spec) && !spec.endsWith(".mjs") && !spec.endsWith(".js") && !spec.endsWith(".cjs")) return spec;
|
|
362023
|
+
const absolute = PATH.isAbsolute(spec) ? spec : PATH.resolve(process.cwd(), spec);
|
|
362024
|
+
if (!existsSync(absolute)) throw new Error(`Reducer module not found: ${absolute}`);
|
|
362025
|
+
return absolute;
|
|
362026
|
+
}
|
|
362027
|
+
function resolveSsl(host, ssl) {
|
|
362028
|
+
if (ssl === "auto" && host !== DEFAULT_HOST2) throw new Error(`--ssl auto requires --host ${DEFAULT_HOST2}`);
|
|
362029
|
+
return ssl === "auto" ? prepareAutoTls3() : void 0;
|
|
362030
|
+
}
|
|
362031
|
+
function resolveDataDir(backing, dataDir) {
|
|
362032
|
+
if (dataDir === void 0) return void 0;
|
|
362033
|
+
if (dataDir.length === 0) throw new Error("--data-dir must be a non-empty path when provided");
|
|
362034
|
+
if (backing !== "disk") return PATH.resolve(dataDir);
|
|
362035
|
+
return PATH.resolve(dataDir);
|
|
362036
|
+
}
|
|
361670
362037
|
function resolveOptions2(options) {
|
|
361671
362038
|
const host = options.host ?? DEFAULT_HOST2;
|
|
361672
362039
|
const port = options.port ?? DEFAULT_PORT2;
|
|
361673
362040
|
const ssl = options.ssl ?? DEFAULT_SSL2;
|
|
361674
|
-
|
|
361675
|
-
const tls = ssl
|
|
362041
|
+
const backing = options.backing ?? DEFAULT_BACKING2;
|
|
362042
|
+
const tls = resolveSsl(host, ssl);
|
|
361676
362043
|
const publicHost = tls?.hostname ?? host;
|
|
362044
|
+
const reducer = resolveReducerPath(options.reducer);
|
|
362045
|
+
const dataDir = resolveDataDir(backing, options.dataDir);
|
|
361677
362046
|
return {
|
|
361678
|
-
backing
|
|
362047
|
+
backing,
|
|
361679
362048
|
baseUrl: `${tls === void 0 ? "http" : "https"}://${publicHost}:${port}`,
|
|
361680
362049
|
caPath: tls?.caPath,
|
|
361681
362050
|
certPath: tls?.certPath,
|
|
362051
|
+
...dataDir !== void 0 && { dataDir },
|
|
361682
362052
|
host,
|
|
361683
362053
|
keyPath: tls?.keyPath,
|
|
361684
362054
|
port,
|
|
361685
362055
|
publicHost,
|
|
361686
362056
|
reduceIntervalMs: options.reduceIntervalMs ?? DEFAULT_REDUCE_INTERVAL_MS,
|
|
362057
|
+
...reducer !== void 0 && { reducer },
|
|
362058
|
+
...options.reducerExport !== void 0 && { reducerExport: options.reducerExport },
|
|
361687
362059
|
ssl,
|
|
361688
362060
|
timeoutMs: (options.timeoutSeconds ?? DEFAULT_TIMEOUT_SECONDS2) * 1e3
|
|
361689
362061
|
};
|
|
@@ -361698,6 +362070,10 @@ function buildEnv2(resolved) {
|
|
|
361698
362070
|
DAPP_TLS_CERT: resolved.certPath,
|
|
361699
362071
|
DAPP_TLS_KEY: resolved.keyPath,
|
|
361700
362072
|
DAPP_REDUCE_INTERVAL_MS: String(resolved.reduceIntervalMs),
|
|
362073
|
+
...resolved.dataDir !== void 0 && { DAPP_DATA_DIR: resolved.dataDir },
|
|
362074
|
+
...resolved.reducer !== void 0 && { DAPP_REDUCER: resolved.reducer },
|
|
362075
|
+
...resolved.reducerExport !== void 0 && { DAPP_REDUCER_EXPORT: resolved.reducerExport },
|
|
362076
|
+
DAPP_PUBLICATION_SAFETY: process.env.DAPP_PUBLICATION_SAFETY ?? "unfenced",
|
|
361701
362077
|
...resolved.caPath !== void 0 && { NODE_EXTRA_CA_CERTS: resolved.caPath },
|
|
361702
362078
|
LOG_LEVEL: process.env.LOG_LEVEL ?? "info"
|
|
361703
362079
|
};
|
|
@@ -361709,11 +362085,14 @@ function printReadyBanner2(state2) {
|
|
|
361709
362085
|
console.log(` ${chalk.gray("state:")} ${state2.baseUrl}/state`);
|
|
361710
362086
|
console.log(` ${chalk.gray("index:")} ${state2.baseUrl}/index`);
|
|
361711
362087
|
console.log(` ${chalk.gray("backing:")} ${state2.backing}`);
|
|
362088
|
+
if (state2.dataDir !== void 0) console.log(` ${chalk.gray("data-dir:")} ${state2.dataDir}`);
|
|
361712
362089
|
console.log(` ${chalk.gray("reduce:")} every ${state2.reduceIntervalMs}ms`);
|
|
362090
|
+
console.log(` ${chalk.gray("reducer:")} ${state2.reducer ?? "noop"}`);
|
|
361713
362091
|
console.log(` ${chalk.gray("ssl:")} ${state2.ssl ?? "off"}`);
|
|
361714
362092
|
console.log(` ${chalk.gray("log:")} ${dappDaemon.paths.logPath()}`);
|
|
361715
362093
|
console.log(chalk.gray("\nWrite immutable facts into /data with any S3 client (path-style, any credentials);"));
|
|
361716
|
-
console.log(chalk.gray("the DappActor
|
|
362094
|
+
console.log(chalk.gray("the DappActor runs your reducer (or noop) on the reduce interval."));
|
|
362095
|
+
console.log(chalk.gray("Local publication safety defaults to unfenced (s3rver). Production: own entrypoint + R2."));
|
|
361717
362096
|
console.log(` export S3_ENDPOINT=${state2.baseUrl}`);
|
|
361718
362097
|
console.log(" export S3_ACCESS_KEY_ID=S3RVER");
|
|
361719
362098
|
console.log(" export S3_SECRET_ACCESS_KEY=S3RVER");
|
|
@@ -361731,10 +362110,13 @@ async function upDappServer(options = {}) {
|
|
|
361731
362110
|
backing: resolved.backing,
|
|
361732
362111
|
baseUrl: resolved.baseUrl,
|
|
361733
362112
|
caPath: resolved.caPath,
|
|
362113
|
+
dataDir: resolved.dataDir,
|
|
361734
362114
|
host: resolved.host,
|
|
361735
362115
|
pid,
|
|
361736
362116
|
port: resolved.port,
|
|
361737
362117
|
reduceIntervalMs: resolved.reduceIntervalMs,
|
|
362118
|
+
reducer: resolved.reducer,
|
|
362119
|
+
reducerExport: resolved.reducerExport,
|
|
361738
362120
|
ssl: resolved.ssl,
|
|
361739
362121
|
startedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
361740
362122
|
}),
|
|
@@ -361808,9 +362190,18 @@ var dappUpCommand = {
|
|
|
361808
362190
|
default: "127.0.0.1",
|
|
361809
362191
|
describe: "Host the origin binds to"
|
|
361810
362192
|
}).option("backing", {
|
|
361811
|
-
choices: ["memory"],
|
|
362193
|
+
choices: ["memory", "disk"],
|
|
361812
362194
|
default: "memory",
|
|
361813
|
-
describe: "Storage backing for the served buckets (
|
|
362195
|
+
describe: "Storage backing for the served buckets (disk survives restarts)"
|
|
362196
|
+
}).option("data-dir", {
|
|
362197
|
+
type: "string",
|
|
362198
|
+
describe: "Directory for disk backing (default: ~/.aries/dapp/data)"
|
|
362199
|
+
}).option("reducer", {
|
|
362200
|
+
type: "string",
|
|
362201
|
+
describe: "Path to a .mjs/.js reducer module or a package export (default: noop)"
|
|
362202
|
+
}).option("reducer-export", {
|
|
362203
|
+
type: "string",
|
|
362204
|
+
describe: "Named export when the module does not use default or `reducer`"
|
|
361814
362205
|
}).option("reduce-interval", {
|
|
361815
362206
|
type: "number",
|
|
361816
362207
|
default: 5e3,
|
|
@@ -361827,8 +362218,11 @@ var dappUpCommand = {
|
|
|
361827
362218
|
handler: async (argv) => {
|
|
361828
362219
|
await upDappServer({
|
|
361829
362220
|
backing: argv.backing,
|
|
362221
|
+
...argv.dataDir !== void 0 && { dataDir: argv.dataDir },
|
|
361830
362222
|
host: argv.host,
|
|
361831
362223
|
port: argv.port,
|
|
362224
|
+
...argv.reducer !== void 0 && { reducer: argv.reducer },
|
|
362225
|
+
...argv.reducerExport !== void 0 && { reducerExport: argv.reducerExport },
|
|
361832
362226
|
reduceIntervalMs: argv.reduceInterval,
|
|
361833
362227
|
ssl: argv.ssl,
|
|
361834
362228
|
timeoutSeconds: argv.timeout
|
|
@@ -361865,9 +362259,10 @@ var devDaemon = createDaemonKit({
|
|
|
361865
362259
|
dirName: "dev",
|
|
361866
362260
|
displayName: "dev server",
|
|
361867
362261
|
bin: {
|
|
362262
|
+
embeddedRelPath: "daemons/datalake-dev.mjs",
|
|
361868
362263
|
packageName: "@ariestools/aries-datalake-plane",
|
|
361869
362264
|
binRelPath: "dist/bin/devServer.mjs",
|
|
361870
|
-
installHint: "
|
|
362265
|
+
installHint: "Rebuild the CLI package so dist/bin/daemons/datalake-dev.mjs is embedded."
|
|
361871
362266
|
},
|
|
361872
362267
|
health: { path: "/v1/health" },
|
|
361873
362268
|
baseUrl: (state2) => state2.controlUrl,
|
|
@@ -362123,20 +362518,42 @@ var datalakeAuditCommand = {
|
|
|
362123
362518
|
builder: (yargs2) => yargs2.command(viewCommand).command(purgeCommand),
|
|
362124
362519
|
handler: () => {}
|
|
362125
362520
|
};
|
|
362126
|
-
|
|
362127
|
-
|
|
362521
|
+
async function allocateFreePort(host = "127.0.0.1") {
|
|
362522
|
+
return await new Promise((resolve, reject) => {
|
|
362523
|
+
const server = NET.createServer();
|
|
362524
|
+
server.unref();
|
|
362525
|
+
server.on("error", reject);
|
|
362526
|
+
server.listen(0, host, () => {
|
|
362527
|
+
const address = server.address();
|
|
362528
|
+
if (address === null || typeof address === "string") {
|
|
362529
|
+
server.close();
|
|
362530
|
+
reject(/* @__PURE__ */ new Error("Failed to allocate free port"));
|
|
362531
|
+
return;
|
|
362532
|
+
}
|
|
362533
|
+
const { port } = address;
|
|
362534
|
+
server.close((error) => {
|
|
362535
|
+
if (error) reject(error);
|
|
362536
|
+
else resolve(port);
|
|
362537
|
+
});
|
|
362538
|
+
});
|
|
362539
|
+
});
|
|
362540
|
+
}
|
|
362128
362541
|
var DEFAULT_TIMEOUT_SECONDS3 = 10;
|
|
362129
362542
|
var DEFAULT_CONTROL_AUDIENCE2 = "aries-datalake-control";
|
|
362130
|
-
|
|
362131
|
-
|
|
362132
|
-
const
|
|
362543
|
+
var DEFAULT_HOST3 = "127.0.0.1";
|
|
362544
|
+
async function resolveOptions3(options) {
|
|
362545
|
+
const host = options.host ?? DEFAULT_HOST3;
|
|
362546
|
+
const controlPort = options.controlPort ?? await allocateFreePort(host);
|
|
362547
|
+
let planePort = options.planePort ?? await allocateFreePort(host);
|
|
362548
|
+
if (planePort === controlPort) planePort = await allocateFreePort(host);
|
|
362133
362549
|
const rotate = options.auditRotate === true;
|
|
362134
362550
|
const devDir = devDaemon.paths.dir();
|
|
362135
362551
|
return {
|
|
362136
362552
|
controlPort,
|
|
362137
362553
|
planePort,
|
|
362138
|
-
|
|
362139
|
-
|
|
362554
|
+
host,
|
|
362555
|
+
controlUrl: `http://${host}:${controlPort}`,
|
|
362556
|
+
planeUrl: `http://${host}:${planePort}`,
|
|
362140
362557
|
userId: options.userId ?? "dev-user",
|
|
362141
362558
|
authToken: options.authToken ?? randomBytes(16).toString("hex"),
|
|
362142
362559
|
signingSecret: options.signingSecret ?? randomBytes(32).toString("hex"),
|
|
@@ -362153,7 +362570,7 @@ function buildEnv3(resolved) {
|
|
|
362153
362570
|
...process.env,
|
|
362154
362571
|
CONTROL_PORT: String(resolved.controlPort),
|
|
362155
362572
|
PLANE_PORT: String(resolved.planePort),
|
|
362156
|
-
HOST:
|
|
362573
|
+
HOST: resolved.host,
|
|
362157
362574
|
DATALAKE_CONTROL_TOKENS: `${resolved.authToken}=${resolved.userId}`,
|
|
362158
362575
|
DATALAKE_CONTROL_AUDIENCE: resolved.controlAudience,
|
|
362159
362576
|
TOKEN_SIGNING_SECRET: resolved.signingSecret,
|
|
@@ -362176,14 +362593,16 @@ function printReadyBanner3(state2, resolved) {
|
|
|
362176
362593
|
console.log(` ${chalk.gray("data:")} ${state2.planeUrl}`);
|
|
362177
362594
|
console.log(` ${chalk.gray("user:")} ${state2.userId}`);
|
|
362178
362595
|
console.log(` ${chalk.gray("audience:")} ${resolved.controlAudience}`);
|
|
362596
|
+
console.log(` ${chalk.gray("home:")} ${devDaemon.paths.dir()}`);
|
|
362179
362597
|
console.log(` ${chalk.gray("log:")} ${devDaemon.paths.logPath()}`);
|
|
362180
362598
|
console.log(` ${chalk.gray("store:")} ${resolved.persistDir ? `persisted (${resolved.persistDir})` : "in-memory"}`);
|
|
362181
362599
|
console.log(` ${chalk.gray("audit:")} ${describeAudit(resolved)}`);
|
|
362182
362600
|
console.log(chalk.gray("\nCLI is configured — try `aries datalake list`"));
|
|
362601
|
+
console.log(chalk.gray("Auth token stored under the active ARIES_HOME credentials file (not printed)."));
|
|
362183
362602
|
}
|
|
362184
362603
|
async function upDevServer(options = {}) {
|
|
362185
|
-
return await devDaemon.up(() => {
|
|
362186
|
-
const resolved = resolveOptions3(options);
|
|
362604
|
+
return await devDaemon.up(async () => {
|
|
362605
|
+
const resolved = await resolveOptions3(options);
|
|
362187
362606
|
return {
|
|
362188
362607
|
env: buildEnv3(resolved),
|
|
362189
362608
|
healthUrl: resolved.controlUrl,
|
|
@@ -362887,12 +363306,14 @@ var datalakeDevUpCommand = {
|
|
|
362887
363306
|
describe: "Start the local control + data plane dev server and wire the CLI to it",
|
|
362888
363307
|
builder: (yargs2) => yargs2.option("control-port", {
|
|
362889
363308
|
type: "number",
|
|
362890
|
-
default:
|
|
362891
|
-
describe: "Control-plane port"
|
|
363309
|
+
describe: "Control-plane port (default: free ephemeral port on 127.0.0.1)"
|
|
362892
363310
|
}).option("plane-port", {
|
|
362893
363311
|
type: "number",
|
|
362894
|
-
default:
|
|
362895
|
-
|
|
363312
|
+
describe: "Data-plane port (default: free ephemeral port on 127.0.0.1)"
|
|
363313
|
+
}).option("host", {
|
|
363314
|
+
type: "string",
|
|
363315
|
+
default: "127.0.0.1",
|
|
363316
|
+
describe: "Loopback bind host for both planes"
|
|
362896
363317
|
}).option("timeout", {
|
|
362897
363318
|
type: "number",
|
|
362898
363319
|
default: 10,
|
|
@@ -362915,8 +363336,9 @@ var datalakeDevUpCommand = {
|
|
|
362915
363336
|
}),
|
|
362916
363337
|
handler: async (argv) => {
|
|
362917
363338
|
await upDevServer({
|
|
362918
|
-
controlPort: argv["control-port"],
|
|
362919
|
-
planePort: argv["plane-port"],
|
|
363339
|
+
...argv["control-port"] !== void 0 && { controlPort: argv["control-port"] },
|
|
363340
|
+
...argv["plane-port"] !== void 0 && { planePort: argv["plane-port"] },
|
|
363341
|
+
host: argv.host,
|
|
362920
363342
|
timeoutSeconds: argv.timeout,
|
|
362921
363343
|
persist: argv.persist,
|
|
362922
363344
|
audit: argv.audit,
|
|
@@ -363563,8 +363985,8 @@ var ProxmoxClient = class {
|
|
|
363563
363985
|
async listStorageContent(node, storage, params = {}) {
|
|
363564
363986
|
return await this.request("GET", `/nodes/${pathPart(node)}/storage/${pathPart(storage)}/content`, params);
|
|
363565
363987
|
}
|
|
363566
|
-
async request(method,
|
|
363567
|
-
const url = buildUrl(this.host,
|
|
363988
|
+
async request(method, path38, params = {}) {
|
|
363989
|
+
const url = buildUrl(this.host, path38);
|
|
363568
363990
|
let body;
|
|
363569
363991
|
if (method === "GET" || method === "DELETE") for (const [key, value] of Object.entries(params)) appendParam(url.searchParams, key, value);
|
|
363570
363992
|
else body = encodeParams(params);
|
|
@@ -363649,8 +364071,8 @@ function normalizeHost(value) {
|
|
|
363649
364071
|
parsed.hash = "";
|
|
363650
364072
|
return parsed.toString().replace(/\/$/, "");
|
|
363651
364073
|
}
|
|
363652
|
-
function buildUrl(host,
|
|
363653
|
-
return new URL$1(`/api2/json${
|
|
364074
|
+
function buildUrl(host, path38) {
|
|
364075
|
+
return new URL$1(`/api2/json${path38.startsWith("/") ? path38 : `/${path38}`}`, host);
|
|
363654
364076
|
}
|
|
363655
364077
|
function encodeParams(params) {
|
|
363656
364078
|
const body = new URLSearchParams();
|
|
@@ -364659,11 +365081,11 @@ async function startStdioMcpServer(definition) {
|
|
|
364659
365081
|
}
|
|
364660
365082
|
async function startHttpMcpServer(definition, options = {}) {
|
|
364661
365083
|
const host = options.host ?? "127.0.0.1";
|
|
364662
|
-
const
|
|
365084
|
+
const path38 = normalizePath(options.path ?? "/mcp");
|
|
364663
365085
|
assertAllowedBindHost(host, options.allowNonLoopback === true);
|
|
364664
365086
|
const sessions = /* @__PURE__ */ new Map();
|
|
364665
365087
|
const server = HTTP.createServer((req, res) => {
|
|
364666
|
-
handleHttpRequest(definition, sessions, server, options, host,
|
|
365088
|
+
handleHttpRequest(definition, sessions, server, options, host, path38, req, res);
|
|
364667
365089
|
});
|
|
364668
365090
|
const closed = waitForHttpClose(server);
|
|
364669
365091
|
const port = await listen(server, options.port ?? 0, host);
|
|
@@ -364676,13 +365098,13 @@ async function startHttpMcpServer(definition, options = {}) {
|
|
|
364676
365098
|
await closeHttpServer(server);
|
|
364677
365099
|
},
|
|
364678
365100
|
host,
|
|
364679
|
-
path:
|
|
365101
|
+
path: path38,
|
|
364680
365102
|
port,
|
|
364681
|
-
url: `http://${formatUrlHost(host)}:${port}${
|
|
365103
|
+
url: `http://${formatUrlHost(host)}:${port}${path38}`,
|
|
364682
365104
|
waitForClose: () => closed
|
|
364683
365105
|
};
|
|
364684
365106
|
}
|
|
364685
|
-
async function handleHttpRequest(definition, sessions, server, options, host,
|
|
365107
|
+
async function handleHttpRequest(definition, sessions, server, options, host, path38, req, res) {
|
|
364686
365108
|
try {
|
|
364687
365109
|
if (!isAllowedHostHeader(req.headers, host, getServerPort(server), options.allowedHosts ?? [])) {
|
|
364688
365110
|
jsonRpcError(res, 403, -32e3, "Forbidden: invalid Host header");
|
|
@@ -364692,7 +365114,7 @@ async function handleHttpRequest(definition, sessions, server, options, host, pa
|
|
|
364692
365114
|
jsonRpcError(res, 403, -32e3, "Forbidden: invalid Origin header");
|
|
364693
365115
|
return;
|
|
364694
365116
|
}
|
|
364695
|
-
if (new URL(req.url ?? "/", `http://${host}`).pathname !==
|
|
365117
|
+
if (new URL(req.url ?? "/", `http://${host}`).pathname !== path38) {
|
|
364696
365118
|
res.writeHead(404).end("Not Found");
|
|
364697
365119
|
return;
|
|
364698
365120
|
}
|
|
@@ -364817,8 +365239,8 @@ function getServerPort(server) {
|
|
|
364817
365239
|
if (typeof address === "object" && address) return address.port;
|
|
364818
365240
|
return 0;
|
|
364819
365241
|
}
|
|
364820
|
-
function normalizePath(
|
|
364821
|
-
return
|
|
365242
|
+
function normalizePath(path38) {
|
|
365243
|
+
return path38.startsWith("/") ? path38 : `/${path38}`;
|
|
364822
365244
|
}
|
|
364823
365245
|
function assertAllowedBindHost(host, allowNonLoopback) {
|
|
364824
365246
|
if (allowNonLoopback || isLoopbackHost(host)) return;
|
|
@@ -366508,22 +366930,22 @@ function parseBlockTuple(value) {
|
|
|
366508
366930
|
payloads
|
|
366509
366931
|
};
|
|
366510
366932
|
}
|
|
366511
|
-
function objectPath(
|
|
366512
|
-
return /^[A-Za-z_$][\w$]*$/.test(key) ? `${
|
|
366933
|
+
function objectPath(path38, key) {
|
|
366934
|
+
return /^[A-Za-z_$][\w$]*$/.test(key) ? `${path38}.${key}` : `${path38}[${JSON.stringify(key)}]`;
|
|
366513
366935
|
}
|
|
366514
|
-
function normalizeMongoExtendedJson(value,
|
|
366515
|
-
if (Array.isArray(value)) return value.map((item, index) => normalizeMongoExtendedJson(item, `${
|
|
366936
|
+
function normalizeMongoExtendedJson(value, path38, stats) {
|
|
366937
|
+
if (Array.isArray(value)) return value.map((item, index) => normalizeMongoExtendedJson(item, `${path38}[${index}]`, stats));
|
|
366516
366938
|
if (!isRecord2(value)) return value;
|
|
366517
366939
|
if ("$numberLong" in value) {
|
|
366518
366940
|
const entries2 = Object.entries(value);
|
|
366519
366941
|
const raw = value.$numberLong;
|
|
366520
|
-
if (entries2.length !== 1 || typeof raw !== "string" || !/^-?(?:0|[1-9]\d*)$/.test(raw)) throw new TypeError(`${
|
|
366942
|
+
if (entries2.length !== 1 || typeof raw !== "string" || !/^-?(?:0|[1-9]\d*)$/.test(raw)) throw new TypeError(`${path38}: malformed Mongo $numberLong wrapper`);
|
|
366521
366943
|
const normalized = Number(raw);
|
|
366522
|
-
if (!Number.isSafeInteger(normalized)) throw new TypeError(`${
|
|
366944
|
+
if (!Number.isSafeInteger(normalized)) throw new TypeError(`${path38}: Mongo $numberLong value is outside JavaScript's safe integer range (${raw})`);
|
|
366523
366945
|
stats.mongoLongs++;
|
|
366524
366946
|
return normalized;
|
|
366525
366947
|
}
|
|
366526
|
-
return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, normalizeMongoExtendedJson(item, objectPath(
|
|
366948
|
+
return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, normalizeMongoExtendedJson(item, objectPath(path38, key), stats)]));
|
|
366527
366949
|
}
|
|
366528
366950
|
function readScopedEnv(name, scopes = []) {
|
|
366529
366951
|
for (const scope of scopes) {
|
|
@@ -366574,15 +366996,15 @@ function createHttpChainObjectStore(baseUrl, fetchFn = globalThis.fetch.bind(glo
|
|
|
366574
366996
|
}
|
|
366575
366997
|
};
|
|
366576
366998
|
return {
|
|
366577
|
-
async exists(
|
|
366578
|
-
const url = `${base}/${
|
|
366999
|
+
async exists(path38) {
|
|
367000
|
+
const url = `${base}/${path38}`;
|
|
366579
367001
|
const response = await fetchResponse(url, { method: "HEAD" }, "check");
|
|
366580
367002
|
if (response.status === 404) return false;
|
|
366581
367003
|
if (!response.ok) throw new Error(`Failed to check ${url}: HTTP ${response.status} ${response.statusText}`);
|
|
366582
367004
|
return true;
|
|
366583
367005
|
},
|
|
366584
|
-
async getJson(
|
|
366585
|
-
const url = `${base}/${
|
|
367006
|
+
async getJson(path38) {
|
|
367007
|
+
const url = `${base}/${path38}`;
|
|
366586
367008
|
const response = await fetchResponse(url, { method: "GET" }, "read");
|
|
366587
367009
|
if (response.status === 404) return void 0;
|
|
366588
367010
|
if (!response.ok) throw new Error(`Failed to read ${url}: HTTP ${response.status} ${response.statusText}`);
|
|
@@ -366709,24 +367131,24 @@ var INDEX_MAX_STEP = {
|
|
|
366709
367131
|
schemas: 5,
|
|
366710
367132
|
transfers: 4
|
|
366711
367133
|
};
|
|
366712
|
-
function issue(ctx, kind,
|
|
367134
|
+
function issue(ctx, kind, path38, message) {
|
|
366713
367135
|
ctx.issues.push({
|
|
366714
367136
|
kind,
|
|
366715
367137
|
message,
|
|
366716
|
-
path:
|
|
367138
|
+
path: path38
|
|
366717
367139
|
});
|
|
366718
367140
|
}
|
|
366719
|
-
async function requirePath(ctx,
|
|
367141
|
+
async function requirePath(ctx, path38, kind, message) {
|
|
366720
367142
|
ctx.counters.paths++;
|
|
366721
|
-
if (!await ctx.store.exists(
|
|
366722
|
-
issue(ctx, kind,
|
|
367143
|
+
if (!await ctx.store.exists(path38)) {
|
|
367144
|
+
issue(ctx, kind, path38, message);
|
|
366723
367145
|
return false;
|
|
366724
367146
|
}
|
|
366725
367147
|
return true;
|
|
366726
367148
|
}
|
|
366727
|
-
async function readJsonPath(ctx, store,
|
|
367149
|
+
async function readJsonPath(ctx, store, path38) {
|
|
366728
367150
|
ctx.counters.paths++;
|
|
366729
|
-
return await store.getJson(
|
|
367151
|
+
return await store.getJson(path38);
|
|
366730
367152
|
}
|
|
366731
367153
|
function isChainManifest(value) {
|
|
366732
367154
|
return typeof value === "object" && value !== null && value.schema === "network.xyo.s3.chain.manifest";
|
|
@@ -366787,36 +367209,36 @@ function parseAuditBlock(value) {
|
|
|
366787
367209
|
parsed: value
|
|
366788
367210
|
};
|
|
366789
367211
|
}
|
|
366790
|
-
async function auditPayloadReferences(ctx,
|
|
367212
|
+
async function auditPayloadReferences(ctx, path38, blockNumber, tuple) {
|
|
366791
367213
|
const embeddedHashes = /* @__PURE__ */ new Set();
|
|
366792
367214
|
for (const payload of tuple.payloads) {
|
|
366793
367215
|
const payloadHash = payload._hash;
|
|
366794
367216
|
if (typeof payloadHash !== "string") {
|
|
366795
|
-
issue(ctx, "invalid-payload",
|
|
367217
|
+
issue(ctx, "invalid-payload", path38, `block ${blockNumber} embeds a payload without a _hash`);
|
|
366796
367218
|
continue;
|
|
366797
367219
|
}
|
|
366798
367220
|
embeddedHashes.add(payloadHash);
|
|
366799
|
-
if (!tuple.bw.payload_hashes.includes(payloadHash)) issue(ctx, "unexpected-payload-in-block",
|
|
367221
|
+
if (!tuple.bw.payload_hashes.includes(payloadHash)) issue(ctx, "unexpected-payload-in-block", path38, `block ${blockNumber} embeds payload ${payloadHash} but does not reference it`);
|
|
366800
367222
|
}
|
|
366801
367223
|
for (const payloadHash of tuple.bw.payload_hashes) {
|
|
366802
367224
|
ctx.counters.payloads++;
|
|
366803
|
-
if (!embeddedHashes.has(payloadHash)) issue(ctx, "missing-payloads-in-block",
|
|
367225
|
+
if (!embeddedHashes.has(payloadHash)) issue(ctx, "missing-payloads-in-block", path38, `block ${blockNumber} does not embed payload ${payloadHash}`);
|
|
366804
367226
|
await requirePath(ctx, payloadPath(asHash(payloadHash, true)), "missing-payload", `payload ${payloadHash} (block ${blockNumber}) has no standalone file`);
|
|
366805
367227
|
}
|
|
366806
367228
|
}
|
|
366807
367229
|
async function auditChainBlock(ctx, blockNumber) {
|
|
366808
|
-
const
|
|
366809
|
-
const parsed = await readJsonPath(ctx, ctx.store,
|
|
367230
|
+
const path38 = blockNumberPath(blockNumber);
|
|
367231
|
+
const parsed = await readJsonPath(ctx, ctx.store, path38);
|
|
366810
367232
|
const tuple = parsed === void 0 ? void 0 : parseAuditBlock(parsed);
|
|
366811
367233
|
if (tuple === void 0) {
|
|
366812
|
-
issue(ctx, parsed === void 0 ? "missing-block" : "invalid-block",
|
|
367234
|
+
issue(ctx, parsed === void 0 ? "missing-block" : "invalid-block", path38, `block ${blockNumber} file is missing or not a valid [boundwitness, payloads[]] tuple`);
|
|
366813
367235
|
return;
|
|
366814
367236
|
}
|
|
366815
367237
|
ctx.counters.blocks++;
|
|
366816
367238
|
const { bw } = tuple;
|
|
366817
|
-
if (bw.block !== blockNumber) issue(ctx, "block-number-mismatch",
|
|
367239
|
+
if (bw.block !== blockNumber) issue(ctx, "block-number-mismatch", path38, `block file ${blockNumber} contains block number ${bw.block}`);
|
|
366818
367240
|
await auditHashCopy(ctx, blockNumber, bw._hash, parsed);
|
|
366819
|
-
await auditPayloadReferences(ctx,
|
|
367241
|
+
await auditPayloadReferences(ctx, path38, blockNumber, tuple);
|
|
366820
367242
|
return tuple;
|
|
366821
367243
|
}
|
|
366822
367244
|
async function auditChainManifest(ctx) {
|
|
@@ -366832,11 +367254,11 @@ async function auditChainBlockWindow(ctx, from, to, concurrency) {
|
|
|
366832
367254
|
return blocksByNumber;
|
|
366833
367255
|
}
|
|
366834
367256
|
async function readBlockForConsistency(ctx, blockNumber) {
|
|
366835
|
-
const
|
|
366836
|
-
const parsed = await readJsonPath(ctx, ctx.store,
|
|
367257
|
+
const path38 = blockNumberPath(blockNumber);
|
|
367258
|
+
const parsed = await readJsonPath(ctx, ctx.store, path38);
|
|
366837
367259
|
const tuple = parsed === void 0 ? void 0 : parseAuditBlock(parsed);
|
|
366838
367260
|
if (tuple === void 0) {
|
|
366839
|
-
issue(ctx, parsed === void 0 ? "missing-block" : "invalid-block",
|
|
367261
|
+
issue(ctx, parsed === void 0 ? "missing-block" : "invalid-block", path38, `block ${blockNumber} file is missing or invalid`);
|
|
366840
367262
|
return;
|
|
366841
367263
|
}
|
|
366842
367264
|
return tuple;
|
|
@@ -366856,17 +367278,17 @@ async function auditChainLinkage(ctx, blocksByNumber, windowStart, windowEnd) {
|
|
|
366856
367278
|
for (let blockNumber = windowEnd; blockNumber >= windowStart; blockNumber--) {
|
|
366857
367279
|
const current = blocksByNumber.get(blockNumber);
|
|
366858
367280
|
if (current === void 0) continue;
|
|
366859
|
-
const
|
|
367281
|
+
const path38 = blockNumberPath(blockNumber);
|
|
366860
367282
|
if (blockNumber === 0) {
|
|
366861
|
-
if (current.bw.previous !== null) issue(ctx, "broken-link",
|
|
367283
|
+
if (current.bw.previous !== null) issue(ctx, "broken-link", path38, "block 0 must have a null previous hash");
|
|
366862
367284
|
continue;
|
|
366863
367285
|
}
|
|
366864
367286
|
const previous = await readPreviousForBoundary(ctx, blocksByNumber, blockNumber, windowStart);
|
|
366865
367287
|
if (previous === void 0) {
|
|
366866
|
-
issue(ctx, "broken-link",
|
|
367288
|
+
issue(ctx, "broken-link", path38, `block ${blockNumber} previous cannot be checked because block ${blockNumber - 1} is missing or invalid`);
|
|
366867
367289
|
continue;
|
|
366868
367290
|
}
|
|
366869
|
-
if (current.bw.previous !== previous.bw._hash) issue(ctx, "broken-link",
|
|
367291
|
+
if (current.bw.previous !== previous.bw._hash) issue(ctx, "broken-link", path38, `block ${blockNumber} previous (${current.bw.previous}) does not match block ${blockNumber - 1} hash (${previous.bw._hash})`);
|
|
366870
367292
|
}
|
|
366871
367293
|
}
|
|
366872
367294
|
async function auditChainConsistency(ctx, head, from, to) {
|
|
@@ -366965,8 +367387,8 @@ function resultFor(ctx, layout, url, from, to, head) {
|
|
|
366965
367387
|
function prefixedStore(store, prefix) {
|
|
366966
367388
|
if (prefix === "") return store;
|
|
366967
367389
|
return {
|
|
366968
|
-
exists: (
|
|
366969
|
-
getJson: (
|
|
367390
|
+
exists: (path38) => store.exists(`${prefix}${path38}`),
|
|
367391
|
+
getJson: (path38) => store.getJson(`${prefix}${path38}`)
|
|
366970
367392
|
};
|
|
366971
367393
|
}
|
|
366972
367394
|
async function auditS3Structure(options) {
|
|
@@ -367370,8 +367792,8 @@ async function which(binary) {
|
|
|
367370
367792
|
});
|
|
367371
367793
|
}
|
|
367372
367794
|
async function requireBinary(req) {
|
|
367373
|
-
const
|
|
367374
|
-
if (
|
|
367795
|
+
const path38 = await which(req.binary);
|
|
367796
|
+
if (path38 !== null) return path38;
|
|
367375
367797
|
const lines = [`${req.binary} binary not found on PATH. Install with:`];
|
|
367376
367798
|
if (req.install.brew !== void 0) lines.push(` macOS: brew install ${req.install.brew}`);
|
|
367377
367799
|
if (req.install.apt !== void 0) lines.push(` Debian: apt install ${req.install.apt}`);
|
|
@@ -367380,12 +367802,12 @@ async function requireBinary(req) {
|
|
|
367380
367802
|
}
|
|
367381
367803
|
async function withTempfile(bytes, extension, fn) {
|
|
367382
367804
|
const ext = extension !== void 0 && extension.length > 0 ? `.${extension}` : "";
|
|
367383
|
-
const
|
|
367384
|
-
await writeFile$1(
|
|
367805
|
+
const path38 = PATH.join(OS.tmpdir(), `aries-hash-${randomBytes(8).toString("hex")}${ext}`);
|
|
367806
|
+
await writeFile$1(path38, bytes);
|
|
367385
367807
|
try {
|
|
367386
|
-
return await fn(
|
|
367808
|
+
return await fn(path38);
|
|
367387
367809
|
} finally {
|
|
367388
|
-
await rm(
|
|
367810
|
+
await rm(path38, { force: true });
|
|
367389
367811
|
}
|
|
367390
367812
|
}
|
|
367391
367813
|
var FPCALC_BIN = {
|
|
@@ -367396,14 +367818,14 @@ var FPCALC_BIN = {
|
|
|
367396
367818
|
choco: "chromaprint"
|
|
367397
367819
|
}
|
|
367398
367820
|
};
|
|
367399
|
-
async function runFpcalc(
|
|
367821
|
+
async function runFpcalc(path38) {
|
|
367400
367822
|
await requireBinary(FPCALC_BIN);
|
|
367401
367823
|
const { stdout } = await runBinary({
|
|
367402
367824
|
binary: "fpcalc",
|
|
367403
367825
|
args: [
|
|
367404
367826
|
"-raw",
|
|
367405
367827
|
"-json",
|
|
367406
|
-
|
|
367828
|
+
path38
|
|
367407
367829
|
]
|
|
367408
367830
|
});
|
|
367409
367831
|
const parsed = JSON.parse(stdout.toString("utf8"));
|
|
@@ -367460,7 +367882,7 @@ var chromaprintAlgorithm = {
|
|
|
367460
367882
|
inputType: "audio",
|
|
367461
367883
|
requires: [FPCALC_BIN],
|
|
367462
367884
|
async hash(input) {
|
|
367463
|
-
const fp = input.path === void 0 ? input.bytes === void 0 ? null : await withTempfile(input.bytes, "audio.bin", async (
|
|
367885
|
+
const fp = input.path === void 0 ? input.bytes === void 0 ? null : await withTempfile(input.bytes, "audio.bin", async (path38) => await runFpcalc(path38)) : await runFpcalc(input.path);
|
|
367464
367886
|
if (fp === null) throw new Error("chromaprint requires bytes or a path.");
|
|
367465
367887
|
return JSON.stringify(fp);
|
|
367466
367888
|
},
|
|
@@ -367925,7 +368347,7 @@ var REGISTRY2 = new Map([
|
|
|
367925
368347
|
async hash(input) {
|
|
367926
368348
|
const fps = parseFps(input.options);
|
|
367927
368349
|
const frameAlgorithm = parseFrameAlgorithm(input.options);
|
|
367928
|
-
const fp = input.path === void 0 ? input.bytes === void 0 ? null : await withTempfile(input.bytes, "video.bin", async (
|
|
368350
|
+
const fp = input.path === void 0 ? input.bytes === void 0 ? null : await withTempfile(input.bytes, "video.bin", async (path38) => await fingerprintVideo(path38, fps, frameAlgorithm)) : await fingerprintVideo(input.path, fps, frameAlgorithm);
|
|
367929
368351
|
if (fp === null) throw new Error("video-frames requires bytes or a path.");
|
|
367930
368352
|
return JSON.stringify(fp);
|
|
367931
368353
|
},
|
|
@@ -367951,9 +368373,10 @@ createDaemonKit({
|
|
|
367951
368373
|
dirName: "signing-pool-dev",
|
|
367952
368374
|
displayName: "signing-pool dev server",
|
|
367953
368375
|
bin: {
|
|
368376
|
+
embeddedRelPath: "daemons/signing-pool-dev.mjs",
|
|
367954
368377
|
packageName: "@ariestools/aries-signing-pool-control",
|
|
367955
368378
|
binRelPath: "dist/bin/server.mjs",
|
|
367956
|
-
installHint: "
|
|
368379
|
+
installHint: "Rebuild the CLI package so dist/bin/daemons/signing-pool-dev.mjs is embedded."
|
|
367957
368380
|
},
|
|
367958
368381
|
health: { path: "/v1/health" },
|
|
367959
368382
|
baseUrl: (state2) => state2.controlUrl,
|