botinabox 0.2.3 → 0.2.4

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 (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1140,15 +1140,17 @@ var DataStore = class {
1140
1140
  protectedFiles: def.protectedFiles,
1141
1141
  protected: def.protected,
1142
1142
  encrypted: def.encrypted,
1143
+ sourceDefaults: { softDelete: true },
1143
1144
  index: def.indexFile ? {
1144
1145
  outputFile: def.indexFile,
1145
1146
  render: def.indexRender ?? ((rows) => {
1147
+ const active = rows.filter((r) => r.deleted_at == null);
1146
1148
  const title = def.directory.charAt(0).toUpperCase() + def.directory.slice(1);
1147
- if (!rows.length) return `# ${title}
1149
+ if (!active.length) return `# ${title}
1148
1150
 
1149
1151
  None.
1150
1152
  `;
1151
- const lines = rows.map((r) => {
1153
+ const lines = active.map((r) => {
1152
1154
  const name2 = String(r.name ?? r[def.slugColumn] ?? r.id ?? "unknown");
1153
1155
  const status = r.status ? ` (${r.status})` : "";
1154
1156
  return `- **${name2}**${status}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "botinabox",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Bot in a Box — framework for building multi-agent bots",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",