@feltdb/feltkit 0.3.18 → 0.3.19
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/app.d.ts +57 -14
- package/dist/app.js +71 -9
- package/dist/app.js.map +1 -1
- package/dist/appboundry/build.d.ts +25 -0
- package/dist/appboundry/build.js +10 -1
- package/dist/appboundry/build.js.map +1 -1
- package/dist/appboundry/guest.js +18 -2
- package/dist/appboundry/guest.js.map +1 -1
- package/dist/appboundry/host.js +3 -0
- package/dist/appboundry/host.js.map +1 -1
- package/dist/cli/compose.d.ts +31 -0
- package/dist/cli/compose.js +274 -0
- package/dist/cli/compose.js.map +1 -0
- package/dist/cli/create.d.ts +201 -0
- package/dist/cli/create.js +1139 -0
- package/dist/cli/create.js.map +1 -0
- package/dist/cli/deploy.d.ts +1 -0
- package/dist/cli/deploy.js +66 -6
- package/dist/cli/deploy.js.map +1 -1
- package/dist/cli/domain.d.ts +174 -0
- package/dist/cli/domain.js +1119 -0
- package/dist/cli/domain.js.map +1 -0
- package/dist/cli/main.d.ts +2 -0
- package/dist/cli/main.js +135 -6
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/shell.d.ts +7 -0
- package/dist/cli/shell.js +59 -0
- package/dist/cli/shell.js.map +1 -0
- package/dist/component.d.ts +174 -0
- package/dist/component.js +77 -0
- package/dist/component.js.map +1 -0
- package/dist/composition/catalog.d.ts +3 -0
- package/dist/composition/catalog.js +217 -0
- package/dist/composition/catalog.js.map +1 -0
- package/dist/composition/contract.d.ts +165 -0
- package/dist/composition/contract.js +12 -0
- package/dist/composition/contract.js.map +1 -0
- package/dist/composition/execute.d.ts +110 -0
- package/dist/composition/execute.js +350 -0
- package/dist/composition/execute.js.map +1 -0
- package/dist/composition/generate.d.ts +105 -0
- package/dist/composition/generate.js +274 -0
- package/dist/composition/generate.js.map +1 -0
- package/dist/composition/plan.d.ts +131 -0
- package/dist/composition/plan.js +558 -0
- package/dist/composition/plan.js.map +1 -0
- package/dist/composition/profiles.d.ts +20 -0
- package/dist/composition/profiles.js +81 -0
- package/dist/composition/profiles.js.map +1 -0
- package/dist/composition/reconcile.d.ts +153 -0
- package/dist/composition/reconcile.js +282 -0
- package/dist/composition/reconcile.js.map +1 -0
- package/dist/composition/recover.d.ts +89 -0
- package/dist/composition/recover.js +407 -0
- package/dist/composition/recover.js.map +1 -0
- package/dist/composition/resolve.d.ts +2 -0
- package/dist/composition/resolve.js +208 -0
- package/dist/composition/resolve.js.map +1 -0
- package/dist/dashboard/assets/{index-DnIOVGF-.js → index-BrC1AtZ1.js} +5 -5
- package/dist/dashboard/index.html +1 -1
- package/dist/docs.d.ts +1 -1
- package/dist/docs.js +1 -0
- package/dist/docs.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime/activity.d.ts +8 -1
- package/dist/runtime/activity.js.map +1 -1
- package/dist/runtime/audit.d.ts +43 -0
- package/dist/runtime/audit.js +52 -0
- package/dist/runtime/audit.js.map +1 -0
- package/dist/runtime/claims.d.ts +76 -0
- package/dist/runtime/claims.js +100 -0
- package/dist/runtime/claims.js.map +1 -0
- package/dist/runtime/context.d.ts +6 -5
- package/dist/runtime/contract.js +4 -1
- package/dist/runtime/contract.js.map +1 -1
- package/dist/runtime/data.d.ts +14 -2
- package/dist/runtime/data.js +62 -23
- package/dist/runtime/data.js.map +1 -1
- package/dist/runtime/escape-hatch.d.ts +37 -0
- package/dist/runtime/escape-hatch.js +76 -0
- package/dist/runtime/escape-hatch.js.map +1 -0
- package/dist/runtime/instance.js +2 -1
- package/dist/runtime/instance.js.map +1 -1
- package/dist/runtime/outbox.js +3 -0
- package/dist/runtime/outbox.js.map +1 -1
- package/dist/runtime/runtime.d.ts +33 -0
- package/dist/runtime/runtime.js +127 -12
- package/dist/runtime/runtime.js.map +1 -1
- package/dist/runtime/services-rules.d.ts +12 -0
- package/dist/runtime/services-rules.js +8 -0
- package/dist/runtime/services-rules.js.map +1 -0
- package/dist/runtime/services.js +5 -3
- package/dist/runtime/services.js.map +1 -1
- package/dist/runtime/tenancy.d.ts +13 -4
- package/dist/runtime/tenancy.js +30 -9
- package/dist/runtime/tenancy.js.map +1 -1
- package/dist/runtime/transactions.d.ts +38 -1
- package/dist/runtime/transactions.js +20 -5
- package/dist/runtime/transactions.js.map +1 -1
- package/dist/server/admin.js +52 -0
- package/dist/server/admin.js.map +1 -1
- package/dist/server/components.d.ts +44 -0
- package/dist/server/components.js +212 -0
- package/dist/server/components.js.map +1 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +24 -5
- package/dist/server/index.js.map +1 -1
- package/dist/server/project.d.ts +27 -0
- package/dist/server/project.js +63 -0
- package/dist/server/project.js.map +1 -1
- package/dist/server/public.d.ts +2 -0
- package/dist/server/public.js +2 -0
- package/dist/server/public.js.map +1 -1
- package/dist/testing/index.d.ts +12 -0
- package/dist/testing/index.js +15 -0
- package/dist/testing/index.js.map +1 -1
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/AUTH.md +8 -3
- package/docs/COMPONENTS.md +91 -0
- package/docs/GUARANTEES.md +24 -4
- package/docs/README.md +3 -2
- package/docs/RESOLVER.md +4 -2
- package/docs/SECURITY.md +2 -2
- package/docs/TRANSACTIONS.md +1 -1
- package/package.json +14 -12
- package/skills/.claude-plugin/marketplace.json +1 -1
- package/skills/.claude-plugin/plugin.json +1 -1
- package/skills/feltkit-services/SKILL.md +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell.js","sourceRoot":"","sources":["../../src/cli/shell.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDnC,CAAC"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime components: application code that is not a function but must run with the application,
|
|
3
|
+
* as part of it — e.g. a telephony gateway that receives provider webhooks and holds a WebSocket per
|
|
4
|
+
* call. An application declares them in `feltkit({ components })`; a component module default-exports
|
|
5
|
+
* `defineComponent(start)`.
|
|
6
|
+
*
|
|
7
|
+
* One application, one identity, one configuration surface: a component runs with the application's
|
|
8
|
+
* runtime (in the same process under `feltkit dev` / `feltkit start`, on the same port), acts only
|
|
9
|
+
* through the application's functions as a declared principal (roles and `authorize` apply), reads only
|
|
10
|
+
* the credentials it declares, and reports its health into the application's own health. The
|
|
11
|
+
* application is not ready while a required component is not.
|
|
12
|
+
*
|
|
13
|
+
* The same declaration is carried into an AppBoundry artifact as the `components@1` section, where the
|
|
14
|
+
* host runs the component next to the WebAssembly guest with the same context API (see docs/COMPONENTS.md).
|
|
15
|
+
*/
|
|
16
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
17
|
+
import type { Duplex } from "node:stream";
|
|
18
|
+
/** What an application declares for each component (`feltkit({ components: { <name>: … } })`). */
|
|
19
|
+
export interface ComponentDeclaration {
|
|
20
|
+
/** The module, relative to the project root, whose default export is `defineComponent(...)`. */
|
|
21
|
+
entry: string;
|
|
22
|
+
/** Public HTTP path prefixes this component serves on the application's port, e.g. ["/twilio/"]. Start and end with "/". */
|
|
23
|
+
routes: readonly string[];
|
|
24
|
+
/** Whether WebSocket upgrades on those prefixes go to it. Default false. */
|
|
25
|
+
websocket?: boolean;
|
|
26
|
+
/** The application is not ready while this component is not. Default true. */
|
|
27
|
+
required?: boolean;
|
|
28
|
+
/** The identity it acts as when it calls the application's functions. Roles must be declared in `roles`. */
|
|
29
|
+
principal: {
|
|
30
|
+
id: string;
|
|
31
|
+
roles: readonly string[];
|
|
32
|
+
displayName?: string;
|
|
33
|
+
};
|
|
34
|
+
/** Credential ids it may read (`credential-ref:<id>`; FELTKIT_CREDENTIAL_<ID> in production). Nothing else. */
|
|
35
|
+
credentials?: readonly string[];
|
|
36
|
+
/** Outbound network access it needs. Default "egress". Declared for hosts that enforce it (AppBoundry). */
|
|
37
|
+
network?: "none" | "egress";
|
|
38
|
+
description?: string;
|
|
39
|
+
}
|
|
40
|
+
export type ComponentState = "ready" | "starting" | "unconfigured" | "degraded" | "failed";
|
|
41
|
+
export interface ComponentHealth {
|
|
42
|
+
/**
|
|
43
|
+
* ready serving
|
|
44
|
+
* starting not yet serving
|
|
45
|
+
* unconfigured loaded and serving, but an operator must configure something before it does its job
|
|
46
|
+
* degraded serving with a problem
|
|
47
|
+
* failed not serving
|
|
48
|
+
*/
|
|
49
|
+
state: ComponentState;
|
|
50
|
+
detail?: string;
|
|
51
|
+
/** Named sub-checks, so a control plane can tell which part is unavailable (e.g. webhooks vs media). */
|
|
52
|
+
checks?: Record<string, {
|
|
53
|
+
state: ComponentState;
|
|
54
|
+
detail?: string;
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
57
|
+
export interface ComponentModel {
|
|
58
|
+
protocol: "anthropic" | "openai" | "openai-compatible";
|
|
59
|
+
model: string;
|
|
60
|
+
endpoint: string | null;
|
|
61
|
+
apiKey: string | null;
|
|
62
|
+
}
|
|
63
|
+
/** What a component gets from the application it runs in. Identical under FeltKit and AppBoundry. */
|
|
64
|
+
export interface ComponentContext {
|
|
65
|
+
readonly name: string;
|
|
66
|
+
readonly application: string;
|
|
67
|
+
readonly environment: {
|
|
68
|
+
readonly name: string;
|
|
69
|
+
readonly production: boolean;
|
|
70
|
+
};
|
|
71
|
+
readonly log: {
|
|
72
|
+
info(message: string): void;
|
|
73
|
+
warn(message: string): void;
|
|
74
|
+
error(message: string): void;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Call one of the application's functions ("module:function") as the component's principal, optionally
|
|
78
|
+
* working in a tenant (the principal's live membership there is required). Throws FeltKitError on refusal.
|
|
79
|
+
*/
|
|
80
|
+
call<T = any>(name: string, args?: object, options?: {
|
|
81
|
+
tenant?: string;
|
|
82
|
+
}): Promise<T>;
|
|
83
|
+
/** A declared credential's value, or null when it is not set. Undeclared ids are refused. */
|
|
84
|
+
credential(id: string): Promise<string | null>;
|
|
85
|
+
/** Stable secret material for this application and purpose (HMAC of the host's key), e.g. to sign tokens. */
|
|
86
|
+
derive(purpose: string): string;
|
|
87
|
+
/** The model the environment selected (Studio → Models), with its key, or null when none is ready. */
|
|
88
|
+
model(): Promise<ComponentModel | null>;
|
|
89
|
+
/**
|
|
90
|
+
* Durable work recorded for this component by the application's mutations (`ctx.afterCommit.work(name, kind, input)`).
|
|
91
|
+
* Only this component's work; claims are leased and fenced; settling records the receipt or the outcome.
|
|
92
|
+
*/
|
|
93
|
+
readonly work: {
|
|
94
|
+
claim(options?: {
|
|
95
|
+
kinds?: readonly string[];
|
|
96
|
+
limit?: number;
|
|
97
|
+
leaseMs?: number;
|
|
98
|
+
}): Promise<ComponentWorkItem[]>;
|
|
99
|
+
finish(item: {
|
|
100
|
+
id: string;
|
|
101
|
+
version: number;
|
|
102
|
+
}, outcome: ComponentWorkOutcome): Promise<"done" | "failed" | "unknown" | "pending">;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export interface ComponentWorkItem {
|
|
106
|
+
id: string;
|
|
107
|
+
/** Fences the claim: settling with a version that is no longer current is refused (CONFLICT). */
|
|
108
|
+
version: number;
|
|
109
|
+
kind: string;
|
|
110
|
+
input: Record<string, unknown>;
|
|
111
|
+
attempt: number;
|
|
112
|
+
/** An earlier claim's lease expired before it settled: that attempt may have partly happened. */
|
|
113
|
+
resumed: boolean;
|
|
114
|
+
leaseUntil: number;
|
|
115
|
+
/** The tenant the recording call worked in: act there (ctx.call(..., { tenant })). */
|
|
116
|
+
tenantId?: string;
|
|
117
|
+
/** Who recorded the work, from which call. */
|
|
118
|
+
provenance: {
|
|
119
|
+
requestId: string;
|
|
120
|
+
function: string;
|
|
121
|
+
principalId: string;
|
|
122
|
+
recordedAt: number;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
export type ComponentWorkOutcome = {
|
|
126
|
+
outcome: "done";
|
|
127
|
+
receipt?: Record<string, unknown>;
|
|
128
|
+
} | {
|
|
129
|
+
outcome: "retry";
|
|
130
|
+
error?: {
|
|
131
|
+
code?: string;
|
|
132
|
+
message: string;
|
|
133
|
+
};
|
|
134
|
+
retryInMs?: number;
|
|
135
|
+
} | {
|
|
136
|
+
outcome: "failed";
|
|
137
|
+
error?: {
|
|
138
|
+
code?: string;
|
|
139
|
+
message: string;
|
|
140
|
+
};
|
|
141
|
+
} | {
|
|
142
|
+
outcome: "unknown";
|
|
143
|
+
error?: {
|
|
144
|
+
code?: string;
|
|
145
|
+
message: string;
|
|
146
|
+
};
|
|
147
|
+
receipt?: Record<string, unknown>;
|
|
148
|
+
};
|
|
149
|
+
/** A running component. */
|
|
150
|
+
export interface ComponentInstance {
|
|
151
|
+
/** A request on one of its routes. */
|
|
152
|
+
request?(request: IncomingMessage, response: ServerResponse): void | Promise<void>;
|
|
153
|
+
/** A WebSocket upgrade on one of its routes (when `websocket: true`). */
|
|
154
|
+
upgrade?(request: IncomingMessage, socket: Duplex, head: Buffer): void;
|
|
155
|
+
health(): ComponentHealth | Promise<ComponentHealth>;
|
|
156
|
+
close?(): void | Promise<void>;
|
|
157
|
+
}
|
|
158
|
+
export interface ComponentDefinition {
|
|
159
|
+
readonly kind: "feltkit.component";
|
|
160
|
+
readonly start: (context: ComponentContext) => Promise<ComponentInstance> | ComponentInstance;
|
|
161
|
+
}
|
|
162
|
+
/** A component module's default export. */
|
|
163
|
+
export declare function defineComponent(start: ComponentDefinition["start"]): ComponentDefinition;
|
|
164
|
+
export declare function isComponentDefinition(value: unknown): value is ComponentDefinition;
|
|
165
|
+
/** Validate the declarations at definition time (throws TypeError, like the rest of feltkit()). */
|
|
166
|
+
export declare function validateComponents(components: Record<string, ComponentDeclaration> | undefined, roles: Record<string, unknown> | undefined): void;
|
|
167
|
+
/**
|
|
168
|
+
* A component acts as an identity the application owns, never as a person or another principal:
|
|
169
|
+
* `component:<name>`, or the principal of one of the application's own `app.agent`s (a component that
|
|
170
|
+
* runs an agent's work, e.g. a gateway). Checked when the application's agents are known (build, start).
|
|
171
|
+
*/
|
|
172
|
+
export declare function componentPrincipalProblem(name: string, declaration: ComponentDeclaration, agentPrincipals: ReadonlySet<string>): string | null;
|
|
173
|
+
/** The component that owns a path, if any. */
|
|
174
|
+
export declare function componentFor(components: Record<string, ComponentDeclaration> | undefined, pathname: string): string | null;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/** A component module's default export. */
|
|
2
|
+
export function defineComponent(start) {
|
|
3
|
+
if (typeof start !== "function")
|
|
4
|
+
throw new TypeError("defineComponent(start) needs a function that starts the component.");
|
|
5
|
+
return Object.freeze({ kind: "feltkit.component", start });
|
|
6
|
+
}
|
|
7
|
+
export function isComponentDefinition(value) {
|
|
8
|
+
return Boolean(value) && value.kind === "feltkit.component" && typeof value.start === "function";
|
|
9
|
+
}
|
|
10
|
+
/** Paths FeltKit and AppBoundry serve themselves: no component may claim them. */
|
|
11
|
+
const RESERVED = ["/api/", "/_feltkit/", "/_appboundry/", "/_component/", "/appport", "/mcp", "/assets/"];
|
|
12
|
+
/** Validate the declarations at definition time (throws TypeError, like the rest of feltkit()). */
|
|
13
|
+
export function validateComponents(components, roles) {
|
|
14
|
+
if (components === undefined)
|
|
15
|
+
return;
|
|
16
|
+
if (typeof components !== "object" || Array.isArray(components))
|
|
17
|
+
throw new TypeError("feltkit({ components }) is an object: { <name>: { entry, routes, principal } }.");
|
|
18
|
+
const claimed = [];
|
|
19
|
+
for (const [name, c] of Object.entries(components)) {
|
|
20
|
+
const where = `components.${name}`;
|
|
21
|
+
if (!/^[a-z][a-z0-9-]{0,31}$/.test(name))
|
|
22
|
+
throw new TypeError(`${where}: a component name is lowercase letters, digits and dashes (at most 32).`);
|
|
23
|
+
if (typeof c?.entry !== "string" || !/^[A-Za-z0-9_][A-Za-z0-9_./-]*\.(ts|mts|js|mjs)$/.test(c.entry) || c.entry.split("/").includes(".."))
|
|
24
|
+
throw new TypeError(`${where}.entry is a module path inside the project, e.g. "gateway/component.ts".`);
|
|
25
|
+
if (c.entry.startsWith("feltkit/"))
|
|
26
|
+
throw new TypeError(`${where}.entry must be outside feltkit/ (that directory holds functions, which run everywhere the application runs).`);
|
|
27
|
+
if (!Array.isArray(c.routes) || !c.routes.length)
|
|
28
|
+
throw new TypeError(`${where}.routes lists the path prefixes it serves, e.g. ["/twilio/"].`);
|
|
29
|
+
for (const route of c.routes) {
|
|
30
|
+
if (typeof route !== "string" || !/^\/[A-Za-z0-9._~-]+(\/[A-Za-z0-9._~-]+)*\/$/.test(route))
|
|
31
|
+
throw new TypeError(`${where}.routes: "${route}" must start and end with "/" (e.g. "/twilio/").`);
|
|
32
|
+
if (RESERVED.some((r) => route.startsWith(r) || r.startsWith(route)))
|
|
33
|
+
throw new TypeError(`${where}.routes: "${route}" overlaps a path FeltKit serves (${RESERVED.join(", ")}).`);
|
|
34
|
+
const clash = claimed.find((x) => x.route.startsWith(route) || route.startsWith(x.route));
|
|
35
|
+
if (clash)
|
|
36
|
+
throw new TypeError(`${where}.routes: "${route}" overlaps "${clash.route}" of components.${clash.name}.`);
|
|
37
|
+
claimed.push({ route, name });
|
|
38
|
+
}
|
|
39
|
+
if (c.websocket !== undefined && typeof c.websocket !== "boolean")
|
|
40
|
+
throw new TypeError(`${where}.websocket is true or false.`);
|
|
41
|
+
if (c.required !== undefined && typeof c.required !== "boolean")
|
|
42
|
+
throw new TypeError(`${where}.required is true or false.`);
|
|
43
|
+
if (typeof c.principal?.id !== "string" || !/^[A-Za-z0-9][A-Za-z0-9._@-]{0,127}$/.test(c.principal.id.replace(/^component:/, "")))
|
|
44
|
+
throw new TypeError(`${where}.principal.id is the identity it acts as: "component:${name}", or an app.agent principal of this application.`);
|
|
45
|
+
if (c.principal.id.startsWith("component:") && c.principal.id !== `component:${name}`)
|
|
46
|
+
throw new TypeError(`${where}.principal.id: a component may take only its own component identity, "component:${name}".`);
|
|
47
|
+
if (!Array.isArray(c.principal.roles))
|
|
48
|
+
throw new TypeError(`${where}.principal.roles lists its roles.`);
|
|
49
|
+
for (const role of c.principal.roles)
|
|
50
|
+
if (!roles?.[role])
|
|
51
|
+
throw new TypeError(`${where}.principal has role "${role}", which is not declared in roles.`);
|
|
52
|
+
for (const id of c.credentials ?? [])
|
|
53
|
+
if (typeof id !== "string" || !/^[a-z0-9][a-z0-9._-]{0,99}$/.test(id))
|
|
54
|
+
throw new TypeError(`${where}.credentials: "${id}" is a credential id like "twilio-auth-token".`);
|
|
55
|
+
if (c.network !== undefined && c.network !== "none" && c.network !== "egress")
|
|
56
|
+
throw new TypeError(`${where}.network is "none" or "egress".`);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A component acts as an identity the application owns, never as a person or another principal:
|
|
61
|
+
* `component:<name>`, or the principal of one of the application's own `app.agent`s (a component that
|
|
62
|
+
* runs an agent's work, e.g. a gateway). Checked when the application's agents are known (build, start).
|
|
63
|
+
*/
|
|
64
|
+
export function componentPrincipalProblem(name, declaration, agentPrincipals) {
|
|
65
|
+
const id = declaration.principal.id;
|
|
66
|
+
if (id === `component:${name}` || agentPrincipals.has(id))
|
|
67
|
+
return null;
|
|
68
|
+
return `components.${name}.principal.id "${id}" is neither "component:${name}" nor an app.agent principal of this application: a component may not act as a person or another principal.`;
|
|
69
|
+
}
|
|
70
|
+
/** The component that owns a path, if any. */
|
|
71
|
+
export function componentFor(components, pathname) {
|
|
72
|
+
for (const [name, c] of Object.entries(components ?? {}))
|
|
73
|
+
if (c.routes.some((r) => pathname.startsWith(r)))
|
|
74
|
+
return name;
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AA4HA,2CAA2C;AAC3C,MAAM,UAAU,eAAe,CAAC,KAAmC;IACjE,IAAI,OAAO,KAAK,KAAK,UAAU;QAAE,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AAI,CAAC,EAAE,CAAC;gBAAE,MAAM,IAAI,SAAS,CAAC,GAAG,KAAK,kBAAkB,EAAE,gDAAgD,CAAC,CAAC;QAC/M,IAAI,CAAC,CAAC,OAAO,KAAK,SAAS,IAAI,CAAC,CAAC,OAAO,KAAK,MAAM,IAAI,CAAC,CAAC,OAAO,KAAK,QAAQ;YAAE,MAAM,IAAI,SAAS,CAAC,GAAG,KAAK,iCAAiC,CAAC,CAAC;IAChJ,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAAY,EAAE,WAAiC,EAAE,eAAoC;IAC7H,MAAM,EAAE,GAAG,WAAW,CAAC,SAAS,CAAC,EAAE,CAAC;IACpC,IAAI,EAAE,KAAK,aAAa,IAAI,EAAE,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QAAE,OAAO,IAAI,CAAC;IACvE,OAAO,cAAc,IAAI,kBAAkB,EAAE,2BAA2B,IAAI,6GAA6G,CAAC;AAC5L,CAAC;AAED,8CAA8C;AAC9C,MAAM,UAAU,YAAY,CAAC,UAA4D,EAAE,QAAgB;IACzG,KAAK,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,IAAI,EAAE,CAAC;QAAE,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO,IAAI,CAAC;IACxH,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The v1 capability catalog: only what the Collaborative Workspace foundation uses and FeltKit
|
|
3
|
+
* implements today (the repository's capability catalog document describes each entry). Each entry selects existing `feltkit({...})`
|
|
4
|
+
* options; `evidence` names the SDK code and the tests that prove them. Defaults are the SDK's own,
|
|
5
|
+
* and a contribution sets only what differs from them, so a composed declaration reads like a
|
|
6
|
+
* handwritten one.
|
|
7
|
+
*
|
|
8
|
+
* Parameter checks are about the parameter's shape only. Rules between options stay where they are
|
|
9
|
+
* enforced today, in `feltkit({...})` (app.ts); the resolver runs them on every result.
|
|
10
|
+
*/
|
|
11
|
+
import { claimSpecProblem } from "../runtime/claims.js";
|
|
12
|
+
const isName = (v) => typeof v === "string" && /^[a-z][a-z0-9_-]{0,63}$/.test(v);
|
|
13
|
+
const name = (description, defaultValue) => ({
|
|
14
|
+
description,
|
|
15
|
+
...(defaultValue === undefined ? {} : { default: defaultValue }),
|
|
16
|
+
check: (v) => (isName(v) ? null : `must be a lowercase name (letters, digits, "-", "_"), got ${JSON.stringify(v)}`),
|
|
17
|
+
});
|
|
18
|
+
const flag = (description, defaultValue) => ({
|
|
19
|
+
description,
|
|
20
|
+
default: defaultValue,
|
|
21
|
+
check: (v) => (typeof v === "boolean" ? null : `must be true or false, got ${JSON.stringify(v)}`),
|
|
22
|
+
});
|
|
23
|
+
const names = (description, defaultValue, { nonEmpty = false } = {}) => ({
|
|
24
|
+
description,
|
|
25
|
+
default: defaultValue,
|
|
26
|
+
check: (v) => {
|
|
27
|
+
if (!Array.isArray(v) || v.some((x) => !isName(x)))
|
|
28
|
+
return `must be a list of lowercase names, got ${JSON.stringify(v)}`;
|
|
29
|
+
if (nonEmpty && v.length === 0)
|
|
30
|
+
return "must name at least one";
|
|
31
|
+
if (new Set(v).size !== v.length)
|
|
32
|
+
return "must not repeat a name";
|
|
33
|
+
return null;
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
const textList = (description) => ({
|
|
37
|
+
description,
|
|
38
|
+
default: [],
|
|
39
|
+
check: (v) => (Array.isArray(v) && v.every((x) => typeof x === "string" && x.trim() !== "") ? null : `must be a list of non-empty strings, got ${JSON.stringify(v)}`),
|
|
40
|
+
});
|
|
41
|
+
const accounts = {
|
|
42
|
+
id: "identity.accounts",
|
|
43
|
+
version: 1,
|
|
44
|
+
purpose: "People sign up and sign in with an e-mail address (password, and optionally an e-mailed sign-in link); sessions are FeltKit's.",
|
|
45
|
+
parameters: {
|
|
46
|
+
baseRole: name("The role every account holds: grants nothing until the person joins a workspace.", "person"),
|
|
47
|
+
signUp: flag("Open sign-up.", true),
|
|
48
|
+
password: flag("Password sign-in.", true),
|
|
49
|
+
magicLink: flag("E-mailed sign-in link with a code (needs emailFrom).", false),
|
|
50
|
+
emailFrom: {
|
|
51
|
+
description: "Sender of account e-mail (verification, sign-in links, invitations), delivered through Mailerport.",
|
|
52
|
+
default: null,
|
|
53
|
+
check: (v) => (v === null || (typeof v === "string" && /^[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+$/.test(v)) ? null : `must be an e-mail address, got ${JSON.stringify(v)}`),
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
requires: [],
|
|
57
|
+
conflicts: [],
|
|
58
|
+
contribute: (p) => ({
|
|
59
|
+
roles: { [p.baseRole]: [] },
|
|
60
|
+
auth: {
|
|
61
|
+
accounts: {
|
|
62
|
+
roles: [p.baseRole],
|
|
63
|
+
...(p.signUp ? {} : { signUp: false }),
|
|
64
|
+
...(p.password ? {} : { password: false }),
|
|
65
|
+
...(p.magicLink ? { magicLink: true } : {}),
|
|
66
|
+
...(p.emailFrom ? { email: { from: p.emailFrom } } : {}),
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
}),
|
|
70
|
+
evidence: { sdk: ["packages/sdk/src/runtime/accounts.ts", "packages/sdk/src/runtime/challenges.ts", "packages/sdk/src/runtime/sessions.ts"], tests: ["packages/sdk/test/accounts.test.ts", "packages/sdk/test/challenges.test.ts", "examples/teams/tests/foundation.test.ts"] },
|
|
71
|
+
ownership: "declaration",
|
|
72
|
+
};
|
|
73
|
+
const tenancy = {
|
|
74
|
+
id: "workspace.tenancy",
|
|
75
|
+
version: 1,
|
|
76
|
+
purpose: "Workspaces: people and agents are members with a role; a session works in one workspace, checked against the live membership on every call; workspace data is scoped to it.",
|
|
77
|
+
parameters: {
|
|
78
|
+
noun: name("What the app calls a workspace (messages and built-in screens).", "workspace"),
|
|
79
|
+
roles: names("Member roles, highest first. The first is the workspace's top role.", ["owner", "admin", "member", "guest"], { nonEmpty: true }),
|
|
80
|
+
managers: names("Roles that manage members (invite, change roles, remove) without owning the workspace.", ["admin"]),
|
|
81
|
+
claims: {
|
|
82
|
+
description: 'Typed claims each membership carries beside its role, set only through the server: claim specs as plain data ({ plan: { type: "enum", values: ["free", "pro"] } }; types enum, string, boolean, number, integer; optional default), which the composition record holds; or schemas (s.enum([...])), which only feltkit/app.ts can hold.',
|
|
83
|
+
default: {},
|
|
84
|
+
check: (v) => {
|
|
85
|
+
if (v === null || typeof v !== "object" || Array.isArray(v))
|
|
86
|
+
return 'must map claim names to claim specs ({ type: "enum", values: [...] }) or schemas';
|
|
87
|
+
for (const [name, declaration] of Object.entries(v)) {
|
|
88
|
+
const problem = claimSpecProblem(name, declaration);
|
|
89
|
+
if (problem)
|
|
90
|
+
return `${name}: ${problem}`;
|
|
91
|
+
}
|
|
92
|
+
return null;
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
create: { description: 'Who may create a workspace: "anyone" signed in, or "none" through the API.', default: "anyone", check: (v) => (v === "anyone" || v === "none" ? null : `must be "anyone" or "none", got ${JSON.stringify(v)}`) },
|
|
96
|
+
},
|
|
97
|
+
validate: (p) => [
|
|
98
|
+
...p.managers.filter((m) => !p.roles.includes(m)).map((m) => ({ parameter: "managers", problem: `names "${m}", which is not one of roles (${p.roles.join(", ")})` })),
|
|
99
|
+
...(p.managers.includes(p.roles[0]) ? [{ parameter: "managers", problem: `names "${p.roles[0]}", the top role, which already holds every tenant permission` }] : []),
|
|
100
|
+
],
|
|
101
|
+
requires: [],
|
|
102
|
+
conflicts: [],
|
|
103
|
+
contribute: (p, context) => {
|
|
104
|
+
const [top] = p.roles;
|
|
105
|
+
const roles = {};
|
|
106
|
+
for (const role of p.roles)
|
|
107
|
+
roles[role] = role === top ? ["tenant.*"] : p.managers.includes(role) ? ["tenant.members.manage"] : [];
|
|
108
|
+
return {
|
|
109
|
+
roles,
|
|
110
|
+
auth: {
|
|
111
|
+
tenant: {
|
|
112
|
+
name: p.noun,
|
|
113
|
+
roles: [...p.roles],
|
|
114
|
+
...(Object.keys(p.claims).length ? { claims: { ...p.claims } } : {}),
|
|
115
|
+
...(p.create === "anyone" ? {} : { create: p.create }),
|
|
116
|
+
// Invitations are on unless turned off (app.ts TenantOptions): without workspace.invitations they are off.
|
|
117
|
+
...(context.has("workspace.invitations") ? {} : { invitations: false }),
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
evidence: { sdk: ["packages/sdk/src/runtime/tenancy.ts", "packages/sdk/src/runtime/tenant-scope.ts"], tests: ["packages/sdk/test/tenancy.test.ts", "packages/sdk/test/data-isolation.test.ts", "examples/teams/tests/foundation.test.ts"] },
|
|
123
|
+
ownership: "declaration",
|
|
124
|
+
};
|
|
125
|
+
const invitations = {
|
|
126
|
+
id: "workspace.invitations",
|
|
127
|
+
version: 1,
|
|
128
|
+
purpose: "Members who manage members invite people by e-mail address with a role; only that verified address accepts, once.",
|
|
129
|
+
parameters: {
|
|
130
|
+
ttlDays: { description: "How long an invitation is valid (FeltKit allows up to 30 days).", default: 7, check: (v) => (Number.isInteger(v) && v >= 1 && v <= 30 ? null : `must be a whole number of days from 1 to 30, got ${JSON.stringify(v)}`) },
|
|
131
|
+
},
|
|
132
|
+
requires: ["workspace.tenancy"],
|
|
133
|
+
conflicts: [],
|
|
134
|
+
contribute: (p) => (p.ttlDays === 7 ? {} : { auth: { tenant: { invitations: { ttlMs: p.ttlDays * 86_400_000 } } } }),
|
|
135
|
+
evidence: { sdk: ["packages/sdk/src/runtime/tenancy.ts (invite, accept)"], tests: ["packages/sdk/test/tenancy.test.ts", "examples/teams/tests/foundation.test.ts"] },
|
|
136
|
+
ownership: "declaration",
|
|
137
|
+
};
|
|
138
|
+
const agentMembership = {
|
|
139
|
+
id: "agents.membership",
|
|
140
|
+
version: 1,
|
|
141
|
+
purpose: "Agents join workspaces directly (no invitation) with a member role that grants nothing by itself; their permissions come from their declared roles. The agent itself (app.agent) is application code.",
|
|
142
|
+
parameters: { role: name("The workspace role agents hold.", "agent") },
|
|
143
|
+
requires: ["workspace.tenancy"],
|
|
144
|
+
conflicts: [],
|
|
145
|
+
contribute: (p) => ({ roles: { [p.role]: [] }, auth: { tenant: { roles: [p.role] } } }),
|
|
146
|
+
evidence: { sdk: ["packages/sdk/src/runtime/tenancy.ts (addPrincipal: agents and services join directly)", "packages/sdk/src/app.ts (app.agent)"], tests: ["packages/sdk/test/agent-lifecycle.test.ts", "packages/sdk/test/tenancy.test.ts"] },
|
|
147
|
+
ownership: "declaration",
|
|
148
|
+
};
|
|
149
|
+
const operator = {
|
|
150
|
+
id: "ops.operator",
|
|
151
|
+
version: 1,
|
|
152
|
+
purpose: "An operator role for production Studio: models, credentials, configuration, API keys, webhooks, jobs, schedules and FeltKit operations, separate from workspace roles.",
|
|
153
|
+
parameters: { role: name("The operator role.", "operator") },
|
|
154
|
+
requires: [],
|
|
155
|
+
conflicts: [],
|
|
156
|
+
contribute: (p) => ({ roles: { [p.role]: ["intelligence.*", "credential.*", "configuration.*", "apikeys.*", "webhooks.*", "jobs.*", "schedules.*", "feltkit.operations.*"] } }),
|
|
157
|
+
evidence: { sdk: ["packages/sdk/src/server/admin.ts", "packages/sdk/src/runtime/services.ts"], tests: ["packages/sdk/test/production-ops.test.ts"] },
|
|
158
|
+
ownership: "declaration",
|
|
159
|
+
};
|
|
160
|
+
const files = {
|
|
161
|
+
id: "services.files",
|
|
162
|
+
version: 1,
|
|
163
|
+
purpose: "File storage (AppPort Services files): upload links, downloads, content in the application's FeltDB. Who may read a file stays application policy.",
|
|
164
|
+
parameters: { maxBytes: { description: "Largest file (FeltKit's default is 1 MiB).", default: null, check: (v) => (v === null || (Number.isInteger(v) && v > 0) ? null : `must be a positive whole number of bytes, got ${JSON.stringify(v)}`) } },
|
|
165
|
+
requires: [],
|
|
166
|
+
conflicts: [],
|
|
167
|
+
contribute: (p) => ({ services: { files: p.maxBytes === null ? true : { maxBytes: p.maxBytes } } }),
|
|
168
|
+
evidence: { sdk: ["packages/sdk/src/runtime/services.ts", "packages/sdk/src/runtime/content.ts"], tests: ["packages/sdk/test/services.test.ts"] },
|
|
169
|
+
ownership: "declaration",
|
|
170
|
+
};
|
|
171
|
+
const notifications = {
|
|
172
|
+
id: "services.notifications",
|
|
173
|
+
version: 1,
|
|
174
|
+
purpose: "Per-principal notifications (AppPort Services), sent after a mutation commits (ctx.afterCommit.notifications).",
|
|
175
|
+
parameters: { types: textList("Notification types the application sends (offered in Studio).") },
|
|
176
|
+
requires: [],
|
|
177
|
+
conflicts: [],
|
|
178
|
+
contribute: (p) => ({ services: { notifications: p.types.length ? { types: [...p.types] } : true } }),
|
|
179
|
+
evidence: { sdk: ["packages/sdk/src/runtime/services.ts", "packages/sdk/src/runtime/outbox.ts"], tests: ["packages/sdk/test/outbox.test.ts", "packages/sdk/test/services.test.ts"] },
|
|
180
|
+
ownership: "declaration",
|
|
181
|
+
};
|
|
182
|
+
const jobs = {
|
|
183
|
+
id: "services.jobs",
|
|
184
|
+
version: 1,
|
|
185
|
+
purpose: "Background jobs (AppPort Services): a job type runs a FeltKit function as the enqueuer.",
|
|
186
|
+
parameters: {
|
|
187
|
+
handlers: {
|
|
188
|
+
description: 'Job type → "<module>:<function>".',
|
|
189
|
+
default: {},
|
|
190
|
+
check: (v) => (v !== null && typeof v === "object" && !Array.isArray(v) && Object.values(v).every((f) => typeof f === "string" && /^[A-Za-z0-9_/-]+:[A-Za-z0-9_]+$/.test(f)) ? null : 'must map job types to "<module>:<function>"'),
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
requires: [],
|
|
194
|
+
conflicts: [],
|
|
195
|
+
contribute: (p) => ({ services: { jobs: Object.keys(p.handlers).length ? { handlers: { ...p.handlers } } : true } }),
|
|
196
|
+
evidence: { sdk: ["packages/sdk/src/runtime/services.ts"], tests: ["packages/sdk/test/services.test.ts"] },
|
|
197
|
+
ownership: "declaration",
|
|
198
|
+
};
|
|
199
|
+
const schedules = {
|
|
200
|
+
id: "services.schedules",
|
|
201
|
+
version: 1,
|
|
202
|
+
purpose: "Recurring jobs (AppPort Services schedules).",
|
|
203
|
+
parameters: {},
|
|
204
|
+
requires: ["services.jobs"],
|
|
205
|
+
conflicts: [],
|
|
206
|
+
contribute: () => ({ services: { schedules: true } }),
|
|
207
|
+
evidence: { sdk: ["packages/sdk/src/runtime/services.ts", "packages/sdk/src/runtime/services-rules.ts (needs services.jobs, enforced by feltkit({...}))"], tests: ["packages/sdk/test/declaration-rules.test.ts"] },
|
|
208
|
+
ownership: "declaration",
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Each entry above is checked as `Capability<P>` for its own parameters. Holding them in one map
|
|
212
|
+
* erases `P` (a function of `P` is not a function of any parameters); this is the only place it happens.
|
|
213
|
+
*/
|
|
214
|
+
const entry = (capability) => Object.freeze(capability);
|
|
215
|
+
/** The catalog, by id. Frozen: resolution never changes it. */
|
|
216
|
+
export const CATALOG = new Map([entry(accounts), entry(tenancy), entry(invitations), entry(agentMembership), entry(operator), entry(files), entry(notifications), entry(jobs), entry(schedules)].map((c) => [c.id, c]));
|
|
217
|
+
//# sourceMappingURL=catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/composition/catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,gBAAgB,EAAyB,MAAM,sBAAsB,CAAC;AAG/E,MAAM,MAAM,GAAG,CAAC,CAAU,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,yBAAyB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC1F,MAAM,IAAI,GAAG,CAAC,WAAmB,EAAE,YAAqB,EAAyB,EAAE,CAA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