@keystrokehq/cli 0.0.50 → 0.0.53

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.
Files changed (42) hide show
  1. package/dist/{cat-TSFMZVYS-COyQw_zT.mjs → cat-TSFMZVYS-BfwZOafs.mjs} +2 -2
  2. package/dist/{cat-TSFMZVYS-COyQw_zT.mjs.map → cat-TSFMZVYS-BfwZOafs.mjs.map} +1 -1
  3. package/dist/{cut-OKARJCCV-DAC5beNE.mjs → cut-OKARJCCV-Cm3OStWG.mjs} +2 -2
  4. package/dist/{cut-OKARJCCV-DAC5beNE.mjs.map → cut-OKARJCCV-Cm3OStWG.mjs.map} +1 -1
  5. package/dist/{dist-CnoekdhF-nc3ePIKw.mjs → dist-CXHSlVhd-CTQzOALD.mjs} +620 -52
  6. package/dist/dist-CXHSlVhd-CTQzOALD.mjs.map +1 -0
  7. package/dist/{du-572XNP42-ClFDz1ub.mjs → du-572XNP42-DeJ11TW7.mjs} +2 -2
  8. package/dist/{du-572XNP42-ClFDz1ub.mjs.map → du-572XNP42-DeJ11TW7.mjs.map} +1 -1
  9. package/dist/{emit-route-manifest-DRcNXHCP-CqaK0qtn.mjs → emit-route-manifest-DRcNXHCP-CSOVo0UZ.mjs} +194 -16
  10. package/dist/{emit-route-manifest-DRcNXHCP-CqaK0qtn.mjs.map → emit-route-manifest-DRcNXHCP-CSOVo0UZ.mjs.map} +1 -1
  11. package/dist/index.mjs +2152 -60
  12. package/dist/index.mjs.map +1 -1
  13. package/dist/{jq-4XLYLOS5-BWKcXbpD.mjs → jq-4XLYLOS5-DrYXLsYH.mjs} +2 -2
  14. package/dist/{jq-4XLYLOS5-BWKcXbpD.mjs.map → jq-4XLYLOS5-DrYXLsYH.mjs.map} +1 -1
  15. package/dist/{ls-ZJGQER7M-DjEDom2D.mjs → ls-ZJGQER7M-C_1bAeGq.mjs} +2 -2
  16. package/dist/{ls-ZJGQER7M-DjEDom2D.mjs.map → ls-ZJGQER7M-C_1bAeGq.mjs.map} +1 -1
  17. package/dist/{mistral-nX_EdAQA-BcnqjD2e.mjs → mistral-B75PpahY-Bd3ZQ07v.mjs} +3 -3
  18. package/dist/{mistral-nX_EdAQA-BcnqjD2e.mjs.map → mistral-B75PpahY-Bd3ZQ07v.mjs.map} +1 -1
  19. package/dist/skills-bundle/_AGENTS.md +2 -0
  20. package/dist/skills-bundle/skills/cli/SKILL.md +1 -1
  21. package/dist/skills-bundle/skills/cli/references/api-targets.md +4 -4
  22. package/dist/{sort-SW2YEO5B-BGiKfkqv.mjs → sort-SW2YEO5B-D08jaQ5v.mjs} +2 -2
  23. package/dist/{sort-SW2YEO5B-BGiKfkqv.mjs.map → sort-SW2YEO5B-D08jaQ5v.mjs.map} +1 -1
  24. package/dist/templates/hello-world/package.json +1 -1
  25. package/dist/{tree-YLD52CNT-B616RO-w.mjs → tree-YLD52CNT-DiHyiFBi.mjs} +2 -2
  26. package/dist/{tree-YLD52CNT-B616RO-w.mjs.map → tree-YLD52CNT-DiHyiFBi.mjs.map} +1 -1
  27. package/dist/{uniq-XSIZR6PB-ByjUQvSp.mjs → uniq-XSIZR6PB-BA-vRB1O.mjs} +2 -2
  28. package/dist/{uniq-XSIZR6PB-ByjUQvSp.mjs.map → uniq-XSIZR6PB-BA-vRB1O.mjs.map} +1 -1
  29. package/dist/{wc-LF7NU4LA-C9tSAYz9.mjs → wc-LF7NU4LA-BWoItyXd.mjs} +2 -2
  30. package/dist/{wc-LF7NU4LA-C9tSAYz9.mjs.map → wc-LF7NU4LA-BWoItyXd.mjs.map} +1 -1
  31. package/dist/{xan-Y6WF3IRG-FxihFV4-.mjs → xan-Y6WF3IRG-BilR2MsH.mjs} +2 -2
  32. package/dist/{xan-Y6WF3IRG-FxihFV4-.mjs.map → xan-Y6WF3IRG-BilR2MsH.mjs.map} +1 -1
  33. package/package.json +18 -18
  34. package/dist/dist-CnoekdhF-nc3ePIKw.mjs.map +0 -1
  35. package/dist/skills-bundle/index.cjs +0 -46
  36. package/dist/skills-bundle/index.cjs.map +0 -1
  37. package/dist/skills-bundle/index.d.cts +0 -12
  38. package/dist/skills-bundle/index.d.cts.map +0 -1
  39. package/dist/skills-bundle/index.d.mts +0 -12
  40. package/dist/skills-bundle/index.d.mts.map +0 -1
  41. package/dist/skills-bundle/index.mjs +0 -40
  42. package/dist/skills-bundle/index.mjs.map +0 -1
@@ -1,46 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- let node_fs = require("node:fs");
3
- let node_path = require("node:path");
4
- let node_url = require("node:url");
5
- let _keystrokehq_sandbox = require("@keystrokehq/sandbox");
6
- //#region src/load-bundled.ts
7
- const AGENTS_MD = "_AGENTS.md";
8
- const SKILLS_DIR = "skills";
9
- function bundledRoot() {
10
- const moduleDir = (0, node_path.dirname)((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href));
11
- const candidates = [(0, node_path.join)(moduleDir, "..", "dist"), (0, node_path.join)(moduleDir, "..", "bundled")];
12
- for (const candidate of candidates) if ((0, node_fs.existsSync)((0, node_path.join)(candidate, "_AGENTS.md"))) return candidate;
13
- throw new Error("Bundled keystroke skills not found — run `pnpm --filter @keystrokehq/skills build`");
14
- }
15
- function resolveBundledRoot() {
16
- return bundledRoot();
17
- }
18
- function loadBundledAgentsMd() {
19
- return (0, node_fs.readFileSync)((0, node_path.join)(bundledRoot(), AGENTS_MD), "utf8");
20
- }
21
- function listBundledSkillKeys() {
22
- const skillsRoot = (0, node_path.join)(bundledRoot(), SKILLS_DIR);
23
- if (!(0, node_fs.statSync)(skillsRoot, { throwIfNoEntry: false })?.isDirectory()) return [];
24
- return (0, node_fs.readdirSync)(skillsRoot).filter((name) => (0, node_fs.statSync)((0, node_path.join)(skillsRoot, name)).isDirectory()).sort();
25
- }
26
- function loadBundledSkills(keys) {
27
- const selected = keys ?? listBundledSkillKeys();
28
- const skillsRoot = (0, node_path.join)(bundledRoot(), SKILLS_DIR);
29
- return selected.map((key) => {
30
- const skillDir = (0, node_path.join)(skillsRoot, key);
31
- if (!(0, node_fs.statSync)(skillDir, { throwIfNoEntry: false })?.isDirectory()) throw new Error(`Unknown bundled skill "${key}"`);
32
- return (0, _keystrokehq_sandbox.defineSkill)({
33
- key,
34
- files: (0, _keystrokehq_sandbox.packDirFromDisk)(skillDir)
35
- });
36
- });
37
- }
38
- //#endregion
39
- exports.AGENTS_MD = AGENTS_MD;
40
- exports.SKILLS_DIR = SKILLS_DIR;
41
- exports.listBundledSkillKeys = listBundledSkillKeys;
42
- exports.loadBundledAgentsMd = loadBundledAgentsMd;
43
- exports.loadBundledSkills = loadBundledSkills;
44
- exports.resolveBundledRoot = resolveBundledRoot;
45
-
46
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../src/load-bundled.ts"],"sourcesContent":["import { existsSync, readFileSync, readdirSync, statSync } from \"node:fs\";\nimport { dirname, join } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { defineSkill, packDirFromDisk, type SkillDefinition } from \"@keystrokehq/sandbox\";\n\nexport const AGENTS_MD = \"_AGENTS.md\";\nexport const SKILLS_DIR = \"skills\";\n\nfunction bundledRoot(): string {\n const moduleDir = dirname(fileURLToPath(import.meta.url));\n const candidates = [join(moduleDir, \"..\", \"dist\"), join(moduleDir, \"..\", \"bundled\")];\n\n for (const candidate of candidates) {\n if (existsSync(join(candidate, AGENTS_MD))) {\n return candidate;\n }\n }\n\n throw new Error(\n \"Bundled keystroke skills not found — run `pnpm --filter @keystrokehq/skills build`\",\n );\n}\n\nexport function resolveBundledRoot(): string {\n return bundledRoot();\n}\n\nexport function loadBundledAgentsMd(): string {\n return readFileSync(join(bundledRoot(), AGENTS_MD), \"utf8\");\n}\n\nexport function listBundledSkillKeys(): string[] {\n const skillsRoot = join(bundledRoot(), SKILLS_DIR);\n if (!statSync(skillsRoot, { throwIfNoEntry: false })?.isDirectory()) {\n return [];\n }\n\n return readdirSync(skillsRoot)\n .filter((name) => statSync(join(skillsRoot, name)).isDirectory())\n .sort();\n}\n\nexport function loadBundledSkills(keys?: string[]): SkillDefinition[] {\n const selected = keys ?? listBundledSkillKeys();\n const skillsRoot = join(bundledRoot(), SKILLS_DIR);\n\n return selected.map((key) => {\n const skillDir = join(skillsRoot, key);\n if (!statSync(skillDir, { throwIfNoEntry: false })?.isDirectory()) {\n throw new Error(`Unknown bundled skill \"${key}\"`);\n }\n\n return defineSkill({ key, files: packDirFromDisk(skillDir) });\n });\n}\n"],"mappings":";;;;;;AAKA,MAAa,YAAY;AACzB,MAAa,aAAa;AAE1B,SAAS,cAAsB;CAC7B,MAAM,aAAA,GAAA,UAAA,UAAA,GAAA,SAAA,eAAA,QAAA,KAAA,EAAA,cAAA,UAAA,EAAA,IAAiD,CAAC;CACxD,MAAM,aAAa,EAAA,GAAA,UAAA,MAAM,WAAW,MAAM,MAAM,IAAA,GAAA,UAAA,MAAQ,WAAW,MAAM,SAAS,CAAC;CAEnF,KAAK,MAAM,aAAa,YACtB,KAAA,GAAA,QAAA,aAAA,GAAA,UAAA,MAAoB,WAAA,YAAoB,CAAC,GACvC,OAAO;CAIX,MAAM,IAAI,MACR,oFACF;AACF;AAEA,SAAgB,qBAA6B;CAC3C,OAAO,YAAY;AACrB;AAEA,SAAgB,sBAA8B;CAC5C,QAAA,GAAA,QAAA,eAAA,GAAA,UAAA,MAAyB,YAAY,GAAG,SAAS,GAAG,MAAM;AAC5D;AAEA,SAAgB,uBAAiC;CAC/C,MAAM,cAAA,GAAA,UAAA,MAAkB,YAAY,GAAG,UAAU;CACjD,IAAI,EAAA,GAAA,QAAA,UAAU,YAAY,EAAE,gBAAgB,MAAM,CAAC,GAAG,YAAY,GAChE,OAAO,CAAC;CAGV,QAAA,GAAA,QAAA,aAAmB,UAAU,EAC1B,QAAQ,UAAA,GAAA,QAAA,WAAA,GAAA,UAAA,MAAuB,YAAY,IAAI,CAAC,EAAE,YAAY,CAAC,EAC/D,KAAK;AACV;AAEA,SAAgB,kBAAkB,MAAoC;CACpE,MAAM,WAAW,QAAQ,qBAAqB;CAC9C,MAAM,cAAA,GAAA,UAAA,MAAkB,YAAY,GAAG,UAAU;CAEjD,OAAO,SAAS,KAAK,QAAQ;EAC3B,MAAM,YAAA,GAAA,UAAA,MAAgB,YAAY,GAAG;EACrC,IAAI,EAAA,GAAA,QAAA,UAAU,UAAU,EAAE,gBAAgB,MAAM,CAAC,GAAG,YAAY,GAC9D,MAAM,IAAI,MAAM,0BAA0B,IAAI,EAAE;EAGlD,QAAA,GAAA,qBAAA,aAAmB;GAAE;GAAK,QAAA,GAAA,qBAAA,iBAAuB,QAAQ;EAAE,CAAC;CAC9D,CAAC;AACH"}
@@ -1,12 +0,0 @@
1
- import { SkillDefinition } from "@keystrokehq/sandbox";
2
-
3
- //#region src/load-bundled.d.ts
4
- declare const AGENTS_MD = "_AGENTS.md";
5
- declare const SKILLS_DIR = "skills";
6
- declare function resolveBundledRoot(): string;
7
- declare function loadBundledAgentsMd(): string;
8
- declare function listBundledSkillKeys(): string[];
9
- declare function loadBundledSkills(keys?: string[]): SkillDefinition[];
10
- //#endregion
11
- export { AGENTS_MD, SKILLS_DIR, listBundledSkillKeys, loadBundledAgentsMd, loadBundledSkills, resolveBundledRoot };
12
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/load-bundled.ts"],"mappings":";;;cAKa,SAAA;AAAA,cACA,UAAA;AAAA,iBAiBG,kBAAA,CAAA;AAAA,iBAIA,mBAAA,CAAA;AAAA,iBAIA,oBAAA,CAAA;AAAA,iBAWA,iBAAA,CAAkB,IAAA,cAAkB,eAAe"}
@@ -1,12 +0,0 @@
1
- import { SkillDefinition } from "@keystrokehq/sandbox";
2
-
3
- //#region src/load-bundled.d.ts
4
- declare const AGENTS_MD = "_AGENTS.md";
5
- declare const SKILLS_DIR = "skills";
6
- declare function resolveBundledRoot(): string;
7
- declare function loadBundledAgentsMd(): string;
8
- declare function listBundledSkillKeys(): string[];
9
- declare function loadBundledSkills(keys?: string[]): SkillDefinition[];
10
- //#endregion
11
- export { AGENTS_MD, SKILLS_DIR, listBundledSkillKeys, loadBundledAgentsMd, loadBundledSkills, resolveBundledRoot };
12
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/load-bundled.ts"],"mappings":";;;cAKa,SAAA;AAAA,cACA,UAAA;AAAA,iBAiBG,kBAAA,CAAA;AAAA,iBAIA,mBAAA,CAAA;AAAA,iBAIA,oBAAA,CAAA;AAAA,iBAWA,iBAAA,CAAkB,IAAA,cAAkB,eAAe"}
@@ -1,40 +0,0 @@
1
- import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
2
- import { dirname, join } from "node:path";
3
- import { fileURLToPath } from "node:url";
4
- import { defineSkill, packDirFromDisk } from "@keystrokehq/sandbox";
5
- //#region src/load-bundled.ts
6
- const AGENTS_MD = "_AGENTS.md";
7
- const SKILLS_DIR = "skills";
8
- function bundledRoot() {
9
- const moduleDir = dirname(fileURLToPath(import.meta.url));
10
- const candidates = [join(moduleDir, "..", "dist"), join(moduleDir, "..", "bundled")];
11
- for (const candidate of candidates) if (existsSync(join(candidate, "_AGENTS.md"))) return candidate;
12
- throw new Error("Bundled keystroke skills not found — run `pnpm --filter @keystrokehq/skills build`");
13
- }
14
- function resolveBundledRoot() {
15
- return bundledRoot();
16
- }
17
- function loadBundledAgentsMd() {
18
- return readFileSync(join(bundledRoot(), AGENTS_MD), "utf8");
19
- }
20
- function listBundledSkillKeys() {
21
- const skillsRoot = join(bundledRoot(), SKILLS_DIR);
22
- if (!statSync(skillsRoot, { throwIfNoEntry: false })?.isDirectory()) return [];
23
- return readdirSync(skillsRoot).filter((name) => statSync(join(skillsRoot, name)).isDirectory()).sort();
24
- }
25
- function loadBundledSkills(keys) {
26
- const selected = keys ?? listBundledSkillKeys();
27
- const skillsRoot = join(bundledRoot(), SKILLS_DIR);
28
- return selected.map((key) => {
29
- const skillDir = join(skillsRoot, key);
30
- if (!statSync(skillDir, { throwIfNoEntry: false })?.isDirectory()) throw new Error(`Unknown bundled skill "${key}"`);
31
- return defineSkill({
32
- key,
33
- files: packDirFromDisk(skillDir)
34
- });
35
- });
36
- }
37
- //#endregion
38
- export { AGENTS_MD, SKILLS_DIR, listBundledSkillKeys, loadBundledAgentsMd, loadBundledSkills, resolveBundledRoot };
39
-
40
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/load-bundled.ts"],"sourcesContent":["import { existsSync, readFileSync, readdirSync, statSync } from \"node:fs\";\nimport { dirname, join } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { defineSkill, packDirFromDisk, type SkillDefinition } from \"@keystrokehq/sandbox\";\n\nexport const AGENTS_MD = \"_AGENTS.md\";\nexport const SKILLS_DIR = \"skills\";\n\nfunction bundledRoot(): string {\n const moduleDir = dirname(fileURLToPath(import.meta.url));\n const candidates = [join(moduleDir, \"..\", \"dist\"), join(moduleDir, \"..\", \"bundled\")];\n\n for (const candidate of candidates) {\n if (existsSync(join(candidate, AGENTS_MD))) {\n return candidate;\n }\n }\n\n throw new Error(\n \"Bundled keystroke skills not found — run `pnpm --filter @keystrokehq/skills build`\",\n );\n}\n\nexport function resolveBundledRoot(): string {\n return bundledRoot();\n}\n\nexport function loadBundledAgentsMd(): string {\n return readFileSync(join(bundledRoot(), AGENTS_MD), \"utf8\");\n}\n\nexport function listBundledSkillKeys(): string[] {\n const skillsRoot = join(bundledRoot(), SKILLS_DIR);\n if (!statSync(skillsRoot, { throwIfNoEntry: false })?.isDirectory()) {\n return [];\n }\n\n return readdirSync(skillsRoot)\n .filter((name) => statSync(join(skillsRoot, name)).isDirectory())\n .sort();\n}\n\nexport function loadBundledSkills(keys?: string[]): SkillDefinition[] {\n const selected = keys ?? listBundledSkillKeys();\n const skillsRoot = join(bundledRoot(), SKILLS_DIR);\n\n return selected.map((key) => {\n const skillDir = join(skillsRoot, key);\n if (!statSync(skillDir, { throwIfNoEntry: false })?.isDirectory()) {\n throw new Error(`Unknown bundled skill \"${key}\"`);\n }\n\n return defineSkill({ key, files: packDirFromDisk(skillDir) });\n });\n}\n"],"mappings":";;;;;AAKA,MAAa,YAAY;AACzB,MAAa,aAAa;AAE1B,SAAS,cAAsB;CAC7B,MAAM,YAAY,QAAQ,cAAc,OAAO,KAAK,GAAG,CAAC;CACxD,MAAM,aAAa,CAAC,KAAK,WAAW,MAAM,MAAM,GAAG,KAAK,WAAW,MAAM,SAAS,CAAC;CAEnF,KAAK,MAAM,aAAa,YACtB,IAAI,WAAW,KAAK,WAAA,YAAoB,CAAC,GACvC,OAAO;CAIX,MAAM,IAAI,MACR,oFACF;AACF;AAEA,SAAgB,qBAA6B;CAC3C,OAAO,YAAY;AACrB;AAEA,SAAgB,sBAA8B;CAC5C,OAAO,aAAa,KAAK,YAAY,GAAG,SAAS,GAAG,MAAM;AAC5D;AAEA,SAAgB,uBAAiC;CAC/C,MAAM,aAAa,KAAK,YAAY,GAAG,UAAU;CACjD,IAAI,CAAC,SAAS,YAAY,EAAE,gBAAgB,MAAM,CAAC,GAAG,YAAY,GAChE,OAAO,CAAC;CAGV,OAAO,YAAY,UAAU,EAC1B,QAAQ,SAAS,SAAS,KAAK,YAAY,IAAI,CAAC,EAAE,YAAY,CAAC,EAC/D,KAAK;AACV;AAEA,SAAgB,kBAAkB,MAAoC;CACpE,MAAM,WAAW,QAAQ,qBAAqB;CAC9C,MAAM,aAAa,KAAK,YAAY,GAAG,UAAU;CAEjD,OAAO,SAAS,KAAK,QAAQ;EAC3B,MAAM,WAAW,KAAK,YAAY,GAAG;EACrC,IAAI,CAAC,SAAS,UAAU,EAAE,gBAAgB,MAAM,CAAC,GAAG,YAAY,GAC9D,MAAM,IAAI,MAAM,0BAA0B,IAAI,EAAE;EAGlD,OAAO,YAAY;GAAE;GAAK,OAAO,gBAAgB,QAAQ;EAAE,CAAC;CAC9D,CAAC;AACH"}