@sourcegraph/amp 0.0.1749470495-ga92dad → 0.0.1749484890-g1470bb
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/amp.js +3 -3
- package/dist/client-B3f1MIKH.js +81 -0
- package/dist/{console-DjiPHC07.js → console-D6kgQJMG.js} +2496 -2479
- package/dist/{create_file.node-wMeiNPRY.js → create_file.node-DjXbCEr2.js} +1 -1
- package/dist/{edit_file.node-zheSg82z.js → edit_file.node-CM5KAkPN.js} +2 -2
- package/dist/{executable-DLkC3FIf.js → executable-Dmua6sVG.js} +1 -1
- package/dist/{files-DxXZFbCN.js → files-DseEn5FI.js} +1 -1
- package/dist/{glob.node-DMBP8NxK.js → glob.node-BB85S0Sb.js} +3 -3
- package/dist/{index-c_rnGsjF.js → index-HjlhZI8o.js} +1 -1
- package/dist/{list_directory.node-BPymje82.js → list_directory.node-C_ZOgUgM.js} +1 -1
- package/dist/{load-profile-CDD57j23.js → load-profile-RE0DpfHE.js} +1 -1
- package/dist/{main-C0YXppQM.js → main-D0ieja9K.js} +4644 -4591
- package/dist/{node-M7aoRuZI.js → node-02FlsTk6.js} +3 -3
- package/dist/{node-B5_7E1jQ.js → node-CCWJ79VN.js} +2 -2
- package/dist/{node-B-LsLVRT.js → node-CEoGZT-f.js} +2 -2
- package/dist/{node-G97pRVyC.js → node-CcE5LHgF.js} +1 -1
- package/dist/{node-BLyQYAD0.js → node-DExJ4Ua_.js} +2 -2
- package/dist/{node-DJqqmGeL.js → node-LIB1hKmD.js} +3 -3
- package/dist/{read_file.node-cUZpvR9L.js → read_file.node-CbKpLSq3.js} +1 -1
- package/dist/{stdio-BJQZc4G7.js → stdio-DLtFKHXi.js} +2 -2
- package/dist/storybook.js +1 -1
- package/dist/{undo_edit.node-D1QQpU-v.js → undo_edit.node-D021ZDrI.js} +1 -1
- package/package.json +1 -1
- package/dist/client-B6fNYcnB.js +0 -56
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { p as f } from "./index-
|
3
|
-
import { aF as m, g, m as c, aQ as h, aR as d, aS as b, aT as S, c as E, O as _ } from "./console-
|
4
|
-
import { r as v } from "./executable-
|
2
|
+
import { p as f } from "./index-HjlhZI8o.js";
|
3
|
+
import { aF as m, g, m as c, aQ as h, aR as d, aS as b, aT as S, c as E, O as _ } from "./console-D6kgQJMG.js";
|
4
|
+
import { r as v } from "./executable-Dmua6sVG.js";
|
5
5
|
const L = ({ args: a }, { dirs: s }) => {
|
6
6
|
for (const e of s)
|
7
7
|
m(e);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import * as le from "node:os";
|
3
3
|
import ee, { resolve as fe } from "node:path";
|
4
|
-
import { aW as de, aX as _e, C as pe, aY as ne, aZ as ge, a_ as ve, aL as oe, aT as me, aK as be, aF as Se, O as se } from "./console-
|
5
|
-
import { loadProfileEnvironmentVariables as Ce } from "./load-profile-
|
4
|
+
import { aW as de, aX as _e, C as pe, aY as ne, aZ as ge, a_ as ve, aL as oe, aT as me, aK as be, aF as Se, O as se } from "./console-D6kgQJMG.js";
|
5
|
+
import { loadProfileEnvironmentVariables as Ce } from "./load-profile-RE0DpfHE.js";
|
6
6
|
const ye = [
|
7
7
|
// Basic read/info operations
|
8
8
|
"ls",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { i as a, F as c, f as i } from "./client-
|
3
|
-
import { p as m, aU as l } from "./console-
|
2
|
+
import { i as a, F as c, f as i } from "./client-B3f1MIKH.js";
|
3
|
+
import { p as m, aU as l } from "./console-D6kgQJMG.js";
|
4
4
|
const h = ({ args: e }, { threadID: o }) => m(async (s) => {
|
5
5
|
try {
|
6
6
|
const r = await a.webSearch(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { q as x, o as A, n as g, y as Y, r as j, l as h, x as I, u as J, w as V, A as k, a$ as z, b0 as W, b1 as q, a8 as C, b2 as L, ac as D, b3 as M, aB as _, f as Z, b4 as G, b5 as H, b6 as F, b7 as K, O as Q, b8 as N, _ as X, aa as ee, C as te } from "./console-
|
3
|
-
import { r as se } from "./main-
|
2
|
+
import { q as x, o as A, n as g, y as Y, r as j, l as h, x as I, u as J, w as V, A as k, a$ as z, b0 as W, b1 as q, a8 as C, b2 as L, ac as D, b3 as M, aB as _, f as Z, b4 as G, b5 as H, b6 as F, b7 as K, O as Q, b8 as N, _ as X, aa as ee, C as te } from "./console-D6kgQJMG.js";
|
3
|
+
import { r as se } from "./main-D0ieja9K.js";
|
4
4
|
const S = A({
|
5
5
|
context: V(["continue", "none"]).optional().default("continue"),
|
6
6
|
tools: J([h("all"), x(g())]).optional(),
|
@@ -4,9 +4,9 @@ import * as i from "node:fs";
|
|
4
4
|
import * as o from "node:path";
|
5
5
|
import { join as p } from "node:path";
|
6
6
|
import { promisify as w } from "node:util";
|
7
|
-
import { U as h } from "./main-
|
8
|
-
import { N as y, C as n, aM as c } from "./console-
|
9
|
-
import { ripgrepFiles as d } from "./glob.node-
|
7
|
+
import { U as h } from "./main-D0ieja9K.js";
|
8
|
+
import { N as y, C as n, aM as c } from "./console-D6kgQJMG.js";
|
9
|
+
import { ripgrepFiles as d } from "./glob.node-BB85S0Sb.js";
|
10
10
|
import { homedir as F } from "node:os";
|
11
11
|
const g = p(F(), ".amp", "file-changes"), u = w(m);
|
12
12
|
function B(a) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { aN as F, p as d } from "./console-
|
2
|
+
import { aN as F, p as d } from "./console-D6kgQJMG.js";
|
3
3
|
const s = ({ args: n }, { dir: o, dirs: r, threadID: a, filesystem: e }) => {
|
4
4
|
const t = F({ readFileFn: e.readFile });
|
5
5
|
return d(
|
@@ -1,11 +1,11 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { ae as ee, z as re } from "./console-
|
2
|
+
import { ae as ee, z as re } from "./console-D6kgQJMG.js";
|
3
3
|
import ne from "node:child_process";
|
4
4
|
import D from "node:path";
|
5
5
|
import L from "node:fs";
|
6
6
|
import R from "node:process";
|
7
7
|
import { PassThrough as te } from "node:stream";
|
8
|
-
import { J as se } from "./main-
|
8
|
+
import { J as se } from "./main-D0ieja9K.js";
|
9
9
|
var S = { exports: {} }, T, k;
|
10
10
|
function oe() {
|
11
11
|
if (k) return T;
|
package/dist/storybook.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { aa as r, aD as a, as as c, aE as d, ay as f, az as x, ak as b, ax as I } from "./console-
|
2
|
+
import { aa as r, aD as a, as as c, aE as d, ay as f, az as x, ak as b, ax as I } from "./console-D6kgQJMG.js";
|
3
3
|
import { stdout as s } from "node:process";
|
4
4
|
import { parseArgs as w } from "node:util";
|
5
5
|
function D() {
|
@@ -3,7 +3,7 @@ import E from "node:crypto";
|
|
3
3
|
import d, { writeFile as D } from "node:fs/promises";
|
4
4
|
import g from "node:os";
|
5
5
|
import a from "node:path";
|
6
|
-
import { C as p, p as F, aF as C, aO as b, aP as _ } from "./console-
|
6
|
+
import { C as p, p as F, aF as C, aO as b, aP as _ } from "./console-D6kgQJMG.js";
|
7
7
|
class v {
|
8
8
|
MAX_TRACKED_EDITS = 50;
|
9
9
|
editQueue = [];
|
package/package.json
CHANGED
package/dist/client-B6fNYcnB.js
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
#!/usr/bin/env node
|
2
|
-
import { f as i, E as o, aV as c, s as p, p as u } from "./console-DjiPHC07.js";
|
3
|
-
const m = !0;
|
4
|
-
function f() {
|
5
|
-
return new Proxy(
|
6
|
-
{},
|
7
|
-
{
|
8
|
-
get: (e, t) => async (...r) => {
|
9
|
-
const s = r.at(1), a = r.at(0), n = await h("/api/internal", {
|
10
|
-
method: "POST",
|
11
|
-
body: JSON.stringify({ method: t, params: a }),
|
12
|
-
signal: s?.signal
|
13
|
-
});
|
14
|
-
if (!n.ok)
|
15
|
-
throw new Error(`API request failed: ${n.status}`);
|
16
|
-
return await n.json();
|
17
|
-
}
|
18
|
-
}
|
19
|
-
);
|
20
|
-
}
|
21
|
-
const y = f(), g = o.pipe(
|
22
|
-
p(({ settings: e, secrets: t }) => u(async () => await t.getToken("apiKey", e.url) !== void 0))
|
23
|
-
);
|
24
|
-
async function h(e, t) {
|
25
|
-
const r = await i(o, t?.signal ?? void 0);
|
26
|
-
return w(r, e, t);
|
27
|
-
}
|
28
|
-
async function w(e, t, r) {
|
29
|
-
if (t.startsWith("http:") || t.startsWith("https:"))
|
30
|
-
throw new Error("input must be a path, not an absolute URL");
|
31
|
-
if (!t.startsWith("/"))
|
32
|
-
throw new Error("pathAndQuery must start with /");
|
33
|
-
const s = e.settings.url;
|
34
|
-
if (!s)
|
35
|
-
throw new Error("amp.url is not set");
|
36
|
-
const a = await e.secrets.getToken("apiKey", s);
|
37
|
-
if (!a || a.trim() === "") {
|
38
|
-
const n = new Error("Amp API key is not set");
|
39
|
-
throw n.name = "MissingApiKeyError", n;
|
40
|
-
}
|
41
|
-
return fetch(new URL(t, s), {
|
42
|
-
...r,
|
43
|
-
headers: {
|
44
|
-
...r?.headers,
|
45
|
-
...c(),
|
46
|
-
"Content-Type": "application/json",
|
47
|
-
Authorization: `Bearer ${a}`
|
48
|
-
}
|
49
|
-
});
|
50
|
-
}
|
51
|
-
export {
|
52
|
-
m as F,
|
53
|
-
g as a,
|
54
|
-
h as f,
|
55
|
-
y as i
|
56
|
-
};
|