@brainervirus/workit-pi 8.12.1 → 8.12.3
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 +50 -2
- package/dist/workit.js +1341 -194
- package/package.json +1 -1
package/dist/worker.js
CHANGED
|
@@ -8623,8 +8623,35 @@ var OBSERVED_ONLY = new Set([
|
|
|
8623
8623
|
...PR_ROW_TYPES
|
|
8624
8624
|
]);
|
|
8625
8625
|
// packages/workit-core/src/hooks/raw-git.ts
|
|
8626
|
-
var SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh"]);
|
|
8627
|
-
var
|
|
8626
|
+
var SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh", "ash", "mksh", "yash", "fish"]);
|
|
8627
|
+
var POWERSHELLS = new Set(["pwsh", "powershell"]);
|
|
8628
|
+
var EVALS = new Set(["eval", "iex", "invoke-expression"]);
|
|
8629
|
+
var WRAPPERS = {
|
|
8630
|
+
sudo: { values: "-u -g -h -p -C -D -R -T -r -t -U --user --group --host --prompt --chdir" },
|
|
8631
|
+
doas: { values: "-u -C" },
|
|
8632
|
+
command: { values: "" },
|
|
8633
|
+
builtin: { values: "" },
|
|
8634
|
+
env: { values: "-u -C --unset --chdir" },
|
|
8635
|
+
nohup: { values: "" },
|
|
8636
|
+
setsid: { values: "" },
|
|
8637
|
+
time: { values: "-f -o --format --output" },
|
|
8638
|
+
exec: { values: "-a" },
|
|
8639
|
+
nice: { values: "-n --adjustment" },
|
|
8640
|
+
ionice: { values: "-c -n -p --class --classdata" },
|
|
8641
|
+
stdbuf: { values: "-i -o -e --input --output --error" },
|
|
8642
|
+
chronic: { values: "" },
|
|
8643
|
+
unbuffer: { values: "" },
|
|
8644
|
+
wsl: { values: "-d -u --cd --distribution --user" },
|
|
8645
|
+
timeout: { values: "-s -k --signal --kill-after", operands: 1 },
|
|
8646
|
+
flock: { values: "-w -E --timeout --conflict-exit-code", operands: 1 },
|
|
8647
|
+
coproc: { values: "" },
|
|
8648
|
+
taskset: { values: "", operands: 1 },
|
|
8649
|
+
watch: { values: "-n -d --interval --differences -q --equexit" },
|
|
8650
|
+
"&": { values: "" }
|
|
8651
|
+
};
|
|
8652
|
+
var WRAPPER_VALUES = new Map(Object.entries(WRAPPERS).map(([name, wrapper]) => [name, new Set(wrapper.values.split(" "))]));
|
|
8653
|
+
var KEYWORDS = new Set(["if", "then", "else", "elif", "while", "until", "do", "!", "{"]);
|
|
8654
|
+
var DECLARATIONS = new Set(["export", "local", "declare", "readonly", "typeset"]);
|
|
8628
8655
|
var CD = new Set(["cd", "chdir", "set-location", "sl"]);
|
|
8629
8656
|
var PUSHD = new Set(["pushd", "push-location"]);
|
|
8630
8657
|
var POPD = new Set(["popd", "pop-location"]);
|
|
@@ -8637,6 +8664,17 @@ var GIT_VALUE_OPTIONS = new Set([
|
|
|
8637
8664
|
"--config-env",
|
|
8638
8665
|
"--super-prefix"
|
|
8639
8666
|
]);
|
|
8667
|
+
var GIT_CONFIG_OPTIONS = new Set(["-c", "--config-env", "--git-dir"]);
|
|
8668
|
+
var XARGS_VALUES = new Set(["-n", "-L", "-l", "-P", "-d", "-E", "-e", "-s", "-a", "--arg-file", "--delimiter"].concat([
|
|
8669
|
+
"--max-args",
|
|
8670
|
+
"--max-lines",
|
|
8671
|
+
"--max-procs",
|
|
8672
|
+
"--eof",
|
|
8673
|
+
"--max-chars",
|
|
8674
|
+
"--process-slot-var"
|
|
8675
|
+
]));
|
|
8676
|
+
var PARALLEL_VALUES = new Set(["-j", "--jobs", "-N", "-n", "-S", "--sshlogin", "-P", "--delay"]);
|
|
8677
|
+
var RECENT = new Map;
|
|
8640
8678
|
var LAUNCHERS = new Set([
|
|
8641
8679
|
"npx",
|
|
8642
8680
|
"bunx",
|
|
@@ -8678,14 +8716,24 @@ var VALUE_OPTIONS = {
|
|
|
8678
8716
|
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"])),
|
|
8679
8717
|
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"]))
|
|
8680
8718
|
};
|
|
8719
|
+
var API_VALUES = new Set(["--method", "--header", "--raw-field", "--field", "--jq", "--template", "--input"].concat([
|
|
8720
|
+
"--hostname",
|
|
8721
|
+
"--preview",
|
|
8722
|
+
"--cache",
|
|
8723
|
+
"--output"
|
|
8724
|
+
]));
|
|
8725
|
+
var API_FIELDS = new Set(["-f", "-F", "--raw-field", "--field"]);
|
|
8726
|
+
var GIT_COMMANDS = new Set(("add am annotate apply archive bisect blame branch bugreport bundle cat-file check-attr " + "check-ignore check-mailmap check-ref-format checkout checkout-index cherry cherry-pick " + "citool clean clone column commit commit-graph commit-tree config count-objects credential " + "daemon describe diagnose diff diff-files diff-index diff-tree difftool fast-export " + "fast-import fetch fetch-pack filter-branch fmt-merge-msg for-each-ref for-each-repo " + "format-patch fsck gc get-tar-commit-id grep gui hash-object help hook index-pack init " + "instaweb interpret-trailers lfs log ls-files ls-remote ls-tree mailinfo mailsplit " + "maintenance merge merge-base merge-file merge-index merge-tree mergetool mktag mktree " + "multi-pack-index mv name-rev notes pack-objects pack-refs patch-id prune pull push " + "range-diff read-tree rebase reflog remote repack replace request-pull rerere reset " + "restore rev-list rev-parse revert rm send-email shortlog show show-branch show-ref " + "sparse-checkout stage stash status stripspace submodule subtree switch symbolic-ref tag " + "update-index update-ref var verify-commit verify-pack verify-tag version whatchanged " + "worktree write-tree").split(" "));
|
|
8681
8727
|
|
|
8682
8728
|
// packages/workit-core/src/core/route-intent.ts
|
|
8683
8729
|
var SWITCH_CREATE = new Set(["-c", "--create", "-C", "--force-create", "--orphan"]);
|
|
8684
8730
|
var CHECKOUT_CREATE = new Set(["-b", "-B", "--orphan"]);
|
|
8685
8731
|
var WORKTREE_CREATE = new Set(["-b", "-B"]);
|
|
8732
|
+
var SUBTREE_CREATE = new Set(["-b", "--branch"]);
|
|
8686
8733
|
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"]));
|
|
8687
8734
|
var BRANCH_RENAME = new Set(["-m", "-M", "--move", "-c", "-C", "--copy"]);
|
|
8688
8735
|
var WORKTREE_VALUES = new Set(["--reason"]);
|
|
8736
|
+
var FETCH_VALUES = new Set(["--depth", "--deepen", "--shallow-since", "--shallow-exclude", "--refmap", "-j", "--jobs"].concat(["--upload-pack", "-o", "--server-option", "--negotiation-tip", "--filter"]).concat(["--recurse-submodules-default", "--submodule-prefix", "-s", "--strategy", "-X"]).concat(["--strategy-option"]));
|
|
8689
8737
|
// packages/workit-core/src/core/policy/judgment.ts
|
|
8690
8738
|
var LEGACY_KEYS = new Set(["assessment", "facts", "signals", "consequences", "verification"]);
|
|
8691
8739
|
var YES = new Set(["true", "yes", "y", "1", "on"]);
|