agent-run-inspector 0.9.3 → 0.9.4
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/README.ko.md +5 -1
- package/README.md +5 -1
- package/bin/cli.js +1 -0
- package/package.json +1 -1
- package/src/macos/app.js +4 -2
- package/src/strings.js +1 -0
- package/web/app.css +2 -0
- package/web/app.js +6 -1
- package/web/strings.js +1 -1
package/README.ko.md
CHANGED
|
@@ -91,7 +91,7 @@ Orca 안에서는 주소가 Orca 브라우저 새 탭으로 열립니다(`orca t
|
|
|
91
91
|
- **Agent Run Inspector.app**: `~/Applications` 에 만들고 Dock 에 넣습니다(`--no-dock` 으로 건너뜀). 자체 창·Launchpad 항목이 있고 실행할 때마다 자동으로 로그인합니다. 메뉴 막대에도 항목을 띄웁니다([The menu bar](#the-menu-bar) 참고). 로그인할 때는 메뉴 막대 항목만 띄우고, 창은 메뉴나 Dock 에서 엽니다. macOS 에 들어 있는 `osacompile` 로 이 Mac 에서 직접 만들므로 내려받을 것도, 개발자 서명도 없습니다. 실패하면 Chrome 이나 Edge 에서 주소를 열고 설치를 고르세요.
|
|
92
92
|
- **1년 유지되는 로그인**: 그 주소를 북마크해도 됩니다. 브라우저 탭에 "Signed out" 이 보이면 `ari open` 을 실행하세요.
|
|
93
93
|
|
|
94
|
-
**업데이트**: 앱이 6시간마다 GitHub 의 최신 릴리스를 확인합니다. 새 버전이 있고 npm 에서도 받을 수 있으면 메뉴 막대 패널에 "Update to …" 버튼이, 우클릭 메뉴에 "Update to …" 항목이 나옵니다(평소에는 "Check for Updates…"). 화면 머리에도 배지가
|
|
94
|
+
**업데이트**: 앱이 6시간마다 GitHub 의 최신 릴리스를 확인합니다. 새 버전이 있고 npm 에서도 받을 수 있으면 메뉴 막대 패널에 "Update to …" 버튼이, 우클릭 메뉴에 "Update to …" 항목이 나옵니다(평소에는 "Check for Updates…"). 화면 머리에도 "Update …" 배지가 뜨고, 앱 창에서는 이 배지로도 업데이트할 수 있습니다. 누르면 앱이 새 버전을 설치하고 다시 열립니다(1분 정도. 설치가 실패하면 30초 간격으로 두 번 더 시도). 그래도 실패하면 직접 칠 명령을 보여 줍니다: 패키지를 다시 설치하고 `ari service install` 을 다시 실행하면 서비스와 앱이 새 코드로 재시작됩니다. `ari service uninstall` 이 서비스·앱·Dock 아이콘·로그인 항목을 지웁니다. 로그는 `~/Library/Logs/agent-run-inspector.log` 입니다.
|
|
95
95
|
|
|
96
96
|
### The menu bar
|
|
97
97
|
|
|
@@ -157,3 +157,7 @@ npm test && npm run lint
|
|
|
157
157
|
## License
|
|
158
158
|
|
|
159
159
|
코드는 [MIT License](LICENSE) 를 따릅니다. 이 라이선스는 다른 회사의 브랜드 이름과 로고에는 적용되지 않습니다.
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
도움이 됐다면 [GitHub](https://github.com/th-yong/agent-run-inspector) 에 ⭐ 하나면 충분합니다.
|
package/README.md
CHANGED
|
@@ -91,7 +91,7 @@ Inside Orca the address opens as a new Orca browser tab (`orca tab create`). If
|
|
|
91
91
|
- **Agent Run Inspector.app** in `~/Applications`, added to the Dock (`--no-dock` to skip): its own window and Launchpad entry, signed in at every launch. It also puts an item in the menu bar (see [The menu bar](#the-menu-bar)). At login the app starts with only the menu bar item, and the window opens from the menu or the Dock. It is built on your Mac with the built-in `osacompile`, so there is nothing to download and no developer signing. If that fails, open the address in Chrome or Edge and choose Install instead.
|
|
92
92
|
- **A sign-in that lasts a year** for that address, so a bookmark works too. If a browser tab says "Signed out", run `ari open`.
|
|
93
93
|
|
|
94
|
-
**Updates**: the app checks the latest GitHub release every 6 hours. When there is a newer one and npm already serves it, the menu bar panel shows an "Update to …" button and the right-click menu an "Update to …" item (otherwise "Check for Updates…"); the page header shows
|
|
94
|
+
**Updates**: the app checks the latest GitHub release every 6 hours. When there is a newer one and npm already serves it, the menu bar panel shows an "Update to …" button and the right-click menu an "Update to …" item (otherwise "Check for Updates…"); the page header shows an "Update …" badge too, which works the same in the app window. Click one and the app installs the new version and reopens (about a minute; a failed install is tried twice more, 30 seconds apart). If that fails, it shows the commands to run: install the package again and run `ari service install` again, which restarts the service and the app on the new code. `ari service uninstall` removes the service, the app, its Dock icon and its login item. The log is `~/Library/Logs/agent-run-inspector.log`.
|
|
95
95
|
|
|
96
96
|
### The menu bar
|
|
97
97
|
|
|
@@ -157,3 +157,7 @@ Brand icons come from simple-icons 15.22.0 (CC0-1.0), inlined without a dependen
|
|
|
157
157
|
## License
|
|
158
158
|
|
|
159
159
|
The code is under the [MIT License](LICENSE). The license does not cover the third-party brand names and logos.
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
If this saved you some digging, a ⭐ on [GitHub](https://github.com/th-yong/agent-run-inspector) is the whole fee.
|
package/bin/cli.js
CHANGED
|
@@ -137,6 +137,7 @@ async function serviceCommand(positionals, values, env) {
|
|
|
137
137
|
if (app) await installLoginItem({ env, app, run }); // at login: menu bar item only, window on demand
|
|
138
138
|
if (app && !values['no-dock'] && (await pinToDock(app, run).catch(() => false))) console.log(MSG.dockAdded);
|
|
139
139
|
if (!values['no-open']) {
|
|
140
|
+
console.log(MSG.star); // a person ran it; the app's own updates pass --no-open
|
|
140
141
|
if (app) await run('open', [app]).catch(() => {});
|
|
141
142
|
else await openAddress(serviceUrl(s), { mode: values.open ?? 'browser', env }).catch(() => {});
|
|
142
143
|
}
|
package/package.json
CHANGED
package/src/macos/app.js
CHANGED
|
@@ -275,7 +275,7 @@ ObjC.registerSubclass({
|
|
|
275
275
|
},
|
|
276
276
|
});
|
|
277
277
|
|
|
278
|
-
// The panel page asks for the window (postMessage({ open: sessionId })) or reports its height ({ height }).
|
|
278
|
+
// The panel page (and the window's Update badge) asks for the window (postMessage({ open: sessionId })) or reports its height ({ height }).
|
|
279
279
|
ObjC.registerSubclass({
|
|
280
280
|
name: 'ARIBridge',
|
|
281
281
|
protocols: ['WKScriptMessageHandler'],
|
|
@@ -328,7 +328,9 @@ function run() {
|
|
|
328
328
|
win = $.NSWindow.alloc.initWithContentRectStyleMaskBackingDefer(frame, 15, $.NSBackingStoreBuffered, false); // titled, closable, miniaturizable, resizable
|
|
329
329
|
win.releasedWhenClosed = false; // the menu and the Dock bring it back
|
|
330
330
|
win.title = 'Agent Run Inspector';
|
|
331
|
-
|
|
331
|
+
const winConfig = $.WKWebViewConfiguration.alloc.init;
|
|
332
|
+
winConfig.userContentController.addScriptMessageHandlerName($.ARIBridge.alloc.init, 'ari'); // the header's Update badge
|
|
333
|
+
web = $.WKWebView.alloc.initWithFrameConfiguration(frame, winConfig);
|
|
332
334
|
win.contentView = web;
|
|
333
335
|
win.center;
|
|
334
336
|
win.setFrameAutosaveName('main');
|
package/src/strings.js
CHANGED
|
@@ -53,6 +53,7 @@ export const MSG = {
|
|
|
53
53
|
serviceNone: 'No service is installed. Run "ari service install" first.',
|
|
54
54
|
serviceRemoved: 'Service stopped and removed.',
|
|
55
55
|
serviceFailed: (m) => `Error: launchctl failed: ${m}`,
|
|
56
|
+
star: 'If it helps, a GitHub star helps it back: https://github.com/th-yong/agent-run-inspector',
|
|
56
57
|
serviceInstalled: (url, log) => `Service running at ${url} (starts at login). Log: ${log}\nOpen it any time with "ari open".`,
|
|
57
58
|
serviceStarted: (url) => `Service listening on ${url}`,
|
|
58
59
|
rootsUsage: 'Usage: ari roots <list|add|remove> [--codex] [dir]',
|
package/web/app.css
CHANGED
|
@@ -51,6 +51,8 @@ button:focus-visible, .sess:focus-visible { outline: 2px solid var(--accent); ou
|
|
|
51
51
|
.brand-mark { width: 20px; height: 20px; flex: none; }
|
|
52
52
|
.ver { color: var(--muted); font-size: 11px; font-weight: 400; }
|
|
53
53
|
.upd { font-size: 11px; font-weight: 500; color: var(--llm); background: var(--llm-soft); border-radius: 999px; padding: 1px 8px; cursor: help; }
|
|
54
|
+
.upd.act { cursor: pointer; }
|
|
55
|
+
.upd.act:hover { filter: brightness(0.95); text-decoration: underline; }
|
|
54
56
|
.spacer { flex: 1; }
|
|
55
57
|
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
|
|
56
58
|
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
|
package/web/app.js
CHANGED
|
@@ -263,8 +263,13 @@ if (state.mini) {
|
|
|
263
263
|
$('ver').textContent = m.version ? `v${m.version}` : '';
|
|
264
264
|
const upd = $('upd');
|
|
265
265
|
upd.hidden = !m.latest;
|
|
266
|
-
if (m.latest) { upd.textContent = S.meta.update(m.latest); upd.title = S.meta.how(m.latest); }
|
|
266
|
+
if (m.latest) { upd.textContent = S.meta.update(m.latest); upd.title = bridge ? S.meta.click(m.latest) : S.meta.how(m.latest); }
|
|
267
267
|
}, () => {});
|
|
268
|
+
const bridge = window.webkit?.messageHandlers?.ari; // inside the Mac app: the badge starts the update
|
|
269
|
+
if (bridge) {
|
|
270
|
+
$('upd').classList.add('act');
|
|
271
|
+
$('upd').addEventListener('click', () => bridge.postMessage({ update: true }));
|
|
272
|
+
}
|
|
268
273
|
showMeta();
|
|
269
274
|
mountListResize(document.querySelector('.app'), S.list.resize);
|
|
270
275
|
onGroups(() => list.repaint());
|
package/web/strings.js
CHANGED
|
@@ -20,7 +20,7 @@ export const S = {
|
|
|
20
20
|
add: '+ New group', addTo: 'Add to group', remove: 'Remove from group', del: 'Delete group',
|
|
21
21
|
dropHint: 'Drop a session here to add it to this group',
|
|
22
22
|
},
|
|
23
|
-
meta: { update: (v) => `Update ${v}`, how: (v) => `Version ${v} is out. In the Mac app: right-click the menu bar item, then "Update to ${v}". Or run "npm i -g agent-run-inspector", then "ari service install" if you use the app or the service.` },
|
|
23
|
+
meta: { update: (v) => `Update ${v}`, click: (v) => `Click to update to ${v}. The app reopens when it is done.`, how: (v) => `Version ${v} is out. In the Mac app: right-click the menu bar item, then "Update to ${v}". Or run "npm i -g agent-run-inspector", then "ari service install" if you use the app or the service.` },
|
|
24
24
|
auth: { restarted: 'Signed out. Open the new address printed in the terminal, or run "ari open" if the inspector runs as a service.', detail: 'The server was restarted or this tab lost its sign-in, so the server no longer accepts it.' },
|
|
25
25
|
list: {
|
|
26
26
|
heading: 'Sessions',
|