@brainervirus/workit-pi 8.23.0 → 8.25.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 +100 -1
- package/dist/workit.js +1411 -306
- package/package.json +1 -1
- package/skills/workit-fanout/SKILL.md +1 -1
- package/skills/workit-fanout/references/brief.md +4 -4
- package/skills/workit-implement/SKILL.md +5 -5
- package/skills/workit-review/SKILL.md +5 -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(),
|
|
@@ -7167,6 +7167,104 @@ import { createHash as createHash3, randomBytes } from "node:crypto";
|
|
|
7167
7167
|
import fs3 from "node:fs";
|
|
7168
7168
|
import path5 from "node:path";
|
|
7169
7169
|
|
|
7170
|
+
// packages/workit-core/src/core/policy/substance.ts
|
|
7171
|
+
var SLASH_BLOCK = [["/*", "*/"]];
|
|
7172
|
+
var C_LIKE = { line: ["//"], block: SLASH_BLOCK, quotes: `"'` };
|
|
7173
|
+
var SYNTAXES = Object.fromEntries([
|
|
7174
|
+
...["ts", "mts", "cts", "js", "mjs", "cjs"].map((ext) => [ext, { ...C_LIKE, js: true }]),
|
|
7175
|
+
...["java", "kt", "kts", "scala", "swift", "dart", "groovy"].map((ext) => [
|
|
7176
|
+
ext,
|
|
7177
|
+
{ ...C_LIKE, triple: true }
|
|
7178
|
+
]),
|
|
7179
|
+
["go", { ...C_LIKE, rawBacktick: true }],
|
|
7180
|
+
...["css", "scss", "less"].map((ext) => [
|
|
7181
|
+
ext,
|
|
7182
|
+
{ line: [], block: SLASH_BLOCK, quotes: `"'`, cssUrl: true }
|
|
7183
|
+
]),
|
|
7184
|
+
...["py", "pyi"].map((ext) => [
|
|
7185
|
+
ext,
|
|
7186
|
+
{ line: ["#"], block: [], quotes: `"'`, triple: true, indented: true, fstring: true }
|
|
7187
|
+
]),
|
|
7188
|
+
["toml", { line: ["#"], block: [], quotes: `"`, literal: "'", triple: true }],
|
|
7189
|
+
...["html", "htm", "xml", "svg", "xhtml"].map((ext) => [
|
|
7190
|
+
ext,
|
|
7191
|
+
{ line: [], block: [["<!--", "-->"]], quotes: "", indented: true }
|
|
7192
|
+
])
|
|
7193
|
+
]);
|
|
7194
|
+
var REGEX_KEYWORDS = new Set([
|
|
7195
|
+
"return",
|
|
7196
|
+
"typeof",
|
|
7197
|
+
"instanceof",
|
|
7198
|
+
"case",
|
|
7199
|
+
"do",
|
|
7200
|
+
"else",
|
|
7201
|
+
"in",
|
|
7202
|
+
"of",
|
|
7203
|
+
"new",
|
|
7204
|
+
"delete",
|
|
7205
|
+
"void",
|
|
7206
|
+
"throw",
|
|
7207
|
+
"yield",
|
|
7208
|
+
"await"
|
|
7209
|
+
]);
|
|
7210
|
+
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
7211
|
+
|
|
7212
|
+
// packages/workit-core/src/core/policy/lane.ts
|
|
7213
|
+
var RISK_TOKENS = new Set([
|
|
7214
|
+
"auth",
|
|
7215
|
+
"authn",
|
|
7216
|
+
"authz",
|
|
7217
|
+
"oauth",
|
|
7218
|
+
"security",
|
|
7219
|
+
"permission",
|
|
7220
|
+
"permissions",
|
|
7221
|
+
"secret",
|
|
7222
|
+
"secrets",
|
|
7223
|
+
"crypto",
|
|
7224
|
+
"gate",
|
|
7225
|
+
"gates",
|
|
7226
|
+
"policy",
|
|
7227
|
+
"policies",
|
|
7228
|
+
"hook",
|
|
7229
|
+
"hooks",
|
|
7230
|
+
"husky",
|
|
7231
|
+
"lefthook",
|
|
7232
|
+
"release",
|
|
7233
|
+
"releases",
|
|
7234
|
+
"migration",
|
|
7235
|
+
"migrations",
|
|
7236
|
+
"migrate",
|
|
7237
|
+
"workflows"
|
|
7238
|
+
]);
|
|
7239
|
+
var RISK_FILES = new Set([
|
|
7240
|
+
".gitlab-ci.yml",
|
|
7241
|
+
"Jenkinsfile",
|
|
7242
|
+
"azure-pipelines.yml",
|
|
7243
|
+
".pre-commit-config.yaml",
|
|
7244
|
+
".workit/risk-paths"
|
|
7245
|
+
]);
|
|
7246
|
+
var RISK_NAMES = new Set([".gitattributes"]);
|
|
7247
|
+
var LOCKFILES = new Set([
|
|
7248
|
+
"bun.lock",
|
|
7249
|
+
"bun.lockb",
|
|
7250
|
+
"package-lock.json",
|
|
7251
|
+
"npm-shrinkwrap.json",
|
|
7252
|
+
"yarn.lock",
|
|
7253
|
+
"pnpm-lock.yaml",
|
|
7254
|
+
"Cargo.lock",
|
|
7255
|
+
"go.sum",
|
|
7256
|
+
"poetry.lock",
|
|
7257
|
+
"uv.lock",
|
|
7258
|
+
"Pipfile.lock",
|
|
7259
|
+
"Gemfile.lock",
|
|
7260
|
+
"composer.lock"
|
|
7261
|
+
]);
|
|
7262
|
+
var globCache = new Map;
|
|
7263
|
+
var REGULAR = new Set(["100644", "100755"]);
|
|
7264
|
+
|
|
7265
|
+
// packages/workit-core/src/core/policy/carry.ts
|
|
7266
|
+
var TEST_ONLY_KINDS = new Set(["doc", "cosmetic", "generated", "test"]);
|
|
7267
|
+
|
|
7170
7268
|
// packages/workit-core/src/hooks/standing-signal.ts
|
|
7171
7269
|
import { createHash as createHash2 } from "node:crypto";
|
|
7172
7270
|
import fs2 from "node:fs";
|
|
@@ -7506,6 +7604,7 @@ var SHELL_VOUCHED_HOSTS = new Set([
|
|
|
7506
7604
|
"codex_cli",
|
|
7507
7605
|
"codex_desktop"
|
|
7508
7606
|
]);
|
|
7607
|
+
var restackExact = new WeakMap;
|
|
7509
7608
|
var fromLead = (row, leads) => leads === null || row.actor.session !== null && leads.includes(row.actor.session);
|
|
7510
7609
|
function activeStanding(rows, fanout, leads = null) {
|
|
7511
7610
|
const active = [];
|