@osfactory/otel-hook 0.1.2 → 0.1.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/dist/cli.js CHANGED
@@ -356,6 +356,23 @@ var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
356
356
  "--require-callback-id",
357
357
  "--no-derive-callback-id"
358
358
  ]);
359
+ var LEGACY_PROVIDER_FLAGS = {
360
+ "--cursor": "cursor",
361
+ "--claude": "claude-code",
362
+ "--codex": "codex"
363
+ };
364
+ function normalizeLegacyProviderFlags(argv) {
365
+ const out = [];
366
+ for (const token of argv) {
367
+ const providerId = LEGACY_PROVIDER_FLAGS[token];
368
+ if (providerId !== void 0) {
369
+ out.push("--provider", providerId);
370
+ continue;
371
+ }
372
+ out.push(token);
373
+ }
374
+ return out;
375
+ }
359
376
  var tokenize = (argv) => {
360
377
  const values = /* @__PURE__ */ new Map();
361
378
  const booleans = /* @__PURE__ */ new Set();
@@ -704,7 +721,7 @@ var parseCliArgs = (argv) => {
704
721
  if (rest.includes("--help") || rest.includes("-h")) {
705
722
  return { status: "help", topic: command };
706
723
  }
707
- const tokens = tokenize(rest);
724
+ const tokens = tokenize(normalizeLegacyProviderFlags(rest));
708
725
  const errors = [...tokens.errors];
709
726
  if (command === "providers") {
710
727
  rejectFlagsFor(command, tokens, PROVIDERS_FLAGS, errors);
@@ -7192,7 +7209,7 @@ import {
7192
7209
  } from "@opentelemetry/semantic-conventions/incubating";
7193
7210
 
7194
7211
  // src/version.ts
7195
- var VERSION = "0.1.2";
7212
+ var VERSION = "0.1.3";
7196
7213
 
7197
7214
  // src/telemetry/semconv.ts
7198
7215
  var SCOPE_NAME = "@osfactory/otel-hook";