@brainervirus/workit-pi 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/dist/worker.js CHANGED
@@ -8494,6 +8494,7 @@ var workspaceConfigSchema = object({
8494
8494
  autoApprove: union([boolean2(), array(nonBlank)]).optional(),
8495
8495
  defaultEndpoint: unknown().optional(),
8496
8496
  verification: _enum(["self", "independent"]).optional(),
8497
+ trailers: boolean2().optional(),
8497
8498
  autonomy: object(Object.fromEntries(["push", "pr", "merge", "release", "rerun"].map((kind) => [
8498
8499
  kind,
8499
8500
  union([boolean2(), literal("verified")]).optional()
@@ -8579,6 +8580,70 @@ var OBSERVED_ONLY = new Set([
8579
8580
  "policy.judged",
8580
8581
  ...PR_ROW_TYPES
8581
8582
  ]);
8583
+ // packages/workit-core/src/hooks/raw-git.ts
8584
+ var SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh"]);
8585
+ var PREFIXES = new Set(["sudo", "command", "env", "nohup", "time", "exec", "nice", "&"]);
8586
+ var CD = new Set(["cd", "chdir", "set-location", "sl"]);
8587
+ var PUSHD = new Set(["pushd", "push-location"]);
8588
+ var POPD = new Set(["popd", "pop-location"]);
8589
+ var GIT_VALUE_OPTIONS = new Set([
8590
+ "-c",
8591
+ "--git-dir",
8592
+ "--work-tree",
8593
+ "--namespace",
8594
+ "--exec-path",
8595
+ "--config-env",
8596
+ "--super-prefix"
8597
+ ]);
8598
+ var LAUNCHERS = new Set([
8599
+ "npx",
8600
+ "bunx",
8601
+ "pnpx",
8602
+ "-y",
8603
+ "--yes",
8604
+ "pnpm",
8605
+ "dlx",
8606
+ "exec",
8607
+ "env",
8608
+ "sudo",
8609
+ "command"
8610
+ ]);
8611
+ var PUSH_VALUE_OPTIONS = new Set(["-o", "--push-option", "--receive-pack", "--exec", "--repo"]);
8612
+ var VALUE_OPTIONS = {
8613
+ git: new Set([
8614
+ "-m",
8615
+ "--message",
8616
+ "-F",
8617
+ "--file",
8618
+ "-C",
8619
+ "-c",
8620
+ "--reuse-message",
8621
+ "--reedit-message",
8622
+ "--author",
8623
+ "--date",
8624
+ "--trailer",
8625
+ "-t",
8626
+ "--template",
8627
+ "--cleanup",
8628
+ "--fixup",
8629
+ "--squash",
8630
+ "-o",
8631
+ "--push-option",
8632
+ "--repo",
8633
+ "--receive-pack",
8634
+ "--exec"
8635
+ ]),
8636
+ 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"])),
8637
+ 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"]))
8638
+ };
8639
+
8640
+ // packages/workit-core/src/core/route-intent.ts
8641
+ var SWITCH_CREATE = new Set(["-c", "--create", "-C", "--force-create", "--orphan"]);
8642
+ var CHECKOUT_CREATE = new Set(["-b", "-B", "--orphan"]);
8643
+ var WORKTREE_CREATE = new Set(["-b", "-B"]);
8644
+ 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"]));
8645
+ var BRANCH_RENAME = new Set(["-m", "-M", "--move", "-c", "-C", "--copy"]);
8646
+ var WORKTREE_VALUES = new Set(["--reason"]);
8582
8647
  // packages/workit-core/src/core/policy/judgment.ts
8583
8648
  var LEGACY_KEYS = new Set(["assessment", "facts", "signals", "consequences", "verification"]);
8584
8649
  var YES = new Set(["true", "yes", "y", "1", "on"]);