@stryke/capnp 0.12.89 → 0.12.91
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/bin/capnpc.cjs +28 -17
- package/bin/capnpc.mjs +28 -17
- package/bin/capnpc.mjs.map +1 -1
- package/dist/{capnp-es.GpvEvMIK-BY4gHyC5.cjs → capnp-es.GpvEvMIK-CmKAL9Yb.cjs} +3 -3
- package/dist/{capnp-es.GpvEvMIK-BH8YrftV.mjs → capnp-es.GpvEvMIK-DsWfF1Qn.mjs} +4 -4
- package/dist/{capnp-es.GpvEvMIK-BH8YrftV.mjs.map → capnp-es.GpvEvMIK-DsWfF1Qn.mjs.map} +1 -1
- package/dist/{compile-DshE0Oj0.mjs → compile-CO2nKitW.mjs} +5 -5
- package/dist/{compile-DshE0Oj0.mjs.map → compile-CO2nKitW.mjs.map} +1 -1
- package/dist/{compile-e2xqm0Q3.cjs → compile-Dl3MRfFK.cjs} +4 -4
- package/dist/compile.cjs +2 -2
- package/dist/compile.mjs +2 -2
- package/dist/{dist-BZ3g4lB8.cjs → dist-Cb6zQ421.cjs} +4 -4
- package/dist/{dist-Qno9L0HI.mjs → dist-CqWVRc1U.mjs} +5 -5
- package/dist/{dist-Qno9L0HI.mjs.map → dist-CqWVRc1U.mjs.map} +1 -1
- package/dist/{helpers-B2lDU1eQ.cjs → helpers-CWggdFzq.cjs} +19 -8
- package/dist/{helpers-C-a9QDSv.mjs → helpers-DWQ2iGfn.mjs} +20 -9
- package/dist/helpers-DWQ2iGfn.mjs.map +1 -0
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.mjs +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/rpc-helpers.cjs +3 -3
- package/dist/rpc-helpers.mjs +2 -2
- package/package.json +9 -9
- package/schemas/persistent.cjs +1 -1
- package/schemas/persistent.mjs +1 -1
- package/schemas/rpc-twoparty.cjs +1 -1
- package/schemas/rpc-twoparty.mjs +1 -1
- package/schemas/rpc.cjs +1 -1
- package/schemas/rpc.mjs +1 -1
- package/schemas/schema.cjs +1 -1
- package/schemas/schema.mjs +1 -1
- package/schemas/{src-DLOZdE-O.mjs → src-BSJZt7kS.mjs} +6 -6
- package/schemas/{src-DLOZdE-O.mjs.map → src-BSJZt7kS.mjs.map} +1 -1
- package/schemas/{src-rXFz6bX_.cjs → src-Dzq1RuiS.cjs} +5 -5
- package/dist/helpers-C-a9QDSv.mjs.map +0 -1
|
@@ -35,7 +35,7 @@ let __stryke_path_append = require("@stryke/path/append");
|
|
|
35
35
|
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
36
36
|
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
37
37
|
|
|
38
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
38
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-5DQF4GNF.js
|
|
39
39
|
var DEFAULT_COLOR_CONFIG = {
|
|
40
40
|
light: {
|
|
41
41
|
background: "#fafafa",
|
|
@@ -49,6 +49,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
49
49
|
warning: "#e3b341",
|
|
50
50
|
danger: "#D8314A",
|
|
51
51
|
fatal: "#51070f",
|
|
52
|
+
performance: "#13c302",
|
|
52
53
|
link: "#3fa6ff",
|
|
53
54
|
positive: "#22c55e",
|
|
54
55
|
negative: "#dc2626",
|
|
@@ -70,6 +71,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
70
71
|
warning: "#f3d371",
|
|
71
72
|
danger: "#D8314A",
|
|
72
73
|
fatal: "#a40e26",
|
|
74
|
+
performance: "#80fd74",
|
|
73
75
|
link: "#3fa6ff",
|
|
74
76
|
positive: "#22c55e",
|
|
75
77
|
negative: "#dc2626",
|
|
@@ -2212,7 +2214,7 @@ var require_source = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2212
2214
|
}));
|
|
2213
2215
|
|
|
2214
2216
|
//#endregion
|
|
2215
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2217
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-HVVJHTFS.js
|
|
2216
2218
|
var import_source = /* @__PURE__ */ __toESM(require_source(), 1);
|
|
2217
2219
|
var chalkDefault = {
|
|
2218
2220
|
hex: (_) => (message) => message,
|
|
@@ -2244,14 +2246,14 @@ var getChalk = () => {
|
|
|
2244
2246
|
};
|
|
2245
2247
|
|
|
2246
2248
|
//#endregion
|
|
2247
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2249
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-G2MK47WL.js
|
|
2248
2250
|
function isUnicodeSupported() {
|
|
2249
2251
|
if (process.platform !== "win32") return process.env.TERM !== "linux";
|
|
2250
2252
|
return Boolean(process.env.WT_SESSION) || Boolean(process.env.TERMINUS_SUBLIME) || process.env.ConEmuTask === "{cmd::Cmder}" || process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
2251
2253
|
}
|
|
2252
2254
|
|
|
2253
2255
|
//#endregion
|
|
2254
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2256
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-RALMUN5C.js
|
|
2255
2257
|
var LogLevel = {
|
|
2256
2258
|
SILENT: 0,
|
|
2257
2259
|
FATAL: 10,
|
|
@@ -2259,6 +2261,7 @@ var LogLevel = {
|
|
|
2259
2261
|
WARN: 30,
|
|
2260
2262
|
SUCCESS: 35,
|
|
2261
2263
|
INFO: 40,
|
|
2264
|
+
PERFORMANCE: 50,
|
|
2262
2265
|
DEBUG: 60,
|
|
2263
2266
|
TRACE: 70,
|
|
2264
2267
|
ALL: 100
|
|
@@ -2270,19 +2273,21 @@ var LogLevelLabel = {
|
|
|
2270
2273
|
WARN: "warn",
|
|
2271
2274
|
SUCCESS: "success",
|
|
2272
2275
|
INFO: "info",
|
|
2276
|
+
PERFORMANCE: "performance",
|
|
2273
2277
|
DEBUG: "debug",
|
|
2274
2278
|
TRACE: "trace",
|
|
2275
2279
|
ALL: "all"
|
|
2276
2280
|
};
|
|
2277
2281
|
|
|
2278
2282
|
//#endregion
|
|
2279
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2283
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-ZFNAUMQS.js
|
|
2280
2284
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
2281
2285
|
var CONSOLE_ICONS = {
|
|
2282
2286
|
[LogLevelLabel.ERROR]: useIcon("✘", "×"),
|
|
2283
2287
|
[LogLevelLabel.FATAL]: useIcon("🕱", "×"),
|
|
2284
2288
|
[LogLevelLabel.WARN]: useIcon("⚠", "‼"),
|
|
2285
2289
|
[LogLevelLabel.INFO]: useIcon("ℹ", "i"),
|
|
2290
|
+
[LogLevelLabel.PERFORMANCE]: useIcon("⏱", "⏱"),
|
|
2286
2291
|
[LogLevelLabel.SUCCESS]: useIcon("✔", "√"),
|
|
2287
2292
|
[LogLevelLabel.DEBUG]: useIcon("🛠", "D"),
|
|
2288
2293
|
[LogLevelLabel.TRACE]: useIcon("⚙", "T"),
|
|
@@ -2290,18 +2295,19 @@ var CONSOLE_ICONS = {
|
|
|
2290
2295
|
};
|
|
2291
2296
|
|
|
2292
2297
|
//#endregion
|
|
2293
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2298
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-CZ4IE2QN.js
|
|
2294
2299
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
2295
2300
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
2296
2301
|
};
|
|
2297
2302
|
|
|
2298
2303
|
//#endregion
|
|
2299
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2304
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-SXPH7ILL.js
|
|
2300
2305
|
var getLogLevel = (label) => {
|
|
2301
2306
|
switch (label) {
|
|
2302
2307
|
case "all": return LogLevel.ALL;
|
|
2303
2308
|
case "trace": return LogLevel.TRACE;
|
|
2304
2309
|
case "debug": return LogLevel.DEBUG;
|
|
2310
|
+
case "performance": return LogLevel.PERFORMANCE;
|
|
2305
2311
|
case "info": return LogLevel.INFO;
|
|
2306
2312
|
case "warn": return LogLevel.WARN;
|
|
2307
2313
|
case "error": return LogLevel.ERROR;
|
|
@@ -2312,7 +2318,7 @@ var getLogLevel = (label) => {
|
|
|
2312
2318
|
};
|
|
2313
2319
|
|
|
2314
2320
|
//#endregion
|
|
2315
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2321
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-XHJNCOIU.js
|
|
2316
2322
|
var daysInYear = 365.2425;
|
|
2317
2323
|
-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3);
|
|
2318
2324
|
var secondsInDay = 3600 * 24;
|
|
@@ -2859,6 +2865,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? DEFAULT_COLOR_C
|
|
|
2859
2865
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) return (message) => {
|
|
2860
2866
|
console.info(`
|
|
2861
2867
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2868
|
+
`);
|
|
2869
|
+
};
|
|
2870
|
+
if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) return (message) => {
|
|
2871
|
+
console.debug(`
|
|
2872
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance)(`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2862
2873
|
`);
|
|
2863
2874
|
};
|
|
2864
2875
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) return (message) => {
|
|
@@ -37,7 +37,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
37
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
40
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-5DQF4GNF.js
|
|
41
41
|
var DEFAULT_COLOR_CONFIG = {
|
|
42
42
|
light: {
|
|
43
43
|
background: "#fafafa",
|
|
@@ -51,6 +51,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
51
51
|
warning: "#e3b341",
|
|
52
52
|
danger: "#D8314A",
|
|
53
53
|
fatal: "#51070f",
|
|
54
|
+
performance: "#13c302",
|
|
54
55
|
link: "#3fa6ff",
|
|
55
56
|
positive: "#22c55e",
|
|
56
57
|
negative: "#dc2626",
|
|
@@ -72,6 +73,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
72
73
|
warning: "#f3d371",
|
|
73
74
|
danger: "#D8314A",
|
|
74
75
|
fatal: "#a40e26",
|
|
76
|
+
performance: "#80fd74",
|
|
75
77
|
link: "#3fa6ff",
|
|
76
78
|
positive: "#22c55e",
|
|
77
79
|
negative: "#dc2626",
|
|
@@ -2214,7 +2216,7 @@ var require_source = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2214
2216
|
}));
|
|
2215
2217
|
|
|
2216
2218
|
//#endregion
|
|
2217
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2219
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-HVVJHTFS.js
|
|
2218
2220
|
var import_source = /* @__PURE__ */ __toESM(require_source(), 1);
|
|
2219
2221
|
var chalkDefault = {
|
|
2220
2222
|
hex: (_) => (message) => message,
|
|
@@ -2246,14 +2248,14 @@ var getChalk = () => {
|
|
|
2246
2248
|
};
|
|
2247
2249
|
|
|
2248
2250
|
//#endregion
|
|
2249
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2251
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-G2MK47WL.js
|
|
2250
2252
|
function isUnicodeSupported() {
|
|
2251
2253
|
if (process.platform !== "win32") return process.env.TERM !== "linux";
|
|
2252
2254
|
return Boolean(process.env.WT_SESSION) || Boolean(process.env.TERMINUS_SUBLIME) || process.env.ConEmuTask === "{cmd::Cmder}" || process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
2253
2255
|
}
|
|
2254
2256
|
|
|
2255
2257
|
//#endregion
|
|
2256
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2258
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-RALMUN5C.js
|
|
2257
2259
|
var LogLevel = {
|
|
2258
2260
|
SILENT: 0,
|
|
2259
2261
|
FATAL: 10,
|
|
@@ -2261,6 +2263,7 @@ var LogLevel = {
|
|
|
2261
2263
|
WARN: 30,
|
|
2262
2264
|
SUCCESS: 35,
|
|
2263
2265
|
INFO: 40,
|
|
2266
|
+
PERFORMANCE: 50,
|
|
2264
2267
|
DEBUG: 60,
|
|
2265
2268
|
TRACE: 70,
|
|
2266
2269
|
ALL: 100
|
|
@@ -2272,19 +2275,21 @@ var LogLevelLabel = {
|
|
|
2272
2275
|
WARN: "warn",
|
|
2273
2276
|
SUCCESS: "success",
|
|
2274
2277
|
INFO: "info",
|
|
2278
|
+
PERFORMANCE: "performance",
|
|
2275
2279
|
DEBUG: "debug",
|
|
2276
2280
|
TRACE: "trace",
|
|
2277
2281
|
ALL: "all"
|
|
2278
2282
|
};
|
|
2279
2283
|
|
|
2280
2284
|
//#endregion
|
|
2281
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2285
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-ZFNAUMQS.js
|
|
2282
2286
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
2283
2287
|
var CONSOLE_ICONS = {
|
|
2284
2288
|
[LogLevelLabel.ERROR]: useIcon("✘", "×"),
|
|
2285
2289
|
[LogLevelLabel.FATAL]: useIcon("🕱", "×"),
|
|
2286
2290
|
[LogLevelLabel.WARN]: useIcon("⚠", "‼"),
|
|
2287
2291
|
[LogLevelLabel.INFO]: useIcon("ℹ", "i"),
|
|
2292
|
+
[LogLevelLabel.PERFORMANCE]: useIcon("⏱", "⏱"),
|
|
2288
2293
|
[LogLevelLabel.SUCCESS]: useIcon("✔", "√"),
|
|
2289
2294
|
[LogLevelLabel.DEBUG]: useIcon("🛠", "D"),
|
|
2290
2295
|
[LogLevelLabel.TRACE]: useIcon("⚙", "T"),
|
|
@@ -2292,18 +2297,19 @@ var CONSOLE_ICONS = {
|
|
|
2292
2297
|
};
|
|
2293
2298
|
|
|
2294
2299
|
//#endregion
|
|
2295
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2300
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-CZ4IE2QN.js
|
|
2296
2301
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
2297
2302
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
2298
2303
|
};
|
|
2299
2304
|
|
|
2300
2305
|
//#endregion
|
|
2301
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2306
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-SXPH7ILL.js
|
|
2302
2307
|
var getLogLevel = (label) => {
|
|
2303
2308
|
switch (label) {
|
|
2304
2309
|
case "all": return LogLevel.ALL;
|
|
2305
2310
|
case "trace": return LogLevel.TRACE;
|
|
2306
2311
|
case "debug": return LogLevel.DEBUG;
|
|
2312
|
+
case "performance": return LogLevel.PERFORMANCE;
|
|
2307
2313
|
case "info": return LogLevel.INFO;
|
|
2308
2314
|
case "warn": return LogLevel.WARN;
|
|
2309
2315
|
case "error": return LogLevel.ERROR;
|
|
@@ -2314,7 +2320,7 @@ var getLogLevel = (label) => {
|
|
|
2314
2320
|
};
|
|
2315
2321
|
|
|
2316
2322
|
//#endregion
|
|
2317
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2323
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.72_zod@4.3.6/node_modules/@storm-software/config-tools/dist/chunk-XHJNCOIU.js
|
|
2318
2324
|
var daysInYear = 365.2425;
|
|
2319
2325
|
-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3);
|
|
2320
2326
|
var secondsInDay = 3600 * 24;
|
|
@@ -2861,6 +2867,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? DEFAULT_COLOR_C
|
|
|
2861
2867
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) return (message) => {
|
|
2862
2868
|
console.info(`
|
|
2863
2869
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2870
|
+
`);
|
|
2871
|
+
};
|
|
2872
|
+
if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) return (message) => {
|
|
2873
|
+
console.debug(`
|
|
2874
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance)(`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2864
2875
|
`);
|
|
2865
2876
|
};
|
|
2866
2877
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) return (message) => {
|
|
@@ -3003,4 +3014,4 @@ async function resolveOptions(options) {
|
|
|
3003
3014
|
|
|
3004
3015
|
//#endregion
|
|
3005
3016
|
export { writeWarning as n, resolveOptions as t };
|
|
3006
|
-
//# sourceMappingURL=helpers-
|
|
3017
|
+
//# sourceMappingURL=helpers-DWQ2iGfn.mjs.map
|