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/README.md +2 -2
- package/SKILL.md +4 -4
- package/dist/agents/claude/client.js +12 -0
- package/dist/agents/codex/client.js +12 -0
- package/dist/agents/pi/client.js +45 -33
- package/dist/dts/tbTypings.d.ts.map +1 -1
- package/dist/dts/tbTypings.js +2 -0
- package/dist/dts/tbTypings.js.map +1 -1
- package/dist/index.js +251 -237
- package/dist/render.js +12 -0
- package/dist/servers.js +12 -0
- package/package.json +1 -1
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
|
|