@workit-dev/mcp 2.26.1 → 2.26.2

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.
Files changed (2) hide show
  1. package/dist/index.js +88 -93
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -15234,11 +15234,6 @@ if (!globalConfig.localeError)
15234
15234
  config(en_default());
15235
15235
  if (!globalConfig.memoizer)
15236
15236
  config({ memoizer: memoizer() });
15237
- var described = (schema, description) => {
15238
- const copy = schema.clone();
15239
- globalRegistry.add(copy, { description });
15240
- return copy;
15241
- };
15242
15237
 
15243
15238
  // packages/workit-core/src/core/scope-glob.ts
15244
15239
  var GLOB = /[*?[\]{}]/u;
@@ -18113,25 +18108,25 @@ var nonBlank = string2().check(refine((value) => value.trim().length > 0, "must
18113
18108
  var branchPreset = custom((value) => typeof value === "string" && Object.hasOwn(PRESETS, value), "unsupported branch preset");
18114
18109
  var commitPreset = custom((value) => typeof value === "string" && COMMIT_PRESETS.includes(value), "unsupported commit preset");
18115
18110
  var workspaceBranchPolicySchema = strictObject({
18116
- preset: described(branchPreset, "The branch model: gitflow, github-flow, trunk-based or custom (allowed/protected set by hand)."),
18117
- developBranch: described(optional(nonBlank), "The integration branch gitflow uses (default develop)."),
18118
- prefixes: described(optional(looseObject({
18111
+ preset: branchPreset,
18112
+ developBranch: optional(nonBlank),
18113
+ prefixes: optional(looseObject({
18119
18114
  feature: nonBlank,
18120
18115
  bugfix: nonBlank,
18121
18116
  release: nonBlank,
18122
18117
  hotfix: nonBlank
18123
- })), "The branch prefix per kind (feature/, bugfix/, release/, hotfix/)."),
18124
- allowed: described(optional(array(nonBlank)), "Branch name globs a new branch must match (`feature/*`)."),
18125
- protected: described(optional(array(nonBlank)), "Branches nobody commits or pushes to directly."),
18126
- integration: described(optional(_enum(["pr", "merge"])), "How work reaches its base: `pr` (default) opens a PR, `merge` merges locally.")
18118
+ })),
18119
+ allowed: optional(array(nonBlank)),
18120
+ protected: optional(array(nonBlank)),
18121
+ integration: optional(_enum(["pr", "merge"]))
18127
18122
  });
18128
18123
  var workspaceCommitPolicySchema = strictObject({
18129
- preset: described(commitPreset, "The commit message flavor, e.g. conventional."),
18130
- pattern: described(optional(string2()), "A regular expression every commit subject must match.")
18124
+ preset: commitPreset,
18125
+ pattern: optional(string2())
18131
18126
  });
18132
18127
  var workspaceProfileSchema = strictObject({
18133
- branchPolicy: described(optional(workspaceBranchPolicySchema), "This profile's branch policy."),
18134
- commitPolicy: described(optional(workspaceCommitPolicySchema), "This profile's commit policy.")
18128
+ branchPolicy: optional(workspaceBranchPolicySchema),
18129
+ commitPolicy: optional(workspaceCommitPolicySchema)
18135
18130
  }).check(refine((profile) => profile.branchPolicy !== undefined || profile.commitPolicy !== undefined, { message: "a profile must define branchPolicy or commitPolicy" }));
18136
18131
  var versionSourceSchema = discriminatedUnion("kind", [
18137
18132
  strictObject({
@@ -18143,22 +18138,22 @@ var versionSourceSchema = discriminatedUnion("kind", [
18143
18138
  strictObject({ kind: literal("manual") })
18144
18139
  ]);
18145
18140
  var releaseTrackSchema = looseObject({
18146
- strategy: described(optional(branchPreset), "The branch model this track follows."),
18147
- productionBranch: described(nonBlank, "The branch releases land on (main)."),
18148
- integrationBranch: described(nonBlank, "The branch work integrates into (develop)."),
18149
- naming: described(optional(looseObject({
18141
+ strategy: optional(branchPreset),
18142
+ productionBranch: nonBlank,
18143
+ integrationBranch: nonBlank,
18144
+ naming: optional(looseObject({
18150
18145
  feature: optional(nonBlank),
18151
18146
  release: optional(nonBlank),
18152
18147
  hotfix: optional(nonBlank)
18153
- })), "Branch name templates per kind, e.g. `feature/{name}`."),
18154
- baseBranch: described(optional(nonBlank), "The branch new work starts from."),
18155
- mergeBackBranches: described(optional(array(nonBlank)), "Branches a finished release or hotfix is merged back into."),
18156
- pullRequestTarget: described(optional(nonBlank), "The branch PRs target."),
18157
- tagNamespace: described(optional(string2()), "A prefix for this track's release tags."),
18158
- versionSource: described(optional(versionSourceSchema), "Where the version comes from: package-json, git-tag or manual."),
18159
- requiredChecks: described(optional(array(nonBlank)), "CI checks that must pass before a release."),
18160
- critical: described(optional(array(nonBlank)), "Fields an older Workit must not ignore: when one is unknown or malformed, Workit fails closed."),
18161
- releaseNotes: described(optional(unknown()), "This track's release notes mode, over the workspace's `releaseNotes`.")
18148
+ })),
18149
+ baseBranch: optional(nonBlank),
18150
+ mergeBackBranches: optional(array(nonBlank)),
18151
+ pullRequestTarget: optional(nonBlank),
18152
+ tagNamespace: optional(string2()),
18153
+ versionSource: optional(versionSourceSchema),
18154
+ requiredChecks: optional(array(nonBlank)),
18155
+ critical: optional(array(nonBlank)),
18156
+ releaseNotes: optional(unknown())
18162
18157
  }).check(superRefine((track, context) => {
18163
18158
  for (const [field, values] of [
18164
18159
  ["mergeBackBranches", track.mergeBackBranches ?? []],
@@ -18180,67 +18175,67 @@ var releaseTrackSchema = looseObject({
18180
18175
  });
18181
18176
  }
18182
18177
  }));
18183
- var modelRoles = described(optional(unknown()), "Per role (decider, implementer, verifier, reviewer, explore, babysit, default for a general-purpose spawn): a model name, `{ model, effort }`, or one of those per host (claude_code, opencode, codex, codex_cli, codex_desktop, cursor, pi, default). The implementer takes one per tier (mundane, standard, hard).");
18178
+ var modelRoles = optional(unknown());
18184
18179
  var workspaceConfigSchema = looseObject({
18185
- name: described(nonBlank, "The workspace's unique name."),
18186
- glob: described(nonBlank, "The directories this entry covers, an absolute path glob with * and ** (`/home/you/work/**`); the narrowest match wins."),
18187
- vcs: described(optional(looseObject({
18188
- provider: described(_enum(["gitlab", "github"]), "The forge: github or gitlab."),
18189
- defaultTargetBranch: described(optional(nonBlank), "The branch PRs target by default."),
18190
- tokenFile: described(optional(nonBlank), "A file holding the forge token for this workspace."),
18191
- account: described(optional(nonBlank), "The forge login delivery runs as; grants need it to reach the forge."),
18192
- host: described(optional(unknown()), "A self-hosted forge's host name.")
18193
- })), "The forge this workspace's repositories live on."),
18194
- autoApprove: described(optional(union([boolean2(), array(nonBlank)])), "Legacy (≤4.x) standing approvals, read once as autonomy grants; use `autonomy`."),
18195
- defaultEndpoint: described(optional(unknown()), "Where an unnamed request stops: commit (default), pr, green or merged. Set with `workit grant set`, like grants."),
18196
- verification: described(optional(_enum(["proportional", "self", "independent"])), "How a normal-risk behavior change is verified: proportional (default), self or independent. Set with `workit grant set`, like grants."),
18197
- delegation: described(optional(unknown()), "Who does the work: `inline-first` (default) keeps the lead working itself and refuses a slice without a reason to delegate; `lead-orchestrates` allows slices without one."),
18198
- changelog: described(optional(unknown()), "The Keep a Changelog step before a PR opens: `off` (default), `update` (an existing CHANGELOG.md needs an Unreleased entry from a user-facing PR) or `create` (the entry is required, creating the file). `workit pr create` enforces it."),
18199
- docs: described(optional(unknown()), "The docs refresh the ship skill does before a PR opens: `off` (default) or `when-user-facing`."),
18200
- changelogPath: described(optional(unknown()), "Where the changelog lives, repo-relative: one path or glob, or a list (a monorepo with one changelog per package; any of them satisfies the gate). Default CHANGELOG.md at the repo root."),
18201
- prTemplate: described(optional(unknown()), "Which template a PR description fills: `auto` (default: the repo's GitHub/GitLab template, else Workit's), `repo` (the repo's, refused when it has none), `workit` (Workit's Summary/Evidence/Merge danger) or a repo-relative path to one `.md` file."),
18202
- releaseNotes: described(optional(unknown()), "The release notes `workit release finish` publishes on the forge release: `auto` (default: the draft when there is one, else the notes built from the version's changelog section), `off` (no forge release) or `review` (finish refuses until `workit release notes approve`). A release track overrides it."),
18203
- trailers: described(optional(boolean2()), "Whether commits get the `Workit-Session:` trailer (default true). With false, authorship lives in the ledger only."),
18204
- deleteBranch: described(optional(boolean2()), "Whether `workit pr merge` deletes the head branch after a merge (default true); `--keep-branch` opts out for one merge."),
18205
- cleanup: described(optional(unknown()), "What happens when work finishes: `auto` (default) removes the delivered branch's clean Workit worktree and local branch, switches a clean checkout on it back to the trunk, and stops the processes registered inside them; `keep` removes and stops nothing. A value Workit does not know reads as `keep`."),
18206
- feedback: described(optional(unknown()), '`workit feedback` for this workspace: `off` hides its contract line and makes the verb refuse; `{ "account": "<login>" }` names the GitHub login it posts with; workspaces inside this one inherit it.'),
18207
- liveSessionGuard: described(optional(boolean2()), "Whether the live-session guard denies edits in a checkout another live agent session owns (default true)."),
18208
- shared: described(optional(boolean2()), "Whether this workspace's repos are shared with a team that must not see Workit named (default false): `workit pr create` and `workit pr edit` then warn, never block, when the PR title, body or a new doc names it."),
18209
- fanout: described(optional(looseObject({
18210
- tierModels: described(optional(unknown()), "The model per slice TIER (mundane, standard, hard), as one name or per host."),
18211
- deps: described(optional(unknown()), "How `workit fanout worktree create` gives a slice worktree node_modules: `install` (default: its own frozen install of its lockfile) or `link` (links into the main checkout's installed packages, for a repo too slow to install per slice). `--deps` overrides it."),
18212
- installTimeout: described(optional(unknown()), "How long the own install may run before its process tree is killed and the worktree is linked instead: a duration such as `90s` or `10m` (default `5m`). `--install-timeout` overrides it.")
18213
- })), "Fanout settings."),
18214
- models: described(optional(looseObject({ roles: modelRoles })), "Model and effort per role and host (roles), the lead's own advisory model (lead), how a role model applies (enforce: advise, the default, or strict) and, under strict, whether a model the lead names on a spawn wins (allowLeadOverride, default false); the same key at the top of workspaces.json is the global default."),
18215
- resources: described(optional(unknown()), "Heavy-check limits on this machine: slots, scope, heavy, light, memoryMax, cpuQuota, wait."),
18216
- 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."),
18217
- 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."),
18218
- 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."),
18219
- autonomy: described(optional(looseObject(Object.fromEntries(["push", "pr", "merge", "release", "rerun"].map((kind) => [
18180
+ name: nonBlank,
18181
+ glob: nonBlank,
18182
+ vcs: optional(looseObject({
18183
+ provider: _enum(["gitlab", "github"]),
18184
+ defaultTargetBranch: optional(nonBlank),
18185
+ tokenFile: optional(nonBlank),
18186
+ account: optional(nonBlank),
18187
+ host: optional(unknown())
18188
+ })),
18189
+ autoApprove: optional(union([boolean2(), array(nonBlank)])),
18190
+ defaultEndpoint: optional(unknown()),
18191
+ verification: optional(_enum(["proportional", "self", "independent"])),
18192
+ delegation: optional(unknown()),
18193
+ changelog: optional(unknown()),
18194
+ docs: optional(unknown()),
18195
+ changelogPath: optional(unknown()),
18196
+ prTemplate: optional(unknown()),
18197
+ releaseNotes: optional(unknown()),
18198
+ trailers: optional(boolean2()),
18199
+ deleteBranch: optional(boolean2()),
18200
+ cleanup: optional(unknown()),
18201
+ feedback: optional(unknown()),
18202
+ liveSessionGuard: optional(boolean2()),
18203
+ shared: optional(boolean2()),
18204
+ fanout: optional(looseObject({
18205
+ tierModels: optional(unknown()),
18206
+ deps: optional(unknown()),
18207
+ installTimeout: optional(unknown())
18208
+ })),
18209
+ models: optional(looseObject({ roles: modelRoles })),
18210
+ resources: optional(unknown()),
18211
+ remotes: 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/*)")))),
18212
+ externalRepos: 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")))),
18213
+ additiveRiskPaths: optional(array(nonBlank)),
18214
+ autonomy: optional(looseObject(Object.fromEntries(["push", "pr", "merge", "release", "rerun"].map((kind) => [
18220
18215
  kind,
18221
- described(optional(union([boolean2(), literal("verified")])), `The ${kind} grant: true, false, or "verified" (only after a verdict).`)
18222
- ])))), "Autonomy grants (D15): only ever set here, by the user, with `workit grant set`."),
18223
- youtrack: described(optional(looseObject({
18224
- baseUrl: described(optional(nonBlank), "This workspace's YouTrack URL."),
18225
- link_issues: described(optional(boolean2()), "Legacy alias of `issues: { provider: youtrack, link: true }`."),
18226
- writes: described(optional(_enum(["ask", "auto"])), "ask (default): each workit youtrack write waits for the user's yes. auto: posts without asking, behind WORKIT_YT_WRITE=1."),
18227
- autoHosts: described(optional(array(nonBlank)), "With writes auto: the only YouTrack hosts (`acme.youtrack.cloud`) a write may reach without asking. A raw ytrack write must name one with --host; a write elsewhere asks. Only the user widens it, in their own terminal (`workit workspace seal`).")
18228
- })), "YouTrack settings for this workspace."),
18229
- issues: described(optional(looseObject({
18230
- provider: described(optional(_enum(["github", "gitlab", "youtrack"])), "The issue tracker PRs link to."),
18231
- link: described(optional(boolean2()), "Derive the issue from the branch name."),
18232
- relation: described(optional(unknown()), "How a PR names its issue: `closes` (default) or `refs`."),
18233
- backlink: described(optional(boolean2()), "Post the PR URL on each linked issue after the PR is opened."),
18234
- link_on_pr: described(optional(boolean2()), "Legacy alias of `link`."),
18235
- repo: described(optional(unknown()), "The GitHub/GitLab repository (owner/name) that holds the issues; default the PR's own."),
18236
- host: described(optional(unknown()), "That repository's host; default the PR's host, or the tracker's public one.")
18237
- })), "The issue tracker PRs link to (any forge with any tracker)."),
18238
- branchPolicy: described(optional(workspaceBranchPolicySchema), "Which branches may be created and which are protected."),
18239
- commitPolicy: described(optional(workspaceCommitPolicySchema), "The commit message rules."),
18240
- defaultProfile: described(optional(nonBlank), "The profile used when none is named; must be a key of `profiles`."),
18241
- profiles: described(optional(record(nonBlank, workspaceProfileSchema)), "Named branch/commit policy variants of this workspace."),
18242
- releaseTracks: described(optional(record(nonBlank, releaseTrackSchema)), "Named release tracks: production and integration branches, naming and versioning."),
18243
- releasePackages: described(optional(unknown()), "Packages released from this repository's own release line under their own tag namespace (`pkg-a@0.1.0`): keyed by package name, each `{ tagNamespace?, changelogPath? }` (default namespace `<name>@`). `workit release package <name> <version>` tags and publishes one.")
18216
+ optional(union([boolean2(), literal("verified")]))
18217
+ ])))),
18218
+ youtrack: optional(looseObject({
18219
+ baseUrl: optional(nonBlank),
18220
+ link_issues: optional(boolean2()),
18221
+ writes: optional(_enum(["ask", "auto"])),
18222
+ autoHosts: optional(array(nonBlank))
18223
+ })),
18224
+ issues: optional(looseObject({
18225
+ provider: optional(_enum(["github", "gitlab", "youtrack"])),
18226
+ link: optional(boolean2()),
18227
+ relation: optional(unknown()),
18228
+ backlink: optional(boolean2()),
18229
+ link_on_pr: optional(boolean2()),
18230
+ repo: optional(unknown()),
18231
+ host: optional(unknown())
18232
+ })),
18233
+ branchPolicy: optional(workspaceBranchPolicySchema),
18234
+ commitPolicy: optional(workspaceCommitPolicySchema),
18235
+ defaultProfile: optional(nonBlank),
18236
+ profiles: optional(record(nonBlank, workspaceProfileSchema)),
18237
+ releaseTracks: optional(record(nonBlank, releaseTrackSchema)),
18238
+ releasePackages: optional(unknown())
18244
18239
  }).check(superRefine((workspace, context) => {
18245
18240
  if (workspace.defaultProfile !== undefined && !Object.hasOwn(workspace.profiles ?? {}, workspace.defaultProfile)) {
18246
18241
  context.addIssue({
@@ -18251,11 +18246,11 @@ var workspaceConfigSchema = looseObject({
18251
18246
  }
18252
18247
  }));
18253
18248
  var workspacesFileSchema = looseObject({
18254
- workspaces: described(optional(array(workspaceConfigSchema)), "Workspace entries, each mapping a path glob to its forge, policies and grants."),
18255
- models: described(optional(looseObject({ roles: modelRoles })), "The global default model and effort per role and host (roles), the lead's own advisory model (lead), how a role model applies (enforce: advise, the default, or strict) and, under strict, whether a model the lead names on a spawn wins (allowLeadOverride, default false)."),
18256
- feedback: described(optional(looseObject({
18257
- account: described(optional(nonBlank), "The GitHub login `workit feedback --post` uses when no workspace names one; never the workspace's work account by default.")
18258
- })), "`workit feedback` defaults for every workspace.")
18249
+ workspaces: optional(array(workspaceConfigSchema)),
18250
+ models: optional(looseObject({ roles: modelRoles })),
18251
+ feedback: optional(looseObject({
18252
+ account: optional(nonBlank)
18253
+ }))
18259
18254
  }).check(superRefine((file, context) => {
18260
18255
  const names = new Set;
18261
18256
  for (const [index, workspace] of (file.workspaces ?? []).entries()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workit-dev/mcp",
3
- "version": "2.26.1",
3
+ "version": "2.26.2",
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.26.1",
47
+ "@workit-dev/core": "^2.26.2",
48
48
  "zod": "4.6.7"
49
49
  },
50
50
  "engines": {