@sanity/ailf-studio 1.10.1 → 1.11.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.
Files changed (2) hide show
  1. package/dist/index.js +12 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2600,6 +2600,14 @@ var taskSchema = defineType5({
2600
2600
  type: "string",
2601
2601
  validation: (rule) => rule.required()
2602
2602
  }),
2603
+ defineField5({
2604
+ description: "Detailed description of what this task evaluates. Displayed in reports and task lists. Optional but recommended for clarity.",
2605
+ group: ["main", "all-fields"],
2606
+ name: "description",
2607
+ rows: 2,
2608
+ title: "Description",
2609
+ type: "text"
2610
+ }),
2603
2611
  // -----------------------------------------------------------------------
2604
2612
  // Ownership — who is the source of truth for this task
2605
2613
  //
@@ -6721,7 +6729,10 @@ function testOutputsEntryKey(taskId, modelId) {
6721
6729
  if (!match) return null;
6722
6730
  const mode = match[1].toLowerCase();
6723
6731
  const task = taskId.slice(0, match.index).trim();
6724
- return `${mode}--${task}--${modelId}`;
6732
+ return sanitizeEntryKey(`${mode}--${task}--${modelId}`);
6733
+ }
6734
+ function sanitizeEntryKey(key) {
6735
+ return key.replace(/::/g, "--").replace(/\//g, "_");
6725
6736
  }
6726
6737
 
6727
6738
  // src/lib/useArtifactCache.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ailf-studio",
3
- "version": "1.10.1",
3
+ "version": "1.11.0",
4
4
  "description": "AI Literacy Framework — Sanity Studio dashboard plugin",
5
5
  "type": "module",
6
6
  "license": "MIT",