@brainervirus/workit-pi 8.23.0 → 8.24.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 +104 -1
- package/dist/workit.js +1156 -310
- package/package.json +1 -1
- package/skills/workit-fanout/SKILL.md +1 -1
- package/skills/workit-implement/SKILL.md +5 -5
- package/skills/workit-review/SKILL.md +3 -0
- package/skills/workit-ship/SKILL.md +1 -2
package/dist/worker.js
CHANGED
|
@@ -6776,7 +6776,7 @@ var workspaceConfigSchema = object({
|
|
|
6776
6776
|
}).passthrough().optional(),
|
|
6777
6777
|
autoApprove: union([boolean2(), array(nonBlank)]).optional(),
|
|
6778
6778
|
defaultEndpoint: unknown().optional(),
|
|
6779
|
-
verification: _enum(["self", "independent"]).optional(),
|
|
6779
|
+
verification: _enum(["proportional", "self", "independent"]).optional(),
|
|
6780
6780
|
delegation: unknown().optional(),
|
|
6781
6781
|
trailers: boolean2().optional(),
|
|
6782
6782
|
liveSessionGuard: boolean2().optional(),
|
|
@@ -7534,6 +7534,109 @@ var OBSERVED_ONLY = new Set([
|
|
|
7534
7534
|
"policy.judged",
|
|
7535
7535
|
...PR_ROW_TYPES
|
|
7536
7536
|
]);
|
|
7537
|
+
// packages/workit-core/src/forge/redact.ts
|
|
7538
|
+
var KEY = String.raw`[A-Za-z0-9_.-]*?(?:token|secret|password|passwd|pwd|api[_-]?key|access[_-]?key|account[_-]?key|private[_-]?key|client[_-]?secret|credentials?|authorization|cookie|signature)[A-Za-z0-9_.-]*`;
|
|
7539
|
+
var ASSIGNMENT = new RegExp(String.raw`(?<![A-Za-z0-9])(["']?${KEY}["']?\s*[:=]\s*["']?)((?:bearer|basic|token|digest)\s+)?([^\s"',;&]+)`, "giu");
|
|
7540
|
+
var QUOTED_ASSIGNMENT = new RegExp(String.raw`(?<![A-Za-z0-9])(["']?${KEY}["']?\s*[:=]\s*)(["'])([^"'\n]*[^\s"'][^"'\n]*)\2`, "giu");
|
|
7541
|
+
var ANSI = new RegExp(String.raw`\u001b\[[0-9;?]*[ -/]*[@-~]|\u001b\][^\u0007]*\u0007`, "gu");
|
|
7542
|
+
|
|
7543
|
+
// packages/workit-core/src/git/ops.ts
|
|
7544
|
+
var COMMIT_TIMEOUT_MS = 10 * 60000;
|
|
7545
|
+
|
|
7546
|
+
// packages/workit-core/src/core/policy/substance.ts
|
|
7547
|
+
var SLASH_BLOCK = [["/*", "*/"]];
|
|
7548
|
+
var C_LIKE = { line: ["//"], block: SLASH_BLOCK, quotes: `"'` };
|
|
7549
|
+
var SYNTAXES = Object.fromEntries([
|
|
7550
|
+
...["ts", "mts", "cts", "js", "mjs", "cjs"].map((ext) => [ext, { ...C_LIKE, js: true }]),
|
|
7551
|
+
...["java", "kt", "kts", "scala", "swift", "dart", "groovy"].map((ext) => [
|
|
7552
|
+
ext,
|
|
7553
|
+
{ ...C_LIKE, triple: true }
|
|
7554
|
+
]),
|
|
7555
|
+
["go", { ...C_LIKE, rawBacktick: true }],
|
|
7556
|
+
...["css", "scss", "less"].map((ext) => [
|
|
7557
|
+
ext,
|
|
7558
|
+
{ line: [], block: SLASH_BLOCK, quotes: `"'`, cssUrl: true }
|
|
7559
|
+
]),
|
|
7560
|
+
...["py", "pyi"].map((ext) => [
|
|
7561
|
+
ext,
|
|
7562
|
+
{ line: ["#"], block: [], quotes: `"'`, triple: true, indented: true, fstring: true }
|
|
7563
|
+
]),
|
|
7564
|
+
["toml", { line: ["#"], block: [], quotes: `"`, literal: "'", triple: true }],
|
|
7565
|
+
...["html", "htm", "xml", "svg", "xhtml"].map((ext) => [
|
|
7566
|
+
ext,
|
|
7567
|
+
{ line: [], block: [["<!--", "-->"]], quotes: "", indented: true }
|
|
7568
|
+
])
|
|
7569
|
+
]);
|
|
7570
|
+
var REGEX_KEYWORDS = new Set([
|
|
7571
|
+
"return",
|
|
7572
|
+
"typeof",
|
|
7573
|
+
"instanceof",
|
|
7574
|
+
"case",
|
|
7575
|
+
"do",
|
|
7576
|
+
"else",
|
|
7577
|
+
"in",
|
|
7578
|
+
"of",
|
|
7579
|
+
"new",
|
|
7580
|
+
"delete",
|
|
7581
|
+
"void",
|
|
7582
|
+
"throw",
|
|
7583
|
+
"yield",
|
|
7584
|
+
"await"
|
|
7585
|
+
]);
|
|
7586
|
+
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
7587
|
+
|
|
7588
|
+
// packages/workit-core/src/core/policy/lane.ts
|
|
7589
|
+
var RISK_TOKENS = new Set([
|
|
7590
|
+
"auth",
|
|
7591
|
+
"authn",
|
|
7592
|
+
"authz",
|
|
7593
|
+
"oauth",
|
|
7594
|
+
"security",
|
|
7595
|
+
"permission",
|
|
7596
|
+
"permissions",
|
|
7597
|
+
"secret",
|
|
7598
|
+
"secrets",
|
|
7599
|
+
"crypto",
|
|
7600
|
+
"gate",
|
|
7601
|
+
"gates",
|
|
7602
|
+
"policy",
|
|
7603
|
+
"policies",
|
|
7604
|
+
"hook",
|
|
7605
|
+
"hooks",
|
|
7606
|
+
"husky",
|
|
7607
|
+
"lefthook",
|
|
7608
|
+
"release",
|
|
7609
|
+
"releases",
|
|
7610
|
+
"migration",
|
|
7611
|
+
"migrations",
|
|
7612
|
+
"migrate",
|
|
7613
|
+
"workflows"
|
|
7614
|
+
]);
|
|
7615
|
+
var RISK_FILES = new Set([
|
|
7616
|
+
".gitlab-ci.yml",
|
|
7617
|
+
"Jenkinsfile",
|
|
7618
|
+
"azure-pipelines.yml",
|
|
7619
|
+
".pre-commit-config.yaml",
|
|
7620
|
+
".workit/risk-paths"
|
|
7621
|
+
]);
|
|
7622
|
+
var RISK_NAMES = new Set([".gitattributes"]);
|
|
7623
|
+
var LOCKFILES = new Set([
|
|
7624
|
+
"bun.lock",
|
|
7625
|
+
"bun.lockb",
|
|
7626
|
+
"package-lock.json",
|
|
7627
|
+
"npm-shrinkwrap.json",
|
|
7628
|
+
"yarn.lock",
|
|
7629
|
+
"pnpm-lock.yaml",
|
|
7630
|
+
"Cargo.lock",
|
|
7631
|
+
"go.sum",
|
|
7632
|
+
"poetry.lock",
|
|
7633
|
+
"uv.lock",
|
|
7634
|
+
"Pipfile.lock",
|
|
7635
|
+
"Gemfile.lock",
|
|
7636
|
+
"composer.lock"
|
|
7637
|
+
]);
|
|
7638
|
+
var globCache = new Map;
|
|
7639
|
+
var REGULAR = new Set(["100644", "100755"]);
|
|
7537
7640
|
// packages/workit-core/src/hooks/raw-git.ts
|
|
7538
7641
|
var SHELLS = new Set(["sh", "bash", "zsh", "dash", "ksh", "ash", "mksh", "yash", "fish"]);
|
|
7539
7642
|
var POWERSHELLS = new Set(["pwsh", "powershell"]);
|