@rine-network/cli 0.7.2 → 0.7.4

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 (2) hide show
  1. package/dist/main.js +5 -0
  2. package/package.json +59 -59
package/dist/main.js CHANGED
@@ -1184,6 +1184,11 @@ function addMessageCommands(parent, program) {
1184
1184
  const parsedPayload = result.parsed;
1185
1185
  const original = await client.get(`/messages/${messageId}`);
1186
1186
  const senderAgentId = await resolveAgent(apiUrl, await fetchAgents(client), void 0, gOpts.as);
1187
+ if (original.from_agent_id === senderAgentId) {
1188
+ console.error("Cannot reply to your own message. Use 'rine send' to follow up in this conversation.");
1189
+ process.exitCode = 1;
1190
+ return;
1191
+ }
1187
1192
  const recipientAgentId = original.from_agent_id;
1188
1193
  const resolvedType = opts.type ?? original.type;
1189
1194
  try {
package/package.json CHANGED
@@ -1,61 +1,61 @@
1
1
  {
2
- "name": "@rine-network/cli",
3
- "version": "0.7.2",
4
- "description": "CLI client for rine.network \u2014 EU-first messaging infrastructure for AI agents",
5
- "author": "mmmbs <mmmbs@proton.me>",
6
- "license": "EUPL-1.2",
7
- "type": "module",
8
- "engines": {
9
- "node": ">=22"
10
- },
11
- "bin": {
12
- "rine": "bin/rine.js"
13
- },
14
- "files": [
15
- "bin/",
16
- "dist/"
17
- ],
18
- "exports": {
19
- ".": "./dist/main.js"
20
- },
21
- "scripts": {
22
- "build": "tsdown src/main.ts --format esm --outDir dist --clean",
23
- "prepublishOnly": "npm run build",
24
- "typecheck": "tsc --noEmit",
25
- "lint": "biome check .",
26
- "test": "vitest run",
27
- "test:coverage": "vitest --coverage",
28
- "dev": "tsx src/main.ts"
29
- },
30
- "dependencies": {
31
- "@rine-network/core": "^0.2.0",
32
- "commander": "^12.0.0",
33
- "eventsource-client": "^1.1.0"
34
- },
35
- "devDependencies": {
36
- "@biomejs/biome": "^1.9.0",
37
- "@types/node": "^22.0.0",
38
- "tsdown": "^0.12.0",
39
- "tsx": "^4.19.0",
40
- "typescript": "^5.8.0",
41
- "vitest": "^3.0.0"
42
- },
43
- "homepage": "https://rine.network",
44
- "repository": {
45
- "type": "git",
46
- "url": "https://codeberg.org/rine/rine-cli"
47
- },
48
- "bugs": {
49
- "url": "https://codeberg.org/rine/rine-cli/issues"
50
- },
51
- "publishConfig": {
52
- "access": "public"
53
- },
54
- "keywords": [
55
- "messaging",
56
- "ai-agents",
57
- "cli",
58
- "a2a",
59
- "eu"
60
- ]
2
+ "name": "@rine-network/cli",
3
+ "version": "0.7.4",
4
+ "description": "CLI client for rine.network EU-first messaging infrastructure for AI agents",
5
+ "author": "mmmbs <mmmbs@proton.me>",
6
+ "license": "EUPL-1.2",
7
+ "type": "module",
8
+ "engines": {
9
+ "node": ">=22"
10
+ },
11
+ "bin": {
12
+ "rine": "bin/rine.js"
13
+ },
14
+ "files": [
15
+ "bin/",
16
+ "dist/"
17
+ ],
18
+ "exports": {
19
+ ".": "./dist/main.js"
20
+ },
21
+ "scripts": {
22
+ "build": "tsdown src/main.ts --format esm --outDir dist --clean",
23
+ "prepublishOnly": "npm run build",
24
+ "typecheck": "tsc --noEmit",
25
+ "lint": "biome check .",
26
+ "test": "vitest run",
27
+ "test:coverage": "vitest --coverage",
28
+ "dev": "tsx src/main.ts"
29
+ },
30
+ "dependencies": {
31
+ "@rine-network/core": "^0.2.0",
32
+ "commander": "^12.0.0",
33
+ "eventsource-client": "^1.1.0"
34
+ },
35
+ "devDependencies": {
36
+ "@biomejs/biome": "^1.9.0",
37
+ "@types/node": "^22.0.0",
38
+ "tsdown": "^0.12.0",
39
+ "tsx": "^4.19.0",
40
+ "typescript": "^5.8.0",
41
+ "vitest": "^3.0.0"
42
+ },
43
+ "homepage": "https://rine.network",
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "https://codeberg.org/rine/rine-cli"
47
+ },
48
+ "bugs": {
49
+ "url": "https://codeberg.org/rine/rine-cli/issues"
50
+ },
51
+ "publishConfig": {
52
+ "access": "public"
53
+ },
54
+ "keywords": [
55
+ "messaging",
56
+ "ai-agents",
57
+ "cli",
58
+ "a2a",
59
+ "eu"
60
+ ]
61
61
  }