@brainervirus/workit-mcp 8.10.0 → 8.12.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 +70 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -21224,7 +21224,7 @@ function loadCheckConfig(cwd) {
|
|
|
21224
21224
|
gates[gate] = names;
|
|
21225
21225
|
}
|
|
21226
21226
|
}
|
|
21227
|
-
return { source: CHECKS_FILE, root, checks, gates, error: null };
|
|
21227
|
+
return { source: CHECKS_FILE, root, checks, gates, error: null, resources: parsed.resources };
|
|
21228
21228
|
}
|
|
21229
21229
|
var sameArgv = (left, right) => left.length === right.length && left.every((item, index) => item === right[index]);
|
|
21230
21230
|
function matchesNamedCheck(config, name, argv, cwd) {
|
|
@@ -21812,6 +21812,7 @@ var workspaceConfigSchema = object2({
|
|
|
21812
21812
|
autoApprove: union([boolean2(), array(nonBlank)]).optional(),
|
|
21813
21813
|
defaultEndpoint: unknown().optional(),
|
|
21814
21814
|
verification: _enum(["self", "independent"]).optional(),
|
|
21815
|
+
trailers: boolean2().optional(),
|
|
21815
21816
|
autonomy: object2(Object.fromEntries(["push", "pr", "merge", "release", "rerun"].map((kind) => [
|
|
21816
21817
|
kind,
|
|
21817
21818
|
union([boolean2(), literal("verified")]).optional()
|
|
@@ -22093,8 +22094,8 @@ var resolveRuntimeWorkspaceVcs = (cwd) => resolveRuntimeWorkspaceCandidate(cwd,
|
|
|
22093
22094
|
var runtimeWorkspaceIndexSchema = object2({
|
|
22094
22095
|
workspaces: array(object2({ name: nonBlank, glob: nonBlank }).passthrough()).optional()
|
|
22095
22096
|
}).passthrough();
|
|
22096
|
-
var matchRuntimeWorkspace = (cwd) => {
|
|
22097
|
-
const file = path10.join(
|
|
22097
|
+
var matchRuntimeWorkspace = (cwd, dir = configDir()) => {
|
|
22098
|
+
const file = path10.join(dir, "workspaces.json");
|
|
22098
22099
|
let raw;
|
|
22099
22100
|
try {
|
|
22100
22101
|
raw = readFileSync3(file, "utf8");
|
|
@@ -22123,7 +22124,7 @@ var matchRuntimeWorkspace = (cwd) => {
|
|
|
22123
22124
|
const matches = matchingEntries(cwd, entries ?? []);
|
|
22124
22125
|
const workspaceName = process.env.WORKFLOW_WORKSPACE_NAME?.trim() || undefined;
|
|
22125
22126
|
const selected = selectWorkspaceMatch(matches, cwd, workspaceName);
|
|
22126
|
-
return selected ? { file, selected } : null;
|
|
22127
|
+
return selected ? { file, selected, matches } : null;
|
|
22127
22128
|
};
|
|
22128
22129
|
var resolveRuntimeReleaseTracks = (cwd) => {
|
|
22129
22130
|
const matched = matchRuntimeWorkspace(cwd);
|
|
@@ -24645,6 +24646,71 @@ var gitContext = (workspaceRoot, paths = []) => {
|
|
|
24645
24646
|
...failure ? { stderr: failure.stderr, exitCode: failure.exitCode } : {}
|
|
24646
24647
|
};
|
|
24647
24648
|
};
|
|
24649
|
+
|
|
24650
|
+
// packages/workit-core/src/hooks/raw-git.ts
|
|
24651
|
+
var SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh"]);
|
|
24652
|
+
var PREFIXES2 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "nice", "&"]);
|
|
24653
|
+
var CD = new Set(["cd", "chdir", "set-location", "sl"]);
|
|
24654
|
+
var PUSHD = new Set(["pushd", "push-location"]);
|
|
24655
|
+
var POPD = new Set(["popd", "pop-location"]);
|
|
24656
|
+
var GIT_VALUE_OPTIONS = new Set([
|
|
24657
|
+
"-c",
|
|
24658
|
+
"--git-dir",
|
|
24659
|
+
"--work-tree",
|
|
24660
|
+
"--namespace",
|
|
24661
|
+
"--exec-path",
|
|
24662
|
+
"--config-env",
|
|
24663
|
+
"--super-prefix"
|
|
24664
|
+
]);
|
|
24665
|
+
var LAUNCHERS = new Set([
|
|
24666
|
+
"npx",
|
|
24667
|
+
"bunx",
|
|
24668
|
+
"pnpx",
|
|
24669
|
+
"-y",
|
|
24670
|
+
"--yes",
|
|
24671
|
+
"pnpm",
|
|
24672
|
+
"dlx",
|
|
24673
|
+
"exec",
|
|
24674
|
+
"env",
|
|
24675
|
+
"sudo",
|
|
24676
|
+
"command"
|
|
24677
|
+
]);
|
|
24678
|
+
var PUSH_VALUE_OPTIONS = new Set(["-o", "--push-option", "--receive-pack", "--exec", "--repo"]);
|
|
24679
|
+
var VALUE_OPTIONS = {
|
|
24680
|
+
git: new Set([
|
|
24681
|
+
"-m",
|
|
24682
|
+
"--message",
|
|
24683
|
+
"-F",
|
|
24684
|
+
"--file",
|
|
24685
|
+
"-C",
|
|
24686
|
+
"-c",
|
|
24687
|
+
"--reuse-message",
|
|
24688
|
+
"--reedit-message",
|
|
24689
|
+
"--author",
|
|
24690
|
+
"--date",
|
|
24691
|
+
"--trailer",
|
|
24692
|
+
"-t",
|
|
24693
|
+
"--template",
|
|
24694
|
+
"--cleanup",
|
|
24695
|
+
"--fixup",
|
|
24696
|
+
"--squash",
|
|
24697
|
+
"-o",
|
|
24698
|
+
"--push-option",
|
|
24699
|
+
"--repo",
|
|
24700
|
+
"--receive-pack",
|
|
24701
|
+
"--exec"
|
|
24702
|
+
]),
|
|
24703
|
+
gh: new Set(["-b", "--body", "-F", "--body-file", "-t", "--title", "--subject", "-A", "--author-email"].concat(["-B", "--base", "-H", "--head", "-l", "--label", "-a", "--assignee"]).concat(["-r", "--reviewer", "-m", "--milestone", "-p", "--project", "-T", "--template"]).concat(["--match-head-commit", "-R", "--repo"])),
|
|
24704
|
+
glab: new Set(["-m", "--message", "--squash-message", "--sha", "-t", "--title", "-d", "--description"].concat(["-b", "--target-branch", "-s", "--source-branch", "-l", "--label"]).concat(["-a", "--assignee", "--reviewer", "-R", "--repo"]))
|
|
24705
|
+
};
|
|
24706
|
+
|
|
24707
|
+
// packages/workit-core/src/core/route-intent.ts
|
|
24708
|
+
var SWITCH_CREATE = new Set(["-c", "--create", "-C", "--force-create", "--orphan"]);
|
|
24709
|
+
var CHECKOUT_CREATE = new Set(["-b", "-B", "--orphan"]);
|
|
24710
|
+
var WORKTREE_CREATE = new Set(["-b", "-B"]);
|
|
24711
|
+
var BRANCH_NO_CREATE = new Set(["-d", "-D", "--delete", "-l", "--list", "-a", "--all", "-r", "--remotes", "--show-current"].concat(["-v", "-vv", "--verbose", "--contains", "--no-contains", "--merged", "--no-merged"]).concat(["--points-at", "--sort", "--format", "--column", "--no-column", "-u"]).concat(["--set-upstream-to", "--unset-upstream", "--edit-description", "-i", "--ignore-case"]));
|
|
24712
|
+
var BRANCH_RENAME = new Set(["-m", "-M", "--move", "-c", "-C", "--copy"]);
|
|
24713
|
+
var WORKTREE_VALUES = new Set(["--reason"]);
|
|
24648
24714
|
// packages/workit-core/src/core/task-engine.ts
|
|
24649
24715
|
import { realpathSync as realpathSync4 } from "node:fs";
|
|
24650
24716
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-mcp",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.12.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit shared MCP transport for the eight task and policy operation families",
|
|
6
6
|
"keywords": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"build": "bun scripts/build.ts"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@brainervirus/workit-core": "^8.
|
|
45
|
+
"@brainervirus/workit-core": "^8.12.0",
|
|
46
46
|
"@modelcontextprotocol/sdk": "1.32.0",
|
|
47
47
|
"zod": "4.6.5"
|
|
48
48
|
},
|