@nightloom/isy 1.0.0

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 (223) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +69 -0
  3. package/dist/agents/claude.d.ts +6 -0
  4. package/dist/agents/claude.js +66 -0
  5. package/dist/agents/claude.js.map +1 -0
  6. package/dist/agents/codex-records.d.ts +34 -0
  7. package/dist/agents/codex-records.js +492 -0
  8. package/dist/agents/codex-records.js.map +1 -0
  9. package/dist/agents/codex.d.ts +5 -0
  10. package/dist/agents/codex.js +205 -0
  11. package/dist/agents/codex.js.map +1 -0
  12. package/dist/agents/index.d.ts +25 -0
  13. package/dist/agents/index.js +50 -0
  14. package/dist/agents/index.js.map +1 -0
  15. package/dist/agents/kimi-records.d.ts +24 -0
  16. package/dist/agents/kimi-records.js +252 -0
  17. package/dist/agents/kimi-records.js.map +1 -0
  18. package/dist/agents/kimi-wire.d.ts +8 -0
  19. package/dist/agents/kimi-wire.js +158 -0
  20. package/dist/agents/kimi-wire.js.map +1 -0
  21. package/dist/agents/kimi.d.ts +6 -0
  22. package/dist/agents/kimi.js +332 -0
  23. package/dist/agents/kimi.js.map +1 -0
  24. package/dist/agents/types.d.ts +83 -0
  25. package/dist/agents/types.js +2 -0
  26. package/dist/agents/types.js.map +1 -0
  27. package/dist/alert.d.ts +24 -0
  28. package/dist/alert.js +68 -0
  29. package/dist/alert.js.map +1 -0
  30. package/dist/api.d.ts +103 -0
  31. package/dist/api.js +171 -0
  32. package/dist/api.js.map +1 -0
  33. package/dist/commands/analyze.d.ts +61 -0
  34. package/dist/commands/analyze.js +198 -0
  35. package/dist/commands/analyze.js.map +1 -0
  36. package/dist/commands/check.d.ts +55 -0
  37. package/dist/commands/check.js +180 -0
  38. package/dist/commands/check.js.map +1 -0
  39. package/dist/commands/commit.d.ts +26 -0
  40. package/dist/commands/commit.js +130 -0
  41. package/dist/commands/commit.js.map +1 -0
  42. package/dist/commands/health.d.ts +47 -0
  43. package/dist/commands/health.js +366 -0
  44. package/dist/commands/health.js.map +1 -0
  45. package/dist/commands/init.d.ts +3 -0
  46. package/dist/commands/init.js +173 -0
  47. package/dist/commands/init.js.map +1 -0
  48. package/dist/commands/logout.d.ts +1 -0
  49. package/dist/commands/logout.js +30 -0
  50. package/dist/commands/logout.js.map +1 -0
  51. package/dist/commands/notes.d.ts +11 -0
  52. package/dist/commands/notes.js +49 -0
  53. package/dist/commands/notes.js.map +1 -0
  54. package/dist/commands/scan.d.ts +47 -0
  55. package/dist/commands/scan.js +199 -0
  56. package/dist/commands/scan.js.map +1 -0
  57. package/dist/commands/settings.d.ts +15 -0
  58. package/dist/commands/settings.js +94 -0
  59. package/dist/commands/settings.js.map +1 -0
  60. package/dist/commands/status.d.ts +61 -0
  61. package/dist/commands/status.js +151 -0
  62. package/dist/commands/status.js.map +1 -0
  63. package/dist/commands/upload.d.ts +42 -0
  64. package/dist/commands/upload.js +429 -0
  65. package/dist/commands/upload.js.map +1 -0
  66. package/dist/config.d.ts +4 -0
  67. package/dist/config.js +32 -0
  68. package/dist/config.js.map +1 -0
  69. package/dist/detectors.d.ts +43 -0
  70. package/dist/detectors.js +1026 -0
  71. package/dist/detectors.js.map +1 -0
  72. package/dist/git.d.ts +22 -0
  73. package/dist/git.js +68 -0
  74. package/dist/git.js.map +1 -0
  75. package/dist/githook.d.ts +71 -0
  76. package/dist/githook.js +238 -0
  77. package/dist/githook.js.map +1 -0
  78. package/dist/hook.d.ts +39 -0
  79. package/dist/hook.js +173 -0
  80. package/dist/hook.js.map +1 -0
  81. package/dist/index.d.ts +2 -0
  82. package/dist/index.js +205 -0
  83. package/dist/index.js.map +1 -0
  84. package/dist/log.d.ts +19 -0
  85. package/dist/log.js +97 -0
  86. package/dist/log.js.map +1 -0
  87. package/dist/mask-paths.d.ts +75 -0
  88. package/dist/mask-paths.js +364 -0
  89. package/dist/mask-paths.js.map +1 -0
  90. package/dist/pairing.d.ts +60 -0
  91. package/dist/pairing.js +137 -0
  92. package/dist/pairing.js.map +1 -0
  93. package/dist/parser.d.ts +48 -0
  94. package/dist/parser.js +516 -0
  95. package/dist/parser.js.map +1 -0
  96. package/dist/paths.d.ts +41 -0
  97. package/dist/paths.js +181 -0
  98. package/dist/paths.js.map +1 -0
  99. package/dist/plan.d.ts +25 -0
  100. package/dist/plan.js +39 -0
  101. package/dist/plan.js.map +1 -0
  102. package/dist/queue.d.ts +26 -0
  103. package/dist/queue.js +120 -0
  104. package/dist/queue.js.map +1 -0
  105. package/dist/redact.d.ts +29 -0
  106. package/dist/redact.js +254 -0
  107. package/dist/redact.js.map +1 -0
  108. package/dist/spawn.d.ts +13 -0
  109. package/dist/spawn.js +32 -0
  110. package/dist/spawn.js.map +1 -0
  111. package/dist/stage0.d.ts +20 -0
  112. package/dist/stage0.js +90 -0
  113. package/dist/stage0.js.map +1 -0
  114. package/dist/state.d.ts +84 -0
  115. package/dist/state.js +150 -0
  116. package/dist/state.js.map +1 -0
  117. package/dist/test/analyze.test.d.ts +1 -0
  118. package/dist/test/analyze.test.js +408 -0
  119. package/dist/test/analyze.test.js.map +1 -0
  120. package/dist/test/check.test.d.ts +1 -0
  121. package/dist/test/check.test.js +193 -0
  122. package/dist/test/check.test.js.map +1 -0
  123. package/dist/test/cli.test.d.ts +1 -0
  124. package/dist/test/cli.test.js +132 -0
  125. package/dist/test/cli.test.js.map +1 -0
  126. package/dist/test/codex.test.d.ts +1 -0
  127. package/dist/test/codex.test.js +585 -0
  128. package/dist/test/codex.test.js.map +1 -0
  129. package/dist/test/commit.test.d.ts +1 -0
  130. package/dist/test/commit.test.js +430 -0
  131. package/dist/test/commit.test.js.map +1 -0
  132. package/dist/test/git.test.d.ts +1 -0
  133. package/dist/test/git.test.js +75 -0
  134. package/dist/test/git.test.js.map +1 -0
  135. package/dist/test/health.test.d.ts +1 -0
  136. package/dist/test/health.test.js +156 -0
  137. package/dist/test/health.test.js.map +1 -0
  138. package/dist/test/hook.test.d.ts +1 -0
  139. package/dist/test/hook.test.js +144 -0
  140. package/dist/test/hook.test.js.map +1 -0
  141. package/dist/test/kimi.test.d.ts +1 -0
  142. package/dist/test/kimi.test.js +349 -0
  143. package/dist/test/kimi.test.js.map +1 -0
  144. package/dist/test/mask-paths.test.d.ts +1 -0
  145. package/dist/test/mask-paths.test.js +230 -0
  146. package/dist/test/mask-paths.test.js.map +1 -0
  147. package/dist/test/notes.test.d.ts +1 -0
  148. package/dist/test/notes.test.js +41 -0
  149. package/dist/test/notes.test.js.map +1 -0
  150. package/dist/test/pairing.test.d.ts +1 -0
  151. package/dist/test/pairing.test.js +138 -0
  152. package/dist/test/pairing.test.js.map +1 -0
  153. package/dist/test/parser.test.d.ts +1 -0
  154. package/dist/test/parser.test.js +312 -0
  155. package/dist/test/parser.test.js.map +1 -0
  156. package/dist/test/plan.test.d.ts +1 -0
  157. package/dist/test/plan.test.js +34 -0
  158. package/dist/test/plan.test.js.map +1 -0
  159. package/dist/test/redact.test.d.ts +1 -0
  160. package/dist/test/redact.test.js +303 -0
  161. package/dist/test/redact.test.js.map +1 -0
  162. package/dist/test/settings.test.d.ts +1 -0
  163. package/dist/test/settings.test.js +32 -0
  164. package/dist/test/settings.test.js.map +1 -0
  165. package/dist/test/stage0.test.d.ts +1 -0
  166. package/dist/test/stage0.test.js +607 -0
  167. package/dist/test/stage0.test.js.map +1 -0
  168. package/dist/test/sweep.test.d.ts +1 -0
  169. package/dist/test/sweep.test.js +298 -0
  170. package/dist/test/sweep.test.js.map +1 -0
  171. package/dist/test/update.test.d.ts +1 -0
  172. package/dist/test/update.test.js +26 -0
  173. package/dist/test/update.test.js.map +1 -0
  174. package/dist/test/upload.test.d.ts +1 -0
  175. package/dist/test/upload.test.js +331 -0
  176. package/dist/test/upload.test.js.map +1 -0
  177. package/dist/types.d.ts +142 -0
  178. package/dist/types.js +2 -0
  179. package/dist/types.js.map +1 -0
  180. package/dist/update.d.ts +17 -0
  181. package/dist/update.js +46 -0
  182. package/dist/update.js.map +1 -0
  183. package/package.json +60 -0
  184. package/src/agents/claude.ts +89 -0
  185. package/src/agents/codex-records.ts +533 -0
  186. package/src/agents/codex.ts +238 -0
  187. package/src/agents/index.ts +58 -0
  188. package/src/agents/kimi-records.ts +274 -0
  189. package/src/agents/kimi-wire.ts +179 -0
  190. package/src/agents/kimi.ts +390 -0
  191. package/src/agents/types.ts +92 -0
  192. package/src/alert.ts +68 -0
  193. package/src/api.ts +269 -0
  194. package/src/commands/analyze.ts +308 -0
  195. package/src/commands/check.ts +239 -0
  196. package/src/commands/commit.ts +179 -0
  197. package/src/commands/health.ts +444 -0
  198. package/src/commands/init.ts +186 -0
  199. package/src/commands/logout.ts +33 -0
  200. package/src/commands/notes.ts +57 -0
  201. package/src/commands/scan.ts +278 -0
  202. package/src/commands/settings.ts +107 -0
  203. package/src/commands/status.ts +236 -0
  204. package/src/commands/upload.ts +524 -0
  205. package/src/config.ts +33 -0
  206. package/src/detectors.ts +1138 -0
  207. package/src/git.ts +86 -0
  208. package/src/githook.ts +269 -0
  209. package/src/hook.ts +237 -0
  210. package/src/index.ts +229 -0
  211. package/src/log.ts +113 -0
  212. package/src/mask-paths.ts +434 -0
  213. package/src/pairing.ts +190 -0
  214. package/src/parser.ts +581 -0
  215. package/src/paths.ts +191 -0
  216. package/src/plan.ts +56 -0
  217. package/src/queue.ts +145 -0
  218. package/src/redact.ts +335 -0
  219. package/src/spawn.ts +33 -0
  220. package/src/stage0.ts +121 -0
  221. package/src/state.ts +208 -0
  222. package/src/types.ts +165 -0
  223. package/src/update.ts +46 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Nightloom
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # isy
2
+
3
+ Command-line client for [ISY](https://iseeyaai.com). It reads the transcript of a
4
+ coding session — Claude Code, Codex CLI or Kimi CLI — and uploads it, so the
5
+ review on your pull request can be about how the work was done and not only
6
+ about the diff that came out of it: a fix that was never run, an assumption
7
+ nobody checked, a file edited from stale context.
8
+
9
+ Nothing is posted anywhere until a pull request exists. Sessions are matched to
10
+ one by commit SHA, and the result is a single comment on that pull request.
11
+
12
+ ## Install
13
+
14
+ ```sh
15
+ npm install -g @nightloom/isy
16
+ isy init
17
+ ```
18
+
19
+ `isy init` opens the browser, takes a key from it and writes it to
20
+ `~/.isy/config.json`. It also installs the session hooks for every agent CLI it
21
+ finds on the machine, so from there on nothing has to be run by hand.
22
+
23
+ ## Commands
24
+
25
+ | Command | What it does |
26
+ | --- | --- |
27
+ | `isy init` | Pair with the server, install hooks |
28
+ | `isy status` | Account, plan, what is installed on this machine |
29
+ | `isy check` | Hook health, parked alerts, pending uploads |
30
+ | `isy upload` | Upload the current session |
31
+ | `isy sweep` | Upload every session that grew since last time |
32
+ | `isy notes` | Print this branch's findings as prompts for a coding agent |
33
+ | `isy analyze <dir>` | Run the local detectors over transcripts, upload nothing |
34
+ | `isy settings` | Read or write the analysis settings on your account |
35
+ | `isy health --scan` | Where this machine keeps agent sessions |
36
+ | `isy logout` | Revoke the key on the server and forget it locally |
37
+
38
+ `isy analyze` is the whole first stage of the pipeline and it runs offline —
39
+ the fastest way to see what this thing looks at before giving it anything.
40
+
41
+ ## What leaves the machine
42
+
43
+ The transcript of the session: prompts, tool calls, results, timings. Before it
44
+ is sent, the client rewrites it:
45
+
46
+ - **Secrets are redacted** — tokens, API keys, connection strings, private keys
47
+ and anything matching the patterns you add in `extraRedactPatterns`.
48
+ - **Absolute paths are rewritten, not blanked** — a file under the repository
49
+ becomes `src/a.ts`, anything else under your home becomes `~/…`. Your account
50
+ name does not travel with the transcript.
51
+
52
+ The server redacts again on the way in, and every prompt it builds reads from
53
+ the redacted copy. See the [privacy policy](https://iseeyaai.com/privacy) for
54
+ what is stored and for how long.
55
+
56
+ ## Repository configuration
57
+
58
+ A repository can narrow the analysis with `.isy.yml` on the pull request's
59
+ branch — turn categories off, ignore paths, raise thresholds. Per-account
60
+ settings (`isy settings`) narrow it further, never the other way around.
61
+
62
+ ## Requirements
63
+
64
+ Node.js 20 or newer. Git. An account at [iseeyaai.com](https://iseeyaai.com)
65
+ and the GitHub App installed on the repositories you want reviewed.
66
+
67
+ ## License
68
+
69
+ MIT
@@ -0,0 +1,6 @@
1
+ import type { Agent } from "./types.js";
2
+ /**
3
+ * Claude Code. This is a thin front onto the code that already shipped —
4
+ * hook.ts, paths.ts and redact.ts are unchanged and still carry their own tests.
5
+ */
6
+ export declare const claudeAgent: Agent;
@@ -0,0 +1,66 @@
1
+ import { access } from "node:fs/promises";
2
+ import { withParkedAlerts } from "../alert.js";
3
+ import { ISY_HOOKS, installHook, installedHooks, removeHook, settingsLocation } from "../hook.js";
4
+ import { parseTranscriptFile } from "../parser.js";
5
+ import { allClaudeSessions, claudeConfigDir, claudeProjectsDir, findSessions, firstCwd, projectDir, } from "../paths.js";
6
+ import { redactTranscriptFile } from "../redact.js";
7
+ /**
8
+ * Claude Code. This is a thin front onto the code that already shipped —
9
+ * hook.ts, paths.ts and redact.ts are unchanged and still carry their own tests.
10
+ */
11
+ export const claudeAgent = {
12
+ id: "claude",
13
+ label: "Claude Code",
14
+ async present() {
15
+ try {
16
+ await access(claudeConfigDir());
17
+ return true;
18
+ }
19
+ catch {
20
+ return false;
21
+ }
22
+ },
23
+ configLocation() {
24
+ return settingsLocation();
25
+ },
26
+ hooks() {
27
+ return ISY_HOOKS;
28
+ },
29
+ transcriptDir(cwd) {
30
+ return projectDir(cwd);
31
+ },
32
+ transcriptRoot: claudeProjectsDir,
33
+ sessionsIn(cwd) {
34
+ return findSessions(cwd);
35
+ },
36
+ allSessions: allClaudeSessions,
37
+ cwdOf(path) {
38
+ return firstCwd(path);
39
+ },
40
+ parsedSession(path) {
41
+ return parseTranscriptFile(path);
42
+ },
43
+ async transcriptFor(hook, cwd) {
44
+ return hook?.transcript_path ?? (await findSessions(cwd))[0]?.path;
45
+ },
46
+ async redactedLines(path, options) {
47
+ // Streams the file rather than loading it: real transcripts reach tens of MB.
48
+ const { lines } = await redactTranscriptFile(path, {
49
+ extraPatterns: options.extraPatterns,
50
+ cwd: options.cwd,
51
+ });
52
+ return lines;
53
+ },
54
+ hooksInstalled: installedHooks,
55
+ installHooks: installHook,
56
+ removeHooks: removeHook,
57
+ // Claude Code renders `systemMessage` from a hook's stdout for the user. At
58
+ // SessionStart that stdout is also the only route a line parked by unattended
59
+ // work has — a sweep spawned with its output going nowhere, an alert raised
60
+ // where another CLI had no terminal — so the backlog goes out ahead of it.
61
+ async deliver(message, event) {
62
+ const text = event === "SessionStart" ? await withParkedAlerts(message) : message;
63
+ console.log(JSON.stringify({ systemMessage: text }));
64
+ },
65
+ };
66
+ //# sourceMappingURL=claude.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude.js","sourceRoot":"","sources":["../../src/agents/claude.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,UAAU,GACX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAGpD;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAU;IAChC,EAAE,EAAE,QAAQ;IACZ,KAAK,EAAE,aAAa;IAEpB,KAAK,CAAC,OAAO;QACX,IAAI,CAAC;YACH,MAAM,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC;YAChC,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,cAAc;QACZ,OAAO,gBAAgB,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK;QACH,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,aAAa,CAAC,GAAW;QACvB,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAED,cAAc,EAAE,iBAAiB;IAEjC,UAAU,CAAC,GAAW;QACpB,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;IAED,WAAW,EAAE,iBAAiB;IAE9B,KAAK,CAAC,IAAY;QAChB,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,aAAa,CAAC,IAAY;QACxB,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,IAA2B,EAAE,GAAW;QAC1D,OAAO,IAAI,EAAE,eAAe,IAAI,CAAC,MAAM,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC;IACrE,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,IAAY,EACZ,OAA4D;QAE5D,8EAA8E;QAC9E,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,oBAAoB,CAAC,IAAI,EAAE;YACjD,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,GAAG,EAAE,OAAO,CAAC,GAAG;SACjB,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;IAED,cAAc,EAAE,cAAc;IAC9B,YAAY,EAAE,WAAW;IACzB,WAAW,EAAE,UAAU;IAEvB,4EAA4E;IAC5E,8EAA8E;IAC9E,4EAA4E;IAC5E,2EAA2E;IAC3E,KAAK,CAAC,OAAO,CAAC,OAAe,EAAE,KAAc;QAC3C,MAAM,IAAI,GAAG,KAAK,KAAK,cAAc,CAAC,CAAC,CAAC,MAAM,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;QAClF,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACvD,CAAC;CACF,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Codex CLI keeps a session as a `rollout-*.jsonl` event log: one JSON object
3
+ * per line, `{timestamp, type, payload}`. The conversation lives in
4
+ * `type: "response_item"` lines; everything else is bookkeeping.
5
+ *
6
+ * Output is Claude-Code-record-shaped JSONL, because the server re-parses the
7
+ * uploaded transcript with the same parseLines this package exports. One shape
8
+ * downstream, one adapter here.
9
+ *
10
+ * Everything here is deliberately tolerant: an unrecognised shape yields no
11
+ * record rather than a wrong one.
12
+ */
13
+ /** A Codex rollout opens with its session_meta line. */
14
+ export declare function isCodexTranscript(firstLine: string): boolean;
15
+ interface PatchEdit {
16
+ tool: string;
17
+ input: Record<string, unknown>;
18
+ }
19
+ /**
20
+ * One `apply_patch` envelope as Claude-shaped edit tool calls.
21
+ *
22
+ * A patch can touch several files, so this returns one call per file:
23
+ * `MultiEdit` carries every hunk of an updated file as an `edits` array, which
24
+ * is the shape parser.ts already unpacks into per-hunk FileEdits.
25
+ */
26
+ export declare function parseApplyPatch(patch: string): PatchEdit[];
27
+ export interface CodexOptions {
28
+ sessionId?: string;
29
+ cwd?: string;
30
+ version?: string;
31
+ }
32
+ /** Turn one Codex rollout into Claude-shaped transcript records. */
33
+ export declare function toClaudeRecords(rollout: Iterable<string>, options?: CodexOptions): string[];
34
+ export {};