agmsg 1.1.6 → 1.1.8

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 CHANGED
@@ -4,6 +4,49 @@ All notable changes to this project are documented here.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.1.8] - 2026-07-15
8
+
9
+ ### Added
10
+ - Sidebar per-section + buttons, replacing the New dropdown (#407)
11
+ - Green status-unknown default, roomier team-status-rail rows (#406)
12
+ - Phase-lock agent-status and monitor pulse dots to wall clock (#403)
13
+ - Detect grok/grok-build agent status (#395)
14
+ - Persist UI settings across restarts (#391)
15
+ - Snap pane dividers to terminal cell units, herdr-style gaps (#390)
16
+ - Show agent and team status (#385)
17
+
18
+ ### Fixed
19
+ - Filter non-numeric characters out of the font-size draft (#405)
20
+ - Reject unregistered from/to agents (#409)
21
+ - Resolve Codex leftovers and delivery_modes mismatch (#408)
22
+ - Forward args on a flags-only monitored launch (#404)
23
+ - Clean up the Settings font-size input (#401)
24
+ - Display chat timestamps in local time, not raw UTC (#394)
25
+ - Normalise Windows backslash paths before handing to bash/curl (#392)
26
+
27
+ ### Performance
28
+ - Batch pty-output writes to one term.write() per animation frame (#402)
29
+
30
+ ## [app-v0.1.5] - 2026-07-13
31
+
32
+ ### Added
33
+ - 0.1.5 UI polish — sidebar collapse, chat pane min/max, Team Room toggle, About version, lucide icons (#377)
34
+
35
+ ### Fixed
36
+ - Authenticode-sign Windows binaries during tauri build (#354)
37
+
38
+ ## [1.1.7] - 2026-07-13
39
+
40
+ ### Added
41
+ - Role-to-session affinity: named sessions, resume-by-role boot, tmux-resurrect (#339) (#344)
42
+
43
+ ### Fixed
44
+ - Wrap boot script with bash -l for psmux on Windows (#335) (#363)
45
+ - Guard '/'-prefixed boot prompt against MSYS path conversion on Git Bash (#358)
46
+ - Stop ancestor project resolution from over-reaching to $HOME / other teams (#357) (#359)
47
+ - Bind the bridge to the role's recorded thread, not "loaded" (#350) (#353)
48
+ - Detect the real GEMINI_CLI env var, not GOOGLE_GEMINI_CLI (#351)
49
+
7
50
  ## [1.1.6] - 2026-07-05
8
51
 
9
52
  ### Added
@@ -233,6 +276,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
233
276
  - Handle empty TaskList explicitly to stop fresh-session loop (#71)
234
277
  - Storage driver pluginization design (epic #51) (#52)
235
278
 
279
+ [1.1.8]: https://github.com/fujibee/agmsg/compare/app-v0.1.5...v1.1.8
280
+ [app-v0.1.5]: https://github.com/fujibee/agmsg/compare/v1.1.7...app-v0.1.5
281
+ [1.1.7]: https://github.com/fujibee/agmsg/compare/app-v0.1.4...v1.1.7
236
282
  [1.1.6]: https://github.com/fujibee/agmsg/compare/app-v0.1.3...v1.1.6
237
283
  [app-v0.1.3]: https://github.com/fujibee/agmsg/compare/app-v0.1.2...app-v0.1.3
238
284
  [app-v0.1.2]: https://github.com/fujibee/agmsg/compare/app-v0.1.1...app-v0.1.2
package/README.ja.md CHANGED
@@ -315,7 +315,7 @@ $agmsg
315
315
  ### シェル(任意のエージェント)
316
316
 
317
317
  ```bash
318
- ~/.agents/skills/<cmd>/scripts/send.sh <team> <from> <to> "<message>"
318
+ ~/.agents/skills/<cmd>/scripts/send.sh <team> <from> <to> "<message>" [--force]
319
319
  ~/.agents/skills/<cmd>/scripts/inbox.sh <team> <agent_id>
320
320
  ~/.agents/skills/<cmd>/scripts/history.sh <team> [agent_id] [limit]
321
321
  ~/.agents/skills/<cmd>/scripts/team.sh <team>
@@ -325,7 +325,7 @@ $agmsg
325
325
  ~/.agents/skills/<cmd>/scripts/reset.sh <project_path> <type> [agent_id]
326
326
  ```
327
327
 
328
- `send.sh` はちょうど4つの位置引数を取る: `<team> <from> <to> "<message>"`。シェルが1つの引数として認識するようメッセージはクォートすること — クォートされていないスペース入りメッセージは誤って分割される。
328
+ `send.sh` は4つの位置引数 `<team> <from> <to> "<message>"` に加えて、末尾に任意で `--force` を取る。シェルが1つの引数として認識するようメッセージはクォートすること — クォートされていないスペース入りメッセージは誤って分割される。`from`・`to` はどちらも `<team>` に事前登録済みである必要があり、未登録の名前は(登録済み一覧を添えて)エラーになる — 意図的な事前登録前送信をしたい場合のみ `--force` でこのチェックを迂回できる。
329
329
 
330
330
  ## FAQ / 設計メモ
331
331
 
package/README.md CHANGED
@@ -226,6 +226,19 @@ By default `despawn <name>` is **graceful**: it sends a `ctrl:despawn` control m
226
226
 
227
227
  Despawn only acts on the named member — the session running `despawn` is never torn down, and a broad-subscription watcher ignores a `ctrl:despawn` aimed at another role.
228
228
 
229
+ ### Bring a role back with its context (session resume)
230
+
231
+ A role remembers the session that last embodied it: sessions are named
232
+ `<team>-<agent>`, and `spawn` **resumes a role's previous session by default** —
233
+ so re-spawning after a `despawn`, crash, or restart comes back in the prior
234
+ conversation, not blank (`--fresh` forces new). With
235
+ [tmux-resurrect](https://github.com/tmux-plugins/tmux-resurrect), one `~/.tmux.conf`
236
+ line re-seats every role pane into its session after a tmux-server restart.
237
+
238
+ See **[docs/session-resurrect.md](docs/session-resurrect.md)** for the tmux-resurrect
239
+ setup, how it resolves each pane, what does and doesn't come back automatically, and
240
+ the manual fallback.
241
+
229
242
  ## Delivery modes
230
243
 
231
244
  How incoming messages reach your agent. Pick one at first join via the prompt, or change it later with `/agmsg mode <name>`.
@@ -316,7 +329,7 @@ See [docs/opencode.md](docs/opencode.md) for full setup instructions.
316
329
  ### Shell (any agent)
317
330
 
318
331
  ```bash
319
- ~/.agents/skills/<cmd>/scripts/send.sh <team> <from> <to> "<message>"
332
+ ~/.agents/skills/<cmd>/scripts/send.sh <team> <from> <to> "<message>" [--force]
320
333
  ~/.agents/skills/<cmd>/scripts/inbox.sh <team> <agent_id>
321
334
  ~/.agents/skills/<cmd>/scripts/history.sh <team> [agent_id] [limit]
322
335
  ~/.agents/skills/<cmd>/scripts/team.sh <team>
@@ -326,7 +339,7 @@ See [docs/opencode.md](docs/opencode.md) for full setup instructions.
326
339
  ~/.agents/skills/<cmd>/scripts/reset.sh <project_path> <type> [agent_id]
327
340
  ```
328
341
 
329
- `send.sh` takes exactly four positional arguments: `<team> <from> <to> "<message>"`. Quote the message so the shell sees it as one argument; an unquoted message with spaces will be misparsed.
342
+ `send.sh` takes four positional arguments — `<team> <from> <to> "<message>"` — plus an optional trailing `--force`. Quote the message so the shell sees it as one argument; an unquoted message with spaces will be misparsed. Both `from` and `to` must already be registered in `<team>`; an unregistered name errors out (listing the currently registered names) instead of silently storing an undeliverable message. Pass `--force` to bypass this check for an intentional pre-registration send.
330
343
 
331
344
  ## FAQ / Design notes
332
345
 
package/bin/agmsg.js CHANGED
@@ -79,6 +79,19 @@ function printHelp() {
79
79
  ].join('\n'));
80
80
  }
81
81
 
82
+ // Normalise a native path to the forward-slash form that bash.exe and
83
+ // curl.exe accept on Windows. bash is an MSYS2 program: Windows gives it a
84
+ // raw command-line string rather than a real argv[], and MSYS's own argv
85
+ // reconstruction treats backslash as an escape character, so a native
86
+ // `C:\Users\...\setup.sh` argument gets corrupted (e.g. `\U`, `\T` are read
87
+ // as escapes) into a path that doesn't exist — "No such file or directory"
88
+ // for a file that's actually there. Forward slashes have no such ambiguity,
89
+ // and both bash and curl accept them on Windows. No-op on POSIX (no
90
+ // backslashes to replace). See #262.
91
+ function toBashPath(p) {
92
+ return p.replace(/\\/g, '/');
93
+ }
94
+
82
95
  function runInstaller(passthroughArgs) {
83
96
  // Fetch the canonical setup.sh to a private tempdir, then exec it directly
84
97
  // with bash. This keeps the installer's stdin wired to the parent process's
@@ -92,7 +105,10 @@ function runInstaller(passthroughArgs) {
92
105
  const ref = installRef();
93
106
  const setupUrl = RAW_BASE + '/' + ref + '/setup.sh';
94
107
  const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'agmsg-bootstrap-'));
95
- const setupPath = path.join(tmpDir, 'setup.sh');
108
+ // os.tmpdir()/path.join() return backslash-separated paths on Windows.
109
+ // fs.rmSync (below) handles that form fine since it's a native Node call;
110
+ // curl and bash are external processes, so they get the bash-safe form.
111
+ const setupPath = toBashPath(path.join(tmpDir, 'setup.sh'));
96
112
 
97
113
  try {
98
114
  const fetch = spawnSync('curl', ['-fsSL', '-o', setupPath, setupUrl], { stdio: 'inherit' });
@@ -120,22 +136,30 @@ function runInstaller(passthroughArgs) {
120
136
  }
121
137
  }
122
138
 
123
- const args = process.argv.slice(2);
139
+ function main() {
140
+ const args = process.argv.slice(2);
141
+
142
+ if (args.length === 0 || args[0] === 'install') {
143
+ // Forward anything after `install` (e.g. `agmsg install --cmd m`) to
144
+ // setup.sh, which passes "$@" through to install.sh.
145
+ const passthrough = args[0] === 'install' ? args.slice(1) : args;
146
+ runInstaller(passthrough);
147
+ } else if (args[0] === '--help' || args[0] === '-h' || args[0] === 'help') {
148
+ printHelp();
149
+ process.exit(0);
150
+ } else if (args[0] === '--version' || args[0] === '-v') {
151
+ process.stdout.write('agmsg bootstrapper ' + readVersion() + '\n');
152
+ process.stdout.write('canonical project: ' + REPO_URL + '\n');
153
+ process.exit(0);
154
+ } else {
155
+ console.error('agmsg: unknown argument: ' + args[0]);
156
+ console.error('Run `npx agmsg --help` for usage.');
157
+ process.exit(2);
158
+ }
159
+ }
124
160
 
125
- if (args.length === 0 || args[0] === 'install') {
126
- // Forward anything after `install` (e.g. `agmsg install --cmd m`) to
127
- // setup.sh, which passes "$@" through to install.sh.
128
- const passthrough = args[0] === 'install' ? args.slice(1) : args;
129
- runInstaller(passthrough);
130
- } else if (args[0] === '--help' || args[0] === '-h' || args[0] === 'help') {
131
- printHelp();
132
- process.exit(0);
133
- } else if (args[0] === '--version' || args[0] === '-v') {
134
- process.stdout.write('agmsg bootstrapper ' + readVersion() + '\n');
135
- process.stdout.write('canonical project: ' + REPO_URL + '\n');
136
- process.exit(0);
137
- } else {
138
- console.error('agmsg: unknown argument: ' + args[0]);
139
- console.error('Run `npx agmsg --help` for usage.');
140
- process.exit(2);
161
+ if (require.main === module) {
162
+ main();
141
163
  }
164
+
165
+ module.exports = { toBashPath };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agmsg",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "Cross-agent messaging via SQLite for CLI AI agents (Claude Code, Codex, Gemini CLI, GitHub Copilot CLI, Antigravity, OpenCode). The npm package is a thin bootstrapper that fetches and runs the canonical bash installer at https://github.com/fujibee/agmsg.",
5
5
  "bin": {
6
6
  "agmsg": "bin/agmsg.js"