@meltstudio/meltctl 4.111.0 → 4.112.0

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.
Files changed (2) hide show
  1. package/dist/index.js +77 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var CLI_VERSION;
14
14
  var init_version = __esm({
15
15
  "src/utils/version.ts"() {
16
16
  "use strict";
17
- CLI_VERSION = "4.111.0";
17
+ CLI_VERSION = "4.112.0";
18
18
  }
19
19
  });
20
20
 
@@ -511,6 +511,44 @@ function createFeedbackResource(config) {
511
511
  if (status !== 200)
512
512
  throw new Error(`Failed to load recipients (${status})`);
513
513
  return data;
514
+ },
515
+ /**
516
+ * Submit a thumbs-down / floating-report from the dashboard. Used by both
517
+ * the inline `<FeedbackButton />` and the global `<FloatingFeedbackButton />`.
518
+ * Note must be ≥5 characters; the API rejects shorter notes with 400.
519
+ */
520
+ async submitDashboard(input3) {
521
+ const { data, status } = await apiFetch(config, "/feedback/dashboard", {
522
+ method: "POST",
523
+ body: JSON.stringify(input3)
524
+ });
525
+ if (status !== 201) {
526
+ throw new Error(data.error ?? `Failed to submit dashboard feedback (${status})`);
527
+ }
528
+ return data;
529
+ },
530
+ /**
531
+ * Manager-only triage list. Filterable by entity type, reason, and a
532
+ * since timestamp. Capped at 200 rows server-side.
533
+ */
534
+ async listDashboard(filters = {}) {
535
+ const params = new URLSearchParams();
536
+ if (filters.entityType)
537
+ params.set("entityType", filters.entityType);
538
+ if (filters.reason)
539
+ params.set("reason", filters.reason);
540
+ if (filters.since)
541
+ params.set("since", filters.since);
542
+ if (filters.limit !== void 0)
543
+ params.set("limit", String(filters.limit));
544
+ const qs = params.toString();
545
+ const path9 = qs ? `/feedback/dashboard?${qs}` : "/feedback/dashboard";
546
+ const { data, status } = await apiFetch(config, path9);
547
+ if (status !== 200) {
548
+ const err = data.error;
549
+ throw new Error(err ?? `Failed to load dashboard feedback (${status})`);
550
+ }
551
+ return data;
514
552
  }
515
553
  };
516
554
  }
@@ -2895,6 +2933,44 @@ function createFeedbackResource2(config) {
2895
2933
  if (status !== 200)
2896
2934
  throw new Error(`Failed to load recipients (${status})`);
2897
2935
  return data;
2936
+ },
2937
+ /**
2938
+ * Submit a thumbs-down / floating-report from the dashboard. Used by both
2939
+ * the inline `<FeedbackButton />` and the global `<FloatingFeedbackButton />`.
2940
+ * Note must be ≥5 characters; the API rejects shorter notes with 400.
2941
+ */
2942
+ async submitDashboard(input3) {
2943
+ const { data, status } = await apiFetch2(config, "/feedback/dashboard", {
2944
+ method: "POST",
2945
+ body: JSON.stringify(input3)
2946
+ });
2947
+ if (status !== 201) {
2948
+ throw new Error(data.error ?? `Failed to submit dashboard feedback (${status})`);
2949
+ }
2950
+ return data;
2951
+ },
2952
+ /**
2953
+ * Manager-only triage list. Filterable by entity type, reason, and a
2954
+ * since timestamp. Capped at 200 rows server-side.
2955
+ */
2956
+ async listDashboard(filters = {}) {
2957
+ const params = new URLSearchParams();
2958
+ if (filters.entityType)
2959
+ params.set("entityType", filters.entityType);
2960
+ if (filters.reason)
2961
+ params.set("reason", filters.reason);
2962
+ if (filters.since)
2963
+ params.set("since", filters.since);
2964
+ if (filters.limit !== void 0)
2965
+ params.set("limit", String(filters.limit));
2966
+ const qs = params.toString();
2967
+ const path22 = qs ? `/feedback/dashboard?${qs}` : "/feedback/dashboard";
2968
+ const { data, status } = await apiFetch2(config, path22);
2969
+ if (status !== 200) {
2970
+ const err = data.error;
2971
+ throw new Error(err ?? `Failed to load dashboard feedback (${status})`);
2972
+ }
2973
+ return data;
2898
2974
  }
2899
2975
  };
2900
2976
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "4.111.0",
3
+ "version": "4.112.0",
4
4
  "description": "AI-first development tools for teams - set up AGENTS.md, Claude Code, Cursor, and OpenCode standards",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",