opencode-hive 1.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.js +149 -197
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
15
15
  import * as path7 from "path";
16
16
  import * as fs9 from "fs";
17
17
 
18
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/external.js
18
+ // ../../node_modules/zod/v4/classic/external.js
19
19
  var exports_external = {};
20
20
  __export(exports_external, {
21
21
  xid: () => xid2,
@@ -245,7 +245,7 @@ __export(exports_external, {
245
245
  $brand: () => $brand
246
246
  });
247
247
 
248
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/index.js
248
+ // ../../node_modules/zod/v4/core/index.js
249
249
  var exports_core2 = {};
250
250
  __export(exports_core2, {
251
251
  version: () => version,
@@ -509,7 +509,7 @@ __export(exports_core2, {
509
509
  $ZodAny: () => $ZodAny
510
510
  });
511
511
 
512
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/core.js
512
+ // ../../node_modules/zod/v4/core/core.js
513
513
  var NEVER = Object.freeze({
514
514
  status: "aborted"
515
515
  });
@@ -576,7 +576,7 @@ function config(newConfig) {
576
576
  Object.assign(globalConfig, newConfig);
577
577
  return globalConfig;
578
578
  }
579
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/util.js
579
+ // ../../node_modules/zod/v4/core/util.js
580
580
  var exports_util = {};
581
581
  __export(exports_util, {
582
582
  unwrapMessage: () => unwrapMessage,
@@ -1205,7 +1205,7 @@ class Class {
1205
1205
  constructor(..._args) {}
1206
1206
  }
1207
1207
 
1208
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/errors.js
1208
+ // ../../node_modules/zod/v4/core/errors.js
1209
1209
  var initializer = (inst, def) => {
1210
1210
  inst.name = "$ZodError";
1211
1211
  Object.defineProperty(inst, "_zod", {
@@ -1348,7 +1348,7 @@ function prettifyError(error) {
1348
1348
  `);
1349
1349
  }
1350
1350
 
1351
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/parse.js
1351
+ // ../../node_modules/zod/v4/core/parse.js
1352
1352
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1353
1353
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
1354
1354
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -1435,7 +1435,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
1435
1435
  return _safeParseAsync(_Err)(schema, value, _ctx);
1436
1436
  };
1437
1437
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
1438
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/regexes.js
1438
+ // ../../node_modules/zod/v4/core/regexes.js
1439
1439
  var exports_regexes = {};
1440
1440
  __export(exports_regexes, {
1441
1441
  xid: () => xid,
@@ -1587,7 +1587,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
1587
1587
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
1588
1588
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
1589
1589
 
1590
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/checks.js
1590
+ // ../../node_modules/zod/v4/core/checks.js
1591
1591
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1592
1592
  var _a;
1593
1593
  inst._zod ?? (inst._zod = {});
@@ -2128,7 +2128,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
2128
2128
  };
2129
2129
  });
2130
2130
 
2131
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/doc.js
2131
+ // ../../node_modules/zod/v4/core/doc.js
2132
2132
  class Doc {
2133
2133
  constructor(args = []) {
2134
2134
  this.content = [];
@@ -2166,14 +2166,14 @@ class Doc {
2166
2166
  }
2167
2167
  }
2168
2168
 
2169
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/versions.js
2169
+ // ../../node_modules/zod/v4/core/versions.js
2170
2170
  var version = {
2171
2171
  major: 4,
2172
2172
  minor: 1,
2173
2173
  patch: 8
2174
2174
  };
2175
2175
 
2176
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/schemas.js
2176
+ // ../../node_modules/zod/v4/core/schemas.js
2177
2177
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2178
2178
  var _a;
2179
2179
  inst ?? (inst = {});
@@ -3996,7 +3996,7 @@ function handleRefineResult(result, payload, input, inst) {
3996
3996
  payload.issues.push(issue(_iss));
3997
3997
  }
3998
3998
  }
3999
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/index.js
3999
+ // ../../node_modules/zod/v4/locales/index.js
4000
4000
  var exports_locales = {};
4001
4001
  __export(exports_locales, {
4002
4002
  zhTW: () => zh_TW_default,
@@ -4047,7 +4047,7 @@ __export(exports_locales, {
4047
4047
  ar: () => ar_default
4048
4048
  });
4049
4049
 
4050
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ar.js
4050
+ // ../../node_modules/zod/v4/locales/ar.js
4051
4051
  var error = () => {
4052
4052
  const Sizable = {
4053
4053
  string: { unit: "حرف", verb: "أن يحوي" },
@@ -4163,7 +4163,7 @@ function ar_default() {
4163
4163
  localeError: error()
4164
4164
  };
4165
4165
  }
4166
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/az.js
4166
+ // ../../node_modules/zod/v4/locales/az.js
4167
4167
  var error2 = () => {
4168
4168
  const Sizable = {
4169
4169
  string: { unit: "simvol", verb: "olmalıdır" },
@@ -4278,7 +4278,7 @@ function az_default() {
4278
4278
  localeError: error2()
4279
4279
  };
4280
4280
  }
4281
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/be.js
4281
+ // ../../node_modules/zod/v4/locales/be.js
4282
4282
  function getBelarusianPlural(count, one, few, many) {
4283
4283
  const absCount = Math.abs(count);
4284
4284
  const lastDigit = absCount % 10;
@@ -4442,7 +4442,7 @@ function be_default() {
4442
4442
  localeError: error3()
4443
4443
  };
4444
4444
  }
4445
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ca.js
4445
+ // ../../node_modules/zod/v4/locales/ca.js
4446
4446
  var error4 = () => {
4447
4447
  const Sizable = {
4448
4448
  string: { unit: "caràcters", verb: "contenir" },
@@ -4559,7 +4559,7 @@ function ca_default() {
4559
4559
  localeError: error4()
4560
4560
  };
4561
4561
  }
4562
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/cs.js
4562
+ // ../../node_modules/zod/v4/locales/cs.js
4563
4563
  var error5 = () => {
4564
4564
  const Sizable = {
4565
4565
  string: { unit: "znaků", verb: "mít" },
@@ -4694,7 +4694,7 @@ function cs_default() {
4694
4694
  localeError: error5()
4695
4695
  };
4696
4696
  }
4697
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/da.js
4697
+ // ../../node_modules/zod/v4/locales/da.js
4698
4698
  var error6 = () => {
4699
4699
  const Sizable = {
4700
4700
  string: { unit: "tegn", verb: "havde" },
@@ -4825,7 +4825,7 @@ function da_default() {
4825
4825
  localeError: error6()
4826
4826
  };
4827
4827
  }
4828
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/de.js
4828
+ // ../../node_modules/zod/v4/locales/de.js
4829
4829
  var error7 = () => {
4830
4830
  const Sizable = {
4831
4831
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -4941,7 +4941,7 @@ function de_default() {
4941
4941
  localeError: error7()
4942
4942
  };
4943
4943
  }
4944
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/en.js
4944
+ // ../../node_modules/zod/v4/locales/en.js
4945
4945
  var parsedType = (data) => {
4946
4946
  const t = typeof data;
4947
4947
  switch (t) {
@@ -5058,7 +5058,7 @@ function en_default() {
5058
5058
  localeError: error8()
5059
5059
  };
5060
5060
  }
5061
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/eo.js
5061
+ // ../../node_modules/zod/v4/locales/eo.js
5062
5062
  var parsedType2 = (data) => {
5063
5063
  const t = typeof data;
5064
5064
  switch (t) {
@@ -5174,7 +5174,7 @@ function eo_default() {
5174
5174
  localeError: error9()
5175
5175
  };
5176
5176
  }
5177
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/es.js
5177
+ // ../../node_modules/zod/v4/locales/es.js
5178
5178
  var error10 = () => {
5179
5179
  const Sizable = {
5180
5180
  string: { unit: "caracteres", verb: "tener" },
@@ -5322,7 +5322,7 @@ function es_default() {
5322
5322
  localeError: error10()
5323
5323
  };
5324
5324
  }
5325
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/fa.js
5325
+ // ../../node_modules/zod/v4/locales/fa.js
5326
5326
  var error11 = () => {
5327
5327
  const Sizable = {
5328
5328
  string: { unit: "کاراکتر", verb: "داشته باشد" },
@@ -5444,7 +5444,7 @@ function fa_default() {
5444
5444
  localeError: error11()
5445
5445
  };
5446
5446
  }
5447
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/fi.js
5447
+ // ../../node_modules/zod/v4/locales/fi.js
5448
5448
  var error12 = () => {
5449
5449
  const Sizable = {
5450
5450
  string: { unit: "merkkiä", subject: "merkkijonon" },
@@ -5566,7 +5566,7 @@ function fi_default() {
5566
5566
  localeError: error12()
5567
5567
  };
5568
5568
  }
5569
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/fr.js
5569
+ // ../../node_modules/zod/v4/locales/fr.js
5570
5570
  var error13 = () => {
5571
5571
  const Sizable = {
5572
5572
  string: { unit: "caractères", verb: "avoir" },
@@ -5682,7 +5682,7 @@ function fr_default() {
5682
5682
  localeError: error13()
5683
5683
  };
5684
5684
  }
5685
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/fr-CA.js
5685
+ // ../../node_modules/zod/v4/locales/fr-CA.js
5686
5686
  var error14 = () => {
5687
5687
  const Sizable = {
5688
5688
  string: { unit: "caractères", verb: "avoir" },
@@ -5799,7 +5799,7 @@ function fr_CA_default() {
5799
5799
  localeError: error14()
5800
5800
  };
5801
5801
  }
5802
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/he.js
5802
+ // ../../node_modules/zod/v4/locales/he.js
5803
5803
  var error15 = () => {
5804
5804
  const Sizable = {
5805
5805
  string: { unit: "אותיות", verb: "לכלול" },
@@ -5915,7 +5915,7 @@ function he_default() {
5915
5915
  localeError: error15()
5916
5916
  };
5917
5917
  }
5918
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/hu.js
5918
+ // ../../node_modules/zod/v4/locales/hu.js
5919
5919
  var error16 = () => {
5920
5920
  const Sizable = {
5921
5921
  string: { unit: "karakter", verb: "legyen" },
@@ -6031,7 +6031,7 @@ function hu_default() {
6031
6031
  localeError: error16()
6032
6032
  };
6033
6033
  }
6034
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/id.js
6034
+ // ../../node_modules/zod/v4/locales/id.js
6035
6035
  var error17 = () => {
6036
6036
  const Sizable = {
6037
6037
  string: { unit: "karakter", verb: "memiliki" },
@@ -6147,7 +6147,7 @@ function id_default() {
6147
6147
  localeError: error17()
6148
6148
  };
6149
6149
  }
6150
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/is.js
6150
+ // ../../node_modules/zod/v4/locales/is.js
6151
6151
  var parsedType3 = (data) => {
6152
6152
  const t = typeof data;
6153
6153
  switch (t) {
@@ -6264,7 +6264,7 @@ function is_default() {
6264
6264
  localeError: error18()
6265
6265
  };
6266
6266
  }
6267
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/it.js
6267
+ // ../../node_modules/zod/v4/locales/it.js
6268
6268
  var error19 = () => {
6269
6269
  const Sizable = {
6270
6270
  string: { unit: "caratteri", verb: "avere" },
@@ -6380,7 +6380,7 @@ function it_default() {
6380
6380
  localeError: error19()
6381
6381
  };
6382
6382
  }
6383
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ja.js
6383
+ // ../../node_modules/zod/v4/locales/ja.js
6384
6384
  var error20 = () => {
6385
6385
  const Sizable = {
6386
6386
  string: { unit: "文字", verb: "である" },
@@ -6495,7 +6495,7 @@ function ja_default() {
6495
6495
  localeError: error20()
6496
6496
  };
6497
6497
  }
6498
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ka.js
6498
+ // ../../node_modules/zod/v4/locales/ka.js
6499
6499
  var parsedType4 = (data) => {
6500
6500
  const t = typeof data;
6501
6501
  switch (t) {
@@ -6620,7 +6620,7 @@ function ka_default() {
6620
6620
  localeError: error21()
6621
6621
  };
6622
6622
  }
6623
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/km.js
6623
+ // ../../node_modules/zod/v4/locales/km.js
6624
6624
  var error22 = () => {
6625
6625
  const Sizable = {
6626
6626
  string: { unit: "តួអក្សរ", verb: "គួរមាន" },
@@ -6738,11 +6738,11 @@ function km_default() {
6738
6738
  };
6739
6739
  }
6740
6740
 
6741
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/kh.js
6741
+ // ../../node_modules/zod/v4/locales/kh.js
6742
6742
  function kh_default() {
6743
6743
  return km_default();
6744
6744
  }
6745
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ko.js
6745
+ // ../../node_modules/zod/v4/locales/ko.js
6746
6746
  var error23 = () => {
6747
6747
  const Sizable = {
6748
6748
  string: { unit: "문자", verb: "to have" },
@@ -6863,7 +6863,7 @@ function ko_default() {
6863
6863
  localeError: error23()
6864
6864
  };
6865
6865
  }
6866
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/lt.js
6866
+ // ../../node_modules/zod/v4/locales/lt.js
6867
6867
  var parsedType5 = (data) => {
6868
6868
  const t = typeof data;
6869
6869
  return parsedTypeFromType(t, data);
@@ -7092,7 +7092,7 @@ function lt_default() {
7092
7092
  localeError: error24()
7093
7093
  };
7094
7094
  }
7095
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/mk.js
7095
+ // ../../node_modules/zod/v4/locales/mk.js
7096
7096
  var error25 = () => {
7097
7097
  const Sizable = {
7098
7098
  string: { unit: "знаци", verb: "да имаат" },
@@ -7209,7 +7209,7 @@ function mk_default() {
7209
7209
  localeError: error25()
7210
7210
  };
7211
7211
  }
7212
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ms.js
7212
+ // ../../node_modules/zod/v4/locales/ms.js
7213
7213
  var error26 = () => {
7214
7214
  const Sizable = {
7215
7215
  string: { unit: "aksara", verb: "mempunyai" },
@@ -7325,7 +7325,7 @@ function ms_default() {
7325
7325
  localeError: error26()
7326
7326
  };
7327
7327
  }
7328
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/nl.js
7328
+ // ../../node_modules/zod/v4/locales/nl.js
7329
7329
  var error27 = () => {
7330
7330
  const Sizable = {
7331
7331
  string: { unit: "tekens" },
@@ -7442,7 +7442,7 @@ function nl_default() {
7442
7442
  localeError: error27()
7443
7443
  };
7444
7444
  }
7445
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/no.js
7445
+ // ../../node_modules/zod/v4/locales/no.js
7446
7446
  var error28 = () => {
7447
7447
  const Sizable = {
7448
7448
  string: { unit: "tegn", verb: "å ha" },
@@ -7558,7 +7558,7 @@ function no_default() {
7558
7558
  localeError: error28()
7559
7559
  };
7560
7560
  }
7561
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ota.js
7561
+ // ../../node_modules/zod/v4/locales/ota.js
7562
7562
  var error29 = () => {
7563
7563
  const Sizable = {
7564
7564
  string: { unit: "harf", verb: "olmalıdır" },
@@ -7674,7 +7674,7 @@ function ota_default() {
7674
7674
  localeError: error29()
7675
7675
  };
7676
7676
  }
7677
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ps.js
7677
+ // ../../node_modules/zod/v4/locales/ps.js
7678
7678
  var error30 = () => {
7679
7679
  const Sizable = {
7680
7680
  string: { unit: "توکي", verb: "ولري" },
@@ -7796,7 +7796,7 @@ function ps_default() {
7796
7796
  localeError: error30()
7797
7797
  };
7798
7798
  }
7799
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/pl.js
7799
+ // ../../node_modules/zod/v4/locales/pl.js
7800
7800
  var error31 = () => {
7801
7801
  const Sizable = {
7802
7802
  string: { unit: "znaków", verb: "mieć" },
@@ -7913,7 +7913,7 @@ function pl_default() {
7913
7913
  localeError: error31()
7914
7914
  };
7915
7915
  }
7916
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/pt.js
7916
+ // ../../node_modules/zod/v4/locales/pt.js
7917
7917
  var error32 = () => {
7918
7918
  const Sizable = {
7919
7919
  string: { unit: "caracteres", verb: "ter" },
@@ -8029,7 +8029,7 @@ function pt_default() {
8029
8029
  localeError: error32()
8030
8030
  };
8031
8031
  }
8032
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ru.js
8032
+ // ../../node_modules/zod/v4/locales/ru.js
8033
8033
  function getRussianPlural(count, one, few, many) {
8034
8034
  const absCount = Math.abs(count);
8035
8035
  const lastDigit = absCount % 10;
@@ -8193,7 +8193,7 @@ function ru_default() {
8193
8193
  localeError: error33()
8194
8194
  };
8195
8195
  }
8196
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/sl.js
8196
+ // ../../node_modules/zod/v4/locales/sl.js
8197
8197
  var error34 = () => {
8198
8198
  const Sizable = {
8199
8199
  string: { unit: "znakov", verb: "imeti" },
@@ -8310,7 +8310,7 @@ function sl_default() {
8310
8310
  localeError: error34()
8311
8311
  };
8312
8312
  }
8313
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/sv.js
8313
+ // ../../node_modules/zod/v4/locales/sv.js
8314
8314
  var error35 = () => {
8315
8315
  const Sizable = {
8316
8316
  string: { unit: "tecken", verb: "att ha" },
@@ -8428,7 +8428,7 @@ function sv_default() {
8428
8428
  localeError: error35()
8429
8429
  };
8430
8430
  }
8431
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ta.js
8431
+ // ../../node_modules/zod/v4/locales/ta.js
8432
8432
  var error36 = () => {
8433
8433
  const Sizable = {
8434
8434
  string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
@@ -8545,7 +8545,7 @@ function ta_default() {
8545
8545
  localeError: error36()
8546
8546
  };
8547
8547
  }
8548
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/th.js
8548
+ // ../../node_modules/zod/v4/locales/th.js
8549
8549
  var error37 = () => {
8550
8550
  const Sizable = {
8551
8551
  string: { unit: "ตัวอักษร", verb: "ควรมี" },
@@ -8662,7 +8662,7 @@ function th_default() {
8662
8662
  localeError: error37()
8663
8663
  };
8664
8664
  }
8665
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/tr.js
8665
+ // ../../node_modules/zod/v4/locales/tr.js
8666
8666
  var parsedType6 = (data) => {
8667
8667
  const t = typeof data;
8668
8668
  switch (t) {
@@ -8777,7 +8777,7 @@ function tr_default() {
8777
8777
  localeError: error38()
8778
8778
  };
8779
8779
  }
8780
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/uk.js
8780
+ // ../../node_modules/zod/v4/locales/uk.js
8781
8781
  var error39 = () => {
8782
8782
  const Sizable = {
8783
8783
  string: { unit: "символів", verb: "матиме" },
@@ -8894,11 +8894,11 @@ function uk_default() {
8894
8894
  };
8895
8895
  }
8896
8896
 
8897
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ua.js
8897
+ // ../../node_modules/zod/v4/locales/ua.js
8898
8898
  function ua_default() {
8899
8899
  return uk_default();
8900
8900
  }
8901
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ur.js
8901
+ // ../../node_modules/zod/v4/locales/ur.js
8902
8902
  var error40 = () => {
8903
8903
  const Sizable = {
8904
8904
  string: { unit: "حروف", verb: "ہونا" },
@@ -9015,7 +9015,7 @@ function ur_default() {
9015
9015
  localeError: error40()
9016
9016
  };
9017
9017
  }
9018
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/vi.js
9018
+ // ../../node_modules/zod/v4/locales/vi.js
9019
9019
  var error41 = () => {
9020
9020
  const Sizable = {
9021
9021
  string: { unit: "ký tự", verb: "có" },
@@ -9131,7 +9131,7 @@ function vi_default() {
9131
9131
  localeError: error41()
9132
9132
  };
9133
9133
  }
9134
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/zh-CN.js
9134
+ // ../../node_modules/zod/v4/locales/zh-CN.js
9135
9135
  var error42 = () => {
9136
9136
  const Sizable = {
9137
9137
  string: { unit: "字符", verb: "包含" },
@@ -9247,7 +9247,7 @@ function zh_CN_default() {
9247
9247
  localeError: error42()
9248
9248
  };
9249
9249
  }
9250
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/zh-TW.js
9250
+ // ../../node_modules/zod/v4/locales/zh-TW.js
9251
9251
  var error43 = () => {
9252
9252
  const Sizable = {
9253
9253
  string: { unit: "字元", verb: "擁有" },
@@ -9364,7 +9364,7 @@ function zh_TW_default() {
9364
9364
  localeError: error43()
9365
9365
  };
9366
9366
  }
9367
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/yo.js
9367
+ // ../../node_modules/zod/v4/locales/yo.js
9368
9368
  var error44 = () => {
9369
9369
  const Sizable = {
9370
9370
  string: { unit: "àmi", verb: "ní" },
@@ -9479,7 +9479,7 @@ function yo_default() {
9479
9479
  localeError: error44()
9480
9480
  };
9481
9481
  }
9482
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/registries.js
9482
+ // ../../node_modules/zod/v4/core/registries.js
9483
9483
  var $output = Symbol("ZodOutput");
9484
9484
  var $input = Symbol("ZodInput");
9485
9485
 
@@ -9530,7 +9530,7 @@ function registry() {
9530
9530
  return new $ZodRegistry;
9531
9531
  }
9532
9532
  var globalRegistry = /* @__PURE__ */ registry();
9533
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/api.js
9533
+ // ../../node_modules/zod/v4/core/api.js
9534
9534
  function _string(Class2, params) {
9535
9535
  return new Class2({
9536
9536
  type: "string",
@@ -10408,7 +10408,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
10408
10408
  const inst = new Class2(def);
10409
10409
  return inst;
10410
10410
  }
10411
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/to-json-schema.js
10411
+ // ../../node_modules/zod/v4/core/to-json-schema.js
10412
10412
  class JSONSchemaGenerator {
10413
10413
  constructor(params) {
10414
10414
  this.counter = 0;
@@ -11212,9 +11212,9 @@ function isTransforming(_schema, _ctx) {
11212
11212
  }
11213
11213
  throw new Error(`Unknown schema type: ${def.type}`);
11214
11214
  }
11215
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/json-schema.js
11215
+ // ../../node_modules/zod/v4/core/json-schema.js
11216
11216
  var exports_json_schema = {};
11217
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/iso.js
11217
+ // ../../node_modules/zod/v4/classic/iso.js
11218
11218
  var exports_iso = {};
11219
11219
  __export(exports_iso, {
11220
11220
  time: () => time2,
@@ -11255,7 +11255,7 @@ function duration2(params) {
11255
11255
  return _isoDuration(ZodISODuration, params);
11256
11256
  }
11257
11257
 
11258
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/errors.js
11258
+ // ../../node_modules/zod/v4/classic/errors.js
11259
11259
  var initializer2 = (inst, issues) => {
11260
11260
  $ZodError.init(inst, issues);
11261
11261
  inst.name = "ZodError";
@@ -11290,7 +11290,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
11290
11290
  Parent: Error
11291
11291
  });
11292
11292
 
11293
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/parse.js
11293
+ // ../../node_modules/zod/v4/classic/parse.js
11294
11294
  var parse3 = /* @__PURE__ */ _parse(ZodRealError);
11295
11295
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
11296
11296
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -11304,7 +11304,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
11304
11304
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
11305
11305
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
11306
11306
 
11307
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/schemas.js
11307
+ // ../../node_modules/zod/v4/classic/schemas.js
11308
11308
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
11309
11309
  $ZodType.init(inst, def);
11310
11310
  inst.def = def;
@@ -12279,7 +12279,7 @@ function json(params) {
12279
12279
  function preprocess(fn, schema) {
12280
12280
  return pipe(transform(fn), schema);
12281
12281
  }
12282
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/compat.js
12282
+ // ../../node_modules/zod/v4/classic/compat.js
12283
12283
  var ZodIssueCode = {
12284
12284
  invalid_type: "invalid_type",
12285
12285
  too_big: "too_big",
@@ -12303,7 +12303,7 @@ function getErrorMap() {
12303
12303
  }
12304
12304
  var ZodFirstPartyTypeKind;
12305
12305
  (function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
12306
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/coerce.js
12306
+ // ../../node_modules/zod/v4/classic/coerce.js
12307
12307
  var exports_coerce = {};
12308
12308
  __export(exports_coerce, {
12309
12309
  string: () => string3,
@@ -12328,9 +12328,9 @@ function date4(params) {
12328
12328
  return _coercedDate(ZodDate, params);
12329
12329
  }
12330
12330
 
12331
- // ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/external.js
12331
+ // ../../node_modules/zod/v4/classic/external.js
12332
12332
  config(en_default());
12333
- // ../../node_modules/.bun/@opencode-ai+plugin@1.1.12/node_modules/@opencode-ai/plugin/dist/tool.js
12333
+ // ../../node_modules/@opencode-ai/plugin/dist/tool.js
12334
12334
  function tool(input) {
12335
12335
  return input;
12336
12336
  }
@@ -15503,70 +15503,6 @@ var require_dist2 = __commonJS((exports) => {
15503
15503
  exports.createDeferred = deferred;
15504
15504
  exports.default = deferred;
15505
15505
  });
15506
- var require_strip_json_comments = __commonJS((exports, module) => {
15507
- var singleComment = 1;
15508
- var multiComment = 2;
15509
- function stripWithoutWhitespace() {
15510
- return "";
15511
- }
15512
- function stripWithWhitespace(str, start, end) {
15513
- return str.slice(start, end).replace(/\S/g, " ");
15514
- }
15515
- module.exports = function(str, opts) {
15516
- opts = opts || {};
15517
- var currentChar;
15518
- var nextChar;
15519
- var insideString = false;
15520
- var insideComment = false;
15521
- var offset = 0;
15522
- var ret = "";
15523
- var strip = opts.whitespace === false ? stripWithoutWhitespace : stripWithWhitespace;
15524
- for (var i = 0;i < str.length; i++) {
15525
- currentChar = str[i];
15526
- nextChar = str[i + 1];
15527
- if (!insideComment && currentChar === '"') {
15528
- var escaped = str[i - 1] === "\\" && str[i - 2] !== "\\";
15529
- if (!escaped) {
15530
- insideString = !insideString;
15531
- }
15532
- }
15533
- if (insideString) {
15534
- continue;
15535
- }
15536
- if (!insideComment && currentChar + nextChar === "//") {
15537
- ret += str.slice(offset, i);
15538
- offset = i;
15539
- insideComment = singleComment;
15540
- i++;
15541
- } else if (insideComment === singleComment && currentChar + nextChar === `\r
15542
- `) {
15543
- i++;
15544
- insideComment = false;
15545
- ret += strip(str, offset, i);
15546
- offset = i;
15547
- continue;
15548
- } else if (insideComment === singleComment && currentChar === `
15549
- `) {
15550
- insideComment = false;
15551
- ret += strip(str, offset, i);
15552
- offset = i;
15553
- } else if (!insideComment && currentChar + nextChar === "/*") {
15554
- ret += str.slice(offset, i);
15555
- offset = i;
15556
- insideComment = multiComment;
15557
- i++;
15558
- continue;
15559
- } else if (insideComment === multiComment && currentChar + nextChar === "*/") {
15560
- i++;
15561
- insideComment = false;
15562
- ret += strip(str, offset, i + 1);
15563
- offset = i + 1;
15564
- continue;
15565
- }
15566
- }
15567
- return ret + (insideComment ? strip(str.substr(offset)) : str.substr(offset));
15568
- };
15569
- });
15570
15506
  var DEFAULT_AGENT_MODELS = {
15571
15507
  "hive-master": "github-copilot/claude-opus-4.5",
15572
15508
  "architect-planner": "github-copilot/gpt-5.2-codex",
@@ -15581,6 +15517,7 @@ var DEFAULT_HIVE_CONFIG = {
15581
15517
  disableSkills: [],
15582
15518
  disableMcps: [],
15583
15519
  agentMode: "unified",
15520
+ delegateMode: "task",
15584
15521
  agents: {
15585
15522
  "hive-master": {
15586
15523
  model: DEFAULT_AGENT_MODELS["hive-master"],
@@ -16493,7 +16430,7 @@ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
16493
16430
  var __esm = (fn, res) => function __init() {
16494
16431
  return fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])(fn = 0)), res;
16495
16432
  };
16496
- var __commonJS2 = (cb, mod) => function __require() {
16433
+ var __commonJS2 = (cb, mod) => function __require22() {
16497
16434
  return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16498
16435
  };
16499
16436
  var __export2 = (target, all) => {
@@ -20984,8 +20921,6 @@ ${f.content}`);
20984
20921
  return `${normalized}.md`;
20985
20922
  }
20986
20923
  }
20987
- var import_strip_json_comments = __toESM(require_strip_json_comments(), 1);
20988
-
20989
20924
  class ConfigService {
20990
20925
  configPath;
20991
20926
  constructor() {
@@ -21065,34 +21000,6 @@ class ConfigService {
21065
21000
  }
21066
21001
  return this.get();
21067
21002
  }
21068
- registerAgentsInOpenCode(agents) {
21069
- const homeDir = process.env.HOME || process.env.USERPROFILE || "";
21070
- const opencodePath = path6.join(homeDir, ".config", "opencode", "opencode.json");
21071
- try {
21072
- if (!fs10.existsSync(opencodePath)) {
21073
- return;
21074
- }
21075
- const raw = fs10.readFileSync(opencodePath, "utf-8");
21076
- const config2 = JSON.parse(import_strip_json_comments.default(raw));
21077
- if (!config2.agent) {
21078
- config2.agent = {};
21079
- }
21080
- for (const [name, agentConfig] of Object.entries(agents)) {
21081
- if (!config2.agent[name]) {
21082
- config2.agent[name] = agentConfig;
21083
- } else {
21084
- config2.agent[name] = {
21085
- ...agentConfig,
21086
- model: config2.agent[name].model || agentConfig.model,
21087
- temperature: config2.agent[name].temperature ?? agentConfig.temperature
21088
- };
21089
- }
21090
- }
21091
- fs10.writeFileSync(opencodePath, JSON.stringify(config2, null, 2));
21092
- } catch (err) {
21093
- console.error("[Hive] Failed to register agents in opencode.json:", err);
21094
- }
21095
- }
21096
21003
  getAgentConfig(agent) {
21097
21004
  const config2 = this.get();
21098
21005
  const agentConfig = config2.agents?.[agent] ?? {};
@@ -21122,6 +21029,13 @@ class ConfigService {
21122
21029
  const config2 = this.get();
21123
21030
  return config2.disableMcps ?? [];
21124
21031
  }
21032
+ getDelegateMode() {
21033
+ const config2 = this.get();
21034
+ return config2.delegateMode ?? "task";
21035
+ }
21036
+ isHiveBackgroundEnabled() {
21037
+ return this.getDelegateMode() === "hive";
21038
+ }
21125
21039
  }
21126
21040
 
21127
21041
  // src/utils/worker-prompt.ts
@@ -23115,6 +23029,8 @@ var plugin = async (ctx) => {
23115
23029
  client,
23116
23030
  projectRoot: directory
23117
23031
  });
23032
+ const delegateMode = configService.getDelegateMode();
23033
+ const useHiveBackground = delegateMode === "hive";
23118
23034
  const backgroundTools = createBackgroundTools(backgroundManager, client, configService);
23119
23035
  const isOmoSlimEnabled = () => {
23120
23036
  return configService.isOmoSlimEnabled();
@@ -23208,9 +23124,11 @@ To unblock: Remove .hive/features/${feature}/BLOCKED`;
23208
23124
  mcp: builtinMcps,
23209
23125
  tool: {
23210
23126
  hive_skill: createHiveSkillTool(filteredSkills),
23211
- hive_background_task: backgroundTools.hive_background_task,
23212
- hive_background_output: backgroundTools.hive_background_output,
23213
- hive_background_cancel: backgroundTools.hive_background_cancel,
23127
+ ...useHiveBackground && {
23128
+ hive_background_task: backgroundTools.hive_background_task,
23129
+ hive_background_output: backgroundTools.hive_background_output,
23130
+ hive_background_cancel: backgroundTools.hive_background_cancel
23131
+ },
23214
23132
  hive_feature_create: tool({
23215
23133
  description: "Create a new feature and set it as active",
23216
23134
  args: {
@@ -23570,33 +23488,60 @@ ${priorTasksFormatted}
23570
23488
  const relativePromptPath = path7.relative(directory, workerPromptPath);
23571
23489
  const PREVIEW_MAX_LENGTH = 200;
23572
23490
  const workerPromptPreview = workerPrompt.length > PREVIEW_MAX_LENGTH ? workerPrompt.slice(0, PREVIEW_MAX_LENGTH) + "..." : workerPrompt;
23491
+ const hiveBackgroundInstructions = `## Delegation Required
23492
+
23493
+ Call the hive_background_task tool to spawn a Forager (Worker/Coder) worker.
23494
+
23495
+ \`backgroundTaskCall\` contains the canonical tool arguments.
23496
+
23497
+ - Add \`sync: true\` if you need the result in this session.
23498
+ - Otherwise omit \`sync\`. Wait for the completion notification (no polling required). After the <system-reminder> arrives, call \`hive_background_output({ task_id: "<id>", block: false })\` once to fetch the final result.
23499
+
23500
+ Troubleshooting: if you see "Unknown parameter: workdir", your hive_background_task tool is not Hive's provider. Ensure agent-hive loads after other background_* tool providers, then re-run hive_exec_start.`;
23501
+ const taskToolInstructions = `## Delegation Required
23502
+
23503
+ Use OpenCode's built-in \`task\` tool to spawn a Forager (Worker/Coder) worker.
23504
+
23505
+ \`\`\`
23506
+ task({
23507
+ subagent_type: "${agent}",
23508
+ description: "Hive: ${task}",
23509
+ prompt: <read the file at ${relativePromptPath}>
23510
+ })
23511
+ \`\`\`
23512
+
23513
+ Read the prompt file at \`${relativePromptPath}\` and pass its content to the task tool.
23514
+
23515
+ Note: delegateMode is set to 'task' in agent_hive.json. To use Hive's background tools instead, set delegateMode to 'hive'.`;
23516
+ const delegationInstructions = useHiveBackground ? hiveBackgroundInstructions : taskToolInstructions;
23573
23517
  const responseBase = {
23574
23518
  worktreePath: worktree.path,
23575
23519
  branch: worktree.branch,
23576
23520
  mode: "delegate",
23521
+ delegateMode,
23577
23522
  agent,
23578
23523
  delegationRequired: true,
23579
23524
  workerPromptPath: relativePromptPath,
23580
23525
  workerPromptPreview,
23581
- backgroundTaskCall: {
23582
- promptFile: workerPromptPath,
23583
- description: `Hive: ${task}`,
23584
- workdir: worktree.path,
23585
- idempotencyKey,
23586
- feature,
23587
- task,
23588
- attempt
23526
+ ...useHiveBackground && {
23527
+ backgroundTaskCall: {
23528
+ promptFile: workerPromptPath,
23529
+ description: `Hive: ${task}`,
23530
+ workdir: worktree.path,
23531
+ idempotencyKey,
23532
+ feature,
23533
+ task,
23534
+ attempt
23535
+ }
23589
23536
  },
23590
- instructions: `## Delegation Required
23591
-
23592
- Call the hive_background_task tool to spawn a Forager (Worker/Coder) worker.
23593
-
23594
- \`backgroundTaskCall\` contains the canonical tool arguments.
23595
-
23596
- - Add \`sync: true\` if you need the result in this session.
23597
- - Otherwise omit \`sync\`. Wait for the completion notification (no polling required). After the <system-reminder> arrives, call \`hive_background_output({ task_id: "<id>", block: false })\` once to fetch the final result.
23598
-
23599
- Troubleshooting: if you see "Unknown parameter: workdir", your hive_background_task tool is not Hive's provider. Ensure agent-hive loads after other background_* tool providers, then re-run hive_exec_start.`
23537
+ ...!useHiveBackground && {
23538
+ taskToolCall: {
23539
+ subagent_type: agent,
23540
+ description: `Hive: ${task}`,
23541
+ promptFile: relativePromptPath
23542
+ }
23543
+ },
23544
+ instructions: delegationInstructions
23600
23545
  };
23601
23546
  const jsonPayload = JSON.stringify(responseBase, null, 2);
23602
23547
  const payloadMeta = calculatePayloadMeta({
@@ -23825,8 +23770,9 @@ Use hive_merge to integrate changes. Worktree preserved at ${worktree?.path || "
23825
23770
  ⚠️ ${stuckWorkers} worker(s) may be stuck (no activity for 10+ minutes). Consider cancelling or investigating.` : "";
23826
23771
  return JSON.stringify({
23827
23772
  feature,
23773
+ delegateMode,
23828
23774
  omoSlimEnabled: isOmoSlimEnabled(),
23829
- backgroundTaskProvider: "hive",
23775
+ backgroundTaskProvider: useHiveBackground ? "hive" : "task",
23830
23776
  workers,
23831
23777
  summary: {
23832
23778
  stuckWorkers
@@ -24182,15 +24128,21 @@ Make the requested changes, then call hive_request_review again.`;
24182
24128
  skill: "allow"
24183
24129
  }
24184
24130
  };
24185
- const allAgents = {
24186
- "hive-master": hiveConfig,
24187
- "architect-planner": architectConfig,
24188
- "swarm-orchestrator": swarmConfig,
24189
- "scout-researcher": scoutConfig,
24190
- "forager-worker": foragerConfig,
24191
- "hygienic-reviewer": hygienicConfig
24192
- };
24193
- configService.registerAgentsInOpenCode(allAgents);
24131
+ const hiveConfigData = configService.get();
24132
+ const agentMode = hiveConfigData.agentMode ?? "unified";
24133
+ const allAgents = {};
24134
+ if (agentMode === "unified") {
24135
+ allAgents["hive-master"] = hiveConfig;
24136
+ allAgents["scout-researcher"] = scoutConfig;
24137
+ allAgents["forager-worker"] = foragerConfig;
24138
+ allAgents["hygienic-reviewer"] = hygienicConfig;
24139
+ } else {
24140
+ allAgents["architect-planner"] = architectConfig;
24141
+ allAgents["swarm-orchestrator"] = swarmConfig;
24142
+ allAgents["scout-researcher"] = scoutConfig;
24143
+ allAgents["forager-worker"] = foragerConfig;
24144
+ allAgents["hygienic-reviewer"] = hygienicConfig;
24145
+ }
24194
24146
  const configAgent = opencodeConfig.agent;
24195
24147
  if (!configAgent) {
24196
24148
  opencodeConfig.agent = allAgents;
@@ -24210,7 +24162,7 @@ Make the requested changes, then call hive_request_review again.`;
24210
24162
  delete configAgent["hygienic-reviewer"];
24211
24163
  Object.assign(configAgent, allAgents);
24212
24164
  }
24213
- opencodeConfig.default_agent = "hive-master";
24165
+ opencodeConfig.default_agent = agentMode === "unified" ? "hive-master" : "architect-planner";
24214
24166
  const configMcp = opencodeConfig.mcp;
24215
24167
  if (!configMcp) {
24216
24168
  opencodeConfig.mcp = builtinMcps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-hive",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for Agent Hive - from vibe coding to hive coding",
6
6
  "license": "MIT WITH Commons-Clause",