Lines 5-45javascript
5var __hasOwnProp = Object.prototype.hasOwnProperty;
6var __export = (target, all) => {
8 __defProp(target, name, { get: all[name], enumerable: true });
10var __copyProps = (to, from, except, desc) => {
11 if (from && typeof from === "object" || typeof from === "function") {
12 for (let key of __getOwnPropNames(from))
13 if (!__hasOwnProp.call(to, key) && key !== except)
14 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21var tools_exports = {};
22__export(tools_exports, {
23 checklistTools: () => checklistTools
25module.exports = __toCommonJS(tools_exports);
26var import_ai = require("ai");
27var import_zod = require("zod");
MediumDynamic Require
Package source references dynamic require/import behavior.
dist/tools/index.cjsView on unpkg · L25 28var groupTree = import_zod.z.object({
29 title: import_zod.z.string(),
30 steps: import_zod.z.array(import_zod.z.object({ title: import_zod.z.string(), required: import_zod.z.boolean().default(true) })).default([]),
31 metadata: import_zod.z.record(import_zod.z.string(), import_zod.z.string()).optional()
33var checklistInput = import_zod.z.object({
34 title: import_zod.z.string(),
35 description: import_zod.z.string().optional(),
36 groups: import_zod.z.array(groupTree).describe("Groups, each with its ordered steps.")
38function checklistTools(client) {
40 get_reports: (0, import_ai.tool)({
41 description: "Find results/reports from checklist & assignment submissions. Returns assignment completion counts and review-outcome counts; if assignment_id is given, also returns that assignment's recent audit timeline.",
42 inputSchema: import_zod.z.object({
43 checklist_id: import_zod.z.string().optional().describe("Scope the rollup to one checklist (cl_\u2026)."),
44 assignment_id: import_zod.z.string().optional().describe("Also return this assignment's timeline (asg_\u2026).")