@decohere/cli 0.0.1-dev.115 → 0.0.1-dev.116

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.
@@ -43,7 +43,7 @@ class ModuleFactory {
43
43
  }
44
44
  }
45
45
  async function buildContainer(module, actions, workspaceOptions) {
46
- const builder = new _crucible.CrucibleBuilder();
46
+ const builder = new _crucible.ServiceContainerBuilder();
47
47
  const workspace = await module.createWorkspace(workspaceOptions ?? {});
48
48
  if (workspace !== null) {
49
49
  builder.registerSingleton(workspace.constructor, workspace);
@@ -8,8 +8,8 @@ Object.defineProperty(exports, "RootCommand", {
8
8
  return RootCommand;
9
9
  }
10
10
  });
11
- const _mesh = require("@decohere/mesh");
12
- const _cli = require("@decohere/nexus/cli");
11
+ const _workspace = require("@decohere/workspace");
12
+ const _cli = require("@decohere/core/cli");
13
13
  const _commander = require("commander");
14
14
  class RootCommand extends _cli.DecohereCommand {
15
15
  #configFile;
@@ -32,7 +32,7 @@ class RootCommand extends _cli.DecohereCommand {
32
32
  }
33
33
  async parseAsync(argv, options) {
34
34
  if (argv?.includes("--version") || argv?.includes("-V")) {
35
- const workspace = await _mesh.WorkspaceFactory.create({
35
+ const workspace = await _workspace.WorkspaceFactory.create({
36
36
  configFile: this.#configFile
37
37
  });
38
38
  const version = await workspace.getVersion() ?? "unknown";
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "RootModule", {
8
8
  return RootModule;
9
9
  }
10
10
  });
11
- const _mesh = require("@decohere/mesh");
12
- const _cli = require("@decohere/nexus/cli");
13
- const _diagnostics = require("@decohere/nexus/diagnostics");
11
+ const _workspace = require("@decohere/workspace");
12
+ const _cli = require("@decohere/core/cli");
13
+ const _diagnostics = require("@decohere/core/diagnostics");
14
14
  const _commander = require("commander");
15
15
  const _modulefactory = require("./module.factory.js");
16
16
  const _rootcommand = require("./root.command.js");
@@ -25,7 +25,7 @@ function _ts_metadata(k, v) {
25
25
  }
26
26
  class RootModule {
27
27
  static async create(moduleTypes, options) {
28
- const userConfig = await _mesh.UserConfigFactory.getUserConfig(options?.configFile);
28
+ const userConfig = await _workspace.UserConfigFactory.getUserConfig(options?.configFile);
29
29
  return new RootModule(moduleTypes, {
30
30
  ...userConfig,
31
31
  configFile: options?.configFile,
@@ -1,4 +1,4 @@
1
- import { CrucibleBuilder } from "@decohere/crucible";
1
+ import { ServiceContainerBuilder } from "@decohere/crucible";
2
2
  /**
3
3
  * Wires a ModuleManifest into a fully functional ApplicationModule.
4
4
  * Handles DI container setup, action registration/resolution, and
@@ -37,7 +37,7 @@ import { CrucibleBuilder } from "@decohere/crucible";
37
37
  }
38
38
  }
39
39
  async function buildContainer(module, actions, workspaceOptions) {
40
- const builder = new CrucibleBuilder();
40
+ const builder = new ServiceContainerBuilder();
41
41
  const workspace = await module.createWorkspace(workspaceOptions ?? {});
42
42
  if (workspace !== null) {
43
43
  builder.registerSingleton(workspace.constructor, workspace);
@@ -1,5 +1,5 @@
1
- import { WorkspaceFactory } from "@decohere/mesh";
2
- import { ConfigFileOption, DecohereCommand, EnvFileIfExistsOption, EnvFileOption, LogLevelOption } from "@decohere/nexus/cli";
1
+ import { WorkspaceFactory } from "@decohere/workspace";
2
+ import { ConfigFileOption, DecohereCommand, EnvFileIfExistsOption, EnvFileOption, LogLevelOption } from "@decohere/core/cli";
3
3
  import { CommanderError } from "commander";
4
4
  export class RootCommand extends DecohereCommand {
5
5
  #configFile;
@@ -7,9 +7,9 @@ function _ts_decorate(decorators, target, key, desc) {
7
7
  function _ts_metadata(k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  }
10
- import { UserConfigFactory } from "@decohere/mesh";
11
- import { CommandResponse, DecohereCommand } from "@decohere/nexus/cli";
12
- import { Trace } from "@decohere/nexus/diagnostics";
10
+ import { UserConfigFactory } from "@decohere/workspace";
11
+ import { CommandResponse, DecohereCommand } from "@decohere/core/cli";
12
+ import { Trace } from "@decohere/core/diagnostics";
13
13
  import { CommanderError } from "commander";
14
14
  import { ModuleFactory } from "./module.factory.js";
15
15
  import { RootCommand } from "./root.command.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decohere/cli",
3
- "version": "0.0.1-dev.115",
3
+ "version": "0.0.1-dev.116",
4
4
  "description": "CLI for the Decohere toolchain — build, serve, publish, and manage TypeScript monorepos",
5
5
  "keywords": [
6
6
  "typescript",
@@ -28,15 +28,15 @@
28
28
  "test": "echo \"Error: no test specified\" && exit 1"
29
29
  },
30
30
  "dependencies": {
31
- "@decohere/create": "0.0.1-dev.115",
32
- "@decohere/crucible": "0.0.1-dev.115",
33
- "@decohere/flux": "0.0.1-dev.115",
34
- "@decohere/forge": "0.0.1-dev.115",
35
- "@decohere/mesh": "0.0.1-dev.115",
36
- "@decohere/nexus": "0.0.1-dev.115",
37
- "@decohere/scaffold": "0.0.1-dev.115",
38
- "@decohere/scribe": "0.0.1-dev.115",
39
- "@decohere/scribe-pino": "0.0.1-dev.115",
31
+ "@decohere/core": "0.0.1-dev.116",
32
+ "@decohere/create": "0.0.1-dev.116",
33
+ "@decohere/crucible": "0.0.1-dev.116",
34
+ "@decohere/flux": "0.0.1-dev.116",
35
+ "@decohere/forge": "0.0.1-dev.116",
36
+ "@decohere/scaffold": "0.0.1-dev.116",
37
+ "@decohere/scribe": "0.0.1-dev.116",
38
+ "@decohere/scribe-pino": "0.0.1-dev.116",
39
+ "@decohere/workspace": "0.0.1-dev.116",
40
40
  "commander": "^13.1.0",
41
41
  "pino-pretty": "^13.1.3"
42
42
  },
@@ -1,4 +1,4 @@
1
- import type { ApplicationModule, CommandResponse, ModuleManifest } from "@decohere/nexus/cli";
1
+ import type { ApplicationModule, CommandResponse, ModuleManifest } from "@decohere/core/cli";
2
2
  /**
3
3
  * Wires a ModuleManifest into a fully functional ApplicationModule.
4
4
  * Handles DI container setup, action registration/resolution, and
@@ -1,4 +1,4 @@
1
- import { type ApplicationModule, DecohereCommand } from "@decohere/nexus/cli";
1
+ import { type ApplicationModule, DecohereCommand } from "@decohere/core/cli";
2
2
  import { type ParseOptions } from "commander";
3
3
  export declare class RootCommand extends DecohereCommand {
4
4
  #private;
@@ -1,6 +1,6 @@
1
- import type { Actions, ModuleManifest } from "@decohere/nexus/cli";
2
- import { CommandResponse } from "@decohere/nexus/cli";
3
- import type { Constructable } from "@decohere/nexus/reflection";
1
+ import type { Actions, ModuleManifest } from "@decohere/core/cli";
2
+ import { CommandResponse } from "@decohere/core/cli";
3
+ import type { Constructable } from "@decohere/core/reflection";
4
4
  import type { Command } from "commander";
5
5
  export declare class RootModule {
6
6
  #private;
@@ -1,4 +1,4 @@
1
- import type { ActionResponse } from "@decohere/nexus/cli";
1
+ import type { ActionResponse } from "@decohere/core/cli";
2
2
  import { AddApiAction, type AddApiOptions, AddModule, Auth0ConfigureAction, type Auth0ConfigureOptions, Auth0LoginAction, Auth0Module, CreateModule, WebapiAction, type WebapiOptions } from "@decohere/scaffold";
3
3
  declare class HostWebapiAction extends WebapiAction {
4
4
  run(options: WebapiOptions): Promise<ActionResponse>;