@fungi.computer/oyster 0.20.2 → 0.20.4
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/apps/permissions.d.ts +16 -0
- package/dist/apps/permissions.js +11 -0
- package/dist/embed-metafiles.js +1 -1
- package/dist/embed-scripts.js +2 -2
- package/dist/host.js +2 -3
- package/dist/page/app-permissions.js +2 -2
- package/dist/page-script.js +3 -3
- package/dist/standalone/computer.d.ts +1 -1
- package/dist/standalone/computer.js +27 -10
- package/dist/standalone/registry.d.ts +1 -0
- package/dist/standalone/trial-starters.d.ts +1 -0
- package/dist/standalone/try-cli.js +4 -0
- package/package.json +7 -7
package/dist/host.js
CHANGED
|
@@ -19,7 +19,7 @@ import * as Result from "effect/Result";
|
|
|
19
19
|
import { emptyAppDeclaration } from "@fungi.computer/puffball/app";
|
|
20
20
|
import { applyInstallationCommand, installationIdSchema, } from "./apps/installation.js";
|
|
21
21
|
import { admits, scopedBindings, grantsFor } from "./apps/gate.js";
|
|
22
|
-
import { appPermissionPageSchema, permissionSaveSchema, } from "./apps/permissions.js";
|
|
22
|
+
import { appCallTargetName, appPermissionPageSchema, permissionSaveSchema, } from "./apps/permissions.js";
|
|
23
23
|
import { app as appRoute, apps as appsRoute, door, member, oysterPrincipalIsOwner, owner, publicRoute, authorityOf, hostAuthorityPorts, reachesInstallation, routes, serveCapability, serveHost, } from "./authorization.js";
|
|
24
24
|
import { deriveDeclaredOperations, appCallOperation, } from "./apps/operations.js";
|
|
25
25
|
import { appBackendActorHeader, appBackendComputerHeader, appMethodRefusalStatus, } from "@fungi.computer/agar/backend";
|
|
@@ -696,8 +696,7 @@ export function oysterRouteTable(host) {
|
|
|
696
696
|
? await host.workbench.directory()
|
|
697
697
|
: null;
|
|
698
698
|
const appCalls = (declaration.calls ?? []).flatMap((call) => {
|
|
699
|
-
const targetName = directory
|
|
700
|
-
?.displayName ?? `App ${call.appId}`;
|
|
699
|
+
const targetName = appCallTargetName(directory, call.appId);
|
|
701
700
|
return call.methods.map((method) => ({
|
|
702
701
|
operation: appCallOperation(call.appId, method),
|
|
703
702
|
method,
|
|
@@ -14,7 +14,7 @@ import { Toaster, toast } from "@fungi.computer/caps/components/toaster";
|
|
|
14
14
|
import { Status } from "@fungi.computer/caps/components/status";
|
|
15
15
|
import { Sigil } from "@fungi.computer/sigils";
|
|
16
16
|
import { permissionCatalog } from "../apps/catalog.js";
|
|
17
|
-
import { draftOf, editPermissions, permissionScreen, planGrantChange, rebaseDraft, } from "../apps/permissions.js";
|
|
17
|
+
import { draftOf, editPermissions, permissionScreen, planGrantChange, rebaseDraft, unresolvedAppCallTarget, } from "../apps/permissions.js";
|
|
18
18
|
const groupLabels = {
|
|
19
19
|
computers: "Computers",
|
|
20
20
|
agents: "Agents",
|
|
@@ -115,7 +115,7 @@ function appRows(context, group) {
|
|
|
115
115
|
sigil: permissionCatalog["apps.call"].sigil,
|
|
116
116
|
label: words.charAt(0).toUpperCase() + words.slice(1),
|
|
117
117
|
chip: groupLabels[group.id],
|
|
118
|
-
scopeName: call?.targetName ??
|
|
118
|
+
scopeName: call?.targetName ?? unresolvedAppCallTarget,
|
|
119
119
|
pending: false,
|
|
120
120
|
on: operation.on,
|
|
121
121
|
locked: false,
|