@sanity/ailf-studio 0.1.0 → 0.1.2

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/README.md CHANGED
@@ -65,6 +65,11 @@ This registers:
65
65
 
66
66
  - The `ailf.report` document type (read-only evaluation reports)
67
67
  - The `ailf.webhookConfig` document type (webhook-triggered evaluation settings)
68
+ - The `ailf.task` document type (evaluation task definitions)
69
+ - The `ailf.featureArea` document type (feature area groupings)
70
+ - The `ailf.referenceSolution` document type (gold-standard reference
71
+ implementations)
72
+ - The `ailf.evalRequest` document type (evaluation request triggers)
68
73
  - The **AI Literacy** dashboard tool in the Studio sidebar
69
74
 
70
75
  ### 3. Alternative: tool-only installation
@@ -91,12 +96,24 @@ programmatically):
91
96
  ```ts
92
97
  // sanity.config.ts
93
98
  import { defineConfig } from "sanity"
94
- import { reportSchema, webhookConfigSchema } from "@sanity/ailf-studio"
99
+ import {
100
+ reportSchema,
101
+ webhookConfigSchema,
102
+ taskSchema,
103
+ featureAreaSchema,
104
+ referenceSolutionSchema,
105
+ } from "@sanity/ailf-studio"
95
106
 
96
107
  export default defineConfig({
97
108
  // ... your existing config
98
109
  schema: {
99
- types: [reportSchema, webhookConfigSchema],
110
+ types: [
111
+ reportSchema,
112
+ webhookConfigSchema,
113
+ taskSchema,
114
+ featureAreaSchema,
115
+ referenceSolutionSchema,
116
+ ],
100
117
  },
101
118
  })
102
119
  ```
@@ -198,10 +215,30 @@ The plugin exports building blocks for custom views or extensions:
198
215
 
199
216
  ### Schemas
200
217
 
201
- | Export | Description |
202
- | --------------------- | -------------------------------------- |
203
- | `reportSchema` | `ailf.report` document type definition |
204
- | `webhookConfigSchema` | `ailf.webhookConfig` document type |
218
+ | Export | Description |
219
+ | ------------------------- | ------------------------------------------------- |
220
+ | `reportSchema` | `ailf.report` document type definition |
221
+ | `webhookConfigSchema` | `ailf.webhookConfig` document type |
222
+ | `taskSchema` | `ailf.task` document type definition |
223
+ | `featureAreaSchema` | `ailf.featureArea` document type definition |
224
+ | `referenceSolutionSchema` | `ailf.referenceSolution` document type definition |
225
+ | `evalRequestSchema` | `ailf.evalRequest` document type definition |
226
+
227
+ ### Components
228
+
229
+ | Export | Description |
230
+ | ------------------- | --------------------------------------------------------------------------------------------- |
231
+ | `AssertionInput` | Custom input for task assertions with contextual type descriptions and monospace code styling |
232
+ | `CanonicalDocInput` | Custom input for canonical doc references with polymorphic resolution type help |
233
+ | `MirrorBanner` | Banner showing repo source, sync status, and provenance for mirrored tasks |
234
+ | `SyncStatusBadge` | Colored badge (green/yellow/red) showing sync freshness of mirrored tasks |
235
+
236
+ ### Document Actions
237
+
238
+ | Export | Description |
239
+ | --------------------------- | ----------------------------------------------------------------------------------- |
240
+ | `GraduateToNativeAction` | Converts a mirrored (read-only) task to a native (editable) task by removing origin |
241
+ | `createRunEvaluationAction` | Factory for creating a Studio action that triggers evaluations |
205
242
 
206
243
  ### GROQ Queries
207
244
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as sanity from 'sanity';
2
- import { DocumentActionComponent, ReleaseActionComponent, Tool } from 'sanity';
2
+ import { DocumentActionComponent, ObjectInputProps, StringInputProps, ReleaseActionComponent, Tool } from 'sanity';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { DocumentRef } from './document-ref.js';
5
5
 
@@ -22,11 +22,17 @@ import { DocumentRef } from './document-ref.js';
22
22
  * The action only appears on ailf.task documents that have an `origin`
23
23
  * field (i.e., mirrored tasks). Native tasks never see it.
24
24
  *
25
- * @see docs/exec-plans/active/tasks-as-content/phase-5-content-lake-mirroring.md
25
+ * @see docs/exec-plans/completed/tasks-as-content/phase-5-content-lake-mirroring.md
26
26
  */
27
27
 
28
28
  declare const GraduateToNativeAction: DocumentActionComponent;
29
29
 
30
+ declare function AssertionInput(props: ObjectInputProps): react_jsx_runtime.JSX.Element;
31
+
32
+ declare function CanonicalDocInput(props: ObjectInputProps): react_jsx_runtime.JSX.Element;
33
+
34
+ declare function ReleasePicker(props: StringInputProps): react_jsx_runtime.JSX.Element;
35
+
30
36
  /**
31
37
  * components/MirrorBanner.tsx
32
38
  *
@@ -37,7 +43,7 @@ declare const GraduateToNativeAction: DocumentActionComponent;
37
43
  * Paired with `SyncStatusBadge` to show both the source and freshness
38
44
  * of the mirror.
39
45
  *
40
- * @see docs/exec-plans/active/tasks-as-content/phase-5-content-lake-mirroring.md
46
+ * @see docs/exec-plans/completed/tasks-as-content/phase-5-content-lake-mirroring.md
41
47
  */
42
48
  interface MirrorBannerProps {
43
49
  origin: {
@@ -61,7 +67,7 @@ declare function MirrorBanner({ origin }: MirrorBannerProps): react_jsx_runtime.
61
67
  * Uses the `origin.lastSyncedAt` timestamp that the pipeline sets
62
68
  * on every mirror upsert (Phase 5a).
63
69
  *
64
- * @see docs/exec-plans/active/tasks-as-content/phase-5-content-lake-mirroring.md
70
+ * @see docs/exec-plans/completed/tasks-as-content/phase-5-content-lake-mirroring.md
65
71
  */
66
72
  interface SyncStatusBadgeProps {
67
73
  /** ISO 8601 timestamp from origin.lastSyncedAt */
@@ -338,9 +344,8 @@ declare const referenceSolutionSchema: {
338
344
  name: "ailf.referenceSolution";
339
345
  } & Omit<sanity.DocumentDefinition, "preview"> & {
340
346
  preview?: sanity.PreviewConfig<{
341
- language: string;
342
347
  title: string;
343
- }, Record<string, unknown>> | undefined;
348
+ }, Record<"title", any>> | undefined;
344
349
  };
345
350
 
346
351
  /**
@@ -700,4 +705,4 @@ interface TimelineDataPoint {
700
705
  */
701
706
  declare const ailfPlugin: sanity.Plugin<void>;
702
707
 
703
- export { type ComparisonData, type ContentImpactItem, GLOSSARY, GraduateToNativeAction, MirrorBanner, type ProvenanceData, type ReportDetail, type ReportListItem, type RunEvaluationActionOptions, type ScoreItem, type SummaryData, SyncStatusBadge, type TimelineDataPoint, ailfPlugin, ailfTool, articleSearchQuery, comparisonPairQuery, contentImpactQuery, createRunEvaluationAction, distinctAreasQuery, distinctModesQuery, distinctPerspectivesQuery, distinctSourcesQuery, distinctTargetDocumentsQuery, evalRequestSchema, featureAreaSchema, latestReportsQuery, recentDocumentEvalsQuery, referenceSolutionSchema, reportDetailQuery, reportSchema, scoreTimelineQuery, taskSchema, webhookConfigSchema };
708
+ export { AssertionInput, CanonicalDocInput, type ComparisonData, type ContentImpactItem, GLOSSARY, GraduateToNativeAction, MirrorBanner, type ProvenanceData, ReleasePicker, type ReportDetail, type ReportListItem, type RunEvaluationActionOptions, type ScoreItem, type SummaryData, SyncStatusBadge, type TimelineDataPoint, ailfPlugin, ailfTool, articleSearchQuery, comparisonPairQuery, contentImpactQuery, createRunEvaluationAction, distinctAreasQuery, distinctModesQuery, distinctPerspectivesQuery, distinctSourcesQuery, distinctTargetDocumentsQuery, evalRequestSchema, featureAreaSchema, latestReportsQuery, recentDocumentEvalsQuery, referenceSolutionSchema, reportDetailQuery, reportSchema, scoreTimelineQuery, taskSchema, webhookConfigSchema };