powerlines 0.19.3 → 0.19.5

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/index.cjs CHANGED
@@ -31,7 +31,251 @@ var chunkKMELWYHW_cjs = require('./chunk-KMELWYHW.cjs');
31
31
  var chunkETKZMGLN_cjs = require('./chunk-ETKZMGLN.cjs');
32
32
  var chunkRF6RSWD4_cjs = require('./chunk-RF6RSWD4.cjs');
33
33
  var chunkFCTNMPJF_cjs = require('./chunk-FCTNMPJF.cjs');
34
- require('./chunk-USNT2KNT.cjs');
34
+ var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
35
+ var $ = require('@stryke/capnp');
36
+
37
+ function _interopNamespace(e) {
38
+ if (e && e.__esModule) return e;
39
+ var n = Object.create(null);
40
+ if (e) {
41
+ Object.keys(e).forEach(function (k) {
42
+ if (k !== 'default') {
43
+ var d = Object.getOwnPropertyDescriptor(e, k);
44
+ Object.defineProperty(n, k, d.get ? d : {
45
+ enumerable: true,
46
+ get: function () { return e[k]; }
47
+ });
48
+ }
49
+ });
50
+ }
51
+ n.default = e;
52
+ return Object.freeze(n);
53
+ }
54
+
55
+ var $__namespace = /*#__PURE__*/_interopNamespace($);
56
+
57
+ var _capnpFileId = BigInt("0xa56c61324b9d6e49");
58
+ var FileMetadata_KeyValuePair = class extends $__namespace.Struct {
59
+ static {
60
+ chunkUSNT2KNT_cjs.__name(this, "FileMetadata_KeyValuePair");
61
+ }
62
+ static _capnp = {
63
+ displayName: "KeyValuePair",
64
+ id: "eabb26cf58b2a14c",
65
+ size: new $__namespace.ObjectSize(0, 2)
66
+ };
67
+ get key() {
68
+ return $__namespace.utils.getText(0, this);
69
+ }
70
+ set key(value) {
71
+ $__namespace.utils.setText(0, value, this);
72
+ }
73
+ get value() {
74
+ return $__namespace.utils.getText(1, this);
75
+ }
76
+ set value(value) {
77
+ $__namespace.utils.setText(1, value, this);
78
+ }
79
+ toString() {
80
+ return "FileMetadata_KeyValuePair_" + super.toString();
81
+ }
82
+ };
83
+ var FileMetadata = class _FileMetadata extends $__namespace.Struct {
84
+ static {
85
+ chunkUSNT2KNT_cjs.__name(this, "FileMetadata");
86
+ }
87
+ static KeyValuePair = FileMetadata_KeyValuePair;
88
+ static _capnp = {
89
+ displayName: "FileMetadata",
90
+ id: "8e2cab5d7e28c7b3",
91
+ size: new $__namespace.ObjectSize(0, 4),
92
+ defaultVariant: "normal"
93
+ };
94
+ static _Properties;
95
+ /**
96
+ * The variant of the file.
97
+ *
98
+ */
99
+ get id() {
100
+ return $__namespace.utils.getText(0, this);
101
+ }
102
+ set id(value) {
103
+ $__namespace.utils.setText(0, value, this);
104
+ }
105
+ /**
106
+ * The output mode of the file.
107
+ *
108
+ */
109
+ get variant() {
110
+ return $__namespace.utils.getText(1, this, _FileMetadata._capnp.defaultVariant);
111
+ }
112
+ set variant(value) {
113
+ $__namespace.utils.setText(1, value, this);
114
+ }
115
+ /**
116
+ * Additional metadata associated with the file.
117
+ *
118
+ */
119
+ get mode() {
120
+ return $__namespace.utils.getText(2, this);
121
+ }
122
+ set mode(value) {
123
+ $__namespace.utils.setText(2, value, this);
124
+ }
125
+ _adoptProperties(value) {
126
+ $__namespace.utils.adopt(value, $__namespace.utils.getPointer(3, this));
127
+ }
128
+ _disownProperties() {
129
+ return $__namespace.utils.disown(this.properties);
130
+ }
131
+ get properties() {
132
+ return $__namespace.utils.getList(3, _FileMetadata._Properties, this);
133
+ }
134
+ _hasProperties() {
135
+ return !$__namespace.utils.isNull($__namespace.utils.getPointer(3, this));
136
+ }
137
+ _initProperties(length) {
138
+ return $__namespace.utils.initList(3, _FileMetadata._Properties, length, this);
139
+ }
140
+ set properties(value) {
141
+ $__namespace.utils.copyFrom(value, $__namespace.utils.getPointer(3, this));
142
+ }
143
+ toString() {
144
+ return "FileMetadata_" + super.toString();
145
+ }
146
+ };
147
+ var FileIdentifier = class extends $__namespace.Struct {
148
+ static {
149
+ chunkUSNT2KNT_cjs.__name(this, "FileIdentifier");
150
+ }
151
+ static _capnp = {
152
+ displayName: "FileIdentifier",
153
+ id: "e12b8732389d7406",
154
+ size: new $__namespace.ObjectSize(0, 2)
155
+ };
156
+ /**
157
+ * An additional identifier for the file.
158
+ *
159
+ */
160
+ get path() {
161
+ return $__namespace.utils.getText(0, this);
162
+ }
163
+ set path(value) {
164
+ $__namespace.utils.setText(0, value, this);
165
+ }
166
+ get id() {
167
+ return $__namespace.utils.getText(1, this);
168
+ }
169
+ set id(value) {
170
+ $__namespace.utils.setText(1, value, this);
171
+ }
172
+ toString() {
173
+ return "FileIdentifier_" + super.toString();
174
+ }
175
+ };
176
+ var FileData = class extends $__namespace.Struct {
177
+ static {
178
+ chunkUSNT2KNT_cjs.__name(this, "FileData");
179
+ }
180
+ static _capnp = {
181
+ displayName: "FileData",
182
+ id: "fa6725c8a360f9a2",
183
+ size: new $__namespace.ObjectSize(0, 2)
184
+ };
185
+ /**
186
+ * The contents of the file.
187
+ *
188
+ */
189
+ get path() {
190
+ return $__namespace.utils.getText(0, this);
191
+ }
192
+ set path(value) {
193
+ $__namespace.utils.setText(0, value, this);
194
+ }
195
+ get content() {
196
+ return $__namespace.utils.getText(1, this);
197
+ }
198
+ set content(value) {
199
+ $__namespace.utils.setText(1, value, this);
200
+ }
201
+ toString() {
202
+ return "FileData_" + super.toString();
203
+ }
204
+ };
205
+ var FileSystemData = class _FileSystemData extends $__namespace.Struct {
206
+ static {
207
+ chunkUSNT2KNT_cjs.__name(this, "FileSystemData");
208
+ }
209
+ static _capnp = {
210
+ displayName: "FileSystemData",
211
+ id: "aaa72a672ac0732f",
212
+ size: new $__namespace.ObjectSize(0, 3)
213
+ };
214
+ static _Ids;
215
+ static _Metadata;
216
+ static _Files;
217
+ _adoptIds(value) {
218
+ $__namespace.utils.adopt(value, $__namespace.utils.getPointer(0, this));
219
+ }
220
+ _disownIds() {
221
+ return $__namespace.utils.disown(this.ids);
222
+ }
223
+ get ids() {
224
+ return $__namespace.utils.getList(0, _FileSystemData._Ids, this);
225
+ }
226
+ _hasIds() {
227
+ return !$__namespace.utils.isNull($__namespace.utils.getPointer(0, this));
228
+ }
229
+ _initIds(length) {
230
+ return $__namespace.utils.initList(0, _FileSystemData._Ids, length, this);
231
+ }
232
+ set ids(value) {
233
+ $__namespace.utils.copyFrom(value, $__namespace.utils.getPointer(0, this));
234
+ }
235
+ _adoptMetadata(value) {
236
+ $__namespace.utils.adopt(value, $__namespace.utils.getPointer(1, this));
237
+ }
238
+ _disownMetadata() {
239
+ return $__namespace.utils.disown(this.metadata);
240
+ }
241
+ get metadata() {
242
+ return $__namespace.utils.getList(1, _FileSystemData._Metadata, this);
243
+ }
244
+ _hasMetadata() {
245
+ return !$__namespace.utils.isNull($__namespace.utils.getPointer(1, this));
246
+ }
247
+ _initMetadata(length) {
248
+ return $__namespace.utils.initList(1, _FileSystemData._Metadata, length, this);
249
+ }
250
+ set metadata(value) {
251
+ $__namespace.utils.copyFrom(value, $__namespace.utils.getPointer(1, this));
252
+ }
253
+ _adoptFiles(value) {
254
+ $__namespace.utils.adopt(value, $__namespace.utils.getPointer(2, this));
255
+ }
256
+ _disownFiles() {
257
+ return $__namespace.utils.disown(this.files);
258
+ }
259
+ get files() {
260
+ return $__namespace.utils.getList(2, _FileSystemData._Files, this);
261
+ }
262
+ _hasFiles() {
263
+ return !$__namespace.utils.isNull($__namespace.utils.getPointer(2, this));
264
+ }
265
+ _initFiles(length) {
266
+ return $__namespace.utils.initList(2, _FileSystemData._Files, length, this);
267
+ }
268
+ set files(value) {
269
+ $__namespace.utils.copyFrom(value, $__namespace.utils.getPointer(2, this));
270
+ }
271
+ toString() {
272
+ return "FileSystemData_" + super.toString();
273
+ }
274
+ };
275
+ FileMetadata._Properties = $__namespace.CompositeList(FileMetadata_KeyValuePair);
276
+ FileSystemData._Ids = $__namespace.CompositeList(FileIdentifier);
277
+ FileSystemData._Metadata = $__namespace.CompositeList(FileMetadata);
278
+ FileSystemData._Files = $__namespace.CompositeList(FileData);
35
279
 
36
280
  // src/index.ts
37
281
  var index_default = chunkKMELWYHW_cjs.PowerlinesAPI;
@@ -84,4 +328,10 @@ Object.defineProperty(exports, "SUPPORTED_COMMANDS", {
84
328
  enumerable: true,
85
329
  get: function () { return chunkFCTNMPJF_cjs.SUPPORTED_COMMANDS; }
86
330
  });
331
+ exports.FileData = FileData;
332
+ exports.FileIdentifier = FileIdentifier;
333
+ exports.FileMetadata = FileMetadata;
334
+ exports.FileMetadata_KeyValuePair = FileMetadata_KeyValuePair;
335
+ exports.FileSystemData = FileSystemData;
336
+ exports._capnpFileId = _capnpFileId;
87
337
  exports.default = index_default;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { PowerlinesAPI } from './api.cjs';
2
2
  export { default as plugins } from './unplugin.cjs';
3
+ import * as $ from '@stryke/capnp';
3
4
  export { defineConfig } from './config.cjs';
4
5
  export { ae as APIContext, $ as AnyUserConfig, B as BabelPluginPass, aM as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, p as BabelUserConfig, q as BaseConfig, al as BaseHookKeys, ak as BaseHooks, ar as BaseHooksList, aq as BaseHooksListItem, aB as BasePluginHookFunctions, Q as BuildInlineConfig, aC as BuildPlugin, ai as BuildPluginContext, K as CleanInlineConfig, C as CommandType, i as Commands, r as CommonUserConfig, _ as ConfigEnv, ad as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, Y as DocsInlineConfig, aU as ESBuildResolvedConfig, w as ESBuildUserConfig, E as EnvironmentConfig, ag as EnvironmentContext, af as EnvironmentContextPlugin, aN as EnvironmentResolvedConfig, an as ExternalHookKeys, am as ExternalHooks, as as ExternalHooksListItem, aE as ExternalPluginHookFunctions, aD as ExternalPluginHookFunctionsVariant, aZ as FarmResolvedConfig, F as FarmUserConfig, aA as GenerateTypesResult, ap as HookKeys, ao as Hooks, at as HooksList, I as ImportDefinition, h as ImportSpecifier, au as InferHookHandler, aw as InferHookParameters, av as InferHookReturnType, ax as InferHookThisType, a_ as InferResolvedConfig, y as InferUserConfig, ac as InitContextOptions, z as InitialUserConfig, H as InlineConfig, X as LintInlineConfig, L as LogFn, a4 as LogLevel, a6 as MetaInfo, N as NamedImportDefinition, J as NewInlineConfig, O as OutputConfig, aP as OutputResolvedConfig, aJ as PLUGIN_NON_HOOK_FIELDS, A as ParsedUserConfig, m as PartialPlugin, n as PartialPluginFactory, aI as Plugin, aH as PluginBuildPlugins, l as PluginConfig, k as PluginConfigObject, j as PluginConfigTuple, ah as PluginContext, P as PluginFactory, az as PluginHook, aF as PluginHookFunctions, ay as PluginHookObject, aG as PluginHooks, aK as PluginNonHookFields, G as PowerlinesCommand, M as PrepareInlineConfig, o as ProjectType, Z as ReleaseInlineConfig, aO as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, aQ as ResolvedConfig, aL as ResolvedEntryTypeDefinition, a7 as Resolver, aW as RolldownResolvedConfig, v as RolldownUserConfig, aV as RollupResolvedConfig, u as RollupUserConfig, aT as RspackResolvedConfig, t as RspackUserConfig, S as SUPPORTED_COMMANDS, ab as SelectHooksOptions, aj as SerializedVirtualFileSystem, a9 as SourceFile, a8 as TransformResult, aX as TsupResolvedConfig, T as TsupUserConfig, aY as UnbuildResolvedConfig, x as UnbuildUserConfig, aa as UnimportContext, U as UserConfig, a3 as UserConfigExport, a2 as UserConfigFn, a0 as UserConfigFnObject, a1 as UserConfigFnPromise, aR as ViteResolvedConfig, V as ViteUserConfig, aS as WebpackResolvedConfig, s as WebpackUserConfig, a5 as WorkerProcess, W as WorkspaceConfig } from './resolved-B41SbjnS.cjs';
5
6
  export { BuildConfig, BuildResolvedConfig, BuildVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownBuildOutputConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuildVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from './types/build.cjs';
@@ -8,22 +9,18 @@ export { MarkdownPageEvent, MarkdownRendererEvent } from './types/typedoc.cjs';
8
9
  export { InferUnpluginOptions, StormStackUnpluginFactory, UnpluginUserConfig } from './types/unplugin.cjs';
9
10
  export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerLinesWriteFileData, PowerlinesWriteFileOptions, ResolveFSOptions, ResolvePathOptions, VirtualFile, VirtualFileExtension, VirtualFileSystemInterface, VirtualFileSystemMetadata, WriteFileData, WriteFileOptions, __VFS_CACHE__, __VFS_INIT__, __VFS_RESOLVER__, __VFS_REVERT__, __VFS_UNIFIED__, __VFS_VIRTUAL__ } from './types/vfs.cjs';
10
11
  import './hooks-C6t50M6a.cjs';
11
- import 'webpack';
12
- import 'vite';
13
- import 'unloader';
14
- import 'unplugin';
15
- import 'rollup';
16
- import 'rolldown';
17
- import '@nuxt/schema';
18
- import 'esbuild';
19
- import 'astro';
20
- import './next.cjs';
21
- import 'next';
22
- import './tsup.cjs';
23
- import 'tsup';
24
12
  import '@stryke/types/base';
25
13
  import '@stryke/types/configuration';
26
14
  import '@stryke/types/file';
15
+ import 'vite';
16
+ import '@farmfe/core';
17
+ import '@rspack/core';
18
+ import '@storm-software/tsup/types';
19
+ import '@storm-software/unbuild/types';
20
+ import 'esbuild';
21
+ import 'rolldown';
22
+ import 'rollup';
23
+ import 'webpack';
27
24
  import '@babel/core';
28
25
  import '@storm-software/build-tools/types';
29
26
  import '@storm-software/config-tools/types';
@@ -39,18 +36,144 @@ import 'memfs';
39
36
  import 'oxc-parser';
40
37
  import 'semver';
41
38
  import 'unimport';
39
+ import 'unplugin';
42
40
  import '@stryke/types/array';
43
- import '@farmfe/core';
44
- import '@rspack/core';
45
- import '@storm-software/tsup/types';
46
- import '@storm-software/unbuild/types';
47
41
  import '@stryke/types/tsconfig';
48
42
  import 'typescript';
49
- import 'typedoc';
50
- import 'typedoc-plugin-markdown';
51
43
  import '@stryke/json/types';
52
44
  import 'node:fs';
53
45
  import 'unionfs';
46
+ import 'unloader';
47
+ import '@nuxt/schema';
48
+ import 'astro';
49
+ import './next.cjs';
50
+ import 'next';
51
+ import './tsup.cjs';
52
+ import 'tsup';
53
+ import 'typedoc';
54
+ import 'typedoc-plugin-markdown';
55
+
56
+ declare const _capnpFileId: bigint;
57
+ declare class FileMetadata_KeyValuePair extends $.Struct {
58
+ static readonly _capnp: {
59
+ displayName: string;
60
+ id: string;
61
+ size: $.ObjectSize;
62
+ };
63
+ get key(): string;
64
+ set key(value: string);
65
+ get value(): string;
66
+ set value(value: string);
67
+ toString(): string;
68
+ }
69
+ /**
70
+ * The identifier for the file data.
71
+ *
72
+ */
73
+ declare class FileMetadata extends $.Struct {
74
+ static readonly KeyValuePair: typeof FileMetadata_KeyValuePair;
75
+ static readonly _capnp: {
76
+ displayName: string;
77
+ id: string;
78
+ size: $.ObjectSize;
79
+ defaultVariant: string;
80
+ };
81
+ static _Properties: $.ListCtor<FileMetadata_KeyValuePair>;
82
+ /**
83
+ * The variant of the file.
84
+ *
85
+ */
86
+ get id(): string;
87
+ set id(value: string);
88
+ /**
89
+ * The output mode of the file.
90
+ *
91
+ */
92
+ get variant(): string;
93
+ set variant(value: string);
94
+ /**
95
+ * Additional metadata associated with the file.
96
+ *
97
+ */
98
+ get mode(): string;
99
+ set mode(value: string);
100
+ _adoptProperties(value: $.Orphan<$.List<FileMetadata_KeyValuePair>>): void;
101
+ _disownProperties(): $.Orphan<$.List<FileMetadata_KeyValuePair>>;
102
+ get properties(): $.List<FileMetadata_KeyValuePair>;
103
+ _hasProperties(): boolean;
104
+ _initProperties(length: number): $.List<FileMetadata_KeyValuePair>;
105
+ set properties(value: $.List<FileMetadata_KeyValuePair>);
106
+ toString(): string;
107
+ }
108
+ /**
109
+ * A virtual (or actual) path to the file in the file system.
110
+ *
111
+ */
112
+ declare class FileIdentifier extends $.Struct {
113
+ static readonly _capnp: {
114
+ displayName: string;
115
+ id: string;
116
+ size: $.ObjectSize;
117
+ };
118
+ /**
119
+ * An additional identifier for the file.
120
+ *
121
+ */
122
+ get path(): string;
123
+ set path(value: string);
124
+ get id(): string;
125
+ set id(value: string);
126
+ toString(): string;
127
+ }
128
+ /**
129
+ * A virtual (or actual) path to the file in the file system.
130
+ *
131
+ */
132
+ declare class FileData extends $.Struct {
133
+ static readonly _capnp: {
134
+ displayName: string;
135
+ id: string;
136
+ size: $.ObjectSize;
137
+ };
138
+ /**
139
+ * The contents of the file.
140
+ *
141
+ */
142
+ get path(): string;
143
+ set path(value: string);
144
+ get content(): string;
145
+ set content(value: string);
146
+ toString(): string;
147
+ }
148
+ declare class FileSystemData extends $.Struct {
149
+ static readonly _capnp: {
150
+ displayName: string;
151
+ id: string;
152
+ size: $.ObjectSize;
153
+ };
154
+ static _Ids: $.ListCtor<FileIdentifier>;
155
+ static _Metadata: $.ListCtor<FileMetadata>;
156
+ static _Files: $.ListCtor<FileData>;
157
+ _adoptIds(value: $.Orphan<$.List<FileIdentifier>>): void;
158
+ _disownIds(): $.Orphan<$.List<FileIdentifier>>;
159
+ get ids(): $.List<FileIdentifier>;
160
+ _hasIds(): boolean;
161
+ _initIds(length: number): $.List<FileIdentifier>;
162
+ set ids(value: $.List<FileIdentifier>);
163
+ _adoptMetadata(value: $.Orphan<$.List<FileMetadata>>): void;
164
+ _disownMetadata(): $.Orphan<$.List<FileMetadata>>;
165
+ get metadata(): $.List<FileMetadata>;
166
+ _hasMetadata(): boolean;
167
+ _initMetadata(length: number): $.List<FileMetadata>;
168
+ set metadata(value: $.List<FileMetadata>);
169
+ _adoptFiles(value: $.Orphan<$.List<FileData>>): void;
170
+ _disownFiles(): $.Orphan<$.List<FileData>>;
171
+ get files(): $.List<FileData>;
172
+ _hasFiles(): boolean;
173
+ _initFiles(length: number): $.List<FileData>;
174
+ set files(value: $.List<FileData>);
175
+ toString(): string;
176
+ }
54
177
 
55
178
  /**
56
179
  * The powerlines library used by Storm Software for building NodeJS applications.
@@ -61,4 +184,4 @@ import 'unionfs';
61
184
  * @packageDocumentation
62
185
  */
63
186
 
64
- export { PowerlinesAPI, PowerlinesAPI as default };
187
+ export { FileData, FileIdentifier, FileMetadata, FileMetadata_KeyValuePair, FileSystemData, PowerlinesAPI, _capnpFileId, PowerlinesAPI as default };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { PowerlinesAPI } from './api.js';
2
2
  export { default as plugins } from './unplugin.js';
3
+ import * as $ from '@stryke/capnp';
3
4
  export { defineConfig } from './config.js';
4
5
  export { ae as APIContext, $ as AnyUserConfig, B as BabelPluginPass, aM as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, p as BabelUserConfig, q as BaseConfig, al as BaseHookKeys, ak as BaseHooks, ar as BaseHooksList, aq as BaseHooksListItem, aB as BasePluginHookFunctions, Q as BuildInlineConfig, aC as BuildPlugin, ai as BuildPluginContext, K as CleanInlineConfig, C as CommandType, i as Commands, r as CommonUserConfig, _ as ConfigEnv, ad as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, Y as DocsInlineConfig, aU as ESBuildResolvedConfig, w as ESBuildUserConfig, E as EnvironmentConfig, ag as EnvironmentContext, af as EnvironmentContextPlugin, aN as EnvironmentResolvedConfig, an as ExternalHookKeys, am as ExternalHooks, as as ExternalHooksListItem, aE as ExternalPluginHookFunctions, aD as ExternalPluginHookFunctionsVariant, aZ as FarmResolvedConfig, F as FarmUserConfig, aA as GenerateTypesResult, ap as HookKeys, ao as Hooks, at as HooksList, I as ImportDefinition, h as ImportSpecifier, au as InferHookHandler, aw as InferHookParameters, av as InferHookReturnType, ax as InferHookThisType, a_ as InferResolvedConfig, y as InferUserConfig, ac as InitContextOptions, z as InitialUserConfig, H as InlineConfig, X as LintInlineConfig, L as LogFn, a4 as LogLevel, a6 as MetaInfo, N as NamedImportDefinition, J as NewInlineConfig, O as OutputConfig, aP as OutputResolvedConfig, aJ as PLUGIN_NON_HOOK_FIELDS, A as ParsedUserConfig, m as PartialPlugin, n as PartialPluginFactory, aI as Plugin, aH as PluginBuildPlugins, l as PluginConfig, k as PluginConfigObject, j as PluginConfigTuple, ah as PluginContext, P as PluginFactory, az as PluginHook, aF as PluginHookFunctions, ay as PluginHookObject, aG as PluginHooks, aK as PluginNonHookFields, G as PowerlinesCommand, M as PrepareInlineConfig, o as ProjectType, Z as ReleaseInlineConfig, aO as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, aQ as ResolvedConfig, aL as ResolvedEntryTypeDefinition, a7 as Resolver, aW as RolldownResolvedConfig, v as RolldownUserConfig, aV as RollupResolvedConfig, u as RollupUserConfig, aT as RspackResolvedConfig, t as RspackUserConfig, S as SUPPORTED_COMMANDS, ab as SelectHooksOptions, aj as SerializedVirtualFileSystem, a9 as SourceFile, a8 as TransformResult, aX as TsupResolvedConfig, T as TsupUserConfig, aY as UnbuildResolvedConfig, x as UnbuildUserConfig, aa as UnimportContext, U as UserConfig, a3 as UserConfigExport, a2 as UserConfigFn, a0 as UserConfigFnObject, a1 as UserConfigFnPromise, aR as ViteResolvedConfig, V as ViteUserConfig, aS as WebpackResolvedConfig, s as WebpackUserConfig, a5 as WorkerProcess, W as WorkspaceConfig } from './resolved-J7a2Aeuk.js';
5
6
  export { BuildConfig, BuildResolvedConfig, BuildVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownBuildOutputConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuildVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from './types/build.js';
@@ -8,22 +9,18 @@ export { MarkdownPageEvent, MarkdownRendererEvent } from './types/typedoc.js';
8
9
  export { InferUnpluginOptions, StormStackUnpluginFactory, UnpluginUserConfig } from './types/unplugin.js';
9
10
  export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerLinesWriteFileData, PowerlinesWriteFileOptions, ResolveFSOptions, ResolvePathOptions, VirtualFile, VirtualFileExtension, VirtualFileSystemInterface, VirtualFileSystemMetadata, WriteFileData, WriteFileOptions, __VFS_CACHE__, __VFS_INIT__, __VFS_RESOLVER__, __VFS_REVERT__, __VFS_UNIFIED__, __VFS_VIRTUAL__ } from './types/vfs.js';
10
11
  import './hooks-Bq2jUAKs.js';
11
- import 'webpack';
12
- import 'vite';
13
- import 'unloader';
14
- import 'unplugin';
15
- import 'rollup';
16
- import 'rolldown';
17
- import '@nuxt/schema';
18
- import 'esbuild';
19
- import 'astro';
20
- import './next.js';
21
- import 'next';
22
- import './tsup.js';
23
- import 'tsup';
24
12
  import '@stryke/types/base';
25
13
  import '@stryke/types/configuration';
26
14
  import '@stryke/types/file';
15
+ import 'vite';
16
+ import '@farmfe/core';
17
+ import '@rspack/core';
18
+ import '@storm-software/tsup/types';
19
+ import '@storm-software/unbuild/types';
20
+ import 'esbuild';
21
+ import 'rolldown';
22
+ import 'rollup';
23
+ import 'webpack';
27
24
  import '@babel/core';
28
25
  import '@storm-software/build-tools/types';
29
26
  import '@storm-software/config-tools/types';
@@ -39,18 +36,144 @@ import 'memfs';
39
36
  import 'oxc-parser';
40
37
  import 'semver';
41
38
  import 'unimport';
39
+ import 'unplugin';
42
40
  import '@stryke/types/array';
43
- import '@farmfe/core';
44
- import '@rspack/core';
45
- import '@storm-software/tsup/types';
46
- import '@storm-software/unbuild/types';
47
41
  import '@stryke/types/tsconfig';
48
42
  import 'typescript';
49
- import 'typedoc';
50
- import 'typedoc-plugin-markdown';
51
43
  import '@stryke/json/types';
52
44
  import 'node:fs';
53
45
  import 'unionfs';
46
+ import 'unloader';
47
+ import '@nuxt/schema';
48
+ import 'astro';
49
+ import './next.js';
50
+ import 'next';
51
+ import './tsup.js';
52
+ import 'tsup';
53
+ import 'typedoc';
54
+ import 'typedoc-plugin-markdown';
55
+
56
+ declare const _capnpFileId: bigint;
57
+ declare class FileMetadata_KeyValuePair extends $.Struct {
58
+ static readonly _capnp: {
59
+ displayName: string;
60
+ id: string;
61
+ size: $.ObjectSize;
62
+ };
63
+ get key(): string;
64
+ set key(value: string);
65
+ get value(): string;
66
+ set value(value: string);
67
+ toString(): string;
68
+ }
69
+ /**
70
+ * The identifier for the file data.
71
+ *
72
+ */
73
+ declare class FileMetadata extends $.Struct {
74
+ static readonly KeyValuePair: typeof FileMetadata_KeyValuePair;
75
+ static readonly _capnp: {
76
+ displayName: string;
77
+ id: string;
78
+ size: $.ObjectSize;
79
+ defaultVariant: string;
80
+ };
81
+ static _Properties: $.ListCtor<FileMetadata_KeyValuePair>;
82
+ /**
83
+ * The variant of the file.
84
+ *
85
+ */
86
+ get id(): string;
87
+ set id(value: string);
88
+ /**
89
+ * The output mode of the file.
90
+ *
91
+ */
92
+ get variant(): string;
93
+ set variant(value: string);
94
+ /**
95
+ * Additional metadata associated with the file.
96
+ *
97
+ */
98
+ get mode(): string;
99
+ set mode(value: string);
100
+ _adoptProperties(value: $.Orphan<$.List<FileMetadata_KeyValuePair>>): void;
101
+ _disownProperties(): $.Orphan<$.List<FileMetadata_KeyValuePair>>;
102
+ get properties(): $.List<FileMetadata_KeyValuePair>;
103
+ _hasProperties(): boolean;
104
+ _initProperties(length: number): $.List<FileMetadata_KeyValuePair>;
105
+ set properties(value: $.List<FileMetadata_KeyValuePair>);
106
+ toString(): string;
107
+ }
108
+ /**
109
+ * A virtual (or actual) path to the file in the file system.
110
+ *
111
+ */
112
+ declare class FileIdentifier extends $.Struct {
113
+ static readonly _capnp: {
114
+ displayName: string;
115
+ id: string;
116
+ size: $.ObjectSize;
117
+ };
118
+ /**
119
+ * An additional identifier for the file.
120
+ *
121
+ */
122
+ get path(): string;
123
+ set path(value: string);
124
+ get id(): string;
125
+ set id(value: string);
126
+ toString(): string;
127
+ }
128
+ /**
129
+ * A virtual (or actual) path to the file in the file system.
130
+ *
131
+ */
132
+ declare class FileData extends $.Struct {
133
+ static readonly _capnp: {
134
+ displayName: string;
135
+ id: string;
136
+ size: $.ObjectSize;
137
+ };
138
+ /**
139
+ * The contents of the file.
140
+ *
141
+ */
142
+ get path(): string;
143
+ set path(value: string);
144
+ get content(): string;
145
+ set content(value: string);
146
+ toString(): string;
147
+ }
148
+ declare class FileSystemData extends $.Struct {
149
+ static readonly _capnp: {
150
+ displayName: string;
151
+ id: string;
152
+ size: $.ObjectSize;
153
+ };
154
+ static _Ids: $.ListCtor<FileIdentifier>;
155
+ static _Metadata: $.ListCtor<FileMetadata>;
156
+ static _Files: $.ListCtor<FileData>;
157
+ _adoptIds(value: $.Orphan<$.List<FileIdentifier>>): void;
158
+ _disownIds(): $.Orphan<$.List<FileIdentifier>>;
159
+ get ids(): $.List<FileIdentifier>;
160
+ _hasIds(): boolean;
161
+ _initIds(length: number): $.List<FileIdentifier>;
162
+ set ids(value: $.List<FileIdentifier>);
163
+ _adoptMetadata(value: $.Orphan<$.List<FileMetadata>>): void;
164
+ _disownMetadata(): $.Orphan<$.List<FileMetadata>>;
165
+ get metadata(): $.List<FileMetadata>;
166
+ _hasMetadata(): boolean;
167
+ _initMetadata(length: number): $.List<FileMetadata>;
168
+ set metadata(value: $.List<FileMetadata>);
169
+ _adoptFiles(value: $.Orphan<$.List<FileData>>): void;
170
+ _disownFiles(): $.Orphan<$.List<FileData>>;
171
+ get files(): $.List<FileData>;
172
+ _hasFiles(): boolean;
173
+ _initFiles(length: number): $.List<FileData>;
174
+ set files(value: $.List<FileData>);
175
+ toString(): string;
176
+ }
54
177
 
55
178
  /**
56
179
  * The powerlines library used by Storm Software for building NodeJS applications.
@@ -61,4 +184,4 @@ import 'unionfs';
61
184
  * @packageDocumentation
62
185
  */
63
186
 
64
- export { PowerlinesAPI, PowerlinesAPI as default };
187
+ export { FileData, FileIdentifier, FileMetadata, FileMetadata_KeyValuePair, FileSystemData, PowerlinesAPI, _capnpFileId, PowerlinesAPI as default };
package/dist/index.js CHANGED
@@ -28,9 +28,233 @@ export { PowerlinesAPI } from './chunk-GFINPIIK.js';
28
28
  export { PLUGIN_NON_HOOK_FIELDS } from './chunk-JQCWV4DT.js';
29
29
  export { __VFS_CACHE__, __VFS_INIT__, __VFS_RESOLVER__, __VFS_REVERT__, __VFS_UNIFIED__, __VFS_VIRTUAL__ } from './chunk-OBYFBPPO.js';
30
30
  export { SUPPORTED_COMMANDS } from './chunk-WJ4CZKXY.js';
31
- import './chunk-SHUYVCID.js';
31
+ import { __name } from './chunk-SHUYVCID.js';
32
+ import * as $ from '@stryke/capnp';
33
+
34
+ var _capnpFileId = BigInt("0xa56c61324b9d6e49");
35
+ var FileMetadata_KeyValuePair = class extends $.Struct {
36
+ static {
37
+ __name(this, "FileMetadata_KeyValuePair");
38
+ }
39
+ static _capnp = {
40
+ displayName: "KeyValuePair",
41
+ id: "eabb26cf58b2a14c",
42
+ size: new $.ObjectSize(0, 2)
43
+ };
44
+ get key() {
45
+ return $.utils.getText(0, this);
46
+ }
47
+ set key(value) {
48
+ $.utils.setText(0, value, this);
49
+ }
50
+ get value() {
51
+ return $.utils.getText(1, this);
52
+ }
53
+ set value(value) {
54
+ $.utils.setText(1, value, this);
55
+ }
56
+ toString() {
57
+ return "FileMetadata_KeyValuePair_" + super.toString();
58
+ }
59
+ };
60
+ var FileMetadata = class _FileMetadata extends $.Struct {
61
+ static {
62
+ __name(this, "FileMetadata");
63
+ }
64
+ static KeyValuePair = FileMetadata_KeyValuePair;
65
+ static _capnp = {
66
+ displayName: "FileMetadata",
67
+ id: "8e2cab5d7e28c7b3",
68
+ size: new $.ObjectSize(0, 4),
69
+ defaultVariant: "normal"
70
+ };
71
+ static _Properties;
72
+ /**
73
+ * The variant of the file.
74
+ *
75
+ */
76
+ get id() {
77
+ return $.utils.getText(0, this);
78
+ }
79
+ set id(value) {
80
+ $.utils.setText(0, value, this);
81
+ }
82
+ /**
83
+ * The output mode of the file.
84
+ *
85
+ */
86
+ get variant() {
87
+ return $.utils.getText(1, this, _FileMetadata._capnp.defaultVariant);
88
+ }
89
+ set variant(value) {
90
+ $.utils.setText(1, value, this);
91
+ }
92
+ /**
93
+ * Additional metadata associated with the file.
94
+ *
95
+ */
96
+ get mode() {
97
+ return $.utils.getText(2, this);
98
+ }
99
+ set mode(value) {
100
+ $.utils.setText(2, value, this);
101
+ }
102
+ _adoptProperties(value) {
103
+ $.utils.adopt(value, $.utils.getPointer(3, this));
104
+ }
105
+ _disownProperties() {
106
+ return $.utils.disown(this.properties);
107
+ }
108
+ get properties() {
109
+ return $.utils.getList(3, _FileMetadata._Properties, this);
110
+ }
111
+ _hasProperties() {
112
+ return !$.utils.isNull($.utils.getPointer(3, this));
113
+ }
114
+ _initProperties(length) {
115
+ return $.utils.initList(3, _FileMetadata._Properties, length, this);
116
+ }
117
+ set properties(value) {
118
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
119
+ }
120
+ toString() {
121
+ return "FileMetadata_" + super.toString();
122
+ }
123
+ };
124
+ var FileIdentifier = class extends $.Struct {
125
+ static {
126
+ __name(this, "FileIdentifier");
127
+ }
128
+ static _capnp = {
129
+ displayName: "FileIdentifier",
130
+ id: "e12b8732389d7406",
131
+ size: new $.ObjectSize(0, 2)
132
+ };
133
+ /**
134
+ * An additional identifier for the file.
135
+ *
136
+ */
137
+ get path() {
138
+ return $.utils.getText(0, this);
139
+ }
140
+ set path(value) {
141
+ $.utils.setText(0, value, this);
142
+ }
143
+ get id() {
144
+ return $.utils.getText(1, this);
145
+ }
146
+ set id(value) {
147
+ $.utils.setText(1, value, this);
148
+ }
149
+ toString() {
150
+ return "FileIdentifier_" + super.toString();
151
+ }
152
+ };
153
+ var FileData = class extends $.Struct {
154
+ static {
155
+ __name(this, "FileData");
156
+ }
157
+ static _capnp = {
158
+ displayName: "FileData",
159
+ id: "fa6725c8a360f9a2",
160
+ size: new $.ObjectSize(0, 2)
161
+ };
162
+ /**
163
+ * The contents of the file.
164
+ *
165
+ */
166
+ get path() {
167
+ return $.utils.getText(0, this);
168
+ }
169
+ set path(value) {
170
+ $.utils.setText(0, value, this);
171
+ }
172
+ get content() {
173
+ return $.utils.getText(1, this);
174
+ }
175
+ set content(value) {
176
+ $.utils.setText(1, value, this);
177
+ }
178
+ toString() {
179
+ return "FileData_" + super.toString();
180
+ }
181
+ };
182
+ var FileSystemData = class _FileSystemData extends $.Struct {
183
+ static {
184
+ __name(this, "FileSystemData");
185
+ }
186
+ static _capnp = {
187
+ displayName: "FileSystemData",
188
+ id: "aaa72a672ac0732f",
189
+ size: new $.ObjectSize(0, 3)
190
+ };
191
+ static _Ids;
192
+ static _Metadata;
193
+ static _Files;
194
+ _adoptIds(value) {
195
+ $.utils.adopt(value, $.utils.getPointer(0, this));
196
+ }
197
+ _disownIds() {
198
+ return $.utils.disown(this.ids);
199
+ }
200
+ get ids() {
201
+ return $.utils.getList(0, _FileSystemData._Ids, this);
202
+ }
203
+ _hasIds() {
204
+ return !$.utils.isNull($.utils.getPointer(0, this));
205
+ }
206
+ _initIds(length) {
207
+ return $.utils.initList(0, _FileSystemData._Ids, length, this);
208
+ }
209
+ set ids(value) {
210
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
211
+ }
212
+ _adoptMetadata(value) {
213
+ $.utils.adopt(value, $.utils.getPointer(1, this));
214
+ }
215
+ _disownMetadata() {
216
+ return $.utils.disown(this.metadata);
217
+ }
218
+ get metadata() {
219
+ return $.utils.getList(1, _FileSystemData._Metadata, this);
220
+ }
221
+ _hasMetadata() {
222
+ return !$.utils.isNull($.utils.getPointer(1, this));
223
+ }
224
+ _initMetadata(length) {
225
+ return $.utils.initList(1, _FileSystemData._Metadata, length, this);
226
+ }
227
+ set metadata(value) {
228
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
229
+ }
230
+ _adoptFiles(value) {
231
+ $.utils.adopt(value, $.utils.getPointer(2, this));
232
+ }
233
+ _disownFiles() {
234
+ return $.utils.disown(this.files);
235
+ }
236
+ get files() {
237
+ return $.utils.getList(2, _FileSystemData._Files, this);
238
+ }
239
+ _hasFiles() {
240
+ return !$.utils.isNull($.utils.getPointer(2, this));
241
+ }
242
+ _initFiles(length) {
243
+ return $.utils.initList(2, _FileSystemData._Files, length, this);
244
+ }
245
+ set files(value) {
246
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
247
+ }
248
+ toString() {
249
+ return "FileSystemData_" + super.toString();
250
+ }
251
+ };
252
+ FileMetadata._Properties = $.CompositeList(FileMetadata_KeyValuePair);
253
+ FileSystemData._Ids = $.CompositeList(FileIdentifier);
254
+ FileSystemData._Metadata = $.CompositeList(FileMetadata);
255
+ FileSystemData._Files = $.CompositeList(FileData);
32
256
 
33
257
  // src/index.ts
34
258
  var index_default = PowerlinesAPI;
35
259
 
36
- export { index_default as default };
260
+ export { FileData, FileIdentifier, FileMetadata, FileMetadata_KeyValuePair, FileSystemData, _capnpFileId, index_default as default };
@@ -45,7 +45,7 @@ import 'unionfs';
45
45
  * @example
46
46
  * ```ts
47
47
  * // rollup.config.ts
48
- * import powerlines from 'powerlines/rollup'
48
+ * import powerlines from "powerlines/rollup"
49
49
  *
50
50
  * export default defineConfig({
51
51
  * plugins: [powerlines()],
@@ -45,7 +45,7 @@ import 'unionfs';
45
45
  * @example
46
46
  * ```ts
47
47
  * // rollup.config.ts
48
- * import powerlines from 'powerlines/rollup'
48
+ * import powerlines from "powerlines/rollup"
49
49
  *
50
50
  * export default defineConfig({
51
51
  * plugins: [powerlines()],
package/dist/tsup.d.cts CHANGED
@@ -8,11 +8,11 @@ import { Options } from 'tsup';
8
8
  * @example
9
9
  * ```ts
10
10
  * // tsup.config.ts
11
- * import withPowerlines from 'powerlines/tsup'
11
+ * import withPowerlines from "powerlines/tsup"
12
12
  *
13
13
  * export default withPowerlines({
14
- * entry: ['src/index.ts'],
15
- * format: ['cjs', 'esm'],
14
+ * entry: ["src/index.ts"],
15
+ * format: ["cjs", "esm"],
16
16
  * dts: true,
17
17
  * sourcemap: true,
18
18
  * clean: true,
package/dist/tsup.d.ts CHANGED
@@ -8,11 +8,11 @@ import { Options } from 'tsup';
8
8
  * @example
9
9
  * ```ts
10
10
  * // tsup.config.ts
11
- * import withPowerlines from 'powerlines/tsup'
11
+ * import withPowerlines from "powerlines/tsup"
12
12
  *
13
13
  * export default withPowerlines({
14
- * entry: ['src/index.ts'],
15
- * format: ['cjs', 'esm'],
14
+ * entry: ["src/index.ts"],
15
+ * format: ["cjs", "esm"],
16
16
  * dts: true,
17
17
  * sourcemap: true,
18
18
  * clean: true,
package/dist/vite.d.cts CHANGED
@@ -45,7 +45,7 @@ import 'unionfs';
45
45
  * @example
46
46
  * ```ts
47
47
  * // vite.config.ts
48
- * import powerlines from 'powerlines/vite'
48
+ * import powerlines from "powerlines/vite"
49
49
  *
50
50
  * export default defineConfig({
51
51
  * plugins: [powerlines()],
package/dist/vite.d.ts CHANGED
@@ -45,7 +45,7 @@ import 'unionfs';
45
45
  * @example
46
46
  * ```ts
47
47
  * // vite.config.ts
48
- * import powerlines from 'powerlines/vite'
48
+ * import powerlines from "powerlines/vite"
49
49
  *
50
50
  * export default defineConfig({
51
51
  * plugins: [powerlines()],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerlines",
3
- "version": "0.19.3",
3
+ "version": "0.19.5",
4
4
  "type": "module",
5
5
  "description": "The \"any framework\" framework that simplifies modern dev tool usage, generates virtual (or actual) code modules, and improves DX across the board.",
6
6
  "repository": {
@@ -388,11 +388,12 @@
388
388
  },
389
389
  "./files/common/*": "./dist/files/common/*",
390
390
  "./files/library/*": "./dist/files/library/*",
391
- "./files/application/*": "./dist/files/application/*"
391
+ "./files/application/*": "./dist/files/application/*",
392
+ "./schemas/*": "./dist/schemas/*"
392
393
  },
393
394
  "types": "dist/index.d.ts",
394
395
  "typings": "dist/index.d.ts",
395
- "files": ["dist/**/*", "files/**/*"],
396
+ "files": ["dist/**/*", "files/**/*", "schemas/**/*"],
396
397
  "keywords": [
397
398
  "powerlines",
398
399
  "storm-software",
@@ -471,27 +472,29 @@
471
472
  "@babel/traverse": "^7.28.5",
472
473
  "@babel/types": "^7.28.5",
473
474
  "@donedeal0/superdiff": "^3.1.2",
474
- "@microsoft/api-extractor": "^7.54.0",
475
+ "@microsoft/api-extractor": "^7.55.0",
475
476
  "@microsoft/tsdoc-config": "^0.17.1",
476
477
  "@rollup/plugin-alias": "^5.1.1",
477
478
  "@rollup/plugin-babel": "^6.1.0",
478
479
  "@rollup/plugin-node-resolve": "^16.0.3",
479
- "@storm-software/build-tools": "^0.158.24",
480
- "@storm-software/config": "^1.134.24",
481
- "@storm-software/config-tools": "^1.188.24",
482
- "@storm-software/esbuild": "^0.53.24",
483
- "@storm-software/tsup": "^0.2.22",
484
- "@storm-software/unbuild": "^0.57.24",
485
- "@stryke/convert": "^0.6.1",
486
- "@stryke/env": "^0.20.12",
487
- "@stryke/fs": "^0.32.11",
488
- "@stryke/hash": "^0.12.1",
489
- "@stryke/helpers": "^0.9.3",
490
- "@stryke/json": "^0.9.4",
491
- "@stryke/path": "^0.19.0",
492
- "@stryke/string-format": "^0.12.1",
493
- "@stryke/type-checks": "^0.3.11",
494
- "@stryke/unique-id": "^0.3.6",
480
+ "@storm-software/build-tools": "^0.158.40",
481
+ "@storm-software/config": "^1.134.40",
482
+ "@storm-software/config-tools": "^1.188.40",
483
+ "@storm-software/esbuild": "^0.53.40",
484
+ "@storm-software/tsup": "^0.2.38",
485
+ "@storm-software/unbuild": "^0.57.40",
486
+ "@stryke/capnp": "^0.12.21",
487
+ "@stryke/convert": "^0.6.2",
488
+ "@stryke/env": "^0.20.14",
489
+ "@stryke/fs": "^0.32.13",
490
+ "@stryke/hash": "^0.12.3",
491
+ "@stryke/helpers": "^0.9.4",
492
+ "@stryke/json": "^0.9.5",
493
+ "@stryke/path": "^0.19.2",
494
+ "@stryke/string-format": "^0.12.2",
495
+ "@stryke/type-checks": "^0.3.12",
496
+ "@stryke/unique-id": "^0.3.8",
497
+ "@typescript-eslint/utils": "^8.46.4",
495
498
  "babel-dead-code-elimination": "^1.0.10",
496
499
  "babel-plugin-parameter-decorator": "^1.0.16",
497
500
  "bundle-require": "^5.1.0",
@@ -513,27 +516,27 @@
513
516
  "unimport": "^5.5.0",
514
517
  "unionfs": "^4.6.0",
515
518
  "unplugin": "^2.3.10",
516
- "vite": "^7.2.2",
517
- "@typescript-eslint/utils": "^8.46.4"
519
+ "unstorage": "^1.17.2",
520
+ "vite": "^7.2.2"
518
521
  },
519
522
  "devDependencies": {
520
523
  "@microsoft/tsdoc": "^0.15.1",
521
- "@storm-software/testing-tools": "^1.119.24",
522
- "@stryke/types": "^0.10.1",
524
+ "@storm-software/testing-tools": "^1.119.40",
525
+ "@stryke/types": "^0.10.2",
523
526
  "@types/babel__core": "^7.20.5",
524
527
  "@types/babel__helper-module-imports": "^7.18.3",
525
528
  "@types/babel__helper-plugin-utils": "^7.10.3",
526
529
  "@types/babel__template": "^7.4.4",
527
530
  "@types/babel__traverse": "^7.28.0",
528
531
  "@types/diff-match-patch": "^1.0.36",
529
- "@types/node": "^22.19.0",
532
+ "@types/node": "^22.19.1",
530
533
  "@types/semver": "^7.7.1",
531
534
  "eslint": "^9.39.1",
532
- "memfs": "^4.50.0",
535
+ "memfs": "^4.51.0",
533
536
  "minimatch": "^10.1.1",
534
537
  "tsup": "8.4.0",
535
538
  "typescript": "^5.9.3"
536
539
  },
537
540
  "publishConfig": { "access": "public" },
538
- "gitHead": "c7e78fdbae62e7c92a460d1303c7a8ab37df196b"
541
+ "gitHead": "041609f2ea8770273cff82b402e3abdc3fcd9133"
539
542
  }
@@ -0,0 +1,42 @@
1
+ @0xa56c61324b9d6e49;
2
+
3
+ # Additional metadata associated with a file in the file system.
4
+ struct FileMetadata {
5
+ # The identifier for the file data.
6
+ id @0 :Text;
7
+ # The variant of the file.
8
+ variant @1 :Text = "normal";
9
+ # The output mode of the file.
10
+ mode @2 :Text;
11
+ # Additional metadata associated with the file.
12
+ properties @3 :List(KeyValuePair);
13
+
14
+ struct KeyValuePair {
15
+ key @0 :Text;
16
+ value @1 :Text;
17
+ }
18
+ }
19
+
20
+ # A mapping between a file path and its unique identifier.
21
+ # Note: Multiple paths can map to the same identifier (e.g., symlinks).
22
+ struct FileIdentifier {
23
+ # A virtual (or actual) path to the file in the file system.
24
+ path @0 :Text;
25
+ # An additional identifier for the file.
26
+ id @1 :Text;
27
+ }
28
+
29
+ # A virtual representation of a file in the file system.
30
+ struct FileData {
31
+ # A virtual (or actual) path to the file in the file system.
32
+ path @0 :Text;
33
+ # The contents of the file.
34
+ content @1 :Text;
35
+ }
36
+
37
+ # A virtual representation of a file system containing multiple files.
38
+ struct FileSystemData {
39
+ ids @0 :List(FileIdentifier);
40
+ metadata @1 :List(FileMetadata);
41
+ files @2 :List(FileData);
42
+ }