@sanity/ailf-studio 1.18.0 → 1.19.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 (3) hide show
  1. package/dist/index.d.ts +30 -7
  2. package/dist/index.js +2244 -2493
  3. package/package.json +2 -1
package/dist/index.d.ts CHANGED
@@ -1212,11 +1212,16 @@ declare const webhookConfigSchema: {
1212
1212
  * Defines URL-based routing so each view is bookmarkable and
1213
1213
  * supports browser back/forward navigation.
1214
1214
  *
1215
- * Route structure:
1216
- * /ailf → Latest Reports (home)
1217
- * /ailf/report/:reportId Report Detail
1218
- * /ailf/timeline Score Timeline
1219
- * /ailf/compare Compare
1215
+ * Route structure (URLs shown with the default tool name `dashboard`;
1216
+ * override via `ailfTool({ name })` to change the segment):
1217
+ * /dashboard Latest Reports (home)
1218
+ * /dashboard/report/:reportId Report Detail
1219
+ * /dashboard/timeline Score Timeline
1220
+ *
1221
+ * The Compare view (`/dashboard/compare`) is temporarily hidden from
1222
+ * the dashboard tab UI pending more implementation. The router still
1223
+ * accepts `view: "compare"` so any existing bookmarks degrade
1224
+ * gracefully to the Latest Reports tab.
1220
1225
  */
1221
1226
 
1222
1227
  /**
@@ -1238,6 +1243,24 @@ interface AilfToolOptions {
1238
1243
  }
1239
1244
  declare function ailfTool(options?: AilfToolOptions): Tool;
1240
1245
 
1246
+ /**
1247
+ * Options for `ailfPlugin()`.
1248
+ */
1249
+ interface AilfPluginOptions {
1250
+ /**
1251
+ * Override the AILF dashboard tool's `name` (the URL segment inside
1252
+ * the workspace). Defaults to `"dashboard"`, which avoids URL
1253
+ * collisions with the conventional `ailf` workspace `basePath` —
1254
+ * a workspace at `basePath: "/ailf"` yields the dashboard URL
1255
+ * `/ailf/dashboard` out of the box.
1256
+ *
1257
+ * Set this only when a deployment needs a different label (e.g. a
1258
+ * legacy URL needs to remain stable). The tool segment itself is
1259
+ * mandatory in Sanity Studio's router — this option just relabels
1260
+ * it.
1261
+ */
1262
+ toolName?: string;
1263
+ }
1241
1264
  /**
1242
1265
  * AILF Studio plugin — registers the report schema, dashboard tool,
1243
1266
  * and document actions for `ailf.task` documents (Graduate to Native
@@ -1246,6 +1269,6 @@ declare function ailfTool(options?: AilfToolOptions): Tool;
1246
1269
  * This is the recommended way to install the plugin. It registers
1247
1270
  * schemas, the dashboard tool, and document-level actions in one call.
1248
1271
  */
1249
- declare const ailfPlugin: sanity.Plugin<void>;
1272
+ declare const ailfPlugin: sanity.Plugin<void | AilfPluginOptions>;
1250
1273
 
1251
- export { ArchiveTaskAction, AssertionInput, CanonicalDocInput, type ComparisonData, type ContentImpactItem, GLOSSARY, GraduateToNativeAction, HelpDrawer, HelpProvider, type HelpTopic, MirrorBanner, type PerModelData, type ProvenanceData, ReleasePicker, type ReportDetail, type ReportListItem, RestoreTaskAction, type RunEvaluationActionOptions, RunTaskEvaluationAction, type ScoreItem, type SummaryData, SyncStatusBadge, type TimelineDataPoint, ailfPlugin, ailfStructure, ailfTaskStructureItem, ailfTool, articleSearchQuery, comparisonPairQuery, contentImpactQuery, createRunEvaluationAction, deriveHelpTopic, distinctAreasQuery, distinctModesQuery, distinctPerspectivesQuery, distinctSourcesQuery, distinctTargetDocumentsQuery, distinctTriggersQuery, evalRequestSchema, featureAreaSchema, findTopic, latestReportsQuery, recentDocumentEvalsQuery, referenceSolutionSchema, reportDetailQuery, reportSchema, scoreTimelineQuery, searchTopics, taskSchema, useHelp, webhookConfigSchema };
1274
+ export { type AilfPluginOptions, ArchiveTaskAction, AssertionInput, CanonicalDocInput, type ComparisonData, type ContentImpactItem, GLOSSARY, GraduateToNativeAction, HelpDrawer, HelpProvider, type HelpTopic, MirrorBanner, type PerModelData, type ProvenanceData, ReleasePicker, type ReportDetail, type ReportListItem, RestoreTaskAction, type RunEvaluationActionOptions, RunTaskEvaluationAction, type ScoreItem, type SummaryData, SyncStatusBadge, type TimelineDataPoint, ailfPlugin, ailfStructure, ailfTaskStructureItem, ailfTool, articleSearchQuery, comparisonPairQuery, contentImpactQuery, createRunEvaluationAction, deriveHelpTopic, distinctAreasQuery, distinctModesQuery, distinctPerspectivesQuery, distinctSourcesQuery, distinctTargetDocumentsQuery, distinctTriggersQuery, evalRequestSchema, featureAreaSchema, findTopic, latestReportsQuery, recentDocumentEvalsQuery, referenceSolutionSchema, reportDetailQuery, reportSchema, scoreTimelineQuery, searchTopics, taskSchema, useHelp, webhookConfigSchema };