@brainervirus/workit-codex 8.16.0 → 8.17.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workit",
3
- "version": "8.16.0",
3
+ "version": "8.17.0",
4
4
  "description": "Adaptive engineering workflow rails for Codex",
5
5
  "author": {
6
6
  "name": "BrainerVirus"
@@ -18870,6 +18870,7 @@ import fs9 from "node:fs";
18870
18870
  import path9 from "node:path";
18871
18871
  var SCRIPT_CHECKS = ["test", "lint", "typecheck", "check"];
18872
18872
  var CHECKS_FILE = "workit.checks.json";
18873
+ var checksConfigFile = (root) => path9.join(root, CHECKS_FILE);
18873
18874
  var isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
18874
18875
  var SHELL_META = /[|&;<>()$`\\*?[\]{}~!#]/u;
18875
18876
  function splitCommand(command) {
@@ -18982,7 +18983,7 @@ function detectedChecks(root) {
18982
18983
  var GATES = ["testing", "verification"];
18983
18984
  function loadCheckConfig(cwd) {
18984
18985
  const root = checkRoot(cwd);
18985
- const file = path9.join(root, CHECKS_FILE);
18986
+ const file = checksConfigFile(root);
18986
18987
  const none = (error = null) => ({
18987
18988
  source: error ? CHECKS_FILE : "none",
18988
18989
  root,
@@ -19619,6 +19620,7 @@ var workspaceConfigSchema = object({
19619
19620
  autoApprove: union([boolean2(), array(nonBlank)]).optional(),
19620
19621
  defaultEndpoint: unknown().optional(),
19621
19622
  verification: _enum(["self", "independent"]).optional(),
19623
+ delegation: unknown().optional(),
19622
19624
  trailers: boolean2().optional(),
19623
19625
  liveSessionGuard: boolean2().optional(),
19624
19626
  fanout: object({ tierModels: unknown().optional() }).passthrough().optional(),
@@ -22763,6 +22765,7 @@ var LAUNCHERS = new Set([
22763
22765
  "sudo",
22764
22766
  "command"
22765
22767
  ]);
22768
+ var PACKAGE_RUNNERS = new Set(["npx", "bunx", "pnpx"]);
22766
22769
  var PUSH_VALUE_OPTIONS = new Set(["-o", "--push-option", "--receive-pack", "--exec", "--repo"]);
22767
22770
  var VALUE_OPTIONS = {
22768
22771
  git: new Set([
@@ -28611,6 +28614,129 @@ var capabilitiesFor = (descriptor, observed = {}) => descriptor.capabilities.map
28611
28614
  var signals = new Map;
28612
28615
  var cache = new Map;
28613
28616
  var TURN_TTL_MS = 7 * 24 * 60 * 60 * 1000;
28617
+ // packages/workit-core/src/core/heavy.ts
28618
+ var INFO_FLAGS = new Set(["--version", "-v", "-V", "--help", "-h", "help", "version"]);
28619
+ var sub = (...names) => new Set(names);
28620
+ var TOOLS = {
28621
+ jest: "any",
28622
+ vitest: "any",
28623
+ mocha: "any",
28624
+ ava: "any",
28625
+ tap: "any",
28626
+ karma: "any",
28627
+ jasmine: "any",
28628
+ nyc: "any",
28629
+ c8: "any",
28630
+ tsc: "any",
28631
+ "vue-tsc": "any",
28632
+ "svelte-check": "any",
28633
+ eslint: "any",
28634
+ stylelint: "any",
28635
+ tslint: "any",
28636
+ webpack: "any",
28637
+ "webpack-cli": "any",
28638
+ rollup: "any",
28639
+ parcel: "any",
28640
+ tsup: "any",
28641
+ vite: sub("build", "optimize"),
28642
+ next: sub("build", "lint"),
28643
+ nuxt: sub("build", "generate"),
28644
+ nuxi: sub("build", "generate"),
28645
+ astro: sub("build", "check"),
28646
+ ng: sub("build", "b", "test", "t", "e2e", "lint"),
28647
+ "react-scripts": sub("build", "test"),
28648
+ playwright: sub("test", "install"),
28649
+ cypress: sub("run"),
28650
+ wdio: "any",
28651
+ testcafe: "any",
28652
+ turbo: "any",
28653
+ lerna: sub("run", "exec", "bootstrap"),
28654
+ "sonar-scanner": "any",
28655
+ sonarless: sub("scan"),
28656
+ "sonarless-mcp": sub("scan"),
28657
+ go: sub("test", "build", "vet", "install", "generate"),
28658
+ "golangci-lint": sub("run"),
28659
+ gotestsum: "any",
28660
+ staticcheck: "any",
28661
+ cargo: sub("build", "b", "test", "t", "check", "c", "clippy", "bench", "nextest", "doc", "install", "tarpaulin", "llvm-cov"),
28662
+ mvn: "any",
28663
+ mvnw: "any",
28664
+ gradle: "any",
28665
+ gradlew: "any",
28666
+ ant: "any",
28667
+ sbt: "any",
28668
+ bazel: sub("build", "test", "run", "coverage"),
28669
+ bazelisk: sub("build", "test", "run", "coverage"),
28670
+ buck2: sub("build", "test", "run"),
28671
+ dotnet: sub("build", "test", "publish", "restore", "pack", "msbuild"),
28672
+ msbuild: "any",
28673
+ pytest: "any",
28674
+ "py.test": "any",
28675
+ tox: "any",
28676
+ nox: "any",
28677
+ mypy: "any",
28678
+ pyright: "any",
28679
+ pylint: "any",
28680
+ coverage: sub("run"),
28681
+ maturin: sub("build", "develop"),
28682
+ pip: sub("install", "wheel"),
28683
+ pip3: sub("install", "wheel"),
28684
+ rspec: "any",
28685
+ rails: sub("test", "assets:precompile"),
28686
+ phpunit: "any",
28687
+ pest: "any",
28688
+ phpstan: "any",
28689
+ psalm: "any",
28690
+ composer: sub("install", "update", "require", "test"),
28691
+ mix: sub("test", "compile", "deps.get", "dialyzer", "credo"),
28692
+ swift: sub("build", "test"),
28693
+ xcodebuild: "any",
28694
+ flutter: sub("build", "test"),
28695
+ dart: sub("test", "compile"),
28696
+ pod: sub("install"),
28697
+ cmake: sub("--build"),
28698
+ ninja: "any",
28699
+ meson: sub("compile", "test"),
28700
+ ctest: "any",
28701
+ scons: "any",
28702
+ "docker-compose": sub("build"),
28703
+ buildah: sub("bud", "build"),
28704
+ earthly: "any"
28705
+ };
28706
+ var PM_VALUES = new Set([
28707
+ "--prefix",
28708
+ "-w",
28709
+ "--workspace",
28710
+ "-C",
28711
+ "--dir",
28712
+ "--filter",
28713
+ "-F",
28714
+ "--cwd",
28715
+ "-p",
28716
+ "--package",
28717
+ "--cache",
28718
+ "--registry"
28719
+ ]);
28720
+ var NPM_INSTALL = new Set([
28721
+ "ci",
28722
+ "clean-install",
28723
+ "cit",
28724
+ "install-test",
28725
+ "it",
28726
+ "install",
28727
+ "i",
28728
+ "in",
28729
+ "add",
28730
+ "rebuild",
28731
+ "update",
28732
+ "up"
28733
+ ]);
28734
+ var NPM_RUN = new Set(["run", "run-script", "rum", "urn"]);
28735
+ var NPM_TEST = new Set(["test", "t", "tst"]);
28736
+ var EXEC = new Set(["exec", "x", "dlx"]);
28737
+
28738
+ // packages/workit-core/src/core/heavy-words.ts
28739
+ var HEAVY_WORDS = new Set(("npm npx pnpm pnpx yarn bun bunx deno corepack make gmake docker podman nerdctl " + "python python3 py uv poetry pdm pipenv hatch rye bundle rake nx " + "jest vitest mocha ava tap karma jasmine nyc c8 tsc vue-tsc svelte-check eslint stylelint " + "tslint webpack webpack-cli rollup parcel tsup vite next nuxt nuxi astro ng react-scripts " + "playwright cypress wdio testcafe turbo lerna sonar-scanner sonarless sonarless-mcp go " + "golangci-lint gotestsum staticcheck cargo mvn mvnw gradle gradlew ant sbt bazel bazelisk " + "buck2 dotnet msbuild pytest py.test tox nox mypy pyright pylint coverage maturin pip pip3 " + "rspec rails phpunit pest phpstan psalm composer mix swift xcodebuild flutter dart pod cmake " + "ninja meson ctest scons docker-compose buildah earthly").split(" "));
28614
28740
  // packages/workit-core/src/core/live-session.ts
28615
28741
  import { spawnSync as spawnSync15 } from "node:child_process";
28616
28742
  var LIVE_SESSION_TTL_MS = 15 * 60000;
@@ -28624,6 +28750,7 @@ var PIDS = new Map;
28624
28750
  // packages/workit-core/src/hooks/write-gate.ts
28625
28751
  var CASE_INSENSITIVE = process.platform === "darwin" || process.platform === "win32";
28626
28752
  var PREFIXES2 = new Set(["sudo", "command", "env", "nohup", "time", "exec", "xargs"]);
28753
+ var SCRIPT_SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh"]);
28627
28754
  var cache2 = new Map;
28628
28755
  var MUTATING_GIT = new Set([
28629
28756
  "add",
@@ -28724,7 +28851,12 @@ var CODEX_DESCRIPTOR = {
28724
28851
  "compact.pre": { support: "none", native: null },
28725
28852
  stop: { support: "native", native: "Stop" }
28726
28853
  },
28727
- shellPolicy: { deny: "native", channel: "permissionDecision", failClosed: false },
28854
+ shellPolicy: {
28855
+ deny: "native",
28856
+ channel: "permissionDecision",
28857
+ failClosed: false,
28858
+ rewrite: "none"
28859
+ },
28728
28860
  context: {
28729
28861
  sessionStart: "native",
28730
28862
  perTurn: "native",