@brainervirus/workit-cli 8.28.0 → 8.28.1

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -8412,11 +8412,15 @@ var withReleaseTracks = (workspaceRoot, policy) => {
8412
8412
  correction,
8413
8413
  error: `commit_style: commit subject ${JSON.stringify(attempted)} violates ${source} ${policy.preset} policy; ${correction}`
8414
8414
  };
8415
+ }, rethrowRuntimeBug = (error) => {
8416
+ if (error instanceof TypeError || error instanceof ReferenceError)
8417
+ throw error;
8415
8418
  }, validateBranchNameFor = (workspaceRoot, name) => {
8416
8419
  try {
8417
8420
  const resolved = branchPolicySnapshotFor(workspaceRoot);
8418
8421
  return validateBranchNamePolicy(name, resolved.namePolicy, resolved.source);
8419
8422
  } catch (error) {
8423
+ rethrowRuntimeBug(error);
8420
8424
  const correction = "repair or select a valid workspace policy before creating a branch";
8421
8425
  return {
8422
8426
  ok: false,
@@ -8434,6 +8438,7 @@ var withReleaseTracks = (workspaceRoot, policy) => {
8434
8438
  const resolved = commitPolicySnapshotFor(workspaceRoot);
8435
8439
  return validateCommitMessagePolicy(message, resolved.policy, resolved.source);
8436
8440
  } catch (error) {
8441
+ rethrowRuntimeBug(error);
8437
8442
  const correction = "repair or select a valid workspace policy before committing";
8438
8443
  return {
8439
8444
  ok: false,
@@ -9240,7 +9245,7 @@ var package_default;
9240
9245
  var init_package = __esm(() => {
9241
9246
  package_default = {
9242
9247
  name: "@brainervirus/workit-cli",
9243
- version: "8.28.0",
9248
+ version: "8.28.1",
9244
9249
  private: false,
9245
9250
  description: "Workit CLI — setup wizard, doctor, and task control for agentic coding workflows",
9246
9251
  keywords: [
@@ -9278,13 +9283,13 @@ var init_package = __esm(() => {
9278
9283
  },
9279
9284
  dependencies: {
9280
9285
  "@babel/parser": "7.29.9",
9281
- "@brainervirus/workit-cursor": "^8.28.0",
9286
+ "@brainervirus/workit-cursor": "^8.28.1",
9282
9287
  "@inkjs/ui": "2.0.0",
9283
9288
  ink: "7.1.1",
9284
9289
  react: "19.2.8"
9285
9290
  },
9286
9291
  devDependencies: {
9287
- "@brainervirus/workit-core": "^8.28.0"
9292
+ "@brainervirus/workit-core": "^8.28.1"
9288
9293
  },
9289
9294
  engines: {
9290
9295
  node: ">=24"
@@ -16358,7 +16363,7 @@ var str2 = (d, values) => ({
16358
16363
  description: typeof description === "string" ? description : "",
16359
16364
  paths: ["."],
16360
16365
  exclusions: []
16361
- }), LISTS, ENVELOPE;
16366
+ }), LISTS, ENVELOPE, NOT_FLAT;
16362
16367
  var init_operation_input = __esm(() => {
16363
16368
  init_task_contract();
16364
16369
  scopeFields = {
@@ -16480,6 +16485,7 @@ var init_operation_input = __esm(() => {
16480
16485
  "expectedWorkspaceRevision",
16481
16486
  "judgment"
16482
16487
  ]);
16488
+ NOT_FLAT = new Set(["schemaVersion", "action", "workspaceId"]);
16483
16489
  });
16484
16490
 
16485
16491
  // packages/workit-core/src/core/policy/judgment.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-cli",
3
- "version": "8.28.0",
3
+ "version": "8.28.1",
4
4
  "private": false,
5
5
  "description": "Workit CLI — setup wizard, doctor, and task control for agentic coding workflows",
6
6
  "keywords": [
@@ -38,13 +38,13 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@babel/parser": "7.29.9",
41
- "@brainervirus/workit-cursor": "^8.28.0",
41
+ "@brainervirus/workit-cursor": "^8.28.1",
42
42
  "@inkjs/ui": "2.0.0",
43
43
  "ink": "7.1.1",
44
44
  "react": "19.2.8"
45
45
  },
46
46
  "devDependencies": {
47
- "@brainervirus/workit-core": "^8.28.0"
47
+ "@brainervirus/workit-core": "^8.28.1"
48
48
  },
49
49
  "engines": {
50
50
  "node": ">=24"