@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/electron/index.js +411 -23
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +27 -15
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +27 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -48834,7 +48834,7 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
|
|
|
48834
48834
|
isOpen: isOpen,
|
|
48835
48835
|
setIsOpen: setIsOpen,
|
|
48836
48836
|
children: /*#__PURE__*/jsxs("div", {
|
|
48837
|
-
className: "flex flex-col w-full max-w-xl
|
|
48837
|
+
className: "flex flex-col w-full max-w-xl border-2 border-amber-500 rounded",
|
|
48838
48838
|
children: [/*#__PURE__*/jsxs("div", {
|
|
48839
48839
|
className: "px-5 py-4 border-b border-gray-700",
|
|
48840
48840
|
children: [/*#__PURE__*/jsxs("div", {
|
|
@@ -48853,20 +48853,12 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
|
|
|
48853
48853
|
children: "Server name"
|
|
48854
48854
|
}), /*#__PURE__*/jsx("input", {
|
|
48855
48855
|
type: "text",
|
|
48856
|
-
list: "known-mcp-servers",
|
|
48857
48856
|
value: serverName,
|
|
48858
48857
|
onChange: function onChange(e) {
|
|
48859
48858
|
return setServerName(e.target.value);
|
|
48860
48859
|
},
|
|
48861
|
-
placeholder: "e.g. filesystem, github, slack",
|
|
48862
|
-
className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700"
|
|
48863
|
-
}), /*#__PURE__*/jsx("datalist", {
|
|
48864
|
-
id: "known-mcp-servers",
|
|
48865
|
-
children: knownServerNames.map(function (n) {
|
|
48866
|
-
return /*#__PURE__*/jsx("option", {
|
|
48867
|
-
value: n
|
|
48868
|
-
}, n);
|
|
48869
|
-
})
|
|
48860
|
+
placeholder: knownServerNames.length > 0 ? "e.g. ".concat(knownServerNames.slice(0, 3).join(", ")) : "e.g. filesystem, github, slack",
|
|
48861
|
+
className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 text-gray-200"
|
|
48870
48862
|
})]
|
|
48871
48863
|
}), /*#__PURE__*/jsxs("div", {
|
|
48872
48864
|
className: "flex flex-col gap-1",
|
|
@@ -48880,7 +48872,7 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
|
|
|
48880
48872
|
return setToolsText(e.target.value);
|
|
48881
48873
|
},
|
|
48882
48874
|
placeholder: "e.g. read_file, list_directory",
|
|
48883
|
-
className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 font-mono"
|
|
48875
|
+
className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 text-gray-200 font-mono"
|
|
48884
48876
|
})]
|
|
48885
48877
|
}), /*#__PURE__*/jsxs("div", {
|
|
48886
48878
|
className: "flex flex-col gap-1",
|
|
@@ -48894,7 +48886,7 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
|
|
|
48894
48886
|
},
|
|
48895
48887
|
placeholder: "/Users/jane/Documents\n/tmp/notes",
|
|
48896
48888
|
rows: 3,
|
|
48897
|
-
className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 font-mono"
|
|
48889
|
+
className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 text-gray-200 font-mono"
|
|
48898
48890
|
})]
|
|
48899
48891
|
}), /*#__PURE__*/jsxs("div", {
|
|
48900
48892
|
className: "flex flex-col gap-1",
|
|
@@ -48908,10 +48900,10 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
|
|
|
48908
48900
|
},
|
|
48909
48901
|
placeholder: "/tmp/output",
|
|
48910
48902
|
rows: 3,
|
|
48911
|
-
className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 font-mono"
|
|
48903
|
+
className: "text-xs px-2 py-1.5 rounded bg-gray-800 border border-gray-700 text-gray-200 font-mono"
|
|
48912
48904
|
})]
|
|
48913
48905
|
}), error && /*#__PURE__*/jsx("div", {
|
|
48914
|
-
className: "text-xs text-red-400 bg-red-
|
|
48906
|
+
className: "text-xs text-red-400 bg-red-950 border border-red-700 rounded px-3 py-2",
|
|
48915
48907
|
children: error
|
|
48916
48908
|
})]
|
|
48917
48909
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -49302,6 +49294,10 @@ var GrantOriginBadge = function GrantOriginBadge(_ref8) {
|
|
|
49302
49294
|
manual: {
|
|
49303
49295
|
label: "manual",
|
|
49304
49296
|
color: "text-blue-400"
|
|
49297
|
+
},
|
|
49298
|
+
live: {
|
|
49299
|
+
label: "live",
|
|
49300
|
+
color: "text-purple-400"
|
|
49305
49301
|
}
|
|
49306
49302
|
};
|
|
49307
49303
|
var style = styles[origin];
|
|
@@ -49386,6 +49382,22 @@ var EXAMPLE_FIXTURES = [{
|
|
|
49386
49382
|
}
|
|
49387
49383
|
}
|
|
49388
49384
|
}
|
|
49385
|
+
}, {
|
|
49386
|
+
caption: "Granted live, when the widget triggered a tool call without a pre-existing grant (just-in-time consent prompt).",
|
|
49387
|
+
widgetId: "@example/just-in-time-widget",
|
|
49388
|
+
hasManifest: false,
|
|
49389
|
+
grantOrigin: "live",
|
|
49390
|
+
declared: null,
|
|
49391
|
+
granted: {
|
|
49392
|
+
grantOrigin: "live",
|
|
49393
|
+
servers: {
|
|
49394
|
+
filesystem: {
|
|
49395
|
+
tools: ["read_file"],
|
|
49396
|
+
readPaths: ["~/Documents/notes/today.md"],
|
|
49397
|
+
writePaths: []
|
|
49398
|
+
}
|
|
49399
|
+
}
|
|
49400
|
+
}
|
|
49389
49401
|
}, {
|
|
49390
49402
|
caption: "Stale grant — the widget upgraded and dropped readPaths from its manifest, but the user's grant is still present.",
|
|
49391
49403
|
widgetId: "@example/upgraded-widget",
|