@sourcegraph/amp 0.0.1748390507-geb181a → 0.0.1748404992-ga3f78f

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.
Files changed (44) hide show
  1. package/dist/amp.js +3 -3
  2. package/dist/{client-D37xwk4h.js → client-BG3r9aH9.js} +2 -2
  3. package/dist/{client-D37xwk4h.js.map → client-BG3r9aH9.js.map} +1 -1
  4. package/dist/{color-BV9wbewg.js → color-Cj45sRkS.js} +87 -87
  5. package/dist/color-Cj45sRkS.js.map +1 -0
  6. package/dist/{create_file.node-D2LDnTZ6.js → create_file.node-0vS2hejR.js} +2 -2
  7. package/dist/{create_file.node-D2LDnTZ6.js.map → create_file.node-0vS2hejR.js.map} +1 -1
  8. package/dist/{edit_file.node-Ccrf_Tyh.js → edit_file.node-it4wJ5TR.js} +3 -3
  9. package/dist/{edit_file.node-Ccrf_Tyh.js.map → edit_file.node-it4wJ5TR.js.map} +1 -1
  10. package/dist/{executable-DndKF3B_.js → executable-9B5WLKFI.js} +2 -2
  11. package/dist/{executable-DndKF3B_.js.map → executable-9B5WLKFI.js.map} +1 -1
  12. package/dist/{files-CApLN3XI.js → files-B2BG6wGh.js} +2 -2
  13. package/dist/{files-CApLN3XI.js.map → files-B2BG6wGh.js.map} +1 -1
  14. package/dist/{glob.node-C_0Pojo_.js → glob.node-CSXwSKG2.js} +3 -3
  15. package/dist/{glob.node-C_0Pojo_.js.map → glob.node-CSXwSKG2.js.map} +1 -1
  16. package/dist/{list_directory.node-CChuHPoL.js → list_directory.node-BFm1qTEf.js} +2 -2
  17. package/dist/{list_directory.node-CChuHPoL.js.map → list_directory.node-BFm1qTEf.js.map} +1 -1
  18. package/dist/{load-profile-CBXx5Izf.js → load-profile-Cj-UxFl1.js} +2 -2
  19. package/dist/{load-profile-CBXx5Izf.js.map → load-profile-Cj-UxFl1.js.map} +1 -1
  20. package/dist/main-DzIUGnTp.js +39434 -0
  21. package/dist/main-DzIUGnTp.js.map +1 -0
  22. package/dist/{node-gL35nPzg.js → node--F98eUbP.js} +2 -2
  23. package/dist/{node-gL35nPzg.js.map → node--F98eUbP.js.map} +1 -1
  24. package/dist/{node-BGD834Zv.js → node-3f9fJ7aL.js} +2 -2
  25. package/dist/{node-BGD834Zv.js.map → node-3f9fJ7aL.js.map} +1 -1
  26. package/dist/{node-B8I2GAD6.js → node-COM1O9lA.js} +3 -3
  27. package/dist/{node-B8I2GAD6.js.map → node-COM1O9lA.js.map} +1 -1
  28. package/dist/{node-BcU66Cp7.js → node-CPx25-dA.js} +3 -3
  29. package/dist/{node-BcU66Cp7.js.map → node-CPx25-dA.js.map} +1 -1
  30. package/dist/{node-BolndRJs.js → node-I7oKorpb.js} +23 -23
  31. package/dist/{node-BolndRJs.js.map → node-I7oKorpb.js.map} +1 -1
  32. package/dist/{node-DgFnFiEl.js → node-z_wuLuYG.js} +3 -3
  33. package/dist/{node-DgFnFiEl.js.map → node-z_wuLuYG.js.map} +1 -1
  34. package/dist/{read_file.node-FBiGQRUp.js → read_file.node-BPyNHNAZ.js} +2 -2
  35. package/dist/{read_file.node-FBiGQRUp.js.map → read_file.node-BPyNHNAZ.js.map} +1 -1
  36. package/dist/{stdio-BWKt1HvU.js → stdio-BDGixFiw.js} +20 -20
  37. package/dist/{stdio-BWKt1HvU.js.map → stdio-BDGixFiw.js.map} +1 -1
  38. package/dist/storybook.js +4 -4
  39. package/dist/{undo_edit.node-NCKppvcB.js → undo_edit.node-BdqjDOxO.js} +10 -10
  40. package/dist/{undo_edit.node-NCKppvcB.js.map → undo_edit.node-BdqjDOxO.js.map} +1 -1
  41. package/package.json +1 -1
  42. package/dist/color-BV9wbewg.js.map +0 -1
  43. package/dist/main-BzLjPVuG.js +0 -36499
  44. package/dist/main-BzLjPVuG.js.map +0 -1
package/dist/amp.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import "./color-BV9wbewg.js";
3
- import "./main-BzLjPVuG.js";
2
+ import "./color-Cj45sRkS.js";
3
+ import "./main-DzIUGnTp.js";
4
4
  import "node:crypto";
5
5
  import "node:fs/promises";
6
6
  import "node:path";
7
7
  import "node:process";
8
- import "./client-D37xwk4h.js";
8
+ import "./client-BG3r9aH9.js";
9
9
  //# sourceMappingURL=amp.js.map
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { f as i, r as o, ba as n, s as p, p as c } from "./color-BV9wbewg.js";
2
+ import { f as i, r as o, ba as n, s as p, p as c } from "./color-Cj45sRkS.js";
3
3
  const u = o.pipe(
4
4
  p(({ settings: e, secrets: t }) => c(async () => await t.getToken("apiKey", e.url) !== void 0))
5
5
  );
@@ -32,4 +32,4 @@ export {
32
32
  w as f,
33
33
  u as i
34
34
  };
35
- //# sourceMappingURL=client-D37xwk4h.js.map
35
+ //# sourceMappingURL=client-BG3r9aH9.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-D37xwk4h.js","sources":["../../core/src/server-api/client.ts"],"sourcesContent":["import type { ThreadOperatorShare } from '@sourcegraph/amp-api-types'\nimport type { Observable } from '@sourcegraph/observable'\nimport {\n\tdistinctUntilChanged,\n\tfirstValueFrom,\n\tmap,\n\ttype pendingOperation,\n\tpromiseFactoryToObservable,\n\tswitchMap,\n\tswitchMapReplayOperation,\n} from '@sourcegraph/observable'\nimport { isEqualJSON } from '../common/isEqualJSON'\nimport { type PickResolvedConfiguration, resolvedConfig } from '../configuration/resolver'\nimport { clientIdentificationHeaders } from '../misc/known-clients'\nimport type { ThreadID } from '../threads/thread'\nimport type { ThreadService } from '../threads/thread-service'\n\nexport const isAmpServerConfigured = resolvedConfig.pipe(\n\tswitchMap(({ settings, secrets }) => {\n\t\treturn promiseFactoryToObservable(async () => {\n\t\t\tconst apiKey = await secrets.getToken('apiKey', settings.url)\n\t\t\treturn apiKey !== undefined\n\t\t})\n\t}),\n)\n\n/**\n * Returns the URL to a thread on the Amp server.\n */\nexport function threadURL(ampURL: URL, threadID: ThreadID): URL {\n\treturn new URL(`/threads/${threadID}`, ampURL)\n}\n\n/**\n * Makes a request to the Amp API with the proper configuration\n */\nexport async function fetchFromAmpServer(\n\tpathAndQuery: string,\n\tinit?: RequestInit,\n): Promise<Response> {\n\tconst config = await firstValueFrom(resolvedConfig, init?.signal ?? undefined)\n\treturn fetchFromAmpServerWithConfig(config, pathAndQuery, init)\n}\n\nexport function watchOnAmpServer<T>(\n\tpathAndQuery: string,\n\tinit?: Omit<RequestInit, 'signal'>,\n): Observable<T | typeof pendingOperation | Error> {\n\treturn resolvedConfig.pipe(\n\t\tmap(\n\t\t\t({ settings, secrets }) =>\n\t\t\t\t({\n\t\t\t\t\tsettings: {\n\t\t\t\t\t\turl: settings.url,\n\t\t\t\t\t},\n\t\t\t\t\tsecrets,\n\t\t\t\t}) satisfies PickResolvedConfiguration<{\n\t\t\t\t\tsettings: 'url'\n\t\t\t\t\tsecrets: true\n\t\t\t\t}>,\n\t\t),\n\t\tdistinctUntilChanged(\n\t\t\t(a, b) => isEqualJSON(a.settings, b.settings) && a.secrets === b.secrets,\n\t\t),\n\t\tswitchMapReplayOperation((config) =>\n\t\t\tpromiseFactoryToObservable(async (signal) => {\n\t\t\t\tconst resp = await fetchFromAmpServerWithConfig(config, pathAndQuery, {\n\t\t\t\t\t...init,\n\t\t\t\t\tsignal,\n\t\t\t\t})\n\t\t\t\tif (!resp.ok) {\n\t\t\t\t\tconst text = await resp.text()\n\t\t\t\t\tif (text) {\n\t\t\t\t\t\tthrow new Error(`HTTP ${resp.status}: ${text}`)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Error(`HTTP ${resp.status}`)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn (await resp.json()) as T\n\t\t\t}),\n\t\t),\n\t)\n}\n\n/**\n * Share a thread with the operator (i.e., the Amp team).\n */\nexport async function shareThreadWithOperator(\n\tthreadService: ThreadService,\n\tthreadID: ThreadID,\n): Promise<void> {\n\tconst thread = await firstValueFrom(threadService.observe(threadID))\n\tif (!thread) {\n\t\tthrow new Error(`Thread not found: ${threadID}`)\n\t}\n\n\tconst response = await fetchFromAmpServer('/api/internal/share-thread-with-operator', {\n\t\tmethod: 'POST',\n\t\theaders: {\n\t\t\t'Content-Type': 'application/json',\n\t\t},\n\t\tbody: JSON.stringify({ threadData: thread } as Pick<ThreadOperatorShare, 'threadData'>),\n\t})\n\tif (!response.ok) {\n\t\tconst text = await response.text()\n\t\tthrow new Error(`Failed to share thread: ${response.status} ${text}`)\n\t}\n}\n\nasync function fetchFromAmpServerWithConfig(\n\tconfig: PickResolvedConfiguration<{\n\t\tsettings: 'url'\n\t\tsecrets: true\n\t}>,\n\tpathAndQuery: string,\n\tinit?: RequestInit,\n): Promise<Response> {\n\tif (pathAndQuery.startsWith('http:') || pathAndQuery.startsWith('https:')) {\n\t\tthrow new Error('input must be a path, not an absolute URL')\n\t}\n\tif (!pathAndQuery.startsWith('/')) {\n\t\tthrow new Error('pathAndQuery must start with /')\n\t}\n\n\tconst baseURL = config.settings.url\n\tif (!baseURL) {\n\t\tthrow new Error('amp.url is not set')\n\t}\n\n\tconst apiKey = await config.secrets.getToken('apiKey', baseURL)\n\tif (!apiKey) {\n\t\tthrow new Error('Amp API key is not set')\n\t}\n\n\treturn fetch(new URL(pathAndQuery, baseURL), {\n\t\t...init,\n\t\theaders: {\n\t\t\t...init?.headers,\n\t\t\t...clientIdentificationHeaders(),\n\t\t\t'Content-Type': 'application/json',\n\t\t\tAuthorization: `Bearer ${apiKey}`,\n\t\t},\n\t})\n}\n"],"names":["isAmpServerConfigured","resolvedConfig","switchMap","settings","secrets","promiseFactoryToObservable","fetchFromAmpServer","pathAndQuery","init","config","firstValueFrom","fetchFromAmpServerWithConfig","baseURL","apiKey","clientIdentificationHeaders"],"mappings":";;AAiBO,MAAMA,IAAwBC,EAAe;AAAA,EACnDC,EAAU,CAAC,EAAE,UAAAC,GAAU,SAAAC,QACfC,EAA2B,YAClB,MAAMD,EAAQ,SAAS,UAAUD,EAAS,GAAG,MAC1C,MAClB,CACD;AACF;AAYsB,eAAAG,EACrBC,GACAC,GACoB;AACpB,QAAMC,IAAS,MAAMC,EAAeT,GAAgBO,GAAM,UAAU,MAAS;AACtE,SAAAG,EAA6BF,GAAQF,GAAcC,CAAI;AAC/D;AAmEA,eAAeG,EACdF,GAIAF,GACAC,GACoB;AACpB,MAAID,EAAa,WAAW,OAAO,KAAKA,EAAa,WAAW,QAAQ;AACjE,UAAA,IAAI,MAAM,2CAA2C;AAE5D,MAAI,CAACA,EAAa,WAAW,GAAG;AACzB,UAAA,IAAI,MAAM,gCAAgC;AAG3C,QAAAK,IAAUH,EAAO,SAAS;AAChC,MAAI,CAACG;AACE,UAAA,IAAI,MAAM,oBAAoB;AAGrC,QAAMC,IAAS,MAAMJ,EAAO,QAAQ,SAAS,UAAUG,CAAO;AAC9D,MAAI,CAACC;AACE,UAAA,IAAI,MAAM,wBAAwB;AAGzC,SAAO,MAAM,IAAI,IAAIN,GAAcK,CAAO,GAAG;AAAA,IAC5C,GAAGJ;AAAA,IACH,SAAS;AAAA,MACR,GAAGA,GAAM;AAAA,MACT,GAAGM,EAA4B;AAAA,MAC/B,gBAAgB;AAAA,MAChB,eAAe,UAAUD,CAAM;AAAA,IAAA;AAAA,EAChC,CACA;AACF;"}
1
+ {"version":3,"file":"client-BG3r9aH9.js","sources":["../../core/src/server-api/client.ts"],"sourcesContent":["import type { ThreadOperatorShare } from '@sourcegraph/amp-api-types'\nimport type { Observable } from '@sourcegraph/observable'\nimport {\n\tdistinctUntilChanged,\n\tfirstValueFrom,\n\tmap,\n\ttype pendingOperation,\n\tpromiseFactoryToObservable,\n\tswitchMap,\n\tswitchMapReplayOperation,\n} from '@sourcegraph/observable'\nimport { isEqualJSON } from '../common/isEqualJSON'\nimport { type PickResolvedConfiguration, resolvedConfig } from '../configuration/resolver'\nimport { clientIdentificationHeaders } from '../misc/known-clients'\nimport type { ThreadID } from '../threads/thread'\nimport type { ThreadService } from '../threads/thread-service'\n\nexport const isAmpServerConfigured = resolvedConfig.pipe(\n\tswitchMap(({ settings, secrets }) => {\n\t\treturn promiseFactoryToObservable(async () => {\n\t\t\tconst apiKey = await secrets.getToken('apiKey', settings.url)\n\t\t\treturn apiKey !== undefined\n\t\t})\n\t}),\n)\n\n/**\n * Returns the URL to a thread on the Amp server.\n */\nexport function threadURL(ampURL: URL, threadID: ThreadID): URL {\n\treturn new URL(`/threads/${threadID}`, ampURL)\n}\n\n/**\n * Makes a request to the Amp API with the proper configuration\n */\nexport async function fetchFromAmpServer(\n\tpathAndQuery: string,\n\tinit?: RequestInit,\n): Promise<Response> {\n\tconst config = await firstValueFrom(resolvedConfig, init?.signal ?? undefined)\n\treturn fetchFromAmpServerWithConfig(config, pathAndQuery, init)\n}\n\nexport function watchOnAmpServer<T>(\n\tpathAndQuery: string,\n\tinit?: Omit<RequestInit, 'signal'>,\n): Observable<T | typeof pendingOperation | Error> {\n\treturn resolvedConfig.pipe(\n\t\tmap(\n\t\t\t({ settings, secrets }) =>\n\t\t\t\t({\n\t\t\t\t\tsettings: {\n\t\t\t\t\t\turl: settings.url,\n\t\t\t\t\t},\n\t\t\t\t\tsecrets,\n\t\t\t\t}) satisfies PickResolvedConfiguration<{\n\t\t\t\t\tsettings: 'url'\n\t\t\t\t\tsecrets: true\n\t\t\t\t}>,\n\t\t),\n\t\tdistinctUntilChanged(\n\t\t\t(a, b) => isEqualJSON(a.settings, b.settings) && a.secrets === b.secrets,\n\t\t),\n\t\tswitchMapReplayOperation((config) =>\n\t\t\tpromiseFactoryToObservable(async (signal) => {\n\t\t\t\tconst resp = await fetchFromAmpServerWithConfig(config, pathAndQuery, {\n\t\t\t\t\t...init,\n\t\t\t\t\tsignal,\n\t\t\t\t})\n\t\t\t\tif (!resp.ok) {\n\t\t\t\t\tconst text = await resp.text()\n\t\t\t\t\tif (text) {\n\t\t\t\t\t\tthrow new Error(`HTTP ${resp.status}: ${text}`)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Error(`HTTP ${resp.status}`)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn (await resp.json()) as T\n\t\t\t}),\n\t\t),\n\t)\n}\n\n/**\n * Share a thread with the operator (i.e., the Amp team).\n */\nexport async function shareThreadWithOperator(\n\tthreadService: ThreadService,\n\tthreadID: ThreadID,\n): Promise<void> {\n\tconst thread = await firstValueFrom(threadService.observe(threadID))\n\tif (!thread) {\n\t\tthrow new Error(`Thread not found: ${threadID}`)\n\t}\n\n\tconst response = await fetchFromAmpServer('/api/internal/share-thread-with-operator', {\n\t\tmethod: 'POST',\n\t\theaders: {\n\t\t\t'Content-Type': 'application/json',\n\t\t},\n\t\tbody: JSON.stringify({ threadData: thread } as Pick<ThreadOperatorShare, 'threadData'>),\n\t})\n\tif (!response.ok) {\n\t\tconst text = await response.text()\n\t\tthrow new Error(`Failed to share thread: ${response.status} ${text}`)\n\t}\n}\n\nasync function fetchFromAmpServerWithConfig(\n\tconfig: PickResolvedConfiguration<{\n\t\tsettings: 'url'\n\t\tsecrets: true\n\t}>,\n\tpathAndQuery: string,\n\tinit?: RequestInit,\n): Promise<Response> {\n\tif (pathAndQuery.startsWith('http:') || pathAndQuery.startsWith('https:')) {\n\t\tthrow new Error('input must be a path, not an absolute URL')\n\t}\n\tif (!pathAndQuery.startsWith('/')) {\n\t\tthrow new Error('pathAndQuery must start with /')\n\t}\n\n\tconst baseURL = config.settings.url\n\tif (!baseURL) {\n\t\tthrow new Error('amp.url is not set')\n\t}\n\n\tconst apiKey = await config.secrets.getToken('apiKey', baseURL)\n\tif (!apiKey) {\n\t\tthrow new Error('Amp API key is not set')\n\t}\n\n\treturn fetch(new URL(pathAndQuery, baseURL), {\n\t\t...init,\n\t\theaders: {\n\t\t\t...init?.headers,\n\t\t\t...clientIdentificationHeaders(),\n\t\t\t'Content-Type': 'application/json',\n\t\t\tAuthorization: `Bearer ${apiKey}`,\n\t\t},\n\t})\n}\n"],"names":["isAmpServerConfigured","resolvedConfig","switchMap","settings","secrets","promiseFactoryToObservable","fetchFromAmpServer","pathAndQuery","init","config","firstValueFrom","fetchFromAmpServerWithConfig","baseURL","apiKey","clientIdentificationHeaders"],"mappings":";;AAiBO,MAAMA,IAAwBC,EAAe;AAAA,EACnDC,EAAU,CAAC,EAAE,UAAAC,GAAU,SAAAC,QACfC,EAA2B,YAClB,MAAMD,EAAQ,SAAS,UAAUD,EAAS,GAAG,MAC1C,MAClB,CACD;AACF;AAYsB,eAAAG,EACrBC,GACAC,GACoB;AACpB,QAAMC,IAAS,MAAMC,EAAeT,GAAgBO,GAAM,UAAU,MAAS;AACtE,SAAAG,EAA6BF,GAAQF,GAAcC,CAAI;AAC/D;AAmEA,eAAeG,EACdF,GAIAF,GACAC,GACoB;AACpB,MAAID,EAAa,WAAW,OAAO,KAAKA,EAAa,WAAW,QAAQ;AACjE,UAAA,IAAI,MAAM,2CAA2C;AAE5D,MAAI,CAACA,EAAa,WAAW,GAAG;AACzB,UAAA,IAAI,MAAM,gCAAgC;AAG3C,QAAAK,IAAUH,EAAO,SAAS;AAChC,MAAI,CAACG;AACE,UAAA,IAAI,MAAM,oBAAoB;AAGrC,QAAMC,IAAS,MAAMJ,EAAO,QAAQ,SAAS,UAAUG,CAAO;AAC9D,MAAI,CAACC;AACE,UAAA,IAAI,MAAM,wBAAwB;AAGzC,SAAO,MAAM,IAAI,IAAIN,GAAcK,CAAO,GAAG;AAAA,IAC5C,GAAGJ;AAAA,IACH,SAAS;AAAA,MACR,GAAGA,GAAM;AAAA,MACT,GAAGM,EAA4B;AAAA,MAC/B,gBAAgB;AAAA,MAChB,eAAe,UAAUD,CAAM;AAAA,IAAA;AAAA,EAChC,CACA;AACF;"}
@@ -995,19 +995,6 @@ function FS(t) {
995
995
  return `Invalid tool name ${JSON.stringify(t)}. Tool names must match the pattern ${eE.toString()}. Try again with a valid tool name.`;
996
996
  }
997
997
  const J1 = "invalid_tool", eE = /^[a-zA-Z0-9_]{1,64}$/;
998
- function tE({ onlyFirst: t = !1 } = {}) {
999
- const r = [
1000
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))",
1001
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
1002
- ].join("|");
1003
- return new RegExp(r, t ? void 0 : "g");
1004
- }
1005
- const BS = tE();
1006
- function US(t) {
1007
- if (typeof t != "string")
1008
- throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
1009
- return t.replace(BS, "");
1010
- }
1011
998
  var YZ = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1012
999
  function nn(t) {
1013
1000
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -1031,6 +1018,19 @@ function qZ(t) {
1031
1018
  });
1032
1019
  }), r;
1033
1020
  }
1021
+ function tE({ onlyFirst: t = !1 } = {}) {
1022
+ const r = [
1023
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))",
1024
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
1025
+ ].join("|");
1026
+ return new RegExp(r, t ? void 0 : "g");
1027
+ }
1028
+ const BS = tE();
1029
+ function US(t) {
1030
+ if (typeof t != "string")
1031
+ throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
1032
+ return t.replace(BS, "");
1033
+ }
1034
1034
  var vi = { exports: {} }, P_;
1035
1035
  function zS() {
1036
1036
  return P_ || (P_ = 1, function(t) {
@@ -7057,7 +7057,7 @@ Prefer this tool over \`edit_file\` when you want to ovewrite the entire content
7057
7057
  },
7058
7058
  source: "builtin"
7059
7059
  },
7060
- fn: import("./create_file.node-D2LDnTZ6.js").then(
7060
+ fn: import("./create_file.node-0vS2hejR.js").then(
7061
7061
  ({ nodeCreateFileTool: t }) => t
7062
7062
  )
7063
7063
  }, Xt = "Grep", GC = 15, YC = 250, qC = `Search for exact text patterns in files using ripgrep, a fast keyword search tool.
@@ -7190,7 +7190,7 @@ COMPLEMENTARY USE WITH CODEBASE_SEARCH:
7190
7190
  },
7191
7191
  source: "builtin"
7192
7192
  },
7193
- fn: import("./node-DgFnFiEl.js").then(({ nodeGrepTool: t }) => t)
7193
+ fn: import("./node-z_wuLuYG.js").then(({ nodeGrepTool: t }) => t)
7194
7194
  }, hr = "read_file", HC = 1e3, yn = {
7195
7195
  spec: {
7196
7196
  name: hr,
@@ -7222,7 +7222,7 @@ Returns the contents of the file with each line prefixed by its line number. For
7222
7222
  switch ("node") {
7223
7223
  case "node":
7224
7224
  case "vscode":
7225
- return import("./read_file.node-FBiGQRUp.js").then(({ nodeReadFileTool: t }) => t);
7225
+ return import("./read_file.node-BPyNHNAZ.js").then(({ nodeReadFileTool: t }) => t);
7226
7226
  }
7227
7227
  })()
7228
7228
  }, $C = gC({
@@ -7251,7 +7251,7 @@ If you need to replace the entire contents of a file, use \`${ri}\` instead, sin
7251
7251
  inputSchema: kD($C),
7252
7252
  source: "builtin"
7253
7253
  },
7254
- fn: import("./edit_file.node-Ccrf_Tyh.js").then(({ nodeEditFileTool: t }) => t)
7254
+ fn: import("./edit_file.node-it4wJ5TR.js").then(({ nodeEditFileTool: t }) => t)
7255
7255
  };
7256
7256
  async function lJ(t, e, r, n) {
7257
7257
  e = Zn(e);
@@ -8256,7 +8256,7 @@ Note: Results are sorted by modification time with the most recently modified fi
8256
8256
  },
8257
8257
  source: "builtin"
8258
8258
  },
8259
- fn: import("./glob.node-C_0Pojo_.js").then(({ nodeGlobTool: t }) => t)
8259
+ fn: import("./glob.node-CSXwSKG2.js").then(({ nodeGlobTool: t }) => t)
8260
8260
  }, ii = "list_directory", u_ = {
8261
8261
  spec: {
8262
8262
  name: ii,
@@ -8277,7 +8277,7 @@ Note: Results are sorted by modification time with the most recently modified fi
8277
8277
  switch ("node") {
8278
8278
  case "node":
8279
8279
  case "vscode":
8280
- return import("./list_directory.node-CChuHPoL.js").then(
8280
+ return import("./list_directory.node-BFm1qTEf.js").then(
8281
8281
  ({ nodeListDirectoryTool: t }) => t
8282
8282
  );
8283
8283
  }
@@ -9101,7 +9101,7 @@ It's VERY IMPORTANT to use specific tools when searching for files, instead of i
9101
9101
  },
9102
9102
  source: "builtin"
9103
9103
  },
9104
- fn: import("./node-B8I2GAD6.js").then(({ nodeBashTool: t }) => t)
9104
+ fn: import("./node-COM1O9lA.js").then(({ nodeBashTool: t }) => t)
9105
9105
  }, $0 = [
9106
9106
  "ls",
9107
9107
  "dir",
@@ -9432,7 +9432,7 @@ This tool converts web content to markdown format for better readability.`,
9432
9432
  requiresNetwork: !0
9433
9433
  }
9434
9434
  },
9435
- fn: import("./node-gL35nPzg.js").then(({ nodeReadWebPageTool: t }) => t)
9435
+ fn: import("./node--F98eUbP.js").then(({ nodeReadWebPageTool: t }) => t)
9436
9436
  }, uh = "think", X0 = (t, e) => An(async () => ({ status: "done", result: "Thoughts have been logged." })), Z0 = {
9437
9437
  spec: {
9438
9438
  name: uh,
@@ -9497,7 +9497,7 @@ the \`${Bu}\` with the url.
9497
9497
  requiresNetwork: !0
9498
9498
  }
9499
9499
  },
9500
- fn: import("./node-BcU66Cp7.js").then(({ nodeWebSearchTool: t }) => t)
9500
+ fn: import("./node-CPx25-dA.js").then(({ nodeWebSearchTool: t }) => t)
9501
9501
  }, Sn = "Task", Uu = [
9502
9502
  u_,
9503
9503
  sa,
@@ -10212,7 +10212,7 @@ Returns a git-style diff showing the changes that were undone as formatted markd
10212
10212
  },
10213
10213
  source: "builtin"
10214
10214
  },
10215
- fn: import("./undo_edit.node-NCKppvcB.js").then(({ nodeUndoEditTool: t }) => t)
10215
+ fn: import("./undo_edit.node-BdqjDOxO.js").then(({ nodeUndoEditTool: t }) => t)
10216
10216
  };
10217
10217
  function xJ(t, e, r) {
10218
10218
  const n = [], a = [];
@@ -54324,46 +54324,46 @@ class dZ {
54324
54324
  }
54325
54325
  const FJ = new _Z(), BJ = new dZ();
54326
54326
  export {
54327
- bJ as $,
54328
- eJ as A,
54327
+ HZ as $,
54328
+ YZ as A,
54329
54329
  SZ as B,
54330
- UT as C,
54331
- PT as D,
54332
- s0 as E,
54333
- cJ as F,
54334
- NE as G,
54330
+ eJ as C,
54331
+ UT as D,
54332
+ PT as E,
54333
+ s0 as F,
54334
+ cJ as G,
54335
54335
  LT as H,
54336
- tJ as I,
54337
- BT as J,
54338
- rJ as K,
54339
- sJ as L,
54336
+ NE as I,
54337
+ tJ as J,
54338
+ BT as K,
54339
+ rJ as L,
54340
54340
  Qu as M,
54341
54341
  yZ as N,
54342
54342
  Ee as O,
54343
- sh as P,
54344
- dJ as Q,
54345
- ur as R,
54346
- RJ as S,
54347
- uJ as T,
54348
- nJ as U,
54349
- aJ as V,
54350
- oJ as W,
54351
- nE as X,
54352
- iJ as Y,
54353
- Ju as Z,
54354
- HZ as _,
54343
+ sJ as P,
54344
+ sh as Q,
54345
+ dJ as R,
54346
+ ur as S,
54347
+ RJ as T,
54348
+ uJ as U,
54349
+ nJ as V,
54350
+ aJ as W,
54351
+ oJ as X,
54352
+ nE as Y,
54353
+ iJ as Z,
54354
+ Ju as _,
54355
54355
  IS as a,
54356
54356
  $C as a$,
54357
- TJ as a0,
54358
- $Z as a1,
54359
- yJ as a2,
54360
- aR as a3,
54361
- SJ as a4,
54362
- wJ as a5,
54363
- HS as a6,
54364
- i0 as a7,
54365
- mJ as a8,
54366
- fJ as a9,
54357
+ bJ as a0,
54358
+ TJ as a1,
54359
+ $Z as a2,
54360
+ yJ as a3,
54361
+ aR as a4,
54362
+ SJ as a5,
54363
+ wJ as a6,
54364
+ HS as a7,
54365
+ i0 as a8,
54366
+ mJ as a9,
54367
54367
  hZ as aA,
54368
54368
  MT as aB,
54369
54369
  RZ as aC,
@@ -54391,26 +54391,26 @@ export {
54391
54391
  W0 as aY,
54392
54392
  _J as aZ,
54393
54393
  lJ as a_,
54394
- pJ as aa,
54395
- j0 as ab,
54396
- kJ as ac,
54397
- OJ as ad,
54398
- u_ as ae,
54399
- sa as af,
54400
- AJ as ag,
54401
- DJ as ah,
54402
- yi as ai,
54403
- CJ as aj,
54404
- yn as ak,
54405
- zC as al,
54406
- WC as am,
54407
- MJ as an,
54408
- Z0 as ao,
54409
- Q0 as ap,
54410
- zZ as aq,
54411
- GZ as ar,
54412
- tR as as,
54413
- nn as at,
54394
+ fJ as aa,
54395
+ pJ as ab,
54396
+ j0 as ac,
54397
+ kJ as ad,
54398
+ OJ as ae,
54399
+ u_ as af,
54400
+ sa as ag,
54401
+ AJ as ah,
54402
+ DJ as ai,
54403
+ yi as aj,
54404
+ CJ as ak,
54405
+ yn as al,
54406
+ zC as am,
54407
+ WC as an,
54408
+ MJ as ao,
54409
+ Z0 as ap,
54410
+ Q0 as aq,
54411
+ zZ as ar,
54412
+ GZ as as,
54413
+ tR as at,
54414
54414
  FT as au,
54415
54415
  m0 as av,
54416
54416
  En as aw,
@@ -54438,21 +54438,21 @@ export {
54438
54438
  PZ as h,
54439
54439
  UZ as i,
54440
54440
  MZ as j,
54441
- kr as k,
54441
+ nn as k,
54442
54442
  LZ as l,
54443
54443
  AS as m,
54444
- NZ as n,
54445
- wZ as o,
54444
+ kr as n,
54445
+ NZ as o,
54446
54446
  An as p,
54447
- rh as q,
54447
+ wZ as q,
54448
54448
  Xu as r,
54449
54449
  X1 as s,
54450
54450
  L_ as t,
54451
- IZ as u,
54452
- kZ as v,
54453
- TZ as w,
54454
- CZ as x,
54455
- vZ as y,
54456
- YZ as z
54451
+ rh as u,
54452
+ IZ as v,
54453
+ kZ as w,
54454
+ TZ as x,
54455
+ CZ as y,
54456
+ vZ as z
54457
54457
  };
54458
- //# sourceMappingURL=color-BV9wbewg.js.map
54458
+ //# sourceMappingURL=color-Cj45sRkS.js.map