agent-andon 0.1.0

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,21 @@
1
+ # Agent Andon — Codex "working / gone" wrapper.
2
+ #
3
+ # Codex's notify only fires on turn-complete (green "done"); it never signals
4
+ # "started". This shell wrapper adds the blue "working" tile on launch and
5
+ # clears it on exit. Source it from ~/.zshrc or ~/.bashrc:
6
+ #
7
+ # source /path/to/agent-andon/examples/codex-wrapper.sh
8
+ #
9
+ # Requires the `andon` CLI on your PATH (npm i -g agent-andon).
10
+
11
+ export AGENT_STATUS_URL="${AGENT_STATUS_URL:-http://127.0.0.1:8787}"
12
+
13
+ codex() {
14
+ # Unique per-launch id so multiple codex sessions (even same dir) don't collide.
15
+ local sid="codex-$$-$RANDOM"
16
+ ANDON_SESSION="$sid" andon post working codex
17
+ ANDON_SESSION="$sid" command codex "$@"
18
+ local code=$?
19
+ ANDON_SESSION="$sid" andon post gone codex
20
+ return $code
21
+ }
@@ -0,0 +1,33 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Launch the Agent Andon server at login (optional).
4
+
5
+ 1. Find your paths: which node && which andon
6
+ 2. Replace the two REPLACE_ME paths below.
7
+ (`andon` is a JS shim; point ProgramArguments at node + the real cli.js,
8
+ or simply at the `andon` bin — both work. Using node + cli.js is safest.)
9
+ 3. Install:
10
+ cp examples/com.agentandon.server.plist ~/Library/LaunchAgents/
11
+ launchctl load ~/Library/LaunchAgents/com.agentandon.server.plist
12
+ 4. Logs land in /tmp/agent-andon.log
13
+ -->
14
+ <plist version="1.0">
15
+ <dict>
16
+ <key>Label</key>
17
+ <string>com.agentandon.server</string>
18
+ <key>ProgramArguments</key>
19
+ <array>
20
+ <string>REPLACE_ME/node</string>
21
+ <string>REPLACE_ME/agent-andon/dist/cli.js</string>
22
+ <string>serve</string>
23
+ </array>
24
+ <key>RunAtLoad</key>
25
+ <true/>
26
+ <key>KeepAlive</key>
27
+ <true/>
28
+ <key>StandardOutPath</key>
29
+ <string>/tmp/agent-andon.log</string>
30
+ <key>StandardErrorPath</key>
31
+ <string>/tmp/agent-andon.log</string>
32
+ </dict>
33
+ </plist>
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "agent-andon",
3
+ "version": "0.1.0",
4
+ "description": "A traffic-light status board for your AI coding agents. Stand an old iPad on your desk and glance over to know if Claude Code / Codex is working, needs you, done, or stuck.",
5
+ "type": "commonjs",
6
+ "bin": {
7
+ "andon": "dist/cli.js"
8
+ },
9
+ "main": "dist/server.js",
10
+ "files": [
11
+ "dist",
12
+ "assets",
13
+ "examples",
14
+ "docs",
15
+ "README.md",
16
+ "LICENSE"
17
+ ],
18
+ "scripts": {
19
+ "build": "tsc",
20
+ "dev": "tsc --watch",
21
+ "start": "node dist/cli.js serve",
22
+ "demo": "node dist/cli.js serve --demo",
23
+ "test": "tsc -p tsconfig.test.json && node --test \"build/test/**/*.test.js\"",
24
+ "prepublishOnly": "npm run build"
25
+ },
26
+ "engines": {
27
+ "node": ">=18"
28
+ },
29
+ "keywords": [
30
+ "claude-code",
31
+ "codex",
32
+ "ai-agent",
33
+ "agent-status",
34
+ "dashboard",
35
+ "andon",
36
+ "traffic-light",
37
+ "hooks",
38
+ "ipad",
39
+ "ambient"
40
+ ],
41
+ "author": "wwang <me@wwang.tech>",
42
+ "license": "MIT",
43
+ "homepage": "https://github.com/tianshanghong/agent-andon#readme",
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "git+https://github.com/tianshanghong/agent-andon.git"
47
+ },
48
+ "bugs": {
49
+ "url": "https://github.com/tianshanghong/agent-andon/issues"
50
+ },
51
+ "devDependencies": {
52
+ "@types/node": "^22.10.0",
53
+ "typescript": "^5.7.0"
54
+ }
55
+ }