@descix/cli 1.0.5 → 1.0.7

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 (46) hide show
  1. package/README.md +130 -34
  2. package/agent-assets/guides/dynamic-site-pattern.md +10 -14
  3. package/agent-assets/guides/knowledge-only-pattern.md +11 -15
  4. package/agent-assets/guides/microservice-pattern.md +12 -14
  5. package/agent-assets/guides/static-site-pattern.md +12 -15
  6. package/agent-assets/instructions/onboarding-flow.md +4 -4
  7. package/agent-assets/reference/app-creation.md +36 -101
  8. package/agent-assets/reference/architecture.md +24 -27
  9. package/agent-assets/reference/local-dev.md +0 -4
  10. package/agent-assets/reference/mcp-integration.md +14 -22
  11. package/agent-assets/reference/workspace-config.md +97 -340
  12. package/agent-assets/rules/descix_mcp.template.mdc +1 -1
  13. package/bin/descix.js +159 -98
  14. package/lib/api-client.js +30 -22
  15. package/lib/commands/airdrop.js +10 -0
  16. package/lib/commands/auth.js +33 -3
  17. package/lib/commands/briefer/index.js +8 -5
  18. package/lib/commands/config.js +13 -31
  19. package/lib/commands/corpus.js +161 -54
  20. package/lib/commands/health.js +116 -21
  21. package/lib/commands/init.js +25 -48
  22. package/lib/commands/kb.js +14 -4
  23. package/lib/commands/update.js +0 -1
  24. package/lib/core/Chunker.js +1 -1
  25. package/lib/core/CorpusWalker.js +238 -47
  26. package/lib/core/Hydrator.js +88 -11
  27. package/lib/core/ManifestLoader.js +68 -0
  28. package/lib/core/Syncer.js +147 -46
  29. package/lib/interactive.js +158 -0
  30. package/lib/origin.js +3 -3
  31. package/lib/wallet-file.js +36 -37
  32. package/lib/wizard/setup.js +104 -22
  33. package/lib/workspace-config.js +325 -167
  34. package/lib/workspace-identity.js +0 -1
  35. package/package.json +3 -3
  36. package/templates/agent-claude.md +0 -3
  37. package/templates/agent-cline.md +0 -3
  38. package/templates/agent-copilot.md +0 -3
  39. package/templates/agent-cursor.md +0 -3
  40. package/templates/drive/app/kb/General/README.md +1 -1
  41. package/templates/drive_templates/agent_app_template/kb/General/README.md +1 -1
  42. package/templates/scaffolds/microservice/SERVICE_README_sdk.md +3 -3
  43. package/templates/scaffolds/microservice/defaults-config.json +3 -1
  44. package/templates/scaffolds/microservice/manifest.json +9 -5
  45. package/templates/scaffolds/microservice/package.json +1 -1
  46. package/templates/scaffolds/microservice/services/commandHandlers/sampleCommands.js +2 -2
@@ -151,9 +151,6 @@ descix kb corpus sync -c <community> -a <app> -k <KB>
151
151
  descix kb corpus status -c <community> -a <app>
152
152
  ```
153
153
 
154
- `descix update kb`, `descix kb chunk` and `descix kb sync` still run, but each names
155
- `kb corpus sync` as its replacement in its own `--help` and is slated for removal. Do not put
156
- them in new instructions.
157
154
 
158
155
  ## Local Development
159
156
 
@@ -115,9 +115,6 @@ descix kb corpus sync -c <community> -a <app> -k <KB>
115
115
  descix kb corpus status -c <community> -a <app>
116
116
  ```
117
117
 
118
- `descix update kb`, `descix kb chunk` and `descix kb sync` still run, but each names
119
- `kb corpus sync` as its replacement in its own `--help` and is slated for removal. Do not put
120
- them in new instructions.
121
118
 
122
119
  ## Local Development
123
120
 
@@ -115,9 +115,6 @@ descix kb corpus sync -c <community> -a <app> -k <KB>
115
115
  descix kb corpus status -c <community> -a <app>
116
116
  ```
117
117
 
118
- `descix update kb`, `descix kb chunk` and `descix kb sync` still run, but each names
119
- `kb corpus sync` as its replacement in its own `--help` and is slated for removal. Do not put
120
- them in new instructions.
121
118
 
122
119
  ## Local Development
123
120
 
@@ -115,9 +115,6 @@ descix kb corpus sync -c <community> -a <app> -k <KB>
115
115
  descix kb corpus status -c <community> -a <app>
116
116
  ```
117
117
 
118
- `descix update kb`, `descix kb chunk` and `descix kb sync` still run, but each names
119
- `kb corpus sync` as its replacement in its own `--help` and is slated for removal. Do not put
120
- them in new instructions.
121
118
 
122
119
  ## Local Development
123
120
 
@@ -9,7 +9,7 @@ This folder contains the documents that power the AI assistant. Add your content
9
9
  ## How It Works
10
10
 
11
11
  1. **Add Documents**: Upload markdown, text, or PDF files to this folder
12
- 2. **Sync**: Use `descix kb sync` to process and vectorize your documents
12
+ 2. **Sync**: Use `descix kb corpus sync -a <app_id>` to process and vectorize your documents
13
13
  3. **Query**: Users can now ask questions and get answers based on your content
14
14
 
15
15
  ## Folder Structure
@@ -9,7 +9,7 @@ This folder contains the documents that power the AI assistant. Add your content
9
9
  ## How It Works
10
10
 
11
11
  1. **Add Documents**: Upload markdown, text, or PDF files to this folder
12
- 2. **Sync**: Use `descix kb sync` to process and vectorize your documents
12
+ 2. **Sync**: Use `descix kb corpus sync -a <app_id>` to process and vectorize your documents
13
13
  3. **Query**: Users can now ask questions and get answers based on your content
14
14
 
15
15
  ## Folder Structure
@@ -237,7 +237,7 @@ tell_me_how({
237
237
  execute_remote_command({
238
238
  command: "create_app_for_community",
239
239
  params: {
240
- community_id: "descix",
240
+ community_id: "{{COMMUNITY_ID}}",
241
241
  app_name: "My New App"
242
242
  }
243
243
  })
@@ -285,9 +285,9 @@ ask_question_to_app({
285
285
  {
286
286
  "version": "2.1",
287
287
  "env": {
288
- "platform": { "appId": "daita", "communityId": "descix", "localPath": ".", "kbId": "General" },
288
+ "platform": { "appId": "daita", "communityId": "daita", "localPath": ".", "kbId": "General" },
289
289
  "products": [
290
- { "appId": "docs", "communityId": "descix", "kbId": "sdk", "localPath": "descix-docs" }
290
+ { "appId": "docs", "communityId": "daita", "kbId": "sdk", "localPath": "descix-docs" }
291
291
  ]
292
292
  }
293
293
  }
@@ -1,5 +1,7 @@
1
1
  {
2
2
  "DEBUG_LOCAL": true,
3
3
  "LOCAL_PORT": "auto",
4
- "CORE_API_URL": "https://localhost:4000/apifront"
4
+ "CORE_API_URL": "https://localhost:4000/apifront",
5
+ "community_id": "{{COMMUNITY_ID}}",
6
+ "app_id": "{{APP_ID}}"
5
7
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "service": {
3
- "name": "sample-service",
3
+ "name": "{{APP_ID}}",
4
4
  "version": "1.0.0",
5
5
  "description": "Sample DeSciX Add-on Service",
6
6
  "healthEndpoint": "/health",
7
7
  "debugPort": 3003,
8
- "app_id": "sample-app",
9
- "community_id": "descix"
8
+ "app_id": "{{APP_ID}}",
9
+ "community_id": "{{COMMUNITY_ID}}"
10
10
  },
11
11
  "commands": {
12
12
  "sample_hello": {
@@ -21,7 +21,9 @@
21
21
  "description": "Message to echo"
22
22
  }
23
23
  },
24
- "required": ["message"]
24
+ "required": [
25
+ "message"
26
+ ]
25
27
  }
26
28
  },
27
29
  "sample_analyze": {
@@ -36,7 +38,9 @@
36
38
  "description": "Topic to analyze"
37
39
  }
38
40
  },
39
- "required": ["query"]
41
+ "required": [
42
+ "query"
43
+ ]
40
44
  }
41
45
  }
42
46
  },
@@ -19,7 +19,7 @@
19
19
  "cors": "^2.8.5",
20
20
  "dotenv": "^16.3.1",
21
21
  "express": "^4.18.2",
22
- "@descix/sdk": "^1.0.0",
22
+ "@descix/sdk": "^2.0.0",
23
23
  "@descix/cli": "^1.0.0"
24
24
  },
25
25
  "devDependencies": {
@@ -33,8 +33,8 @@ export const commands = {
33
33
  // CALL CORE TOOL: query_knowledge_base
34
34
  // This goes Service -> Cloud -> Vector DB -> Cloud -> Service
35
35
  const ragResult = await mcpClient.callTool('query_knowledge_base', {
36
- community_id: 'descix',
37
- app_id: 'docs',
36
+ community_id: '{{COMMUNITY_ID}}',
37
+ app_id: '{{APP_ID}}',
38
38
  kb_id: 'sdk',
39
39
  query: query
40
40
  }, _descix);