@powerlines/plugin-webpack 0.5.126 → 0.5.128

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.
Files changed (87) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +29 -1
  2. package/dist/helpers/index.cjs +3 -1
  3. package/dist/helpers/index.mjs +3 -1
  4. package/dist/helpers/unplugin.cjs +12 -1
  5. package/dist/helpers/unplugin.mjs +11 -1
  6. package/dist/index.cjs +39 -1
  7. package/dist/index.mjs +33 -1
  8. package/dist/powerlines/schemas/fs.cjs +226 -1
  9. package/dist/powerlines/schemas/fs.mjs +224 -1
  10. package/dist/powerlines/src/api.cjs +576 -9
  11. package/dist/powerlines/src/api.mjs +578 -1
  12. package/dist/powerlines/src/internal/babel/module-resolver-plugin.cjs +86 -1
  13. package/dist/powerlines/src/internal/babel/module-resolver-plugin.mjs +84 -1
  14. package/dist/powerlines/src/internal/helpers/environment.cjs +52 -1
  15. package/dist/powerlines/src/internal/helpers/environment.mjs +48 -1
  16. package/dist/powerlines/src/internal/helpers/generate-types.cjs +50 -7
  17. package/dist/powerlines/src/internal/helpers/generate-types.mjs +48 -7
  18. package/dist/powerlines/src/internal/helpers/hooks.cjs +63 -1
  19. package/dist/powerlines/src/internal/helpers/hooks.mjs +61 -1
  20. package/dist/powerlines/src/internal/helpers/install-dependencies.cjs +25 -3
  21. package/dist/powerlines/src/internal/helpers/install-dependencies.mjs +24 -3
  22. package/dist/powerlines/src/internal/helpers/install.cjs +37 -1
  23. package/dist/powerlines/src/internal/helpers/install.mjs +36 -1
  24. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.cjs +97 -7
  25. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.mjs +93 -7
  26. package/dist/powerlines/src/internal/helpers/resolver.cjs +43 -1
  27. package/dist/powerlines/src/internal/helpers/resolver.mjs +41 -1
  28. package/dist/powerlines/src/lib/build/webpack.cjs +47 -1
  29. package/dist/powerlines/src/lib/build/webpack.mjs +45 -1
  30. package/dist/powerlines/src/lib/config-file.cjs +79 -1
  31. package/dist/powerlines/src/lib/config-file.mjs +76 -1
  32. package/dist/powerlines/src/lib/contexts/api-context.cjs +184 -1
  33. package/dist/powerlines/src/lib/contexts/api-context.mjs +182 -1
  34. package/dist/powerlines/src/lib/contexts/context.cjs +931 -1
  35. package/dist/powerlines/src/lib/contexts/context.mjs +929 -1
  36. package/dist/powerlines/src/lib/contexts/environment-context.cjs +160 -1
  37. package/dist/powerlines/src/lib/contexts/environment-context.mjs +159 -1
  38. package/dist/powerlines/src/lib/contexts/plugin-context.cjs +75 -1
  39. package/dist/powerlines/src/lib/contexts/plugin-context.mjs +74 -1
  40. package/dist/powerlines/src/lib/entry.cjs +69 -1
  41. package/dist/powerlines/src/lib/entry.mjs +67 -1
  42. package/dist/powerlines/src/lib/fs/helpers.cjs +85 -1
  43. package/dist/powerlines/src/lib/fs/helpers.mjs +81 -1
  44. package/dist/powerlines/src/lib/fs/storage/base.cjs +196 -1
  45. package/dist/powerlines/src/lib/fs/storage/base.mjs +195 -1
  46. package/dist/powerlines/src/lib/fs/storage/file-system.cjs +170 -1
  47. package/dist/powerlines/src/lib/fs/storage/file-system.mjs +169 -1
  48. package/dist/powerlines/src/lib/fs/storage/virtual.cjs +88 -1
  49. package/dist/powerlines/src/lib/fs/storage/virtual.mjs +87 -1
  50. package/dist/powerlines/src/lib/fs/vfs.cjs +830 -1
  51. package/dist/powerlines/src/lib/fs/vfs.mjs +828 -1
  52. package/dist/powerlines/src/lib/logger.cjs +58 -1
  53. package/dist/powerlines/src/lib/logger.mjs +55 -1
  54. package/dist/powerlines/src/lib/typescript/ts-morph.cjs +104 -1
  55. package/dist/powerlines/src/lib/typescript/ts-morph.mjs +102 -1
  56. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +149 -4
  57. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +144 -4
  58. package/dist/powerlines/src/lib/unplugin/factory.cjs +6 -1
  59. package/dist/powerlines/src/lib/unplugin/factory.mjs +8 -1
  60. package/dist/powerlines/src/lib/unplugin/helpers.cjs +17 -1
  61. package/dist/powerlines/src/lib/unplugin/helpers.mjs +16 -1
  62. package/dist/powerlines/src/lib/unplugin/index.cjs +3 -1
  63. package/dist/powerlines/src/lib/unplugin/index.mjs +5 -1
  64. package/dist/powerlines/src/lib/unplugin/plugin.cjs +127 -5
  65. package/dist/powerlines/src/lib/unplugin/plugin.mjs +126 -5
  66. package/dist/powerlines/src/lib/utilities/file-header.cjs +19 -7
  67. package/dist/powerlines/src/lib/utilities/file-header.mjs +18 -7
  68. package/dist/powerlines/src/lib/utilities/meta.cjs +45 -1
  69. package/dist/powerlines/src/lib/utilities/meta.mjs +41 -1
  70. package/dist/powerlines/src/lib/utilities/source-file.cjs +22 -1
  71. package/dist/powerlines/src/lib/utilities/source-file.mjs +21 -1
  72. package/dist/powerlines/src/plugin-utils/helpers.cjs +148 -1
  73. package/dist/powerlines/src/plugin-utils/helpers.mjs +138 -1
  74. package/dist/powerlines/src/plugin-utils/paths.cjs +36 -1
  75. package/dist/powerlines/src/plugin-utils/paths.mjs +35 -1
  76. package/dist/powerlines/src/types/build.cjs +15 -1
  77. package/dist/powerlines/src/types/build.mjs +14 -1
  78. package/dist/powerlines/src/types/commands.cjs +16 -1
  79. package/dist/powerlines/src/types/commands.mjs +15 -1
  80. package/dist/powerlines/src/types/config.d.mts +1 -0
  81. package/dist/powerlines/src/types/context.d.cts +27 -3
  82. package/dist/powerlines/src/types/context.d.mts +27 -3
  83. package/dist/powerlines/src/types/plugin.cjs +32 -1
  84. package/dist/powerlines/src/types/plugin.mjs +31 -1
  85. package/dist/types/index.mjs +1 -1
  86. package/dist/types/plugin.mjs +1 -1
  87. package/package.json +9 -9
@@ -1 +1,29 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));exports.__toESM=s;
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) {
13
+ __defProp(to, key, {
14
+ get: ((k) => from[k]).bind(null, key),
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ }
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
+ value: mod,
24
+ enumerable: true
25
+ }) : target, mod));
26
+
27
+ //#endregion
28
+
29
+ exports.__toESM = __toESM;
@@ -1 +1,3 @@
1
- const e=require(`./unplugin.cjs`);exports.createWebpackPlugin=e.createWebpackPlugin;
1
+ const require_helpers_unplugin = require('./unplugin.cjs');
2
+
3
+ exports.createWebpackPlugin = require_helpers_unplugin.createWebpackPlugin;
@@ -1 +1,3 @@
1
- import{createWebpackPlugin as e}from"./unplugin.mjs";export{e as createWebpackPlugin};
1
+ import { createWebpackPlugin } from "./unplugin.mjs";
2
+
3
+ export { createWebpackPlugin };
@@ -1 +1,12 @@
1
- const e=require(`../_virtual/rolldown_runtime.cjs`),t=require(`../powerlines/src/lib/unplugin/plugin.cjs`);require(`../powerlines/src/lib/unplugin/index.cjs`);let n=require(`unplugin`);function r(e){return(0,n.createWebpackPlugin)(t.createUnplugin(e))({})}exports.createWebpackPlugin=r;
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_plugin = require('../powerlines/src/lib/unplugin/plugin.cjs');
3
+ require('../powerlines/src/lib/unplugin/index.cjs');
4
+ let unplugin = require("unplugin");
5
+
6
+ //#region src/helpers/unplugin.ts
7
+ function createWebpackPlugin(context) {
8
+ return (0, unplugin.createWebpackPlugin)(require_plugin.createUnplugin(context))({});
9
+ }
10
+
11
+ //#endregion
12
+ exports.createWebpackPlugin = createWebpackPlugin;
@@ -1 +1,11 @@
1
- import{createUnplugin as e}from"../powerlines/src/lib/unplugin/plugin.mjs";import"../powerlines/src/lib/unplugin/index.mjs";import{createWebpackPlugin as t}from"unplugin";function n(n){return t(e(n))({})}export{n as createWebpackPlugin};
1
+ import { createUnplugin } from "../powerlines/src/lib/unplugin/plugin.mjs";
2
+ import "../powerlines/src/lib/unplugin/index.mjs";
3
+ import { createWebpackPlugin as createWebpackPlugin$1 } from "unplugin";
4
+
5
+ //#region src/helpers/unplugin.ts
6
+ function createWebpackPlugin(context) {
7
+ return createWebpackPlugin$1(createUnplugin(context))({});
8
+ }
9
+
10
+ //#endregion
11
+ export { createWebpackPlugin };
package/dist/index.cjs CHANGED
@@ -1 +1,39 @@
1
- Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`./_virtual/rolldown_runtime.cjs`),t=require(`./powerlines/src/lib/build/webpack.cjs`),n=require(`./helpers/unplugin.cjs`);require(`./helpers/index.cjs`);let r=require(`@storm-software/config-tools/types`),i=require(`defu`);i=e.__toESM(i);let a=require(`webpack`);a=e.__toESM(a);const o=(e={})=>({name:`webpack`,config(){return this.log(r.LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `webpack` build plugin."),{build:{...e,variant:`webpack`}}},async build(){(0,a.default)((0,i.default)({entry:this.entry.reduce((e,t)=>(e[t.output||t.name||t.file]=t.file,e),{})},t.extractWebpackConfig(this),{plugins:[n.createWebpackPlugin(this)]}))}});var s=o;exports.createWebpackPlugin=n.createWebpackPlugin,exports.default=s,exports.plugin=o;
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
+ const require_webpack = require('./powerlines/src/lib/build/webpack.cjs');
4
+ const require_helpers_unplugin = require('./helpers/unplugin.cjs');
5
+ require('./helpers/index.cjs');
6
+ let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
7
+ let defu = require("defu");
8
+ defu = require_rolldown_runtime.__toESM(defu);
9
+ let webpack = require("webpack");
10
+ webpack = require_rolldown_runtime.__toESM(webpack);
11
+
12
+ //#region src/index.ts
13
+ /**
14
+ * A Powerlines plugin to assist in developing other Powerlines plugins.
15
+ */
16
+ const plugin = (options = {}) => {
17
+ return {
18
+ name: "webpack",
19
+ config() {
20
+ this.log(__storm_software_config_tools_types.LogLevelLabel.TRACE, "Providing default configuration for the Powerlines `webpack` build plugin.");
21
+ return { build: {
22
+ ...options,
23
+ variant: "webpack"
24
+ } };
25
+ },
26
+ async build() {
27
+ (0, webpack.default)((0, defu.default)({ entry: this.entry.reduce((ret, entry) => {
28
+ ret[entry.output || entry.name || entry.file] = entry.file;
29
+ return ret;
30
+ }, {}) }, require_webpack.extractWebpackConfig(this), { plugins: [require_helpers_unplugin.createWebpackPlugin(this)] }));
31
+ }
32
+ };
33
+ };
34
+ var src_default = plugin;
35
+
36
+ //#endregion
37
+ exports.createWebpackPlugin = require_helpers_unplugin.createWebpackPlugin;
38
+ exports.default = src_default;
39
+ exports.plugin = plugin;
package/dist/index.mjs CHANGED
@@ -1 +1,33 @@
1
- import{extractWebpackConfig as e}from"./powerlines/src/lib/build/webpack.mjs";import{createWebpackPlugin as t}from"./helpers/unplugin.mjs";import"./helpers/index.mjs";import{LogLevelLabel as n}from"@storm-software/config-tools/types";import r from"defu";import i from"webpack";const a=(a={})=>({name:`webpack`,config(){return this.log(n.TRACE,"Providing default configuration for the Powerlines `webpack` build plugin."),{build:{...a,variant:`webpack`}}},async build(){i(r({entry:this.entry.reduce((e,t)=>(e[t.output||t.name||t.file]=t.file,e),{})},e(this),{plugins:[t(this)]}))}});var o=a;export{t as createWebpackPlugin,o as default,a as plugin};
1
+ import { extractWebpackConfig } from "./powerlines/src/lib/build/webpack.mjs";
2
+ import { createWebpackPlugin } from "./helpers/unplugin.mjs";
3
+ import "./helpers/index.mjs";
4
+ import { LogLevelLabel } from "@storm-software/config-tools/types";
5
+ import defu$1 from "defu";
6
+ import build from "webpack";
7
+
8
+ //#region src/index.ts
9
+ /**
10
+ * A Powerlines plugin to assist in developing other Powerlines plugins.
11
+ */
12
+ const plugin = (options = {}) => {
13
+ return {
14
+ name: "webpack",
15
+ config() {
16
+ this.log(LogLevelLabel.TRACE, "Providing default configuration for the Powerlines `webpack` build plugin.");
17
+ return { build: {
18
+ ...options,
19
+ variant: "webpack"
20
+ } };
21
+ },
22
+ async build() {
23
+ build(defu$1({ entry: this.entry.reduce((ret, entry) => {
24
+ ret[entry.output || entry.name || entry.file] = entry.file;
25
+ return ret;
26
+ }, {}) }, extractWebpackConfig(this), { plugins: [createWebpackPlugin(this)] }));
27
+ }
28
+ };
29
+ };
30
+ var src_default = plugin;
31
+
32
+ //#endregion
33
+ export { createWebpackPlugin, src_default as default, plugin };
@@ -1 +1,226 @@
1
- const e=require(`../../_virtual/rolldown_runtime.cjs`);let t=require(`@stryke/capnp`);t=e.__toESM(t);var n=class extends t.Struct{static _capnp={displayName:`KeyValuePair`,id:`eabb26cf58b2a14c`,size:new t.ObjectSize(0,2)};get key(){return t.utils.getText(0,this)}set key(e){t.utils.setText(0,e,this)}get value(){return t.utils.getText(1,this)}set value(e){t.utils.setText(1,e,this)}toString(){return`FileMetadata_KeyValuePair_`+super.toString()}},r=class e extends t.Struct{static KeyValuePair=n;static _capnp={displayName:`FileMetadata`,id:`8e2cab5d7e28c7b3`,size:new t.ObjectSize(8,3),defaultType:`normal`};static _Properties;get id(){return t.utils.getText(0,this)}set id(e){t.utils.setText(0,e,this)}get type(){return t.utils.getText(1,this,e._capnp.defaultType)}set type(e){t.utils.setText(1,e,this)}get timestamp(){return t.utils.getUint32(0,this)}set timestamp(e){t.utils.setUint32(0,e,this)}_adoptProperties(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownProperties(){return t.utils.disown(this.properties)}get properties(){return t.utils.getList(2,e._Properties,this)}_hasProperties(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initProperties(n){return t.utils.initList(2,e._Properties,n,this)}set properties(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}toString(){return`FileMetadata_`+super.toString()}},i=class extends t.Struct{static _capnp={displayName:`FileId`,id:`990d6a471072f997`,size:new t.ObjectSize(0,2)};get id(){return t.utils.getText(0,this)}set id(e){t.utils.setText(0,e,this)}get path(){return t.utils.getText(1,this)}set path(e){t.utils.setText(1,e,this)}toString(){return`FileId_`+super.toString()}},a=class extends t.Struct{static _capnp={displayName:`FileStorage`,id:`9dca66ac858c9ebe`,size:new t.ObjectSize(0,2)};get path(){return t.utils.getText(0,this)}set path(e){t.utils.setText(0,e,this)}get code(){return t.utils.getText(1,this)}set code(e){t.utils.setText(1,e,this)}toString(){return`FileStorage_`+super.toString()}},o=class e extends t.Struct{static _capnp={displayName:`FileSystem`,id:`ae0c23d43e56abcf`,size:new t.ObjectSize(0,3)};static _Ids;static _Storage;static _Metadata;_adoptIds(e){t.utils.adopt(e,t.utils.getPointer(0,this))}_disownIds(){return t.utils.disown(this.ids)}get ids(){return t.utils.getList(0,e._Ids,this)}_hasIds(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initIds(n){return t.utils.initList(0,e._Ids,n,this)}set ids(e){t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptStorage(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownStorage(){return t.utils.disown(this.storage)}get storage(){return t.utils.getList(1,e._Storage,this)}_hasStorage(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initStorage(n){return t.utils.initList(1,e._Storage,n,this)}set storage(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptMetadata(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownMetadata(){return t.utils.disown(this.metadata)}get metadata(){return t.utils.getList(2,e._Metadata,this)}_hasMetadata(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initMetadata(n){return t.utils.initList(2,e._Metadata,n,this)}set metadata(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}toString(){return`FileSystem_`+super.toString()}};r._Properties=t.CompositeList(n),o._Ids=t.CompositeList(i),o._Storage=t.CompositeList(a),o._Metadata=t.CompositeList(r),exports.FileSystem=o;
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 +1,224 @@
1
- import*as e from"@stryke/capnp";var t=class extends e.Struct{static _capnp={displayName:`KeyValuePair`,id:`eabb26cf58b2a14c`,size:new e.ObjectSize(0,2)};get key(){return e.utils.getText(0,this)}set key(t){e.utils.setText(0,t,this)}get value(){return e.utils.getText(1,this)}set value(t){e.utils.setText(1,t,this)}toString(){return`FileMetadata_KeyValuePair_`+super.toString()}},n=class n extends e.Struct{static KeyValuePair=t;static _capnp={displayName:`FileMetadata`,id:`8e2cab5d7e28c7b3`,size:new e.ObjectSize(8,3),defaultType:`normal`};static _Properties;get id(){return e.utils.getText(0,this)}set id(t){e.utils.setText(0,t,this)}get type(){return e.utils.getText(1,this,n._capnp.defaultType)}set type(t){e.utils.setText(1,t,this)}get timestamp(){return e.utils.getUint32(0,this)}set timestamp(t){e.utils.setUint32(0,t,this)}_adoptProperties(t){e.utils.adopt(t,e.utils.getPointer(2,this))}_disownProperties(){return e.utils.disown(this.properties)}get properties(){return e.utils.getList(2,n._Properties,this)}_hasProperties(){return!e.utils.isNull(e.utils.getPointer(2,this))}_initProperties(t){return e.utils.initList(2,n._Properties,t,this)}set properties(t){e.utils.copyFrom(t,e.utils.getPointer(2,this))}toString(){return`FileMetadata_`+super.toString()}},r=class extends e.Struct{static _capnp={displayName:`FileId`,id:`990d6a471072f997`,size:new e.ObjectSize(0,2)};get id(){return e.utils.getText(0,this)}set id(t){e.utils.setText(0,t,this)}get path(){return e.utils.getText(1,this)}set path(t){e.utils.setText(1,t,this)}toString(){return`FileId_`+super.toString()}},i=class extends e.Struct{static _capnp={displayName:`FileStorage`,id:`9dca66ac858c9ebe`,size:new e.ObjectSize(0,2)};get path(){return e.utils.getText(0,this)}set path(t){e.utils.setText(0,t,this)}get code(){return e.utils.getText(1,this)}set code(t){e.utils.setText(1,t,this)}toString(){return`FileStorage_`+super.toString()}},a=class t extends e.Struct{static _capnp={displayName:`FileSystem`,id:`ae0c23d43e56abcf`,size:new e.ObjectSize(0,3)};static _Ids;static _Storage;static _Metadata;_adoptIds(t){e.utils.adopt(t,e.utils.getPointer(0,this))}_disownIds(){return e.utils.disown(this.ids)}get ids(){return e.utils.getList(0,t._Ids,this)}_hasIds(){return!e.utils.isNull(e.utils.getPointer(0,this))}_initIds(n){return e.utils.initList(0,t._Ids,n,this)}set ids(t){e.utils.copyFrom(t,e.utils.getPointer(0,this))}_adoptStorage(t){e.utils.adopt(t,e.utils.getPointer(1,this))}_disownStorage(){return e.utils.disown(this.storage)}get storage(){return e.utils.getList(1,t._Storage,this)}_hasStorage(){return!e.utils.isNull(e.utils.getPointer(1,this))}_initStorage(n){return e.utils.initList(1,t._Storage,n,this)}set storage(t){e.utils.copyFrom(t,e.utils.getPointer(1,this))}_adoptMetadata(t){e.utils.adopt(t,e.utils.getPointer(2,this))}_disownMetadata(){return e.utils.disown(this.metadata)}get metadata(){return e.utils.getList(2,t._Metadata,this)}_hasMetadata(){return!e.utils.isNull(e.utils.getPointer(2,this))}_initMetadata(n){return e.utils.initList(2,t._Metadata,n,this)}set metadata(t){e.utils.copyFrom(t,e.utils.getPointer(2,this))}toString(){return`FileSystem_`+super.toString()}};n._Properties=e.CompositeList(t),a._Ids=e.CompositeList(r),a._Storage=e.CompositeList(i),a._Metadata=e.CompositeList(n);export{a as FileSystem};
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 };