@toddzheng024/dscode-bundle 0.7.3 → 0.7.4
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/package.json
CHANGED
|
@@ -42,7 +42,8 @@ export function apply(ctx, config) {
|
|
|
42
42
|
const decision = await next();
|
|
43
43
|
if (decision.kind !== 'allow') return decision;
|
|
44
44
|
if (exec.agent && stateFor(exec.agent).blocked) return { kind: 'deny', reason: 'Automatic review stopped this turn after repeated denials. Wait for user input.' };
|
|
45
|
-
|
|
45
|
+
// Under the never policy an ask is rejected before any handler runs, so gating would disable MCP outright.
|
|
46
|
+
if (needsMcpApproval(exec.name) && (!exec.agent || ctx.approval?.effectivePolicy?.(exec.agent.session) !== 'never')) return { kind: 'ask', reason: `Review MCP action ${exec.name} against the user's authorization` };
|
|
46
47
|
return decision;
|
|
47
48
|
}, { prepend: true });
|
|
48
49
|
ctx.on('tools/result', exec => {
|
package/vendor/tui/index.mjs
CHANGED
|
@@ -32374,7 +32374,7 @@ function Header({ cwd = "", model = "", effort = "", animated = false }) {
|
|
|
32374
32374
|
if (!full) return (0, import_react.createElement)(Box, { flexDirection: "column", paddingX: 2, marginBottom: 1 },
|
|
32375
32375
|
(0, import_react.createElement)(Text, { wrap: "truncate-end" },
|
|
32376
32376
|
(0, import_react.createElement)(Text, { color: inkColor(getPalette().brandBright), bold: true }, "❄ DSCODE"),
|
|
32377
|
-
(0, import_react.createElement)(Text, { color: inkColor(getPalette().dim) }, " v0.7.
|
|
32377
|
+
(0, import_react.createElement)(Text, { color: inkColor(getPalette().dim) }, " v0.7.4")),
|
|
32378
32378
|
(0, import_react.createElement)(Text, { wrap: "truncate-end" }, truncateColumns(modelName + " · " + effortName, width)),
|
|
32379
32379
|
(0, import_react.createElement)(Text, { color: inkColor(getPalette().dim), wrap: "truncate-end" }, welcomePath(cwd, width)));
|
|
32380
32380
|
return (0, import_react.createElement)(Box, { flexDirection: "column", width, borderStyle: "round", borderColor: inkColor(getPalette().brand), paddingX: 1 },
|
|
@@ -32385,7 +32385,7 @@ function Header({ cwd = "", model = "", effort = "", animated = false }) {
|
|
|
32385
32385
|
(0, import_react.createElement)(Box, { flexDirection: "column", width: detailsWidth, marginTop: 2 },
|
|
32386
32386
|
(0, import_react.createElement)(Text, { color: inkColor(getPalette().text), bold: true }, "DSCODE"),
|
|
32387
32387
|
(0, import_react.createElement)(Text, { color: inkColor(getPalette().brandDeep) }, "────────────"),
|
|
32388
|
-
(0, import_react.createElement)(Text, { color: inkColor(getPalette().dim) }, "v0.7.
|
|
32388
|
+
(0, import_react.createElement)(Text, { color: inkColor(getPalette().dim) }, "v0.7.4"),
|
|
32389
32389
|
(0, import_react.createElement)(Text, { wrap: "truncate-end" }, truncateColumns(dscodePadEnd(dscodeT("welcome.model"), 9) + modelName, detailsWidth)),
|
|
32390
32390
|
(0, import_react.createElement)(Text, { wrap: "truncate-end" }, truncateColumns(dscodePadEnd(dscodeT("welcome.effort"), 9) + effortName, detailsWidth)),
|
|
32391
32391
|
(0, import_react.createElement)(Text, null, " "),
|