mutts 1.0.11 → 1.0.13
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 +5 -2
- package/dist/browser.cjs +237 -2596
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.ts +1407 -2
- package/dist/browser.dev.cjs +44 -43
- package/dist/browser.dev.cjs.map +1 -1
- package/dist/browser.dev.d.ts +2 -2
- package/dist/browser.dev.esm.js +2 -2
- package/dist/browser.esm.js +3 -3
- package/dist/chunks/index-CAdnMJev.cjs +2735 -0
- package/dist/chunks/index-CAdnMJev.cjs.map +1 -0
- package/dist/chunks/{index-Sf74wXTV.esm.js → index-XsYTUhHx.esm.js} +200 -77
- package/dist/chunks/index-XsYTUhHx.esm.js.map +1 -0
- package/dist/chunks/{async-node-3PrbVAbB.cjs → node-DrrphEPf.cjs} +4 -4
- package/dist/chunks/node-DrrphEPf.cjs.map +1 -0
- package/dist/chunks/{node-Bo7WU5S2.esm.js → node-NEZvVo4M.esm.js} +2 -2
- package/dist/chunks/{node-Bo7WU5S2.esm.js.map → node-NEZvVo4M.esm.js.map} +1 -1
- package/dist/chunks/{proxy-D2C49sXH.esm.js → proxy-BtmPFjSr.esm.js} +307 -66
- package/dist/chunks/proxy-BtmPFjSr.esm.js.map +1 -0
- package/dist/chunks/{proxy-Cc79Lrzj.cjs → proxy-DBHj3kGK.cjs} +341 -70
- package/dist/chunks/proxy-DBHj3kGK.cjs.map +1 -0
- package/dist/debug.cjs +537 -167
- package/dist/debug.cjs.map +1 -1
- package/dist/debug.d.ts +96 -80
- package/dist/debug.esm.js +533 -166
- package/dist/debug.esm.js.map +1 -1
- package/dist/devtools/panel.js.map +1 -1
- package/dist/mutts.umd.js +508 -140
- package/dist/mutts.umd.js.map +1 -1
- package/dist/mutts.umd.min.js +1 -1
- package/dist/mutts.umd.min.js.map +1 -1
- package/dist/node.cjs +44 -42
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.ts +2 -2
- package/dist/node.dev.cjs +44 -42
- package/dist/node.dev.cjs.map +1 -1
- package/dist/node.dev.d.ts +2 -2
- package/dist/node.dev.esm.js +3 -3
- package/dist/node.esm.js +3 -3
- package/dist/{types-Bx2PhORg.d.ts → types.d.ts} +12 -0
- package/docs/ai/api-reference.md +102 -12
- package/docs/ai/manual.md +60 -24
- package/docs/debug-getReason.md +161 -0
- package/docs/flavored.md +98 -1
- package/docs/reactive/advanced.md +15 -2
- package/docs/reactive/attend.md +32 -0
- package/docs/reactive/core.md +40 -6
- package/docs/reactive/debugging.md +25 -2
- package/docs/reactive.md +2 -0
- package/package.json +2 -3
- package/dist/chunks/async-browser-Dgr5CreQ.cjs +0 -218
- package/dist/chunks/async-browser-Dgr5CreQ.cjs.map +0 -1
- package/dist/chunks/async-core-CRLKP3l-.cjs +0 -29
- package/dist/chunks/async-core-CRLKP3l-.cjs.map +0 -1
- package/dist/chunks/async-node-3PrbVAbB.cjs.map +0 -1
- package/dist/chunks/index-Sf74wXTV.esm.js.map +0 -1
- package/dist/chunks/proxy-Cc79Lrzj.cjs.map +0 -1
- package/dist/chunks/proxy-D2C49sXH.esm.js.map +0 -1
- package/dist/index.d.ts +0 -1322
package/README.md
CHANGED
|
@@ -40,6 +40,7 @@ Mutts is designed with a **Condensed Token Footprint**. It prioritizes high read
|
|
|
40
40
|
> [!IMPORTANT]
|
|
41
41
|
> **Are you an AI Agent?**
|
|
42
42
|
> Read the **[AI Agent Manual](./docs/ai/manual.md)** for structured protocols, introspection APIs, and error definitions designed for your reasoning loop. A comprehensive **[API Reference](./docs/ai/api-reference.md)** is also available.
|
|
43
|
+
> For documentation-aware MCP workflows, you can use **[`soup-chop`](https://www.npmjs.com/package/soup-chop)** as a documentation MCP for mutts.
|
|
43
44
|
|
|
44
45
|
---
|
|
45
46
|
|
|
@@ -240,18 +241,20 @@ A comprehensive resource management system that provides automatic cleanup for o
|
|
|
240
241
|
|
|
241
242
|
## [Flavored](./docs/flavored.md)
|
|
242
243
|
|
|
243
|
-
A utility for creating extensible functions with chainable property modifiers.
|
|
244
|
+
A utility for creating extensible functions with chainable property modifiers. The same docs section also covers `captioned`, the sibling helper for callback-first tagged-template calls.
|
|
244
245
|
|
|
245
246
|
**Key Features:**
|
|
246
247
|
- **Property-based Modifiers**: Add chainable properties to functions via getters or methods
|
|
247
248
|
- **Flavoring Robustness**: Automatic arity tracking and argument padding
|
|
248
249
|
- **Options Merging**: `flavorOptions` helper for automatic options object merging
|
|
249
250
|
- **Argument Transformation**: `createFlavor` helper for custom argument transformation
|
|
251
|
+
- **Tagged Callback Captions**: `captioned` helper for call-site naming like `` effect`name`(fn) ``
|
|
250
252
|
- **Hand-made Functions**: Return custom functions for complete control (the generic case)
|
|
251
253
|
- **Full TypeScript Support**: Proper type inference for chained modifiers
|
|
252
254
|
|
|
253
255
|
**Use Cases:**
|
|
254
|
-
- Creating functions with preset configurations (e.g., `effect.opaque
|
|
256
|
+
- Creating functions with preset configurations (e.g., `effect.opaque`)
|
|
257
|
+
- Naming callback-oriented calls like `effect`, `lift`, `watch`, `attend`, or `morph` without a separate flavor
|
|
255
258
|
- Fluent APIs for function variants
|
|
256
259
|
- Partial application with named parameters
|
|
257
260
|
- Building chainable configuration DSLs
|