@brainervirus/workit-cursor 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.
@@ -24728,8 +24728,35 @@ var gitContext = (workspaceRoot, paths = []) => {
24728
24728
  };
24729
24729
 
24730
24730
  // packages/workit-core/src/hooks/raw-git.ts
24731
- var SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh"]);
24732
- var PREFIXES2 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "nice", "&"]);
24731
+ var SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh", "ash", "mksh", "yash", "fish"]);
24732
+ var POWERSHELLS = new Set(["pwsh", "powershell"]);
24733
+ var EVALS = new Set(["eval", "iex", "invoke-expression"]);
24734
+ var WRAPPERS = {
24735
+ sudo: { values: "-u -g -h -p -C -D -R -T -r -t -U --user --group --host --prompt --chdir" },
24736
+ doas: { values: "-u -C" },
24737
+ command: { values: "" },
24738
+ builtin: { values: "" },
24739
+ env: { values: "-u -C --unset --chdir" },
24740
+ nohup: { values: "" },
24741
+ setsid: { values: "" },
24742
+ time: { values: "-f -o --format --output" },
24743
+ exec: { values: "-a" },
24744
+ nice: { values: "-n --adjustment" },
24745
+ ionice: { values: "-c -n -p --class --classdata" },
24746
+ stdbuf: { values: "-i -o -e --input --output --error" },
24747
+ chronic: { values: "" },
24748
+ unbuffer: { values: "" },
24749
+ wsl: { values: "-d -u --cd --distribution --user" },
24750
+ timeout: { values: "-s -k --signal --kill-after", operands: 1 },
24751
+ flock: { values: "-w -E --timeout --conflict-exit-code", operands: 1 },
24752
+ coproc: { values: "" },
24753
+ taskset: { values: "", operands: 1 },
24754
+ watch: { values: "-n -d --interval --differences -q --equexit" },
24755
+ "&": { values: "" }
24756
+ };
24757
+ var WRAPPER_VALUES = new Map(Object.entries(WRAPPERS).map(([name, wrapper]) => [name, new Set(wrapper.values.split(" "))]));
24758
+ var KEYWORDS = new Set(["if", "then", "else", "elif", "while", "until", "do", "!", "{"]);
24759
+ var DECLARATIONS = new Set(["export", "local", "declare", "readonly", "typeset"]);
24733
24760
  var CD = new Set(["cd", "chdir", "set-location", "sl"]);
24734
24761
  var PUSHD = new Set(["pushd", "push-location"]);
24735
24762
  var POPD = new Set(["popd", "pop-location"]);
@@ -24742,6 +24769,17 @@ var GIT_VALUE_OPTIONS = new Set([
24742
24769
  "--config-env",
24743
24770
  "--super-prefix"
24744
24771
  ]);
24772
+ var GIT_CONFIG_OPTIONS = new Set(["-c", "--config-env", "--git-dir"]);
24773
+ var XARGS_VALUES = new Set(["-n", "-L", "-l", "-P", "-d", "-E", "-e", "-s", "-a", "--arg-file", "--delimiter"].concat([
24774
+ "--max-args",
24775
+ "--max-lines",
24776
+ "--max-procs",
24777
+ "--eof",
24778
+ "--max-chars",
24779
+ "--process-slot-var"
24780
+ ]));
24781
+ var PARALLEL_VALUES = new Set(["-j", "--jobs", "-N", "-n", "-S", "--sshlogin", "-P", "--delay"]);
24782
+ var RECENT = new Map;
24745
24783
  var LAUNCHERS = new Set([
24746
24784
  "npx",
24747
24785
  "bunx",
@@ -24783,14 +24821,24 @@ var VALUE_OPTIONS = {
24783
24821
  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"])),
24784
24822
  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"]))
24785
24823
  };
24824
+ var API_VALUES = new Set(["--method", "--header", "--raw-field", "--field", "--jq", "--template", "--input"].concat([
24825
+ "--hostname",
24826
+ "--preview",
24827
+ "--cache",
24828
+ "--output"
24829
+ ]));
24830
+ var API_FIELDS = new Set(["-f", "-F", "--raw-field", "--field"]);
24831
+ 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(" "));
24786
24832
 
24787
24833
  // packages/workit-core/src/core/route-intent.ts
24788
24834
  var SWITCH_CREATE = new Set(["-c", "--create", "-C", "--force-create", "--orphan"]);
24789
24835
  var CHECKOUT_CREATE = new Set(["-b", "-B", "--orphan"]);
24790
24836
  var WORKTREE_CREATE = new Set(["-b", "-B"]);
24837
+ var SUBTREE_CREATE = new Set(["-b", "--branch"]);
24791
24838
  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"]));
24792
24839
  var BRANCH_RENAME = new Set(["-m", "-M", "--move", "-c", "-C", "--copy"]);
24793
24840
  var WORKTREE_VALUES = new Set(["--reason"]);
24841
+ 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"]));
24794
24842
  // packages/workit-core/src/core/task-engine.ts
24795
24843
  import { realpathSync as realpathSync4 } from "node:fs";
24796
24844
 
@@ -28193,7 +28241,7 @@ var cache = new Map;
28193
28241
  var TURN_TTL_MS = 7 * 24 * 60 * 60 * 1000;
28194
28242
  // packages/workit-core/src/hooks/write-gate.ts
28195
28243
  var CASE_INSENSITIVE = process.platform === "darwin" || process.platform === "win32";
28196
- var PREFIXES3 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "xargs"]);
28244
+ var PREFIXES2 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "xargs"]);
28197
28245
  var cache2 = new Map;
28198
28246
  // packages/workit-core/src/core/skill-manifests.ts
28199
28247
  if (false) {}
@@ -28273,7 +28321,7 @@ var CURSOR_DESCRIPTOR = {
28273
28321
  "compact.pre": { support: "partial", native: "preCompact" },
28274
28322
  stop: { support: "native", native: "stop" }
28275
28323
  },
28276
- shellPolicy: { deny: "native", channel: "exit2+json", failClosed: true },
28324
+ shellPolicy: { deny: "native", channel: "exit2+json", failClosed: false },
28277
28325
  context: {
28278
28326
  sessionStart: "native",
28279
28327
  perTurn: "none",