@duang-ai/cli 0.1.0 → 0.1.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 (3) hide show
  1. package/README.md +7 -4
  2. package/dist/duang.mjs +773 -361
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The `duang` command: find, inspect and call outside data services for your team, from a terminal, a script or an agent. It does what duang's MCP tools do.
4
4
 
5
- Requires Node.js 24 or later.
5
+ Requires Node.js 20 or later.
6
6
 
7
7
  ```sh
8
8
  npm install -g @duang-ai/cli
@@ -17,18 +17,20 @@ Or without installing: `npx @duang-ai/cli login`.
17
17
  duang discover # the topics
18
18
  duang discover --topic gtm # a topic's capabilities and providers
19
19
  duang inspect people.email.find # what one takes and gives, and what it costs
20
+ duang accounts list # external accounts connected to this team
20
21
  duang call people.email.find \
21
22
  --input '{"full_name":"Alexis Ohanian","domain":"reddit.com"}' \
22
23
  --idempotency-key lead-17
23
24
  duang call 'https://api.hunter.io/v2/email-finder?domain=reddit.com&full_name=Alexis+Ohanian'
24
- duang calls get <call_id>
25
+ duang call 'https://api.supabase.com/v1/projects' --account <account_id>
26
+ duang calls get <call_id> --wait 30
25
27
  ```
26
28
 
27
29
  A request to a provider's API is written as its documentation writes it, without a credential: duang adds the team's.
28
30
 
29
31
  ## Output and exit codes
30
32
 
31
- At a terminal the command writes sentences; otherwise, or with `--json`, it writes one JSON object to stdout. `--jq <selector>` writes only what the selector picks. `duang manifest` prints every command, option, exit code and example for a program to read.
33
+ On exit `0`, results go to `stdout` (sentences at a terminal; one JSON object when non-TTY or with `--json`; selected lines with `--jq <selector>`). On any non-zero exit, `stdout` stays empty and all errors go to `stderr` (one JSON object when non-TTY, `--json`, or `--jq`). `duang manifest` prints every command, option, exit code and example for a program to read.
32
34
 
33
35
  | Exit | Meaning |
34
36
  | ---- | ------------------------------------------------------------ |
@@ -38,13 +40,14 @@ At a terminal the command writes sentences; otherwise, or with `--json`, it writ
38
40
  | 4 | A person has to act: sign in, connect an account, or approve |
39
41
  | 5 | Trying again, or another provider, may work |
40
42
  | 6 | Waiting ran out while the work goes on |
43
+ | 130 | Interrupted while waiting; the remote call continues |
41
44
  | 1 | Any other failure |
42
45
 
43
46
  ## Signing in and servers
44
47
 
45
48
  `duang login` signs this machine in as you, for one team, through your browser; `duang login --request` starts it without waiting, for an agent or a machine without a browser. `DUANG_API_KEY` uses a team key instead.
46
49
 
47
- The command talks to the hosted duang, `https://api.duang.ai`, unless `DUANG_API_BASE` or `--api-base` names another server, such as one you host yourself.
50
+ The command talks to the hosted duang, `https://api.duang.ai`, unless `DUANG_API_URL` or `--api-url` names another server, such as one you host yourself.
48
51
 
49
52
  ## License
50
53