@codedrifters/configulator 0.0.214 → 0.0.215

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/lib/index.d.mts CHANGED
@@ -198,9 +198,38 @@ interface AgentSkill {
198
198
  readonly paths?: ReadonlyArray<string>;
199
199
  /**
200
200
  * Resource directories bundled with the skill (e.g., references/, scripts/, assets/).
201
+ * Documentation hint only — directory names listed here are not emitted to disk.
202
+ * Prefer {@link referenceFiles} to ship actual companion file contents.
203
+ *
204
+ * @deprecated Use {@link referenceFiles} to emit physical companion files.
201
205
  * @example ['references/', 'scripts/']
202
206
  */
203
207
  readonly references?: ReadonlyArray<string>;
208
+ /**
209
+ * Companion files shipped alongside the SKILL.md (e.g., templates, references, scripts).
210
+ * Each entry is rendered as a TextFile under the skill's directory on every
211
+ * platform that emits skills (Claude: `.claude/skills/{name}/{path}`,
212
+ * Cursor: `.cursor/skills/{name}/{path}`).
213
+ *
214
+ * Use this for skill assets that benefit from being separate files rather than
215
+ * inlined into the skill instructions — large templates, reference tables,
216
+ * runnable scripts.
217
+ *
218
+ * Per-platform `platforms.{claude,cursor}.exclude` flags suppress reference
219
+ * files for that platform alongside the SKILL.md.
220
+ *
221
+ * @example
222
+ * referenceFiles: [
223
+ * { path: '_references/templates/_template-FR.md', content: '# Functional Requirement\n...' },
224
+ * { path: '_references/standards-and-frameworks.md', content: '# Standards\n...' },
225
+ * ]
226
+ */
227
+ readonly referenceFiles?: ReadonlyArray<{
228
+ /** Path relative to the skill directory (e.g., `_references/templates/_template-FR.md`). */
229
+ readonly path: string;
230
+ /** File contents written verbatim. */
231
+ readonly content: string;
232
+ }>;
204
233
  /**
205
234
  * Context isolation mode. Set to 'fork' to run in an isolated subagent context.
206
235
  */
package/lib/index.d.ts CHANGED
@@ -247,9 +247,38 @@ interface AgentSkill {
247
247
  readonly paths?: ReadonlyArray<string>;
248
248
  /**
249
249
  * Resource directories bundled with the skill (e.g., references/, scripts/, assets/).
250
+ * Documentation hint only — directory names listed here are not emitted to disk.
251
+ * Prefer {@link referenceFiles} to ship actual companion file contents.
252
+ *
253
+ * @deprecated Use {@link referenceFiles} to emit physical companion files.
250
254
  * @example ['references/', 'scripts/']
251
255
  */
252
256
  readonly references?: ReadonlyArray<string>;
257
+ /**
258
+ * Companion files shipped alongside the SKILL.md (e.g., templates, references, scripts).
259
+ * Each entry is rendered as a TextFile under the skill's directory on every
260
+ * platform that emits skills (Claude: `.claude/skills/{name}/{path}`,
261
+ * Cursor: `.cursor/skills/{name}/{path}`).
262
+ *
263
+ * Use this for skill assets that benefit from being separate files rather than
264
+ * inlined into the skill instructions — large templates, reference tables,
265
+ * runnable scripts.
266
+ *
267
+ * Per-platform `platforms.{claude,cursor}.exclude` flags suppress reference
268
+ * files for that platform alongside the SKILL.md.
269
+ *
270
+ * @example
271
+ * referenceFiles: [
272
+ * { path: '_references/templates/_template-FR.md', content: '# Functional Requirement\n...' },
273
+ * { path: '_references/standards-and-frameworks.md', content: '# Standards\n...' },
274
+ * ]
275
+ */
276
+ readonly referenceFiles?: ReadonlyArray<{
277
+ /** Path relative to the skill directory (e.g., `_references/templates/_template-FR.md`). */
278
+ readonly path: string;
279
+ /** File contents written verbatim. */
280
+ readonly content: string;
281
+ }>;
253
282
  /**
254
283
  * Context isolation mode. Set to 'fork' to run in an isolated subagent context.
255
284
  */
package/lib/index.js CHANGED
@@ -8400,6 +8400,13 @@ var ClaudeRenderer = class _ClaudeRenderer {
8400
8400
  new import_textfile2.TextFile(component, `.claude/skills/${skill.name}/SKILL.md`, {
8401
8401
  lines
8402
8402
  });
8403
+ if (skill.referenceFiles && skill.referenceFiles.length > 0) {
8404
+ for (const file of skill.referenceFiles) {
8405
+ new import_textfile2.TextFile(component, `.claude/skills/${skill.name}/${file.path}`, {
8406
+ lines: file.content.split("\n")
8407
+ });
8408
+ }
8409
+ }
8403
8410
  }
8404
8411
  }
8405
8412
  static renderSubAgents(component, subAgents) {
@@ -8571,6 +8578,13 @@ var CursorRenderer = class _CursorRenderer {
8571
8578
  new import_textfile3.TextFile(component, `.cursor/skills/${skill.name}/SKILL.md`, {
8572
8579
  lines
8573
8580
  });
8581
+ if (skill.referenceFiles && skill.referenceFiles.length > 0) {
8582
+ for (const file of skill.referenceFiles) {
8583
+ new import_textfile3.TextFile(component, `.cursor/skills/${skill.name}/${file.path}`, {
8584
+ lines: file.content.split("\n")
8585
+ });
8586
+ }
8587
+ }
8574
8588
  }
8575
8589
  }
8576
8590
  static renderSubAgents(component, subAgents) {