yepanywhere 0.4.2 → 0.4.3

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 (123) hide show
  1. package/README.md +31 -44
  2. package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/ProgressEntrySchema.d.ts +25 -0
  3. package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/ProgressEntrySchema.d.ts.map +1 -0
  4. package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/ProgressEntrySchema.js +14 -0
  5. package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/ProgressEntrySchema.js.map +1 -0
  6. package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SystemEntrySchema.d.ts +71 -0
  7. package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SystemEntrySchema.d.ts.map +1 -1
  8. package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SystemEntrySchema.js +41 -0
  9. package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SystemEntrySchema.js.map +1 -1
  10. package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/index.d.ts +185 -0
  11. package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/index.d.ts.map +1 -1
  12. package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/index.js +3 -0
  13. package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/index.js.map +1 -1
  14. package/bundled/@yep-anywhere/shared/dist/codex-schema/session.d.ts +47 -3
  15. package/bundled/@yep-anywhere/shared/dist/codex-schema/session.d.ts.map +1 -1
  16. package/bundled/@yep-anywhere/shared/dist/codex-schema/session.js +19 -0
  17. package/bundled/@yep-anywhere/shared/dist/codex-schema/session.js.map +1 -1
  18. package/bundled/@yep-anywhere/shared/dist/gemini-schema/session.d.ts +4 -4
  19. package/bundled/@yep-anywhere/shared/dist/git-status.d.ts +31 -0
  20. package/bundled/@yep-anywhere/shared/dist/git-status.d.ts.map +1 -0
  21. package/bundled/@yep-anywhere/shared/dist/git-status.js +2 -0
  22. package/bundled/@yep-anywhere/shared/dist/git-status.js.map +1 -0
  23. package/bundled/@yep-anywhere/shared/dist/index.d.ts +3 -2
  24. package/bundled/@yep-anywhere/shared/dist/index.d.ts.map +1 -1
  25. package/bundled/@yep-anywhere/shared/dist/index.js +1 -1
  26. package/bundled/@yep-anywhere/shared/dist/index.js.map +1 -1
  27. package/bundled/@yep-anywhere/shared/dist/types.d.ts +25 -9
  28. package/bundled/@yep-anywhere/shared/dist/types.d.ts.map +1 -1
  29. package/bundled/@yep-anywhere/shared/dist/types.js +5 -12
  30. package/bundled/@yep-anywhere/shared/dist/types.js.map +1 -1
  31. package/bundled/@yep-anywhere/shared/package.json +1 -1
  32. package/client-dist/assets/index-D9Jmmnse.js +159 -0
  33. package/client-dist/assets/{index-BKl5dGuJ.css → index-DXgqv8xQ.css} +1 -1
  34. package/client-dist/assets/snapshotSession-CUC6Plno.js +35 -0
  35. package/client-dist/index.html +2 -2
  36. package/dist/app.d.ts +5 -0
  37. package/dist/app.d.ts.map +1 -1
  38. package/dist/app.js +12 -1
  39. package/dist/app.js.map +1 -1
  40. package/dist/augments/block-detector.d.ts.map +1 -1
  41. package/dist/augments/block-detector.js +46 -13
  42. package/dist/augments/block-detector.js.map +1 -1
  43. package/dist/augments/safe-markdown.d.ts.map +1 -1
  44. package/dist/augments/safe-markdown.js +1 -0
  45. package/dist/augments/safe-markdown.js.map +1 -1
  46. package/dist/auth/AuthService.d.ts +10 -0
  47. package/dist/auth/AuthService.d.ts.map +1 -1
  48. package/dist/auth/AuthService.js +13 -0
  49. package/dist/auth/AuthService.js.map +1 -1
  50. package/dist/auth/routes.d.ts +2 -0
  51. package/dist/auth/routes.d.ts.map +1 -1
  52. package/dist/auth/routes.js +44 -6
  53. package/dist/auth/routes.js.map +1 -1
  54. package/dist/config.d.ts +2 -0
  55. package/dist/config.d.ts.map +1 -1
  56. package/dist/config.js +1 -0
  57. package/dist/config.js.map +1 -1
  58. package/dist/frontend/static.d.ts.map +1 -1
  59. package/dist/frontend/static.js +3 -2
  60. package/dist/frontend/static.js.map +1 -1
  61. package/dist/index.js +7 -1
  62. package/dist/index.js.map +1 -1
  63. package/dist/middleware/auth.d.ts +8 -0
  64. package/dist/middleware/auth.d.ts.map +1 -1
  65. package/dist/middleware/auth.js +63 -14
  66. package/dist/middleware/auth.js.map +1 -1
  67. package/dist/routes/git-status.d.ts +7 -0
  68. package/dist/routes/git-status.d.ts.map +1 -0
  69. package/dist/routes/git-status.js +316 -0
  70. package/dist/routes/git-status.js.map +1 -0
  71. package/dist/routes/sessions.d.ts.map +1 -1
  72. package/dist/routes/sessions.js +48 -23
  73. package/dist/routes/sessions.js.map +1 -1
  74. package/dist/routes/sharing.d.ts +7 -0
  75. package/dist/routes/sharing.d.ts.map +1 -0
  76. package/dist/routes/sharing.js +27 -0
  77. package/dist/routes/sharing.js.map +1 -0
  78. package/dist/routes/version.d.ts +2 -0
  79. package/dist/routes/version.d.ts.map +1 -1
  80. package/dist/routes/version.js +3 -0
  81. package/dist/routes/version.js.map +1 -1
  82. package/dist/sdk/providers/claude.d.ts.map +1 -1
  83. package/dist/sdk/providers/claude.js +3 -2
  84. package/dist/sdk/providers/claude.js.map +1 -1
  85. package/dist/sdk/providers/codex.d.ts +1 -1
  86. package/dist/sdk/providers/codex.d.ts.map +1 -1
  87. package/dist/sdk/providers/codex.js +12 -12
  88. package/dist/sdk/providers/codex.js.map +1 -1
  89. package/dist/sdk/providers/types.d.ts +4 -2
  90. package/dist/sdk/providers/types.d.ts.map +1 -1
  91. package/dist/sdk/remote-spawn.d.ts.map +1 -1
  92. package/dist/sdk/remote-spawn.js +3 -0
  93. package/dist/sdk/remote-spawn.js.map +1 -1
  94. package/dist/sdk/types.d.ts +4 -2
  95. package/dist/sdk/types.d.ts.map +1 -1
  96. package/dist/services/SharingService.d.ts +32 -0
  97. package/dist/services/SharingService.d.ts.map +1 -0
  98. package/dist/services/SharingService.js +84 -0
  99. package/dist/services/SharingService.js.map +1 -0
  100. package/dist/services/index.d.ts +1 -0
  101. package/dist/services/index.d.ts.map +1 -1
  102. package/dist/services/index.js +1 -0
  103. package/dist/services/index.js.map +1 -1
  104. package/dist/sessions/dag.d.ts.map +1 -1
  105. package/dist/sessions/dag.js +16 -2
  106. package/dist/sessions/dag.js.map +1 -1
  107. package/dist/sessions/pagination.d.ts +38 -0
  108. package/dist/sessions/pagination.d.ts.map +1 -0
  109. package/dist/sessions/pagination.js +74 -0
  110. package/dist/sessions/pagination.js.map +1 -0
  111. package/dist/supervisor/Process.d.ts +18 -7
  112. package/dist/supervisor/Process.d.ts.map +1 -1
  113. package/dist/supervisor/Process.js +30 -13
  114. package/dist/supervisor/Process.js.map +1 -1
  115. package/dist/supervisor/Supervisor.d.ts +5 -3
  116. package/dist/supervisor/Supervisor.d.ts.map +1 -1
  117. package/dist/supervisor/Supervisor.js +57 -38
  118. package/dist/supervisor/Supervisor.js.map +1 -1
  119. package/dist/supervisor/types.d.ts +9 -5
  120. package/dist/supervisor/types.d.ts.map +1 -1
  121. package/dist/supervisor/types.js.map +1 -1
  122. package/package.json +2 -2
  123. package/client-dist/assets/index-BDS2uHOo.js +0 -159
package/README.md CHANGED
@@ -7,53 +7,36 @@
7
7
  </p>
8
8
 
9
9
  <p align="center">
10
- <em>Yep, you can keep working anywhere.</em>
10
+ <em>Mobile-first. End-to-end encrypted. Open source.</em>
11
11
  </p>
12
12
 
13
13
  <p align="center">
14
14
  <a href="https://yepanywhere.com">yepanywhere.com</a>
15
15
  </p>
16
16
 
17
- A polished web interface for managing Claude and Codex agents. Works great on mobile and desktop walk away from your desk, watch your kids, and keep your agents productive from your phone.
17
+ A better remote interface for Claude Code and Codex. Self-hosted, no cloud accounts. Supervise your agents from your phone while they run on your dev machines.
18
18
 
19
- **Seamless handoff.** Work at your desk, walk away, continue exactly where you left off. No friction. Your agent keeps running on your dev machine while you supervise from the couch, the coffee shop, or the school pickup line.
19
+ ## Features
20
20
 
21
- **Your desk follows you.** Push notifications when approval is needed. Respond from your lock screen. Glance at progress between meetings. The server does the heavy lifting your phone is just a window.
22
-
23
- **Share files from anywhere.** Upload images, screenshots, documents, and code files directly from your phone. Snap a photo of a whiteboard sketch, share an error screenshot, or attach design mockups — your agent sees exactly what you see.
24
-
25
- **Multi-session sanity.** Stop cycling through terminal tabs. See all your projects at once. Star the important ones, archive the finished ones. Context-switch without losing context.
26
-
27
- ## TOS Compliance
28
-
29
- Yep Anywhere uses the official [`@anthropic-ai/claude-agent-sdk`](https://www.npmjs.com/package/@anthropic-ai/claude-agent-sdk) published by Anthropic. Unlike [third-party tools that were blocked](https://yepanywhere.com/tos-compliance.html) for spoofing client identity and circumventing pricing, we don't handle authentication, spoof headers, or manipulate OAuth tokens. You authenticate via your own Claude CLI — we're just a remote interface to your sessions.
30
-
31
- Read more: [How we use the SDK](https://yepanywhere.com/tos-compliance.html) | [Feb 2026 auth clarification](https://yepanywhere.com/sdk-auth-clarification.html)
32
-
33
- ## What is this?
34
-
35
- If you use Claude Code or Codex from the terminal, this gives you a better interface. Auto-detects your installed CLI tools and provides:
36
-
37
- - **Interop first** — View sessions running in Claude CLI, VS Code, or other tools in real time, or resume them later from your phone. No new database — just a tiny JSON cache and optional metadata for starring/archiving
38
- - **Multi-session dashboard** — See all your agents at a glance, easy multitasking
39
- - **Mobile-friendly** — Approve requests, upload files, share screenshots and photos directly from your phone's camera roll
40
- - **Push notifications** — Get notified when approval is needed (VAPID, no third-party server)
41
- - **Voice input** — Talk to your agents via browser speech API (great for Linux where SuperWhisper isn't available)
42
- - **Real-time streaming** — Watch agents work with sub-agent visibility
43
- - **Read-only mode** — Observe CLI sessions in the UI while working in terminal elsewhere
44
- - **Resource efficient** — Worker/supervisor pattern, doesn't spawn a CLI per task
21
+ - **Interop** View and resume sessions started in CLI, VS Code, or other tools. No new databasepiggybacks on CLI persistence
22
+ - **File uploads** — Share screenshots, photos, PDFs, and code files directly from your phone's camera roll
23
+ - **Push notifications** Get alerted when approval is needed, respond from your lock screen
24
+ - **E2E encrypted remote access** — Connect from anywhere via our free relay. We can't see your data (SRP-6a + TweetNaCl)
25
+ - **Fork/clone conversations** Branch from any message point to explore alternatives
26
+ - **Tiered inbox** — Needs Attention → Active → Recent → Unread. Stop cycling through terminal tabs
27
+ - **Global activity stream** — See what all your agents are doing across sessions
45
28
  - **Server-owned processes** — Client disconnects don't interrupt work
46
- - **Fast on mobile** — Syntax highlighting and markdown rendering happen server-side, keeping the client lightweight
29
+ - **Voice input** — Talk to your agents via browser speech API
30
+ - **Fast on mobile** — Syntax highlighting and markdown rendering happen server-side
47
31
 
48
- No database, no cloud, no accounts, no hidden gimmicks. 100% open source. Piggybacks on CLI tools' built-in persistence.
32
+ No database, no cloud, no accounts. 100% open source (MIT).
49
33
 
50
34
  ## Supported Providers
51
35
 
52
- | Provider | Edit Visibility | Local Models | Approval Flow | Notes |
53
- |----------|-----------------|--------------|---------------|-------|
54
- | Claude Code | Full | No | Yes (per-tool) | Primary provider, full mobile supervision |
55
- | Codex | Full | No | Yes (per-tool) | Full support diffs, approvals, streaming |
56
- | OpenCode | ? | ? | ? | Early integration, approvals not implemented |
36
+ | Provider | Diffs | Approvals | Streaming | Notes |
37
+ |----------|-------|-----------|-----------|-------|
38
+ | Claude Code | Full | Yes | Yes | Primary provider, full feature support |
39
+ | Codex | Full | Yes | Yes | Full support including diffs and approvals |
57
40
 
58
41
  ## Screenshots
59
42
 
@@ -89,10 +72,10 @@ Or, from source:
89
72
  git clone https://github.com/kzahel/yepanywhere.git
90
73
  cd yepanywhere
91
74
  pnpm install
75
+ pnpm build
92
76
  pnpm start
93
77
  ```
94
78
 
95
-
96
79
  Open http://localhost:3400 in your browser. The app auto-detects installed CLI agents.
97
80
 
98
81
  ## Remote Access
@@ -105,23 +88,27 @@ yepanywhere --setup-remote-access --username myserver --password "secretpass123"
105
88
 
106
89
  Then connect from anywhere at [yepanywhere.com/remote](https://yepanywhere.com/remote).
107
90
 
108
- All traffic is end-to-end encrypted (SRP-6a + TweetNaCl) and we can't see your data. No accounts required.
109
-
110
- > **Note:** If you run `--setup-remote-access` while the server is running, restart it to pick up the new config.
91
+ All traffic is end-to-end encrypted and we can't see your data. No accounts required.
111
92
 
112
93
  **Self-hosted:** Prefer to run your own infrastructure? Use Tailscale, Caddy, or any reverse proxy with SSL termination. See the [remote access docs](docs/project/remote-access.md) for details.
113
94
 
95
+ ## Why not just use the terminal?
96
+
97
+ You *can* use the terminal on your phone — but monospace text is painful on a small screen, there's no file upload, no push notifications, and no way to see all your sessions at once. This gives you a proper UI while keeping everything self-hosted and running your code locally.
98
+
99
+ ## Comparison to Other Tools
100
+
101
+ There are a lot of projects in this space. We track them all: **[docs/competitive/all-projects.md](docs/competitive/all-projects.md)**
102
+
114
103
  ## Development
115
104
 
116
105
  See [DEVELOPMENT.md](DEVELOPMENT.md) for build instructions, configuration options, and more.
117
106
 
118
- ## Why not just use the terminal?
107
+ ## TOS Compliance
119
108
 
120
- - Fixed-width fonts are hard to read for long text
121
- - **No file uploads** — can't share screenshots, photos, PDFs, or other files with your agent
122
- - No voice input
123
- - No multi-session overview
124
- - This gives you a polished UI, but self-hosted and editing your code
109
+ Yep Anywhere uses the official [`@anthropic-ai/claude-agent-sdk`](https://www.npmjs.com/package/@anthropic-ai/claude-agent-sdk) published by Anthropic. We don't handle authentication, spoof headers, or manipulate OAuth tokens. You authenticate via your own Claude CLI — we're just a remote interface to your sessions.
110
+
111
+ Read more: [How we use the SDK](https://yepanywhere.com/tos-compliance.html) | [Feb 2026 auth clarification](https://yepanywhere.com/sdk-auth-clarification.html)
125
112
 
126
113
  ## License
127
114
 
@@ -0,0 +1,25 @@
1
+ import { z } from "zod";
2
+ export declare const ProgressEntrySchema: z.ZodObject<{
3
+ isSidechain: z.ZodBoolean;
4
+ userType: z.ZodEnum<{
5
+ external: "external";
6
+ }>;
7
+ cwd: z.ZodString;
8
+ sessionId: z.ZodString;
9
+ version: z.ZodString;
10
+ uuid: z.ZodString;
11
+ timestamp: z.ZodString;
12
+ parentUuid: z.ZodNullable<z.ZodString>;
13
+ isMeta: z.ZodOptional<z.ZodBoolean>;
14
+ toolUseResult: z.ZodOptional<z.ZodUnknown>;
15
+ gitBranch: z.ZodOptional<z.ZodString>;
16
+ isCompactSummary: z.ZodOptional<z.ZodBoolean>;
17
+ type: z.ZodLiteral<"progress">;
18
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19
+ toolUseID: z.ZodString;
20
+ parentToolUseID: z.ZodString;
21
+ slug: z.ZodOptional<z.ZodString>;
22
+ agentId: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>;
24
+ export type ProgressEntry = z.infer<typeof ProgressEntrySchema>;
25
+ //# sourceMappingURL=ProgressEntrySchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressEntrySchema.d.ts","sourceRoot":"","sources":["../../../src/claude-sdk-schema/entry/ProgressEntrySchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;iBAY9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { z } from "zod";
2
+ import { BaseEntrySchema } from "./BaseEntrySchema.js";
3
+ export const ProgressEntrySchema = BaseEntrySchema.extend({
4
+ // discriminator
5
+ type: z.literal("progress"),
6
+ // required
7
+ data: z.record(z.string(), z.unknown()),
8
+ toolUseID: z.string(),
9
+ parentToolUseID: z.string(),
10
+ // optional
11
+ slug: z.string().optional(),
12
+ agentId: z.string().optional(),
13
+ });
14
+ //# sourceMappingURL=ProgressEntrySchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressEntrySchema.js","sourceRoot":"","sources":["../../../src/claude-sdk-schema/entry/ProgressEntrySchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC,MAAM,CAAC;IACxD,gBAAgB;IAChB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAE3B,WAAW;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;IACvC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAE3B,WAAW;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC"}
@@ -77,6 +77,30 @@ export declare const SystemEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
77
77
  trigger: z.ZodString;
78
78
  preTokens: z.ZodNumber;
79
79
  }, z.core.$strip>>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ isSidechain: z.ZodBoolean;
82
+ userType: z.ZodEnum<{
83
+ external: "external";
84
+ }>;
85
+ cwd: z.ZodString;
86
+ sessionId: z.ZodString;
87
+ version: z.ZodString;
88
+ uuid: z.ZodString;
89
+ timestamp: z.ZodString;
90
+ parentUuid: z.ZodNullable<z.ZodString>;
91
+ isMeta: z.ZodOptional<z.ZodBoolean>;
92
+ toolUseResult: z.ZodOptional<z.ZodUnknown>;
93
+ gitBranch: z.ZodOptional<z.ZodString>;
94
+ isCompactSummary: z.ZodOptional<z.ZodBoolean>;
95
+ type: z.ZodLiteral<"system">;
96
+ subtype: z.ZodLiteral<"microcompact_boundary">;
97
+ content: z.ZodString;
98
+ level: z.ZodString;
99
+ slug: z.ZodOptional<z.ZodString>;
100
+ microcompactMetadata: z.ZodOptional<z.ZodObject<{
101
+ trigger: z.ZodString;
102
+ preTokens: z.ZodNumber;
103
+ }, z.core.$loose>>;
80
104
  }, z.core.$strip>, z.ZodObject<{
81
105
  isSidechain: z.ZodBoolean;
82
106
  userType: z.ZodEnum<{
@@ -126,6 +150,53 @@ export declare const SystemEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
126
150
  status: z.ZodNullable<z.ZodEnum<{
127
151
  compacting: "compacting";
128
152
  }>>;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ isSidechain: z.ZodBoolean;
155
+ userType: z.ZodEnum<{
156
+ external: "external";
157
+ }>;
158
+ cwd: z.ZodString;
159
+ sessionId: z.ZodString;
160
+ version: z.ZodString;
161
+ uuid: z.ZodString;
162
+ timestamp: z.ZodString;
163
+ parentUuid: z.ZodNullable<z.ZodString>;
164
+ isMeta: z.ZodOptional<z.ZodBoolean>;
165
+ toolUseResult: z.ZodOptional<z.ZodUnknown>;
166
+ gitBranch: z.ZodOptional<z.ZodString>;
167
+ isCompactSummary: z.ZodOptional<z.ZodBoolean>;
168
+ type: z.ZodLiteral<"system">;
169
+ subtype: z.ZodLiteral<"api_error">;
170
+ level: z.ZodString;
171
+ error: z.ZodOptional<z.ZodUnknown>;
172
+ cause: z.ZodOptional<z.ZodUnknown>;
173
+ retryInMs: z.ZodOptional<z.ZodNumber>;
174
+ retryAttempt: z.ZodOptional<z.ZodNumber>;
175
+ maxRetries: z.ZodOptional<z.ZodNumber>;
176
+ }, z.core.$strip>, z.ZodObject<{
177
+ isSidechain: z.ZodBoolean;
178
+ userType: z.ZodEnum<{
179
+ external: "external";
180
+ }>;
181
+ cwd: z.ZodString;
182
+ sessionId: z.ZodString;
183
+ version: z.ZodString;
184
+ uuid: z.ZodString;
185
+ timestamp: z.ZodString;
186
+ parentUuid: z.ZodNullable<z.ZodString>;
187
+ isMeta: z.ZodOptional<z.ZodBoolean>;
188
+ toolUseResult: z.ZodOptional<z.ZodUnknown>;
189
+ gitBranch: z.ZodOptional<z.ZodString>;
190
+ isCompactSummary: z.ZodOptional<z.ZodBoolean>;
191
+ type: z.ZodLiteral<"system">;
192
+ subtype: z.ZodLiteral<"stop_hook_summary">;
193
+ level: z.ZodString;
194
+ hookCount: z.ZodNumber;
195
+ hookInfos: z.ZodArray<z.ZodUnknown>;
196
+ hookErrors: z.ZodArray<z.ZodUnknown>;
197
+ preventedContinuation: z.ZodBoolean;
198
+ stopReason: z.ZodString;
199
+ hasOutput: z.ZodBoolean;
129
200
  }, z.core.$strip>]>;
130
201
  export type SystemEntry = z.infer<typeof SystemEntrySchema>;
131
202
  export type InitSystemEntry = z.infer<typeof InitSystemEntrySchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"SystemEntrySchema.d.ts","sourceRoot":"","sources":["../../../src/claude-sdk-schema/entry/SystemEntrySchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBzB,CAAC;AASH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAK5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAG5D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"SystemEntrySchema.d.ts","sourceRoot":"","sources":["../../../src/claude-sdk-schema/entry/SystemEntrySchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBzB,CAAC;AAkDH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAQ5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAG5D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -46,10 +46,51 @@ const StatusSystemEntrySchema = BaseEntrySchema.extend({
46
46
  subtype: z.literal("status"),
47
47
  status: z.enum(["compacting"]).nullable(),
48
48
  });
49
+ // Microcompact boundary system entry
50
+ const MicrocompactBoundarySystemEntrySchema = BaseEntrySchema.extend({
51
+ type: z.literal("system"),
52
+ subtype: z.literal("microcompact_boundary"),
53
+ content: z.string(),
54
+ level: z.string(),
55
+ slug: z.string().optional(),
56
+ microcompactMetadata: z
57
+ .object({
58
+ trigger: z.string(),
59
+ preTokens: z.number(),
60
+ })
61
+ .passthrough()
62
+ .optional(),
63
+ });
64
+ // API error system entry
65
+ const ApiErrorSystemEntrySchema = BaseEntrySchema.extend({
66
+ type: z.literal("system"),
67
+ subtype: z.literal("api_error"),
68
+ level: z.string(),
69
+ error: z.unknown().optional(),
70
+ cause: z.unknown().optional(),
71
+ retryInMs: z.number().optional(),
72
+ retryAttempt: z.number().optional(),
73
+ maxRetries: z.number().optional(),
74
+ });
75
+ // Stop hook summary system entry
76
+ const StopHookSummarySystemEntrySchema = BaseEntrySchema.extend({
77
+ type: z.literal("system"),
78
+ subtype: z.literal("stop_hook_summary"),
79
+ level: z.string(),
80
+ hookCount: z.number(),
81
+ hookInfos: z.array(z.unknown()),
82
+ hookErrors: z.array(z.unknown()),
83
+ preventedContinuation: z.boolean(),
84
+ stopReason: z.string(),
85
+ hasOutput: z.boolean(),
86
+ });
49
87
  export const SystemEntrySchema = z.union([
50
88
  RegularSystemEntrySchema,
51
89
  CompactBoundarySystemEntrySchema,
90
+ MicrocompactBoundarySystemEntrySchema,
52
91
  InitSystemEntrySchema,
53
92
  StatusSystemEntrySchema,
93
+ ApiErrorSystemEntrySchema,
94
+ StopHookSummarySystemEntrySchema,
54
95
  ]);
55
96
  //# sourceMappingURL=SystemEntrySchema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SystemEntrySchema.js","sourceRoot":"","sources":["../../../src/claude-sdk-schema/entry/SystemEntrySchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,sCAAsC;AACtC,MAAM,wBAAwB,GAAG,eAAe,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACzB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC,CAAC;AAEH,0DAA0D;AAC1D,MAAM,gCAAgC,GAAG,eAAe,CAAC,MAAM,CAAC;IAC9D,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACzB,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACtC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC/C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z.core.$strip>;
145
145
  requestId: z.ZodOptional<z.ZodString>;
146
146
  isApiErrorMessage: z.ZodOptional<z.ZodBoolean>;
147
+ }, z.core.$strip>, z.ZodObject<{
148
+ isSidechain: z.ZodBoolean;
149
+ userType: z.ZodEnum<{
150
+ external: "external";
151
+ }>;
152
+ cwd: z.ZodString;
153
+ sessionId: z.ZodString;
154
+ version: z.ZodString;
155
+ uuid: z.ZodString;
156
+ timestamp: z.ZodString;
157
+ parentUuid: z.ZodNullable<z.ZodString>;
158
+ isMeta: z.ZodOptional<z.ZodBoolean>;
159
+ toolUseResult: z.ZodOptional<z.ZodUnknown>;
160
+ gitBranch: z.ZodOptional<z.ZodString>;
161
+ isCompactSummary: z.ZodOptional<z.ZodBoolean>;
162
+ type: z.ZodLiteral<"progress">;
163
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
164
+ toolUseID: z.ZodString;
165
+ parentToolUseID: z.ZodString;
166
+ slug: z.ZodOptional<z.ZodString>;
167
+ agentId: z.ZodOptional<z.ZodString>;
147
168
  }, z.core.$strip>, z.ZodObject<{
148
169
  type: z.ZodLiteral<"summary">;
149
170
  summary: z.ZodString;
@@ -196,6 +217,30 @@ export declare const SessionEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
196
217
  trigger: z.ZodString;
197
218
  preTokens: z.ZodNumber;
198
219
  }, z.core.$strip>>;
220
+ }, z.core.$strip>, z.ZodObject<{
221
+ isSidechain: z.ZodBoolean;
222
+ userType: z.ZodEnum<{
223
+ external: "external";
224
+ }>;
225
+ cwd: z.ZodString;
226
+ sessionId: z.ZodString;
227
+ version: z.ZodString;
228
+ uuid: z.ZodString;
229
+ timestamp: z.ZodString;
230
+ parentUuid: z.ZodNullable<z.ZodString>;
231
+ isMeta: z.ZodOptional<z.ZodBoolean>;
232
+ toolUseResult: z.ZodOptional<z.ZodUnknown>;
233
+ gitBranch: z.ZodOptional<z.ZodString>;
234
+ isCompactSummary: z.ZodOptional<z.ZodBoolean>;
235
+ type: z.ZodLiteral<"system">;
236
+ subtype: z.ZodLiteral<"microcompact_boundary">;
237
+ content: z.ZodString;
238
+ level: z.ZodString;
239
+ slug: z.ZodOptional<z.ZodString>;
240
+ microcompactMetadata: z.ZodOptional<z.ZodObject<{
241
+ trigger: z.ZodString;
242
+ preTokens: z.ZodNumber;
243
+ }, z.core.$loose>>;
199
244
  }, z.core.$strip>, z.ZodObject<{
200
245
  isSidechain: z.ZodBoolean;
201
246
  userType: z.ZodEnum<{
@@ -245,6 +290,53 @@ export declare const SessionEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
245
290
  status: z.ZodNullable<z.ZodEnum<{
246
291
  compacting: "compacting";
247
292
  }>>;
293
+ }, z.core.$strip>, z.ZodObject<{
294
+ isSidechain: z.ZodBoolean;
295
+ userType: z.ZodEnum<{
296
+ external: "external";
297
+ }>;
298
+ cwd: z.ZodString;
299
+ sessionId: z.ZodString;
300
+ version: z.ZodString;
301
+ uuid: z.ZodString;
302
+ timestamp: z.ZodString;
303
+ parentUuid: z.ZodNullable<z.ZodString>;
304
+ isMeta: z.ZodOptional<z.ZodBoolean>;
305
+ toolUseResult: z.ZodOptional<z.ZodUnknown>;
306
+ gitBranch: z.ZodOptional<z.ZodString>;
307
+ isCompactSummary: z.ZodOptional<z.ZodBoolean>;
308
+ type: z.ZodLiteral<"system">;
309
+ subtype: z.ZodLiteral<"api_error">;
310
+ level: z.ZodString;
311
+ error: z.ZodOptional<z.ZodUnknown>;
312
+ cause: z.ZodOptional<z.ZodUnknown>;
313
+ retryInMs: z.ZodOptional<z.ZodNumber>;
314
+ retryAttempt: z.ZodOptional<z.ZodNumber>;
315
+ maxRetries: z.ZodOptional<z.ZodNumber>;
316
+ }, z.core.$strip>, z.ZodObject<{
317
+ isSidechain: z.ZodBoolean;
318
+ userType: z.ZodEnum<{
319
+ external: "external";
320
+ }>;
321
+ cwd: z.ZodString;
322
+ sessionId: z.ZodString;
323
+ version: z.ZodString;
324
+ uuid: z.ZodString;
325
+ timestamp: z.ZodString;
326
+ parentUuid: z.ZodNullable<z.ZodString>;
327
+ isMeta: z.ZodOptional<z.ZodBoolean>;
328
+ toolUseResult: z.ZodOptional<z.ZodUnknown>;
329
+ gitBranch: z.ZodOptional<z.ZodString>;
330
+ isCompactSummary: z.ZodOptional<z.ZodBoolean>;
331
+ type: z.ZodLiteral<"system">;
332
+ subtype: z.ZodLiteral<"stop_hook_summary">;
333
+ level: z.ZodString;
334
+ hookCount: z.ZodNumber;
335
+ hookInfos: z.ZodArray<z.ZodUnknown>;
336
+ hookErrors: z.ZodArray<z.ZodUnknown>;
337
+ preventedContinuation: z.ZodBoolean;
338
+ stopReason: z.ZodString;
339
+ hasOutput: z.ZodBoolean;
248
340
  }, z.core.$strip>]>, z.ZodObject<{
249
341
  type: z.ZodLiteral<"file-history-snapshot">;
250
342
  messageId: z.ZodString;
@@ -464,6 +556,27 @@ export declare const ClaudeSessionEntrySchema: z.ZodUnion<readonly [z.ZodObject<
464
556
  }, z.core.$strip>;
465
557
  requestId: z.ZodOptional<z.ZodString>;
466
558
  isApiErrorMessage: z.ZodOptional<z.ZodBoolean>;
559
+ }, z.core.$strip>, z.ZodObject<{
560
+ isSidechain: z.ZodBoolean;
561
+ userType: z.ZodEnum<{
562
+ external: "external";
563
+ }>;
564
+ cwd: z.ZodString;
565
+ sessionId: z.ZodString;
566
+ version: z.ZodString;
567
+ uuid: z.ZodString;
568
+ timestamp: z.ZodString;
569
+ parentUuid: z.ZodNullable<z.ZodString>;
570
+ isMeta: z.ZodOptional<z.ZodBoolean>;
571
+ toolUseResult: z.ZodOptional<z.ZodUnknown>;
572
+ gitBranch: z.ZodOptional<z.ZodString>;
573
+ isCompactSummary: z.ZodOptional<z.ZodBoolean>;
574
+ type: z.ZodLiteral<"progress">;
575
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
576
+ toolUseID: z.ZodString;
577
+ parentToolUseID: z.ZodString;
578
+ slug: z.ZodOptional<z.ZodString>;
579
+ agentId: z.ZodOptional<z.ZodString>;
467
580
  }, z.core.$strip>, z.ZodObject<{
468
581
  type: z.ZodLiteral<"summary">;
469
582
  summary: z.ZodString;
@@ -516,6 +629,30 @@ export declare const ClaudeSessionEntrySchema: z.ZodUnion<readonly [z.ZodObject<
516
629
  trigger: z.ZodString;
517
630
  preTokens: z.ZodNumber;
518
631
  }, z.core.$strip>>;
632
+ }, z.core.$strip>, z.ZodObject<{
633
+ isSidechain: z.ZodBoolean;
634
+ userType: z.ZodEnum<{
635
+ external: "external";
636
+ }>;
637
+ cwd: z.ZodString;
638
+ sessionId: z.ZodString;
639
+ version: z.ZodString;
640
+ uuid: z.ZodString;
641
+ timestamp: z.ZodString;
642
+ parentUuid: z.ZodNullable<z.ZodString>;
643
+ isMeta: z.ZodOptional<z.ZodBoolean>;
644
+ toolUseResult: z.ZodOptional<z.ZodUnknown>;
645
+ gitBranch: z.ZodOptional<z.ZodString>;
646
+ isCompactSummary: z.ZodOptional<z.ZodBoolean>;
647
+ type: z.ZodLiteral<"system">;
648
+ subtype: z.ZodLiteral<"microcompact_boundary">;
649
+ content: z.ZodString;
650
+ level: z.ZodString;
651
+ slug: z.ZodOptional<z.ZodString>;
652
+ microcompactMetadata: z.ZodOptional<z.ZodObject<{
653
+ trigger: z.ZodString;
654
+ preTokens: z.ZodNumber;
655
+ }, z.core.$loose>>;
519
656
  }, z.core.$strip>, z.ZodObject<{
520
657
  isSidechain: z.ZodBoolean;
521
658
  userType: z.ZodEnum<{
@@ -565,6 +702,53 @@ export declare const ClaudeSessionEntrySchema: z.ZodUnion<readonly [z.ZodObject<
565
702
  status: z.ZodNullable<z.ZodEnum<{
566
703
  compacting: "compacting";
567
704
  }>>;
705
+ }, z.core.$strip>, z.ZodObject<{
706
+ isSidechain: z.ZodBoolean;
707
+ userType: z.ZodEnum<{
708
+ external: "external";
709
+ }>;
710
+ cwd: z.ZodString;
711
+ sessionId: z.ZodString;
712
+ version: z.ZodString;
713
+ uuid: z.ZodString;
714
+ timestamp: z.ZodString;
715
+ parentUuid: z.ZodNullable<z.ZodString>;
716
+ isMeta: z.ZodOptional<z.ZodBoolean>;
717
+ toolUseResult: z.ZodOptional<z.ZodUnknown>;
718
+ gitBranch: z.ZodOptional<z.ZodString>;
719
+ isCompactSummary: z.ZodOptional<z.ZodBoolean>;
720
+ type: z.ZodLiteral<"system">;
721
+ subtype: z.ZodLiteral<"api_error">;
722
+ level: z.ZodString;
723
+ error: z.ZodOptional<z.ZodUnknown>;
724
+ cause: z.ZodOptional<z.ZodUnknown>;
725
+ retryInMs: z.ZodOptional<z.ZodNumber>;
726
+ retryAttempt: z.ZodOptional<z.ZodNumber>;
727
+ maxRetries: z.ZodOptional<z.ZodNumber>;
728
+ }, z.core.$strip>, z.ZodObject<{
729
+ isSidechain: z.ZodBoolean;
730
+ userType: z.ZodEnum<{
731
+ external: "external";
732
+ }>;
733
+ cwd: z.ZodString;
734
+ sessionId: z.ZodString;
735
+ version: z.ZodString;
736
+ uuid: z.ZodString;
737
+ timestamp: z.ZodString;
738
+ parentUuid: z.ZodNullable<z.ZodString>;
739
+ isMeta: z.ZodOptional<z.ZodBoolean>;
740
+ toolUseResult: z.ZodOptional<z.ZodUnknown>;
741
+ gitBranch: z.ZodOptional<z.ZodString>;
742
+ isCompactSummary: z.ZodOptional<z.ZodBoolean>;
743
+ type: z.ZodLiteral<"system">;
744
+ subtype: z.ZodLiteral<"stop_hook_summary">;
745
+ level: z.ZodString;
746
+ hookCount: z.ZodNumber;
747
+ hookInfos: z.ZodArray<z.ZodUnknown>;
748
+ hookErrors: z.ZodArray<z.ZodUnknown>;
749
+ preventedContinuation: z.ZodBoolean;
750
+ stopReason: z.ZodString;
751
+ hasOutput: z.ZodBoolean;
568
752
  }, z.core.$strip>]>, z.ZodObject<{
569
753
  type: z.ZodLiteral<"file-history-snapshot">;
570
754
  messageId: z.ZodString;
@@ -644,6 +828,7 @@ export * from "./entry/AssistantEntrySchema.js";
644
828
  export * from "./entry/BaseEntrySchema.js";
645
829
  export * from "./entry/FileHistorySnapshotEntrySchema.js";
646
830
  export * from "./entry/normalizeQueueOperationContent.js";
831
+ export * from "./entry/ProgressEntrySchema.js";
647
832
  export * from "./entry/QueueOperationEntrySchema.js";
648
833
  export * from "./entry/SummaryEntrySchema.js";
649
834
  export * from "./entry/SystemEntrySchema.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/claude-sdk-schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,WAAW,EAEjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,4BAA4B,CAAC;AAE7E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAO7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,cAAc,GAAG,WAAW,CAAC;AAGtE,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAC9C,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;AAC3D,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAGlD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAE/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAElD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,cAAc,aAAa,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { AssistantEntrySchema, } from "./entry/AssistantEntrySchema.js";
3
3
  import { FileHistorySnapshotEntrySchema } from "./entry/FileHistorySnapshotEntrySchema.js";
4
+ import { ProgressEntrySchema, } from "./entry/ProgressEntrySchema.js";
4
5
  import { QueueOperationEntrySchema } from "./entry/QueueOperationEntrySchema.js";
5
6
  import { SummaryEntrySchema } from "./entry/SummaryEntrySchema.js";
6
7
  import { SystemEntrySchema, } from "./entry/SystemEntrySchema.js";
@@ -8,6 +9,7 @@ import { UserEntrySchema } from "./entry/UserEntrySchema.js";
8
9
  export const SessionEntrySchema = z.union([
9
10
  UserEntrySchema,
10
11
  AssistantEntrySchema,
12
+ ProgressEntrySchema,
11
13
  SummaryEntrySchema,
12
14
  SystemEntrySchema,
13
15
  FileHistorySnapshotEntrySchema,
@@ -19,6 +21,7 @@ export * from "./entry/AssistantEntrySchema.js";
19
21
  export * from "./entry/BaseEntrySchema.js";
20
22
  export * from "./entry/FileHistorySnapshotEntrySchema.js";
21
23
  export * from "./entry/normalizeQueueOperationContent.js";
24
+ export * from "./entry/ProgressEntrySchema.js";
22
25
  export * from "./entry/QueueOperationEntrySchema.js";
23
26
  export * from "./entry/SummaryEntrySchema.js";
24
27
  export * from "./entry/SystemEntrySchema.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/claude-sdk-schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAEL,oBAAoB,GACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAEL,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAkB,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC;IACxC,eAAe;IACf,oBAAoB;IACpB,kBAAkB;IAClB,iBAAiB;IACjB,8BAA8B;IAC9B,yBAAyB;CAC1B,CAAC,CAAC;AAOH,MAAM,CAAC,MAAM,wBAAwB,GAAG,kBAAkB,CAAC;AAG3D,kDAAkD;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,qCAAqC,CAA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