@brainervirus/workit-mcp 2.0.2 → 2.1.1
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 +10 -14
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -22938,13 +22938,6 @@ var workspaceConfigSchema = object4({
|
|
|
22938
22938
|
profiles: record3(nonBlank, workspaceProfileSchema).optional(),
|
|
22939
22939
|
releaseTracks: record3(nonBlank, releaseTrackSchema).optional()
|
|
22940
22940
|
}).passthrough().superRefine((workspace, context) => {
|
|
22941
|
-
if (workspace.youtrack && workspace.vcs?.provider !== "gitlab") {
|
|
22942
|
-
context.addIssue({
|
|
22943
|
-
code: "custom",
|
|
22944
|
-
path: ["youtrack"],
|
|
22945
|
-
message: `YouTrack issue linking requires the gitlab provider, got ${workspace.vcs?.provider ?? "unset"}`
|
|
22946
|
-
});
|
|
22947
|
-
}
|
|
22948
22941
|
if (workspace.issues && workspace.vcs?.provider !== "github") {
|
|
22949
22942
|
context.addIssue({
|
|
22950
22943
|
code: "custom",
|
|
@@ -23136,13 +23129,10 @@ var selectWorkspaceMatch = (matches, cwd, workspaceName) => {
|
|
|
23136
23129
|
}
|
|
23137
23130
|
return mostSpecific[0];
|
|
23138
23131
|
};
|
|
23139
|
-
var
|
|
23140
|
-
const result = readWorkspacesResult(dir);
|
|
23141
|
-
if (result.status === "malformed" || result.status === "invalid")
|
|
23142
|
-
throw new Error(result.error);
|
|
23132
|
+
var resolveWorkspaceFromEntries = (cwd, entries, workspaceName) => {
|
|
23143
23133
|
const targets = [cwd, realpathOf(cwd)].map((p) => p.replaceAll("\\", "/"));
|
|
23144
23134
|
const matches = [];
|
|
23145
|
-
for (const ws of
|
|
23135
|
+
for (const ws of entries) {
|
|
23146
23136
|
const glob = ws.glob.replaceAll("\\", "/");
|
|
23147
23137
|
const canonical = canonicalGlob(glob);
|
|
23148
23138
|
let matched = false;
|
|
@@ -23157,6 +23147,12 @@ var resolveWorkspaceFrom = (cwd, dir, workspaceName) => {
|
|
|
23157
23147
|
}
|
|
23158
23148
|
return selectWorkspaceMatch(matches, cwd, workspaceName) ?? null;
|
|
23159
23149
|
};
|
|
23150
|
+
var resolveWorkspaceFrom = (cwd, dir, workspaceName) => {
|
|
23151
|
+
const result = readWorkspacesResult(dir);
|
|
23152
|
+
if (result.status === "malformed" || result.status === "invalid")
|
|
23153
|
+
throw new Error(result.error);
|
|
23154
|
+
return resolveWorkspaceFromEntries(cwd, result.entries, workspaceName);
|
|
23155
|
+
};
|
|
23160
23156
|
var runtimeWorkspacePolicySchema = (kind) => {
|
|
23161
23157
|
const key = kind === "branch" ? "branchPolicy" : kind === "commit" ? "commitPolicy" : "vcs";
|
|
23162
23158
|
const policySchema = kind === "branch" ? workspaceBranchPolicySchema : kind === "commit" ? workspaceCommitPolicySchema : object4({
|
|
@@ -23432,8 +23428,8 @@ function vcsConfig(mode, cwd) {
|
|
|
23432
23428
|
const hasWorkspacePolicy = typeof wp.preset === "string" && Object.hasOwn(PRESETS, wp.preset);
|
|
23433
23429
|
const policyDefault = resolveBranchPolicyFor(root).defaultTargetBranch;
|
|
23434
23430
|
const defaultTarget = String(wsVcs.defaultTargetBranch ?? (hasWorkspacePolicy ? policyDefault : cfg.defaultTargetBranch ?? policyDefault) ?? "develop");
|
|
23435
|
-
const linkIssues =
|
|
23436
|
-
const youtrackBaseUrl =
|
|
23431
|
+
const linkIssues = typeof wsYt.link_issues === "boolean" ? wsYt.link_issues : null;
|
|
23432
|
+
const youtrackBaseUrl = typeof wsYt.baseUrl === "string" ? wsYt.baseUrl : null;
|
|
23437
23433
|
let issuesProvider = null;
|
|
23438
23434
|
let linkOnPr = null;
|
|
23439
23435
|
if (provider === "github" && typeof wsIssues.provider === "string" && wsIssues.provider.toLowerCase() === "github") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-mcp",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
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": "^2.
|
|
45
|
+
"@brainervirus/workit-core": "^2.1.1",
|
|
46
46
|
"@modelcontextprotocol/sdk": "1.30.0",
|
|
47
47
|
"zod": "4.5.4"
|
|
48
48
|
},
|