@trops/dash-core 0.1.495 → 0.1.497

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/dist/index.js CHANGED
@@ -48852,7 +48852,7 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
48852
48852
  isOpen: isOpen,
48853
48853
  setIsOpen: setIsOpen,
48854
48854
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
48855
- className: "flex flex-col w-full max-w-xl ring-2 ring-amber-500",
48855
+ className: "flex flex-col w-full max-w-xl border-2 border-amber-500 rounded",
48856
48856
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
48857
48857
  className: "px-5 py-4 border-b border-gray-700",
48858
48858
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -48871,20 +48871,12 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
48871
48871
  children: "Server name"
48872
48872
  }), /*#__PURE__*/jsxRuntime.jsx("input", {
48873
48873
  type: "text",
48874
- list: "known-mcp-servers",
48875
48874
  value: serverName,
48876
48875
  onChange: function onChange(e) {
48877
48876
  return setServerName(e.target.value);
48878
48877
  },
48879
- placeholder: "e.g. filesystem, github, slack",
48880
- className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700"
48881
- }), /*#__PURE__*/jsxRuntime.jsx("datalist", {
48882
- id: "known-mcp-servers",
48883
- children: knownServerNames.map(function (n) {
48884
- return /*#__PURE__*/jsxRuntime.jsx("option", {
48885
- value: n
48886
- }, n);
48887
- })
48878
+ placeholder: knownServerNames.length > 0 ? "e.g. ".concat(knownServerNames.slice(0, 3).join(", ")) : "e.g. filesystem, github, slack",
48879
+ className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 text-gray-200"
48888
48880
  })]
48889
48881
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
48890
48882
  className: "flex flex-col gap-1",
@@ -48898,7 +48890,7 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
48898
48890
  return setToolsText(e.target.value);
48899
48891
  },
48900
48892
  placeholder: "e.g. read_file, list_directory",
48901
- className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 font-mono"
48893
+ className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 text-gray-200 font-mono"
48902
48894
  })]
48903
48895
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
48904
48896
  className: "flex flex-col gap-1",
@@ -48912,7 +48904,7 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
48912
48904
  },
48913
48905
  placeholder: "/Users/jane/Documents\n/tmp/notes",
48914
48906
  rows: 3,
48915
- className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 font-mono"
48907
+ className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 text-gray-200 font-mono"
48916
48908
  })]
48917
48909
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
48918
48910
  className: "flex flex-col gap-1",
@@ -48926,10 +48918,10 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
48926
48918
  },
48927
48919
  placeholder: "/tmp/output",
48928
48920
  rows: 3,
48929
- className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 font-mono"
48921
+ className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 text-gray-200 font-mono"
48930
48922
  })]
48931
48923
  }), error && /*#__PURE__*/jsxRuntime.jsx("div", {
48932
- className: "text-xs text-red-400 bg-red-900 bg-opacity-20 border border-red-700 rounded px-3 py-2",
48924
+ className: "text-xs text-red-400 bg-red-950 border border-red-700 rounded px-3 py-2",
48933
48925
  children: error
48934
48926
  })]
48935
48927
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -49320,6 +49312,10 @@ var GrantOriginBadge = function GrantOriginBadge(_ref8) {
49320
49312
  manual: {
49321
49313
  label: "manual",
49322
49314
  color: "text-blue-400"
49315
+ },
49316
+ live: {
49317
+ label: "live",
49318
+ color: "text-purple-400"
49323
49319
  }
49324
49320
  };
49325
49321
  var style = styles[origin];
@@ -49404,6 +49400,22 @@ var EXAMPLE_FIXTURES = [{
49404
49400
  }
49405
49401
  }
49406
49402
  }
49403
+ }, {
49404
+ caption: "Granted live, when the widget triggered a tool call without a pre-existing grant (just-in-time consent prompt).",
49405
+ widgetId: "@example/just-in-time-widget",
49406
+ hasManifest: false,
49407
+ grantOrigin: "live",
49408
+ declared: null,
49409
+ granted: {
49410
+ grantOrigin: "live",
49411
+ servers: {
49412
+ filesystem: {
49413
+ tools: ["read_file"],
49414
+ readPaths: ["~/Documents/notes/today.md"],
49415
+ writePaths: []
49416
+ }
49417
+ }
49418
+ }
49407
49419
  }, {
49408
49420
  caption: "Stale grant — the widget upgraded and dropped readPaths from its manifest, but the user's grant is still present.",
49409
49421
  widgetId: "@example/upgraded-widget",