@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.
- package/README.md +130 -34
- package/agent-assets/guides/dynamic-site-pattern.md +10 -14
- package/agent-assets/guides/knowledge-only-pattern.md +11 -15
- package/agent-assets/guides/microservice-pattern.md +12 -14
- package/agent-assets/guides/static-site-pattern.md +12 -15
- package/agent-assets/instructions/onboarding-flow.md +4 -4
- package/agent-assets/reference/app-creation.md +36 -101
- package/agent-assets/reference/architecture.md +24 -27
- package/agent-assets/reference/local-dev.md +0 -4
- package/agent-assets/reference/mcp-integration.md +14 -22
- package/agent-assets/reference/workspace-config.md +97 -340
- package/agent-assets/rules/descix_mcp.template.mdc +1 -1
- package/bin/descix.js +159 -98
- package/lib/api-client.js +30 -22
- package/lib/commands/airdrop.js +10 -0
- package/lib/commands/auth.js +33 -3
- package/lib/commands/briefer/index.js +8 -5
- package/lib/commands/config.js +13 -31
- package/lib/commands/corpus.js +161 -54
- package/lib/commands/health.js +116 -21
- package/lib/commands/init.js +25 -48
- package/lib/commands/kb.js +14 -4
- package/lib/commands/update.js +0 -1
- package/lib/core/Chunker.js +1 -1
- package/lib/core/CorpusWalker.js +238 -47
- package/lib/core/Hydrator.js +88 -11
- package/lib/core/ManifestLoader.js +68 -0
- package/lib/core/Syncer.js +147 -46
- package/lib/interactive.js +158 -0
- package/lib/origin.js +3 -3
- package/lib/wallet-file.js +36 -37
- package/lib/wizard/setup.js +104 -22
- package/lib/workspace-config.js +325 -167
- package/lib/workspace-identity.js +0 -1
- package/package.json +3 -3
- package/templates/agent-claude.md +0 -3
- package/templates/agent-cline.md +0 -3
- package/templates/agent-copilot.md +0 -3
- package/templates/agent-cursor.md +0 -3
- package/templates/drive/app/kb/General/README.md +1 -1
- package/templates/drive_templates/agent_app_template/kb/General/README.md +1 -1
- package/templates/scaffolds/microservice/SERVICE_README_sdk.md +3 -3
- package/templates/scaffolds/microservice/defaults-config.json +3 -1
- package/templates/scaffolds/microservice/manifest.json +9 -5
- package/templates/scaffolds/microservice/package.json +1 -1
- 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
|
|
package/templates/agent-cline.md
CHANGED
|
@@ -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
|
|
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
|
|
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: "
|
|
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": "
|
|
288
|
+
"platform": { "appId": "daita", "communityId": "daita", "localPath": ".", "kbId": "General" },
|
|
289
289
|
"products": [
|
|
290
|
-
{ "appId": "docs", "communityId": "
|
|
290
|
+
{ "appId": "docs", "communityId": "daita", "kbId": "sdk", "localPath": "descix-docs" }
|
|
291
291
|
]
|
|
292
292
|
}
|
|
293
293
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"service": {
|
|
3
|
-
"name": "
|
|
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": "
|
|
9
|
-
"community_id": "
|
|
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": [
|
|
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": [
|
|
41
|
+
"required": [
|
|
42
|
+
"query"
|
|
43
|
+
]
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
46
|
},
|
|
@@ -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: '
|
|
37
|
-
app_id: '
|
|
36
|
+
community_id: '{{COMMUNITY_ID}}',
|
|
37
|
+
app_id: '{{APP_ID}}',
|
|
38
38
|
kb_id: 'sdk',
|
|
39
39
|
query: query
|
|
40
40
|
}, _descix);
|