@devframes/plugin-messages 1.3.1 → 1.3.3

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.
@@ -1,10 +1,8 @@
1
1
  import { CacHandle } from "devframe/adapters/cac";
2
- //#region src/node/cli.d.ts
3
2
  /**
4
3
  * Build the standalone CLI for the messages panel; backs the package `bin`
5
4
  * (`devframe-messages`) and `pnpx @devframes/plugin-messages`. Wraps the
6
5
  * default {@link createMessagesDevframe} definition with devframe's
7
6
  * `dev` / `build` / `mcp` command shell.
8
7
  */
9
- export declare function createMessagesCli(): CacHandle;
10
- //#endregion
8
+ export declare function createMessagesCli(): CacHandle;
package/dist/node/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { t as createMessagesDevframe } from "../node-DlwViU5I.mjs";
1
+ import { t as createMessagesDevframe } from "../node-DyjFfmcy.mjs";
2
2
  import { createCac } from "devframe/adapters/cac";
3
- //#region src/node/cli.ts
3
+ // src/node/cli.ts
4
4
  /**
5
5
  * Build the standalone CLI for the messages panel; backs the package `bin`
6
6
  * (`devframe-messages`) and `pnpx @devframes/plugin-messages`. Wraps the
@@ -10,5 +10,4 @@ import { createCac } from "devframe/adapters/cac";
10
10
  function createMessagesCli() {
11
11
  return createCac(createMessagesDevframe());
12
12
  }
13
- //#endregion
14
13
  export { createMessagesCli };
@@ -1,4 +1,3 @@
1
- //#region src/node/constants.d.ts
2
1
  /** Devframe id, drives the hosted mount path `/__<id>/`. */
3
2
  export declare const PLUGIN_ID = "devframes_plugin_messages";
4
3
  /** Preferred standalone CLI port (901x band shared by the core-ish plugins). */
@@ -9,5 +8,4 @@ export declare const DEFAULT_PORT = 9014;
9
8
  * internal event name; kept as a literal so the client bundle carries no hub
10
9
  * build dependency.
11
10
  */
12
- export declare const MESSAGES_UPDATED_EVENT = "devframe:messages:updated";
13
- //#endregion
11
+ export declare const MESSAGES_UPDATED_EVENT = "devframe:messages:updated";
@@ -1,4 +1,4 @@
1
- //#region src/node/constants.ts
1
+ // src/node/constants.ts
2
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). */
@@ -10,5 +10,4 @@ const DEFAULT_PORT = 9014;
10
10
  * build dependency.
11
11
  */
12
12
  const MESSAGES_UPDATED_EVENT = "devframe:messages:updated";
13
- //#endregion
14
13
  export { DEFAULT_PORT, MESSAGES_UPDATED_EVENT, PLUGIN_ID };
@@ -1,7 +1,6 @@
1
1
  import { DEFAULT_PORT, MESSAGES_UPDATED_EVENT, PLUGIN_ID } from "./constants.mjs";
2
2
  import { DevframeDefinition } from "devframe";
3
3
  import { DevframeMessageEntry, DevframeMessageEntryFrom, DevframeMessageEntryInput, DevframeMessageLevel, DevframeMessagesListDelta } from "@devframes/hub/types";
4
- //#region src/node/index.d.ts
5
4
  /** The panel `clientScript` bundle (`dist/client`) stays in this node package. */
6
5
  export interface MessagesDevframeOptions {
7
6
  /** Override the devframe id (and default CLI command / mount path). */
@@ -36,5 +35,4 @@ export interface MessagesDevframeOptions {
36
35
  * version bump until it stabilizes.
37
36
  */
38
37
  export declare function createMessagesDevframe(options?: MessagesDevframeOptions): DevframeDefinition;
39
- //#endregion
40
38
  export { DEFAULT_PORT, type DevframeMessageEntry, type DevframeMessageEntryFrom, type DevframeMessageEntryInput, type DevframeMessageLevel, type DevframeMessagesListDelta, MESSAGES_UPDATED_EVENT, PLUGIN_ID, createMessagesDevframe as default };
@@ -1,3 +1,3 @@
1
- import { t as createMessagesDevframe } from "../node-DlwViU5I.mjs";
1
+ import { t as createMessagesDevframe } from "../node-DyjFfmcy.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 };
@@ -1,5 +1,4 @@
1
1
  import { RpcDefinitionsToFunctions } from "devframe/rpc";
2
- //#region src/node/rpc/index.d.ts
3
2
  /**
4
3
  * The message-feed RPC functions registered by the plugin: thin, typed
5
4
  * wrappers over the hub's `ctx.messages` host. Namespaced
@@ -8,5 +7,4 @@ import { RpcDefinitionsToFunctions } from "devframe/rpc";
8
7
  export declare const serverFunctions: readonly [import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"devframes:plugin:messages:list", "query", [since?: number | null | undefined], Promise<import("@devframes/hub/types").DevframeMessagesListDelta>, undefined, undefined, import("devframe").DevframeNodeContext>, import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"devframes:plugin:messages:add", "action", [input: import("@devframes/hub/types").DevframeMessageEntryInput], Promise<import("@devframes/hub/types").DevframeMessageEntry | null>, undefined, undefined, import("devframe").DevframeNodeContext>, import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"devframes:plugin:messages:update", "action", [id: string, patch: Partial<import("@devframes/hub/types").DevframeMessageEntryInput>], Promise<import("@devframes/hub/types").DevframeMessageEntry | null>, undefined, undefined, import("devframe").DevframeNodeContext>, import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"devframes:plugin:messages:remove", "action", [id: string], Promise<void>, undefined, undefined, import("devframe").DevframeNodeContext>, import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"devframes:plugin:messages:clear", "action", [], Promise<void>, undefined, undefined, import("devframe").DevframeNodeContext>];
9
8
  declare module 'devframe' {
10
9
  interface DevframeRpcServerFunctions extends RpcDefinitionsToFunctions<typeof serverFunctions> {}
11
- }
12
- //#endregion
10
+ }
@@ -1,2 +1 @@
1
- import { t as serverFunctions } from "../../rpc-SrdqlzWN.mjs";
2
- export { serverFunctions };
1
+ export { t as serverFunctions } from "../../rpc-BC9Ka8ht.mjs";
@@ -1,6 +1,5 @@
1
1
  import { serverFunctions } from "./rpc/index.mjs";
2
2
  import { DevframeNodeContext } from "devframe";
3
- //#region src/node/setup.d.ts
4
3
  /**
5
4
  * Register the message-feed RPC functions on a devframe node context.
6
5
  * Called from the definition's `setup(ctx)` and reusable by host adapters
@@ -11,5 +10,4 @@ import { DevframeNodeContext } from "devframe";
11
10
  * as no-ops, so the panel still renders, with an empty feed.
12
11
  */
13
12
  export declare function setupMessages(ctx: DevframeNodeContext): void;
14
- //#endregion
15
13
  export { serverFunctions };
@@ -1,3 +1,3 @@
1
- import { t as setupMessages } from "../setup-XNIADaJu.mjs";
2
- import { t as serverFunctions } from "../rpc-SrdqlzWN.mjs";
1
+ import { t as setupMessages } from "../setup-Ta4sjlzO.mjs";
2
+ import { t as serverFunctions } from "../rpc-BC9Ka8ht.mjs";
3
3
  export { serverFunctions, setupMessages };
@@ -1,13 +1,12 @@
1
1
  import "./node/constants.mjs";
2
- import { t as setupMessages } from "./setup-XNIADaJu.mjs";
2
+ import { t as setupMessages } from "./setup-Ta4sjlzO.mjs";
3
3
  import { defineDevframe } from "devframe";
4
- //#region package.json
4
+ // package.json
5
5
  var name = "@devframes/plugin-messages";
6
- var version = "1.3.1";
6
+ var version = "1.3.3";
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
- //#endregion
10
- //#region src/node/index.ts
9
+ // src/node/index.ts
11
10
  const remoteAssets = {
12
11
  package: `${name}--assets`,
13
12
  version
@@ -56,5 +55,4 @@ function createMessagesDevframe(options = {}) {
56
55
  }
57
56
  });
58
57
  }
59
- //#endregion
60
58
  export { createMessagesDevframe as t };
@@ -1,5 +1,5 @@
1
1
  import { defineRpcFunction } from "devframe";
2
- //#region src/node/rpc/functions/_define.ts
2
+ // src/node/rpc/functions/_define.ts
3
3
  /**
4
4
  * Read the hub-attached messages host off a node context, if present. The
5
5
  * plugin talks to `ctx.messages` structurally so its shipped code carries no
@@ -9,8 +9,7 @@ import { defineRpcFunction } from "devframe";
9
9
  function getMessagesHost(ctx) {
10
10
  return ctx.messages;
11
11
  }
12
- //#endregion
13
- //#region src/node/rpc/functions/add.ts
12
+ // src/node/rpc/functions/add.ts
14
13
  /**
15
14
  * Add a message entry from a browser client. The origin is force-stamped
16
15
  * `from: 'browser'` so client-originated entries can't impersonate the
@@ -30,8 +29,7 @@ const messagesAdd = defineRpcFunction({
30
29
  })).entry;
31
30
  } })
32
31
  });
33
- //#endregion
34
- //#region src/node/rpc/functions/clear.ts
32
+ // src/node/rpc/functions/clear.ts
35
33
  /** Clear the whole message feed. */
36
34
  const messagesClear = defineRpcFunction({
37
35
  name: "devframes:plugin:messages:clear",
@@ -41,8 +39,7 @@ const messagesClear = defineRpcFunction({
41
39
  await getMessagesHost(ctx)?.clear();
42
40
  } })
43
41
  });
44
- //#endregion
45
- //#region src/node/rpc/functions/list.ts
42
+ // src/node/rpc/functions/list.ts
46
43
  /**
47
44
  * Read the message list incrementally. Pass the `version` from the previous
48
45
  * result as `since` to receive only what changed; omit it for the initial
@@ -71,8 +68,7 @@ const messagesList = defineRpcFunction({
71
68
  return host.listSince(since);
72
69
  } })
73
70
  });
74
- //#endregion
75
- //#region src/node/rpc/functions/remove.ts
71
+ // src/node/rpc/functions/remove.ts
76
72
  /** Remove (dismiss) a single message entry by id. */
77
73
  const messagesRemove = defineRpcFunction({
78
74
  name: "devframes:plugin:messages:remove",
@@ -82,8 +78,7 @@ const messagesRemove = defineRpcFunction({
82
78
  await getMessagesHost(ctx)?.remove(id);
83
79
  } })
84
80
  });
85
- //#endregion
86
- //#region src/node/rpc/index.ts
81
+ // src/node/rpc/index.ts
87
82
  /**
88
83
  * The message-feed RPC functions registered by the plugin: thin, typed
89
84
  * wrappers over the hub's `ctx.messages` host. Namespaced
@@ -105,5 +100,4 @@ const serverFunctions = [
105
100
  messagesRemove,
106
101
  messagesClear
107
102
  ];
108
- //#endregion
109
103
  export { getMessagesHost as n, serverFunctions as t };
@@ -1,7 +1,7 @@
1
1
  import { PLUGIN_ID } from "./node/constants.mjs";
2
- import { n as getMessagesHost, t as serverFunctions } from "./rpc-SrdqlzWN.mjs";
2
+ import { n as getMessagesHost, t as serverFunctions } from "./rpc-BC9Ka8ht.mjs";
3
3
  import { defineDiagnostics } from "devframe/utils/nostics";
4
- //#region src/node/diagnostics.ts
4
+ // src/node/diagnostics.ts
5
5
  /**
6
6
  * Structured diagnostics for `@devframes/plugin-messages`. Node-side only.
7
7
  * Codes use the plugin-private `DP_MESSAGES_` band (see the built-in
@@ -15,8 +15,7 @@ const diagnostics = defineDiagnostics({
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
  });
18
- //#endregion
19
- //#region src/node/setup.ts
18
+ // src/node/setup.ts
20
19
  /**
21
20
  * Register the message-feed RPC functions on a devframe node context.
22
21
  * Called from the definition's `setup(ctx)` and reusable by host adapters
@@ -30,5 +29,4 @@ function setupMessages(ctx) {
30
29
  if (!getMessagesHost(ctx)) diagnostics.DP_MESSAGES_0001({ id: PLUGIN_ID });
31
30
  for (const fn of serverFunctions) ctx.rpc.register(fn);
32
31
  }
33
- //#endregion
34
32
  export { setupMessages as t };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/plugin-messages",
3
3
  "type": "module",
4
- "version": "1.3.1",
4
+ "version": "1.3.3",
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,9 +38,9 @@
38
38
  "dist"
39
39
  ],
40
40
  "peerDependencies": {
41
- "@devframes/hub": "1.3.1",
42
- "@devframes/plugin-messages--assets": "1.3.1",
43
- "devframe": "1.3.1",
41
+ "@devframes/hub": "1.3.3",
42
+ "@devframes/plugin-messages--assets": "1.3.3",
43
+ "devframe": "1.3.3",
44
44
  "vite": "^7.0.0 || ^8.0.0"
45
45
  },
46
46
  "peerDependenciesMeta": {
@@ -52,32 +52,32 @@
52
52
  }
53
53
  },
54
54
  "dependencies": {
55
- "@devframes/service-open": "1.3.1",
55
+ "@devframes/service-open": "1.3.3",
56
56
  "cac": "^7.1.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@antfu/design": "^0.6.0",
60
- "@devframes/hub": "1.3.1",
61
- "@devframes/plugin-messages--assets": "1.3.1",
62
- "@devframes/vite": "1.3.1",
60
+ "@devframes/hub": "1.3.3",
61
+ "@devframes/plugin-messages--assets": "1.3.3",
62
+ "@devframes/vite": "1.3.3",
63
63
  "@iconify-json/ph": "^1.2.2",
64
- "@storybook/addon-docs": "^10.6.3",
65
- "@storybook/vue3-vite": "^10.6.3",
66
- "@types/node": "^26.6.5",
64
+ "@storybook/addon-docs": "^10.6.6",
65
+ "@storybook/vue3-vite": "^10.6.6",
66
+ "@types/node": "^26.6.6",
67
67
  "@vitejs/plugin-vue": "^6.0.10",
68
68
  "@vueuse/core": "^15.0.0",
69
69
  "colorjs.io": "^0.7.1",
70
- "devframe": "1.3.1",
71
- "h3": "^2.0.7",
72
- "storybook": "^10.6.3",
73
- "tsdown": "0.23.0",
74
- "unocss": "^66.11.0",
75
- "vite": "^8.3.4",
76
- "vite-plugin-css-injected-by-js": "^5.0.2",
77
- "vitest": "^5.0.5",
78
- "vue": "^3.5.44",
70
+ "devframe": "1.3.3",
71
+ "h3": "^2.0.8",
72
+ "storybook": "^10.6.6",
73
+ "tsdown": "^0.23.7",
74
+ "unocss": "^66.12.0",
75
+ "vite": "^8.3.6",
76
+ "vite-plugin-css-injected-by-js": "^5.0.3",
77
+ "vitest": "^5.1.0",
78
+ "vue": "^3.5.45",
79
79
  "vue-afloat": "^0.2.0",
80
- "ws": "^8.22.0"
80
+ "ws": "^8.22.2"
81
81
  },
82
82
  "scripts": {
83
83
  "build": "tsdown && vite build --config app/client/vite.config.ts && vite build --config app/vite.config.ts",