@tinycloud/cli 1.3.0-beta.47 → 1.3.0-beta.49
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 +919 -38
- package/dist/courier-entry.js.map +1 -1
- package/dist/legacy-entry.js +5 -4
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +5 -5
- package/skills/tc-cli/SKILL.md +3 -1
package/dist/legacy-entry.js
CHANGED
|
@@ -13918,13 +13918,13 @@ ${signInAgainHint(ctx.profile, posture ?? void 0)}
|
|
|
13918
13918
|
`Lifetime of the granted delegation. ms-format string (e.g. "7d", "30m") or raw milliseconds. Defaults to 7d, capped by the active session's expiry.`
|
|
13919
13919
|
).option("--emit [file]", "Emit the request artifact to stdout, or write it to file when provided").option("--grant", "Grant the requested permissions immediately with this owner profile").option("--yes", "Skip local-key TTY confirmation", false).option("--no-popup", "Print the OpenKey URL without opening a browser when granting with OpenKey").option("--device", "With --grant: approve on another device (e.g. a phone) through OpenKey device authorization (KV-scoped; SQL needs browser login)").option(
|
|
13920
13920
|
"--preset <name>",
|
|
13921
|
-
`Request a named permission set instead of --cap: ${APPS_AGENT_PRESET} is READ-ONLY on the applications space (kv get/list + sql read, ${APPS_AGENT_EXPIRY_DAYS} days); add --write --app <app_id> to also
|
|
13921
|
+
`Request a named permission set instead of --cap: ${APPS_AGENT_PRESET} is READ-ONLY on the applications space (kv get/list + sql read, ${APPS_AGENT_EXPIRY_DAYS} days); add --write --app <app_id> to also let the agent change that app's data (see --write)`
|
|
13922
13922
|
).option(
|
|
13923
13923
|
"--app <app_id>",
|
|
13924
13924
|
`With --preset ${APPS_AGENT_PRESET}: limit the grant to this app's <app_id>/ prefix (recommended); repeat for up to ${APPS_AGENT_MAX_APPS} apps`,
|
|
13925
13925
|
(value, previous) => [...previous, value],
|
|
13926
13926
|
[]
|
|
13927
|
-
).option("--write", `With --preset ${APPS_AGENT_PRESET}: also
|
|
13927
|
+
).option("--write", `With --preset ${APPS_AGENT_PRESET}: also let the agent add and change the named --app apps' data: write their knowledge/ and prefs/ files (kv put) and change their tables (sql write). Their code, manifest and install record stay read-only. SQL write can also change or drop those apps' tables`).option("--paste", "With --grant on an OpenKey profile: wait up to 5 minutes for a signed code from OpenKey on stdin instead of a browser callback (use when the browser cannot reach this CLI)").action(async (options2, cmd) => {
|
|
13928
13928
|
try {
|
|
13929
13929
|
const globalOpts = cmd.optsWithGlobals();
|
|
13930
13930
|
const ctx = await ProfileManager.resolveContext(globalOpts, options2.grant ? {} : { storedSession: "unused" });
|
|
@@ -16294,8 +16294,9 @@ function missingGrantHint(profile, appId) {
|
|
|
16294
16294
|
` ${request} --cap tinycloud.kv:${APPS_AGENT_SPACE}::get,list --emit req.json (all files, no table access)`,
|
|
16295
16295
|
"To limit the grant to one app, add `--app` and that app's id to the first command (repeat `--app` for up to 5)."
|
|
16296
16296
|
] : [
|
|
16297
|
-
` ${request} --preset ${APPS_AGENT_PRESET} --app ${appId} --emit req.json (read-only: files and
|
|
16298
|
-
` ${request} --cap tinycloud.kv:${APPS_AGENT_SPACE}:${appId}/knowledge/:get,list --emit req.json (only ${appId}'s knowledge)
|
|
16297
|
+
` ${request} --preset ${APPS_AGENT_PRESET} --app ${appId} --emit req.json (read-only: files and tables of ${appId})`,
|
|
16298
|
+
` ${request} --cap tinycloud.kv:${APPS_AGENT_SPACE}:${appId}/knowledge/:get,list --emit req.json (only ${appId}'s knowledge)`,
|
|
16299
|
+
`To change the app's data, ask for write access: ${request} --preset ${APPS_AGENT_PRESET} --write --app ${appId} --emit req.json`
|
|
16299
16300
|
];
|
|
16300
16301
|
return [
|
|
16301
16302
|
"Ask the owner for a grant, narrowest first. Create the request:",
|