track_changes
Monitor manuscript modifications by comparing current files against previous versions using timestamps, file patterns, and detail levels to track writing progress.
Instructions
Show what changed since timestamp
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | No | Path to manuscript directory (defaults to current directory) | |
| since | No | Timestamp or relative time | |
| scope | No | File scope pattern | |
| summary_level | No | Summary detail level | file |
Implementation Reference
- src/tools/WriterToolHandlers.ts:293-304 (handler)The core handler function for the 'track_changes' tool. It extracts 'since' and 'scope' from args, fetches current writing stats, and returns a structure with the since timestamp, an empty changes array (placeholder for actual diff logic), and stats.private async trackChanges(args: Record<string, unknown>) { const since = args.since as string | undefined; const scope = args.scope as string | undefined; const stats = await this.writersAid.getStats({ scope }); return { since, changes: [], stats, }; }
- The input schema definition for the 'track_changes' tool, including parameters like project_path, since, scope, and summary_level.{ name: "track_changes", description: "Show what changed since timestamp", inputSchema: { type: "object", properties: { project_path: { type: "string", description: "Path to manuscript directory (defaults to current directory)" }, since: { type: "string", description: "Timestamp or relative time" }, scope: { type: "string", description: "File scope pattern" }, summary_level: { type: "string", enum: ["section", "file", "line"], description: "Summary detail level", default: "file", }, }, }, },
- src/tools/WriterToolHandlers.ts:58-59 (registration)The switch case in handleTool method that registers and dispatches to the trackChanges handler for the 'track_changes' tool.case "track_changes": return this.trackChanges(args);