UNPKG

aiwg

Version:

Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo

43 lines 1.53 kB
/** * Activity Log Types * * Type definitions for `.aiwg/activity.log` entries. The wire format is * frozen by the activity-log rule (`agentic/code/addons/aiwg-utils/rules/activity-log.md`): * * ## [YYYY-MM-DD HH:MM] <operation> | <summary> * * @issue #934 * @issue #964 */ /** * Valid operation tokens. The activity-log rule freezes this set; * additions require updating the rule too. */ export declare const ACTIVITY_OPERATIONS: readonly ["ingest", "create", "update", "delete", "query", "lint", "deploy", "archive", "promote"]; export type ActivityOperation = (typeof ACTIVITY_OPERATIONS)[number]; export interface ActivityEntry { /** UTC timestamp parsed from the line, e.g., 2026-04-28T14:33:00Z. */ timestamp: Date; /** Original raw timestamp string from the line ("YYYY-MM-DD HH:MM"). */ rawTimestamp: string; /** Operation token. */ operation: ActivityOperation; /** One-sentence summary (no leading/trailing whitespace). */ summary: string; } export declare function isActivityOperation(s: string): s is ActivityOperation; /** * Format an entry as the canonical wire line (no trailing newline). * * Wire format: `## [YYYY-MM-DD HH:MM] <operation> | <summary>` */ export declare function formatEntry(entry: { timestamp: Date; operation: ActivityOperation; summary: string; }): string; /** * Format a Date as the canonical "YYYY-MM-DD HH:MM" UTC timestamp. */ export declare function formatUtcTimestamp(d: Date): string; //# sourceMappingURL=types.d.ts.map