@sourcegraph/amp 0.0.1748880131-g73e573 → 0.0.1748884278-g5bd3f6

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-Byn34k3j.js → client-BdpLPYaH.js} +2 -2
  3. package/dist/{client-Byn34k3j.js.map → client-BdpLPYaH.js.map} +1 -1
  4. package/dist/{console-DU9kM8bt.js → console-CqG_XvSY.js} +2323 -2319
  5. package/dist/{console-DU9kM8bt.js.map → console-CqG_XvSY.js.map} +1 -1
  6. package/dist/{create_file.node-ClSLp2zA.js → create_file.node-ADITw5B2.js} +2 -2
  7. package/dist/{create_file.node-ClSLp2zA.js.map → create_file.node-ADITw5B2.js.map} +1 -1
  8. package/dist/{edit_file.node-sQFRZtsD.js → edit_file.node-DXreHiOg.js} +3 -3
  9. package/dist/{edit_file.node-sQFRZtsD.js.map → edit_file.node-DXreHiOg.js.map} +1 -1
  10. package/dist/{executable-2OB-i_QC.js → executable-CNRwugd8.js} +2 -2
  11. package/dist/{executable-2OB-i_QC.js.map → executable-CNRwugd8.js.map} +1 -1
  12. package/dist/{files-BhysNTQv.js → files-BmtGFG0Q.js} +2 -2
  13. package/dist/{files-BhysNTQv.js.map → files-BmtGFG0Q.js.map} +1 -1
  14. package/dist/{glob.node-cVUTfljn.js → glob.node-CVEV9zgB.js} +4 -4
  15. package/dist/{glob.node-cVUTfljn.js.map → glob.node-CVEV9zgB.js.map} +1 -1
  16. package/dist/{index-Cb59cjjj.js → index-BqIcA2B7.js} +2 -2
  17. package/dist/{index-Cb59cjjj.js.map → index-BqIcA2B7.js.map} +1 -1
  18. package/dist/{list_directory.node-B8Oj3ncW.js → list_directory.node-BemKxEzJ.js} +2 -2
  19. package/dist/{list_directory.node-B8Oj3ncW.js.map → list_directory.node-BemKxEzJ.js.map} +1 -1
  20. package/dist/{load-profile-CV3b6-Nj.js → load-profile-DrobQ5m2.js} +2 -2
  21. package/dist/{load-profile-CV3b6-Nj.js.map → load-profile-DrobQ5m2.js.map} +1 -1
  22. package/dist/{main-CZ7RS9Yt.js → main-CN8Tv0Ze.js} +3745 -3707
  23. package/dist/main-CN8Tv0Ze.js.map +1 -0
  24. package/dist/{node-B45lZe2M.js → node-CIdEg4qU.js} +3 -3
  25. package/dist/{node-B45lZe2M.js.map → node-CIdEg4qU.js.map} +1 -1
  26. package/dist/{node-UKopbCpJ.js → node-CWIBdJry.js} +3 -3
  27. package/dist/{node-UKopbCpJ.js.map → node-CWIBdJry.js.map} +1 -1
  28. package/dist/{node-DujrrqQo.js → node-CY_sNxT5.js} +4 -4
  29. package/dist/{node-DujrrqQo.js.map → node-CY_sNxT5.js.map} +1 -1
  30. package/dist/{node-BPXlKmtc.js → node-D3-y_ogB.js} +2 -2
  31. package/dist/{node-BPXlKmtc.js.map → node-D3-y_ogB.js.map} +1 -1
  32. package/dist/{node-B_G-Clj6.js → node-DeysyjlP.js} +3 -3
  33. package/dist/{node-B_G-Clj6.js.map → node-DeysyjlP.js.map} +1 -1
  34. package/dist/{node-B4WUHHZd.js → node-oyrvsiXU.js} +2 -2
  35. package/dist/{node-B4WUHHZd.js.map → node-oyrvsiXU.js.map} +1 -1
  36. package/dist/{read_file.node-gXffR6jB.js → read_file.node-6hnIOwx2.js} +2 -2
  37. package/dist/{read_file.node-gXffR6jB.js.map → read_file.node-6hnIOwx2.js.map} +1 -1
  38. package/dist/{stdio-B7u3y1kB.js → stdio-Clg4okyZ.js} +3 -3
  39. package/dist/{stdio-B7u3y1kB.js.map → stdio-Clg4okyZ.js.map} +1 -1
  40. package/dist/storybook.js +1 -1
  41. package/dist/{undo_edit.node-BQSDe2Ll.js → undo_edit.node-PvuGXz4H.js} +2 -2
  42. package/dist/{undo_edit.node-BQSDe2Ll.js.map → undo_edit.node-PvuGXz4H.js.map} +1 -1
  43. package/package.json +1 -1
  44. package/dist/main-CZ7RS9Yt.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { f as a } from "./client-Byn34k3j.js";
3
- import { p as u, aP as c } from "./console-DU9kM8bt.js";
2
+ import { f as a } from "./client-BdpLPYaH.js";
3
+ import { p as u, aP as c } from "./console-CqG_XvSY.js";
4
4
  const l = ({ args: o }, { threadID: t }) => u(async (s) => {
5
5
  try {
6
6
  const r = `/api/web-search?query=${encodeURIComponent(o.query)}&numResults=${o.num_results || 5}`, e = await a(r, {
@@ -23,4 +23,4 @@ const l = ({ args: o }, { threadID: t }) => u(async (s) => {
23
23
  export {
24
24
  l as nodeWebSearchTool
25
25
  };
26
- //# sourceMappingURL=node-B45lZe2M.js.map
26
+ //# sourceMappingURL=node-CIdEg4qU.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"node-B45lZe2M.js","sources":["../../core/src/tools/builtin/web_search/node.ts"],"sourcesContent":["import { promiseFactoryToObservable } from '@sourcegraph/observable'\nimport { fetchFromAmpServer } from '../../../server-api/client'\nimport { HEADER_KEY_THREAD_ID } from '../../../server-api/headers'\nimport type { webSearchToolReg } from './common'\n\nexport const nodeWebSearchTool: NonNullable<(typeof webSearchToolReg)['fn']> = (\n\t{ args },\n\t{ threadID },\n) => {\n\treturn promiseFactoryToObservable(async (signal) => {\n\t\ttry {\n\t\t\t// Call the server endpoint using the fetchFromAmpServer helper\n\t\t\tconst url = `/api/web-search?query=${encodeURIComponent(args.query)}&numResults=${args.num_results || 5}`\n\t\t\tconst response = await fetchFromAmpServer(url, {\n\t\t\t\tmethod: 'GET',\n\t\t\t\tsignal,\n\t\t\t\theaders: threadID ? { [HEADER_KEY_THREAD_ID]: threadID } : undefined,\n\t\t\t})\n\n\t\t\tif (!response.ok) {\n\t\t\t\tconst errorText = await response.text()\n\t\t\t\tthrow new Error(`Server returned ${response.status}: ${errorText}`)\n\t\t\t}\n\n\t\t\tconst results = await response.json()\n\t\t\treturn {\n\t\t\t\tstatus: 'done' as const,\n\t\t\t\tresult: results,\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tthrow new Error(`Failed to perform web search: ${(error as Error).message}`)\n\t\t}\n\t})\n}\n"],"names":["nodeWebSearchTool","args","threadID","promiseFactoryToObservable","signal","url","response","fetchFromAmpServer","HEADER_KEY_THREAD_ID","errorText","error"],"mappings":";;;AAKO,MAAMA,IAAkE,CAC9E,EAAE,MAAAC,KACF,EAAE,UAAAC,QAEKC,EAA2B,OAAOC,MAAW;AAC/C,MAAA;AAEG,UAAAC,IAAM,yBAAyB,mBAAmBJ,EAAK,KAAK,CAAC,eAAeA,EAAK,eAAe,CAAC,IACjGK,IAAW,MAAMC,EAAmBF,GAAK;AAAA,MAC9C,QAAQ;AAAA,MACR,QAAAD;AAAA,MACA,SAASF,IAAW,EAAE,CAACM,CAAoB,GAAGN,EAAa,IAAA;AAAA,IAAA,CAC3D;AAEG,QAAA,CAACI,EAAS,IAAI;AACX,YAAAG,IAAY,MAAMH,EAAS,KAAK;AACtC,YAAM,IAAI,MAAM,mBAAmBA,EAAS,MAAM,KAAKG,CAAS,EAAE;AAAA,IAAA;AAI5D,WAAA;AAAA,MACN,QAAQ;AAAA,MACR,QAHe,MAAMH,EAAS,KAAK;AAAA,IAIpC;AAAA,WACQI,GAAO;AACf,UAAM,IAAI,MAAM,iCAAkCA,EAAgB,OAAO,EAAE;AAAA,EAAA;AAC5E,CACA;"}
1
+ {"version":3,"file":"node-CIdEg4qU.js","sources":["../../core/src/tools/builtin/web_search/node.ts"],"sourcesContent":["import { promiseFactoryToObservable } from '@sourcegraph/observable'\nimport { fetchFromAmpServer } from '../../../server-api/client'\nimport { HEADER_KEY_THREAD_ID } from '../../../server-api/headers'\nimport type { webSearchToolReg } from './common'\n\nexport const nodeWebSearchTool: NonNullable<(typeof webSearchToolReg)['fn']> = (\n\t{ args },\n\t{ threadID },\n) => {\n\treturn promiseFactoryToObservable(async (signal) => {\n\t\ttry {\n\t\t\t// Call the server endpoint using the fetchFromAmpServer helper\n\t\t\tconst url = `/api/web-search?query=${encodeURIComponent(args.query)}&numResults=${args.num_results || 5}`\n\t\t\tconst response = await fetchFromAmpServer(url, {\n\t\t\t\tmethod: 'GET',\n\t\t\t\tsignal,\n\t\t\t\theaders: threadID ? { [HEADER_KEY_THREAD_ID]: threadID } : undefined,\n\t\t\t})\n\n\t\t\tif (!response.ok) {\n\t\t\t\tconst errorText = await response.text()\n\t\t\t\tthrow new Error(`Server returned ${response.status}: ${errorText}`)\n\t\t\t}\n\n\t\t\tconst results = await response.json()\n\t\t\treturn {\n\t\t\t\tstatus: 'done' as const,\n\t\t\t\tresult: results,\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tthrow new Error(`Failed to perform web search: ${(error as Error).message}`)\n\t\t}\n\t})\n}\n"],"names":["nodeWebSearchTool","args","threadID","promiseFactoryToObservable","signal","url","response","fetchFromAmpServer","HEADER_KEY_THREAD_ID","errorText","error"],"mappings":";;;AAKO,MAAMA,IAAkE,CAC9E,EAAE,MAAAC,KACF,EAAE,UAAAC,QAEKC,EAA2B,OAAOC,MAAW;AAC/C,MAAA;AAEG,UAAAC,IAAM,yBAAyB,mBAAmBJ,EAAK,KAAK,CAAC,eAAeA,EAAK,eAAe,CAAC,IACjGK,IAAW,MAAMC,EAAmBF,GAAK;AAAA,MAC9C,QAAQ;AAAA,MACR,QAAAD;AAAA,MACA,SAASF,IAAW,EAAE,CAACM,CAAoB,GAAGN,EAAa,IAAA;AAAA,IAAA,CAC3D;AAEG,QAAA,CAACI,EAAS,IAAI;AACX,YAAAG,IAAY,MAAMH,EAAS,KAAK;AACtC,YAAM,IAAI,MAAM,mBAAmBA,EAAS,MAAM,KAAKG,CAAS,EAAE;AAAA,IAAA;AAI5D,WAAA;AAAA,MACN,QAAQ;AAAA,MACR,QAHe,MAAMH,EAAS,KAAK;AAAA,IAIpC;AAAA,WACQI,GAAO;AACf,UAAM,IAAI,MAAM,iCAAkCA,EAAgB,OAAO,EAAE;AAAA,EAAA;AAC5E,CACA;"}
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import * as ce from "node:os";
3
3
  import ee, { resolve as ue } from "node:path";
4
- import { aR as fe, aS as _e, C as de, aT as ne, aU as pe, aV as ge, aG as ae, aO as ve, aF as me, aA as be, O as se } from "./console-DU9kM8bt.js";
5
- import { loadProfileEnvironmentVariables as Se } from "./load-profile-CV3b6-Nj.js";
4
+ import { aR as fe, aS as _e, C as de, aT as ne, aU as pe, aV as ge, aG as ae, aO as ve, aF as me, aA as be, O as se } from "./console-CqG_XvSY.js";
5
+ import { loadProfileEnvironmentVariables as Se } from "./load-profile-DrobQ5m2.js";
6
6
  const Ce = [
7
7
  "ls",
8
8
  "dir",
@@ -3755,4 +3755,4 @@ function Re(x) {
3755
3755
  export {
3756
3756
  Fe as nodeBashTool
3757
3757
  };
3758
- //# sourceMappingURL=node-UKopbCpJ.js.map
3758
+ //# sourceMappingURL=node-CWIBdJry.js.map