@xuda.dev/cohort-churn-analyser-ai-agent 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/README.md +40 -0
- package/agent.json +25 -0
- package/bin.mjs +24 -0
- package/package.json +64 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Cohort & Churn Analyser
|
|
2
|
+
|
|
3
|
+
> Cohort & Churn Analyser
|
|
4
|
+
|
|
5
|
+
A Xuda AI agent, runnable from your terminal.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
npm i -g @xuda.dev/cohort-churn-analyser-ai-agent
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Run
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
cohort-churn-analyser-ai-agent
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
On first run you will be asked to sign in to Xuda. After that the agent opens a chat session in your terminal.
|
|
20
|
+
|
|
21
|
+
## About this agent
|
|
22
|
+
|
|
23
|
+
Attach the customer or subscription export with signup dates, cancellation dates and revenue per period, and say what counts as churn in your business. Mention whether you want logo retention, revenue retention, or both, and how downgrades and reactivations should be treated. You get a correctly truncated cohort triangle, retention and lifetime metrics, and a written read of what the curve is doing.
|
|
24
|
+
|
|
25
|
+
## Details
|
|
26
|
+
|
|
27
|
+
- **Category:** Data & Analytics
|
|
28
|
+
- **Tags:** cohort, churn, retention, excel, subscription, ltv, analytics
|
|
29
|
+
- **Model:** GPT-5 Nano
|
|
30
|
+
|
|
31
|
+
## Links
|
|
32
|
+
|
|
33
|
+
- Marketplace listing: https://dev.xuda.ai/marketplace/agents/7fc_agn_9cdc1557e82b
|
|
34
|
+
- Xuda CLI: https://www.npmjs.com/package/@xuda.ai/cli
|
|
35
|
+
- Xuda: https://xuda.ai
|
|
36
|
+
- Author: [Info xuda](https://dev.xuda.ai/@xu11bp5gs4x1mmica1dvfkgfy)
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
Published automatically by Xuda when this agent was listed on the marketplace as a free agent.
|
package/agent.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"agent_id": "7fc_agn_9cdc1557e82b",
|
|
3
|
+
"agent_name": "Cohort & Churn Analyser",
|
|
4
|
+
"agent_version": "0.1.0",
|
|
5
|
+
"agent_image": null,
|
|
6
|
+
"agent_category": [
|
|
7
|
+
"Data & Analytics"
|
|
8
|
+
],
|
|
9
|
+
"agent_industry": null,
|
|
10
|
+
"agent_tags": [
|
|
11
|
+
"cohort",
|
|
12
|
+
"churn",
|
|
13
|
+
"retention",
|
|
14
|
+
"excel",
|
|
15
|
+
"subscription",
|
|
16
|
+
"ltv",
|
|
17
|
+
"analytics"
|
|
18
|
+
],
|
|
19
|
+
"agent_ai_model": "gpt-1",
|
|
20
|
+
"agent_ai_model_name": "GPT-5 Nano",
|
|
21
|
+
"marketplace_url": "https://dev.xuda.ai/marketplace/agents/7fc_agn_9cdc1557e82b",
|
|
22
|
+
"xuda_api_url": "https://dev.xuda.ai",
|
|
23
|
+
"xuda_ws_url": "https://dev.xuda.ai",
|
|
24
|
+
"xuda_web_url": "https://dev.xuda.ai"
|
|
25
|
+
}
|
package/bin.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { dirname, join } from 'node:path';
|
|
5
|
+
|
|
6
|
+
const __dir = dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
const manifest = JSON.parse(readFileSync(join(__dir, 'agent.json'), 'utf8'));
|
|
8
|
+
|
|
9
|
+
if (manifest.xuda_api_url && !process.env.XUDA_API_URL) process.env.XUDA_API_URL = manifest.xuda_api_url;
|
|
10
|
+
if (manifest.xuda_ws_url && !process.env.XUDA_WS_URL) process.env.XUDA_WS_URL = manifest.xuda_ws_url;
|
|
11
|
+
if (manifest.xuda_web_url && !process.env.XUDA_WEB_URL) process.env.XUDA_WEB_URL = manifest.xuda_web_url;
|
|
12
|
+
|
|
13
|
+
const { runAgent } = await import('@xuda.ai/cli');
|
|
14
|
+
|
|
15
|
+
try {
|
|
16
|
+
await runAgent({
|
|
17
|
+
agentId: manifest.agent_id,
|
|
18
|
+
agentName: manifest.agent_name,
|
|
19
|
+
agentVersion: manifest.agent_version,
|
|
20
|
+
});
|
|
21
|
+
} catch (err) {
|
|
22
|
+
console.error(`error: ${err.message || err}`);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xuda.dev/cohort-churn-analyser-ai-agent",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Cohort & Churn Analyser",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"cohort-churn-analyser-ai-agent": "./bin.mjs"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin.mjs",
|
|
11
|
+
"agent.json",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=20.0.0"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@xuda.ai/cli": "^0.1.2"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"xuda",
|
|
22
|
+
"ai-agent",
|
|
23
|
+
"cli",
|
|
24
|
+
"cohort-churn-analyser-ai-agent",
|
|
25
|
+
"data-analytics",
|
|
26
|
+
"cohort",
|
|
27
|
+
"churn",
|
|
28
|
+
"retention",
|
|
29
|
+
"excel",
|
|
30
|
+
"subscription",
|
|
31
|
+
"ltv",
|
|
32
|
+
"analytics"
|
|
33
|
+
],
|
|
34
|
+
"homepage": "https://dev.xuda.ai/marketplace/agents/7fc_agn_9cdc1557e82b",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "https://github.com/xudaio/xuda"
|
|
38
|
+
},
|
|
39
|
+
"author": {
|
|
40
|
+
"name": "Info xuda",
|
|
41
|
+
"url": "https://dev.xuda.ai/@xu11bp5gs4x1mmica1dvfkgfy"
|
|
42
|
+
},
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"xuda": {
|
|
45
|
+
"agent_id": "7fc_agn_9cdc1557e82b",
|
|
46
|
+
"agent_name": "Cohort & Churn Analyser",
|
|
47
|
+
"agent_version": "0.1.0",
|
|
48
|
+
"agent_category": [
|
|
49
|
+
"Data & Analytics"
|
|
50
|
+
],
|
|
51
|
+
"agent_tags": [
|
|
52
|
+
"cohort",
|
|
53
|
+
"churn",
|
|
54
|
+
"retention",
|
|
55
|
+
"excel",
|
|
56
|
+
"subscription",
|
|
57
|
+
"ltv",
|
|
58
|
+
"analytics"
|
|
59
|
+
],
|
|
60
|
+
"agent_ai_model": "gpt-1",
|
|
61
|
+
"agent_ai_model_name": "GPT-5 Nano",
|
|
62
|
+
"marketplace_url": "https://dev.xuda.ai/marketplace/agents/7fc_agn_9cdc1557e82b"
|
|
63
|
+
}
|
|
64
|
+
}
|