@powerlines/plugin-rspack 0.5.136 → 0.5.138
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/dist/_virtual/rolldown_runtime.cjs +2 -0
- package/dist/_virtual/rolldown_runtime.mjs +32 -0
- package/dist/helpers/unplugin.cjs +3 -4
- package/dist/helpers/unplugin.mjs +2 -3
- package/dist/index.cjs +4 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/node_modules/.pnpm/@jridgewell_gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.cjs +2 -0
- package/dist/node_modules/.pnpm/@jridgewell_gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +4 -0
- package/dist/node_modules/.pnpm/@jridgewell_remapping@2.3.5/node_modules/@jridgewell/remapping/dist/remapping.cjs +2 -0
- package/dist/node_modules/.pnpm/@jridgewell_remapping@2.3.5/node_modules/@jridgewell/remapping/dist/remapping.mjs +4 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +15 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +15 -0
- package/dist/node_modules/.pnpm/@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.cjs +1 -0
- package/dist/node_modules/.pnpm/@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +3 -0
- package/dist/node_modules/.pnpm/@storm-software_config-tools@1.188.75_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.cjs +16 -0
- package/dist/node_modules/.pnpm/@storm-software_config-tools@1.188.75_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs +15 -0
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.cjs +28 -0
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.mjs +23 -0
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.cjs +175 -0
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.mjs +170 -0
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.cjs +871 -0
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.mjs +866 -0
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.cjs +307 -0
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.mjs +302 -0
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.cjs +300 -0
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.mjs +295 -0
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.cjs +60 -0
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.mjs +55 -0
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/context-CehLHpzV.cjs +46 -0
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/context-CehLHpzV.mjs +44 -0
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.cjs +142 -0
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.mjs +140 -0
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/parse-CRORloGP.cjs +114 -0
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/parse-CRORloGP.mjs +112 -0
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/utils-CuyC8gTr.cjs +59 -0
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/utils-CuyC8gTr.mjs +54 -0
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/webpack-like-BU9ULG6P.cjs +35 -0
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/webpack-like-BU9ULG6P.mjs +33 -0
- package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/index.cjs +236 -0
- package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/index.mjs +231 -0
- package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.cjs +54 -0
- package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.mjs +49 -0
- package/dist/{powerlines → packages/powerlines}/src/types/config.d.mts +2 -4
- package/dist/{powerlines → packages/powerlines}/src/types/context.d.mts +5 -5
- package/dist/{powerlines → packages/powerlines}/src/types/fs.d.mts +1 -1
- package/dist/{powerlines → packages/powerlines}/src/types/tsconfig.d.mts +1 -1
- package/dist/types/plugin.d.mts +3 -3
- package/package.json +4 -5
- package/dist/powerlines/schemas/fs.cjs +0 -226
- package/dist/powerlines/schemas/fs.mjs +0 -224
- package/dist/powerlines/src/api.cjs +0 -580
- package/dist/powerlines/src/api.mjs +0 -578
- package/dist/powerlines/src/internal/babel/module-resolver-plugin.cjs +0 -86
- package/dist/powerlines/src/internal/babel/module-resolver-plugin.mjs +0 -84
- package/dist/powerlines/src/internal/helpers/environment.cjs +0 -52
- package/dist/powerlines/src/internal/helpers/environment.mjs +0 -48
- package/dist/powerlines/src/internal/helpers/generate-types.cjs +0 -51
- package/dist/powerlines/src/internal/helpers/generate-types.mjs +0 -49
- package/dist/powerlines/src/internal/helpers/hooks.cjs +0 -66
- package/dist/powerlines/src/internal/helpers/hooks.mjs +0 -64
- package/dist/powerlines/src/internal/helpers/install-dependencies.cjs +0 -25
- package/dist/powerlines/src/internal/helpers/install-dependencies.mjs +0 -24
- package/dist/powerlines/src/internal/helpers/install.cjs +0 -37
- package/dist/powerlines/src/internal/helpers/install.mjs +0 -36
- package/dist/powerlines/src/internal/helpers/resolve-tsconfig.cjs +0 -98
- package/dist/powerlines/src/internal/helpers/resolve-tsconfig.mjs +0 -94
- package/dist/powerlines/src/internal/helpers/resolver.cjs +0 -43
- package/dist/powerlines/src/internal/helpers/resolver.mjs +0 -41
- package/dist/powerlines/src/lib/build/rspack.cjs +0 -43
- package/dist/powerlines/src/lib/build/rspack.mjs +0 -41
- package/dist/powerlines/src/lib/config-file.cjs +0 -79
- package/dist/powerlines/src/lib/config-file.mjs +0 -76
- package/dist/powerlines/src/lib/contexts/api-context.cjs +0 -184
- package/dist/powerlines/src/lib/contexts/api-context.mjs +0 -182
- package/dist/powerlines/src/lib/contexts/context.cjs +0 -933
- package/dist/powerlines/src/lib/contexts/context.mjs +0 -931
- package/dist/powerlines/src/lib/contexts/environment-context.cjs +0 -195
- package/dist/powerlines/src/lib/contexts/environment-context.mjs +0 -194
- package/dist/powerlines/src/lib/contexts/plugin-context.cjs +0 -75
- package/dist/powerlines/src/lib/contexts/plugin-context.mjs +0 -74
- package/dist/powerlines/src/lib/entry.cjs +0 -69
- package/dist/powerlines/src/lib/entry.mjs +0 -67
- package/dist/powerlines/src/lib/fs/helpers.cjs +0 -85
- package/dist/powerlines/src/lib/fs/helpers.mjs +0 -81
- package/dist/powerlines/src/lib/fs/storage/base.cjs +0 -196
- package/dist/powerlines/src/lib/fs/storage/base.mjs +0 -195
- package/dist/powerlines/src/lib/fs/storage/file-system.cjs +0 -170
- package/dist/powerlines/src/lib/fs/storage/file-system.mjs +0 -169
- package/dist/powerlines/src/lib/fs/storage/virtual.cjs +0 -88
- package/dist/powerlines/src/lib/fs/storage/virtual.mjs +0 -87
- package/dist/powerlines/src/lib/fs/vfs.cjs +0 -830
- package/dist/powerlines/src/lib/fs/vfs.mjs +0 -828
- package/dist/powerlines/src/lib/logger.cjs +0 -58
- package/dist/powerlines/src/lib/logger.mjs +0 -55
- package/dist/powerlines/src/lib/typescript/ts-morph.cjs +0 -104
- package/dist/powerlines/src/lib/typescript/ts-morph.mjs +0 -102
- package/dist/powerlines/src/lib/typescript/tsconfig.cjs +0 -149
- package/dist/powerlines/src/lib/typescript/tsconfig.mjs +0 -144
- package/dist/powerlines/src/lib/unplugin/factory.cjs +0 -6
- package/dist/powerlines/src/lib/unplugin/factory.mjs +0 -8
- package/dist/powerlines/src/lib/unplugin/helpers.cjs +0 -29
- package/dist/powerlines/src/lib/unplugin/helpers.mjs +0 -27
- package/dist/powerlines/src/lib/unplugin/index.cjs +0 -3
- package/dist/powerlines/src/lib/unplugin/index.mjs +0 -5
- package/dist/powerlines/src/lib/unplugin/plugin.cjs +0 -128
- package/dist/powerlines/src/lib/unplugin/plugin.mjs +0 -127
- package/dist/powerlines/src/lib/utilities/file-header.cjs +0 -22
- package/dist/powerlines/src/lib/utilities/file-header.mjs +0 -21
- package/dist/powerlines/src/lib/utilities/meta.cjs +0 -45
- package/dist/powerlines/src/lib/utilities/meta.mjs +0 -41
- package/dist/powerlines/src/lib/utilities/source-file.cjs +0 -22
- package/dist/powerlines/src/lib/utilities/source-file.mjs +0 -21
- package/dist/powerlines/src/plugin-utils/helpers.cjs +0 -167
- package/dist/powerlines/src/plugin-utils/helpers.mjs +0 -156
- package/dist/powerlines/src/plugin-utils/paths.cjs +0 -36
- package/dist/powerlines/src/plugin-utils/paths.mjs +0 -35
- package/dist/powerlines/src/types/babel.d.mts +0 -4
- package/dist/powerlines/src/types/build.cjs +0 -23
- package/dist/powerlines/src/types/build.mjs +0 -21
- package/dist/powerlines/src/types/commands.cjs +0 -16
- package/dist/powerlines/src/types/commands.mjs +0 -15
- package/dist/powerlines/src/types/plugin.cjs +0 -33
- package/dist/powerlines/src/types/plugin.mjs +0 -32
- /package/dist/{powerlines → packages/powerlines}/src/internal/helpers/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/api.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/build.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/commands.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/plugin.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/resolved.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/unplugin.d.mts +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.js
|
|
4
|
+
var require_virtual_stats = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
6
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.VirtualStats = void 0;
|
|
10
|
+
const constants_1 = __importDefault(__require("node:constants"));
|
|
11
|
+
var VirtualStats = class {
|
|
12
|
+
constructor(config) {
|
|
13
|
+
for (const key in config) {
|
|
14
|
+
if (!Object.prototype.hasOwnProperty.call(config, key)) continue;
|
|
15
|
+
this[key] = config[key];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
_checkModeProperty(property) {
|
|
19
|
+
return (this.mode & constants_1.default.S_IFMT) === property;
|
|
20
|
+
}
|
|
21
|
+
isDirectory() {
|
|
22
|
+
return this._checkModeProperty(constants_1.default.S_IFDIR);
|
|
23
|
+
}
|
|
24
|
+
isFile() {
|
|
25
|
+
return this._checkModeProperty(constants_1.default.S_IFREG);
|
|
26
|
+
}
|
|
27
|
+
isBlockDevice() {
|
|
28
|
+
return this._checkModeProperty(constants_1.default.S_IFBLK);
|
|
29
|
+
}
|
|
30
|
+
isCharacterDevice() {
|
|
31
|
+
return this._checkModeProperty(constants_1.default.S_IFCHR);
|
|
32
|
+
}
|
|
33
|
+
isSymbolicLink() {
|
|
34
|
+
return this._checkModeProperty(constants_1.default.S_IFLNK);
|
|
35
|
+
}
|
|
36
|
+
isFIFO() {
|
|
37
|
+
return this._checkModeProperty(constants_1.default.S_IFIFO);
|
|
38
|
+
}
|
|
39
|
+
isSocket() {
|
|
40
|
+
return this._checkModeProperty(constants_1.default.S_IFSOCK);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.VirtualStats = VirtualStats;
|
|
44
|
+
}));
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export default require_virtual_stats();
|
|
48
|
+
|
|
49
|
+
export { require_virtual_stats };
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
|
|
2
|
-
import "./babel.mjs";
|
|
3
2
|
import { StoragePort, StoragePreset } from "./fs.mjs";
|
|
4
3
|
import { Plugin } from "./plugin.mjs";
|
|
5
4
|
import { TSConfig } from "./tsconfig.mjs";
|
|
6
5
|
import { PluginContext } from "./context.mjs";
|
|
7
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
8
|
-
import { transformAsync } from "@babel/core";
|
|
9
|
-
import "c12";
|
|
10
6
|
import { PreviewOptions } from "vite";
|
|
11
7
|
import { MaybePromise } from "@stryke/types/base";
|
|
12
8
|
import { Format } from "@storm-software/build-tools/types";
|
|
9
|
+
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
13
10
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
14
11
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
15
12
|
import { AssetGlob } from "@stryke/types/file";
|
|
16
13
|
import { DateString } from "compatx";
|
|
17
14
|
|
|
18
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
16
|
+
|
|
19
17
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
20
18
|
/**
|
|
21
19
|
* The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
|
|
@@ -5,16 +5,16 @@ import { Plugin } from "./plugin.mjs";
|
|
|
5
5
|
import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
|
|
6
6
|
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.mjs";
|
|
7
7
|
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
8
|
-
import { Project } from "ts-morph";
|
|
9
8
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
10
9
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
11
|
-
import { ParseResult, ParserOptions } from "oxc-parser";
|
|
12
|
-
import { RequestInfo, Response } from "undici";
|
|
13
|
-
import { Jiti } from "jiti";
|
|
14
|
-
import { SourceMap } from "magic-string";
|
|
15
10
|
import { NonUndefined } from "@stryke/types/base";
|
|
16
11
|
import { PackageJson } from "@stryke/types/package-json";
|
|
12
|
+
import { Jiti } from "jiti";
|
|
13
|
+
import { SourceMap } from "magic-string";
|
|
14
|
+
import { ParseResult, ParserOptions } from "oxc-parser";
|
|
17
15
|
import { Range } from "semver";
|
|
16
|
+
import { Project } from "ts-morph";
|
|
17
|
+
import { RequestInfo, Response } from "undici";
|
|
18
18
|
|
|
19
19
|
//#region ../powerlines/src/types/context.d.ts
|
|
20
20
|
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RspackBuildConfig } from "../powerlines/src/types/build.mjs";
|
|
2
|
-
import { RspackResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
3
|
-
import { PluginContext } from "../powerlines/src/types/context.mjs";
|
|
1
|
+
import { RspackBuildConfig } from "../packages/powerlines/src/types/build.mjs";
|
|
2
|
+
import { RspackResolvedConfig } from "../packages/powerlines/src/types/resolved.mjs";
|
|
3
|
+
import { PluginContext } from "../packages/powerlines/src/types/context.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/types/plugin.d.ts
|
|
6
6
|
type RspackPluginOptions = Partial<RspackBuildConfig>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-rspack",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.138",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to build projects using Webpack.",
|
|
6
6
|
"repository": {
|
|
@@ -152,13 +152,12 @@
|
|
|
152
152
|
"@stryke/types": "^0.10.29",
|
|
153
153
|
"defu": "^6.1.4",
|
|
154
154
|
"jiti": "^2.6.1",
|
|
155
|
-
"powerlines": "^0.37.
|
|
155
|
+
"powerlines": "^0.37.3"
|
|
156
156
|
},
|
|
157
157
|
"devDependencies": {
|
|
158
|
-
"@powerlines/
|
|
159
|
-
"@powerlines/plugin-plugin": "^0.12.79",
|
|
158
|
+
"@powerlines/plugin-plugin": "^0.12.81",
|
|
160
159
|
"@types/node": "^24.10.4"
|
|
161
160
|
},
|
|
162
161
|
"publishConfig": { "access": "public" },
|
|
163
|
-
"gitHead": "
|
|
162
|
+
"gitHead": "ae9a5afaa497538477b63988242f433b60974623"
|
|
164
163
|
}
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let __stryke_capnp = require("@stryke/capnp");
|
|
3
|
-
__stryke_capnp = require_rolldown_runtime.__toESM(__stryke_capnp);
|
|
4
|
-
|
|
5
|
-
//#region ../powerlines/schemas/fs.ts
|
|
6
|
-
var FileMetadata_KeyValuePair = class extends __stryke_capnp.Struct {
|
|
7
|
-
static _capnp = {
|
|
8
|
-
displayName: "KeyValuePair",
|
|
9
|
-
id: "eabb26cf58b2a14c",
|
|
10
|
-
size: new __stryke_capnp.ObjectSize(0, 2)
|
|
11
|
-
};
|
|
12
|
-
get key() {
|
|
13
|
-
return __stryke_capnp.utils.getText(0, this);
|
|
14
|
-
}
|
|
15
|
-
set key(value) {
|
|
16
|
-
__stryke_capnp.utils.setText(0, value, this);
|
|
17
|
-
}
|
|
18
|
-
get value() {
|
|
19
|
-
return __stryke_capnp.utils.getText(1, this);
|
|
20
|
-
}
|
|
21
|
-
set value(value) {
|
|
22
|
-
__stryke_capnp.utils.setText(1, value, this);
|
|
23
|
-
}
|
|
24
|
-
toString() {
|
|
25
|
-
return "FileMetadata_KeyValuePair_" + super.toString();
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* The identifier for the file data.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
var FileMetadata = class FileMetadata extends __stryke_capnp.Struct {
|
|
33
|
-
static KeyValuePair = FileMetadata_KeyValuePair;
|
|
34
|
-
static _capnp = {
|
|
35
|
-
displayName: "FileMetadata",
|
|
36
|
-
id: "8e2cab5d7e28c7b3",
|
|
37
|
-
size: new __stryke_capnp.ObjectSize(8, 3),
|
|
38
|
-
defaultType: "normal"
|
|
39
|
-
};
|
|
40
|
-
static _Properties;
|
|
41
|
-
/**
|
|
42
|
-
* The type of the file.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
get id() {
|
|
46
|
-
return __stryke_capnp.utils.getText(0, this);
|
|
47
|
-
}
|
|
48
|
-
set id(value) {
|
|
49
|
-
__stryke_capnp.utils.setText(0, value, this);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* The timestamp representing the file's creation date.
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
get type() {
|
|
56
|
-
return __stryke_capnp.utils.getText(1, this, FileMetadata._capnp.defaultType);
|
|
57
|
-
}
|
|
58
|
-
set type(value) {
|
|
59
|
-
__stryke_capnp.utils.setText(1, value, this);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Additional metadata associated with the file.
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
65
|
-
get timestamp() {
|
|
66
|
-
return __stryke_capnp.utils.getUint32(0, this);
|
|
67
|
-
}
|
|
68
|
-
set timestamp(value) {
|
|
69
|
-
__stryke_capnp.utils.setUint32(0, value, this);
|
|
70
|
-
}
|
|
71
|
-
_adoptProperties(value) {
|
|
72
|
-
__stryke_capnp.utils.adopt(value, __stryke_capnp.utils.getPointer(2, this));
|
|
73
|
-
}
|
|
74
|
-
_disownProperties() {
|
|
75
|
-
return __stryke_capnp.utils.disown(this.properties);
|
|
76
|
-
}
|
|
77
|
-
get properties() {
|
|
78
|
-
return __stryke_capnp.utils.getList(2, FileMetadata._Properties, this);
|
|
79
|
-
}
|
|
80
|
-
_hasProperties() {
|
|
81
|
-
return !__stryke_capnp.utils.isNull(__stryke_capnp.utils.getPointer(2, this));
|
|
82
|
-
}
|
|
83
|
-
_initProperties(length) {
|
|
84
|
-
return __stryke_capnp.utils.initList(2, FileMetadata._Properties, length, this);
|
|
85
|
-
}
|
|
86
|
-
set properties(value) {
|
|
87
|
-
__stryke_capnp.utils.copyFrom(value, __stryke_capnp.utils.getPointer(2, this));
|
|
88
|
-
}
|
|
89
|
-
toString() {
|
|
90
|
-
return "FileMetadata_" + super.toString();
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* An identifier for the file.
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
var FileId = class extends __stryke_capnp.Struct {
|
|
98
|
-
static _capnp = {
|
|
99
|
-
displayName: "FileId",
|
|
100
|
-
id: "990d6a471072f997",
|
|
101
|
-
size: new __stryke_capnp.ObjectSize(0, 2)
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* A virtual (or actual) path to the file in the file system.
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
get id() {
|
|
108
|
-
return __stryke_capnp.utils.getText(0, this);
|
|
109
|
-
}
|
|
110
|
-
set id(value) {
|
|
111
|
-
__stryke_capnp.utils.setText(0, value, this);
|
|
112
|
-
}
|
|
113
|
-
get path() {
|
|
114
|
-
return __stryke_capnp.utils.getText(1, this);
|
|
115
|
-
}
|
|
116
|
-
set path(value) {
|
|
117
|
-
__stryke_capnp.utils.setText(1, value, this);
|
|
118
|
-
}
|
|
119
|
-
toString() {
|
|
120
|
-
return "FileId_" + super.toString();
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* An identifier for the file.
|
|
125
|
-
*
|
|
126
|
-
*/
|
|
127
|
-
var FileStorage = class extends __stryke_capnp.Struct {
|
|
128
|
-
static _capnp = {
|
|
129
|
-
displayName: "FileStorage",
|
|
130
|
-
id: "9dca66ac858c9ebe",
|
|
131
|
-
size: new __stryke_capnp.ObjectSize(0, 2)
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* A virtual (or actual) path to the file in the file system.
|
|
135
|
-
*
|
|
136
|
-
*/
|
|
137
|
-
get path() {
|
|
138
|
-
return __stryke_capnp.utils.getText(0, this);
|
|
139
|
-
}
|
|
140
|
-
set path(value) {
|
|
141
|
-
__stryke_capnp.utils.setText(0, value, this);
|
|
142
|
-
}
|
|
143
|
-
get code() {
|
|
144
|
-
return __stryke_capnp.utils.getText(1, this);
|
|
145
|
-
}
|
|
146
|
-
set code(value) {
|
|
147
|
-
__stryke_capnp.utils.setText(1, value, this);
|
|
148
|
-
}
|
|
149
|
-
toString() {
|
|
150
|
-
return "FileStorage_" + super.toString();
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
var FileSystem = class FileSystem extends __stryke_capnp.Struct {
|
|
154
|
-
static _capnp = {
|
|
155
|
-
displayName: "FileSystem",
|
|
156
|
-
id: "ae0c23d43e56abcf",
|
|
157
|
-
size: new __stryke_capnp.ObjectSize(0, 3)
|
|
158
|
-
};
|
|
159
|
-
static _Ids;
|
|
160
|
-
static _Storage;
|
|
161
|
-
static _Metadata;
|
|
162
|
-
_adoptIds(value) {
|
|
163
|
-
__stryke_capnp.utils.adopt(value, __stryke_capnp.utils.getPointer(0, this));
|
|
164
|
-
}
|
|
165
|
-
_disownIds() {
|
|
166
|
-
return __stryke_capnp.utils.disown(this.ids);
|
|
167
|
-
}
|
|
168
|
-
get ids() {
|
|
169
|
-
return __stryke_capnp.utils.getList(0, FileSystem._Ids, this);
|
|
170
|
-
}
|
|
171
|
-
_hasIds() {
|
|
172
|
-
return !__stryke_capnp.utils.isNull(__stryke_capnp.utils.getPointer(0, this));
|
|
173
|
-
}
|
|
174
|
-
_initIds(length) {
|
|
175
|
-
return __stryke_capnp.utils.initList(0, FileSystem._Ids, length, this);
|
|
176
|
-
}
|
|
177
|
-
set ids(value) {
|
|
178
|
-
__stryke_capnp.utils.copyFrom(value, __stryke_capnp.utils.getPointer(0, this));
|
|
179
|
-
}
|
|
180
|
-
_adoptStorage(value) {
|
|
181
|
-
__stryke_capnp.utils.adopt(value, __stryke_capnp.utils.getPointer(1, this));
|
|
182
|
-
}
|
|
183
|
-
_disownStorage() {
|
|
184
|
-
return __stryke_capnp.utils.disown(this.storage);
|
|
185
|
-
}
|
|
186
|
-
get storage() {
|
|
187
|
-
return __stryke_capnp.utils.getList(1, FileSystem._Storage, this);
|
|
188
|
-
}
|
|
189
|
-
_hasStorage() {
|
|
190
|
-
return !__stryke_capnp.utils.isNull(__stryke_capnp.utils.getPointer(1, this));
|
|
191
|
-
}
|
|
192
|
-
_initStorage(length) {
|
|
193
|
-
return __stryke_capnp.utils.initList(1, FileSystem._Storage, length, this);
|
|
194
|
-
}
|
|
195
|
-
set storage(value) {
|
|
196
|
-
__stryke_capnp.utils.copyFrom(value, __stryke_capnp.utils.getPointer(1, this));
|
|
197
|
-
}
|
|
198
|
-
_adoptMetadata(value) {
|
|
199
|
-
__stryke_capnp.utils.adopt(value, __stryke_capnp.utils.getPointer(2, this));
|
|
200
|
-
}
|
|
201
|
-
_disownMetadata() {
|
|
202
|
-
return __stryke_capnp.utils.disown(this.metadata);
|
|
203
|
-
}
|
|
204
|
-
get metadata() {
|
|
205
|
-
return __stryke_capnp.utils.getList(2, FileSystem._Metadata, this);
|
|
206
|
-
}
|
|
207
|
-
_hasMetadata() {
|
|
208
|
-
return !__stryke_capnp.utils.isNull(__stryke_capnp.utils.getPointer(2, this));
|
|
209
|
-
}
|
|
210
|
-
_initMetadata(length) {
|
|
211
|
-
return __stryke_capnp.utils.initList(2, FileSystem._Metadata, length, this);
|
|
212
|
-
}
|
|
213
|
-
set metadata(value) {
|
|
214
|
-
__stryke_capnp.utils.copyFrom(value, __stryke_capnp.utils.getPointer(2, this));
|
|
215
|
-
}
|
|
216
|
-
toString() {
|
|
217
|
-
return "FileSystem_" + super.toString();
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
FileMetadata._Properties = __stryke_capnp.CompositeList(FileMetadata_KeyValuePair);
|
|
221
|
-
FileSystem._Ids = __stryke_capnp.CompositeList(FileId);
|
|
222
|
-
FileSystem._Storage = __stryke_capnp.CompositeList(FileStorage);
|
|
223
|
-
FileSystem._Metadata = __stryke_capnp.CompositeList(FileMetadata);
|
|
224
|
-
|
|
225
|
-
//#endregion
|
|
226
|
-
exports.FileSystem = FileSystem;
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import * as $ from "@stryke/capnp";
|
|
2
|
-
|
|
3
|
-
//#region ../powerlines/schemas/fs.ts
|
|
4
|
-
var FileMetadata_KeyValuePair = class extends $.Struct {
|
|
5
|
-
static _capnp = {
|
|
6
|
-
displayName: "KeyValuePair",
|
|
7
|
-
id: "eabb26cf58b2a14c",
|
|
8
|
-
size: new $.ObjectSize(0, 2)
|
|
9
|
-
};
|
|
10
|
-
get key() {
|
|
11
|
-
return $.utils.getText(0, this);
|
|
12
|
-
}
|
|
13
|
-
set key(value) {
|
|
14
|
-
$.utils.setText(0, value, this);
|
|
15
|
-
}
|
|
16
|
-
get value() {
|
|
17
|
-
return $.utils.getText(1, this);
|
|
18
|
-
}
|
|
19
|
-
set value(value) {
|
|
20
|
-
$.utils.setText(1, value, this);
|
|
21
|
-
}
|
|
22
|
-
toString() {
|
|
23
|
-
return "FileMetadata_KeyValuePair_" + super.toString();
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* The identifier for the file data.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
var FileMetadata = class FileMetadata extends $.Struct {
|
|
31
|
-
static KeyValuePair = FileMetadata_KeyValuePair;
|
|
32
|
-
static _capnp = {
|
|
33
|
-
displayName: "FileMetadata",
|
|
34
|
-
id: "8e2cab5d7e28c7b3",
|
|
35
|
-
size: new $.ObjectSize(8, 3),
|
|
36
|
-
defaultType: "normal"
|
|
37
|
-
};
|
|
38
|
-
static _Properties;
|
|
39
|
-
/**
|
|
40
|
-
* The type of the file.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
get id() {
|
|
44
|
-
return $.utils.getText(0, this);
|
|
45
|
-
}
|
|
46
|
-
set id(value) {
|
|
47
|
-
$.utils.setText(0, value, this);
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* The timestamp representing the file's creation date.
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
get type() {
|
|
54
|
-
return $.utils.getText(1, this, FileMetadata._capnp.defaultType);
|
|
55
|
-
}
|
|
56
|
-
set type(value) {
|
|
57
|
-
$.utils.setText(1, value, this);
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Additional metadata associated with the file.
|
|
61
|
-
*
|
|
62
|
-
*/
|
|
63
|
-
get timestamp() {
|
|
64
|
-
return $.utils.getUint32(0, this);
|
|
65
|
-
}
|
|
66
|
-
set timestamp(value) {
|
|
67
|
-
$.utils.setUint32(0, value, this);
|
|
68
|
-
}
|
|
69
|
-
_adoptProperties(value) {
|
|
70
|
-
$.utils.adopt(value, $.utils.getPointer(2, this));
|
|
71
|
-
}
|
|
72
|
-
_disownProperties() {
|
|
73
|
-
return $.utils.disown(this.properties);
|
|
74
|
-
}
|
|
75
|
-
get properties() {
|
|
76
|
-
return $.utils.getList(2, FileMetadata._Properties, this);
|
|
77
|
-
}
|
|
78
|
-
_hasProperties() {
|
|
79
|
-
return !$.utils.isNull($.utils.getPointer(2, this));
|
|
80
|
-
}
|
|
81
|
-
_initProperties(length) {
|
|
82
|
-
return $.utils.initList(2, FileMetadata._Properties, length, this);
|
|
83
|
-
}
|
|
84
|
-
set properties(value) {
|
|
85
|
-
$.utils.copyFrom(value, $.utils.getPointer(2, this));
|
|
86
|
-
}
|
|
87
|
-
toString() {
|
|
88
|
-
return "FileMetadata_" + super.toString();
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* An identifier for the file.
|
|
93
|
-
*
|
|
94
|
-
*/
|
|
95
|
-
var FileId = class extends $.Struct {
|
|
96
|
-
static _capnp = {
|
|
97
|
-
displayName: "FileId",
|
|
98
|
-
id: "990d6a471072f997",
|
|
99
|
-
size: new $.ObjectSize(0, 2)
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* A virtual (or actual) path to the file in the file system.
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
get id() {
|
|
106
|
-
return $.utils.getText(0, this);
|
|
107
|
-
}
|
|
108
|
-
set id(value) {
|
|
109
|
-
$.utils.setText(0, value, this);
|
|
110
|
-
}
|
|
111
|
-
get path() {
|
|
112
|
-
return $.utils.getText(1, this);
|
|
113
|
-
}
|
|
114
|
-
set path(value) {
|
|
115
|
-
$.utils.setText(1, value, this);
|
|
116
|
-
}
|
|
117
|
-
toString() {
|
|
118
|
-
return "FileId_" + super.toString();
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* An identifier for the file.
|
|
123
|
-
*
|
|
124
|
-
*/
|
|
125
|
-
var FileStorage = class extends $.Struct {
|
|
126
|
-
static _capnp = {
|
|
127
|
-
displayName: "FileStorage",
|
|
128
|
-
id: "9dca66ac858c9ebe",
|
|
129
|
-
size: new $.ObjectSize(0, 2)
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* A virtual (or actual) path to the file in the file system.
|
|
133
|
-
*
|
|
134
|
-
*/
|
|
135
|
-
get path() {
|
|
136
|
-
return $.utils.getText(0, this);
|
|
137
|
-
}
|
|
138
|
-
set path(value) {
|
|
139
|
-
$.utils.setText(0, value, this);
|
|
140
|
-
}
|
|
141
|
-
get code() {
|
|
142
|
-
return $.utils.getText(1, this);
|
|
143
|
-
}
|
|
144
|
-
set code(value) {
|
|
145
|
-
$.utils.setText(1, value, this);
|
|
146
|
-
}
|
|
147
|
-
toString() {
|
|
148
|
-
return "FileStorage_" + super.toString();
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
var FileSystem = class FileSystem extends $.Struct {
|
|
152
|
-
static _capnp = {
|
|
153
|
-
displayName: "FileSystem",
|
|
154
|
-
id: "ae0c23d43e56abcf",
|
|
155
|
-
size: new $.ObjectSize(0, 3)
|
|
156
|
-
};
|
|
157
|
-
static _Ids;
|
|
158
|
-
static _Storage;
|
|
159
|
-
static _Metadata;
|
|
160
|
-
_adoptIds(value) {
|
|
161
|
-
$.utils.adopt(value, $.utils.getPointer(0, this));
|
|
162
|
-
}
|
|
163
|
-
_disownIds() {
|
|
164
|
-
return $.utils.disown(this.ids);
|
|
165
|
-
}
|
|
166
|
-
get ids() {
|
|
167
|
-
return $.utils.getList(0, FileSystem._Ids, this);
|
|
168
|
-
}
|
|
169
|
-
_hasIds() {
|
|
170
|
-
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
171
|
-
}
|
|
172
|
-
_initIds(length) {
|
|
173
|
-
return $.utils.initList(0, FileSystem._Ids, length, this);
|
|
174
|
-
}
|
|
175
|
-
set ids(value) {
|
|
176
|
-
$.utils.copyFrom(value, $.utils.getPointer(0, this));
|
|
177
|
-
}
|
|
178
|
-
_adoptStorage(value) {
|
|
179
|
-
$.utils.adopt(value, $.utils.getPointer(1, this));
|
|
180
|
-
}
|
|
181
|
-
_disownStorage() {
|
|
182
|
-
return $.utils.disown(this.storage);
|
|
183
|
-
}
|
|
184
|
-
get storage() {
|
|
185
|
-
return $.utils.getList(1, FileSystem._Storage, this);
|
|
186
|
-
}
|
|
187
|
-
_hasStorage() {
|
|
188
|
-
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
189
|
-
}
|
|
190
|
-
_initStorage(length) {
|
|
191
|
-
return $.utils.initList(1, FileSystem._Storage, length, this);
|
|
192
|
-
}
|
|
193
|
-
set storage(value) {
|
|
194
|
-
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
195
|
-
}
|
|
196
|
-
_adoptMetadata(value) {
|
|
197
|
-
$.utils.adopt(value, $.utils.getPointer(2, this));
|
|
198
|
-
}
|
|
199
|
-
_disownMetadata() {
|
|
200
|
-
return $.utils.disown(this.metadata);
|
|
201
|
-
}
|
|
202
|
-
get metadata() {
|
|
203
|
-
return $.utils.getList(2, FileSystem._Metadata, this);
|
|
204
|
-
}
|
|
205
|
-
_hasMetadata() {
|
|
206
|
-
return !$.utils.isNull($.utils.getPointer(2, this));
|
|
207
|
-
}
|
|
208
|
-
_initMetadata(length) {
|
|
209
|
-
return $.utils.initList(2, FileSystem._Metadata, length, this);
|
|
210
|
-
}
|
|
211
|
-
set metadata(value) {
|
|
212
|
-
$.utils.copyFrom(value, $.utils.getPointer(2, this));
|
|
213
|
-
}
|
|
214
|
-
toString() {
|
|
215
|
-
return "FileSystem_" + super.toString();
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
FileMetadata._Properties = $.CompositeList(FileMetadata_KeyValuePair);
|
|
219
|
-
FileSystem._Ids = $.CompositeList(FileId);
|
|
220
|
-
FileSystem._Storage = $.CompositeList(FileStorage);
|
|
221
|
-
FileSystem._Metadata = $.CompositeList(FileMetadata);
|
|
222
|
-
|
|
223
|
-
//#endregion
|
|
224
|
-
export { FileSystem };
|