agent-session-inspector 0.1.3 → 0.1.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.
Files changed (135) hide show
  1. package/VERSION +1 -1
  2. package/app/.next/BUILD_ID +1 -1
  3. package/app/.next/app-path-routes-manifest.json +2 -0
  4. package/app/.next/build-manifest.json +3 -3
  5. package/app/.next/prerender-manifest.json +3 -3
  6. package/app/.next/required-server-files.json +1 -1
  7. package/app/.next/routes-manifest.json +15 -0
  8. package/app/.next/server/app/_global-error.html +1 -1
  9. package/app/.next/server/app/_global-error.rsc +1 -1
  10. package/app/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  11. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  14. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/app/.next/server/app/_not-found.html +1 -1
  16. package/app/.next/server/app/_not-found.rsc +14 -14
  17. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
  18. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +13 -13
  19. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  20. package/app/.next/server/app/api/analytics/route.js +2 -2
  21. package/app/.next/server/app/api/analytics/route.js.nft.json +1 -1
  22. package/app/.next/server/app/api/logs/route.js +2 -2
  23. package/app/.next/server/app/api/logs/route.js.nft.json +1 -1
  24. package/app/.next/server/app/api/pricing/route/app-paths-manifest.json +3 -0
  25. package/app/.next/server/app/api/pricing/route/build-manifest.json +12 -0
  26. package/app/.next/server/app/api/pricing/route/server-reference-manifest.json +4 -0
  27. package/app/.next/server/app/api/pricing/route.js +6 -0
  28. package/app/.next/server/app/api/pricing/route.js.map +5 -0
  29. package/app/.next/server/app/api/pricing/route.js.nft.json +1 -0
  30. package/app/.next/server/app/api/pricing/route_client-reference-manifest.js +3 -0
  31. package/app/.next/server/app/api/providers/route.js +2 -2
  32. package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
  33. package/app/.next/server/app/api/search/route.js +2 -2
  34. package/app/.next/server/app/api/search/route.js.nft.json +1 -1
  35. package/app/.next/server/app/api/sessions/[provider]/[id]/reveal/route/app-paths-manifest.json +3 -0
  36. package/app/.next/server/app/api/sessions/[provider]/[id]/reveal/route/build-manifest.json +12 -0
  37. package/app/.next/server/app/api/sessions/[provider]/[id]/reveal/route/server-reference-manifest.json +4 -0
  38. package/app/.next/server/app/api/sessions/[provider]/[id]/reveal/route.js +7 -0
  39. package/app/.next/server/app/api/sessions/[provider]/[id]/reveal/route.js.map +5 -0
  40. package/app/.next/server/app/api/sessions/[provider]/[id]/reveal/route.js.nft.json +1 -0
  41. package/app/.next/server/app/api/sessions/[provider]/[id]/reveal/route_client-reference-manifest.js +3 -0
  42. package/app/.next/server/app/api/sessions/[provider]/[id]/route.js +2 -2
  43. package/app/.next/server/app/api/sessions/[provider]/[id]/route.js.nft.json +1 -1
  44. package/app/.next/server/app/api/sessions/route.js +2 -2
  45. package/app/.next/server/app/api/sessions/route.js.nft.json +1 -1
  46. package/app/.next/server/app/index.html +1 -1
  47. package/app/.next/server/app/index.rsc +16 -16
  48. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +15 -15
  49. package/app/.next/server/app/index.segments/_full.segment.rsc +16 -16
  50. package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  51. package/app/.next/server/app/page.js.nft.json +1 -1
  52. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  53. package/app/.next/server/app/sessions/[provider]/[id]/page.js.nft.json +1 -1
  54. package/app/.next/server/app/sessions/[provider]/[id]/page_client-reference-manifest.js +1 -1
  55. package/app/.next/server/app-paths-manifest.json +2 -0
  56. package/app/.next/server/chunks/1oeh_server_app_api_sessions_[provider]_[id]_reveal_route_actions_1mqlatn.js +3 -0
  57. package/app/.next/server/chunks/[root-of-the-server]__0dyq0rc._.js +3 -0
  58. package/app/.next/server/chunks/[root-of-the-server]__0kgkqhn._.js +3 -0
  59. package/app/.next/server/chunks/[root-of-the-server]__0yxic1z._.js +6 -0
  60. package/app/.next/server/chunks/[root-of-the-server]__10p8y9z._.js +3 -0
  61. package/app/.next/server/chunks/[root-of-the-server]__1cceere._.js +3 -0
  62. package/app/.next/server/chunks/[root-of-the-server]__1eclfq8._.js +3 -0
  63. package/app/.next/server/chunks/[root-of-the-server]__1lz20wm._.js +3 -0
  64. package/app/.next/server/chunks/[root-of-the-server]__1zdh1mi._.js +3 -0
  65. package/app/.next/server/chunks/[root-of-the-server]__20epvou._.js +3 -0
  66. package/app/.next/server/chunks/_next-internal_server_app_api_pricing_route_actions_06i5bdm.js +3 -0
  67. package/app/.next/server/chunks/ssr/_0136j91._.js +1 -1
  68. package/app/.next/server/chunks/ssr/_0o294sf._.js +3 -0
  69. package/app/.next/server/chunks/ssr/_1-5v1mi._.js +3 -0
  70. package/app/.next/server/chunks/ssr/_12__495._.js +1 -1
  71. package/app/.next/server/chunks/ssr/_1ck8cbf._.js +1 -1
  72. package/app/.next/server/chunks/ssr/src_app_page_tsx_1chiuah._.js +1 -1
  73. package/app/.next/server/chunks/ssr/src_app_sessions_[provider]_[id]_page_tsx_0uf635h._.js +3 -3
  74. package/app/.next/server/middleware-build-manifest.js +3 -3
  75. package/app/.next/server/pages/404.html +1 -1
  76. package/app/.next/server/pages/500.html +1 -1
  77. package/app/.next/server/server-reference-manifest.js +1 -1
  78. package/app/.next/server/server-reference-manifest.json +1 -1
  79. package/app/.next/static/chunks/10x4j1wts3xx2.js +1 -0
  80. package/app/.next/static/chunks/1dz8a9ds45tdb.js +6 -0
  81. package/app/.next/static/chunks/1g3ep2o7fhgpe.css +1 -0
  82. package/app/.next/static/chunks/2iedud09ou282.js +1 -0
  83. package/app/.next/static/chunks/2k65elb1vo-2z.js +1 -0
  84. package/app/.next/static/chunks/2t205sbe-_sk4.js +1 -0
  85. package/app/.next/static/chunks/{0u22wlboqnsjn.js → 3_e2d472hbms0.js} +1 -1
  86. package/app/AGENTS.md +9 -0
  87. package/app/CLAUDE.md +1 -0
  88. package/app/CONTRIBUTING.md +71 -0
  89. package/app/Dockerfile +34 -0
  90. package/app/LICENSE +21 -0
  91. package/app/README.md +277 -0
  92. package/app/bin/agent-session-inspector.mjs +159 -0
  93. package/app/components.json +25 -0
  94. package/app/docs/screenshots/analytics-dark.png +0 -0
  95. package/app/docs/screenshots/analytics.png +0 -0
  96. package/app/docs/screenshots/session-overview-dark.png +0 -0
  97. package/app/docs/screenshots/session-overview.png +0 -0
  98. package/app/docs/screenshots/sessions-dark.png +0 -0
  99. package/app/docs/screenshots/sessions.png +0 -0
  100. package/app/docs/screenshots/timeline-dark.png +0 -0
  101. package/app/docs/screenshots/timeline.png +0 -0
  102. package/app/docs/screenshots/token-optimizer-dark.png +0 -0
  103. package/app/docs/screenshots/token-optimizer.png +0 -0
  104. package/app/docs/social-preview.png +0 -0
  105. package/app/eslint.config.mjs +19 -0
  106. package/app/install.sh +85 -0
  107. package/app/next.config.ts +17 -0
  108. package/app/package.json +1 -1
  109. package/app/pnpm-lock.yaml +6760 -0
  110. package/app/pnpm-workspace.yaml +2 -0
  111. package/app/postcss.config.mjs +7 -0
  112. package/app/scripts/demo-data.mjs +288 -0
  113. package/app/scripts/deploy-docker.sh +67 -0
  114. package/app/scripts/package-release.sh +84 -0
  115. package/app/server.js +1 -1
  116. package/app/tsconfig.json +34 -0
  117. package/package.json +1 -1
  118. package/app/.next/server/chunks/[externals]__0xll52b._.js +0 -3
  119. package/app/.next/server/chunks/[root-of-the-server]__093lyxv._.js +0 -3
  120. package/app/.next/server/chunks/[root-of-the-server]__0ne74op._.js +0 -3
  121. package/app/.next/server/chunks/[root-of-the-server]__0uqb915._.js +0 -6
  122. package/app/.next/server/chunks/[root-of-the-server]__0uv5tnc._.js +0 -3
  123. package/app/.next/server/chunks/[root-of-the-server]__1lfc-ga._.js +0 -3
  124. package/app/.next/server/chunks/[root-of-the-server]__1n_sepq._.js +0 -3
  125. package/app/.next/server/chunks/ssr/_0w9kj20._.js +0 -3
  126. package/app/.next/server/chunks/ssr/_1te8t5n._.js +0 -3
  127. package/app/.next/static/chunks/105fms2oszpby.js +0 -1
  128. package/app/.next/static/chunks/13ads2-fzhdry.css +0 -1
  129. package/app/.next/static/chunks/1n1htnt-u9ghv.js +0 -6
  130. package/app/.next/static/chunks/2bron83qy3bb-.js +0 -1
  131. package/app/.next/static/chunks/2q8c3-tw6cvrv.js +0 -1
  132. package/app/.next/static/chunks/3rd1dhhkaulu1.js +0 -1
  133. /package/app/.next/static/{NMXKYaysRrCyMjSEbGwmR → KFq9wlUt8U-Sma3McE5Jw}/_buildManifest.js +0 -0
  134. /package/app/.next/static/{NMXKYaysRrCyMjSEbGwmR → KFq9wlUt8U-Sma3McE5Jw}/_clientMiddlewareManifest.js +0 -0
  135. /package/app/.next/static/{NMXKYaysRrCyMjSEbGwmR → KFq9wlUt8U-Sma3McE5Jw}/_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",
3
+ "version": "0.1.4",
4
4
  "description": "Inspect Claude Code, Codex, GitHub Copilot, OpenCode and Hermes agent sessions in a local web UI: timeline, tokens, cost and analytics.",
5
5
  "keywords": [
6
6
  "agent",