botinabox 2.4.2 → 2.4.3

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/dist/index.d.ts CHANGED
@@ -1244,6 +1244,12 @@ interface DomainEntityContextOptions {
1244
1244
  files?: boolean;
1245
1245
  channels?: boolean;
1246
1246
  rules?: boolean;
1247
+ /** Column used as directory name for each entity type. Default: 'id'. */
1248
+ orgSlugColumn?: string;
1249
+ projectSlugColumn?: string;
1250
+ clientSlugColumn?: string;
1251
+ fileSlugColumn?: string;
1252
+ channelSlugColumn?: string;
1247
1253
  }
1248
1254
  /**
1249
1255
  * Define entity context rendering for standard domain tables.
package/dist/index.js CHANGED
@@ -3601,7 +3601,7 @@ function defineDomainEntityContexts(db, options = {}) {
3601
3601
  db.defineEntityContext("org", {
3602
3602
  table: "org",
3603
3603
  directory: "orgs",
3604
- slugColumn: "id",
3604
+ slugColumn: opts.orgSlugColumn ?? "id",
3605
3605
  indexFile: "orgs/ORGS.md",
3606
3606
  files: {
3607
3607
  "ORG.md": {
@@ -3627,7 +3627,7 @@ ${o.description}` : null,
3627
3627
  db.defineEntityContext("project", {
3628
3628
  table: "project",
3629
3629
  directory: "projects",
3630
- slugColumn: "id",
3630
+ slugColumn: opts.projectSlugColumn ?? "id",
3631
3631
  indexFile: "projects/PROJECTS.md",
3632
3632
  files: {
3633
3633
  "PROJECT.md": {
@@ -3751,7 +3751,7 @@ ${lines.join("\n")}
3751
3751
  db.defineEntityContext("client", {
3752
3752
  table: "client",
3753
3753
  directory: "clients",
3754
- slugColumn: "id",
3754
+ slugColumn: opts.clientSlugColumn ?? "id",
3755
3755
  indexFile: "clients/CLIENTS.md",
3756
3756
  files: {
3757
3757
  "CLIENT.md": {
@@ -3838,7 +3838,7 @@ ${lines.join("\n")}
3838
3838
  db.defineEntityContext("file", {
3839
3839
  table: "file",
3840
3840
  directory: "files",
3841
- slugColumn: "id",
3841
+ slugColumn: opts.fileSlugColumn ?? "id",
3842
3842
  indexFile: "files/FILES.md",
3843
3843
  files: {
3844
3844
  "FILE.md": {
@@ -3865,7 +3865,7 @@ ${f.description}` : null,
3865
3865
  db.defineEntityContext("channel", {
3866
3866
  table: "channel",
3867
3867
  directory: "channels",
3868
- slugColumn: "id",
3868
+ slugColumn: opts.channelSlugColumn ?? "id",
3869
3869
  indexFile: "channels/CHANNELS.md",
3870
3870
  files: {
3871
3871
  "CHANNEL.md": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "botinabox",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "Bot in a Box — framework for building multi-agent bots",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",