@brainervirus/workit-cursor 7.6.0 → 8.0.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.
@@ -6620,11 +6620,11 @@ var require_dist = __commonJS(function(exports, module) {
6620
6620
  exports.default = formatsPlugin;
6621
6621
  });
6622
6622
 
6623
- // packages/workit-mcp/src/index.ts
6623
+ // packages/workit-cursor/node_modules/@brainervirus/workit-mcp/src/index.ts
6624
6624
  import { fileURLToPath as fileURLToPath3 } from "node:url";
6625
6625
  import path21 from "node:path";
6626
6626
 
6627
- // packages/workit-mcp/src/server.ts
6627
+ // packages/workit-cursor/node_modules/@brainervirus/workit-mcp/src/server.ts
6628
6628
  import { existsSync as existsSync8, readFileSync as readFileSync6, realpathSync as realpathSync6 } from "node:fs";
6629
6629
  import path20 from "node:path";
6630
6630
 
@@ -16572,15 +16572,15 @@ class StdioServerTransport {
16572
16572
  }
16573
16573
  }
16574
16574
 
16575
- // packages/workit-mcp/src/server.ts
16575
+ // packages/workit-cursor/node_modules/@brainervirus/workit-mcp/src/server.ts
16576
16576
  import { fileURLToPath as fileURLToPath2 } from "node:url";
16577
16577
 
16578
- // packages/workit-core/src/core.ts
16578
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core.ts
16579
16579
  import { spawnSync as spawnSync12 } from "node:child_process";
16580
16580
  import { existsSync as existsSync7, realpathSync as realpathSync5 } from "node:fs";
16581
16581
  import path19 from "node:path";
16582
16582
 
16583
- // packages/workit-core/src/core/task-contract.ts
16583
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/task-contract.ts
16584
16584
  import { createHash, randomUUID } from "node:crypto";
16585
16585
  var SCHEMA_VERSION = 1;
16586
16586
  var POLICY_VERSION = "1.0.0";
@@ -17436,7 +17436,7 @@ function requirementId(input) {
17436
17436
  }
17437
17437
  });
17438
17438
  }
17439
- // packages/workit-core/src/core/operation-input.ts
17439
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/operation-input.ts
17440
17440
  var str = (d, values) => ({
17441
17441
  type: "string",
17442
17442
  ...values ? { enum: values } : {},
@@ -17832,7 +17832,7 @@ function parseAdvertisedOperation(family, input, host) {
17832
17832
  }))
17833
17833
  });
17834
17834
  }
17835
- // packages/workit-core/src/core/task-store.ts
17835
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/task-store.ts
17836
17836
  import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
17837
17837
  import * as fs7 from "node:fs";
17838
17838
  import path6 from "node:path";
@@ -18438,7 +18438,7 @@ function acquireFileLockSync(targetPath, options) {
18438
18438
  }
18439
18439
  }
18440
18440
  }
18441
- // packages/workit-core/src/core/package-root.ts
18441
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/package-root.ts
18442
18442
  import { existsSync } from "node:fs";
18443
18443
  import path3 from "node:path";
18444
18444
  import { fileURLToPath } from "node:url";
@@ -18457,12 +18457,12 @@ var assetRoot = () => {
18457
18457
  return existsSync(assets) ? assets : root;
18458
18458
  };
18459
18459
 
18460
- // packages/workit-core/src/core/store-lock.ts
18460
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/store-lock.ts
18461
18461
  import { spawnSync as spawnSync2 } from "node:child_process";
18462
18462
  import fs5 from "node:fs";
18463
18463
  import { hostname } from "node:os";
18464
18464
 
18465
- // packages/workit-core/src/store/paths.ts
18465
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/store/paths.ts
18466
18466
  import { spawnSync } from "node:child_process";
18467
18467
  import { createHash as createHash2 } from "node:crypto";
18468
18468
  import fs4 from "node:fs";
@@ -18742,7 +18742,7 @@ var checkoutSlug = (root) => {
18742
18742
  return `${base}-${shortHash(canonical)}`;
18743
18743
  };
18744
18744
 
18745
- // packages/workit-core/src/core/store-lock.ts
18745
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/store-lock.ts
18746
18746
  var metadataLockSchema = object2({
18747
18747
  pid: number2().int().nonnegative().safe(),
18748
18748
  processStart: string2().nullable(),
@@ -18873,7 +18873,7 @@ var clearAbandonedReclaimGuard = (lockPath, nowMs = Date.now()) => {
18873
18873
  }
18874
18874
  };
18875
18875
 
18876
- // packages/workit-core/src/store/event-log.ts
18876
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/store/event-log.ts
18877
18877
  import { randomUUID as randomUUID2 } from "node:crypto";
18878
18878
  import fs6 from "node:fs";
18879
18879
  import path5 from "node:path";
@@ -19033,7 +19033,7 @@ var retryTransient = (run) => {
19033
19033
  };
19034
19034
  var renameWithRetry = (from, to) => retryTransient(() => fs6.renameSync(from, to));
19035
19035
 
19036
- // packages/workit-core/src/store/patch.ts
19036
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/store/patch.ts
19037
19037
  var isPlainObject3 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
19038
19038
  var equal = (left, right) => {
19039
19039
  if (left === right)
@@ -19143,7 +19143,7 @@ var isPatch = (value) => Array.isArray(value) && value.every((op) => {
19143
19143
  return false;
19144
19144
  });
19145
19145
 
19146
- // packages/workit-core/src/store/reduce.ts
19146
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/store/reduce.ts
19147
19147
  import { createHash as createHash3 } from "node:crypto";
19148
19148
  var OPENING_TYPES = new Set([
19149
19149
  "task.opened",
@@ -19274,7 +19274,7 @@ function eventType(before, after) {
19274
19274
  return "task.updated";
19275
19275
  }
19276
19276
 
19277
- // packages/workit-core/src/store/notes.ts
19277
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/store/notes.ts
19278
19278
  var SLOT = Symbol.for("workit.migrationReporter");
19279
19279
  var reportMigration = (report) => {
19280
19280
  try {
@@ -19285,7 +19285,7 @@ var reportMigration = (report) => {
19285
19285
  };
19286
19286
  var migrationReporterInstalled = () => typeof globalThis[SLOT] === "function";
19287
19287
 
19288
- // packages/workit-core/src/core/task-store.ts
19288
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/task-store.ts
19289
19289
  var MIGRATION_PENDING = "workit migration pending";
19290
19290
  var STORE_FORMAT = 3;
19291
19291
  var STORE_MIN_RUNTIME = "3.0.0";
@@ -20921,18 +20921,18 @@ class TaskStore {
20921
20921
  return failure2(recovery ? "recovery_required" : "storage_error", `lock operation failed: ${String(error)}`, { path: lockPath });
20922
20922
  }
20923
20923
  }
20924
- // packages/workit-core/src/core/workers.ts
20924
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/workers.ts
20925
20925
  var UNCERTAIN_WORKER_STATES = ["dispatching", "running", "cancelling", "unknown"];
20926
20926
  var isUncertainWorker = (state) => UNCERTAIN_WORKER_STATES.includes(state);
20927
20927
  var workerBlocksTransition = (transition, state) => transition === "pause" ? false : isUncertainWorker(state);
20928
20928
 
20929
- // packages/workit-core/src/core/task-evaluation.ts
20929
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/task-evaluation.ts
20930
20930
  import { createHash as createHash7 } from "node:crypto";
20931
20931
  import * as fs11 from "node:fs";
20932
20932
  import { spawnSync as spawnSync6 } from "node:child_process";
20933
20933
  import path11 from "node:path";
20934
20934
 
20935
- // packages/workit-core/src/check-config.ts
20935
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/check-config.ts
20936
20936
  import { spawnSync as spawnSync3 } from "node:child_process";
20937
20937
  import fs8 from "node:fs";
20938
20938
  import path7 from "node:path";
@@ -21137,7 +21137,7 @@ function checkCommand(args, version, onPath = workitAvailable()) {
21137
21137
  return onPath ? `workit check ${args}` : `npx -y @brainervirus/workit-cli@${version} check ${args}`;
21138
21138
  }
21139
21139
 
21140
- // packages/workit-core/src/git/rev.ts
21140
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/git/rev.ts
21141
21141
  import { spawnSync as spawnSync4 } from "node:child_process";
21142
21142
  import { createHash as createHash5 } from "node:crypto";
21143
21143
  import fs9 from "node:fs";
@@ -21318,11 +21318,11 @@ function pushRemoteName(cwd, branch) {
21318
21318
  return remotes.length === 1 ? remotes[0] : null;
21319
21319
  }
21320
21320
 
21321
- // packages/workit-core/src/core/policy/derive.ts
21321
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/policy/derive.ts
21322
21322
  import { existsSync as existsSync3 } from "node:fs";
21323
21323
  import path10 from "node:path";
21324
21324
 
21325
- // packages/workit-core/src/ledger.ts
21325
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/ledger.ts
21326
21326
  import { spawnSync as spawnSync5 } from "node:child_process";
21327
21327
  import { createHash as createHash6, randomBytes as randomBytes2 } from "node:crypto";
21328
21328
  import fs10 from "node:fs";
@@ -21673,7 +21673,7 @@ function checkVerdicts(cwd, branch, rows) {
21673
21673
  }
21674
21674
  var OBSERVED_ONLY = new Set(["check", ...PR_ROW_TYPES]);
21675
21675
 
21676
- // packages/workit-core/src/core/policy/derive.ts
21676
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/policy/derive.ts
21677
21677
  var RULES = {
21678
21678
  test: "check:test",
21679
21679
  self: "verdict:self",
@@ -21861,7 +21861,7 @@ function derivedRuleStatus(task, requirement, root, ledger) {
21861
21861
  }
21862
21862
  }
21863
21863
 
21864
- // packages/workit-core/src/core/task-evaluation.ts
21864
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/task-evaluation.ts
21865
21865
  var digestBytes = (value) => createHash7("sha256").update(value).digest("hex");
21866
21866
  var inside = (root, candidate) => candidate === root || candidate.startsWith(`${root}${path11.sep}`);
21867
21867
  var relative = (root, candidate) => path11.relative(root, candidate).split(path11.sep).join("/") || ".";
@@ -22527,7 +22527,7 @@ function evaluateClosure(requestedOutcome, view) {
22527
22527
  });
22528
22528
  }
22529
22529
 
22530
- // packages/workit-core/src/core/methods.ts
22530
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/methods.ts
22531
22531
  var METHODS = {
22532
22532
  "workit-shape": { dimensions: ["challenge", "decisions", "artifacts", "continuity"] },
22533
22533
  "workit-bdd": { dimensions: ["testing"] },
@@ -22573,7 +22573,7 @@ function selectMethods(policy, capabilities) {
22573
22573
  });
22574
22574
  }
22575
22575
 
22576
- // packages/workit-core/src/core/task-context.ts
22576
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/task-context.ts
22577
22577
  function reconcileResume(view, observations = []) {
22578
22578
  if (observations.length > 0)
22579
22579
  return failure2("permission_denied", "worker observations require native host verification");
@@ -22687,7 +22687,7 @@ var exportDigest = (bundle) => sha256({
22687
22687
  sourceWorkspaceId: bundle.sourceWorkspaceId,
22688
22688
  task: bundle.task
22689
22689
  });
22690
- // packages/workit-core/src/core/git.ts
22690
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/git.ts
22691
22691
  import { execFileSync } from "node:child_process";
22692
22692
  var run = (cwd, args) => {
22693
22693
  try {
@@ -22755,7 +22755,7 @@ var gitContext = (workspaceRoot, paths = []) => {
22755
22755
  };
22756
22756
  };
22757
22757
 
22758
- // packages/workit-core/src/core/config.ts
22758
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/config.ts
22759
22759
  import {
22760
22760
  copyFileSync as copyFileSync2,
22761
22761
  cpSync as cpSync2,
@@ -22768,7 +22768,7 @@ import {
22768
22768
  import os2 from "node:os";
22769
22769
  import path12 from "node:path";
22770
22770
 
22771
- // packages/workit-core/src/core/boundary.ts
22771
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/boundary.ts
22772
22772
  import { statSync as statSync2 } from "node:fs";
22773
22773
  var EVENT = {
22774
22774
  initialization: "initialization",
@@ -22804,7 +22804,7 @@ var changedSourcesSinceLoad = (marker) => {
22804
22804
  return changed;
22805
22805
  };
22806
22806
 
22807
- // packages/workit-core/src/core/config.ts
22807
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/config.ts
22808
22808
  var diagnosticLogger;
22809
22809
  var PRESETS = {
22810
22810
  gitflow: {
@@ -22957,7 +22957,7 @@ var COMMIT_PRESETS = [
22957
22957
  "auto"
22958
22958
  ];
22959
22959
 
22960
- // packages/workit-core/src/core/workspaces.ts
22960
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/workspaces.ts
22961
22961
  import { createHash as createHash8 } from "node:crypto";
22962
22962
  import { readFileSync as readFileSync4, realpathSync as realpathSync3 } from "node:fs";
22963
22963
  import path13 from "node:path";
@@ -23366,12 +23366,12 @@ function workspaceDefaultTarget(cwd, globalDefault) {
23366
23366
  return String(ws?.vcs?.defaultTargetBranch ?? (hasWorkspacePolicy ? policyDefault : globalDefault ?? policyDefault) ?? "develop");
23367
23367
  }
23368
23368
 
23369
- // packages/workit-core/src/core/vcs-config.ts
23369
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/vcs-config.ts
23370
23370
  import fs12 from "node:fs";
23371
23371
  import path14 from "node:path";
23372
23372
  import { spawnSync as spawnSync8 } from "node:child_process";
23373
23373
 
23374
- // packages/workit-core/src/core/release-tracks.ts
23374
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/release-tracks.ts
23375
23375
  import { createHash as createHash9 } from "node:crypto";
23376
23376
  import { spawnSync as spawnSync7 } from "node:child_process";
23377
23377
  var KNOWN_FIELDS = new Set([
@@ -23756,7 +23756,7 @@ function resolveTrackFor(cwd, options) {
23756
23756
  return resolution;
23757
23757
  }
23758
23758
 
23759
- // packages/workit-core/src/core/vcs-config.ts
23759
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/vcs-config.ts
23760
23760
  var workspacesPath = () => path14.join(configDir(), "workspaces.json");
23761
23761
  var vcsCwd = (cwd) => cwd ?? process.env.WORKFLOW_WORKSPACE_ROOT ?? process.cwd();
23762
23762
  var remoteProvider = (cwd) => {
@@ -24037,10 +24037,10 @@ function mergedPrStyle(limit = 6, cwd) {
24037
24037
  examples
24038
24038
  };
24039
24039
  }
24040
- // packages/workit-core/src/core/task-engine.ts
24040
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/task-engine.ts
24041
24041
  import { realpathSync as realpathSync4 } from "node:fs";
24042
24042
 
24043
- // packages/workit-core/src/core/policy-resolver.ts
24043
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/policy-resolver.ts
24044
24044
  function resolvePolicy(input) {
24045
24045
  const ids = input.constraints.map((constraint) => constraint.id);
24046
24046
  if (new Set(ids).size !== ids.length)
@@ -24096,7 +24096,7 @@ function diffPolicy(previous, next, reason, now) {
24096
24096
  return parsed.data;
24097
24097
  }
24098
24098
 
24099
- // packages/workit-core/src/core/policy/judgment.ts
24099
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/policy/judgment.ts
24100
24100
  var isObject6 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
24101
24101
  var squash = (key) => key.toLowerCase().replace(/[_-]/g, "");
24102
24102
  var ALIASES = {
@@ -24220,7 +24220,7 @@ function normalizeJudgment(raw, previous) {
24220
24220
  return success(null, null, { judgment: parsed.data, ignored, legacy });
24221
24221
  }
24222
24222
 
24223
- // packages/workit-core/src/autonomy.ts
24223
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/autonomy.ts
24224
24224
  import os3 from "node:os";
24225
24225
  import path15 from "node:path";
24226
24226
  var accountHome = () => {
@@ -24357,7 +24357,7 @@ function resolveAutonomy(cwd) {
24357
24357
  var suggested = (kind) => kind === "merge" ? "verified" : "true";
24358
24358
  var grantHint = (workspace, kind) => `ask the user to run, in their own terminal: workit grant set ${workspace ?? "<workspace>"} ${kind}=${suggested(kind)}`;
24359
24359
 
24360
- // packages/workit-core/src/core/task-engine.ts
24360
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/task-engine.ts
24361
24361
  var workspaceVerification = (root) => {
24362
24362
  try {
24363
24363
  return resolveAutonomy(root).verification;
@@ -25942,7 +25942,7 @@ class WorkitCore {
25942
25942
  return this.summary(changed.data.task);
25943
25943
  }
25944
25944
  }
25945
- // packages/workit-core/src/core/repo-context.ts
25945
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/repo-context.ts
25946
25946
  import { spawnSync as spawnSync9 } from "node:child_process";
25947
25947
  import { existsSync as existsSync6, readFileSync as readFileSync5, readdirSync as readdirSync4 } from "node:fs";
25948
25948
  import path16 from "node:path";
@@ -26412,20 +26412,20 @@ function releaseNotesContext(root, rangeOrTag) {
26412
26412
  return { stdout, stderr: "", exitCode: 0, cwd };
26413
26413
  }
26414
26414
 
26415
- // packages/workit-core/src/core/tracker-issues.ts
26415
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/tracker-issues.ts
26416
26416
  import { spawnSync as spawnSync11 } from "node:child_process";
26417
26417
 
26418
- // packages/workit-core/src/core/pr-create.ts
26418
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/pr-create.ts
26419
26419
  import fs13 from "node:fs";
26420
26420
  import path17 from "node:path";
26421
26421
  import { spawnSync as spawnSync10 } from "node:child_process";
26422
- // packages/workit-core/src/forge/pr-body.ts
26422
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/forge/pr-body.ts
26423
26423
  function parseGhIssue(value) {
26424
26424
  const m = /issues\/(\d+)/.exec(value);
26425
26425
  return m ? m[1] : String(value).trim().replace(/^#/, "");
26426
26426
  }
26427
26427
 
26428
- // packages/workit-core/src/core/pr-create.ts
26428
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/pr-create.ts
26429
26429
  function whichOnPath(tool) {
26430
26430
  const names = process.platform === "win32" ? [tool, `${tool}.exe`, `${tool}.cmd`] : [tool];
26431
26431
  for (const dir of (process.env.PATH ?? "").split(path17.delimiter)) {
@@ -26453,7 +26453,7 @@ var pushRemote = (cwd) => {
26453
26453
  return urls.length === 1 ? urls[0] : null;
26454
26454
  };
26455
26455
 
26456
- // packages/workit-core/src/core/tracker-issues.ts
26456
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/tracker-issues.ts
26457
26457
  var repoPathFromRemote = (remote) => {
26458
26458
  let rest = (remote || "").trim().replace(/\/+$/, "");
26459
26459
  if (!rest)
@@ -26551,19 +26551,19 @@ var fetchGitLabIssueBody = async (ref, root, deps = {}) => {
26551
26551
  return tryCliTriple(deps.cli ?? defaultCli("glab", hostingCliAvailable("gitlab")), "glab", ["issue", "view", id, "-R", repoArg, "-F", "json"], root, id, ["iid"], ["description"]);
26552
26552
  };
26553
26553
 
26554
- // packages/workit-core/src/core/youtrack.ts
26554
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/youtrack.ts
26555
26555
  import fs14 from "node:fs";
26556
26556
  import path18 from "node:path";
26557
26557
 
26558
- // packages/workit-core/src/core/templates.ts
26558
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/templates.ts
26559
26559
  var repoRoot2 = assetRoot();
26560
26560
 
26561
- // packages/workit-core/src/core/scripts.ts
26561
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/scripts.ts
26562
26562
  var PLUGIN_ROOT = packageRoot();
26563
26563
  var ASSET_ROOT = assetRoot();
26564
26564
  var resolveWorkspaceRoot = (explicit) => explicit || process.cwd();
26565
26565
 
26566
- // packages/workit-core/src/core/youtrack.ts
26566
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/youtrack.ts
26567
26567
  var ISSUE_RE = /^[A-Z]+-\d+$/;
26568
26568
  var TOKEN_PLACEHOLDER = "YOUR_TOKEN_HERE";
26569
26569
  var youTrackConfigPath = () => process.env.WORKFLOW_YOUTRACK_CONFIG ?? path18.join(configDir(), "youtrack.json");
@@ -26854,7 +26854,7 @@ var fetchYouTrackIssueBody = async (issue, creds = youTrackToken, request = youT
26854
26854
  }
26855
26855
  };
26856
26856
 
26857
- // packages/workit-core/src/core/context-read.ts
26857
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/context-read.ts
26858
26858
  var contextReadSchema = object2({
26859
26859
  kind: _enum([
26860
26860
  "git",
@@ -26949,7 +26949,7 @@ var readExternalContext = async (root, payload) => {
26949
26949
  }
26950
26950
  }
26951
26951
  };
26952
- // packages/workit-core/src/core.ts
26952
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core.ts
26953
26953
  var revision2 = /^[A-Za-z0-9@][A-Za-z0-9@._/~^{}-]*$/;
26954
26954
  function gitRevisionParts(value) {
26955
26955
  if (!value || value.startsWith("-") || /[\s\\'"`$;|&<>]/.test(value)) {
@@ -27005,7 +27005,7 @@ function run2(root, executable, args, env = {}) {
27005
27005
  };
27006
27006
  }
27007
27007
 
27008
- // packages/workit-core/src/core/logger.ts
27008
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/logger.ts
27009
27009
  import os4 from "node:os";
27010
27010
  var REDACTED = "[REDACTED]";
27011
27011
  var SECRET_VALUE = /\b(?:Bearer|Basic|Digest|Token)\s+\S+/gi;
@@ -27062,7 +27062,7 @@ var applyPatterns = (value) => {
27062
27062
  };
27063
27063
  var redactSecrets = (value) => applyPatterns(value);
27064
27064
 
27065
- // packages/workit-mcp/src/server.ts
27065
+ // packages/workit-cursor/node_modules/@brainervirus/workit-mcp/src/server.ts
27066
27066
  class McpCapabilityUnavailableError extends Error {
27067
27067
  capability;
27068
27068
  constructor(capability) {
@@ -27358,7 +27358,7 @@ async function runStdioServer(host, contextProvider = defaultContextProvider(hos
27358
27358
  return server;
27359
27359
  }
27360
27360
 
27361
- // packages/workit-mcp/src/index.ts
27361
+ // packages/workit-cursor/node_modules/@brainervirus/workit-mcp/src/index.ts
27362
27362
  var main = async () => {
27363
27363
  const args = process.argv.slice(2);
27364
27364
  const hostIndex = args.indexOf("--host");
@@ -27375,7 +27375,7 @@ var main = async () => {
27375
27375
  var entryPath = process.argv[1] ? path21.resolve(process.argv[1]) : "";
27376
27376
  if (entryPath === path21.resolve(fileURLToPath3(import.meta.url)))
27377
27377
  await main();
27378
- // packages/workit-core/src/hooks/descriptor.ts
27378
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/descriptor.ts
27379
27379
  var support = (descriptor, axis) => {
27380
27380
  if (axis.startsWith("event:"))
27381
27381
  return descriptor.events[axis.slice("event:".length)].support;
@@ -27399,14 +27399,14 @@ var capabilitiesFor = (descriptor, observed = {}) => descriptor.capabilities.map
27399
27399
  refs: rule.refs.map((handle) => ({ kind: "host", host: descriptor.host, handle }))
27400
27400
  };
27401
27401
  });
27402
- // packages/workit-core/src/hooks/context.ts
27402
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/context.ts
27403
27403
  var signals = new Map;
27404
27404
  var cache = new Map;
27405
- // packages/workit-core/src/hooks/write-gate.ts
27405
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/write-gate.ts
27406
27406
  var CASE_INSENSITIVE = process.platform === "darwin" || process.platform === "win32";
27407
27407
  var PREFIXES = new Set(["sudo", "command", "env", "nohup", "time", "exec", "xargs"]);
27408
27408
  var cache2 = new Map;
27409
- // packages/workit-core/src/hooks/hosts/fields.ts
27409
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/hosts/fields.ts
27410
27410
  var SHELLS = new Set(["sh", "bash", "zsh", "dash", "pwsh", "powershell", "cmd"]);
27411
27411
  var WRITE_TOOLS = new Set([
27412
27412
  "write",
@@ -27427,19 +27427,19 @@ var WRITE_TOOLS = new Set([
27427
27427
  "editfile",
27428
27428
  "writefile"
27429
27429
  ]);
27430
- // packages/workit-core/src/hooks/handle.ts
27430
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/handle.ts
27431
27431
  var offered = new Set;
27432
27432
  var CLAUDE_JUDGES = new Set(["workit:verifier", "workit:reviewer"]);
27433
- // packages/workit-core/src/hooks/hosts/claude-code.ts
27433
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/hosts/claude-code.ts
27434
27434
  var SOURCES = new Set(["startup", "resume", "clear", "compact", "fork"]);
27435
27435
  var SHELL_TOOLS = new Set(["Bash", "PowerShell"]);
27436
27436
  var CONTEXT_EVENTS = new Set(["SessionStart", "UserPromptSubmit", "SubagentStart"]);
27437
27437
 
27438
- // packages/workit-core/src/hooks/hosts/codex.ts
27438
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/hosts/codex.ts
27439
27439
  var SHELL_TOOLS2 = new Set(["bash", "unified-exec"]);
27440
27440
  var SOURCES2 = new Set(["startup", "resume", "clear", "compact"]);
27441
27441
 
27442
- // packages/workit-core/src/hooks/hosts/cursor.ts
27442
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/hosts/cursor.ts
27443
27443
  var undocumented = { support: "undocumented", native: null };
27444
27444
  var none = { support: "none", native: null };
27445
27445
  var CURSOR_DESCRIPTOR = {
@@ -27544,7 +27544,7 @@ var CURSOR_DESCRIPTOR = {
27544
27544
  };
27545
27545
  var BLOCKING = new Set(["preToolUse", "beforeShellExecution", "subagentStart"]);
27546
27546
 
27547
- // packages/workit-core/src/hooks/run.ts
27547
+ // packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/run.ts
27548
27548
  if (false) {}
27549
27549
  // packages/workit-cursor/hooks/workit-hook.ts
27550
27550
  var cursorCapabilities = (availability = {}) => capabilitiesFor(CURSOR_DESCRIPTOR, {