@xmtp/convos-cli 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.
Files changed (101) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +572 -0
  3. package/bin/dev.js +4 -0
  4. package/bin/run.js +4 -0
  5. package/dist/baseCommand.d.ts +46 -0
  6. package/dist/baseCommand.js +171 -0
  7. package/dist/commands/agent/serve.d.ts +67 -0
  8. package/dist/commands/agent/serve.js +662 -0
  9. package/dist/commands/conversation/add-members.d.ts +19 -0
  10. package/dist/commands/conversation/add-members.js +39 -0
  11. package/dist/commands/conversation/consent-state.d.ts +18 -0
  12. package/dist/commands/conversation/consent-state.js +24 -0
  13. package/dist/commands/conversation/download-attachment.d.ts +28 -0
  14. package/dist/commands/conversation/download-attachment.js +164 -0
  15. package/dist/commands/conversation/explode.d.ts +24 -0
  16. package/dist/commands/conversation/explode.js +156 -0
  17. package/dist/commands/conversation/info.d.ts +22 -0
  18. package/dist/commands/conversation/info.js +79 -0
  19. package/dist/commands/conversation/invite.d.ts +26 -0
  20. package/dist/commands/conversation/invite.js +137 -0
  21. package/dist/commands/conversation/lock.d.ts +24 -0
  22. package/dist/commands/conversation/lock.js +98 -0
  23. package/dist/commands/conversation/members.d.ts +22 -0
  24. package/dist/commands/conversation/members.js +39 -0
  25. package/dist/commands/conversation/messages.d.ts +31 -0
  26. package/dist/commands/conversation/messages.js +141 -0
  27. package/dist/commands/conversation/permissions.d.ts +18 -0
  28. package/dist/commands/conversation/permissions.js +33 -0
  29. package/dist/commands/conversation/profiles.d.ts +22 -0
  30. package/dist/commands/conversation/profiles.js +80 -0
  31. package/dist/commands/conversation/remove-members.d.ts +19 -0
  32. package/dist/commands/conversation/remove-members.js +36 -0
  33. package/dist/commands/conversation/send-attachment.d.ts +30 -0
  34. package/dist/commands/conversation/send-attachment.js +187 -0
  35. package/dist/commands/conversation/send-reaction.d.ts +21 -0
  36. package/dist/commands/conversation/send-reaction.js +38 -0
  37. package/dist/commands/conversation/send-remote-attachment.d.ts +30 -0
  38. package/dist/commands/conversation/send-remote-attachment.js +96 -0
  39. package/dist/commands/conversation/send-reply.d.ts +32 -0
  40. package/dist/commands/conversation/send-reply.js +170 -0
  41. package/dist/commands/conversation/send-text.d.ts +24 -0
  42. package/dist/commands/conversation/send-text.js +64 -0
  43. package/dist/commands/conversation/stream.d.ts +24 -0
  44. package/dist/commands/conversation/stream.js +81 -0
  45. package/dist/commands/conversation/sync.d.ts +18 -0
  46. package/dist/commands/conversation/sync.js +25 -0
  47. package/dist/commands/conversation/update-consent.d.ts +19 -0
  48. package/dist/commands/conversation/update-consent.js +35 -0
  49. package/dist/commands/conversation/update-description.d.ts +19 -0
  50. package/dist/commands/conversation/update-description.js +28 -0
  51. package/dist/commands/conversation/update-name.d.ts +19 -0
  52. package/dist/commands/conversation/update-name.js +29 -0
  53. package/dist/commands/conversation/update-profile.d.ts +24 -0
  54. package/dist/commands/conversation/update-profile.js +97 -0
  55. package/dist/commands/conversations/create.d.ts +26 -0
  56. package/dist/commands/conversations/create.js +165 -0
  57. package/dist/commands/conversations/join.d.ts +27 -0
  58. package/dist/commands/conversations/join.js +232 -0
  59. package/dist/commands/conversations/list.d.ts +20 -0
  60. package/dist/commands/conversations/list.js +109 -0
  61. package/dist/commands/conversations/process-join-requests.d.ts +26 -0
  62. package/dist/commands/conversations/process-join-requests.js +261 -0
  63. package/dist/commands/conversations/sync.d.ts +19 -0
  64. package/dist/commands/conversations/sync.js +50 -0
  65. package/dist/commands/identity/create.d.ts +21 -0
  66. package/dist/commands/identity/create.js +56 -0
  67. package/dist/commands/identity/info.d.ts +22 -0
  68. package/dist/commands/identity/info.js +63 -0
  69. package/dist/commands/identity/list.d.ts +19 -0
  70. package/dist/commands/identity/list.js +59 -0
  71. package/dist/commands/identity/remove.d.ts +23 -0
  72. package/dist/commands/identity/remove.js +51 -0
  73. package/dist/commands/init.d.ts +16 -0
  74. package/dist/commands/init.js +91 -0
  75. package/dist/commands/reset.d.ts +17 -0
  76. package/dist/commands/reset.js +93 -0
  77. package/dist/help.d.ts +4 -0
  78. package/dist/help.js +31 -0
  79. package/dist/index.d.ts +9 -0
  80. package/dist/index.js +15 -0
  81. package/dist/utils/client.d.ts +8 -0
  82. package/dist/utils/client.js +58 -0
  83. package/dist/utils/config.d.ts +15 -0
  84. package/dist/utils/config.js +1 -0
  85. package/dist/utils/identities.d.ts +49 -0
  86. package/dist/utils/identities.js +92 -0
  87. package/dist/utils/invite.d.ts +70 -0
  88. package/dist/utils/invite.js +339 -0
  89. package/dist/utils/metadata.d.ts +39 -0
  90. package/dist/utils/metadata.js +180 -0
  91. package/dist/utils/mime.d.ts +2 -0
  92. package/dist/utils/mime.js +42 -0
  93. package/dist/utils/random.d.ts +5 -0
  94. package/dist/utils/random.js +19 -0
  95. package/dist/utils/upload.d.ts +14 -0
  96. package/dist/utils/upload.js +51 -0
  97. package/dist/utils/xmtp.d.ts +45 -0
  98. package/dist/utils/xmtp.js +298 -0
  99. package/oclif.manifest.json +5562 -0
  100. package/package.json +124 -0
  101. package/skills/convos-cli/SKILL.md +588 -0
package/package.json ADDED
@@ -0,0 +1,124 @@
1
+ {
2
+ "name": "@xmtp/convos-cli",
3
+ "version": "0.1.0",
4
+ "description": "A command-line interface for Convos — privacy-focused messaging built on XMTP",
5
+ "keywords": [
6
+ "convos",
7
+ "xmtp",
8
+ "messaging",
9
+ "privacy",
10
+ "ephemeral",
11
+ "per-conversation-identity"
12
+ ],
13
+ "homepage": "https://github.com/xmtplabs/convos-cli",
14
+ "bugs": {
15
+ "url": "https://github.com/xmtplabs/convos-cli/issues"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/xmtplabs/convos-cli.git"
20
+ },
21
+ "license": "MIT",
22
+ "author": "XMTP Labs <eng@xmtp.com>",
23
+ "type": "module",
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "default": "./dist/index.js"
28
+ },
29
+ "./utils/*": {
30
+ "types": "./dist/utils/*.d.ts",
31
+ "default": "./dist/utils/*.js"
32
+ },
33
+ "./baseCommand": {
34
+ "types": "./dist/baseCommand.d.ts",
35
+ "default": "./dist/baseCommand.js"
36
+ }
37
+ },
38
+ "main": "dist/index.js",
39
+ "types": "dist/index.d.ts",
40
+ "bin": {
41
+ "convos": "./bin/run.js"
42
+ },
43
+ "files": [
44
+ "bin",
45
+ "dist",
46
+ "skills",
47
+ "oclif.manifest.json",
48
+ "README.md",
49
+ "LICENSE"
50
+ ],
51
+ "scripts": {
52
+ "build": "rm -rf dist && tsc -p tsconfig.build.json",
53
+ "dev": "tsx bin/dev.js",
54
+ "prepack": "npm run build && npx oclif manifest",
55
+ "start": "tsx bin/run.js",
56
+ "test": "vitest run",
57
+ "test:watch": "vitest",
58
+ "typecheck": "tsc --noEmit"
59
+ },
60
+ "oclif": {
61
+ "bin": "convos",
62
+ "commands": "./dist/commands",
63
+ "dirname": "convos",
64
+ "helpClass": "./dist/help",
65
+ "plugins": [
66
+ "@oclif/plugin-autocomplete",
67
+ "@oclif/plugin-help",
68
+ "@oclif/plugin-not-found",
69
+ "@oclif/plugin-warn-if-update-available"
70
+ ],
71
+ "topicSeparator": " ",
72
+ "topics": {
73
+ "agent": {
74
+ "description": "Agent mode — long-running sessions with streaming I/O"
75
+ },
76
+ "identity": {
77
+ "description": "Manage per-conversation identities (inboxes)"
78
+ },
79
+ "conversation": {
80
+ "description": "Interact with a specific conversation"
81
+ },
82
+ "conversations": {
83
+ "description": "List, create, and stream conversations"
84
+ }
85
+ },
86
+ "warn-if-update-available": {
87
+ "frequency": 1,
88
+ "frequencyUnit": "days",
89
+ "message": "<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>.",
90
+ "timeoutInDays": 7
91
+ }
92
+ },
93
+ "dependencies": {
94
+ "@noble/curves": "^2.0.1",
95
+ "@oclif/core": "^4.8.0",
96
+ "@oclif/plugin-autocomplete": "^3.2.40",
97
+ "@oclif/plugin-help": "^6.2.37",
98
+ "@oclif/plugin-not-found": "^3.2.74",
99
+ "@oclif/plugin-warn-if-update-available": "^3.1.55",
100
+ "@xmtp/content-type-remote-attachment": "^2.0.4",
101
+ "@xmtp/node-sdk": "5.3.0",
102
+ "protobufjs": "^8.0.0",
103
+ "qrcode": "^1.5.4",
104
+ "qrcode-terminal": "^0.12.0",
105
+ "viem": "^2.44.4"
106
+ },
107
+ "devDependencies": {
108
+ "@types/node": "^24.10.9",
109
+ "@types/qrcode": "^1.5.6",
110
+ "@types/qrcode-terminal": "^0.12.2",
111
+ "execa": "^9.6.1",
112
+ "oclif": "^4.22.70",
113
+ "tsx": "^4.21.0",
114
+ "typescript": "^5.9.3",
115
+ "vitest": "^4.0.18"
116
+ },
117
+ "engines": {
118
+ "node": ">=22"
119
+ },
120
+ "publishConfig": {
121
+ "access": "public",
122
+ "registry": "https://registry.npmjs.org/"
123
+ }
124
+ }