llmist 18.0.0 → 18.1.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/dist/index.cjs CHANGED
@@ -5548,15 +5548,30 @@ function createLoadSkillGadget(registry) {
5548
5548
  const summaries = registry.getMetadataSummaries();
5549
5549
  const skillNames = registry.getModelInvocable().map((s) => s.name);
5550
5550
  const description = [
5551
- "Load one or more skill bodies into context. Pass an array even for a",
5552
- 'single skill: `{skills: ["some-skill"]}`. **This gadget is an iteration',
5553
- "barrier \u2014 no other gadgets in the same tool batch will execute, so load",
5554
- "every skill you know you'll need in one shot.** The loaded bodies are",
5555
- "sticky and survive context compaction.",
5551
+ "Load one or more skill bodies into context. Pass `skills` as a JSON",
5552
+ "array of skill-name strings \u2014 NOT a string of a JSON-encoded array.",
5553
+ 'Right: `{"skills": ["alpha"]}` or `{"skills": ["alpha", "beta"]}`.',
5554
+ 'Wrong: `{"skills": "[\\"alpha\\"]"}` (the value is a string, not an array).',
5555
+ "**This gadget is an iteration barrier \u2014 no other gadgets in the same",
5556
+ "tool batch will execute, so load every skill you know you'll need in",
5557
+ "one shot.** The loaded bodies are sticky and survive context compaction.",
5556
5558
  "",
5557
5559
  "Available skills:",
5558
5560
  summaries
5559
5561
  ].join("\n");
5562
+ const examples = [];
5563
+ if (skillNames.length >= 1) {
5564
+ examples.push({
5565
+ params: { skills: [skillNames[0]] },
5566
+ comment: "Single-skill call \u2014 `skills` is still an array of length 1."
5567
+ });
5568
+ }
5569
+ if (skillNames.length >= 2) {
5570
+ examples.push({
5571
+ params: { skills: [skillNames[0], skillNames[1]] },
5572
+ comment: "Multi-skill call \u2014 load several skills in one shot to avoid round-trips."
5573
+ });
5574
+ }
5560
5575
  return createGadget({
5561
5576
  name: LOAD_SKILL_GADGET_NAME,
5562
5577
  description,
@@ -5570,6 +5585,7 @@ function createLoadSkillGadget(registry) {
5570
5585
  }),
5571
5586
  stickyResult: true,
5572
5587
  iterationBarrier: true,
5588
+ examples,
5573
5589
  execute: async ({ skills: skillNamesArg, arguments: args }) => {
5574
5590
  const sections = [];
5575
5591
  for (const skillName of skillNamesArg) {