@workit-dev/opencode 1.6.1 → 1.7.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/plugin.js +9 -2
  2. package/package.json +2 -2
package/dist/plugin.js CHANGED
@@ -10061,7 +10061,8 @@ var workspaceConfigSchema = object({
10061
10061
  ]))).passthrough().optional().describe("Autonomy grants (D15): only ever set here, by the user, with `workit grant set`."),
10062
10062
  youtrack: object({
10063
10063
  baseUrl: nonBlank.optional().describe("This workspace's YouTrack URL."),
10064
- link_issues: boolean2().optional().describe("Legacy alias of `issues: { provider: youtrack, link: true }`.")
10064
+ link_issues: boolean2().optional().describe("Legacy alias of `issues: { provider: youtrack, link: true }`."),
10065
+ writes: _enum(["ask", "auto"]).optional().describe("ask (default): each workit youtrack write waits for the user's yes. auto: posts without asking, behind WORKIT_YT_WRITE=1.")
10065
10066
  }).passthrough().optional().describe("YouTrack settings for this workspace."),
10066
10067
  issues: object({
10067
10068
  provider: _enum(["github", "gitlab", "youtrack"]).optional().describe("The issue tracker PRs link to."),
@@ -20787,9 +20788,15 @@ var messageOf = (segment, index) => {
20787
20788
  return null;
20788
20789
  return match[3].replace(/\n+$/u, "");
20789
20790
  };
20791
+ var sameGitDir = (a, b, platform = process.platform) => {
20792
+ if (platform !== "win32")
20793
+ return path27.posix.resolve(a) === path27.posix.resolve(b);
20794
+ const fold = (value) => path27.win32.resolve(value).toLowerCase();
20795
+ return fold(a) === fold(b);
20796
+ };
20790
20797
  var cdCommitCall = (input, command, target, repo) => {
20791
20798
  const { top, git, dir: store } = repo.location;
20792
- if (!top || !git || git.gitDir === path27.dirname(store) || repoAt(input.cwd)?.location.top === top)
20799
+ if (!top || !git || sameGitDir(git.gitDir, path27.dirname(store)) || repoAt(input.cwd)?.location.top === top)
20793
20800
  return null;
20794
20801
  const bare = command.replaceAll(/'[^']*'|"(?:[^"\\]|\\.)*"/gu, "").replaceAll("&&", "");
20795
20802
  if (/[;|&<>`$()\n\\]/u.test(bare))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workit-dev/opencode",
3
- "version": "1.6.1",
3
+ "version": "1.7.1",
4
4
  "private": false,
5
5
  "description": "Workit OpenCode plugin — native tools, adaptive policy, and sixteen method skills",
6
6
  "keywords": [
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@opencode/plugin": "2.0.18",
44
- "@workit-dev/core": "^1.6.1"
44
+ "@workit-dev/core": "^1.7.1"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=24"