@lotics/cli 0.283.0 → 0.284.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.
@@ -106,6 +106,13 @@ the create-tool description for the reference; here is the capability:
106
106
  - **Conditional sections** — a block shown only when a condition holds (a "paid" stamp, an
107
107
  optional notes block). Excel/HTML/email use `{{#if}}…{{else}}…{{/if}}`; Word uses `{{IF name}}…{{END-IF name}}`.
108
108
 
109
+ The `html` and `email` types format a raw value with a helper, in the template's `locale` (`vi` or `en`, set at
110
+ create or update; none prints in the organization's language); an empty value prints `""`:
111
+ `{{money total "VND"}}` → `28.000.000 ₫` (`en`: `₫28,000,000`), `{{number qty}}` → grouped, up to 2 decimals,
112
+ `{{date issued_on}}` → `14/09/2026` (a moment on the workspace's timezone; a date-fns pattern as the second argument,
113
+ literal text quoted: `"'Ngày' dd"`), and `{{words total "USD"}}` → `Một nghìn đô la Mỹ năm mươi xu` (`en`: `One
114
+ thousand US dollars and fifty cents`; no code reads VND). A value the helper cannot read fails the render.
115
+
109
116
  Run `lotics tools create_excel_template`, `create_word_template`, `create_pdf_template`, or
110
117
  `create_email_template` for each engine's exact marker grammar and helper list — don't guess it.
111
118
 
package/docs/workflows.md CHANGED
@@ -231,7 +231,7 @@ Called as `size(arr)`. The method form works only where the name is also a JavaS
231
231
  `replaceAll`, `substring`, `length`, `split`, `join`, `padStart(str, length, char)`,
232
232
  `padEnd(str, length, char)`, `formatNumber(x, decimals)` (ungrouped, as `x.toFixed`),
233
233
  `formatDecimal(x, decimals, locale)` (grouped: `formatDecimal(151000, 0, "vi-VN")` is `151.000`),
234
- `numberToWords` (an integer in Vietnamese words)
234
+ `numberToWords(x, lang?)` (an integer in words: Vietnamese, or English with `"en"`)
235
235
  - **Objects**: `keys`, `values`, `entries`, `nonNullKeys`, `pick`, `omit`, `merge`
236
236
  - **Dates**, in the workspace's timezone: `now`, `formatDate`, `parseDate`, `addDays`, `subDays`,
237
237
  `addHours`, `subHours`, `addMinutes`, `subMinutes`, `startOfDay`, `endOfDay`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/cli",
3
- "version": "0.283.0",
3
+ "version": "0.284.0",
4
4
  "description": "Lotics SDK and CLI for AI agents",
5
5
  "type": "module",
6
6
  "bin": {