@dosu/cli 0.34.0 → 0.35.0

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 (3) hide show
  1. package/README.md +12 -12
  2. package/bin/dosu.js +19 -5
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  ## Quick Start
11
11
 
12
12
  ```bash
13
- npx @dosu/cli setup
13
+ curl -fsSL https://cli.dosu.dev/install | sh
14
14
  ```
15
15
 
16
16
  The interactive wizard authenticates you via browser OAuth, lets you pick a Dosu deployment (or OSS / public-library mode), mints an API key, detects which AI tools you have installed, and writes the Dosu MCP server entry into each one's config. Restart your AI tool and Dosu is available.
@@ -19,33 +19,33 @@ Run `dosu` with no arguments any time to open the interactive menu.
19
19
 
20
20
  ## Installation
21
21
 
22
- ### npx / npm (Recommended)
22
+ ### curl / install (macOS / Linux) (Recommended)
23
23
 
24
- Requires Node.js 22+.
24
+ Downloads and installs the latest stable release binary.
25
25
 
26
26
  ```bash
27
- npx @dosu/cli setup
27
+ curl -fsSL https://cli.dosu.dev/install | sh
28
28
  ```
29
29
 
30
- Or install globally:
30
+ To install a specific release tag:
31
31
 
32
32
  ```bash
33
- npm install -g @dosu/cli
34
- dosu setup
33
+ DOSU_INSTALL_VERSION=v0.2.0-rc1 curl -fsSL https://cli.dosu.dev/install | sh
35
34
  ```
36
35
 
37
- ### curl / install (macOS / Linux)
36
+ ### npx / npm
38
37
 
39
- Downloads and installs the latest stable release binary.
38
+ Requires Node.js 22+.
40
39
 
41
40
  ```bash
42
- curl -fsSL https://raw.githubusercontent.com/dosu-ai/dosu-cli/main/install.sh | sh
41
+ npx @dosu/cli setup
43
42
  ```
44
43
 
45
- To install a specific release tag:
44
+ Or install globally:
46
45
 
47
46
  ```bash
48
- DOSU_INSTALL_VERSION=v0.2.0-rc1 curl -fsSL https://raw.githubusercontent.com/dosu-ai/dosu-cli/main/install.sh | sh
47
+ npm install -g @dosu/cli
48
+ dosu setup
49
49
  ```
50
50
 
51
51
  ### Homebrew
package/bin/dosu.js CHANGED
@@ -4748,7 +4748,7 @@ var init_dist4 = __esm(() => {
4748
4748
  function getVersionString() {
4749
4749
  return `v${VERSION}`;
4750
4750
  }
4751
- var VERSION = "0.34.0", INSTALL_CHANNEL = "npm";
4751
+ var VERSION = "0.35.0", INSTALL_CHANNEL = "npm";
4752
4752
 
4753
4753
  // src/debug/logger.ts
4754
4754
  import {
@@ -4882,7 +4882,7 @@ var init_logger = __esm(() => {
4882
4882
  });
4883
4883
 
4884
4884
  // src/client/contract.ts
4885
- var CLI_CONTRACT_HASH = "f5c0727a7884";
4885
+ var CLI_CONTRACT_HASH = "a27c8fdd5baf";
4886
4886
 
4887
4887
  // src/client/trpc.ts
4888
4888
  var exports_trpc = {};
@@ -14506,7 +14506,7 @@ ${page.body}`);
14506
14506
  }
14507
14507
  console.log(import_picocolors11.default.green("Auto-tagging started."));
14508
14508
  });
14509
- cmd.command("import").description("Import documents from an external platform").argument("<platform>", "Platform: github, gitlab, confluence, notion, coda").requiredOption("--files <ids>", "Comma-separated file/page IDs to import").option("--json", "Output as JSON").action(async (platform2, opts) => {
14509
+ cmd.command("import").description("Import documents from an external platform").argument("<platform>", "Platform: github, gitlab, azure_devops, confluence, notion, coda").requiredOption("--files <ids>", "Comma-separated file/page IDs to import").option("--json", "Output as JSON").action(async (platform2, opts) => {
14510
14510
  const cfg = requireConfig5();
14511
14511
  const client = createTypedClient(cfg);
14512
14512
  const ksId = await getKnowledgeStoreId(client, cfg.active_account.target.space_id);
@@ -14514,13 +14514,14 @@ ${page.body}`);
14514
14514
  const importFn = {
14515
14515
  github: (input) => client.docImports.importGithubFiles.mutate(input),
14516
14516
  gitlab: (input) => client.docImports.importGitlabFiles.mutate(input),
14517
+ azure_devops: (input) => client.docImports.importAzureDevopsFiles.mutate(input),
14517
14518
  confluence: (input) => client.docImports.importConfluencePages.mutate(input),
14518
14519
  notion: (input) => client.docImports.importNotionPages.mutate(input),
14519
14520
  coda: (input) => client.docImports.importCodaPages.mutate(input)
14520
14521
  };
14521
14522
  const fn = importFn[platform2.toLowerCase()];
14522
14523
  if (!fn) {
14523
- console.error(import_picocolors11.default.red(`Unknown platform: ${platform2}. Use: github, gitlab, confluence, notion, coda`));
14524
+ console.error(import_picocolors11.default.red(`Unknown platform: ${platform2}. Use: github, gitlab, azure_devops, confluence, notion, coda`));
14524
14525
  process.exit(1);
14525
14526
  }
14526
14527
  const idField = ["confluence", "notion", "coda"].includes(platform2.toLowerCase()) ? "page_ids" : "file_ids";
@@ -14567,7 +14568,7 @@ ${page.body}`);
14567
14568
  }
14568
14569
  console.log(`Status: ${JSON.stringify(status)}`);
14569
14570
  });
14570
- cmd.command("publish").description("Publish a document to an external platform").argument("<id>", "Page ID").requiredOption("--to <platform>", "Target: github, gitlab, confluence, notion, coda").option("--repo-id <id>", "GitHub repository ID").option("--project-id <id>", "GitLab project ID").option("--parent-page-id <id>", "Parent page ID (Confluence/Notion)").option("--doc-id <id>", "Coda doc ID").option("--directory <path>", "Target directory (GitHub/GitLab)").option("--data-source-id <id>", "Data source ID").option("--json", "Output as JSON").action(async (id, opts) => {
14571
+ cmd.command("publish").description("Publish a document to an external platform").argument("<id>", "Page ID").requiredOption("--to <platform>", "Target: github, gitlab, azure_devops, confluence, notion, coda").option("--repo-id <id>", "GitHub repository ID").option("--project-id <id>", "GitLab project ID").option("--parent-page-id <id>", "Parent page ID (Confluence/Notion)").option("--doc-id <id>", "Coda doc ID").option("--directory <path>", "Target directory (GitHub/GitLab)").option("--data-source-id <id>", "Data source ID").option("--json", "Output as JSON").action(async (id, opts) => {
14571
14572
  const cfg = requireConfig5();
14572
14573
  const platform2 = opts.to.toLowerCase();
14573
14574
  const publishMap = {
@@ -14587,6 +14588,19 @@ ${page.body}`);
14587
14588
  target_data_source_id: opts.dataSourceId
14588
14589
  })
14589
14590
  },
14591
+ azure_devops: {
14592
+ path: `/sync-back/azure_devops/${id}/publish`,
14593
+ buildBody: () => {
14594
+ if (!opts.dataSourceId) {
14595
+ console.error(import_picocolors11.default.red("--data-source-id <id> is required when publishing to azure_devops"));
14596
+ process.exit(1);
14597
+ }
14598
+ return {
14599
+ target_directory: opts.directory ?? "/",
14600
+ target_data_source_id: opts.dataSourceId
14601
+ };
14602
+ }
14603
+ },
14590
14604
  confluence: {
14591
14605
  path: `/sync-back/confluence/${id}/publish`,
14592
14606
  buildBody: () => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosu/cli",
3
- "version": "0.34.0",
3
+ "version": "0.35.0",
4
4
  "type": "module",
5
5
  "description": "Dosu CLI - Manage MCP servers for AI tools",
6
6
  "license": "MIT",