@sourcegraph/amp 0.0.1749369681-gcb962c → 0.0.1749398499-gd5401b
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-DTzW73uz.js → client-BHg0B1gY.js} +1 -1
- package/dist/{console-y67QVOnq.js → console-AOzQ_ChO.js} +7200 -7346
- package/dist/{create_file.node-DcbxPRCo.js → create_file.node-CWA3ikIc.js} +1 -1
- package/dist/{edit_file.node-BzuwKM4U.js → edit_file.node-D0SPvrAR.js} +6 -6
- package/dist/{executable-3LtkLCkg.js → executable-CexPFAeR.js} +1 -1
- package/dist/{files-BKykRAj_.js → files-DJ9Ggney.js} +1 -1
- package/dist/{glob.node-0aiTM2uj.js → glob.node-BkeK_I3Y.js} +13 -13
- package/dist/{index-CxZeQtZd.js → index-b7IwVQMF.js} +1 -1
- package/dist/{list_directory.node-BHBAWKs9.js → list_directory.node-CkHsNFUL.js} +1 -1
- package/dist/{load-profile-ByMlljkK.js → load-profile-CgqqG-Jd.js} +1 -1
- package/dist/{main-ZqwwFYVP.js → main-B7T3eQkm.js} +5490 -5327
- package/dist/{node-CBVVO7Sa.js → node-CWGT6Jli.js} +3 -3
- package/dist/{node-Bhg3LIM_.js → node-CqlU-1jK.js} +23 -23
- package/dist/{node-BsiQP3my.js → node-DAwRkfCt.js} +7 -7
- package/dist/{node-BZajtarc.js → node-DL3FieOl.js} +2 -2
- package/dist/{node-Dpdvn72g.js → node-MjemfZlN.js} +1 -1
- package/dist/{node-DZkXAXAZ.js → node-lDdIpwWA.js} +11 -11
- package/dist/{read_file.node-DymlpH5N.js → read_file.node-CP1xSUyM.js} +1 -1
- package/dist/{stdio-CWvuDeyJ.js → stdio-BS9F5QTi.js} +2 -2
- package/dist/storybook.js +7 -7
- package/dist/{undo_edit.node-DonqqKq5.js → undo_edit.node-Bgfb1t1A.js} +8 -8
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import u from "node:path";
|
3
|
-
import { p as d,
|
3
|
+
import { p as d, aF as f, aG as l } from "./console-AOzQ_ChO.js";
|
4
4
|
const w = ({ args: t }, { dir: a, dirs: n, trackFileChange: c, filesystem: o }) => d(async (e) => {
|
5
5
|
if (f(a), typeof t.content != "string")
|
6
6
|
throw new Error("create_file: content must be specified");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { p,
|
3
|
-
import { recordEdit as x } from "./undo_edit.node-
|
4
|
-
class
|
2
|
+
import { p, aF as m, aG as F, aH as v, aI as _, aJ as b } from "./console-AOzQ_ChO.js";
|
3
|
+
import { recordEdit as x } from "./undo_edit.node-Bgfb1t1A.js";
|
4
|
+
class y {
|
5
5
|
#e = !1;
|
6
6
|
#t = [];
|
7
7
|
/**
|
@@ -21,10 +21,10 @@ class E {
|
|
21
21
|
this.#t.length > 0 ? this.#t.shift()?.() : this.#e = !1;
|
22
22
|
}
|
23
23
|
}
|
24
|
-
const l = new
|
24
|
+
const l = new y(), k = ({ args: e }, { dir: t, dirs: d, threadID: u, trackFileChange: h, filesystem: i }) => p(async (a) => {
|
25
25
|
await l.acquire();
|
26
26
|
try {
|
27
|
-
|
27
|
+
E(e), m(t);
|
28
28
|
const r = await F(i, d, e.path, a);
|
29
29
|
if (!i.exclusiveWriter) {
|
30
30
|
const s = v(r, u), c = await i.getMtime(r);
|
@@ -58,7 +58,7 @@ const l = new E(), k = ({ args: e }, { dir: t, dirs: d, threadID: u, trackFileCh
|
|
58
58
|
l.release();
|
59
59
|
}
|
60
60
|
});
|
61
|
-
function
|
61
|
+
function E(e) {
|
62
62
|
if (e = b.parse(e), e.old_str === e.new_str)
|
63
63
|
throw new Error("old_str and new_str must be different from each other.");
|
64
64
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import { existsSync as o } from "node:fs";
|
3
3
|
import { createRequire as t } from "node:module";
|
4
|
-
import { C as i } from "./console-
|
4
|
+
import { C as i } from "./console-AOzQ_ChO.js";
|
5
5
|
function u() {
|
6
6
|
{
|
7
7
|
if (process.env.AMP_RIPGREP_PATH)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import T from "node:path";
|
3
|
-
import {
|
3
|
+
import { b9 as B, ba as I, C as v, bb as z, bc as C } from "./console-AOzQ_ChO.js";
|
4
4
|
async function A(r, h, a) {
|
5
5
|
const x = await a.listFiles(h), i = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), m = [], M = /\b([\w/_-]+(?:\\.|[\w/_-])*(?:\.[\w-]+)+)\b/g, F = /(\/(?:[\w-]+\/|[\w-]+\\[.\s\S])+[\w.-]+(?:\\.|[\w.-])*(?:\.[\w-]+)+)\b/g, y = /\b([A-Za-z]:[\\\\][^\s"'<>|]*(?:\.[\w-]+)+)\b/g;
|
6
6
|
await l(M, !1), await l(F, !0), await l(y, !0);
|
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import { spawn as w } from "node:child_process";
|
3
|
-
import { p as I } from "./index-
|
4
|
-
import { O as v, g as N, m as E, C as P,
|
5
|
-
import { r as D } from "./executable-
|
6
|
-
const
|
3
|
+
import { p as I } from "./index-b7IwVQMF.js";
|
4
|
+
import { O as v, g as N, m as E, C as P, aF as R } from "./console-AOzQ_ChO.js";
|
5
|
+
import { r as D } from "./executable-CexPFAeR.js";
|
6
|
+
const y = ({ args: i }, { dirs: r }) => {
|
7
7
|
if (r.length === 0)
|
8
8
|
return new v((s) => {
|
9
9
|
s.next({
|
@@ -12,11 +12,11 @@ const S = ({ args: i }, { dirs: r }) => {
|
|
12
12
|
}), s.complete();
|
13
13
|
});
|
14
14
|
const n = {};
|
15
|
-
return i.limit !== void 0 && (n.limit = i.limit), i.offset !== void 0 && (n.offset = i.offset),
|
15
|
+
return i.limit !== void 0 && (n.limit = i.limit), i.offset !== void 0 && (n.offset = i.offset), F(r, i.filePattern, n);
|
16
16
|
};
|
17
|
-
function
|
17
|
+
function F(i, r, n) {
|
18
18
|
return N(
|
19
|
-
...i.map((s) =>
|
19
|
+
...i.map((s) => O(s, r, n))
|
20
20
|
).pipe(
|
21
21
|
E((s) => {
|
22
22
|
const t = [];
|
@@ -38,12 +38,12 @@ function O(i, r, n) {
|
|
38
38
|
})
|
39
39
|
);
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function O(i, r, n) {
|
42
42
|
return R(i), new v((s) => {
|
43
43
|
s.next({
|
44
44
|
status: "in-progress",
|
45
45
|
progress: []
|
46
|
-
}),
|
46
|
+
}), b(i.fsPath, r ? { pattern: r, caseInsensitive: !0 } : null, n ?? {}).then(({ files: t, remaining: o }) => {
|
47
47
|
o > 0 && t.push(`--- ${o} more files not shown ---`), s.next({
|
48
48
|
status: "done",
|
49
49
|
progress: t,
|
@@ -60,7 +60,7 @@ function b(i, r, n) {
|
|
60
60
|
});
|
61
61
|
}
|
62
62
|
const f = 5e5;
|
63
|
-
function
|
63
|
+
function b(i, r, n) {
|
64
64
|
const s = n.limit ?? f;
|
65
65
|
r?.pattern && r.pattern === "*" && (r.pattern = "**");
|
66
66
|
const t = r?.pattern ? I(r.pattern, { nocase: r.caseInsensitive, dot: !0 }) : void 0, o = [
|
@@ -130,7 +130,7 @@ ${h}`));
|
|
130
130
|
});
|
131
131
|
}
|
132
132
|
export {
|
133
|
-
|
134
|
-
|
135
|
-
|
133
|
+
F as globFilesWithRipgrep,
|
134
|
+
y as nodeGlobTool,
|
135
|
+
b as ripgrepFiles
|
136
136
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import c from "node:fs/promises";
|
3
3
|
import u from "node:os";
|
4
4
|
import s from "node:path";
|
5
|
-
import { O as f,
|
5
|
+
import { O as f, aK as i, aL as l, m, aM as p } from "./console-AOzQ_ChO.js";
|
6
6
|
const D = ({ args: r }, { dirs: t }) => {
|
7
7
|
if (t.length === 0)
|
8
8
|
return new f((e) => {
|