@duang-ai/cli 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/dist/duang.mjs +33497 -0
- 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,51 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @duang-ai/cli
|
|
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
|
+
|
|
5
|
+
Requires Node.js 24 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 call people.email.find \
|
|
21
|
+
--input '{"full_name":"Alexis Ohanian","domain":"reddit.com"}' \
|
|
22
|
+
--idempotency-key lead-17
|
|
23
|
+
duang call 'https://api.hunter.io/v2/email-finder?domain=reddit.com&full_name=Alexis+Ohanian'
|
|
24
|
+
duang calls get <call_id>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
A request to a provider's API is written as its documentation writes it, without a credential: duang adds the team's.
|
|
28
|
+
|
|
29
|
+
## Output and exit codes
|
|
30
|
+
|
|
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.
|
|
32
|
+
|
|
33
|
+
| Exit | Meaning |
|
|
34
|
+
| ---- | ------------------------------------------------------------ |
|
|
35
|
+
| 0 | Success, or no result |
|
|
36
|
+
| 2 | The command was used wrongly |
|
|
37
|
+
| 3 | The input must be fixed |
|
|
38
|
+
| 4 | A person has to act: sign in, connect an account, or approve |
|
|
39
|
+
| 5 | Trying again, or another provider, may work |
|
|
40
|
+
| 6 | Waiting ran out while the work goes on |
|
|
41
|
+
| 1 | Any other failure |
|
|
42
|
+
|
|
43
|
+
## Signing in and servers
|
|
44
|
+
|
|
45
|
+
`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
|
+
|
|
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.
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
MIT
|