powerlines 0.37.25 → 0.37.26

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/api.cjs +2 -2
  2. package/dist/api.js +1 -1
  3. package/dist/astro.cjs +4 -4
  4. package/dist/astro.js +3 -3
  5. package/dist/{chunk-GLFCJGOU.cjs → chunk-3NXWMXOZ.cjs} +109 -69
  6. package/dist/{chunk-CBUBY3RQ.js → chunk-6E6WTAVH.js} +3 -3
  7. package/dist/{chunk-A6EFHKFH.cjs → chunk-6ZRFRVBT.cjs} +5 -5
  8. package/dist/{chunk-4KHQJLOZ.js → chunk-A6V5BGQY.js} +3 -3
  9. package/dist/{chunk-5UWYXYHN.js → chunk-AFQL3PY3.js} +109 -69
  10. package/dist/{chunk-KUVGZOIR.js → chunk-BWZ6XSL7.js} +3 -3
  11. package/dist/chunk-M7NM24T5.cjs +12 -0
  12. package/dist/{chunk-A44AVBOK.cjs → chunk-MWHTNQVC.cjs} +4 -4
  13. package/dist/{chunk-5EXQR5PS.js → chunk-N2YHQVMW.js} +3 -3
  14. package/dist/{chunk-VNXIVSZM.cjs → chunk-NCS7P6Z6.cjs} +4 -4
  15. package/dist/{chunk-GBWZQNCT.js → chunk-QJ3CMPPJ.js} +3 -3
  16. package/dist/chunk-XGBSXPOD.cjs +12 -0
  17. package/dist/esbuild.cjs +6 -6
  18. package/dist/esbuild.js +3 -3
  19. package/dist/farm.cjs +3 -3
  20. package/dist/farm.js +2 -2
  21. package/dist/index.cjs +10 -10
  22. package/dist/index.js +2 -2
  23. package/dist/lib/{chunk-5KPURJGU.js → chunk-2KN6LNJA.js} +3 -3
  24. package/dist/lib/{chunk-5KPURJGU.js.map → chunk-2KN6LNJA.js.map} +1 -1
  25. package/dist/lib/{chunk-IBV5LQEW.cjs → chunk-2PXKVOOG.cjs} +19 -19
  26. package/dist/lib/{chunk-IBV5LQEW.cjs.map → chunk-2PXKVOOG.cjs.map} +1 -1
  27. package/dist/lib/{chunk-CTZ34LYF.cjs → chunk-3L7QXHBF.cjs} +109 -69
  28. package/dist/lib/chunk-3L7QXHBF.cjs.map +1 -0
  29. package/dist/lib/{chunk-5NQEQLWX.cjs → chunk-47XLO7EU.cjs} +6 -6
  30. package/dist/lib/{chunk-5NQEQLWX.cjs.map → chunk-47XLO7EU.cjs.map} +1 -1
  31. package/dist/lib/{chunk-4UBTIIJL.js → chunk-4EEKHN44.js} +4 -4
  32. package/dist/lib/{chunk-4UBTIIJL.js.map → chunk-4EEKHN44.js.map} +1 -1
  33. package/dist/lib/{chunk-AENFA3JO.js → chunk-5WMECB6D.js} +4 -4
  34. package/dist/lib/{chunk-AENFA3JO.js.map → chunk-5WMECB6D.js.map} +1 -1
  35. package/dist/lib/{chunk-67DD6S67.js → chunk-EHK6LKBR.js} +109 -69
  36. package/dist/lib/chunk-EHK6LKBR.js.map +1 -0
  37. package/dist/lib/{chunk-7S3JZ53C.js → chunk-F7TAZWC7.js} +3 -3
  38. package/dist/lib/{chunk-7S3JZ53C.js.map → chunk-F7TAZWC7.js.map} +1 -1
  39. package/dist/lib/{chunk-S3WD3XWS.cjs → chunk-LENVCNR2.cjs} +5 -5
  40. package/dist/lib/{chunk-S3WD3XWS.cjs.map → chunk-LENVCNR2.cjs.map} +1 -1
  41. package/dist/lib/{chunk-DFEKS6NC.cjs → chunk-YR7H6YZZ.cjs} +16 -16
  42. package/dist/lib/{chunk-DFEKS6NC.cjs.map → chunk-YR7H6YZZ.cjs.map} +1 -1
  43. package/dist/lib/contexts/api-context.cjs +5 -5
  44. package/dist/lib/contexts/api-context.js +4 -4
  45. package/dist/lib/contexts/context.cjs +3 -3
  46. package/dist/lib/contexts/context.js +2 -2
  47. package/dist/lib/contexts/environment-context.cjs +4 -4
  48. package/dist/lib/contexts/environment-context.js +3 -3
  49. package/dist/lib/contexts/index.cjs +7 -7
  50. package/dist/lib/contexts/index.js +4 -4
  51. package/dist/lib/fs/index.cjs +2 -2
  52. package/dist/lib/fs/index.js +1 -1
  53. package/dist/lib/fs/vfs.cjs +2 -2
  54. package/dist/lib/fs/vfs.js +1 -1
  55. package/dist/lib/index.cjs +10 -10
  56. package/dist/lib/index.js +5 -5
  57. package/dist/lib/unplugin/factory.cjs +6 -6
  58. package/dist/lib/unplugin/factory.js +5 -5
  59. package/dist/lib/unplugin/index.cjs +6 -6
  60. package/dist/lib/unplugin/index.js +5 -5
  61. package/dist/next.cjs +4 -4
  62. package/dist/next.js +3 -3
  63. package/dist/nuxt.cjs +7 -7
  64. package/dist/nuxt.js +5 -5
  65. package/dist/rolldown.cjs +6 -6
  66. package/dist/rolldown.js +3 -3
  67. package/dist/rollup.cjs +3 -3
  68. package/dist/rollup.js +2 -2
  69. package/dist/rspack.cjs +3 -3
  70. package/dist/rspack.js +2 -2
  71. package/dist/tsdown.cjs +4 -4
  72. package/dist/tsdown.js +3 -3
  73. package/dist/tsup.cjs +4 -4
  74. package/dist/tsup.js +3 -3
  75. package/dist/unloader.cjs +3 -3
  76. package/dist/unloader.js +2 -2
  77. package/dist/unplugin.cjs +8 -8
  78. package/dist/unplugin.js +4 -4
  79. package/dist/vite.cjs +6 -6
  80. package/dist/vite.js +3 -3
  81. package/dist/webpack.cjs +6 -6
  82. package/dist/webpack.js +3 -3
  83. package/package.json +7 -7
  84. package/dist/chunk-EBWMUY6X.cjs +0 -12
  85. package/dist/chunk-EIJCWBLT.cjs +0 -12
  86. package/dist/lib/chunk-67DD6S67.js.map +0 -1
  87. package/dist/lib/chunk-CTZ34LYF.cjs.map +0 -1
package/dist/api.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkGLFCJGOU_cjs = require('./chunk-GLFCJGOU.cjs');
3
+ var chunk3NXWMXOZ_cjs = require('./chunk-3NXWMXOZ.cjs');
4
4
  require('./chunk-B6DVCLP5.cjs');
5
5
  require('./chunk-V5WOGN7O.cjs');
6
6
  require('./chunk-Z6ARQDHR.cjs');
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "PowerlinesAPI", {
12
12
  enumerable: true,
13
- get: function () { return chunkGLFCJGOU_cjs.PowerlinesAPI; }
13
+ get: function () { return chunk3NXWMXOZ_cjs.PowerlinesAPI; }
14
14
  });
15
15
  //# sourceMappingURL=api.cjs.map
16
16
  //# sourceMappingURL=api.cjs.map
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- export { PowerlinesAPI } from './chunk-5UWYXYHN.js';
1
+ export { PowerlinesAPI } from './chunk-AFQL3PY3.js';
2
2
  import './chunk-PQXP7XQK.js';
3
3
  import './chunk-NITQ5IYP.js';
4
4
  import './chunk-2MYPFASJ.js';
package/dist/astro.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkA44AVBOK_cjs = require('./chunk-A44AVBOK.cjs');
5
+ var chunkMWHTNQVC_cjs = require('./chunk-MWHTNQVC.cjs');
6
6
  require('./chunk-SE3RCXWI.cjs');
7
- require('./chunk-A6EFHKFH.cjs');
8
- require('./chunk-GLFCJGOU.cjs');
7
+ require('./chunk-6ZRFRVBT.cjs');
8
+ require('./chunk-3NXWMXOZ.cjs');
9
9
  require('./chunk-B6DVCLP5.cjs');
10
10
  require('./chunk-V5WOGN7O.cjs');
11
11
  require('./chunk-Z6ARQDHR.cjs');
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
15
15
  var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
16
16
  vite: {
17
17
  plugins: [
18
- chunkA44AVBOK_cjs.vite_default(config)
18
+ chunkMWHTNQVC_cjs.vite_default(config)
19
19
  ]
20
20
  }
21
21
  }), "astro");
package/dist/astro.js CHANGED
@@ -1,7 +1,7 @@
1
- import { vite_default } from './chunk-CBUBY3RQ.js';
1
+ import { vite_default } from './chunk-6E6WTAVH.js';
2
2
  import './chunk-BGBDDKML.js';
3
- import './chunk-5EXQR5PS.js';
4
- import './chunk-5UWYXYHN.js';
3
+ import './chunk-N2YHQVMW.js';
4
+ import './chunk-AFQL3PY3.js';
5
5
  import './chunk-PQXP7XQK.js';
6
6
  import './chunk-NITQ5IYP.js';
7
7
  import './chunk-2MYPFASJ.js';
@@ -1863,53 +1863,72 @@ var VirtualFileSystem = class _VirtualFileSystem {
1863
1863
  */
1864
1864
  static async create(context) {
1865
1865
  context.debug("Starting virtual file system (VFS) initialization processes...");
1866
+ let result;
1866
1867
  if (!context.config.skipCache && exists.existsSync(joinPaths.joinPaths(context.dataPath, "fs.bin"))) {
1867
1868
  const buffer$1 = await buffer.readFileBuffer(joinPaths.joinPaths(context.dataPath, "fs.bin"));
1868
- const message2 = new $__namespace.Message(buffer$1, false);
1869
- const fs = message2.getRoot(FileSystem);
1869
+ const message = new $__namespace.Message(buffer$1, false);
1870
+ const fs = message.getRoot(FileSystem);
1870
1871
  const result2 = new _VirtualFileSystem(context, fs);
1871
1872
  if (fs._hasStorage() && fs.storage.length > 0) {
1872
1873
  await Promise.all(fs.storage.values().map(async (file) => {
1873
1874
  if (file.path && file.code) {
1874
- await result2.write(file.path, file.code);
1875
+ if (fs._hasIds()) {
1876
+ fs.ids.find((fileId) => fileId.path === file.path);
1877
+ }
1878
+ let metadata;
1879
+ if (fs._hasMetadata()) {
1880
+ metadata = fs.metadata.find((meta) => meta.id === (file.path));
1881
+ }
1882
+ await result2.write(file.path, file.code, {
1883
+ meta: {
1884
+ id: metadata?.id,
1885
+ type: metadata?.type,
1886
+ properties: metadata?._hasProperties() ? metadata?.properties.values().reduce((ret, kvp) => {
1887
+ ret[kvp.key] = kvp.value;
1888
+ return ret;
1889
+ }, {}) : void 0,
1890
+ timestamp: metadata?.timestamp
1891
+ }
1892
+ });
1875
1893
  }
1876
1894
  }));
1877
1895
  }
1878
- }
1879
- const message = new $__namespace.Message();
1880
- const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
1881
- result.#log(types.LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
1882
- if (result.#metadata && Object.keys(result.#metadata).length > 0) {
1883
- result.#log(types.LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result.#metadata).length} previously stored metadata records...`);
1884
- const entry = Object.entries(result.#metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1885
- if (meta.properties) {
1886
- const typeDefinition = {
1887
- file: path
1888
- };
1889
- if (isSetString.isSetString(meta.properties.name)) {
1890
- typeDefinition.name = meta.properties.name;
1891
- }
1892
- if (isSetString.isSetString(meta.properties["input.file"]) || isSetString.isSetString(meta.properties["input.name"])) {
1893
- typeDefinition.input ??= {};
1894
- if (isSetString.isSetString(meta.properties["input.file"])) {
1895
- typeDefinition.input.file = meta.properties["input.file"];
1896
+ if (result2.#metadata && Object.keys(result2.#metadata).length > 0) {
1897
+ result2.#log(types.LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result2.#metadata).length} previously stored metadata records...`);
1898
+ const entry = Object.entries(result2.#metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1899
+ if (meta.properties) {
1900
+ const typeDefinition = {
1901
+ file: path
1902
+ };
1903
+ if (isSetString.isSetString(meta.properties.name)) {
1904
+ typeDefinition.name = meta.properties.name;
1896
1905
  }
1897
- if (isSetString.isSetString(meta.properties["input.name"])) {
1898
- typeDefinition.input.name = meta.properties["input.name"];
1906
+ if (isSetString.isSetString(meta.properties["input.file"]) || isSetString.isSetString(meta.properties["input.name"])) {
1907
+ typeDefinition.input ??= {};
1908
+ if (isSetString.isSetString(meta.properties["input.file"])) {
1909
+ typeDefinition.input.file = meta.properties["input.file"];
1910
+ }
1911
+ if (isSetString.isSetString(meta.properties["input.name"])) {
1912
+ typeDefinition.input.name = meta.properties["input.name"];
1913
+ }
1899
1914
  }
1915
+ if (isSetString.isSetString(meta.properties.output)) {
1916
+ typeDefinition.output = meta.properties.output;
1917
+ }
1918
+ return typeDefinition;
1900
1919
  }
1901
- if (isSetString.isSetString(meta.properties.output)) {
1902
- typeDefinition.output = meta.properties.output;
1903
- }
1904
- return typeDefinition;
1905
- }
1906
- return null;
1907
- }).filter(Boolean);
1908
- result.#log(types.LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
1909
- context.entry = entry;
1920
+ return null;
1921
+ }).filter(Boolean);
1922
+ result2.#log(types.LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
1923
+ context.entry = entry;
1924
+ } else {
1925
+ result2.#log(types.LogLevelLabel.DEBUG, "No previously stored metadata records were found on the local system.");
1926
+ }
1910
1927
  } else {
1911
- result.#log(types.LogLevelLabel.DEBUG, "No previously stored metadata records were found on the local system.");
1928
+ const message = new $__namespace.Message();
1929
+ result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
1912
1930
  }
1931
+ result.#log(types.LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
1913
1932
  return result;
1914
1933
  }
1915
1934
  /**
@@ -1920,51 +1939,72 @@ var VirtualFileSystem = class _VirtualFileSystem {
1920
1939
  */
1921
1940
  static createSync(context) {
1922
1941
  context.debug("Starting virtual file system (VFS) initialization processes...");
1942
+ let result;
1923
1943
  if (!context.config.skipCache && exists.existsSync(joinPaths.joinPaths(context.dataPath, "fs.bin"))) {
1924
1944
  const buffer$1 = buffer.readFileBufferSync(joinPaths.joinPaths(context.dataPath, "fs.bin"));
1925
- const message2 = new $__namespace.Message(buffer$1, false);
1926
- const fs = message2.getRoot(FileSystem);
1945
+ const message = new $__namespace.Message(buffer$1, false);
1946
+ const fs = message.getRoot(FileSystem);
1927
1947
  const result2 = new _VirtualFileSystem(context, fs);
1928
1948
  if (fs._hasStorage() && fs.storage.length > 0) {
1929
- fs.storage.values().map((file) => {
1930
- result2.writeSync(file.path, file.code);
1949
+ fs.storage.values().forEach((file) => {
1950
+ if (file.path && file.code) {
1951
+ if (fs._hasIds()) {
1952
+ fs.ids.find((fileId) => fileId.path === file.path);
1953
+ }
1954
+ let metadata;
1955
+ if (fs._hasMetadata()) {
1956
+ metadata = fs.metadata.find((meta) => meta.id === (file.path));
1957
+ }
1958
+ result2.writeSync(file.path, file.code, {
1959
+ meta: {
1960
+ id: metadata?.id,
1961
+ type: metadata?.type,
1962
+ properties: metadata?._hasProperties() ? metadata?.properties.values().reduce((ret, kvp) => {
1963
+ ret[kvp.key] = kvp.value;
1964
+ return ret;
1965
+ }, {}) : void 0,
1966
+ timestamp: metadata?.timestamp
1967
+ }
1968
+ });
1969
+ }
1931
1970
  });
1932
1971
  }
1933
- }
1934
- const message = new $__namespace.Message();
1935
- const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
1936
- result.#log(types.LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
1937
- if (result.#metadata && Object.keys(result.#metadata).length > 0) {
1938
- result.#log(types.LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result.#metadata).length} previously stored metadata records...`);
1939
- const entry = Object.entries(result.#metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1940
- if (meta.properties) {
1941
- const typeDefinition = {
1942
- file: path
1943
- };
1944
- if (isSetString.isSetString(meta.properties.name)) {
1945
- typeDefinition.name = meta.properties.name;
1946
- }
1947
- if (isSetString.isSetString(meta.properties["input.file"]) || isSetString.isSetString(meta.properties["input.name"])) {
1948
- typeDefinition.input ??= {};
1949
- if (isSetString.isSetString(meta.properties["input.file"])) {
1950
- typeDefinition.input.file = meta.properties["input.file"];
1972
+ if (result2.#metadata && Object.keys(result2.#metadata).length > 0) {
1973
+ result2.#log(types.LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result2.#metadata).length} previously stored metadata records...`);
1974
+ const entry = Object.entries(result2.#metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1975
+ if (meta.properties) {
1976
+ const typeDefinition = {
1977
+ file: path
1978
+ };
1979
+ if (isSetString.isSetString(meta.properties.name)) {
1980
+ typeDefinition.name = meta.properties.name;
1951
1981
  }
1952
- if (isSetString.isSetString(meta.properties["input.name"])) {
1953
- typeDefinition.input.name = meta.properties["input.name"];
1982
+ if (isSetString.isSetString(meta.properties["input.file"]) || isSetString.isSetString(meta.properties["input.name"])) {
1983
+ typeDefinition.input ??= {};
1984
+ if (isSetString.isSetString(meta.properties["input.file"])) {
1985
+ typeDefinition.input.file = meta.properties["input.file"];
1986
+ }
1987
+ if (isSetString.isSetString(meta.properties["input.name"])) {
1988
+ typeDefinition.input.name = meta.properties["input.name"];
1989
+ }
1954
1990
  }
1991
+ if (isSetString.isSetString(meta.properties.output)) {
1992
+ typeDefinition.output = meta.properties.output;
1993
+ }
1994
+ return typeDefinition;
1955
1995
  }
1956
- if (isSetString.isSetString(meta.properties.output)) {
1957
- typeDefinition.output = meta.properties.output;
1958
- }
1959
- return typeDefinition;
1960
- }
1961
- return null;
1962
- }).filter(Boolean);
1963
- result.#log(types.LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
1964
- context.entry = entry;
1996
+ return null;
1997
+ }).filter(Boolean);
1998
+ result2.#log(types.LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
1999
+ context.entry = entry;
2000
+ } else {
2001
+ result2.#log(types.LogLevelLabel.DEBUG, "No previously stored metadata records were found on the local system.");
2002
+ }
1965
2003
  } else {
1966
- result.#log(types.LogLevelLabel.DEBUG, "No previously stored metadata records were found on the local system.");
2004
+ const message = new $__namespace.Message();
2005
+ result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
1967
2006
  }
2007
+ result.#log(types.LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
1968
2008
  return result;
1969
2009
  }
1970
2010
  /**
@@ -5073,5 +5113,5 @@ exports.combineContexts = combineContexts;
5073
5113
  exports.createLog = createLog;
5074
5114
  exports.extendLog = extendLog;
5075
5115
  exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
5076
- //# sourceMappingURL=chunk-GLFCJGOU.cjs.map
5077
- //# sourceMappingURL=chunk-GLFCJGOU.cjs.map
5116
+ //# sourceMappingURL=chunk-3NXWMXOZ.cjs.map
5117
+ //# sourceMappingURL=chunk-3NXWMXOZ.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-BGBDDKML.js';
2
- import { createUnpluginFactory } from './chunk-5EXQR5PS.js';
2
+ import { createUnpluginFactory } from './chunk-N2YHQVMW.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
5
5
  import defu from 'defu';
@@ -151,5 +151,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
151
151
  var vite_default = vite;
152
152
 
153
153
  export { vite, vite_default };
154
- //# sourceMappingURL=chunk-CBUBY3RQ.js.map
155
- //# sourceMappingURL=chunk-CBUBY3RQ.js.map
154
+ //# sourceMappingURL=chunk-6E6WTAVH.js.map
155
+ //# sourceMappingURL=chunk-6E6WTAVH.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkGLFCJGOU_cjs = require('./chunk-GLFCJGOU.cjs');
3
+ var chunk3NXWMXOZ_cjs = require('./chunk-3NXWMXOZ.cjs');
4
4
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
5
5
  var types = require('@storm-software/config-tools/types');
6
6
  var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
27
27
  // src/lib/unplugin/factory.ts
28
28
  function createUnpluginFactory(variant, decorate) {
29
29
  return (config, meta) => {
30
- const log = chunkGLFCJGOU_cjs.createLog("unplugin", config);
30
+ const log = chunk3NXWMXOZ_cjs.createLog("unplugin", config);
31
31
  log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
32
32
  try {
33
33
  const userConfig = {
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
38
38
  let api;
39
39
  async function buildStart() {
40
40
  log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
41
- api = await chunkGLFCJGOU_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
41
+ api = await chunk3NXWMXOZ_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
42
42
  unplugin.setParseImpl(api.context.parse);
43
43
  log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
44
44
  await api.prepare({
@@ -137,5 +137,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
137
137
 
138
138
  exports.createUnpluginFactory = createUnpluginFactory;
139
139
  exports.getString = getString;
140
- //# sourceMappingURL=chunk-A6EFHKFH.cjs.map
141
- //# sourceMappingURL=chunk-A6EFHKFH.cjs.map
140
+ //# sourceMappingURL=chunk-6ZRFRVBT.cjs.map
141
+ //# sourceMappingURL=chunk-6ZRFRVBT.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-BGBDDKML.js';
2
- import { createUnpluginFactory } from './chunk-5EXQR5PS.js';
2
+ import { createUnpluginFactory } from './chunk-N2YHQVMW.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isUndefined } from '@stryke/type-checks/is-undefined';
5
5
  import { createEsbuildPlugin } from 'unplugin';
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
29
29
  var esbuild_default = esbuild;
30
30
 
31
31
  export { esbuild, esbuild_default };
32
- //# sourceMappingURL=chunk-4KHQJLOZ.js.map
33
- //# sourceMappingURL=chunk-4KHQJLOZ.js.map
32
+ //# sourceMappingURL=chunk-A6V5BGQY.js.map
33
+ //# sourceMappingURL=chunk-A6V5BGQY.js.map
@@ -1834,53 +1834,72 @@ var VirtualFileSystem = class _VirtualFileSystem {
1834
1834
  */
1835
1835
  static async create(context) {
1836
1836
  context.debug("Starting virtual file system (VFS) initialization processes...");
1837
+ let result;
1837
1838
  if (!context.config.skipCache && existsSync(joinPaths$1(context.dataPath, "fs.bin"))) {
1838
1839
  const buffer = await readFileBuffer(joinPaths$1(context.dataPath, "fs.bin"));
1839
- const message2 = new $.Message(buffer, false);
1840
- const fs = message2.getRoot(FileSystem);
1840
+ const message = new $.Message(buffer, false);
1841
+ const fs = message.getRoot(FileSystem);
1841
1842
  const result2 = new _VirtualFileSystem(context, fs);
1842
1843
  if (fs._hasStorage() && fs.storage.length > 0) {
1843
1844
  await Promise.all(fs.storage.values().map(async (file) => {
1844
1845
  if (file.path && file.code) {
1845
- await result2.write(file.path, file.code);
1846
+ if (fs._hasIds()) {
1847
+ fs.ids.find((fileId) => fileId.path === file.path);
1848
+ }
1849
+ let metadata;
1850
+ if (fs._hasMetadata()) {
1851
+ metadata = fs.metadata.find((meta) => meta.id === (file.path));
1852
+ }
1853
+ await result2.write(file.path, file.code, {
1854
+ meta: {
1855
+ id: metadata?.id,
1856
+ type: metadata?.type,
1857
+ properties: metadata?._hasProperties() ? metadata?.properties.values().reduce((ret, kvp) => {
1858
+ ret[kvp.key] = kvp.value;
1859
+ return ret;
1860
+ }, {}) : void 0,
1861
+ timestamp: metadata?.timestamp
1862
+ }
1863
+ });
1846
1864
  }
1847
1865
  }));
1848
1866
  }
1849
- }
1850
- const message = new $.Message();
1851
- const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
1852
- result.#log(LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
1853
- if (result.#metadata && Object.keys(result.#metadata).length > 0) {
1854
- result.#log(LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result.#metadata).length} previously stored metadata records...`);
1855
- const entry = Object.entries(result.#metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1856
- if (meta.properties) {
1857
- const typeDefinition = {
1858
- file: path
1859
- };
1860
- if (isSetString(meta.properties.name)) {
1861
- typeDefinition.name = meta.properties.name;
1862
- }
1863
- if (isSetString(meta.properties["input.file"]) || isSetString(meta.properties["input.name"])) {
1864
- typeDefinition.input ??= {};
1865
- if (isSetString(meta.properties["input.file"])) {
1866
- typeDefinition.input.file = meta.properties["input.file"];
1867
+ if (result2.#metadata && Object.keys(result2.#metadata).length > 0) {
1868
+ result2.#log(LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result2.#metadata).length} previously stored metadata records...`);
1869
+ const entry = Object.entries(result2.#metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1870
+ if (meta.properties) {
1871
+ const typeDefinition = {
1872
+ file: path
1873
+ };
1874
+ if (isSetString(meta.properties.name)) {
1875
+ typeDefinition.name = meta.properties.name;
1867
1876
  }
1868
- if (isSetString(meta.properties["input.name"])) {
1869
- typeDefinition.input.name = meta.properties["input.name"];
1877
+ if (isSetString(meta.properties["input.file"]) || isSetString(meta.properties["input.name"])) {
1878
+ typeDefinition.input ??= {};
1879
+ if (isSetString(meta.properties["input.file"])) {
1880
+ typeDefinition.input.file = meta.properties["input.file"];
1881
+ }
1882
+ if (isSetString(meta.properties["input.name"])) {
1883
+ typeDefinition.input.name = meta.properties["input.name"];
1884
+ }
1870
1885
  }
1886
+ if (isSetString(meta.properties.output)) {
1887
+ typeDefinition.output = meta.properties.output;
1888
+ }
1889
+ return typeDefinition;
1871
1890
  }
1872
- if (isSetString(meta.properties.output)) {
1873
- typeDefinition.output = meta.properties.output;
1874
- }
1875
- return typeDefinition;
1876
- }
1877
- return null;
1878
- }).filter(Boolean);
1879
- result.#log(LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
1880
- context.entry = entry;
1891
+ return null;
1892
+ }).filter(Boolean);
1893
+ result2.#log(LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
1894
+ context.entry = entry;
1895
+ } else {
1896
+ result2.#log(LogLevelLabel.DEBUG, "No previously stored metadata records were found on the local system.");
1897
+ }
1881
1898
  } else {
1882
- result.#log(LogLevelLabel.DEBUG, "No previously stored metadata records were found on the local system.");
1899
+ const message = new $.Message();
1900
+ result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
1883
1901
  }
1902
+ result.#log(LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
1884
1903
  return result;
1885
1904
  }
1886
1905
  /**
@@ -1891,51 +1910,72 @@ var VirtualFileSystem = class _VirtualFileSystem {
1891
1910
  */
1892
1911
  static createSync(context) {
1893
1912
  context.debug("Starting virtual file system (VFS) initialization processes...");
1913
+ let result;
1894
1914
  if (!context.config.skipCache && existsSync(joinPaths$1(context.dataPath, "fs.bin"))) {
1895
1915
  const buffer = readFileBufferSync(joinPaths$1(context.dataPath, "fs.bin"));
1896
- const message2 = new $.Message(buffer, false);
1897
- const fs = message2.getRoot(FileSystem);
1916
+ const message = new $.Message(buffer, false);
1917
+ const fs = message.getRoot(FileSystem);
1898
1918
  const result2 = new _VirtualFileSystem(context, fs);
1899
1919
  if (fs._hasStorage() && fs.storage.length > 0) {
1900
- fs.storage.values().map((file) => {
1901
- result2.writeSync(file.path, file.code);
1920
+ fs.storage.values().forEach((file) => {
1921
+ if (file.path && file.code) {
1922
+ if (fs._hasIds()) {
1923
+ fs.ids.find((fileId) => fileId.path === file.path);
1924
+ }
1925
+ let metadata;
1926
+ if (fs._hasMetadata()) {
1927
+ metadata = fs.metadata.find((meta) => meta.id === (file.path));
1928
+ }
1929
+ result2.writeSync(file.path, file.code, {
1930
+ meta: {
1931
+ id: metadata?.id,
1932
+ type: metadata?.type,
1933
+ properties: metadata?._hasProperties() ? metadata?.properties.values().reduce((ret, kvp) => {
1934
+ ret[kvp.key] = kvp.value;
1935
+ return ret;
1936
+ }, {}) : void 0,
1937
+ timestamp: metadata?.timestamp
1938
+ }
1939
+ });
1940
+ }
1902
1941
  });
1903
1942
  }
1904
- }
1905
- const message = new $.Message();
1906
- const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
1907
- result.#log(LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
1908
- if (result.#metadata && Object.keys(result.#metadata).length > 0) {
1909
- result.#log(LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result.#metadata).length} previously stored metadata records...`);
1910
- const entry = Object.entries(result.#metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1911
- if (meta.properties) {
1912
- const typeDefinition = {
1913
- file: path
1914
- };
1915
- if (isSetString(meta.properties.name)) {
1916
- typeDefinition.name = meta.properties.name;
1917
- }
1918
- if (isSetString(meta.properties["input.file"]) || isSetString(meta.properties["input.name"])) {
1919
- typeDefinition.input ??= {};
1920
- if (isSetString(meta.properties["input.file"])) {
1921
- typeDefinition.input.file = meta.properties["input.file"];
1943
+ if (result2.#metadata && Object.keys(result2.#metadata).length > 0) {
1944
+ result2.#log(LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result2.#metadata).length} previously stored metadata records...`);
1945
+ const entry = Object.entries(result2.#metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1946
+ if (meta.properties) {
1947
+ const typeDefinition = {
1948
+ file: path
1949
+ };
1950
+ if (isSetString(meta.properties.name)) {
1951
+ typeDefinition.name = meta.properties.name;
1922
1952
  }
1923
- if (isSetString(meta.properties["input.name"])) {
1924
- typeDefinition.input.name = meta.properties["input.name"];
1953
+ if (isSetString(meta.properties["input.file"]) || isSetString(meta.properties["input.name"])) {
1954
+ typeDefinition.input ??= {};
1955
+ if (isSetString(meta.properties["input.file"])) {
1956
+ typeDefinition.input.file = meta.properties["input.file"];
1957
+ }
1958
+ if (isSetString(meta.properties["input.name"])) {
1959
+ typeDefinition.input.name = meta.properties["input.name"];
1960
+ }
1925
1961
  }
1962
+ if (isSetString(meta.properties.output)) {
1963
+ typeDefinition.output = meta.properties.output;
1964
+ }
1965
+ return typeDefinition;
1926
1966
  }
1927
- if (isSetString(meta.properties.output)) {
1928
- typeDefinition.output = meta.properties.output;
1929
- }
1930
- return typeDefinition;
1931
- }
1932
- return null;
1933
- }).filter(Boolean);
1934
- result.#log(LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
1935
- context.entry = entry;
1967
+ return null;
1968
+ }).filter(Boolean);
1969
+ result2.#log(LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
1970
+ context.entry = entry;
1971
+ } else {
1972
+ result2.#log(LogLevelLabel.DEBUG, "No previously stored metadata records were found on the local system.");
1973
+ }
1936
1974
  } else {
1937
- result.#log(LogLevelLabel.DEBUG, "No previously stored metadata records were found on the local system.");
1975
+ const message = new $.Message();
1976
+ result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
1938
1977
  }
1978
+ result.#log(LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
1939
1979
  return result;
1940
1980
  }
1941
1981
  /**
@@ -5034,5 +5074,5 @@ Note: Please ensure the plugin package's default export is a class that extends
5034
5074
  };
5035
5075
 
5036
5076
  export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant };
5037
- //# sourceMappingURL=chunk-5UWYXYHN.js.map
5038
- //# sourceMappingURL=chunk-5UWYXYHN.js.map
5077
+ //# sourceMappingURL=chunk-AFQL3PY3.js.map
5078
+ //# sourceMappingURL=chunk-AFQL3PY3.js.map
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-5EXQR5PS.js';
1
+ import { createUnpluginFactory } from './chunk-N2YHQVMW.js';
2
2
  import { createRolldownPlugin } from 'unplugin';
3
3
 
4
4
  var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
5
5
  var rolldown_default = rolldown;
6
6
 
7
7
  export { rolldown, rolldown_default };
8
- //# sourceMappingURL=chunk-KUVGZOIR.js.map
9
- //# sourceMappingURL=chunk-KUVGZOIR.js.map
8
+ //# sourceMappingURL=chunk-BWZ6XSL7.js.map
9
+ //# sourceMappingURL=chunk-BWZ6XSL7.js.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunk6ZRFRVBT_cjs = require('./chunk-6ZRFRVBT.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var rolldown = unplugin.createRolldownPlugin(chunk6ZRFRVBT_cjs.createUnpluginFactory("rolldown"));
7
+ var rolldown_default = rolldown;
8
+
9
+ exports.rolldown = rolldown;
10
+ exports.rolldown_default = rolldown_default;
11
+ //# sourceMappingURL=chunk-M7NM24T5.cjs.map
12
+ //# sourceMappingURL=chunk-M7NM24T5.cjs.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
4
- var chunkA6EFHKFH_cjs = require('./chunk-A6EFHKFH.cjs');
4
+ var chunk6ZRFRVBT_cjs = require('./chunk-6ZRFRVBT.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
6
  var environmentChecks = require('@stryke/env/environment-checks');
7
7
  var defu = require('defu');
@@ -97,7 +97,7 @@ function extractViteConfig(context) {
97
97
  chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
98
98
 
99
99
  // src/vite.ts
100
- var vite = unplugin.createVitePlugin(chunkA6EFHKFH_cjs.createUnpluginFactory("vite", (api, plugin) => {
100
+ var vite = unplugin.createVitePlugin(chunk6ZRFRVBT_cjs.createUnpluginFactory("vite", (api, plugin) => {
101
101
  return {
102
102
  ...plugin,
103
103
  vite: {
@@ -158,5 +158,5 @@ var vite_default = vite;
158
158
 
159
159
  exports.vite = vite;
160
160
  exports.vite_default = vite_default;
161
- //# sourceMappingURL=chunk-A44AVBOK.cjs.map
162
- //# sourceMappingURL=chunk-A44AVBOK.cjs.map
161
+ //# sourceMappingURL=chunk-MWHTNQVC.cjs.map
162
+ //# sourceMappingURL=chunk-MWHTNQVC.cjs.map
@@ -1,4 +1,4 @@
1
- import { createLog, PowerlinesAPI } from './chunk-5UWYXYHN.js';
1
+ import { createLog, PowerlinesAPI } from './chunk-AFQL3PY3.js';
2
2
  import { __name } from './chunk-7QVYU63E.js';
3
3
  import { LogLevelLabel } from '@storm-software/config-tools/types';
4
4
  import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
@@ -134,5 +134,5 @@ function createUnpluginFactory(variant, decorate) {
134
134
  __name(createUnpluginFactory, "createUnpluginFactory");
135
135
 
136
136
  export { createUnpluginFactory, getString };
137
- //# sourceMappingURL=chunk-5EXQR5PS.js.map
138
- //# sourceMappingURL=chunk-5EXQR5PS.js.map
137
+ //# sourceMappingURL=chunk-N2YHQVMW.js.map
138
+ //# sourceMappingURL=chunk-N2YHQVMW.js.map