@capybara-hq/kernel 0.1.0-rc.147 → 0.1.0-rc.148
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/extensions/isolated/admission.js +3 -1
- package/dist/extensions/package.js +1 -3
- package/dist/extensions/permission-set.d.ts +12 -3
- package/dist/extensions/permission-set.js +5 -5
- package/dist/extensions/permission-view.d.ts +12 -5
- package/dist/extensions/permission-view.js +23 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -219,7 +219,9 @@ export function assertIsolatedSection(section, grant = {}) {
|
|
|
219
219
|
permissions?.http ||
|
|
220
220
|
permissions?.dialIn ||
|
|
221
221
|
permissions?.deviceAccess ||
|
|
222
|
-
permissions?.policyHooks?.length
|
|
222
|
+
permissions?.policyHooks?.length ||
|
|
223
|
+
// raw egress opens its own connections: only the server full-access realm carries it
|
|
224
|
+
permissions?.fullAccess?.rawEgress) {
|
|
223
225
|
throw new Error("This extension declares a capability that requires trusted execution");
|
|
224
226
|
}
|
|
225
227
|
if (section.configSchemas?.deployment !== undefined) {
|
|
@@ -7,7 +7,7 @@ import { pluginSchemaName } from "../ctx/create-ctx.js";
|
|
|
7
7
|
import { MIGRATION_FILE_RE } from "../db/migrator.js";
|
|
8
8
|
import { ApiError } from "../errors.js";
|
|
9
9
|
import { HOST_ZOD_VERSION, PACKAGE_TGZ_LIMITS, PackageTgzError, packagePath, unpackPackageTgz, } from "../packages/tgz.js";
|
|
10
|
-
import { buildPermissionSet,
|
|
10
|
+
import { buildPermissionSet, parseCreatedTables } from "./permission-set.js";
|
|
11
11
|
import { migrationWarnings, warningsDigest } from "./permission-view.js";
|
|
12
12
|
/**
|
|
13
13
|
* Reading and validating an extension package: a plugin tgz (`readPluginPackage`,
|
|
@@ -160,8 +160,6 @@ export async function readExtensionPackage(bytes, opts) {
|
|
|
160
160
|
`plugin ${manifest.name} has no extension (no "extension" in ${PLUGIN_MANIFEST_FILE}); import it into the catalog instead`,
|
|
161
161
|
], "extension.no_extension");
|
|
162
162
|
}
|
|
163
|
-
if (ext.manifest.permissions.fullAccess !== undefined)
|
|
164
|
-
throw new ExtensionPackageError([FULL_ACCESS_UNSUPPORTED]);
|
|
165
163
|
await lexerInit;
|
|
166
164
|
const issues = checkModuleGraph(packagePath(ext.entry), files);
|
|
167
165
|
const migrationSql = [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ExtensionManifest, type ExtensionPermissions, type HttpAccess, type PermissionPurpose } from "@capybara-hq/plugin-sdk";
|
|
2
|
-
export { AGENTS_KEY, CLIENT_KEY, CONVERSATIONS_KEY, DEVICE_ACCESS_KEY_PREFIX, DEVICE_HOST_KEY_PREFIX, DEVICE_LOOPBACK_PORTS_KEY, DEVICE_SITE_ACCESS_KEY, DIAL_IN_KEY_PREFIX, INBOX_KEY, PEOPLE_KEY, POLICY_HOOK_KEY_PREFIX, SETUP_CHECK_KEY_PREFIX, TRIGGERS_KEY_PREFIX, UI_COMPONENT_KEY_PREFIX, UI_VIEW_KEY_PREFIX, WARNINGS_KEY_PREFIX, } from "@capybara-hq/plugin-sdk";
|
|
2
|
+
export { AGENTS_KEY, CLIENT_KEY, CONVERSATIONS_KEY, DEVICE_ACCESS_KEY_PREFIX, DEVICE_HOST_KEY_PREFIX, DEVICE_LOOPBACK_PORTS_KEY, DEVICE_SITE_ACCESS_KEY, DIAL_IN_KEY_PREFIX, INBOX_KEY, PEOPLE_KEY, POLICY_HOOK_KEY_PREFIX, RAW_EGRESS_PERMISSION_KEY, SETUP_CHECK_KEY_PREFIX, TRIGGERS_KEY_PREFIX, UI_COMPONENT_KEY_PREFIX, UI_VIEW_KEY_PREFIX, WARNINGS_KEY_PREFIX, } from "@capybara-hq/plugin-sdk";
|
|
3
3
|
/** 一个配置字段:点路径(根即叶子时为空串)与是否密钥。 */
|
|
4
4
|
export interface PermissionConfigField {
|
|
5
5
|
path: string;
|
|
@@ -119,6 +119,17 @@ export interface PermissionSet {
|
|
|
119
119
|
people?: {
|
|
120
120
|
read: true;
|
|
121
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* Raw network egress outside `ctx.net` (`permissions.fullAccess.rawEgress`: node:http2,
|
|
124
|
+
* WebSocket long connections, a Docker Engine over node:http until brokered access arrives,
|
|
125
|
+
* plan 3.1c), with the declared purpose. One sensitive, blocking key; the execution decision
|
|
126
|
+
* forces the server realm into full access for it. Absent when not declared.
|
|
127
|
+
*/
|
|
128
|
+
fullAccess?: {
|
|
129
|
+
rawEgress: {
|
|
130
|
+
purpose: PermissionPurpose;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
122
133
|
};
|
|
123
134
|
/**
|
|
124
135
|
* 安装记录包迁移警告的摘要(`warningsDigest`,Ruling P4);没有警告或不是安装记录时省略。
|
|
@@ -160,8 +171,6 @@ export declare function buildPermissionSet(input: {
|
|
|
160
171
|
warningsDigest?: string | undefined;
|
|
161
172
|
purposes?: ReadonlyMap<string, PermissionPurpose>;
|
|
162
173
|
}): PermissionSet;
|
|
163
|
-
/** Legacy approval cannot authorize a privileged execution realm. */
|
|
164
|
-
export declare const FULL_ACCESS_UNSUPPORTED = "permissions.fullAccess is not yet supported by extension approval";
|
|
165
174
|
/** Expand the kernel snapshot's declarations using the SDK's canonical catalog. */
|
|
166
175
|
export declare function permissionKeys(set: PermissionSet): string[];
|
|
167
176
|
/**
|
|
@@ -4,7 +4,7 @@ import { permissionKeys as catalogPermissionKeys, SETUP_CHECK_KEY_PREFIX, static
|
|
|
4
4
|
import { configFields } from "../config/fields.js";
|
|
5
5
|
import { pluginSchemaName } from "../ctx/create-ctx.js";
|
|
6
6
|
import { MIGRATION_FILE_RE } from "../db/migrator.js";
|
|
7
|
-
export { AGENTS_KEY, CLIENT_KEY, CONVERSATIONS_KEY, DEVICE_ACCESS_KEY_PREFIX, DEVICE_HOST_KEY_PREFIX, DEVICE_LOOPBACK_PORTS_KEY, DEVICE_SITE_ACCESS_KEY, DIAL_IN_KEY_PREFIX, INBOX_KEY, PEOPLE_KEY, POLICY_HOOK_KEY_PREFIX, SETUP_CHECK_KEY_PREFIX, TRIGGERS_KEY_PREFIX, UI_COMPONENT_KEY_PREFIX, UI_VIEW_KEY_PREFIX, WARNINGS_KEY_PREFIX, } from "@capybara-hq/plugin-sdk";
|
|
7
|
+
export { AGENTS_KEY, CLIENT_KEY, CONVERSATIONS_KEY, DEVICE_ACCESS_KEY_PREFIX, DEVICE_HOST_KEY_PREFIX, DEVICE_LOOPBACK_PORTS_KEY, DEVICE_SITE_ACCESS_KEY, DIAL_IN_KEY_PREFIX, INBOX_KEY, PEOPLE_KEY, POLICY_HOOK_KEY_PREFIX, RAW_EGRESS_PERMISSION_KEY, SETUP_CHECK_KEY_PREFIX, TRIGGERS_KEY_PREFIX, UI_COMPONENT_KEY_PREFIX, UI_VIEW_KEY_PREFIX, WARNINGS_KEY_PREFIX, } from "@capybara-hq/plugin-sdk";
|
|
8
8
|
const cmp = (a, b) => (a < b ? -1 : a > b ? 1 : 0);
|
|
9
9
|
const sortedUnique = (xs) => [...new Set(xs ?? [])].sort(cmp);
|
|
10
10
|
const IDENT = '(?:"(?:[^"]|"")+"|[A-Za-z_][A-Za-z0-9_$]*)';
|
|
@@ -81,8 +81,6 @@ export async function computePermissionSet(manifest, pluginDir) {
|
|
|
81
81
|
*/
|
|
82
82
|
export function buildPermissionSet(input) {
|
|
83
83
|
const p = input.permissions ?? {};
|
|
84
|
-
if (p.fullAccess !== undefined)
|
|
85
|
-
throw new Error(FULL_ACCESS_UNSUPPORTED);
|
|
86
84
|
const byPath = (a, b) => cmp(a.path, b.path);
|
|
87
85
|
return {
|
|
88
86
|
provides: sortedUnique(input.provides),
|
|
@@ -148,12 +146,14 @@ export function buildPermissionSet(input) {
|
|
|
148
146
|
...(p.agents?.read === true ? { agents: { read: true } } : {}),
|
|
149
147
|
...(p.conversations?.subjects === true ? { conversations: { subjects: true } } : {}),
|
|
150
148
|
...(p.people?.read === true ? { people: { read: true } } : {}),
|
|
149
|
+
// only when declared: raw egress (its purpose kept for the review); one blocking key
|
|
150
|
+
...(p.fullAccess?.rawEgress
|
|
151
|
+
? { fullAccess: { rawEgress: { purpose: p.fullAccess.rawEgress.purpose } } }
|
|
152
|
+
: {}),
|
|
151
153
|
},
|
|
152
154
|
...(input.warningsDigest ? { warningsDigest: input.warningsDigest } : {}),
|
|
153
155
|
};
|
|
154
156
|
}
|
|
155
|
-
/** Legacy approval cannot authorize a privileged execution realm. */
|
|
156
|
-
export const FULL_ACCESS_UNSUPPORTED = "permissions.fullAccess is not yet supported by extension approval";
|
|
157
157
|
/** Expand the kernel snapshot's declarations using the SDK's canonical catalog. */
|
|
158
158
|
export function permissionKeys(set) {
|
|
159
159
|
return catalogPermissionKeys(set);
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { type LocalizedName, type UiDropReason } from "@capybara-hq/plugin-sdk";
|
|
1
|
+
import { type LocalizedName, type PermissionPurpose, type UiDropReason } from "@capybara-hq/plugin-sdk";
|
|
2
2
|
import type { PluginScope } from "../catalog/scope.js";
|
|
3
3
|
import type { ReportBodyInput } from "../client/client.schemas.js";
|
|
4
4
|
import { type PermissionSet } from "./permission-set.js";
|
|
5
5
|
import type { ExtensionSource } from "./sources.js";
|
|
6
|
+
/**
|
|
7
|
+
* The declared purpose of each permission key of a snapshot (inline purposes plus the raw egress
|
|
8
|
+
* purpose), for the legacy listings (`capybara extensions approve`, `review`). Plain text.
|
|
9
|
+
*/
|
|
10
|
+
export declare function permissionPurposes(set: PermissionSet): Map<string, PermissionPurpose>;
|
|
6
11
|
/** Review data contains plain purpose text. Renderers escape it as text on output. */
|
|
7
12
|
export declare function reviewPermissionRows(set: PermissionSet): {
|
|
8
13
|
rows: {
|
|
@@ -10,7 +15,7 @@ export declare function reviewPermissionRows(set: PermissionSet): {
|
|
|
10
15
|
family: "config.deployment" | "config.deployment.secret" | "execution.config.unsupported" | "execution.full-access" | "execution.provider.unsupported" | "host.no-isolation" | "migration.warnings" | "optional" | "optional.custodian" | "permissions.agents" | "permissions.bus" | "permissions.client" | "permissions.conversations" | "permissions.deviceaccess" | "permissions.deviceaccess.host" | "permissions.deviceaccess.loopbackports" | "permissions.deviceaccess.siteaccess" | "permissions.dialin" | "permissions.fullaccess.rawegress" | "permissions.hooks.observe" | "permissions.hooks.policy" | "permissions.hooks.sensitive" | "permissions.http" | "permissions.inbox" | "permissions.kv" | "permissions.lock" | "permissions.models" | "permissions.network" | "permissions.outbox" | "permissions.people" | "permissions.queue" | "permissions.secrets" | "permissions.storage" | "permissions.tools" | "permissions.triggers" | "provides" | "provides.standard" | "requires" | "requires.custodian" | "setup.check" | "table" | "ui.action" | "ui.component" | "ui.embed" | "ui.query" | "ui.view";
|
|
11
16
|
risk: "custodian" | "fullAccess" | "informational" | "sensitive" | "standard";
|
|
12
17
|
reason: "Accepts connections from devices that use this protocol." | "Calls the model mapped to this declared purpose." | "Can deny the protected action at this mount." | "Can request a grant for a device loopback port." | "Can request approved actions on websites from the person's device." | "Contains migration statements that require review." | "Coordinates work using locks in the extension namespace." | "Creates a table in the extension database schema." | "Depends on a provider that handles a protected resource." | "Emits durable events of this type." | "Handles this named action for its extension UI." | "Handles this named query for its extension UI." | "Implements a kernel capability and sees the resource it serves." | "Implements this kernel capability." | "Makes network requests outside the kernel egress broker." | "Observes bounded metadata at this mount." | "Observes model or tool data at this mount." | "Orders startup after this extension point when present." | "Posts to the inbox of members of enabled orgs." | "Publishes and receives events in the extension namespace." | "Reads and writes keys in the extension namespace." | "Reads metadata for conversations about its own subjects." | "Reads or stores secrets in its approved namespace." | "Reads or writes objects in its scoped storage prefix." | "Reads the names and avatars of org members." | "Reads which agents a member can use." | "Receives requests and data for this route and audience." | "Receives this field from effective configuration." | "Renders this named component in the app." | "Renders this named view through the kernel." | "Requires this extension point at startup." | "Runs this named tool with its input and scoped call context." | "Runs this read-only setup check." | "Runs this service outside the device sandbox." | "Runs with the privileges of the approved execution realm." | "Runs without a host isolation supervisor." | "Schedules work in the extension namespace." | "Sends requests and data to this destination." | "Serves an embedded page for this view." | "Stages durable effects in the extension namespace." | "Supplies client code for the app." | "The deployment config schema is outside the isolated tier's declarative subset." | "This provider contract does not yet have an isolated execution form." | "Uses this confidential configuration field." | "Uses this service on a person's device.";
|
|
13
|
-
purpose:
|
|
18
|
+
purpose: PermissionPurpose | undefined;
|
|
14
19
|
}[];
|
|
15
20
|
errors: string[];
|
|
16
21
|
warnings: string[];
|
|
@@ -25,10 +30,10 @@ export declare function reviewPermissionRows(set: PermissionSet): {
|
|
|
25
30
|
export declare function reviewHash(set: PermissionSet, warnings?: readonly PackageWarning[]): string;
|
|
26
31
|
/** 权限清单展示用的一组:按类别分组,`sensitive` 标出需要管理员特别留意的类别。 */
|
|
27
32
|
export interface PermissionGroup {
|
|
28
|
-
category: "provides" | "requires" | "optional" | "config" | "tables" | "secrets" | "storage" | "http" | "publicRoutes" | "embedRoutes" | "tools" | "hooks" | "models" | "network" | "ui" | "components" | "client" | "dialIn" | "deviceAccess" | "triggers" | "inbox" | "agents" | "conversations" | "people";
|
|
33
|
+
category: "provides" | "requires" | "optional" | "config" | "tables" | "secrets" | "storage" | "http" | "publicRoutes" | "embedRoutes" | "tools" | "hooks" | "models" | "network" | "ui" | "components" | "client" | "dialIn" | "deviceAccess" | "triggers" | "inbox" | "agents" | "conversations" | "people" | "fullAccess";
|
|
29
34
|
/**
|
|
30
35
|
* Sensitive category: secrets, public routes, tools, hooks, client components, client code,
|
|
31
|
-
* device services; also
|
|
36
|
+
* device services, raw egress; also
|
|
32
37
|
* the "provides" group when it holds one of {@link SENSITIVE_EXTENSION_POINTS}, and the "UI" group
|
|
33
38
|
* (views and embeds) when it holds an embedded app (embed: the extension's own page in an iframe).
|
|
34
39
|
*/
|
|
@@ -46,13 +51,15 @@ export interface PermissionGroup {
|
|
|
46
51
|
* ({@link SENSITIVE_EXTENSION_POINTS}; the code is the extension point name without `@<major>`, with
|
|
47
52
|
* `-` replaced by `_`).
|
|
48
53
|
*/
|
|
49
|
-
export type SensitiveReason = "secrets" | "public_routes" | "embed_routes" | "tools" | "hooks" | "ui_embed" | "client_code" | "ui_component" | "channel" | "directory" | "identity_source" | "device_provider" | "object_store" | "context" | "push_provider" | "device_access" | "device_loopback_ports" | "device_site_access" | "device_host_service" | "migration_warnings";
|
|
54
|
+
export type SensitiveReason = "secrets" | "public_routes" | "embed_routes" | "tools" | "hooks" | "ui_embed" | "client_code" | "ui_component" | "channel" | "directory" | "identity_source" | "device_provider" | "object_store" | "context" | "push_provider" | "device_access" | "device_loopback_ports" | "device_site_access" | "device_host_service" | "raw_egress" | "migration_warnings";
|
|
50
55
|
/** 权限清单里的一项(分组里的一项,或 `added` 里的一个权限键)。 */
|
|
51
56
|
export interface PermissionItem {
|
|
52
57
|
value: string;
|
|
53
58
|
sensitive: boolean;
|
|
54
59
|
/** 敏感时的原因码。 */
|
|
55
60
|
reason?: SensitiveReason;
|
|
61
|
+
/** The declared purpose, on the raw egress item (the publisher's text, rendered as text). */
|
|
62
|
+
purpose?: PermissionPurpose;
|
|
56
63
|
}
|
|
57
64
|
/**
|
|
58
65
|
* Sensitive capabilities (D10 + planned extensions, F-AI): `device-provider@1` runs arbitrary commands in
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
import { lintPermissionPurposes, permissionCatalogMatches, } from "@capybara-hq/plugin-sdk";
|
|
2
|
+
import { lintPermissionPurposes, permissionCatalogMatches, RAW_EGRESS_PERMISSION_KEY, } from "@capybara-hq/plugin-sdk";
|
|
3
3
|
import { pluginSchemaName } from "../ctx/create-ctx.js";
|
|
4
4
|
import { EXTENSION_RLS_PREDICATE } from "../db/extension-rls-predicate.js";
|
|
5
5
|
import { isDestructiveSql, splitSqlStatements } from "../db/sql-statements.js";
|
|
6
6
|
import { AGENTS_KEY, CLIENT_KEY, CONVERSATIONS_KEY, DEVICE_ACCESS_KEY_PREFIX, DEVICE_HOST_KEY_PREFIX, DEVICE_LOOPBACK_PORTS_KEY, DEVICE_SITE_ACCESS_KEY, DIAL_IN_KEY_PREFIX, INBOX_KEY, PEOPLE_KEY, permissionKeys, TRIGGERS_KEY_PREFIX, UI_COMPONENT_KEY_PREFIX, WARNINGS_KEY_PREFIX, } from "./permission-set.js";
|
|
7
|
+
/**
|
|
8
|
+
* The declared purpose of each permission key of a snapshot (inline purposes plus the raw egress
|
|
9
|
+
* purpose), for the legacy listings (`capybara extensions approve`, `review`). Plain text.
|
|
10
|
+
*/
|
|
11
|
+
export function permissionPurposes(set) {
|
|
12
|
+
return lintPermissionPurposes(set, new Map(Object.entries(set.purposes ?? {}))).purposes;
|
|
13
|
+
}
|
|
7
14
|
/** Review data contains plain purpose text. Renderers escape it as text on output. */
|
|
8
15
|
export function reviewPermissionRows(set) {
|
|
9
16
|
const { purposes, errors, warnings } = lintPermissionPurposes(set, new Map(Object.entries(set.purposes ?? {})));
|
|
@@ -69,6 +76,8 @@ const LOOPBACK_PORTS_ITEM = "local ports on the device (loopback)";
|
|
|
69
76
|
const SITE_ACCESS_ITEM = "profile-approved actions on websites";
|
|
70
77
|
/** Item prefix of a host service (`permissions.deviceAccess.hostServices`): `host:<service>`. */
|
|
71
78
|
const HOST_ITEM_PREFIX = "host:";
|
|
79
|
+
/** The one item of the "fullAccess" group (`permissions.fullAccess.rawEgress`). */
|
|
80
|
+
const RAW_EGRESS_ITEM = "raw network egress";
|
|
72
81
|
/** The one item of the "inbox" group (collaboration spec §4.9). */
|
|
73
82
|
const INBOX_ITEM = "personal inbox items";
|
|
74
83
|
/** The items of the read-only org fact groups. */
|
|
@@ -85,6 +94,7 @@ const ALWAYS_SENSITIVE = new Set([
|
|
|
85
94
|
"components",
|
|
86
95
|
"client",
|
|
87
96
|
"deviceAccess",
|
|
97
|
+
"fullAccess",
|
|
88
98
|
]);
|
|
89
99
|
const CATEGORY_REASON = {
|
|
90
100
|
secrets: "secrets",
|
|
@@ -95,6 +105,7 @@ const CATEGORY_REASON = {
|
|
|
95
105
|
components: "ui_component",
|
|
96
106
|
client: "client_code",
|
|
97
107
|
deviceAccess: "device_access",
|
|
108
|
+
fullAccess: "raw_egress",
|
|
98
109
|
};
|
|
99
110
|
/**
|
|
100
111
|
* Why an item in a category is sensitive (undefined when it is not; shared by the grouped list, the
|
|
@@ -138,6 +149,8 @@ function keyItem(key) {
|
|
|
138
149
|
return { category: "client", item: CLIENT_ITEM };
|
|
139
150
|
if (key === INBOX_KEY)
|
|
140
151
|
return { category: "inbox", item: INBOX_ITEM };
|
|
152
|
+
if (key === RAW_EGRESS_PERMISSION_KEY)
|
|
153
|
+
return { category: "fullAccess", item: RAW_EGRESS_ITEM };
|
|
141
154
|
if (key === DEVICE_LOOPBACK_PORTS_KEY)
|
|
142
155
|
return { category: "deviceAccess", item: LOOPBACK_PORTS_ITEM };
|
|
143
156
|
if (key === DEVICE_SITE_ACCESS_KEY)
|
|
@@ -263,11 +276,19 @@ export function permissionGroups(set) {
|
|
|
263
276
|
items: p.conversations?.subjects === true ? [CONVERSATIONS_ITEM] : [],
|
|
264
277
|
},
|
|
265
278
|
{ category: "people", items: p.people?.read === true ? [PEOPLE_ITEM] : [] },
|
|
279
|
+
// traffic outside ctx.net (sensitive: full access for the server realm)
|
|
280
|
+
{ category: "fullAccess", items: p.fullAccess?.rawEgress ? [RAW_EGRESS_ITEM] : [] },
|
|
266
281
|
];
|
|
282
|
+
const rawEgressPurpose = p.fullAccess?.rawEgress.purpose;
|
|
267
283
|
return groups
|
|
268
284
|
.filter((g) => g.items.length > 0)
|
|
269
285
|
.map((g) => {
|
|
270
|
-
const entries = g.items.map((i) =>
|
|
286
|
+
const entries = g.items.map((i) => {
|
|
287
|
+
const item = itemOf(g.category, i);
|
|
288
|
+
return g.category === "fullAccess" && rawEgressPurpose
|
|
289
|
+
? { ...item, purpose: rawEgressPurpose }
|
|
290
|
+
: item;
|
|
291
|
+
});
|
|
271
292
|
return { ...g, sensitive: entries.some((e) => e.sensitive), entries };
|
|
272
293
|
});
|
|
273
294
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -51,8 +51,8 @@ export { deploymentConfigIsolatable, isolatedDeploymentSchema, } from "./extensi
|
|
|
51
51
|
export { ExtensionLifecycle, PLUGINS_RECONCILE_JOB, PLUGINS_RECONCILE_TOPIC, } from "./extensions/lifecycle.js";
|
|
52
52
|
export { ensureMigrated, MIGRATE_LOCK_PREFIX, type MigrateLockDeps, PLUGINS_MIGRATED_TOPIC, unrunMigrations, } from "./extensions/migrate-lock.js";
|
|
53
53
|
export { EXTENSION_PACKAGE_LIMITS, type ExtensionPackage, ExtensionPackageError, type ExtensionPackageLimits, type ExtensionPackageSection, extractExtensionPackage, HOST_ZOD_VERSION, permissionSetOfPackage, type ReadExtensionPackageOptions, readExtensionPackage, } from "./extensions/package.js";
|
|
54
|
-
export { blockingKeys, buildPermissionSet, computePermissionSet, diffPermissions, type PermissionSet, permissionKeys, WARNINGS_KEY_PREFIX, } from "./extensions/permission-set.js";
|
|
55
|
-
export { type AdminExtensionView, type DeploymentExtensionStatus, isSensitivePermissionKey, type PermissionGroup, type PermissionItem, permissionGroups, permissionKeyItems, reviewHash, SENSITIVE_EXTENSION_POINTS, type SensitiveReason, } from "./extensions/permission-view.js";
|
|
54
|
+
export { blockingKeys, buildPermissionSet, computePermissionSet, diffPermissions, type PermissionSet, permissionKeys, RAW_EGRESS_PERMISSION_KEY, WARNINGS_KEY_PREFIX, } from "./extensions/permission-set.js";
|
|
55
|
+
export { type AdminExtensionView, type DeploymentExtensionStatus, isSensitivePermissionKey, type PermissionGroup, type PermissionItem, permissionGroups, permissionKeyItems, permissionPurposes, reviewHash, SENSITIVE_EXTENSION_POINTS, type SensitiveReason, } from "./extensions/permission-view.js";
|
|
56
56
|
export { ExtensionRegistry } from "./extensions/registry.js";
|
|
57
57
|
export { ExtensionResolveError, resolveExtensions } from "./extensions/resolve.js";
|
|
58
58
|
export { fullAccessPurpose, grantPurposeRows, REVIEW_CONTRACT_VERSION, type ReviewDisplay, type ReviewInput, reviewDisplay, revisionReviewHash, } from "./extensions/review-hash.js";
|
package/dist/index.js
CHANGED
|
@@ -50,8 +50,8 @@ export { deploymentConfigIsolatable, isolatedDeploymentSchema, } from "./extensi
|
|
|
50
50
|
export { ExtensionLifecycle, PLUGINS_RECONCILE_JOB, PLUGINS_RECONCILE_TOPIC, } from "./extensions/lifecycle.js";
|
|
51
51
|
export { ensureMigrated, MIGRATE_LOCK_PREFIX, PLUGINS_MIGRATED_TOPIC, unrunMigrations, } from "./extensions/migrate-lock.js";
|
|
52
52
|
export { EXTENSION_PACKAGE_LIMITS, ExtensionPackageError, extractExtensionPackage, HOST_ZOD_VERSION, permissionSetOfPackage, readExtensionPackage, } from "./extensions/package.js";
|
|
53
|
-
export { blockingKeys, buildPermissionSet, computePermissionSet, diffPermissions, permissionKeys, WARNINGS_KEY_PREFIX, } from "./extensions/permission-set.js";
|
|
54
|
-
export { isSensitivePermissionKey, permissionGroups, permissionKeyItems, reviewHash, SENSITIVE_EXTENSION_POINTS, } from "./extensions/permission-view.js";
|
|
53
|
+
export { blockingKeys, buildPermissionSet, computePermissionSet, diffPermissions, permissionKeys, RAW_EGRESS_PERMISSION_KEY, WARNINGS_KEY_PREFIX, } from "./extensions/permission-set.js";
|
|
54
|
+
export { isSensitivePermissionKey, permissionGroups, permissionKeyItems, permissionPurposes, reviewHash, SENSITIVE_EXTENSION_POINTS, } from "./extensions/permission-view.js";
|
|
55
55
|
export { ExtensionRegistry } from "./extensions/registry.js";
|
|
56
56
|
export { ExtensionResolveError, resolveExtensions } from "./extensions/resolve.js";
|
|
57
57
|
export { fullAccessPurpose, grantPurposeRows, REVIEW_CONTRACT_VERSION, reviewDisplay, revisionReviewHash, } from "./extensions/review-hash.js";
|
package/package.json
CHANGED