@sanity/ailf 3.4.0 → 3.4.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.
|
@@ -81,9 +81,11 @@ export function validateCanonicalTasks(tasks) {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
// Check task has at least one llm-rubric assertion (recommended but not required)
|
|
84
|
+
// Check task has at least one llm-rubric assertion (recommended but not required).
|
|
85
|
+
// agent-harness tasks grade side-effects (file-exists, command-succeeds, etc.),
|
|
86
|
+
// not text output, so an llm-rubric is not expected.
|
|
85
87
|
const hasLlmRubric = assertions.some((a) => a.type === "llm-rubric");
|
|
86
|
-
if (!hasLlmRubric) {
|
|
88
|
+
if (!hasLlmRubric && task.mode !== "agent-harness") {
|
|
87
89
|
warnings.push({
|
|
88
90
|
taskId: task.id,
|
|
89
91
|
field: "assertions",
|
package/dist/commands/init.js
CHANGED
|
@@ -258,6 +258,11 @@ async function runInit(opts) {
|
|
|
258
258
|
console.log(` 1. Edit the example tasks in ${rel(targetDir, tasksDir)}/ — update`);
|
|
259
259
|
console.log(" slugs and prompts for your documentation");
|
|
260
260
|
console.log(` 2. Validate locally: npx @sanity/ailf@latest validate-tasks .ailf/tasks/`);
|
|
261
|
+
console.log();
|
|
262
|
+
console.log(' Note: tasks with status: "draft" are skipped on normal runs.');
|
|
263
|
+
console.log(" To run one anyway, target it explicitly with --task <id>, e.g.:");
|
|
264
|
+
console.log(" npx @sanity/ailf@latest pipeline --task example-agent-add-schema");
|
|
265
|
+
console.log();
|
|
261
266
|
console.log(" 3. Add a GitHub Actions secret");
|
|
262
267
|
console.log(" (Settings → Secrets and variables → Actions):");
|
|
263
268
|
console.log(" • AILF_API_KEY — your API key");
|