promptarc 0.0.3 → 0.0.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 (128) hide show
  1. package/README.md +33 -25
  2. package/dist/bin.js +561 -45
  3. package/dist/share-direct.js +360 -0
  4. package/dist/web/.next/BUILD_ID +1 -1
  5. package/dist/web/.next/app-build-manifest.json +86 -79
  6. package/dist/web/.next/app-path-routes-manifest.json +17 -16
  7. package/dist/web/.next/build-manifest.json +2 -2
  8. package/dist/web/.next/prerender-manifest.json +14 -14
  9. package/dist/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  10. package/dist/web/.next/server/app/api/admin/backfill-ai/route_client-reference-manifest.js +1 -1
  11. package/dist/web/.next/server/app/api/admin/backfill-search/route_client-reference-manifest.js +1 -1
  12. package/dist/web/.next/server/app/api/ai/context/route.js +31 -0
  13. package/dist/web/.next/server/app/api/ai/context/route.js.nft.json +1 -0
  14. package/dist/web/.next/server/app/api/ai/context/route_client-reference-manifest.js +1 -0
  15. package/dist/web/.next/server/app/api/ai/pr-summary/route_client-reference-manifest.js +1 -1
  16. package/dist/web/.next/server/app/api/ai/pr-summary-local/route_client-reference-manifest.js +1 -1
  17. package/dist/web/.next/server/app/api/ai/process/route_client-reference-manifest.js +1 -1
  18. package/dist/web/.next/server/app/api/cli/download/route_client-reference-manifest.js +1 -1
  19. package/dist/web/.next/server/app/api/cli/feedback/route_client-reference-manifest.js +1 -1
  20. package/dist/web/.next/server/app/api/cli/init/route_client-reference-manifest.js +1 -1
  21. package/dist/web/.next/server/app/api/cli/my-shares/route_client-reference-manifest.js +1 -1
  22. package/dist/web/.next/server/app/api/cli/poll/route_client-reference-manifest.js +1 -1
  23. package/dist/web/.next/server/app/api/cli/project-settings/route_client-reference-manifest.js +1 -1
  24. package/dist/web/.next/server/app/api/cli/share-mutate/route_client-reference-manifest.js +1 -1
  25. package/dist/web/.next/server/app/api/cli/sync-list/route_client-reference-manifest.js +1 -1
  26. package/dist/web/.next/server/app/api/local/project-sessions/route_client-reference-manifest.js +1 -1
  27. package/dist/web/.next/server/app/api/local/watch/route_client-reference-manifest.js +1 -1
  28. package/dist/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  29. package/dist/web/.next/server/app/api/search-index/route_client-reference-manifest.js +1 -1
  30. package/dist/web/.next/server/app/api/share/download/[slug]/route_client-reference-manifest.js +1 -1
  31. package/dist/web/.next/server/app/api/share/route_client-reference-manifest.js +1 -1
  32. package/dist/web/.next/server/app/api/upload/route_client-reference-manifest.js +1 -1
  33. package/dist/web/.next/server/app/auth/callback/route_client-reference-manifest.js +1 -1
  34. package/dist/web/.next/server/app/auth/signout/route_client-reference-manifest.js +1 -1
  35. package/dist/web/.next/server/app/blog/ai-coding-agents-2026/page_client-reference-manifest.js +1 -1
  36. package/dist/web/.next/server/app/blog/page_client-reference-manifest.js +1 -1
  37. package/dist/web/.next/server/app/cli/login/page_client-reference-manifest.js +1 -1
  38. package/dist/web/.next/server/app/digest/page_client-reference-manifest.js +1 -1
  39. package/dist/web/.next/server/app/feedback/page_client-reference-manifest.js +1 -1
  40. package/dist/web/.next/server/app/my-projects/[projectKey]/page_client-reference-manifest.js +1 -1
  41. package/dist/web/.next/server/app/my-projects/page_client-reference-manifest.js +1 -1
  42. package/dist/web/.next/server/app/my-shares/page_client-reference-manifest.js +1 -1
  43. package/dist/web/.next/server/app/opengraph-image/route_client-reference-manifest.js +1 -1
  44. package/dist/web/.next/server/app/page.js +1 -1
  45. package/dist/web/.next/server/app/page_client-reference-manifest.js +1 -1
  46. package/dist/web/.next/server/app/privacy/page_client-reference-manifest.js +1 -1
  47. package/dist/web/.next/server/app/projects/[id]/page_client-reference-manifest.js +1 -1
  48. package/dist/web/.next/server/app/r/[slug]/opengraph-image/route_client-reference-manifest.js +1 -1
  49. package/dist/web/.next/server/app/r/[slug]/page.js +1 -1
  50. package/dist/web/.next/server/app/r/[slug]/page_client-reference-manifest.js +1 -1
  51. package/dist/web/.next/server/app/robots.txt/route.js.nft.json +1 -1
  52. package/dist/web/.next/server/app/robots.txt/route_client-reference-manifest.js +1 -1
  53. package/dist/web/.next/server/app/search/page_client-reference-manifest.js +1 -1
  54. package/dist/web/.next/server/app/sessions/[projectId]/[sessionId]/page_client-reference-manifest.js +1 -1
  55. package/dist/web/.next/server/app/sign-in/page_client-reference-manifest.js +1 -1
  56. package/dist/web/.next/server/app/sitemap.xml/route.js.nft.json +1 -1
  57. package/dist/web/.next/server/app/sitemap.xml/route_client-reference-manifest.js +1 -1
  58. package/dist/web/.next/server/app/sitemap.xml.body +8 -8
  59. package/dist/web/.next/server/app/terms/page_client-reference-manifest.js +1 -1
  60. package/dist/web/.next/server/app-paths-manifest.json +17 -16
  61. package/dist/web/.next/server/functions-config-manifest.json +10 -7
  62. package/dist/web/.next/server/pages/500.html +1 -1
  63. package/dist/web/.next/server/server-reference-manifest.js +1 -1
  64. package/dist/web/.next/server/server-reference-manifest.json +1 -1
  65. package/dist/web/.next/static/LF69v3WA6LbEAkvRHNqfG/_buildManifest.js +1 -0
  66. package/dist/web/.next/static/chunks/app/_not-found/page-0f1123e35eb8f046.js +1 -0
  67. package/dist/web/.next/static/chunks/app/api/admin/backfill-ai/route-0f1123e35eb8f046.js +1 -0
  68. package/dist/web/.next/static/chunks/app/api/admin/backfill-search/route-0f1123e35eb8f046.js +1 -0
  69. package/dist/web/.next/static/chunks/app/api/ai/context/route-0f1123e35eb8f046.js +1 -0
  70. package/dist/web/.next/static/chunks/app/api/ai/pr-summary/route-0f1123e35eb8f046.js +1 -0
  71. package/dist/web/.next/static/chunks/app/api/ai/pr-summary-local/route-0f1123e35eb8f046.js +1 -0
  72. package/dist/web/.next/static/chunks/app/api/ai/process/route-0f1123e35eb8f046.js +1 -0
  73. package/dist/web/.next/static/chunks/app/api/cli/download/route-0f1123e35eb8f046.js +1 -0
  74. package/dist/web/.next/static/chunks/app/api/cli/feedback/route-0f1123e35eb8f046.js +1 -0
  75. package/dist/web/.next/static/chunks/app/api/cli/init/route-0f1123e35eb8f046.js +1 -0
  76. package/dist/web/.next/static/chunks/app/api/cli/my-shares/route-0f1123e35eb8f046.js +1 -0
  77. package/dist/web/.next/static/chunks/app/api/cli/poll/route-0f1123e35eb8f046.js +1 -0
  78. package/dist/web/.next/static/chunks/app/api/cli/project-settings/route-0f1123e35eb8f046.js +1 -0
  79. package/dist/web/.next/static/chunks/app/api/cli/share-mutate/route-0f1123e35eb8f046.js +1 -0
  80. package/dist/web/.next/static/chunks/app/api/cli/sync-list/route-0f1123e35eb8f046.js +1 -0
  81. package/dist/web/.next/static/chunks/app/api/local/project-sessions/route-0f1123e35eb8f046.js +1 -0
  82. package/dist/web/.next/static/chunks/app/api/local/watch/route-0f1123e35eb8f046.js +1 -0
  83. package/dist/web/.next/static/chunks/app/api/search/route-0f1123e35eb8f046.js +1 -0
  84. package/dist/web/.next/static/chunks/app/api/search-index/route-0f1123e35eb8f046.js +1 -0
  85. package/dist/web/.next/static/chunks/app/api/share/download/[slug]/route-0f1123e35eb8f046.js +1 -0
  86. package/dist/web/.next/static/chunks/app/api/share/route-0f1123e35eb8f046.js +1 -0
  87. package/dist/web/.next/static/chunks/app/api/upload/route-0f1123e35eb8f046.js +1 -0
  88. package/dist/web/.next/static/chunks/app/auth/callback/route-0f1123e35eb8f046.js +1 -0
  89. package/dist/web/.next/static/chunks/app/auth/signout/route-0f1123e35eb8f046.js +1 -0
  90. package/dist/web/.next/static/chunks/app/blog/ai-coding-agents-2026/page-0f1123e35eb8f046.js +1 -0
  91. package/dist/web/.next/static/chunks/app/opengraph-image/route-0f1123e35eb8f046.js +1 -0
  92. package/dist/web/.next/static/chunks/app/{page-f7b69fa944b46c20.js → page-95394e3c6370084f.js} +1 -1
  93. package/dist/web/.next/static/chunks/app/r/[slug]/opengraph-image/route-0f1123e35eb8f046.js +1 -0
  94. package/dist/web/.next/static/chunks/app/robots.txt/route-0f1123e35eb8f046.js +1 -0
  95. package/dist/web/.next/static/chunks/app/sitemap.xml/route-0f1123e35eb8f046.js +1 -0
  96. package/dist/web/.next/static/css/c76bb7513858c50c.css +3 -0
  97. package/package.json +1 -1
  98. package/dist/web/.next/static/ABHGCNY7MSdkh00Z4Y8wS/_buildManifest.js +0 -1
  99. package/dist/web/.next/static/chunks/app/_not-found/page-fd6592d30c58fa5e.js +0 -1
  100. package/dist/web/.next/static/chunks/app/api/admin/backfill-ai/route-fd6592d30c58fa5e.js +0 -1
  101. package/dist/web/.next/static/chunks/app/api/admin/backfill-search/route-fd6592d30c58fa5e.js +0 -1
  102. package/dist/web/.next/static/chunks/app/api/ai/pr-summary/route-fd6592d30c58fa5e.js +0 -1
  103. package/dist/web/.next/static/chunks/app/api/ai/pr-summary-local/route-fd6592d30c58fa5e.js +0 -1
  104. package/dist/web/.next/static/chunks/app/api/ai/process/route-fd6592d30c58fa5e.js +0 -1
  105. package/dist/web/.next/static/chunks/app/api/cli/download/route-fd6592d30c58fa5e.js +0 -1
  106. package/dist/web/.next/static/chunks/app/api/cli/feedback/route-fd6592d30c58fa5e.js +0 -1
  107. package/dist/web/.next/static/chunks/app/api/cli/init/route-fd6592d30c58fa5e.js +0 -1
  108. package/dist/web/.next/static/chunks/app/api/cli/my-shares/route-fd6592d30c58fa5e.js +0 -1
  109. package/dist/web/.next/static/chunks/app/api/cli/poll/route-fd6592d30c58fa5e.js +0 -1
  110. package/dist/web/.next/static/chunks/app/api/cli/project-settings/route-fd6592d30c58fa5e.js +0 -1
  111. package/dist/web/.next/static/chunks/app/api/cli/share-mutate/route-fd6592d30c58fa5e.js +0 -1
  112. package/dist/web/.next/static/chunks/app/api/cli/sync-list/route-fd6592d30c58fa5e.js +0 -1
  113. package/dist/web/.next/static/chunks/app/api/local/project-sessions/route-fd6592d30c58fa5e.js +0 -1
  114. package/dist/web/.next/static/chunks/app/api/local/watch/route-fd6592d30c58fa5e.js +0 -1
  115. package/dist/web/.next/static/chunks/app/api/search/route-fd6592d30c58fa5e.js +0 -1
  116. package/dist/web/.next/static/chunks/app/api/search-index/route-fd6592d30c58fa5e.js +0 -1
  117. package/dist/web/.next/static/chunks/app/api/share/download/[slug]/route-fd6592d30c58fa5e.js +0 -1
  118. package/dist/web/.next/static/chunks/app/api/share/route-fd6592d30c58fa5e.js +0 -1
  119. package/dist/web/.next/static/chunks/app/api/upload/route-fd6592d30c58fa5e.js +0 -1
  120. package/dist/web/.next/static/chunks/app/auth/callback/route-fd6592d30c58fa5e.js +0 -1
  121. package/dist/web/.next/static/chunks/app/auth/signout/route-fd6592d30c58fa5e.js +0 -1
  122. package/dist/web/.next/static/chunks/app/blog/ai-coding-agents-2026/page-fd6592d30c58fa5e.js +0 -1
  123. package/dist/web/.next/static/chunks/app/opengraph-image/route-fd6592d30c58fa5e.js +0 -1
  124. package/dist/web/.next/static/chunks/app/r/[slug]/opengraph-image/route-fd6592d30c58fa5e.js +0 -1
  125. package/dist/web/.next/static/chunks/app/robots.txt/route-fd6592d30c58fa5e.js +0 -1
  126. package/dist/web/.next/static/chunks/app/sitemap.xml/route-fd6592d30c58fa5e.js +0 -1
  127. package/dist/web/.next/static/css/b3ccdd7835e6edda.css +0 -3
  128. /package/dist/web/.next/static/{ABHGCNY7MSdkh00Z4Y8wS → LF69v3WA6LbEAkvRHNqfG}/_ssgManifest.js +0 -0
package/README.md CHANGED
@@ -1,45 +1,53 @@
1
1
  # promptarc
2
2
 
3
- > Local-first viewer for AI coding agent sessions. Browse, search, and share your Claude Code, Codex, and Cursor sessions — without uploading anything you didn't ask to.
3
+ > See what your AI coding agent actually did. Browse, search, share, and generate PR descriptions from Claude Code, Codex, and Cursor sessions.
4
4
 
5
5
  ```bash
6
6
  npx promptarc
7
7
  ```
8
8
 
9
- That's it. The CLI boots a dashboard at `http://localhost:3030` that reads `~/.claude/`, `~/.codex/`, and `~/.cursor/` — rendering every session from Claude Code, OpenAI Codex, and Cursor as an inspectable timeline (messages, tool calls, file diffs, todos, errors, the works).
10
-
11
- ## Features
12
-
13
- - **Multi-agent.** Reads `~/.claude/` (Claude Code), `~/.codex/` (Codex), and `~/.cursor/` (Cursor) in one dashboard with tabs to filter by agent.
14
- - **Live updates.** Open a session that's still running and the page refreshes within ~300ms of every new message Claude writes.
15
- - **Resume.** Lost track of which session you were on? Click any session and copy the `claude --resume <id>` command from the sidebar.
16
- - **Selective sharing.** Click *Share session* to upload a single session as a viewable link. Choose visibility per share: **public** (indexed), **unlisted** (anyone with the URL), or **private** (only you, default).
17
- - **Cloud sync.** Optionally back up new sessions for a project to your account so you can browse them from anywhere — always private until you say otherwise.
18
- - **Redaction.** Secrets, home-directory paths, base64 blobs, and AI thinking blocks are stripped before any upload. The redaction pipeline is open source and auditable.
19
- - **Account-bound.** Sign in once with `promptarc login` (GitHub OAuth via [promptarc.dev](https://promptarc.dev)) and your shares are tied to your account, manageable from the web.
9
+ Every command works standalone from the terminal. The dashboard is optional for visual browsing.
20
10
 
21
11
  ## Commands
22
12
 
23
13
  ```text
24
- promptarc Boot the dashboard at http://localhost:3030
25
- promptarc login Sign in to your promptarc account via GitHub
26
- promptarc logout Delete the saved auth token
27
- promptarc whoami Print the currently signed-in account
28
- promptarc --version Print the CLI version
29
- promptarc --help Show usage
14
+ npx promptarc Open the visual dashboard
15
+ npx promptarc context What do I need to know? Past sessions + AI briefing
16
+ npx promptarc context --files Include recently changed files in the search
17
+ npx promptarc share <id> Share a session to the cloud (private, no dashboard needed)
18
+ npx promptarc pr Generate a PR description from the current session
19
+ npx promptarc pr --share Generate + share session (includes link in description)
20
+ npx promptarc pr --copy Generate + copy to clipboard
21
+ npx promptarc pull <slug> Download a shared session to this machine for resume
22
+ npx promptarc login Sign in via GitHub (auto-triggered when needed)
23
+ npx promptarc logout Delete the saved auth token
24
+ npx promptarc whoami Print the signed-in account
25
+ npx promptarc --version Print the CLI version
30
26
  ```
31
27
 
32
- ## Privacy model
28
+ ## What it does
29
+
30
+ - **Session prep.** `promptarc context` scans your local sessions + cloud archive and generates an AI briefing with what's unfinished, a copy-pasteable resume prompt, and warnings from past failures.
31
+ - **Share from terminal.** `promptarc share <id>` builds the artifact locally, redacts secrets, and uploads directly. No dashboard needed. Auto-signs in if needed.
32
+ - **PR descriptions.** `promptarc pr` generates structured PR descriptions (What / Why / How / Notes) from your session. Pipe to `gh pr create`.
33
+ - **Multi-agent.** Reads `~/.claude/` (Claude Code), `~/.codex/` (Codex), and `~/.cursor/` (Cursor) in one dashboard with tabs.
34
+ - **Live updates.** Open a running session and it refreshes within ~300ms of every new message.
35
+ - **Cloud sync.** Back up sessions to your account. Search across your history from any machine.
36
+ - **AI summaries.** Every shared session gets an AI-generated summary, searchable via full-text search.
37
+ - **Redaction.** Secrets, API keys, home-directory paths, and thinking blocks are stripped before any upload.
38
+ - **Private by default.** New shares are private. You promote to public/unlisted when ready.
39
+
40
+ ## Privacy
33
41
 
34
- - The dashboard server binds to **127.0.0.1 only**. Nothing on your LAN can reach it.
35
- - The CLI never uploads anything by default. Sharing is opt-in *per session*; cloud sync is opt-in *per project*.
36
- - New shares default to **private**. You promote to public/unlisted from the share modal.
37
- - The auth token (saved at `~/.promptarc/auth.json`, mode 0600) is never sent to anything except `promptarc.dev`.
42
+ - The dashboard binds to **127.0.0.1 only**. Nothing on your LAN can reach it.
43
+ - `promptarc share` redacts secrets **locally** before uploading. Raw session data never leaves your machine.
44
+ - `promptarc pr` sends only a condensed summary (~2K tokens) to the server. No code content, no secrets.
45
+ - The auth token (`~/.promptarc/auth.json`, mode 0600) is only sent to `promptarc.dev`.
38
46
 
39
47
  ## Requirements
40
48
 
41
- - Node.js 20
42
- - At least one of: `~/.claude/` (Claude Code), `~/.codex/` (Codex), or `~/.cursor/` (Cursor)
49
+ - Node.js 20+
50
+ - At least one of: `~/.claude/`, `~/.codex/`, or `~/.cursor/`
43
51
 
44
52
  ## Feedback
45
53