@workit-dev/mcp 2.23.2 → 2.24.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.
- package/dist/index.js +7 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -18214,6 +18214,7 @@ var workspaceConfigSchema = looseObject({
|
|
|
18214
18214
|
resources: described(optional(unknown()), "Heavy-check limits on this machine: slots, scope, heavy, light, memoryMax, cpuQuota, wait."),
|
|
18215
18215
|
remotes: described(optional(array(nonBlank.check(refine((pattern) => remotePattern(pattern) !== null, "is not a remote URL (https://host/owner/repo, git@host:owner/repo, a path, or owner/*)")))), "Remote URLs this entry owns: a checkout pushing to or opening PRs on one never exceeds this entry's grants, wherever the folder is (`owner/*` claims a whole owner). Only the user changes it, in their own terminal."),
|
|
18216
18216
|
externalRepos: described(optional(array(nonBlank.check(_regex(/^[\w-]+(?:\/\w[\w.-]*)*\/(?:\w[\w.-]*|\*)$/u, "is owner/name, group/project or owner/* on the checkout's forge host, without the host")))), "Repositories outside this workspace's own forge owners that `workit issue create|comment|close --repo` may write to: `owner/name`, or `owner/*` for a whole owner. Only the user changes it, in their own terminal."),
|
|
18217
|
+
additiveRiskPaths: described(optional(array(nonBlank)), "Risk-path globs whose purely additive edits follow the review lane of the rest of the diff. Only the user sets it; it counts only while sealed."),
|
|
18217
18218
|
autonomy: described(optional(looseObject(Object.fromEntries(["push", "pr", "merge", "release", "rerun"].map((kind) => [
|
|
18218
18219
|
kind,
|
|
18219
18220
|
described(optional(union([boolean2(), literal("verified")])), `The ${kind} grant: true, false, or "verified" (only after a verdict).`)
|
|
@@ -24758,6 +24759,7 @@ var WORD2 = /[\w./:@=+,-]+/uy;
|
|
|
24758
24759
|
var QUOTED = /"[^"$`\\]*"/uy;
|
|
24759
24760
|
var COMMAND = /^[\w.+][\w./+-]*$/u;
|
|
24760
24761
|
var SHELL_STATE = new Set(". alias bg bind break builtin call caller case cd command compgen complete compopt continue coproc declare dirs disown do done elif else enable esac eval exec exit export fc fg fi for function getopts goto hash help history if in jobs kill let local logout mapfile popd pushd read readarray readonly return select set shift shopt source suspend then time times trap type typeset ulimit umask unalias unset until wait while".split(" "));
|
|
24762
|
+
var EFFECTFUL = /^(?:curl|wget|npx|bunx|gh|dlx|push|publish|deploy)$/iu;
|
|
24761
24763
|
var FALLBACK = new Set(["echo", "true"]);
|
|
24762
24764
|
var FORM = 'more than && <command> or && (<command> || echo "<text>")';
|
|
24763
24765
|
var OUTSIDE = '(outside plain words and "double-quoted text")';
|
|
@@ -24818,9 +24820,11 @@ function masking(before, appended) {
|
|
|
24818
24820
|
return FORM;
|
|
24819
24821
|
if (names ? !names.has(name.word) : SHELL_STATE.has(name.word.toLowerCase()))
|
|
24820
24822
|
return names ? FORM : `the shell command ${name.word}`;
|
|
24821
|
-
index
|
|
24822
|
-
|
|
24823
|
+
for (let token = list[index];token && !("op" in token); token = list[index]) {
|
|
24824
|
+
if ("word" in token && EFFECTFUL.test(token.word))
|
|
24825
|
+
return `the effectful command ${token.word}`;
|
|
24823
24826
|
index += 1;
|
|
24827
|
+
}
|
|
24824
24828
|
return null;
|
|
24825
24829
|
};
|
|
24826
24830
|
while (index < list.length) {
|
|
@@ -27670,6 +27674,7 @@ var ENTRY_KEYS = [
|
|
|
27670
27674
|
"glob",
|
|
27671
27675
|
"remotes",
|
|
27672
27676
|
"externalRepos",
|
|
27677
|
+
"additiveRiskPaths",
|
|
27673
27678
|
"vcs",
|
|
27674
27679
|
"autonomy",
|
|
27675
27680
|
"autoApprove",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workit-dev/mcp",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.24.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit shared MCP transport for the eight task and policy operation families",
|
|
6
6
|
"keywords": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
47
|
-
"@workit-dev/core": "^2.
|
|
47
|
+
"@workit-dev/core": "^2.24.0",
|
|
48
48
|
"zod": "4.6.7"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|