@uipath/skills 1.203.0-preview.886 → 1.203.0-preview.889

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.
@@ -66,14 +66,16 @@
66
66
  # values ever leave the machine.
67
67
  #
68
68
  # Non-blocking by contract: registered as an async hook in hooks.json
69
- # ("async": true) on every event EXCEPT SessionEnd, so Claude Code runs it in
70
- # the background and never waits for it. SessionEnd is registered
71
- # SYNCHRONOUSLY (30s timeout): async hooks still running at session teardown
72
- # are killed after a short grace window — shorter than this hook's PowerShell
73
- # + `uip track` startup — which would silently drop the session-end event.
74
- # Always exits 0 and swallows every error. Runs under Windows PowerShell 5.1
75
- # and PowerShell 7+ (pwsh) on Windows, macOS, and Linux — no jq, node, or
76
- # python.
69
+ # ("async": true) on every event EXCEPT SessionEnd, so the agent runs it in the
70
+ # background and never waits for it. SessionEnd is registered SYNCHRONOUSLY
71
+ # (30s timeout): async hooks still running at session teardown are killed after
72
+ # a short grace window — shorter than this hook's PowerShell + `uip track`
73
+ # startup — which would silently drop the session-end event. The hand-off
74
+ # therefore runs INLINE on every event: the HOST owns non-blocking dispatch, and
75
+ # detaching it here would defeat the synchronous SessionEnd registration by
76
+ # letting the hook return before `uip track` has flushed. Always exits 0 and
77
+ # swallows every error. Runs under Windows PowerShell 5.1 and PowerShell 7+
78
+ # (pwsh) on Windows, macOS, and Linux — no jq, node, or python.
77
79
  #
78
80
  # Structure: pure helpers (below), driven by Main (bottom). Configuration is
79
81
  # env only:
@@ -455,11 +457,13 @@ function Main {
455
457
  # disappears). Send no envelope, no `source` (the CLI overrides it), and no
456
458
  # session id (the CLI resolves its own and drops a payload one).
457
459
  #
458
- # `uip track` is never-fail (exits 0, emits nothing when telemetry is opted
459
- # out); piping to it is harmless even if the CLI is absent (the catch
460
- # swallows the command-not-found error). The hook is registered async in
461
- # hooks.json (sync with a 30s timeout on SessionEnd — see header), so the
462
- # agent never waits on this call mid-session.
460
+ # INLINE, never detached: hooks.json registers this hook async on every event
461
+ # except SessionEnd (see header), so the host — not this script — owns
462
+ # non-blocking dispatch. A detached hand-off would return before `uip track`
463
+ # flushed, silently dropping the very session-end event the synchronous
464
+ # SessionEnd registration exists to protect. `uip track` is never-fail (exits
465
+ # 0, emits nothing when telemetry is opted out); piping to it is harmless even
466
+ # if the CLI is absent (the catch swallows the command-not-found error).
463
467
  try { $json | & uip track *> $null } catch { }
464
468
 
465
469
  exit 0
@@ -67,13 +67,16 @@
67
67
  # bash/PowerShell polyglot command.
68
68
  #
69
69
  # Non-blocking by contract: registered as an async hook in hooks.json
70
- # ("async": true) on every event EXCEPT SessionEnd, so Claude Code runs it in
71
- # the background and never waits for it. SessionEnd is registered
72
- # SYNCHRONOUSLY (30s timeout): async hooks still running at session teardown
73
- # are killed after a short grace window, which would silently drop the
74
- # session-end event. Always exits 0, swallows every error, and pipes to
75
- # `uip track` in a detached subshell. Cross-platform (macOS, Linux, Windows
76
- # via Git Bash / MSYS). Pure bash + grep/sed/awk — no jq, node, or python.
70
+ # ("async": true) on every event EXCEPT SessionEnd, so the agent runs it in the
71
+ # background and never waits for it. SessionEnd is registered SYNCHRONOUSLY
72
+ # (30s timeout): async hooks still running at session teardown are killed after
73
+ # a short grace window — shorter than `uip track` startup — which would silently
74
+ # drop the session-end event. The hand-off therefore runs INLINE on every event:
75
+ # the HOST owns non-blocking dispatch, and detaching it here would defeat the
76
+ # synchronous SessionEnd registration by letting the hook return before
77
+ # `uip track` has flushed. Always exits 0 and swallows every error.
78
+ # Cross-platform (macOS, Linux, Windows via Git Bash / MSYS). Pure bash +
79
+ # grep/sed/awk — no jq, node, or python.
77
80
  #
78
81
  # Structure: pure helpers + side-effecting procedures (below), driven by main()
79
82
  # (bottom). Configuration is env only:
@@ -529,10 +532,14 @@ main() {
529
532
  # disappears). Send no envelope, no `source` (the CLI overrides it), and no
530
533
  # session id (the CLI resolves its own and drops a payload one).
531
534
  #
532
- # Detached subshell ( cmd & ) survives this hook's exit so the agent never
533
- # waits. `uip track` is never-fail (exits 0, emits nothing when telemetry is
534
- # opted out); piping to it is harmless even if the CLI is absent.
535
- ( printf '%s' "$(build_event_json)" | uip track >/dev/null 2>&1 & )
535
+ # INLINE, never detached: hooks.json registers this hook async on every event
536
+ # except SessionEnd (see header), so the host — not this script — owns
537
+ # non-blocking dispatch. A detached hand-off would return before `uip track`
538
+ # flushed, silently dropping the very session-end event the synchronous
539
+ # SessionEnd registration exists to protect. `uip track` is never-fail (exits
540
+ # 0, emits nothing when telemetry is opted out); piping to it is harmless even
541
+ # if the CLI is absent.
542
+ printf '%s' "$(build_event_json)" | uip track >/dev/null 2>&1
536
543
 
537
544
  exit 0
538
545
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/skills",
3
- "version": "1.203.0-preview.886",
3
+ "version": "1.203.0-preview.889",
4
4
  "description": "UiPath agent skills for Claude Code, Codex, Cursor, Copilot, Gemini and OpenCode — RPA, UI automation, UI testing, coded agents/apps/workflows, and troubleshooting. Distributed as the UiPath Claude Code plugin.",
5
5
  "author": {
6
6
  "name": "UiPath"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "skillsVersion": "1.203.0-preview.886",
3
+ "skillsVersion": "1.203.0-preview.889",
4
4
  "targetCli": "^1.203.0"
5
5
  }