@decohere/forge 0.0.1-dev.115 → 0.0.1-dev.117

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 (147) hide show
  1. package/README.md +11 -11
  2. package/commonjs/src/actions/build.action.js +4 -4
  3. package/commonjs/src/actions/clean.action.js +4 -4
  4. package/commonjs/src/actions/commit.action.js +4 -4
  5. package/commonjs/src/actions/copy.action.js +5 -5
  6. package/commonjs/src/actions/dependency-report.action.js +4 -4
  7. package/commonjs/src/actions/dependency-sync.action.js +3 -3
  8. package/commonjs/src/actions/docker.action.js +5 -5
  9. package/commonjs/src/actions/link.action.js +3 -3
  10. package/commonjs/src/actions/package.action.js +5 -5
  11. package/commonjs/src/actions/paths.action.js +4 -4
  12. package/commonjs/src/actions/publish.action.js +4 -4
  13. package/commonjs/src/actions/sync-lock-file.action.js +2 -2
  14. package/commonjs/src/actions/tag.action.js +4 -4
  15. package/commonjs/src/actions/typecheck.action.js +4 -4
  16. package/commonjs/src/actions/unlink.action.js +1 -1
  17. package/commonjs/src/actions/version.action.js +5 -5
  18. package/commonjs/src/actions/watch.action.js +3 -3
  19. package/commonjs/src/commands/build.command.js +1 -1
  20. package/commonjs/src/commands/dependency.command.js +1 -1
  21. package/commonjs/src/commands/docker.command.js +1 -1
  22. package/commonjs/src/commands/forge.command.js +1 -1
  23. package/commonjs/src/commands/link.command.js +1 -1
  24. package/commonjs/src/commands/package.command.js +1 -1
  25. package/commonjs/src/commands/paths.command.js +1 -1
  26. package/commonjs/src/commands/publish.command.js +1 -1
  27. package/commonjs/src/commands/tag.command.js +1 -1
  28. package/commonjs/src/commands/typecheck.command.js +1 -1
  29. package/commonjs/src/commands/version.command.js +1 -1
  30. package/commonjs/src/create-workspace.js +5 -5
  31. package/commonjs/src/errors.js +2 -2
  32. package/commonjs/src/extensions/project.extensions.js +10 -10
  33. package/commonjs/src/factories/swc-config.factory.js +4 -4
  34. package/commonjs/src/forge.module.js +1 -1
  35. package/commonjs/src/packaging/dependency-pinner.service.js +1 -1
  36. package/commonjs/src/packaging/deployable.js +1 -1
  37. package/commonjs/src/packaging/import-graph.service.js +1 -1
  38. package/commonjs/src/packaging/release-exports.js +2 -2
  39. package/commonjs/src/packaging/ui-assets.js +1 -1
  40. package/commonjs/src/services/dependency-resolver.service.js +1 -1
  41. package/commonjs/src/services/file-writer.service.js +2 -2
  42. package/commonjs/src/services/output-cache.js +1 -1
  43. package/commonjs/src/services/swc-transpiler.js +5 -5
  44. package/commonjs/src/services/ts-program-host.js +2 -2
  45. package/commonjs/src/services/type-emission-program.js +1 -1
  46. package/commonjs/src/services/type-emitter.js +4 -4
  47. package/commonjs/src/vitest/forge-build.plugin.js +4 -4
  48. package/commonjs/src/workspace.config.js +2 -2
  49. package/es6/src/actions/build.action.js +3 -3
  50. package/es6/src/actions/clean.action.js +3 -3
  51. package/es6/src/actions/commit.action.js +3 -3
  52. package/es6/src/actions/copy.action.js +4 -4
  53. package/es6/src/actions/dependency-report.action.js +3 -3
  54. package/es6/src/actions/dependency-sync.action.js +2 -2
  55. package/es6/src/actions/docker.action.js +4 -4
  56. package/es6/src/actions/link.action.js +2 -2
  57. package/es6/src/actions/package.action.js +4 -4
  58. package/es6/src/actions/paths.action.js +2 -2
  59. package/es6/src/actions/publish.action.js +3 -3
  60. package/es6/src/actions/sync-lock-file.action.js +2 -2
  61. package/es6/src/actions/tag.action.js +3 -3
  62. package/es6/src/actions/typecheck.action.js +3 -3
  63. package/es6/src/actions/unlink.action.js +1 -1
  64. package/es6/src/actions/version.action.js +4 -4
  65. package/es6/src/actions/watch.action.js +2 -2
  66. package/es6/src/commands/build.command.js +1 -1
  67. package/es6/src/commands/dependency.command.js +1 -1
  68. package/es6/src/commands/docker.command.js +1 -1
  69. package/es6/src/commands/forge.command.js +1 -1
  70. package/es6/src/commands/link.command.js +1 -1
  71. package/es6/src/commands/package.command.js +1 -1
  72. package/es6/src/commands/paths.command.js +1 -1
  73. package/es6/src/commands/publish.command.js +1 -1
  74. package/es6/src/commands/tag.command.js +1 -1
  75. package/es6/src/commands/typecheck.command.js +1 -1
  76. package/es6/src/commands/version.command.js +1 -1
  77. package/es6/src/create-workspace.js +1 -1
  78. package/es6/src/errors.js +1 -1
  79. package/es6/src/extensions/project.extensions.js +4 -4
  80. package/es6/src/factories/swc-config.factory.js +3 -3
  81. package/es6/src/forge.module.js +1 -1
  82. package/es6/src/packaging/dependency-pinner.service.js +1 -1
  83. package/es6/src/packaging/deployable.js +1 -1
  84. package/es6/src/packaging/import-graph.service.js +1 -1
  85. package/es6/src/packaging/release-exports.js +1 -1
  86. package/es6/src/packaging/ui-assets.js +1 -1
  87. package/es6/src/services/dependency-resolver.service.js +1 -1
  88. package/es6/src/services/file-writer.service.js +2 -2
  89. package/es6/src/services/output-cache.js +1 -1
  90. package/es6/src/services/swc-transpiler.js +4 -4
  91. package/es6/src/services/ts-program-host.js +2 -2
  92. package/es6/src/services/type-emission-program.js +1 -1
  93. package/es6/src/services/type-emitter.js +4 -4
  94. package/es6/src/vitest/forge-build.plugin.js +2 -2
  95. package/es6/src/workspace.config.js +1 -1
  96. package/package.json +5 -5
  97. package/types/src/actions/build.action.d.ts +4 -4
  98. package/types/src/actions/clean.action.d.ts +3 -3
  99. package/types/src/actions/commit.action.d.ts +3 -3
  100. package/types/src/actions/copy.action.d.ts +3 -3
  101. package/types/src/actions/dependency-report.action.d.ts +3 -3
  102. package/types/src/actions/dependency-sync.action.d.ts +3 -3
  103. package/types/src/actions/docker.action.d.ts +3 -3
  104. package/types/src/actions/link.action.d.ts +3 -3
  105. package/types/src/actions/package.action.d.ts +3 -3
  106. package/types/src/actions/paths.action.d.ts +4 -4
  107. package/types/src/actions/publish.action.d.ts +4 -4
  108. package/types/src/actions/sync-lock-file.action.d.ts +2 -2
  109. package/types/src/actions/tag.action.d.ts +3 -3
  110. package/types/src/actions/typecheck.action.d.ts +3 -3
  111. package/types/src/actions/unlink.action.d.ts +2 -2
  112. package/types/src/actions/version.action.d.ts +4 -4
  113. package/types/src/actions/watch.action.d.ts +3 -3
  114. package/types/src/commands/build.command.d.ts +2 -2
  115. package/types/src/commands/dependency.command.d.ts +2 -2
  116. package/types/src/commands/docker.command.d.ts +1 -1
  117. package/types/src/commands/forge.command.d.ts +2 -2
  118. package/types/src/commands/link.command.d.ts +2 -2
  119. package/types/src/commands/package.command.d.ts +1 -1
  120. package/types/src/commands/paths.command.d.ts +1 -1
  121. package/types/src/commands/publish.command.d.ts +1 -1
  122. package/types/src/commands/tag.command.d.ts +1 -1
  123. package/types/src/commands/typecheck.command.d.ts +1 -1
  124. package/types/src/commands/version.command.d.ts +1 -1
  125. package/types/src/create-workspace.d.ts +2 -2
  126. package/types/src/errors.d.ts +1 -1
  127. package/types/src/extensions/project.extensions.d.ts +2 -2
  128. package/types/src/factories/swc-config.factory.d.ts +1 -1
  129. package/types/src/forge.module.d.ts +4 -4
  130. package/types/src/packaging/dependency-pinner.service.d.ts +1 -1
  131. package/types/src/packaging/deployable.d.ts +1 -1
  132. package/types/src/packaging/import-graph.service.d.ts +1 -1
  133. package/types/src/packaging/release-exports.d.ts +1 -1
  134. package/types/src/packaging/ui-assets.d.ts +1 -1
  135. package/types/src/services/dependency-resolver.service.d.ts +1 -1
  136. package/types/src/services/file-writer.service.d.ts +1 -1
  137. package/types/src/services/incremental-watch.d.ts +1 -1
  138. package/types/src/services/swc-transpiler.d.ts +2 -2
  139. package/types/src/services/ts-program-host.d.ts +1 -1
  140. package/types/src/services/type-emission-program.d.ts +2 -2
  141. package/types/src/services/type-emitter.d.ts +3 -3
  142. package/types/src/types/configuration.type.d.ts +1 -1
  143. package/types/src/types/dependency.types.d.ts +1 -1
  144. package/types/src/types/swc-config.type.d.ts +1 -1
  145. package/types/src/types/transform-response.model.d.ts +2 -2
  146. package/types/src/types/transformer.type.d.ts +2 -2
  147. package/types/src/types/workspace-config.type.d.ts +3 -3
@@ -10,10 +10,10 @@ Object.defineProperty(exports, "ProjectExtensions", {
10
10
  });
11
11
  const _nodefs = /*#__PURE__*/ _interop_require_default(require("node:fs"));
12
12
  const _nodepath = /*#__PURE__*/ _interop_require_default(require("node:path"));
13
- const _mesh = require("@decohere/mesh");
14
- const _caching = require("@decohere/nexus/caching");
15
- const _extensibility = require("@decohere/nexus/extensibility");
16
- const _io = require("@decohere/nexus/io");
13
+ const _workspace = require("@decohere/workspace");
14
+ const _caching = require("@decohere/core/caching");
15
+ const _extensibility = require("@decohere/core/extensibility");
16
+ const _io = require("@decohere/core/io");
17
17
  const _const = require("../const.js");
18
18
  const _swcconfigtype = require("../types/swc-config.type.js");
19
19
  function _interop_require_default(obj) {
@@ -65,28 +65,28 @@ class ProjectExtensions {
65
65
  }
66
66
  }
67
67
  _ts_decorate([
68
- (0, _extensibility.extension)(_mesh.Project),
68
+ (0, _extensibility.extension)(_workspace.Project),
69
69
  _ts_metadata("design:type", Function),
70
70
  _ts_metadata("design:paramtypes", [
71
- typeof _mesh.Project === "undefined" ? Object : _mesh.Project
71
+ typeof _workspace.Project === "undefined" ? Object : _workspace.Project
72
72
  ]),
73
73
  _ts_metadata("design:returntype", typeof ForgeConfiguration === "undefined" ? Object : ForgeConfiguration)
74
74
  ], ProjectExtensions, "getForgeConfiguration", null);
75
75
  _ts_decorate([
76
- (0, _extensibility.extension)(_mesh.Project),
76
+ (0, _extensibility.extension)(_workspace.Project),
77
77
  (0, _caching.memoize)(),
78
78
  _ts_metadata("design:type", Function),
79
79
  _ts_metadata("design:paramtypes", [
80
- typeof _mesh.Project === "undefined" ? Object : _mesh.Project
80
+ typeof _workspace.Project === "undefined" ? Object : _workspace.Project
81
81
  ]),
82
82
  _ts_metadata("design:returntype", Promise)
83
83
  ], ProjectExtensions, "getSwcConfig", null);
84
84
  _ts_decorate([
85
- (0, _extensibility.extension)(_mesh.Project),
85
+ (0, _extensibility.extension)(_workspace.Project),
86
86
  (0, _caching.memoize)(),
87
87
  _ts_metadata("design:type", Function),
88
88
  _ts_metadata("design:paramtypes", [
89
- typeof _mesh.Project === "undefined" ? Object : _mesh.Project
89
+ typeof _workspace.Project === "undefined" ? Object : _workspace.Project
90
90
  ]),
91
91
  _ts_metadata("design:returntype", typeof _swcconfigtype.SwcConfig === "undefined" ? Object : _swcconfigtype.SwcConfig)
92
92
  ], ProjectExtensions, "getSwcConfigSync", null);
@@ -9,9 +9,9 @@ Object.defineProperty(exports, "SwcConfigFactory", {
9
9
  }
10
10
  });
11
11
  const _nodepath = /*#__PURE__*/ _interop_require_default(require("node:path"));
12
- const _mesh = require("@decohere/mesh");
13
- const _diagnostics = require("@decohere/nexus/diagnostics");
14
- const _objects = require("@decohere/nexus/objects");
12
+ const _workspace = require("@decohere/workspace");
13
+ const _diagnostics = require("@decohere/core/diagnostics");
14
+ const _objects = require("@decohere/core/objects");
15
15
  const _errors = require("../errors.js");
16
16
  function _interop_require_default(obj) {
17
17
  return obj && obj.__esModule ? obj : {
@@ -50,7 +50,7 @@ class SwcConfigFactory {
50
50
  */ createBaseConfig(buildTarget, configOptions) {
51
51
  const { userConfig, tsConfig, aliasPaths, sourceMaps, workspace, projects } = configOptions;
52
52
  const { compilerOptions } = tsConfig ?? {};
53
- const aliases = aliasPaths ? workspace != null ? workspace.getPackageAliases(projects?.[0]?.configuration.name ?? "debug") : projects != null && projects.length > 0 ? _mesh.packageAliases.build(projects, {
53
+ const aliases = aliasPaths ? workspace != null ? workspace.getPackageAliases(projects?.[0]?.configuration.name ?? "debug") : projects != null && projects.length > 0 ? _workspace.packageAliases.build(projects, {
54
54
  baseUrl: SwcConfigFactory.getBaseUrl(tsConfig) ?? _nodepath.default.resolve(projects[0].rootDir),
55
55
  tsconfigPaths: compilerOptions?.paths
56
56
  }) : undefined : undefined;
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "ForgeModule", {
8
8
  return ForgeModule;
9
9
  }
10
10
  });
11
- const _cli = require("@decohere/nexus/cli");
11
+ const _cli = require("@decohere/core/cli");
12
12
  const _index = /*#__PURE__*/ _interop_require_wildcard(require("./actions/index.js"));
13
13
  const _index1 = /*#__PURE__*/ _interop_require_wildcard(require("./commands/index.js"));
14
14
  const _createworkspace = require("./create-workspace.js");
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "DependencyPinner", {
10
10
  });
11
11
  const _nodepath = /*#__PURE__*/ _interop_require_default(require("node:path"));
12
12
  const _decorators = require("@decohere/crucible/decorators");
13
- const _io = require("@decohere/nexus/io");
13
+ const _io = require("@decohere/core/io");
14
14
  const _errors = require("../errors.js");
15
15
  function _interop_require_default(obj) {
16
16
  return obj && obj.__esModule ? obj : {
@@ -17,7 +17,7 @@ _export(exports, {
17
17
  }
18
18
  });
19
19
  const _nodepath = /*#__PURE__*/ _interop_require_default(require("node:path"));
20
- const _io = require("@decohere/nexus/io");
20
+ const _io = require("@decohere/core/io");
21
21
  function _interop_require_default(obj) {
22
22
  return obj && obj.__esModule ? obj : {
23
23
  default: obj
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "ImportGraph", {
10
10
  });
11
11
  const _nodepath = /*#__PURE__*/ _interop_require_default(require("node:path"));
12
12
  const _decorators = require("@decohere/crucible/decorators");
13
- const _io = require("@decohere/nexus/io");
13
+ const _io = require("@decohere/core/io");
14
14
  const _scribe = require("@decohere/scribe");
15
15
  const _parseimports = require("parse-imports");
16
16
  const _const = require("../const.js");
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "releaseExports", {
8
8
  return releaseExports;
9
9
  }
10
10
  });
11
- const _mesh = require("@decohere/mesh");
11
+ const _workspace = require("@decohere/workspace");
12
12
  const ES6_PREFIX = "./es6/";
13
13
  /** Condition names that can point at runnable ESM, most specific first. `types` never does. */ const RUNTIME_CONDITIONS = [
14
14
  "import",
@@ -17,7 +17,7 @@ const ES6_PREFIX = "./es6/";
17
17
  ];
18
18
  /** `src/main.ts` becomes `src/main.js` (`.mts` `.mjs`, `.cts` `.cjs`), with any leading `./` dropped. */ function toJs(filePath) {
19
19
  const file = filePath.replace(/^\.\//, "");
20
- return _mesh.sourceExtensions.isSource(file) ? _mesh.sourceExtensions.outputPath(file) : file;
20
+ return _workspace.sourceExtensions.isSource(file) ? _workspace.sourceExtensions.outputPath(file) : file;
21
21
  }
22
22
  /**
23
23
  * The `exports` a library needs once only its `es6/` output is shipped: the library's own
@@ -20,7 +20,7 @@ _export(exports, {
20
20
  }
21
21
  });
22
22
  const _nodepath = /*#__PURE__*/ _interop_require_default(require("node:path"));
23
- const _io = require("@decohere/nexus/io");
23
+ const _io = require("@decohere/core/io");
24
24
  const _errors = require("../errors.js");
25
25
  function _interop_require_default(obj) {
26
26
  return obj && obj.__esModule ? obj : {
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "DependencyResolver", {
9
9
  }
10
10
  });
11
11
  const _decorators = require("@decohere/crucible/decorators");
12
- const _io = require("@decohere/nexus/io");
12
+ const _io = require("@decohere/core/io");
13
13
  const _parseimports = require("parse-imports");
14
14
  const _const = require("../const.js");
15
15
  const _errors = require("../errors.js");
@@ -10,8 +10,8 @@ Object.defineProperty(exports, "FileWriterService", {
10
10
  });
11
11
  const _promises = /*#__PURE__*/ _interop_require_default(require("node:fs/promises"));
12
12
  const _decorators = require("@decohere/crucible/decorators");
13
- const _diagnostics = require("@decohere/nexus/diagnostics");
14
- const _io = require("@decohere/nexus/io");
13
+ const _diagnostics = require("@decohere/core/diagnostics");
14
+ const _io = require("@decohere/core/io");
15
15
  require("../extensions/project.extensions.js");
16
16
  function _interop_require_default(obj) {
17
17
  return obj && obj.__esModule ? obj : {
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "OutputCache", {
8
8
  return OutputCache;
9
9
  }
10
10
  });
11
- const _io = require("@decohere/nexus/io");
11
+ const _io = require("@decohere/core/io");
12
12
  class OutputCache {
13
13
  #bySource = new Map();
14
14
  get(sourcePath) {
@@ -9,10 +9,10 @@ Object.defineProperty(exports, "SwcTranspiler", {
9
9
  }
10
10
  });
11
11
  const _nodepath = /*#__PURE__*/ _interop_require_default(require("node:path"));
12
- const _mesh = require("@decohere/mesh");
13
- const _caching = require("@decohere/nexus/caching");
14
- const _diagnostics = require("@decohere/nexus/diagnostics");
15
- const _io = require("@decohere/nexus/io");
12
+ const _workspace = require("@decohere/workspace");
13
+ const _caching = require("@decohere/core/caching");
14
+ const _diagnostics = require("@decohere/core/diagnostics");
15
+ const _io = require("@decohere/core/io");
16
16
  const _core = require("@swc/core");
17
17
  const _buildtargettype = require("../types/build-target.type.js");
18
18
  require("../extensions/project.extensions.js");
@@ -146,7 +146,7 @@ class SwcTranspiler {
146
146
  });
147
147
  }
148
148
  static succeeded(file, buildTarget, swcOptions, content, code, project) {
149
- const fileName = _mesh.sourceExtensions.outputPath(file.relativePath);
149
+ const fileName = _workspace.sourceExtensions.outputPath(file.relativePath);
150
150
  const outBaseDir = project?.getOutDir(buildTarget);
151
151
  const outputPath = outBaseDir ? _nodepath.default.join(outBaseDir, fileName) : undefined;
152
152
  return _transformresponsemodel.TransformResponse.Success({
@@ -9,8 +9,8 @@ Object.defineProperty(exports, "TsProgramHost", {
9
9
  }
10
10
  });
11
11
  const _nodefs = /*#__PURE__*/ _interop_require_default(require("node:fs"));
12
- const _caching = require("@decohere/nexus/caching");
13
- const _diagnostics = require("@decohere/nexus/diagnostics");
12
+ const _caching = require("@decohere/core/caching");
13
+ const _diagnostics = require("@decohere/core/diagnostics");
14
14
  const _typescript = require("typescript");
15
15
  const _typeemitter = require("./type-emitter.js");
16
16
  function _interop_require_default(obj) {
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "TypeEmissionProgram", {
9
9
  }
10
10
  });
11
11
  const _nodepath = /*#__PURE__*/ _interop_require_default(require("node:path"));
12
- const _diagnostics = require("@decohere/nexus/diagnostics");
12
+ const _diagnostics = require("@decohere/core/diagnostics");
13
13
  const _typescript = /*#__PURE__*/ _interop_require_default(require("typescript"));
14
14
  const _transformresponsemodel = require("../types/transform-response.model.js");
15
15
  function _interop_require_default(obj) {
@@ -22,9 +22,9 @@ _export(exports, {
22
22
  return TypeEmitter;
23
23
  }
24
24
  });
25
- const _caching = require("@decohere/nexus/caching");
26
- const _diagnostics = require("@decohere/nexus/diagnostics");
27
- const _io = require("@decohere/nexus/io");
25
+ const _caching = require("@decohere/core/caching");
26
+ const _diagnostics = require("@decohere/core/diagnostics");
27
+ const _io = require("@decohere/core/io");
28
28
  require("../extensions/project.extensions.js");
29
29
  const _incrementalwatch = require("./incremental-watch.js");
30
30
  const _outputcache = require("./output-cache.js");
@@ -90,7 +90,7 @@ class TypeEmitter {
90
90
  return responses;
91
91
  }
92
92
  /**
93
- * Type-check projects without emitting files. Includes every Mesh project, not
93
+ * Type-check projects without emitting files. Includes every workspace project, not
94
94
  * only those with a `types` build target (debug is es6-only).
95
95
  */ async checkProject(projectArrayLike) {
96
96
  const programs = await this.preparePrograms(projectArrayLike, {
@@ -10,8 +10,8 @@ Object.defineProperty(exports, "forgeBuild", {
10
10
  });
11
11
  const _nodefs = require("node:fs");
12
12
  const _nodepath = /*#__PURE__*/ _interop_require_default(require("node:path"));
13
- const _mesh = require("@decohere/mesh");
14
- const _io = require("@decohere/nexus/io");
13
+ const _workspace = require("@decohere/workspace");
14
+ const _io = require("@decohere/core/io");
15
15
  const _scribe = require("@decohere/scribe");
16
16
  const _swctranspiler = require("../services/swc-transpiler.js");
17
17
  const _buildtargettype = require("../types/build-target.type.js");
@@ -48,7 +48,7 @@ function forgeBuild(options) {
48
48
  const initWorkspace = async ()=>{
49
49
  if (workspace !== null) return;
50
50
  logger.debug(`Loading Forge workspace (buildConfig: ${buildConfig}, workspaceRoot: ${workspaceRoot})`);
51
- workspace = await _mesh.WorkspaceFactory.create({
51
+ workspace = await _workspace.WorkspaceFactory.create({
52
52
  ..._workspaceconfig.WorkspaceDefaults,
53
53
  rootDir: workspaceRoot
54
54
  });
@@ -75,7 +75,7 @@ function forgeBuild(options) {
75
75
  // `./a.js` is `a.ts` or `a.tsx`, `./a.mjs` is `a.mts`, `./a.cjs` is `a.cts` (#518).
76
76
  if (importer != null && /\.[mc]?jsx?$/.test(source) && source.startsWith(".")) {
77
77
  const written = _nodepath.default.resolve(_nodepath.default.dirname(importer), source);
78
- return _mesh.sourceExtensions.candidates(written).find((c)=>(0, _nodefs.existsSync)(c)) ?? null;
78
+ return _workspace.sourceExtensions.candidates(written).find((c)=>(0, _nodefs.existsSync)(c)) ?? null;
79
79
  }
80
80
  return null;
81
81
  },
@@ -25,7 +25,7 @@ _export(exports, {
25
25
  return WorkspaceDefaults;
26
26
  }
27
27
  });
28
- const _mesh = require("@decohere/mesh");
28
+ const _workspace = require("@decohere/workspace");
29
29
  const _buildtargettype = require("./types/build-target.type.js");
30
30
  const Debug = {
31
31
  name: "debug",
@@ -83,7 +83,7 @@ const DefaultConfigurations = [
83
83
  Release
84
84
  ];
85
85
  const WorkspaceDefaults = {
86
- ..._mesh.WorkspaceDefaults,
86
+ ..._workspace.WorkspaceDefaults,
87
87
  // Root-only files npm ships with the package. Globs that match nothing are fine.
88
88
  copyFiles: [
89
89
  "package.json",
@@ -13,9 +13,9 @@ function _ts_param(paramIndex, decorator) {
13
13
  };
14
14
  }
15
15
  import { inject, injectable } from "@decohere/crucible/decorators";
16
- import { Workspace } from "@decohere/mesh";
17
- import { ActionResponse } from "@decohere/nexus/cli";
18
- import { Trace } from "@decohere/nexus/diagnostics";
16
+ import { Workspace } from "@decohere/workspace";
17
+ import { ActionResponse } from "@decohere/core/cli";
18
+ import { Trace } from "@decohere/core/diagnostics";
19
19
  import { scribe } from "@decohere/scribe";
20
20
  import { ForgeError } from "../errors.js";
21
21
  import { FileWriterService } from "../services/file-writer.service.js";
@@ -8,9 +8,9 @@ function _ts_metadata(k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  }
10
10
  import { injectable } from "@decohere/crucible/decorators";
11
- import { Workspace } from "@decohere/mesh";
12
- import { ActionResponse } from "@decohere/nexus/cli";
13
- import { io } from "@decohere/nexus/io";
11
+ import { Workspace } from "@decohere/workspace";
12
+ import { ActionResponse } from "@decohere/core/cli";
13
+ import { io } from "@decohere/core/io";
14
14
  import { scribe } from "@decohere/scribe";
15
15
  export class Clean {
16
16
  workspace;
@@ -9,9 +9,9 @@ function _ts_metadata(k, v) {
9
9
  }
10
10
  import path from "node:path";
11
11
  import { injectable } from "@decohere/crucible/decorators";
12
- import { Workspace } from "@decohere/mesh";
13
- import { ActionResponse } from "@decohere/nexus/cli";
14
- import { Git } from "@decohere/nexus/interop";
12
+ import { Workspace } from "@decohere/workspace";
13
+ import { ActionResponse } from "@decohere/core/cli";
14
+ import { Git } from "@decohere/core/interop";
15
15
  import { scribe } from "@decohere/scribe";
16
16
  import { formatUnknownError } from "../errors.js";
17
17
  import { Release } from "../workspace.config.js";
@@ -9,10 +9,10 @@ function _ts_metadata(k, v) {
9
9
  }
10
10
  import path from "node:path";
11
11
  import { injectable } from "@decohere/crucible/decorators";
12
- import { Workspace } from "@decohere/mesh";
13
- import { ActionResponse } from "@decohere/nexus/cli";
14
- import { io } from "@decohere/nexus/io";
15
- import { retry } from "@decohere/nexus/system";
12
+ import { Workspace } from "@decohere/workspace";
13
+ import { ActionResponse } from "@decohere/core/cli";
14
+ import { io } from "@decohere/core/io";
15
+ import { retry } from "@decohere/core/system";
16
16
  import { scribe } from "@decohere/scribe";
17
17
  const COPY_RETRY_ATTEMPTS = 3;
18
18
  const COPY_RETRY_DELAY_MS = 25;
@@ -8,9 +8,9 @@ function _ts_metadata(k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  }
10
10
  import { injectable } from "@decohere/crucible/decorators";
11
- import { Workspace } from "@decohere/mesh";
12
- import { ActionResponse } from "@decohere/nexus/cli";
13
- import { io } from "@decohere/nexus/io";
11
+ import { Workspace } from "@decohere/workspace";
12
+ import { ActionResponse } from "@decohere/core/cli";
13
+ import { io } from "@decohere/core/io";
14
14
  import { scribe } from "@decohere/scribe";
15
15
  import { formatUnknownError } from "../errors.js";
16
16
  import { DependencyResolver } from "../services/dependency-resolver.service.js";
@@ -8,8 +8,8 @@ function _ts_metadata(k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  }
10
10
  import { injectable } from "@decohere/crucible/decorators";
11
- import { Workspace } from "@decohere/mesh";
12
- import { ActionResponse } from "@decohere/nexus/cli";
11
+ import { Workspace } from "@decohere/workspace";
12
+ import { ActionResponse } from "@decohere/core/cli";
13
13
  import { scribe } from "@decohere/scribe";
14
14
  import { formatUnknownError } from "../errors.js";
15
15
  import { DependencyResolver } from "../services/dependency-resolver.service.js";
@@ -9,10 +9,10 @@ function _ts_metadata(k, v) {
9
9
  }
10
10
  import path from "node:path";
11
11
  import { injectable } from "@decohere/crucible/decorators";
12
- import { Workspace } from "@decohere/mesh";
13
- import { ActionResponse } from "@decohere/nexus/cli";
14
- import { Docker as DockerInterop } from "@decohere/nexus/interop";
15
- import { io } from "@decohere/nexus/io";
12
+ import { Workspace } from "@decohere/workspace";
13
+ import { ActionResponse } from "@decohere/core/cli";
14
+ import { Docker as DockerInterop } from "@decohere/core/interop";
15
+ import { io } from "@decohere/core/io";
16
16
  import { scribe } from "@decohere/scribe";
17
17
  import { ForgeError, formatUnknownError } from "../errors.js";
18
18
  import { deployable, PACKAGE_DIR } from "../packaging/deployable.js";
@@ -10,8 +10,8 @@ function _ts_metadata(k, v) {
10
10
  import fs from "node:fs/promises";
11
11
  import path from "node:path";
12
12
  import { injectable } from "@decohere/crucible/decorators";
13
- import { Workspace } from "@decohere/mesh";
14
- import { ActionResponse } from "@decohere/nexus/cli";
13
+ import { Workspace } from "@decohere/workspace";
14
+ import { ActionResponse } from "@decohere/core/cli";
15
15
  import { scribe } from "@decohere/scribe";
16
16
  import "../extensions/project.extensions.js";
17
17
  import { ForgeError } from "../errors.js";
@@ -10,10 +10,10 @@ function _ts_metadata(k, v) {
10
10
  import fs from "node:fs/promises";
11
11
  import path from "node:path";
12
12
  import { injectable } from "@decohere/crucible/decorators";
13
- import { Workspace } from "@decohere/mesh";
14
- import { ActionResponse } from "@decohere/nexus/cli";
15
- import { Npm } from "@decohere/nexus/interop";
16
- import { io } from "@decohere/nexus/io";
13
+ import { Workspace } from "@decohere/workspace";
14
+ import { ActionResponse } from "@decohere/core/cli";
15
+ import { Npm } from "@decohere/core/interop";
16
+ import { io } from "@decohere/core/io";
17
17
  import { scribe } from "@decohere/scribe";
18
18
  import { ForgeError, formatUnknownError } from "../errors.js";
19
19
  import { DependencyPinner } from "../packaging/dependency-pinner.service.js";
@@ -11,8 +11,8 @@ import { existsSync } from "node:fs";
11
11
  import { readFile, writeFile } from "node:fs/promises";
12
12
  import path from "node:path";
13
13
  import { injectable } from "@decohere/crucible/decorators";
14
- import { packageAliases, Workspace } from "@decohere/mesh";
15
- import { ActionResponse } from "@decohere/nexus/cli";
14
+ import { packageAliases, Workspace } from "@decohere/workspace";
15
+ import { ActionResponse } from "@decohere/core/cli";
16
16
  import { scribe } from "@decohere/scribe";
17
17
  export const PATHS_FILE = "tsconfig.paths.json";
18
18
  export class Paths {
@@ -8,9 +8,9 @@ function _ts_metadata(k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  }
10
10
  import { injectable } from "@decohere/crucible/decorators";
11
- import { Workspace } from "@decohere/mesh";
12
- import { ActionResponse } from "@decohere/nexus/cli";
13
- import { Npm } from "@decohere/nexus/interop";
11
+ import { Workspace } from "@decohere/workspace";
12
+ import { ActionResponse } from "@decohere/core/cli";
13
+ import { Npm } from "@decohere/core/interop";
14
14
  import { scribe } from "@decohere/scribe";
15
15
  import { ForgeError, formatUnknownError } from "../errors.js";
16
16
  export class Publish {
@@ -5,8 +5,8 @@ function _ts_decorate(decorators, target, key, desc) {
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  }
7
7
  import { injectable } from "@decohere/crucible/decorators";
8
- import { ActionResponse } from "@decohere/nexus/cli";
9
- import { Pnpm } from "@decohere/nexus/interop";
8
+ import { ActionResponse } from "@decohere/core/cli";
9
+ import { Pnpm } from "@decohere/core/interop";
10
10
  import { scribe } from "@decohere/scribe";
11
11
  import { formatUnknownError } from "../errors.js";
12
12
  export class SyncLockFile {
@@ -8,9 +8,9 @@ function _ts_metadata(k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  }
10
10
  import { injectable } from "@decohere/crucible/decorators";
11
- import { Workspace } from "@decohere/mesh";
12
- import { ActionResponse } from "@decohere/nexus/cli";
13
- import { Git } from "@decohere/nexus/interop";
11
+ import { Workspace } from "@decohere/workspace";
12
+ import { ActionResponse } from "@decohere/core/cli";
13
+ import { Git } from "@decohere/core/interop";
14
14
  import { scribe } from "@decohere/scribe";
15
15
  import { ForgeError, formatUnknownError } from "../errors.js";
16
16
  export class Tag {
@@ -8,9 +8,9 @@ function _ts_metadata(k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  }
10
10
  import { injectable } from "@decohere/crucible/decorators";
11
- import { Workspace } from "@decohere/mesh";
12
- import { ActionResponse } from "@decohere/nexus/cli";
13
- import { Trace } from "@decohere/nexus/diagnostics";
11
+ import { Workspace } from "@decohere/workspace";
12
+ import { ActionResponse } from "@decohere/core/cli";
13
+ import { Trace } from "@decohere/core/diagnostics";
14
14
  import { scribe } from "@decohere/scribe";
15
15
  import ts from "typescript";
16
16
  import { ForgeError } from "../errors.js";
@@ -7,7 +7,7 @@ function _ts_decorate(decorators, target, key, desc) {
7
7
  import fs from "node:fs/promises";
8
8
  import path from "node:path";
9
9
  import { injectable } from "@decohere/crucible/decorators";
10
- import { ActionResponse } from "@decohere/nexus/cli";
10
+ import { ActionResponse } from "@decohere/core/cli";
11
11
  import { scribe } from "@decohere/scribe";
12
12
  import { ForgeError } from "../errors.js";
13
13
  import { LINK_MANIFEST } from "./link.action.js";
@@ -11,10 +11,10 @@ import { execSync } from "node:child_process";
11
11
  import { readdir, readFile } from "node:fs/promises";
12
12
  import { join } from "node:path";
13
13
  import { injectable } from "@decohere/crucible/decorators";
14
- import { Workspace } from "@decohere/mesh";
15
- import { ActionResponse } from "@decohere/nexus/cli";
16
- import { Git } from "@decohere/nexus/interop";
17
- import { Semver, SemverError, VersionTypes } from "@decohere/nexus/semver";
14
+ import { Workspace } from "@decohere/workspace";
15
+ import { ActionResponse } from "@decohere/core/cli";
16
+ import { Git } from "@decohere/core/interop";
17
+ import { Semver, SemverError, VersionTypes } from "@decohere/core/semver";
18
18
  import { scribe } from "@decohere/scribe";
19
19
  import { ForgeError, formatUnknownError } from "../errors.js";
20
20
  export const DefaultChannel = "beta";
@@ -8,8 +8,8 @@ function _ts_metadata(k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  }
10
10
  import { injectable } from "@decohere/crucible/decorators";
11
- import { Workspace } from "@decohere/mesh";
12
- import { ActionResponse } from "@decohere/nexus/cli";
11
+ import { Workspace } from "@decohere/workspace";
12
+ import { ActionResponse } from "@decohere/core/cli";
13
13
  import { scribe } from "@decohere/scribe";
14
14
  export class Watch {
15
15
  workspace;
@@ -1,4 +1,4 @@
1
- import { CommandResponse, ConfigurationOption, DecohereCommand, NoCleanOptions } from "@decohere/nexus/cli";
1
+ import { CommandResponse, ConfigurationOption, DecohereCommand, NoCleanOptions } from "@decohere/core/cli";
2
2
  import auto from "async/auto.js";
3
3
  export class BuildCommand extends DecohereCommand {
4
4
  constructor(name){
@@ -1,4 +1,4 @@
1
- import { CommandResponse, ConfigurationOption, DecohereCommand } from "@decohere/nexus/cli";
1
+ import { CommandResponse, ConfigurationOption, DecohereCommand } from "@decohere/core/cli";
2
2
  import { CommitFiles } from "../actions/commit.action.js";
3
3
  import { ReportDependencies } from "../actions/dependency-report.action.js";
4
4
  import { SyncDependencies as DependencySync } from "../actions/dependency-sync.action.js";
@@ -1,4 +1,4 @@
1
- import { ConfigurationOption, DecohereCommand, DryRunOption } from "@decohere/nexus/cli";
1
+ import { ConfigurationOption, DecohereCommand, DryRunOption } from "@decohere/core/cli";
2
2
  import { Docker } from "../actions/docker.action.js";
3
3
  export class DockerCommand extends DecohereCommand {
4
4
  get actions() {
@@ -1,4 +1,4 @@
1
- import { DecohereCommand } from "@decohere/nexus/cli";
1
+ import { DecohereCommand } from "@decohere/core/cli";
2
2
  export class ForgeCommand extends DecohereCommand {
3
3
  constructor(commands, handler){
4
4
  super(ForgeCommand);
@@ -1,4 +1,4 @@
1
- import { CommandResponse, ConfigurationOption, DecohereCommand, NoCleanOptions } from "@decohere/nexus/cli";
1
+ import { CommandResponse, ConfigurationOption, DecohereCommand, NoCleanOptions } from "@decohere/core/cli";
2
2
  import auto from "async/auto.js";
3
3
  import { Build } from "../actions/build.action.js";
4
4
  import { Clean } from "../actions/clean.action.js";
@@ -1,4 +1,4 @@
1
- import { DecohereCommand } from "@decohere/nexus/cli";
1
+ import { DecohereCommand } from "@decohere/core/cli";
2
2
  import { PackageDeployable } from "../actions/package.action.js";
3
3
  export class PackageCommand extends DecohereCommand {
4
4
  get actions() {
@@ -1,4 +1,4 @@
1
- import { DecohereCommand } from "@decohere/nexus/cli";
1
+ import { DecohereCommand } from "@decohere/core/cli";
2
2
  import { Paths } from "../actions/paths.action.js";
3
3
  export class PathsCommand extends DecohereCommand {
4
4
  get actions() {
@@ -1,4 +1,4 @@
1
- import { ConfigurationOption, DecohereCommand, DryRunOption } from "@decohere/nexus/cli";
1
+ import { ConfigurationOption, DecohereCommand, DryRunOption } from "@decohere/core/cli";
2
2
  import { Publish } from "../actions/publish.action.js";
3
3
  export class PublishCommand extends DecohereCommand {
4
4
  get actions() {
@@ -1,4 +1,4 @@
1
- import { DecohereCommand, DryRunOption } from "@decohere/nexus/cli";
1
+ import { DecohereCommand, DryRunOption } from "@decohere/core/cli";
2
2
  import { Tag } from "../actions/tag.action.js";
3
3
  export class TagCommand extends DecohereCommand {
4
4
  get actions() {
@@ -1,4 +1,4 @@
1
- import { ConfigurationOption, DecohereCommand } from "@decohere/nexus/cli";
1
+ import { ConfigurationOption, DecohereCommand } from "@decohere/core/cli";
2
2
  import { TypeCheck } from "../actions/typecheck.action.js";
3
3
  export class TypeCheckCommand extends DecohereCommand {
4
4
  get actions() {
@@ -1,4 +1,4 @@
1
- import { ConfigurationOption, DecohereCommand, DryRunOption } from "@decohere/nexus/cli";
1
+ import { ConfigurationOption, DecohereCommand, DryRunOption } from "@decohere/core/cli";
2
2
  import { SyncLockFile } from "../actions/sync-lock-file.action.js";
3
3
  import { DefaultChannel, DefaultReleaseType, Version } from "../actions/version.action.js";
4
4
  export class VersionCommand extends DecohereCommand {