hyperframes 0.2.2-alpha.3 → 0.2.2

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 (2) hide show
  1. package/dist/cli.js +84 -9
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -54,7 +54,7 @@ var VERSION;
54
54
  var init_version = __esm({
55
55
  "src/version.ts"() {
56
56
  "use strict";
57
- VERSION = true ? "0.2.2-alpha.3" : "0.0.0-dev";
57
+ VERSION = true ? "0.2.2" : "0.0.0-dev";
58
58
  }
59
59
  });
60
60
 
@@ -2631,8 +2631,8 @@ function flushSync() {
2631
2631
  eventQueue = [];
2632
2632
  const payload = JSON.stringify({ api_key: POSTHOG_API_KEY, batch });
2633
2633
  try {
2634
- const { spawn: spawn9 } = __require("child_process");
2635
- const child = spawn9(
2634
+ const { spawn: spawn10 } = __require("child_process");
2635
+ const child = spawn10(
2636
2636
  process.execPath,
2637
2637
  [
2638
2638
  "-e",
@@ -28951,6 +28951,85 @@ var init_upgrade = __esm({
28951
28951
  }
28952
28952
  });
28953
28953
 
28954
+ // src/commands/skills.ts
28955
+ var skills_exports = {};
28956
+ __export(skills_exports, {
28957
+ default: () => skills_default
28958
+ });
28959
+ import { execFileSync as execFileSync5, spawn as spawn9 } from "child_process";
28960
+ function hasNpx() {
28961
+ try {
28962
+ execFileSync5("npx", ["--version"], { stdio: "ignore", timeout: 5e3 });
28963
+ return true;
28964
+ } catch {
28965
+ return false;
28966
+ }
28967
+ }
28968
+ function runSkillsAdd(repo) {
28969
+ return new Promise((resolve25, reject) => {
28970
+ const child = spawn9("npx", ["skills", "add", repo, "--all", "-g"], {
28971
+ stdio: "ignore",
28972
+ timeout: 12e4
28973
+ });
28974
+ child.on("close", (code) => {
28975
+ if (code === 0) resolve25();
28976
+ else reject(new Error(`npx skills add exited with code ${code}`));
28977
+ });
28978
+ child.on("error", reject);
28979
+ });
28980
+ }
28981
+ var SOURCES, skills_default;
28982
+ var init_skills = __esm({
28983
+ "src/commands/skills.ts"() {
28984
+ "use strict";
28985
+ init_dist();
28986
+ init_dist3();
28987
+ init_colors();
28988
+ SOURCES = [
28989
+ { name: "HyperFrames", repo: "heygen-com/hyperframes" },
28990
+ { name: "GSAP", repo: "greensock/gsap-skills" }
28991
+ ];
28992
+ skills_default = defineCommand({
28993
+ meta: {
28994
+ name: "skills",
28995
+ description: "Install HyperFrames and GSAP skills for AI coding tools"
28996
+ },
28997
+ args: {},
28998
+ async run() {
28999
+ Wt2(c.bold("hyperframes skills"));
29000
+ if (!hasNpx()) {
29001
+ R2.error(c.error("npx not found. Install Node.js and retry."));
29002
+ Gt(c.warn("No skills installed."));
29003
+ return;
29004
+ }
29005
+ const installed = [];
29006
+ const skipped = [];
29007
+ for (const source of SOURCES) {
29008
+ const spinner = be();
29009
+ spinner.start(`Installing ${source.name} skills...`);
29010
+ try {
29011
+ await runSkillsAdd(source.repo);
29012
+ installed.push(source.name);
29013
+ spinner.stop(c.success(`${source.name} skills installed`));
29014
+ } catch {
29015
+ skipped.push(source.name);
29016
+ spinner.stop(c.dim(`${source.name} skills skipped (unavailable)`));
29017
+ }
29018
+ }
29019
+ if (skipped.length > 0) {
29020
+ console.log(` ${c.dim("Skipped:")} ${skipped.join(", ")}`);
29021
+ console.log();
29022
+ }
29023
+ if (installed.length > 0) {
29024
+ Gt(c.success(`${installed.join(" + ")} skills installed.`));
29025
+ } else {
29026
+ Gt(c.warn("No skills installed."));
29027
+ }
29028
+ }
29029
+ });
29030
+ }
29031
+ });
29032
+
28954
29033
  // src/commands/telemetry.ts
28955
29034
  var telemetry_exports = {};
28956
29035
  __export(telemetry_exports, {
@@ -29426,12 +29505,7 @@ var init_help = __esm({
29426
29505
  ["Check system dependencies", "hyperframes doctor"]
29427
29506
  ];
29428
29507
  STATIC_EXAMPLES = {
29429
- skills: [
29430
- ["Install skills to all supported AI tools", "hyperframes skills"],
29431
- ["Install to Claude Code only", "hyperframes skills --claude"],
29432
- ["Install to Cursor (project-level)", "hyperframes skills --cursor"],
29433
- ["Install to specific tools", "hyperframes skills --claude --gemini"]
29434
- ]
29508
+ skills: [["Install all skills to all supported AI tools", "hyperframes skills"]]
29435
29509
  };
29436
29510
  }
29437
29511
  });
@@ -29458,6 +29532,7 @@ var subCommands = {
29458
29532
  docs: () => Promise.resolve().then(() => (init_docs(), docs_exports)).then((m) => m.default),
29459
29533
  doctor: () => Promise.resolve().then(() => (init_doctor(), doctor_exports)).then((m) => m.default),
29460
29534
  upgrade: () => Promise.resolve().then(() => (init_upgrade(), upgrade_exports)).then((m) => m.default),
29535
+ skills: () => Promise.resolve().then(() => (init_skills(), skills_exports)).then((m) => m.default),
29461
29536
  telemetry: () => Promise.resolve().then(() => (init_telemetry(), telemetry_exports)).then((m) => m.default),
29462
29537
  validate: () => Promise.resolve().then(() => (init_validate(), validate_exports)).then((m) => m.default)
29463
29538
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperframes",
3
- "version": "0.2.2-alpha.3",
3
+ "version": "0.2.2",
4
4
  "description": "HyperFrames CLI — create, preview, and render HTML video compositions",
5
5
  "repository": {
6
6
  "type": "git",