@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.
- package/README.md +61 -2
- package/out/agent/command.d.ts +75 -4
- package/out/agent/command.js +221 -26
- package/out/agent/render.d.ts +56 -8
- package/out/agent/render.js +441 -39
- package/out/agent/session.d.ts +156 -2
- package/out/agent/session.js +795 -154
- package/out/commands/agents.d.ts +2 -0
- package/out/commands/agents.js +79 -0
- package/out/commands/ask.d.ts +1 -1
- package/out/commands/ask.js +88 -12
- package/out/commands/commands-thin.js +79 -17
- package/out/commands/config.d.ts +1 -0
- package/out/commands/config.js +138 -0
- package/out/commands/cost.d.ts +1 -0
- package/out/commands/cost.js +167 -0
- package/out/commands/hooks.d.ts +1 -0
- package/out/commands/hooks.js +83 -0
- package/out/commands/install.d.ts +44 -1
- package/out/commands/install.js +198 -4
- package/out/commands/instructions.d.ts +1 -0
- package/out/commands/instructions.js +113 -0
- package/out/commands/integrations.d.ts +3 -0
- package/out/commands/integrations.js +215 -0
- package/out/commands/jobs.d.ts +5 -0
- package/out/commands/jobs.js +157 -0
- package/out/commands/login.js +249 -43
- package/out/commands/memory.d.ts +3 -0
- package/out/commands/memory.js +113 -0
- package/out/commands/permissions.d.ts +1 -0
- package/out/commands/permissions.js +94 -0
- package/out/commands/plugins.d.ts +4 -0
- package/out/commands/plugins.js +192 -0
- package/out/commands/privacy.d.ts +1 -0
- package/out/commands/privacy.js +57 -0
- package/out/commands/providerKey.d.ts +32 -0
- package/out/commands/providerKey.js +108 -0
- package/out/commands/repl.d.ts +12 -1
- package/out/commands/repl.js +1649 -122
- package/out/commands/report.d.ts +39 -0
- package/out/commands/report.js +115 -0
- package/out/commands/review.d.ts +5 -0
- package/out/commands/review.js +223 -0
- package/out/commands/sessions.d.ts +23 -0
- package/out/commands/sessions.js +115 -0
- package/out/commands/settings.d.ts +3 -1
- package/out/commands/settings.js +18 -16
- package/out/commands/skills.d.ts +21 -0
- package/out/commands/skills.js +207 -0
- package/out/commands/unattended.d.ts +7 -0
- package/out/commands/unattended.js +351 -0
- package/out/commands/update.d.ts +1 -0
- package/out/commands/update.js +123 -0
- package/out/commands/welcome.d.ts +25 -1
- package/out/commands/welcome.js +71 -35
- package/out/commands/worktrees.d.ts +5 -0
- package/out/commands/worktrees.js +186 -0
- package/out/executor/browser.d.ts +14 -0
- package/out/executor/browser.js +270 -0
- package/out/executor/diagnostics.d.ts +2 -0
- package/out/executor/diagnostics.js +181 -0
- package/out/executor/files.js +270 -40
- package/out/executor/git.js +42 -29
- package/out/executor/hooks.d.ts +42 -58
- package/out/executor/hooks.js +89 -182
- package/out/executor/index.d.ts +21 -5
- package/out/executor/index.js +160 -14
- package/out/executor/paths.d.ts +6 -1
- package/out/executor/paths.js +34 -6
- package/out/executor/sandbox.d.ts +40 -0
- package/out/executor/sandbox.js +299 -0
- package/out/executor/shell.d.ts +49 -4
- package/out/executor/shell.js +302 -56
- package/out/executor/toolservers.d.ts +20 -0
- package/out/executor/toolservers.js +189 -0
- package/out/executor/worktree.d.ts +9 -0
- package/out/executor/worktree.js +119 -0
- package/out/graph/read-python.js +2 -1
- package/out/lib/attach.d.ts +56 -12
- package/out/lib/attach.js +230 -63
- package/out/lib/clipboard.d.ts +23 -0
- package/out/lib/clipboard.js +182 -0
- package/out/lib/commandlist.d.ts +20 -0
- package/out/lib/commandlist.js +58 -0
- package/out/lib/decision.d.ts +22 -0
- package/out/lib/decision.js +50 -0
- package/out/lib/fingerprint.d.ts +25 -0
- package/out/lib/fingerprint.js +58 -0
- package/out/lib/gateway.d.ts +190 -2
- package/out/lib/gateway.js +59 -4
- package/out/lib/history.d.ts +24 -0
- package/out/lib/history.js +137 -0
- package/out/lib/ide.d.ts +19 -0
- package/out/lib/ide.js +131 -0
- package/out/lib/keyboard.d.ts +98 -0
- package/out/lib/keyboard.js +390 -0
- package/out/lib/lastlogin.d.ts +14 -0
- package/out/lib/lastlogin.js +105 -0
- package/out/lib/machine.d.ts +21 -0
- package/out/lib/machine.js +91 -0
- package/out/lib/notify.d.ts +4 -0
- package/out/lib/notify.js +52 -0
- package/out/lib/output.d.ts +48 -0
- package/out/lib/output.js +108 -0
- package/out/lib/picker.d.ts +1 -0
- package/out/lib/picker.js +158 -0
- package/out/lib/project-ops.d.ts +19 -0
- package/out/lib/project-ops.js +146 -0
- package/out/lib/project.d.ts +28 -0
- package/out/lib/project.js +114 -0
- package/out/lib/prompt.d.ts +3 -0
- package/out/lib/prompt.js +36 -2
- package/out/lib/queue.d.ts +13 -0
- package/out/lib/queue.js +116 -0
- package/out/lib/readiness.d.ts +19 -0
- package/out/lib/readiness.js +170 -1
- package/out/lib/self.d.ts +23 -0
- package/out/lib/self.js +124 -0
- package/out/lib/sessions.d.ts +19 -0
- package/out/lib/sessions.js +221 -0
- package/out/lib/startcache.d.ts +13 -0
- package/out/lib/startcache.js +78 -0
- package/out/lib/stdin.d.ts +32 -0
- package/out/lib/stdin.js +117 -0
- package/out/lib/store.d.ts +40 -0
- package/out/lib/store.js +138 -0
- package/out/lib/sync.d.ts +18 -0
- package/out/lib/sync.js +81 -0
- package/out/lib/ui.d.ts +10 -4
- package/out/lib/ui.js +65 -25
- package/out/lib/voice.d.ts +36 -0
- package/out/lib/voice.js +160 -1
- package/out/native/dictate +0 -0
- package/out/postinstall.js +42 -17
- package/out/providers/anthropic.d.ts +22 -0
- package/out/providers/anthropic.js +80 -0
- package/out/providers/index.d.ts +8 -0
- package/out/providers/index.js +83 -0
- package/out/providers/openai.d.ts +11 -0
- package/out/providers/openai.js +57 -0
- package/out/thin.js +595 -33
- package/package.json +11 -50
package/out/agent/render.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
*
|
|
135
|
+
* An answer, laid out for reading in a terminal (manual 6.17).
|
|
91
136
|
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
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;
|