@devframes/hub 0.9.0-beta.7 → 0.9.0-beta.8

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.
@@ -6,22 +6,13 @@ import { createHostContext, createStorage } from "devframe/node";
6
6
  import { getInternalContext, resolveBasePath } from "devframe/node/hub-internals";
7
7
  import { debounce } from "perfect-debounce";
8
8
  import { coerceAgentPositionalArgs } from "devframe/internal";
9
- import { defineDiagnostics } from "nostics";
10
- import { colors } from "devframe/utils/colors";
11
- import { ansiFormatter } from "nostics/formatters/ansi";
9
+ import { defineDiagnostics } from "devframe/utils/nostics";
12
10
  import { join, resolve } from "pathe";
13
11
  import { nanoid } from "devframe/utils/nanoid";
14
12
  import process from "node:process";
15
- //#region src/utils/diagnostics-reporter.ts
16
- const formatAnsi = ansiFormatter(colors);
17
- function hubReporter(d, { method = "warn" } = {}) {
18
- console[method](formatAnsi(d));
19
- }
20
- //#endregion
21
13
  //#region src/node/diagnostics.ts
22
14
  const diagnostics = defineDiagnostics({
23
15
  docsBase: "https://devfra.me/errors",
24
- reporters: [hubReporter],
25
16
  codes: {
26
17
  DF8000: {
27
18
  why: (p) => `Devframe id "${p.id}" collides with a reserved hub path — it cannot be mounted directly under the hub base.`,
@@ -1,4 +1,4 @@
1
- import { _ as DevframeCommandsHost, a as hubMessagesAdd, c as hubMessagesUpdate, d as hubTerminalsRestart, f as hubTerminalsTerminate, g as DevframeDocksHost, h as DevframeMessagesHost, i as hubDocksActivate, l as hubTerminalsRemove, m as DevframeTerminalsHost, n as builtinHubRpcDeclarations, o as hubMessagesClear, p as hubTerminalsWrite, r as hubCommandsExecute, s as hubMessagesRemove, t as createHubContext, u as hubTerminalsResize } from "../context-BWL13DdL.mjs";
1
+ import { _ as DevframeCommandsHost, a as hubMessagesAdd, c as hubMessagesUpdate, d as hubTerminalsRestart, f as hubTerminalsTerminate, g as DevframeDocksHost, h as DevframeMessagesHost, i as hubDocksActivate, l as hubTerminalsRemove, m as DevframeTerminalsHost, n as builtinHubRpcDeclarations, o as hubMessagesClear, p as hubTerminalsWrite, r as hubCommandsExecute, s as hubMessagesRemove, t as createHubContext, u as hubTerminalsResize } from "../context-DzqMQ2mI.mjs";
2
2
  import "ufo";
3
3
  import "pathe";
4
4
  import "node:process";
@@ -1,5 +1,5 @@
1
1
  import { DEVFRAMES_HUB_BASE, DOCK_RENDERERS_STATE_KEY, normalizeHubBase } from "../constants.mjs";
2
- import { t as createHubContext, v as diagnostics } from "../context-BWL13DdL.mjs";
2
+ import { t as createHubContext, v as diagnostics } from "../context-DzqMQ2mI.mjs";
3
3
  import { joinURL, withTrailingSlash, withoutLeadingSlash } from "ufo";
4
4
  import { DEVFRAME_CONNECTION_META_FILENAME, DEVFRAME_DOCK_IMPORTS_FILENAME, DEVFRAME_MCP_ROUTE, DEVFRAME_WS_ROUTE } from "devframe/constants";
5
5
  import { createH3DevframeHost, createInstanceShell, resolveInstanceRegister } from "devframe/internal";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/hub",
3
3
  "type": "module",
4
- "version": "0.9.0-beta.7",
4
+ "version": "0.9.0-beta.8",
5
5
  "description": "Hub layer that orchestrates devframe docks, terminals, messages, and commands on any host.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -34,13 +34,12 @@
34
34
  "dist"
35
35
  ],
36
36
  "peerDependencies": {
37
- "devframe": "0.9.0-beta.7"
37
+ "devframe": "0.9.0-beta.8"
38
38
  },
39
39
  "dependencies": {
40
40
  "@standard-schema/spec": "^1.1.0",
41
41
  "destr": "^2.0.5",
42
42
  "h3": "^2.0.1-rc.26",
43
- "nostics": "^1.2.0",
44
43
  "pathe": "^2.0.3",
45
44
  "perfect-debounce": "^2.1.0",
46
45
  "tinyexec": "^1.3.0",
@@ -53,7 +52,7 @@
53
52
  "mlly": "^1.8.2",
54
53
  "tsdown": "^0.22.14",
55
54
  "valibot": "^1.4.2",
56
- "devframe": "0.9.0-beta.7"
55
+ "devframe": "0.9.0-beta.8"
57
56
  },
58
57
  "scripts": {
59
58
  "build": "tsdown",