@fungi.computer/oyster 0.19.26 → 0.19.28
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/agents.d.ts +1 -1
- package/dist/agents.js +7 -1
- package/dist/apps/permissions.d.ts +5 -0
- package/dist/apps/permissions.js +5 -0
- package/dist/embed-metafiles.js +1 -1
- package/dist/embed-scripts.js +2 -2
- package/dist/host.js +13 -0
- package/dist/page/app-permissions.js +28 -29
- package/dist/page-script.js +3 -3
- package/dist/standalone/agent-model-choice.js +6 -2
- package/dist/standalone/agents.d.ts +5 -0
- package/dist/standalone/agents.js +17 -1
- package/dist/standalone/computer.js +1 -1
- package/dist/standalone/model-key-vault.d.ts +17 -5
- package/dist/standalone/model-key-vault.js +59 -12
- package/dist/standalone/try-cli.d.ts +1 -0
- package/dist/standalone/try-cli.js +50 -18
- package/docs/api/agents.md +19 -16
- package/docs/api/apps.md +8 -2
- package/docs/api/workers-git.md +7 -7
- package/package.json +5 -5
package/dist/agents.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AppSetup } from "@fungi.computer/agar";
|
|
2
2
|
import type { TenantPrincipal } from "./tenant.js";
|
|
3
3
|
import type { ModelKeyRecord, ModelKeyRefusal, ModelKeySealInput } from "./standalone/model-key-vault.js";
|
|
4
|
-
export type { ModelKeyRefusal, ModelKeySealInput, } from "./standalone/model-key-vault.js";
|
|
4
|
+
export type { ModelKeyRecord, ModelKeyRefusal, ModelKeySealInput, } from "./standalone/model-key-vault.js";
|
|
5
5
|
import { type Routes } from "./authorization.js";
|
|
6
6
|
import type { AppToolPolicy } from "./apps/tools.js";
|
|
7
7
|
import * as Schema from "effect/Schema";
|
package/dist/agents.js
CHANGED
|
@@ -412,7 +412,13 @@ export function agentApprovalRoutes(agents) {
|
|
|
412
412
|
}
|
|
413
413
|
const keyIdPattern = /^cred_[A-Za-z0-9_-]{1,64}$/u;
|
|
414
414
|
const sealRequestSchema = Schema.Struct({
|
|
415
|
-
provider: Schema.Literals([
|
|
415
|
+
provider: Schema.Literals([
|
|
416
|
+
"anthropic",
|
|
417
|
+
"openai",
|
|
418
|
+
"openrouter",
|
|
419
|
+
"cloudflare-workers-ai",
|
|
420
|
+
]),
|
|
421
|
+
accountId: Schema.optional(Schema.String.check(Schema.isPattern(/^[a-f0-9]{32}$/u))),
|
|
416
422
|
label: Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(64)),
|
|
417
423
|
apiKey: Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(16_384)),
|
|
418
424
|
});
|
|
@@ -198,6 +198,11 @@ export declare const appPermissionPageSchema: z.ZodObject<{
|
|
|
198
198
|
installationId: z.ZodString;
|
|
199
199
|
appId: z.ZodString;
|
|
200
200
|
appName: z.ZodString;
|
|
201
|
+
appCalls: z.ZodArray<z.ZodObject<{
|
|
202
|
+
operation: z.ZodString;
|
|
203
|
+
method: z.ZodString;
|
|
204
|
+
targetName: z.ZodString;
|
|
205
|
+
}, z.core.$strict>>;
|
|
201
206
|
artifactDigest: z.ZodPipe<z.ZodUnknown, z.ZodTransform<import("@fungi.computer/puffball").Sha256Digest, unknown>>;
|
|
202
207
|
permissions: z.ZodObject<{
|
|
203
208
|
authority: z.ZodObject<{
|
package/dist/apps/permissions.js
CHANGED
|
@@ -257,6 +257,11 @@ export const appPermissionPageSchema = z.strictObject({
|
|
|
257
257
|
installationId: z.string(),
|
|
258
258
|
appId: z.string(),
|
|
259
259
|
appName: z.string(),
|
|
260
|
+
appCalls: z.array(z.strictObject({
|
|
261
|
+
operation: z.string(),
|
|
262
|
+
method: z.string(),
|
|
263
|
+
targetName: z.string(),
|
|
264
|
+
})),
|
|
260
265
|
artifactDigest: ownerCodec(sha256DigestSchema),
|
|
261
266
|
permissions: appPermissionsWireSchema,
|
|
262
267
|
canEdit: z.boolean(),
|