@stryke/capnp 0.6.1 → 0.6.3
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 +18 -12
- package/bin/capnpc.js +18 -12
- package/dist/capnp.cjs +4 -119
- package/dist/capnp.d.cts +2 -1
- package/dist/capnp.d.ts +2 -1
- package/dist/capnp.js +5 -120
- package/dist/{chunk-IVTBYMMN.cjs → chunk-5MK6PQWW.cjs} +3 -3
- package/dist/chunk-AHJJINE5.cjs +1 -0
- package/dist/{chunk-YOA3BS5Q.cjs → chunk-CFDWCYSU.cjs} +870 -823
- package/dist/{chunk-I2TLOFS6.js → chunk-COUAFT7O.js} +82 -35
- package/dist/{chunk-5Y2STPPF.cjs → chunk-M5QB7J6H.cjs} +821 -821
- package/dist/{chunk-UHN7QD4F.js → chunk-N5AOPRAP.js} +3 -3
- package/dist/{chunk-FNOKUFI5.js → chunk-QHIE4YNG.js} +9 -9
- package/dist/chunk-TZHOQHWF.js +0 -0
- package/dist/compile.cjs +3 -3
- package/dist/compile.d.cts +1 -0
- package/dist/compile.d.ts +1 -0
- package/dist/compile.js +2 -2
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/rpc.cjs +10 -10
- package/dist/rpc.js +2 -2
- package/dist/types.d.cts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/capnp-DxRiMkXq.d.cts +0 -22
- package/dist/capnp-DxRiMkXq.d.ts +0 -22
- package/dist/chunk-NZGPVGFZ.js +0 -130
- package/dist/chunk-UNTMJSWJ.cjs +0 -130
package/bin/capnpc.cjs
CHANGED
|
@@ -945,6 +945,10 @@ function findFilePath(filePath) {
|
|
|
945
945
|
return result === "/" ? result : result.replace(/\/$/, "");
|
|
946
946
|
}
|
|
947
947
|
__name(findFilePath, "findFilePath");
|
|
948
|
+
function relativePath(from, to, withEndSlash = false) {
|
|
949
|
+
return (0, import_node_path.relative)(withEndSlash !== true ? from.replace(/\/$/, "") : from, withEndSlash !== true ? to.replace(/\/$/, "") : to);
|
|
950
|
+
}
|
|
951
|
+
__name(relativePath, "relativePath");
|
|
948
952
|
|
|
949
953
|
// bin/capnpc.ts
|
|
950
954
|
var import_commander = require("commander");
|
|
@@ -984,10 +988,10 @@ var writeFile = /* @__PURE__ */ __name(async (filePath, content = "", options =
|
|
|
984
988
|
return (0, import_promises4.writeFile)(filePath, content || "", options);
|
|
985
989
|
}, "writeFile");
|
|
986
990
|
|
|
987
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
991
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
988
992
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
989
993
|
|
|
990
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
994
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs
|
|
991
995
|
var ListElementSize = /* @__PURE__ */ ((ListElementSize2) => {
|
|
992
996
|
ListElementSize2[ListElementSize2["VOID"] = 0] = "VOID";
|
|
993
997
|
ListElementSize2[ListElementSize2["BIT"] = 1] = "BIT";
|
|
@@ -2980,7 +2984,7 @@ function checkDataBounds(byteOffset, byteLength, s) {
|
|
|
2980
2984
|
}
|
|
2981
2985
|
__name(checkDataBounds, "checkDataBounds");
|
|
2982
2986
|
|
|
2983
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2987
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs
|
|
2984
2988
|
function CompositeList(CompositeClass) {
|
|
2985
2989
|
return class extends List {
|
|
2986
2990
|
static _capnp = {
|
|
@@ -3051,7 +3055,7 @@ var getUint8Mask = _makePrimitiveMaskFn(
|
|
|
3051
3055
|
DataView.prototype.setUint8
|
|
3052
3056
|
);
|
|
3053
3057
|
|
|
3054
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
3058
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/capnp/schema.mjs
|
|
3055
3059
|
var _capnpFileId = BigInt("0xa93fc509624c72d9");
|
|
3056
3060
|
var Node_Parameter = class extends Struct {
|
|
3057
3061
|
static {
|
|
@@ -5711,7 +5715,7 @@ CodeGeneratorRequest._Nodes = CompositeList(Node);
|
|
|
5711
5715
|
CodeGeneratorRequest._SourceInfo = CompositeList(Node_SourceInfo);
|
|
5712
5716
|
CodeGeneratorRequest._RequestedFiles = CompositeList(CodeGeneratorRequest_RequestedFile);
|
|
5713
5717
|
|
|
5714
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
5718
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.GpvEvMIK.mjs
|
|
5715
5719
|
var ArenaKind = /* @__PURE__ */ ((ArenaKind2) => {
|
|
5716
5720
|
ArenaKind2[ArenaKind2["SINGLE_SEGMENT"] = 0] = "SINGLE_SEGMENT";
|
|
5717
5721
|
ArenaKind2[ArenaKind2["MULTI_SEGMENT"] = 1] = "MULTI_SEGMENT";
|
|
@@ -6708,7 +6712,7 @@ function copy(m) {
|
|
|
6708
6712
|
}
|
|
6709
6713
|
__name(copy, "copy");
|
|
6710
6714
|
|
|
6711
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
6715
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
6712
6716
|
var GEN_EXPLICIT_DEFAULT_NON_PRIMITIVE = "CAPNP-ES000 Don't know how to generate a %s field with an explicit default value.";
|
|
6713
6717
|
var GEN_FIELD_NON_INLINE_STRUCT_LIST = "CAPNP-ES001 Don't know how to generate non-inline struct lists.";
|
|
6714
6718
|
var GEN_NODE_LOOKUP_FAIL = "CAPNP-ES002 Failed to look up node id %s.";
|
|
@@ -7857,7 +7861,7 @@ function generateCapnpImport(ctx) {
|
|
|
7857
7861
|
(n) => n.name === "importPath"
|
|
7858
7862
|
);
|
|
7859
7863
|
const importAnnotation = tsImportPathAnnotation && fileNode.annotations.find((a) => a.id === tsImportPathAnnotation.id);
|
|
7860
|
-
const importPath = importAnnotation === void 0 ? "capnp
|
|
7864
|
+
const importPath = importAnnotation === void 0 ? "storm-capnp" : importAnnotation.value.text;
|
|
7861
7865
|
ctx.codeParts.push(`import * as $ from '${importPath}';`);
|
|
7862
7866
|
}
|
|
7863
7867
|
__name(generateCapnpImport, "generateCapnpImport");
|
|
@@ -7866,7 +7870,7 @@ function generateNestedImports(ctx) {
|
|
|
7866
7870
|
const { name } = imp;
|
|
7867
7871
|
let importPath;
|
|
7868
7872
|
if (name.startsWith("/capnp/")) {
|
|
7869
|
-
importPath = `capnp
|
|
7873
|
+
importPath = `storm-capnp/capnp/${name.slice(7).replace(/\.capnp$/, "")}`;
|
|
7870
7874
|
} else {
|
|
7871
7875
|
importPath = name.replace(/\.capnp$/, ".js");
|
|
7872
7876
|
if (importPath[0] !== ".") {
|
|
@@ -7951,6 +7955,8 @@ function tsCompile(files, dts, js, tsconfig) {
|
|
|
7951
7955
|
const compileOptions = {
|
|
7952
7956
|
moduleResolution: import_typescript.default.ModuleResolutionKind.Bundler,
|
|
7953
7957
|
target: import_typescript.default.ScriptTarget.ESNext,
|
|
7958
|
+
strict: true,
|
|
7959
|
+
...tsconfig,
|
|
7954
7960
|
noEmitOnError: false,
|
|
7955
7961
|
noFallthroughCasesInSwitch: true,
|
|
7956
7962
|
preserveConstEnums: true,
|
|
@@ -7960,8 +7966,6 @@ function tsCompile(files, dts, js, tsconfig) {
|
|
|
7960
7966
|
removeComments: false,
|
|
7961
7967
|
skipLibCheck: true,
|
|
7962
7968
|
sourceMap: false,
|
|
7963
|
-
strict: true,
|
|
7964
|
-
...tsconfig,
|
|
7965
7969
|
emitDeclarationOnly: dts && !js,
|
|
7966
7970
|
declaration: dts
|
|
7967
7971
|
};
|
|
@@ -8006,7 +8010,7 @@ function tsCompile(files, dts, js, tsconfig) {
|
|
|
8006
8010
|
}
|
|
8007
8011
|
__name(tsCompile, "tsCompile");
|
|
8008
8012
|
|
|
8009
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
8013
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/compiler/index.mjs
|
|
8010
8014
|
var import_typescript2 = require("typescript");
|
|
8011
8015
|
|
|
8012
8016
|
// src/compile.ts
|
|
@@ -8135,9 +8139,10 @@ function createProgram() {
|
|
|
8135
8139
|
});
|
|
8136
8140
|
const outputOption = new import_commander.Option("-o --output <path>", "The directory to output the generated files to");
|
|
8137
8141
|
const tsconfigOption = new import_commander.Option("-p --tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").default(joinPaths(process.cwd(), "tsconfig.json"));
|
|
8142
|
+
const workspaceRootOption = new import_commander.Option("-w --workspace-root <path>", "The path to the workspace root directory").default(root);
|
|
8138
8143
|
program.command("compile", {
|
|
8139
8144
|
isDefault: true
|
|
8140
|
-
}).description("Run the Storm Cap'n Proto compiler").addOption(schemaOption).addOption(outputOption).addOption(importPathOption).addOption(tsconfigOption).addOption(generateId).addOption(standardImportOption).addOption(tsOption).addOption(jsOption).addOption(dtsOption).action(compileAction).showSuggestionAfterError(true).showHelpAfterError(true);
|
|
8145
|
+
}).description("Run the Storm Cap'n Proto compiler").addOption(schemaOption).addOption(outputOption).addOption(importPathOption).addOption(tsconfigOption).addOption(generateId).addOption(standardImportOption).addOption(tsOption).addOption(jsOption).addOption(dtsOption).addOption(workspaceRootOption).action(compileAction).showSuggestionAfterError(true).showHelpAfterError(true);
|
|
8141
8146
|
return program;
|
|
8142
8147
|
}
|
|
8143
8148
|
__name(createProgram, "createProgram");
|
|
@@ -8155,6 +8160,7 @@ async function compileAction(options) {
|
|
|
8155
8160
|
const tsconfig = import_typescript3.default.parseJsonConfigFileContent(resolvedTsconfig, import_typescript3.default.sys, findFilePath(options.tsconfig));
|
|
8156
8161
|
tsconfig.options.configFilePath = options.tsconfig;
|
|
8157
8162
|
tsconfig.options.noImplicitOverride = false;
|
|
8163
|
+
tsconfig.options.outDir = relativePath(findFilePath(joinPaths(options.workspaceRoot, options.tsconfig)), joinPaths(options.workspaceRoot, options.schema.length > 0 && options.schema[0] ? options.schema[0].endsWith(".capnp") ? findFilePath(options.schema[0]) : options.schema[0] : ""));
|
|
8158
8164
|
const schema = [];
|
|
8159
8165
|
for (const schemaPath of options.schema) {
|
|
8160
8166
|
if (!schemaPath || !schemaPath.includes("*") && !existsSync2(schemaPath)) {
|
package/bin/capnpc.js
CHANGED
|
@@ -913,6 +913,10 @@ function findFilePath(filePath) {
|
|
|
913
913
|
return result === "/" ? result : result.replace(/\/$/, "");
|
|
914
914
|
}
|
|
915
915
|
__name(findFilePath, "findFilePath");
|
|
916
|
+
function relativePath(from, to, withEndSlash = false) {
|
|
917
|
+
return relative(withEndSlash !== true ? from.replace(/\/$/, "") : from, withEndSlash !== true ? to.replace(/\/$/, "") : to);
|
|
918
|
+
}
|
|
919
|
+
__name(relativePath, "relativePath");
|
|
916
920
|
|
|
917
921
|
// bin/capnpc.ts
|
|
918
922
|
import { Command, Option } from "commander";
|
|
@@ -952,10 +956,10 @@ var writeFile = /* @__PURE__ */ __name(async (filePath, content = "", options =
|
|
|
952
956
|
return writeFileFs(filePath, content || "", options);
|
|
953
957
|
}, "writeFile");
|
|
954
958
|
|
|
955
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
959
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
956
960
|
import ts from "typescript";
|
|
957
961
|
|
|
958
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
962
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs
|
|
959
963
|
var ListElementSize = /* @__PURE__ */ ((ListElementSize2) => {
|
|
960
964
|
ListElementSize2[ListElementSize2["VOID"] = 0] = "VOID";
|
|
961
965
|
ListElementSize2[ListElementSize2["BIT"] = 1] = "BIT";
|
|
@@ -2948,7 +2952,7 @@ function checkDataBounds(byteOffset, byteLength, s) {
|
|
|
2948
2952
|
}
|
|
2949
2953
|
__name(checkDataBounds, "checkDataBounds");
|
|
2950
2954
|
|
|
2951
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2955
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs
|
|
2952
2956
|
function CompositeList(CompositeClass) {
|
|
2953
2957
|
return class extends List {
|
|
2954
2958
|
static _capnp = {
|
|
@@ -3019,7 +3023,7 @@ var getUint8Mask = _makePrimitiveMaskFn(
|
|
|
3019
3023
|
DataView.prototype.setUint8
|
|
3020
3024
|
);
|
|
3021
3025
|
|
|
3022
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
3026
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/capnp/schema.mjs
|
|
3023
3027
|
var _capnpFileId = BigInt("0xa93fc509624c72d9");
|
|
3024
3028
|
var Node_Parameter = class extends Struct {
|
|
3025
3029
|
static {
|
|
@@ -5679,7 +5683,7 @@ CodeGeneratorRequest._Nodes = CompositeList(Node);
|
|
|
5679
5683
|
CodeGeneratorRequest._SourceInfo = CompositeList(Node_SourceInfo);
|
|
5680
5684
|
CodeGeneratorRequest._RequestedFiles = CompositeList(CodeGeneratorRequest_RequestedFile);
|
|
5681
5685
|
|
|
5682
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
5686
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.GpvEvMIK.mjs
|
|
5683
5687
|
var ArenaKind = /* @__PURE__ */ ((ArenaKind2) => {
|
|
5684
5688
|
ArenaKind2[ArenaKind2["SINGLE_SEGMENT"] = 0] = "SINGLE_SEGMENT";
|
|
5685
5689
|
ArenaKind2[ArenaKind2["MULTI_SEGMENT"] = 1] = "MULTI_SEGMENT";
|
|
@@ -6676,7 +6680,7 @@ function copy(m) {
|
|
|
6676
6680
|
}
|
|
6677
6681
|
__name(copy, "copy");
|
|
6678
6682
|
|
|
6679
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
6683
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
6680
6684
|
var GEN_EXPLICIT_DEFAULT_NON_PRIMITIVE = "CAPNP-ES000 Don't know how to generate a %s field with an explicit default value.";
|
|
6681
6685
|
var GEN_FIELD_NON_INLINE_STRUCT_LIST = "CAPNP-ES001 Don't know how to generate non-inline struct lists.";
|
|
6682
6686
|
var GEN_NODE_LOOKUP_FAIL = "CAPNP-ES002 Failed to look up node id %s.";
|
|
@@ -7825,7 +7829,7 @@ function generateCapnpImport(ctx) {
|
|
|
7825
7829
|
(n) => n.name === "importPath"
|
|
7826
7830
|
);
|
|
7827
7831
|
const importAnnotation = tsImportPathAnnotation && fileNode.annotations.find((a) => a.id === tsImportPathAnnotation.id);
|
|
7828
|
-
const importPath = importAnnotation === void 0 ? "capnp
|
|
7832
|
+
const importPath = importAnnotation === void 0 ? "storm-capnp" : importAnnotation.value.text;
|
|
7829
7833
|
ctx.codeParts.push(`import * as $ from '${importPath}';`);
|
|
7830
7834
|
}
|
|
7831
7835
|
__name(generateCapnpImport, "generateCapnpImport");
|
|
@@ -7834,7 +7838,7 @@ function generateNestedImports(ctx) {
|
|
|
7834
7838
|
const { name } = imp;
|
|
7835
7839
|
let importPath;
|
|
7836
7840
|
if (name.startsWith("/capnp/")) {
|
|
7837
|
-
importPath = `capnp
|
|
7841
|
+
importPath = `storm-capnp/capnp/${name.slice(7).replace(/\.capnp$/, "")}`;
|
|
7838
7842
|
} else {
|
|
7839
7843
|
importPath = name.replace(/\.capnp$/, ".js");
|
|
7840
7844
|
if (importPath[0] !== ".") {
|
|
@@ -7919,6 +7923,8 @@ function tsCompile(files, dts, js, tsconfig) {
|
|
|
7919
7923
|
const compileOptions = {
|
|
7920
7924
|
moduleResolution: ts.ModuleResolutionKind.Bundler,
|
|
7921
7925
|
target: ts.ScriptTarget.ESNext,
|
|
7926
|
+
strict: true,
|
|
7927
|
+
...tsconfig,
|
|
7922
7928
|
noEmitOnError: false,
|
|
7923
7929
|
noFallthroughCasesInSwitch: true,
|
|
7924
7930
|
preserveConstEnums: true,
|
|
@@ -7928,8 +7934,6 @@ function tsCompile(files, dts, js, tsconfig) {
|
|
|
7928
7934
|
removeComments: false,
|
|
7929
7935
|
skipLibCheck: true,
|
|
7930
7936
|
sourceMap: false,
|
|
7931
|
-
strict: true,
|
|
7932
|
-
...tsconfig,
|
|
7933
7937
|
emitDeclarationOnly: dts && !js,
|
|
7934
7938
|
declaration: dts
|
|
7935
7939
|
};
|
|
@@ -7974,7 +7978,7 @@ function tsCompile(files, dts, js, tsconfig) {
|
|
|
7974
7978
|
}
|
|
7975
7979
|
__name(tsCompile, "tsCompile");
|
|
7976
7980
|
|
|
7977
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
7981
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/compiler/index.mjs
|
|
7978
7982
|
import "typescript";
|
|
7979
7983
|
|
|
7980
7984
|
// src/compile.ts
|
|
@@ -8103,9 +8107,10 @@ function createProgram() {
|
|
|
8103
8107
|
});
|
|
8104
8108
|
const outputOption = new Option("-o --output <path>", "The directory to output the generated files to");
|
|
8105
8109
|
const tsconfigOption = new Option("-p --tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").default(joinPaths(process.cwd(), "tsconfig.json"));
|
|
8110
|
+
const workspaceRootOption = new Option("-w --workspace-root <path>", "The path to the workspace root directory").default(root);
|
|
8106
8111
|
program.command("compile", {
|
|
8107
8112
|
isDefault: true
|
|
8108
|
-
}).description("Run the Storm Cap'n Proto compiler").addOption(schemaOption).addOption(outputOption).addOption(importPathOption).addOption(tsconfigOption).addOption(generateId).addOption(standardImportOption).addOption(tsOption).addOption(jsOption).addOption(dtsOption).action(compileAction).showSuggestionAfterError(true).showHelpAfterError(true);
|
|
8113
|
+
}).description("Run the Storm Cap'n Proto compiler").addOption(schemaOption).addOption(outputOption).addOption(importPathOption).addOption(tsconfigOption).addOption(generateId).addOption(standardImportOption).addOption(tsOption).addOption(jsOption).addOption(dtsOption).addOption(workspaceRootOption).action(compileAction).showSuggestionAfterError(true).showHelpAfterError(true);
|
|
8109
8114
|
return program;
|
|
8110
8115
|
}
|
|
8111
8116
|
__name(createProgram, "createProgram");
|
|
@@ -8123,6 +8128,7 @@ async function compileAction(options) {
|
|
|
8123
8128
|
const tsconfig = ts2.parseJsonConfigFileContent(resolvedTsconfig, ts2.sys, findFilePath(options.tsconfig));
|
|
8124
8129
|
tsconfig.options.configFilePath = options.tsconfig;
|
|
8125
8130
|
tsconfig.options.noImplicitOverride = false;
|
|
8131
|
+
tsconfig.options.outDir = relativePath(findFilePath(joinPaths(options.workspaceRoot, options.tsconfig)), joinPaths(options.workspaceRoot, options.schema.length > 0 && options.schema[0] ? options.schema[0].endsWith(".capnp") ? findFilePath(options.schema[0]) : options.schema[0] : ""));
|
|
8126
8132
|
const schema = [];
|
|
8127
8133
|
for (const schemaPath of options.schema) {
|
|
8128
8134
|
if (!schemaPath || !schemaPath.includes("*") && !existsSync2(schemaPath)) {
|
package/dist/capnp.cjs
CHANGED
|
@@ -1,123 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-AHJJINE5.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
var _chunkCFDWCYSUcjs = require('./chunk-CFDWCYSU.cjs');
|
|
5
|
+
require('./chunk-5MK6PQWW.cjs');
|
|
4
6
|
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var _chunkYOA3BS5Qcjs = require('./chunk-YOA3BS5Q.cjs');
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
var _chunkIVTBYMMNcjs = require('./chunk-IVTBYMMN.cjs');
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
exports.AnyPointerList = _chunkYOA3BS5Qcjs.AnyPointerList; exports.BoolList = _chunkYOA3BS5Qcjs.BoolList; exports.CompositeList = _chunkIVTBYMMNcjs.CompositeList; exports.Conn = _chunkYOA3BS5Qcjs.Conn; exports.Data = _chunkIVTBYMMNcjs.Data; exports.DataList = _chunkYOA3BS5Qcjs.DataList; exports.Deferred = _chunkYOA3BS5Qcjs.Deferred; exports.DeferredTransport = _chunkYOA3BS5Qcjs.DeferredTransport; exports.ErrorClient = _chunkIVTBYMMNcjs.ErrorClient; exports.Float32List = _chunkYOA3BS5Qcjs.Float32List; exports.Float64List = _chunkYOA3BS5Qcjs.Float64List; exports.Int16List = _chunkYOA3BS5Qcjs.Int16List; exports.Int32List = _chunkYOA3BS5Qcjs.Int32List; exports.Int64List = _chunkYOA3BS5Qcjs.Int64List; exports.Int8List = _chunkYOA3BS5Qcjs.Int8List; exports.Interface = _chunkYOA3BS5Qcjs.Interface; exports.InterfaceList = _chunkYOA3BS5Qcjs.InterfaceList; exports.List = _chunkIVTBYMMNcjs.List; exports.ListElementSize = _chunkIVTBYMMNcjs.ListElementSize; exports.Message = _chunkIVTBYMMNcjs.Message; exports.ObjectSize = _chunkIVTBYMMNcjs.ObjectSize; exports.Orphan = _chunkIVTBYMMNcjs.Orphan; exports.Pipeline = _chunkYOA3BS5Qcjs.Pipeline; exports.Pointer = _chunkIVTBYMMNcjs.Pointer; exports.PointerList = _chunkYOA3BS5Qcjs.PointerList; exports.PointerType = _chunkIVTBYMMNcjs.PointerType; exports.Registry = _chunkYOA3BS5Qcjs.Registry; exports.Server = _chunkYOA3BS5Qcjs.Server; exports.Struct = _chunkIVTBYMMNcjs.Struct; exports.Text = _chunkIVTBYMMNcjs.Text; exports.TextList = _chunkYOA3BS5Qcjs.TextList; exports.Uint16List = _chunkYOA3BS5Qcjs.Uint16List; exports.Uint32List = _chunkYOA3BS5Qcjs.Uint32List; exports.Uint64List = _chunkYOA3BS5Qcjs.Uint64List; exports.Uint8List = _chunkYOA3BS5Qcjs.Uint8List; exports.Void = _chunkYOA3BS5Qcjs.Void; exports.VoidList = _chunkYOA3BS5Qcjs.VoidList; exports.answerPipelineClient = _chunkYOA3BS5Qcjs.answerPipelineClient; exports.clientFromResolution = _chunkYOA3BS5Qcjs.clientFromResolution; exports.clientOrNull = _chunkIVTBYMMNcjs.clientOrNull; exports.copyCall = _chunkYOA3BS5Qcjs.copyCall; exports.getBitMask = _chunkIVTBYMMNcjs.getBitMask; exports.getFloat32Mask = _chunkIVTBYMMNcjs.getFloat32Mask; exports.getFloat64Mask = _chunkIVTBYMMNcjs.getFloat64Mask; exports.getInt16Mask = _chunkIVTBYMMNcjs.getInt16Mask; exports.getInt32Mask = _chunkIVTBYMMNcjs.getInt32Mask; exports.getInt64Mask = _chunkIVTBYMMNcjs.getInt64Mask; exports.getInt8Mask = _chunkIVTBYMMNcjs.getInt8Mask; exports.getUint16Mask = _chunkIVTBYMMNcjs.getUint16Mask; exports.getUint32Mask = _chunkIVTBYMMNcjs.getUint32Mask; exports.getUint64Mask = _chunkIVTBYMMNcjs.getUint64Mask; exports.getUint8Mask = _chunkIVTBYMMNcjs.getUint8Mask; exports.isDataCall = _chunkYOA3BS5Qcjs.isDataCall; exports.isFuncCall = _chunkYOA3BS5Qcjs.isFuncCall; exports.isSameClient = _chunkYOA3BS5Qcjs.isSameClient; exports.placeParams = _chunkYOA3BS5Qcjs.placeParams; exports.readRawPointer = _chunkIVTBYMMNcjs.readRawPointer; exports.utils = _chunkYOA3BS5Qcjs.utils;
|
|
8
|
+
exports.capnp = _chunkCFDWCYSUcjs.dist_exports;
|
package/dist/capnp.d.cts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as capnpEs from 'capnp-es';
|
|
2
|
+
export { capnpEs as capnp };
|
package/dist/capnp.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as capnpEs from 'capnp-es';
|
|
2
|
+
export { capnpEs as capnp };
|
package/dist/capnp.js
CHANGED
|
@@ -1,123 +1,8 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-TZHOQHWF.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
DataList,
|
|
7
|
-
Deferred,
|
|
8
|
-
DeferredTransport,
|
|
9
|
-
Float32List,
|
|
10
|
-
Float64List,
|
|
11
|
-
Int16List,
|
|
12
|
-
Int32List,
|
|
13
|
-
Int64List,
|
|
14
|
-
Int8List,
|
|
15
|
-
Interface,
|
|
16
|
-
InterfaceList,
|
|
17
|
-
Pipeline,
|
|
18
|
-
PointerList,
|
|
19
|
-
Registry,
|
|
20
|
-
Server,
|
|
21
|
-
TextList,
|
|
22
|
-
Uint16List,
|
|
23
|
-
Uint32List,
|
|
24
|
-
Uint64List,
|
|
25
|
-
Uint8List,
|
|
26
|
-
Void,
|
|
27
|
-
VoidList,
|
|
28
|
-
answerPipelineClient,
|
|
29
|
-
clientFromResolution,
|
|
30
|
-
copyCall,
|
|
31
|
-
isDataCall,
|
|
32
|
-
isFuncCall,
|
|
33
|
-
isSameClient,
|
|
34
|
-
placeParams,
|
|
35
|
-
utils
|
|
36
|
-
} from "./chunk-I2TLOFS6.js";
|
|
37
|
-
import {
|
|
38
|
-
CompositeList,
|
|
39
|
-
Data,
|
|
40
|
-
ErrorClient,
|
|
41
|
-
List,
|
|
42
|
-
ListElementSize,
|
|
43
|
-
Message,
|
|
44
|
-
ObjectSize,
|
|
45
|
-
Orphan,
|
|
46
|
-
Pointer,
|
|
47
|
-
PointerType,
|
|
48
|
-
Struct,
|
|
49
|
-
Text,
|
|
50
|
-
clientOrNull,
|
|
51
|
-
getBitMask,
|
|
52
|
-
getFloat32Mask,
|
|
53
|
-
getFloat64Mask,
|
|
54
|
-
getInt16Mask,
|
|
55
|
-
getInt32Mask,
|
|
56
|
-
getInt64Mask,
|
|
57
|
-
getInt8Mask,
|
|
58
|
-
getUint16Mask,
|
|
59
|
-
getUint32Mask,
|
|
60
|
-
getUint64Mask,
|
|
61
|
-
getUint8Mask,
|
|
62
|
-
readRawPointer
|
|
63
|
-
} from "./chunk-UHN7QD4F.js";
|
|
3
|
+
dist_exports
|
|
4
|
+
} from "./chunk-COUAFT7O.js";
|
|
5
|
+
import "./chunk-N5AOPRAP.js";
|
|
64
6
|
export {
|
|
65
|
-
|
|
66
|
-
BoolList,
|
|
67
|
-
CompositeList,
|
|
68
|
-
Conn,
|
|
69
|
-
Data,
|
|
70
|
-
DataList,
|
|
71
|
-
Deferred,
|
|
72
|
-
DeferredTransport,
|
|
73
|
-
ErrorClient,
|
|
74
|
-
Float32List,
|
|
75
|
-
Float64List,
|
|
76
|
-
Int16List,
|
|
77
|
-
Int32List,
|
|
78
|
-
Int64List,
|
|
79
|
-
Int8List,
|
|
80
|
-
Interface,
|
|
81
|
-
InterfaceList,
|
|
82
|
-
List,
|
|
83
|
-
ListElementSize,
|
|
84
|
-
Message,
|
|
85
|
-
ObjectSize,
|
|
86
|
-
Orphan,
|
|
87
|
-
Pipeline,
|
|
88
|
-
Pointer,
|
|
89
|
-
PointerList,
|
|
90
|
-
PointerType,
|
|
91
|
-
Registry,
|
|
92
|
-
Server,
|
|
93
|
-
Struct,
|
|
94
|
-
Text,
|
|
95
|
-
TextList,
|
|
96
|
-
Uint16List,
|
|
97
|
-
Uint32List,
|
|
98
|
-
Uint64List,
|
|
99
|
-
Uint8List,
|
|
100
|
-
Void,
|
|
101
|
-
VoidList,
|
|
102
|
-
answerPipelineClient,
|
|
103
|
-
clientFromResolution,
|
|
104
|
-
clientOrNull,
|
|
105
|
-
copyCall,
|
|
106
|
-
getBitMask,
|
|
107
|
-
getFloat32Mask,
|
|
108
|
-
getFloat64Mask,
|
|
109
|
-
getInt16Mask,
|
|
110
|
-
getInt32Mask,
|
|
111
|
-
getInt64Mask,
|
|
112
|
-
getInt8Mask,
|
|
113
|
-
getUint16Mask,
|
|
114
|
-
getUint32Mask,
|
|
115
|
-
getUint64Mask,
|
|
116
|
-
getUint8Mask,
|
|
117
|
-
isDataCall,
|
|
118
|
-
isFuncCall,
|
|
119
|
-
isSameClient,
|
|
120
|
-
placeParams,
|
|
121
|
-
readRawPointer,
|
|
122
|
-
utils
|
|
7
|
+
dist_exports as capnp
|
|
123
8
|
};
|
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
8
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs
|
|
9
9
|
var ListElementSize = /* @__PURE__ */ ((ListElementSize2) => {
|
|
10
10
|
ListElementSize2[ListElementSize2["VOID"] = 0] = "VOID";
|
|
11
11
|
ListElementSize2[ListElementSize2["BIT"] = 1] = "BIT";
|
|
@@ -2092,7 +2092,7 @@ function checkDataBounds(byteOffset, byteLength, s) {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
__name(checkDataBounds, "checkDataBounds");
|
|
2094
2094
|
|
|
2095
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2095
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.GpvEvMIK.mjs
|
|
2096
2096
|
var ArenaKind = /* @__PURE__ */ ((ArenaKind2) => {
|
|
2097
2097
|
ArenaKind2[ArenaKind2["SINGLE_SEGMENT"] = 0] = "SINGLE_SEGMENT";
|
|
2098
2098
|
ArenaKind2[ArenaKind2["MULTI_SEGMENT"] = 1] = "MULTI_SEGMENT";
|
|
@@ -3089,7 +3089,7 @@ function copy(m) {
|
|
|
3089
3089
|
}
|
|
3090
3090
|
__name(copy, "copy");
|
|
3091
3091
|
|
|
3092
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
3092
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=8f737a83e1b5be10396ff9b257b56b8b8e7a3dbd2754765e9b1e2019839e9c31_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs
|
|
3093
3093
|
function CompositeList(CompositeClass) {
|
|
3094
3094
|
return (_class10 = class extends List {
|
|
3095
3095
|
static __initStatic23() {this._capnp = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|