@brainervirus/workit-codex 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/.codex-plugin/plugin.json +1 -1
- package/dist/launch-mcp.js +71 -61
- package/dist/{workit-hook-xhqhe7h0.js → workit-hook-yfq6yhse.js} +670 -357
- package/dist/workit-hook.js +1 -1
- 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/launch-mcp.js
CHANGED
|
@@ -18849,7 +18849,7 @@ function loadCheckConfig(cwd) {
|
|
|
18849
18849
|
gates[gate] = names;
|
|
18850
18850
|
}
|
|
18851
18851
|
}
|
|
18852
|
-
return { source: CHECKS_FILE, root, checks, gates, error: null };
|
|
18852
|
+
return { source: CHECKS_FILE, root, checks, gates, error: null, resources: parsed.resources };
|
|
18853
18853
|
}
|
|
18854
18854
|
var sameArgv = (left, right) => left.length === right.length && left.every((item, index) => item === right[index]);
|
|
18855
18855
|
function matchesNamedCheck(config, name, argv, cwd) {
|
|
@@ -19437,6 +19437,7 @@ var workspaceConfigSchema = object({
|
|
|
19437
19437
|
autoApprove: union([boolean2(), array(nonBlank)]).optional(),
|
|
19438
19438
|
defaultEndpoint: unknown().optional(),
|
|
19439
19439
|
verification: _enum(["self", "independent"]).optional(),
|
|
19440
|
+
trailers: boolean2().optional(),
|
|
19440
19441
|
autonomy: object(Object.fromEntries(["push", "pr", "merge", "release", "rerun"].map((kind) => [
|
|
19441
19442
|
kind,
|
|
19442
19443
|
union([boolean2(), literal("verified")]).optional()
|
|
@@ -19718,8 +19719,8 @@ var resolveRuntimeWorkspaceVcs = (cwd) => resolveRuntimeWorkspaceCandidate(cwd,
|
|
|
19718
19719
|
var runtimeWorkspaceIndexSchema = object({
|
|
19719
19720
|
workspaces: array(object({ name: nonBlank, glob: nonBlank }).passthrough()).optional()
|
|
19720
19721
|
}).passthrough();
|
|
19721
|
-
var matchRuntimeWorkspace = (cwd) => {
|
|
19722
|
-
const file = path10.join(
|
|
19722
|
+
var matchRuntimeWorkspace = (cwd, dir = configDir()) => {
|
|
19723
|
+
const file = path10.join(dir, "workspaces.json");
|
|
19723
19724
|
let raw;
|
|
19724
19725
|
try {
|
|
19725
19726
|
raw = readFileSync3(file, "utf8");
|
|
@@ -19748,7 +19749,7 @@ var matchRuntimeWorkspace = (cwd) => {
|
|
|
19748
19749
|
const matches = matchingEntries(cwd, entries ?? []);
|
|
19749
19750
|
const workspaceName = process.env.WORKFLOW_WORKSPACE_NAME?.trim() || undefined;
|
|
19750
19751
|
const selected = selectWorkspaceMatch(matches, cwd, workspaceName);
|
|
19751
|
-
return selected ? { file, selected } : null;
|
|
19752
|
+
return selected ? { file, selected, matches } : null;
|
|
19752
19753
|
};
|
|
19753
19754
|
var resolveRuntimeReleaseTracks = (cwd) => {
|
|
19754
19755
|
const matched = matchRuntimeWorkspace(cwd);
|
|
@@ -22270,6 +22271,71 @@ var gitContext = (workspaceRoot, paths = []) => {
|
|
|
22270
22271
|
...failure ? { stderr: failure.stderr, exitCode: failure.exitCode } : {}
|
|
22271
22272
|
};
|
|
22272
22273
|
};
|
|
22274
|
+
|
|
22275
|
+
// packages/workit-core/src/hooks/raw-git.ts
|
|
22276
|
+
var SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh"]);
|
|
22277
|
+
var PREFIXES2 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "nice", "&"]);
|
|
22278
|
+
var CD = new Set(["cd", "chdir", "set-location", "sl"]);
|
|
22279
|
+
var PUSHD = new Set(["pushd", "push-location"]);
|
|
22280
|
+
var POPD = new Set(["popd", "pop-location"]);
|
|
22281
|
+
var GIT_VALUE_OPTIONS = new Set([
|
|
22282
|
+
"-c",
|
|
22283
|
+
"--git-dir",
|
|
22284
|
+
"--work-tree",
|
|
22285
|
+
"--namespace",
|
|
22286
|
+
"--exec-path",
|
|
22287
|
+
"--config-env",
|
|
22288
|
+
"--super-prefix"
|
|
22289
|
+
]);
|
|
22290
|
+
var LAUNCHERS = new Set([
|
|
22291
|
+
"npx",
|
|
22292
|
+
"bunx",
|
|
22293
|
+
"pnpx",
|
|
22294
|
+
"-y",
|
|
22295
|
+
"--yes",
|
|
22296
|
+
"pnpm",
|
|
22297
|
+
"dlx",
|
|
22298
|
+
"exec",
|
|
22299
|
+
"env",
|
|
22300
|
+
"sudo",
|
|
22301
|
+
"command"
|
|
22302
|
+
]);
|
|
22303
|
+
var PUSH_VALUE_OPTIONS = new Set(["-o", "--push-option", "--receive-pack", "--exec", "--repo"]);
|
|
22304
|
+
var VALUE_OPTIONS = {
|
|
22305
|
+
git: new Set([
|
|
22306
|
+
"-m",
|
|
22307
|
+
"--message",
|
|
22308
|
+
"-F",
|
|
22309
|
+
"--file",
|
|
22310
|
+
"-C",
|
|
22311
|
+
"-c",
|
|
22312
|
+
"--reuse-message",
|
|
22313
|
+
"--reedit-message",
|
|
22314
|
+
"--author",
|
|
22315
|
+
"--date",
|
|
22316
|
+
"--trailer",
|
|
22317
|
+
"-t",
|
|
22318
|
+
"--template",
|
|
22319
|
+
"--cleanup",
|
|
22320
|
+
"--fixup",
|
|
22321
|
+
"--squash",
|
|
22322
|
+
"-o",
|
|
22323
|
+
"--push-option",
|
|
22324
|
+
"--repo",
|
|
22325
|
+
"--receive-pack",
|
|
22326
|
+
"--exec"
|
|
22327
|
+
]),
|
|
22328
|
+
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"])),
|
|
22329
|
+
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"]))
|
|
22330
|
+
};
|
|
22331
|
+
|
|
22332
|
+
// packages/workit-core/src/core/route-intent.ts
|
|
22333
|
+
var SWITCH_CREATE = new Set(["-c", "--create", "-C", "--force-create", "--orphan"]);
|
|
22334
|
+
var CHECKOUT_CREATE = new Set(["-b", "-B", "--orphan"]);
|
|
22335
|
+
var WORKTREE_CREATE = new Set(["-b", "-B"]);
|
|
22336
|
+
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"]));
|
|
22337
|
+
var BRANCH_RENAME = new Set(["-m", "-M", "--move", "-c", "-C", "--copy"]);
|
|
22338
|
+
var WORKTREE_VALUES = new Set(["--reason"]);
|
|
22273
22339
|
// packages/workit-core/src/core/task-engine.ts
|
|
22274
22340
|
import { realpathSync as realpathSync4 } from "node:fs";
|
|
22275
22341
|
|
|
@@ -28101,64 +28167,8 @@ var cache = new Map;
|
|
|
28101
28167
|
var TURN_TTL_MS = 7 * 24 * 60 * 60 * 1000;
|
|
28102
28168
|
// packages/workit-core/src/hooks/write-gate.ts
|
|
28103
28169
|
var CASE_INSENSITIVE = process.platform === "darwin" || process.platform === "win32";
|
|
28104
|
-
var
|
|
28170
|
+
var PREFIXES3 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "xargs"]);
|
|
28105
28171
|
var cache2 = new Map;
|
|
28106
|
-
// packages/workit-core/src/hooks/raw-git.ts
|
|
28107
|
-
var SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh"]);
|
|
28108
|
-
var PREFIXES3 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "nice", "&"]);
|
|
28109
|
-
var CD = new Set(["cd", "chdir", "set-location", "sl"]);
|
|
28110
|
-
var PUSHD = new Set(["pushd", "push-location"]);
|
|
28111
|
-
var POPD = new Set(["popd", "pop-location"]);
|
|
28112
|
-
var GIT_VALUE_OPTIONS = new Set([
|
|
28113
|
-
"-c",
|
|
28114
|
-
"--git-dir",
|
|
28115
|
-
"--work-tree",
|
|
28116
|
-
"--namespace",
|
|
28117
|
-
"--exec-path",
|
|
28118
|
-
"--config-env",
|
|
28119
|
-
"--super-prefix"
|
|
28120
|
-
]);
|
|
28121
|
-
var LAUNCHERS = new Set([
|
|
28122
|
-
"npx",
|
|
28123
|
-
"bunx",
|
|
28124
|
-
"pnpx",
|
|
28125
|
-
"-y",
|
|
28126
|
-
"--yes",
|
|
28127
|
-
"pnpm",
|
|
28128
|
-
"dlx",
|
|
28129
|
-
"exec",
|
|
28130
|
-
"env",
|
|
28131
|
-
"sudo",
|
|
28132
|
-
"command"
|
|
28133
|
-
]);
|
|
28134
|
-
var PUSH_VALUE_OPTIONS = new Set(["-o", "--push-option", "--receive-pack", "--exec", "--repo"]);
|
|
28135
|
-
var VALUE_OPTIONS = {
|
|
28136
|
-
git: new Set([
|
|
28137
|
-
"-m",
|
|
28138
|
-
"--message",
|
|
28139
|
-
"-F",
|
|
28140
|
-
"--file",
|
|
28141
|
-
"-C",
|
|
28142
|
-
"-c",
|
|
28143
|
-
"--reuse-message",
|
|
28144
|
-
"--reedit-message",
|
|
28145
|
-
"--author",
|
|
28146
|
-
"--date",
|
|
28147
|
-
"--trailer",
|
|
28148
|
-
"-t",
|
|
28149
|
-
"--template",
|
|
28150
|
-
"--cleanup",
|
|
28151
|
-
"--fixup",
|
|
28152
|
-
"--squash",
|
|
28153
|
-
"-o",
|
|
28154
|
-
"--push-option",
|
|
28155
|
-
"--repo",
|
|
28156
|
-
"--receive-pack",
|
|
28157
|
-
"--exec"
|
|
28158
|
-
]),
|
|
28159
|
-
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"])),
|
|
28160
|
-
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"]))
|
|
28161
|
-
};
|
|
28162
28172
|
// packages/workit-core/src/core/skill-manifests.ts
|
|
28163
28173
|
if (false) {}
|
|
28164
28174
|
|