@protolabsai/proto 0.19.0 → 0.19.2

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 (2) hide show
  1. package/cli.js +15 -9
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -143158,6 +143158,9 @@ function initializeTelemetry(config2) {
143158
143158
  const parsedEndpoint = parseOtlpEndpoint(otlpEndpoint, otlpProtocol);
143159
143159
  const telemetryOutfile = config2.getTelemetryOutfile();
143160
143160
  const useOtlp = !!parsedEndpoint && !telemetryOutfile;
143161
+ if (!useOtlp && !telemetryOutfile && !langfuseProcessor) {
143162
+ return;
143163
+ }
143161
143164
  let spanExporter;
143162
143165
  let logExporter;
143163
143166
  let metricReader;
@@ -143207,9 +143210,10 @@ function initializeTelemetry(config2) {
143207
143210
  exportIntervalMillis: 1e4
143208
143211
  });
143209
143212
  }
143210
- const spanProcessors = [
143211
- new import_sdk_trace_node.BatchSpanProcessor(spanExporter)
143212
- ];
143213
+ const spanProcessors = [];
143214
+ if (useOtlp || telemetryOutfile) {
143215
+ spanProcessors.push(new import_sdk_trace_node.BatchSpanProcessor(spanExporter));
143216
+ }
143213
143217
  if (langfuseProcessor) {
143214
143218
  spanProcessors.push(langfuseProcessor);
143215
143219
  debugLogger154.debug("Langfuse span processor enabled.");
@@ -143277,7 +143281,9 @@ var init_sdk = __esm({
143277
143281
  init_metrics2();
143278
143282
  init_file_exporters();
143279
143283
  init_debugLogger();
143280
- diag2.setLogger(new DiagConsoleLogger(), DiagLogLevel.INFO);
143284
+ if (process.env?.["PROTO_OTEL_DEBUG"]) {
143285
+ diag2.setLogger(new DiagConsoleLogger(), DiagLogLevel.DEBUG);
143286
+ }
143281
143287
  telemetryInitialized = false;
143282
143288
  __name(buildLangfuseSpanProcessor, "buildLangfuseSpanProcessor");
143283
143289
  __name(isTelemetrySdkInitialized, "isTelemetrySdkInitialized");
@@ -170765,7 +170771,7 @@ __export(geminiContentGenerator_exports, {
170765
170771
  createGeminiContentGenerator: () => createGeminiContentGenerator
170766
170772
  });
170767
170773
  function createGeminiContentGenerator(config2, gcConfig) {
170768
- const version2 = "0.19.0";
170774
+ const version2 = "0.19.2";
170769
170775
  const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
170770
170776
  const baseHeaders = {
170771
170777
  "User-Agent": userAgent2
@@ -272781,7 +272787,7 @@ var init_config3 = __esm({
272781
272787
  generationConfigSources: params.generationConfigSources,
272782
272788
  onModelChange: this.handleModelChange.bind(this)
272783
272789
  });
272784
- if (this.telemetrySettings.enabled) {
272790
+ if (this.telemetrySettings.enabled || process7.env?.["LANGFUSE_PUBLIC_KEY"] && process7.env?.["LANGFUSE_SECRET_KEY"]) {
272785
272791
  initializeTelemetry(this);
272786
272792
  }
272787
272793
  if (this.getProxy()) {
@@ -411654,7 +411660,7 @@ __name(getPackageJson, "getPackageJson");
411654
411660
  // packages/cli/src/utils/version.ts
411655
411661
  async function getCliVersion() {
411656
411662
  const pkgJson = await getPackageJson();
411657
- return "0.19.0";
411663
+ return "0.19.2";
411658
411664
  }
411659
411665
  __name(getCliVersion, "getCliVersion");
411660
411666
 
@@ -419426,7 +419432,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
419426
419432
 
419427
419433
  // packages/cli/src/generated/git-commit.ts
419428
419434
  init_esbuild_shims();
419429
- var GIT_COMMIT_INFO = "ce5373c4b";
419435
+ var GIT_COMMIT_INFO = "d47813cf6";
419430
419436
 
419431
419437
  // packages/cli/src/utils/systemInfo.ts
419432
419438
  async function getNpmVersion() {
@@ -486222,7 +486228,7 @@ var QwenAgent = class {
486222
486228
  async initialize(args2) {
486223
486229
  this.clientCapabilities = args2.clientCapabilities;
486224
486230
  const authMethods = buildAuthMethods();
486225
- const version2 = "0.19.0";
486231
+ const version2 = "0.19.2";
486226
486232
  return {
486227
486233
  protocolVersion: PROTOCOL_VERSION,
486228
486234
  agentInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protolabsai/proto",
3
- "version": "0.19.0",
3
+ "version": "0.19.2",
4
4
  "description": "proto - AI-powered coding agent",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "bundled"
22
22
  ],
23
23
  "config": {
24
- "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.19.0"
24
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.19.2"
25
25
  },
26
26
  "dependencies": {},
27
27
  "optionalDependencies": {