pushary 1.9.86 → 1.9.87

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.9.87
4
+
5
+ - On Node.js older than 22.20, setup installs the Pushary skill with skills.sh CLI 1.5.0. Newer versions of that CLI need Node 22.20, so on older Node every setup failed there, fell back to the bundled copy, and spent several seconds doing it.
6
+ - The npm description now says what Pushary is: human-in-the-loop (HITL) for AI agents, so a search for human-in-the-loop on npm can find it.
7
+
3
8
  ## 1.9.86
4
9
 
5
10
  - Long Gemini and Cursor sessions keep syncing to your phone. A session past 20 MB or 5,000 messages used to stop syncing altogether, and the phone said "History sync needs attention". Pushary now sends the newest 5,000 messages, up to 20 MB, and keeps up as the session grows. Claude Code and Codex sessions already had the same 20 MB limit for earlier conversation. Older messages your phone already has stay there, and still disappear from it when the agent rewinds past them, for the 20,000 messages before the newest 5,000. Conversation that Pushary passed over while workspace history was off is still never sent, even when a rewind brings it back within the limit. A session that was stuck over the old limit could not pass over anything, so its newest part uploads once after this update. Session files up to 64 MB are read.
@@ -20,7 +20,7 @@ import {
20
20
  PUSHARY_SKILL_NAME,
21
21
  PUSHARY_SKILL_SOURCE,
22
22
  createGuards
23
- } from "../chunk-K6ZOH6P7.js";
23
+ } from "../chunk-J42EAEX3.js";
24
24
  import "../chunk-M66W7UD7.js";
25
25
  import "../chunk-XCEN33UP.js";
26
26
  import {
@@ -75,7 +75,7 @@ import {
75
75
  describeSetupSideEffects,
76
76
  installAgentSkill,
77
77
  installSkillViaSkillsCli
78
- } from "../chunk-K6ZOH6P7.js";
78
+ } from "../chunk-J42EAEX3.js";
79
79
  import {
80
80
  codexEngineBehindLauncher
81
81
  } from "../chunk-M66W7UD7.js";
@@ -5,11 +5,19 @@ var PUSHARY_SKILL_SOURCE = "Pushary/pushary-skill";
5
5
  var PUSHARY_SKILL_NAME = "pushary";
6
6
  var SKILLS_CLI_TIMEOUT_MS = 9e4;
7
7
  var SKILLS_CLI_OUTPUT_LIMIT_BYTES = 1024 * 1024;
8
+ var SKILLS_CLI_CURRENT_VERSION = "latest";
9
+ var SKILLS_CLI_VERIFIED_FOR_OLDER_NODE = "1.5.0";
10
+ var SKILLS_CLI_CURRENT_MIN_NODE = { major: 22, minor: 20 };
11
+ var runsCurrentSkillsCli = (nodeVersion) => {
12
+ const [major, minor] = nodeVersion.split(".").map(Number);
13
+ return major > SKILLS_CLI_CURRENT_MIN_NODE.major || major === SKILLS_CLI_CURRENT_MIN_NODE.major && minor >= SKILLS_CLI_CURRENT_MIN_NODE.minor;
14
+ };
15
+ var skillsCliVersionForNode = (nodeVersion) => runsCurrentSkillsCli(nodeVersion) ? SKILLS_CLI_CURRENT_VERSION : SKILLS_CLI_VERIFIED_FOR_OLDER_NODE;
8
16
  var runShellAsync = promisify(exec);
9
- var skillsCliCommand = (agent) => `npx -y skills@latest add ${PUSHARY_SKILL_SOURCE}@${PUSHARY_SKILL_NAME} -y -g --agent ${agent}`;
10
- var installSkillViaSkillsCli = async (agent) => {
17
+ var skillsCliCommand = (agent, nodeVersion) => `npx -y skills@${skillsCliVersionForNode(nodeVersion)} add ${PUSHARY_SKILL_SOURCE}@${PUSHARY_SKILL_NAME} -y -g --agent ${agent}`;
18
+ var installSkillViaSkillsCli = async (agent, nodeVersion = process.versions.node) => {
11
19
  try {
12
- const running = runShellAsync(skillsCliCommand(agent), {
20
+ const running = runShellAsync(skillsCliCommand(agent, nodeVersion), {
13
21
  timeout: SKILLS_CLI_TIMEOUT_MS,
14
22
  maxBuffer: SKILLS_CLI_OUTPUT_LIMIT_BYTES
15
23
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pushary",
3
- "version": "1.9.86",
4
- "description": "Permission hooks for AI coding agents: route tool approvals through Pushary push notifications",
3
+ "version": "1.9.87",
4
+ "description": "Human-in-the-loop (HITL) for AI agents: ask a person for approvals or answers by push notification. One command connects Claude Code, Codex, Cursor, Gemini CLI and more.",
5
5
  "keywords": [
6
6
  "pushary",
7
7
  "claude-code",