@duang-ai/cli 0.0.0-stage → 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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +53 -2
  3. package/dist/duang.mjs +33909 -0
  4. package/package.json +50 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 fastagent-sh contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,54 @@
1
- # Temporary Holding Version
1
+ # @duang-ai/cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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
+
5
+ Requires Node.js 20 or later.
6
+
7
+ ```sh
8
+ npm install -g @duang-ai/cli
9
+ duang login
10
+ ```
11
+
12
+ Or without installing: `npx @duang-ai/cli login`.
13
+
14
+ ## Use
15
+
16
+ ```sh
17
+ duang discover # the topics
18
+ duang discover --topic gtm # a topic's capabilities and providers
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
21
+ duang call people.email.find \
22
+ --input '{"full_name":"Alexis Ohanian","domain":"reddit.com"}' \
23
+ --idempotency-key lead-17
24
+ duang call 'https://api.hunter.io/v2/email-finder?domain=reddit.com&full_name=Alexis+Ohanian'
25
+ duang call 'https://api.supabase.com/v1/projects' --account <account_id>
26
+ duang calls get <call_id> --wait 30
27
+ ```
28
+
29
+ A request to a provider's API is written as its documentation writes it, without a credential: duang adds the team's.
30
+
31
+ ## Output and exit codes
32
+
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.
34
+
35
+ | Exit | Meaning |
36
+ | ---- | ------------------------------------------------------------ |
37
+ | 0 | Success, or no result |
38
+ | 2 | The command was used wrongly |
39
+ | 3 | The input must be fixed |
40
+ | 4 | A person has to act: sign in, connect an account, or approve |
41
+ | 5 | Trying again, or another provider, may work |
42
+ | 6 | Waiting ran out while the work goes on |
43
+ | 130 | Interrupted while waiting; the remote call continues |
44
+ | 1 | Any other failure |
45
+
46
+ ## Signing in and servers
47
+
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.
49
+
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.
51
+
52
+ ## License
53
+
54
+ MIT