@crabcloud/cli 0.2.2 → 0.2.3

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/crab.js +1 -1
  2. package/package.json +1 -1
package/dist/crab.js CHANGED
@@ -7703,7 +7703,7 @@ async function storageUploadOne(credentials, filePath) {
7703
7703
  headers: authHeaders(credentials),
7704
7704
  body: JSON.stringify({ filename, mimeType, sizeBytes: cipher.byteLength, enc: true })
7705
7705
  });
7706
- if (presign.status === 200) {
7706
+ if (presign.status === 200 || presign.status === 201) {
7707
7707
  const { fileId, uploadUrl } = presign.body.data;
7708
7708
  const put = await fetch(uploadUrl, { method: "PUT", body: cipher, headers: { "content-type": mimeType } });
7709
7709
  if (!put.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crabcloud/cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "Crab Cloud CLI (crab) — agent-first entry to your personal cloud, with skills bundled for Claude Code / Codex / ZCode.",
6
6
  "bin": {