apps 0.0.1-beta.89 → 0.0.1-beta.90
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 +27 -10
- package/framework-reference.json +1 -1
- package/js/{chunk-H6NFR354.js → chunk-36UFTECB.js} +6 -8
- package/js/{chunk-I46RIOKQ.js → chunk-5MDA7MKL.js} +14 -13
- package/js/{chunk-NQW2E44U.js → chunk-6XQLA5NC.js} +579 -81
- package/js/{chunk-6FUJH3T4.js → chunk-7PHHWYV4.js} +6 -5
- package/js/{chunk-7Z3NUCTP.js → chunk-DADXWWRZ.js} +24 -6
- package/js/{chunk-BZFFXNWA.js → chunk-I5C7FD5Z.js} +1 -1
- package/js/{chunk-EKZLPXHK.js → chunk-KUCCHNVY.js} +3 -3
- package/js/{chunk-ZK7JDZJS.js → chunk-PYQLOLOC.js} +2 -2
- package/js/{chunk-ELSILABS.js → chunk-WMD4NHXZ.js} +113 -73
- package/js/{chunk-JJH3MBAM.js → chunk-YNJ5CZMJ.js} +3 -2
- package/js/{chunk-5ZVAYXLT.js → chunk-YRGL4QEF.js} +1 -1
- package/js/{chunk-GLXEYET6.js → chunk-YWFUWTUJ.js} +12 -7
- package/js/client.js +1 -1
- package/js/contracts.js +37 -25
- package/js/effect.js +8 -9
- package/js/graphql.js +10 -11
- package/js/host.js +11 -13
- package/js/index.js +29 -31
- package/js/mcp/effect.js +9 -10
- package/js/mcp.js +11 -12
- package/js/openapi.js +9 -11
- package/js/skills.js +6 -6
- package/js/ui/contracts.js +1 -1
- package/js/ui/serving.js +5 -6
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/contracts/app.d.ts +51 -8
- package/types/apps/src/contracts/cache.d.ts +1 -1
- package/types/apps/src/contracts/context.d.ts +37 -8
- package/types/apps/src/contracts/events.d.ts +2 -1
- package/types/apps/src/contracts/host.d.ts +800 -4
- package/types/apps/src/contracts/operations.d.ts +6 -3
- package/types/apps/src/contracts/protocol-version.d.ts +1 -1
- package/types/apps/src/contracts/protocols/11.d.ts +1149 -0
- package/types/apps/src/contracts/protocols/12.d.ts +3310 -0
- package/types/apps/src/contracts/protocols/current.d.ts +4445 -1633
- package/types/apps/src/contracts/schedules.d.ts +7 -1
- package/types/apps/src/contracts/ui.d.ts +11 -15
- package/types/apps/src/contracts/webhooks.d.ts +24 -7
- package/types/apps/src/contracts/workflows.d.ts +13 -17
- package/types/apps/src/implementation/app.d.ts +41 -14
- package/types/apps/src/implementation/cache.d.ts +1 -1
- package/types/apps/src/implementation/events.d.ts +6 -1
- package/types/apps/src/implementation/failure-detail.d.ts +3 -2
- package/types/apps/src/implementation/operations.d.ts +40 -5
- package/types/apps/src/implementation/router-catalog.d.ts +4 -0
- package/types/apps/src/implementation/schedules.d.ts +39 -8
- package/types/apps/src/implementation/ui-serving.d.ts +2 -2
- package/types/apps/src/implementation/webhooks.d.ts +15 -6
- package/types/apps/src/implementation/workflow-context.d.ts +6 -2
- package/types/apps/src/implementation/workflows.d.ts +10 -3
- package/types/apps/src/index.d.ts +15 -9
- package/js/chunk-F2G534HD.js +0 -285
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/** Native operation declarations. SQL access is an optional invocation capability. */
|
|
2
2
|
import type { Effect, Schema } from "effect";
|
|
3
3
|
import type { Approval } from "./approval.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { EvaluationContext, ScopedSlots } from "./app.js";
|
|
5
5
|
import type { Sql, SqlReader } from "./sql.js";
|
|
6
6
|
import type { ToolAnnotations } from "./tools.js";
|
|
7
7
|
import type { JsonObject } from "./schema.js";
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Host-bound operation capabilities; the author declaration refines accounts and storage. `user` is
|
|
10
|
+
* absent when the invocation has no caller.
|
|
11
|
+
*/
|
|
12
|
+
export type OperationContext = EvaluationContext<ScopedSlots> & {
|
|
10
13
|
readonly sql?: SqlReader | Sql;
|
|
11
14
|
};
|
|
12
15
|
/** The host validates input, checks approval, then owns the transaction and output validation. */
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* snapshot. Its schemas are `protocols/current.ts`; released protocols are frozen. See notes/apps-publishing.md.
|
|
4
4
|
* This file has no imports so the package build script can read it directly.
|
|
5
5
|
*/
|
|
6
|
-
export declare const frameworkProtocol =
|
|
6
|
+
export declare const frameworkProtocol = 13;
|