@dotcontext/cli 0.8.0 → 0.8.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.
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/cli mcp:install` — no API key needed!
47
+ > Just run `npx dotcontext mcp:install` — no API key needed!
48
48
  >
49
49
  > **Usando GitHub Copilot, Cursor, Claude ou outra ferramenta de IA?**
50
- > Execute `npx @dotcontext/cli mcp:install` — sem necessidade de API key!
50
+ > Execute `npx dotcontext 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/cli mcp:install`
62
+ 1. Run `npx dotcontext 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/cli mcp:install`
71
+ 1. Execute `npx dotcontext 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/cli`
82
+ 1. Run `npx dotcontext`
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/cli`
88
+ 1. Execute `npx dotcontext`
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/cli mcp:install
101
+ npx dotcontext 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/cli mcp
159
+ claude mcp add dotcontext -- npx dotcontext mcp
160
160
  ```
161
161
 
162
162
  Or configure manually in `~/.claude.json`:
@@ -435,7 +435,7 @@ The system automatically detects project scale and adjusts the workflow:
435
435
 
436
436
  - Node.js 20+
437
437
 
438
- **Context creation, AI generation, and refresh are MCP-only.** Use `npx @dotcontext/cli mcp:install` and let your AI tool use its own LLM.
438
+ **Context creation, AI generation, and refresh are MCP-only.** Use `npx dotcontext mcp:install` and let your AI tool use its own LLM.
439
439
 
440
440
  ### Available MCP Tools
441
441
 
@@ -489,8 +489,8 @@ Skills are task-specific procedures that AI agents activate when needed:
489
489
  | `security-audit` | Security review checklist | R, V |
490
490
 
491
491
  ```bash
492
- npx @dotcontext/cli skill list # List available skills
493
- npx @dotcontext/cli skill export # Export to AI tools
492
+ npx dotcontext skill list # List available skills
493
+ npx dotcontext skill export # Export to AI tools
494
494
  ```
495
495
 
496
496
  Use MCP tools from your AI assistant to scaffold, fill, or refresh skills and other context files.
@@ -528,7 +528,7 @@ The previous name `@ai-coders/context` caused frequent confusion with **Context7
528
528
  | Before | After |
529
529
  |--------|-------|
530
530
  | `npm install @ai-coders/context` | `npm install @dotcontext/cli` |
531
- | `npx @ai-coders/context` | `npx @dotcontext/cli` |
531
+ | `npx @ai-coders/context` | `npx dotcontext` |
532
532
  | CLI command: `ai-context` | CLI command: `dotcontext` |
533
533
  | MCP server name: `"ai-context"` | MCP server name: `"dotcontext"` |
534
534
  | Env var: `AI_CONTEXT_LANG` | Env var: `DOTCONTEXT_LANG` |
@@ -551,7 +551,7 @@ The previous name `@ai-coders/context` caused frequent confusion with **Context7
551
551
 
552
552
  2. **Update MCP configurations** -- re-run the installer:
553
553
  ```bash
554
- npx @dotcontext/cli mcp:install
554
+ npx dotcontext mcp:install
555
555
  ```
556
556
  Or manually replace `"ai-context"` with `"dotcontext"` and `"@ai-coders/context"` with `"@dotcontext/cli"` in your MCP JSON configs.
557
557
 
package/dist/version.d.ts CHANGED
@@ -2,6 +2,8 @@
2
2
  * Centralized version and package constants
3
3
  *
4
4
  * Single source of truth for version information.
5
+ * Uses fs.readFileSync to avoid JSON import compatibility issues
6
+ * across different Node.js versions and module formats.
5
7
  */
6
8
  export declare const VERSION: string;
7
9
  export declare const PACKAGE_NAME: string;
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,OAAO,QAAc,CAAC;AACnC,eAAO,MAAM,YAAY,QAAW,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,eAAO,MAAM,OAAO,EAAE,MAAoB,CAAC;AAC3C,eAAO,MAAM,YAAY,EAAE,MAAiB,CAAC"}
package/dist/version.js CHANGED
@@ -3,13 +3,48 @@
3
3
  * Centralized version and package constants
4
4
  *
5
5
  * Single source of truth for version information.
6
+ * Uses fs.readFileSync to avoid JSON import compatibility issues
7
+ * across different Node.js versions and module formats.
6
8
  */
7
- var __importDefault = (this && this.__importDefault) || function (mod) {
8
- return (mod && mod.__esModule) ? mod : { "default": mod };
9
- };
9
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
25
+ var __importStar = (this && this.__importStar) || (function () {
26
+ var ownKeys = function(o) {
27
+ ownKeys = Object.getOwnPropertyNames || function (o) {
28
+ var ar = [];
29
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
30
+ return ar;
31
+ };
32
+ return ownKeys(o);
33
+ };
34
+ return function (mod) {
35
+ if (mod && mod.__esModule) return mod;
36
+ var result = {};
37
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
38
+ __setModuleDefault(result, mod);
39
+ return result;
40
+ };
41
+ })();
10
42
  Object.defineProperty(exports, "__esModule", { value: true });
11
43
  exports.PACKAGE_NAME = exports.VERSION = void 0;
12
- const package_json_1 = __importDefault(require("../package.json"));
13
- exports.VERSION = package_json_1.default.version;
14
- exports.PACKAGE_NAME = package_json_1.default.name;
44
+ const fs = __importStar(require("fs"));
45
+ const path = __importStar(require("path"));
46
+ const packageJsonPath = path.resolve(__dirname, '..', 'package.json');
47
+ const pkg = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
48
+ exports.VERSION = pkg.version;
49
+ exports.PACKAGE_NAME = pkg.name;
15
50
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,mEAAkC;AAErB,QAAA,OAAO,GAAG,sBAAG,CAAC,OAAO,CAAC;AACtB,QAAA,YAAY,GAAG,sBAAG,CAAC,IAAI,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2CAA6B;AAE7B,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AACtE,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC;AAErD,QAAA,OAAO,GAAW,GAAG,CAAC,OAAO,CAAC;AAC9B,QAAA,YAAY,GAAW,GAAG,CAAC,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcontext/cli",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "MCP-first toolkit for AI context workflow, sync, imports, and orchestration",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -82,4 +82,4 @@
82
82
  "tree-sitter": "^0.21.0",
83
83
  "tree-sitter-typescript": "^0.23.2"
84
84
  }
85
- }
85
+ }