@brainervirus/workit-pi 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.
package/dist/worker.js CHANGED
@@ -8134,13 +8134,6 @@ var workspaceConfigSchema = object({
8134
8134
  profiles: record(nonBlank, workspaceProfileSchema).optional(),
8135
8135
  releaseTracks: record(nonBlank, releaseTrackSchema).optional()
8136
8136
  }).passthrough().superRefine((workspace, context) => {
8137
- if (workspace.youtrack && workspace.vcs?.provider !== "gitlab") {
8138
- context.addIssue({
8139
- code: "custom",
8140
- path: ["youtrack"],
8141
- message: `YouTrack issue linking requires the gitlab provider, got ${workspace.vcs?.provider ?? "unset"}`
8142
- });
8143
- }
8144
8137
  if (workspace.issues && workspace.vcs?.provider !== "github") {
8145
8138
  context.addIssue({
8146
8139
  code: "custom",
package/dist/workit.js CHANGED
@@ -10470,13 +10470,6 @@ var workspaceConfigSchema = object({
10470
10470
  profiles: record(nonBlank, workspaceProfileSchema).optional(),
10471
10471
  releaseTracks: record(nonBlank, releaseTrackSchema).optional()
10472
10472
  }).passthrough().superRefine((workspace, context) => {
10473
- if (workspace.youtrack && workspace.vcs?.provider !== "gitlab") {
10474
- context.addIssue({
10475
- code: "custom",
10476
- path: ["youtrack"],
10477
- message: `YouTrack issue linking requires the gitlab provider, got ${workspace.vcs?.provider ?? "unset"}`
10478
- });
10479
- }
10480
10473
  if (workspace.issues && workspace.vcs?.provider !== "github") {
10481
10474
  context.addIssue({
10482
10475
  code: "custom",
@@ -10668,13 +10661,10 @@ var selectWorkspaceMatch = (matches, cwd, workspaceName) => {
10668
10661
  }
10669
10662
  return mostSpecific[0];
10670
10663
  };
10671
- var resolveWorkspaceFrom = (cwd, dir, workspaceName) => {
10672
- const result = readWorkspacesResult(dir);
10673
- if (result.status === "malformed" || result.status === "invalid")
10674
- throw new Error(result.error);
10664
+ var resolveWorkspaceFromEntries = (cwd, entries, workspaceName) => {
10675
10665
  const targets = [cwd, realpathOf(cwd)].map((p) => p.replaceAll("\\", "/"));
10676
10666
  const matches = [];
10677
- for (const ws of result.entries) {
10667
+ for (const ws of entries) {
10678
10668
  const glob = ws.glob.replaceAll("\\", "/");
10679
10669
  const canonical = canonicalGlob(glob);
10680
10670
  let matched = false;
@@ -10689,6 +10679,12 @@ var resolveWorkspaceFrom = (cwd, dir, workspaceName) => {
10689
10679
  }
10690
10680
  return selectWorkspaceMatch(matches, cwd, workspaceName) ?? null;
10691
10681
  };
10682
+ var resolveWorkspaceFrom = (cwd, dir, workspaceName) => {
10683
+ const result = readWorkspacesResult(dir);
10684
+ if (result.status === "malformed" || result.status === "invalid")
10685
+ throw new Error(result.error);
10686
+ return resolveWorkspaceFromEntries(cwd, result.entries, workspaceName);
10687
+ };
10692
10688
  var runtimeWorkspacePolicySchema = (kind) => {
10693
10689
  const key = kind === "branch" ? "branchPolicy" : kind === "commit" ? "commitPolicy" : "vcs";
10694
10690
  const policySchema = kind === "branch" ? workspaceBranchPolicySchema : kind === "commit" ? workspaceCommitPolicySchema : object({
@@ -10999,8 +10995,8 @@ function vcsConfig(mode, cwd) {
10999
10995
  const hasWorkspacePolicy = typeof wp.preset === "string" && Object.hasOwn(PRESETS, wp.preset);
11000
10996
  const policyDefault = resolveBranchPolicyFor(root).defaultTargetBranch;
11001
10997
  const defaultTarget = String(wsVcs.defaultTargetBranch ?? (hasWorkspacePolicy ? policyDefault : cfg.defaultTargetBranch ?? policyDefault) ?? "develop");
11002
- const linkIssues = provider === "gitlab" && typeof wsYt.link_issues === "boolean" ? wsYt.link_issues : null;
11003
- const youtrackBaseUrl = provider === "gitlab" && typeof wsYt.baseUrl === "string" ? wsYt.baseUrl : null;
10998
+ const linkIssues = typeof wsYt.link_issues === "boolean" ? wsYt.link_issues : null;
10999
+ const youtrackBaseUrl = typeof wsYt.baseUrl === "string" ? wsYt.baseUrl : null;
11004
11000
  let issuesProvider = null;
11005
11001
  let linkOnPr = null;
11006
11002
  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-pi",
3
- "version": "2.0.2",
3
+ "version": "2.1.0",
4
4
  "description": "Workit native extension for Pi — tools, method skills, and session continuity",
5
5
  "keywords": [
6
6
  "agentic-coding",