@devframes/plugin-messages 0.9.7 → 0.9.9
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/README.md +2 -2
- package/dist/cli.d.mts +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.mjs +2727 -2687
- package/dist/constants.d.mts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +1 -1
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.mjs +2 -2
- package/dist/{node-BSNBb_rJ.mjs → node-CAEXablA.mjs} +3 -3
- package/dist/rpc/index.d.mts +1 -1
- package/dist/rpc/index.mjs +1 -1
- package/dist/{rpc-BRlKSu4p.mjs → rpc-CdgIByLV.mjs} +3 -3
- package/dist/{src-Ob5z2C1I.mjs → src-BWFxGgye.mjs} +12 -3
- package/package.json +22 -22
package/dist/constants.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/constants.d.ts
|
|
2
|
-
/** Devframe id
|
|
2
|
+
/** Devframe id, drives the hosted mount path `/__<id>/`. */
|
|
3
3
|
declare const PLUGIN_ID = "devframes_plugin_messages";
|
|
4
4
|
/** Preferred standalone CLI port (901x band shared by the core-ish plugins). */
|
|
5
5
|
declare const DEFAULT_PORT = 9014;
|
package/dist/constants.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/constants.ts
|
|
2
|
-
/** Devframe id
|
|
2
|
+
/** Devframe id, drives the hosted mount path `/__<id>/`. */
|
|
3
3
|
const PLUGIN_ID = "devframes_plugin_messages";
|
|
4
4
|
/** Preferred standalone CLI port (901x band shared by the core-ish plugins). */
|
|
5
5
|
const DEFAULT_PORT = 9014;
|
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ import { DEFAULT_PORT, MESSAGES_UPDATED_EVENT, PLUGIN_ID } from "./constants.mjs
|
|
|
2
2
|
import { DevframeMessageEntry, DevframeMessageEntryFrom, DevframeMessageEntryInput, DevframeMessageLevel, DevframeMessagesListDelta } from "@devframes/hub/types";
|
|
3
3
|
import { DevframeDefinition } from "devframe";
|
|
4
4
|
//#region src/index.d.ts
|
|
5
|
+
/** The panel `clientScript` bundle (`dist/client`) stays in this node package. */
|
|
5
6
|
interface MessagesDevframeOptions {
|
|
6
7
|
/** Override the devframe id (and default CLI command / mount path). */
|
|
7
8
|
id?: string;
|
|
@@ -18,14 +19,14 @@ interface MessagesDevframeOptions {
|
|
|
18
19
|
port?: number;
|
|
19
20
|
/**
|
|
20
21
|
* Require the trust handshake on the standalone server. Enabled by
|
|
21
|
-
* default
|
|
22
|
+
* default; `--open` embeds the current OTP in the opened URL, so the
|
|
22
23
|
* tab authenticates automatically without extra prompts. Hosted adapters
|
|
23
24
|
* manage their own auth and ignore this.
|
|
24
25
|
*/
|
|
25
26
|
auth?: boolean;
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
|
-
* Build a {@link DevframeDefinition} for the hub message feed panel
|
|
29
|
+
* Build a {@link DevframeDefinition} for the hub message feed panel,
|
|
29
30
|
* a portable view over `ctx.messages`, ported from vitejs/devtools'
|
|
30
31
|
* built-in Messages view. The same definition runs standalone
|
|
31
32
|
* (`/cli`, `/build`) and mounts into a host (`/vite`, hub);
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createMessagesDevframe } from "./src-
|
|
1
|
+
import { t as createMessagesDevframe } from "./src-BWFxGgye.mjs";
|
|
2
2
|
import { DEFAULT_PORT, MESSAGES_UPDATED_EVENT, PLUGIN_ID } from "./constants.mjs";
|
|
3
3
|
export { DEFAULT_PORT, MESSAGES_UPDATED_EVENT, PLUGIN_ID, createMessagesDevframe, createMessagesDevframe as default };
|
package/dist/node/index.d.mts
CHANGED
|
@@ -8,7 +8,7 @@ import { DevframeNodeContext } from "devframe";
|
|
|
8
8
|
*
|
|
9
9
|
* The plugin reads the feed from the hub-attached `ctx.messages` host. On a
|
|
10
10
|
* plain (non-hub) context it warns once and keeps the RPC surface registered
|
|
11
|
-
* as no-ops, so the panel still renders
|
|
11
|
+
* as no-ops, so the panel still renders, with an empty feed.
|
|
12
12
|
*/
|
|
13
13
|
declare function setupMessages(ctx: DevframeNodeContext): void;
|
|
14
14
|
//#endregion
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as setupMessages } from "../node-
|
|
2
|
-
import { t as serverFunctions } from "../rpc-
|
|
1
|
+
import { t as setupMessages } from "../node-CAEXablA.mjs";
|
|
2
|
+
import { t as serverFunctions } from "../rpc-CdgIByLV.mjs";
|
|
3
3
|
export { serverFunctions, setupMessages };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PLUGIN_ID } from "./constants.mjs";
|
|
2
|
-
import { n as getMessagesHost, t as serverFunctions } from "./rpc-
|
|
2
|
+
import { n as getMessagesHost, t as serverFunctions } from "./rpc-CdgIByLV.mjs";
|
|
3
3
|
import { defineDiagnostics } from "devframe/utils/nostics";
|
|
4
4
|
//#region src/diagnostics.ts
|
|
5
5
|
/**
|
|
@@ -11,7 +11,7 @@ import { defineDiagnostics } from "devframe/utils/nostics";
|
|
|
11
11
|
const diagnostics = defineDiagnostics({
|
|
12
12
|
docsBase: "https://devfra.me/errors",
|
|
13
13
|
codes: { DP_MESSAGES_0001: {
|
|
14
|
-
why: (p) => `"${p.id}" is mounted on a context without a hub messages host (\`ctx.messages\`)
|
|
14
|
+
why: (p) => `"${p.id}" is mounted on a context without a hub messages host (\`ctx.messages\`); its RPC surface stays registered but no-ops, so the panel will show an empty feed.`,
|
|
15
15
|
fix: "Mount this devframe through a hub host (`@devframes/hub`'s `initHub`, or `createHubContext` + `ctx.install`) to get a live message feed."
|
|
16
16
|
} }
|
|
17
17
|
});
|
|
@@ -24,7 +24,7 @@ const diagnostics = defineDiagnostics({
|
|
|
24
24
|
*
|
|
25
25
|
* The plugin reads the feed from the hub-attached `ctx.messages` host. On a
|
|
26
26
|
* plain (non-hub) context it warns once and keeps the RPC surface registered
|
|
27
|
-
* as no-ops, so the panel still renders
|
|
27
|
+
* as no-ops, so the panel still renders, with an empty feed.
|
|
28
28
|
*/
|
|
29
29
|
function setupMessages(ctx) {
|
|
30
30
|
if (!getMessagesHost(ctx)) diagnostics.DP_MESSAGES_0001({ id: PLUGIN_ID });
|
package/dist/rpc/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RpcDefinitionsToFunctions } from "devframe/rpc";
|
|
2
2
|
//#region src/rpc/index.d.ts
|
|
3
3
|
/**
|
|
4
|
-
* The message-feed RPC functions registered by the plugin
|
|
4
|
+
* The message-feed RPC functions registered by the plugin: thin, typed
|
|
5
5
|
* wrappers over the hub's `ctx.messages` host. Namespaced
|
|
6
6
|
* `devframes:plugin:messages:*` per the plugin convention.
|
|
7
7
|
*/
|
package/dist/rpc/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as serverFunctions } from "../rpc-
|
|
1
|
+
import { t as serverFunctions } from "../rpc-CdgIByLV.mjs";
|
|
2
2
|
export { serverFunctions };
|
|
@@ -9,7 +9,7 @@ const defineMessagesRpc = createDefineWrapperWithContext();
|
|
|
9
9
|
/**
|
|
10
10
|
* Read the hub-attached messages host off a node context, if present. The
|
|
11
11
|
* plugin talks to `ctx.messages` structurally so its shipped code carries no
|
|
12
|
-
* runtime dependency on `@devframes/hub
|
|
12
|
+
* runtime dependency on `@devframes/hub`, so hosts other than the hub can
|
|
13
13
|
* satisfy the same surface.
|
|
14
14
|
*/
|
|
15
15
|
function getMessagesHost(ctx) {
|
|
@@ -64,7 +64,7 @@ const messagesList = defineMessagesRpc({
|
|
|
64
64
|
snapshot: true,
|
|
65
65
|
agent: {
|
|
66
66
|
title: "List messages",
|
|
67
|
-
description: "List the hub message feed
|
|
67
|
+
description: "List the hub message feed: diagnostics, notifications, and tool output entries with level, category, labels, and positions."
|
|
68
68
|
},
|
|
69
69
|
setup: (ctx) => ({ handler: async (since) => {
|
|
70
70
|
const host = getMessagesHost(ctx);
|
|
@@ -91,7 +91,7 @@ const messagesRemove = defineMessagesRpc({
|
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region src/rpc/index.ts
|
|
93
93
|
/**
|
|
94
|
-
* The message-feed RPC functions registered by the plugin
|
|
94
|
+
* The message-feed RPC functions registered by the plugin: thin, typed
|
|
95
95
|
* wrappers over the hub's `ctx.messages` host. Namespaced
|
|
96
96
|
* `devframes:plugin:messages:*` per the plugin convention.
|
|
97
97
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./constants.mjs";
|
|
2
|
-
import { t as setupMessages } from "./node-
|
|
2
|
+
import { t as setupMessages } from "./node-CAEXablA.mjs";
|
|
3
3
|
import { defineDevframe } from "devframe";
|
|
4
4
|
//#region package.json
|
|
5
5
|
var name = "@devframes/plugin-messages";
|
|
6
|
-
var version = "0.9.
|
|
6
|
+
var version = "0.9.9";
|
|
7
7
|
var description = "Devframe plugin for browsing, filtering, and dismissing the hub message feed.";
|
|
8
8
|
var homepage = "https://github.com/devframes/devframe#readme";
|
|
9
9
|
//#endregion
|
|
@@ -13,7 +13,7 @@ const remoteAssets = {
|
|
|
13
13
|
version
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
|
-
* Build a {@link DevframeDefinition} for the hub message feed panel
|
|
16
|
+
* Build a {@link DevframeDefinition} for the hub message feed panel,
|
|
17
17
|
* a portable view over `ctx.messages`, ported from vitejs/devtools'
|
|
18
18
|
* built-in Messages view. The same definition runs standalone
|
|
19
19
|
* (`/cli`, `/build`) and mounts into a host (`/vite`, hub);
|
|
@@ -38,9 +38,18 @@ function createMessagesDevframe(options = {}) {
|
|
|
38
38
|
command: id,
|
|
39
39
|
port: options.port ?? 9014,
|
|
40
40
|
distDir: remoteAssets,
|
|
41
|
+
/**
|
|
42
|
+
* Gate the standalone server by default; `maybeOpenBrowser` folds the
|
|
43
|
+
* current OTP into the `--open` URL so the tab lands already trusted.
|
|
44
|
+
* Hosted adapters (Vite/hub) supply their own auth layer and ignore this.
|
|
45
|
+
*/
|
|
41
46
|
auth: options.auth ?? true
|
|
42
47
|
},
|
|
43
48
|
dock: { category: "~builtin" },
|
|
49
|
+
/**
|
|
50
|
+
* Backs the detail panel's "open file" affordance; the panel hides it
|
|
51
|
+
* when the service isn't advertised.
|
|
52
|
+
*/
|
|
44
53
|
services: [{ package: "@devframes/service-open" }],
|
|
45
54
|
setup(ctx) {
|
|
46
55
|
setupMessages(ctx);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/plugin-messages",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.9",
|
|
5
5
|
"description": "Devframe plugin for browsing, filtering, and dismissing the hub message feed.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"dist"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"
|
|
42
|
-
"@devframes/plugin-messages--assets": "0.9.
|
|
43
|
-
"
|
|
44
|
-
"
|
|
41
|
+
"@devframes/hub": "0.9.9",
|
|
42
|
+
"@devframes/plugin-messages--assets": "0.9.9",
|
|
43
|
+
"devframe": "0.9.9",
|
|
44
|
+
"vite": "^7.0.0 || ^8.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
47
47
|
"@devframes/plugin-messages--assets": {
|
|
@@ -52,32 +52,32 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"
|
|
56
|
-
"
|
|
55
|
+
"@devframes/service-open": "0.9.9",
|
|
56
|
+
"cac": "^7.0.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@antfu/design": "^0.
|
|
59
|
+
"@antfu/design": "^0.4.0",
|
|
60
|
+
"@devframes/hub": "0.9.9",
|
|
61
|
+
"@devframes/plugin-messages--assets": "0.9.9",
|
|
62
|
+
"@devframes/vite": "0.9.9",
|
|
60
63
|
"@iconify-json/ph": "^1.2.2",
|
|
61
|
-
"@storybook/addon-docs": "^10.5.
|
|
62
|
-
"@storybook/vue3-vite": "^10.5.
|
|
63
|
-
"@types/node": "^26.
|
|
64
|
+
"@storybook/addon-docs": "^10.5.10",
|
|
65
|
+
"@storybook/vue3-vite": "^10.5.10",
|
|
66
|
+
"@types/node": "^26.4.0",
|
|
64
67
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
65
68
|
"@vueuse/core": "^14.4.0",
|
|
66
69
|
"colorjs.io": "^0.7.1",
|
|
70
|
+
"devframe": "0.9.9",
|
|
67
71
|
"floating-vue": "^5.2.2",
|
|
68
|
-
"h3": "^2.0.1-rc.
|
|
69
|
-
"storybook": "^10.5.
|
|
72
|
+
"h3": "^2.0.1-rc.29",
|
|
73
|
+
"storybook": "^10.5.10",
|
|
70
74
|
"tsdown": "^0.22.14",
|
|
71
|
-
"unocss": "^66.
|
|
72
|
-
"vite": "^8.2.
|
|
75
|
+
"unocss": "^66.8.1",
|
|
76
|
+
"vite": "^8.2.2",
|
|
73
77
|
"vite-plugin-css-injected-by-js": "^5.0.2",
|
|
74
|
-
"vitest": "^4.1.
|
|
75
|
-
"vue": "^3.5.
|
|
76
|
-
"ws": "^8.21.3"
|
|
77
|
-
"@devframes/hub": "0.9.7",
|
|
78
|
-
"@devframes/plugin-messages--assets": "0.9.7",
|
|
79
|
-
"@devframes/vite": "0.9.7",
|
|
80
|
-
"devframe": "0.9.7"
|
|
78
|
+
"vitest": "^4.1.11",
|
|
79
|
+
"vue": "^3.5.42",
|
|
80
|
+
"ws": "^8.21.3"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"build": "tsdown && vite build --config src/client/vite.config.ts && vite build --config src/spa/vite.config.ts",
|