@tinycloud/cli 1.3.0-beta.32 → 1.3.0-beta.33
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/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/legacy-entry.js +2 -1
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +1 -1
- package/skills/tc-cli/REFERENCE.md +37 -2
- package/skills/tc-cli/SKILL.md +2 -0
package/dist/legacy-entry.js
CHANGED
|
@@ -37067,7 +37067,7 @@ function byteLimit(value) {
|
|
|
37067
37067
|
}
|
|
37068
37068
|
function mediaTypeFor(filename) {
|
|
37069
37069
|
const extension = filename.toLowerCase().split(".").at(-1);
|
|
37070
|
-
return extension === "md" || extension === "markdown" ? "text/markdown" : extension === "txt" ? "text/plain" : extension === "html" || extension === "htm" ? "text/html" : extension === "json" ? "application/json" : extension === "css" ? "text/css" : extension === "js" ? "text/javascript" : "application/octet-stream";
|
|
37070
|
+
return extension === "md" || extension === "markdown" ? "text/markdown" : extension === "txt" ? "text/plain" : extension === "html" || extension === "htm" ? "text/html" : extension === "json" ? "application/json" : extension === "css" ? "text/css" : extension === "js" ? "text/javascript" : extension === "jsx" ? "text/jsx" : extension === "tsx" ? "text/tsx" : "application/octet-stream";
|
|
37071
37071
|
}
|
|
37072
37072
|
function requestedActions(values) {
|
|
37073
37073
|
const actions = values === void 0 || values.length === 0 ? ["read"] : values;
|
|
@@ -37097,6 +37097,7 @@ function registerShareCommand(program) {
|
|
|
37097
37097
|
const target = parseShareTarget(options.to);
|
|
37098
37098
|
const actions = requestedActions(options.action);
|
|
37099
37099
|
if (options.prefix && target.kind === "bearer") throw new CLIError("INVALID_ARGUMENT", "--prefix requires an addressed target", 2);
|
|
37100
|
+
if (target.kind === "bearer" && actions.includes("edit")) throw new CLIError("INVALID_ARGUMENT", `--action edit is not available with --to ${options.to}: a link can only be read; address a recipient to allow edits`, 2);
|
|
37100
37101
|
if (inputs.length > 1 && target.kind === "bearer") throw new CLIError("UNSUPPORTED_LINK", "multiple files require an addressed target", 2);
|
|
37101
37102
|
const artifact = artifactRequest(options, actions, inputs.length);
|
|
37102
37103
|
if (inputs.length > 1 && !options.prefix) throw new CLIError("INVALID_ARGUMENT", "multiple files require --prefix", 2);
|