@nocobase/app-skills 0.1.0-beta.48 → 0.1.0-beta.49

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/app-skills",
3
- "version": "0.1.0-beta.48",
3
+ "version": "0.1.0-beta.49",
4
4
  "description": "Agent Skills for developing, upgrading and deploying NocoBase applications.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,6 +43,10 @@ A feature with a page and an API touches five places: a migration for the table,
43
43
 
44
44
  Editable module defaults live in `server/config/` and are collected by `defaultAppConfigs` in its `index.ts`; `server/config.ts` loads the configuration file. Each section declares the environment variables that set it in `env` of its `defineAppConfig`, with a `description` and, where it applies, `secret`, `required`, `generate` or `firstStartOnly` in the helper's second argument; `pnpm nocobase config env` lists them all, `pnpm nocobase config variables` describes each, and `pnpm build` writes that description to `dist/variables.json` for whoever deploys the build. `server/config/database.ts` maps `DB_*` onto the main connection and `server/config/users.ts` maps `INITIAL_ADMIN_*` onto the initial administrator. `config.yml` is read as written: a `${NAME}` in it is not expanded. [Services and jobs](services-and-jobs.md#application-code-configuration) shows how a module declares and reads its configuration.
45
45
 
46
+ ### Knowledge indexing
47
+
48
+ `server/config/knowledge.ts` registers the plugin's pure `defineKnowledgeConfig()` factory. Declare server-only instances under `knowledge.indexing` in `config.yml`; `config.example.yml` shows `sqlite-vec` and `pgvector`, private connection/TLS fields and the optional `knowledge.jobs` host configuration selector. Leave the selector omitted to follow the host default. Instance definitions do not enable indexing: the Knowledge global index dialog owns the instance/model selection and explicit all-space rebuild confirmation. Do not put model selection or per-space overrides in deployment YAML, reuse Agents vector collections, or insert literal `${NAME}` placeholders expecting expansion. A custom indexing extension must be passed to both `defineKnowledgeConfig` and `createKnowledgePlugin`.
49
+
46
50
  ### File storage
47
51
 
48
52
  Configure storage in `server/config/drive.ts`, with serializable overrides in `config.yml`. Keep the default `DriveProvider` and resolve `driveManagerToken` from `@nocobase/app-server/drive`; File Repository uses the same manager. Read `.agents/skills/nocobase-drive/SKILL.md` for the `fs`, `s3`, and `oss` configuration guides, custom driver factories, URL behavior, and release artifact limitations. That Skill ships with `@nocobase/drive` and is synchronized from the installed package.