@illuminis/comprism 0.1.3 → 0.1.5

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 (142) hide show
  1. package/README.md +61 -2
  2. package/out/agent/command.d.ts +75 -4
  3. package/out/agent/command.js +221 -26
  4. package/out/agent/render.d.ts +56 -8
  5. package/out/agent/render.js +441 -39
  6. package/out/agent/session.d.ts +156 -2
  7. package/out/agent/session.js +795 -154
  8. package/out/commands/agents.d.ts +2 -0
  9. package/out/commands/agents.js +79 -0
  10. package/out/commands/ask.d.ts +1 -1
  11. package/out/commands/ask.js +88 -12
  12. package/out/commands/commands-thin.js +79 -17
  13. package/out/commands/config.d.ts +1 -0
  14. package/out/commands/config.js +138 -0
  15. package/out/commands/cost.d.ts +1 -0
  16. package/out/commands/cost.js +167 -0
  17. package/out/commands/hooks.d.ts +1 -0
  18. package/out/commands/hooks.js +83 -0
  19. package/out/commands/install.d.ts +44 -1
  20. package/out/commands/install.js +198 -4
  21. package/out/commands/instructions.d.ts +1 -0
  22. package/out/commands/instructions.js +113 -0
  23. package/out/commands/integrations.d.ts +3 -0
  24. package/out/commands/integrations.js +215 -0
  25. package/out/commands/jobs.d.ts +5 -0
  26. package/out/commands/jobs.js +157 -0
  27. package/out/commands/login.js +249 -43
  28. package/out/commands/memory.d.ts +3 -0
  29. package/out/commands/memory.js +113 -0
  30. package/out/commands/permissions.d.ts +1 -0
  31. package/out/commands/permissions.js +94 -0
  32. package/out/commands/plugins.d.ts +4 -0
  33. package/out/commands/plugins.js +192 -0
  34. package/out/commands/privacy.d.ts +1 -0
  35. package/out/commands/privacy.js +57 -0
  36. package/out/commands/providerKey.d.ts +32 -0
  37. package/out/commands/providerKey.js +108 -0
  38. package/out/commands/repl.d.ts +12 -1
  39. package/out/commands/repl.js +1649 -122
  40. package/out/commands/report.d.ts +39 -0
  41. package/out/commands/report.js +115 -0
  42. package/out/commands/review.d.ts +5 -0
  43. package/out/commands/review.js +223 -0
  44. package/out/commands/sessions.d.ts +23 -0
  45. package/out/commands/sessions.js +115 -0
  46. package/out/commands/settings.d.ts +3 -1
  47. package/out/commands/settings.js +18 -16
  48. package/out/commands/skills.d.ts +21 -0
  49. package/out/commands/skills.js +207 -0
  50. package/out/commands/unattended.d.ts +7 -0
  51. package/out/commands/unattended.js +351 -0
  52. package/out/commands/update.d.ts +1 -0
  53. package/out/commands/update.js +123 -0
  54. package/out/commands/welcome.d.ts +25 -1
  55. package/out/commands/welcome.js +71 -35
  56. package/out/commands/worktrees.d.ts +5 -0
  57. package/out/commands/worktrees.js +186 -0
  58. package/out/executor/browser.d.ts +14 -0
  59. package/out/executor/browser.js +270 -0
  60. package/out/executor/diagnostics.d.ts +2 -0
  61. package/out/executor/diagnostics.js +181 -0
  62. package/out/executor/files.js +270 -40
  63. package/out/executor/git.js +42 -29
  64. package/out/executor/hooks.d.ts +42 -58
  65. package/out/executor/hooks.js +89 -182
  66. package/out/executor/index.d.ts +21 -5
  67. package/out/executor/index.js +160 -14
  68. package/out/executor/paths.d.ts +6 -1
  69. package/out/executor/paths.js +34 -6
  70. package/out/executor/sandbox.d.ts +40 -0
  71. package/out/executor/sandbox.js +299 -0
  72. package/out/executor/shell.d.ts +49 -4
  73. package/out/executor/shell.js +302 -56
  74. package/out/executor/toolservers.d.ts +20 -0
  75. package/out/executor/toolservers.js +189 -0
  76. package/out/executor/worktree.d.ts +9 -0
  77. package/out/executor/worktree.js +119 -0
  78. package/out/graph/read-python.js +2 -1
  79. package/out/lib/attach.d.ts +56 -12
  80. package/out/lib/attach.js +230 -63
  81. package/out/lib/clipboard.d.ts +23 -0
  82. package/out/lib/clipboard.js +182 -0
  83. package/out/lib/commandlist.d.ts +20 -0
  84. package/out/lib/commandlist.js +58 -0
  85. package/out/lib/decision.d.ts +22 -0
  86. package/out/lib/decision.js +50 -0
  87. package/out/lib/fingerprint.d.ts +25 -0
  88. package/out/lib/fingerprint.js +58 -0
  89. package/out/lib/gateway.d.ts +190 -2
  90. package/out/lib/gateway.js +59 -4
  91. package/out/lib/history.d.ts +24 -0
  92. package/out/lib/history.js +137 -0
  93. package/out/lib/ide.d.ts +19 -0
  94. package/out/lib/ide.js +131 -0
  95. package/out/lib/keyboard.d.ts +98 -0
  96. package/out/lib/keyboard.js +390 -0
  97. package/out/lib/lastlogin.d.ts +14 -0
  98. package/out/lib/lastlogin.js +105 -0
  99. package/out/lib/machine.d.ts +21 -0
  100. package/out/lib/machine.js +91 -0
  101. package/out/lib/notify.d.ts +4 -0
  102. package/out/lib/notify.js +52 -0
  103. package/out/lib/output.d.ts +48 -0
  104. package/out/lib/output.js +108 -0
  105. package/out/lib/picker.d.ts +1 -0
  106. package/out/lib/picker.js +158 -0
  107. package/out/lib/project-ops.d.ts +19 -0
  108. package/out/lib/project-ops.js +146 -0
  109. package/out/lib/project.d.ts +28 -0
  110. package/out/lib/project.js +114 -0
  111. package/out/lib/prompt.d.ts +3 -0
  112. package/out/lib/prompt.js +36 -2
  113. package/out/lib/queue.d.ts +13 -0
  114. package/out/lib/queue.js +116 -0
  115. package/out/lib/readiness.d.ts +19 -0
  116. package/out/lib/readiness.js +170 -1
  117. package/out/lib/self.d.ts +23 -0
  118. package/out/lib/self.js +124 -0
  119. package/out/lib/sessions.d.ts +19 -0
  120. package/out/lib/sessions.js +221 -0
  121. package/out/lib/startcache.d.ts +13 -0
  122. package/out/lib/startcache.js +78 -0
  123. package/out/lib/stdin.d.ts +32 -0
  124. package/out/lib/stdin.js +117 -0
  125. package/out/lib/store.d.ts +40 -0
  126. package/out/lib/store.js +138 -0
  127. package/out/lib/sync.d.ts +18 -0
  128. package/out/lib/sync.js +81 -0
  129. package/out/lib/ui.d.ts +10 -4
  130. package/out/lib/ui.js +65 -25
  131. package/out/lib/voice.d.ts +36 -0
  132. package/out/lib/voice.js +160 -1
  133. package/out/native/dictate +0 -0
  134. package/out/postinstall.js +42 -17
  135. package/out/providers/anthropic.d.ts +22 -0
  136. package/out/providers/anthropic.js +80 -0
  137. package/out/providers/index.d.ts +8 -0
  138. package/out/providers/index.js +83 -0
  139. package/out/providers/openai.d.ts +11 -0
  140. package/out/providers/openai.js +57 -0
  141. package/out/thin.js +595 -33
  142. package/package.json +11 -50
@@ -26,6 +26,11 @@ export declare const red: (t: string) => string;
26
26
  export declare const green: (t: string) => string;
27
27
  export declare const yellow: (t: string) => string;
28
28
  export declare const gray: (t: string) => string;
29
+ /** The brand's violet, for model names and the receipt's label. */
30
+ export declare const violet: (t: string) => string;
31
+ /** `claude-haiku-4-5` as a person says it, `Claude Haiku 4.5`. Other vendors'
32
+ * ids are shown as they arrive: a wrong guess at a name is worse than the id. */
33
+ export declare function modelName(id: string): string;
29
34
  /** Money, at the precision a person can act on.
30
35
  *
31
36
  * Four decimal places below a cent, because a coding step often costs less
@@ -36,6 +41,8 @@ export declare function duration(ms: number | null | undefined): string;
36
41
  /** One action, as it happens. A word as well as a color, so this still reads
37
42
  * when piped to a file. */
38
43
  export declare function action(name: string, target: string, ok: boolean, ms?: number): string;
44
+ /** A connected tool as people write it, `server.tool` (manual 9.10). */
45
+ export declare function actionName(name: string): string;
39
46
  /** The share of a step's context the provider served from its cache, or null
40
47
  * when it reported no counts. Anthropic counts cached tokens OUTSIDE the input
41
48
  * figure, so the whole context is the three counts added together. */
@@ -44,7 +51,7 @@ export declare function reusePct(tokensIn: number | null | undefined, cacheRead:
44
51
  * provider had already seen. The last figure is the one study 005 found
45
52
  * missing from our receipt: without it nobody could tell a warm step from a
46
53
  * cold one, and every step was cold. */
47
- export declare function step(index: number, model: string, usd: number | null, ms: number | null, reused?: number | null): string;
54
+ export declare function step(index: number, model: string, usd: number | null, ms: number | null, reused?: number | null, reason?: string): string;
48
55
  /** The task list, reprinted whenever it changes.
49
56
  *
50
57
  * Reprinted rather than redrawn in place: what the agent intended at each point
@@ -54,14 +61,40 @@ export declare function todos(items: Array<{
54
61
  content: string;
55
62
  status: string;
56
63
  }>): string;
64
+ /** A question from the agent, or the plan question (manual 4.2, 4.3). The
65
+ * wording is the service's; this only lays it out. */
66
+ export declare function question(q: string, options: string[]): string;
57
67
  /** A change, before it is made.
58
68
  *
59
69
  * Full text for a small edit and a summary for a large one. Pasting four
60
70
  * hundred lines into a terminal is not review, it is a wall somebody presses
61
71
  * through, and an approval people press through protects nobody. */
62
- export declare function diff(name: string, input: Record<string, unknown>): string;
72
+ export declare function diff(name: string, input: Record<string, unknown>, withHead?: boolean): string;
73
+ /** What was stopped when a session ended, one line each (manual 5.13). */
74
+ export declare function stoppedLines(stopped: string[]): string;
75
+ /** The first line of a finished job, as the service wrote it (manual 5.15).
76
+ * Colored by its first word only; the words are the service's. */
77
+ export declare function ending(line: string, detail: string | null | undefined): string;
63
78
  /** How the job ended, in the words a person reads. */
64
79
  export declare function outcome(o: string, detail: string | null | undefined): string;
80
+ /**
81
+ * A link a person can click, where the terminal supports one.
82
+ *
83
+ * Modern terminals understand an escape that carries an address behind a piece
84
+ * of text; older ones print it as ordinary characters, so the address is shown
85
+ * in words there instead. Never a bare escape with no fallback: a receipt whose
86
+ * proof is unreachable is not proof.
87
+ */
88
+ export declare function link(text: string, url: string): string;
89
+ /**
90
+ * A file the agent made, as a link that opens it, with where it lives beneath.
91
+ *
92
+ * The name alone is not enough: somebody who asked from their home folder for a
93
+ * diagram cannot tell which folder "saved diagram.png" means. So the full path
94
+ * is written out underneath in gray, where it can be copied into Finder or a
95
+ * terminal, and the name above it opens the file on a click.
96
+ */
97
+ export declare function savedFile(name: string, fullPath: string, bytes: string): string;
65
98
  /** One model's share of a job, as our server reported it. */
66
99
  export interface ModelShare {
67
100
  model: string | null;
@@ -69,6 +102,18 @@ export interface ModelShare {
69
102
  usd: number | null;
70
103
  unpriced?: number;
71
104
  }
105
+ /** The receipt card, exactly as the server words it for every client. */
106
+ export interface ReceiptCard {
107
+ model: string | null;
108
+ title: string | null;
109
+ vs: string | null;
110
+ amount: string | null;
111
+ saved: boolean;
112
+ /** The label of the link to the whole record. */
113
+ details?: string | null;
114
+ badge: string | null;
115
+ warning: string | null;
116
+ }
72
117
  /**
73
118
  * The receipt under a finished job.
74
119
  *
@@ -85,13 +130,16 @@ export interface ModelShare {
85
130
  * it, quieten it, and turn the address in it into something clickable. That is
86
131
  * formatting, which belongs to the client, and it is the only part that does.
87
132
  */
88
- export declare function receipt(text: string, models?: ModelShare[], testsPassed?: boolean): string;
133
+ export declare function receipt(text: string, models?: ModelShare[], testsPassed?: boolean, card?: ReceiptCard | null): string;
89
134
  /**
90
- * Plain text, from a model that writes markdown.
135
+ * An answer, laid out for reading in a terminal (manual 6.17).
91
136
  *
92
- * A terminal has no bold and no bullet glyphs, so `**like this**` arrives on
93
- * screen as literal asterisks and a heading looks like a typing mistake. The
94
- * emphasis is real, so it is kept as terminal bold rather than thrown away;
95
- * everything that only exists to be rendered by a browser is removed.
137
+ * The approved design (docs/product/design/cli-answer, option B): the whole
138
+ * answer on one left margin behind a violet rail, so where the question ends
139
+ * and the answer begins is never in doubt; words wrapped at a reading width
140
+ * and never split by the window edge; a blank line between every block;
141
+ * headings in the brand violet; code in its own color; wrapped list items
142
+ * continuing under their own text. Piped to a file or another program, the
143
+ * same answer comes out without the rail or the color, as a log wants it.
96
144
  */
97
145
  export declare function plain(text: string): string;