@xpert-ai/plugin-live-dashboard 0.1.2 → 0.1.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/plugin-live-dashboard",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "level": "system",
5
5
  "artifactNamespace": "live_dashboard",
6
6
  "sandboxActions": "./dist/sandbox-actions/action.json",
@@ -6,5 +6,5 @@ export declare class DashboardMiddleware implements IAgentMiddlewareStrategy {
6
6
  private readonly service;
7
7
  readonly meta: TAgentMiddlewareMeta;
8
8
  constructor(service: DashboardService);
9
- createMiddleware(_options: object, context: IAgentMiddlewareContext): AgentMiddleware;
9
+ createMiddleware(_options: unknown, context: IAgentMiddlewareContext): AgentMiddleware;
10
10
  }
@@ -28,7 +28,7 @@ const filter_evidence_1 = require("./filter-evidence");
28
28
  const save_evidence_1 = require("./save-evidence");
29
29
  const resource_card_1 = require("./resource-card");
30
30
  const dashboard_icon_1 = require("./dashboard-icon");
31
- const middlewareOptionsSchema = v3_1.z.object({ allowedFinalProviders: v3_1.z.array(v3_1.z.string().min(1)).min(1).max(20).optional() }).strict();
31
+ const middlewareOptionsSchema = v3_1.z.object({ allowedFinalProviders: v3_1.z.array(v3_1.z.string().min(1)).min(1).max(20).optional() }).strict().default({});
32
32
  exports.DASHBOARD_GUIDANCE = `For a new independent dashboard, use a new unused HTML file path. An existing filename or matching title is not authorization to edit another Artifact; do not switch from creation to dashboard_open/update because a file already exists. For a new dashboard, call dashboard_list_sources before searching raw files, reading old scripts or creating transformations. Named governed sources may already provide the required query; inspect their provider contracts first. File-backed sources do not imply that a script must be written. For creating or editing live dashboards, first read the installed live-dashboard skill using read_skill_file and follow only the references relevant to the task. Use SandboxFile tools for all source-file authoring; HTML alone is not a saved dashboard. Follow preview.validation.checks immediately before authoring HTML; each suggestedCall must actually succeed. Business definitions, real data previews and nullable-filter tests are required before saving new or changed Bindings. Do not invent business data or substitute a different metric without agreement. Report completion only from a successful dashboard_create/dashboard_create_html/dashboard_update draft receipt. Human publication is separate. Successful create, update and open tools emit a chat resource card automatically; resourceCard.status reports emission. Its Open button selects the exact dashboard in Workbench. Never fabricate a link, call present_files for dashboard HTML, or output card JSON as text. If card delivery is unavailable, report the saved receipt and use the Workbench picker.`;
33
33
  let DashboardMiddleware = class DashboardMiddleware {
34
34
  constructor(service) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sources": {
3
- ".xpertai-plugin/plugin.json": "3275f02db4e5d2345cecf7b8b4293ac3a121d8a0c1b72425d0c32c7e0ea3c08c",
4
- "package.json": "c9798f5e67c57f347eaf16c65c2386eeb24d5a6843d2c99b92d33eba88023301",
3
+ ".xpertai-plugin/plugin.json": "a99f8eb1b16a9281d8e875e2e10fb85f315d5f18995322d68ad1a43e2e45377f",
4
+ "package.json": "d6f982dc0c897fa6d61bd11c68906c1190e506fce20525b9bb5576867797d7f5",
5
5
  "scripts/build-action.mjs": "283f26ef3c1c2ddf7f3f2bfc7a7780229b4d7061f1e3f1b0f222d012b78583de",
6
6
  "scripts/build-libraries.mjs": "20bd34ca3f8bb6e87df2637a3cca85496962688c8ea4ceff5bc294ebd2de704d",
7
7
  "scripts/build-remote.mjs": "492550ac5c95eb371253d863567723d8853522013a0bcdfa0e264720206fda16",
@@ -28,7 +28,7 @@
28
28
  "src/lib/filter-evidence.ts": "594ea9065e5c8d32c6bd4fc055e78c2df7ad2418c2019106136917c89c8ac331",
29
29
  "src/lib/html-guidance.ts": "791ab730beac450ab47edd32dc3608e251036fccdf07121cee6e2667ef98f76a",
30
30
  "src/lib/html-validation.ts": "9f342f6716d457ba1a46c9d228f3f7858dcae2c0f64a3c98bc1d28d35a8f43ac",
31
- "src/lib/middleware.ts": "14d8fe88bdee9315a1ad701f9e389d001b90b3f81adef849d362c3c216f3395b",
31
+ "src/lib/middleware.ts": "6d9818cfdbd47f4f1040dd0d11916710c9de52537f00a4c69bc8d024690d7475",
32
32
  "src/lib/plugin.ts": "8dff711d1ef4f10cc4a7e8d4a3eab1aa964888738ed35aee9d3ca015d81915da",
33
33
  "src/lib/presentation.provider.ts": "680b77210ae6b342d2bd4856859acb9e9dae761cc398041e9035e0111143128a",
34
34
  "src/lib/remote-entry.ts": "4c760963ff099b4d9a8961c933b1a586c0ac57d85a88c745c2578e2f66bf1539",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/plugin-live-dashboard",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Versioned live dashboards using platform analytics and Data Analytics renderer",
5
5
  "main": "./index.cjs",
6
6
  "types": "./dist/index.d.ts",