@brainervirus/workit-codex 2.0.2 → 2.1.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workit",
3
- "version": "2.0.2",
3
+ "version": "2.1.0",
4
4
  "description": "Adaptive engineering workflow rails for Codex",
5
5
  "author": {
6
6
  "name": "BrainerVirus"
@@ -17087,13 +17087,6 @@ var workspaceConfigSchema = object({
17087
17087
  profiles: record(nonBlank, workspaceProfileSchema).optional(),
17088
17088
  releaseTracks: record(nonBlank, releaseTrackSchema).optional()
17089
17089
  }).passthrough().superRefine((workspace, context) => {
17090
- if (workspace.youtrack && workspace.vcs?.provider !== "gitlab") {
17091
- context.addIssue({
17092
- code: "custom",
17093
- path: ["youtrack"],
17094
- message: `YouTrack issue linking requires the gitlab provider, got ${workspace.vcs?.provider ?? "unset"}`
17095
- });
17096
- }
17097
17090
  if (workspace.issues && workspace.vcs?.provider !== "github") {
17098
17091
  context.addIssue({
17099
17092
  code: "custom",
@@ -17285,13 +17278,10 @@ var selectWorkspaceMatch = (matches, cwd, workspaceName) => {
17285
17278
  }
17286
17279
  return mostSpecific[0];
17287
17280
  };
17288
- var resolveWorkspaceFrom = (cwd, dir, workspaceName) => {
17289
- const result = readWorkspacesResult(dir);
17290
- if (result.status === "malformed" || result.status === "invalid")
17291
- throw new Error(result.error);
17281
+ var resolveWorkspaceFromEntries = (cwd, entries, workspaceName) => {
17292
17282
  const targets = [cwd, realpathOf(cwd)].map((p) => p.replaceAll("\\", "/"));
17293
17283
  const matches = [];
17294
- for (const ws of result.entries) {
17284
+ for (const ws of entries) {
17295
17285
  const glob = ws.glob.replaceAll("\\", "/");
17296
17286
  const canonical = canonicalGlob(glob);
17297
17287
  let matched = false;
@@ -17306,6 +17296,12 @@ var resolveWorkspaceFrom = (cwd, dir, workspaceName) => {
17306
17296
  }
17307
17297
  return selectWorkspaceMatch(matches, cwd, workspaceName) ?? null;
17308
17298
  };
17299
+ var resolveWorkspaceFrom = (cwd, dir, workspaceName) => {
17300
+ const result = readWorkspacesResult(dir);
17301
+ if (result.status === "malformed" || result.status === "invalid")
17302
+ throw new Error(result.error);
17303
+ return resolveWorkspaceFromEntries(cwd, result.entries, workspaceName);
17304
+ };
17309
17305
  var runtimeWorkspacePolicySchema = (kind) => {
17310
17306
  const key = kind === "branch" ? "branchPolicy" : kind === "commit" ? "commitPolicy" : "vcs";
17311
17307
  const policySchema = kind === "branch" ? workspaceBranchPolicySchema : kind === "commit" ? workspaceCommitPolicySchema : object({
@@ -17581,8 +17577,8 @@ function vcsConfig(mode, cwd) {
17581
17577
  const hasWorkspacePolicy = typeof wp.preset === "string" && Object.hasOwn(PRESETS, wp.preset);
17582
17578
  const policyDefault = resolveBranchPolicyFor(root).defaultTargetBranch;
17583
17579
  const defaultTarget = String(wsVcs.defaultTargetBranch ?? (hasWorkspacePolicy ? policyDefault : cfg.defaultTargetBranch ?? policyDefault) ?? "develop");
17584
- const linkIssues = provider === "gitlab" && typeof wsYt.link_issues === "boolean" ? wsYt.link_issues : null;
17585
- const youtrackBaseUrl = provider === "gitlab" && typeof wsYt.baseUrl === "string" ? wsYt.baseUrl : null;
17580
+ const linkIssues = typeof wsYt.link_issues === "boolean" ? wsYt.link_issues : null;
17581
+ const youtrackBaseUrl = typeof wsYt.baseUrl === "string" ? wsYt.baseUrl : null;
17586
17582
  let issuesProvider = null;
17587
17583
  let linkOnPr = null;
17588
17584
  if (provider === "github" && typeof wsIssues.provider === "string" && wsIssues.provider.toLowerCase() === "github") {
@@ -10124,13 +10124,6 @@ var workspaceConfigSchema = object({
10124
10124
  profiles: record(nonBlank, workspaceProfileSchema).optional(),
10125
10125
  releaseTracks: record(nonBlank, releaseTrackSchema).optional()
10126
10126
  }).passthrough().superRefine((workspace, context) => {
10127
- if (workspace.youtrack && workspace.vcs?.provider !== "gitlab") {
10128
- context.addIssue({
10129
- code: "custom",
10130
- path: ["youtrack"],
10131
- message: `YouTrack issue linking requires the gitlab provider, got ${workspace.vcs?.provider ?? "unset"}`
10132
- });
10133
- }
10134
10127
  if (workspace.issues && workspace.vcs?.provider !== "github") {
10135
10128
  context.addIssue({
10136
10129
  code: "custom",
@@ -10322,13 +10315,10 @@ var selectWorkspaceMatch = (matches, cwd, workspaceName) => {
10322
10315
  }
10323
10316
  return mostSpecific[0];
10324
10317
  };
10325
- var resolveWorkspaceFrom = (cwd, dir, workspaceName) => {
10326
- const result = readWorkspacesResult(dir);
10327
- if (result.status === "malformed" || result.status === "invalid")
10328
- throw new Error(result.error);
10318
+ var resolveWorkspaceFromEntries = (cwd, entries, workspaceName) => {
10329
10319
  const targets = [cwd, realpathOf(cwd)].map((p) => p.replaceAll("\\", "/"));
10330
10320
  const matches = [];
10331
- for (const ws of result.entries) {
10321
+ for (const ws of entries) {
10332
10322
  const glob = ws.glob.replaceAll("\\", "/");
10333
10323
  const canonical = canonicalGlob(glob);
10334
10324
  let matched = false;
@@ -10343,6 +10333,12 @@ var resolveWorkspaceFrom = (cwd, dir, workspaceName) => {
10343
10333
  }
10344
10334
  return selectWorkspaceMatch(matches, cwd, workspaceName) ?? null;
10345
10335
  };
10336
+ var resolveWorkspaceFrom = (cwd, dir, workspaceName) => {
10337
+ const result = readWorkspacesResult(dir);
10338
+ if (result.status === "malformed" || result.status === "invalid")
10339
+ throw new Error(result.error);
10340
+ return resolveWorkspaceFromEntries(cwd, result.entries, workspaceName);
10341
+ };
10346
10342
  var runtimeWorkspacePolicySchema = (kind) => {
10347
10343
  const key = kind === "branch" ? "branchPolicy" : kind === "commit" ? "commitPolicy" : "vcs";
10348
10344
  const policySchema = kind === "branch" ? workspaceBranchPolicySchema : kind === "commit" ? workspaceCommitPolicySchema : object({
@@ -10480,8 +10476,8 @@ function vcsConfig(mode, cwd) {
10480
10476
  const hasWorkspacePolicy = typeof wp.preset === "string" && Object.hasOwn(PRESETS, wp.preset);
10481
10477
  const policyDefault = resolveBranchPolicyFor(root).defaultTargetBranch;
10482
10478
  const defaultTarget = String(wsVcs.defaultTargetBranch ?? (hasWorkspacePolicy ? policyDefault : cfg.defaultTargetBranch ?? policyDefault) ?? "develop");
10483
- const linkIssues = provider === "gitlab" && typeof wsYt.link_issues === "boolean" ? wsYt.link_issues : null;
10484
- const youtrackBaseUrl = provider === "gitlab" && typeof wsYt.baseUrl === "string" ? wsYt.baseUrl : null;
10479
+ const linkIssues = typeof wsYt.link_issues === "boolean" ? wsYt.link_issues : null;
10480
+ const youtrackBaseUrl = typeof wsYt.baseUrl === "string" ? wsYt.baseUrl : null;
10485
10481
  let issuesProvider = null;
10486
10482
  let linkOnPr = null;
10487
10483
  if (provider === "github" && typeof wsIssues.provider === "string" && wsIssues.provider.toLowerCase() === "github") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-codex",
3
- "version": "2.0.2",
3
+ "version": "2.1.0",
4
4
  "private": false,
5
5
  "description": "Workit Codex CLI/desktop plugin — shared MCP transport, hooks, and fourteen method skills",
6
6
  "keywords": [
@@ -38,8 +38,8 @@
38
38
  "build": "bun scripts/build.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@brainervirus/workit-core": "^2.0.2",
42
- "@brainervirus/workit-mcp": "^2.0.2"
41
+ "@brainervirus/workit-core": "^2.1.0",
42
+ "@brainervirus/workit-mcp": "^2.1.0"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=24"