@tinycloud/cli 1.3.0-beta.39 → 1.3.0-beta.41

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 CHANGED
@@ -114,7 +114,7 @@ tc delegation create --to did:pkh:eip155:1:0x...
114
114
  | `tc context` | Show the selected profile, owner, host, space and session state |
115
115
  | `tc auth status` | Show authentication status |
116
116
  | `tc auth whoami` | Show current identity |
117
- | `tc auth request --preset apps-agent [--app <id>]... [--write]` | Request read-only access for an agent to the user's installed apps (one app, several, or all); Don't request `--write` during the tiny-apps beta. It currently also allows changes to the app's own code and manifest; the narrowed write ships in TC-1620. |
117
+ | `tc auth request --preset apps-agent [--app <id>]... [--write]` | Request read-only access for an agent to the user's installed apps (one app, several, or all); `--write --app <id>` also lets the agent write the app's `knowledge/` and `prefs/` files and table rows, never its code, manifest or install record |
118
118
  | `tc knowledge list` | List the installed apps that have a knowledge bundle |
119
119
  | `tc knowledge read <app_id> [concept]` | Read an app's knowledge index, or one concept with its frontmatter parsed |
120
120
  | `tc kv get <key>` | Retrieve a value |
@@ -900,11 +900,11 @@ function readSecure(name2, required) {
900
900
  }
901
901
  const dirMode = fs.statSync(profileDir()).mode & 511;
902
902
  if ((dirMode & 63) !== 0) {
903
- throw new CourierError("insecure-profile", `${profileDir()} must not be accessible by group or others (mode ${dirMode.toString(8)}).`);
903
+ throw new CourierError("profile-permissions", `${profileDir()} must be owner-only (mode 0700); found mode ${dirMode.toString(8)}.`);
904
904
  }
905
905
  const mode = fs.statSync(file).mode & 511;
906
906
  if ((mode & 63) !== 0) {
907
- throw new CourierError("insecure-profile", `${name2} must not be accessible by group or others (mode ${mode.toString(8)}).`);
907
+ throw new CourierError("profile-permissions", `${name2} must be owner-only (mode 0600); found mode ${mode.toString(8)}.`);
908
908
  }
909
909
  try {
910
910
  return JSON.parse(fs.readFileSync(file, "utf8"));