@dewtech/dare-cli 2.0.0 → 2.0.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 +16 -28
- package/dist/index.d.ts +11 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -17
- package/templates/ide/claude/CLAUDE.md +2 -1
package/README.md
CHANGED
|
@@ -192,40 +192,28 @@ npm run inspect
|
|
|
192
192
|
|
|
193
193
|
---
|
|
194
194
|
|
|
195
|
-
##
|
|
195
|
+
## O que vem com o pacote (v2.0+)
|
|
196
196
|
|
|
197
|
-
A partir da v2.0
|
|
198
|
-
|
|
197
|
+
A partir da v2.0 o `@dewtech/dare-cli` é um **pacote único** que inclui todas as
|
|
198
|
+
funcionalidades do framework DARE. Você não precisa instalar nada além dele:
|
|
199
199
|
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
import { createMcpServer } from '@dewtech/dare-cli/mcp-server';
|
|
203
|
-
import { runDag, type Dag } from '@dewtech/dare-cli/dag-runner';
|
|
204
|
-
import type { GraphNode, EdgeType } from '@dewtech/dare-cli/core';
|
|
200
|
+
```bash
|
|
201
|
+
npm install -g @dewtech/dare-cli
|
|
205
202
|
```
|
|
206
203
|
|
|
207
|
-
|
|
208
|
-
|----------|----------|
|
|
209
|
-
| `@dewtech/dare-cli` | API principal, comandos, gerador de projeto |
|
|
210
|
-
| `@dewtech/dare-cli/core` | Tipos compartilhados (graph, project) |
|
|
211
|
-
| `@dewtech/dare-cli/graphrag` | Engine de grafo de conhecimento (SQLite + FTS5) |
|
|
212
|
-
| `@dewtech/dare-cli/mcp-server` | Servidor MCP local (~95% economia de tokens) |
|
|
213
|
-
| `@dewtech/dare-cli/dag-runner` | DAG Task Runner programático |
|
|
214
|
-
|
|
215
|
-
> **Migração da v1.x:** os pacotes `@dewtech/dare-core`, `@dewtech/dare-graphrag` e
|
|
216
|
-
> `@dewtech/dare-mcp-server` foram consolidados em `@dewtech/dare-cli`. Substitua
|
|
217
|
-
> `from '@dewtech/dare-core'` por `from '@dewtech/dare-cli/core'` (e equivalentes).
|
|
218
|
-
|
|
219
|
-
---
|
|
220
|
-
|
|
221
|
-
## Binaries
|
|
204
|
+
Isso já dá:
|
|
222
205
|
|
|
223
|
-
|
|
206
|
+
| Componente | O que é |
|
|
207
|
+
|------------|---------|
|
|
208
|
+
| CLI `dare` | `init`, `design`, `blueprint`, `execute`, `discover` |
|
|
209
|
+
| CLI `dare-mcp-server` | Servidor MCP local de contexto (~95% economia de tokens) |
|
|
210
|
+
| Engine GraphRAG | Grafo de conhecimento com SQLite + FTS5 |
|
|
211
|
+
| DAG Task Runner | Execução paralela de tasks com Kahn's algorithm |
|
|
212
|
+
| Tipos e templates | Tudo embutido — sem dependências externas do `@dewtech/*` |
|
|
224
213
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
| `dare-mcp-server` | Inicia o servidor MCP local |
|
|
214
|
+
> **Histórico (v1.x):** os pacotes `@dewtech/dare-core`, `@dewtech/dare-graphrag` e
|
|
215
|
+
> `@dewtech/dare-mcp-server` foram consolidados em `@dewtech/dare-cli` e estão
|
|
216
|
+
> **deprecated** no npm. Não há mais subpacotes para gerenciar.
|
|
229
217
|
|
|
230
218
|
---
|
|
231
219
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @dewtech/dare-cli — pacote único do framework DARE.
|
|
3
|
+
*
|
|
4
|
+
* Inclui CLI (`dare`), servidor MCP (`dare-mcp-server`), engine GraphRAG e
|
|
5
|
+
* o DAG Task Runner. Instalar este pacote dá acesso a todas as funcionalidades
|
|
6
|
+
* do método — não há subpacotes para gerenciar separadamente.
|
|
7
|
+
*/
|
|
1
8
|
export { initCommand } from './commands/init.js';
|
|
2
9
|
export { designCommand } from './commands/design.js';
|
|
3
10
|
export { blueprintCommand } from './commands/blueprint.js';
|
|
@@ -7,7 +14,8 @@ export type { Dag, DagTask, RunDagOptions } from './dag-runner/run_dag.js';
|
|
|
7
14
|
export { convertYamlToDag, convertDagToYaml } from './utils/dag-converter.js';
|
|
8
15
|
export { generateProjectStructure } from './utils/project-generator.js';
|
|
9
16
|
export type { ProjectConfig } from './utils/project-generator.js';
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
17
|
+
export { GraphRAG } from './graphrag/index.js';
|
|
18
|
+
export type { GraphNode, GraphEdge, NodeType, EdgeType, TaskNode, FileNode, SchemaNode, EndpointNode, ComponentNode, SearchResult, GraphStatistics, } from './graphrag/index.js';
|
|
19
|
+
export { createMcpServer } from './mcp-server/index.js';
|
|
20
|
+
export type { ContextQuery, ContextResult, TaskStatus } from './mcp-server/index.js';
|
|
13
21
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAGlE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,YAAY,EACV,SAAS,EACT,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @dewtech/dare-cli — pacote único do framework DARE.
|
|
3
|
+
*
|
|
4
|
+
* Inclui CLI (`dare`), servidor MCP (`dare-mcp-server`), engine GraphRAG e
|
|
5
|
+
* o DAG Task Runner. Instalar este pacote dá acesso a todas as funcionalidades
|
|
6
|
+
* do método — não há subpacotes para gerenciar separadamente.
|
|
7
|
+
*/
|
|
1
8
|
// Commands
|
|
2
9
|
export { initCommand } from './commands/init.js';
|
|
3
10
|
export { designCommand } from './commands/design.js';
|
|
@@ -8,8 +15,8 @@ export { runDag } from './dag-runner/run_dag.js';
|
|
|
8
15
|
export { convertYamlToDag, convertDagToYaml } from './utils/dag-converter.js';
|
|
9
16
|
// Project generation
|
|
10
17
|
export { generateProjectStructure } from './utils/project-generator.js';
|
|
11
|
-
//
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
export
|
|
18
|
+
// Knowledge graph engine
|
|
19
|
+
export { GraphRAG } from './graphrag/index.js';
|
|
20
|
+
// MCP server
|
|
21
|
+
export { createMcpServer } from './mcp-server/index.js';
|
|
15
22
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,WAAW;AACX,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,aAAa;AACb,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE9E,qBAAqB;AACrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,WAAW;AACX,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,aAAa;AACb,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE9E,qBAAqB;AACrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,yBAAyB;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAe/C,aAAa;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dewtech/dare-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "DARE Framework - CLI, GraphRAG engine, MCP server and shared types in a single package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,22 +13,6 @@
|
|
|
13
13
|
".": {
|
|
14
14
|
"import": "./dist/index.js",
|
|
15
15
|
"types": "./dist/index.d.ts"
|
|
16
|
-
},
|
|
17
|
-
"./core": {
|
|
18
|
-
"import": "./dist/core/index.js",
|
|
19
|
-
"types": "./dist/core/index.d.ts"
|
|
20
|
-
},
|
|
21
|
-
"./graphrag": {
|
|
22
|
-
"import": "./dist/graphrag/index.js",
|
|
23
|
-
"types": "./dist/graphrag/index.d.ts"
|
|
24
|
-
},
|
|
25
|
-
"./mcp-server": {
|
|
26
|
-
"import": "./dist/mcp-server/index.js",
|
|
27
|
-
"types": "./dist/mcp-server/index.d.ts"
|
|
28
|
-
},
|
|
29
|
-
"./dag-runner": {
|
|
30
|
-
"import": "./dist/dag-runner/run_dag.js",
|
|
31
|
-
"types": "./dist/dag-runner/run_dag.d.ts"
|
|
32
16
|
}
|
|
33
17
|
},
|
|
34
18
|
"files": [
|
|
@@ -84,7 +84,8 @@ O projeto mantém um grafo de conhecimento em `dare-graph.yml`:
|
|
|
84
84
|
- **Nodes:** task, file, schema, endpoint, component, entity, concept
|
|
85
85
|
- **Edges:** depends_on, implements, uses, references, related_to, contains, extends
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
A engine GraphRAG vem dentro de `@dewtech/dare-cli` — use `dare graph ingest`,
|
|
88
|
+
`dare graph query` e `dare graph stats` para indexar e consultar o grafo.
|
|
88
89
|
|
|
89
90
|
## DARE MCP Server (opcional)
|
|
90
91
|
|