@brainervirus/workit-opencode 0.9.2 → 0.10.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/assets/skills/wk-init/SKILL.md +1 -1
- package/dist/plugin.js +2 -2
- package/package.json +2 -2
|
@@ -19,7 +19,7 @@ Never ask for or accept tokens in chat. For missing YouTrack configuration, prev
|
|
|
19
19
|
|
|
20
20
|
When the user wants to personalize the toolkit (locale, timezone, branch policy), ask native questions one at a time:
|
|
21
21
|
|
|
22
|
-
1. **Locale** — present a combobox of `localeOptions` (en, es-CL, es-MX, es-AR, pt-BR) + custom answer; validate the answer against BCP-47 (`^[a-z]{2,3}(-[A-Z]{2})
|
|
22
|
+
1. **Locale** — present a combobox of `localeOptions` (en, es-CL, es-MX, es-AR, pt-BR) + custom answer; validate the answer against BCP-47 (`^[a-z]{2,3}(-(?:[A-Z]{2}|[0-9]{3}))?$`, so `es-419` is valid) before passing it.
|
|
23
23
|
2. **Timezone** — e.g. `America/Santiago`, custom allowed.
|
|
24
24
|
3. **Branch policy preset** — gitflow / github-flow / trunk-based / custom.
|
|
25
25
|
4. **Custom branch lists** (only when preset = custom): allowed patterns (`feature/*`, `codex/*`, …) and protected names (`main`, …).
|
package/dist/plugin.js
CHANGED
|
@@ -125,7 +125,7 @@ var ensureConfigDir = (dir = resolveConfigDir()) => {
|
|
|
125
125
|
return dir;
|
|
126
126
|
};
|
|
127
127
|
var configDir = () => ensureConfigDir();
|
|
128
|
-
var LOCALE_RE = /^[a-z]{2,3}(-[A-Z]{2})?$/;
|
|
128
|
+
var LOCALE_RE = /^[a-z]{2,3}(-(?:[A-Z]{2}|[0-9]{3}))?$/;
|
|
129
129
|
var DEFAULTS = {
|
|
130
130
|
locale: "en",
|
|
131
131
|
localeOptions: ["en", "es-CL", "es-MX", "es-AR", "pt-BR"],
|
|
@@ -20294,7 +20294,7 @@ function createRepoTools(runtime = defaultRuntime) {
|
|
|
20294
20294
|
return output(result.ok ? ok(result) : fail(result.error));
|
|
20295
20295
|
}
|
|
20296
20296
|
if (action === "config") {
|
|
20297
|
-
const LOCALE_RE2 = /^[a-z]{2,3}(-[A-Z]{2})?$/;
|
|
20297
|
+
const LOCALE_RE2 = /^[a-z]{2,3}(-(?:[A-Z]{2}|[0-9]{3}))?$/;
|
|
20298
20298
|
if (locale !== undefined && !LOCALE_RE2.test(locale)) {
|
|
20299
20299
|
return output(fail(`invalid locale: ${JSON.stringify(locale)} — expected BCP-47 like en or es-CL`));
|
|
20300
20300
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-opencode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit OpenCode plugin (thin wrapper over @brainervirus/workit-core)",
|
|
6
6
|
"keywords": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"typecheck": "tsc --noEmit"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@brainervirus/workit-core": "^0.
|
|
37
|
+
"@brainervirus/workit-core": "^0.10.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@opencode-ai/plugin": "1.17.7"
|