@dosu/cli 0.67.0-beta.8 → 0.67.0-beta.9

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/bin/dosu.js +14 -7
  2. package/package.json +1 -1
package/bin/dosu.js CHANGED
@@ -450,7 +450,7 @@ function isNpxInvocation(channel = INSTALL_CHANNEL, env = process.env) {
450
450
  function getVersionString() {
451
451
  return `v${VERSION}`;
452
452
  }
453
- var VERSION = "0.67.0-beta.8", INSTALL_CHANNEL = "npm";
453
+ var VERSION = "0.67.0-beta.9", INSTALL_CHANNEL = "npm";
454
454
 
455
455
  // src/debug/logger.ts
456
456
  import {
@@ -9580,10 +9580,14 @@ function headReflogOfDir(dir, timeout = 5000) {
9580
9580
  function displayRepo(repo) {
9581
9581
  return repo.split("/").slice(1).join("/") || repo;
9582
9582
  }
9583
- var GIT_LOCATION_ENV, GIT_TIMED_OUT;
9583
+ function githubSlugOfRepo(repo) {
9584
+ return repo === null ? null : GITHUB_SLUG.exec(repo)?.[1] ?? null;
9585
+ }
9586
+ var GIT_LOCATION_ENV, GIT_TIMED_OUT, GITHUB_SLUG;
9584
9587
  var init_repo = __esm(() => {
9585
9588
  GIT_LOCATION_ENV = ["GIT_DIR", "GIT_WORK_TREE", "GIT_COMMON_DIR", "GIT_INDEX_FILE"];
9586
9589
  GIT_TIMED_OUT = Symbol("git timed out");
9590
+ GITHUB_SLUG = /^github\.com\/([a-z0-9-]+\/[a-z0-9._-]+)$/;
9587
9591
  });
9588
9592
 
9589
9593
  // src/sync/lock.ts
@@ -22237,7 +22241,7 @@ var init_backlog = __esm(() => {
22237
22241
  });
22238
22242
 
22239
22243
  // src/telemetry/debug-id.ts
22240
- var BUNDLE_DEBUG_ID_PLACEHOLDER = "b1ea3994-833d-5f18-6475-6e2164756e21";
22244
+ var BUNDLE_DEBUG_ID_PLACEHOLDER = "d33cbd82-2145-b9b8-6475-6e2164756e21";
22241
22245
 
22242
22246
  // src/telemetry/telemetry.ts
22243
22247
  import { randomUUID as randomUUID2 } from "node:crypto";
@@ -23744,13 +23748,14 @@ function createShipStep(options) {
23744
23748
  const start = sessionStartOf(records, copied);
23745
23749
  const branch = start.recorded ?? resolve.resolveBranch(session, start.firstPromptAt);
23746
23750
  const parentSessionId = session.parentId ?? session.forkOf?.id;
23751
+ const repo = githubSlugOfRepo(resolve.resolveRepo(session));
23747
23752
  const usage = readUsage(session);
23748
23753
  const body = JSON.stringify({
23749
23754
  records: plan.records,
23750
23755
  metadata: {
23751
23756
  deployment_id: options.deploymentId,
23752
23757
  project,
23753
- repo: project,
23758
+ ...repo ? { repo } : {},
23754
23759
  agent: trajectorySourceOf(session.harness) ?? session.harness,
23755
23760
  session_id: session.id,
23756
23761
  ...branch ? { branch } : {},
@@ -23803,10 +23808,11 @@ function createShipStep(options) {
23803
23808
  return async (sessions, shippedOf = () => {
23804
23809
  return;
23805
23810
  }, hold = () => null, settled = () => {}) => {
23806
- const resolver = options.resolveProject && options.resolveBranch ? undefined : createProjectDirResolver();
23811
+ const resolver = options.resolveProject && options.resolveBranch && options.resolveRepo ? undefined : createProjectDirResolver();
23807
23812
  const resolve = {
23808
23813
  resolveProject: options.resolveProject ?? ((session) => resolver?.resolveProject(session) ?? null),
23809
- resolveBranch: options.resolveBranch ?? ((session, at) => resolver?.resolveBranch(session, at) ?? null)
23814
+ resolveBranch: options.resolveBranch ?? ((session, at) => resolver?.resolveBranch(session, at) ?? null),
23815
+ resolveRepo: options.resolveRepo ?? ((session) => resolver?.resolveRepo(session) ?? null)
23810
23816
  };
23811
23817
  const results = [];
23812
23818
  for (const session of sessions) {
@@ -23825,6 +23831,7 @@ function createShipStep(options) {
23825
23831
  var REJECTED_STATUSES, REQUEST_TIMEOUT_MS2 = 60000;
23826
23832
  var init_runner = __esm(() => {
23827
23833
  init_project_dir();
23834
+ init_repo();
23828
23835
  init_incognito();
23829
23836
  init_continuation();
23830
23837
  init_normalize();
@@ -34855,4 +34862,4 @@ main().catch((err) => {
34855
34862
  process.exit(1);
34856
34863
  });
34857
34864
 
34858
- //# debugId=b1ea3994-833d-5f18-6475-6e2164756e21
34865
+ //# debugId=d33cbd82-2145-b9b8-6475-6e2164756e21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosu/cli",
3
- "version": "0.67.0-beta.8",
3
+ "version": "0.67.0-beta.9",
4
4
  "type": "module",
5
5
  "description": "Dosu CLI - Set up Dosu MCP for AI tools and work with Dosu Libraries, docs, and reviews",
6
6
  "license": "MIT",