@illuminis/comprism 0.1.7 → 2.4.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.
- package/out/{graph → build/machine/codemap}/read-python.js +2 -2
- package/out/{executor → build/machine/executor}/diagnostics.js +1 -1
- package/out/{executor → build/machine/executor}/hooks.js +1 -1
- package/out/{executor → build/machine/executor}/sandbox.js +1 -1
- package/out/build/machine/line/index.js +339 -0
- package/out/{commands/privacy.js → build/machine/runtime/home.js} +10 -19
- package/out/build/machine/runtime/needs.js +89 -0
- package/out/{lib → build/machine/runtime}/self.js +25 -3
- package/out/build/machine/terminal/jobs.js +67 -0
- package/out/build/machine/terminal/sign-in.js +212 -0
- package/out/build/machine/terminal/steps.js +460 -0
- package/out/build/machine/terminal/voice.js +136 -0
- package/out/build/machine/voice/record.js +286 -0
- package/out/cli-start.js +128 -0
- package/out/machine/line/index.js +339 -0
- package/out/machine/runtime/self.js +22 -0
- package/out/machine/terminal/clipboard.js +182 -0
- package/out/machine/terminal/jobs.js +67 -0
- package/out/machine/terminal/sign-in.js +212 -0
- package/out/machine/terminal/steps.js +460 -0
- package/out/machine/terminal/voice.js +136 -0
- package/out/machine/voice/record.js +79 -1
- package/out/native/dictate +0 -0
- package/out/server.generated.js +6 -0
- package/package.json +8 -40
- package/README.md +0 -343
- package/out/agent/command.d.ts +0 -157
- package/out/agent/command.js +0 -454
- package/out/agent/render.d.ts +0 -169
- package/out/agent/render.js +0 -689
- package/out/agent/session.d.ts +0 -334
- package/out/agent/session.js +0 -1223
- package/out/commands/agents.d.ts +0 -2
- package/out/commands/agents.js +0 -79
- package/out/commands/ask.d.ts +0 -1
- package/out/commands/ask.js +0 -222
- package/out/commands/codemap.d.ts +0 -2
- package/out/commands/codemap.js +0 -151
- package/out/commands/commands-thin.d.ts +0 -39
- package/out/commands/commands-thin.js +0 -244
- package/out/commands/config.d.ts +0 -1
- package/out/commands/config.js +0 -138
- package/out/commands/cost.d.ts +0 -1
- package/out/commands/cost.js +0 -167
- package/out/commands/decisionEngine.d.ts +0 -1
- package/out/commands/decisionEngine.js +0 -66
- package/out/commands/hooks.d.ts +0 -1
- package/out/commands/hooks.js +0 -83
- package/out/commands/install.d.ts +0 -206
- package/out/commands/install.js +0 -738
- package/out/commands/instructions.d.ts +0 -1
- package/out/commands/instructions.js +0 -113
- package/out/commands/integrations.d.ts +0 -3
- package/out/commands/integrations.js +0 -215
- package/out/commands/jobs.d.ts +0 -5
- package/out/commands/jobs.js +0 -157
- package/out/commands/keys.d.ts +0 -55
- package/out/commands/keys.js +0 -344
- package/out/commands/login.d.ts +0 -9
- package/out/commands/login.js +0 -606
- package/out/commands/memory.d.ts +0 -3
- package/out/commands/memory.js +0 -113
- package/out/commands/permissions.d.ts +0 -1
- package/out/commands/permissions.js +0 -94
- package/out/commands/plugins.d.ts +0 -4
- package/out/commands/plugins.js +0 -192
- package/out/commands/privacy.d.ts +0 -1
- package/out/commands/providerKey.d.ts +0 -32
- package/out/commands/providerKey.js +0 -108
- package/out/commands/repl.d.ts +0 -12
- package/out/commands/repl.js +0 -2303
- package/out/commands/report.d.ts +0 -39
- package/out/commands/report.js +0 -115
- package/out/commands/review.d.ts +0 -5
- package/out/commands/review.js +0 -223
- package/out/commands/sessions.d.ts +0 -23
- package/out/commands/sessions.js +0 -115
- package/out/commands/settings.d.ts +0 -23
- package/out/commands/settings.js +0 -153
- package/out/commands/skills.d.ts +0 -21
- package/out/commands/skills.js +0 -207
- package/out/commands/unattended.d.ts +0 -7
- package/out/commands/unattended.js +0 -351
- package/out/commands/update.d.ts +0 -1
- package/out/commands/update.js +0 -123
- package/out/commands/welcome.d.ts +0 -25
- package/out/commands/welcome.js +0 -223
- package/out/commands/worktrees.d.ts +0 -5
- package/out/commands/worktrees.js +0 -186
- package/out/executor/browser.d.ts +0 -14
- package/out/executor/diagnostics.d.ts +0 -2
- package/out/executor/documents.d.ts +0 -40
- package/out/executor/files.d.ts +0 -2
- package/out/executor/git.d.ts +0 -48
- package/out/executor/hooks.d.ts +0 -51
- package/out/executor/index.d.ts +0 -45
- package/out/executor/notebook.d.ts +0 -2
- package/out/executor/paths.d.ts +0 -20
- package/out/executor/sandbox.d.ts +0 -40
- package/out/executor/shell.d.ts +0 -86
- package/out/executor/toolservers.d.ts +0 -20
- package/out/executor/worktree.d.ts +0 -9
- package/out/graph/build.d.ts +0 -45
- package/out/graph/facts.d.ts +0 -47
- package/out/graph/files.d.ts +0 -45
- package/out/graph/read-locales.d.ts +0 -29
- package/out/graph/read-python.d.ts +0 -11
- package/out/graph/read-typescript.d.ts +0 -16
- package/out/graph/sync.d.ts +0 -66
- package/out/graph/sync.js +0 -242
- package/out/lib/attach.d.ts +0 -106
- package/out/lib/attach.js +0 -396
- package/out/lib/clipboard.d.ts +0 -23
- package/out/lib/commandlist.d.ts +0 -20
- package/out/lib/commandlist.js +0 -58
- package/out/lib/config.d.ts +0 -94
- package/out/lib/config.js +0 -197
- package/out/lib/connection.d.ts +0 -73
- package/out/lib/connection.js +0 -188
- package/out/lib/decision.d.ts +0 -22
- package/out/lib/decision.js +0 -50
- package/out/lib/fingerprint.d.ts +0 -25
- package/out/lib/fingerprint.js +0 -58
- package/out/lib/gateway.d.ts +0 -427
- package/out/lib/gateway.js +0 -226
- package/out/lib/history.d.ts +0 -24
- package/out/lib/history.js +0 -137
- package/out/lib/ide.d.ts +0 -19
- package/out/lib/ide.js +0 -131
- package/out/lib/keyboard.d.ts +0 -98
- package/out/lib/keyboard.js +0 -390
- package/out/lib/lastlogin.d.ts +0 -14
- package/out/lib/lastlogin.js +0 -105
- package/out/lib/machine.d.ts +0 -21
- package/out/lib/machine.js +0 -91
- package/out/lib/notify.d.ts +0 -4
- package/out/lib/notify.js +0 -52
- package/out/lib/output.d.ts +0 -48
- package/out/lib/output.js +0 -108
- package/out/lib/picker.d.ts +0 -1
- package/out/lib/picker.js +0 -158
- package/out/lib/project-ops.d.ts +0 -19
- package/out/lib/project-ops.js +0 -146
- package/out/lib/project.d.ts +0 -28
- package/out/lib/prompt.d.ts +0 -37
- package/out/lib/prompt.js +0 -142
- package/out/lib/queue.d.ts +0 -13
- package/out/lib/queue.js +0 -116
- package/out/lib/readiness.d.ts +0 -22
- package/out/lib/readiness.js +0 -207
- package/out/lib/self.d.ts +0 -23
- package/out/lib/servicecommand.d.ts +0 -14
- package/out/lib/servicecommand.js +0 -74
- package/out/lib/sessions.d.ts +0 -19
- package/out/lib/sessions.js +0 -221
- package/out/lib/startcache.d.ts +0 -13
- package/out/lib/startcache.js +0 -78
- package/out/lib/stdin.d.ts +0 -32
- package/out/lib/stdin.js +0 -117
- package/out/lib/store.d.ts +0 -40
- package/out/lib/store.js +0 -138
- package/out/lib/sync.d.ts +0 -18
- package/out/lib/sync.js +0 -81
- package/out/lib/types.d.ts +0 -417
- package/out/lib/types.js +0 -21
- package/out/lib/ui.d.ts +0 -123
- package/out/lib/ui.js +0 -299
- package/out/lib/version.d.ts +0 -23
- package/out/lib/version.js +0 -46
- package/out/lib/voice.d.ts +0 -49
- package/out/lib/voice.js +0 -236
- package/out/lib/words.d.ts +0 -20
- package/out/lib/words.js +0 -27
- package/out/machine/codemap/build.d.ts +0 -45
- package/out/machine/codemap/facts.d.ts +0 -47
- package/out/machine/codemap/files.d.ts +0 -45
- package/out/machine/codemap/read-locales.d.ts +0 -29
- package/out/machine/codemap/read-python.d.ts +0 -11
- package/out/machine/codemap/read-typescript.d.ts +0 -16
- package/out/machine/executor/browser.d.ts +0 -14
- package/out/machine/executor/diagnostics.d.ts +0 -2
- package/out/machine/executor/documents.d.ts +0 -40
- package/out/machine/executor/files.d.ts +0 -2
- package/out/machine/executor/git.d.ts +0 -48
- package/out/machine/executor/hooks.d.ts +0 -51
- package/out/machine/executor/index.d.ts +0 -45
- package/out/machine/executor/notebook.d.ts +0 -2
- package/out/machine/executor/paths.d.ts +0 -20
- package/out/machine/executor/sandbox.d.ts +0 -40
- package/out/machine/executor/shell.d.ts +0 -86
- package/out/machine/executor/toolservers.d.ts +0 -20
- package/out/machine/executor/worktree.d.ts +0 -9
- package/out/machine/folder/project.d.ts +0 -28
- package/out/machine/runtime/home.d.ts +0 -2
- package/out/machine/runtime/needs.d.ts +0 -30
- package/out/machine/runtime/self.d.ts +0 -23
- package/out/machine/voice/record.d.ts +0 -38
- package/out/postinstall.d.ts +0 -2
- package/out/postinstall.js +0 -120
- package/out/providers/anthropic.d.ts +0 -22
- package/out/providers/anthropic.js +0 -80
- package/out/providers/index.d.ts +0 -8
- package/out/providers/index.js +0 -84
- package/out/providers/openai.d.ts +0 -11
- package/out/providers/openai.js +0 -57
- package/out/thin.d.ts +0 -2
- package/out/thin.js +0 -855
- package/scripts/read_python.py +0 -270
- /package/out/{graph → build/machine/codemap}/build.js +0 -0
- /package/out/{graph → build/machine/codemap}/facts.js +0 -0
- /package/out/{graph → build/machine/codemap}/files.js +0 -0
- /package/out/{graph → build/machine/codemap}/read-locales.js +0 -0
- /package/out/{graph → build/machine/codemap}/read-typescript.js +0 -0
- /package/out/{executor → build/machine/executor}/browser.js +0 -0
- /package/out/{executor → build/machine/executor}/documents.js +0 -0
- /package/out/{executor → build/machine/executor}/files.js +0 -0
- /package/out/{executor → build/machine/executor}/git.js +0 -0
- /package/out/{executor → build/machine/executor}/index.js +0 -0
- /package/out/{executor → build/machine/executor}/notebook.js +0 -0
- /package/out/{executor → build/machine/executor}/paths.js +0 -0
- /package/out/{executor → build/machine/executor}/shell.js +0 -0
- /package/out/{executor → build/machine/executor}/toolservers.js +0 -0
- /package/out/{executor → build/machine/executor}/worktree.js +0 -0
- /package/out/{lib → build/machine/folder}/project.js +0 -0
- /package/out/{lib → build/machine/terminal}/clipboard.js +0 -0
package/out/agent/render.d.ts
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What a coding agent looks like in a terminal.
|
|
3
|
-
*
|
|
4
|
-
* Specification: docs/modules/CODING_AGENT_BUILD_SPECIFICATION.md, register
|
|
5
|
-
* items A6 (a real coding agent in the terminal), I8 (a terminal panel, real
|
|
6
|
-
* output, watchable) and I3 (a live action timeline).
|
|
7
|
-
*
|
|
8
|
-
* A terminal has no panels, so the whole interface is a stream of lines and the
|
|
9
|
-
* scrollback IS the record. That constrains everything here:
|
|
10
|
-
*
|
|
11
|
-
* **Every line has to make sense on its own, later.** Somebody scrolls back
|
|
12
|
-
* through a twenty minute run looking for the moment it went wrong. A line that
|
|
13
|
-
* only means something next to the line above it has failed them.
|
|
14
|
-
*
|
|
15
|
-
* **Nothing is redrawn or erased.** Spinners that rewrite their own line leave
|
|
16
|
-
* nothing behind, and a terminal being piped to a file fills with escape codes.
|
|
17
|
-
* What is printed stays printed.
|
|
18
|
-
*
|
|
19
|
-
* **Color is never the only signal.** Terminals get piped, logged and read by
|
|
20
|
-
* people who cannot separate red from green, so every state carries a word or a
|
|
21
|
-
* symbol as well as a color.
|
|
22
|
-
*/
|
|
23
|
-
export declare const dim: (t: string) => string;
|
|
24
|
-
export declare const bold: (t: string) => string;
|
|
25
|
-
export declare const red: (t: string) => string;
|
|
26
|
-
export declare const green: (t: string) => string;
|
|
27
|
-
export declare const yellow: (t: string) => string;
|
|
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;
|
|
34
|
-
/** Money, at the precision a person can act on.
|
|
35
|
-
*
|
|
36
|
-
* Four decimal places below a cent, because a coding step often costs less
|
|
37
|
-
* than one and rounding to $0.00 would show the cheapest work, which is what
|
|
38
|
-
* this product is best at, as free. */
|
|
39
|
-
export declare function money(usd: number | null | undefined): string;
|
|
40
|
-
export declare function duration(ms: number | null | undefined): string;
|
|
41
|
-
/** One action, as it happens. A word as well as a color, so this still reads
|
|
42
|
-
* when piped to a file. */
|
|
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;
|
|
46
|
-
/** The share of a step's context the provider served from its cache, or null
|
|
47
|
-
* when it reported no counts. Anthropic counts cached tokens OUTSIDE the input
|
|
48
|
-
* figure, so the whole context is the three counts added together. */
|
|
49
|
-
export declare function reusePct(tokensIn: number | null | undefined, cacheRead: number | null | undefined, cacheWrite: number | null | undefined): number | null;
|
|
50
|
-
/** One model call: which model, what it cost, and how much of its context the
|
|
51
|
-
* provider had already seen. The last figure is the one study 005 found
|
|
52
|
-
* missing from our receipt: without it nobody could tell a warm step from a
|
|
53
|
-
* cold one, and every step was cold. */
|
|
54
|
-
export declare function step(index: number, model: string, usd: number | null, ms: number | null, reused?: number | null, reason?: string): string;
|
|
55
|
-
/** The task list, reprinted whenever it changes.
|
|
56
|
-
*
|
|
57
|
-
* Reprinted rather than redrawn in place: what the agent intended at each point
|
|
58
|
-
* is worth keeping, and it is often the fastest way to see where a job went off
|
|
59
|
-
* course. */
|
|
60
|
-
export declare function todos(items: Array<{
|
|
61
|
-
content: string;
|
|
62
|
-
status: string;
|
|
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;
|
|
67
|
-
/** A change, before it is made.
|
|
68
|
-
*
|
|
69
|
-
* Full text for a small edit and a summary for a large one. Pasting four
|
|
70
|
-
* hundred lines into a terminal is not review, it is a wall somebody presses
|
|
71
|
-
* through, and an approval people press through protects nobody. */
|
|
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;
|
|
78
|
-
/** How the job ended, in the words a person reads. */
|
|
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;
|
|
98
|
-
/** One model's share of a job, as our server reported it. */
|
|
99
|
-
export interface ModelShare {
|
|
100
|
-
model: string | null;
|
|
101
|
-
steps: number;
|
|
102
|
-
usd: number | null;
|
|
103
|
-
unpriced?: number;
|
|
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
|
-
/** Where the saving came from, worded by the server for every client. */
|
|
117
|
-
savings?: ReceiptSavings | null;
|
|
118
|
-
/** The decision engine's itemized cost, named by the server (web manual 11.4). */
|
|
119
|
-
engine?: {
|
|
120
|
-
label: string;
|
|
121
|
-
name: string;
|
|
122
|
-
value: string;
|
|
123
|
-
line: string;
|
|
124
|
-
} | null;
|
|
125
|
-
}
|
|
126
|
-
/** The receipt's savings table: headings, one row per cost factor, the total. */
|
|
127
|
-
export interface ReceiptSavings {
|
|
128
|
-
columns: string[];
|
|
129
|
-
rows: Array<{
|
|
130
|
-
key: string;
|
|
131
|
-
label: string;
|
|
132
|
-
user: string;
|
|
133
|
-
chosen: string;
|
|
134
|
-
saving: string;
|
|
135
|
-
}>;
|
|
136
|
-
total: {
|
|
137
|
-
label: string;
|
|
138
|
-
value: string;
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* The receipt under a finished job.
|
|
143
|
-
*
|
|
144
|
-
* ── The terminal does not compute this, and must not ──────────────────────
|
|
145
|
-
*
|
|
146
|
-
* This used to assemble its own sentence from four loose numbers, so the
|
|
147
|
-
* terminal quoted a different receipt from the browser and the desktop app for
|
|
148
|
-
* the same job: no models, no comparison model and no saving, which is the
|
|
149
|
-
* entire claim the product is sold on.
|
|
150
|
-
*
|
|
151
|
-
* Our server owns the receipt. It holds the price list, the comparison model
|
|
152
|
-
* and the arithmetic, it writes the wording once, and every client shows that
|
|
153
|
-
* wording. All this function does is make it read well in a terminal: indent
|
|
154
|
-
* it, quieten it, and turn the address in it into something clickable. That is
|
|
155
|
-
* formatting, which belongs to the client, and it is the only part that does.
|
|
156
|
-
*/
|
|
157
|
-
export declare function receipt(text: string, models?: ModelShare[], testsPassed?: boolean, card?: ReceiptCard | null): string;
|
|
158
|
-
/**
|
|
159
|
-
* An answer, laid out for reading in a terminal (manual 6.17).
|
|
160
|
-
*
|
|
161
|
-
* The approved design (docs/product/design/cli-answer, option B): the whole
|
|
162
|
-
* answer on one left margin behind a violet rail, so where the question ends
|
|
163
|
-
* and the answer begins is never in doubt; words wrapped at a reading width
|
|
164
|
-
* and never split by the window edge; a blank line between every block;
|
|
165
|
-
* headings in the brand violet; code in its own color; wrapped list items
|
|
166
|
-
* continuing under their own text. Piped to a file or another program, the
|
|
167
|
-
* same answer comes out without the rail or the color, as a log wants it.
|
|
168
|
-
*/
|
|
169
|
-
export declare function plain(text: string): string;
|