@coffer-org/plugin-orchestrator 2.0.0 → 2.1.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/schema.js +23 -30
  2. package/package.json +4 -4
package/dist/schema.js CHANGED
@@ -4391,11 +4391,11 @@ function resolveUnits(u) {
4391
4391
  //#endregion
4392
4392
  //#region ../sdk/src/currencies.ts
4393
4393
  /**
4394
- * Валюти з вбудованого `Intl` (ISO 4217) БЕЗ hand-list і без npm-залежності.
4395
- * Коди `Intl.supportedValuesOf('currency')`; символи/назви локалізовані через
4394
+ * Currencies from built-in `Intl` (ISO 4217), with NO hand list or npm dependency.
4395
+ * Codes come from `Intl.supportedValuesOf('currency')`; symbols/names are localized through
4396
4396
  * `Intl.NumberFormat`/`Intl.DisplayNames`.
4397
4397
  */
4398
- /** Усі ISO 4217 коди. Fallback кілька основних (на випадок старого рантайму). */
4398
+ /** All ISO 4217 codes. Fallback: several major codes for older runtimes. */
4399
4399
  var CURRENCY_CODES = (() => {
4400
4400
  try {
4401
4401
  return Intl.supportedValuesOf("currency");
@@ -4410,26 +4410,26 @@ var CURRENCY_CODES = (() => {
4410
4410
  }
4411
4411
  })();
4412
4412
  var CODE_SET = new Set(CURRENCY_CODES);
4413
- /** Чи валідний ISO 4217 код. */
4413
+ /** Whether an ISO 4217 code is valid. */
4414
4414
  var isCurrencyCode = (c) => CODE_SET.has(c);
4415
4415
  //#endregion
4416
4416
  //#region ../sdk/src/fields/validation.ts
4417
- /** Структуроване повідомлення для zod: JSON {code, params}. Декодує mutate.ts. */
4417
+ /** Structured message for zod: JSON {code, params}. Decoded by mutate.ts. */
4418
4418
  function vmsg(code, params) {
4419
4419
  return JSON.stringify(params ? {
4420
4420
  code,
4421
4421
  params
4422
4422
  } : { code });
4423
4423
  }
4424
- /** v4 error-map: повідомлення для відсутнього значення (колишній required_error). */
4424
+ /** v4 error-map: message for a missing value (formerly required_error). */
4425
4425
  function reqErr(code = "required") {
4426
4426
  return { error: (iss) => iss.input === void 0 ? vmsg(code) : void 0 };
4427
4427
  }
4428
- /** v4 error-map: повідомлення для невалідного типу (колишній invalid_type_error). */
4428
+ /** v4 error-map: message for an invalid type (formerly invalid_type_error). */
4429
4429
  function typeErr(code = "invalid_type") {
4430
4430
  return { error: (iss) => iss.code === "invalid_type" ? vmsg(code) : void 0 };
4431
4431
  }
4432
- /** v4 error-map: required + invalid_type разом (колишні required_error + invalid_type_error). */
4432
+ /** v4 error-map: required + invalid_type together (formerly required_error + invalid_type_error). */
4433
4433
  function reqTypeErr() {
4434
4434
  return { error: (iss) => iss.code === "invalid_type" ? iss.input === void 0 ? vmsg("required") : vmsg("invalid_type") : void 0 };
4435
4435
  }
@@ -4447,10 +4447,10 @@ function jsonValue(raw) {
4447
4447
  return raw;
4448
4448
  }
4449
4449
  /**
4450
- * Фабрика для полів, що зберігають JSON і валідуються вкладеною zod-схемою.
4451
- * Приймає нативне object/array (native form-state) АБО JSON-рядок (legacy).
4452
- * Single-parse через jsonValue → inner.safeParse → issue `code`; рядок, що не
4453
- * розпарсився, лишається рядкомкод 'json'.
4450
+ * Factory for fields that store JSON and validate it with a nested zod schema.
4451
+ * Accepts a native object/array (native form state) OR a JSON string (legacy).
4452
+ * Single parse through jsonValue → inner.safeParse → issue `code`; an unparseable
4453
+ * string remains a string code 'json'.
4454
4454
  */
4455
4455
  function jsonRefined(inner, code) {
4456
4456
  return unknown().superRefine((raw, ctx) => {
@@ -4522,16 +4522,16 @@ function normalizeOpts(rawIn) {
4522
4522
  //#endregion
4523
4523
  //#region ../sdk/src/field-presets.ts
4524
4524
  /**
4525
- * Пресети полів тонкі обгортки над базовими примітивами з fields.ts.
4525
+ * Field presets are thin wrappers around the primitives in fields.ts.
4526
4526
  *
4527
- * Кожен пресет = один kind (один віджет). Пресети не приймають `format` —
4528
- * вони самі є семантичними типами. min/max/step через `config`.
4527
+ * Each preset = one kind (one widget). Presets do not accept `format`;
4528
+ * they are semantic types themselves. min/max/step go through `config`.
4529
4529
  *
4530
- * Пресети додаються до `f` через `composeF`, який гарантує, що жоден пресет
4531
- * не перебиває примітив.
4530
+ * Presets are added to `f` through `composeF`, which guarantees no preset
4531
+ * overrides a primitive.
4532
4532
  *
4533
- * Циклічний імпорт з fields.ts безпечний: фабрики/хелпери hoisted-декларації,
4534
- * а пресети викликають їх лише в тілі своїх функцій.
4533
+ * The cyclic import from fields.ts is safe: factories/helpers are hoisted declarations,
4534
+ * and presets call them only inside their function bodies.
4535
4535
  */
4536
4536
  function email(raw) {
4537
4537
  const o = normalizeOpts(raw);
@@ -4705,9 +4705,9 @@ function link(raw) {
4705
4705
  }, o.multiple ?? false));
4706
4706
  }
4707
4707
  var TEL_RE = /^\+?[\d\s()-]{4,}$/;
4708
- /** Loose URL: будь-який scheme:// АБО host-з-крапкою (+опц. порт/шлях). Без пробілів. */
4708
+ /** Loose URL: any scheme:// OR dotted host (optional port/path). No spaces. */
4709
4709
  var LINK_RE = /^([a-z][a-z0-9+.-]*:\/\/\S+|[\w-]+(\.[\w-]+)+(:\d+)?(\/\S*)?)$/i;
4710
- /** CSS named colors (CSS Color Module L4) для f.colorname. */
4710
+ /** CSS named colors (CSS Color Module L4) for f.colorname. */
4711
4711
  var CSS_COLOR_NAMES = /* @__PURE__ */ new Set([
4712
4712
  "aliceblue",
4713
4713
  "antiquewhite",
@@ -4966,7 +4966,7 @@ function reminder(raw) {
4966
4966
  }
4967
4967
  var _real = real;
4968
4968
  var _int = int;
4969
- /** Відсоток 0..100 — real з rules:{min:0,max:100}. */
4969
+ /** Percentage 0..100 — real with rules:{min:0,max:100}. */
4970
4970
  function percent(o) {
4971
4971
  return _real({
4972
4972
  ...o,
@@ -4977,7 +4977,7 @@ function percent(o) {
4977
4977
  }
4978
4978
  });
4979
4979
  }
4980
- /** Рік — int з rules:{min:1900,max:2100}; межі можна перекрити через rules.min/max. */
4980
+ /** Year — int with rules:{min:1900,max:2100}; bounds can be overridden via rules.min/max. */
4981
4981
  function year(o) {
4982
4982
  return _int({
4983
4983
  ...o,
@@ -6027,13 +6027,6 @@ function wrapKey(opts, meta) {
6027
6027
  role: opts.role
6028
6028
  }
6029
6029
  };
6030
- if (opts.pinned) m = {
6031
- ...m,
6032
- hints: {
6033
- ...m.hints,
6034
- pinned: true
6035
- }
6036
- };
6037
6030
  if (opts.default !== void 0) m = {
6038
6031
  ...m,
6039
6032
  default: opts.default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coffer-org/plugin-orchestrator",
3
- "version": "2.0.0",
3
+ "version": "2.1.1",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=24"
@@ -25,9 +25,9 @@
25
25
  "postpack": "node ../../scripts/swap-exports.mjs src"
26
26
  },
27
27
  "dependencies": {
28
- "@coffer-org/sdk": "^2.0.0",
29
- "@coffer-org/server": "^2.0.1",
30
- "@coffer-org/plugin-claude-agent": "^2.0.0"
28
+ "@coffer-org/sdk": "^2.1.1",
29
+ "@coffer-org/server": "^2.2.2",
30
+ "@coffer-org/plugin-claude-agent": "^2.4.1"
31
31
  },
32
32
  "coffer": {
33
33
  "schema": "dist/schema.js"