@duvoai/cli 0.0.1 → 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 (73) hide show
  1. package/README.md +72 -0
  2. package/dist/bin/duvo.js +9840 -6
  3. package/dist/bin/duvo.js.map +7 -0
  4. package/package.json +12 -8
  5. package/dist/api/agent-schemas.d.ts +0 -94
  6. package/dist/api/agent-schemas.js +0 -16
  7. package/dist/api/parse-fields.d.ts +0 -25
  8. package/dist/api/parse-fields.js +0 -86
  9. package/dist/api/read-input.d.ts +0 -6
  10. package/dist/api/read-input.js +0 -28
  11. package/dist/bin/create-program.d.ts +0 -7
  12. package/dist/bin/create-program.js +0 -27
  13. package/dist/bin/duvo.d.ts +0 -2
  14. package/dist/client/client.d.ts +0 -23
  15. package/dist/client/client.js +0 -96
  16. package/dist/commands/agents/get.d.ts +0 -2
  17. package/dist/commands/agents/get.js +0 -42
  18. package/dist/commands/agents/index.d.ts +0 -2
  19. package/dist/commands/agents/index.js +0 -9
  20. package/dist/commands/agents/list.d.ts +0 -2
  21. package/dist/commands/agents/list.js +0 -67
  22. package/dist/commands/api-render.d.ts +0 -8
  23. package/dist/commands/api-render.js +0 -72
  24. package/dist/commands/api.d.ts +0 -2
  25. package/dist/commands/api.js +0 -98
  26. package/dist/commands/login.d.ts +0 -2
  27. package/dist/commands/login.js +0 -80
  28. package/dist/commands/logout.d.ts +0 -2
  29. package/dist/commands/logout.js +0 -38
  30. package/dist/commands/profiles/index.d.ts +0 -2
  31. package/dist/commands/profiles/index.js +0 -13
  32. package/dist/commands/profiles/list.d.ts +0 -2
  33. package/dist/commands/profiles/list.js +0 -22
  34. package/dist/commands/profiles/remove.d.ts +0 -2
  35. package/dist/commands/profiles/remove.js +0 -30
  36. package/dist/commands/profiles/rename.d.ts +0 -2
  37. package/dist/commands/profiles/rename.js +0 -20
  38. package/dist/commands/profiles/render-list.d.ts +0 -12
  39. package/dist/commands/profiles/render-list.js +0 -37
  40. package/dist/commands/profiles/use.d.ts +0 -2
  41. package/dist/commands/profiles/use.js +0 -17
  42. package/dist/commands/shared/confirm.d.ts +0 -19
  43. package/dist/commands/shared/confirm.js +0 -28
  44. package/dist/commands/shared/pagination.d.ts +0 -8
  45. package/dist/commands/shared/pagination.js +0 -24
  46. package/dist/commands/shared/profile-flag.d.ts +0 -8
  47. package/dist/commands/shared/profile-flag.js +0 -17
  48. package/dist/commands/whoami.d.ts +0 -2
  49. package/dist/commands/whoami.js +0 -21
  50. package/dist/config/defaults.d.ts +0 -3
  51. package/dist/config/defaults.js +0 -4
  52. package/dist/config/env.d.ts +0 -17
  53. package/dist/config/env.js +0 -13
  54. package/dist/config/paths.d.ts +0 -2
  55. package/dist/config/paths.js +0 -14
  56. package/dist/config/profiles.d.ts +0 -24
  57. package/dist/config/profiles.js +0 -78
  58. package/dist/config/resolve.d.ts +0 -29
  59. package/dist/config/resolve.js +0 -46
  60. package/dist/config/store.d.ts +0 -4
  61. package/dist/config/store.js +0 -94
  62. package/dist/config/types.d.ts +0 -8
  63. package/dist/config/types.js +0 -1
  64. package/dist/errors.d.ts +0 -22
  65. package/dist/errors.js +0 -42
  66. package/dist/output/format.d.ts +0 -11
  67. package/dist/output/format.js +0 -26
  68. package/dist/output/json.d.ts +0 -6
  69. package/dist/output/json.js +0 -8
  70. package/dist/output/table.d.ts +0 -16
  71. package/dist/output/table.js +0 -35
  72. package/dist/output/text.d.ts +0 -9
  73. package/dist/output/text.js +0 -13
package/README.md ADDED
@@ -0,0 +1,72 @@
1
+ # @duvoai/cli
2
+
3
+ Command-line interface for the [Duvo](https://duvo.ai) public API.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g @duvoai/cli
9
+ ```
10
+
11
+ Requires Node.js ≥ 22.22.0.
12
+
13
+ ## Quick start
14
+
15
+ ```bash
16
+ # 1. Log in (prompts for your API key and saves it to a profile)
17
+ duvo login --name default
18
+
19
+ # 2. Verify you're logged in
20
+ duvo whoami
21
+
22
+ # 3. Create your first agent (interactive)
23
+ duvo agents create
24
+
25
+ # ...or create one non-interactively with flags
26
+ duvo agents create --name "My agent" --input "What this agent should do"
27
+
28
+ # 4. Kick off a run
29
+ duvo runs start --agent <agent-id>
30
+ ```
31
+
32
+ Grab an API key from your team settings: <https://app.duvo.ai/settings/api-keys>.
33
+
34
+ ## Authentication
35
+
36
+ You can keep multiple profiles and switch between them:
37
+
38
+ ```bash
39
+ duvo login --name acme # prompts for the API key
40
+ duvo login --name team-2 # prompts for the API key
41
+
42
+ duvo profiles list # show saved profiles
43
+ duvo profiles use acme # set the default profile
44
+ duvo --profile team-2 whoami # one-off override for a single command
45
+ ```
46
+
47
+ ## Commands
48
+
49
+ | Command | Description |
50
+ | --------------------------------------------------- | ------------------------------------------------------- |
51
+ | `duvo login` | Store an API key under a named profile |
52
+ | `duvo logout` | Remove a profile |
53
+ | `duvo whoami` | Show the active profile, API key owner, and masked key |
54
+ | `duvo profiles <subcmd>` | `list`, `use`, `rename`, `remove` |
55
+ | `duvo agents list` | List agents on your team |
56
+ | `duvo agents get <id>` | Show details for one agent |
57
+ | `duvo agents create` | Create a new agent |
58
+ | `duvo agents update <id>` | Update an agent's name or settings |
59
+ | `duvo agent-folders list` | List agent folders for your team |
60
+ | `duvo agent-folders create` | Create an agent folder |
61
+ | `duvo agent-folders update <id>` | Rename or move an agent folder |
62
+ | `duvo agent-folders delete <id>` | Delete an agent folder |
63
+ | `duvo agent-folders move-agents` | Move agents into a folder or to root |
64
+ | `duvo runs start --agent <id>` | Start a new run for the given agent |
65
+ | `duvo runs list` | List runs for your team (filter by agent, status, etc.) |
66
+ | `duvo sandboxes create` | Create a sandbox for staging files |
67
+ | `duvo sandboxes files <id>` | List files in a sandbox directory |
68
+ | `duvo sandboxes upload <id> <file>` | Upload a local file (max 10MB) |
69
+ | `duvo sandboxes prepare-upload-url <id> --path <p>` | Get a presigned upload URL |
70
+ | `duvo api <method> <path>` | Make a raw authenticated API request |
71
+
72
+ Run `duvo <command> --help` for full flags on any command.