@brainervirus/workit-codex 8.9.1 → 8.11.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 +151 -134
- package/dist/{workit-hook-vjkepg0b.js → workit-hook-gtdf2ra8.js} +975 -640
- package/dist/workit-hook.js +1 -1
- package/package.json +3 -3
- package/skills/workit-fanout/references/brief.md +1 -1
- package/skills/workit-fanout/references/orchestration.md +16 -6
- package/skills/workit-implement/SKILL.md +3 -2
- package/skills/workit-review/SKILL.md +4 -2
package/dist/launch-mcp.js
CHANGED
|
@@ -16061,64 +16061,11 @@ function acquireFileLockSync(targetPath, options) {
|
|
|
16061
16061
|
}
|
|
16062
16062
|
}
|
|
16063
16063
|
}
|
|
16064
|
-
// packages/workit-core/src/host-session.ts
|
|
16065
|
-
var HOST_SESSION_VARS = [
|
|
16066
|
-
["OPENCODE_SESSION_ID", () => "opencode"],
|
|
16067
|
-
["PI_SESSION_ID", () => "pi"],
|
|
16068
|
-
[
|
|
16069
|
-
"CODEX_THREAD_ID",
|
|
16070
|
-
(env) => env.CODEX_INTERNAL_ORIGINATOR_OVERRIDE === "Codex Desktop" || env.CODEX_ELECTRON_RESOURCES_PATH ? "codex_desktop" : "codex_cli"
|
|
16071
|
-
]
|
|
16072
|
-
];
|
|
16073
|
-
var family = (host) => host?.replace(/_(?:cli|desktop)$/, "") ?? null;
|
|
16074
|
-
function hostSessionFromEnv(env) {
|
|
16075
|
-
const value = (key) => env[key]?.trim() || null;
|
|
16076
|
-
let inner = null;
|
|
16077
|
-
for (const [key, host] of HOST_SESSION_VARS) {
|
|
16078
|
-
const session = value(key);
|
|
16079
|
-
if (session) {
|
|
16080
|
-
inner = { host: host(env), session };
|
|
16081
|
-
break;
|
|
16082
|
-
}
|
|
16083
|
-
}
|
|
16084
|
-
const declared = value("WORKIT_HOST");
|
|
16085
|
-
if (env.WORKIT_SESSION_ID !== undefined) {
|
|
16086
|
-
const inherited = inner !== null && declared !== null && family(declared) !== family(inner.host);
|
|
16087
|
-
if (!inherited)
|
|
16088
|
-
return { host: declared, session: value("WORKIT_SESSION_ID") };
|
|
16089
|
-
}
|
|
16090
|
-
return inner ? { host: inner.host, session: inner.session } : { host: declared, session: null };
|
|
16091
|
-
}
|
|
16092
|
-
|
|
16093
|
-
// packages/workit-core/src/core/package-root.ts
|
|
16094
|
-
import { existsSync } from "node:fs";
|
|
16095
|
-
import path3 from "node:path";
|
|
16096
|
-
import { fileURLToPath } from "node:url";
|
|
16097
|
-
var packageRoot = () => {
|
|
16098
|
-
let dir = path3.dirname(fileURLToPath(import.meta.url));
|
|
16099
|
-
while (true) {
|
|
16100
|
-
const parent = path3.dirname(dir);
|
|
16101
|
-
if (existsSync(path3.join(dir, "package.json")) || parent === dir)
|
|
16102
|
-
return dir;
|
|
16103
|
-
dir = parent;
|
|
16104
|
-
}
|
|
16105
|
-
};
|
|
16106
|
-
var assetRoot = () => {
|
|
16107
|
-
const root = packageRoot();
|
|
16108
|
-
const assets = path3.join(root, "assets");
|
|
16109
|
-
return existsSync(assets) ? assets : root;
|
|
16110
|
-
};
|
|
16111
|
-
|
|
16112
|
-
// packages/workit-core/src/core/store-lock.ts
|
|
16113
|
-
import { spawnSync as spawnSync2 } from "node:child_process";
|
|
16114
|
-
import fs5 from "node:fs";
|
|
16115
|
-
import { hostname } from "node:os";
|
|
16116
|
-
|
|
16117
16064
|
// packages/workit-core/src/store/paths.ts
|
|
16118
16065
|
import { spawnSync } from "node:child_process";
|
|
16119
16066
|
import { createHash as createHash2 } from "node:crypto";
|
|
16120
16067
|
import fs4 from "node:fs";
|
|
16121
|
-
import
|
|
16068
|
+
import path3 from "node:path";
|
|
16122
16069
|
var NOT_A_REPO = /not a git repository \(or any (of the parent directories|parent up to)/u;
|
|
16123
16070
|
var gitRun = (cwd, args) => {
|
|
16124
16071
|
const run = spawnSync("git", args, {
|
|
@@ -16160,14 +16107,14 @@ var DISCOVERY_ENV = [
|
|
|
16160
16107
|
];
|
|
16161
16108
|
var isGitDir = (dir) => {
|
|
16162
16109
|
try {
|
|
16163
|
-
return fs4.statSync(
|
|
16110
|
+
return fs4.statSync(path3.join(dir, "HEAD")).isFile() && fs4.statSync(path3.join(dir, "objects")).isDirectory() && fs4.statSync(path3.join(dir, "refs")).isDirectory();
|
|
16164
16111
|
} catch {
|
|
16165
16112
|
return false;
|
|
16166
16113
|
}
|
|
16167
16114
|
};
|
|
16168
16115
|
var reftableRefs = (common) => {
|
|
16169
16116
|
try {
|
|
16170
|
-
return /^\s*refstorage\s*=\s*reftable\s*$/imu.test(fs4.readFileSync(
|
|
16117
|
+
return /^\s*refstorage\s*=\s*reftable\s*$/imu.test(fs4.readFileSync(path3.join(common, "config"), "utf8"));
|
|
16171
16118
|
} catch {
|
|
16172
16119
|
return false;
|
|
16173
16120
|
}
|
|
@@ -16187,7 +16134,7 @@ function fastGit(root) {
|
|
|
16187
16134
|
if (device !== null && stat.dev !== device)
|
|
16188
16135
|
return { kind: "none" };
|
|
16189
16136
|
device = stat.dev;
|
|
16190
|
-
const dotGit =
|
|
16137
|
+
const dotGit = path3.join(dir, ".git");
|
|
16191
16138
|
let entry = null;
|
|
16192
16139
|
try {
|
|
16193
16140
|
entry = fs4.statSync(dotGit);
|
|
@@ -16208,19 +16155,19 @@ function fastGit(root) {
|
|
|
16208
16155
|
const match = /^gitdir: (.+)$/mu.exec(text);
|
|
16209
16156
|
if (!match)
|
|
16210
16157
|
return null;
|
|
16211
|
-
gitDir =
|
|
16158
|
+
gitDir = path3.resolve(dir, match[1].trim());
|
|
16212
16159
|
} else
|
|
16213
16160
|
return null;
|
|
16214
|
-
if (!fs4.existsSync(
|
|
16161
|
+
if (!fs4.existsSync(path3.join(gitDir, "HEAD")))
|
|
16215
16162
|
return null;
|
|
16216
16163
|
} else if (isGitDir(dir))
|
|
16217
16164
|
gitDir = dir;
|
|
16218
16165
|
if (gitDir) {
|
|
16219
16166
|
let common = gitDir;
|
|
16220
16167
|
try {
|
|
16221
|
-
common =
|
|
16168
|
+
common = path3.resolve(gitDir, fs4.readFileSync(path3.join(gitDir, "commondir"), "utf8").trim());
|
|
16222
16169
|
} catch {}
|
|
16223
|
-
if (!fs4.existsSync(
|
|
16170
|
+
if (!fs4.existsSync(path3.join(common, "objects")))
|
|
16224
16171
|
return null;
|
|
16225
16172
|
return {
|
|
16226
16173
|
kind: "repo",
|
|
@@ -16230,26 +16177,26 @@ function fastGit(root) {
|
|
|
16230
16177
|
reftable: reftableRefs(common)
|
|
16231
16178
|
};
|
|
16232
16179
|
}
|
|
16233
|
-
const parent =
|
|
16180
|
+
const parent = path3.dirname(dir);
|
|
16234
16181
|
if (parent === dir)
|
|
16235
16182
|
return { kind: "none" };
|
|
16236
16183
|
dir = parent;
|
|
16237
16184
|
}
|
|
16238
16185
|
}
|
|
16239
16186
|
function resolveStore(root) {
|
|
16240
|
-
root =
|
|
16187
|
+
root = path3.resolve(root);
|
|
16241
16188
|
let directory = false;
|
|
16242
16189
|
try {
|
|
16243
16190
|
directory = fs4.statSync(root).isDirectory();
|
|
16244
16191
|
} catch {}
|
|
16245
16192
|
if (!directory)
|
|
16246
|
-
return { dir:
|
|
16193
|
+
return { dir: path3.join(root, ".workit"), shared: false, top: null };
|
|
16247
16194
|
const fast = fastGit(root);
|
|
16248
16195
|
if (fast?.kind === "none")
|
|
16249
|
-
return { dir:
|
|
16196
|
+
return { dir: path3.join(root, ".workit"), shared: false, top: null };
|
|
16250
16197
|
if (fast?.kind === "repo")
|
|
16251
16198
|
return {
|
|
16252
|
-
dir:
|
|
16199
|
+
dir: path3.join(fast.common, "workit"),
|
|
16253
16200
|
shared: true,
|
|
16254
16201
|
top: fast.top,
|
|
16255
16202
|
git: { gitDir: fast.gitDir, top: fast.top, reftable: fast.reftable }
|
|
@@ -16259,20 +16206,20 @@ function resolveStore(root) {
|
|
|
16259
16206
|
if (run.ok && common) {
|
|
16260
16207
|
const top = gitRun(root, ["rev-parse", "--path-format=absolute", "--show-toplevel"]);
|
|
16261
16208
|
return {
|
|
16262
|
-
dir:
|
|
16209
|
+
dir: path3.join(real(path3.resolve(root, common)), "workit"),
|
|
16263
16210
|
shared: true,
|
|
16264
16211
|
top: top.ok && top.stdout.trim() ? real(top.stdout.trim()) : null
|
|
16265
16212
|
};
|
|
16266
16213
|
}
|
|
16267
16214
|
if (run.missing || !run.ok && NOT_A_REPO.test(run.stderr))
|
|
16268
|
-
return { dir:
|
|
16215
|
+
return { dir: path3.join(root, ".workit"), shared: false, top: null };
|
|
16269
16216
|
return new Error(`cannot locate the workit store: git rev-parse failed (${run.stderr.trim().split(`
|
|
16270
16217
|
`)[0] || "no output"}); fix the repository (git status should work here)`);
|
|
16271
16218
|
}
|
|
16272
16219
|
var rebasingBranch = (gitDir) => {
|
|
16273
16220
|
for (const state of ["rebase-merge", "rebase-apply"]) {
|
|
16274
16221
|
try {
|
|
16275
|
-
const ref = fs4.readFileSync(
|
|
16222
|
+
const ref = fs4.readFileSync(path3.join(gitDir, state, "head-name"), "utf8").trim();
|
|
16276
16223
|
const match = /^refs\/heads\/(.+)$/u.exec(ref);
|
|
16277
16224
|
if (match)
|
|
16278
16225
|
return match[1];
|
|
@@ -16287,7 +16234,7 @@ function resolveTaskKey(root, location) {
|
|
|
16287
16234
|
if (location.git && !location.git.reftable) {
|
|
16288
16235
|
let head = "";
|
|
16289
16236
|
try {
|
|
16290
|
-
head = fs4.readFileSync(
|
|
16237
|
+
head = fs4.readFileSync(path3.join(location.git.gitDir, "HEAD"), "utf8").trim();
|
|
16291
16238
|
} catch {}
|
|
16292
16239
|
const ref = /^ref: refs\/heads\/(.+)$/u.exec(head);
|
|
16293
16240
|
if (ref && ref[1] !== ".invalid")
|
|
@@ -16318,7 +16265,7 @@ function resolveTaskKey(root, location) {
|
|
|
16318
16265
|
return { key: `detached-${shortHash(real(worktree))}`, kind: "detached", branch: null };
|
|
16319
16266
|
}
|
|
16320
16267
|
function checkoutRootOf(root, location) {
|
|
16321
|
-
const resolved =
|
|
16268
|
+
const resolved = path3.resolve(root);
|
|
16322
16269
|
let canonical = resolved;
|
|
16323
16270
|
try {
|
|
16324
16271
|
canonical = fs4.realpathSync(resolved);
|
|
@@ -16349,13 +16296,13 @@ function branchRenames(location) {
|
|
|
16349
16296
|
}
|
|
16350
16297
|
for (const entry of entries)
|
|
16351
16298
|
if (entry.isDirectory())
|
|
16352
|
-
walk(
|
|
16299
|
+
walk(path3.join(dir, entry.name));
|
|
16353
16300
|
else
|
|
16354
|
-
files.push(
|
|
16301
|
+
files.push(path3.join(dir, entry.name));
|
|
16355
16302
|
};
|
|
16356
|
-
walk(
|
|
16303
|
+
walk(path3.join(path3.dirname(location.dir), "logs", "refs", "heads"));
|
|
16357
16304
|
if (location.git)
|
|
16358
|
-
files.push(
|
|
16305
|
+
files.push(path3.join(location.git.gitDir, "logs", "HEAD"));
|
|
16359
16306
|
const seen = new Set;
|
|
16360
16307
|
const renames = [];
|
|
16361
16308
|
for (const file of files) {
|
|
@@ -16390,11 +16337,63 @@ var checkoutSlug = (root) => {
|
|
|
16390
16337
|
let canonical = real(root);
|
|
16391
16338
|
if (process.platform === "win32")
|
|
16392
16339
|
canonical = canonical.toLowerCase();
|
|
16393
|
-
const base =
|
|
16340
|
+
const base = path3.basename(canonical).replace(/[^A-Za-z0-9._-]/g, "_").slice(0, 40) || "root";
|
|
16394
16341
|
return `${base}-${shortHash(canonical)}`;
|
|
16395
16342
|
};
|
|
16396
16343
|
|
|
16344
|
+
// packages/workit-core/src/host-session.ts
|
|
16345
|
+
var HOST_SESSION_VARS = [
|
|
16346
|
+
["OPENCODE_SESSION_ID", () => "opencode"],
|
|
16347
|
+
["PI_SESSION_ID", () => "pi"],
|
|
16348
|
+
[
|
|
16349
|
+
"CODEX_THREAD_ID",
|
|
16350
|
+
(env) => env.CODEX_INTERNAL_ORIGINATOR_OVERRIDE === "Codex Desktop" || env.CODEX_ELECTRON_RESOURCES_PATH ? "codex_desktop" : "codex_cli"
|
|
16351
|
+
]
|
|
16352
|
+
];
|
|
16353
|
+
var family = (host) => host?.replace(/_(?:cli|desktop)$/, "") ?? null;
|
|
16354
|
+
function hostSessionFromEnv(env) {
|
|
16355
|
+
const value = (key) => env[key]?.trim() || null;
|
|
16356
|
+
let inner = null;
|
|
16357
|
+
for (const [key, host] of HOST_SESSION_VARS) {
|
|
16358
|
+
const session = value(key);
|
|
16359
|
+
if (session) {
|
|
16360
|
+
inner = { host: host(env), session };
|
|
16361
|
+
break;
|
|
16362
|
+
}
|
|
16363
|
+
}
|
|
16364
|
+
const declared = value("WORKIT_HOST");
|
|
16365
|
+
if (env.WORKIT_SESSION_ID !== undefined) {
|
|
16366
|
+
const inherited = inner !== null && declared !== null && family(declared) !== family(inner.host);
|
|
16367
|
+
if (!inherited)
|
|
16368
|
+
return { host: declared, session: value("WORKIT_SESSION_ID") };
|
|
16369
|
+
}
|
|
16370
|
+
return inner ? { host: inner.host, session: inner.session } : { host: declared, session: null };
|
|
16371
|
+
}
|
|
16372
|
+
var OWN_CHILD_SHELL = new Set(["opencode", "pi"]);
|
|
16373
|
+
|
|
16374
|
+
// packages/workit-core/src/core/package-root.ts
|
|
16375
|
+
import { existsSync } from "node:fs";
|
|
16376
|
+
import path4 from "node:path";
|
|
16377
|
+
import { fileURLToPath } from "node:url";
|
|
16378
|
+
var packageRoot = () => {
|
|
16379
|
+
let dir = path4.dirname(fileURLToPath(import.meta.url));
|
|
16380
|
+
while (true) {
|
|
16381
|
+
const parent = path4.dirname(dir);
|
|
16382
|
+
if (existsSync(path4.join(dir, "package.json")) || parent === dir)
|
|
16383
|
+
return dir;
|
|
16384
|
+
dir = parent;
|
|
16385
|
+
}
|
|
16386
|
+
};
|
|
16387
|
+
var assetRoot = () => {
|
|
16388
|
+
const root = packageRoot();
|
|
16389
|
+
const assets = path4.join(root, "assets");
|
|
16390
|
+
return existsSync(assets) ? assets : root;
|
|
16391
|
+
};
|
|
16392
|
+
|
|
16397
16393
|
// packages/workit-core/src/core/store-lock.ts
|
|
16394
|
+
import { spawnSync as spawnSync2 } from "node:child_process";
|
|
16395
|
+
import fs5 from "node:fs";
|
|
16396
|
+
import { hostname } from "node:os";
|
|
16398
16397
|
var metadataLockSchema = object({
|
|
16399
16398
|
pid: number2().int().nonnegative().safe(),
|
|
16400
16399
|
processStart: string2().nullable(),
|
|
@@ -21027,11 +21026,20 @@ function authorSessions(cwd, rows, branch, range = { base: null, head: null }, s
|
|
|
21027
21026
|
sessions.add(session);
|
|
21028
21027
|
return sessions;
|
|
21029
21028
|
}
|
|
21029
|
+
var derivesFrom = (derived, bare) => !bare.includes(":") && derived.endsWith(`:${bare}`);
|
|
21030
|
+
var authoredBy = (authors, session) => {
|
|
21031
|
+
if (authors.has(session))
|
|
21032
|
+
return true;
|
|
21033
|
+
for (const author of authors)
|
|
21034
|
+
if (derivesFrom(author, session) || derivesFrom(session, author))
|
|
21035
|
+
return true;
|
|
21036
|
+
return false;
|
|
21037
|
+
};
|
|
21030
21038
|
var independenceReasons = (row, authors) => {
|
|
21031
21039
|
const reasons = [];
|
|
21032
21040
|
if (!row.actor.session)
|
|
21033
21041
|
reasons.push("no_session");
|
|
21034
|
-
else if (authors
|
|
21042
|
+
else if (authoredBy(authors, row.actor.session))
|
|
21035
21043
|
reasons.push("author_session");
|
|
21036
21044
|
if (row.self === true && !reasons.includes("no_session"))
|
|
21037
21045
|
reasons.push("self");
|
|
@@ -22262,6 +22270,71 @@ var gitContext = (workspaceRoot, paths = []) => {
|
|
|
22262
22270
|
...failure ? { stderr: failure.stderr, exitCode: failure.exitCode } : {}
|
|
22263
22271
|
};
|
|
22264
22272
|
};
|
|
22273
|
+
|
|
22274
|
+
// packages/workit-core/src/hooks/raw-git.ts
|
|
22275
|
+
var SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh"]);
|
|
22276
|
+
var PREFIXES2 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "nice", "&"]);
|
|
22277
|
+
var CD = new Set(["cd", "chdir", "set-location", "sl"]);
|
|
22278
|
+
var PUSHD = new Set(["pushd", "push-location"]);
|
|
22279
|
+
var POPD = new Set(["popd", "pop-location"]);
|
|
22280
|
+
var GIT_VALUE_OPTIONS = new Set([
|
|
22281
|
+
"-c",
|
|
22282
|
+
"--git-dir",
|
|
22283
|
+
"--work-tree",
|
|
22284
|
+
"--namespace",
|
|
22285
|
+
"--exec-path",
|
|
22286
|
+
"--config-env",
|
|
22287
|
+
"--super-prefix"
|
|
22288
|
+
]);
|
|
22289
|
+
var LAUNCHERS = new Set([
|
|
22290
|
+
"npx",
|
|
22291
|
+
"bunx",
|
|
22292
|
+
"pnpx",
|
|
22293
|
+
"-y",
|
|
22294
|
+
"--yes",
|
|
22295
|
+
"pnpm",
|
|
22296
|
+
"dlx",
|
|
22297
|
+
"exec",
|
|
22298
|
+
"env",
|
|
22299
|
+
"sudo",
|
|
22300
|
+
"command"
|
|
22301
|
+
]);
|
|
22302
|
+
var PUSH_VALUE_OPTIONS = new Set(["-o", "--push-option", "--receive-pack", "--exec", "--repo"]);
|
|
22303
|
+
var VALUE_OPTIONS = {
|
|
22304
|
+
git: new Set([
|
|
22305
|
+
"-m",
|
|
22306
|
+
"--message",
|
|
22307
|
+
"-F",
|
|
22308
|
+
"--file",
|
|
22309
|
+
"-C",
|
|
22310
|
+
"-c",
|
|
22311
|
+
"--reuse-message",
|
|
22312
|
+
"--reedit-message",
|
|
22313
|
+
"--author",
|
|
22314
|
+
"--date",
|
|
22315
|
+
"--trailer",
|
|
22316
|
+
"-t",
|
|
22317
|
+
"--template",
|
|
22318
|
+
"--cleanup",
|
|
22319
|
+
"--fixup",
|
|
22320
|
+
"--squash",
|
|
22321
|
+
"-o",
|
|
22322
|
+
"--push-option",
|
|
22323
|
+
"--repo",
|
|
22324
|
+
"--receive-pack",
|
|
22325
|
+
"--exec"
|
|
22326
|
+
]),
|
|
22327
|
+
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"])),
|
|
22328
|
+
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"]))
|
|
22329
|
+
};
|
|
22330
|
+
|
|
22331
|
+
// packages/workit-core/src/core/route-intent.ts
|
|
22332
|
+
var SWITCH_CREATE = new Set(["-c", "--create", "-C", "--force-create", "--orphan"]);
|
|
22333
|
+
var CHECKOUT_CREATE = new Set(["-b", "-B", "--orphan"]);
|
|
22334
|
+
var WORKTREE_CREATE = new Set(["-b", "-B"]);
|
|
22335
|
+
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"]));
|
|
22336
|
+
var BRANCH_RENAME = new Set(["-m", "-M", "--move", "-c", "-C", "--copy"]);
|
|
22337
|
+
var WORKTREE_VALUES = new Set(["--reason"]);
|
|
22265
22338
|
// packages/workit-core/src/core/task-engine.ts
|
|
22266
22339
|
import { realpathSync as realpathSync4 } from "node:fs";
|
|
22267
22340
|
|
|
@@ -28093,64 +28166,8 @@ var cache = new Map;
|
|
|
28093
28166
|
var TURN_TTL_MS = 7 * 24 * 60 * 60 * 1000;
|
|
28094
28167
|
// packages/workit-core/src/hooks/write-gate.ts
|
|
28095
28168
|
var CASE_INSENSITIVE = process.platform === "darwin" || process.platform === "win32";
|
|
28096
|
-
var
|
|
28169
|
+
var PREFIXES3 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "xargs"]);
|
|
28097
28170
|
var cache2 = new Map;
|
|
28098
|
-
// packages/workit-core/src/hooks/raw-git.ts
|
|
28099
|
-
var SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh"]);
|
|
28100
|
-
var PREFIXES3 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "nice", "&"]);
|
|
28101
|
-
var CD = new Set(["cd", "chdir", "set-location", "sl"]);
|
|
28102
|
-
var PUSHD = new Set(["pushd", "push-location"]);
|
|
28103
|
-
var POPD = new Set(["popd", "pop-location"]);
|
|
28104
|
-
var GIT_VALUE_OPTIONS = new Set([
|
|
28105
|
-
"-c",
|
|
28106
|
-
"--git-dir",
|
|
28107
|
-
"--work-tree",
|
|
28108
|
-
"--namespace",
|
|
28109
|
-
"--exec-path",
|
|
28110
|
-
"--config-env",
|
|
28111
|
-
"--super-prefix"
|
|
28112
|
-
]);
|
|
28113
|
-
var LAUNCHERS = new Set([
|
|
28114
|
-
"npx",
|
|
28115
|
-
"bunx",
|
|
28116
|
-
"pnpx",
|
|
28117
|
-
"-y",
|
|
28118
|
-
"--yes",
|
|
28119
|
-
"pnpm",
|
|
28120
|
-
"dlx",
|
|
28121
|
-
"exec",
|
|
28122
|
-
"env",
|
|
28123
|
-
"sudo",
|
|
28124
|
-
"command"
|
|
28125
|
-
]);
|
|
28126
|
-
var PUSH_VALUE_OPTIONS = new Set(["-o", "--push-option", "--receive-pack", "--exec", "--repo"]);
|
|
28127
|
-
var VALUE_OPTIONS = {
|
|
28128
|
-
git: new Set([
|
|
28129
|
-
"-m",
|
|
28130
|
-
"--message",
|
|
28131
|
-
"-F",
|
|
28132
|
-
"--file",
|
|
28133
|
-
"-C",
|
|
28134
|
-
"-c",
|
|
28135
|
-
"--reuse-message",
|
|
28136
|
-
"--reedit-message",
|
|
28137
|
-
"--author",
|
|
28138
|
-
"--date",
|
|
28139
|
-
"--trailer",
|
|
28140
|
-
"-t",
|
|
28141
|
-
"--template",
|
|
28142
|
-
"--cleanup",
|
|
28143
|
-
"--fixup",
|
|
28144
|
-
"--squash",
|
|
28145
|
-
"-o",
|
|
28146
|
-
"--push-option",
|
|
28147
|
-
"--repo",
|
|
28148
|
-
"--receive-pack",
|
|
28149
|
-
"--exec"
|
|
28150
|
-
]),
|
|
28151
|
-
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"])),
|
|
28152
|
-
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"]))
|
|
28153
|
-
};
|
|
28154
28171
|
// packages/workit-core/src/core/skill-manifests.ts
|
|
28155
28172
|
if (false) {}
|
|
28156
28173
|
|