@x-otto/plugin-github-copilot 0.1.0-alpha.2 → 0.1.0-alpha.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-otto/plugin-github-copilot",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.3",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "@x-otto/provider": "0.1.0-alpha.1",
@@ -1 +1 @@
1
- {"apiVersion":1,"compilerVersion":"0.1.0-alpha.3","sourceHash":"53507e316424721cfac5133b3ba2e87c24be35b100947eb8b7c92e2745b65100"}
1
+ {"apiVersion":1,"compilerVersion":"0.1.0-alpha.4","sourceHash":"53507e316424721cfac5133b3ba2e87c24be35b100947eb8b7c92e2745b65100"}
@@ -36409,31 +36409,33 @@ function Ne(e4, t3) {
36409
36409
  let a3 = { target: `pino/file`, options: { destination: Ae(e4), mkdir: true }, level: t3 };
36410
36410
  return r3 ? [a3] : [a3, i2];
36411
36411
  }
36412
- var Pe = new import_node_stream.PassThrough();
36413
- var Fe = new t();
36414
- Pe.on(`data`, (e4) => {
36412
+ var D = new import_node_stream.PassThrough();
36413
+ var Pe = new t();
36414
+ D.on(`data`, (e4) => {
36415
36415
  try {
36416
- Fe.publish({ log: [JSON.parse(e4.toString())] });
36416
+ Pe.publish({ log: [JSON.parse(e4.toString())] });
36417
36417
  } catch (t3) {
36418
36418
  console.warn(`Failed to parse log chunk for listener:`, e4.toString(), t3);
36419
36419
  }
36420
36420
  });
36421
- var D = null;
36422
- var O = E2(Q);
36423
- var k2 = /* @__PURE__ */ new Set();
36421
+ var O = null;
36422
+ var k2 = E2(Q);
36423
+ var Ie = /* @__PURE__ */ new Set();
36424
36424
  var A = null;
36425
36425
  function ze(e4, t3) {
36426
- return { write(n3) {
36426
+ return globalThis.__miniv8_wasm === void 0 ? { write(n3) {
36427
36427
  A ??= import_pino.default.transport({ targets: Ne(e4, t3) }), A.write(n3);
36428
+ } } : { write: (e5) => {
36429
+ D.write(e5);
36428
36430
  } };
36429
36431
  }
36430
36432
  function Be(e4, t3) {
36431
- return D ??= (0, import_pino.default)({ level: e4 }, import_pino.default.multistream([{ level: e4, stream: Pe }, { level: e4, stream: ze(t3, e4) }])), O = E2(D.level), D;
36433
+ return O ??= (0, import_pino.default)({ level: e4 }, import_pino.default.multistream([{ level: e4, stream: D }, { level: e4, stream: ze(t3, e4) }])), k2 = E2(O.level), O;
36432
36434
  }
36433
36435
  function Ve(e4, t3) {
36434
- Be(t3?.level ?? E2(Q), t3?.destination ?? X), T(D, `Root logger is not initialized`);
36435
- let n3 = D.child({ name: e4 }, { level: t3?.level ?? O });
36436
- return k2.add(n3), n3;
36436
+ Be(t3?.level ?? E2(Q), t3?.destination ?? X), T(O, `Root logger is not initialized`);
36437
+ let n3 = O.child({ name: e4 }, { level: t3?.level ?? k2 });
36438
+ return Ie.add(n3), n3;
36437
36439
  }
36438
36440
  var He = 10 * 1024 * 1024;
36439
36441
  var F2;