@rama_nigg/open-cursor 2.3.1 → 2.3.3
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/README.md +77 -241
- package/dist/cli/discover.js +0 -15
- package/dist/cli/opencode-cursor.js +44 -19
- package/dist/index.js +70 -85
- package/dist/plugin-entry.js +81 -86
- package/package.json +7 -2
- package/src/cli/opencode-cursor.ts +45 -4
- package/src/plugin-toggle.ts +9 -1
package/dist/plugin-entry.js
CHANGED
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
4
2
|
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __toESM = (mod, isNodeMode, target) => {
|
|
8
|
-
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
9
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
10
|
-
for (let key of __getOwnPropNames(mod))
|
|
11
|
-
if (!__hasOwnProp.call(to, key))
|
|
12
|
-
__defProp(to, key, {
|
|
13
|
-
get: () => mod[key],
|
|
14
|
-
enumerable: true
|
|
15
|
-
});
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
3
|
var __export = (target, all) => {
|
|
19
4
|
for (var name in all)
|
|
20
5
|
__defProp(target, name, {
|
|
@@ -153,7 +138,7 @@ var init_logger = __esm(() => {
|
|
|
153
138
|
};
|
|
154
139
|
});
|
|
155
140
|
|
|
156
|
-
// node_modules
|
|
141
|
+
// node_modules/zod/v4/core/core.js
|
|
157
142
|
function $constructor(name, initializer, params) {
|
|
158
143
|
function init(inst, def) {
|
|
159
144
|
var _a;
|
|
@@ -222,7 +207,7 @@ var init_core = __esm(() => {
|
|
|
222
207
|
globalConfig = {};
|
|
223
208
|
});
|
|
224
209
|
|
|
225
|
-
// node_modules
|
|
210
|
+
// node_modules/zod/v4/core/util.js
|
|
226
211
|
var exports_util = {};
|
|
227
212
|
__export(exports_util, {
|
|
228
213
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -853,7 +838,7 @@ var init_util = __esm(() => {
|
|
|
853
838
|
};
|
|
854
839
|
});
|
|
855
840
|
|
|
856
|
-
// node_modules
|
|
841
|
+
// node_modules/zod/v4/core/errors.js
|
|
857
842
|
function flattenError(error, mapper = (issue2) => issue2.message) {
|
|
858
843
|
const fieldErrors = {};
|
|
859
844
|
const formErrors = [];
|
|
@@ -1000,7 +985,7 @@ var init_errors = __esm(() => {
|
|
|
1000
985
|
$ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1001
986
|
});
|
|
1002
987
|
|
|
1003
|
-
// node_modules
|
|
988
|
+
// node_modules/zod/v4/core/parse.js
|
|
1004
989
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1005
990
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
1006
991
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -1082,7 +1067,7 @@ var init_parse = __esm(() => {
|
|
|
1082
1067
|
safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1083
1068
|
});
|
|
1084
1069
|
|
|
1085
|
-
// node_modules
|
|
1070
|
+
// node_modules/zod/v4/core/regexes.js
|
|
1086
1071
|
var exports_regexes = {};
|
|
1087
1072
|
__export(exports_regexes, {
|
|
1088
1073
|
xid: () => xid,
|
|
@@ -1233,7 +1218,7 @@ var init_regexes = __esm(() => {
|
|
|
1233
1218
|
sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1234
1219
|
});
|
|
1235
1220
|
|
|
1236
|
-
// node_modules
|
|
1221
|
+
// node_modules/zod/v4/core/checks.js
|
|
1237
1222
|
function handleCheckPropertyResult(result, payload, property) {
|
|
1238
1223
|
if (result.issues.length) {
|
|
1239
1224
|
payload.issues.push(...prefixIssues(property, result.issues));
|
|
@@ -1780,7 +1765,7 @@ var init_checks = __esm(() => {
|
|
|
1780
1765
|
});
|
|
1781
1766
|
});
|
|
1782
1767
|
|
|
1783
|
-
// node_modules
|
|
1768
|
+
// node_modules/zod/v4/core/doc.js
|
|
1784
1769
|
class Doc {
|
|
1785
1770
|
constructor(args = []) {
|
|
1786
1771
|
this.content = [];
|
|
@@ -1818,7 +1803,7 @@ class Doc {
|
|
|
1818
1803
|
}
|
|
1819
1804
|
}
|
|
1820
1805
|
|
|
1821
|
-
// node_modules
|
|
1806
|
+
// node_modules/zod/v4/core/versions.js
|
|
1822
1807
|
var version;
|
|
1823
1808
|
var init_versions = __esm(() => {
|
|
1824
1809
|
version = {
|
|
@@ -1828,7 +1813,7 @@ var init_versions = __esm(() => {
|
|
|
1828
1813
|
};
|
|
1829
1814
|
});
|
|
1830
1815
|
|
|
1831
|
-
// node_modules
|
|
1816
|
+
// node_modules/zod/v4/core/schemas.js
|
|
1832
1817
|
function isValidBase64(data) {
|
|
1833
1818
|
if (data === "")
|
|
1834
1819
|
return true;
|
|
@@ -3662,7 +3647,7 @@ var init_schemas = __esm(() => {
|
|
|
3662
3647
|
});
|
|
3663
3648
|
});
|
|
3664
3649
|
|
|
3665
|
-
// node_modules
|
|
3650
|
+
// node_modules/zod/v4/locales/ar.js
|
|
3666
3651
|
function ar_default() {
|
|
3667
3652
|
return {
|
|
3668
3653
|
localeError: error()
|
|
@@ -3782,7 +3767,7 @@ var init_ar = __esm(() => {
|
|
|
3782
3767
|
init_util();
|
|
3783
3768
|
});
|
|
3784
3769
|
|
|
3785
|
-
// node_modules
|
|
3770
|
+
// node_modules/zod/v4/locales/az.js
|
|
3786
3771
|
function az_default() {
|
|
3787
3772
|
return {
|
|
3788
3773
|
localeError: error2()
|
|
@@ -3901,7 +3886,7 @@ var init_az = __esm(() => {
|
|
|
3901
3886
|
init_util();
|
|
3902
3887
|
});
|
|
3903
3888
|
|
|
3904
|
-
// node_modules
|
|
3889
|
+
// node_modules/zod/v4/locales/be.js
|
|
3905
3890
|
function getBelarusianPlural(count, one, few, many) {
|
|
3906
3891
|
const absCount = Math.abs(count);
|
|
3907
3892
|
const lastDigit = absCount % 10;
|
|
@@ -4069,7 +4054,7 @@ var init_be = __esm(() => {
|
|
|
4069
4054
|
init_util();
|
|
4070
4055
|
});
|
|
4071
4056
|
|
|
4072
|
-
// node_modules
|
|
4057
|
+
// node_modules/zod/v4/locales/ca.js
|
|
4073
4058
|
function ca_default() {
|
|
4074
4059
|
return {
|
|
4075
4060
|
localeError: error4()
|
|
@@ -4190,7 +4175,7 @@ var init_ca = __esm(() => {
|
|
|
4190
4175
|
init_util();
|
|
4191
4176
|
});
|
|
4192
4177
|
|
|
4193
|
-
// node_modules
|
|
4178
|
+
// node_modules/zod/v4/locales/cs.js
|
|
4194
4179
|
function cs_default() {
|
|
4195
4180
|
return {
|
|
4196
4181
|
localeError: error5()
|
|
@@ -4329,7 +4314,7 @@ var init_cs = __esm(() => {
|
|
|
4329
4314
|
init_util();
|
|
4330
4315
|
});
|
|
4331
4316
|
|
|
4332
|
-
// node_modules
|
|
4317
|
+
// node_modules/zod/v4/locales/da.js
|
|
4333
4318
|
function da_default() {
|
|
4334
4319
|
return {
|
|
4335
4320
|
localeError: error6()
|
|
@@ -4464,7 +4449,7 @@ var init_da = __esm(() => {
|
|
|
4464
4449
|
init_util();
|
|
4465
4450
|
});
|
|
4466
4451
|
|
|
4467
|
-
// node_modules
|
|
4452
|
+
// node_modules/zod/v4/locales/de.js
|
|
4468
4453
|
function de_default() {
|
|
4469
4454
|
return {
|
|
4470
4455
|
localeError: error7()
|
|
@@ -4584,7 +4569,7 @@ var init_de = __esm(() => {
|
|
|
4584
4569
|
init_util();
|
|
4585
4570
|
});
|
|
4586
4571
|
|
|
4587
|
-
// node_modules
|
|
4572
|
+
// node_modules/zod/v4/locales/en.js
|
|
4588
4573
|
function en_default() {
|
|
4589
4574
|
return {
|
|
4590
4575
|
localeError: error8()
|
|
@@ -4704,7 +4689,7 @@ var init_en = __esm(() => {
|
|
|
4704
4689
|
init_util();
|
|
4705
4690
|
});
|
|
4706
4691
|
|
|
4707
|
-
// node_modules
|
|
4692
|
+
// node_modules/zod/v4/locales/eo.js
|
|
4708
4693
|
function eo_default() {
|
|
4709
4694
|
return {
|
|
4710
4695
|
localeError: error9()
|
|
@@ -4823,7 +4808,7 @@ var init_eo = __esm(() => {
|
|
|
4823
4808
|
init_util();
|
|
4824
4809
|
});
|
|
4825
4810
|
|
|
4826
|
-
// node_modules
|
|
4811
|
+
// node_modules/zod/v4/locales/es.js
|
|
4827
4812
|
function es_default() {
|
|
4828
4813
|
return {
|
|
4829
4814
|
localeError: error10()
|
|
@@ -4975,7 +4960,7 @@ var init_es = __esm(() => {
|
|
|
4975
4960
|
init_util();
|
|
4976
4961
|
});
|
|
4977
4962
|
|
|
4978
|
-
// node_modules
|
|
4963
|
+
// node_modules/zod/v4/locales/fa.js
|
|
4979
4964
|
function fa_default() {
|
|
4980
4965
|
return {
|
|
4981
4966
|
localeError: error11()
|
|
@@ -5101,7 +5086,7 @@ var init_fa = __esm(() => {
|
|
|
5101
5086
|
init_util();
|
|
5102
5087
|
});
|
|
5103
5088
|
|
|
5104
|
-
// node_modules
|
|
5089
|
+
// node_modules/zod/v4/locales/fi.js
|
|
5105
5090
|
function fi_default() {
|
|
5106
5091
|
return {
|
|
5107
5092
|
localeError: error12()
|
|
@@ -5227,7 +5212,7 @@ var init_fi = __esm(() => {
|
|
|
5227
5212
|
init_util();
|
|
5228
5213
|
});
|
|
5229
5214
|
|
|
5230
|
-
// node_modules
|
|
5215
|
+
// node_modules/zod/v4/locales/fr.js
|
|
5231
5216
|
function fr_default() {
|
|
5232
5217
|
return {
|
|
5233
5218
|
localeError: error13()
|
|
@@ -5347,7 +5332,7 @@ var init_fr = __esm(() => {
|
|
|
5347
5332
|
init_util();
|
|
5348
5333
|
});
|
|
5349
5334
|
|
|
5350
|
-
// node_modules
|
|
5335
|
+
// node_modules/zod/v4/locales/fr-CA.js
|
|
5351
5336
|
function fr_CA_default() {
|
|
5352
5337
|
return {
|
|
5353
5338
|
localeError: error14()
|
|
@@ -5468,7 +5453,7 @@ var init_fr_CA = __esm(() => {
|
|
|
5468
5453
|
init_util();
|
|
5469
5454
|
});
|
|
5470
5455
|
|
|
5471
|
-
// node_modules
|
|
5456
|
+
// node_modules/zod/v4/locales/he.js
|
|
5472
5457
|
function he_default() {
|
|
5473
5458
|
return {
|
|
5474
5459
|
localeError: error15()
|
|
@@ -5588,7 +5573,7 @@ var init_he = __esm(() => {
|
|
|
5588
5573
|
init_util();
|
|
5589
5574
|
});
|
|
5590
5575
|
|
|
5591
|
-
// node_modules
|
|
5576
|
+
// node_modules/zod/v4/locales/hu.js
|
|
5592
5577
|
function hu_default() {
|
|
5593
5578
|
return {
|
|
5594
5579
|
localeError: error16()
|
|
@@ -5708,7 +5693,7 @@ var init_hu = __esm(() => {
|
|
|
5708
5693
|
init_util();
|
|
5709
5694
|
});
|
|
5710
5695
|
|
|
5711
|
-
// node_modules
|
|
5696
|
+
// node_modules/zod/v4/locales/id.js
|
|
5712
5697
|
function id_default() {
|
|
5713
5698
|
return {
|
|
5714
5699
|
localeError: error17()
|
|
@@ -5828,7 +5813,7 @@ var init_id = __esm(() => {
|
|
|
5828
5813
|
init_util();
|
|
5829
5814
|
});
|
|
5830
5815
|
|
|
5831
|
-
// node_modules
|
|
5816
|
+
// node_modules/zod/v4/locales/is.js
|
|
5832
5817
|
function is_default() {
|
|
5833
5818
|
return {
|
|
5834
5819
|
localeError: error18()
|
|
@@ -5948,7 +5933,7 @@ var init_is = __esm(() => {
|
|
|
5948
5933
|
init_util();
|
|
5949
5934
|
});
|
|
5950
5935
|
|
|
5951
|
-
// node_modules
|
|
5936
|
+
// node_modules/zod/v4/locales/it.js
|
|
5952
5937
|
function it_default() {
|
|
5953
5938
|
return {
|
|
5954
5939
|
localeError: error19()
|
|
@@ -6068,7 +6053,7 @@ var init_it = __esm(() => {
|
|
|
6068
6053
|
init_util();
|
|
6069
6054
|
});
|
|
6070
6055
|
|
|
6071
|
-
// node_modules
|
|
6056
|
+
// node_modules/zod/v4/locales/ja.js
|
|
6072
6057
|
function ja_default() {
|
|
6073
6058
|
return {
|
|
6074
6059
|
localeError: error20()
|
|
@@ -6187,7 +6172,7 @@ var init_ja = __esm(() => {
|
|
|
6187
6172
|
init_util();
|
|
6188
6173
|
});
|
|
6189
6174
|
|
|
6190
|
-
// node_modules
|
|
6175
|
+
// node_modules/zod/v4/locales/ka.js
|
|
6191
6176
|
function ka_default() {
|
|
6192
6177
|
return {
|
|
6193
6178
|
localeError: error21()
|
|
@@ -6315,7 +6300,7 @@ var init_ka = __esm(() => {
|
|
|
6315
6300
|
init_util();
|
|
6316
6301
|
});
|
|
6317
6302
|
|
|
6318
|
-
// node_modules
|
|
6303
|
+
// node_modules/zod/v4/locales/km.js
|
|
6319
6304
|
function km_default() {
|
|
6320
6305
|
return {
|
|
6321
6306
|
localeError: error22()
|
|
@@ -6436,7 +6421,7 @@ var init_km = __esm(() => {
|
|
|
6436
6421
|
init_util();
|
|
6437
6422
|
});
|
|
6438
6423
|
|
|
6439
|
-
// node_modules
|
|
6424
|
+
// node_modules/zod/v4/locales/kh.js
|
|
6440
6425
|
function kh_default() {
|
|
6441
6426
|
return km_default();
|
|
6442
6427
|
}
|
|
@@ -6444,7 +6429,7 @@ var init_kh = __esm(() => {
|
|
|
6444
6429
|
init_km();
|
|
6445
6430
|
});
|
|
6446
6431
|
|
|
6447
|
-
// node_modules
|
|
6432
|
+
// node_modules/zod/v4/locales/ko.js
|
|
6448
6433
|
function ko_default() {
|
|
6449
6434
|
return {
|
|
6450
6435
|
localeError: error23()
|
|
@@ -6569,7 +6554,7 @@ var init_ko = __esm(() => {
|
|
|
6569
6554
|
init_util();
|
|
6570
6555
|
});
|
|
6571
6556
|
|
|
6572
|
-
// node_modules
|
|
6557
|
+
// node_modules/zod/v4/locales/lt.js
|
|
6573
6558
|
function getUnitTypeFromNumber(number2) {
|
|
6574
6559
|
const abs = Math.abs(number2);
|
|
6575
6560
|
const last = abs % 10;
|
|
@@ -6799,7 +6784,7 @@ var init_lt = __esm(() => {
|
|
|
6799
6784
|
init_util();
|
|
6800
6785
|
});
|
|
6801
6786
|
|
|
6802
|
-
// node_modules
|
|
6787
|
+
// node_modules/zod/v4/locales/mk.js
|
|
6803
6788
|
function mk_default() {
|
|
6804
6789
|
return {
|
|
6805
6790
|
localeError: error25()
|
|
@@ -6920,7 +6905,7 @@ var init_mk = __esm(() => {
|
|
|
6920
6905
|
init_util();
|
|
6921
6906
|
});
|
|
6922
6907
|
|
|
6923
|
-
// node_modules
|
|
6908
|
+
// node_modules/zod/v4/locales/ms.js
|
|
6924
6909
|
function ms_default() {
|
|
6925
6910
|
return {
|
|
6926
6911
|
localeError: error26()
|
|
@@ -7040,7 +7025,7 @@ var init_ms = __esm(() => {
|
|
|
7040
7025
|
init_util();
|
|
7041
7026
|
});
|
|
7042
7027
|
|
|
7043
|
-
// node_modules
|
|
7028
|
+
// node_modules/zod/v4/locales/nl.js
|
|
7044
7029
|
function nl_default() {
|
|
7045
7030
|
return {
|
|
7046
7031
|
localeError: error27()
|
|
@@ -7161,7 +7146,7 @@ var init_nl = __esm(() => {
|
|
|
7161
7146
|
init_util();
|
|
7162
7147
|
});
|
|
7163
7148
|
|
|
7164
|
-
// node_modules
|
|
7149
|
+
// node_modules/zod/v4/locales/no.js
|
|
7165
7150
|
function no_default() {
|
|
7166
7151
|
return {
|
|
7167
7152
|
localeError: error28()
|
|
@@ -7281,7 +7266,7 @@ var init_no = __esm(() => {
|
|
|
7281
7266
|
init_util();
|
|
7282
7267
|
});
|
|
7283
7268
|
|
|
7284
|
-
// node_modules
|
|
7269
|
+
// node_modules/zod/v4/locales/ota.js
|
|
7285
7270
|
function ota_default() {
|
|
7286
7271
|
return {
|
|
7287
7272
|
localeError: error29()
|
|
@@ -7401,7 +7386,7 @@ var init_ota = __esm(() => {
|
|
|
7401
7386
|
init_util();
|
|
7402
7387
|
});
|
|
7403
7388
|
|
|
7404
|
-
// node_modules
|
|
7389
|
+
// node_modules/zod/v4/locales/ps.js
|
|
7405
7390
|
function ps_default() {
|
|
7406
7391
|
return {
|
|
7407
7392
|
localeError: error30()
|
|
@@ -7527,7 +7512,7 @@ var init_ps = __esm(() => {
|
|
|
7527
7512
|
init_util();
|
|
7528
7513
|
});
|
|
7529
7514
|
|
|
7530
|
-
// node_modules
|
|
7515
|
+
// node_modules/zod/v4/locales/pl.js
|
|
7531
7516
|
function pl_default() {
|
|
7532
7517
|
return {
|
|
7533
7518
|
localeError: error31()
|
|
@@ -7648,7 +7633,7 @@ var init_pl = __esm(() => {
|
|
|
7648
7633
|
init_util();
|
|
7649
7634
|
});
|
|
7650
7635
|
|
|
7651
|
-
// node_modules
|
|
7636
|
+
// node_modules/zod/v4/locales/pt.js
|
|
7652
7637
|
function pt_default() {
|
|
7653
7638
|
return {
|
|
7654
7639
|
localeError: error32()
|
|
@@ -7768,7 +7753,7 @@ var init_pt = __esm(() => {
|
|
|
7768
7753
|
init_util();
|
|
7769
7754
|
});
|
|
7770
7755
|
|
|
7771
|
-
// node_modules
|
|
7756
|
+
// node_modules/zod/v4/locales/ru.js
|
|
7772
7757
|
function getRussianPlural(count, one, few, many) {
|
|
7773
7758
|
const absCount = Math.abs(count);
|
|
7774
7759
|
const lastDigit = absCount % 10;
|
|
@@ -7936,7 +7921,7 @@ var init_ru = __esm(() => {
|
|
|
7936
7921
|
init_util();
|
|
7937
7922
|
});
|
|
7938
7923
|
|
|
7939
|
-
// node_modules
|
|
7924
|
+
// node_modules/zod/v4/locales/sl.js
|
|
7940
7925
|
function sl_default() {
|
|
7941
7926
|
return {
|
|
7942
7927
|
localeError: error34()
|
|
@@ -8057,7 +8042,7 @@ var init_sl = __esm(() => {
|
|
|
8057
8042
|
init_util();
|
|
8058
8043
|
});
|
|
8059
8044
|
|
|
8060
|
-
// node_modules
|
|
8045
|
+
// node_modules/zod/v4/locales/sv.js
|
|
8061
8046
|
function sv_default() {
|
|
8062
8047
|
return {
|
|
8063
8048
|
localeError: error35()
|
|
@@ -8179,7 +8164,7 @@ var init_sv = __esm(() => {
|
|
|
8179
8164
|
init_util();
|
|
8180
8165
|
});
|
|
8181
8166
|
|
|
8182
|
-
// node_modules
|
|
8167
|
+
// node_modules/zod/v4/locales/ta.js
|
|
8183
8168
|
function ta_default() {
|
|
8184
8169
|
return {
|
|
8185
8170
|
localeError: error36()
|
|
@@ -8300,7 +8285,7 @@ var init_ta = __esm(() => {
|
|
|
8300
8285
|
init_util();
|
|
8301
8286
|
});
|
|
8302
8287
|
|
|
8303
|
-
// node_modules
|
|
8288
|
+
// node_modules/zod/v4/locales/th.js
|
|
8304
8289
|
function th_default() {
|
|
8305
8290
|
return {
|
|
8306
8291
|
localeError: error37()
|
|
@@ -8421,7 +8406,7 @@ var init_th = __esm(() => {
|
|
|
8421
8406
|
init_util();
|
|
8422
8407
|
});
|
|
8423
8408
|
|
|
8424
|
-
// node_modules
|
|
8409
|
+
// node_modules/zod/v4/locales/tr.js
|
|
8425
8410
|
function tr_default() {
|
|
8426
8411
|
return {
|
|
8427
8412
|
localeError: error38()
|
|
@@ -8539,7 +8524,7 @@ var init_tr = __esm(() => {
|
|
|
8539
8524
|
init_util();
|
|
8540
8525
|
});
|
|
8541
8526
|
|
|
8542
|
-
// node_modules
|
|
8527
|
+
// node_modules/zod/v4/locales/uk.js
|
|
8543
8528
|
function uk_default() {
|
|
8544
8529
|
return {
|
|
8545
8530
|
localeError: error39()
|
|
@@ -8659,7 +8644,7 @@ var init_uk = __esm(() => {
|
|
|
8659
8644
|
init_util();
|
|
8660
8645
|
});
|
|
8661
8646
|
|
|
8662
|
-
// node_modules
|
|
8647
|
+
// node_modules/zod/v4/locales/ua.js
|
|
8663
8648
|
function ua_default() {
|
|
8664
8649
|
return uk_default();
|
|
8665
8650
|
}
|
|
@@ -8667,7 +8652,7 @@ var init_ua = __esm(() => {
|
|
|
8667
8652
|
init_uk();
|
|
8668
8653
|
});
|
|
8669
8654
|
|
|
8670
|
-
// node_modules
|
|
8655
|
+
// node_modules/zod/v4/locales/ur.js
|
|
8671
8656
|
function ur_default() {
|
|
8672
8657
|
return {
|
|
8673
8658
|
localeError: error40()
|
|
@@ -8788,7 +8773,7 @@ var init_ur = __esm(() => {
|
|
|
8788
8773
|
init_util();
|
|
8789
8774
|
});
|
|
8790
8775
|
|
|
8791
|
-
// node_modules
|
|
8776
|
+
// node_modules/zod/v4/locales/vi.js
|
|
8792
8777
|
function vi_default() {
|
|
8793
8778
|
return {
|
|
8794
8779
|
localeError: error41()
|
|
@@ -8908,7 +8893,7 @@ var init_vi = __esm(() => {
|
|
|
8908
8893
|
init_util();
|
|
8909
8894
|
});
|
|
8910
8895
|
|
|
8911
|
-
// node_modules
|
|
8896
|
+
// node_modules/zod/v4/locales/zh-CN.js
|
|
8912
8897
|
function zh_CN_default() {
|
|
8913
8898
|
return {
|
|
8914
8899
|
localeError: error42()
|
|
@@ -9028,7 +9013,7 @@ var init_zh_CN = __esm(() => {
|
|
|
9028
9013
|
init_util();
|
|
9029
9014
|
});
|
|
9030
9015
|
|
|
9031
|
-
// node_modules
|
|
9016
|
+
// node_modules/zod/v4/locales/zh-TW.js
|
|
9032
9017
|
function zh_TW_default() {
|
|
9033
9018
|
return {
|
|
9034
9019
|
localeError: error43()
|
|
@@ -9149,7 +9134,7 @@ var init_zh_TW = __esm(() => {
|
|
|
9149
9134
|
init_util();
|
|
9150
9135
|
});
|
|
9151
9136
|
|
|
9152
|
-
// node_modules
|
|
9137
|
+
// node_modules/zod/v4/locales/yo.js
|
|
9153
9138
|
function yo_default() {
|
|
9154
9139
|
return {
|
|
9155
9140
|
localeError: error44()
|
|
@@ -9268,7 +9253,7 @@ var init_yo = __esm(() => {
|
|
|
9268
9253
|
init_util();
|
|
9269
9254
|
});
|
|
9270
9255
|
|
|
9271
|
-
// node_modules
|
|
9256
|
+
// node_modules/zod/v4/locales/index.js
|
|
9272
9257
|
var exports_locales = {};
|
|
9273
9258
|
__export(exports_locales, {
|
|
9274
9259
|
zhTW: () => zh_TW_default,
|
|
@@ -9367,7 +9352,7 @@ var init_locales = __esm(() => {
|
|
|
9367
9352
|
init_yo();
|
|
9368
9353
|
});
|
|
9369
9354
|
|
|
9370
|
-
// node_modules
|
|
9355
|
+
// node_modules/zod/v4/core/registries.js
|
|
9371
9356
|
class $ZodRegistry {
|
|
9372
9357
|
constructor() {
|
|
9373
9358
|
this._map = new WeakMap;
|
|
@@ -9421,7 +9406,7 @@ var init_registries = __esm(() => {
|
|
|
9421
9406
|
globalRegistry = /* @__PURE__ */ registry();
|
|
9422
9407
|
});
|
|
9423
9408
|
|
|
9424
|
-
// node_modules
|
|
9409
|
+
// node_modules/zod/v4/core/api.js
|
|
9425
9410
|
function _string(Class2, params) {
|
|
9426
9411
|
return new Class2({
|
|
9427
9412
|
type: "string",
|
|
@@ -10306,7 +10291,7 @@ var init_api = __esm(() => {
|
|
|
10306
10291
|
};
|
|
10307
10292
|
});
|
|
10308
10293
|
|
|
10309
|
-
// node_modules
|
|
10294
|
+
// node_modules/zod/v4/core/to-json-schema.js
|
|
10310
10295
|
class JSONSchemaGenerator {
|
|
10311
10296
|
constructor(params) {
|
|
10312
10297
|
this.counter = 0;
|
|
@@ -11115,11 +11100,11 @@ var init_to_json_schema = __esm(() => {
|
|
|
11115
11100
|
init_util();
|
|
11116
11101
|
});
|
|
11117
11102
|
|
|
11118
|
-
// node_modules
|
|
11103
|
+
// node_modules/zod/v4/core/json-schema.js
|
|
11119
11104
|
var exports_json_schema = {};
|
|
11120
11105
|
var init_json_schema = () => {};
|
|
11121
11106
|
|
|
11122
|
-
// node_modules
|
|
11107
|
+
// node_modules/zod/v4/core/index.js
|
|
11123
11108
|
var exports_core2 = {};
|
|
11124
11109
|
__export(exports_core2, {
|
|
11125
11110
|
version: () => version,
|
|
@@ -11398,12 +11383,12 @@ var init_core2 = __esm(() => {
|
|
|
11398
11383
|
init_to_json_schema();
|
|
11399
11384
|
});
|
|
11400
11385
|
|
|
11401
|
-
// node_modules
|
|
11386
|
+
// node_modules/zod/v4/classic/checks.js
|
|
11402
11387
|
var init_checks2 = __esm(() => {
|
|
11403
11388
|
init_core2();
|
|
11404
11389
|
});
|
|
11405
11390
|
|
|
11406
|
-
// node_modules
|
|
11391
|
+
// node_modules/zod/v4/classic/iso.js
|
|
11407
11392
|
var exports_iso = {};
|
|
11408
11393
|
__export(exports_iso, {
|
|
11409
11394
|
time: () => time2,
|
|
@@ -11449,7 +11434,7 @@ var init_iso = __esm(() => {
|
|
|
11449
11434
|
});
|
|
11450
11435
|
});
|
|
11451
11436
|
|
|
11452
|
-
// node_modules
|
|
11437
|
+
// node_modules/zod/v4/classic/errors.js
|
|
11453
11438
|
var initializer2 = (inst, issues) => {
|
|
11454
11439
|
$ZodError.init(inst, issues);
|
|
11455
11440
|
inst.name = "ZodError";
|
|
@@ -11489,7 +11474,7 @@ var init_errors2 = __esm(() => {
|
|
|
11489
11474
|
});
|
|
11490
11475
|
});
|
|
11491
11476
|
|
|
11492
|
-
// node_modules
|
|
11477
|
+
// node_modules/zod/v4/classic/parse.js
|
|
11493
11478
|
var parse3, parseAsync2, safeParse2, safeParseAsync2, encode2, decode2, encodeAsync2, decodeAsync2, safeEncode2, safeDecode2, safeEncodeAsync2, safeDecodeAsync2;
|
|
11494
11479
|
var init_parse2 = __esm(() => {
|
|
11495
11480
|
init_core2();
|
|
@@ -11508,7 +11493,7 @@ var init_parse2 = __esm(() => {
|
|
|
11508
11493
|
safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
11509
11494
|
});
|
|
11510
11495
|
|
|
11511
|
-
// node_modules
|
|
11496
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
11512
11497
|
function string2(params) {
|
|
11513
11498
|
return _string(ZodString, params);
|
|
11514
11499
|
}
|
|
@@ -12491,7 +12476,7 @@ var init_schemas2 = __esm(() => {
|
|
|
12491
12476
|
});
|
|
12492
12477
|
});
|
|
12493
12478
|
|
|
12494
|
-
// node_modules
|
|
12479
|
+
// node_modules/zod/v4/classic/compat.js
|
|
12495
12480
|
function setErrorMap(map2) {
|
|
12496
12481
|
config({
|
|
12497
12482
|
customError: map2
|
|
@@ -12519,7 +12504,7 @@ var init_compat = __esm(() => {
|
|
|
12519
12504
|
(function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
12520
12505
|
});
|
|
12521
12506
|
|
|
12522
|
-
// node_modules
|
|
12507
|
+
// node_modules/zod/v4/classic/coerce.js
|
|
12523
12508
|
var exports_coerce = {};
|
|
12524
12509
|
__export(exports_coerce, {
|
|
12525
12510
|
string: () => string3,
|
|
@@ -12548,7 +12533,7 @@ var init_coerce = __esm(() => {
|
|
|
12548
12533
|
init_schemas2();
|
|
12549
12534
|
});
|
|
12550
12535
|
|
|
12551
|
-
// node_modules
|
|
12536
|
+
// node_modules/zod/v4/classic/external.js
|
|
12552
12537
|
var exports_external = {};
|
|
12553
12538
|
__export(exports_external, {
|
|
12554
12539
|
xid: () => xid2,
|
|
@@ -12794,7 +12779,7 @@ var init_external = __esm(() => {
|
|
|
12794
12779
|
config(en_default());
|
|
12795
12780
|
});
|
|
12796
12781
|
|
|
12797
|
-
// node_modules
|
|
12782
|
+
// node_modules/zod/index.js
|
|
12798
12783
|
var init_zod = __esm(() => {
|
|
12799
12784
|
init_external();
|
|
12800
12785
|
init_external();
|
|
@@ -19370,6 +19355,16 @@ import { existsSync, readFileSync } from "fs";
|
|
|
19370
19355
|
import { homedir } from "os";
|
|
19371
19356
|
import { join, resolve } from "path";
|
|
19372
19357
|
var CURSOR_PROVIDER_ID = "cursor-acp";
|
|
19358
|
+
var NPM_PACKAGE_NAME = "@rama_nigg/open-cursor";
|
|
19359
|
+
function matchesPlugin(entry) {
|
|
19360
|
+
if (entry === CURSOR_PROVIDER_ID)
|
|
19361
|
+
return true;
|
|
19362
|
+
if (entry === NPM_PACKAGE_NAME)
|
|
19363
|
+
return true;
|
|
19364
|
+
if (entry.startsWith(`${NPM_PACKAGE_NAME}@`))
|
|
19365
|
+
return true;
|
|
19366
|
+
return false;
|
|
19367
|
+
}
|
|
19373
19368
|
function resolveOpenCodeConfigPath(env = process.env) {
|
|
19374
19369
|
if (env.OPENCODE_CONFIG && env.OPENCODE_CONFIG.length > 0) {
|
|
19375
19370
|
return resolve(env.OPENCODE_CONFIG);
|
|
@@ -19383,7 +19378,7 @@ function isCursorPluginEnabledInConfig(config) {
|
|
|
19383
19378
|
}
|
|
19384
19379
|
const configObject = config;
|
|
19385
19380
|
if (Array.isArray(configObject.plugin)) {
|
|
19386
|
-
return configObject.plugin.some((entry) => entry
|
|
19381
|
+
return configObject.plugin.some((entry) => matchesPlugin(entry));
|
|
19387
19382
|
}
|
|
19388
19383
|
return true;
|
|
19389
19384
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rama_nigg/open-cursor",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "No prompt limits. No broken streams. Full thinking + tool support. Your Cursor subscription, properly integrated.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/
|
|
6
|
+
"main": "dist/plugin-entry.js",
|
|
7
7
|
"module": "src/plugin-entry.ts",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "bun build ./src/index.ts ./src/plugin-entry.ts ./src/cli/discover.ts ./src/cli/opencode-cursor.ts --outdir ./dist --target node",
|
|
@@ -23,6 +23,11 @@
|
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
25
|
"bun": "./src/plugin-entry.ts",
|
|
26
|
+
"import": "./dist/plugin-entry.js",
|
|
27
|
+
"default": "./dist/plugin-entry.js"
|
|
28
|
+
},
|
|
29
|
+
"./lib": {
|
|
30
|
+
"bun": "./src/index.ts",
|
|
26
31
|
"import": "./dist/index.js",
|
|
27
32
|
"default": "./dist/index.js"
|
|
28
33
|
}
|