@capybara-hq/plugin-sdk 0.1.0-rc.4 → 0.1.0-rc.41
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/agent-docs/agent-templates.md +15 -3
- package/agent-docs/concepts.md +13 -3
- package/agent-docs/connector-templates.md +2 -1
- package/agent-docs/extension-points/channel.md +2 -2
- package/agent-docs/extension-points/config-source.md +1 -1
- package/agent-docs/extension-points/connector.md +1 -1
- package/agent-docs/extension-points/context.md +15 -0
- package/agent-docs/extension-points/counter.md +1 -1
- package/agent-docs/extension-points/directory.md +1 -1
- package/agent-docs/extension-points/file-preview.md +3 -1
- package/agent-docs/extension-points/identity-source.md +1 -1
- package/agent-docs/extension-points/model-provider.md +4 -2
- package/agent-docs/extension-points/object-store.md +3 -1
- package/agent-docs/extension-points/sandbox.md +3 -3
- package/agent-docs/extension-points/secret-store.md +1 -1
- package/agent-docs/extension-points/web-fetch.md +1 -1
- package/agent-docs/extension-points/web-search.md +1 -1
- package/agent-docs/extensions.md +29 -4
- package/agent-docs/plugin-format.md +43 -3
- package/agent-docs/setup.md +46 -0
- package/agent-docs/skills.md +1 -1
- package/agent-docs/tool-naming.md +1 -1
- package/dist/agent-template.d.ts +15 -6
- package/dist/agent-template.js +32 -13
- package/dist/bootstrap.d.ts +15 -1
- package/dist/bootstrap.js +17 -1
- package/dist/cards.d.ts +67 -13
- package/dist/cards.js +91 -21
- package/dist/channel.d.ts +148 -48
- package/dist/channel.js +10 -5
- package/dist/client-css.d.ts +36 -0
- package/dist/client-css.js +326 -0
- package/dist/client-section.d.ts +35 -0
- package/dist/client-section.js +133 -0
- package/dist/config-ui.d.ts +22 -0
- package/dist/config-ui.js +64 -4
- package/dist/connector-auth.d.ts +7 -2
- package/dist/connector-auth.js +29 -8
- package/dist/connector.d.ts +74 -32
- package/dist/context.d.ts +40 -0
- package/dist/context.js +2 -0
- package/dist/ctx.d.ts +120 -29
- package/dist/define-extension.d.ts +26 -12
- package/dist/define-extension.js +11 -4
- package/dist/device-denied-paths.d.ts +14 -0
- package/dist/device-denied-paths.js +41 -0
- package/dist/device-protocol.d.ts +481 -0
- package/dist/device-protocol.js +1113 -0
- package/dist/extension-point.d.ts +2 -0
- package/dist/extension-point.js +5 -2
- package/dist/file-preview.d.ts +23 -6
- package/dist/git-hosts.d.ts +44 -0
- package/dist/git-hosts.js +81 -0
- package/dist/hooks.d.ts +125 -20
- package/dist/hooks.js +5 -0
- package/dist/http-access.d.ts +62 -0
- package/dist/http-access.js +12 -0
- package/dist/identity.d.ts +22 -9
- package/dist/index.d.ts +26 -1
- package/dist/index.js +26 -1
- package/dist/marketplace.d.ts +26 -0
- package/dist/marketplace.js +43 -1
- package/dist/model-params.d.ts +41 -22
- package/dist/model-params.js +28 -15
- package/dist/model.d.ts +206 -71
- package/dist/model.js +152 -19
- package/dist/net.d.ts +52 -0
- package/dist/net.js +34 -0
- package/dist/network-classes.d.ts +98 -0
- package/dist/network-classes.js +291 -0
- package/dist/permissions.d.ts +41 -21
- package/dist/permissions.js +101 -42
- package/dist/plugin-manifest.d.ts +45 -5
- package/dist/plugin-manifest.js +169 -6
- package/dist/plugin-package.d.ts +82 -38
- package/dist/plugin-package.js +61 -29
- package/dist/sandbox-linux-runtime-source.d.ts +1 -0
- package/dist/sandbox-linux-runtime-source.js +2318 -0
- package/dist/sandbox-native-runtime-source.d.ts +8 -0
- package/dist/sandbox-native-runtime-source.js +465 -0
- package/dist/sandbox-operation.d.ts +284 -0
- package/dist/sandbox-operation.js +262 -0
- package/dist/sandbox-runtime-source.d.ts +19 -0
- package/dist/sandbox-runtime-source.js +28 -0
- package/dist/sandbox-write-denies.d.ts +139 -0
- package/dist/sandbox-write-denies.js +869 -0
- package/dist/sandbox.d.ts +190 -16
- package/dist/sandbox.js +89 -14
- package/dist/secret.d.ts +4 -1
- package/dist/secret.js +4 -1
- package/dist/setup-check.d.ts +115 -0
- package/dist/setup-check.js +142 -0
- package/dist/setup-guide-parse.d.ts +121 -0
- package/dist/setup-guide-parse.js +350 -0
- package/dist/setup-guide-render.d.ts +45 -0
- package/dist/setup-guide-render.js +351 -0
- package/dist/setup-guide.d.ts +94 -0
- package/dist/setup-guide.js +336 -0
- package/dist/shell-capabilities.d.ts +88 -0
- package/dist/shell-capabilities.js +13 -0
- package/dist/shell-environment.d.ts +57 -0
- package/dist/shell-environment.js +16 -0
- package/dist/skill-invocation.d.ts +4 -3
- package/dist/skill-invocation.js +5 -4
- package/dist/skill.d.ts +34 -21
- package/dist/skill.js +48 -31
- package/dist/storage.d.ts +52 -25
- package/dist/theme-assets.d.ts +39 -0
- package/dist/theme-assets.js +449 -0
- package/dist/theme-readability.d.ts +37 -0
- package/dist/theme-readability.js +145 -0
- package/dist/theme-tokens.generated.d.ts +287 -0
- package/dist/theme-tokens.generated.js +176 -0
- package/dist/theme.d.ts +152 -0
- package/dist/theme.js +392 -0
- package/dist/tool.d.ts +69 -26
- package/dist/tool.js +29 -9
- package/dist/ui-parts.d.ts +23 -0
- package/dist/ui-parts.js +348 -0
- package/dist/ui-resolve.d.ts +35 -0
- package/dist/ui-resolve.js +42 -0
- package/dist/ui-slots.d.ts +65 -0
- package/dist/ui-slots.js +261 -0
- package/dist/ui.d.ts +212 -76
- package/dist/ui.js +101 -27
- package/dist/url.d.ts +4 -1
- package/dist/url.js +4 -1
- package/package.json +8 -1
- package/schemas/bootstrap.v1.schema.json +6 -0
- package/schemas/connector-template.v1.schema.json +35 -0
- package/schemas/marketplace.v1.schema.json +14 -0
- package/schemas/plugin.v1.schema.json +115 -3
- package/schemas/theme.v1.schema.json +225 -0
|
@@ -31,6 +31,8 @@ export declare const CHANNEL_EXTENSION_POINT = "channel@1";
|
|
|
31
31
|
export declare const IDENTITY_SOURCE_EXTENSION_POINT = "identity-source@1";
|
|
32
32
|
/** Directory sync extension point ref (see `directory.ts`). */
|
|
33
33
|
export declare const DIRECTORY_EXTENSION_POINT = "directory@1";
|
|
34
|
+
/** Context provider extension point ref (see `context.ts`). */
|
|
35
|
+
export declare const CONTEXT_EXTENSION_POINT = "context@1";
|
|
34
36
|
/** Parses an extension point ref; throws when the format is invalid. */
|
|
35
37
|
export declare function parseExtensionPoint(ref: string): {
|
|
36
38
|
name: string;
|
package/dist/extension-point.js
CHANGED
|
@@ -8,18 +8,19 @@ const info = (majors, description, cardinality, brokered = false, orgScoped = fa
|
|
|
8
8
|
});
|
|
9
9
|
/** The registered extension points. */
|
|
10
10
|
export const EXTENSION_POINTS = {
|
|
11
|
-
sandbox: info([2], "Runs
|
|
11
|
+
sandbox: info([2], "Runs a device's instance and keeps its files for agents' commands (Docker, E2B).", "single", true),
|
|
12
12
|
"config-source": info([1], "Supplies deployment configuration from an external store such as Nacos.", "single"),
|
|
13
13
|
"secret-store": info([1], "Stores and resolves secrets (connector credentials, secret config) outside the database.", "single", true),
|
|
14
14
|
"object-store": info([1], "Stores files and artifacts in S3-compatible object storage, with presigned uploads.", "single", true),
|
|
15
15
|
channel: info([1], "Connects an instant-messaging platform (Slack, Lark): inbound events, replies and cards.", "multi", false, true),
|
|
16
|
-
"model-provider": info([
|
|
16
|
+
"model-provider": info([2], "Calls a model vendor's API and streams the result back to the runtime.", "multi", true),
|
|
17
17
|
"identity-source": info([1], "Signs people in through an external identity provider (SSO).", "multi"),
|
|
18
18
|
directory: info([1], "Syncs members and departments from an external company directory.", "multi", false, true),
|
|
19
19
|
counter: info([1], "Counts usage so quotas and reports can be built on it.", "multi"),
|
|
20
20
|
connector: info([1], "Speaks one protocol (MCP, OpenAPI) to external systems and exposes their tools to agents.", "multi", true),
|
|
21
21
|
"file-preview": info([1], "Renders previews of files of given types in the conversation UI.", "multi", false, true),
|
|
22
22
|
"web-search": info([1], "Searches the web for the WebSearch tool; each org picks a default provider.", "multi", true, true, "org-default"),
|
|
23
|
+
context: info([1], "Adds text to the model's context at run start in conversations of orgs that enable it.", "multi", true, true),
|
|
23
24
|
"web-fetch": info([1], "Fetches and extracts web pages for the WebFetch tool; each org picks a default provider.", "multi", true, true, "org-default"),
|
|
24
25
|
};
|
|
25
26
|
/** Cardinality of the registered extension points (derived from EXTENSION_POINTS). */
|
|
@@ -32,6 +33,8 @@ export const CHANNEL_EXTENSION_POINT = "channel@1";
|
|
|
32
33
|
export const IDENTITY_SOURCE_EXTENSION_POINT = "identity-source@1";
|
|
33
34
|
/** Directory sync extension point ref (see `directory.ts`). */
|
|
34
35
|
export const DIRECTORY_EXTENSION_POINT = "directory@1";
|
|
36
|
+
/** Context provider extension point ref (see `context.ts`). */
|
|
37
|
+
export const CONTEXT_EXTENSION_POINT = "context@1";
|
|
35
38
|
/** Parses an extension point ref; throws when the format is invalid. */
|
|
36
39
|
export function parseExtensionPoint(ref) {
|
|
37
40
|
const m = /^([a-z][a-z0-9-]*)@(\d+)$/.exec(ref);
|
package/dist/file-preview.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const FILE_PREVIEW_MAX_BYTES: number;
|
|
|
7
7
|
/**
|
|
8
8
|
* One previewer of a `file-preview@1` provider: which files it previews and how. It renders either a
|
|
9
9
|
* view (`render`, drawn by the web app like any `UiView`) or an embed page (`embed`, the id of a ui
|
|
10
|
-
* contribution `{ kind: "embed",
|
|
10
|
+
* contribution `{ kind: "embed", slot: "file.preview" }` of the same extension, which receives the
|
|
11
11
|
* file over the message bridge). Exactly one of the two.
|
|
12
12
|
*/
|
|
13
13
|
export interface FilePreviewer {
|
|
@@ -34,14 +34,12 @@ export interface FilePreviewer {
|
|
|
34
34
|
export interface FilePreviewProvider {
|
|
35
35
|
previewers: FilePreviewer[];
|
|
36
36
|
}
|
|
37
|
-
/**
|
|
38
|
-
export interface
|
|
39
|
-
orgId: string;
|
|
40
|
-
accountId: string;
|
|
41
|
-
conversationId: string;
|
|
37
|
+
/** What every {@link FilePreviewArgs} variant carries. */
|
|
38
|
+
export interface FilePreviewArgsBase {
|
|
42
39
|
locale: Locale;
|
|
43
40
|
/** Aborted at the kernel's time limit: stop reading and rendering. */
|
|
44
41
|
signal: AbortSignal;
|
|
42
|
+
/** In the share variant `file.id` is the share id. */
|
|
45
43
|
file: {
|
|
46
44
|
id: string;
|
|
47
45
|
name: string;
|
|
@@ -62,6 +60,25 @@ export interface FilePreviewArgs {
|
|
|
62
60
|
*/
|
|
63
61
|
config?: unknown;
|
|
64
62
|
}
|
|
63
|
+
/** A preview inside a conversation; identities come from the kernel after authentication. */
|
|
64
|
+
export interface FilePreviewConversationArgs extends FilePreviewArgsBase {
|
|
65
|
+
source: "conversation";
|
|
66
|
+
orgId: string;
|
|
67
|
+
accountId: string;
|
|
68
|
+
conversationId: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A preview on a share page: there is no account and no conversation. A previewer that needs the
|
|
72
|
+
* conversation declines this variant by throwing; the kernel reports the failure and the page falls
|
|
73
|
+
* to the next previewer.
|
|
74
|
+
*/
|
|
75
|
+
export interface FilePreviewShareArgs extends FilePreviewArgsBase {
|
|
76
|
+
source: "share";
|
|
77
|
+
orgId: string;
|
|
78
|
+
shareId: string;
|
|
79
|
+
}
|
|
80
|
+
/** Arguments of {@link FilePreviewer.render}: narrow on `source`. */
|
|
81
|
+
export type FilePreviewArgs = FilePreviewConversationArgs | FilePreviewShareArgs;
|
|
65
82
|
/** Checks a `file-preview@1` provider; returns the problems (empty = valid). */
|
|
66
83
|
export declare function validateFilePreviewProvider(p: unknown): string[];
|
|
67
84
|
/** Whether a previewer takes this file: its type or extension is accepted and it is within `maxBytes`. */
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* The git source of a connector: the git hosts a connector's credential may be used for, and the
|
|
4
|
+
* HTTP basic username to present for each (spec 2026-11-12-sandbox-git-credentials §6.1). Pure
|
|
5
|
+
* validation; the kernel reuses {@link GitSourceSchema} for its connector create body.
|
|
6
|
+
*/
|
|
7
|
+
/** Limits of {@link GitSourceSchema}. */
|
|
8
|
+
export declare const GIT_HOSTS_LIMITS: {
|
|
9
|
+
/** Hosts per connector. */
|
|
10
|
+
readonly hosts: 8;
|
|
11
|
+
/** Characters of a username. */
|
|
12
|
+
readonly usernameChars: 64;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The basic-auth usernames of well-known git hosts: a GitHub token (a PAT or an app installation
|
|
16
|
+
* token) is presented with the fixed username `x-access-token`. Documentation for template authors;
|
|
17
|
+
* a connector still states its username explicitly.
|
|
18
|
+
*/
|
|
19
|
+
export declare const GIT_HOST_USERNAMES: {
|
|
20
|
+
readonly "github.com": "x-access-token";
|
|
21
|
+
readonly "*.ghe.com": "x-access-token";
|
|
22
|
+
};
|
|
23
|
+
/** One git host and the username its credential is presented with. */
|
|
24
|
+
export interface GitHostEntry {
|
|
25
|
+
/** Lower-case hostname with no scheme, port, path, wildcard or userinfo. */
|
|
26
|
+
host: string;
|
|
27
|
+
/** HTTP basic username, `^[A-Za-z0-9._-]{1,64}$`. */
|
|
28
|
+
username: string;
|
|
29
|
+
}
|
|
30
|
+
/** The git source of a connector (`git` on a connector template and on a custom connector). */
|
|
31
|
+
export interface GitSource {
|
|
32
|
+
hosts: GitHostEntry[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The zod schema of {@link GitSource} (strict objects, 1 to {@link GIT_HOSTS_LIMITS}`.hosts` hosts,
|
|
36
|
+
* no duplicate host). Error messages never echo the offending value.
|
|
37
|
+
*/
|
|
38
|
+
export declare const GitSourceSchema: z.ZodType<GitSource>;
|
|
39
|
+
/** Validates a `git` value; returns problems as `<path>: <message>` (empty means valid). */
|
|
40
|
+
export declare function validateGitSource(git: unknown, at?: string): string[];
|
|
41
|
+
/** Parses a `git` value: the value, or `{ errors }`. */
|
|
42
|
+
export declare function parseGitSource(git: unknown): GitSource | {
|
|
43
|
+
errors: string[];
|
|
44
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { validateAllowHost } from "./sandbox.js";
|
|
3
|
+
/**
|
|
4
|
+
* The git source of a connector: the git hosts a connector's credential may be used for, and the
|
|
5
|
+
* HTTP basic username to present for each (spec 2026-11-12-sandbox-git-credentials §6.1). Pure
|
|
6
|
+
* validation; the kernel reuses {@link GitSourceSchema} for its connector create body.
|
|
7
|
+
*/
|
|
8
|
+
/** Limits of {@link GitSourceSchema}. */
|
|
9
|
+
export const GIT_HOSTS_LIMITS = {
|
|
10
|
+
/** Hosts per connector. */
|
|
11
|
+
hosts: 8,
|
|
12
|
+
/** Characters of a username. */
|
|
13
|
+
usernameChars: 64,
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The basic-auth usernames of well-known git hosts: a GitHub token (a PAT or an app installation
|
|
17
|
+
* token) is presented with the fixed username `x-access-token`. Documentation for template authors;
|
|
18
|
+
* a connector still states its username explicitly.
|
|
19
|
+
*/
|
|
20
|
+
export const GIT_HOST_USERNAMES = {
|
|
21
|
+
"github.com": "x-access-token",
|
|
22
|
+
"*.ghe.com": "x-access-token",
|
|
23
|
+
};
|
|
24
|
+
const USERNAME_RE = /^[A-Za-z0-9._-]{1,64}$/;
|
|
25
|
+
/** Why a host is refused; never echoes the value (it may be a pasted credential or URL). */
|
|
26
|
+
function hostProblems(h) {
|
|
27
|
+
if (/[@:/?#\s]/.test(h))
|
|
28
|
+
return ["host must be a bare hostname (no userinfo, port or path)"];
|
|
29
|
+
if (h.includes("*"))
|
|
30
|
+
return ["host must not contain a wildcard"];
|
|
31
|
+
if (h !== h.toLowerCase())
|
|
32
|
+
return ["host must be lower-case"];
|
|
33
|
+
return validateAllowHost(h);
|
|
34
|
+
}
|
|
35
|
+
const GitHostEntrySchema = z.strictObject({
|
|
36
|
+
host: z
|
|
37
|
+
.string()
|
|
38
|
+
.max(253, "host must be at most 253 characters")
|
|
39
|
+
.superRefine((h, ctx) => {
|
|
40
|
+
for (const message of hostProblems(h))
|
|
41
|
+
ctx.addIssue({ code: "custom", message });
|
|
42
|
+
}),
|
|
43
|
+
username: z
|
|
44
|
+
.string()
|
|
45
|
+
.regex(USERNAME_RE, "username must match ^[A-Za-z0-9._-]{1,64}$ (letters, digits, '.', '_', '-')"),
|
|
46
|
+
});
|
|
47
|
+
/**
|
|
48
|
+
* The zod schema of {@link GitSource} (strict objects, 1 to {@link GIT_HOSTS_LIMITS}`.hosts` hosts,
|
|
49
|
+
* no duplicate host). Error messages never echo the offending value.
|
|
50
|
+
*/
|
|
51
|
+
export const GitSourceSchema = z
|
|
52
|
+
.strictObject({
|
|
53
|
+
hosts: z
|
|
54
|
+
.array(GitHostEntrySchema)
|
|
55
|
+
.min(1, "hosts must not be empty")
|
|
56
|
+
.max(GIT_HOSTS_LIMITS.hosts),
|
|
57
|
+
})
|
|
58
|
+
.superRefine((g, ctx) => {
|
|
59
|
+
const seen = new Set();
|
|
60
|
+
g.hosts.forEach((e, i) => {
|
|
61
|
+
if (seen.has(e.host)) {
|
|
62
|
+
ctx.addIssue({ code: "custom", path: ["hosts", i, "host"], message: "duplicate host" });
|
|
63
|
+
}
|
|
64
|
+
seen.add(e.host);
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
/** Validates a `git` value; returns problems as `<path>: <message>` (empty means valid). */
|
|
68
|
+
export function validateGitSource(git, at = "git") {
|
|
69
|
+
const r = GitSourceSchema.safeParse(git);
|
|
70
|
+
if (r.success)
|
|
71
|
+
return [];
|
|
72
|
+
return r.error.issues.map((i) => {
|
|
73
|
+
const path = i.path.map(String).join(".");
|
|
74
|
+
return `${path === "" ? at : `${at}.${path}`}: ${i.message}`;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/** Parses a `git` value: the value, or `{ errors }`. */
|
|
78
|
+
export function parseGitSource(git) {
|
|
79
|
+
const errors = validateGitSource(git);
|
|
80
|
+
return errors.length > 0 ? { errors } : GitSourceSchema.parse(git);
|
|
81
|
+
}
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type { ContentBlock, ModelRequest, ModelUsage } from "./model.js";
|
|
1
|
+
import type { ContentBlock, ImageSize, ModelRequest, ModelUsage } from "./model.js";
|
|
2
2
|
/**
|
|
3
3
|
* Hook mount points a plugin can register on through `ctx.hooks.on` (from M7). The other names in
|
|
4
4
|
* `HOOK_MOUNT_POINTS` (`session.*`, `agent.preStep`) stay reserved: they validate in a manifest but
|
|
5
5
|
* cannot be registered yet.
|
|
6
6
|
*/
|
|
7
|
-
export declare const HOOKS_AVAILABLE: readonly ["model.request", "model.response", "tool.preExecute", "tool.postExecute", "usage.report"];
|
|
7
|
+
export declare const HOOKS_AVAILABLE: readonly ["model.request", "model.response", "tool.preExecute", "tool.postExecute", "usage.report", "org.member_removed", "agent.deleted", "org.deleted"];
|
|
8
|
+
/** Lifecycle mount points: observe-only notices that something was removed. */
|
|
9
|
+
export declare const LIFECYCLE_HOOKS: readonly ["org.member_removed", "agent.deleted", "org.deleted"];
|
|
8
10
|
/** A mount point that `ctx.hooks.on` accepts. */
|
|
9
11
|
export type AvailableHook = (typeof HOOKS_AVAILABLE)[number];
|
|
10
12
|
/** Where a sub-agent was dispatched from: the parent conversation, its run and the `Agent` call. */
|
|
@@ -36,9 +38,13 @@ export interface HookScope {
|
|
|
36
38
|
* that summarizes earlier history before a step when the context grows too large, `title` is the call
|
|
37
39
|
* that writes a conversation's title after its first completed run (no run: `runId` is "", `step` 0,
|
|
38
40
|
* `attempt` 1), `web_fetch` is the call that extracts an answer from a fetched web page for the
|
|
39
|
-
* `WebFetch` tool
|
|
41
|
+
* `WebFetch` tool, `review` is the command-review classifier's call (`review` purpose, no run
|
|
42
|
+
* step; absent = no classifier), `suggestion` is the prompt suggestion side request after a
|
|
43
|
+
* completed web run (`runId` the run, `step` 0, `attempt` 1; a denial skips it and is recorded only
|
|
44
|
+
* in the audit log), `vision` is the call that reads an image for a model without vision, made by
|
|
45
|
+
* the `Read` tool (also for a pasted image, read by its `file_id`; the `vision` purpose's model).
|
|
40
46
|
*/
|
|
41
|
-
export type ModelCallPurpose = "step" | "compaction" | "title" | "web_fetch";
|
|
47
|
+
export type ModelCallPurpose = "step" | "compaction" | "title" | "web_fetch" | "review" | "image" | "vision" | "suggestion";
|
|
42
48
|
/**
|
|
43
49
|
* What a reported or requested model call was for: the {@link ModelCallPurpose} values, or
|
|
44
50
|
* `embedding` for an embedding call an extension made through `ctx.models` (`usage.report`, and
|
|
@@ -46,21 +52,23 @@ export type ModelCallPurpose = "step" | "compaction" | "title" | "web_fetch";
|
|
|
46
52
|
*/
|
|
47
53
|
export type UsagePurpose = ModelCallPurpose | "embedding";
|
|
48
54
|
/**
|
|
49
|
-
* An image or
|
|
50
|
-
* attachment ids: each image
|
|
55
|
+
* An image, document or file of a `model.request` payload. Hook payloads never carry media bytes or
|
|
56
|
+
* attachment ids: each image / document / file block is replaced by this placeholder.
|
|
51
57
|
* `size` is the size of the bytes sent to the provider, in bytes (0 when unknown).
|
|
52
58
|
*/
|
|
53
59
|
export interface HookMediaPlaceholder {
|
|
54
60
|
type: "media_omitted";
|
|
55
|
-
kind: "image" | "document";
|
|
61
|
+
kind: "image" | "document" | "file";
|
|
56
62
|
mediaType: string;
|
|
57
63
|
size: number;
|
|
58
64
|
}
|
|
59
|
-
/** A content block of a `model.request` payload: image and
|
|
65
|
+
/** A content block of a `model.request` payload: image, document and file blocks become placeholders. */
|
|
60
66
|
export type HookContentBlock = Exclude<ContentBlock, {
|
|
61
67
|
type: "image";
|
|
62
68
|
} | {
|
|
63
69
|
type: "document";
|
|
70
|
+
} | {
|
|
71
|
+
type: "file";
|
|
64
72
|
}> | HookMediaPlaceholder;
|
|
65
73
|
/** A message of a `model.request` payload (see {@link HookContentBlock}). */
|
|
66
74
|
export type HookModelMessage = {
|
|
@@ -81,13 +89,15 @@ export type HookModelRequest = Omit<ModelRequest, "messages"> & {
|
|
|
81
89
|
* `model.request` of a chat model call (see {@link ModelRequestHookPayload}): once per attempt of a
|
|
82
90
|
* step (`purpose: "step"`), once for each compaction call (`purpose: "compaction"`, `attempt` 1),
|
|
83
91
|
* once for each conversation title call (`purpose: "title"`, `runId` "", `step` 0, `attempt` 1; a
|
|
84
|
-
* denial skips the title and is recorded only in the audit log)
|
|
85
|
-
* extraction call (`purpose: "web_fetch"`)
|
|
92
|
+
* denial skips the title and is recorded only in the audit log), once for each `WebFetch`
|
|
93
|
+
* extraction call (`purpose: "web_fetch"`) and once for each prompt suggestion call
|
|
94
|
+
* (`purpose: "suggestion"`, `step` 0, `attempt` 1; a denial skips the suggestion and is recorded
|
|
95
|
+
* only in the audit log) and once for each vision call (`purpose: "vision"`).
|
|
86
96
|
* `request` is the request as sent, except that images and documents are placeholders
|
|
87
97
|
* ({@link HookMediaPlaceholder}): no media bytes, no attachment ids.
|
|
88
98
|
*/
|
|
89
99
|
export interface ModelCallRequestHookPayload extends HookScope {
|
|
90
|
-
purpose: ModelCallPurpose
|
|
100
|
+
purpose: Exclude<ModelCallPurpose, "image">;
|
|
91
101
|
step: number;
|
|
92
102
|
attempt: number;
|
|
93
103
|
provider: string;
|
|
@@ -125,22 +135,82 @@ export interface EmbeddingRequestHookPayload {
|
|
|
125
135
|
runId?: undefined;
|
|
126
136
|
parent?: undefined;
|
|
127
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* `model.request` of an image generation call (`purpose: "image"`): once per `GenerateImage` tool
|
|
140
|
+
* call (conversation fields set) or `ctx.models.generateImage` call (`extension` and `imagePurpose`
|
|
141
|
+
* set, conversation fields absent). Reference images are placeholders: no bytes. A policy denial
|
|
142
|
+
* sends nothing and records no usage.
|
|
143
|
+
*/
|
|
144
|
+
export interface ImageRequestHookPayload {
|
|
145
|
+
purpose: "image";
|
|
146
|
+
orgId: string;
|
|
147
|
+
provider: string;
|
|
148
|
+
model: string;
|
|
149
|
+
prompt: string;
|
|
150
|
+
size: ImageSize;
|
|
151
|
+
n: number;
|
|
152
|
+
referenceImages: HookMediaPlaceholder[];
|
|
153
|
+
/** Conversation call: */
|
|
154
|
+
accountId?: string;
|
|
155
|
+
agentId?: string;
|
|
156
|
+
agentVersion?: number;
|
|
157
|
+
conversationId?: string;
|
|
158
|
+
runId?: string;
|
|
159
|
+
parent?: HookParentScope;
|
|
160
|
+
step?: number;
|
|
161
|
+
callId?: string;
|
|
162
|
+
/** Extension call: */
|
|
163
|
+
extension?: string;
|
|
164
|
+
imagePurpose?: string;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* `model.response` of an image generation call: after it finished or failed. Same identity fields
|
|
168
|
+
* as {@link ImageRequestHookPayload}; images carry only their media type and byte size.
|
|
169
|
+
*/
|
|
170
|
+
export interface ImageResponseHookPayload {
|
|
171
|
+
purpose: "image";
|
|
172
|
+
orgId: string;
|
|
173
|
+
provider: string;
|
|
174
|
+
model: string;
|
|
175
|
+
accountId?: string;
|
|
176
|
+
agentId?: string;
|
|
177
|
+
agentVersion?: number;
|
|
178
|
+
conversationId?: string;
|
|
179
|
+
runId?: string;
|
|
180
|
+
parent?: HookParentScope;
|
|
181
|
+
step?: number;
|
|
182
|
+
callId?: string;
|
|
183
|
+
extension?: string;
|
|
184
|
+
imagePurpose?: string;
|
|
185
|
+
outcome: "ok" | "failed";
|
|
186
|
+
images: {
|
|
187
|
+
mediaType: string;
|
|
188
|
+
size: number;
|
|
189
|
+
}[];
|
|
190
|
+
revisedPrompt?: string;
|
|
191
|
+
usage: ModelUsage | null;
|
|
192
|
+
latencyMs: number;
|
|
193
|
+
errorCode?: string;
|
|
194
|
+
}
|
|
128
195
|
/**
|
|
129
196
|
* `model.request`: before a model call is sent. A policy hook may deny it. Either a chat model call
|
|
130
197
|
* ({@link ModelCallRequestHookPayload}: steps, compaction, titles, `WebFetch`) or an extension's
|
|
131
|
-
* embedding call ({@link EmbeddingRequestHookPayload}, `purpose: "embedding"`)
|
|
198
|
+
* embedding call ({@link EmbeddingRequestHookPayload}, `purpose: "embedding"`) or an image generation
|
|
199
|
+
* call ({@link ImageRequestHookPayload}, `purpose: "image"`); tell them apart by
|
|
132
200
|
* `purpose`. Handlers must accept the absent conversation fields of an embedding call (a policy
|
|
133
201
|
* hook that throws on one denies the call). Payloads carry no media bytes.
|
|
134
202
|
*/
|
|
135
|
-
export type ModelRequestHookPayload = ModelCallRequestHookPayload | EmbeddingRequestHookPayload;
|
|
203
|
+
export type ModelRequestHookPayload = ModelCallRequestHookPayload | EmbeddingRequestHookPayload | ImageRequestHookPayload;
|
|
136
204
|
/**
|
|
137
205
|
* `model.response`: after a sent model call finished or failed, with its usage when known (step
|
|
138
|
-
* attempts, compaction and
|
|
139
|
-
* stopped while the call was in flight), nor for a call that was never sent
|
|
140
|
-
* before sending), so a `model.request` can have no matching `model.response`.
|
|
206
|
+
* attempts, compaction, title and suggestion calls, see `purpose`). Not fired for a call the user
|
|
207
|
+
* aborted (the run was stopped while the call was in flight), nor for a call that was never sent
|
|
208
|
+
* (denied, or failed before sending), so a `model.request` can have no matching `model.response`.
|
|
209
|
+
* The mount's payload is this or, for an image generation call, an
|
|
210
|
+
* {@link ImageResponseHookPayload}.
|
|
141
211
|
*/
|
|
142
212
|
export interface ModelResponseHookPayload extends HookScope {
|
|
143
|
-
purpose: ModelCallPurpose
|
|
213
|
+
purpose: Exclude<ModelCallPurpose, "image">;
|
|
144
214
|
step: number;
|
|
145
215
|
attempt: number;
|
|
146
216
|
provider: string;
|
|
@@ -201,13 +271,44 @@ export interface UsageReportPayload {
|
|
|
201
271
|
usage: ModelUsage;
|
|
202
272
|
occurredAt: string;
|
|
203
273
|
}
|
|
274
|
+
/**
|
|
275
|
+
* `org.member_removed`: an account left the org (offboarding: removed by an admin, left on its own,
|
|
276
|
+
* or offboarded by a directory sync). Lifecycle hooks are delivered durably, after the removal
|
|
277
|
+
* committed, through a queue, at least once per plugin that declares the mount in
|
|
278
|
+
* `permissions.hooks`, whether or not the org has the plugin enabled and whether or not the org's
|
|
279
|
+
* effective config of the plugin is valid (`call.config` is the platform deployment config): they
|
|
280
|
+
* exist so a plugin can delete the data it holds. Handlers must be idempotent. The payload carries
|
|
281
|
+
* ids only.
|
|
282
|
+
*/
|
|
283
|
+
export interface OrgMemberRemovedPayload {
|
|
284
|
+
orgId: string;
|
|
285
|
+
accountId: string;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* `agent.deleted`: an agent was deleted. Delivered like {@link OrgMemberRemovedPayload} (durably, at
|
|
289
|
+
* least once, regardless of org enablement or config validity; ids only).
|
|
290
|
+
*/
|
|
291
|
+
export interface AgentDeletedPayload {
|
|
292
|
+
orgId: string;
|
|
293
|
+
agentId: string;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* `org.deleted`: an org was deleted. Delivered like {@link OrgMemberRemovedPayload} (durably, at
|
|
297
|
+
* least once, regardless of org enablement or config validity; ids only).
|
|
298
|
+
*/
|
|
299
|
+
export interface OrgDeletedPayload {
|
|
300
|
+
orgId: string;
|
|
301
|
+
}
|
|
204
302
|
/** Payload type of each mount point. */
|
|
205
303
|
export interface HookPayloads {
|
|
206
304
|
"model.request": ModelRequestHookPayload;
|
|
207
|
-
"model.response": ModelResponseHookPayload;
|
|
305
|
+
"model.response": ModelResponseHookPayload | ImageResponseHookPayload;
|
|
208
306
|
"tool.preExecute": ToolPreHookPayload;
|
|
209
307
|
"tool.postExecute": ToolPostHookPayload;
|
|
210
308
|
"usage.report": UsageReportPayload;
|
|
309
|
+
"org.member_removed": OrgMemberRemovedPayload;
|
|
310
|
+
"agent.deleted": AgentDeletedPayload;
|
|
311
|
+
"org.deleted": OrgDeletedPayload;
|
|
211
312
|
}
|
|
212
313
|
/**
|
|
213
314
|
* What a hook returns: nothing, or `{ deny: reason }`. A deny only takes effect for a `policy` hook
|
|
@@ -223,12 +324,16 @@ export type HookVerdict = void | {
|
|
|
223
324
|
* extension's effective deployment config for the payload's org (the platform's config with the
|
|
224
325
|
* org's copy applied to the overridable fields, or `ctx.config` while the org follows it); the
|
|
225
326
|
* kernel always passes it, and never calls a hook for an org where that config is not valid
|
|
226
|
-
* (observe hooks are skipped, policy hooks deny).
|
|
327
|
+
* (observe hooks are skipped, policy hooks deny). Lifecycle hooks ({@link LIFECYCLE_HOOKS}) are the
|
|
328
|
+
* exception: they get the platform deployment config and are always called.
|
|
227
329
|
*/
|
|
228
330
|
export type HookHandler<K extends AvailableHook> = (payload: HookPayloads[K], signal: AbortSignal, call?: HookCall) => Promise<HookVerdict> | HookVerdict;
|
|
229
331
|
/** The per-call context of a hook handler (see {@link HookHandler}). */
|
|
230
332
|
export interface HookCall {
|
|
231
|
-
/**
|
|
333
|
+
/**
|
|
334
|
+
* The extension's effective deployment config for the payload's org (lifecycle hooks: the
|
|
335
|
+
* platform deployment config).
|
|
336
|
+
*/
|
|
232
337
|
config: unknown;
|
|
233
338
|
}
|
|
234
339
|
/**
|
package/dist/hooks.js
CHANGED
|
@@ -9,6 +9,11 @@ export const HOOKS_AVAILABLE = [
|
|
|
9
9
|
"tool.preExecute",
|
|
10
10
|
"tool.postExecute",
|
|
11
11
|
"usage.report",
|
|
12
|
+
"org.member_removed",
|
|
13
|
+
"agent.deleted",
|
|
14
|
+
"org.deleted",
|
|
12
15
|
];
|
|
16
|
+
/** Lifecycle mount points: observe-only notices that something was removed. */
|
|
17
|
+
export const LIFECYCLE_HOOKS = ["org.member_removed", "agent.deleted", "org.deleted"];
|
|
13
18
|
/** Mount points where a `policy` hook may deny the call. */
|
|
14
19
|
export const POLICY_HOOKS = ["model.request", "tool.preExecute"];
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { UiRole } from "./ui.js";
|
|
2
|
+
/**
|
|
3
|
+
* Who may call an extension route (declared per route in `permissions.http`, enforced by the
|
|
4
|
+
* kernel before the handler runs and before the body is read):
|
|
5
|
+
*
|
|
6
|
+
* - `public`: anyone; unsafe methods are rate-limited per client IP. Mounted at
|
|
7
|
+
* `/plugins/<name><path>`.
|
|
8
|
+
* - `embed`: the holder of an embed token (see `ctx.ui`); path under `/ui/`. Mounted at
|
|
9
|
+
* `/plugins/<name><path>`.
|
|
10
|
+
* - `member` / `admin`: an org member (admin: org admin and up) with a personal access token.
|
|
11
|
+
* Mounted at `/plugins/<name>/orgs/:orgId<path>`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const HTTP_ACCESS: readonly ["public", "embed", "member", "admin"];
|
|
14
|
+
export type HttpAccess = (typeof HTTP_ACCESS)[number];
|
|
15
|
+
/** One entry of `permissions.http`. */
|
|
16
|
+
export interface HttpPermission {
|
|
17
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
18
|
+
path: string;
|
|
19
|
+
access: HttpAccess;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The caller the kernel resolved for a route, passed to the handler as its second argument.
|
|
23
|
+
* Trust only this (`caller.orgId`, never an org id in the body or query).
|
|
24
|
+
*/
|
|
25
|
+
export type RouteCaller = {
|
|
26
|
+
access: "public";
|
|
27
|
+
} | {
|
|
28
|
+
access: "embed";
|
|
29
|
+
scope: "org";
|
|
30
|
+
orgId: string;
|
|
31
|
+
accountId: string;
|
|
32
|
+
role: UiRole;
|
|
33
|
+
contribution: string;
|
|
34
|
+
conversationId?: string;
|
|
35
|
+
/** The token's expiry (Unix seconds): a long-lived response (SSE) ends by then. */
|
|
36
|
+
exp: number;
|
|
37
|
+
config: unknown;
|
|
38
|
+
} | {
|
|
39
|
+
access: "embed";
|
|
40
|
+
scope: "platform";
|
|
41
|
+
accountId: string;
|
|
42
|
+
role: "superAdmin";
|
|
43
|
+
contribution: string;
|
|
44
|
+
/** The token's expiry (Unix seconds): a long-lived response (SSE) ends by then. */
|
|
45
|
+
exp: number;
|
|
46
|
+
} | {
|
|
47
|
+
/** A share page's `file.preview` embed: no account, no role. */
|
|
48
|
+
access: "embed";
|
|
49
|
+
scope: "share";
|
|
50
|
+
orgId: string;
|
|
51
|
+
shareId: string;
|
|
52
|
+
contribution: string;
|
|
53
|
+
/** The token's expiry (Unix seconds): a long-lived response (SSE) ends by then. */
|
|
54
|
+
exp: number;
|
|
55
|
+
config: unknown;
|
|
56
|
+
} | {
|
|
57
|
+
access: "member" | "admin";
|
|
58
|
+
orgId: string;
|
|
59
|
+
accountId: string;
|
|
60
|
+
role: UiRole;
|
|
61
|
+
config: unknown;
|
|
62
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Who may call an extension route (declared per route in `permissions.http`, enforced by the
|
|
3
|
+
* kernel before the handler runs and before the body is read):
|
|
4
|
+
*
|
|
5
|
+
* - `public`: anyone; unsafe methods are rate-limited per client IP. Mounted at
|
|
6
|
+
* `/plugins/<name><path>`.
|
|
7
|
+
* - `embed`: the holder of an embed token (see `ctx.ui`); path under `/ui/`. Mounted at
|
|
8
|
+
* `/plugins/<name><path>`.
|
|
9
|
+
* - `member` / `admin`: an org member (admin: org admin and up) with a personal access token.
|
|
10
|
+
* Mounted at `/plugins/<name>/orgs/:orgId<path>`.
|
|
11
|
+
*/
|
|
12
|
+
export const HTTP_ACCESS = ["public", "embed", "member", "admin"];
|
package/dist/identity.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* An external identity; login, channel inbound and directory all use the same (source, externalId)
|
|
3
|
+
* key.
|
|
4
|
+
*/
|
|
2
5
|
export interface ExternalIdentity {
|
|
3
6
|
/**
|
|
4
|
-
* `"
|
|
5
|
-
* `source === \`${
|
|
7
|
+
* `"<plugin name>:<tenant id>"`, must equal `tenantId`. On third-party login the kernel checks
|
|
8
|
+
* `source === \`${plugin name}:${tenantId}\``, and rejects a mismatch as an identity source
|
|
9
|
+
* error.
|
|
6
10
|
*/
|
|
7
11
|
source: string;
|
|
8
12
|
externalId: string;
|
|
@@ -13,9 +17,12 @@ export interface ExternalIdentity {
|
|
|
13
17
|
avatarUrl?: string;
|
|
14
18
|
}
|
|
15
19
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
20
|
+
* Third-party login (`identity-source@1`). State, nonce and PKCE are all generated by the kernel
|
|
21
|
+
* and kept server-side:
|
|
22
|
+
* the plugin puts `codeChallenge` / `codeChallengeMethod` into the authorization URL
|
|
23
|
+
* (`code_challenge` / `code_challenge_method`),
|
|
24
|
+
* and passes `codeVerifier` (`code_verifier`) when exchanging the token at the callback. If the
|
|
25
|
+
* platform does not support PKCE, just ignore these fields.
|
|
19
26
|
*/
|
|
20
27
|
export interface IdentitySource {
|
|
21
28
|
label: {
|
|
@@ -27,9 +34,12 @@ export interface IdentitySource {
|
|
|
27
34
|
redirectUri: string;
|
|
28
35
|
state: string;
|
|
29
36
|
nonce: string;
|
|
30
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* PKCE challenge (base64url(SHA-256(codeVerifier))); the kernel always provides it, old kernels
|
|
39
|
+
* do not.
|
|
40
|
+
*/
|
|
31
41
|
codeChallenge?: string;
|
|
32
|
-
/** PKCE challenge
|
|
42
|
+
/** The PKCE challenge algorithm; the kernel uses only `"S256"`. */
|
|
33
43
|
codeChallengeMethod?: "S256";
|
|
34
44
|
}): string;
|
|
35
45
|
callback(args: {
|
|
@@ -38,7 +48,10 @@ export interface IdentitySource {
|
|
|
38
48
|
query: Record<string, string>;
|
|
39
49
|
nonce: string;
|
|
40
50
|
signal: AbortSignal;
|
|
41
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* The PKCE verifier matching this flow's `codeChallenge`; the kernel always provides it, old
|
|
53
|
+
* kernels do not.
|
|
54
|
+
*/
|
|
42
55
|
codeVerifier?: string;
|
|
43
56
|
}): Promise<ExternalIdentity>;
|
|
44
57
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,56 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.0-rc.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.0-rc.41";
|
|
2
2
|
export * from "./agent-template.js";
|
|
3
3
|
export * from "./bootstrap.js";
|
|
4
4
|
export * from "./cards.js";
|
|
5
5
|
export * from "./channel.js";
|
|
6
|
+
export * from "./client-css.js";
|
|
7
|
+
export * from "./client-section.js";
|
|
6
8
|
export * from "./config-ui.js";
|
|
7
9
|
export * from "./connector.js";
|
|
8
10
|
export * from "./connector-auth.js";
|
|
11
|
+
export * from "./context.js";
|
|
9
12
|
export * from "./ctx.js";
|
|
10
13
|
export * from "./define-extension.js";
|
|
14
|
+
export { DEVICE_DEFAULT_STATE_PATH, DEVICE_DENIED_SECRET_PATHS } from "./device-denied-paths.js";
|
|
15
|
+
export * from "./device-protocol.js";
|
|
11
16
|
export * from "./directory.js";
|
|
12
17
|
export * from "./extension-point.js";
|
|
13
18
|
export * from "./file-preview.js";
|
|
19
|
+
export * from "./git-hosts.js";
|
|
14
20
|
export * from "./hooks.js";
|
|
21
|
+
export * from "./http-access.js";
|
|
15
22
|
export * from "./identity.js";
|
|
16
23
|
export * from "./marketplace.js";
|
|
17
24
|
export * from "./model.js";
|
|
18
25
|
export * from "./model-params.js";
|
|
26
|
+
export * from "./net.js";
|
|
27
|
+
export * from "./network-classes.js";
|
|
19
28
|
export * from "./org-access.js";
|
|
20
29
|
export * from "./permissions.js";
|
|
21
30
|
export * from "./plugin-manifest.js";
|
|
22
31
|
export * from "./plugin-package.js";
|
|
23
32
|
export * from "./sandbox.js";
|
|
33
|
+
export * from "./sandbox-operation.js";
|
|
34
|
+
export { SANDBOX_RUNTIME_SOURCE } from "./sandbox-runtime-source.js";
|
|
35
|
+
export { isSandboxHomeWriteDenied, isSandboxMoveDenied, isSandboxWriteDenied, SANDBOX_GIT_ALLOWED_DIRECTORIES, SANDBOX_GIT_ALLOWED_FILES, SANDBOX_GIT_DENIED_INTERNALS, SANDBOX_HOME_WRITE_DENIES, SANDBOX_MANDATORY_WRITE_DENIES, SANDBOX_PROTECTED_PATH_NAMES, SANDBOX_RESERVED_NAME_PREFIX, SANDBOX_RUNTIME_DIRECTORIES, SANDBOX_SYSTEM_WRITE_DENIES, sandboxRuntimeDirectoryOf, } from "./sandbox-write-denies.js";
|
|
24
36
|
export * from "./secret.js";
|
|
37
|
+
export * from "./setup-check.js";
|
|
38
|
+
export * from "./setup-guide.js";
|
|
39
|
+
export { type ParsedSetupGuide, parseSetupGuide, type SetupGuideCheckLine, type SetupGuideCodeBlock, type SetupGuideParseIssue, type SetupGuideSection, } from "./setup-guide-parse.js";
|
|
40
|
+
export * from "./setup-guide-render.js";
|
|
41
|
+
export * from "./shell-capabilities.js";
|
|
42
|
+
export * from "./shell-environment.js";
|
|
25
43
|
export * from "./skill.js";
|
|
26
44
|
export * from "./skill-invocation.js";
|
|
27
45
|
export * from "./storage.js";
|
|
46
|
+
export * from "./theme.js";
|
|
47
|
+
export * from "./theme-assets.js";
|
|
48
|
+
export * from "./theme-readability.js";
|
|
49
|
+
export * from "./theme-tokens.generated.js";
|
|
28
50
|
export * from "./tool.js";
|
|
29
51
|
export * from "./tool-key.js";
|
|
30
52
|
export * from "./ui.js";
|
|
53
|
+
export * from "./ui-parts.js";
|
|
54
|
+
export * from "./ui-resolve.js";
|
|
55
|
+
export * from "./ui-slots.js";
|
|
31
56
|
export * from "./web.js";
|