@cloudagentfleet/worker 0.1.5 → 0.1.6
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 +6 -0
- package/dist/cloudagentfleet-worker.mjs +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @cloudagentfleet/worker
|
|
2
2
|
|
|
3
|
+
## 0.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`92ee8b9`](https://github.com/hirenf14/cloudagentfleet/commit/92ee8b92b7a2d1c7934d887811eaebaad71b7735) Thanks [@hirenf14](https://github.com/hirenf14)! - Start the Worker when invoked as the cloudagentfleet-worker binary.
|
|
8
|
+
|
|
3
9
|
## 0.1.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -947,7 +947,13 @@ async function runWorker() {
|
|
|
947
947
|
stopEventForwarding();
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
|
-
|
|
950
|
+
function isDirectWorkerEntrypoint() {
|
|
951
|
+
const entry = process.argv[1];
|
|
952
|
+
if (!entry) return false;
|
|
953
|
+
const normalized = entry.replaceAll("\\", "/");
|
|
954
|
+
return normalized.endsWith("/main.ts") || normalized.endsWith("/worker.mjs") || normalized.endsWith("/cloudagentfleet-worker.mjs");
|
|
955
|
+
}
|
|
956
|
+
if (isDirectWorkerEntrypoint()) {
|
|
951
957
|
runWorker().catch((error) => {
|
|
952
958
|
console.error(error instanceof Error ? error.message : error);
|
|
953
959
|
process.exitCode = 1;
|