@workit-dev/pi 2.28.0 → 2.29.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/worker.js +185 -28
- package/dist/workit.js +1462 -1106
- package/package.json +1 -1
package/dist/worker.js
CHANGED
|
@@ -5860,12 +5860,13 @@ var COMMIT_PRESETS = [
|
|
|
5860
5860
|
];
|
|
5861
5861
|
|
|
5862
5862
|
// packages/workit-core/src/core/workspaces.ts
|
|
5863
|
-
import { spawnSync as
|
|
5863
|
+
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
5864
5864
|
import { existsSync as existsSync3, lstatSync as lstatSync3, readFileSync as readFileSync3, realpathSync as realpathSync4 } from "node:fs";
|
|
5865
5865
|
import path6 from "node:path";
|
|
5866
5866
|
|
|
5867
5867
|
// packages/workit-core/src/core/remotes.ts
|
|
5868
5868
|
import { lstatSync as lstatSync2, readFileSync as readFileSync2, realpathSync as realpathSync3, statSync } from "node:fs";
|
|
5869
|
+
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
5869
5870
|
import path5 from "node:path";
|
|
5870
5871
|
|
|
5871
5872
|
// packages/workit-core/src/git/rev.ts
|
|
@@ -6413,6 +6414,51 @@ var remotePattern = (pattern) => {
|
|
|
6413
6414
|
const key = remoteKey(owner ? trimmed.slice(0, -2) : trimmed);
|
|
6414
6415
|
return key ? { key, owner } : null;
|
|
6415
6416
|
};
|
|
6417
|
+
var remoteMatches = (pattern, key) => {
|
|
6418
|
+
const parsed = remotePattern(pattern);
|
|
6419
|
+
if (!parsed)
|
|
6420
|
+
return false;
|
|
6421
|
+
return parsed.owner ? key.startsWith(`${parsed.key}/`) : key === parsed.key;
|
|
6422
|
+
};
|
|
6423
|
+
var checkoutRemotes = (cwd) => {
|
|
6424
|
+
const env = { ...process.env };
|
|
6425
|
+
for (const name of ["GIT_DIR", "GIT_WORK_TREE", "GIT_COMMON_DIR", "GIT_INDEX_FILE"])
|
|
6426
|
+
delete env[name];
|
|
6427
|
+
const git = (args) => spawnSync4("git", args, {
|
|
6428
|
+
cwd,
|
|
6429
|
+
env,
|
|
6430
|
+
encoding: "utf8",
|
|
6431
|
+
timeout: 5000,
|
|
6432
|
+
windowsHide: true
|
|
6433
|
+
});
|
|
6434
|
+
const listed = git(["remote", "-v"]);
|
|
6435
|
+
if (listed.status !== 0) {
|
|
6436
|
+
if (/not a git repository/iu.test(listed.stderr ?? ""))
|
|
6437
|
+
return [];
|
|
6438
|
+
return Error(`git could not list the remotes of ${cwd}`);
|
|
6439
|
+
}
|
|
6440
|
+
let top;
|
|
6441
|
+
const base = () => {
|
|
6442
|
+
if (top === undefined) {
|
|
6443
|
+
const run = git(["rev-parse", "--show-toplevel"]);
|
|
6444
|
+
top = run.status === 0 && run.stdout.trim() ? run.stdout.trim() : cwd;
|
|
6445
|
+
}
|
|
6446
|
+
return top;
|
|
6447
|
+
};
|
|
6448
|
+
const out = [];
|
|
6449
|
+
for (const line of listed.stdout.split(/\r?\n/u)) {
|
|
6450
|
+
const match = /^([^\t]+)\t(.*) \((?:fetch|push)\)$/u.exec(line);
|
|
6451
|
+
if (!match)
|
|
6452
|
+
continue;
|
|
6453
|
+
const [, name, url] = match;
|
|
6454
|
+
const key = remoteKey(url, base);
|
|
6455
|
+
if (key === null)
|
|
6456
|
+
return Error(`remote ${name} of ${cwd} has a URL workit cannot read: ${url}`);
|
|
6457
|
+
if (!out.some((item) => item.key === key))
|
|
6458
|
+
out.push({ name, url, key });
|
|
6459
|
+
}
|
|
6460
|
+
return out;
|
|
6461
|
+
};
|
|
6416
6462
|
|
|
6417
6463
|
// packages/workit-core/src/core/workspaces.ts
|
|
6418
6464
|
var nonBlank = string2().check(refine((value) => value.trim().length > 0, "must not be blank"));
|
|
@@ -6520,7 +6566,7 @@ var workspaceConfigSchema = looseObject({
|
|
|
6520
6566
|
})),
|
|
6521
6567
|
models: optional(looseObject({ roles: modelRoles })),
|
|
6522
6568
|
resources: optional(unknown()),
|
|
6523
|
-
remotes: optional(array(nonBlank.check(refine((pattern) =>
|
|
6569
|
+
remotes: optional(array(nonBlank.check(refine((pattern) => isRemotePattern(pattern), "is not a remote URL (https://host/owner/repo, git@host:owner/repo, a path, or owner/*)")))),
|
|
6524
6570
|
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")))),
|
|
6525
6571
|
additiveRiskPaths: optional(array(nonBlank)),
|
|
6526
6572
|
autonomy: optional(looseObject(Object.fromEntries(["push", "pr", "merge", "release", "rerun"].map((kind) => [
|
|
@@ -6665,7 +6711,7 @@ var probeCheckout = (cwd) => {
|
|
|
6665
6711
|
for (const name of ["GIT_DIR", "GIT_WORK_TREE", "GIT_COMMON_DIR", "GIT_INDEX_FILE"])
|
|
6666
6712
|
delete env[name];
|
|
6667
6713
|
const git = (args) => {
|
|
6668
|
-
const run =
|
|
6714
|
+
const run = spawnSync5("git", args, {
|
|
6669
6715
|
cwd,
|
|
6670
6716
|
env,
|
|
6671
6717
|
encoding: "utf8",
|
|
@@ -6812,6 +6858,27 @@ var selectWorkspaceMatch = (matches, cwd, workspaceName) => {
|
|
|
6812
6858
|
}
|
|
6813
6859
|
return mostSpecific[0];
|
|
6814
6860
|
};
|
|
6861
|
+
var HOSTLESS_REMOTE = /^[\w-]+\/\*$/u;
|
|
6862
|
+
var expandRemotePattern = (entry, pattern) => {
|
|
6863
|
+
if (!HOSTLESS_REMOTE.test(pattern.trim()))
|
|
6864
|
+
return pattern;
|
|
6865
|
+
const vcs = entry.vcs ?? {};
|
|
6866
|
+
const host = typeof vcs.host === "string" && vcs.host.trim().replace(/^https?:\/\/|\/.*$/giu, "") || `${vcs.provider === "gitlab" ? "gitlab" : "github"}.com`;
|
|
6867
|
+
return `https://${host}/${pattern.trim()}`;
|
|
6868
|
+
};
|
|
6869
|
+
var isRemotePattern = (pattern) => !!remotePattern(expandRemotePattern({}, pattern));
|
|
6870
|
+
var remoteClaimOf = (entry, key, exact = false) => (Array.isArray(entry.remotes) ? entry.remotes : []).find((pattern) => typeof pattern === "string" && !(exact && pattern.trim().endsWith("/*")) && remoteMatches(expandRemotePattern(entry, pattern), key));
|
|
6871
|
+
var resolveWorkspaceFromEntries = (cwd, entries, workspaceName, remotes) => {
|
|
6872
|
+
const globbed = matchingEntries(cwd, entries);
|
|
6873
|
+
const listed = !remotes || globbed.length || !entries.some((entry) => entry.remotes) ? [] : checkoutRemotes(cwd);
|
|
6874
|
+
const origin = listed instanceof Error ? [] : listed.filter((item) => item.name === "origin");
|
|
6875
|
+
const hits = entries.filter((entry) => origin.length && origin.every((item) => remoteClaimOf(entry, item.key)));
|
|
6876
|
+
const exact = hits.filter((entry) => origin.every((item) => remoteClaimOf(entry, item.key, true)));
|
|
6877
|
+
const ranked = exact.length ? exact : hits;
|
|
6878
|
+
if (workspaceName === undefined && ranked.length > 1)
|
|
6879
|
+
return null;
|
|
6880
|
+
return selectWorkspaceMatch(hits.length ? workspaceName ? hits : ranked : globbed, cwd, workspaceName) ?? null;
|
|
6881
|
+
};
|
|
6815
6882
|
var runtimeWorkspaceIndexSchema = looseObject({
|
|
6816
6883
|
workspaces: optional(array(looseObject({ name: nonBlank, glob: nonBlank })))
|
|
6817
6884
|
});
|
|
@@ -6842,10 +6909,12 @@ var matchRuntimeWorkspace = (cwd, dir = configDir2()) => {
|
|
|
6842
6909
|
if (!glob.ok)
|
|
6843
6910
|
throw new WorkspaceConfigError(`${file} workspace ${entry.name}: ${glob.error}`);
|
|
6844
6911
|
}
|
|
6845
|
-
const matches = matchingEntries(cwd, entries ?? []);
|
|
6846
6912
|
const workspaceName = process.env.WORKIT_WORKSPACE_NAME?.trim() || undefined;
|
|
6847
|
-
const selected =
|
|
6848
|
-
|
|
6913
|
+
const selected = resolveWorkspaceFromEntries(cwd, entries ?? [], workspaceName, true);
|
|
6914
|
+
if (!selected)
|
|
6915
|
+
return null;
|
|
6916
|
+
const matches = matchingEntries(cwd, entries ?? []);
|
|
6917
|
+
return { file, selected, matches: matches.length ? matches : [selected] };
|
|
6849
6918
|
};
|
|
6850
6919
|
var modelSources = (cwd, dir) => {
|
|
6851
6920
|
const out = [];
|
|
@@ -7259,12 +7328,12 @@ Merge them by hand (cp -Rn ${workit}/. ${target}/), then delete them here.
|
|
|
7259
7328
|
}
|
|
7260
7329
|
|
|
7261
7330
|
// packages/workit-core/src/store/paths.ts
|
|
7262
|
-
import { spawnSync as
|
|
7331
|
+
import { spawnSync as spawnSync6 } from "node:child_process";
|
|
7263
7332
|
import fs5 from "node:fs";
|
|
7264
7333
|
import path8 from "node:path";
|
|
7265
7334
|
var NOT_A_REPO = /not a git repository \(or any (of the parent directories|parent up to)/u;
|
|
7266
7335
|
var gitRun = (cwd, args) => {
|
|
7267
|
-
const run =
|
|
7336
|
+
const run = spawnSync6("git", args, {
|
|
7268
7337
|
cwd,
|
|
7269
7338
|
encoding: "utf8",
|
|
7270
7339
|
timeout: 20000,
|
|
@@ -7486,7 +7555,7 @@ var assetRoot = () => {
|
|
|
7486
7555
|
};
|
|
7487
7556
|
|
|
7488
7557
|
// packages/workit-core/src/core/store-lock.ts
|
|
7489
|
-
import { spawnSync as
|
|
7558
|
+
import { spawnSync as spawnSync7 } from "node:child_process";
|
|
7490
7559
|
import fs6 from "node:fs";
|
|
7491
7560
|
var metadataLockSchema = strictObject({
|
|
7492
7561
|
pid: number2().check(int(), _nonnegative(), int()),
|
|
@@ -7511,7 +7580,7 @@ var readProcStat = (pid) => {
|
|
|
7511
7580
|
};
|
|
7512
7581
|
var psStart = (pid) => {
|
|
7513
7582
|
try {
|
|
7514
|
-
const run =
|
|
7583
|
+
const run = spawnSync7("ps", ["-o", "lstart=", "-p", String(pid)], {
|
|
7515
7584
|
encoding: "utf8",
|
|
7516
7585
|
timeout: 1000,
|
|
7517
7586
|
env: { ...process.env, LC_ALL: "C" }
|
|
@@ -7598,7 +7667,7 @@ var PM_RUN = new Set(["run", "run-script"]);
|
|
|
7598
7667
|
var PYTHON_RUNNERS = new Set(["uv", "poetry", "pipenv", "pdm", "hatch", "rye"]);
|
|
7599
7668
|
|
|
7600
7669
|
// packages/workit-core/src/ledger.ts
|
|
7601
|
-
import { spawnSync as
|
|
7670
|
+
import { spawnSync as spawnSync8 } from "node:child_process";
|
|
7602
7671
|
import { createHash as createHash4, randomBytes } from "node:crypto";
|
|
7603
7672
|
import fs8 from "node:fs";
|
|
7604
7673
|
import path11 from "node:path";
|
|
@@ -7778,7 +7847,7 @@ var err = (code, error, unblock) => ({
|
|
|
7778
7847
|
...unblock ? { unblock } : {}
|
|
7779
7848
|
});
|
|
7780
7849
|
var gitRun2 = (cwd, args, timeoutMs = GIT_TIMEOUTS.local) => {
|
|
7781
|
-
const run =
|
|
7850
|
+
const run = spawnSync8("git", args, {
|
|
7782
7851
|
cwd,
|
|
7783
7852
|
encoding: "utf8",
|
|
7784
7853
|
timeout: timeoutMs,
|
|
@@ -9453,6 +9522,50 @@ var GRANT_TTL_MS = 15 * 60000;
|
|
|
9453
9522
|
var ASKING_HOSTS = new Set(["claude_code", "pi"]);
|
|
9454
9523
|
var INLINE_ASK_TTL_MS = 2 * 60000;
|
|
9455
9524
|
|
|
9525
|
+
// packages/workit-core/src/hooks/delivery-verbs.ts
|
|
9526
|
+
var WORKIT_ALLOWED_VERBS = [
|
|
9527
|
+
"git",
|
|
9528
|
+
"pr",
|
|
9529
|
+
"ci",
|
|
9530
|
+
"stack",
|
|
9531
|
+
"release",
|
|
9532
|
+
"task",
|
|
9533
|
+
"ledger",
|
|
9534
|
+
"evidence",
|
|
9535
|
+
"finding",
|
|
9536
|
+
"decision",
|
|
9537
|
+
"worker",
|
|
9538
|
+
"verify-delivery",
|
|
9539
|
+
"policy",
|
|
9540
|
+
"doctor",
|
|
9541
|
+
"help",
|
|
9542
|
+
"ps",
|
|
9543
|
+
"stop"
|
|
9544
|
+
];
|
|
9545
|
+
var WORKIT_USER_ONLY = [
|
|
9546
|
+
["release", "notes", "approve"],
|
|
9547
|
+
["grant", "set"],
|
|
9548
|
+
["grant", "raise"],
|
|
9549
|
+
["ledger", "void"],
|
|
9550
|
+
["approve"],
|
|
9551
|
+
["setup"],
|
|
9552
|
+
["uninstall"],
|
|
9553
|
+
["install"],
|
|
9554
|
+
["workspace", "seal"]
|
|
9555
|
+
];
|
|
9556
|
+
var WORKIT_ASKED_VERBS = ["feedback"];
|
|
9557
|
+
var USER_ONLY_WORD = new RegExp(`\\b(?:${[...new Set([...WORKIT_USER_ONLY.map((words) => words[0]), ...WORKIT_ASKED_VERBS])].join("|")})\\b`);
|
|
9558
|
+
var ALLOWED = new Set(WORKIT_ALLOWED_VERBS);
|
|
9559
|
+
var WRAPPERS2 = new Set(["env", "sudo", "nohup", "command", "timeout", "nice", "exec"]);
|
|
9560
|
+
|
|
9561
|
+
// packages/workit-core/src/hooks/cwd-normalize.ts
|
|
9562
|
+
var DIR = String.raw`(?:[A-Za-z0-9_./@%+:,=-]|(?<=[A-Za-z0-9])~)+|'[^'$${"`"}\n]*'|"(?:[^"$${"`"}\\!\n]|\\(?=[^"$${"`"}\\!\n]))*"`;
|
|
9563
|
+
var COMPOUND = new RegExp(String.raw`^\s*cd\s+(${DIR})\s*&&\s*(workit(?:\s[\s\S]*)?)$`, "u");
|
|
9564
|
+
var GLOBALS_FIRST = new RegExp(String.raw`^(\s*workit)((?:\s+(?:--json|--cwd(?:=|\s+)(?:${DIR})))+)\s+([a-z][a-z-]*)(?=\s|$)`, "u");
|
|
9565
|
+
var VERBS = new Set(WORKIT_ALLOWED_VERBS);
|
|
9566
|
+
var FILTERS = new Set(["tail", "head", "grep"]);
|
|
9567
|
+
var NPX = new RegExp(String.raw`^(\s*(?:cd\s+(?:${DIR})\s*&&\s*)?)npx(?:\s+(?:-y|--yes))*\s+@workit-dev\/cli(?:@[\w.-]+)?(?=\s|$)`, "u");
|
|
9568
|
+
|
|
9456
9569
|
// packages/workit-core/src/approvals/youtrack-ask.ts
|
|
9457
9570
|
var TIME = "markdown file minutes text date";
|
|
9458
9571
|
var FLAGS = {
|
|
@@ -9464,8 +9577,8 @@ var FLAGS = {
|
|
|
9464
9577
|
};
|
|
9465
9578
|
|
|
9466
9579
|
// packages/workit-core/src/approvals/inline.ts
|
|
9467
|
-
var
|
|
9468
|
-
var OPAQUE_RELEASE_FIX = `workit release --cwd ${
|
|
9580
|
+
var DIR2 = "<dir>";
|
|
9581
|
+
var OPAQUE_RELEASE_FIX = `workit release --cwd ${DIR2} notes approve <version>`;
|
|
9469
9582
|
|
|
9470
9583
|
// packages/workit-core/src/hooks/hosts/fields.ts
|
|
9471
9584
|
var SHELLS2 = new Set(["sh", "bash", "zsh", "dash", "pwsh", "powershell", "cmd"]);
|
|
@@ -9957,6 +10070,19 @@ var PI_DESCRIPTOR = {
|
|
|
9957
10070
|
]
|
|
9958
10071
|
};
|
|
9959
10072
|
|
|
10073
|
+
// packages/workit-core/src/hooks/write-gate.ts
|
|
10074
|
+
import path14 from "node:path";
|
|
10075
|
+
|
|
10076
|
+
// packages/workit-core/src/core/live-session.ts
|
|
10077
|
+
import { spawnSync as spawnSync9 } from "node:child_process";
|
|
10078
|
+
var LIVE_SESSION_TTL_MS = 15 * 60000;
|
|
10079
|
+
var liveProbe = {
|
|
10080
|
+
platform: process.platform,
|
|
10081
|
+
run: (args) => spawnSync9("ps", args, { encoding: "utf8", timeout: 2000 }).stdout ?? "",
|
|
10082
|
+
start: (pid) => processStartOf(pid)
|
|
10083
|
+
};
|
|
10084
|
+
var PIDS = new Map;
|
|
10085
|
+
|
|
9960
10086
|
// packages/workit-core/src/hooks/windows-reads.ts
|
|
9961
10087
|
var READ_CMDLETS = new Set([
|
|
9962
10088
|
"foreach-object",
|
|
@@ -9984,19 +10110,6 @@ var READ_CMDLETS = new Set([
|
|
|
9984
10110
|
"help"
|
|
9985
10111
|
]);
|
|
9986
10112
|
|
|
9987
|
-
// packages/workit-core/src/hooks/write-gate.ts
|
|
9988
|
-
import path14 from "node:path";
|
|
9989
|
-
|
|
9990
|
-
// packages/workit-core/src/core/live-session.ts
|
|
9991
|
-
import { spawnSync as spawnSync8 } from "node:child_process";
|
|
9992
|
-
var LIVE_SESSION_TTL_MS = 15 * 60000;
|
|
9993
|
-
var liveProbe = {
|
|
9994
|
-
platform: process.platform,
|
|
9995
|
-
run: (args) => spawnSync8("ps", args, { encoding: "utf8", timeout: 2000 }).stdout ?? "",
|
|
9996
|
-
start: (pid) => processStartOf(pid)
|
|
9997
|
-
};
|
|
9998
|
-
var PIDS = new Map;
|
|
9999
|
-
|
|
10000
10113
|
// packages/workit-core/src/hooks/write-gate.ts
|
|
10001
10114
|
var CASE_INSENSITIVE = process.platform === "darwin" || process.platform === "win32";
|
|
10002
10115
|
var PREFIXES = new Set(["sudo", "command", "env", "nohup", "time", "exec", "xargs", "busybox"]);
|
|
@@ -10062,7 +10175,7 @@ var BINDERS = new Set([
|
|
|
10062
10175
|
"builtin",
|
|
10063
10176
|
"command"
|
|
10064
10177
|
]);
|
|
10065
|
-
var
|
|
10178
|
+
var COMPOUND2 = new Set([
|
|
10066
10179
|
"if",
|
|
10067
10180
|
"then",
|
|
10068
10181
|
"elif",
|
|
@@ -10086,6 +10199,50 @@ var UNFOLLOWED = new Set(["case", "esac", "select", "function"]);
|
|
|
10086
10199
|
var TRANSPARENT = new Set(["builtin", "command", "time", "!"]);
|
|
10087
10200
|
var UNKNOWN_VAR = path14.resolve(path14.parse(process.cwd()).root, ".workit-unknown-var");
|
|
10088
10201
|
|
|
10202
|
+
// packages/workit-core/src/hooks/identity-env.ts
|
|
10203
|
+
var NAMES = "WORKIT_(?:AGENT_ID|HOST|SESSION_ID|SESSION_TOKEN)";
|
|
10204
|
+
var IDENTITY = new RegExp(`^${NAMES}$`, "u");
|
|
10205
|
+
var HOST_NAMES = "(?:OPENCODE_SESSION_ID|PI_SESSION_ID|CODEX_THREAD_ID|CLAUDECODE|CLAUDE_CODE_ENTRYPOINT)";
|
|
10206
|
+
var HOST_VARIABLE = new RegExp(`^${HOST_NAMES}$`, "u");
|
|
10207
|
+
var IDENTITY_ANY = new RegExp(NAMES, "iu");
|
|
10208
|
+
var STATE_NAMES = "(?:WORKIT_(?:STATE_DIR|CONFIG(?:_DIR)?)|XDG_(?:STATE|CONFIG|DATA)_HOME|HOME|USERPROFILE|(?:LOCAL)?APPDATA)";
|
|
10209
|
+
var STATE2 = new RegExp(`^${STATE_NAMES}$`, "u");
|
|
10210
|
+
var STATE_ANY = new RegExp(STATE_NAMES, "iu");
|
|
10211
|
+
var powershell = (names) => new RegExp([
|
|
10212
|
+
`\\$\\{?env:${names}\\}?\\s*(?:[-+*/]|\\?\\?)?=(?!=)`,
|
|
10213
|
+
`${PS_ITEM}[^;|\\n]*?(?<![$\\w{])env:[\\\\/]?${names}\\b`,
|
|
10214
|
+
`SetEnvironmentVariable\\(\\s*['"]${names}\\b`
|
|
10215
|
+
].join("|"), "iu");
|
|
10216
|
+
var PS_ITEM = "\\b(?:(?:Set|New|Remove|Clear|Rename|Move|Copy)-Item(?:Property)?|(?:Set|Add|Clear)-Content|si|ni|ri|rm|del|erase|rd|rmdir|cli|sc|ac|clc|rni|mi|move|mv|cpi|copy|cp|ren)\\b";
|
|
10217
|
+
var POWERSHELL = powershell(NAMES);
|
|
10218
|
+
var POWERSHELL_STATE = powershell(STATE_NAMES);
|
|
10219
|
+
var POWERSHELL_HOST = powershell(HOST_NAMES);
|
|
10220
|
+
var POWERSHELL_OPAQUE = new RegExp([
|
|
10221
|
+
`SetEnvironmentVariable\\(\\s*(?:[^'"\\s]|"[^"]*\\$)`,
|
|
10222
|
+
`${PS_ITEM}[^;|\\n]*?(?<![$\\w{])env:[\\\\/]?["']?[$(]`,
|
|
10223
|
+
`(?:^|[;&|{(\\n])\\s*\\.\\s+[^\\s.]`,
|
|
10224
|
+
`\\b(?:iex|Invoke-Expression)\\b`
|
|
10225
|
+
].join("|"), "iu");
|
|
10226
|
+
var cmdSet = (names) => new RegExp(`(?:^|[&|(\\s"])set\\s+(?:/[ap]\\s+)?"?(${names})\\s*\\+?=`, "iu");
|
|
10227
|
+
var CMD_IDENTITY = cmdSet(NAMES);
|
|
10228
|
+
var CMD_STATE = cmdSet(STATE_NAMES);
|
|
10229
|
+
var CMD_HOST = cmdSet(HOST_NAMES);
|
|
10230
|
+
var DECLARES = new Set(["export", "unset", "declare", "typeset", "local", "readonly"]);
|
|
10231
|
+
var OPAQUE = new Set([
|
|
10232
|
+
"watch",
|
|
10233
|
+
"strace",
|
|
10234
|
+
"chroot",
|
|
10235
|
+
"flock",
|
|
10236
|
+
"ssh",
|
|
10237
|
+
"su",
|
|
10238
|
+
"runuser",
|
|
10239
|
+
"script",
|
|
10240
|
+
"parallel"
|
|
10241
|
+
]);
|
|
10242
|
+
var ENV_VALUED = new Set(["u", "C", "S", "a", "P"]);
|
|
10243
|
+
var ENV_FLAGS = new Set(["i", "0", "v"]);
|
|
10244
|
+
var ENV_LONG_VALUED = new Set(["--unset", "--chdir", "--split-string", "--argv0"]);
|
|
10245
|
+
|
|
10089
10246
|
// packages/workit-core/src/hooks/worktree-confine.ts
|
|
10090
10247
|
var CASE_INSENSITIVE2 = process.platform === "darwin" || process.platform === "win32";
|
|
10091
10248
|
var MUTATING_REMOTE = new Set([
|