@task-handoff/node-agent 0.0.17 → 0.0.19

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.
@@ -40,7 +40,7 @@ if [ "$(id -u)" = "0" ] && [ "${TASK_HANDOFF_PRIVILEGE_DROPPED:-0}" != "1" ]; th
40
40
  chown agent:agent "${TASK_HANDOFF_WORKSPACE:-/workspace}"
41
41
  fi
42
42
  export TASK_HANDOFF_PRIVILEGE_DROPPED=1
43
- exec sudo --preserve-env -u agent -- "$0" "$@"
43
+ exec sudo --preserve-env -u agent -- bash "$0" "$@"
44
44
  fi
45
45
 
46
46
  mkdir -p \
@@ -126,12 +126,18 @@ start_web_cap_daemon() {
126
126
  if [ "${1:-}" = "task-handoff" ] && [ "${2:-}" = "web" ]; then
127
127
  bootstrap_workspace
128
128
  start_web_cap_daemon
129
+ if [ -n "${TASK_HANDOFF_INSTANCE_LAUNCHER:-}" ]; then
130
+ exec bash "${TASK_HANDOFF_INSTANCE_LAUNCHER}"
131
+ fi
129
132
  exec task-handoff-instance-launcher
130
133
  fi
131
134
 
132
135
  if [ "${1:-}" = "task-handoff" ]; then
133
136
  shift
134
137
  if [ "$#" -eq 0 ] || { [ "${1:-}" = "web" ] && [ "$#" -eq 1 ]; }; then
138
+ if [ -n "${TASK_HANDOFF_INSTANCE_LAUNCHER:-}" ]; then
139
+ exec bash "${TASK_HANDOFF_INSTANCE_LAUNCHER}"
140
+ fi
135
141
  exec task-handoff-instance-launcher
136
142
  fi
137
143
  echo "Managed container commands must be launched through the active controlled-instance runtime." >&2
@@ -21,11 +21,6 @@ bootstrap_wait() {
21
21
  }
22
22
 
23
23
  if [ ! -L "${current}" ]; then
24
- if command -v task-handoff-controlled-instance >/dev/null 2>&1; then
25
- exec task-handoff-controlled-instance web \
26
- --host "${TASK_HANDOFF_WEB_HOST:-0.0.0.0}" \
27
- --port "${TASK_HANDOFF_WEB_PORT:-8080}"
28
- fi
29
24
  bootstrap_wait
30
25
  fi
31
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@task-handoff/node-agent",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "Prebuilt TaskHandoff node agent runtime.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "commonjs",
@@ -23,6 +23,7 @@
23
23
  "@fastify/cookie": "11.1.1",
24
24
  "@fastify/static": "8.3.0",
25
25
  "@fastify/websocket": "11.2.0",
26
+ "@larksuiteoapi/node-sdk": "1.72.0",
26
27
  "commander": "14.0.3",
27
28
  "dingtalk-stream": "2.1.5",
28
29
  "fastify": "5.8.5",
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "packageName": "@task-handoff/controlled-instance",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "platform": "linux",
5
5
  "arch": "universal",
6
6
  "formatVersion": 1,
7
7
  "launcherAbi": 1,
8
8
  "entrypoint": "dist/controlled-instance-cli.js",
9
- "sha256": "b224f916d32ea03a1911d6f559e959a36e3a090a11077c341ebe3e5a268473f3"
9
+ "sha256": "231bf9292bea436fe19f06021152cc0ec1654b0bba726393f436a7745d601cd0"
10
10
  }
@@ -0,0 +1 @@
1
+ 1db54239cb3c282c86915099f29e3dfb660fbd3d17608fe5023a0c97ace67b6b controlled-instance-runtime-0.0.19-linux-universal.tar.gz
@@ -1 +0,0 @@
1
- 1d676a10fd0fd77d43fbf220b2d4bd82873bdfa81068e2253cab5a71f478474e controlled-instance-runtime-0.0.17-linux-universal.tar.gz