@brainervirus/workit-cursor 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/.cursor-plugin/plugin.json +1 -1
- package/dist/cursor-session-start.js +586 -290
- package/dist/mcp-server.js +71 -61
- package/dist/workit-hook.js +670 -357
- package/package.json +3 -3
- package/skills/workit-fanout/references/brief.md +23 -8
- package/skills/workit-fanout/references/orchestration.md +9 -4
package/dist/mcp-server.js
CHANGED
|
@@ -21230,7 +21230,7 @@ function loadCheckConfig(cwd) {
|
|
|
21230
21230
|
gates[gate] = names;
|
|
21231
21231
|
}
|
|
21232
21232
|
}
|
|
21233
|
-
return { source: CHECKS_FILE, root, checks, gates, error: null };
|
|
21233
|
+
return { source: CHECKS_FILE, root, checks, gates, error: null, resources: parsed.resources };
|
|
21234
21234
|
}
|
|
21235
21235
|
var sameArgv = (left, right) => left.length === right.length && left.every((item, index) => item === right[index]);
|
|
21236
21236
|
function matchesNamedCheck(config, name, argv, cwd) {
|
|
@@ -21818,6 +21818,7 @@ var workspaceConfigSchema = object2({
|
|
|
21818
21818
|
autoApprove: union([boolean2(), array(nonBlank)]).optional(),
|
|
21819
21819
|
defaultEndpoint: unknown().optional(),
|
|
21820
21820
|
verification: _enum(["self", "independent"]).optional(),
|
|
21821
|
+
trailers: boolean2().optional(),
|
|
21821
21822
|
autonomy: object2(Object.fromEntries(["push", "pr", "merge", "release", "rerun"].map((kind) => [
|
|
21822
21823
|
kind,
|
|
21823
21824
|
union([boolean2(), literal("verified")]).optional()
|
|
@@ -22099,8 +22100,8 @@ var resolveRuntimeWorkspaceVcs = (cwd) => resolveRuntimeWorkspaceCandidate(cwd,
|
|
|
22099
22100
|
var runtimeWorkspaceIndexSchema = object2({
|
|
22100
22101
|
workspaces: array(object2({ name: nonBlank, glob: nonBlank }).passthrough()).optional()
|
|
22101
22102
|
}).passthrough();
|
|
22102
|
-
var matchRuntimeWorkspace = (cwd) => {
|
|
22103
|
-
const file = path10.join(
|
|
22103
|
+
var matchRuntimeWorkspace = (cwd, dir = configDir()) => {
|
|
22104
|
+
const file = path10.join(dir, "workspaces.json");
|
|
22104
22105
|
let raw;
|
|
22105
22106
|
try {
|
|
22106
22107
|
raw = readFileSync3(file, "utf8");
|
|
@@ -22129,7 +22130,7 @@ var matchRuntimeWorkspace = (cwd) => {
|
|
|
22129
22130
|
const matches = matchingEntries(cwd, entries ?? []);
|
|
22130
22131
|
const workspaceName = process.env.WORKFLOW_WORKSPACE_NAME?.trim() || undefined;
|
|
22131
22132
|
const selected = selectWorkspaceMatch(matches, cwd, workspaceName);
|
|
22132
|
-
return selected ? { file, selected } : null;
|
|
22133
|
+
return selected ? { file, selected, matches } : null;
|
|
22133
22134
|
};
|
|
22134
22135
|
var resolveRuntimeReleaseTracks = (cwd) => {
|
|
22135
22136
|
const matched = matchRuntimeWorkspace(cwd);
|
|
@@ -24651,6 +24652,71 @@ var gitContext = (workspaceRoot, paths = []) => {
|
|
|
24651
24652
|
...failure ? { stderr: failure.stderr, exitCode: failure.exitCode } : {}
|
|
24652
24653
|
};
|
|
24653
24654
|
};
|
|
24655
|
+
|
|
24656
|
+
// packages/workit-core/src/hooks/raw-git.ts
|
|
24657
|
+
var SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh"]);
|
|
24658
|
+
var PREFIXES2 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "nice", "&"]);
|
|
24659
|
+
var CD = new Set(["cd", "chdir", "set-location", "sl"]);
|
|
24660
|
+
var PUSHD = new Set(["pushd", "push-location"]);
|
|
24661
|
+
var POPD = new Set(["popd", "pop-location"]);
|
|
24662
|
+
var GIT_VALUE_OPTIONS = new Set([
|
|
24663
|
+
"-c",
|
|
24664
|
+
"--git-dir",
|
|
24665
|
+
"--work-tree",
|
|
24666
|
+
"--namespace",
|
|
24667
|
+
"--exec-path",
|
|
24668
|
+
"--config-env",
|
|
24669
|
+
"--super-prefix"
|
|
24670
|
+
]);
|
|
24671
|
+
var LAUNCHERS = new Set([
|
|
24672
|
+
"npx",
|
|
24673
|
+
"bunx",
|
|
24674
|
+
"pnpx",
|
|
24675
|
+
"-y",
|
|
24676
|
+
"--yes",
|
|
24677
|
+
"pnpm",
|
|
24678
|
+
"dlx",
|
|
24679
|
+
"exec",
|
|
24680
|
+
"env",
|
|
24681
|
+
"sudo",
|
|
24682
|
+
"command"
|
|
24683
|
+
]);
|
|
24684
|
+
var PUSH_VALUE_OPTIONS = new Set(["-o", "--push-option", "--receive-pack", "--exec", "--repo"]);
|
|
24685
|
+
var VALUE_OPTIONS = {
|
|
24686
|
+
git: new Set([
|
|
24687
|
+
"-m",
|
|
24688
|
+
"--message",
|
|
24689
|
+
"-F",
|
|
24690
|
+
"--file",
|
|
24691
|
+
"-C",
|
|
24692
|
+
"-c",
|
|
24693
|
+
"--reuse-message",
|
|
24694
|
+
"--reedit-message",
|
|
24695
|
+
"--author",
|
|
24696
|
+
"--date",
|
|
24697
|
+
"--trailer",
|
|
24698
|
+
"-t",
|
|
24699
|
+
"--template",
|
|
24700
|
+
"--cleanup",
|
|
24701
|
+
"--fixup",
|
|
24702
|
+
"--squash",
|
|
24703
|
+
"-o",
|
|
24704
|
+
"--push-option",
|
|
24705
|
+
"--repo",
|
|
24706
|
+
"--receive-pack",
|
|
24707
|
+
"--exec"
|
|
24708
|
+
]),
|
|
24709
|
+
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"])),
|
|
24710
|
+
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"]))
|
|
24711
|
+
};
|
|
24712
|
+
|
|
24713
|
+
// packages/workit-core/src/core/route-intent.ts
|
|
24714
|
+
var SWITCH_CREATE = new Set(["-c", "--create", "-C", "--force-create", "--orphan"]);
|
|
24715
|
+
var CHECKOUT_CREATE = new Set(["-b", "-B", "--orphan"]);
|
|
24716
|
+
var WORKTREE_CREATE = new Set(["-b", "-B"]);
|
|
24717
|
+
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"]));
|
|
24718
|
+
var BRANCH_RENAME = new Set(["-m", "-M", "--move", "-c", "-C", "--copy"]);
|
|
24719
|
+
var WORKTREE_VALUES = new Set(["--reason"]);
|
|
24654
24720
|
// packages/workit-core/src/core/task-engine.ts
|
|
24655
24721
|
import { realpathSync as realpathSync4 } from "node:fs";
|
|
24656
24722
|
|
|
@@ -28127,64 +28193,8 @@ var cache = new Map;
|
|
|
28127
28193
|
var TURN_TTL_MS = 7 * 24 * 60 * 60 * 1000;
|
|
28128
28194
|
// packages/workit-core/src/hooks/write-gate.ts
|
|
28129
28195
|
var CASE_INSENSITIVE = process.platform === "darwin" || process.platform === "win32";
|
|
28130
|
-
var
|
|
28196
|
+
var PREFIXES3 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "xargs"]);
|
|
28131
28197
|
var cache2 = new Map;
|
|
28132
|
-
// packages/workit-core/src/hooks/raw-git.ts
|
|
28133
|
-
var SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh"]);
|
|
28134
|
-
var PREFIXES3 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "nice", "&"]);
|
|
28135
|
-
var CD = new Set(["cd", "chdir", "set-location", "sl"]);
|
|
28136
|
-
var PUSHD = new Set(["pushd", "push-location"]);
|
|
28137
|
-
var POPD = new Set(["popd", "pop-location"]);
|
|
28138
|
-
var GIT_VALUE_OPTIONS = new Set([
|
|
28139
|
-
"-c",
|
|
28140
|
-
"--git-dir",
|
|
28141
|
-
"--work-tree",
|
|
28142
|
-
"--namespace",
|
|
28143
|
-
"--exec-path",
|
|
28144
|
-
"--config-env",
|
|
28145
|
-
"--super-prefix"
|
|
28146
|
-
]);
|
|
28147
|
-
var LAUNCHERS = new Set([
|
|
28148
|
-
"npx",
|
|
28149
|
-
"bunx",
|
|
28150
|
-
"pnpx",
|
|
28151
|
-
"-y",
|
|
28152
|
-
"--yes",
|
|
28153
|
-
"pnpm",
|
|
28154
|
-
"dlx",
|
|
28155
|
-
"exec",
|
|
28156
|
-
"env",
|
|
28157
|
-
"sudo",
|
|
28158
|
-
"command"
|
|
28159
|
-
]);
|
|
28160
|
-
var PUSH_VALUE_OPTIONS = new Set(["-o", "--push-option", "--receive-pack", "--exec", "--repo"]);
|
|
28161
|
-
var VALUE_OPTIONS = {
|
|
28162
|
-
git: new Set([
|
|
28163
|
-
"-m",
|
|
28164
|
-
"--message",
|
|
28165
|
-
"-F",
|
|
28166
|
-
"--file",
|
|
28167
|
-
"-C",
|
|
28168
|
-
"-c",
|
|
28169
|
-
"--reuse-message",
|
|
28170
|
-
"--reedit-message",
|
|
28171
|
-
"--author",
|
|
28172
|
-
"--date",
|
|
28173
|
-
"--trailer",
|
|
28174
|
-
"-t",
|
|
28175
|
-
"--template",
|
|
28176
|
-
"--cleanup",
|
|
28177
|
-
"--fixup",
|
|
28178
|
-
"--squash",
|
|
28179
|
-
"-o",
|
|
28180
|
-
"--push-option",
|
|
28181
|
-
"--repo",
|
|
28182
|
-
"--receive-pack",
|
|
28183
|
-
"--exec"
|
|
28184
|
-
]),
|
|
28185
|
-
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"])),
|
|
28186
|
-
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"]))
|
|
28187
|
-
};
|
|
28188
28198
|
// packages/workit-core/src/core/skill-manifests.ts
|
|
28189
28199
|
if (false) {}
|
|
28190
28200
|
|