typebulb 0.59.0 → 0.59.2
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 +13 -1
- package/dist/agents/codex/client.js +13 -1
- package/dist/agents/pi/client.js +46 -34
- package/dist/ai/aiProvider.d.ts +1 -1
- package/dist/ai/aiProvider.d.ts.map +1 -1
- package/dist/ai/aiProviders.d.ts +0 -1
- package/dist/ai/aiProviders.d.ts.map +1 -1
- package/dist/ai/aiProviders.js +1 -1
- package/dist/ai/aiProviders.js.map +1 -1
- package/dist/ai/providers/openRouter.d.ts +7 -1
- package/dist/ai/providers/openRouter.d.ts.map +1 -1
- package/dist/ai/providers/openRouter.js +9 -9
- package/dist/ai/providers/openRouter.js.map +1 -1
- 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 +35 -23
- 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
|
|