{"version":3,"file":"skills.mjs","names":[],"sources":["../../src/commands/skills.ts"],"sourcesContent":["import { defineCommand } from \"citty\";\nimport { skillsSync } from \"../tool-operations.ts\";\nimport { formatArgs, report } from \"./output.ts\";\n\nexport default defineCommand({\n  meta: { description: \"Manage shared skills across harnesses\" },\n  subCommands: {\n    sync: defineCommand({\n      meta: {\n        description:\n          \"Link harness skills directories to the skills folder in the agntn XDG data directory\",\n      },\n      args: {\n        id: { type: \"positional\" as const, description: \"Harness id\", required: false },\n        check: {\n          type: \"boolean\" as const,\n          description: \"Report what would change without writing anything\",\n        },\n        ...formatArgs,\n      },\n      run({ args }) {\n        const id = args.id === undefined ? undefined : (args.id as string);\n        report(skillsSync(id, args.check === true), args);\n      },\n    }),\n  },\n});\n"],"mappings":";;;;AAIA,IAAA,iBAAe,cAAc;CAC3B,MAAM,EAAE,aAAa,wCAAwC;CAC7D,aAAa,EACX,MAAM,cAAc;EAClB,MAAM,EACJ,aACE,uFACJ;EACA,MAAM;GACJ,IAAI;IAAE,MAAM;IAAuB,aAAa;IAAc,UAAU;GAAM;GAC9E,OAAO;IACL,MAAM;IACN,aAAa;GACf;GACA,GAAG;EACL;EACA,IAAI,EAAE,QAAQ;GACZ,MAAM,KAAK,KAAK,OAAO,KAAA,IAAY,KAAA,IAAa,KAAK;GACrD,OAAO,WAAW,IAAI,KAAK,UAAU,IAAI,GAAG,IAAI;EAClD;CACF,CAAC,EACH;AACF,CAAC"}