openkbs 0.0.90 → 0.0.92
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/package.json +1 -1
- package/src/actions.js +3 -6
- package/templates/.claude/CLAUDE.md +3 -6
- package/templates/.claude/skills/openkbs/SKILL.md +1 -1
- package/templates/.claude/skills/openkbs/metadata.json +1 -1
- package/templates/platform/openkbs.json +1 -0
- package/version.json +2 -2
- package/templates/platform/functions/settings.json +0 -4
- package/templates/platform/site/settings.json +0 -4
package/package.json
CHANGED
package/src/actions.js
CHANGED
|
@@ -37,11 +37,9 @@ const SERVICES = {
|
|
|
37
37
|
*/
|
|
38
38
|
function findSettings() {
|
|
39
39
|
const paths = [
|
|
40
|
+
path.join(process.cwd(), 'openkbs.json'),
|
|
40
41
|
path.join(process.cwd(), 'settings.json'),
|
|
41
|
-
path.join(process.cwd(), 'app', 'settings.json')
|
|
42
|
-
path.join(process.cwd(), 'functions', 'settings.json'),
|
|
43
|
-
path.join(process.cwd(), 'site', 'settings.json'),
|
|
44
|
-
path.join(process.cwd(), 'openkbs.json')
|
|
42
|
+
path.join(process.cwd(), 'app', 'settings.json')
|
|
45
43
|
];
|
|
46
44
|
|
|
47
45
|
for (const settingsPath of paths) {
|
|
@@ -2068,9 +2066,8 @@ async function siteDeployAction(kbToken, kbId, siteDir, args) {
|
|
|
2068
2066
|
const fullPath = path.join(dir, entry.name);
|
|
2069
2067
|
const relativePath = path.relative(baseDir, fullPath);
|
|
2070
2068
|
|
|
2071
|
-
// Skip hidden files
|
|
2069
|
+
// Skip hidden files and node_modules
|
|
2072
2070
|
if (entry.name.startsWith('.') ||
|
|
2073
|
-
entry.name === 'settings.json' ||
|
|
2074
2071
|
entry.name === 'node_modules') {
|
|
2075
2072
|
continue;
|
|
2076
2073
|
}
|
|
@@ -19,11 +19,8 @@ If auth error, ask user to run `openkbs login` first.
|
|
|
19
19
|
Pick the whitelabel agent kbId from the list.
|
|
20
20
|
|
|
21
21
|
### 2. Configure Settings
|
|
22
|
-
Update
|
|
23
|
-
|
|
24
|
-
**site/settings.json** and **functions/settings.json**:
|
|
22
|
+
Update `openkbs.json`:
|
|
25
23
|
- Replace `{{WHITELABEL_KB_ID}}` with kbId from step 1
|
|
26
|
-
- Replace `{{REGION}}` with region from openkbs.json
|
|
27
24
|
|
|
28
25
|
### 3. Deploy
|
|
29
26
|
```bash
|
|
@@ -33,7 +30,7 @@ openkbs fn push api # API function (optional)
|
|
|
33
30
|
```
|
|
34
31
|
|
|
35
32
|
## Project Structure
|
|
36
|
-
- `openkbs.json` -
|
|
37
|
-
- `site/` - Static frontend
|
|
33
|
+
- `openkbs.json` - Project config (kbId, region, elastic services)
|
|
34
|
+
- `site/` - Static frontend
|
|
38
35
|
- `functions/` - Serverless Lambda functions
|
|
39
36
|
- `agents/` - AI agents (optional, each gets own kbId on push)
|
|
@@ -40,7 +40,7 @@ Platform mode extends agent capabilities with:
|
|
|
40
40
|
- CloudFront distributions
|
|
41
41
|
- SSL certificates
|
|
42
42
|
|
|
43
|
-
This whitelabel `kbId` is
|
|
43
|
+
This whitelabel `kbId` is stored in `openkbs.json` in the project root. User-facing agents in `agents/` folder each get their own separate `kbId` when pushed.
|
|
44
44
|
|
|
45
45
|
## Project Structure
|
|
46
46
|
|
package/version.json
CHANGED