@dotcontext/cli 0.8.1 → 0.8.2
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
CHANGED
|
@@ -44,10 +44,10 @@ Export to any tool.
|
|
|
44
44
|
**Write once. Use anywhere. No boilerplate.**
|
|
45
45
|
|
|
46
46
|
> **Using GitHub Copilot, Cursor, Claude, or another AI tool?**
|
|
47
|
-
> Just run `npx dotcontext mcp:install` — no API key needed!
|
|
47
|
+
> Just run `npx @dotcontext/cli mcp:install` — no API key needed!
|
|
48
48
|
>
|
|
49
49
|
> **Usando GitHub Copilot, Cursor, Claude ou outra ferramenta de IA?**
|
|
50
|
-
> Execute `npx dotcontext mcp:install` — sem necessidade de API key!
|
|
50
|
+
> Execute `npx @dotcontext/cli mcp:install` — sem necessidade de API key!
|
|
51
51
|
|
|
52
52
|
> **Note / Nota**
|
|
53
53
|
> Standalone CLI generation is no longer supported. Use MCP-enabled AI tools to create, fill, or refresh context.
|
|
@@ -59,7 +59,7 @@ Export to any tool.
|
|
|
59
59
|
|
|
60
60
|
#### English
|
|
61
61
|
|
|
62
|
-
1. Run `npx dotcontext mcp:install`
|
|
62
|
+
1. Run `npx @dotcontext/cli mcp:install`
|
|
63
63
|
2. Prompt your AI agent: `init the context`
|
|
64
64
|
3. Then: `plan [YOUR TASK] using dotcontext`
|
|
65
65
|
4. After planned: `start the workflow`
|
|
@@ -68,7 +68,7 @@ Export to any tool.
|
|
|
68
68
|
|
|
69
69
|
#### Português
|
|
70
70
|
|
|
71
|
-
1. Execute `npx dotcontext mcp:install`
|
|
71
|
+
1. Execute `npx @dotcontext/cli mcp:install`
|
|
72
72
|
2. Diga ao seu agente de IA: `init the context`
|
|
73
73
|
3. Depois: `plan [SUA TAREFA] using dotcontext`
|
|
74
74
|
4. Após o planejamento: `start the workflow`
|
|
@@ -79,13 +79,13 @@ Export to any tool.
|
|
|
79
79
|
|
|
80
80
|
#### English
|
|
81
81
|
|
|
82
|
-
1. Run `npx dotcontext`
|
|
82
|
+
1. Run `npx @dotcontext/cli`
|
|
83
83
|
2. Use the interactive CLI for workflow, sync, reverse sync, and MCP setup
|
|
84
84
|
3. When you need context creation or AI-generated content, use your MCP-connected AI tool
|
|
85
85
|
|
|
86
86
|
#### Português
|
|
87
87
|
|
|
88
|
-
1. Execute `npx dotcontext`
|
|
88
|
+
1. Execute `npx @dotcontext/cli`
|
|
89
89
|
2. Use a CLI interativa para workflow, sincronização, reverse sync e configuração MCP
|
|
90
90
|
3. Quando precisar criar contexto ou gerar conteúdo com IA, use sua ferramenta conectada via MCP
|
|
91
91
|
|
|
@@ -98,7 +98,7 @@ This package includes an MCP (Model Context Protocol) server that provides AI co
|
|
|
98
98
|
Use the MCP Install command to automatically configure the MCP server:
|
|
99
99
|
|
|
100
100
|
```bash
|
|
101
|
-
npx dotcontext mcp:install
|
|
101
|
+
npx @dotcontext/cli mcp:install
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
This interactive command:
|
|
@@ -156,7 +156,7 @@ After saving the `mcp.json` file:
|
|
|
156
156
|
Add the MCP server using the Claude CLI:
|
|
157
157
|
|
|
158
158
|
```bash
|
|
159
|
-
claude mcp add dotcontext -- npx dotcontext mcp
|
|
159
|
+
claude mcp add dotcontext -- npx @dotcontext/cli mcp
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
Or configure manually in `~/.claude.json`:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionChecker.d.ts","sourceRoot":"","sources":["../../src/utils/versionChecker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"versionChecker.d.ts","sourceRoot":"","sources":["../../src/utils/versionChecker.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;IACtC,CAAC,EAAE,WAAW,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AA8BD,wBAAsB,eAAe,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4CjF"}
|
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.checkForUpdates = checkForUpdates;
|
|
7
|
-
const axios_1 = __importDefault(require("axios"));
|
|
8
4
|
const semver_1 = require("semver");
|
|
9
5
|
const DEFAULT_TIMEOUT_MS = 2000;
|
|
10
6
|
const DISABLE_ENV_FLAGS = ['DOTCONTEXT_DISABLE_UPDATE_CHECK', 'NO_UPDATE_NOTIFIER'];
|
|
11
7
|
async function fetchLatestVersion(packageName, timeoutMs) {
|
|
12
8
|
const url = `https://registry.npmjs.org/${encodeURIComponent(packageName)}/latest`;
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
const controller = new AbortController();
|
|
10
|
+
const timeout = setTimeout(() => {
|
|
11
|
+
controller.abort();
|
|
12
|
+
}, timeoutMs);
|
|
13
|
+
try {
|
|
14
|
+
const response = await fetch(url, { signal: controller.signal });
|
|
15
|
+
if (!response.ok) {
|
|
16
|
+
throw new Error(`HTTP ${response.status}`);
|
|
17
|
+
}
|
|
18
|
+
const data = (await response.json());
|
|
19
|
+
if (!data?.version) {
|
|
20
|
+
throw new Error('missing-version');
|
|
21
|
+
}
|
|
22
|
+
return data.version;
|
|
23
|
+
}
|
|
24
|
+
finally {
|
|
25
|
+
clearTimeout(timeout);
|
|
16
26
|
}
|
|
17
|
-
return response.data.version;
|
|
18
27
|
}
|
|
19
28
|
async function checkForUpdates(options) {
|
|
20
29
|
const { packageName, currentVersion, ui, t, registryTimeoutMs = DEFAULT_TIMEOUT_MS, fetcher, updateCommand, force = false } = options;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionChecker.js","sourceRoot":"","sources":["../../src/utils/versionChecker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"versionChecker.js","sourceRoot":"","sources":["../../src/utils/versionChecker.ts"],"names":[],"mappings":";;AA4CA,0CA4CC;AAxFD,mCAA4B;AAgB5B,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAEhC,MAAM,iBAAiB,GAAG,CAAC,iCAAiC,EAAE,oBAAoB,CAAC,CAAC;AAEpF,KAAK,UAAU,kBAAkB,CAAC,WAAmB,EAAE,SAAiB;IACtE,MAAM,GAAG,GAAG,8BAA8B,kBAAkB,CAAC,WAAW,CAAC,SAAS,CAAC;IACnF,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;IACzC,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;QAC9B,UAAU,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC,EAAE,SAAS,CAAC,CAAC;IAEd,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;QACjE,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,QAAQ,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;QAC7C,CAAC;QAED,MAAM,IAAI,GA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WAAW,CACZ,CAAC,CAAC,6BAA6B,CAAC,EAChC,CAAC,CAAC,8BAA8B,EAAE;gBAChC,MAAM,EAAE,aAAa;gBACrB,OAAO,EAAE,cAAc;gBACvB,OAAO;aACR,CAAC,CACH,CAAC;QACJ,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,oEAAoE;IACtE,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcontext/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "MCP-first toolkit for AI context workflow, sync, imports, and orchestration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -50,14 +50,13 @@
|
|
|
50
50
|
"@ai-sdk/anthropic": "^3.0.9",
|
|
51
51
|
"@ai-sdk/google": "^3.0.6",
|
|
52
52
|
"@ai-sdk/openai": "^3.0.7",
|
|
53
|
-
"@
|
|
53
|
+
"@inquirer/prompts": "^7.10.1",
|
|
54
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
54
55
|
"ai": "^6.0.19",
|
|
55
|
-
"axios": "^1.12.2",
|
|
56
56
|
"boxen": "^5.1.2",
|
|
57
57
|
"chalk": "^4.1.2",
|
|
58
58
|
"cli-progress": "^3.12.0",
|
|
59
59
|
"commander": "^14.0.1",
|
|
60
|
-
"figures": "^3.2.0",
|
|
61
60
|
"fs-extra": "^11.3.2",
|
|
62
61
|
"glob": "^10.4.5",
|
|
63
62
|
"ignore": "^7.0.5",
|
|
@@ -82,4 +81,4 @@
|
|
|
82
81
|
"tree-sitter": "^0.21.0",
|
|
83
82
|
"tree-sitter-typescript": "^0.23.2"
|
|
84
83
|
}
|
|
85
|
-
}
|
|
84
|
+
}
|