botinabox 0.2.3 → 0.2.5

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 +7 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1140,15 +1140,20 @@ var DataStore = class {
1140
1140
  protectedFiles: def.protectedFiles,
1141
1141
  protected: def.protected,
1142
1142
  encrypted: def.encrypted,
1143
+ // Note: sourceDefaults.softDelete NOT set here because junction tables
1144
+ // (agent_project, rule_agent, etc.) don't have deleted_at columns.
1145
+ // Entity context render functions should add softDelete per-source when targeting
1146
+ // tables that support it.
1143
1147
  index: def.indexFile ? {
1144
1148
  outputFile: def.indexFile,
1145
1149
  render: def.indexRender ?? ((rows) => {
1150
+ const active = rows.filter((r) => r.deleted_at == null);
1146
1151
  const title = def.directory.charAt(0).toUpperCase() + def.directory.slice(1);
1147
- if (!rows.length) return `# ${title}
1152
+ if (!active.length) return `# ${title}
1148
1153
 
1149
1154
  None.
1150
1155
  `;
1151
- const lines = rows.map((r) => {
1156
+ const lines = active.map((r) => {
1152
1157
  const name2 = String(r.name ?? r[def.slugColumn] ?? r.id ?? "unknown");
1153
1158
  const status = r.status ? ` (${r.status})` : "";
1154
1159
  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.5",
4
4
  "description": "Bot in a Box — framework for building multi-agent bots",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",