typebulb 0.59.0 → 0.59.1

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/render.js CHANGED
@@ -810,6 +810,18 @@ ${B1}
810
810
  });
811
811
  await failIfNotOk(resp, 'list', path);
812
812
  return resp.json();
813
+ },
814
+ // Remove a file, or a folder and its contents. Throws on a missing path; the bulb's folder
815
+ // itself is refused.
816
+ remove: async (path) => {
817
+ if (isFramed) throw inlineErr('tb.fs');
818
+ const resp = await fetch('/__fs/remove', {
819
+ method: 'POST',
820
+ headers: { 'Content-Type': 'application/json' },
821
+ body: JSON.stringify({ path })
822
+ });
823
+ await failIfNotOk(resp, 'remove', path);
824
+ return true;
813
825
  }
814
826
  };
815
827
 
package/dist/servers.js CHANGED
@@ -474,6 +474,18 @@ ${s}`}function v1(t){let e=dr.filter(n=>t[n]).map(n=>F0(n,t[n]));return["---",`f
474
474
  });
475
475
  await failIfNotOk(resp, 'list', path);
476
476
  return resp.json();
477
+ },
478
+ // Remove a file, or a folder and its contents. Throws on a missing path; the bulb's folder
479
+ // itself is refused.
480
+ remove: async (path) => {
481
+ if (isFramed) throw inlineErr('tb.fs');
482
+ const resp = await fetch('/__fs/remove', {
483
+ method: 'POST',
484
+ headers: { 'Content-Type': 'application/json' },
485
+ body: JSON.stringify({ path })
486
+ });
487
+ await failIfNotOk(resp, 'remove', path);
488
+ return true;
477
489
  }
478
490
  };
479
491
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typebulb",
3
- "version": "0.59.0",
3
+ "version": "0.59.1",
4
4
  "description": "Typebulb CLI to run single-file markdown apps called bulbs, either as standalone web apps or embedded in agent responses.",
5
5
  "keywords": [
6
6
  "bulb",