agentwatch-tool 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env node
2
+ // Resolves the platform-specific agentwatch-tool-* optional dependency and
3
+ // execs the bundled binary with identical stdio (pty passthrough included).
4
+ const { spawnSync } = require('node:child_process');
5
+ const { createRequire } = require('node:module');
6
+ const path = require('node:path');
7
+
8
+ const id = `agentwatch-tool-${process.platform}-${process.arch}`;
9
+ const req = createRequire(__filename);
10
+
11
+ let binPath;
12
+ try {
13
+ const pkgDir = path.dirname(req.resolve(`${id}/package.json`));
14
+ binPath = path.join(pkgDir, 'bin', 'agentwatch');
15
+ } catch {
16
+ console.error(
17
+ `agentwatch: no prebuilt binary for ${process.platform}-${process.arch}.\n` +
18
+ `Supported: darwin-arm64, darwin-x64, linux-x64, linux-arm64.\n` +
19
+ `If your platform is supported, reinstall with optional deps: npm i agentwatch --include=optional`,
20
+ );
21
+ process.exit(1);
22
+ }
23
+
24
+ const res = spawnSync(binPath, process.argv.slice(2), {
25
+ stdio: 'inherit',
26
+ env: process.env,
27
+ });
28
+
29
+ if (res.error) {
30
+ console.error(`agentwatch: failed to launch binary: ${res.error.message}`);
31
+ process.exit(1);
32
+ }
33
+ if (res.signal) {
34
+ // Re-raise so the caller sees the same termination signal.
35
+ process.kill(process.pid, res.signal);
36
+ }
37
+ process.exit(res.status === null ? 1 : res.status);
package/package.json CHANGED
@@ -1,6 +1,26 @@
1
1
  {
2
2
  "name": "agentwatch-tool",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Wrap terminal agents and get push/email alerts on completion, failure, questions, timeouts, and stalls.",
5
+ "license": "Apache-2.0",
6
+ "keywords": ["agent", "monitoring", "alerts", "cli", "devtools"],
7
+ "bin": {
8
+ "agentwatch": "bin/agentwatch.cjs"
9
+ },
10
+ "files": ["bin"],
11
+ "os": ["darwin", "linux"],
12
+ "engines": {
13
+ "node": ">=16"
14
+ },
15
+ "optionalDependencies": {
16
+ "agentwatch-tool-darwin-arm64": "0.1.1",
17
+ "agentwatch-tool-darwin-x64": "0.1.1",
18
+ "agentwatch-tool-linux-x64": "0.1.1",
19
+ "agentwatch-tool-linux-arm64": "0.1.1"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/NivedGanga/watcher.git",
24
+ "directory": "npm/agentwatch"
25
+ }
26
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.