@hearsay-tools/squawk 0.18.0-pr4102.7855 → 0.18.0-pr4104.7857
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/dist/ci-wait/controller.d.ts +4 -4
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/core/runner-facts.d.ts +2 -3
- package/dist/core/runner-facts.js.map +1 -1
- package/dist/core/ui-events.d.ts +0 -3
- package/dist/core/usage-limit.d.ts +1 -2
- package/dist/core/usage-limit.js +1 -15
- package/dist/core/usage-limit.js.map +1 -1
- package/dist/delegation/routes.d.ts +81 -81
- package/dist/delegation/transport.d.ts +76 -76
- package/dist/runners/acp/events.d.ts +1 -1
- package/dist/runners/acp/events.js +4 -6
- package/dist/runners/acp/events.js.map +1 -1
- package/dist/runners/acp/protocol.d.ts +1 -2
- package/dist/runners/antigravity/antigravity-runner.d.ts +1 -1
- package/dist/runners/antigravity/antigravity-session.d.ts +0 -12
- package/dist/runners/antigravity/antigravity-session.js +22 -65
- package/dist/runners/antigravity/antigravity-session.js.map +1 -1
- package/dist/runners/antigravity/facts.d.ts +1 -1
- package/dist/runners/antigravity/facts.js +1 -3
- package/dist/runners/antigravity/facts.js.map +1 -1
- package/dist/runners/antigravity/mock.d.ts +2 -2
- package/dist/runners/antigravity/mock.js +2 -2
- package/dist/runners/antigravity/mock.js.map +1 -1
- package/dist/runners/antigravity/spec-support.js +1 -1
- package/dist/runners/antigravity/spec-support.js.map +1 -1
- package/dist/runners/antigravity/wire-updates.d.ts +1 -2
- package/dist/runners/antigravity/wire-updates.js +4 -7
- package/dist/runners/antigravity/wire-updates.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/provider-sign-in-routes.d.ts +2 -2
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.d.ts +1593 -1593
- package/dist/workflows/run/turn-nudges.d.ts +19 -11
- package/dist/workflows/run/turn-nudges.js +4 -4
- package/dist/workflows/run/turn-nudges.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-acp.mjs +8 -33
- package/web/dist/assets/{activity-motion-CUiNY01w.js → activity-motion-Djgfr4BR.js} +1 -1
- package/web/dist/assets/{activity-route-Cz-rvbZ2.js → activity-route-CLmY_b61.js} +1 -1
- package/web/dist/assets/{chunk-BO2N2NFS-CM5F_Wdn.js → chunk-BO2N2NFS-y7WHTKOf.js} +4 -4
- package/web/dist/assets/{commit-diff-panel-DMI0GCL1.js → commit-diff-panel-D-oVsbVi.js} +1 -1
- package/web/dist/assets/{diff-DI4VzuYN.js → diff-B24jjrQd.js} +2 -2
- package/web/dist/assets/{diff-view-D_4gizCK.js → diff-view-Bm2zScMG.js} +1 -1
- package/web/dist/assets/{file-preview-Bi4gKafB.js → file-preview-BfjbLW39.js} +1 -1
- package/web/dist/assets/{git-toolbar-rD304H-0.js → git-toolbar-BrYOg59q.js} +1 -1
- package/web/dist/assets/{github-DZQgKb40.js → github-Bz9XYDMM.js} +1 -1
- package/web/dist/assets/{global-activity-route-DlY7H1rT.js → global-activity-route-BafNHfLS.js} +1 -1
- package/web/dist/assets/{highlighted-body-OFNGDK62-D2OLwPBs.js → highlighted-body-OFNGDK62-D62LjTH2.js} +1 -1
- package/web/dist/assets/{index-D4lUB-OA.js → index-WeSdteYZ.js} +3 -3
- package/web/dist/assets/markdown-twEr0qCN.js +4 -0
- package/web/dist/assets/mermaid-GHXKKRXX-C7OP146z.js +1 -0
- package/web/dist/assets/{preview-pane-connected-Dggh7YST.js → preview-pane-connected-Bo8pHl2j.js} +1 -1
- package/web/dist/assets/{repo-git-7kwazD3R.js → repo-git-DQWv--Qn.js} +1 -1
- package/web/dist/assets/{report-reader-Dg2ojBc_.js → report-reader-4oGG3Se7.js} +1 -1
- package/web/dist/assets/{reports-DaN1XZ5g.js → reports-DNerAT8g.js} +1 -1
- package/web/dist/assets/{run-header-GF37CaAZ.js → run-header-DeyjkCoC.js} +1 -1
- package/web/dist/assets/{skills-CXU7ZjvL.js → skills-C8MBWEQN.js} +1 -1
- package/web/dist/assets/{task-changes-BuVilcOg.js → task-changes-CQRx1eKQ.js} +1 -1
- package/web/dist/assets/{task-commits-DDWgrNtx.js → task-commits-B4ZCZUoh.js} +1 -1
- package/web/dist/assets/{task-files-D-vyiZrz.js → task-files-DFbWrnO0.js} +1 -1
- package/web/dist/assets/{task-github-item-DQHmhrMu.js → task-github-item-DX0X2N_q.js} +1 -1
- package/web/dist/assets/task-thread-B7dKPXaT.js +9 -0
- package/web/dist/assets/{thread-state-Cd3Q9ZdX.js → thread-state-Cq_aBDjM.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-DMy1raU0.js → use-hand-to-agent-state-DHEEAr6b.js} +1 -1
- package/web/dist/assets/{workflows-KeaSZ0DF.js → workflows-DmJXA1-k.js} +1 -1
- package/web/dist/index.html +1 -1
- package/dist/runners/antigravity/subagent-guard.d.ts +0 -17
- package/dist/runners/antigravity/subagent-guard.js +0 -38
- package/dist/runners/antigravity/subagent-guard.js.map +0 -1
- package/dist/runners/antigravity/tool-transcript.d.ts +0 -98
- package/dist/runners/antigravity/tool-transcript.js +0 -313
- package/dist/runners/antigravity/tool-transcript.js.map +0 -1
- package/web/dist/assets/markdown-doq86ner.js +0 -4
- package/web/dist/assets/mermaid-GHXKKRXX-DCw6rSYC.js +0 -1
- package/web/dist/assets/task-thread-CQN8oXtT.js +0 -9
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import { statSync } from 'node:fs';
|
|
2
|
-
import { open } from 'node:fs/promises';
|
|
3
|
-
import { join } from 'node:path';
|
|
4
|
-
import { StringDecoder } from 'node:string_decoder';
|
|
5
|
-
import { z } from 'zod';
|
|
6
|
-
import { ANTIGRAVITY_APP_DATA_DIR } from './launch-args.js';
|
|
7
|
-
/**
|
|
8
|
-
* The CLI 1.5.14 ACP wire sends no result for a read, an MCP call or a subagent tool: the completed
|
|
9
|
-
* update has no `content`, `rawOutput` or `_meta` (hearsay-tools/squawk#4099). The CLI's own
|
|
10
|
-
* transcript keeps what the agent received. It is a private format: every read is bounded, and a
|
|
11
|
-
* missing file or a changed format leaves the tool with no output (docs/runners/antigravity-wire.md).
|
|
12
|
-
*/
|
|
13
|
-
export const TRANSCRIPT_OUTPUT_CHARS = 64 * 1024;
|
|
14
|
-
const READ_BYTES = 4 * 1024 * 1024;
|
|
15
|
-
const LINE_BYTES = 8 * 1024 * 1024;
|
|
16
|
-
const POLL_MS = 250;
|
|
17
|
-
/** How long after a tool completes the runner looks for its row. */
|
|
18
|
-
export const TRANSCRIPT_WAIT_MS = 10_000;
|
|
19
|
-
/** Rows that never hold a tool's result. */
|
|
20
|
-
const NOT_RESULTS = new Set(['PLANNER_RESPONSE', 'USER_INPUT', 'SYSTEM_MESSAGE', 'CHECKPOINT']);
|
|
21
|
-
const HEADER = /^(?:Created|Completed) At: .*$/;
|
|
22
|
-
const rowSchema = z.object({
|
|
23
|
-
step_index: z.number().int().nonnegative(), type: z.string(), status: z.string().optional(),
|
|
24
|
-
content: z.string().optional(), error: z.string().optional(),
|
|
25
|
-
tool_calls: z.array(z.object({ name: z.string(), args: z.unknown().optional() })).optional(),
|
|
26
|
-
});
|
|
27
|
-
export function antigravityTranscriptPath(geminiDir, sessionId) {
|
|
28
|
-
return join(geminiDir, ANTIGRAVITY_APP_DATA_DIR, 'brain', sessionId, '.system_generated', 'logs', 'transcript_full.jsonl');
|
|
29
|
-
}
|
|
30
|
-
/** A JSON value with object keys sorted, so two equal argument objects compare equal as text. */
|
|
31
|
-
function canonical(value) {
|
|
32
|
-
if (Array.isArray(value))
|
|
33
|
-
return `[${value.map(canonical).join(',')}]`;
|
|
34
|
-
if (value && typeof value === 'object') {
|
|
35
|
-
return `{${Object.keys(value).sort().map(key => `${JSON.stringify(key)}:${canonical(value[key])}`).join(',')}}`;
|
|
36
|
-
}
|
|
37
|
-
return JSON.stringify(value ?? null);
|
|
38
|
-
}
|
|
39
|
-
/** The text the agent received, without the CLI's `Created At:`/`Completed At:` lines, bounded. */
|
|
40
|
-
export function transcriptResultText(row) {
|
|
41
|
-
const lines = (row.content ?? '').split('\n');
|
|
42
|
-
let first = 0;
|
|
43
|
-
while (first < lines.length && HEADER.test(lines[first]))
|
|
44
|
-
first++;
|
|
45
|
-
const text = lines.slice(first).join('\n') || (row.error ?? '');
|
|
46
|
-
return text.length > TRANSCRIPT_OUTPUT_CHARS ? `${text.slice(0, TRANSCRIPT_OUTPUT_CHARS)}\n… (output truncated by Squawk)` : text;
|
|
47
|
-
}
|
|
48
|
-
/** Result texts held at once; the oldest goes first. */
|
|
49
|
-
const HELD_RESULTS = 64;
|
|
50
|
-
/**
|
|
51
|
-
* Matches tool calls to their result rows. A planner row lists the step's calls with the same
|
|
52
|
-
* `name` and `args` the wire sends, and the k-th call's result is the row `step_index + 1 + k`.
|
|
53
|
-
* Each call takes its slot when it starts, so the n-th started call with a name and arguments gets
|
|
54
|
-
* the n-th planned one: neither the order calls complete in nor a call that stopped waiting moves
|
|
55
|
-
* another call's result. Only results a waiting call can still take are held.
|
|
56
|
-
*/
|
|
57
|
-
export class AntigravityTranscript {
|
|
58
|
-
/** Per call key: planned result steps, and started calls, that have no partner yet. */
|
|
59
|
-
planned = new Map();
|
|
60
|
-
started = new Map();
|
|
61
|
-
steps = new Map();
|
|
62
|
-
dropped = new Set();
|
|
63
|
-
results = new Map();
|
|
64
|
-
/** A call started on the wire: it takes the next planned slot of its name and arguments. */
|
|
65
|
-
start(call) {
|
|
66
|
-
const key = callKey(call.name, call.args);
|
|
67
|
-
this.started.set(key, [...this.started.get(key) ?? [], call.id]);
|
|
68
|
-
this.pair(key);
|
|
69
|
-
}
|
|
70
|
-
/** The call no longer waits (it had wire output, or its wait ended): it keeps its slot and its
|
|
71
|
-
* result is thrown away. */
|
|
72
|
-
drop(id) {
|
|
73
|
-
const step = this.steps.get(id);
|
|
74
|
-
if (step === undefined) {
|
|
75
|
-
this.dropped.add(id);
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
this.steps.delete(id);
|
|
79
|
-
this.results.delete(step);
|
|
80
|
-
}
|
|
81
|
-
addRow(value) {
|
|
82
|
-
const row = rowSchema.safeParse(value);
|
|
83
|
-
if (!row.success)
|
|
84
|
-
return;
|
|
85
|
-
const { step_index: step, type, tool_calls: calls } = row.data;
|
|
86
|
-
if (type === 'PLANNER_RESPONSE') {
|
|
87
|
-
calls?.forEach((call, index) => {
|
|
88
|
-
const key = callKey(call.name, call.args);
|
|
89
|
-
this.planned.set(key, [...this.planned.get(key) ?? [], step + 1 + index]);
|
|
90
|
-
this.pair(key);
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
else if (!NOT_RESULTS.has(type) && this.wanted(step))
|
|
94
|
-
this.hold(step, transcriptResultText(row.data));
|
|
95
|
-
}
|
|
96
|
-
/** The call's result text once its row is read; reading it consumes it. */
|
|
97
|
-
output(id) {
|
|
98
|
-
const step = this.steps.get(id);
|
|
99
|
-
const text = step === undefined ? undefined : this.results.get(step);
|
|
100
|
-
if (text === undefined)
|
|
101
|
-
return undefined;
|
|
102
|
-
this.steps.delete(id);
|
|
103
|
-
this.results.delete(step);
|
|
104
|
-
return text;
|
|
105
|
-
}
|
|
106
|
-
pair(key) {
|
|
107
|
-
const planned = this.planned.get(key) ?? [];
|
|
108
|
-
const started = this.started.get(key) ?? [];
|
|
109
|
-
while (planned.length && started.length) {
|
|
110
|
-
const step = planned.shift();
|
|
111
|
-
const id = started.shift();
|
|
112
|
-
if (this.dropped.delete(id))
|
|
113
|
-
this.results.delete(step);
|
|
114
|
-
else
|
|
115
|
-
this.steps.set(id, step);
|
|
116
|
-
}
|
|
117
|
-
for (const [map, list] of [[this.planned, planned], [this.started, started]]) {
|
|
118
|
-
if (list.length)
|
|
119
|
-
map.set(key, list);
|
|
120
|
-
else
|
|
121
|
-
map.delete(key);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
/** A row a call holds, or one a started call has yet to pair with. */
|
|
125
|
-
wanted(step) {
|
|
126
|
-
for (const held of this.steps.values())
|
|
127
|
-
if (held === step)
|
|
128
|
-
return true;
|
|
129
|
-
for (const steps of this.planned.values())
|
|
130
|
-
if (steps.includes(step))
|
|
131
|
-
return true;
|
|
132
|
-
return false;
|
|
133
|
-
}
|
|
134
|
-
hold(step, text) {
|
|
135
|
-
this.results.set(step, text);
|
|
136
|
-
for (const old of this.results.keys()) {
|
|
137
|
-
if (this.results.size <= HELD_RESULTS)
|
|
138
|
-
break;
|
|
139
|
-
this.results.delete(old);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
function callKey(name, args) { return `${name}\u0000${canonical(args ?? {})}`; }
|
|
144
|
-
const wireSchema = z.object({
|
|
145
|
-
sessionUpdate: z.enum(['tool_call', 'tool_call_update']), toolCallId: z.string(), name: z.string(),
|
|
146
|
-
args: z.unknown().optional(), rawInput: z.unknown().optional(),
|
|
147
|
-
});
|
|
148
|
-
const TERMINAL = new Set(['completed', 'failed']);
|
|
149
|
-
function wireCall(update) {
|
|
150
|
-
const parsed = wireSchema.safeParse(update);
|
|
151
|
-
if (!parsed.success)
|
|
152
|
-
return undefined;
|
|
153
|
-
return { id: parsed.data.toolCallId, name: parsed.data.name, args: parsed.data.args ?? parsed.data.rawInput };
|
|
154
|
-
}
|
|
155
|
-
/** A terminal tool update that carries no result: its output can come only from the transcript. */
|
|
156
|
-
export function transcriptCall(update) {
|
|
157
|
-
if (update.content != null || update.rawOutput != null || !TERMINAL.has(update.status))
|
|
158
|
-
return undefined;
|
|
159
|
-
return wireCall(update);
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Reads the session's transcript while a completed tool waits for its output, and amends the tool
|
|
163
|
-
* card when the row appears. The row can land after the wire's completed update, so the read polls
|
|
164
|
-
* up to `TRANSCRIPT_WAIT_MS`. It reads only bytes appended since the session opened.
|
|
165
|
-
*/
|
|
166
|
-
export class AntigravityToolOutputs {
|
|
167
|
-
amend;
|
|
168
|
-
now;
|
|
169
|
-
path;
|
|
170
|
-
offset = 0;
|
|
171
|
-
tail = '';
|
|
172
|
-
decoder = new StringDecoder('utf8');
|
|
173
|
-
skippingLine = false;
|
|
174
|
-
broken = false;
|
|
175
|
-
closed = false;
|
|
176
|
-
timer;
|
|
177
|
-
reading;
|
|
178
|
-
transcript = new AntigravityTranscript();
|
|
179
|
-
pending = new Map();
|
|
180
|
-
seen = new Set();
|
|
181
|
-
constructor(amend, now = Date.now) {
|
|
182
|
-
this.amend = amend;
|
|
183
|
-
this.now = now;
|
|
184
|
-
}
|
|
185
|
-
/** The session is open: read its transcript from its current end. */
|
|
186
|
-
open(path) {
|
|
187
|
-
this.path = path;
|
|
188
|
-
try {
|
|
189
|
-
this.offset = statSync(path).size;
|
|
190
|
-
}
|
|
191
|
-
catch {
|
|
192
|
-
this.offset = 0;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
/** A wire update. A call takes its transcript slot when it first appears; a terminal update with
|
|
196
|
-
* no result starts the wait for its row, and one with a result gives the slot up. */
|
|
197
|
-
observe(update) {
|
|
198
|
-
if (this.closed || this.broken || !this.path)
|
|
199
|
-
return;
|
|
200
|
-
const call = wireCall(update);
|
|
201
|
-
if (!call)
|
|
202
|
-
return;
|
|
203
|
-
if (!this.seen.has(call.id)) {
|
|
204
|
-
this.seen.add(call.id);
|
|
205
|
-
this.transcript.start(call);
|
|
206
|
-
}
|
|
207
|
-
if (!TERMINAL.has(update.status))
|
|
208
|
-
return;
|
|
209
|
-
if (transcriptCall(update)) {
|
|
210
|
-
if (!this.pending.has(call.id))
|
|
211
|
-
this.pending.set(call.id, { call, deadline: this.now() + TRANSCRIPT_WAIT_MS });
|
|
212
|
-
}
|
|
213
|
-
else
|
|
214
|
-
this.transcript.drop(call.id);
|
|
215
|
-
}
|
|
216
|
-
/** The mapped tool item closed with no output: amend it once its row is read. */
|
|
217
|
-
completed(item) {
|
|
218
|
-
const pending = this.pending.get(item.id);
|
|
219
|
-
if (!pending)
|
|
220
|
-
return;
|
|
221
|
-
if (item.output) {
|
|
222
|
-
this.pending.delete(item.id);
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
pending.item = item;
|
|
226
|
-
this.schedule(0);
|
|
227
|
-
}
|
|
228
|
-
close() { this.closed = true; clearTimeout(this.timer); this.pending.clear(); }
|
|
229
|
-
/** One read of appended rows, then amend what resolved. Tests call it directly. */
|
|
230
|
-
poll() {
|
|
231
|
-
this.reading ??= this.read().catch(() => { this.broken = true; this.pending.clear(); }).finally(() => { this.reading = undefined; });
|
|
232
|
-
return this.reading;
|
|
233
|
-
}
|
|
234
|
-
schedule(delay) {
|
|
235
|
-
if (this.closed || this.timer)
|
|
236
|
-
return;
|
|
237
|
-
this.timer = setTimeout(() => { this.timer = undefined; void this.poll().then(() => this.next()); }, delay);
|
|
238
|
-
this.timer.unref?.();
|
|
239
|
-
}
|
|
240
|
-
next() {
|
|
241
|
-
this.expire();
|
|
242
|
-
if ([...this.pending.values()].some(pending => pending.item))
|
|
243
|
-
this.schedule(POLL_MS);
|
|
244
|
-
}
|
|
245
|
-
expire() {
|
|
246
|
-
const now = this.now();
|
|
247
|
-
for (const [id, pending] of this.pending)
|
|
248
|
-
if (pending.deadline < now) {
|
|
249
|
-
this.pending.delete(id);
|
|
250
|
-
this.transcript.drop(id);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
async read() {
|
|
254
|
-
if (this.closed || this.broken || !this.path)
|
|
255
|
-
return;
|
|
256
|
-
this.expire();
|
|
257
|
-
await this.readAppended(this.path);
|
|
258
|
-
for (const [id, pending] of this.pending) {
|
|
259
|
-
if (!pending.item)
|
|
260
|
-
continue;
|
|
261
|
-
const output = this.transcript.output(id);
|
|
262
|
-
if (output === undefined)
|
|
263
|
-
continue;
|
|
264
|
-
this.pending.delete(id);
|
|
265
|
-
if (output && !this.closed)
|
|
266
|
-
this.amend({ ...pending.item, output });
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
async readAppended(path) {
|
|
270
|
-
let file;
|
|
271
|
-
try {
|
|
272
|
-
file = await open(path, 'r');
|
|
273
|
-
}
|
|
274
|
-
catch {
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
try {
|
|
278
|
-
const { size } = await file.stat();
|
|
279
|
-
if (size <= this.offset)
|
|
280
|
-
return;
|
|
281
|
-
const length = Math.min(size - this.offset, READ_BYTES);
|
|
282
|
-
const buffer = Buffer.alloc(length);
|
|
283
|
-
const { bytesRead } = await file.read(buffer, 0, length, this.offset);
|
|
284
|
-
this.offset += bytesRead;
|
|
285
|
-
this.lines(this.decoder.write(buffer.subarray(0, bytesRead)));
|
|
286
|
-
}
|
|
287
|
-
finally {
|
|
288
|
-
await file.close();
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
lines(chunk) {
|
|
292
|
-
const lines = (this.tail + chunk).split('\n');
|
|
293
|
-
this.tail = lines.pop() ?? '';
|
|
294
|
-
for (const line of lines) {
|
|
295
|
-
if (this.skippingLine) {
|
|
296
|
-
this.skippingLine = false;
|
|
297
|
-
continue;
|
|
298
|
-
}
|
|
299
|
-
if (!line.trim())
|
|
300
|
-
continue;
|
|
301
|
-
try {
|
|
302
|
-
this.transcript.addRow(JSON.parse(line));
|
|
303
|
-
}
|
|
304
|
-
catch { /* A row the format no longer matches has no output. */ }
|
|
305
|
-
}
|
|
306
|
-
// A row past the bound is dropped; reading resumes at the next line.
|
|
307
|
-
if (this.tail.length > LINE_BYTES) {
|
|
308
|
-
this.tail = '';
|
|
309
|
-
this.skippingLine = true;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
//# sourceMappingURL=tool-transcript.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-transcript.js","sourceRoot":"","sources":["../../../src/runners/antigravity/tool-transcript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAk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G,KAAK,CAAC;gBAAC,SAAS;YAAC,CAAC;YAC/D,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;gBAAE,SAAS;YAC3B,IAAI,CAAC;gBAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;YAAC,CAAC;YAAC,MAAM,CAAC,CAAC,uDAAuD,CAAC,CAAC;QACrH,CAAC;QACD,qEAAqE;QACrE,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;YAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QAAC,CAAC;IAClF,CAAC;CACF"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./react-runtime-CCIEwYL0.js";import{C as r,S as i,d as a,w as o}from"./button-C1fD-ZFr.js";import{i as s}from"./bundle-mjs-BT31bpU6.js";import{G as c,J as l,K as u,W as d,dt as f,ft as ee,gt as p,ht as m,lt as h,mt as g,pt as te,ut as ne}from"./index-D4lUB-OA.js";import{i as re,n as _}from"./chunk-BO2N2NFS-CM5F_Wdn.js";var v=e(t(),1),y=n();function b({isOpen:e,onClose:t,onConfirm:n,url:r}){return(0,y.jsx)(h,{open:e,onOpenChange:e=>{e||t()},children:(0,y.jsxs)(ee,{"data-slot":`link-safety-dialog`,children:[(0,y.jsxs)(m,{children:[(0,y.jsx)(p,{children:`Open this link?`}),(0,y.jsxs)(te,{children:[`It leaves Squawk in a new tab. The words of a link in a transcript are the agent's — the address below is where it actually goes.`,(0,y.jsx)(`span`,{"data-slot":`link-safety-url`,className:`mt-3 block wrap-anywhere rounded-md border border-border bg-muted px-3 py-2 font-mono text-xs text-foreground`,children:r})]})]}),(0,y.jsxs)(g,{children:[(0,y.jsx)(f,{children:`Cancel`}),(0,y.jsx)(ne,{onClick:n,children:`Open link`})]})]})})}var x=String.raw`https?:\/\/(?:cdn\.jsdelivr\.net\/npm|unpkg\.com)\/`,ie=[{id:`tailwind-v3`,script:/^https?:\/\/cdn\.tailwindcss\.com(?:\/[\d.]+)?\/?(?:[?#]|$)/i},{id:`tailwind`,script:new RegExp(String.raw`^${x}@tailwindcss\/browser@4(?:\.[.\d]*)?(?:\/dist\/index\.global(?:\.min)?\.js)?\/?(?:[?#]|$)`,`i`)},{id:`mermaid`,script:new RegExp(String.raw`^${x}mermaid@11(?:\.[.\d]*)?\/dist\/mermaid(?:\.esm)?(?:\.min)?\.m?js(?:[?#]|$)`,`i`)}],S=new RegExp(String.raw`(['"])(${x}mermaid@11(?:\.[.\d]*)?(?:\/dist\/mermaid(?:\.esm)?(?:\.min)?\.mjs|\/\+esm)?)\1`,`gi`);function C(e){let t=e.trim();return ie.find(e=>e.script.test(t))?.id??null}function w(e){let t=new DOMParser().parseFromString(e,`text/html`),n=new Set;for(let e of t.querySelectorAll(`script`)){let t=e.getAttribute(`src`),r=t===null?null:C(t);r&&n.add(r===`tailwind-v3`?`tailwind`:r).add(r),t===null&&e.getAttribute(`type`)===`module`&&(e.textContent??``).search(S)>=0&&n.add(`mermaid`),S.lastIndex=0}return[...n].sort()}var T={tailwind:async()=>(await s(()=>import(`./index.global-D3Ga_D3Y.js`),[])).default,"tailwind-v3":()=>Promise.resolve(se),mermaid:async()=>(await s(()=>import(`./mermaid.min-3O9YjB2l.js`),[])).default};async function E(e){let t=await Promise.all(e.map(e=>T[e]().then(t=>[e,t],()=>null)));return Object.fromEntries(t.filter(e=>e!==null))}function ae(){let e={colors:`color`,fontFamily:`font`,fontSize:`text`,fontWeight:`font-weight`,spacing:`spacing`,borderRadius:`radius`,boxShadow:`shadow`,dropShadow:`drop-shadow`,blur:`blur`,screens:`breakpoint`,letterSpacing:`tracking`,lineHeight:`leading`,maxWidth:`container`,animation:`animate`,aspectRatio:`aspect`},t=e=>typeof e==`object`&&!!e&&!Array.isArray(e),n=t=>Object.hasOwn(e,t)?e[t]:void 0,r=(e,n,i,a)=>{if(t(a)){for(let[t,o]of Object.entries(a))r(e,n,t===`DEFAULT`?i:i?`${i}-${t}`:t,o);return}let o=i?`--${n}-${i}`:`--${n}`;if(n===`text`&&Array.isArray(a)){e.push(`${o}: ${String(a[0])};`);let n=t(a[1])?a[1].lineHeight:a[1];typeof n==`string`&&e.push(`${o}--line-height: ${n};`);return}typeof a==`string`||typeof a==`number`?e.push(`${o}: ${a};`):Array.isArray(a)&&e.push(`${o}: ${a.join(`, `)};`)},i=e=>{let[t,n]=Array.isArray(e)?e:[e];if(t!==`class`&&t!==`selector`)return``;let r=typeof n==`string`?n:`.dark`;return`@custom-variant dark (&:where(${r}, ${r} *));\n`},a=e=>{let a=t(e)?e:{},o=t(a.theme)?a.theme:{},s=[];for(let[e,t]of Object.entries(o)){let i=n(e);i&&(s.push(`--${i}-*: initial;`),r(s,i,``,t))}for(let[e,i]of Object.entries(t(o.extend)?o.extend:{})){let t=n(e);t&&r(s,t,``,i)}return`${i(a.darkMode)}@theme {\n${s.join(`
|
|
2
|
-
`)}\n}`},o=document.createElement(`style`);o.setAttribute(`type`,`text/tailwindcss`),document.currentScript?.before(o);let s={};Object.defineProperty(globalThis,"tailwind",{configurable:!0,value:{get config(){return s},set config(e){s=e,o.textContent=a(e)}}})}var oe=`(${ae.toString()})()`,se=[`@import "tailwindcss/theme.css";@import "tailwindcss/preflight.css";@import "tailwindcss/utilities.css";`,`@theme{`,`--color-slate-50:#f8fafc;--color-slate-100:#f1f5f9;--color-slate-200:#e2e8f0;--color-slate-300:#cbd5e1;--color-slate-400:#94a3b8;--color-slate-500:#64748b;--color-slate-600:#475569;--color-slate-700:#334155;--color-slate-800:#1e293b;--color-slate-900:#0f172a;--color-slate-950:#020617;`,`--color-gray-50:#f9fafb;--color-gray-100:#f3f4f6;--color-gray-200:#e5e7eb;--color-gray-300:#d1d5db;--color-gray-400:#9ca3af;--color-gray-500:#6b7280;--color-gray-600:#4b5563;--color-gray-700:#374151;--color-gray-800:#1f2937;--color-gray-900:#111827;--color-gray-950:#030712;`,`--color-zinc-50:#fafafa;--color-zinc-100:#f4f4f5;--color-zinc-200:#e4e4e7;--color-zinc-300:#d4d4d8;--color-zinc-400:#a1a1aa;--color-zinc-500:#71717a;--color-zinc-600:#52525b;--color-zinc-700:#3f3f46;--color-zinc-800:#27272a;--color-zinc-900:#18181b;--color-zinc-950:#09090b;`,`--color-neutral-50:#fafafa;--color-neutral-100:#f5f5f5;--color-neutral-200:#e5e5e5;--color-neutral-300:#d4d4d4;--color-neutral-400:#a3a3a3;--color-neutral-500:#737373;--color-neutral-600:#525252;--color-neutral-700:#404040;--color-neutral-800:#262626;--color-neutral-900:#171717;--color-neutral-950:#0a0a0a;`,`--color-stone-50:#fafaf9;--color-stone-100:#f5f5f4;--color-stone-200:#e7e5e4;--color-stone-300:#d6d3d1;--color-stone-400:#a8a29e;--color-stone-500:#78716c;--color-stone-600:#57534e;--color-stone-700:#44403c;--color-stone-800:#292524;--color-stone-900:#1c1917;--color-stone-950:#0c0a09;`,`--color-red-50:#fef2f2;--color-red-100:#fee2e2;--color-red-200:#fecaca;--color-red-300:#fca5a5;--color-red-400:#f87171;--color-red-500:#ef4444;--color-red-600:#dc2626;--color-red-700:#b91c1c;--color-red-800:#991b1b;--color-red-900:#7f1d1d;--color-red-950:#450a0a;`,`--color-orange-50:#fff7ed;--color-orange-100:#ffedd5;--color-orange-200:#fed7aa;--color-orange-300:#fdba74;--color-orange-400:#fb923c;--color-orange-500:#f97316;--color-orange-600:#ea580c;--color-orange-700:#c2410c;--color-orange-800:#9a3412;--color-orange-900:#7c2d12;--color-orange-950:#431407;`,`--color-amber-50:#fffbeb;--color-amber-100:#fef3c7;--color-amber-200:#fde68a;--color-amber-300:#fcd34d;--color-amber-400:#fbbf24;--color-amber-500:#f59e0b;--color-amber-600:#d97706;--color-amber-700:#b45309;--color-amber-800:#92400e;--color-amber-900:#78350f;--color-amber-950:#451a03;`,`--color-yellow-50:#fefce8;--color-yellow-100:#fef9c3;--color-yellow-200:#fef08a;--color-yellow-300:#fde047;--color-yellow-400:#facc15;--color-yellow-500:#eab308;--color-yellow-600:#ca8a04;--color-yellow-700:#a16207;--color-yellow-800:#854d0e;--color-yellow-900:#713f12;--color-yellow-950:#422006;`,`--color-lime-50:#f7fee7;--color-lime-100:#ecfccb;--color-lime-200:#d9f99d;--color-lime-300:#bef264;--color-lime-400:#a3e635;--color-lime-500:#84cc16;--color-lime-600:#65a30d;--color-lime-700:#4d7c0f;--color-lime-800:#3f6212;--color-lime-900:#365314;--color-lime-950:#1a2e05;`,`--color-green-50:#f0fdf4;--color-green-100:#dcfce7;--color-green-200:#bbf7d0;--color-green-300:#86efac;--color-green-400:#4ade80;--color-green-500:#22c55e;--color-green-600:#16a34a;--color-green-700:#15803d;--color-green-800:#166534;--color-green-900:#14532d;--color-green-950:#052e16;`,`--color-emerald-50:#ecfdf5;--color-emerald-100:#d1fae5;--color-emerald-200:#a7f3d0;--color-emerald-300:#6ee7b7;--color-emerald-400:#34d399;--color-emerald-500:#10b981;--color-emerald-600:#059669;--color-emerald-700:#047857;--color-emerald-800:#065f46;--color-emerald-900:#064e3b;--color-emerald-950:#022c22;`,`--color-teal-50:#f0fdfa;--color-teal-100:#ccfbf1;--color-teal-200:#99f6e4;--color-teal-300:#5eead4;--color-teal-400:#2dd4bf;--color-teal-500:#14b8a6;--color-teal-600:#0d9488;--color-teal-700:#0f766e;--color-teal-800:#115e59;--color-teal-900:#134e4a;--color-teal-950:#042f2e;`,`--color-cyan-50:#ecfeff;--color-cyan-100:#cffafe;--color-cyan-200:#a5f3fc;--color-cyan-300:#67e8f9;--color-cyan-400:#22d3ee;--color-cyan-500:#06b6d4;--color-cyan-600:#0891b2;--color-cyan-700:#0e7490;--color-cyan-800:#155e75;--color-cyan-900:#164e63;--color-cyan-950:#083344;`,`--color-sky-50:#f0f9ff;--color-sky-100:#e0f2fe;--color-sky-200:#bae6fd;--color-sky-300:#7dd3fc;--color-sky-400:#38bdf8;--color-sky-500:#0ea5e9;--color-sky-600:#0284c7;--color-sky-700:#0369a1;--color-sky-800:#075985;--color-sky-900:#0c4a6e;--color-sky-950:#082f49;`,`--color-blue-50:#eff6ff;--color-blue-100:#dbeafe;--color-blue-200:#bfdbfe;--color-blue-300:#93c5fd;--color-blue-400:#60a5fa;--color-blue-500:#3b82f6;--color-blue-600:#2563eb;--color-blue-700:#1d4ed8;--color-blue-800:#1e40af;--color-blue-900:#1e3a8a;--color-blue-950:#172554;`,`--color-indigo-50:#eef2ff;--color-indigo-100:#e0e7ff;--color-indigo-200:#c7d2fe;--color-indigo-300:#a5b4fc;--color-indigo-400:#818cf8;--color-indigo-500:#6366f1;--color-indigo-600:#4f46e5;--color-indigo-700:#4338ca;--color-indigo-800:#3730a3;--color-indigo-900:#312e81;--color-indigo-950:#1e1b4b;`,`--color-violet-50:#f5f3ff;--color-violet-100:#ede9fe;--color-violet-200:#ddd6fe;--color-violet-300:#c4b5fd;--color-violet-400:#a78bfa;--color-violet-500:#8b5cf6;--color-violet-600:#7c3aed;--color-violet-700:#6d28d9;--color-violet-800:#5b21b6;--color-violet-900:#4c1d95;--color-violet-950:#2e1065;`,`--color-purple-50:#faf5ff;--color-purple-100:#f3e8ff;--color-purple-200:#e9d5ff;--color-purple-300:#d8b4fe;--color-purple-400:#c084fc;--color-purple-500:#a855f7;--color-purple-600:#9333ea;--color-purple-700:#7e22ce;--color-purple-800:#6b21a8;--color-purple-900:#581c87;--color-purple-950:#3b0764;`,`--color-fuchsia-50:#fdf4ff;--color-fuchsia-100:#fae8ff;--color-fuchsia-200:#f5d0fe;--color-fuchsia-300:#f0abfc;--color-fuchsia-400:#e879f9;--color-fuchsia-500:#d946ef;--color-fuchsia-600:#c026d3;--color-fuchsia-700:#a21caf;--color-fuchsia-800:#86198f;--color-fuchsia-900:#701a75;--color-fuchsia-950:#4a044e;`,`--color-pink-50:#fdf2f8;--color-pink-100:#fce7f3;--color-pink-200:#fbcfe8;--color-pink-300:#f9a8d4;--color-pink-400:#f472b6;--color-pink-500:#ec4899;--color-pink-600:#db2777;--color-pink-700:#be185d;--color-pink-800:#9d174d;--color-pink-900:#831843;--color-pink-950:#500724;`,`--color-rose-50:#fff1f2;--color-rose-100:#ffe4e6;--color-rose-200:#fecdd3;--color-rose-300:#fda4af;--color-rose-400:#fb7185;--color-rose-500:#f43f5e;--color-rose-600:#e11d48;--color-rose-700:#be123c;--color-rose-800:#9f1239;--color-rose-900:#881337;--color-rose-950:#4c0519;`,`--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";`,`--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;`,`--text-xs--line-height:1rem;--text-sm--line-height:1.25rem;--text-base--line-height:1.5rem;--text-lg--line-height:1.75rem;`,`--text-xl--line-height:1.75rem;--text-2xl--line-height:2rem;--text-3xl--line-height:2.25rem;--text-4xl--line-height:2.5rem;`,`--shadow-sm:0 1px 2px 0 rgb(0 0 0 / 0.05);--radius-sm:0.125rem;--blur-sm:4px;`,`}`,`body{line-height:inherit}`,`*,::after,::before,::backdrop,::file-selector-button{border-color:var(--color-gray-200,currentColor)}`,`input::placeholder,textarea::placeholder{color:var(--color-gray-400)}`,`button:not(:disabled),[role="button"]:not(:disabled){cursor:pointer}`].join(`
|
|
3
|
-
`),D=`default-src 'none'; script-src 'unsafe-inline' data:; img-src data:; media-src data:; font-src data:; style-src 'unsafe-inline' data:; form-action 'none'; base-uri 'none'`,ce=`${D}; frame-src 'none'`,O=`allow-scripts allow-popups allow-popups-to-escape-sandbox`,k=`clipboard-write`,A=`data:text/javascript,export%20default%20globalThis.mermaid`;function j(e){return/\.html?$/i.test(e)}var M=/^(?:https?:|mailto:)/i,N=/^data:/i,P=`http://www.w3.org/1999/xlink`,F=/^(?:[a-z][a-z\d+.-]*:|\/\/)/i,I=/url\(\s*(['"]?)([^'")]*)\1\s*\)|@import\s+(['"])([^'"]+)\3/gi,L=[`src`,`href`,`xlink:href`,`poster`,`background`],R=/(?:^|,)\s*(data:\S+|[^,\s]+)/gi,z=/\b(?:preconnect|dns-prefetch|prefetch|preload|modulepreload|prerender)\b/i;function B(e,t){let n=e.trim();!n||n.startsWith(`#`)||N.test(n)||(F.test(n)?t.remote++:t.relative++)}function V(e,t){for(let n of e.matchAll(I))B(n[2]??n[4]??``,t)}function H(e,t){let n=e.createElement(`script`);return n.textContent=t.replace(/<\/script/gi,`<\\/script`),n}function U(e,t){let n=e.createElement(`style`);return n.setAttribute(`type`,`text/tailwindcss`),n.textContent=t,n}var W=`http://www.w3.org/2000/svg`;function G(e){return e.namespaceURI===W?e.getAttribute(`href`)??e.getAttributeNS(P,`href`):e.getAttribute(`src`)}function le(e,t,n,r){let i=r===void 0?[]:[U(e,r),H(e,oe)],a=H(e,n),o=t.hasAttribute(`defer`)||t.hasAttribute(`async`)||t.getAttribute(`type`)===`module`;o&&e.body.append(a),t.replaceWith(...i,...o?[]:[a])}function K(e,t,n){let r=new Set,i=new Set;for(let a of[...e.querySelectorAll(`script`)]){let o=G(a);if(o!==null&&N.test(o.trim()))continue;if(o===null){if(a.getAttribute(`type`)===`module`)for(let e of(a.textContent??``).matchAll(S))i.add(e[2]);continue}let s=C(o),c=s===`tailwind-v3`?`tailwind`:s,l=c?n[c]:void 0;if(!c||l===void 0||s===`tailwind-v3`&&n[`tailwind-v3`]===void 0){t.scripts++,a.remove();continue}if(r.has(c)){a.remove();continue}r.add(c),le(e,a,l,s===`tailwind-v3`?n[`tailwind-v3`]:void 0)}if(!i.size)return;if(n.mermaid===void 0){t.scripts+=i.size;return}let a=e.createElement(`script`);a.setAttribute(`type`,`importmap`),a.textContent=JSON.stringify({imports:Object.fromEntries([...i].map(e=>[e,A]))}),e.head.prepend(a,...r.has(`mermaid`)?[]:[H(e,n.mermaid)])}function ue(e,t,n){let r=t=>{let n=[...e.querySelectorAll(t)];return n.forEach(e=>e.remove()),n.length};K(e,t,n),t.embeds=r(`iframe, frame, frameset, object, embed, portal`),r(`base, meta[http-equiv]`);for(let t of e.querySelectorAll(`link`))z.test(t.getAttribute(`rel`)??``)&&t.remove();for(let t of e.querySelectorAll(`[ping]`))t.removeAttribute(`ping`);for(let n of e.querySelectorAll(`form`))t.forms++,n.removeAttribute(`action`);for(let t of e.querySelectorAll(`[formaction]`))t.removeAttribute(`formaction`)}function de(e,t){for(let n of e.querySelectorAll(`a, area`)){let e=n.getAttribute(`href`)??n.getAttributeNS(P,`href`);if(e===null)continue;let r=e.trim();if(r.startsWith(`#`)){n.setAttribute(`href`,`about:srcdoc${r}`),n.removeAttributeNS(P,`href`),n.removeAttribute(`target`);continue}if(M.test(r)){n.setAttribute(`target`,`_blank`),n.setAttribute(`rel`,`noopener noreferrer`);continue}F.test(r)||t.relative++,n.removeAttribute(`href`),n.removeAttributeNS(P,`href`),n.removeAttribute(`target`)}}function fe(e,t){for(let n of e.querySelectorAll(`[style]`))V(n.getAttribute(`style`),t);for(let n of e.querySelectorAll(`style`))/^(?:text\/css)?$/i.test(n.getAttribute(`type`)?.trim()??``)&&V(n.textContent??``,t);for(let n of e.querySelectorAll(`link[href]`))B(n.getAttribute(`href`),t);for(let n of e.querySelectorAll(`img, source, video, audio, track, input, image, use, body, table, td`)){for(let e of L){let r=n.getAttribute(e);r!==null&&B(r,t)}for(let e of(n.getAttribute(`srcset`)??``).matchAll(R))B(e[1],t)}}function pe(e,t={}){let n=new DOMParser().parseFromString(e,`text/html`),r={scripts:0,remote:0,relative:0,forms:0,embeds:0};ue(n,r,t),de(n,r),fe(n,r);let i=n.createElement(`meta`);i.setAttribute(`http-equiv`,`Content-Security-Policy`),i.setAttribute(`content`,D);let a=n.createElement(`meta`);return a.setAttribute(`name`,`referrer`),a.setAttribute(`content`,`no-referrer`),n.head.prepend(i,a),{srcdoc:`<!DOCTYPE html>${n.documentElement.outerHTML}`,blocked:r}}var q=e=>e.replace(/&/g,`&`).replace(/"/g,`"`);function me(e,t){return`<!DOCTYPE html><html><head><meta http-equiv="Content-Security-Policy" content="${ce}"><meta name="referrer" content="no-referrer"><style>html,body{margin:0;height:100%;overflow:hidden}iframe{display:block;border:0;width:100%;height:100%}</style></head><body><iframe title="${q(t)}" sandbox="${O}" allow="${k}" referrerpolicy="no-referrer" srcdoc="${q(e)}"></iframe></body></html>`}var J=(0,v.createContext)(null),he=/^[0-9a-f-]{36}$/i,ge=/^(\/p\/[^/?#]+\/tasks\/[^/?#]+)\/files\?(artifact=[^&#]*)$/;function Y(e){let t=new URLSearchParams(e);return[...t.keys()].length===1&&he.test(t.get(`artifact`)??``)}function _e(e,t,n){if(e.startsWith(`${t}?artifact=`))return Y(e.slice(t.length+1))?n+e.slice(t.length):null;let r=ge.exec(e);return r&&Y(r[2])?`${r[1]}/report?${r[2]}`:void 0}var ve=/^\/(?:api|p|tasks|new|settings|skills|workflows|git|github|inbox|automations)(?:\/|[?#]|$)/;function ye(e,t){let n=/^[a-z]:[\\/]/i.test(e),r=/^file:/i.test(e);if(!n&&/^[a-z][a-z\d+.-]*:/i.test(e)&&!r)return null;let i=r?e:decodeURIComponent(e);if(/[\u0000-\u001f]/.test(i))return null;if(!t||i.startsWith(`/`)||n||r)return i;let a=t.replaceAll(`\\`,`/`);return a.slice(0,a.lastIndexOf(`/`)+1)+i}function X(e,t){if(!e||/[\u0000-\u001f]/.test(e)||e.startsWith(`#`)||e.startsWith(`//`))return null;let n=e.indexOf(`#`),r=n<0?e:e.slice(0,n),i=n<0?``:e.slice(n),a=t.projectId?`/p/${encodeURIComponent(t.projectId)}`:``,o=`/tasks/${encodeURIComponent(t.runId)}/files`,s=`/tasks/${encodeURIComponent(t.runId)}/report`,c=_e(r,o,a+s);if(c!==void 0)return c===null?null:c+i;if(ve.test(r))return null;let l=ye(r,t.basePath);return l===null?null:`${a}${j(l)?s:o}?path=${encodeURIComponent(l)}${i}`}var Z=`text-accent-text underline underline-offset-2`;function be({href:e,children:t,internal:n,...r}){let[a,o]=(0,v.useState)(!1),s=i();return e?n?s?(0,y.jsx)(xe,{...r,href:e,children:t}):(0,y.jsx)(`a`,{...r,href:e,"data-streamdown":`link`,className:Z,children:t}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`a`,{...r,href:e,"data-streamdown":`link`,className:`cursor-pointer ${Z}`,onClick:e=>{e.preventDefault(),o(!0)},children:t}),(0,y.jsx)(b,{isOpen:a,url:e,onClose:()=>o(!1),onConfirm:()=>{window.open(e,`_blank`,`noreferrer`),o(!1)}})]}):(0,y.jsx)(`span`,{children:t})}function xe({href:e,children:t,...n}){let i=o(),a=r();return(0,y.jsx)(`a`,{...n,href:e,"data-streamdown":`link`,className:Z,onClick:t=>Q(t,i,e,a),children:t})}function Q(e,t,n,r){e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(e.preventDefault(),t(n,{state:{readerFrom:r.pathname+r.search,filesRestoreKey:r.key}}))}var Se={name:`shiki`,type:`code-highlighter`,getThemes:()=>[d,d],getSupportedLanguages:()=>l(),supportsLanguage:e=>l().includes(String(e).toLowerCase()),highlight:({code:e,language:t},n)=>u(e,String(t))||(c(e,String(t)).then(e=>n?.(e)),null)};function Ce(){let e=t=>{if(!t.children)return;let n=[];for(let r of t.children)if(r.type===`text`&&r.value?.includes(`
|
|
4
|
-
`)){let e=r.value.split(/\r?\n/);e.forEach((t,r)=>{r>0&&!(t===``&&r===e.length-1)&&n.push({type:`break`}),t&&n.push({type:`text`,value:t})})}else e(r),n.push(r);t.children=n};return e}var $=[...Object.values(_),Ce],we=[`p`,`strong`,`em`,`del`,`code`,`a`],Te={p:`span`,a:`span`},Ee={enabled:!0,renderModal:e=>(0,y.jsx)(b,{...e})},De=`https://refused.invalid/`,Oe=0,ke=(0,v.memo)(function({children:e,breaks:t=!1,inline:n=!1,document:r=!1,imageSrc:i}){let o=(0,v.useContext)(J),s=(0,v.useMemo)(()=>{let e={instance:++Oe},n=new Set;function a(){let e=t=>{if((t.type===`link`||t.type===`definition`)&&t.url&&o){let e=X(t.url,o);e&&(t.url=e,n.add(e))}t.children?.forEach(e)};return e}let s=new Set;function c(){let e=t=>{if(t.type===`image`&&t.url&&i){let e=i(t.url);t.url=e?new URL(e,window.location.href).href:De,e&&s.add(t.url)}t.children?.forEach(e)};return e}let l=o?[[a,e]]:[],u=r&&i?[[c,e]]:[];return{remark:[...t?$:Object.values(_),...l,...u],components:{...o||r?{a:({href:e,children:t})=>r&&!o&&!/^(?:https?:|mailto:|#)/i.test(e??``)?(0,y.jsx)(`span`,{children:t}):(0,y.jsx)(be,{href:e,internal:n.has(e??``),children:t})}:{},...r?{img:({src:e,alt:t})=>typeof e==`string`&&s.has(e)?(0,y.jsx)(`img`,{src:e,alt:t??``,loading:`lazy`}):(0,y.jsxs)(`span`,{className:`text-muted-foreground`,children:[`[Image: `,t||`embedded image`,`]`]})}:{}}}},[o,t,r,i]);return(0,y.jsx)(re,{className:n?`thread-markdown thread-markdown-inline`:`thread-markdown`,plugins:{code:Se},shikiTheme:[d,d],...a({remarkPlugins:o||r&&i?s.remark:t?$:void 0,allowedElements:n?we:void 0,unwrapDisallowed:n||void 0,components:n?Te:o||r?s.components:void 0}),linkSafety:Ee,controls:{code:{copy:!0,download:!1},table:!1,mermaid:!1},lineNumbers:!1,children:e})});export{k as a,pe as c,E as d,X as i,me as l,Q as n,O as o,J as r,j as s,ke as t,w as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-BO2N2NFS-CM5F_Wdn.js";export{e as Mermaid};
|