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.js CHANGED
@@ -4133,15 +4133,30 @@ function createLoadSkillGadget(registry) {
4133
4133
  const summaries = registry.getMetadataSummaries();
4134
4134
  const skillNames = registry.getModelInvocable().map((s) => s.name);
4135
4135
  const description = [
4136
- "Load one or more skill bodies into context. Pass an array even for a",
4137
- 'single skill: `{skills: ["some-skill"]}`. **This gadget is an iteration',
4138
- "barrier \u2014 no other gadgets in the same tool batch will execute, so load",
4139
- "every skill you know you'll need in one shot.** The loaded bodies are",
4140
- "sticky and survive context compaction.",
4136
+ "Load one or more skill bodies into context. Pass `skills` as a JSON",
4137
+ "array of skill-name strings \u2014 NOT a string of a JSON-encoded array.",
4138
+ 'Right: `{"skills": ["alpha"]}` or `{"skills": ["alpha", "beta"]}`.',
4139
+ 'Wrong: `{"skills": "[\\"alpha\\"]"}` (the value is a string, not an array).',
4140
+ "**This gadget is an iteration barrier \u2014 no other gadgets in the same",
4141
+ "tool batch will execute, so load every skill you know you'll need in",
4142
+ "one shot.** The loaded bodies are sticky and survive context compaction.",
4141
4143
  "",
4142
4144
  "Available skills:",
4143
4145
  summaries
4144
4146
  ].join("\n");
4147
+ const examples = [];
4148
+ if (skillNames.length >= 1) {
4149
+ examples.push({
4150
+ params: { skills: [skillNames[0]] },
4151
+ comment: "Single-skill call \u2014 `skills` is still an array of length 1."
4152
+ });
4153
+ }
4154
+ if (skillNames.length >= 2) {
4155
+ examples.push({
4156
+ params: { skills: [skillNames[0], skillNames[1]] },
4157
+ comment: "Multi-skill call \u2014 load several skills in one shot to avoid round-trips."
4158
+ });
4159
+ }
4145
4160
  return createGadget({
4146
4161
  name: LOAD_SKILL_GADGET_NAME,
4147
4162
  description,
@@ -4155,6 +4170,7 @@ function createLoadSkillGadget(registry) {
4155
4170
  }),
4156
4171
  stickyResult: true,
4157
4172
  iterationBarrier: true,
4173
+ examples,
4158
4174
  execute: async ({ skills: skillNamesArg, arguments: args }) => {
4159
4175
  const sections = [];
4160
4176
  for (const skillName of skillNamesArg) {