getborg 0.0.124 → 0.0.126

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 (75) hide show
  1. package/dist/bin.mjs +4900 -2407
  2. package/dist/client/.vite/manifest.json +359 -359
  3. package/dist/client/assets/{ArrowRight-D8u8fAtz.js → ArrowRight-sXL3WqRj.js} +2 -2
  4. package/dist/client/assets/{ArrowSquareOut-B_f6YUhV.js → ArrowSquareOut-BXw7kBJ2.js} +2 -2
  5. package/dist/client/assets/{ArrowsClockwise-DQYZ1Xbo.js → ArrowsClockwise-C2ZJkkb1.js} +2 -2
  6. package/dist/client/assets/{CaretLeft-CfrkuxuJ.js → CaretLeft-u94enBjz.js} +2 -2
  7. package/dist/client/assets/{ChatMarkdown-Ch9PipMk.js → ChatMarkdown-PlWZFDnz.js} +5 -5
  8. package/dist/client/assets/{CircleNotch-BcVOnWaH.js → CircleNotch-DqcpMoTY.js} +2 -2
  9. package/dist/client/assets/{DesignWorkspace-CrijZIpE.js → DesignWorkspace-DmKoQxKI.js} +3 -3
  10. package/dist/client/assets/DiffPanel-D77xCxTK.js +2 -0
  11. package/dist/client/assets/{DiffWorkerPoolProvider-B-AH2sbL.js → DiffWorkerPoolProvider-ClROlLBb.js} +2 -2
  12. package/dist/client/assets/{DocxPreview-HXde7oD1.js → DocxPreview-HJVaPJXL.js} +4 -4
  13. package/dist/client/assets/{FilePreviewPanel-DkspqFyX.js → FilePreviewPanel-CFCxGnPA.js} +9 -9
  14. package/dist/client/assets/{HtmlPreview-pfh_hRgS.js → HtmlPreview-CJQuCP2x.js} +2 -2
  15. package/dist/client/assets/{PdfPreview-VSGe6F9I.js → PdfPreview-BgV8uugr.js} +3 -3
  16. package/dist/client/assets/{PptxPreview-CZZ5e7rI.js → PptxPreview-BVdzk7UG.js} +3 -3
  17. package/dist/client/assets/PreviewPanel-C8wYTZ3K.js +2 -0
  18. package/dist/client/assets/PullRequestCodeTab-6b-pnSLs.js +6 -0
  19. package/dist/client/assets/{PullRequestReactions-BJ4eU_08.js → PullRequestReactions-kdg3iZ85.js} +4 -4
  20. package/dist/client/assets/{RightPanelResizeHandle-XlC9gY5e.js → RightPanelResizeHandle-kUStdA3L.js} +2 -2
  21. package/dist/client/assets/{VirtualizedFile-qiRlyNDc.js → VirtualizedFile-DuJYdYdq.js} +2 -2
  22. package/dist/client/assets/{XlsxPreview-BPtt3tW-.js → XlsxPreview-Bi4rmMAb.js} +3 -3
  23. package/dist/client/assets/accountData-B88fzgQo.js +16 -0
  24. package/dist/client/assets/assetUrls-CF9bvkMB.js +2 -0
  25. package/dist/client/assets/assets-CkgNlvqv.js +2 -0
  26. package/dist/client/assets/{browserHistoryStore-CEVJXGfr.js → browserHistoryStore-DIuEAuCl.js} +3 -3
  27. package/dist/client/assets/{browserRecording-BavNt16V.js → browserRecording-2dQePGOK.js} +2 -2
  28. package/dist/client/assets/clientAnalytics-BbUHu8ei.js +1 -0
  29. package/dist/client/assets/{clientPersistenceStorage-CeJLSpQl.js → clientPersistenceStorage-DsdIKJBh.js} +2 -2
  30. package/dist/client/assets/{combobox-CQHB5X6j.js → combobox-DVmHwJKi.js} +2 -2
  31. package/dist/client/assets/{composerMentionDrag-CdTT1rUK.js → composerMentionDrag-CB6wqaTe.js} +2 -2
  32. package/dist/client/assets/{designCanvas.logic-DduGt5E7.js → designCanvas.logic-Ce5c0YLY.js} +4 -4
  33. package/dist/client/assets/{designOpenFileContext-CMKir5dG.js → designOpenFileContext-B0d1oDHN.js} +2 -2
  34. package/dist/client/assets/{diffFileContents-CHRsIT6_.js → diffFileContents-DuZ8MpUA.js} +2 -2
  35. package/dist/client/assets/{empty-DUUjhkFh.js → empty-d8cb8Ewx.js} +2 -2
  36. package/dist/client/assets/entities-DI7lpu_V.js +2 -0
  37. package/dist/client/assets/{followUpQueuePersistence-C_pFQCnT.js → followUpQueuePersistence-BL42ySpK.js} +1 -1
  38. package/dist/client/assets/{index-DrITfTBh.js → index-e-hiL6eh.js} +3 -3
  39. package/dist/client/assets/{input-CyCAHFxI.js → input-DzNFHo2W.js} +2 -2
  40. package/dist/client/assets/{lib-BRpsbmNP.js → lib-IA-5-mGB.js} +2 -2
  41. package/dist/client/assets/{main-C0iNAqq8.css → main-BM6qmGP4.css} +1 -1
  42. package/dist/client/assets/main-U2I6YwT-.js +169 -0
  43. package/dist/client/assets/{pdf-C3xMIdpt.js → pdf-Bh3amywC.js} +2 -2
  44. package/dist/client/assets/{popover-BXSj56CI.js → popover-DZf7p2yc.js} +2 -2
  45. package/dist/client/assets/{pptxDocument-BnTLF4HV.js → pptxDocument-Bsm1SylK.js} +2 -2
  46. package/dist/client/assets/{projectFilesQueryState-Cs5skZOc.js → projectFilesQueryState-DWDFHsif.js} +2 -2
  47. package/dist/client/assets/queries-B-YwYiCl.js +2 -0
  48. package/dist/client/assets/{scroll-area-DAaT-DGF.js → scroll-area-C5ps_bkR.js} +46 -46
  49. package/dist/client/assets/session-BKSQ__kZ.js +68 -0
  50. package/dist/client/assets/{spinner-K3N_kbJr.js → spinner-BYvweYT_.js} +2 -2
  51. package/dist/client/assets/textarea-bjEgsW0n.js +2 -0
  52. package/dist/client/assets/{toggle-Sui8J_p3.js → toggle-D4wtRT7F.js} +2 -2
  53. package/dist/client/assets/{toggle-group-BDgfPfOF.js → toggle-group-iSglhZY5.js} +2 -2
  54. package/dist/client/assets/useSettings-BgyJJ6VZ.js +5 -0
  55. package/dist/client/assets/{useWorkspaceMutationRefresh-ApasU6PB.js → useWorkspaceMutationRefresh-C-GODI1R.js} +2 -2
  56. package/dist/client/assets/utils-dD8AT1Cf.js +30 -0
  57. package/dist/client/assets/{xlsxDocument-SRKfhPKH.js → xlsxDocument-C12kQUhH.js} +2 -2
  58. package/dist/client/index.html +1 -1
  59. package/dist/service-launcher.mjs +20 -2
  60. package/dist/sharedChatWorker.mjs +21887 -0
  61. package/package.json +2 -1
  62. package/dist/client/assets/DiffPanel-Bbs-arXF.js +0 -2
  63. package/dist/client/assets/PreviewPanel-C_WqPJu_.js +0 -2
  64. package/dist/client/assets/PullRequestCodeTab-DLajHhi9.js +0 -6
  65. package/dist/client/assets/accountData-BKyjOPQm.js +0 -16
  66. package/dist/client/assets/assetUrls-33nMWFnF.js +0 -2
  67. package/dist/client/assets/assets-1BW7ZJgz.js +0 -2
  68. package/dist/client/assets/clientAnalytics-ChPHl8_D.js +0 -1
  69. package/dist/client/assets/entities-BtD3_L53.js +0 -2
  70. package/dist/client/assets/main-Bi6AoLeM.js +0 -167
  71. package/dist/client/assets/queries-BevoHPqY.js +0 -2
  72. package/dist/client/assets/session-Dmu9Hk5C.js +0 -68
  73. package/dist/client/assets/textarea-BT0tVWKM.js +0 -2
  74. package/dist/client/assets/useSettings-GEQSU1F5.js +0 -5
  75. package/dist/client/assets/utils-ClZ5OxbV.js +0 -30
@@ -1,2 +1,2 @@
1
- import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{_ as t}from"./main-Bi6AoLeM.js";var n=e(t(),1),r=5e3,i=200;function a(e){let t=/^([A-Z]+)/i.exec(e)?.[1];if(!t)return 0;let n=0;for(let e of t.toUpperCase())n=n*26+(e.charCodeAt(0)-64);return n-1}var o=e=>Number.isInteger(e)&&e>=0&&e<=1114111&&!(e>=55296&&e<=57343)?String.fromCodePoint(e):null,s=e=>e.replace(/&(?:#(\d+)|#x([0-9a-f]+)|(amp|lt|gt|quot|apos));/gi,(e,t,n,r)=>t?o(Number(t))??e:n?o(Number.parseInt(n,16))??e:{amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`}[String(r).toLowerCase()]??e);function c(e){return`(?:[A-Za-z_][\\w.-]*:)?${e}`}function l(e){return RegExp(`<(${c(e)})(?=[\\s/>])[^>]*?(?:/>|>([\\s\\S]*?)</\\1\\s*>)`,`g`)}function u(e,t){let n=l(t),r=[];for(let t of e.matchAll(n))r.push(t[2]??``);return r}function d(e,t){let n=l(t);return Array.from(e.matchAll(n),e=>e[0])}var f=(e,t)=>{let n=RegExp(`\\s${c(t)}=(["'])(.*?)\\1`).exec(e)?.[2];return n===void 0?null:s(n)},p=(e,t)=>s(u(e,t).join(``));function m(e,t){let n=[],o=!1;for(let s of d(e,`row`)){if(n.length>=r){o=!0;break}let e=[];for(let n of d(s,`c`)){let r=a(f(n,`r`)??``);if(r>=i){o=!0;continue}let s=f(n,`t`),c=s===`s`?t[Number(p(n,`v`))]??``:s===`inlineStr`?p(n,`t`):p(n,`v`);for(;e.length<r;)e.push(``);e[r]=c}n.push(e)}return{rows:n,truncated:o}}function h(e){return d(e,`si`).map(e=>p(e,`t`))}function g(e){return d(e,`sheet`).map((e,t)=>(f(e,`name`)??``).trim()||`Sheet${t+1}`)}async function _(e){let t=await n.default.loadAsync(e),r=await t.file(`xl/_rels/workbook.xml.rels`)?.async(`string`),i=new Map;for(let e of d(r??``,`Relationship`)){let t=f(e,`Id`),n=f(e,`Target`);if(!t||!n||f(e,`TargetMode`)===`External`||/^[a-z]+:/i.test(n))continue;let r=[];for(let e of(n.startsWith(`/`)?n:`xl/${n}`).split(`/`))e===`..`?r.pop():e&&e!==`.`&&r.push(e);i.set(t,{path:r.join(`/`),type:f(e,`Type`)??``})}let a=[...i.values()].find(e=>e.type.endsWith(`/sharedStrings`))?.path??`xl/sharedStrings.xml`,o=await t.file(a)?.async(`string`),s=o?h(o):[],c=await t.file(`xl/workbook.xml`)?.async(`string`),l=c?g(c):[],u=d(c??``,`sheet`),p=[];for(let[e,n]of l.entries()){let a=i.get(f(u[e]??``,`id`)??``);if(r&&(!a||!a.type.endsWith(`/worksheet`)))continue;let o=a?.path??`xl/worksheets/sheet${e+1}.xml`,c=await t.file(o)?.async(`string`);if(!c)continue;let{rows:l,truncated:d}=m(c,s);p.push({name:n,rows:l,truncated:d})}return p}export{_ as readWorkbook};
2
- //# sourceMappingURL=xlsxDocument-SRKfhPKH.js.map
1
+ import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{_ as t}from"./main-U2I6YwT-.js";var n=e(t(),1),r=5e3,i=200;function a(e){let t=/^([A-Z]+)/i.exec(e)?.[1];if(!t)return 0;let n=0;for(let e of t.toUpperCase())n=n*26+(e.charCodeAt(0)-64);return n-1}var o=e=>Number.isInteger(e)&&e>=0&&e<=1114111&&!(e>=55296&&e<=57343)?String.fromCodePoint(e):null,s=e=>e.replace(/&(?:#(\d+)|#x([0-9a-f]+)|(amp|lt|gt|quot|apos));/gi,(e,t,n,r)=>t?o(Number(t))??e:n?o(Number.parseInt(n,16))??e:{amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`}[String(r).toLowerCase()]??e);function c(e){return`(?:[A-Za-z_][\\w.-]*:)?${e}`}function l(e){return RegExp(`<(${c(e)})(?=[\\s/>])[^>]*?(?:/>|>([\\s\\S]*?)</\\1\\s*>)`,`g`)}function u(e,t){let n=l(t),r=[];for(let t of e.matchAll(n))r.push(t[2]??``);return r}function d(e,t){let n=l(t);return Array.from(e.matchAll(n),e=>e[0])}var f=(e,t)=>{let n=RegExp(`\\s${c(t)}=(["'])(.*?)\\1`).exec(e)?.[2];return n===void 0?null:s(n)},p=(e,t)=>s(u(e,t).join(``));function m(e,t){let n=[],o=!1;for(let s of d(e,`row`)){if(n.length>=r){o=!0;break}let e=[];for(let n of d(s,`c`)){let r=a(f(n,`r`)??``);if(r>=i){o=!0;continue}let s=f(n,`t`),c=s===`s`?t[Number(p(n,`v`))]??``:s===`inlineStr`?p(n,`t`):p(n,`v`);for(;e.length<r;)e.push(``);e[r]=c}n.push(e)}return{rows:n,truncated:o}}function h(e){return d(e,`si`).map(e=>p(e,`t`))}function g(e){return d(e,`sheet`).map((e,t)=>(f(e,`name`)??``).trim()||`Sheet${t+1}`)}async function _(e){let t=await n.default.loadAsync(e),r=await t.file(`xl/_rels/workbook.xml.rels`)?.async(`string`),i=new Map;for(let e of d(r??``,`Relationship`)){let t=f(e,`Id`),n=f(e,`Target`);if(!t||!n||f(e,`TargetMode`)===`External`||/^[a-z]+:/i.test(n))continue;let r=[];for(let e of(n.startsWith(`/`)?n:`xl/${n}`).split(`/`))e===`..`?r.pop():e&&e!==`.`&&r.push(e);i.set(t,{path:r.join(`/`),type:f(e,`Type`)??``})}let a=[...i.values()].find(e=>e.type.endsWith(`/sharedStrings`))?.path??`xl/sharedStrings.xml`,o=await t.file(a)?.async(`string`),s=o?h(o):[],c=await t.file(`xl/workbook.xml`)?.async(`string`),l=c?g(c):[],u=d(c??``,`sheet`),p=[];for(let[e,n]of l.entries()){let a=i.get(f(u[e]??``,`id`)??``);if(r&&(!a||!a.type.endsWith(`/worksheet`)))continue;let o=a?.path??`xl/worksheets/sheet${e+1}.xml`,c=await t.file(o)?.async(`string`);if(!c)continue;let{rows:l,truncated:d}=m(c,s);p.push({name:n,rows:l,truncated:d})}return p}export{_ as readWorkbook};
2
+ //# sourceMappingURL=xlsxDocument-C12kQUhH.js.map
@@ -450,7 +450,7 @@
450
450
  }
451
451
  </style>
452
452
  <title>Borg (Alpha)</title>
453
- <script type="module" crossorigin src="/assets/index-DrITfTBh.js"></script>
453
+ <script type="module" crossorigin src="/assets/index-e-hiL6eh.js"></script>
454
454
  <link rel="stylesheet" crossorigin href="/assets/index-DZprGaeP.css">
455
455
  </head>
456
456
  <body>
@@ -184,7 +184,7 @@ function stripHeaderDsn(header) {
184
184
  }
185
185
  //#endregion
186
186
  //#region package.json
187
- var version = "0.0.124";
187
+ var version = "0.0.126";
188
188
  //#endregion
189
189
  //#region ../../packages/shared/src/borgClientIdentity.ts
190
190
  /** Tags that let an error report be matched to the requests and support info of the same install. */
@@ -217,6 +217,23 @@ const currentBorgClientIdentity = () => ({
217
217
  installId: state.installId
218
218
  });
219
219
  //#endregion
220
+ //#region src/secrets/knownSecrets.ts
221
+ /** Redaction of the secret values this process has loaded; no imports, so Sentry can use it early. */
222
+ const redactWith = (known, text) => {
223
+ if (known.size === 0 || text.length === 0) return text;
224
+ let out = text;
225
+ for (const [value, name] of [...known].sort((a, b) => b[0].length - a[0].length)) if (out.includes(value)) out = out.replaceAll(value, `[secret ${name}]`);
226
+ return out;
227
+ };
228
+ const withEscapedSpellings = (known) => {
229
+ const spellings = new Map(known);
230
+ for (const [secret, name] of known) spellings.set(JSON.stringify(secret).slice(1, -1), name);
231
+ return spellings;
232
+ };
233
+ const knownSecrets = /* @__PURE__ */ new Map();
234
+ /** Every loaded value in `text`, raw or JSON-escaped, replaced with `[secret NAME]`. */
235
+ const redactKnownSecrets = (text) => knownSecrets.size === 0 ? text : redactWith(withEscapedSpellings(knownSecrets), text);
236
+ //#endregion
220
237
  //#region src/observability/borgSentry.ts
221
238
  /**
222
239
  * Sentry behind the Borg telemetry proxy, for the `borg` CLI and the
@@ -234,6 +251,7 @@ const currentBorgClientIdentity = () => ({
234
251
  * drags in the OpenTelemetry SDK, so it is imported lazily and an unset
235
252
  * variable keeps it off the CLI's startup path entirely.
236
253
  */
254
+ const redactEnvelopeSecrets = (body) => redactKnownSecrets(typeof body === "string" ? body : new TextDecoder().decode(body));
237
255
  /** The DSN is never sent anywhere — the transport below never uses its URL. */
238
256
  const PLACEHOLDER_DSN = "https://00000000000000000000000000000000@borg-staging.telemetry.infra.searchatlas.com/0";
239
257
  /**
@@ -273,7 +291,7 @@ async function initBorgServerSentry() {
273
291
  });
274
292
  if (target === void 0) throw new Error("Borg telemetry has no route for this client.");
275
293
  const { postBorgTelemetryEnvelope } = await import("./borgTelemetryNode-BCqjkcVi.mjs");
276
- const response = await postBorgTelemetryEnvelope(target, stripEnvelopeDsn(request.body));
294
+ const response = await postBorgTelemetryEnvelope(target, stripEnvelopeDsn(redactEnvelopeSecrets(request.body)));
277
295
  return {
278
296
  statusCode: response.statusCode,
279
297
  headers: {