@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 +1 -1
- package/dist/courier-entry.js +2 -2
- package/dist/courier-entry.js.map +1 -1
- package/dist/legacy-entry.js +25 -24
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +2 -2
- package/skills/courier/SKILL.md +1 -1
- package/skills/tc-cli/AUTH.md +1 -1
- package/skills/tc-cli/SKILL.md +2 -2
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);
|
|
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 |
|
package/dist/courier-entry.js
CHANGED
|
@@ -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("
|
|
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("
|
|
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"));
|