agent-session-inspector 0.1.8 → 0.1.10
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.md +1 -1
- package/VERSION +1 -1
- package/app/.next/BUILD_ID +1 -1
- package/app/.next/build-manifest.json +3 -3
- package/app/.next/prerender-manifest.json +3 -3
- package/app/.next/required-server-files.json +1 -1
- package/app/.next/server/app/_global-error.html +1 -1
- package/app/.next/server/app/_global-error.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_not-found.html +1 -1
- package/app/.next/server/app/_not-found.rsc +14 -14
- package/app/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
- package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +13 -13
- package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/api/analytics/route.js.nft.json +1 -1
- package/app/.next/server/app/api/logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/search/route.js.nft.json +1 -1
- package/app/.next/server/app/api/sessions/[provider]/[id]/record/route.js.nft.json +1 -1
- package/app/.next/server/app/api/sessions/[provider]/[id]/reveal/route.js.nft.json +1 -1
- package/app/.next/server/app/api/sessions/[provider]/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/app/.next/server/app/index.html +1 -1
- package/app/.next/server/app/index.rsc +16 -16
- package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +15 -15
- package/app/.next/server/app/index.segments/_full.segment.rsc +16 -16
- package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/page.js.nft.json +1 -1
- package/app/.next/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/sessions/[provider]/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/sessions/[provider]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__014br-h._.js +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__0co499t._.js +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__0p_hyq8._.js +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__0yxic1z._.js +2 -2
- package/app/.next/server/chunks/ssr/_0e8jdju._.js +7 -0
- package/app/.next/server/chunks/ssr/_0f8nmc3._.js +1 -1
- package/app/.next/server/chunks/ssr/_0gr0upx._.js +7 -0
- package/app/.next/server/chunks/ssr/src_app_page_tsx_1chiuah._.js +1 -1
- package/app/.next/server/chunks/ssr/src_app_sessions_[provider]_[id]_page_tsx_0uf635h._.js +2 -6
- package/app/.next/server/middleware-build-manifest.js +3 -3
- package/app/.next/server/pages/404.html +1 -1
- package/app/.next/server/pages/500.html +1 -1
- package/app/.next/server/server-reference-manifest.js +1 -1
- package/app/.next/server/server-reference-manifest.json +1 -1
- package/app/.next/static/chunks/0hav9to299upa.js +1 -0
- package/app/.next/static/chunks/1-qn722atv1by.css +1 -0
- package/app/.next/static/chunks/{1fe2mxakoweia.js → 18c6__lhilfeo.js} +1 -1
- package/app/.next/static/chunks/1bgubb_nxxbrk.js +2 -0
- package/app/.next/static/chunks/1gwxc9rvk6onv.js +5 -0
- package/app/AGENTS.md +9 -0
- package/app/CLAUDE.md +1 -0
- package/app/CONTRIBUTING.md +90 -0
- package/app/Dockerfile +34 -0
- package/app/LICENSE +21 -0
- package/app/README.md +369 -0
- package/app/bin/agent-session-inspector.mjs +185 -0
- package/app/components.json +25 -0
- package/app/docs/screenshots/analytics-dark.png +0 -0
- package/app/docs/screenshots/analytics.png +0 -0
- package/app/docs/screenshots/request-table.png +0 -0
- package/app/docs/screenshots/session-overview-dark.png +0 -0
- package/app/docs/screenshots/session-overview.png +0 -0
- package/app/docs/screenshots/sessions-dark.png +0 -0
- package/app/docs/screenshots/sessions.png +0 -0
- package/app/docs/screenshots/timeline-dark.png +0 -0
- package/app/docs/screenshots/timeline.png +0 -0
- package/app/docs/screenshots/token-optimizer-dark.png +0 -0
- package/app/docs/screenshots/token-optimizer.png +0 -0
- package/app/docs/social-preview.png +0 -0
- package/app/eslint.config.mjs +20 -0
- package/app/install.sh +85 -0
- package/app/next.config.ts +17 -0
- package/app/package.json +3 -3
- package/app/pnpm-lock.yaml +7031 -0
- package/app/pnpm-workspace.yaml +3 -0
- package/app/postcss.config.mjs +7 -0
- package/app/scripts/build-cli.mjs +26 -0
- package/app/scripts/demo-data.mjs +337 -0
- package/app/scripts/deploy-docker.sh +71 -0
- package/app/scripts/package-release.sh +86 -0
- package/app/server.js +1 -1
- package/app/tsconfig.json +34 -0
- package/bin/agent-session-inspector.mjs +2 -2
- package/cli/cli.mjs +234 -84
- package/package.json +1 -1
- package/app/.next/server/chunks/ssr/_0o294sf._.js +0 -3
- package/app/.next/server/chunks/ssr/_0wfo2z0._.js +0 -3
- package/app/.next/static/chunks/1lmw5sxsr57p6.css +0 -1
- package/app/.next/static/chunks/1nuneih_2_kul.js +0 -1
- package/app/.next/static/chunks/21ckxredfe3pr.js +0 -6
- package/app/.next/static/chunks/3-g9jvt_m-6_4.js +0 -1
- /package/app/.next/static/{muuOFZsnyOfIG_5aUuqFV → QagODMnr1on0whIZ_GMxV}/_buildManifest.js +0 -0
- /package/app/.next/static/{muuOFZsnyOfIG_5aUuqFV → QagODMnr1on0whIZ_GMxV}/_clientMiddlewareManifest.js +0 -0
- /package/app/.next/static/{muuOFZsnyOfIG_5aUuqFV → QagODMnr1on0whIZ_GMxV}/_ssgManifest.js +0 -0
package/app/install.sh
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Installer for Agent Session Inspector.
|
|
3
|
+
#
|
|
4
|
+
# curl -fsSL https://github.com/kishanmundha/agent-session-inspector/releases/latest/download/install.sh | bash
|
|
5
|
+
#
|
|
6
|
+
# Downloads the prebuilt app from GitHub Releases into ~/.agent-session-inspector
|
|
7
|
+
# and links an `agent-session-inspector` command into ~/.local/bin. Re-run to update.
|
|
8
|
+
#
|
|
9
|
+
# Environment overrides:
|
|
10
|
+
# ASI_VERSION release tag to install, e.g. v0.2.0 (default: latest)
|
|
11
|
+
# ASI_HOME install directory (default: ~/.agent-session-inspector)
|
|
12
|
+
# ASI_BIN_DIR where to link the command (default: ~/.local/bin)
|
|
13
|
+
# ASI_TARBALL_URL download this archive instead of a GitHub release
|
|
14
|
+
set -euo pipefail
|
|
15
|
+
|
|
16
|
+
NAME=agent-session-inspector
|
|
17
|
+
REPO=kishanmundha/agent-session-inspector
|
|
18
|
+
MIN_NODE=22.13.0
|
|
19
|
+
|
|
20
|
+
INSTALL_DIR="${ASI_HOME:-$HOME/.$NAME}"
|
|
21
|
+
BIN_DIR="${ASI_BIN_DIR:-$HOME/.local/bin}"
|
|
22
|
+
VERSION="${ASI_VERSION:-latest}"
|
|
23
|
+
|
|
24
|
+
info() { printf '\033[1;34m==>\033[0m %s\n' "$*"; }
|
|
25
|
+
die() {
|
|
26
|
+
printf '\033[1;31merror:\033[0m %s\n' "$*" >&2
|
|
27
|
+
exit 1
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
# Wrapped in a function so a truncated download can't run half a script.
|
|
31
|
+
main() {
|
|
32
|
+
command -v tar >/dev/null 2>&1 || die "tar is required."
|
|
33
|
+
command -v curl >/dev/null 2>&1 || die "curl is required."
|
|
34
|
+
command -v node >/dev/null 2>&1 ||
|
|
35
|
+
die "Node.js $MIN_NODE or newer is required. Install it from https://nodejs.org and re-run."
|
|
36
|
+
|
|
37
|
+
node -e '
|
|
38
|
+
const want = process.argv[1].split(".").map(Number);
|
|
39
|
+
const have = process.versions.node.split(".").map(Number);
|
|
40
|
+
for (let i = 0; i < 3; i++) {
|
|
41
|
+
if (have[i] !== want[i]) process.exit(have[i] > want[i] ? 0 : 1);
|
|
42
|
+
}
|
|
43
|
+
' "$MIN_NODE" || die "Node.js $MIN_NODE or newer is required (found $(node -v))."
|
|
44
|
+
|
|
45
|
+
local url
|
|
46
|
+
if [ -n "${ASI_TARBALL_URL:-}" ]; then
|
|
47
|
+
url="$ASI_TARBALL_URL"
|
|
48
|
+
elif [ "$VERSION" = latest ]; then
|
|
49
|
+
url="https://github.com/$REPO/releases/latest/download/$NAME.tar.gz"
|
|
50
|
+
else
|
|
51
|
+
url="https://github.com/$REPO/releases/download/$VERSION/$NAME.tar.gz"
|
|
52
|
+
fi
|
|
53
|
+
|
|
54
|
+
tmp="$(mktemp -d)"
|
|
55
|
+
trap 'rm -rf "$tmp"' EXIT
|
|
56
|
+
|
|
57
|
+
info "Downloading $url"
|
|
58
|
+
curl -fsSL "$url" -o "$tmp/$NAME.tar.gz" || die "Download failed: $url"
|
|
59
|
+
tar -xzf "$tmp/$NAME.tar.gz" -C "$tmp"
|
|
60
|
+
[ -f "$tmp/$NAME/app/server.js" ] || die "Downloaded archive is not a $NAME build."
|
|
61
|
+
|
|
62
|
+
# Swap the new build in only once it is fully extracted.
|
|
63
|
+
info "Installing to $INSTALL_DIR"
|
|
64
|
+
mkdir -p "$INSTALL_DIR" "$BIN_DIR"
|
|
65
|
+
rm -rf "$INSTALL_DIR/app"
|
|
66
|
+
mv "$tmp/$NAME" "$INSTALL_DIR/app"
|
|
67
|
+
ln -sf "$INSTALL_DIR/app/bin/$NAME.mjs" "$BIN_DIR/$NAME"
|
|
68
|
+
|
|
69
|
+
info "Installed $NAME $(cat "$INSTALL_DIR/app/VERSION" 2>/dev/null || echo)"
|
|
70
|
+
echo
|
|
71
|
+
case ":$PATH:" in
|
|
72
|
+
*":$BIN_DIR:"*)
|
|
73
|
+
echo "Run it with: $NAME"
|
|
74
|
+
;;
|
|
75
|
+
*)
|
|
76
|
+
echo "$BIN_DIR is not on your PATH. Add it:"
|
|
77
|
+
echo
|
|
78
|
+
echo " export PATH=\"$BIN_DIR:\$PATH\""
|
|
79
|
+
echo
|
|
80
|
+
echo "or run it directly: $BIN_DIR/$NAME"
|
|
81
|
+
;;
|
|
82
|
+
esac
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
main "$@"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { NextConfig } from 'next';
|
|
2
|
+
import pkg from './package.json';
|
|
3
|
+
|
|
4
|
+
const nextConfig: NextConfig = {
|
|
5
|
+
output: 'standalone',
|
|
6
|
+
// No next/image usage; keeps the platform-specific sharp binary out of the release archive.
|
|
7
|
+
images: { unoptimized: true },
|
|
8
|
+
// The providers build paths at runtime (path.join(dir, ".git"), ...), which the
|
|
9
|
+
// tracer reads as "ship the repo's own .git, .claude and sources".
|
|
10
|
+
outputFileTracingExcludes: {
|
|
11
|
+
'/**': ['./.git/**', './.claude/**', './src/**'],
|
|
12
|
+
},
|
|
13
|
+
// Shown in the header and the About dialog (see src/lib/app-info.ts).
|
|
14
|
+
env: { APP_VERSION: pkg.version },
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default nextConfig;
|
package/app/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-session-inspector",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "See where a coding-agent session's tokens and dollars went: a local inspector for Claude Code, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode and Hermes sessions, with a step-by-step timeline, per-step cost and analytics.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
},
|
|
36
36
|
"private": true,
|
|
37
37
|
"scripts": {
|
|
38
|
-
"dev": "next dev",
|
|
38
|
+
"dev": "next dev -p 4747",
|
|
39
39
|
"build": "next build",
|
|
40
|
-
"start": "next start",
|
|
40
|
+
"start": "next start -p 4747",
|
|
41
41
|
"lint": "eslint",
|
|
42
42
|
"cli": "node scripts/build-cli.mjs && node bin/agent-session-inspector.mjs",
|
|
43
43
|
"deploy:docker": "./scripts/deploy-docker.sh",
|