@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.
- package/.cursor-plugin/plugin.json +1 -1
- package/dist/cursor-session-start.js +46 -46
- package/dist/mcp-server.js +63 -63
- package/dist/workit-hook.js +47 -47
- package/package.json +3 -3
- package/skills/workit-fanout/SKILL.md +46 -46
- package/skills/workit-fanout/references/brief.md +15 -8
- package/skills/workit-fanout/references/orchestration.md +117 -0
- package/skills/workit-ship/SKILL.md +2 -2
|
@@ -7622,7 +7622,7 @@ var init_zod = __esm(() => {
|
|
|
7622
7622
|
init_external();
|
|
7623
7623
|
});
|
|
7624
7624
|
|
|
7625
|
-
// packages/workit-core/src/core/task-contract.ts
|
|
7625
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/task-contract.ts
|
|
7626
7626
|
import { createHash, randomUUID } from "node:crypto";
|
|
7627
7627
|
function parseOperation(family, input) {
|
|
7628
7628
|
if (typeof input === "object" && input !== null && "schemaVersion" in input && input.schemaVersion !== SCHEMA_VERSION)
|
|
@@ -8460,7 +8460,7 @@ var init_task_contract = __esm(() => {
|
|
|
8460
8460
|
compiledOperationSchemas = Object.fromEntries(OPERATION_FAMILIES.map((family) => [family, compile(operationSchemas[family])]));
|
|
8461
8461
|
});
|
|
8462
8462
|
|
|
8463
|
-
// packages/workit-core/src/git/rev.ts
|
|
8463
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/git/rev.ts
|
|
8464
8464
|
import { spawnSync } from "node:child_process";
|
|
8465
8465
|
import { createHash as createHash2 } from "node:crypto";
|
|
8466
8466
|
import fs from "node:fs";
|
|
@@ -8610,7 +8610,7 @@ var init_rev = __esm(() => {
|
|
|
8610
8610
|
MAX_UNTRACKED_BYTES = 5 * 1024 * 1024;
|
|
8611
8611
|
});
|
|
8612
8612
|
|
|
8613
|
-
// packages/workit-core/src/store/paths.ts
|
|
8613
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/store/paths.ts
|
|
8614
8614
|
import { spawnSync as spawnSync2 } from "node:child_process";
|
|
8615
8615
|
import { createHash as createHash3 } from "node:crypto";
|
|
8616
8616
|
import fs2 from "node:fs";
|
|
@@ -8886,7 +8886,7 @@ var init_paths = __esm(() => {
|
|
|
8886
8886
|
];
|
|
8887
8887
|
});
|
|
8888
8888
|
|
|
8889
|
-
// packages/workit-core/src/ledger.ts
|
|
8889
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/ledger.ts
|
|
8890
8890
|
import { spawnSync as spawnSync3 } from "node:child_process";
|
|
8891
8891
|
import { createHash as createHash4, randomBytes } from "node:crypto";
|
|
8892
8892
|
import fs3 from "node:fs";
|
|
@@ -9232,7 +9232,7 @@ var init_ledger = __esm(() => {
|
|
|
9232
9232
|
OBSERVED_ONLY = new Set(["check", ...PR_ROW_TYPES]);
|
|
9233
9233
|
});
|
|
9234
9234
|
|
|
9235
|
-
// packages/workit-core/src/core/policy/derive.ts
|
|
9235
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/policy/derive.ts
|
|
9236
9236
|
import { existsSync } from "node:fs";
|
|
9237
9237
|
import path4 from "node:path";
|
|
9238
9238
|
function deriveRequirements(judgment, scope, constraints, verification = "self") {
|
|
@@ -9431,7 +9431,7 @@ var init_derive = __esm(() => {
|
|
|
9431
9431
|
};
|
|
9432
9432
|
});
|
|
9433
9433
|
|
|
9434
|
-
// packages/workit-core/src/core/policy-resolver.ts
|
|
9434
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/policy-resolver.ts
|
|
9435
9435
|
function resolvePolicy(input) {
|
|
9436
9436
|
const ids = input.constraints.map((constraint) => constraint.id);
|
|
9437
9437
|
if (new Set(ids).size !== ids.length)
|
|
@@ -9491,7 +9491,7 @@ var init_policy_resolver = __esm(() => {
|
|
|
9491
9491
|
init_derive();
|
|
9492
9492
|
});
|
|
9493
9493
|
|
|
9494
|
-
// packages/workit-core/src/core/operation-input.ts
|
|
9494
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/operation-input.ts
|
|
9495
9495
|
function normalizeOperationInput(family, input, host) {
|
|
9496
9496
|
if (!isObject2(input))
|
|
9497
9497
|
return input;
|
|
@@ -9828,7 +9828,7 @@ var init_operation_input = __esm(() => {
|
|
|
9828
9828
|
]);
|
|
9829
9829
|
});
|
|
9830
9830
|
|
|
9831
|
-
// packages/workit-core/src/core/policy/judgment.ts
|
|
9831
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/policy/judgment.ts
|
|
9832
9832
|
function normalizeJudgment(raw, previous) {
|
|
9833
9833
|
const input = isObject3(raw) ? raw : {};
|
|
9834
9834
|
const legacy = Object.keys(input).some((key) => LEGACY_KEYS.has(key));
|
|
@@ -9953,7 +9953,7 @@ var init_judgment = __esm(() => {
|
|
|
9953
9953
|
};
|
|
9954
9954
|
});
|
|
9955
9955
|
|
|
9956
|
-
// packages/workit-core/src/core/boundary.ts
|
|
9956
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/boundary.ts
|
|
9957
9957
|
var EVENT, errorDetail = (err) => {
|
|
9958
9958
|
if (err instanceof Error) {
|
|
9959
9959
|
return { error_name: err.name, error: err.message };
|
|
@@ -9976,7 +9976,7 @@ var init_boundary = __esm(() => {
|
|
|
9976
9976
|
};
|
|
9977
9977
|
});
|
|
9978
9978
|
|
|
9979
|
-
// packages/workit-core/src/core/config.ts
|
|
9979
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/config.ts
|
|
9980
9980
|
import {
|
|
9981
9981
|
copyFileSync,
|
|
9982
9982
|
cpSync,
|
|
@@ -10138,10 +10138,10 @@ var init_config = __esm(() => {
|
|
|
10138
10138
|
];
|
|
10139
10139
|
});
|
|
10140
10140
|
|
|
10141
|
-
// packages/workit-core/src/core/safe-write.ts
|
|
10141
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/safe-write.ts
|
|
10142
10142
|
var init_safe_write = () => {};
|
|
10143
10143
|
|
|
10144
|
-
// packages/workit-core/src/core/workspaces.ts
|
|
10144
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/workspaces.ts
|
|
10145
10145
|
import { createHash as createHash5 } from "node:crypto";
|
|
10146
10146
|
import { readFileSync as readFileSync2, realpathSync } from "node:fs";
|
|
10147
10147
|
import path6 from "node:path";
|
|
@@ -10529,7 +10529,7 @@ var init_workspaces = __esm(() => {
|
|
|
10529
10529
|
}).passthrough();
|
|
10530
10530
|
});
|
|
10531
10531
|
|
|
10532
|
-
// packages/workit-core/src/autonomy.ts
|
|
10532
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/autonomy.ts
|
|
10533
10533
|
import os3 from "node:os";
|
|
10534
10534
|
import path7 from "node:path";
|
|
10535
10535
|
function endpointOf(entry) {
|
|
@@ -11286,7 +11286,7 @@ var init_file_lock = __esm(() => {
|
|
|
11286
11286
|
init_file_lock_sync();
|
|
11287
11287
|
});
|
|
11288
11288
|
|
|
11289
|
-
// packages/workit-core/src/core/package-root.ts
|
|
11289
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/package-root.ts
|
|
11290
11290
|
import { existsSync as existsSync3 } from "node:fs";
|
|
11291
11291
|
import path10 from "node:path";
|
|
11292
11292
|
import { fileURLToPath } from "node:url";
|
|
@@ -11301,7 +11301,7 @@ var packageRoot = () => {
|
|
|
11301
11301
|
};
|
|
11302
11302
|
var init_package_root = () => {};
|
|
11303
11303
|
|
|
11304
|
-
// packages/workit-core/src/core/store-lock.ts
|
|
11304
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/store-lock.ts
|
|
11305
11305
|
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
11306
11306
|
import fs7 from "node:fs";
|
|
11307
11307
|
import { hostname } from "node:os";
|
|
@@ -11426,7 +11426,7 @@ var init_store_lock = __esm(() => {
|
|
|
11426
11426
|
FOREIGN_LOCK_TTL_MS = 10 * 60000;
|
|
11427
11427
|
});
|
|
11428
11428
|
|
|
11429
|
-
// packages/workit-core/src/store/event-log.ts
|
|
11429
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/store/event-log.ts
|
|
11430
11430
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
11431
11431
|
import fs8 from "node:fs";
|
|
11432
11432
|
import path11 from "node:path";
|
|
@@ -11581,7 +11581,7 @@ var init_event_log = __esm(() => {
|
|
|
11581
11581
|
TRANSIENT_WINDOWS_CODES = new Set(["EPERM", "EACCES", "EBUSY"]);
|
|
11582
11582
|
});
|
|
11583
11583
|
|
|
11584
|
-
// packages/workit-core/src/store/patch.ts
|
|
11584
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/store/patch.ts
|
|
11585
11585
|
function diff(before, after, path = []) {
|
|
11586
11586
|
if (equal(before, after))
|
|
11587
11587
|
return [];
|
|
@@ -11687,7 +11687,7 @@ var isPlainObject2 = (value) => typeof value === "object" && value !== null && !
|
|
|
11687
11687
|
return false;
|
|
11688
11688
|
});
|
|
11689
11689
|
|
|
11690
|
-
// packages/workit-core/src/store/reduce.ts
|
|
11690
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/store/reduce.ts
|
|
11691
11691
|
import { createHash as createHash6 } from "node:crypto";
|
|
11692
11692
|
function reduce(state, event, blobs) {
|
|
11693
11693
|
const data = event.data;
|
|
@@ -11813,7 +11813,7 @@ var init_reduce = __esm(() => {
|
|
|
11813
11813
|
]);
|
|
11814
11814
|
});
|
|
11815
11815
|
|
|
11816
|
-
// packages/workit-core/src/store/notes.ts
|
|
11816
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/store/notes.ts
|
|
11817
11817
|
var SLOT, reportMigration = (report) => {
|
|
11818
11818
|
try {
|
|
11819
11819
|
const reporter = globalThis[SLOT];
|
|
@@ -11825,7 +11825,7 @@ var init_notes = __esm(() => {
|
|
|
11825
11825
|
SLOT = Symbol.for("workit.migrationReporter");
|
|
11826
11826
|
});
|
|
11827
11827
|
|
|
11828
|
-
// packages/workit-core/src/core/task-store.ts
|
|
11828
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/task-store.ts
|
|
11829
11829
|
import { createHash as createHash7, randomUUID as randomUUID3 } from "node:crypto";
|
|
11830
11830
|
import * as fs9 from "node:fs";
|
|
11831
11831
|
import path12 from "node:path";
|
|
@@ -13452,13 +13452,13 @@ var init_task_store = __esm(() => {
|
|
|
13452
13452
|
heldInProcess = new Map;
|
|
13453
13453
|
});
|
|
13454
13454
|
|
|
13455
|
-
// packages/workit-core/src/core/workers.ts
|
|
13455
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/workers.ts
|
|
13456
13456
|
var UNCERTAIN_WORKER_STATES, isUncertainWorker = (state) => UNCERTAIN_WORKER_STATES.includes(state), workerBlocksTransition = (transition, state) => transition === "pause" ? false : isUncertainWorker(state);
|
|
13457
13457
|
var init_workers = __esm(() => {
|
|
13458
13458
|
UNCERTAIN_WORKER_STATES = ["dispatching", "running", "cancelling", "unknown"];
|
|
13459
13459
|
});
|
|
13460
13460
|
|
|
13461
|
-
// packages/workit-core/src/check-config.ts
|
|
13461
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/check-config.ts
|
|
13462
13462
|
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
13463
13463
|
import fs10 from "node:fs";
|
|
13464
13464
|
import path13 from "node:path";
|
|
@@ -13659,7 +13659,7 @@ var init_check_config = __esm(() => {
|
|
|
13659
13659
|
GATES = ["testing", "verification"];
|
|
13660
13660
|
});
|
|
13661
13661
|
|
|
13662
|
-
// packages/workit-core/src/core/task-evaluation.ts
|
|
13662
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/task-evaluation.ts
|
|
13663
13663
|
import { createHash as createHash8 } from "node:crypto";
|
|
13664
13664
|
import * as fs11 from "node:fs";
|
|
13665
13665
|
import { spawnSync as spawnSync6 } from "node:child_process";
|
|
@@ -14307,7 +14307,7 @@ var init_task_evaluation = __esm(() => {
|
|
|
14307
14307
|
scopeCovers2 = scopeCovers;
|
|
14308
14308
|
});
|
|
14309
14309
|
|
|
14310
|
-
// packages/workit-core/src/core/methods.ts
|
|
14310
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/methods.ts
|
|
14311
14311
|
function selectMethods(policy, capabilities) {
|
|
14312
14312
|
return Object.entries(METHODS).flatMap(([id, definition]) => {
|
|
14313
14313
|
const requirements = policy.requirements.filter((requirement) => methodMatches(definition, requirement));
|
|
@@ -14415,7 +14415,7 @@ var init_methods = __esm(() => {
|
|
|
14415
14415
|
};
|
|
14416
14416
|
});
|
|
14417
14417
|
|
|
14418
|
-
// packages/workit-core/src/core/task-context.ts
|
|
14418
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/task-context.ts
|
|
14419
14419
|
function reconcileResume(view, observations = []) {
|
|
14420
14420
|
if (observations.length > 0)
|
|
14421
14421
|
return failure2("permission_denied", "worker observations require native host verification");
|
|
@@ -14528,7 +14528,7 @@ var init_task_context = __esm(() => {
|
|
|
14528
14528
|
privateKey = /-----BEGIN [^-]*PRIVATE KEY-----[\s\S]*?-----END [^-]*PRIVATE KEY-----/gi;
|
|
14529
14529
|
});
|
|
14530
14530
|
|
|
14531
|
-
// packages/workit-core/src/core/task-engine.ts
|
|
14531
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/task-engine.ts
|
|
14532
14532
|
import { realpathSync as realpathSync4 } from "node:fs";
|
|
14533
14533
|
|
|
14534
14534
|
class WorkitCore {
|
|
@@ -16110,10 +16110,10 @@ var init_task_engine = __esm(() => {
|
|
|
16110
16110
|
retryPause = new Int32Array(new SharedArrayBuffer(4));
|
|
16111
16111
|
});
|
|
16112
16112
|
|
|
16113
|
-
// packages/workit-core/src/hooks/protocol.ts
|
|
16113
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/protocol.ts
|
|
16114
16114
|
var init_protocol = () => {};
|
|
16115
16115
|
|
|
16116
|
-
// packages/workit-core/src/hooks/descriptor.ts
|
|
16116
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/descriptor.ts
|
|
16117
16117
|
var support = (descriptor, axis) => {
|
|
16118
16118
|
if (axis.startsWith("event:"))
|
|
16119
16119
|
return descriptor.events[axis.slice("event:".length)].support;
|
|
@@ -16136,7 +16136,7 @@ var support = (descriptor, axis) => {
|
|
|
16136
16136
|
};
|
|
16137
16137
|
});
|
|
16138
16138
|
|
|
16139
|
-
// packages/workit-core/src/hooks/context.ts
|
|
16139
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/context.ts
|
|
16140
16140
|
import path15 from "node:path";
|
|
16141
16141
|
function sessionCompactContext(store, session, context, selection = "session-bound") {
|
|
16142
16142
|
const listed = store.listTaskIndex();
|
|
@@ -16277,13 +16277,13 @@ var init_context = __esm(() => {
|
|
|
16277
16277
|
cache = new Map;
|
|
16278
16278
|
});
|
|
16279
16279
|
|
|
16280
|
-
// packages/workit-core/src/core/commit-flavors.ts
|
|
16280
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/commit-flavors.ts
|
|
16281
16281
|
var init_commit_flavors = () => {};
|
|
16282
16282
|
|
|
16283
|
-
// packages/workit-core/src/core/git.ts
|
|
16283
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/git.ts
|
|
16284
16284
|
var init_git = () => {};
|
|
16285
16285
|
|
|
16286
|
-
// packages/workit-core/src/core/release-tracks.ts
|
|
16286
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/release-tracks.ts
|
|
16287
16287
|
function readReleaseTracks(raw) {
|
|
16288
16288
|
const out = { tracks: [], issues: [], error: null, protectedBranches: [] };
|
|
16289
16289
|
if (raw === undefined || raw === null)
|
|
@@ -16422,14 +16422,14 @@ var init_release_tracks = __esm(() => {
|
|
|
16422
16422
|
memo3 = new Map;
|
|
16423
16423
|
});
|
|
16424
16424
|
|
|
16425
|
-
// packages/workit-core/src/core/vcs-config.ts
|
|
16425
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/vcs-config.ts
|
|
16426
16426
|
var init_vcs_config = __esm(() => {
|
|
16427
16427
|
init_config();
|
|
16428
16428
|
init_workspaces();
|
|
16429
16429
|
init_release_tracks();
|
|
16430
16430
|
});
|
|
16431
16431
|
|
|
16432
|
-
// packages/workit-core/src/core/branch.ts
|
|
16432
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/branch.ts
|
|
16433
16433
|
import { createHash as createHash9 } from "node:crypto";
|
|
16434
16434
|
function effectiveWorkspacePolicy(workspaceRoot, kind, profileName) {
|
|
16435
16435
|
const selected = resolveRuntimeWorkspacePolicy(workspaceRoot, kind, profileName?.trim() || process.env.WORKFLOW_PROFILE?.trim() || undefined);
|
|
@@ -16528,7 +16528,7 @@ var init_branch = __esm(() => {
|
|
|
16528
16528
|
init_release_tracks();
|
|
16529
16529
|
});
|
|
16530
16530
|
|
|
16531
|
-
// packages/workit-core/src/core/route-intent.ts
|
|
16531
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/core/route-intent.ts
|
|
16532
16532
|
var shellBranchTarget = (command) => {
|
|
16533
16533
|
if (!command.trim() || /[\r\n;&|<>`'"$()\\*?{}~!#]/u.test(command) || command.includes("[") || command.includes("]"))
|
|
16534
16534
|
return null;
|
|
@@ -16546,7 +16546,7 @@ var init_route_intent = __esm(() => {
|
|
|
16546
16546
|
init_branch();
|
|
16547
16547
|
});
|
|
16548
16548
|
|
|
16549
|
-
// packages/workit-core/src/hooks/policy.ts
|
|
16549
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/policy.ts
|
|
16550
16550
|
var shellPolicy = (cwd, command) => {
|
|
16551
16551
|
const policy = shellBranchPolicyViolation(cwd, command);
|
|
16552
16552
|
return policy && !policy.ok ? { kind: "deny", reason: `branch_policy_denied: ${policy.error}`, unblock: null } : { kind: "none" };
|
|
@@ -16555,7 +16555,7 @@ var init_policy = __esm(() => {
|
|
|
16555
16555
|
init_route_intent();
|
|
16556
16556
|
});
|
|
16557
16557
|
|
|
16558
|
-
// packages/workit-core/src/hooks/write-gate.ts
|
|
16558
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/write-gate.ts
|
|
16559
16559
|
import { realpathSync as realpathSync5 } from "node:fs";
|
|
16560
16560
|
import path16 from "node:path";
|
|
16561
16561
|
function writeGate(cwd, paths) {
|
|
@@ -16816,7 +16816,7 @@ var init_write_gate = __esm(() => {
|
|
|
16816
16816
|
cache2 = new Map;
|
|
16817
16817
|
});
|
|
16818
16818
|
|
|
16819
|
-
// packages/workit-core/src/hooks/hosts/fields.ts
|
|
16819
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/hosts/fields.ts
|
|
16820
16820
|
import { existsSync as existsSync6, realpathSync as realpathSync6, statSync as statSync2 } from "node:fs";
|
|
16821
16821
|
import path17 from "node:path";
|
|
16822
16822
|
var isRecord4 = (value) => value !== null && typeof value === "object" && !Array.isArray(value), nonEmpty2 = (value) => typeof value === "string" && value.trim() !== "", optionalText = (value) => typeof value === "string" ? value : null, existingDirectory = (value) => {
|
|
@@ -16880,7 +16880,7 @@ var init_fields = __esm(() => {
|
|
|
16880
16880
|
PATH_KEYS = ["file_path", "filePath", "notebook_path", "path", "target_file", "file"];
|
|
16881
16881
|
});
|
|
16882
16882
|
|
|
16883
|
-
// packages/workit-core/src/hooks/handle.ts
|
|
16883
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/handle.ts
|
|
16884
16884
|
function handleHook(input, deps) {
|
|
16885
16885
|
const { descriptor } = deps;
|
|
16886
16886
|
const event = input.event;
|
|
@@ -16977,7 +16977,7 @@ var init_handle = __esm(() => {
|
|
|
16977
16977
|
CLAUDE_JUDGES = new Set(["workit:verifier", "workit:reviewer"]);
|
|
16978
16978
|
});
|
|
16979
16979
|
|
|
16980
|
-
// packages/workit-core/src/hooks/hosts/claude-code.ts
|
|
16980
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/hosts/claude-code.ts
|
|
16981
16981
|
var CLAUDE_CODE_DESCRIPTOR, EVENTS, SOURCES, SHELL_TOOLS, toolCommand = (value) => isRecord4(value.tool_input) ? commandText(value.tool_input.command) : null, eventOf = (name, value) => {
|
|
16982
16982
|
const toolUseId = optionalText(value.tool_use_id);
|
|
16983
16983
|
switch (name) {
|
|
@@ -17221,7 +17221,7 @@ var init_claude_code = __esm(() => {
|
|
|
17221
17221
|
};
|
|
17222
17222
|
});
|
|
17223
17223
|
|
|
17224
|
-
// packages/workit-core/src/hooks/hosts/codex.ts
|
|
17224
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/hosts/codex.ts
|
|
17225
17225
|
function detectCodexSurface(env) {
|
|
17226
17226
|
return env.CODEX_INTERNAL_ORIGINATOR_OVERRIDE === "Codex Desktop" || Boolean(env.CODEX_ELECTRON_RESOURCES_PATH) ? "codex_desktop" : "codex_cli";
|
|
17227
17227
|
}
|
|
@@ -17448,7 +17448,7 @@ var init_codex = __esm(() => {
|
|
|
17448
17448
|
};
|
|
17449
17449
|
});
|
|
17450
17450
|
|
|
17451
|
-
// packages/workit-core/src/hooks/hosts/cursor.ts
|
|
17451
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/hosts/cursor.ts
|
|
17452
17452
|
import path18 from "node:path";
|
|
17453
17453
|
var undocumented2, none, CURSOR_DESCRIPTOR, EVENTS3, parseCursorHookInput = (value) => {
|
|
17454
17454
|
if (!isRecord4(value) || !Object.hasOwn(EVENTS3, String(value.hook_event_name)))
|
|
@@ -17689,7 +17689,7 @@ var init_cursor = __esm(() => {
|
|
|
17689
17689
|
};
|
|
17690
17690
|
});
|
|
17691
17691
|
|
|
17692
|
-
// packages/workit-core/src/hooks/run.ts
|
|
17692
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/run.ts
|
|
17693
17693
|
async function runHookProcess(host, stdin, stdout, stderr = process.stderr, env = process.env) {
|
|
17694
17694
|
const adapter = typeof host === "string" ? HOOK_ADAPTERS[host] : host;
|
|
17695
17695
|
let text = "";
|
|
@@ -17724,13 +17724,13 @@ var init_run = __esm(async () => {
|
|
|
17724
17724
|
if (false) {}
|
|
17725
17725
|
});
|
|
17726
17726
|
|
|
17727
|
-
// packages/workit-core/src/hooks/hosts/opencode.ts
|
|
17727
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/hosts/opencode.ts
|
|
17728
17728
|
var init_opencode = () => {};
|
|
17729
17729
|
|
|
17730
|
-
// packages/workit-core/src/hooks/hosts/pi.ts
|
|
17730
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/hosts/pi.ts
|
|
17731
17731
|
var init_pi = () => {};
|
|
17732
17732
|
|
|
17733
|
-
// packages/workit-core/src/hooks/index.ts
|
|
17733
|
+
// packages/workit-cursor/node_modules/@brainervirus/workit-core/src/hooks/index.ts
|
|
17734
17734
|
var init_hooks = __esm(async () => {
|
|
17735
17735
|
init_context();
|
|
17736
17736
|
init_policy();
|