camstack 0.8.0 → 0.8.6

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/cli.js +5 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -667,10 +667,11 @@ async function loginCommand(opts) {
667
667
  mintSpinner.start("Creating scoped token (upload + log streaming)");
668
668
  const tokenName = opts.tokenName ?? `camstack-cli@${os2.hostname()}`;
669
669
  const scopes = [
670
- { type: "route-prefix", target: "/api/addons/upload" },
671
- { type: "route-prefix", target: "/trpc/addons.onAddonLogs" },
672
- { type: "route-prefix", target: "/trpc/addons.getLogs" },
673
- { type: "route-prefix", target: "/trpc/addons.list" }
670
+ {
671
+ type: "capability",
672
+ target: "addons",
673
+ access: ["view", "create"]
674
+ }
674
675
  ];
675
676
  const created = await callTrpcMutation(
676
677
  `${server}/trpc/userManagement.createScopedToken?batch=1`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstack",
3
- "version": "0.8.0",
3
+ "version": "0.8.6",
4
4
  "description": "CLI tool for managing and running CamStack server",
5
5
  "keywords": [
6
6
  "camstack",