@sanity/ailf-studio 0.1.0 → 0.1.1

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, 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,15 @@ 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
+
30
34
  /**
31
35
  * components/MirrorBanner.tsx
32
36
  *
@@ -37,7 +41,7 @@ declare const GraduateToNativeAction: DocumentActionComponent;
37
41
  * Paired with `SyncStatusBadge` to show both the source and freshness
38
42
  * of the mirror.
39
43
  *
40
- * @see docs/exec-plans/active/tasks-as-content/phase-5-content-lake-mirroring.md
44
+ * @see docs/exec-plans/completed/tasks-as-content/phase-5-content-lake-mirroring.md
41
45
  */
42
46
  interface MirrorBannerProps {
43
47
  origin: {
@@ -61,7 +65,7 @@ declare function MirrorBanner({ origin }: MirrorBannerProps): react_jsx_runtime.
61
65
  * Uses the `origin.lastSyncedAt` timestamp that the pipeline sets
62
66
  * on every mirror upsert (Phase 5a).
63
67
  *
64
- * @see docs/exec-plans/active/tasks-as-content/phase-5-content-lake-mirroring.md
68
+ * @see docs/exec-plans/completed/tasks-as-content/phase-5-content-lake-mirroring.md
65
69
  */
66
70
  interface SyncStatusBadgeProps {
67
71
  /** ISO 8601 timestamp from origin.lastSyncedAt */
@@ -700,4 +704,4 @@ interface TimelineDataPoint {
700
704
  */
701
705
  declare const ailfPlugin: sanity.Plugin<void>;
702
706
 
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 };
707
+ export { AssertionInput, CanonicalDocInput, 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 };