@sourcegraph/cody-web 0.7.7 → 0.8.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/dist/{agent.worker-BZzA02C_.mjs → agent.worker-CpzEAjEs.mjs} +5621 -6158
- package/dist/agent.worker.js +2 -2
- package/dist/{browser-hDxNMh5y.mjs → browser-7p2xtDk0.mjs} +7051 -6548
- package/dist/{git-log-PGCFF8k9.mjs → git-log-C_pMreBK.mjs} +2 -2
- package/dist/{index-CoR5ltqq.mjs → index-BY36TK4z.mjs} +36 -8
- package/dist/index.js +2541 -649
- package/dist/lib/agent/agent.client.d.ts.map +1 -1
- package/dist/{shell-CWTEC0Ll.mjs → shell-Ct82N9eV.mjs} +4 -3
- package/dist/style.css +654 -1098
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/util-DHv3aBr3.mjs +28 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as path, U as Uri, s as spawn } from "./agent.worker-
|
|
2
|
-
import { w as wrapInActiveSpan, C as ContextItemSource } from "./browser-
|
|
1
|
+
import { p as path, U as Uri, s as spawn } from "./agent.worker-CpzEAjEs.mjs";
|
|
2
|
+
import { w as wrapInActiveSpan, C as ContextItemSource } from "./browser-7p2xtDk0.mjs";
|
|
3
3
|
async function getContextFileFromGitLog(file, options) {
|
|
4
4
|
return wrapInActiveSpan("commands.context.git-log", async (span) => {
|
|
5
5
|
const cwd = path.dirname(file.fsPath);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { U as Uri, P as Position, R as Range, w as window, D as DiagnosticSeverity, b as workspace,
|
|
5
|
-
import { t as telemetryRecorder, p as ps, d as dedent } from "./browser-
|
|
4
|
+
import { U as Uri, P as Position, R as Range, w as window, D as DiagnosticSeverity, b as workspace, u as updateRangeMultipleChanges, c as commands, d as executeEdit, T as TERMINAL_EDIT_STATES, f as ThemeColor, g as languages, C as CodeLens, h as setTutorialUri, i as logSidebarClick, j as Disposable } from "./agent.worker-CpzEAjEs.mjs";
|
|
5
|
+
import { t as telemetryRecorder, p as ps, d as dedent } from "./browser-7p2xtDk0.mjs";
|
|
6
6
|
const EMOJI_SVG_TEMPLATE = `<svg width="32" height="32" xmlns="http://www.w3.org/2000/svg">
|
|
7
7
|
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="Arial" font-size="24px">{emoji}</text>
|
|
8
8
|
</svg>`;
|
|
@@ -59,7 +59,11 @@ const registerEditTutorialCommand = (editor, onComplete, range) => {
|
|
|
59
59
|
"cody.tutorial.edit",
|
|
60
60
|
async (_document, source = "editor") => {
|
|
61
61
|
telemetryRecorder.recordEvent("cody.interactiveTutorial", "edit", {
|
|
62
|
-
privateMetadata: { source }
|
|
62
|
+
privateMetadata: { source },
|
|
63
|
+
billingMetadata: {
|
|
64
|
+
product: "cody",
|
|
65
|
+
category: "billable"
|
|
66
|
+
}
|
|
63
67
|
});
|
|
64
68
|
editor.setDecorations(TODO_DECORATION, []);
|
|
65
69
|
const task = await executeEdit({
|
|
@@ -87,7 +91,11 @@ const registerChatTutorialCommand = (onComplete) => {
|
|
|
87
91
|
"cody.tutorial.chat",
|
|
88
92
|
async (_document, source = "editor") => {
|
|
89
93
|
telemetryRecorder.recordEvent("cody.interactiveTutorial", "chat", {
|
|
90
|
-
privateMetadata: { source }
|
|
94
|
+
privateMetadata: { source },
|
|
95
|
+
billingMetadata: {
|
|
96
|
+
product: "cody",
|
|
97
|
+
category: "billable"
|
|
98
|
+
}
|
|
91
99
|
});
|
|
92
100
|
await commands.executeCommand("cody.chat.newEditorPanel");
|
|
93
101
|
onComplete();
|
|
@@ -326,7 +334,12 @@ const startTutorial = async (document) => {
|
|
|
326
334
|
const editor = await window.showTextDocument(document);
|
|
327
335
|
const diagnosticCollection = languages.createDiagnosticCollection("codyTutorial");
|
|
328
336
|
disposables.push(diagnosticCollection);
|
|
329
|
-
telemetryRecorder.recordEvent("cody.interactiveTutorial", "started"
|
|
337
|
+
telemetryRecorder.recordEvent("cody.interactiveTutorial", "started", {
|
|
338
|
+
billingMetadata: {
|
|
339
|
+
product: "cody",
|
|
340
|
+
category: "billable"
|
|
341
|
+
}
|
|
342
|
+
});
|
|
330
343
|
let activeStep = null;
|
|
331
344
|
let activeRangeListener;
|
|
332
345
|
let successListener;
|
|
@@ -350,11 +363,21 @@ const startTutorial = async (document) => {
|
|
|
350
363
|
const progressToNextStep = async () => {
|
|
351
364
|
const nextStep = (activeStep == null ? void 0 : activeStep.key) ? getNextStep(activeStep.key) : "autocomplete";
|
|
352
365
|
if (activeStep == null ? void 0 : activeStep.key) {
|
|
353
|
-
telemetryRecorder.recordEvent("cody.interactiveTutorial.stepComplete", activeStep.key
|
|
366
|
+
telemetryRecorder.recordEvent("cody.interactiveTutorial.stepComplete", activeStep.key, {
|
|
367
|
+
billingMetadata: {
|
|
368
|
+
product: "cody",
|
|
369
|
+
category: "billable"
|
|
370
|
+
}
|
|
371
|
+
});
|
|
354
372
|
}
|
|
355
373
|
if (nextStep === null) {
|
|
356
374
|
editor.setDecorations(TODO_DECORATION, []);
|
|
357
|
-
telemetryRecorder.recordEvent("cody.interactiveTutorial", "finished"
|
|
375
|
+
telemetryRecorder.recordEvent("cody.interactiveTutorial", "finished", {
|
|
376
|
+
billingMetadata: {
|
|
377
|
+
product: "cody",
|
|
378
|
+
category: "billable"
|
|
379
|
+
}
|
|
380
|
+
});
|
|
358
381
|
return;
|
|
359
382
|
}
|
|
360
383
|
switch (activeStep == null ? void 0 : activeStep.key) {
|
|
@@ -491,7 +514,12 @@ const registerInteractiveTutorial = async (context) => {
|
|
|
491
514
|
return start();
|
|
492
515
|
}),
|
|
493
516
|
commands.registerCommand("cody.tutorial.reset", async () => {
|
|
494
|
-
telemetryRecorder.recordEvent("cody.interactiveTutorial", "reset"
|
|
517
|
+
telemetryRecorder.recordEvent("cody.interactiveTutorial", "reset", {
|
|
518
|
+
billingMetadata: {
|
|
519
|
+
product: "cody",
|
|
520
|
+
category: "billable"
|
|
521
|
+
}
|
|
522
|
+
});
|
|
495
523
|
stop();
|
|
496
524
|
document = await resetDocument(documentUri);
|
|
497
525
|
return start();
|