@ranimontagna/agent-toolkit 0.1.15 → 0.1.17

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 (65) hide show
  1. package/README.md +82 -27
  2. package/dist/src/args.js +16 -0
  3. package/dist/src/args.js.map +1 -1
  4. package/dist/src/installers/caveman.js +5 -1
  5. package/dist/src/installers/caveman.js.map +1 -1
  6. package/dist/src/installers/graphify.js +7 -0
  7. package/dist/src/installers/graphify.js.map +1 -1
  8. package/dist/src/installers/gsd.js +5 -1
  9. package/dist/src/installers/gsd.js.map +1 -1
  10. package/dist/src/installers/improve.d.ts +1 -0
  11. package/dist/src/installers/improve.js +72 -0
  12. package/dist/src/installers/improve.js.map +1 -0
  13. package/dist/src/installers/superpowers.js +3 -0
  14. package/dist/src/installers/superpowers.js.map +1 -1
  15. package/dist/src/main.js +10 -0
  16. package/dist/src/main.js.map +1 -1
  17. package/dist/src/menu.js +12 -2
  18. package/dist/src/menu.js.map +1 -1
  19. package/dist/src/provenance.js +5 -2
  20. package/dist/src/provenance.js.map +1 -1
  21. package/dist/src/runtimes.d.ts +2 -0
  22. package/dist/src/runtimes.js +79 -6
  23. package/dist/src/runtimes.js.map +1 -1
  24. package/dist/src/skills.js +26 -3
  25. package/dist/src/skills.js.map +1 -1
  26. package/dist/src/state.d.ts +9 -3
  27. package/dist/src/state.js +21 -1
  28. package/dist/src/state.js.map +1 -1
  29. package/dist/src/status.js +8 -0
  30. package/dist/src/status.js.map +1 -1
  31. package/dist/src/tool-lock.d.ts +6 -0
  32. package/dist/src/tool-lock.js +3 -0
  33. package/dist/src/tool-lock.js.map +1 -1
  34. package/dist/src/ui.js +2 -0
  35. package/dist/src/ui.js.map +1 -1
  36. package/dist/src/usage.js +8 -1
  37. package/dist/src/usage.js.map +1 -1
  38. package/docs/assets/install-plan.svg +2 -2
  39. package/docs/assets/install-status.svg +3 -3
  40. package/package.json +7 -7
  41. package/skills/frontend/gsap/gsap-core/LICENSE +21 -0
  42. package/skills/frontend/gsap/gsap-core/NOTICE.md +11 -0
  43. package/skills/frontend/gsap/gsap-core/SKILL.md +254 -0
  44. package/skills/frontend/gsap/gsap-frameworks/LICENSE +21 -0
  45. package/skills/frontend/gsap/gsap-frameworks/NOTICE.md +11 -0
  46. package/skills/frontend/gsap/gsap-frameworks/SKILL.md +266 -0
  47. package/skills/frontend/gsap/gsap-performance/LICENSE +21 -0
  48. package/skills/frontend/gsap/gsap-performance/NOTICE.md +11 -0
  49. package/skills/frontend/gsap/gsap-performance/SKILL.md +79 -0
  50. package/skills/frontend/gsap/gsap-plugins/LICENSE +21 -0
  51. package/skills/frontend/gsap/gsap-plugins/NOTICE.md +11 -0
  52. package/skills/frontend/gsap/gsap-plugins/SKILL.md +433 -0
  53. package/skills/frontend/gsap/gsap-react/LICENSE +21 -0
  54. package/skills/frontend/gsap/gsap-react/NOTICE.md +11 -0
  55. package/skills/frontend/gsap/gsap-react/SKILL.md +136 -0
  56. package/skills/frontend/gsap/gsap-scrolltrigger/LICENSE +21 -0
  57. package/skills/frontend/gsap/gsap-scrolltrigger/NOTICE.md +11 -0
  58. package/skills/frontend/gsap/gsap-scrolltrigger/SKILL.md +296 -0
  59. package/skills/frontend/gsap/gsap-timeline/LICENSE +21 -0
  60. package/skills/frontend/gsap/gsap-timeline/NOTICE.md +11 -0
  61. package/skills/frontend/gsap/gsap-timeline/SKILL.md +107 -0
  62. package/skills/frontend/gsap/gsap-utils/LICENSE +21 -0
  63. package/skills/frontend/gsap/gsap-utils/NOTICE.md +11 -0
  64. package/skills/frontend/gsap/gsap-utils/SKILL.md +284 -0
  65. package/tools.lock.json +21 -15
@@ -0,0 +1,284 @@
1
+ ---
2
+ name: gsap-utils
3
+ description: Official GSAP skill for gsap.utils — clamp, mapRange, normalize, interpolate, random, snap, toArray, wrap, pipe. Use when the user asks about gsap.utils, clamp, mapRange, random, snap, toArray, wrap, or helper utilities in GSAP.
4
+ license: MIT
5
+ ---
6
+
7
+ # gsap.utils
8
+
9
+ ## When to Use This Skill
10
+
11
+ Apply when writing or reviewing code that uses **gsap.utils** for math, array/collection handling, unit parsing, or value mapping in animations (e.g. mapping scroll to a value, randomizing, snapping to a grid, or normalizing inputs).
12
+
13
+ **Related skills:** Use with **gsap-core**, **gsap-timeline**, and **gsap-scrolltrigger** when building animations; CustomEase and other easing utilities are in **gsap-plugins**.
14
+
15
+ ## Overview
16
+
17
+ **gsap.utils** provides pure helpers; no need to register. Use in tween vars (e.g. function-based values), in ScrollTrigger or Observer callbacks, or in any JS that drives GSAP. All are on **gsap.utils** (e.g. `gsap.utils.clamp()`).
18
+
19
+ **Omitting the value: function form.** Many utils accept the value to transform as the **last** argument. If you omit that argument, the util returns a **function** that accepts the value later. Use the function form when you need to clamp, map, normalize, or snap many values with the same config (e.g. in a mousemove handler or tween callback). **Exception: random()** — pass **true** as the last argument to get a reusable function (do not omit the value); see [random()](https://gsap.com/docs/v3/GSAP/UtilityMethods/random()).
20
+
21
+ ```javascript
22
+ // With value: returns the result
23
+ gsap.utils.clamp(0, 100, 150); // 100
24
+
25
+ // Without value: returns a function you call with the value later
26
+ let c = gsap.utils.clamp(0, 100);
27
+ c(150); // 100
28
+ c(-10); // 0
29
+ ```
30
+
31
+ ## Clamping and Ranges
32
+
33
+ ### clamp(min, max, value?)
34
+
35
+ Constrains a value between min and max. Omit **value** to get a function: `clamp(min, max)(value)`.
36
+
37
+ ```javascript
38
+ gsap.utils.clamp(0, 100, 150); // 100
39
+ gsap.utils.clamp(0, 100, -10); // 0
40
+
41
+ let clampFn = gsap.utils.clamp(0, 100);
42
+ clampFn(150); // 100
43
+ ```
44
+
45
+ ### mapRange(inMin, inMax, outMin, outMax, value?)
46
+
47
+ Maps a value from one range to another. Use when converting scroll position, progress (0–1), or input range to an animation range. Omit **value** to get a function: `mapRange(inMin, inMax, outMin, outMax)(value)`.
48
+
49
+ ```javascript
50
+ gsap.utils.mapRange(0, 100, 0, 500, 50); // 250
51
+ gsap.utils.mapRange(0, 1, 0, 360, 0.5); // 180 (progress to degrees)
52
+
53
+ let mapFn = gsap.utils.mapRange(0, 100, 0, 500);
54
+ mapFn(50); // 250
55
+ ```
56
+
57
+ ### normalize(min, max, value?)
58
+
59
+ Returns a value normalized to 0–1 for the given range. Inverse of mapping when the target range is 0–1. Omit **value** to get a function: `normalize(min, max)(value)`.
60
+
61
+ ```javascript
62
+ gsap.utils.normalize(0, 100, 50); // 0.5
63
+ gsap.utils.normalize(100, 300, 200); // 0.5
64
+
65
+ let normFn = gsap.utils.normalize(0, 100);
66
+ normFn(50); // 0.5
67
+ ```
68
+
69
+ ### interpolate(start, end, progress?)
70
+
71
+ Interpolates between two values at a given progress (0–1). Handles numbers, colors, and objects with matching keys. Omit **progress** to get a function: `interpolate(start, end)(progress)`.
72
+
73
+ ```javascript
74
+ gsap.utils.interpolate(0, 100, 0.5); // 50
75
+ gsap.utils.interpolate("#ff0000", "#0000ff", 0.5); // mid color
76
+ gsap.utils.interpolate({ x: 0, y: 0 }, { x: 100, y: 50 }, 0.5); // { x: 50, y: 25 }
77
+
78
+ let lerp = gsap.utils.interpolate(0, 100);
79
+ lerp(0.5); // 50
80
+ ```
81
+
82
+ ## Random and Snap
83
+
84
+ ### random(minimum, maximum[, snapIncrement, returnFunction]) / random(array[, returnFunction])
85
+
86
+ Returns a random number in the range **minimum**–**maximum**, or a random element from an **array**. Optional **snapIncrement** snaps the result to the nearest multiple (e.g. `5` → multiples of 5). **To get a reusable function**, pass **true** as the last argument (**returnFunction**); the returned function takes no args and returns a new random value each time. This is the only util that uses `true` for the function form instead of omitting the value.
87
+
88
+ ```javascript
89
+ // immediate value: number in range
90
+ gsap.utils.random(-100, 100); // e.g. 42.7
91
+ gsap.utils.random(0, 500, 5); // 0–500, snapped to nearest 5
92
+
93
+ // reusable function: pass true as last argument
94
+ let randomFn = gsap.utils.random(-200, 500, 10, true);
95
+ randomFn(); // random value in range, snapped to 10
96
+ randomFn(); // another random value
97
+
98
+ // array: pick one value at random
99
+ gsap.utils.random(["red", "blue", "green"]); // "red", "blue", or "green"
100
+ let randomFromArray = gsap.utils.random([0, 100, 200], true);
101
+ randomFromArray(); // 0, 100, or 200
102
+ ```
103
+
104
+ **String form in tween vars:** use `"random(-100, 100)"`, `"random(-100, 100, 5)"`, or `"random([0, 100, 200])"`; GSAP evaluates it per target.
105
+
106
+ ```javascript
107
+ gsap.to(".box", { x: "random(-100, 100, 5)", duration: 1 });
108
+ gsap.to(".item", { backgroundColor: "random([red, blue, green])" });
109
+ ```
110
+
111
+ ### snap(snapTo, value?)
112
+
113
+ Snaps a value to the nearest multiple of **snapTo**, or to the nearest value in an array of allowed values. Omit **value** to get a function: `snap(snapTo)(value)` (or `snap(snapArray)(value)`).
114
+
115
+ ```javascript
116
+ gsap.utils.snap(10, 23); // 20
117
+ gsap.utils.snap(0.25, 0.7); // 0.75
118
+ gsap.utils.snap([0, 100, 200], 150); // 100 or 200 (nearest in array)
119
+
120
+ let snapFn = gsap.utils.snap(10);
121
+ snapFn(23); // 20
122
+ ```
123
+
124
+ Use in tweens for grid or step-based animation:
125
+
126
+ ```javascript
127
+ gsap.to(".x", { x: 200, snap: { x: 20 } });
128
+ ```
129
+
130
+ ### shuffle(array)
131
+
132
+ Returns a new array with the same elements in random order. Use for randomizing order (e.g. stagger from "random" with a copy).
133
+
134
+ ```javascript
135
+ gsap.utils.shuffle([1, 2, 3, 4]); // e.g. [3, 1, 4, 2]
136
+ ```
137
+
138
+ ### distribute(config)
139
+
140
+ **Returns a function** that assigns a value to each target based on its position in the array (or in a grid). Used internally for advanced staggers; use it whenever you need values spread across many elements (e.g. scale, opacity, x, delay). The returned function receives `(index, target, targets)` — either call it manually or pass the result directly into a tween; GSAP will call it per target with index, element, and array.
141
+
142
+ **Config (all optional):**
143
+
144
+ | Property | Type | Description |
145
+ |----------|------|-------------|
146
+ | `base` | Number | Starting value. Default `0`. |
147
+ | `amount` | Number | Total to distribute across all targets (added to base). E.g. `amount: 1` with 100 targets → 0.01 between each. Use **each** instead to set a fixed step per target. |
148
+ | `each` | Number | Amount to add between each target (added to base). E.g. `each: 1` with 4 targets → 0, 1, 2, 3. Use **amount** instead to split a total. |
149
+ | `from` | Number \| String \| Array | Where distribution starts: index, or `"start"`, `"center"`, `"edges"`, `"random"`, `"end"`, or ratios like `[0.25, 0.75]`. Default `0`. |
150
+ | `grid` | String \| Array | Use grid position instead of flat index: `[rows, columns]` (e.g. `[5, 10]`) or `"auto"` to detect. Omit for flat array. |
151
+ | `axis` | String | For grid: limit to one axis (`"x"` or `"y"`). |
152
+ | `ease` | Ease | Distribute values along an ease curve (e.g. `"power1.inOut"`). Default `"none"`. |
153
+
154
+ **In a tween:** pass the result of `distribute(config)` as the property value; GSAP calls the function for each target with `(index, target, targets)`.
155
+
156
+ ```javascript
157
+ // Scale: middle elements 0.5, outer edges 3 (amount 2.5 distributed from center)
158
+ gsap.to(".class", {
159
+ scale: gsap.utils.distribute({
160
+ base: 0.5,
161
+ amount: 2.5,
162
+ from: "center"
163
+ })
164
+ });
165
+ ```
166
+
167
+ **Manual use:** call the returned function with `(index, target, targets)` to get the value for that index.
168
+
169
+ ```javascript
170
+ const distributor = gsap.utils.distribute({
171
+ base: 50,
172
+ amount: 100,
173
+ from: "center",
174
+ ease: "power1.inOut"
175
+ });
176
+ const targets = gsap.utils.toArray(".box");
177
+ const valueForIndex2 = distributor(2, targets[2], targets);
178
+ ```
179
+
180
+ See [distribute()](https://gsap.com/docs/v3/GSAP/UtilityMethods/distribute/) for more.
181
+
182
+ ## Units and Parsing
183
+
184
+ ### getUnit(value)
185
+
186
+ Returns the unit string of a value (e.g. `"px"`, `"%"`, `"deg"`). Use when normalizing or converting values.
187
+
188
+ ```javascript
189
+ gsap.utils.getUnit("100px"); // "px"
190
+ gsap.utils.getUnit("50%"); // "%"
191
+ gsap.utils.getUnit(42); // "" (unitless)
192
+ ```
193
+
194
+ ### unitize(value, unit)
195
+
196
+ Appends a unit to a number, or returns the value as-is if it already has a unit. Use when building CSS values or tween end values.
197
+
198
+ ```javascript
199
+ gsap.utils.unitize(100, "px"); // "100px"
200
+ gsap.utils.unitize("2rem", "px"); // "2rem" (unchanged)
201
+ ```
202
+
203
+ ### splitColor(color, returnHSL?)
204
+
205
+ Converts a color string into an array: **[red, green, blue]** (0–255), or **[red, green, blue, alpha]** (4 elements for RGBA when alpha is present or required). Pass **true** as the second argument (**returnHSL**) to get **[hue, saturation, lightness]** or **[hue, saturation, lightness, alpha]** (HSL/HSLA) instead. Works with `"rgb()"`, `"rgba()"`, `"hsl()"`, `"hsla()"`, hex, and named colors (e.g. `"red"`). Use when animating color components or building gradients. See [splitColor()](https://gsap.com/docs/v3/GSAP/UtilityMethods/splitColor/).
206
+
207
+ ```javascript
208
+ gsap.utils.splitColor("red"); // [255, 0, 0]
209
+ gsap.utils.splitColor("#6fb936"); // [111, 185, 54]
210
+ gsap.utils.splitColor("rgba(204, 153, 51, 0.5)"); // [204, 153, 51, 0.5] (4 elements)
211
+ gsap.utils.splitColor("#6fb936", true); // [94, 55, 47] (HSL: hue, saturation, lightness)
212
+ ```
213
+
214
+ ## Arrays and Collections
215
+
216
+ ### selector(scope)
217
+
218
+ Returns a scoped selector function that finds elements only within the given element (or ref). Use in components so selectors like `".box"` match only descendants of that component, not the whole document. Accepts a DOM element or a ref (e.g. React ref; handles `.current`).
219
+
220
+ ```javascript
221
+ const q = gsap.utils.selector(containerRef);
222
+ q(".box"); // array of .box elements inside container
223
+ gsap.to(q(".circle"), { x: 100 });
224
+ ```
225
+
226
+ ### toArray(value, scope?)
227
+
228
+ Converts a value to an array: selector string (scoped to element), NodeList, HTMLCollection, single element, or array. Use when passing mixed inputs to GSAP (e.g. targets) and a true array is needed.
229
+
230
+ ```javascript
231
+ gsap.utils.toArray(".item"); // array of elements
232
+ gsap.utils.toArray(".item", container); // scoped to container
233
+ gsap.utils.toArray(nodeList); // [ ... ] from NodeList
234
+ ```
235
+
236
+ ### pipe(...functions)
237
+
238
+ Composes functions: **pipe(f1, f2, f3)(value)** returns f3(f2(f1(value))). Use when applying a chain of transforms (e.g. normalize → mapRange → snap) in a tween or callback.
239
+
240
+ ```javascript
241
+ const fn = gsap.utils.pipe(
242
+ (v) => gsap.utils.normalize(0, 100, v),
243
+ (v) => gsap.utils.snap(0.1, v)
244
+ );
245
+ fn(50); // normalized then snapped
246
+ ```
247
+
248
+ ### wrap(min, max, value?)
249
+
250
+ Wraps a value into the range min–max (inclusive min, exclusive max). Use for infinite scroll or cyclic values. Omit **value** to get a function: `wrap(min, max)(value)`.
251
+
252
+ ```javascript
253
+ gsap.utils.wrap(0, 360, 370); // 10
254
+ gsap.utils.wrap(0, 360, -10); // 350
255
+
256
+ let wrapFn = gsap.utils.wrap(0, 360);
257
+ wrapFn(370); // 10
258
+ ```
259
+
260
+ ### wrapYoyo(min, max, value?)
261
+
262
+ Wraps value in range with a yoyo (bounces at ends). Use for back-and-forth within a range. Omit **value** to get a function: `wrapYoyo(min, max)(value)`.
263
+
264
+ ```javascript
265
+ gsap.utils.wrapYoyo(0, 100, 150); // 50 (bounces back)
266
+
267
+ let wrapY = gsap.utils.wrapYoyo(0, 100);
268
+ wrapY(150); // 50
269
+ ```
270
+
271
+ ## Best practices
272
+
273
+ - ✅ Omit the value argument to get a reusable function when the same range/config is used many times (e.g. scroll handler, tween callback): `let mapFn = gsap.utils.mapRange(0, 1, 0, 360); mapFn(progress)`.
274
+ - ✅ Use **snap** for grid-aligned or step-based values; use **toArray** when GSAP or your code needs a real array from a selector or NodeList.
275
+ - ✅ Use **gsap.utils.selector(scope)** in components so selectors are scoped to a container or ref.
276
+
277
+ ## Do Not
278
+
279
+ - ❌ Assume **mapRange** / **normalize** handle units; they work on numbers. Use **getUnit** / **unitize** when units matter.
280
+ - ❌ Override or rely on undocumented behavior; stick to the documented API.
281
+
282
+ ### Learn More
283
+
284
+ https://gsap.com/docs/v3/HelperFunctions
package/tools.lock.json CHANGED
@@ -4,57 +4,63 @@
4
4
  "rtk": {
5
5
  "source": "github-release",
6
6
  "repository": "rtk-ai/rtk",
7
- "tag": "v0.42.1",
7
+ "tag": "v0.42.4",
8
8
  "assets": {
9
9
  "rtk-aarch64-apple-darwin.tar.gz": {
10
- "sha256": "401d72a80c0efc597ae9469f053ce51c70334ea427527464ab76f8e298da2447"
10
+ "sha256": "f223ca074a0215af002679bc1d34ca92b93e25b3e8ae16aace6e84c06e586802"
11
11
  },
12
12
  "rtk-aarch64-unknown-linux-gnu.tar.gz": {
13
- "sha256": "32f4d78766e2f5b43756efce3c699dc4da8beef5296deb02fa7756f3257eb25c"
13
+ "sha256": "cc2b91c064eb670c097c184913c8fbcb1a943d53d7fe505375e96ba0c5b6459f"
14
14
  },
15
15
  "rtk-x86_64-apple-darwin.tar.gz": {
16
- "sha256": "6165d80f40db0f46f8af2ea15d0132e957e2717aa74507906c7ce5b3c20c655e"
16
+ "sha256": "84121316867613e61925c209607f033b2113bb0ce312c267a79d3e3e8f221e49"
17
17
  },
18
18
  "rtk-x86_64-pc-windows-msvc.zip": {
19
- "sha256": "5f292b031595405671b41e29aa5016931e8598949c25d9751f0eebd2eccefe0b"
19
+ "sha256": "f0ec18963581657173bd6a51f5ba012b093823f844db749fec218581af30a568"
20
20
  },
21
21
  "rtk-x86_64-unknown-linux-musl.tar.gz": {
22
- "sha256": "a37ca300a42510a964453f2bc2e217769ef0872780af802db8a7d698f1da2465"
22
+ "sha256": "34975116da11e09e502501daf758143e0b22ed3a42a10eb67fb693a6270d9e36"
23
23
  }
24
24
  }
25
25
  },
26
26
  "caveman": {
27
27
  "source": "github",
28
28
  "repository": "JuliusBrussee/caveman",
29
- "ref": "655b7d9c5431f822264b7732e9901c5578ac84cf"
29
+ "ref": "25d22f864ad68cc447a4cb93aefde918aa4aec9f"
30
30
  },
31
31
  "graphify": {
32
32
  "source": "pypi",
33
33
  "package": "graphifyy",
34
- "version": "0.8.31"
34
+ "version": "0.8.41"
35
35
  },
36
36
  "gsd": {
37
37
  "source": "npm",
38
38
  "package": "get-shit-done-cc",
39
39
  "version": "1.42.3"
40
40
  },
41
+ "improve": {
42
+ "source": "github",
43
+ "repository": "shadcn/improve",
44
+ "ref": "03369ee6d7cafbfcecc4346539b05b3dc0a603bb",
45
+ "skill": "improve"
46
+ },
41
47
  "frontendSkills": {
42
48
  "source": "skills-cli",
43
49
  "skillsCli": {
44
50
  "source": "npm",
45
51
  "package": "skills",
46
- "version": "1.5.10"
52
+ "version": "1.5.11"
47
53
  },
48
54
  "impeccable": {
49
55
  "source": "github",
50
56
  "repository": "pbakaus/impeccable",
51
- "ref": "1d5d745823aae7019044e8b0a621af4366dae224",
57
+ "ref": "1c897a09c86ea7ed7e5cc3affaabcbbb46a05a7d",
52
58
  "skill": "impeccable"
53
59
  },
54
60
  "tasteSkill": {
55
61
  "source": "github",
56
62
  "repository": "Leonxlnx/taste-skill",
57
- "ref": "3c7017d636c3a4aad378433ea6d0cfa6c921da4a",
63
+ "ref": "5285855df6719b6efb95d5268359e752d3d79045",
58
64
  "skill": "design-taste-frontend"
59
65
  }
60
66
  }
@@ -63,22 +69,22 @@
63
69
  "claude": {
64
70
  "source": "npm",
65
71
  "package": "@anthropic-ai/claude-code",
66
- "version": "2.1.162"
72
+ "version": "2.1.181"
67
73
  },
68
74
  "codex": {
69
75
  "source": "npm",
70
76
  "package": "@openai/codex",
71
- "version": "0.137.0"
77
+ "version": "0.141.0"
72
78
  },
73
79
  "opencode": {
74
80
  "source": "npm",
75
81
  "package": "opencode-ai",
76
- "version": "1.15.13"
82
+ "version": "1.17.8"
77
83
  },
78
84
  "gemini": {
79
85
  "source": "npm",
80
86
  "package": "@google/gemini-cli",
81
- "version": "0.45.0"
87
+ "version": "0.47.0"
82
88
  }
83
89
  }
84
90
  }