@dosu/cli 0.12.0 → 0.12.1

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 +16 -4
  2. package/package.json +1 -1
package/bin/dosu.js CHANGED
@@ -4341,7 +4341,7 @@ function getSupabaseAnonKey() {
4341
4341
  function getVersionString() {
4342
4342
  return `v${VERSION}`;
4343
4343
  }
4344
- var VERSION = "0.12.0";
4344
+ var VERSION = "0.12.1";
4345
4345
 
4346
4346
  // src/debug/logger.ts
4347
4347
  import {
@@ -7742,7 +7742,8 @@ ${dim(`deployment ${deployment_id}`)}`);
7742
7742
  has_connected_repo: true,
7743
7743
  deployment_id: primary.deployment_id,
7744
7744
  space_id: cfg.space_id,
7745
- created_data_source_ids: survived.map((c) => c.data_source_id)
7745
+ created_data_source_ids: survived.map((c) => c.data_source_id),
7746
+ created_repository_slugs: survived.map((c) => c.slug)
7746
7747
  };
7747
7748
  }
7748
7749
  }
@@ -8259,13 +8260,23 @@ async function waitForImportableGithubFiles(trpc, orgID, spaceID, expectedDataSo
8259
8260
  M2.info("This usually takes a few seconds.");
8260
8261
  const startedAt = Date.now();
8261
8262
  let latestFiles = [];
8263
+ const waitsForExpectedDataSources = expectedDataSourceIds !== undefined && expectedDataSourceIds.length > 0;
8262
8264
  while (Date.now() - startedAt < DOC_SCAN_POLL_TIMEOUT_MS) {
8265
+ const dataSources = await fetchGitHubDataSources(trpc, orgID);
8266
+ if (waitsForExpectedDataSources) {
8267
+ if (isScanComplete(dataSources, expectedDataSourceIds)) {
8268
+ latestFiles = await fetchImportableGithubFiles(trpc, spaceID);
8269
+ spinner.stop(latestFiles.length > 0 ? "Docs ready" : "No markdown docs found");
8270
+ return latestFiles;
8271
+ }
8272
+ await sleep3(DOC_SCAN_POLL_INTERVAL_MS);
8273
+ continue;
8274
+ }
8263
8275
  latestFiles = await fetchImportableGithubFiles(trpc, spaceID);
8264
8276
  if (latestFiles.length > 0) {
8265
8277
  spinner.stop("Docs ready");
8266
8278
  return latestFiles;
8267
8279
  }
8268
- const dataSources = await fetchGitHubDataSources(trpc, orgID);
8269
8280
  if (isScanComplete(dataSources, expectedDataSourceIds)) {
8270
8281
  spinner.stop("No markdown docs found");
8271
8282
  return [];
@@ -8802,7 +8813,8 @@ async function runSetup(opts = {}) {
8802
8813
  }
8803
8814
  if (connectResult.has_connected_repo || (connectResult.created_data_source_ids?.length ?? 0) > 0) {
8804
8815
  await trackCliOnboardingEvent(cfg, onboardingRunID, "cli_onboarding_github_connected", {
8805
- created_data_source_count: connectResult.created_data_source_ids?.length ?? 0
8816
+ created_data_source_count: connectResult.created_data_source_ids?.length ?? 0,
8817
+ created_repository_slugs: connectResult.created_repository_slugs
8806
8818
  });
8807
8819
  }
8808
8820
  if (connectResult.space_id && !cfg.space_id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosu/cli",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "type": "module",
5
5
  "description": "Dosu CLI - Manage MCP servers for AI tools",
6
6
  "license": "MIT",