@promptctl/go-template-js 0.3.0 → 0.5.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/README.md CHANGED
@@ -1,18 +1,46 @@
1
- # go-template-js
1
+ # @promptctl/go-template-js
2
2
 
3
3
  Go template syntax + Sprig subset, generic over output type, in TypeScript.
4
4
 
5
- - **Same syntax as Go's `text/template`** — templates that parse there parse here.
6
- - **Generic over the output type** — render to strings, structured fragments, or anything else.
7
- - **No silent flattening** — typed values never become strings without an explicit conversion.
5
+ [![npm](https://img.shields.io/npm/v/@promptctl/go-template-js.svg)](https://www.npmjs.com/package/@promptctl/go-template-js)
6
+ [![CI](https://github.com/promptctl/go-template-js/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/promptctl/go-template-js/actions/workflows/ci.yml)
7
+ [![Node](https://img.shields.io/node/v/@promptctl/go-template-js.svg)](https://nodejs.org)
8
+ [![License: MIT](https://img.shields.io/npm/l/@promptctl/go-template-js.svg)](./LICENSE)
9
+
10
+ ## Highlights
11
+
12
+ - **Same syntax as Go's `text/template`.** Templates that parse there parse here.
13
+ - **Generic over the output type `T`.** Render to strings, structured fragments, or anything else; the engine emits `T[]`.
14
+ - **No silent flattening.** Typed values never become strings without an explicit conversion — slots that should accept text declare so, and mismatches throw `TypeMismatchError`.
15
+ - **Pure ESM, side-effect-free, single runtime dep.** Tree-shakes cleanly; only [`@noble/hashes`](https://github.com/paulmillr/noble-hashes) at runtime (for `sprigHash()`).
16
+
17
+ ## Table of contents
18
+
19
+ - [Highlights](#highlights)
20
+ - [Install](#install)
21
+ - [Quick start](#quick-start)
22
+ - [Custom output types](#custom-output-types)
23
+ - [`ArgType` reference](#argtype-reference)
24
+ - [Syntax and built-ins](#syntax-and-built-ins)
25
+ - [Sprig subset](#sprig-subset)
26
+ - [Composing funcs from multiple sources](#composing-funcs-from-multiple-sources)
27
+ - [Divergences from Go](#divergences-from-go)
28
+ - [Errors](#errors)
29
+ - [Versioning policy](#versioning-policy)
30
+ - [Development](#development)
31
+ - [License](#license)
8
32
 
9
33
  ## Install
10
34
 
11
35
  ```bash
12
36
  pnpm add @promptctl/go-template-js
37
+ # or: npm install @promptctl/go-template-js
38
+ # or: yarn add @promptctl/go-template-js
13
39
  ```
14
40
 
15
- ## Quickstart (string output)
41
+ Requires Node **≥ 20.19.0** (per `engines.node`). The package is ESM-only.
42
+
43
+ ## Quick start
16
44
 
17
45
  ```ts
18
46
  import { createEngine } from "@promptctl/go-template-js";
@@ -31,7 +59,7 @@ const greet = engine.compile("hi {{ .name }}");
31
59
  greet({ name: "ada" }).join(""); // "hi ada"
32
60
  ```
33
61
 
34
- ## Generic-T tutorial
62
+ ## Custom output types
35
63
 
36
64
  The engine is parameterised over its output fragment type `T`. Consumers pick a fragment shape (e.g. styled text, AST nodes, layout primitives) and the engine emits a `T[]` that integrates into their downstream pipeline:
37
65
 
@@ -82,14 +110,15 @@ const engine = createEngine<Frag>({
82
110
 
83
111
  Use `"liftable"` for any consumer-defined function whose slot should accept either a `T` value or a string literal. The body, by contract, only ever receives `T` — the gate owns the lift, so the body has no string-vs-`T` discrimination to do.
84
112
 
85
- ### `ArgType` reference
113
+ ## `ArgType` reference
86
114
 
87
115
  Every entry in `argTypes` is one of:
88
116
 
89
117
  | Kind | Accepts at runtime | Used by (examples) |
90
118
  | --- | --- | --- |
91
119
  | `"string"` | JS `string` | `upper`, `lower`, `trim`, `printf` format string |
92
- | `"number"` | `typeof === "number"` or `bigint` (interchangeable) | `add`, `sub`, `mul`, `mod` |
120
+ | `"int"` | finite `number` or safe-integer-range `bigint`; gate normalizes to `number` via `Math.trunc(Number(v))` so the body sees `number` | `add`, `sub`, `mul`, `mod`, `max`, `min`, `slice` indices, `chunk`, `splitn`, `repeat` |
121
+ | `"float"` | any `number` (including `NaN`/`±Infinity` — legitimate IEEE-754 floats) or `bigint` whose `Number()` is finite; gate normalizes to `number` via `Number(v)` | `addf`, `subf`, `mulf`, `divf`, `maxf`, `minf` |
93
122
  | `"bool"` | `typeof === "boolean"` | (rare; most boolean slots use `"truthy"`) |
94
123
  | `"T"` | Any non-primitive (consumer-defined fragment) | consumer-defined typed funcs returning `T` |
95
124
  | `"ordered"` | `string`, `number`, `bigint`, or `boolean` | `lt`, `le`, `gt`, `ge` — additionally requires both slots share a kind |
@@ -110,13 +139,13 @@ Every entry in `argTypes` is one of:
110
139
 
111
140
  The legacy `"any"` kind was removed in epic `template-laws-3gt`. Slots that genuinely accept anything now declare their *intent* (`"truthy"` / `"reflective"` / `"value"` / `"serializable"`); slots that did not are pinned to their precise kind so the gate enforces the constraint instead of leaking it into func bodies.
112
141
 
113
- #### Variadic patterns
142
+ ### Variadic patterns
114
143
 
115
144
  For variadic funcs, declare the trailing slot's type once — every excess argument is validated against it.
116
145
 
117
146
  For funcs whose variadic tail *cycles* (e.g. `dict "k1" v1 "k2" v2 …`), set `argTypePattern: "alternating"` on the registration. The slot for arg index `i` becomes `argTypes[i % argTypes.length]`, so `dict` declares `argTypes: ["string", "value"]` and the gate enforces "string at even index, anything at odd index" without per-key revalidation in the body.
118
147
 
119
- ## Syntax reference
148
+ ## Syntax and built-ins
120
149
 
121
150
  Template syntax is Go template syntax. Read the canonical spec:
122
151
  https://pkg.go.dev/text/template
@@ -140,7 +169,7 @@ All of Go template's runtime built-ins:
140
169
 
141
170
  `and`/`or` short-circuit (the engine passes thunks for those). `printf` supports `%s`, `%d`, `%v`, `%q`, `%f` (precision-aware), `%t`, `%x`, plus width and `-` left-align flags. `html` flattens its arguments like `print` (via the engine's `toString`) and then escapes the six HTML-significant characters (`\0` → `�`, `"` → `&#34;`, `'` → `&#39;`, `&` → `&amp;`, `<` → `&lt;`, `>` → `&gt;`) — matching Go's `text/template.HTMLEscaper` byte-for-byte. `js` shares the same flatten pipeline and emits JavaScript-literal-safe output: `\` → `\\`, `'` → `\'`, `"` → `\"`, `<` → `\u003C`, `>` → `\u003E`, `&` → `\u0026`, `=` → `\u003D`, ASCII control chars (< 0x20) and non-printable runes (incl. U+2028/U+2029) → `\u%04X` uppercase — matching Go's `text/template.JSEscaper`. `urlquery` shares the same flatten pipeline and percent-encodes the UTF-8 byte stream per Go's `net/url.QueryEscape`: the unreserved set `[A-Za-z0-9-._~]` passes through, space becomes `+`, every other byte becomes `%XX` uppercase hex (so a literal `+` round-trips as `%2B`, and `α` encodes to `%CE%B1`).
142
171
 
143
- ### Sprig subset
172
+ ## Sprig subset
144
173
 
145
174
  Imported from `@promptctl/go-template-js` as category-scoped `FuncMap` factories:
146
175
 
@@ -193,7 +222,9 @@ The engine matches Go's `text/template` semantics aggressively. The remaining di
193
222
  - **Type mismatches at function boundaries are runtime errors, not compile errors.** By design: the engine does not know your `T` shape statically, so it surfaces the architectural commitment when the bad flow happens. See `TypeMismatchError`.
194
223
  - **printf verbs** beyond `%s %d %v %q %f %t %x` are rendered as `%!<verb>(<type>=<value>)`. If you need more, register your own formatter via the `funcs` registry.
195
224
 
196
- Notable parity statements (places where users sometimes expect divergence and there isn't one):
225
+ ### Notable parity statements
226
+
227
+ Places where users sometimes expect divergence and there isn't one:
197
228
 
198
229
  - A nil/undefined pipeline emits the literal `<no value>` string, matching Go's `text/template`.
199
230
  - **Missing field/map-key access** follows Go's `Option("missingkey=...")`. Defaults to `"default"` (silent `<no value>`); set `missingKey: "error"` in `EngineConfig` to throw `MissingFieldError` instead. The `"zero"` value is accepted; see the divergence note above.
@@ -242,10 +273,14 @@ Reaching into `dist/` subpaths or `src/` deep imports is unsupported.
242
273
 
243
274
  ```bash
244
275
  pnpm install
245
- pnpm build # tsdown → dist/
246
- pnpm test # vitest
247
- pnpm lint # biome check
248
- pnpm typecheck # tsc --noEmit
276
+ pnpm build # tsdown → dist/
277
+ pnpm test # vitest
278
+ pnpm lint # biome check
279
+ pnpm typecheck # tsc --noEmit
249
280
  ```
250
281
 
251
- The roadmap and active work live in the project's `lit` issue tracker (run `lit ready` to see the queue).
282
+ Bug reports and feature requests go to [GitHub Issues](https://github.com/promptctl/go-template-js/issues). The roadmap and active work live in the project's `lit` issue tracker (run `lit ready` to see the queue).
283
+
284
+ ## License
285
+
286
+ [MIT](./LICENSE) © Brandon Fryslie
package/dist/index.d.ts CHANGED
@@ -115,7 +115,19 @@ interface Delims {
115
115
  * - "string" — must be a JS string. Non-string values raise
116
116
  * TypeMismatchError. This is the **architectural commitment**: T
117
117
  * never silently flattens into a string parameter.
118
- * - "number" — must be `typeof "number"` or `bigint`.
118
+ * - "int" — validate-AND-parse integer carrier. Accepts any finite
119
+ * `number` and any `bigint` whose `Number()` is safe-integer-
120
+ * representable; rejects `NaN`, `±Infinity`, and precision-losing
121
+ * bigints. The gate normalizes `values[i]` to `Math.trunc(Number(v))`
122
+ * so bodies see `number`. Used by `add`, `sub`, `mul`, `mod`, `max`,
123
+ * `min`, the built-in `slice`'s index slots, `chunk`, `splitn`,
124
+ * `repeat`. Added by epic template-variance-num-carrier-hfv.
125
+ * - "float" — validate-AND-parse float carrier. Accepts any `number`
126
+ * (including `NaN`/`±Infinity` — legitimate IEEE-754 floats) and any
127
+ * `bigint` whose `Number()` is finite (overflow-to-Infinity rejected
128
+ * as a magnitude failure). The gate normalizes to `Number(v)` so
129
+ * bodies see `number`. Used by `addf`, `subf`, `mulf`, `divf`,
130
+ * `maxf`, `minf`. Added by epic template-variance-num-carrier-hfv.
119
131
  * - "bool" — must be `typeof "boolean"`.
120
132
  * - "T" — opaque caller-defined T; treated as "anything that is
121
133
  * not a string". The guard does no further checking.
@@ -167,7 +179,7 @@ interface Delims {
167
179
  * `"callable"`). The history for this decision lives in epic
168
180
  * template-laws-3gt.
169
181
  */
170
- type ArgType = "string" | "number" | "int" | "float" | "bool" | "T" | "ordered" | "list" | "dict" | "sized" | "comparable" | "stringifiable" | "liftable" | "callable" | "collection" | "index-key" | "sliceable" | "truthy" | "reflective" | "value" | "serializable";
182
+ type ArgType = "string" | "int" | "float" | "bool" | "T" | "ordered" | "list" | "dict" | "sized" | "comparable" | "stringifiable" | "liftable" | "callable" | "collection" | "index-key" | "sliceable" | "truthy" | "reflective" | "value" | "serializable";
171
183
  interface TemplateFunc {
172
184
  /**
173
185
  * The function body. Parameter types are *contravariant-bottom*
@@ -300,8 +312,26 @@ interface EngineConfig<T> {
300
312
  declare class Template<T> {
301
313
  readonly source: string;
302
314
  private readonly _evaluate;
315
+ private readonly _referencedFunctions;
303
316
  private constructor();
304
317
  evaluate(scope: unknown): T[];
318
+ /**
319
+ * The FuncMap function names this template references — every identifier that
320
+ * names a function anywhere in the template body or its `{{ define }}` blocks.
321
+ *
322
+ * This is a STATIC fact derived from the parsed AST, not an execution trace:
323
+ * a name in the set is a function the template *can* invoke; a name absent
324
+ * from the set is one it provably never invokes. Use it to ask "does this
325
+ * template use helper X?" without evaluating it (e.g. to discover which
326
+ * templates depend on a feature func) — robust where a source-text scan is
327
+ * not, because it sees through whitespace, pipelines, and field/string
328
+ * lookalikes.
329
+ *
330
+ * Built-in operators registered for every engine (`and`, `eq`, `index`,
331
+ * `printf`, …) are reported the same as consumer funcs — a referenced name is
332
+ * a referenced name regardless of who registered it.
333
+ */
334
+ referencedFunctions(): ReadonlySet<string>;
305
335
  }
306
336
  declare class Engine<T> {
307
337
  private readonly fromString;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/parser/pos.ts","../src/errors.ts","../src/parser/lexer.ts","../src/evaluator/evaluator.ts","../src/sprig/conversions/index.ts","../src/sprig/datetime/_clock.ts","../src/sprig/datetime/index.ts","../src/sprig/defaults/index.ts","../src/sprig/dicts/index.ts","../src/sprig/flow/index.ts","../src/sprig/hash/index.ts","../src/sprig/lists/index.ts","../src/sprig/math/index.ts","../src/sprig/random/index.ts","../src/sprig/regex/index.ts","../src/sprig/semver/index.ts","../src/sprig/strings/index.ts","../src/sprig/types/index.ts"],"mappings":";;AAUA;;;;;;;;;UAAiB,GAAA;EAAA,SACN,IAAA;EAAA,SACA,MAAA;EAAA,SACA,MAAA;AAAA;;;KCSC,SAAA;AAAA,U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,UAAA,CAAA,GAAc,OAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/parser/pos.ts","../src/errors.ts","../src/parser/lexer.ts","../src/evaluator/evaluator.ts","../src/sprig/conversions/index.ts","../src/sprig/datetime/_clock.ts","../src/sprig/datetime/index.ts","../src/sprig/defaults/index.ts","../src/sprig/dicts/index.ts","../src/sprig/flow/index.ts","../src/sprig/hash/index.ts","../src/sprig/lists/index.ts","../src/sprig/math/index.ts","../src/sprig/random/index.ts","../src/sprig/regex/index.ts","../src/sprig/semver/index.ts","../src/sprig/strings/index.ts","../src/sprig/types/index.ts"],"mappings":";;AAUA;;;;;;;;;UAAiB,GAAA;EAAA,SACN,IAAA;EAAA,SACA,MAAA;EAAA,SACA,MAAA;AAAA;;;KCSC,SAAA;AAAA,UAQK,oBAAA;EAAA,SACN,MAAA;AAAA;AAAA,cAOE,aAAA,SAAsB,KAAA;EAAA,SACf,IAAA;EAAA,SACT,IAAA,EAAM,SAAA;EAAA,SACN,GAAA,EAAK,GAAA;EAAA,SACL,MAAA;cAEG,OAAA,UAAiB,GAAA,EAAK,GAAA,EAAK,GAAA,GAAK,oBAAA;EANX;EAAA,IAa7B,aAAA,CAAA;EAIK,QAAA,CAAA;AAAA;AAAA,UAWM,iBAAA,SAA0B,oBAAA;EAAA,SAChC,QAAA;EAAA,SACA,KAAA;AAAA;AAAA,cAGE,UAAA,SAAmB,aAAA;EAAA,SACZ,IAAA;EAAA,SACA,IAAA,EAAM,SAAA;EAAA,SACf,QAAA;EAAA,SACA,KAAA;cAEG,OAAA,UAAiB,GAAA,EAAK,GAAA,EAAK,GAAA,GAAK,iBAAA;AAAA;AAAA,cAWjC,SAAA,SAAkB,aAAA;EAAA,SACX,IAAA;EAAA,SACA,IAAA,EAAM,SAAA;AAAA;;AAxB1B;;;;cAgCa,iBAAA,SAA0B,SAAA;EAAA,SACnB,IAAA;EAAA,SACA,IAAA,EAAM,SAAA;EAAA,SACf,QAAA;EAAA,SACA,WAAA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